|
|
!(function(){var GA=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2303],{70557:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},27812:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},89489:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},59477:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},40001:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},26227:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},49198:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},84105:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},18785:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},87169:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},73331:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},15277:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},52671:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},8657:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},56082:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},33853:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},15075:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},43531:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},61485:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},38819:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},47472:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},95869:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},87395:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},35593:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return Nt}});var we=g(44127),De=g(72071),se=g(6620),Me=g(43403),ie=g(92310),Y=g.n(ie),O=g(29301),I=g(76846),n=g(96452),o=g(6089),L=g(80402),p=g(34280),a=g(49658),A=g(59301),m=g(96663),S=g(77900),$=g(8654);function F(z){var v=z.prefixCls,h=z.align,D=z.arrow,fe=z.arrowPos,Z=D||{},N=Z.className,te=Z.content,Te=fe.x,Ie=Te===void 0?0:Te,Fe=fe.y,ze=Fe===void 0?0:Fe,pt=A.useRef();if(!h||!h.points)return null;var $e={position:"absolute"};if(h.autoArrow!==!1){var tt=h.points[0],ct=h.points[1],Ge=tt[0],Ke=tt[1],Bt=ct[0],Vt=ct[1];Ge===Bt||!["t","b"].includes(Ge)?$e.top=ze:Ge==="t"?$e.top=0:$e.bottom=0,Ke===Vt||!["l","r"].includes(Ke)?$e.left=Ie:Ke==="l"?$e.left=0:$e.right=0}return A.createElement("div",{ref:pt,className:Y()("".concat(v,"-arrow"),N),style:$e},te)}function H(z){var v=z.prefixCls,h=z.open,D=z.zIndex,fe=z.mask,Z=z.motion;return fe?A.createElement(S.default,(0,m.Z)({},Z,{motionAppear:!0,visible:h,removeOnLeave:!0}),function(N){var te=N.className;return A.createElement("div",{style:{zIndex:D},className:Y()("".concat(v,"-mask"),te)})}):null}var V=A.memo(function(z){var v=z.children;return v},function(z,v){return v.cache}),ee=V,B=A.forwardRef(function(z,v){var h=z.popup,D=z.className,fe=z.prefixCls,Z=z.style,N=z.target,te=z.onVisibleChanged,Te=z.open,Ie=z.keepDom,Fe=z.fresh,ze=z.onClick,pt=z.mask,$e=z.arrow,tt=z.arrowPos,ct=z.align,Ge=z.motion,Ke=z.maskMotion,Bt=z.forceRender,Vt=z.getPopupContainer,Mt=z.autoDestroy,mr=z.portal,wr=z.zIndex,re=z.onMouseEnter,ue=z.onMouseLeave,rr=z.onPointerEnter,Qe=z.ready,ot=z.offsetX,Yr=z.offsetY,It=z.offsetR,zt=z.offsetB,qt=z.onAlign,qe=z.onPrepare,At=z.stretch,dt=z.targetWidth,Gt=z.targetHeight,Pe=typeof h=="function"?h():h,an=Te||Ie,kt=(Vt==null?void 0:Vt.length)>0,kn=A.useState(!Vt||!kt),Xn=(0,De.Z)(kn,2),yi=Xn[0],ji=Xn[1];if((0,p.Z)(function(){!yi&&kt&&N&&ji(!0)},[yi,kt,N]),!yi)return null;var On="auto",$n={left:"-1000vw",top:"-1000vh",right:On,bottom:On};if(Qe||!Te){var Yt,jr=ct.points,Jr=ct.dynamicInset||((Yt=ct._experimental)===null||Yt===void 0?void 0:Yt.dynamicInset),Ot=Jr&&jr[0][1]==="r",_t=Jr&&jr[0][0]==="b";Ot?($n.right=It,$n.left=On):($n.left=ot,$n.right=On),_t?($n.bottom=zt,$n.top=On):($n.top=Yr,$n.bottom=On)}var Br={};return At&&(At.includes("height")&&Gt?Br.height=Gt:At.includes("minHeight")&&Gt&&(Br.minHeight=Gt),At.includes("width")&&dt?Br.width=dt:At.includes("minWidth")&&dt&&(Br.minWidth=dt)),Te||(Br.pointerEvents="none"),A.createElement(mr,{open:Bt||an,getContainer:Vt&&function(){return Vt(N)},autoDestroy:Mt},A.createElement(H,{prefixCls:fe,open:Te,zIndex:wr,mask:pt,motion:Ke}),A.createElement(O.Z,{onResize:qt,disabled:!Te},function(Lr){return A.createElement(S.default,(0,m.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Bt,leavedClassName:"".concat(fe,"-hidden")},Ge,{onAppearPrepare:qe,onEnterPrepare:qe,visible:Te,onVisibleChanged:function(tn){var Bn;Ge==null||(Bn=Ge.onVisibleChanged)===null||Bn===void 0||Bn.call(Ge,tn),te(tn)}}),function(In,tn){var Bn=In.className,gn=In.style,Qn=Y()(fe,Bn,D);return A.createElement("div",{ref:(0,$.sQ)(Lr,v,tn),className:Qn,style:(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({"--arrow-x":"".concat(tt.x||0,"px"),"--arrow-y":"".concat(tt.y||0,"px")},$n),Br),gn),{},{boxSizing:"border-box",zIndex:wr},Z),onMouseEnter:re,onMouseLeave:ue,onPointerEnter:rr,onClick:ze},$e&&A.createElement(F,{prefixCls:fe,arrow:$e,arrowPos:tt,align:ct}),A.createElement(ee,{cache:!Te&&!Fe},Pe))})}))}),G=B,le=A.forwardRef(function(z,v){var h=z.children,D=z.getTriggerDOMNode,fe=(0,$.Yr)(h),Z=A.useCallback(function(te){(0,$.mH)(v,D?D(te):te)},[D]),N=(0,$.x1)(Z,h.ref);return fe?A.cloneElement(h,{ref:N}):h}),J=le,be=A.createContext(null),Ce=be;function Re(z){return z?Array.isArray(z)?z:[z]:[]}function ae(z,v,h,D){return A.useMemo(function(){var fe=Re(h!=null?h:v),Z=Re(D!=null?D:v),N=new Set(fe),te=new Set(Z);return z&&(N.has("hover")&&(N.delete("hover"),N.add("click")),te.has("hover")&&(te.delete("hover"),te.add("click"))),[N,te]},[z,v,h,D])}var me=g(29194);function T(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2?arguments[2]:void 0;return h?z[0]===v[0]:z[0]===v[0]&&z[1]===v[1]}function Ee(z,v,h,D){for(var fe=h.points,Z=Object.keys(z),N=0;N<Z.length;N+=1){var te,Te=Z[N];if(T((te=z[Te])===null||te===void 0?void 0:te.points,fe,D))return"".concat(v,"-placement-").concat(Te)}return""}function oe(z,v,h,D){return v||(h?{motionName:"".concat(z,"-").concat(h)}:D?{motionName:D}:null)}function he(z){return z.ownerDocument.defaultView}function ve(z){for(var v=[],h=z==null?void 0:z.parentElement,D=["hidden","scroll","clip","auto"];h;){var fe=he(h).getComputedStyle(h),Z=fe.overflowX,N=fe.overflowY,te=fe.overflow;[Z,N,te].some(function(Te){return D.includes(Te)})&&v.push(h),h=h.parentElement}return v}function _(z){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(z)?v:z}function P(z){return _(parseFloat(z),0)}function X(z,v){var h=(0,we.Z)({},z);return(v||[]).forEach(function(D){if(!(D instanceof HTMLBodyElement||D instanceof HTMLHtmlElement)){var fe=he(D).getComputedStyle(D),Z=fe.overflow,N=fe.overflowClipMargin,te=fe.borderTopWidth,Te=fe.borderBottomWidth,Ie=fe.borderLeftWidth,Fe=fe.borderRightWidth,ze=D.getBoundingClientRect(),pt=D.offsetHeight,$e=D.clientHeight,tt=D.offsetWidth,ct=D.clientWidth,Ge=P(te),Ke=P(Te),Bt=P(Ie),Vt=P(Fe),Mt=_(Math.round(ze.width/tt*1e3)/1e3),mr=_(Math.round(ze.height/pt*1e3)/1e3),wr=(tt-ct-Bt-Vt)*Mt,re=(pt-$e-Ge-Ke)*mr,ue=Ge*mr,rr=Ke*mr,Qe=Bt*Mt,ot=Vt*Mt,Yr=0,It=0;if(Z==="clip"){var zt=P(N);Yr=zt*Mt,It=zt*mr}var qt=ze.x+Qe-Yr,qe=ze.y+ue-It,At=qt+ze.width+2*Yr-Qe-ot-wr,dt=qe+ze.height+2*It-ue-rr-re;h.left=Math.max(h.left,qt),h.top=Math.max(h.top,qe),h.right=Math.min(h.right,At),h.bottom=Math.min(h.bottom,dt)}}),h}function pe(z){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h="".concat(v),D=h.match(/^(.*)\%$/);return D?z*(parseFloat(D[1])/100):parseFloat(h)}function Je(z,v){var h=v||[],D=(0,De.Z)(h,2),fe=D[0],Z=D[1];return[pe(z.width,fe),pe(z.height,Z)]}function at(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[z[0],z[1]]}function nt(z,v){var h=v[0],D=v[1],fe,Z;return h==="t"?Z=z.y:h==="b"?Z=z.y+z.height:Z=z.y+z.height/2,D==="l"?fe=z.x:D==="r"?fe=z.x+z.width:fe=z.x+z.width/2,{x:fe,y:Z}}function Lt(z,v){var h={t:"b",b:"t",l:"r",r:"l"};return z.map(function(D,fe){return fe===v?h[D]||"c":D}).join("")}function ur(z,v,h,D,fe,Z,N){var te=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:fe[D]||{}}),Te=(0,De.Z)(te,2),Ie=Te[0],Fe=Te[1],ze=A.useRef(0),pt=A.useMemo(function(){return v?ve(v):[]},[v]),$e=A.useRef({}),tt=function(){$e.current={}};z||tt();var ct=(0,o.Z)(function(){if(v&&h&&z){let Hi=function(ya,Na){var Rs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qn,cs=Pe.x+ya,Es=Pe.y+Na,rs=cs+Yt,So=Es+$n,go=Math.max(cs,Rs.left),eo=Math.max(Es,Rs.top),zs=Math.min(rs,Rs.right),Os=Math.min(So,Rs.bottom);return Math.max(0,(zs-go)*(Os-eo))},ki=function(){Ln=Pe.y+_n,Gn=Ln+$n,Ei=Pe.x+Tr,Qi=Ei+Yt};var Bt,Vt,Mt=v,mr=Mt.ownerDocument,wr=he(Mt),re=wr.getComputedStyle(Mt),ue=re.width,rr=re.height,Qe=re.position,ot=Mt.style.left,Yr=Mt.style.top,It=Mt.style.right,zt=Mt.style.bottom,qt=Mt.style.overflow,qe=(0,we.Z)((0,we.Z)({},fe[D]),Z),At=mr.createElement("div");(Bt=Mt.parentElement)===null||Bt===void 0||Bt.appendChild(At),At.style.left="".concat(Mt.offsetLeft,"px"),At.style.top="".concat(Mt.offsetTop,"px"),At.style.position=Qe,At.style.height="".concat(Mt.offsetHeight,"px"),At.style.width="".concat(Mt.offsetWidth,"px"),Mt.style.left="0",Mt.style.top="0",Mt.style.right="auto",Mt.style.bottom="auto",Mt.style.overflow="hidden";var dt;if(Array.isArray(h))dt={x:h[0],y:h[1],width:0,height:0};else{var Gt=h.getBoundingClientRect();dt={x:Gt.x,y:Gt.y,width:Gt.width,height:Gt.height}}var Pe=Mt.getBoundingClientRect(),an=mr.documentElement,kt=an.clientWidth,kn=an.clientHeight,Xn=an.scrollWidth,yi=an.scrollHeight,ji=an.scrollTop,On=an.scrollLeft,$n=Pe.height,Yt=Pe.width,jr=dt.height,Jr=dt.width,Ot={left:0,top:0,right:kt,bottom:kn},_t={left:-On,top:-ji,right:Xn-On,bottom:yi-ji},Br=qe.htmlRegion,Lr="visible",In="visibleFirst";Br!=="scroll"&&Br!==In&&(Br=Lr);var tn=Br===In,Bn=X(_t,pt),gn=X(Ot,pt),Qn=Br===Lr?gn:Bn,ei=tn?gn:Qn;Mt.style.left="auto",Mt.style.top="auto",Mt.style.right="0",Mt.style.bottom="0";var Hr=Mt.getBoundingClientRect();Mt.style.left=ot,Mt.style.top=Yr,Mt.style.right=It,Mt.style.bottom=zt,Mt.style.overflow=qt,(Vt=Mt.parentElement)===null||Vt===void 0||Vt.removeChild(At);var zr=_(Math.round(Yt/parseFloat(ue)*1e3)/1e3),Tn=_(Math.round($n/parseFloat(rr)*1e3)/1e3);if(zr===0||Tn===0||(0,I.Sh)(h)&&!(0,me.Z)(h))return;var Sn=qe.offset,jn=qe.targetOffset,Vn=Je(Pe,Sn),Mi=(0,De.Z)(Vn,2),Ai=Mi[0],wn=Mi[1],hr=Je(dt,jn),br=(0,De.Z)(hr,2),Fr=br[0],Zr=br[1];dt.x-=Fr,dt.y-=Zr;var Ur=qe.points||[],on=(0,De.Z)(Ur,2),en=on[0],Hn=on[1],ti=at(Hn),ui=at(en),Ri=nt(dt,ti),Ui=nt(Pe,ui),Pi=(0,we.Z)({},qe),Tr=Ri.x-Ui.x+Ai,_n=Ri.y-Ui.y+wn,hn=Hi(Tr,_n),hi=Hi(Tr,_n,gn),ii=nt(dt,["t","l"]),ri=nt(Pe,["t","l"]),bi=nt(dt,["b","r"]),Di=nt(Pe,["b","r"]),Bi=qe.overflow||{},zi=Bi.adjustX,ca=Bi.adjustY,xi=Bi.shiftX,vn=Bi.shiftY,jt=function(Na){return typeof Na=="boolean"?Na:Na>=0},Ln,Gn,Ei,Qi;ki();var da=jt(ca),xa=ui[0]===ti[0];if(da&&ui[0]==="t"&&(Gn>ei.bottom||$e.current.bt)){var Ji=_n;xa?Ji-=$n-jr:Ji=ii.y-Di.y-wn;var Sa=Hi(Tr,Ji),_i=Hi(Tr,Ji,gn);Sa>hn||Sa===hn&&(!tn||_i>=hi)?($e.current.bt=!0,_n=Ji,wn=-wn,Pi.points=[Lt(ui,0),Lt(ti,0)]):$e.current.bt=!1}if(da&&ui[0]==="b"&&(Ln<ei.top||$e.current.tb)){var ai=_n;xa?ai+=$n-jr:ai=bi.y-ri.y-wn;var $i=Hi(Tr,ai),ra=Hi(Tr,ai,gn);$i>hn||$i===hn&&(!tn||ra>=hi)?($e.current.tb=!0,_n=ai,wn=-wn,Pi.points=[Lt(ui,0),Lt(ti,0)]):$e.current.tb=!1}var Ea=jt(zi),xs=ui[1]===ti[1];if(Ea&&ui[1]==="l"&&(Qi>ei.right||$e.current.rl)){var oi=Tr;xs?oi-=Yt-Jr:oi=ii.x-Di.x-Ai;var Ca=Hi(oi,_n),ga=Hi(oi,_n,gn);Ca>hn||Ca===hn&&(!tn||ga>=hi)?($e.current.rl=!0,Tr=oi,Ai=-Ai,Pi.points=[Lt(ui,1),Lt(ti,1)]):$e.current.rl=!1}if(Ea&&ui[1]==="r"&&(Ei<ei.left||$e.current.lr)){var Qa=Tr;xs?Qa+=Yt-Jr:Qa=bi.x-ri.x-Ai;var _s=Hi(Qa,_n),is=Hi(Qa,_n,gn);_s>hn||_s===hn&&(!tn||is>=hi)?($e.current.lr=!0,Tr=Qa,Ai=-Ai,Pi.points=[Lt(ui,1),Lt(ti,1)]):$e.current.lr=!1}ki();var Da=xi===!0?0:xi;typeof Da=="number"&&(Ei<gn.left&&(Tr-=Ei-gn.left-Ai,dt.x+Jr<gn.left+Da&&(Tr+=dt.x-gn.left+Jr-Da)),Qi>gn.right&&(Tr-=Qi-gn.right-Ai,dt.x>gn.right-Da&&(Tr+=dt.x-gn.right+Da)));var Ni=vn===!0?0:vn;typeof Ni=="number"&&(Ln<gn.top&&(_n-=Ln-gn.top-wn,dt.y+jr<gn.top+Ni&&(_n+=dt.y-gn.top+jr-Ni)),Gn>gn.bottom&&(_n-=Gn-gn.bottom-wn,dt.y>gn.bottom-Ni&&(_n+=dt.y-gn.bottom+Ni)));var la=Pe.x+Tr,ps=la+Yt,as=Pe.y+_n,ts=as+$n,Wi=dt.x,ms=Wi+Jr,aa=dt.y,co=aa+jr,Qs=Math.max(la,Wi),_o=Math.min(ps,ms),fs=(Qs+_o)/2,Bo=fs-la,ss=Math.max(as,aa),Yn=Math.min(ts,co),La=(ss+Yn)/2,io=La-as;N==null||N(v,Pi);var Zi=Hr.right-Pe.x-(Tr+Pe.width),ta=Hr.bottom-Pe.y-(_n+Pe.height);Fe({ready:!0,offsetX:Tr/zr,offsetY:_n/Tn,offsetR:Zi/zr,offsetB:ta/Tn,arrowX:Bo/zr,arrowY:io/Tn,scaleX:zr,scaleY:Tn,align:Pi})}}),Ge=function(){ze.current+=1;var Vt=ze.current;Promise.resolve().then(function(){ze.current===Vt&&ct()})},Ke=function(){Fe(function(Vt){return(0,we.Z)((0,we.Z)({},Vt),{},{ready:!1})})};return(0,p.Z)(Ke,[D]),(0,p.Z)(function(){z||Ke()},[z]),[Ie.ready,Ie.offsetX,Ie.offsetY,Ie.offsetR,Ie.offsetB,Ie.arrowX,Ie.arrowY,Ie.scaleX,Ie.scaleY,Ie.align,Ge]}var Jt=g(19127);function We(z,v,h,D,fe){(0,p.Z)(function(){if(z&&v&&h){let ze=function(){D(),fe()};var Z=v,N=h,te=ve(Z),Te=ve(N),Ie=he(N),Fe=new Set([Ie].concat((0,Jt.Z)(te),(0,Jt.Z)(Te)));return Fe.forEach(function(pt){pt.addEventListener("scroll",ze,{passive:!0})}),Ie.addEventListener("resize",ze,{passive:!0}),D(),function(){Fe.forEach(function(pt){pt.removeEventListener("scroll",ze),Ie.removeEventListener("resize",ze)})}}},[z,v,h])}var Cr=g(48736),Er=g(16089);function Kr(z,v,h,D,fe,Z,N,te){var Te=A.useRef(z),Ie=A.useRef(!1);Te.current!==z&&(Ie.current=!0,Te.current=z),A.useEffect(function(){var Fe=(0,Er.Z)(function(){Ie.current=!1});return function(){Er.Z.cancel(Fe)}},[z]),A.useEffect(function(){if(v&&D&&(!fe||Z)){var Fe=function(){var Qe=!1,ot=function(zt){var qt=zt.target;Qe=N(qt)},Yr=function(zt){var qt=zt.target;!Ie.current&&Te.current&&!Qe&&!N(qt)&&te(!1)};return[ot,Yr]},ze=Fe(),pt=(0,De.Z)(ze,2),$e=pt[0],tt=pt[1],ct=Fe(),Ge=(0,De.Z)(ct,2),Ke=Ge[0],Bt=Ge[1],Vt=he(D);Vt.addEventListener("mousedown",$e,!0),Vt.addEventListener("click",tt,!0),Vt.addEventListener("contextmenu",tt,!0);var Mt=(0,n.A)(h);if(Mt&&(Mt.addEventListener("mousedown",Ke,!0),Mt.addEventListener("click",Bt,!0),Mt.addEventListener("contextmenu",Bt,!0)),0)var mr,wr,re,ue;return function(){Vt.removeEventListener("mousedown",$e,!0),Vt.removeEventListener("click",tt,!0),Vt.removeEventListener("contextmenu",tt,!0),Mt&&(Mt.removeEventListener("mousedown",Ke,!0),Mt.removeEventListener("click",Bt,!0),Mt.removeEventListener("contextmenu",Bt,!0))}}},[v,h,D,fe,Z])}var _r=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Se(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Me.Z,v=A.forwardRef(function(h,D){var fe=h.prefixCls,Z=fe===void 0?"rc-trigger-popup":fe,N=h.children,te=h.action,Te=te===void 0?"hover":te,Ie=h.showAction,Fe=h.hideAction,ze=h.popupVisible,pt=h.defaultPopupVisible,$e=h.onPopupVisibleChange,tt=h.afterPopupVisibleChange,ct=h.mouseEnterDelay,Ge=h.mouseLeaveDelay,Ke=Ge===void 0?.1:Ge,Bt=h.focusDelay,Vt=h.blurDelay,Mt=h.mask,mr=h.maskClosable,wr=mr===void 0?!0:mr,re=h.getPopupContainer,ue=h.forceRender,rr=h.autoDestroy,Qe=h.destroyPopupOnHide,ot=h.popup,Yr=h.popupClassName,It=h.popupStyle,zt=h.popupPlacement,qt=h.builtinPlacements,qe=qt===void 0?{}:qt,At=h.popupAlign,dt=h.zIndex,Gt=h.stretch,Pe=h.getPopupClassNameFromAlign,an=h.fresh,kt=h.alignPoint,kn=h.onPopupClick,Xn=h.onPopupAlign,yi=h.arrow,ji=h.popupMotion,On=h.maskMotion,$n=h.popupTransitionName,Yt=h.popupAnimation,jr=h.maskTransitionName,Jr=h.maskAnimation,Ot=h.className,_t=h.getTriggerDOMNode,Br=(0,se.Z)(h,_r),Lr=rr||Qe||!1,In=A.useState(!1),tn=(0,De.Z)(In,2),Bn=tn[0],gn=tn[1];(0,p.Z)(function(){gn((0,a.Z)())},[]);var Qn=A.useRef({}),ei=A.useContext(Ce),Hr=A.useMemo(function(){return{registerSubPopup:function(pi,ua){Qn.current[pi]=ua,ei==null||ei.registerSubPopup(pi,ua)}}},[ei]),zr=(0,L.Z)(),Tn=A.useState(null),Sn=(0,De.Z)(Tn,2),jn=Sn[0],Vn=Sn[1],Mi=(0,o.Z)(function(Li){(0,I.Sh)(Li)&&jn!==Li&&Vn(Li),ei==null||ei.registerSubPopup(zr,Li)}),Ai=A.useState(null),wn=(0,De.Z)(Ai,2),hr=wn[0],br=wn[1],Fr=A.useRef(null),Zr=(0,o.Z)(function(Li){(0,I.Sh)(Li)&&hr!==Li&&(br(Li),Fr.current=Li)}),Ur=A.Children.only(N),on=(Ur==null?void 0:Ur.props)||{},en={},Hn=(0,o.Z)(function(Li){var pi,ua,gs=hr;return(gs==null?void 0:gs.contains(Li))||((pi=(0,n.A)(gs))===null||pi===void 0?void 0:pi.host)===Li||Li===gs||(jn==null?void 0:jn.contains(Li))||((ua=(0,n.A)(jn))===null||ua===void 0?void 0:ua.host)===Li||Li===jn||Object.values(Qn.current).some(function(Oa){return(Oa==null?void 0:Oa.contains(Li))||Li===Oa})}),ti=oe(Z,ji,Yt,$n),ui=oe(Z,On,Jr,jr),Ri=A.useState(pt||!1),Ui=(0,De.Z)(Ri,2),Pi=Ui[0],Tr=Ui[1],_n=ze!=null?ze:Pi,hn=(0,o.Z)(function(Li){ze===void 0&&Tr(Li)});(0,p.Z)(function(){Tr(ze||!1)},[ze]);var hi=A.useRef(_n);hi.current=_n;var ii=A.useRef([]);ii.current=[];var ri=(0,o.Z)(function(Li){var pi;hn(Li),((pi=ii.current[ii.current.length-1])!==null&&pi!==void 0?pi:_n)!==Li&&(ii.current.push(Li),$e==null||$e(Li))}),bi=A.useRef(),Di=function(){clearTimeout(bi.current)},Bi=function(pi){var ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Di(),ua===0?ri(pi):bi.current=setTimeout(function(){ri(pi)},ua*1e3)};A.useEffect(function(){return Di},[]);var zi=A.useState(!1),ca=(0,De.Z)(zi,2),xi=ca[0],vn=ca[1];(0,p.Z)(function(Li){(!Li||_n)&&vn(!0)},[_n]);var jt=A.useState(null),Ln=(0,De.Z)(jt,2),Gn=Ln[0],Ei=Ln[1],Qi=A.useState([0,0]),da=(0,De.Z)(Qi,2),xa=da[0],Ji=da[1],Sa=function(pi){Ji([pi.clientX,pi.clientY])},_i=ur(_n,jn,kt?xa:hr,zt,qe,At,Xn),ai=(0,De.Z)(_i,11),$i=ai[0],ra=ai[1],Ea=ai[2],xs=ai[3],oi=ai[4],Ca=ai[5],ga=ai[6],Qa=ai[7],_s=ai[8],is=ai[9],Da=ai[10],Ni=ae(Bn,Te,Ie,Fe),la=(0,De.Z)(Ni,2),ps=la[0],as=la[1],ts=ps.has("click"),Wi=as.has("click")||as.has("contextMenu"),ms=(0,o.Z)(function(){xi||Da()}),aa=function(){hi.current&&kt&&Wi&&Bi(!1)};We(_n,hr,jn,ms,aa),(0,p.Z)(function(){ms()},[xa,zt]),(0,p.Z)(function(){_n&&!(qe!=null&&qe[zt])&&ms()},[JSON.stringify(At)]);var co=A.useMemo(function(){var Li=Ee(qe,Z,is,kt);return Y()(Li,Pe==null?void 0:Pe(is))},[is,Pe,qe,Z,kt]);A.useImperativeHandle(D,function(){return{nativeElement:Fr.current,forceAlign:ms}});var Qs=A.useState(0),_o=(0,De.Z)(Qs,2),fs=_o[0],Bo=_o[1],ss=A.useState(0),Yn=(0,De.Z)(ss,2),La=Yn[0],io=Yn[1],Zi=function(){if(Gt&&hr){var pi=hr.getBoundingClientRect();Bo(pi.width),io(pi.height)}},ta=function(){Zi(),ms()},Hi=function(pi){vn(!1),Da(),tt==null||tt(pi)},ki=function(){return new Promise(function(pi){Zi(),Ei(function(){return pi})})};(0,p.Z)(function(){Gn&&(Da(),Gn(),Ei(null))},[Gn]);function ya(Li,pi,ua,gs){en[Li]=function(Oa){var Ns;gs==null||gs(Oa),Bi(pi,ua);for(var Vs=arguments.length,vo=new Array(Vs>1?Vs-1:0),Ps=1;Ps<Vs;Ps++)vo[Ps-1]=arguments[Ps];(Ns=on[Li])===null||Ns===void 0||Ns.call.apply(Ns,[on,Oa].concat(vo))}}(ts||Wi)&&(en.onClick=function(Li){var pi;hi.current&&Wi?Bi(!1):!hi.current&&ts&&(Sa(Li),Bi(!0));for(var ua=arguments.length,gs=new Array(ua>1?ua-1:0),Oa=1;Oa<ua;Oa++)gs[Oa-1]=arguments[Oa];(pi=on.onClick)===null||pi===void 0||pi.call.apply(pi,[on,Li].concat(gs))}),Kr(_n,Wi,hr,jn,Mt,wr,Hn,Bi);var Na=ps.has("hover"),Rs=as.has("hover"),cs,Es;Na&&(ya("onMouseEnter",!0,ct,function(Li){Sa(Li)}),ya("onPointerEnter",!0,ct,function(Li){Sa(Li)}),cs=function(pi){(_n||xi)&&jn!==null&&jn!==void 0&&jn.contains(pi.target)&&Bi(!0,ct)},kt&&(en.onMouseMove=function(Li){var pi;(pi=on.onMouseMove)===null||pi===void 0||pi.call(on,Li)})),Rs&&(ya("onMouseLeave",!1,Ke),ya("onPointerLeave",!1,Ke),Es=function(){Bi(!1,Ke)}),ps.has("focus")&&ya("onFocus",!0,Bt),as.has("focus")&&ya("onBlur",!1,Vt),ps.has("contextMenu")&&(en.onContextMenu=function(Li){var pi;hi.current&&as.has("contextMenu")?Bi(!1):(Sa(Li),Bi(!0)),Li.preventDefault();for(var ua=arguments.length,gs=new Array(ua>1?ua-1:0),Oa=1;Oa<ua;Oa++)gs[Oa-1]=arguments[Oa];(pi=on.onContextMenu)===null||pi===void 0||pi.call.apply(pi,[on,Li].concat(gs))}),Ot&&(en.className=Y()(on.className,Ot));var rs=(0,we.Z)((0,we.Z)({},on),en),So={},go=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];go.forEach(function(Li){Br[Li]&&(So[Li]=function(){for(var pi,ua=arguments.length,gs=new Array(ua),Oa=0;Oa<ua;Oa++)gs[Oa]=arguments[Oa];(pi=rs[Li])===null||pi===void 0||pi.call.apply(pi,[rs].concat(gs)),Br[Li].apply(Br,gs)})});var eo=A.cloneElement(Ur,(0,we.Z)((0,we.Z)({},rs),So)),zs={x:Ca,y:ga},Os=yi?(0,we.Z)({},yi!==!0?yi:{}):null;return A.createElement(A.Fragment,null,A.createElement(O.Z,{disabled:!_n,ref:Zr,onResize:ta},A.createElement(J,{getTriggerDOMNode:_t},eo)),A.createElement(Ce.Provider,{value:Hr},A.createElement(G,{portal:z,ref:Mi,prefixCls:Z,popup:ot,className:Y()(Yr,co),style:It,target:hr,onMouseEnter:cs,onMouseLeave:Es,onPointerEnter:cs,zIndex:dt,open:_n,keepDom:xi,fresh:an,onClick:kn,mask:Mt,motion:ti,maskMotion:ui,onVisibleChanged:Hi,onPrepare:ki,forceRender:ue,autoDestroy:Lr,getPopupContainer:re,align:is,arrow:Os,arrowPos:zs,ready:$i,offsetX:ra,offsetY:Ea,offsetR:xs,offsetB:oi,onAlign:ms,stretch:Gt,targetWidth:fs/Qa,targetHeight:La/_s})))});return v}var Nt=Se(Me.Z)},50304:function(){"use strict"},8797:function(bn,Zt,g){"use strict";var we=g(59301),De=g(93314),se=g(3113),Me=Object.defineProperty,ie=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,o=(A,m,S)=>m in A?Me(A,m,{enumerable:!0,configurable:!0,writable:!0,value:S}):A[m]=S,L=(A,m)=>{for(var S in m||(m={}))I.call(m,S)&&o(A,S,m[S]);if(O)for(var S of O(m))n.call(m,S)&&o(A,S,m[S]);return A},p=(A,m)=>ie(A,Y(m));const a=({img:A,buttonProps:m={},styles:S={},customText:$,ButtonText:F,ButtonClick:H,Buttonclass:V,ButtonTwo:ee,imgStyles:B,loading:G=!1})=>we.createElement("section",{className:"tc animated fadeIn",style:L(L({},{color:"#999",margin:"100px auto",visibility:G?"hidden":"visible"}),S)},we.createElement("img",{src:A||De,style:p(L({},B),{pointerEvents:"none",userSelect:"none"})}),we.createElement("p",{className:"mt20 font14"},$||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),F&&we.createElement(se.ZP,L({className:V,onClick:H},m),F),ee&&ee);Zt.Z=a},23210:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return V}});var we=g(59301),De={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=g(3113),Me=g(70557),ie=g(23954),Y=g(6848),O=g(955),I=g(94941),n=g(8797),o=g(3294),L=g(19381),p=g(59301),a=Object.defineProperty,A=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,$=(ee,B,G)=>B in ee?a(ee,B,{enumerable:!0,configurable:!0,writable:!0,value:G}):ee[B]=G,F=(ee,B)=>{for(var G in B||(B={}))m.call(B,G)&&$(ee,G,B[G]);if(A)for(var G of A(B))S.call(B,G)&&$(ee,G,B[G]);return ee},H=(ee,B,G)=>new Promise((le,J)=>{var be=ae=>{try{Re(G.next(ae))}catch(me){J(me)}},Ce=ae=>{try{Re(G.throw(ae))}catch(me){J(me)}},Re=ae=>ae.done?le(ae.value):Promise.resolve(ae.value).then(be,Ce);Re((G=G.apply(ee,B)).next())}),V=({editOffice:ee="view",data:B,theme:G,type:le,filename:J,monacoEditor:be,className:Ce,style:Re,close:ae,onClose:me,hasMask:T,disabledDownload:Ee,onImgDimensions:oe,showNodata:he,recordInfo:ve})=>{const[_,P]=(0,we.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[X,pe]=(0,we.useState)(""),[Je,at]=(0,we.useState)(),nt=window.ENV==="build"?"/react/build":"",Lt=location.host.startsWith("localhost")?o.Z.PROXY_SERVER:o.Z.API_SERVER,Jt=10*(1024*1024),We=(0,we.useRef)();B!=null&&B.startsWith("/api")&&le!=="txt"&&(B=o.Z.API_SERVER+B);const Cr=Se=>Se.substring(Se.lastIndexOf("/")+1).split(".").pop();J&&be&&(be.filename=J),(0,we.useEffect)(()=>{var Se,Nt;const z=(Nt=(Se=document.cookie)==null?void 0:Se.replace(/\s/g,""))==null?void 0:Nt.split(";");z==null||z.map(v=>{let h=v.split("=");h[0]==="_educoder_session"&&pe(h[1])})},[]),(0,we.useEffect)(()=>{le==="office"&&(B.indexOf("bigfilescdn.")>-1||B.indexOf("bigfiles1")>-1?at({url:B,fileType:Cr(B),model:B.indexOf("model=edit")?"edit":"view"}):Er())},[le,B]);const Er=()=>H(void 0,null,function*(){console.log("data:",B);let Se=B;B.startsWith("http")||(Se=location.origin+Se);let Nt=new URL(Se).pathname.split("/").pop();const z=yield(0,I.gJ)({attachment_id:Nt});z.url=Lt+z.url,at(z)}),Kr=()=>{if(B.startsWith("http")||B.startsWith("blob:")){_r();return}(0,O.Sv)(J||"educoder",B,J)},_r=()=>{ve&&(0,L.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,O.Nd)(J||"educoder",decodeURIComponent(B))};return p.createElement("div",{style:F({},Re||{}),className:`${T&&De.bgBlack} ${le?De.wrp:"hide"}`},ae&&p.createElement("div",{className:De.close,ref:We},!!oe&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>We.current},p.createElement("span",{onClick:()=>{me(),oe()}},p.createElement("i",{className:"icon-yulanpizhu"}))),!Ee&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>We.current},p.createElement("span",{onClick:_r},p.createElement("i",{className:"icon-quxiaozhiding"}))),p.createElement(Y.Z,{title:"\u5173\u95ED",getPopupContainer:()=>We.current},p.createElement("span",{className:"",onClick:me},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${De[Ce]} ${Ce} ${De.monaco} ${le==="txt"?"show":"hide"}`},le==="txt"&&p.createElement(p.Fragment,null,p.createElement(ie.ZP,F({},be)))),le==="audio"&&p.createElement("audio",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${B}`,autoPlay:!0}),le==="video"&&p.createElement(p.Fragment,null,(B==null?void 0:B.indexOf("http"))>-1?p.createElement("video",{controls:!0,src:`${B}`,autoPlay:!0}):p.createElement("video",{controls:!0,src:`data:video/mp4;base64,${B}`,autoPlay:!0})),le==="office"&&Je&&p.createElement("iframe",{src:`${nt}/office.html?key=${Je.key}&url=${btoa(Je.url)}&callbackUrl=${Lt+(Je.callbackUrl||"")}&fileType=${Je.fileType}&title=${Je.title||""}&model=${ee}&officeServer=${o.Z.ONLYOFFICE}&disabledDownload=${!!Ee}`}),le==="html"&&p.createElement("iframe",{src:B+"&disposition=inline"}),le==="pdf"&&p.createElement("iframe",{src:`${nt}/js/pdfview/index.html?filename=${J||"educoder.pdf"}&url=${encodeURIComponent(B)}&disabledDownload=${!!Ee}`}),le==="image"&&p.createElement("img",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:image/png;base64,"}${B}`}),(le==="other"||le==="download")&&p.createElement(p.Fragment,null,he?p.createElement(n.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:p.createElement(se.ZP,{icon:p.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Kr,disabled:Ee},"\u4E0B\u8F7D")}):p.createElement(se.ZP,{type:"primary",size:"middle",onClick:Kr,disabled:Ee},p.createElement(Me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(bn,Zt,g){"use strict";g.d(Zt,{z:function(){return le},Z:function(){return J}});var we=g(59301),De=g(50304),se=g(24768),Me=g(64018),ie=g(40846),Y=g(3294),O=g(955),I=g(15342),n=g(1012),o=g(23210),L=g(59301),a=({html:be})=>{const Ce=(0,we.useRef)(null),Re=(0,we.useRef)(null),ae=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,we.useEffect)(()=>{const me=Ce.current.attachShadow({mode:"open"});Re.current=document.createElement("div"),Re.current.className="markdown-body",Re.current.innerHTML=be,me.appendChild(Re.current);const T=document.createElement("style");return T.textContent=ae,me.appendChild(T),()=>{me.innerHTML=""}},[]),(0,we.useEffect)(()=>{Re.current&&(Re.current.innerHTML=be)},[be]),L.createElement("div",{ref:Ce})},A=Object.defineProperty,m=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,F=(be,Ce,Re)=>Ce in be?A(be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Re}):be[Ce]=Re,H=(be,Ce)=>{for(var Re in Ce||(Ce={}))S.call(Ce,Re)&&F(be,Re,Ce[Re]);if(m)for(var Re of m(Ce))$.call(Ce,Re)&&F(be,Re,Ce[Re]);return be};const V="@\u2581\u2581@",ee="@\u2581@",B=/<pre[^>]*>/g;function G(be){let Ce=document.createElement("div");return Ce.innerHTML=be,Ce.childNodes.length===0?"":Ce.childNodes[0].nodeValue}const le=(be,Ce)=>{be=be||"";const Re=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ae=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,T=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ce?be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Re,(Ee,oe,he,ve,_,P,X)=>{const pe=oe||ve||P,Je=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+Je+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(be=be.replace(T,(Ee,oe,he,ve,_,P,X)=>{const pe=oe||ve||P,Je=he||_||X||"?";return Y.Z.API_SERVER+"/attachments/download/"+pe+Je+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(Re,(Ee,oe,he,ve,_,P,X)=>{const pe=oe||ve||P,Je=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+Je+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(ae,(Ee,oe,he,ve,_)=>{const P=oe||ve,X=he||_||"";return'"'+Y.Z.API_SERVER+"/api/attachments/"+P+X+P+X+"&t="+(0,O.Jn)(P,Date.now())}).replace(me,(Ee,oe,he,ve,_)=>{const P=oe||ve,X=he||_||"";return"("+Y.Z.API_SERVER+"/files/uploads/"+P+X+P+X+"&t="+(0,O.Jn)(P,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),be)};var J=({value:be="",className:Ce,showTextOnly:Re,showLines:ae,style:me={},stylesPrev:T={},highlightKeywords:Ee,showProgramFill:oe,isProgramFill:he,disabledFill:ve=!1,programFillValue:_,onFillChange:P=Je=>{},onFillBlur:X=()=>{},onFillFocus:pe=()=>{}})=>{let Je=String(be);const[at,nt]=(0,we.useState)(""),[Lt,ur]=(0,we.useState)("office"),[Jt,We]=(0,we.useState)([]),Cr=(0,we.useRef)("a"+(0,n.Z)()),Er={},Kr=(Te,Ie,Fe)=>{const ze=document.createElement(Te===ee?"input":"textarea");ze.style.width="100%",ze.style.height=Te===ee?"40px":"151px",ze.rows=5,ze.spellcheck=!1,ze.name="edu-program-fill",ze.placeholder="\u8BF7\u8F93\u5165",ze.dataset.id=Ie;const pt=Object.keys(Er).length;return Er[pt]=ze,`<span class="edu-program-fill-wrap ${Te===ee?"":"show"}" style="width:${Te===ee?"400px":"100%"}" title=${Fe||""}><span>${ze.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function _r(Te){return Te=Te.replace(/!\[.*?\]\(.*?\)/g,""),Te=Te.replace(/\[.*?\]\(.*?\)/g,""),Te=Te.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Te=Te.replace(/<embed.*?>/g,""),Te=Te.replace(/<img.*?>/g,""),Te=Te.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Te=Te.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Te=Te.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Te=Te.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Te}const Se=Te=>Te.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ie,Fe){let ze=Fe.replace(/(\n|\r)/g,"").split("}"),pt=[];return ze.map($e=>{$e!=""&&pt.push(`.${Cr.current} ${$e}`)}),`<style>${pt.join("}")}</style>`}),Nt=(0,we.useMemo)(()=>{try{const ze=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,tt=/\(\/attachments\/download\//g;Je=Je.replace(tt,"("+Y.Z.API_SERVER+"/attachments/download/").replace(ze,"("+Y.Z.API_SERVER+"/api/attachments/").replace(pt,'"'+Y.Z.API_SERVER+"/api/attachments/").replace($e,'"'+Y.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(ze){}if(oe){let ze=-1;return Je=Je.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(pt,$e,tt){var ct;return++ze,Kr(pt,ze,(ct=_==null?void 0:_[ze])==null?void 0:ct.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Se(Je||"")}</pre>`}let Te=Se(Je);Te=(0,se.ZP)(Te);const Ie=(0,se.ez)();Je.match(/\[TOC\]/)&&(Te=Te.replace("<p>[TOC]</p>",(0,se.Qv)()),(0,se.Iy)()),Te=Te.replace(/(__special_katext_id_\d+__)/g,(ze,pt)=>{const{type:$e,expression:tt}=Ie[pt];return(0,I.renderToString)(G(tt)||"",{displayMode:$e==="block",throwOnError:!1,output:"html"})}),Te=Te.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const Fe=document.createElement("div");if(Fe.innerHTML=Te,Re)return Fe.innerText;if(Ee){const ze=Ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return D(Fe,ze),Fe.innerHTML}return setTimeout(()=>N(),500),Fe.innerHTML},[Je,Ee]);(0,we.useEffect)(()=>{fe.current&&fe.current.querySelectorAll(["input","textarea"]).forEach(Ie=>{Ie.oninput=z,Ie.onblur=v,Ie.onfocus=h})},[Jt]),(0,we.useEffect)(()=>{var Te,Ie,Fe,ze,pt;if(_!=null&&_.length)try{const $e=fe.current.querySelectorAll(".edu-program-fill-score"),tt=fe.current.querySelectorAll('[name="edu-program-fill"]');for(const[ct,Ge]of tt.entries())Ge.value=((Te=_==null?void 0:_[ct])==null?void 0:Te.value)||"",((Ie=_==null?void 0:_[ct])==null?void 0:Ie.type)==="warning"?Ge.className="program-fill-warning":((Fe=_==null?void 0:_[ct])==null?void 0:Fe.type)==="success"?Ge.className="program-fill-success":Ge.className="";for(const[ct,Ge]of $e.entries())Ge.innerHTML=(ze=_==null?void 0:_[ct])!=null&&ze.score?`${(pt=_==null?void 0:_[ct])==null?void 0:pt.score}\u5206`:"";We(_)}catch($e){console.log($e,"error")}},[_]);const z=Te=>{Jt[Te.target.dataset.id]=Jt[Te.target.dataset.id]||{},Jt[Te.target.dataset.id].value=Te.target.value,We([...Jt]),P(Jt,Te.target.dataset.id)},v=Te=>{Jt[Te.target.dataset.id]=Jt[Te.target.dataset.id]||{},Jt[Te.target.dataset.id].value=Te.target.value,We([...Jt]),X(Jt,Te.target.dataset.id)},h=Te=>{Jt[Te.target.dataset.id]=Jt[Te.target.dataset.id]||{},Jt[Te.target.dataset.id].value=Te.target.value,We([...Jt]),pe(Jt,Te.target.dataset.id)};function D(Te,Ie){return Te.childNodes.forEach(Fe=>{var ze;if(Fe.childNodes.length>0)D(Fe,Ie);else if(Fe.nodeName!=="IMG")if(Fe.innerHTML)Fe.innerHTML=(ze=Fe.innerHTML)==null?void 0:ze.replace(new RegExp(Ie,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const pt=document.createElement("span");pt.innerHTML=Fe.textContent.replace(new RegExp(Ie,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Fe.replaceWith(pt)}})}const fe=(0,we.useRef)();se.jb.WebkitLineClamp=ae,ae&&(me=H(H({},me),se.jb));function Z(Te){let Ie=Te.target;if(Ie.tagName.toUpperCase()==="A"){let Fe=Ie.getAttribute("href");if(Fe.indexOf("office")>-1)Te.preventDefault(),nt(Fe),ur("office");else if(Fe.indexOf("application/pdf")>-1)Te.preventDefault(),nt(Fe),ur("pdf");else if(Fe.indexOf("text/html")>-1)Te.preventDefault(),nt(Fe),ur("html");else if(Fe.startsWith("#")){Te.preventDefault();let ze=document.getElementById(Fe.replace("#",""));ze&&ze.scrollIntoView(!0)}}}const N=()=>{var Te;const Ie=(Te=fe.current)==null?void 0:Te.querySelectorAll("video");Ie==null||Ie.forEach(Fe=>{if(Fe.oncontextmenu=()=>!1,Fe.src.indexOf(".m3u8")>-1&&!Fe.canPlayType("application/vnd.apple.mpegurl")){if(ie.ZP.isSupported()){var ze=new ie.ZP;ze.loadSource(Fe.src),ze.attachMedia(Fe)}}})};(0,we.useEffect)(()=>{if(fe.current&&Nt&&Nt.match(B)&&window.PR.prettyPrint(),fe.current)return fe.current.addEventListener("click",Z),()=>{var Te;(Te=fe.current)==null||Te.removeEventListener("click",Z),(0,se.AL)(),(0,se.Iy)()}},[Nt,fe.current,Z]),(0,we.useEffect)(()=>{var Te;const Ie=Fe=>{Fe.preventDefault(),Fe.clipboardData.setData("text",window.getSelection().toString())};return(Te=fe.current)==null||Te.addEventListener("copy",Ie),()=>{var Fe;(Fe=fe.current)==null||Fe.removeEventListener("copy",Ie)}},[fe.current]);const te=Te=>/<style[\s\S]*?>/i.test(Te||"");return we.createElement(we.Fragment,null,Re&&we.createElement("div",{ref:fe},Nt),!Re&&!te(Nt)&&we.createElement("div",{ref:fe,style:H({},me),className:`${Ce||""} ${ve?"disabled-fill":""} markdown-body ${Cr.current}`,dangerouslySetInnerHTML:{__html:Nt}}),!Re&&te(Nt)&&we.createElement(a,{html:Nt}),we.createElement(o.Z,{close:!0,data:at,type:at!=null&&at.length?Lt:"",style:H({},T),onClose:()=>nt("")}))}},23954:function(bn,Zt,g){"use strict";g.d(Zt,{SV:function(){return fe},ZP:function(){return D}});var we=g(59301),De=g(76374);const se={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Me={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ie={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},Y={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},O={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var I=g(53184),n=g.n(I),o=Object.defineProperty,L=Object.defineProperties,p=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,S=(Z,N,te)=>N in Z?o(Z,N,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[N]=te,$=(Z,N)=>{for(var te in N||(N={}))A.call(N,te)&&S(Z,te,N[te]);if(a)for(var te of a(N))m.call(N,te)&&S(Z,te,N[te]);return Z},F=(Z,N)=>L(Z,p(N)),H=(Z,N,te)=>new Promise((Te,Ie)=>{var Fe=$e=>{try{pt(te.next($e))}catch(tt){Ie(tt)}},ze=$e=>{try{pt(te.throw($e))}catch(tt){Ie(tt)}},pt=$e=>$e.done?Te($e.value):Promise.resolve($e.value).then(Fe,ze);pt((te=te.apply(Z,N)).next())});const V={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ee=(Z,N)=>N.map(te=>({label:te,kind:Z.languages.CompletionItemKind.Keyword,insertText:te})),B=Z=>Object.keys(V.tables).map(N=>({label:N,kind:Z.languages.CompletionItemKind.Variable,insertText:N})),G=(Z,N)=>{const te=V.tables[Z];return te?te.map(Te=>({label:Te,kind:N.languages.CompletionItemKind.Field,insertText:Te})):[]};function le(Z,N,te,Te,Ie){let Fe=N.getWordUntilPosition(te),ze={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Fe.startColumn,endColumn:Fe.endColumn},pt=Te.map($e=>({label:$e,kind:Z.languages.CompletionItemKind.Keyword,insertText:$e,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}));return Ie.map($e=>{pt.push(F($({},$e),{range:ze}))}),pt}var J=Z=>{V.languages.map(Ie=>(Z.languages.registerDocumentFormattingEditProvider(Ie,{provideDocumentFormattingEdits(Fe,ze,pt){return H(this,null,function*(){const $e=n()(Fe.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Fe.getFullModelRange(),text:$e}]})}}),Ie));const N=ie.quickKey.map(Ie=>({label:Ie.label,kind:Z.languages.CompletionItemKind.Method,insertText:Ie.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet})),te=Y.quickKey.map(Ie=>({label:Ie.label,kind:Z.languages.CompletionItemKind.Method,insertText:Ie.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Te=Me.quickKey.map(Ie=>({label:Ie.label,kind:Z.languages.CompletionItemKind.Method,insertText:Ie.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Z.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...ie.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...ie.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn};return{suggestions:[...se.keywords.map($e=>({label:$e,kind:Z.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...Me.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...Me.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...O.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...O.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...Y.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...Y.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}})};const be="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ce=Object.defineProperty,Re=(Z,N,te)=>N in Z?Ce(Z,N,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[N]=te,ae=(Z,N,te)=>Re(Z,typeof N!="symbol"?N+"":N,te);const me=class ZA{constructor(N,te,Te){this.placeholder=N,this.editor=te,this.monaco=Te,te.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ZA.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ae(me,"ID","editor.widget.placeholderHint");var Ee=me,oe=g(96236),he=g(8591),ve=g(6848),_=g(89392),P=g(34604),X=g(56102),pe=Object.defineProperty,Je=Object.defineProperties,at=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,Jt=(Z,N,te)=>N in Z?pe(Z,N,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[N]=te,We=(Z,N)=>{for(var te in N||(N={}))Lt.call(N,te)&&Jt(Z,te,N[te]);if(nt)for(var te of nt(N))ur.call(N,te)&&Jt(Z,te,N[te]);return Z},Cr=(Z,N)=>Je(Z,at(N)),Er=(Z,N)=>{var te={};for(var Te in Z)Lt.call(Z,Te)&&N.indexOf(Te)<0&&(te[Te]=Z[Te]);if(Z!=null&&nt)for(var Te of nt(Z))N.indexOf(Te)<0&&ur.call(Z,Te)&&(te[Te]=Z[Te]);return te},Kr=(Z,N,te)=>new Promise((Te,Ie)=>{var Fe=$e=>{try{pt(te.next($e))}catch(tt){Ie(tt)}},ze=$e=>{try{pt(te.throw($e))}catch(tt){Ie(tt)}},pt=$e=>$e.done?Te($e.value):Promise.resolve($e.value).then(Fe,ze);pt((te=te.apply(Z,N)).next())});function _r(Z){return/^\d+$/.test(Z)?`${Z}px`:Z}function Se(){}let Nt=!1;const z={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function v(Z=[]){let N=Z;if(Array.isArray(Z)){for(let te=0;te<Z.length;te++){let Te=z[Z[te]];if(Te)return Te}return N[0]}return z[N]||N}let h=null;var D=Z=>{var N=Z,{width:te="100%",height:Te="100%",value:Ie,language:Fe="javascript",style:ze={},options:pt={},overrideServices:$e={},theme:tt="vs-dark",onEditBlur:ct,isCopy:Ge=!1,onSave:Ke,autoHeight:Bt=!1,forbidCopy:Vt=!1,onChange:Mt=Se,editorDidMount:mr=Se,onFocus:wr=Se,onBreakPoint:re=Se,breakPointValue:ue=[],filename:rr="educoder.txt",errorLine:Qe,errorContent:ot="",highlightLine:Yr,openBreakPoint:It=!1,placeholder:zt=""}=N,qt=Er(N,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const qe=(0,we.useRef)(),At=(0,we.useRef)({}),dt=(0,we.useRef)(),Gt=(0,we.useRef)(),Pe=(0,we.useRef)([]),an=(0,we.useRef)(!1),kt=(0,we.useRef)(),kn=(0,we.useRef)(),Xn=(0,we.useRef)(!1),[yi,ji]=(0,we.useState)(!1);function On(){let Hr;return qe.current&&(Hr=new De.Z(zr=>{for(let Tn of zr)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&At.current.instance.layout()}),Hr.observe(qe.current)),Hr}function $n(){he.ZP.warning({content:decodeURIComponent(be),key:"monaco-editor-tip"})}const Yt=()=>{let Hr=At.current.instance;if(Ie!=null&&Hr&&yi){const zr=Hr.getModel();zr&&Ie!==zr.getValue()&&(Nt=!0,zr.setValue(Ie),Hr.layout(),Nt=!1)}};(0,we.useEffect)(()=>{const Hr=P.Z.subscribe("formatDocument",zr=>{var Tn;let Sn=At.current.instance;(Tn=Sn==null?void 0:Sn.getAction)==null||Tn.call(Sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=zr=>{Mt(zr)},Hr},[]),(0,we.useEffect)(()=>{var Hr;let zr=At.current.instance;Gt.current&&clearTimeout(Gt.current),Gt.current=setTimeout(()=>{Yt()},500),Ie&&(Ie!=null&&Ie.length)&&((Hr=zr==null?void 0:zr.updateOptions)==null||Hr.call(zr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ie,yi,At.current]),(0,we.useEffect)(()=>{if(Qe&&At.current&&At.current.instance){let zr=At.current.instance;zr.changeViewZones(function(Tn){var Sn=document.createElement("div");Sn.style.padding="10px 20px",Sn.style.width="calc(100% - 20px)",Sn.className="my-error-line-wrp",Sn.innerHTML=ot,Tn.addZone({afterLineNumber:Qe||11,heightInLines:3,domNode:Sn})});var Hr={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};zr.addOverlayWidget(Hr),zr.revealPositionInCenter({lineNumber:20,column:1})}},[Qe,At.current,yi]);const jr=(Hr="",zr)=>{if(!Hr||Hr.trim()==="")return!0;const Sn=At.current.instance.getModel().getLineTokens(zr);let jn=!1;for(let Vn=0;Vn<2;Vn++)Sn.getStandardTokenType(Vn)===1&&(jn=!0);return jn};(0,we.useEffect)(()=>{var Hr;const zr=(Hr=At.current)==null?void 0:Hr.instance;if(zr&&yi&&Vt){const Tn=zr.onDidBlurEditorWidget(()=>{Xn.current=!1}),Sn=zr.onDidFocusEditorText(()=>{Xn.current=!0});return()=>{Tn.dispose(),Sn.dispose()}}},[At.current,yi,Vt]),(0,we.useEffect)(()=>{var Hr;if((Hr=At.current)!=null&&Hr.instance&&yi&&It){let zr=At.current.instance,Tn=zr.getModel();if(!Tn)return;(()=>{var on;let en=[],Hn=[];const ti=Tn.getAllDecorations();for(let Ri of ti)Ri.options.className==="highlighted-line"&&(en.push((on=Ri==null?void 0:Ri.range)==null?void 0:on.startLineNumber),Hn.push(Ri==null?void 0:Ri.id));if(Yr===en[0])return;Tn.deltaDecorations(Hn,[]);const ui=Tn.getLineCount();Yr&&Yr<=ui&&(zr.deltaDecorations([],[{range:new h.Range(Yr,1,Yr,Tn.getLineMaxColumn(Yr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),zr.revealLineInCenter(Yr))})();const jn=(on=!1)=>{var en;let Hn=[],ti=[];const ui=Tn.getAllDecorations();for(let Ri of ui)Ri.options.linesDecorationsClassName==="breakpoints-select"&&(Hn.push((en=Ri==null?void 0:Ri.range)==null?void 0:en.startLineNumber),ti.push(Ri==null?void 0:Ri.id));if(on)return{lines:Hn,ids:ti};re(Hn)},Vn=on=>Kr(void 0,null,function*(){let en={range:new h.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Tn.deltaDecorations([],[en]),jn()}),Mi=on=>Kr(void 0,null,function*(){let en=[];const Hn=zr.getLineDecorations(on);for(let ti of Hn)ti.options.linesDecorationsClassName==="breakpoints-select"&&en.push(ti.id);yield Tn.deltaDecorations(en,[]),jn()}),Ai=on=>{let en=zr.getLineDecorations(on);for(let Hn of en)if(Hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_.isEqual)(ue,jn(!0).lines)){Tn.deltaDecorations(jn(!0).ids,[]);const on=ue.map(en=>({range:new h.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Tn.deltaDecorations([],on)}const wn=zr.onDidChangeModelContent(on=>{let en=zr.getPosition();if(en){let Hn=en.lineNumber;clearTimeout(kn.current),kn.current=setTimeout(()=>{jr(Tn.getLineContent(Hn),Hn)?Mi(Hn):Ai(Hn)?(Mi(Hn),Vn(Hn)):jn()},100)}}),hr=zr.onMouseDown(on=>{var en,Hn,ti;if(on.target.detail&&((ti=(Hn=(en=on.target)==null?void 0:en.element)==null?void 0:Hn.className)!=null&&ti.includes("line-numbers"))){let ui=on.target.position.lineNumber;if(jr(Tn.getLineContent(ui),ui))return;Ai(ui)?Mi(ui):Vn(ui)}}),br=on=>{let en={range:new h.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Pe.current=zr.deltaDecorations(Pe.current,[en])},Fr=()=>{Pe.current=zr.deltaDecorations(Pe.current,[])},Zr=zr.onMouseMove(on=>{var en,Hn,ti;if(Fr(),on.target.detail&&((ti=(Hn=(en=on.target)==null?void 0:en.element)==null?void 0:Hn.className)!=null&&ti.includes("line-numbers"))){let ui=on.target.position.lineNumber;if(jr(Tn.getLineContent(ui),ui))return;br(ui)}}),Ur=zr.onMouseLeave(()=>{Fr()});return()=>{wn.dispose(),hr.dispose(),Zr.dispose(),Ur.dispose()}}},[At.current,yi,ue,Yr,It,Fe]),(0,we.useEffect)(()=>{var Hr;(Hr=At.current)!=null&&Hr.instance&&It&&At.current.instance.setPosition({lineNumber:0,column:0})},[Yr]);function Jr(){let Hr=At.current.instance;if(Hr){const zr=Hr.getSelection(),Tn=At.current.pastePos||{},Sn=new h.Range(Tn.startLineNumber||zr.endLineNumber,Tn.startColumn||zr.endColumn,Tn.endLineNumber||zr.endLineNumber,Tn.endColumn||zr.endColumn);setTimeout(()=>{Hr.executeEdits("",[{range:Sn,text:""}])},300)}}function Ot(Hr){(window.navigator.platform.match("Mac")?Hr.metaKey:Hr.ctrlKey)&&Hr.keyCode==83&&(Hr.preventDefault(),Ke())}const _t=()=>{if(Bt&&At.current.instance){const Hr=At.current.instance.getContentHeight();Qn(Hr<Te?Te:Hr)}else Qn(Te)};function Br(Hr){var zr=document.createEvent("MouseEvents");zr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Hr.dispatchEvent(zr)}const Lr=Hr=>{if(!Xn.current)return;const{keyCode:zr,ctrlKey:Tn,metaKey:Sn,target:jn,type:Vn}=Hr;return(Vn==="paste"||(zr===67||zr===86)&&(Sn||Tn))&&jn.nodeName==="TEXTAREA"&&($n(),Hr.preventDefault()),!1};function In(Hr,zr){var Tn=window.URL||window.webkitURL||window,Sn=new Blob([zr]),jn=document.createElementNS("http://www.w3.org/1999/xhtml","a");jn.href=Tn.createObjectURL(Sn),jn.download=Hr,Br(jn)}(0,we.useEffect)(()=>{_t()},[_t]),(0,we.useEffect)(()=>{qe.current&&!yi&&Promise.all([g.e(8909),g.e(3267)]).then(g.bind(g,71448)).then(Hr=>{try{h=Hr,At.current.instance=h.editor.create(qe.current,{value:Ie,language:v(Fe),theme:tt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},$e);const zr=At.current.instance;let jn=[...oe.BH._menuItems].find(wn=>wn[0]._debugName=="EditorContext")[1],Vn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Mi=(wn,hr)=>{var br,Fr;let Zr=wn._first;do hr.includes((Fr=(br=Zr.element)==null?void 0:br.command)==null?void 0:Fr.id)&&wn._remove(Zr);while(Zr=Zr.next)};if(mr(zr,h),setTimeout(()=>{_t(),At.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{In(rr||"educoder.txt",zr.getValue())}})},500),At.current.subscription=zr.onDidChangeModelContent(wn=>{an.current?clearTimeout(kt.current):(_t(),Mt(zr.getValue(),wn)),kt.current=setTimeout(()=>{an.current=!1},500)}),window.Monaco||J(h,v(Fe)),Vt&&(Mi(jn,Vn),qe.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Lr),window.removeEventListener("paste",Lr),window.addEventListener("keydown",Lr),window.addEventListener("paste",Lr)),window.Monaco=h,ct&&zr.onDidBlurEditorWidget(()=>{ct(zr.getValue())}),wr&&zr.onDidFocusEditorText(()=>{wr(zr.getValue())}),Vt)try{zr.onDidPaste(wn=>{const hr=zr.getSelection(),br=At.current.pastePos||{},Fr=new h.Range(br.startLineNumber||hr.endLineNumber,br.startColumn||hr.endColumn,br.endLineNumber||hr.endLineNumber,br.endColumn||hr.endColumn);zr.executeEdits("",[{range:wn.range,text:""}])})}catch(wn){}let Ai=On();return zt&&typeof zt=="string"&&new Ee(zt,zr,h),ji(!0),()=>{const wn=At.current.instance;wn.dispose();const hr=wn.getModel();hr&&hr.dispose(),At.current.subscription&&At.current.subscription.dispose(),Ai.unobserve(qe.current)}}catch(zr){}})},[]),(0,we.useEffect)(()=>{if(At.current.instance&&yi)return document.addEventListener("keydown",Ot,!1),()=>{document.removeEventListener("keydown",Ot)}},[Ke,yi]),(0,we.useEffect)(()=>{let Hr=At.current.instance;if(Hr&&yi){let zr=v(Fe);h.editor.setModelLanguage(Hr.getModel(),zr)}},[Fe,yi]),(0,we.useEffect)(()=>{At.current.instance&&yi&&h.editor.setTheme(tt)},[tt,yi]),(0,we.useEffect)(()=>{let Hr=At.current.instance;dt.current=pt,Hr&&yi&&(Hr.updateOptions(We({},pt)),setTimeout(()=>{Hr.getModel().updateOptions(We({},pt))},200))},[JSON.stringify(pt),yi]),(0,we.useEffect)(()=>{let Hr=At.current.instance;Hr&&yi&&Hr.layout()},[te,Te,yi]);const[tn,Bn]=(0,we.useState)(_r(te)),[gn,Qn]=(0,we.useState)(_r(Te)),ei=Cr(We({},ze),{width:tn,height:gn,position:"relative"});return we.createElement("div",{className:"my-monaco-editor",ref:qe,style:ei},Ge&&we.createElement(X.CopyToClipboard,{text:Ie,onCopy:()=>he.ZP.success("\u590D\u5236\u6210\u529F")},we.createElement(ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},we.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},we.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function fe({width:Z="100%",height:N="100%",original:te,modified:Te,language:Ie,options:Fe={}}){const ze=(0,we.useRef)(),[pt,$e]=(0,we.useState)(null);function tt(Bt){let Vt;return ze.current&&(Vt=new De.Z(Mt=>{for(let mr of Mt)(mr.target.offsetHeight>0||mr.target.offsetWidth>0)&&Bt.layout()}),Vt.observe(ze.current)),Vt}(0,we.useEffect)(()=>(ze.current&&Promise.all([g.e(8909),g.e(9404)]).then(g.bind(g,2550)).then(Bt=>{h=Bt;const Vt=h.editor.createDiffEditor(ze.current,Cr(We({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Fe),{wordWrap:!0}));$e(Vt);let Mt=tt(Vt);return()=>{Vt.dispose();const mr=Vt.getModel();mr&&mr.dispose(),Mt.unobserve(ze.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,we.useEffect)(()=>{pt&&pt.setModel({original:h.editor.createModel(te,Ie),modified:h.editor.createModel(Te,Ie)})},[te,Te,Ie,pt]);const ct=_r(Z),Ge=_r(N),Ke={width:ct,height:Ge};return we.createElement("div",{className:"my-diff-editor",ref:ze,style:Ke})}},67059:function(bn,Zt,g){"use strict";g.r(Zt),g.d(Zt,{default:function(){return D}});var we=g(59301),De=g(61186),se=g.n(De),Me=g(86129),ie=g.n(Me),Y=g(99064),O=g(89070),I=g(43418),n=g(8591),o=g(95237),L=g(43604),p=g(3113),a=g(61621),A=g(66104),m=g(28103),S=g(1710),$=g(10777),F=g(57809),H=g(71418),V=g(27812),ee=g(95869),B=g(87169),G=g(26227),le=g(3294),J=g(24065),be=g(955),Ce=g(78241),Re=g(5871),ae=g(92832),me=({defaultValue:fe,onBlur:Z,max:N,className:te="game-score"})=>{const[Te,Ie]=(0,we.useState)(fe);(0,we.useEffect)(()=>{Ie(fe)},[fe]);function Fe(pt){Ie(pt)}function ze(){Te&&(Z(Te>N?N:Te),Ie(null))}return we.createElement(Re.Z,{max:N,min:0,className:te,value:Te,onChange:Fe,onBlur:ze})},T={greyText:"greyText___lvEE6",info:"info___El01Z",label:"label___GmvST",blackContent:"blackContent___FYo0Z",orangeContent:"orangeContent____uYQ3",inputLabel:"inputLabel___ruiZm",tableTitle:"tableTitle___ir3x7",scoreTable:"scoreTable___b9Z37"},Ee=g(59301),oe=(fe,Z,N)=>new Promise((te,Te)=>{var Ie=pt=>{try{ze(N.next(pt))}catch($e){Te($e)}},Fe=pt=>{try{ze(N.throw(pt))}catch($e){Te($e)}},ze=pt=>pt.done?te(pt.value):Promise.resolve(pt.value).then(Ie,Fe);ze((N=N.apply(fe,Z)).next())});const he=({shixunHomeworks:fe,dispatch:Z,classroomList:N,gethomeworkreport:te,homeWorkReport:Te})=>{var Ie,Fe;const{shixunWorkReport:ze}=fe,pt=(0,O.useParams)(),[$e,tt]=(0,we.useState)(!1),[ct,Ge]=(0,we.useState)(!1),[Ke,Bt]=(0,we.useState)(""),[Vt]=Ce.default.useForm(),Mt=()=>oe(void 0,null,function*(){Ge(!0);const re=Vt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${pt.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:re.hidden_comment,comment:re.comment}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),Vt.resetFields(),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),Ge(!1)}),mr=()=>oe(void 0,null,function*(){if(!Ke){n.ZP.warning("\u8BF7\u586B\u5199\u5206\u6570");return}Ge(!0);const re=Vt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${pt.homeworkId}/add_score.json`,{method:"post",body:{comment:re.comment,score:Ke}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),Ge(!1)}),wr=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:160,render:re=>re||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:110},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:160},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:160},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:re=>re||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:90,render:(re,ue)=>Ee.createElement("div",null,Ee.createElement("span",{style:{color:parseFloat(ue.score_full)!==parseFloat(re)?"#E30000":"#53C41B"}},re),"/",ue.score_full)},{title:"\u8C03\u5206",width:100,dataIndex:"action",render:(re,ue)=>(0,J.GJ)()?Ee.createElement(me,{max:ue.score_full,onBlur:rr=>oe(void 0,null,function*(){var Qe;if((0,J.Rm)()&&!((Qe=N.AssistantObject.practice)!=null&&Qe.can_appraise)){n.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}const ot=yield(0,Y.ZP)(`/api/student_works/${pt.homeworkId}/adjust_score.json`,{method:"post",body:{score:rr}});te(),ot.status===0&&n.ZP.success("\u8C03\u5206\u6210\u529F")})}):Te!=null&&Te.is_anonymous?Ee.createElement(Re.Z,{min:0,value:Ke,onChange:rr=>Bt(rr),max:ue.score_full}):re}].filter(re=>Te!=null&&Te.is_anonymous?!["late_penalty","score","absence_penalty"].includes(re.dataIndex):!0);return Ee.createElement(I.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",afterClose:()=>{Vt.resetFields(),Bt("")},confirmLoading:ct,open:fe.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>oe(void 0,null,function*(){var re;if((0,J.Rm)()&&!((re=N.AssistantObject.practice)!=null&&re.can_appraise)){n.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}if(Te!=null&&Te.is_anonymous){mr();return}const ue=Vt.getFieldsValue();JSON.stringify(ue)==="{}"||ue.hidden_comment===""&&ue.comment===""?tt(!0):Mt()}),onCancel:()=>{Z({type:"shixunHomeworks/setActionTabs",payload:{}})}},Ee.createElement(o.Z,{className:T.info},Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u59D3\u540D"),Ee.createElement("span",{className:T.blackContent},Te==null?void 0:Te.username)),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u5B66\u53F7"),Ee.createElement("span",{className:T.blackContent},(Te==null?void 0:Te.student_id)||"--")),!(Te!=null&&Te.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u73ED\u7EA7"),Ee.createElement("span",{className:T.blackContent},(Te==null?void 0:Te.group_name)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u8865\u4EA4\u6263\u5206"),Ee.createElement("span",{className:T.orangeContent},((Ie=Te==null?void 0:Te.stage_list[0])==null?void 0:Ie.late_penalty)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u7F3A\u8BC4\u6263\u5206"),Ee.createElement("span",{className:T.orangeContent},((Fe=Te==null?void 0:Te.stage_list[0])==null?void 0:Fe.absence_penalty)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u603B\u6210\u7EE9"),Ee.createElement("span",{className:T.orangeContent},(Te==null?void 0:Te.stage_list[0].score)||"--")))),Ee.createElement(Ce.default,{form:Vt,onChange:()=>{$e&&tt(!1)}},Ee.createElement("div",{className:`${T.inputLabel} ${T.greyText}`},Te!=null&&Te.is_anonymous?"\u8BC4\u8BED":"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(Ce.default.Item,{name:"comment"},Ee.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),!(Te!=null&&Te.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:`${T.inputLabel} ${T.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(Ce.default.Item,{name:"hidden_comment"},Ee.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))," ")),$e&&Ee.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Ee.createElement("div",{className:T.tableTitle},"\u5173\u5361\u6210\u7EE9"),Ee.createElement(S.default,{className:T.scoreTable,dataSource:Te==null?void 0:Te.stage_list,rowKey:"challenge_id",pagination:!1,columns:wr}))};var ve=(0,O.connect)(({shixunHomeworks:fe,classroomList:Z})=>({shixunHomeworks:fe,classroomList:Z}))(he),_={},P=(fe,Z,N)=>new Promise((te,Te)=>{var Ie=pt=>{try{ze(N.next(pt))}catch($e){Te($e)}},Fe=pt=>{try{ze(N.throw(pt))}catch($e){Te($e)}},ze=pt=>pt.done?te(pt.value):Promise.resolve(pt.value).then(Ie,Fe);ze((N=N.apply(fe,Z)).next())});const X=({shixunHomeworks:fe,dispatch:Z,gethomeworkreport:N,homeWorkReport:te})=>{var Te,Ie;const{shixunWorkReport:Fe}=fe;console.log(te,"homeWorkReport");const ze=(0,O.useParams)(),[pt,$e]=(0,we.useState)(!1),[tt]=Ce.default.useForm(),{user_name:ct,score:Ge,comment_time:Ke,content:Bt,score_id:Vt,user_id:Mt}=((Ie=(Te=fe==null?void 0:fe.actionTabs)==null?void 0:Te.selectArrs)==null?void 0:Ie.data)||{},mr=()=>P(void 0,null,function*(){yield tt.validateFields(),$e(!0);const wr=tt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${ze.homeworkId}/appeal_anonymous_score.json`,{method:"post",body:{comment:wr.comment,score_id:Vt,userId:Mt}})).status===0&&(n.ZP.success("\u64CD\u4F5C\u6210\u529F"),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),N()),$e(!1)});return we.createElement(I.default,{centered:!0,width:600,title:"\u533F\u8BC4\u7533\u8BC9",afterClose:()=>{tt.resetFields()},confirmLoading:pt,open:fe.actionTabs.key==="\u533F\u8BC4\u7533\u8BC9",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:mr,onCancel:()=>{Z({type:"shixunHomeworks/setActionTabs",payload:{}})}},we.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15,marginBottom:20}},we.createElement(o.Z,{justify:"space-between",className:_.info},we.createElement("span",null,we.createElement("span",{className:"c-grey-666"},ct),we.createElement("span",{className:"c-grey-333 ml5"},"\u8C03\u5206\u4E3A"),we.createElement("span",{className:"c-orange ml5"},Ge,"\u5206")),we.createElement("span",{className:"c-grey-333"},Ke)),we.createElement("div",{className:"c-grey-333 mt5"},Bt)),we.createElement(Ce.default,{form:tt,className:"mt15",layout:"vertical"},we.createElement(Ce.default.Item,{name:"comment",label:"\u7533\u8BC9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0"}]},we.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0",rows:3}))))};var pe=(0,O.connect)(({shixunHomeworks:fe})=>({shixunHomeworks:fe}))(X),Je=g(45633),at={flex_box_center:"flex_box_center___uz0LL",flex_space_between:"flex_space_between___kuKI5",flex_box_vertical_center:"flex_box_vertical_center___VzPH1",flex_box_center_end:"flex_box_center_end___Tyr1U",flex_box_column:"flex_box_column___qsgVa",title:"title___SFyGM",export:"export___ezPhH",title1_right:"title1_right___tMOJn",userPic:"userPic___mW4Rr",userInfo:"userInfo___vYvSZ",listItem:"listItem___gJf4Z",rightInfo:"rightInfo___PRYRt",shixunTitle:"shixunTitle___STlvE",shixunWrp:"shixunWrp___knhTt",footerBar:"footerBar___R5IlQ",footerBarStatic:"footerBarStatic___M4EQj",exitComment:"exitComment___NoCI4",nextComment:"nextComment___sFj7z",modal:"modal___TwQdH",tag:"tag___RErUu"},nt=g(85149),Lt=g(36708),ur=g(44164),Jt=g.n(ur),We=g(59301),Cr=Object.defineProperty,Er=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Se=(fe,Z,N)=>Z in fe?Cr(fe,Z,{enumerable:!0,configurable:!0,writable:!0,value:N}):fe[Z]=N,Nt=(fe,Z)=>{for(var N in Z||(Z={}))Kr.call(Z,N)&&Se(fe,N,Z[N]);if(Er)for(var N of Er(Z))_r.call(Z,N)&&Se(fe,N,Z[N]);return fe},z=(fe,Z)=>{var N={};for(var te in fe)Kr.call(fe,te)&&Z.indexOf(te)<0&&(N[te]=fe[te]);if(fe!=null&&Er)for(var te of Er(fe))Z.indexOf(te)<0&&_r.call(fe,te)&&(N[te]=fe[te]);return N},v=(fe,Z,N)=>new Promise((te,Te)=>{var Ie=pt=>{try{ze(N.next(pt))}catch($e){Te($e)}},Fe=pt=>{try{ze(N.throw(pt))}catch($e){Te($e)}},ze=pt=>pt.done?te(pt.value):Promise.resolve(pt.value).then(Ie,Fe);ze((N=N.apply(fe,Z)).next())});const h=fe=>{var Z=fe,{shixunHomeworks:N,classroomList:te,globalSetting:Te,loading:Ie,user:Fe,dispatch:ze}=Z,pt=z(Z,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),$e,tt,ct,Ge,Ke,Bt,Vt;const[Mt,mr]=(0,we.useState)(Nt({},(0,O.useParams)())),wr=(0,O.useParams)(),re=(0,O.useLocation)(),[]=(0,we.useState)([]),[ue,rr]=(0,we.useState)({last:!1}),[Qe,ot]=(0,we.useState)({last:!1}),Yr=(0,we.useRef)(),It=(0,we.useRef)(),[zt,qt]=(0,we.useState)(!1),[qe,At]=(0,we.useState)(!1),[dt,Gt]=(0,we.useState)(!1),[Pe,an]=(0,we.useState)(),[kt,kn]=(0,we.useState)(),[Xn,yi]=(0,we.useState)(!0),[ji,On]=(0,we.useState)(),$n=(0,J.GJ)(),[Yt,jr]=(0,we.useState)(new(ie())),[Jr,Ot]=(0,we.useState)(0),[_t,Br]=(0,we.useState)([]),[Lr,In]=(0,we.useState)(!1),[tn,Bn]=(0,we.useState)(!1),[gn,Qn]=(0,we.useState)(""),[ei,Hr]=(0,we.useState)(!1),[zr,Tn]=(0,we.useState)(!0),[Sn,jn]=(0,we.useState)(0),[Vn]=(0,O.useSearchParams)(),Mi=()=>v(void 0,null,function*(){(Fe.userInfo.is_teacher||Fe.userInfo.admin)&&(Hr(!0),Tn(!1))});(0,we.useEffect)(()=>{Mi(),console.log("\u6253\u5370\u7684------",Pe),console.log(N),Qn(Pe==null?void 0:Pe.repeat_minus_score)},[Pe,Fe]),(0,we.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Pe==null?void 0:Pe.work_score),jn(Pe==null?void 0:Pe.work_score)},[Pe==null?void 0:Pe.work_score,gn]),(0,we.useEffect)(()=>(ze({type:"globalSetting/footerToggle",payload:!1}),()=>{ze({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,we.useEffect)(()=>{var Tr;if(Pe){let _n=[];(Tr=Pe==null?void 0:Pe.target_test_sets)==null||Tr.map((hn,hi)=>{var ii;(ii=hn==null?void 0:hn.targets)==null||ii.map((ri,bi)=>{var Di;ri.name=hn==null?void 0:hn.name,ri.total_target_score=hn==null?void 0:hn.total_target_score,ri.actual_target_score=hn==null?void 0:hn.actual_target_score,ri.rowSpan=bi===0?(Di=hn==null?void 0:hn.targets)==null?void 0:Di.length:0,ri.order=hi+1,_n.push(ri)})}),On(_n),ze({type:"classroomList/getAssistantPermissions",payload:{course_id:Mt.coursesId}})}},[Pe]),(0,we.useEffect)(()=>{N.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&_t.length>0&&Pe!=null&&Pe.course_name&&br("all")},[Pe==null?void 0:Pe.course_name]),(0,we.useEffect)(()=>{console.log(wr),mr(Nt({},wr))},[re.pathname]);const Ai=()=>{document.body.scrollIntoView()};function wn(){return v(this,null,function*(){var Tr,_n,hn,hi;const ii=JSON.parse(localStorage.all_student_works_param||"{}"),ri=yield ze({type:"shixunHomeworks/getAllStudentWorks",payload:Nt(Nt({},Mt),ii)});Br(ri.all_student_works);const bi=(Tr=ri.all_student_works)==null?void 0:Tr.map(Di=>String(Di.student_work_id)).indexOf(Mt.homeworkId);bi===((_n=ri.all_student_works)==null?void 0:_n.length)-1?rr({last:!0}):rr((hn=ri.all_student_works)==null?void 0:hn[bi+1]),ot(bi===0?{last:!0}:(hi=ri.all_student_works)==null?void 0:hi[bi-1])})}const hr=()=>{document.querySelectorAll("canvas").forEach(Tr=>{(!Tr.clientWidth||!Tr.clientHeight)&&Tr.remove()})},br=Tr=>v(void 0,null,function*(){let _n=0,hn;hn=I.default.info({width:460,title:We.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",We.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:We.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",We.createElement("span",{className:"c-blue"},_n+1),"/",Tr!=="all"?1:_t==null?void 0:_t.length,We.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:at.modal,onOk:()=>{}});const hi={margin:[0,0],filename:`${Pe==null?void 0:Pe.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};function ii(){return v(this,null,function*(){Ai(),_n++,setTimeout(()=>v(this,null,function*(){var bi;hr();const Di=Yt.folder(`${(bi=Pe==null?void 0:Pe.stage_list[0])==null?void 0:bi.shixun_name}`),Bi=document.querySelector("#export-all").children;let zi=Jt()();for(let ca=0;ca<Bi.length;ca++)yield zi.set(hi).from(Bi[ca]).toContainer().toCanvas().toPdf().get("pdf").then(xi=>v(this,null,function*(){ca<Bi.length-1&&(yield xi.addPage())}));Di.file(`${_t[_n-1].student_work_user_name}.pdf`,zi.output("blob")),hn.update({content:We.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",We.createElement("span",{className:"c-blue"},_n),"/",_t==null?void 0:_t.length,We.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),_n==(_t==null?void 0:_t.length)?(hn.destroy(),Fr()):ri()}),2200)})}function ri(){return v(this,null,function*(){var bi,Di,Bi,zi,ca;const xi=yield(0,Y.ZP)(`/api/student_works/${_t[_n].student_work_id}/jupyter_work_report.json`,{method:"get"});if((xi==null?void 0:xi.status)===0)if(an(xi.data),(Di=(bi=xi==null?void 0:xi.data)==null?void 0:bi.shixun_detail[0])!=null&&Di.myshixun_identifier){yi(!0);const vn=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(zi=(Bi=xi==null?void 0:xi.data)==null?void 0:Bi.shixun_detail[0])==null?void 0:zi.myshixun_identifier,student_work_id:(ca=xi==null?void 0:xi.data)==null?void 0:ca.work_id}});vn.status===0&&(kn(vn.html_content),yi(!1),en(),ii())}else ii()})}if(Tr!=="all"||(_t==null?void 0:_t.length)<2){hr(),Ai();const bi=It.current.children;let Di=Jt()();const Bi=Yt.folder(`${Pe==null?void 0:Pe.username}`);for(let zi=0;zi<bi.length;zi++)yield Di.set(hi).from(bi[zi]).toContainer().toCanvas().toPdf().get("pdf").then(ca=>v(void 0,null,function*(){zi<bi.length-1&&(yield ca.addPage())}));qt(!1),Bi.file(`${Pe==null?void 0:Pe.username}.pdf`,Di.output("blob"),{base64:!1}),hn.destroy(),Fr();return}else ri()}),Fr=()=>{Yt.generateAsync({type:"blob"}).then(function(Tr){const _n=document.createElement("a");_n.href=window.URL.createObjectURL(Tr),_n.download=(Pe==null?void 0:Pe.course_name)+".zip",document.body.appendChild(_n);const hn=document.createEvent("MouseEvents");hn.initEvent("click",!1,!1),_n.dispatchEvent(hn),document.body.removeChild(_n),jr(new(ie()))}),Gt(!1)};(0,we.useEffect)(()=>{Hn()},[Mt.homeworkId]),(0,we.useEffect)(()=>{Pe!=null&&Pe.work_id&&((0,J.GJ)()||Pe!=null&&Pe.is_anonymous)&&wn()},[Pe==null?void 0:Pe.work_id]),(0,we.useEffect)(()=>{console.log(Pe)},[Pe]);const Zr=()=>v(void 0,null,function*(){const Tr=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/jupyter_work_report.json`,{method:"get"});(Tr==null?void 0:Tr.status)===0&&an(Tr.data)}),Ur=()=>v(void 0,null,function*(){var Tr,_n,hn,hi,ii;const ri=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/jupyter_work_report.json`,{method:"get"});if((ri==null?void 0:ri.status)===0&&(an(ri.data),(_n=(Tr=ri==null?void 0:ri.data)==null?void 0:Tr.shixun_detail[0])!=null&&_n.myshixun_identifier)){yi(!0);const bi=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(hi=(hn=ri==null?void 0:ri.data)==null?void 0:hn.shixun_detail[0])==null?void 0:hi.myshixun_identifier,student_work_id:(ii=ri==null?void 0:ri.data)==null?void 0:ii.work_id}});if(bi.status===0){kn(bi.html_content),yi(!1),on(bi.html_content);return}}}),on=Tr=>{var _n,hn;(hn=(_n=Tr==null?void 0:Tr.match)==null?void 0:_n.call(Tr,/<script [^>]*src=['"]([^'"]+)[^>]*>/gi))==null||hn.map(hi=>{const ii=document.createElement("script");ii.src=/<script [^>]*src=['"]([^'"]+)[^>]*>/gi.exec(hi)[1],document.body.appendChild(ii)}),en()},en=()=>{try{window.MathJax&&(MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"AMS",useLabelIds:!0}},tex2jax:{inlineMath:[["$","$"],["\\\\(","\\\\)"]],displayMath:[["$$","$$"],["\\\\[","\\\\]"]],processEscapes:!0,processEnvironments:!0},displayAlign:"center",CommonHTML:{linebreaks:{automatic:!0}},"HTML-CSS":{linebreaks:{automatic:!0}}}),MathJax.Hub.Queue(["Typeset",MathJax.Hub]))}catch(Tr){}},Hn=()=>v(void 0,null,function*(){At(!0),Ur(),At(!1)}),ti=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0,render:(Tr,_n,hn)=>Tr},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:Pe!=null&&Pe.is_anonymous?220:170,render:Tr=>Tr||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:Pe!=null&&Pe.is_anonymous?140:90},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:Pe!=null&&Pe.is_anonymous?220:170},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:130},{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",width:90,render:Tr=>Tr||"--"},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:Tr=>Tr||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:100,render:(Tr,_n)=>We.createElement("div",null,We.createElement("span",{style:{color:parseFloat(_n.score_full)!==parseFloat(Tr)?"red":"green"}},Tr||0),"/",_n.score_full)},{title:"\u8C03\u5206",dataIndex:"action",width:110,render:(Tr,_n)=>$n?We.createElement(me,{max:_n.score_full,onBlur:hn=>v(void 0,null,function*(){var hi;if((0,J.Rm)()&&!((hi=te.AssistantObject.practice)!=null&&hi.can_appraise)){n.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}const ii=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/adjust_score.json`,{method:"post",body:{score:hn}});Zr(),ii.status===0&&n.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Tr}].filter(Tr=>Pe!=null&&Pe.is_anonymous?!["late_penalty","absence_penalty","score","action"].includes(Tr.dataIndex):!0),ui=Pe==null?void 0:Pe.comment_scores.map(Tr=>{var _n,hn,hi;return{children:We.createElement(o.Z,null,We.createElement(L.Z,{span:24},We.createElement(o.Z,null,We.createElement(L.Z,{flex:1},We.createElement("span",{className:"c-light-black mr10"},Tr.user_name),We.createElement("span",null,"\u8C03\u5206\u4E3A"),We.createElement("span",{className:"ml10 c-orange"},Tr.score?Tr.score:0,"\u5206")),We.createElement(L.Z,null,We.createElement("span",{className:"c-light-black ml10"},Tr.comment_time)))),We.createElement(L.Z,{span:24,className:"mt8"},We.createElement(o.Z,{className:"mt8"},We.createElement(L.Z,{span:22},Tr.content?We.createElement("span",{style:{color:"#333333"}},Tr.content):We.createElement("span",{className:"c-light-black"},"\u6682\u672A\u5199\u8BC4\u8BED")),We.createElement(L.Z,{className:"tr",span:2},(Tr==null?void 0:Tr.can_appeal)&&!(Tr!=null&&Tr.is_invalid)&&We.createElement(p.ZP,{size:"small",type:"primary",onClick:()=>{ze({type:"shixunHomeworks/setActionTabs",payload:{key:"\u533F\u8BC4\u7533\u8BC9",selectArrs:{data:Nt({},Tr)}}})}},"\u7533\u8BC9")))),!!(Tr!=null&&Tr.appeal_info)&&We.createElement(L.Z,{span:24,className:"mt8"},We.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15}},We.createElement(o.Z,{justify:"space-between"},We.createElement("span",null,We.createElement("span",{className:"c-grey-333"},(_n=Tr==null?void 0:Tr.appeal_info)==null?void 0:_n.user_name),We.createElement("span",null,(Tr==null?void 0:Tr.appeal_status)===1&&We.createElement("span",{className:`tag-style bg-orange ml10 ${at.tag}`},"\u7533\u8BC9\u4E2D"),(Tr==null?void 0:Tr.appeal_status)===2&&We.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${at.tag}`},"\u7533\u8BC9\u5DF2\u64A4\u9500"),(Tr==null?void 0:Tr.appeal_status)===3&&We.createElement("span",{className:`tag-style ml10 ${at.tag}`,style:{background:"#57BE40"}},"\u7533\u8BC9\u6210\u529F"),(Tr==null?void 0:Tr.appeal_status)===4&&We.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${at.tag}`},"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(Tr==null?void 0:Tr.appeal_status)===5&&We.createElement("span",{className:`tag-style c-light-black ml10 ${at.tag}`,style:{background:"#E9EAED"}},"\u7533\u8BC9\u5931\u8D25"))),We.createElement("span",{className:"c-light-black"}," ",se()((hn=Tr==null?void 0:Tr.appeal_info)==null?void 0:hn.time).format("YYYY-MM-DD HH:mm:ss"))),We.createElement(o.Z,{justify:"space-between",className:"mt10"},We.createElement(L.Z,{flex:1},(hi=Tr.appeal_info)==null?void 0:hi.content),We.createElement(L.Z,{style:{flexShrink:0,marginLeft:"auto"}},(Tr==null?void 0:Tr.appeal_status)===1&&(0,J.GJ)()&&We.createElement("span",{onClick:()=>{I.default.confirm({title:"\u63A5\u53D7\u7533\u8BC9",icon:null,content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u5C06\u4F5C\u5E9F\uFF0C\u533F\u8BC4\u5B66\u751F\u7684\u4F5C\u54C1\u5C06\u88AB\u6263\u51CF\u8FDD\u89C4\u533F\u8BC4\u5206 \u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9\uFF1F",onOk:()=>v(void 0,null,function*(){const ii=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Tr.score_id,status:3}});(ii==null?void 0:ii.status)===0&&Zr()})})},className:"c-red current"},"\u63A5\u53D7\u7533\u8BC9"),(Tr==null?void 0:Tr.appeal_status)===1&&(0,J.GJ)()&&We.createElement("span",{onClick:()=>{I.default.confirm({icon:null,title:"\u63A5\u53D7\u7533\u8BC9",content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u88AB\u8BA4\u4E3A\u5408\u7406\uFF0C\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9\uFF1F",onOk:()=>v(void 0,null,function*(){const ii=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Tr.score_id,status:4}});(ii==null?void 0:ii.status)===0&&Zr()})})},className:"c-light-black current ml10"},"\u62D2\u7EDD\u7533\u8BC9"))))))}}),Ri=Tr=>{kn(null),ze({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Tr==="next"?O.history.push(`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/${ue==null?void 0:ue.student_work_id}/comment?page=${Vn.get("page")}`):O.history.push(`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/${Qe==null?void 0:Qe.student_work_id}/comment?page=${Vn.get("page")}`)},200)},Ui=Tr=>{Qn(""),Tr.target.value&&(console.log("\u8FDB\u6765",Pe),Tr.target.value=Tr.target.value>(Pe==null?void 0:Pe.repeat_setting_score)?Pe==null?void 0:Pe.repeat_setting_score:Tr.target.value,Qn(Tr.target.value))},Pi=()=>v(void 0,null,function*(){const Tr=yield(0,Y.ZP)(`/api/student_works/${Pe==null?void 0:Pe.work_id}/update_repeat_score`,{method:"put",body:{score:gn}});yield ze({type:"shixunHomeworks/gethomeWorkReport",payload:Nt({},Mt)}),Tr.status===0&&n.ZP.info("\u64CD\u4F5C\u6210\u529F")});return console.log(!!(Pe!=null&&Pe.category),Pe==null?void 0:Pe.course_id,"homeWorkReport"),We.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},We.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},We.createElement(a.Z,{loading:qe,active:!0,avatar:{size:40},paragraph:{rows:5}},We.createElement("div",{className:"edu-container"},(Pe==null?void 0:Pe.course_id)&&We.createElement("section",{className:"animated fadeIn"},We.createElement("aside",{className:""},(Pe==null?void 0:Pe.category)&&We.createElement(A.Z,{separator:">"},We.createElement(A.Z.Item,null,We.createElement(O.Link,{to:`/classrooms/${Pe==null?void 0:Pe.course_id}/common_homework`},Pe==null?void 0:Pe.course_name)),We.createElement(A.Z.Item,null,We.createElement(O.Link,{to:`/classrooms/${Pe==null?void 0:Pe.course_id}/common_homework/${Pe!=null&&Pe.category.main?"":Pe==null?void 0:Pe.category.category_id}`},Pe==null?void 0:Pe.category.category_name)),We.createElement(A.Z.Item,null,We.createElement(O.Link,{to:`/classrooms/${Pe==null?void 0:Pe.course_id}/common_homework/${Pe==null?void 0:Pe.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),We.createElement(A.Z.Item,null,Pe==null?void 0:Pe.username))),We.createElement("aside",{className:[at.title1,"mt20"].join(" ")},We.createElement(o.Z,{align:"middle"},We.createElement(L.Z,{flex:1},We.createElement(O.Link,{to:`/classrooms/${Pe==null?void 0:Pe.course_id}/common_homework/${Pe==null?void 0:Pe.homework_common_id}/detail?page=${Vn.get("page")}`},We.createElement(V.Z,{className:"font16 c-black"})),We.createElement("strong",{style:{fontWeight:700},className:"font20 ml5"},Pe==null?void 0:Pe.shixun_name),We.createElement(be.VV,{status:Pe==null?void 0:Pe.homework_status})),We.createElement(L.Z,{className:at.title1_right},!(Pe!=null&&Pe.is_anonymous)&&!!(Pe!=null&&Pe.work_status)&&We.createElement(p.ZP,null,We.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),We.createElement(O.Link,{className:"c-black",target:"_blank",to:`/tasks/${(tt=($e=Pe==null?void 0:Pe.shixun_detail)==null?void 0:$e[0])==null?void 0:tt.myshixun_identifier}/jupyter${(0,J.GJ)()?"":`?homework_common_id=${wr.categoryId}`}`},(0,J.GJ)()?"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD":"\u67E5\u770B\u5B9E\u8BAD")),(0,J.GJ)()&&!((ct=Pe==null?void 0:Pe.homework_status)!=null&&ct.includes("\u5DF2\u622A\u6B62"))&&We.createElement(p.ZP,{className:"ml10",onClick:()=>v(void 0,null,function*(){yield ze({type:"shixunHomeworks/setActionTabs",payload:{key:"redoShixunModal",homework_common_id:wr.categoryId,student_work_id:wr.homeworkId}})})},We.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),!(Pe!=null&&Pe.is_anonymous)&&We.createElement(p.ZP,{className:"ml10",onClick:()=>{var Tr;if((0,J.Rm)()&&!((Tr=te.AssistantObject.normal)!=null&&Tr.can_download)){n.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}br("")},loading:zt},We.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,J.GJ)()&&(_t==null?void 0:_t.length)>1&&We.createElement(p.ZP,{className:"ml10",onClick:()=>{var Tr;if((0,J.Rm)()&&!((Tr=te.AssistantObject.normal)!=null&&Tr.can_download)){n.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}br("all")}},We.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),We.createElement("aside",{className:"mt30 relative"})),We.createElement("aside",{className:"edu-container bg-white",ref:Yr},We.createElement("div",{id:"export-all",ref:It},We.createElement("div",{id:"export-all-1"},We.createElement("div",{className:at.title},We.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),We.createElement("div",null,!((Ge=Pe==null?void 0:Pe.homework_status)!=null&&Ge.includes("\u5DF2\u622A\u6B62")&&(0,J.dE)())&&((0,J.GJ)()||(Pe==null?void 0:Pe.is_anonymous))&&We.createElement(p.ZP,{className:"mr20",type:"primary",onClick:()=>{ze({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Pe==null?void 0:Pe.user_id,data:Nt({},Pe)}}})}},We.createElement(ee.Z,null),Pe!=null&&Pe.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),We.createElement(m.Z,{style:{marginTop:0}}),We.createElement(o.Z,{className:"pl30 pr30"},We.createElement(L.Z,null,We.createElement("img",{className:at.userPic,src:`${le.Z.IMG_SERVER}/images/${Pe==null?void 0:Pe.image_url}`,alt:Pe==null?void 0:Pe.username})),We.createElement(L.Z,{className:"pt20"},We.createElement("span",{className:"font16 ml40"},Pe==null?void 0:Pe.username),We.createElement(be.Y,{status:Pe==null?void 0:Pe.work_status}),We.createElement("ul",{className:at.userInfo},We.createElement("li",null,"\u5B66\u53F7\uFF1A",(Pe==null?void 0:Pe.student_id)||"--"),((0,J.GJ)()||!(Pe!=null&&Pe.is_anonymous))&&We.createElement("li",null,"\u5206\u73ED\uFF1A",(Pe==null?void 0:Pe.group_name)||"--"),We.createElement("br",null)))),We.createElement("aside",{className:"pl30 pr30 mt30 mb10"},We.createElement(S.default,{dataSource:Pe==null?void 0:Pe.stage_list,rowKey:Tr=>Tr==null?void 0:Tr.challenge_id,pagination:!1,columns:ti})),((Pe==null?void 0:Pe.work_comment_hidden)||(Pe==null?void 0:Pe.work_comment))&&We.createElement("div",null,We.createElement(o.Z,{align:"middle"},We.createElement(L.Z,{flex:1},We.createElement("h1",{className:at.title},"\u70B9\u8BC4\u5185\u5BB9")),We.createElement(L.Z,{className:"pr30"},(0,J.GJ)()&&We.createElement(p.ZP,{onClick:()=>v(void 0,null,function*(){I.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:We.createElement(B.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return v(this,null,function*(){(yield(0,Lt.gZ)({comment_id:Pe==null?void 0:Pe.comment_id,homeworkId:Mt.homeworkId})).status===0&&(n.ZP.success("\u5220\u9664\u6210\u529F"),Zr())})}})})},We.createElement(G.Z,null),"\u5220\u9664"))),(Pe==null?void 0:Pe.work_comment)&&We.createElement("aside",{className:"pl30 pr30",style:{marginTop:"-5px"}},We.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),We.createElement("br",null),We.createElement(nt.Z,{value:Pe==null?void 0:Pe.work_comment,className:"font14"})),(Pe==null?void 0:Pe.work_comment_hidden)&&We.createElement("aside",{className:"pl30 pr30 mt15"},We.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),We.createElement("br",null),We.createElement(nt.Z,{value:Pe==null?void 0:Pe.work_comment_hidden,className:"font14"}))),(Pe==null?void 0:Pe.comment_scores.length)>0&&We.createElement(We.Fragment,null,We.createElement("h1",{className:at.title},"\u8C03\u5206\u539F\u56E0"),We.createElement("aside",{className:"pl30 pr30",style:{marginTop:"4px"}},We.createElement($.Z,{items:ui}))),((Ke=Pe==null?void 0:Pe.shixun_detail[0])==null?void 0:Ke.myshixun_identifier)&&We.createElement(We.Fragment,null,We.createElement("h1",{className:at.title,style:{marginTop:"-20px"}},"\u5B9E\u8BAD\u8BE6\u60C5"),We.createElement("aside",{className:"pl30 pr30"},We.createElement("div",{className:at.shixunWrp},We.createElement("h2",null,We.createElement("span",null,"\u8BC4\u6D4B\u4EE3\u7801",We.createElement("span",{className:"ml5 font12 c-grey-999"},"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u540E\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\u8BE6\u60C5")),We.createElement("span",null,We.createElement(F.default,{style:{width:200},value:(Bt=Pe==null?void 0:Pe.shixun_detail[0])==null?void 0:Bt.path}," ",Pe==null?void 0:Pe.shixun_detail.map(Tr=>We.createElement(Option,{value:Tr.path},Tr.path))," "))),We.createElement(H.Z,{spinning:Xn},We.createElement("div",{style:{width:"100%",minHeight:"550px",padding:"16px"},dangerouslySetInnerHTML:{__html:kt}})))))))),((0,J.GJ)()||(Pe==null?void 0:Pe.is_anonymous))&&We.createElement("aside",{className:`${at.footerBar} ${zt?at.footerBarStatic:""}`},We.createElement("aside",{className:"edu-container"},We.createElement(o.Z,{align:"middle"},We.createElement(L.Z,{flex:"1"},We.createElement(O.Link,{className:at.exitComment,to:`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/detail?page=${Vn.get("page")}`},"\u8FD4\u56DE\u5217\u8868")),We.createElement(L.Z,{flex:"1",className:"tr"},We.createElement(p.ZP,{type:"default",disabled:Qe==null?void 0:Qe.last,onClick:()=>Ri()},"\u4E0A\u4E00\u4E2A"),We.createElement(p.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:ue==null?void 0:ue.last,onClick:()=>Ri("next")},"\u4E0B\u4E00\u4E2A"),!((Vt=Pe==null?void 0:Pe.homework_status)!=null&&Vt.includes("\u5DF2\u622A\u6B62")&&(0,J.dE)())&&((0,J.GJ)()||(Pe==null?void 0:Pe.is_anonymous))&&We.createElement(p.ZP,{type:"primary",onClick:()=>v(void 0,null,function*(){ze({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Pe==null?void 0:Pe.user_id,data:Nt({},Pe)}}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),We.createElement(pe,{gethomeworkreport:Zr,homeWorkReport:Pe}),We.createElement(ve,{gethomeworkreport:Zr,homeWorkReport:Pe}),We.createElement(Je.Z,{getData:Zr}),We.createElement(I.default,{open:Lr,width:860,centered:!0,onCancel:()=>{In(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},We.createElement("div",{style:{color:"#333333",fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),We.createElement("br",null),We.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),We.createElement("br",null),We.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),We.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),We.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),We.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),We.createElement("br",null),We.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),We.createElement("br",null),We.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),We.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),We.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),We.createElement("br",null),We.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),We.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),We.createElement("br",null),We.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),We.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),We.createElement("br",null),We.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),We.createElement(I.default,{open:tn,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Bn(!1)},width:600},We.createElement("div",{style:{fontWeight:400,color:"#333333"}},We.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",We.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),We.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",We.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),We.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",We.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))))};var D=(0,O.connect)(({shixunHomeworks:fe,classroomList:Z,loading:N,globalSetting:te,user:Te})=>({shixunHomeworks:fe,classroomList:Z,globalSetting:te,loading:N.effects,user:Te}))(h)},45633:function(bn,Zt,g){"use strict";var we=g(43418),De=g(8591),se=g(99064),Me=g(89070),ie=g(24065),Y=g(59301),O=(n,o,L)=>new Promise((p,a)=>{var A=$=>{try{S(L.next($))}catch(F){a(F)}},m=$=>{try{S(L.throw($))}catch(F){a(F)}},S=$=>$.done?p($.value):Promise.resolve($.value).then(A,m);S((L=L.apply(n,o)).next())});const I=({shixunHomeworks:n,dispatch:o,classroomList:L,getData:p})=>Y.createElement(we.default,{centered:!0,title:"\u63D0\u793A",open:n.actionTabs.key==="redoShixunModal",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>O(void 0,null,function*(){var a;if((0,ie.Rm)()&&!((a=L.AssistantObject.normal)!=null&&a.can_redo)){De.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}(yield(0,se.ZP)(`/api/homework_commons/${n.actionTabs.homework_common_id}/batch_redo_modal.json`,{method:"post",body:{student_work_id:n.actionTabs.student_work_id}})).status===0&&(De.ZP.success("\u64CD\u4F5C\u6210\u529F"),o({type:"shixunHomeworks/setActionTabs",payload:{}}),p())}),onCancel:()=>{o({type:"shixunHomeworks/setActionTabs",payload:{}})}},Y.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C",n.actionTabs.isshixun?"\u5B66\u751F\u5B9E\u8BAD":"\u5B66\u751F\u4F5C\u54C1\u63D0\u4EA4","\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Y.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"));Zt.Z=(0,Me.connect)(({shixunHomeworks:n,classroomList:o})=>({shixunHomeworks:n,classroomList:o}))(I)},24768:function(bn,Zt,g){"use strict";g.d(Zt,{AL:function(){return ee},Iy:function(){return L},Qv:function(){return A},ez:function(){return V},jb:function(){return p}});var we=g(32834),De=g.n(we),se=g(11690),Me=g.n(se);let ie=1;function Y(be,Ce){const Re=be.match(/^(\s+)(?:```)/);if(Re===null)return Ce;const ae=Re[1];return Ce.split(`
|
|
|
`).map(me=>{const T=me.match(/^\s+/);if(T===null)return me;const[Ee]=T;return Ee.length>=ae.length?me.slice(ae.length):me}).join(`
|
|
|
`)}let O=[],I=["<ul>"];const n=new(De()).Renderer,o=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){O.length=0,I=["<ul>"]}const p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function a(be,Ce,Re,ae){if(Ce>=be.length||be[Ce].level<=Re)return Ce;var me=be[Ce];ae.push("<li><a href='#"+ie+me.anchor+"'>"+me.text+"</a>"),Ce++;var T=[];return Ce=a(be,Ce,me.level,T),T.length>0&&(ae.push("<ul>"),T.forEach(function(Ee){ae.push(Ee)}),ae.push("</ul>")),ae.push("</li>"),Ce=a(be,Ce,Re,ae),Ce}function A(){return a(O,0,0,I),I.push("</ul>"),I.join("")}const m={heading(be){const Ce=o.exec(be);if(ie+=1,Ce)return{type:"heading",raw:Ce[0],depth:Ce[1].length,text:Ce[2]}},fences(be){const Ce=this.rules.block.fences.exec(be);if(Ce){const Re=Ce[0];let ae=Y(Re,Ce[3]||"");const me=Ce[2]?Ce[2].trim():Ce[2];if(["latex","katex","math"].indexOf(me)>=0){const T=F(),Ee=ae;ae=T,H[T]={type:"block",expression:Ee}}return{type:"code",raw:Re,lang:me,text:ae}}}},S=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let $=0;const F=()=>`__special_katext_id_${$++}__`;let H={};function V(){return H}function ee(){$=0,H={}}function B(be){return be=be.replace(S,(Ce,Re)=>{const ae=F();return H[ae]={type:"inline",expression:Re},ae}),be}const G=n.listitem;n.listitem=function(be){return G(B(be))};const le=n.paragraph;n.paragraph=function(be){return le(B(be))};const J=n.tablecell;n.tablecell=function(be,Ce){return J(B(be),Ce)},n.code=function(be,Ce,Re){const ae=(Ce||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?`<p class='editormd-tex'>${be}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ce}">${Re?be:(0,se.escape)(be,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Re?be:(0,se.escape)(be,!0))+"</code></pre>"},n.heading=function(be,Ce,Re){let ae=this.options.headerPrefix+Re.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return O.push({anchor:ae,level:Ce,text:be}),"<h"+Ce+' id="'+ie+ae+'">'+be+"</h"+Ce+">"},De().setOptions({silent:!0,gfm:!0,pedantic:!1}),De().use({tokenizer:m,renderer:n}),Zt.ZP=De()},36785:function(bn,Zt,g){"use strict";g.d(Zt,{o2:function(){return ie},yT:function(){return Y}});var we=g(19127),De=g(33166);const se=De.i.map(O=>`${O}-inverse`),Me=["success","processing","error","default","warning"];function ie(O){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,we.Z)(se),(0,we.Z)(De.i)).includes(O):De.i.includes(O)}function Y(O){return Me.includes(O)}},50371:function(bn,Zt){"use strict";function g(){const we=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let De=1;De<arguments.length;De++){const se=De<0||arguments.length<=De?void 0:arguments[De];se&&Object.keys(se).forEach(Me=>{const ie=se[Me];ie!==void 0&&(we[Me]=ie)})}return we}Zt.Z=g},13845:function(bn,Zt,g){"use strict";g.d(Zt,{F:function(){return we},Z:function(){return De}});function we(se){return se!=null&&se===se.window}function De(se,Me){var ie,Y;if(typeof window=="undefined")return 0;const O=Me?"scrollTop":"scrollLeft";let I=0;return we(se)?I=se[Me?"pageYOffset":"pageXOffset"]:se instanceof Document?I=se.documentElement[O]:(se instanceof HTMLElement||se)&&(I=se[O]),se&&!we(se)&&typeof I!="number"&&(I=(Y=((ie=se.ownerDocument)!==null&&ie!==void 0?ie:se).documentElement)===null||Y===void 0?void 0:Y[O]),I}},56762:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return De}});var we=g(59301);function De(){const[,se]=we.useReducer(Me=>Me+1,0);return se}},79676:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return Y}});var we=g(19447);function De(O,I,n,o){if(o===!1)return{adjustX:!1,adjustY:!1};const L=o&&typeof o=="object"?o:{},p={};switch(O){case"top":case"bottom":p.shiftX=I.dropdownArrowOffset*2+n;break;case"left":case"right":p.shiftY=I.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},p),L);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const se={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Me={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ie=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Y(O){const{arrowWidth:I,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:L,borderRadius:p,visibleFirst:a}=O,A=I/2,m={};return Object.keys(se).forEach(S=>{const $=o&&Me[S]||se[S],F=Object.assign(Object.assign({},$),{offset:[0,0]});switch(m[S]=F,ie.has(S)&&(F.autoArrow=!1),S){case"top":case"topLeft":case"topRight":F.offset[1]=-A-L;break;case"bottom":case"bottomLeft":case"bottomRight":F.offset[1]=A+L;break;case"left":case"leftTop":case"leftBottom":F.offset[0]=-A-L;break;case"right":case"rightTop":case"rightBottom":F.offset[0]=A+L;break}const H=(0,we.fS)({contentRadius:p,limitVerticalRadius:!0});if(o)switch(S){case"topLeft":case"bottomLeft":F.offset[0]=-H.dropdownArrowOffset-A;break;case"topRight":case"bottomRight":F.offset[0]=H.dropdownArrowOffset+A;break;case"leftTop":case"rightTop":F.offset[1]=-H.dropdownArrowOffset-A;break;case"leftBottom":case"rightBottom":F.offset[1]=H.dropdownArrowOffset+A;break}F.overflow=De(S,H,I,n),a&&(F.htmlRegion="visibleFirst")}),m}},68031:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return Me}});var we=g(16089);function De(ie,Y,O,I){const n=O-Y;return ie/=I/2,ie<1?n/2*ie*ie*ie+Y:n/2*((ie-=2)*ie*ie+2)+Y}var se=g(13845);function Me(ie){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:O=()=>window,callback:I,duration:n=450}=Y,o=O(),L=(0,se.Z)(o,!0),p=Date.now(),a=()=>{const m=Date.now()-p,S=De(m>n?n:m,L,ie,n);(0,se.F)(o)?o.scrollTo(window.pageXOffset,S):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=S:o.scrollTop=S,m<n?(0,we.Z)(a):typeof I=="function"&&I()};(0,we.Z)(a)}},19080:function(bn,Zt,g){"use strict";g.d(Zt,{F:function(){return ie},Z:function(){return Me}});var we=g(92310),De=g.n(we);const se=null;function Me(Y,O,I){return De()({[`${Y}-status-success`]:O==="success",[`${Y}-status-warning`]:O==="warning",[`${Y}-status-error`]:O==="error",[`${Y}-status-validating`]:O==="validating",[`${Y}-has-feedback`]:I})}const ie=(Y,O)=>O||Y},66104:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return Ee}});var we=g(92310),De=g.n(we),se=g(11592),Me=g(26112),ie=g(59301),Y=g(92343),O=g(36355),I=g(84105),n=g(91857);const o=oe=>{let{children:he}=oe;const{getPrefixCls:ve}=ie.useContext(O.E_),_=ve("breadcrumb");return ie.createElement("li",{className:`${_}-separator`,"aria-hidden":"true"},he===""?he:he||"/")};o.__ANT_BREADCRUMB_SEPARATOR=!0;var L=o,p=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,_=Object.getOwnPropertySymbols(oe);P<_.length;P++)he.indexOf(_[P])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[P])&&(ve[_[P]]=oe[_[P]]);return ve};function a(oe,he){if(oe.title===void 0||oe.title===null)return null;const ve=Object.keys(he).join("|");return typeof oe.title=="object"?oe.title:String(oe.title).replace(new RegExp(`:(${ve})`,"g"),(_,P)=>he[P]||_)}function A(oe,he,ve,_){if(ve==null)return null;const{className:P,onClick:X}=he,pe=p(he,["className","onClick"]),Je=Object.assign(Object.assign({},(0,Me.Z)(pe,{data:!0,aria:!0})),{onClick:X});return _!==void 0?ie.createElement("a",Object.assign({},Je,{className:De()(`${oe}-link`,P),href:_}),ve):ie.createElement("span",Object.assign({},Je,{className:De()(`${oe}-link`,P)}),ve)}function m(oe,he){return(_,P,X,pe,Je)=>{if(he)return he(_,P,X,pe);const at=a(_,P);return A(oe,_,at,Je)}}var S=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,_=Object.getOwnPropertySymbols(oe);P<_.length;P++)he.indexOf(_[P])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[P])&&(ve[_[P]]=oe[_[P]]);return ve};const $=oe=>{const{prefixCls:he,separator:ve="/",children:_,menu:P,overlay:X,dropdownProps:pe,href:Je}=oe,nt=(Lt=>{if(P||X){const ur=Object.assign({},pe);if(P){const Jt=P||{},{items:We}=Jt,Cr=S(Jt,["items"]);ur.menu=Object.assign(Object.assign({},Cr),{items:We==null?void 0:We.map((Er,Kr)=>{var{key:_r,title:Se,label:Nt,path:z}=Er,v=S(Er,["key","title","label","path"]);let h=Nt!=null?Nt:Se;return z&&(h=ie.createElement("a",{href:`${Je}${z}`},h)),Object.assign(Object.assign({},v),{key:_r!=null?_r:Kr,label:h})})})}else X&&(ur.overlay=X);return ie.createElement(n.Z,Object.assign({placement:"bottom"},ur),ie.createElement("span",{className:`${he}-overlay-link`},Lt,ie.createElement(I.Z,null)))}return Lt})(_);return nt!=null?ie.createElement(ie.Fragment,null,ie.createElement("li",null,nt),ve&&ie.createElement(L,null,ve)):null},F=oe=>{const{prefixCls:he,children:ve,href:_}=oe,P=S(oe,["prefixCls","children","href"]),{getPrefixCls:X}=ie.useContext(O.E_),pe=X("breadcrumb",he);return ie.createElement($,Object.assign({},P,{prefixCls:pe}),A(pe,P,ve,_))};F.__ANT_BREADCRUMB_ITEM=!0;var H=F,V=g(17313),ee=g(83116),B=g(37613);const G=oe=>{const{componentCls:he,iconCls:ve}=oe;return{[he]:Object.assign(Object.assign({},(0,V.Wf)(oe)),{color:oe.itemColor,fontSize:oe.fontSize,[ve]:{fontSize:oe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:oe.linkColor,transition:`color ${oe.motionDurationMid}`,padding:`0 ${oe.paddingXXS}px`,borderRadius:oe.borderRadiusSM,height:oe.lineHeight*oe.fontSize,display:"inline-block",marginInline:-oe.marginXXS,"&:hover":{color:oe.linkHoverColor,backgroundColor:oe.colorBgTextHover}},(0,V.Qy)(oe)),"li:last-child":{color:oe.lastItemColor},[`${he}-separator`]:{marginInline:oe.separatorMargin,color:oe.separatorColor},[`${he}-link`]:{[`
|
|
|
> ${ve} + span,
|
|
|
> ${ve} + a
|
|
|
`]:{marginInlineStart:oe.marginXXS}},[`${he}-overlay-link`]:{borderRadius:oe.borderRadiusSM,height:oe.lineHeight*oe.fontSize,display:"inline-block",padding:`0 ${oe.paddingXXS}px`,marginInline:-oe.marginXXS,[`> ${ve}`]:{marginInlineStart:oe.marginXXS,fontSize:oe.fontSizeIcon},"&:hover":{color:oe.linkHoverColor,backgroundColor:oe.colorBgTextHover,a:{color:oe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${oe.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,ee.Z)("Breadcrumb",oe=>{const he=(0,B.TS)(oe,{});return[G(he)]},oe=>({itemColor:oe.colorTextDescription,lastItemColor:oe.colorText,iconFontSize:oe.fontSize,linkColor:oe.colorTextDescription,linkHoverColor:oe.colorText,separatorColor:oe.colorTextDescription,separatorMargin:oe.marginXS})),J=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,_=Object.getOwnPropertySymbols(oe);P<_.length;P++)he.indexOf(_[P])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[P])&&(ve[_[P]]=oe[_[P]]);return ve};function be(oe){const{breadcrumbName:he,children:ve}=oe,_=J(oe,["breadcrumbName","children"]),P=Object.assign({title:he},_);return ve&&(P.menu={items:ve.map(X=>{var{breadcrumbName:pe}=X,Je=J(X,["breadcrumbName"]);return Object.assign(Object.assign({},Je),{title:pe})})}),P}function Ce(oe,he){return(0,ie.useMemo)(()=>oe||(he?he.map(be):null),[oe,he])}var Re=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,_=Object.getOwnPropertySymbols(oe);P<_.length;P++)he.indexOf(_[P])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[P])&&(ve[_[P]]=oe[_[P]]);return ve};const ae=(oe,he)=>{if(he===void 0)return he;let ve=(he||"").replace(/^\//,"");return Object.keys(oe).forEach(_=>{ve=ve.replace(`:${_}`,oe[_])}),ve},me=oe=>{const{prefixCls:he,separator:ve="/",style:_,className:P,rootClassName:X,routes:pe,items:Je,children:at,itemRender:nt,params:Lt={}}=oe,ur=Re(oe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Jt,direction:We,breadcrumb:Cr}=ie.useContext(O.E_);let Er;const Kr=Jt("breadcrumb",he),[_r,Se]=le(Kr),Nt=Ce(Je,pe),z=m(Kr,nt);if(Nt&&Nt.length>0){const D=[],fe=Je||pe;Er=Nt.map((Z,N)=>{const{path:te,key:Te,type:Ie,menu:Fe,overlay:ze,onClick:pt,className:$e,separator:tt,dropdownProps:ct}=Z,Ge=ae(Lt,te);Ge!==void 0&&D.push(Ge);const Ke=Te!=null?Te:N;if(Ie==="separator")return ie.createElement(L,{key:Ke},tt);const Bt={},Vt=N===Nt.length-1;Fe?Bt.menu=Fe:ze&&(Bt.overlay=ze);let{href:Mt}=Z;return D.length&&Ge!==void 0&&(Mt=`#/${D.join("/")}`),ie.createElement($,Object.assign({key:Ke},Bt,(0,Me.Z)(Z,{data:!0,aria:!0}),{className:$e,dropdownProps:ct,href:Mt,separator:Vt?"":ve,onClick:pt,prefixCls:Kr}),z(Z,Lt,fe,D,Mt))})}else if(at){const D=(0,se.Z)(at).length;Er=(0,se.Z)(at).map((fe,Z)=>{if(!fe)return fe;const N=Z===D-1;return(0,Y.Tm)(fe,{separator:N?"":ve,key:Z})})}const v=De()(Kr,Cr==null?void 0:Cr.className,{[`${Kr}-rtl`]:We==="rtl"},P,X,Se),h=Object.assign(Object.assign({},Cr==null?void 0:Cr.style),_);return _r(ie.createElement("nav",Object.assign({className:v,style:h},ur),ie.createElement("ol",null,Er)))};me.Item=H,me.Separator=L;var T=me,Ee=T},24905:function(bn,Zt,g){"use strict";g.d(Zt,{default:function(){return le}});var we=g(92310),De=g.n(we),se=g(5630),Me=g(59301),ie=g(36355),Y=g(1684),O=g(32441),n=Me.createContext(null),o=g(98447),L=g(14088),p=g(4572),a=function(J,be){var Ce={};for(var Re in J)Object.prototype.hasOwnProperty.call(J,Re)&&be.indexOf(Re)<0&&(Ce[Re]=J[Re]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Re=Object.getOwnPropertySymbols(J);ae<Re.length;ae++)be.indexOf(Re[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Re[ae])&&(Ce[Re[ae]]=J[Re[ae]]);return Ce};const A=(J,be)=>{var Ce;const{prefixCls:Re,className:ae,rootClassName:me,children:T,indeterminate:Ee=!1,style:oe,onMouseEnter:he,onMouseLeave:ve,skipGroup:_=!1,disabled:P}=J,X=a(J,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pe,direction:Je,checkbox:at}=Me.useContext(ie.E_),nt=Me.useContext(n),{isFormItemInput:Lt}=Me.useContext(O.aM),ur=Me.useContext(Y.Z),Jt=(Ce=(nt==null?void 0:nt.disabled)||P)!==null&&Ce!==void 0?Ce:ur,We=Me.useRef(X.value);Me.useEffect(()=>{nt==null||nt.registerValue(X.value)},[]),Me.useEffect(()=>{if(!_)return X.value!==We.current&&(nt==null||nt.cancelValue(We.current),nt==null||nt.registerValue(X.value),We.current=X.value),()=>nt==null?void 0:nt.cancelValue(X.value)},[X.value]);const Cr=pe("checkbox",Re),[Er,Kr]=(0,o.ZP)(Cr),_r=Object.assign({},X);nt&&!_&&(_r.onChange=function(){X.onChange&&X.onChange.apply(X,arguments),nt.toggleOption&&nt.toggleOption({label:T,value:X.value})},_r.name=nt.name,_r.checked=nt.value.includes(X.value));const Se=De()(`${Cr}-wrapper`,{[`${Cr}-rtl`]:Je==="rtl",[`${Cr}-wrapper-checked`]:_r.checked,[`${Cr}-wrapper-disabled`]:Jt,[`${Cr}-wrapper-in-form-item`]:Lt},at==null?void 0:at.className,ae,me,Kr),Nt=De()({[`${Cr}-indeterminate`]:Ee},p.A,Kr),z=Ee?"mixed":void 0;return Er(Me.createElement(L.Z,{component:"Checkbox",disabled:Jt},Me.createElement("label",{className:Se,style:Object.assign(Object.assign({},at==null?void 0:at.style),oe),onMouseEnter:he,onMouseLeave:ve},Me.createElement(se.Z,Object.assign({"aria-checked":z},_r,{prefixCls:Cr,className:Nt,disabled:Jt,ref:be})),T!==void 0&&Me.createElement("span",null,T))))};var S=Me.forwardRef(A),$=g(19127),F=g(2738),H=function(J,be){var Ce={};for(var Re in J)Object.prototype.hasOwnProperty.call(J,Re)&&be.indexOf(Re)<0&&(Ce[Re]=J[Re]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Re=Object.getOwnPropertySymbols(J);ae<Re.length;ae++)be.indexOf(Re[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Re[ae])&&(Ce[Re[ae]]=J[Re[ae]]);return Ce};const V=(J,be)=>{const{defaultValue:Ce,children:Re,options:ae=[],prefixCls:me,className:T,rootClassName:Ee,style:oe,onChange:he}=J,ve=H(J,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_,direction:P}=Me.useContext(ie.E_),[X,pe]=Me.useState(ve.value||Ce||[]),[Je,at]=Me.useState([]);Me.useEffect(()=>{"value"in ve&&pe(ve.value||[])},[ve.value]);const nt=Me.useMemo(()=>ae.map(v=>typeof v=="string"||typeof v=="number"?{label:v,value:v}:v),[ae]),Lt=v=>{at(h=>h.filter(D=>D!==v))},ur=v=>{at(h=>[].concat((0,$.Z)(h),[v]))},Jt=v=>{const h=X.indexOf(v.value),D=(0,$.Z)(X);h===-1?D.push(v.value):D.splice(h,1),"value"in ve||pe(D),he==null||he(D.filter(fe=>Je.includes(fe)).sort((fe,Z)=>{const N=nt.findIndex(Te=>Te.value===fe),te=nt.findIndex(Te=>Te.value===Z);return N-te}))},We=_("checkbox",me),Cr=`${We}-group`,[Er,Kr]=(0,o.ZP)(We),_r=(0,F.Z)(ve,["value","disabled"]),Se=ae.length?nt.map(v=>Me.createElement(S,{prefixCls:We,key:v.value.toString(),disabled:"disabled"in v?v.disabled:ve.disabled,value:v.value,checked:X.includes(v.value),onChange:v.onChange,className:`${Cr}-item`,style:v.style,title:v.title},v.label)):Re,Nt={toggleOption:Jt,value:X,disabled:ve.disabled,name:ve.name,registerValue:ur,cancelValue:Lt},z=De()(Cr,{[`${Cr}-rtl`]:P==="rtl"},T,Ee,Kr);return Er(Me.createElement("div",Object.assign({className:z,style:oe},_r,{ref:be}),Me.createElement(n.Provider,{value:Nt},Se)))},ee=Me.forwardRef(V);var B=Me.memo(ee);const G=S;G.Group=B,G.__ANT_CHECKBOX=!0;var le=G},98447:function(bn,Zt,g){"use strict";g.d(Zt,{C2:function(){return ie}});var we=g(17313),De=g(37613),se=g(83116);const Me=Y=>{const{checkboxCls:O}=Y,I=`${O}-wrapper`;return[{[`${O}-group`]:Object.assign(Object.assign({},(0,we.Wf)(Y)),{display:"inline-flex",flexWrap:"wrap",columnGap:Y.marginXS,[`> ${Y.antCls}-row`]:{flex:1}}),[I]:Object.assign(Object.assign({},(0,we.Wf)(Y)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${I}`]:{marginInlineStart:0},[`&${I}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[O]:Object.assign(Object.assign({},(0,we.Wf)(Y)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Y.borderRadiusSM,alignSelf:"center",[`${O}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${O}-inner`]:Object.assign({},(0,we.oN)(Y))},[`${O}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Y.checkboxSize,height:Y.checkboxSize,direction:"ltr",backgroundColor:Y.colorBgContainer,border:`${Y.lineWidth}px ${Y.lineType} ${Y.colorBorder}`,borderRadius:Y.borderRadiusSM,borderCollapse:"separate",transition:`all ${Y.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Y.checkboxSize/14*5,height:Y.checkboxSize/14*8,border:`${Y.lineWidthBold}px solid ${Y.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Y.motionDurationFast} ${Y.motionEaseInBack}, opacity ${Y.motionDurationFast}`}},"& + span":{paddingInlineStart:Y.paddingXS,paddingInlineEnd:Y.paddingXS}})},{[`
|
|
|
${I}:not(${I}-disabled),
|
|
|
${O}:not(${O}-disabled)
|
|
|
`]:{[`&:hover ${O}-inner`]:{borderColor:Y.colorPrimary}},[`${I}:not(${I}-disabled)`]:{[`&:hover ${O}-checked:not(${O}-disabled) ${O}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${O}-checked:not(${O}-disabled):after`]:{borderColor:Y.colorPrimaryHover}}},{[`${O}-checked`]:{[`${O}-inner`]:{backgroundColor:Y.colorPrimary,borderColor:Y.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Y.motionDurationMid} ${Y.motionEaseOutBack} ${Y.motionDurationFast}`}}},[`
|
|
|
${I}-checked:not(${I}-disabled),
|
|
|
${O}-checked:not(${O}-disabled)
|
|
|
`]:{[`&:hover ${O}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"}}},{[O]:{"&-indeterminate":{[`${O}-inner`]:{backgroundColor:Y.colorBgContainer,borderColor:Y.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Y.fontSizeLG/2,height:Y.fontSizeLG/2,backgroundColor:Y.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${I}-disabled`]:{cursor:"not-allowed"},[`${O}-disabled`]:{[`&, ${O}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${O}-inner`]:{background:Y.colorBgContainerDisabled,borderColor:Y.colorBorder,"&:after":{borderColor:Y.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Y.colorTextDisabled},[`&${O}-indeterminate ${O}-inner::after`]:{background:Y.colorTextDisabled}}}]};function ie(Y,O){const I=(0,De.TS)(O,{checkboxCls:`.${Y}`,checkboxSize:O.controlInteractiveSize});return[Me(I)]}Zt.ZP=(0,se.Z)("Checkbox",(Y,O)=>{let{prefixCls:I}=O;return[ie(I,Y)]})},93891:function(bn,Zt,g){"use strict";var we=g(59301),De=g(36355),se=g(64165);const Me=ie=>{const{componentName:Y}=ie,{getPrefixCls:O}=(0,we.useContext)(De.E_),I=O("empty");switch(Y){case"Table":case"List":return we.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return we.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE,className:`${I}-small`});default:return we.createElement(se.Z,null)}};Zt.Z=Me},28103:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return p}});var we=g(92310),De=g.n(we),se=g(59301),Me=g(36355),ie=g(17313),Y=g(83116),O=g(37613);const I=a=>{const{componentCls:A,sizePaddingEdgeHorizontal:m,colorSplit:S,lineWidth:$,textPaddingInline:F,orientationMargin:H,verticalMarginInline:V}=a;return{[A]:Object.assign(Object.assign({},(0,ie.Wf)(a)),{borderBlockStart:`${$}px solid ${S}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:V,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${$}px solid ${S}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${a.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${A}-with-text`]:{display:"flex",alignItems:"center",margin:`${a.dividerHorizontalWithTextGutterMargin}px 0`,color:a.colorTextHeading,fontWeight:500,fontSize:a.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${S}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${$}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${A}-with-text-left`]:{"&::before":{width:`${H*100}%`},"&::after":{width:`${100-H*100}%`}},[`&-horizontal${A}-with-text-right`]:{"&::before":{width:`${100-H*100}%`},"&::after":{width:`${H*100}%`}},[`${A}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:F},"&-dashed":{background:"none",borderColor:S,borderStyle:"dashed",borderWidth:`${$}px 0 0`},[`&-horizontal${A}-with-text${A}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${A}-dashed`]:{borderInlineStartWidth:$,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${A}-with-text`]:{color:a.colorText,fontWeight:"normal",fontSize:a.fontSize},[`&-horizontal${A}-with-text-left${A}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${A}-inner-text`]:{paddingInlineStart:m}},[`&-horizontal${A}-with-text-right${A}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${A}-inner-text`]:{paddingInlineEnd:m}}})}};var n=(0,Y.Z)("Divider",a=>{const A=(0,O.TS)(a,{dividerHorizontalWithTextGutterMargin:a.margin,dividerHorizontalGutterMargin:a.marginLG,sizePaddingEdgeHorizontal:0});return[I(A)]},a=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:a.marginXS})),o=function(a,A){var m={};for(var S in a)Object.prototype.hasOwnProperty.call(a,S)&&A.indexOf(S)<0&&(m[S]=a[S]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,S=Object.getOwnPropertySymbols(a);$<S.length;$++)A.indexOf(S[$])<0&&Object.prototype.propertyIsEnumerable.call(a,S[$])&&(m[S[$]]=a[S[$]]);return m},p=a=>{const{getPrefixCls:A,direction:m,divider:S}=se.useContext(Me.E_),{prefixCls:$,type:F="horizontal",orientation:H="center",orientationMargin:V,className:ee,rootClassName:B,children:G,dashed:le,plain:J,style:be}=a,Ce=o(a,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Re=A("divider",$),[ae,me]=n(Re),T=H.length>0?`-${H}`:H,Ee=!!G,oe=H==="left"&&V!=null,he=H==="right"&&V!=null,ve=De()(Re,S==null?void 0:S.className,me,`${Re}-${F}`,{[`${Re}-with-text`]:Ee,[`${Re}-with-text${T}`]:Ee,[`${Re}-dashed`]:!!le,[`${Re}-plain`]:!!J,[`${Re}-rtl`]:m==="rtl",[`${Re}-no-default-orientation-margin-left`]:oe,[`${Re}-no-default-orientation-margin-right`]:he},ee,B),_=se.useMemo(()=>typeof V=="number"?V:/^\d+$/.test(V)?Number(V):V,[V]),P=Object.assign(Object.assign({},oe&&{marginLeft:_}),he&&{marginRight:_});return ae(se.createElement("div",Object.assign({className:ve,style:Object.assign(Object.assign({},S==null?void 0:S.style),be)},Ce,{role:"separator"}),G&&F!=="vertical"&&se.createElement("span",{className:`${Re}-inner-text`,style:P},G)))}},91857:function(bn,Zt,g){"use strict";var we=g(59301),De=g(38819),se=g(92310),Me=g.n(se),ie=g(31561),Y=g(70425),O=g(18929),I=g(2738),n=g(79676),o=g(53487),L=g(92343),p=g(36355),a=g(20834),A=g(40875),m=g(88088),S=g(47211);const $=null,F=B=>{const{menu:G,arrow:le,prefixCls:J,children:be,trigger:Ce,disabled:Re,dropdownRender:ae,getPopupContainer:me,overlayClassName:T,rootClassName:Ee,open:oe,onOpenChange:he,visible:ve,onVisibleChange:_,mouseEnterDelay:P=.15,mouseLeaveDelay:X=.1,autoAdjustOverflow:pe=!0,placement:Je="",overlay:at,transitionName:nt}=B,{getPopupContainer:Lt,getPrefixCls:ur,direction:Jt}=we.useContext(p.E_),We=we.useMemo(()=>{const Fe=ur();return nt!==void 0?nt:Je.includes("top")?`${Fe}-slide-down`:`${Fe}-slide-up`},[ur,Je,nt]),Cr=we.useMemo(()=>Je?Je.includes("Center")?Je.slice(0,Je.indexOf("Center")):Je:Jt==="rtl"?"bottomRight":"bottomLeft",[Je,Jt]),Er=ur("dropdown",J),[Kr,_r]=(0,S.Z)(Er),[,Se]=(0,m.Z)(),Nt=we.Children.only(be),z=(0,L.Tm)(Nt,{className:Me()(`${Er}-trigger`,{[`${Er}-rtl`]:Jt==="rtl"},Nt.props.className),disabled:Re}),v=Re?[]:Ce;let h;v&&v.includes("contextMenu")&&(h=!0);const[D,fe]=(0,O.Z)(!1,{value:oe!=null?oe:ve}),Z=(0,Y.useEvent)(Fe=>{he==null||he(Fe),_==null||_(Fe),fe(Fe)}),N=Me()(T,Ee,_r,{[`${Er}-rtl`]:Jt==="rtl"}),te=(0,n.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:pe,offset:Se.marginXXS,arrowWidth:le?Se.sizePopupArrow:0,borderRadius:Se.borderRadius}),Te=we.useCallback(()=>{fe(!1)},[]),Ie=()=>{let Fe;return G!=null&&G.items?Fe=we.createElement(a.default,Object.assign({},G)):typeof at=="function"?Fe=at():Fe=at,ae&&(Fe=ae(Fe)),Fe=we.Children.only(typeof Fe=="string"?we.createElement("span",null,Fe):Fe),we.createElement(A.J,{prefixCls:`${Er}-menu`,expandIcon:we.createElement("span",{className:`${Er}-menu-submenu-arrow`},we.createElement(De.Z,{className:`${Er}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Te,validator:ze=>{let{mode:pt}=ze}},Fe)};return Kr(we.createElement(ie.Z,Object.assign({alignPoint:h},(0,I.Z)(B,["rootClassName"]),{mouseEnterDelay:P,mouseLeaveDelay:X,visible:D,builtinPlacements:te,arrow:!!le,overlayClassName:N,prefixCls:Er,getPopupContainer:me||Lt,transitionName:We,trigger:v,overlay:Ie,placement:Cr,onVisibleChange:Z}),z))};function H(B){return Object.assign(Object.assign({},B),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const V=(0,o.Z)(F,"dropdown",B=>B,H),ee=B=>we.createElement(V,Object.assign({},B),we.createElement("span",null));F._InternalPanelDoNotUseOrYouWillBeFired=ee,Zt.Z=F},38854:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return m}});var we=g(91857),De=g(92310),se=g.n(De),Me=g(59301),ie=g(18785),Y=g(3113),O=g(36355),I=g(81327),n=g(33234),o=g(47211),L=function(S,$){var F={};for(var H in S)Object.prototype.hasOwnProperty.call(S,H)&&$.indexOf(H)<0&&(F[H]=S[H]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,H=Object.getOwnPropertySymbols(S);V<H.length;V++)$.indexOf(H[V])<0&&Object.prototype.propertyIsEnumerable.call(S,H[V])&&(F[H[V]]=S[H[V]]);return F};const p=S=>{const{getPopupContainer:$,getPrefixCls:F,direction:H}=Me.useContext(O.E_),{prefixCls:V,type:ee="default",danger:B,disabled:G,loading:le,onClick:J,htmlType:be,children:Ce,className:Re,menu:ae,arrow:me,autoFocus:T,overlay:Ee,trigger:oe,align:he,open:ve,onOpenChange:_,placement:P,getPopupContainer:X,href:pe,icon:Je=Me.createElement(ie.Z,null),title:at,buttonsRender:nt=Ie=>Ie,mouseEnterDelay:Lt,mouseLeaveDelay:ur,overlayClassName:Jt,overlayStyle:We,destroyPopupOnHide:Cr,dropdownRender:Er}=S,Kr=L(S,["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"]),_r=F("dropdown",V),Se=`${_r}-button`,[Nt,z]=(0,o.Z)(_r),v={menu:ae,arrow:me,autoFocus:T,align:he,disabled:G,trigger:G?[]:oe,onOpenChange:_,getPopupContainer:X||$,mouseEnterDelay:Lt,mouseLeaveDelay:ur,overlayClassName:Jt,overlayStyle:We,destroyPopupOnHide:Cr,dropdownRender:Er},{compactSize:h,compactItemClassnames:D}=(0,n.ri)(_r,H),fe=se()(Se,D,Re,z);"overlay"in S&&(v.overlay=Ee),"open"in S&&(v.open=ve),"placement"in S?v.placement=P:v.placement=H==="rtl"?"bottomLeft":"bottomRight";const Z=Me.createElement(Y.ZP,{type:ee,danger:B,disabled:G,loading:le,onClick:J,htmlType:be,href:pe,title:at},Ce),N=Me.createElement(Y.ZP,{type:ee,danger:B,icon:Je}),[te,Te]=nt([Z,N]);return Nt(Me.createElement(I.Z.Compact,Object.assign({className:fe,size:h,block:!0},Kr),te,Me.createElement(we.Z,Object.assign({},v),Te)))};p.__ANT_BUTTON=!0;var a=p;const A=we.Z;A.Button=a;var m=A},47211:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return L}});var we=g(17313),De=g(13826),se=g(92899),Me=g(29878),ie=g(19447),Y=g(83116),O=g(37613),n=p=>{const{componentCls:a,menuCls:A,colorError:m,colorTextLightSolid:S}=p,$=`${A}-item`;return{[`${a}, ${a}-menu-submenu`]:{[`${A} ${$}`]:{[`&${$}-danger:not(${$}-disabled)`]:{color:m,"&:hover":{color:S,backgroundColor:m}}}}}};const o=p=>{const{componentCls:a,menuCls:A,zIndexPopup:m,dropdownArrowDistance:S,sizePopupArrow:$,antCls:F,iconCls:H,motionDurationMid:V,dropdownPaddingVertical:ee,fontSize:B,dropdownEdgeChildPadding:G,colorTextDisabled:le,fontSizeIcon:J,controlPaddingHorizontal:be,colorBgElevated:Ce}=p;return[{[a]:Object.assign(Object.assign({},(0,we.Wf)(p)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:m,display:"block","&::before":{position:"absolute",insetBlock:-S+$/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${F}-btn`]:{[`& > ${H}-down, & > ${F}-btn-icon > ${H}-down`]:{fontSize:J}},[`${a}-wrap`]:{position:"relative",[`${F}-btn > ${H}-down`]:{fontSize:J},[`${H}-down::before`]:{transition:`transform ${V}`}},[`${a}-wrap-open`]:{[`${H}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottomRight,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottomRight`]:{animationName:De.fJ},[`&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-top,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-top,
|
|
|
&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-topRight,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-topRight`]:{animationName:De.Qt},[`&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottomRight`]:{animationName:De.Uw},[`&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-top,
|
|
|
&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-topRight`]:{animationName:De.ly}})},(0,ie.ZP)(p,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${a} ${A}`]:{position:"relative",margin:0},[`${A}-submenu-popup`]:{position:"absolute",zIndex:m,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${a}, ${a}-menu-submenu`]:{[A]:Object.assign(Object.assign({padding:G,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:p.borderRadiusLG,outline:"none",boxShadow:p.boxShadowSecondary},(0,we.Qy)(p)),{[`${A}-item-group-title`]:{padding:`${ee}px ${be}px`,color:p.colorTextDescription,transition:`all ${V}`},[`${A}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${A}-item-icon`]:{minWidth:B,marginInlineEnd:p.marginXS,fontSize:p.fontSizeSM},[`${A}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${V}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${A}-item, ${A}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${be}px`,color:p.colorText,fontWeight:"normal",fontSize:B,lineHeight:p.lineHeight,cursor:"pointer",transition:`all ${V}`,borderRadius:p.borderRadiusSM,"&:hover, &-active":{backgroundColor:p.controlItemBgHover}},(0,we.Qy)(p)),{"&-selected":{color:p.colorPrimary,backgroundColor:p.controlItemBgActive,"&:hover, &-active":{backgroundColor:p.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${p.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:p.colorSplit},[`${a}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:p.paddingXS,[`${a}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:p.colorTextDescription,fontSize:J,fontStyle:"normal"}}}),[`${A}-item-group-list`]:{margin:`0 ${p.marginXS}px`,padding:0,listStyle:"none"},[`${A}-submenu-title`]:{paddingInlineEnd:be+p.fontSizeSM},[`${A}-submenu-vertical`]:{position:"relative"},[`${A}-submenu${A}-submenu-disabled ${a}-menu-submenu-title`]:{[`&, ${a}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Ce,cursor:"not-allowed"}},[`${A}-submenu-selected ${a}-menu-submenu-title`]:{color:p.colorPrimary}})}},[(0,De.oN)(p,"slide-up"),(0,De.oN)(p,"slide-down"),(0,se.Fm)(p,"move-up"),(0,se.Fm)(p,"move-down"),(0,Me._y)(p,"zoom-big")]]};var L=(0,Y.Z)("Dropdown",(p,a)=>{let{rootPrefixCls:A}=a;const{marginXXS:m,sizePopupArrow:S,controlHeight:$,fontSize:F,lineHeight:H,paddingXXS:V,componentCls:ee,borderRadiusLG:B}=p,G=($-F*H)/2,{dropdownArrowOffset:le}=(0,ie.fS)({contentRadius:B}),J=(0,O.TS)(p,{menuCls:`${ee}-menu`,rootPrefixCls:A,dropdownArrowDistance:S/2+m,dropdownArrowOffset:le,dropdownPaddingVertical:G,dropdownEdgeChildPadding:V});return[o(J),n(J)]},p=>({zIndexPopup:p.zIndexPopupBase+50}))},64165:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return V}});var we=g(92310),De=g.n(we),se=g(59301),Me=g(36355),ie=g(9763),Y=g(64993),O=g(88088),n=()=>{const[,ee]=(0,O.Z)(),G=new Y.C(ee.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return se.createElement("svg",{style:G,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("g",{transform:"translate(24 31.67)"},se.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),se.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"}),se.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)"}),se.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"}),se.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"})),se.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"}),se.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},se.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),se.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},L=()=>{const[,ee]=(0,O.Z)(),{colorFill:B,colorFillTertiary:G,colorFillQuaternary:le,colorBgContainer:J}=ee,{borderColor:be,shadowColor:Ce,contentColor:Re}=(0,se.useMemo)(()=>({borderColor:new Y.C(B).onBackground(J).toHexShortString(),shadowColor:new Y.C(G).onBackground(J).toHexShortString(),contentColor:new Y.C(le).onBackground(J).toHexShortString()}),[B,G,le,J]);return se.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},se.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),se.createElement("g",{fillRule:"nonzero",stroke:be},se.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"}),se.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:Re}))))},p=g(83116),a=g(37613);const A=ee=>{const{componentCls:B,margin:G,marginXS:le,marginXL:J,fontSize:be,lineHeight:Ce}=ee;return{[B]:{marginInline:le,fontSize:be,lineHeight:Ce,textAlign:"center",[`${B}-image`]:{height:ee.emptyImgHeight,marginBottom:le,opacity:ee.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${B}-description`]:{color:ee.colorText},[`${B}-footer`]:{marginTop:G},"&-normal":{marginBlock:J,color:ee.colorTextDisabled,[`${B}-description`]:{color:ee.colorTextDisabled},[`${B}-image`]:{height:ee.emptyImgHeightMD}},"&-small":{marginBlock:le,color:ee.colorTextDisabled,[`${B}-image`]:{height:ee.emptyImgHeightSM}}}}};var m=(0,p.Z)("Empty",ee=>{const{componentCls:B,controlHeightLG:G}=ee,le=(0,a.TS)(ee,{emptyImgCls:`${B}-img`,emptyImgHeight:G*2.5,emptyImgHeightMD:G,emptyImgHeightSM:G*.875});return[A(le)]}),S=function(ee,B){var G={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&B.indexOf(le)<0&&(G[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,le=Object.getOwnPropertySymbols(ee);J<le.length;J++)B.indexOf(le[J])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[J])&&(G[le[J]]=ee[le[J]]);return G};const $=se.createElement(n,null),F=se.createElement(L,null),H=ee=>{var{className:B,rootClassName:G,prefixCls:le,image:J=$,description:be,children:Ce,imageStyle:Re,style:ae}=ee,me=S(ee,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:T,direction:Ee,empty:oe}=se.useContext(Me.E_),he=T("empty",le),[ve,_]=m(he),[P]=(0,ie.Z)("Empty"),X=typeof be!="undefined"?be:P==null?void 0:P.description,pe=typeof X=="string"?X:"empty";let Je=null;return typeof J=="string"?Je=se.createElement("img",{alt:pe,src:J}):Je=J,ve(se.createElement("div",Object.assign({className:De()(_,he,oe==null?void 0:oe.className,{[`${he}-normal`]:J===F,[`${he}-rtl`]:Ee==="rtl"},B,G),style:Object.assign(Object.assign({},oe==null?void 0:oe.style),ae)},me),se.createElement("div",{className:`${he}-image`,style:Re},Je),X&&se.createElement("div",{className:`${he}-description`},X),Ce&&se.createElement("div",{className:`${he}-footer`},Ce)))};H.PRESENTED_IMAGE_DEFAULT=$,H.PRESENTED_IMAGE_SIMPLE=F;var V=H},78241:function(bn,Zt,g){"use strict";g.d(Zt,{default:function(){return $n}});var we=g(19127),De=g(92310),se=g.n(De),Me=g(77900),ie=g(59301),Y=g(62892),O=g(32441);function I(Yt){const[jr,Jr]=ie.useState(Yt);return ie.useEffect(()=>{const Ot=setTimeout(()=>{Jr(Yt)},Yt.length?0:10);return()=>{clearTimeout(Ot)}},[Yt]),jr}var n=g(17313),o=g(29878),L=g(8378),p=g(37613),a=g(83116),m=Yt=>{const{componentCls:jr}=Yt,Jr=`${jr}-show-help`,Ot=`${jr}-show-help-item`;return{[Jr]:{transition:`opacity ${Yt.motionDurationSlow} ${Yt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ot]:{overflow:"hidden",transition:`height ${Yt.motionDurationSlow} ${Yt.motionEaseInOut},
|
|
|
opacity ${Yt.motionDurationSlow} ${Yt.motionEaseInOut},
|
|
|
transform ${Yt.motionDurationSlow} ${Yt.motionEaseInOut} !important`,[`&${Ot}-appear, &${Ot}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ot}-leave-active`]:{transform:"translateY(-5px)"}}}}};const S=Yt=>({legend:{display:"block",width:"100%",marginBottom:Yt.marginLG,padding:0,color:Yt.colorTextDescription,fontSize:Yt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Yt.lineWidth}px ${Yt.lineType} ${Yt.colorBorder}`},label:{fontSize:Yt.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 ${Yt.controlOutlineWidth}px ${Yt.controlOutline}`},output:{display:"block",paddingTop:15,color:Yt.colorText,fontSize:Yt.fontSize,lineHeight:Yt.lineHeight}}),$=(Yt,jr)=>{const{formItemCls:Jr}=Yt;return{[Jr]:{[`${Jr}-label > label`]:{height:jr},[`${Jr}-control-input`]:{minHeight:jr}}}},F=Yt=>{const{componentCls:jr}=Yt;return{[Yt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(Yt)),S(Yt)),{[`${jr}-text`]:{display:"inline-block",paddingInlineEnd:Yt.paddingSM},"&-small":Object.assign({},$(Yt,Yt.controlHeightSM)),"&-large":Object.assign({},$(Yt,Yt.controlHeightLG))})}},H=Yt=>{const{formItemCls:jr,iconCls:Jr,componentCls:Ot,rootPrefixCls:_t,labelRequiredMarkColor:Br,labelColor:Lr,labelFontSize:In,labelHeight:tn,labelColonMarginInlineStart:Bn,labelColonMarginInlineEnd:gn,itemMarginBottom:Qn}=Yt;return{[jr]:Object.assign(Object.assign({},(0,n.Wf)(Yt)),{marginBottom:Qn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${_t}-row`]:{display:"none"},"&-has-warning":{[`${jr}-split`]:{color:Yt.colorError}},"&-has-error":{[`${jr}-split`]:{color:Yt.colorWarning}},[`${jr}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Yt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:tn,color:Lr,fontSize:In,[`> ${Jr}`]:{fontSize:Yt.fontSize,verticalAlign:"top"},[`&${jr}-required:not(${jr}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Yt.marginXXS,color:Br,fontSize:Yt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ot}-hide-required-mark &`]:{display:"none"}},[`${jr}-optional`]:{display:"inline-block",marginInlineStart:Yt.marginXXS,color:Yt.colorTextDescription,[`${Ot}-hide-required-mark &`]:{display:"none"}},[`${jr}-tooltip`]:{color:Yt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Yt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Bn,marginInlineEnd:gn},[`&${jr}-no-colon::after`]:{content:'"\\a0"'}}},[`${jr}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${_t}-col-'"]):not([class*="' ${_t}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Yt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[jr]:{"&-explain, &-extra":{clear:"both",color:Yt.colorTextDescription,fontSize:Yt.fontSize,lineHeight:Yt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Yt.controlHeightSM,transition:`color ${Yt.motionDurationMid} ${Yt.motionEaseOut}`},"&-explain":{"&-error":{color:Yt.colorError},"&-warning":{color:Yt.colorWarning}}},[`&-with-help ${jr}-explain`]:{height:"auto",opacity:1},[`${jr}-feedback-icon`]:{fontSize:Yt.fontSize,textAlign:"center",visibility:"visible",animationName:o.kr,animationDuration:Yt.motionDurationMid,animationTimingFunction:Yt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Yt.colorSuccess},"&-error":{color:Yt.colorError},"&-warning":{color:Yt.colorWarning},"&-validating":{color:Yt.colorPrimary}}})}},V=Yt=>{const{componentCls:jr,formItemCls:Jr}=Yt;return{[`${jr}-horizontal`]:{[`${Jr}-label`]:{flexGrow:0},[`${Jr}-control`]:{flex:"1 1 0",minWidth:0},[`${Jr}-label[class$='-24'], ${Jr}-label[class*='-24 ']`]:{[`& + ${Jr}-control`]:{minWidth:"unset"}}}}},ee=Yt=>{const{componentCls:jr,formItemCls:Jr}=Yt;return{[`${jr}-inline`]:{display:"flex",flexWrap:"wrap",[Jr]:{flex:"none",marginInlineEnd:Yt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Jr}-label,
|
|
|
> ${Jr}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Jr}-label`]:{flex:"none"},[`${jr}-text`]:{display:"inline-block"},[`${Jr}-has-feedback`]:{display:"inline-block"}}}}},B=Yt=>({padding:Yt.verticalLabelPadding,margin:Yt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),G=Yt=>{const{componentCls:jr,formItemCls:Jr,rootPrefixCls:Ot}=Yt;return{[`${Jr} ${Jr}-label`]:B(Yt),[jr]:{[Jr]:{flexWrap:"wrap",[`${Jr}-label, ${Jr}-control`]:{[`&:not([class*=" ${Ot}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},le=Yt=>{const{componentCls:jr,formItemCls:Jr,rootPrefixCls:Ot}=Yt;return{[`${jr}-vertical`]:{[Jr]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${jr}-item-control`]:{width:"100%"}}},[`${jr}-vertical ${Jr}-label,
|
|
|
.${Ot}-col-24${Jr}-label,
|
|
|
.${Ot}-col-xl-24${Jr}-label`]:B(Yt),[`@media (max-width: ${Yt.screenXSMax}px)`]:[G(Yt),{[jr]:{[`.${Ot}-col-xs-24${Jr}-label`]:B(Yt)}}],[`@media (max-width: ${Yt.screenSMMax}px)`]:{[jr]:{[`.${Ot}-col-sm-24${Jr}-label`]:B(Yt)}},[`@media (max-width: ${Yt.screenMDMax}px)`]:{[jr]:{[`.${Ot}-col-md-24${Jr}-label`]:B(Yt)}},[`@media (max-width: ${Yt.screenLGMax}px)`]:{[jr]:{[`.${Ot}-col-lg-24${Jr}-label`]:B(Yt)}}}},J=(Yt,jr)=>(0,p.TS)(Yt,{formItemCls:`${Yt.componentCls}-item`,rootPrefixCls:jr});var be=(0,a.Z)("Form",(Yt,jr)=>{let{rootPrefixCls:Jr}=jr;const Ot=J(Yt,Jr);return[F(Ot),H(Ot),m(Ot),V(Ot),ee(Ot),le(Ot),(0,L.Z)(Ot),o.kr]},Yt=>({labelRequiredMarkColor:Yt.colorError,labelColor:Yt.colorTextHeading,labelFontSize:Yt.fontSize,labelHeight:Yt.controlHeight,labelColonMarginInlineStart:Yt.marginXXS/2,labelColonMarginInlineEnd:Yt.marginXS,itemMarginBottom:Yt.marginLG,verticalLabelPadding:`0 0 ${Yt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ce=[];function Re(Yt,jr,Jr){let Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Yt=="string"?Yt:`${jr}-${Ot}`,error:Yt,errorStatus:Jr}}var me=Yt=>{let{help:jr,helpStatus:Jr,errors:Ot=Ce,warnings:_t=Ce,className:Br,fieldId:Lr,onVisibleChanged:In}=Yt;const{prefixCls:tn}=ie.useContext(O.Rk),Bn=`${tn}-item-explain`,[,gn]=be(tn),Qn=(0,ie.useMemo)(()=>(0,Y.Z)(tn),[tn]),ei=I(Ot),Hr=I(_t),zr=ie.useMemo(()=>jr!=null?[Re(jr,"help",Jr)]:[].concat((0,we.Z)(ei.map((Sn,jn)=>Re(Sn,"error","error",jn))),(0,we.Z)(Hr.map((Sn,jn)=>Re(Sn,"warning","warning",jn)))),[jr,Jr,ei,Hr]),Tn={};return Lr&&(Tn.id=`${Lr}_help`),ie.createElement(Me.default,{motionDeadline:Qn.motionDeadline,motionName:`${tn}-show-help`,visible:!!zr.length,onVisibleChanged:In},Sn=>{const{className:jn,style:Vn}=Sn;return ie.createElement("div",Object.assign({},Tn,{className:se()(Bn,jn,Br,gn),style:Vn,role:"alert"}),ie.createElement(Me.CSSMotionList,Object.assign({keys:zr},(0,Y.Z)(tn),{motionName:`${tn}-show-help-item`,component:!1}),Mi=>{const{key:Ai,error:wn,errorStatus:hr,className:br,style:Fr}=Mi;return ie.createElement("div",{key:Ai,className:se()(br,{[`${Bn}-${hr}`]:hr}),style:Fr},wn)}))})},T=g(95013),Ee=g(36355),oe=g(1684),he=g(52946),ve=g(19716),_=g(16722);const P=["parentNode"],X="form_item";function pe(Yt){return Yt===void 0||Yt===!1?[]:Array.isArray(Yt)?Yt:[Yt]}function Je(Yt,jr){if(!Yt.length)return;const Jr=Yt.join("_");return jr?`${jr}_${Jr}`:P.includes(Jr)?`${X}_${Jr}`:Jr}function at(Yt,jr,Jr,Ot,_t,Br){let Lr=Ot;return Br!==void 0?Lr=Br:Jr.validating?Lr="validating":Yt.length?Lr="error":jr.length?Lr="warning":(Jr.touched||_t&&Jr.validated)&&(Lr="success"),Lr}function nt(Yt){return pe(Yt).join("_")}function Lt(Yt){const[jr]=(0,T.useForm)(),Jr=ie.useRef({}),Ot=ie.useMemo(()=>Yt!=null?Yt:Object.assign(Object.assign({},jr),{__INTERNAL__:{itemRef:_t=>Br=>{const Lr=nt(_t);Br?Jr.current[Lr]=Br:delete Jr.current[Lr]}},scrollToField:function(_t){let Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Lr=pe(_t),In=Je(Lr,Ot.__INTERNAL__.name),tn=In?document.getElementById(In):null;tn&&(0,_.Z)(tn,Object.assign({scrollMode:"if-needed",block:"nearest"},Br))},getFieldInstance:_t=>{const Br=nt(_t);return Jr.current[Br]}}),[Yt,jr]);return[Ot]}var ur=g(28726),Jt=function(Yt,jr){var Jr={};for(var Ot in Yt)Object.prototype.hasOwnProperty.call(Yt,Ot)&&jr.indexOf(Ot)<0&&(Jr[Ot]=Yt[Ot]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Ot=Object.getOwnPropertySymbols(Yt);_t<Ot.length;_t++)jr.indexOf(Ot[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Ot[_t])&&(Jr[Ot[_t]]=Yt[Ot[_t]]);return Jr};const We=(Yt,jr)=>{const Jr=ie.useContext(oe.Z),{getPrefixCls:Ot,direction:_t,form:Br}=ie.useContext(Ee.E_),{prefixCls:Lr,className:In,rootClassName:tn,size:Bn,disabled:gn=Jr,form:Qn,colon:ei,labelAlign:Hr,labelWrap:zr,labelCol:Tn,wrapperCol:Sn,hideRequiredMark:jn,layout:Vn="horizontal",scrollToFirstError:Mi,requiredMark:Ai,onFinishFailed:wn,name:hr,style:br,feedbackIcons:Fr}=Yt,Zr=Jt(Yt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ur=(0,ve.Z)(Bn),on=ie.useContext(ur.Z),en=(0,ie.useMemo)(()=>Ai!==void 0?Ai:Br&&Br.requiredMark!==void 0?Br.requiredMark:!jn,[jn,Ai,Br]),Hn=ei!=null?ei:Br==null?void 0:Br.colon,ti=Ot("form",Lr),[ui,Ri]=be(ti),Ui=se()(ti,`${ti}-${Vn}`,{[`${ti}-hide-required-mark`]:en===!1,[`${ti}-rtl`]:_t==="rtl",[`${ti}-${Ur}`]:Ur},Ri,Br==null?void 0:Br.className,In,tn),[Pi]=Lt(Qn),{__INTERNAL__:Tr}=Pi;Tr.name=hr;const _n=(0,ie.useMemo)(()=>({name:hr,labelAlign:Hr,labelCol:Tn,labelWrap:zr,wrapperCol:Sn,vertical:Vn==="vertical",colon:Hn,requiredMark:en,itemRef:Tr.itemRef,form:Pi,feedbackIcons:Fr}),[hr,Hr,Tn,Sn,Vn,Hn,en,Pi,Fr]);ie.useImperativeHandle(jr,()=>Pi);const hn=(ii,ri)=>{if(ii){let bi={block:"nearest"};typeof ii=="object"&&(bi=ii),Pi.scrollToField(ri,bi)}},hi=ii=>{if(wn==null||wn(ii),ii.errorFields.length){const ri=ii.errorFields[0].name;if(Mi!==void 0){hn(Mi,ri);return}Br&&Br.scrollToFirstError!==void 0&&hn(Br.scrollToFirstError,ri)}};return ui(ie.createElement(oe.n,{disabled:gn},ie.createElement(he.q,{size:Ur},ie.createElement(O.RV,Object.assign({},{validateMessages:on}),ie.createElement(O.q3.Provider,{value:_n},ie.createElement(T.default,Object.assign({id:hr},Zr,{name:hr,onFinishFailed:hi,form:Pi,style:Object.assign(Object.assign({},Br==null?void 0:Br.style),br),className:Ui})))))))};var Er=ie.forwardRef(We),Kr=g(41799),_r=g(8654),Se=g(92343),Nt=g(11592);function z(Yt){if(typeof Yt=="function")return Yt;const jr=(0,Nt.Z)(Yt);return jr.length<=1?jr[0]:jr}const v=()=>{const{status:Yt,errors:jr=[],warnings:Jr=[]}=(0,ie.useContext)(O.aM);return{status:Yt,errors:jr,warnings:Jr}};v.Context=O.aM;var h=v,D=g(16089);function fe(Yt){const[jr,Jr]=ie.useState(Yt),Ot=(0,ie.useRef)(null),_t=(0,ie.useRef)([]),Br=(0,ie.useRef)(!1);ie.useEffect(()=>(Br.current=!1,()=>{Br.current=!0,D.Z.cancel(Ot.current),Ot.current=null}),[]);function Lr(In){Br.current||(Ot.current===null&&(_t.current=[],Ot.current=(0,D.Z)(()=>{Ot.current=null,Jr(tn=>{let Bn=tn;return _t.current.forEach(gn=>{Bn=gn(Bn)}),Bn})})),_t.current.push(In))}return[jr,Lr]}function Z(){const{itemRef:Yt}=ie.useContext(O.q3),jr=ie.useRef({});function Jr(Ot,_t){const Br=_t&&typeof _t=="object"&&_t.ref,Lr=Ot.join("_");return(jr.current.name!==Lr||jr.current.originRef!==Br)&&(jr.current.name=Lr,jr.current.originRef=Br,jr.current.ref=(0,_r.sQ)(Yt(Ot),Br)),jr.current.ref}return Jr}var N=g(29194),te=g(34280),Te=g(2738),Ie=g(27382),Fe=g(37028);const ze=Yt=>{const{formItemCls:jr}=Yt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${jr}-control`]:{display:"flex"}}}};var pt=(0,a.b)(["Form","item-item"],(Yt,jr)=>{let{rootPrefixCls:Jr}=jr;const Ot=J(Yt,Jr);return[ze(Ot)]}),tt=Yt=>{const{prefixCls:jr,status:Jr,wrapperCol:Ot,children:_t,errors:Br,warnings:Lr,_internalItemRender:In,extra:tn,help:Bn,fieldId:gn,marginBottom:Qn,onErrorVisibleChanged:ei}=Yt,Hr=`${jr}-item`,zr=ie.useContext(O.q3),Tn=Ot||zr.wrapperCol||{},Sn=se()(`${Hr}-control`,Tn.className),jn=ie.useMemo(()=>Object.assign({},zr),[zr]);delete jn.labelCol,delete jn.wrapperCol;const Vn=ie.createElement("div",{className:`${Hr}-control-input`},ie.createElement("div",{className:`${Hr}-control-input-content`},_t)),Mi=ie.useMemo(()=>({prefixCls:jr,status:Jr}),[jr,Jr]),Ai=Qn!==null||Br.length||Lr.length?ie.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ie.createElement(O.Rk.Provider,{value:Mi},ie.createElement(me,{fieldId:gn,errors:Br,warnings:Lr,help:Bn,helpStatus:Jr,className:`${Hr}-explain-connected`,onVisibleChanged:ei})),!!Qn&&ie.createElement("div",{style:{width:0,height:Qn}})):null,wn={};gn&&(wn.id=`${gn}_extra`);const hr=tn?ie.createElement("div",Object.assign({},wn,{className:`${Hr}-extra`}),tn):null,br=In&&In.mark==="pro_table_render"&&In.render?In.render(Yt,{input:Vn,errorList:Ai,extra:hr}):ie.createElement(ie.Fragment,null,Vn,Ai,hr);return ie.createElement(O.q3.Provider,{value:jn},ie.createElement(Fe.Z,Object.assign({},Tn,{className:Sn}),br),ie.createElement(pt,{prefixCls:jr}))},ct=g(61485),Ge=g(31724),Ke=g(9763),Bt=g(6848),Vt=function(Yt,jr){var Jr={};for(var Ot in Yt)Object.prototype.hasOwnProperty.call(Yt,Ot)&&jr.indexOf(Ot)<0&&(Jr[Ot]=Yt[Ot]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Ot=Object.getOwnPropertySymbols(Yt);_t<Ot.length;_t++)jr.indexOf(Ot[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Ot[_t])&&(Jr[Ot[_t]]=Yt[Ot[_t]]);return Jr};function Mt(Yt){return Yt?typeof Yt=="object"&&!ie.isValidElement(Yt)?Yt:{title:Yt}:null}var wr=Yt=>{let{prefixCls:jr,label:Jr,htmlFor:Ot,labelCol:_t,labelAlign:Br,colon:Lr,required:In,requiredMark:tn,tooltip:Bn}=Yt;var gn;const[Qn]=(0,Ke.Z)("Form"),{vertical:ei,labelAlign:Hr,labelCol:zr,labelWrap:Tn,colon:Sn}=ie.useContext(O.q3);if(!Jr)return null;const jn=_t||zr||{},Vn=Br||Hr,Mi=`${jr}-item-label`,Ai=se()(Mi,Vn==="left"&&`${Mi}-left`,jn.className,{[`${Mi}-wrap`]:!!Tn});let wn=Jr;const hr=Lr===!0||Sn!==!1&&Lr!==!1;hr&&!ei&&typeof Jr=="string"&&Jr.trim()!==""&&(wn=Jr.replace(/[:|:]\s*$/,""));const Fr=Mt(Bn);if(Fr){const{icon:en=ie.createElement(ct.Z,null)}=Fr,Hn=Vt(Fr,["icon"]),ti=ie.createElement(Bt.Z,Object.assign({},Hn),ie.cloneElement(en,{className:`${jr}-item-tooltip`,title:""}));wn=ie.createElement(ie.Fragment,null,wn,ti)}const Zr=tn==="optional",Ur=typeof tn=="function";Ur?wn=tn(wn,{required:!!In}):Zr&&!In&&(wn=ie.createElement(ie.Fragment,null,wn,ie.createElement("span",{className:`${jr}-item-optional`,title:""},(Qn==null?void 0:Qn.optional)||((gn=Ge.Z.Form)===null||gn===void 0?void 0:gn.optional))));const on=se()({[`${jr}-item-required`]:In,[`${jr}-item-required-mark-optional`]:Zr||Ur,[`${jr}-item-no-colon`]:!hr});return ie.createElement(Fe.Z,Object.assign({},jn,{className:Ai}),ie.createElement("label",{htmlFor:Ot,className:on,title:typeof Jr=="string"?Jr:""},wn))},re=g(29679),ue=g(19248),rr=g(96512),Qe=g(58617);const ot={success:re.Z,warning:rr.Z,error:ue.Z,validating:Qe.Z};function Yr(Yt){let{children:jr,errors:Jr,warnings:Ot,hasFeedback:_t,validateStatus:Br,prefixCls:Lr,meta:In,noStyle:tn}=Yt;const Bn=`${Lr}-item`,{feedbackIcons:gn}=ie.useContext(O.q3),Qn=at(Jr,Ot,In,null,!!_t,Br),{isFormItemInput:ei,status:Hr}=ie.useContext(O.aM),zr=ie.useMemo(()=>{var Tn;let Sn;if(_t){const Mi=_t!==!0&&_t.icons||gn,Ai=Qn&&((Tn=Mi==null?void 0:Mi({status:Qn,errors:Jr,warnings:Ot}))===null||Tn===void 0?void 0:Tn[Qn]),wn=Qn&&ot[Qn];Sn=Ai!==!1&&wn?ie.createElement("span",{className:se()(`${Bn}-feedback-icon`,`${Bn}-feedback-icon-${Qn}`)},Ai||ie.createElement(wn,null)):null}let jn=!0,Vn=Qn||"";return tn&&(jn=ei,Vn=(Qn!=null?Qn:Hr)||""),{status:Vn,errors:Jr,warnings:Ot,hasFeedback:!!_t,feedbackIcon:Sn,isFormItemInput:jn}},[Qn,_t,tn,ei,Hr]);return ie.createElement(O.aM.Provider,{value:zr},jr)}var It=function(Yt,jr){var Jr={};for(var Ot in Yt)Object.prototype.hasOwnProperty.call(Yt,Ot)&&jr.indexOf(Ot)<0&&(Jr[Ot]=Yt[Ot]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Ot=Object.getOwnPropertySymbols(Yt);_t<Ot.length;_t++)jr.indexOf(Ot[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Ot[_t])&&(Jr[Ot[_t]]=Yt[Ot[_t]]);return Jr};function zt(Yt){const{prefixCls:jr,className:Jr,rootClassName:Ot,style:_t,help:Br,errors:Lr,warnings:In,validateStatus:tn,meta:Bn,hasFeedback:gn,hidden:Qn,children:ei,fieldId:Hr,required:zr,isRequired:Tn,onSubItemMetaChange:Sn}=Yt,jn=It(Yt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Vn=`${jr}-item`,{requiredMark:Mi}=ie.useContext(O.q3),Ai=ie.useRef(null),wn=I(Lr),hr=I(In),br=Br!=null,Fr=!!(br||Lr.length||In.length),Zr=!!Ai.current&&(0,N.Z)(Ai.current),[Ur,on]=ie.useState(null);(0,te.Z)(()=>{if(Fr&&Ai.current){const Ri=getComputedStyle(Ai.current);on(parseInt(Ri.marginBottom,10))}},[Fr,Zr]);const en=Ri=>{Ri||on(null)},ti=function(){let Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ui=Ri?wn:Bn.errors,Pi=Ri?hr:Bn.warnings;return at(Ui,Pi,Bn,"",!!gn,tn)}(),ui=se()(Vn,Jr,Ot,{[`${Vn}-with-help`]:br||wn.length||hr.length,[`${Vn}-has-feedback`]:ti&&gn,[`${Vn}-has-success`]:ti==="success",[`${Vn}-has-warning`]:ti==="warning",[`${Vn}-has-error`]:ti==="error",[`${Vn}-is-validating`]:ti==="validating",[`${Vn}-hidden`]:Qn});return ie.createElement("div",{className:ui,style:_t,ref:Ai},ie.createElement(Ie.Z,Object.assign({className:`${Vn}-row`},(0,Te.Z)(jn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ie.createElement(wr,Object.assign({htmlFor:Hr},Yt,{requiredMark:Mi,required:zr!=null?zr:Tn,prefixCls:jr})),ie.createElement(tt,Object.assign({},Yt,Bn,{errors:wn,warnings:hr,prefixCls:jr,status:ti,help:Br,marginBottom:Ur,onErrorVisibleChanged:en}),ie.createElement(O.qI.Provider,{value:Sn},ie.createElement(Yr,{prefixCls:jr,meta:Bn,errors:Bn.errors,warnings:Bn.warnings,hasFeedback:gn,validateStatus:ti},ei)))),!!Ur&&ie.createElement("div",{className:`${Vn}-margin-offset`,style:{marginBottom:-Ur}}))}const qt="__SPLIT__",qe=null,At=ie.memo(Yt=>{let{children:jr}=Yt;return jr},(Yt,jr)=>Yt.value===jr.value&&Yt.update===jr.update&&Yt.childProps.length===jr.childProps.length&&Yt.childProps.every((Jr,Ot)=>Jr===jr.childProps[Ot]));function dt(Yt){return Yt!=null}function Gt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Pe(Yt){const{name:jr,noStyle:Jr,className:Ot,dependencies:_t,prefixCls:Br,shouldUpdate:Lr,rules:In,children:tn,required:Bn,label:gn,messageVariables:Qn,trigger:ei="onChange",validateTrigger:Hr,hidden:zr,help:Tn}=Yt,{getPrefixCls:Sn}=ie.useContext(Ee.E_),{name:jn}=ie.useContext(O.q3),Vn=z(tn),Mi=typeof Vn=="function",Ai=ie.useContext(O.qI),{validateTrigger:wn}=ie.useContext(T.FieldContext),hr=Hr!==void 0?Hr:wn,br=dt(jr),Fr=Sn("form",Br),[Zr,Ur]=be(Fr),on=ie.useContext(T.ListContext),en=ie.useRef(),[Hn,ti]=fe({}),[ui,Ri]=(0,Kr.Z)(()=>Gt()),Ui=ri=>{const bi=on==null?void 0:on.getKey(ri.name);if(Ri(ri.destroy?Gt():ri,!0),Jr&&Tn!==!1&&Ai){let Di=ri.name;if(ri.destroy)Di=en.current||Di;else if(bi!==void 0){const[Bi,zi]=bi;Di=[Bi].concat((0,we.Z)(zi)),en.current=Di}Ai(ri,Di)}},Pi=(ri,bi)=>{ti(Di=>{const Bi=Object.assign({},Di),ca=[].concat((0,we.Z)(ri.name.slice(0,-1)),(0,we.Z)(bi)).join(qt);return ri.destroy?delete Bi[ca]:Bi[ca]=ri,Bi})},[Tr,_n]=ie.useMemo(()=>{const ri=(0,we.Z)(ui.errors),bi=(0,we.Z)(ui.warnings);return Object.values(Hn).forEach(Di=>{ri.push.apply(ri,(0,we.Z)(Di.errors||[])),bi.push.apply(bi,(0,we.Z)(Di.warnings||[]))}),[ri,bi]},[Hn,ui.errors,ui.warnings]),hn=Z();function hi(ri,bi,Di){return Jr&&!zr?ie.createElement(Yr,{prefixCls:Fr,hasFeedback:Yt.hasFeedback,validateStatus:Yt.validateStatus,meta:ui,errors:Tr,warnings:_n,noStyle:!0},ri):ie.createElement(zt,Object.assign({key:"row"},Yt,{className:se()(Ot,Ur),prefixCls:Fr,fieldId:bi,isRequired:Di,errors:Tr,warnings:_n,meta:ui,onSubItemMetaChange:Pi}),ri)}if(!br&&!Mi&&!_t)return Zr(hi(Vn));let ii={};return typeof gn=="string"?ii.label=gn:jr&&(ii.label=String(jr)),Qn&&(ii=Object.assign(Object.assign({},ii),Qn)),Zr(ie.createElement(T.Field,Object.assign({},Yt,{messageVariables:ii,trigger:ei,validateTrigger:hr,onMetaChange:Ui}),(ri,bi,Di)=>{const Bi=pe(jr).length&&bi?bi.name:[],zi=Je(Bi,jn),ca=Bn!==void 0?Bn:!!(In&&In.some(jt=>{if(jt&&typeof jt=="object"&&jt.required&&!jt.warningOnly)return!0;if(typeof jt=="function"){const Ln=jt(Di);return Ln&&Ln.required&&!Ln.warningOnly}return!1})),xi=Object.assign({},ri);let vn=null;if(Array.isArray(Vn)&&br)vn=Vn;else if(!(Mi&&(!(Lr||_t)||br))){if(!(_t&&!Mi&&!br))if((0,Se.l$)(Vn)){const jt=Object.assign(Object.assign({},Vn.props),xi);if(jt.id||(jt.id=zi),Tn||Tr.length>0||_n.length>0||Yt.extra){const Ei=[];(Tn||Tr.length>0)&&Ei.push(`${zi}_help`),Yt.extra&&Ei.push(`${zi}_extra`),jt["aria-describedby"]=Ei.join(" ")}Tr.length>0&&(jt["aria-invalid"]="true"),ca&&(jt["aria-required"]="true"),(0,_r.Yr)(Vn)&&(jt.ref=hn(Bi,Vn)),new Set([].concat((0,we.Z)(pe(ei)),(0,we.Z)(pe(hr)))).forEach(Ei=>{jt[Ei]=function(){for(var Qi,da,xa,Ji,Sa,_i=arguments.length,ai=new Array(_i),$i=0;$i<_i;$i++)ai[$i]=arguments[$i];(xa=xi[Ei])===null||xa===void 0||(Qi=xa).call.apply(Qi,[xi].concat(ai)),(Sa=(Ji=Vn.props)[Ei])===null||Sa===void 0||(da=Sa).call.apply(da,[Ji].concat(ai))}});const Gn=[jt["aria-required"],jt["aria-invalid"],jt["aria-describedby"]];vn=ie.createElement(At,{value:xi[Yt.valuePropName||"value"],update:Vn,childProps:Gn},(0,Se.Tm)(Vn,jt))}else Mi&&(Lr||_t)&&!br?vn=Vn(Di):vn=Vn}return hi(vn,zi,ca)}))}const an=Pe;an.useStatus=h;var kt=an,kn=function(Yt,jr){var Jr={};for(var Ot in Yt)Object.prototype.hasOwnProperty.call(Yt,Ot)&&jr.indexOf(Ot)<0&&(Jr[Ot]=Yt[Ot]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Ot=Object.getOwnPropertySymbols(Yt);_t<Ot.length;_t++)jr.indexOf(Ot[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Ot[_t])&&(Jr[Ot[_t]]=Yt[Ot[_t]]);return Jr},yi=Yt=>{var{prefixCls:jr,children:Jr}=Yt,Ot=kn(Yt,["prefixCls","children"]);const{getPrefixCls:_t}=ie.useContext(Ee.E_),Br=_t("form",jr),Lr=ie.useMemo(()=>({prefixCls:Br,status:"error"}),[Br]);return ie.createElement(T.List,Object.assign({},Ot),(In,tn,Bn)=>ie.createElement(O.Rk.Provider,{value:Lr},Jr(In.map(gn=>Object.assign(Object.assign({},gn),{fieldKey:gn.key})),tn,{errors:Bn.errors,warnings:Bn.warnings})))};function ji(){const{form:Yt}=(0,ie.useContext)(O.q3);return Yt}const On=Er;On.Item=kt,On.List=yi,On.ErrorList=me,On.useForm=Lt,On.useFormInstance=ji,On.useWatch=T.useWatch,On.Provider=O.RV,On.create=()=>{};var $n=On},8628:function(bn,Zt,g){"use strict";var we=g(59301),De=g(34280),se=g(56762),Me=g(69507);function ie(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const O=(0,we.useRef)({}),I=(0,se.Z)(),n=(0,Me.ZP)();return(0,De.Z)(()=>{const o=n.subscribe(L=>{O.current=L,Y&&I()});return()=>n.unsubscribe(o)},[]),O.current}Zt.Z=ie},5871:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return ct}});var we=g(84105),De=g(87395),se=g(92310),Me=g.n(se),ie=g(96663),Y=g(90493),O=g(20135),I=g(72071),n=g(6620),o=g(52884),L=g(95727);function p(){return typeof BigInt=="function"}function a(Ge){return!Ge&&Ge!==0&&!Number.isNaN(Ge)||!String(Ge).trim()}function A(Ge){var Ke=Ge.trim(),Bt=Ke.startsWith("-");Bt&&(Ke=Ke.slice(1)),Ke=Ke.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ke.startsWith(".")&&(Ke="0".concat(Ke));var Vt=Ke||"0",Mt=Vt.split("."),mr=Mt[0]||"0",wr=Mt[1]||"0";mr==="0"&&wr==="0"&&(Bt=!1);var re=Bt?"-":"";return{negative:Bt,negativeStr:re,trimStr:Vt,integerStr:mr,decimalStr:wr,fullStr:"".concat(re).concat(Vt)}}function m(Ge){var Ke=String(Ge);return!Number.isNaN(Number(Ke))&&Ke.includes("e")}function S(Ge){var Ke=String(Ge);if(m(Ge)){var Bt=Number(Ke.slice(Ke.indexOf("e-")+2)),Vt=Ke.match(/\.(\d+)/);return Vt!=null&&Vt[1]&&(Bt+=Vt[1].length),Bt}return Ke.includes(".")&&F(Ke)?Ke.length-Ke.indexOf(".")-1:0}function $(Ge){var Ke=String(Ge);if(m(Ge)){if(Ge>Number.MAX_SAFE_INTEGER)return String(p()?BigInt(Ge).toString():Number.MAX_SAFE_INTEGER);if(Ge<Number.MIN_SAFE_INTEGER)return String(p()?BigInt(Ge).toString():Number.MIN_SAFE_INTEGER);Ke=Ge.toFixed(S(Ke))}return A(Ke).fullStr}function F(Ge){return typeof Ge=="number"?!Number.isNaN(Ge):Ge?/^\s*-?\d+(\.\d+)?\s*$/.test(Ge)||/^\s*-?\d+\.\s*$/.test(Ge)||/^\s*-?\.\d+\s*$/.test(Ge):!1}var H=function(){function Ge(Ke){if((0,o.Z)(this,Ge),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"negative",void 0),(0,Y.Z)(this,"integer",void 0),(0,Y.Z)(this,"decimal",void 0),(0,Y.Z)(this,"decimalLen",void 0),(0,Y.Z)(this,"empty",void 0),(0,Y.Z)(this,"nan",void 0),a(Ke)){this.empty=!0;return}if(this.origin=String(Ke),Ke==="-"||Number.isNaN(Ke)){this.nan=!0;return}var Bt=Ke;if(m(Bt)&&(Bt=Number(Bt)),Bt=typeof Bt=="string"?Bt:$(Bt),F(Bt)){var Vt=A(Bt);this.negative=Vt.negative;var Mt=Vt.trimStr.split(".");this.integer=BigInt(Mt[0]);var mr=Mt[1]||"0";this.decimal=BigInt(mr),this.decimalLen=mr.length}else this.nan=!0}return(0,L.Z)(Ge,[{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(Bt){var Vt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Bt,"0"));return BigInt(Vt)}},{key:"negate",value:function(){var Bt=new Ge(this.toString());return Bt.negative=!Bt.negative,Bt}},{key:"cal",value:function(Bt,Vt,Mt){var mr=Math.max(this.getDecimalStr().length,Bt.getDecimalStr().length),wr=this.alignDecimal(mr),re=Bt.alignDecimal(mr),ue=Vt(wr,re).toString(),rr=Mt(mr),Qe=A(ue),ot=Qe.negativeStr,Yr=Qe.trimStr,It="".concat(ot).concat(Yr.padStart(rr+1,"0"));return new Ge("".concat(It.slice(0,-rr),".").concat(It.slice(-rr)))}},{key:"add",value:function(Bt){if(this.isInvalidate())return new Ge(Bt);var Vt=new Ge(Bt);return Vt.isInvalidate()?this:this.cal(Vt,function(Mt,mr){return Mt+mr},function(Mt){return Mt})}},{key:"multi",value:function(Bt){var Vt=new Ge(Bt);return this.isInvalidate()||Vt.isInvalidate()?new Ge(NaN):this.cal(Vt,function(Mt,mr){return Mt*mr},function(Mt){return Mt*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(Bt){return this.toString()===(Bt==null?void 0:Bt.toString())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":A("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ge}(),V=function(){function Ge(Ke){if((0,o.Z)(this,Ge),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"number",void 0),(0,Y.Z)(this,"empty",void 0),a(Ke)){this.empty=!0;return}this.origin=String(Ke),this.number=Number(Ke)}return(0,L.Z)(Ge,[{key:"negate",value:function(){return new Ge(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new Ge(Bt);var Vt=Number(Bt);if(Number.isNaN(Vt))return this;var Mt=this.number+Vt;if(Mt>Number.MAX_SAFE_INTEGER)return new Ge(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new Ge(Number.MIN_SAFE_INTEGER);var mr=Math.max(S(this.number),S(Vt));return new Ge(Mt.toFixed(mr))}},{key:"multi",value:function(Bt){var Vt=Number(Bt);if(this.isInvalidate()||Number.isNaN(Vt))return new Ge(NaN);var Mt=this.number*Vt;if(Mt>Number.MAX_SAFE_INTEGER)return new Ge(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new Ge(Number.MIN_SAFE_INTEGER);var mr=Math.max(S(this.number),S(Vt));return new Ge(Mt.toFixed(mr))}},{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(Bt){return this.toNumber()===(Bt==null?void 0:Bt.toNumber())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":$(this.number):this.origin}}]),Ge}();function ee(Ge){return p()?new H(Ge):new V(Ge)}function B(Ge,Ke,Bt){var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ge==="")return"";var Mt=A(Ge),mr=Mt.negativeStr,wr=Mt.integerStr,re=Mt.decimalStr,ue="".concat(Ke).concat(re),rr="".concat(mr).concat(wr);if(Bt>=0){var Qe=Number(re[Bt]);if(Qe>=5&&!Vt){var ot=ee(Ge).add("".concat(mr,"0.").concat("0".repeat(Bt)).concat(10-Qe));return B(ot.toString(),Ke,Bt,Vt)}return Bt===0?rr:"".concat(rr).concat(Ke).concat(re.padEnd(Bt,"0").slice(0,Bt))}return ue===".0"?rr:"".concat(rr).concat(ue)}var G=ee,le=g(93681),J=g(34280),be=g(8654),Ce=g(59301),Re=g(48736);function ae(Ge,Ke){var Bt=(0,Ce.useRef)(null);function Vt(){try{var mr=Ge.selectionStart,wr=Ge.selectionEnd,re=Ge.value,ue=re.substring(0,mr),rr=re.substring(wr);Bt.current={start:mr,end:wr,value:re,beforeTxt:ue,afterTxt:rr}}catch(Qe){}}function Mt(){if(Ge&&Bt.current&&Ke)try{var mr=Ge.value,wr=Bt.current,re=wr.beforeTxt,ue=wr.afterTxt,rr=wr.start,Qe=mr.length;if(mr.endsWith(ue))Qe=mr.length-Bt.current.afterTxt.length;else if(mr.startsWith(re))Qe=re.length;else{var ot=re[rr-1],Yr=mr.indexOf(ot,rr-1);Yr!==-1&&(Qe=Yr+1)}Ge.setSelectionRange(Qe,Qe)}catch(It){(0,Re.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(It.message))}}return[Vt,Mt]}var me=g(49658),T=function(){var Ke=(0,Ce.useState)(!1),Bt=(0,I.Z)(Ke,2),Vt=Bt[0],Mt=Bt[1];return(0,J.Z)(function(){Mt((0,me.Z)())},[]),Vt},Ee=T,oe=g(16089),he=200,ve=600;function _(Ge){var Ke=Ge.prefixCls,Bt=Ge.upNode,Vt=Ge.downNode,Mt=Ge.upDisabled,mr=Ge.downDisabled,wr=Ge.onStep,re=Ce.useRef(),ue=Ce.useRef([]),rr=Ce.useRef();rr.current=wr;var Qe=function(){clearTimeout(re.current)},ot=function(Gt,Pe){Gt.preventDefault(),Qe(),rr.current(Pe);function an(){rr.current(Pe),re.current=setTimeout(an,he)}re.current=setTimeout(an,ve)};Ce.useEffect(function(){return function(){Qe(),ue.current.forEach(function(dt){return oe.Z.cancel(dt)})}},[]);var Yr=Ee();if(Yr)return null;var It="".concat(Ke,"-handler"),zt=Me()(It,"".concat(It,"-up"),(0,Y.Z)({},"".concat(It,"-up-disabled"),Mt)),qt=Me()(It,"".concat(It,"-down"),(0,Y.Z)({},"".concat(It,"-down-disabled"),mr)),qe=function(){return ue.current.push((0,oe.Z)(Qe))},At={unselectable:"on",role:"button",onMouseUp:qe,onMouseLeave:qe};return Ce.createElement("div",{className:"".concat(It,"-wrap")},Ce.createElement("span",(0,ie.Z)({},At,{onMouseDown:function(Gt){ot(Gt,!0)},"aria-label":"Increase Value","aria-disabled":Mt,className:zt}),Bt||Ce.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-up-inner")})),Ce.createElement("span",(0,ie.Z)({},At,{onMouseDown:function(Gt){ot(Gt,!1)},"aria-label":"Decrease Value","aria-disabled":mr,className:qt}),Vt||Ce.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-down-inner")})))}function P(Ge){var Ke=typeof Ge=="number"?$(Ge):A(Ge).fullStr,Bt=Ke.includes(".");return Bt?A(Ke.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ge+"0"}var X=g(5643),pe=function(){var Ge=(0,Ce.useRef)(0),Ke=function(){oe.Z.cancel(Ge.current)};return(0,Ce.useEffect)(function(){return Ke},[]),function(Bt){Ke(),Ge.current=(0,oe.Z)(function(){Bt()})}},Je=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],at=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],nt=function(Ke,Bt){return Ke||Bt.isEmpty()?Bt.toString():Bt.toNumber()},Lt=function(Ke){var Bt=G(Ke);return Bt.isInvalidate()?null:Bt},ur=Ce.forwardRef(function(Ge,Ke){var Bt,Vt=Ge.prefixCls,Mt=Vt===void 0?"rc-input-number":Vt,mr=Ge.className,wr=Ge.style,re=Ge.min,ue=Ge.max,rr=Ge.step,Qe=rr===void 0?1:rr,ot=Ge.defaultValue,Yr=Ge.value,It=Ge.disabled,zt=Ge.readOnly,qt=Ge.upHandler,qe=Ge.downHandler,At=Ge.keyboard,dt=Ge.controls,Gt=dt===void 0?!0:dt,Pe=Ge.classNames,an=Ge.stringMode,kt=Ge.parser,kn=Ge.formatter,Xn=Ge.precision,yi=Ge.decimalSeparator,ji=Ge.onChange,On=Ge.onInput,$n=Ge.onPressEnter,Yt=Ge.onStep,jr=(0,n.Z)(Ge,Je),Jr="".concat(Mt,"-input"),Ot=Ce.useRef(null),_t=Ce.useState(!1),Br=(0,I.Z)(_t,2),Lr=Br[0],In=Br[1],tn=Ce.useRef(!1),Bn=Ce.useRef(!1),gn=Ce.useRef(!1),Qn=Ce.useState(function(){return G(Yr!=null?Yr:ot)}),ei=(0,I.Z)(Qn,2),Hr=ei[0],zr=ei[1];function Tn(vn){Yr===void 0&&zr(vn)}var Sn=Ce.useCallback(function(vn,jt){if(!jt)return Xn>=0?Xn:Math.max(S(vn),S(Qe))},[Xn,Qe]),jn=Ce.useCallback(function(vn){var jt=String(vn);if(kt)return kt(jt);var Ln=jt;return yi&&(Ln=Ln.replace(yi,".")),Ln.replace(/[^\w.-]+/g,"")},[kt,yi]),Vn=Ce.useRef(""),Mi=Ce.useCallback(function(vn,jt){if(kn)return kn(vn,{userTyping:jt,input:String(Vn.current)});var Ln=typeof vn=="number"?$(vn):vn;if(!jt){var Gn=Sn(Ln,jt);if(F(Ln)&&(yi||Gn>=0)){var Ei=yi||".";Ln=B(Ln,Ei,Gn)}}return Ln},[kn,Sn,yi]),Ai=Ce.useState(function(){var vn=ot!=null?ot:Yr;return Hr.isInvalidate()&&["string","number"].includes((0,O.Z)(vn))?Number.isNaN(vn)?"":vn:Mi(Hr.toString(),!1)}),wn=(0,I.Z)(Ai,2),hr=wn[0],br=wn[1];Vn.current=hr;function Fr(vn,jt){br(Mi(vn.isInvalidate()?vn.toString(!1):vn.toString(!jt),jt))}var Zr=Ce.useMemo(function(){return Lt(ue)},[ue,Xn]),Ur=Ce.useMemo(function(){return Lt(re)},[re,Xn]),on=Ce.useMemo(function(){return!Zr||!Hr||Hr.isInvalidate()?!1:Zr.lessEquals(Hr)},[Zr,Hr]),en=Ce.useMemo(function(){return!Ur||!Hr||Hr.isInvalidate()?!1:Hr.lessEquals(Ur)},[Ur,Hr]),Hn=ae(Ot.current,Lr),ti=(0,I.Z)(Hn,2),ui=ti[0],Ri=ti[1],Ui=function(jt){return Zr&&!jt.lessEquals(Zr)?Zr:Ur&&!Ur.lessEquals(jt)?Ur:null},Pi=function(jt){return!Ui(jt)},Tr=function(jt,Ln){var Gn=jt,Ei=Pi(Gn)||Gn.isEmpty();if(!Gn.isEmpty()&&!Ln&&(Gn=Ui(Gn)||Gn,Ei=!0),!zt&&!It&&Ei){var Qi=Gn.toString(),da=Sn(Qi,Ln);return da>=0&&(Gn=G(B(Qi,".",da)),Pi(Gn)||(Gn=G(B(Qi,".",da,!0)))),Gn.equals(Hr)||(Tn(Gn),ji==null||ji(Gn.isEmpty()?null:nt(an,Gn)),Yr===void 0&&Fr(Gn,Ln)),Gn}return Hr},_n=pe(),hn=function vn(jt){if(ui(),Vn.current=jt,br(jt),!Bn.current){var Ln=jn(jt),Gn=G(Ln);Gn.isNaN()||Tr(Gn,!0)}On==null||On(jt),_n(function(){var Ei=jt;kt||(Ei=jt.replace(/。/g,".")),Ei!==jt&&vn(Ei)})},hi=function(){Bn.current=!0},ii=function(){Bn.current=!1,hn(Ot.current.value)},ri=function(jt){hn(jt.target.value)},bi=function(jt){var Ln;if(!(jt&&on||!jt&&en)){tn.current=!1;var Gn=G(gn.current?P(Qe):Qe);jt||(Gn=Gn.negate());var Ei=(Hr||G(0)).add(Gn.toString()),Qi=Tr(Ei,!1);Yt==null||Yt(nt(an,Qi),{offset:gn.current?P(Qe):Qe,type:jt?"up":"down"}),(Ln=Ot.current)===null||Ln===void 0||Ln.focus()}},Di=function(jt){var Ln=G(jn(hr)),Gn=Ln;Ln.isNaN()?Gn=Tr(Hr,jt):Gn=Tr(Ln,jt),Yr!==void 0?Fr(Hr,!1):Gn.isNaN()||Fr(Gn,!1)},Bi=function(){tn.current=!0},zi=function(jt){var Ln=jt.key,Gn=jt.shiftKey;tn.current=!0,gn.current=Gn,Ln==="Enter"&&(Bn.current||(tn.current=!1),Di(!1),$n==null||$n(jt)),At!==!1&&!Bn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ln)&&(bi(Ln==="Up"||Ln==="ArrowUp"),jt.preventDefault())},ca=function(){tn.current=!1,gn.current=!1},xi=function(){Di(!1),In(!1),tn.current=!1};return(0,J.o)(function(){Hr.isInvalidate()||Fr(Hr,!1)},[Xn]),(0,J.o)(function(){var vn=G(Yr);zr(vn);var jt=G(jn(hr));(!vn.equals(jt)||!tn.current||kn)&&Fr(vn,tn.current)},[Yr]),(0,J.o)(function(){kn&&Ri()},[hr]),Ce.createElement("div",{className:Me()(Mt,Pe==null?void 0:Pe.input,mr,(Bt={},(0,Y.Z)(Bt,"".concat(Mt,"-focused"),Lr),(0,Y.Z)(Bt,"".concat(Mt,"-disabled"),It),(0,Y.Z)(Bt,"".concat(Mt,"-readonly"),zt),(0,Y.Z)(Bt,"".concat(Mt,"-not-a-number"),Hr.isNaN()),(0,Y.Z)(Bt,"".concat(Mt,"-out-of-range"),!Hr.isInvalidate()&&!Pi(Hr)),Bt)),style:wr,onFocus:function(){In(!0)},onBlur:xi,onKeyDown:zi,onKeyUp:ca,onCompositionStart:hi,onCompositionEnd:ii,onBeforeInput:Bi},Gt&&Ce.createElement(_,{prefixCls:Mt,upNode:qt,downNode:qe,upDisabled:on,downDisabled:en,onStep:bi}),Ce.createElement("div",{className:"".concat(Jr,"-wrap")},Ce.createElement("input",(0,ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":re,"aria-valuemax":ue,"aria-valuenow":Hr.isInvalidate()?null:Hr.toString(),step:Qe},jr,{ref:(0,be.sQ)(Ot,Ke),className:Jr,value:hr,onChange:ri,disabled:It,readOnly:zt}))))}),Jt=Ce.forwardRef(function(Ge,Ke){var Bt=Ge.disabled,Vt=Ge.style,Mt=Ge.prefixCls,mr=Ge.value,wr=Ge.prefix,re=Ge.suffix,ue=Ge.addonBefore,rr=Ge.addonAfter,Qe=Ge.classes,ot=Ge.className,Yr=Ge.classNames,It=(0,n.Z)(Ge,at),zt=Ce.useRef(null),qt=function(At){zt.current&&(0,X.nH)(zt.current,At)};return Ce.createElement(le.BaseInput,{inputElement:Ce.createElement(ur,(0,ie.Z)({prefixCls:Mt,disabled:Bt,classNames:Yr,ref:(0,be.sQ)(zt,Ke)},It)),className:ot,triggerFocus:qt,prefixCls:Mt,value:mr,disabled:Bt,style:Vt,prefix:wr,suffix:re,addonAfter:rr,addonBefore:ue,classes:Qe,classNames:Yr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Jt.displayName="InputNumber";var We=Jt,Cr=We,Er=g(19080),Kr=g(36355),_r=g(92736),Se=g(1684),Nt=g(19716),z=g(32441),v=g(33234),h=g(9937),D=g(17313),fe=g(74207),Z=g(83116),N=g(37613);const te=(Ge,Ke)=>{let{componentCls:Bt,borderRadiusSM:Vt,borderRadiusLG:Mt}=Ge;const mr=Ke==="lg"?Mt:Vt;return{[`&-${Ke}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:mr,borderEndEndRadius:mr},[`${Bt}-handler-up`]:{borderStartEndRadius:mr},[`${Bt}-handler-down`]:{borderEndEndRadius:mr}}}},Te=Ge=>{const{componentCls:Ke,lineWidth:Bt,lineType:Vt,colorBorder:Mt,borderRadius:mr,fontSizeLG:wr,controlHeightLG:re,controlHeightSM:ue,colorError:rr,paddingInlineSM:Qe,colorTextDescription:ot,motionDurationMid:Yr,handleHoverColor:It,paddingInline:zt,paddingBlock:qt,handleBg:qe,handleActiveBg:At,colorTextDisabled:dt,borderRadiusSM:Gt,borderRadiusLG:Pe,controlWidth:an,handleVisible:kt,handleBorderColor:kn}=Ge;return[{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(Ge)),(0,h.ik)(Ge)),(0,h.bi)(Ge,Ke)),{display:"inline-block",width:an,margin:0,padding:0,border:`${Bt}px ${Vt} ${Mt}`,borderRadius:mr,"&-rtl":{direction:"rtl",[`${Ke}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:wr,borderRadius:Pe,[`input${Ke}-input`]:{height:re-2*Bt}},"&-sm":{padding:0,borderRadius:Gt,[`input${Ke}-input`]:{height:ue-2*Bt,padding:`0 ${Qe}px`}},"&:hover":Object.assign({},(0,h.pU)(Ge)),"&-focused":Object.assign({},(0,h.M1)(Ge)),"&-out-of-range":{[`${Ke}-input-wrap`]:{input:{color:rr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,D.Wf)(Ge)),(0,h.s7)(Ge)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ke}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ke}-group-addon`]:{borderRadius:Pe,fontSize:Ge.fontSizeLG}},"&-sm":{[`${Ke}-group-addon`]:{borderRadius:Gt}},[`${Ke}-wrapper-disabled > ${Ke}-group-addon`]:Object.assign({},(0,h.Xy)(Ge))}}),[`&-disabled ${Ke}-input`]:{cursor:"not-allowed"},[Ke]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(Ge)),{width:"100%",padding:`${qt}px ${zt}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:mr,outline:0,transition:`all ${Yr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,h.nz)(Ge.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Ke]:Object.assign(Object.assign(Object.assign({[`&:hover ${Ke}-handler-wrap, &-focused ${Ke}-handler-wrap`]:{opacity:1},[`${Ke}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ge.handleWidth,height:"100%",background:qe,borderStartStartRadius:0,borderStartEndRadius:mr,borderEndEndRadius:mr,borderEndStartRadius:0,opacity:kt===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Yr} linear ${Yr}`,[`${Ke}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Ke}-handler-up-inner,
|
|
|
${Ke}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Ge.handleFontSize}}},[`${Ke}-handler`]:{height:"50%",overflow:"hidden",color:ot,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bt}px ${Vt} ${kn}`,transition:`all ${Yr} linear`,"&:active":{background:At},"&:hover":{height:"60%",[`
|
|
|
${Ke}-handler-up-inner,
|
|
|
${Ke}-handler-down-inner
|
|
|
`]:{color:It}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,D.Ro)()),{color:ot,transition:`all ${Yr} linear`,userSelect:"none"})},[`${Ke}-handler-up`]:{borderStartEndRadius:mr},[`${Ke}-handler-down`]:{borderBlockStart:`${Bt}px ${Vt} ${kn}`,borderEndEndRadius:mr}},te(Ge,"lg")),te(Ge,"sm")),{"&-disabled, &-readonly":{[`${Ke}-handler-wrap`]:{display:"none"},[`${Ke}-input`]:{color:"inherit"}},[`
|
|
|
${Ke}-handler-up-disabled,
|
|
|
${Ke}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Ke}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Ke}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:dt}})},{[`${Ke}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Ke}-handler-down`]:{borderBlockStartWidth:0}}}]},Ie=Ge=>{const{componentCls:Ke,paddingBlock:Bt,paddingInline:Vt,inputAffixPadding:Mt,controlWidth:mr,borderRadiusLG:wr,borderRadiusSM:re}=Ge;return{[`${Ke}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,h.ik)(Ge)),(0,h.bi)(Ge,`${Ke}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:mr,padding:0,paddingInlineStart:Vt,"&-lg":{borderRadius:wr},"&-sm":{borderRadius:re},[`&:not(${Ke}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,h.pU)(Ge)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ke}-disabled`]:{background:"transparent"},[`> div${Ke}`]:{width:"100%",border:"none",outline:"none",[`&${Ke}-focused`]:{boxShadow:"none !important"}},[`input${Ke}-input`]:{padding:`${Bt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ke}-handler-wrap`]:{zIndex:2},[Ke]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Mt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Vt,marginInlineStart:Mt}}})}};var Fe=(0,Z.Z)("InputNumber",Ge=>{const Ke=(0,N.TS)(Ge,(0,h.e5)(Ge));return[Te(Ke),Ie(Ke),(0,fe.c)(Ke)]},Ge=>Object.assign(Object.assign({},(0,h.TM)(Ge)),{controlWidth:90,handleWidth:Ge.controlHeightSM-Ge.lineWidth*2,handleFontSize:Ge.fontSize/2,handleVisible:"auto",handleActiveBg:Ge.colorFillAlter,handleBg:Ge.colorBgContainer,handleHoverColor:Ge.colorPrimary,handleBorderColor:Ge.colorBorder})),ze=function(Ge,Ke){var Bt={};for(var Vt in Ge)Object.prototype.hasOwnProperty.call(Ge,Vt)&&Ke.indexOf(Vt)<0&&(Bt[Vt]=Ge[Vt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Vt=Object.getOwnPropertySymbols(Ge);Mt<Vt.length;Mt++)Ke.indexOf(Vt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Vt[Mt])&&(Bt[Vt[Mt]]=Ge[Vt[Mt]]);return Bt};const pt=Ce.forwardRef((Ge,Ke)=>{const{getPrefixCls:Bt,direction:Vt}=Ce.useContext(Kr.E_),Mt=Ce.useRef(null);Ce.useImperativeHandle(Ke,()=>Mt.current);const{className:mr,rootClassName:wr,size:re,disabled:ue,prefixCls:rr,addonBefore:Qe,addonAfter:ot,prefix:Yr,bordered:It=!0,readOnly:zt,status:qt,controls:qe}=Ge,At=ze(Ge,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),dt=Bt("input-number",rr),[Gt,Pe]=Fe(dt),{compactSize:an,compactItemClassnames:kt}=(0,v.ri)(dt,Vt);let kn=Ce.createElement(De.Z,{className:`${dt}-handler-up-inner`}),Xn=Ce.createElement(we.Z,{className:`${dt}-handler-down-inner`});const yi=typeof qe=="boolean"?qe:void 0;typeof qe=="object"&&(kn=typeof qe.upIcon=="undefined"?kn:Ce.createElement("span",{className:`${dt}-handler-up-inner`},qe.upIcon),Xn=typeof qe.downIcon=="undefined"?Xn:Ce.createElement("span",{className:`${dt}-handler-down-inner`},qe.downIcon));const{hasFeedback:ji,status:On,isFormItemInput:$n,feedbackIcon:Yt}=Ce.useContext(z.aM),jr=(0,Er.F)(On,qt),Jr=(0,Nt.Z)(tn=>{var Bn;return(Bn=re!=null?re:an)!==null&&Bn!==void 0?Bn:tn}),Ot=Ce.useContext(Se.Z),_t=ue!=null?ue:Ot,Br=Me()({[`${dt}-lg`]:Jr==="large",[`${dt}-sm`]:Jr==="small",[`${dt}-rtl`]:Vt==="rtl",[`${dt}-borderless`]:!It,[`${dt}-in-form-item`]:$n},(0,Er.Z)(dt,jr),kt,Pe),Lr=`${dt}-group`,In=Ce.createElement(Cr,Object.assign({ref:Mt,disabled:_t,className:Me()(mr,wr),upHandler:kn,downHandler:Xn,prefixCls:dt,readOnly:zt,controls:yi,prefix:Yr,suffix:ji&&Yt,addonAfter:ot&&Ce.createElement(v.BR,null,Ce.createElement(z.Ux,{override:!0,status:!0},ot)),addonBefore:Qe&&Ce.createElement(v.BR,null,Ce.createElement(z.Ux,{override:!0,status:!0},Qe)),classNames:{input:Br},classes:{affixWrapper:Me()((0,Er.Z)(`${dt}-affix-wrapper`,jr,ji),{[`${dt}-affix-wrapper-sm`]:Jr==="small",[`${dt}-affix-wrapper-lg`]:Jr==="large",[`${dt}-affix-wrapper-rtl`]:Vt==="rtl",[`${dt}-affix-wrapper-borderless`]:!It},Pe),wrapper:Me()({[`${Lr}-rtl`]:Vt==="rtl",[`${dt}-wrapper-disabled`]:_t},Pe),group:Me()({[`${dt}-group-wrapper-sm`]:Jr==="small",[`${dt}-group-wrapper-lg`]:Jr==="large",[`${dt}-group-wrapper-rtl`]:Vt==="rtl"},(0,Er.Z)(`${dt}-group-wrapper`,jr,ji),Pe)}},At));return Gt(In)}),$e=pt,tt=Ge=>Ce.createElement(_r.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ce.createElement(pt,Object.assign({},Ge)));$e._InternalPanelDoNotUseOrYouWillBeFired=tt;var ct=$e},9432:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return H},n:function(){return $}});var we=g(19248),De=g(92310),se=g.n(De),Me=g(93681),ie=g(8654),Y=g(59301),O=g(19080),I=g(36355),n=g(1684),o=g(19716),L=g(32441),p=g(33234),a=g(59412),A=g(9937);function m(V){return!!(V.prefix||V.suffix||V.allowClear)}var S=function(V,ee){var B={};for(var G in V)Object.prototype.hasOwnProperty.call(V,G)&&ee.indexOf(G)<0&&(B[G]=V[G]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,G=Object.getOwnPropertySymbols(V);le<G.length;le++)ee.indexOf(G[le])<0&&Object.prototype.propertyIsEnumerable.call(V,G[le])&&(B[G[le]]=V[G[le]]);return B};function $(V,ee){if(!V)return;V.focus(ee);const{cursor:B}=ee||{};if(B){const G=V.value.length;switch(B){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(G,G);break;default:V.setSelectionRange(0,G);break}}}var H=(0,Y.forwardRef)((V,ee)=>{var B;const{prefixCls:G,bordered:le=!0,status:J,size:be,disabled:Ce,onBlur:Re,onFocus:ae,suffix:me,allowClear:T,addonAfter:Ee,addonBefore:oe,className:he,style:ve,styles:_,rootClassName:P,onChange:X,classNames:pe}=V,Je=S(V,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:at,direction:nt,input:Lt}=Y.useContext(I.E_),ur=at("input",G),Jt=(0,Y.useRef)(null),[We,Cr]=(0,A.ZP)(ur),{compactSize:Er,compactItemClassnames:Kr}=(0,p.ri)(ur,nt),_r=(0,o.Z)(pt=>{var $e;return($e=be!=null?be:Er)!==null&&$e!==void 0?$e:pt}),Se=Y.useContext(n.Z),Nt=Ce!=null?Ce:Se,{status:z,hasFeedback:v,feedbackIcon:h}=(0,Y.useContext)(L.aM),D=(0,O.F)(z,J),fe=m(V)||!!v,Z=(0,Y.useRef)(fe);(0,Y.useEffect)(()=>{var pt;fe&&Z.current,Z.current=fe},[fe]);const N=(0,a.Z)(Jt,!0),te=pt=>{N(),Re==null||Re(pt)},Te=pt=>{N(),ae==null||ae(pt)},Ie=pt=>{N(),X==null||X(pt)},Fe=(v||me)&&Y.createElement(Y.Fragment,null,me,v&&h);let ze;return typeof T=="object"&&(T!=null&&T.clearIcon)?ze=T:T&&(ze={clearIcon:Y.createElement(we.Z,null)}),We(Y.createElement(Me.default,Object.assign({ref:(0,ie.sQ)(ee,Jt),prefixCls:ur,autoComplete:Lt==null?void 0:Lt.autoComplete},Je,{disabled:Nt,onBlur:te,onFocus:Te,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),ve),styles:Object.assign(Object.assign({},Lt==null?void 0:Lt.styles),_),suffix:Fe,allowClear:ze,className:se()(he,P,Kr,Lt==null?void 0:Lt.className),onChange:Ie,addonAfter:Ee&&Y.createElement(p.BR,null,Y.createElement(L.Ux,{override:!0,status:!0},Ee)),addonBefore:oe&&Y.createElement(p.BR,null,Y.createElement(L.Ux,{override:!0,status:!0},oe)),classNames:Object.assign(Object.assign(Object.assign({},pe),Lt==null?void 0:Lt.classNames),{input:se()({[`${ur}-sm`]:_r==="small",[`${ur}-lg`]:_r==="large",[`${ur}-rtl`]:nt==="rtl",[`${ur}-borderless`]:!le},!fe&&(0,O.Z)(ur,D),pe==null?void 0:pe.input,(B=Lt==null?void 0:Lt.classNames)===null||B===void 0?void 0:B.input,Cr)}),classes:{affixWrapper:se()({[`${ur}-affix-wrapper-sm`]:_r==="small",[`${ur}-affix-wrapper-lg`]:_r==="large",[`${ur}-affix-wrapper-rtl`]:nt==="rtl",[`${ur}-affix-wrapper-borderless`]:!le},(0,O.Z)(`${ur}-affix-wrapper`,D,v),Cr),wrapper:se()({[`${ur}-group-rtl`]:nt==="rtl"},Cr),group:se()({[`${ur}-group-wrapper-sm`]:_r==="small",[`${ur}-group-wrapper-lg`]:_r==="large",[`${ur}-group-wrapper-rtl`]:nt==="rtl",[`${ur}-group-wrapper-disabled`]:Nt},(0,O.Z)(`${ur}-group-wrapper`,D,v),Cr)}})))})},1643:function(bn,Zt,g){"use strict";var we=g(19248),De=g(92310),se=g.n(De),Me=g(9296),ie=g(59301),Y=g(19080),O=g(36355),I=g(1684),n=g(19716),o=g(32441),L=g(9432),p=g(9937),a=function(m,S){var $={};for(var F in m)Object.prototype.hasOwnProperty.call(m,F)&&S.indexOf(F)<0&&($[F]=m[F]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,F=Object.getOwnPropertySymbols(m);H<F.length;H++)S.indexOf(F[H])<0&&Object.prototype.propertyIsEnumerable.call(m,F[H])&&($[F[H]]=m[F[H]]);return $};const A=(0,ie.forwardRef)((m,S)=>{const{prefixCls:$,bordered:F=!0,size:H,disabled:V,status:ee,allowClear:B,showCount:G,classNames:le,rootClassName:J,className:be}=m,Ce=a(m,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Re,direction:ae}=ie.useContext(O.E_),me=(0,n.Z)(H),T=ie.useContext(I.Z),Ee=V!=null?V:T,{status:oe,hasFeedback:he,feedbackIcon:ve}=ie.useContext(o.aM),_=(0,Y.F)(oe,ee),P=ie.useRef(null);ie.useImperativeHandle(S,()=>{var nt;return{resizableTextArea:(nt=P.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:Lt=>{var ur,Jt;(0,L.n)((Jt=(ur=P.current)===null||ur===void 0?void 0:ur.resizableTextArea)===null||Jt===void 0?void 0:Jt.textArea,Lt)},blur:()=>{var Lt;return(Lt=P.current)===null||Lt===void 0?void 0:Lt.blur()}}});const X=Re("input",$);let pe;typeof B=="object"&&(B!=null&&B.clearIcon)?pe=B:B&&(pe={clearIcon:ie.createElement(we.Z,null)});const[Je,at]=(0,p.ZP)(X);return Je(ie.createElement(Me.default,Object.assign({},Ce,{disabled:Ee,allowClear:pe,className:se()(be,J),classes:{affixWrapper:se()(`${X}-textarea-affix-wrapper`,{[`${X}-affix-wrapper-rtl`]:ae==="rtl",[`${X}-affix-wrapper-borderless`]:!F,[`${X}-affix-wrapper-sm`]:me==="small",[`${X}-affix-wrapper-lg`]:me==="large",[`${X}-textarea-show-count`]:G},(0,Y.Z)(`${X}-affix-wrapper`,_),at)},classNames:Object.assign(Object.assign({},le),{textarea:se()({[`${X}-borderless`]:!F,[`${X}-sm`]:me==="small",[`${X}-lg`]:me==="large"},(0,Y.Z)(X,_),at,le==null?void 0:le.textarea)}),prefixCls:X,suffix:he&&ie.createElement("span",{className:`${X}-textarea-suffix`},ve),showCount:G,ref:P})))});Zt.Z=A},59412:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return De}});var we=g(59301);function De(se,Me){const ie=(0,we.useRef)([]),Y=()=>{ie.current.push(setTimeout(()=>{var O,I,n,o;!((O=se.current)===null||O===void 0)&&O.input&&((I=se.current)===null||I===void 0?void 0:I.input.getAttribute("type"))==="password"&&(!((n=se.current)===null||n===void 0)&&n.input.hasAttribute("value"))&&((o=se.current)===null||o===void 0||o.input.removeAttribute("value"))}))};return(0,we.useEffect)(()=>(Me&&Y(),()=>ie.current.forEach(O=>{O&&clearTimeout(O)})),[]),Y}},92832:function(bn,Zt,g){"use strict";g.d(Zt,{default:function(){return me}});var we=g(92310),De=g.n(we),se=g(59301),Me=g(36355),ie=g(32441),Y=g(9937),I=T=>{const{getPrefixCls:Ee,direction:oe}=(0,se.useContext)(Me.E_),{prefixCls:he,className:ve}=T,_=Ee("input-group",he),P=Ee("input"),[X,pe]=(0,Y.ZP)(P),Je=De()(_,{[`${_}-lg`]:T.size==="large",[`${_}-sm`]:T.size==="small",[`${_}-compact`]:T.compact,[`${_}-rtl`]:oe==="rtl"},pe,ve),at=(0,se.useContext)(ie.aM),nt=(0,se.useMemo)(()=>Object.assign(Object.assign({},at),{isFormItemInput:!1}),[at]);return X(se.createElement("span",{className:Je,style:T.style,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onFocus:T.onFocus,onBlur:T.onBlur},se.createElement(ie.aM.Provider,{value:nt},T.children)))},n=g(9432),o=g(73331),L=g(15277),p=g(2738),a=g(8654),A=g(59412),m=function(T,Ee){var oe={};for(var he in T)Object.prototype.hasOwnProperty.call(T,he)&&Ee.indexOf(he)<0&&(oe[he]=T[he]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(T);ve<he.length;ve++)Ee.indexOf(he[ve])<0&&Object.prototype.propertyIsEnumerable.call(T,he[ve])&&(oe[he[ve]]=T[he[ve]]);return oe};const S=T=>T?se.createElement(L.Z,null):se.createElement(o.Z,null),$={click:"onClick",hover:"onMouseOver"};var H=se.forwardRef((T,Ee)=>{const{visibilityToggle:oe=!0}=T,he=typeof oe=="object"&&oe.visible!==void 0,[ve,_]=(0,se.useState)(()=>he?oe.visible:!1),P=(0,se.useRef)(null);se.useEffect(()=>{he&&_(oe.visible)},[he,oe]);const X=(0,A.Z)(P),pe=()=>{const{disabled:Nt}=T;Nt||(ve&&X(),_(z=>{var v;const h=!z;return typeof oe=="object"&&((v=oe.onVisibleChange)===null||v===void 0||v.call(oe,h)),h}))},Je=Nt=>{const{action:z="click",iconRender:v=S}=T,h=$[z]||"",D=v(ve),fe={[h]:pe,className:`${Nt}-icon`,key:"passwordIcon",onMouseDown:Z=>{Z.preventDefault()},onMouseUp:Z=>{Z.preventDefault()}};return se.cloneElement(se.isValidElement(D)?D:se.createElement("span",null,D),fe)},{className:at,prefixCls:nt,inputPrefixCls:Lt,size:ur}=T,Jt=m(T,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:We}=se.useContext(Me.E_),Cr=We("input",Lt),Er=We("input-password",nt),Kr=oe&&Je(Er),_r=De()(Er,at,{[`${Er}-${ur}`]:!!ur}),Se=Object.assign(Object.assign({},(0,p.Z)(Jt,["suffix","iconRender","visibilityToggle"])),{type:ve?"text":"password",className:_r,prefixCls:Cr,suffix:Kr});return ur&&(Se.size=ur),se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(Ee,P)},Se))}),V=g(47472),ee=g(92343),B=g(3113),G=g(19716),le=g(33234),J=function(T,Ee){var oe={};for(var he in T)Object.prototype.hasOwnProperty.call(T,he)&&Ee.indexOf(he)<0&&(oe[he]=T[he]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(T);ve<he.length;ve++)Ee.indexOf(he[ve])<0&&Object.prototype.propertyIsEnumerable.call(T,he[ve])&&(oe[he[ve]]=T[he[ve]]);return oe},Ce=se.forwardRef((T,Ee)=>{const{prefixCls:oe,inputPrefixCls:he,className:ve,size:_,suffix:P,enterButton:X=!1,addonAfter:pe,loading:Je,disabled:at,onSearch:nt,onChange:Lt,onCompositionStart:ur,onCompositionEnd:Jt}=T,We=J(T,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Cr,direction:Er}=se.useContext(Me.E_),Kr=se.useRef(!1),_r=Cr("input-search",oe),Se=Cr("input",he),{compactSize:Nt}=(0,le.ri)(_r,Er),z=(0,G.Z)(tt=>{var ct;return(ct=_!=null?_:Nt)!==null&&ct!==void 0?ct:tt}),v=se.useRef(null),h=tt=>{tt&&tt.target&&tt.type==="click"&&nt&&nt(tt.target.value,tt,{source:"clear"}),Lt&&Lt(tt)},D=tt=>{var ct;document.activeElement===((ct=v.current)===null||ct===void 0?void 0:ct.input)&&tt.preventDefault()},fe=tt=>{var ct,Ge;nt&&nt((Ge=(ct=v.current)===null||ct===void 0?void 0:ct.input)===null||Ge===void 0?void 0:Ge.value,tt,{source:"input"})},Z=tt=>{Kr.current||Je||fe(tt)},N=typeof X=="boolean"?se.createElement(V.Z,null):null,te=`${_r}-button`;let Te;const Ie=X||{},Fe=Ie.type&&Ie.type.__ANT_BUTTON===!0;Fe||Ie.type==="button"?Te=(0,ee.Tm)(Ie,Object.assign({onMouseDown:D,onClick:tt=>{var ct,Ge;(Ge=(ct=Ie==null?void 0:Ie.props)===null||ct===void 0?void 0:ct.onClick)===null||Ge===void 0||Ge.call(ct,tt),fe(tt)},key:"enterButton"},Fe?{className:te,size:z}:{})):Te=se.createElement(B.ZP,{className:te,type:X?"primary":void 0,size:z,disabled:at,key:"enterButton",onMouseDown:D,onClick:fe,loading:Je,icon:N},X),pe&&(Te=[Te,(0,ee.Tm)(pe,{key:"addonAfter"})]);const ze=De()(_r,{[`${_r}-rtl`]:Er==="rtl",[`${_r}-${z}`]:!!z,[`${_r}-with-button`]:!!X},ve),pt=tt=>{Kr.current=!0,ur==null||ur(tt)},$e=tt=>{Kr.current=!1,Jt==null||Jt(tt)};return se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(v,Ee),onPressEnter:Z},We,{size:z,onCompositionStart:pt,onCompositionEnd:$e,prefixCls:Se,addonAfter:Te,suffix:P,onChange:h,className:ze,disabled:at}))}),Re=g(1643);const ae=n.Z;ae.Group=I,ae.Search=Ce,ae.TextArea=Re.Z,ae.Password=H;var me=ae},9937:function(bn,Zt,g){"use strict";g.d(Zt,{M1:function(){return O},TM:function(){return ee},Xy:function(){return I},bi:function(){return L},e5:function(){return V},ik:function(){return p},nz:function(){return ie},pU:function(){return Y},s7:function(){return a},x0:function(){return o}});var we=g(17313),De=g(74207),se=g(37613),Me=g(83116);const ie=B=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:B,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y=B=>({borderColor:B.hoverBorderColor}),O=B=>({borderColor:B.activeBorderColor,boxShadow:B.activeShadow,outline:0}),I=B=>({color:B.colorTextDisabled,backgroundColor:B.colorBgContainerDisabled,borderColor:B.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Y((0,se.TS)(B,{hoverBorderColor:B.colorBorder})))}),n=B=>{const{paddingBlockLG:G,fontSizeLG:le,lineHeightLG:J,borderRadiusLG:be,paddingInlineLG:Ce}=B;return{padding:`${G}px ${Ce}px`,fontSize:le,lineHeight:J,borderRadius:be}},o=B=>({padding:`${B.paddingBlockSM}px ${B.paddingInlineSM}px`,borderRadius:B.borderRadiusSM}),L=(B,G)=>{const{componentCls:le,colorError:J,colorWarning:be,errorActiveShadow:Ce,warningActiveShadow:Re,colorErrorBorderHover:ae,colorWarningBorderHover:me}=B;return{[`&-status-error:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:J,"&:hover":{borderColor:ae},"&:focus, &-focused":Object.assign({},O((0,se.TS)(B,{activeBorderColor:J,activeShadow:Ce}))),[`${le}-prefix, ${le}-suffix`]:{color:J}},[`&-status-warning:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:be,"&:hover":{borderColor:me},"&:focus, &-focused":Object.assign({},O((0,se.TS)(B,{activeBorderColor:be,activeShadow:Re}))),[`${le}-prefix, ${le}-suffix`]:{color:be}}}},p=B=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${B.paddingBlock}px ${B.paddingInline}px`,color:B.colorText,fontSize:B.fontSize,lineHeight:B.lineHeight,backgroundColor:B.colorBgContainer,backgroundImage:"none",borderWidth:B.lineWidth,borderStyle:B.lineType,borderColor:B.colorBorder,borderRadius:B.borderRadius,transition:`all ${B.motionDurationMid}`},ie(B.colorTextPlaceholder)),{"&:hover":Object.assign({},Y(B)),"&:focus, &-focused":Object.assign({},O(B)),"&-disabled, &[disabled]":Object.assign({},I(B)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:B.controlHeight,lineHeight:B.lineHeight,verticalAlign:"bottom",transition:`all ${B.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},n(B)),"&-sm":Object.assign({},o(B)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),a=B=>{const{componentCls:G,antCls:le}=B;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:B.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${G}, &-lg > ${G}-group-addon`]:Object.assign({},n(B)),[`&-sm ${G}, &-sm > ${G}-group-addon`]:Object.assign({},o(B)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:B.controlHeightLG},[`&-sm ${le}-select-single ${le}-select-selector`]:{height:B.controlHeightSM},[`> ${G}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${G}-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 ${B.paddingInline}px`,color:B.colorText,fontWeight:"normal",fontSize:B.fontSize,textAlign:"center",backgroundColor:B.colorFillAlter,border:`${B.lineWidth}px ${B.lineType} ${B.colorBorder}`,borderRadius:B.borderRadius,transition:`all ${B.motionDurationSlow}`,lineHeight:1,[`${le}-select`]:{margin:`-${B.paddingBlock+1}px -${B.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${B.lineWidth}px ${B.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:B.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${B.paddingInline}px`,backgroundColor:"transparent",[`${le}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${G}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${G}-search-with-button &`]:{zIndex:0}}},[`> ${G}:first-child, ${G}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${G}-affix-wrapper`]:{[`&:not(:first-child) ${G}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${G}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${G}:last-child, ${G}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${G}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${G}-search &`]:{borderStartStartRadius:B.borderRadius,borderEndStartRadius:B.borderRadius}},[`&:not(:first-child), ${G}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${G}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,we.dF)()),{[`${G}-group-addon, ${G}-group-wrap, > ${G}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:B.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${G}-affix-wrapper,
|
|
|
& > ${G}-number-affix-wrapper,
|
|
|
& > ${le}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-B.lineWidth,borderInlineEndWidth:B.lineWidth},[`${G}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
|
|
|
& > ${le}-select-auto-complete ${G},
|
|
|
& > ${le}-cascader-picker ${G},
|
|
|
& > ${G}-group-wrapper ${G}`]:{borderInlineEndWidth:B.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${le}-select-focused`]:{zIndex:1},[`& > ${le}-select > ${le}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${le}-select:first-child > ${le}-select-selector,
|
|
|
& > ${le}-select-auto-complete:first-child ${G},
|
|
|
& > ${le}-cascader-picker:first-child ${G}`]:{borderStartStartRadius:B.borderRadius,borderEndStartRadius:B.borderRadius},[`& > *:last-child,
|
|
|
& > ${le}-select:last-child > ${le}-select-selector,
|
|
|
& > ${le}-cascader-picker:last-child ${G},
|
|
|
& > ${le}-cascader-picker-focused:last-child ${G}`]:{borderInlineEndWidth:B.lineWidth,borderStartEndRadius:B.borderRadius,borderEndEndRadius:B.borderRadius},[`& > ${le}-select-auto-complete ${G}`]:{verticalAlign:"top"},[`${G}-group-wrapper + ${G}-group-wrapper`]:{marginInlineStart:-B.lineWidth,[`${G}-affix-wrapper`]:{borderRadius:0}},[`${G}-group-wrapper:not(:last-child)`]:{[`&${G}-search > ${G}-group`]:{[`& > ${G}-group-addon > ${G}-search-button`]:{borderRadius:0},[`& > ${G}`]:{borderStartStartRadius:B.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:B.borderRadius}}}})}},A=B=>{const{componentCls:G,controlHeightSM:le,lineWidth:J}=B,Ce=(le-J*2-16)/2;return{[G]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(B)),p(B)),L(B,G)),{'&[type="color"]':{height:B.controlHeight,[`&${G}-lg`]:{height:B.controlHeightLG},[`&${G}-sm`]:{height:le,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},m=B=>{const{componentCls:G}=B;return{[`${G}-clear-icon`]:{margin:0,color:B.colorTextQuaternary,fontSize:B.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${B.motionDurationSlow}`,"&:hover":{color:B.colorTextTertiary},"&:active":{color:B.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${B.inputAffixPadding}px`}}}},S=B=>{const{componentCls:G,inputAffixPadding:le,colorTextDescription:J,motionDurationSlow:be,colorIcon:Ce,colorIconHover:Re,iconCls:ae}=B;return{[`${G}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(B)),{display:"inline-flex",[`&:not(${G}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Y(B)),{zIndex:1,[`${G}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${G}[disabled]`]:{background:"transparent"}},[`> input${G}`]:{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"'},[`${G}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:B.paddingXS}},"&-show-count-suffix":{color:J},"&-show-count-has-suffix":{marginInlineEnd:B.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),m(B)),{[`${ae}${G}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${be}`,"&:hover":{color:Re}}}),L(B,`${G}-affix-wrapper`))}},$=B=>{const{componentCls:G,colorError:le,colorWarning:J,borderRadiusLG:be,borderRadiusSM:Ce}=B;return{[`${G}-group`]:Object.assign(Object.assign(Object.assign({},(0,we.Wf)(B)),a(B)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${G}-group-addon`]:{borderRadius:be,fontSize:B.fontSizeLG}},"&-sm":{[`${G}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${G}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${G}-group-addon`]:{color:J,borderColor:J}},"&-disabled":{[`${G}-group-addon`]:Object.assign({},I(B))},[`&:not(${G}-compact-first-item):not(${G}-compact-last-item)${G}-compact-item`]:{[`${G}, ${G}-group-addon`]:{borderRadius:0}},[`&:not(${G}-compact-last-item)${G}-compact-first-item`]:{[`${G}, ${G}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${G}-compact-first-item)${G}-compact-last-item`]:{[`${G}, ${G}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},F=B=>{const{componentCls:G,antCls:le}=B,J=`${G}-search`;return{[J]:{[`${G}`]:{"&:hover, &:focus":{borderColor:B.colorPrimaryHover,[`+ ${G}-group-addon ${J}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:B.colorPrimaryHover}}},[`${G}-affix-wrapper`]:{borderRadius:0},[`${G}-lg`]:{lineHeight:B.lineHeightLG-2e-4},[`> ${G}-group`]:{[`> ${G}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${J}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:B.borderRadius,borderEndEndRadius:B.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${J}-button:not(${le}-btn-primary)`]:{color:B.colorTextDescription,"&:hover":{color:B.colorPrimaryHover},"&:active":{color:B.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${J}-button`]:{height:B.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${J}-button`]:{height:B.controlHeightLG},[`&-small ${J}-button`]:{height:B.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${G}-compact-item`]:{[`&:not(${G}-compact-last-item)`]:{[`${G}-group-addon`]:{[`${G}-search-button`]:{marginInlineEnd:-B.lineWidth,borderRadius:0}}},[`&:not(${G}-compact-first-item)`]:{[`${G},${G}-affix-wrapper`]:{borderRadius:0}},[`> ${G}-group-addon ${G}-search-button,
|
|
|
> ${G},
|
|
|
${G}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${G}-affix-wrapper-focused`]:{zIndex:2}}}}},H=B=>{const{componentCls:G,paddingLG:le}=B,J=`${G}-textarea`;return{[J]:{position:"relative","&-show-count":{[`> ${G}`]:{height:"100%"},[`${G}-data-count`]:{position:"absolute",bottom:-B.fontSize*B.lineHeight,insetInlineEnd:0,color:B.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${G}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${J}-has-feedback`]:{[`${G}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${G}-affix-wrapper`]:{padding:0,[`> textarea${G}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${G}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${G}-clear-icon`]:{position:"absolute",insetInlineEnd:B.paddingXS,insetBlockStart:B.paddingXS},[`${J}-suffix`]:{position:"absolute",top:0,insetInlineEnd:B.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function V(B){return(0,se.TS)(B,{inputAffixPadding:B.paddingXXS})}const ee=B=>{const{controlHeight:G,fontSize:le,lineHeight:J,lineWidth:be,controlHeightSM:Ce,controlHeightLG:Re,fontSizeLG:ae,lineHeightLG:me,paddingSM:T,controlPaddingHorizontalSM:Ee,controlPaddingHorizontal:oe,colorFillAlter:he,colorPrimaryHover:ve,controlOutlineWidth:_,controlOutline:P,colorErrorOutline:X,colorWarningOutline:pe}=B;return{paddingBlock:Math.max(Math.round((G-le*J)/2*10)/10-be,3),paddingBlockSM:Math.max(Math.round((Ce-le*J)/2*10)/10-be,0),paddingBlockLG:Math.ceil((Re-ae*me)/2*10)/10-be,paddingInline:T-be,paddingInlineSM:Ee-be,paddingInlineLG:oe-be,addonBg:he,activeBorderColor:ve,hoverBorderColor:ve,activeShadow:`0 0 0 ${_}px ${P}`,errorActiveShadow:`0 0 0 ${_}px ${X}`,warningActiveShadow:`0 0 0 ${_}px ${pe}`}};Zt.ZP=(0,Me.Z)("Input",B=>{const G=(0,se.TS)(B,V(B));return[A(G),H(G),S(G),$(G),F(G),(0,De.c)(G)]},ee)},45818:function(bn,Zt,g){"use strict";g.d(Zt,{D:function(){return V},Z:function(){return G}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(J,be){return De.createElement(ie.Z,(0,we.Z)({},J,{ref:be,icon:Me}))},O=De.forwardRef(Y),I=O,n=g(33853),o=g(38819),L=g(92310),p=g.n(L),a=g(2738),m=le=>!isNaN(parseFloat(le))&&isFinite(le),S=g(36355),$=g(84966),F=function(le,J){var be={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&J.indexOf(Ce)<0&&(be[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ce=Object.getOwnPropertySymbols(le);Re<Ce.length;Re++)J.indexOf(Ce[Re])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Re])&&(be[Ce[Re]]=le[Ce[Re]]);return be};const H={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},V=De.createContext({}),ee=(()=>{let le=0;return function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${J}${le}`}})();var G=De.forwardRef((le,J)=>{const{prefixCls:be,className:Ce,trigger:Re,children:ae,defaultCollapsed:me=!1,theme:T="dark",style:Ee={},collapsible:oe=!1,reverseArrow:he=!1,width:ve=200,collapsedWidth:_=80,zeroWidthTriggerStyle:P,breakpoint:X,onCollapse:pe,onBreakpoint:Je}=le,at=F(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nt}=(0,De.useContext)($.Gs),[Lt,ur]=(0,De.useState)("collapsed"in le?le.collapsed:me),[Jt,We]=(0,De.useState)(!1);(0,De.useEffect)(()=>{"collapsed"in le&&ur(le.collapsed)},[le.collapsed]);const Cr=(z,v)=>{"collapsed"in le||ur(z),pe==null||pe(z,v)},Er=(0,De.useRef)();Er.current=z=>{We(z.matches),Je==null||Je(z.matches),Lt!==z.matches&&Cr(z.matches,"responsive")},(0,De.useEffect)(()=>{function z(h){return Er.current(h)}let v;if(typeof window!="undefined"){const{matchMedia:h}=window;if(h&&X&&X in H){v=h(`(max-width: ${H[X]})`);try{v.addEventListener("change",z)}catch(D){v.addListener(z)}z(v)}}return()=>{try{v==null||v.removeEventListener("change",z)}catch(h){v==null||v.removeListener(z)}}},[X]),(0,De.useEffect)(()=>{const z=ee("ant-sider-");return nt.addSider(z),()=>nt.removeSider(z)},[]);const Kr=()=>{Cr(!Lt,"clickTrigger")},{getPrefixCls:_r}=(0,De.useContext)(S.E_),Se=()=>{const z=_r("layout-sider",be),v=(0,a.Z)(at,["collapsed"]),h=Lt?_:ve,D=m(h)?`${h}px`:String(h),fe=parseFloat(String(_||0))===0?De.createElement("span",{onClick:Kr,className:p()(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${he?"right":"left"}`),style:P},Re||De.createElement(I,null)):null,te={expanded:he?De.createElement(o.Z,null):De.createElement(n.Z,null),collapsed:he?De.createElement(n.Z,null):De.createElement(o.Z,null)}[Lt?"collapsed":"expanded"],Te=Re!==null?fe||De.createElement("div",{className:`${z}-trigger`,onClick:Kr,style:{width:D}},Re||te):null,Ie=Object.assign(Object.assign({},Ee),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),Fe=p()(z,`${z}-${T}`,{[`${z}-collapsed`]:!!Lt,[`${z}-has-trigger`]:oe&&Re!==null&&!fe,[`${z}-below`]:!!Jt,[`${z}-zero-width`]:parseFloat(D)===0},Ce);return De.createElement("aside",Object.assign({className:Fe},v,{style:Ie,ref:J}),De.createElement("div",{className:`${z}-children`},ae),oe||Jt&&fe?Te:null)},Nt=De.useMemo(()=>({siderCollapsed:Lt}),[Lt]);return De.createElement(V.Provider,{value:Nt},Se())})},84966:function(bn,Zt,g){"use strict";g.d(Zt,{VY:function(){return V},$_:function(){return H},h4:function(){return F},Gs:function(){return a},ZP:function(){return ee}});var we=g(19127),De=g(92310),se=g.n(De),Me=g(2738),ie=g(59301),Y=g(36355),O=g(83116),n=B=>{const{componentCls:G,bodyBg:le,lightSiderBg:J,lightTriggerBg:be,lightTriggerColor:Ce}=B;return{[`${G}-sider-light`]:{background:J,[`${G}-sider-trigger`]:{color:Ce,background:be},[`${G}-sider-zero-width-trigger`]:{color:Ce,background:be,border:`1px solid ${le}`,borderInlineStart:0}}}};const o=B=>{const{antCls:G,componentCls:le,colorText:J,triggerColor:be,footerBg:Ce,triggerBg:Re,headerHeight:ae,headerPadding:me,headerColor:T,footerPadding:Ee,triggerHeight:oe,zeroTriggerHeight:he,zeroTriggerWidth:ve,motionDurationMid:_,motionDurationSlow:P,fontSize:X,borderRadius:pe,bodyBg:Je,headerBg:at,siderBg:nt}=B;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Je,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${_}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${G}-menu${G}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:oe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:oe,color:be,lineHeight:`${oe}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${_}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ae,insetInlineEnd:-ve,zIndex:1,width:ve,height:he,color:be,fontSize:B.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:pe,borderEndEndRadius:pe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${P} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${P}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ve,borderStartStartRadius:pe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pe}}}}},n(B)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:ae,padding:me,color:T,lineHeight:`${ae}px`,background:at,[`${G}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:Ee,color:J,fontSize:X,background:Ce},[`${le}-content`]:{flex:"auto",minHeight:0}}};var L=(0,O.Z)("Layout",B=>[o(B)],B=>{const{colorBgLayout:G,controlHeight:le,controlHeightLG:J,colorText:be,controlHeightSM:Ce,marginXXS:Re,colorTextLightSolid:ae,colorBgContainer:me}=B,T=J*1.25;return{colorBgHeader:"#001529",colorBgBody:G,colorBgTrigger:"#002140",bodyBg:G,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${T}px`,headerColor:be,footerPadding:`${Ce}px ${T}px`,footerBg:G,siderBg:"#001529",triggerHeight:J+Re*2,triggerBg:"#002140",triggerColor:ae,zeroTriggerWidth:J,zeroTriggerHeight:J,lightSiderBg:me,lightTriggerBg:me,lightTriggerColor:be}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),p=function(B,G){var le={};for(var J in B)Object.prototype.hasOwnProperty.call(B,J)&&G.indexOf(J)<0&&(le[J]=B[J]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,J=Object.getOwnPropertySymbols(B);be<J.length;be++)G.indexOf(J[be])<0&&Object.prototype.propertyIsEnumerable.call(B,J[be])&&(le[J[be]]=B[J[be]]);return le};const a=ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function A(B){let{suffixCls:G,tagName:le,displayName:J}=B;return be=>ie.forwardRef((Re,ae)=>ie.createElement(be,Object.assign({ref:ae,suffixCls:G,tagName:le},Re)))}const m=ie.forwardRef((B,G)=>{const{prefixCls:le,suffixCls:J,className:be,tagName:Ce}=B,Re=p(B,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ae}=ie.useContext(Y.E_),me=ae("layout",le),[T,Ee]=L(me),oe=J?`${me}-${J}`:me;return T(ie.createElement(Ce,Object.assign({className:se()(le||oe,be,Ee),ref:G},Re)))}),S=ie.forwardRef((B,G)=>{const{direction:le}=ie.useContext(Y.E_),[J,be]=ie.useState([]),{prefixCls:Ce,className:Re,rootClassName:ae,children:me,hasSider:T,tagName:Ee,style:oe}=B,he=p(B,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ve=(0,Me.Z)(he,["suffixCls"]),{getPrefixCls:_,layout:P}=ie.useContext(Y.E_),X=_("layout",Ce),[pe,Je]=L(X),at=se()(X,{[`${X}-has-sider`]:typeof T=="boolean"?T:J.length>0,[`${X}-rtl`]:le==="rtl"},P==null?void 0:P.className,Re,ae,Je),nt=ie.useMemo(()=>({siderHook:{addSider:Lt=>{be(ur=>[].concat((0,we.Z)(ur),[Lt]))},removeSider:Lt=>{be(ur=>ur.filter(Jt=>Jt!==Lt))}}}),[]);return pe(ie.createElement(a.Provider,{value:nt},ie.createElement(Ee,Object.assign({ref:G,className:at,style:Object.assign(Object.assign({},P==null?void 0:P.style),oe)},ve),me)))}),$=A({tagName:"div",displayName:"Layout"})(S),F=A({suffixCls:"header",tagName:"header",displayName:"Header"})(m),H=A({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(m),V=A({suffixCls:"content",tagName:"main",displayName:"Content"})(m);var ee=$},40875:function(bn,Zt,g){"use strict";g.d(Zt,{J:function(){return Y}});var we=g(59301),De=g(33234),se=g(70425),Me=function(O,I){var n={};for(var o in O)Object.prototype.hasOwnProperty.call(O,o)&&I.indexOf(o)<0&&(n[o]=O[o]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,o=Object.getOwnPropertySymbols(O);L<o.length;L++)I.indexOf(o[L])<0&&Object.prototype.propertyIsEnumerable.call(O,o[L])&&(n[o[L]]=O[o[L]]);return n};const ie=we.createContext(null),Y=we.forwardRef((O,I)=>{const{children:n}=O,o=Me(O,["children"]),L=we.useContext(ie),p=we.useMemo(()=>Object.assign(Object.assign({},L),o),[L,o.prefixCls,o.mode,o.selectable]);return we.createElement(ie.Provider,{value:p},we.createElement(De.BR,null,(0,se.supportNodeRef)(n)?we.cloneElement(n,{ref:I}):n))});Zt.Z=ie},20834:function(bn,Zt,g){"use strict";g.d(Zt,{default:function(){return Nt}});var we=g(15285),De=g(59301),se=g(45818),Me=g(92310),ie=g.n(Me),Y=g(36355),O=function(z,v){var h={};for(var D in z)Object.prototype.hasOwnProperty.call(z,D)&&v.indexOf(D)<0&&(h[D]=z[D]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,D=Object.getOwnPropertySymbols(z);fe<D.length;fe++)v.indexOf(D[fe])<0&&Object.prototype.propertyIsEnumerable.call(z,D[fe])&&(h[D[fe]]=z[D[fe]]);return h},n=z=>{const{prefixCls:v,className:h,dashed:D}=z,fe=O(z,["prefixCls","className","dashed"]),{getPrefixCls:Z}=De.useContext(Y.E_),N=Z("menu",v),te=ie()({[`${N}-item-divider-dashed`]:!!D},h);return De.createElement(we.iz,Object.assign({className:te},fe))},o=g(11592),L=g(2738),p=g(6848),a=g(92343),m=(0,De.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$=z=>{var v;const{className:h,children:D,icon:fe,title:Z,danger:N}=z,{prefixCls:te,firstLevel:Te,direction:Ie,disableMenuItemTitleTooltip:Fe,inlineCollapsed:ze}=De.useContext(m),pt=Bt=>{const Vt=De.createElement("span",{className:`${te}-title-content`},D);return(!fe||(0,a.l$)(D)&&D.type==="span")&&D&&Bt&&Te&&typeof D=="string"?De.createElement("div",{className:`${te}-inline-collapsed-noicon`},D.charAt(0)):Vt},{siderCollapsed:$e}=De.useContext(se.D);let tt=Z;typeof Z=="undefined"?tt=Te?D:"":Z===!1&&(tt="");const ct={title:tt};!$e&&!ze&&(ct.title=null,ct.open=!1);const Ge=(0,o.Z)(D).length;let Ke=De.createElement(we.ck,Object.assign({},(0,L.Z)(z,["title","icon","danger"]),{className:ie()({[`${te}-item-danger`]:N,[`${te}-item-only-child`]:(fe?Ge+1:Ge)===1},h),title:typeof Z=="string"?Z:void 0}),(0,a.Tm)(fe,{className:ie()((0,a.l$)(fe)?(v=fe.props)===null||v===void 0?void 0:v.className:"",`${te}-item-icon`)}),pt(ze));return Fe||(Ke=De.createElement(p.Z,Object.assign({},ct,{placement:Ie==="rtl"?"left":"right",overlayClassName:`${te}-inline-collapsed-tooltip`}),Ke)),Ke},H=z=>{var v;const{popupClassName:h,icon:D,title:fe,theme:Z}=z,N=De.useContext(m),{prefixCls:te,inlineCollapsed:Te,theme:Ie}=N,Fe=(0,we.Xl)();let ze;if(!D)ze=Te&&!Fe.length&&fe&&typeof fe=="string"?De.createElement("div",{className:`${te}-inline-collapsed-noicon`},fe.charAt(0)):De.createElement("span",{className:`${te}-title-content`},fe);else{const $e=(0,a.l$)(fe)&&fe.type==="span";ze=De.createElement(De.Fragment,null,(0,a.Tm)(D,{className:ie()((0,a.l$)(D)?(v=D.props)===null||v===void 0?void 0:v.className:"",`${te}-item-icon`)}),$e?fe:De.createElement("span",{className:`${te}-title-content`},fe))}const pt=De.useMemo(()=>Object.assign(Object.assign({},N),{firstLevel:!1}),[N]);return De.createElement(m.Provider,{value:pt},De.createElement(we.Wd,Object.assign({},(0,L.Z)(z,["icon"]),{title:ze,popupClassName:ie()(te,h,`${te}-${Z||Ie}`)})))},V=g(18785),ee=g(70425),B=g(62892),G=g(40875),le=function(z,v){var h={};for(var D in z)Object.prototype.hasOwnProperty.call(z,D)&&v.indexOf(D)<0&&(h[D]=z[D]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,D=Object.getOwnPropertySymbols(z);fe<D.length;fe++)v.indexOf(D[fe])<0&&Object.prototype.propertyIsEnumerable.call(z,D[fe])&&(h[D[fe]]=z[D[fe]]);return h};function J(z){return(z||[]).map((v,h)=>{if(v&&typeof v=="object"){const D=v,{label:fe,children:Z,key:N,type:te}=D,Te=le(D,["label","children","key","type"]),Ie=N!=null?N:`tmp-${h}`;return Z||te==="group"?te==="group"?De.createElement(we.BW,Object.assign({key:Ie},Te,{title:fe}),J(Z)):De.createElement(H,Object.assign({key:Ie},Te,{title:fe}),J(Z)):te==="divider"?De.createElement(n,Object.assign({key:Ie},Te)):De.createElement($,Object.assign({key:Ie},Te),fe)}return null}).filter(v=>v)}function be(z){return De.useMemo(()=>z&&J(z),[z])}var Ce=g(64993),Re=g(17313),ae=g(8378),me=g(13826),T=g(29878),Ee=g(83116),oe=g(37613),ve=z=>{const{componentCls:v,motionDurationSlow:h,horizontalLineHeight:D,colorSplit:fe,lineWidth:Z,lineType:N,itemPaddingInline:te}=z;return{[`${v}-horizontal`]:{lineHeight:D,border:0,borderBottom:`${Z}px ${N} ${fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${v}-item, ${v}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:te},[`> ${v}-item:hover,
|
|
|
> ${v}-item-active,
|
|
|
> ${v}-submenu ${v}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${v}-item, ${v}-submenu-title`]:{transition:[`border-color ${h}`,`background ${h}`].join(",")},[`${v}-submenu-arrow`]:{display:"none"}}}},P=z=>{let{componentCls:v,menuArrowOffset:h}=z;return{[`${v}-rtl`]:{direction:"rtl"},[`${v}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${v}-rtl${v}-vertical,
|
|
|
${v}-submenu-rtl ${v}-vertical`]:{[`${v}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${h})`},"&::after":{transform:`rotate(45deg) translateY(${h})`}}}}};const X=z=>Object.assign({},(0,Re.oN)(z));var Je=(z,v)=>{const{componentCls:h,itemColor:D,itemSelectedColor:fe,groupTitleColor:Z,itemBg:N,subMenuItemBg:te,itemSelectedBg:Te,activeBarHeight:Ie,activeBarWidth:Fe,activeBarBorderWidth:ze,motionDurationSlow:pt,motionEaseInOut:$e,motionEaseOut:tt,itemPaddingInline:ct,motionDurationMid:Ge,itemHoverColor:Ke,lineType:Bt,colorSplit:Vt,itemDisabledColor:Mt,dangerItemColor:mr,dangerItemHoverColor:wr,dangerItemSelectedColor:re,dangerItemActiveBg:ue,dangerItemSelectedBg:rr,itemHoverBg:Qe,itemActiveBg:ot,menuSubMenuBg:Yr,horizontalItemSelectedColor:It,horizontalItemSelectedBg:zt,horizontalItemBorderRadius:qt,horizontalItemHoverBg:qe,popupBg:At}=z;return{[`${h}-${v}, ${h}-${v} > ${h}`]:{color:D,background:N,[`&${h}-root:focus-visible`]:Object.assign({},X(z)),[`${h}-item-group-title`]:{color:Z},[`${h}-submenu-selected`]:{[`> ${h}-submenu-title`]:{color:fe}},[`${h}-item-disabled, ${h}-submenu-disabled`]:{color:`${Mt} !important`},[`${h}-item:not(${h}-item-selected):not(${h}-submenu-selected)`]:{[`&:hover, > ${h}-submenu-title:hover`]:{color:Ke}},[`&:not(${h}-horizontal)`]:{[`${h}-item:not(${h}-item-selected)`]:{"&:hover":{backgroundColor:Qe},"&:active":{backgroundColor:ot}},[`${h}-submenu-title`]:{"&:hover":{backgroundColor:Qe},"&:active":{backgroundColor:ot}}},[`${h}-item-danger`]:{color:mr,[`&${h}-item:hover`]:{[`&:not(${h}-item-selected):not(${h}-submenu-selected)`]:{color:wr}},[`&${h}-item:active`]:{background:ue}},[`${h}-item a`]:{"&, &:hover":{color:"inherit"}},[`${h}-item-selected`]:{color:fe,[`&${h}-item-danger`]:{color:re},"a, a:hover":{color:"inherit"}},[`& ${h}-item-selected`]:{backgroundColor:Te,[`&${h}-item-danger`]:{backgroundColor:rr}},[`${h}-item, ${h}-submenu-title`]:{[`&:not(${h}-item-disabled):focus-visible`]:Object.assign({},X(z))},[`&${h}-submenu > ${h}`]:{backgroundColor:Yr},[`&${h}-popup > ${h}`]:{backgroundColor:At},[`&${h}-horizontal`]:Object.assign(Object.assign({},v==="dark"?{borderBottom:0}:{}),{[`> ${h}-item, > ${h}-submenu`]:{top:ze,marginTop:-ze,marginBottom:0,borderRadius:qt,"&::after":{position:"absolute",insetInline:ct,bottom:0,borderBottom:`${Ie}px solid transparent`,transition:`border-color ${pt} ${$e}`,content:'""'},"&:hover, &-active, &-open":{background:qe,"&::after":{borderBottomWidth:Ie,borderBottomColor:It}},"&-selected":{color:It,backgroundColor:zt,"&:hover":{backgroundColor:zt},"&::after":{borderBottomWidth:Ie,borderBottomColor:It}}}}),[`&${h}-root`]:{[`&${h}-inline, &${h}-vertical`]:{borderInlineEnd:`${ze}px ${Bt} ${Vt}`}},[`&${h}-inline`]:{[`${h}-sub${h}-inline`]:{background:te},[`${h}-item, ${h}-submenu-title`]:ze&&Fe?{width:`calc(100% + ${ze}px)`}:{},[`${h}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Fe}px solid ${fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ge} ${tt}`,`opacity ${Ge} ${tt}`].join(","),content:'""'},[`&${h}-item-danger`]:{"&::after":{borderInlineEndColor:re}}},[`${h}-selected, ${h}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ge} ${$e}`,`opacity ${Ge} ${$e}`].join(",")}}}}}};const at=z=>{const{componentCls:v,itemHeight:h,itemMarginInline:D,padding:fe,menuArrowSize:Z,marginXS:N,itemMarginBlock:te}=z,Te=fe+Z+N;return{[`${v}-item`]:{position:"relative",overflow:"hidden"},[`${v}-item, ${v}-submenu-title`]:{height:h,lineHeight:`${h}px`,paddingInline:fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:D,marginBlock:te,width:`calc(100% - ${D*2}px)`},[`> ${v}-item,
|
|
|
> ${v}-submenu > ${v}-submenu-title`]:{height:h,lineHeight:`${h}px`},[`${v}-item-group-list ${v}-submenu-title,
|
|
|
${v}-submenu-title`]:{paddingInlineEnd:Te}}};var Lt=z=>{const{componentCls:v,iconCls:h,itemHeight:D,colorTextLightSolid:fe,dropdownWidth:Z,controlHeightLG:N,motionDurationMid:te,motionEaseOut:Te,paddingXL:Ie,itemMarginInline:Fe,fontSizeLG:ze,motionDurationSlow:pt,paddingXS:$e,boxShadowSecondary:tt,collapsedWidth:ct,collapsedIconSize:Ge}=z,Ke={height:D,lineHeight:`${D}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[v]:{"&-inline, &-vertical":Object.assign({[`&${v}-root`]:{boxShadow:"none"}},at(z))},[`${v}-submenu-popup`]:{[`${v}-vertical`]:Object.assign(Object.assign({},at(z)),{boxShadow:tt})}},{[`${v}-submenu-popup ${v}-vertical${v}-sub`]:{minWidth:Z,maxHeight:`calc(100vh - ${N*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${v}-inline`]:{width:"100%",[`&${v}-root`]:{[`${v}-item, ${v}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${pt}`,`background ${pt}`,`padding ${te} ${Te}`].join(","),[`> ${v}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${v}-sub${v}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${v}-submenu > ${v}-submenu-title`]:Ke,[`& ${v}-item-group-title`]:{paddingInlineStart:Ie}},[`${v}-item`]:Ke}},{[`${v}-inline-collapsed`]:{width:ct,[`&${v}-root`]:{[`${v}-item, ${v}-submenu ${v}-submenu-title`]:{[`> ${v}-inline-collapsed-noicon`]:{fontSize:ze,textAlign:"center"}}},[`> ${v}-item,
|
|
|
> ${v}-item-group > ${v}-item-group-list > ${v}-item,
|
|
|
> ${v}-item-group > ${v}-item-group-list > ${v}-submenu > ${v}-submenu-title,
|
|
|
> ${v}-submenu > ${v}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ze/2}px - ${Fe}px)`,textOverflow:"clip",[`
|
|
|
${v}-submenu-arrow,
|
|
|
${v}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${v}-item-icon, ${h}`]:{margin:0,fontSize:Ge,lineHeight:`${D}px`,"+ span":{display:"inline-block",opacity:0}}},[`${v}-item-icon, ${h}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${v}-item-icon, ${h}`]:{display:"none"},"a, a:hover":{color:fe}},[`${v}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:$e})}}]};const ur=z=>{const{componentCls:v,motionDurationSlow:h,motionDurationMid:D,motionEaseInOut:fe,motionEaseOut:Z,iconCls:N,iconSize:te,iconMarginInlineEnd:Te}=z;return{[`${v}-item, ${v}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${h}`,`background ${h}`,`padding ${h} ${fe}`].join(","),[`${v}-item-icon, ${N}`]:{minWidth:te,fontSize:te,transition:[`font-size ${D} ${Z}`,`margin ${h} ${fe}`,`color ${h}`].join(","),"+ span":{marginInlineStart:Te,opacity:1,transition:[`opacity ${h} ${fe}`,`margin ${h}`,`color ${h}`].join(",")}},[`${v}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${v}-item-only-child`]:{[`> ${N}, > ${v}-item-icon`]:{marginInlineEnd:0}}},[`${v}-item-disabled, ${v}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${v}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Jt=z=>{const{componentCls:v,motionDurationSlow:h,motionEaseInOut:D,borderRadius:fe,menuArrowSize:Z,menuArrowOffset:N}=z;return{[`${v}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:z.margin,width:Z,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${h} ${D}, opacity ${h}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Z*.6,height:Z*.15,backgroundColor:"currentcolor",borderRadius:fe,transition:[`background ${h} ${D}`,`transform ${h} ${D}`,`top ${h} ${D}`,`color ${h} ${D}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${N})`},"&::after":{transform:`rotate(-45deg) translateY(${N})`}}}}},We=z=>{const{antCls:v,componentCls:h,fontSize:D,motionDurationSlow:fe,motionDurationMid:Z,motionEaseInOut:N,paddingXS:te,padding:Te,colorSplit:Ie,lineWidth:Fe,zIndexPopup:ze,borderRadiusLG:pt,subMenuItemBorderRadius:$e,menuArrowSize:tt,menuArrowOffset:ct,lineType:Ge,menuPanelMaskInset:Ke,groupTitleLineHeight:Bt,groupTitleFontSize:Vt}=z;return[{"":{[`${h}`]:Object.assign(Object.assign({},(0,Re.dF)()),{"&-hidden":{display:"none"}})},[`${h}-submenu-hidden`]:{display:"none"}},{[h]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(z)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:D,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${fe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${h}-item`]:{flex:"none"}},[`${h}-item, ${h}-submenu, ${h}-submenu-title`]:{borderRadius:z.itemBorderRadius},[`${h}-item-group-title`]:{padding:`${te}px ${Te}px`,fontSize:Vt,lineHeight:Bt,transition:`all ${fe}`},[`&-horizontal ${h}-submenu`]:{transition:[`border-color ${fe} ${N}`,`background ${fe} ${N}`].join(",")},[`${h}-submenu, ${h}-submenu-inline`]:{transition:[`border-color ${fe} ${N}`,`background ${fe} ${N}`,`padding ${Z} ${N}`].join(",")},[`${h}-submenu ${h}-sub`]:{cursor:"initial",transition:[`background ${fe} ${N}`,`padding ${fe} ${N}`].join(",")},[`${h}-title-content`]:{transition:`color ${fe}`},[`${h}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${h}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ie,borderStyle:Ge,borderWidth:0,borderTopWidth:Fe,marginBlock:Fe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ur(z)),{[`${h}-item-group`]:{[`${h}-item-group-list`]:{margin:0,padding:0,[`${h}-item, ${h}-submenu-title`]:{paddingInline:`${D*2}px ${Te}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ze,borderRadius:pt,boxShadow:"none",transformOrigin:"0 0",[`&${h}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ke}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ke},"\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:z.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:z.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:z.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:z.paddingXS},[`> ${h}`]:Object.assign(Object.assign(Object.assign({borderRadius:pt},ur(z)),Jt(z)),{[`${h}-item, ${h}-submenu > ${h}-submenu-title`]:{borderRadius:$e},[`${h}-submenu-title::after`]:{transition:`transform ${fe} ${N}`}})}}),Jt(z)),{[`&-inline-collapsed ${h}-submenu-arrow,
|
|
|
&-inline ${h}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ct})`},"&::after":{transform:`rotate(45deg) translateX(-${ct})`}},[`${h}-submenu-open${h}-submenu-inline > ${h}-submenu-title > ${h}-submenu-arrow`]:{transform:`translateY(-${tt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ct})`},"&::before":{transform:`rotate(45deg) translateX(${ct})`}}})},{[`${v}-layout-header`]:{[h]:{lineHeight:"inherit"}}}]};var Cr=(z,v)=>(0,Ee.Z)("Menu",D=>{if(v===!1)return[];const{colorBgElevated:fe,colorPrimary:Z,colorTextLightSolid:N,controlHeightLG:te,fontSize:Te,darkItemColor:Ie,darkDangerItemColor:Fe,darkItemBg:ze,darkSubMenuItemBg:pt,darkItemSelectedColor:$e,darkItemSelectedBg:tt,darkDangerItemSelectedBg:ct,darkItemHoverBg:Ge,darkGroupTitleColor:Ke,darkItemHoverColor:Bt,darkItemDisabledColor:Vt,darkDangerItemHoverColor:Mt,darkDangerItemSelectedColor:mr,darkDangerItemActiveBg:wr}=D,re=Te/7*5,ue=(0,oe.TS)(D,{menuArrowSize:re,menuHorizontalHeight:te*1.15,menuArrowOffset:`${re*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:fe}),rr=(0,oe.TS)(ue,{itemColor:Ie,itemHoverColor:Bt,groupTitleColor:Ke,itemSelectedColor:$e,itemBg:ze,popupBg:ze,subMenuItemBg:pt,itemActiveBg:"transparent",itemSelectedBg:tt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ge,itemDisabledColor:Vt,dangerItemColor:Fe,dangerItemHoverColor:Mt,dangerItemSelectedColor:mr,dangerItemActiveBg:wr,dangerItemSelectedBg:ct,menuSubMenuBg:pt,horizontalItemSelectedColor:N,horizontalItemSelectedBg:Z});return[We(ue),ve(ue),Lt(ue),Je(ue,"light"),Je(rr,"dark"),P(ue),(0,ae.Z)(ue),(0,me.oN)(ue,"slide-up"),(0,me.oN)(ue,"slide-down"),(0,T._y)(ue,"zoom-big")]},D=>{const{colorPrimary:fe,colorError:Z,colorTextDisabled:N,colorErrorBg:te,colorText:Te,colorTextDescription:Ie,colorBgContainer:Fe,colorFillAlter:ze,colorFillContent:pt,lineWidth:$e,lineWidthBold:tt,controlItemBgActive:ct,colorBgTextHover:Ge,controlHeightLG:Ke,lineHeight:Bt,colorBgElevated:Vt,marginXXS:Mt,padding:mr,fontSize:wr,controlHeightSM:re,fontSizeLG:ue,colorTextLightSolid:rr,colorErrorHover:Qe}=D,ot=new Ce.C(rr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:D.zIndexPopupBase+50,radiusItem:D.borderRadiusLG,itemBorderRadius:D.borderRadiusLG,radiusSubMenuItem:D.borderRadiusSM,subMenuItemBorderRadius:D.borderRadiusSM,colorItemText:Te,itemColor:Te,colorItemTextHover:Te,itemHoverColor:Te,colorItemTextHoverHorizontal:fe,horizontalItemHoverColor:fe,colorGroupTitle:Ie,groupTitleColor:Ie,colorItemTextSelected:fe,itemSelectedColor:fe,colorItemTextSelectedHorizontal:fe,horizontalItemSelectedColor:fe,colorItemBg:Fe,itemBg:Fe,colorItemBgHover:Ge,itemHoverBg:Ge,colorItemBgActive:pt,itemActiveBg:ct,colorSubItemBg:ze,subMenuItemBg:ze,colorItemBgSelected:ct,itemSelectedBg:ct,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:tt,activeBarHeight:tt,colorActiveBarBorderSize:$e,activeBarBorderWidth:$e,colorItemTextDisabled:N,itemDisabledColor:N,colorDangerItemText:Z,dangerItemColor:Z,colorDangerItemTextHover:Z,dangerItemHoverColor:Z,colorDangerItemTextSelected:Z,dangerItemSelectedColor:Z,colorDangerItemBgActive:te,dangerItemActiveBg:te,colorDangerItemBgSelected:te,dangerItemSelectedBg:te,itemMarginInline:D.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ke,groupTitleLineHeight:Bt,collapsedWidth:Ke*2,popupBg:Vt,itemMarginBlock:Mt,itemPaddingInline:mr,horizontalLineHeight:`${Ke*1.15}px`,iconSize:wr,iconMarginInlineEnd:re-wr,collapsedIconSize:ue,groupTitleFontSize:wr,darkItemDisabledColor:new Ce.C(rr).setAlpha(.25).toRgbString(),darkItemColor:ot,darkDangerItemColor:Z,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rr,darkItemSelectedBg:fe,darkDangerItemSelectedBg:Z,darkItemHoverBg:"transparent",darkGroupTitleColor:ot,darkItemHoverColor:rr,darkDangerItemHoverColor:Qe,darkDangerItemSelectedColor:rr,darkDangerItemActiveBg:Z}},{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"]]})(z),Er=function(z,v){var h={};for(var D in z)Object.prototype.hasOwnProperty.call(z,D)&&v.indexOf(D)<0&&(h[D]=z[D]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,D=Object.getOwnPropertySymbols(z);fe<D.length;fe++)v.indexOf(D[fe])<0&&Object.prototype.propertyIsEnumerable.call(z,D[fe])&&(h[D[fe]]=z[D[fe]]);return h},_r=(0,De.forwardRef)((z,v)=>{var h,D;const fe=De.useContext(G.Z),Z=fe||{},{getPrefixCls:N,getPopupContainer:te,direction:Te,menu:Ie}=De.useContext(Y.E_),Fe=N(),{prefixCls:ze,className:pt,style:$e,theme:tt="light",expandIcon:ct,_internalDisableMenuItemTitleTooltip:Ge,inlineCollapsed:Ke,siderCollapsed:Bt,items:Vt,children:Mt,rootClassName:mr,mode:wr,selectable:re,onClick:ue,overflowedIndicatorPopupClassName:rr}=z,Qe=Er(z,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ot=(0,L.Z)(Qe,["collapsedWidth"]),Yr=be(Vt)||Mt;(h=Z.validator)===null||h===void 0||h.call(Z,{mode:wr});const It=(0,ee.useEvent)(function(){var Xn;ue==null||ue.apply(void 0,arguments),(Xn=Z.onClick)===null||Xn===void 0||Xn.call(Z)}),zt=Z.mode||wr,qt=re!=null?re:Z.selectable,qe=De.useMemo(()=>Bt!==void 0?Bt:Ke,[Ke,Bt]),At={horizontal:{motionName:`${Fe}-slide-up`},inline:(0,B.Z)(Fe),other:{motionName:`${Fe}-zoom-big`}},dt=N("menu",ze||Z.prefixCls),[Gt,Pe]=Cr(dt,!fe),an=ie()(`${dt}-${tt}`,Ie==null?void 0:Ie.className,pt);let kt;if(typeof ct=="function")kt=ct;else if(ct===null||ct===!1)kt=null;else if(Z.expandIcon===null||Z.expandIcon===!1)kt=null;else{const Xn=ct!=null?ct:Z.expandIcon;kt=(0,a.Tm)(Xn,{className:ie()(`${dt}-submenu-expand-icon`,(0,a.l$)(Xn)?(D=Xn.props)===null||D===void 0?void 0:D.className:"")})}const kn=De.useMemo(()=>({prefixCls:dt,inlineCollapsed:qe||!1,direction:Te,firstLevel:!0,theme:tt,mode:zt,disableMenuItemTitleTooltip:Ge}),[dt,qe,Te,Ge,tt]);return Gt(De.createElement(G.Z.Provider,{value:null},De.createElement(m.Provider,{value:kn},De.createElement(we.ZP,Object.assign({getPopupContainer:te,overflowedIndicator:De.createElement(V.Z,null),overflowedIndicatorPopupClassName:ie()(dt,`${dt}-${tt}`,rr),mode:zt,selectable:qt,onClick:It},ot,{inlineCollapsed:qe,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),$e),className:an,prefixCls:dt,direction:Te,defaultMotions:At,expandIcon:kt,ref:v,rootClassName:ie()(mr,Pe)}),Yr))))});const Se=(0,De.forwardRef)((z,v)=>{const h=(0,De.useRef)(null),D=De.useContext(se.D);return(0,De.useImperativeHandle)(v,()=>({menu:h.current,focus:fe=>{var Z;(Z=h.current)===null||Z===void 0||Z.focus(fe)}})),De.createElement(_r,Object.assign({ref:h},z,D))});Se.Item=$,Se.SubMenu=H,Se.Divider=n,Se.ItemGroup=we.BW;var Nt=Se},58421:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return Z}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(te,Te){return De.createElement(ie.Z,(0,we.Z)({},te,{ref:Te,icon:Me}))},O=De.forwardRef(Y),I=O,n=g(49198),o=g(33853),L=g(38819),p=g(92310),a=g.n(p),A=g(90493),m=g(44127),S=g(52884),$=g(95727),F=g(65711),H=g(85745),V=g(26112),ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},B=ee,G=g(91735),le=function(N){(0,F.Z)(Te,N);var te=(0,H.Z)(Te);function Te(){var Ie;(0,S.Z)(this,Te);for(var Fe=arguments.length,ze=new Array(Fe),pt=0;pt<Fe;pt++)ze[pt]=arguments[pt];return Ie=te.call.apply(te,[this].concat(ze)),Ie.state={goInputText:""},Ie.getValidValue=function(){var $e=Ie.state.goInputText;return!$e||Number.isNaN($e)?void 0:Number($e)},Ie.buildOptionText=function($e){return"".concat($e," ").concat(Ie.props.locale.items_per_page)},Ie.changeSize=function($e){Ie.props.changeSize(Number($e))},Ie.handleChange=function($e){Ie.setState({goInputText:$e.target.value})},Ie.handleBlur=function($e){var tt=Ie.props,ct=tt.goButton,Ge=tt.quickGo,Ke=tt.rootPrefixCls,Bt=Ie.state.goInputText;ct||Bt===""||(Ie.setState({goInputText:""}),!($e.relatedTarget&&($e.relatedTarget.className.indexOf("".concat(Ke,"-item-link"))>=0||$e.relatedTarget.className.indexOf("".concat(Ke,"-item"))>=0))&&Ge(Ie.getValidValue()))},Ie.go=function($e){var tt=Ie.state.goInputText;tt!==""&&($e.keyCode===B.ENTER||$e.type==="click")&&(Ie.setState({goInputText:""}),Ie.props.quickGo(Ie.getValidValue()))},Ie}return(0,$.Z)(Te,[{key:"getPageSizeOptions",value:function(){var Fe=this.props,ze=Fe.pageSize,pt=Fe.pageSizeOptions;return pt.some(function($e){return $e.toString()===ze.toString()})?pt:pt.concat([ze.toString()]).sort(function($e,tt){var ct=Number.isNaN(Number($e))?0:Number($e),Ge=Number.isNaN(Number(tt))?0:Number(tt);return ct-Ge})}},{key:"render",value:function(){var Fe=this,ze=this.props,pt=ze.pageSize,$e=ze.locale,tt=ze.rootPrefixCls,ct=ze.changeSize,Ge=ze.quickGo,Ke=ze.goButton,Bt=ze.selectComponentClass,Vt=ze.buildOptionText,Mt=ze.selectPrefixCls,mr=ze.disabled,wr=this.state.goInputText,re="".concat(tt,"-options"),ue=Bt,rr=null,Qe=null,ot=null;if(!ct&&!Ge)return null;var Yr=this.getPageSizeOptions();if(ct&&ue){var It=Yr.map(function(zt,qt){return De.createElement(ue.Option,{key:qt,value:zt.toString()},(Vt||Fe.buildOptionText)(zt))});rr=De.createElement(ue,{disabled:mr,prefixCls:Mt,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(pt||Yr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(qt){return qt.parentNode},"aria-label":$e.page_size,defaultOpen:!1},It)}return Ge&&(Ke&&(ot=typeof Ke=="boolean"?De.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:mr,className:"".concat(re,"-quick-jumper-button")},$e.jump_to_confirm):De.createElement("span",{onClick:this.go,onKeyUp:this.go},Ke)),Qe=De.createElement("div",{className:"".concat(re,"-quick-jumper")},$e.jump_to,De.createElement("input",{disabled:mr,type:"text",value:wr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":$e.page}),$e.page,ot)),De.createElement("li",{className:"".concat(re)},rr,Qe)}}]),Te}(De.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var J=le,be=function(te){var Te,Ie=te.rootPrefixCls,Fe=te.page,ze=te.active,pt=te.className,$e=te.showTitle,tt=te.onClick,ct=te.onKeyPress,Ge=te.itemRender,Ke="".concat(Ie,"-item"),Bt=a()(Ke,"".concat(Ke,"-").concat(Fe),(Te={},(0,A.Z)(Te,"".concat(Ke,"-active"),ze),(0,A.Z)(Te,"".concat(Ke,"-disabled"),!Fe),(0,A.Z)(Te,te.className,pt),Te)),Vt=function(){tt(Fe)},Mt=function(re){ct(re,tt,Fe)},mr=Ge(Fe,"page",De.createElement("a",{rel:"nofollow"},Fe));return mr?De.createElement("li",{title:$e?Fe.toString():null,className:Bt,onClick:Vt,onKeyPress:Mt,tabIndex:0},mr):null},Ce=be;function Re(){}function ae(N){var te=Number(N);return typeof te=="number"&&!Number.isNaN(te)&&isFinite(te)&&Math.floor(te)===te}var me=function(te,Te,Ie){return Ie};function T(N,te,Te){var Ie=typeof N=="undefined"?te.pageSize:N;return Math.floor((Te.total-1)/Ie)+1}var Ee=function(N){(0,F.Z)(Te,N);var te=(0,H.Z)(Te);function Te(Ie){var Fe;(0,S.Z)(this,Te),Fe=te.call(this,Ie),Fe.paginationNode=De.createRef(),Fe.getJumpPrevPage=function(){return Math.max(1,Fe.state.current-(Fe.props.showLessItems?3:5))},Fe.getJumpNextPage=function(){return Math.min(T(void 0,Fe.state,Fe.props),Fe.state.current+(Fe.props.showLessItems?3:5))},Fe.getItemIcon=function(ct,Ge){var Ke=Fe.props.prefixCls,Bt=ct||De.createElement("button",{type:"button","aria-label":Ge,className:"".concat(Ke,"-item-link")});return typeof ct=="function"&&(Bt=De.createElement(ct,(0,m.Z)({},Fe.props))),Bt},Fe.isValid=function(ct){var Ge=Fe.props.total;return ae(ct)&&ct!==Fe.state.current&&ae(Ge)&&Ge>0},Fe.shouldDisplayQuickJumper=function(){var ct=Fe.props,Ge=ct.showQuickJumper,Ke=ct.total,Bt=Fe.state.pageSize;return Ke<=Bt?!1:Ge},Fe.handleKeyDown=function(ct){(ct.keyCode===B.ARROW_UP||ct.keyCode===B.ARROW_DOWN)&&ct.preventDefault()},Fe.handleKeyUp=function(ct){var Ge=Fe.getValidValue(ct),Ke=Fe.state.currentInputValue;Ge!==Ke&&Fe.setState({currentInputValue:Ge}),ct.keyCode===B.ENTER?Fe.handleChange(Ge):ct.keyCode===B.ARROW_UP?Fe.handleChange(Ge-1):ct.keyCode===B.ARROW_DOWN&&Fe.handleChange(Ge+1)},Fe.handleBlur=function(ct){var Ge=Fe.getValidValue(ct);Fe.handleChange(Ge)},Fe.changePageSize=function(ct){var Ge=Fe.state.current,Ke=T(ct,Fe.state,Fe.props);Ge=Ge>Ke?Ke:Ge,Ke===0&&(Ge=Fe.state.current),typeof ct=="number"&&("pageSize"in Fe.props||Fe.setState({pageSize:ct}),"current"in Fe.props||Fe.setState({current:Ge,currentInputValue:Ge})),Fe.props.onShowSizeChange(Ge,ct),"onChange"in Fe.props&&Fe.props.onChange&&Fe.props.onChange(Ge,ct)},Fe.handleChange=function(ct){var Ge=Fe.props,Ke=Ge.disabled,Bt=Ge.onChange,Vt=Fe.state,Mt=Vt.pageSize,mr=Vt.current,wr=Vt.currentInputValue;if(Fe.isValid(ct)&&!Ke){var re=T(void 0,Fe.state,Fe.props),ue=ct;return ct>re?ue=re:ct<1&&(ue=1),"current"in Fe.props||Fe.setState({current:ue}),ue!==wr&&Fe.setState({currentInputValue:ue}),Bt(ue,Mt),ue}return mr},Fe.prev=function(){Fe.hasPrev()&&Fe.handleChange(Fe.state.current-1)},Fe.next=function(){Fe.hasNext()&&Fe.handleChange(Fe.state.current+1)},Fe.jumpPrev=function(){Fe.handleChange(Fe.getJumpPrevPage())},Fe.jumpNext=function(){Fe.handleChange(Fe.getJumpNextPage())},Fe.hasPrev=function(){return Fe.state.current>1},Fe.hasNext=function(){return Fe.state.current<T(void 0,Fe.state,Fe.props)},Fe.runIfEnter=function(ct,Ge){if(ct.key==="Enter"||ct.charCode===13){for(var Ke=arguments.length,Bt=new Array(Ke>2?Ke-2:0),Vt=2;Vt<Ke;Vt++)Bt[Vt-2]=arguments[Vt];Ge.apply(void 0,Bt)}},Fe.runIfEnterPrev=function(ct){Fe.runIfEnter(ct,Fe.prev)},Fe.runIfEnterNext=function(ct){Fe.runIfEnter(ct,Fe.next)},Fe.runIfEnterJumpPrev=function(ct){Fe.runIfEnter(ct,Fe.jumpPrev)},Fe.runIfEnterJumpNext=function(ct){Fe.runIfEnter(ct,Fe.jumpNext)},Fe.handleGoTO=function(ct){(ct.keyCode===B.ENTER||ct.type==="click")&&Fe.handleChange(Fe.state.currentInputValue)},Fe.renderPrev=function(ct){var Ge=Fe.props,Ke=Ge.prevIcon,Bt=Ge.itemRender,Vt=Bt(ct,"prev",Fe.getItemIcon(Ke,"prev page")),Mt=!Fe.hasPrev();return(0,De.isValidElement)(Vt)?(0,De.cloneElement)(Vt,{disabled:Mt}):Vt},Fe.renderNext=function(ct){var Ge=Fe.props,Ke=Ge.nextIcon,Bt=Ge.itemRender,Vt=Bt(ct,"next",Fe.getItemIcon(Ke,"next page")),Mt=!Fe.hasNext();return(0,De.isValidElement)(Vt)?(0,De.cloneElement)(Vt,{disabled:Mt}):Vt};var ze=Ie.onChange!==Re,pt="current"in Ie;pt&&!ze&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var $e=Ie.defaultCurrent;"current"in Ie&&($e=Ie.current);var tt=Ie.defaultPageSize;return"pageSize"in Ie&&(tt=Ie.pageSize),$e=Math.min($e,T(tt,void 0,Ie)),Fe.state={current:$e,currentInputValue:$e,pageSize:tt},Fe}return(0,$.Z)(Te,[{key:"componentDidUpdate",value:function(Fe,ze){var pt=this.props.prefixCls;if(ze.current!==this.state.current&&this.paginationNode.current){var $e=this.paginationNode.current.querySelector(".".concat(pt,"-item-").concat(ze.current));if($e&&document.activeElement===$e){var tt;$e==null||(tt=$e.blur)===null||tt===void 0||tt.call($e)}}}},{key:"getValidValue",value:function(Fe){var ze=Fe.target.value,pt=T(void 0,this.state,this.props),$e=this.state.currentInputValue,tt;return ze===""?tt=ze:Number.isNaN(Number(ze))?tt=$e:ze>=pt?tt=pt:tt=Number(ze),tt}},{key:"getShowSizeChanger",value:function(){var Fe=this.props,ze=Fe.showSizeChanger,pt=Fe.total,$e=Fe.totalBoundaryShowSizeChanger;return typeof ze!="undefined"?ze:pt>$e}},{key:"render",value:function(){var Fe=this.props,ze=Fe.prefixCls,pt=Fe.className,$e=Fe.style,tt=Fe.disabled,ct=Fe.hideOnSinglePage,Ge=Fe.total,Ke=Fe.locale,Bt=Fe.showQuickJumper,Vt=Fe.showLessItems,Mt=Fe.showTitle,mr=Fe.showTotal,wr=Fe.simple,re=Fe.itemRender,ue=Fe.showPrevNextJumpers,rr=Fe.jumpPrevIcon,Qe=Fe.jumpNextIcon,ot=Fe.selectComponentClass,Yr=Fe.selectPrefixCls,It=Fe.pageSizeOptions,zt=this.state,qt=zt.current,qe=zt.pageSize,At=zt.currentInputValue;if(ct===!0&&Ge<=qe)return null;var dt=T(void 0,this.state,this.props),Gt=[],Pe=null,an=null,kt=null,kn=null,Xn=null,yi=Bt&&Bt.goButton,ji=Vt?1:2,On=qt-1>0?qt-1:0,$n=qt+1<dt?qt+1:dt,Yt=(0,V.Z)(this.props,{aria:!0,data:!0}),jr=mr&&De.createElement("li",{className:"".concat(ze,"-total-text")},mr(Ge,[Ge===0?0:(qt-1)*qe+1,qt*qe>Ge?Ge:qt*qe]));if(wr){yi&&(typeof yi=="boolean"?Xn=De.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ke.jump_to_confirm):Xn=De.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yi),Xn=De.createElement("li",{title:Mt?"".concat(Ke.jump_to).concat(qt,"/").concat(dt):null,className:"".concat(ze,"-simple-pager")},Xn));var Jr=this.renderPrev(On);return De.createElement("ul",(0,we.Z)({className:a()(ze,"".concat(ze,"-simple"),(0,A.Z)({},"".concat(ze,"-disabled"),tt),pt),style:$e,ref:this.paginationNode},Yt),jr,Jr?De.createElement("li",{title:Mt?Ke.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(ze,"-prev"),(0,A.Z)({},"".concat(ze,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Jr):null,De.createElement("li",{title:Mt?"".concat(qt,"/").concat(dt):null,className:"".concat(ze,"-simple-pager")},De.createElement("input",{type:"text",value:At,disabled:tt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),De.createElement("span",{className:"".concat(ze,"-slash")},"/"),dt),De.createElement("li",{title:Mt?Ke.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(ze,"-next"),(0,A.Z)({},"".concat(ze,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext($n)),Xn)}if(dt<=3+ji*2){var Ot={locale:Ke,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Mt,itemRender:re};dt||Gt.push(De.createElement(Ce,(0,we.Z)({},Ot,{key:"noPager",page:1,className:"".concat(ze,"-item-disabled")})));for(var _t=1;_t<=dt;_t+=1){var Br=qt===_t;Gt.push(De.createElement(Ce,(0,we.Z)({},Ot,{key:_t,page:_t,active:Br})))}}else{var Lr=Vt?Ke.prev_3:Ke.prev_5,In=Vt?Ke.next_3:Ke.next_5,tn=re(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(rr,"prev page")),Bn=re(this.getJumpNextPage(),"jump-next",this.getItemIcon(Qe,"next page"));ue&&(Pe=tn?De.createElement("li",{title:Mt?Lr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(ze,"-jump-prev"),(0,A.Z)({},"".concat(ze,"-jump-prev-custom-icon"),!!rr))},tn):null,an=Bn?De.createElement("li",{title:Mt?In:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(ze,"-jump-next"),(0,A.Z)({},"".concat(ze,"-jump-next-custom-icon"),!!Qe))},Bn):null),kn=De.createElement(Ce,{locale:Ke,last:!0,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:dt,page:dt,active:!1,showTitle:Mt,itemRender:re}),kt=De.createElement(Ce,{locale:Ke,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Mt,itemRender:re});var gn=Math.max(1,qt-ji),Qn=Math.min(qt+ji,dt);qt-1<=ji&&(Qn=1+ji*2),dt-qt<=ji&&(gn=dt-ji*2);for(var ei=gn;ei<=Qn;ei+=1){var Hr=qt===ei;Gt.push(De.createElement(Ce,{locale:Ke,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ei,page:ei,active:Hr,showTitle:Mt,itemRender:re}))}qt-1>=ji*2&&qt!==3&&(Gt[0]=(0,De.cloneElement)(Gt[0],{className:"".concat(ze,"-item-after-jump-prev")}),Gt.unshift(Pe)),dt-qt>=ji*2&&qt!==dt-2&&(Gt[Gt.length-1]=(0,De.cloneElement)(Gt[Gt.length-1],{className:"".concat(ze,"-item-before-jump-next")}),Gt.push(an)),gn!==1&&Gt.unshift(kt),Qn!==dt&&Gt.push(kn)}var zr=!this.hasPrev()||!dt,Tn=!this.hasNext()||!dt,Sn=this.renderPrev(On),jn=this.renderNext($n);return De.createElement("ul",(0,we.Z)({className:a()(ze,pt,(0,A.Z)({},"".concat(ze,"-disabled"),tt)),style:$e,ref:this.paginationNode},Yt),jr,Sn?De.createElement("li",{title:Mt?Ke.prev_page:null,onClick:this.prev,tabIndex:zr?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(ze,"-prev"),(0,A.Z)({},"".concat(ze,"-disabled"),zr)),"aria-disabled":zr},Sn):null,Gt,jn?De.createElement("li",{title:Mt?Ke.next_page:null,onClick:this.next,tabIndex:Tn?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(ze,"-next"),(0,A.Z)({},"".concat(ze,"-disabled"),Tn)),"aria-disabled":Tn},jn):null,De.createElement(J,{disabled:tt,locale:Ke,rootPrefixCls:ze,selectComponentClass:ot,selectPrefixCls:Yr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:qt,pageSize:qe,pageSizeOptions:It,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:yi}))}}],[{key:"getDerivedStateFromProps",value:function(Fe,ze){var pt={};if("current"in Fe&&(pt.current=Fe.current,Fe.current!==ze.current&&(pt.currentInputValue=pt.current)),"pageSize"in Fe&&Fe.pageSize!==ze.pageSize){var $e=ze.current,tt=T(Fe.pageSize,ze,Fe);$e=$e>tt?tt:$e,"current"in Fe||(pt.current=$e,pt.currentInputValue=$e),pt.pageSize=Fe.pageSize}return pt}}]),Te}(De.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Re,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Re,locale:G.Z,style:{},itemRender:me,totalBoundaryShowSizeChanger:50};var oe=Ee,he=g(22075),ve=g(36355),_=g(19716),P=g(8628),X=g(9763),pe=g(57809);const Je=N=>De.createElement(pe.default,Object.assign({},N,{showSearch:!0,size:"small"})),at=N=>De.createElement(pe.default,Object.assign({},N,{showSearch:!0,size:"middle"}));Je.Option=pe.default.Option,at.Option=pe.default.Option;var nt=g(9937),Lt=g(17313),ur=g(83116),Jt=g(37613);const We=N=>{const{componentCls:te}=N;return{[`${te}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${te}-item-link`]:{color:N.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${te}-item-link`]:{color:N.colorTextDisabled,cursor:"not-allowed"}}},[`&${te}-disabled`]:{cursor:"not-allowed",[`${te}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:N.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:N.colorBorder,backgroundColor:N.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:N.itemActiveBgDisabled},a:{color:N.itemActiveColorDisabled}}},[`${te}-item-link`]:{color:N.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${te}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${te}-simple-pager`]:{color:N.colorTextDisabled},[`${te}-jump-prev, ${te}-jump-next`]:{[`${te}-item-link-icon`]:{opacity:0},[`${te}-item-ellipsis`]:{opacity:1}}},[`&${te}-simple`]:{[`${te}-prev, ${te}-next`]:{[`&${te}-disabled ${te}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Cr=N=>{const{componentCls:te}=N;return{[`&${te}-mini ${te}-total-text, &${te}-mini ${te}-simple-pager`]:{height:N.itemSizeSM,lineHeight:`${N.itemSizeSM}px`},[`&${te}-mini ${te}-item`]:{minWidth:N.itemSizeSM,height:N.itemSizeSM,margin:0,lineHeight:`${N.itemSizeSM-2}px`},[`&${te}-mini:not(${te}-disabled) ${te}-item:not(${te}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:N.colorBgTextHover},"&:active":{backgroundColor:N.colorBgTextActive}},[`&${te}-mini ${te}-prev, &${te}-mini ${te}-next`]:{minWidth:N.itemSizeSM,height:N.itemSizeSM,margin:0,lineHeight:`${N.itemSizeSM}px`},[`&${te}-mini:not(${te}-disabled)`]:{[`${te}-prev, ${te}-next`]:{[`&:hover ${te}-item-link`]:{backgroundColor:N.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:N.colorBgTextActive},[`&${te}-disabled:hover ${te}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${te}-mini ${te}-prev ${te}-item-link,
|
|
|
&${te}-mini ${te}-next ${te}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:N.itemSizeSM,lineHeight:`${N.itemSizeSM}px`}},[`&${te}-mini ${te}-jump-prev, &${te}-mini ${te}-jump-next`]:{height:N.itemSizeSM,marginInlineEnd:0,lineHeight:`${N.itemSizeSM}px`},[`&${te}-mini ${te}-options`]:{marginInlineStart:N.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:N.miniOptionsSizeChangerTop},"&-quick-jumper":{height:N.itemSizeSM,lineHeight:`${N.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nt.x0)(N)),{width:N.paginationMiniQuickJumperInputWidth,height:N.controlHeightSM})}}}},Er=N=>{const{componentCls:te}=N;return{[`
|
|
|
&${te}-simple ${te}-prev,
|
|
|
&${te}-simple ${te}-next
|
|
|
`]:{height:N.itemSizeSM,lineHeight:`${N.itemSizeSM}px`,verticalAlign:"top",[`${te}-item-link`]:{height:N.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:N.colorBgTextHover},"&:active":{backgroundColor:N.colorBgTextActive},"&::after":{height:N.itemSizeSM,lineHeight:`${N.itemSizeSM}px`}}},[`&${te}-simple ${te}-simple-pager`]:{display:"inline-block",height:N.itemSizeSM,marginInlineEnd:N.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:N.marginXS,padding:`0 ${N.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:N.itemInputBg,border:`${N.lineWidth}px ${N.lineType} ${N.colorBorder}`,borderRadius:N.borderRadius,outline:"none",transition:`border-color ${N.motionDurationMid}`,color:"inherit","&:hover":{borderColor:N.colorPrimary},"&:focus":{borderColor:N.colorPrimaryHover,boxShadow:`${N.inputOutlineOffset}px 0 ${N.controlOutlineWidth}px ${N.controlOutline}`},"&[disabled]":{color:N.colorTextDisabled,backgroundColor:N.colorBgContainerDisabled,borderColor:N.colorBorder,cursor:"not-allowed"}}}}},Kr=N=>{const{componentCls:te}=N;return{[`${te}-jump-prev, ${te}-jump-next`]:{outline:0,[`${te}-item-container`]:{position:"relative",[`${te}-item-link-icon`]:{color:N.colorPrimary,fontSize:N.fontSizeSM,opacity:0,transition:`all ${N.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${te}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:N.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:N.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:N.paginationEllipsisTextIndent,opacity:1,transition:`all ${N.motionDurationMid}`}},"&:hover":{[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${te}-prev,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{marginInlineEnd:N.marginXS},[`
|
|
|
${te}-prev,
|
|
|
${te}-next,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:N.itemSize,height:N.itemSize,color:N.colorText,fontFamily:N.fontFamily,lineHeight:`${N.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:N.borderRadius,cursor:"pointer",transition:`all ${N.motionDurationMid}`},[`${te}-prev, ${te}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:N.colorText,cursor:"pointer",userSelect:"none"},[`${te}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:N.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${N.lineWidth}px ${N.lineType} transparent`,borderRadius:N.borderRadius,outline:"none",transition:`all ${N.motionDurationMid}`},[`&:hover ${te}-item-link`]:{backgroundColor:N.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:N.colorBgTextActive},[`&${te}-disabled:hover`]:{[`${te}-item-link`]:{backgroundColor:"transparent"}}},[`${te}-slash`]:{marginInlineEnd:N.paginationSlashMarginInlineEnd,marginInlineStart:N.paginationSlashMarginInlineStart},[`${te}-options`]:{display:"inline-block",marginInlineStart:N.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:N.controlHeight,marginInlineStart:N.marginXS,lineHeight:`${N.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nt.ik)(N)),{width:N.controlHeightLG*1.25,height:N.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:N.marginXS,marginInlineEnd:N.marginXS})}}}},_r=N=>{const{componentCls:te}=N;return{[`${te}-item`]:{display:"inline-block",minWidth:N.itemSize,height:N.itemSize,marginInlineEnd:N.marginXS,fontFamily:N.fontFamily,lineHeight:`${N.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${N.lineWidth}px ${N.lineType} transparent`,borderRadius:N.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${N.paginationItemPaddingInline}px`,color:N.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${te}-item-active)`]:{"&:hover":{transition:`all ${N.motionDurationMid}`,backgroundColor:N.colorBgTextHover},"&:active":{backgroundColor:N.colorBgTextActive}},"&-active":{fontWeight:N.fontWeightStrong,backgroundColor:N.itemActiveBg,borderColor:N.colorPrimary,a:{color:N.colorPrimary},"&:hover":{borderColor:N.colorPrimaryHover},"&:hover a":{color:N.colorPrimaryHover}}}}},Se=N=>{const{componentCls:te}=N;return{[te]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(N)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${te}-total-text`]:{display:"inline-block",height:N.itemSize,marginInlineEnd:N.marginXS,lineHeight:`${N.itemSize-2}px`,verticalAlign:"middle"}}),_r(N)),Kr(N)),Er(N)),Cr(N)),We(N)),{[`@media only screen and (max-width: ${N.screenLG}px)`]:{[`${te}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${N.screenSM}px)`]:{[`${te}-options`]:{display:"none"}}}),[`&${N.componentCls}-rtl`]:{direction:"rtl"}}},Nt=N=>{const{componentCls:te}=N;return{[`${te}${te}-disabled:not(${te}-mini)`]:{"&, &:hover":{[`${te}-item-link`]:{borderColor:N.colorBorder}},"&:focus-visible":{[`${te}-item-link`]:{borderColor:N.colorBorder}},[`${te}-item, ${te}-item-link`]:{backgroundColor:N.colorBgContainerDisabled,borderColor:N.colorBorder,[`&:hover:not(${te}-item-active)`]:{backgroundColor:N.colorBgContainerDisabled,borderColor:N.colorBorder,a:{color:N.colorTextDisabled}},[`&${te}-item-active`]:{backgroundColor:N.itemActiveBgDisabled}},[`${te}-prev, ${te}-next`]:{"&:hover button":{backgroundColor:N.colorBgContainerDisabled,borderColor:N.colorBorder,color:N.colorTextDisabled},[`${te}-item-link`]:{backgroundColor:N.colorBgContainerDisabled,borderColor:N.colorBorder}}},[`${te}:not(${te}-mini)`]:{[`${te}-prev, ${te}-next`]:{"&:hover button":{borderColor:N.colorPrimaryHover,backgroundColor:N.itemBg},[`${te}-item-link`]:{backgroundColor:N.itemLinkBg,borderColor:N.colorBorder},[`&:hover ${te}-item-link`]:{borderColor:N.colorPrimary,backgroundColor:N.itemBg,color:N.colorPrimary},[`&${te}-disabled`]:{[`${te}-item-link`]:{borderColor:N.colorBorder,color:N.colorTextDisabled}}},[`${te}-item`]:{backgroundColor:N.itemBg,border:`${N.lineWidth}px ${N.lineType} ${N.colorBorder}`,[`&:hover:not(${te}-item-active)`]:{borderColor:N.colorPrimary,backgroundColor:N.itemBg,a:{color:N.colorPrimary}},"&-active":{borderColor:N.colorPrimary}}}}},z=N=>{const{componentCls:te}=N;return{[`${te}:not(${te}-disabled)`]:{[`${te}-item`]:Object.assign({},(0,Lt.Qy)(N)),[`${te}-jump-prev, ${te}-jump-next`]:{"&:focus-visible":Object.assign({[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}},(0,Lt.oN)(N))},[`${te}-prev, ${te}-next`]:{[`&:focus-visible ${te}-item-link`]:Object.assign({},(0,Lt.oN)(N))}}}};var v=(0,ur.Z)("Pagination",N=>{const te=(0,Jt.TS)(N,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:N.marginXXS/2,paginationMiniQuickJumperInputWidth:N.controlHeightLG*1.1,paginationItemPaddingInline:N.marginXXS*1.5,paginationEllipsisLetterSpacing:N.marginXXS/2,paginationSlashMarginInlineStart:N.marginXXS,paginationSlashMarginInlineEnd:N.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nt.e5)(N),(0,nt.TM)(N));return[Se(te),z(te),N.wireframe&&Nt(te)]},N=>({itemBg:N.colorBgContainer,itemSize:N.controlHeight,itemSizeSM:N.controlHeightSM,itemActiveBg:N.colorBgContainer,itemLinkBg:N.colorBgContainer,itemActiveColorDisabled:N.colorTextDisabled,itemActiveBgDisabled:N.controlItemBgActiveDisabled,itemInputBg:N.colorBgContainer,miniOptionsSizeChangerTop:0})),h=function(N,te){var Te={};for(var Ie in N)Object.prototype.hasOwnProperty.call(N,Ie)&&te.indexOf(Ie)<0&&(Te[Ie]=N[Ie]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ie=Object.getOwnPropertySymbols(N);Fe<Ie.length;Fe++)te.indexOf(Ie[Fe])<0&&Object.prototype.propertyIsEnumerable.call(N,Ie[Fe])&&(Te[Ie[Fe]]=N[Ie[Fe]]);return Te},fe=N=>{const{prefixCls:te,selectPrefixCls:Te,className:Ie,rootClassName:Fe,style:ze,size:pt,locale:$e,selectComponentClass:tt,responsive:ct,showSizeChanger:Ge}=N,Ke=h(N,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Bt}=(0,P.Z)(ct),{getPrefixCls:Vt,direction:Mt,pagination:mr={}}=De.useContext(ve.E_),wr=Vt("pagination",te),[re,ue]=v(wr),rr=Ge!=null?Ge:mr.showSizeChanger,Qe=De.useMemo(()=>{const dt=De.createElement("span",{className:`${wr}-item-ellipsis`},"\u2022\u2022\u2022"),Gt=De.createElement("button",{className:`${wr}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?De.createElement(L.Z,null):De.createElement(o.Z,null)),Pe=De.createElement("button",{className:`${wr}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?De.createElement(o.Z,null):De.createElement(L.Z,null)),an=De.createElement("a",{className:`${wr}-item-link`},De.createElement("div",{className:`${wr}-item-container`},Mt==="rtl"?De.createElement(n.Z,{className:`${wr}-item-link-icon`}):De.createElement(I,{className:`${wr}-item-link-icon`}),dt)),kt=De.createElement("a",{className:`${wr}-item-link`},De.createElement("div",{className:`${wr}-item-container`},Mt==="rtl"?De.createElement(I,{className:`${wr}-item-link-icon`}):De.createElement(n.Z,{className:`${wr}-item-link-icon`}),dt));return{prevIcon:Gt,nextIcon:Pe,jumpPrevIcon:an,jumpNextIcon:kt}},[Mt,wr]),[ot]=(0,X.Z)("Pagination",he.Z),Yr=Object.assign(Object.assign({},ot),$e),It=(0,_.Z)(pt),zt=It==="small"||!!(Bt&&!It&&ct),qt=Vt("select",Te),qe=a()({[`${wr}-mini`]:zt,[`${wr}-rtl`]:Mt==="rtl"},mr==null?void 0:mr.className,Ie,Fe,ue),At=Object.assign(Object.assign({},mr==null?void 0:mr.style),ze);return re(De.createElement(oe,Object.assign({},Qe,Ke,{style:At,prefixCls:wr,selectPrefixCls:qt,className:qe,selectComponentClass:tt||(zt?Je:at),locale:Yr,showSizeChanger:rr})))},Z=fe},5112:function(bn,Zt,g){"use strict";g.d(Zt,{ZP:function(){return P}});var we=g(92310),De=g.n(we),se=g(18929),Me=g(26112),ie=g(59301),Y=g(36355),O=g(19716);const I=ie.createContext(null),n=I.Provider;var o=I;const L=ie.createContext(null),p=L.Provider;var a=g(5630),A=g(8654),m=g(1684),S=g(32441),$=g(17313),F=g(83116),H=g(37613);const V=X=>{const{componentCls:pe,antCls:Je}=X,at=`${pe}-group`;return{[at]:Object.assign(Object.assign({},(0,$.Wf)(X)),{display:"inline-block",fontSize:0,[`&${at}-rtl`]:{direction:"rtl"},[`${Je}-badge ${Je}-badge-count`]:{zIndex:1},[`> ${Je}-badge:not(:first-child) > ${Je}-button-wrapper`]:{borderInlineStart:"none"}})}},ee=X=>{const{componentCls:pe,wrapperMarginInlineEnd:Je,colorPrimary:at,radioSize:nt,motionDurationSlow:Lt,motionDurationMid:ur,motionEaseInOutCirc:Jt,colorBgContainer:We,colorBorder:Cr,lineWidth:Er,dotSize:Kr,colorBgContainerDisabled:_r,colorTextDisabled:Se,paddingXS:Nt,dotColorDisabled:z,lineType:v,radioDotDisabledSize:h,wireframe:D,colorWhite:fe}=X,Z=`${pe}-inner`;return{[`${pe}-wrapper`]:Object.assign(Object.assign({},(0,$.Wf)(X)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Je,cursor:"pointer",[`&${pe}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:X.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${pe}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Er}px ${v} ${at}`,borderRadius:"50%",visibility:"hidden",content:'""'},[pe]:Object.assign(Object.assign({},(0,$.Wf)(X)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${pe}-wrapper:hover &,
|
|
|
&:hover ${Z}`]:{borderColor:at},[`${pe}-input:focus-visible + ${Z}`]:Object.assign({},(0,$.oN)(X)),[`${pe}:hover::after, ${pe}-wrapper:hover &::after`]:{visibility:"visible"},[`${pe}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:D?at:fe,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${Lt} ${Jt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:We,borderColor:Cr,borderStyle:"solid",borderWidth:Er,borderRadius:"50%",transition:`all ${ur}`},[`${pe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${pe}-checked`]:{[Z]:{borderColor:at,backgroundColor:D?We:at,"&::after":{transform:`scale(${Kr/nt})`,opacity:1,transition:`all ${Lt} ${Jt}`}}},[`${pe}-disabled`]:{cursor:"not-allowed",[Z]:{backgroundColor:_r,borderColor:Cr,cursor:"not-allowed","&::after":{backgroundColor:z}},[`${pe}-input`]:{cursor:"not-allowed"},[`${pe}-disabled + span`]:{color:Se,cursor:"not-allowed"},[`&${pe}-checked`]:{[Z]:{"&::after":{transform:`scale(${h/nt})`}}}},[`span${pe} + *`]:{paddingInlineStart:Nt,paddingInlineEnd:Nt}})}},B=X=>{const{buttonColor:pe,controlHeight:Je,componentCls:at,lineWidth:nt,lineType:Lt,colorBorder:ur,motionDurationSlow:Jt,motionDurationMid:We,buttonPaddingInline:Cr,fontSize:Er,buttonBg:Kr,fontSizeLG:_r,controlHeightLG:Se,controlHeightSM:Nt,paddingXS:z,borderRadius:v,borderRadiusSM:h,borderRadiusLG:D,buttonCheckedBg:fe,buttonSolidCheckedColor:Z,colorTextDisabled:N,colorBgContainerDisabled:te,buttonCheckedBgDisabled:Te,buttonCheckedColorDisabled:Ie,colorPrimary:Fe,colorPrimaryHover:ze,colorPrimaryActive:pt,buttonSolidCheckedBg:$e,buttonSolidCheckedHoverBg:tt,buttonSolidCheckedActiveBg:ct}=X;return{[`${at}-button-wrapper`]:{position:"relative",display:"inline-block",height:Je,margin:0,paddingInline:Cr,paddingBlock:0,color:pe,fontSize:Er,lineHeight:`${Je-nt*2}px`,background:Kr,border:`${nt}px ${Lt} ${ur}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${We}`,`background ${We}`,`box-shadow ${We}`].join(","),a:{color:pe},[`> ${at}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:ur,transition:`background-color ${Jt}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${Lt} ${ur}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${at}-group-large &`]:{height:Se,fontSize:_r,lineHeight:`${Se-nt*2}px`,"&:first-child":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D}},[`${at}-group-small &`]:{height:Nt,paddingInline:z-nt,paddingBlock:0,lineHeight:`${Nt-nt*2}px`,"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:Fe},"&:has(:focus-visible)":Object.assign({},(0,$.oN)(X)),[`${at}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${at}-button-wrapper-disabled)`]:{zIndex:1,color:Fe,background:fe,borderColor:Fe,"&::before":{backgroundColor:Fe},"&:first-child":{borderColor:Fe},"&:hover":{color:ze,borderColor:ze,"&::before":{backgroundColor:ze}},"&:active":{color:pt,borderColor:pt,"&::before":{backgroundColor:pt}}},[`${at}-group-solid &-checked:not(${at}-button-wrapper-disabled)`]:{color:Z,background:$e,borderColor:$e,"&:hover":{color:Z,background:tt,borderColor:tt},"&:active":{color:Z,background:ct,borderColor:ct}},"&-disabled":{color:N,backgroundColor:te,borderColor:ur,cursor:"not-allowed","&:first-child, &:hover":{color:N,backgroundColor:te,borderColor:ur}},[`&-disabled${at}-button-wrapper-checked`]:{color:Ie,backgroundColor:Te,borderColor:ur,boxShadow:"none"}}}},G=X=>X-4*2;var le=(0,F.Z)("Radio",X=>{const{controlOutline:pe,controlOutlineWidth:Je,radioSize:at}=X,nt=`0 0 0 ${Je}px ${pe}`,Lt=nt,ur=G(at),Jt=(0,H.TS)(X,{radioDotDisabledSize:ur,radioFocusShadow:nt,radioButtonFocusShadow:Lt});return[V(Jt),ee(Jt),B(Jt)]},X=>{const{wireframe:pe,padding:Je,marginXS:at,lineWidth:nt,fontSizeLG:Lt,colorText:ur,colorBgContainer:Jt,colorTextDisabled:We,controlItemBgActiveDisabled:Cr,colorTextLightSolid:Er,colorPrimary:Kr,colorPrimaryHover:_r,colorPrimaryActive:Se}=X,Nt=4,z=Lt,v=pe?G(z):z-(Nt+nt)*2;return{radioSize:z,dotSize:v,dotColorDisabled:We,buttonSolidCheckedColor:Er,buttonSolidCheckedBg:Kr,buttonSolidCheckedHoverBg:_r,buttonSolidCheckedActiveBg:Se,buttonBg:Jt,buttonCheckedBg:Jt,buttonColor:ur,buttonCheckedBgDisabled:Cr,buttonCheckedColorDisabled:We,buttonPaddingInline:Je-nt,wrapperMarginInlineEnd:at}}),J=g(14088),be=g(4572),Ce=function(X,pe){var Je={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(Je[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,at=Object.getOwnPropertySymbols(X);nt<at.length;nt++)pe.indexOf(at[nt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[nt])&&(Je[at[nt]]=X[at[nt]]);return Je};const Re=(X,pe)=>{var Je,at;const nt=ie.useContext(o),Lt=ie.useContext(L),{getPrefixCls:ur,direction:Jt,radio:We}=ie.useContext(Y.E_),Cr=ie.useRef(null),Er=(0,A.sQ)(pe,Cr),{isFormItemInput:Kr}=ie.useContext(S.aM),_r=pt=>{var $e,tt;($e=X.onChange)===null||$e===void 0||$e.call(X,pt),(tt=nt==null?void 0:nt.onChange)===null||tt===void 0||tt.call(nt,pt)},{prefixCls:Se,className:Nt,rootClassName:z,children:v,style:h}=X,D=Ce(X,["prefixCls","className","rootClassName","children","style"]),fe=ur("radio",Se),Z=((nt==null?void 0:nt.optionType)||Lt)==="button",N=Z?`${fe}-button`:fe,[te,Te]=le(fe),Ie=Object.assign({},D),Fe=ie.useContext(m.Z);nt&&(Ie.name=nt.name,Ie.onChange=_r,Ie.checked=X.value===nt.value,Ie.disabled=(Je=Ie.disabled)!==null&&Je!==void 0?Je:nt.disabled),Ie.disabled=(at=Ie.disabled)!==null&&at!==void 0?at:Fe;const ze=De()(`${N}-wrapper`,{[`${N}-wrapper-checked`]:Ie.checked,[`${N}-wrapper-disabled`]:Ie.disabled,[`${N}-wrapper-rtl`]:Jt==="rtl",[`${N}-wrapper-in-form-item`]:Kr},We==null?void 0:We.className,Nt,z,Te);return te(ie.createElement(J.Z,{component:"Radio",disabled:Ie.disabled},ie.createElement("label",{className:ze,style:Object.assign(Object.assign({},We==null?void 0:We.style),h),onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave},ie.createElement(a.Z,Object.assign({},Ie,{className:De()(Ie.className,!Z&&be.A),type:"radio",prefixCls:N,ref:Er})),v!==void 0?ie.createElement("span",null,v):null)))};var me=ie.forwardRef(Re);const T=ie.forwardRef((X,pe)=>{const{getPrefixCls:Je,direction:at}=ie.useContext(Y.E_),[nt,Lt]=(0,se.Z)(X.defaultValue,{value:X.value}),ur=$e=>{const tt=nt,ct=$e.target.value;"value"in X||Lt(ct);const{onChange:Ge}=X;Ge&&ct!==tt&&Ge($e)},{prefixCls:Jt,className:We,rootClassName:Cr,options:Er,buttonStyle:Kr="outline",disabled:_r,children:Se,size:Nt,style:z,id:v,onMouseEnter:h,onMouseLeave:D,onFocus:fe,onBlur:Z}=X,N=Je("radio",Jt),te=`${N}-group`,[Te,Ie]=le(N);let Fe=Se;Er&&Er.length>0&&(Fe=Er.map($e=>typeof $e=="string"||typeof $e=="number"?ie.createElement(me,{key:$e.toString(),prefixCls:N,disabled:_r,value:$e,checked:nt===$e},$e):ie.createElement(me,{key:`radio-group-value-options-${$e.value}`,prefixCls:N,disabled:$e.disabled||_r,value:$e.value,checked:nt===$e.value,title:$e.title,style:$e.style},$e.label)));const ze=(0,O.Z)(Nt),pt=De()(te,`${te}-${Kr}`,{[`${te}-${ze}`]:ze,[`${te}-rtl`]:at==="rtl"},We,Cr,Ie);return Te(ie.createElement("div",Object.assign({},(0,Me.Z)(X,{aria:!0,data:!0}),{className:pt,style:z,onMouseEnter:h,onMouseLeave:D,onFocus:fe,onBlur:Z,id:v,ref:pe}),ie.createElement(n,{value:{onChange:ur,value:nt,disabled:X.disabled,name:X.name,optionType:X.optionType}},Fe)))});var Ee=ie.memo(T),oe=function(X,pe){var Je={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(Je[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,at=Object.getOwnPropertySymbols(X);nt<at.length;nt++)pe.indexOf(at[nt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[nt])&&(Je[at[nt]]=X[at[nt]]);return Je};const he=(X,pe)=>{const{getPrefixCls:Je}=ie.useContext(Y.E_),{prefixCls:at}=X,nt=oe(X,["prefixCls"]),Lt=Je("radio",at);return ie.createElement(p,{value:"button"},ie.createElement(me,Object.assign({prefixCls:Lt},nt,{type:"radio",ref:pe})))};var ve=ie.forwardRef(he);const _=me;_.Button=ve,_.Group=Ee,_.__ANT_RADIO=!0;var P=_},57809:function(bn,Zt,g){"use strict";var we=g(92310),De=g.n(we),se=g(77861),Me=g(2738),ie=g(59301),Y=g(53487),O=g(62892),I=g(19080),n=g(36355),o=g(1684),L=g(93891),p=g(19716),a=g(32441),A=g(33234),m=g(14154),S=g(58582),$=g(84443),F=g(66339),H=function(le,J){var be={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&J.indexOf(Ce)<0&&(be[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ce=Object.getOwnPropertySymbols(le);Re<Ce.length;Re++)J.indexOf(Ce[Re])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Re])&&(be[Ce[Re]]=le[Ce[Re]]);return be};const V="SECRET_COMBOBOX_MODE_DO_NOT_USE",ee=(le,J)=>{var be,{prefixCls:Ce,bordered:Re=!0,className:ae,rootClassName:me,getPopupContainer:T,popupClassName:Ee,dropdownClassName:oe,listHeight:he=256,placement:ve,listItemHeight:_=24,size:P,disabled:X,notFoundContent:pe,status:Je,builtinPlacements:at,dropdownMatchSelectWidth:nt,popupMatchSelectWidth:Lt,direction:ur,style:Jt,allowClear:We}=le,Cr=H(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Er,getPrefixCls:Kr,renderEmpty:_r,direction:Se,virtual:Nt,popupMatchSelectWidth:z,popupOverflow:v,select:h}=ie.useContext(n.E_),D=Kr("select",Ce),fe=Kr(),Z=ur!=null?ur:Se,{compactSize:N,compactItemClassnames:te}=(0,A.ri)(D,Z),[Te,Ie]=(0,m.Z)(D),Fe=ie.useMemo(()=>{const{mode:At}=Cr;if(At!=="combobox")return At===V?"combobox":At},[Cr.mode]),ze=Fe==="multiple"||Fe==="tags",pt=(0,$.Z)(Cr.suffixIcon,Cr.showArrow),$e=(be=Lt!=null?Lt:nt)!==null&&be!==void 0?be:z,{status:tt,hasFeedback:ct,isFormItemInput:Ge,feedbackIcon:Ke}=ie.useContext(a.aM),Bt=(0,I.F)(tt,Je);let Vt;pe!==void 0?Vt=pe:Fe==="combobox"?Vt=null:Vt=(_r==null?void 0:_r("Select"))||ie.createElement(L.Z,{componentName:"Select"});const{suffixIcon:Mt,itemIcon:mr,removeIcon:wr,clearIcon:re}=(0,F.Z)(Object.assign(Object.assign({},Cr),{multiple:ze,hasFeedback:ct,feedbackIcon:Ke,showSuffixIcon:pt,prefixCls:D,showArrow:Cr.showArrow,componentName:"Select"})),ue=We===!0?{clearIcon:re}:We,rr=(0,Me.Z)(Cr,["suffixIcon","itemIcon"]),Qe=De()(Ee||oe,{[`${D}-dropdown-${Z}`]:Z==="rtl"},me,Ie),ot=(0,p.Z)(At=>{var dt;return(dt=P!=null?P:N)!==null&&dt!==void 0?dt:At}),Yr=ie.useContext(o.Z),It=X!=null?X:Yr,zt=De()({[`${D}-lg`]:ot==="large",[`${D}-sm`]:ot==="small",[`${D}-rtl`]:Z==="rtl",[`${D}-borderless`]:!Re,[`${D}-in-form-item`]:Ge},(0,I.Z)(D,Bt,ct),te,h==null?void 0:h.className,ae,me,Ie),qt=ie.useMemo(()=>ve!==void 0?ve:Z==="rtl"?"bottomRight":"bottomLeft",[ve,Z]),qe=(0,S.Z)(at,v);return Te(ie.createElement(se.ZP,Object.assign({ref:J,virtual:Nt,showSearch:h==null?void 0:h.showSearch},rr,{style:Object.assign(Object.assign({},h==null?void 0:h.style),Jt),dropdownMatchSelectWidth:$e,builtinPlacements:qe,transitionName:(0,O.m)(fe,"slide-up",Cr.transitionName),listHeight:he,listItemHeight:_,mode:Fe,prefixCls:D,placement:qt,direction:Z,suffixIcon:Mt,menuItemSelectedIcon:mr,removeIcon:wr,allowClear:ue,notFoundContent:Vt,className:zt,getPopupContainer:T||Er,dropdownClassName:Qe,disabled:It})))},B=ie.forwardRef(ee),G=(0,Y.Z)(B);B.SECRET_COMBOBOX_MODE_DO_NOT_USE=V,B.Option=se.Wx,B.OptGroup=se.Xo,B._InternalPanelDoNotUseOrYouWillBeFired=G,Zt.default=B},14154:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return B}});var we=g(17313),De=g(74207),se=g(37613),Me=g(83116),ie=g(13826),Y=g(92899);const O=G=>{const{optionHeight:le,optionFontSize:J,optionLineHeight:be,optionPadding:Ce}=G;return{position:"relative",display:"block",minHeight:le,padding:Ce,color:G.colorText,fontWeight:"normal",fontSize:J,lineHeight:be,boxSizing:"border-box"}};var n=G=>{const{antCls:le,componentCls:J}=G,be=`${J}-item`,Ce=`&${le}-slide-up-enter${le}-slide-up-enter-active`,Re=`&${le}-slide-up-appear${le}-slide-up-appear-active`,ae=`&${le}-slide-up-leave${le}-slide-up-leave-active`,me=`${J}-dropdown-placement-`;return[{[`${J}-dropdown`]:Object.assign(Object.assign({},(0,we.Wf)(G)),{position:"absolute",top:-9999,zIndex:G.zIndexPopup,boxSizing:"border-box",padding:G.paddingXXS,overflow:"hidden",fontSize:G.fontSize,fontVariant:"initial",backgroundColor:G.colorBgElevated,borderRadius:G.borderRadiusLG,outline:"none",boxShadow:G.boxShadowSecondary,[`
|
|
|
${Ce}${me}bottomLeft,
|
|
|
${Re}${me}bottomLeft
|
|
|
`]:{animationName:ie.fJ},[`
|
|
|
${Ce}${me}topLeft,
|
|
|
${Re}${me}topLeft,
|
|
|
${Ce}${me}topRight,
|
|
|
${Re}${me}topRight
|
|
|
`]:{animationName:ie.Qt},[`${ae}${me}bottomLeft`]:{animationName:ie.Uw},[`
|
|
|
${ae}${me}topLeft,
|
|
|
${ae}${me}topRight
|
|
|
`]:{animationName:ie.ly},"&-hidden":{display:"none"},[`${be}`]:Object.assign(Object.assign({},O(G)),{cursor:"pointer",transition:`background ${G.motionDurationSlow} ease`,borderRadius:G.borderRadiusSM,"&-group":{color:G.colorTextDescription,fontSize:G.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},we.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${be}-option-disabled)`]:{backgroundColor:G.optionActiveBg},[`&-selected:not(${be}-option-disabled)`]:{color:G.optionSelectedColor,fontWeight:G.optionSelectedFontWeight,backgroundColor:G.optionSelectedBg,[`${be}-option-state`]:{color:G.colorPrimary}},"&-disabled":{[`&${be}-option-selected`]:{backgroundColor:G.colorBgContainerDisabled},color:G.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:G.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ie.oN)(G,"slide-up"),(0,ie.oN)(G,"slide-down"),(0,Y.Fm)(G,"move-up"),(0,Y.Fm)(G,"move-down")]};const o=2,L=G=>{let{controlHeightSM:le,controlHeight:J,lineWidth:be}=G;const Ce=(J-le)/2-be,Re=Math.ceil(Ce/2);return[Ce,Re]};function p(G,le){const{componentCls:J,iconCls:be}=G,Ce=`${J}-selection-overflow`,Re=G.multipleSelectItemHeight,[ae]=L(G),me=le?`${J}-${le}`:"";return{[`${J}-multiple${me}`]:{fontSize:G.fontSize,[Ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${J}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ae-o}px ${o*2}px`,borderRadius:G.borderRadius,[`${J}-show-search&`]:{cursor:"text"},[`${J}-disabled&`]:{background:G.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${o}px 0`,lineHeight:`${Re}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${J}-show-arrow ${J}-selector,
|
|
|
&${J}-allow-clear ${J}-selector
|
|
|
`]:{paddingInlineEnd:G.fontSizeIcon+G.controlPaddingHorizontal},[`${J}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Re,marginTop:o,marginBottom:o,lineHeight:`${Re-G.lineWidth*2}px`,background:G.multipleItemBg,border:`${G.lineWidth}px ${G.lineType} ${G.multipleItemBorderColor}`,borderRadius:G.borderRadiusSM,cursor:"default",transition:`font-size ${G.motionDurationSlow}, line-height ${G.motionDurationSlow}, height ${G.motionDurationSlow}`,userSelect:"none",marginInlineEnd:o*2,paddingInlineStart:G.paddingXS,paddingInlineEnd:G.paddingXS/2,[`${J}-disabled&`]:{color:G.multipleItemColorDisabled,borderColor:G.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:G.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,we.Ro)()),{display:"inline-flex",alignItems:"center",color:G.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:G.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${J}-selection-search`]:{marginInlineStart:0}},[`${J}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:G.inputPaddingHorizontalBase-ae,"\n &-input,\n &-mirror\n ":{height:Re,fontFamily:G.fontFamily,lineHeight:`${Re}px`,transition:`all ${G.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${J}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:G.inputPaddingHorizontalBase,insetInlineEnd:G.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${G.motionDurationSlow}`}}}}var A=G=>{const{componentCls:le}=G,J=(0,se.TS)(G,{controlHeight:G.controlHeightSM,multipleSelectItemHeight:G.controlHeightXS,borderRadius:G.borderRadiusSM,borderRadiusSM:G.borderRadiusXS}),be=(0,se.TS)(G,{fontSize:G.fontSizeLG,controlHeight:G.controlHeightLG,multipleSelectItemHeight:G.multipleItemHeightLG,borderRadius:G.borderRadiusLG,borderRadiusSM:G.borderRadius}),[,Ce]=L(G);return[p(G),p(J,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:G.controlPaddingHorizontalSM-G.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Ce}}},p(be,"lg")]};function m(G,le){const{componentCls:J,inputPaddingHorizontalBase:be,borderRadius:Ce}=G,Re=G.controlHeight-G.lineWidth*2,ae=Math.ceil(G.fontSize*1.25),me=le?`${J}-${le}`:"";return{[`${J}-single${me}`]:{fontSize:G.fontSize,[`${J}-selector`]:Object.assign(Object.assign({},(0,we.Wf)(G)),{display:"flex",borderRadius:Ce,[`${J}-selection-search`]:{position:"absolute",top:0,insetInlineStart:be,insetInlineEnd:be,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${J}-selection-item,
|
|
|
${J}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Re}px`,transition:`all ${G.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Re}px`}},[`${J}-selection-item`]:{position:"relative",userSelect:"none"},[`${J}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${J}-selection-item:after`,`${J}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${J}-show-arrow ${J}-selection-item,
|
|
|
&${J}-show-arrow ${J}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ae},[`&${J}-open ${J}-selection-item`]:{color:G.colorTextPlaceholder},[`&:not(${J}-customize-input)`]:{[`${J}-selector`]:{width:"100%",height:G.controlHeight,padding:`0 ${be}px`,[`${J}-selection-search-input`]:{height:Re},"&:after":{lineHeight:`${Re}px`}}},[`&${J}-customize-input`]:{[`${J}-selector`]:{"&:after":{display:"none"},[`${J}-selection-search`]:{position:"static",width:"100%"},[`${J}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${be}px`,"&:after":{display:"none"}}}}}}}function S(G){const{componentCls:le}=G,J=G.controlPaddingHorizontalSM-G.lineWidth;return[m(G),m((0,se.TS)(G,{controlHeight:G.controlHeightSM,borderRadius:G.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:J,insetInlineEnd:J},[`${le}-selector`]:{padding:`0 ${J}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:J+G.fontSize*1.5},[`
|
|
|
&${le}-show-arrow ${le}-selection-item,
|
|
|
&${le}-show-arrow ${le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:G.fontSize*1.5}}}},m((0,se.TS)(G,{controlHeight:G.singleItemHeightLG,fontSize:G.fontSizeLG,borderRadius:G.borderRadiusLG}),"lg")]}const $=G=>{const{componentCls:le,selectorBg:J}=G;return{position:"relative",backgroundColor:J,border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,transition:`all ${G.motionDurationMid} ${G.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:G.colorTextDisabled,background:G.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:G.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},F=function(G,le){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:be,borderHoverColor:Ce,outlineColor:Re,antCls:ae}=le,me=J?{[`${be}-selector`]:{borderColor:Ce}}:{};return{[G]:{[`&:not(${be}-disabled):not(${be}-customize-input):not(${ae}-pagination-size-changer)`]:Object.assign(Object.assign({},me),{[`${be}-focused& ${be}-selector`]:{borderColor:Ce,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${Re}`,outline:0},[`&:hover ${be}-selector`]:{borderColor:Ce}})}}},H=G=>{const{componentCls:le}=G;return{[`${le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},V=G=>{const{componentCls:le,inputPaddingHorizontalBase:J,iconCls:be}=G;return{[le]:Object.assign(Object.assign({},(0,we.Wf)(G)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},$(G)),H(G)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},we.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},we.vS),{flex:1,color:G.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,we.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:J,height:G.fontSizeIcon,marginTop:-G.fontSizeIcon/2,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[be]:{verticalAlign:"top",transition:`transform ${G.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${le}-suffix)`]:{pointerEvents:"auto"}},[`${le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:J,zIndex:1,display:"inline-block",width:G.fontSizeIcon,height:G.fontSizeIcon,marginTop:-G.fontSizeIcon/2,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:G.clearBg,cursor:"pointer",opacity:0,transition:`color ${G.motionDurationMid} ease, opacity ${G.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:G.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:J+G.fontSize+G.paddingXS}}}},ee=G=>{const{componentCls:le}=G;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},V(G),S(G),A(G),n(G),{[`${le}-rtl`]:{direction:"rtl"}},F(le,(0,se.TS)(G,{borderHoverColor:G.colorPrimaryHover,outlineColor:G.controlOutline})),F(`${le}-status-error`,(0,se.TS)(G,{borderHoverColor:G.colorErrorHover,outlineColor:G.colorErrorOutline}),!0),F(`${le}-status-warning`,(0,se.TS)(G,{borderHoverColor:G.colorWarningHover,outlineColor:G.colorWarningOutline}),!0),(0,De.c)(G,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var B=(0,Me.Z)("Select",(G,le)=>{let{rootPrefixCls:J}=le;const be=(0,se.TS)(G,{rootPrefixCls:J,inputPaddingHorizontalBase:G.paddingSM-1,multipleSelectItemHeight:G.multipleItemHeight});return[ee(be)]},G=>{const{fontSize:le,lineHeight:J,controlHeight:be,controlPaddingHorizontal:Ce,zIndexPopupBase:Re,colorText:ae,fontWeightStrong:me,controlItemBgActive:T,controlItemBgHover:Ee,colorBgContainer:oe,colorFillSecondary:he,controlHeightLG:ve,controlHeightSM:_,colorBgContainerDisabled:P,colorTextDisabled:X}=G;return{zIndexPopup:Re+50,optionSelectedColor:ae,optionSelectedFontWeight:me,optionSelectedBg:T,optionActiveBg:Ee,optionPadding:`${(be-le*J)/2}px ${Ce}px`,optionFontSize:le,optionLineHeight:J,optionHeight:be,selectorBg:oe,clearBg:oe,singleItemHeightLG:ve,multipleItemBg:he,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightLG:be,multipleSelectorBgDisabled:P,multipleItemColorDisabled:X,multipleItemBorderColorDisabled:"transparent"}})},58582:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return De}});const we=se=>{const ie={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:se==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ie),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ie),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ie),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ie),{points:["br","tr"],offset:[0,-4]})}};function De(se,Me){return se||we(Me)}},84443:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return we}});function we(De,se){return se!==void 0?se:De!==null}},66339:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(40001),De=g(19248),se=g(99267),Me=g(84105),ie=g(58617),Y=g(47472),O=g(59301);function I(n){let{suffixIcon:o,clearIcon:L,menuItemSelectedIcon:p,removeIcon:a,loading:A,multiple:m,hasFeedback:S,prefixCls:$,showSuffixIcon:F,feedbackIcon:H,showArrow:V,componentName:ee}=n;const B=L!=null?L:O.createElement(De.Z,null),G=Ce=>o===null&&!S&&!V?null:O.createElement(O.Fragment,null,F!==!1&&Ce,S&&H);let le=null;if(o!==void 0)le=G(o);else if(A)le=G(O.createElement(ie.Z,{spin:!0}));else{const Ce=`${$}-suffix`;le=Re=>{let{open:ae,showSearch:me}=Re;return G(ae&&me?O.createElement(Y.Z,{className:Ce}):O.createElement(Me.Z,{className:Ce}))}}let J=null;p!==void 0?J=p:m?J=O.createElement(we.Z,null):J=null;let be=null;return a!==void 0?be=a:be=O.createElement(se.Z,null),{clearIcon:B,suffixIcon:le,itemIcon:J,removeIcon:be}}},61621:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var we=g(92310),De=g.n(we),se=g(59301),Me=g(36355),ie=g(2738),O=h=>{const{prefixCls:D,className:fe,style:Z,size:N,shape:te}=h,Te=De()({[`${D}-lg`]:N==="large",[`${D}-sm`]:N==="small"}),Ie=De()({[`${D}-circle`]:te==="circle",[`${D}-square`]:te==="square",[`${D}-round`]:te==="round"}),Fe=se.useMemo(()=>typeof N=="number"?{width:N,height:N,lineHeight:`${N}px`}:{},[N]);return se.createElement("span",{className:De()(D,Te,Ie,fe),style:Object.assign(Object.assign({},Fe),Z)})},I=g(93083),n=g(83116),o=g(37613);const L=new I.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),p=h=>({height:h,lineHeight:`${h}px`}),a=h=>Object.assign({width:h},p(h)),A=h=>({background:h.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:L,animationDuration:h.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),m=h=>Object.assign({width:h*5,minWidth:h*5},p(h)),S=h=>{const{skeletonAvatarCls:D,gradientFromColor:fe,controlHeight:Z,controlHeightLG:N,controlHeightSM:te}=h;return{[`${D}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:fe},a(Z)),[`${D}${D}-circle`]:{borderRadius:"50%"},[`${D}${D}-lg`]:Object.assign({},a(N)),[`${D}${D}-sm`]:Object.assign({},a(te))}},$=h=>{const{controlHeight:D,borderRadiusSM:fe,skeletonInputCls:Z,controlHeightLG:N,controlHeightSM:te,gradientFromColor:Te}=h;return{[`${Z}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Te,borderRadius:fe},m(D)),[`${Z}-lg`]:Object.assign({},m(N)),[`${Z}-sm`]:Object.assign({},m(te))}},F=h=>Object.assign({width:h},p(h)),H=h=>{const{skeletonImageCls:D,imageSizeBase:fe,gradientFromColor:Z,borderRadiusSM:N}=h;return{[`${D}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Z,borderRadius:N},F(fe*2)),{[`${D}-path`]:{fill:"#bfbfbf"},[`${D}-svg`]:Object.assign(Object.assign({},F(fe)),{maxWidth:fe*4,maxHeight:fe*4}),[`${D}-svg${D}-svg-circle`]:{borderRadius:"50%"}}),[`${D}${D}-circle`]:{borderRadius:"50%"}}},V=(h,D,fe)=>{const{skeletonButtonCls:Z}=h;return{[`${fe}${Z}-circle`]:{width:D,minWidth:D,borderRadius:"50%"},[`${fe}${Z}-round`]:{borderRadius:D}}},ee=h=>Object.assign({width:h*2,minWidth:h*2},p(h)),B=h=>{const{borderRadiusSM:D,skeletonButtonCls:fe,controlHeight:Z,controlHeightLG:N,controlHeightSM:te,gradientFromColor:Te}=h;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Te,borderRadius:D,width:Z*2,minWidth:Z*2},ee(Z))},V(h,Z,fe)),{[`${fe}-lg`]:Object.assign({},ee(N))}),V(h,N,`${fe}-lg`)),{[`${fe}-sm`]:Object.assign({},ee(te))}),V(h,te,`${fe}-sm`))},G=h=>{const{componentCls:D,skeletonAvatarCls:fe,skeletonTitleCls:Z,skeletonParagraphCls:N,skeletonButtonCls:te,skeletonInputCls:Te,skeletonImageCls:Ie,controlHeight:Fe,controlHeightLG:ze,controlHeightSM:pt,gradientFromColor:$e,padding:tt,marginSM:ct,borderRadius:Ge,titleHeight:Ke,blockRadius:Bt,paragraphLiHeight:Vt,controlHeightXS:Mt,paragraphMarginTop:mr}=h;return{[`${D}`]:{display:"table",width:"100%",[`${D}-header`]:{display:"table-cell",paddingInlineEnd:tt,verticalAlign:"top",[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$e},a(Fe)),[`${fe}-circle`]:{borderRadius:"50%"},[`${fe}-lg`]:Object.assign({},a(ze)),[`${fe}-sm`]:Object.assign({},a(pt))},[`${D}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Z}`]:{width:"100%",height:Ke,background:$e,borderRadius:Bt,[`+ ${N}`]:{marginBlockStart:pt}},[`${N}`]:{padding:0,"> li":{width:"100%",height:Vt,listStyle:"none",background:$e,borderRadius:Bt,"+ li":{marginBlockStart:Mt}}},[`${N}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${D}-content`]:{[`${Z}, ${N} > li`]:{borderRadius:Ge}}},[`${D}-with-avatar ${D}-content`]:{[`${Z}`]:{marginBlockStart:ct,[`+ ${N}`]:{marginBlockStart:mr}}},[`${D}${D}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},B(h)),S(h)),$(h)),H(h)),[`${D}${D}-block`]:{width:"100%",[`${te}`]:{width:"100%"},[`${Te}`]:{width:"100%"}},[`${D}${D}-active`]:{[`
|
|
|
${Z},
|
|
|
${N} > li,
|
|
|
${fe},
|
|
|
${te},
|
|
|
${Te},
|
|
|
${Ie}
|
|
|
`]:Object.assign({},A(h))}}};var le=(0,n.Z)("Skeleton",h=>{const{componentCls:D}=h,fe=(0,o.TS)(h,{skeletonAvatarCls:`${D}-avatar`,skeletonTitleCls:`${D}-title`,skeletonParagraphCls:`${D}-paragraph`,skeletonButtonCls:`${D}-button`,skeletonInputCls:`${D}-input`,skeletonImageCls:`${D}-image`,imageSizeBase:h.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${h.gradientFromColor} 25%, ${h.gradientToColor} 37%, ${h.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[G(fe)]},h=>{const{colorFillContent:D,colorFill:fe}=h,Z=D,N=fe;return{color:Z,colorGradientEnd:N,gradientFromColor:Z,gradientToColor:N,titleHeight:h.controlHeight/2,blockRadius:h.borderRadiusSM,paragraphMarginTop:h.marginLG+h.marginXXS,paragraphLiHeight:h.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),be=h=>{const{prefixCls:D,className:fe,rootClassName:Z,active:N,shape:te="circle",size:Te="default"}=h,{getPrefixCls:Ie}=se.useContext(Me.E_),Fe=Ie("skeleton",D),[ze,pt]=le(Fe),$e=(0,ie.Z)(h,["prefixCls","className"]),tt=De()(Fe,`${Fe}-element`,{[`${Fe}-active`]:N},fe,Z,pt);return ze(se.createElement("div",{className:tt},se.createElement(O,Object.assign({prefixCls:`${Fe}-avatar`,shape:te,size:Te},$e))))},Re=h=>{const{prefixCls:D,className:fe,rootClassName:Z,active:N,block:te=!1,size:Te="default"}=h,{getPrefixCls:Ie}=se.useContext(Me.E_),Fe=Ie("skeleton",D),[ze,pt]=le(Fe),$e=(0,ie.Z)(h,["prefixCls"]),tt=De()(Fe,`${Fe}-element`,{[`${Fe}-active`]:N,[`${Fe}-block`]:te},fe,Z,pt);return ze(se.createElement("div",{className:tt},se.createElement(O,Object.assign({prefixCls:`${Fe}-button`,size:Te},$e))))};const ae="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var T=h=>{const{prefixCls:D,className:fe,rootClassName:Z,style:N,active:te}=h,{getPrefixCls:Te}=se.useContext(Me.E_),Ie=Te("skeleton",D),[Fe,ze]=le(Ie),pt=De()(Ie,`${Ie}-element`,{[`${Ie}-active`]:te},fe,Z,ze);return Fe(se.createElement("div",{className:pt},se.createElement("div",{className:De()(`${Ie}-image`,fe),style:N},se.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ie}-image-svg`},se.createElement("path",{d:ae,className:`${Ie}-image-path`})))))},oe=h=>{const{prefixCls:D,className:fe,rootClassName:Z,active:N,block:te,size:Te="default"}=h,{getPrefixCls:Ie}=se.useContext(Me.E_),Fe=Ie("skeleton",D),[ze,pt]=le(Fe),$e=(0,ie.Z)(h,["prefixCls"]),tt=De()(Fe,`${Fe}-element`,{[`${Fe}-active`]:N,[`${Fe}-block`]:te},fe,Z,pt);return ze(se.createElement("div",{className:tt},se.createElement(O,Object.assign({prefixCls:`${Fe}-input`,size:Te},$e))))},he=g(96663),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},_=ve,P=g(7657),X=function(D,fe){return se.createElement(P.Z,(0,he.Z)({},D,{ref:fe,icon:_}))},pe=se.forwardRef(X),Je=pe,nt=h=>{const{prefixCls:D,className:fe,rootClassName:Z,style:N,active:te,children:Te}=h,{getPrefixCls:Ie}=se.useContext(Me.E_),Fe=Ie("skeleton",D),[ze,pt]=le(Fe),$e=De()(Fe,`${Fe}-element`,{[`${Fe}-active`]:te},pt,fe,Z),tt=Te!=null?Te:se.createElement(Je,null);return ze(se.createElement("div",{className:$e},se.createElement("div",{className:De()(`${Fe}-image`,fe),style:N},tt)))},Lt=g(19127),Jt=h=>{const D=Ie=>{const{width:Fe,rows:ze=2}=h;if(Array.isArray(Fe))return Fe[Ie];if(ze-1===Ie)return Fe},{prefixCls:fe,className:Z,style:N,rows:te}=h,Te=(0,Lt.Z)(Array(te)).map((Ie,Fe)=>se.createElement("li",{key:Fe,style:{width:D(Fe)}}));return se.createElement("ul",{className:De()(fe,Z),style:N},Te)},Cr=h=>{let{prefixCls:D,className:fe,width:Z,style:N}=h;return se.createElement("h3",{className:De()(D,fe),style:Object.assign({width:Z},N)})};function Er(h){return h&&typeof h=="object"?h:{}}function Kr(h,D){return h&&!D?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function _r(h,D){return!h&&D?{width:"38%"}:h&&D?{width:"50%"}:{}}function Se(h,D){const fe={};return(!h||!D)&&(fe.width="61%"),!h&&D?fe.rows=3:fe.rows=2,fe}const Nt=h=>{const{prefixCls:D,loading:fe,className:Z,rootClassName:N,style:te,children:Te,avatar:Ie=!1,title:Fe=!0,paragraph:ze=!0,active:pt,round:$e}=h,{getPrefixCls:tt,direction:ct,skeleton:Ge}=se.useContext(Me.E_),Ke=tt("skeleton",D),[Bt,Vt]=le(Ke);if(fe||!("loading"in h)){const Mt=!!Ie,mr=!!Fe,wr=!!ze;let re;if(Mt){const Qe=Object.assign(Object.assign({prefixCls:`${Ke}-avatar`},Kr(mr,wr)),Er(Ie));re=se.createElement("div",{className:`${Ke}-header`},se.createElement(O,Object.assign({},Qe)))}let ue;if(mr||wr){let Qe;if(mr){const Yr=Object.assign(Object.assign({prefixCls:`${Ke}-title`},_r(Mt,wr)),Er(Fe));Qe=se.createElement(Cr,Object.assign({},Yr))}let ot;if(wr){const Yr=Object.assign(Object.assign({prefixCls:`${Ke}-paragraph`},Se(Mt,mr)),Er(ze));ot=se.createElement(Jt,Object.assign({},Yr))}ue=se.createElement("div",{className:`${Ke}-content`},Qe,ot)}const rr=De()(Ke,{[`${Ke}-with-avatar`]:Mt,[`${Ke}-active`]:pt,[`${Ke}-rtl`]:ct==="rtl",[`${Ke}-round`]:$e},Ge==null?void 0:Ge.className,Z,N,Vt);return Bt(se.createElement("div",{className:rr,style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),te)},re,ue))}return typeof Te!="undefined"?Te:null};Nt.Button=Re,Nt.Avatar=be,Nt.Input=oe,Nt.Image=T,Nt.Node=nt;var z=Nt,v=z},81327:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return $}});var we=g(59301),De=g(92310),se=g.n(De),Me=g(11592),ie=g(36355),Y=g(33234);const O=we.createContext({latestIndex:0}),I=O.Provider;var o=F=>{let{className:H,index:V,children:ee,split:B,style:G}=F;const{latestIndex:le}=we.useContext(O);return ee==null?null:we.createElement(we.Fragment,null,we.createElement("div",{className:H,style:G},ee),V<le&&B&&we.createElement("span",{className:`${H}-split`},B))},L=g(2856);function p(F){return["small","middle","large"].includes(F)}function a(F){return F?typeof F=="number"&&!Number.isNaN(F):!1}var A=function(F,H){var V={};for(var ee in F)Object.prototype.hasOwnProperty.call(F,ee)&&H.indexOf(ee)<0&&(V[ee]=F[ee]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,ee=Object.getOwnPropertySymbols(F);B<ee.length;B++)H.indexOf(ee[B])<0&&Object.prototype.propertyIsEnumerable.call(F,ee[B])&&(V[ee[B]]=F[ee[B]]);return V};const S=we.forwardRef((F,H)=>{var V,ee;const{getPrefixCls:B,space:G,direction:le}=we.useContext(ie.E_),{size:J=(G==null?void 0:G.size)||"small",align:be,className:Ce,rootClassName:Re,children:ae,direction:me="horizontal",prefixCls:T,split:Ee,style:oe,wrap:he=!1,classNames:ve,styles:_}=F,P=A(F,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[X,pe]=Array.isArray(J)?J:[J,J],Je=p(pe),at=p(X),nt=a(pe),Lt=a(X),ur=(0,Me.Z)(ae,{keepEmpty:!0}),Jt=be===void 0&&me==="horizontal"?"center":be,We=B("space",T),[Cr,Er]=(0,L.Z)(We),Kr=se()(We,G==null?void 0:G.className,Er,`${We}-${me}`,{[`${We}-rtl`]:le==="rtl",[`${We}-align-${Jt}`]:Jt,[`${We}-gap-row-${pe}`]:Je,[`${We}-gap-col-${X}`]:at},Ce,Re),_r=se()(`${We}-item`,(V=ve==null?void 0:ve.item)!==null&&V!==void 0?V:(ee=G==null?void 0:G.classNames)===null||ee===void 0?void 0:ee.item);let Se=0;const Nt=ur.map((h,D)=>{var fe,Z;h!=null&&(Se=D);const N=h&&h.key||`${_r}-${D}`;return we.createElement(o,{className:_r,key:N,index:D,split:Ee,style:(fe=_==null?void 0:_.item)!==null&&fe!==void 0?fe:(Z=G==null?void 0:G.styles)===null||Z===void 0?void 0:Z.item},h)}),z=we.useMemo(()=>({latestIndex:Se}),[Se]);if(ur.length===0)return null;const v={};return he&&(v.flexWrap="wrap"),!at&&Lt&&(v.columnGap=X),!Je&&nt&&(v.rowGap=pe),Cr(we.createElement("div",Object.assign({ref:H,className:Kr,style:Object.assign(Object.assign(Object.assign({},v),G==null?void 0:G.style),oe)},P),we.createElement(I,{value:z},Nt)))});S.Compact=Y.ZP;var $=S},8378:function(bn,Zt){"use strict";const g=we=>({[we.componentCls]:{[`${we.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${we.motionDurationMid} ${we.motionEaseInOut},
|
|
|
opacity ${we.motionDurationMid} ${we.motionEaseInOut} !important`}},[`${we.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${we.motionDurationMid} ${we.motionEaseInOut},
|
|
|
opacity ${we.motionDurationMid} ${we.motionEaseInOut} !important`}}});Zt.Z=g},92899:function(bn,Zt,g){"use strict";g.d(Zt,{Fm:function(){return p}});var we=g(93083),De=g(95406);const se=new we.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Me=new we.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ie=new we.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y=new we.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),O=new we.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I=new we.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n=new we.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o=new we.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),L={"move-up":{inKeyframes:n,outKeyframes:o},"move-down":{inKeyframes:se,outKeyframes:Me},"move-left":{inKeyframes:ie,outKeyframes:Y},"move-right":{inKeyframes:O,outKeyframes:I}},p=(a,A)=>{const{antCls:m}=a,S=`${m}-${A}`,{inKeyframes:$,outKeyframes:F}=L[A];return[(0,De.R)(S,$,F,a.motionDurationMid),{[`
|
|
|
${S}-enter,
|
|
|
${S}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:a.motionEaseOutCirc},[`${S}-leave`]:{animationTimingFunction:a.motionEaseInOutCirc}}]}},13826:function(bn,Zt,g){"use strict";g.d(Zt,{Qt:function(){return ie},Uw:function(){return Me},fJ:function(){return se},ly:function(){return Y},oN:function(){return p}});var we=g(93083),De=g(95406);const se=new we.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Me=new we.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ie=new we.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Y=new we.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),O=new we.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),I=new we.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),n=new we.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),o=new we.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),L={"slide-up":{inKeyframes:se,outKeyframes:Me},"slide-down":{inKeyframes:ie,outKeyframes:Y},"slide-left":{inKeyframes:O,outKeyframes:I},"slide-right":{inKeyframes:n,outKeyframes:o}},p=(a,A)=>{const{antCls:m}=a,S=`${m}-${A}`,{inKeyframes:$,outKeyframes:F}=L[A];return[(0,De.R)(S,$,F,a.motionDurationMid),{[`
|
|
|
${S}-enter,
|
|
|
${S}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:a.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${S}-leave`]:{animationTimingFunction:a.motionEaseInQuint}}]}},15969:function(bn,Zt,g){"use strict";g.d(Zt,{N:function(){return we}});const we=De=>({color:De.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${De.motionDurationSlow}`,"&:focus, &:hover":{color:De.colorLinkHover},"&:active":{color:De.colorLinkActive}})},19447:function(bn,Zt,g){"use strict";g.d(Zt,{ZP:function(){return ie},fS:function(){return se},qN:function(){return De}});var we=g(47585);const De=8;function se(Y){const O=De,{contentRadius:I,limitVerticalRadius:n}=Y,o=I>12?I+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:n?O:o}}function Me(Y,O){return Y?O:{}}function ie(Y,O){const{componentCls:I,sizePopupArrow:n,borderRadiusXS:o,borderRadiusOuter:L,boxShadowPopoverArrow:p}=Y,{colorBg:a,contentRadius:A=Y.borderRadiusLG,limitVerticalRadius:m,arrowDistance:S=0,arrowPlacement:$={left:!0,right:!0,top:!0,bottom:!0}}=O,{dropdownArrowOffsetVertical:F,dropdownArrowOffset:H}=se({contentRadius:A,limitVerticalRadius:m});return{[I]:Object.assign(Object.assign(Object.assign(Object.assign({[`${I}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,we.r)(n,o,L,a,p)),{"&:before":{background:a}})]},Me(!!$.top,{[[`&-placement-top ${I}-arrow`,`&-placement-topLeft ${I}-arrow`,`&-placement-topRight ${I}-arrow`].join(",")]:{bottom:S,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:H}},[`&-placement-topRight ${I}-arrow`]:{right:{_skip_check_:!0,value:H}}})),Me(!!$.bottom,{[[`&-placement-bottom ${I}-arrow`,`&-placement-bottomLeft ${I}-arrow`,`&-placement-bottomRight ${I}-arrow`].join(",")]:{top:S,transform:"translateY(-100%)"},[`&-placement-bottom ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:H}},[`&-placement-bottomRight ${I}-arrow`]:{right:{_skip_check_:!0,value:H}}})),Me(!!$.left,{[[`&-placement-left ${I}-arrow`,`&-placement-leftTop ${I}-arrow`,`&-placement-leftBottom ${I}-arrow`].join(",")]:{right:{_skip_check_:!0,value:S},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${I}-arrow`]:{top:F},[`&-placement-leftBottom ${I}-arrow`]:{bottom:F}})),Me(!!$.right,{[[`&-placement-right ${I}-arrow`,`&-placement-rightTop ${I}-arrow`,`&-placement-rightBottom ${I}-arrow`].join(",")]:{left:{_skip_check_:!0,value:S},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${I}-arrow`]:{top:F},[`&-placement-rightBottom ${I}-arrow`]:{bottom:F}}))}}},47585:function(bn,Zt,g){"use strict";g.d(Zt,{r:function(){return we}});const we=(De,se,Me,ie,Y)=>{const O=De/2,I=0,n=O,o=Me*1/Math.sqrt(2),L=O-Me*(1-1/Math.sqrt(2)),p=O-se*(1/Math.sqrt(2)),a=Me*(Math.sqrt(2)-1)+se*(1/Math.sqrt(2)),A=2*O-p,m=a,S=2*O-o,$=L,F=2*O-I,H=n,V=O*Math.sqrt(2)+Me*(Math.sqrt(2)-2),ee=Me*(Math.sqrt(2)-1);return{pointerEvents:"none",width:De,height:De,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:De,height:De/2,background:ie,clipPath:{_multi_value_:!0,value:[`polygon(${ee}px 100%, 50% ${ee}px, ${2*O-ee}px 100%, ${ee}px 100%)`,`path('M ${I} ${n} A ${Me} ${Me} 0 0 0 ${o} ${L} L ${p} ${a} A ${se} ${se} 0 0 1 ${A} ${m} L ${S} ${$} A ${Me} ${Me} 0 0 0 ${F} ${H} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:V,height:V,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${se}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:Y,zIndex:0,background:"transparent"}}}},1710:function(bn,Zt,g){"use strict";g.d(Zt,{default:function(){return nr}});var we={},De="rc-table-internal-hook",se=g(72071),Me=g(6089),ie=g(34280),Y=g(13697),O=g(59301),I=g(4676);function n(ye){var xe=O.createContext(void 0),et=function(gt){var ft=gt.value,Ut=gt.children,$t=O.useRef(ft);$t.current=ft;var sr=O.useState(function(){return{getValue:function(){return $t.current},listeners:new Set}}),Ze=(0,se.Z)(sr,1),_e=Ze[0];return(0,ie.Z)(function(){(0,I.unstable_batchedUpdates)(function(){_e.listeners.forEach(function(wt){wt(ft)})})},[ft]),O.createElement(xe.Provider,{value:_e},Ut)};return{Context:xe,Provider:et,defaultValue:ye}}function o(ye,xe){var et=(0,Me.Z)(typeof xe=="function"?xe:function(wt){if(xe===void 0)return wt;if(!Array.isArray(xe))return wt[xe];var Ht={};return xe.forEach(function(Wt){Ht[Wt]=wt[Wt]}),Ht}),st=O.useContext(ye==null?void 0:ye.Context),gt=st||{},ft=gt.listeners,Ut=gt.getValue,$t=O.useRef();$t.current=et(st?Ut():ye==null?void 0:ye.defaultValue);var sr=O.useState({}),Ze=(0,se.Z)(sr,2),_e=Ze[1];return(0,ie.Z)(function(){if(!st)return;function wt(Ht){var Wt=et(Ht);(0,Y.Z)($t.current,Wt,!0)||_e({})}return ft.add(wt),function(){ft.delete(wt)}},[st]),$t.current}var L=g(96663),p=g(8654);function a(){var ye=O.createContext(null);function xe(){return O.useContext(ye)}function et(gt,ft){var Ut=(0,p.Yr)(gt),$t=function(Ze,_e){var wt=Ut?{ref:_e}:{},Ht=O.useRef(0),Wt=O.useRef(Ze),lr=xe();return lr!==null?O.createElement(gt,(0,L.Z)({},Ze,wt)):((!ft||ft(Wt.current,Ze))&&(Ht.current+=1),Wt.current=Ze,O.createElement(ye.Provider,{value:Ht.current},O.createElement(gt,(0,L.Z)({},Ze,wt))))};return Ut?O.forwardRef($t):$t}function st(gt,ft){var Ut=(0,p.Yr)(gt),$t=function(Ze,_e){var wt=Ut?{ref:_e}:{};return xe(),O.createElement(gt,(0,L.Z)({},Ze,wt))};return Ut?O.memo(O.forwardRef($t),ft):O.memo($t,ft)}return{makeImmutable:et,responseImmutable:st,useImmutableMark:xe}}var A=a(),m=A.makeImmutable,S=A.responseImmutable,$=A.useImmutableMark,F=a(),H=F.makeImmutable,V=F.responseImmutable,ee=F.useImmutableMark,B=n(),G=B;function le(ye,xe){var et=O.useRef(0);et.current+=1;var st=O.useRef(ye),gt=[];Object.keys(ye||{}).map(function(Ut){var $t;(ye==null?void 0:ye[Ut])!==(($t=st.current)===null||$t===void 0?void 0:$t[Ut])&>.push(Ut)}),st.current=ye;var ft=O.useRef([]);return gt.length&&(ft.current=gt),O.useDebugValue(et.current),O.useDebugValue(ft.current.join(", ")),xe&&console.log("".concat(xe,":"),et.current,ft.current),et.current}var J=null,be=O.memo(function(){var ye=le();return O.createElement("h1",null,"Render Times: ",ye)});be.displayName="RenderBlock";var Ce=g(20135),Re=g(44127),ae=g(90493),me=g(92310),T=g.n(me),Ee=g(80547),oe=g(97938),he=g(48736),ve=O.createContext({renderWithProps:!1}),_=ve,P="RC_TABLE_KEY";function X(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function pe(ye){var xe=[],et={};return ye.forEach(function(st){for(var gt=st||{},ft=gt.key,Ut=gt.dataIndex,$t=ft||X(Ut).join("-")||P;et[$t];)$t="".concat($t,"_next");et[$t]=!0,xe.push($t)}),xe}function Je(ye){return ye!=null}function at(ye){return ye&&(0,Ce.Z)(ye)==="object"&&!Array.isArray(ye)&&!O.isValidElement(ye)}function nt(ye,xe,et,st,gt,ft){var Ut=O.useContext(_),$t=ee(),sr=(0,Ee.Z)(function(){if(Je(st))return[st];var Ze=xe==null||xe===""?[]:Array.isArray(xe)?xe:[xe],_e=(0,oe.Z)(ye,Ze),wt=_e,Ht=void 0;if(gt){var Wt=gt(_e,ye,et);at(Wt)?(wt=Wt.children,Ht=Wt.props,Ut.renderWithProps=!0):wt=Wt}return[wt,Ht]},[$t,ye,st,xe,gt,et],function(Ze,_e){if(ft){var wt=(0,se.Z)(Ze,2),Ht=wt[1],Wt=(0,se.Z)(_e,2),lr=Wt[1];return ft(lr,Ht)}return Ut.renderWithProps?!0:!(0,Y.Z)(Ze,_e,!0)});return sr}function Lt(ye,xe,et,st){var gt=ye+xe-1;return ye<=st&>>=et}function ur(ye,xe){return o(G,function(et){var st=Lt(ye,xe||1,et.hoverStartRow,et.hoverEndRow);return[st,et.onHover]})}var Jt=function(xe){var et=xe.ellipsis,st=xe.rowType,gt=xe.children,ft,Ut=et===!0?{showTitle:!0}:et;return Ut&&(Ut.showTitle||st==="header")&&(typeof gt=="string"||typeof gt=="number"?ft=gt.toString():O.isValidElement(gt)&&typeof gt.props.children=="string"&&(ft=gt.props.children)),ft};function We(ye){var xe,et,st,gt,ft,Ut,$t,sr,Ze=ye.component,_e=ye.children,wt=ye.ellipsis,Ht=ye.scope,Wt=ye.prefixCls,lr=ye.className,St=ye.align,yr=ye.record,Gr=ye.render,$r=ye.dataIndex,An=ye.renderIndex,Dn=ye.shouldCellUpdate,ni=ye.index,kr=ye.rowType,ir=ye.colSpan,Si=ye.rowSpan,Fn=ye.fixLeft,ln=ye.fixRight,dn=ye.firstFixLeft,rn=ye.lastFixLeft,Cn=ye.firstFixRight,si=ye.lastFixRight,Fi=ye.appendNode,He=ye.additionalProps,c=He===void 0?{}:He,w=ye.isSticky,C="".concat(Wt,"-cell"),K=o(G,["supportSticky","allColumnsFixedLeft"]),Be=K.supportSticky,je=K.allColumnsFixedLeft,xt=nt(yr,$r,An,_e,Gr,Dn),bt=(0,se.Z)(xt,2),Xt=bt[0],Ar=bt[1],xr={},nn=typeof Fn=="number"&&Be,En=typeof ln=="number"&&Be;nn&&(xr.position="sticky",xr.left=Fn),En&&(xr.position="sticky",xr.right=ln);var Xr=(xe=(et=(st=Ar==null?void 0:Ar.colSpan)!==null&&st!==void 0?st:c.colSpan)!==null&&et!==void 0?et:ir)!==null&&xe!==void 0?xe:1,fn=(gt=(ft=(Ut=Ar==null?void 0:Ar.rowSpan)!==null&&Ut!==void 0?Ut:c.rowSpan)!==null&&ft!==void 0?ft:Si)!==null&>!==void 0?gt:1,Mn=ur(ni,fn),Jn=(0,se.Z)(Mn,2),wi=Jn[0],yn=Jn[1],fi=function(li){var $a;yr&&yn(ni,ni+fn-1),c==null||($a=c.onMouseEnter)===null||$a===void 0||$a.call(c,li)},qi=function(li){var $a;yr&&yn(-1,-1),c==null||($a=c.onMouseLeave)===null||$a===void 0||$a.call(c,li)};if(Xr===0||fn===0)return null;var Ki=($t=c.title)!==null&&$t!==void 0?$t:Jt({rowType:kr,ellipsis:wt,children:Xt}),Ia=T()(C,lr,(sr={},(0,ae.Z)(sr,"".concat(C,"-fix-left"),nn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-left-first"),dn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-left-last"),rn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-left-all"),rn&&je&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right"),En&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right-first"),Cn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right-last"),si&&Be),(0,ae.Z)(sr,"".concat(C,"-ellipsis"),wt),(0,ae.Z)(sr,"".concat(C,"-with-append"),Fi),(0,ae.Z)(sr,"".concat(C,"-fix-sticky"),(nn||En)&&w&&Be),(0,ae.Z)(sr,"".concat(C,"-row-hover"),!Ar&&wi),sr),c.className,Ar==null?void 0:Ar.className),Ta={};St&&(Ta.textAlign=St);var Xi=(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},xr),c.style),Ta),Ar==null?void 0:Ar.style),Fa=Xt;return(0,Ce.Z)(Fa)==="object"&&!Array.isArray(Fa)&&!O.isValidElement(Fa)&&(Fa=null),wt&&(rn||Cn)&&(Fa=O.createElement("span",{className:"".concat(C,"-content")},Fa)),O.createElement(Ze,(0,L.Z)({},Ar,c,{className:Ia,style:Xi,title:Ki,scope:Ht,onMouseEnter:fi,onMouseLeave:qi,colSpan:Xr!==1?Xr:null,rowSpan:fn!==1?fn:null}),Fi,Fa)}var Cr=O.memo(We);function Er(ye,xe,et,st,gt,ft){var Ut=et[ye]||{},$t=et[xe]||{},sr,Ze;Ut.fixed==="left"?sr=st.left[gt==="rtl"?xe:ye]:$t.fixed==="right"&&(Ze=st.right[gt==="rtl"?ye:xe]);var _e=!1,wt=!1,Ht=!1,Wt=!1,lr=et[xe+1],St=et[ye-1],yr=!(ft!=null&&ft.children);if(gt==="rtl"){if(sr!==void 0){var Gr=St&&St.fixed==="left";Wt=!Gr&&yr}else if(Ze!==void 0){var $r=lr&&lr.fixed==="right";Ht=!$r&&yr}}else if(sr!==void 0){var An=lr&&lr.fixed==="left";_e=!An&&yr}else if(Ze!==void 0){var Dn=St&&St.fixed==="right";wt=!Dn&&yr}return{fixLeft:sr,fixRight:Ze,lastFixLeft:_e,firstFixRight:wt,lastFixRight:Ht,firstFixLeft:Wt,isSticky:st.isSticky}}var Kr=O.createContext({}),_r=Kr;function Se(ye){var xe=ye.className,et=ye.index,st=ye.children,gt=ye.colSpan,ft=gt===void 0?1:gt,Ut=ye.rowSpan,$t=ye.align,sr=o(G,["prefixCls","direction"]),Ze=sr.prefixCls,_e=sr.direction,wt=O.useContext(_r),Ht=wt.scrollColumnIndex,Wt=wt.stickyOffsets,lr=wt.flattenColumns,St=wt.columns,yr=et+ft-1,Gr=yr+1===Ht?ft+1:ft,$r=Er(et,et+Gr-1,lr,Wt,_e,St==null?void 0:St[et]);return O.createElement(Cr,(0,L.Z)({className:xe,index:et,component:"td",prefixCls:Ze,record:null,dataIndex:null,align:$t,colSpan:Gr,rowSpan:Ut,render:function(){return st}},$r))}var Nt=g(6620),z=["children"];function v(ye){var xe=ye.children,et=(0,Nt.Z)(ye,z);return O.createElement("tr",et,xe)}function h(ye){var xe=ye.children;return xe}h.Row=v,h.Cell=Se;var D=h;function fe(ye){var xe=ye.children,et=ye.stickyOffsets,st=ye.flattenColumns,gt=ye.columns,ft=o(G,"prefixCls"),Ut=st.length-1,$t=st[Ut],sr=O.useMemo(function(){return{stickyOffsets:et,flattenColumns:st,scrollColumnIndex:$t!=null&&$t.scrollbar?Ut:null,columns:gt}},[$t,st,Ut,et,gt]);return O.createElement(_r.Provider,{value:sr},O.createElement("tfoot",{className:"".concat(ft,"-summary")},xe))}var Z=V(fe),N=D,te=g(70425),Te=g(29301),Ie=g(29194),Fe=g(24514),ze=g(75152),pt=g(26112);function $e(ye,xe,et,st,gt,ft,Ut){ye.push({record:xe,indent:et,index:Ut});var $t=ft(xe),sr=gt==null?void 0:gt.has($t);if(xe&&Array.isArray(xe[st])&&sr)for(var Ze=0;Ze<xe[st].length;Ze+=1)$e(ye,xe[st][Ze],et+1,st,gt,ft,Ze)}function tt(ye,xe,et,st){var gt=O.useMemo(function(){if(et!=null&&et.size){for(var ft=[],Ut=0;Ut<(ye==null?void 0:ye.length);Ut+=1){var $t=ye[Ut];$e(ft,$t,0,xe,et,st,Ut)}return ft}return ye==null?void 0:ye.map(function(sr,Ze){return{record:sr,indent:0,index:Ze}})},[ye,xe,et,st]);return gt}function ct(ye){var xe=ye.prefixCls,et=ye.children,st=ye.component,gt=ye.cellComponent,ft=ye.className,Ut=ye.expanded,$t=ye.colSpan,sr=ye.isEmpty,Ze=o(G,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),_e=Ze.scrollbarSize,wt=Ze.fixHeader,Ht=Ze.fixColumn,Wt=Ze.componentWidth,lr=Ze.horizonScroll,St=et;return(sr?lr&&Wt:Ht)&&(St=O.createElement("div",{style:{width:Wt-(wt?_e:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(xe,"-expanded-row-fixed")},St)),O.createElement(st,{className:ft,style:{display:Ut?null:"none"}},O.createElement(Cr,{component:gt,prefixCls:xe,colSpan:$t},St))}var Ge=ct;function Ke(ye,xe,et,st){var gt=o(G,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ft=gt.flattenColumns,Ut=gt.expandableType,$t=gt.expandedKeys,sr=gt.childrenColumnName,Ze=gt.onTriggerExpand,_e=gt.rowExpandable,wt=gt.onRow,Ht=gt.expandRowByClick,Wt=gt.rowClassName,lr=Ut==="nest",St=Ut==="row"&&(!_e||_e(ye)),yr=St||lr,Gr=$t&&$t.has(xe),$r=sr&&ye&&ye[sr],An=(0,te.useEvent)(Ze),Dn=wt==null?void 0:wt(ye,et),ni=Dn==null?void 0:Dn.onClick,kr=function(ln){Ht&&yr&&Ze(ye,ln);for(var dn=arguments.length,rn=new Array(dn>1?dn-1:0),Cn=1;Cn<dn;Cn++)rn[Cn-1]=arguments[Cn];ni==null||ni.apply(void 0,[ln].concat(rn))},ir;typeof Wt=="string"?ir=Wt:typeof Wt=="function"&&(ir=Wt(ye,et,st));var Si=pe(ft);return(0,Re.Z)((0,Re.Z)({},gt),{},{columnsKey:Si,nestExpandable:lr,expanded:Gr,hasNestChildren:$r,record:ye,onTriggerExpand:An,rowSupportExpand:St,expandable:yr,rowProps:(0,Re.Z)((0,Re.Z)({},Dn),{},{className:T()(ir,Dn==null?void 0:Dn.className),onClick:kr})})}function Bt(ye,xe,et,st,gt){var ft=ye.record,Ut=ye.prefixCls,$t=ye.columnsKey,sr=ye.fixedInfoList,Ze=ye.expandIconColumnIndex,_e=ye.nestExpandable,wt=ye.indentSize,Ht=ye.expandIcon,Wt=ye.expanded,lr=ye.hasNestChildren,St=ye.onTriggerExpand,yr=$t[et],Gr=sr[et],$r;et===(Ze||0)&&_e&&($r=O.createElement(O.Fragment,null,O.createElement("span",{style:{paddingLeft:"".concat(wt*st,"px")},className:"".concat(Ut,"-row-indent indent-level-").concat(st)}),Ht({prefixCls:Ut,expanded:Wt,expandable:lr,record:ft,onExpand:St})));var An;return xe.onCell&&(An=xe.onCell(ft,gt)),{key:yr,fixedInfo:Gr,appendCellNode:$r,additionalCellProps:An||{}}}function Vt(ye){var xe=ye.className,et=ye.style,st=ye.record,gt=ye.index,ft=ye.renderIndex,Ut=ye.rowKey,$t=ye.indent,sr=$t===void 0?0:$t,Ze=ye.rowComponent,_e=ye.cellComponent,wt=ye.scopeCellComponent,Ht=Ke(st,Ut,gt,sr),Wt=Ht.prefixCls,lr=Ht.flattenColumns,St=Ht.expandedRowClassName,yr=Ht.expandedRowRender,Gr=Ht.rowProps,$r=Ht.expanded,An=Ht.rowSupportExpand,Dn=O.useState(!1),ni=(0,se.Z)(Dn,2),kr=ni[0],ir=ni[1];O.useEffect(function(){$r&&ir(!0)},[$r]);var Si=O.createElement(Ze,(0,L.Z)({},Gr,{"data-row-key":Ut,className:T()(xe,"".concat(Wt,"-row"),"".concat(Wt,"-row-level-").concat(sr),Gr==null?void 0:Gr.className),style:(0,Re.Z)((0,Re.Z)({},et),Gr==null?void 0:Gr.style)}),lr.map(function(rn,Cn){var si=rn.render,Fi=rn.dataIndex,He=rn.className,c=Bt(Ht,rn,Cn,sr,gt),w=c.key,C=c.fixedInfo,K=c.appendCellNode,Be=c.additionalCellProps;return O.createElement(Cr,(0,L.Z)({className:He,ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:rn.rowScope?wt:_e,prefixCls:Wt,key:w,record:st,index:gt,renderIndex:ft,dataIndex:Fi,render:si,shouldCellUpdate:rn.shouldCellUpdate},C,{appendNode:K,additionalProps:Be}))})),Fn;if(An&&(kr||$r)){var ln=yr(st,gt,sr+1,$r),dn=St&&St(st,gt,sr);Fn=O.createElement(Ge,{expanded:$r,className:T()("".concat(Wt,"-expanded-row"),"".concat(Wt,"-expanded-row-level-").concat(sr+1),dn),prefixCls:Wt,component:Ze,cellComponent:_e,colSpan:lr.length,isEmpty:!1},ln)}return O.createElement(O.Fragment,null,Si,Fn)}Vt.displayName="BodyRow";var Mt=V(Vt);function mr(ye){var xe=ye.columnKey,et=ye.onColumnResize,st=O.useRef();return O.useEffect(function(){st.current&&et(xe,st.current.offsetWidth)},[]),O.createElement(Te.Z,{data:xe},O.createElement("td",{ref:st,style:{padding:0,border:0,height:0}},O.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function wr(ye){var xe=ye.prefixCls,et=ye.columnsKey,st=ye.onColumnResize;return O.createElement("tr",{"aria-hidden":"true",className:"".concat(xe,"-measure-row"),style:{height:0,fontSize:0}},O.createElement(Te.Z.Collection,{onBatchResize:function(ft){ft.forEach(function(Ut){var $t=Ut.data,sr=Ut.size;st($t,sr.offsetWidth)})}},et.map(function(gt){return O.createElement(mr,{key:gt,columnKey:gt,onColumnResize:st})})))}function re(ye){var xe=ye.data,et=ye.measureColumnWidth,st=o(G,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),gt=st.prefixCls,ft=st.getComponent,Ut=st.onColumnResize,$t=st.flattenColumns,sr=st.getRowKey,Ze=st.expandedKeys,_e=st.childrenColumnName,wt=st.emptyNode,Ht=tt(xe,_e,Ze,sr),Wt=O.useRef({renderWithProps:!1}),lr=ft(["body","wrapper"],"tbody"),St=ft(["body","row"],"tr"),yr=ft(["body","cell"],"td"),Gr=ft(["body","cell"],"th"),$r;xe.length?$r=Ht.map(function(Dn,ni){var kr=Dn.record,ir=Dn.indent,Si=Dn.index,Fn=sr(kr,ni);return O.createElement(Mt,{key:Fn,rowKey:Fn,record:kr,index:ni,renderIndex:Si,rowComponent:St,cellComponent:yr,scopeCellComponent:Gr,getRowKey:sr,indent:ir})}):$r=O.createElement(Ge,{expanded:!0,className:"".concat(gt,"-placeholder"),prefixCls:gt,component:St,cellComponent:yr,colSpan:$t.length,isEmpty:!0},wt);var An=pe($t);return O.createElement(_.Provider,{value:Wt.current},O.createElement(lr,{className:"".concat(gt,"-tbody")},et&&O.createElement(wr,{prefixCls:gt,columnsKey:An,onColumnResize:Ut}),$r))}re.displayName="Body";var ue=V(re),rr=["expandable"],Qe="RC_TABLE_INTERNAL_COL_DEFINE";function ot(ye){var xe=ye.expandable,et=(0,Nt.Z)(ye,rr),st;return"expandable"in ye?st=(0,Re.Z)((0,Re.Z)({},et),xe):st=et,st.showExpandColumn===!1&&(st.expandIconColumnIndex=-1),st}var Yr=["columnType"];function It(ye){for(var xe=ye.colWidths,et=ye.columns,st=ye.columCount,gt=[],ft=st||et.length,Ut=!1,$t=ft-1;$t>=0;$t-=1){var sr=xe[$t],Ze=et&&et[$t],_e=Ze&&Ze[Qe];if(sr||_e||Ut){var wt=_e||{},Ht=wt.columnType,Wt=(0,Nt.Z)(wt,Yr);gt.unshift(O.createElement("col",(0,L.Z)({key:$t,style:{width:sr}},Wt))),Ut=!0}}return O.createElement("colgroup",null,gt)}var zt=It,qt=g(19127),qe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function At(ye,xe){return(0,O.useMemo)(function(){for(var et=[],st=0;st<xe;st+=1){var gt=ye[st];if(gt!==void 0)et[st]=gt;else return null}return et},[ye.join("_"),xe])}var dt=O.forwardRef(function(ye,xe){var et=ye.className,st=ye.noData,gt=ye.columns,ft=ye.flattenColumns,Ut=ye.colWidths,$t=ye.columCount,sr=ye.stickyOffsets,Ze=ye.direction,_e=ye.fixHeader,wt=ye.stickyTopOffset,Ht=ye.stickyBottomOffset,Wt=ye.stickyClassName,lr=ye.onScroll,St=ye.maxContentScroll,yr=ye.children,Gr=(0,Nt.Z)(ye,qe),$r=o(G,["prefixCls","scrollbarSize","isSticky"]),An=$r.prefixCls,Dn=$r.scrollbarSize,ni=$r.isSticky,kr=ni&&!_e?0:Dn,ir=O.useRef(null),Si=O.useCallback(function(He){(0,p.mH)(xe,He),(0,p.mH)(ir,He)},[]);O.useEffect(function(){var He;function c(w){var C=w,K=C.currentTarget,Be=C.deltaX;Be&&(lr({currentTarget:K,scrollLeft:K.scrollLeft+Be}),w.preventDefault())}return(He=ir.current)===null||He===void 0||He.addEventListener("wheel",c),function(){var w;(w=ir.current)===null||w===void 0||w.removeEventListener("wheel",c)}},[]);var Fn=O.useMemo(function(){return ft.every(function(He){return He.width})},[ft]),ln=ft[ft.length-1],dn={fixed:ln?ln.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(An,"-cell-scrollbar")}}},rn=(0,O.useMemo)(function(){return kr?[].concat((0,qt.Z)(gt),[dn]):gt},[kr,gt]),Cn=(0,O.useMemo)(function(){return kr?[].concat((0,qt.Z)(ft),[dn]):ft},[kr,ft]),si=(0,O.useMemo)(function(){var He=sr.right,c=sr.left;return(0,Re.Z)((0,Re.Z)({},sr),{},{left:Ze==="rtl"?[].concat((0,qt.Z)(c.map(function(w){return w+kr})),[0]):c,right:Ze==="rtl"?He:[].concat((0,qt.Z)(He.map(function(w){return w+kr})),[0]),isSticky:ni})},[kr,sr,ni]),Fi=At(Ut,$t);return O.createElement("div",{style:(0,Re.Z)({overflow:"hidden"},ni?{top:wt,bottom:Ht}:{}),ref:Si,className:T()(et,(0,ae.Z)({},Wt,!!Wt))},O.createElement("table",{style:{tableLayout:"fixed",visibility:st||Fi?null:"hidden"}},(!st||!St||Fn)&&O.createElement(zt,{colWidths:Fi?[].concat((0,qt.Z)(Fi),[kr]):[],columCount:$t+1,columns:Cn}),yr((0,Re.Z)((0,Re.Z)({},Gr),{},{stickyOffsets:si,columns:rn,flattenColumns:Cn}))))});dt.displayName="FixedHolder";var Gt=O.memo(dt);function Pe(ye){var xe=ye.cells,et=ye.stickyOffsets,st=ye.flattenColumns,gt=ye.rowComponent,ft=ye.cellComponent,Ut=ye.tdCellComponent,$t=ye.onHeaderRow,sr=ye.index,Ze=o(G,["prefixCls","direction"]),_e=Ze.prefixCls,wt=Ze.direction,Ht;$t&&(Ht=$t(xe.map(function(lr){return lr.column}),sr));var Wt=pe(xe.map(function(lr){return lr.column}));return O.createElement(gt,Ht,xe.map(function(lr,St){var yr=lr.column,Gr=Er(lr.colStart,lr.colEnd,st,et,wt,yr),$r;return yr&&yr.onHeaderCell&&($r=lr.column.onHeaderCell(yr)),O.createElement(Cr,(0,L.Z)({},lr,{scope:yr.title?lr.colSpan>1?"colgroup":"col":null,ellipsis:yr.ellipsis,align:yr.align,component:yr.title?ft:Ut,prefixCls:_e,key:Wt[St]},Gr,{additionalProps:$r,rowType:"header"}))}))}Pe.displayName="HeaderRow";var an=Pe;function kt(ye){var xe=[];function et(Ut,$t){var sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;xe[sr]=xe[sr]||[];var Ze=$t,_e=Ut.filter(Boolean).map(function(wt){var Ht={key:wt.key,className:wt.className||"",children:wt.title,column:wt,colStart:Ze},Wt=1,lr=wt.children;return lr&&lr.length>0&&(Wt=et(lr,Ze,sr+1).reduce(function(St,yr){return St+yr},0),Ht.hasSubColumns=!0),"colSpan"in wt&&(Wt=wt.colSpan),"rowSpan"in wt&&(Ht.rowSpan=wt.rowSpan),Ht.colSpan=Wt,Ht.colEnd=Ht.colStart+Wt-1,xe[sr].push(Ht),Ze+=Wt,Wt});return _e}et(ye,0);for(var st=xe.length,gt=function($t){xe[$t].forEach(function(sr){!("rowSpan"in sr)&&!sr.hasSubColumns&&(sr.rowSpan=st-$t)})},ft=0;ft<st;ft+=1)gt(ft);return xe}function kn(ye){var xe=ye.stickyOffsets,et=ye.columns,st=ye.flattenColumns,gt=ye.onHeaderRow,ft=o(G,["prefixCls","getComponent"]),Ut=ft.prefixCls,$t=ft.getComponent,sr=O.useMemo(function(){return kt(et)},[et]),Ze=$t(["header","wrapper"],"thead"),_e=$t(["header","row"],"tr"),wt=$t(["header","cell"],"th"),Ht=$t(["header","cell"],"td");return O.createElement(Ze,{className:"".concat(Ut,"-thead")},sr.map(function(Wt,lr){var St=O.createElement(an,{key:lr,flattenColumns:st,cells:Wt,stickyOffsets:xe,rowComponent:_e,cellComponent:wt,tdCellComponent:Ht,onHeaderRow:gt,index:lr});return St}))}var Xn=V(kn),yi=g(11592);function ji(ye){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof xe=="number"?xe:xe.endsWith("%")?ye*parseFloat(xe)/100:null}function On(ye,xe){return O.useMemo(function(){if(xe&&xe>0){var et=0,st=0;ye.forEach(function(Ze){var _e=ji(xe,Ze.width);_e?et+=_e:st+=1});var gt=xe-et,ft=st,Ut=gt/st,$t=0,sr=ye.map(function(Ze){var _e=(0,Re.Z)({},Ze),wt=ji(xe,_e.width);if(wt)_e.width=wt;else{var Ht=Math.floor(Ut);_e.width=ft===1?gt:Ht,gt-=Ht,ft-=1}return $t+=_e.width,_e});return[sr,$t]}return[ye,xe]},[ye,xe])}var $n=["children"],Yt=["fixed"];function jr(ye){return(0,yi.Z)(ye).filter(function(xe){return O.isValidElement(xe)}).map(function(xe){var et=xe.key,st=xe.props,gt=st.children,ft=(0,Nt.Z)(st,$n),Ut=(0,Re.Z)({key:et},ft);return gt&&(Ut.children=jr(gt)),Ut})}function Jr(ye){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ye.filter(function(et){return et&&(0,Ce.Z)(et)==="object"}).reduce(function(et,st,gt){var ft=st.fixed,Ut=ft===!0?"left":ft,$t="".concat(xe,"-").concat(gt),sr=st.children;return sr&&sr.length>0?[].concat((0,qt.Z)(et),(0,qt.Z)(Jr(sr,$t).map(function(Ze){return(0,Re.Z)({fixed:Ut},Ze)}))):[].concat((0,qt.Z)(et),[(0,Re.Z)((0,Re.Z)({key:$t},st),{},{fixed:Ut})])},[])}function Ot(ye){for(var xe=!0,et=0;et<ye.length;et+=1){var st=ye[et];if(xe&&st.fixed!=="left")xe=!1;else if(!xe&&st.fixed==="left"){warning(!1,"Index ".concat(et-1," of `columns` missing `fixed='left'` prop."));break}}for(var gt=!0,ft=ye.length-1;ft>=0;ft-=1){var Ut=ye[ft];if(gt&&Ut.fixed!=="right")gt=!1;else if(!gt&&Ut.fixed==="right"){warning(!1,"Index ".concat(ft+1," of `columns` missing `fixed='right'` prop."));break}}}function _t(ye){return ye.map(function(xe){var et=xe.fixed,st=(0,Nt.Z)(xe,Yt),gt=et;return et==="left"?gt="right":et==="right"&&(gt="left"),(0,Re.Z)({fixed:gt},st)})}function Br(ye,xe){var et=ye.prefixCls,st=ye.columns,gt=ye.children,ft=ye.expandable,Ut=ye.expandedKeys,$t=ye.columnTitle,sr=ye.getRowKey,Ze=ye.onTriggerExpand,_e=ye.expandIcon,wt=ye.rowExpandable,Ht=ye.expandIconColumnIndex,Wt=ye.direction,lr=ye.expandRowByClick,St=ye.columnWidth,yr=ye.fixed,Gr=ye.scrollWidth,$r=O.useMemo(function(){return st||jr(gt)},[st,gt]),An=O.useMemo(function(){if(ft){var ln,dn=$r.slice();if(!dn.includes(we)){var rn=Ht||0;rn>=0&&dn.splice(rn,0,we)}var Cn=dn.indexOf(we);dn=dn.filter(function(c,w){return c!==we||w===Cn});var si=$r[Cn],Fi;(yr==="left"||yr)&&!Ht?Fi="left":(yr==="right"||yr)&&Ht===$r.length?Fi="right":Fi=si?si.fixed:null;var He=(ln={},(0,ae.Z)(ln,Qe,{className:"".concat(et,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ae.Z)(ln,"title",$t),(0,ae.Z)(ln,"fixed",Fi),(0,ae.Z)(ln,"className","".concat(et,"-row-expand-icon-cell")),(0,ae.Z)(ln,"width",St),(0,ae.Z)(ln,"render",function(w,C,K){var Be=sr(C,K),je=Ut.has(Be),xt=wt?wt(C):!0,bt=_e({prefixCls:et,expanded:je,expandable:xt,record:C,onExpand:Ze});return lr?O.createElement("span",{onClick:function(Ar){return Ar.stopPropagation()}},bt):bt}),ln);return dn.map(function(c){return c===we?He:c})}return $r.filter(function(c){return c!==we})},[ft,$r,sr,Ut,_e,Wt]),Dn=O.useMemo(function(){var ln=An;return xe&&(ln=xe(ln)),ln.length||(ln=[{render:function(){return null}}]),ln},[xe,An,Wt]),ni=O.useMemo(function(){return Wt==="rtl"?_t(Jr(Dn)):Jr(Dn)},[Dn,Wt,Gr]),kr=On(ni,Gr),ir=(0,se.Z)(kr,2),Si=ir[0],Fn=ir[1];return[Dn,Si,Fn]}var Lr=Br;function In(ye){var xe,et=ye.prefixCls,st=ye.record,gt=ye.onExpand,ft=ye.expanded,Ut=ye.expandable,$t="".concat(et,"-row-expand-icon");if(!Ut)return O.createElement("span",{className:T()($t,"".concat(et,"-row-spaced"))});var sr=function(_e){gt(st,_e),_e.stopPropagation()};return O.createElement("span",{className:T()($t,(xe={},(0,ae.Z)(xe,"".concat(et,"-row-expanded"),ft),(0,ae.Z)(xe,"".concat(et,"-row-collapsed"),!ft),xe)),onClick:sr})}function tn(ye,xe,et){var st=[];function gt(ft){(ft||[]).forEach(function(Ut,$t){st.push(xe(Ut,$t)),gt(Ut[et])})}return gt(ye),st}function Bn(ye,xe,et){var st=ot(ye),gt=st.expandIcon,ft=st.expandedRowKeys,Ut=st.defaultExpandedRowKeys,$t=st.defaultExpandAllRows,sr=st.expandedRowRender,Ze=st.onExpand,_e=st.onExpandedRowsChange,wt=st.childrenColumnName,Ht=gt||In,Wt=wt||"children",lr=O.useMemo(function(){return sr?"row":ye.expandable&&ye.internalHooks===De&&ye.expandable.__PARENT_RENDER_ICON__||xe.some(function(ni){return ni&&(0,Ce.Z)(ni)==="object"&&ni[Wt]})?"nest":!1},[!!sr,xe]),St=O.useState(function(){return Ut||($t?tn(xe,et,Wt):[])}),yr=(0,se.Z)(St,2),Gr=yr[0],$r=yr[1],An=O.useMemo(function(){return new Set(ft||Gr||[])},[ft,Gr]),Dn=O.useCallback(function(ni){var kr=et(ni,xe.indexOf(ni)),ir,Si=An.has(kr);Si?(An.delete(kr),ir=(0,qt.Z)(An)):ir=[].concat((0,qt.Z)(An),[kr]),$r(ir),Ze&&Ze(!Si,ni),_e&&_e(ir)},[et,An,xe,Ze,_e]);return[st,lr,An,Ht,Wt,Dn]}function gn(ye,xe,et,st){var gt=ye.map(function(ft,Ut){return Er(Ut,Ut,ye,xe,et,st==null?void 0:st[Ut])});return(0,Ee.Z)(function(){return gt},[gt],function(ft,Ut){return!(0,Y.Z)(ft,Ut)})}function Qn(ye){var xe=(0,O.useRef)(ye),et=(0,O.useState)({}),st=(0,se.Z)(et,2),gt=st[1],ft=(0,O.useRef)(null),Ut=(0,O.useRef)([]);function $t(sr){Ut.current.push(sr);var Ze=Promise.resolve();ft.current=Ze,Ze.then(function(){if(ft.current===Ze){var _e=Ut.current,wt=xe.current;Ut.current=[],_e.forEach(function(Ht){xe.current=Ht(xe.current)}),ft.current=null,wt!==xe.current&>({})}})}return(0,O.useEffect)(function(){return function(){ft.current=null}},[]),[xe.current,$t]}function ei(ye){var xe=(0,O.useRef)(ye||null),et=(0,O.useRef)();function st(){window.clearTimeout(et.current)}function gt(Ut){xe.current=Ut,st(),et.current=window.setTimeout(function(){xe.current=null,et.current=void 0},100)}function ft(){return xe.current}return(0,O.useEffect)(function(){return st},[]),[gt,ft]}function Hr(){var ye=O.useState(-1),xe=(0,se.Z)(ye,2),et=xe[0],st=xe[1],gt=O.useState(-1),ft=(0,se.Z)(gt,2),Ut=ft[0],$t=ft[1],sr=O.useCallback(function(Ze,_e){st(Ze),$t(_e)},[]);return[et,Ut,sr]}var zr=g(47273),Tn=(0,zr.Z)()?window:null;function Sn(ye,xe){var et=(0,Ce.Z)(ye)==="object"?ye:{},st=et.offsetHeader,gt=st===void 0?0:st,ft=et.offsetSummary,Ut=ft===void 0?0:ft,$t=et.offsetScroll,sr=$t===void 0?0:$t,Ze=et.getContainer,_e=Ze===void 0?function(){return Tn}:Ze,wt=_e()||Tn;return O.useMemo(function(){var Ht=!!ye;return{isSticky:Ht,stickyClassName:Ht?"".concat(xe,"-sticky-holder"):"",offsetHeader:gt,offsetSummary:Ut,offsetScroll:sr,container:wt}},[sr,gt,Ut,xe,wt])}function jn(ye,xe,et){var st=(0,O.useMemo)(function(){for(var gt=[],ft=[],Ut=0,$t=0,sr=0;sr<xe;sr+=1)if(et==="rtl"){ft[sr]=$t,$t+=ye[sr]||0;var Ze=xe-sr-1;gt[Ze]=Ut,Ut+=ye[Ze]||0}else{gt[sr]=Ut,Ut+=ye[sr]||0;var _e=xe-sr-1;ft[_e]=$t,$t+=ye[_e]||0}return{left:gt,right:ft}},[ye,xe,et]);return st}var Vn=jn;function Mi(ye){var xe=ye.className,et=ye.children;return O.createElement("div",{className:xe},et)}var Ai=Mi,wn=g(8224),hr=g(55468),br=function(xe,et){var st,gt,ft=xe.scrollBodyRef,Ut=xe.onScroll,$t=xe.offsetScroll,sr=xe.container,Ze=o(G,"prefixCls"),_e=((st=ft.current)===null||st===void 0?void 0:st.scrollWidth)||0,wt=((gt=ft.current)===null||gt===void 0?void 0:gt.clientWidth)||0,Ht=_e&&wt*(wt/_e),Wt=O.useRef(),lr=Qn({scrollLeft:0,isHiddenScrollBar:!1}),St=(0,se.Z)(lr,2),yr=St[0],Gr=St[1],$r=O.useRef({delta:0,x:0}),An=O.useState(!1),Dn=(0,se.Z)(An,2),ni=Dn[0],kr=Dn[1],ir=function(){kr(!1)},Si=function(Cn){Cn.persist(),$r.current.delta=Cn.pageX-yr.scrollLeft,$r.current.x=0,kr(!0),Cn.preventDefault()},Fn=function(Cn){var si,Fi=Cn||((si=window)===null||si===void 0?void 0:si.event),He=Fi.buttons;if(!ni||He===0){ni&&kr(!1);return}var c=$r.current.x+Cn.pageX-$r.current.x-$r.current.delta;c<=0&&(c=0),c+Ht>=wt&&(c=wt-Ht),Ut({scrollLeft:c/wt*(_e+2)}),$r.current.x=Cn.pageX},ln=function(){if(ft.current){var Cn=(0,hr.os)(ft.current).top,si=Cn+ft.current.offsetHeight,Fi=sr===window?document.documentElement.scrollTop+window.innerHeight:(0,hr.os)(sr).top+sr.clientHeight;si-(0,ze.Z)()<=Fi||Cn>=Fi-$t?Gr(function(He){return(0,Re.Z)((0,Re.Z)({},He),{},{isHiddenScrollBar:!0})}):Gr(function(He){return(0,Re.Z)((0,Re.Z)({},He),{},{isHiddenScrollBar:!1})})}},dn=function(Cn){Gr(function(si){return(0,Re.Z)((0,Re.Z)({},si),{},{scrollLeft:Cn/_e*wt||0})})};return O.useImperativeHandle(et,function(){return{setScrollLeft:dn}}),O.useEffect(function(){var rn=(0,wn.Z)(document.body,"mouseup",ir,!1),Cn=(0,wn.Z)(document.body,"mousemove",Fn,!1);return ln(),function(){rn.remove(),Cn.remove()}},[Ht,ni]),O.useEffect(function(){var rn=(0,wn.Z)(sr,"scroll",ln,!1),Cn=(0,wn.Z)(window,"resize",ln,!1);return function(){rn.remove(),Cn.remove()}},[sr]),O.useEffect(function(){yr.isHiddenScrollBar||Gr(function(rn){var Cn=ft.current;return Cn?(0,Re.Z)((0,Re.Z)({},rn),{},{scrollLeft:Cn.scrollLeft/Cn.scrollWidth*Cn.clientWidth}):rn})},[yr.isHiddenScrollBar]),_e<=wt||!Ht||yr.isHiddenScrollBar?null:O.createElement("div",{style:{height:(0,ze.Z)(),width:wt,bottom:$t},className:"".concat(Ze,"-sticky-scroll")},O.createElement("div",{onMouseDown:Si,ref:Wt,className:T()("".concat(Ze,"-sticky-scroll-bar"),(0,ae.Z)({},"".concat(Ze,"-sticky-scroll-bar-active"),ni)),style:{width:"".concat(Ht,"px"),transform:"translate3d(".concat(yr.scrollLeft,"px, 0, 0)")}}))},Fr=O.forwardRef(br);function Zr(ye){return null}var Ur=Zr;function on(ye){return null}var en=on,Hn="rc-table",ti=[],ui={};function Ri(){return"No Data"}function Ui(ye){var xe,et=(0,Re.Z)({rowKey:"key",prefixCls:Hn,emptyText:Ri},ye),st=et.prefixCls,gt=et.className,ft=et.rowClassName,Ut=et.style,$t=et.data,sr=et.rowKey,Ze=et.scroll,_e=et.tableLayout,wt=et.direction,Ht=et.title,Wt=et.footer,lr=et.summary,St=et.caption,yr=et.id,Gr=et.showHeader,$r=et.components,An=et.emptyText,Dn=et.onRow,ni=et.onHeaderRow,kr=et.internalHooks,ir=et.transformColumns,Si=et.internalRefs,Fn=et.tailor,ln=et.sticky,dn=$t||ti,rn=!!dn.length,Cn=kr===De,si=O.useCallback(function(Ka,As){return(0,oe.Z)($r,Ka)||As},[$r]),Fi=O.useMemo(function(){return typeof sr=="function"?sr:function(Ka){var As=Ka&&Ka[sr];return As}},[sr]),He=si(["body"]),c=Hr(),w=(0,se.Z)(c,3),C=w[0],K=w[1],Be=w[2],je=Bn(et,dn,Fi),xt=(0,se.Z)(je,6),bt=xt[0],Xt=xt[1],Ar=xt[2],xr=xt[3],nn=xt[4],En=xt[5],Xr=Ze==null?void 0:Ze.x,fn=O.useState(0),Mn=(0,se.Z)(fn,2),Jn=Mn[0],wi=Mn[1],yn=Lr((0,Re.Z)((0,Re.Z)((0,Re.Z)({},et),bt),{},{expandable:!!bt.expandedRowRender,columnTitle:bt.columnTitle,expandedKeys:Ar,getRowKey:Fi,onTriggerExpand:En,expandIcon:xr,expandIconColumnIndex:bt.expandIconColumnIndex,direction:wt,scrollWidth:Cn&&Fn&&typeof Xr=="number"?Xr:null}),Cn?ir:null),fi=(0,se.Z)(yn,3),qi=fi[0],Ki=fi[1],Ia=fi[2],Ta=Ia!=null?Ia:Xr,Xi=O.useMemo(function(){return{columns:qi,flattenColumns:Ki}},[qi,Ki]),Fa=O.useRef(),Ba=O.useRef(),li=O.useRef(),$a=O.useRef(),os=O.useRef(),sa=O.useState(!1),fa=(0,se.Z)(sa,2),ba=fa[0],Ha=fa[1],ls=O.useState(!1),Aa=(0,se.Z)(ls,2),Ts=Aa[0],ys=Aa[1],Hs=Qn(new Map),Zs=(0,se.Z)(Hs,2),Xs=Zs[0],Wo=Zs[1],$o=pe(Ki),ho=$o.map(function(Ka){return Xs.get(Ka)}),oo=O.useMemo(function(){return ho},[ho.join("_")]),ro=Vn(oo,Ki.length,wt),$s=Ze&&Je(Ze.y),qa=Ze&&Je(Ta)||!!bt.fixed,al=qa&&Ki.some(function(Ka){var As=Ka.fixed;return As}),$l=O.useRef(),Vo=Sn(ln,st),Jo=Vo.isSticky,fu=Vo.offsetHeader,Iu=Vo.offsetSummary,Ma=Vo.offsetScroll,Bs=Vo.stickyClassName,es=Vo.container,Ss=O.useMemo(function(){return lr==null?void 0:lr(dn)},[lr,dn]),wo=($s||Jo)&&O.isValidElement(Ss)&&Ss.type===D&&Ss.props.fixed,Ro,po,Cl;$s&&(po={overflowY:"scroll",maxHeight:Ze.y}),qa&&(Ro={overflowX:"auto"},$s||(po={overflowY:"hidden"}),Cl={width:Ta===!0?"auto":Ta,minWidth:"100%"});var Ko=O.useCallback(function(Ka,As){(0,Ie.Z)(Fa.current)&&Wo(function(zo){if(zo.get(Ka)!==As){var ll=new Map(zo);return ll.set(Ka,As),ll}return zo})},[]),Vl=ei(null),No=(0,se.Z)(Vl,2),Yl=No[0],$u=No[1];function hu(Ka,As){As&&(typeof As=="function"?As(Ka):As.scrollLeft!==Ka&&(As.scrollLeft=Ka,As.scrollLeft!==Ka&&setTimeout(function(){As.scrollLeft=Ka},0)))}var sl=(0,Me.Z)(function(Ka){var As=Ka.currentTarget,zo=Ka.scrollLeft,ll=wt==="rtl",Sl=typeof zo=="number"?zo:As.scrollLeft,Ru=As||ui;if(!$u()||$u()===Ru){var Ou;Yl(Ru),hu(Sl,Ba.current),hu(Sl,li.current),hu(Sl,os.current),hu(Sl,(Ou=$l.current)===null||Ou===void 0?void 0:Ou.setScrollLeft)}var Pu=As||Ba.current;if(Pu){var hl=Pu.scrollWidth,Il=Pu.clientWidth;if(hl===Il){Ha(!1),ys(!1);return}ll?(Ha(-Sl<hl-Il),ys(-Sl>0)):(Ha(Sl>0),ys(Sl<hl-Il))}}),pu=function(){qa&&li.current?sl({currentTarget:li.current}):(Ha(!1),ys(!1))},Tu=function(As){var zo=As.width;zo!==Jn&&(pu(),wi(Fa.current?Fa.current.offsetWidth:zo))},Ku=O.useRef(!1);O.useEffect(function(){Ku.current&&pu()},[qa,$t,qi.length]),O.useEffect(function(){Ku.current=!0},[]);var mu=O.useState(0),zu=(0,se.Z)(mu,2),Nl=zu[0],Gu=zu[1],kl=O.useState(!0),gu=(0,se.Z)(kl,2),Io=gu[0],vu=gu[1];O.useEffect(function(){(!Fn||!Cn)&&(li.current instanceof Element?Gu((0,ze.o)(li.current).width):Gu((0,ze.o)($a.current).width)),vu((0,Fe.G)("position","sticky"))},[]),O.useEffect(function(){Cn&&Si&&(Si.body.current=li.current)});var ko=O.useCallback(function(Ka){return O.createElement(O.Fragment,null,O.createElement(Xn,Ka),wo==="top"&&O.createElement(Z,Ka,Ss))},[wo,Ss]),yc=O.useCallback(function(Ka){return O.createElement(Z,Ka,Ss)},[Ss]),Zu=si(["table"],"table"),Pa=O.useMemo(function(){return _e||(al?Ta==="max-content"?"auto":"fixed":$s||Jo||Ki.some(function(Ka){var As=Ka.ellipsis;return As})?"fixed":"auto")},[$s,al,Ki,_e,Jo]),Fu,Du={colWidths:oo,columCount:Ki.length,stickyOffsets:ro,onHeaderRow:ni,fixHeader:$s,scroll:Ze},_l=O.useMemo(function(){return rn?null:typeof An=="function"?An():An},[rn,An]),Lu=O.createElement(ue,{data:dn,measureColumnWidth:$s||qa||Jo}),yu=O.createElement(zt,{colWidths:Ki.map(function(Ka){var As=Ka.width;return As}),columns:Ki}),Xl=St!=null?O.createElement("caption",{className:"".concat(st,"-caption")},St):void 0,Jl=(0,pt.Z)(et,{data:!0}),Bl=(0,pt.Z)(et,{aria:!0});if($s||Jo){var Ho;typeof He=="function"?(Ho=He(dn,{scrollbarSize:Nl,ref:li,onScroll:sl}),Du.colWidths=Ki.map(function(Ka,As){var zo=Ka.width,ll=As===Ki.length-1?zo-Nl:zo;return typeof ll=="number"&&!Number.isNaN(ll)?ll:0})):Ho=O.createElement("div",{style:(0,Re.Z)((0,Re.Z)({},Ro),po),onScroll:sl,ref:li,className:T()("".concat(st,"-body"))},O.createElement(Zu,(0,L.Z)({style:(0,Re.Z)((0,Re.Z)({},Cl),{},{tableLayout:Pa})},Bl),Xl,yu,Lu,!wo&&Ss&&O.createElement(Z,{stickyOffsets:ro,flattenColumns:Ki,columns:qi},Ss)));var bs=(0,Re.Z)((0,Re.Z)((0,Re.Z)({noData:!dn.length,maxContentScroll:qa&&Ta==="max-content"},Du),Xi),{},{direction:wt,stickyClassName:Bs,onScroll:sl});Fu=O.createElement(O.Fragment,null,Gr!==!1&&O.createElement(Gt,(0,L.Z)({},bs,{stickyTopOffset:fu,className:"".concat(st,"-header"),ref:Ba}),ko),Ho,wo&&wo!=="top"&&O.createElement(Gt,(0,L.Z)({},bs,{stickyBottomOffset:Iu,className:"".concat(st,"-summary"),ref:os}),yc),Jo&&O.createElement(Fr,{ref:$l,offsetScroll:Ma,scrollBodyRef:li,onScroll:sl,container:es}))}else Fu=O.createElement("div",{style:(0,Re.Z)((0,Re.Z)({},Ro),po),className:T()("".concat(st,"-content")),onScroll:sl,ref:li},O.createElement(Zu,(0,L.Z)({style:(0,Re.Z)((0,Re.Z)({},Cl),{},{tableLayout:Pa})},Bl),Xl,yu,Gr!==!1&&O.createElement(Xn,(0,L.Z)({},Du,Xi)),Lu,Ss&&O.createElement(Z,{stickyOffsets:ro,flattenColumns:Ki,columns:qi},Ss)));var ol=O.createElement("div",(0,L.Z)({className:T()(st,gt,(xe={},(0,ae.Z)(xe,"".concat(st,"-rtl"),wt==="rtl"),(0,ae.Z)(xe,"".concat(st,"-ping-left"),ba),(0,ae.Z)(xe,"".concat(st,"-ping-right"),Ts),(0,ae.Z)(xe,"".concat(st,"-layout-fixed"),_e==="fixed"),(0,ae.Z)(xe,"".concat(st,"-fixed-header"),$s),(0,ae.Z)(xe,"".concat(st,"-fixed-column"),al),(0,ae.Z)(xe,"".concat(st,"-scroll-horizontal"),qa),(0,ae.Z)(xe,"".concat(st,"-has-fix-left"),Ki[0]&&Ki[0].fixed),(0,ae.Z)(xe,"".concat(st,"-has-fix-right"),Ki[Ki.length-1]&&Ki[Ki.length-1].fixed==="right"),xe)),style:Ut,id:yr,ref:Fa},Jl),Ht&&O.createElement(Ai,{className:"".concat(st,"-title")},Ht(dn)),O.createElement("div",{ref:$a,className:"".concat(st,"-container")},Fu),Wt&&O.createElement(Ai,{className:"".concat(st,"-footer")},Wt(dn)));qa&&(ol=O.createElement(Te.Z,{onResize:Tu},ol));var qo=gn(Ki,ro,wt,qi),ql=O.useMemo(function(){return{scrollX:Ta,prefixCls:st,getComponent:si,scrollbarSize:Nl,direction:wt,fixedInfoList:qo,isSticky:Jo,supportSticky:Io,componentWidth:Jn,fixHeader:$s,fixColumn:al,horizonScroll:qa,tableLayout:Pa,rowClassName:ft,expandedRowClassName:bt.expandedRowClassName,expandIcon:xr,expandableType:Xt,expandRowByClick:bt.expandRowByClick,expandedRowRender:bt.expandedRowRender,onTriggerExpand:En,expandIconColumnIndex:bt.expandIconColumnIndex,indentSize:bt.indentSize,allColumnsFixedLeft:Ki.every(function(Ka){return Ka.fixed==="left"}),emptyNode:_l,columns:qi,flattenColumns:Ki,onColumnResize:Ko,hoverStartRow:C,hoverEndRow:K,onHover:Be,rowExpandable:bt.rowExpandable,onRow:Dn,getRowKey:Fi,expandedKeys:Ar,childrenColumnName:nn}},[Ta,st,si,Nl,wt,qo,Jo,Io,Jn,$s,al,qa,Pa,ft,bt.expandedRowClassName,xr,Xt,bt.expandRowByClick,bt.expandedRowRender,En,bt.expandIconColumnIndex,bt.indentSize,_l,qi,Ki,Ko,C,K,Be,bt.rowExpandable,Dn,Fi,Ar,nn]);return O.createElement(G.Provider,{value:ql},ol)}function Pi(ye){return H(Ui,ye)}var Tr=Pi();Tr.EXPAND_COLUMN=we,Tr.INTERNAL_HOOKS=De,Tr.Column=Ur,Tr.ColumnGroup=en,Tr.Summary=N;var _n=Tr,hn=g(24916),hi=n(null),ii=n(null);function ri(ye,xe,et){var st=xe||1;return et[ye+st]-(et[ye]||0)}function bi(ye){var xe=ye.rowInfo,et=ye.column,st=ye.colIndex,gt=ye.indent,ft=ye.index,Ut=ye.renderIndex,$t=ye.record,sr=ye.style,Ze=ye.className,_e=ye.inverse,wt=ye.getHeight,Ht=et.render,Wt=et.dataIndex,lr=et.className,St=et.width,yr=o(ii,["columnsOffset"]),Gr=yr.columnsOffset,$r=Bt(xe,et,st,gt,ft),An=$r.key,Dn=$r.fixedInfo,ni=$r.appendCellNode,kr=$r.additionalCellProps,ir=kr.style,Si=kr.colSpan,Fn=Si===void 0?1:Si,ln=kr.rowSpan,dn=ln===void 0?1:ln,rn=st-1,Cn=ri(rn,Fn,Gr),si=Fn>1?St-Cn:0,Fi=(0,Re.Z)((0,Re.Z)((0,Re.Z)({},ir),sr),{},{flex:"0 0 ".concat(Cn,"px"),width:"".concat(Cn,"px"),marginRight:si,pointerEvents:"auto"}),He=O.useMemo(function(){return _e?dn<=1:Fn===0||dn===0||dn>1},[dn,Fn,_e]);He?Fi.visibility="hidden":_e&&(Fi.height=wt==null?void 0:wt(dn));var c=He?function(){return null}:Ht,w={};return(dn===0||Fn===0)&&(w.rowSpan=1,w.colSpan=1),O.createElement(Cr,(0,L.Z)({className:T()(lr,Ze),ellipsis:et.ellipsis,align:et.align,scope:et.rowScope,component:"div",prefixCls:xe.prefixCls,key:An,record:$t,index:ft,renderIndex:Ut,dataIndex:Wt,render:c,shouldCellUpdate:et.shouldCellUpdate},Dn,{appendNode:ni,additionalProps:(0,Re.Z)((0,Re.Z)({},kr),{},{style:Fi},w)}))}var Di=bi,Bi=["data","index","className","rowKey","style","extra","getHeight"],zi=O.forwardRef(function(ye,xe){var et=ye.data,st=ye.index,gt=ye.className,ft=ye.rowKey,Ut=ye.style,$t=ye.extra,sr=ye.getHeight,Ze=(0,Nt.Z)(ye,Bi),_e=et.record,wt=et.indent,Ht=et.index,Wt=o(G,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),lr=Wt.scrollX,St=Wt.flattenColumns,yr=Wt.prefixCls,Gr=Wt.fixColumn,$r=Wt.componentWidth,An=Ke(_e,ft,st,wt),Dn=An.rowSupportExpand,ni=An.expanded,kr=An.rowProps,ir=An.expandedRowRender,Si=An.expandedRowClassName,Fn;if(Dn&&ni){var ln=ir(_e,st,wt+1,ni),dn=Si==null?void 0:Si(_e,st,wt),rn={};Gr&&(rn={style:(0,ae.Z)({},"--virtual-width","".concat($r,"px"))});var Cn="".concat(yr,"-expanded-row-cell");Fn=O.createElement("div",{className:T()("".concat(yr,"-expanded-row"),"".concat(yr,"-expanded-row-level-").concat(wt+1),dn)},O.createElement(Cr,{component:"div",prefixCls:yr,className:T()(Cn,(0,ae.Z)({},"".concat(Cn,"-fixed"),Gr)),additionalProps:rn},ln))}var si=(0,Re.Z)((0,Re.Z)({},Ut),{},{width:lr});$t&&(si.position="absolute",si.pointerEvents="none");var Fi=O.createElement("div",(0,L.Z)({},kr,Ze,{ref:Dn?null:xe,className:T()(gt,"".concat(yr,"-row"),kr==null?void 0:kr.className,(0,ae.Z)({},"".concat(yr,"-row-extra"),$t)),style:(0,Re.Z)((0,Re.Z)({},si),kr==null?void 0:kr.style)}),St.map(function(He,c){return O.createElement(Di,{key:c,rowInfo:An,column:He,colIndex:c,indent:wt,index:st,renderIndex:Ht,record:_e,inverse:$t,getHeight:sr})}));return Dn?O.createElement("div",{ref:xe},Fi,Fn):Fi}),ca=V(zi),xi=ca,vn=O.forwardRef(function(ye,xe){var et=ye.data,st=ye.onScroll,gt=o(G,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),ft=gt.flattenColumns,Ut=gt.onColumnResize,$t=gt.getRowKey,sr=gt.expandedKeys,Ze=gt.prefixCls,_e=gt.childrenColumnName,wt=gt.emptyNode,Ht=gt.scrollX,Wt=o(hi),lr=Wt.scrollY,St=Wt.listItemHeight,yr=O.useRef(),Gr=tt(et,_e,sr,$t),$r=O.useMemo(function(){var Fn=0;return ft.map(function(ln){var dn=ln.width,rn=ln.key;return Fn+=dn,[rn,dn,Fn]})},[ft]),An=O.useMemo(function(){return $r.map(function(Fn){return Fn[2]})},[$r]);O.useEffect(function(){$r.forEach(function(Fn){var ln=(0,se.Z)(Fn,2),dn=ln[0],rn=ln[1];Ut(dn,rn)})},[$r]),O.useImperativeHandle(xe,function(){var Fn={};return Object.defineProperty(Fn,"scrollLeft",{get:function(){var dn;return((dn=yr.current)===null||dn===void 0?void 0:dn.getScrollInfo().x)||0},set:function(dn){var rn;(rn=yr.current)===null||rn===void 0||rn.scrollTo({left:dn})}}),Fn});var Dn=function(ln,dn){var rn,Cn=(rn=Gr[dn])===null||rn===void 0?void 0:rn.record,si=ln.onCell;if(si){var Fi,He=si(Cn,dn);return(Fi=He==null?void 0:He.rowSpan)!==null&&Fi!==void 0?Fi:1}return 1},ni=function(ln){var dn=ln.start,rn=ln.end,Cn=ln.getSize,si=ln.offsetY;if(rn<0)return null;for(var Fi=ft.filter(function(Xr){return Dn(Xr,dn)===0}),He=dn,c=function(fn){if(Fi=Fi.filter(function(Mn){return Dn(Mn,fn)===0}),!Fi.length)return He=fn,"break"},w=dn;w>=0;w-=1){var C=c(w);if(C==="break")break}for(var K=ft.filter(function(Xr){return Dn(Xr,rn)!==1}),Be=rn,je=function(fn){if(K=K.filter(function(Mn){return Dn(Mn,fn)!==1}),!K.length)return Be=Math.max(fn-1,rn),"break"},xt=rn;xt<Gr.length;xt+=1){var bt=je(xt);if(bt==="break")break}for(var Xt=[],Ar=function(fn){var Mn=Gr[fn];if(!Mn)return"continue";ft.some(function(Jn){return Dn(Jn,fn)>1})&&Xt.push(fn)},xr=He;xr<=Be;xr+=1)var nn=Ar(xr);var En=Xt.map(function(Xr){var fn=Gr[Xr],Mn=$t(fn.record,Xr),Jn=function(fi){var qi=Xr+fi-1,Ki=$t(Gr[qi].record,qi),Ia=Cn(Mn,Ki);return Ia.bottom-Ia.top},wi=Cn(Mn);return O.createElement(xi,{key:Xr,data:fn,rowKey:Mn,index:Xr,style:{top:-si+wi.top},extra:!0,getHeight:Jn})});return En},kr=O.useMemo(function(){return{columnsOffset:An}},[An]),ir="".concat(Ze,"-tbody"),Si;return Gr.length?Si=O.createElement(hn.Z,{fullHeight:!1,ref:yr,className:T()(ir,"".concat(ir,"-virtual")),height:lr,itemHeight:St||24,data:Gr,itemKey:function(ln){return $t(ln.record)},scrollWidth:Ht,onVirtualScroll:function(ln){var dn=ln.x;st({scrollLeft:dn})},extraRender:ni},function(Fn,ln,dn){var rn=$t(Fn.record,ln);return O.createElement(xi,(0,L.Z)({data:Fn,rowKey:rn,index:ln},dn))}):Si=O.createElement("div",{className:T()("".concat(Ze,"-placeholder"))},O.createElement(Cr,{component:"div",prefixCls:Ze},wt)),O.createElement(ii.Provider,{value:kr},Si)}),jt=V(vn),Ln=jt,Gn=function(xe,et){var st=et.ref,gt=et.onScroll;return O.createElement(Ln,{ref:st,data:xe,onScroll:gt})},Ei=100;function Qi(ye){var xe=ye.columns,et=ye.scroll,st=ye.prefixCls,gt=st===void 0?Hn:st,ft=ye.className,Ut=ye.listItemHeight,$t=et||{},sr=$t.x,Ze=$t.y;typeof sr!="number"&&(sr=((xe||[]).length+1)*Ei),typeof Ze!="number"&&(Ze=500);var _e=O.useMemo(function(){return{scrollY:Ze,listItemHeight:Ut}},[Ze,Ut]);return O.createElement(hi.Provider,{value:_e},O.createElement(_n,(0,L.Z)({},ye,{className:T()(ft,"".concat(gt,"-virtual")),scroll:(0,Re.Z)((0,Re.Z)({},et),{},{x:sr}),components:{body:Gn},columns:xe,internalHooks:De,tailor:!0})))}function da(ye){return H(Qi,ye)}var xa=da(),Ji=null;function Sa(ye){return null}var _i=Sa;function ai(ye){return null}var $i=ai,ra=g(2738),Ea=g(68031),xs=g(36355),oi=g(93891),Ca=g(19716),ga=g(8628),Qa=g(31724),_s=g(58421),is=g(71418),Da=g(88088);function Ni(ye){return function(et){let{prefixCls:st,onExpand:gt,record:ft,expanded:Ut,expandable:$t}=et;const sr=`${st}-row-expand-icon`;return O.createElement("button",{type:"button",onClick:Ze=>{gt(ft,Ze),Ze.stopPropagation()},className:T()(sr,{[`${sr}-spaced`]:!$t,[`${sr}-expanded`]:$t&&Ut,[`${sr}-collapsed`]:$t&&!Ut}),"aria-label":Ut?ye.collapse:ye.expand,"aria-expanded":Ut})}}var la=Ni;function ps(ye,xe){return"key"in ye&&ye.key!==void 0&&ye.key!==null?ye.key:ye.dataIndex?Array.isArray(ye.dataIndex)?ye.dataIndex.join("."):ye.dataIndex:xe}function as(ye,xe){return xe?`${xe}-${ye}`:`${ye}`}function ts(ye,xe){return typeof ye=="function"?ye(xe):ye}function Wi(ye,xe){const et=ts(ye,xe);return Object.prototype.toString.call(et)==="[object Object]"?"":et}var ms={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"},aa=ms,co=g(7657),Qs=function(xe,et){return O.createElement(co.Z,(0,L.Z)({},xe,{ref:et,icon:aa}))},_o=O.forwardRef(Qs),fs=_o,Bo=g(56762);function ss(ye){const xe=O.useRef(ye),et=(0,Bo.Z)();return[()=>xe.current,st=>{xe.current=st,et()}]}var Yn=g(3113),La=g(24905),io=g(38854),Zi=g(64165),ta=g(20834),Hi=g(40875),ki=g(5112),ya=g(17574),Na=g(47472),Rs=g(92832);function cs(ye){let{value:xe,onChange:et,filterSearch:st,tablePrefixCls:gt,locale:ft}=ye;return st?O.createElement("div",{className:`${gt}-filter-dropdown-search`},O.createElement(Rs.default,{prefix:O.createElement(Na.Z,null),placeholder:ft.filterSearchPlaceholder,onChange:et,value:xe,htmlSize:1,className:`${gt}-filter-dropdown-search-input`})):null}var Es=cs,rs=g(10228);const So=ye=>{const{keyCode:xe}=ye;xe===rs.Z.ENTER&&ye.stopPropagation()};var eo=O.forwardRef((ye,xe)=>O.createElement("div",{className:ye.className,onClick:et=>et.stopPropagation(),onKeyDown:So,ref:xe},ye.children));function zs(ye){let xe=[];return(ye||[]).forEach(et=>{let{value:st,children:gt}=et;xe.push(st),gt&&(xe=[].concat((0,qt.Z)(xe),(0,qt.Z)(zs(gt))))}),xe}function Os(ye){return ye.some(xe=>{let{children:et}=xe;return et})}function Li(ye,xe){return typeof xe=="string"||typeof xe=="number"?xe==null?void 0:xe.toString().toLowerCase().includes(ye.trim().toLowerCase()):!1}function pi(ye){let{filters:xe,prefixCls:et,filteredKeys:st,filterMultiple:gt,searchValue:ft,filterSearch:Ut}=ye;return xe.map(($t,sr)=>{const Ze=String($t.value);if($t.children)return{key:Ze||sr,label:$t.text,popupClassName:`${et}-dropdown-submenu`,children:pi({filters:$t.children,prefixCls:et,filteredKeys:st,filterMultiple:gt,searchValue:ft,filterSearch:Ut})};const _e=gt?La.default:ki.ZP,wt={key:$t.value!==void 0?Ze:sr,label:O.createElement(O.Fragment,null,O.createElement(_e,{checked:st.includes(Ze)}),O.createElement("span",null,$t.text))};return ft.trim()?typeof Ut=="function"?Ut(ft,$t)?wt:null:Li(ft,$t.text)?wt:null:wt})}function ua(ye){var xe,et;const{tablePrefixCls:st,prefixCls:gt,column:ft,dropdownPrefixCls:Ut,columnKey:$t,filterMultiple:sr,filterMode:Ze="menu",filterSearch:_e=!1,filterState:wt,triggerFilter:Ht,locale:Wt,children:lr,getPopupContainer:St}=ye,{filterDropdownOpen:yr,onFilterDropdownOpenChange:Gr,filterResetToDefaultFilteredValue:$r,defaultFilteredValue:An,filterDropdownVisible:Dn,onFilterDropdownVisibleChange:ni}=ft,[kr,ir]=O.useState(!1),Si=!!(wt&&(!((xe=wt.filteredKeys)===null||xe===void 0)&&xe.length||wt.forceFiltered)),Fn=yn=>{ir(yn),Gr==null||Gr(yn),ni==null||ni(yn)},ln=(et=yr!=null?yr:Dn)!==null&&et!==void 0?et:kr,dn=wt==null?void 0:wt.filteredKeys,[rn,Cn]=ss(dn||[]),si=yn=>{let{selectedKeys:fi}=yn;Cn(fi)},Fi=(yn,fi)=>{let{node:qi,checked:Ki}=fi;si(sr?{selectedKeys:yn}:{selectedKeys:Ki&&qi.key?[qi.key]:[]})};O.useEffect(()=>{kr&&si({selectedKeys:dn||[]})},[dn]);const[He,c]=O.useState([]),w=yn=>{c(yn)},[C,K]=O.useState(""),Be=yn=>{const{value:fi}=yn.target;K(fi)};O.useEffect(()=>{kr||K("")},[kr]);const je=yn=>{const fi=yn&&yn.length?yn:null;if(fi===null&&(!wt||!wt.filteredKeys)||(0,Y.Z)(fi,wt==null?void 0:wt.filteredKeys,!0))return null;Ht({column:ft,key:$t,filteredKeys:fi})},xt=()=>{Fn(!1),je(rn())},bt=function(){let{confirm:yn,closeDropdown:fi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};yn&&je([]),fi&&Fn(!1),K(""),Cn($r?(An||[]).map(qi=>String(qi)):[])},Xt=function(){let{closeDropdown:yn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};yn&&Fn(!1),je(rn())},Ar=yn=>{yn&&dn!==void 0&&Cn(dn||[]),Fn(yn),!yn&&!ft.filterDropdown&&xt()},xr=T()({[`${Ut}-menu-without-submenu`]:!Os(ft.filters||[])}),nn=yn=>{if(yn.target.checked){const fi=zs(ft==null?void 0:ft.filters).map(qi=>String(qi));Cn(fi)}else Cn([])},En=yn=>{let{filters:fi}=yn;return(fi||[]).map((qi,Ki)=>{const Ia=String(qi.value),Ta={title:qi.text,key:qi.value!==void 0?Ia:Ki};return qi.children&&(Ta.children=En({filters:qi.children})),Ta})},Xr=yn=>{var fi;return Object.assign(Object.assign({},yn),{text:yn.title,value:yn.key,children:((fi=yn.children)===null||fi===void 0?void 0:fi.map(qi=>Xr(qi)))||[]})};let fn;if(typeof ft.filterDropdown=="function")fn=ft.filterDropdown({prefixCls:`${Ut}-custom`,setSelectedKeys:yn=>si({selectedKeys:yn}),selectedKeys:rn(),confirm:Xt,clearFilters:bt,filters:ft.filters,visible:ln,close:()=>{Fn(!1)}});else if(ft.filterDropdown)fn=ft.filterDropdown;else{const yn=rn()||[],fi=()=>(ft.filters||[]).length===0?O.createElement(Zi.Z,{image:Zi.Z.PRESENTED_IMAGE_SIMPLE,description:Wt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Ze==="tree"?O.createElement(O.Fragment,null,O.createElement(Es,{filterSearch:_e,value:C,onChange:Be,tablePrefixCls:st,locale:Wt}),O.createElement("div",{className:`${st}-filter-dropdown-tree`},sr?O.createElement(La.default,{checked:yn.length===zs(ft.filters).length,indeterminate:yn.length>0&&yn.length<zs(ft.filters).length,className:`${st}-filter-dropdown-checkall`,onChange:nn},Wt.filterCheckall):null,O.createElement(ya.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:sr,checkStrictly:!sr,className:`${Ut}-menu`,onCheck:Fi,checkedKeys:yn,selectedKeys:yn,showIcon:!1,treeData:En({filters:ft.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:C.trim()?Ki=>typeof _e=="function"?_e(C,Xr(Ki)):Li(C,Ki.title):void 0}))):O.createElement(O.Fragment,null,O.createElement(Es,{filterSearch:_e,value:C,onChange:Be,tablePrefixCls:st,locale:Wt}),O.createElement(ta.default,{selectable:!0,multiple:sr,prefixCls:`${Ut}-menu`,className:xr,onSelect:si,onDeselect:si,selectedKeys:yn,getPopupContainer:St,openKeys:He,onOpenChange:w,items:pi({filters:ft.filters||[],filterSearch:_e,prefixCls:gt,filteredKeys:rn(),filterMultiple:sr,searchValue:C})})),qi=()=>$r?(0,Y.Z)((An||[]).map(Ki=>String(Ki)),yn,!0):yn.length===0;fn=O.createElement(O.Fragment,null,fi(),O.createElement("div",{className:`${gt}-dropdown-btns`},O.createElement(Yn.ZP,{type:"link",size:"small",disabled:qi(),onClick:()=>bt()},Wt.filterReset),O.createElement(Yn.ZP,{type:"primary",size:"small",onClick:xt},Wt.filterConfirm)))}ft.filterDropdown&&(fn=O.createElement(Hi.J,{selectable:void 0},fn));const Mn=()=>O.createElement(eo,{className:`${gt}-dropdown`},fn);let Jn;typeof ft.filterIcon=="function"?Jn=ft.filterIcon(Si):ft.filterIcon?Jn=ft.filterIcon:Jn=O.createElement(fs,null);const{direction:wi}=O.useContext(xs.E_);return O.createElement("div",{className:`${gt}-column`},O.createElement("span",{className:`${st}-column-title`},lr),O.createElement(io.Z,{dropdownRender:Mn,trigger:["click"],open:ln,onOpenChange:Ar,getPopupContainer:St,placement:wi==="rtl"?"bottomLeft":"bottomRight"},O.createElement("span",{role:"button",tabIndex:-1,className:T()(`${gt}-trigger`,{active:Si}),onClick:yn=>{yn.stopPropagation()}},Jn)))}var gs=ua;function Oa(ye,xe,et){let st=[];return(ye||[]).forEach((gt,ft)=>{var Ut;const $t=as(ft,et);if(gt.filters||"filterDropdown"in gt||"onFilter"in gt)if("filteredValue"in gt){let sr=gt.filteredValue;"filterDropdown"in gt||(sr=(Ut=sr==null?void 0:sr.map(String))!==null&&Ut!==void 0?Ut:sr),st.push({column:gt,key:ps(gt,$t),filteredKeys:sr,forceFiltered:gt.filtered})}else st.push({column:gt,key:ps(gt,$t),filteredKeys:xe&>.defaultFilteredValue?gt.defaultFilteredValue:void 0,forceFiltered:gt.filtered});"children"in gt&&(st=[].concat((0,qt.Z)(st),(0,qt.Z)(Oa(gt.children,xe,$t))))}),st}function Ns(ye,xe,et,st,gt,ft,Ut,$t){return et.map((sr,Ze)=>{const _e=as(Ze,$t),{filterMultiple:wt=!0,filterMode:Ht,filterSearch:Wt}=sr;let lr=sr;if(lr.filters||lr.filterDropdown){const St=ps(lr,_e),yr=st.find(Gr=>{let{key:$r}=Gr;return St===$r});lr=Object.assign(Object.assign({},lr),{title:Gr=>O.createElement(gs,{tablePrefixCls:ye,prefixCls:`${ye}-filter`,dropdownPrefixCls:xe,column:lr,columnKey:St,filterState:yr,filterMultiple:wt,filterMode:Ht,filterSearch:Wt,triggerFilter:ft,locale:gt,getPopupContainer:Ut},ts(sr.title,Gr))})}return"children"in lr&&(lr=Object.assign(Object.assign({},lr),{children:Ns(ye,xe,lr.children,st,gt,ft,Ut,_e)})),lr})}function Vs(ye){const xe={};return ye.forEach(et=>{let{key:st,filteredKeys:gt,column:ft}=et;const{filters:Ut,filterDropdown:$t}=ft;if($t)xe[st]=gt||null;else if(Array.isArray(gt)){const sr=zs(Ut);xe[st]=sr.filter(Ze=>gt.includes(String(Ze)))}else xe[st]=null}),xe}function vo(ye,xe){return xe.reduce((et,st)=>{const{column:{onFilter:gt,filters:ft},filteredKeys:Ut}=st;return gt&&Ut&&Ut.length?et.filter($t=>Ut.some(sr=>{const Ze=zs(ft),_e=Ze.findIndex(Ht=>String(Ht)===String(sr)),wt=_e!==-1?Ze[_e]:sr;return gt(wt,$t)})):et},ye)}const Ps=ye=>ye.flatMap(xe=>"children"in xe?[xe].concat((0,qt.Z)(Ps(xe.children||[]))):[xe]);function Ti(ye){let{prefixCls:xe,dropdownPrefixCls:et,mergedColumns:st,onFilterChange:gt,getPopupContainer:ft,locale:Ut}=ye;const $t=O.useMemo(()=>Ps(st||[]),[st]),[sr,Ze]=O.useState(()=>Oa($t,!0)),_e=O.useMemo(()=>{const lr=Oa($t,!1);if(lr.length===0)return lr;let St=!0,yr=!0;if(lr.forEach(Gr=>{let{filteredKeys:$r}=Gr;$r!==void 0?St=!1:yr=!1}),St){const Gr=($t||[]).map(($r,An)=>ps($r,as(An)));return sr.filter($r=>{let{key:An}=$r;return Gr.includes(An)}).map($r=>{const An=$t[Gr.findIndex(Dn=>Dn===$r.key)];return Object.assign(Object.assign({},$r),{column:Object.assign(Object.assign({},$r.column),An),forceFiltered:An.filtered})})}return lr},[$t,sr]),wt=O.useMemo(()=>Vs(_e),[_e]),Ht=lr=>{const St=_e.filter(yr=>{let{key:Gr}=yr;return Gr!==lr.key});St.push(lr),Ze(St),gt(Vs(St),St)};return[lr=>Ns(xe,et,lr,_e,Ut,Ht,ft),_e,wt]}var Dl=Ti;function Js(ye,xe,et){const st=O.useRef({});function gt(ft){if(!st.current||st.current.data!==ye||st.current.childrenColumnName!==xe||st.current.getRowKey!==et){let $t=function(sr){sr.forEach((Ze,_e)=>{const wt=et(Ze,_e);Ut.set(wt,Ze),Ze&&typeof Ze=="object"&&xe in Ze&&$t(Ze[xe]||[])})};const Ut=new Map;$t(ye),st.current={data:ye,childrenColumnName:xe,kvMap:Ut,getRowKey:et}}return st.current.kvMap.get(ft)}return[gt]}var nl=g(50371),Qo=function(ye,xe){var et={};for(var st in ye)Object.prototype.hasOwnProperty.call(ye,st)&&xe.indexOf(st)<0&&(et[st]=ye[st]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(ye);gt<st.length;gt++)xe.indexOf(st[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,st[gt])&&(et[st[gt]]=ye[st[gt]]);return et};const Ao=10;function _a(ye,xe){const et={current:ye.current,pageSize:ye.pageSize};return Object.keys(xe&&typeof xe=="object"?xe:{}).forEach(gt=>{const ft=ye[gt];typeof ft!="function"&&(et[gt]=ft)}),et}function vl(ye,xe,et){const st=et&&typeof et=="object"?et:{},{total:gt=0}=st,ft=Qo(st,["total"]),[Ut,$t]=(0,O.useState)(()=>({current:"defaultCurrent"in ft?ft.defaultCurrent:1,pageSize:"defaultPageSize"in ft?ft.defaultPageSize:Ao})),sr=(0,nl.Z)(Ut,ft,{total:gt>0?gt:ye}),Ze=Math.ceil((gt||ye)/sr.pageSize);sr.current>Ze&&(sr.current=Ze||1);const _e=(Ht,Wt)=>{$t({current:Ht!=null?Ht:1,pageSize:Wt||sr.pageSize})},wt=(Ht,Wt)=>{var lr;et&&((lr=et.onChange)===null||lr===void 0||lr.call(et,Ht,Wt)),_e(Ht,Wt),xe(Ht,Wt||(sr==null?void 0:sr.pageSize))};return et===!1?[{},()=>{}]:[Object.assign(Object.assign({},sr),{onChange:wt}),_e]}var yl=vl,fo=g(84105),yo=g(35654),ka=g(90782),pa=g(71430),to=g(18929);const Ya={},ns="SELECT_ALL",js="SELECT_INVERT",wa="SELECT_NONE",Ys=[],ao=(ye,xe)=>{let et=[];return(xe||[]).forEach(st=>{et.push(st),st&&typeof st=="object"&&ye in st&&(et=[].concat((0,qt.Z)(et),(0,qt.Z)(ao(ye,st[ye]))))}),et};var Do=(ye,xe)=>{const{preserveSelectedRowKeys:et,selectedRowKeys:st,defaultSelectedRowKeys:gt,getCheckboxProps:ft,onChange:Ut,onSelect:$t,onSelectAll:sr,onSelectInvert:Ze,onSelectNone:_e,onSelectMultiple:wt,columnWidth:Ht,type:Wt,selections:lr,fixed:St,renderCell:yr,hideSelectAll:Gr,checkStrictly:$r=!0}=xe||{},{prefixCls:An,data:Dn,pageData:ni,getRecordByKey:kr,getRowKey:ir,expandType:Si,childrenColumnName:Fn,locale:ln,getPopupContainer:dn}=ye,[rn,Cn]=(0,to.Z)(st||gt||Ys,{value:st}),si=O.useRef(new Map),Fi=(0,O.useCallback)(Xr=>{if(et){const fn=new Map;Xr.forEach(Mn=>{let Jn=kr(Mn);!Jn&&si.current.has(Mn)&&(Jn=si.current.get(Mn)),fn.set(Mn,Jn)}),si.current=fn}},[kr,et]);O.useEffect(()=>{Fi(rn)},[rn]);const{keyEntities:He}=(0,O.useMemo)(()=>{if($r)return{keyEntities:null};let Xr=Dn;if(et){const fn=new Set(Dn.map((Jn,wi)=>ir(Jn,wi))),Mn=Array.from(si.current).reduce((Jn,wi)=>{let[yn,fi]=wi;return fn.has(yn)?Jn:Jn.concat(fi)},[]);Xr=[].concat((0,qt.Z)(Xr),(0,qt.Z)(Mn))}return(0,pa.I8)(Xr,{externalGetKey:ir,childrenPropName:Fn})},[Dn,ir,$r,Fn,et]),c=(0,O.useMemo)(()=>ao(Fn,ni),[Fn,ni]),w=(0,O.useMemo)(()=>{const Xr=new Map;return c.forEach((fn,Mn)=>{const Jn=ir(fn,Mn),wi=(ft?ft(fn):null)||{};Xr.set(Jn,wi)}),Xr},[c,ir,ft]),C=(0,O.useCallback)(Xr=>{var fn;return!!(!((fn=w.get(ir(Xr)))===null||fn===void 0)&&fn.disabled)},[w,ir]),[K,Be]=(0,O.useMemo)(()=>{if($r)return[rn||[],[]];const{checkedKeys:Xr,halfCheckedKeys:fn}=(0,ka.S)(rn,!0,He,C);return[Xr||[],fn]},[rn,$r,He,C]),je=(0,O.useMemo)(()=>{const Xr=Wt==="radio"?K.slice(0,1):K;return new Set(Xr)},[K,Wt]),xt=(0,O.useMemo)(()=>Wt==="radio"?new Set:new Set(Be),[Be,Wt]),[bt,Xt]=(0,O.useState)(null);O.useEffect(()=>{xe||Cn(Ys)},[!!xe]);const Ar=(0,O.useCallback)((Xr,fn)=>{let Mn,Jn;Fi(Xr),et?(Mn=Xr,Jn=Xr.map(wi=>si.current.get(wi))):(Mn=[],Jn=[],Xr.forEach(wi=>{const yn=kr(wi);yn!==void 0&&(Mn.push(wi),Jn.push(yn))})),Cn(Mn),Ut==null||Ut(Mn,Jn,{type:fn})},[Cn,kr,Ut,et]),xr=(0,O.useCallback)((Xr,fn,Mn,Jn)=>{if($t){const wi=Mn.map(yn=>kr(yn));$t(kr(Xr),fn,wi,Jn)}Ar(Mn,"single")},[$t,kr,Ar]),nn=(0,O.useMemo)(()=>!lr||Gr?null:(lr===!0?[ns,js,wa]:lr).map(fn=>fn===ns?{key:"all",text:ln.selectionAll,onSelect(){Ar(Dn.map((Mn,Jn)=>ir(Mn,Jn)).filter(Mn=>{const Jn=w.get(Mn);return!(Jn!=null&&Jn.disabled)||je.has(Mn)}),"all")}}:fn===js?{key:"invert",text:ln.selectInvert,onSelect(){const Mn=new Set(je);ni.forEach((wi,yn)=>{const fi=ir(wi,yn),qi=w.get(fi);qi!=null&&qi.disabled||(Mn.has(fi)?Mn.delete(fi):Mn.add(fi))});const Jn=Array.from(Mn);Ze&&Ze(Jn),Ar(Jn,"invert")}}:fn===wa?{key:"none",text:ln.selectNone,onSelect(){_e==null||_e(),Ar(Array.from(je).filter(Mn=>{const Jn=w.get(Mn);return Jn==null?void 0:Jn.disabled}),"none")}}:fn).map(fn=>Object.assign(Object.assign({},fn),{onSelect:function(){for(var Mn,Jn,wi=arguments.length,yn=new Array(wi),fi=0;fi<wi;fi++)yn[fi]=arguments[fi];(Jn=fn.onSelect)===null||Jn===void 0||(Mn=Jn).call.apply(Mn,[fn].concat(yn)),Xt(null)}})),[lr,je,ni,ir,Ze,Ar]);return[(0,O.useCallback)(Xr=>{var fn;if(!xe)return Xr.filter(sa=>sa!==Ya);let Mn=(0,qt.Z)(Xr);const Jn=new Set(je),wi=c.map(ir).filter(sa=>!w.get(sa).disabled),yn=wi.every(sa=>Jn.has(sa)),fi=wi.some(sa=>Jn.has(sa)),qi=()=>{const sa=[];yn?wi.forEach(ba=>{Jn.delete(ba),sa.push(ba)}):wi.forEach(ba=>{Jn.has(ba)||(Jn.add(ba),sa.push(ba))});const fa=Array.from(Jn);sr==null||sr(!yn,fa.map(ba=>kr(ba)),sa.map(ba=>kr(ba))),Ar(fa,"all"),Xt(null)};let Ki;if(Wt!=="radio"){let sa;if(nn){const Aa={getPopupContainer:dn,items:nn.map((Ts,ys)=>{const{key:Hs,text:Zs,onSelect:Xs}=Ts;return{key:Hs!=null?Hs:ys,onClick:()=>{Xs==null||Xs(wi)},label:Zs}})};sa=O.createElement("div",{className:`${An}-selection-extra`},O.createElement(io.Z,{menu:Aa,getPopupContainer:dn},O.createElement("span",null,O.createElement(fo.Z,null))))}const fa=c.map((Aa,Ts)=>{const ys=ir(Aa,Ts),Hs=w.get(ys)||{};return Object.assign({checked:Jn.has(ys)},Hs)}).filter(Aa=>{let{disabled:Ts}=Aa;return Ts}),ba=!!fa.length&&fa.length===c.length,Ha=ba&&fa.every(Aa=>{let{checked:Ts}=Aa;return Ts}),ls=ba&&fa.some(Aa=>{let{checked:Ts}=Aa;return Ts});Ki=!Gr&&O.createElement("div",{className:`${An}-selection`},O.createElement(La.default,{checked:ba?Ha:!!c.length&&yn,indeterminate:ba?!Ha&&ls:!yn&&fi,onChange:qi,disabled:c.length===0||ba,"aria-label":sa?"Custom selection":"Select all",skipGroup:!0}),sa)}let Ia;Wt==="radio"?Ia=(sa,fa,ba)=>{const Ha=ir(fa,ba),ls=Jn.has(Ha);return{node:O.createElement(ki.ZP,Object.assign({},w.get(Ha),{checked:ls,onClick:Aa=>Aa.stopPropagation(),onChange:Aa=>{Jn.has(Ha)||xr(Ha,!0,[Ha],Aa.nativeEvent)}})),checked:ls}}:Ia=(sa,fa,ba)=>{var Ha;const ls=ir(fa,ba),Aa=Jn.has(ls),Ts=xt.has(ls),ys=w.get(ls);let Hs;return Si==="nest"?Hs=Ts:Hs=(Ha=ys==null?void 0:ys.indeterminate)!==null&&Ha!==void 0?Ha:Ts,{node:O.createElement(La.default,Object.assign({},ys,{indeterminate:Hs,checked:Aa,skipGroup:!0,onClick:Zs=>Zs.stopPropagation(),onChange:Zs=>{let{nativeEvent:Xs}=Zs;const{shiftKey:Wo}=Xs;let $o=-1,ho=-1;if(Wo&&$r){const oo=new Set([bt,ls]);wi.some((ro,$s)=>{if(oo.has(ro))if($o===-1)$o=$s;else return ho=$s,!0;return!1})}if(ho!==-1&&$o!==ho&&$r){const oo=wi.slice($o,ho+1),ro=[];Aa?oo.forEach(qa=>{Jn.has(qa)&&(ro.push(qa),Jn.delete(qa))}):oo.forEach(qa=>{Jn.has(qa)||(ro.push(qa),Jn.add(qa))});const $s=Array.from(Jn);wt==null||wt(!Aa,$s.map(qa=>kr(qa)),ro.map(qa=>kr(qa))),Ar($s,"multiple")}else{const oo=K;if($r){const ro=Aa?(0,yo._5)(oo,ls):(0,yo.L0)(oo,ls);xr(ls,!Aa,ro,Xs)}else{const ro=(0,ka.S)([].concat((0,qt.Z)(oo),[ls]),!0,He,C),{checkedKeys:$s,halfCheckedKeys:qa}=ro;let al=$s;if(Aa){const $l=new Set($s);$l.delete(ls),al=(0,ka.S)(Array.from($l),{checked:!1,halfCheckedKeys:qa},He,C).checkedKeys}xr(ls,!Aa,al,Xs)}}Xt(Aa?null:ls)}})),checked:Aa}};const Ta=(sa,fa,ba)=>{const{node:Ha,checked:ls}=Ia(sa,fa,ba);return yr?yr(ls,fa,ba,Ha):Ha};if(!Mn.includes(Ya))if(Mn.findIndex(sa=>{var fa;return((fa=sa[Qe])===null||fa===void 0?void 0:fa.columnType)==="EXPAND_COLUMN"})===0){const[sa,...fa]=Mn;Mn=[sa,Ya].concat((0,qt.Z)(fa))}else Mn=[Ya].concat((0,qt.Z)(Mn));const Xi=Mn.indexOf(Ya);Mn=Mn.filter((sa,fa)=>sa!==Ya||fa===Xi);const Fa=Mn[Xi-1],Ba=Mn[Xi+1];let li=St;li===void 0&&((Ba==null?void 0:Ba.fixed)!==void 0?li=Ba.fixed:(Fa==null?void 0:Fa.fixed)!==void 0&&(li=Fa.fixed)),li&&Fa&&((fn=Fa[Qe])===null||fn===void 0?void 0:fn.columnType)==="EXPAND_COLUMN"&&Fa.fixed===void 0&&(Fa.fixed=li);const $a=T()(`${An}-selection-col`,{[`${An}-selection-col-with-dropdown`]:lr&&Wt==="checkbox"}),os={fixed:li,width:Ht,className:`${An}-selection-column`,title:xe.columnTitle||Ki,render:Ta,onCell:xe.onCell,[Qe]:{className:$a}};return Mn.map(sa=>sa===Ya?os:sa)},[ir,c,xe,K,je,xt,Ht,nn,Si,bt,w,wt,xr,C]),je]},Xa=g(89489),bl=g(59477),so=g(6848);const bo="ascend",Zl="descend";function wl(ye){return typeof ye.sorter=="object"&&typeof ye.sorter.multiple=="number"?ye.sorter.multiple:!1}function fl(ye){return typeof ye=="function"?ye:ye&&typeof ye=="object"&&ye.compare?ye.compare:!1}function Ll(ye,xe){return xe?ye[ye.indexOf(xe)+1]:ye[0]}function xl(ye,xe,et){let st=[];function gt(ft,Ut){st.push({column:ft,key:ps(ft,Ut),multiplePriority:wl(ft),sortOrder:ft.sortOrder})}return(ye||[]).forEach((ft,Ut)=>{const $t=as(Ut,et);ft.children?("sortOrder"in ft&>(ft,$t),st=[].concat((0,qt.Z)(st),(0,qt.Z)(xl(ft.children,xe,$t)))):ft.sorter&&("sortOrder"in ft?gt(ft,$t):xe&&ft.defaultSortOrder&&st.push({column:ft,key:ps(ft,$t),multiplePriority:wl(ft),sortOrder:ft.defaultSortOrder}))}),st}function jo(ye,xe,et,st,gt,ft,Ut,$t){return(xe||[]).map((sr,Ze)=>{const _e=as(Ze,$t);let wt=sr;if(wt.sorter){const Ht=wt.sortDirections||gt,Wt=wt.showSorterTooltip===void 0?Ut:wt.showSorterTooltip,lr=ps(wt,_e),St=et.find(Si=>{let{key:Fn}=Si;return Fn===lr}),yr=St?St.sortOrder:null,Gr=Ll(Ht,yr);let $r;if(sr.sortIcon)$r=sr.sortIcon({sortOrder:yr});else{const Si=Ht.includes(bo)&&O.createElement(bl.Z,{className:T()(`${ye}-column-sorter-up`,{active:yr===bo})}),Fn=Ht.includes(Zl)&&O.createElement(Xa.Z,{className:T()(`${ye}-column-sorter-down`,{active:yr===Zl})});$r=O.createElement("span",{className:T()(`${ye}-column-sorter`,{[`${ye}-column-sorter-full`]:!!(Si&&Fn)})},O.createElement("span",{className:`${ye}-column-sorter-inner`,"aria-hidden":"true"},Si,Fn))}const{cancelSort:An,triggerAsc:Dn,triggerDesc:ni}=ft||{};let kr=An;Gr===Zl?kr=ni:Gr===bo&&(kr=Dn);const ir=typeof Wt=="object"?Wt:{title:kr};wt=Object.assign(Object.assign({},wt),{className:T()(wt.className,{[`${ye}-column-sort`]:yr}),title:Si=>{const Fn=O.createElement("div",{className:`${ye}-column-sorters`},O.createElement("span",{className:`${ye}-column-title`},ts(sr.title,Si)),$r);return Wt?O.createElement(so.Z,Object.assign({},ir),Fn):Fn},onHeaderCell:Si=>{const Fn=sr.onHeaderCell&&sr.onHeaderCell(Si)||{},ln=Fn.onClick,dn=Fn.onKeyDown;Fn.onClick=si=>{st({column:sr,key:lr,sortOrder:Gr,multiplePriority:wl(sr)}),ln==null||ln(si)},Fn.onKeyDown=si=>{si.keyCode===rs.Z.ENTER&&(st({column:sr,key:lr,sortOrder:Gr,multiplePriority:wl(sr)}),dn==null||dn(si))};const rn=Wi(sr.title,{}),Cn=rn==null?void 0:rn.toString();return yr?Fn["aria-sort"]=yr==="ascend"?"ascending":"descending":Fn["aria-label"]=Cn||"",Fn.className=T()(Fn.className,`${ye}-column-has-sorters`),Fn.tabIndex=0,sr.ellipsis&&(Fn.title=(rn!=null?rn:"").toString()),Fn}})}return"children"in wt&&(wt=Object.assign(Object.assign({},wt),{children:jo(ye,wt.children,et,st,gt,ft,Ut,_e)})),wt})}function Gs(ye){const{column:xe,sortOrder:et}=ye;return{column:xe,order:et,field:xe.dataIndex,columnKey:xe.key}}function Lo(ye){const xe=ye.filter(et=>{let{sortOrder:st}=et;return st}).map(Gs);return xe.length===0&&ye.length?Object.assign(Object.assign({},Gs(ye[ye.length-1])),{column:void 0}):xe.length<=1?xe[0]||{}:xe}function Wa(ye,xe,et){const st=xe.slice().sort((Ut,$t)=>$t.multiplePriority-Ut.multiplePriority),gt=ye.slice(),ft=st.filter(Ut=>{let{column:{sorter:$t},sortOrder:sr}=Ut;return fl($t)&&sr});return ft.length?gt.sort((Ut,$t)=>{for(let sr=0;sr<ft.length;sr+=1){const Ze=ft[sr],{column:{sorter:_e},sortOrder:wt}=Ze,Ht=fl(_e);if(Ht&&wt){const Wt=Ht(Ut,$t,wt);if(Wt!==0)return wt===bo?Wt:-Wt}}return 0}).map(Ut=>{const $t=Ut[et];return $t?Object.assign(Object.assign({},Ut),{[et]:Wa($t,xe,et)}):Ut}):gt}function vs(ye){let{prefixCls:xe,mergedColumns:et,onSorterChange:st,sortDirections:gt,tableLocale:ft,showSorterTooltip:Ut}=ye;const[$t,sr]=O.useState(xl(et,!0)),Ze=O.useMemo(()=>{let lr=!0;const St=xl(et,!1);if(!St.length)return $t;const yr=[];function Gr(An){lr?yr.push(An):yr.push(Object.assign(Object.assign({},An),{sortOrder:null}))}let $r=null;return St.forEach(An=>{$r===null?(Gr(An),An.sortOrder&&(An.multiplePriority===!1?lr=!1:$r=!0)):($r&&An.multiplePriority!==!1||(lr=!1),Gr(An))}),yr},[et,$t]),_e=O.useMemo(()=>{const lr=Ze.map(St=>{let{column:yr,sortOrder:Gr}=St;return{column:yr,order:Gr}});return{sortColumns:lr,sortColumn:lr[0]&&lr[0].column,sortOrder:lr[0]&&lr[0].order}},[Ze]);function wt(lr){let St;lr.multiplePriority===!1||!Ze.length||Ze[0].multiplePriority===!1?St=[lr]:St=[].concat((0,qt.Z)(Ze.filter(yr=>{let{key:Gr}=yr;return Gr!==lr.key})),[lr]),sr(St),st(Lo(St),St)}return[lr=>jo(xe,lr,Ze,wt,gt,ft,Ut),Ze,_e,()=>Lo(Ze)]}function Ja(ye,xe){return ye.map(et=>{const st=Object.assign({},et);return st.title=ts(et.title,xe),"children"in st&&(st.children=Ja(st.children,xe)),st})}function Cs(ye){return[O.useCallback(et=>Ja(et,ye),[ye])]}var qs=Pi((ye,xe)=>{const{_renderTimes:et}=ye,{_renderTimes:st}=xe;return et!==st}),El=da((ye,xe)=>{const{_renderTimes:et}=ye,{_renderTimes:st}=xe;return et!==st}),il=g(64993),Rl=g(17313),cu=g(83116),Ol=g(37613),ci=ye=>{const{componentCls:xe}=ye,et=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`,st=(gt,ft,Ut)=>({[`&${xe}-${gt}`]:{[`> ${xe}-container`]:{[`> ${xe}-content, > ${xe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${ft}px -${Ut+ye.lineWidth}px`}}}}}});return{[`${xe}-wrapper`]:{[`${xe}${xe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${xe}-title`]:{border:et,borderBottom:0},[`> ${xe}-container`]:{borderInlineStart:et,borderTop:et,[`
|
|
|
> ${xe}-content,
|
|
|
> ${xe}-header,
|
|
|
> ${xe}-body,
|
|
|
> ${xe}-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:et},"> thead":{"> tr:not(:last-child) > th":{borderBottom:et},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${xe}-cell-fix-right-first::after`]:{borderInlineEnd:et}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${ye.tablePaddingVertical}px -${ye.tablePaddingHorizontal+ye.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ye.lineWidth,bottom:0,borderInlineEnd:et,content:'""'}}}}}},[`&${xe}-scroll-horizontal`]:{[`> ${xe}-container > ${xe}-body`]:{"> table > tbody":{[`
|
|
|
> tr${xe}-expanded-row,
|
|
|
> tr${xe}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},st("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle)),st("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall)),{[`> ${xe}-footer`]:{border:et,borderTop:0}}),[`${xe}-cell`]:{[`${xe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ye.lineWidth}px 0 ${ye.lineWidth}px ${ye.tableHeaderBg}`}},[`${xe}-bordered ${xe}-cell-scrollbar`]:{borderInlineEnd:et}}}},Wl=ye=>{const{componentCls:xe}=ye;return{[`${xe}-wrapper`]:{[`${xe}-cell-ellipsis`]:Object.assign(Object.assign({},Rl.vS),{wordBreak:"keep-all",[`
|
|
|
&${xe}-cell-fix-left-last,
|
|
|
&${xe}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${xe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${xe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ac=ye=>{const{componentCls:xe}=ye;return{[`${xe}-wrapper`]:{[`${xe}-tbody > tr${xe}-placeholder`]:{textAlign:"center",color:ye.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ye.colorBgContainer}}}}},du=g(15969),Xo=ye=>{const{componentCls:xe,antCls:et,controlInteractiveSize:st,motionDurationSlow:gt,lineWidth:ft,paddingXS:Ut,lineType:$t,tableBorderColor:sr,tableExpandIconBg:Ze,tableExpandColumnWidth:_e,borderRadius:wt,fontSize:Ht,fontSizeSM:Wt,lineHeight:lr,tablePaddingVertical:St,tablePaddingHorizontal:yr,tableExpandedRowBg:Gr,paddingXXS:$r}=ye,An=st/2-ft,Dn=An*2+ft*3,ni=`${ft}px ${$t} ${sr}`,kr=$r-ft;return{[`${xe}-wrapper`]:{[`${xe}-expand-icon-col`]:{width:_e},[`${xe}-row-expand-icon-cell`]:{textAlign:"center",[`${xe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${xe}-row-indent`]:{height:1,float:"left"},[`${xe}-row-expand-icon`]:Object.assign(Object.assign({},(0,du.N)(ye)),{position:"relative",float:"left",boxSizing:"border-box",width:Dn,height:Dn,padding:0,color:"inherit",lineHeight:`${Dn}px`,background:Ze,border:ni,borderRadius:wt,transform:`scale(${st/Dn})`,transition:`all ${gt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${gt} ease-out`,content:'""'},"&::before":{top:An,insetInlineEnd:kr,insetInlineStart:kr,height:ft},"&::after":{top:kr,bottom:kr,insetInlineStart:An,width:ft,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"}}),[`${xe}-row-indent + ${xe}-row-expand-icon`]:{marginTop:(Ht*lr-ft*3)/2-Math.ceil((Wt*1.4-ft*3)/2),marginInlineEnd:Ut},[`tr${xe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Gr}},[`${et}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${xe}-expanded-row-fixed`]:{position:"relative",margin:`-${St}px -${yr}px`,padding:`${St}px ${yr}px`}}}},oc=ye=>{const{componentCls:xe,antCls:et,iconCls:st,tableFilterDropdownWidth:gt,tableFilterDropdownSearchWidth:ft,paddingXXS:Ut,paddingXS:$t,colorText:sr,lineWidth:Ze,lineType:_e,tableBorderColor:wt,tableHeaderIconColor:Ht,fontSizeSM:Wt,tablePaddingHorizontal:lr,borderRadius:St,motionDurationSlow:yr,colorTextDescription:Gr,colorPrimary:$r,tableHeaderFilterActiveBg:An,colorTextDisabled:Dn,tableFilterDropdownBg:ni,tableFilterDropdownHeight:kr,controlItemBgHover:ir,controlItemBgActive:Si,boxShadowSecondary:Fn,filterDropdownMenuBg:ln}=ye,dn=`${et}-dropdown`,rn=`${xe}-filter-dropdown`,Cn=`${et}-tree`,si=`${Ze}px ${_e} ${wt}`;return[{[`${xe}-wrapper`]:{[`${xe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${xe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Ut,marginInline:`${Ut}px ${-lr/2}px`,padding:`0 ${Ut}px`,color:Ht,fontSize:Wt,borderRadius:St,cursor:"pointer",transition:`all ${yr}`,"&:hover":{color:Gr,background:An},"&.active":{color:$r}}}},{[`${et}-dropdown`]:{[rn]:Object.assign(Object.assign({},(0,Rl.Wf)(ye)),{minWidth:gt,backgroundColor:ni,borderRadius:St,boxShadow:Fn,overflow:"hidden",[`${dn}-menu`]:{maxHeight:kr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ln,"&:empty::after":{display:"block",padding:`${$t}px 0`,color:Dn,fontSize:Wt,textAlign:"center",content:'"Not Found"'}},[`${rn}-tree`]:{paddingBlock:`${$t}px 0`,paddingInline:$t,[Cn]:{padding:0},[`${Cn}-treenode ${Cn}-node-content-wrapper:hover`]:{backgroundColor:ir},[`${Cn}-treenode-checkbox-checked ${Cn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Si}}},[`${rn}-search`]:{padding:$t,borderBottom:si,"&-input":{input:{minWidth:ft},[st]:{color:Dn}}},[`${rn}-checkall`]:{width:"100%",marginBottom:Ut,marginInlineStart:Ut},[`${rn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${$t-Ze}px ${$t}px`,overflow:"hidden",borderTop:si}})}},{[`${et}-dropdown ${rn}, ${rn}-submenu`]:{[`${et}-checkbox-wrapper + span`]:{paddingInlineStart:$t,color:sr},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},u=ye=>{const{componentCls:xe,lineWidth:et,colorSplit:st,motionDurationSlow:gt,zIndexTableFixed:ft,tableBg:Ut,zIndexTableSticky:$t}=ye,sr=st;return{[`${xe}-wrapper`]:{[`
|
|
|
${xe}-cell-fix-left,
|
|
|
${xe}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:ft,background:Ut},[`
|
|
|
${xe}-cell-fix-left-first::after,
|
|
|
${xe}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-et,width:30,transform:"translateX(100%)",transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},[`${xe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${xe}-cell-fix-right-first::after,
|
|
|
${xe}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-et,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},[`${xe}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:$t+1,width:30,transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${xe}-ping-left`]:{[`&:not(${xe}-has-fix-left) ${xe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${sr}`}},[`
|
|
|
${xe}-cell-fix-left-first::after,
|
|
|
${xe}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${sr}`},[`${xe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${xe}-ping-right`]:{[`&:not(${xe}-has-fix-right) ${xe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${sr}`}},[`
|
|
|
${xe}-cell-fix-right-first::after,
|
|
|
${xe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${sr}`}}}}},M=ye=>{const{componentCls:xe,antCls:et}=ye;return{[`${xe}-wrapper`]:{[`${xe}-pagination${et}-pagination`]:{margin:`${ye.margin}px 0`},[`${xe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},W=ye=>{const{componentCls:xe,tableRadius:et}=ye;return{[`${xe}-wrapper`]:{[xe]:{[`${xe}-title, ${xe}-header`]:{borderRadius:`${et}px ${et}px 0 0`},[`${xe}-title + ${xe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${xe}-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:et,borderStartEndRadius:et,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:et},"> *:last-child":{borderStartEndRadius:et}}},"&-footer":{borderRadius:`0 0 ${et}px ${et}px`}}}}},Le=ye=>{const{componentCls:xe}=ye;return{[`${xe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${xe}-pagination-left`]:{justifyContent:"flex-end"},[`${xe}-pagination-right`]:{justifyContent:"flex-start"},[`${xe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${xe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${xe}-row-indent`]:{float:"right"}}}}},rt=ye=>{const{componentCls:xe,antCls:et,iconCls:st,fontSizeIcon:gt,padding:ft,paddingXS:Ut,tableHeaderIconColor:$t,tableHeaderIconColorHover:sr,tableSelectionColumnWidth:Ze}=ye;return{[`${xe}-wrapper`]:{[`${xe}-selection-col`]:{width:Ze,[`&${xe}-selection-col-with-dropdown`]:{width:Ze+gt+ft/4}},[`${xe}-bordered ${xe}-selection-col`]:{width:Ze+Ut*2,[`&${xe}-selection-col-with-dropdown`]:{width:Ze+gt+ft/4+Ut*2}},[`
|
|
|
table tr th${xe}-selection-column,
|
|
|
table tr td${xe}-selection-column
|
|
|
`]:{paddingInlineEnd:ye.paddingXS,paddingInlineStart:ye.paddingXS,textAlign:"center",[`${et}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${xe}-selection-column${xe}-cell-fix-left`]:{zIndex:ye.zIndexTableFixed+1},[`table tr th${xe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${xe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${xe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ye.tablePaddingHorizontal/4}px`,[st]:{color:$t,fontSize:gt,verticalAlign:"baseline","&:hover":{color:sr}}}}}},vt=ye=>{const{componentCls:xe}=ye,et=(st,gt,ft,Ut)=>({[`${xe}${xe}-${st}`]:{fontSize:Ut,[`
|
|
|
${xe}-title,
|
|
|
${xe}-footer,
|
|
|
${xe}-cell,
|
|
|
${xe}-thead > tr > th,
|
|
|
${xe}-tbody > tr > th,
|
|
|
${xe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${gt}px ${ft}px`},[`${xe}-filter-trigger`]:{marginInlineEnd:`-${ft/2}px`},[`${xe}-expanded-row-fixed`]:{margin:`-${gt}px -${ft}px`},[`${xe}-tbody`]:{[`${xe}-wrapper:only-child ${xe}`]:{marginBlock:`-${gt}px`,marginInline:`${ye.tableExpandColumnWidth-ft}px -${ft}px`}},[`${xe}-selection-column`]:{paddingInlineStart:`${ft/4}px`}}});return{[`${xe}-wrapper`]:Object.assign(Object.assign({},et("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle,ye.tableFontSizeMiddle)),et("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall,ye.tableFontSizeSmall))}},Ve=ye=>{const{componentCls:xe,marginXXS:et,fontSizeIcon:st,tableHeaderIconColor:gt,tableHeaderIconColorHover:ft}=ye;return{[`${xe}-wrapper`]:{[`${xe}-thead th${xe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,"&:hover":{background:ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ye.colorPrimary},[`
|
|
|
&${xe}-cell-fix-left:hover,
|
|
|
&${xe}-cell-fix-right:hover
|
|
|
`]:{background:ye.tableFixedHeaderSortActiveBg}},[`${xe}-thead th${xe}-column-sort`]:{background:ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${xe}-column-sort`]:{background:ye.tableBodySortBg},[`${xe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${xe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${xe}-column-sorter`]:{marginInlineStart:et,color:gt,fontSize:0,transition:`color ${ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:st,"&.active":{color:ye.colorPrimary}},[`${xe}-column-sorter-up + ${xe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${xe}-column-sorters:hover ${xe}-column-sorter`]:{color:ft}}}},tr=ye=>{const{componentCls:xe,opacityLoading:et,tableScrollThumbBg:st,tableScrollThumbBgHover:gt,tableScrollThumbSize:ft,tableScrollBg:Ut,zIndexTableSticky:$t,stickyScrollBarBorderRadius:sr}=ye,Ze=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`;return{[`${xe}-wrapper`]:{[`${xe}-sticky`]:{"&-holder":{position:"sticky",zIndex:$t,background:ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ft}px !important`,zIndex:$t,display:"flex",alignItems:"center",background:Ut,borderTop:Ze,opacity:et,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ft,backgroundColor:st,borderRadius:sr,transition:`all ${ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:gt}}}}}}},Qt=ye=>{const{componentCls:xe,lineWidth:et,tableBorderColor:st}=ye,gt=`${et}px ${ye.lineType} ${st}`;return{[`${xe}-wrapper`]:{[`${xe}-summary`]:{position:"relative",zIndex:ye.zIndexTableFixed,background:ye.tableBg,"> tr":{"> th, > td":{borderBottom:gt}}},[`div${xe}-summary`]:{boxShadow:`0 -${et}px 0 ${st}`}}}},Mr=ye=>{const{componentCls:xe}=ye,et=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`,st=`${xe}-expanded-row-cell`;return{[`${xe}-wrapper`]:{[`${xe}-tbody-virtual`]:{[`${xe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${xe}-cell`]:{borderBottom:et},[`${xe}-expanded-row`]:{[`${st}${st}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ye.lineWidth}px)`,borderInlineEnd:"none"}}},[`${xe}-bordered`]:{[`${xe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:et,position:"absolute"},[`${xe}-cell`]:{borderInlineEnd:et,[`&${xe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ye.lineWidth,borderInlineStart:et}}}}}}};const sn=ye=>{const{componentCls:xe,fontWeightStrong:et,tablePaddingVertical:st,tablePaddingHorizontal:gt,lineWidth:ft,lineType:Ut,tableBorderColor:$t,tableFontSize:sr,tableBg:Ze,tableRadius:_e,tableHeaderTextColor:wt,motionDurationMid:Ht,tableHeaderBg:Wt,tableHeaderCellSplitColor:lr,tableRowHoverBg:St,tableSelectedRowBg:yr,tableSelectedRowHoverBg:Gr,tableFooterTextColor:$r,tableFooterBg:An,paddingContentVerticalLG:Dn}=ye,ni=`${ft}px ${Ut} ${$t}`;return{[`${xe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Rl.dF)()),{[xe]:Object.assign(Object.assign({},(0,Rl.Wf)(ye)),{fontSize:sr,background:Ze,borderRadius:`${_e}px ${_e}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${_e}px ${_e}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${xe}-cell,
|
|
|
${xe}-thead > tr > th,
|
|
|
${xe}-tbody > tr > th,
|
|
|
${xe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Dn}px ${gt}px`,overflowWrap:"break-word"},[`${xe}-title`]:{padding:`${st}px ${gt}px`},[`${xe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:wt,fontWeight:et,textAlign:"start",background:Wt,borderBottom:ni,transition:`background ${Ht} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${xe}-selection-column):not(${xe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:lr,transform:"translateY(-50%)",transition:`background-color ${Ht}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${xe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ht}, border-color ${Ht}`,borderBottom:ni,[`
|
|
|
> ${xe}-wrapper:only-child,
|
|
|
> ${xe}-expanded-row-fixed > ${xe}-wrapper:only-child
|
|
|
`]:{[xe]:{marginBlock:`-${st}px`,marginInline:`${ye.tableExpandColumnWidth-gt}px -${gt}px`,[`${xe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:wt,fontWeight:et,textAlign:"start",background:Wt,borderBottom:ni,transition:`background ${Ht} ease`},[`
|
|
|
&${xe}-row:hover > th,
|
|
|
&${xe}-row:hover > td,
|
|
|
> th${xe}-cell-row-hover,
|
|
|
> td${xe}-cell-row-hover
|
|
|
`]:{background:St},[`&${xe}-row-selected`]:{"> th, > td":{background:yr},"&:hover > th, &:hover > td":{background:Gr}}}},[`${xe}-footer`]:{padding:`${st}px ${gt}px`,color:$r,background:An}})}};var Rn=(0,cu.Z)("Table",ye=>{const{colorTextHeading:xe,colorSplit:et,colorIcon:st,colorIconHover:gt,opacityLoading:ft,colorBgContainer:Ut,controlInteractiveSize:$t,headerBg:sr,headerColor:Ze,headerSortActiveBg:_e,headerSortHoverBg:wt,bodySortBg:Ht,rowHoverBg:Wt,rowSelectedBg:lr,rowSelectedHoverBg:St,rowExpandedBg:yr,cellPaddingBlock:Gr,cellPaddingInline:$r,cellPaddingBlockMD:An,cellPaddingInlineMD:Dn,cellPaddingBlockSM:ni,cellPaddingInlineSM:kr,borderColor:ir,footerBg:Si,footerColor:Fn,headerBorderRadius:ln,cellFontSize:dn,cellFontSizeMD:rn,cellFontSizeSM:Cn,headerSplitColor:si,fixedHeaderSortActiveBg:Fi,headerFilterHoverBg:He,filterDropdownBg:c,expandIconBg:w,selectionColumnWidth:C,stickyScrollBarBg:K}=ye,Be=new il.C(st),je=new il.C(gt),xt=2,bt=(0,Ol.TS)(ye,{tableFontSize:dn,tableBg:Ut,tableRadius:ln,tablePaddingVertical:Gr,tablePaddingHorizontal:$r,tablePaddingVerticalMiddle:An,tablePaddingHorizontalMiddle:Dn,tablePaddingVerticalSmall:ni,tablePaddingHorizontalSmall:kr,tableBorderColor:ir,tableHeaderTextColor:Ze,tableHeaderBg:sr,tableFooterTextColor:Fn,tableFooterBg:Si,tableHeaderCellSplitColor:si,tableHeaderSortBg:_e,tableHeaderSortHoverBg:wt,tableHeaderIconColor:Be.clone().setAlpha(Be.getAlpha()*ft).toRgbString(),tableHeaderIconColorHover:je.clone().setAlpha(je.getAlpha()*ft).toRgbString(),tableBodySortBg:Ht,tableFixedHeaderSortActiveBg:Fi,tableHeaderFilterActiveBg:He,tableFilterDropdownBg:c,tableRowHoverBg:Wt,tableSelectedRowBg:lr,tableSelectedRowHoverBg:St,zIndexTableFixed:xt,zIndexTableSticky:xt+1,tableFontSizeMiddle:rn,tableFontSizeSmall:Cn,tableSelectionColumnWidth:C,tableExpandIconBg:w,tableExpandColumnWidth:$t+2*ye.padding,tableExpandedRowBg:yr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:K,tableScrollThumbBgHover:xe,tableScrollBg:et});return[sn(bt),M(bt),Qt(bt),Ve(bt),oc(bt),ci(bt),W(bt),Xo(bt),Qt(bt),ac(bt),rt(bt),u(bt),tr(bt),Wl(bt),vt(bt),Le(bt),Mr(bt)]},ye=>{const{colorFillAlter:xe,colorBgContainer:et,colorTextHeading:st,colorFillSecondary:gt,colorFillContent:ft,controlItemBgActive:Ut,controlItemBgActiveHover:$t,padding:sr,paddingSM:Ze,paddingXS:_e,colorBorderSecondary:wt,borderRadiusLG:Ht,fontSize:Wt,controlHeight:lr,colorTextPlaceholder:St}=ye,yr=new il.C(gt).onBackground(et).toHexShortString(),Gr=new il.C(ft).onBackground(et).toHexShortString(),$r=new il.C(xe).onBackground(et).toHexShortString();return{headerBg:$r,headerColor:st,headerSortActiveBg:yr,headerSortHoverBg:Gr,bodySortBg:$r,rowHoverBg:$r,rowSelectedBg:Ut,rowSelectedHoverBg:$t,rowExpandedBg:xe,cellPaddingBlock:sr,cellPaddingInline:sr,cellPaddingBlockMD:Ze,cellPaddingInlineMD:_e,cellPaddingBlockSM:_e,cellPaddingInlineSM:_e,borderColor:wt,headerBorderRadius:Ht,footerBg:$r,footerColor:st,cellFontSize:Wt,cellFontSizeMD:Wt,cellFontSizeSM:Wt,headerSplitColor:wt,fixedHeaderSortActiveBg:yr,headerFilterHoverBg:ft,filterDropdownMenuBg:et,filterDropdownBg:et,expandIconBg:et,selectionColumnWidth:lr,stickyScrollBarBg:St,stickyScrollBarBorderRadius:100}});const di=[],pn=(ye,xe)=>{const{prefixCls:et,className:st,rootClassName:gt,style:ft,size:Ut,bordered:$t,dropdownPrefixCls:sr,dataSource:Ze,pagination:_e,rowSelection:wt,rowKey:Ht="key",rowClassName:Wt,columns:lr,children:St,childrenColumnName:yr,onChange:Gr,getPopupContainer:$r,loading:An,expandIcon:Dn,expandable:ni,expandedRowRender:kr,expandIconColumnIndex:ir,indentSize:Si,scroll:Fn,sortDirections:ln,locale:dn,showSorterTooltip:rn=!0,virtual:Cn}=ye,si=O.useMemo(()=>lr||jr(St),[lr,St]),Fi=O.useMemo(()=>si.some(Ma=>Ma.responsive),[si]),He=(0,ga.Z)(Fi),c=O.useMemo(()=>{const Ma=new Set(Object.keys(He).filter(Bs=>He[Bs]));return si.filter(Bs=>!Bs.responsive||Bs.responsive.some(es=>Ma.has(es)))},[si,He]),w=(0,ra.Z)(ye,["className","style","columns"]),{locale:C=Qa.Z,direction:K,table:Be,renderEmpty:je,getPrefixCls:xt,getPopupContainer:bt}=O.useContext(xs.E_),Xt=(0,Ca.Z)(Ut),Ar=Object.assign(Object.assign({},C.Table),dn),xr=Ze||di,nn=xt("table",et),En=xt("dropdown",sr),Xr=Object.assign({childrenColumnName:yr,expandIconColumnIndex:ir},ni),{childrenColumnName:fn="children"}=Xr,Mn=O.useMemo(()=>xr.some(Ma=>Ma==null?void 0:Ma[fn])?"nest":kr||ni&&ni.expandedRowRender?"row":null,[xr]),Jn={body:O.useRef()},wi=O.useMemo(()=>typeof Ht=="function"?Ht:Ma=>Ma==null?void 0:Ma[Ht],[Ht]),[yn]=Js(xr,fn,wi),fi={},qi=function(Ma,Bs){let es=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ss,wo,Ro;const po=Object.assign(Object.assign({},fi),Ma);es&&((Ss=fi.resetPagination)===null||Ss===void 0||Ss.call(fi),!((wo=po.pagination)===null||wo===void 0)&&wo.current&&(po.pagination.current=1),_e&&_e.onChange&&_e.onChange(1,(Ro=po.pagination)===null||Ro===void 0?void 0:Ro.pageSize)),Fn&&Fn.scrollToFirstRowOnChange!==!1&&Jn.body.current&&(0,Ea.Z)(0,{getContainer:()=>Jn.body.current}),Gr==null||Gr(po.pagination,po.filters,po.sorter,{currentDataSource:vo(Wa(xr,po.sorterStates,fn),po.filterStates),action:Bs})},Ki=(Ma,Bs)=>{qi({sorter:Ma,sorterStates:Bs},"sort",!1)},[Ia,Ta,Xi,Fa]=vs({prefixCls:nn,mergedColumns:c,onSorterChange:Ki,sortDirections:ln||["ascend","descend"],tableLocale:Ar,showSorterTooltip:rn}),Ba=O.useMemo(()=>Wa(xr,Ta,fn),[xr,Ta]);fi.sorter=Fa(),fi.sorterStates=Ta;const li=(Ma,Bs)=>{qi({filters:Ma,filterStates:Bs},"filter",!0)},[$a,os,sa]=Dl({prefixCls:nn,locale:Ar,dropdownPrefixCls:En,mergedColumns:c,onFilterChange:li,getPopupContainer:$r||bt}),fa=vo(Ba,os);fi.filters=sa,fi.filterStates=os;const ba=O.useMemo(()=>{const Ma={};return Object.keys(sa).forEach(Bs=>{sa[Bs]!==null&&(Ma[Bs]=sa[Bs])}),Object.assign(Object.assign({},Xi),{filters:Ma})},[Xi,sa]),[Ha]=Cs(ba),ls=(Ma,Bs)=>{qi({pagination:Object.assign(Object.assign({},fi.pagination),{current:Ma,pageSize:Bs})},"paginate")},[Aa,Ts]=yl(fa.length,ls,_e);fi.pagination=_e===!1?{}:_a(Aa,_e),fi.resetPagination=Ts;const ys=O.useMemo(()=>{if(_e===!1||!Aa.pageSize)return fa;const{current:Ma=1,total:Bs,pageSize:es=Ao}=Aa;return fa.length<Bs?fa.length>es?fa.slice((Ma-1)*es,Ma*es):fa:fa.slice((Ma-1)*es,Ma*es)},[!!_e,fa,Aa&&Aa.current,Aa&&Aa.pageSize,Aa&&Aa.total]),[Hs,Zs]=Do({prefixCls:nn,data:fa,pageData:ys,getRowKey:wi,getRecordByKey:yn,expandType:Mn,childrenColumnName:fn,locale:Ar,getPopupContainer:$r||bt},wt),Xs=(Ma,Bs,es)=>{let Ss;return typeof Wt=="function"?Ss=T()(Wt(Ma,Bs,es)):Ss=T()(Wt),T()({[`${nn}-row-selected`]:Zs.has(wi(Ma,Bs))},Ss)};Xr.__PARENT_RENDER_ICON__=Xr.expandIcon,Xr.expandIcon=Xr.expandIcon||Dn||la(Ar),Mn==="nest"&&Xr.expandIconColumnIndex===void 0?Xr.expandIconColumnIndex=wt?1:0:Xr.expandIconColumnIndex>0&&wt&&(Xr.expandIconColumnIndex-=1),typeof Xr.indentSize!="number"&&(Xr.indentSize=typeof Si=="number"?Si:15);const Wo=O.useCallback(Ma=>Ha(Hs($a(Ia(Ma)))),[Ia,$a,Hs]);let $o,ho;if(_e!==!1&&(Aa!=null&&Aa.total)){let Ma;Aa.size?Ma=Aa.size:Ma=Xt==="small"||Xt==="middle"?"small":void 0;const Bs=wo=>O.createElement(_s.Z,Object.assign({},Aa,{className:T()(`${nn}-pagination ${nn}-pagination-${wo}`,Aa.className),size:Ma})),es=K==="rtl"?"left":"right",{position:Ss}=Aa;if(Ss!==null&&Array.isArray(Ss)){const wo=Ss.find(Cl=>Cl.includes("top")),Ro=Ss.find(Cl=>Cl.includes("bottom")),po=Ss.every(Cl=>`${Cl}`=="none");!wo&&!Ro&&!po&&(ho=Bs(es)),wo&&($o=Bs(wo.toLowerCase().replace("top",""))),Ro&&(ho=Bs(Ro.toLowerCase().replace("bottom","")))}else ho=Bs(es)}let oo;typeof An=="boolean"?oo={spinning:An}:typeof An=="object"&&(oo=Object.assign({spinning:!0},An));const[ro,$s]=Rn(nn),[,qa]=(0,Da.Z)(),al=T()(`${nn}-wrapper`,Be==null?void 0:Be.className,{[`${nn}-wrapper-rtl`]:K==="rtl"},st,gt,$s),$l=Object.assign(Object.assign({},Be==null?void 0:Be.style),ft),Vo=dn&&dn.emptyText||(je==null?void 0:je("Table"))||O.createElement(oi.Z,{componentName:"Table"}),Jo=Cn?El:qs,fu={},Iu=O.useMemo(()=>{const{fontSize:Ma,lineHeight:Bs,padding:es,paddingXS:Ss,paddingSM:wo}=qa,Ro=Math.floor(Ma*Bs);switch(Xt){case"large":return es*2+Ro;case"small":return Ss*2+Ro;default:return wo*2+Ro}},[qa,Xt]);return Cn&&(fu.listItemHeight=Iu),ro(O.createElement("div",{ref:xe,className:al,style:$l},O.createElement(is.Z,Object.assign({spinning:!1},oo),$o,O.createElement(Jo,Object.assign({},fu,w,{columns:c,direction:K,expandable:Xr,prefixCls:nn,className:T()({[`${nn}-middle`]:Xt==="middle",[`${nn}-small`]:Xt==="small",[`${nn}-bordered`]:$t,[`${nn}-empty`]:xr.length===0}),data:ys,rowKey:wi,rowClassName:Xs,emptyText:Vo,internalHooks:De,internalRefs:Jn,transformColumns:Wo})),ho)))};var Sr=O.forwardRef(pn);const xn=(ye,xe)=>{const et=O.useRef(0);return et.current+=1,O.createElement(Sr,Object.assign({},ye,{ref:xe,_renderTimes:et.current}))},Nn=O.forwardRef(xn);Nn.SELECTION_COLUMN=Ya,Nn.EXPAND_COLUMN=we,Nn.SELECTION_ALL=ns,Nn.SELECTION_INVERT=js,Nn.SELECTION_NONE=wa,Nn.Column=_i,Nn.ColumnGroup=$i,Nn.Summary=N;var er=Nn,nr=er},33166:function(bn,Zt,g){"use strict";g.d(Zt,{i:function(){return we}});const we=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return De}});var we=g(33166);function De(se,Me){return we.i.reduce((ie,Y)=>{const O=se[`${Y}1`],I=se[`${Y}3`],n=se[`${Y}6`],o=se[`${Y}7`];return Object.assign(Object.assign({},ie),Me(Y,{lightColor:O,lightBorderColor:I,darkColor:n,textColor:o}))},{})}},10777:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return le}});var we=g(92310),De=g.n(we),se=g(59301),Me=g(36355),ie=function(J,be){var Ce={};for(var Re in J)Object.prototype.hasOwnProperty.call(J,Re)&&be.indexOf(Re)<0&&(Ce[Re]=J[Re]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Re=Object.getOwnPropertySymbols(J);ae<Re.length;ae++)be.indexOf(Re[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Re[ae])&&(Ce[Re[ae]]=J[Re[ae]]);return Ce},O=J=>{var{prefixCls:be,className:Ce,color:Re="blue",dot:ae,pending:me=!1,position:T,label:Ee,children:oe}=J,he=ie(J,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:ve}=se.useContext(Me.E_),_=ve("timeline",be),P=De()(`${_}-item`,{[`${_}-item-pending`]:me},Ce),X=/blue|red|green|gray/.test(Re||"")?void 0:Re,pe=De()(`${_}-item-head`,{[`${_}-item-head-custom`]:!!ae,[`${_}-item-head-${Re}`]:!X});return se.createElement("li",Object.assign({},he,{className:P}),Ee&&se.createElement("div",{className:`${_}-item-label`},Ee),se.createElement("div",{className:`${_}-item-tail`}),se.createElement("div",{className:pe,style:{borderColor:X,color:X}},ae),se.createElement("div",{className:`${_}-item-content`},oe))},I=g(19127),n=g(58617),o=function(J,be){var Ce={};for(var Re in J)Object.prototype.hasOwnProperty.call(J,Re)&&be.indexOf(Re)<0&&(Ce[Re]=J[Re]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Re=Object.getOwnPropertySymbols(J);ae<Re.length;ae++)be.indexOf(Re[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Re[ae])&&(Ce[Re[ae]]=J[Re[ae]]);return Ce},p=J=>{var{prefixCls:be,className:Ce,pending:Re=!1,children:ae,items:me,rootClassName:T,reverse:Ee=!1,direction:oe,hashId:he,pendingDot:ve,mode:_=""}=J,P=o(J,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const X=(We,Cr)=>_==="alternate"?We==="right"?`${be}-item-right`:We==="left"?`${be}-item-left`:Cr%2===0?`${be}-item-left`:`${be}-item-right`:_==="left"?`${be}-item-left`:_==="right"?`${be}-item-right`:We==="right"?`${be}-item-right`:"",pe=(0,I.Z)(me||[]),Je=typeof Re=="boolean"?null:Re;Re&&pe.push({pending:!!Re,dot:ve||se.createElement(n.Z,null),children:Je}),Ee&&pe.reverse();const at=pe.length,nt=`${be}-item-last`,Lt=pe.filter(We=>!!We).map((We,Cr)=>{var Er;const Kr=Cr===at-2?nt:"",_r=Cr===at-1?nt:"",{className:Se}=We,Nt=o(We,["className"]);return se.createElement(O,Object.assign({},Nt,{className:De()([Se,!Ee&&Re?Kr:_r,X((Er=We==null?void 0:We.position)!==null&&Er!==void 0?Er:"",Cr)]),key:(We==null?void 0:We.key)||Cr}))}),ur=pe.some(We=>!!(We!=null&&We.label)),Jt=De()(be,{[`${be}-pending`]:!!Re,[`${be}-reverse`]:!!Ee,[`${be}-${_}`]:!!_&&!ur,[`${be}-label`]:ur,[`${be}-rtl`]:oe==="rtl"},Ce,T,he);return se.createElement("ul",Object.assign({},P,{className:Jt}),Lt)},a=g(11592);function A(J,be){return J&&Array.isArray(J)?J:(0,a.Z)(be).map(Ce=>{var Re,ae;return Object.assign({children:(ae=(Re=Ce==null?void 0:Ce.props)===null||Re===void 0?void 0:Re.children)!==null&&ae!==void 0?ae:""},Ce.props)})}var m=A,S=g(17313),$=g(83116),F=g(37613);const H=J=>{const{componentCls:be}=J;return{[be]:Object.assign(Object.assign({},(0,S.Wf)(J)),{margin:0,padding:0,listStyle:"none",[`${be}-item`]:{position:"relative",margin:0,paddingBottom:J.itemPaddingBottom,fontSize:J.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:J.itemHeadSize,insetInlineStart:(J.itemHeadSize-J.tailWidth)/2,height:`calc(100% - ${J.itemHeadSize}px)`,borderInlineStart:`${J.tailWidth}px ${J.lineType} ${J.tailColor}`},"&-pending":{[`${be}-item-head`]:{fontSize:J.fontSizeSM,backgroundColor:"transparent"},[`${be}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:J.itemHeadSize,height:J.itemHeadSize,backgroundColor:J.dotBg,border:`${J.dotBorderWidth}px ${J.lineType} transparent`,borderRadius:"50%","&-blue":{color:J.colorPrimary,borderColor:J.colorPrimary},"&-red":{color:J.colorError,borderColor:J.colorError},"&-green":{color:J.colorSuccess,borderColor:J.colorSuccess},"&-gray":{color:J.colorTextDisabled,borderColor:J.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:J.itemHeadSize/2,insetInlineStart:J.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:J.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(J.fontSize*J.lineHeight-J.fontSize)+J.lineWidth,marginInlineStart:J.margin+J.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${be}-item-tail`]:{display:"none"},[`> ${be}-item-content`]:{minHeight:J.controlHeightLG*1.2}}},[`&${be}-alternate,
|
|
|
&${be}-right,
|
|
|
&${be}-label`]:{[`${be}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${J.marginXXS}px`,"&-custom":{marginInlineStart:J.tailWidth/2}},"&-left":{[`${be}-item-content`]:{insetInlineStart:`calc(50% - ${J.marginXXS}px)`,width:`calc(50% - ${J.marginSM}px)`,textAlign:"start"}},"&-right":{[`${be}-item-content`]:{width:`calc(50% - ${J.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${be}-right`]:{[`${be}-item-right`]:{[`${be}-item-tail,
|
|
|
${be}-item-head,
|
|
|
${be}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(J.itemHeadSize+J.tailWidth)/2}px)`},[`${be}-item-content`]:{width:`calc(100% - ${J.itemHeadSize+J.marginXS}px)`}}},[`&${be}-pending
|
|
|
${be}-item-last
|
|
|
${be}-item-tail`]:{display:"block",height:`calc(100% - ${J.margin}px)`,borderInlineStart:`${J.tailWidth}px dotted ${J.tailColor}`},[`&${be}-reverse
|
|
|
${be}-item-last
|
|
|
${be}-item-tail`]:{display:"none"},[`&${be}-reverse ${be}-item-pending`]:{[`${be}-item-tail`]:{insetBlockStart:J.margin,display:"block",height:`calc(100% - ${J.margin}px)`,borderInlineStart:`${J.tailWidth}px dotted ${J.tailColor}`},[`${be}-item-content`]:{minHeight:J.controlHeightLG*1.2}},[`&${be}-label`]:{[`${be}-item-label`]:{position:"absolute",insetBlockStart:-(J.fontSize*J.lineHeight-J.fontSize)+J.tailWidth,width:`calc(50% - ${J.marginSM}px)`,textAlign:"end"},[`${be}-item-right`]:{[`${be}-item-label`]:{insetInlineStart:`calc(50% + ${J.marginSM}px)`,width:`calc(50% - ${J.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${be}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var V=(0,$.Z)("Timeline",J=>{const be=(0,F.TS)(J,{itemHeadSize:10,customHeadPaddingVertical:J.paddingXXS,paddingInlineEnd:2});return[H(be)]},J=>({tailColor:J.colorSplit,tailWidth:J.lineWidthBold,dotBorderWidth:J.wireframe?J.lineWidthBold:J.lineWidth*3,dotBg:J.colorBgContainer,itemPaddingBottom:J.padding*1.25})),ee=function(J,be){var Ce={};for(var Re in J)Object.prototype.hasOwnProperty.call(J,Re)&&be.indexOf(Re)<0&&(Ce[Re]=J[Re]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Re=Object.getOwnPropertySymbols(J);ae<Re.length;ae++)be.indexOf(Re[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Re[ae])&&(Ce[Re[ae]]=J[Re[ae]]);return Ce};const B=J=>{const{getPrefixCls:be,direction:Ce,timeline:Re}=se.useContext(Me.E_),{prefixCls:ae,children:me,items:T,className:Ee,style:oe}=J,he=ee(J,["prefixCls","children","items","className","style"]),ve=be("timeline",ae),[_,P]=V(ve),X=m(T,me);return _(se.createElement(p,Object.assign({},he,{className:De()(Re==null?void 0:Re.className,Ee),style:Object.assign(Object.assign({},Re==null?void 0:Re.style),oe),prefixCls:ve,direction:Ce,items:X,hashId:P})))};B.Item=O;var G=B,le=G},6848:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return Re}});var we=g(59301),De=g(92310),se=g.n(De),Me=g(55477),ie=g(18929),Y=g(62892),O=g(79676),I=g(92343),n=g(36355),o=g(33234),L=g(88088),p=g(17313),a=g(29878),A=g(19447),m=g(45157),S=g(37613),$=g(83116);const F=ae=>{const{componentCls:me,tooltipMaxWidth:T,tooltipColor:Ee,tooltipBg:oe,tooltipBorderRadius:he,zIndexPopup:ve,controlHeight:_,boxShadowSecondary:P,paddingSM:X,paddingXS:pe,tooltipRadiusOuter:Je}=ae;return[{[me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(ae)),{position:"absolute",zIndex:ve,display:"block",width:"max-content",maxWidth:T,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":oe,[`${me}-inner`]:{minWidth:_,minHeight:_,padding:`${X/2}px ${pe}px`,color:Ee,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:oe,borderRadius:he,boxShadow:P,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${me}-inner`]:{borderRadius:Math.min(he,A.qN)}},[`${me}-content`]:{position:"relative"}}),(0,m.Z)(ae,(at,nt)=>{let{darkColor:Lt}=nt;return{[`&${me}-${at}`]:{[`${me}-inner`]:{backgroundColor:Lt},[`${me}-arrow`]:{"--antd-arrow-background-color":Lt}}}})),{"&-rtl":{direction:"rtl"}})},(0,A.ZP)((0,S.TS)(ae,{borderRadiusOuter:Je}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:he,limitVerticalRadius:!0}),{[`${me}-pure`]:{position:"relative",maxWidth:"none",margin:ae.sizePopupArrow}}]};var H=(ae,me)=>(0,$.Z)("Tooltip",Ee=>{if(me===!1)return[];const{borderRadius:oe,colorTextLightSolid:he,colorBgDefault:ve,borderRadiusOuter:_}=Ee,P=(0,S.TS)(Ee,{tooltipMaxWidth:250,tooltipColor:he,tooltipBorderRadius:oe,tooltipBg:ve,tooltipRadiusOuter:_>4?4:_});return[F(P),(0,a._y)(Ee,"zoom-big-fast")]},Ee=>{let{zIndexPopupBase:oe,colorBgSpotlight:he}=Ee;return{zIndexPopup:oe+70,colorBgDefault:he}},{resetStyle:!1})(ae),V=g(36785);function ee(ae,me){const T=(0,V.o2)(me),Ee=se()({[`${ae}-${me}`]:me&&T}),oe={},he={};return me&&!T&&(oe.background=me,he["--antd-arrow-background-color"]=me),{className:Ee,overlayStyle:oe,arrowStyle:he}}var G=ae=>{const{prefixCls:me,className:T,placement:Ee="top",title:oe,color:he,overlayInnerStyle:ve}=ae,{getPrefixCls:_}=we.useContext(n.E_),P=_("tooltip",me),[X,pe]=H(P,!0),Je=ee(P,he),at=Je.arrowStyle,nt=Object.assign(Object.assign({},ve),Je.overlayStyle),Lt=se()(pe,P,`${P}-pure`,`${P}-placement-${Ee}`,T,Je.className);return X(we.createElement("div",{className:Lt,style:at},we.createElement("div",{className:`${P}-arrow`}),we.createElement(Me.G,Object.assign({},ae,{className:pe,prefixCls:P,overlayInnerStyle:nt}),oe)))},le=function(ae,me){var T={};for(var Ee in ae)Object.prototype.hasOwnProperty.call(ae,Ee)&&me.indexOf(Ee)<0&&(T[Ee]=ae[Ee]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Ee=Object.getOwnPropertySymbols(ae);oe<Ee.length;oe++)me.indexOf(Ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ee[oe])&&(T[Ee[oe]]=ae[Ee[oe]]);return T};const J=(ae,me)=>{const T={},Ee=Object.assign({},ae);return me.forEach(oe=>{ae&&oe in ae&&(T[oe]=ae[oe],delete Ee[oe])}),{picked:T,omitted:Ee}};function be(ae,me){const T=ae.type;if((T.__ANT_BUTTON===!0||ae.type==="button")&&ae.props.disabled||T.__ANT_SWITCH===!0&&(ae.props.disabled||ae.props.loading)||T.__ANT_RADIO===!0&&ae.props.disabled){const{picked:Ee,omitted:oe}=J(ae.props.style,["position","left","right","top","bottom","float","display","zIndex"]),he=Object.assign(Object.assign({display:"inline-block"},Ee),{cursor:"not-allowed",width:ae.props.block?"100%":void 0}),ve=Object.assign(Object.assign({},oe),{pointerEvents:"none"}),_=(0,I.Tm)(ae,{style:ve,className:null});return we.createElement("span",{style:he,className:se()(ae.props.className,`${me}-disabled-compatible-wrapper`)},_)}return ae}const Ce=we.forwardRef((ae,me)=>{var T,Ee;const{prefixCls:oe,openClassName:he,getTooltipContainer:ve,overlayClassName:_,color:P,overlayInnerStyle:X,children:pe,afterOpenChange:Je,afterVisibleChange:at,destroyTooltipOnHide:nt,arrow:Lt=!0,title:ur,overlay:Jt,builtinPlacements:We,arrowPointAtCenter:Cr=!1,autoAdjustOverflow:Er=!0}=ae,Kr=!!Lt,[,_r]=(0,L.Z)(),{getPopupContainer:Se,getPrefixCls:Nt,direction:z}=we.useContext(n.E_),v=we.useRef(null),h=()=>{var zt;(zt=v.current)===null||zt===void 0||zt.forceAlign()};we.useImperativeHandle(me,()=>({forceAlign:h,forcePopupAlign:()=>{h()}}));const[D,fe]=(0,ie.Z)(!1,{value:(T=ae.open)!==null&&T!==void 0?T:ae.visible,defaultValue:(Ee=ae.defaultOpen)!==null&&Ee!==void 0?Ee:ae.defaultVisible}),Z=!ur&&!Jt&&ur!==0,N=zt=>{var qt,qe;fe(Z?!1:zt),Z||((qt=ae.onOpenChange)===null||qt===void 0||qt.call(ae,zt),(qe=ae.onVisibleChange)===null||qe===void 0||qe.call(ae,zt))},te=we.useMemo(()=>{var zt,qt;let qe=Cr;return typeof Lt=="object"&&(qe=(qt=(zt=Lt.pointAtCenter)!==null&&zt!==void 0?zt:Lt.arrowPointAtCenter)!==null&&qt!==void 0?qt:Cr),We||(0,O.Z)({arrowPointAtCenter:qe,autoAdjustOverflow:Er,arrowWidth:Kr?_r.sizePopupArrow:0,borderRadius:_r.borderRadius,offset:_r.marginXXS,visibleFirst:!0})},[Cr,Lt,We,_r]),Te=we.useMemo(()=>ur===0?ur:Jt||ur||"",[Jt,ur]),Ie=we.createElement(o.BR,null,typeof Te=="function"?Te():Te),{getPopupContainer:Fe,placement:ze="top",mouseEnterDelay:pt=.1,mouseLeaveDelay:$e=.1,overlayStyle:tt,rootClassName:ct}=ae,Ge=le(ae,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ke=Nt("tooltip",oe),Bt=Nt(),Vt=ae["data-popover-inject"];let Mt=D;!("open"in ae)&&!("visible"in ae)&&Z&&(Mt=!1);const mr=be((0,I.l$)(pe)&&!(0,I.M2)(pe)?pe:we.createElement("span",null,pe),Ke),wr=mr.props,re=!wr.className||typeof wr.className=="string"?se()(wr.className,he||`${Ke}-open`):wr.className,[ue,rr]=H(Ke,!Vt),Qe=ee(Ke,P),ot=Qe.arrowStyle,Yr=Object.assign(Object.assign({},X),Qe.overlayStyle),It=se()(_,{[`${Ke}-rtl`]:z==="rtl"},Qe.className,ct,rr);return ue(we.createElement(Me.Z,Object.assign({},Ge,{showArrow:Kr,placement:ze,mouseEnterDelay:pt,mouseLeaveDelay:$e,prefixCls:Ke,overlayClassName:It,overlayStyle:Object.assign(Object.assign({},ot),tt),getTooltipContainer:Fe||ve||Se,ref:v,builtinPlacements:te,overlay:Ie,visible:Mt,onVisibleChange:N,afterVisibleChange:Je!=null?Je:at,overlayInnerStyle:Yr,arrowContent:we.createElement("span",{className:`${Ke}-arrow-content`}),motion:{motionName:(0,Y.m)(Bt,"zoom-big-fast",ae.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!nt}),Mt?(0,I.Tm)(mr,{className:re}):mr))});Ce._InternalPanelDoNotUseOrYouWillBeFired=G;var Re=Ce},17574:function(bn,Zt,g){"use strict";g.d(Zt,{default:function(){return P}});var we=g(43858),De=g(19127),se=g(52671),Me=g(8657),ie=g(96663),Y=g(59301),O={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"},I=O,n=g(7657),o=function(pe,Je){return Y.createElement(n.Z,(0,ie.Z)({},pe,{ref:Je,icon:I}))},L=Y.forwardRef(o),p=L,a=g(92310),A=g.n(a),m=g(35654),S=g(71430),$=g(36355),F=g(56082),H=g(62892),V=g(20648);const ee=4;function B(X){const{dropPosition:pe,dropLevelOffset:Je,prefixCls:at,indent:nt,direction:Lt="ltr"}=X,ur=Lt==="ltr"?"left":"right",Jt=Lt==="ltr"?"right":"left",We={[ur]:-Je*nt+ee,[Jt]:0};switch(pe){case-1:We.top=-3;break;case 1:We.bottom=-3;break;default:We.bottom=-3,We[ur]=nt+ee;break}return Y.createElement("div",{style:We,className:`${at}-drop-indicator`})}var G=g(71997),J=Y.forwardRef((X,pe)=>{const{getPrefixCls:Je,direction:at,virtual:nt,tree:Lt}=Y.useContext($.E_),{prefixCls:ur,className:Jt,showIcon:We=!1,showLine:Cr,switcherIcon:Er,blockNode:Kr=!1,children:_r,checkable:Se=!1,selectable:Nt=!0,draggable:z,motion:v,style:h}=X,D=Je("tree",ur),fe=Je(),Z=v!=null?v:Object.assign(Object.assign({},(0,H.Z)(fe)),{motionAppear:!1}),N=Object.assign(Object.assign({},X),{checkable:Se,selectable:Nt,showIcon:We,motion:Z,blockNode:Kr,showLine:!!Cr,dropIndicatorRender:B}),[te,Te]=(0,V.ZP)(D),Ie=Y.useMemo(()=>{if(!z)return!1;let ze={};switch(typeof z){case"function":ze.nodeDraggable=z;break;case"object":ze=Object.assign({},z);break;default:break}return ze.icon!==!1&&(ze.icon=ze.icon||Y.createElement(F.Z,null)),ze},[z]),Fe=ze=>Y.createElement(G.Z,{prefixCls:D,switcherIcon:Er,treeNodeProps:ze,showLine:Cr});return te(Y.createElement(we.Z,Object.assign({itemHeight:20,ref:pe,virtual:nt},N,{style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),h),prefixCls:D,className:A()({[`${D}-icon-hide`]:!We,[`${D}-block-node`]:Kr,[`${D}-unselectable`]:!Nt,[`${D}-rtl`]:at==="rtl"},Lt==null?void 0:Lt.className,Jt,Te),direction:at,checkable:Se&&Y.createElement("span",{className:`${D}-checkbox-inner`}),selectable:Nt,switcherIcon:Fe,draggable:Ie}),_r))}),be;(function(X){X[X.None=0]="None",X[X.Start=1]="Start",X[X.End=2]="End"})(be||(be={}));function Ce(X,pe){function Je(at){const{key:nt,children:Lt}=at;pe(nt,at)!==!1&&Ce(Lt||[],pe)}X.forEach(Je)}function Re(X){let{treeData:pe,expandedKeys:Je,startKey:at,endKey:nt}=X;const Lt=[];let ur=be.None;if(at&&at===nt)return[at];if(!at||!nt)return[];function Jt(We){return We===at||We===nt}return Ce(pe,We=>{if(ur===be.End)return!1;if(Jt(We)){if(Lt.push(We),ur===be.None)ur=be.Start;else if(ur===be.Start)return ur=be.End,!1}else ur===be.Start&&Lt.push(We);return Je.includes(We)}),Lt}function ae(X,pe){const Je=(0,De.Z)(pe),at=[];return Ce(X,(nt,Lt)=>{const ur=Je.indexOf(nt);return ur!==-1&&(at.push(Lt),Je.splice(ur,1)),!!Je.length}),at}var me=function(X,pe){var Je={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(Je[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,at=Object.getOwnPropertySymbols(X);nt<at.length;nt++)pe.indexOf(at[nt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[nt])&&(Je[at[nt]]=X[at[nt]]);return Je};function T(X){const{isLeaf:pe,expanded:Je}=X;return pe?Y.createElement(se.Z,null):Je?Y.createElement(Me.Z,null):Y.createElement(p,null)}function Ee(X){let{treeData:pe,children:Je}=X;return pe||(0,S.zn)(Je)}const oe=(X,pe)=>{var{defaultExpandAll:Je,defaultExpandParent:at,defaultExpandedKeys:nt}=X,Lt=me(X,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ur=Y.useRef(),Jt=Y.useRef(),We=()=>{const{keyEntities:Ie}=(0,S.I8)(Ee(Lt));let Fe;return Je?Fe=Object.keys(Ie):at?Fe=(0,m.r7)(Lt.expandedKeys||nt||[],Ie):Fe=Lt.expandedKeys||nt,Fe},[Cr,Er]=Y.useState(Lt.selectedKeys||Lt.defaultSelectedKeys||[]),[Kr,_r]=Y.useState(()=>We());Y.useEffect(()=>{"selectedKeys"in Lt&&Er(Lt.selectedKeys)},[Lt.selectedKeys]),Y.useEffect(()=>{"expandedKeys"in Lt&&_r(Lt.expandedKeys)},[Lt.expandedKeys]);const Se=(Ie,Fe)=>{var ze;return"expandedKeys"in Lt||_r(Ie),(ze=Lt.onExpand)===null||ze===void 0?void 0:ze.call(Lt,Ie,Fe)},Nt=(Ie,Fe)=>{var ze;const{multiple:pt}=Lt,{node:$e,nativeEvent:tt}=Fe,{key:ct=""}=$e,Ge=Ee(Lt),Ke=Object.assign(Object.assign({},Fe),{selected:!0}),Bt=(tt==null?void 0:tt.ctrlKey)||(tt==null?void 0:tt.metaKey),Vt=tt==null?void 0:tt.shiftKey;let Mt;pt&&Bt?(Mt=Ie,ur.current=ct,Jt.current=Mt,Ke.selectedNodes=ae(Ge,Mt)):pt&&Vt?(Mt=Array.from(new Set([].concat((0,De.Z)(Jt.current||[]),(0,De.Z)(Re({treeData:Ge,expandedKeys:Kr,startKey:ct,endKey:ur.current}))))),Ke.selectedNodes=ae(Ge,Mt)):(Mt=[ct],ur.current=ct,Jt.current=Mt,Ke.selectedNodes=ae(Ge,Mt)),(ze=Lt.onSelect)===null||ze===void 0||ze.call(Lt,Mt,Ke),"selectedKeys"in Lt||Er(Mt)},{getPrefixCls:z,direction:v}=Y.useContext($.E_),{prefixCls:h,className:D,showIcon:fe=!0,expandAction:Z="click"}=Lt,N=me(Lt,["prefixCls","className","showIcon","expandAction"]),te=z("tree",h),Te=A()(`${te}-directory`,{[`${te}-directory-rtl`]:v==="rtl"},D);return Y.createElement(J,Object.assign({icon:T,ref:pe,blockNode:!0},N,{showIcon:fe,expandAction:Z,prefixCls:te,className:Te,expandedKeys:Kr,selectedKeys:Cr,onSelect:Nt,onExpand:Se}))};var ve=Y.forwardRef(oe);const _=J;_.DirectoryTree=ve,_.TreeNode=we.O;var P=_},20648:function(bn,Zt,g){"use strict";g.d(Zt,{TM:function(){return a},Yk:function(){return p}});var we=g(93083),De=g(98447),se=g(17313),Me=g(8378),ie=g(37613),Y=g(83116);const O=new we.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),I=(A,m)=>({[`.${A}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${m.motionDurationSlow}`}}}),n=(A,m)=>({[`.${A}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:m.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${m.lineWidthBold}px solid ${m.colorPrimary}`,borderRadius:"50%",content:'""'}}}),o=(A,m)=>{const{treeCls:S,treeNodeCls:$,treeNodePadding:F,titleHeight:H,nodeSelectedBg:V,nodeHoverBg:ee}=m,B=m.paddingXS;return{[S]:Object.assign(Object.assign({},(0,se.Wf)(m)),{background:m.colorBgContainer,borderRadius:m.borderRadius,transition:`background-color ${m.motionDurationSlow}`,[`&${S}-rtl`]:{[`${S}-switcher`]:{"&_close":{[`${S}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${S}-active-focused)`]:Object.assign({},(0,se.oN)(m)),[`${S}-list-holder-inner`]:{alignItems:"flex-start"},[`&${S}-block-node`]:{[`${S}-list-holder-inner`]:{alignItems:"stretch",[`${S}-node-content-wrapper`]:{flex:"auto"},[`${$}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:F,insetInlineStart:0,border:`1px solid ${m.colorPrimary}`,opacity:0,animationName:O,animationDuration:m.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${$}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${F}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${S}-node-content-wrapper`]:{color:m.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${S}-node-content-wrapper`]:Object.assign({},(0,se.oN)(m)),[`&:not(${$}-disabled).filter-node ${S}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${S}-draggable-icon`]:{flexShrink:0,width:H,lineHeight:`${H}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${m.motionDurationSlow}`,[`${$}:hover &`]:{opacity:.45}},[`&${$}-disabled`]:{[`${S}-draggable-icon`]:{visibility:"hidden"}}}},[`${S}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:H}},[`${S}-draggable-icon`]:{visibility:"hidden"},[`${S}-switcher`]:Object.assign(Object.assign({},I(A,m)),{position:"relative",flex:"none",alignSelf:"stretch",width:H,margin:0,lineHeight:`${H}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${S}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:m.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H/2,bottom:-F,marginInlineStart:-1,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:H/2*.8,height:H/2,borderBottom:`1px solid ${m.colorBorder}`,content:'""'}}}),[`${S}-checkbox`]:{top:"initial",marginInlineEnd:B},[`${S}-node-content-wrapper, ${S}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:H,margin:0,padding:`0 ${m.paddingXS/2}px`,color:"inherit",lineHeight:`${H}px`,background:"transparent",borderRadius:m.borderRadius,cursor:"pointer",transition:`all ${m.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ee},[`&${S}-node-selected`]:{backgroundColor:V},[`${S}-iconEle`]:{display:"inline-block",width:H,height:H,lineHeight:`${H}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${S}-unselectable ${S}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${S}-node-content-wrapper`]:Object.assign({lineHeight:`${H}px`,userSelect:"none"},n(A,m)),[`${$}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${m.colorPrimary}`}},"&-show-line":{[`${S}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H/2,bottom:-F,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${S}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${$}-leaf-last`]:{[`${S}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${H/2}px !important`}}}}})}},L=A=>{const{treeCls:m,treeNodeCls:S,treeNodePadding:$,directoryNodeSelectedBg:F,directoryNodeSelectedColor:H}=A;return{[`${m}${m}-directory`]:{[S]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:$,insetInlineStart:0,transition:`background-color ${A.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:A.controlItemBgHover}},"> *":{zIndex:1},[`${m}-switcher`]:{transition:`color ${A.motionDurationMid}`},[`${m}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${m}-node-selected`]:{color:H,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:F},[`${m}-switcher`]:{color:H},[`${m}-node-content-wrapper`]:{color:H,background:"transparent"}}}}}},p=(A,m)=>{const S=`.${A}`,$=`${S}-treenode`,F=m.paddingXS/2,H=(0,ie.TS)(m,{treeCls:S,treeNodeCls:$,treeNodePadding:F});return[o(A,H),L(H)]},a=A=>{const{controlHeightSM:m}=A;return{titleHeight:m,nodeHoverBg:A.controlItemBgHover,nodeSelectedBg:A.controlItemBgActive}};Zt.ZP=(0,Y.Z)("Tree",(A,m)=>{let{prefixCls:S}=m;return[{[A.componentCls]:(0,De.C2)(`${S}-checkbox`,A)},p(S,A),(0,Me.Z)(A)]},A=>{const{colorTextLightSolid:m,colorPrimary:S}=A;return Object.assign(Object.assign({},a(A)),{directoryNodeSelectedColor:m,directoryNodeSelectedBg:S})})},71997:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return $}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(H,V){return De.createElement(ie.Z,(0,we.Z)({},H,{ref:V,icon:Me}))},O=De.forwardRef(Y),I=O,n=g(52671),o=g(58617),L=g(15075),p=g(43531),a=g(92310),A=g.n(a),m=g(92343),$=F=>{const{prefixCls:H,switcherIcon:V,treeNodeProps:ee,showLine:B}=F,{isLeaf:G,expanded:le,loading:J}=ee;if(J)return De.createElement(o.Z,{className:`${H}-switcher-loading-icon`});let be;if(B&&typeof B=="object"&&(be=B.showLeafIcon),G){if(!B)return null;if(typeof be!="boolean"&&be){const ae=typeof be=="function"?be(ee):be,me=`${H}-switcher-line-custom-icon`;return(0,m.l$)(ae)?(0,m.Tm)(ae,{className:A()(ae.props.className||"",me)}):ae}return be?De.createElement(n.Z,{className:`${H}-switcher-line-icon`}):De.createElement("span",{className:`${H}-switcher-leaf-line`})}const Ce=`${H}-switcher-icon`,Re=typeof V=="function"?V(ee):V;return(0,m.l$)(Re)?(0,m.Tm)(Re,{className:A()(Re.props.className||"",Ce)}):Re!==void 0?Re:B?le?De.createElement(L.Z,{className:`${H}-switcher-line-icon`}):De.createElement(p.Z,{className:`${H}-switcher-line-icon`}):De.createElement(I,{className:Ce})}},86251:function(bn,Zt){"use strict";Zt.byteLength=O,Zt.toByteArray=n,Zt.fromByteArray=p;for(var g=[],we=[],De=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Me=0,ie=se.length;Me<ie;++Me)g[Me]=se[Me],we[se.charCodeAt(Me)]=Me;we[45]=62,we[95]=63;function Y(a){var A=a.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=a.indexOf("=");m===-1&&(m=A);var S=m===A?0:4-m%4;return[m,S]}function O(a){var A=Y(a),m=A[0],S=A[1];return(m+S)*3/4-S}function I(a,A,m){return(A+m)*3/4-m}function n(a){var A,m=Y(a),S=m[0],$=m[1],F=new De(I(a,S,$)),H=0,V=$>0?S-4:S,ee;for(ee=0;ee<V;ee+=4)A=we[a.charCodeAt(ee)]<<18|we[a.charCodeAt(ee+1)]<<12|we[a.charCodeAt(ee+2)]<<6|we[a.charCodeAt(ee+3)],F[H++]=A>>16&255,F[H++]=A>>8&255,F[H++]=A&255;return $===2&&(A=we[a.charCodeAt(ee)]<<2|we[a.charCodeAt(ee+1)]>>4,F[H++]=A&255),$===1&&(A=we[a.charCodeAt(ee)]<<10|we[a.charCodeAt(ee+1)]<<4|we[a.charCodeAt(ee+2)]>>2,F[H++]=A>>8&255,F[H++]=A&255),F}function o(a){return g[a>>18&63]+g[a>>12&63]+g[a>>6&63]+g[a&63]}function L(a,A,m){for(var S,$=[],F=A;F<m;F+=3)S=(a[F]<<16&16711680)+(a[F+1]<<8&65280)+(a[F+2]&255),$.push(o(S));return $.join("")}function p(a){for(var A,m=a.length,S=m%3,$=[],F=16383,H=0,V=m-S;H<V;H+=F)$.push(L(a,H,H+F>V?V:H+F));return S===1?(A=a[m-1],$.push(g[A>>2]+g[A<<4&63]+"==")):S===2&&(A=(a[m-2]<<8)+a[m-1],$.push(g[A>>10]+g[A>>4&63]+g[A<<2&63]+"=")),$.join("")}},19208:function(bn,Zt,g){"use strict";var we;var De=g(86251),se=g(67467),Me=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zt.lW=I,we=H,Zt.h2=50;var ie=2147483647;we=ie,I.TYPED_ARRAY_SUPPORT=Y(),!I.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Y(){try{var z=new Uint8Array(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,Uint8Array.prototype),Object.setPrototypeOf(z,v),z.foo()===42}catch(h){return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(I.isBuffer(this))return this.buffer}}),Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(I.isBuffer(this))return this.byteOffset}});function O(z){if(z>ie)throw new RangeError('The value "'+z+'" is invalid for option "size"');var v=new Uint8Array(z);return Object.setPrototypeOf(v,I.prototype),v}function I(z,v,h){if(typeof z=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(z)}return n(z,v,h)}I.poolSize=8192;function n(z,v,h){if(typeof z=="string")return a(z,v);if(ArrayBuffer.isView(z))return m(z);if(z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(_r(z,ArrayBuffer)||z&&_r(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_r(z,SharedArrayBuffer)||z&&_r(z.buffer,SharedArrayBuffer)))return S(z,v,h);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=z.valueOf&&z.valueOf();if(D!=null&&D!==z)return I.from(D,v,h);var fe=$(z);if(fe)return fe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return I.from(z[Symbol.toPrimitive]("string"),v,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}I.from=function(z,v,h){return n(z,v,h)},Object.setPrototypeOf(I.prototype,Uint8Array.prototype),Object.setPrototypeOf(I,Uint8Array);function o(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function L(z,v,h){return o(z),z<=0?O(z):v!==void 0?typeof h=="string"?O(z).fill(v,h):O(z).fill(v):O(z)}I.alloc=function(z,v,h){return L(z,v,h)};function p(z){return o(z),O(z<0?0:F(z)|0)}I.allocUnsafe=function(z){return p(z)},I.allocUnsafeSlow=function(z){return p(z)};function a(z,v){if((typeof v!="string"||v==="")&&(v="utf8"),!I.isEncoding(v))throw new TypeError("Unknown encoding: "+v);var h=V(z,v)|0,D=O(h),fe=D.write(z,v);return fe!==h&&(D=D.slice(0,fe)),D}function A(z){for(var v=z.length<0?0:F(z.length)|0,h=O(v),D=0;D<v;D+=1)h[D]=z[D]&255;return h}function m(z){if(_r(z,Uint8Array)){var v=new Uint8Array(z);return S(v.buffer,v.byteOffset,v.byteLength)}return A(z)}function S(z,v,h){if(v<0||z.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(z.byteLength<v+(h||0))throw new RangeError('"length" is outside of buffer bounds');var D;return v===void 0&&h===void 0?D=new Uint8Array(z):h===void 0?D=new Uint8Array(z,v):D=new Uint8Array(z,v,h),Object.setPrototypeOf(D,I.prototype),D}function $(z){if(I.isBuffer(z)){var v=F(z.length)|0,h=O(v);return h.length===0||z.copy(h,0,0,v),h}if(z.length!==void 0)return typeof z.length!="number"||Se(z.length)?O(0):A(z);if(z.type==="Buffer"&&Array.isArray(z.data))return A(z.data)}function F(z){if(z>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return z|0}function H(z){return+z!=z&&(z=0),I.alloc(+z)}I.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==I.prototype},I.compare=function(v,h){if(_r(v,Uint8Array)&&(v=I.from(v,v.offset,v.byteLength)),_r(h,Uint8Array)&&(h=I.from(h,h.offset,h.byteLength)),!I.isBuffer(v)||!I.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===h)return 0;for(var D=v.length,fe=h.length,Z=0,N=Math.min(D,fe);Z<N;++Z)if(v[Z]!==h[Z]){D=v[Z],fe=h[Z];break}return D<fe?-1:fe<D?1:0},I.isEncoding=function(v){switch(String(v).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},I.concat=function(v,h){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return I.alloc(0);var D;if(h===void 0)for(h=0,D=0;D<v.length;++D)h+=v[D].length;var fe=I.allocUnsafe(h),Z=0;for(D=0;D<v.length;++D){var N=v[D];if(_r(N,Uint8Array))Z+N.length>fe.length?I.from(N).copy(fe,Z):Uint8Array.prototype.set.call(fe,N,Z);else if(I.isBuffer(N))N.copy(fe,Z);else throw new TypeError('"list" argument must be an Array of Buffers');Z+=N.length}return fe};function V(z,v){if(I.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||_r(z,ArrayBuffer))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);var h=z.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&h===0)return 0;for(var fe=!1;;)switch(v){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Jt(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Er(z).length;default:if(fe)return D?-1:Jt(z).length;v=(""+v).toLowerCase(),fe=!0}}I.byteLength=V;function ee(z,v,h){var D=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,v>>>=0,h<=v))return"";for(z||(z="utf8");;)switch(z){case"hex":return _(this,v,h);case"utf8":case"utf-8":return T(this,v,h);case"ascii":return he(this,v,h);case"latin1":case"binary":return ve(this,v,h);case"base64":return me(this,v,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,v,h);default:if(D)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),D=!0}}I.prototype._isBuffer=!0;function B(z,v,h){var D=z[v];z[v]=z[h],z[h]=D}I.prototype.swap16=function(){var v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<v;h+=2)B(this,h,h+1);return this},I.prototype.swap32=function(){var v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<v;h+=4)B(this,h,h+3),B(this,h+1,h+2);return this},I.prototype.swap64=function(){var v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<v;h+=8)B(this,h,h+7),B(this,h+1,h+6),B(this,h+2,h+5),B(this,h+3,h+4);return this},I.prototype.toString=function(){var v=this.length;return v===0?"":arguments.length===0?T(this,0,v):ee.apply(this,arguments)},I.prototype.toLocaleString=I.prototype.toString,I.prototype.equals=function(v){if(!I.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:I.compare(this,v)===0},I.prototype.inspect=function(){var v="",h=Zt.h2;return v=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(v+=" ... "),"<Buffer "+v+">"},Me&&(I.prototype[Me]=I.prototype.inspect),I.prototype.compare=function(v,h,D,fe,Z){if(_r(v,Uint8Array)&&(v=I.from(v,v.offset,v.byteLength)),!I.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(h===void 0&&(h=0),D===void 0&&(D=v?v.length:0),fe===void 0&&(fe=0),Z===void 0&&(Z=this.length),h<0||D>v.length||fe<0||Z>this.length)throw new RangeError("out of range index");if(fe>=Z&&h>=D)return 0;if(fe>=Z)return-1;if(h>=D)return 1;if(h>>>=0,D>>>=0,fe>>>=0,Z>>>=0,this===v)return 0;for(var N=Z-fe,te=D-h,Te=Math.min(N,te),Ie=this.slice(fe,Z),Fe=v.slice(h,D),ze=0;ze<Te;++ze)if(Ie[ze]!==Fe[ze]){N=Ie[ze],te=Fe[ze];break}return N<te?-1:te<N?1:0};function G(z,v,h,D,fe){if(z.length===0)return-1;if(typeof h=="string"?(D=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,Se(h)&&(h=fe?0:z.length-1),h<0&&(h=z.length+h),h>=z.length){if(fe)return-1;h=z.length-1}else if(h<0)if(fe)h=0;else return-1;if(typeof v=="string"&&(v=I.from(v,D)),I.isBuffer(v))return v.length===0?-1:le(z,v,h,D,fe);if(typeof v=="number")return v=v&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(z,v,h):Uint8Array.prototype.lastIndexOf.call(z,v,h):le(z,[v],h,D,fe);throw new TypeError("val must be string, number or Buffer")}function le(z,v,h,D,fe){var Z=1,N=z.length,te=v.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(z.length<2||v.length<2)return-1;Z=2,N/=2,te/=2,h/=2}function Te($e,tt){return Z===1?$e[tt]:$e.readUInt16BE(tt*Z)}var Ie;if(fe){var Fe=-1;for(Ie=h;Ie<N;Ie++)if(Te(z,Ie)===Te(v,Fe===-1?0:Ie-Fe)){if(Fe===-1&&(Fe=Ie),Ie-Fe+1===te)return Fe*Z}else Fe!==-1&&(Ie-=Ie-Fe),Fe=-1}else for(h+te>N&&(h=N-te),Ie=h;Ie>=0;Ie--){for(var ze=!0,pt=0;pt<te;pt++)if(Te(z,Ie+pt)!==Te(v,pt)){ze=!1;break}if(ze)return Ie}return-1}I.prototype.includes=function(v,h,D){return this.indexOf(v,h,D)!==-1},I.prototype.indexOf=function(v,h,D){return G(this,v,h,D,!0)},I.prototype.lastIndexOf=function(v,h,D){return G(this,v,h,D,!1)};function J(z,v,h,D){h=Number(h)||0;var fe=z.length-h;D?(D=Number(D),D>fe&&(D=fe)):D=fe;var Z=v.length;D>Z/2&&(D=Z/2);for(var N=0;N<D;++N){var te=parseInt(v.substr(N*2,2),16);if(Se(te))return N;z[h+N]=te}return N}function be(z,v,h,D){return Kr(Jt(v,z.length-h),z,h,D)}function Ce(z,v,h,D){return Kr(We(v),z,h,D)}function Re(z,v,h,D){return Kr(Er(v),z,h,D)}function ae(z,v,h,D){return Kr(Cr(v,z.length-h),z,h,D)}I.prototype.write=function(v,h,D,fe){if(h===void 0)fe="utf8",D=this.length,h=0;else if(D===void 0&&typeof h=="string")fe=h,D=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(D)?(D=D>>>0,fe===void 0&&(fe="utf8")):(fe=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Z=this.length-h;if((D===void 0||D>Z)&&(D=Z),v.length>0&&(D<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var N=!1;;)switch(fe){case"hex":return J(this,v,h,D);case"utf8":case"utf-8":return be(this,v,h,D);case"ascii":case"latin1":case"binary":return Ce(this,v,h,D);case"base64":return Re(this,v,h,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,v,h,D);default:if(N)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),N=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function me(z,v,h){return v===0&&h===z.length?De.fromByteArray(z):De.fromByteArray(z.slice(v,h))}function T(z,v,h){h=Math.min(z.length,h);for(var D=[],fe=v;fe<h;){var Z=z[fe],N=null,te=Z>239?4:Z>223?3:Z>191?2:1;if(fe+te<=h){var Te,Ie,Fe,ze;switch(te){case 1:Z<128&&(N=Z);break;case 2:Te=z[fe+1],(Te&192)===128&&(ze=(Z&31)<<6|Te&63,ze>127&&(N=ze));break;case 3:Te=z[fe+1],Ie=z[fe+2],(Te&192)===128&&(Ie&192)===128&&(ze=(Z&15)<<12|(Te&63)<<6|Ie&63,ze>2047&&(ze<55296||ze>57343)&&(N=ze));break;case 4:Te=z[fe+1],Ie=z[fe+2],Fe=z[fe+3],(Te&192)===128&&(Ie&192)===128&&(Fe&192)===128&&(ze=(Z&15)<<18|(Te&63)<<12|(Ie&63)<<6|Fe&63,ze>65535&&ze<1114112&&(N=ze))}}N===null?(N=65533,te=1):N>65535&&(N-=65536,D.push(N>>>10&1023|55296),N=56320|N&1023),D.push(N),fe+=te}return oe(D)}var Ee=4096;function oe(z){var v=z.length;if(v<=Ee)return String.fromCharCode.apply(String,z);for(var h="",D=0;D<v;)h+=String.fromCharCode.apply(String,z.slice(D,D+=Ee));return h}function he(z,v,h){var D="";h=Math.min(z.length,h);for(var fe=v;fe<h;++fe)D+=String.fromCharCode(z[fe]&127);return D}function ve(z,v,h){var D="";h=Math.min(z.length,h);for(var fe=v;fe<h;++fe)D+=String.fromCharCode(z[fe]);return D}function _(z,v,h){var D=z.length;(!v||v<0)&&(v=0),(!h||h<0||h>D)&&(h=D);for(var fe="",Z=v;Z<h;++Z)fe+=Nt[z[Z]];return fe}function P(z,v,h){for(var D=z.slice(v,h),fe="",Z=0;Z<D.length-1;Z+=2)fe+=String.fromCharCode(D[Z]+D[Z+1]*256);return fe}I.prototype.slice=function(v,h){var D=this.length;v=~~v,h=h===void 0?D:~~h,v<0?(v+=D,v<0&&(v=0)):v>D&&(v=D),h<0?(h+=D,h<0&&(h=0)):h>D&&(h=D),h<v&&(h=v);var fe=this.subarray(v,h);return Object.setPrototypeOf(fe,I.prototype),fe};function X(z,v,h){if(z%1!==0||z<0)throw new RangeError("offset is not uint");if(z+v>h)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(v,h,D){v=v>>>0,h=h>>>0,D||X(v,h,this.length);for(var fe=this[v],Z=1,N=0;++N<h&&(Z*=256);)fe+=this[v+N]*Z;return fe},I.prototype.readUintBE=I.prototype.readUIntBE=function(v,h,D){v=v>>>0,h=h>>>0,D||X(v,h,this.length);for(var fe=this[v+--h],Z=1;h>0&&(Z*=256);)fe+=this[v+--h]*Z;return fe},I.prototype.readUint8=I.prototype.readUInt8=function(v,h){return v=v>>>0,h||X(v,1,this.length),this[v]},I.prototype.readUint16LE=I.prototype.readUInt16LE=function(v,h){return v=v>>>0,h||X(v,2,this.length),this[v]|this[v+1]<<8},I.prototype.readUint16BE=I.prototype.readUInt16BE=function(v,h){return v=v>>>0,h||X(v,2,this.length),this[v]<<8|this[v+1]},I.prototype.readUint32LE=I.prototype.readUInt32LE=function(v,h){return v=v>>>0,h||X(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},I.prototype.readUint32BE=I.prototype.readUInt32BE=function(v,h){return v=v>>>0,h||X(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},I.prototype.readIntLE=function(v,h,D){v=v>>>0,h=h>>>0,D||X(v,h,this.length);for(var fe=this[v],Z=1,N=0;++N<h&&(Z*=256);)fe+=this[v+N]*Z;return Z*=128,fe>=Z&&(fe-=Math.pow(2,8*h)),fe},I.prototype.readIntBE=function(v,h,D){v=v>>>0,h=h>>>0,D||X(v,h,this.length);for(var fe=h,Z=1,N=this[v+--fe];fe>0&&(Z*=256);)N+=this[v+--fe]*Z;return Z*=128,N>=Z&&(N-=Math.pow(2,8*h)),N},I.prototype.readInt8=function(v,h){return v=v>>>0,h||X(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},I.prototype.readInt16LE=function(v,h){v=v>>>0,h||X(v,2,this.length);var D=this[v]|this[v+1]<<8;return D&32768?D|4294901760:D},I.prototype.readInt16BE=function(v,h){v=v>>>0,h||X(v,2,this.length);var D=this[v+1]|this[v]<<8;return D&32768?D|4294901760:D},I.prototype.readInt32LE=function(v,h){return v=v>>>0,h||X(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},I.prototype.readInt32BE=function(v,h){return v=v>>>0,h||X(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},I.prototype.readFloatLE=function(v,h){return v=v>>>0,h||X(v,4,this.length),se.read(this,v,!0,23,4)},I.prototype.readFloatBE=function(v,h){return v=v>>>0,h||X(v,4,this.length),se.read(this,v,!1,23,4)},I.prototype.readDoubleLE=function(v,h){return v=v>>>0,h||X(v,8,this.length),se.read(this,v,!0,52,8)},I.prototype.readDoubleBE=function(v,h){return v=v>>>0,h||X(v,8,this.length),se.read(this,v,!1,52,8)};function pe(z,v,h,D,fe,Z){if(!I.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>fe||v<Z)throw new RangeError('"value" argument is out of bounds');if(h+D>z.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(v,h,D,fe){if(v=+v,h=h>>>0,D=D>>>0,!fe){var Z=Math.pow(2,8*D)-1;pe(this,v,h,D,Z,0)}var N=1,te=0;for(this[h]=v&255;++te<D&&(N*=256);)this[h+te]=v/N&255;return h+D},I.prototype.writeUintBE=I.prototype.writeUIntBE=function(v,h,D,fe){if(v=+v,h=h>>>0,D=D>>>0,!fe){var Z=Math.pow(2,8*D)-1;pe(this,v,h,D,Z,0)}var N=D-1,te=1;for(this[h+N]=v&255;--N>=0&&(te*=256);)this[h+N]=v/te&255;return h+D},I.prototype.writeUint8=I.prototype.writeUInt8=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,1,255,0),this[h]=v&255,h+1},I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,2,65535,0),this[h]=v&255,this[h+1]=v>>>8,h+2},I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,2,65535,0),this[h]=v>>>8,this[h+1]=v&255,h+2},I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,4,4294967295,0),this[h+3]=v>>>24,this[h+2]=v>>>16,this[h+1]=v>>>8,this[h]=v&255,h+4},I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,4,4294967295,0),this[h]=v>>>24,this[h+1]=v>>>16,this[h+2]=v>>>8,this[h+3]=v&255,h+4},I.prototype.writeIntLE=function(v,h,D,fe){if(v=+v,h=h>>>0,!fe){var Z=Math.pow(2,8*D-1);pe(this,v,h,D,Z-1,-Z)}var N=0,te=1,Te=0;for(this[h]=v&255;++N<D&&(te*=256);)v<0&&Te===0&&this[h+N-1]!==0&&(Te=1),this[h+N]=(v/te>>0)-Te&255;return h+D},I.prototype.writeIntBE=function(v,h,D,fe){if(v=+v,h=h>>>0,!fe){var Z=Math.pow(2,8*D-1);pe(this,v,h,D,Z-1,-Z)}var N=D-1,te=1,Te=0;for(this[h+N]=v&255;--N>=0&&(te*=256);)v<0&&Te===0&&this[h+N+1]!==0&&(Te=1),this[h+N]=(v/te>>0)-Te&255;return h+D},I.prototype.writeInt8=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,1,127,-128),v<0&&(v=255+v+1),this[h]=v&255,h+1},I.prototype.writeInt16LE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,2,32767,-32768),this[h]=v&255,this[h+1]=v>>>8,h+2},I.prototype.writeInt16BE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,2,32767,-32768),this[h]=v>>>8,this[h+1]=v&255,h+2},I.prototype.writeInt32LE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,4,2147483647,-2147483648),this[h]=v&255,this[h+1]=v>>>8,this[h+2]=v>>>16,this[h+3]=v>>>24,h+4},I.prototype.writeInt32BE=function(v,h,D){return v=+v,h=h>>>0,D||pe(this,v,h,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[h]=v>>>24,this[h+1]=v>>>16,this[h+2]=v>>>8,this[h+3]=v&255,h+4};function Je(z,v,h,D,fe,Z){if(h+D>z.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function at(z,v,h,D,fe){return v=+v,h=h>>>0,fe||Je(z,v,h,4,34028234663852886e22,-34028234663852886e22),se.write(z,v,h,D,23,4),h+4}I.prototype.writeFloatLE=function(v,h,D){return at(this,v,h,!0,D)},I.prototype.writeFloatBE=function(v,h,D){return at(this,v,h,!1,D)};function nt(z,v,h,D,fe){return v=+v,h=h>>>0,fe||Je(z,v,h,8,17976931348623157e292,-17976931348623157e292),se.write(z,v,h,D,52,8),h+8}I.prototype.writeDoubleLE=function(v,h,D){return nt(this,v,h,!0,D)},I.prototype.writeDoubleBE=function(v,h,D){return nt(this,v,h,!1,D)},I.prototype.copy=function(v,h,D,fe){if(!I.isBuffer(v))throw new TypeError("argument should be a Buffer");if(D||(D=0),!fe&&fe!==0&&(fe=this.length),h>=v.length&&(h=v.length),h||(h=0),fe>0&&fe<D&&(fe=D),fe===D||v.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),v.length-h<fe-D&&(fe=v.length-h+D);var Z=fe-D;return this===v&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,D,fe):Uint8Array.prototype.set.call(v,this.subarray(D,fe),h),Z},I.prototype.fill=function(v,h,D,fe){if(typeof v=="string"){if(typeof h=="string"?(fe=h,h=0,D=this.length):typeof D=="string"&&(fe=D,D=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!I.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(v.length===1){var Z=v.charCodeAt(0);(fe==="utf8"&&Z<128||fe==="latin1")&&(v=Z)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(h<0||this.length<h||this.length<D)throw new RangeError("Out of range index");if(D<=h)return this;h=h>>>0,D=D===void 0?this.length:D>>>0,v||(v=0);var N;if(typeof v=="number")for(N=h;N<D;++N)this[N]=v;else{var te=I.isBuffer(v)?v:I.from(v,fe),Te=te.length;if(Te===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(N=0;N<D-h;++N)this[N+h]=te[N%Te]}return this};var Lt=/[^+/0-9A-Za-z-_]/g;function ur(z){if(z=z.split("=")[0],z=z.trim().replace(Lt,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function Jt(z,v){v=v||1/0;for(var h,D=z.length,fe=null,Z=[],N=0;N<D;++N){if(h=z.charCodeAt(N),h>55295&&h<57344){if(!fe){if(h>56319){(v-=3)>-1&&Z.push(239,191,189);continue}else if(N+1===D){(v-=3)>-1&&Z.push(239,191,189);continue}fe=h;continue}if(h<56320){(v-=3)>-1&&Z.push(239,191,189),fe=h;continue}h=(fe-55296<<10|h-56320)+65536}else fe&&(v-=3)>-1&&Z.push(239,191,189);if(fe=null,h<128){if((v-=1)<0)break;Z.push(h)}else if(h<2048){if((v-=2)<0)break;Z.push(h>>6|192,h&63|128)}else if(h<65536){if((v-=3)<0)break;Z.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((v-=4)<0)break;Z.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return Z}function We(z){for(var v=[],h=0;h<z.length;++h)v.push(z.charCodeAt(h)&255);return v}function Cr(z,v){for(var h,D,fe,Z=[],N=0;N<z.length&&!((v-=2)<0);++N)h=z.charCodeAt(N),D=h>>8,fe=h%256,Z.push(fe),Z.push(D);return Z}function Er(z){return De.toByteArray(ur(z))}function Kr(z,v,h,D){for(var fe=0;fe<D&&!(fe+h>=v.length||fe>=z.length);++fe)v[fe+h]=z[fe];return fe}function _r(z,v){return z instanceof v||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===v.name}function Se(z){return z!==z}var Nt=function(){for(var z="0123456789abcdef",v=new Array(256),h=0;h<16;++h)for(var D=h*16,fe=0;fe<16;++fe)v[D+fe]=z[h]+z[fe];return v}()},64018:function(){var bn,Zt,g,we=!1,De,se;window.PR_SHOULD_USE_CONTINUATION=!0;var Me,ie;(function(){var Y=window,O=["break,continue,do,else,for,if,return,while"],I=[O,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],n=[I,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[n,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],L=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],a="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",A=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],m="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",S=[O,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],$=[O,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],F=[O,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],H=[o,p,L,A,m,S,$,F],V=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ee="str",B="kwd",G="com",le="typ",J="lit",be="pun",Ce="pln",Re="tag",ae="dec",me="src",T="atn",Ee="atv",oe="nocode",he="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function ve(z){for(var v=0,h=!1,D=!1,fe=0,Z=z.length;fe<Z;++fe){var N=z[fe];if(N.ignoreCase)D=!0;else if(/[a-z]/i.test(N.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){h=!0,D=!1;break}}var te={b:8,t:9,n:10,v:11,f:12,r:13};function Te($e){var tt=$e.charCodeAt(0);if(tt!==92)return tt;var ct=$e.charAt(1);return tt=te[ct],tt||("0"<=ct&&ct<="7"?parseInt($e.substring(1),8):ct==="u"||ct==="x"?parseInt($e.substring(2),16):$e.charCodeAt(1))}function Ie($e){if($e<32)return($e<16?"\\x0":"\\x")+$e.toString(16);var tt=String.fromCharCode($e);return tt==="\\"||tt==="-"||tt==="]"||tt==="^"?"\\"+tt:tt}function Fe($e){var tt=$e.substring(1,$e.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ct=[],Ge=tt[0]==="^",Ke=["["];Ge&&Ke.push("^");for(var Bt=Ge?1:0,Vt=tt.length;Bt<Vt;++Bt){var Mt=tt[Bt];if(/\\[bdsw]/i.test(Mt))Ke.push(Mt);else{var mr=Te(Mt),wr;Bt+2<Vt&&tt[Bt+1]==="-"?(wr=Te(tt[Bt+2]),Bt+=2):wr=mr,ct.push([mr,wr]),wr<65||mr>122||(wr<65||mr>90||ct.push([Math.max(65,mr)|32,Math.min(wr,90)|32]),wr<97||mr>122||ct.push([Math.max(97,mr)&-33,Math.min(wr,122)&-33]))}}ct.sort(function(Qe,ot){return Qe[0]-ot[0]||ot[1]-Qe[1]});for(var re=[],ue=[],Bt=0;Bt<ct.length;++Bt){var rr=ct[Bt];rr[0]<=ue[1]+1?ue[1]=Math.max(ue[1],rr[1]):re.push(ue=rr)}for(var Bt=0;Bt<re.length;++Bt){var rr=re[Bt];Ke.push(Ie(rr[0])),rr[1]>rr[0]&&(rr[1]+1>rr[0]&&Ke.push("-"),Ke.push(Ie(rr[1])))}return Ke.push("]"),Ke.join("")}function ze($e){for(var tt=$e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ct=tt.length,Ge=[],Ke=0,Bt=0;Ke<ct;++Ke){var Vt=tt[Ke];if(Vt==="(")++Bt;else if(Vt.charAt(0)==="\\"){var Mt=+Vt.substring(1);Mt&&(Mt<=Bt?Ge[Mt]=-1:tt[Ke]=Ie(Mt))}}for(var Ke=1;Ke<Ge.length;++Ke)Ge[Ke]===-1&&(Ge[Ke]=++v);for(var Ke=0,Bt=0;Ke<ct;++Ke){var Vt=tt[Ke];if(Vt==="(")++Bt,Ge[Bt]||(tt[Ke]="(?:");else if(Vt.charAt(0)==="\\"){var Mt=+Vt.substring(1);Mt&&Mt<=Bt&&(tt[Ke]="\\"+Ge[Mt])}}for(var Ke=0;Ke<ct;++Ke)tt[Ke]==="^"&&tt[Ke+1]!=="^"&&(tt[Ke]="");if($e.ignoreCase&&h)for(var Ke=0;Ke<ct;++Ke){var Vt=tt[Ke],mr=Vt.charAt(0);Vt.length>=2&&mr==="["?tt[Ke]=Fe(Vt):mr!=="\\"&&(tt[Ke]=Vt.replace(/[a-zA-Z]/g,function(ue){var rr=ue.charCodeAt(0);return"["+String.fromCharCode(rr&-33,rr|32)+"]"}))}return tt.join("")}for(var pt=[],fe=0,Z=z.length;fe<Z;++fe){var N=z[fe];if(N.global||N.multiline)throw new Error(""+N);pt.push("(?:"+ze(N)+")")}return new RegExp(pt.join("|"),D?"gi":"g")}function _(z,v){var h=/(?:^|\s)nocode(?:\s|$)/,D=[],fe=0,Z=[],N=0;function te(Te){var Ie=Te.nodeType;if(Ie==1){if(h.test(Te.className))return;for(var Fe=Te.firstChild;Fe;Fe=Fe.nextSibling)te(Fe);var ze=Te.nodeName.toLowerCase();(ze==="br"||ze==="li")&&(D[N]=`
|
|
|
`,Z[N<<1]=fe++,Z[N++<<1|1]=Te)}else if(Ie==3||Ie==4){var pt=Te.nodeValue;pt.length&&(v?pt=pt.replace(/\r\n?/g,`
|
|
|
`):pt=pt.replace(/[ \t\r\n]+/g," "),D[N]=pt,Z[N<<1]=fe,fe+=pt.length,Z[N++<<1|1]=Te)}}return te(z),{sourceCode:D.join("").replace(/\n$/,""),spans:Z}}function P(z,v,h,D,fe){if(h){var Z={sourceNode:z,pre:1,langExtension:null,numberLines:null,sourceCode:h,spans:null,basePos:v,decorations:null};D(Z),fe.push.apply(fe,Z.decorations)}}var X=/\S/;function pe(z){for(var v=void 0,h=z.firstChild;h;h=h.nextSibling){var D=h.nodeType;v=D===1?v?z:h:D===3&&X.test(h.nodeValue)?z:v}return v===z?void 0:v}function Je(z,v){var h={},D;(function(){for(var N=z.concat(v),te=[],Te={},Ie=0,Fe=N.length;Ie<Fe;++Ie){var ze=N[Ie],pt=ze[3];if(pt)for(var $e=pt.length;--$e>=0;)h[pt.charAt($e)]=ze;var tt=ze[1],ct=""+tt;Te.hasOwnProperty(ct)||(te.push(tt),Te[ct]=null)}te.push(/[\0-\uffff]/),D=ve(te)})();var fe=v.length,Z=function(N){for(var te=N.sourceCode,Te=N.basePos,Ie=N.sourceNode,Fe=[Te,Ce],ze=0,pt=te.match(D)||[],$e={},tt=0,ct=pt.length;tt<ct;++tt){var Ge=pt[tt],Ke=$e[Ge],Bt=void 0,Vt;if(typeof Ke=="string")Vt=!1;else{var Mt=h[Ge.charAt(0)];if(Mt)Bt=Ge.match(Mt[1]),Ke=Mt[0];else{for(var mr=0;mr<fe;++mr)if(Mt=v[mr],Bt=Ge.match(Mt[1]),Bt){Ke=Mt[0];break}Bt||(Ke=Ce)}Vt=Ke.length>=5&&Ke.substring(0,5)==="lang-",Vt&&!(Bt&&typeof Bt[1]=="string")&&(Vt=!1,Ke=me),Vt||($e[Ge]=Ke)}var wr=ze;if(ze+=Ge.length,!Vt)Fe.push(Te+wr,Ke);else{var re=Bt[1],ue=Ge.indexOf(re),rr=ue+re.length;Bt[2]&&(rr=Ge.length-Bt[2].length,ue=rr-re.length);var Qe=Ke.substring(5);P(Ie,Te+wr,Ge.substring(0,ue),Z,Fe),P(Ie,Te+wr+ue,re,Cr(Qe,re),Fe),P(Ie,Te+wr+rr,Ge.substring(rr),Z,Fe)}}N.decorations=Fe};return Z}function at(z){var v=[],h=[];z.tripleQuotedStrings?v.push([ee,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):z.multiLineStrings?v.push([ee,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):v.push([ee,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),z.verbatimStrings&&h.push([ee,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var D=z.hashComments;D&&(z.cStyleComments?(D>1?v.push([G,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):v.push([G,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),h.push([ee,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):v.push([G,/^#[^\r\n]*/,null,"#"])),z.cStyleComments&&(h.push([G,/^\/\/[^\r\n]*/,null]),h.push([G,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=z.regexLiterals;if(fe){var Z=fe>1?"":`
|
|
|
\r`,N=Z?".":"[\\S\\s]",te="/(?=[^/*"+Z+"])(?:[^/\\x5B\\x5C"+Z+"]|\\x5C"+N+"|\\x5B(?:[^\\x5C\\x5D"+Z+"]|\\x5C"+N+")*(?:\\x5D|$))+/";h.push(["lang-regex",RegExp("^"+he+"("+te+")")])}var Te=z.types;Te&&h.push([le,Te]);var Ie=(""+z.keywords).replace(/^ | $/g,"");Ie.length&&h.push([B,new RegExp("^(?:"+Ie.replace(/[\s,]+/g,"|")+")\\b"),null]),v.push([Ce,/^\s+/,null,` \r
|
|
|
\xA0`]);var Fe="^.[^\\s\\w.$@'\"`/\\\\]*";return z.regexLiterals&&(Fe+="(?!s*/)"),h.push([J,/^@[a-z_$][a-z_$@0-9]*/i,null],[le,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Ce,/^[a-z_$][a-z_$@0-9]*/i,null],[J,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Ce,/^\\[\s\S]?/,null],[be,new RegExp(Fe),null]),Je(v,h)}var nt=at({keywords:H,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Lt(z,v,h){for(var D=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,Z=z.ownerDocument,N=Z.createElement("li");z.firstChild;)N.appendChild(z.firstChild);var te=[N];function Te(tt){var ct=tt.nodeType;if(ct==1&&!D.test(tt.className))if(tt.nodeName==="br")Ie(tt),tt.parentNode&&tt.parentNode.removeChild(tt);else for(var Ge=tt.firstChild;Ge;Ge=Ge.nextSibling)Te(Ge);else if((ct==3||ct==4)&&h){var Ke=tt.nodeValue,Bt=Ke.match(fe);if(Bt){var Vt=Ke.substring(0,Bt.index);tt.nodeValue=Vt;var Mt=Ke.substring(Bt.index+Bt[0].length);if(Mt){var mr=tt.parentNode;mr.insertBefore(Z.createTextNode(Mt),tt.nextSibling)}Ie(tt),Vt||tt.parentNode.removeChild(tt)}}}function Ie(tt){for(;!tt.nextSibling;)if(tt=tt.parentNode,!tt)return;function ct(Bt,Vt){var Mt=Vt?Bt.cloneNode(!1):Bt,mr=Bt.parentNode;if(mr){var wr=ct(mr,1),re=Bt.nextSibling;wr.appendChild(Mt);for(var ue=re;ue;ue=re)re=ue.nextSibling,wr.appendChild(ue)}return Mt}for(var Ge=ct(tt.nextSibling,0),Ke;(Ke=Ge.parentNode)&&Ke.nodeType===1;)Ge=Ke;te.push(Ge)}for(var Fe=0;Fe<te.length;++Fe)Te(te[Fe]);v===(v|0)&&te[0].setAttribute("value",v);var ze=Z.createElement("ol");ze.className="linenums";for(var pt=Math.max(0,v-1|0)||0,Fe=0,$e=te.length;Fe<$e;++Fe)N=te[Fe],N.className="L"+(Fe+pt)%10,N.firstChild||N.appendChild(Z.createTextNode("\xA0")),ze.appendChild(N);z.appendChild(ze)}function ur(z){var v=/\bMSIE\s(\d+)/.exec(navigator.userAgent);v=v&&+v[1]<=8;var h=/\n/g,D=z.sourceCode,fe=D.length,Z=0,N=z.spans,te=N.length,Te=0,Ie=z.decorations,Fe=Ie.length,ze=0;Ie[Fe]=fe;var pt,$e;for($e=pt=0;$e<Fe;)Ie[$e]!==Ie[$e+2]?(Ie[pt++]=Ie[$e++],Ie[pt++]=Ie[$e++]):$e+=2;for(Fe=pt,$e=pt=0;$e<Fe;){for(var tt=Ie[$e],ct=Ie[$e+1],Ge=$e+2;Ge+2<=Fe&&Ie[Ge+1]===ct;)Ge+=2;Ie[pt++]=tt,Ie[pt++]=ct,$e=Ge}Fe=Ie.length=pt;var Ke=z.sourceNode,Bt="";Ke&&(Bt=Ke.style.display,Ke.style.display="none");try{for(var Vt=null;Te<te;){var Mt=N[Te],mr=N[Te+2]||fe,wr=Ie[ze+2]||fe,Ge=Math.min(mr,wr),re=N[Te+1],ue;if(re.nodeType!==1&&(ue=D.substring(Z,Ge))){v&&(ue=ue.replace(h,"\r")),re.nodeValue=ue;var rr=re.ownerDocument,Qe=rr.createElement("span");Qe.className=Ie[ze+1];var ot=re.parentNode;ot.replaceChild(Qe,re),Qe.appendChild(re),Z<mr&&(N[Te+1]=re=rr.createTextNode(D.substring(Ge,mr)),ot.insertBefore(re,Qe.nextSibling))}Z=Ge,Z>=mr&&(Te+=2),Z>=wr&&(ze+=2)}}finally{Ke&&(Ke.style.display=Bt)}}var Jt={};function We(z,v){for(var h=v.length;--h>=0;){var D=v[h];Jt.hasOwnProperty(D)?Y.console&&console.warn("cannot override language handler %s",D):Jt[D]=z}}function Cr(z,v){return z&&Jt.hasOwnProperty(z)||(z=/^\s*</.test(v)?"default-markup":"default-code"),Jt[z]}We(nt,["default-code"]),We(Je([],[[Ce,/^[^<?]+/],[ae,/^<!\w[^>]*(?:>|$)/],[G,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[be,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),We(Je([[Ce,/^[\s]+/,null,` \r
|
|
|
`],[Ee,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Re,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[T,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[be,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),We(Je([],[[Ee,/^[\s\S]+/]]),["uq.val"]),We(at({keywords:o,hashComments:!0,cStyleComments:!0,types:V}),["c","cc","cpp","cxx","cyc","m"]),We(at({keywords:"null,true,false"}),["json"]),We(at({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:V}),["cs"]),We(at({keywords:L,cStyleComments:!0}),["java"]),We(at({keywords:F,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),We(at({keywords:S,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),We(at({keywords:m,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),We(at({keywords:$,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),We(at({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),We(at({keywords:a,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),We(Je([],[[ee,/^[\s\S]+/]]),["regex"]);function Er(z){var v=z.langExtension;try{var h=_(z.sourceNode,z.pre),D=h.sourceCode;z.sourceCode=D,z.spans=h.spans,z.basePos=0,Cr(v,D)(z),ur(z)}catch(fe){Y.console&&console.log(fe&&fe.stack||fe)}}function Kr(z,v,h){var D=h||!1,fe=v||null,Z=document.createElement("div");Z.innerHTML="<pre>"+z+"</pre>",Z=Z.firstChild,D&&Lt(Z,D,!0);var N={langExtension:fe,numberLines:D,sourceNode:Z,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Er(N),Z.innerHTML}function _r(z,v){var h=v||document.body,D=h.ownerDocument||document;function fe(Mt){return h.getElementsByTagName(Mt)}for(var Z=[fe("pre"),fe("code"),fe("xmp")],N=[],te=0;te<Z.length;++te)for(var Te=0,Ie=Z[te].length;Te<Ie;++Te)N.push(Z[te][Te]);Z=null;var Fe=Date;Fe.now||(Fe={now:function(){return+new Date}});var ze=0,pt=/\blang(?:uage)?-([\w.]+)(?!\S)/,$e=/\bprettyprint\b/,tt=/\bprettyprinted\b/,ct=/pre|xmp/i,Ge=/^code$/i,Ke=/^(?:pre|code|xmp)$/i,Bt={};function Vt(){for(var Mt=Y.PR_SHOULD_USE_CONTINUATION?Fe.now()+250:1/0;ze<N.length&&Fe.now()<Mt;ze++){for(var mr=N[ze],wr=Bt,re=mr;re=re.previousSibling;){var ue=re.nodeType,rr=(ue===7||ue===8)&&re.nodeValue;if(rr?!/^\??prettify\b/.test(rr):ue!==3||/\S/.test(re.nodeValue))break;if(rr){wr={},rr.replace(/\b(\w+)=([\w:.%+-]+)/g,function(kt,kn,Xn){wr[kn]=Xn});break}}var Qe=mr.className;if((wr!==Bt||$e.test(Qe))&&!tt.test(Qe)){for(var ot=!1,Yr=mr.parentNode;Yr;Yr=Yr.parentNode){var It=Yr.tagName;if(Ke.test(It)&&Yr.className&&$e.test(Yr.className)){ot=!0;break}}if(!ot){mr.className+=" prettyprinted";var zt=wr.lang;if(!zt){zt=Qe.match(pt);var qt;!zt&&(qt=pe(mr))&&Ge.test(qt.tagName)&&(zt=qt.className.match(pt)),zt&&(zt=zt[1])}var qe;if(ct.test(mr.tagName))qe=1;else{var At=mr.currentStyle,dt=D.defaultView,Gt=At?At.whiteSpace:dt&&dt.getComputedStyle?dt.getComputedStyle(mr,null).getPropertyValue("white-space"):0;qe=Gt&&Gt.substring(0,3)==="pre"}var Pe=wr.linenums;(Pe=Pe==="true"||+Pe)||(Pe=Qe.match(/\blinenums\b(?::(\d+))?/),Pe=Pe?Pe[1]&&Pe[1].length?+Pe[1]:!0:!1),Pe&&Lt(mr,Pe,qe);var an={langExtension:zt,sourceNode:mr,numberLines:Pe,pre:qe,sourceCode:null,basePos:null,spans:null,decorations:null};Er(an)}}}ze<N.length?Y.setTimeout(Vt,250):typeof z=="function"&&z()}Vt()}var Se=Y.PR={createSimpleLexer:Je,registerLangHandler:We,sourceDecorator:at,PR_ATTRIB_NAME:T,PR_ATTRIB_VALUE:Ee,PR_COMMENT:G,PR_DECLARATION:ae,PR_KEYWORD:B,PR_LITERAL:J,PR_NOCODE:oe,PR_PLAIN:Ce,PR_PUNCTUATION:be,PR_SOURCE:me,PR_STRING:ee,PR_TAG:Re,PR_TYPE:le,prettyPrintOne:we?Y.prettyPrintOne=Kr:Me=Kr,prettyPrint:ie=we?Y.prettyPrint=_r:ie=_r},Nt=Y.define;typeof Nt=="function"&&Nt.amd&&Nt("google-code-prettify",[],function(){return Se})})()},25769:function(bn,Zt,g){"use strict";var we=g(98040),De={"text/plain":"Text","text/html":"Url",default:"Text"},se="Copy to clipboard: #{key}, Enter";function Me(Y){var O=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return Y.replace(/#{\s*key\s*}/g,O)}function ie(Y,O){var I,n,o,L,p,a,A=!1;O||(O={}),I=O.debug||!1;try{o=we(),L=document.createRange(),p=document.getSelection(),a=document.createElement("span"),a.textContent=Y,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(S){if(S.stopPropagation(),O.format)if(S.preventDefault(),typeof S.clipboardData=="undefined"){I&&console.warn("unable to use e.clipboardData"),I&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var $=De[O.format]||De.default;window.clipboardData.setData($,Y)}else S.clipboardData.clearData(),S.clipboardData.setData(O.format,Y);O.onCopy&&(S.preventDefault(),O.onCopy(S.clipboardData))}),document.body.appendChild(a),L.selectNodeContents(a),p.addRange(L);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");A=!0}catch(S){I&&console.error("unable to copy using execCommand: ",S),I&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(O.format||"text",Y),O.onCopy&&O.onCopy(window.clipboardData),A=!0}catch($){I&&console.error("unable to copy using clipboardData: ",$),I&&console.error("falling back to prompt"),n=Me("message"in O?O.message:se),window.prompt(n,Y)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(L):p.removeAllRanges()),a&&document.body.removeChild(a),o()}return A}bn.exports=ie},64270:function(bn){(function(Zt,g){bn.exports=g()})(this,function(){"use strict";var Zt=function(R,E){return Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var Ne in k)Object.prototype.hasOwnProperty.call(k,Ne)&&(U[Ne]=k[Ne])},Zt(R,E)};function g(R,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");Zt(R,E);function U(){this.constructor=R}R.prototype=E===null?Object.create(E):(U.prototype=E.prototype,new U)}var we=function(){return we=Object.assign||function(E){for(var U,k=1,Ne=arguments.length;k<Ne;k++){U=arguments[k];for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&(E[it]=U[it])}return E},we.apply(this,arguments)};function De(R,E,U,k){function Ne(it){return it instanceof U?it:new U(function(Dt){Dt(it)})}return new(U||(U=Promise))(function(it,Dt){function or(qr){try{Qr(k.next(qr))}catch(mn){Dt(mn)}}function ar(qr){try{Qr(k.throw(qr))}catch(mn){Dt(mn)}}function Qr(qr){qr.done?it(qr.value):Ne(qr.value).then(or,ar)}Qr((k=k.apply(R,E||[])).next())})}function se(R,E){var U={label:0,sent:function(){if(it[0]&1)throw it[1];return it[1]},trys:[],ops:[]},k,Ne,it,Dt;return Dt={next:or(0),throw:or(1),return:or(2)},typeof Symbol=="function"&&(Dt[Symbol.iterator]=function(){return this}),Dt;function or(Qr){return function(qr){return ar([Qr,qr])}}function ar(Qr){if(k)throw new TypeError("Generator is already executing.");for(;U;)try{if(k=1,Ne&&(it=Qr[0]&2?Ne.return:Qr[0]?Ne.throw||((it=Ne.return)&&it.call(Ne),0):Ne.next)&&!(it=it.call(Ne,Qr[1])).done)return it;switch(Ne=0,it&&(Qr=[Qr[0]&2,it.value]),Qr[0]){case 0:case 1:it=Qr;break;case 4:return U.label++,{value:Qr[1],done:!1};case 5:U.label++,Ne=Qr[1],Qr=[0];continue;case 7:Qr=U.ops.pop(),U.trys.pop();continue;default:if(it=U.trys,!(it=it.length>0&&it[it.length-1])&&(Qr[0]===6||Qr[0]===2)){U=0;continue}if(Qr[0]===3&&(!it||Qr[1]>it[0]&&Qr[1]<it[3])){U.label=Qr[1];break}if(Qr[0]===6&&U.label<it[1]){U.label=it[1],it=Qr;break}if(it&&U.label<it[2]){U.label=it[2],U.ops.push(Qr);break}it[2]&&U.ops.pop(),U.trys.pop();continue}Qr=E.call(R,U)}catch(qr){Qr=[6,qr],Ne=0}finally{k=it=0}if(Qr[0]&5)throw Qr[1];return{value:Qr[0]?Qr[1]:void 0,done:!0}}}function Me(R,E,U){if(U||arguments.length===2)for(var k=0,Ne=E.length,it;k<Ne;k++)(it||!(k in E))&&(it||(it=Array.prototype.slice.call(E,0,k)),it[k]=E[k]);return R.concat(it||E)}for(var ie=function(){function R(E,U,k,Ne){this.left=E,this.top=U,this.width=k,this.height=Ne}return R.prototype.add=function(E,U,k,Ne){return new R(this.left+E,this.top+U,this.width+k,this.height+Ne)},R.fromClientRect=function(E,U){return new R(U.left+E.windowBounds.left,U.top+E.windowBounds.top,U.width,U.height)},R.fromDOMRectList=function(E,U){var k=Array.from(U).find(function(Ne){return Ne.width!==0});return k?new R(k.left+E.windowBounds.left,k.top+E.windowBounds.top,k.width,k.height):R.EMPTY},R.EMPTY=new R(0,0,0,0),R}(),Y=function(R,E){return ie.fromClientRect(R,E.getBoundingClientRect())},O=function(R){var E=R.body,U=R.documentElement;if(!E||!U)throw new Error("Unable to get document size");var k=Math.max(Math.max(E.scrollWidth,U.scrollWidth),Math.max(E.offsetWidth,U.offsetWidth),Math.max(E.clientWidth,U.clientWidth)),Ne=Math.max(Math.max(E.scrollHeight,U.scrollHeight),Math.max(E.offsetHeight,U.offsetHeight),Math.max(E.clientHeight,U.clientHeight));return new ie(0,0,k,Ne)},I=function(R){for(var E=[],U=0,k=R.length;U<k;){var Ne=R.charCodeAt(U++);if(Ne>=55296&&Ne<=56319&&U<k){var it=R.charCodeAt(U++);(it&64512)===56320?E.push(((Ne&1023)<<10)+(it&1023)+65536):(E.push(Ne),U--)}else E.push(Ne)}return E},n=function(){for(var R=[],E=0;E<arguments.length;E++)R[E]=arguments[E];if(String.fromCodePoint)return String.fromCodePoint.apply(String,R);var U=R.length;if(!U)return"";for(var k=[],Ne=-1,it="";++Ne<U;){var Dt=R[Ne];Dt<=65535?k.push(Dt):(Dt-=65536,k.push((Dt>>10)+55296,Dt%1024+56320)),(Ne+1===U||k.length>16384)&&(it+=String.fromCharCode.apply(String,k),k.length=0)}return it},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),p=0;p<o.length;p++)L[o.charCodeAt(p)]=p;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),m=0;m<a.length;m++)A[a.charCodeAt(m)]=m;for(var S=function(R){var E=R.length*.75,U=R.length,k,Ne=0,it,Dt,or,ar;R[R.length-1]==="="&&(E--,R[R.length-2]==="="&&E--);var Qr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(E):new Array(E),qr=Array.isArray(Qr)?Qr:new Uint8Array(Qr);for(k=0;k<U;k+=4)it=A[R.charCodeAt(k)],Dt=A[R.charCodeAt(k+1)],or=A[R.charCodeAt(k+2)],ar=A[R.charCodeAt(k+3)],qr[Ne++]=it<<2|Dt>>4,qr[Ne++]=(Dt&15)<<4|or>>2,qr[Ne++]=(or&3)<<6|ar&63;return Qr},$=function(R){for(var E=R.length,U=[],k=0;k<E;k+=2)U.push(R[k+1]<<8|R[k]);return U},F=function(R){for(var E=R.length,U=[],k=0;k<E;k+=4)U.push(R[k+3]<<24|R[k+2]<<16|R[k+1]<<8|R[k]);return U},H=5,V=11,ee=2,B=V-H,G=65536>>H,le=1<<H,J=le-1,be=1024>>H,Ce=G+be,Re=Ce,ae=32,me=Re+ae,T=65536>>V,Ee=1<<B,oe=Ee-1,he=function(R,E,U){return R.slice?R.slice(E,U):new Uint16Array(Array.prototype.slice.call(R,E,U))},ve=function(R,E,U){return R.slice?R.slice(E,U):new Uint32Array(Array.prototype.slice.call(R,E,U))},_=function(R,E){var U=S(R),k=Array.isArray(U)?F(U):new Uint32Array(U),Ne=Array.isArray(U)?$(U):new Uint16Array(U),it=24,Dt=he(Ne,it/2,k[4]/2),or=k[5]===2?he(Ne,(it+k[4])/2):ve(k,Math.ceil((it+k[4])/4));return new P(k[0],k[1],k[2],k[3],Dt,or)},P=function(){function R(E,U,k,Ne,it,Dt){this.initialValue=E,this.errorValue=U,this.highStart=k,this.highValueIndex=Ne,this.index=it,this.data=Dt}return R.prototype.get=function(E){var U;if(E>=0){if(E<55296||E>56319&&E<=65535)return U=this.index[E>>H],U=(U<<ee)+(E&J),this.data[U];if(E<=65535)return U=this.index[G+(E-55296>>H)],U=(U<<ee)+(E&J),this.data[U];if(E<this.highStart)return U=me-T+(E>>V),U=this.index[U],U+=E>>H&oe,U=this.index[U],U=(U<<ee)+(E&J),this.data[U];if(E<=1114111)return this.data[this.highValueIndex]}return this.errorValue},R}(),X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Je=0;Je<X.length;Je++)pe[X.charCodeAt(Je)]=Je;var at="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",nt=50,Lt=1,ur=2,Jt=3,We=4,Cr=5,Er=7,Kr=8,_r=9,Se=10,Nt=11,z=12,v=13,h=14,D=15,fe=16,Z=17,N=18,te=19,Te=20,Ie=21,Fe=22,ze=23,pt=24,$e=25,tt=26,ct=27,Ge=28,Ke=29,Bt=30,Vt=31,Mt=32,mr=33,wr=34,re=35,ue=36,rr=37,Qe=38,ot=39,Yr=40,It=41,zt=42,qt=43,qe=[9001,65288],At="!",dt="\xD7",Gt="\xF7",Pe=_(at),an=[Bt,ue],kt=[Lt,ur,Jt,Cr],kn=[Se,Kr],Xn=[ct,tt],yi=kt.concat(kn),ji=[Qe,ot,Yr,wr,re],On=[D,v],$n=function(R,E){E===void 0&&(E="strict");var U=[],k=[],Ne=[];return R.forEach(function(it,Dt){var or=Pe.get(it);if(or>nt?(Ne.push(!0),or-=nt):Ne.push(!1),["normal","auto","loose"].indexOf(E)!==-1&&[8208,8211,12316,12448].indexOf(it)!==-1)return k.push(Dt),U.push(fe);if(or===We||or===Nt){if(Dt===0)return k.push(Dt),U.push(Bt);var ar=U[Dt-1];return yi.indexOf(ar)===-1?(k.push(k[Dt-1]),U.push(ar)):(k.push(Dt),U.push(Bt))}if(k.push(Dt),or===Vt)return U.push(E==="strict"?Ie:rr);if(or===zt||or===Ke)return U.push(Bt);if(or===qt)return it>=131072&&it<=196605||it>=196608&&it<=262141?U.push(rr):U.push(Bt);U.push(or)}),[k,U,Ne]},Yt=function(R,E,U,k){var Ne=k[U];if(Array.isArray(R)?R.indexOf(Ne)!==-1:R===Ne)for(var it=U;it<=k.length;){it++;var Dt=k[it];if(Dt===E)return!0;if(Dt!==Se)break}if(Ne===Se)for(var it=U;it>0;){it--;var or=k[it];if(Array.isArray(R)?R.indexOf(or)!==-1:R===or)for(var ar=U;ar<=k.length;){ar++;var Dt=k[ar];if(Dt===E)return!0;if(Dt!==Se)break}if(or!==Se)break}return!1},jr=function(R,E){for(var U=R;U>=0;){var k=E[U];if(k===Se)U--;else return k}return 0},Jr=function(R,E,U,k,Ne){if(U[k]===0)return dt;var it=k-1;if(Array.isArray(Ne)&&Ne[it]===!0)return dt;var Dt=it-1,or=it+1,ar=E[it],Qr=Dt>=0?E[Dt]:0,qr=E[or];if(ar===ur&&qr===Jt)return dt;if(kt.indexOf(ar)!==-1)return At;if(kt.indexOf(qr)!==-1||kn.indexOf(qr)!==-1)return dt;if(jr(it,E)===Kr)return Gt;if(Pe.get(R[it])===Nt||(ar===Mt||ar===mr)&&Pe.get(R[or])===Nt||ar===Er||qr===Er||ar===_r||[Se,v,D].indexOf(ar)===-1&&qr===_r||[Z,N,te,pt,Ge].indexOf(qr)!==-1||jr(it,E)===Fe||Yt(ze,Fe,it,E)||Yt([Z,N],Ie,it,E)||Yt(z,z,it,E))return dt;if(ar===Se)return Gt;if(ar===ze||qr===ze)return dt;if(qr===fe||ar===fe)return Gt;if([v,D,Ie].indexOf(qr)!==-1||ar===h||Qr===ue&&On.indexOf(ar)!==-1||ar===Ge&&qr===ue||qr===Te||an.indexOf(qr)!==-1&&ar===$e||an.indexOf(ar)!==-1&&qr===$e||ar===ct&&[rr,Mt,mr].indexOf(qr)!==-1||[rr,Mt,mr].indexOf(ar)!==-1&&qr===tt||an.indexOf(ar)!==-1&&Xn.indexOf(qr)!==-1||Xn.indexOf(ar)!==-1&&an.indexOf(qr)!==-1||[ct,tt].indexOf(ar)!==-1&&(qr===$e||[Fe,D].indexOf(qr)!==-1&&E[or+1]===$e)||[Fe,D].indexOf(ar)!==-1&&qr===$e||ar===$e&&[$e,Ge,pt].indexOf(qr)!==-1)return dt;if([$e,Ge,pt,Z,N].indexOf(qr)!==-1)for(var mn=it;mn>=0;){var f=E[mn];if(f===$e)return dt;if([Ge,pt].indexOf(f)!==-1)mn--;else break}if([ct,tt].indexOf(qr)!==-1)for(var mn=[Z,N].indexOf(ar)!==-1?Dt:it;mn>=0;){var f=E[mn];if(f===$e)return dt;if([Ge,pt].indexOf(f)!==-1)mn--;else break}if(Qe===ar&&[Qe,ot,wr,re].indexOf(qr)!==-1||[ot,wr].indexOf(ar)!==-1&&[ot,Yr].indexOf(qr)!==-1||[Yr,re].indexOf(ar)!==-1&&qr===Yr||ji.indexOf(ar)!==-1&&[Te,tt].indexOf(qr)!==-1||ji.indexOf(qr)!==-1&&ar===ct||an.indexOf(ar)!==-1&&an.indexOf(qr)!==-1||ar===pt&&an.indexOf(qr)!==-1||an.concat($e).indexOf(ar)!==-1&&qr===Fe&&qe.indexOf(R[or])===-1||an.concat($e).indexOf(qr)!==-1&&ar===N)return dt;if(ar===It&&qr===It){for(var Q=U[it],ce=1;Q>0&&(Q--,E[Q]===It);)ce++;if(ce%2!==0)return dt}return ar===Mt&&qr===mr?dt:Gt},Ot=function(R,E){E||(E={lineBreak:"normal",wordBreak:"normal"});var U=$n(R,E.lineBreak),k=U[0],Ne=U[1],it=U[2];(E.wordBreak==="break-all"||E.wordBreak==="break-word")&&(Ne=Ne.map(function(or){return[$e,Bt,zt].indexOf(or)!==-1?rr:or}));var Dt=E.wordBreak==="keep-all"?it.map(function(or,ar){return or&&R[ar]>=19968&&R[ar]<=40959}):void 0;return[k,Ne,Dt]},_t=function(){function R(E,U,k,Ne){this.codePoints=E,this.required=U===At,this.start=k,this.end=Ne}return R.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},R}(),Br=function(R,E){var U=I(R),k=Ot(U,E),Ne=k[0],it=k[1],Dt=k[2],or=U.length,ar=0,Qr=0;return{next:function(){if(Qr>=or)return{done:!0,value:null};for(var qr=dt;Qr<or&&(qr=Jr(U,it,Ne,++Qr,Dt))===dt;);if(qr!==dt||Qr===or){var mn=new _t(U,qr,ar,Qr);return ar=Qr,{value:mn,done:!1}}return{done:!0,value:null}}}},Lr=1,In=2,tn=4,Bn=8,gn=10,Qn=47,ei=92,Hr=9,zr=32,Tn=34,Sn=61,jn=35,Vn=36,Mi=37,Ai=39,wn=40,hr=41,br=95,Fr=45,Zr=33,Ur=60,on=62,en=64,Hn=91,ti=93,ui=61,Ri=123,Ui=63,Pi=125,Tr=124,_n=126,hn=128,hi=65533,ii=42,ri=43,bi=44,Di=58,Bi=59,zi=46,ca=0,xi=8,vn=11,jt=14,Ln=31,Gn=127,Ei=-1,Qi=48,da=97,xa=101,Ji=102,Sa=117,_i=122,ai=65,$i=69,ra=70,Ea=85,xs=90,oi=function(R){return R>=Qi&&R<=57},Ca=function(R){return R>=55296&&R<=57343},ga=function(R){return oi(R)||R>=ai&&R<=ra||R>=da&&R<=Ji},Qa=function(R){return R>=da&&R<=_i},_s=function(R){return R>=ai&&R<=xs},is=function(R){return Qa(R)||_s(R)},Da=function(R){return R>=hn},Ni=function(R){return R===gn||R===Hr||R===zr},la=function(R){return is(R)||Da(R)||R===br},ps=function(R){return la(R)||oi(R)||R===Fr},as=function(R){return R>=ca&&R<=xi||R===vn||R>=jt&&R<=Ln||R===Gn},ts=function(R,E){return R!==ei?!1:E!==gn},Wi=function(R,E,U){return R===Fr?la(E)||ts(E,U):la(R)?!0:!!(R===ei&&ts(R,E))},ms=function(R,E,U){return R===ri||R===Fr?oi(E)?!0:E===zi&&oi(U):oi(R===zi?E:R)},aa=function(R){var E=0,U=1;(R[E]===ri||R[E]===Fr)&&(R[E]===Fr&&(U=-1),E++);for(var k=[];oi(R[E]);)k.push(R[E++]);var Ne=k.length?parseInt(n.apply(void 0,k),10):0;R[E]===zi&&E++;for(var it=[];oi(R[E]);)it.push(R[E++]);var Dt=it.length,or=Dt?parseInt(n.apply(void 0,it),10):0;(R[E]===$i||R[E]===xa)&&E++;var ar=1;(R[E]===ri||R[E]===Fr)&&(R[E]===Fr&&(ar=-1),E++);for(var Qr=[];oi(R[E]);)Qr.push(R[E++]);var qr=Qr.length?parseInt(n.apply(void 0,Qr),10):0;return U*(Ne+or*Math.pow(10,-Dt))*Math.pow(10,ar*qr)},co={type:2},Qs={type:3},_o={type:4},fs={type:13},Bo={type:8},ss={type:21},Yn={type:9},La={type:10},io={type:11},Zi={type:12},ta={type:14},Hi={type:23},ki={type:1},ya={type:25},Na={type:24},Rs={type:26},cs={type:27},Es={type:28},rs={type:29},So={type:31},go={type:32},eo=function(){function R(){this._value=[]}return R.prototype.write=function(E){this._value=this._value.concat(I(E))},R.prototype.read=function(){for(var E=[],U=this.consumeToken();U!==go;)E.push(U),U=this.consumeToken();return E},R.prototype.consumeToken=function(){var E=this.consumeCodePoint();switch(E){case Tn:return this.consumeStringToken(Tn);case jn:var U=this.peekCodePoint(0),k=this.peekCodePoint(1),Ne=this.peekCodePoint(2);if(ps(U)||ts(k,Ne)){var it=Wi(U,k,Ne)?In:Lr,Dt=this.consumeName();return{type:5,value:Dt,flags:it}}break;case Vn:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),fs;break;case Ai:return this.consumeStringToken(Ai);case wn:return co;case hr:return Qs;case ii:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),ta;break;case ri:if(ms(E,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(E),this.consumeNumericToken();break;case bi:return _o;case Fr:var or=E,ar=this.peekCodePoint(0),Qr=this.peekCodePoint(1);if(ms(or,ar,Qr))return this.reconsumeCodePoint(E),this.consumeNumericToken();if(Wi(or,ar,Qr))return this.reconsumeCodePoint(E),this.consumeIdentLikeToken();if(ar===Fr&&Qr===on)return this.consumeCodePoint(),this.consumeCodePoint(),Na;break;case zi:if(ms(E,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(E),this.consumeNumericToken();break;case Qn:if(this.peekCodePoint(0)===ii)for(this.consumeCodePoint();;){var qr=this.consumeCodePoint();if(qr===ii&&(qr=this.consumeCodePoint(),qr===Qn))return this.consumeToken();if(qr===Ei)return this.consumeToken()}break;case Di:return Rs;case Bi:return cs;case Ur:if(this.peekCodePoint(0)===Zr&&this.peekCodePoint(1)===Fr&&this.peekCodePoint(2)===Fr)return this.consumeCodePoint(),this.consumeCodePoint(),ya;break;case en:var mn=this.peekCodePoint(0),f=this.peekCodePoint(1),Q=this.peekCodePoint(2);if(Wi(mn,f,Q)){var Dt=this.consumeName();return{type:7,value:Dt}}break;case Hn:return Es;case ei:if(ts(E,this.peekCodePoint(0)))return this.reconsumeCodePoint(E),this.consumeIdentLikeToken();break;case ti:return rs;case ui:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),Bo;break;case Ri:return io;case Pi:return Zi;case Sa:case Ea:var ce=this.peekCodePoint(0),Ue=this.peekCodePoint(1);return ce===ri&&(ga(Ue)||Ue===Ui)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(E),this.consumeIdentLikeToken();case Tr:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),Yn;if(this.peekCodePoint(0)===Tr)return this.consumeCodePoint(),ss;break;case _n:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),La;break;case Ei:return go}return Ni(E)?(this.consumeWhiteSpace(),So):oi(E)?(this.reconsumeCodePoint(E),this.consumeNumericToken()):la(E)?(this.reconsumeCodePoint(E),this.consumeIdentLikeToken()):{type:6,value:n(E)}},R.prototype.consumeCodePoint=function(){var E=this._value.shift();return typeof E=="undefined"?-1:E},R.prototype.reconsumeCodePoint=function(E){this._value.unshift(E)},R.prototype.peekCodePoint=function(E){return E>=this._value.length?-1:this._value[E]},R.prototype.consumeUnicodeRangeToken=function(){for(var E=[],U=this.consumeCodePoint();ga(U)&&E.length<6;)E.push(U),U=this.consumeCodePoint();for(var k=!1;U===Ui&&E.length<6;)E.push(U),U=this.consumeCodePoint(),k=!0;if(k){var Ne=parseInt(n.apply(void 0,E.map(function(ar){return ar===Ui?Qi:ar})),16),it=parseInt(n.apply(void 0,E.map(function(ar){return ar===Ui?ra:ar})),16);return{type:30,start:Ne,end:it}}var Dt=parseInt(n.apply(void 0,E),16);if(this.peekCodePoint(0)===Fr&&ga(this.peekCodePoint(1))){this.consumeCodePoint(),U=this.consumeCodePoint();for(var or=[];ga(U)&&or.length<6;)or.push(U),U=this.consumeCodePoint();var it=parseInt(n.apply(void 0,or),16);return{type:30,start:Dt,end:it}}else return{type:30,start:Dt,end:Dt}},R.prototype.consumeIdentLikeToken=function(){var E=this.consumeName();return E.toLowerCase()==="url"&&this.peekCodePoint(0)===wn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wn?(this.consumeCodePoint(),{type:19,value:E}):{type:20,value:E}},R.prototype.consumeUrlToken=function(){var E=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ei)return{type:22,value:""};var U=this.peekCodePoint(0);if(U===Ai||U===Tn){var k=this.consumeStringToken(this.consumeCodePoint());return k.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ei||this.peekCodePoint(0)===hr)?(this.consumeCodePoint(),{type:22,value:k.value}):(this.consumeBadUrlRemnants(),Hi)}for(;;){var Ne=this.consumeCodePoint();if(Ne===Ei||Ne===hr)return{type:22,value:n.apply(void 0,E)};if(Ni(Ne))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ei||this.peekCodePoint(0)===hr?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,E)}):(this.consumeBadUrlRemnants(),Hi);if(Ne===Tn||Ne===Ai||Ne===wn||as(Ne))return this.consumeBadUrlRemnants(),Hi;if(Ne===ei)if(ts(Ne,this.peekCodePoint(0)))E.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Hi;else E.push(Ne)}},R.prototype.consumeWhiteSpace=function(){for(;Ni(this.peekCodePoint(0));)this.consumeCodePoint()},R.prototype.consumeBadUrlRemnants=function(){for(;;){var E=this.consumeCodePoint();if(E===hr||E===Ei)return;ts(E,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},R.prototype.consumeStringSlice=function(E){for(var U=5e4,k="";E>0;){var Ne=Math.min(U,E);k+=n.apply(void 0,this._value.splice(0,Ne)),E-=Ne}return this._value.shift(),k},R.prototype.consumeStringToken=function(E){var U="",k=0;do{var Ne=this._value[k];if(Ne===Ei||Ne===void 0||Ne===E)return U+=this.consumeStringSlice(k),{type:0,value:U};if(Ne===gn)return this._value.splice(0,k),ki;if(Ne===ei){var it=this._value[k+1];it!==Ei&&it!==void 0&&(it===gn?(U+=this.consumeStringSlice(k),k=-1,this._value.shift()):ts(Ne,it)&&(U+=this.consumeStringSlice(k),U+=n(this.consumeEscapedCodePoint()),k=-1))}k++}while(!0)},R.prototype.consumeNumber=function(){var E=[],U=tn,k=this.peekCodePoint(0);for((k===ri||k===Fr)&&E.push(this.consumeCodePoint());oi(this.peekCodePoint(0));)E.push(this.consumeCodePoint());k=this.peekCodePoint(0);var Ne=this.peekCodePoint(1);if(k===zi&&oi(Ne))for(E.push(this.consumeCodePoint(),this.consumeCodePoint()),U=Bn;oi(this.peekCodePoint(0));)E.push(this.consumeCodePoint());k=this.peekCodePoint(0),Ne=this.peekCodePoint(1);var it=this.peekCodePoint(2);if((k===$i||k===xa)&&((Ne===ri||Ne===Fr)&&oi(it)||oi(Ne)))for(E.push(this.consumeCodePoint(),this.consumeCodePoint()),U=Bn;oi(this.peekCodePoint(0));)E.push(this.consumeCodePoint());return[aa(E),U]},R.prototype.consumeNumericToken=function(){var E=this.consumeNumber(),U=E[0],k=E[1],Ne=this.peekCodePoint(0),it=this.peekCodePoint(1),Dt=this.peekCodePoint(2);if(Wi(Ne,it,Dt)){var or=this.consumeName();return{type:15,number:U,flags:k,unit:or}}return Ne===Mi?(this.consumeCodePoint(),{type:16,number:U,flags:k}):{type:17,number:U,flags:k}},R.prototype.consumeEscapedCodePoint=function(){var E=this.consumeCodePoint();if(ga(E)){for(var U=n(E);ga(this.peekCodePoint(0))&&U.length<6;)U+=n(this.consumeCodePoint());Ni(this.peekCodePoint(0))&&this.consumeCodePoint();var k=parseInt(U,16);return k===0||Ca(k)||k>1114111?hi:k}return E===Ei?hi:E},R.prototype.consumeName=function(){for(var E="";;){var U=this.consumeCodePoint();if(ps(U))E+=n(U);else if(ts(U,this.peekCodePoint(0)))E+=n(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(U),E}},R}(),zs=function(){function R(E){this._tokens=E}return R.create=function(E){var U=new eo;return U.write(E),new R(U.read())},R.parseValue=function(E){return R.create(E).parseComponentValue()},R.parseValues=function(E){return R.create(E).parseComponentValues()},R.prototype.parseComponentValue=function(){for(var E=this.consumeToken();E.type===31;)E=this.consumeToken();if(E.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(E);var U=this.consumeComponentValue();do E=this.consumeToken();while(E.type===31);if(E.type===32)return U;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},R.prototype.parseComponentValues=function(){for(var E=[];;){var U=this.consumeComponentValue();if(U.type===32)return E;E.push(U),E.push()}},R.prototype.consumeComponentValue=function(){var E=this.consumeToken();switch(E.type){case 11:case 28:case 2:return this.consumeSimpleBlock(E.type);case 19:return this.consumeFunction(E)}return E},R.prototype.consumeSimpleBlock=function(E){for(var U={type:E,values:[]},k=this.consumeToken();;){if(k.type===32||vo(k,E))return U;this.reconsumeToken(k),U.values.push(this.consumeComponentValue()),k=this.consumeToken()}},R.prototype.consumeFunction=function(E){for(var U={name:E.value,values:[],type:18};;){var k=this.consumeToken();if(k.type===32||k.type===3)return U;this.reconsumeToken(k),U.values.push(this.consumeComponentValue())}},R.prototype.consumeToken=function(){var E=this._tokens.shift();return typeof E=="undefined"?go:E},R.prototype.reconsumeToken=function(E){this._tokens.unshift(E)},R}(),Os=function(R){return R.type===15},Li=function(R){return R.type===17},pi=function(R){return R.type===20},ua=function(R){return R.type===0},gs=function(R,E){return pi(R)&&R.value===E},Oa=function(R){return R.type!==31},Ns=function(R){return R.type!==31&&R.type!==4},Vs=function(R){var E=[],U=[];return R.forEach(function(k){if(k.type===4){if(U.length===0)throw new Error("Error parsing function args, zero tokens for arg");E.push(U),U=[];return}k.type!==31&&U.push(k)}),U.length&&E.push(U),E},vo=function(R,E){return E===11&&R.type===12||E===28&&R.type===29?!0:E===2&&R.type===3},Ps=function(R){return R.type===17||R.type===15},Ti=function(R){return R.type===16||Ps(R)},Dl=function(R){return R.length>1?[R[0],R[1]]:[R[0]]},Js={type:17,number:0,flags:tn},nl={type:16,number:50,flags:tn},Qo={type:16,number:100,flags:tn},Ao=function(R,E,U){var k=R[0],Ne=R[1];return[_a(k,E),_a(typeof Ne!="undefined"?Ne:k,U)]},_a=function(R,E){if(R.type===16)return R.number/100*E;if(Os(R))switch(R.unit){case"rem":case"em":return 16*R.number;case"px":default:return R.number}return R.number},vl="deg",yl="grad",fo="rad",yo="turn",ka={name:"angle",parse:function(R,E){if(E.type===15)switch(E.unit){case vl:return Math.PI*E.number/180;case yl:return Math.PI/200*E.number;case fo:return E.number;case yo:return Math.PI*2*E.number}throw new Error("Unsupported angle type")}},pa=function(R){return R.type===15&&(R.unit===vl||R.unit===yl||R.unit===fo||R.unit===yo)},to=function(R){var E=R.filter(pi).map(function(U){return U.value}).join(" ");switch(E){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Js,Js];case"to top":case"bottom":return Ya(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Js,Qo];case"to right":case"left":return Ya(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Qo,Qo];case"to bottom":case"top":return Ya(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Qo,Js];case"to left":case"right":return Ya(270)}return 0},Ya=function(R){return Math.PI*R/180},ns={name:"color",parse:function(R,E){if(E.type===18){var U=bl[E.name];if(typeof U=="undefined")throw new Error('Attempting to parse an unsupported color function "'+E.name+'"');return U(R,E.values)}if(E.type===5){if(E.value.length===3){var k=E.value.substring(0,1),Ne=E.value.substring(1,2),it=E.value.substring(2,3);return Ys(parseInt(k+k,16),parseInt(Ne+Ne,16),parseInt(it+it,16),1)}if(E.value.length===4){var k=E.value.substring(0,1),Ne=E.value.substring(1,2),it=E.value.substring(2,3),Dt=E.value.substring(3,4);return Ys(parseInt(k+k,16),parseInt(Ne+Ne,16),parseInt(it+it,16),parseInt(Dt+Dt,16)/255)}if(E.value.length===6){var k=E.value.substring(0,2),Ne=E.value.substring(2,4),it=E.value.substring(4,6);return Ys(parseInt(k,16),parseInt(Ne,16),parseInt(it,16),1)}if(E.value.length===8){var k=E.value.substring(0,2),Ne=E.value.substring(2,4),it=E.value.substring(4,6),Dt=E.value.substring(6,8);return Ys(parseInt(k,16),parseInt(Ne,16),parseInt(it,16),parseInt(Dt,16)/255)}}if(E.type===20){var or=bo[E.value.toUpperCase()];if(typeof or!="undefined")return or}return bo.TRANSPARENT}},js=function(R){return(255&R)===0},wa=function(R){var E=255&R,U=255&R>>8,k=255&R>>16,Ne=255&R>>24;return E<255?"rgba("+Ne+","+k+","+U+","+E/255+")":"rgb("+Ne+","+k+","+U+")"},Ys=function(R,E,U,k){return(R<<24|E<<16|U<<8|Math.round(k*255)<<0)>>>0},ao=function(R,E){if(R.type===17)return R.number;if(R.type===16){var U=E===3?1:255;return E===3?R.number/100*U:Math.round(R.number/100*U)}return 0},Po=function(R,E){var U=E.filter(Ns);if(U.length===3){var k=U.map(ao),Ne=k[0],it=k[1],Dt=k[2];return Ys(Ne,it,Dt,1)}if(U.length===4){var or=U.map(ao),Ne=or[0],it=or[1],Dt=or[2],ar=or[3];return Ys(Ne,it,Dt,ar)}return 0};function Do(R,E,U){return U<0&&(U+=1),U>=1&&(U-=1),U<1/6?(E-R)*U*6+R:U<1/2?E:U<2/3?(E-R)*6*(2/3-U)+R:R}var Xa=function(R,E){var U=E.filter(Ns),k=U[0],Ne=U[1],it=U[2],Dt=U[3],or=(k.type===17?Ya(k.number):ka.parse(R,k))/(Math.PI*2),ar=Ti(Ne)?Ne.number/100:0,Qr=Ti(it)?it.number/100:0,qr=typeof Dt!="undefined"&&Ti(Dt)?_a(Dt,1):1;if(ar===0)return Ys(Qr*255,Qr*255,Qr*255,1);var mn=Qr<=.5?Qr*(ar+1):Qr+ar-Qr*ar,f=Qr*2-mn,Q=Do(f,mn,or+1/3),ce=Do(f,mn,or),Ue=Do(f,mn,or-1/3);return Ys(Q*255,ce*255,Ue*255,qr)},bl={hsl:Xa,hsla:Xa,rgb:Po,rgba:Po},so=function(R,E){return ns.parse(R,zs.create(E).parseComponentValue())},bo={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Zl={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(R,E){return E.map(function(U){if(pi(U))switch(U.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fl=function(R,E){var U=ns.parse(R,E[0]),k=E[1];return k&&Ti(k)?{color:U,stop:k}:{color:U,stop:null}},Ll=function(R,E){var U=R[0],k=R[R.length-1];U.stop===null&&(U.stop=Js),k.stop===null&&(k.stop=Qo);for(var Ne=[],it=0,Dt=0;Dt<R.length;Dt++){var or=R[Dt].stop;if(or!==null){var ar=_a(or,E);ar>it?Ne.push(ar):Ne.push(it),it=ar}else Ne.push(null)}for(var Qr=null,Dt=0;Dt<Ne.length;Dt++){var qr=Ne[Dt];if(qr===null)Qr===null&&(Qr=Dt);else if(Qr!==null){for(var mn=Dt-Qr,f=Ne[Qr-1],Q=(qr-f)/(mn+1),ce=1;ce<=mn;ce++)Ne[Qr+ce-1]=Q*ce;Qr=null}}return R.map(function(Ue,ut){var ht=Ue.color;return{color:ht,stop:Math.max(Math.min(1,Ne[ut]/E),0)}})},xl=function(R,E,U){var k=E/2,Ne=U/2,it=_a(R[0],E)-k,Dt=Ne-_a(R[1],U);return(Math.atan2(Dt,it)+Math.PI*2)%(Math.PI*2)},jo=function(R,E,U){var k=typeof R=="number"?R:xl(R,E,U),Ne=Math.abs(E*Math.sin(k))+Math.abs(U*Math.cos(k)),it=E/2,Dt=U/2,or=Ne/2,ar=Math.sin(k-Math.PI/2)*or,Qr=Math.cos(k-Math.PI/2)*or;return[Ne,it-Qr,it+Qr,Dt-ar,Dt+ar]},Gs=function(R,E){return Math.sqrt(R*R+E*E)},Lo=function(R,E,U,k,Ne){var it=[[0,0],[0,E],[R,0],[R,E]];return it.reduce(function(Dt,or){var ar=or[0],Qr=or[1],qr=Gs(U-ar,k-Qr);return(Ne?qr<Dt.optimumDistance:qr>Dt.optimumDistance)?{optimumCorner:or,optimumDistance:qr}:Dt},{optimumDistance:Ne?1/0:-1/0,optimumCorner:null}).optimumCorner},Wa=function(R,E,U,k,Ne){var it=0,Dt=0;switch(R.size){case 0:R.shape===0?it=Dt=Math.min(Math.abs(E),Math.abs(E-k),Math.abs(U),Math.abs(U-Ne)):R.shape===1&&(it=Math.min(Math.abs(E),Math.abs(E-k)),Dt=Math.min(Math.abs(U),Math.abs(U-Ne)));break;case 2:if(R.shape===0)it=Dt=Math.min(Gs(E,U),Gs(E,U-Ne),Gs(E-k,U),Gs(E-k,U-Ne));else if(R.shape===1){var or=Math.min(Math.abs(U),Math.abs(U-Ne))/Math.min(Math.abs(E),Math.abs(E-k)),ar=Lo(k,Ne,E,U,!0),Qr=ar[0],qr=ar[1];it=Gs(Qr-E,(qr-U)/or),Dt=or*it}break;case 1:R.shape===0?it=Dt=Math.max(Math.abs(E),Math.abs(E-k),Math.abs(U),Math.abs(U-Ne)):R.shape===1&&(it=Math.max(Math.abs(E),Math.abs(E-k)),Dt=Math.max(Math.abs(U),Math.abs(U-Ne)));break;case 3:if(R.shape===0)it=Dt=Math.max(Gs(E,U),Gs(E,U-Ne),Gs(E-k,U),Gs(E-k,U-Ne));else if(R.shape===1){var or=Math.max(Math.abs(U),Math.abs(U-Ne))/Math.max(Math.abs(E),Math.abs(E-k)),mn=Lo(k,Ne,E,U,!1),Qr=mn[0],qr=mn[1];it=Gs(Qr-E,(qr-U)/or),Dt=or*it}break}return Array.isArray(R.size)&&(it=_a(R.size[0],k),Dt=R.size.length===2?_a(R.size[1],Ne):it),[it,Dt]},vs=function(R,E){var U=Ya(180),k=[];return Vs(E).forEach(function(Ne,it){if(it===0){var Dt=Ne[0];if(Dt.type===20&&Dt.value==="to"){U=to(Ne);return}else if(pa(Dt)){U=ka.parse(R,Dt);return}}var or=fl(R,Ne);k.push(or)}),{angle:U,stops:k,type:1}},Ja=function(R,E){var U=Ya(180),k=[];return Vs(E).forEach(function(Ne,it){if(it===0){var Dt=Ne[0];if(Dt.type===20&&["top","left","right","bottom"].indexOf(Dt.value)!==-1){U=to(Ne);return}else if(pa(Dt)){U=(ka.parse(R,Dt)+Ya(270))%Ya(360);return}}var or=fl(R,Ne);k.push(or)}),{angle:U,stops:k,type:1}},Cs=function(R,E){var U=Ya(180),k=[],Ne=1,it=0,Dt=3,or=[];return Vs(E).forEach(function(ar,Qr){var qr=ar[0];if(Qr===0){if(pi(qr)&&qr.value==="linear"){Ne=1;return}else if(pi(qr)&&qr.value==="radial"){Ne=2;return}}if(qr.type===18){if(qr.name==="from"){var mn=ns.parse(R,qr.values[0]);k.push({stop:Js,color:mn})}else if(qr.name==="to"){var mn=ns.parse(R,qr.values[0]);k.push({stop:Qo,color:mn})}else if(qr.name==="color-stop"){var f=qr.values.filter(Ns);if(f.length===2){var mn=ns.parse(R,f[1]),Q=f[0];Li(Q)&&k.push({stop:{type:16,number:Q.number*100,flags:Q.flags},color:mn})}}}}),Ne===1?{angle:(U+Ya(180))%Ya(360),stops:k,type:Ne}:{size:Dt,shape:it,stops:k,position:or,type:Ne}},qs="closest-side",El="farthest-side",il="closest-corner",Rl="farthest-corner",cu="circle",Ol="ellipse",Pl="cover",ci="contain",Au=function(R,E){var U=0,k=3,Ne=[],it=[];return Vs(E).forEach(function(Dt,or){var ar=!0;if(or===0){var Qr=!1;ar=Dt.reduce(function(mn,f){if(Qr)if(pi(f))switch(f.value){case"center":return it.push(nl),mn;case"top":case"left":return it.push(Js),mn;case"right":case"bottom":return it.push(Qo),mn}else(Ti(f)||Ps(f))&&it.push(f);else if(pi(f))switch(f.value){case cu:return U=0,!1;case Ol:return U=1,!1;case"at":return Qr=!0,!1;case qs:return k=0,!1;case Pl:case El:return k=1,!1;case ci:case il:return k=2,!1;case Rl:return k=3,!1}else if(Ps(f)||Ti(f))return Array.isArray(k)||(k=[]),k.push(f),!1;return mn},ar)}if(ar){var qr=fl(R,Dt);Ne.push(qr)}}),{size:k,shape:U,stops:Ne,position:it,type:2}},Wl=function(R,E){var U=0,k=3,Ne=[],it=[];return Vs(E).forEach(function(Dt,or){var ar=!0;if(or===0?ar=Dt.reduce(function(qr,mn){if(pi(mn))switch(mn.value){case"center":return it.push(nl),!1;case"top":case"left":return it.push(Js),!1;case"right":case"bottom":return it.push(Qo),!1}else if(Ti(mn)||Ps(mn))return it.push(mn),!1;return qr},ar):or===1&&(ar=Dt.reduce(function(qr,mn){if(pi(mn))switch(mn.value){case cu:return U=0,!1;case Ol:return U=1,!1;case ci:case qs:return k=0,!1;case El:return k=1,!1;case il:return k=2,!1;case Pl:case Rl:return k=3,!1}else if(Ps(mn)||Ti(mn))return Array.isArray(k)||(k=[]),k.push(mn),!1;return qr},ar)),ar){var Qr=fl(R,Dt);Ne.push(Qr)}}),{size:k,shape:U,stops:Ne,position:it,type:2}},ic=function(R){return R.type===1},ac=function(R){return R.type===2},du={name:"image",parse:function(R,E){if(E.type===22){var U={url:E.value,type:0};return R.cache.addImage(E.value),U}if(E.type===18){var k=Xo[E.name];if(typeof k=="undefined")throw new Error('Attempting to parse an unsupported image function "'+E.name+'"');return k(R,E.values)}throw new Error("Unsupported image type "+E.type)}};function sc(R){return!(R.type===20&&R.value==="none")&&(R.type!==18||!!Xo[R.name])}var Xo={"linear-gradient":vs,"-moz-linear-gradient":Ja,"-ms-linear-gradient":Ja,"-o-linear-gradient":Ja,"-webkit-linear-gradient":Ja,"radial-gradient":Au,"-moz-radial-gradient":Wl,"-ms-radial-gradient":Wl,"-o-radial-gradient":Wl,"-webkit-radial-gradient":Wl,"-webkit-gradient":Cs},Hu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(R,E){if(E.length===0)return[];var U=E[0];return U.type===20&&U.value==="none"?[]:E.filter(function(k){return Ns(k)&&sc(k)}).map(function(k){return du.parse(R,k)})}},oc={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(R,E){return E.map(function(U){if(pi(U))switch(U.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},b={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(R,E){return Vs(E).map(function(U){return U.filter(Ti)}).map(Dl)}},u={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(R,E){return Vs(E).map(function(U){return U.filter(pi).map(function(k){return k.value}).join(" ")}).map(y)}},y=function(R){switch(R){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},M;(function(R){R.AUTO="auto",R.CONTAIN="contain",R.COVER="cover"})(M||(M={}));var ne={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(R,E){return Vs(E).map(function(U){return U.filter(W)})}},W=function(R){return pi(R)||Ti(R)},ge=function(R){return{name:"border-"+R+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Le=ge("top"),ke=ge("right"),rt=ge("bottom"),yt=ge("left"),vt=function(R){return{name:"border-radius-"+R,initialValue:"0 0",prefix:!1,type:1,parse:function(E,U){return Dl(U.filter(Ti))}}},Pt=vt("top-left"),Ve=vt("top-right"),cr=vt("bottom-right"),tr=vt("bottom-left"),dr=function(R){return{name:"border-"+R+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(E,U){switch(U){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Qt=dr("top"),pr=dr("right"),Mr=dr("bottom"),sn=dr("left"),Rn=function(R){return{name:"border-"+R+"-width",initialValue:"0",type:0,prefix:!1,parse:function(E,U){return Os(U)?U.number:0}}},di=Rn("top"),pn=Rn("right"),Sr=Rn("bottom"),xn=Rn("left"),Nn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},er={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(R,E){switch(E){case"rtl":return 1;case"ltr":default:return 0}}},nr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(R,E){return E.filter(pi).reduce(function(U,k){return U|ye(k.value)},0)}},ye=function(R){switch(R){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(R,E){switch(E){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},et={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(R,E){return E.type===20&&E.value==="normal"?0:E.type===17||E.type===15?E.number:0}},st;(function(R){R.NORMAL="normal",R.STRICT="strict"})(st||(st={}));var gt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"strict":return st.STRICT;case"normal":default:return st.NORMAL}}},ft={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ut=function(R,E){return pi(R)&&R.value==="normal"?1.2*E:R.type===17?E*R.number:Ti(R)?_a(R,E):E},$t={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(R,E){return E.type===20&&E.value==="none"?null:du.parse(R,E)}},sr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(R,E){switch(E){case"inside":return 0;case"outside":default:return 1}}},Ze={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(R,E){switch(E){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},_e=function(R){return{name:"margin-"+R,initialValue:"0",prefix:!1,type:4}},wt=_e("top"),Ht=_e("right"),Wt=_e("bottom"),lr=_e("left"),St={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(R,E){return E.filter(pi).map(function(U){switch(U.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},yr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"break-word":return"break-word";case"normal":default:return"normal"}}},Gr=function(R){return{name:"padding-"+R,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},$r=Gr("top"),An=Gr("right"),Dn=Gr("bottom"),ni=Gr("left"),kr={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(R,E){switch(E){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ir={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(R,E){switch(E){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Si={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(R,E){return E.length===1&&gs(E[0],"none")?[]:Vs(E).map(function(U){for(var k={color:bo.TRANSPARENT,offsetX:Js,offsetY:Js,blur:Js},Ne=0,it=0;it<U.length;it++){var Dt=U[it];Ps(Dt)?(Ne===0?k.offsetX=Dt:Ne===1?k.offsetY=Dt:k.blur=Dt,Ne++):k.color=ns.parse(R,Dt)}return k})}},Fn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(R,E){switch(E){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ln={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(R,E){if(E.type===20&&E.value==="none")return null;if(E.type===18){var U=Cn[E.name];if(typeof U=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+E.name+'"');return U(E.values)}return null}},dn=function(R){var E=R.filter(function(U){return U.type===17}).map(function(U){return U.number});return E.length===6?E:null},rn=function(R){var E=R.filter(function(ar){return ar.type===17}).map(function(ar){return ar.number}),U=E[0],k=E[1];E[2],E[3];var Ne=E[4],it=E[5];E[6],E[7],E[8],E[9],E[10],E[11];var Dt=E[12],or=E[13];return E[14],E[15],E.length===16?[U,k,Ne,it,Dt,or]:null},Cn={matrix:dn,matrix3d:rn},si={type:16,number:50,flags:tn},Fi=[si,si],He={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(R,E){var U=E.filter(Ti);return U.length!==2?Fi:[U[0],U[1]]}},c={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(R,E){switch(E){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},w;(function(R){R.NORMAL="normal",R.BREAK_ALL="break-all",R.KEEP_ALL="keep-all"})(w||(w={}));for(var C={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"break-all":return w.BREAK_ALL;case"keep-all":return w.KEEP_ALL;case"normal":default:return w.NORMAL}}},K={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(R,E){if(E.type===20)return{auto:!0,order:0};if(Li(E))return{auto:!1,order:E.number};throw new Error("Invalid z-index number parsed")}},Be={name:"time",parse:function(R,E){if(E.type===15)switch(E.unit.toLowerCase()){case"s":return 1e3*E.number;case"ms":return E.number}throw new Error("Unsupported time type")}},je={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(R,E){return Li(E)?E.number:1}},xt={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bt={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(R,E){return E.filter(pi).map(function(U){switch(U.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(U){return U!==0})}},Xt={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(R,E){var U=[],k=[];return E.forEach(function(Ne){switch(Ne.type){case 20:case 0:U.push(Ne.value);break;case 17:U.push(Ne.number.toString());break;case 4:k.push(U.join(" ")),U.length=0;break}}),U.length&&k.push(U.join(" ")),k.map(function(Ne){return Ne.indexOf(" ")===-1?Ne:"'"+Ne+"'"})}},Ar={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},xr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(R,E){if(Li(E))return E.number;if(pi(E))switch(E.value){case"bold":return 700;case"normal":default:return 400}return 400}},nn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(R,E){return E.filter(pi).map(function(U){return U.value})}},En={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Xr=function(R,E){return(R&E)!==0},fn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(R,E){if(E.length===0)return[];var U=E[0];return U.type===20&&U.value==="none"?[]:E}},Mn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(R,E){if(E.length===0)return null;var U=E[0];if(U.type===20&&U.value==="none")return null;for(var k=[],Ne=E.filter(Oa),it=0;it<Ne.length;it++){var Dt=Ne[it],or=Ne[it+1];if(Dt.type===20){var ar=or&&Li(or)?or.number:1;k.push({counter:Dt.value,increment:ar})}}return k}},Jn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(R,E){if(E.length===0)return[];for(var U=[],k=E.filter(Oa),Ne=0;Ne<k.length;Ne++){var it=k[Ne],Dt=k[Ne+1];if(pi(it)&&it.value!=="none"){var or=Dt&&Li(Dt)?Dt.number:0;U.push({counter:it.value,reset:or})}}return U}},wi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(R,E){return E.filter(Os).map(function(U){return Be.parse(R,U)})}},yn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(R,E){if(E.length===0)return null;var U=E[0];if(U.type===20&&U.value==="none")return null;var k=[],Ne=E.filter(ua);if(Ne.length%2!==0)return null;for(var it=0;it<Ne.length;it+=2){var Dt=Ne[it].value,or=Ne[it+1].value;k.push({open:Dt,close:or})}return k}},fi=function(R,E,U){if(!R)return"";var k=R[Math.min(E,R.length-1)];return k?U?k.open:k.close:""},qi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(R,E){return E.length===1&&gs(E[0],"none")?[]:Vs(E).map(function(U){for(var k={color:255,offsetX:Js,offsetY:Js,blur:Js,spread:Js,inset:!1},Ne=0,it=0;it<U.length;it++){var Dt=U[it];gs(Dt,"inset")?k.inset=!0:Ps(Dt)?(Ne===0?k.offsetX=Dt:Ne===1?k.offsetY=Dt:Ne===2?k.blur=Dt:k.spread=Dt,Ne++):k.color=ns.parse(R,Dt)}return k})}},Ki={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(R,E){var U=[0,1,2],k=[];return E.filter(pi).forEach(function(Ne){switch(Ne.value){case"stroke":k.push(1);break;case"fill":k.push(0);break;case"markers":k.push(2);break}}),U.forEach(function(Ne){k.indexOf(Ne)===-1&&k.push(Ne)}),k}},Ia={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ta={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(R,E){return Os(E)?E.number:0}},Xi=function(){function R(E,U){var k,Ne;this.animationDuration=li(E,wi,U.animationDuration),this.backgroundClip=li(E,Zl,U.backgroundClip),this.backgroundColor=li(E,wl,U.backgroundColor),this.backgroundImage=li(E,Hu,U.backgroundImage),this.backgroundOrigin=li(E,oc,U.backgroundOrigin),this.backgroundPosition=li(E,b,U.backgroundPosition),this.backgroundRepeat=li(E,u,U.backgroundRepeat),this.backgroundSize=li(E,ne,U.backgroundSize),this.borderTopColor=li(E,Le,U.borderTopColor),this.borderRightColor=li(E,ke,U.borderRightColor),this.borderBottomColor=li(E,rt,U.borderBottomColor),this.borderLeftColor=li(E,yt,U.borderLeftColor),this.borderTopLeftRadius=li(E,Pt,U.borderTopLeftRadius),this.borderTopRightRadius=li(E,Ve,U.borderTopRightRadius),this.borderBottomRightRadius=li(E,cr,U.borderBottomRightRadius),this.borderBottomLeftRadius=li(E,tr,U.borderBottomLeftRadius),this.borderTopStyle=li(E,Qt,U.borderTopStyle),this.borderRightStyle=li(E,pr,U.borderRightStyle),this.borderBottomStyle=li(E,Mr,U.borderBottomStyle),this.borderLeftStyle=li(E,sn,U.borderLeftStyle),this.borderTopWidth=li(E,di,U.borderTopWidth),this.borderRightWidth=li(E,pn,U.borderRightWidth),this.borderBottomWidth=li(E,Sr,U.borderBottomWidth),this.borderLeftWidth=li(E,xn,U.borderLeftWidth),this.boxShadow=li(E,qi,U.boxShadow),this.color=li(E,Nn,U.color),this.direction=li(E,er,U.direction),this.display=li(E,nr,U.display),this.float=li(E,xe,U.cssFloat),this.fontFamily=li(E,Xt,U.fontFamily),this.fontSize=li(E,Ar,U.fontSize),this.fontStyle=li(E,En,U.fontStyle),this.fontVariant=li(E,nn,U.fontVariant),this.fontWeight=li(E,xr,U.fontWeight),this.letterSpacing=li(E,et,U.letterSpacing),this.lineBreak=li(E,gt,U.lineBreak),this.lineHeight=li(E,ft,U.lineHeight),this.listStyleImage=li(E,$t,U.listStyleImage),this.listStylePosition=li(E,sr,U.listStylePosition),this.listStyleType=li(E,Ze,U.listStyleType),this.marginTop=li(E,wt,U.marginTop),this.marginRight=li(E,Ht,U.marginRight),this.marginBottom=li(E,Wt,U.marginBottom),this.marginLeft=li(E,lr,U.marginLeft),this.opacity=li(E,je,U.opacity);var it=li(E,St,U.overflow);this.overflowX=it[0],this.overflowY=it[it.length>1?1:0],this.overflowWrap=li(E,yr,U.overflowWrap),this.paddingTop=li(E,$r,U.paddingTop),this.paddingRight=li(E,An,U.paddingRight),this.paddingBottom=li(E,Dn,U.paddingBottom),this.paddingLeft=li(E,ni,U.paddingLeft),this.paintOrder=li(E,Ki,U.paintOrder),this.position=li(E,ir,U.position),this.textAlign=li(E,kr,U.textAlign),this.textDecorationColor=li(E,xt,(k=U.textDecorationColor)!==null&&k!==void 0?k:U.color),this.textDecorationLine=li(E,bt,(Ne=U.textDecorationLine)!==null&&Ne!==void 0?Ne:U.textDecoration),this.textShadow=li(E,Si,U.textShadow),this.textTransform=li(E,Fn,U.textTransform),this.transform=li(E,ln,U.transform),this.transformOrigin=li(E,He,U.transformOrigin),this.visibility=li(E,c,U.visibility),this.webkitTextStrokeColor=li(E,Ia,U.webkitTextStrokeColor),this.webkitTextStrokeWidth=li(E,Ta,U.webkitTextStrokeWidth),this.wordBreak=li(E,C,U.wordBreak),this.zIndex=li(E,K,U.zIndex)}return R.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},R.prototype.isTransparent=function(){return js(this.backgroundColor)},R.prototype.isTransformed=function(){return this.transform!==null},R.prototype.isPositioned=function(){return this.position!==0},R.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},R.prototype.isFloating=function(){return this.float!==0},R.prototype.isInlineLevel=function(){return Xr(this.display,4)||Xr(this.display,33554432)||Xr(this.display,268435456)||Xr(this.display,536870912)||Xr(this.display,67108864)||Xr(this.display,134217728)},R}(),Fa=function(){function R(E,U){this.content=li(E,fn,U.content),this.quotes=li(E,yn,U.quotes)}return R}(),Ba=function(){function R(E,U){this.counterIncrement=li(E,Mn,U.counterIncrement),this.counterReset=li(E,Jn,U.counterReset)}return R}(),li=function(R,E,U){var k=new eo,Ne=U!==null&&typeof U!="undefined"?U.toString():E.initialValue;k.write(Ne);var it=new zs(k.read());switch(E.type){case 2:var Dt=it.parseComponentValue();return E.parse(R,pi(Dt)?Dt.value:E.initialValue);case 0:return E.parse(R,it.parseComponentValue());case 1:return E.parse(R,it.parseComponentValues());case 4:return it.parseComponentValue();case 3:switch(E.format){case"angle":return ka.parse(R,it.parseComponentValue());case"color":return ns.parse(R,it.parseComponentValue());case"image":return du.parse(R,it.parseComponentValue());case"length":var or=it.parseComponentValue();return Ps(or)?or:Js;case"length-percentage":var ar=it.parseComponentValue();return Ti(ar)?ar:Js;case"time":return Be.parse(R,it.parseComponentValue())}break}},$a="data-html2canvas-debug",os=function(R){var E=R.getAttribute($a);switch(E){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},sa=function(R,E){var U=os(R);return U===1||E===U},fa=function(){function R(E,U){if(this.context=E,this.textNodes=[],this.elements=[],this.flags=0,sa(U,3))debugger;this.styles=new Xi(E,window.getComputedStyle(U,null)),un(U)&&(this.styles.animationDuration.some(function(k){return k>0})&&(U.style.animationDuration="0s"),this.styles.transform!==null&&(U.style.transform="none")),this.bounds=Y(this.context,U),sa(U,4)&&(this.flags|=16)}return R}(),ba="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ls=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Aa=0;Aa<Ha.length;Aa++)ls[Ha.charCodeAt(Aa)]=Aa;for(var Ts=function(R){var E=R.length*.75,U=R.length,k,Ne=0,it,Dt,or,ar;R[R.length-1]==="="&&(E--,R[R.length-2]==="="&&E--);var Qr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(E):new Array(E),qr=Array.isArray(Qr)?Qr:new Uint8Array(Qr);for(k=0;k<U;k+=4)it=ls[R.charCodeAt(k)],Dt=ls[R.charCodeAt(k+1)],or=ls[R.charCodeAt(k+2)],ar=ls[R.charCodeAt(k+3)],qr[Ne++]=it<<2|Dt>>4,qr[Ne++]=(Dt&15)<<4|or>>2,qr[Ne++]=(or&3)<<6|ar&63;return Qr},ys=function(R){for(var E=R.length,U=[],k=0;k<E;k+=2)U.push(R[k+1]<<8|R[k]);return U},Hs=function(R){for(var E=R.length,U=[],k=0;k<E;k+=4)U.push(R[k+3]<<24|R[k+2]<<16|R[k+1]<<8|R[k]);return U},Zs=5,Xs=11,Wo=2,$o=Xs-Zs,ho=65536>>Zs,oo=1<<Zs,ro=oo-1,$s=1024>>Zs,qa=ho+$s,al=qa,$l=32,Vo=al+$l,Jo=65536>>Xs,fu=1<<$o,Iu=fu-1,Ma=function(R,E,U){return R.slice?R.slice(E,U):new Uint16Array(Array.prototype.slice.call(R,E,U))},Bs=function(R,E,U){return R.slice?R.slice(E,U):new Uint32Array(Array.prototype.slice.call(R,E,U))},es=function(R,E){var U=Ts(R),k=Array.isArray(U)?Hs(U):new Uint32Array(U),Ne=Array.isArray(U)?ys(U):new Uint16Array(U),it=24,Dt=Ma(Ne,it/2,k[4]/2),or=k[5]===2?Ma(Ne,(it+k[4])/2):Bs(k,Math.ceil((it+k[4])/4));return new Ss(k[0],k[1],k[2],k[3],Dt,or)},Ss=function(){function R(E,U,k,Ne,it,Dt){this.initialValue=E,this.errorValue=U,this.highStart=k,this.highValueIndex=Ne,this.index=it,this.data=Dt}return R.prototype.get=function(E){var U;if(E>=0){if(E<55296||E>56319&&E<=65535)return U=this.index[E>>Zs],U=(U<<Wo)+(E&ro),this.data[U];if(E<=65535)return U=this.index[ho+(E-55296>>Zs)],U=(U<<Wo)+(E&ro),this.data[U];if(E<this.highStart)return U=Vo-Jo+(E>>Xs),U=this.index[U],U+=E>>Zs&Iu,U=this.index[U],U=(U<<Wo)+(E&ro),this.data[U];if(E<=1114111)return this.data[this.highValueIndex]}return this.errorValue},R}(),wo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ro=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),po=0;po<wo.length;po++)Ro[wo.charCodeAt(po)]=po;var Cl=1,Ko=2,Vl=3,No=4,Yl=5,$u=7,hu=8,sl=9,pu=10,Tu=11,Ku=12,mu=13,zu=14,Nl=15,Gu=function(R){for(var E=[],U=0,k=R.length;U<k;){var Ne=R.charCodeAt(U++);if(Ne>=55296&&Ne<=56319&&U<k){var it=R.charCodeAt(U++);(it&64512)===56320?E.push(((Ne&1023)<<10)+(it&1023)+65536):(E.push(Ne),U--)}else E.push(Ne)}return E},kl=function(){for(var R=[],E=0;E<arguments.length;E++)R[E]=arguments[E];if(String.fromCodePoint)return String.fromCodePoint.apply(String,R);var U=R.length;if(!U)return"";for(var k=[],Ne=-1,it="";++Ne<U;){var Dt=R[Ne];Dt<=65535?k.push(Dt):(Dt-=65536,k.push((Dt>>10)+55296,Dt%1024+56320)),(Ne+1===U||k.length>16384)&&(it+=String.fromCharCode.apply(String,k),k.length=0)}return it},gu=es(ba),Io="\xD7",vu="\xF7",ko=function(R){return gu.get(R)},yc=function(R,E,U){var k=U-2,Ne=E[k],it=E[U-1],Dt=E[U];if(it===Ko&&Dt===Vl)return Io;if(it===Ko||it===Vl||it===No||Dt===Ko||Dt===Vl||Dt===No)return vu;if(it===hu&&[hu,sl,Tu,Ku].indexOf(Dt)!==-1||(it===Tu||it===sl)&&(Dt===sl||Dt===pu)||(it===Ku||it===pu)&&Dt===pu||Dt===mu||Dt===Yl||Dt===$u||it===Cl)return Io;if(it===mu&&Dt===zu){for(;Ne===Yl;)Ne=E[--k];if(Ne===zu)return Io}if(it===Nl&&Dt===Nl){for(var or=0;Ne===Nl;)or++,Ne=E[--k];if(or%2===0)return Io}return vu},Zu=function(R){var E=Gu(R),U=E.length,k=0,Ne=0,it=E.map(ko);return{next:function(){if(k>=U)return{done:!0,value:null};for(var Dt=Io;k<U&&(Dt=yc(E,it,++k))===Io;);if(Dt!==Io||k===U){var or=kl.apply(null,E.slice(Ne,k));return Ne=k,{value:or,done:!1}}return{done:!0,value:null}}}},Pa=function(R){for(var E=Zu(R),U=[],k;!(k=E.next()).done;)k.value&&U.push(k.value.slice());return U},Fu=function(R){var E=123;if(R.createRange){var U=R.createRange();if(U.getBoundingClientRect){var k=R.createElement("boundtest");k.style.height=E+"px",k.style.display="block",R.body.appendChild(k),U.selectNode(k);var Ne=U.getBoundingClientRect(),it=Math.round(Ne.height);if(R.body.removeChild(k),it===E)return!0}}return!1},Du=function(R){var E=R.createElement("boundtest");E.style.width="50px",E.style.display="block",E.style.fontSize="12px",E.style.letterSpacing="0px",E.style.wordSpacing="0px",R.body.appendChild(E);var U=R.createRange();E.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var k=E.firstChild,Ne=I(k.data).map(function(ar){return n(ar)}),it=0,Dt={},or=Ne.every(function(ar,Qr){U.setStart(k,it),U.setEnd(k,it+ar.length);var qr=U.getBoundingClientRect();it+=ar.length;var mn=qr.x>Dt.x||qr.y>Dt.y;return Dt=qr,Qr===0?!0:mn});return R.body.removeChild(E),or},_l=function(){return typeof new Image().crossOrigin!="undefined"},Lu=function(){return typeof new XMLHttpRequest().responseType=="string"},yu=function(R){var E=new Image,U=R.createElement("canvas"),k=U.getContext("2d");if(!k)return!1;E.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{k.drawImage(E,0,0),U.toDataURL()}catch(Ne){return!1}return!0},Xl=function(R){return R[0]===0&&R[1]===255&&R[2]===0&&R[3]===255},Jl=function(R){var E=R.createElement("canvas"),U=100;E.width=U,E.height=U;var k=E.getContext("2d");if(!k)return Promise.reject(!1);k.fillStyle="rgb(0, 255, 0)",k.fillRect(0,0,U,U);var Ne=new Image,it=E.toDataURL();Ne.src=it;var Dt=Bl(U,U,0,0,Ne);return k.fillStyle="red",k.fillRect(0,0,U,U),Ho(Dt).then(function(or){k.drawImage(or,0,0);var ar=k.getImageData(0,0,U,U).data;k.fillStyle="red",k.fillRect(0,0,U,U);var Qr=R.createElement("div");return Qr.style.backgroundImage="url("+it+")",Qr.style.height=U+"px",Xl(ar)?Ho(Bl(U,U,0,0,Qr)):Promise.reject(!1)}).then(function(or){return k.drawImage(or,0,0),Xl(k.getImageData(0,0,U,U).data)}).catch(function(){return!1})},Bl=function(R,E,U,k,Ne){var it="http://www.w3.org/2000/svg",Dt=document.createElementNS(it,"svg"),or=document.createElementNS(it,"foreignObject");return Dt.setAttributeNS(null,"width",R.toString()),Dt.setAttributeNS(null,"height",E.toString()),or.setAttributeNS(null,"width","100%"),or.setAttributeNS(null,"height","100%"),or.setAttributeNS(null,"x",U.toString()),or.setAttributeNS(null,"y",k.toString()),or.setAttributeNS(null,"externalResourcesRequired","true"),Dt.appendChild(or),or.appendChild(Ne),Dt},Ho=function(R){return new Promise(function(E,U){var k=new Image;k.onload=function(){return E(k)},k.onerror=U,k.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(R))})},bs={get SUPPORT_RANGE_BOUNDS(){var R=Fu(document);return Object.defineProperty(bs,"SUPPORT_RANGE_BOUNDS",{value:R}),R},get SUPPORT_WORD_BREAKING(){var R=bs.SUPPORT_RANGE_BOUNDS&&Du(document);return Object.defineProperty(bs,"SUPPORT_WORD_BREAKING",{value:R}),R},get SUPPORT_SVG_DRAWING(){var R=yu(document);return Object.defineProperty(bs,"SUPPORT_SVG_DRAWING",{value:R}),R},get SUPPORT_FOREIGNOBJECT_DRAWING(){var R=typeof Array.from=="function"&&typeof window.fetch=="function"?Jl(document):Promise.resolve(!1);return Object.defineProperty(bs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:R}),R},get SUPPORT_CORS_IMAGES(){var R=_l();return Object.defineProperty(bs,"SUPPORT_CORS_IMAGES",{value:R}),R},get SUPPORT_RESPONSE_TYPE(){var R=Lu();return Object.defineProperty(bs,"SUPPORT_RESPONSE_TYPE",{value:R}),R},get SUPPORT_CORS_XHR(){var R="withCredentials"in new XMLHttpRequest;return Object.defineProperty(bs,"SUPPORT_CORS_XHR",{value:R}),R},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var R=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(bs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:R}),R}},ol=function(){function R(E,U){this.text=E,this.bounds=U}return R}(),qo=function(R,E,U,k){var Ne=ll(E,U),it=[],Dt=0;return Ne.forEach(function(or){if(U.textDecorationLine.length||or.trim().length>0)if(bs.SUPPORT_RANGE_BOUNDS){var ar=Ka(k,Dt,or.length).getClientRects();if(ar.length>1){var Qr=As(or),qr=0;Qr.forEach(function(f){it.push(new ol(f,ie.fromDOMRectList(R,Ka(k,qr+Dt,f.length).getClientRects()))),qr+=f.length})}else it.push(new ol(or,ie.fromDOMRectList(R,ar)))}else{var mn=k.splitText(or.length);it.push(new ol(or,ql(R,k))),k=mn}else bs.SUPPORT_RANGE_BOUNDS||(k=k.splitText(or.length));Dt+=or.length}),it},ql=function(R,E){var U=E.ownerDocument;if(U){var k=U.createElement("html2canvaswrapper");k.appendChild(E.cloneNode(!0));var Ne=E.parentNode;if(Ne){Ne.replaceChild(k,E);var it=Y(R,k);return k.firstChild&&Ne.replaceChild(k.firstChild,k),it}}return ie.EMPTY},Ka=function(R,E,U){var k=R.ownerDocument;if(!k)throw new Error("Node has no owner document");var Ne=k.createRange();return Ne.setStart(R,E),Ne.setEnd(R,E+U),Ne},As=function(R){if(bs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var E=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(E.segment(R)).map(function(U){return U.segment})}return Pa(R)},zo=function(R,E){if(bs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var U=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(U.segment(R)).map(function(k){return k.segment})}return Ru(R,E)},ll=function(R,E){return E.letterSpacing!==0?As(R):zo(R,E)},Sl=[32,160,4961,65792,65793,4153,4241],Ru=function(R,E){for(var U=Br(R,{lineBreak:E.lineBreak,wordBreak:E.overflowWrap==="break-word"?"break-word":E.wordBreak}),k=[],Ne,it=function(){if(Ne.value){var Dt=Ne.value.slice(),or=I(Dt),ar="";or.forEach(function(Qr){Sl.indexOf(Qr)===-1?ar+=n(Qr):(ar.length&&k.push(ar),k.push(n(Qr)),ar="")}),ar.length&&k.push(ar)}};!(Ne=U.next()).done;)it();return k},Ou=function(){function R(E,U,k){this.text=Pu(U.data,k.textTransform),this.textBounds=qo(E,this.text,k,U)}return R}(),Pu=function(R,E){switch(E){case 1:return R.toLowerCase();case 3:return R.replace(hl,Il);case 2:return R.toUpperCase();default:return R}},hl=/(^|\s|:|-|\(|\))([a-z])/g,Il=function(R,E,U){return R.length>0?E+U.toUpperCase():R},Ic=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;return Ne.src=k.currentSrc||k.src,Ne.intrinsicWidth=k.naturalWidth,Ne.intrinsicHeight=k.naturalHeight,Ne.context.cache.addImage(Ne.src),Ne}return E}(fa),bu=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;return Ne.canvas=k,Ne.intrinsicWidth=k.width,Ne.intrinsicHeight=k.height,Ne}return E}(fa),Ml=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this,it=new XMLSerializer,Dt=Y(U,k);return k.setAttribute("width",Dt.width+"px"),k.setAttribute("height",Dt.height+"px"),Ne.svg="data:image/svg+xml,"+encodeURIComponent(it.serializeToString(k)),Ne.intrinsicWidth=k.width.baseVal.value,Ne.intrinsicHeight=k.height.baseVal.value,Ne.context.cache.addImage(Ne.svg),Ne}return E}(fa),lc=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;return Ne.value=k.value,Ne}return E}(fa),Go=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;return Ne.start=k.start,Ne.reversed=typeof k.reversed=="boolean"&&k.reversed===!0,Ne}return E}(fa),kc=[{type:15,flags:0,unit:"px",number:3}],uc=[{type:16,flags:0,number:50}],Mc=function(R){return R.width>R.height?new ie(R.left+(R.width-R.height)/2,R.top,R.height,R.height):R.width<R.height?new ie(R.left,R.top+(R.height-R.width)/2,R.width,R.width):R},cc=function(R){var E=R.type===Ac?new Array(R.value.length+1).join("\u2022"):R.value;return E.length===0?R.placeholder||"":E},Nu="checkbox",ku="radio",Ac="password",dc=707406591,Wu=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;switch(Ne.type=k.type.toLowerCase(),Ne.checked=k.checked,Ne.value=cc(k),(Ne.type===Nu||Ne.type===ku)&&(Ne.styles.backgroundColor=3739148031,Ne.styles.borderTopColor=Ne.styles.borderRightColor=Ne.styles.borderBottomColor=Ne.styles.borderLeftColor=2779096575,Ne.styles.borderTopWidth=Ne.styles.borderRightWidth=Ne.styles.borderBottomWidth=Ne.styles.borderLeftWidth=1,Ne.styles.borderTopStyle=Ne.styles.borderRightStyle=Ne.styles.borderBottomStyle=Ne.styles.borderLeftStyle=1,Ne.styles.backgroundClip=[0],Ne.styles.backgroundOrigin=[0],Ne.bounds=Mc(Ne.bounds)),Ne.type){case Nu:Ne.styles.borderTopRightRadius=Ne.styles.borderTopLeftRadius=Ne.styles.borderBottomRightRadius=Ne.styles.borderBottomLeftRadius=kc;break;case ku:Ne.styles.borderTopRightRadius=Ne.styles.borderTopLeftRadius=Ne.styles.borderBottomRightRadius=Ne.styles.borderBottomLeftRadius=uc;break}return Ne}return E}(fa),bc=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this,it=k.options[k.selectedIndex||0];return Ne.value=it&&it.text||"",Ne}return E}(fa),wc=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;return Ne.value=k.value,Ne}return E}(fa),wu=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;Ne.src=k.src,Ne.width=parseInt(k.width,10)||0,Ne.height=parseInt(k.height,10)||0,Ne.backgroundColor=Ne.styles.backgroundColor;try{if(k.contentWindow&&k.contentWindow.document&&k.contentWindow.document.documentElement){Ne.tree=fc(U,k.contentWindow.document.documentElement);var it=k.contentWindow.document.documentElement?so(U,getComputedStyle(k.contentWindow.document.documentElement).backgroundColor):bo.TRANSPARENT,Dt=k.contentWindow.document.body?so(U,getComputedStyle(k.contentWindow.document.body).backgroundColor):bo.TRANSPARENT;Ne.backgroundColor=js(it)?js(Dt)?Ne.styles.backgroundColor:Dt:it}}catch(or){}return Ne}return E}(fa),xu=["OL","UL","MENU"],eu=function(R,E,U,k){for(var Ne=E.firstChild,it=void 0;Ne;Ne=it)if(it=Ne.nextSibling,gr(Ne)&&Ne.data.trim().length>0)U.textNodes.push(new Ou(R,Ne,U.styles));else if(Rr(Ne))if(xc(Ne)&&Ne.assignedNodes)Ne.assignedNodes().forEach(function(or){return eu(R,or,U,k)});else{var Dt=tu(R,Ne);Dt.styles.isVisible()&&(de(Ne,Dt,k)?Dt.flags|=4:Et(Dt.styles)&&(Dt.flags|=2),xu.indexOf(Ne.tagName)!==-1&&(Dt.flags|=8),U.elements.push(Dt),Ne.slot,Ne.shadowRoot?eu(R,Ne.shadowRoot,Dt,k):!el(Ne)&&!za(Ne)&&!Tl(Ne)&&eu(R,Ne,Dt,k))}},tu=function(R,E){return To(E)?new Ic(R,E):mo(E)?new bu(R,E):za(E)?new Ml(R,E):Ci(E)?new lc(R,E):na(E)?new Go(R,E):va(E)?new Wu(R,E):Tl(E)?new bc(R,E):el(E)?new wc(R,E):Yo(E)?new wu(R,E):new fa(R,E)},fc=function(R,E){var U=tu(R,E);return U.flags|=4,eu(R,E,U,U),U},de=function(R,E,U){return E.styles.isPositionedWithZIndex()||E.styles.opacity<1||E.styles.isTransformed()||ws(R)&&U.styles.isTransparent()},Et=function(R){return R.isPositioned()||R.isFloating()},gr=function(R){return R.nodeType===Node.TEXT_NODE},Rr=function(R){return R.nodeType===Node.ELEMENT_NODE},un=function(R){return Rr(R)&&typeof R.style!="undefined"&&!Kn(R)},Kn=function(R){return typeof R.className=="object"},Ci=function(R){return R.tagName==="LI"},na=function(R){return R.tagName==="OL"},va=function(R){return R.tagName==="INPUT"},Va=function(R){return R.tagName==="HTML"},za=function(R){return R.tagName==="svg"},ws=function(R){return R.tagName==="BODY"},mo=function(R){return R.tagName==="CANVAS"},xo=function(R){return R.tagName==="VIDEO"},To=function(R){return R.tagName==="IMG"},Yo=function(R){return R.tagName==="IFRAME"},Mo=function(R){return R.tagName==="STYLE"},Kl=function(R){return R.tagName==="SCRIPT"},el=function(R){return R.tagName==="TEXTAREA"},Tl=function(R){return R.tagName==="SELECT"},xc=function(R){return R.tagName==="SLOT"},Vu=function(R){return R.tagName.indexOf("-")>0},hc=function(){function R(){this.counters={}}return R.prototype.getCounterValue=function(E){var U=this.counters[E];return U&&U.length?U[U.length-1]:1},R.prototype.getCounterValues=function(E){var U=this.counters[E];return U||[]},R.prototype.pop=function(E){var U=this;E.forEach(function(k){return U.counters[k].pop()})},R.prototype.parse=function(E){var U=this,k=E.counterIncrement,Ne=E.counterReset,it=!0;k!==null&&k.forEach(function(or){var ar=U.counters[or.counter];ar&&or.increment!==0&&(it=!1,ar.length||ar.push(1),ar[Math.max(0,ar.length-1)]+=or.increment)});var Dt=[];return it&&Ne.forEach(function(or){var ar=U.counters[or.counter];Dt.push(or.counter),ar||(ar=U.counters[or.counter]=[]),ar.push(or.reset)}),Dt},R}(),Yu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Ec={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},pc={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Eo=function(R,E,U,k,Ne,it){return R<E||R>U?jl(R,Ne,it.length>0):k.integers.reduce(function(Dt,or,ar){for(;R>=or;)R-=or,Dt+=k.values[ar];return Dt},"")+it},Ju=function(R,E,U,k){var Ne="";do U||R--,Ne=k(R)+Ne,R/=E;while(R*E>=E);return Ne},no=function(R,E,U,k,Ne){var it=U-E+1;return(R<0?"-":"")+(Ju(Math.abs(R),it,k,function(Dt){return n(Math.floor(Dt%it)+E)})+Ne)},Ul=function(R,E,U){U===void 0&&(U=". ");var k=E.length;return Ju(Math.abs(R),k,!1,function(Ne){return E[Math.floor(Ne%k)]})+U},ru=1,Oo=2,nu=4,Eu=8,Ql=function(R,E,U,k,Ne,it){if(R<-9999||R>9999)return jl(R,4,Ne.length>0);var Dt=Math.abs(R),or=Ne;if(Dt===0)return E[0]+or;for(var ar=0;Dt>0&&ar<=4;ar++){var Qr=Dt%10;Qr===0&&Xr(it,ru)&&or!==""?or=E[Qr]+or:Qr>1||Qr===1&&ar===0||Qr===1&&ar===1&&Xr(it,Oo)||Qr===1&&ar===1&&Xr(it,nu)&&R>100||Qr===1&&ar>1&&Xr(it,Eu)?or=E[Qr]+(ar>0?U[ar-1]:"")+or:Qr===1&&ar>0&&(or=U[ar-1]+or),Dt=Math.floor(Dt/10)}return(R<0?k:"")+or},pl="\u5341\u767E\u5343\u842C",qu="\u62FE\u4F70\u4EDF\u842C",Cc="\u30DE\u30A4\u30CA\u30B9",Mu="\uB9C8\uC774\uB108\uC2A4",jl=function(R,E,U){var k=U?". ":"",Ne=U?"\u3001":"",it=U?", ":"",Dt=U?" ":"";switch(E){case 0:return"\u2022"+Dt;case 1:return"\u25E6"+Dt;case 2:return"\u25FE"+Dt;case 5:var or=no(R,48,57,!0,k);return or.length<4?"0"+or:or;case 4:return Ul(R,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ne);case 6:return Eo(R,1,3999,Yu,3,k).toLowerCase();case 7:return Eo(R,1,3999,Yu,3,k);case 8:return no(R,945,969,!1,k);case 9:return no(R,97,122,!1,k);case 10:return no(R,65,90,!1,k);case 11:return no(R,1632,1641,!0,k);case 12:case 49:return Eo(R,1,9999,Xu,3,k);case 35:return Eo(R,1,9999,Xu,3,k).toLowerCase();case 13:return no(R,2534,2543,!0,k);case 14:case 30:return no(R,6112,6121,!0,k);case 15:return Ul(R,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Ne);case 16:return Ul(R,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Ne);case 17:case 48:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",pl,"\u8CA0",Ne,Oo|nu|Eu);case 47:return Ql(R,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",qu,"\u8CA0",Ne,ru|Oo|nu|Eu);case 42:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",pl,"\u8D1F",Ne,Oo|nu|Eu);case 41:return Ql(R,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",qu,"\u8D1F",Ne,ru|Oo|nu|Eu);case 26:return Ql(R,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Cc,Ne,0);case 25:return Ql(R,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Cc,Ne,ru|Oo|nu);case 31:return Ql(R,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Mu,it,ru|Oo|nu);case 33:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Mu,it,0);case 32:return Ql(R,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Mu,it,ru|Oo|nu);case 18:return no(R,2406,2415,!0,k);case 20:return Eo(R,1,19999,pc,3,k);case 21:return no(R,2790,2799,!0,k);case 22:return no(R,2662,2671,!0,k);case 22:return Eo(R,1,10999,Ec,3,k);case 23:return Ul(R,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Ul(R,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return no(R,3302,3311,!0,k);case 28:return Ul(R,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",Ne);case 29:return Ul(R,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",Ne);case 34:return no(R,3792,3801,!0,k);case 37:return no(R,6160,6169,!0,k);case 38:return no(R,4160,4169,!0,k);case 39:return no(R,2918,2927,!0,k);case 40:return no(R,1776,1785,!0,k);case 43:return no(R,3046,3055,!0,k);case 44:return no(R,3174,3183,!0,k);case 45:return no(R,3664,3673,!0,k);case 46:return no(R,3872,3881,!0,k);case 3:default:return no(R,48,57,!0,k)}},iu="data-html2canvas-ignore",ul=function(){function R(E,U,k){if(this.context=E,this.options=k,this.scrolledElements=[],this.referenceElement=U,this.counters=new hc,this.quoteDepth=0,!U.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(U.ownerDocument.documentElement,!1)}return R.prototype.toIFrame=function(E,U){var k=this,Ne=Uu(E,U);if(!Ne.contentWindow)return Promise.reject("Unable to find iframe window");var it=E.defaultView.pageXOffset,Dt=E.defaultView.pageYOffset,or=Ne.contentWindow,ar=or.document,Qr=mc(Ne).then(function(){return De(k,void 0,void 0,function(){var qr,mn;return se(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(Hl),or&&(or.scrollTo(U.left,U.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(or.scrollY!==U.top||or.scrollX!==U.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(or.scrollX-U.left,or.scrollY-U.top,0,0))),qr=this.options.onclone,mn=this.clonedReferenceElement,typeof mn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:ar.fonts&&ar.fonts.ready?[4,ar.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,su(ar)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof qr=="function"?[2,Promise.resolve().then(function(){return qr(ar,mn)}).then(function(){return Ne})]:[2,Ne]}})})});return ar.open(),ar.write(Qu(document.doctype)+"<html></html>"),cl(this.referenceElement.ownerDocument,it,Dt),ar.replaceChild(ar.adoptNode(this.documentElement),ar.documentElement),ar.close(),Qr},R.prototype.createElementClone=function(E){if(sa(E,2))debugger;if(mo(E))return this.createCanvasClone(E);if(xo(E))return this.createVideoClone(E);if(Mo(E))return this.createStyleClone(E);var U=E.cloneNode(!1);return To(U)&&(To(E)&&E.currentSrc&&E.currentSrc!==E.src&&(U.src=E.currentSrc,U.srcset=""),U.loading==="lazy"&&(U.loading="eager")),Vu(U)?this.createCustomElementClone(U):U},R.prototype.createCustomElementClone=function(E){var U=document.createElement("html2canvascustomelement");return Co(E.style,U),U},R.prototype.createStyleClone=function(E){try{var U=E.sheet;if(U&&U.cssRules){var k=[].slice.call(U.cssRules,0).reduce(function(it,Dt){return Dt&&typeof Dt.cssText=="string"?it+Dt.cssText:it},""),Ne=E.cloneNode(!1);return Ne.textContent=k,Ne}}catch(it){if(this.context.logger.error("Unable to access cssRules property",it),it.name!=="SecurityError")throw it}return E.cloneNode(!1)},R.prototype.createCanvasClone=function(E){var U;if(this.options.inlineImages&&E.ownerDocument){var k=E.ownerDocument.createElement("img");try{return k.src=E.toDataURL(),k}catch(Qr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",E)}}var Ne=E.cloneNode(!1);try{Ne.width=E.width,Ne.height=E.height;var it=E.getContext("2d"),Dt=Ne.getContext("2d");if(Dt)if(!this.options.allowTaint&&it)Dt.putImageData(it.getImageData(0,0,E.width,E.height),0,0);else{var or=(U=E.getContext("webgl2"))!==null&&U!==void 0?U:E.getContext("webgl");if(or){var ar=or.getContextAttributes();(ar==null?void 0:ar.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",E)}Dt.drawImage(E,0,0)}return Ne}catch(Qr){this.context.logger.info("Unable to clone canvas as it is tainted",E)}return Ne},R.prototype.createVideoClone=function(E){var U=E.ownerDocument.createElement("canvas");U.width=E.offsetWidth,U.height=E.offsetHeight;var k=U.getContext("2d");try{return k&&(k.drawImage(E,0,0,U.width,U.height),this.options.allowTaint||k.getImageData(0,0,U.width,U.height)),U}catch(it){this.context.logger.info("Unable to clone video as it is tainted",E)}var Ne=E.ownerDocument.createElement("canvas");return Ne.width=E.offsetWidth,Ne.height=E.offsetHeight,Ne},R.prototype.appendChildNode=function(E,U,k){(!Rr(U)||!Kl(U)&&!U.hasAttribute(iu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(U)))&&(!this.options.copyStyles||!Rr(U)||!Mo(U))&&E.appendChild(this.cloneNode(U,k))},R.prototype.cloneChildNodes=function(E,U,k){for(var Ne=this,it=E.shadowRoot?E.shadowRoot.firstChild:E.firstChild;it;it=it.nextSibling)if(Rr(it)&&xc(it)&&typeof it.assignedNodes=="function"){var Dt=it.assignedNodes();Dt.length&&Dt.forEach(function(or){return Ne.appendChildNode(U,or,k)})}else this.appendChildNode(U,it,k)},R.prototype.cloneNode=function(E,U){if(gr(E))return document.createTextNode(E.data);if(!E.ownerDocument)return E.cloneNode(!1);var k=E.ownerDocument.defaultView;if(k&&Rr(E)&&(un(E)||Kn(E))){var Ne=this.createElementClone(E);Ne.style.transitionProperty="none";var it=k.getComputedStyle(E),Dt=k.getComputedStyle(E,":before"),or=k.getComputedStyle(E,":after");this.referenceElement===E&&un(Ne)&&(this.clonedReferenceElement=Ne),ws(Ne)&&e(Ne);var ar=this.counters.parse(new Ba(this.context,it)),Qr=this.resolvePseudoContent(E,Ne,Dt,Uo.BEFORE);Vu(E)&&(U=!0),xo(E)||this.cloneChildNodes(E,Ne,U),Qr&&Ne.insertBefore(Qr,Ne.firstChild);var qr=this.resolvePseudoContent(E,Ne,or,Uo.AFTER);return qr&&Ne.appendChild(qr),this.counters.pop(ar),(it&&(this.options.copyStyles||Kn(E))&&!Yo(E)||U)&&Co(it,Ne),(E.scrollTop!==0||E.scrollLeft!==0)&&this.scrolledElements.push([Ne,E.scrollLeft,E.scrollTop]),(el(E)||Tl(E))&&(el(Ne)||Tl(Ne))&&(Ne.value=E.value),Ne}return E.cloneNode(!1)},R.prototype.resolvePseudoContent=function(E,U,k,Ne){var it=this;if(k){var Dt=k.content,or=U.ownerDocument;if(!(!or||!Dt||Dt==="none"||Dt==="-moz-alt-content"||k.display==="none")){this.counters.parse(new Ba(this.context,k));var ar=new Fa(this.context,k),Qr=or.createElement("html2canvaspseudoelement");Co(k,Qr),ar.content.forEach(function(mn){if(mn.type===0)Qr.appendChild(or.createTextNode(mn.value));else if(mn.type===22){var f=or.createElement("img");f.src=mn.value,f.style.opacity="1",Qr.appendChild(f)}else if(mn.type===18){if(mn.name==="attr"){var Q=mn.values.filter(pi);Q.length&&Qr.appendChild(or.createTextNode(E.getAttribute(Q[0].value)||""))}else if(mn.name==="counter"){var ce=mn.values.filter(Ns),Ue=ce[0],ut=ce[1];if(Ue&&pi(Ue)){var ht=it.counters.getCounterValue(Ue.value),mt=ut&&pi(ut)?Ze.parse(it.context,ut.value):3;Qr.appendChild(or.createTextNode(jl(ht,mt,!1)))}}else if(mn.name==="counters"){var Ft=mn.values.filter(Ns),Ue=Ft[0],Rt=Ft[1],ut=Ft[2];if(Ue&&pi(Ue)){var Kt=it.counters.getCounterValues(Ue.value),fr=ut&&pi(ut)?Ze.parse(it.context,ut.value):3,Wr=Rt&&Rt.type===0?Rt.value:"",Vr=Kt.map(function(Pn){return jl(Pn,fr,!1)}).join(Wr);Qr.appendChild(or.createTextNode(Vr))}}}else if(mn.type===20)switch(mn.value){case"open-quote":Qr.appendChild(or.createTextNode(fi(ar.quotes,it.quoteDepth++,!0)));break;case"close-quote":Qr.appendChild(or.createTextNode(fi(ar.quotes,--it.quoteDepth,!1)));break;default:Qr.appendChild(or.createTextNode(mn.value))}}),Qr.className=ec+" "+Al;var qr=Ne===Uo.BEFORE?" "+ec:" "+Al;return Kn(U)?U.className.baseValue+=qr:U.className+=qr,Qr}}},R.destroy=function(E){return E.parentNode?(E.parentNode.removeChild(E),!0):!1},R}(),Uo;(function(R){R[R.BEFORE=0]="BEFORE",R[R.AFTER=1]="AFTER"})(Uo||(Uo={}));var Uu=function(R,E){var U=R.createElement("iframe");return U.className="html2canvas-container",U.style.visibility="hidden",U.style.position="fixed",U.style.left="-10000px",U.style.top="0px",U.style.border="0",U.width=E.width.toString(),U.height=E.height.toString(),U.scrolling="no",U.setAttribute(iu,"true"),R.body.appendChild(U),U},au=function(R){return new Promise(function(E){if(R.complete){E();return}if(!R.src){E();return}R.onload=E,R.onerror=E})},su=function(R){return Promise.all([].slice.call(R.images,0).map(au))},mc=function(R){return new Promise(function(E,U){var k=R.contentWindow;if(!k)return U("No window assigned for iframe");var Ne=k.document;k.onload=R.onload=function(){k.onload=R.onload=null;var it=setInterval(function(){Ne.body.childNodes.length>0&&Ne.readyState==="complete"&&(clearInterval(it),E(R))},50)}})},Cu=["all","d","content"],Co=function(R,E){for(var U=R.length-1;U>=0;U--){var k=R.item(U);Cu.indexOf(k)===-1&&E.style.setProperty(k,R.getPropertyValue(k))}return E},Qu=function(R){var E="";return R&&(E+="<!DOCTYPE ",R.name&&(E+=R.name),R.internalSubset&&(E+=R.internalSubset),R.publicId&&(E+='"'+R.publicId+'"'),R.systemId&&(E+='"'+R.systemId+'"'),E+=">"),E},cl=function(R,E,U){R&&R.defaultView&&(E!==R.defaultView.pageXOffset||U!==R.defaultView.pageYOffset)&&R.defaultView.scrollTo(E,U)},Hl=function(R){var E=R[0],U=R[1],k=R[2];E.scrollLeft=U,E.scrollTop=k},gc=":before",Tc=":after",ec="___html2canvas___pseudoelement_before",Al="___html2canvas___pseudoelement_after",d=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,e=function(R){t(R,"."+ec+gc+d+`
|
|
|
.`+Al+Tc+d)},t=function(R,E){var U=R.ownerDocument;if(U){var k=U.createElement("style");k.textContent=E,R.appendChild(k)}},r=function(){function R(){}return R.getOrigin=function(E){var U=R._link;return U?(U.href=E,U.href=U.href,U.protocol+U.hostname+U.port):"about:blank"},R.isSameOrigin=function(E){return R.getOrigin(E)===R._origin},R.setContext=function(E){R._link=E.document.createElement("a"),R._origin=R.getOrigin(E.location.href)},R._origin="about:blank",R}(),i=function(){function R(E,U){this.context=E,this._options=U,this._cache={}}return R.prototype.addImage=function(E){var U=Promise.resolve();return this.has(E)||(Oe(E)||j(E))&&(this._cache[E]=this.loadImage(E)).catch(function(){}),U},R.prototype.match=function(E){return this._cache[E]},R.prototype.loadImage=function(E){return De(this,void 0,void 0,function(){var U,k,Ne,it,Dt=this;return se(this,function(or){switch(or.label){case 0:return U=r.isSameOrigin(E),k=!q(E)&&this._options.useCORS===!0&&bs.SUPPORT_CORS_IMAGES&&!U,Ne=!q(E)&&!U&&!Oe(E)&&typeof this._options.proxy=="string"&&bs.SUPPORT_CORS_XHR&&!k,!U&&this._options.allowTaint===!1&&!q(E)&&!Oe(E)&&!Ne&&!k?[2]:(it=E,Ne?[4,this.proxy(it)]:[3,2]);case 1:it=or.sent(),or.label=2;case 2:return this.context.logger.debug("Added image "+E.substring(0,256)),[4,new Promise(function(ar,Qr){var qr=new Image;qr.onload=function(){return ar(qr)},qr.onerror=Qr,(Ae(it)||k)&&(qr.crossOrigin="anonymous"),qr.src=it,qr.complete===!0&&setTimeout(function(){return ar(qr)},500),Dt._options.imageTimeout>0&&setTimeout(function(){return Qr("Timed out ("+Dt._options.imageTimeout+"ms) loading image")},Dt._options.imageTimeout)})];case 3:return[2,or.sent()]}})})},R.prototype.has=function(E){return typeof this._cache[E]!="undefined"},R.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},R.prototype.proxy=function(E){var U=this,k=this._options.proxy;if(!k)throw new Error("No proxy defined");var Ne=E.substring(0,256);return new Promise(function(it,Dt){var or=bs.SUPPORT_RESPONSE_TYPE?"blob":"text",ar=new XMLHttpRequest;ar.onload=function(){if(ar.status===200)if(or==="text")it(ar.response);else{var mn=new FileReader;mn.addEventListener("load",function(){return it(mn.result)},!1),mn.addEventListener("error",function(f){return Dt(f)},!1),mn.readAsDataURL(ar.response)}else Dt("Failed to proxy resource "+Ne+" with status code "+ar.status)},ar.onerror=Dt;var Qr=k.indexOf("?")>-1?"&":"?";if(ar.open("GET",""+k+Qr+"url="+encodeURIComponent(E)+"&responseType="+or),or!=="text"&&ar instanceof XMLHttpRequest&&(ar.responseType=or),U._options.imageTimeout){var qr=U._options.imageTimeout;ar.timeout=qr,ar.ontimeout=function(){return Dt("Timed out ("+qr+"ms) proxying "+Ne)}}ar.send()})},R}(),s=/^data:image\/svg\+xml/i,l=/^data:image\/.*;base64,/i,x=/^data:image\/.*/i,j=function(R){return bs.SUPPORT_SVG_DRAWING||!Ye(R)},q=function(R){return x.test(R)},Ae=function(R){return l.test(R)},Oe=function(R){return R.substr(0,4)==="blob"},Ye=function(R){return R.substr(-3).toLowerCase()==="svg"||s.test(R)},Xe=function(){function R(E,U){this.type=0,this.x=E,this.y=U}return R.prototype.add=function(E,U){return new R(this.x+E,this.y+U)},R}(),lt=function(R,E,U){return new Xe(R.x+(E.x-R.x)*U,R.y+(E.y-R.y)*U)},Ct=function(){function R(E,U,k,Ne){this.type=1,this.start=E,this.startControl=U,this.endControl=k,this.end=Ne}return R.prototype.subdivide=function(E,U){var k=lt(this.start,this.startControl,E),Ne=lt(this.startControl,this.endControl,E),it=lt(this.endControl,this.end,E),Dt=lt(k,Ne,E),or=lt(Ne,it,E),ar=lt(Dt,or,E);return U?new R(this.start,k,Dt,ar):new R(ar,or,it,this.end)},R.prototype.add=function(E,U){return new R(this.start.add(E,U),this.startControl.add(E,U),this.endControl.add(E,U),this.end.add(E,U))},R.prototype.reverse=function(){return new R(this.end,this.endControl,this.startControl,this.start)},R}(),Tt=function(R){return R.type===1},vr=function(){function R(E){var U=E.styles,k=E.bounds,Ne=Ao(U.borderTopLeftRadius,k.width,k.height),it=Ne[0],Dt=Ne[1],or=Ao(U.borderTopRightRadius,k.width,k.height),ar=or[0],Qr=or[1],qr=Ao(U.borderBottomRightRadius,k.width,k.height),mn=qr[0],f=qr[1],Q=Ao(U.borderBottomLeftRadius,k.width,k.height),ce=Q[0],Ue=Q[1],ut=[];ut.push((it+ar)/k.width),ut.push((ce+mn)/k.width),ut.push((Dt+Ue)/k.height),ut.push((Qr+f)/k.height);var ht=Math.max.apply(Math,ut);ht>1&&(it/=ht,Dt/=ht,ar/=ht,Qr/=ht,mn/=ht,f/=ht,ce/=ht,Ue/=ht);var mt=k.width-ar,Ft=k.height-f,Rt=k.width-mn,Kt=k.height-Ue,fr=U.borderTopWidth,Wr=U.borderRightWidth,Vr=U.borderBottomWidth,Ir=U.borderLeftWidth,Zn=_a(U.paddingTop,E.bounds.width),Pn=_a(U.paddingRight,E.bounds.width),Pr=_a(U.paddingBottom,E.bounds.width),Dr=_a(U.paddingLeft,E.bounds.width);this.topLeftBorderDoubleOuterBox=it>0||Dt>0?Or(k.left+Ir/3,k.top+fr/3,it-Ir/3,Dt-fr/3,Nr.TOP_LEFT):new Xe(k.left+Ir/3,k.top+fr/3),this.topRightBorderDoubleOuterBox=it>0||Dt>0?Or(k.left+mt,k.top+fr/3,ar-Wr/3,Qr-fr/3,Nr.TOP_RIGHT):new Xe(k.left+k.width-Wr/3,k.top+fr/3),this.bottomRightBorderDoubleOuterBox=mn>0||f>0?Or(k.left+Rt,k.top+Ft,mn-Wr/3,f-Vr/3,Nr.BOTTOM_RIGHT):new Xe(k.left+k.width-Wr/3,k.top+k.height-Vr/3),this.bottomLeftBorderDoubleOuterBox=ce>0||Ue>0?Or(k.left+Ir/3,k.top+Kt,ce-Ir/3,Ue-Vr/3,Nr.BOTTOM_LEFT):new Xe(k.left+Ir/3,k.top+k.height-Vr/3),this.topLeftBorderDoubleInnerBox=it>0||Dt>0?Or(k.left+Ir*2/3,k.top+fr*2/3,it-Ir*2/3,Dt-fr*2/3,Nr.TOP_LEFT):new Xe(k.left+Ir*2/3,k.top+fr*2/3),this.topRightBorderDoubleInnerBox=it>0||Dt>0?Or(k.left+mt,k.top+fr*2/3,ar-Wr*2/3,Qr-fr*2/3,Nr.TOP_RIGHT):new Xe(k.left+k.width-Wr*2/3,k.top+fr*2/3),this.bottomRightBorderDoubleInnerBox=mn>0||f>0?Or(k.left+Rt,k.top+Ft,mn-Wr*2/3,f-Vr*2/3,Nr.BOTTOM_RIGHT):new Xe(k.left+k.width-Wr*2/3,k.top+k.height-Vr*2/3),this.bottomLeftBorderDoubleInnerBox=ce>0||Ue>0?Or(k.left+Ir*2/3,k.top+Kt,ce-Ir*2/3,Ue-Vr*2/3,Nr.BOTTOM_LEFT):new Xe(k.left+Ir*2/3,k.top+k.height-Vr*2/3),this.topLeftBorderStroke=it>0||Dt>0?Or(k.left+Ir/2,k.top+fr/2,it-Ir/2,Dt-fr/2,Nr.TOP_LEFT):new Xe(k.left+Ir/2,k.top+fr/2),this.topRightBorderStroke=it>0||Dt>0?Or(k.left+mt,k.top+fr/2,ar-Wr/2,Qr-fr/2,Nr.TOP_RIGHT):new Xe(k.left+k.width-Wr/2,k.top+fr/2),this.bottomRightBorderStroke=mn>0||f>0?Or(k.left+Rt,k.top+Ft,mn-Wr/2,f-Vr/2,Nr.BOTTOM_RIGHT):new Xe(k.left+k.width-Wr/2,k.top+k.height-Vr/2),this.bottomLeftBorderStroke=ce>0||Ue>0?Or(k.left+Ir/2,k.top+Kt,ce-Ir/2,Ue-Vr/2,Nr.BOTTOM_LEFT):new Xe(k.left+Ir/2,k.top+k.height-Vr/2),this.topLeftBorderBox=it>0||Dt>0?Or(k.left,k.top,it,Dt,Nr.TOP_LEFT):new Xe(k.left,k.top),this.topRightBorderBox=ar>0||Qr>0?Or(k.left+mt,k.top,ar,Qr,Nr.TOP_RIGHT):new Xe(k.left+k.width,k.top),this.bottomRightBorderBox=mn>0||f>0?Or(k.left+Rt,k.top+Ft,mn,f,Nr.BOTTOM_RIGHT):new Xe(k.left+k.width,k.top+k.height),this.bottomLeftBorderBox=ce>0||Ue>0?Or(k.left,k.top+Kt,ce,Ue,Nr.BOTTOM_LEFT):new Xe(k.left,k.top+k.height),this.topLeftPaddingBox=it>0||Dt>0?Or(k.left+Ir,k.top+fr,Math.max(0,it-Ir),Math.max(0,Dt-fr),Nr.TOP_LEFT):new Xe(k.left+Ir,k.top+fr),this.topRightPaddingBox=ar>0||Qr>0?Or(k.left+Math.min(mt,k.width-Wr),k.top+fr,mt>k.width+Wr?0:Math.max(0,ar-Wr),Math.max(0,Qr-fr),Nr.TOP_RIGHT):new Xe(k.left+k.width-Wr,k.top+fr),this.bottomRightPaddingBox=mn>0||f>0?Or(k.left+Math.min(Rt,k.width-Ir),k.top+Math.min(Ft,k.height-Vr),Math.max(0,mn-Wr),Math.max(0,f-Vr),Nr.BOTTOM_RIGHT):new Xe(k.left+k.width-Wr,k.top+k.height-Vr),this.bottomLeftPaddingBox=ce>0||Ue>0?Or(k.left+Ir,k.top+Math.min(Kt,k.height-Vr),Math.max(0,ce-Ir),Math.max(0,Ue-Vr),Nr.BOTTOM_LEFT):new Xe(k.left+Ir,k.top+k.height-Vr),this.topLeftContentBox=it>0||Dt>0?Or(k.left+Ir+Dr,k.top+fr+Zn,Math.max(0,it-(Ir+Dr)),Math.max(0,Dt-(fr+Zn)),Nr.TOP_LEFT):new Xe(k.left+Ir+Dr,k.top+fr+Zn),this.topRightContentBox=ar>0||Qr>0?Or(k.left+Math.min(mt,k.width+Ir+Dr),k.top+fr+Zn,mt>k.width+Ir+Dr?0:ar-Ir+Dr,Qr-(fr+Zn),Nr.TOP_RIGHT):new Xe(k.left+k.width-(Wr+Pn),k.top+fr+Zn),this.bottomRightContentBox=mn>0||f>0?Or(k.left+Math.min(Rt,k.width-(Ir+Dr)),k.top+Math.min(Ft,k.height+fr+Zn),Math.max(0,mn-(Wr+Pn)),f-(Vr+Pr),Nr.BOTTOM_RIGHT):new Xe(k.left+k.width-(Wr+Pn),k.top+k.height-(Vr+Pr)),this.bottomLeftContentBox=ce>0||Ue>0?Or(k.left+Ir+Dr,k.top+Kt,Math.max(0,ce-(Ir+Dr)),Ue-(Vr+Pr),Nr.BOTTOM_LEFT):new Xe(k.left+Ir+Dr,k.top+k.height-(Vr+Pr))}return R}(),Nr;(function(R){R[R.TOP_LEFT=0]="TOP_LEFT",R[R.TOP_RIGHT=1]="TOP_RIGHT",R[R.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",R[R.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Nr||(Nr={}));var Or=function(R,E,U,k,Ne){var it=4*((Math.sqrt(2)-1)/3),Dt=U*it,or=k*it,ar=R+U,Qr=E+k;switch(Ne){case Nr.TOP_LEFT:return new Ct(new Xe(R,Qr),new Xe(R,Qr-or),new Xe(ar-Dt,E),new Xe(ar,E));case Nr.TOP_RIGHT:return new Ct(new Xe(R,E),new Xe(R+Dt,E),new Xe(ar,Qr-or),new Xe(ar,Qr));case Nr.BOTTOM_RIGHT:return new Ct(new Xe(ar,E),new Xe(ar,E+or),new Xe(R+Dt,Qr),new Xe(R,Qr));case Nr.BOTTOM_LEFT:default:return new Ct(new Xe(ar,Qr),new Xe(ar-Dt,Qr),new Xe(R,E+or),new Xe(R,E))}},Un=function(R){return[R.topLeftBorderBox,R.topRightBorderBox,R.bottomRightBorderBox,R.bottomLeftBorderBox]},cn=function(R){return[R.topLeftContentBox,R.topRightContentBox,R.bottomRightContentBox,R.bottomLeftContentBox]},gi=function(R){return[R.topLeftPaddingBox,R.topRightPaddingBox,R.bottomRightPaddingBox,R.bottomLeftPaddingBox]},zn=function(){function R(E,U,k){this.offsetX=E,this.offsetY=U,this.matrix=k,this.type=0,this.target=6}return R}(),Ii=function(){function R(E,U){this.path=E,this.target=U,this.type=1}return R}(),ea=function(){function R(E){this.opacity=E,this.type=2,this.target=6}return R}(),mi=function(R){return R.type===0},Oi=function(R){return R.type===1},Ga=function(R){return R.type===2},ia=function(R,E){return R.length===E.length?R.some(function(U,k){return U===E[k]}):!1},ja=function(R,E,U,k,Ne){return R.map(function(it,Dt){switch(Dt){case 0:return it.add(E,U);case 1:return it.add(E+k,U);case 2:return it.add(E+k,U+Ne);case 3:return it.add(E,U+Ne)}return it})},Ua=function(){function R(E){this.element=E,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return R}(),Ra=function(){function R(E,U){if(this.container=E,this.parent=U,this.effects=[],this.curves=new vr(this.container),this.container.styles.opacity<1&&this.effects.push(new ea(this.container.styles.opacity)),this.container.styles.transform!==null){var k=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Ne=this.container.bounds.top+this.container.styles.transformOrigin[1].number,it=this.container.styles.transform;this.effects.push(new zn(k,Ne,it))}if(this.container.styles.overflowX!==0){var Dt=Un(this.curves),or=gi(this.curves);ia(Dt,or)?this.effects.push(new Ii(Dt,6)):(this.effects.push(new Ii(Dt,2)),this.effects.push(new Ii(or,4)))}}return R.prototype.getEffects=function(E){for(var U=[2,3].indexOf(this.container.styles.position)===-1,k=this.parent,Ne=this.effects.slice(0);k;){var it=k.effects.filter(function(ar){return!Oi(ar)});if(U||k.container.styles.position!==0||!k.parent){if(Ne.unshift.apply(Ne,it),U=[2,3].indexOf(k.container.styles.position)===-1,k.container.styles.overflowX!==0){var Dt=Un(k.curves),or=gi(k.curves);ia(Dt,or)||Ne.unshift(new Ii(or,6))}}else Ne.unshift.apply(Ne,it);k=k.parent}return Ne.filter(function(ar){return Xr(ar.target,E)})},R}(),Fs=function(R,E,U,k){R.container.elements.forEach(function(Ne){var it=Xr(Ne.flags,4),Dt=Xr(Ne.flags,2),or=new Ra(Ne,R);Xr(Ne.styles.display,2048)&&k.push(or);var ar=Xr(Ne.flags,8)?[]:k;if(it||Dt){var Qr=it||Ne.styles.isPositioned()?U:E,qr=new Ua(or);if(Ne.styles.isPositioned()||Ne.styles.opacity<1||Ne.styles.isTransformed()){var mn=Ne.styles.zIndex.order;if(mn<0){var f=0;Qr.negativeZIndex.some(function(ce,Ue){return mn>ce.element.container.styles.zIndex.order?(f=Ue,!1):f>0}),Qr.negativeZIndex.splice(f,0,qr)}else if(mn>0){var Q=0;Qr.positiveZIndex.some(function(ce,Ue){return mn>=ce.element.container.styles.zIndex.order?(Q=Ue+1,!1):Q>0}),Qr.positiveZIndex.splice(Q,0,qr)}else Qr.zeroOrAutoZIndexOrTransformedOrOpacity.push(qr)}else Ne.styles.isFloating()?Qr.nonPositionedFloats.push(qr):Qr.nonPositionedInlineLevel.push(qr);Fs(or,qr,it?qr:U,ar)}else Ne.styles.isInlineLevel()?E.inlineLevel.push(or):E.nonInlineLevel.push(or),Fs(or,E,U,ar);Xr(Ne.flags,8)&&Ks(Ne,ar)})},Ks=function(R,E){for(var U=R instanceof Go?R.start:1,k=R instanceof Go?R.reversed:!1,Ne=0;Ne<E.length;Ne++){var it=E[Ne];it.container instanceof lc&&typeof it.container.value=="number"&&it.container.value!==0&&(U=it.container.value),it.listValue=jl(U,it.container.styles.listStyleType,!0),U+=k?-1:1}},ha=function(R){var E=new Ra(R,null),U=new Ua(E),k=[];return Fs(E,U,U,k),Ks(E.container,k),U},oa=function(R,E){switch(E){case 0:return Ms(R.topLeftBorderBox,R.topLeftPaddingBox,R.topRightBorderBox,R.topRightPaddingBox);case 1:return Ms(R.topRightBorderBox,R.topRightPaddingBox,R.bottomRightBorderBox,R.bottomRightPaddingBox);case 2:return Ms(R.bottomRightBorderBox,R.bottomRightPaddingBox,R.bottomLeftBorderBox,R.bottomLeftPaddingBox);case 3:default:return Ms(R.bottomLeftBorderBox,R.bottomLeftPaddingBox,R.topLeftBorderBox,R.topLeftPaddingBox)}},ks=function(R,E){switch(E){case 0:return Ms(R.topLeftBorderBox,R.topLeftBorderDoubleOuterBox,R.topRightBorderBox,R.topRightBorderDoubleOuterBox);case 1:return Ms(R.topRightBorderBox,R.topRightBorderDoubleOuterBox,R.bottomRightBorderBox,R.bottomRightBorderDoubleOuterBox);case 2:return Ms(R.bottomRightBorderBox,R.bottomRightBorderDoubleOuterBox,R.bottomLeftBorderBox,R.bottomLeftBorderDoubleOuterBox);case 3:default:return Ms(R.bottomLeftBorderBox,R.bottomLeftBorderDoubleOuterBox,R.topLeftBorderBox,R.topLeftBorderDoubleOuterBox)}},hs=function(R,E){switch(E){case 0:return Ms(R.topLeftBorderDoubleInnerBox,R.topLeftPaddingBox,R.topRightBorderDoubleInnerBox,R.topRightPaddingBox);case 1:return Ms(R.topRightBorderDoubleInnerBox,R.topRightPaddingBox,R.bottomRightBorderDoubleInnerBox,R.bottomRightPaddingBox);case 2:return Ms(R.bottomRightBorderDoubleInnerBox,R.bottomRightPaddingBox,R.bottomLeftBorderDoubleInnerBox,R.bottomLeftPaddingBox);case 3:default:return Ms(R.bottomLeftBorderDoubleInnerBox,R.bottomLeftPaddingBox,R.topLeftBorderDoubleInnerBox,R.topLeftPaddingBox)}},Ws=function(R,E){switch(E){case 0:return lo(R.topLeftBorderStroke,R.topRightBorderStroke);case 1:return lo(R.topRightBorderStroke,R.bottomRightBorderStroke);case 2:return lo(R.bottomRightBorderStroke,R.bottomLeftBorderStroke);case 3:default:return lo(R.bottomLeftBorderStroke,R.topLeftBorderStroke)}},lo=function(R,E){var U=[];return Tt(R)?U.push(R.subdivide(.5,!1)):U.push(R),Tt(E)?U.push(E.subdivide(.5,!0)):U.push(E),U},Ms=function(R,E,U,k){var Ne=[];return Tt(R)?Ne.push(R.subdivide(.5,!1)):Ne.push(R),Tt(U)?Ne.push(U.subdivide(.5,!0)):Ne.push(U),Tt(k)?Ne.push(k.subdivide(.5,!0).reverse()):Ne.push(k),Tt(E)?Ne.push(E.subdivide(.5,!1).reverse()):Ne.push(E),Ne},Fo=function(R){var E=R.bounds,U=R.styles;return E.add(U.borderLeftWidth,U.borderTopWidth,-(U.borderRightWidth+U.borderLeftWidth),-(U.borderTopWidth+U.borderBottomWidth))},dl=function(R){var E=R.styles,U=R.bounds,k=_a(E.paddingLeft,U.width),Ne=_a(E.paddingRight,U.width),it=_a(E.paddingTop,U.width),Dt=_a(E.paddingBottom,U.width);return U.add(k+E.borderLeftWidth,it+E.borderTopWidth,-(E.borderRightWidth+E.borderLeftWidth+k+Ne),-(E.borderTopWidth+E.borderBottomWidth+it+Dt))},_c=function(R,E){return R===0?E.bounds:R===2?dl(E):Fo(E)},Fc=function(R,E){return R===0?E.bounds:R===2?dl(E):Fo(E)},Wc=function(R,E,U){var k=_c(zl(R.styles.backgroundOrigin,E),R),Ne=Fc(zl(R.styles.backgroundClip,E),R),it=gA(zl(R.styles.backgroundSize,E),U,k),Dt=it[0],or=it[1],ar=Ao(zl(R.styles.backgroundPosition,E),k.width-Dt,k.height-or),Qr=_u(zl(R.styles.backgroundRepeat,E),ar,it,k,Ne),qr=Math.round(k.left+ar[0]),mn=Math.round(k.top+ar[1]);return[Qr,qr,mn,Dt,or]},Dc=function(R){return pi(R)&&R.value===M.AUTO},jc=function(R){return typeof R=="number"},gA=function(R,E,U){var k=E[0],Ne=E[1],it=E[2],Dt=R[0],or=R[1];if(!Dt)return[0,0];if(Ti(Dt)&&or&&Ti(or))return[_a(Dt,U.width),_a(or,U.height)];var ar=jc(it);if(pi(Dt)&&(Dt.value===M.CONTAIN||Dt.value===M.COVER)){if(jc(it)){var Qr=U.width/U.height;return Qr<it!=(Dt.value===M.COVER)?[U.width,U.width/it]:[U.height*it,U.height]}return[U.width,U.height]}var qr=jc(k),mn=jc(Ne),f=qr||mn;if(Dc(Dt)&&(!or||Dc(or))){if(qr&&mn)return[k,Ne];if(!ar&&!f)return[U.width,U.height];if(f&&ar){var Q=qr?k:Ne*it,ce=mn?Ne:k/it;return[Q,ce]}var Ue=qr?k:U.width,ut=mn?Ne:U.height;return[Ue,ut]}if(ar){var ht=0,mt=0;return Ti(Dt)?ht=_a(Dt,U.width):Ti(or)&&(mt=_a(or,U.height)),Dc(Dt)?ht=mt*it:(!or||Dc(or))&&(mt=ht/it),[ht,mt]}var Ft=null,Rt=null;if(Ti(Dt)?Ft=_a(Dt,U.width):or&&Ti(or)&&(Rt=_a(or,U.height)),Ft!==null&&(!or||Dc(or))&&(Rt=qr&&mn?Ft/k*Ne:U.height),Rt!==null&&Dc(Dt)&&(Ft=qr&&mn?Rt/Ne*k:U.width),Ft!==null&&Rt!==null)return[Ft,Rt];throw new Error("Unable to calculate background-size for element")},zl=function(R,E){var U=R[E];return typeof U=="undefined"?R[0]:U},_u=function(R,E,U,k,Ne){var it=E[0],Dt=E[1],or=U[0],ar=U[1];switch(R){case 2:return[new Xe(Math.round(k.left),Math.round(k.top+Dt)),new Xe(Math.round(k.left+k.width),Math.round(k.top+Dt)),new Xe(Math.round(k.left+k.width),Math.round(ar+k.top+Dt)),new Xe(Math.round(k.left),Math.round(ar+k.top+Dt))];case 3:return[new Xe(Math.round(k.left+it),Math.round(k.top)),new Xe(Math.round(k.left+it+or),Math.round(k.top)),new Xe(Math.round(k.left+it+or),Math.round(k.height+k.top)),new Xe(Math.round(k.left+it),Math.round(k.height+k.top))];case 1:return[new Xe(Math.round(k.left+it),Math.round(k.top+Dt)),new Xe(Math.round(k.left+it+or),Math.round(k.top+Dt)),new Xe(Math.round(k.left+it+or),Math.round(k.top+Dt+ar)),new Xe(Math.round(k.left+it),Math.round(k.top+Dt+ar))];default:return[new Xe(Math.round(Ne.left),Math.round(Ne.top)),new Xe(Math.round(Ne.left+Ne.width),Math.round(Ne.top)),new Xe(Math.round(Ne.left+Ne.width),Math.round(Ne.height+Ne.top)),new Xe(Math.round(Ne.left),Math.round(Ne.height+Ne.top))]}},tc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",eA="Hidden Text",tA=function(){function R(E){this._data={},this._document=E}return R.prototype.parseMetrics=function(E,U){var k=this._document.createElement("div"),Ne=this._document.createElement("img"),it=this._document.createElement("span"),Dt=this._document.body;k.style.visibility="hidden",k.style.fontFamily=E,k.style.fontSize=U,k.style.margin="0",k.style.padding="0",k.style.whiteSpace="nowrap",Dt.appendChild(k),Ne.src=tc,Ne.width=1,Ne.height=1,Ne.style.margin="0",Ne.style.padding="0",Ne.style.verticalAlign="baseline",it.style.fontFamily=E,it.style.fontSize=U,it.style.margin="0",it.style.padding="0",it.appendChild(this._document.createTextNode(eA)),k.appendChild(it),k.appendChild(Ne);var or=Ne.offsetTop-it.offsetTop+2;k.removeChild(it),k.appendChild(this._document.createTextNode(eA)),k.style.lineHeight="normal",Ne.style.verticalAlign="super";var ar=Ne.offsetTop-k.offsetTop+2;return Dt.removeChild(k),{baseline:or,middle:ar}},R.prototype.getMetrics=function(E,U){var k=E+" "+U;return typeof this._data[k]=="undefined"&&(this._data[k]=this.parseMetrics(E,U)),this._data[k]},R}(),rc=function(){function R(E,U){this.context=E,this.options=U}return R}(),ou=1e4,vA=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;return Ne._activeEffects=[],Ne.canvas=k.canvas?k.canvas:document.createElement("canvas"),Ne.ctx=Ne.canvas.getContext("2d"),k.canvas||(Ne.canvas.width=Math.floor(k.width*k.scale),Ne.canvas.height=Math.floor(k.height*k.scale),Ne.canvas.style.width=k.width+"px",Ne.canvas.style.height=k.height+"px"),Ne.fontMetrics=new tA(document),Ne.ctx.scale(Ne.options.scale,Ne.options.scale),Ne.ctx.translate(-k.x,-k.y),Ne.ctx.textBaseline="bottom",Ne._activeEffects=[],Ne.context.logger.debug("Canvas renderer initialized ("+k.width+"x"+k.height+") with scale "+k.scale),Ne}return E.prototype.applyEffects=function(U){for(var k=this;this._activeEffects.length;)this.popEffect();U.forEach(function(Ne){return k.applyEffect(Ne)})},E.prototype.applyEffect=function(U){this.ctx.save(),Ga(U)&&(this.ctx.globalAlpha=U.opacity),mi(U)&&(this.ctx.translate(U.offsetX,U.offsetY),this.ctx.transform(U.matrix[0],U.matrix[1],U.matrix[2],U.matrix[3],U.matrix[4],U.matrix[5]),this.ctx.translate(-U.offsetX,-U.offsetY)),Oi(U)&&(this.path(U.path),this.ctx.clip()),this._activeEffects.push(U)},E.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},E.prototype.renderStack=function(U){return De(this,void 0,void 0,function(){var k;return se(this,function(Ne){switch(Ne.label){case 0:return k=U.element.container.styles,k.isVisible()?[4,this.renderStackContent(U)]:[3,2];case 1:Ne.sent(),Ne.label=2;case 2:return[2]}})})},E.prototype.renderNode=function(U){return De(this,void 0,void 0,function(){return se(this,function(k){switch(k.label){case 0:if(Xr(U.container.flags,16))debugger;return U.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(U)]:[3,3];case 1:return k.sent(),[4,this.renderNodeContent(U)];case 2:k.sent(),k.label=3;case 3:return[2]}})})},E.prototype.renderTextWithLetterSpacing=function(U,k,Ne){var it=this;if(k===0)this.ctx.fillText(U.text,U.bounds.left,U.bounds.top+Ne);else{var Dt=As(U.text);Dt.reduce(function(or,ar){return it.ctx.fillText(ar,or,U.bounds.top+Ne),or+it.ctx.measureText(ar).width},U.bounds.left)}},E.prototype.createFontStyle=function(U){var k=U.fontVariant.filter(function(Dt){return Dt==="normal"||Dt==="small-caps"}).join(""),Ne=aA(U.fontFamily).join(", "),it=Os(U.fontSize)?""+U.fontSize.number+U.fontSize.unit:U.fontSize.number+"px";return[[U.fontStyle,k,U.fontWeight,it,Ne].join(" "),Ne,it]},E.prototype.renderTextNode=function(U,k){return De(this,void 0,void 0,function(){var Ne,it,Dt,or,ar,Qr,qr,mn,f=this;return se(this,function(Q){return Ne=this.createFontStyle(k),it=Ne[0],Dt=Ne[1],or=Ne[2],this.ctx.font=it,this.ctx.direction=k.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",ar=this.fontMetrics.getMetrics(Dt,or),Qr=ar.baseline,qr=ar.middle,mn=k.paintOrder,U.textBounds.forEach(function(ce){mn.forEach(function(Ue){switch(Ue){case 0:f.ctx.fillStyle=wa(k.color),f.renderTextWithLetterSpacing(ce,k.letterSpacing,Qr);var ut=k.textShadow;ut.length&&ce.text.trim().length&&(ut.slice(0).reverse().forEach(function(ht){f.ctx.shadowColor=wa(ht.color),f.ctx.shadowOffsetX=ht.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=ht.offsetY.number*f.options.scale,f.ctx.shadowBlur=ht.blur.number,f.renderTextWithLetterSpacing(ce,k.letterSpacing,Qr)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),k.textDecorationLine.length&&(f.ctx.fillStyle=wa(k.textDecorationColor||k.color),k.textDecorationLine.forEach(function(ht){switch(ht){case 1:f.ctx.fillRect(ce.bounds.left,Math.round(ce.bounds.top+Qr),ce.bounds.width,1);break;case 2:f.ctx.fillRect(ce.bounds.left,Math.round(ce.bounds.top),ce.bounds.width,1);break;case 3:f.ctx.fillRect(ce.bounds.left,Math.ceil(ce.bounds.top+qr),ce.bounds.width,1);break}}));break;case 1:k.webkitTextStrokeWidth&&ce.text.trim().length&&(f.ctx.strokeStyle=wa(k.webkitTextStrokeColor),f.ctx.lineWidth=k.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(ce.text,ce.bounds.left,ce.bounds.top+Qr)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},E.prototype.renderReplacedElement=function(U,k,Ne){if(Ne&&U.intrinsicWidth>0&&U.intrinsicHeight>0){var it=dl(U),Dt=gi(k);this.path(Dt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Ne,0,0,U.intrinsicWidth,U.intrinsicHeight,it.left,it.top,it.width,it.height),this.ctx.restore()}},E.prototype.renderNodeContent=function(U){return De(this,void 0,void 0,function(){var k,Ne,it,Dt,or,ar,mt,mt,Qr,qr,mn,f,Rt,Q,ce,Kt,Ue,ut,ht,mt,Ft,Rt,Kt;return se(this,function(fr){switch(fr.label){case 0:this.applyEffects(U.getEffects(4)),k=U.container,Ne=U.curves,it=k.styles,Dt=0,or=k.textNodes,fr.label=1;case 1:return Dt<or.length?(ar=or[Dt],[4,this.renderTextNode(ar,it)]):[3,4];case 2:fr.sent(),fr.label=3;case 3:return Dt++,[3,1];case 4:if(!(k instanceof Ic))return[3,8];fr.label=5;case 5:return fr.trys.push([5,7,,8]),[4,this.context.cache.match(k.src)];case 6:return mt=fr.sent(),this.renderReplacedElement(k,Ne,mt),[3,8];case 7:return fr.sent(),this.context.logger.error("Error loading image "+k.src),[3,8];case 8:if(k instanceof bu&&this.renderReplacedElement(k,Ne,k.canvas),!(k instanceof Ml))return[3,12];fr.label=9;case 9:return fr.trys.push([9,11,,12]),[4,this.context.cache.match(k.svg)];case 10:return mt=fr.sent(),this.renderReplacedElement(k,Ne,mt),[3,12];case 11:return fr.sent(),this.context.logger.error("Error loading svg "+k.svg.substring(0,255)),[3,12];case 12:return k instanceof wu&&k.tree?(Qr=new E(this.context,{scale:this.options.scale,backgroundColor:k.backgroundColor,x:0,y:0,width:k.width,height:k.height}),[4,Qr.render(k.tree)]):[3,14];case 13:qr=fr.sent(),k.width&&k.height&&this.ctx.drawImage(qr,0,0,k.width,k.height,k.bounds.left,k.bounds.top,k.bounds.width,k.bounds.height),fr.label=14;case 14:if(k instanceof Wu&&(mn=Math.min(k.bounds.width,k.bounds.height),k.type===Nu?k.checked&&(this.ctx.save(),this.path([new Xe(k.bounds.left+mn*.39363,k.bounds.top+mn*.79),new Xe(k.bounds.left+mn*.16,k.bounds.top+mn*.5549),new Xe(k.bounds.left+mn*.27347,k.bounds.top+mn*.44071),new Xe(k.bounds.left+mn*.39694,k.bounds.top+mn*.5649),new Xe(k.bounds.left+mn*.72983,k.bounds.top+mn*.23),new Xe(k.bounds.left+mn*.84,k.bounds.top+mn*.34085),new Xe(k.bounds.left+mn*.39363,k.bounds.top+mn*.79)]),this.ctx.fillStyle=wa(dc),this.ctx.fill(),this.ctx.restore()):k.type===ku&&k.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(k.bounds.left+mn/2,k.bounds.top+mn/2,mn/4,0,Math.PI*2,!0),this.ctx.fillStyle=wa(dc),this.ctx.fill(),this.ctx.restore())),yA(k)&&k.value.length){switch(f=this.createFontStyle(it),Rt=f[0],Q=f[1],ce=this.fontMetrics.getMetrics(Rt,Q).baseline,this.ctx.font=Rt,this.ctx.fillStyle=wa(it.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=nA(k.styles.textAlign),Kt=dl(k),Ue=0,k.styles.textAlign){case 1:Ue+=Kt.width/2;break;case 2:Ue+=Kt.width;break}ut=Kt.add(Ue,0,0,-Kt.height/2+1),this.ctx.save(),this.path([new Xe(Kt.left,Kt.top),new Xe(Kt.left+Kt.width,Kt.top),new Xe(Kt.left+Kt.width,Kt.top+Kt.height),new Xe(Kt.left,Kt.top+Kt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ol(k.value,ut),it.letterSpacing,ce),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Xr(k.styles.display,2048))return[3,20];if(k.styles.listStyleImage===null)return[3,19];if(ht=k.styles.listStyleImage,ht.type!==0)return[3,18];mt=void 0,Ft=ht.url,fr.label=15;case 15:return fr.trys.push([15,17,,18]),[4,this.context.cache.match(Ft)];case 16:return mt=fr.sent(),this.ctx.drawImage(mt,k.bounds.left-(mt.width+10),k.bounds.top),[3,18];case 17:return fr.sent(),this.context.logger.error("Error loading list-style-image "+Ft),[3,18];case 18:return[3,20];case 19:U.listValue&&k.styles.listStyleType!==-1&&(Rt=this.createFontStyle(it)[0],this.ctx.font=Rt,this.ctx.fillStyle=wa(it.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Kt=new ie(k.bounds.left,k.bounds.top+_a(k.styles.paddingTop,k.bounds.width),k.bounds.width,Ut(it.lineHeight,it.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ol(U.listValue,Kt),it.letterSpacing,Ut(it.lineHeight,it.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),fr.label=20;case 20:return[2]}})})},E.prototype.renderStackContent=function(U){return De(this,void 0,void 0,function(){var k,Ne,ht,it,Dt,ht,or,ar,ht,Qr,qr,ht,mn,f,ht,Q,ce,ht,Ue,ut,ht;return se(this,function(mt){switch(mt.label){case 0:if(Xr(U.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(U.element)];case 1:mt.sent(),k=0,Ne=U.negativeZIndex,mt.label=2;case 2:return k<Ne.length?(ht=Ne[k],[4,this.renderStack(ht)]):[3,5];case 3:mt.sent(),mt.label=4;case 4:return k++,[3,2];case 5:return[4,this.renderNodeContent(U.element)];case 6:mt.sent(),it=0,Dt=U.nonInlineLevel,mt.label=7;case 7:return it<Dt.length?(ht=Dt[it],[4,this.renderNode(ht)]):[3,10];case 8:mt.sent(),mt.label=9;case 9:return it++,[3,7];case 10:or=0,ar=U.nonPositionedFloats,mt.label=11;case 11:return or<ar.length?(ht=ar[or],[4,this.renderStack(ht)]):[3,14];case 12:mt.sent(),mt.label=13;case 13:return or++,[3,11];case 14:Qr=0,qr=U.nonPositionedInlineLevel,mt.label=15;case 15:return Qr<qr.length?(ht=qr[Qr],[4,this.renderStack(ht)]):[3,18];case 16:mt.sent(),mt.label=17;case 17:return Qr++,[3,15];case 18:mn=0,f=U.inlineLevel,mt.label=19;case 19:return mn<f.length?(ht=f[mn],[4,this.renderNode(ht)]):[3,22];case 20:mt.sent(),mt.label=21;case 21:return mn++,[3,19];case 22:Q=0,ce=U.zeroOrAutoZIndexOrTransformedOrOpacity,mt.label=23;case 23:return Q<ce.length?(ht=ce[Q],[4,this.renderStack(ht)]):[3,26];case 24:mt.sent(),mt.label=25;case 25:return Q++,[3,23];case 26:Ue=0,ut=U.positiveZIndex,mt.label=27;case 27:return Ue<ut.length?(ht=ut[Ue],[4,this.renderStack(ht)]):[3,30];case 28:mt.sent(),mt.label=29;case 29:return Ue++,[3,27];case 30:return[2]}})})},E.prototype.mask=function(U){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(U.slice(0).reverse()),this.ctx.closePath()},E.prototype.path=function(U){this.ctx.beginPath(),this.formatPath(U),this.ctx.closePath()},E.prototype.formatPath=function(U){var k=this;U.forEach(function(Ne,it){var Dt=Tt(Ne)?Ne.start:Ne;it===0?k.ctx.moveTo(Dt.x,Dt.y):k.ctx.lineTo(Dt.x,Dt.y),Tt(Ne)&&k.ctx.bezierCurveTo(Ne.startControl.x,Ne.startControl.y,Ne.endControl.x,Ne.endControl.y,Ne.end.x,Ne.end.y)})},E.prototype.renderRepeat=function(U,k,Ne,it){this.path(U),this.ctx.fillStyle=k,this.ctx.translate(Ne,it),this.ctx.fill(),this.ctx.translate(-Ne,-it)},E.prototype.resizeImage=function(U,k,Ne){var it;if(U.width===k&&U.height===Ne)return U;var Dt=(it=this.canvas.ownerDocument)!==null&&it!==void 0?it:document,or=Dt.createElement("canvas");or.width=Math.max(1,k),or.height=Math.max(1,Ne);var ar=or.getContext("2d");return ar.drawImage(U,0,0,U.width,U.height,0,0,k,Ne),or},E.prototype.renderBackgroundImage=function(U){return De(this,void 0,void 0,function(){var k,Ne,it,Dt,or,ar;return se(this,function(Qr){switch(Qr.label){case 0:k=U.styles.backgroundImage.length-1,Ne=function(qr){var mn,f,Q,Zn,qn,Vi,Dr,Wn,Vr,ce,Zn,qn,Vi,Dr,Wn,Ue,ut,ht,mt,Ft,Rt,Kt,fr,Wr,Vr,Ir,Zn,Pn,Pr,Dr,Wn,vi,qn,Vi,Gi,ma,Yi,Is,Ds,ds,us,Ls;return se(this,function(Us){switch(Us.label){case 0:if(qr.type!==0)return[3,5];mn=void 0,f=qr.url,Us.label=1;case 1:return Us.trys.push([1,3,,4]),[4,it.context.cache.match(f)];case 2:return mn=Us.sent(),[3,4];case 3:return Us.sent(),it.context.logger.error("Error loading background-image "+f),[3,4];case 4:return mn&&(Q=Wc(U,k,[mn.width,mn.height,mn.width/mn.height]),Zn=Q[0],qn=Q[1],Vi=Q[2],Dr=Q[3],Wn=Q[4],Vr=it.ctx.createPattern(it.resizeImage(mn,Dr,Wn),"repeat"),it.renderRepeat(Zn,Vr,qn,Vi)),[3,6];case 5:ic(qr)?(ce=Wc(U,k,[null,null,null]),Zn=ce[0],qn=ce[1],Vi=ce[2],Dr=ce[3],Wn=ce[4],Ue=jo(qr.angle,Dr,Wn),ut=Ue[0],ht=Ue[1],mt=Ue[2],Ft=Ue[3],Rt=Ue[4],Kt=document.createElement("canvas"),Kt.width=Dr,Kt.height=Wn,fr=Kt.getContext("2d"),Wr=fr.createLinearGradient(ht,Ft,mt,Rt),Ll(qr.stops,ut).forEach(function(Za){return Wr.addColorStop(Za.stop,wa(Za.color))}),fr.fillStyle=Wr,fr.fillRect(0,0,Dr,Wn),Dr>0&&Wn>0&&(Vr=it.ctx.createPattern(Kt,"repeat"),it.renderRepeat(Zn,Vr,qn,Vi))):ac(qr)&&(Ir=Wc(U,k,[null,null,null]),Zn=Ir[0],Pn=Ir[1],Pr=Ir[2],Dr=Ir[3],Wn=Ir[4],vi=qr.position.length===0?[nl]:qr.position,qn=_a(vi[0],Dr),Vi=_a(vi[vi.length-1],Wn),Gi=Wa(qr,qn,Vi,Dr,Wn),ma=Gi[0],Yi=Gi[1],ma>0&&Yi>0&&(Is=it.ctx.createRadialGradient(Pn+qn,Pr+Vi,0,Pn+qn,Pr+Vi,ma),Ll(qr.stops,ma*2).forEach(function(Za){return Is.addColorStop(Za.stop,wa(Za.color))}),it.path(Zn),it.ctx.fillStyle=Is,ma!==Yi?(Ds=U.bounds.left+.5*U.bounds.width,ds=U.bounds.top+.5*U.bounds.height,us=Yi/ma,Ls=1/us,it.ctx.save(),it.ctx.translate(Ds,ds),it.ctx.transform(1,0,0,us,0,0),it.ctx.translate(-Ds,-ds),it.ctx.fillRect(Pn,Ls*(Pr-ds)+ds,Dr,Wn*Ls),it.ctx.restore()):it.ctx.fill())),Us.label=6;case 6:return k--,[2]}})},it=this,Dt=0,or=U.styles.backgroundImage.slice(0).reverse(),Qr.label=1;case 1:return Dt<or.length?(ar=or[Dt],[5,Ne(ar)]):[3,4];case 2:Qr.sent(),Qr.label=3;case 3:return Dt++,[3,1];case 4:return[2]}})})},E.prototype.renderSolidBorder=function(U,k,Ne){return De(this,void 0,void 0,function(){return se(this,function(it){return this.path(oa(Ne,k)),this.ctx.fillStyle=wa(U),this.ctx.fill(),[2]})})},E.prototype.renderDoubleBorder=function(U,k,Ne,it){return De(this,void 0,void 0,function(){var Dt,or;return se(this,function(ar){switch(ar.label){case 0:return k<3?[4,this.renderSolidBorder(U,Ne,it)]:[3,2];case 1:return ar.sent(),[2];case 2:return Dt=ks(it,Ne),this.path(Dt),this.ctx.fillStyle=wa(U),this.ctx.fill(),or=hs(it,Ne),this.path(or),this.ctx.fill(),[2]}})})},E.prototype.renderNodeBackgroundAndBorders=function(U){return De(this,void 0,void 0,function(){var k,Ne,it,Dt,or,ar,Qr,qr,mn=this;return se(this,function(f){switch(f.label){case 0:return this.applyEffects(U.getEffects(2)),k=U.container.styles,Ne=!js(k.backgroundColor)||k.backgroundImage.length,it=[{style:k.borderTopStyle,color:k.borderTopColor,width:k.borderTopWidth},{style:k.borderRightStyle,color:k.borderRightColor,width:k.borderRightWidth},{style:k.borderBottomStyle,color:k.borderBottomColor,width:k.borderBottomWidth},{style:k.borderLeftStyle,color:k.borderLeftColor,width:k.borderLeftWidth}],Dt=rA(zl(k.backgroundClip,0),U.curves),Ne||k.boxShadow.length?(this.ctx.save(),this.path(Dt),this.ctx.clip(),js(k.backgroundColor)||(this.ctx.fillStyle=wa(k.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(U.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),k.boxShadow.slice(0).reverse().forEach(function(Q){mn.ctx.save();var ce=Un(U.curves),Ue=Q.inset?0:ou,ut=ja(ce,-Ue+(Q.inset?1:-1)*Q.spread.number,(Q.inset?1:-1)*Q.spread.number,Q.spread.number*(Q.inset?-2:2),Q.spread.number*(Q.inset?-2:2));Q.inset?(mn.path(ce),mn.ctx.clip(),mn.mask(ut)):(mn.mask(ce),mn.ctx.clip(),mn.path(ut)),mn.ctx.shadowOffsetX=Q.offsetX.number+Ue,mn.ctx.shadowOffsetY=Q.offsetY.number,mn.ctx.shadowColor=wa(Q.color),mn.ctx.shadowBlur=Q.blur.number,mn.ctx.fillStyle=Q.inset?wa(Q.color):"rgba(0,0,0,1)",mn.ctx.fill(),mn.ctx.restore()}),f.label=2;case 2:or=0,ar=0,Qr=it,f.label=3;case 3:return ar<Qr.length?(qr=Qr[ar],qr.style!==0&&!js(qr.color)&&qr.width>0?qr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(qr.color,qr.width,or,U.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return qr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(qr.color,qr.width,or,U.curves,3)];case 6:return f.sent(),[3,11];case 7:return qr.style!==4?[3,9]:[4,this.renderDoubleBorder(qr.color,qr.width,or,U.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(qr.color,or,U.curves)];case 10:f.sent(),f.label=11;case 11:or++,f.label=12;case 12:return ar++,[3,3];case 13:return[2]}})})},E.prototype.renderDashedDottedBorder=function(U,k,Ne,it,Dt){return De(this,void 0,void 0,function(){var or,ar,Qr,qr,mn,f,Q,ce,Ue,ut,ht,mt,Ft,Rt,Kt,fr,Kt,fr;return se(this,function(Wr){return this.ctx.save(),or=Ws(it,Ne),ar=oa(it,Ne),Dt===2&&(this.path(ar),this.ctx.clip()),Tt(ar[0])?(Qr=ar[0].start.x,qr=ar[0].start.y):(Qr=ar[0].x,qr=ar[0].y),Tt(ar[1])?(mn=ar[1].end.x,f=ar[1].end.y):(mn=ar[1].x,f=ar[1].y),Ne===0||Ne===2?Q=Math.abs(Qr-mn):Q=Math.abs(qr-f),this.ctx.beginPath(),Dt===3?this.formatPath(or):this.formatPath(ar.slice(0,2)),ce=k<3?k*3:k*2,Ue=k<3?k*2:k,Dt===3&&(ce=k,Ue=k),ut=!0,Q<=ce*2?ut=!1:Q<=ce*2+Ue?(ht=Q/(2*ce+Ue),ce*=ht,Ue*=ht):(mt=Math.floor((Q+Ue)/(ce+Ue)),Ft=(Q-mt*ce)/(mt-1),Rt=(Q-(mt+1)*ce)/mt,Ue=Rt<=0||Math.abs(Ue-Ft)<Math.abs(Ue-Rt)?Ft:Rt),ut&&(Dt===3?this.ctx.setLineDash([0,ce+Ue]):this.ctx.setLineDash([ce,Ue])),Dt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=k):this.ctx.lineWidth=k*2+1.1,this.ctx.strokeStyle=wa(U),this.ctx.stroke(),this.ctx.setLineDash([]),Dt===2&&(Tt(ar[0])&&(Kt=ar[3],fr=ar[0],this.ctx.beginPath(),this.formatPath([new Xe(Kt.end.x,Kt.end.y),new Xe(fr.start.x,fr.start.y)]),this.ctx.stroke()),Tt(ar[1])&&(Kt=ar[1],fr=ar[2],this.ctx.beginPath(),this.formatPath([new Xe(Kt.end.x,Kt.end.y),new Xe(fr.start.x,fr.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},E.prototype.render=function(U){return De(this,void 0,void 0,function(){var k;return se(this,function(Ne){switch(Ne.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=wa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),k=ha(U),[4,this.renderStack(k)];case 1:return Ne.sent(),this.applyEffects([]),[2,this.canvas]}})})},E}(rc),yA=function(R){return R instanceof wc||R instanceof bc?!0:R instanceof Wu&&R.type!==ku&&R.type!==Nu},rA=function(R,E){switch(R){case 0:return Un(E);case 2:return cn(E);case 1:default:return gi(E)}},nA=function(R){switch(R){case 1:return"center";case 2:return"right";case 0:default:return"left"}},iA=["-apple-system","system-ui"],aA=function(R){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?R.filter(function(E){return iA.indexOf(E)===-1}):R},bA=function(R){g(E,R);function E(U,k){var Ne=R.call(this,U,k)||this;return Ne.canvas=k.canvas?k.canvas:document.createElement("canvas"),Ne.ctx=Ne.canvas.getContext("2d"),Ne.options=k,Ne.canvas.width=Math.floor(k.width*k.scale),Ne.canvas.height=Math.floor(k.height*k.scale),Ne.canvas.style.width=k.width+"px",Ne.canvas.style.height=k.height+"px",Ne.ctx.scale(Ne.options.scale,Ne.options.scale),Ne.ctx.translate(-k.x,-k.y),Ne.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+k.width+"x"+k.height+" at "+k.x+","+k.y+") with scale "+k.scale),Ne}return E.prototype.render=function(U){return De(this,void 0,void 0,function(){var k,Ne;return se(this,function(it){switch(it.label){case 0:return k=Bl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,U),[4,Hc(k)];case 1:return Ne=it.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=wa(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Ne,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},E}(rc),Hc=function(R){return new Promise(function(E,U){var k=new Image;k.onload=function(){E(k)},k.onerror=U,k.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(R))})},$c=function(){function R(E){var U=E.id,k=E.enabled;this.id=U,this.enabled=k,this.start=Date.now()}return R.prototype.debug=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Me([this.id,this.getTime()+"ms"],E)):this.info.apply(this,E))},R.prototype.getTime=function(){return Date.now()-this.start},R.prototype.info=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Me([this.id,this.getTime()+"ms"],E))},R.prototype.warn=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Me([this.id,this.getTime()+"ms"],E)):this.info.apply(this,E))},R.prototype.error=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Me([this.id,this.getTime()+"ms"],E)):this.info.apply(this,E))},R.instances={},R}(),Uc=function(){function R(E,U){var k;this.windowBounds=U,this.instanceName="#"+R.instanceCount++,this.logger=new $c({id:this.instanceName,enabled:E.logging}),this.cache=(k=E.cache)!==null&&k!==void 0?k:new i(this,E)}return R.instanceCount=1,R}(),Vc=function(R,E){return E===void 0&&(E={}),sA(R,E)};typeof window!="undefined"&&r.setContext(window);var sA=function(R,E){return De(void 0,void 0,void 0,function(){var U,k,Ne,it,Dt,or,ar,Qr,qr,mn,f,Q,ce,Ue,ut,ht,mt,Ft,Rt,Kt,Wr,fr,Wr,Vr,Ir,Zn,Pn,Pr,Dr,Wn,vi,qn,Vi,Gi,ma,Yi,Is,Ds,ds,us;return se(this,function(Ls){switch(Ls.label){case 0:if(!R||typeof R!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(U=R.ownerDocument,!U)throw new Error("Element is not attached to a Document");if(k=U.defaultView,!k)throw new Error("Document is not attached to a Window");return Ne={allowTaint:(Vr=E.allowTaint)!==null&&Vr!==void 0?Vr:!1,imageTimeout:(Ir=E.imageTimeout)!==null&&Ir!==void 0?Ir:15e3,proxy:E.proxy,useCORS:(Zn=E.useCORS)!==null&&Zn!==void 0?Zn:!1},it=we({logging:(Pn=E.logging)!==null&&Pn!==void 0?Pn:!0,cache:E.cache},Ne),Dt={windowWidth:(Pr=E.windowWidth)!==null&&Pr!==void 0?Pr:k.innerWidth,windowHeight:(Dr=E.windowHeight)!==null&&Dr!==void 0?Dr:k.innerHeight,scrollX:(Wn=E.scrollX)!==null&&Wn!==void 0?Wn:k.pageXOffset,scrollY:(vi=E.scrollY)!==null&&vi!==void 0?vi:k.pageYOffset},or=new ie(Dt.scrollX,Dt.scrollY,Dt.windowWidth,Dt.windowHeight),ar=new Uc(it,or),Qr=(qn=E.foreignObjectRendering)!==null&&qn!==void 0?qn:!1,qr={allowTaint:(Vi=E.allowTaint)!==null&&Vi!==void 0?Vi:!1,onclone:E.onclone,ignoreElements:E.ignoreElements,inlineImages:Qr,copyStyles:Qr},ar.logger.debug("Starting document clone with size "+or.width+"x"+or.height+" scrolled to "+-or.left+","+-or.top),mn=new ul(ar,R,qr),f=mn.clonedReferenceElement,f?[4,mn.toIFrame(U,or)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Q=Ls.sent(),ce=ws(f)||Va(f)?O(f.ownerDocument):Y(ar,f),Ue=ce.width,ut=ce.height,ht=ce.left,mt=ce.top,Ft=wA(ar,f,E.backgroundColor),Rt={canvas:E.canvas,backgroundColor:Ft,scale:(ma=(Gi=E.scale)!==null&&Gi!==void 0?Gi:k.devicePixelRatio)!==null&&ma!==void 0?ma:1,x:((Yi=E.x)!==null&&Yi!==void 0?Yi:0)+ht,y:((Is=E.y)!==null&&Is!==void 0?Is:0)+mt,width:(Ds=E.width)!==null&&Ds!==void 0?Ds:Math.ceil(Ue),height:(ds=E.height)!==null&&ds!==void 0?ds:Math.ceil(ut)},Qr?(ar.logger.debug("Document cloned, using foreign object rendering"),Wr=new bA(ar,Rt),[4,Wr.render(f)]):[3,3];case 2:return Kt=Ls.sent(),[3,5];case 3:return ar.logger.debug("Document cloned, element located at "+ht+","+mt+" with size "+Ue+"x"+ut+" using computed rendering"),ar.logger.debug("Starting DOM parsing"),fr=fc(ar,f),Ft===fr.styles.backgroundColor&&(fr.styles.backgroundColor=bo.TRANSPARENT),ar.logger.debug("Starting renderer for element at "+Rt.x+","+Rt.y+" with size "+Rt.width+"x"+Rt.height),Wr=new vA(ar,Rt),[4,Wr.render(fr)];case 4:Kt=Ls.sent(),Ls.label=5;case 5:return(!((us=E.removeContainer)!==null&&us!==void 0)||us)&&(ul.destroy(Q)||ar.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ar.logger.debug("Finished rendering"),[2,Kt]}})})},wA=function(R,E,U){var k=E.ownerDocument,Ne=k.documentElement?so(R,getComputedStyle(k.documentElement).backgroundColor):bo.TRANSPARENT,it=k.body?so(R,getComputedStyle(k.body).backgroundColor):bo.TRANSPARENT,Dt=typeof U=="string"?so(R,U):U===null?bo.TRANSPARENT:4294967295;return E===k.documentElement?js(Ne)?js(it)?Dt:it:Ne:Dt};return Vc})},44164:function(bn,Zt,g){var we=g(97671);(function(se,Me){bn.exports=Me(g(73207),g(64270))})(self,function(De,se){return function(){var Me={"./src/plugin/hyperlinks.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.string.link.js"),A=o.n(a),m=o("./src/worker.js"),S=o("./src/utils.js"),$=[],F={toContainer:m.default.prototype.toContainer,toPdf:m.default.prototype.toPdf};m.default.prototype.toContainer=function(){return F.toContainer.call(this).then(function(){if(this.opt.enableLinks){var ee=this.prop.container,B=ee.querySelectorAll("a"),G=(0,S.unitConvert)(ee.getBoundingClientRect(),this.prop.pageSize.k);$=[],Array.prototype.forEach.call(B,function(le){for(var J=le.getClientRects(),be=0;be<J.length;be++){var Ce=(0,S.unitConvert)(J[be],this.prop.pageSize.k);Ce.left-=G.left,Ce.top-=G.top;var Re=Math.floor(Ce.top/this.prop.pageSize.inner.height)+1,ae=this.opt.margin[0]+Ce.top%this.prop.pageSize.inner.height,me=this.opt.margin[1]+Ce.left;$.push({page:Re,top:ae,left:me,clientRect:Ce,link:le})}},this)}})},m.default.prototype.toPdf=function(){return F.toPdf.call(this).then(function(){if(this.opt.enableLinks){$.forEach(function(B){this.prop.pdf.setPage(B.page),this.prop.pdf.link(B.left,B.top,B.clientRect.width,B.clientRect.height,{url:B.link.href})},this);var ee=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(ee)}})}},"./src/plugin/jspdf-plugin.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.symbol.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.symbol.description.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.object.to-string.js"),S=o.n(m),$=o("./node_modules/core-js/modules/es.symbol.iterator.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.array.iterator.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.string.iterator.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=o.n(G),J=o("jspdf"),be=o.n(J);function Ce(Re){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(me){return typeof me}:Ce=function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},Ce(Re)}J.jsPDF.getPageSize=function(Re,ae,me){if(Ce(Re)==="object"){var T=Re;Re=T.orientation,ae=T.unit||ae,me=T.format||me}ae=ae||"mm",me=me||"a4",Re=(""+(Re||"P")).toLowerCase();var Ee=(""+me).toLowerCase(),oe={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(ae){case"pt":var he=1;break;case"mm":var he=72/25.4;break;case"cm":var he=72/2.54;break;case"in":var he=72;break;case"px":var he=72/96;break;case"pc":var he=12;break;case"em":var he=12;break;case"ex":var he=6;break;default:throw"Invalid unit: "+ae}if(oe.hasOwnProperty(Ee))var ve=oe[Ee][1]/he,_=oe[Ee][0]/he;else try{var ve=me[1],_=me[0]}catch(pe){throw new Error("Invalid format: "+me)}if(Re==="p"||Re==="portrait"){if(Re="p",_>ve){var P=_;_=ve,ve=P}}else if(Re==="l"||Re==="landscape"){if(Re="l",ve>_){var P=_;_=ve,ve=P}}else throw"Invalid orientation: "+Re;var X={width:_,height:ve,unit:ae,k:he};return X},n.default=J.jsPDF},"./src/plugin/pagebreaks.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.array.concat.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.array.slice.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.array.join.js"),S=o.n(m),$=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.object.keys.js"),V=o.n(H),ee=o("./src/worker.js"),B=o("./src/utils.js"),G={toContainer:ee.default.prototype.toContainer};ee.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},ee.default.prototype.toContainer=function(){return G.toContainer.call(this).then(function(){var be=this.prop.container,Ce=this.prop.pageSize.inner.px.height,Re=[].concat(this.opt.pagebreak.mode),ae={avoidAll:Re.indexOf("avoid-all")!==-1,css:Re.indexOf("css")!==-1,legacy:Re.indexOf("legacy")!==-1},me={},T=this;["before","after","avoid"].forEach(function(he){var ve=ae.avoidAll&&he==="avoid";me[he]=ve?[]:[].concat(T.opt.pagebreak[he]||[]),me[he].length>0&&(me[he]=Array.prototype.slice.call(be.querySelectorAll(me[he].join(", "))))});var Ee=be.querySelectorAll(".html2pdf__page-break");Ee=Array.prototype.slice.call(Ee);var oe=be.querySelectorAll("*");Array.prototype.forEach.call(oe,function(ve){var _={before:!1,after:ae.legacy&&Ee.indexOf(ve)!==-1,avoid:ae.avoidAll};if(ae.css){var P=window.getComputedStyle(ve),X=["always","page","left","right"],pe=["avoid","avoid-page"];_={before:_.before||X.indexOf(P.breakBefore||P.pageBreakBefore)!==-1,after:_.after||X.indexOf(P.breakAfter||P.pageBreakAfter)!==-1,avoid:_.avoid||pe.indexOf(P.breakInside||P.pageBreakInside)!==-1}}Object.keys(_).forEach(function(Jt){_[Jt]=_[Jt]||me[Jt].indexOf(ve)!==-1});var Je=ve.getBoundingClientRect();if(_.avoid&&!_.before){var at=Math.floor(Je.top/Ce),nt=Math.floor(Je.bottom/Ce),Lt=Math.abs(Je.bottom-Je.top)/Ce;nt!==at&&Lt<=1&&(_.before=!0)}if(_.before){var ur=(0,B.createElement)("div",{style:{display:"block",height:Ce-Je.top%Ce+"px"}});ve.parentNode.insertBefore(ur,ve)}if(_.after){var ur=(0,B.createElement)("div",{style:{display:"block",height:Ce-Je.bottom%Ce+"px"}});ve.parentNode.insertBefore(ur,ve.nextSibling)}})})}},"./src/utils.js":function(I,n,o){"use strict";o.r(n),o.d(n,{objType:function(){return Re},createElement:function(){return ae},cloneNode:function(){return me},unitConvert:function(){return T},toPx:function(){return Ee}});var L=o("./node_modules/core-js/modules/es.number.constructor.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.symbol.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.symbol.description.js"),S=o.n(m),$=o("./node_modules/core-js/modules/es.object.to-string.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.symbol.iterator.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.array.iterator.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/es.string.iterator.js"),le=o.n(G),J=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),be=o.n(J);function Ce(oe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(ve){return typeof ve}:Ce=function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},Ce(oe)}var Re=function(he){var ve=Ce(he);return ve==="undefined"?"undefined":ve==="string"||he instanceof String?"string":ve==="number"||he instanceof Number?"number":ve==="function"||he instanceof Function?"function":he&&he.constructor===Array?"array":he&&he.nodeType===1?"element":ve==="object"?"object":"unknown"},ae=function(he,ve){var _=document.createElement(he);if(ve.className&&(_.className=ve.className),ve.innerHTML){_.innerHTML=ve.innerHTML;for(var P=_.getElementsByTagName("script"),X=P.length;X-- >0;null)P[X].parentNode.removeChild(P[X])}for(var pe in ve.style)_.style[pe]=ve.style[pe];return _},me=function oe(he,ve){for(var _=he.nodeType===3?document.createTextNode(he.nodeValue):he.cloneNode(!1),P=he.firstChild;P;P=P.nextSibling)(ve===!0||P.nodeType!==1||P.nodeName!=="SCRIPT")&&_.appendChild(oe(P,ve));return he.nodeType===1&&(he.nodeName==="CANVAS"?(_.width=he.width,_.height=he.height,_.getContext("2d").drawImage(he,0,0)):(he.nodeName==="TEXTAREA"||he.nodeName==="SELECT")&&(_.value=he.value),_.addEventListener("load",function(){_.scrollTop=he.scrollTop,_.scrollLeft=he.scrollLeft},!0)),_},T=function(he,ve){if(Re(he)==="number")return he*72/96/ve;var _={};for(var P in he)_[P]=he[P]*72/96/ve;return _},Ee=function(he,ve){return Math.floor(he*ve/72*96)}},"./src/worker.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.object.assign.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.array.map.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.object.keys.js"),S=o.n(m),$=o("./node_modules/core-js/modules/es.array.concat.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.object.to-string.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.regexp.to-string.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/es.function.name.js"),le=o.n(G),J=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),be=o.n(J),Ce=o("jspdf"),Re=o.n(Ce),ae=o("html2canvas"),me=o.n(ae),T=o("./src/utils.js"),Ee=o("./node_modules/es6-promise/dist/es6-promise.js"),oe=o.n(Ee),he=oe().Promise,ve=function _(P){var X=Object.assign(_.convert(he.resolve()),JSON.parse(JSON.stringify(_.template))),pe=_.convert(he.resolve(),X);return pe=pe.setProgress(1,_,1,[_]),pe=pe.set(P),pe};ve.prototype=Object.create(he.prototype),ve.prototype.constructor=ve,ve.convert=function(P,X){return P.__proto__=X||ve.prototype,P},ve.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},ve.prototype.from=function(P,X){function pe(Je){switch((0,T.objType)(Je)){case"string":return"string";case"element":return Je.nodeName.toLowerCase&&Je.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(X=X||pe(P),X){case"string":return this.set({src:(0,T.createElement)("div",{innerHTML:P})});case"element":return this.set({src:P});case"canvas":return this.set({canvas:P});case"img":return this.set({img:P});default:return this.error("Unknown source type.")}})},ve.prototype.to=function(P){switch(P){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},ve.prototype.toContainer=function(){var P=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(P).then(function(){var pe={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Je={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};pe.opacity=0;var at=(0,T.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,T.createElement)("div",{className:"html2pdf__overlay",style:pe}),this.prop.container=(0,T.createElement)("div",{className:"html2pdf__container",style:Je}),this.prop.container.appendChild(at),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},ve.prototype.toCanvas=function(){var P=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(P).then(function(){var pe=Object.assign({},this.opt.html2canvas);return delete pe.onrendered,ae(this.prop.container,pe)}).then(function(pe){var Je=this.opt.html2canvas.onrendered||function(){};Je(pe),this.prop.canvas=pe,document.body.removeChild(this.prop.overlay)})},ve.prototype.toImg=function(){var P=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(P).then(function(){var pe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=pe})},ve.prototype.toPdf=function(){var P=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(P).then(function(){var pe=this.prop.canvas,Je=this.opt,at=pe.height,nt=Math.floor(pe.width*this.prop.pageSize.inner.ratio),Lt=Math.ceil(at/nt),ur=this.prop.pageSize.inner.height,Jt=document.createElement("canvas"),We=Jt.getContext("2d");Jt.width=pe.width,Jt.height=nt,this.prop.pdf=this.prop.pdf||new Ce.jsPDF(Je.jsPDF);for(var Cr=0;Cr<Lt;Cr++){Cr===Lt-1&&at%nt!==0&&(Jt.height=at%nt,ur=Jt.height*this.prop.pageSize.inner.width/Jt.width);var Er=Jt.width,Kr=Jt.height;We.fillStyle="white",We.fillRect(0,0,Er,Kr),We.drawImage(pe,0,Cr*nt,Er,Kr,0,0,Er,Kr),Cr&&this.prop.pdf.addPage();var _r=Jt.toDataURL("image/"+Je.image.type,Je.image.quality);this.prop.pdf.addImage(_r,Je.image.type,Je.margin[1],Je.margin[0],this.prop.pageSize.inner.width,ur)}})},ve.prototype.output=function(P,X,pe){return pe=pe||"pdf",pe.toLowerCase()==="img"||pe.toLowerCase()==="image"?this.outputImg(P,X):this.outputPdf(P,X)},ve.prototype.outputPdf=function(P,X){var pe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(pe).then(function(){return this.prop.pdf.output(P,X)})},ve.prototype.outputImg=function(P,X){var pe=[function(){return this.prop.img||this.toImg()}];return this.thenList(pe).then(function(){switch(P){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+P+'" is not supported.'}})},ve.prototype.save=function(P){var X=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(X).set(P?{filename:P}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ve.prototype.set=function(P){if((0,T.objType)(P)!=="object")return this;var X=Object.keys(P||{}).map(function(pe){switch(pe){case"margin":return this.setMargin.bind(this,P.margin);case"jsPDF":return function(){return this.opt.jsPDF=P.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,P.pageSize);default:return pe in ve.template.prop?function(){this.prop[pe]=P[pe]}:function(){this.opt[pe]=P[pe]}}},this);return this.then(function(){return this.thenList(X)})},ve.prototype.get=function(P,X){return this.then(function(){var Je=P in ve.template.prop?this.prop[P]:this.opt[P];return X?X(Je):Je})},ve.prototype.setMargin=function(P){return this.then(function(){switch((0,T.objType)(P)){case"number":P=[P,P,P,P];case"array":if(P.length===2&&(P=[P[0],P[1],P[0],P[1]]),P.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=P}).then(this.setPageSize)},ve.prototype.setPageSize=function(P){return this.then(function(){P=P||Ce.jsPDF.getPageSize(this.opt.jsPDF),P.hasOwnProperty("inner")||(P.inner={width:P.width-this.opt.margin[1]-this.opt.margin[3],height:P.height-this.opt.margin[0]-this.opt.margin[2]},P.inner.px={width:(0,T.toPx)(P.inner.width,P.k),height:(0,T.toPx)(P.inner.height,P.k)},P.inner.ratio=P.inner.height/P.inner.width),this.prop.pageSize=P})},ve.prototype.setProgress=function(P,X,pe,Je){return P!=null&&(this.progress.val=P),X!=null&&(this.progress.state=X),pe!=null&&(this.progress.n=pe),Je!=null&&(this.progress.stack=Je),this.progress.ratio=this.progress.val/this.progress.state,this},ve.prototype.updateProgress=function(P,X,pe,Je){return this.setProgress(P?this.progress.val+P:null,X||null,pe?this.progress.n+pe:null,Je?this.progress.stack.concat(Je):null)},ve.prototype.then=function(P,X){var pe=this;return this.thenCore(P,X,function(at,nt){return pe.updateProgress(null,null,1,[at]),he.prototype.then.call(this,function(ur){return pe.updateProgress(null,at),ur}).then(at,nt).then(function(ur){return pe.updateProgress(1),ur})})},ve.prototype.thenCore=function(P,X,pe){pe=pe||he.prototype.then;var Je=this;P&&(P=P.bind(Je)),X&&(X=X.bind(Je));var at=he.toString().indexOf("[native code]")!==-1&&he.name==="Promise",nt=at?Je:ve.convert(Object.assign({},Je),he.prototype),Lt=pe.call(nt,P,X);return ve.convert(Lt,Je.__proto__)},ve.prototype.thenExternal=function(P,X){return he.prototype.then.call(this,P,X)},ve.prototype.thenList=function(P){var X=this;return P.forEach(function(Je){X=X.thenCore(Je)}),X},ve.prototype.catch=function(_){_&&(_=_.bind(this));var P=he.prototype.catch.call(this,_);return ve.convert(P,this)},ve.prototype.catchExternal=function(P){return he.prototype.catch.call(this,P)},ve.prototype.error=function(P){return this.then(function(){throw new Error(P)})},ve.prototype.using=ve.prototype.set,ve.prototype.saveAs=ve.prototype.save,ve.prototype.export=ve.prototype.output,ve.prototype.run=ve.prototype.then,n.default=ve},"./node_modules/core-js/internals/a-function.js":function(I){I.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},"./node_modules/core-js/internals/a-possible-prototype.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js");I.exports=function(p){if(!L(p)&&p!==null)throw TypeError("Can't set "+String(p)+" as a prototype");return p}},"./node_modules/core-js/internals/add-to-unscopables.js":function(I,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js"),p=o("./node_modules/core-js/internals/object-create.js"),a=o("./node_modules/core-js/internals/object-define-property.js"),A=L("unscopables"),m=Array.prototype;m[A]==null&&a.f(m,A,{configurable:!0,value:p(null)}),I.exports=function(S){m[A][S]=!0}},"./node_modules/core-js/internals/an-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js");I.exports=function(p){if(!L(p))throw TypeError(String(p)+" is not an object");return p}},"./node_modules/core-js/internals/array-for-each.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/array-iteration.js").forEach,p=o("./node_modules/core-js/internals/array-method-is-strict.js"),a=p("forEach");I.exports=a?[].forEach:function(m){return L(this,m,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js"),A=function(m){return function(S,$,F){var H=L(S),V=p(H.length),ee=a(F,V),B;if(m&&$!=$){for(;V>ee;)if(B=H[ee++],B!=B)return!0}else for(;V>ee;ee++)if((m||ee in H)&&H[ee]===$)return m||ee||0;return!m&&-1}};I.exports={includes:A(!0),indexOf:A(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(I,n,o){var L=o("./node_modules/core-js/internals/function-bind-context.js"),p=o("./node_modules/core-js/internals/indexed-object.js"),a=o("./node_modules/core-js/internals/to-object.js"),A=o("./node_modules/core-js/internals/to-length.js"),m=o("./node_modules/core-js/internals/array-species-create.js"),S=[].push,$=function(F){var H=F==1,V=F==2,ee=F==3,B=F==4,G=F==6,le=F==7,J=F==5||G;return function(be,Ce,Re,ae){for(var me=a(be),T=p(me),Ee=L(Ce,Re,3),oe=A(T.length),he=0,ve=ae||m,_=H?ve(be,oe):V||le?ve(be,0):void 0,P,X;oe>he;he++)if((J||he in T)&&(P=T[he],X=Ee(P,he,me),F))if(H)_[he]=X;else if(X)switch(F){case 3:return!0;case 5:return P;case 6:return he;case 2:S.call(_,P)}else switch(F){case 4:return!1;case 7:S.call(_,P)}return G?-1:ee||B?B:_}};I.exports={forEach:$(0),map:$(1),filter:$(2),some:$(3),every:$(4),find:$(5),findIndex:$(6),filterReject:$(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/well-known-symbol.js"),a=o("./node_modules/core-js/internals/engine-v8-version.js"),A=p("species");I.exports=function(m){return a>=51||!L(function(){var S=[],$=S.constructor={};return $[A]=function(){return{foo:1}},S[m](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/fails.js");I.exports=function(p,a){var A=[][p];return!!A&&L(function(){A.call(null,a||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/is-array.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),A=a("species");I.exports=function(m){var S;return p(m)&&(S=m.constructor,typeof S=="function"&&(S===Array||p(S.prototype))?S=void 0:L(S)&&(S=S[A],S===null&&(S=void 0))),S===void 0?Array:S}},"./node_modules/core-js/internals/array-species-create.js":function(I,n,o){var L=o("./node_modules/core-js/internals/array-species-constructor.js");I.exports=function(p,a){return new(L(p))(a===0?0:a)}},"./node_modules/core-js/internals/classof-raw.js":function(I){var n={}.toString;I.exports=function(o){return n.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/classof-raw.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),A=a("toStringTag"),m=p(function(){return arguments}())=="Arguments",S=function($,F){try{return $[F]}catch(H){}};I.exports=L?p:function($){var F,H,V;return $===void 0?"Undefined":$===null?"Null":typeof(H=S(F=Object($),A))=="string"?H:m?p(F):(V=p(F))=="Object"&&typeof F.callee=="function"?"Arguments":V}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(I,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/own-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),A=o("./node_modules/core-js/internals/object-define-property.js");I.exports=function(m,S){for(var $=p(S),F=A.f,H=a.f,V=0;V<$.length;V++){var ee=$[V];L(m,ee)||F(m,ee,H(S,ee))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js");I.exports=!L(function(){function p(){}return p.prototype.constructor=null,Object.getPrototypeOf(new p)!==p.prototype})},"./node_modules/core-js/internals/create-html.js":function(I,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=/"/g;I.exports=function(A,m,S,$){var F=p(L(A)),H="<"+m;return S!==""&&(H+=" "+S+'="'+p($).replace(a,""")+'"'),H+">"+F+"</"+m+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,p=o("./node_modules/core-js/internals/object-create.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),A=o("./node_modules/core-js/internals/set-to-string-tag.js"),m=o("./node_modules/core-js/internals/iterators.js"),S=function(){return this};I.exports=function($,F,H){var V=F+" Iterator";return $.prototype=p(L,{next:a(1,H)}),A($,V,!1,!0),m[V]=S,$}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js");I.exports=L?function(A,m,S){return p.f(A,m,a(1,S))}:function(A,m,S){return A[m]=S,A}},"./node_modules/core-js/internals/create-property-descriptor.js":function(I){I.exports=function(n,o){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-property-key.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js");I.exports=function(A,m,S){var $=L(m);$ in A?p.f(A,$,a(0,S)):A[$]=S}},"./node_modules/core-js/internals/define-iterator.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/create-iterator-constructor.js"),a=o("./node_modules/core-js/internals/object-get-prototype-of.js"),A=o("./node_modules/core-js/internals/object-set-prototype-of.js"),m=o("./node_modules/core-js/internals/set-to-string-tag.js"),S=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),$=o("./node_modules/core-js/internals/redefine.js"),F=o("./node_modules/core-js/internals/well-known-symbol.js"),H=o("./node_modules/core-js/internals/is-pure.js"),V=o("./node_modules/core-js/internals/iterators.js"),ee=o("./node_modules/core-js/internals/iterators-core.js"),B=ee.IteratorPrototype,G=ee.BUGGY_SAFARI_ITERATORS,le=F("iterator"),J="keys",be="values",Ce="entries",Re=function(){return this};I.exports=function(ae,me,T,Ee,oe,he,ve){p(T,me,Ee);var _=function(We){if(We===oe&&at)return at;if(!G&&We in pe)return pe[We];switch(We){case J:return function(){return new T(this,We)};case be:return function(){return new T(this,We)};case Ce:return function(){return new T(this,We)}}return function(){return new T(this)}},P=me+" Iterator",X=!1,pe=ae.prototype,Je=pe[le]||pe["@@iterator"]||oe&&pe[oe],at=!G&&Je||_(oe),nt=me=="Array"&&pe.entries||Je,Lt,ur,Jt;if(nt&&(Lt=a(nt.call(new ae)),B!==Object.prototype&&Lt.next&&(!H&&a(Lt)!==B&&(A?A(Lt,B):typeof Lt[le]!="function"&&S(Lt,le,Re)),m(Lt,P,!0,!0),H&&(V[P]=Re))),oe==be&&Je&&Je.name!==be&&(X=!0,at=function(){return Je.call(this)}),(!H||ve)&&pe[le]!==at&&S(pe,le,at),V[me]=at,oe)if(ur={values:_(be),keys:he?at:_(J),entries:_(Ce)},ve)for(Jt in ur)(G||X||!(Jt in pe))&&$(pe,Jt,ur[Jt]);else L({target:me,proto:!0,forced:G||X},ur);return ur}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/path.js"),p=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),A=o("./node_modules/core-js/internals/object-define-property.js").f;I.exports=function(m){var S=L.Symbol||(L.Symbol={});p(S,m)||A(S,m,{value:a.f(m)})}},"./node_modules/core-js/internals/descriptors.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js");I.exports=!L(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/is-object.js"),a=L.document,A=p(a)&&p(a.createElement);I.exports=function(m){return A?a.createElement(m):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(I){I.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js");I.exports=L("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/engine-user-agent.js"),a=L.process,A=L.Deno,m=a&&a.versions||A&&A.version,S=m&&m.v8,$,F;S?($=S.split("."),F=$[0]<4?1:$[0]+$[1]):p&&($=p.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=p.match(/Chrome\/(\d+)/),$&&(F=$[1]))),I.exports=F&&+F},"./node_modules/core-js/internals/enum-bug-keys.js":function(I){I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),A=o("./node_modules/core-js/internals/redefine.js"),m=o("./node_modules/core-js/internals/set-global.js"),S=o("./node_modules/core-js/internals/copy-constructor-properties.js"),$=o("./node_modules/core-js/internals/is-forced.js");I.exports=function(F,H){var V=F.target,ee=F.global,B=F.stat,G,le,J,be,Ce,Re;if(ee?le=L:B?le=L[V]||m(V,{}):le=(L[V]||{}).prototype,le)for(J in H){if(Ce=H[J],F.noTargetGet?(Re=p(le,J),be=Re&&Re.value):be=le[J],G=$(ee?J:V+(B?".":"#")+J,F.forced),!G&&be!==void 0){if(typeof Ce==typeof be)continue;S(Ce,be)}(F.sham||be&&be.sham)&&a(Ce,"sham",!0),A(le,J,Ce,F)}}},"./node_modules/core-js/internals/fails.js":function(I){I.exports=function(n){try{return!!n()}catch(o){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(I,n,o){var L=o("./node_modules/core-js/internals/a-function.js");I.exports=function(p,a,A){if(L(p),a===void 0)return p;switch(A){case 0:return function(){return p.call(a)};case 1:return function(m){return p.call(a,m)};case 2:return function(m,S){return p.call(a,m,S)};case 3:return function(m,S,$){return p.call(a,m,S,$)}}return function(){return p.apply(a,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=function(a){return typeof a=="function"?a:void 0};I.exports=function(a,A){return arguments.length<2?p(L[a]):L[a]&&L[a][A]}},"./node_modules/core-js/internals/global.js":function(I){var n=function(o){return o&&o.Math==Math&&o};I.exports=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof g.g=="object"&&g.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-object.js"),p={}.hasOwnProperty;I.exports=Object.hasOwn||function(A,m){return p.call(L(A),m)}},"./node_modules/core-js/internals/hidden-keys.js":function(I){I.exports={}},"./node_modules/core-js/internals/html.js":function(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js");I.exports=L("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/document-create-element.js");I.exports=!L&&!p(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/classof-raw.js"),a="".split;I.exports=L(function(){return!Object("z").propertyIsEnumerable(0)})?function(A){return p(A)=="String"?a.call(A,""):Object(A)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/object-set-prototype-of.js");I.exports=function(a,A,m){var S,$;return p&&typeof(S=A.constructor)=="function"&&S!==m&&L($=S.prototype)&&$!==m.prototype&&p(a,$),a}},"./node_modules/core-js/internals/inspect-source.js":function(I,n,o){var L=o("./node_modules/core-js/internals/shared-store.js"),p=Function.toString;typeof L.inspectSource!="function"&&(L.inspectSource=function(a){return p.call(a)}),I.exports=L.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(I,n,o){var L=o("./node_modules/core-js/internals/native-weak-map.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/is-object.js"),A=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=o("./node_modules/core-js/internals/has.js"),S=o("./node_modules/core-js/internals/shared-store.js"),$=o("./node_modules/core-js/internals/shared-key.js"),F=o("./node_modules/core-js/internals/hidden-keys.js"),H="Object already initialized",V=p.WeakMap,ee,B,G,le=function(T){return G(T)?B(T):ee(T,{})},J=function(T){return function(Ee){var oe;if(!a(Ee)||(oe=B(Ee)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return oe}};if(L||S.state){var be=S.state||(S.state=new V),Ce=be.get,Re=be.has,ae=be.set;ee=function(T,Ee){if(Re.call(be,T))throw new TypeError(H);return Ee.facade=T,ae.call(be,T,Ee),Ee},B=function(T){return Ce.call(be,T)||{}},G=function(T){return Re.call(be,T)}}else{var me=$("state");F[me]=!0,ee=function(T,Ee){if(m(T,me))throw new TypeError(H);return Ee.facade=T,A(T,me,Ee),Ee},B=function(T){return m(T,me)?T[me]:{}},G=function(T){return m(T,me)}}I.exports={set:ee,get:B,has:G,enforce:le,getterFor:J}},"./node_modules/core-js/internals/is-array.js":function(I,n,o){var L=o("./node_modules/core-js/internals/classof-raw.js");I.exports=Array.isArray||function(a){return L(a)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=/#|\.prototype\./,a=function(F,H){var V=m[A(F)];return V==$?!0:V==S?!1:typeof H=="function"?L(H):!!H},A=a.normalize=function(F){return String(F).replace(p,".").toLowerCase()},m=a.data={},S=a.NATIVE="N",$=a.POLYFILL="P";I.exports=a},"./node_modules/core-js/internals/is-object.js":function(I){I.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},"./node_modules/core-js/internals/is-pure.js":function(I){I.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js"),p=o("./node_modules/core-js/internals/use-symbol-as-uid.js");I.exports=p?function(a){return typeof a=="symbol"}:function(a){var A=L("Symbol");return typeof A=="function"&&Object(a)instanceof A}},"./node_modules/core-js/internals/iterators-core.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/object-get-prototype-of.js"),a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),A=o("./node_modules/core-js/internals/has.js"),m=o("./node_modules/core-js/internals/well-known-symbol.js"),S=o("./node_modules/core-js/internals/is-pure.js"),$=m("iterator"),F=!1,H=function(){return this},V,ee,B;[].keys&&(B=[].keys(),"next"in B?(ee=p(p(B)),ee!==Object.prototype&&(V=ee)):F=!0);var G=V==null||L(function(){var le={};return V[$].call(le)!==le});G&&(V={}),(!S||G)&&!A(V,$)&&a(V,$,H),I.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:F}},"./node_modules/core-js/internals/iterators.js":function(I){I.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/engine-v8-version.js"),p=o("./node_modules/core-js/internals/fails.js");I.exports=!!Object.getOwnPropertySymbols&&!p(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&L&&L<41})},"./node_modules/core-js/internals/native-weak-map.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/inspect-source.js"),a=L.WeakMap;I.exports=typeof a=="function"&&/native code/.test(p(a))},"./node_modules/core-js/internals/object-assign.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/object-keys.js"),A=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),m=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),S=o("./node_modules/core-js/internals/to-object.js"),$=o("./node_modules/core-js/internals/indexed-object.js"),F=Object.assign,H=Object.defineProperty;I.exports=!F||p(function(){if(L&&F({b:1},F(H({},"a",{enumerable:!0,get:function(){H(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var V={},ee={},B=Symbol(),G="abcdefghijklmnopqrst";return V[B]=7,G.split("").forEach(function(le){ee[le]=le}),F({},V)[B]!=7||a(F({},ee)).join("")!=G})?function(ee,B){for(var G=S(ee),le=arguments.length,J=1,be=A.f,Ce=m.f;le>J;)for(var Re=$(arguments[J++]),ae=be?a(Re).concat(be(Re)):a(Re),me=ae.length,T=0,Ee;me>T;)Ee=ae[T++],(!L||Ce.call(Re,Ee))&&(G[Ee]=Re[Ee]);return G}:F},"./node_modules/core-js/internals/object-create.js":function(I,n,o){var L=o("./node_modules/core-js/internals/an-object.js"),p=o("./node_modules/core-js/internals/object-define-properties.js"),a=o("./node_modules/core-js/internals/enum-bug-keys.js"),A=o("./node_modules/core-js/internals/hidden-keys.js"),m=o("./node_modules/core-js/internals/html.js"),S=o("./node_modules/core-js/internals/document-create-element.js"),$=o("./node_modules/core-js/internals/shared-key.js"),F=">",H="<",V="prototype",ee="script",B=$("IE_PROTO"),G=function(){},le=function(ae){return H+ee+F+ae+H+"/"+ee+F},J=function(ae){ae.write(le("")),ae.close();var me=ae.parentWindow.Object;return ae=null,me},be=function(){var ae=S("iframe"),me="java"+ee+":",T;if(ae.style)return ae.style.display="none",m.appendChild(ae),ae.src=String(me),T=ae.contentWindow.document,T.open(),T.write(le("document.F=Object")),T.close(),T.F},Ce,Re=function(){try{Ce=new ActiveXObject("htmlfile")}catch(me){}Re=document.domain&&Ce?J(Ce):be()||J(Ce);for(var ae=a.length;ae--;)delete Re[V][a[ae]];return Re()};A[B]=!0,I.exports=Object.create||function(me,T){var Ee;return me!==null?(G[V]=L(me),Ee=new G,G[V]=null,Ee[B]=me):Ee=Re(),T===void 0?Ee:p(Ee,T)}},"./node_modules/core-js/internals/object-define-properties.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),A=o("./node_modules/core-js/internals/object-keys.js");I.exports=L?Object.defineProperties:function(S,$){a(S);for(var F=A($),H=F.length,V=0,ee;H>V;)p.f(S,ee=F[V++],$[ee]);return S}},"./node_modules/core-js/internals/object-define-property.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/ie8-dom-define.js"),a=o("./node_modules/core-js/internals/an-object.js"),A=o("./node_modules/core-js/internals/to-property-key.js"),m=Object.defineProperty;n.f=L?m:function($,F,H){if(a($),F=A(F),a(H),p)try{return m($,F,H)}catch(V){}if("get"in H||"set"in H)throw TypeError("Accessors not supported");return"value"in H&&($[F]=H.value),$}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),A=o("./node_modules/core-js/internals/to-indexed-object.js"),m=o("./node_modules/core-js/internals/to-property-key.js"),S=o("./node_modules/core-js/internals/has.js"),$=o("./node_modules/core-js/internals/ie8-dom-define.js"),F=Object.getOwnPropertyDescriptor;n.f=L?F:function(V,ee){if(V=A(V),ee=m(ee),$)try{return F(V,ee)}catch(B){}if(S(V,ee))return a(!p.f.call(V,ee),V[ee])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,a={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(S){try{return p(S)}catch($){return A.slice()}};I.exports.f=function($){return A&&a.call($)=="[object Window]"?m($):p(L($))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(I,n,o){var L=o("./node_modules/core-js/internals/object-keys-internal.js"),p=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=p.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(m){return L(m,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(I,n){n.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(I,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/shared-key.js"),A=o("./node_modules/core-js/internals/correct-prototype-getter.js"),m=a("IE_PROTO"),S=Object.prototype;I.exports=A?Object.getPrototypeOf:function($){return $=p($),L($,m)?$[m]:typeof $.constructor=="function"&&$ instanceof $.constructor?$.constructor.prototype:$ instanceof Object?S:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(I,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-includes.js").indexOf,A=o("./node_modules/core-js/internals/hidden-keys.js");I.exports=function(m,S){var $=p(m),F=0,H=[],V;for(V in $)!L(A,V)&&L($,V)&&H.push(V);for(;S.length>F;)L($,V=S[F++])&&(~a(H,V)||H.push(V));return H}},"./node_modules/core-js/internals/object-keys.js":function(I,n,o){var L=o("./node_modules/core-js/internals/object-keys-internal.js"),p=o("./node_modules/core-js/internals/enum-bug-keys.js");I.exports=Object.keys||function(A){return L(A,p)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(I,n){"use strict";var o={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,p=L&&!o.call({1:2},1);n.f=p?function(A){var m=L(this,A);return!!m&&m.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(I,n,o){var L=o("./node_modules/core-js/internals/an-object.js"),p=o("./node_modules/core-js/internals/a-possible-prototype.js");I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,A={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(A,[]),a=A instanceof Array}catch(S){}return function($,F){return L($),p(F),a?m.call($,F):$.__proto__=F,$}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/classof.js");I.exports=L?{}.toString:function(){return"[object "+p(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js");I.exports=function(p,a){var A,m;if(a==="string"&&typeof(A=p.toString)=="function"&&!L(m=A.call(p))||typeof(A=p.valueOf)=="function"&&!L(m=A.call(p))||a!=="string"&&typeof(A=p.toString)=="function"&&!L(m=A.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js"),p=o("./node_modules/core-js/internals/object-get-own-property-names.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),A=o("./node_modules/core-js/internals/an-object.js");I.exports=L("Reflect","ownKeys")||function(S){var $=p.f(A(S)),F=a.f;return F?$.concat(F(S)):$}},"./node_modules/core-js/internals/path.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js");I.exports=L},"./node_modules/core-js/internals/redefine.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=o("./node_modules/core-js/internals/has.js"),A=o("./node_modules/core-js/internals/set-global.js"),m=o("./node_modules/core-js/internals/inspect-source.js"),S=o("./node_modules/core-js/internals/internal-state.js"),$=S.get,F=S.enforce,H=String(String).split("String");(I.exports=function(V,ee,B,G){var le=G?!!G.unsafe:!1,J=G?!!G.enumerable:!1,be=G?!!G.noTargetGet:!1,Ce;if(typeof B=="function"&&(typeof ee=="string"&&!a(B,"name")&&p(B,"name",ee),Ce=F(B),Ce.source||(Ce.source=H.join(typeof ee=="string"?ee:""))),V===L){J?V[ee]=B:A(ee,B);return}else le?!be&&V[ee]&&(J=!0):delete V[ee];J?V[ee]=B:p(V,ee,B)})(Function.prototype,"toString",function(){return typeof this=="function"&&$(this).source||m(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/an-object.js");I.exports=function(){var p=L(this),a="";return p.global&&(a+="g"),p.ignoreCase&&(a+="i"),p.multiline&&(a+="m"),p.dotAll&&(a+="s"),p.unicode&&(a+="u"),p.sticky&&(a+="y"),a}},"./node_modules/core-js/internals/require-object-coercible.js":function(I){I.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},"./node_modules/core-js/internals/set-global.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js");I.exports=function(p,a){try{Object.defineProperty(L,p,{value:a,configurable:!0,writable:!0})}catch(A){L[p]=a}return a}},"./node_modules/core-js/internals/set-to-string-tag.js":function(I,n,o){var L=o("./node_modules/core-js/internals/object-define-property.js").f,p=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),A=a("toStringTag");I.exports=function(m,S,$){m&&!p(m=$?m:m.prototype,A)&&L(m,A,{configurable:!0,value:S})}},"./node_modules/core-js/internals/shared-key.js":function(I,n,o){var L=o("./node_modules/core-js/internals/shared.js"),p=o("./node_modules/core-js/internals/uid.js"),a=L("keys");I.exports=function(A){return a[A]||(a[A]=p(A))}},"./node_modules/core-js/internals/shared-store.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/set-global.js"),a="__core-js_shared__",A=L[a]||p(a,{});I.exports=A},"./node_modules/core-js/internals/shared.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-pure.js"),p=o("./node_modules/core-js/internals/shared-store.js");(I.exports=function(a,A){return p[a]||(p[a]=A!==void 0?A:{})})("versions",[]).push({version:"3.16.0",mode:L?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js");I.exports=function(p){return L(function(){var a=""[p]('"');return a!==a.toLowerCase()||a.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/require-object-coercible.js"),A=function(m){return function(S,$){var F=p(a(S)),H=L($),V=F.length,ee,B;return H<0||H>=V?m?"":void 0:(ee=F.charCodeAt(H),ee<55296||ee>56319||H+1===V||(B=F.charCodeAt(H+1))<56320||B>57343?m?F.charAt(H):ee:m?F.slice(H,H+2):(ee-55296<<10)+(B-56320)+65536)}};I.exports={codeAt:A(!1),charAt:A(!0)}},"./node_modules/core-js/internals/string-trim.js":function(I,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/whitespaces.js"),A="["+a+"]",m=RegExp("^"+A+A+"*"),S=RegExp(A+A+"*$"),$=function(F){return function(H){var V=p(L(H));return F&1&&(V=V.replace(m,"")),F&2&&(V=V.replace(S,"")),V}};I.exports={start:$(1),end:$(2),trim:$(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=Math.max,a=Math.min;I.exports=function(A,m){var S=L(A);return S<0?p(S+m,0):a(S,m)}},"./node_modules/core-js/internals/to-indexed-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/indexed-object.js"),p=o("./node_modules/core-js/internals/require-object-coercible.js");I.exports=function(a){return L(p(a))}},"./node_modules/core-js/internals/to-integer.js":function(I){var n=Math.ceil,o=Math.floor;I.exports=function(L){return isNaN(L=+L)?0:(L>0?o:n)(L)}},"./node_modules/core-js/internals/to-length.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=Math.min;I.exports=function(a){return a>0?p(L(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js");I.exports=function(p){return Object(L(p))}},"./node_modules/core-js/internals/to-primitive.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/is-symbol.js"),a=o("./node_modules/core-js/internals/ordinary-to-primitive.js"),A=o("./node_modules/core-js/internals/well-known-symbol.js"),m=A("toPrimitive");I.exports=function(S,$){if(!L(S)||p(S))return S;var F=S[m],H;if(F!==void 0){if($===void 0&&($="default"),H=F.call(S,$),!L(H)||p(H))return H;throw TypeError("Can't convert object to primitive value")}return $===void 0&&($="number"),a(S,$)}},"./node_modules/core-js/internals/to-property-key.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-primitive.js"),p=o("./node_modules/core-js/internals/is-symbol.js");I.exports=function(a){var A=L(a,"string");return p(A)?A:String(A)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(I,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js"),p=L("toStringTag"),a={};a[p]="z",I.exports=String(a)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-symbol.js");I.exports=function(p){if(L(p))throw TypeError("Cannot convert a Symbol value to a string");return String(p)}},"./node_modules/core-js/internals/uid.js":function(I){var n=0,o=Math.random();I.exports=function(L){return"Symbol("+String(L===void 0?"":L)+")_"+(++n+o).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(I,n,o){var L=o("./node_modules/core-js/internals/native-symbol.js");I.exports=L&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(I,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js");n.f=L},"./node_modules/core-js/internals/well-known-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/has.js"),A=o("./node_modules/core-js/internals/uid.js"),m=o("./node_modules/core-js/internals/native-symbol.js"),S=o("./node_modules/core-js/internals/use-symbol-as-uid.js"),$=p("wks"),F=L.Symbol,H=S?F:F&&F.withoutSetter||A;I.exports=function(V){return(!a($,V)||!(m||typeof $[V]=="string"))&&(m&&a(F,V)?$[V]=F[V]:$[V]=H("Symbol."+V)),$[V]}},"./node_modules/core-js/internals/whitespaces.js":function(I){I.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/is-array.js"),A=o("./node_modules/core-js/internals/is-object.js"),m=o("./node_modules/core-js/internals/to-object.js"),S=o("./node_modules/core-js/internals/to-length.js"),$=o("./node_modules/core-js/internals/create-property.js"),F=o("./node_modules/core-js/internals/array-species-create.js"),H=o("./node_modules/core-js/internals/array-method-has-species-support.js"),V=o("./node_modules/core-js/internals/well-known-symbol.js"),ee=o("./node_modules/core-js/internals/engine-v8-version.js"),B=V("isConcatSpreadable"),G=9007199254740991,le="Maximum allowed index exceeded",J=ee>=51||!p(function(){var ae=[];return ae[B]=!1,ae.concat()[0]!==ae}),be=H("concat"),Ce=function(ae){if(!A(ae))return!1;var me=ae[B];return me!==void 0?!!me:a(ae)},Re=!J||!be;L({target:"Array",proto:!0,forced:Re},{concat:function(me){var T=m(this),Ee=F(T,0),oe=0,he,ve,_,P,X;for(he=-1,_=arguments.length;he<_;he++)if(X=he===-1?T:arguments[he],Ce(X)){if(P=S(X.length),oe+P>G)throw TypeError(le);for(ve=0;ve<P;ve++,oe++)ve in X&&$(Ee,oe,X[ve])}else{if(oe>=G)throw TypeError(le);$(Ee,oe++,X)}return Ee.length=oe,Ee}})},"./node_modules/core-js/modules/es.array.iterator.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/add-to-unscopables.js"),a=o("./node_modules/core-js/internals/iterators.js"),A=o("./node_modules/core-js/internals/internal-state.js"),m=o("./node_modules/core-js/internals/define-iterator.js"),S="Array Iterator",$=A.set,F=A.getterFor(S);I.exports=m(Array,"Array",function(H,V){$(this,{type:S,target:L(H),index:0,kind:V})},function(){var H=F(this),V=H.target,ee=H.kind,B=H.index++;return!V||B>=V.length?(H.target=void 0,{value:void 0,done:!0}):ee=="keys"?{value:B,done:!1}:ee=="values"?{value:V[B],done:!1}:{value:[B,V[B]],done:!1}},"values"),a.Arguments=a.Array,p("keys"),p("values"),p("entries")},"./node_modules/core-js/modules/es.array.join.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/indexed-object.js"),a=o("./node_modules/core-js/internals/to-indexed-object.js"),A=o("./node_modules/core-js/internals/array-method-is-strict.js"),m=[].join,S=p!=Object,$=A("join",",");L({target:"Array",proto:!0,forced:S||!$},{join:function(H){return m.call(a(this),H===void 0?",":H)}})},"./node_modules/core-js/modules/es.array.map.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/array-iteration.js").map,a=o("./node_modules/core-js/internals/array-method-has-species-support.js"),A=a("map");L({target:"Array",proto:!0,forced:!A},{map:function(S){return p(this,S,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/is-object.js"),a=o("./node_modules/core-js/internals/is-array.js"),A=o("./node_modules/core-js/internals/to-absolute-index.js"),m=o("./node_modules/core-js/internals/to-length.js"),S=o("./node_modules/core-js/internals/to-indexed-object.js"),$=o("./node_modules/core-js/internals/create-property.js"),F=o("./node_modules/core-js/internals/well-known-symbol.js"),H=o("./node_modules/core-js/internals/array-method-has-species-support.js"),V=H("slice"),ee=F("species"),B=[].slice,G=Math.max;L({target:"Array",proto:!0,forced:!V},{slice:function(J,be){var Ce=S(this),Re=m(Ce.length),ae=A(J,Re),me=A(be===void 0?Re:be,Re),T,Ee,oe;if(a(Ce)&&(T=Ce.constructor,typeof T=="function"&&(T===Array||a(T.prototype))?T=void 0:p(T)&&(T=T[ee],T===null&&(T=void 0)),T===Array||T===void 0))return B.call(Ce,ae,me);for(Ee=new(T===void 0?Array:T)(G(me-ae,0)),oe=0;ae<me;ae++,oe++)ae in Ce&&$(Ee,oe,Ce[ae]);return Ee.length=oe,Ee}})},"./node_modules/core-js/modules/es.function.name.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js").f,a=Function.prototype,A=a.toString,m=/^\s*function ([^ (]*)/,S="name";L&&!(S in a)&&p(a,S,{configurable:!0,get:function(){try{return A.call(this).match(m)[1]}catch($){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/is-forced.js"),A=o("./node_modules/core-js/internals/redefine.js"),m=o("./node_modules/core-js/internals/has.js"),S=o("./node_modules/core-js/internals/classof-raw.js"),$=o("./node_modules/core-js/internals/inherit-if-required.js"),F=o("./node_modules/core-js/internals/is-symbol.js"),H=o("./node_modules/core-js/internals/to-primitive.js"),V=o("./node_modules/core-js/internals/fails.js"),ee=o("./node_modules/core-js/internals/object-create.js"),B=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,G=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,le=o("./node_modules/core-js/internals/object-define-property.js").f,J=o("./node_modules/core-js/internals/string-trim.js").trim,be="Number",Ce=p[be],Re=Ce.prototype,ae=S(ee(Re))==be,me=function(ve){if(F(ve))throw TypeError("Cannot convert a Symbol value to a number");var _=H(ve,"number"),P,X,pe,Je,at,nt,Lt,ur;if(typeof _=="string"&&_.length>2){if(_=J(_),P=_.charCodeAt(0),P===43||P===45){if(X=_.charCodeAt(2),X===88||X===120)return NaN}else if(P===48){switch(_.charCodeAt(1)){case 66:case 98:pe=2,Je=49;break;case 79:case 111:pe=8,Je=55;break;default:return+_}for(at=_.slice(2),nt=at.length,Lt=0;Lt<nt;Lt++)if(ur=at.charCodeAt(Lt),ur<48||ur>Je)return NaN;return parseInt(at,pe)}}return+_};if(a(be,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var T=function(_){var P=arguments.length<1?0:_,X=this;return X instanceof T&&(ae?V(function(){Re.valueOf.call(X)}):S(X)!=be)?$(new Ce(me(P)),X,T):me(P)},Ee=L?B(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),oe=0,he;Ee.length>oe;oe++)m(Ce,he=Ee[oe])&&!m(T,he)&&le(T,he,G(Ce,he));T.prototype=Re,Re.constructor=T,A(p,be,T)}},"./node_modules/core-js/modules/es.object.assign.js":function(I,n,o){var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/object-assign.js");L({target:"Object",stat:!0,forced:Object.assign!==p},{assign:p})},"./node_modules/core-js/modules/es.object.keys.js":function(I,n,o){var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/object-keys.js"),A=o("./node_modules/core-js/internals/fails.js"),m=A(function(){a(1)});L({target:"Object",stat:!0,forced:m},{keys:function($){return a(p($))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/redefine.js"),a=o("./node_modules/core-js/internals/object-to-string.js");L||p(Object.prototype,"toString",a,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/redefine.js"),p=o("./node_modules/core-js/internals/an-object.js"),a=o("./node_modules/core-js/internals/to-string.js"),A=o("./node_modules/core-js/internals/fails.js"),m=o("./node_modules/core-js/internals/regexp-flags.js"),S="toString",$=RegExp.prototype,F=$[S],H=A(function(){return F.call({source:"a",flags:"b"})!="/a/b"}),V=F.name!=S;(H||V)&&L(RegExp.prototype,S,function(){var B=p(this),G=a(B.source),le=B.flags,J=a(le===void 0&&B instanceof RegExp&&!("flags"in $)?m.call(B):le);return"/"+G+"/"+J},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/string-multibyte.js").charAt,p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/internal-state.js"),A=o("./node_modules/core-js/internals/define-iterator.js"),m="String Iterator",S=a.set,$=a.getterFor(m);A(String,"String",function(F){S(this,{type:m,string:p(F),index:0})},function(){var H=$(this),V=H.string,ee=H.index,B;return ee>=V.length?{value:void 0,done:!0}:(B=L(V,ee),H.index+=B.length,{value:B,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/create-html.js"),a=o("./node_modules/core-js/internals/string-html-forced.js");L({target:"String",proto:!0,forced:a("link")},{link:function(m){return p(this,"a","href",m)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/descriptors.js"),a=o("./node_modules/core-js/internals/global.js"),A=o("./node_modules/core-js/internals/has.js"),m=o("./node_modules/core-js/internals/is-object.js"),S=o("./node_modules/core-js/internals/object-define-property.js").f,$=o("./node_modules/core-js/internals/copy-constructor-properties.js"),F=a.Symbol;if(p&&typeof F=="function"&&(!("description"in F.prototype)||F().description!==void 0)){var H={},V=function(){var be=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Ce=this instanceof V?new F(be):be===void 0?F():F(be);return be===""&&(H[Ce]=!0),Ce};$(V,F);var ee=V.prototype=F.prototype;ee.constructor=V;var B=ee.toString,G=String(F("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;S(ee,"description",{configurable:!0,get:function(){var be=m(this)?this.valueOf():this,Ce=B.call(be);if(A(H,be))return"";var Re=G?Ce.slice(7,-1):Ce.replace(le,"$1");return Re===""?void 0:Re}}),L({global:!0,forced:!0},{Symbol:V})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(I,n,o){var L=o("./node_modules/core-js/internals/define-well-known-symbol.js");L("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/get-built-in.js"),A=o("./node_modules/core-js/internals/is-pure.js"),m=o("./node_modules/core-js/internals/descriptors.js"),S=o("./node_modules/core-js/internals/native-symbol.js"),$=o("./node_modules/core-js/internals/fails.js"),F=o("./node_modules/core-js/internals/has.js"),H=o("./node_modules/core-js/internals/is-array.js"),V=o("./node_modules/core-js/internals/is-object.js"),ee=o("./node_modules/core-js/internals/is-symbol.js"),B=o("./node_modules/core-js/internals/an-object.js"),G=o("./node_modules/core-js/internals/to-object.js"),le=o("./node_modules/core-js/internals/to-indexed-object.js"),J=o("./node_modules/core-js/internals/to-property-key.js"),be=o("./node_modules/core-js/internals/to-string.js"),Ce=o("./node_modules/core-js/internals/create-property-descriptor.js"),Re=o("./node_modules/core-js/internals/object-create.js"),ae=o("./node_modules/core-js/internals/object-keys.js"),me=o("./node_modules/core-js/internals/object-get-own-property-names.js"),T=o("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ee=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),oe=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),he=o("./node_modules/core-js/internals/object-define-property.js"),ve=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),_=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),P=o("./node_modules/core-js/internals/redefine.js"),X=o("./node_modules/core-js/internals/shared.js"),pe=o("./node_modules/core-js/internals/shared-key.js"),Je=o("./node_modules/core-js/internals/hidden-keys.js"),at=o("./node_modules/core-js/internals/uid.js"),nt=o("./node_modules/core-js/internals/well-known-symbol.js"),Lt=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ur=o("./node_modules/core-js/internals/define-well-known-symbol.js"),Jt=o("./node_modules/core-js/internals/set-to-string-tag.js"),We=o("./node_modules/core-js/internals/internal-state.js"),Cr=o("./node_modules/core-js/internals/array-iteration.js").forEach,Er=pe("hidden"),Kr="Symbol",_r="prototype",Se=nt("toPrimitive"),Nt=We.set,z=We.getterFor(Kr),v=Object[_r],h=p.Symbol,D=a("JSON","stringify"),fe=oe.f,Z=he.f,N=T.f,te=ve.f,Te=X("symbols"),Ie=X("op-symbols"),Fe=X("string-to-symbol-registry"),ze=X("symbol-to-string-registry"),pt=X("wks"),$e=p.QObject,tt=!$e||!$e[_r]||!$e[_r].findChild,ct=m&&$(function(){return Re(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a!=7})?function(rr,Qe,ot){var Yr=fe(v,Qe);Yr&&delete v[Qe],Z(rr,Qe,ot),Yr&&rr!==v&&Z(v,Qe,Yr)}:Z,Ge=function(rr,Qe){var ot=Te[rr]=Re(h[_r]);return Nt(ot,{type:Kr,tag:rr,description:Qe}),m||(ot.description=Qe),ot},Ke=function(Qe,ot,Yr){Qe===v&&Ke(Ie,ot,Yr),B(Qe);var It=J(ot);return B(Yr),F(Te,It)?(Yr.enumerable?(F(Qe,Er)&&Qe[Er][It]&&(Qe[Er][It]=!1),Yr=Re(Yr,{enumerable:Ce(0,!1)})):(F(Qe,Er)||Z(Qe,Er,Ce(1,{})),Qe[Er][It]=!0),ct(Qe,It,Yr)):Z(Qe,It,Yr)},Bt=function(Qe,ot){B(Qe);var Yr=le(ot),It=ae(Yr).concat(re(Yr));return Cr(It,function(zt){(!m||Mt.call(Yr,zt))&&Ke(Qe,zt,Yr[zt])}),Qe},Vt=function(Qe,ot){return ot===void 0?Re(Qe):Bt(Re(Qe),ot)},Mt=function(Qe){var ot=J(Qe),Yr=te.call(this,ot);return this===v&&F(Te,ot)&&!F(Ie,ot)?!1:Yr||!F(this,ot)||!F(Te,ot)||F(this,Er)&&this[Er][ot]?Yr:!0},mr=function(Qe,ot){var Yr=le(Qe),It=J(ot);if(!(Yr===v&&F(Te,It)&&!F(Ie,It))){var zt=fe(Yr,It);return zt&&F(Te,It)&&!(F(Yr,Er)&&Yr[Er][It])&&(zt.enumerable=!0),zt}},wr=function(Qe){var ot=N(le(Qe)),Yr=[];return Cr(ot,function(It){!F(Te,It)&&!F(Je,It)&&Yr.push(It)}),Yr},re=function(Qe){var ot=Qe===v,Yr=N(ot?Ie:le(Qe)),It=[];return Cr(Yr,function(zt){F(Te,zt)&&(!ot||F(v,zt))&&It.push(Te[zt])}),It};if(S||(h=function(){if(this instanceof h)throw TypeError("Symbol is not a constructor");var Qe=!arguments.length||arguments[0]===void 0?void 0:be(arguments[0]),ot=at(Qe),Yr=function(It){this===v&&Yr.call(Ie,It),F(this,Er)&&F(this[Er],ot)&&(this[Er][ot]=!1),ct(this,ot,Ce(1,It))};return m&&tt&&ct(v,ot,{configurable:!0,set:Yr}),Ge(ot,Qe)},P(h[_r],"toString",function(){return z(this).tag}),P(h,"withoutSetter",function(rr){return Ge(at(rr),rr)}),ve.f=Mt,he.f=Ke,oe.f=mr,me.f=T.f=wr,Ee.f=re,Lt.f=function(rr){return Ge(nt(rr),rr)},m&&(Z(h[_r],"description",{configurable:!0,get:function(){return z(this).description}}),A||P(v,"propertyIsEnumerable",Mt,{unsafe:!0}))),L({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:h}),Cr(ae(pt),function(rr){ur(rr)}),L({target:Kr,stat:!0,forced:!S},{for:function(rr){var Qe=be(rr);if(F(Fe,Qe))return Fe[Qe];var ot=h(Qe);return Fe[Qe]=ot,ze[ot]=Qe,ot},keyFor:function(Qe){if(!ee(Qe))throw TypeError(Qe+" is not a symbol");if(F(ze,Qe))return ze[Qe]},useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),L({target:"Object",stat:!0,forced:!S,sham:!m},{create:Vt,defineProperty:Ke,defineProperties:Bt,getOwnPropertyDescriptor:mr}),L({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:wr,getOwnPropertySymbols:re}),L({target:"Object",stat:!0,forced:$(function(){Ee.f(1)})},{getOwnPropertySymbols:function(Qe){return Ee.f(G(Qe))}}),D){var ue=!S||$(function(){var rr=h();return D([rr])!="[null]"||D({a:rr})!="{}"||D(Object(rr))!="{}"});L({target:"JSON",stat:!0,forced:ue},{stringify:function(Qe,ot,Yr){for(var It=[Qe],zt=1,qt;arguments.length>zt;)It.push(arguments[zt++]);if(qt=ot,!(!V(ot)&&Qe===void 0||ee(Qe)))return H(ot)||(ot=function(qe,At){if(typeof qt=="function"&&(At=qt.call(this,qe,At)),!ee(At))return At}),It[1]=ot,D.apply(null,It)}})}h[_r][Se]||_(h[_r],Se,h[_r].valueOf),Jt(h,Kr),Je[Er]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/dom-iterables.js"),a=o("./node_modules/core-js/internals/array-for-each.js"),A=o("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var m in p){var S=L[m],$=S&&S.prototype;if($&&$.forEach!==a)try{A($,"forEach",a)}catch(F){$.forEach=a}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/dom-iterables.js"),a=o("./node_modules/core-js/modules/es.array.iterator.js"),A=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=o("./node_modules/core-js/internals/well-known-symbol.js"),S=m("iterator"),$=m("toStringTag"),F=a.values;for(var H in p){var V=L[H],ee=V&&V.prototype;if(ee){if(ee[S]!==F)try{A(ee,S,F)}catch(G){ee[S]=F}if(ee[$]||A(ee,$,H),p[H]){for(var B in a)if(ee[B]!==a[B])try{A(ee,B,a[B])}catch(G){ee[B]=a[B]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(I){(function(n,o){I.exports=o()})(this,function(){"use strict";function n($e){var tt=typeof $e;return $e!==null&&(tt==="object"||tt==="function")}function o($e){return typeof $e=="function"}var L=void 0;Array.isArray?L=Array.isArray:L=function($e){return Object.prototype.toString.call($e)==="[object Array]"};var p=L,a=0,A=void 0,m=void 0,S=function(tt,ct){ae[a]=tt,ae[a+1]=ct,a+=2,a===2&&(m?m(me):Ee())};function $($e){m=$e}function F($e){S=$e}var H=typeof window!="undefined"?window:void 0,V=H||{},ee=V.MutationObserver||V.WebKitMutationObserver,B=typeof self=="undefined"&&typeof we!="undefined"&&{}.toString.call(we)==="[object process]",G=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return we.nextTick(me)}}function J(){return typeof A!="undefined"?function(){A(me)}:Re()}function be(){var $e=0,tt=new ee(me),ct=document.createTextNode("");return tt.observe(ct,{characterData:!0}),function(){ct.data=$e=++$e%2}}function Ce(){var $e=new MessageChannel;return $e.port1.onmessage=me,function(){return $e.port2.postMessage(0)}}function Re(){var $e=setTimeout;return function(){return $e(me,1)}}var ae=new Array(1e3);function me(){for(var $e=0;$e<a;$e+=2){var tt=ae[$e],ct=ae[$e+1];tt(ct),ae[$e]=void 0,ae[$e+1]=void 0}a=0}function T(){try{var $e=Function("return this")().require("vertx");return A=$e.runOnLoop||$e.runOnContext,J()}catch(tt){return Re()}}var Ee=void 0;B?Ee=le():ee?Ee=be():G?Ee=Ce():H===void 0?Ee=T():Ee=Re();function oe($e,tt){var ct=this,Ge=new this.constructor(_);Ge[ve]===void 0&&D(Ge);var Ke=ct._state;if(Ke){var Bt=arguments[Ke-1];S(function(){return Nt(Ke,Ge,Bt,ct._result)})}else _r(ct,Ge,$e,tt);return Ge}function he($e){var tt=this;if($e&&typeof $e=="object"&&$e.constructor===tt)return $e;var ct=new tt(_);return We(ct,$e),ct}var ve=Math.random().toString(36).substring(2);function _(){}var P=void 0,X=1,pe=2;function Je(){return new TypeError("You cannot resolve a promise with itself")}function at(){return new TypeError("A promises callback cannot return that same promise.")}function nt($e,tt,ct,Ge){try{$e.call(tt,ct,Ge)}catch(Ke){return Ke}}function Lt($e,tt,ct){S(function(Ge){var Ke=!1,Bt=nt(ct,tt,function(Vt){Ke||(Ke=!0,tt!==Vt?We(Ge,Vt):Er(Ge,Vt))},function(Vt){Ke||(Ke=!0,Kr(Ge,Vt))},"Settle: "+(Ge._label||" unknown promise"));!Ke&&Bt&&(Ke=!0,Kr(Ge,Bt))},$e)}function ur($e,tt){tt._state===X?Er($e,tt._result):tt._state===pe?Kr($e,tt._result):_r(tt,void 0,function(ct){return We($e,ct)},function(ct){return Kr($e,ct)})}function Jt($e,tt,ct){tt.constructor===$e.constructor&&ct===oe&&tt.constructor.resolve===he?ur($e,tt):ct===void 0?Er($e,tt):o(ct)?Lt($e,tt,ct):Er($e,tt)}function We($e,tt){if($e===tt)Kr($e,Je());else if(n(tt)){var ct=void 0;try{ct=tt.then}catch(Ge){Kr($e,Ge);return}Jt($e,tt,ct)}else Er($e,tt)}function Cr($e){$e._onerror&&$e._onerror($e._result),Se($e)}function Er($e,tt){$e._state===P&&($e._result=tt,$e._state=X,$e._subscribers.length!==0&&S(Se,$e))}function Kr($e,tt){$e._state===P&&($e._state=pe,$e._result=tt,S(Cr,$e))}function _r($e,tt,ct,Ge){var Ke=$e._subscribers,Bt=Ke.length;$e._onerror=null,Ke[Bt]=tt,Ke[Bt+X]=ct,Ke[Bt+pe]=Ge,Bt===0&&$e._state&&S(Se,$e)}function Se($e){var tt=$e._subscribers,ct=$e._state;if(tt.length!==0){for(var Ge=void 0,Ke=void 0,Bt=$e._result,Vt=0;Vt<tt.length;Vt+=3)Ge=tt[Vt],Ke=tt[Vt+ct],Ge?Nt(ct,Ge,Ke,Bt):Ke(Bt);$e._subscribers.length=0}}function Nt($e,tt,ct,Ge){var Ke=o(ct),Bt=void 0,Vt=void 0,Mt=!0;if(Ke){try{Bt=ct(Ge)}catch(mr){Mt=!1,Vt=mr}if(tt===Bt){Kr(tt,at());return}}else Bt=Ge;tt._state!==P||(Ke&&Mt?We(tt,Bt):Mt===!1?Kr(tt,Vt):$e===X?Er(tt,Bt):$e===pe&&Kr(tt,Bt))}function z($e,tt){try{tt(function(Ge){We($e,Ge)},function(Ge){Kr($e,Ge)})}catch(ct){Kr($e,ct)}}var v=0;function h(){return v++}function D($e){$e[ve]=v++,$e._state=void 0,$e._result=void 0,$e._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var Z=function(){function $e(tt,ct){this._instanceConstructor=tt,this.promise=new tt(_),this.promise[ve]||D(this.promise),p(ct)?(this.length=ct.length,this._remaining=ct.length,this._result=new Array(this.length),this.length===0?Er(this.promise,this._result):(this.length=this.length||0,this._enumerate(ct),this._remaining===0&&Er(this.promise,this._result))):Kr(this.promise,fe())}return $e.prototype._enumerate=function(ct){for(var Ge=0;this._state===P&&Ge<ct.length;Ge++)this._eachEntry(ct[Ge],Ge)},$e.prototype._eachEntry=function(ct,Ge){var Ke=this._instanceConstructor,Bt=Ke.resolve;if(Bt===he){var Vt=void 0,Mt=void 0,mr=!1;try{Vt=ct.then}catch(re){mr=!0,Mt=re}if(Vt===oe&&ct._state!==P)this._settledAt(ct._state,Ge,ct._result);else if(typeof Vt!="function")this._remaining--,this._result[Ge]=ct;else if(Ke===ze){var wr=new Ke(_);mr?Kr(wr,Mt):Jt(wr,ct,Vt),this._willSettleAt(wr,Ge)}else this._willSettleAt(new Ke(function(re){return re(ct)}),Ge)}else this._willSettleAt(Bt(ct),Ge)},$e.prototype._settledAt=function(ct,Ge,Ke){var Bt=this.promise;Bt._state===P&&(this._remaining--,ct===pe?Kr(Bt,Ke):this._result[Ge]=Ke),this._remaining===0&&Er(Bt,this._result)},$e.prototype._willSettleAt=function(ct,Ge){var Ke=this;_r(ct,void 0,function(Bt){return Ke._settledAt(X,Ge,Bt)},function(Bt){return Ke._settledAt(pe,Ge,Bt)})},$e}();function N($e){return new Z(this,$e).promise}function te($e){var tt=this;return p($e)?new tt(function(ct,Ge){for(var Ke=$e.length,Bt=0;Bt<Ke;Bt++)tt.resolve($e[Bt]).then(ct,Ge)}):new tt(function(ct,Ge){return Ge(new TypeError("You must pass an array to race."))})}function Te($e){var tt=this,ct=new tt(_);return Kr(ct,$e),ct}function Ie(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Fe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ze=function(){function $e(tt){this[ve]=h(),this._result=this._state=void 0,this._subscribers=[],_!==tt&&(typeof tt!="function"&&Ie(),this instanceof $e?z(this,tt):Fe())}return $e.prototype.catch=function(ct){return this.then(null,ct)},$e.prototype.finally=function(ct){var Ge=this,Ke=Ge.constructor;return o(ct)?Ge.then(function(Bt){return Ke.resolve(ct()).then(function(){return Bt})},function(Bt){return Ke.resolve(ct()).then(function(){throw Bt})}):Ge.then(ct,ct)},$e}();ze.prototype.then=oe,ze.all=N,ze.race=te,ze.resolve=he,ze.reject=Te,ze._setScheduler=$,ze._setAsap=F,ze._asap=S;function pt(){var $e=void 0;if(typeof g.g!="undefined")$e=g.g;else if(typeof self!="undefined")$e=self;else try{$e=Function("return this")()}catch(Ge){throw new Error("polyfill failed because global object is unavailable in this environment")}var tt=$e.Promise;if(tt){var ct=null;try{ct=Object.prototype.toString.call(tt.resolve())}catch(Ge){}if(ct==="[object Promise]"&&!tt.cast)return}$e.Promise=ze}return ze.polyfill=pt,ze.Promise=ze,ze})},html2canvas:function(I){"use strict";I.exports=se},jspdf:function(I){"use strict";I.exports=De}},ie={};function Y(I){var n=ie[I];if(n!==void 0)return n.exports;var o=ie[I]={exports:{}};return Me[I].call(o.exports,o,o.exports,Y),o.exports}(function(){Y.n=function(I){var n=I&&I.__esModule?function(){return I.default}:function(){return I};return Y.d(n,{a:n}),n}})(),function(){Y.d=function(I,n){for(var o in n)Y.o(n,o)&&!Y.o(I,o)&&Object.defineProperty(I,o,{enumerable:!0,get:n[o]})}}(),function(){Y.o=function(I,n){return Object.prototype.hasOwnProperty.call(I,n)}}(),function(){Y.r=function(I){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(I,"__esModule",{value:!0})}}();var O={};return function(){"use strict";Y.r(O);var I=Y("./src/worker.js"),n=Y("./src/plugin/jspdf-plugin.js"),o=Y("./src/plugin/pagebreaks.js"),L=Y("./src/plugin/hyperlinks.js"),p=function a(A,m){var S=new a.Worker(m);return A?S.from(A).save():S};p.Worker=I.default,O.default=p}(),O=O.default,O}()})},67467:function(bn,Zt){Zt.read=function(g,we,De,se,Me){var ie,Y,O=Me*8-se-1,I=(1<<O)-1,n=I>>1,o=-7,L=De?Me-1:0,p=De?-1:1,a=g[we+L];for(L+=p,ie=a&(1<<-o)-1,a>>=-o,o+=O;o>0;ie=ie*256+g[we+L],L+=p,o-=8);for(Y=ie&(1<<-o)-1,ie>>=-o,o+=se;o>0;Y=Y*256+g[we+L],L+=p,o-=8);if(ie===0)ie=1-n;else{if(ie===I)return Y?NaN:(a?-1:1)*(1/0);Y=Y+Math.pow(2,se),ie=ie-n}return(a?-1:1)*Y*Math.pow(2,ie-se)},Zt.write=function(g,we,De,se,Me,ie){var Y,O,I,n=ie*8-Me-1,o=(1<<n)-1,L=o>>1,p=Me===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=se?0:ie-1,A=se?1:-1,m=we<0||we===0&&1/we<0?1:0;for(we=Math.abs(we),isNaN(we)||we===1/0?(O=isNaN(we)?1:0,Y=o):(Y=Math.floor(Math.log(we)/Math.LN2),we*(I=Math.pow(2,-Y))<1&&(Y--,I*=2),Y+L>=1?we+=p/I:we+=p*Math.pow(2,1-L),we*I>=2&&(Y++,I/=2),Y+L>=o?(O=0,Y=o):Y+L>=1?(O=(we*I-1)*Math.pow(2,Me),Y=Y+L):(O=we*Math.pow(2,L-1)*Math.pow(2,Me),Y=0));Me>=8;g[De+a]=O&255,a+=A,O/=256,Me-=8);for(Y=Y<<Me|O,n+=Me;n>0;g[De+a]=Y&255,a+=A,Y/=256,n-=8);g[De+a-A]|=m*128}},53184:function(bn,Zt,g){"use strict";var we,De;function se(Me,ie,Y){var O=function(I,n){return Me.js_beautify(I,n)};return O.js=Me.js_beautify,O.css=ie.css_beautify,O.html=Y.html_beautify,O.js_beautify=Me.js_beautify,O.css_beautify=ie.css_beautify,O.html_beautify=Y.html_beautify,O}we=[g(58553),g(87804),g(40998)],De=function(Me,ie,Y){return se(Me,ie,Y)}.apply(Zt,we),De!==void 0&&(bn.exports=De)},87804:function(bn,Zt){var g,we;(function(){var De;(function(){"use strict";var Me=[,,function(I){function n(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}n.prototype.clone_empty=function(){var p=new n(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},n.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},n.prototype.has_match=function(p){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(p))return!0;return!1},n.prototype.set_indent=function(p,a){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},n.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},n.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},n.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},n.prototype.is_empty=function(){return this.__items.length===0},n.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},n.prototype.push=function(p){this.__items.push(p);var a=p.lastIndexOf(`
|
|
|
`);a!==-1?this.__character_count=p.length-a:this.__character_count+=p.length},n.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},n.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},n.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},n.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},n.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function o(p,a){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),a=a||"",p.indent_level>0&&(a=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}o.prototype.get_indent_size=function(p,a){var A=this.__base_string_length;return a=a||0,p<0&&(A=0),A+=p*this.__indent_size,A+=a,A},o.prototype.get_indent_string=function(p,a){var A=this.__base_string;return a=a||0,p<0&&(p=0,A=""),a+=p*this.__indent_size,this.__ensure_cache(a),A+=this.__cache[a],A},o.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var p=this.__cache.length,a=0,A="";this.__indent_size&&p>=this.__indent_size&&(a=Math.floor(p/this.__indent_size),p-=a*this.__indent_size,A=new Array(a+1).join(this.__indent_string)),p&&(A+=new Array(p+1).join(" ")),this.__cache.push(A)};function L(p,a){this.__indent_cache=new o(p,a),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new n(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(p,a){return this.__indent_cache.get_indent_string(p,a)},L.prototype.get_indent_size=function(p,a){return this.__indent_cache.get_indent_size(p,a)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(p){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
|
`);return p!==`
|
|
|
`&&(A=A.replace(/[\n]/g,p)),A},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(p,a){return p=p||0,a=a||0,this.next_line.set_indent(p,a),this.__lines.length>1?(this.current_line.set_indent(p,a),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(p){for(var a=0;a<p.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},L.prototype.remove_indent=function(p){for(var a=this.__lines.length;p<a;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(p,a){for(var A=this.__lines.length-2;A>=0;){var m=this.__lines[A];if(m.is_empty())break;if(m.item(0).indexOf(p)!==0&&m.item(-1)!==a){this.__lines.splice(A+1,0,new n(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},I.exports.Output=L},,,,function(I){function n(p,a){this.raw_options=o(p,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}n.prototype._get_array=function(p,a){var A=this.raw_options[p],m=a||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(m=A.concat()):typeof A=="string"&&(m=A.split(/[^a-zA-Z0-9_\/\-]+/)),m},n.prototype._get_boolean=function(p,a){var A=this.raw_options[p],m=A===void 0?!!a:!!A;return m},n.prototype._get_characters=function(p,a){var A=this.raw_options[p],m=a||"";return typeof A=="string"&&(m=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),m},n.prototype._get_number=function(p,a){var A=this.raw_options[p];a=parseInt(a,10),isNaN(a)&&(a=0);var m=parseInt(A,10);return isNaN(m)&&(m=a),m},n.prototype._get_selection=function(p,a,A){var m=this._get_selection_list(p,a,A);if(m.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m[0]},n.prototype._get_selection_list=function(p,a,A){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[a[0]],!this._is_valid_selection(A,a))throw new Error("Invalid Default Value!");var m=this._get_array(p,A);if(!this._is_valid_selection(m,a))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m},n.prototype._is_valid_selection=function(p,a){return p.length&&a.length&&!p.some(function(A){return a.indexOf(A)===-1})};function o(p,a){var A={};p=L(p);var m;for(m in p)m!==a&&(A[m]=p[m]);if(a&&p[a])for(m in p[a])A[m]=p[a][m];return A}function L(p){var a={},A;for(A in p){var m=A.replace(/-/g,"_");a[m]=p[A]}return a}I.exports.Options=n,I.exports.normalizeOpts=L,I.exports.mergeOpts=o},,function(I){var n=RegExp.prototype.hasOwnProperty("sticky");function o(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},o.prototype.peek=function(L){var p=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(p=this.__input.charAt(L)),p},o.prototype.__match=function(L,p){L.lastIndex=p;var a=L.exec(this.__input);return a&&!(n&&L.sticky)&&a.index!==p&&(a=null),a},o.prototype.test=function(L,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(L,p):!1},o.prototype.testChar=function(L,p){var a=this.peek(p);return L.lastIndex=0,a!==null&&L.test(a)},o.prototype.match=function(L){var p=this.__match(L,this.__position);return p?this.__position+=p[0].length:p=null,p},o.prototype.read=function(L,p,a){var A="",m;return L&&(m=this.match(L),m&&(A+=m[0])),p&&(m||!L)&&(A+=this.readUntil(p,a)),A},o.prototype.readUntil=function(L,p){var a="",A=this.__position;L.lastIndex=this.__position;var m=L.exec(this.__input);return m?(A=m.index,p&&(A+=m[0].length)):A=this.__input_length,a=this.__input.substring(this.__position,A),this.__position=A,a},o.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},o.prototype.get_regexp=function(L,p){var a=null,A="g";return p&&n&&(A="y"),typeof L=="string"&&L!==""?a=new RegExp(L,A):L&&(a=new RegExp(L.source,A)),a},o.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(L){var p=this.__position,a=this.readUntilAfter(L);return this.__position=p,a},o.prototype.lookBack=function(L){var p=this.__position-1;return p>=L.length&&this.__input.substring(p-L.length,p).toLowerCase()===L},I.exports.InputScanner=o},,,,,function(I){function n(o,L){o=typeof o=="string"?o:o.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+L,"g")}n.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(o);p;)L[p[1]]=p[2],p=this.__directive_pattern.exec(o);return L},n.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},I.exports.Directives=n},,function(I,n,o){var L=o(16).Beautifier,p=o(17).Options;function a(A,m){var S=new L(A,m);return S.beautify()}I.exports=a,I.exports.defaultOptions=function(){return new p}},function(I,n,o){var L=o(17).Options,p=o(2).Output,a=o(8).InputScanner,A=o(13).Directives,m=new A(/\/\*/,/\*\//),S=/\r\n|[\r\n]/,$=/\r\n|[\r\n]/g,F=/\s/,H=/(?:\s|\n)+/g,V=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ee=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function B(G,le){this._source_text=G||"",this._options=new L(le),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}B.prototype.eatString=function(G){var le="";for(this._ch=this._input.next();this._ch;){if(le+=this._ch,this._ch==="\\")le+=this._input.next();else if(G.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return le},B.prototype.eatWhitespace=function(G){for(var le=F.test(this._input.peek()),J=0;F.test(this._input.peek());)this._ch=this._input.next(),G&&this._ch===`
|
|
|
`&&(J===0||J<this._options.max_preserve_newlines)&&(J++,this._output.add_new_line(!0));return le},B.prototype.foundNestedPseudoClass=function(){for(var G=0,le=1,J=this._input.peek(le);J;){if(J==="{")return!0;if(J==="(")G+=1;else if(J===")"){if(G===0)return!1;G-=1}else if(J===";"||J==="}")return!1;le++,J=this._input.peek(le)}return!1},B.prototype.print_string=function(G){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(G)},B.prototype.preserveSingleSpace=function(G){G&&(this._output.space_before_token=!0)},B.prototype.indent=function(){this._indentLevel++},B.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},B.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var G=this._source_text,le=this._options.eol;le==="auto"&&(le=`
|
|
|
`,G&&S.test(G||"")&&(le=G.match(S)[0])),G=G.replace($,`
|
|
|
`);var J=G.match(/^[\t ]*/)[0];this._output=new p(this._options,J),this._input=new a(G),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var be=0,Ce=!1,Re=!1,ae=!1,me=!1,T=!1,Ee=this._ch,oe=!1,he,ve,_;he=this._input.read(H),ve=he!=="",_=Ee,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Ee=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var P=this._input.read(V),X=m.get_directives(P);X&&X.ignore==="start"&&(P+=m.readIgnored(this._input)),this.print_string(P),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(ee)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(ve),this.print_string(this._ch);var pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);pe.match(/[ :]$/)&&(pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(pe),this._output.space_before_token=!0),be===0&&pe.indexOf(":")!==-1&&(Re=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(ve),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Je=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Je.match(/[ :]$/)&&(Je=this.eatString(": ").replace(/\s+$/,""),this.print_string(Je),this._output.space_before_token=!0),be===0&&Je.indexOf(":")!==-1?(Re=!0,this.indent()):Je in this.NESTED_AT_RULE?(this._nestedLevel+=1,Je in this.CONDITIONAL_GROUP_RULE&&(ae=!0)):be===0&&!Re&&(me=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(ve),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Re&&(Re=!1,this.outdent()),me=!1,ae?(ae=!1,Ce=this._indentLevel>=this._nestedLevel):Ce=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Ce&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(_==="("?this._output.space_before_token=!1:_!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),_==="{"&&this._output.trim(!0),Re&&(this.outdent(),Re=!1),this.print_string(this._ch),Ce=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var at=0;at<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;at++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[at])){oe=!0;break}(Ce||ae)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!me&&be===0?(this.print_string(":"),Re||(Re=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var nt=_==='"'||_==="'";this.preserveSingleSpace(nt||ve),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")oe=!1,be===0?(Re&&(this.outdent(),Re=!1),me=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),be++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),be&&(be--,this.outdent()));else{var Lt=!1;this._input.lookBack("with")&&(Lt=!0),this.preserveSingleSpace(ve||Lt),this.print_string(this._ch),Re&&_==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),T=!0):(this.eatWhitespace(),be++,this.indent())}else if(this._ch===")")be&&(be--,this.outdent()),T&&this._input.peek()===";"&&this._options.selector_separator_newline&&(T=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!Re||T)&&be===0&&!me?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Re&&be===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&F.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(ve),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),F.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ur=_==='"'||_==="'";this.preserveSingleSpace(ur||ve),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&oe&&this._output.add_new_line()}var Jt=this._output.get_code(le);return Jt},I.exports.Beautifier=B},function(I,n,o){var L=o(6).Options;function p(a){L.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var A=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||A;var m=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var S=0;S<m.length;S++)m[S]!=="expand"?this.brace_style="collapse":this.brace_style=m[S]}p.prototype=new L,I.exports.Options=p}],ie={};function Y(I){var n=ie[I];if(n!==void 0)return n.exports;var o=ie[I]={exports:{}};return Me[I](o,o.exports,Y),o.exports}var O=Y(15);De=O})();var se=De;g=[],we=function(){return{css_beautify:se}}.apply(Zt,g),we!==void 0&&(bn.exports=we)})()},40998:function(bn,Zt,g){var we,De;(function(){var se;(function(){"use strict";var O=[,,function(L){function p(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var m=new p(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},p.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},p.prototype.has_match=function(m){for(var S=this.__items.length-1;S>=0;S--)if(this.__items[S].match(m))return!0;return!1},p.prototype.set_indent=function(m,S){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=S||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(m){this.__items.push(m);var S=m.lastIndexOf(`
|
|
|
`);S!==-1?this.__character_count=m.length-S:this.__character_count+=m.length},p.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function a(m,S){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),S=S||"",m.indent_level>0&&(S=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=S,this.__base_string_length=S.length}a.prototype.get_indent_size=function(m,S){var $=this.__base_string_length;return S=S||0,m<0&&($=0),$+=m*this.__indent_size,$+=S,$},a.prototype.get_indent_string=function(m,S){var $=this.__base_string;return S=S||0,m<0&&(m=0,$=""),S+=m*this.__indent_size,this.__ensure_cache(S),$+=this.__cache[S],$},a.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var m=this.__cache.length,S=0,$="";this.__indent_size&&m>=this.__indent_size&&(S=Math.floor(m/this.__indent_size),m-=S*this.__indent_size,$=new Array(S+1).join(this.__indent_string)),m&&($+=new Array(m+1).join(" ")),this.__cache.push($)};function A(m,S){this.__indent_cache=new a(m,S),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(m,S){return this.__indent_cache.get_indent_string(m,S)},A.prototype.get_indent_size=function(m,S){return this.__indent_cache.get_indent_size(m,S)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(m){this.trim(!0);var S=this.current_line.pop();S&&(S[S.length-1]===`
|
|
|
`&&(S=S.replace(/\n+$/g,"")),this.current_line.push(S)),this._end_with_newline&&this.__add_outputline();var $=this.__lines.join(`
|
|
|
`);return m!==`
|
|
|
`&&($=$.replace(/[\n]/g,m)),$},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(m,S){return m=m||0,S=S||0,this.next_line.set_indent(m,S),this.__lines.length>1?(this.current_line.set_indent(m,S),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(m){for(var S=0;S<m.newlines;S++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},A.prototype.remove_indent=function(m){for(var S=this.__lines.length;m<S;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(m,S){for(var $=this.__lines.length-2;$>=0;){var F=this.__lines[$];if(F.is_empty())break;if(F.item(0).indexOf(m)!==0&&F.item(-1)!==S){this.__lines.splice($+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}$--}},L.exports.Output=A},function(L){function p(a,A,m,S){this.type=a,this.text=A,this.comments_before=null,this.newlines=m||0,this.whitespace_before=S||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}L.exports.Token=p},,,function(L){function p(m,S){this.raw_options=a(m,S),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(m,S){var $=this.raw_options[m],F=S||[];return typeof $=="object"?$!==null&&typeof $.concat=="function"&&(F=$.concat()):typeof $=="string"&&(F=$.split(/[^a-zA-Z0-9_\/\-]+/)),F},p.prototype._get_boolean=function(m,S){var $=this.raw_options[m],F=$===void 0?!!S:!!$;return F},p.prototype._get_characters=function(m,S){var $=this.raw_options[m],F=S||"";return typeof $=="string"&&(F=$.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),F},p.prototype._get_number=function(m,S){var $=this.raw_options[m];S=parseInt(S,10),isNaN(S)&&(S=0);var F=parseInt($,10);return isNaN(F)&&(F=S),F},p.prototype._get_selection=function(m,S,$){var F=this._get_selection_list(m,S,$);if(F.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[m]+"'");return F[0]},p.prototype._get_selection_list=function(m,S,$){if(!S||S.length===0)throw new Error("Selection list cannot be empty.");if($=$||[S[0]],!this._is_valid_selection($,S))throw new Error("Invalid Default Value!");var F=this._get_array(m,$);if(!this._is_valid_selection(F,S))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[m]+"'");return F},p.prototype._is_valid_selection=function(m,S){return m.length&&S.length&&!m.some(function($){return S.indexOf($)===-1})};function a(m,S){var $={};m=A(m);var F;for(F in m)F!==S&&($[F]=m[F]);if(S&&m[S])for(F in m[S])$[F]=m[S][F];return $}function A(m){var S={},$;for($ in m){var F=$.replace(/-/g,"_");S[F]=m[$]}return S}L.exports.Options=p,L.exports.normalizeOpts=A,L.exports.mergeOpts=a},,function(L){var p=RegExp.prototype.hasOwnProperty("sticky");function a(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},a.prototype.peek=function(A){var m=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(m=this.__input.charAt(A)),m},a.prototype.__match=function(A,m){A.lastIndex=m;var S=A.exec(this.__input);return S&&!(p&&A.sticky)&&S.index!==m&&(S=null),S},a.prototype.test=function(A,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(A,m):!1},a.prototype.testChar=function(A,m){var S=this.peek(m);return A.lastIndex=0,S!==null&&A.test(S)},a.prototype.match=function(A){var m=this.__match(A,this.__position);return m?this.__position+=m[0].length:m=null,m},a.prototype.read=function(A,m,S){var $="",F;return A&&(F=this.match(A),F&&($+=F[0])),m&&(F||!A)&&($+=this.readUntil(m,S)),$},a.prototype.readUntil=function(A,m){var S="",$=this.__position;A.lastIndex=this.__position;var F=A.exec(this.__input);return F?($=F.index,m&&($+=F[0].length)):$=this.__input_length,S=this.__input.substring(this.__position,$),this.__position=$,S},a.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},a.prototype.get_regexp=function(A,m){var S=null,$="g";return m&&p&&($="y"),typeof A=="string"&&A!==""?S=new RegExp(A,$):A&&(S=new RegExp(A.source,$)),S},a.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(A){var m=this.__position,S=this.readUntilAfter(A);return this.__position=m,S},a.prototype.lookBack=function(A){var m=this.__position-1;return m>=A.length&&this.__input.substring(m-A.length,m).toLowerCase()===A},L.exports.InputScanner=a},function(L,p,a){var A=a(8).InputScanner,m=a(3).Token,S=a(10).TokenStream,$=a(11).WhitespacePattern,F={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},H=function(V,ee){this._input=new A(V),this._options=ee||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new $(this._input)};H.prototype.tokenize=function(){this._input.restart(),this.__tokens=new S,this._reset();for(var V,ee=new m(F.START,""),B=null,G=[],le=new S;ee.type!==F.EOF;){for(V=this._get_next_token(ee,B);this._is_comment(V);)le.add(V),V=this._get_next_token(ee,B);le.isEmpty()||(V.comments_before=le,le=new S),V.parent=B,this._is_opening(V)?(G.push(B),B=V):B&&this._is_closing(V,B)&&(V.opened=B,B.closed=V,B=G.pop(),V.parent=B),V.previous=ee,ee.next=V,this.__tokens.add(V),ee=V}return this.__tokens},H.prototype._is_first_token=function(){return this.__tokens.isEmpty()},H.prototype._reset=function(){},H.prototype._get_next_token=function(V,ee){this._readWhitespace();var B=this._input.read(/.+/g);return B?this._create_token(F.RAW,B):this._create_token(F.EOF,"")},H.prototype._is_comment=function(V){return!1},H.prototype._is_opening=function(V){return!1},H.prototype._is_closing=function(V,ee){return!1},H.prototype._create_token=function(V,ee){var B=new m(V,ee,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return B},H.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},L.exports.Tokenizer=H,L.exports.TOKEN=F},function(L){function p(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},p.prototype.peek=function(a){var A=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(A=this.__tokens[a]),A},p.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},L.exports.TokenStream=p},function(L,p,a){var A=a(12).Pattern;function m(S,$){A.call(this,S,$),$?this._line_regexp=this._input.get_regexp($._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new A,m.prototype.__set_whitespace_patterns=function(S,$){S+="\\t ",$+="\\n\\r",this._match_pattern=this._input.get_regexp("["+S+$+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+$+"]")},m.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var S=this._input.read(this._match_pattern);if(S===" ")this.whitespace_before_token=" ";else if(S){var $=this.__split(this._newline_regexp,S);this.newline_count=$.length-1,this.whitespace_before_token=$[this.newline_count]}return S},m.prototype.matching=function(S,$){var F=this._create();return F.__set_whitespace_patterns(S,$),F._update(),F},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(S,$){S.lastIndex=0;for(var F=0,H=[],V=S.exec($);V;)H.push($.substring(F,V.index)),F=V.index+V[0].length,V=S.exec($);return F<$.length?H.push($.substring(F,$.length)):H.push(""),H},L.exports.WhitespacePattern=m},function(L){function p(a,A){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,A&&(this._starting_pattern=this._input.get_regexp(A._starting_pattern,!0),this._match_pattern=this._input.get_regexp(A._match_pattern,!0),this._until_pattern=this._input.get_regexp(A._until_pattern),this._until_after=A._until_after)}p.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(a){var A=this._create();return A._until_after=!0,A._until_pattern=this._input.get_regexp(a),A._update(),A},p.prototype.until=function(a){var A=this._create();return A._until_after=!1,A._until_pattern=this._input.get_regexp(a),A._update(),A},p.prototype.starting_with=function(a){var A=this._create();return A._starting_pattern=this._input.get_regexp(a,!0),A._update(),A},p.prototype.matching=function(a){var A=this._create();return A._match_pattern=this._input.get_regexp(a,!0),A._update(),A},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},L.exports.Pattern=p},function(L){function p(a,A){a=typeof a=="string"?a:a.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+A,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(a);m;)A[m[1]]=m[2],m=this.__directive_pattern.exec(a);return A},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},L.exports.Directives=p},function(L,p,a){var A=a(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function S($,F){A.call(this,$,F),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),F&&(this.__template_pattern=this._input.get_regexp(F.__template_pattern),this._excluded=Object.assign(this._excluded,F._excluded),this._disabled=Object.assign(this._disabled,F._disabled));var H=new A($);this.__patterns={handlebars_comment:H.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:H.starting_with(/{{{/).until_after(/}}}/),handlebars:H.starting_with(/{{/).until_after(/}}/),php:H.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:H.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:H.starting_with(/{%/).until_after(/%}/),django_value:H.starting_with(/{{/).until_after(/}}/),django_comment:H.starting_with(/{#/).until_after(/#}/),smarty:H.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:H.starting_with(/{\*/).until_after(/\*}/),smarty_literal:H.starting_with(/{literal}/).until_after(/{\/literal}/)}}S.prototype=new A,S.prototype._create=function(){return new S(this._input,this)},S.prototype._update=function(){this.__set_templated_pattern()},S.prototype.disable=function($){var F=this._create();return F._disabled[$]=!0,F._update(),F},S.prototype.read_options=function($){var F=this._create();for(var H in m)F._disabled[H]=$.templating.indexOf(H)===-1;return F._update(),F},S.prototype.exclude=function($){var F=this._create();return F._excluded[$]=!0,F._update(),F},S.prototype.read=function(){var $="";this._match_pattern?$=this._input.read(this._starting_pattern):$=this._input.read(this._starting_pattern,this.__template_pattern);for(var F=this._read_template();F;)this._match_pattern?F+=this._input.read(this._match_pattern):F+=this._input.readUntil(this.__template_pattern),$+=F,F=this._read_template();return this._until_after&&($+=this._input.readUntilAfter(this._until_pattern)),$},S.prototype.__set_templated_pattern=function(){var $=[];this._disabled.php||$.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||$.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||($.push(this.__patterns.django._starting_pattern.source),$.push(this.__patterns.django_value._starting_pattern.source),$.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||$.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&$.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+$.join("|")+")")},S.prototype._read_template=function(){var $="",F=this._input.peek();if(F==="<"){var H=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&H==="?"&&($=$||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&H==="%"&&($=$||this.__patterns.erb.read())}else F==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&($=$||this.__patterns.handlebars_comment.read(),$=$||this.__patterns.handlebars_unescaped.read(),$=$||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&($=$||this.__patterns.django_value.read()),this._excluded.django||($=$||this.__patterns.django_comment.read(),$=$||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&($=$||this.__patterns.smarty_comment.read(),$=$||this.__patterns.smarty_literal.read(),$=$||this.__patterns.smarty.read()));return $},L.exports.TemplatablePattern=S},,,,function(L,p,a){var A=a(19).Beautifier,m=a(20).Options;function S($,F,H,V){var ee=new A($,F,H,V);return ee.beautify()}L.exports=S,L.exports.defaultOptions=function(){return new m}},function(L,p,a){var A=a(20).Options,m=a(2).Output,S=a(21).Tokenizer,$=a(21).TOKEN,F=/\r\n|[\r\n]/,H=/\r\n|[\r\n]/g,V=function(me,T){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=me.max_preserve_newlines,this.preserve_newlines=me.preserve_newlines,this._output=new m(me,T)};V.prototype.current_line_has_match=function(me){return this._output.current_line.has_match(me)},V.prototype.set_space_before_token=function(me,T){this._output.space_before_token=me,this._output.non_breaking_space=T},V.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},V.prototype.add_raw_token=function(me){this._output.add_raw_token(me)},V.prototype.print_preserved_newlines=function(me){var T=0;me.type!==$.TEXT&&me.previous.type!==$.TEXT&&(T=me.newlines?1:0),this.preserve_newlines&&(T=me.newlines<this.max_preserve_newlines+1?me.newlines:this.max_preserve_newlines+1);for(var Ee=0;Ee<T;Ee++)this.print_newline(Ee>0);return T!==0},V.prototype.traverse_whitespace=function(me){return me.whitespace_before||me.newlines?(this.print_preserved_newlines(me)||(this._output.space_before_token=!0),!0):!1},V.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},V.prototype.print_newline=function(me){this._output.add_new_line(me)},V.prototype.print_token=function(me){me.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(me.text))},V.prototype.indent=function(){this.indent_level++},V.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},V.prototype.get_full_indent=function(me){return me=this.indent_level+(me||0),me<1?"":this._output.get_indent_string(me)};var ee=function(me){for(var T=null,Ee=me.next;Ee.type!==$.EOF&&me.closed!==Ee;){if(Ee.type===$.ATTRIBUTE&&Ee.text==="type"){Ee.next&&Ee.next.type===$.EQUALS&&Ee.next.next&&Ee.next.next.type===$.VALUE&&(T=Ee.next.next.text);break}Ee=Ee.next}return T},B=function(me,T){var Ee=null,oe=null;return T.closed?(me==="script"?Ee="text/javascript":me==="style"&&(Ee="text/css"),Ee=ee(T)||Ee,Ee.search("text/css")>-1?oe="css":Ee.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?oe="javascript":Ee.search(/(text|application|dojo)\/(x-)?(html)/)>-1?oe="html":Ee.search(/test\/null/)>-1&&(oe="null"),oe):null};function G(me,T){return T.indexOf(me)!==-1}function le(me,T,Ee){this.parent=me||null,this.tag=T?T.tag_name:"",this.indent_level=Ee||0,this.parser_token=T||null}function J(me){this._printer=me,this._current_frame=null}J.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},J.prototype.record_tag=function(me){var T=new le(this._current_frame,me,this._printer.indent_level);this._current_frame=T},J.prototype._try_pop_frame=function(me){var T=null;return me&&(T=me.parser_token,this._printer.indent_level=me.indent_level,this._current_frame=me.parent),T},J.prototype._get_frame=function(me,T){for(var Ee=this._current_frame;Ee&&me.indexOf(Ee.tag)===-1;){if(T&&T.indexOf(Ee.tag)!==-1){Ee=null;break}Ee=Ee.parent}return Ee},J.prototype.try_pop=function(me,T){var Ee=this._get_frame([me],T);return this._try_pop_frame(Ee)},J.prototype.indent_to_tag=function(me){var T=this._get_frame(me);T&&(this._printer.indent_level=T.indent_level)};function be(me,T,Ee,oe){this._source_text=me||"",T=T||{},this._js_beautify=Ee,this._css_beautify=oe,this._tag_stack=null;var he=new A(T,"html");this._options=he,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}be.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var me=this._source_text,T=this._options.eol;this._options.eol==="auto"&&(T=`
|
|
|
`,me&&F.test(me)&&(T=me.match(F)[0])),me=me.replace(H,`
|
|
|
`);var Ee=me.match(/^[\t ]*/)[0],oe={text:"",type:""},he=new Ce(this._options),ve=new V(this._options,Ee),_=new S(me,this._options).tokenize();this._tag_stack=new J(ve);for(var P=null,X=_.next();X.type!==$.EOF;)X.type===$.TAG_OPEN||X.type===$.COMMENT?(P=this._handle_tag_open(ve,X,he,oe,_),he=P):X.type===$.ATTRIBUTE||X.type===$.EQUALS||X.type===$.VALUE||X.type===$.TEXT&&!he.tag_complete?P=this._handle_inside_tag(ve,X,he,oe):X.type===$.TAG_CLOSE?P=this._handle_tag_close(ve,X,he):X.type===$.TEXT?P=this._handle_text(ve,X,he):X.type===$.CONTROL_FLOW_OPEN?P=this._handle_control_flow_open(ve,X):X.type===$.CONTROL_FLOW_CLOSE?P=this._handle_control_flow_close(ve,X):ve.add_raw_token(X),oe=P,X=_.next();var pe=ve._output.get_code(T);return pe},be.prototype._handle_control_flow_open=function(me,T){var Ee={text:T.text,type:T.type};return me.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),T.newlines?me.print_preserved_newlines(T):me.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),me.print_token(T),me.indent(),Ee},be.prototype._handle_control_flow_close=function(me,T){var Ee={text:T.text,type:T.type};return me.deindent(),T.newlines?me.print_preserved_newlines(T):me.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),me.print_token(T),Ee},be.prototype._handle_tag_close=function(me,T,Ee){var oe={text:T.text,type:T.type};return me.alignment_size=0,Ee.tag_complete=!0,me.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),Ee.is_unformatted?me.add_raw_token(T):(Ee.tag_start_char==="<"&&(me.set_space_before_token(T.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&Ee.has_wrapped_attrs&&me.print_newline(!1)),me.print_token(T)),Ee.indent_content&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&(me.indent(),Ee.indent_content=!1),!Ee.is_inline_element&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&me.set_wrap_point(),oe},be.prototype._handle_inside_tag=function(me,T,Ee,oe){var he=Ee.has_wrapped_attrs,ve={text:T.text,type:T.type};return me.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),Ee.is_unformatted?me.add_raw_token(T):Ee.tag_start_char==="{"&&T.type===$.TEXT?me.print_preserved_newlines(T)?(T.newlines=0,me.add_raw_token(T)):me.print_token(T):(T.type===$.ATTRIBUTE?me.set_space_before_token(!0):(T.type===$.EQUALS||T.type===$.VALUE&&T.previous.type===$.EQUALS)&&me.set_space_before_token(!1),T.type===$.ATTRIBUTE&&Ee.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(me.traverse_whitespace(T),he=he||T.newlines!==0),this._is_wrap_attributes_force&&Ee.attr_count>=this._options.wrap_attributes_min_attrs&&(oe.type!==$.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(me.print_newline(!1),he=!0)),me.print_token(T),he=he||me.previous_token_wrapped(),Ee.has_wrapped_attrs=he),ve},be.prototype._handle_text=function(me,T,Ee){var oe={text:T.text,type:"TK_CONTENT"};return Ee.custom_beautifier_name?this._print_custom_beatifier_text(me,T,Ee):Ee.is_unformatted||Ee.is_content_unformatted?me.add_raw_token(T):(me.traverse_whitespace(T),me.print_token(T)),oe},be.prototype._print_custom_beatifier_text=function(me,T,Ee){var oe=this;if(T.text!==""){var he=T.text,ve,_=1,P="",X="";Ee.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?ve=this._js_beautify:Ee.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?ve=this._css_beautify:Ee.custom_beautifier_name==="html"&&(ve=function(ur,Jt){var We=new be(ur,Jt,oe._js_beautify,oe._css_beautify);return We.beautify()}),this._options.indent_scripts==="keep"?_=0:this._options.indent_scripts==="separate"&&(_=-me.indent_level);var pe=me.get_full_indent(_);if(he=he.replace(/\n[ \t]*$/,""),Ee.custom_beautifier_name!=="html"&&he[0]==="<"&&he.match(/^(<!--|<!\[CDATA\[)/)){var Je=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(he);if(!Je){me.add_raw_token(T);return}P=pe+Je[1]+`
|
|
|
`,he=Je[4],Je[5]&&(X=pe+Je[5]),he=he.replace(/\n[ \t]*$/,""),(Je[2]||Je[3].indexOf(`
|
|
|
`)!==-1)&&(Je=Je[3].match(/[ \t]+$/),Je&&(T.whitespace_before=Je[0]))}if(he)if(ve){var at=function(){this.eol=`
|
|
|
`};at.prototype=this._options.raw_options;var nt=new at;he=ve(pe+he,nt)}else{var Lt=T.whitespace_before;Lt&&(he=he.replace(new RegExp(`
|
|
|
(`+Lt+")?","g"),`
|
|
|
`)),he=pe+he.replace(/\n/g,`
|
|
|
`+pe)}P&&(he?he=P+he+`
|
|
|
`+X:he=P+X),me.print_newline(!1),he&&(T.text=he,T.whitespace_before="",T.newlines=0,me.add_raw_token(T),me.print_newline(!0))}},be.prototype._handle_tag_open=function(me,T,Ee,oe,he){var ve=this._get_tag_open_token(T);if((Ee.is_unformatted||Ee.is_content_unformatted)&&!Ee.is_empty_element&&T.type===$.TAG_OPEN&&!ve.is_start_tag?(me.add_raw_token(T),ve.start_tag_token=this._tag_stack.try_pop(ve.tag_name)):(me.traverse_whitespace(T),this._set_tag_position(me,T,ve,Ee,oe),ve.is_inline_element||me.set_wrap_point(),me.print_token(T)),ve.is_start_tag&&this._is_wrap_attributes_force){var _=0,P;do P=he.peek(_),P.type===$.ATTRIBUTE&&(ve.attr_count+=1),_+=1;while(P.type!==$.EOF&&P.type!==$.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(ve.alignment_size=T.text.length+1),!ve.tag_complete&&!ve.is_unformatted&&(me.alignment_size=ve.alignment_size),ve};var Ce=function(me,T,Ee){if(this.parent=T||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!Ee)this.tag_complete=!0;else{var oe;this.tag_start_char=Ee.text[0],this.text=Ee.text,this.tag_start_char==="<"?(oe=Ee.text.match(/^<([^\s>]*)/),this.tag_check=oe?oe[1]:""):(oe=Ee.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=oe?oe[1]:"",(Ee.text.startsWith("{{#>")||Ee.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&Ee.next!==null?this.tag_check=Ee.next.text.split(" ")[0]:this.tag_check=Ee.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),Ee.type===$.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||Ee.closed&&Ee.closed.text==="/>";var he=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(he=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!me.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(he)))}};be.prototype._get_tag_open_token=function(me){var T=new Ce(this._options,this._tag_stack.get_parser_token(),me);return T.alignment_size=this._options.wrap_attributes_indent_size,T.is_end_tag=T.is_end_tag||G(T.tag_check,this._options.void_elements),T.is_empty_element=T.tag_complete||T.is_start_tag&&T.is_end_tag,T.is_unformatted=!T.tag_complete&&G(T.tag_check,this._options.unformatted),T.is_content_unformatted=!T.is_empty_element&&G(T.tag_check,this._options.content_unformatted),T.is_inline_element=G(T.tag_name,this._options.inline)||this._options.inline_custom_elements&&T.tag_name.includes("-")||T.tag_start_char==="{",T},be.prototype._set_tag_position=function(me,T,Ee,oe,he){if(Ee.is_empty_element||(Ee.is_end_tag?Ee.start_tag_token=this._tag_stack.try_pop(Ee.tag_name):(this._do_optional_end_element(Ee)&&(Ee.is_inline_element||me.print_newline(!1)),this._tag_stack.record_tag(Ee),(Ee.tag_name==="script"||Ee.tag_name==="style")&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&(Ee.custom_beautifier_name=B(Ee.tag_check,T)))),G(Ee.tag_check,this._options.extra_liners)&&(me.print_newline(!1),me._output.just_added_blankline()||me.print_newline(!0)),Ee.is_empty_element){if(Ee.tag_start_char==="{"&&Ee.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),Ee.indent_content=!0;var ve=me.current_line_has_match(/{{#if/);ve||me.print_newline(!1)}Ee.tag_name==="!--"&&he.type===$.TAG_CLOSE&&oe.is_end_tag&&Ee.text.indexOf(`
|
|
|
`)===-1||(Ee.is_inline_element||Ee.is_unformatted||me.print_newline(!1),this._calcluate_parent_multiline(me,Ee))}else if(Ee.is_end_tag){var _=!1;_=Ee.start_tag_token&&Ee.start_tag_token.multiline_content,_=_||!Ee.is_inline_element&&!(oe.is_inline_element||oe.is_unformatted)&&!(he.type===$.TAG_CLOSE&&Ee.start_tag_token===oe)&&he.type!=="TK_CONTENT",(Ee.is_content_unformatted||Ee.is_unformatted)&&(_=!1),_&&me.print_newline(!1)}else Ee.indent_content=!Ee.custom_beautifier_name,Ee.tag_start_char==="<"&&(Ee.tag_name==="html"?Ee.indent_content=this._options.indent_inner_html:Ee.tag_name==="head"?Ee.indent_content=this._options.indent_head_inner_html:Ee.tag_name==="body"&&(Ee.indent_content=this._options.indent_body_inner_html)),!(Ee.is_inline_element||Ee.is_unformatted)&&(he.type!=="TK_CONTENT"||Ee.is_content_unformatted)&&me.print_newline(!1),this._calcluate_parent_multiline(me,Ee)},be.prototype._calcluate_parent_multiline=function(me,T){T.parent&&me._output.just_added_newline()&&!((T.is_inline_element||T.is_unformatted)&&T.parent.is_inline_element)&&(T.parent.multiline_content=!0)};var Re=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],ae=["a","audio","del","ins","map","noscript","video"];be.prototype._do_optional_end_element=function(me){var T=null;if(!(me.is_empty_element||!me.is_start_tag||!me.parent)){if(me.tag_name==="body")T=T||this._tag_stack.try_pop("head");else if(me.tag_name==="li")T=T||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(me.tag_name==="dd"||me.tag_name==="dt")T=T||this._tag_stack.try_pop("dt",["dl"]),T=T||this._tag_stack.try_pop("dd",["dl"]);else if(me.parent.tag_name==="p"&&Re.indexOf(me.tag_name)!==-1){var Ee=me.parent.parent;(!Ee||ae.indexOf(Ee.tag_name)===-1)&&(T=T||this._tag_stack.try_pop("p"))}else me.tag_name==="rp"||me.tag_name==="rt"?(T=T||this._tag_stack.try_pop("rt",["ruby","rtc"]),T=T||this._tag_stack.try_pop("rp",["ruby","rtc"])):me.tag_name==="optgroup"?T=T||this._tag_stack.try_pop("optgroup",["select"]):me.tag_name==="option"?T=T||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):me.tag_name==="colgroup"?T=T||this._tag_stack.try_pop("caption",["table"]):me.tag_name==="thead"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"])):me.tag_name==="tbody"||me.tag_name==="tfoot"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"]),T=T||this._tag_stack.try_pop("thead",["table"]),T=T||this._tag_stack.try_pop("tbody",["table"])):me.tag_name==="tr"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"]),T=T||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(me.tag_name==="th"||me.tag_name==="td")&&(T=T||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),T=T||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return me.parent=this._tag_stack.get_parser_token(),T}},L.exports.Beautifier=be},function(L,p,a){var A=a(6).Options;function m(S){A.call(this,S,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}m.prototype=new A,L.exports.Options=m},function(L,p,a){var A=a(9).Tokenizer,m=a(9).TOKEN,S=a(13).Directives,$=a(14).TemplatablePattern,F=a(12).Pattern,H={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:m.START,RAW:m.RAW,EOF:m.EOF},V=new S(/<\!--/,/-->/),ee=function(B,G){A.call(this,B,G),this._current_tag_name="";var le=new $(this._input).read_options(this._options),J=new F(this._input);if(this.__patterns={word:le.until(/[\n\r\t <]/),word_control_flow_close_excluded:le.until(/[\n\r\t <}]/),single_quote:le.until_after(/'/),double_quote:le.until_after(/"/),attribute:le.until(/[\n\r\t =>]|\/>/),element_name:le.until(/[\n\r\t >\/]/),angular_control_flow_start:J.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:J.starting_with(/{{!--/).until_after(/--}}/),handlebars:J.starting_with(/{{/).until_after(/}}/),handlebars_open:J.until(/[\n\r\t }]/),handlebars_raw_close:J.until(/}}/),comment:J.starting_with(/<!--/).until_after(/-->/),cdata:J.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:J.starting_with(/<!\[/).until_after(/]>/),processing:J.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var be=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=J.matching(be).until_after(be)}};ee.prototype=new A,ee.prototype._is_comment=function(B){return!1},ee.prototype._is_opening=function(B){return B.type===H.TAG_OPEN||B.type===H.CONTROL_FLOW_OPEN},ee.prototype._is_closing=function(B,G){return B.type===H.TAG_CLOSE&&G&&((B.text===">"||B.text==="/>")&&G.text[0]==="<"||B.text==="}}"&&G.text[0]==="{"&&G.text[1]==="{")||B.type===H.CONTROL_FLOW_CLOSE&&B.text==="}"&&G.text.endsWith("{")},ee.prototype._reset=function(){this._current_tag_name=""},ee.prototype._get_next_token=function(B,G){var le=null;this._readWhitespace();var J=this._input.peek();return J===null?this._create_token(H.EOF,""):(le=le||this._read_open_handlebars(J,G),le=le||this._read_attribute(J,B,G),le=le||this._read_close(J,G),le=le||this._read_script_and_style(J,B),le=le||this._read_control_flows(J,G),le=le||this._read_raw_content(J,B,G),le=le||this._read_content_word(J,G),le=le||this._read_comment_or_cdata(J),le=le||this._read_processing(J),le=le||this._read_open(J,G),le=le||this._create_token(H.UNKNOWN,this._input.next()),le)},ee.prototype._read_comment_or_cdata=function(B){var G=null,le=null,J=null;if(B==="<"){var be=this._input.peek(1);be==="!"&&(le=this.__patterns.comment.read(),le?(J=V.get_directives(le),J&&J.ignore==="start"&&(le+=V.readIgnored(this._input))):le=this.__patterns.cdata.read()),le&&(G=this._create_token(H.COMMENT,le),G.directives=J)}return G},ee.prototype._read_processing=function(B){var G=null,le=null,J=null;if(B==="<"){var be=this._input.peek(1);(be==="!"||be==="?")&&(le=this.__patterns.conditional_comment.read(),le=le||this.__patterns.processing.read()),le&&(G=this._create_token(H.COMMENT,le),G.directives=J)}return G},ee.prototype._read_open=function(B,G){var le=null,J=null;return(!G||G.type===H.CONTROL_FLOW_OPEN)&&B==="<"&&(le=this._input.next(),this._input.peek()==="/"&&(le+=this._input.next()),le+=this.__patterns.element_name.read(),J=this._create_token(H.TAG_OPEN,le)),J},ee.prototype._read_open_handlebars=function(B,G){var le=null,J=null;return(!G||G.type===H.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&B==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(le=this.__patterns.handlebars_comment.read(),le=le||this.__patterns.handlebars.read(),J=this._create_token(H.COMMENT,le)):(le=this.__patterns.handlebars_open.read(),J=this._create_token(H.TAG_OPEN,le))),J},ee.prototype._read_control_flows=function(B,G){var le="",J=null;if(!this._options.templating.includes("angular"))return J;if(B==="@"){if(le=this.__patterns.angular_control_flow_start.read(),le==="")return J;for(var be=le.endsWith("(")?1:0,Ce=0;!(le.endsWith("{")&&be===Ce);){var Re=this._input.next();if(Re===null)break;Re==="("?be++:Re===")"&&Ce++,le+=Re}J=this._create_token(H.CONTROL_FLOW_OPEN,le)}else B==="}"&&G&&G.type===H.CONTROL_FLOW_OPEN&&(le=this._input.next(),J=this._create_token(H.CONTROL_FLOW_CLOSE,le));return J},ee.prototype._read_close=function(B,G){var le=null,J=null;return G&&G.type===H.TAG_OPEN&&(G.text[0]==="<"&&(B===">"||B==="/"&&this._input.peek(1)===">")?(le=this._input.next(),B==="/"&&(le+=this._input.next()),J=this._create_token(H.TAG_CLOSE,le)):G.text[0]==="{"&&B==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),J=this._create_token(H.TAG_CLOSE,"}}"))),J},ee.prototype._read_attribute=function(B,G,le){var J=null,be="";if(le&&le.text[0]==="<")if(B==="=")J=this._create_token(H.EQUALS,this._input.next());else if(B==='"'||B==="'"){var Ce=this._input.next();B==='"'?Ce+=this.__patterns.double_quote.read():Ce+=this.__patterns.single_quote.read(),J=this._create_token(H.VALUE,Ce)}else be=this.__patterns.attribute.read(),be&&(G.type===H.EQUALS?J=this._create_token(H.VALUE,be):J=this._create_token(H.ATTRIBUTE,be));return J},ee.prototype._is_content_unformatted=function(B){return this._options.void_elements.indexOf(B)===-1&&(this._options.content_unformatted.indexOf(B)!==-1||this._options.unformatted.indexOf(B)!==-1)},ee.prototype._read_raw_content=function(B,G,le){var J="";if(le&&le.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(G.type===H.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var be=G.opened.text.substr(1).toLowerCase();this._is_content_unformatted(be)&&(J=this._input.readUntil(new RegExp("</"+be+"[\\n\\r\\t ]*?>","ig")))}return J?this._create_token(H.TEXT,J):null},ee.prototype._read_script_and_style=function(B,G){if(G.type===H.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var le=G.opened.text.substr(1).toLowerCase();if(le==="script"||le==="style"){var J=this._read_comment_or_cdata(B);if(J)return J.type=H.TEXT,J;var be=this._input.readUntil(new RegExp("</"+le+"[\\n\\r\\t ]*?>","ig"));if(be)return this._create_token(H.TEXT,be)}}return null},ee.prototype._read_content_word=function(B,G){var le="";return this._options.unformatted_content_delimiter&&B===this._options.unformatted_content_delimiter[0]&&(le=this.__patterns.unformatted_content_delimiter.read()),le||(le=G&&G.type===H.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),le?this._create_token(H.TEXT,le):null},L.exports.Tokenizer=ee,L.exports.TOKEN=H}],I={};function n(L){var p=I[L];if(p!==void 0)return p.exports;var a=I[L]={exports:{}};return O[L](a,a.exports,n),a.exports}var o=n(18);se=o})();var Me=se;if(1)we=[g,g(58553),g(87804)],De=function(O){var I=g(58553),n=g(87804);return{html_beautify:function(o,L){return Me(o,L,I.js_beautify,n.css_beautify)}}}.apply(Zt,we),De!==void 0&&(bn.exports=De);else var ie,Y})()},58553:function(bn,Zt){var g,we;(function(){var De;(function(){"use strict";var Me=[function(I,n,o){var L=o(1).Beautifier,p=o(5).Options;function a(A,m){var S=new L(A,m);return S.beautify()}I.exports=a,I.exports.defaultOptions=function(){return new p}},function(I,n,o){var L=o(2).Output,p=o(3).Token,a=o(4),A=o(5).Options,m=o(7).Tokenizer,S=o(7).line_starters,$=o(7).positionable_operators,F=o(7).TOKEN;function H(P,X){return X.indexOf(P)!==-1}function V(P){return P.replace(/^\s+/g,"")}function ee(P){for(var X={},pe=0;pe<P.length;pe++)X[P[pe].replace(/-/g,"_")]=P[pe];return X}function B(P,X){return P&&P.type===F.RESERVED&&P.text===X}function G(P,X){return P&&P.type===F.RESERVED&&H(P.text,X)}var le=["case","return","do","if","throw","else","await","break","continue","async"],J=["before-newline","after-newline","preserve-newline"],be=ee(J),Ce=[be.before_newline,be.preserve_newline],Re={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ae(P,X){X.multiline_frame||X.mode===Re.ForInitializer||X.mode===Re.Conditional||P.remove_indent(X.start_line_index)}function me(P){P=P.replace(a.allLineBreaks,`
|
|
|
`);for(var X=[],pe=P.indexOf(`
|
|
|
`);pe!==-1;)X.push(P.substring(0,pe)),P=P.substring(pe+1),pe=P.indexOf(`
|
|
|
`);return P.length&&X.push(P),X}function T(P){return P===Re.ArrayLiteral}function Ee(P){return H(P,[Re.Expression,Re.ForInitializer,Re.Conditional])}function oe(P,X){for(var pe=0;pe<P.length;pe++){var Je=P[pe].trim();if(Je.charAt(0)!==X)return!1}return!0}function he(P,X){for(var pe=0,Je=P.length,at;pe<Je;pe++)if(at=P[pe],at&&at.indexOf(X)!==0)return!1;return!0}function ve(P,X){X=X||{},this._source_text=P||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new A(X)}ve.prototype.create_flags=function(P,X){var pe=0;P&&(pe=P.indentation_level,!this._output.just_added_newline()&&P.line_indent_level>pe&&(pe=P.line_indent_level));var Je={mode:X,parent:P,last_token:P?P.last_token:new p(F.START_BLOCK,""),last_word:P?P.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:pe,alignment:0,line_indent_level:P?P.line_indent_level:pe,start_line_index:this._output.get_line_number(),ternary_depth:0};return Je},ve.prototype._reset=function(P){var X=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new L(this._options,X),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Re.BlockStatement);var pe=new m(P,this._options);return this._tokens=pe.tokenize(),P},ve.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,X=this._reset(this._source_text),pe=this._options.eol;this._options.eol==="auto"&&(pe=`
|
|
|
`,X&&a.lineBreak.test(X||"")&&(pe=X.match(a.lineBreak)[0]));for(var Je=this._tokens.next();Je;)this.handle_token(Je),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Je,Je=this._tokens.next();return P=this._output.get_code(pe),P},ve.prototype.handle_token=function(P,X){P.type===F.START_EXPR?this.handle_start_expr(P):P.type===F.END_EXPR?this.handle_end_expr(P):P.type===F.START_BLOCK?this.handle_start_block(P):P.type===F.END_BLOCK?this.handle_end_block(P):P.type===F.WORD?this.handle_word(P):P.type===F.RESERVED?this.handle_word(P):P.type===F.SEMICOLON?this.handle_semicolon(P):P.type===F.STRING?this.handle_string(P):P.type===F.EQUALS?this.handle_equals(P):P.type===F.OPERATOR?this.handle_operator(P):P.type===F.COMMA?this.handle_comma(P):P.type===F.BLOCK_COMMENT?this.handle_block_comment(P,X):P.type===F.COMMENT?this.handle_comment(P,X):P.type===F.DOT?this.handle_dot(P):P.type===F.EOF?this.handle_eof(P):P.type===F.UNKNOWN?this.handle_unknown(P,X):this.handle_unknown(P,X)},ve.prototype.handle_whitespace_and_comments=function(P,X){var pe=P.newlines,Je=this._options.keep_array_indentation&&T(this._flags.mode);if(P.comments_before)for(var at=P.comments_before.next();at;)this.handle_whitespace_and_comments(at,X),this.handle_token(at,X),at=P.comments_before.next();if(Je)for(var nt=0;nt<pe;nt+=1)this.print_newline(nt>0,X);else if(this._options.max_preserve_newlines&&pe>this._options.max_preserve_newlines&&(pe=this._options.max_preserve_newlines),this._options.preserve_newlines&&pe>1){this.print_newline(!1,X);for(var Lt=1;Lt<pe;Lt+=1)this.print_newline(!0,X)}};var _=["async","break","continue","return","throw","yield"];ve.prototype.allow_wrap_or_preserved_newline=function(P,X){if(X=X===void 0?!1:X,!this._output.just_added_newline()){var pe=this._options.preserve_newlines&&P.newlines||X,Je=H(this._flags.last_token.text,$)||H(P.text,$);if(Je){var at=H(this._flags.last_token.text,$)&&H(this._options.operator_position,Ce)||H(P.text,$);pe=pe&&at}if(pe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(G(this._flags.last_token,_))return;this._output.set_wrap_point()}}},ve.prototype.print_newline=function(P,X){if(!X&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==F.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var pe=this._tokens.peek();this._flags.mode===Re.Statement&&!(this._flags.if_block&&B(pe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(P)&&(this._flags.multiline_frame=!0)},ve.prototype.print_token_line_indentation=function(P){this._output.just_added_newline()&&(this._options.keep_array_indentation&&P.newlines&&(P.text==="["||T(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(P.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},ve.prototype.print_token=function(P){if(this._output.raw){this._output.add_raw_token(P);return}if(this._options.comma_first&&P.previous&&P.previous.type===F.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var X=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(X),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(P),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(P),this._output.non_breaking_space=!0,this._output.add_token(P.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},ve.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ve.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ve.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ve.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Re.Statement&&ae(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ve.prototype.start_of_object_property=function(){return this._flags.parent.mode===Re.ObjectLiteral&&this._flags.mode===Re.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||G(this._flags.last_token,["get","set"]))},ve.prototype.start_of_statement=function(P){var X=!1;return X=X||G(this._flags.last_token,["var","let","const"])&&P.type===F.WORD,X=X||B(this._flags.last_token,"do"),X=X||!(this._flags.parent.mode===Re.ObjectLiteral&&this._flags.mode===Re.Statement)&&G(this._flags.last_token,_)&&!P.newlines,X=X||B(this._flags.last_token,"else")&&!(B(P,"if")&&!P.comments_before),X=X||this._flags.last_token.type===F.END_EXPR&&(this._previous_flags.mode===Re.ForInitializer||this._previous_flags.mode===Re.Conditional),X=X||this._flags.last_token.type===F.WORD&&this._flags.mode===Re.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==F.WORD&&P.type!==F.RESERVED,X=X||this._flags.mode===Re.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||G(this._flags.last_token,["get","set"])),X?(this.set_mode(Re.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,G(P,["do","for","if","while"])),!0):!1},ve.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var X=Re.Expression;if(P.text==="["){if(this._flags.last_token.type===F.WORD||this._flags.last_token.text===")"){G(this._flags.last_token,S)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(X),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}X=Re.ArrayLiteral,T(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),H(this._flags.last_token.type,[F.START_EXPR,F.END_EXPR,F.WORD,F.OPERATOR,F.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===F.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,X=Re.ForInitializer):H(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,X=Re.Conditional):H(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(H(this._flags.last_token.text,S)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P);else if(this._flags.last_token.type===F.WORD){this._output.space_before_token=!1;var pe=this._tokens.peek(-3);if(this._options.space_after_named_function&&pe){var Je=this._tokens.peek(-4);G(pe,["async","function"])||pe.text==="*"&&G(Je,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Re.ObjectLiteral?(pe.text==="{"||pe.text===","||pe.text==="*"&&(Je.text==="{"||Je.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(P);(this._flags.last_token.type===F.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(H(this._last_last_text,["function","yield"])||this._flags.mode===Re.ObjectLiteral&&H(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===F.START_BLOCK?this.print_newline():(this._flags.last_token.type===F.END_EXPR||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===F.COMMA)&&this.allow_wrap_or_preserved_newline(P,P.newlines),this.print_token(P),this.set_mode(X),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ve.prototype.handle_end_expr=function(P){for(;this._flags.mode===Re.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===F.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(P),this.restore_mode(),ae(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Re.Conditional&&(this._previous_flags.mode=Re.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},ve.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var X=this._tokens.peek(),pe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===F.END_EXPR?(this.set_mode(Re.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Re.BlockStatement):pe&&(H(pe.text,[":",","])&&H(X.type,[F.STRING,F.WORD,F.RESERVED])||H(X.text,["get","set","..."])&&H(pe.type,[F.WORD,F.RESERVED]))?H(this._last_last_text,["class","interface"])&&!H(pe.text,[":",","])?this.set_mode(Re.BlockStatement):this.set_mode(Re.ObjectLiteral):this._flags.last_token.type===F.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Re.BlockStatement):H(this._flags.last_token.type,[F.EQUALS,F.START_EXPR,F.COMMA,F.OPERATOR])||G(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Re.ObjectLiteral):this.set_mode(Re.BlockStatement),this._flags.last_token&&G(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Je=!X.comments_before&&X.text==="}",at=Je&&this._flags.last_word==="function"&&this._flags.last_token.type===F.END_EXPR;if(this._options.brace_preserve_inline){var nt=0,Lt=null;this._flags.inline_frame=!0;do if(nt+=1,Lt=this._tokens.peek(nt-1),Lt.newlines){this._flags.inline_frame=!1;break}while(Lt.type!==F.EOF&&!(Lt.type===F.END_BLOCK&&Lt.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==F.OPERATOR&&(at||this._flags.last_token.type===F.EQUALS||G(this._flags.last_token,le)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.COMMA)&&((this._flags.last_token.type===F.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(P),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==F.OPERATOR&&this._flags.last_token.type!==F.START_EXPR&&(H(this._flags.last_token.type,[F.START_BLOCK,F.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(P),this.indent(),!Je&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ve.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===Re.Statement;)this.restore_mode();var X=this._flags.last_token.type===F.START_BLOCK;this._flags.inline_frame&&!X?this._output.space_before_token=!0:this._options.brace_style==="expand"?X||this.print_newline():X||(T(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(P)},ve.prototype.handle_word=function(P){if(P.type===F.RESERVED){if(H(P.text,["set","get"])&&this._flags.mode!==Re.ObjectLiteral)P.type=F.WORD;else if(P.text==="import"&&H(this._tokens.peek().text,["(","."]))P.type=F.WORD;else if(H(P.text,["as","from"])&&!this._flags.import_block)P.type=F.WORD;else if(this._flags.mode===Re.ObjectLiteral){var X=this._tokens.peek();X.text===":"&&(P.type=F.WORD)}}if(this.start_of_statement(P)?G(this._flags.last_token,["var","let","const"])&&P.type===F.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!Ee(this._flags.mode)&&(this._flags.last_token.type!==F.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==F.EQUALS&&(this._options.preserve_newlines||!G(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(B(P,"while")){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&B(P,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Re.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&G(P,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(P),this._flags.in_case=!0;return}if((this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR)&&!this.start_of_object_property()&&!(H(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Re.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(P),B(P,"function")){(H(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(H(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===F.OPERATOR))&&!this._output.just_added_blankline()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD?G(this._flags.last_token,["get","set","new","export"])||G(this._flags.last_token,_)?this._output.space_before_token=!0:B(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===F.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Ee(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var pe="NONE";if(this._flags.last_token.type===F.END_BLOCK?this._previous_flags.inline_frame?pe="SPACE":G(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?pe="NEWLINE":(pe="SPACE",this._output.space_before_token=!0):pe="NEWLINE":this._flags.last_token.type===F.SEMICOLON&&this._flags.mode===Re.BlockStatement?pe="NEWLINE":this._flags.last_token.type===F.SEMICOLON&&Ee(this._flags.mode)?pe="SPACE":this._flags.last_token.type===F.STRING?pe="NEWLINE":this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD||this._flags.last_token.text==="*"&&(H(this._last_last_text,["function","yield"])||this._flags.mode===Re.ObjectLiteral&&H(this._last_last_text,["{",","]))?pe="SPACE":this._flags.last_token.type===F.START_BLOCK?this._flags.inline_frame?pe="SPACE":pe="NEWLINE":this._flags.last_token.type===F.END_EXPR&&(this._output.space_before_token=!0,pe="NEWLINE"),G(P,S)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?pe="SPACE":pe="NEWLINE"),G(P,["else","catch","finally"]))if((!(this._flags.last_token.type===F.END_BLOCK&&this._previous_flags.mode===Re.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Je=this._output.current_line;Je.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else pe==="NEWLINE"?G(this._flags.last_token,le)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&G(P,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==F.END_EXPR?(this._flags.last_token.type!==F.START_EXPR||!G(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(B(P,"if")&&B(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):G(P,S)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():pe==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===F.WORD||P.previous.type===F.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===F.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&B(P,"from")&&(this._flags.import_block=!1))},ve.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var X=this._tokens.peek();this._flags.mode===Re.Statement&&!(this._flags.if_block&&B(X,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},ve.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===F.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P):P.text.startsWith("`")&&this._flags.last_token.type===F.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},ve.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},ve.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(Ee(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)):this._flags.mode===Re.ObjectLiteral||this._flags.mode===Re.Statement&&this._flags.parent.mode===Re.ObjectLiteral?(this._flags.mode===Re.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)},ve.prototype.handle_operator=function(P){var X=P.text==="*"&&(G(this._flags.last_token,["function","yield"])||H(this._flags.last_token.type,[F.START_BLOCK,F.COMMA,F.END_BLOCK,F.SEMICOLON])),pe=H(P.text,["-","+"])&&(H(this._flags.last_token.type,[F.START_BLOCK,F.START_EXPR,F.EQUALS,F.OPERATOR])||H(this._flags.last_token.text,S)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var Je=!X;this.handle_whitespace_and_comments(P,Je)}if(P.text==="*"&&this._flags.last_token.type===F.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(H(P.text,["-","+"])&&this.start_of_object_property()){this.print_token(P);return}if(this._flags.last_token.type===F.OPERATOR&&H(this._options.operator_position,Ce)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==F.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var at=!0,nt=!0,Lt=!1;if(P.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,Lt=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!pe&&!X&&this._options.preserve_newlines&&H(P.text,$)){var ur=P.text===":",Jt=ur&&Lt,We=ur&&!Lt;switch(this._options.operator_position){case be.before_newline:this._output.space_before_token=!We,this.print_token(P),(!ur||Jt)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case be.after_newline:this._output.space_before_token=!0,!ur||Jt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case be.preserve_newline:We||this.allow_wrap_or_preserved_newline(P),at=!(this._output.just_added_newline()||We),this._output.space_before_token=at,this.print_token(P),this._output.space_before_token=!0;return}}if(X){this.allow_wrap_or_preserved_newline(P),at=!1;var Cr=this._tokens.peek();nt=Cr&&H(Cr.type,[F.WORD,F.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),at=this._flags.last_token.type===F.START_BLOCK,nt=!1;else if(H(P.text,["--","++","!","~"])||pe){if((this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),at=!1,nt=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var Er=G(this._flags.last_token,le)&&P.newlines;Er&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Er,!0)}this._flags.last_token.text===";"&&Ee(this._flags.mode)&&(at=!0),this._flags.last_token.type===F.RESERVED?at=!0:this._flags.last_token.type===F.END_EXPR?at=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===F.OPERATOR&&(at=H(P.text,["--","-","++","+"])&&H(this._flags.last_token.text,["--","-","++","+"]),H(P.text,["+","-"])&&H(this._flags.last_token.text,["--","++"])&&(nt=!0)),(this._flags.mode===Re.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Re.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||at,this.print_token(P),this._output.space_before_token=nt},ve.prototype.handle_block_comment=function(P,X){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,X),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,X)},ve.prototype.print_block_commment=function(P,X){var pe=me(P.text),Je,at=!1,nt=!1,Lt=P.whitespace_before,ur=Lt.length;if(this.print_newline(!1,X),this.print_token_line_indentation(P),this._output.add_token(pe[0]),this.print_newline(!1,X),pe.length>1){for(pe=pe.slice(1),at=oe(pe,"*"),nt=he(pe,Lt),at&&(this._flags.alignment=1),Je=0;Je<pe.length;Je++)at?(this.print_token_line_indentation(P),this._output.add_token(V(pe[Je]))):nt&&pe[Je]?(this.print_token_line_indentation(P),this._output.add_token(pe[Je].substring(ur))):(this._output.current_line.set_indent(-1),this._output.add_token(pe[Je])),this.print_newline(!1,X);this._flags.alignment=0}},ve.prototype.handle_comment=function(P,X){P.newlines?this.print_newline(!1,X):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(P),this.print_newline(!1,X)},ve.prototype.handle_dot=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),G(this._flags.last_token,le)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(P,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(P)},ve.prototype.handle_unknown=function(P,X){this.print_token(P),P.text[P.text.length-1]===`
|
|
|
`&&this.print_newline(!1,X)},ve.prototype.handle_eof=function(P){for(;this._flags.mode===Re.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P)},I.exports.Beautifier=ve},function(I){function n(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}n.prototype.clone_empty=function(){var p=new n(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},n.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},n.prototype.has_match=function(p){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(p))return!0;return!1},n.prototype.set_indent=function(p,a){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},n.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},n.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},n.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},n.prototype.is_empty=function(){return this.__items.length===0},n.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},n.prototype.push=function(p){this.__items.push(p);var a=p.lastIndexOf(`
|
|
|
`);a!==-1?this.__character_count=p.length-a:this.__character_count+=p.length},n.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},n.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},n.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},n.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},n.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function o(p,a){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),a=a||"",p.indent_level>0&&(a=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}o.prototype.get_indent_size=function(p,a){var A=this.__base_string_length;return a=a||0,p<0&&(A=0),A+=p*this.__indent_size,A+=a,A},o.prototype.get_indent_string=function(p,a){var A=this.__base_string;return a=a||0,p<0&&(p=0,A=""),a+=p*this.__indent_size,this.__ensure_cache(a),A+=this.__cache[a],A},o.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var p=this.__cache.length,a=0,A="";this.__indent_size&&p>=this.__indent_size&&(a=Math.floor(p/this.__indent_size),p-=a*this.__indent_size,A=new Array(a+1).join(this.__indent_string)),p&&(A+=new Array(p+1).join(" ")),this.__cache.push(A)};function L(p,a){this.__indent_cache=new o(p,a),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new n(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(p,a){return this.__indent_cache.get_indent_string(p,a)},L.prototype.get_indent_size=function(p,a){return this.__indent_cache.get_indent_size(p,a)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(p){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
|
`);return p!==`
|
|
|
`&&(A=A.replace(/[\n]/g,p)),A},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(p,a){return p=p||0,a=a||0,this.next_line.set_indent(p,a),this.__lines.length>1?(this.current_line.set_indent(p,a),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(p){for(var a=0;a<p.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},L.prototype.remove_indent=function(p){for(var a=this.__lines.length;p<a;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(p,a){for(var A=this.__lines.length-2;A>=0;){var m=this.__lines[A];if(m.is_empty())break;if(m.item(0).indexOf(p)!==0&&m.item(-1)!==a){this.__lines.splice(A+1,0,new n(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},I.exports.Output=L},function(I){function n(o,L,p,a){this.type=o,this.text=L,this.comments_before=null,this.newlines=p||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}I.exports.Token=n},function(I,n){var o="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",L="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",A="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",m="(?:"+A+"|["+o+p+"])",S="(?:"+A+"|["+L+p+a+"])*";n.identifier=new RegExp(m+S,"g"),n.identifierStart=new RegExp(m),n.identifierMatch=new RegExp("(?:"+A+"|["+L+p+a+"])+");var $=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;n.newline=/[\n\r\u2028\u2029]/,n.lineBreak=new RegExp(`\r
|
|
|
|`+n.newline.source),n.allLineBreaks=new RegExp(n.lineBreak.source,"g")},function(I,n,o){var L=o(6).Options,p=["before-newline","after-newline","preserve-newline"];function a(A){L.call(this,A,"js");var m=this.raw_options.brace_style||null;m==="expand-strict"?this.raw_options.brace_style="expand":m==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var S=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var $=0;$<S.length;$++)S[$]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=S[$];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",p),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}a.prototype=new L,I.exports.Options=a},function(I){function n(p,a){this.raw_options=o(p,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}n.prototype._get_array=function(p,a){var A=this.raw_options[p],m=a||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(m=A.concat()):typeof A=="string"&&(m=A.split(/[^a-zA-Z0-9_\/\-]+/)),m},n.prototype._get_boolean=function(p,a){var A=this.raw_options[p],m=A===void 0?!!a:!!A;return m},n.prototype._get_characters=function(p,a){var A=this.raw_options[p],m=a||"";return typeof A=="string"&&(m=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),m},n.prototype._get_number=function(p,a){var A=this.raw_options[p];a=parseInt(a,10),isNaN(a)&&(a=0);var m=parseInt(A,10);return isNaN(m)&&(m=a),m},n.prototype._get_selection=function(p,a,A){var m=this._get_selection_list(p,a,A);if(m.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m[0]},n.prototype._get_selection_list=function(p,a,A){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[a[0]],!this._is_valid_selection(A,a))throw new Error("Invalid Default Value!");var m=this._get_array(p,A);if(!this._is_valid_selection(m,a))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m},n.prototype._is_valid_selection=function(p,a){return p.length&&a.length&&!p.some(function(A){return a.indexOf(A)===-1})};function o(p,a){var A={};p=L(p);var m;for(m in p)m!==a&&(A[m]=p[m]);if(a&&p[a])for(m in p[a])A[m]=p[a][m];return A}function L(p){var a={},A;for(A in p){var m=A.replace(/-/g,"_");a[m]=p[A]}return a}I.exports.Options=n,I.exports.normalizeOpts=L,I.exports.mergeOpts=o},function(I,n,o){var L=o(8).InputScanner,p=o(9).Tokenizer,a=o(9).TOKEN,A=o(13).Directives,m=o(4),S=o(12).Pattern,$=o(14).TemplatablePattern;function F(oe,he){return he.indexOf(oe)!==-1}var H={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},V=new A(/\/\*/,/\*\//),ee=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,B=/[0-9]/,G=/[^\d\.]/,le=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),J=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";J=J.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),J="\\?\\.(?!\\d) "+J,J=J.replace(/ /g,"|");var be=new RegExp(J),Ce="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Re=Ce.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ae=new RegExp("^(?:"+Re.join("|")+")$"),me,T=function(oe,he){p.call(this,oe,he),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var ve=new S(this._input),_=new $(this._input).read_options(this._options);this.__patterns={template:_,identifier:_.starting_with(m.identifier).matching(m.identifierMatch),number:ve.matching(ee),punct:ve.matching(be),comment:ve.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:ve.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:ve.matching(/<!--/),html_comment_end:ve.matching(/-->/),include:ve.starting_with(/#include/).until_after(m.lineBreak),shebang:ve.starting_with(/#!/).until_after(m.lineBreak),xml:ve.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:_.until(/['\\\n\r\u2028\u2029]/),double_quote:_.until(/["\\\n\r\u2028\u2029]/),template_text:_.until(/[`\\$]/),template_expression:_.until(/[`}\\]/)}};T.prototype=new p,T.prototype._is_comment=function(oe){return oe.type===H.COMMENT||oe.type===H.BLOCK_COMMENT||oe.type===H.UNKNOWN},T.prototype._is_opening=function(oe){return oe.type===H.START_BLOCK||oe.type===H.START_EXPR},T.prototype._is_closing=function(oe,he){return(oe.type===H.END_BLOCK||oe.type===H.END_EXPR)&&he&&(oe.text==="]"&&he.text==="["||oe.text===")"&&he.text==="("||oe.text==="}"&&he.text==="{")},T.prototype._reset=function(){me=!1},T.prototype._get_next_token=function(oe,he){var ve=null;this._readWhitespace();var _=this._input.peek();return _===null?this._create_token(H.EOF,""):(ve=ve||this._read_non_javascript(_),ve=ve||this._read_string(_),ve=ve||this._read_pair(_,this._input.peek(1)),ve=ve||this._read_word(oe),ve=ve||this._read_singles(_),ve=ve||this._read_comment(_),ve=ve||this._read_regexp(_,oe),ve=ve||this._read_xml(_,oe),ve=ve||this._read_punctuation(),ve=ve||this._create_token(H.UNKNOWN,this._input.next()),ve)},T.prototype._read_word=function(oe){var he;if(he=this.__patterns.identifier.read(),he!=="")return he=he.replace(m.allLineBreaks,`
|
|
|
`),!(oe.type===H.DOT||oe.type===H.RESERVED&&(oe.text==="set"||oe.text==="get"))&&ae.test(he)?(he==="in"||he==="of")&&(oe.type===H.WORD||oe.type===H.STRING)?this._create_token(H.OPERATOR,he):this._create_token(H.RESERVED,he):this._create_token(H.WORD,he);if(he=this.__patterns.number.read(),he!=="")return this._create_token(H.WORD,he)},T.prototype._read_singles=function(oe){var he=null;return oe==="("||oe==="["?he=this._create_token(H.START_EXPR,oe):oe===")"||oe==="]"?he=this._create_token(H.END_EXPR,oe):oe==="{"?he=this._create_token(H.START_BLOCK,oe):oe==="}"?he=this._create_token(H.END_BLOCK,oe):oe===";"?he=this._create_token(H.SEMICOLON,oe):oe==="."&&G.test(this._input.peek(1))?he=this._create_token(H.DOT,oe):oe===","&&(he=this._create_token(H.COMMA,oe)),he&&this._input.next(),he},T.prototype._read_pair=function(oe,he){var ve=null;return oe==="#"&&he==="{"&&(ve=this._create_token(H.START_BLOCK,oe+he)),ve&&(this._input.next(),this._input.next()),ve},T.prototype._read_punctuation=function(){var oe=this.__patterns.punct.read();if(oe!=="")return oe==="="?this._create_token(H.EQUALS,oe):oe==="?."?this._create_token(H.DOT,oe):this._create_token(H.OPERATOR,oe)},T.prototype._read_non_javascript=function(oe){var he="";if(oe==="#"){if(this._is_first_token()&&(he=this.__patterns.shebang.read(),he))return this._create_token(H.UNKNOWN,he.trim()+`
|
|
|
`);if(he=this.__patterns.include.read(),he)return this._create_token(H.UNKNOWN,he.trim()+`
|
|
|
`);oe=this._input.next();var ve="#";if(this._input.hasNext()&&this._input.testChar(B)){do oe=this._input.next(),ve+=oe;while(this._input.hasNext()&&oe!=="#"&&oe!=="=");return oe==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(ve+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(ve+="{}",this._input.next(),this._input.next())),this._create_token(H.WORD,ve)}this._input.back()}else if(oe==="<"&&this._is_first_token()){if(he=this.__patterns.html_comment_start.read(),he){for(;this._input.hasNext()&&!this._input.testChar(m.newline);)he+=this._input.next();return me=!0,this._create_token(H.COMMENT,he)}}else if(me&&oe==="-"&&(he=this.__patterns.html_comment_end.read(),he))return me=!1,this._create_token(H.COMMENT,he);return null},T.prototype._read_comment=function(oe){var he=null;if(oe==="/"){var ve="";if(this._input.peek(1)==="*"){ve=this.__patterns.block_comment.read();var _=V.get_directives(ve);_&&_.ignore==="start"&&(ve+=V.readIgnored(this._input)),ve=ve.replace(m.allLineBreaks,`
|
|
|
`),he=this._create_token(H.BLOCK_COMMENT,ve),he.directives=_}else this._input.peek(1)==="/"&&(ve=this.__patterns.comment.read(),he=this._create_token(H.COMMENT,ve))}return he},T.prototype._read_string=function(oe){if(oe==="`"||oe==="'"||oe==='"'){var he=this._input.next();return this.has_char_escapes=!1,oe==="`"?he+=this._read_string_recursive("`",!0,"${"):he+=this._read_string_recursive(oe),this.has_char_escapes&&this._options.unescape_strings&&(he=Ee(he)),this._input.peek()===oe&&(he+=this._input.next()),he=he.replace(m.allLineBreaks,`
|
|
|
`),this._create_token(H.STRING,he)}return null},T.prototype._allow_regexp_or_xml=function(oe){return oe.type===H.RESERVED&&F(oe.text,["return","case","throw","else","do","typeof","yield"])||oe.type===H.END_EXPR&&oe.text===")"&&oe.opened.previous.type===H.RESERVED&&F(oe.opened.previous.text,["if","while","for"])||F(oe.type,[H.COMMENT,H.START_EXPR,H.START_BLOCK,H.START,H.END_BLOCK,H.OPERATOR,H.EQUALS,H.EOF,H.SEMICOLON,H.COMMA])},T.prototype._read_regexp=function(oe,he){if(oe==="/"&&this._allow_regexp_or_xml(he)){for(var ve=this._input.next(),_=!1,P=!1;this._input.hasNext()&&(_||P||this._input.peek()!==oe)&&!this._input.testChar(m.newline);)ve+=this._input.peek(),_?_=!1:(_=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===oe&&(ve+=this._input.next(),ve+=this._input.read(m.identifier)),this._create_token(H.STRING,ve)}return null},T.prototype._read_xml=function(oe,he){if(this._options.e4x&&oe==="<"&&this._allow_regexp_or_xml(he)){var ve="",_=this.__patterns.xml.read_match();if(_){for(var P=_[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),X=P.indexOf("{")===0,pe=0;_;){var Je=!!_[1],at=_[2],nt=!!_[_.length-1]||at.slice(0,8)==="![CDATA[";if(!nt&&(at===P||X&&at.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Je?--pe:++pe),ve+=_[0],pe<=0)break;_=this.__patterns.xml.read_match()}return _||(ve+=this._input.match(/[\s\S]*/g)[0]),ve=ve.replace(m.allLineBreaks,`
|
|
|
`),this._create_token(H.STRING,ve)}}return null};function Ee(oe){for(var he="",ve=0,_=new L(oe),P=null;_.hasNext();)if(P=_.match(/([\s]|[^\\]|\\\\)+/g),P&&(he+=P[0]),_.peek()==="\\"){if(_.next(),_.peek()==="x")P=_.match(/x([0-9A-Fa-f]{2})/g);else if(_.peek()==="u")P=_.match(/u([0-9A-Fa-f]{4})/g),P||(P=_.match(/u\{([0-9A-Fa-f]+)\}/g));else{he+="\\",_.hasNext()&&(he+=_.next());continue}if(!P||(ve=parseInt(P[1],16),ve>126&&ve<=255&&P[0].indexOf("x")===0))return oe;ve>=0&&ve<32||ve>1114111?he+="\\"+P[0]:ve===34||ve===39||ve===92?he+="\\"+String.fromCharCode(ve):he+=String.fromCharCode(ve)}return he}T.prototype._read_string_recursive=function(oe,he,ve){var _,P;oe==="'"?P=this.__patterns.single_quote:oe==='"'?P=this.__patterns.double_quote:oe==="`"?P=this.__patterns.template_text:oe==="}"&&(P=this.__patterns.template_expression);for(var X=P.read(),pe="";this._input.hasNext();){if(pe=this._input.next(),pe===oe||!he&&m.newline.test(pe)){this._input.back();break}else pe==="\\"&&this._input.hasNext()?(_=this._input.peek(),_==="x"||_==="u"?this.has_char_escapes=!0:_==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),pe+=this._input.next()):ve&&(ve==="${"&&pe==="$"&&this._input.peek()==="{"&&(pe+=this._input.next()),ve===pe&&(oe==="`"?pe+=this._read_string_recursive("}",he,"`"):pe+=this._read_string_recursive("`",he,"${"),this._input.hasNext()&&(pe+=this._input.next())));pe+=P.read(),X+=pe}return X},I.exports.Tokenizer=T,I.exports.TOKEN=H,I.exports.positionable_operators=le.slice(),I.exports.line_starters=Ce.slice()},function(I){var n=RegExp.prototype.hasOwnProperty("sticky");function o(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},o.prototype.peek=function(L){var p=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(p=this.__input.charAt(L)),p},o.prototype.__match=function(L,p){L.lastIndex=p;var a=L.exec(this.__input);return a&&!(n&&L.sticky)&&a.index!==p&&(a=null),a},o.prototype.test=function(L,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(L,p):!1},o.prototype.testChar=function(L,p){var a=this.peek(p);return L.lastIndex=0,a!==null&&L.test(a)},o.prototype.match=function(L){var p=this.__match(L,this.__position);return p?this.__position+=p[0].length:p=null,p},o.prototype.read=function(L,p,a){var A="",m;return L&&(m=this.match(L),m&&(A+=m[0])),p&&(m||!L)&&(A+=this.readUntil(p,a)),A},o.prototype.readUntil=function(L,p){var a="",A=this.__position;L.lastIndex=this.__position;var m=L.exec(this.__input);return m?(A=m.index,p&&(A+=m[0].length)):A=this.__input_length,a=this.__input.substring(this.__position,A),this.__position=A,a},o.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},o.prototype.get_regexp=function(L,p){var a=null,A="g";return p&&n&&(A="y"),typeof L=="string"&&L!==""?a=new RegExp(L,A):L&&(a=new RegExp(L.source,A)),a},o.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(L){var p=this.__position,a=this.readUntilAfter(L);return this.__position=p,a},o.prototype.lookBack=function(L){var p=this.__position-1;return p>=L.length&&this.__input.substring(p-L.length,p).toLowerCase()===L},I.exports.InputScanner=o},function(I,n,o){var L=o(8).InputScanner,p=o(3).Token,a=o(10).TokenStream,A=o(11).WhitespacePattern,m={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},S=function($,F){this._input=new L($),this._options=F||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new A(this._input)};S.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var $,F=new p(m.START,""),H=null,V=[],ee=new a;F.type!==m.EOF;){for($=this._get_next_token(F,H);this._is_comment($);)ee.add($),$=this._get_next_token(F,H);ee.isEmpty()||($.comments_before=ee,ee=new a),$.parent=H,this._is_opening($)?(V.push(H),H=$):H&&this._is_closing($,H)&&($.opened=H,H.closed=$,H=V.pop(),$.parent=H),$.previous=F,F.next=$,this.__tokens.add($),F=$}return this.__tokens},S.prototype._is_first_token=function(){return this.__tokens.isEmpty()},S.prototype._reset=function(){},S.prototype._get_next_token=function($,F){this._readWhitespace();var H=this._input.read(/.+/g);return H?this._create_token(m.RAW,H):this._create_token(m.EOF,"")},S.prototype._is_comment=function($){return!1},S.prototype._is_opening=function($){return!1},S.prototype._is_closing=function($,F){return!1},S.prototype._create_token=function($,F){var H=new p($,F,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return H},S.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},I.exports.Tokenizer=S,I.exports.TOKEN=m},function(I){function n(o){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=o}n.prototype.restart=function(){this.__position=0},n.prototype.isEmpty=function(){return this.__tokens_length===0},n.prototype.hasNext=function(){return this.__position<this.__tokens_length},n.prototype.next=function(){var o=null;return this.hasNext()&&(o=this.__tokens[this.__position],this.__position+=1),o},n.prototype.peek=function(o){var L=null;return o=o||0,o+=this.__position,o>=0&&o<this.__tokens_length&&(L=this.__tokens[o]),L},n.prototype.add=function(o){this.__parent_token&&(o.parent=this.__parent_token),this.__tokens.push(o),this.__tokens_length+=1},I.exports.TokenStream=n},function(I,n,o){var L=o(12).Pattern;function p(a,A){L.call(this,a,A),A?this._line_regexp=this._input.get_regexp(A._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}p.prototype=new L,p.prototype.__set_whitespace_patterns=function(a,A){a+="\\t ",A+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+A+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+A+"]")},p.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var A=this.__split(this._newline_regexp,a);this.newline_count=A.length-1,this.whitespace_before_token=A[this.newline_count]}return a},p.prototype.matching=function(a,A){var m=this._create();return m.__set_whitespace_patterns(a,A),m._update(),m},p.prototype._create=function(){return new p(this._input,this)},p.prototype.__split=function(a,A){a.lastIndex=0;for(var m=0,S=[],$=a.exec(A);$;)S.push(A.substring(m,$.index)),m=$.index+$[0].length,$=a.exec(A);return m<A.length?S.push(A.substring(m,A.length)):S.push(""),S},I.exports.WhitespacePattern=p},function(I){function n(o,L){this._input=o,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,L&&(this._starting_pattern=this._input.get_regexp(L._starting_pattern,!0),this._match_pattern=this._input.get_regexp(L._match_pattern,!0),this._until_pattern=this._input.get_regexp(L._until_pattern),this._until_after=L._until_after)}n.prototype.read=function(){var o=this._input.read(this._starting_pattern);return(!this._starting_pattern||o)&&(o+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),o},n.prototype.read_match=function(){return this._input.match(this._match_pattern)},n.prototype.until_after=function(o){var L=this._create();return L._until_after=!0,L._until_pattern=this._input.get_regexp(o),L._update(),L},n.prototype.until=function(o){var L=this._create();return L._until_after=!1,L._until_pattern=this._input.get_regexp(o),L._update(),L},n.prototype.starting_with=function(o){var L=this._create();return L._starting_pattern=this._input.get_regexp(o,!0),L._update(),L},n.prototype.matching=function(o){var L=this._create();return L._match_pattern=this._input.get_regexp(o,!0),L._update(),L},n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){},I.exports.Pattern=n},function(I){function n(o,L){o=typeof o=="string"?o:o.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+L,"g")}n.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(o);p;)L[p[1]]=p[2],p=this.__directive_pattern.exec(o);return L},n.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},I.exports.Directives=n},function(I,n,o){var L=o(12).Pattern,p={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function a(A,m){L.call(this,A,m),this.__template_pattern=null,this._disabled=Object.assign({},p),this._excluded=Object.assign({},p),m&&(this.__template_pattern=this._input.get_regexp(m.__template_pattern),this._excluded=Object.assign(this._excluded,m._excluded),this._disabled=Object.assign(this._disabled,m._disabled));var S=new L(A);this.__patterns={handlebars_comment:S.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:S.starting_with(/{{{/).until_after(/}}}/),handlebars:S.starting_with(/{{/).until_after(/}}/),php:S.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:S.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:S.starting_with(/{%/).until_after(/%}/),django_value:S.starting_with(/{{/).until_after(/}}/),django_comment:S.starting_with(/{#/).until_after(/#}/),smarty:S.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:S.starting_with(/{\*/).until_after(/\*}/),smarty_literal:S.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new L,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(A){var m=this._create();return m._disabled[A]=!0,m._update(),m},a.prototype.read_options=function(A){var m=this._create();for(var S in p)m._disabled[S]=A.templating.indexOf(S)===-1;return m._update(),m},a.prototype.exclude=function(A){var m=this._create();return m._excluded[A]=!0,m._update(),m},a.prototype.read=function(){var A="";this._match_pattern?A=this._input.read(this._starting_pattern):A=this._input.read(this._starting_pattern,this.__template_pattern);for(var m=this._read_template();m;)this._match_pattern?m+=this._input.read(this._match_pattern):m+=this._input.readUntil(this.__template_pattern),A+=m,m=this._read_template();return this._until_after&&(A+=this._input.readUntilAfter(this._until_pattern)),A},a.prototype.__set_templated_pattern=function(){var A=[];this._disabled.php||A.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||A.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(A.push(this.__patterns.django._starting_pattern.source),A.push(this.__patterns.django_value._starting_pattern.source),A.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||A.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&A.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+A.join("|")+")")},a.prototype._read_template=function(){var A="",m=this._input.peek();if(m==="<"){var S=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&S==="?"&&(A=A||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&S==="%"&&(A=A||this.__patterns.erb.read())}else m==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(A=A||this.__patterns.handlebars_comment.read(),A=A||this.__patterns.handlebars_unescaped.read(),A=A||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(A=A||this.__patterns.django_value.read()),this._excluded.django||(A=A||this.__patterns.django_comment.read(),A=A||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(A=A||this.__patterns.smarty_comment.read(),A=A||this.__patterns.smarty_literal.read(),A=A||this.__patterns.smarty.read()));return A},I.exports.TemplatablePattern=a}],ie={};function Y(I){var n=ie[I];if(n!==void 0)return n.exports;var o=ie[I]={exports:{}};return Me[I](o,o.exports,Y),o.exports}var O=Y(0);De=O})();var se=De;g=[],we=function(){return{js_beautify:se}}.apply(Zt,g),we!==void 0&&(bn.exports=we)})()},73207:function(bn,Zt,g){"use strict";g.r(Zt),g.d(Zt,{AcroForm:function(){return Js},AcroFormAppearance:function(){return Ti},AcroFormButton:function(){return ua},AcroFormCheckBox:function(){return Vs},AcroFormChoiceField:function(){return zs},AcroFormComboBox:function(){return Li},AcroFormEditBox:function(){return pi},AcroFormListBox:function(){return Os},AcroFormPasswordField:function(){return Ps},AcroFormPushButton:function(){return gs},AcroFormRadioButton:function(){return Oa},AcroFormTextField:function(){return vo},GState:function(){return Qa},ShadingPattern:function(){return is},TilingPattern:function(){return Da},default:function(){return oc},jsPDF:function(){return Ni}});var we=g(20135),De={},se=function(b,u,y,M,ne){var W=new Worker(De[u]||(De[u]=URL.createObjectURL(new Blob([b+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return W.onmessage=function(ge){var Le=ge.data,ke=Le.$e$;if(ke){var rt=new Error(ke[0]);rt.code=ke[1],rt.stack=ke[2],ne(rt,null)}else ne(null,Le)},W.postMessage(y,M),W},Me=Uint8Array,ie=Uint16Array,Y=Int32Array,O=new Me([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),I=new Me([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),n=new Me([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(b,u){for(var y=new ie(31),M=0;M<31;++M)y[M]=u+=1<<b[M-1];for(var ne=new Y(y[30]),M=1;M<30;++M)for(var W=y[M];W<y[M+1];++W)ne[W]=W-y[M]<<5|M;return{b:y,r:ne}},L=o(O,2),p=L.b,a=L.r;p[28]=258,a[258]=28;for(var A=o(I,0),m=A.b,S=A.r,$=new ie(32768),F=0;F<32768;++F){var H=(F&43690)>>1|(F&21845)<<1;H=(H&52428)>>2|(H&13107)<<2,H=(H&61680)>>4|(H&3855)<<4,$[F]=((H&65280)>>8|(H&255)<<8)>>1}for(var V=function(b,u,y){for(var M=b.length,ne=0,W=new ie(u);ne<M;++ne)b[ne]&&++W[b[ne]-1];var ge=new ie(u);for(ne=1;ne<u;++ne)ge[ne]=ge[ne-1]+W[ne-1]<<1;var Le;if(y){Le=new ie(1<<u);var ke=15-u;for(ne=0;ne<M;++ne)if(b[ne])for(var rt=ne<<4|b[ne],yt=u-b[ne],vt=ge[b[ne]-1]++<<yt,Pt=vt|(1<<yt)-1;vt<=Pt;++vt)Le[$[vt]>>ke]=rt}else for(Le=new ie(M),ne=0;ne<M;++ne)b[ne]&&(Le[ne]=$[ge[b[ne]-1]++]>>15-b[ne]);return Le},ee=new Me(288),F=0;F<144;++F)ee[F]=8;for(var F=144;F<256;++F)ee[F]=9;for(var F=256;F<280;++F)ee[F]=7;for(var F=280;F<288;++F)ee[F]=8;for(var B=new Me(32),F=0;F<32;++F)B[F]=5;var G=V(ee,9,0),le=V(ee,9,1),J=V(B,5,0),be=V(B,5,1),Ce=function(b){for(var u=b[0],y=1;y<b.length;++y)b[y]>u&&(u=b[y]);return u},Re=function(b,u,y){var M=u/8|0;return(b[M]|b[M+1]<<8)>>(u&7)&y},ae=function(b,u){var y=u/8|0;return(b[y]|b[y+1]<<8|b[y+2]<<16)>>(u&7)},me=function(b){return(b+7)/8|0},T=function(b,u,y){return(u==null||u<0)&&(u=0),(y==null||y>b.length)&&(y=b.length),new Me(b.subarray(u,y))},Ee={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},oe=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],he=function(b,u,y){var M=new Error(u||oe[b]);if(M.code=b,Error.captureStackTrace&&Error.captureStackTrace(M,he),!y)throw M;return M},ve=function(b,u,y,M){var ne=b.length,W=M?M.length:0;if(!ne||u.f&&!u.l)return y||new Me(0);var ge=!y,Le=ge||u.i!=2,ke=u.i;ge&&(y=new Me(ne*3));var rt=function($r){var An=y.length;if($r>An){var Dn=new Me(Math.max(An*2,$r));Dn.set(y),y=Dn}},yt=u.f||0,vt=u.p||0,Pt=u.b||0,Ve=u.l,cr=u.d,tr=u.m,dr=u.n,Qt=ne*8;do{if(!Ve){yt=Re(b,vt,1);var pr=Re(b,vt+1,3);if(vt+=3,pr)if(pr==1)Ve=le,cr=be,tr=9,dr=5;else if(pr==2){var di=Re(b,vt,31)+257,pn=Re(b,vt+10,15)+4,Sr=di+Re(b,vt+5,31)+1;vt+=14;for(var xn=new Me(Sr),Nn=new Me(19),er=0;er<pn;++er)Nn[n[er]]=Re(b,vt+er*3,7);vt+=pn*3;for(var nr=Ce(Nn),ye=(1<<nr)-1,xe=V(Nn,nr,1),er=0;er<Sr;){var et=xe[Re(b,vt,ye)];vt+=et&15;var Mr=et>>4;if(Mr<16)xn[er++]=Mr;else{var st=0,gt=0;for(Mr==16?(gt=3+Re(b,vt,3),vt+=2,st=xn[er-1]):Mr==17?(gt=3+Re(b,vt,7),vt+=3):Mr==18&&(gt=11+Re(b,vt,127),vt+=7);gt--;)xn[er++]=st}}var ft=xn.subarray(0,di),Ut=xn.subarray(di);tr=Ce(ft),dr=Ce(Ut),Ve=V(ft,tr,1),cr=V(Ut,dr,1)}else he(1);else{var Mr=me(vt)+4,sn=b[Mr-4]|b[Mr-3]<<8,Rn=Mr+sn;if(Rn>ne){ke&&he(0);break}Le&&rt(Pt+sn),y.set(b.subarray(Mr,Rn),Pt),u.b=Pt+=sn,u.p=vt=Rn*8,u.f=yt;continue}if(vt>Qt){ke&&he(0);break}}Le&&rt(Pt+131072);for(var $t=(1<<tr)-1,sr=(1<<dr)-1,Ze=vt;;Ze=vt){var st=Ve[ae(b,vt)&$t],_e=st>>4;if(vt+=st&15,vt>Qt){ke&&he(0);break}if(st||he(2),_e<256)y[Pt++]=_e;else if(_e==256){Ze=vt,Ve=null;break}else{var wt=_e-254;if(_e>264){var er=_e-257,Ht=O[er];wt=Re(b,vt,(1<<Ht)-1)+p[er],vt+=Ht}var Wt=cr[ae(b,vt)&sr],lr=Wt>>4;Wt||he(3),vt+=Wt&15;var Ut=m[lr];if(lr>3){var Ht=I[lr];Ut+=ae(b,vt)&(1<<Ht)-1,vt+=Ht}if(vt>Qt){ke&&he(0);break}Le&&rt(Pt+131072);var St=Pt+wt;if(Pt<Ut){var yr=W-Ut,Gr=Math.min(Ut,St);for(yr+Pt<0&&he(3);Pt<Gr;++Pt)y[Pt]=M[yr+Pt]}for(;Pt<St;++Pt)y[Pt]=y[Pt-Ut]}}u.l=Ve,u.p=Ze,u.b=Pt,u.f=yt,Ve&&(yt=1,u.m=tr,u.d=cr,u.n=dr)}while(!yt);return Pt!=y.length&&ge?T(y,0,Pt):y.subarray(0,Pt)},_=function(b,u,y){y<<=u&7;var M=u/8|0;b[M]|=y,b[M+1]|=y>>8},P=function(b,u,y){y<<=u&7;var M=u/8|0;b[M]|=y,b[M+1]|=y>>8,b[M+2]|=y>>16},X=function(b,u){for(var y=[],M=0;M<b.length;++M)b[M]&&y.push({s:M,f:b[M]});var ne=y.length,W=y.slice();if(!ne)return{t:Jt,l:0};if(ne==1){var ge=new Me(y[0].s+1);return ge[y[0].s]=1,{t:ge,l:1}}y.sort(function(Rn,di){return Rn.f-di.f}),y.push({s:-1,f:25001});var Le=y[0],ke=y[1],rt=0,yt=1,vt=2;for(y[0]={s:-1,f:Le.f+ke.f,l:Le,r:ke};yt!=ne-1;)Le=y[y[rt].f<y[vt].f?rt++:vt++],ke=y[rt!=yt&&y[rt].f<y[vt].f?rt++:vt++],y[yt++]={s:-1,f:Le.f+ke.f,l:Le,r:ke};for(var Pt=W[0].s,M=1;M<ne;++M)W[M].s>Pt&&(Pt=W[M].s);var Ve=new ie(Pt+1),cr=pe(y[yt-1],Ve,0);if(cr>u){var M=0,tr=0,dr=cr-u,Qt=1<<dr;for(W.sort(function(di,pn){return Ve[pn.s]-Ve[di.s]||di.f-pn.f});M<ne;++M){var pr=W[M].s;if(Ve[pr]>u)tr+=Qt-(1<<cr-Ve[pr]),Ve[pr]=u;else break}for(tr>>=dr;tr>0;){var Mr=W[M].s;Ve[Mr]<u?tr-=1<<u-Ve[Mr]++-1:++M}for(;M>=0&&tr;--M){var sn=W[M].s;Ve[sn]==u&&(--Ve[sn],++tr)}cr=u}return{t:new Me(Ve),l:cr}},pe=function(b,u,y){return b.s==-1?Math.max(pe(b.l,u,y+1),pe(b.r,u,y+1)):u[b.s]=y},Je=function(b){for(var u=b.length;u&&!b[--u];);for(var y=new ie(++u),M=0,ne=b[0],W=1,ge=function(ke){y[M++]=ke},Le=1;Le<=u;++Le)if(b[Le]==ne&&Le!=u)++W;else{if(!ne&&W>2){for(;W>138;W-=138)ge(32754);W>2&&(ge(W>10?W-11<<5|28690:W-3<<5|12305),W=0)}else if(W>3){for(ge(ne),--W;W>6;W-=6)ge(8304);W>2&&(ge(W-3<<5|8208),W=0)}for(;W--;)ge(ne);W=1,ne=b[Le]}return{c:y.subarray(0,M),n:u}},at=function(b,u){for(var y=0,M=0;M<u.length;++M)y+=b[M]*u[M];return y},nt=function(b,u,y){var M=y.length,ne=me(u+2);b[ne]=M&255,b[ne+1]=M>>8,b[ne+2]=b[ne]^255,b[ne+3]=b[ne+1]^255;for(var W=0;W<M;++W)b[ne+W+4]=y[W];return(ne+4+M)*8},Lt=function(b,u,y,M,ne,W,ge,Le,ke,rt,yt){_(u,yt++,y),++ne[256];for(var vt=X(ne,15),Pt=vt.t,Ve=vt.l,cr=X(W,15),tr=cr.t,dr=cr.l,Qt=Je(Pt),pr=Qt.c,Mr=Qt.n,sn=Je(tr),Rn=sn.c,di=sn.n,pn=new ie(19),Sr=0;Sr<pr.length;++Sr)++pn[pr[Sr]&31];for(var Sr=0;Sr<Rn.length;++Sr)++pn[Rn[Sr]&31];for(var xn=X(pn,7),Nn=xn.t,er=xn.l,nr=19;nr>4&&!Nn[n[nr-1]];--nr);var ye=rt+5<<3,xe=at(ne,ee)+at(W,B)+ge,et=at(ne,Pt)+at(W,tr)+ge+14+3*nr+at(pn,Nn)+2*pn[16]+3*pn[17]+7*pn[18];if(ke>=0&&ye<=xe&&ye<=et)return nt(u,yt,b.subarray(ke,ke+rt));var st,gt,ft,Ut;if(_(u,yt,1+(et<xe)),yt+=2,et<xe){st=V(Pt,Ve,0),gt=Pt,ft=V(tr,dr,0),Ut=tr;var $t=V(Nn,er,0);_(u,yt,Mr-257),_(u,yt+5,di-1),_(u,yt+10,nr-4),yt+=14;for(var Sr=0;Sr<nr;++Sr)_(u,yt+3*Sr,Nn[n[Sr]]);yt+=3*nr;for(var sr=[pr,Rn],Ze=0;Ze<2;++Ze)for(var _e=sr[Ze],Sr=0;Sr<_e.length;++Sr){var wt=_e[Sr]&31;_(u,yt,$t[wt]),yt+=Nn[wt],wt>15&&(_(u,yt,_e[Sr]>>5&127),yt+=_e[Sr]>>12)}}else st=G,gt=ee,ft=J,Ut=B;for(var Sr=0;Sr<Le;++Sr){var Ht=M[Sr];if(Ht>255){var wt=Ht>>18&31;P(u,yt,st[wt+257]),yt+=gt[wt+257],wt>7&&(_(u,yt,Ht>>23&31),yt+=O[wt]);var Wt=Ht&31;P(u,yt,ft[Wt]),yt+=Ut[Wt],Wt>3&&(P(u,yt,Ht>>5&8191),yt+=I[Wt])}else P(u,yt,st[Ht]),yt+=gt[Ht]}return P(u,yt,st[256]),yt+gt[256]},ur=new Y([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Jt=new Me(0),We=function(b,u,y,M,ne,W){var ge=W.z||b.length,Le=new Me(M+ge+5*(1+Math.ceil(ge/7e3))+ne),ke=Le.subarray(M,Le.length-ne),rt=W.l,yt=(W.r||0)&7;if(u){yt&&(ke[0]=W.r>>3);for(var vt=ur[u-1],Pt=vt>>13,Ve=vt&8191,cr=(1<<y)-1,tr=W.p||new ie(32768),dr=W.h||new ie(cr+1),Qt=Math.ceil(y/3),pr=2*Qt,Mr=function(ni){return(b[ni]^b[ni+1]<<Qt^b[ni+2]<<pr)&cr},sn=new Y(25e3),Rn=new ie(288),di=new ie(32),pn=0,Sr=0,xn=W.i||0,Nn=0,er=W.w||0,nr=0;xn+2<ge;++xn){var ye=Mr(xn),xe=xn&32767,et=dr[ye];if(tr[xe]=et,dr[ye]=xe,er<=xn){var st=ge-xn;if((pn>7e3||Nn>24576)&&(st>423||!rt)){yt=Lt(b,ke,0,sn,Rn,di,Sr,Nn,nr,xn-nr,yt),Nn=pn=Sr=0,nr=xn;for(var gt=0;gt<286;++gt)Rn[gt]=0;for(var gt=0;gt<30;++gt)di[gt]=0}var ft=2,Ut=0,$t=Ve,sr=xe-et&32767;if(st>2&&ye==Mr(xn-sr))for(var Ze=Math.min(Pt,st)-1,_e=Math.min(32767,xn),wt=Math.min(258,st);sr<=_e&&--$t&&xe!=et;){if(b[xn+ft]==b[xn+ft-sr]){for(var Ht=0;Ht<wt&&b[xn+Ht]==b[xn+Ht-sr];++Ht);if(Ht>ft){if(ft=Ht,Ut=sr,Ht>Ze)break;for(var Wt=Math.min(sr,Ht-2),lr=0,gt=0;gt<Wt;++gt){var St=xn-sr+gt&32767,yr=tr[St],Gr=St-yr&32767;Gr>lr&&(lr=Gr,et=St)}}}xe=et,et=tr[xe],sr+=xe-et&32767}if(Ut){sn[Nn++]=268435456|a[ft]<<18|S[Ut];var $r=a[ft]&31,An=S[Ut]&31;Sr+=O[$r]+I[An],++Rn[257+$r],++di[An],er=xn+ft,++pn}else sn[Nn++]=b[xn],++Rn[b[xn]]}}for(xn=Math.max(xn,er);xn<ge;++xn)sn[Nn++]=b[xn],++Rn[b[xn]];yt=Lt(b,ke,rt,sn,Rn,di,Sr,Nn,nr,xn-nr,yt),rt||(W.r=yt&7|ke[yt/8|0]<<3,yt-=7,W.h=dr,W.p=tr,W.i=xn,W.w=er)}else{for(var xn=W.w||0;xn<ge+rt;xn+=65535){var Dn=xn+65535;Dn>=ge&&(ke[yt/8|0]=rt,Dn=ge),yt=nt(ke,yt+1,b.subarray(xn,Dn))}W.i=ge}return T(Le,0,M+me(yt)+ne)},Cr=null,Er=function(){var b=-1;return{p:function(u){for(var y=b,M=0;M<u.length;++M)y=Cr[y&255^u[M]]^y>>>8;b=y},d:function(){return~b}}},Kr=function(){var b=1,u=0;return{p:function(y){for(var M=b,ne=u,W=y.length|0,ge=0;ge!=W;){for(var Le=Math.min(ge+2655,W);ge<Le;++ge)ne+=M+=y[ge];M=(M&65535)+15*(M>>16),ne=(ne&65535)+15*(ne>>16)}b=M,u=ne},d:function(){return b%=65521,u%=65521,(b&255)<<24|(b&65280)<<8|(u&255)<<8|u>>8}}},_r=function(b,u,y,M,ne){if(!ne&&(ne={l:1},u.dictionary)){var W=u.dictionary.subarray(-32768),ge=new Me(W.length+b.length);ge.set(W),ge.set(b,W.length),b=ge,ne.w=W.length}return We(b,u.level==null?6:u.level,u.mem==null?ne.l?Math.ceil(Math.max(8,Math.min(13,Math.log(b.length)))*1.5):20:12+u.mem,y,M,ne)},Se=function(b,u){var y={};for(var M in b)y[M]=b[M];for(var M in u)y[M]=u[M];return y},Nt=function(b,u,y){for(var M=b(),ne=b.toString(),W=ne.slice(ne.indexOf("[")+1,ne.lastIndexOf("]")).replace(/\s+/g,"").split(","),ge=0;ge<M.length;++ge){var Le=M[ge],ke=W[ge];if(typeof Le=="function"){u+=";"+ke+"=";var rt=Le.toString();if(Le.prototype)if(rt.indexOf("[native code]")!=-1){var yt=rt.indexOf(" ",8)+1;u+=rt.slice(yt,rt.indexOf("(",yt))}else{u+=rt;for(var vt in Le.prototype)u+=";"+ke+".prototype."+vt+"="+Le.prototype[vt].toString()}else u+=rt}else y[ke]=Le}return u},z=null,v=function(b){var u=[];for(var y in b)b[y].buffer&&u.push((b[y]=new b[y].constructor(b[y])).buffer);return u},h=function(b,u,y,M){if(!z[y]){for(var ne="",W={},ge=b.length-1,Le=0;Le<ge;++Le)ne=Nt(b[Le],ne,W);z[y]={c:Nt(b[ge],ne,W),e:W}}var ke=Se({},z[y].e);return se(z[y].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+u.toString()+"}",y,ke,v(ke),M)},D=function(){return[Me,ie,Y,O,I,n,p,m,le,be,$,oe,V,Ce,Re,ae,me,T,he,ve,qe,Ie,Fe]},fe=function(){return[Me,ie,Y,O,I,n,a,S,G,ee,J,B,$,ur,Jt,V,_,P,X,pe,Je,at,nt,Lt,me,T,We,_r,Yr,Ie]},Z=function(){return[Bt,mr,Ke,Er,Cr]},N=function(){return[Vt,Mt]},te=function(){return[wr,Ke,Kr]},Te=function(){return[re]},Ie=function(b){return postMessage(b,[b.buffer])},Fe=function(b){return b&&{out:b.size&&new Me(b.size),dictionary:b.dictionary}},ze=function(b,u,y,M,ne,W){var ge=h(y,M,ne,function(Le,ke){ge.terminate(),W(Le,ke)});return ge.postMessage([b,u],u.consume?[b.buffer]:[]),function(){ge.terminate()}},pt=function(b){return b.ondata=function(u,y){return postMessage([u,y],[u.buffer])},function(u){u.data.length?(b.push(u.data[0],u.data[1]),postMessage([u.data[0].length])):b.flush()}},$e=function(b,u,y,M,ne,W,ge){var Le,ke=h(b,M,ne,function(rt,yt){rt?(ke.terminate(),u.ondata.call(u,rt)):Array.isArray(yt)?yt.length==1?(u.queuedSize-=yt[0],u.ondrain&&u.ondrain(yt[0])):(yt[1]&&ke.terminate(),u.ondata.call(u,rt,yt[0],yt[1])):ge(yt)});ke.postMessage(y),u.queuedSize=0,u.push=function(rt,yt){u.ondata||he(5),Le&&u.ondata(he(4,0,1),null,!!yt),u.queuedSize+=rt.length,ke.postMessage([rt,Le=yt],[rt.buffer])},u.terminate=function(){ke.terminate()},W&&(u.flush=function(){ke.postMessage([])})},tt=function(b,u){return b[u]|b[u+1]<<8},ct=function(b,u){return(b[u]|b[u+1]<<8|b[u+2]<<16|b[u+3]<<24)>>>0},Ge=function(b,u){return ct(b,u)+ct(b,u+4)*4294967296},Ke=function(b,u,y){for(;y;++u)b[u]=y,y>>>=8},Bt=function(b,u){var y=u.filename;if(b[0]=31,b[1]=139,b[2]=8,b[8]=u.level<2?4:u.level==9?2:0,b[9]=3,u.mtime!=0&&Ke(b,4,Math.floor(new Date(u.mtime||Date.now())/1e3)),y){b[3]=8;for(var M=0;M<=y.length;++M)b[M+10]=y.charCodeAt(M)}},Vt=function(b){(b[0]!=31||b[1]!=139||b[2]!=8)&&he(6,"invalid gzip data");var u=b[3],y=10;u&4&&(y+=(b[10]|b[11]<<8)+2);for(var M=(u>>3&1)+(u>>4&1);M>0;M-=!b[y++]);return y+(u&2)},Mt=function(b){var u=b.length;return(b[u-4]|b[u-3]<<8|b[u-2]<<16|b[u-1]<<24)>>>0},mr=function(b){return 10+(b.filename?b.filename.length+1:0)},wr=function(b,u){var y=u.level,M=y==0?0:y<6?1:y==9?3:2;if(b[0]=120,b[1]=M<<6|(u.dictionary&&32),b[1]|=31-(b[0]<<8|b[1])%31,u.dictionary){var ne=Kr();ne.p(u.dictionary),Ke(b,2,ne.d())}},re=function(b,u){return((b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31)&&he(6,"invalid zlib data"),(b[1]>>5&1)==+!u&&he(6,"invalid zlib data: "+(b[1]&32?"need":"unexpected")+" dictionary"),(b[1]>>3&4)+2};function ue(b,u){return typeof b=="function"&&(u=b,b={}),this.ondata=u,b}var rr=null,Qe=null;function ot(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),ze(b,u,[fe],function(M){return Ie(Yr(M.data[0],M.data[1]))},0,y)}function Yr(b,u){return _r(b,u||{},0,0)}var It=null,zt=null;function qt(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),ze(b,u,[D],function(M){return Ie(qe(M.data[0],Fe(M.data[1])))},1,y)}function qe(b,u){return ve(b,{i:2},u&&u.out,u&&u.dictionary)}var At=null,dt=null;function Gt(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),ze(b,u,[fe,Z,function(){return[Pe]}],function(M){return Ie(Pe(M.data[0],M.data[1]))},2,y)}function Pe(b,u){u||(u={});var y=Er(),M=b.length;y.p(b);var ne=_r(b,u,mr(u),8),W=ne.length;return Bt(ne,u),Ke(ne,W-8,y.d()),Ke(ne,W-4,M),ne}var an=null,kt=null;function kn(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),ze(b,u,[D,N,function(){return[Xn]}],function(M){return Ie(Xn(M.data[0],M.data[1]))},3,y)}function Xn(b,u){var y=Vt(b);return y+8>b.length&&he(6,"invalid gzip data"),ve(b.subarray(y,-8),{i:2},u&&u.out||new Me(Mt(b)),u&&u.dictionary)}var yi=null,ji=null;function On(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),ze(b,u,[fe,te,function(){return[$n]}],function(M){return Ie($n(M.data[0],M.data[1]))},4,y)}function $n(b,u){u||(u={});var y=Kr();y.p(b);var M=_r(b,u,u.dictionary?6:2,4);return wr(M,u),Ke(M,M.length-4,y.d()),M}var Yt=null,jr=null;function Jr(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),ze(b,u,[D,Te,function(){return[Ot]}],function(M){return Ie(Ot(M.data[0],Fe(M.data[1])))},5,y)}function Ot(b,u){return ve(b.subarray(re(b,u&&u.dictionary),-4),{i:2},u&&u.out,u&&u.dictionary)}var _t=null,Br=null;function Lr(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),b[0]==31&&b[1]==139&&b[2]==8?kn(b,u,y):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?qt(b,u,y):Jr(b,u,y)}function In(b,u){return b[0]==31&&b[1]==139&&b[2]==8?Xn(b,u):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?qe(b,u):Ot(b,u)}var tn=function(b,u,y,M){for(var ne in b){var W=b[ne],ge=u+ne,Le=M;Array.isArray(W)&&(Le=Se(M,W[1]),W=W[0]),W instanceof Me?y[ge]=[W,Le]:(y[ge+="/"]=[new Me(0),Le],tn(W,ge,y,M))}},Bn=typeof TextEncoder!="undefined"&&new TextEncoder,gn=typeof TextDecoder!="undefined"&&new TextDecoder,Qn=0;try{gn.decode(Jt,{stream:!0}),Qn=1}catch(b){}var ei=function(b){for(var u="",y=0;;){var M=b[y++],ne=(M>127)+(M>223)+(M>239);if(y+ne>b.length)return{s:u,r:T(b,y-1)};ne?ne==3?(M=((M&15)<<18|(b[y++]&63)<<12|(b[y++]&63)<<6|b[y++]&63)-65536,u+=String.fromCharCode(55296|M>>10,56320|M&1023)):ne&1?u+=String.fromCharCode((M&31)<<6|b[y++]&63):u+=String.fromCharCode((M&15)<<12|(b[y++]&63)<<6|b[y++]&63):u+=String.fromCharCode(M)}},Hr=null,zr=null;function Tn(b,u){if(u){for(var y=new Me(b.length),M=0;M<b.length;++M)y[M]=b.charCodeAt(M);return y}if(Bn)return Bn.encode(b);for(var ne=b.length,W=new Me(b.length+(b.length>>1)),ge=0,Le=function(yt){W[ge++]=yt},M=0;M<ne;++M){if(ge+5>W.length){var ke=new Me(ge+8+(ne-M<<1));ke.set(W),W=ke}var rt=b.charCodeAt(M);rt<128||u?Le(rt):rt<2048?(Le(192|rt>>6),Le(128|rt&63)):rt>55295&&rt<57344?(rt=65536+(rt&1047552)|b.charCodeAt(++M)&1023,Le(240|rt>>18),Le(128|rt>>12&63),Le(128|rt>>6&63),Le(128|rt&63)):(Le(224|rt>>12),Le(128|rt>>6&63),Le(128|rt&63))}return T(W,0,ge)}function Sn(b,u){if(u){for(var y="",M=0;M<b.length;M+=16384)y+=String.fromCharCode.apply(null,b.subarray(M,M+16384));return y}else{if(gn)return gn.decode(b);var ne=ei(b),W=ne.s,y=ne.r;return y.length&&he(8),W}}var jn=function(b){return b==1?3:b<6?2:b==9?1:0},Vn=function(b,u){return u+30+tt(b,u+26)+tt(b,u+28)},Mi=function(b,u,y){var M=tt(b,u+28),ne=Sn(b.subarray(u+46,u+46+M),!(tt(b,u+8)&2048)),W=u+46+M,ge=ct(b,u+20),Le=y&&ge==4294967295?Ai(b,W):[ge,ct(b,u+24),ct(b,u+42)],ke=Le[0],rt=Le[1],yt=Le[2];return[tt(b,u+10),ke,rt,ne,W+tt(b,u+30)+tt(b,u+32),yt]},Ai=function(b,u){for(;tt(b,u)!=1;u+=4+tt(b,u+2));return[Ge(b,u+12),Ge(b,u+4),Ge(b,u+20)]},wn=function(b){var u=0;if(b)for(var y in b){var M=b[y].length;M>65535&&he(9),u+=M+4}return u},hr=function(b,u,y,M,ne,W,ge,Le){var ke=M.length,rt=y.extra,yt=Le&&Le.length,vt=wn(rt);Ke(b,u,ge!=null?33639248:67324752),u+=4,ge!=null&&(b[u++]=20,b[u++]=y.os),b[u]=20,u+=2,b[u++]=y.flag<<1|(W<0&&8),b[u++]=ne&&8,b[u++]=y.compression&255,b[u++]=y.compression>>8;var Pt=new Date(y.mtime==null?Date.now():y.mtime),Ve=Pt.getFullYear()-1980;if((Ve<0||Ve>119)&&he(10),Ke(b,u,Ve<<25|Pt.getMonth()+1<<21|Pt.getDate()<<16|Pt.getHours()<<11|Pt.getMinutes()<<5|Pt.getSeconds()>>1),u+=4,W!=-1&&(Ke(b,u,y.crc),Ke(b,u+4,W<0?-W-2:W),Ke(b,u+8,y.size)),Ke(b,u+12,ke),Ke(b,u+14,vt),u+=16,ge!=null&&(Ke(b,u,yt),Ke(b,u+6,y.attrs),Ke(b,u+10,ge),u+=14),b.set(M,u),u+=ke,vt)for(var cr in rt){var tr=rt[cr],dr=tr.length;Ke(b,u,+cr),Ke(b,u+2,dr),b.set(tr,u+4),u+=4+dr}return yt&&(b.set(Le,u),u+=yt),u},br=function(b,u,y,M,ne){Ke(b,u,101010256),Ke(b,u+8,y),Ke(b,u+10,y),Ke(b,u+12,M),Ke(b,u+16,ne)},Fr=null,Zr=null,Ur=null,on=null;function en(b,u,y){y||(y=u,u={}),typeof y!="function"&&he(7);var M={};tn(b,"",M,u);var ne=Object.keys(M),W=ne.length,ge=0,Le=0,ke=W,rt=new Array(W),yt=[],vt=function(){for(var dr=0;dr<yt.length;++dr)yt[dr]()},Pt=function(dr,Qt){Pi(function(){y(dr,Qt)})};Pi(function(){Pt=y});var Ve=function(){var dr=new Me(Le+22),Qt=ge,pr=Le-ge;Le=0;for(var Mr=0;Mr<ke;++Mr){var sn=rt[Mr];try{var Rn=sn.c.length;hr(dr,Le,sn,sn.f,sn.u,Rn);var di=30+sn.f.length+wn(sn.extra),pn=Le+di;dr.set(sn.c,pn),hr(dr,ge,sn,sn.f,sn.u,Rn,Le,sn.m),ge+=16+di+(sn.m?sn.m.length:0),Le=pn+Rn}catch(Sr){return Pt(Sr,null)}}br(dr,ge,rt.length,pr,Qt),Pt(null,dr)};W||Ve();for(var cr=function(dr){var Qt=ne[dr],pr=M[Qt],Mr=pr[0],sn=pr[1],Rn=Er(),di=Mr.length;Rn.p(Mr);var pn=Tn(Qt),Sr=pn.length,xn=sn.comment,Nn=xn&&Tn(xn),er=Nn&&Nn.length,nr=wn(sn.extra),ye=sn.level==0?0:8,xe=function(et,st){if(et)vt(),Pt(et,null);else{var gt=st.length;rt[dr]=Se(sn,{size:di,crc:Rn.d(),c:st,f:pn,m:Nn,u:Sr!=Qt.length||Nn&&xn.length!=er,compression:ye}),ge+=30+Sr+nr+gt,Le+=76+2*(Sr+nr)+(er||0)+gt,--W||Ve()}};if(Sr>65535&&xe(he(11,0,1),null),!ye)xe(null,Mr);else if(di<16e4)try{xe(null,Yr(Mr,sn))}catch(et){xe(et,null)}else yt.push(ot(Mr,sn,xe))},tr=0;tr<ke;++tr)cr(tr);return vt}function Hn(b,u){u||(u={});var y={},M=[];tn(b,"",y,u);var ne=0,W=0;for(var ge in y){var Le=y[ge],ke=Le[0],rt=Le[1],yt=rt.level==0?0:8,vt=Tn(ge),Pt=vt.length,Ve=rt.comment,cr=Ve&&Tn(Ve),tr=cr&&cr.length,dr=wn(rt.extra);Pt>65535&&he(11);var Qt=yt?Yr(ke,rt):ke,pr=Qt.length,Mr=Er();Mr.p(ke),M.push(Se(rt,{size:ke.length,crc:Mr.d(),c:Qt,f:vt,m:cr,u:Pt!=ge.length||cr&&Ve.length!=tr,o:ne,compression:yt})),ne+=30+Pt+dr+pr,W+=76+2*(Pt+dr)+(tr||0)+pr}for(var sn=new Me(W+22),Rn=ne,di=W-ne,pn=0;pn<M.length;++pn){var vt=M[pn];hr(sn,vt.o,vt,vt.f,vt.u,vt.c.length);var Sr=30+vt.f.length+wn(vt.extra);sn.set(vt.c,vt.o+Sr),hr(sn,ne,vt,vt.f,vt.u,vt.c.length,vt.o,vt.m),ne+=16+Sr+(vt.m?vt.m.length:0)}return br(sn,ne,M.length,di,Rn),sn}var ti=null,ui=null,Ri=null,Ui=null,Pi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(b){b()};function Tr(b,u,y){y||(y=u,u={}),typeof y!="function"&&he(7);var M=[],ne=function(){for(var dr=0;dr<M.length;++dr)M[dr]()},W={},ge=function(dr,Qt){Pi(function(){y(dr,Qt)})};Pi(function(){ge=y});for(var Le=b.length-22;ct(b,Le)!=101010256;--Le)if(!Le||b.length-Le>65558)return ge(he(13,0,1),null),ne;var ke=tt(b,Le+8);if(ke){var rt=ke,yt=ct(b,Le+16),vt=yt==4294967295||rt==65535;if(vt){var Pt=ct(b,Le-12);vt=ct(b,Pt)==101075792,vt&&(rt=ke=ct(b,Pt+32),yt=ct(b,Pt+48))}for(var Ve=u&&u.filter,cr=function(dr){var Qt=Mi(b,yt,vt),pr=Qt[0],Mr=Qt[1],sn=Qt[2],Rn=Qt[3],di=Qt[4],pn=Qt[5],Sr=Vn(b,pn);yt=di;var xn=function(er,nr){er?(ne(),ge(er,null)):(nr&&(W[Rn]=nr),--ke||ge(null,W))};if(!Ve||Ve({name:Rn,size:Mr,originalSize:sn,compression:pr}))if(!pr)xn(null,T(b,Sr,Sr+Mr));else if(pr==8){var Nn=b.subarray(Sr,Sr+Mr);if(sn<524288||Mr>.8*sn)try{xn(null,qe(Nn,{out:new Me(sn)}))}catch(er){xn(er,null)}else M.push(qt(Nn,{size:sn},xn))}else xn(he(14,"unknown compression type "+pr,1),null);else xn(null,null)},tr=0;tr<rt;++tr)cr(tr)}else ge(null,{});return ne}function _n(b,u){for(var y={},M=b.length-22;ct(b,M)!=101010256;--M)(!M||b.length-M>65558)&&he(13);var ne=tt(b,M+8);if(!ne)return{};var W=ct(b,M+16),ge=W==4294967295||ne==65535;if(ge){var Le=ct(b,M-12);ge=ct(b,Le)==101075792,ge&&(ne=ct(b,Le+32),W=ct(b,Le+48))}for(var ke=u&&u.filter,rt=0;rt<ne;++rt){var yt=Mi(b,W,ge),vt=yt[0],Pt=yt[1],Ve=yt[2],cr=yt[3],tr=yt[4],dr=yt[5],Qt=Vn(b,dr);W=tr,(!ke||ke({name:cr,size:Pt,originalSize:Ve,compression:vt}))&&(vt?vt==8?y[cr]=qe(b.subarray(Qt,Qt+Pt),{out:new Me(Ve)}):he(14,"unknown compression type "+vt):y[cr]=T(b,Qt,Qt+Pt))}return y}var hn=function(){return typeof window!="undefined"?window:typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:this}();function hi(){hn.console&&typeof hn.console.log=="function"&&hn.console.log.apply(hn.console,arguments)}var ii={log:hi,warn:function(b){hn.console&&(typeof hn.console.warn=="function"?hn.console.warn.apply(hn.console,arguments):hi.call(null,arguments))},error:function(b){hn.console&&(typeof hn.console.error=="function"?hn.console.error.apply(hn.console,arguments):hi(b))}};function ri(b,u,y){var M=new XMLHttpRequest;M.open("GET",b),M.responseType="blob",M.onload=function(){ca(M.response,u,y)},M.onerror=function(){ii.error("could not download file")},M.send()}function bi(b){var u=new XMLHttpRequest;u.open("HEAD",b,!1);try{u.send()}catch(y){}return u.status>=200&&u.status<=299}function Di(b){try{b.dispatchEvent(new MouseEvent("click"))}catch(y){var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),b.dispatchEvent(u)}}var Bi,zi,ca=hn.saveAs||((typeof window=="undefined"?"undefined":(0,we.Z)(window))!=="object"||window!==hn?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(b,u,y){var M=hn.URL||hn.webkitURL,ne=document.createElement("a");u=u||b.name||"download",ne.download=u,ne.rel="noopener",typeof b=="string"?(ne.href=b,ne.origin!==location.origin?bi(ne.href)?ri(b,u,y):Di(ne,ne.target="_blank"):Di(ne)):(ne.href=M.createObjectURL(b),setTimeout(function(){M.revokeObjectURL(ne.href)},4e4),setTimeout(function(){Di(ne)},0))}:"msSaveOrOpenBlob"in navigator?function(b,u,y){if(u=u||b.name||"download",typeof b=="string")if(bi(b))ri(b,u,y);else{var M=document.createElement("a");M.href=b,M.target="_blank",setTimeout(function(){Di(M)})}else navigator.msSaveOrOpenBlob(function(ne,W){return W===void 0?W={autoBom:!1}:(0,we.Z)(W)!=="object"&&(ii.warn("Deprecated: Expected third argument to be a object"),W={autoBom:!W}),W.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ne.type)?new Blob(["\uFEFF",ne],{type:ne.type}):ne}(b,y),u)}:function(b,u,y,M){if((M=M||open("","_blank"))&&(M.document.title=M.document.body.innerText="downloading..."),typeof b=="string")return ri(b,u,y);var ne=b.type==="application/octet-stream",W=/constructor/i.test(hn.HTMLElement)||hn.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ne&&W)&&(typeof FileReader=="undefined"?"undefined":(0,we.Z)(FileReader))==="object"){var Le=new FileReader;Le.onloadend=function(){var yt=Le.result;yt=ge?yt:yt.replace(/^data:[^;]*;/,"data:attachment/file;"),M?M.location.href=yt:location=yt,M=null},Le.readAsDataURL(b)}else{var ke=hn.URL||hn.webkitURL,rt=ke.createObjectURL(b);M?M.location=rt:location.href=rt,M=null,setTimeout(function(){ke.revokeObjectURL(rt)},4e4)}});function xi(b){var u;b=b||"",this.ok=!1,b.charAt(0)=="#"&&(b=b.substr(1,6)),b={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[b=(b=b.replace(/ /g,"")).toLowerCase()]||b;for(var y=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Le){return[parseInt(Le[1]),parseInt(Le[2]),parseInt(Le[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Le){return[parseInt(Le[1],16),parseInt(Le[2],16),parseInt(Le[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Le){return[parseInt(Le[1]+Le[1],16),parseInt(Le[2]+Le[2],16),parseInt(Le[3]+Le[3],16)]}}],M=0;M<y.length;M++){var ne=y[M].re,W=y[M].process,ge=ne.exec(b);ge&&(u=W(ge),this.r=u[0],this.g=u[1],this.b=u[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Le=this.r.toString(16),ke=this.g.toString(16),rt=this.b.toString(16);return Le.length==1&&(Le="0"+Le),ke.length==1&&(ke="0"+ke),rt.length==1&&(rt="0"+rt),"#"+Le+ke+rt}}function vn(b,u){var y=b[0],M=b[1],ne=b[2],W=b[3];y=Ln(y,M,ne,W,u[0],7,-680876936),W=Ln(W,y,M,ne,u[1],12,-389564586),ne=Ln(ne,W,y,M,u[2],17,606105819),M=Ln(M,ne,W,y,u[3],22,-1044525330),y=Ln(y,M,ne,W,u[4],7,-176418897),W=Ln(W,y,M,ne,u[5],12,1200080426),ne=Ln(ne,W,y,M,u[6],17,-1473231341),M=Ln(M,ne,W,y,u[7],22,-45705983),y=Ln(y,M,ne,W,u[8],7,1770035416),W=Ln(W,y,M,ne,u[9],12,-1958414417),ne=Ln(ne,W,y,M,u[10],17,-42063),M=Ln(M,ne,W,y,u[11],22,-1990404162),y=Ln(y,M,ne,W,u[12],7,1804603682),W=Ln(W,y,M,ne,u[13],12,-40341101),ne=Ln(ne,W,y,M,u[14],17,-1502002290),y=Gn(y,M=Ln(M,ne,W,y,u[15],22,1236535329),ne,W,u[1],5,-165796510),W=Gn(W,y,M,ne,u[6],9,-1069501632),ne=Gn(ne,W,y,M,u[11],14,643717713),M=Gn(M,ne,W,y,u[0],20,-373897302),y=Gn(y,M,ne,W,u[5],5,-701558691),W=Gn(W,y,M,ne,u[10],9,38016083),ne=Gn(ne,W,y,M,u[15],14,-660478335),M=Gn(M,ne,W,y,u[4],20,-405537848),y=Gn(y,M,ne,W,u[9],5,568446438),W=Gn(W,y,M,ne,u[14],9,-1019803690),ne=Gn(ne,W,y,M,u[3],14,-187363961),M=Gn(M,ne,W,y,u[8],20,1163531501),y=Gn(y,M,ne,W,u[13],5,-1444681467),W=Gn(W,y,M,ne,u[2],9,-51403784),ne=Gn(ne,W,y,M,u[7],14,1735328473),y=Ei(y,M=Gn(M,ne,W,y,u[12],20,-1926607734),ne,W,u[5],4,-378558),W=Ei(W,y,M,ne,u[8],11,-2022574463),ne=Ei(ne,W,y,M,u[11],16,1839030562),M=Ei(M,ne,W,y,u[14],23,-35309556),y=Ei(y,M,ne,W,u[1],4,-1530992060),W=Ei(W,y,M,ne,u[4],11,1272893353),ne=Ei(ne,W,y,M,u[7],16,-155497632),M=Ei(M,ne,W,y,u[10],23,-1094730640),y=Ei(y,M,ne,W,u[13],4,681279174),W=Ei(W,y,M,ne,u[0],11,-358537222),ne=Ei(ne,W,y,M,u[3],16,-722521979),M=Ei(M,ne,W,y,u[6],23,76029189),y=Ei(y,M,ne,W,u[9],4,-640364487),W=Ei(W,y,M,ne,u[12],11,-421815835),ne=Ei(ne,W,y,M,u[15],16,530742520),y=Qi(y,M=Ei(M,ne,W,y,u[2],23,-995338651),ne,W,u[0],6,-198630844),W=Qi(W,y,M,ne,u[7],10,1126891415),ne=Qi(ne,W,y,M,u[14],15,-1416354905),M=Qi(M,ne,W,y,u[5],21,-57434055),y=Qi(y,M,ne,W,u[12],6,1700485571),W=Qi(W,y,M,ne,u[3],10,-1894986606),ne=Qi(ne,W,y,M,u[10],15,-1051523),M=Qi(M,ne,W,y,u[1],21,-2054922799),y=Qi(y,M,ne,W,u[8],6,1873313359),W=Qi(W,y,M,ne,u[15],10,-30611744),ne=Qi(ne,W,y,M,u[6],15,-1560198380),M=Qi(M,ne,W,y,u[13],21,1309151649),y=Qi(y,M,ne,W,u[4],6,-145523070),W=Qi(W,y,M,ne,u[11],10,-1120210379),ne=Qi(ne,W,y,M,u[2],15,718787259),M=Qi(M,ne,W,y,u[9],21,-343485551),b[0]=ra(y,b[0]),b[1]=ra(M,b[1]),b[2]=ra(ne,b[2]),b[3]=ra(W,b[3])}function jt(b,u,y,M,ne,W){return u=ra(ra(u,b),ra(M,W)),ra(u<<ne|u>>>32-ne,y)}function Ln(b,u,y,M,ne,W,ge){return jt(u&y|~u&M,b,u,ne,W,ge)}function Gn(b,u,y,M,ne,W,ge){return jt(u&M|y&~M,b,u,ne,W,ge)}function Ei(b,u,y,M,ne,W,ge){return jt(u^y^M,b,u,ne,W,ge)}function Qi(b,u,y,M,ne,W,ge){return jt(y^(u|~M),b,u,ne,W,ge)}function da(b){var u,y=b.length,M=[1732584193,-271733879,-1732584194,271733878];for(u=64;u<=b.length;u+=64)vn(M,xa(b.substring(u-64,u)));b=b.substring(u-64);var ne=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(u=0;u<b.length;u++)ne[u>>2]|=b.charCodeAt(u)<<(u%4<<3);if(ne[u>>2]|=128<<(u%4<<3),u>55)for(vn(M,ne),u=0;u<16;u++)ne[u]=0;return ne[14]=8*y,vn(M,ne),M}function xa(b){var u,y=[];for(u=0;u<64;u+=4)y[u>>2]=b.charCodeAt(u)+(b.charCodeAt(u+1)<<8)+(b.charCodeAt(u+2)<<16)+(b.charCodeAt(u+3)<<24);return y}Bi=hn.atob.bind(hn),zi=hn.btoa.bind(hn);var Ji="0123456789abcdef".split("");function Sa(b){for(var u="",y=0;y<4;y++)u+=Ji[b>>8*y+4&15]+Ji[b>>8*y&15];return u}function _i(b){return String.fromCharCode((255&b)>>0,(65280&b)>>8,(16711680&b)>>16,(4278190080&b)>>24)}function ai(b){return da(b).map(_i).join("")}var $i=function(b){for(var u=0;u<b.length;u++)b[u]=Sa(b[u]);return b.join("")}(da("hello"))!="5d41402abc4b2a76b9719d911017c592";function ra(b,u){if($i){var y=(65535&b)+(65535&u);return(b>>16)+(u>>16)+(y>>16)<<16|65535&y}return b+u&4294967295}function Ea(b,u){var y,M,ne,W;if(b!==y){for(var ge=(ne=b,W=1+(256/b.length>>0),new Array(W+1).join(ne)),Le=[],ke=0;ke<256;ke++)Le[ke]=ke;var rt=0;for(ke=0;ke<256;ke++){var yt=Le[ke];rt=(rt+yt+ge.charCodeAt(ke))%256,Le[ke]=Le[rt],Le[rt]=yt}y=b,M=Le}else Le=M;var vt=u.length,Pt=0,Ve=0,cr="";for(ke=0;ke<vt;ke++)Ve=(Ve+(yt=Le[Pt=(Pt+1)%256]))%256,Le[Pt]=Le[Ve],Le[Ve]=yt,ge=Le[(Le[Pt]+Le[Ve])%256],cr+=String.fromCharCode(u.charCodeAt(ke)^ge);return cr}var xs={print:4,modify:8,copy:16,"annot-forms":32};function oi(b,u,y,M){this.v=1,this.r=2;var ne=192;b.forEach(function(Le){if(xs.perm!==void 0)throw new Error("Invalid permission: "+Le);ne+=xs[Le]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var W=(u+this.padding).substr(0,32),ge=(y+this.padding).substr(0,32);this.O=this.processOwnerPassword(W,ge),this.P=-(1+(255^ne)),this.encryptionKey=ai(W+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(M)).substr(0,5),this.U=Ea(this.encryptionKey,this.padding)}function Ca(b){if(/[^\u0000-\u00ff]/.test(b))throw new Error("Invalid PDF Name Object: "+b+", Only accept ASCII characters.");for(var u="",y=b.length,M=0;M<y;M++){var ne=b.charCodeAt(M);ne<33||ne===35||ne===37||ne===40||ne===41||ne===47||ne===60||ne===62||ne===91||ne===93||ne===123||ne===125||ne>126?u+="#"+("0"+ne.toString(16)).slice(-2):u+=b[M]}return u}function ga(b){if((0,we.Z)(b)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var u={};this.subscribe=function(y,M,ne){if(ne=ne||!1,typeof y!="string"||typeof M!="function"||typeof ne!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");u.hasOwnProperty(y)||(u[y]={});var W=Math.random().toString(35);return u[y][W]=[M,!!ne],W},this.unsubscribe=function(y){for(var M in u)if(u[M][y])return delete u[M][y],Object.keys(u[M]).length===0&&delete u[M],!0;return!1},this.publish=function(y){if(u.hasOwnProperty(y)){var M=Array.prototype.slice.call(arguments,1),ne=[];for(var W in u[y]){var ge=u[y][W];try{ge[0].apply(b,M)}catch(Le){hn.console&&ii.error("jsPDF PubSub Error",Le.message,Le)}ge[1]&&ne.push(W)}ne.length&&ne.forEach(this.unsubscribe)}},this.getTopics=function(){return u}}function Qa(b){if(!(this instanceof Qa))return new Qa(b);var u="opacity,stroke-opacity".split(",");for(var y in b)b.hasOwnProperty(y)&&u.indexOf(y)>=0&&(this[y]=b[y]);this.id="",this.objectNumber=-1}function _s(b,u){this.gState=b,this.matrix=u,this.id="",this.objectNumber=-1}function is(b,u,y,M,ne){if(!(this instanceof is))return new is(b,u,y,M,ne);this.type=b==="axial"?2:3,this.coords=u,this.colors=y,_s.call(this,M,ne)}function Da(b,u,y,M,ne){if(!(this instanceof Da))return new Da(b,u,y,M,ne);this.boundingBox=b,this.xStep=u,this.yStep=y,this.stream="",this.cloneIndex=0,_s.call(this,M,ne)}function Ni(b){var u,y=typeof arguments[0]=="string"?arguments[0]:"p",M=arguments[1],ne=arguments[2],W=arguments[3],ge=[],Le=1,ke=16,rt="S",yt=null;(0,we.Z)(b=b||{})==="object"&&(y=b.orientation,M=b.unit||M,ne=b.format||ne,W=b.compress||b.compressPdf||W,(yt=b.encryption||null)!==null&&(yt.userPassword=yt.userPassword||"",yt.ownerPassword=yt.ownerPassword||"",yt.userPermissions=yt.userPermissions||[]),Le=typeof b.userUnit=="number"?Math.abs(b.userUnit):1,b.precision!==void 0&&(u=b.precision),b.floatPrecision!==void 0&&(ke=b.floatPrecision),rt=b.defaultPathOperation||"S"),ge=b.filters||(W===!0?["FlateEncode"]:ge),M=M||"mm",y=(""+(y||"P")).toLowerCase();var vt=b.putOnlyUsedFonts||!1,Pt={},Ve={internal:{},__private__:{}};Ve.__private__.PubSub=ga;var cr="1.3",tr=Ve.__private__.getPdfVersion=function(){return cr};Ve.__private__.setPdfVersion=function(de){cr=de};var dr={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};Ve.__private__.getPageFormats=function(){return dr};var Qt=Ve.__private__.getPageFormat=function(de){return dr[de]};ne=ne||"a4";var pr={COMPAT:"compat",ADVANCED:"advanced"},Mr=pr.COMPAT;function sn(){this.saveGraphicsState(),ir(new Xi(je,0,0,-je,0,tu()*je).toString()+" cm"),this.setFontSize(this.getFontSize()/je),rt="n",Mr=pr.ADVANCED}function Rn(){this.restoreGraphicsState(),rt="S",Mr=pr.COMPAT}var di=Ve.__private__.combineFontStyleAndFontWeight=function(de,Et){if(de=="bold"&&Et=="normal"||de=="bold"&&Et==400||de=="normal"&&Et=="italic"||de=="bold"&&Et=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Et&&(de=Et==400||Et==="normal"?de==="italic"?"italic":"normal":Et!=700&&Et!=="bold"||de!=="normal"?(Et==700?"bold":Et)+""+de:"bold"),de};Ve.advancedAPI=function(de){var Et=Mr===pr.COMPAT;return Et&&sn.call(this),typeof de!="function"||(de(this),Et&&Rn.call(this)),this},Ve.compatAPI=function(de){var Et=Mr===pr.ADVANCED;return Et&&Rn.call(this),typeof de!="function"||(de(this),Et&&sn.call(this)),this},Ve.isAdvancedAPI=function(){return Mr===pr.ADVANCED};var pn,Sr=function(de){if(Mr!==pr.ADVANCED)throw new Error(de+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xn=Ve.roundToPrecision=Ve.__private__.roundToPrecision=function(de,Et){var gr=u||Et;if(isNaN(de)||isNaN(gr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return de.toFixed(gr).replace(/0+$/,"")};pn=Ve.hpf=Ve.__private__.hpf=typeof ke=="number"?function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.hpf");return xn(de,ke)}:ke==="smart"?function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.hpf");return xn(de,de>-1&&de<1?16:5)}:function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.hpf");return xn(de,16)};var Nn=Ve.f2=Ve.__private__.f2=function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.f2");return xn(de,2)},er=Ve.__private__.f3=function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.f3");return xn(de,3)},nr=Ve.scale=Ve.__private__.scale=function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.scale");return Mr===pr.COMPAT?de*je:Mr===pr.ADVANCED?de:void 0},ye=function(de){return Mr===pr.COMPAT?tu()-de:Mr===pr.ADVANCED?de:void 0},xe=function(de){return nr(ye(de))};Ve.__private__.setPrecision=Ve.setPrecision=function(de){typeof parseInt(de,10)=="number"&&(u=parseInt(de,10))};var et,st="00000000000000000000000000000000",gt=Ve.__private__.getFileId=function(){return st},ft=Ve.__private__.setFileId=function(de){return st=de!==void 0&&/^[a-fA-F0-9]{32}$/.test(de)?de.toUpperCase():st.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),yt!==null&&(ko=new oi(yt.userPermissions,yt.userPassword,yt.ownerPassword,st)),st};Ve.setFileId=function(de){return ft(de),this},Ve.getFileId=function(){return gt()};var Ut=Ve.__private__.convertDateToPDFDate=function(de){var Et=de.getTimezoneOffset(),gr=Et<0?"+":"-",Rr=Math.floor(Math.abs(Et/60)),un=Math.abs(Et%60),Kn=[gr,wt(Rr),"'",wt(un),"'"].join("");return["D:",de.getFullYear(),wt(de.getMonth()+1),wt(de.getDate()),wt(de.getHours()),wt(de.getMinutes()),wt(de.getSeconds()),Kn].join("")},$t=Ve.__private__.convertPDFDateToDate=function(de){var Et=parseInt(de.substr(2,4),10),gr=parseInt(de.substr(6,2),10)-1,Rr=parseInt(de.substr(8,2),10),un=parseInt(de.substr(10,2),10),Kn=parseInt(de.substr(12,2),10),Ci=parseInt(de.substr(14,2),10);return new Date(Et,gr,Rr,un,Kn,Ci,0)},sr=Ve.__private__.setCreationDate=function(de){var Et;if(de===void 0&&(de=new Date),de instanceof Date)Et=Ut(de);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(de))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Et=de}return et=Et},Ze=Ve.__private__.getCreationDate=function(de){var Et=et;return de==="jsDate"&&(Et=$t(et)),Et};Ve.setCreationDate=function(de){return sr(de),this},Ve.getCreationDate=function(de){return Ze(de)};var _e,wt=Ve.__private__.padd2=function(de){return("0"+parseInt(de)).slice(-2)},Ht=Ve.__private__.padd2Hex=function(de){return("00"+(de=de.toString())).substr(de.length)},Wt=0,lr=[],St=[],yr=0,Gr=[],$r=[],An=!1,Dn=St,ni=function(){Wt=0,yr=0,St=[],lr=[],Gr=[],ba=os(),Ha=os()};Ve.__private__.setCustomOutputDestination=function(de){An=!0,Dn=de};var kr=function(de){An||(Dn=de)};Ve.__private__.resetCustomOutputDestination=function(){An=!1,Dn=St};var ir=Ve.__private__.out=function(de){return de=de.toString(),yr+=de.length+1,Dn.push(de),Dn},Si=Ve.__private__.write=function(de){return ir(arguments.length===1?de.toString():Array.prototype.join.call(arguments," "))},Fn=Ve.__private__.getArrayBuffer=function(de){for(var Et=de.length,gr=new ArrayBuffer(Et),Rr=new Uint8Array(gr);Et--;)Rr[Et]=de.charCodeAt(Et);return gr},ln=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Ve.__private__.getStandardFonts=function(){return ln};var dn=b.fontSize||16;Ve.__private__.setFontSize=Ve.setFontSize=function(de){return dn=Mr===pr.ADVANCED?de/je:de,this};var rn,Cn=Ve.__private__.getFontSize=Ve.getFontSize=function(){return Mr===pr.COMPAT?dn:dn*je},si=b.R2L||!1;Ve.__private__.setR2L=Ve.setR2L=function(de){return si=de,this},Ve.__private__.getR2L=Ve.getR2L=function(){return si};var Fi,He=Ve.__private__.setZoomMode=function(de){var Et=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(de))rn=de;else if(isNaN(de)){if(Et.indexOf(de)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+de+'" is not recognized.');rn=de}else rn=parseInt(de,10)};Ve.__private__.getZoomMode=function(){return rn};var c,w=Ve.__private__.setPageMode=function(de){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(de)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+de+'" is not recognized.');Fi=de};Ve.__private__.getPageMode=function(){return Fi};var C=Ve.__private__.setLayoutMode=function(de){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(de)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+de+'" is not recognized.');c=de};Ve.__private__.getLayoutMode=function(){return c},Ve.__private__.setDisplayMode=Ve.setDisplayMode=function(de,Et,gr){return He(de),C(Et),w(gr),this};var K={title:"",subject:"",author:"",keywords:"",creator:""};Ve.__private__.getDocumentProperty=function(de){if(Object.keys(K).indexOf(de)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return K[de]},Ve.__private__.getDocumentProperties=function(){return K},Ve.__private__.setDocumentProperties=Ve.setProperties=Ve.setDocumentProperties=function(de){for(var Et in K)K.hasOwnProperty(Et)&&de[Et]&&(K[Et]=de[Et]);return this},Ve.__private__.setDocumentProperty=function(de,Et){if(Object.keys(K).indexOf(de)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return K[de]=Et};var Be,je,xt,bt,Xt,Ar={},xr={},nn=[],En={},Xr={},fn={},Mn={},Jn=null,wi=0,yn=[],fi=new ga(Ve),qi=b.hotfixes||[],Ki={},Ia={},Ta=[],Xi=function de(Et,gr,Rr,un,Kn,Ci){if(!(this instanceof de))return new de(Et,gr,Rr,un,Kn,Ci);isNaN(Et)&&(Et=1),isNaN(gr)&&(gr=0),isNaN(Rr)&&(Rr=0),isNaN(un)&&(un=1),isNaN(Kn)&&(Kn=0),isNaN(Ci)&&(Ci=0),this._matrix=[Et,gr,Rr,un,Kn,Ci]};Object.defineProperty(Xi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(de){this._matrix[0]=de}}),Object.defineProperty(Xi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(de){this._matrix[1]=de}}),Object.defineProperty(Xi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(de){this._matrix[2]=de}}),Object.defineProperty(Xi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(de){this._matrix[3]=de}}),Object.defineProperty(Xi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(de){this._matrix[4]=de}}),Object.defineProperty(Xi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(de){this._matrix[5]=de}}),Object.defineProperty(Xi.prototype,"a",{get:function(){return this._matrix[0]},set:function(de){this._matrix[0]=de}}),Object.defineProperty(Xi.prototype,"b",{get:function(){return this._matrix[1]},set:function(de){this._matrix[1]=de}}),Object.defineProperty(Xi.prototype,"c",{get:function(){return this._matrix[2]},set:function(de){this._matrix[2]=de}}),Object.defineProperty(Xi.prototype,"d",{get:function(){return this._matrix[3]},set:function(de){this._matrix[3]=de}}),Object.defineProperty(Xi.prototype,"e",{get:function(){return this._matrix[4]},set:function(de){this._matrix[4]=de}}),Object.defineProperty(Xi.prototype,"f",{get:function(){return this._matrix[5]},set:function(de){this._matrix[5]=de}}),Object.defineProperty(Xi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Xi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Xi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Xi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Xi.prototype.join=function(de){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(pn).join(de)},Xi.prototype.multiply=function(de){var Et=de.sx*this.sx+de.shy*this.shx,gr=de.sx*this.shy+de.shy*this.sy,Rr=de.shx*this.sx+de.sy*this.shx,un=de.shx*this.shy+de.sy*this.sy,Kn=de.tx*this.sx+de.ty*this.shx+this.tx,Ci=de.tx*this.shy+de.ty*this.sy+this.ty;return new Xi(Et,gr,Rr,un,Kn,Ci)},Xi.prototype.decompose=function(){var de=this.sx,Et=this.shy,gr=this.shx,Rr=this.sy,un=this.tx,Kn=this.ty,Ci=Math.sqrt(de*de+Et*Et),na=(de/=Ci)*gr+(Et/=Ci)*Rr;gr-=de*na,Rr-=Et*na;var va=Math.sqrt(gr*gr+Rr*Rr);return na/=va,de*(Rr/=va)<Et*(gr/=va)&&(de=-de,Et=-Et,na=-na,Ci=-Ci),{scale:new Xi(Ci,0,0,va,0,0),translate:new Xi(1,0,0,1,un,Kn),rotate:new Xi(de,Et,-Et,de,0,0),skew:new Xi(1,0,na,1,0,0)}},Xi.prototype.toString=function(de){return this.join(" ")},Xi.prototype.inversed=function(){var de=this.sx,Et=this.shy,gr=this.shx,Rr=this.sy,un=this.tx,Kn=this.ty,Ci=1/(de*Rr-Et*gr),na=Rr*Ci,va=-Et*Ci,Va=-gr*Ci,za=de*Ci;return new Xi(na,va,Va,za,-na*un-Va*Kn,-va*un-za*Kn)},Xi.prototype.applyToPoint=function(de){var Et=de.x*this.sx+de.y*this.shx+this.tx,gr=de.x*this.shy+de.y*this.sy+this.ty;return new Ac(Et,gr)},Xi.prototype.applyToRectangle=function(de){var Et=this.applyToPoint(de),gr=this.applyToPoint(new Ac(de.x+de.w,de.y+de.h));return new dc(Et.x,Et.y,gr.x-Et.x,gr.y-Et.y)},Xi.prototype.clone=function(){var de=this.sx,Et=this.shy,gr=this.shx,Rr=this.sy,un=this.tx,Kn=this.ty;return new Xi(de,Et,gr,Rr,un,Kn)},Ve.Matrix=Xi;var Fa=Ve.matrixMult=function(de,Et){return Et.multiply(de)},Ba=new Xi(1,0,0,1,0,0);Ve.unitMatrix=Ve.identityMatrix=Ba;var li=function(de,Et){if(!Xr[de]){var gr=(Et instanceof is?"Sh":"P")+(Object.keys(En).length+1).toString(10);Et.id=gr,Xr[de]=gr,En[gr]=Et,fi.publish("addPattern",Et)}};Ve.ShadingPattern=is,Ve.TilingPattern=Da,Ve.addShadingPattern=function(de,Et){return Sr("addShadingPattern()"),li(de,Et),this},Ve.beginTilingPattern=function(de){Sr("beginTilingPattern()"),bc(de.boundingBox[0],de.boundingBox[1],de.boundingBox[2]-de.boundingBox[0],de.boundingBox[3]-de.boundingBox[1],de.matrix)},Ve.endTilingPattern=function(de,Et){Sr("endTilingPattern()"),Et.stream=$r[_e].join(`
|
|
|
`),li(de,Et),fi.publish("endTilingPattern",Et),Ta.pop().restore()};var $a=Ve.__private__.newObject=function(){var de=os();return sa(de,!0),de},os=Ve.__private__.newObjectDeferred=function(){return Wt++,lr[Wt]=function(){return yr},Wt},sa=function(de,Et){return Et=typeof Et=="boolean"&&Et,lr[de]=yr,Et&&ir(de+" 0 obj"),de},fa=Ve.__private__.newAdditionalObject=function(){var de={objId:os(),content:""};return Gr.push(de),de},ba=os(),Ha=os(),ls=Ve.__private__.decodeColorString=function(de){var Et=de.split(" ");if(Et.length!==2||Et[1]!=="g"&&Et[1]!=="G")Et.length===5&&(Et[4]==="k"||Et[4]==="K")&&(Et=[(1-Et[0])*(1-Et[3]),(1-Et[1])*(1-Et[3]),(1-Et[2])*(1-Et[3]),"r"]);else{var gr=parseFloat(Et[0]);Et=[gr,gr,gr,"r"]}for(var Rr="#",un=0;un<3;un++)Rr+=("0"+Math.floor(255*parseFloat(Et[un])).toString(16)).slice(-2);return Rr},Aa=Ve.__private__.encodeColorString=function(de){var Et;typeof de=="string"&&(de={ch1:de});var gr=de.ch1,Rr=de.ch2,un=de.ch3,Kn=de.ch4,Ci=de.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof gr=="string"&&gr.charAt(0)!=="#"){var na=new xi(gr);if(na.ok)gr=na.toHex();else if(!/^\d*\.?\d*$/.test(gr))throw new Error('Invalid color "'+gr+'" passed to jsPDF.encodeColorString.')}if(typeof gr=="string"&&/^#[0-9A-Fa-f]{3}$/.test(gr)&&(gr="#"+gr[1]+gr[1]+gr[2]+gr[2]+gr[3]+gr[3]),typeof gr=="string"&&/^#[0-9A-Fa-f]{6}$/.test(gr)){var va=parseInt(gr.substr(1),16);gr=va>>16&255,Rr=va>>8&255,un=255&va}if(Rr===void 0||Kn===void 0&&gr===Rr&&Rr===un)if(typeof gr=="string")Et=gr+" "+Ci[0];else switch(de.precision){case 2:Et=Nn(gr/255)+" "+Ci[0];break;case 3:default:Et=er(gr/255)+" "+Ci[0]}else if(Kn===void 0||(0,we.Z)(Kn)==="object"){if(Kn&&!isNaN(Kn.a)&&Kn.a===0)return Et=["1.","1.","1.",Ci[1]].join(" ");if(typeof gr=="string")Et=[gr,Rr,un,Ci[1]].join(" ");else switch(de.precision){case 2:Et=[Nn(gr/255),Nn(Rr/255),Nn(un/255),Ci[1]].join(" ");break;default:case 3:Et=[er(gr/255),er(Rr/255),er(un/255),Ci[1]].join(" ")}}else if(typeof gr=="string")Et=[gr,Rr,un,Kn,Ci[2]].join(" ");else switch(de.precision){case 2:Et=[Nn(gr),Nn(Rr),Nn(un),Nn(Kn),Ci[2]].join(" ");break;case 3:default:Et=[er(gr),er(Rr),er(un),er(Kn),Ci[2]].join(" ")}return Et},Ts=Ve.__private__.getFilters=function(){return ge},ys=Ve.__private__.putStream=function(de){var Et=(de=de||{}).data||"",gr=de.filters||Ts(),Rr=de.alreadyAppliedFilters||[],un=de.addLength1||!1,Kn=Et.length,Ci=de.objectId,na=function(Yo){return Yo};if(yt!==null&&Ci===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");yt!==null&&(na=ko.encryptor(Ci,0));var va={};gr===!0&&(gr=["FlateEncode"]);var Va=de.additionalKeyValues||[],za=(va=Ni.API.processDataByFilters!==void 0?Ni.API.processDataByFilters(Et,gr):{data:Et,reverseChain:[]}).reverseChain+(Array.isArray(Rr)?Rr.join(" "):Rr.toString());if(va.data.length!==0&&(Va.push({key:"Length",value:va.data.length}),un===!0&&Va.push({key:"Length1",value:Kn})),za.length!=0)if(za.split("/").length-1==1)Va.push({key:"Filter",value:za});else{Va.push({key:"Filter",value:"["+za+"]"});for(var ws=0;ws<Va.length;ws+=1)if(Va[ws].key==="DecodeParms"){for(var mo=[],xo=0;xo<va.reverseChain.split("/").length-1;xo+=1)mo.push("null");mo.push(Va[ws].value),Va[ws].value="["+mo.join(" ")+"]"}}ir("<<");for(var To=0;To<Va.length;To++)ir("/"+Va[To].key+" "+Va[To].value);ir(">>"),va.data.length!==0&&(ir("stream"),ir(na(va.data)),ir("endstream"))},Hs=Ve.__private__.putPage=function(de){var Et=de.number,gr=de.data,Rr=de.objId,un=de.contentsObjId;sa(Rr,!0),ir("<</Type /Page"),ir("/Parent "+de.rootDictionaryObjId+" 0 R"),ir("/Resources "+de.resourceDictionaryObjId+" 0 R"),ir("/MediaBox ["+parseFloat(pn(de.mediaBox.bottomLeftX))+" "+parseFloat(pn(de.mediaBox.bottomLeftY))+" "+pn(de.mediaBox.topRightX)+" "+pn(de.mediaBox.topRightY)+"]"),de.cropBox!==null&&ir("/CropBox ["+pn(de.cropBox.bottomLeftX)+" "+pn(de.cropBox.bottomLeftY)+" "+pn(de.cropBox.topRightX)+" "+pn(de.cropBox.topRightY)+"]"),de.bleedBox!==null&&ir("/BleedBox ["+pn(de.bleedBox.bottomLeftX)+" "+pn(de.bleedBox.bottomLeftY)+" "+pn(de.bleedBox.topRightX)+" "+pn(de.bleedBox.topRightY)+"]"),de.trimBox!==null&&ir("/TrimBox ["+pn(de.trimBox.bottomLeftX)+" "+pn(de.trimBox.bottomLeftY)+" "+pn(de.trimBox.topRightX)+" "+pn(de.trimBox.topRightY)+"]"),de.artBox!==null&&ir("/ArtBox ["+pn(de.artBox.bottomLeftX)+" "+pn(de.artBox.bottomLeftY)+" "+pn(de.artBox.topRightX)+" "+pn(de.artBox.topRightY)+"]"),typeof de.userUnit=="number"&&de.userUnit!==1&&ir("/UserUnit "+de.userUnit),fi.publish("putPage",{objId:Rr,pageContext:yn[Et],pageNumber:Et,page:gr}),ir("/Contents "+un+" 0 R"),ir(">>"),ir("endobj");var Kn=gr.join(`
|
|
|
`);return Mr===pr.ADVANCED&&(Kn+=`
|
|
|
Q`),sa(un,!0),ys({data:Kn,filters:Ts(),objectId:un}),ir("endobj"),Rr},Zs=Ve.__private__.putPages=function(){var de,Et,gr=[];for(de=1;de<=wi;de++)yn[de].objId=os(),yn[de].contentsObjId=os();for(de=1;de<=wi;de++)gr.push(Hs({number:de,data:$r[de],objId:yn[de].objId,contentsObjId:yn[de].contentsObjId,mediaBox:yn[de].mediaBox,cropBox:yn[de].cropBox,bleedBox:yn[de].bleedBox,trimBox:yn[de].trimBox,artBox:yn[de].artBox,userUnit:yn[de].userUnit,rootDictionaryObjId:ba,resourceDictionaryObjId:Ha}));sa(ba,!0),ir("<</Type /Pages");var Rr="/Kids [";for(Et=0;Et<wi;Et++)Rr+=gr[Et]+" 0 R ";ir(Rr+"]"),ir("/Count "+wi),ir(">>"),ir("endobj"),fi.publish("postPutPages")},Xs=function(de){fi.publish("putFont",{font:de,out:ir,newObject:$a,putStream:ys}),de.isAlreadyPutted!==!0&&(de.objectNumber=$a(),ir("<<"),ir("/Type /Font"),ir("/BaseFont /"+Ca(de.postScriptName)),ir("/Subtype /Type1"),typeof de.encoding=="string"&&ir("/Encoding /"+de.encoding),ir("/FirstChar 32"),ir("/LastChar 255"),ir(">>"),ir("endobj"))},Wo=function(){for(var de in Ar)Ar.hasOwnProperty(de)&&(vt===!1||vt===!0&&Pt.hasOwnProperty(de))&&Xs(Ar[de])},$o=function(de){de.objectNumber=$a();var Et=[];Et.push({key:"Type",value:"/XObject"}),Et.push({key:"Subtype",value:"/Form"}),Et.push({key:"BBox",value:"["+[pn(de.x),pn(de.y),pn(de.x+de.width),pn(de.y+de.height)].join(" ")+"]"}),Et.push({key:"Matrix",value:"["+de.matrix.toString()+"]"});var gr=de.pages[1].join(`
|
|
|
`);ys({data:gr,additionalKeyValues:Et,objectId:de.objectNumber}),ir("endobj")},ho=function(){for(var de in Ki)Ki.hasOwnProperty(de)&&$o(Ki[de])},oo=function(de,Et){var gr,Rr=[],un=1/(Et-1);for(gr=0;gr<1;gr+=un)Rr.push(gr);if(Rr.push(1),de[0].offset!=0){var Kn={offset:0,color:de[0].color};de.unshift(Kn)}if(de[de.length-1].offset!=1){var Ci={offset:1,color:de[de.length-1].color};de.push(Ci)}for(var na="",va=0,Va=0;Va<Rr.length;Va++){for(gr=Rr[Va];gr>de[va+1].offset;)va++;var za=de[va].offset,ws=(gr-za)/(de[va+1].offset-za),mo=de[va].color,xo=de[va+1].color;na+=Ht(Math.round((1-ws)*mo[0]+ws*xo[0]).toString(16))+Ht(Math.round((1-ws)*mo[1]+ws*xo[1]).toString(16))+Ht(Math.round((1-ws)*mo[2]+ws*xo[2]).toString(16))}return na.trim()},ro=function(de,Et){Et||(Et=21);var gr=$a(),Rr=oo(de.colors,Et),un=[];un.push({key:"FunctionType",value:"0"}),un.push({key:"Domain",value:"[0.0 1.0]"}),un.push({key:"Size",value:"["+Et+"]"}),un.push({key:"BitsPerSample",value:"8"}),un.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),un.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ys({data:Rr,additionalKeyValues:un,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:gr}),ir("endobj"),de.objectNumber=$a(),ir("<< /ShadingType "+de.type),ir("/ColorSpace /DeviceRGB");var Kn="/Coords ["+pn(parseFloat(de.coords[0]))+" "+pn(parseFloat(de.coords[1]))+" ";de.type===2?Kn+=pn(parseFloat(de.coords[2]))+" "+pn(parseFloat(de.coords[3])):Kn+=pn(parseFloat(de.coords[2]))+" "+pn(parseFloat(de.coords[3]))+" "+pn(parseFloat(de.coords[4]))+" "+pn(parseFloat(de.coords[5])),ir(Kn+="]"),de.matrix&&ir("/Matrix ["+de.matrix.toString()+"]"),ir("/Function "+gr+" 0 R"),ir("/Extend [true true]"),ir(">>"),ir("endobj")},$s=function(de,Et){var gr=os(),Rr=$a();Et.push({resourcesOid:gr,objectOid:Rr}),de.objectNumber=Rr;var un=[];un.push({key:"Type",value:"/Pattern"}),un.push({key:"PatternType",value:"1"}),un.push({key:"PaintType",value:"1"}),un.push({key:"TilingType",value:"1"}),un.push({key:"BBox",value:"["+de.boundingBox.map(pn).join(" ")+"]"}),un.push({key:"XStep",value:pn(de.xStep)}),un.push({key:"YStep",value:pn(de.yStep)}),un.push({key:"Resources",value:gr+" 0 R"}),de.matrix&&un.push({key:"Matrix",value:"["+de.matrix.toString()+"]"}),ys({data:de.stream,additionalKeyValues:un,objectId:de.objectNumber}),ir("endobj")},qa=function(de){var Et;for(Et in En)En.hasOwnProperty(Et)&&(En[Et]instanceof is?ro(En[Et]):En[Et]instanceof Da&&$s(En[Et],de))},al=function(de){for(var Et in de.objectNumber=$a(),ir("<<"),de)switch(Et){case"opacity":ir("/ca "+Nn(de[Et]));break;case"stroke-opacity":ir("/CA "+Nn(de[Et]))}ir(">>"),ir("endobj")},$l=function(){var de;for(de in fn)fn.hasOwnProperty(de)&&al(fn[de])},Vo=function(){for(var de in ir("/XObject <<"),Ki)Ki.hasOwnProperty(de)&&Ki[de].objectNumber>=0&&ir("/"+de+" "+Ki[de].objectNumber+" 0 R");fi.publish("putXobjectDict"),ir(">>")},Jo=function(){ko.oid=$a(),ir("<<"),ir("/Filter /Standard"),ir("/V "+ko.v),ir("/R "+ko.r),ir("/U <"+ko.toHexString(ko.U)+">"),ir("/O <"+ko.toHexString(ko.O)+">"),ir("/P "+ko.P),ir(">>"),ir("endobj")},fu=function(){for(var de in ir("/Font <<"),Ar)Ar.hasOwnProperty(de)&&(vt===!1||vt===!0&&Pt.hasOwnProperty(de))&&ir("/"+de+" "+Ar[de].objectNumber+" 0 R");ir(">>")},Iu=function(){if(Object.keys(En).length>0){for(var de in ir("/Shading <<"),En)En.hasOwnProperty(de)&&En[de]instanceof is&&En[de].objectNumber>=0&&ir("/"+de+" "+En[de].objectNumber+" 0 R");fi.publish("putShadingPatternDict"),ir(">>")}},Ma=function(de){if(Object.keys(En).length>0){for(var Et in ir("/Pattern <<"),En)En.hasOwnProperty(Et)&&En[Et]instanceof Ve.TilingPattern&&En[Et].objectNumber>=0&&En[Et].objectNumber<de&&ir("/"+Et+" "+En[Et].objectNumber+" 0 R");fi.publish("putTilingPatternDict"),ir(">>")}},Bs=function(){if(Object.keys(fn).length>0){var de;for(de in ir("/ExtGState <<"),fn)fn.hasOwnProperty(de)&&fn[de].objectNumber>=0&&ir("/"+de+" "+fn[de].objectNumber+" 0 R");fi.publish("putGStateDict"),ir(">>")}},es=function(de){sa(de.resourcesOid,!0),ir("<<"),ir("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),fu(),Iu(),Ma(de.objectOid),Bs(),Vo(),ir(">>"),ir("endobj")},Ss=function(){var de=[];Wo(),$l(),ho(),qa(de),fi.publish("putResources"),de.forEach(es),es({resourcesOid:Ha,objectOid:Number.MAX_SAFE_INTEGER}),fi.publish("postPutResources")},wo=function(){fi.publish("putAdditionalObjects");for(var de=0;de<Gr.length;de++){var Et=Gr[de];sa(Et.objId,!0),ir(Et.content),ir("endobj")}fi.publish("postPutAdditionalObjects")},Ro=function(de){xr[de.fontName]=xr[de.fontName]||{},xr[de.fontName][de.fontStyle]=de.id},po=function(de,Et,gr,Rr,un){var Kn={id:"F"+(Object.keys(Ar).length+1).toString(10),postScriptName:de,fontName:Et,fontStyle:gr,encoding:Rr,isStandardFont:un||!1,metadata:{}};return fi.publish("addFont",{font:Kn,instance:this}),Ar[Kn.id]=Kn,Ro(Kn),Kn.id},Cl=function(de){for(var Et=0,gr=ln.length;Et<gr;Et++){var Rr=po.call(this,de[Et][0],de[Et][1],de[Et][2],ln[Et][3],!0);vt===!1&&(Pt[Rr]=!0);var un=de[Et][0].split("-");Ro({id:Rr,fontName:un[0],fontStyle:un[1]||""})}fi.publish("addFonts",{fonts:Ar,dictionary:xr})},Ko=function(de){return de.foo=function(){try{return de.apply(this,arguments)}catch(Rr){var Et=Rr.stack||"";~Et.indexOf(" at ")&&(Et=Et.split(" at ")[1]);var gr="Error in function "+Et.split(`
|
|
|
`)[0].split("<")[0]+": "+Rr.message;if(!hn.console)throw new Error(gr);hn.console.error(gr,Rr),hn.alert&&alert(gr)}},de.foo.bar=de,de.foo},Vl=function(de,Et){var gr,Rr,un,Kn,Ci,na,va,Va,za;if(un=(Et=Et||{}).sourceEncoding||"Unicode",Ci=Et.outputEncoding,(Et.autoencode||Ci)&&Ar[Be].metadata&&Ar[Be].metadata[un]&&Ar[Be].metadata[un].encoding&&(Kn=Ar[Be].metadata[un].encoding,!Ci&&Ar[Be].encoding&&(Ci=Ar[Be].encoding),!Ci&&Kn.codePages&&(Ci=Kn.codePages[0]),typeof Ci=="string"&&(Ci=Kn[Ci]),Ci)){for(va=!1,na=[],gr=0,Rr=de.length;gr<Rr;gr++)(Va=Ci[de.charCodeAt(gr)])?na.push(String.fromCharCode(Va)):na.push(de[gr]),na[gr].charCodeAt(0)>>8&&(va=!0);de=na.join("")}for(gr=de.length;va===void 0&&gr!==0;)de.charCodeAt(gr-1)>>8&&(va=!0),gr--;if(!va)return de;for(na=Et.noBOM?[]:[254,255],gr=0,Rr=de.length;gr<Rr;gr++){if((za=(Va=de.charCodeAt(gr))>>8)>>8)throw new Error("Character at position "+gr+" of string '"+de+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");na.push(za),na.push(Va-(za<<8))}return String.fromCharCode.apply(void 0,na)},No=Ve.__private__.pdfEscape=Ve.pdfEscape=function(de,Et){return Vl(de,Et).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Yl=Ve.__private__.beginPage=function(de){$r[++wi]=[],yn[wi]={objId:0,contentsObjId:0,userUnit:Number(Le),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(de[0]),topRightY:Number(de[1])}},sl(wi),kr($r[_e])},$u=function(de,Et){var gr,Rr,un;switch(y=Et||y,typeof de=="string"&&(gr=Qt(de.toLowerCase()),Array.isArray(gr)&&(Rr=gr[0],un=gr[1])),Array.isArray(de)&&(Rr=de[0]*je,un=de[1]*je),isNaN(Rr)&&(Rr=ne[0],un=ne[1]),(Rr>14400||un>14400)&&(ii.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Rr=Math.min(14400,Rr),un=Math.min(14400,un)),ne=[Rr,un],y.substr(0,1)){case"l":un>Rr&&(ne=[un,Rr]);break;case"p":Rr>un&&(ne=[un,Rr])}Yl(ne),Sl(zo),ir(Ml),cc!==0&&ir(cc+" J"),Nu!==0&&ir(Nu+" j"),fi.publish("addPage",{pageNumber:wi})},hu=function(de){de>0&&de<=wi&&($r.splice(de,1),yn.splice(de,1),wi--,_e>wi&&(_e=wi),this.setPage(_e))},sl=function(de){de>0&&de<=wi&&(_e=de)},pu=Ve.__private__.getNumberOfPages=Ve.getNumberOfPages=function(){return $r.length-1},Tu=function(de,Et,gr){var Rr,un=void 0;return gr=gr||{},de=de!==void 0?de:Ar[Be].fontName,Et=Et!==void 0?Et:Ar[Be].fontStyle,Rr=de.toLowerCase(),xr[Rr]!==void 0&&xr[Rr][Et]!==void 0?un=xr[Rr][Et]:xr[de]!==void 0&&xr[de][Et]!==void 0?un=xr[de][Et]:gr.disableWarning===!1&&ii.warn("Unable to look up font label for font '"+de+"', '"+Et+"'. Refer to getFontList() for available fonts."),un||gr.noFallback||(un=xr.times[Et])==null&&(un=xr.times.normal),un},Ku=Ve.__private__.putInfo=function(){var de=$a(),Et=function(Rr){return Rr};for(var gr in yt!==null&&(Et=ko.encryptor(de,0)),ir("<<"),ir("/Producer ("+No(Et("jsPDF "+Ni.version))+")"),K)K.hasOwnProperty(gr)&&K[gr]&&ir("/"+gr.substr(0,1).toUpperCase()+gr.substr(1)+" ("+No(Et(K[gr]))+")");ir("/CreationDate ("+No(Et(et))+")"),ir(">>"),ir("endobj")},mu=Ve.__private__.putCatalog=function(de){var Et=(de=de||{}).rootDictionaryObjId||ba;switch($a(),ir("<<"),ir("/Type /Catalog"),ir("/Pages "+Et+" 0 R"),rn||(rn="fullwidth"),rn){case"fullwidth":ir("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ir("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ir("/OpenAction [3 0 R /Fit]");break;case"original":ir("/OpenAction [3 0 R /XYZ null null 1]");break;default:var gr=""+rn;gr.substr(gr.length-1)==="%"&&(rn=parseInt(rn)/100),typeof rn=="number"&&ir("/OpenAction [3 0 R /XYZ null null "+Nn(rn)+"]")}switch(c||(c="continuous"),c){case"continuous":ir("/PageLayout /OneColumn");break;case"single":ir("/PageLayout /SinglePage");break;case"two":case"twoleft":ir("/PageLayout /TwoColumnLeft");break;case"tworight":ir("/PageLayout /TwoColumnRight")}Fi&&ir("/PageMode /"+Fi),fi.publish("putCatalog"),ir(">>"),ir("endobj")},zu=Ve.__private__.putTrailer=function(){ir("trailer"),ir("<<"),ir("/Size "+(Wt+1)),ir("/Root "+Wt+" 0 R"),ir("/Info "+(Wt-1)+" 0 R"),yt!==null&&ir("/Encrypt "+ko.oid+" 0 R"),ir("/ID [ <"+st+"> <"+st+"> ]"),ir(">>")},Nl=Ve.__private__.putHeader=function(){ir("%PDF-"+cr),ir("%\xBA\xDF\xAC\xE0")},Gu=Ve.__private__.putXRef=function(){var de="0000000000";ir("xref"),ir("0 "+(Wt+1)),ir("0000000000 65535 f ");for(var Et=1;Et<=Wt;Et++)typeof lr[Et]=="function"?ir((de+lr[Et]()).slice(-10)+" 00000 n "):lr[Et]!==void 0?ir((de+lr[Et]).slice(-10)+" 00000 n "):ir("0000000000 00000 n ")},kl=Ve.__private__.buildDocument=function(){ni(),kr(St),fi.publish("buildDocument"),Nl(),Zs(),wo(),Ss(),yt!==null&&Jo(),Ku(),mu();var de=yr;return Gu(),zu(),ir("startxref"),ir(""+de),ir("%%EOF"),kr($r[_e]),St.join(`
|
|
|
`)},gu=Ve.__private__.getBlob=function(de){return new Blob([Fn(de)],{type:"application/pdf"})},Io=Ve.output=Ve.__private__.output=Ko(function(de,Et){switch(typeof(Et=Et||{})=="string"?Et={filename:Et}:Et.filename=Et.filename||"generated.pdf",de){case void 0:return kl();case"save":Ve.save(Et.filename);break;case"arraybuffer":return Fn(kl());case"blob":return gu(kl());case"bloburi":case"bloburl":if(hn.URL!==void 0&&typeof hn.URL.createObjectURL=="function")return hn.URL&&hn.URL.createObjectURL(gu(kl()))||void 0;ii.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var gr="",Rr=kl();try{gr=zi(Rr)}catch(xo){gr=zi(unescape(encodeURIComponent(Rr)))}return"data:application/pdf;filename="+Et.filename+";base64,"+gr;case"pdfobjectnewwindow":if(Object.prototype.toString.call(hn)==="[object Window]"){var un="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Kn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Et.pdfObjectUrl&&(un=Et.pdfObjectUrl,Kn="");var Ci='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+un+'"'+Kn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Et)+");<\/script></body></html>",na=hn.open();return na!==null&&na.document.write(Ci),na}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(hn)==="[object Window]"){var va='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Et.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Et.filename+'" width="500px" height="400px" /></body></html>',Va=hn.open();if(Va!==null){Va.document.write(va);var za=this;Va.document.documentElement.querySelector("#pdfViewer").onload=function(){Va.document.title=Et.filename,Va.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(za.output("bloburl"))}}return Va}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(hn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ws='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Et)+'"></iframe></body></html>',mo=hn.open();if(mo!==null&&(mo.document.write(ws),mo.document.title=Et.filename),mo||typeof safari=="undefined")return mo;break;case"datauri":case"dataurl":return hn.document.location.href=this.output("datauristring",Et);default:return null}}),vu=function(de){return Array.isArray(qi)===!0&&qi.indexOf(de)>-1};switch(M){case"pt":je=1;break;case"mm":je=72/25.4;break;case"cm":je=72/2.54;break;case"in":je=72;break;case"px":je=vu("px_scaling")==1?.75:96/72;break;case"pc":case"em":je=12;break;case"ex":je=6;break;default:if(typeof M!="number")throw new Error("Invalid unit: "+M);je=M}var ko=null;sr(),ft();var yc=function(de){return yt!==null?ko.encryptor(de,0):function(Et){return Et}},Zu=Ve.__private__.getPageInfo=Ve.getPageInfo=function(de){if(isNaN(de)||de%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:yn[de].objId,pageNumber:de,pageContext:yn[de]}},Pa=Ve.__private__.getPageInfoByObjId=function(de){if(isNaN(de)||de%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Et in yn)if(yn[Et].objId===de)break;return Zu(Et)},Fu=Ve.__private__.getCurrentPageInfo=Ve.getCurrentPageInfo=function(){return{objId:yn[_e].objId,pageNumber:_e,pageContext:yn[_e]}};Ve.addPage=function(){return $u.apply(this,arguments),this},Ve.setPage=function(){return sl.apply(this,arguments),kr.call(this,$r[_e]),this},Ve.insertPage=function(de){return this.addPage(),this.movePage(_e,de),this},Ve.movePage=function(de,Et){var gr,Rr;if(de>Et){gr=$r[de],Rr=yn[de];for(var un=de;un>Et;un--)$r[un]=$r[un-1],yn[un]=yn[un-1];$r[Et]=gr,yn[Et]=Rr,this.setPage(Et)}else if(de<Et){gr=$r[de],Rr=yn[de];for(var Kn=de;Kn<Et;Kn++)$r[Kn]=$r[Kn+1],yn[Kn]=yn[Kn+1];$r[Et]=gr,yn[Et]=Rr,this.setPage(Et)}return this},Ve.deletePage=function(){return hu.apply(this,arguments),this},Ve.__private__.text=Ve.text=function(de,Et,gr,Rr,un){var Kn,Ci,na,va,Va,za,ws,mo,xo,To=(Rr=Rr||{}).scope||this;if(typeof de=="number"&&typeof Et=="number"&&(typeof gr=="string"||Array.isArray(gr))){var Yo=gr;gr=Et,Et=de,de=Yo}if(arguments[3]instanceof Xi?(Sr("The transform parameter of text() with a Matrix value"),xo=un):(na=arguments[4],va=arguments[5],(0,we.Z)(ws=arguments[3])==="object"&&ws!==null||(typeof na=="string"&&(va=na,na=null),typeof ws=="string"&&(va=ws,ws=null),typeof ws=="number"&&(na=ws,ws=null),Rr={flags:ws,angle:na,align:va})),isNaN(Et)||isNaN(gr)||de==null)throw new Error("Invalid arguments passed to jsPDF.text");if(de.length===0)return To;var Mo="",Kl=!1,el=typeof Rr.lineHeightFactor=="number"?Rr.lineHeightFactor:As,Tl=To.internal.scaleFactor;function xc(q){return q=q.split(" ").join(Array(Rr.TabLen||9).join(" ")),No(q,ws)}function Vu(q){for(var Ae,Oe=q.concat(),Ye=[],Xe=Oe.length;Xe--;)typeof(Ae=Oe.shift())=="string"?Ye.push(Ae):Array.isArray(q)&&(Ae.length===1||Ae[1]===void 0&&Ae[2]===void 0)?Ye.push(Ae[0]):Ye.push([Ae[0],Ae[1],Ae[2]]);return Ye}function hc(q,Ae){var Oe;if(typeof q=="string")Oe=Ae(q)[0];else if(Array.isArray(q)){for(var Ye,Xe,lt=q.concat(),Ct=[],Tt=lt.length;Tt--;)typeof(Ye=lt.shift())=="string"?Ct.push(Ae(Ye)[0]):Array.isArray(Ye)&&typeof Ye[0]=="string"&&(Xe=Ae(Ye[0],Ye[1],Ye[2]),Ct.push([Xe[0],Xe[1],Xe[2]]));Oe=Ct}return Oe}var Yu=!1,Xu=!0;if(typeof de=="string")Yu=!0;else if(Array.isArray(de)){var Ec=de.concat();Ci=[];for(var pc,Eo=Ec.length;Eo--;)(typeof(pc=Ec.shift())!="string"||Array.isArray(pc)&&typeof pc[0]!="string")&&(Xu=!1);Yu=Xu}if(Yu===!1)throw new Error('Type of text must be string or Array. "'+de+'" is not recognized.');typeof de=="string"&&(de=de.match(/[\r?\n]/)?de.split(/\r\n|\r|\n/g):[de]);var Ju=dn/To.internal.scaleFactor,no=Ju*(el-1);switch(Rr.baseline){case"bottom":gr-=no;break;case"top":gr+=Ju-no;break;case"hanging":gr+=Ju-2*no;break;case"middle":gr+=Ju/2-no}if((za=Rr.maxWidth||0)>0&&(typeof de=="string"?de=To.splitTextToSize(de,za):Object.prototype.toString.call(de)==="[object Array]"&&(de=de.reduce(function(q,Ae){return q.concat(To.splitTextToSize(Ae,za))},[]))),Kn={text:de,x:Et,y:gr,options:Rr,mutex:{pdfEscape:No,activeFontKey:Be,fonts:Ar,activeFontSize:dn}},fi.publish("preProcessText",Kn),de=Kn.text,na=(Rr=Kn.options).angle,!(xo instanceof Xi)&&na&&typeof na=="number"){na*=Math.PI/180,Rr.rotationDirection===0&&(na=-na),Mr===pr.ADVANCED&&(na=-na);var Ul=Math.cos(na),ru=Math.sin(na);xo=new Xi(Ul,ru,-ru,Ul,0,0)}else na&&na instanceof Xi&&(xo=na);Mr!==pr.ADVANCED||xo||(xo=Ba),(Va=Rr.charSpace||uc)!==void 0&&(Mo+=pn(nr(Va))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(mo=Rr.horizontalScale)!==void 0&&(Mo+=pn(100*mo)+` Tz
|
|
|
`),Rr.lang;var Oo=-1,nu=Rr.renderingMode!==void 0?Rr.renderingMode:Rr.stroke,Eu=To.internal.getCurrentPageInfo().pageContext;switch(nu){case 0:case!1:case"fill":Oo=0;break;case 1:case!0:case"stroke":Oo=1;break;case 2:case"fillThenStroke":Oo=2;break;case 3:case"invisible":Oo=3;break;case 4:case"fillAndAddForClipping":Oo=4;break;case 5:case"strokeAndAddPathForClipping":Oo=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Oo=6;break;case 7:case"addToPathForClipping":Oo=7}var Ql=Eu.usedRenderingMode!==void 0?Eu.usedRenderingMode:-1;Oo!==-1?Mo+=Oo+` Tr
|
|
|
`:Ql!==-1&&(Mo+=`0 Tr
|
|
|
`),Oo!==-1&&(Eu.usedRenderingMode=Oo),va=Rr.align||"left";var pl,qu=dn*el,Cc=To.internal.pageSize.getWidth(),Mu=Ar[Be];Va=Rr.charSpace||uc,za=Rr.maxWidth||0,ws=Object.assign({autoencode:!0,noBOM:!0},Rr.flags);var jl=[],iu=function(q){return To.getStringUnitWidth(q,{font:Mu,charSpace:Va,fontSize:dn,doKerning:!1})*dn/Tl};if(Object.prototype.toString.call(de)==="[object Array]"){var ul;Ci=Vu(de),va!=="left"&&(pl=Ci.map(iu));var Uo,Uu=0;if(va==="right"){Et-=pl[0],de=[],Eo=Ci.length;for(var au=0;au<Eo;au++)au===0?(Uo=hl(Et),ul=Il(gr)):(Uo=nr(Uu-pl[au]),ul=-qu),de.push([Ci[au],Uo,ul]),Uu=pl[au]}else if(va==="center"){Et-=pl[0]/2,de=[],Eo=Ci.length;for(var su=0;su<Eo;su++)su===0?(Uo=hl(Et),ul=Il(gr)):(Uo=nr((Uu-pl[su])/2),ul=-qu),de.push([Ci[su],Uo,ul]),Uu=pl[su]}else if(va==="left"){de=[],Eo=Ci.length;for(var mc=0;mc<Eo;mc++)de.push(Ci[mc])}else if(va==="justify"&&Mu.encoding==="Identity-H"){de=[],Eo=Ci.length,za=za!==0?za:Cc;for(var Cu=0,Co=0;Co<Eo;Co++)if(ul=Co===0?Il(gr):-qu,Uo=Co===0?hl(Et):Cu,Co<Eo-1){var Qu=nr((za-pl[Co])/(Ci[Co].split(" ").length-1)),cl=Ci[Co].split(" ");de.push([cl[0]+" ",Uo,ul]),Cu=0;for(var Hl=1;Hl<cl.length;Hl++){var gc=(iu(cl[Hl-1]+" "+cl[Hl])-iu(cl[Hl]))*Tl+Qu;Hl==cl.length-1?de.push([cl[Hl],gc,0]):de.push([cl[Hl]+" ",gc,0]),Cu-=gc}}else de.push([Ci[Co],Uo,ul]);de.push(["",Cu,0])}else{if(va!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(de=[],Eo=Ci.length,za=za!==0?za:Cc,Co=0;Co<Eo;Co++)ul=Co===0?Il(gr):-qu,Uo=Co===0?hl(Et):0,Co<Eo-1?jl.push(pn(nr((za-pl[Co])/(Ci[Co].split(" ").length-1)))):jl.push(0),de.push([Ci[Co],Uo,ul])}}var Tc=typeof Rr.R2L=="boolean"?Rr.R2L:si;Tc===!0&&(de=hc(de,function(q,Ae,Oe){return[q.split("").reverse().join(""),Ae,Oe]})),Kn={text:de,x:Et,y:gr,options:Rr,mutex:{pdfEscape:No,activeFontKey:Be,fonts:Ar,activeFontSize:dn}},fi.publish("postProcessText",Kn),de=Kn.text,Kl=Kn.mutex.isHex||!1;var ec=Ar[Be].encoding;ec!=="WinAnsiEncoding"&&ec!=="StandardEncoding"||(de=hc(de,function(q,Ae,Oe){return[xc(q),Ae,Oe]})),Ci=Vu(de),de=[];for(var Al,d,e,t=0,r=1,i=Array.isArray(Ci[0])?r:t,s="",l=function(q,Ae,Oe){var Ye="";return Oe instanceof Xi?(Oe=typeof Rr.angle=="number"?Fa(Oe,new Xi(1,0,0,1,q,Ae)):Fa(new Xi(1,0,0,1,q,Ae),Oe),Mr===pr.ADVANCED&&(Oe=Fa(new Xi(1,0,0,-1,0,0),Oe)),Ye=Oe.join(" ")+` Tm
|
|
|
`):Ye=pn(q)+" "+pn(Ae)+` Td
|
|
|
`,Ye},x=0;x<Ci.length;x++){switch(s="",i){case r:e=(Kl?"<":"(")+Ci[x][0]+(Kl?">":")"),Al=parseFloat(Ci[x][1]),d=parseFloat(Ci[x][2]);break;case t:e=(Kl?"<":"(")+Ci[x]+(Kl?">":")"),Al=hl(Et),d=Il(gr)}jl!==void 0&&jl[x]!==void 0&&(s=jl[x]+` Tw
|
|
|
`),x===0?de.push(s+l(Al,d,xo)+e):i===t?de.push(s+e):i===r&&de.push(s+l(Al,d,xo)+e)}de=i===t?de.join(` Tj
|
|
|
T* `):de.join(` Tj
|
|
|
`),de+=` Tj
|
|
|
`;var j=`BT
|
|
|
/`;return j+=Be+" "+dn+` Tf
|
|
|
`,j+=pn(dn*el)+` TL
|
|
|
`,j+=Go+`
|
|
|
`,j+=Mo,j+=de,ir(j+="ET"),Pt[Be]=!0,To};var Du=Ve.__private__.clip=Ve.clip=function(de){return ir(de==="evenodd"?"W*":"W"),this};Ve.clipEvenOdd=function(){return Du("evenodd")},Ve.__private__.discardPath=Ve.discardPath=function(){return ir("n"),this};var _l=Ve.__private__.isValidStyle=function(de){var Et=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(de)!==-1&&(Et=!0),Et};Ve.__private__.setDefaultPathOperation=Ve.setDefaultPathOperation=function(de){return _l(de)&&(rt=de),this};var Lu=Ve.__private__.getStyle=Ve.getStyle=function(de){var Et=rt;switch(de){case"D":case"S":Et="S";break;case"F":Et="f";break;case"FD":case"DF":Et="B";break;case"f":case"f*":case"B":case"B*":Et=de}return Et},yu=Ve.close=function(){return ir("h"),this};Ve.stroke=function(){return ir("S"),this},Ve.fill=function(de){return Xl("f",de),this},Ve.fillEvenOdd=function(de){return Xl("f*",de),this},Ve.fillStroke=function(de){return Xl("B",de),this},Ve.fillStrokeEvenOdd=function(de){return Xl("B*",de),this};var Xl=function(de,Et){(0,we.Z)(Et)==="object"?Ho(Et,de):ir(de)},Jl=function(de){de===null||Mr===pr.ADVANCED&&de===void 0||(de=Lu(de),ir(de))};function Bl(de,Et,gr,Rr,un){var Kn=new Da(Et||this.boundingBox,gr||this.xStep,Rr||this.yStep,this.gState,un||this.matrix);Kn.stream=this.stream;var Ci=de+"$$"+this.cloneIndex+++"$$";return li(Ci,Kn),Kn}var Ho=function(de,Et){var gr=Xr[de.key],Rr=En[gr];if(Rr instanceof is)ir("q"),ir(bs(Et)),Rr.gState&&Ve.setGState(Rr.gState),ir(de.matrix.toString()+" cm"),ir("/"+gr+" sh"),ir("Q");else if(Rr instanceof Da){var un=new Xi(1,0,0,-1,0,tu());de.matrix&&(un=un.multiply(de.matrix||Ba),gr=Bl.call(Rr,de.key,de.boundingBox,de.xStep,de.yStep,un).id),ir("q"),ir("/Pattern cs"),ir("/"+gr+" scn"),Rr.gState&&Ve.setGState(Rr.gState),ir(Et),ir("Q")}},bs=function(de){switch(de){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ol=Ve.moveTo=function(de,Et){return ir(pn(nr(de))+" "+pn(xe(Et))+" m"),this},qo=Ve.lineTo=function(de,Et){return ir(pn(nr(de))+" "+pn(xe(Et))+" l"),this},ql=Ve.curveTo=function(de,Et,gr,Rr,un,Kn){return ir([pn(nr(de)),pn(xe(Et)),pn(nr(gr)),pn(xe(Rr)),pn(nr(un)),pn(xe(Kn)),"c"].join(" ")),this};Ve.__private__.line=Ve.line=function(de,Et,gr,Rr,un){if(isNaN(de)||isNaN(Et)||isNaN(gr)||isNaN(Rr)||!_l(un))throw new Error("Invalid arguments passed to jsPDF.line");return Mr===pr.COMPAT?this.lines([[gr-de,Rr-Et]],de,Et,[1,1],un||"S"):this.lines([[gr-de,Rr-Et]],de,Et,[1,1]).stroke()},Ve.__private__.lines=Ve.lines=function(de,Et,gr,Rr,un,Kn){var Ci,na,va,Va,za,ws,mo,xo,To,Yo,Mo,Kl;if(typeof de=="number"&&(Kl=gr,gr=Et,Et=de,de=Kl),Rr=Rr||[1,1],Kn=Kn||!1,isNaN(Et)||isNaN(gr)||!Array.isArray(de)||!Array.isArray(Rr)||!_l(un)||typeof Kn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ol(Et,gr),Ci=Rr[0],na=Rr[1],Va=de.length,Yo=Et,Mo=gr,va=0;va<Va;va++)(za=de[va]).length===2?(Yo=za[0]*Ci+Yo,Mo=za[1]*na+Mo,qo(Yo,Mo)):(ws=za[0]*Ci+Yo,mo=za[1]*na+Mo,xo=za[2]*Ci+Yo,To=za[3]*na+Mo,Yo=za[4]*Ci+Yo,Mo=za[5]*na+Mo,ql(ws,mo,xo,To,Yo,Mo));return Kn&&yu(),Jl(un),this},Ve.path=function(de){for(var Et=0;Et<de.length;Et++){var gr=de[Et],Rr=gr.c;switch(gr.op){case"m":ol(Rr[0],Rr[1]);break;case"l":qo(Rr[0],Rr[1]);break;case"c":ql.apply(this,Rr);break;case"h":yu()}}return this},Ve.__private__.rect=Ve.rect=function(de,Et,gr,Rr,un){if(isNaN(de)||isNaN(Et)||isNaN(gr)||isNaN(Rr)||!_l(un))throw new Error("Invalid arguments passed to jsPDF.rect");return Mr===pr.COMPAT&&(Rr=-Rr),ir([pn(nr(de)),pn(xe(Et)),pn(nr(gr)),pn(nr(Rr)),"re"].join(" ")),Jl(un),this},Ve.__private__.triangle=Ve.triangle=function(de,Et,gr,Rr,un,Kn,Ci){if(isNaN(de)||isNaN(Et)||isNaN(gr)||isNaN(Rr)||isNaN(un)||isNaN(Kn)||!_l(Ci))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[gr-de,Rr-Et],[un-gr,Kn-Rr],[de-un,Et-Kn]],de,Et,[1,1],Ci,!0),this},Ve.__private__.roundedRect=Ve.roundedRect=function(de,Et,gr,Rr,un,Kn,Ci){if(isNaN(de)||isNaN(Et)||isNaN(gr)||isNaN(Rr)||isNaN(un)||isNaN(Kn)||!_l(Ci))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var na=4/3*(Math.SQRT2-1);return un=Math.min(un,.5*gr),Kn=Math.min(Kn,.5*Rr),this.lines([[gr-2*un,0],[un*na,0,un,Kn-Kn*na,un,Kn],[0,Rr-2*Kn],[0,Kn*na,-un*na,Kn,-un,Kn],[2*un-gr,0],[-un*na,0,-un,-Kn*na,-un,-Kn],[0,2*Kn-Rr],[0,-Kn*na,un*na,-Kn,un,-Kn]],de+un,Et,[1,1],Ci,!0),this},Ve.__private__.ellipse=Ve.ellipse=function(de,Et,gr,Rr,un){if(isNaN(de)||isNaN(Et)||isNaN(gr)||isNaN(Rr)||!_l(un))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Kn=4/3*(Math.SQRT2-1)*gr,Ci=4/3*(Math.SQRT2-1)*Rr;return ol(de+gr,Et),ql(de+gr,Et-Ci,de+Kn,Et-Rr,de,Et-Rr),ql(de-Kn,Et-Rr,de-gr,Et-Ci,de-gr,Et),ql(de-gr,Et+Ci,de-Kn,Et+Rr,de,Et+Rr),ql(de+Kn,Et+Rr,de+gr,Et+Ci,de+gr,Et),Jl(un),this},Ve.__private__.circle=Ve.circle=function(de,Et,gr,Rr){if(isNaN(de)||isNaN(Et)||isNaN(gr)||!_l(Rr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(de,Et,gr,gr,Rr)},Ve.setFont=function(de,Et,gr){return gr&&(Et=di(Et,gr)),Be=Tu(de,Et,{disableWarning:!1}),this};var Ka=Ve.__private__.getFont=Ve.getFont=function(){return Ar[Tu.apply(Ve,arguments)]};Ve.__private__.getFontList=Ve.getFontList=function(){var de,Et,gr={};for(de in xr)if(xr.hasOwnProperty(de))for(Et in gr[de]=[],xr[de])xr[de].hasOwnProperty(Et)&&gr[de].push(Et);return gr},Ve.addFont=function(de,Et,gr,Rr,un){var Kn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Kn.indexOf(arguments[3])!==-1?un=arguments[3]:arguments[3]&&Kn.indexOf(arguments[3])==-1&&(gr=di(gr,Rr)),un=un||"Identity-H",po.call(this,de,Et,gr,un)};var As,zo=b.lineWidth||.200025,ll=Ve.__private__.getLineWidth=Ve.getLineWidth=function(){return zo},Sl=Ve.__private__.setLineWidth=Ve.setLineWidth=function(de){return zo=de,ir(pn(nr(de))+" w"),this};Ve.__private__.setLineDash=Ni.API.setLineDash=Ni.API.setLineDashPattern=function(de,Et){if(de=de||[],Et=Et||0,isNaN(Et)||!Array.isArray(de))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return de=de.map(function(gr){return pn(nr(gr))}).join(" "),Et=pn(nr(Et)),ir("["+de+"] "+Et+" d"),this};var Ru=Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return dn*As};Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return dn*As};var Ou=Ve.__private__.setLineHeightFactor=Ve.setLineHeightFactor=function(de){return typeof(de=de||1.15)=="number"&&(As=de),this},Pu=Ve.__private__.getLineHeightFactor=Ve.getLineHeightFactor=function(){return As};Ou(b.lineHeight);var hl=Ve.__private__.getHorizontalCoordinate=function(de){return nr(de)},Il=Ve.__private__.getVerticalCoordinate=function(de){return Mr===pr.ADVANCED?de:yn[_e].mediaBox.topRightY-yn[_e].mediaBox.bottomLeftY-nr(de)},Ic=Ve.__private__.getHorizontalCoordinateString=Ve.getHorizontalCoordinateString=function(de){return pn(hl(de))},bu=Ve.__private__.getVerticalCoordinateString=Ve.getVerticalCoordinateString=function(de){return pn(Il(de))},Ml=b.strokeColor||"0 G";Ve.__private__.getStrokeColor=Ve.getDrawColor=function(){return ls(Ml)},Ve.__private__.setStrokeColor=Ve.setDrawColor=function(de,Et,gr,Rr){return Ml=Aa({ch1:de,ch2:Et,ch3:gr,ch4:Rr,pdfColorType:"draw",precision:2}),ir(Ml),this};var lc=b.fillColor||"0 g";Ve.__private__.getFillColor=Ve.getFillColor=function(){return ls(lc)},Ve.__private__.setFillColor=Ve.setFillColor=function(de,Et,gr,Rr){return lc=Aa({ch1:de,ch2:Et,ch3:gr,ch4:Rr,pdfColorType:"fill",precision:2}),ir(lc),this};var Go=b.textColor||"0 g",kc=Ve.__private__.getTextColor=Ve.getTextColor=function(){return ls(Go)};Ve.__private__.setTextColor=Ve.setTextColor=function(de,Et,gr,Rr){return Go=Aa({ch1:de,ch2:Et,ch3:gr,ch4:Rr,pdfColorType:"text",precision:3}),this};var uc=b.charSpace,Mc=Ve.__private__.getCharSpace=Ve.getCharSpace=function(){return parseFloat(uc||0)};Ve.__private__.setCharSpace=Ve.setCharSpace=function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uc=de,this};var cc=0;Ve.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},Ve.__private__.setLineCap=Ve.setLineCap=function(de){var Et=Ve.CapJoinStyles[de];if(Et===void 0)throw new Error("Line cap style of '"+de+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cc=Et,ir(Et+" J"),this};var Nu=0;Ve.__private__.setLineJoin=Ve.setLineJoin=function(de){var Et=Ve.CapJoinStyles[de];if(Et===void 0)throw new Error("Line join style of '"+de+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Nu=Et,ir(Et+" j"),this},Ve.__private__.setLineMiterLimit=Ve.__private__.setMiterLimit=Ve.setLineMiterLimit=Ve.setMiterLimit=function(de){if(de=de||0,isNaN(de))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ir(pn(nr(de))+" M"),this},Ve.GState=Qa,Ve.setGState=function(de){(de=typeof de=="string"?fn[Mn[de]]:ku(null,de)).equals(Jn)||(ir("/"+de.id+" gs"),Jn=de)};var ku=function(de,Et){if(!de||!Mn[de]){var gr=!1;for(var Rr in fn)if(fn.hasOwnProperty(Rr)&&fn[Rr].equals(Et)){gr=!0;break}if(gr)Et=fn[Rr];else{var un="GS"+(Object.keys(fn).length+1).toString(10);fn[un]=Et,Et.id=un}return de&&(Mn[de]=Et.id),fi.publish("addGState",Et),Et}};Ve.addGState=function(de,Et){return ku(de,Et),this},Ve.saveGraphicsState=function(){return ir("q"),nn.push({key:Be,size:dn,color:Go}),this},Ve.restoreGraphicsState=function(){ir("Q");var de=nn.pop();return Be=de.key,dn=de.size,Go=de.color,Jn=null,this},Ve.setCurrentTransformationMatrix=function(de){return ir(de.toString()+" cm"),this},Ve.comment=function(de){return ir("#"+de),this};var Ac=function(de,Et){var gr=de||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return gr},set:function(Kn){isNaN(Kn)||(gr=parseFloat(Kn))}});var Rr=Et||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Rr},set:function(Kn){isNaN(Kn)||(Rr=parseFloat(Kn))}});var un="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return un},set:function(Kn){un=Kn.toString()}}),this},dc=function(de,Et,gr,Rr){Ac.call(this,de,Et),this.type="rect";var un=gr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return un},set:function(Ci){isNaN(Ci)||(un=parseFloat(Ci))}});var Kn=Rr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Kn},set:function(Ci){isNaN(Ci)||(Kn=parseFloat(Ci))}}),this},Wu=function(){this.page=wi,this.currentPage=_e,this.pages=$r.slice(0),this.pagesContext=yn.slice(0),this.x=xt,this.y=bt,this.matrix=Xt,this.width=xu(_e),this.height=tu(_e),this.outputDestination=Dn,this.id="",this.objectNumber=-1};Wu.prototype.restore=function(){wi=this.page,_e=this.currentPage,yn=this.pagesContext,$r=this.pages,xt=this.x,bt=this.y,Xt=this.matrix,eu(_e,this.width),fc(_e,this.height),Dn=this.outputDestination};var bc=function(de,Et,gr,Rr,un){Ta.push(new Wu),wi=_e=0,$r=[],xt=de,bt=Et,Xt=un,Yl([gr,Rr])},wc=function(de){if(Ia[de])Ta.pop().restore();else{var Et=new Wu,gr="Xo"+(Object.keys(Ki).length+1).toString(10);Et.id=gr,Ia[de]=gr,Ki[gr]=Et,fi.publish("addFormObject",Et),Ta.pop().restore()}};for(var wu in Ve.beginFormObject=function(de,Et,gr,Rr,un){return bc(de,Et,gr,Rr,un),this},Ve.endFormObject=function(de){return wc(de),this},Ve.doFormObject=function(de,Et){var gr=Ki[Ia[de]];return ir("q"),ir(Et.toString()+" cm"),ir("/"+gr.id+" Do"),ir("Q"),this},Ve.getFormObject=function(de){var Et=Ki[Ia[de]];return{x:Et.x,y:Et.y,width:Et.width,height:Et.height,matrix:Et.matrix}},Ve.save=function(de,Et){return de=de||"generated.pdf",(Et=Et||{}).returnPromise=Et.returnPromise||!1,Et.returnPromise===!1?(ca(gu(kl()),de),typeof ca.unload=="function"&&hn.setTimeout&&setTimeout(ca.unload,911),this):new Promise(function(gr,Rr){try{var un=ca(gu(kl()),de);typeof ca.unload=="function"&&hn.setTimeout&&setTimeout(ca.unload,911),gr(un)}catch(Kn){Rr(Kn.message)}})},Ni.API)Ni.API.hasOwnProperty(wu)&&(wu==="events"&&Ni.API.events.length?function(de,Et){var gr,Rr,un;for(un=Et.length-1;un!==-1;un--)gr=Et[un][0],Rr=Et[un][1],de.subscribe.apply(de,[gr].concat(typeof Rr=="function"?[Rr]:Rr))}(fi,Ni.API.events):Ve[wu]=Ni.API[wu]);var xu=Ve.getPageWidth=function(de){return(yn[de=de||_e].mediaBox.topRightX-yn[de].mediaBox.bottomLeftX)/je},eu=Ve.setPageWidth=function(de,Et){yn[de].mediaBox.topRightX=Et*je+yn[de].mediaBox.bottomLeftX},tu=Ve.getPageHeight=function(de){return(yn[de=de||_e].mediaBox.topRightY-yn[de].mediaBox.bottomLeftY)/je},fc=Ve.setPageHeight=function(de,Et){yn[de].mediaBox.topRightY=Et*je+yn[de].mediaBox.bottomLeftY};return Ve.internal={pdfEscape:No,getStyle:Lu,getFont:Ka,getFontSize:Cn,getCharSpace:Mc,getTextColor:kc,getLineHeight:Ru,getLineHeightFactor:Pu,getLineWidth:ll,write:Si,getHorizontalCoordinate:hl,getVerticalCoordinate:Il,getCoordinateString:Ic,getVerticalCoordinateString:bu,collections:{},newObject:$a,newAdditionalObject:fa,newObjectDeferred:os,newObjectDeferredBegin:sa,getFilters:Ts,putStream:ys,events:fi,scaleFactor:je,pageSize:{getWidth:function(){return xu(_e)},setWidth:function(de){eu(_e,de)},getHeight:function(){return tu(_e)},setHeight:function(de){fc(_e,de)}},encryptionOptions:yt,encryption:ko,getEncryptor:yc,output:Io,getNumberOfPages:pu,pages:$r,out:ir,f2:Nn,f3:er,getPageInfo:Zu,getPageInfoByObjId:Pa,getCurrentPageInfo:Fu,getPDFVersion:tr,Point:Ac,Rectangle:dc,Matrix:Xi,hasHotfix:vu},Object.defineProperty(Ve.internal.pageSize,"width",{get:function(){return xu(_e)},set:function(de){eu(_e,de)},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.internal.pageSize,"height",{get:function(){return tu(_e)},set:function(de){fc(_e,de)},enumerable:!0,configurable:!0}),Cl.call(Ve,ln),Be="F1",$u(ne,y),fi.publish("initialized"),Ve}oi.prototype.lsbFirstWord=function(b){return String.fromCharCode(b>>0&255,b>>8&255,b>>16&255,b>>24&255)},oi.prototype.toHexString=function(b){return b.split("").map(function(u){return("0"+(255&u.charCodeAt(0)).toString(16)).slice(-2)}).join("")},oi.prototype.hexToBytes=function(b){for(var u=[],y=0;y<b.length;y+=2)u.push(String.fromCharCode(parseInt(b.substr(y,2),16)));return u.join("")},oi.prototype.processOwnerPassword=function(b,u){return Ea(ai(u).substr(0,5),b)},oi.prototype.encryptor=function(b,u){var y=ai(this.encryptionKey+String.fromCharCode(255&b,b>>8&255,b>>16&255,255&u,u>>8&255)).substr(0,10);return function(M){return Ea(y,M)}},Qa.prototype.equals=function(b){var u,y="id,objectNumber,equals";if(!b||(0,we.Z)(b)!==(0,we.Z)(this))return!1;var M=0;for(u in this)if(!(y.indexOf(u)>=0)){if(this.hasOwnProperty(u)&&!b.hasOwnProperty(u)||this[u]!==b[u])return!1;M++}for(u in b)b.hasOwnProperty(u)&&y.indexOf(u)<0&&M--;return M===0},Ni.API={events:[]},Ni.version="3.0.0";var la=Ni.API,ps=1,as=function(b){return b.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ts=function(b){return b.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wi=function(b){return b.toFixed(2)},ms=function(b){return b.toFixed(5)};la.__acroform__={};var aa=function(b,u){b.prototype=Object.create(u.prototype),b.prototype.constructor=b},co=function(b){return b*ps},Qs=function(b){var u=new So,y=Ti.internal.getHeight(b)||0,M=Ti.internal.getWidth(b)||0;return u.BBox=[0,0,Number(Wi(M)),Number(Wi(y))],u},_o=la.__acroform__.setBit=function(b,u){if(b=b||0,u=u||0,isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return b|=1<<u},fs=la.__acroform__.clearBit=function(b,u){if(b=b||0,u=u||0,isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return b&=~(1<<u)},Bo=la.__acroform__.getBit=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return b&1<<u?1:0},ss=la.__acroform__.getBitForPdf=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Bo(b,u-1)},Yn=la.__acroform__.setBitForPdf=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return _o(b,u-1)},La=la.__acroform__.clearBitForPdf=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return fs(b,u-1)},io=la.__acroform__.calculateCoordinates=function(b,u){var y=u.internal.getHorizontalCoordinate,M=u.internal.getVerticalCoordinate,ne=b[0],W=b[1],ge=b[2],Le=b[3],ke={};return ke.lowerLeft_X=y(ne)||0,ke.lowerLeft_Y=M(W+Le)||0,ke.upperRight_X=y(ne+ge)||0,ke.upperRight_Y=M(W)||0,[Number(Wi(ke.lowerLeft_X)),Number(Wi(ke.lowerLeft_Y)),Number(Wi(ke.upperRight_X)),Number(Wi(ke.upperRight_Y))]},Zi=function(b){if(b.appearanceStreamContent)return b.appearanceStreamContent;if(b.V||b.DV){var u=[],y=b._V||b.DV,M=ta(b,y),ne=b.scope.internal.getFont(b.fontName,b.fontStyle).id;u.push("/Tx BMC"),u.push("q"),u.push("BT"),u.push(b.scope.__private__.encodeColorString(b.color)),u.push("/"+ne+" "+Wi(M.fontSize)+" Tf"),u.push("1 0 0 1 0 0 Tm"),u.push(M.text),u.push("ET"),u.push("Q"),u.push("EMC");var W=Qs(b);return W.scope=b.scope,W.stream=u.join(`
|
|
|
`),W}},ta=function(b,u){var y=b.fontSize===0?b.maxFontSize:b.fontSize,M={text:"",fontSize:""},ne=(u=(u=u.substr(0,1)=="("?u.substr(1):u).substr(u.length-1)==")"?u.substr(0,u.length-1):u).split(" ");ne=b.multiline?ne.map(function(er){return er.split(`
|
|
|
`)}):ne.map(function(er){return[er]});var W=y,ge=Ti.internal.getHeight(b)||0;ge=ge<0?-ge:ge;var Le=Ti.internal.getWidth(b)||0;Le=Le<0?-Le:Le;var ke=function(er,nr,ye){if(er+1<ne.length){var xe=nr+" "+ne[er+1][0];return Hi(xe,b,ye).width<=Le-4}return!1};W++;e:for(;W>0;){u="",W--;var rt,yt,vt=Hi("3",b,W).height,Pt=b.multiline?ge-W:(ge-vt)/2,Ve=Pt+=2,cr=0,tr=0,dr=0;if(W<=0){u=`(...) Tj
|
|
|
`,u+="% Width of Text: "+Hi(u,b,W=12).width+", FieldWidth:"+Le+`
|
|
|
`;break}for(var Qt="",pr=0,Mr=0;Mr<ne.length;Mr++)if(ne.hasOwnProperty(Mr)){var sn=!1;if(ne[Mr].length!==1&&dr!==ne[Mr].length-1){if((vt+2)*(pr+2)+2>ge)continue e;Qt+=ne[Mr][dr],sn=!0,tr=Mr,Mr--}else{Qt=(Qt+=ne[Mr][dr]+" ").substr(Qt.length-1)==" "?Qt.substr(0,Qt.length-1):Qt;var Rn=parseInt(Mr),di=ke(Rn,Qt,W),pn=Mr>=ne.length-1;if(di&&!pn){Qt+=" ",dr=0;continue}if(di||pn){if(pn)tr=Rn;else if(b.multiline&&(vt+2)*(pr+2)+2>ge)continue e}else{if(!b.multiline||(vt+2)*(pr+2)+2>ge)continue e;tr=Rn}}for(var Sr="",xn=cr;xn<=tr;xn++){var Nn=ne[xn];if(b.multiline){if(xn===tr){Sr+=Nn[dr]+" ",dr=(dr+1)%Nn.length;continue}if(xn===cr){Sr+=Nn[Nn.length-1]+" ";continue}}Sr+=Nn[0]+" "}switch(Sr=Sr.substr(Sr.length-1)==" "?Sr.substr(0,Sr.length-1):Sr,yt=Hi(Sr,b,W).width,b.textAlign){case"right":rt=Le-yt-2;break;case"center":rt=(Le-yt)/2;break;case"left":default:rt=2}u+=Wi(rt)+" "+Wi(Ve)+` Td
|
|
|
`,u+="("+as(Sr)+`) Tj
|
|
|
`,u+=-Wi(rt)+` 0 Td
|
|
|
`,Ve=-(W+2),yt=0,cr=sn?tr:tr+1,pr++,Qt=""}break}return M.text=u,M.fontSize=W,M},Hi=function(b,u,y){var M=u.scope.internal.getFont(u.fontName,u.fontStyle),ne=u.scope.getStringUnitWidth(b,{font:M,fontSize:parseFloat(y),charSpace:0})*parseFloat(y);return{height:u.scope.getStringUnitWidth("3",{font:M,fontSize:parseFloat(y),charSpace:0})*parseFloat(y)*1.5,width:ne}},ki={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ya=function(b,u){var y={type:"reference",object:b};u.internal.getPageInfo(b.page).pageContext.annotations.find(function(M){return M.type===y.type&&M.object===y.object})===void 0&&u.internal.getPageInfo(b.page).pageContext.annotations.push(y)},Na=function(b,u){for(var y in b)if(b.hasOwnProperty(y)){var M=y,ne=b[y];u.internal.newObjectDeferredBegin(ne.objId,!0),(0,we.Z)(ne)==="object"&&typeof ne.putStream=="function"&&ne.putStream(),delete b[M]}},Rs=function(b,u){if(u.scope=b,b.internal!==void 0&&(b.internal.acroformPlugin===void 0||b.internal.acroformPlugin.isInitialized===!1)){if(eo.FieldNum=0,b.internal.acroformPlugin=JSON.parse(JSON.stringify(ki)),b.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ps=b.internal.scaleFactor,b.internal.acroformPlugin.acroFormDictionaryRoot=new go,b.internal.acroformPlugin.acroFormDictionaryRoot.scope=b,b.internal.acroformPlugin.acroFormDictionaryRoot._eventID=b.internal.events.subscribe("postPutResources",function(){(function(y){y.internal.events.unsubscribe(y.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete y.internal.acroformPlugin.acroFormDictionaryRoot._eventID,y.internal.acroformPlugin.printedOut=!0})(b)}),b.internal.events.subscribe("buildDocument",function(){(function(y){y.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var M=y.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ne in M)if(M.hasOwnProperty(ne)){var W=M[ne];W.objId=void 0,W.hasAnnotation&&ya(W,y)}})(b)}),b.internal.events.subscribe("putCatalog",function(){(function(y){if(y.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");y.internal.write("/AcroForm "+y.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(b)}),b.internal.events.subscribe("postPutPages",function(y){(function(M,ne){var W=!M;for(var ge in M||(ne.internal.newObjectDeferredBegin(ne.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ne.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),M=M||ne.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(M.hasOwnProperty(ge)){var Le=M[ge],ke=[],rt=Le.Rect;if(Le.Rect&&(Le.Rect=io(Le.Rect,ne)),ne.internal.newObjectDeferredBegin(Le.objId,!0),Le.DA=Ti.createDefaultAppearanceStream(Le),(0,we.Z)(Le)==="object"&&typeof Le.getKeyValueListForStream=="function"&&(ke=Le.getKeyValueListForStream()),Le.Rect=rt,Le.hasAppearanceStream&&!Le.appearanceStreamContent){var yt=Zi(Le);ke.push({key:"AP",value:"<</N "+yt+">>"}),ne.internal.acroformPlugin.xForms.push(yt)}if(Le.appearanceStreamContent){var vt="";for(var Pt in Le.appearanceStreamContent)if(Le.appearanceStreamContent.hasOwnProperty(Pt)){var Ve=Le.appearanceStreamContent[Pt];if(vt+="/"+Pt+" ",vt+="<<",Object.keys(Ve).length>=1||Array.isArray(Ve)){for(var ge in Ve)if(Ve.hasOwnProperty(ge)){var cr=Ve[ge];typeof cr=="function"&&(cr=cr.call(ne,Le)),vt+="/"+ge+" "+cr+" ",ne.internal.acroformPlugin.xForms.indexOf(cr)>=0||ne.internal.acroformPlugin.xForms.push(cr)}}else typeof(cr=Ve)=="function"&&(cr=cr.call(ne,Le)),vt+="/"+ge+" "+cr,ne.internal.acroformPlugin.xForms.indexOf(cr)>=0||ne.internal.acroformPlugin.xForms.push(cr);vt+=">>"}ke.push({key:"AP",value:`<<
|
|
|
`+vt+">>"})}ne.internal.putStream({additionalKeyValues:ke,objectId:Le.objId}),ne.internal.out("endobj")}W&&Na(ne.internal.acroformPlugin.xForms,ne)})(y,b)}),b.internal.acroformPlugin.isInitialized=!0}},cs=la.__acroform__.arrayToPdfArray=function(b,u,y){var M=function(ge){return ge};if(Array.isArray(b)){for(var ne="[",W=0;W<b.length;W++)switch(W!==0&&(ne+=" "),(0,we.Z)(b[W])){case"boolean":case"number":case"object":ne+=b[W].toString();break;case"string":b[W].substr(0,1)!=="/"?(u!==void 0&&y&&(M=y.internal.getEncryptor(u)),ne+="("+as(M(b[W].toString()))+")"):ne+=b[W].toString()}return ne+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Es=function(b,u,y){var M=function(ne){return ne};return u!==void 0&&y&&(M=y.internal.getEncryptor(u)),(b=b||"").toString(),b="("+as(M(b))+")"},rs=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(b){this._objId=b}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};rs.prototype.toString=function(){return this.objId+" 0 R"},rs.prototype.putStream=function(){var b=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:b,objectId:this.objId}),this.scope.internal.out("endobj")},rs.prototype.getKeyValueListForStream=function(){var b=[],u=Object.getOwnPropertyNames(this).filter(function(W){return W!="content"&&W!="appearanceStreamContent"&&W!="scope"&&W!="objId"&&W.substring(0,1)!="_"});for(var y in u)if(Object.getOwnPropertyDescriptor(this,u[y]).configurable===!1){var M=u[y],ne=this[M];ne&&(Array.isArray(ne)?b.push({key:M,value:cs(ne,this.objId,this.scope)}):ne instanceof rs?(ne.scope=this.scope,b.push({key:M,value:ne.objId+" 0 R"})):typeof ne!="function"&&b.push({key:M,value:ne}))}return b};var So=function(){rs.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var b,u=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return u},set:function(y){u=y}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(y){b=y.trim()},get:function(){return b||null}})};aa(So,rs);var go=function(){rs.call(this);var b,u=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return u.length>0?u:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return u}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(b){var y=function(M){return M};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+as(y(b))+")"}},set:function(y){b=y}})};aa(go,rs);var eo=function b(){rs.call(this);var u=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return u},set:function(Qt){if(isNaN(Qt))throw new Error('Invalid value "'+Qt+'" for attribute F supplied.');u=Qt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ss(u,3)},set:function(Qt){Qt?this.F=Yn(u,3):this.F=La(u,3)}});var y=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return y},set:function(Qt){if(isNaN(Qt))throw new Error('Invalid value "'+Qt+'" for attribute Ff supplied.');y=Qt}});var M=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(M.length!==0)return M},set:function(Qt){M=Qt!==void 0?Qt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[0])?0:M[0]},set:function(Qt){M[0]=Qt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[1])?0:M[1]},set:function(Qt){M[1]=Qt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[2])?0:M[2]},set:function(Qt){M[2]=Qt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[3])?0:M[3]},set:function(Qt){M[3]=Qt}});var ne="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ne},set:function(Qt){switch(Qt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ne=Qt;break;default:throw new Error('Invalid value "'+Qt+'" for attribute FT supplied.')}}});var W=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!W||W.length<1){if(this instanceof Ns)return;W="FieldObject"+b.FieldNum++}var Qt=function(pr){return pr};return this.scope&&(Qt=this.scope.internal.getEncryptor(this.objId)),"("+as(Qt(W))+")"},set:function(Qt){W=Qt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return W},set:function(Qt){W=Qt}});var ge="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ge},set:function(Qt){ge=Qt}});var Le="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(Qt){Le=Qt}});var ke=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ke},set:function(Qt){ke=Qt}});var rt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return rt===void 0?50/ps:rt},set:function(Qt){rt=Qt}});var yt="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return yt},set:function(Qt){yt=Qt}});var vt="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!vt||this instanceof Ns||this instanceof vo))return Es(vt,this.objId,this.scope)},set:function(Qt){Qt=Qt.toString(),vt=Qt}});var Pt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Pt)return this instanceof ua?Pt:Es(Pt,this.objId,this.scope)},set:function(Qt){Qt=Qt.toString(),Pt=this instanceof ua?Qt:Qt.substr(0,1)==="("?ts(Qt.substr(1,Qt.length-2)):ts(Qt)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua?ts(Pt.substr(1,Pt.length-1)):Pt},set:function(Qt){Qt=Qt.toString(),Pt=this instanceof ua?"/"+Qt:Qt}});var Ve=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ve)return Ve},set:function(Qt){this.V=Qt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ve)return this instanceof ua?Ve:Es(Ve,this.objId,this.scope)},set:function(Qt){Qt=Qt.toString(),Ve=this instanceof ua?Qt:Qt.substr(0,1)==="("?ts(Qt.substr(1,Qt.length-2)):ts(Qt)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua?ts(Ve.substr(1,Ve.length-1)):Ve},set:function(Qt){Qt=Qt.toString(),Ve=this instanceof ua?"/"+Qt:Qt}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var cr,tr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return tr},set:function(Qt){Qt=!!Qt,tr=Qt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(cr)return cr},set:function(Qt){cr=Qt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,1)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,1):this.Ff=La(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,2)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,2):this.Ff=La(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,3)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,3):this.Ff=La(this.Ff,3)}});var dr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(dr!==null)return dr},set:function(Qt){if([0,1,2].indexOf(Qt)===-1)throw new Error('Invalid value "'+Qt+'" for attribute Q supplied.');dr=Qt}}),Object.defineProperty(this,"textAlign",{get:function(){var Qt;switch(dr){case 0:default:Qt="left";break;case 1:Qt="center";break;case 2:Qt="right"}return Qt},configurable:!0,enumerable:!0,set:function(Qt){switch(Qt){case"right":case 2:dr=2;break;case"center":case 1:dr=1;break;case"left":case 0:default:dr=0}}})};aa(eo,rs);var zs=function(){eo.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var b=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return b},set:function(y){b=y}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return b},set:function(y){b=y}});var u=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return cs(u,this.objId,this.scope)},set:function(y){var M,ne;ne=[],typeof(M=y)=="string"&&(ne=function(W,ge,Le){Le||(Le=1);for(var ke,rt=[];ke=ge.exec(W);)rt.push(ke[Le]);return rt}(M,/\((.*?)\)/g)),u=ne}}),this.getOptions=function(){return u},this.setOptions=function(y){u=y,this.sort&&u.sort()},this.addOption=function(y){y=(y=y||"").toString(),u.push(y),this.sort&&u.sort()},this.removeOption=function(y,M){for(M=M||!1,y=(y=y||"").toString();u.indexOf(y)!==-1&&(u.splice(u.indexOf(y),1),M!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,18)},set:function(y){y?this.Ff=Yn(this.Ff,18):this.Ff=La(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,19)},set:function(y){this.combo===!0&&(y?this.Ff=Yn(this.Ff,19):this.Ff=La(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,20)},set:function(y){y?(this.Ff=Yn(this.Ff,20),u.sort()):this.Ff=La(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,22)},set:function(y){y?this.Ff=Yn(this.Ff,22):this.Ff=La(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,23)},set:function(y){y?this.Ff=Yn(this.Ff,23):this.Ff=La(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,27)},set:function(y){y?this.Ff=Yn(this.Ff,27):this.Ff=La(this.Ff,27)}}),this.hasAppearanceStream=!1};aa(zs,eo);var Os=function(){zs.call(this),this.fontName="helvetica",this.combo=!1};aa(Os,zs);var Li=function(){Os.call(this),this.combo=!0};aa(Li,Os);var pi=function(){Li.call(this),this.edit=!0};aa(pi,Li);var ua=function(){eo.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,15)},set:function(y){y?this.Ff=Yn(this.Ff,15):this.Ff=La(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,16)},set:function(y){y?this.Ff=Yn(this.Ff,16):this.Ff=La(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,17)},set:function(y){y?this.Ff=Yn(this.Ff,17):this.Ff=La(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,26)},set:function(y){y?this.Ff=Yn(this.Ff,26):this.Ff=La(this.Ff,26)}});var b,u={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var y=function(W){return W};if(this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),Object.keys(u).length!==0){var M,ne=[];for(M in ne.push("<<"),u)ne.push("/"+M+" ("+as(y(u[M]))+")");return ne.push(">>"),ne.join(`
|
|
|
`)}},set:function(y){(0,we.Z)(y)==="object"&&(u=y)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return u.CA||""},set:function(y){typeof y=="string"&&(u.CA=y)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return b},set:function(y){b=y}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return b.substr(1,b.length-1)},set:function(y){b="/"+y}})};aa(ua,eo);var gs=function(){ua.call(this),this.pushButton=!0};aa(gs,ua);var Oa=function(){ua.call(this),this.radio=!0,this.pushButton=!1;var b=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return b},set:function(u){b=u!==void 0?u:[]}})};aa(Oa,ua);var Ns=function(){var b,u;eo.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return b},set:function(ne){b=ne}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(ne){u=ne}});var y,M={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ne=function(Le){return Le};this.scope&&(ne=this.scope.internal.getEncryptor(this.objId));var W,ge=[];for(W in ge.push("<<"),M)ge.push("/"+W+" ("+as(ne(M[W]))+")");return ge.push(">>"),ge.join(`
|
|
|
`)},set:function(ne){(0,we.Z)(ne)==="object"&&(M=ne)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return M.CA||""},set:function(ne){typeof ne=="string"&&(M.CA=ne)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return y},set:function(ne){y=ne}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return y.substr(1,y.length-1)},set:function(ne){y="/"+ne}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ti.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};aa(Ns,eo),Oa.prototype.setAppearance=function(b){if(!("createAppearanceStream"in b)||!("getCA"in b))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var u in this.Kids)if(this.Kids.hasOwnProperty(u)){var y=this.Kids[u];y.appearanceStreamContent=b.createAppearanceStream(y.optionName),y.caption=b.getCA()}},Oa.prototype.createOption=function(b){var u=new Ns;return u.Parent=this,u.optionName=b,this.Kids.push(u),Dl.call(this.scope,u),u};var Vs=function(){ua.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ti.CheckBox.createAppearanceStream()};aa(Vs,ua);var vo=function(){eo.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,13)},set:function(u){u?this.Ff=Yn(this.Ff,13):this.Ff=La(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,21)},set:function(u){u?this.Ff=Yn(this.Ff,21):this.Ff=La(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,23)},set:function(u){u?this.Ff=Yn(this.Ff,23):this.Ff=La(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,24)},set:function(u){u?this.Ff=Yn(this.Ff,24):this.Ff=La(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,25)},set:function(u){u?this.Ff=Yn(this.Ff,25):this.Ff=La(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,26)},set:function(u){u?this.Ff=Yn(this.Ff,26):this.Ff=La(this.Ff,26)}});var b=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return b},set:function(u){b=u}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return b},set:function(u){Number.isInteger(u)&&(b=u)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};aa(vo,eo);var Ps=function(){vo.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,14)},set:function(b){b?this.Ff=Yn(this.Ff,14):this.Ff=La(this.Ff,14)}}),this.password=!0};aa(Ps,vo);var Ti={CheckBox:{createAppearanceStream:function(){return{N:{On:Ti.CheckBox.YesNormal},D:{On:Ti.CheckBox.YesPushDown,Off:Ti.CheckBox.OffPushDown}}},YesPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=b.scope.internal.getFont(b.fontName,b.fontStyle).id,ne=b.scope.__private__.encodeColorString(b.color),W=ta(b,b.caption);return y.push("0.749023 g"),y.push("0 0 "+Wi(Ti.internal.getWidth(b))+" "+Wi(Ti.internal.getHeight(b))+" re"),y.push("f"),y.push("BMC"),y.push("q"),y.push("0 0 1 rg"),y.push("/"+M+" "+Wi(W.fontSize)+" Tf "+ne),y.push("BT"),y.push(W.text),y.push("ET"),y.push("Q"),y.push("EMC"),u.stream=y.join(`
|
|
|
`),u},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=b.scope.internal.getFont(b.fontName,b.fontStyle).id,M=b.scope.__private__.encodeColorString(b.color),ne=[],W=Ti.internal.getHeight(b),ge=Ti.internal.getWidth(b),Le=ta(b,b.caption);return ne.push("1 g"),ne.push("0 0 "+Wi(ge)+" "+Wi(W)+" re"),ne.push("f"),ne.push("q"),ne.push("0 0 1 rg"),ne.push("0 0 "+Wi(ge-1)+" "+Wi(W-1)+" re"),ne.push("W"),ne.push("n"),ne.push("0 g"),ne.push("BT"),ne.push("/"+y+" "+Wi(Le.fontSize)+" Tf "+M),ne.push(Le.text),ne.push("ET"),ne.push("Q"),u.stream=ne.join(`
|
|
|
`),u},OffPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[];return y.push("0.749023 g"),y.push("0 0 "+Wi(Ti.internal.getWidth(b))+" "+Wi(Ti.internal.getHeight(b))+" re"),y.push("f"),u.stream=y.join(`
|
|
|
`),u}},RadioButton:{Circle:{createAppearanceStream:function(b){var u={D:{Off:Ti.RadioButton.Circle.OffPushDown},N:{}};return u.N[b]=Ti.RadioButton.Circle.YesNormal,u.D[b]=Ti.RadioButton.Circle.YesPushDown,u},getCA:function(){return"l"},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Ti.internal.getWidth(b)<=Ti.internal.getHeight(b)?Ti.internal.getWidth(b)/4:Ti.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Ti.internal.Bezier_C,W=Number((M*ne).toFixed(5));return y.push("q"),y.push("1 0 0 1 "+ms(Ti.internal.getWidth(b)/2)+" "+ms(Ti.internal.getHeight(b)/2)+" cm"),y.push(M+" 0 m"),y.push(M+" "+W+" "+W+" "+M+" 0 "+M+" c"),y.push("-"+W+" "+M+" -"+M+" "+W+" -"+M+" 0 c"),y.push("-"+M+" -"+W+" -"+W+" -"+M+" 0 -"+M+" c"),y.push(W+" -"+M+" "+M+" -"+W+" "+M+" 0 c"),y.push("f"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u},YesPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Ti.internal.getWidth(b)<=Ti.internal.getHeight(b)?Ti.internal.getWidth(b)/4:Ti.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Number((2*M).toFixed(5)),W=Number((ne*Ti.internal.Bezier_C).toFixed(5)),ge=Number((M*Ti.internal.Bezier_C).toFixed(5));return y.push("0.749023 g"),y.push("q"),y.push("1 0 0 1 "+ms(Ti.internal.getWidth(b)/2)+" "+ms(Ti.internal.getHeight(b)/2)+" cm"),y.push(ne+" 0 m"),y.push(ne+" "+W+" "+W+" "+ne+" 0 "+ne+" c"),y.push("-"+W+" "+ne+" -"+ne+" "+W+" -"+ne+" 0 c"),y.push("-"+ne+" -"+W+" -"+W+" -"+ne+" 0 -"+ne+" c"),y.push(W+" -"+ne+" "+ne+" -"+W+" "+ne+" 0 c"),y.push("f"),y.push("Q"),y.push("0 g"),y.push("q"),y.push("1 0 0 1 "+ms(Ti.internal.getWidth(b)/2)+" "+ms(Ti.internal.getHeight(b)/2)+" cm"),y.push(M+" 0 m"),y.push(M+" "+ge+" "+ge+" "+M+" 0 "+M+" c"),y.push("-"+ge+" "+M+" -"+M+" "+ge+" -"+M+" 0 c"),y.push("-"+M+" -"+ge+" -"+ge+" -"+M+" 0 -"+M+" c"),y.push(ge+" -"+M+" "+M+" -"+ge+" "+M+" 0 c"),y.push("f"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u},OffPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Ti.internal.getWidth(b)<=Ti.internal.getHeight(b)?Ti.internal.getWidth(b)/4:Ti.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Number((2*M).toFixed(5)),W=Number((ne*Ti.internal.Bezier_C).toFixed(5));return y.push("0.749023 g"),y.push("q"),y.push("1 0 0 1 "+ms(Ti.internal.getWidth(b)/2)+" "+ms(Ti.internal.getHeight(b)/2)+" cm"),y.push(ne+" 0 m"),y.push(ne+" "+W+" "+W+" "+ne+" 0 "+ne+" c"),y.push("-"+W+" "+ne+" -"+ne+" "+W+" -"+ne+" 0 c"),y.push("-"+ne+" -"+W+" -"+W+" -"+ne+" 0 -"+ne+" c"),y.push(W+" -"+ne+" "+ne+" -"+W+" "+ne+" 0 c"),y.push("f"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u}},Cross:{createAppearanceStream:function(b){var u={D:{Off:Ti.RadioButton.Cross.OffPushDown},N:{}};return u.N[b]=Ti.RadioButton.Cross.YesNormal,u.D[b]=Ti.RadioButton.Cross.YesPushDown,u},getCA:function(){return"8"},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Ti.internal.calculateCross(b);return y.push("q"),y.push("1 1 "+Wi(Ti.internal.getWidth(b)-2)+" "+Wi(Ti.internal.getHeight(b)-2)+" re"),y.push("W"),y.push("n"),y.push(Wi(M.x1.x)+" "+Wi(M.x1.y)+" m"),y.push(Wi(M.x2.x)+" "+Wi(M.x2.y)+" l"),y.push(Wi(M.x4.x)+" "+Wi(M.x4.y)+" m"),y.push(Wi(M.x3.x)+" "+Wi(M.x3.y)+" l"),y.push("s"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u},YesPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=Ti.internal.calculateCross(b),M=[];return M.push("0.749023 g"),M.push("0 0 "+Wi(Ti.internal.getWidth(b))+" "+Wi(Ti.internal.getHeight(b))+" re"),M.push("f"),M.push("q"),M.push("1 1 "+Wi(Ti.internal.getWidth(b)-2)+" "+Wi(Ti.internal.getHeight(b)-2)+" re"),M.push("W"),M.push("n"),M.push(Wi(y.x1.x)+" "+Wi(y.x1.y)+" m"),M.push(Wi(y.x2.x)+" "+Wi(y.x2.y)+" l"),M.push(Wi(y.x4.x)+" "+Wi(y.x4.y)+" m"),M.push(Wi(y.x3.x)+" "+Wi(y.x3.y)+" l"),M.push("s"),M.push("Q"),u.stream=M.join(`
|
|
|
`),u},OffPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[];return y.push("0.749023 g"),y.push("0 0 "+Wi(Ti.internal.getWidth(b))+" "+Wi(Ti.internal.getHeight(b))+" re"),y.push("f"),u.stream=y.join(`
|
|
|
`),u}}},createDefaultAppearanceStream:function(b){var u=b.scope.internal.getFont(b.fontName,b.fontStyle).id,y=b.scope.__private__.encodeColorString(b.color);return"/"+u+" "+b.fontSize+" Tf "+y}};Ti.internal={Bezier_C:.551915024494,calculateCross:function(b){var u=Ti.internal.getWidth(b),y=Ti.internal.getHeight(b),M=Math.min(u,y);return{x1:{x:(u-M)/2,y:(y-M)/2+M},x2:{x:(u-M)/2+M,y:(y-M)/2},x3:{x:(u-M)/2,y:(y-M)/2},x4:{x:(u-M)/2+M,y:(y-M)/2+M}}}},Ti.internal.getWidth=function(b){var u=0;return(0,we.Z)(b)==="object"&&(u=co(b.Rect[2])),u},Ti.internal.getHeight=function(b){var u=0;return(0,we.Z)(b)==="object"&&(u=co(b.Rect[3])),u};var Dl=la.addField=function(b){if(Rs(this,b),!(b instanceof eo))throw new Error("Invalid argument passed to jsPDF.addField.");var u;return(u=b).scope.internal.acroformPlugin.printedOut&&(u.scope.internal.acroformPlugin.printedOut=!1,u.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),u.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(u),b.page=b.scope.internal.getCurrentPageInfo().pageNumber,this};la.AcroFormChoiceField=zs,la.AcroFormListBox=Os,la.AcroFormComboBox=Li,la.AcroFormEditBox=pi,la.AcroFormButton=ua,la.AcroFormPushButton=gs,la.AcroFormRadioButton=Oa,la.AcroFormCheckBox=Vs,la.AcroFormTextField=vo,la.AcroFormPasswordField=Ps,la.AcroFormAppearance=Ti,la.AcroForm={ChoiceField:zs,ListBox:Os,ComboBox:Li,EditBox:pi,Button:ua,PushButton:gs,RadioButton:Oa,CheckBox:Vs,TextField:vo,PasswordField:Ps,Appearance:Ti},Ni.AcroForm={ChoiceField:zs,ListBox:Os,ComboBox:Li,EditBox:pi,Button:ua,PushButton:gs,RadioButton:Oa,CheckBox:Vs,TextField:vo,PasswordField:Ps,Appearance:Ti};var Js=Ni.AcroForm;function nl(b){return b.reduce(function(u,y,M){return u[y]=M,u},{})}(function(b){b.__addimage__={};var u="UNKNOWN",y={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},M=b.__addimage__.getImageFileTypeByImageData=function(er,nr){var ye,xe,et,st,gt,ft=u;if((nr=nr||u)==="RGBA"||er.data!==void 0&&er.data instanceof Uint8ClampedArray&&"height"in er&&"width"in er)return"RGBA";if(di(er))for(gt in y)for(et=y[gt],ye=0;ye<et.length;ye+=1){for(st=!0,xe=0;xe<et[ye].length;xe+=1)if(et[ye][xe]!==void 0&&et[ye][xe]!==er[xe]){st=!1;break}if(st===!0){ft=gt;break}}else for(gt in y)for(et=y[gt],ye=0;ye<et.length;ye+=1){for(st=!0,xe=0;xe<et[ye].length;xe+=1)if(et[ye][xe]!==void 0&&et[ye][xe]!==er.charCodeAt(xe)){st=!1;break}if(st===!0){ft=gt;break}}return ft===u&&nr!==u&&(ft=nr),ft},ne=function er(nr){for(var ye=this.internal.write,xe=this.internal.putStream,et=(0,this.internal.getFilters)();et.indexOf("FlateEncode")!==-1;)et.splice(et.indexOf("FlateEncode"),1);nr.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:nr.width}),st.push({key:"Height",value:nr.height}),nr.colorSpace===dr.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(nr.palette.length/3-1)+" "+("sMask"in nr&&nr.sMask!==void 0?nr.objectId+2:nr.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+nr.colorSpace}),nr.colorSpace===dr.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:nr.bitsPerComponent}),"decodeParameters"in nr&&nr.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+nr.decodeParameters+">>"}),"transparency"in nr&&Array.isArray(nr.transparency)){for(var gt="",ft=0,Ut=nr.transparency.length;ft<Ut;ft++)gt+=nr.transparency[ft]+" "+nr.transparency[ft]+" ";st.push({key:"Mask",value:"["+gt+"]"})}nr.sMask!==void 0&&st.push({key:"SMask",value:nr.objectId+1+" 0 R"});var $t=nr.filter!==void 0?["/"+nr.filter]:void 0;if(xe({data:nr.data,additionalKeyValues:st,alreadyAppliedFilters:$t,objectId:nr.objectId}),ye("endobj"),"sMask"in nr&&nr.sMask!==void 0){var sr="/Predictor "+nr.predictor+" /Colors 1 /BitsPerComponent "+nr.bitsPerComponent+" /Columns "+nr.width,Ze={width:nr.width,height:nr.height,colorSpace:"DeviceGray",bitsPerComponent:nr.bitsPerComponent,decodeParameters:sr,data:nr.sMask};"filter"in nr&&(Ze.filter=nr.filter),er.call(this,Ze)}if(nr.colorSpace===dr.INDEXED){var _e=this.internal.newObject();xe({data:Sr(new Uint8Array(nr.palette)),objectId:_e}),ye("endobj")}},W=function(){var er=this.internal.collections.addImage_images;for(var nr in er)ne.call(this,er[nr])},ge=function(){var er,nr=this.internal.collections.addImage_images,ye=this.internal.write;for(var xe in nr)ye("/I"+(er=nr[xe]).index,er.objectId,"0","R")},Le=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",W),this.internal.events.subscribe("putXobjectDict",ge))},ke=function(){var er=this.internal.collections.addImage_images;return Le.call(this),er},rt=function(){return Object.keys(this.internal.collections.addImage_images).length},yt=function(er){return typeof b["process"+er.toUpperCase()]=="function"},vt=function(er){return(0,we.Z)(er)==="object"&&er.nodeType===1},Pt=function(er,nr){if(er.nodeName==="IMG"&&er.hasAttribute("src")){var ye=""+er.getAttribute("src");if(ye.indexOf("data:image/")===0)return Bi(unescape(ye).split("base64,").pop());var xe=b.loadFile(ye,!0);if(xe!==void 0)return xe}if(er.nodeName==="CANVAS"){if(er.width===0||er.height===0)throw new Error("Given canvas must have data. Canvas width: "+er.width+", height: "+er.height);var et;switch(nr){case"PNG":et="image/png";break;case"WEBP":et="image/webp";break;case"JPEG":case"JPG":default:et="image/jpeg"}return Bi(er.toDataURL(et,1).split("base64,").pop())}},Ve=function(er){var nr=this.internal.collections.addImage_images;if(nr){for(var ye in nr)if(er===nr[ye].alias)return nr[ye]}},cr=function(er,nr,ye){return er||nr||(er=-96,nr=-96),er<0&&(er=-1*ye.width*72/er/this.internal.scaleFactor),nr<0&&(nr=-1*ye.height*72/nr/this.internal.scaleFactor),er===0&&(er=nr*ye.width/ye.height),nr===0&&(nr=er*ye.height/ye.width),[er,nr]},tr=function(er,nr,ye,xe,et,st){var gt=cr.call(this,ye,xe,et),ft=this.internal.getCoordinateString,Ut=this.internal.getVerticalCoordinateString,$t=ke.call(this);if(ye=gt[0],xe=gt[1],$t[et.index]=et,st){st*=Math.PI/180;var sr=Math.cos(st),Ze=Math.sin(st),_e=function(Ht){return Ht.toFixed(4)},wt=[_e(sr),_e(Ze),_e(-1*Ze),_e(sr),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,ft(er),Ut(nr+xe),"cm"].join(" ")),this.internal.write(wt.join(" ")),this.internal.write([ft(ye),"0","0",ft(xe),"0","0","cm"].join(" "))):this.internal.write([ft(ye),"0","0",ft(xe),ft(er),Ut(nr+xe),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+et.index+" Do"),this.internal.write("Q")},dr=b.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};b.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Qt=b.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},pr=b.__addimage__.sHashCode=function(er){var nr,ye,xe=0;if(typeof er=="string")for(ye=er.length,nr=0;nr<ye;nr++)xe=(xe<<5)-xe+er.charCodeAt(nr),xe|=0;else if(di(er))for(ye=er.byteLength/2,nr=0;nr<ye;nr++)xe=(xe<<5)-xe+er[nr],xe|=0;return xe},Mr=b.__addimage__.validateStringAsBase64=function(er){(er=er||"").toString().trim();var nr=!0;return er.length===0&&(nr=!1),er.length%4!=0&&(nr=!1),/^[A-Za-z0-9+/]+$/.test(er.substr(0,er.length-2))===!1&&(nr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(er.substr(-2))===!1&&(nr=!1),nr},sn=b.__addimage__.extractImageFromDataUrl=function(er){var nr=(er=er||"").split("base64,"),ye=null;if(nr.length===2){var xe=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(nr[0]);Array.isArray(xe)&&(ye={mimeType:xe[1],charset:xe[2],data:nr[1]})}return ye},Rn=b.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};b.__addimage__.isArrayBuffer=function(er){return Rn()&&er instanceof ArrayBuffer};var di=b.__addimage__.isArrayBufferView=function(er){return Rn()&&typeof Uint32Array!="undefined"&&(er instanceof Int8Array||er instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&er instanceof Uint8ClampedArray||er instanceof Int16Array||er instanceof Uint16Array||er instanceof Int32Array||er instanceof Uint32Array||er instanceof Float32Array||er instanceof Float64Array)},pn=b.__addimage__.binaryStringToUint8Array=function(er){for(var nr=er.length,ye=new Uint8Array(nr),xe=0;xe<nr;xe++)ye[xe]=er.charCodeAt(xe);return ye},Sr=b.__addimage__.arrayBufferToBinaryString=function(er){for(var nr="",ye=di(er)?er:new Uint8Array(er),xe=0;xe<ye.length;xe+=8192)nr+=String.fromCharCode.apply(null,ye.subarray(xe,xe+8192));return nr};b.addImage=function(){var er,nr,ye,xe,et,st,gt,ft,Ut;if(typeof arguments[1]=="number"?(nr=u,ye=arguments[1],xe=arguments[2],et=arguments[3],st=arguments[4],gt=arguments[5],ft=arguments[6],Ut=arguments[7]):(nr=arguments[1],ye=arguments[2],xe=arguments[3],et=arguments[4],st=arguments[5],gt=arguments[6],ft=arguments[7],Ut=arguments[8]),(0,we.Z)(er=arguments[0])==="object"&&!vt(er)&&"imageData"in er){var $t=er;er=$t.imageData,nr=$t.format||nr||u,ye=$t.x||ye||0,xe=$t.y||xe||0,et=$t.w||$t.width||et,st=$t.h||$t.height||st,gt=$t.alias||gt,ft=$t.compression||ft,Ut=$t.rotation||$t.angle||Ut}var sr=this.internal.getFilters();if(ft===void 0&&sr.indexOf("FlateEncode")!==-1&&(ft="SLOW"),isNaN(ye)||isNaN(xe))throw new Error("Invalid coordinates passed to jsPDF.addImage");Le.call(this);var Ze=xn.call(this,er,nr,gt,ft);return tr.call(this,ye,xe,et,st,Ze,Ut),this};var xn=function(er,nr,ye,xe){var et,st,gt;if(typeof er=="string"&&M(er)===u){er=unescape(er);var ft=Nn(er,!1);(ft!==""||(ft=b.loadFile(er,!0))!==void 0)&&(er=ft)}if(vt(er)&&(er=Pt(er,nr)),nr=M(er,nr),!yt(nr))throw new Error("addImage does not support files of type '"+nr+"', please ensure that a plugin for '"+nr+"' support is added.");if(((gt=ye)==null||gt.length===0)&&(ye=function(Ut){return typeof Ut=="string"||di(Ut)?pr(Ut):di(Ut.data)?pr(Ut.data):null}(er)),(et=Ve.call(this,ye))||(Rn()&&(er instanceof Uint8Array||nr==="RGBA"||(st=er,er=pn(er))),et=this["process"+nr.toUpperCase()](er,rt.call(this),ye,function(Ut){return Ut&&typeof Ut=="string"&&(Ut=Ut.toUpperCase()),Ut in b.image_compression?Ut:Qt.NONE}(xe),st)),!et)throw new Error("An unknown error occurred whilst processing the image.");return et},Nn=b.__addimage__.convertBase64ToBinaryString=function(er,nr){var ye;nr=typeof nr!="boolean"||nr;var xe,et="";if(typeof er=="string"){xe=(ye=sn(er))!==null?ye.data:er;try{et=Bi(xe)}catch(st){if(nr)throw Mr(xe)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return et};b.getImageProperties=function(er){var nr,ye,xe="";if(vt(er)&&(er=Pt(er)),typeof er=="string"&&M(er)===u&&((xe=Nn(er,!1))===""&&(xe=b.loadFile(er)||""),er=xe),ye=M(er),!yt(ye))throw new Error("addImage does not support files of type '"+ye+"', please ensure that a plugin for '"+ye+"' support is added.");if(!Rn()||er instanceof Uint8Array||(er=pn(er)),!(nr=this["process"+ye.toUpperCase()](er)))throw new Error("An unknown error occurred whilst processing the image");return nr.fileType=ye,nr}})(Ni.API),function(b){var u=function(y){if(y!==void 0&&y!="")return!0};Ni.API.events.push(["addPage",function(y){this.internal.getPageInfo(y.pageNumber).pageContext.annotations=[]}]),b.events.push(["putPage",function(y){for(var M,ne,W,ge=this.internal.getCoordinateString,Le=this.internal.getVerticalCoordinateString,ke=this.internal.getPageInfoByObjId(y.objId),rt=y.pageContext.annotations,yt=!1,vt=0;vt<rt.length&&!yt;vt++)switch((M=rt[vt]).type){case"link":(u(M.options.url)||u(M.options.pageNumber))&&(yt=!0);break;case"reference":case"text":case"freetext":yt=!0}if(yt!=0){this.internal.write("/Annots [");for(var Pt=0;Pt<rt.length;Pt++){M=rt[Pt];var Ve=this.internal.pdfEscape,cr=this.internal.getEncryptor(y.objId);switch(M.type){case"reference":this.internal.write(" "+M.object.objId+" 0 R ");break;case"text":var tr=this.internal.newAdditionalObject(),dr=this.internal.newAdditionalObject(),Qt=this.internal.getEncryptor(tr.objId),pr=M.title||"Note";W="<</Type /Annot /Subtype /Text "+(ne="/Rect ["+ge(M.bounds.x)+" "+Le(M.bounds.y+M.bounds.h)+" "+ge(M.bounds.x+M.bounds.w)+" "+Le(M.bounds.y)+"] ")+"/Contents ("+Ve(Qt(M.contents))+")",W+=" /Popup "+dr.objId+" 0 R",W+=" /P "+ke.objId+" 0 R",W+=" /T ("+Ve(Qt(pr))+") >>",tr.content=W;var Mr=tr.objId+" 0 R";W="<</Type /Annot /Subtype /Popup "+(ne="/Rect ["+ge(M.bounds.x+30)+" "+Le(M.bounds.y+M.bounds.h)+" "+ge(M.bounds.x+M.bounds.w+30)+" "+Le(M.bounds.y)+"] ")+" /Parent "+Mr,M.open&&(W+=" /Open true"),W+=" >>",dr.content=W,this.internal.write(tr.objId,"0 R",dr.objId,"0 R");break;case"freetext":ne="/Rect ["+ge(M.bounds.x)+" "+Le(M.bounds.y)+" "+ge(M.bounds.x+M.bounds.w)+" "+Le(M.bounds.y+M.bounds.h)+"] ";var sn=M.color||"#000000";W="<</Type /Annot /Subtype /FreeText "+ne+"/Contents ("+Ve(cr(M.contents))+")",W+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+sn+")",W+=" /Border [0 0 0]",W+=" >>",this.internal.write(W);break;case"link":if(M.options.name){var Rn=this.annotations._nameMap[M.options.name];M.options.pageNumber=Rn.page,M.options.top=Rn.y}else M.options.top||(M.options.top=0);if(ne="/Rect ["+M.finalBounds.x+" "+M.finalBounds.y+" "+M.finalBounds.w+" "+M.finalBounds.h+"] ",W="",M.options.url)W="<</Type /Annot /Subtype /Link "+ne+"/Border [0 0 0] /A <</S /URI /URI ("+Ve(cr(M.options.url))+") >>";else if(M.options.pageNumber)switch(W="<</Type /Annot /Subtype /Link "+ne+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(M.options.pageNumber).objId+" 0 R",M.options.magFactor=M.options.magFactor||"XYZ",M.options.magFactor){case"Fit":W+=" /Fit]";break;case"FitH":W+=" /FitH "+M.options.top+"]";break;case"FitV":M.options.left=M.options.left||0,W+=" /FitV "+M.options.left+"]";break;case"XYZ":default:var di=Le(M.options.top);M.options.left=M.options.left||0,M.options.zoom===void 0&&(M.options.zoom=0),W+=" /XYZ "+M.options.left+" "+di+" "+M.options.zoom+"]"}W!=""&&(W+=" >>",this.internal.write(W))}}this.internal.write("]")}}]),b.createAnnotation=function(y){var M=this.internal.getCurrentPageInfo();switch(y.type){case"link":this.link(y.bounds.x,y.bounds.y,y.bounds.w,y.bounds.h,y);break;case"text":case"freetext":M.pageContext.annotations.push(y)}},b.link=function(y,M,ne,W,ge){var Le=this.internal.getCurrentPageInfo(),ke=this.internal.getCoordinateString,rt=this.internal.getVerticalCoordinateString;Le.pageContext.annotations.push({finalBounds:{x:ke(y),y:rt(M),w:ke(y+ne),h:rt(M+W)},options:ge,type:"link"})},b.textWithLink=function(y,M,ne,W){var ge,Le,ke=this.getTextWidth(y),rt=this.internal.getLineHeight()/this.internal.scaleFactor;if(W.maxWidth!==void 0){Le=W.maxWidth;var yt=this.splitTextToSize(y,Le).length;ge=Math.ceil(rt*yt)}else Le=ke,ge=rt;return this.text(y,M,ne,W),ne+=.2*rt,W.align==="center"&&(M-=ke/2),W.align==="right"&&(M-=ke),this.link(M,ne-rt,Le,ge,W),ke},b.getTextWidth=function(y){var M=this.internal.getFontSize();return this.getStringUnitWidth(y)*M/this.internal.scaleFactor}}(Ni.API),function(b){var u={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},y={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},M={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ne=[1570,1571,1573,1575];b.__arabicParser__={};var W=b.__arabicParser__.isInArabicSubstitutionA=function(tr){return u[tr.charCodeAt(0)]!==void 0},ge=b.__arabicParser__.isArabicLetter=function(tr){return typeof tr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(tr)},Le=b.__arabicParser__.isArabicEndLetter=function(tr){return ge(tr)&&W(tr)&&u[tr.charCodeAt(0)].length<=2},ke=b.__arabicParser__.isArabicAlfLetter=function(tr){return ge(tr)&&ne.indexOf(tr.charCodeAt(0))>=0};b.__arabicParser__.arabicLetterHasIsolatedForm=function(tr){return ge(tr)&&W(tr)&&u[tr.charCodeAt(0)].length>=1};var rt=b.__arabicParser__.arabicLetterHasFinalForm=function(tr){return ge(tr)&&W(tr)&&u[tr.charCodeAt(0)].length>=2};b.__arabicParser__.arabicLetterHasInitialForm=function(tr){return ge(tr)&&W(tr)&&u[tr.charCodeAt(0)].length>=3};var yt=b.__arabicParser__.arabicLetterHasMedialForm=function(tr){return ge(tr)&&W(tr)&&u[tr.charCodeAt(0)].length==4},vt=b.__arabicParser__.resolveLigatures=function(tr){var dr=0,Qt=y,pr="",Mr=0;for(dr=0;dr<tr.length;dr+=1)Qt[tr.charCodeAt(dr)]!==void 0?(Mr++,typeof(Qt=Qt[tr.charCodeAt(dr)])=="number"&&(pr+=String.fromCharCode(Qt),Qt=y,Mr=0),dr===tr.length-1&&(Qt=y,pr+=tr.charAt(dr-(Mr-1)),dr-=Mr-1,Mr=0)):(Qt=y,pr+=tr.charAt(dr-Mr),dr-=Mr,Mr=0);return pr};b.__arabicParser__.isArabicDiacritic=function(tr){return tr!==void 0&&M[tr.charCodeAt(0)]!==void 0};var Pt=b.__arabicParser__.getCorrectForm=function(tr,dr,Qt){return ge(tr)?W(tr)===!1?-1:!rt(tr)||!ge(dr)&&!ge(Qt)||!ge(Qt)&&Le(dr)||Le(tr)&&!ge(dr)||Le(tr)&&ke(dr)||Le(tr)&&Le(dr)?0:yt(tr)&&ge(dr)&&!Le(dr)&&ge(Qt)&&rt(Qt)?3:Le(tr)||!ge(Qt)?1:2:-1},Ve=function(tr){var dr=0,Qt=0,pr=0,Mr="",sn="",Rn="",di=(tr=tr||"").split("\\s+"),pn=[];for(dr=0;dr<di.length;dr+=1){for(pn.push(""),Qt=0;Qt<di[dr].length;Qt+=1)Mr=di[dr][Qt],sn=di[dr][Qt-1],Rn=di[dr][Qt+1],ge(Mr)?(pr=Pt(Mr,sn,Rn),pn[dr]+=pr!==-1?String.fromCharCode(u[Mr.charCodeAt(0)][pr]):Mr):pn[dr]+=Mr;pn[dr]=vt(pn[dr])}return pn.join(" ")},cr=b.__arabicParser__.processArabic=b.processArabic=function(){var tr,dr=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Qt=[];if(Array.isArray(dr)){var pr=0;for(Qt=[],pr=0;pr<dr.length;pr+=1)Array.isArray(dr[pr])?Qt.push([Ve(dr[pr][0]),dr[pr][1],dr[pr][2]]):Qt.push([Ve(dr[pr])]);tr=Qt}else tr=Ve(dr);return typeof arguments[0]=="string"?tr:(arguments[0].text=tr,arguments[0])};b.events.push(["preProcessText",cr])}(Ni.API),Ni.API.autoPrint=function(b){var u;switch((b=b||{}).variant=b.variant||"non-conform",b.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){u=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+u+" 0 R")})}return this},function(b){var u=function(){var y=void 0;Object.defineProperty(this,"pdf",{get:function(){return y},set:function(Le){y=Le}});var M=150;Object.defineProperty(this,"width",{get:function(){return M},set:function(Le){M=isNaN(Le)||Number.isInteger(Le)===!1||Le<0?150:Le,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=M+1)}});var ne=300;Object.defineProperty(this,"height",{get:function(){return ne},set:function(Le){ne=isNaN(Le)||Number.isInteger(Le)===!1||Le<0?300:Le,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ne+1)}});var W=[];Object.defineProperty(this,"childNodes",{get:function(){return W},set:function(Le){W=Le}});var ge={};Object.defineProperty(this,"style",{get:function(){return ge},set:function(Le){ge=Le}}),Object.defineProperty(this,"parentNode",{})};u.prototype.getContext=function(y,M){var ne;if((y=y||"2d")!=="2d")return null;for(ne in M)this.pdf.context2d.hasOwnProperty(ne)&&(this.pdf.context2d[ne]=M[ne]);return this.pdf.context2d._canvas=this,this.pdf.context2d},u.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},b.events.push(["initialized",function(){this.canvas=new u,this.canvas.pdf=this}])}(Ni.API),function(b){var u={left:0,top:0,bottom:0,right:0},y=!1,M=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},u),this.internal.__cell__.margins.width=this.getPageWidth(),ne.call(this))},ne=function(){this.internal.__cell__.lastCell=new W,this.internal.__cell__.pages=1},W=function(){var ke=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ke},set:function(tr){ke=tr}});var rt=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return rt},set:function(tr){rt=tr}});var yt=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return yt},set:function(tr){yt=tr}});var vt=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return vt},set:function(tr){vt=tr}});var Pt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Pt},set:function(tr){Pt=tr}});var Ve=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Ve},set:function(tr){Ve=tr}});var cr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return cr},set:function(tr){cr=tr}}),this};W.prototype.clone=function(){return new W(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},W.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},b.setHeaderFunction=function(ke){return M.call(this),this.internal.__cell__.headerFunction=typeof ke=="function"?ke:void 0,this},b.getTextDimensions=function(ke,rt){M.call(this);var yt=(rt=rt||{}).fontSize||this.getFontSize(),vt=rt.font||this.getFont(),Pt=rt.scaleFactor||this.internal.scaleFactor,Ve=0,cr=0,tr=0,dr=this;if(!Array.isArray(ke)&&typeof ke!="string"){if(typeof ke!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ke=String(ke)}var Qt=rt.maxWidth;Qt>0?typeof ke=="string"?ke=this.splitTextToSize(ke,Qt):Object.prototype.toString.call(ke)==="[object Array]"&&(ke=ke.reduce(function(Mr,sn){return Mr.concat(dr.splitTextToSize(sn,Qt))},[])):ke=Array.isArray(ke)?ke:[ke];for(var pr=0;pr<ke.length;pr++)Ve<(tr=this.getStringUnitWidth(ke[pr],{font:vt})*yt)&&(Ve=tr);return Ve!==0&&(cr=ke.length),{w:Ve/=Pt,h:Math.max((cr*yt*this.getLineHeightFactor()-yt*(this.getLineHeightFactor()-1))/Pt,0)}},b.cellAddPage=function(){M.call(this),this.addPage();var ke=this.internal.__cell__.margins||u;return this.internal.__cell__.lastCell=new W(ke.left,ke.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ge=b.cell=function(){var ke;ke=arguments[0]instanceof W?arguments[0]:new W(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),M.call(this);var rt=this.internal.__cell__.lastCell,yt=this.internal.__cell__.padding,vt=this.internal.__cell__.margins||u,Pt=this.internal.__cell__.tableHeaderRow,Ve=this.internal.__cell__.printHeaders;return rt.lineNumber!==void 0&&(rt.lineNumber===ke.lineNumber?(ke.x=(rt.x||0)+(rt.width||0),ke.y=rt.y||0):rt.y+rt.height+ke.height+vt.bottom>this.getPageHeight()?(this.cellAddPage(),ke.y=vt.top,Ve&&Pt&&(this.printHeaderRow(ke.lineNumber,!0),ke.y+=Pt[0].height)):ke.y=rt.y+rt.height||ke.y),ke.text[0]!==void 0&&(this.rect(ke.x,ke.y,ke.width,ke.height,y===!0?"FD":void 0),ke.align==="right"?this.text(ke.text,ke.x+ke.width-yt,ke.y+yt,{align:"right",baseline:"top"}):ke.align==="center"?this.text(ke.text,ke.x+ke.width/2,ke.y+yt,{align:"center",baseline:"top",maxWidth:ke.width-yt-yt}):this.text(ke.text,ke.x+yt,ke.y+yt,{align:"left",baseline:"top",maxWidth:ke.width-yt-yt})),this.internal.__cell__.lastCell=ke,this};b.table=function(ke,rt,yt,vt,Pt){if(M.call(this),!yt)throw new Error("No data for PDF table.");var Ve,cr,tr,dr,Qt=[],pr=[],Mr=[],sn={},Rn={},di=[],pn=[],Sr=(Pt=Pt||{}).autoSize||!1,xn=Pt.printHeaders!==!1,Nn=Pt.css&&Pt.css["font-size"]!==void 0?16*Pt.css["font-size"]:Pt.fontSize||12,er=Pt.margins||Object.assign({width:this.getPageWidth()},u),nr=typeof Pt.padding=="number"?Pt.padding:3,ye=Pt.headerBackgroundColor||"#c8c8c8",xe=Pt.headerTextColor||"#000";if(ne.call(this),this.internal.__cell__.printHeaders=xn,this.internal.__cell__.margins=er,this.internal.__cell__.table_font_size=Nn,this.internal.__cell__.padding=nr,this.internal.__cell__.headerBackgroundColor=ye,this.internal.__cell__.headerTextColor=xe,this.setFontSize(Nn),vt==null)pr=Qt=Object.keys(yt[0]),Mr=Qt.map(function(){return"left"});else if(Array.isArray(vt)&&(0,we.Z)(vt[0])==="object")for(Qt=vt.map(function($t){return $t.name}),pr=vt.map(function($t){return $t.prompt||$t.name||""}),Mr=vt.map(function($t){return $t.align||"left"}),Ve=0;Ve<vt.length;Ve+=1)Rn[vt[Ve].name]=vt[Ve].width*(19.049976/25.4);else Array.isArray(vt)&&typeof vt[0]=="string"&&(pr=Qt=vt,Mr=Qt.map(function(){return"left"}));if(Sr||Array.isArray(vt)&&typeof vt[0]=="string")for(Ve=0;Ve<Qt.length;Ve+=1){for(sn[dr=Qt[Ve]]=yt.map(function($t){return $t[dr]}),this.setFont(void 0,"bold"),di.push(this.getTextDimensions(pr[Ve],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),cr=sn[dr],this.setFont(void 0,"normal"),tr=0;tr<cr.length;tr+=1)di.push(this.getTextDimensions(cr[tr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Rn[dr]=Math.max.apply(null,di)+nr+nr,di=[]}if(xn){var et={};for(Ve=0;Ve<Qt.length;Ve+=1)et[Qt[Ve]]={},et[Qt[Ve]].text=pr[Ve],et[Qt[Ve]].align=Mr[Ve];var st=Le.call(this,et,Rn);pn=Qt.map(function($t){return new W(ke,rt,Rn[$t],st,et[$t].text,void 0,et[$t].align)}),this.setTableHeaderRow(pn),this.printHeaderRow(1,!1)}var gt=vt.reduce(function($t,sr){return $t[sr.name]=sr.align,$t},{});for(Ve=0;Ve<yt.length;Ve+=1){"rowStart"in Pt&&Pt.rowStart instanceof Function&&Pt.rowStart({row:Ve,data:yt[Ve]},this);var ft=Le.call(this,yt[Ve],Rn);for(tr=0;tr<Qt.length;tr+=1){var Ut=yt[Ve][Qt[tr]];"cellStart"in Pt&&Pt.cellStart instanceof Function&&Pt.cellStart({row:Ve,col:tr,data:Ut},this),ge.call(this,new W(ke,rt,Rn[Qt[tr]],ft,Ut,Ve+2,gt[Qt[tr]]))}}return this.internal.__cell__.table_x=ke,this.internal.__cell__.table_y=rt,this};var Le=function(ke,rt){var yt=this.internal.__cell__.padding,vt=this.internal.__cell__.table_font_size,Pt=this.internal.scaleFactor;return Object.keys(ke).map(function(Ve){var cr=ke[Ve];return this.splitTextToSize(cr.hasOwnProperty("text")?cr.text:cr,rt[Ve]-yt-yt)},this).map(function(Ve){return this.getLineHeightFactor()*Ve.length*vt/Pt+yt+yt},this).reduce(function(Ve,cr){return Math.max(Ve,cr)},0)};b.setTableHeaderRow=function(ke){M.call(this),this.internal.__cell__.tableHeaderRow=ke},b.printHeaderRow=function(ke,rt){if(M.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var yt;if(y=!0,typeof this.internal.__cell__.headerFunction=="function"){var vt=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new W(vt[0],vt[1],vt[2],vt[3],void 0,-1)}this.setFont(void 0,"bold");for(var Pt=[],Ve=0;Ve<this.internal.__cell__.tableHeaderRow.length;Ve+=1){yt=this.internal.__cell__.tableHeaderRow[Ve].clone(),rt&&(yt.y=this.internal.__cell__.margins.top||0,Pt.push(yt)),yt.lineNumber=ke;var cr=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ge.call(this,yt),this.setTextColor(cr)}Pt.length>0&&this.setTableHeaderRow(Pt),this.setFont(void 0,"normal"),y=!1}}(Ni.API);var Qo={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ao=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],_a=nl(Ao),vl=[100,200,300,400,500,600,700,800,900],yl=nl(vl);function fo(b){var u=b.family.replace(/"|'/g,"").toLowerCase(),y=function(W){return Qo[W=W||"normal"]?W:"normal"}(b.style),M=function(W){if(!W)return 400;if(typeof W=="number")return W>=100&&W<=900&&W%100==0?W:400;if(/^\d00$/.test(W))return parseInt(W);switch(W){case"bold":return 700;case"normal":default:return 400}}(b.weight),ne=function(W){return typeof _a[W=W||"normal"]=="number"?W:"normal"}(b.stretch);return{family:u,style:y,weight:M,stretch:ne,src:b.src||[],ref:b.ref||{name:u,style:[ne,y,M].join(" ")}}}function yo(b,u,y,M){var ne;for(ne=y;ne>=0&&ne<u.length;ne+=M)if(b[u[ne]])return b[u[ne]];for(ne=y;ne>=0&&ne<u.length;ne-=M)if(b[u[ne]])return b[u[ne]]}var ka={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},pa={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function to(b){return[b.stretch,b.style,b.weight,b.family].join(" ")}function Ya(b,u,y){for(var M=(y=y||{}).defaultFontFamily||"times",ne=Object.assign({},ka,y.genericFontFamilies||{}),W=null,ge=null,Le=0;Le<u.length;++Le)if(ne[(W=fo(u[Le])).family]&&(W.family=ne[W.family]),b.hasOwnProperty(W.family)){ge=b[W.family];break}if(!(ge=ge||b[M]))throw new Error("Could not find a font-family for the rule '"+to(W)+"' and default family '"+M+"'.");if(ge=function(ke,rt){if(rt[ke])return rt[ke];var yt=_a[ke],vt=yt<=_a.normal?-1:1,Pt=yo(rt,Ao,yt,vt);if(!Pt)throw new Error("Could not find a matching font-stretch value for "+ke);return Pt}(W.stretch,ge),ge=function(ke,rt){if(rt[ke])return rt[ke];for(var yt=Qo[ke],vt=0;vt<yt.length;++vt)if(rt[yt[vt]])return rt[yt[vt]];throw new Error("Could not find a matching font-style for "+ke)}(W.style,ge),!(ge=function(ke,rt){if(rt[ke])return rt[ke];if(ke===400&&rt[500])return rt[500];if(ke===500&&rt[400])return rt[400];var yt=yl[ke],vt=yo(rt,vl,yt,ke<400?-1:1);if(!vt)throw new Error("Could not find a matching font-weight for value "+ke);return vt}(W.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+to(W)+"'.");return ge}function ns(b){return b.trimLeft()}function js(b,u){for(var y=0;y<b.length;){if(b.charAt(y)===u)return[b.substring(0,y),b.substring(y+1)];y+=1}return null}function wa(b){var u=b.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return u===null?null:[u[0],b.substring(u[0].length)]}var Ys,ao,Po,Do=["times"];(function(b){var u,y,M,ne,W,ge,Le,ke,rt,yt=function(Ze){return Ze=Ze||{},this.isStrokeTransparent=Ze.isStrokeTransparent||!1,this.strokeOpacity=Ze.strokeOpacity||1,this.strokeStyle=Ze.strokeStyle||"#000000",this.fillStyle=Ze.fillStyle||"#000000",this.isFillTransparent=Ze.isFillTransparent||!1,this.fillOpacity=Ze.fillOpacity||1,this.font=Ze.font||"10px sans-serif",this.textBaseline=Ze.textBaseline||"alphabetic",this.textAlign=Ze.textAlign||"left",this.lineWidth=Ze.lineWidth||1,this.lineJoin=Ze.lineJoin||"miter",this.lineCap=Ze.lineCap||"butt",this.path=Ze.path||[],this.transform=Ze.transform!==void 0?Ze.transform.clone():new ke,this.globalCompositeOperation=Ze.globalCompositeOperation||"normal",this.globalAlpha=Ze.globalAlpha||1,this.clip_path=Ze.clip_path||[],this.currentPoint=Ze.currentPoint||new ge,this.miterLimit=Ze.miterLimit||10,this.lastPoint=Ze.lastPoint||new ge,this.lineDashOffset=Ze.lineDashOffset||0,this.lineDash=Ze.lineDash||[],this.margin=Ze.margin||[0,0,0,0],this.prevPageLastElemOffset=Ze.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Ze.ignoreClearRect!="boolean"||Ze.ignoreClearRect,this};b.events.push(["initialized",function(){this.context2d=new vt(this),u=this.internal.f2,y=this.internal.getCoordinateString,M=this.internal.getVerticalCoordinateString,ne=this.internal.getHorizontalCoordinate,W=this.internal.getVerticalCoordinate,ge=this.internal.Point,Le=this.internal.Rectangle,ke=this.internal.Matrix,rt=new yt}]);var vt=function(Ze){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _e=Ze;Object.defineProperty(this,"pdf",{get:function(){return _e}});var wt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return wt},set:function(kr){wt=!!kr}});var Ht=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Ht},set:function(kr){Ht=!!kr}});var Wt=0;Object.defineProperty(this,"posX",{get:function(){return Wt},set:function(kr){isNaN(kr)||(Wt=kr)}});var lr=0;Object.defineProperty(this,"posY",{get:function(){return lr},set:function(kr){isNaN(kr)||(lr=kr)}}),Object.defineProperty(this,"margin",{get:function(){return rt.margin},set:function(kr){var ir;typeof kr=="number"?ir=[kr,kr,kr,kr]:((ir=new Array(4))[0]=kr[0],ir[1]=kr.length>=2?kr[1]:ir[0],ir[2]=kr.length>=3?kr[2]:ir[0],ir[3]=kr.length>=4?kr[3]:ir[1]),rt.margin=ir}});var St=!1;Object.defineProperty(this,"autoPaging",{get:function(){return St},set:function(kr){St=kr}});var yr=0;Object.defineProperty(this,"lastBreak",{get:function(){return yr},set:function(kr){yr=kr}});var Gr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Gr},set:function(kr){Gr=kr}}),Object.defineProperty(this,"ctx",{get:function(){return rt},set:function(kr){kr instanceof yt&&(rt=kr)}}),Object.defineProperty(this,"path",{get:function(){return rt.path},set:function(kr){rt.path=kr}});var $r=[];Object.defineProperty(this,"ctxStack",{get:function(){return $r},set:function(kr){$r=kr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(kr){var ir;ir=Pt(kr),this.ctx.fillStyle=ir.style,this.ctx.isFillTransparent=ir.a===0,this.ctx.fillOpacity=ir.a,this.pdf.setFillColor(ir.r,ir.g,ir.b,{a:ir.a}),this.pdf.setTextColor(ir.r,ir.g,ir.b,{a:ir.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(kr){var ir=Pt(kr);this.ctx.strokeStyle=ir.style,this.ctx.isStrokeTransparent=ir.a===0,this.ctx.strokeOpacity=ir.a,ir.a===0?this.pdf.setDrawColor(255,255,255):(ir.a,this.pdf.setDrawColor(ir.r,ir.g,ir.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(kr){["butt","round","square"].indexOf(kr)!==-1&&(this.ctx.lineCap=kr,this.pdf.setLineCap(kr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(kr){isNaN(kr)||(this.ctx.lineWidth=kr,this.pdf.setLineWidth(kr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(kr){["bevel","round","miter"].indexOf(kr)!==-1&&(this.ctx.lineJoin=kr,this.pdf.setLineJoin(kr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(kr){isNaN(kr)||(this.ctx.miterLimit=kr,this.pdf.setMiterLimit(kr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(kr){this.ctx.textBaseline=kr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(kr){["right","end","center","left","start"].indexOf(kr)!==-1&&(this.ctx.textAlign=kr)}});var An=null;function Dn(kr,ir){if(An===null){var Si=function(Fn){var ln=[];return Object.keys(Fn).forEach(function(dn){Fn[dn].forEach(function(rn){var Cn=null;switch(rn){case"bold":Cn={family:dn,weight:"bold"};break;case"italic":Cn={family:dn,style:"italic"};break;case"bolditalic":Cn={family:dn,weight:"bold",style:"italic"};break;case"":case"normal":Cn={family:dn}}Cn!==null&&(Cn.ref={name:dn,style:rn},ln.push(Cn))})}),ln}(kr.getFontList());An=function(Fn){for(var ln={},dn=0;dn<Fn.length;++dn){var rn=fo(Fn[dn]),Cn=rn.family,si=rn.stretch,Fi=rn.style,He=rn.weight;ln[Cn]=ln[Cn]||{},ln[Cn][si]=ln[Cn][si]||{},ln[Cn][si][Fi]=ln[Cn][si][Fi]||{},ln[Cn][si][Fi][He]=rn}return ln}(Si.concat(ir))}return An}var ni=null;Object.defineProperty(this,"fontFaces",{get:function(){return ni},set:function(kr){An=null,ni=kr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(kr){var ir;if(this.ctx.font=kr,(ir=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(kr))!==null){var Si=ir[1],Fn=(ir[2],ir[3]),ln=ir[4],dn=(ir[5],ir[6]),rn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ln)[2];ln=Math.floor(rn==="px"?parseFloat(ln)*this.pdf.internal.scaleFactor:rn==="em"?parseFloat(ln)*this.pdf.getFontSize():parseFloat(ln)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ln);var Cn=function(K){var Be,je,xt=[],bt=K.trim();if(bt==="")return Do;if(bt in pa)return[pa[bt]];for(;bt!=="";){switch(je=null,Be=(bt=ns(bt)).charAt(0)){case'"':case"'":je=js(bt.substring(1),Be);break;default:je=wa(bt)}if(je===null||(xt.push(je[0]),(bt=ns(je[1]))!==""&&bt.charAt(0)!==","))return Do;bt=bt.replace(/^,/,"")}return xt}(dn);if(this.fontFaces){var si=Ya(Dn(this.pdf,this.fontFaces),Cn.map(function(K){return{family:K,stretch:"normal",weight:Fn,style:Si}}));this.pdf.setFont(si.ref.name,si.ref.style)}else{var Fi="";(Fn==="bold"||parseInt(Fn,10)>=700||Si==="bold")&&(Fi="bold"),Si==="italic"&&(Fi+="italic"),Fi.length===0&&(Fi="normal");for(var He="",c={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},w=0;w<Cn.length;w++){if(this.pdf.internal.getFont(Cn[w],Fi,{noFallback:!0,disableWarning:!0})!==void 0){He=Cn[w];break}if(Fi==="bolditalic"&&this.pdf.internal.getFont(Cn[w],"bold",{noFallback:!0,disableWarning:!0})!==void 0)He=Cn[w],Fi="bold";else if(this.pdf.internal.getFont(Cn[w],"normal",{noFallback:!0,disableWarning:!0})!==void 0){He=Cn[w],Fi="normal";break}}if(He===""){for(var C=0;C<Cn.length;C++)if(c[Cn[C]]){He=c[Cn[C]];break}}He=He===""?"Times":He,this.pdf.setFont(He,Fi)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(kr){this.ctx.globalCompositeOperation=kr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(kr){this.ctx.globalAlpha=kr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(kr){this.ctx.lineDashOffset=kr,sr.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(kr){this.ctx.lineDash=kr,sr.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(kr){this.ctx.ignoreClearRect=!!kr}})};vt.prototype.setLineDash=function(Ze){this.lineDash=Ze},vt.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},vt.prototype.fill=function(){sn.call(this,"fill",!1)},vt.prototype.stroke=function(){sn.call(this,"stroke",!1)},vt.prototype.beginPath=function(){this.path=[{type:"begin"}]},vt.prototype.moveTo=function(Ze,_e){if(isNaN(Ze)||isNaN(_e))throw ii.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var wt=this.ctx.transform.applyToPoint(new ge(Ze,_e));this.path.push({type:"mt",x:wt.x,y:wt.y}),this.ctx.lastPoint=new ge(Ze,_e)},vt.prototype.closePath=function(){var Ze=new ge(0,0),_e=0;for(_e=this.path.length-1;_e!==-1;_e--)if(this.path[_e].type==="begin"&&(0,we.Z)(this.path[_e+1])==="object"&&typeof this.path[_e+1].x=="number"){Ze=new ge(this.path[_e+1].x,this.path[_e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ge(Ze.x,Ze.y)},vt.prototype.lineTo=function(Ze,_e){if(isNaN(Ze)||isNaN(_e))throw ii.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var wt=this.ctx.transform.applyToPoint(new ge(Ze,_e));this.path.push({type:"lt",x:wt.x,y:wt.y}),this.ctx.lastPoint=new ge(wt.x,wt.y)},vt.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),sn.call(this,null,!0)},vt.prototype.quadraticCurveTo=function(Ze,_e,wt,Ht){if(isNaN(wt)||isNaN(Ht)||isNaN(Ze)||isNaN(_e))throw ii.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Wt=this.ctx.transform.applyToPoint(new ge(wt,Ht)),lr=this.ctx.transform.applyToPoint(new ge(Ze,_e));this.path.push({type:"qct",x1:lr.x,y1:lr.y,x:Wt.x,y:Wt.y}),this.ctx.lastPoint=new ge(Wt.x,Wt.y)},vt.prototype.bezierCurveTo=function(Ze,_e,wt,Ht,Wt,lr){if(isNaN(Wt)||isNaN(lr)||isNaN(Ze)||isNaN(_e)||isNaN(wt)||isNaN(Ht))throw ii.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var St=this.ctx.transform.applyToPoint(new ge(Wt,lr)),yr=this.ctx.transform.applyToPoint(new ge(Ze,_e)),Gr=this.ctx.transform.applyToPoint(new ge(wt,Ht));this.path.push({type:"bct",x1:yr.x,y1:yr.y,x2:Gr.x,y2:Gr.y,x:St.x,y:St.y}),this.ctx.lastPoint=new ge(St.x,St.y)},vt.prototype.arc=function(Ze,_e,wt,Ht,Wt,lr){if(isNaN(Ze)||isNaN(_e)||isNaN(wt)||isNaN(Ht)||isNaN(Wt))throw ii.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(lr=!!lr,!this.ctx.transform.isIdentity){var St=this.ctx.transform.applyToPoint(new ge(Ze,_e));Ze=St.x,_e=St.y;var yr=this.ctx.transform.applyToPoint(new ge(0,wt)),Gr=this.ctx.transform.applyToPoint(new ge(0,0));wt=Math.sqrt(Math.pow(yr.x-Gr.x,2)+Math.pow(yr.y-Gr.y,2))}Math.abs(Wt-Ht)>=2*Math.PI&&(Ht=0,Wt=2*Math.PI),this.path.push({type:"arc",x:Ze,y:_e,radius:wt,startAngle:Ht,endAngle:Wt,counterclockwise:lr})},vt.prototype.arcTo=function(Ze,_e,wt,Ht,Wt){throw new Error("arcTo not implemented.")},vt.prototype.rect=function(Ze,_e,wt,Ht){if(isNaN(Ze)||isNaN(_e)||isNaN(wt)||isNaN(Ht))throw ii.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Ze,_e),this.lineTo(Ze+wt,_e),this.lineTo(Ze+wt,_e+Ht),this.lineTo(Ze,_e+Ht),this.lineTo(Ze,_e),this.lineTo(Ze+wt,_e),this.lineTo(Ze,_e)},vt.prototype.fillRect=function(Ze,_e,wt,Ht){if(isNaN(Ze)||isNaN(_e)||isNaN(wt)||isNaN(Ht))throw ii.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ve.call(this)){var Wt={};this.lineCap!=="butt"&&(Wt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Wt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Ze,_e,wt,Ht),this.fill(),Wt.hasOwnProperty("lineCap")&&(this.lineCap=Wt.lineCap),Wt.hasOwnProperty("lineJoin")&&(this.lineJoin=Wt.lineJoin)}},vt.prototype.strokeRect=function(Ze,_e,wt,Ht){if(isNaN(Ze)||isNaN(_e)||isNaN(wt)||isNaN(Ht))throw ii.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");cr.call(this)||(this.beginPath(),this.rect(Ze,_e,wt,Ht),this.stroke())},vt.prototype.clearRect=function(Ze,_e,wt,Ht){if(isNaN(Ze)||isNaN(_e)||isNaN(wt)||isNaN(Ht))throw ii.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Ze,_e,wt,Ht))},vt.prototype.save=function(Ze){Ze=typeof Ze!="boolean"||Ze;for(var _e=this.pdf.internal.getCurrentPageInfo().pageNumber,wt=0;wt<this.pdf.internal.getNumberOfPages();wt++)this.pdf.setPage(wt+1),this.pdf.internal.out("q");if(this.pdf.setPage(_e),Ze){this.ctx.fontSize=this.pdf.internal.getFontSize();var Ht=new yt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Ht}},vt.prototype.restore=function(Ze){Ze=typeof Ze!="boolean"||Ze;for(var _e=this.pdf.internal.getCurrentPageInfo().pageNumber,wt=0;wt<this.pdf.internal.getNumberOfPages();wt++)this.pdf.setPage(wt+1),this.pdf.internal.out("Q");this.pdf.setPage(_e),Ze&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},vt.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Pt=function(Ze){var _e,wt,Ht,Wt;if(Ze.isCanvasGradient===!0&&(Ze=Ze.getColor()),!Ze)return{r:0,g:0,b:0,a:0,style:Ze};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Ze))_e=0,wt=0,Ht=0,Wt=0;else{var lr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Ze);if(lr!==null)_e=parseInt(lr[1]),wt=parseInt(lr[2]),Ht=parseInt(lr[3]),Wt=1;else if((lr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Ze))!==null)_e=parseInt(lr[1]),wt=parseInt(lr[2]),Ht=parseInt(lr[3]),Wt=parseFloat(lr[4]);else{if(Wt=1,typeof Ze=="string"&&Ze.charAt(0)!=="#"){var St=new xi(Ze);Ze=St.ok?St.toHex():"#000000"}Ze.length===4?(_e=Ze.substring(1,2),_e+=_e,wt=Ze.substring(2,3),wt+=wt,Ht=Ze.substring(3,4),Ht+=Ht):(_e=Ze.substring(1,3),wt=Ze.substring(3,5),Ht=Ze.substring(5,7)),_e=parseInt(_e,16),wt=parseInt(wt,16),Ht=parseInt(Ht,16)}}return{r:_e,g:wt,b:Ht,a:Wt,style:Ze}},Ve=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},cr=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};vt.prototype.fillText=function(Ze,_e,wt,Ht){if(isNaN(_e)||isNaN(wt)||typeof Ze!="string")throw ii.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Ht=isNaN(Ht)?void 0:Ht,!Ve.call(this)){var Wt=ft(this.ctx.transform.rotation),lr=this.ctx.transform.scaleX;nr.call(this,{text:Ze,x:_e,y:wt,scale:lr,angle:Wt,align:this.textAlign,maxWidth:Ht})}},vt.prototype.strokeText=function(Ze,_e,wt,Ht){if(isNaN(_e)||isNaN(wt)||typeof Ze!="string")throw ii.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!cr.call(this)){Ht=isNaN(Ht)?void 0:Ht;var Wt=ft(this.ctx.transform.rotation),lr=this.ctx.transform.scaleX;nr.call(this,{text:Ze,x:_e,y:wt,scale:lr,renderingMode:"stroke",angle:Wt,align:this.textAlign,maxWidth:Ht})}},vt.prototype.measureText=function(Ze){if(typeof Ze!="string")throw ii.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _e=this.pdf,wt=this.pdf.internal.scaleFactor,Ht=_e.internal.getFontSize(),Wt=_e.getStringUnitWidth(Ze)*Ht/_e.internal.scaleFactor,lr=function(St){var yr=(St=St||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return yr}}),this};return new lr({width:Wt*=Math.round(96*wt/72*1e4)/1e4})},vt.prototype.scale=function(Ze,_e){if(isNaN(Ze)||isNaN(_e))throw ii.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var wt=new ke(Ze,0,0,_e,0,0);this.ctx.transform=this.ctx.transform.multiply(wt)},vt.prototype.rotate=function(Ze){if(isNaN(Ze))throw ii.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _e=new ke(Math.cos(Ze),Math.sin(Ze),-Math.sin(Ze),Math.cos(Ze),0,0);this.ctx.transform=this.ctx.transform.multiply(_e)},vt.prototype.translate=function(Ze,_e){if(isNaN(Ze)||isNaN(_e))throw ii.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var wt=new ke(1,0,0,1,Ze,_e);this.ctx.transform=this.ctx.transform.multiply(wt)},vt.prototype.transform=function(Ze,_e,wt,Ht,Wt,lr){if(isNaN(Ze)||isNaN(_e)||isNaN(wt)||isNaN(Ht)||isNaN(Wt)||isNaN(lr))throw ii.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var St=new ke(Ze,_e,wt,Ht,Wt,lr);this.ctx.transform=this.ctx.transform.multiply(St)},vt.prototype.setTransform=function(Ze,_e,wt,Ht,Wt,lr){Ze=isNaN(Ze)?1:Ze,_e=isNaN(_e)?0:_e,wt=isNaN(wt)?0:wt,Ht=isNaN(Ht)?1:Ht,Wt=isNaN(Wt)?0:Wt,lr=isNaN(lr)?0:lr,this.ctx.transform=new ke(Ze,_e,wt,Ht,Wt,lr)};var tr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};vt.prototype.drawImage=function(Ze,_e,wt,Ht,Wt,lr,St,yr,Gr){var $r=this.pdf.getImageProperties(Ze),An=1,Dn=1,ni=1,kr=1;Ht!==void 0&&yr!==void 0&&(ni=yr/Ht,kr=Gr/Wt,An=$r.width/Ht*yr/Ht,Dn=$r.height/Wt*Gr/Wt),lr===void 0&&(lr=_e,St=wt,_e=0,wt=0),Ht!==void 0&&yr===void 0&&(yr=Ht,Gr=Wt),Ht===void 0&&yr===void 0&&(yr=$r.width,Gr=$r.height);for(var ir,Si=this.ctx.transform.decompose(),Fn=ft(Si.rotate.shx),ln=new ke,dn=(ln=(ln=(ln=ln.multiply(Si.translate)).multiply(Si.skew)).multiply(Si.scale)).applyToRectangle(new Le(lr-_e*ni,St-wt*kr,Ht*An,Wt*Dn)),rn=dr.call(this,dn),Cn=[],si=0;si<rn.length;si+=1)Cn.indexOf(rn[si])===-1&&Cn.push(rn[si]);if(Mr(Cn),this.autoPaging)for(var Fi=Cn[0],He=Cn[Cn.length-1],c=Fi;c<He+1;c++){this.pdf.setPage(c);var w=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],C=c===1?this.posY+this.margin[0]:this.margin[0],K=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Be=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],je=c===1?0:K+(c-2)*Be;if(this.ctx.clip_path.length!==0){var xt=this.path;ir=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pr(ir,this.posX+this.margin[3],-je+C+this.ctx.prevPageLastElemOffset),Rn.call(this,"fill",!0),this.path=xt}var bt=JSON.parse(JSON.stringify(dn));bt=pr([bt],this.posX+this.margin[3],-je+C+this.ctx.prevPageLastElemOffset)[0];var Xt=(c>Fi||c<He)&&tr.call(this);Xt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],w,Be,null).clip().discardPath()),this.pdf.addImage(Ze,"JPEG",bt.x,bt.y,bt.w,bt.h,null,null,Fn),Xt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Ze,"JPEG",dn.x,dn.y,dn.w,dn.h,null,null,Fn)};var dr=function(Ze,_e,wt){var Ht=[];_e=_e||this.pdf.internal.pageSize.width,wt=wt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Wt=this.posY+this.ctx.prevPageLastElemOffset;switch(Ze.type){default:case"mt":case"lt":Ht.push(Math.floor((Ze.y+Wt)/wt)+1);break;case"arc":Ht.push(Math.floor((Ze.y+Wt-Ze.radius)/wt)+1),Ht.push(Math.floor((Ze.y+Wt+Ze.radius)/wt)+1);break;case"qct":var lr=Ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ze.x1,Ze.y1,Ze.x,Ze.y);Ht.push(Math.floor((lr.y+Wt)/wt)+1),Ht.push(Math.floor((lr.y+lr.h+Wt)/wt)+1);break;case"bct":var St=$t(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ze.x1,Ze.y1,Ze.x2,Ze.y2,Ze.x,Ze.y);Ht.push(Math.floor((St.y+Wt)/wt)+1),Ht.push(Math.floor((St.y+St.h+Wt)/wt)+1);break;case"rect":Ht.push(Math.floor((Ze.y+Wt)/wt)+1),Ht.push(Math.floor((Ze.y+Ze.h+Wt)/wt)+1)}for(var yr=0;yr<Ht.length;yr+=1)for(;this.pdf.internal.getNumberOfPages()<Ht[yr];)Qt.call(this);return Ht},Qt=function(){var Ze=this.fillStyle,_e=this.strokeStyle,wt=this.font,Ht=this.lineCap,Wt=this.lineWidth,lr=this.lineJoin;this.pdf.addPage(),this.fillStyle=Ze,this.strokeStyle=_e,this.font=wt,this.lineCap=Ht,this.lineWidth=Wt,this.lineJoin=lr},pr=function(Ze,_e,wt){for(var Ht=0;Ht<Ze.length;Ht++)switch(Ze[Ht].type){case"bct":Ze[Ht].x2+=_e,Ze[Ht].y2+=wt;case"qct":Ze[Ht].x1+=_e,Ze[Ht].y1+=wt;case"mt":case"lt":case"arc":default:Ze[Ht].x+=_e,Ze[Ht].y+=wt}return Ze},Mr=function(Ze){return Ze.sort(function(_e,wt){return _e-wt})},sn=function(Ze,_e){for(var wt,Ht,Wt=this.fillStyle,lr=this.strokeStyle,St=this.lineCap,yr=this.lineWidth,Gr=Math.abs(yr*this.ctx.transform.scaleX),$r=this.lineJoin,An=JSON.parse(JSON.stringify(this.path)),Dn=JSON.parse(JSON.stringify(this.path)),ni=[],kr=0;kr<Dn.length;kr++)if(Dn[kr].x!==void 0)for(var ir=dr.call(this,Dn[kr]),Si=0;Si<ir.length;Si+=1)ni.indexOf(ir[Si])===-1&&ni.push(ir[Si]);for(var Fn=0;Fn<ni.length;Fn++)for(;this.pdf.internal.getNumberOfPages()<ni[Fn];)Qt.call(this);if(Mr(ni),this.autoPaging)for(var ln=ni[0],dn=ni[ni.length-1],rn=ln;rn<dn+1;rn++){this.pdf.setPage(rn),this.fillStyle=Wt,this.strokeStyle=lr,this.lineCap=St,this.lineWidth=Gr,this.lineJoin=$r;var Cn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],si=rn===1?this.posY+this.margin[0]:this.margin[0],Fi=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],He=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],c=rn===1?0:Fi+(rn-2)*He;if(this.ctx.clip_path.length!==0){var w=this.path;wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pr(wt,this.posX+this.margin[3],-c+si+this.ctx.prevPageLastElemOffset),Rn.call(this,Ze,!0),this.path=w}if(Ht=JSON.parse(JSON.stringify(An)),this.path=pr(Ht,this.posX+this.margin[3],-c+si+this.ctx.prevPageLastElemOffset),_e===!1||rn===0){var C=(rn>ln||rn<dn)&&tr.call(this);C&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Cn,He,null).clip().discardPath()),Rn.call(this,Ze,_e),C&&this.pdf.restoreGraphicsState()}this.lineWidth=yr}else this.lineWidth=Gr,Rn.call(this,Ze,_e),this.lineWidth=yr;this.path=An},Rn=function(Ze,_e){if((Ze!=="stroke"||_e||!cr.call(this))&&(Ze==="stroke"||_e||!Ve.call(this))){for(var wt,Ht,Wt=[],lr=this.path,St=0;St<lr.length;St++){var yr=lr[St];switch(yr.type){case"begin":Wt.push({begin:!0});break;case"close":Wt.push({close:!0});break;case"mt":Wt.push({start:yr,deltas:[],abs:[]});break;case"lt":var Gr=Wt.length;if(lr[St-1]&&!isNaN(lr[St-1].x)&&(wt=[yr.x-lr[St-1].x,yr.y-lr[St-1].y],Gr>0)){for(;Gr>=0;Gr--)if(Wt[Gr-1].close!==!0&&Wt[Gr-1].begin!==!0){Wt[Gr-1].deltas.push(wt),Wt[Gr-1].abs.push(yr);break}}break;case"bct":wt=[yr.x1-lr[St-1].x,yr.y1-lr[St-1].y,yr.x2-lr[St-1].x,yr.y2-lr[St-1].y,yr.x-lr[St-1].x,yr.y-lr[St-1].y],Wt[Wt.length-1].deltas.push(wt);break;case"qct":var $r=lr[St-1].x+2/3*(yr.x1-lr[St-1].x),An=lr[St-1].y+2/3*(yr.y1-lr[St-1].y),Dn=yr.x+2/3*(yr.x1-yr.x),ni=yr.y+2/3*(yr.y1-yr.y),kr=yr.x,ir=yr.y;wt=[$r-lr[St-1].x,An-lr[St-1].y,Dn-lr[St-1].x,ni-lr[St-1].y,kr-lr[St-1].x,ir-lr[St-1].y],Wt[Wt.length-1].deltas.push(wt);break;case"arc":Wt.push({deltas:[],abs:[],arc:!0}),Array.isArray(Wt[Wt.length-1].abs)&&Wt[Wt.length-1].abs.push(yr)}}Ht=_e?null:Ze==="stroke"?"stroke":"fill";for(var Si=!1,Fn=0;Fn<Wt.length;Fn++)if(Wt[Fn].arc)for(var ln=Wt[Fn].abs,dn=0;dn<ln.length;dn++){var rn=ln[dn];rn.type==="arc"?Sr.call(this,rn.x,rn.y,rn.radius,rn.startAngle,rn.endAngle,rn.counterclockwise,void 0,_e,!Si):ye.call(this,rn.x,rn.y),Si=!0}else if(Wt[Fn].close===!0)this.pdf.internal.out("h"),Si=!1;else if(Wt[Fn].begin!==!0){var Cn=Wt[Fn].start.x,si=Wt[Fn].start.y;xe.call(this,Wt[Fn].deltas,Cn,si),Si=!0}Ht&&xn.call(this,Ht),_e&&Nn.call(this)}},di=function(Ze){var _e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,wt=_e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Ze-wt;case"top":return Ze+_e-wt;case"hanging":return Ze+_e-2*wt;case"middle":return Ze+_e/2-wt;case"ideographic":return Ze;case"alphabetic":default:return Ze}},pn=function(Ze){return Ze+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};vt.prototype.createLinearGradient=function(){var Ze=function(){};return Ze.colorStops=[],Ze.addColorStop=function(_e,wt){this.colorStops.push([_e,wt])},Ze.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Ze.isCanvasGradient=!0,Ze},vt.prototype.createPattern=function(){return this.createLinearGradient()},vt.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Sr=function(Ze,_e,wt,Ht,Wt,lr,St,yr,Gr){for(var $r=st.call(this,wt,Ht,Wt,lr),An=0;An<$r.length;An++){var Dn=$r[An];An===0&&(Gr?er.call(this,Dn.x1+Ze,Dn.y1+_e):ye.call(this,Dn.x1+Ze,Dn.y1+_e)),et.call(this,Ze,_e,Dn.x2,Dn.y2,Dn.x3,Dn.y3,Dn.x4,Dn.y4)}yr?Nn.call(this):xn.call(this,St)},xn=function(Ze){switch(Ze){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Nn=function(){this.pdf.clip(),this.pdf.discardPath()},er=function(Ze,_e){this.pdf.internal.out(y(Ze)+" "+M(_e)+" m")},nr=function(Ze){var _e;switch(Ze.align){case"right":case"end":_e="right";break;case"center":_e="center";break;case"left":case"start":default:_e="left"}var wt=this.pdf.getTextDimensions(Ze.text),Ht=di.call(this,Ze.y),Wt=pn.call(this,Ht)-wt.h,lr=this.ctx.transform.applyToPoint(new ge(Ze.x,Ht)),St=this.ctx.transform.decompose(),yr=new ke;yr=(yr=(yr=yr.multiply(St.translate)).multiply(St.skew)).multiply(St.scale);for(var Gr,$r,An,Dn=this.ctx.transform.applyToRectangle(new Le(Ze.x,Ht,wt.w,wt.h)),ni=yr.applyToRectangle(new Le(Ze.x,Wt,wt.w,wt.h)),kr=dr.call(this,ni),ir=[],Si=0;Si<kr.length;Si+=1)ir.indexOf(kr[Si])===-1&&ir.push(kr[Si]);if(Mr(ir),this.autoPaging)for(var Fn=ir[0],ln=ir[ir.length-1],dn=Fn;dn<ln+1;dn++){this.pdf.setPage(dn);var rn=dn===1?this.posY+this.margin[0]:this.margin[0],Cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],si=this.pdf.internal.pageSize.height-this.margin[2],Fi=si-this.margin[0],He=this.pdf.internal.pageSize.width-this.margin[1],c=He-this.margin[3],w=dn===1?0:Cn+(dn-2)*Fi;if(this.ctx.clip_path.length!==0){var C=this.path;Gr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pr(Gr,this.posX+this.margin[3],-1*w+rn),Rn.call(this,"fill",!0),this.path=C}var K=pr([JSON.parse(JSON.stringify(ni))],this.posX+this.margin[3],-w+rn+this.ctx.prevPageLastElemOffset)[0];Ze.scale>=.01&&($r=this.pdf.internal.getFontSize(),this.pdf.setFontSize($r*Ze.scale),An=this.lineWidth,this.lineWidth=An*Ze.scale);var Be=this.autoPaging!=="text";if(Be||K.y+K.h<=si){if(Be||K.y>=rn&&K.x<=He){var je=Be?Ze.text:this.pdf.splitTextToSize(Ze.text,Ze.maxWidth||He-K.x)[0],xt=pr([JSON.parse(JSON.stringify(Dn))],this.posX+this.margin[3],-w+rn+this.ctx.prevPageLastElemOffset)[0],bt=Be&&(dn>Fn||dn<ln)&&tr.call(this);bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],c,Fi,null).clip().discardPath()),this.pdf.text(je,xt.x,xt.y,{angle:Ze.angle,align:_e,renderingMode:Ze.renderingMode}),bt&&this.pdf.restoreGraphicsState()}}else K.y<si&&(this.ctx.prevPageLastElemOffset+=si-K.y);Ze.scale>=.01&&(this.pdf.setFontSize($r),this.lineWidth=An)}else Ze.scale>=.01&&($r=this.pdf.internal.getFontSize(),this.pdf.setFontSize($r*Ze.scale),An=this.lineWidth,this.lineWidth=An*Ze.scale),this.pdf.text(Ze.text,lr.x+this.posX,lr.y+this.posY,{angle:Ze.angle,align:_e,renderingMode:Ze.renderingMode,maxWidth:Ze.maxWidth}),Ze.scale>=.01&&(this.pdf.setFontSize($r),this.lineWidth=An)},ye=function(Ze,_e,wt,Ht){wt=wt||0,Ht=Ht||0,this.pdf.internal.out(y(Ze+wt)+" "+M(_e+Ht)+" l")},xe=function(Ze,_e,wt){return this.pdf.lines(Ze,_e,wt,null,null)},et=function(Ze,_e,wt,Ht,Wt,lr,St,yr){this.pdf.internal.out([u(ne(wt+Ze)),u(W(Ht+_e)),u(ne(Wt+Ze)),u(W(lr+_e)),u(ne(St+Ze)),u(W(yr+_e)),"c"].join(" "))},st=function(Ze,_e,wt,Ht){for(var Wt=2*Math.PI,lr=Math.PI/2;_e>wt;)_e-=Wt;var St=Math.abs(wt-_e);St<Wt&&Ht&&(St=Wt-St);for(var yr=[],Gr=Ht?-1:1,$r=_e;St>1e-5;){var An=$r+Gr*Math.min(St,lr);yr.push(gt.call(this,Ze,$r,An)),St-=Math.abs(An-$r),$r=An}return yr},gt=function(Ze,_e,wt){var Ht=(wt-_e)/2,Wt=Ze*Math.cos(Ht),lr=Ze*Math.sin(Ht),St=Wt,yr=-lr,Gr=St*St+yr*yr,$r=Gr+St*Wt+yr*lr,An=4/3*(Math.sqrt(2*Gr*$r)-$r)/(St*lr-yr*Wt),Dn=St-An*yr,ni=yr+An*St,kr=Dn,ir=-ni,Si=Ht+_e,Fn=Math.cos(Si),ln=Math.sin(Si);return{x1:Ze*Math.cos(_e),y1:Ze*Math.sin(_e),x2:Dn*Fn-ni*ln,y2:Dn*ln+ni*Fn,x3:kr*Fn-ir*ln,y3:kr*ln+ir*Fn,x4:Ze*Math.cos(wt),y4:Ze*Math.sin(wt)}},ft=function(Ze){return 180*Ze/Math.PI},Ut=function(Ze,_e,wt,Ht,Wt,lr){var St=Ze+.5*(wt-Ze),yr=_e+.5*(Ht-_e),Gr=Wt+.5*(wt-Wt),$r=lr+.5*(Ht-lr),An=Math.min(Ze,Wt,St,Gr),Dn=Math.max(Ze,Wt,St,Gr),ni=Math.min(_e,lr,yr,$r),kr=Math.max(_e,lr,yr,$r);return new Le(An,ni,Dn-An,kr-ni)},$t=function(Ze,_e,wt,Ht,Wt,lr,St,yr){var Gr,$r,An,Dn,ni,kr,ir,Si,Fn,ln,dn,rn,Cn,si,Fi=wt-Ze,He=Ht-_e,c=Wt-wt,w=lr-Ht,C=St-Wt,K=yr-lr;for($r=0;$r<41;$r++)Fn=(ir=(An=Ze+(Gr=$r/40)*Fi)+Gr*((ni=wt+Gr*c)-An))+Gr*(ni+Gr*(Wt+Gr*C-ni)-ir),ln=(Si=(Dn=_e+Gr*He)+Gr*((kr=Ht+Gr*w)-Dn))+Gr*(kr+Gr*(lr+Gr*K-kr)-Si),$r==0?(dn=Fn,rn=ln,Cn=Fn,si=ln):(dn=Math.min(dn,Fn),rn=Math.min(rn,ln),Cn=Math.max(Cn,Fn),si=Math.max(si,ln));return new Le(Math.round(dn),Math.round(rn),Math.round(Cn-dn),Math.round(si-rn))},sr=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ze,_e,wt=(Ze=this.ctx.lineDash,_e=this.ctx.lineDashOffset,JSON.stringify({lineDash:Ze,lineDashOffset:_e}));this.prevLineDash!==wt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=wt)}}})(Ni.API),function(b){var u=function(W){var ge,Le,ke,rt,yt,vt,Pt,Ve,cr,tr;for(/[^\x00-\xFF]/.test(W),Le=[],ke=0,rt=(W+=ge="\0\0\0\0".slice(W.length%4||4)).length;rt>ke;ke+=4)(yt=(W.charCodeAt(ke)<<24)+(W.charCodeAt(ke+1)<<16)+(W.charCodeAt(ke+2)<<8)+W.charCodeAt(ke+3))!==0?(vt=(yt=((yt=((yt=((yt=(yt-(tr=yt%85))/85)-(cr=yt%85))/85)-(Ve=yt%85))/85)-(Pt=yt%85))/85)%85,Le.push(vt+33,Pt+33,Ve+33,cr+33,tr+33)):Le.push(122);return function(dr,Qt){for(var pr=Qt;pr>0;pr--)dr.pop()}(Le,ge.length),String.fromCharCode.apply(String,Le)+"~>"},y=function(W){var ge,Le,ke,rt,yt,vt=String,Pt="length",Ve=255,cr="charCodeAt",tr="slice",dr="replace";for(W[tr](-2),W=W[tr](0,-2)[dr](/\s/g,"")[dr]("z","!!!!!"),ke=[],rt=0,yt=(W+=ge="uuuuu"[tr](W[Pt]%5||5))[Pt];yt>rt;rt+=5)Le=52200625*(W[cr](rt)-33)+614125*(W[cr](rt+1)-33)+7225*(W[cr](rt+2)-33)+85*(W[cr](rt+3)-33)+(W[cr](rt+4)-33),ke.push(Ve&Le>>24,Ve&Le>>16,Ve&Le>>8,Ve&Le);return function(Qt,pr){for(var Mr=pr;Mr>0;Mr--)Qt.pop()}(ke,ge[Pt]),vt.fromCharCode.apply(vt,ke)},M=function(W){var ge=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((W=W.replace(/\s/g,"")).indexOf(">")!==-1&&(W=W.substr(0,W.indexOf(">"))),W.length%2&&(W+="0"),ge.test(W)===!1)return"";for(var Le="",ke=0;ke<W.length;ke+=2)Le+=String.fromCharCode("0x"+(W[ke]+W[ke+1]));return Le},ne=function(W){for(var ge=new Uint8Array(W.length),Le=W.length;Le--;)ge[Le]=W.charCodeAt(Le);return W=(ge=$n(ge)).reduce(function(ke,rt){return ke+String.fromCharCode(rt)},"")};b.processDataByFilters=function(W,ge){var Le=0,ke=W||"",rt=[];for(typeof(ge=ge||[])=="string"&&(ge=[ge]),Le=0;Le<ge.length;Le+=1)switch(ge[Le]){case"ASCII85Decode":case"/ASCII85Decode":ke=y(ke),rt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ke=u(ke),rt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ke=M(ke),rt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ke=ke.split("").map(function(yt){return("0"+yt.charCodeAt().toString(16)).slice(-2)}).join("")+">",rt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ke=ne(ke),rt.push("/FlateDecode");break;default:throw new Error('The filter: "'+ge[Le]+'" is not implemented')}return{data:ke,reverseChain:rt.reverse().join(" ")}}}(Ni.API),function(b){b.loadFile=function(u,y,M){return function(ne,W,ge){W=W!==!1,ge=typeof ge=="function"?ge:function(){};var Le=void 0;try{Le=function(ke,rt,yt){var vt=new XMLHttpRequest,Pt=0,Ve=function(cr){var tr=cr.length,dr=[],Qt=String.fromCharCode;for(Pt=0;Pt<tr;Pt+=1)dr.push(Qt(255&cr.charCodeAt(Pt)));return dr.join("")};if(vt.open("GET",ke,!rt),vt.overrideMimeType("text/plain; charset=x-user-defined"),rt===!1&&(vt.onload=function(){vt.status===200?yt(Ve(this.responseText)):yt(void 0)}),vt.send(null),rt&&vt.status===200)return Ve(vt.responseText)}(ne,W,ge)}catch(ke){}return Le}(u,y,M)},b.loadImageFile=b.loadFile}(Ni.API),function(b){function u(){return(hn.html2canvas?Promise.resolve(hn.html2canvas):Promise.resolve().then(g.t.bind(g,64270,23))).catch(function(ge){return Promise.reject(new Error("Could not load html2canvas: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}function y(){return(hn.DOMPurify?Promise.resolve(hn.DOMPurify):g.e(7631).then(g.bind(g,87631))).catch(function(ge){return Promise.reject(new Error("Could not load dompurify: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}var M=function(ge){var Le=(0,we.Z)(ge);return Le==="undefined"?"undefined":Le==="string"||ge instanceof String?"string":Le==="number"||ge instanceof Number?"number":Le==="function"||ge instanceof Function?"function":ge&&ge.constructor===Array?"array":ge&&ge.nodeType===1?"element":Le==="object"?"object":"unknown"},ne=function(ge,Le){var ke=document.createElement(ge);for(var rt in Le.className&&(ke.className=Le.className),Le.innerHTML&&Le.dompurify&&(ke.innerHTML=Le.dompurify.sanitize(Le.innerHTML)),Le.style)ke.style[rt]=Le.style[rt];return ke},W=function ge(Le){var ke=Object.assign(ge.convert(Promise.resolve()),JSON.parse(JSON.stringify(ge.template))),rt=ge.convert(Promise.resolve(),ke);return rt=(rt=rt.setProgress(1,ge,1,[ge])).set(Le)};(W.prototype=Object.create(Promise.prototype)).constructor=W,W.convert=function(ge,Le){return ge.__proto__=Le||W.prototype,ge},W.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},W.prototype.from=function(ge,Le){return this.then(function(){switch(Le=Le||function(ke){switch(M(ke)){case"string":return"string";case"element":return ke.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ge)){case"string":return this.then(y).then(function(ke){return this.set({src:ne("div",{innerHTML:ge,dompurify:ke})})});case"element":return this.set({src:ge});case"canvas":return this.set({canvas:ge});case"img":return this.set({img:ge});default:return this.error("Unknown source type.")}})},W.prototype.to=function(ge){switch(ge){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},W.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var ge={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Le=function ke(rt,yt){for(var vt=rt.nodeType===3?document.createTextNode(rt.nodeValue):rt.cloneNode(!1),Pt=rt.firstChild;Pt;Pt=Pt.nextSibling)yt!==!0&&Pt.nodeType===1&&Pt.nodeName==="SCRIPT"||vt.appendChild(ke(Pt,yt));return rt.nodeType===1&&(rt.nodeName==="CANVAS"?(vt.width=rt.width,vt.height=rt.height,vt.getContext("2d").drawImage(rt,0,0)):rt.nodeName!=="TEXTAREA"&&rt.nodeName!=="SELECT"||(vt.value=rt.value),vt.addEventListener("load",function(){vt.scrollTop=rt.scrollTop,vt.scrollLeft=rt.scrollLeft},!0)),vt}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Le.tagName==="BODY"&&(ge.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ne("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ne("div",{className:"html2pdf__container",style:ge}),this.prop.container.appendChild(Le),this.prop.container.firstChild.appendChild(ne("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},W.prototype.toCanvas=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(u).then(function(Le){var ke=Object.assign({},this.opt.html2canvas);return delete ke.onrendered,Le(this.prop.container,ke)}).then(function(Le){(this.opt.html2canvas.onrendered||function(){})(Le),this.prop.canvas=Le,document.body.removeChild(this.prop.overlay)})},W.prototype.toContext2d=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(u).then(function(Le){var ke=this.opt.jsPDF,rt=this.opt.fontFaces,yt=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,vt=Object.assign({async:!0,allowTaint:!0,scale:yt,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete vt.onrendered,ke.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ke.context2d.posX=this.opt.x,ke.context2d.posY=this.opt.y,ke.context2d.margin=this.opt.margin,ke.context2d.fontFaces=rt,rt)for(var Pt=0;Pt<rt.length;++Pt){var Ve=rt[Pt],cr=Ve.src.find(function(tr){return tr.format==="truetype"});cr&&ke.addFont(cr.url,Ve.ref.name,Ve.ref.style)}return vt.windowHeight=vt.windowHeight||0,vt.windowHeight=vt.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):vt.windowHeight,ke.context2d.save(!0),Le(this.prop.container,vt)}).then(function(Le){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Le),this.prop.canvas=Le,document.body.removeChild(this.prop.overlay)})},W.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ge=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ge})},W.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},W.prototype.output=function(ge,Le,ke){return(ke=ke||"pdf").toLowerCase()==="img"||ke.toLowerCase()==="image"?this.outputImg(ge,Le):this.outputPdf(ge,Le)},W.prototype.outputPdf=function(ge,Le){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ge,Le)})},W.prototype.outputImg=function(ge){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ge){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ge+'" is not supported.'}})},W.prototype.save=function(ge){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ge?{filename:ge}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},W.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},W.prototype.set=function(ge){if(M(ge)!=="object")return this;var Le=Object.keys(ge||{}).map(function(ke){if(ke in W.template.prop)return function(){this.prop[ke]=ge[ke]};switch(ke){case"margin":return this.setMargin.bind(this,ge.margin);case"jsPDF":return function(){return this.opt.jsPDF=ge.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ge.pageSize);default:return function(){this.opt[ke]=ge[ke]}}},this);return this.then(function(){return this.thenList(Le)})},W.prototype.get=function(ge,Le){return this.then(function(){var ke=ge in W.template.prop?this.prop[ge]:this.opt[ge];return Le?Le(ke):ke})},W.prototype.setMargin=function(ge){return this.then(function(){switch(M(ge)){case"number":ge=[ge,ge,ge,ge];case"array":if(ge.length===2&&(ge=[ge[0],ge[1],ge[0],ge[1]]),ge.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ge}).then(this.setPageSize)},W.prototype.setPageSize=function(ge){function Le(ke,rt){return Math.floor(ke*rt/72*96)}return this.then(function(){(ge=ge||Ni.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ge.inner={width:ge.width-this.opt.margin[1]-this.opt.margin[3],height:ge.height-this.opt.margin[0]-this.opt.margin[2]},ge.inner.px={width:Le(ge.inner.width,ge.k),height:Le(ge.inner.height,ge.k)},ge.inner.ratio=ge.inner.height/ge.inner.width),this.prop.pageSize=ge})},W.prototype.setProgress=function(ge,Le,ke,rt){return ge!=null&&(this.progress.val=ge),Le!=null&&(this.progress.state=Le),ke!=null&&(this.progress.n=ke),rt!=null&&(this.progress.stack=rt),this.progress.ratio=this.progress.val/this.progress.state,this},W.prototype.updateProgress=function(ge,Le,ke,rt){return this.setProgress(ge?this.progress.val+ge:null,Le||null,ke?this.progress.n+ke:null,rt?this.progress.stack.concat(rt):null)},W.prototype.then=function(ge,Le){var ke=this;return this.thenCore(ge,Le,function(rt,yt){return ke.updateProgress(null,null,1,[rt]),Promise.prototype.then.call(this,function(vt){return ke.updateProgress(null,rt),vt}).then(rt,yt).then(function(vt){return ke.updateProgress(1),vt})})},W.prototype.thenCore=function(ge,Le,ke){ke=ke||Promise.prototype.then,ge&&(ge=ge.bind(this)),Le&&(Le=Le.bind(this));var rt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:W.convert(Object.assign({},this),Promise.prototype),yt=ke.call(rt,ge,Le);return W.convert(yt,this.__proto__)},W.prototype.thenExternal=function(ge,Le){return Promise.prototype.then.call(this,ge,Le)},W.prototype.thenList=function(ge){var Le=this;return ge.forEach(function(ke){Le=Le.thenCore(ke)}),Le},W.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var Le=Promise.prototype.catch.call(this,ge);return W.convert(Le,this)},W.prototype.catchExternal=function(ge){return Promise.prototype.catch.call(this,ge)},W.prototype.error=function(ge){return this.then(function(){throw new Error(ge)})},W.prototype.using=W.prototype.set,W.prototype.saveAs=W.prototype.save,W.prototype.export=W.prototype.output,W.prototype.run=W.prototype.then,Ni.getPageSize=function(ge,Le,ke){if((0,we.Z)(ge)==="object"){var rt=ge;ge=rt.orientation,Le=rt.unit||Le,ke=rt.format||ke}Le=Le||"mm",ke=ke||"a4",ge=(""+(ge||"P")).toLowerCase();var yt,vt=(""+ke).toLowerCase(),Pt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Le){case"pt":yt=1;break;case"mm":yt=72/25.4;break;case"cm":yt=72/2.54;break;case"in":yt=72;break;case"px":yt=.75;break;case"pc":case"em":yt=12;break;case"ex":yt=6;break;default:throw"Invalid unit: "+Le}var Ve,cr=0,tr=0;if(Pt.hasOwnProperty(vt))cr=Pt[vt][1]/yt,tr=Pt[vt][0]/yt;else try{cr=ke[1],tr=ke[0]}catch(dr){throw new Error("Invalid format: "+ke)}if(ge==="p"||ge==="portrait")ge="p",tr>cr&&(Ve=tr,tr=cr,cr=Ve);else{if(ge!=="l"&&ge!=="landscape")throw"Invalid orientation: "+ge;ge="l",cr>tr&&(Ve=tr,tr=cr,cr=Ve)}return{width:tr,height:cr,unit:Le,k:yt,orientation:ge}},b.html=function(ge,Le){(Le=Le||{}).callback=Le.callback||function(){},Le.html2canvas=Le.html2canvas||{},Le.html2canvas.canvas=Le.html2canvas.canvas||this.canvas,Le.jsPDF=Le.jsPDF||this,Le.fontFaces=Le.fontFaces?Le.fontFaces.map(fo):null;var ke=new W(Le);return Le.worker?ke:ke.from(ge).doCallback()}}(Ni.API),Ni.API.addJS=function(b){return Po=b,this.internal.events.subscribe("postPutResources",function(){Ys=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ys+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ao=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Po+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ys!==void 0&&ao!==void 0&&this.internal.out("/Names <</JavaScript "+Ys+" 0 R>>")}),this},function(b){var u;b.events.push(["postPutResources",function(){var y=this,M=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ne=y.outline.render().split(/\r\n/),W=0;W<ne.length;W++){var ge=ne[W],Le=M.exec(ge);if(Le!=null){var ke=Le[1];y.internal.newObjectDeferredBegin(ke,!1)}y.internal.write(ge)}if(this.outline.createNamedDestinations){var rt=this.internal.pages.length,yt=[];for(W=0;W<rt;W++){var vt=y.internal.newObject();yt.push(vt);var Pt=y.internal.getPageInfo(W+1);y.internal.write("<< /D["+Pt.objId+" 0 R /XYZ null null null]>> endobj")}var Ve=y.internal.newObject();for(y.internal.write("<< /Names [ "),W=0;W<yt.length;W++)y.internal.write("(page_"+(W+1)+")"+yt[W]+" 0 R");y.internal.write(" ] >>","endobj"),u=y.internal.newObject(),y.internal.write("<< /Dests "+Ve+" 0 R"),y.internal.write(">>","endobj")}}]),b.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+u+" 0 R"))}]),b.events.push(["initialized",function(){var y=this;y.outline={createNamedDestinations:!1,root:{children:[]}},y.outline.add=function(M,ne,W){var ge={title:ne,options:W,children:[]};return M==null&&(M=this.root),M.children.push(ge),ge},y.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=y,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},y.outline.genIds_r=function(M){M.id=y.internal.newObjectDeferred();for(var ne=0;ne<M.children.length;ne++)this.genIds_r(M.children[ne])},y.outline.renderRoot=function(M){this.objStart(M),this.line("/Type /Outlines"),M.children.length>0&&(this.line("/First "+this.makeRef(M.children[0])),this.line("/Last "+this.makeRef(M.children[M.children.length-1]))),this.line("/Count "+this.count_r({count:0},M)),this.objEnd()},y.outline.renderItems=function(M){for(var ne=this.ctx.pdf.internal.getVerticalCoordinateString,W=0;W<M.children.length;W++){var ge=M.children[W];this.objStart(ge),this.line("/Title "+this.makeString(ge.title)),this.line("/Parent "+this.makeRef(M)),W>0&&this.line("/Prev "+this.makeRef(M.children[W-1])),W<M.children.length-1&&this.line("/Next "+this.makeRef(M.children[W+1])),ge.children.length>0&&(this.line("/First "+this.makeRef(ge.children[0])),this.line("/Last "+this.makeRef(ge.children[ge.children.length-1])));var Le=this.count=this.count_r({count:0},ge);if(Le>0&&this.line("/Count "+Le),ge.options&&ge.options.pageNumber){var ke=y.internal.getPageInfo(ge.options.pageNumber);this.line("/Dest ["+ke.objId+" 0 R /XYZ 0 "+ne(0)+" 0]")}this.objEnd()}for(var rt=0;rt<M.children.length;rt++)this.renderItems(M.children[rt])},y.outline.line=function(M){this.ctx.val+=M+`\r
|
|
|
`},y.outline.makeRef=function(M){return M.id+" 0 R"},y.outline.makeString=function(M){return"("+y.internal.pdfEscape(M)+")"},y.outline.objStart=function(M){this.ctx.val+=`\r
|
|
|
`+M.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},y.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},y.outline.count_r=function(M,ne){for(var W=0;W<ne.children.length;W++)M.count++,this.count_r(M,ne.children[W]);return M.count}}])}(Ni.API),function(b){var u=[192,193,194,195,196,197,198,199];b.processJPEG=function(y,M,ne,W,ge,Le){var ke,rt=this.decode.DCT_DECODE,yt=null;if(typeof y=="string"||this.__addimage__.isArrayBuffer(y)||this.__addimage__.isArrayBufferView(y)){switch(y=ge||y,y=this.__addimage__.isArrayBuffer(y)?new Uint8Array(y):y,(ke=function(vt){for(var Pt,Ve=256*vt.charCodeAt(4)+vt.charCodeAt(5),cr=vt.length,tr={width:0,height:0,numcomponents:1},dr=4;dr<cr;dr+=2){if(dr+=Ve,u.indexOf(vt.charCodeAt(dr+1))!==-1){Pt=256*vt.charCodeAt(dr+5)+vt.charCodeAt(dr+6),tr={width:256*vt.charCodeAt(dr+7)+vt.charCodeAt(dr+8),height:Pt,numcomponents:vt.charCodeAt(dr+9)};break}Ve=256*vt.charCodeAt(dr+2)+vt.charCodeAt(dr+3)}return tr}(y=this.__addimage__.isArrayBufferView(y)?this.__addimage__.arrayBufferToBinaryString(y):y)).numcomponents){case 1:Le=this.color_spaces.DEVICE_GRAY;break;case 4:Le=this.color_spaces.DEVICE_CMYK;break;case 3:Le=this.color_spaces.DEVICE_RGB}yt={data:y,width:ke.width,height:ke.height,colorSpace:Le,bitsPerComponent:8,filter:rt,index:M,alias:ne}}return yt}}(Ni.API);var Xa,bl,so,bo,Zl,wl=function(){var b,u,y;function M(W){var ge,Le,ke,rt,yt,vt,Pt,Ve,cr,tr,dr,Qt,pr,Mr;for(this.data=W,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},vt=null;;){switch(ge=this.readUInt32(),cr=function(){var sn,Rn;for(Rn=[],sn=0;sn<4;++sn)Rn.push(String.fromCharCode(this.data[this.pos++]));return Rn}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(ge);break;case"fcTL":vt&&this.animation.frames.push(vt),this.pos+=4,vt={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},yt=this.readUInt16(),rt=this.readUInt16()||100,vt.delay=1e3*yt/rt,vt.disposeOp=this.data[this.pos++],vt.blendOp=this.data[this.pos++],vt.data=[];break;case"IDAT":case"fdAT":for(cr==="fdAT"&&(this.pos+=4,ge-=4),W=(vt!=null?vt.data:void 0)||this.imgData,Qt=0;0<=ge?Qt<ge:Qt>ge;0<=ge?++Qt:--Qt)W.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ke=this.palette.length/3,this.transparency.indexed=this.read(ge),this.transparency.indexed.length>ke)throw new Error("More transparent colors than palette size");if((tr=ke-this.transparency.indexed.length)>0)for(pr=0;0<=tr?pr<tr:pr>tr;0<=tr?++pr:--pr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ge)[0];break;case 2:this.transparency.rgb=this.read(ge)}break;case"tEXt":Pt=(dr=this.read(ge)).indexOf(0),Ve=String.fromCharCode.apply(String,dr.slice(0,Pt)),this.text[Ve]=String.fromCharCode.apply(String,dr.slice(Pt+1));break;case"IEND":return vt&&this.animation.frames.push(vt),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Mr=this.colorType)===4||Mr===6,Le=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Le,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=ge}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}M.prototype.read=function(W){var ge,Le;for(Le=[],ge=0;0<=W?ge<W:ge>W;0<=W?++ge:--ge)Le.push(this.data[this.pos++]);return Le},M.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},M.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},M.prototype.decodePixels=function(W){var ge=this.pixelBitlength/8,Le=new Uint8Array(this.width*this.height*ge),ke=0,rt=this;if(W==null&&(W=this.imgData),W.length===0)return new Uint8Array(0);function yt(vt,Pt,Ve,cr){var tr,dr,Qt,pr,Mr,sn,Rn,di,pn,Sr,xn,Nn,er,nr,ye,xe,et,st,gt,ft,Ut,$t=Math.ceil((rt.width-vt)/Ve),sr=Math.ceil((rt.height-Pt)/cr),Ze=rt.width==$t&&rt.height==sr;for(nr=ge*$t,Nn=Ze?Le:new Uint8Array(nr*sr),sn=W.length,er=0,dr=0;er<sr&&ke<sn;){switch(W[ke++]){case 0:for(pr=et=0;et<nr;pr=et+=1)Nn[dr++]=W[ke++];break;case 1:for(pr=st=0;st<nr;pr=st+=1)tr=W[ke++],Mr=pr<ge?0:Nn[dr-ge],Nn[dr++]=(tr+Mr)%256;break;case 2:for(pr=gt=0;gt<nr;pr=gt+=1)tr=W[ke++],Qt=(pr-pr%ge)/ge,ye=er&&Nn[(er-1)*nr+Qt*ge+pr%ge],Nn[dr++]=(ye+tr)%256;break;case 3:for(pr=ft=0;ft<nr;pr=ft+=1)tr=W[ke++],Qt=(pr-pr%ge)/ge,Mr=pr<ge?0:Nn[dr-ge],ye=er&&Nn[(er-1)*nr+Qt*ge+pr%ge],Nn[dr++]=(tr+Math.floor((Mr+ye)/2))%256;break;case 4:for(pr=Ut=0;Ut<nr;pr=Ut+=1)tr=W[ke++],Qt=(pr-pr%ge)/ge,Mr=pr<ge?0:Nn[dr-ge],er===0?ye=xe=0:(ye=Nn[(er-1)*nr+Qt*ge+pr%ge],xe=Qt&&Nn[(er-1)*nr+(Qt-1)*ge+pr%ge]),Rn=Mr+ye-xe,di=Math.abs(Rn-Mr),Sr=Math.abs(Rn-ye),xn=Math.abs(Rn-xe),pn=di<=Sr&&di<=xn?Mr:Sr<=xn?ye:xe,Nn[dr++]=(tr+pn)%256;break;default:throw new Error("Invalid filter algorithm: "+W[ke-1])}if(!Ze){var _e=((Pt+er*cr)*rt.width+vt)*ge,wt=er*nr;for(pr=0;pr<$t;pr+=1){for(var Ht=0;Ht<ge;Ht+=1)Le[_e++]=Nn[wt++];_e+=(Ve-1)*ge}}er++}}return W=Ot(W),rt.interlaceMethod==1?(yt(0,0,8,8),yt(4,0,8,8),yt(0,4,4,8),yt(2,0,4,4),yt(0,2,2,4),yt(1,0,2,2),yt(0,1,1,2)):yt(0,0,1,1),Le},M.prototype.decodePalette=function(){var W,ge,Le,ke,rt,yt,vt,Pt,Ve;for(Le=this.palette,yt=this.transparency.indexed||[],rt=new Uint8Array((yt.length||0)+Le.length),ke=0,W=0,ge=vt=0,Pt=Le.length;vt<Pt;ge=vt+=3)rt[ke++]=Le[ge],rt[ke++]=Le[ge+1],rt[ke++]=Le[ge+2],rt[ke++]=(Ve=yt[W++])!=null?Ve:255;return rt},M.prototype.copyToImageData=function(W,ge){var Le,ke,rt,yt,vt,Pt,Ve,cr,tr,dr,Qt;if(ke=this.colors,tr=null,Le=this.hasAlphaChannel,this.palette.length&&(tr=(Qt=this._decodedPalette)!=null?Qt:this._decodedPalette=this.decodePalette(),ke=4,Le=!0),cr=(rt=W.data||W).length,vt=tr||ge,yt=Pt=0,ke===1)for(;yt<cr;)Ve=tr?4*ge[yt/4]:Pt,dr=vt[Ve++],rt[yt++]=dr,rt[yt++]=dr,rt[yt++]=dr,rt[yt++]=Le?vt[Ve++]:255,Pt=Ve;else for(;yt<cr;)Ve=tr?4*ge[yt/4]:Pt,rt[yt++]=vt[Ve++],rt[yt++]=vt[Ve++],rt[yt++]=vt[Ve++],rt[yt++]=Le?vt[Ve++]:255,Pt=Ve},M.prototype.decode=function(){var W;return W=new Uint8Array(this.width*this.height*4),this.copyToImageData(W,this.decodePixels()),W};var ne=function(){if(Object.prototype.toString.call(hn)==="[object Window]"){try{u=hn.document.createElement("canvas"),y=u.getContext("2d")}catch(W){return!1}return!0}return!1};return ne(),b=function(W){var ge;if(ne()===!0)return y.width=W.width,y.height=W.height,y.clearRect(0,0,W.width,W.height),y.putImageData(W,0,0),(ge=new Image).src=u.toDataURL(),ge;throw new Error("This method requires a Browser with Canvas-capability.")},M.prototype.decodeFrames=function(W){var ge,Le,ke,rt,yt,vt,Pt,Ve;if(this.animation){for(Ve=[],Le=yt=0,vt=(Pt=this.animation.frames).length;yt<vt;Le=++yt)ge=Pt[Le],ke=W.createImageData(ge.width,ge.height),rt=this.decodePixels(new Uint8Array(ge.data)),this.copyToImageData(ke,rt),ge.imageData=ke,Ve.push(ge.image=b(ke));return Ve}},M.prototype.renderFrame=function(W,ge){var Le,ke,rt;return Le=(ke=this.animation.frames)[ge],rt=ke[ge-1],ge===0&&W.clearRect(0,0,this.width,this.height),(rt!=null?rt.disposeOp:void 0)===1?W.clearRect(rt.xOffset,rt.yOffset,rt.width,rt.height):(rt!=null?rt.disposeOp:void 0)===2&&W.putImageData(rt.imageData,rt.xOffset,rt.yOffset),Le.blendOp===0&&W.clearRect(Le.xOffset,Le.yOffset,Le.width,Le.height),W.drawImage(Le.image,Le.xOffset,Le.yOffset)},M.prototype.animate=function(W){var ge,Le,ke,rt,yt,vt,Pt=this;return Le=0,vt=this.animation,rt=vt.numFrames,ke=vt.frames,yt=vt.numPlays,(ge=function(){var Ve,cr;if(Ve=Le++%rt,cr=ke[Ve],Pt.renderFrame(W,Ve),rt>1&&Le/rt<yt)return Pt.animation._timeout=setTimeout(ge,cr.delay)})()},M.prototype.stopAnimation=function(){var W;return clearTimeout((W=this.animation)!=null?W._timeout:void 0)},M.prototype.render=function(W){var ge,Le;return W._png&&W._png.stopAnimation(),W._png=this,W.width=this.width,W.height=this.height,ge=W.getContext("2d"),this.animation?(this.decodeFrames(ge),this.animate(ge)):(Le=ge.createImageData(this.width,this.height),this.copyToImageData(Le,this.decodePixels()),ge.putImageData(Le,0,0))},M}();function fl(b){var u=0;if(b[u++]!==71||b[u++]!==73||b[u++]!==70||b[u++]!==56||(b[u++]+1&253)!=56||b[u++]!==97)throw new Error("Invalid GIF 87a/89a header.");var y=b[u++]|b[u++]<<8,M=b[u++]|b[u++]<<8,ne=b[u++],W=ne>>7,ge=1<<(7&ne)+1;b[u++],b[u++];var Le=null,ke=null;W&&(Le=u,ke=ge,u+=3*ge);var rt=!0,yt=[],vt=0,Pt=null,Ve=0,cr=null;for(this.width=y,this.height=M;rt&&u<b.length;)switch(b[u++]){case 33:switch(b[u++]){case 255:if(b[u]!==11||b[u+1]==78&&b[u+2]==69&&b[u+3]==84&&b[u+4]==83&&b[u+5]==67&&b[u+6]==65&&b[u+7]==80&&b[u+8]==69&&b[u+9]==50&&b[u+10]==46&&b[u+11]==48&&b[u+12]==3&&b[u+13]==1&&b[u+16]==0)u+=14,cr=b[u++]|b[u++]<<8,u++;else for(u+=12;;){if(!((er=b[u++])>=0))throw Error("Invalid block size");if(er===0)break;u+=er}break;case 249:if(b[u++]!==4||b[u+4]!==0)throw new Error("Invalid graphics extension block.");var tr=b[u++];vt=b[u++]|b[u++]<<8,Pt=b[u++],!(1&tr)&&(Pt=null),Ve=tr>>2&7,u++;break;case 254:for(;;){if(!((er=b[u++])>=0))throw Error("Invalid block size");if(er===0)break;u+=er}break;default:throw new Error("Unknown graphic control label: 0x"+b[u-1].toString(16))}break;case 44:var dr=b[u++]|b[u++]<<8,Qt=b[u++]|b[u++]<<8,pr=b[u++]|b[u++]<<8,Mr=b[u++]|b[u++]<<8,sn=b[u++],Rn=sn>>6&1,di=1<<(7&sn)+1,pn=Le,Sr=ke,xn=!1;sn>>7&&(xn=!0,pn=u,Sr=di,u+=3*di);var Nn=u;for(u++;;){var er;if(!((er=b[u++])>=0))throw Error("Invalid block size");if(er===0)break;u+=er}yt.push({x:dr,y:Qt,width:pr,height:Mr,has_local_palette:xn,palette_offset:pn,palette_size:Sr,data_offset:Nn,data_length:u-Nn,transparent_index:Pt,interlaced:!!Rn,delay:vt,disposal:Ve});break;case 59:rt=!1;break;default:throw new Error("Unknown gif block: 0x"+b[u-1].toString(16))}this.numFrames=function(){return yt.length},this.loopCount=function(){return cr},this.frameInfo=function(nr){if(nr<0||nr>=yt.length)throw new Error("Frame index out of range.");return yt[nr]},this.decodeAndBlitFrameBGRA=function(nr,ye){var xe=this.frameInfo(nr),et=xe.width*xe.height,st=new Uint8Array(et);Ll(b,xe.data_offset,st,et);var gt=xe.palette_offset,ft=xe.transparent_index;ft===null&&(ft=256);var Ut=xe.width,$t=y-Ut,sr=Ut,Ze=4*(xe.y*y+xe.x),_e=4*((xe.y+xe.height)*y+xe.x),wt=Ze,Ht=4*$t;xe.interlaced===!0&&(Ht+=4*y*7);for(var Wt=8,lr=0,St=st.length;lr<St;++lr){var yr=st[lr];if(sr===0&&(sr=Ut,(wt+=Ht)>=_e&&(Ht=4*$t+4*y*(Wt-1),wt=Ze+(Ut+$t)*(Wt<<1),Wt>>=1)),yr===ft)wt+=4;else{var Gr=b[gt+3*yr],$r=b[gt+3*yr+1],An=b[gt+3*yr+2];ye[wt++]=An,ye[wt++]=$r,ye[wt++]=Gr,ye[wt++]=255}--sr}},this.decodeAndBlitFrameRGBA=function(nr,ye){var xe=this.frameInfo(nr),et=xe.width*xe.height,st=new Uint8Array(et);Ll(b,xe.data_offset,st,et);var gt=xe.palette_offset,ft=xe.transparent_index;ft===null&&(ft=256);var Ut=xe.width,$t=y-Ut,sr=Ut,Ze=4*(xe.y*y+xe.x),_e=4*((xe.y+xe.height)*y+xe.x),wt=Ze,Ht=4*$t;xe.interlaced===!0&&(Ht+=4*y*7);for(var Wt=8,lr=0,St=st.length;lr<St;++lr){var yr=st[lr];if(sr===0&&(sr=Ut,(wt+=Ht)>=_e&&(Ht=4*$t+4*y*(Wt-1),wt=Ze+(Ut+$t)*(Wt<<1),Wt>>=1)),yr===ft)wt+=4;else{var Gr=b[gt+3*yr],$r=b[gt+3*yr+1],An=b[gt+3*yr+2];ye[wt++]=Gr,ye[wt++]=$r,ye[wt++]=An,ye[wt++]=255}--sr}}}function Ll(b,u,y,M){for(var ne=b[u++],W=1<<ne,ge=W+1,Le=ge+1,ke=ne+1,rt=(1<<ke)-1,yt=0,vt=0,Pt=0,Ve=b[u++],cr=new Int32Array(4096),tr=null;;){for(;yt<16&&Ve!==0;)vt|=b[u++]<<yt,yt+=8,Ve===1?Ve=b[u++]:--Ve;if(yt<ke)break;var dr=vt&rt;if(vt>>=ke,yt-=ke,dr!==W){if(dr===ge)break;for(var Qt=dr<Le?dr:tr,pr=0,Mr=Qt;Mr>W;)Mr=cr[Mr]>>8,++pr;var sn=Mr;if(Pt+pr+(Qt!==dr?1:0)>M)return void ii.log("Warning, gif stream longer than expected.");y[Pt++]=sn;var Rn=Pt+=pr;for(Qt!==dr&&(y[Pt++]=sn),Mr=Qt;pr--;)Mr=cr[Mr],y[--Rn]=255&Mr,Mr>>=8;tr!==null&&Le<4096&&(cr[Le++]=tr<<8|sn,Le>=rt+1&&ke<12&&(++ke,rt=rt<<1|1)),tr=dr}else Le=ge+1,rt=(1<<(ke=ne+1))-1,tr=null}return Pt!==M&&ii.log("Warning, gif stream shorter than expected."),y}function xl(b){var u,y,M,ne,W,ge=Math.floor,Le=new Array(64),ke=new Array(64),rt=new Array(64),yt=new Array(64),vt=new Array(65535),Pt=new Array(65535),Ve=new Array(64),cr=new Array(64),tr=[],dr=0,Qt=7,pr=new Array(64),Mr=new Array(64),sn=new Array(64),Rn=new Array(256),di=new Array(2048),pn=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Sr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],xn=[0,1,2,3,4,5,6,7,8,9,10,11],Nn=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],er=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],nr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],ye=[0,1,2,3,4,5,6,7,8,9,10,11],xe=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],et=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function st(Ze,_e){for(var wt=0,Ht=0,Wt=new Array,lr=1;lr<=16;lr++){for(var St=1;St<=Ze[lr];St++)Wt[_e[Ht]]=[],Wt[_e[Ht]][0]=wt,Wt[_e[Ht]][1]=lr,Ht++,wt++;wt*=2}return Wt}function gt(Ze){for(var _e=Ze[0],wt=Ze[1]-1;wt>=0;)_e&1<<wt&&(dr|=1<<Qt),wt--,--Qt<0&&(dr==255?(ft(255),ft(0)):ft(dr),Qt=7,dr=0)}function ft(Ze){tr.push(Ze)}function Ut(Ze){ft(Ze>>8&255),ft(255&Ze)}function $t(Ze,_e,wt,Ht,Wt){for(var lr,St=Wt[0],yr=Wt[240],Gr=function(ln,dn){var rn,Cn,si,Fi,He,c,w,C,K,Be,je=0;for(K=0;K<8;++K){rn=ln[je],Cn=ln[je+1],si=ln[je+2],Fi=ln[je+3],He=ln[je+4],c=ln[je+5],w=ln[je+6];var xt=rn+(C=ln[je+7]),bt=rn-C,Xt=Cn+w,Ar=Cn-w,xr=si+c,nn=si-c,En=Fi+He,Xr=Fi-He,fn=xt+En,Mn=xt-En,Jn=Xt+xr,wi=Xt-xr;ln[je]=fn+Jn,ln[je+4]=fn-Jn;var yn=.707106781*(wi+Mn);ln[je+2]=Mn+yn,ln[je+6]=Mn-yn;var fi=.382683433*((fn=Xr+nn)-(wi=Ar+bt)),qi=.5411961*fn+fi,Ki=1.306562965*wi+fi,Ia=.707106781*(Jn=nn+Ar),Ta=bt+Ia,Xi=bt-Ia;ln[je+5]=Xi+qi,ln[je+3]=Xi-qi,ln[je+1]=Ta+Ki,ln[je+7]=Ta-Ki,je+=8}for(je=0,K=0;K<8;++K){rn=ln[je],Cn=ln[je+8],si=ln[je+16],Fi=ln[je+24],He=ln[je+32],c=ln[je+40],w=ln[je+48];var Fa=rn+(C=ln[je+56]),Ba=rn-C,li=Cn+w,$a=Cn-w,os=si+c,sa=si-c,fa=Fi+He,ba=Fi-He,Ha=Fa+fa,ls=Fa-fa,Aa=li+os,Ts=li-os;ln[je]=Ha+Aa,ln[je+32]=Ha-Aa;var ys=.707106781*(Ts+ls);ln[je+16]=ls+ys,ln[je+48]=ls-ys;var Hs=.382683433*((Ha=ba+sa)-(Ts=$a+Ba)),Zs=.5411961*Ha+Hs,Xs=1.306562965*Ts+Hs,Wo=.707106781*(Aa=sa+$a),$o=Ba+Wo,ho=Ba-Wo;ln[je+40]=ho+Zs,ln[je+24]=ho-Zs,ln[je+8]=$o+Xs,ln[je+56]=$o-Xs,je++}for(K=0;K<64;++K)Be=ln[K]*dn[K],Ve[K]=Be>0?Be+.5|0:Be-.5|0;return Ve}(Ze,_e),$r=0;$r<64;++$r)cr[pn[$r]]=Gr[$r];var An=cr[0]-wt;wt=cr[0],An==0?gt(Ht[0]):(gt(Ht[Pt[lr=32767+An]]),gt(vt[lr]));for(var Dn=63;Dn>0&&cr[Dn]==0;)Dn--;if(Dn==0)return gt(St),wt;for(var ni,kr=1;kr<=Dn;){for(var ir=kr;cr[kr]==0&&kr<=Dn;)++kr;var Si=kr-ir;if(Si>=16){ni=Si>>4;for(var Fn=1;Fn<=ni;++Fn)gt(yr);Si&=15}lr=32767+cr[kr],gt(Wt[(Si<<4)+Pt[lr]]),gt(vt[lr]),kr++}return Dn!=63&>(St),wt}function sr(Ze){Ze=Math.min(Math.max(Ze,1),100),W!=Ze&&(function(_e){for(var wt=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Ht=0;Ht<64;Ht++){var Wt=ge((wt[Ht]*_e+50)/100);Wt=Math.min(Math.max(Wt,1),255),Le[pn[Ht]]=Wt}for(var lr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],St=0;St<64;St++){var yr=ge((lr[St]*_e+50)/100);yr=Math.min(Math.max(yr,1),255),ke[pn[St]]=yr}for(var Gr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],$r=0,An=0;An<8;An++)for(var Dn=0;Dn<8;Dn++)rt[$r]=1/(Le[pn[$r]]*Gr[An]*Gr[Dn]*8),yt[$r]=1/(ke[pn[$r]]*Gr[An]*Gr[Dn]*8),$r++}(Ze<50?Math.floor(5e3/Ze):Math.floor(200-2*Ze)),W=Ze)}this.encode=function(Ze,_e){_e&&sr(_e),tr=new Array,dr=0,Qt=7,Ut(65496),Ut(65504),Ut(16),ft(74),ft(70),ft(73),ft(70),ft(0),ft(1),ft(1),ft(0),Ut(1),Ut(1),ft(0),ft(0),function(){Ut(65499),Ut(132),ft(0);for(var Cn=0;Cn<64;Cn++)ft(Le[Cn]);ft(1);for(var si=0;si<64;si++)ft(ke[si])}(),function(Cn,si){Ut(65472),Ut(17),ft(8),Ut(si),Ut(Cn),ft(3),ft(1),ft(17),ft(0),ft(2),ft(17),ft(1),ft(3),ft(17),ft(1)}(Ze.width,Ze.height),function(){Ut(65476),Ut(418),ft(0);for(var Cn=0;Cn<16;Cn++)ft(Sr[Cn+1]);for(var si=0;si<=11;si++)ft(xn[si]);ft(16);for(var Fi=0;Fi<16;Fi++)ft(Nn[Fi+1]);for(var He=0;He<=161;He++)ft(er[He]);ft(1);for(var c=0;c<16;c++)ft(nr[c+1]);for(var w=0;w<=11;w++)ft(ye[w]);ft(17);for(var C=0;C<16;C++)ft(xe[C+1]);for(var K=0;K<=161;K++)ft(et[K])}(),Ut(65498),Ut(12),ft(3),ft(1),ft(0),ft(2),ft(17),ft(3),ft(17),ft(0),ft(63),ft(0);var wt=0,Ht=0,Wt=0;dr=0,Qt=7,this.encode.displayName="_encode_";for(var lr,St,yr,Gr,$r,An,Dn,ni,kr,ir=Ze.data,Si=Ze.width,Fn=Ze.height,ln=4*Si,dn=0;dn<Fn;){for(lr=0;lr<ln;){for($r=ln*dn+lr,Dn=-1,ni=0,kr=0;kr<64;kr++)An=$r+(ni=kr>>3)*ln+(Dn=4*(7&kr)),dn+ni>=Fn&&(An-=ln*(dn+1+ni-Fn)),lr+Dn>=ln&&(An-=lr+Dn-ln+4),St=ir[An++],yr=ir[An++],Gr=ir[An++],pr[kr]=(di[St]+di[yr+256>>0]+di[Gr+512>>0]>>16)-128,Mr[kr]=(di[St+768>>0]+di[yr+1024>>0]+di[Gr+1280>>0]>>16)-128,sn[kr]=(di[St+1280>>0]+di[yr+1536>>0]+di[Gr+1792>>0]>>16)-128;wt=$t(pr,rt,wt,u,M),Ht=$t(Mr,yt,Ht,y,ne),Wt=$t(sn,yt,Wt,y,ne),lr+=32}dn+=8}if(Qt>=0){var rn=[];rn[1]=Qt+1,rn[0]=(1<<Qt+1)-1,gt(rn)}return Ut(65497),new Uint8Array(tr)},b=b||50,function(){for(var Ze=String.fromCharCode,_e=0;_e<256;_e++)Rn[_e]=Ze(_e)}(),u=st(Sr,xn),y=st(nr,ye),M=st(Nn,er),ne=st(xe,et),function(){for(var Ze=1,_e=2,wt=1;wt<=15;wt++){for(var Ht=Ze;Ht<_e;Ht++)Pt[32767+Ht]=wt,vt[32767+Ht]=[],vt[32767+Ht][1]=wt,vt[32767+Ht][0]=Ht;for(var Wt=-(_e-1);Wt<=-Ze;Wt++)Pt[32767+Wt]=wt,vt[32767+Wt]=[],vt[32767+Wt][1]=wt,vt[32767+Wt][0]=_e-1+Wt;Ze<<=1,_e<<=1}}(),function(){for(var Ze=0;Ze<256;Ze++)di[Ze]=19595*Ze,di[Ze+256>>0]=38470*Ze,di[Ze+512>>0]=7471*Ze+32768,di[Ze+768>>0]=-11059*Ze,di[Ze+1024>>0]=-21709*Ze,di[Ze+1280>>0]=32768*Ze+8421375,di[Ze+1536>>0]=-27439*Ze,di[Ze+1792>>0]=-5329*Ze}(),sr(b)}function jo(b,u){if(this.pos=0,this.buffer=b,this.datav=new DataView(b.buffer),this.is_with_alpha=!!u,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Gs(b){function u(Sr){if(!Sr)throw Error("assert :P")}function y(Sr,xn,Nn){for(var er=0;4>er;er++)if(Sr[xn+er]!=Nn.charCodeAt(er))return!0;return!1}function M(Sr,xn,Nn,er,nr){for(var ye=0;ye<nr;ye++)Sr[xn+ye]=Nn[er+ye]}function ne(Sr,xn,Nn,er){for(var nr=0;nr<er;nr++)Sr[xn+nr]=Nn}function W(Sr){return new Int32Array(Sr)}function ge(Sr,xn){for(var Nn=[],er=0;er<Sr;er++)Nn.push(new xn);return Nn}function Le(Sr,xn){var Nn=[];return function er(nr,ye,xe){for(var et=xe[ye],st=0;st<et&&(nr.push(xe.length>ye+1?[]:new xn),!(xe.length<ye+1));st++)er(nr[st],ye+1,xe)}(Nn,0,Sr),Nn}var ke=function(){var Sr=this;function xn(f,Q){for(var ce=1<<Q-1>>>0;f&ce;)ce>>>=1;return ce?(f&ce-1)+ce:f}function Nn(f,Q,ce,Ue,ut){u(!(Ue%ce));do f[Q+(Ue-=ce)]=ut;while(0<Ue)}function er(f,Q,ce,Ue,ut){if(u(2328>=ut),512>=ut)var ht=W(512);else if((ht=W(ut))==null)return 0;return function(mt,Ft,Rt,Kt,fr,Wr){var Vr,Ir,Zn=Ft,Pn=1<<Rt,Pr=W(16),Dr=W(16);for(u(fr!=0),u(Kt!=null),u(mt!=null),u(0<Rt),Ir=0;Ir<fr;++Ir){if(15<Kt[Ir])return 0;++Pr[Kt[Ir]]}if(Pr[0]==fr)return 0;for(Dr[1]=0,Vr=1;15>Vr;++Vr){if(Pr[Vr]>1<<Vr)return 0;Dr[Vr+1]=Dr[Vr]+Pr[Vr]}for(Ir=0;Ir<fr;++Ir)Vr=Kt[Ir],0<Kt[Ir]&&(Wr[Dr[Vr]++]=Ir);if(Dr[15]==1)return(Kt=new nr).g=0,Kt.value=Wr[0],Nn(mt,Zn,1,Pn,Kt),Pn;var Wn,vi=-1,qn=Pn-1,Vi=0,Gi=1,ma=1,Yi=1<<Rt;for(Ir=0,Vr=1,fr=2;Vr<=Rt;++Vr,fr<<=1){if(Gi+=ma<<=1,0>(ma-=Pr[Vr]))return 0;for(;0<Pr[Vr];--Pr[Vr])(Kt=new nr).g=Vr,Kt.value=Wr[Ir++],Nn(mt,Zn+Vi,fr,Yi,Kt),Vi=xn(Vi,Vr)}for(Vr=Rt+1,fr=2;15>=Vr;++Vr,fr<<=1){if(Gi+=ma<<=1,0>(ma-=Pr[Vr]))return 0;for(;0<Pr[Vr];--Pr[Vr]){if(Kt=new nr,(Vi&qn)!=vi){for(Zn+=Yi,Wn=1<<(vi=Vr)-Rt;15>vi&&!(0>=(Wn-=Pr[vi]));)++vi,Wn<<=1;Pn+=Yi=1<<(Wn=vi-Rt),mt[Ft+(vi=Vi&qn)].g=Wn+Rt,mt[Ft+vi].value=Zn-Ft-vi}Kt.g=Vr-Rt,Kt.value=Wr[Ir++],Nn(mt,Zn+(Vi>>Rt),fr,Yi,Kt),Vi=xn(Vi,Vr)}}return Gi!=2*Dr[15]-1?0:Pn}(f,Q,ce,Ue,ut,ht)}function nr(){this.value=this.g=0}function ye(){this.value=this.g=0}function xe(){this.G=ge(5,nr),this.H=W(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ge(Eo,ye)}function et(f,Q,ce,Ue){u(f!=null),u(Q!=null),u(2147483648>Ue),f.Ca=254,f.I=0,f.b=-8,f.Ka=0,f.oa=Q,f.pa=ce,f.Jd=Q,f.Yc=ce+Ue,f.Zc=4<=Ue?ce+Ue-4+1:ce,lr(f)}function st(f,Q){for(var ce=0;0<Q--;)ce|=yr(f,128)<<Q;return ce}function gt(f,Q){var ce=st(f,Q);return St(f)?-ce:ce}function ft(f,Q,ce,Ue){var ut,ht=0;for(u(f!=null),u(Q!=null),u(4294967288>Ue),f.Sb=Ue,f.Ra=0,f.u=0,f.h=0,4<Ue&&(Ue=4),ut=0;ut<Ue;++ut)ht+=Q[ce+ut]<<8*ut;f.Ra=ht,f.bb=Ue,f.oa=Q,f.pa=ce}function Ut(f){for(;8<=f.u&&f.bb<f.Sb;)f.Ra>>>=8,f.Ra+=f.oa[f.pa+f.bb]<<Ul-8>>>0,++f.bb,f.u-=8;wt(f)&&(f.h=1,f.u=0)}function $t(f,Q){if(u(0<=Q),!f.h&&Q<=no){var ce=_e(f)&Ju[Q];return f.u+=Q,Ut(f),ce}return f.h=1,f.u=0}function sr(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Ze(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _e(f){return f.Ra>>>(f.u&Ul-1)>>>0}function wt(f){return u(f.bb<=f.Sb),f.h||f.bb==f.Sb&&f.u>Ul}function Ht(f,Q){f.u=Q,f.h=wt(f)}function Wt(f){f.u>=ru&&(u(f.u>=ru),Ut(f))}function lr(f){u(f!=null&&f.oa!=null),f.pa<f.Zc?(f.I=(f.oa[f.pa++]|f.I<<8)>>>0,f.b+=8):(u(f!=null&&f.oa!=null),f.pa<f.Yc?(f.b+=8,f.I=f.oa[f.pa++]|f.I<<8):f.Ka?f.b=0:(f.I<<=8,f.b+=8,f.Ka=1))}function St(f){return st(f,1)}function yr(f,Q){var ce=f.Ca;0>f.b&&lr(f);var Ue=f.b,ut=ce*Q>>>8,ht=(f.I>>>Ue>ut)+0;for(ht?(ce-=ut,f.I-=ut+1<<Ue>>>0):ce=ut+1,Ue=ce,ut=0;256<=Ue;)ut+=8,Ue>>=8;return Ue=7^ut+Oo[Ue],f.b-=Ue,f.Ca=(ce<<Ue)-1,ht}function Gr(f,Q,ce){f[Q+0]=ce>>24&255,f[Q+1]=ce>>16&255,f[Q+2]=ce>>8&255,f[Q+3]=ce>>0&255}function $r(f,Q){return f[Q+0]<<0|f[Q+1]<<8}function An(f,Q){return $r(f,Q)|f[Q+2]<<16}function Dn(f,Q){return $r(f,Q)|$r(f,Q+2)<<16}function ni(f,Q){var ce=1<<Q;return u(f!=null),u(0<Q),f.X=W(ce),f.X==null?0:(f.Mb=32-Q,f.Xa=Q,1)}function kr(f,Q){u(f!=null),u(Q!=null),u(f.Xa==Q.Xa),M(Q.X,0,f.X,0,1<<Q.Xa)}function ir(){this.X=[],this.Xa=this.Mb=0}function Si(f,Q,ce,Ue){u(ce!=null),u(Ue!=null);var ut=ce[0],ht=Ue[0];return ut==0&&(ut=(f*ht+Q/2)/Q),ht==0&&(ht=(Q*ut+f/2)/f),0>=ut||0>=ht?0:(ce[0]=ut,Ue[0]=ht,1)}function Fn(f,Q){return f+(1<<Q)-1>>>Q}function ln(f,Q){return((4278255360&f)+(4278255360&Q)>>>0&4278255360)+((16711935&f)+(16711935&Q)>>>0&16711935)>>>0}function dn(f,Q){Sr[Q]=function(ce,Ue,ut,ht,mt,Ft,Rt){var Kt;for(Kt=0;Kt<mt;++Kt){var fr=Sr[f](Ft[Rt+Kt-1],ut,ht+Kt);Ft[Rt+Kt]=ln(ce[Ue+Kt],fr)}}}function rn(){this.ud=this.hd=this.jd=0}function Cn(f,Q){return((4278124286&(f^Q))>>>1)+(f&Q)>>>0}function si(f){return 0<=f&&256>f?f:0>f?0:255<f?255:void 0}function Fi(f,Q){return si(f+(f-Q+.5>>1))}function He(f,Q,ce){return Math.abs(Q-ce)-Math.abs(f-ce)}function c(f,Q,ce,Ue,ut,ht,mt){for(Ue=ht[mt-1],ce=0;ce<ut;++ce)ht[mt+ce]=Ue=ln(f[Q+ce],Ue)}function w(f,Q,ce,Ue,ut){var ht;for(ht=0;ht<ce;++ht){var mt=f[Q+ht],Ft=mt>>8&255,Rt=16711935&(Rt=(Rt=16711935&mt)+((Ft<<16)+Ft));Ue[ut+ht]=(4278255360&mt)+Rt>>>0}}function C(f,Q){Q.jd=f>>0&255,Q.hd=f>>8&255,Q.ud=f>>16&255}function K(f,Q,ce,Ue,ut,ht){var mt;for(mt=0;mt<Ue;++mt){var Ft=Q[ce+mt],Rt=Ft>>>8,Kt=Ft,fr=255&(fr=(fr=Ft>>>16)+((f.jd<<24>>24)*(Rt<<24>>24)>>>5));Kt=255&(Kt=(Kt=Kt+((f.hd<<24>>24)*(Rt<<24>>24)>>>5))+((f.ud<<24>>24)*(fr<<24>>24)>>>5)),ut[ht+mt]=(4278255360&Ft)+(fr<<16)+Kt}}function Be(f,Q,ce,Ue,ut){Sr[Q]=function(ht,mt,Ft,Rt,Kt,fr,Wr,Vr,Ir){for(Rt=Wr;Rt<Vr;++Rt)for(Wr=0;Wr<Ir;++Wr)Kt[fr++]=ut(Ft[Ue(ht[mt++])])},Sr[f]=function(ht,mt,Ft,Rt,Kt,fr,Wr){var Vr=8>>ht.b,Ir=ht.Ea,Zn=ht.K[0],Pn=ht.w;if(8>Vr)for(ht=(1<<ht.b)-1,Pn=(1<<Vr)-1;mt<Ft;++mt){var Pr,Dr=0;for(Pr=0;Pr<Ir;++Pr)Pr&ht||(Dr=Ue(Rt[Kt++])),fr[Wr++]=ut(Zn[Dr&Pn]),Dr>>=Vr}else Sr["VP8LMapColor"+ce](Rt,Kt,Zn,Pn,fr,Wr,mt,Ft,Ir)}}function je(f,Q,ce,Ue,ut){for(ce=Q+ce;Q<ce;){var ht=f[Q++];Ue[ut++]=ht>>16&255,Ue[ut++]=ht>>8&255,Ue[ut++]=ht>>0&255}}function xt(f,Q,ce,Ue,ut){for(ce=Q+ce;Q<ce;){var ht=f[Q++];Ue[ut++]=ht>>16&255,Ue[ut++]=ht>>8&255,Ue[ut++]=ht>>0&255,Ue[ut++]=ht>>24&255}}function bt(f,Q,ce,Ue,ut){for(ce=Q+ce;Q<ce;){var ht=(mt=f[Q++])>>16&240|mt>>12&15,mt=mt>>0&240|mt>>28&15;Ue[ut++]=ht,Ue[ut++]=mt}}function Xt(f,Q,ce,Ue,ut){for(ce=Q+ce;Q<ce;){var ht=(mt=f[Q++])>>16&248|mt>>13&7,mt=mt>>5&224|mt>>3&31;Ue[ut++]=ht,Ue[ut++]=mt}}function Ar(f,Q,ce,Ue,ut){for(ce=Q+ce;Q<ce;){var ht=f[Q++];Ue[ut++]=ht>>0&255,Ue[ut++]=ht>>8&255,Ue[ut++]=ht>>16&255}}function xr(f,Q,ce,Ue,ut,ht){if(ht==0)for(ce=Q+ce;Q<ce;)Gr(Ue,((ht=f[Q++])[0]>>24|ht[1]>>8&65280|ht[2]<<8&16711680|ht[3]<<24)>>>0),ut+=32;else M(Ue,ut,f,Q,ce)}function nn(f,Q){Sr[Q][0]=Sr[f+"0"],Sr[Q][1]=Sr[f+"1"],Sr[Q][2]=Sr[f+"2"],Sr[Q][3]=Sr[f+"3"],Sr[Q][4]=Sr[f+"4"],Sr[Q][5]=Sr[f+"5"],Sr[Q][6]=Sr[f+"6"],Sr[Q][7]=Sr[f+"7"],Sr[Q][8]=Sr[f+"8"],Sr[Q][9]=Sr[f+"9"],Sr[Q][10]=Sr[f+"10"],Sr[Q][11]=Sr[f+"11"],Sr[Q][12]=Sr[f+"12"],Sr[Q][13]=Sr[f+"13"],Sr[Q][14]=Sr[f+"0"],Sr[Q][15]=Sr[f+"0"]}function En(f){return f==Ga||f==ia||f==ja||f==Ua}function Xr(){this.eb=[],this.size=this.A=this.fb=0}function fn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Mn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Xr,this.f.kb=new fn,this.sd=null}function Jn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function wi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function yn(f){return alert("todo:WebPSamplerProcessPlane"),f.T}function fi(f,Q){var ce=f.T,Ue=Q.ba.f.RGBA,ut=Ue.eb,ht=Ue.fb+f.ka*Ue.A,mt=ou[Q.ba.S],Ft=f.y,Rt=f.O,Kt=f.f,fr=f.N,Wr=f.ea,Vr=f.W,Ir=Q.cc,Zn=Q.dc,Pn=Q.Mc,Pr=Q.Nc,Dr=f.ka,Wn=f.ka+f.T,vi=f.U,qn=vi+1>>1;for(Dr==0?mt(Ft,Rt,null,null,Kt,fr,Wr,Vr,Kt,fr,Wr,Vr,ut,ht,null,null,vi):(mt(Q.ec,Q.fc,Ft,Rt,Ir,Zn,Pn,Pr,Kt,fr,Wr,Vr,ut,ht-Ue.A,ut,ht,vi),++ce);Dr+2<Wn;Dr+=2)Ir=Kt,Zn=fr,Pn=Wr,Pr=Vr,fr+=f.Rc,Vr+=f.Rc,ht+=2*Ue.A,mt(Ft,(Rt+=2*f.fa)-f.fa,Ft,Rt,Ir,Zn,Pn,Pr,Kt,fr,Wr,Vr,ut,ht-Ue.A,ut,ht,vi);return Rt+=f.fa,f.j+Wn<f.o?(M(Q.ec,Q.fc,Ft,Rt,vi),M(Q.cc,Q.dc,Kt,fr,qn),M(Q.Mc,Q.Nc,Wr,Vr,qn),ce--):1&Wn||mt(Ft,Rt,null,null,Kt,fr,Wr,Vr,Kt,fr,Wr,Vr,ut,ht+Ue.A,null,null,vi),ce}function qi(f,Q,ce){var Ue=f.F,ut=[f.J];if(Ue!=null){var ht=f.U,mt=Q.ba.S,Ft=mt==ea||mt==ja;Q=Q.ba.f.RGBA;var Rt=[0],Kt=f.ka;Rt[0]=f.T,f.Kb&&(Kt==0?--Rt[0]:(--Kt,ut[0]-=f.width),f.j+f.ka+f.T==f.o&&(Rt[0]=f.o-f.j-Kt));var fr=Q.eb;Kt=Q.fb+Kt*Q.A,f=Ae(Ue,ut[0],f.width,ht,Rt,fr,Kt+(Ft?0:3),Q.A),u(ce==Rt),f&&En(mt)&&j(fr,Kt,Ft,ht,Rt,Q.A)}return 0}function Ki(f){var Q=f.ma,ce=Q.ba.S,Ue=11>ce,ut=ce==gi||ce==Ii||ce==ea||ce==mi||ce==12||En(ce);if(Q.memory=null,Q.Ib=null,Q.Jb=null,Q.Nd=null,!Xu(Q.Oa,f,ut?11:12))return 0;if(ut&&En(ce)&&Ci(),f.da)alert("todo:use_scaling");else{if(Ue){if(Q.Ib=yn,f.Kb){if(ce=f.U+1>>1,Q.memory=W(f.U+2*ce),Q.memory==null)return 0;Q.ec=Q.memory,Q.fc=0,Q.cc=Q.ec,Q.dc=Q.fc+f.U,Q.Mc=Q.cc,Q.Nc=Q.dc+ce,Q.Ib=fi,Ci()}}else alert("todo:EmitYUV");ut&&(Q.Jb=qi,Ue&&un())}if(Ue&&!R){for(f=0;256>f;++f)E[f]=89858*(f-128)+$c>>Hc,Ne[f]=-22014*(f-128)+$c,k[f]=-45773*(f-128),U[f]=113618*(f-128)+$c>>Hc;for(f=Uc;f<Vc;++f)Q=76283*(f-16)+$c>>Hc,it[f-Uc]=el(Q,255),Dt[f-Uc]=el(Q+8>>4,15);R=1}return 1}function Ia(f){var Q=f.ma,ce=f.U,Ue=f.T;return u(!(1&f.ka)),0>=ce||0>=Ue?0:(ce=Q.Ib(f,Q),Q.Jb!=null&&Q.Jb(f,Q,ce),Q.Dc+=ce,1)}function Ta(f){f.ma.memory=null}function Xi(f,Q,ce,Ue){return $t(f,8)!=47?0:(Q[0]=$t(f,14)+1,ce[0]=$t(f,14)+1,Ue[0]=$t(f,1),$t(f,3)!=0?0:!f.h)}function Fa(f,Q){if(4>f)return f+1;var ce=f-2>>1;return(2+(1&f)<<ce)+$t(Q,ce)+1}function Ba(f,Q){return 120<Q?Q-120:1<=(ce=((ce=ks[Q-1])>>4)*f+(8-(15&ce)))?ce:1;var ce}function li(f,Q,ce){var Ue=_e(ce),ut=f[Q+=255&Ue].g-8;return 0<ut&&(Ht(ce,ce.u+8),Ue=_e(ce),Q+=f[Q].value,Q+=Ue&(1<<ut)-1),Ht(ce,ce.u+f[Q].g),f[Q].value}function $a(f,Q,ce){return ce.g+=f.g,ce.value+=f.value<<Q>>>0,u(8>=ce.g),f.g}function os(f,Q,ce){var Ue=f.xc;return u((Q=Ue==0?0:f.vc[f.md*(ce>>Ue)+(Q>>Ue)])<f.Wb),f.Ya[Q]}function sa(f,Q,ce,Ue){var ut=f.ab,ht=f.c*Q,mt=f.C;Q=mt+Q;var Ft=ce,Rt=Ue;for(Ue=f.Ta,ce=f.Ua;0<ut--;){var Kt=f.gc[ut],fr=mt,Wr=Q,Vr=Ft,Ir=Rt,Zn=(Rt=Ue,Ft=ce,Kt.Ea);switch(u(fr<Wr),u(Wr<=Kt.nc),Kt.hc){case 2:Ql(Vr,Ir,(Wr-fr)*Zn,Rt,Ft);break;case 0:var Pn=fr,Pr=Wr,Dr=Rt,Wn=Ft,vi=(Yi=Kt).Ea;Pn==0&&(nu(Vr,Ir,null,null,1,Dr,Wn),c(Vr,Ir+1,0,0,vi-1,Dr,Wn+1),Ir+=vi,Wn+=vi,++Pn);for(var qn=1<<Yi.b,Vi=qn-1,Gi=Fn(vi,Yi.b),ma=Yi.K,Yi=Yi.w+(Pn>>Yi.b)*Gi;Pn<Pr;){var Is=ma,Ds=Yi,ds=1;for(Eu(Vr,Ir,Dr,Wn-vi,1,Dr,Wn);ds<vi;){var us=(ds&~Vi)+qn;us>vi&&(us=vi),(0,jl[Is[Ds++]>>8&15])(Vr,Ir+ +ds,Dr,Wn+ds-vi,us-ds,Dr,Wn+ds),ds=us}Ir+=vi,Wn+=vi,++Pn&Vi||(Yi+=Gi)}Wr!=Kt.nc&&M(Rt,Ft-Zn,Rt,Ft+(Wr-fr-1)*Zn,Zn);break;case 1:for(Zn=Vr,Pr=Ir,vi=(Vr=Kt.Ea)-(Wn=Vr&~(Dr=(Ir=1<<Kt.b)-1)),Pn=Fn(Vr,Kt.b),qn=Kt.K,Kt=Kt.w+(fr>>Kt.b)*Pn;fr<Wr;){for(Vi=qn,Gi=Kt,ma=new rn,Yi=Pr+Wn,Is=Pr+Vr;Pr<Yi;)C(Vi[Gi++],ma),iu(ma,Zn,Pr,Ir,Rt,Ft),Pr+=Ir,Ft+=Ir;Pr<Is&&(C(Vi[Gi++],ma),iu(ma,Zn,Pr,vi,Rt,Ft),Pr+=vi,Ft+=vi),++fr&Dr||(Kt+=Pn)}break;case 3:if(Vr==Rt&&Ir==Ft&&0<Kt.b){for(Pr=Rt,Vr=Zn=Ft+(Wr-fr)*Zn-(Wn=(Wr-fr)*Fn(Kt.Ea,Kt.b)),Ir=Rt,Dr=Ft,Pn=[],Wn=(vi=Wn)-1;0<=Wn;--Wn)Pn[Wn]=Ir[Dr+Wn];for(Wn=vi-1;0<=Wn;--Wn)Pr[Vr+Wn]=Pn[Wn];pl(Kt,fr,Wr,Rt,Zn,Rt,Ft)}else pl(Kt,fr,Wr,Vr,Ir,Rt,Ft)}Ft=Ue,Rt=ce}Rt!=ce&&M(Ue,ce,Ft,Rt,ht)}function fa(f,Q){var ce=f.V,Ue=f.Ba+f.c*f.C,ut=Q-f.C;if(u(Q<=f.l.o),u(16>=ut),0<ut){var ht=f.l,mt=f.Ta,Ft=f.Ua,Rt=ht.width;if(sa(f,ut,ce,Ue),ut=Ft=[Ft],u((ce=f.C)<(Ue=Q)),u(ht.v<ht.va),Ue>ht.o&&(Ue=ht.o),ce<ht.j){var Kt=ht.j-ce;ce=ht.j,ut[0]+=Kt*Rt}if(ce>=Ue?ce=0:(ut[0]+=4*ht.v,ht.ka=ce-ht.j,ht.U=ht.va-ht.v,ht.T=Ue-ce,ce=1),ce){if(Ft=Ft[0],11>(ce=f.ca).S){var fr=ce.f.RGBA,Wr=(Ue=ce.S,ut=ht.U,ht=ht.T,Kt=fr.eb,fr.A),Vr=ht;for(fr=fr.fb+f.Ma*fr.A;0<Vr--;){var Ir=mt,Zn=Ft,Pn=ut,Pr=Kt,Dr=fr;switch(Ue){case cn:ul(Ir,Zn,Pn,Pr,Dr);break;case gi:Uo(Ir,Zn,Pn,Pr,Dr);break;case Ga:Uo(Ir,Zn,Pn,Pr,Dr),j(Pr,Dr,0,Pn,1,0);break;case zn:su(Ir,Zn,Pn,Pr,Dr);break;case Ii:xr(Ir,Zn,Pn,Pr,Dr,1);break;case ia:xr(Ir,Zn,Pn,Pr,Dr,1),j(Pr,Dr,0,Pn,1,0);break;case ea:xr(Ir,Zn,Pn,Pr,Dr,0);break;case ja:xr(Ir,Zn,Pn,Pr,Dr,0),j(Pr,Dr,1,Pn,1,0);break;case mi:Uu(Ir,Zn,Pn,Pr,Dr);break;case Ua:Uu(Ir,Zn,Pn,Pr,Dr),q(Pr,Dr,Pn,1,0);break;case Oi:au(Ir,Zn,Pn,Pr,Dr);break;default:u(0)}Ft+=Rt,fr+=Wr}f.Ma+=ht}else alert("todo:EmitRescaledRowsYUVA");u(f.Ma<=ce.height)}}f.C=Q,u(f.C<=f.i)}function ba(f){var Q;if(0<f.ua)return 0;for(Q=0;Q<f.Wb;++Q){var ce=f.Ya[Q].G,Ue=f.Ya[Q].H;if(0<ce[1][Ue[1]+0].g||0<ce[2][Ue[2]+0].g||0<ce[3][Ue[3]+0].g)return 0}return 1}function Ha(f,Q,ce,Ue,ut,ht){if(f.Z!=0){var mt=f.qd,Ft=f.rd;for(u(rc[f.Z]!=null);Q<ce;++Q)rc[f.Z](mt,Ft,Ue,ut,Ue,ut,ht),mt=Ue,Ft=ut,ut+=ht;f.qd=mt,f.rd=Ft}}function ls(f,Q){var ce=f.l.ma,Ue=ce.Z==0||ce.Z==1?f.l.j:f.C;if(Ue=f.C<Ue?Ue:f.C,u(Q<=f.l.o),Q>Ue){var ut=f.l.width,ht=ce.ca,mt=ce.tb+ut*Ue,Ft=f.V,Rt=f.Ba+f.c*Ue,Kt=f.gc;u(f.ab==1),u(Kt[0].hc==3),Cc(Kt[0],Ue,Q,Ft,Rt,ht,mt),Ha(ce,Ue,Q,ht,mt,ut)}f.C=f.Ma=Q}function Aa(f,Q,ce,Ue,ut,ht,mt){var Ft=f.$/Ue,Rt=f.$%Ue,Kt=f.m,fr=f.s,Wr=ce+f.$,Vr=Wr;ut=ce+Ue*ut;var Ir=ce+Ue*ht,Zn=280+fr.ua,Pn=f.Pb?Ft:16777216,Pr=0<fr.ua?fr.Wa:null,Dr=fr.wc,Wn=Wr<Ir?os(fr,Rt,Ft):null;u(f.C<ht),u(Ir<=ut);var vi=!1;e:for(;;){for(;vi||Wr<Ir;){var qn=0;if(Ft>=Pn){var Vi=Wr-ce;u((Pn=f).Pb),Pn.wd=Pn.m,Pn.xd=Vi,0<Pn.s.ua&&kr(Pn.s.Wa,Pn.s.vb),Pn=Ft+Ws}if(Rt&Dr||(Wn=os(fr,Rt,Ft)),u(Wn!=null),Wn.Qb&&(Q[Wr]=Wn.qb,vi=!0),!vi)if(Wt(Kt),Wn.jc){qn=Kt,Vi=Q;var Gi=Wr,ma=Wn.pd[_e(qn)&Eo-1];u(Wn.jc),256>ma.g?(Ht(qn,qn.u+ma.g),Vi[Gi]=ma.value,qn=0):(Ht(qn,qn.u+ma.g-256),u(256<=ma.value),qn=ma.value),qn==0&&(vi=!0)}else qn=li(Wn.G[0],Wn.H[0],Kt);if(Kt.h)break;if(vi||256>qn){if(!vi)if(Wn.nd)Q[Wr]=(Wn.qb|qn<<8)>>>0;else{if(Wt(Kt),vi=li(Wn.G[1],Wn.H[1],Kt),Wt(Kt),Vi=li(Wn.G[2],Wn.H[2],Kt),Gi=li(Wn.G[3],Wn.H[3],Kt),Kt.h)break;Q[Wr]=(Gi<<24|vi<<16|qn<<8|Vi)>>>0}if(vi=!1,++Wr,++Rt>=Ue&&(Rt=0,++Ft,mt!=null&&Ft<=ht&&!(Ft%16)&&mt(f,Ft),Pr!=null))for(;Vr<Wr;)qn=Q[Vr++],Pr.X[(506832829*qn&4294967295)>>>Pr.Mb]=qn}else if(280>qn){if(qn=Fa(qn-256,Kt),Vi=li(Wn.G[4],Wn.H[4],Kt),Wt(Kt),Vi=Ba(Ue,Vi=Fa(Vi,Kt)),Kt.h)break;if(Wr-ce<Vi||ut-Wr<qn)break e;for(Gi=0;Gi<qn;++Gi)Q[Wr+Gi]=Q[Wr+Gi-Vi];for(Wr+=qn,Rt+=qn;Rt>=Ue;)Rt-=Ue,++Ft,mt!=null&&Ft<=ht&&!(Ft%16)&&mt(f,Ft);if(u(Wr<=ut),Rt&Dr&&(Wn=os(fr,Rt,Ft)),Pr!=null)for(;Vr<Wr;)qn=Q[Vr++],Pr.X[(506832829*qn&4294967295)>>>Pr.Mb]=qn}else{if(!(qn<Zn))break e;for(vi=qn-280,u(Pr!=null);Vr<Wr;)qn=Q[Vr++],Pr.X[(506832829*qn&4294967295)>>>Pr.Mb]=qn;qn=Wr,u(!(vi>>>(Vi=Pr).Xa)),Q[qn]=Vi.X[vi],vi=!0}vi||u(Kt.h==wt(Kt))}if(f.Pb&&Kt.h&&Wr<ut)u(f.m.h),f.a=5,f.m=f.wd,f.$=f.xd,0<f.s.ua&&kr(f.s.vb,f.s.Wa);else{if(Kt.h)break e;mt!=null&&mt(f,Ft>ht?ht:Ft),f.a=0,f.$=Wr-ce}return 1}return f.a=3,0}function Ts(f){u(f!=null),f.vc=null,f.yc=null,f.Ya=null;var Q=f.Wa;Q!=null&&(Q.X=null),f.vb=null,u(f!=null)}function ys(){var f=new wc;return f==null?null:(f.a=0,f.xb=tA,nn("Predictor","VP8LPredictors"),nn("Predictor","VP8LPredictors_C"),nn("PredictorAdd","VP8LPredictorsAdd"),nn("PredictorAdd","VP8LPredictorsAdd_C"),Ql=w,iu=K,ul=je,Uo=xt,Uu=bt,au=Xt,su=Ar,Sr.VP8LMapColor32b=qu,Sr.VP8LMapColor8b=Mu,f)}function Hs(f,Q,ce,Ue,ut){var ht=1,mt=[f],Ft=[Q],Rt=Ue.m,Kt=Ue.s,fr=null,Wr=0;e:for(;;){if(ce)for(;ht&&$t(Rt,1);){var Vr=mt,Ir=Ft,Zn=Ue,Pn=1,Pr=Zn.m,Dr=Zn.gc[Zn.ab],Wn=$t(Pr,2);if(Zn.Oc&1<<Wn)ht=0;else{switch(Zn.Oc|=1<<Wn,Dr.hc=Wn,Dr.Ea=Vr[0],Dr.nc=Ir[0],Dr.K=[null],++Zn.ab,u(4>=Zn.ab),Wn){case 0:case 1:Dr.b=$t(Pr,3)+2,Pn=Hs(Fn(Dr.Ea,Dr.b),Fn(Dr.nc,Dr.b),0,Zn,Dr.K),Dr.K=Dr.K[0];break;case 3:var vi,qn=$t(Pr,8)+1,Vi=16<qn?0:4<qn?1:2<qn?2:3;if(Vr[0]=Fn(Dr.Ea,Vi),Dr.b=Vi,vi=Pn=Hs(qn,1,0,Zn,Dr.K)){var Gi,ma=qn,Yi=Dr,Is=1<<(8>>Yi.b),Ds=W(Is);if(Ds==null)vi=0;else{var ds=Yi.K[0],us=Yi.w;for(Ds[0]=Yi.K[0][0],Gi=1;Gi<1*ma;++Gi)Ds[Gi]=ln(ds[us+Gi],Ds[Gi-1]);for(;Gi<4*Is;++Gi)Ds[Gi]=0;Yi.K[0]=null,Yi.K[0]=Ds,vi=1}}Pn=vi;break;case 2:break;default:u(0)}ht=Pn}}if(mt=mt[0],Ft=Ft[0],ht&&$t(Rt,1)&&!(ht=1<=(Wr=$t(Rt,4))&&11>=Wr)){Ue.a=3;break e}var Ls;if(Ls=ht)t:{var Us,Za,tl,lu=Ue,rl=mt,uu=Ft,uo=Wr,Bu=ce,Su=lu.m,ml=lu.s,Fl=[null],Gl=1,ju=0,vc=hs[uo];r:for(;;){if(Bu&&$t(Su,1)){var gl=$t(Su,3)+2,Bc=Fn(rl,gl),Qc=Fn(uu,gl),Kc=Bc*Qc;if(!Hs(Bc,Qc,0,lu,Fl))break r;for(Fl=Fl[0],ml.xc=gl,Us=0;Us<Kc;++Us){var Lc=Fl[Us]>>8&65535;Fl[Us]=Lc,Lc>=Gl&&(Gl=Lc+1)}}if(Su.h)break r;for(Za=0;5>Za;++Za){var Zo=Ks[Za];!Za&&0<uo&&(Zo+=1<<uo),ju<Zo&&(ju=Zo)}var xA=ge(Gl*vc,nr),DA=Gl,LA=ge(DA,xe);if(LA==null)var oA=null;else u(65536>=DA),oA=LA;var Yc=W(ju);if(oA==null||Yc==null||xA==null){lu.a=1;break r}var lA=xA;for(Us=tl=0;Us<Gl;++Us){var nc=oA[Us],zc=nc.G,Gc=nc.H,RA=0,uA=1,OA=0;for(Za=0;5>Za;++Za){Zo=Ks[Za],zc[Za]=lA,Gc[Za]=tl,!Za&&0<uo&&(Zo+=1<<uo);i:{var cA,EA=Zo,AA=lu,Xc=Yc,VA=lA,YA=tl,CA=0,Rc=AA.m,XA=$t(Rc,1);if(ne(Xc,0,0,EA),XA){var JA=$t(Rc,1)+1,qA=$t(Rc,1),PA=$t(Rc,qA==0?1:8);Xc[PA]=1,JA==2&&(Xc[PA=$t(Rc,8)]=1);var dA=1}else{var NA=W(19),kA=$t(Rc,4)+4;if(19<kA){AA.a=3;var fA=0;break i}for(cA=0;cA<kA;++cA)NA[oa[cA]]=$t(Rc,3);var _A=void 0,Jc=void 0,MA=AA,e0=NA,hA=EA,UA=Xc,BA=0,Oc=MA.m,QA=8,jA=ge(128,nr);n:for(;er(jA,0,7,e0,19);){if($t(Oc,1)){var t0=2+2*$t(Oc,3);if((_A=2+$t(Oc,t0))>hA)break n}else _A=hA;for(Jc=0;Jc<hA&&_A--;){Wt(Oc);var HA=jA[0+(127&_e(Oc))];Ht(Oc,Oc.u+HA.g);var Zc=HA.value;if(16>Zc)UA[Jc++]=Zc,Zc!=0&&(QA=Zc);else{var r0=Zc==16,$A=Zc-16,n0=Fs[$A],KA=$t(Oc,Ra[$A])+n0;if(Jc+KA>hA)break n;for(var i0=r0?QA:0;0<KA--;)UA[Jc++]=i0}}BA=1;break n}BA||(MA.a=3),dA=BA}(dA=dA&&!Rc.h)&&(CA=er(VA,YA,8,Xc,EA)),dA&&CA!=0?fA=CA:(AA.a=3,fA=0)}if(fA==0)break r;if(uA&&ha[Za]==1&&(uA=lA[tl].g==0),RA+=lA[tl].g,tl+=fA,3>=Za){var qc,SA=Yc[0];for(qc=1;qc<Zo;++qc)Yc[qc]>SA&&(SA=Yc[qc]);OA+=SA}}if(nc.nd=uA,nc.Qb=0,uA&&(nc.qb=(zc[3][Gc[3]+0].value<<24|zc[1][Gc[1]+0].value<<16|zc[2][Gc[2]+0].value)>>>0,RA==0&&256>zc[0][Gc[0]+0].value&&(nc.Qb=1,nc.qb+=zc[0][Gc[0]+0].value<<8)),nc.jc=!nc.Qb&&6>OA,nc.jc){var pA,Sc=nc;for(pA=0;pA<Eo;++pA){var Pc=pA,Nc=Sc.pd[Pc],mA=Sc.G[0][Sc.H[0]+Pc];256<=mA.value?(Nc.g=mA.g+256,Nc.value=mA.value):(Nc.g=0,Nc.value=0,Pc>>=$a(mA,8,Nc),Pc>>=$a(Sc.G[1][Sc.H[1]+Pc],16,Nc),Pc>>=$a(Sc.G[2][Sc.H[2]+Pc],0,Nc),$a(Sc.G[3][Sc.H[3]+Pc],24,Nc))}}}ml.vc=Fl,ml.Wb=Gl,ml.Ya=oA,ml.yc=xA,Ls=1;break t}Ls=0}if(!(ht=Ls)){Ue.a=3;break e}if(0<Wr){if(Kt.ua=1<<Wr,!ni(Kt.Wa,Wr)){Ue.a=1,ht=0;break e}}else Kt.ua=0;var IA=Ue,zA=mt,a0=Ft,TA=IA.s,FA=TA.xc;if(IA.c=zA,IA.i=a0,TA.md=Fn(zA,FA),TA.wc=FA==0?-1:(1<<FA)-1,ce){Ue.xb=eA;break e}if((fr=W(mt*Ft))==null){Ue.a=1,ht=0;break e}ht=(ht=Aa(Ue,fr,0,mt,Ft,Ft,null))&&!Rt.h;break e}return ht?(ut!=null?ut[0]=fr:(u(fr==null),u(ce)),Ue.$=0,ce||Ts(Kt)):Ts(Kt),ht}function Zs(f,Q){var ce=f.c*f.i,Ue=ce+Q+16*Q;return u(f.c<=Q),f.V=W(Ue),f.V==null?(f.Ta=null,f.Ua=0,f.a=1,0):(f.Ta=f.V,f.Ua=f.Ba+ce+Q,1)}function Xs(f,Q){var ce=f.C,Ue=Q-ce,ut=f.V,ht=f.Ba+f.c*ce;for(u(Q<=f.l.o);0<Ue;){var mt=16<Ue?16:Ue,Ft=f.l.ma,Rt=f.l.width,Kt=Rt*mt,fr=Ft.ca,Wr=Ft.tb+Rt*ce,Vr=f.Ta,Ir=f.Ua;sa(f,mt,ut,ht),Oe(Vr,Ir,fr,Wr,Kt),Ha(Ft,ce,ce+mt,fr,Wr,Rt),Ue-=mt,ut+=mt*f.c,ce+=mt}u(ce==Q),f.C=f.Ma=Q}function Wo(){this.ub=this.yd=this.td=this.Rb=0}function $o(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ho(){this.Fb=this.Bb=this.Cb=0,this.Zb=W(4),this.Lb=W(4)}function oo(){this.Yb=function(){var f=[];return function Q(ce,Ue,ut){for(var ht=ut[Ue],mt=0;mt<ht&&(ce.push(ut.length>Ue+1?[]:0),!(ut.length<Ue+1));mt++)Q(ce[mt],Ue+1,ut)}(f,0,[3,11]),f}()}function ro(){this.jb=W(3),this.Wc=Le([4,8],oo),this.Xc=Le([4,17],oo)}function $s(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new W(4),this.od=new W(4)}function qa(){this.ld=this.La=this.dd=this.tc=0}function al(){this.Na=this.la=0}function $l(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Vo(){this.ad=W(384),this.Za=0,this.Ob=W(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Jo(){this.uc=this.M=this.Nb=0,this.wa=Array(new qa),this.Y=0,this.ya=Array(new Vo),this.aa=0,this.l=new Ma}function fu(){this.y=W(16),this.f=W(8),this.ea=W(8)}function Iu(){this.cb=this.a=0,this.sc="",this.m=new sr,this.Od=new Wo,this.Kc=new $o,this.ed=new $s,this.Qa=new ho,this.Ic=this.$c=this.Aa=0,this.D=new Jo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ge(8,sr),this.ia=0,this.pb=ge(4,$l),this.Pa=new ro,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new fu),this.Hd=0,this.rb=Array(new al),this.sb=0,this.wa=Array(new qa),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Vo),this.L=this.aa=0,this.gd=Le([4,2],qa),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ma(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Bs(){var f=new Iu;return f!=null&&(f.a=0,f.sc="OK",f.cb=0,f.Xb=0,Fo||(Fo=Ro)),f}function es(f,Q,ce){return f.a==0&&(f.a=Q,f.sc=ce,f.cb=0),0}function Ss(f,Q,ce){return 3<=ce&&f[Q+0]==157&&f[Q+1]==1&&f[Q+2]==42}function wo(f,Q){if(f==null)return 0;if(f.a=0,f.sc="OK",Q==null)return es(f,2,"null VP8Io passed to VP8GetHeaders()");var ce=Q.data,Ue=Q.w,ut=Q.ha;if(4>ut)return es(f,7,"Truncated header.");var ht=ce[Ue+0]|ce[Ue+1]<<8|ce[Ue+2]<<16,mt=f.Od;if(mt.Rb=!(1&ht),mt.td=ht>>1&7,mt.yd=ht>>4&1,mt.ub=ht>>5,3<mt.td)return es(f,3,"Incorrect keyframe parameters.");if(!mt.yd)return es(f,4,"Frame not displayable.");Ue+=3,ut-=3;var Ft=f.Kc;if(mt.Rb){if(7>ut)return es(f,7,"cannot parse picture header");if(!Ss(ce,Ue,ut))return es(f,3,"Bad code word");Ft.c=16383&(ce[Ue+4]<<8|ce[Ue+3]),Ft.Td=ce[Ue+4]>>6,Ft.i=16383&(ce[Ue+6]<<8|ce[Ue+5]),Ft.Ud=ce[Ue+6]>>6,Ue+=7,ut-=7,f.za=Ft.c+15>>4,f.Ub=Ft.i+15>>4,Q.width=Ft.c,Q.height=Ft.i,Q.Da=0,Q.j=0,Q.v=0,Q.va=Q.width,Q.o=Q.height,Q.da=0,Q.ib=Q.width,Q.hb=Q.height,Q.U=Q.width,Q.T=Q.height,ne((ht=f.Pa).jb,0,255,ht.jb.length),u((ht=f.Qa)!=null),ht.Cb=0,ht.Bb=0,ht.Fb=1,ne(ht.Zb,0,0,ht.Zb.length),ne(ht.Lb,0,0,ht.Lb)}if(mt.ub>ut)return es(f,7,"bad partition length");et(ht=f.m,ce,Ue,mt.ub),Ue+=mt.ub,ut-=mt.ub,mt.Rb&&(Ft.Ld=St(ht),Ft.Kd=St(ht)),Ft=f.Qa;var Rt,Kt=f.Pa;if(u(ht!=null),u(Ft!=null),Ft.Cb=St(ht),Ft.Cb){if(Ft.Bb=St(ht),St(ht)){for(Ft.Fb=St(ht),Rt=0;4>Rt;++Rt)Ft.Zb[Rt]=St(ht)?gt(ht,7):0;for(Rt=0;4>Rt;++Rt)Ft.Lb[Rt]=St(ht)?gt(ht,6):0}if(Ft.Bb)for(Rt=0;3>Rt;++Rt)Kt.jb[Rt]=St(ht)?st(ht,8):255}else Ft.Bb=0;if(ht.Ka)return es(f,3,"cannot parse segment header");if((Ft=f.ed).zd=St(ht),Ft.Tb=st(ht,6),Ft.wb=st(ht,3),Ft.Pc=St(ht),Ft.Pc&&St(ht)){for(Kt=0;4>Kt;++Kt)St(ht)&&(Ft.vd[Kt]=gt(ht,6));for(Kt=0;4>Kt;++Kt)St(ht)&&(Ft.od[Kt]=gt(ht,6))}if(f.L=Ft.Tb==0?0:Ft.zd?1:2,ht.Ka)return es(f,3,"cannot parse filter header");var fr=ut;if(ut=Rt=Ue,Ue=Rt+fr,Ft=fr,f.Xb=(1<<st(f.m,2))-1,fr<3*(Kt=f.Xb))ce=7;else{for(Rt+=3*Kt,Ft-=3*Kt,fr=0;fr<Kt;++fr){var Wr=ce[ut+0]|ce[ut+1]<<8|ce[ut+2]<<16;Wr>Ft&&(Wr=Ft),et(f.Jc[+fr],ce,Rt,Wr),Rt+=Wr,Ft-=Wr,ut+=3}et(f.Jc[+Kt],ce,Rt,Ft),ce=Rt<Ue?0:5}if(ce!=0)return es(f,ce,"cannot parse partitions");for(ce=st(Rt=f.m,7),ut=St(Rt)?gt(Rt,4):0,Ue=St(Rt)?gt(Rt,4):0,Ft=St(Rt)?gt(Rt,4):0,Kt=St(Rt)?gt(Rt,4):0,Rt=St(Rt)?gt(Rt,4):0,fr=f.Qa,Wr=0;4>Wr;++Wr){if(fr.Cb){var Vr=fr.Zb[Wr];fr.Fb||(Vr+=ce)}else{if(0<Wr){f.pb[Wr]=f.pb[0];continue}Vr=ce}var Ir=f.pb[Wr];Ir.Sc[0]=lo[el(Vr+ut,127)],Ir.Sc[1]=Ms[el(Vr+0,127)],Ir.Eb[0]=2*lo[el(Vr+Ue,127)],Ir.Eb[1]=101581*Ms[el(Vr+Ft,127)]>>16,8>Ir.Eb[1]&&(Ir.Eb[1]=8),Ir.Qc[0]=lo[el(Vr+Kt,117)],Ir.Qc[1]=Ms[el(Vr+Rt,127)],Ir.lc=Vr+Rt}if(!mt.Rb)return es(f,4,"Not a key frame.");for(St(ht),mt=f.Pa,ce=0;4>ce;++ce){for(ut=0;8>ut;++ut)for(Ue=0;3>Ue;++Ue)for(Ft=0;11>Ft;++Ft)Kt=yr(ht,jc[ce][ut][Ue][Ft])?st(ht,8):Wc[ce][ut][Ue][Ft],mt.Wc[ce][ut].Yb[Ue][Ft]=Kt;for(ut=0;17>ut;++ut)mt.Xc[ce][ut]=mt.Wc[ce][gA[ut]]}return f.kc=St(ht),f.kc&&(f.Bd=st(ht,8)),f.cb=1}function Ro(f,Q,ce,Ue,ut,ht,mt){var Ft=Q[ut].Yb[ce];for(ce=0;16>ut;++ut){if(!yr(f,Ft[ce+0]))return ut;for(;!yr(f,Ft[ce+1]);)if(Ft=Q[++ut].Yb[0],ce=0,ut==16)return 16;var Rt=Q[ut+1].Yb;if(yr(f,Ft[ce+2])){var Kt=f,fr=0;if(yr(Kt,(Vr=Ft)[(Wr=ce)+3]))if(yr(Kt,Vr[Wr+6])){for(Ft=0,Wr=2*(fr=yr(Kt,Vr[Wr+8]))+(Vr=yr(Kt,Vr[Wr+9+fr])),fr=0,Vr=dl[Wr];Vr[Ft];++Ft)fr+=fr+yr(Kt,Vr[Ft]);fr+=3+(8<<Wr)}else yr(Kt,Vr[Wr+7])?(fr=7+2*yr(Kt,165),fr+=yr(Kt,145)):fr=5+yr(Kt,159);else fr=yr(Kt,Vr[Wr+4])?3+yr(Kt,Vr[Wr+5]):2;Ft=Rt[2]}else fr=1,Ft=Rt[1];Rt=mt+_c[ut],0>(Kt=f).b&&lr(Kt);var Wr,Vr=Kt.b,Ir=(Wr=Kt.Ca>>1)-(Kt.I>>Vr)>>31;--Kt.b,Kt.Ca+=Ir,Kt.Ca|=1,Kt.I-=(Wr+1&Ir)<<Vr,ht[Rt]=((fr^Ir)-Ir)*Ue[(0<ut)+0]}return 16}function po(f){var Q=f.rb[f.sb-1];Q.la=0,Q.Na=0,ne(f.zc,0,0,f.zc.length),f.ja=0}function Cl(f,Q){if(f==null)return 0;if(Q==null)return es(f,2,"NULL VP8Io parameter in VP8Decode().");if(!f.cb&&!wo(f,Q))return 0;if(u(f.cb),Q.ac==null||Q.ac(Q)){Q.ob&&(f.L=0);var ce=ar[f.L];if(f.L==2?(f.yb=0,f.zb=0):(f.yb=Q.v-ce>>4,f.zb=Q.j-ce>>4,0>f.yb&&(f.yb=0),0>f.zb&&(f.zb=0)),f.Va=Q.o+15+ce>>4,f.Hb=Q.va+15+ce>>4,f.Hb>f.za&&(f.Hb=f.za),f.Va>f.Ub&&(f.Va=f.Ub),0<f.L){var Ue=f.ed;for(ce=0;4>ce;++ce){var ut;if(f.Qa.Cb){var ht=f.Qa.Lb[ce];f.Qa.Fb||(ht+=Ue.Tb)}else ht=Ue.Tb;for(ut=0;1>=ut;++ut){var mt=f.gd[ce][ut],Ft=ht;if(Ue.Pc&&(Ft+=Ue.vd[0],ut&&(Ft+=Ue.od[0])),0<(Ft=0>Ft?0:63<Ft?63:Ft)){var Rt=Ft;0<Ue.wb&&(Rt=4<Ue.wb?Rt>>2:Rt>>1)>9-Ue.wb&&(Rt=9-Ue.wb),1>Rt&&(Rt=1),mt.dd=Rt,mt.tc=2*Ft+Rt,mt.ld=40<=Ft?2:15<=Ft?1:0}else mt.tc=0;mt.La=ut}}}ce=0}else es(f,6,"Frame setup failed"),ce=f.a;if(ce=ce==0){if(ce){f.$c=0,0<f.Aa||(f.Ic=qr);e:{ce=f.Ic,Ue=4*(Rt=f.za);var Kt=32*Rt,fr=Rt+1,Wr=0<f.L?Rt*(0<f.Aa?2:1):0,Vr=(f.Aa==2?2:1)*Rt;if((mt=Ue+832+(ut=3*(16*ce+ar[f.L])/2*Kt)+(ht=f.Fa!=null&&0<f.Fa.length?f.Kc.c*f.Kc.i:0))!=mt)ce=0;else{if(mt>f.Vb){if(f.Vb=0,f.Ec=W(mt),f.Fc=0,f.Ec==null){ce=es(f,1,"no memory during frame initialization.");break e}f.Vb=mt}mt=f.Ec,Ft=f.Fc,f.Ac=mt,f.Bc=Ft,Ft+=Ue,f.Gd=ge(Kt,fu),f.Hd=0,f.rb=ge(fr+1,al),f.sb=1,f.wa=Wr?ge(Wr,qa):null,f.Y=0,f.D.Nb=0,f.D.wa=f.wa,f.D.Y=f.Y,0<f.Aa&&(f.D.Y+=Rt),u(!0),f.oc=mt,f.pc=Ft,Ft+=832,f.ya=ge(Vr,Vo),f.aa=0,f.D.ya=f.ya,f.D.aa=f.aa,f.Aa==2&&(f.D.aa+=Rt),f.R=16*Rt,f.B=8*Rt,Rt=(Kt=ar[f.L])*f.R,Kt=Kt/2*f.B,f.sa=mt,f.ta=Ft+Rt,f.qa=f.sa,f.ra=f.ta+16*ce*f.R+Kt,f.Ha=f.qa,f.Ia=f.ra+8*ce*f.B+Kt,f.$c=0,Ft+=ut,f.mb=ht?mt:null,f.nb=ht?Ft:null,u(Ft+ht<=f.Fc+f.Vb),po(f),ne(f.Ac,f.Bc,0,Ue),ce=1}}if(ce){if(Q.ka=0,Q.y=f.sa,Q.O=f.ta,Q.f=f.qa,Q.N=f.ra,Q.ea=f.Ha,Q.Vd=f.Ia,Q.fa=f.R,Q.Rc=f.B,Q.F=null,Q.J=0,!Tt){for(ce=-255;255>=ce;++ce)Ye[255+ce]=0>ce?-ce:ce;for(ce=-1020;1020>=ce;++ce)Xe[1020+ce]=-128>ce?-128:127<ce?127:ce;for(ce=-112;112>=ce;++ce)lt[112+ce]=-16>ce?-16:15<ce?15:ce;for(ce=-255;510>=ce;++ce)Ct[255+ce]=0>ce?0:255<ce?255:ce;Tt=1}mc=Ku,Cu=hu,Qu=sl,cl=pu,Hl=Tu,Co=$u,gc=lc,Tc=Go,ec=Mc,Al=cc,d=kc,e=uc,t=Nu,r=ku,i=Pu,s=hl,l=Il,x=Ic,_u[0]=_l,_u[1]=zu,_u[2]=Fu,_u[3]=Du,_u[4]=Lu,_u[5]=Xl,_u[6]=yu,_u[7]=Jl,_u[8]=Ho,_u[9]=Bl,zl[0]=vu,zl[1]=Gu,zl[2]=kl,zl[3]=gu,zl[4]=ko,zl[5]=yc,zl[6]=Zu,tc[0]=ql,tc[1]=Nl,tc[2]=bs,tc[3]=ol,tc[4]=As,tc[5]=Ka,tc[6]=zo,ce=1}else ce=0}ce&&(ce=function(Ir,Zn){for(Ir.M=0;Ir.M<Ir.Va;++Ir.M){var Pn,Pr=Ir.Jc[Ir.M&Ir.Xb],Dr=Ir.m,Wn=Ir;for(Pn=0;Pn<Wn.za;++Pn){var vi=Dr,qn=Wn,Vi=qn.Ac,Gi=qn.Bc+4*Pn,ma=qn.zc,Yi=qn.ya[qn.aa+Pn];if(qn.Qa.Bb?Yi.$b=yr(vi,qn.Pa.jb[0])?2+yr(vi,qn.Pa.jb[2]):yr(vi,qn.Pa.jb[1]):Yi.$b=0,qn.kc&&(Yi.Ad=yr(vi,qn.Bd)),Yi.Za=!yr(vi,145)+0,Yi.Za){var Is=Yi.Ob,Ds=0;for(qn=0;4>qn;++qn){var ds,us=ma[0+qn];for(ds=0;4>ds;++ds){us=Dc[Vi[Gi+ds]][us];for(var Ls=Fc[yr(vi,us[0])];0<Ls;)Ls=Fc[2*Ls+yr(vi,us[Ls])];us=-Ls,Vi[Gi+ds]=us}M(Is,Ds,Vi,Gi,4),Ds+=4,ma[0+qn]=us}}else us=yr(vi,156)?yr(vi,128)?1:3:yr(vi,163)?2:0,Yi.Ob[0]=us,ne(Vi,Gi,us,4),ne(ma,0,us,4);Yi.Dd=yr(vi,142)?yr(vi,114)?yr(vi,183)?1:3:2:0}if(Wn.m.Ka)return es(Ir,7,"Premature end-of-partition0 encountered.");for(;Ir.ja<Ir.za;++Ir.ja){if(Wn=Pr,vi=(Dr=Ir).rb[Dr.sb-1],Vi=Dr.rb[Dr.sb+Dr.ja],Pn=Dr.ya[Dr.aa+Dr.ja],Gi=Dr.kc?Pn.Ad:0)vi.la=Vi.la=0,Pn.Za||(vi.Na=Vi.Na=0),Pn.Hc=0,Pn.Gc=0,Pn.ia=0;else{var Us,Za;if(vi=Vi,Vi=Wn,Gi=Dr.Pa.Xc,ma=Dr.ya[Dr.aa+Dr.ja],Yi=Dr.pb[ma.$b],qn=ma.ad,Is=0,Ds=Dr.rb[Dr.sb-1],us=ds=0,ne(qn,Is,0,384),ma.Za)var tl=0,lu=Gi[3];else{Ls=W(16);var rl=vi.Na+Ds.Na;if(rl=Fo(Vi,Gi[1],rl,Yi.Eb,0,Ls,0),vi.Na=Ds.Na=(0<rl)+0,1<rl)mc(Ls,0,qn,Is);else{var uu=Ls[0]+3>>3;for(Ls=0;256>Ls;Ls+=16)qn[Is+Ls]=uu}tl=1,lu=Gi[0]}var uo=15&vi.la,Bu=15&Ds.la;for(Ls=0;4>Ls;++Ls){var Su=1&Bu;for(uu=Za=0;4>uu;++uu)uo=uo>>1|(Su=(rl=Fo(Vi,lu,rl=Su+(1&uo),Yi.Sc,tl,qn,Is))>tl)<<7,Za=Za<<2|(3<rl?3:1<rl?2:qn[Is+0]!=0),Is+=16;uo>>=4,Bu=Bu>>1|Su<<7,ds=(ds<<8|Za)>>>0}for(lu=uo,tl=Bu>>4,Us=0;4>Us;Us+=2){for(Za=0,uo=vi.la>>4+Us,Bu=Ds.la>>4+Us,Ls=0;2>Ls;++Ls){for(Su=1&Bu,uu=0;2>uu;++uu)rl=Su+(1&uo),uo=uo>>1|(Su=0<(rl=Fo(Vi,Gi[2],rl,Yi.Qc,0,qn,Is)))<<3,Za=Za<<2|(3<rl?3:1<rl?2:qn[Is+0]!=0),Is+=16;uo>>=2,Bu=Bu>>1|Su<<5}us|=Za<<4*Us,lu|=uo<<4<<Us,tl|=(240&Bu)<<Us}vi.la=lu,Ds.la=tl,ma.Hc=ds,ma.Gc=us,ma.ia=43690&us?0:Yi.ia,Gi=!(ds|us)}if(0<Dr.L&&(Dr.wa[Dr.Y+Dr.ja]=Dr.gd[Pn.$b][Pn.Za],Dr.wa[Dr.Y+Dr.ja].La|=!Gi),Wn.Ka)return es(Ir,7,"Premature end-of-file encountered.")}if(po(Ir),Dr=Zn,Wn=1,Pn=(Pr=Ir).D,vi=0<Pr.L&&Pr.M>=Pr.zb&&Pr.M<=Pr.Va,Pr.Aa==0)e:{if(Pn.M=Pr.M,Pn.uc=vi,hc(Pr,Pn),Wn=1,Pn=(Za=Pr.D).Nb,vi=(us=ar[Pr.L])*Pr.R,Vi=us/2*Pr.B,Ls=16*Pn*Pr.R,uu=8*Pn*Pr.B,Gi=Pr.sa,ma=Pr.ta-vi+Ls,Yi=Pr.qa,qn=Pr.ra-Vi+uu,Is=Pr.Ha,Ds=Pr.Ia-Vi+uu,Bu=(uo=Za.M)==0,ds=uo>=Pr.Va-1,Pr.Aa==2&&hc(Pr,Za),Za.uc)for(Su=(rl=Pr).D.M,u(rl.D.uc),Za=rl.yb;Za<rl.Hb;++Za){tl=Za,lu=Su;var ml=(Fl=(Zo=rl).D).Nb;Us=Zo.R;var Fl=Fl.wa[Fl.Y+tl],Gl=Zo.sa,ju=Zo.ta+16*ml*Us+16*tl,vc=Fl.dd,gl=Fl.tc;if(gl!=0)if(u(3<=gl),Zo.L==1)0<tl&&s(Gl,ju,Us,gl+4),Fl.La&&x(Gl,ju,Us,gl),0<lu&&i(Gl,ju,Us,gl+4),Fl.La&&l(Gl,ju,Us,gl);else{var Bc=Zo.B,Qc=Zo.qa,Kc=Zo.ra+8*ml*Bc+8*tl,Lc=Zo.Ha,Zo=Zo.Ia+8*ml*Bc+8*tl;ml=Fl.ld,0<tl&&(Tc(Gl,ju,Us,gl+4,vc,ml),Al(Qc,Kc,Lc,Zo,Bc,gl+4,vc,ml)),Fl.La&&(e(Gl,ju,Us,gl,vc,ml),r(Qc,Kc,Lc,Zo,Bc,gl,vc,ml)),0<lu&&(gc(Gl,ju,Us,gl+4,vc,ml),ec(Qc,Kc,Lc,Zo,Bc,gl+4,vc,ml)),Fl.La&&(d(Gl,ju,Us,gl,vc,ml),t(Qc,Kc,Lc,Zo,Bc,gl,vc,ml))}}if(Pr.ia&&alert("todo:DitherRow"),Dr.put!=null){if(Za=16*uo,uo=16*(uo+1),Bu?(Dr.y=Pr.sa,Dr.O=Pr.ta+Ls,Dr.f=Pr.qa,Dr.N=Pr.ra+uu,Dr.ea=Pr.Ha,Dr.W=Pr.Ia+uu):(Za-=us,Dr.y=Gi,Dr.O=ma,Dr.f=Yi,Dr.N=qn,Dr.ea=Is,Dr.W=Ds),ds||(uo-=us),uo>Dr.o&&(uo=Dr.o),Dr.F=null,Dr.J=null,Pr.Fa!=null&&0<Pr.Fa.length&&Za<uo&&(Dr.J=fc(Pr,Dr,Za,uo-Za),Dr.F=Pr.mb,Dr.F==null&&Dr.F.length==0)){Wn=es(Pr,3,"Could not decode alpha data.");break e}Za<Dr.j&&(us=Dr.j-Za,Za=Dr.j,u(!(1&us)),Dr.O+=Pr.R*us,Dr.N+=Pr.B*(us>>1),Dr.W+=Pr.B*(us>>1),Dr.F!=null&&(Dr.J+=Dr.width*us)),Za<uo&&(Dr.O+=Dr.v,Dr.N+=Dr.v>>1,Dr.W+=Dr.v>>1,Dr.F!=null&&(Dr.J+=Dr.v),Dr.ka=Za-Dr.j,Dr.U=Dr.va-Dr.v,Dr.T=uo-Za,Wn=Dr.put(Dr))}Pn+1!=Pr.Ic||ds||(M(Pr.sa,Pr.ta-vi,Gi,ma+16*Pr.R,vi),M(Pr.qa,Pr.ra-Vi,Yi,qn+8*Pr.B,Vi),M(Pr.Ha,Pr.Ia-Vi,Is,Ds+8*Pr.B,Vi))}if(!Wn)return es(Ir,6,"Output aborted.")}return 1}(f,Q)),Q.bc!=null&&Q.bc(Q),ce&=1}return ce?(f.cb=0,ce):0}function Ko(f,Q,ce,Ue,ut){ut=f[Q+ce+32*Ue]+(ut>>3),f[Q+ce+32*Ue]=-256&ut?0>ut?0:255:ut}function Vl(f,Q,ce,Ue,ut,ht){Ko(f,Q,0,ce,Ue+ut),Ko(f,Q,1,ce,Ue+ht),Ko(f,Q,2,ce,Ue-ht),Ko(f,Q,3,ce,Ue-ut)}function No(f){return(20091*f>>16)+f}function Yl(f,Q,ce,Ue){var ut,ht=0,mt=W(16);for(ut=0;4>ut;++ut){var Ft=f[Q+0]+f[Q+8],Rt=f[Q+0]-f[Q+8],Kt=(35468*f[Q+4]>>16)-No(f[Q+12]),fr=No(f[Q+4])+(35468*f[Q+12]>>16);mt[ht+0]=Ft+fr,mt[ht+1]=Rt+Kt,mt[ht+2]=Rt-Kt,mt[ht+3]=Ft-fr,ht+=4,Q++}for(ut=ht=0;4>ut;++ut)Ft=(f=mt[ht+0]+4)+mt[ht+8],Rt=f-mt[ht+8],Kt=(35468*mt[ht+4]>>16)-No(mt[ht+12]),Ko(ce,Ue,0,0,Ft+(fr=No(mt[ht+4])+(35468*mt[ht+12]>>16))),Ko(ce,Ue,1,0,Rt+Kt),Ko(ce,Ue,2,0,Rt-Kt),Ko(ce,Ue,3,0,Ft-fr),ht++,Ue+=32}function $u(f,Q,ce,Ue){var ut=f[Q+0]+4,ht=35468*f[Q+4]>>16,mt=No(f[Q+4]),Ft=35468*f[Q+1]>>16;Vl(ce,Ue,0,ut+mt,f=No(f[Q+1]),Ft),Vl(ce,Ue,1,ut+ht,f,Ft),Vl(ce,Ue,2,ut-ht,f,Ft),Vl(ce,Ue,3,ut-mt,f,Ft)}function hu(f,Q,ce,Ue,ut){Yl(f,Q,ce,Ue),ut&&Yl(f,Q+16,ce,Ue+4)}function sl(f,Q,ce,Ue){Cu(f,Q+0,ce,Ue,1),Cu(f,Q+32,ce,Ue+128,1)}function pu(f,Q,ce,Ue){var ut;for(f=f[Q+0]+4,ut=0;4>ut;++ut)for(Q=0;4>Q;++Q)Ko(ce,Ue,Q,ut,f)}function Tu(f,Q,ce,Ue){f[Q+0]&&cl(f,Q+0,ce,Ue),f[Q+16]&&cl(f,Q+16,ce,Ue+4),f[Q+32]&&cl(f,Q+32,ce,Ue+128),f[Q+48]&&cl(f,Q+48,ce,Ue+128+4)}function Ku(f,Q,ce,Ue){var ut,ht=W(16);for(ut=0;4>ut;++ut){var mt=f[Q+0+ut]+f[Q+12+ut],Ft=f[Q+4+ut]+f[Q+8+ut],Rt=f[Q+4+ut]-f[Q+8+ut],Kt=f[Q+0+ut]-f[Q+12+ut];ht[0+ut]=mt+Ft,ht[8+ut]=mt-Ft,ht[4+ut]=Kt+Rt,ht[12+ut]=Kt-Rt}for(ut=0;4>ut;++ut)mt=(f=ht[0+4*ut]+3)+ht[3+4*ut],Ft=ht[1+4*ut]+ht[2+4*ut],Rt=ht[1+4*ut]-ht[2+4*ut],Kt=f-ht[3+4*ut],ce[Ue+0]=mt+Ft>>3,ce[Ue+16]=Kt+Rt>>3,ce[Ue+32]=mt-Ft>>3,ce[Ue+48]=Kt-Rt>>3,Ue+=64}function mu(f,Q,ce){var Ue,ut=Q-32,ht=Or,mt=255-f[ut-1];for(Ue=0;Ue<ce;++Ue){var Ft,Rt=ht,Kt=mt+f[Q-1];for(Ft=0;Ft<ce;++Ft)f[Q+Ft]=Rt[Kt+f[ut+Ft]];Q+=32}}function zu(f,Q){mu(f,Q,4)}function Nl(f,Q){mu(f,Q,8)}function Gu(f,Q){mu(f,Q,16)}function kl(f,Q){var ce;for(ce=0;16>ce;++ce)M(f,Q+32*ce,f,Q-32,16)}function gu(f,Q){var ce;for(ce=16;0<ce;--ce)ne(f,Q,f[Q-1],16),Q+=32}function Io(f,Q,ce){var Ue;for(Ue=0;16>Ue;++Ue)ne(Q,ce+32*Ue,f,16)}function vu(f,Q){var ce,Ue=16;for(ce=0;16>ce;++ce)Ue+=f[Q-1+32*ce]+f[Q+ce-32];Io(Ue>>5,f,Q)}function ko(f,Q){var ce,Ue=8;for(ce=0;16>ce;++ce)Ue+=f[Q-1+32*ce];Io(Ue>>4,f,Q)}function yc(f,Q){var ce,Ue=8;for(ce=0;16>ce;++ce)Ue+=f[Q+ce-32];Io(Ue>>4,f,Q)}function Zu(f,Q){Io(128,f,Q)}function Pa(f,Q,ce){return f+2*Q+ce+2>>2}function Fu(f,Q){var ce,Ue=Q-32;for(Ue=new Uint8Array([Pa(f[Ue-1],f[Ue+0],f[Ue+1]),Pa(f[Ue+0],f[Ue+1],f[Ue+2]),Pa(f[Ue+1],f[Ue+2],f[Ue+3]),Pa(f[Ue+2],f[Ue+3],f[Ue+4])]),ce=0;4>ce;++ce)M(f,Q+32*ce,Ue,0,Ue.length)}function Du(f,Q){var ce=f[Q-1],Ue=f[Q-1+32],ut=f[Q-1+64],ht=f[Q-1+96];Gr(f,Q+0,16843009*Pa(f[Q-1-32],ce,Ue)),Gr(f,Q+32,16843009*Pa(ce,Ue,ut)),Gr(f,Q+64,16843009*Pa(Ue,ut,ht)),Gr(f,Q+96,16843009*Pa(ut,ht,ht))}function _l(f,Q){var ce,Ue=4;for(ce=0;4>ce;++ce)Ue+=f[Q+ce-32]+f[Q-1+32*ce];for(Ue>>=3,ce=0;4>ce;++ce)ne(f,Q+32*ce,Ue,4)}function Lu(f,Q){var ce=f[Q-1+0],Ue=f[Q-1+32],ut=f[Q-1+64],ht=f[Q-1-32],mt=f[Q+0-32],Ft=f[Q+1-32],Rt=f[Q+2-32],Kt=f[Q+3-32];f[Q+0+96]=Pa(Ue,ut,f[Q-1+96]),f[Q+1+96]=f[Q+0+64]=Pa(ce,Ue,ut),f[Q+2+96]=f[Q+1+64]=f[Q+0+32]=Pa(ht,ce,Ue),f[Q+3+96]=f[Q+2+64]=f[Q+1+32]=f[Q+0+0]=Pa(mt,ht,ce),f[Q+3+64]=f[Q+2+32]=f[Q+1+0]=Pa(Ft,mt,ht),f[Q+3+32]=f[Q+2+0]=Pa(Rt,Ft,mt),f[Q+3+0]=Pa(Kt,Rt,Ft)}function yu(f,Q){var ce=f[Q+1-32],Ue=f[Q+2-32],ut=f[Q+3-32],ht=f[Q+4-32],mt=f[Q+5-32],Ft=f[Q+6-32],Rt=f[Q+7-32];f[Q+0+0]=Pa(f[Q+0-32],ce,Ue),f[Q+1+0]=f[Q+0+32]=Pa(ce,Ue,ut),f[Q+2+0]=f[Q+1+32]=f[Q+0+64]=Pa(Ue,ut,ht),f[Q+3+0]=f[Q+2+32]=f[Q+1+64]=f[Q+0+96]=Pa(ut,ht,mt),f[Q+3+32]=f[Q+2+64]=f[Q+1+96]=Pa(ht,mt,Ft),f[Q+3+64]=f[Q+2+96]=Pa(mt,Ft,Rt),f[Q+3+96]=Pa(Ft,Rt,Rt)}function Xl(f,Q){var ce=f[Q-1+0],Ue=f[Q-1+32],ut=f[Q-1+64],ht=f[Q-1-32],mt=f[Q+0-32],Ft=f[Q+1-32],Rt=f[Q+2-32],Kt=f[Q+3-32];f[Q+0+0]=f[Q+1+64]=ht+mt+1>>1,f[Q+1+0]=f[Q+2+64]=mt+Ft+1>>1,f[Q+2+0]=f[Q+3+64]=Ft+Rt+1>>1,f[Q+3+0]=Rt+Kt+1>>1,f[Q+0+96]=Pa(ut,Ue,ce),f[Q+0+64]=Pa(Ue,ce,ht),f[Q+0+32]=f[Q+1+96]=Pa(ce,ht,mt),f[Q+1+32]=f[Q+2+96]=Pa(ht,mt,Ft),f[Q+2+32]=f[Q+3+96]=Pa(mt,Ft,Rt),f[Q+3+32]=Pa(Ft,Rt,Kt)}function Jl(f,Q){var ce=f[Q+0-32],Ue=f[Q+1-32],ut=f[Q+2-32],ht=f[Q+3-32],mt=f[Q+4-32],Ft=f[Q+5-32],Rt=f[Q+6-32],Kt=f[Q+7-32];f[Q+0+0]=ce+Ue+1>>1,f[Q+1+0]=f[Q+0+64]=Ue+ut+1>>1,f[Q+2+0]=f[Q+1+64]=ut+ht+1>>1,f[Q+3+0]=f[Q+2+64]=ht+mt+1>>1,f[Q+0+32]=Pa(ce,Ue,ut),f[Q+1+32]=f[Q+0+96]=Pa(Ue,ut,ht),f[Q+2+32]=f[Q+1+96]=Pa(ut,ht,mt),f[Q+3+32]=f[Q+2+96]=Pa(ht,mt,Ft),f[Q+3+64]=Pa(mt,Ft,Rt),f[Q+3+96]=Pa(Ft,Rt,Kt)}function Bl(f,Q){var ce=f[Q-1+0],Ue=f[Q-1+32],ut=f[Q-1+64],ht=f[Q-1+96];f[Q+0+0]=ce+Ue+1>>1,f[Q+2+0]=f[Q+0+32]=Ue+ut+1>>1,f[Q+2+32]=f[Q+0+64]=ut+ht+1>>1,f[Q+1+0]=Pa(ce,Ue,ut),f[Q+3+0]=f[Q+1+32]=Pa(Ue,ut,ht),f[Q+3+32]=f[Q+1+64]=Pa(ut,ht,ht),f[Q+3+64]=f[Q+2+64]=f[Q+0+96]=f[Q+1+96]=f[Q+2+96]=f[Q+3+96]=ht}function Ho(f,Q){var ce=f[Q-1+0],Ue=f[Q-1+32],ut=f[Q-1+64],ht=f[Q-1+96],mt=f[Q-1-32],Ft=f[Q+0-32],Rt=f[Q+1-32],Kt=f[Q+2-32];f[Q+0+0]=f[Q+2+32]=ce+mt+1>>1,f[Q+0+32]=f[Q+2+64]=Ue+ce+1>>1,f[Q+0+64]=f[Q+2+96]=ut+Ue+1>>1,f[Q+0+96]=ht+ut+1>>1,f[Q+3+0]=Pa(Ft,Rt,Kt),f[Q+2+0]=Pa(mt,Ft,Rt),f[Q+1+0]=f[Q+3+32]=Pa(ce,mt,Ft),f[Q+1+32]=f[Q+3+64]=Pa(Ue,ce,mt),f[Q+1+64]=f[Q+3+96]=Pa(ut,Ue,ce),f[Q+1+96]=Pa(ht,ut,Ue)}function bs(f,Q){var ce;for(ce=0;8>ce;++ce)M(f,Q+32*ce,f,Q-32,8)}function ol(f,Q){var ce;for(ce=0;8>ce;++ce)ne(f,Q,f[Q-1],8),Q+=32}function qo(f,Q,ce){var Ue;for(Ue=0;8>Ue;++Ue)ne(Q,ce+32*Ue,f,8)}function ql(f,Q){var ce,Ue=8;for(ce=0;8>ce;++ce)Ue+=f[Q+ce-32]+f[Q-1+32*ce];qo(Ue>>4,f,Q)}function Ka(f,Q){var ce,Ue=4;for(ce=0;8>ce;++ce)Ue+=f[Q+ce-32];qo(Ue>>3,f,Q)}function As(f,Q){var ce,Ue=4;for(ce=0;8>ce;++ce)Ue+=f[Q-1+32*ce];qo(Ue>>3,f,Q)}function zo(f,Q){qo(128,f,Q)}function ll(f,Q,ce){var Ue=f[Q-ce],ut=f[Q+0],ht=3*(ut-Ue)+vr[1020+f[Q-2*ce]-f[Q+ce]],mt=Nr[112+(ht+4>>3)];f[Q-ce]=Or[255+Ue+Nr[112+(ht+3>>3)]],f[Q+0]=Or[255+ut-mt]}function Sl(f,Q,ce,Ue){var ut=f[Q+0],ht=f[Q+ce];return Un[255+f[Q-2*ce]-f[Q-ce]]>Ue||Un[255+ht-ut]>Ue}function Ru(f,Q,ce,Ue){return 4*Un[255+f[Q-ce]-f[Q+0]]+Un[255+f[Q-2*ce]-f[Q+ce]]<=Ue}function Ou(f,Q,ce,Ue,ut){var ht=f[Q-3*ce],mt=f[Q-2*ce],Ft=f[Q-ce],Rt=f[Q+0],Kt=f[Q+ce],fr=f[Q+2*ce],Wr=f[Q+3*ce];return 4*Un[255+Ft-Rt]+Un[255+mt-Kt]>Ue?0:Un[255+f[Q-4*ce]-ht]<=ut&&Un[255+ht-mt]<=ut&&Un[255+mt-Ft]<=ut&&Un[255+Wr-fr]<=ut&&Un[255+fr-Kt]<=ut&&Un[255+Kt-Rt]<=ut}function Pu(f,Q,ce,Ue){var ut=2*Ue+1;for(Ue=0;16>Ue;++Ue)Ru(f,Q+Ue,ce,ut)&&ll(f,Q+Ue,ce)}function hl(f,Q,ce,Ue){var ut=2*Ue+1;for(Ue=0;16>Ue;++Ue)Ru(f,Q+Ue*ce,1,ut)&&ll(f,Q+Ue*ce,1)}function Il(f,Q,ce,Ue){var ut;for(ut=3;0<ut;--ut)Pu(f,Q+=4*ce,ce,Ue)}function Ic(f,Q,ce,Ue){var ut;for(ut=3;0<ut;--ut)hl(f,Q+=4,ce,Ue)}function bu(f,Q,ce,Ue,ut,ht,mt,Ft){for(ht=2*ht+1;0<ut--;){if(Ou(f,Q,ce,ht,mt))if(Sl(f,Q,ce,Ft))ll(f,Q,ce);else{var Rt=f,Kt=Q,fr=ce,Wr=Rt[Kt-2*fr],Vr=Rt[Kt-fr],Ir=Rt[Kt+0],Zn=Rt[Kt+fr],Pn=Rt[Kt+2*fr],Pr=27*(Wn=vr[1020+3*(Ir-Vr)+vr[1020+Wr-Zn]])+63>>7,Dr=18*Wn+63>>7,Wn=9*Wn+63>>7;Rt[Kt-3*fr]=Or[255+Rt[Kt-3*fr]+Wn],Rt[Kt-2*fr]=Or[255+Wr+Dr],Rt[Kt-fr]=Or[255+Vr+Pr],Rt[Kt+0]=Or[255+Ir-Pr],Rt[Kt+fr]=Or[255+Zn-Dr],Rt[Kt+2*fr]=Or[255+Pn-Wn]}Q+=Ue}}function Ml(f,Q,ce,Ue,ut,ht,mt,Ft){for(ht=2*ht+1;0<ut--;){if(Ou(f,Q,ce,ht,mt))if(Sl(f,Q,ce,Ft))ll(f,Q,ce);else{var Rt=f,Kt=Q,fr=ce,Wr=Rt[Kt-fr],Vr=Rt[Kt+0],Ir=Rt[Kt+fr],Zn=Nr[112+((Pn=3*(Vr-Wr))+4>>3)],Pn=Nr[112+(Pn+3>>3)],Pr=Zn+1>>1;Rt[Kt-2*fr]=Or[255+Rt[Kt-2*fr]+Pr],Rt[Kt-fr]=Or[255+Wr+Pn],Rt[Kt+0]=Or[255+Vr-Zn],Rt[Kt+fr]=Or[255+Ir-Pr]}Q+=Ue}}function lc(f,Q,ce,Ue,ut,ht){bu(f,Q,ce,1,16,Ue,ut,ht)}function Go(f,Q,ce,Ue,ut,ht){bu(f,Q,1,ce,16,Ue,ut,ht)}function kc(f,Q,ce,Ue,ut,ht){var mt;for(mt=3;0<mt;--mt)Ml(f,Q+=4*ce,ce,1,16,Ue,ut,ht)}function uc(f,Q,ce,Ue,ut,ht){var mt;for(mt=3;0<mt;--mt)Ml(f,Q+=4,1,ce,16,Ue,ut,ht)}function Mc(f,Q,ce,Ue,ut,ht,mt,Ft){bu(f,Q,ut,1,8,ht,mt,Ft),bu(ce,Ue,ut,1,8,ht,mt,Ft)}function cc(f,Q,ce,Ue,ut,ht,mt,Ft){bu(f,Q,1,ut,8,ht,mt,Ft),bu(ce,Ue,1,ut,8,ht,mt,Ft)}function Nu(f,Q,ce,Ue,ut,ht,mt,Ft){Ml(f,Q+4*ut,ut,1,8,ht,mt,Ft),Ml(ce,Ue+4*ut,ut,1,8,ht,mt,Ft)}function ku(f,Q,ce,Ue,ut,ht,mt,Ft){Ml(f,Q+4,1,ut,8,ht,mt,Ft),Ml(ce,Ue+4,1,ut,8,ht,mt,Ft)}function Ac(){this.ba=new Mn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new wi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function dc(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Wu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function bc(){this.ua=0,this.Wa=new ir,this.vb=new ir,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new xe,this.yc=new nr}function wc(){this.xb=this.a=0,this.l=new Ma,this.ca=new Mn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Ze,this.Pb=0,this.wd=new Ze,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new bc,this.ab=0,this.gc=ge(4,Wu),this.Oc=0}function wu(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ma,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xu(f,Q,ce,Ue,ut,ht,mt){for(f=f==null?0:f[Q+0],Q=0;Q<mt;++Q)ut[ht+Q]=f+ce[Ue+Q]&255,f=ut[ht+Q]}function eu(f,Q,ce,Ue,ut,ht,mt){var Ft;if(f==null)xu(null,null,ce,Ue,ut,ht,mt);else for(Ft=0;Ft<mt;++Ft)ut[ht+Ft]=f[Q+Ft]+ce[Ue+Ft]&255}function tu(f,Q,ce,Ue,ut,ht,mt){if(f==null)xu(null,null,ce,Ue,ut,ht,mt);else{var Ft,Rt=f[Q+0],Kt=Rt,fr=Rt;for(Ft=0;Ft<mt;++Ft)Kt=fr+(Rt=f[Q+Ft])-Kt,fr=ce[Ue+Ft]+(-256&Kt?0>Kt?0:255:Kt)&255,Kt=Rt,ut[ht+Ft]=fr}}function fc(f,Q,ce,Ue){var ut=Q.width,ht=Q.o;if(u(f!=null&&Q!=null),0>ce||0>=Ue||ce+Ue>ht)return null;if(!f.Cc){if(f.ga==null){var mt;if(f.ga=new wu,(mt=f.ga==null)||(mt=Q.width*Q.o,u(f.Gb.length==0),f.Gb=W(mt),f.Uc=0,f.Gb==null?mt=0:(f.mb=f.Gb,f.nb=f.Uc,f.rc=null,mt=1),mt=!mt),!mt){mt=f.ga;var Ft=f.Fa,Rt=f.P,Kt=f.qc,fr=f.mb,Wr=f.nb,Vr=Rt+1,Ir=Kt-1,Zn=mt.l;if(u(Ft!=null&&fr!=null&&Q!=null),rc[0]=null,rc[1]=xu,rc[2]=eu,rc[3]=tu,mt.ca=fr,mt.tb=Wr,mt.c=Q.width,mt.i=Q.height,u(0<mt.c&&0<mt.i),1>=Kt)Q=0;else if(mt.$a=Ft[Rt+0]>>0&3,mt.Z=Ft[Rt+0]>>2&3,mt.Lc=Ft[Rt+0]>>4&3,Rt=Ft[Rt+0]>>6&3,0>mt.$a||1<mt.$a||4<=mt.Z||1<mt.Lc||Rt)Q=0;else if(Zn.put=Ia,Zn.ac=Ki,Zn.bc=Ta,Zn.ma=mt,Zn.width=Q.width,Zn.height=Q.height,Zn.Da=Q.Da,Zn.v=Q.v,Zn.va=Q.va,Zn.j=Q.j,Zn.o=Q.o,mt.$a)e:{u(mt.$a==1),Q=ys();t:for(;;){if(Q==null){Q=0;break e}if(u(mt!=null),mt.mc=Q,Q.c=mt.c,Q.i=mt.i,Q.l=mt.l,Q.l.ma=mt,Q.l.width=mt.c,Q.l.height=mt.i,Q.a=0,ft(Q.m,Ft,Vr,Ir),!Hs(mt.c,mt.i,1,Q,null)||(Q.ab==1&&Q.gc[0].hc==3&&ba(Q.s)?(mt.ic=1,Ft=Q.c*Q.i,Q.Ta=null,Q.Ua=0,Q.V=W(Ft),Q.Ba=0,Q.V==null?(Q.a=1,Q=0):Q=1):(mt.ic=0,Q=Zs(Q,mt.c)),!Q))break t;Q=1;break e}mt.mc=null,Q=0}else Q=Ir>=mt.c*mt.i;mt=!Q}if(mt)return null;f.ga.Lc!=1?f.Ga=0:Ue=ht-ce}u(f.ga!=null),u(ce+Ue<=ht);e:{if(Q=(Ft=f.ga).c,ht=Ft.l.o,Ft.$a==0){if(Vr=f.rc,Ir=f.Vc,Zn=f.Fa,Rt=f.P+1+ce*Q,Kt=f.mb,fr=f.nb+ce*Q,u(Rt<=f.P+f.qc),Ft.Z!=0)for(u(rc[Ft.Z]!=null),mt=0;mt<Ue;++mt)rc[Ft.Z](Vr,Ir,Zn,Rt,Kt,fr,Q),Vr=Kt,Ir=fr,fr+=Q,Rt+=Q;else for(mt=0;mt<Ue;++mt)M(Kt,fr,Zn,Rt,Q),Vr=Kt,Ir=fr,fr+=Q,Rt+=Q;f.rc=Vr,f.Vc=Ir}else{if(u(Ft.mc!=null),Q=ce+Ue,u((mt=Ft.mc)!=null),u(Q<=mt.i),mt.C>=Q)Q=1;else if(Ft.ic||un(),Ft.ic){Ft=mt.V,Vr=mt.Ba,Ir=mt.c;var Pn=mt.i,Pr=(Zn=1,Rt=mt.$/Ir,Kt=mt.$%Ir,fr=mt.m,Wr=mt.s,mt.$),Dr=Ir*Pn,Wn=Ir*Q,vi=Wr.wc,qn=Pr<Wn?os(Wr,Kt,Rt):null;u(Pr<=Dr),u(Q<=Pn),u(ba(Wr));t:for(;;){for(;!fr.h&&Pr<Wn;){if(Kt&vi||(qn=os(Wr,Kt,Rt)),u(qn!=null),Wt(fr),256>(Pn=li(qn.G[0],qn.H[0],fr)))Ft[Vr+Pr]=Pn,++Pr,++Kt>=Ir&&(Kt=0,++Rt<=Q&&!(Rt%16)&&ls(mt,Rt));else{if(!(280>Pn)){Zn=0;break t}Pn=Fa(Pn-256,fr);var Vi,Gi=li(qn.G[4],qn.H[4],fr);if(Wt(fr),!(Pr>=(Gi=Ba(Ir,Gi=Fa(Gi,fr)))&&Dr-Pr>=Pn)){Zn=0;break t}for(Vi=0;Vi<Pn;++Vi)Ft[Vr+Pr+Vi]=Ft[Vr+Pr+Vi-Gi];for(Pr+=Pn,Kt+=Pn;Kt>=Ir;)Kt-=Ir,++Rt<=Q&&!(Rt%16)&&ls(mt,Rt);Pr<Wn&&Kt&vi&&(qn=os(Wr,Kt,Rt))}u(fr.h==wt(fr))}ls(mt,Rt>Q?Q:Rt);break t}!Zn||fr.h&&Pr<Dr?(Zn=0,mt.a=fr.h?5:3):mt.$=Pr,Q=Zn}else Q=Aa(mt,mt.V,mt.Ba,mt.c,mt.i,Q,Xs);if(!Q){Ue=0;break e}}ce+Ue>=ht&&(f.Cc=1),Ue=1}if(!Ue)return null;if(f.Cc&&((Ue=f.ga)!=null&&(Ue.mc=null),f.ga=null,0<f.Ga))return alert("todo:WebPDequantizeLevels"),null}return f.nb+ce*ut}function de(f,Q,ce,Ue,ut,ht){for(;0<ut--;){var mt,Ft=f,Rt=Q+(ce?1:0),Kt=f,fr=Q+(ce?0:3);for(mt=0;mt<Ue;++mt){var Wr=Kt[fr+4*mt];Wr!=255&&(Wr*=32897,Ft[Rt+4*mt+0]=Ft[Rt+4*mt+0]*Wr>>23,Ft[Rt+4*mt+1]=Ft[Rt+4*mt+1]*Wr>>23,Ft[Rt+4*mt+2]=Ft[Rt+4*mt+2]*Wr>>23)}Q+=ht}}function Et(f,Q,ce,Ue,ut){for(;0<Ue--;){var ht;for(ht=0;ht<ce;++ht){var mt=f[Q+2*ht+0],Ft=15&(Kt=f[Q+2*ht+1]),Rt=4369*Ft,Kt=(240&Kt|Kt>>4)*Rt>>16;f[Q+2*ht+0]=(240&mt|mt>>4)*Rt>>16&240|(15&mt|mt<<4)*Rt>>16>>4&15,f[Q+2*ht+1]=240&Kt|Ft}Q+=ut}}function gr(f,Q,ce,Ue,ut,ht,mt,Ft){var Rt,Kt,fr=255;for(Kt=0;Kt<ut;++Kt){for(Rt=0;Rt<Ue;++Rt){var Wr=f[Q+Rt];ht[mt+4*Rt]=Wr,fr&=Wr}Q+=ce,mt+=Ft}return fr!=255}function Rr(f,Q,ce,Ue,ut){var ht;for(ht=0;ht<ut;++ht)ce[Ue+ht]=f[Q+ht]>>8}function un(){j=de,q=Et,Ae=gr,Oe=Rr}function Kn(f,Q,ce){Sr[f]=function(Ue,ut,ht,mt,Ft,Rt,Kt,fr,Wr,Vr,Ir,Zn,Pn,Pr,Dr,Wn,vi){var qn,Vi=vi-1>>1,Gi=Ft[Rt+0]|Kt[fr+0]<<16,ma=Wr[Vr+0]|Ir[Zn+0]<<16;u(Ue!=null);var Yi=3*Gi+ma+131074>>2;for(Q(Ue[ut+0],255&Yi,Yi>>16,Pn,Pr),ht!=null&&(Yi=3*ma+Gi+131074>>2,Q(ht[mt+0],255&Yi,Yi>>16,Dr,Wn)),qn=1;qn<=Vi;++qn){var Is=Ft[Rt+qn]|Kt[fr+qn]<<16,Ds=Wr[Vr+qn]|Ir[Zn+qn]<<16,ds=Gi+Is+ma+Ds+524296,us=ds+2*(Is+ma)>>3;Yi=us+Gi>>1,Gi=(ds=ds+2*(Gi+Ds)>>3)+Is>>1,Q(Ue[ut+2*qn-1],255&Yi,Yi>>16,Pn,Pr+(2*qn-1)*ce),Q(Ue[ut+2*qn-0],255&Gi,Gi>>16,Pn,Pr+(2*qn-0)*ce),ht!=null&&(Yi=ds+ma>>1,Gi=us+Ds>>1,Q(ht[mt+2*qn-1],255&Yi,Yi>>16,Dr,Wn+(2*qn-1)*ce),Q(ht[mt+2*qn+0],255&Gi,Gi>>16,Dr,Wn+(2*qn+0)*ce)),Gi=Is,ma=Ds}1&vi||(Yi=3*Gi+ma+131074>>2,Q(Ue[ut+vi-1],255&Yi,Yi>>16,Pn,Pr+(vi-1)*ce),ht!=null&&(Yi=3*ma+Gi+131074>>2,Q(ht[mt+vi-1],255&Yi,Yi>>16,Dr,Wn+(vi-1)*ce)))}}function Ci(){ou[cn]=vA,ou[gi]=rA,ou[zn]=yA,ou[Ii]=nA,ou[ea]=iA,ou[mi]=aA,ou[Oi]=bA,ou[Ga]=rA,ou[ia]=nA,ou[ja]=iA,ou[Ua]=aA}function na(f){return f&~wA?0>f?0:255:f>>sA}function va(f,Q){return na((19077*f>>8)+(26149*Q>>8)-14234)}function Va(f,Q,ce){return na((19077*f>>8)-(6419*Q>>8)-(13320*ce>>8)+8708)}function za(f,Q){return na((19077*f>>8)+(33050*Q>>8)-17685)}function ws(f,Q,ce,Ue,ut){Ue[ut+0]=va(f,ce),Ue[ut+1]=Va(f,Q,ce),Ue[ut+2]=za(f,Q)}function mo(f,Q,ce,Ue,ut){Ue[ut+0]=za(f,Q),Ue[ut+1]=Va(f,Q,ce),Ue[ut+2]=va(f,ce)}function xo(f,Q,ce,Ue,ut){var ht=Va(f,Q,ce);Q=ht<<3&224|za(f,Q)>>3,Ue[ut+0]=248&va(f,ce)|ht>>5,Ue[ut+1]=Q}function To(f,Q,ce,Ue,ut){var ht=240&za(f,Q)|15;Ue[ut+0]=240&va(f,ce)|Va(f,Q,ce)>>4,Ue[ut+1]=ht}function Yo(f,Q,ce,Ue,ut){Ue[ut+0]=255,ws(f,Q,ce,Ue,ut+1)}function Mo(f,Q,ce,Ue,ut){mo(f,Q,ce,Ue,ut),Ue[ut+3]=255}function Kl(f,Q,ce,Ue,ut){ws(f,Q,ce,Ue,ut),Ue[ut+3]=255}function el(f,Q){return 0>f?0:f>Q?Q:f}function Tl(f,Q,ce){Sr[f]=function(Ue,ut,ht,mt,Ft,Rt,Kt,fr,Wr){for(var Vr=fr+(-2&Wr)*ce;fr!=Vr;)Q(Ue[ut+0],ht[mt+0],Ft[Rt+0],Kt,fr),Q(Ue[ut+1],ht[mt+0],Ft[Rt+0],Kt,fr+ce),ut+=2,++mt,++Rt,fr+=2*ce;1&Wr&&Q(Ue[ut+0],ht[mt+0],Ft[Rt+0],Kt,fr)}}function xc(f,Q,ce){return ce==0?f==0?Q==0?6:5:Q==0?4:0:ce}function Vu(f,Q,ce,Ue,ut){switch(f>>>30){case 3:Cu(Q,ce,Ue,ut,0);break;case 2:Co(Q,ce,Ue,ut);break;case 1:cl(Q,ce,Ue,ut)}}function hc(f,Q){var ce,Ue,ut=Q.M,ht=Q.Nb,mt=f.oc,Ft=f.pc+40,Rt=f.oc,Kt=f.pc+584,fr=f.oc,Wr=f.pc+600;for(ce=0;16>ce;++ce)mt[Ft+32*ce-1]=129;for(ce=0;8>ce;++ce)Rt[Kt+32*ce-1]=129,fr[Wr+32*ce-1]=129;for(0<ut?mt[Ft-1-32]=Rt[Kt-1-32]=fr[Wr-1-32]=129:(ne(mt,Ft-32-1,127,21),ne(Rt,Kt-32-1,127,9),ne(fr,Wr-32-1,127,9)),Ue=0;Ue<f.za;++Ue){var Vr=Q.ya[Q.aa+Ue];if(0<Ue){for(ce=-1;16>ce;++ce)M(mt,Ft+32*ce-4,mt,Ft+32*ce+12,4);for(ce=-1;8>ce;++ce)M(Rt,Kt+32*ce-4,Rt,Kt+32*ce+4,4),M(fr,Wr+32*ce-4,fr,Wr+32*ce+4,4)}var Ir=f.Gd,Zn=f.Hd+Ue,Pn=Vr.ad,Pr=Vr.Hc;if(0<ut&&(M(mt,Ft-32,Ir[Zn].y,0,16),M(Rt,Kt-32,Ir[Zn].f,0,8),M(fr,Wr-32,Ir[Zn].ea,0,8)),Vr.Za){var Dr=mt,Wn=Ft-32+16;for(0<ut&&(Ue>=f.za-1?ne(Dr,Wn,Ir[Zn].y[15],4):M(Dr,Wn,Ir[Zn+1].y,0,4)),ce=0;4>ce;ce++)Dr[Wn+128+ce]=Dr[Wn+256+ce]=Dr[Wn+384+ce]=Dr[Wn+0+ce];for(ce=0;16>ce;++ce,Pr<<=2)Dr=mt,Wn=Ft+or[ce],_u[Vr.Ob[ce]](Dr,Wn),Vu(Pr,Pn,16*+ce,Dr,Wn)}else if(Dr=xc(Ue,ut,Vr.Ob[0]),zl[Dr](mt,Ft),Pr!=0)for(ce=0;16>ce;++ce,Pr<<=2)Vu(Pr,Pn,16*+ce,mt,Ft+or[ce]);for(ce=Vr.Gc,Dr=xc(Ue,ut,Vr.Dd),tc[Dr](Rt,Kt),tc[Dr](fr,Wr),Pr=Pn,Dr=Rt,Wn=Kt,255&(Vr=ce>>0)&&(170&Vr?Qu(Pr,256,Dr,Wn):Hl(Pr,256,Dr,Wn)),Vr=fr,Pr=Wr,255&(ce>>=8)&&(170&ce?Qu(Pn,320,Vr,Pr):Hl(Pn,320,Vr,Pr)),ut<f.Ub-1&&(M(Ir[Zn].y,0,mt,Ft+480,16),M(Ir[Zn].f,0,Rt,Kt+224,8),M(Ir[Zn].ea,0,fr,Wr+224,8)),ce=8*ht*f.B,Ir=f.sa,Zn=f.ta+16*Ue+16*ht*f.R,Pn=f.qa,Vr=f.ra+8*Ue+ce,Pr=f.Ha,Dr=f.Ia+8*Ue+ce,ce=0;16>ce;++ce)M(Ir,Zn+ce*f.R,mt,Ft+32*ce,16);for(ce=0;8>ce;++ce)M(Pn,Vr+ce*f.B,Rt,Kt+32*ce,8),M(Pr,Dr+ce*f.B,fr,Wr+32*ce,8)}}function Yu(f,Q,ce,Ue,ut,ht,mt,Ft,Rt){var Kt=[0],fr=[0],Wr=0,Vr=Rt!=null?Rt.kd:0,Ir=Rt!=null?Rt:new dc;if(f==null||12>ce)return 7;Ir.data=f,Ir.w=Q,Ir.ha=ce,Q=[Q],ce=[ce],Ir.gb=[Ir.gb];e:{var Zn=Q,Pn=ce,Pr=Ir.gb;if(u(f!=null),u(Pn!=null),u(Pr!=null),Pr[0]=0,12<=Pn[0]&&!y(f,Zn[0],"RIFF")){if(y(f,Zn[0]+8,"WEBP")){Pr=3;break e}var Dr=Dn(f,Zn[0]+4);if(12>Dr||4294967286<Dr){Pr=3;break e}if(Vr&&Dr>Pn[0]-8){Pr=7;break e}Pr[0]=Dr,Zn[0]+=12,Pn[0]-=12}Pr=0}if(Pr!=0)return Pr;for(Dr=0<Ir.gb[0],ce=ce[0];;){e:{var Wn=f;Pn=Q,Pr=ce;var vi=Kt,qn=fr,Vi=Zn=[0];if((Yi=Wr=[Wr])[0]=0,8>Pr[0])Pr=7;else{if(!y(Wn,Pn[0],"VP8X")){if(Dn(Wn,Pn[0]+4)!=10){Pr=3;break e}if(18>Pr[0]){Pr=7;break e}var Gi=Dn(Wn,Pn[0]+8),ma=1+An(Wn,Pn[0]+12);if(2147483648<=ma*(Wn=1+An(Wn,Pn[0]+15))){Pr=3;break e}Vi!=null&&(Vi[0]=Gi),vi!=null&&(vi[0]=ma),qn!=null&&(qn[0]=Wn),Pn[0]+=18,Pr[0]-=18,Yi[0]=1}Pr=0}}if(Wr=Wr[0],Zn=Zn[0],Pr!=0)return Pr;if(Pn=!!(2&Zn),!Dr&&Wr)return 3;if(ht!=null&&(ht[0]=!!(16&Zn)),mt!=null&&(mt[0]=Pn),Ft!=null&&(Ft[0]=0),mt=Kt[0],Zn=fr[0],Wr&&Pn&&Rt==null){Pr=0;break}if(4>ce){Pr=7;break}if(Dr&&Wr||!Dr&&!Wr&&!y(f,Q[0],"ALPH")){ce=[ce],Ir.na=[Ir.na],Ir.P=[Ir.P],Ir.Sa=[Ir.Sa];e:{Gi=f,Pr=Q,Dr=ce;var Yi=Ir.gb;vi=Ir.na,qn=Ir.P,Vi=Ir.Sa,ma=22,u(Gi!=null),u(Dr!=null),Wn=Pr[0];var Is=Dr[0];for(u(vi!=null),u(Vi!=null),vi[0]=null,qn[0]=null,Vi[0]=0;;){if(Pr[0]=Wn,Dr[0]=Is,8>Is){Pr=7;break e}var Ds=Dn(Gi,Wn+4);if(4294967286<Ds){Pr=3;break e}var ds=8+Ds+1&-2;if(ma+=ds,0<Yi&&ma>Yi){Pr=3;break e}if(!y(Gi,Wn,"VP8 ")||!y(Gi,Wn,"VP8L")){Pr=0;break e}if(Is[0]<ds){Pr=7;break e}y(Gi,Wn,"ALPH")||(vi[0]=Gi,qn[0]=Wn+8,Vi[0]=Ds),Wn+=ds,Is-=ds}}if(ce=ce[0],Ir.na=Ir.na[0],Ir.P=Ir.P[0],Ir.Sa=Ir.Sa[0],Pr!=0)break}ce=[ce],Ir.Ja=[Ir.Ja],Ir.xa=[Ir.xa];e:if(Yi=f,Pr=Q,Dr=ce,vi=Ir.gb[0],qn=Ir.Ja,Vi=Ir.xa,Gi=Pr[0],Wn=!y(Yi,Gi,"VP8 "),ma=!y(Yi,Gi,"VP8L"),u(Yi!=null),u(Dr!=null),u(qn!=null),u(Vi!=null),8>Dr[0])Pr=7;else{if(Wn||ma){if(Yi=Dn(Yi,Gi+4),12<=vi&&Yi>vi-12){Pr=3;break e}if(Vr&&Yi>Dr[0]-8){Pr=7;break e}qn[0]=Yi,Pr[0]+=8,Dr[0]-=8,Vi[0]=ma}else Vi[0]=5<=Dr[0]&&Yi[Gi+0]==47&&!(Yi[Gi+4]>>5),qn[0]=Dr[0];Pr=0}if(ce=ce[0],Ir.Ja=Ir.Ja[0],Ir.xa=Ir.xa[0],Q=Q[0],Pr!=0)break;if(4294967286<Ir.Ja)return 3;if(Ft==null||Pn||(Ft[0]=Ir.xa?2:1),mt=[mt],Zn=[Zn],Ir.xa){if(5>ce){Pr=7;break}Ft=mt,Vr=Zn,Pn=ht,f==null||5>ce?f=0:5<=ce&&f[Q+0]==47&&!(f[Q+4]>>5)?(Dr=[0],Yi=[0],vi=[0],ft(qn=new Ze,f,Q,ce),Xi(qn,Dr,Yi,vi)?(Ft!=null&&(Ft[0]=Dr[0]),Vr!=null&&(Vr[0]=Yi[0]),Pn!=null&&(Pn[0]=vi[0]),f=1):f=0):f=0}else{if(10>ce){Pr=7;break}Ft=Zn,f==null||10>ce||!Ss(f,Q+3,ce-3)?f=0:(Vr=f[Q+0]|f[Q+1]<<8|f[Q+2]<<16,Pn=16383&(f[Q+7]<<8|f[Q+6]),f=16383&(f[Q+9]<<8|f[Q+8]),1&Vr||3<(Vr>>1&7)||!(Vr>>4&1)||Vr>>5>=Ir.Ja||!Pn||!f?f=0:(mt&&(mt[0]=Pn),Ft&&(Ft[0]=f),f=1))}if(!f||(mt=mt[0],Zn=Zn[0],Wr&&(Kt[0]!=mt||fr[0]!=Zn)))return 3;Rt!=null&&(Rt[0]=Ir,Rt.offset=Q-Rt.w,u(4294967286>Q-Rt.w),u(Rt.offset==Rt.ha-ce));break}return Pr==0||Pr==7&&Wr&&Rt==null?(ht!=null&&(ht[0]|=Ir.na!=null&&0<Ir.na.length),Ue!=null&&(Ue[0]=mt),ut!=null&&(ut[0]=Zn),0):Pr}function Xu(f,Q,ce){var Ue=Q.width,ut=Q.height,ht=0,mt=0,Ft=Ue,Rt=ut;if(Q.Da=f!=null&&0<f.Da,Q.Da&&(Ft=f.cd,Rt=f.bd,ht=f.v,mt=f.j,11>ce||(ht&=-2,mt&=-2),0>ht||0>mt||0>=Ft||0>=Rt||ht+Ft>Ue||mt+Rt>ut))return 0;if(Q.v=ht,Q.j=mt,Q.va=ht+Ft,Q.o=mt+Rt,Q.U=Ft,Q.T=Rt,Q.da=f!=null&&0<f.da,Q.da){if(!Si(Ft,Rt,ce=[f.ib],ht=[f.hb]))return 0;Q.ib=ce[0],Q.hb=ht[0]}return Q.ob=f!=null&&f.ob,Q.Kb=f==null||!f.Sd,Q.da&&(Q.ob=Q.ib<3*Ue/4&&Q.hb<3*ut/4,Q.Kb=0),1}function Ec(f){if(f==null)return 2;if(11>f.S){var Q=f.f.RGBA;Q.fb+=(f.height-1)*Q.A,Q.A=-Q.A}else Q=f.f.kb,f=f.height,Q.O+=(f-1)*Q.fa,Q.fa=-Q.fa,Q.N+=(f-1>>1)*Q.Ab,Q.Ab=-Q.Ab,Q.W+=(f-1>>1)*Q.Db,Q.Db=-Q.Db,Q.F!=null&&(Q.J+=(f-1)*Q.lb,Q.lb=-Q.lb);return 0}function pc(f,Q,ce,Ue){if(Ue==null||0>=f||0>=Q)return 2;if(ce!=null){if(ce.Da){var ut=ce.cd,ht=ce.bd,mt=-2&ce.v,Ft=-2&ce.j;if(0>mt||0>Ft||0>=ut||0>=ht||mt+ut>f||Ft+ht>Q)return 2;f=ut,Q=ht}if(ce.da){if(!Si(f,Q,ut=[ce.ib],ht=[ce.hb]))return 2;f=ut[0],Q=ht[0]}}Ue.width=f,Ue.height=Q;e:{var Rt=Ue.width,Kt=Ue.height;if(f=Ue.S,0>=Rt||0>=Kt||!(f>=cn&&13>f))f=2;else{if(0>=Ue.Rd&&Ue.sd==null){mt=ht=ut=Q=0;var fr=(Ft=Rt*mn[f])*Kt;if(11>f||(ht=(Kt+1)/2*(Q=(Rt+1)/2),f==12&&(mt=(ut=Rt)*Kt)),(Kt=W(fr+2*ht+mt))==null){f=1;break e}Ue.sd=Kt,11>f?((Rt=Ue.f.RGBA).eb=Kt,Rt.fb=0,Rt.A=Ft,Rt.size=fr):((Rt=Ue.f.kb).y=Kt,Rt.O=0,Rt.fa=Ft,Rt.Fd=fr,Rt.f=Kt,Rt.N=0+fr,Rt.Ab=Q,Rt.Cd=ht,Rt.ea=Kt,Rt.W=0+fr+ht,Rt.Db=Q,Rt.Ed=ht,f==12&&(Rt.F=Kt,Rt.J=0+fr+2*ht),Rt.Tc=mt,Rt.lb=ut)}if(Q=1,ut=Ue.S,ht=Ue.width,mt=Ue.height,ut>=cn&&13>ut)if(11>ut)f=Ue.f.RGBA,Q&=(Ft=Math.abs(f.A))*(mt-1)+ht<=f.size,Q&=Ft>=ht*mn[ut],Q&=f.eb!=null;else{f=Ue.f.kb,Ft=(ht+1)/2,fr=(mt+1)/2,Rt=Math.abs(f.fa),Kt=Math.abs(f.Ab);var Wr=Math.abs(f.Db),Vr=Math.abs(f.lb),Ir=Vr*(mt-1)+ht;Q&=Rt*(mt-1)+ht<=f.Fd,Q&=Kt*(fr-1)+Ft<=f.Cd,Q=(Q&=Wr*(fr-1)+Ft<=f.Ed)&Rt>=ht&Kt>=Ft&Wr>=Ft,Q&=f.y!=null,Q&=f.f!=null,Q&=f.ea!=null,ut==12&&(Q&=Vr>=ht,Q&=Ir<=f.Tc,Q&=f.F!=null)}else Q=0;f=Q?0:2}}return f!=0||ce!=null&&ce.fd&&(f=Ec(Ue)),f}var Eo=64,Ju=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],no=24,Ul=32,ru=8,Oo=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];dn("Predictor0","PredictorAdd0"),Sr.Predictor0=function(){return 4278190080},Sr.Predictor1=function(f){return f},Sr.Predictor2=function(f,Q,ce){return Q[ce+0]},Sr.Predictor3=function(f,Q,ce){return Q[ce+1]},Sr.Predictor4=function(f,Q,ce){return Q[ce-1]},Sr.Predictor5=function(f,Q,ce){return Cn(Cn(f,Q[ce+1]),Q[ce+0])},Sr.Predictor6=function(f,Q,ce){return Cn(f,Q[ce-1])},Sr.Predictor7=function(f,Q,ce){return Cn(f,Q[ce+0])},Sr.Predictor8=function(f,Q,ce){return Cn(Q[ce-1],Q[ce+0])},Sr.Predictor9=function(f,Q,ce){return Cn(Q[ce+0],Q[ce+1])},Sr.Predictor10=function(f,Q,ce){return Cn(Cn(f,Q[ce-1]),Cn(Q[ce+0],Q[ce+1]))},Sr.Predictor11=function(f,Q,ce){var Ue=Q[ce+0];return 0>=He(Ue>>24&255,f>>24&255,(Q=Q[ce-1])>>24&255)+He(Ue>>16&255,f>>16&255,Q>>16&255)+He(Ue>>8&255,f>>8&255,Q>>8&255)+He(255&Ue,255&f,255&Q)?Ue:f},Sr.Predictor12=function(f,Q,ce){var Ue=Q[ce+0];return(si((f>>24&255)+(Ue>>24&255)-((Q=Q[ce-1])>>24&255))<<24|si((f>>16&255)+(Ue>>16&255)-(Q>>16&255))<<16|si((f>>8&255)+(Ue>>8&255)-(Q>>8&255))<<8|si((255&f)+(255&Ue)-(255&Q)))>>>0},Sr.Predictor13=function(f,Q,ce){var Ue=Q[ce-1];return(Fi((f=Cn(f,Q[ce+0]))>>24&255,Ue>>24&255)<<24|Fi(f>>16&255,Ue>>16&255)<<16|Fi(f>>8&255,Ue>>8&255)<<8|Fi(f>>0&255,Ue>>0&255))>>>0};var nu=Sr.PredictorAdd0;Sr.PredictorAdd1=c,dn("Predictor2","PredictorAdd2"),dn("Predictor3","PredictorAdd3"),dn("Predictor4","PredictorAdd4"),dn("Predictor5","PredictorAdd5"),dn("Predictor6","PredictorAdd6"),dn("Predictor7","PredictorAdd7"),dn("Predictor8","PredictorAdd8"),dn("Predictor9","PredictorAdd9"),dn("Predictor10","PredictorAdd10"),dn("Predictor11","PredictorAdd11"),dn("Predictor12","PredictorAdd12"),dn("Predictor13","PredictorAdd13");var Eu=Sr.PredictorAdd2;Be("ColorIndexInverseTransform","MapARGB","32b",function(f){return f>>8&255},function(f){return f}),Be("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(f){return f},function(f){return f>>8&255});var Ql,pl=Sr.ColorIndexInverseTransform,qu=Sr.MapARGB,Cc=Sr.VP8LColorIndexInverseTransformAlpha,Mu=Sr.MapAlpha,jl=Sr.VP8LPredictorsAdd=[];jl.length=16,(Sr.VP8LPredictors=[]).length=16,(Sr.VP8LPredictorsAdd_C=[]).length=16,(Sr.VP8LPredictors_C=[]).length=16;var iu,ul,Uo,Uu,au,su,mc,Cu,Co,Qu,cl,Hl,gc,Tc,ec,Al,d,e,t,r,i,s,l,x,j,q,Ae,Oe,Ye=W(511),Xe=W(2041),lt=W(225),Ct=W(767),Tt=0,vr=Xe,Nr=lt,Or=Ct,Un=Ye,cn=0,gi=1,zn=2,Ii=3,ea=4,mi=5,Oi=6,Ga=7,ia=8,ja=9,Ua=10,Ra=[2,3,7],Fs=[3,3,11],Ks=[280,256,256,256,40],ha=[0,1,1,1,0],oa=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ks=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],hs=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ws=8,lo=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Ms=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Fo=null,dl=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],_c=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Fc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Wc=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Dc=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],jc=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],gA=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zl=[],_u=[],tc=[],eA=1,tA=2,rc=[],ou=[];Kn("UpsampleRgbLinePair",ws,3),Kn("UpsampleBgrLinePair",mo,3),Kn("UpsampleRgbaLinePair",Kl,4),Kn("UpsampleBgraLinePair",Mo,4),Kn("UpsampleArgbLinePair",Yo,4),Kn("UpsampleRgba4444LinePair",To,2),Kn("UpsampleRgb565LinePair",xo,2);var vA=Sr.UpsampleRgbLinePair,yA=Sr.UpsampleBgrLinePair,rA=Sr.UpsampleRgbaLinePair,nA=Sr.UpsampleBgraLinePair,iA=Sr.UpsampleArgbLinePair,aA=Sr.UpsampleRgba4444LinePair,bA=Sr.UpsampleRgb565LinePair,Hc=16,$c=1<<Hc-1,Uc=-227,Vc=482,sA=6,wA=(256<<sA)-1,R=0,E=W(256),U=W(256),k=W(256),Ne=W(256),it=W(Vc-Uc),Dt=W(Vc-Uc);Tl("YuvToRgbRow",ws,3),Tl("YuvToBgrRow",mo,3),Tl("YuvToRgbaRow",Kl,4),Tl("YuvToBgraRow",Mo,4),Tl("YuvToArgbRow",Yo,4),Tl("YuvToRgba4444Row",To,2),Tl("YuvToRgb565Row",xo,2);var or=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ar=[0,2,8],Qr=[8,7,6,4,4,2,2,2,1,1,1,1],qr=1;this.WebPDecodeRGBA=function(f,Q,ce,Ue,ut){var ht=gi,mt=new Ac,Ft=new Mn;mt.ba=Ft,Ft.S=ht,Ft.width=[Ft.width],Ft.height=[Ft.height];var Rt=Ft.width,Kt=Ft.height,fr=new Jn;if(fr==null||f==null)var Wr=2;else u(fr!=null),Wr=Yu(f,Q,ce,fr.width,fr.height,fr.Pd,fr.Qd,fr.format,null);if(Wr!=0?Rt=0:(Rt!=null&&(Rt[0]=fr.width[0]),Kt!=null&&(Kt[0]=fr.height[0]),Rt=1),Rt){Ft.width=Ft.width[0],Ft.height=Ft.height[0],Ue!=null&&(Ue[0]=Ft.width),ut!=null&&(ut[0]=Ft.height);e:{if(Ue=new Ma,(ut=new dc).data=f,ut.w=Q,ut.ha=ce,ut.kd=1,Q=[0],u(ut!=null),((f=Yu(ut.data,ut.w,ut.ha,null,null,null,Q,null,ut))==0||f==7)&&Q[0]&&(f=4),(Q=f)==0){if(u(mt!=null),Ue.data=ut.data,Ue.w=ut.w+ut.offset,Ue.ha=ut.ha-ut.offset,Ue.put=Ia,Ue.ac=Ki,Ue.bc=Ta,Ue.ma=mt,ut.xa){if((f=ys())==null){mt=1;break e}if(function(Vr,Ir){var Zn=[0],Pn=[0],Pr=[0];t:for(;;){if(Vr==null)return 0;if(Ir==null)return Vr.a=2,0;if(Vr.l=Ir,Vr.a=0,ft(Vr.m,Ir.data,Ir.w,Ir.ha),!Xi(Vr.m,Zn,Pn,Pr)){Vr.a=3;break t}if(Vr.xb=tA,Ir.width=Zn[0],Ir.height=Pn[0],!Hs(Zn[0],Pn[0],1,Vr,null))break t;return 1}return u(Vr.a!=0),0}(f,Ue)){if(Ue=(Q=pc(Ue.width,Ue.height,mt.Oa,mt.ba))==0){t:{Ue=f;r:for(;;){if(Ue==null){Ue=0;break t}if(u(Ue.s.yc!=null),u(Ue.s.Ya!=null),u(0<Ue.s.Wb),u((ce=Ue.l)!=null),u((ut=ce.ma)!=null),Ue.xb!=0){if(Ue.ca=ut.ba,Ue.tb=ut.tb,u(Ue.ca!=null),!Xu(ut.Oa,ce,Ii)){Ue.a=2;break r}if(!Zs(Ue,ce.width)||ce.da)break r;if((ce.da||En(Ue.ca.S))&&un(),11>Ue.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ue.ca.f.kb.F!=null&&un()),Ue.Pb&&0<Ue.s.ua&&Ue.s.vb.X==null&&!ni(Ue.s.vb,Ue.s.Wa.Xa)){Ue.a=1;break r}Ue.xb=0}if(!Aa(Ue,Ue.V,Ue.Ba,Ue.c,Ue.i,ce.o,fa))break r;ut.Dc=Ue.Ma,Ue=1;break t}u(Ue.a!=0),Ue=0}Ue=!Ue}Ue&&(Q=f.a)}else Q=f.a}else{if((f=new Bs)==null){mt=1;break e}if(f.Fa=ut.na,f.P=ut.P,f.qc=ut.Sa,wo(f,Ue)){if((Q=pc(Ue.width,Ue.height,mt.Oa,mt.ba))==0){if(f.Aa=0,ce=mt.Oa,u((ut=f)!=null),ce!=null){if(0<(Rt=0>(Rt=ce.Md)?0:100<Rt?255:255*Rt/100)){for(Kt=fr=0;4>Kt;++Kt)12>(Wr=ut.pb[Kt]).lc&&(Wr.ia=Rt*Qr[0>Wr.lc?0:Wr.lc]>>3),fr|=Wr.ia;fr&&(alert("todo:VP8InitRandom"),ut.ia=1)}ut.Ga=ce.Id,100<ut.Ga?ut.Ga=100:0>ut.Ga&&(ut.Ga=0)}Cl(f,Ue)||(Q=f.a)}}else Q=f.a}Q==0&&mt.Oa!=null&&mt.Oa.fd&&(Q=Ec(mt.ba))}mt=Q}ht=mt!=0?null:11>ht?Ft.f.RGBA.eb:Ft.f.kb.y}else ht=null;return ht};var mn=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function rt(Sr,xn){for(var Nn="",er=0;er<4;er++)Nn+=String.fromCharCode(Sr[xn++]);return Nn}function yt(Sr,xn){return(Sr[xn+0]<<0|Sr[xn+1]<<8|Sr[xn+2]<<16)>>>0}function vt(Sr,xn){return(Sr[xn+0]<<0|Sr[xn+1]<<8|Sr[xn+2]<<16|Sr[xn+3]<<24)>>>0}new ke;var Pt=[0],Ve=[0],cr=[],tr=new ke,dr=b,Qt=function(Sr,xn){var Nn={},er=0,nr=!1,ye=0,xe=0;if(Nn.frames=[],!function(_e,wt,Ht,Wt){for(var lr=0;lr<Wt;lr++)if(_e[wt+lr]!=Ht.charCodeAt(lr))return!0;return!1}(Sr,xn,"RIFF",4)){var et,st;for(vt(Sr,xn+=4),xn+=8;xn<Sr.length;){var gt=rt(Sr,xn),ft=vt(Sr,xn+=4);xn+=4;var Ut=ft+(1&ft);switch(gt){case"VP8 ":case"VP8L":Nn.frames[er]===void 0&&(Nn.frames[er]={}),(Ze=Nn.frames[er]).src_off=nr?xe:xn-8,Ze.src_size=ye+ft+8,er++,nr&&(nr=!1,ye=0,xe=0);break;case"VP8X":(Ze=Nn.header={}).feature_flags=Sr[xn];var $t=xn+4;Ze.canvas_width=1+yt(Sr,$t),$t+=3,Ze.canvas_height=1+yt(Sr,$t),$t+=3;break;case"ALPH":nr=!0,ye=Ut+8,xe=xn-8;break;case"ANIM":(Ze=Nn.header).bgcolor=vt(Sr,xn),$t=xn+4,Ze.loop_count=(et=Sr)[(st=$t)+0]<<0|et[st+1]<<8,$t+=2;break;case"ANMF":var sr,Ze;(Ze=Nn.frames[er]={}).offset_x=2*yt(Sr,xn),xn+=3,Ze.offset_y=2*yt(Sr,xn),xn+=3,Ze.width=1+yt(Sr,xn),xn+=3,Ze.height=1+yt(Sr,xn),xn+=3,Ze.duration=yt(Sr,xn),xn+=3,sr=Sr[xn++],Ze.dispose=1&sr,Ze.blend=sr>>1&1}gt!="ANMF"&&(xn+=Ut)}return Nn}}(dr,0);Qt.response=dr,Qt.rgbaoutput=!0,Qt.dataurl=!1;var pr=Qt.header?Qt.header:null,Mr=Qt.frames?Qt.frames:null;if(pr){pr.loop_counter=pr.loop_count,Pt=[pr.canvas_height],Ve=[pr.canvas_width];for(var sn=0;sn<Mr.length&&Mr[sn].blend!=0;sn++);}var Rn=Mr[0],di=tr.WebPDecodeRGBA(dr,Rn.src_off,Rn.src_size,Ve,Pt);Rn.rgba=di,Rn.imgwidth=Ve[0],Rn.imgheight=Pt[0];for(var pn=0;pn<Ve[0]*Pt[0]*4;pn++)cr[pn]=di[pn];return this.width=Ve,this.height=Pt,this.data=cr,this}(function(b){var u=function(){return typeof $n=="function"},y=function(Pt,Ve,cr,tr){var dr=4,Qt=ge;switch(tr){case b.image_compression.FAST:dr=1,Qt=W;break;case b.image_compression.MEDIUM:dr=6,Qt=Le;break;case b.image_compression.SLOW:dr=9,Qt=ke}Pt=M(Pt,Ve,cr,Qt);var pr=$n(Pt,{level:dr});return b.__addimage__.arrayBufferToBinaryString(pr)},M=function(Pt,Ve,cr,tr){for(var dr,Qt,pr,Mr=Pt.length/Ve,sn=new Uint8Array(Pt.length+Mr),Rn=yt(),di=0;di<Mr;di+=1){if(pr=di*Ve,dr=Pt.subarray(pr,pr+Ve),tr)sn.set(tr(dr,cr,Qt),pr+di);else{for(var pn,Sr=Rn.length,xn=[];pn<Sr;pn+=1)xn[pn]=Rn[pn](dr,cr,Qt);var Nn=vt(xn.concat());sn.set(xn[Nn],pr+di)}Qt=dr}return sn},ne=function(Pt){var Ve=Array.apply([],Pt);return Ve.unshift(0),Ve},W=function(Pt,Ve){var cr,tr=[],dr=Pt.length;tr[0]=1;for(var Qt=0;Qt<dr;Qt+=1)cr=Pt[Qt-Ve]||0,tr[Qt+1]=Pt[Qt]-cr+256&255;return tr},ge=function(Pt,Ve,cr){var tr,dr=[],Qt=Pt.length;dr[0]=2;for(var pr=0;pr<Qt;pr+=1)tr=cr&&cr[pr]||0,dr[pr+1]=Pt[pr]-tr+256&255;return dr},Le=function(Pt,Ve,cr){var tr,dr,Qt=[],pr=Pt.length;Qt[0]=3;for(var Mr=0;Mr<pr;Mr+=1)tr=Pt[Mr-Ve]||0,dr=cr&&cr[Mr]||0,Qt[Mr+1]=Pt[Mr]+256-(tr+dr>>>1)&255;return Qt},ke=function(Pt,Ve,cr){var tr,dr,Qt,pr,Mr=[],sn=Pt.length;Mr[0]=4;for(var Rn=0;Rn<sn;Rn+=1)tr=Pt[Rn-Ve]||0,dr=cr&&cr[Rn]||0,Qt=cr&&cr[Rn-Ve]||0,pr=rt(tr,dr,Qt),Mr[Rn+1]=Pt[Rn]-pr+256&255;return Mr},rt=function(Pt,Ve,cr){if(Pt===Ve&&Ve===cr)return Pt;var tr=Math.abs(Ve-cr),dr=Math.abs(Pt-cr),Qt=Math.abs(Pt+Ve-cr-cr);return tr<=dr&&tr<=Qt?Pt:dr<=Qt?Ve:cr},yt=function(){return[ne,W,ge,Le,ke]},vt=function(Pt){var Ve=Pt.map(function(cr){return cr.reduce(function(tr,dr){return tr+Math.abs(dr)},0)});return Ve.indexOf(Math.min.apply(null,Ve))};b.processPNG=function(Pt,Ve,cr,tr){var dr,Qt,pr,Mr,sn,Rn,di,pn,Sr,xn,Nn,er,nr,ye,xe,et=this.decode.FLATE_DECODE,st="";if(this.__addimage__.isArrayBuffer(Pt)&&(Pt=new Uint8Array(Pt)),this.__addimage__.isArrayBufferView(Pt)){if(Pt=(pr=new wl(Pt)).imgData,Qt=pr.bits,dr=pr.colorSpace,sn=pr.colors,[4,6].indexOf(pr.colorType)!==-1){if(pr.bits===8){Sr=(pn=pr.pixelBitlength==32?new Uint32Array(pr.decodePixels().buffer):pr.pixelBitlength==16?new Uint16Array(pr.decodePixels().buffer):new Uint8Array(pr.decodePixels().buffer)).length,Nn=new Uint8Array(Sr*pr.colors),xn=new Uint8Array(Sr);var gt,ft=pr.pixelBitlength-pr.bits;for(ye=0,xe=0;ye<Sr;ye++){for(nr=pn[ye],gt=0;gt<ft;)Nn[xe++]=nr>>>gt&255,gt+=pr.bits;xn[ye]=nr>>>gt&255}}if(pr.bits===16){Sr=(pn=new Uint32Array(pr.decodePixels().buffer)).length,Nn=new Uint8Array(Sr*(32/pr.pixelBitlength)*pr.colors),xn=new Uint8Array(Sr*(32/pr.pixelBitlength)),er=pr.colors>1,ye=0,xe=0;for(var Ut=0;ye<Sr;)nr=pn[ye++],Nn[xe++]=nr>>>0&255,er&&(Nn[xe++]=nr>>>16&255,nr=pn[ye++],Nn[xe++]=nr>>>0&255),xn[Ut++]=nr>>>16&255;Qt=8}tr!==b.image_compression.NONE&&u()?(Pt=y(Nn,pr.width*pr.colors,pr.colors,tr),di=y(xn,pr.width,1,tr)):(Pt=Nn,di=xn,et=void 0)}if(pr.colorType===3&&(dr=this.color_spaces.INDEXED,Rn=pr.palette,pr.transparency.indexed)){var $t=pr.transparency.indexed,sr=0;for(ye=0,Sr=$t.length;ye<Sr;++ye)sr+=$t[ye];if((sr/=255)===Sr-1&&$t.indexOf(0)!==-1)Mr=[$t.indexOf(0)];else if(sr!==Sr){for(pn=pr.decodePixels(),xn=new Uint8Array(pn.length),ye=0,Sr=pn.length;ye<Sr;ye++)xn[ye]=$t[pn[ye]];di=y(xn,pr.width,1)}}var Ze=function(_e){var wt;switch(_e){case b.image_compression.FAST:wt=11;break;case b.image_compression.MEDIUM:wt=13;break;case b.image_compression.SLOW:wt=14;break;default:wt=12}return wt}(tr);return et===this.decode.FLATE_DECODE&&(st="/Predictor "+Ze+" "),st+="/Colors "+sn+" /BitsPerComponent "+Qt+" /Columns "+pr.width,(this.__addimage__.isArrayBuffer(Pt)||this.__addimage__.isArrayBufferView(Pt))&&(Pt=this.__addimage__.arrayBufferToBinaryString(Pt)),(di&&this.__addimage__.isArrayBuffer(di)||this.__addimage__.isArrayBufferView(di))&&(di=this.__addimage__.arrayBufferToBinaryString(di)),{alias:cr,data:Pt,index:Ve,filter:et,decodeParameters:st,transparency:Mr,palette:Rn,sMask:di,predictor:Ze,width:pr.width,height:pr.height,bitsPerComponent:Qt,colorSpace:dr}}}})(Ni.API),function(b){b.processGIF89A=function(u,y,M,ne){var W=new fl(u),ge=W.width,Le=W.height,ke=[];W.decodeAndBlitFrameRGBA(0,ke);var rt={data:ke,width:ge,height:Le},yt=new xl(100).encode(rt,100);return b.processJPEG.call(this,yt,y,M,ne)},b.processGIF87A=b.processGIF89A}(Ni.API),jo.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var b=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(b);for(var u=0;u<b;u++){var y=this.datav.getUint8(this.pos++,!0),M=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),W=this.datav.getUint8(this.pos++,!0);this.palette[u]={red:ne,green:M,blue:y,quad:W}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},jo.prototype.parseBGR=function(){this.pos=this.offset;try{var b="bit"+this.bitPP,u=this.width*this.height*4;this.data=new Uint8Array(u),this[b]()}catch(y){ii.log("bit decode error:"+y)}},jo.prototype.bit1=function(){var b,u=Math.ceil(this.width/8),y=u%4;for(b=this.height-1;b>=0;b--){for(var M=this.bottom_up?b:this.height-1-b,ne=0;ne<u;ne++)for(var W=this.datav.getUint8(this.pos++,!0),ge=M*this.width*4+8*ne*4,Le=0;Le<8&&8*ne+Le<this.width;Le++){var ke=this.palette[W>>7-Le&1];this.data[ge+4*Le]=ke.blue,this.data[ge+4*Le+1]=ke.green,this.data[ge+4*Le+2]=ke.red,this.data[ge+4*Le+3]=255}y!==0&&(this.pos+=4-y)}},jo.prototype.bit4=function(){for(var b=Math.ceil(this.width/2),u=b%4,y=this.height-1;y>=0;y--){for(var M=this.bottom_up?y:this.height-1-y,ne=0;ne<b;ne++){var W=this.datav.getUint8(this.pos++,!0),ge=M*this.width*4+2*ne*4,Le=W>>4,ke=15&W,rt=this.palette[Le];if(this.data[ge]=rt.blue,this.data[ge+1]=rt.green,this.data[ge+2]=rt.red,this.data[ge+3]=255,2*ne+1>=this.width)break;rt=this.palette[ke],this.data[ge+4]=rt.blue,this.data[ge+4+1]=rt.green,this.data[ge+4+2]=rt.red,this.data[ge+4+3]=255}u!==0&&(this.pos+=4-u)}},jo.prototype.bit8=function(){for(var b=this.width%4,u=this.height-1;u>=0;u--){for(var y=this.bottom_up?u:this.height-1-u,M=0;M<this.width;M++){var ne=this.datav.getUint8(this.pos++,!0),W=y*this.width*4+4*M;if(ne<this.palette.length){var ge=this.palette[ne];this.data[W]=ge.red,this.data[W+1]=ge.green,this.data[W+2]=ge.blue,this.data[W+3]=255}else this.data[W]=255,this.data[W+1]=255,this.data[W+2]=255,this.data[W+3]=255}b!==0&&(this.pos+=4-b)}},jo.prototype.bit15=function(){for(var b=this.width%3,u=parseInt("11111",2),y=this.height-1;y>=0;y--){for(var M=this.bottom_up?y:this.height-1-y,ne=0;ne<this.width;ne++){var W=this.datav.getUint16(this.pos,!0);this.pos+=2;var ge=(W&u)/u*255|0,Le=(W>>5&u)/u*255|0,ke=(W>>10&u)/u*255|0,rt=W>>15?255:0,yt=M*this.width*4+4*ne;this.data[yt]=ke,this.data[yt+1]=Le,this.data[yt+2]=ge,this.data[yt+3]=rt}this.pos+=b}},jo.prototype.bit16=function(){for(var b=this.width%3,u=parseInt("11111",2),y=parseInt("111111",2),M=this.height-1;M>=0;M--){for(var ne=this.bottom_up?M:this.height-1-M,W=0;W<this.width;W++){var ge=this.datav.getUint16(this.pos,!0);this.pos+=2;var Le=(ge&u)/u*255|0,ke=(ge>>5&y)/y*255|0,rt=(ge>>11)/u*255|0,yt=ne*this.width*4+4*W;this.data[yt]=rt,this.data[yt+1]=ke,this.data[yt+2]=Le,this.data[yt+3]=255}this.pos+=b}},jo.prototype.bit24=function(){for(var b=this.height-1;b>=0;b--){for(var u=this.bottom_up?b:this.height-1-b,y=0;y<this.width;y++){var M=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),W=this.datav.getUint8(this.pos++,!0),ge=u*this.width*4+4*y;this.data[ge]=W,this.data[ge+1]=ne,this.data[ge+2]=M,this.data[ge+3]=255}this.pos+=this.width%4}},jo.prototype.bit32=function(){for(var b=this.height-1;b>=0;b--)for(var u=this.bottom_up?b:this.height-1-b,y=0;y<this.width;y++){var M=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),W=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),Le=u*this.width*4+4*y;this.data[Le]=W,this.data[Le+1]=ne,this.data[Le+2]=M,this.data[Le+3]=ge}},jo.prototype.getData=function(){return this.data},function(b){b.processBMP=function(u,y,M,ne){var W=new jo(u,!1),ge=W.width,Le=W.height,ke={data:W.getData(),width:ge,height:Le},rt=new xl(100).encode(ke,100);return b.processJPEG.call(this,rt,y,M,ne)}}(Ni.API),Gs.prototype.getData=function(){return this.data},function(b){b.processWEBP=function(u,y,M,ne){var W=new Gs(u,!1),ge=W.width,Le=W.height,ke={data:W.getData(),width:ge,height:Le},rt=new xl(100).encode(ke,100);return b.processJPEG.call(this,rt,y,M,ne)}}(Ni.API),Ni.API.processRGBA=function(b,u,y){for(var M=b.data,ne=M.length,W=new Uint8Array(ne/4*3),ge=new Uint8Array(ne/4),Le=0,ke=0,rt=0;rt<ne;rt+=4){var yt=M[rt],vt=M[rt+1],Pt=M[rt+2],Ve=M[rt+3];W[Le++]=yt,W[Le++]=vt,W[Le++]=Pt,ge[ke++]=Ve}var cr=this.__addimage__.arrayBufferToBinaryString(W);return{alpha:this.__addimage__.arrayBufferToBinaryString(ge),data:cr,index:u,alias:y,colorSpace:"DeviceRGB",bitsPerComponent:8,width:b.width,height:b.height}},Ni.API.setLanguage=function(b){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[b]!==void 0&&(this.internal.languageSettings.languageCode=b,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Xa=Ni.API,bl=Xa.getCharWidthsArray=function(b,u){var y,M,ne=(u=u||{}).font||this.internal.getFont(),W=u.fontSize||this.internal.getFontSize(),ge=u.charSpace||this.internal.getCharSpace(),Le=u.widths?u.widths:ne.metadata.Unicode.widths,ke=Le.fof?Le.fof:1,rt=u.kerning?u.kerning:ne.metadata.Unicode.kerning,yt=rt.fof?rt.fof:1,vt=u.doKerning!==!1,Pt=0,Ve=b.length,cr=0,tr=Le[0]||ke,dr=[];for(y=0;y<Ve;y++)M=b.charCodeAt(y),typeof ne.metadata.widthOfString=="function"?dr.push((ne.metadata.widthOfGlyph(ne.metadata.characterToGlyph(M))+ge*(1e3/W)||0)/1e3):(Pt=vt&&(0,we.Z)(rt[M])==="object"&&!isNaN(parseInt(rt[M][cr],10))?rt[M][cr]/yt:0,dr.push((Le[M]||tr)/ke+Pt)),cr=M;return dr},so=Xa.getStringUnitWidth=function(b,u){var y=(u=u||{}).fontSize||this.internal.getFontSize(),M=u.font||this.internal.getFont(),ne=u.charSpace||this.internal.getCharSpace();return Xa.processArabic&&(b=Xa.processArabic(b)),typeof M.metadata.widthOfString=="function"?M.metadata.widthOfString(b,y,ne)/y:bl.apply(this,arguments).reduce(function(W,ge){return W+ge},0)},bo=function(b,u,y,M){for(var ne=[],W=0,ge=b.length,Le=0;W!==ge&&Le+u[W]<y;)Le+=u[W],W++;ne.push(b.slice(0,W));var ke=W;for(Le=0;W!==ge;)Le+u[W]>M&&(ne.push(b.slice(ke,W)),Le=0,ke=W),Le+=u[W],W++;return ke!==W&&ne.push(b.slice(ke,W)),ne},Zl=function(b,u,y){y||(y={});var M,ne,W,ge,Le,ke,rt,yt=[],vt=[yt],Pt=y.textIndent||0,Ve=0,cr=0,tr=b.split(" "),dr=bl.apply(this,[" ",y])[0];if(ke=y.lineIndent===-1?tr[0].length+2:y.lineIndent||0){var Qt=Array(ke).join(" "),pr=[];tr.map(function(sn){(sn=sn.split(/\s*\n/)).length>1?pr=pr.concat(sn.map(function(Rn,di){return(di&&Rn.length?`
|
|
|
`:"")+Rn})):pr.push(sn[0])}),tr=pr,ke=so.apply(this,[Qt,y])}for(W=0,ge=tr.length;W<ge;W++){var Mr=0;if(M=tr[W],ke&&M[0]==`
|
|
|
`&&(M=M.substr(1),Mr=1),Pt+Ve+(cr=(ne=bl.apply(this,[M,y])).reduce(function(sn,Rn){return sn+Rn},0))>u||Mr){if(cr>u){for(Le=bo.apply(this,[M,ne,u-(Pt+Ve),u]),yt.push(Le.shift()),yt=[Le.pop()];Le.length;)vt.push([Le.shift()]);cr=ne.slice(M.length-(yt[0]?yt[0].length:0)).reduce(function(sn,Rn){return sn+Rn},0)}else yt=[M];vt.push(yt),Pt=cr+ke,Ve=dr}else yt.push(M),Pt+=Ve+cr,Ve=dr}return rt=ke?function(sn,Rn){return(Rn?Qt:"")+sn.join(" ")}:function(sn){return sn.join(" ")},vt.map(rt)},Xa.splitTextToSize=function(b,u,y){var M,ne=(y=y||{}).fontSize||this.internal.getFontSize(),W=function(yt){if(yt.widths&&yt.kerning)return{widths:yt.widths,kerning:yt.kerning};var vt=this.internal.getFont(yt.fontName,yt.fontStyle);return vt.metadata.Unicode?{widths:vt.metadata.Unicode.widths||{0:1},kerning:vt.metadata.Unicode.kerning||{}}:{font:vt.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,y);M=Array.isArray(b)?b:String(b).split(/\r?\n/);var ge=1*this.internal.scaleFactor*u/ne;W.textIndent=y.textIndent?1*y.textIndent*this.internal.scaleFactor/ne:0,W.lineIndent=y.lineIndent;var Le,ke,rt=[];for(Le=0,ke=M.length;Le<ke;Le++)rt=rt.concat(Zl.apply(this,[M[Le],ge,W]));return rt},function(b){b.__fontmetrics__=b.__fontmetrics__||{};for(var u="klmnopqrstuvwxyz",y={},M={},ne=0;ne<u.length;ne++)y[u[ne]]="0123456789abcdef"[ne],M["0123456789abcdef"[ne]]=u[ne];var W=function(vt){return"0x"+parseInt(vt,10).toString(16)},ge=b.__fontmetrics__.compress=function(vt){var Pt,Ve,cr,tr,dr=["{"];for(var Qt in vt){if(Pt=vt[Qt],isNaN(parseInt(Qt,10))?Ve="'"+Qt+"'":(Qt=parseInt(Qt,10),Ve=(Ve=W(Qt).slice(2)).slice(0,-1)+M[Ve.slice(-1)]),typeof Pt=="number")Pt<0?(cr=W(Pt).slice(3),tr="-"):(cr=W(Pt).slice(2),tr=""),cr=tr+cr.slice(0,-1)+M[cr.slice(-1)];else{if((0,we.Z)(Pt)!=="object")throw new Error("Don't know what to do with value type "+(0,we.Z)(Pt)+".");cr=ge(Pt)}dr.push(Ve+cr)}return dr.push("}"),dr.join("")},Le=b.__fontmetrics__.uncompress=function(vt){if(typeof vt!="string")throw new Error("Invalid argument passed to uncompress.");for(var Pt,Ve,cr,tr,dr={},Qt=1,pr=dr,Mr=[],sn="",Rn="",di=vt.length-1,pn=1;pn<di;pn+=1)(tr=vt[pn])=="'"?Pt?(cr=Pt.join(""),Pt=void 0):Pt=[]:Pt?Pt.push(tr):tr=="{"?(Mr.push([pr,cr]),pr={},cr=void 0):tr=="}"?((Ve=Mr.pop())[0][Ve[1]]=pr,cr=void 0,pr=Ve[0]):tr=="-"?Qt=-1:cr===void 0?y.hasOwnProperty(tr)?(sn+=y[tr],cr=parseInt(sn,16)*Qt,Qt=1,sn=""):sn+=tr:y.hasOwnProperty(tr)?(Rn+=y[tr],pr[cr]=parseInt(Rn,16)*Qt,Qt=1,cr=void 0,Rn=""):Rn+=tr;return dr},ke={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Le("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},rt={Unicode:{Courier:ke,"Courier-Bold":ke,"Courier-BoldOblique":ke,"Courier-Oblique":ke,Helvetica:ke,"Helvetica-Bold":ke,"Helvetica-BoldOblique":ke,"Helvetica-Oblique":ke,"Times-Roman":ke,"Times-Bold":ke,"Times-BoldItalic":ke,"Times-Italic":ke}},yt={Unicode:{"Courier-Oblique":Le("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Le("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Le("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Le("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Le("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Le("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Le("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Le("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Le("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Le("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Le("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Le("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Le("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Le("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};b.events.push(["addFont",function(vt){var Pt=vt.font,Ve=yt.Unicode[Pt.postScriptName];Ve&&(Pt.metadata.Unicode={},Pt.metadata.Unicode.widths=Ve.widths,Pt.metadata.Unicode.kerning=Ve.kerning);var cr=rt.Unicode[Pt.postScriptName];cr&&(Pt.metadata.Unicode.encoding=cr,Pt.encoding=cr.codePages[0])}])}(Ni.API),function(b){var u=function(y){for(var M=y.length,ne=new Uint8Array(M),W=0;W<M;W++)ne[W]=y.charCodeAt(W);return ne};b.API.events.push(["addFont",function(y){var M=void 0,ne=y.font,W=y.instance;if(!ne.isStandardFont){if(W===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");if(typeof(M=W.existsFileInVFS(ne.postScriptName)===!1?W.loadFile(ne.postScriptName):W.getFileFromVFS(ne.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");(function(ge,Le){Le=/^\x00\x01\x00\x00/.test(Le)?u(Le):u(Bi(Le)),ge.metadata=b.API.TTFFont.open(Le),ge.metadata.Unicode=ge.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ge.metadata.glyIdsUsed=[0]})(ne,M)}}])}(Ni),function(b){function u(){return(hn.canvg?Promise.resolve(hn.canvg):g.e(6949).then(g.bind(g,46949))).catch(function(y){return Promise.reject(new Error("Could not load canvg: "+y))}).then(function(y){return y.default?y.default:y})}Ni.API.addSvgAsImage=function(y,M,ne,W,ge,Le,ke,rt){if(isNaN(M)||isNaN(ne))throw ii.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(W)||isNaN(ge))throw ii.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var yt=document.createElement("canvas");yt.width=W,yt.height=ge;var vt=yt.getContext("2d");vt.fillStyle="#fff",vt.fillRect(0,0,yt.width,yt.height);var Pt={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ve=this;return u().then(function(cr){return cr.fromString(vt,y,Pt)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(cr){return cr.render(Pt)}).then(function(){Ve.addImage(yt.toDataURL("image/jpeg",1),M,ne,W,ge,ke,rt)})}}(),Ni.API.putTotalPages=function(b){var u,y=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(u=new RegExp(b,"g"),y=this.internal.getNumberOfPages()):(u=new RegExp(this.pdfEscape16(b,this.internal.getFont()),"g"),y=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var M=1;M<=this.internal.getNumberOfPages();M++)for(var ne=0;ne<this.internal.pages[M].length;ne++)this.internal.pages[M][ne]=this.internal.pages[M][ne].replace(u,y);return this},Ni.API.viewerPreferences=function(b,u){var y;b=b||{},u=u||!1;var M,ne,W,ge={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Le=Object.keys(ge),ke=[],rt=0,yt=0,vt=0;function Pt(cr,tr){var dr,Qt=!1;for(dr=0;dr<cr.length;dr+=1)cr[dr]===tr&&(Qt=!0);return Qt}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ge)),this.internal.viewerpreferences.isSubscribed=!1),y=this.internal.viewerpreferences.configuration,b==="reset"||u===!0){var Ve=Le.length;for(vt=0;vt<Ve;vt+=1)y[Le[vt]].value=y[Le[vt]].defaultValue,y[Le[vt]].explicitSet=!1}if((0,we.Z)(b)==="object"){for(ne in b)if(W=b[ne],Pt(Le,ne)&&W!==void 0){if(y[ne].type==="boolean"&&typeof W=="boolean")y[ne].value=W;else if(y[ne].type==="name"&&Pt(y[ne].valueSet,W))y[ne].value=W;else if(y[ne].type==="integer"&&Number.isInteger(W))y[ne].value=W;else if(y[ne].type==="array"){for(rt=0;rt<W.length;rt+=1)if(M=!0,W[rt].length===1&&typeof W[rt][0]=="number")ke.push(String(W[rt]-1));else if(W[rt].length>1){for(yt=0;yt<W[rt].length;yt+=1)typeof W[rt][yt]!="number"&&(M=!1);M===!0&&ke.push([W[rt][0]-1,W[rt][1]-1].join(" "))}y[ne].value="["+ke.join(" ")+"]"}else y[ne].value=y[ne].defaultValue;y[ne].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var cr,tr=[];for(cr in y)y[cr].explicitSet===!0&&(y[cr].type==="name"?tr.push("/"+cr+" /"+y[cr].value):tr.push("/"+cr+" "+y[cr].value));tr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+tr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=y,this},function(b){var u=function(){var M='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',ne=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),W=unescape(encodeURIComponent(M)),ge=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Le=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ke=unescape(encodeURIComponent("</x:xmpmeta>")),rt=W.length+ge.length+Le.length+ne.length+ke.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+rt+" >>"),this.internal.write("stream"),this.internal.write(ne+W+ge+Le+ke),this.internal.write("endstream"),this.internal.write("endobj")},y=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};b.addMetadata=function(M,ne){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:M,namespaceuri:ne||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",y),this.internal.events.subscribe("postPutResources",u)),this}}(Ni.API),function(b){var u=b.API,y=u.pdfEscape16=function(W,ge){for(var Le,ke=ge.metadata.Unicode.widths,rt=["","0","00","000","0000"],yt=[""],vt=0,Pt=W.length;vt<Pt;++vt){if(Le=ge.metadata.characterToGlyph(W.charCodeAt(vt)),ge.metadata.glyIdsUsed.push(Le),ge.metadata.toUnicode[Le]=W.charCodeAt(vt),ke.indexOf(Le)==-1&&(ke.push(Le),ke.push([parseInt(ge.metadata.widthOfGlyph(Le),10)])),Le=="0")return yt.join("");Le=Le.toString(16),yt.push(rt[4-Le.length],Le)}return yt.join("")},M=function(W){var ge,Le,ke,rt,yt,vt,Pt;for(yt=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,ke=[],vt=0,Pt=(Le=Object.keys(W).sort(function(Ve,cr){return Ve-cr})).length;vt<Pt;vt++)ge=Le[vt],ke.length>=100&&(yt+=`
|
|
|
`+ke.length+` beginbfchar
|
|
|
`+ke.join(`
|
|
|
`)+`
|
|
|
endbfchar`,ke=[]),W[ge]!==void 0&&W[ge]!==null&&typeof W[ge].toString=="function"&&(rt=("0000"+W[ge].toString(16)).slice(-4),ge=("0000"+(+ge).toString(16)).slice(-4),ke.push("<"+ge+"><"+rt+">"));return ke.length&&(yt+=`
|
|
|
`+ke.length+` beginbfchar
|
|
|
`+ke.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),yt+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};u.events.push(["putFont",function(W){(function(ge){var Le=ge.font,ke=ge.out,rt=ge.newObject,yt=ge.putStream;if(Le.metadata instanceof b.API.TTFFont&&Le.encoding==="Identity-H"){for(var vt=Le.metadata.Unicode.widths,Pt=Le.metadata.subset.encode(Le.metadata.glyIdsUsed,1),Ve="",cr=0;cr<Pt.length;cr++)Ve+=String.fromCharCode(Pt[cr]);var tr=rt();yt({data:Ve,addLength1:!0,objectId:tr}),ke("endobj");var dr=rt();yt({data:M(Le.metadata.toUnicode),addLength1:!0,objectId:dr}),ke("endobj");var Qt=rt();ke("<<"),ke("/Type /FontDescriptor"),ke("/FontName /"+Ca(Le.fontName)),ke("/FontFile2 "+tr+" 0 R"),ke("/FontBBox "+b.API.PDFObject.convert(Le.metadata.bbox)),ke("/Flags "+Le.metadata.flags),ke("/StemV "+Le.metadata.stemV),ke("/ItalicAngle "+Le.metadata.italicAngle),ke("/Ascent "+Le.metadata.ascender),ke("/Descent "+Le.metadata.decender),ke("/CapHeight "+Le.metadata.capHeight),ke(">>"),ke("endobj");var pr=rt();ke("<<"),ke("/Type /Font"),ke("/BaseFont /"+Ca(Le.fontName)),ke("/FontDescriptor "+Qt+" 0 R"),ke("/W "+b.API.PDFObject.convert(vt)),ke("/CIDToGIDMap /Identity"),ke("/DW 1000"),ke("/Subtype /CIDFontType2"),ke("/CIDSystemInfo"),ke("<<"),ke("/Supplement 0"),ke("/Registry (Adobe)"),ke("/Ordering ("+Le.encoding+")"),ke(">>"),ke(">>"),ke("endobj"),Le.objectNumber=rt(),ke("<<"),ke("/Type /Font"),ke("/Subtype /Type0"),ke("/ToUnicode "+dr+" 0 R"),ke("/BaseFont /"+Ca(Le.fontName)),ke("/Encoding /"+Le.encoding),ke("/DescendantFonts ["+pr+" 0 R]"),ke(">>"),ke("endobj"),Le.isAlreadyPutted=!0}})(W)}]),u.events.push(["putFont",function(W){(function(ge){var Le=ge.font,ke=ge.out,rt=ge.newObject,yt=ge.putStream;if(Le.metadata instanceof b.API.TTFFont&&Le.encoding==="WinAnsiEncoding"){for(var vt=Le.metadata.rawData,Pt="",Ve=0;Ve<vt.length;Ve++)Pt+=String.fromCharCode(vt[Ve]);var cr=rt();yt({data:Pt,addLength1:!0,objectId:cr}),ke("endobj");var tr=rt();yt({data:M(Le.metadata.toUnicode),addLength1:!0,objectId:tr}),ke("endobj");var dr=rt();ke("<<"),ke("/Descent "+Le.metadata.decender),ke("/CapHeight "+Le.metadata.capHeight),ke("/StemV "+Le.metadata.stemV),ke("/Type /FontDescriptor"),ke("/FontFile2 "+cr+" 0 R"),ke("/Flags 96"),ke("/FontBBox "+b.API.PDFObject.convert(Le.metadata.bbox)),ke("/FontName /"+Ca(Le.fontName)),ke("/ItalicAngle "+Le.metadata.italicAngle),ke("/Ascent "+Le.metadata.ascender),ke(">>"),ke("endobj"),Le.objectNumber=rt();for(var Qt=0;Qt<Le.metadata.hmtx.widths.length;Qt++)Le.metadata.hmtx.widths[Qt]=parseInt(Le.metadata.hmtx.widths[Qt]*(1e3/Le.metadata.head.unitsPerEm));ke("<</Subtype/TrueType/Type/Font/ToUnicode "+tr+" 0 R/BaseFont/"+Ca(Le.fontName)+"/FontDescriptor "+dr+" 0 R/Encoding/"+Le.encoding+" /FirstChar 29 /LastChar 255 /Widths "+b.API.PDFObject.convert(Le.metadata.hmtx.widths)+">>"),ke("endobj"),Le.isAlreadyPutted=!0}})(W)}]);var ne=function(W){var ge,Le=W.text||"",ke=W.x,rt=W.y,yt=W.options||{},vt=W.mutex||{},Pt=vt.pdfEscape,Ve=vt.activeFontKey,cr=vt.fonts,tr=Ve,dr="",Qt=0,pr="",Mr=cr[tr].encoding;if(cr[tr].encoding!=="Identity-H")return{text:Le,x:ke,y:rt,options:yt,mutex:vt};for(pr=Le,tr=Ve,Array.isArray(Le)&&(pr=Le[0]),Qt=0;Qt<pr.length;Qt+=1)cr[tr].metadata.hasOwnProperty("cmap")&&(ge=cr[tr].metadata.cmap.unicode.codeMap[pr[Qt].charCodeAt(0)]),ge||pr[Qt].charCodeAt(0)<256&&cr[tr].metadata.hasOwnProperty("Unicode")?dr+=pr[Qt]:dr+="";var sn="";return parseInt(tr.slice(1))<14||Mr==="WinAnsiEncoding"?sn=Pt(dr,tr).split("").map(function(Rn){return Rn.charCodeAt(0).toString(16)}).join(""):Mr==="Identity-H"&&(sn=y(dr,cr[tr])),vt.isHex=!0,{text:sn,x:ke,y:rt,options:yt,mutex:vt}};u.events.push(["postProcessText",function(W){var ge=W.text||"",Le=[],ke={text:ge,x:W.x,y:W.y,options:W.options,mutex:W.mutex};if(Array.isArray(ge)){var rt=0;for(rt=0;rt<ge.length;rt+=1)Array.isArray(ge[rt])&&ge[rt].length===3?Le.push([ne(Object.assign({},ke,{text:ge[rt][0]})).text,ge[rt][1],ge[rt][2]]):Le.push(ne(Object.assign({},ke,{text:ge[rt]})).text);W.text=Le}else W.text=ne(Object.assign({},ke,{text:ge})).text}])}(Ni),function(b){var u=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};b.existsFileInVFS=function(y){return u.call(this),this.internal.vFS[y]!==void 0},b.addFileToVFS=function(y,M){return u.call(this),this.internal.vFS[y]=M,this},b.getFileFromVFS=function(y){return u.call(this),this.internal.vFS[y]!==void 0?this.internal.vFS[y]:null}}(Ni.API),function(b){b.__bidiEngine__=b.prototype.__bidiEngine__=function(M){var ne,W,ge,Le,ke,rt,yt,vt=u,Pt=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Ve=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],cr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},tr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},dr=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],Qt=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),pr=!1,Mr=0;this.__bidiEngine__={};var sn=function(er){var nr=er.charCodeAt(),ye=nr>>8,xe=tr[ye];return xe!==void 0?vt[256*xe+(255&nr)]:ye===252||ye===253?"AL":Qt.test(ye)?"L":ye===8?"R":"N"},Rn=function(er){for(var nr,ye=0;ye<er.length;ye++){if((nr=sn(er.charAt(ye)))==="L")return!1;if(nr==="R")return!0}return!1},di=function(er,nr,ye,xe){var et,st,gt,ft,Ut=nr[xe];switch(Ut){case"L":case"R":pr=!1;break;case"N":case"AN":break;case"EN":pr&&(Ut="AN");break;case"AL":pr=!0,Ut="R";break;case"WS":Ut="N";break;case"CS":xe<1||xe+1>=nr.length||(et=ye[xe-1])!=="EN"&&et!=="AN"||(st=nr[xe+1])!=="EN"&&st!=="AN"?Ut="N":pr&&(st="AN"),Ut=st===et?st:"N";break;case"ES":Ut=(et=xe>0?ye[xe-1]:"B")==="EN"&&xe+1<nr.length&&nr[xe+1]==="EN"?"EN":"N";break;case"ET":if(xe>0&&ye[xe-1]==="EN"){Ut="EN";break}if(pr){Ut="N";break}for(gt=xe+1,ft=nr.length;gt<ft&&nr[gt]==="ET";)gt++;Ut=gt<ft&&nr[gt]==="EN"?"EN":"N";break;case"NSM":if(ge&&!Le){for(ft=nr.length,gt=xe+1;gt<ft&&nr[gt]==="NSM";)gt++;if(gt<ft){var $t=er[xe],sr=$t>=1425&&$t<=2303||$t===64286;if(et=nr[gt],sr&&(et==="R"||et==="AL")){Ut="R";break}}}Ut=xe<1||(et=nr[xe-1])==="B"?"N":ye[xe-1];break;case"B":pr=!1,ne=!0,Ut=Mr;break;case"S":W=!0,Ut="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":pr=!1;break;case"BN":Ut="N"}return Ut},pn=function(er,nr,ye){var xe=er.split("");return ye&&Sr(xe,ye,{hiLevel:Mr}),xe.reverse(),nr&&nr.reverse(),xe.join("")},Sr=function(er,nr,ye){var xe,et,st,gt,ft,Ut=-1,$t=er.length,sr=0,Ze=[],_e=Mr?Ve:Pt,wt=[];for(pr=!1,ne=!1,W=!1,et=0;et<$t;et++)wt[et]=sn(er[et]);for(st=0;st<$t;st++){if(ft=sr,Ze[st]=di(er,wt,Ze,st),xe=240&(sr=_e[ft][cr[Ze[st]]]),sr&=15,nr[st]=gt=_e[sr][5],xe>0)if(xe===16){for(et=Ut;et<st;et++)nr[et]=1;Ut=-1}else Ut=-1;if(_e[sr][6])Ut===-1&&(Ut=st);else if(Ut>-1){for(et=Ut;et<st;et++)nr[et]=gt;Ut=-1}wt[st]==="B"&&(nr[st]=0),ye.hiLevel|=gt}W&&function(Ht,Wt,lr){for(var St=0;St<lr;St++)if(Ht[St]==="S"){Wt[St]=Mr;for(var yr=St-1;yr>=0&&Ht[yr]==="WS";yr--)Wt[yr]=Mr}}(wt,nr,$t)},xn=function(er,nr,ye,xe,et){if(!(et.hiLevel<er)){if(er===1&&Mr===1&&!ne)return nr.reverse(),void(ye&&ye.reverse());for(var st,gt,ft,Ut,$t=nr.length,sr=0;sr<$t;){if(xe[sr]>=er){for(ft=sr+1;ft<$t&&xe[ft]>=er;)ft++;for(Ut=sr,gt=ft-1;Ut<gt;Ut++,gt--)st=nr[Ut],nr[Ut]=nr[gt],nr[gt]=st,ye&&(st=ye[Ut],ye[Ut]=ye[gt],ye[gt]=st);sr=ft}sr++}}},Nn=function(er,nr,ye){var xe=er.split(""),et={hiLevel:Mr};return ye||(ye=[]),Sr(xe,ye,et),function(st,gt,ft){if(ft.hiLevel!==0&&yt)for(var Ut,$t=0;$t<st.length;$t++)gt[$t]===1&&(Ut=dr.indexOf(st[$t]))>=0&&(st[$t]=dr[Ut+1])}(xe,ye,et),xn(2,xe,nr,ye,et),xn(1,xe,nr,ye,et),xe.join("")};return this.__bidiEngine__.doBidiReorder=function(er,nr,ye){if(function(et,st){if(st)for(var gt=0;gt<et.length;gt++)st[gt]=gt;Le===void 0&&(Le=Rn(et)),rt===void 0&&(rt=Rn(et))}(er,nr),ge||!ke||rt)if(ge&&ke&&Le^rt)Mr=Le?1:0,er=pn(er,nr,ye);else if(!ge&&ke&&rt)Mr=Le?1:0,er=Nn(er,nr,ye),er=pn(er,nr);else if(!ge||Le||ke||rt){if(ge&&!ke&&Le^rt)er=pn(er,nr),Le?(Mr=0,er=Nn(er,nr,ye)):(Mr=1,er=Nn(er,nr,ye),er=pn(er,nr));else if(ge&&Le&&!ke&&rt)Mr=1,er=Nn(er,nr,ye),er=pn(er,nr);else if(!ge&&!ke&&Le^rt){var xe=yt;Le?(Mr=1,er=Nn(er,nr,ye),Mr=0,yt=!1,er=Nn(er,nr,ye),yt=xe):(Mr=0,er=Nn(er,nr,ye),er=pn(er,nr),Mr=1,yt=!1,er=Nn(er,nr,ye),yt=xe,er=pn(er,nr))}}else Mr=0,er=Nn(er,nr,ye);else Mr=Le?1:0,er=Nn(er,nr,ye);return er},this.__bidiEngine__.setOptions=function(er){er&&(ge=er.isInputVisual,ke=er.isOutputVisual,Le=er.isInputRtl,rt=er.isOutputRtl,yt=er.isSymmetricSwapping)},this.__bidiEngine__.setOptions(M),this.__bidiEngine__};var u=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],y=new b.__bidiEngine__({isInputVisual:!0});b.API.events.push(["postProcessText",function(M){var ne=M.text,W=(M.x,M.y,M.options||{}),ge=(M.mutex,W.lang,[]);if(W.isInputVisual=typeof W.isInputVisual!="boolean"||W.isInputVisual,y.setOptions(W),Object.prototype.toString.call(ne)==="[object Array]"){var Le=0;for(ge=[],Le=0;Le<ne.length;Le+=1)Object.prototype.toString.call(ne[Le])==="[object Array]"?ge.push([y.doBidiReorder(ne[Le][0]),ne[Le][1],ne[Le][2]]):ge.push([y.doBidiReorder(ne[Le])]);M.text=ge}else M.text=y.doBidiReorder(ne);y.setOptions({isInputVisual:!0})}])}(Ni),Ni.API.TTFFont=function(){function b(u){var y;if(this.rawData=u,y=this.contents=new Wa(u),this.contents.pos=4,y.readString(4)==="ttcf")throw new Error("TTCF not supported.");y.pos=0,this.parse(),this.subset=new Hu(this),this.registerTTF()}return b.open=function(u){return new b(u)},b.prototype.parse=function(){return this.directory=new vs(this.contents),this.head=new qs(this),this.name=new ci(this),this.cmap=new il(this),this.toUnicode={},this.hhea=new Rl(this),this.maxp=new Au(this),this.hmtx=new Wl(this),this.post=new Ol(this),this.os2=new cu(this),this.loca=new Xo(this),this.glyf=new ac(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},b.prototype.registerTTF=function(){var u,y,M,ne,W;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ge,Le,ke,rt;for(rt=[],ge=0,Le=(ke=this.bbox).length;ge<Le;ge++)u=ke[ge],rt.push(Math.round(u*this.scaleFactor));return rt}.call(this),this.stemV=0,this.post.exists?(M=255&(ne=this.post.italic_angle),32768&(y=ne>>16)&&(y=-(1+(65535^y))),this.italicAngle=+(y+"."+M)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(W=this.familyClass)===1||W===2||W===3||W===4||W===5||W===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},b.prototype.characterToGlyph=function(u){var y;return((y=this.cmap.unicode)!=null?y.codeMap[u]:void 0)||0},b.prototype.widthOfGlyph=function(u){var y;return y=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(u).advance*y},b.prototype.widthOfString=function(u,y,M){var ne,W,ge,Le;for(ge=0,W=0,Le=(u=""+u).length;0<=Le?W<Le:W>Le;W=0<=Le?++W:--W)ne=u.charCodeAt(W),ge+=this.widthOfGlyph(this.characterToGlyph(ne))+M*(1e3/y)||0;return ge*(y/1e3)},b.prototype.lineHeight=function(u,y){var M;return y==null&&(y=!1),M=y?this.lineGap:0,(this.ascender+M-this.decender)/1e3*u},b}();var Lo,Wa=function(){function b(u){this.data=u!=null?u:[],this.pos=0,this.length=this.data.length}return b.prototype.readByte=function(){return this.data[this.pos++]},b.prototype.writeByte=function(u){return this.data[this.pos++]=u},b.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},b.prototype.writeUInt32=function(u){return this.writeByte(u>>>24&255),this.writeByte(u>>16&255),this.writeByte(u>>8&255),this.writeByte(255&u)},b.prototype.readInt32=function(){var u;return(u=this.readUInt32())>=2147483648?u-4294967296:u},b.prototype.writeInt32=function(u){return u<0&&(u+=4294967296),this.writeUInt32(u)},b.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},b.prototype.writeUInt16=function(u){return this.writeByte(u>>8&255),this.writeByte(255&u)},b.prototype.readInt16=function(){var u;return(u=this.readUInt16())>=32768?u-65536:u},b.prototype.writeInt16=function(u){return u<0&&(u+=65536),this.writeUInt16(u)},b.prototype.readString=function(u){var y,M;for(M=[],y=0;0<=u?y<u:y>u;y=0<=u?++y:--y)M[y]=String.fromCharCode(this.readByte());return M.join("")},b.prototype.writeString=function(u){var y,M,ne;for(ne=[],y=0,M=u.length;0<=M?y<M:y>M;y=0<=M?++y:--y)ne.push(this.writeByte(u.charCodeAt(y)));return ne},b.prototype.readShort=function(){return this.readInt16()},b.prototype.writeShort=function(u){return this.writeInt16(u)},b.prototype.readLongLong=function(){var u,y,M,ne,W,ge,Le,ke;return u=this.readByte(),y=this.readByte(),M=this.readByte(),ne=this.readByte(),W=this.readByte(),ge=this.readByte(),Le=this.readByte(),ke=this.readByte(),128&u?-1*(72057594037927940*(255^u)+281474976710656*(255^y)+1099511627776*(255^M)+4294967296*(255^ne)+16777216*(255^W)+65536*(255^ge)+256*(255^Le)+(255^ke)+1):72057594037927940*u+281474976710656*y+1099511627776*M+4294967296*ne+16777216*W+65536*ge+256*Le+ke},b.prototype.writeLongLong=function(u){var y,M;return y=Math.floor(u/4294967296),M=4294967295&u,this.writeByte(y>>24&255),this.writeByte(y>>16&255),this.writeByte(y>>8&255),this.writeByte(255&y),this.writeByte(M>>24&255),this.writeByte(M>>16&255),this.writeByte(M>>8&255),this.writeByte(255&M)},b.prototype.readInt=function(){return this.readInt32()},b.prototype.writeInt=function(u){return this.writeInt32(u)},b.prototype.read=function(u){var y,M;for(y=[],M=0;0<=u?M<u:M>u;M=0<=u?++M:--M)y.push(this.readByte());return y},b.prototype.write=function(u){var y,M,ne,W;for(W=[],M=0,ne=u.length;M<ne;M++)y=u[M],W.push(this.writeByte(y));return W},b}(),vs=function(){var b;function u(y){var M,ne,W;for(this.scalarType=y.readInt(),this.tableCount=y.readShort(),this.searchRange=y.readShort(),this.entrySelector=y.readShort(),this.rangeShift=y.readShort(),this.tables={},ne=0,W=this.tableCount;0<=W?ne<W:ne>W;ne=0<=W?++ne:--ne)M={tag:y.readString(4),checksum:y.readInt(),offset:y.readInt(),length:y.readInt()},this.tables[M.tag]=M}return u.prototype.encode=function(y){var M,ne,W,ge,Le,ke,rt,yt,vt,Pt,Ve,cr,tr;for(tr in Ve=Object.keys(y).length,ke=Math.log(2),vt=16*Math.floor(Math.log(Ve)/ke),ge=Math.floor(vt/ke),yt=16*Ve-vt,(ne=new Wa).writeInt(this.scalarType),ne.writeShort(Ve),ne.writeShort(vt),ne.writeShort(ge),ne.writeShort(yt),W=16*Ve,rt=ne.pos+W,Le=null,cr=[],y)for(Pt=y[tr],ne.writeString(tr),ne.writeInt(b(Pt)),ne.writeInt(rt),ne.writeInt(Pt.length),cr=cr.concat(Pt),tr==="head"&&(Le=rt),rt+=Pt.length;rt%4;)cr.push(0),rt++;return ne.write(cr),M=2981146554-b(ne.data),ne.pos=Le+8,ne.writeUInt32(M),ne.data},b=function(y){var M,ne,W,ge;for(y=ic.call(y);y.length%4;)y.push(0);for(W=new Wa(y),ne=0,M=0,ge=y.length;M<ge;M=M+=4)ne+=W.readUInt32();return 4294967295&ne},u}(),Ja={}.hasOwnProperty,Cs=function(b,u){for(var y in u)Ja.call(u,y)&&(b[y]=u[y]);function M(){this.constructor=b}return M.prototype=u.prototype,b.prototype=new M,b.__super__=u.prototype,b};Lo=function(){function b(u){var y;this.file=u,y=this.file.directory.tables[this.tag],this.exists=!!y,y&&(this.offset=y.offset,this.length=y.length,this.parse(this.file.contents))}return b.prototype.parse=function(){},b.prototype.encode=function(){},b.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},b}();var qs=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="head",u.prototype.parse=function(y){return y.pos=this.offset,this.version=y.readInt(),this.revision=y.readInt(),this.checkSumAdjustment=y.readInt(),this.magicNumber=y.readInt(),this.flags=y.readShort(),this.unitsPerEm=y.readShort(),this.created=y.readLongLong(),this.modified=y.readLongLong(),this.xMin=y.readShort(),this.yMin=y.readShort(),this.xMax=y.readShort(),this.yMax=y.readShort(),this.macStyle=y.readShort(),this.lowestRecPPEM=y.readShort(),this.fontDirectionHint=y.readShort(),this.indexToLocFormat=y.readShort(),this.glyphDataFormat=y.readShort()},u.prototype.encode=function(y){var M;return(M=new Wa).writeInt(this.version),M.writeInt(this.revision),M.writeInt(this.checkSumAdjustment),M.writeInt(this.magicNumber),M.writeShort(this.flags),M.writeShort(this.unitsPerEm),M.writeLongLong(this.created),M.writeLongLong(this.modified),M.writeShort(this.xMin),M.writeShort(this.yMin),M.writeShort(this.xMax),M.writeShort(this.yMax),M.writeShort(this.macStyle),M.writeShort(this.lowestRecPPEM),M.writeShort(this.fontDirectionHint),M.writeShort(y),M.writeShort(this.glyphDataFormat),M.data},u}(),El=function(){function b(u,y){var M,ne,W,ge,Le,ke,rt,yt,vt,Pt,Ve,cr,tr,dr,Qt,pr,Mr;switch(this.platformID=u.readUInt16(),this.encodingID=u.readShort(),this.offset=y+u.readInt(),vt=u.pos,u.pos=this.offset,this.format=u.readUInt16(),this.length=u.readUInt16(),this.language=u.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(ke=0;ke<256;++ke)this.codeMap[ke]=u.readByte();break;case 4:for(Ve=u.readUInt16(),Pt=Ve/2,u.pos+=6,W=function(){var sn,Rn;for(Rn=[],ke=sn=0;0<=Pt?sn<Pt:sn>Pt;ke=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),u.pos+=2,tr=function(){var sn,Rn;for(Rn=[],ke=sn=0;0<=Pt?sn<Pt:sn>Pt;ke=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),rt=function(){var sn,Rn;for(Rn=[],ke=sn=0;0<=Pt?sn<Pt:sn>Pt;ke=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),yt=function(){var sn,Rn;for(Rn=[],ke=sn=0;0<=Pt?sn<Pt:sn>Pt;ke=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),ne=(this.length-u.pos+this.offset)/2,Le=function(){var sn,Rn;for(Rn=[],ke=sn=0;0<=ne?sn<ne:sn>ne;ke=0<=ne?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),ke=Qt=0,Mr=W.length;Qt<Mr;ke=++Qt)for(dr=W[ke],M=pr=cr=tr[ke];cr<=dr?pr<=dr:pr>=dr;M=cr<=dr?++pr:--pr)yt[ke]===0?ge=M+rt[ke]:(ge=Le[yt[ke]/2+(M-cr)-(Pt-ke)]||0)!==0&&(ge+=rt[ke]),this.codeMap[M]=65535&ge}u.pos=vt}return b.encode=function(u,y){var M,ne,W,ge,Le,ke,rt,yt,vt,Pt,Ve,cr,tr,dr,Qt,pr,Mr,sn,Rn,di,pn,Sr,xn,Nn,er,nr,ye,xe,et,st,gt,ft,Ut,$t,sr,Ze,_e,wt,Ht,Wt,lr,St,yr,Gr,$r,An;switch(xe=new Wa,ge=Object.keys(u).sort(function(Dn,ni){return Dn-ni}),y){case"macroman":for(tr=0,dr=function(){var Dn=[];for(cr=0;cr<256;++cr)Dn.push(0);return Dn}(),pr={0:0},W={},et=0,Ut=ge.length;et<Ut;et++)pr[yr=u[ne=ge[et]]]==null&&(pr[yr]=++tr),W[ne]={old:u[ne],new:pr[u[ne]]},dr[ne]=pr[u[ne]];return xe.writeUInt16(1),xe.writeUInt16(0),xe.writeUInt32(12),xe.writeUInt16(0),xe.writeUInt16(262),xe.writeUInt16(0),xe.write(dr),{charMap:W,subtable:xe.data,maxGlyphID:tr+1};case"unicode":for(nr=[],vt=[],Mr=0,pr={},M={},Qt=rt=null,st=0,$t=ge.length;st<$t;st++)pr[Rn=u[ne=ge[st]]]==null&&(pr[Rn]=++Mr),M[ne]={old:Rn,new:pr[Rn]},Le=pr[Rn]-ne,Qt!=null&&Le===rt||(Qt&&vt.push(Qt),nr.push(ne),rt=Le),Qt=ne;for(Qt&&vt.push(Qt),vt.push(65535),nr.push(65535),Nn=2*(xn=nr.length),Sr=2*Math.pow(Math.log(xn)/Math.LN2,2),Pt=Math.log(Sr/2)/Math.LN2,pn=2*xn-Sr,ke=[],di=[],Ve=[],cr=gt=0,sr=nr.length;gt<sr;cr=++gt){if(er=nr[cr],yt=vt[cr],er===65535){ke.push(0),di.push(0);break}if(er-(ye=M[er].new)>=32768)for(ke.push(0),di.push(2*(Ve.length+xn-cr)),ne=ft=er;er<=yt?ft<=yt:ft>=yt;ne=er<=yt?++ft:--ft)Ve.push(M[ne].new);else ke.push(ye-er),di.push(0)}for(xe.writeUInt16(3),xe.writeUInt16(1),xe.writeUInt32(12),xe.writeUInt16(4),xe.writeUInt16(16+8*xn+2*Ve.length),xe.writeUInt16(0),xe.writeUInt16(Nn),xe.writeUInt16(Sr),xe.writeUInt16(Pt),xe.writeUInt16(pn),lr=0,Ze=vt.length;lr<Ze;lr++)ne=vt[lr],xe.writeUInt16(ne);for(xe.writeUInt16(0),St=0,_e=nr.length;St<_e;St++)ne=nr[St],xe.writeUInt16(ne);for(Gr=0,wt=ke.length;Gr<wt;Gr++)Le=ke[Gr],xe.writeUInt16(Le);for($r=0,Ht=di.length;$r<Ht;$r++)sn=di[$r],xe.writeUInt16(sn);for(An=0,Wt=Ve.length;An<Wt;An++)tr=Ve[An],xe.writeUInt16(tr);return{charMap:M,subtable:xe.data,maxGlyphID:Mr+1}}},b}(),il=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="cmap",u.prototype.parse=function(y){var M,ne,W;for(y.pos=this.offset,this.version=y.readUInt16(),W=y.readUInt16(),this.tables=[],this.unicode=null,ne=0;0<=W?ne<W:ne>W;ne=0<=W?++ne:--ne)M=new El(y,this.offset),this.tables.push(M),M.isUnicode&&this.unicode==null&&(this.unicode=M);return!0},u.encode=function(y,M){var ne,W;return M==null&&(M="macroman"),ne=El.encode(y,M),(W=new Wa).writeUInt16(0),W.writeUInt16(1),ne.table=W.data.concat(ne.subtable),ne},u}(),Rl=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="hhea",u.prototype.parse=function(y){return y.pos=this.offset,this.version=y.readInt(),this.ascender=y.readShort(),this.decender=y.readShort(),this.lineGap=y.readShort(),this.advanceWidthMax=y.readShort(),this.minLeftSideBearing=y.readShort(),this.minRightSideBearing=y.readShort(),this.xMaxExtent=y.readShort(),this.caretSlopeRise=y.readShort(),this.caretSlopeRun=y.readShort(),this.caretOffset=y.readShort(),y.pos+=8,this.metricDataFormat=y.readShort(),this.numberOfMetrics=y.readUInt16()},u}(),cu=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="OS/2",u.prototype.parse=function(y){if(y.pos=this.offset,this.version=y.readUInt16(),this.averageCharWidth=y.readShort(),this.weightClass=y.readUInt16(),this.widthClass=y.readUInt16(),this.type=y.readShort(),this.ySubscriptXSize=y.readShort(),this.ySubscriptYSize=y.readShort(),this.ySubscriptXOffset=y.readShort(),this.ySubscriptYOffset=y.readShort(),this.ySuperscriptXSize=y.readShort(),this.ySuperscriptYSize=y.readShort(),this.ySuperscriptXOffset=y.readShort(),this.ySuperscriptYOffset=y.readShort(),this.yStrikeoutSize=y.readShort(),this.yStrikeoutPosition=y.readShort(),this.familyClass=y.readShort(),this.panose=function(){var M,ne;for(ne=[],M=0;M<10;++M)ne.push(y.readByte());return ne}(),this.charRange=function(){var M,ne;for(ne=[],M=0;M<4;++M)ne.push(y.readInt());return ne}(),this.vendorID=y.readString(4),this.selection=y.readShort(),this.firstCharIndex=y.readShort(),this.lastCharIndex=y.readShort(),this.version>0&&(this.ascent=y.readShort(),this.descent=y.readShort(),this.lineGap=y.readShort(),this.winAscent=y.readShort(),this.winDescent=y.readShort(),this.codePageRange=function(){var M,ne;for(ne=[],M=0;M<2;M=++M)ne.push(y.readInt());return ne}(),this.version>1))return this.xHeight=y.readShort(),this.capHeight=y.readShort(),this.defaultChar=y.readShort(),this.breakChar=y.readShort(),this.maxContext=y.readShort()},u}(),Ol=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="post",u.prototype.parse=function(y){var M,ne,W;switch(y.pos=this.offset,this.format=y.readInt(),this.italicAngle=y.readInt(),this.underlinePosition=y.readShort(),this.underlineThickness=y.readShort(),this.isFixedPitch=y.readInt(),this.minMemType42=y.readInt(),this.maxMemType42=y.readInt(),this.minMemType1=y.readInt(),this.maxMemType1=y.readInt(),this.format){case 65536:break;case 131072:var ge;for(ne=y.readUInt16(),this.glyphNameIndex=[],ge=0;0<=ne?ge<ne:ge>ne;ge=0<=ne?++ge:--ge)this.glyphNameIndex.push(y.readUInt16());for(this.names=[],W=[];y.pos<this.offset+this.length;)M=y.readByte(),W.push(this.names.push(y.readString(M)));return W;case 151552:return ne=y.readUInt16(),this.offsets=y.read(ne);case 196608:break;case 262144:return this.map=function(){var Le,ke,rt;for(rt=[],ge=Le=0,ke=this.file.maxp.numGlyphs;0<=ke?Le<ke:Le>ke;ge=0<=ke?++Le:--Le)rt.push(y.readUInt32());return rt}.call(this)}},u}(),Pl=function(b,u){this.raw=b,this.length=b.length,this.platformID=u.platformID,this.encodingID=u.encodingID,this.languageID=u.languageID},ci=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="name",u.prototype.parse=function(y){var M,ne,W,ge,Le,ke,rt,yt,vt,Pt,Ve;for(y.pos=this.offset,y.readShort(),M=y.readShort(),ke=y.readShort(),ne=[],ge=0;0<=M?ge<M:ge>M;ge=0<=M?++ge:--ge)ne.push({platformID:y.readShort(),encodingID:y.readShort(),languageID:y.readShort(),nameID:y.readShort(),length:y.readShort(),offset:this.offset+ke+y.readShort()});for(rt={},ge=vt=0,Pt=ne.length;vt<Pt;ge=++vt)W=ne[ge],y.pos=W.offset,yt=y.readString(W.length),Le=new Pl(yt,W),rt[Ve=W.nameID]==null&&(rt[Ve]=[]),rt[W.nameID].push(Le);this.strings=rt,this.copyright=rt[0],this.fontFamily=rt[1],this.fontSubfamily=rt[2],this.uniqueSubfamily=rt[3],this.fontName=rt[4],this.version=rt[5];try{this.postscriptName=rt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(cr){this.postscriptName=rt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=rt[7],this.manufacturer=rt[8],this.designer=rt[9],this.description=rt[10],this.vendorUrl=rt[11],this.designerUrl=rt[12],this.license=rt[13],this.licenseUrl=rt[14],this.preferredFamily=rt[15],this.preferredSubfamily=rt[17],this.compatibleFull=rt[18],this.sampleText=rt[19]},u}(),Au=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="maxp",u.prototype.parse=function(y){return y.pos=this.offset,this.version=y.readInt(),this.numGlyphs=y.readUInt16(),this.maxPoints=y.readUInt16(),this.maxContours=y.readUInt16(),this.maxCompositePoints=y.readUInt16(),this.maxComponentContours=y.readUInt16(),this.maxZones=y.readUInt16(),this.maxTwilightPoints=y.readUInt16(),this.maxStorage=y.readUInt16(),this.maxFunctionDefs=y.readUInt16(),this.maxInstructionDefs=y.readUInt16(),this.maxStackElements=y.readUInt16(),this.maxSizeOfInstructions=y.readUInt16(),this.maxComponentElements=y.readUInt16(),this.maxComponentDepth=y.readUInt16()},u}(),Wl=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="hmtx",u.prototype.parse=function(y){var M,ne,W,ge,Le,ke,rt;for(y.pos=this.offset,this.metrics=[],M=0,ke=this.file.hhea.numberOfMetrics;0<=ke?M<ke:M>ke;M=0<=ke?++M:--M)this.metrics.push({advance:y.readUInt16(),lsb:y.readInt16()});for(W=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var yt,vt;for(vt=[],M=yt=0;0<=W?yt<W:yt>W;M=0<=W?++yt:--yt)vt.push(y.readInt16());return vt}(),this.widths=function(){var yt,vt,Pt,Ve;for(Ve=[],yt=0,vt=(Pt=this.metrics).length;yt<vt;yt++)ge=Pt[yt],Ve.push(ge.advance);return Ve}.call(this),ne=this.widths[this.widths.length-1],rt=[],M=Le=0;0<=W?Le<W:Le>W;M=0<=W?++Le:--Le)rt.push(this.widths.push(ne));return rt},u.prototype.forGlyph=function(y){return y in this.metrics?this.metrics[y]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[y-this.metrics.length]}},u}(),ic=[].slice,ac=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="glyf",u.prototype.parse=function(){return this.cache={}},u.prototype.glyphFor=function(y){var M,ne,W,ge,Le,ke,rt,yt,vt,Pt;return y in this.cache?this.cache[y]:(ge=this.file.loca,M=this.file.contents,ne=ge.indexOf(y),(W=ge.lengthOf(y))===0?this.cache[y]=null:(M.pos=this.offset+ne,Le=(ke=new Wa(M.read(W))).readShort(),yt=ke.readShort(),Pt=ke.readShort(),rt=ke.readShort(),vt=ke.readShort(),this.cache[y]=Le===-1?new sc(ke,yt,Pt,rt,vt):new du(ke,Le,yt,Pt,rt,vt),this.cache[y]))},u.prototype.encode=function(y,M,ne){var W,ge,Le,ke,rt;for(Le=[],ge=[],ke=0,rt=M.length;ke<rt;ke++)W=y[M[ke]],ge.push(Le.length),W&&(Le=Le.concat(W.encode(ne)));return ge.push(Le.length),{table:Le,offsets:ge}},u}(),du=function(){function b(u,y,M,ne,W,ge){this.raw=u,this.numberOfContours=y,this.xMin=M,this.yMin=ne,this.xMax=W,this.yMax=ge,this.compound=!1}return b.prototype.encode=function(){return this.raw.data},b}(),sc=function(){function b(u,y,M,ne,W){var ge,Le;for(this.raw=u,this.xMin=y,this.yMin=M,this.xMax=ne,this.yMax=W,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ge=this.raw;Le=ge.readShort(),this.glyphOffsets.push(ge.pos),this.glyphIDs.push(ge.readUInt16()),32&Le;)ge.pos+=1&Le?4:2,128&Le?ge.pos+=8:64&Le?ge.pos+=4:8&Le&&(ge.pos+=2)}return b.prototype.encode=function(){var u,y,M;for(y=new Wa(ic.call(this.raw.data)),u=0,M=this.glyphIDs.length;u<M;++u)y.pos=this.glyphOffsets[u];return y.data},b}(),Xo=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="loca",u.prototype.parse=function(y){var M,ne;return y.pos=this.offset,M=this.file.head.indexToLocFormat,this.offsets=M===0?function(){var W,ge;for(ge=[],ne=0,W=this.length;ne<W;ne+=2)ge.push(2*y.readUInt16());return ge}.call(this):function(){var W,ge;for(ge=[],ne=0,W=this.length;ne<W;ne+=4)ge.push(y.readUInt32());return ge}.call(this)},u.prototype.indexOf=function(y){return this.offsets[y]},u.prototype.lengthOf=function(y){return this.offsets[y+1]-this.offsets[y]},u.prototype.encode=function(y,M){for(var ne=new Uint32Array(this.offsets.length),W=0,ge=0,Le=0;Le<ne.length;++Le)if(ne[Le]=W,ge<M.length&&M[ge]==Le){++ge,ne[Le]=W;var ke=this.offsets[Le],rt=this.offsets[Le+1]-ke;rt>0&&(W+=rt)}for(var yt=new Array(4*ne.length),vt=0;vt<ne.length;++vt)yt[4*vt+3]=255&ne[vt],yt[4*vt+2]=(65280&ne[vt])>>8,yt[4*vt+1]=(16711680&ne[vt])>>16,yt[4*vt]=(4278190080&ne[vt])>>24;return yt},u}(),Hu=function(){function b(u){this.font=u,this.subset={},this.unicodes={},this.next=33}return b.prototype.generateCmap=function(){var u,y,M,ne,W;for(y in ne=this.font.cmap.tables[0].codeMap,u={},W=this.subset)M=W[y],u[y]=ne[M];return u},b.prototype.glyphsFor=function(u){var y,M,ne,W,ge,Le,ke;for(ne={},ge=0,Le=u.length;ge<Le;ge++)ne[W=u[ge]]=this.font.glyf.glyphFor(W);for(W in y=[],ne)(M=ne[W])!=null&&M.compound&&y.push.apply(y,M.glyphIDs);if(y.length>0)for(W in ke=this.glyphsFor(y))M=ke[W],ne[W]=M;return ne},b.prototype.encode=function(u,y){var M,ne,W,ge,Le,ke,rt,yt,vt,Pt,Ve,cr,tr,dr,Qt;for(ne in M=il.encode(this.generateCmap(),"unicode"),ge=this.glyphsFor(u),Ve={0:0},Qt=M.charMap)Ve[(ke=Qt[ne]).old]=ke.new;for(cr in Pt=M.maxGlyphID,ge)cr in Ve||(Ve[cr]=Pt++);return yt=function(pr){var Mr,sn;for(Mr in sn={},pr)sn[pr[Mr]]=Mr;return sn}(Ve),vt=Object.keys(yt).sort(function(pr,Mr){return pr-Mr}),tr=function(){var pr,Mr,sn;for(sn=[],pr=0,Mr=vt.length;pr<Mr;pr++)Le=vt[pr],sn.push(yt[Le]);return sn}(),W=this.font.glyf.encode(ge,tr,Ve),rt=this.font.loca.encode(W.offsets,tr),dr={cmap:this.font.cmap.raw(),glyf:W.table,loca:rt,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(y)},this.font.os2.exists&&(dr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(dr)},b}();Ni.API.PDFObject=function(){var b;function u(){}return b=function(y,M){return(Array(M+1).join("0")+y).slice(-M)},u.convert=function(y){var M,ne,W,ge;if(Array.isArray(y))return"["+function(){var Le,ke,rt;for(rt=[],Le=0,ke=y.length;Le<ke;Le++)M=y[Le],rt.push(u.convert(M));return rt}().join(" ")+"]";if(typeof y=="string")return"/"+y;if(y!=null&&y.isString)return"("+y+")";if(y instanceof Date)return"(D:"+b(y.getUTCFullYear(),4)+b(y.getUTCMonth(),2)+b(y.getUTCDate(),2)+b(y.getUTCHours(),2)+b(y.getUTCMinutes(),2)+b(y.getUTCSeconds(),2)+"Z)";if({}.toString.call(y)==="[object Object]"){for(ne in W=["<<"],y)ge=y[ne],W.push("/"+ne+" "+u.convert(ge));return W.push(">>"),W.join(`
|
|
|
`)}return""+y},u}();var oc=Ni},86129:function(bn,Zt,g){var we=g(19208).lW,De=g(97671);(function(se){bn.exports=se()})(function(){return function se(Me,ie,Y){function O(o,L){if(!ie[o]){if(!Me[o]){var p=void 0;if(!L&&p)return require(o,!0);if(I)return I(o,!0);var a=new Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}var A=ie[o]={exports:{}};Me[o][0].call(A.exports,function(m){var S=Me[o][1][m];return O(S||m)},A,A.exports,se,Me,ie,Y)}return ie[o].exports}for(var I=void 0,n=0;n<Y.length;n++)O(Y[n]);return O}({1:[function(se,Me,ie){"use strict";var Y=se("./utils"),O=se("./support"),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ie.encode=function(n){for(var o,L,p,a,A,m,S,$=[],F=0,H=n.length,V=H,ee=Y.getTypeOf(n)!=="string";F<n.length;)V=H-F,p=ee?(o=n[F++],L=F<H?n[F++]:0,F<H?n[F++]:0):(o=n.charCodeAt(F++),L=F<H?n.charCodeAt(F++):0,F<H?n.charCodeAt(F++):0),a=o>>2,A=(3&o)<<4|L>>4,m=1<V?(15&L)<<2|p>>6:64,S=2<V?63&p:64,$.push(I.charAt(a)+I.charAt(A)+I.charAt(m)+I.charAt(S));return $.join("")},ie.decode=function(n){var o,L,p,a,A,m,S=0,$=0,F="data:";if(n.substr(0,F.length)===F)throw new Error("Invalid base64 input, it looks like a data url.");var H,V=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===I.charAt(64)&&V--,n.charAt(n.length-2)===I.charAt(64)&&V--,V%1!=0)throw new Error("Invalid base64 input, bad content length.");for(H=O.uint8array?new Uint8Array(0|V):new Array(0|V);S<n.length;)o=I.indexOf(n.charAt(S++))<<2|(a=I.indexOf(n.charAt(S++)))>>4,L=(15&a)<<4|(A=I.indexOf(n.charAt(S++)))>>2,p=(3&A)<<6|(m=I.indexOf(n.charAt(S++))),H[$++]=o,A!==64&&(H[$++]=L),m!==64&&(H[$++]=p);return H}},{"./support":30,"./utils":32}],2:[function(se,Me,ie){"use strict";var Y=se("./external"),O=se("./stream/DataWorker"),I=se("./stream/Crc32Probe"),n=se("./stream/DataLengthProbe");function o(L,p,a,A,m){this.compressedSize=L,this.uncompressedSize=p,this.crc32=a,this.compression=A,this.compressedContent=m}o.prototype={getContentWorker:function(){var L=new O(Y.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),p=this;return L.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),L},getCompressedWorker:function(){return new O(Y.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(L,p,a){return L.pipe(new I).pipe(new n("uncompressedSize")).pipe(p.compressWorker(a)).pipe(new n("compressedSize")).withStreamInfo("compression",p)},Me.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(se,Me,ie){"use strict";var Y=se("./stream/GenericWorker");ie.STORE={magic:"\0\0",compressWorker:function(){return new Y("STORE compression")},uncompressWorker:function(){return new Y("STORE decompression")}},ie.DEFLATE=se("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(se,Me,ie){"use strict";var Y=se("./utils"),O=function(){for(var I,n=[],o=0;o<256;o++){I=o;for(var L=0;L<8;L++)I=1&I?3988292384^I>>>1:I>>>1;n[o]=I}return n}();Me.exports=function(I,n){return I!==void 0&&I.length?Y.getTypeOf(I)!=="string"?function(o,L,p,a){var A=O,m=a+p;o^=-1;for(var S=a;S<m;S++)o=o>>>8^A[255&(o^L[S])];return-1^o}(0|n,I,I.length,0):function(o,L,p,a){var A=O,m=a+p;o^=-1;for(var S=a;S<m;S++)o=o>>>8^A[255&(o^L.charCodeAt(S))];return-1^o}(0|n,I,I.length,0):0}},{"./utils":32}],5:[function(se,Me,ie){"use strict";ie.base64=!1,ie.binary=!1,ie.dir=!1,ie.createFolders=!0,ie.date=null,ie.compression=null,ie.compressionOptions=null,ie.comment=null,ie.unixPermissions=null,ie.dosPermissions=null},{}],6:[function(se,Me,ie){"use strict";var Y=null;Y=typeof Promise!="undefined"?Promise:se("lie"),Me.exports={Promise:Y}},{lie:37}],7:[function(se,Me,ie){"use strict";var Y=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",O=se("pako"),I=se("./utils"),n=se("./stream/GenericWorker"),o=Y?"uint8array":"array";function L(p,a){n.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=a,this.meta={}}ie.magic="\b\0",I.inherits(L,n),L.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(I.transformTo(o,p.data),!1)},L.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},L.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},L.prototype._createPako=function(){this._pako=new O[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(a){p.push({data:a,meta:p.meta})}},ie.compressWorker=function(p){return new L("Deflate",p)},ie.uncompressWorker=function(){return new L("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(se,Me,ie){"use strict";function Y(A,m){var S,$="";for(S=0;S<m;S++)$+=String.fromCharCode(255&A),A>>>=8;return $}function O(A,m,S,$,F,H){var V,ee,B=A.file,G=A.compression,le=H!==o.utf8encode,J=I.transformTo("string",H(B.name)),be=I.transformTo("string",o.utf8encode(B.name)),Ce=B.comment,Re=I.transformTo("string",H(Ce)),ae=I.transformTo("string",o.utf8encode(Ce)),me=be.length!==B.name.length,T=ae.length!==Ce.length,Ee="",oe="",he="",ve=B.dir,_=B.date,P={crc32:0,compressedSize:0,uncompressedSize:0};m&&!S||(P.crc32=A.crc32,P.compressedSize=A.compressedSize,P.uncompressedSize=A.uncompressedSize);var X=0;m&&(X|=8),le||!me&&!T||(X|=2048);var pe=0,Je=0;ve&&(pe|=16),F==="UNIX"?(Je=798,pe|=function(nt,Lt){var ur=nt;return nt||(ur=Lt?16893:33204),(65535&ur)<<16}(B.unixPermissions,ve)):(Je=20,pe|=function(nt){return 63&(nt||0)}(B.dosPermissions)),V=_.getUTCHours(),V<<=6,V|=_.getUTCMinutes(),V<<=5,V|=_.getUTCSeconds()/2,ee=_.getUTCFullYear()-1980,ee<<=4,ee|=_.getUTCMonth()+1,ee<<=5,ee|=_.getUTCDate(),me&&(oe=Y(1,1)+Y(L(J),4)+be,Ee+="up"+Y(oe.length,2)+oe),T&&(he=Y(1,1)+Y(L(Re),4)+ae,Ee+="uc"+Y(he.length,2)+he);var at="";return at+=`
|
|
|
\0`,at+=Y(X,2),at+=G.magic,at+=Y(V,2),at+=Y(ee,2),at+=Y(P.crc32,4),at+=Y(P.compressedSize,4),at+=Y(P.uncompressedSize,4),at+=Y(J.length,2),at+=Y(Ee.length,2),{fileRecord:p.LOCAL_FILE_HEADER+at+J+Ee,dirRecord:p.CENTRAL_FILE_HEADER+Y(Je,2)+at+Y(Re.length,2)+"\0\0\0\0"+Y(pe,4)+Y($,4)+J+Ee+Re}}var I=se("../utils"),n=se("../stream/GenericWorker"),o=se("../utf8"),L=se("../crc32"),p=se("../signature");function a(A,m,S,$){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=S,this.encodeFileName=$,this.streamFiles=A,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}I.inherits(a,n),a.prototype.push=function(A){var m=A.meta.percent||0,S=this.entriesCount,$=this._sources.length;this.accumulate?this.contentBuffer.push(A):(this.bytesWritten+=A.data.length,n.prototype.push.call(this,{data:A.data,meta:{currentFile:this.currentFile,percent:S?(m+100*(S-$-1))/S:100}}))},a.prototype.openedSource=function(A){this.currentSourceOffset=this.bytesWritten,this.currentFile=A.file.name;var m=this.streamFiles&&!A.file.dir;if(m){var S=O(A,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},a.prototype.closedSource=function(A){this.accumulate=!1;var m=this.streamFiles&&!A.file.dir,S=O(A,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),m)this.push({data:function($){return p.DATA_DESCRIPTOR+Y($.crc32,4)+Y($.compressedSize,4)+Y($.uncompressedSize,4)}(A),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},a.prototype.flush=function(){for(var A=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var S=this.bytesWritten-A,$=function(F,H,V,ee,B){var G=I.transformTo("string",B(ee));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Y(F,2)+Y(F,2)+Y(H,4)+Y(V,4)+Y(G.length,2)+G}(this.dirRecords.length,S,A,this.zipComment,this.encodeFileName);this.push({data:$,meta:{percent:100}})},a.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},a.prototype.registerPrevious=function(A){this._sources.push(A);var m=this;return A.on("data",function(S){m.processChunk(S)}),A.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),A.on("error",function(S){m.error(S)}),this},a.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},a.prototype.error=function(A){var m=this._sources;if(!n.prototype.error.call(this,A))return!1;for(var S=0;S<m.length;S++)try{m[S].error(A)}catch($){}return!0},a.prototype.lock=function(){n.prototype.lock.call(this);for(var A=this._sources,m=0;m<A.length;m++)A[m].lock()},Me.exports=a},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(se,Me,ie){"use strict";var Y=se("../compressions"),O=se("./ZipFileWorker");ie.generateWorker=function(I,n,o){var L=new O(n.streamFiles,o,n.platform,n.encodeFileName),p=0;try{I.forEach(function(a,A){p++;var m=function(H,V){var ee=H||V,B=Y[ee];if(!B)throw new Error(ee+" is not a valid compression method !");return B}(A.options.compression,n.compression),S=A.options.compressionOptions||n.compressionOptions||{},$=A.dir,F=A.date;A._compressWorker(m,S).withStreamInfo("file",{name:a,dir:$,date:F,comment:A.comment||"",unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions}).pipe(L)}),L.entriesCount=p}catch(a){L.error(a)}return L}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(se,Me,ie){"use strict";function Y(){if(!(this instanceof Y))return new Y;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var O=new Y;for(var I in this)typeof this[I]!="function"&&(O[I]=this[I]);return O}}(Y.prototype=se("./object")).loadAsync=se("./load"),Y.support=se("./support"),Y.defaults=se("./defaults"),Y.version="3.10.1",Y.loadAsync=function(O,I){return new Y().loadAsync(O,I)},Y.external=se("./external"),Me.exports=Y},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(se,Me,ie){"use strict";var Y=se("./utils"),O=se("./external"),I=se("./utf8"),n=se("./zipEntries"),o=se("./stream/Crc32Probe"),L=se("./nodejsUtils");function p(a){return new O.Promise(function(A,m){var S=a.decompressed.getContentWorker().pipe(new o);S.on("error",function($){m($)}).on("end",function(){S.streamInfo.crc32!==a.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):A()}).resume()})}Me.exports=function(a,A){var m=this;return A=Y.extend(A||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:I.utf8decode}),L.isNode&&L.isStream(a)?O.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Y.prepareContent("the loaded zip file",a,!0,A.optimizedBinaryString,A.base64).then(function(S){var $=new n(A);return $.load(S),$}).then(function(S){var $=[O.Promise.resolve(S)],F=S.files;if(A.checkCRC32)for(var H=0;H<F.length;H++)$.push(p(F[H]));return O.Promise.all($)}).then(function(S){for(var $=S.shift(),F=$.files,H=0;H<F.length;H++){var V=F[H],ee=V.fileNameStr,B=Y.resolve(V.fileNameStr);m.file(B,V.decompressed,{binary:!0,optimizedBinaryString:!0,date:V.date,dir:V.dir,comment:V.fileCommentStr.length?V.fileCommentStr:null,unixPermissions:V.unixPermissions,dosPermissions:V.dosPermissions,createFolders:A.createFolders}),V.dir||(m.file(B).unsafeOriginalName=ee)}return $.zipComment.length&&(m.comment=$.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("../stream/GenericWorker");function I(n,o){O.call(this,"Nodejs stream input adapter for "+n),this._upstreamEnded=!1,this._bindStream(o)}Y.inherits(I,O),I.prototype._bindStream=function(n){var o=this;(this._stream=n).pause(),n.on("data",function(L){o.push({data:L,meta:{percent:0}})}).on("error",function(L){o.isPaused?this.generatedError=L:o.error(L)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},I.prototype.pause=function(){return!!O.prototype.pause.call(this)&&(this._stream.pause(),!0)},I.prototype.resume=function(){return!!O.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Me.exports=I},{"../stream/GenericWorker":28,"../utils":32}],13:[function(se,Me,ie){"use strict";var Y=se("readable-stream").Readable;function O(I,n,o){Y.call(this,n),this._helper=I;var L=this;I.on("data",function(p,a){L.push(p)||L._helper.pause(),o&&o(a)}).on("error",function(p){L.emit("error",p)}).on("end",function(){L.push(null)})}se("../utils").inherits(O,Y),O.prototype._read=function(){this._helper.resume()},Me.exports=O},{"../utils":32,"readable-stream":16}],14:[function(se,Me,ie){"use strict";Me.exports={isNode:typeof we!="undefined",newBufferFrom:function(Y,O){if(we.from&&we.from!==Uint8Array.from)return we.from(Y,O);if(typeof Y=="number")throw new Error('The "data" argument must not be a number');return new we(Y,O)},allocBuffer:function(Y){if(we.alloc)return we.alloc(Y);var O=new we(Y);return O.fill(0),O},isBuffer:function(Y){return we.isBuffer(Y)},isStream:function(Y){return Y&&typeof Y.on=="function"&&typeof Y.pause=="function"&&typeof Y.resume=="function"}}},{}],15:[function(se,Me,ie){"use strict";function Y(B,G,le){var J,be=I.getTypeOf(G),Ce=I.extend(le||{},L);Ce.date=Ce.date||new Date,Ce.compression!==null&&(Ce.compression=Ce.compression.toUpperCase()),typeof Ce.unixPermissions=="string"&&(Ce.unixPermissions=parseInt(Ce.unixPermissions,8)),Ce.unixPermissions&&16384&Ce.unixPermissions&&(Ce.dir=!0),Ce.dosPermissions&&16&Ce.dosPermissions&&(Ce.dir=!0),Ce.dir&&(B=F(B)),Ce.createFolders&&(J=$(B))&&H.call(this,J,!0);var Re=be==="string"&&Ce.binary===!1&&Ce.base64===!1;le&&le.binary!==void 0||(Ce.binary=!Re),(G instanceof p&&G.uncompressedSize===0||Ce.dir||!G||G.length===0)&&(Ce.base64=!1,Ce.binary=!0,G="",Ce.compression="STORE",be="string");var ae=null;ae=G instanceof p||G instanceof n?G:m.isNode&&m.isStream(G)?new S(B,G):I.prepareContent(B,G,Ce.binary,Ce.optimizedBinaryString,Ce.base64);var me=new a(B,ae,Ce);this.files[B]=me}var O=se("./utf8"),I=se("./utils"),n=se("./stream/GenericWorker"),o=se("./stream/StreamHelper"),L=se("./defaults"),p=se("./compressedObject"),a=se("./zipObject"),A=se("./generate"),m=se("./nodejsUtils"),S=se("./nodejs/NodejsStreamInputAdapter"),$=function(B){B.slice(-1)==="/"&&(B=B.substring(0,B.length-1));var G=B.lastIndexOf("/");return 0<G?B.substring(0,G):""},F=function(B){return B.slice(-1)!=="/"&&(B+="/"),B},H=function(B,G){return G=G!==void 0?G:L.createFolders,B=F(B),this.files[B]||Y.call(this,B,null,{dir:!0,createFolders:G}),this.files[B]};function V(B){return Object.prototype.toString.call(B)==="[object RegExp]"}var ee={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(B){var G,le,J;for(G in this.files)J=this.files[G],(le=G.slice(this.root.length,G.length))&&G.slice(0,this.root.length)===this.root&&B(le,J)},filter:function(B){var G=[];return this.forEach(function(le,J){B(le,J)&&G.push(J)}),G},file:function(B,G,le){if(arguments.length!==1)return B=this.root+B,Y.call(this,B,G,le),this;if(V(B)){var J=B;return this.filter(function(Ce,Re){return!Re.dir&&J.test(Ce)})}var be=this.files[this.root+B];return be&&!be.dir?be:null},folder:function(B){if(!B)return this;if(V(B))return this.filter(function(be,Ce){return Ce.dir&&B.test(be)});var G=this.root+B,le=H.call(this,G),J=this.clone();return J.root=le.name,J},remove:function(B){B=this.root+B;var G=this.files[B];if(G||(B.slice(-1)!=="/"&&(B+="/"),G=this.files[B]),G&&!G.dir)delete this.files[B];else for(var le=this.filter(function(be,Ce){return Ce.name.slice(0,B.length)===B}),J=0;J<le.length;J++)delete this.files[le[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(B){var G,le={};try{if((le=I.extend(B||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:O.utf8encode})).type=le.type.toLowerCase(),le.compression=le.compression.toUpperCase(),le.type==="binarystring"&&(le.type="string"),!le.type)throw new Error("No output type specified.");I.checkSupport(le.type),le.platform!=="darwin"&&le.platform!=="freebsd"&&le.platform!=="linux"&&le.platform!=="sunos"||(le.platform="UNIX"),le.platform==="win32"&&(le.platform="DOS");var J=le.comment||this.comment||"";G=A.generateWorker(this,le,J)}catch(be){(G=new n("error")).error(be)}return new o(G,le.type||"string",le.mimeType)},generateAsync:function(B,G){return this.generateInternalStream(B).accumulate(G)},generateNodeStream:function(B,G){return(B=B||{}).type||(B.type="nodebuffer"),this.generateInternalStream(B).toNodejsStream(G)}};Me.exports=ee},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(se,Me,ie){"use strict";Me.exports=se("stream")},{stream:void 0}],17:[function(se,Me,ie){"use strict";var Y=se("./DataReader");function O(I){Y.call(this,I);for(var n=0;n<this.data.length;n++)I[n]=255&I[n]}se("../utils").inherits(O,Y),O.prototype.byteAt=function(I){return this.data[this.zero+I]},O.prototype.lastIndexOfSignature=function(I){for(var n=I.charCodeAt(0),o=I.charCodeAt(1),L=I.charCodeAt(2),p=I.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===n&&this.data[a+1]===o&&this.data[a+2]===L&&this.data[a+3]===p)return a-this.zero;return-1},O.prototype.readAndCheckSignature=function(I){var n=I.charCodeAt(0),o=I.charCodeAt(1),L=I.charCodeAt(2),p=I.charCodeAt(3),a=this.readData(4);return n===a[0]&&o===a[1]&&L===a[2]&&p===a[3]},O.prototype.readData=function(I){if(this.checkOffset(I),I===0)return[];var n=this.data.slice(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./DataReader":18}],18:[function(se,Me,ie){"use strict";var Y=se("../utils");function O(I){this.data=I,this.length=I.length,this.index=0,this.zero=0}O.prototype={checkOffset:function(I){this.checkIndex(this.index+I)},checkIndex:function(I){if(this.length<this.zero+I||I<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+I+"). Corrupted zip ?")},setIndex:function(I){this.checkIndex(I),this.index=I},skip:function(I){this.setIndex(this.index+I)},byteAt:function(){},readInt:function(I){var n,o=0;for(this.checkOffset(I),n=this.index+I-1;n>=this.index;n--)o=(o<<8)+this.byteAt(n);return this.index+=I,o},readString:function(I){return Y.transformTo("string",this.readData(I))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var I=this.readInt(4);return new Date(Date.UTC(1980+(I>>25&127),(I>>21&15)-1,I>>16&31,I>>11&31,I>>5&63,(31&I)<<1))}},Me.exports=O},{"../utils":32}],19:[function(se,Me,ie){"use strict";var Y=se("./Uint8ArrayReader");function O(I){Y.call(this,I)}se("../utils").inherits(O,Y),O.prototype.readData=function(I){this.checkOffset(I);var n=this.data.slice(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(se,Me,ie){"use strict";var Y=se("./DataReader");function O(I){Y.call(this,I)}se("../utils").inherits(O,Y),O.prototype.byteAt=function(I){return this.data.charCodeAt(this.zero+I)},O.prototype.lastIndexOfSignature=function(I){return this.data.lastIndexOf(I)-this.zero},O.prototype.readAndCheckSignature=function(I){return I===this.readData(4)},O.prototype.readData=function(I){this.checkOffset(I);var n=this.data.slice(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./DataReader":18}],21:[function(se,Me,ie){"use strict";var Y=se("./ArrayReader");function O(I){Y.call(this,I)}se("../utils").inherits(O,Y),O.prototype.readData=function(I){if(this.checkOffset(I),I===0)return new Uint8Array(0);var n=this.data.subarray(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./ArrayReader":17}],22:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("../support"),I=se("./ArrayReader"),n=se("./StringReader"),o=se("./NodeBufferReader"),L=se("./Uint8ArrayReader");Me.exports=function(p){var a=Y.getTypeOf(p);return Y.checkSupport(a),a!=="string"||O.uint8array?a==="nodebuffer"?new o(p):O.uint8array?new L(Y.transformTo("uint8array",p)):new I(Y.transformTo("array",p)):new n(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(se,Me,ie){"use strict";ie.LOCAL_FILE_HEADER="PK",ie.CENTRAL_FILE_HEADER="PK",ie.CENTRAL_DIRECTORY_END="PK",ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ie.ZIP64_CENTRAL_DIRECTORY_END="PK",ie.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(se,Me,ie){"use strict";var Y=se("./GenericWorker"),O=se("../utils");function I(n){Y.call(this,"ConvertWorker to "+n),this.destType=n}O.inherits(I,Y),I.prototype.processChunk=function(n){this.push({data:O.transformTo(this.destType,n.data),meta:n.meta})},Me.exports=I},{"../utils":32,"./GenericWorker":28}],25:[function(se,Me,ie){"use strict";var Y=se("./GenericWorker"),O=se("../crc32");function I(){Y.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}se("../utils").inherits(I,Y),I.prototype.processChunk=function(n){this.streamInfo.crc32=O(n.data,this.streamInfo.crc32||0),this.push(n)},Me.exports=I},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("./GenericWorker");function I(n){O.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}Y.inherits(I,O),I.prototype.processChunk=function(n){if(n){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+n.data.length}O.prototype.processChunk.call(this,n)},Me.exports=I},{"../utils":32,"./GenericWorker":28}],27:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("./GenericWorker");function I(n){O.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,n.then(function(L){o.dataIsReady=!0,o.data=L,o.max=L&&L.length||0,o.type=Y.getTypeOf(L),o.isPaused||o._tickAndRepeat()},function(L){o.error(L)})}Y.inherits(I,O),I.prototype.cleanUp=function(){O.prototype.cleanUp.call(this),this.data=null},I.prototype.resume=function(){return!!O.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Y.delay(this._tickAndRepeat,[],this)),!0)},I.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Y.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},I.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var n=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":n=this.data.substring(this.index,o);break;case"uint8array":n=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":n=this.data.slice(this.index,o)}return this.index=o,this.push({data:n,meta:{percent:this.max?this.index/this.max*100:0}})},Me.exports=I},{"../utils":32,"./GenericWorker":28}],28:[function(se,Me,ie){"use strict";function Y(O){this.name=O||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Y.prototype={push:function(O){this.emit("data",O)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(O){this.emit("error",O)}return!0},error:function(O){return!this.isFinished&&(this.isPaused?this.generatedError=O:(this.isFinished=!0,this.emit("error",O),this.previous&&this.previous.error(O),this.cleanUp()),!0)},on:function(O,I){return this._listeners[O].push(I),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(O,I){if(this._listeners[O])for(var n=0;n<this._listeners[O].length;n++)this._listeners[O][n].call(this,I)},pipe:function(O){return O.registerPrevious(this)},registerPrevious:function(O){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=O.streamInfo,this.mergeStreamInfo(),this.previous=O;var I=this;return O.on("data",function(n){I.processChunk(n)}),O.on("end",function(){I.end()}),O.on("error",function(n){I.error(n)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var O=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),O=!0),this.previous&&this.previous.resume(),!O},flush:function(){},processChunk:function(O){this.push(O)},withStreamInfo:function(O,I){return this.extraStreamInfo[O]=I,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var O in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,O)&&(this.streamInfo[O]=this.extraStreamInfo[O])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var O="Worker "+this.name;return this.previous?this.previous+" -> "+O:O}},Me.exports=Y},{}],29:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("./ConvertWorker"),I=se("./GenericWorker"),n=se("../base64"),o=se("../support"),L=se("../external"),p=null;if(o.nodestream)try{p=se("../nodejs/NodejsStreamOutputAdapter")}catch(m){}function a(m,S){return new L.Promise(function($,F){var H=[],V=m._internalType,ee=m._outputType,B=m._mimeType;m.on("data",function(G,le){H.push(G),S&&S(le)}).on("error",function(G){H=[],F(G)}).on("end",function(){try{var G=function(le,J,be){switch(le){case"blob":return Y.newBlob(Y.transformTo("arraybuffer",J),be);case"base64":return n.encode(J);default:return Y.transformTo(le,J)}}(ee,function(le,J){var be,Ce=0,Re=null,ae=0;for(be=0;be<J.length;be++)ae+=J[be].length;switch(le){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(Re=new Uint8Array(ae),be=0;be<J.length;be++)Re.set(J[be],Ce),Ce+=J[be].length;return Re;case"nodebuffer":return we.concat(J);default:throw new Error("concat : unsupported type '"+le+"'")}}(V,H),B);$(G)}catch(le){F(le)}H=[]}).resume()})}function A(m,S,$){var F=S;switch(S){case"blob":case"arraybuffer":F="uint8array";break;case"base64":F="string"}try{this._internalType=F,this._outputType=S,this._mimeType=$,Y.checkSupport(F),this._worker=m.pipe(new O(F)),m.lock()}catch(H){this._worker=new I("error"),this._worker.error(H)}}A.prototype={accumulate:function(m){return a(this,m)},on:function(m,S){var $=this;return m==="data"?this._worker.on(m,function(F){S.call($,F.data,F.meta)}):this._worker.on(m,function(){Y.delay(S,arguments,$)}),this},resume:function(){return Y.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(Y.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},m)}},Me.exports=A},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(se,Me,ie){"use strict";if(ie.base64=!0,ie.array=!0,ie.string=!0,ie.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ie.nodebuffer=typeof we!="undefined",ie.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ie.blob=!1;else{var Y=new ArrayBuffer(0);try{ie.blob=new Blob([Y],{type:"application/zip"}).size===0}catch(I){try{var O=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);O.append(Y),ie.blob=O.getBlob("application/zip").size===0}catch(n){ie.blob=!1}}}try{ie.nodestream=!!se("readable-stream").Readable}catch(I){ie.nodestream=!1}},{"readable-stream":16}],31:[function(se,Me,ie){"use strict";for(var Y=se("./utils"),O=se("./support"),I=se("./nodejsUtils"),n=se("./stream/GenericWorker"),o=new Array(256),L=0;L<256;L++)o[L]=252<=L?6:248<=L?5:240<=L?4:224<=L?3:192<=L?2:1;o[254]=o[254]=1;function p(){n.call(this,"utf-8 decode"),this.leftOver=null}function a(){n.call(this,"utf-8 encode")}ie.utf8encode=function(A){return O.nodebuffer?I.newBufferFrom(A,"utf-8"):function(m){var S,$,F,H,V,ee=m.length,B=0;for(H=0;H<ee;H++)(64512&($=m.charCodeAt(H)))==55296&&H+1<ee&&(64512&(F=m.charCodeAt(H+1)))==56320&&($=65536+($-55296<<10)+(F-56320),H++),B+=$<128?1:$<2048?2:$<65536?3:4;for(S=O.uint8array?new Uint8Array(B):new Array(B),H=V=0;V<B;H++)(64512&($=m.charCodeAt(H)))==55296&&H+1<ee&&(64512&(F=m.charCodeAt(H+1)))==56320&&($=65536+($-55296<<10)+(F-56320),H++),$<128?S[V++]=$:($<2048?S[V++]=192|$>>>6:($<65536?S[V++]=224|$>>>12:(S[V++]=240|$>>>18,S[V++]=128|$>>>12&63),S[V++]=128|$>>>6&63),S[V++]=128|63&$);return S}(A)},ie.utf8decode=function(A){return O.nodebuffer?Y.transformTo("nodebuffer",A).toString("utf-8"):function(m){var S,$,F,H,V=m.length,ee=new Array(2*V);for(S=$=0;S<V;)if((F=m[S++])<128)ee[$++]=F;else if(4<(H=o[F]))ee[$++]=65533,S+=H-1;else{for(F&=H===2?31:H===3?15:7;1<H&&S<V;)F=F<<6|63&m[S++],H--;1<H?ee[$++]=65533:F<65536?ee[$++]=F:(F-=65536,ee[$++]=55296|F>>10&1023,ee[$++]=56320|1023&F)}return ee.length!==$&&(ee.subarray?ee=ee.subarray(0,$):ee.length=$),Y.applyFromCharCode(ee)}(A=Y.transformTo(O.uint8array?"uint8array":"array",A))},Y.inherits(p,n),p.prototype.processChunk=function(A){var m=Y.transformTo(O.uint8array?"uint8array":"array",A.data);if(this.leftOver&&this.leftOver.length){if(O.uint8array){var S=m;(m=new Uint8Array(S.length+this.leftOver.length)).set(this.leftOver,0),m.set(S,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var $=function(H,V){var ee;for((V=V||H.length)>H.length&&(V=H.length),ee=V-1;0<=ee&&(192&H[ee])==128;)ee--;return ee<0||ee===0?V:ee+o[H[ee]]>V?ee:V}(m),F=m;$!==m.length&&(O.uint8array?(F=m.subarray(0,$),this.leftOver=m.subarray($,m.length)):(F=m.slice(0,$),this.leftOver=m.slice($,m.length))),this.push({data:ie.utf8decode(F),meta:A.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ie.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ie.Utf8DecodeWorker=p,Y.inherits(a,n),a.prototype.processChunk=function(A){this.push({data:ie.utf8encode(A.data),meta:A.meta})},ie.Utf8EncodeWorker=a},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(se,Me,ie){"use strict";var Y=se("./support"),O=se("./base64"),I=se("./nodejsUtils"),n=se("./external");function o(S){return S}function L(S,$){for(var F=0;F<S.length;++F)$[F]=255&S.charCodeAt(F);return $}se("setimmediate"),ie.newBlob=function(S,$){ie.checkSupport("blob");try{return new Blob([S],{type:$})}catch(H){try{var F=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return F.append(S),F.getBlob($)}catch(V){throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(S,$,F){var H=[],V=0,ee=S.length;if(ee<=F)return String.fromCharCode.apply(null,S);for(;V<ee;)$==="array"||$==="nodebuffer"?H.push(String.fromCharCode.apply(null,S.slice(V,Math.min(V+F,ee)))):H.push(String.fromCharCode.apply(null,S.subarray(V,Math.min(V+F,ee)))),V+=F;return H.join("")},stringifyByChar:function(S){for(var $="",F=0;F<S.length;F++)$+=String.fromCharCode(S[F]);return $},applyCanBeUsed:{uint8array:function(){try{return Y.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(S){return!1}}(),nodebuffer:function(){try{return Y.nodebuffer&&String.fromCharCode.apply(null,I.allocBuffer(1)).length===1}catch(S){return!1}}()}};function a(S){var $=65536,F=ie.getTypeOf(S),H=!0;if(F==="uint8array"?H=p.applyCanBeUsed.uint8array:F==="nodebuffer"&&(H=p.applyCanBeUsed.nodebuffer),H)for(;1<$;)try{return p.stringifyByChunk(S,F,$)}catch(V){$=Math.floor($/2)}return p.stringifyByChar(S)}function A(S,$){for(var F=0;F<S.length;F++)$[F]=S[F];return $}ie.applyFromCharCode=a;var m={};m.string={string:o,array:function(S){return L(S,new Array(S.length))},arraybuffer:function(S){return m.string.uint8array(S).buffer},uint8array:function(S){return L(S,new Uint8Array(S.length))},nodebuffer:function(S){return L(S,I.allocBuffer(S.length))}},m.array={string:a,array:o,arraybuffer:function(S){return new Uint8Array(S).buffer},uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return I.newBufferFrom(S)}},m.arraybuffer={string:function(S){return a(new Uint8Array(S))},array:function(S){return A(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:o,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return I.newBufferFrom(new Uint8Array(S))}},m.uint8array={string:a,array:function(S){return A(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:o,nodebuffer:function(S){return I.newBufferFrom(S)}},m.nodebuffer={string:a,array:function(S){return A(S,new Array(S.length))},arraybuffer:function(S){return m.nodebuffer.uint8array(S).buffer},uint8array:function(S){return A(S,new Uint8Array(S.length))},nodebuffer:o},ie.transformTo=function(S,$){if($=$||"",!S)return $;ie.checkSupport(S);var F=ie.getTypeOf($);return m[F][S]($)},ie.resolve=function(S){for(var $=S.split("/"),F=[],H=0;H<$.length;H++){var V=$[H];V==="."||V===""&&H!==0&&H!==$.length-1||(V===".."?F.pop():F.push(V))}return F.join("/")},ie.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":Y.nodebuffer&&I.isBuffer(S)?"nodebuffer":Y.uint8array&&S instanceof Uint8Array?"uint8array":Y.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},ie.checkSupport=function(S){if(!Y[S.toLowerCase()])throw new Error(S+" is not supported by this platform")},ie.MAX_VALUE_16BITS=65535,ie.MAX_VALUE_32BITS=-1,ie.pretty=function(S){var $,F,H="";for(F=0;F<(S||"").length;F++)H+="\\x"+(($=S.charCodeAt(F))<16?"0":"")+$.toString(16).toUpperCase();return H},ie.delay=function(S,$,F){setImmediate(function(){S.apply(F||null,$||[])})},ie.inherits=function(S,$){function F(){}F.prototype=$.prototype,S.prototype=new F},ie.extend=function(){var S,$,F={};for(S=0;S<arguments.length;S++)for($ in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],$)&&F[$]===void 0&&(F[$]=arguments[S][$]);return F},ie.prepareContent=function(S,$,F,H,V){return n.Promise.resolve($).then(function(ee){return Y.blob&&(ee instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(ee))!==-1)&&typeof FileReader!="undefined"?new n.Promise(function(B,G){var le=new FileReader;le.onload=function(J){B(J.target.result)},le.onerror=function(J){G(J.target.error)},le.readAsArrayBuffer(ee)}):ee}).then(function(ee){var B=ie.getTypeOf(ee);return B?(B==="arraybuffer"?ee=ie.transformTo("uint8array",ee):B==="string"&&(V?ee=O.decode(ee):F&&H!==!0&&(ee=function(G){return L(G,Y.uint8array?new Uint8Array(G.length):new Array(G.length))}(ee))),ee):n.Promise.reject(new Error("Can't read the data of '"+S+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(se,Me,ie){"use strict";var Y=se("./reader/readerFor"),O=se("./utils"),I=se("./signature"),n=se("./zipEntry"),o=se("./support");function L(p){this.files=[],this.loadOptions=p}L.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+O.pretty(a)+", expected "+O.pretty(p)+")")}},isSignature:function(p,a){var A=this.reader.index;this.reader.setIndex(p);var m=this.reader.readString(4)===a;return this.reader.setIndex(A),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var p=this.reader.readData(this.zipCommentLength),a=o.uint8array?"uint8array":"array",A=O.transformTo(a,p);this.zipComment=this.loadOptions.decodeFileName(A)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var p,a,A,m=this.zip64EndOfCentralSize-44;0<m;)p=this.reader.readInt(2),a=this.reader.readInt(4),A=this.reader.readData(a),this.zip64ExtensibleData[p]={id:p,length:a,value:A}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var p,a;for(p=0;p<this.files.length;p++)a=this.files[p],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(I.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(I.CENTRAL_FILE_HEADER);)(p=new n({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var p=this.reader.lastIndexOfSignature(I.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,I.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(p);var a=p;if(this.checkSignature(I.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===O.MAX_VALUE_16BITS||this.diskWithCentralDirStart===O.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===O.MAX_VALUE_16BITS||this.centralDirRecords===O.MAX_VALUE_16BITS||this.centralDirSize===O.MAX_VALUE_32BITS||this.centralDirOffset===O.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(I.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(I.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,I.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(I.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(I.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var A=this.centralDirOffset+this.centralDirSize;this.zip64&&(A+=20,A+=12+this.zip64EndOfCentralSize);var m=a-A;if(0<m)this.isSignature(a,I.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(p){this.reader=Y(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Me.exports=L},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(se,Me,ie){"use strict";var Y=se("./reader/readerFor"),O=se("./utils"),I=se("./compressedObject"),n=se("./crc32"),o=se("./utf8"),L=se("./compressions"),p=se("./support");function a(A,m){this.options=A,this.loadOptions=m}a.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(A){var m,S;if(A.skip(22),this.fileNameLength=A.readInt(2),S=A.readInt(2),this.fileName=A.readData(this.fileNameLength),A.skip(S),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=function($){for(var F in L)if(Object.prototype.hasOwnProperty.call(L,F)&&L[F].magic===$)return L[F];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+O.pretty(this.compressionMethod)+" unknown (inner file : "+O.transformTo("string",this.fileName)+")");this.decompressed=new I(this.compressedSize,this.uncompressedSize,this.crc32,m,A.readData(this.compressedSize))},readCentralPart:function(A){this.versionMadeBy=A.readInt(2),A.skip(2),this.bitFlag=A.readInt(2),this.compressionMethod=A.readString(2),this.date=A.readDate(),this.crc32=A.readInt(4),this.compressedSize=A.readInt(4),this.uncompressedSize=A.readInt(4);var m=A.readInt(2);if(this.extraFieldsLength=A.readInt(2),this.fileCommentLength=A.readInt(2),this.diskNumberStart=A.readInt(2),this.internalFileAttributes=A.readInt(2),this.externalFileAttributes=A.readInt(4),this.localHeaderOffset=A.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");A.skip(m),this.readExtraFields(A),this.parseZIP64ExtraField(A),this.fileComment=A.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var A=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),A==0&&(this.dosPermissions=63&this.externalFileAttributes),A==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var A=Y(this.extraFields[1].value);this.uncompressedSize===O.MAX_VALUE_32BITS&&(this.uncompressedSize=A.readInt(8)),this.compressedSize===O.MAX_VALUE_32BITS&&(this.compressedSize=A.readInt(8)),this.localHeaderOffset===O.MAX_VALUE_32BITS&&(this.localHeaderOffset=A.readInt(8)),this.diskNumberStart===O.MAX_VALUE_32BITS&&(this.diskNumberStart=A.readInt(4))}},readExtraFields:function(A){var m,S,$,F=A.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});A.index+4<F;)m=A.readInt(2),S=A.readInt(2),$=A.readData(S),this.extraFields[m]={id:m,length:S,value:$};A.setIndex(F)},handleUTF8:function(){var A=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var S=O.transformTo(A,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var $=this.findExtraFieldUnicodeComment();if($!==null)this.fileCommentStr=$;else{var F=O.transformTo(A,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(F)}}},findExtraFieldUnicodePath:function(){var A=this.extraFields[28789];if(A){var m=Y(A.value);return m.readInt(1)!==1||n(this.fileName)!==m.readInt(4)?null:o.utf8decode(m.readData(A.length-5))}return null},findExtraFieldUnicodeComment:function(){var A=this.extraFields[25461];if(A){var m=Y(A.value);return m.readInt(1)!==1||n(this.fileComment)!==m.readInt(4)?null:o.utf8decode(m.readData(A.length-5))}return null}},Me.exports=a},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(se,Me,ie){"use strict";function Y(m,S,$){this.name=m,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=S,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}}var O=se("./stream/StreamHelper"),I=se("./stream/DataWorker"),n=se("./utf8"),o=se("./compressedObject"),L=se("./stream/GenericWorker");Y.prototype={internalStream:function(m){var S=null,$="string";try{if(!m)throw new Error("No output type specified.");var F=($=m.toLowerCase())==="string"||$==="text";$!=="binarystring"&&$!=="text"||($="string"),S=this._decompressWorker();var H=!this._dataBinary;H&&!F&&(S=S.pipe(new n.Utf8EncodeWorker)),!H&&F&&(S=S.pipe(new n.Utf8DecodeWorker))}catch(V){(S=new L("error")).error(V)}return new O(S,$,"")},async:function(m,S){return this.internalStream(m).accumulate(S)},nodeStream:function(m,S){return this.internalStream(m||"nodebuffer").toNodejsStream(S)},_compressWorker:function(m,S){if(this._data instanceof o&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var $=this._decompressWorker();return this._dataBinary||($=$.pipe(new n.Utf8EncodeWorker)),o.createWorkerFrom($,m,S)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof L?this._data:new I(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],a=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},A=0;A<p.length;A++)Y.prototype[p[A]]=a;Me.exports=Y},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(se,Me,ie){(function(Y){"use strict";var O,I,n=Y.MutationObserver||Y.WebKitMutationObserver;if(n){var o=0,L=new n(m),p=Y.document.createTextNode("");L.observe(p,{characterData:!0}),O=function(){p.data=o=++o%2}}else if(Y.setImmediate||Y.MessageChannel===void 0)O="document"in Y&&"onreadystatechange"in Y.document.createElement("script")?function(){var S=Y.document.createElement("script");S.onreadystatechange=function(){m(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},Y.document.documentElement.appendChild(S)}:function(){setTimeout(m,0)};else{var a=new Y.MessageChannel;a.port1.onmessage=m,O=function(){a.port2.postMessage(0)}}var A=[];function m(){var S,$;I=!0;for(var F=A.length;F;){for($=A,A=[],S=-1;++S<F;)$[S]();F=A.length}I=!1}Me.exports=function(S){A.push(S)!==1||I||O()}}).call(this,typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(se,Me,ie){"use strict";var Y=se("immediate");function O(){}var I={},n=["REJECTED"],o=["FULFILLED"],L=["PENDING"];function p(F){if(typeof F!="function")throw new TypeError("resolver must be a function");this.state=L,this.queue=[],this.outcome=void 0,F!==O&&S(this,F)}function a(F,H,V){this.promise=F,typeof H=="function"&&(this.onFulfilled=H,this.callFulfilled=this.otherCallFulfilled),typeof V=="function"&&(this.onRejected=V,this.callRejected=this.otherCallRejected)}function A(F,H,V){Y(function(){var ee;try{ee=H(V)}catch(B){return I.reject(F,B)}ee===F?I.reject(F,new TypeError("Cannot resolve promise with itself")):I.resolve(F,ee)})}function m(F){var H=F&&F.then;if(F&&(typeof F=="object"||typeof F=="function")&&typeof H=="function")return function(){H.apply(F,arguments)}}function S(F,H){var V=!1;function ee(le){V||(V=!0,I.reject(F,le))}function B(le){V||(V=!0,I.resolve(F,le))}var G=$(function(){H(B,ee)});G.status==="error"&&ee(G.value)}function $(F,H){var V={};try{V.value=F(H),V.status="success"}catch(ee){V.status="error",V.value=ee}return V}(Me.exports=p).prototype.finally=function(F){if(typeof F!="function")return this;var H=this.constructor;return this.then(function(V){return H.resolve(F()).then(function(){return V})},function(V){return H.resolve(F()).then(function(){throw V})})},p.prototype.catch=function(F){return this.then(null,F)},p.prototype.then=function(F,H){if(typeof F!="function"&&this.state===o||typeof H!="function"&&this.state===n)return this;var V=new this.constructor(O);return this.state!==L?A(V,this.state===o?F:H,this.outcome):this.queue.push(new a(V,F,H)),V},a.prototype.callFulfilled=function(F){I.resolve(this.promise,F)},a.prototype.otherCallFulfilled=function(F){A(this.promise,this.onFulfilled,F)},a.prototype.callRejected=function(F){I.reject(this.promise,F)},a.prototype.otherCallRejected=function(F){A(this.promise,this.onRejected,F)},I.resolve=function(F,H){var V=$(m,H);if(V.status==="error")return I.reject(F,V.value);var ee=V.value;if(ee)S(F,ee);else{F.state=o,F.outcome=H;for(var B=-1,G=F.queue.length;++B<G;)F.queue[B].callFulfilled(H)}return F},I.reject=function(F,H){F.state=n,F.outcome=H;for(var V=-1,ee=F.queue.length;++V<ee;)F.queue[V].callRejected(H);return F},p.resolve=function(F){return F instanceof this?F:I.resolve(new this(O),F)},p.reject=function(F){var H=new this(O);return I.reject(H,F)},p.all=function(F){var H=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=F.length,ee=!1;if(!V)return this.resolve([]);for(var B=new Array(V),G=0,le=-1,J=new this(O);++le<V;)be(F[le],le);return J;function be(Ce,Re){H.resolve(Ce).then(function(ae){B[Re]=ae,++G!==V||ee||(ee=!0,I.resolve(J,B))},function(ae){ee||(ee=!0,I.reject(J,ae))})}},p.race=function(F){var H=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=F.length,ee=!1;if(!V)return this.resolve([]);for(var B=-1,G=new this(O);++B<V;)le=F[B],H.resolve(le).then(function(J){ee||(ee=!0,I.resolve(G,J))},function(J){ee||(ee=!0,I.reject(G,J))});var le;return G}},{immediate:36}],38:[function(se,Me,ie){"use strict";var Y={};(0,se("./lib/utils/common").assign)(Y,se("./lib/deflate"),se("./lib/inflate"),se("./lib/zlib/constants")),Me.exports=Y},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(se,Me,ie){"use strict";var Y=se("./zlib/deflate"),O=se("./utils/common"),I=se("./utils/strings"),n=se("./zlib/messages"),o=se("./zlib/zstream"),L=Object.prototype.toString,p=0,a=-1,A=0,m=8;function S(F){if(!(this instanceof S))return new S(F);this.options=O.assign({level:a,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:A,to:""},F||{});var H=this.options;H.raw&&0<H.windowBits?H.windowBits=-H.windowBits:H.gzip&&0<H.windowBits&&H.windowBits<16&&(H.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var V=Y.deflateInit2(this.strm,H.level,H.method,H.windowBits,H.memLevel,H.strategy);if(V!==p)throw new Error(n[V]);if(H.header&&Y.deflateSetHeader(this.strm,H.header),H.dictionary){var ee;if(ee=typeof H.dictionary=="string"?I.string2buf(H.dictionary):L.call(H.dictionary)==="[object ArrayBuffer]"?new Uint8Array(H.dictionary):H.dictionary,(V=Y.deflateSetDictionary(this.strm,ee))!==p)throw new Error(n[V]);this._dict_set=!0}}function $(F,H){var V=new S(H);if(V.push(F,!0),V.err)throw V.msg||n[V.err];return V.result}S.prototype.push=function(F,H){var V,ee,B=this.strm,G=this.options.chunkSize;if(this.ended)return!1;ee=H===~~H?H:H===!0?4:0,typeof F=="string"?B.input=I.string2buf(F):L.call(F)==="[object ArrayBuffer]"?B.input=new Uint8Array(F):B.input=F,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new O.Buf8(G),B.next_out=0,B.avail_out=G),(V=Y.deflate(B,ee))!==1&&V!==p)return this.onEnd(V),!(this.ended=!0);B.avail_out!==0&&(B.avail_in!==0||ee!==4&&ee!==2)||(this.options.to==="string"?this.onData(I.buf2binstring(O.shrinkBuf(B.output,B.next_out))):this.onData(O.shrinkBuf(B.output,B.next_out)))}while((0<B.avail_in||B.avail_out===0)&&V!==1);return ee===4?(V=Y.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===p):ee!==2||(this.onEnd(p),!(B.avail_out=0))},S.prototype.onData=function(F){this.chunks.push(F)},S.prototype.onEnd=function(F){F===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=F,this.msg=this.strm.msg},ie.Deflate=S,ie.deflate=$,ie.deflateRaw=function(F,H){return(H=H||{}).raw=!0,$(F,H)},ie.gzip=function(F,H){return(H=H||{}).gzip=!0,$(F,H)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(se,Me,ie){"use strict";var Y=se("./zlib/inflate"),O=se("./utils/common"),I=se("./utils/strings"),n=se("./zlib/constants"),o=se("./zlib/messages"),L=se("./zlib/zstream"),p=se("./zlib/gzheader"),a=Object.prototype.toString;function A(S){if(!(this instanceof A))return new A(S);this.options=O.assign({chunkSize:16384,windowBits:0,to:""},S||{});var $=this.options;$.raw&&0<=$.windowBits&&$.windowBits<16&&($.windowBits=-$.windowBits,$.windowBits===0&&($.windowBits=-15)),!(0<=$.windowBits&&$.windowBits<16)||S&&S.windowBits||($.windowBits+=32),15<$.windowBits&&$.windowBits<48&&!(15&$.windowBits)&&($.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new L,this.strm.avail_out=0;var F=Y.inflateInit2(this.strm,$.windowBits);if(F!==n.Z_OK)throw new Error(o[F]);this.header=new p,Y.inflateGetHeader(this.strm,this.header)}function m(S,$){var F=new A($);if(F.push(S,!0),F.err)throw F.msg||o[F.err];return F.result}A.prototype.push=function(S,$){var F,H,V,ee,B,G,le=this.strm,J=this.options.chunkSize,be=this.options.dictionary,Ce=!1;if(this.ended)return!1;H=$===~~$?$:$===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof S=="string"?le.input=I.binstring2buf(S):a.call(S)==="[object ArrayBuffer]"?le.input=new Uint8Array(S):le.input=S,le.next_in=0,le.avail_in=le.input.length;do{if(le.avail_out===0&&(le.output=new O.Buf8(J),le.next_out=0,le.avail_out=J),(F=Y.inflate(le,n.Z_NO_FLUSH))===n.Z_NEED_DICT&&be&&(G=typeof be=="string"?I.string2buf(be):a.call(be)==="[object ArrayBuffer]"?new Uint8Array(be):be,F=Y.inflateSetDictionary(this.strm,G)),F===n.Z_BUF_ERROR&&Ce===!0&&(F=n.Z_OK,Ce=!1),F!==n.Z_STREAM_END&&F!==n.Z_OK)return this.onEnd(F),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&F!==n.Z_STREAM_END&&(le.avail_in!==0||H!==n.Z_FINISH&&H!==n.Z_SYNC_FLUSH)||(this.options.to==="string"?(V=I.utf8border(le.output,le.next_out),ee=le.next_out-V,B=I.buf2string(le.output,V),le.next_out=ee,le.avail_out=J-ee,ee&&O.arraySet(le.output,le.output,V,ee,0),this.onData(B)):this.onData(O.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(Ce=!0)}while((0<le.avail_in||le.avail_out===0)&&F!==n.Z_STREAM_END);return F===n.Z_STREAM_END&&(H=n.Z_FINISH),H===n.Z_FINISH?(F=Y.inflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===n.Z_OK):H!==n.Z_SYNC_FLUSH||(this.onEnd(n.Z_OK),!(le.avail_out=0))},A.prototype.onData=function(S){this.chunks.push(S)},A.prototype.onEnd=function(S){S===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},ie.Inflate=A,ie.inflate=m,ie.inflateRaw=function(S,$){return($=$||{}).raw=!0,m(S,$)},ie.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(se,Me,ie){"use strict";var Y=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ie.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var L=o.shift();if(L){if(typeof L!="object")throw new TypeError(L+"must be non-object");for(var p in L)L.hasOwnProperty(p)&&(n[p]=L[p])}}return n},ie.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var O={arraySet:function(n,o,L,p,a){if(o.subarray&&n.subarray)n.set(o.subarray(L,L+p),a);else for(var A=0;A<p;A++)n[a+A]=o[L+A]},flattenChunks:function(n){var o,L,p,a,A,m;for(o=p=0,L=n.length;o<L;o++)p+=n[o].length;for(m=new Uint8Array(p),o=a=0,L=n.length;o<L;o++)A=n[o],m.set(A,a),a+=A.length;return m}},I={arraySet:function(n,o,L,p,a){for(var A=0;A<p;A++)n[a+A]=o[L+A]},flattenChunks:function(n){return[].concat.apply([],n)}};ie.setTyped=function(n){n?(ie.Buf8=Uint8Array,ie.Buf16=Uint16Array,ie.Buf32=Int32Array,ie.assign(ie,O)):(ie.Buf8=Array,ie.Buf16=Array,ie.Buf32=Array,ie.assign(ie,I))},ie.setTyped(Y)},{}],42:[function(se,Me,ie){"use strict";var Y=se("./common"),O=!0,I=!0;try{String.fromCharCode.apply(null,[0])}catch(p){O=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(p){I=!1}for(var n=new Y.Buf8(256),o=0;o<256;o++)n[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function L(p,a){if(a<65537&&(p.subarray&&I||!p.subarray&&O))return String.fromCharCode.apply(null,Y.shrinkBuf(p,a));for(var A="",m=0;m<a;m++)A+=String.fromCharCode(p[m]);return A}n[254]=n[254]=1,ie.string2buf=function(p){var a,A,m,S,$,F=p.length,H=0;for(S=0;S<F;S++)(64512&(A=p.charCodeAt(S)))==55296&&S+1<F&&(64512&(m=p.charCodeAt(S+1)))==56320&&(A=65536+(A-55296<<10)+(m-56320),S++),H+=A<128?1:A<2048?2:A<65536?3:4;for(a=new Y.Buf8(H),S=$=0;$<H;S++)(64512&(A=p.charCodeAt(S)))==55296&&S+1<F&&(64512&(m=p.charCodeAt(S+1)))==56320&&(A=65536+(A-55296<<10)+(m-56320),S++),A<128?a[$++]=A:(A<2048?a[$++]=192|A>>>6:(A<65536?a[$++]=224|A>>>12:(a[$++]=240|A>>>18,a[$++]=128|A>>>12&63),a[$++]=128|A>>>6&63),a[$++]=128|63&A);return a},ie.buf2binstring=function(p){return L(p,p.length)},ie.binstring2buf=function(p){for(var a=new Y.Buf8(p.length),A=0,m=a.length;A<m;A++)a[A]=p.charCodeAt(A);return a},ie.buf2string=function(p,a){var A,m,S,$,F=a||p.length,H=new Array(2*F);for(A=m=0;A<F;)if((S=p[A++])<128)H[m++]=S;else if(4<($=n[S]))H[m++]=65533,A+=$-1;else{for(S&=$===2?31:$===3?15:7;1<$&&A<F;)S=S<<6|63&p[A++],$--;1<$?H[m++]=65533:S<65536?H[m++]=S:(S-=65536,H[m++]=55296|S>>10&1023,H[m++]=56320|1023&S)}return L(H,m)},ie.utf8border=function(p,a){var A;for((a=a||p.length)>p.length&&(a=p.length),A=a-1;0<=A&&(192&p[A])==128;)A--;return A<0||A===0?a:A+n[p[A]]>a?A:a}},{"./common":41}],43:[function(se,Me,ie){"use strict";Me.exports=function(Y,O,I,n){for(var o=65535&Y|0,L=Y>>>16&65535|0,p=0;I!==0;){for(I-=p=2e3<I?2e3:I;L=L+(o=o+O[n++]|0)|0,--p;);o%=65521,L%=65521}return o|L<<16|0}},{}],44:[function(se,Me,ie){"use strict";Me.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(se,Me,ie){"use strict";var Y=function(){for(var O,I=[],n=0;n<256;n++){O=n;for(var o=0;o<8;o++)O=1&O?3988292384^O>>>1:O>>>1;I[n]=O}return I}();Me.exports=function(O,I,n,o){var L=Y,p=o+n;O^=-1;for(var a=o;a<p;a++)O=O>>>8^L[255&(O^I[a])];return-1^O}},{}],46:[function(se,Me,ie){"use strict";var Y,O=se("../utils/common"),I=se("./trees"),n=se("./adler32"),o=se("./crc32"),L=se("./messages"),p=0,a=4,A=0,m=-2,S=-1,$=4,F=2,H=8,V=9,ee=286,B=30,G=19,le=2*ee+1,J=15,be=3,Ce=258,Re=Ce+be+1,ae=42,me=113,T=1,Ee=2,oe=3,he=4;function ve(Se,Nt){return Se.msg=L[Nt],Nt}function _(Se){return(Se<<1)-(4<Se?9:0)}function P(Se){for(var Nt=Se.length;0<=--Nt;)Se[Nt]=0}function X(Se){var Nt=Se.state,z=Nt.pending;z>Se.avail_out&&(z=Se.avail_out),z!==0&&(O.arraySet(Se.output,Nt.pending_buf,Nt.pending_out,z,Se.next_out),Se.next_out+=z,Nt.pending_out+=z,Se.total_out+=z,Se.avail_out-=z,Nt.pending-=z,Nt.pending===0&&(Nt.pending_out=0))}function pe(Se,Nt){I._tr_flush_block(Se,0<=Se.block_start?Se.block_start:-1,Se.strstart-Se.block_start,Nt),Se.block_start=Se.strstart,X(Se.strm)}function Je(Se,Nt){Se.pending_buf[Se.pending++]=Nt}function at(Se,Nt){Se.pending_buf[Se.pending++]=Nt>>>8&255,Se.pending_buf[Se.pending++]=255&Nt}function nt(Se,Nt){var z,v,h=Se.max_chain_length,D=Se.strstart,fe=Se.prev_length,Z=Se.nice_match,N=Se.strstart>Se.w_size-Re?Se.strstart-(Se.w_size-Re):0,te=Se.window,Te=Se.w_mask,Ie=Se.prev,Fe=Se.strstart+Ce,ze=te[D+fe-1],pt=te[D+fe];Se.prev_length>=Se.good_match&&(h>>=2),Z>Se.lookahead&&(Z=Se.lookahead);do if(te[(z=Nt)+fe]===pt&&te[z+fe-1]===ze&&te[z]===te[D]&&te[++z]===te[D+1]){D+=2,z++;do;while(te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&D<Fe);if(v=Ce-(Fe-D),D=Fe-Ce,fe<v){if(Se.match_start=Nt,Z<=(fe=v))break;ze=te[D+fe-1],pt=te[D+fe]}}while((Nt=Ie[Nt&Te])>N&&--h!=0);return fe<=Se.lookahead?fe:Se.lookahead}function Lt(Se){var Nt,z,v,h,D,fe,Z,N,te,Te,Ie=Se.w_size;do{if(h=Se.window_size-Se.lookahead-Se.strstart,Se.strstart>=Ie+(Ie-Re)){for(O.arraySet(Se.window,Se.window,Ie,Ie,0),Se.match_start-=Ie,Se.strstart-=Ie,Se.block_start-=Ie,Nt=z=Se.hash_size;v=Se.head[--Nt],Se.head[Nt]=Ie<=v?v-Ie:0,--z;);for(Nt=z=Ie;v=Se.prev[--Nt],Se.prev[Nt]=Ie<=v?v-Ie:0,--z;);h+=Ie}if(Se.strm.avail_in===0)break;if(fe=Se.strm,Z=Se.window,N=Se.strstart+Se.lookahead,te=h,Te=void 0,Te=fe.avail_in,te<Te&&(Te=te),z=Te===0?0:(fe.avail_in-=Te,O.arraySet(Z,fe.input,fe.next_in,Te,N),fe.state.wrap===1?fe.adler=n(fe.adler,Z,Te,N):fe.state.wrap===2&&(fe.adler=o(fe.adler,Z,Te,N)),fe.next_in+=Te,fe.total_in+=Te,Te),Se.lookahead+=z,Se.lookahead+Se.insert>=be)for(D=Se.strstart-Se.insert,Se.ins_h=Se.window[D],Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[D+1])&Se.hash_mask;Se.insert&&(Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[D+be-1])&Se.hash_mask,Se.prev[D&Se.w_mask]=Se.head[Se.ins_h],Se.head[Se.ins_h]=D,D++,Se.insert--,!(Se.lookahead+Se.insert<be)););}while(Se.lookahead<Re&&Se.strm.avail_in!==0)}function ur(Se,Nt){for(var z,v;;){if(Se.lookahead<Re){if(Lt(Se),Se.lookahead<Re&&Nt===p)return T;if(Se.lookahead===0)break}if(z=0,Se.lookahead>=be&&(Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[Se.strstart+be-1])&Se.hash_mask,z=Se.prev[Se.strstart&Se.w_mask]=Se.head[Se.ins_h],Se.head[Se.ins_h]=Se.strstart),z!==0&&Se.strstart-z<=Se.w_size-Re&&(Se.match_length=nt(Se,z)),Se.match_length>=be)if(v=I._tr_tally(Se,Se.strstart-Se.match_start,Se.match_length-be),Se.lookahead-=Se.match_length,Se.match_length<=Se.max_lazy_match&&Se.lookahead>=be){for(Se.match_length--;Se.strstart++,Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[Se.strstart+be-1])&Se.hash_mask,z=Se.prev[Se.strstart&Se.w_mask]=Se.head[Se.ins_h],Se.head[Se.ins_h]=Se.strstart,--Se.match_length!=0;);Se.strstart++}else Se.strstart+=Se.match_length,Se.match_length=0,Se.ins_h=Se.window[Se.strstart],Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[Se.strstart+1])&Se.hash_mask;else v=I._tr_tally(Se,0,Se.window[Se.strstart]),Se.lookahead--,Se.strstart++;if(v&&(pe(Se,!1),Se.strm.avail_out===0))return T}return Se.insert=Se.strstart<be-1?Se.strstart:be-1,Nt===a?(pe(Se,!0),Se.strm.avail_out===0?oe:he):Se.last_lit&&(pe(Se,!1),Se.strm.avail_out===0)?T:Ee}function Jt(Se,Nt){for(var z,v,h;;){if(Se.lookahead<Re){if(Lt(Se),Se.lookahead<Re&&Nt===p)return T;if(Se.lookahead===0)break}if(z=0,Se.lookahead>=be&&(Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[Se.strstart+be-1])&Se.hash_mask,z=Se.prev[Se.strstart&Se.w_mask]=Se.head[Se.ins_h],Se.head[Se.ins_h]=Se.strstart),Se.prev_length=Se.match_length,Se.prev_match=Se.match_start,Se.match_length=be-1,z!==0&&Se.prev_length<Se.max_lazy_match&&Se.strstart-z<=Se.w_size-Re&&(Se.match_length=nt(Se,z),Se.match_length<=5&&(Se.strategy===1||Se.match_length===be&&4096<Se.strstart-Se.match_start)&&(Se.match_length=be-1)),Se.prev_length>=be&&Se.match_length<=Se.prev_length){for(h=Se.strstart+Se.lookahead-be,v=I._tr_tally(Se,Se.strstart-1-Se.prev_match,Se.prev_length-be),Se.lookahead-=Se.prev_length-1,Se.prev_length-=2;++Se.strstart<=h&&(Se.ins_h=(Se.ins_h<<Se.hash_shift^Se.window[Se.strstart+be-1])&Se.hash_mask,z=Se.prev[Se.strstart&Se.w_mask]=Se.head[Se.ins_h],Se.head[Se.ins_h]=Se.strstart),--Se.prev_length!=0;);if(Se.match_available=0,Se.match_length=be-1,Se.strstart++,v&&(pe(Se,!1),Se.strm.avail_out===0))return T}else if(Se.match_available){if((v=I._tr_tally(Se,0,Se.window[Se.strstart-1]))&&pe(Se,!1),Se.strstart++,Se.lookahead--,Se.strm.avail_out===0)return T}else Se.match_available=1,Se.strstart++,Se.lookahead--}return Se.match_available&&(v=I._tr_tally(Se,0,Se.window[Se.strstart-1]),Se.match_available=0),Se.insert=Se.strstart<be-1?Se.strstart:be-1,Nt===a?(pe(Se,!0),Se.strm.avail_out===0?oe:he):Se.last_lit&&(pe(Se,!1),Se.strm.avail_out===0)?T:Ee}function We(Se,Nt,z,v,h){this.good_length=Se,this.max_lazy=Nt,this.nice_length=z,this.max_chain=v,this.func=h}function Cr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=H,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new O.Buf16(2*le),this.dyn_dtree=new O.Buf16(2*(2*B+1)),this.bl_tree=new O.Buf16(2*(2*G+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new O.Buf16(J+1),this.heap=new O.Buf16(2*ee+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new O.Buf16(2*ee+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Er(Se){var Nt;return Se&&Se.state?(Se.total_in=Se.total_out=0,Se.data_type=F,(Nt=Se.state).pending=0,Nt.pending_out=0,Nt.wrap<0&&(Nt.wrap=-Nt.wrap),Nt.status=Nt.wrap?ae:me,Se.adler=Nt.wrap===2?0:1,Nt.last_flush=p,I._tr_init(Nt),A):ve(Se,m)}function Kr(Se){var Nt=Er(Se);return Nt===A&&function(z){z.window_size=2*z.w_size,P(z.head),z.max_lazy_match=Y[z.level].max_lazy,z.good_match=Y[z.level].good_length,z.nice_match=Y[z.level].nice_length,z.max_chain_length=Y[z.level].max_chain,z.strstart=0,z.block_start=0,z.lookahead=0,z.insert=0,z.match_length=z.prev_length=be-1,z.match_available=0,z.ins_h=0}(Se.state),Nt}function _r(Se,Nt,z,v,h,D){if(!Se)return m;var fe=1;if(Nt===S&&(Nt=6),v<0?(fe=0,v=-v):15<v&&(fe=2,v-=16),h<1||V<h||z!==H||v<8||15<v||Nt<0||9<Nt||D<0||$<D)return ve(Se,m);v===8&&(v=9);var Z=new Cr;return(Se.state=Z).strm=Se,Z.wrap=fe,Z.gzhead=null,Z.w_bits=v,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=h+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+be-1)/be),Z.window=new O.Buf8(2*Z.w_size),Z.head=new O.Buf16(Z.hash_size),Z.prev=new O.Buf16(Z.w_size),Z.lit_bufsize=1<<h+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new O.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=Nt,Z.strategy=D,Z.method=z,Kr(Se)}Y=[new We(0,0,0,0,function(Se,Nt){var z=65535;for(z>Se.pending_buf_size-5&&(z=Se.pending_buf_size-5);;){if(Se.lookahead<=1){if(Lt(Se),Se.lookahead===0&&Nt===p)return T;if(Se.lookahead===0)break}Se.strstart+=Se.lookahead,Se.lookahead=0;var v=Se.block_start+z;if((Se.strstart===0||Se.strstart>=v)&&(Se.lookahead=Se.strstart-v,Se.strstart=v,pe(Se,!1),Se.strm.avail_out===0)||Se.strstart-Se.block_start>=Se.w_size-Re&&(pe(Se,!1),Se.strm.avail_out===0))return T}return Se.insert=0,Nt===a?(pe(Se,!0),Se.strm.avail_out===0?oe:he):(Se.strstart>Se.block_start&&(pe(Se,!1),Se.strm.avail_out),T)}),new We(4,4,8,4,ur),new We(4,5,16,8,ur),new We(4,6,32,32,ur),new We(4,4,16,16,Jt),new We(8,16,32,32,Jt),new We(8,16,128,128,Jt),new We(8,32,128,256,Jt),new We(32,128,258,1024,Jt),new We(32,258,258,4096,Jt)],ie.deflateInit=function(Se,Nt){return _r(Se,Nt,H,15,8,0)},ie.deflateInit2=_r,ie.deflateReset=Kr,ie.deflateResetKeep=Er,ie.deflateSetHeader=function(Se,Nt){return Se&&Se.state?Se.state.wrap!==2?m:(Se.state.gzhead=Nt,A):m},ie.deflate=function(Se,Nt){var z,v,h,D;if(!Se||!Se.state||5<Nt||Nt<0)return Se?ve(Se,m):m;if(v=Se.state,!Se.output||!Se.input&&Se.avail_in!==0||v.status===666&&Nt!==a)return ve(Se,Se.avail_out===0?-5:m);if(v.strm=Se,z=v.last_flush,v.last_flush=Nt,v.status===ae)if(v.wrap===2)Se.adler=0,Je(v,31),Je(v,139),Je(v,8),v.gzhead?(Je(v,(v.gzhead.text?1:0)+(v.gzhead.hcrc?2:0)+(v.gzhead.extra?4:0)+(v.gzhead.name?8:0)+(v.gzhead.comment?16:0)),Je(v,255&v.gzhead.time),Je(v,v.gzhead.time>>8&255),Je(v,v.gzhead.time>>16&255),Je(v,v.gzhead.time>>24&255),Je(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),Je(v,255&v.gzhead.os),v.gzhead.extra&&v.gzhead.extra.length&&(Je(v,255&v.gzhead.extra.length),Je(v,v.gzhead.extra.length>>8&255)),v.gzhead.hcrc&&(Se.adler=o(Se.adler,v.pending_buf,v.pending,0)),v.gzindex=0,v.status=69):(Je(v,0),Je(v,0),Je(v,0),Je(v,0),Je(v,0),Je(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),Je(v,3),v.status=me);else{var fe=H+(v.w_bits-8<<4)<<8;fe|=(2<=v.strategy||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6,v.strstart!==0&&(fe|=32),fe+=31-fe%31,v.status=me,at(v,fe),v.strstart!==0&&(at(v,Se.adler>>>16),at(v,65535&Se.adler)),Se.adler=1}if(v.status===69)if(v.gzhead.extra){for(h=v.pending;v.gzindex<(65535&v.gzhead.extra.length)&&(v.pending!==v.pending_buf_size||(v.gzhead.hcrc&&v.pending>h&&(Se.adler=o(Se.adler,v.pending_buf,v.pending-h,h)),X(Se),h=v.pending,v.pending!==v.pending_buf_size));)Je(v,255&v.gzhead.extra[v.gzindex]),v.gzindex++;v.gzhead.hcrc&&v.pending>h&&(Se.adler=o(Se.adler,v.pending_buf,v.pending-h,h)),v.gzindex===v.gzhead.extra.length&&(v.gzindex=0,v.status=73)}else v.status=73;if(v.status===73)if(v.gzhead.name){h=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>h&&(Se.adler=o(Se.adler,v.pending_buf,v.pending-h,h)),X(Se),h=v.pending,v.pending===v.pending_buf_size)){D=1;break}D=v.gzindex<v.gzhead.name.length?255&v.gzhead.name.charCodeAt(v.gzindex++):0,Je(v,D)}while(D!==0);v.gzhead.hcrc&&v.pending>h&&(Se.adler=o(Se.adler,v.pending_buf,v.pending-h,h)),D===0&&(v.gzindex=0,v.status=91)}else v.status=91;if(v.status===91)if(v.gzhead.comment){h=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>h&&(Se.adler=o(Se.adler,v.pending_buf,v.pending-h,h)),X(Se),h=v.pending,v.pending===v.pending_buf_size)){D=1;break}D=v.gzindex<v.gzhead.comment.length?255&v.gzhead.comment.charCodeAt(v.gzindex++):0,Je(v,D)}while(D!==0);v.gzhead.hcrc&&v.pending>h&&(Se.adler=o(Se.adler,v.pending_buf,v.pending-h,h)),D===0&&(v.status=103)}else v.status=103;if(v.status===103&&(v.gzhead.hcrc?(v.pending+2>v.pending_buf_size&&X(Se),v.pending+2<=v.pending_buf_size&&(Je(v,255&Se.adler),Je(v,Se.adler>>8&255),Se.adler=0,v.status=me)):v.status=me),v.pending!==0){if(X(Se),Se.avail_out===0)return v.last_flush=-1,A}else if(Se.avail_in===0&&_(Nt)<=_(z)&&Nt!==a)return ve(Se,-5);if(v.status===666&&Se.avail_in!==0)return ve(Se,-5);if(Se.avail_in!==0||v.lookahead!==0||Nt!==p&&v.status!==666){var Z=v.strategy===2?function(N,te){for(var Te;;){if(N.lookahead===0&&(Lt(N),N.lookahead===0)){if(te===p)return T;break}if(N.match_length=0,Te=I._tr_tally(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++,Te&&(pe(N,!1),N.strm.avail_out===0))return T}return N.insert=0,te===a?(pe(N,!0),N.strm.avail_out===0?oe:he):N.last_lit&&(pe(N,!1),N.strm.avail_out===0)?T:Ee}(v,Nt):v.strategy===3?function(N,te){for(var Te,Ie,Fe,ze,pt=N.window;;){if(N.lookahead<=Ce){if(Lt(N),N.lookahead<=Ce&&te===p)return T;if(N.lookahead===0)break}if(N.match_length=0,N.lookahead>=be&&0<N.strstart&&(Ie=pt[Fe=N.strstart-1])===pt[++Fe]&&Ie===pt[++Fe]&&Ie===pt[++Fe]){ze=N.strstart+Ce;do;while(Ie===pt[++Fe]&&Ie===pt[++Fe]&&Ie===pt[++Fe]&&Ie===pt[++Fe]&&Ie===pt[++Fe]&&Ie===pt[++Fe]&&Ie===pt[++Fe]&&Ie===pt[++Fe]&&Fe<ze);N.match_length=Ce-(ze-Fe),N.match_length>N.lookahead&&(N.match_length=N.lookahead)}if(N.match_length>=be?(Te=I._tr_tally(N,1,N.match_length-be),N.lookahead-=N.match_length,N.strstart+=N.match_length,N.match_length=0):(Te=I._tr_tally(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++),Te&&(pe(N,!1),N.strm.avail_out===0))return T}return N.insert=0,te===a?(pe(N,!0),N.strm.avail_out===0?oe:he):N.last_lit&&(pe(N,!1),N.strm.avail_out===0)?T:Ee}(v,Nt):Y[v.level].func(v,Nt);if(Z!==oe&&Z!==he||(v.status=666),Z===T||Z===oe)return Se.avail_out===0&&(v.last_flush=-1),A;if(Z===Ee&&(Nt===1?I._tr_align(v):Nt!==5&&(I._tr_stored_block(v,0,0,!1),Nt===3&&(P(v.head),v.lookahead===0&&(v.strstart=0,v.block_start=0,v.insert=0))),X(Se),Se.avail_out===0))return v.last_flush=-1,A}return Nt!==a?A:v.wrap<=0?1:(v.wrap===2?(Je(v,255&Se.adler),Je(v,Se.adler>>8&255),Je(v,Se.adler>>16&255),Je(v,Se.adler>>24&255),Je(v,255&Se.total_in),Je(v,Se.total_in>>8&255),Je(v,Se.total_in>>16&255),Je(v,Se.total_in>>24&255)):(at(v,Se.adler>>>16),at(v,65535&Se.adler)),X(Se),0<v.wrap&&(v.wrap=-v.wrap),v.pending!==0?A:1)},ie.deflateEnd=function(Se){var Nt;return Se&&Se.state?(Nt=Se.state.status)!==ae&&Nt!==69&&Nt!==73&&Nt!==91&&Nt!==103&&Nt!==me&&Nt!==666?ve(Se,m):(Se.state=null,Nt===me?ve(Se,-3):A):m},ie.deflateSetDictionary=function(Se,Nt){var z,v,h,D,fe,Z,N,te,Te=Nt.length;if(!Se||!Se.state||(D=(z=Se.state).wrap)===2||D===1&&z.status!==ae||z.lookahead)return m;for(D===1&&(Se.adler=n(Se.adler,Nt,Te,0)),z.wrap=0,Te>=z.w_size&&(D===0&&(P(z.head),z.strstart=0,z.block_start=0,z.insert=0),te=new O.Buf8(z.w_size),O.arraySet(te,Nt,Te-z.w_size,z.w_size,0),Nt=te,Te=z.w_size),fe=Se.avail_in,Z=Se.next_in,N=Se.input,Se.avail_in=Te,Se.next_in=0,Se.input=Nt,Lt(z);z.lookahead>=be;){for(v=z.strstart,h=z.lookahead-(be-1);z.ins_h=(z.ins_h<<z.hash_shift^z.window[v+be-1])&z.hash_mask,z.prev[v&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=v,v++,--h;);z.strstart=v,z.lookahead=be-1,Lt(z)}return z.strstart+=z.lookahead,z.block_start=z.strstart,z.insert=z.lookahead,z.lookahead=0,z.match_length=z.prev_length=be-1,z.match_available=0,Se.next_in=Z,Se.input=N,Se.avail_in=fe,z.wrap=D,A},ie.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(se,Me,ie){"use strict";Me.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(se,Me,ie){"use strict";Me.exports=function(Y,O){var I,n,o,L,p,a,A,m,S,$,F,H,V,ee,B,G,le,J,be,Ce,Re,ae,me,T,Ee;I=Y.state,n=Y.next_in,T=Y.input,o=n+(Y.avail_in-5),L=Y.next_out,Ee=Y.output,p=L-(O-Y.avail_out),a=L+(Y.avail_out-257),A=I.dmax,m=I.wsize,S=I.whave,$=I.wnext,F=I.window,H=I.hold,V=I.bits,ee=I.lencode,B=I.distcode,G=(1<<I.lenbits)-1,le=(1<<I.distbits)-1;e:do{V<15&&(H+=T[n++]<<V,V+=8,H+=T[n++]<<V,V+=8),J=ee[H&G];t:for(;;){if(H>>>=be=J>>>24,V-=be,(be=J>>>16&255)===0)Ee[L++]=65535&J;else{if(!(16&be)){if(!(64&be)){J=ee[(65535&J)+(H&(1<<be)-1)];continue t}if(32&be){I.mode=12;break e}Y.msg="invalid literal/length code",I.mode=30;break e}Ce=65535&J,(be&=15)&&(V<be&&(H+=T[n++]<<V,V+=8),Ce+=H&(1<<be)-1,H>>>=be,V-=be),V<15&&(H+=T[n++]<<V,V+=8,H+=T[n++]<<V,V+=8),J=B[H&le];r:for(;;){if(H>>>=be=J>>>24,V-=be,!(16&(be=J>>>16&255))){if(!(64&be)){J=B[(65535&J)+(H&(1<<be)-1)];continue r}Y.msg="invalid distance code",I.mode=30;break e}if(Re=65535&J,V<(be&=15)&&(H+=T[n++]<<V,(V+=8)<be&&(H+=T[n++]<<V,V+=8)),A<(Re+=H&(1<<be)-1)){Y.msg="invalid distance too far back",I.mode=30;break e}if(H>>>=be,V-=be,(be=L-p)<Re){if(S<(be=Re-be)&&I.sane){Y.msg="invalid distance too far back",I.mode=30;break e}if(me=F,(ae=0)===$){if(ae+=m-be,be<Ce){for(Ce-=be;Ee[L++]=F[ae++],--be;);ae=L-Re,me=Ee}}else if($<be){if(ae+=m+$-be,(be-=$)<Ce){for(Ce-=be;Ee[L++]=F[ae++],--be;);if(ae=0,$<Ce){for(Ce-=be=$;Ee[L++]=F[ae++],--be;);ae=L-Re,me=Ee}}}else if(ae+=$-be,be<Ce){for(Ce-=be;Ee[L++]=F[ae++],--be;);ae=L-Re,me=Ee}for(;2<Ce;)Ee[L++]=me[ae++],Ee[L++]=me[ae++],Ee[L++]=me[ae++],Ce-=3;Ce&&(Ee[L++]=me[ae++],1<Ce&&(Ee[L++]=me[ae++]))}else{for(ae=L-Re;Ee[L++]=Ee[ae++],Ee[L++]=Ee[ae++],Ee[L++]=Ee[ae++],2<(Ce-=3););Ce&&(Ee[L++]=Ee[ae++],1<Ce&&(Ee[L++]=Ee[ae++]))}break}}break}}while(n<o&&L<a);n-=Ce=V>>3,H&=(1<<(V-=Ce<<3))-1,Y.next_in=n,Y.next_out=L,Y.avail_in=n<o?o-n+5:5-(n-o),Y.avail_out=L<a?a-L+257:257-(L-a),I.hold=H,I.bits=V}},{}],49:[function(se,Me,ie){"use strict";var Y=se("../utils/common"),O=se("./adler32"),I=se("./crc32"),n=se("./inffast"),o=se("./inftrees"),L=1,p=2,a=0,A=-2,m=1,S=852,$=592;function F(ae){return(ae>>>24&255)+(ae>>>8&65280)+((65280&ae)<<8)+((255&ae)<<24)}function H(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Y.Buf16(320),this.work=new Y.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function V(ae){var me;return ae&&ae.state?(me=ae.state,ae.total_in=ae.total_out=me.total=0,ae.msg="",me.wrap&&(ae.adler=1&me.wrap),me.mode=m,me.last=0,me.havedict=0,me.dmax=32768,me.head=null,me.hold=0,me.bits=0,me.lencode=me.lendyn=new Y.Buf32(S),me.distcode=me.distdyn=new Y.Buf32($),me.sane=1,me.back=-1,a):A}function ee(ae){var me;return ae&&ae.state?((me=ae.state).wsize=0,me.whave=0,me.wnext=0,V(ae)):A}function B(ae,me){var T,Ee;return ae&&ae.state?(Ee=ae.state,me<0?(T=0,me=-me):(T=1+(me>>4),me<48&&(me&=15)),me&&(me<8||15<me)?A:(Ee.window!==null&&Ee.wbits!==me&&(Ee.window=null),Ee.wrap=T,Ee.wbits=me,ee(ae))):A}function G(ae,me){var T,Ee;return ae?(Ee=new H,(ae.state=Ee).window=null,(T=B(ae,me))!==a&&(ae.state=null),T):A}var le,J,be=!0;function Ce(ae){if(be){var me;for(le=new Y.Buf32(512),J=new Y.Buf32(32),me=0;me<144;)ae.lens[me++]=8;for(;me<256;)ae.lens[me++]=9;for(;me<280;)ae.lens[me++]=7;for(;me<288;)ae.lens[me++]=8;for(o(L,ae.lens,0,288,le,0,ae.work,{bits:9}),me=0;me<32;)ae.lens[me++]=5;o(p,ae.lens,0,32,J,0,ae.work,{bits:5}),be=!1}ae.lencode=le,ae.lenbits=9,ae.distcode=J,ae.distbits=5}function Re(ae,me,T,Ee){var oe,he=ae.state;return he.window===null&&(he.wsize=1<<he.wbits,he.wnext=0,he.whave=0,he.window=new Y.Buf8(he.wsize)),Ee>=he.wsize?(Y.arraySet(he.window,me,T-he.wsize,he.wsize,0),he.wnext=0,he.whave=he.wsize):(Ee<(oe=he.wsize-he.wnext)&&(oe=Ee),Y.arraySet(he.window,me,T-Ee,oe,he.wnext),(Ee-=oe)?(Y.arraySet(he.window,me,T-Ee,Ee,0),he.wnext=Ee,he.whave=he.wsize):(he.wnext+=oe,he.wnext===he.wsize&&(he.wnext=0),he.whave<he.wsize&&(he.whave+=oe))),0}ie.inflateReset=ee,ie.inflateReset2=B,ie.inflateResetKeep=V,ie.inflateInit=function(ae){return G(ae,15)},ie.inflateInit2=G,ie.inflate=function(ae,me){var T,Ee,oe,he,ve,_,P,X,pe,Je,at,nt,Lt,ur,Jt,We,Cr,Er,Kr,_r,Se,Nt,z,v,h=0,D=new Y.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ae||!ae.state||!ae.output||!ae.input&&ae.avail_in!==0)return A;(T=ae.state).mode===12&&(T.mode=13),ve=ae.next_out,oe=ae.output,P=ae.avail_out,he=ae.next_in,Ee=ae.input,_=ae.avail_in,X=T.hold,pe=T.bits,Je=_,at=P,Nt=a;e:for(;;)switch(T.mode){case m:if(T.wrap===0){T.mode=13;break}for(;pe<16;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(2&T.wrap&&X===35615){D[T.check=0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0),pe=X=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&X)<<8)+(X>>8))%31){ae.msg="incorrect header check",T.mode=30;break}if((15&X)!=8){ae.msg="unknown compression method",T.mode=30;break}if(pe-=4,Se=8+(15&(X>>>=4)),T.wbits===0)T.wbits=Se;else if(Se>T.wbits){ae.msg="invalid window size",T.mode=30;break}T.dmax=1<<Se,ae.adler=T.check=1,T.mode=512&X?10:12,pe=X=0;break;case 2:for(;pe<16;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(T.flags=X,(255&T.flags)!=8){ae.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){ae.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=X>>8&1),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0)),pe=X=0,T.mode=3;case 3:for(;pe<32;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}T.head&&(T.head.time=X),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,D[2]=X>>>16&255,D[3]=X>>>24&255,T.check=I(T.check,D,4,0)),pe=X=0,T.mode=4;case 4:for(;pe<16;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}T.head&&(T.head.xflags=255&X,T.head.os=X>>8),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0)),pe=X=0,T.mode=5;case 5:if(1024&T.flags){for(;pe<16;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}T.length=X,T.head&&(T.head.extra_len=X),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0)),pe=X=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(_<(nt=T.length)&&(nt=_),nt&&(T.head&&(Se=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),Y.arraySet(T.head.extra,Ee,he,nt,Se)),512&T.flags&&(T.check=I(T.check,Ee,nt,he)),_-=nt,he+=nt,T.length-=nt),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(_===0)break e;for(nt=0;Se=Ee[he+nt++],T.head&&Se&&T.length<65536&&(T.head.name+=String.fromCharCode(Se)),Se&&nt<_;);if(512&T.flags&&(T.check=I(T.check,Ee,nt,he)),_-=nt,he+=nt,Se)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(_===0)break e;for(nt=0;Se=Ee[he+nt++],T.head&&Se&&T.length<65536&&(T.head.comment+=String.fromCharCode(Se)),Se&&nt<_;);if(512&T.flags&&(T.check=I(T.check,Ee,nt,he)),_-=nt,he+=nt,Se)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;pe<16;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(X!==(65535&T.check)){ae.msg="header crc mismatch",T.mode=30;break}pe=X=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),ae.adler=T.check=0,T.mode=12;break;case 10:for(;pe<32;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}ae.adler=T.check=F(X),pe=X=0,T.mode=11;case 11:if(T.havedict===0)return ae.next_out=ve,ae.avail_out=P,ae.next_in=he,ae.avail_in=_,T.hold=X,T.bits=pe,2;ae.adler=T.check=1,T.mode=12;case 12:if(me===5||me===6)break e;case 13:if(T.last){X>>>=7&pe,pe-=7&pe,T.mode=27;break}for(;pe<3;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}switch(T.last=1&X,pe-=1,3&(X>>>=1)){case 0:T.mode=14;break;case 1:if(Ce(T),T.mode=20,me!==6)break;X>>>=2,pe-=2;break e;case 2:T.mode=17;break;case 3:ae.msg="invalid block type",T.mode=30}X>>>=2,pe-=2;break;case 14:for(X>>>=7&pe,pe-=7&pe;pe<32;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if((65535&X)!=(X>>>16^65535)){ae.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&X,pe=X=0,T.mode=15,me===6)break e;case 15:T.mode=16;case 16:if(nt=T.length){if(_<nt&&(nt=_),P<nt&&(nt=P),nt===0)break e;Y.arraySet(oe,Ee,he,nt,ve),_-=nt,he+=nt,P-=nt,ve+=nt,T.length-=nt;break}T.mode=12;break;case 17:for(;pe<14;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(T.nlen=257+(31&X),X>>>=5,pe-=5,T.ndist=1+(31&X),X>>>=5,pe-=5,T.ncode=4+(15&X),X>>>=4,pe-=4,286<T.nlen||30<T.ndist){ae.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;pe<3;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}T.lens[fe[T.have++]]=7&X,X>>>=3,pe-=3}for(;T.have<19;)T.lens[fe[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,z={bits:T.lenbits},Nt=o(0,T.lens,0,19,T.lencode,0,T.work,z),T.lenbits=z.bits,Nt){ae.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;We=(h=T.lencode[X&(1<<T.lenbits)-1])>>>16&255,Cr=65535&h,!((Jt=h>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(Cr<16)X>>>=Jt,pe-=Jt,T.lens[T.have++]=Cr;else{if(Cr===16){for(v=Jt+2;pe<v;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(X>>>=Jt,pe-=Jt,T.have===0){ae.msg="invalid bit length repeat",T.mode=30;break}Se=T.lens[T.have-1],nt=3+(3&X),X>>>=2,pe-=2}else if(Cr===17){for(v=Jt+3;pe<v;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}pe-=Jt,Se=0,nt=3+(7&(X>>>=Jt)),X>>>=3,pe-=3}else{for(v=Jt+7;pe<v;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}pe-=Jt,Se=0,nt=11+(127&(X>>>=Jt)),X>>>=7,pe-=7}if(T.have+nt>T.nlen+T.ndist){ae.msg="invalid bit length repeat",T.mode=30;break}for(;nt--;)T.lens[T.have++]=Se}}if(T.mode===30)break;if(T.lens[256]===0){ae.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,z={bits:T.lenbits},Nt=o(L,T.lens,0,T.nlen,T.lencode,0,T.work,z),T.lenbits=z.bits,Nt){ae.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,z={bits:T.distbits},Nt=o(p,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,z),T.distbits=z.bits,Nt){ae.msg="invalid distances set",T.mode=30;break}if(T.mode=20,me===6)break e;case 20:T.mode=21;case 21:if(6<=_&&258<=P){ae.next_out=ve,ae.avail_out=P,ae.next_in=he,ae.avail_in=_,T.hold=X,T.bits=pe,n(ae,at),ve=ae.next_out,oe=ae.output,P=ae.avail_out,he=ae.next_in,Ee=ae.input,_=ae.avail_in,X=T.hold,pe=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;We=(h=T.lencode[X&(1<<T.lenbits)-1])>>>16&255,Cr=65535&h,!((Jt=h>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(We&&!(240&We)){for(Er=Jt,Kr=We,_r=Cr;We=(h=T.lencode[_r+((X&(1<<Er+Kr)-1)>>Er)])>>>16&255,Cr=65535&h,!(Er+(Jt=h>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}X>>>=Er,pe-=Er,T.back+=Er}if(X>>>=Jt,pe-=Jt,T.back+=Jt,T.length=Cr,We===0){T.mode=26;break}if(32&We){T.back=-1,T.mode=12;break}if(64&We){ae.msg="invalid literal/length code",T.mode=30;break}T.extra=15&We,T.mode=22;case 22:if(T.extra){for(v=T.extra;pe<v;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}T.length+=X&(1<<T.extra)-1,X>>>=T.extra,pe-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;We=(h=T.distcode[X&(1<<T.distbits)-1])>>>16&255,Cr=65535&h,!((Jt=h>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(!(240&We)){for(Er=Jt,Kr=We,_r=Cr;We=(h=T.distcode[_r+((X&(1<<Er+Kr)-1)>>Er)])>>>16&255,Cr=65535&h,!(Er+(Jt=h>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}X>>>=Er,pe-=Er,T.back+=Er}if(X>>>=Jt,pe-=Jt,T.back+=Jt,64&We){ae.msg="invalid distance code",T.mode=30;break}T.offset=Cr,T.extra=15&We,T.mode=24;case 24:if(T.extra){for(v=T.extra;pe<v;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}T.offset+=X&(1<<T.extra)-1,X>>>=T.extra,pe-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){ae.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(P===0)break e;if(nt=at-P,T.offset>nt){if((nt=T.offset-nt)>T.whave&&T.sane){ae.msg="invalid distance too far back",T.mode=30;break}Lt=nt>T.wnext?(nt-=T.wnext,T.wsize-nt):T.wnext-nt,nt>T.length&&(nt=T.length),ur=T.window}else ur=oe,Lt=ve-T.offset,nt=T.length;for(P<nt&&(nt=P),P-=nt,T.length-=nt;oe[ve++]=ur[Lt++],--nt;);T.length===0&&(T.mode=21);break;case 26:if(P===0)break e;oe[ve++]=T.length,P--,T.mode=21;break;case 27:if(T.wrap){for(;pe<32;){if(_===0)break e;_--,X|=Ee[he++]<<pe,pe+=8}if(at-=P,ae.total_out+=at,T.total+=at,at&&(ae.adler=T.check=T.flags?I(T.check,oe,at,ve-at):O(T.check,oe,at,ve-at)),at=P,(T.flags?X:F(X))!==T.check){ae.msg="incorrect data check",T.mode=30;break}pe=X=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;pe<32;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(X!==(4294967295&T.total)){ae.msg="incorrect length check",T.mode=30;break}pe=X=0}T.mode=29;case 29:Nt=1;break e;case 30:Nt=-3;break e;case 31:return-4;case 32:default:return A}return ae.next_out=ve,ae.avail_out=P,ae.next_in=he,ae.avail_in=_,T.hold=X,T.bits=pe,(T.wsize||at!==ae.avail_out&&T.mode<30&&(T.mode<27||me!==4))&&Re(ae,ae.output,ae.next_out,at-ae.avail_out)?(T.mode=31,-4):(Je-=ae.avail_in,at-=ae.avail_out,ae.total_in+=Je,ae.total_out+=at,T.total+=at,T.wrap&&at&&(ae.adler=T.check=T.flags?I(T.check,oe,at,ae.next_out-at):O(T.check,oe,at,ae.next_out-at)),ae.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(Je==0&&at===0||me===4)&&Nt===a&&(Nt=-5),Nt)},ie.inflateEnd=function(ae){if(!ae||!ae.state)return A;var me=ae.state;return me.window&&(me.window=null),ae.state=null,a},ie.inflateGetHeader=function(ae,me){var T;return ae&&ae.state&&2&(T=ae.state).wrap?((T.head=me).done=!1,a):A},ie.inflateSetDictionary=function(ae,me){var T,Ee=me.length;return ae&&ae.state?(T=ae.state).wrap!==0&&T.mode!==11?A:T.mode===11&&O(1,me,Ee,0)!==T.check?-3:Re(ae,me,Ee,Ee)?(T.mode=31,-4):(T.havedict=1,a):A},ie.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(se,Me,ie){"use strict";var Y=se("../utils/common"),O=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],I=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],n=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Me.exports=function(L,p,a,A,m,S,$,F){var H,V,ee,B,G,le,J,be,Ce,Re=F.bits,ae=0,me=0,T=0,Ee=0,oe=0,he=0,ve=0,_=0,P=0,X=0,pe=null,Je=0,at=new Y.Buf16(16),nt=new Y.Buf16(16),Lt=null,ur=0;for(ae=0;ae<=15;ae++)at[ae]=0;for(me=0;me<A;me++)at[p[a+me]]++;for(oe=Re,Ee=15;1<=Ee&&at[Ee]===0;Ee--);if(Ee<oe&&(oe=Ee),Ee===0)return m[S++]=20971520,m[S++]=20971520,F.bits=1,0;for(T=1;T<Ee&&at[T]===0;T++);for(oe<T&&(oe=T),ae=_=1;ae<=15;ae++)if(_<<=1,(_-=at[ae])<0)return-1;if(0<_&&(L===0||Ee!==1))return-1;for(nt[1]=0,ae=1;ae<15;ae++)nt[ae+1]=nt[ae]+at[ae];for(me=0;me<A;me++)p[a+me]!==0&&($[nt[p[a+me]]++]=me);if(le=L===0?(pe=Lt=$,19):L===1?(pe=O,Je-=257,Lt=I,ur-=257,256):(pe=n,Lt=o,-1),ae=T,G=S,ve=me=X=0,ee=-1,B=(P=1<<(he=oe))-1,L===1&&852<P||L===2&&592<P)return 1;for(;;){for(J=ae-ve,Ce=$[me]<le?(be=0,$[me]):$[me]>le?(be=Lt[ur+$[me]],pe[Je+$[me]]):(be=96,0),H=1<<ae-ve,T=V=1<<he;m[G+(X>>ve)+(V-=H)]=J<<24|be<<16|Ce|0,V!==0;);for(H=1<<ae-1;X&H;)H>>=1;if(H!==0?(X&=H-1,X+=H):X=0,me++,--at[ae]==0){if(ae===Ee)break;ae=p[a+$[me]]}if(oe<ae&&(X&B)!==ee){for(ve===0&&(ve=oe),G+=T,_=1<<(he=ae-ve);he+ve<Ee&&!((_-=at[he+ve])<=0);)he++,_<<=1;if(P+=1<<he,L===1&&852<P||L===2&&592<P)return 1;m[ee=X&B]=oe<<24|he<<16|G-S|0}}return X!==0&&(m[G+X]=ae-ve<<24|64<<16|0),F.bits=oe,0}},{"../utils/common":41}],51:[function(se,Me,ie){"use strict";Me.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(se,Me,ie){"use strict";var Y=se("../utils/common"),O=0,I=1;function n(h){for(var D=h.length;0<=--D;)h[D]=0}var o=0,L=29,p=256,a=p+1+L,A=30,m=19,S=2*a+1,$=15,F=16,H=7,V=256,ee=16,B=17,G=18,le=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],be=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Re=new Array(2*(a+2));n(Re);var ae=new Array(2*A);n(ae);var me=new Array(512);n(me);var T=new Array(256);n(T);var Ee=new Array(L);n(Ee);var oe,he,ve,_=new Array(A);function P(h,D,fe,Z,N){this.static_tree=h,this.extra_bits=D,this.extra_base=fe,this.elems=Z,this.max_length=N,this.has_stree=h&&h.length}function X(h,D){this.dyn_tree=h,this.max_code=0,this.stat_desc=D}function pe(h){return h<256?me[h]:me[256+(h>>>7)]}function Je(h,D){h.pending_buf[h.pending++]=255&D,h.pending_buf[h.pending++]=D>>>8&255}function at(h,D,fe){h.bi_valid>F-fe?(h.bi_buf|=D<<h.bi_valid&65535,Je(h,h.bi_buf),h.bi_buf=D>>F-h.bi_valid,h.bi_valid+=fe-F):(h.bi_buf|=D<<h.bi_valid&65535,h.bi_valid+=fe)}function nt(h,D,fe){at(h,fe[2*D],fe[2*D+1])}function Lt(h,D){for(var fe=0;fe|=1&h,h>>>=1,fe<<=1,0<--D;);return fe>>>1}function ur(h,D,fe){var Z,N,te=new Array($+1),Te=0;for(Z=1;Z<=$;Z++)te[Z]=Te=Te+fe[Z-1]<<1;for(N=0;N<=D;N++){var Ie=h[2*N+1];Ie!==0&&(h[2*N]=Lt(te[Ie]++,Ie))}}function Jt(h){var D;for(D=0;D<a;D++)h.dyn_ltree[2*D]=0;for(D=0;D<A;D++)h.dyn_dtree[2*D]=0;for(D=0;D<m;D++)h.bl_tree[2*D]=0;h.dyn_ltree[2*V]=1,h.opt_len=h.static_len=0,h.last_lit=h.matches=0}function We(h){8<h.bi_valid?Je(h,h.bi_buf):0<h.bi_valid&&(h.pending_buf[h.pending++]=h.bi_buf),h.bi_buf=0,h.bi_valid=0}function Cr(h,D,fe,Z){var N=2*D,te=2*fe;return h[N]<h[te]||h[N]===h[te]&&Z[D]<=Z[fe]}function Er(h,D,fe){for(var Z=h.heap[fe],N=fe<<1;N<=h.heap_len&&(N<h.heap_len&&Cr(D,h.heap[N+1],h.heap[N],h.depth)&&N++,!Cr(D,Z,h.heap[N],h.depth));)h.heap[fe]=h.heap[N],fe=N,N<<=1;h.heap[fe]=Z}function Kr(h,D,fe){var Z,N,te,Te,Ie=0;if(h.last_lit!==0)for(;Z=h.pending_buf[h.d_buf+2*Ie]<<8|h.pending_buf[h.d_buf+2*Ie+1],N=h.pending_buf[h.l_buf+Ie],Ie++,Z===0?nt(h,N,D):(nt(h,(te=T[N])+p+1,D),(Te=le[te])!==0&&at(h,N-=Ee[te],Te),nt(h,te=pe(--Z),fe),(Te=J[te])!==0&&at(h,Z-=_[te],Te)),Ie<h.last_lit;);nt(h,V,D)}function _r(h,D){var fe,Z,N,te=D.dyn_tree,Te=D.stat_desc.static_tree,Ie=D.stat_desc.has_stree,Fe=D.stat_desc.elems,ze=-1;for(h.heap_len=0,h.heap_max=S,fe=0;fe<Fe;fe++)te[2*fe]!==0?(h.heap[++h.heap_len]=ze=fe,h.depth[fe]=0):te[2*fe+1]=0;for(;h.heap_len<2;)te[2*(N=h.heap[++h.heap_len]=ze<2?++ze:0)]=1,h.depth[N]=0,h.opt_len--,Ie&&(h.static_len-=Te[2*N+1]);for(D.max_code=ze,fe=h.heap_len>>1;1<=fe;fe--)Er(h,te,fe);for(N=Fe;fe=h.heap[1],h.heap[1]=h.heap[h.heap_len--],Er(h,te,1),Z=h.heap[1],h.heap[--h.heap_max]=fe,h.heap[--h.heap_max]=Z,te[2*N]=te[2*fe]+te[2*Z],h.depth[N]=(h.depth[fe]>=h.depth[Z]?h.depth[fe]:h.depth[Z])+1,te[2*fe+1]=te[2*Z+1]=N,h.heap[1]=N++,Er(h,te,1),2<=h.heap_len;);h.heap[--h.heap_max]=h.heap[1],function(pt,$e){var tt,ct,Ge,Ke,Bt,Vt,Mt=$e.dyn_tree,mr=$e.max_code,wr=$e.stat_desc.static_tree,re=$e.stat_desc.has_stree,ue=$e.stat_desc.extra_bits,rr=$e.stat_desc.extra_base,Qe=$e.stat_desc.max_length,ot=0;for(Ke=0;Ke<=$;Ke++)pt.bl_count[Ke]=0;for(Mt[2*pt.heap[pt.heap_max]+1]=0,tt=pt.heap_max+1;tt<S;tt++)Qe<(Ke=Mt[2*Mt[2*(ct=pt.heap[tt])+1]+1]+1)&&(Ke=Qe,ot++),Mt[2*ct+1]=Ke,mr<ct||(pt.bl_count[Ke]++,Bt=0,rr<=ct&&(Bt=ue[ct-rr]),Vt=Mt[2*ct],pt.opt_len+=Vt*(Ke+Bt),re&&(pt.static_len+=Vt*(wr[2*ct+1]+Bt)));if(ot!==0){do{for(Ke=Qe-1;pt.bl_count[Ke]===0;)Ke--;pt.bl_count[Ke]--,pt.bl_count[Ke+1]+=2,pt.bl_count[Qe]--,ot-=2}while(0<ot);for(Ke=Qe;Ke!==0;Ke--)for(ct=pt.bl_count[Ke];ct!==0;)mr<(Ge=pt.heap[--tt])||(Mt[2*Ge+1]!==Ke&&(pt.opt_len+=(Ke-Mt[2*Ge+1])*Mt[2*Ge],Mt[2*Ge+1]=Ke),ct--)}}(h,D),ur(te,ze,h.bl_count)}function Se(h,D,fe){var Z,N,te=-1,Te=D[1],Ie=0,Fe=7,ze=4;for(Te===0&&(Fe=138,ze=3),D[2*(fe+1)+1]=65535,Z=0;Z<=fe;Z++)N=Te,Te=D[2*(Z+1)+1],++Ie<Fe&&N===Te||(Ie<ze?h.bl_tree[2*N]+=Ie:N!==0?(N!==te&&h.bl_tree[2*N]++,h.bl_tree[2*ee]++):Ie<=10?h.bl_tree[2*B]++:h.bl_tree[2*G]++,te=N,ze=(Ie=0)===Te?(Fe=138,3):N===Te?(Fe=6,3):(Fe=7,4))}function Nt(h,D,fe){var Z,N,te=-1,Te=D[1],Ie=0,Fe=7,ze=4;for(Te===0&&(Fe=138,ze=3),Z=0;Z<=fe;Z++)if(N=Te,Te=D[2*(Z+1)+1],!(++Ie<Fe&&N===Te)){if(Ie<ze)for(;nt(h,N,h.bl_tree),--Ie!=0;);else N!==0?(N!==te&&(nt(h,N,h.bl_tree),Ie--),nt(h,ee,h.bl_tree),at(h,Ie-3,2)):Ie<=10?(nt(h,B,h.bl_tree),at(h,Ie-3,3)):(nt(h,G,h.bl_tree),at(h,Ie-11,7));te=N,ze=(Ie=0)===Te?(Fe=138,3):N===Te?(Fe=6,3):(Fe=7,4)}}n(_);var z=!1;function v(h,D,fe,Z){at(h,(o<<1)+(Z?1:0),3),function(N,te,Te,Ie){We(N),Ie&&(Je(N,Te),Je(N,~Te)),Y.arraySet(N.pending_buf,N.window,te,Te,N.pending),N.pending+=Te}(h,D,fe,!0)}ie._tr_init=function(h){z||(function(){var D,fe,Z,N,te,Te=new Array($+1);for(N=Z=0;N<L-1;N++)for(Ee[N]=Z,D=0;D<1<<le[N];D++)T[Z++]=N;for(T[Z-1]=N,N=te=0;N<16;N++)for(_[N]=te,D=0;D<1<<J[N];D++)me[te++]=N;for(te>>=7;N<A;N++)for(_[N]=te<<7,D=0;D<1<<J[N]-7;D++)me[256+te++]=N;for(fe=0;fe<=$;fe++)Te[fe]=0;for(D=0;D<=143;)Re[2*D+1]=8,D++,Te[8]++;for(;D<=255;)Re[2*D+1]=9,D++,Te[9]++;for(;D<=279;)Re[2*D+1]=7,D++,Te[7]++;for(;D<=287;)Re[2*D+1]=8,D++,Te[8]++;for(ur(Re,a+1,Te),D=0;D<A;D++)ae[2*D+1]=5,ae[2*D]=Lt(D,5);oe=new P(Re,le,p+1,a,$),he=new P(ae,J,0,A,$),ve=new P(new Array(0),be,0,m,H)}(),z=!0),h.l_desc=new X(h.dyn_ltree,oe),h.d_desc=new X(h.dyn_dtree,he),h.bl_desc=new X(h.bl_tree,ve),h.bi_buf=0,h.bi_valid=0,Jt(h)},ie._tr_stored_block=v,ie._tr_flush_block=function(h,D,fe,Z){var N,te,Te=0;0<h.level?(h.strm.data_type===2&&(h.strm.data_type=function(Ie){var Fe,ze=4093624447;for(Fe=0;Fe<=31;Fe++,ze>>>=1)if(1&ze&&Ie.dyn_ltree[2*Fe]!==0)return O;if(Ie.dyn_ltree[18]!==0||Ie.dyn_ltree[20]!==0||Ie.dyn_ltree[26]!==0)return I;for(Fe=32;Fe<p;Fe++)if(Ie.dyn_ltree[2*Fe]!==0)return I;return O}(h)),_r(h,h.l_desc),_r(h,h.d_desc),Te=function(Ie){var Fe;for(Se(Ie,Ie.dyn_ltree,Ie.l_desc.max_code),Se(Ie,Ie.dyn_dtree,Ie.d_desc.max_code),_r(Ie,Ie.bl_desc),Fe=m-1;3<=Fe&&Ie.bl_tree[2*Ce[Fe]+1]===0;Fe--);return Ie.opt_len+=3*(Fe+1)+5+5+4,Fe}(h),N=h.opt_len+3+7>>>3,(te=h.static_len+3+7>>>3)<=N&&(N=te)):N=te=fe+5,fe+4<=N&&D!==-1?v(h,D,fe,Z):h.strategy===4||te===N?(at(h,2+(Z?1:0),3),Kr(h,Re,ae)):(at(h,4+(Z?1:0),3),function(Ie,Fe,ze,pt){var $e;for(at(Ie,Fe-257,5),at(Ie,ze-1,5),at(Ie,pt-4,4),$e=0;$e<pt;$e++)at(Ie,Ie.bl_tree[2*Ce[$e]+1],3);Nt(Ie,Ie.dyn_ltree,Fe-1),Nt(Ie,Ie.dyn_dtree,ze-1)}(h,h.l_desc.max_code+1,h.d_desc.max_code+1,Te+1),Kr(h,h.dyn_ltree,h.dyn_dtree)),Jt(h),Z&&We(h)},ie._tr_tally=function(h,D,fe){return h.pending_buf[h.d_buf+2*h.last_lit]=D>>>8&255,h.pending_buf[h.d_buf+2*h.last_lit+1]=255&D,h.pending_buf[h.l_buf+h.last_lit]=255&fe,h.last_lit++,D===0?h.dyn_ltree[2*fe]++:(h.matches++,D--,h.dyn_ltree[2*(T[fe]+p+1)]++,h.dyn_dtree[2*pe(D)]++),h.last_lit===h.lit_bufsize-1},ie._tr_align=function(h){at(h,2,3),nt(h,V,Re),function(D){D.bi_valid===16?(Je(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):8<=D.bi_valid&&(D.pending_buf[D.pending++]=255&D.bi_buf,D.bi_buf>>=8,D.bi_valid-=8)}(h)}},{"../utils/common":41}],53:[function(se,Me,ie){"use strict";Me.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(se,Me,ie){(function(Y){(function(O,I){"use strict";if(!O.setImmediate){var n,o,L,p,a=1,A={},m=!1,S=O.document,$=Object.getPrototypeOf&&Object.getPrototypeOf(O);$=$&&$.setTimeout?$:O,n={}.toString.call(O.process)==="[object process]"?function(ee){De.nextTick(function(){H(ee)})}:function(){if(O.postMessage&&!O.importScripts){var ee=!0,B=O.onmessage;return O.onmessage=function(){ee=!1},O.postMessage("","*"),O.onmessage=B,ee}}()?(p="setImmediate$"+Math.random()+"$",O.addEventListener?O.addEventListener("message",V,!1):O.attachEvent("onmessage",V),function(ee){O.postMessage(p+ee,"*")}):O.MessageChannel?((L=new MessageChannel).port1.onmessage=function(ee){H(ee.data)},function(ee){L.port2.postMessage(ee)}):S&&"onreadystatechange"in S.createElement("script")?(o=S.documentElement,function(ee){var B=S.createElement("script");B.onreadystatechange=function(){H(ee),B.onreadystatechange=null,o.removeChild(B),B=null},o.appendChild(B)}):function(ee){setTimeout(H,0,ee)},$.setImmediate=function(ee){typeof ee!="function"&&(ee=new Function(""+ee));for(var B=new Array(arguments.length-1),G=0;G<B.length;G++)B[G]=arguments[G+1];var le={callback:ee,args:B};return A[a]=le,n(a),a++},$.clearImmediate=F}function F(ee){delete A[ee]}function H(ee){if(m)setTimeout(H,0,ee);else{var B=A[ee];if(B){m=!0;try{(function(G){var le=G.callback,J=G.args;switch(J.length){case 0:le();break;case 1:le(J[0]);break;case 2:le(J[0],J[1]);break;case 3:le(J[0],J[1],J[2]);break;default:le.apply(I,J)}})(B)}finally{F(ee),m=!1}}}}function V(ee){ee.source===O&&typeof ee.data=="string"&&ee.data.indexOf(p)===0&&H(+ee.data.slice(p.length))}})(typeof self=="undefined"?Y===void 0?this:Y:self)}).call(this,typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},15342:function(bn){(function(g,we){bn.exports=we()})(typeof self!="undefined"?self:this,function(){return function(Zt){var g={};function we(De){if(g[De])return g[De].exports;var se=g[De]={i:De,l:!1,exports:{}};return Zt[De].call(se.exports,se,se.exports,we),se.l=!0,se.exports}return we.m=Zt,we.c=g,we.d=function(De,se,Me){we.o(De,se)||Object.defineProperty(De,se,{enumerable:!0,get:Me})},we.r=function(De){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(De,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(De,"__esModule",{value:!0})},we.t=function(De,se){if(se&1&&(De=we(De)),se&8||se&4&&typeof De=="object"&&De&&De.__esModule)return De;var Me=Object.create(null);if(we.r(Me),Object.defineProperty(Me,"default",{enumerable:!0,value:De}),se&2&&typeof De!="string")for(var ie in De)we.d(Me,ie,function(Y){return De[Y]}.bind(null,ie));return Me},we.n=function(De){var se=De&&De.__esModule?function(){return De.default}:function(){return De};return we.d(se,"a",se),se},we.o=function(De,se){return Object.prototype.hasOwnProperty.call(De,se)},we.p="",we(we.s=1)}([function(Zt,g,we){},function(Zt,g,we){"use strict";we.r(g);var De=we(0),se=function(){function He(c,w,C){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=c,this.start=w,this.end=C}return He.range=function(w,C){return C?!w||!w.loc||!C.loc||w.loc.lexer!==C.loc.lexer?null:new He(w.loc.lexer,w.loc.start,C.loc.end):w&&w.loc},He}(),Me=function(){function He(w,C){this.text=void 0,this.loc=void 0,this.text=w,this.loc=C}var c=He.prototype;return c.range=function(C,K){return new He(K,se.range(this,C))},He}(),ie=function He(c,w){this.position=void 0;var C="KaTeX parse error: "+c,K,Be=w&&w.loc;if(Be&&Be.start<=Be.end){var je=Be.lexer.input;K=Be.start;var xt=Be.end;K===je.length?C+=" at end of input: ":C+=" at position "+(K+1)+": ";var bt=je.slice(K,xt).replace(/[^]/g,"$&\u0332"),Xt;K>15?Xt="\u2026"+je.slice(K-15,K):Xt=je.slice(0,K);var Ar;xt+15<je.length?Ar=je.slice(xt,xt+15)+"\u2026":Ar=je.slice(xt),C+=Xt+bt+Ar}var xr=new Error(C);return xr.name="ParseError",xr.__proto__=He.prototype,xr.position=K,xr};ie.prototype.__proto__=Error.prototype;var Y=ie,O=function(c,w){return c.indexOf(w)!==-1},I=function(c,w){return c===void 0?w:c},n=/([A-Z])/g,o=function(c){return c.replace(n,"-$1").toLowerCase()},L={"&":"&",">":">","<":"<",'"':""","'":"'"},p=/[&><"']/g;function a(He){return String(He).replace(p,function(c){return L[c]})}var A=function He(c){return c.type==="ordgroup"||c.type==="color"?c.body.length===1?He(c.body[0]):c:c.type==="font"?He(c.body):c},m=function(c){var w=A(c);return w.type==="mathord"||w.type==="textord"||w.type==="atom"},S=function(c){if(!c)throw new Error("Expected non-null, but got "+String(c));return c},$=function(c){var w=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(c);return w!=null?w[1]:"_relative"},F={contains:O,deflt:I,escape:a,hyphenate:o,getBaseElem:A,isCharacterBox:m,protocolFromUrl:$},H=function(){function He(w){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,w=w||{},this.displayMode=F.deflt(w.displayMode,!1),this.output=F.deflt(w.output,"htmlAndMathml"),this.leqno=F.deflt(w.leqno,!1),this.fleqn=F.deflt(w.fleqn,!1),this.throwOnError=F.deflt(w.throwOnError,!0),this.errorColor=F.deflt(w.errorColor,"#cc0000"),this.macros=w.macros||{},this.minRuleThickness=Math.max(0,F.deflt(w.minRuleThickness,0)),this.colorIsTextColor=F.deflt(w.colorIsTextColor,!1),this.strict=F.deflt(w.strict,"warn"),this.trust=F.deflt(w.trust,!1),this.maxSize=Math.max(0,F.deflt(w.maxSize,1/0)),this.maxExpand=Math.max(0,F.deflt(w.maxExpand,1e3))}var c=He.prototype;return c.reportNonstrict=function(C,K,Be){var je=this.strict;if(typeof je=="function"&&(je=je(C,K,Be)),!(!je||je==="ignore")){if(je===!0||je==="error")throw new Y("LaTeX-incompatible input and strict mode is set to 'error': "+(K+" ["+C+"]"),Be);je==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(K+" ["+C+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+je+"': "+K+" ["+C+"]"))}},c.useStrictBehavior=function(C,K,Be){var je=this.strict;if(typeof je=="function")try{je=je(C,K,Be)}catch(xt){je="error"}return!je||je==="ignore"?!1:je===!0||je==="error"?!0:je==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(K+" ["+C+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+je+"': "+K+" ["+C+"]")),!1)},c.isTrusted=function(C){C.url&&!C.protocol&&(C.protocol=F.protocolFromUrl(C.url));var K=typeof this.trust=="function"?this.trust(C):this.trust;return!!K},He}(),V=function(){function He(w,C,K){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=w,this.size=C,this.cramped=K}var c=He.prototype;return c.sup=function(){return ae[me[this.id]]},c.sub=function(){return ae[T[this.id]]},c.fracNum=function(){return ae[Ee[this.id]]},c.fracDen=function(){return ae[oe[this.id]]},c.cramp=function(){return ae[he[this.id]]},c.text=function(){return ae[ve[this.id]]},c.isTight=function(){return this.size>=2},He}(),ee=0,B=1,G=2,le=3,J=4,be=5,Ce=6,Re=7,ae=[new V(ee,0,!1),new V(B,0,!0),new V(G,1,!1),new V(le,1,!0),new V(J,2,!1),new V(be,2,!0),new V(Ce,3,!1),new V(Re,3,!0)],me=[J,be,J,be,Ce,Re,Ce,Re],T=[be,be,be,be,Re,Re,Re,Re],Ee=[G,le,J,be,Ce,Re,Ce,Re],oe=[le,le,be,be,Re,Re,Re,Re],he=[B,B,le,le,be,be,Re,Re],ve=[ee,B,G,le,G,le,G,le],_={DISPLAY:ae[ee],TEXT:ae[G],SCRIPT:ae[J],SCRIPTSCRIPT:ae[Ce]},P=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function X(He){for(var c=0;c<P.length;c++)for(var w=P[c],C=0;C<w.blocks.length;C++){var K=w.blocks[C];if(He>=K[0]&&He<=K[1])return w.name}return null}var pe=[];P.forEach(function(He){return He.blocks.forEach(function(c){return pe.push.apply(pe,c)})});function Je(He){for(var c=0;c<pe.length;c+=2)if(He>=pe[c]&&He<=pe[c+1])return!0;return!1}var at=80,nt=function(c,w){return"M95,"+(622+c+w)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+c/2.075+" -"+c+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+c)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+c)+" "+w+"h400000v"+(40+c)+"h-400000z"},Lt=function(c,w){return"M263,"+(601+c+w)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+c/2.084+" -"+c+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+c)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+c)+" "+w+"h400000v"+(40+c)+"h-400000z"},ur=function(c,w){return"M983 "+(10+c+w)+`
|
|
|
l`+c/3.13+" -"+c+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+c)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+c)+" "+w+"h400000v"+(40+c)+"h-400000z"},Jt=function(c,w){return"M424,"+(2398+c+w)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+c/4.223+" -"+c+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+c)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+c)+" "+w+`
|
|
|
h400000v`+(40+c)+"h-400000z"},We=function(c,w){return"M473,"+(2713+c+w)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+c/5.298+" -"+c+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+c)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+c)+" "+w+"h400000v"+(40+c)+"H1017.7z"},Cr=function(c,w,C){var K=C-54-w-c;return"M702 "+(c+w)+"H400000"+(40+c)+`
|
|
|
H742v`+K+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+w+"H400000v"+(40+c)+"H742z"},Er=function(c,w,C){w=1e3*w;var K="";switch(c){case"sqrtMain":K=nt(w,at);break;case"sqrtSize1":K=Lt(w,at);break;case"sqrtSize2":K=ur(w,at);break;case"sqrtSize3":K=Jt(w,at);break;case"sqrtSize4":K=We(w,at);break;case"sqrtTall":K=Cr(w,at,C)}return K},Kr={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`,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`,tilde1:`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`,tilde2:`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`,tilde3:`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`,tilde4:`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`},_r=function(){function He(w){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=w,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var c=He.prototype;return c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){for(var C=document.createDocumentFragment(),K=0;K<this.children.length;K++)C.appendChild(this.children[K].toNode());return C},c.toMarkup=function(){for(var C="",K=0;K<this.children.length;K++)C+=this.children[K].toMarkup();return C},c.toText=function(){var C=function(Be){return Be.toText()};return this.children.map(C).join("")},He}(),Se=function(c){return c.filter(function(w){return w}).join(" ")},Nt=function(c,w,C){if(this.classes=c||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=C||{},w){w.style.isTight()&&this.classes.push("mtight");var K=w.getColor();K&&(this.style.color=K)}},z=function(c){var w=document.createElement(c);w.className=Se(this.classes);for(var C in this.style)this.style.hasOwnProperty(C)&&(w.style[C]=this.style[C]);for(var K in this.attributes)this.attributes.hasOwnProperty(K)&&w.setAttribute(K,this.attributes[K]);for(var Be=0;Be<this.children.length;Be++)w.appendChild(this.children[Be].toNode());return w},v=function(c){var w="<"+c;this.classes.length&&(w+=' class="'+F.escape(Se(this.classes))+'"');var C="";for(var K in this.style)this.style.hasOwnProperty(K)&&(C+=F.hyphenate(K)+":"+this.style[K]+";");C&&(w+=' style="'+F.escape(C)+'"');for(var Be in this.attributes)this.attributes.hasOwnProperty(Be)&&(w+=" "+Be+'="'+F.escape(this.attributes[Be])+'"');w+=">";for(var je=0;je<this.children.length;je++)w+=this.children[je].toMarkup();return w+="</"+c+">",w},h=function(){function He(w,C,K,Be){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Nt.call(this,w,K,Be),this.children=C||[]}var c=He.prototype;return c.setAttribute=function(C,K){this.attributes[C]=K},c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){return z.call(this,"span")},c.toMarkup=function(){return v.call(this,"span")},He}(),D=function(){function He(w,C,K,Be){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Nt.call(this,C,Be),this.children=K||[],this.setAttribute("href",w)}var c=He.prototype;return c.setAttribute=function(C,K){this.attributes[C]=K},c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){return z.call(this,"a")},c.toMarkup=function(){return v.call(this,"a")},He}(),fe=function(){function He(w,C,K){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=C,this.src=w,this.classes=["mord"],this.style=K}var c=He.prototype;return c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){var C=document.createElement("img");C.src=this.src,C.alt=this.alt,C.className="mord";for(var K in this.style)this.style.hasOwnProperty(K)&&(C.style[K]=this.style[K]);return C},c.toMarkup=function(){var C="<img src='"+this.src+" 'alt='"+this.alt+"' ",K="";for(var Be in this.style)this.style.hasOwnProperty(Be)&&(K+=F.hyphenate(Be)+":"+this.style[Be]+";");return K&&(C+=' style="'+F.escape(K)+'"'),C+="'/>",C},He}(),Z={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},N=function(){function He(w,C,K,Be,je,xt,bt,Xt){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=w,this.height=C||0,this.depth=K||0,this.italic=Be||0,this.skew=je||0,this.width=xt||0,this.classes=bt||[],this.style=Xt||{},this.maxFontSize=0;var Ar=X(this.text.charCodeAt(0));Ar&&this.classes.push(Ar+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Z[this.text])}var c=He.prototype;return c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){var C=document.createTextNode(this.text),K=null;this.italic>0&&(K=document.createElement("span"),K.style.marginRight=this.italic+"em"),this.classes.length>0&&(K=K||document.createElement("span"),K.className=Se(this.classes));for(var Be in this.style)this.style.hasOwnProperty(Be)&&(K=K||document.createElement("span"),K.style[Be]=this.style[Be]);return K?(K.appendChild(C),K):C},c.toMarkup=function(){var C=!1,K="<span";this.classes.length&&(C=!0,K+=' class="',K+=F.escape(Se(this.classes)),K+='"');var Be="";this.italic>0&&(Be+="margin-right:"+this.italic+"em;");for(var je in this.style)this.style.hasOwnProperty(je)&&(Be+=F.hyphenate(je)+":"+this.style[je]+";");Be&&(C=!0,K+=' style="'+F.escape(Be)+'"');var xt=F.escape(this.text);return C?(K+=">",K+=xt,K+="</span>",K):xt},He}(),te=function(){function He(w,C){this.children=void 0,this.attributes=void 0,this.children=w||[],this.attributes=C||{}}var c=He.prototype;return c.toNode=function(){var C="http://www.w3.org/2000/svg",K=document.createElementNS(C,"svg");for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&K.setAttribute(Be,this.attributes[Be]);for(var je=0;je<this.children.length;je++)K.appendChild(this.children[je].toNode());return K},c.toMarkup=function(){var C="<svg";for(var K in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,K)&&(C+=" "+K+"='"+this.attributes[K]+"'");C+=">";for(var Be=0;Be<this.children.length;Be++)C+=this.children[Be].toMarkup();return C+="</svg>",C},He}(),Te=function(){function He(w,C){this.pathName=void 0,this.alternate=void 0,this.pathName=w,this.alternate=C}var c=He.prototype;return c.toNode=function(){var C="http://www.w3.org/2000/svg",K=document.createElementNS(C,"path");return this.alternate?K.setAttribute("d",this.alternate):K.setAttribute("d",Kr[this.pathName]),K},c.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Kr[this.pathName]+"'/>"},He}(),Ie=function(){function He(w){this.attributes=void 0,this.attributes=w||{}}var c=He.prototype;return c.toNode=function(){var C="http://www.w3.org/2000/svg",K=document.createElementNS(C,"line");for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&K.setAttribute(Be,this.attributes[Be]);return K},c.toMarkup=function(){var C="<line";for(var K in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,K)&&(C+=" "+K+"='"+this.attributes[K]+"'");return C+="/>",C},He}();function Fe(He){if(He instanceof N)return He;throw new Error("Expected symbolNode but got "+String(He)+".")}function ze(He){if(He instanceof h)return He;throw new Error("Expected span<HtmlDomNode> but got "+String(He)+".")}var pt={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],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]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],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:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],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],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],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":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],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:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],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:[0,.44444,0,0,.63889],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:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],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:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],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:[0,.68611,.17208,0,.8961],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:[0,.68611,.17208,0,.8961],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:[0,.69444,.06709,0,.59111],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:[.19444,.44444,.105,0,.53222],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:[.19444,.44444,.105,0,.53222],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],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],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:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],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:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],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:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],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:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],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:[0,.68333,.16389,0,.74333],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:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],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:[0,.68333,.16389,0,.74333],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:[0,.69444,.06646,0,.51111],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:[.19444,.43056,.08847,0,.46],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:[.19444,.43056,.08847,0,.46],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],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],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:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],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:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],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:[0,.43056,0,0,.55556],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:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],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:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],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:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],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:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],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:[0,.69444,0,0,.66759],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:[0,.44444,0,0,.58472],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],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],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:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],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:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{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:[0,.68333,.08125,.05556,.83125],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:[0,.68333,.02778,.08334,.76278],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:[0,.43056,0,.05556,.48472],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],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],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:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],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:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{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:[0,.68333,.08125,.05556,.83125],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:[0,.68333,.02778,.08334,.76278],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:[0,.43056,0,.05556,.48472],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],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],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:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],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:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],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:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],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:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],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],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],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:[0,.69444,.07816,0,.27778],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:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],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:[0,.69444,0,0,.66667],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:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],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:[0,.69444,.0799,0,.5],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],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],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:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],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:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],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],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{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]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],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:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},$e={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],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:[.25,.25,.25],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],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},tt={\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 ct(He,c){pt[He]=c}function Ge(He,c,w){if(!pt[c])throw new Error("Font metrics not found for font: "+c+".");var C=He.charCodeAt(0),K=pt[c][C];if(!K&&He[0]in tt&&(C=tt[He[0]].charCodeAt(0),K=pt[c][C]),!K&&w==="text"&&Je(C)&&(K=pt[c][77]),K)return{depth:K[0],height:K[1],italic:K[2],skew:K[3],width:K[4]}}var Ke={};function Bt(He){var c;if(He>=5?c=0:He>=3?c=1:c=2,!Ke[c]){var w=Ke[c]={cssEmPerMu:$e.quad[c]/18};for(var C in $e)$e.hasOwnProperty(C)&&(w[C]=$e[C][c])}return Ke[c]}var Vt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Mt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},mr={math:{},text:{}},wr=mr;function re(He,c,w,C,K,Be){mr[He][K]={font:c,group:w,replace:C},Be&&C&&(mr[He][C]=mr[He][K])}var ue="math",rr="text",Qe="main",ot="ams",Yr="accent-token",It="bin",zt="close",qt="inner",qe="mathord",At="op-token",dt="open",Gt="punct",Pe="rel",an="spacing",kt="textord";re(ue,Qe,Pe,"\u2261","\\equiv",!0),re(ue,Qe,Pe,"\u227A","\\prec",!0),re(ue,Qe,Pe,"\u227B","\\succ",!0),re(ue,Qe,Pe,"\u223C","\\sim",!0),re(ue,Qe,Pe,"\u22A5","\\perp"),re(ue,Qe,Pe,"\u2AAF","\\preceq",!0),re(ue,Qe,Pe,"\u2AB0","\\succeq",!0),re(ue,Qe,Pe,"\u2243","\\simeq",!0),re(ue,Qe,Pe,"\u2223","\\mid",!0),re(ue,Qe,Pe,"\u226A","\\ll",!0),re(ue,Qe,Pe,"\u226B","\\gg",!0),re(ue,Qe,Pe,"\u224D","\\asymp",!0),re(ue,Qe,Pe,"\u2225","\\parallel"),re(ue,Qe,Pe,"\u22C8","\\bowtie",!0),re(ue,Qe,Pe,"\u2323","\\smile",!0),re(ue,Qe,Pe,"\u2291","\\sqsubseteq",!0),re(ue,Qe,Pe,"\u2292","\\sqsupseteq",!0),re(ue,Qe,Pe,"\u2250","\\doteq",!0),re(ue,Qe,Pe,"\u2322","\\frown",!0),re(ue,Qe,Pe,"\u220B","\\ni",!0),re(ue,Qe,Pe,"\u221D","\\propto",!0),re(ue,Qe,Pe,"\u22A2","\\vdash",!0),re(ue,Qe,Pe,"\u22A3","\\dashv",!0),re(ue,Qe,Pe,"\u220B","\\owns"),re(ue,Qe,Gt,".","\\ldotp"),re(ue,Qe,Gt,"\u22C5","\\cdotp"),re(ue,Qe,kt,"#","\\#"),re(rr,Qe,kt,"#","\\#"),re(ue,Qe,kt,"&","\\&"),re(rr,Qe,kt,"&","\\&"),re(ue,Qe,kt,"\u2135","\\aleph",!0),re(ue,Qe,kt,"\u2200","\\forall",!0),re(ue,Qe,kt,"\u210F","\\hbar",!0),re(ue,Qe,kt,"\u2203","\\exists",!0),re(ue,Qe,kt,"\u2207","\\nabla",!0),re(ue,Qe,kt,"\u266D","\\flat",!0),re(ue,Qe,kt,"\u2113","\\ell",!0),re(ue,Qe,kt,"\u266E","\\natural",!0),re(ue,Qe,kt,"\u2663","\\clubsuit",!0),re(ue,Qe,kt,"\u2118","\\wp",!0),re(ue,Qe,kt,"\u266F","\\sharp",!0),re(ue,Qe,kt,"\u2662","\\diamondsuit",!0),re(ue,Qe,kt,"\u211C","\\Re",!0),re(ue,Qe,kt,"\u2661","\\heartsuit",!0),re(ue,Qe,kt,"\u2111","\\Im",!0),re(ue,Qe,kt,"\u2660","\\spadesuit",!0),re(rr,Qe,kt,"\xA7","\\S",!0),re(rr,Qe,kt,"\xB6","\\P",!0),re(ue,Qe,kt,"\u2020","\\dag"),re(rr,Qe,kt,"\u2020","\\dag"),re(rr,Qe,kt,"\u2020","\\textdagger"),re(ue,Qe,kt,"\u2021","\\ddag"),re(rr,Qe,kt,"\u2021","\\ddag"),re(rr,Qe,kt,"\u2021","\\textdaggerdbl"),re(ue,Qe,zt,"\u23B1","\\rmoustache",!0),re(ue,Qe,dt,"\u23B0","\\lmoustache",!0),re(ue,Qe,zt,"\u27EF","\\rgroup",!0),re(ue,Qe,dt,"\u27EE","\\lgroup",!0),re(ue,Qe,It,"\u2213","\\mp",!0),re(ue,Qe,It,"\u2296","\\ominus",!0),re(ue,Qe,It,"\u228E","\\uplus",!0),re(ue,Qe,It,"\u2293","\\sqcap",!0),re(ue,Qe,It,"\u2217","\\ast"),re(ue,Qe,It,"\u2294","\\sqcup",!0),re(ue,Qe,It,"\u25EF","\\bigcirc"),re(ue,Qe,It,"\u2219","\\bullet"),re(ue,Qe,It,"\u2021","\\ddagger"),re(ue,Qe,It,"\u2240","\\wr",!0),re(ue,Qe,It,"\u2A3F","\\amalg"),re(ue,Qe,It,"&","\\And"),re(ue,Qe,Pe,"\u27F5","\\longleftarrow",!0),re(ue,Qe,Pe,"\u21D0","\\Leftarrow",!0),re(ue,Qe,Pe,"\u27F8","\\Longleftarrow",!0),re(ue,Qe,Pe,"\u27F6","\\longrightarrow",!0),re(ue,Qe,Pe,"\u21D2","\\Rightarrow",!0),re(ue,Qe,Pe,"\u27F9","\\Longrightarrow",!0),re(ue,Qe,Pe,"\u2194","\\leftrightarrow",!0),re(ue,Qe,Pe,"\u27F7","\\longleftrightarrow",!0),re(ue,Qe,Pe,"\u21D4","\\Leftrightarrow",!0),re(ue,Qe,Pe,"\u27FA","\\Longleftrightarrow",!0),re(ue,Qe,Pe,"\u21A6","\\mapsto",!0),re(ue,Qe,Pe,"\u27FC","\\longmapsto",!0),re(ue,Qe,Pe,"\u2197","\\nearrow",!0),re(ue,Qe,Pe,"\u21A9","\\hookleftarrow",!0),re(ue,Qe,Pe,"\u21AA","\\hookrightarrow",!0),re(ue,Qe,Pe,"\u2198","\\searrow",!0),re(ue,Qe,Pe,"\u21BC","\\leftharpoonup",!0),re(ue,Qe,Pe,"\u21C0","\\rightharpoonup",!0),re(ue,Qe,Pe,"\u2199","\\swarrow",!0),re(ue,Qe,Pe,"\u21BD","\\leftharpoondown",!0),re(ue,Qe,Pe,"\u21C1","\\rightharpoondown",!0),re(ue,Qe,Pe,"\u2196","\\nwarrow",!0),re(ue,Qe,Pe,"\u21CC","\\rightleftharpoons",!0),re(ue,ot,Pe,"\u226E","\\nless",!0),re(ue,ot,Pe,"\uE010","\\@nleqslant"),re(ue,ot,Pe,"\uE011","\\@nleqq"),re(ue,ot,Pe,"\u2A87","\\lneq",!0),re(ue,ot,Pe,"\u2268","\\lneqq",!0),re(ue,ot,Pe,"\uE00C","\\@lvertneqq"),re(ue,ot,Pe,"\u22E6","\\lnsim",!0),re(ue,ot,Pe,"\u2A89","\\lnapprox",!0),re(ue,ot,Pe,"\u2280","\\nprec",!0),re(ue,ot,Pe,"\u22E0","\\npreceq",!0),re(ue,ot,Pe,"\u22E8","\\precnsim",!0),re(ue,ot,Pe,"\u2AB9","\\precnapprox",!0),re(ue,ot,Pe,"\u2241","\\nsim",!0),re(ue,ot,Pe,"\uE006","\\@nshortmid"),re(ue,ot,Pe,"\u2224","\\nmid",!0),re(ue,ot,Pe,"\u22AC","\\nvdash",!0),re(ue,ot,Pe,"\u22AD","\\nvDash",!0),re(ue,ot,Pe,"\u22EA","\\ntriangleleft"),re(ue,ot,Pe,"\u22EC","\\ntrianglelefteq",!0),re(ue,ot,Pe,"\u228A","\\subsetneq",!0),re(ue,ot,Pe,"\uE01A","\\@varsubsetneq"),re(ue,ot,Pe,"\u2ACB","\\subsetneqq",!0),re(ue,ot,Pe,"\uE017","\\@varsubsetneqq"),re(ue,ot,Pe,"\u226F","\\ngtr",!0),re(ue,ot,Pe,"\uE00F","\\@ngeqslant"),re(ue,ot,Pe,"\uE00E","\\@ngeqq"),re(ue,ot,Pe,"\u2A88","\\gneq",!0),re(ue,ot,Pe,"\u2269","\\gneqq",!0),re(ue,ot,Pe,"\uE00D","\\@gvertneqq"),re(ue,ot,Pe,"\u22E7","\\gnsim",!0),re(ue,ot,Pe,"\u2A8A","\\gnapprox",!0),re(ue,ot,Pe,"\u2281","\\nsucc",!0),re(ue,ot,Pe,"\u22E1","\\nsucceq",!0),re(ue,ot,Pe,"\u22E9","\\succnsim",!0),re(ue,ot,Pe,"\u2ABA","\\succnapprox",!0),re(ue,ot,Pe,"\u2246","\\ncong",!0),re(ue,ot,Pe,"\uE007","\\@nshortparallel"),re(ue,ot,Pe,"\u2226","\\nparallel",!0),re(ue,ot,Pe,"\u22AF","\\nVDash",!0),re(ue,ot,Pe,"\u22EB","\\ntriangleright"),re(ue,ot,Pe,"\u22ED","\\ntrianglerighteq",!0),re(ue,ot,Pe,"\uE018","\\@nsupseteqq"),re(ue,ot,Pe,"\u228B","\\supsetneq",!0),re(ue,ot,Pe,"\uE01B","\\@varsupsetneq"),re(ue,ot,Pe,"\u2ACC","\\supsetneqq",!0),re(ue,ot,Pe,"\uE019","\\@varsupsetneqq"),re(ue,ot,Pe,"\u22AE","\\nVdash",!0),re(ue,ot,Pe,"\u2AB5","\\precneqq",!0),re(ue,ot,Pe,"\u2AB6","\\succneqq",!0),re(ue,ot,Pe,"\uE016","\\@nsubseteqq"),re(ue,ot,It,"\u22B4","\\unlhd"),re(ue,ot,It,"\u22B5","\\unrhd"),re(ue,ot,Pe,"\u219A","\\nleftarrow",!0),re(ue,ot,Pe,"\u219B","\\nrightarrow",!0),re(ue,ot,Pe,"\u21CD","\\nLeftarrow",!0),re(ue,ot,Pe,"\u21CF","\\nRightarrow",!0),re(ue,ot,Pe,"\u21AE","\\nleftrightarrow",!0),re(ue,ot,Pe,"\u21CE","\\nLeftrightarrow",!0),re(ue,ot,Pe,"\u25B3","\\vartriangle"),re(ue,ot,kt,"\u210F","\\hslash"),re(ue,ot,kt,"\u25BD","\\triangledown"),re(ue,ot,kt,"\u25CA","\\lozenge"),re(ue,ot,kt,"\u24C8","\\circledS"),re(ue,ot,kt,"\xAE","\\circledR"),re(rr,ot,kt,"\xAE","\\circledR"),re(ue,ot,kt,"\u2221","\\measuredangle",!0),re(ue,ot,kt,"\u2204","\\nexists"),re(ue,ot,kt,"\u2127","\\mho"),re(ue,ot,kt,"\u2132","\\Finv",!0),re(ue,ot,kt,"\u2141","\\Game",!0),re(ue,ot,kt,"\u2035","\\backprime"),re(ue,ot,kt,"\u25B2","\\blacktriangle"),re(ue,ot,kt,"\u25BC","\\blacktriangledown"),re(ue,ot,kt,"\u25A0","\\blacksquare"),re(ue,ot,kt,"\u29EB","\\blacklozenge"),re(ue,ot,kt,"\u2605","\\bigstar"),re(ue,ot,kt,"\u2222","\\sphericalangle",!0),re(ue,ot,kt,"\u2201","\\complement",!0),re(ue,ot,kt,"\xF0","\\eth",!0),re(ue,ot,kt,"\u2571","\\diagup"),re(ue,ot,kt,"\u2572","\\diagdown"),re(ue,ot,kt,"\u25A1","\\square"),re(ue,ot,kt,"\u25A1","\\Box"),re(ue,ot,kt,"\u25CA","\\Diamond"),re(ue,ot,kt,"\xA5","\\yen",!0),re(rr,ot,kt,"\xA5","\\yen",!0),re(ue,ot,kt,"\u2713","\\checkmark",!0),re(rr,ot,kt,"\u2713","\\checkmark"),re(ue,ot,kt,"\u2136","\\beth",!0),re(ue,ot,kt,"\u2138","\\daleth",!0),re(ue,ot,kt,"\u2137","\\gimel",!0),re(ue,ot,kt,"\u03DD","\\digamma",!0),re(ue,ot,kt,"\u03F0","\\varkappa"),re(ue,ot,dt,"\u250C","\\ulcorner",!0),re(ue,ot,zt,"\u2510","\\urcorner",!0),re(ue,ot,dt,"\u2514","\\llcorner",!0),re(ue,ot,zt,"\u2518","\\lrcorner",!0),re(ue,ot,Pe,"\u2266","\\leqq",!0),re(ue,ot,Pe,"\u2A7D","\\leqslant",!0),re(ue,ot,Pe,"\u2A95","\\eqslantless",!0),re(ue,ot,Pe,"\u2272","\\lesssim",!0),re(ue,ot,Pe,"\u2A85","\\lessapprox",!0),re(ue,ot,Pe,"\u224A","\\approxeq",!0),re(ue,ot,It,"\u22D6","\\lessdot"),re(ue,ot,Pe,"\u22D8","\\lll",!0),re(ue,ot,Pe,"\u2276","\\lessgtr",!0),re(ue,ot,Pe,"\u22DA","\\lesseqgtr",!0),re(ue,ot,Pe,"\u2A8B","\\lesseqqgtr",!0),re(ue,ot,Pe,"\u2251","\\doteqdot"),re(ue,ot,Pe,"\u2253","\\risingdotseq",!0),re(ue,ot,Pe,"\u2252","\\fallingdotseq",!0),re(ue,ot,Pe,"\u223D","\\backsim",!0),re(ue,ot,Pe,"\u22CD","\\backsimeq",!0),re(ue,ot,Pe,"\u2AC5","\\subseteqq",!0),re(ue,ot,Pe,"\u22D0","\\Subset",!0),re(ue,ot,Pe,"\u228F","\\sqsubset",!0),re(ue,ot,Pe,"\u227C","\\preccurlyeq",!0),re(ue,ot,Pe,"\u22DE","\\curlyeqprec",!0),re(ue,ot,Pe,"\u227E","\\precsim",!0),re(ue,ot,Pe,"\u2AB7","\\precapprox",!0),re(ue,ot,Pe,"\u22B2","\\vartriangleleft"),re(ue,ot,Pe,"\u22B4","\\trianglelefteq"),re(ue,ot,Pe,"\u22A8","\\vDash",!0),re(ue,ot,Pe,"\u22AA","\\Vvdash",!0),re(ue,ot,Pe,"\u2323","\\smallsmile"),re(ue,ot,Pe,"\u2322","\\smallfrown"),re(ue,ot,Pe,"\u224F","\\bumpeq",!0),re(ue,ot,Pe,"\u224E","\\Bumpeq",!0),re(ue,ot,Pe,"\u2267","\\geqq",!0),re(ue,ot,Pe,"\u2A7E","\\geqslant",!0),re(ue,ot,Pe,"\u2A96","\\eqslantgtr",!0),re(ue,ot,Pe,"\u2273","\\gtrsim",!0),re(ue,ot,Pe,"\u2A86","\\gtrapprox",!0),re(ue,ot,It,"\u22D7","\\gtrdot"),re(ue,ot,Pe,"\u22D9","\\ggg",!0),re(ue,ot,Pe,"\u2277","\\gtrless",!0),re(ue,ot,Pe,"\u22DB","\\gtreqless",!0),re(ue,ot,Pe,"\u2A8C","\\gtreqqless",!0),re(ue,ot,Pe,"\u2256","\\eqcirc",!0),re(ue,ot,Pe,"\u2257","\\circeq",!0),re(ue,ot,Pe,"\u225C","\\triangleq",!0),re(ue,ot,Pe,"\u223C","\\thicksim"),re(ue,ot,Pe,"\u2248","\\thickapprox"),re(ue,ot,Pe,"\u2AC6","\\supseteqq",!0),re(ue,ot,Pe,"\u22D1","\\Supset",!0),re(ue,ot,Pe,"\u2290","\\sqsupset",!0),re(ue,ot,Pe,"\u227D","\\succcurlyeq",!0),re(ue,ot,Pe,"\u22DF","\\curlyeqsucc",!0),re(ue,ot,Pe,"\u227F","\\succsim",!0),re(ue,ot,Pe,"\u2AB8","\\succapprox",!0),re(ue,ot,Pe,"\u22B3","\\vartriangleright"),re(ue,ot,Pe,"\u22B5","\\trianglerighteq"),re(ue,ot,Pe,"\u22A9","\\Vdash",!0),re(ue,ot,Pe,"\u2223","\\shortmid"),re(ue,ot,Pe,"\u2225","\\shortparallel"),re(ue,ot,Pe,"\u226C","\\between",!0),re(ue,ot,Pe,"\u22D4","\\pitchfork",!0),re(ue,ot,Pe,"\u221D","\\varpropto"),re(ue,ot,Pe,"\u25C0","\\blacktriangleleft"),re(ue,ot,Pe,"\u2234","\\therefore",!0),re(ue,ot,Pe,"\u220D","\\backepsilon"),re(ue,ot,Pe,"\u25B6","\\blacktriangleright"),re(ue,ot,Pe,"\u2235","\\because",!0),re(ue,ot,Pe,"\u22D8","\\llless"),re(ue,ot,Pe,"\u22D9","\\gggtr"),re(ue,ot,It,"\u22B2","\\lhd"),re(ue,ot,It,"\u22B3","\\rhd"),re(ue,ot,Pe,"\u2242","\\eqsim",!0),re(ue,Qe,Pe,"\u22C8","\\Join"),re(ue,ot,Pe,"\u2251","\\Doteq",!0),re(ue,ot,It,"\u2214","\\dotplus",!0),re(ue,ot,It,"\u2216","\\smallsetminus"),re(ue,ot,It,"\u22D2","\\Cap",!0),re(ue,ot,It,"\u22D3","\\Cup",!0),re(ue,ot,It,"\u2A5E","\\doublebarwedge",!0),re(ue,ot,It,"\u229F","\\boxminus",!0),re(ue,ot,It,"\u229E","\\boxplus",!0),re(ue,ot,It,"\u22C7","\\divideontimes",!0),re(ue,ot,It,"\u22C9","\\ltimes",!0),re(ue,ot,It,"\u22CA","\\rtimes",!0),re(ue,ot,It,"\u22CB","\\leftthreetimes",!0),re(ue,ot,It,"\u22CC","\\rightthreetimes",!0),re(ue,ot,It,"\u22CF","\\curlywedge",!0),re(ue,ot,It,"\u22CE","\\curlyvee",!0),re(ue,ot,It,"\u229D","\\circleddash",!0),re(ue,ot,It,"\u229B","\\circledast",!0),re(ue,ot,It,"\u22C5","\\centerdot"),re(ue,ot,It,"\u22BA","\\intercal",!0),re(ue,ot,It,"\u22D2","\\doublecap"),re(ue,ot,It,"\u22D3","\\doublecup"),re(ue,ot,It,"\u22A0","\\boxtimes",!0),re(ue,ot,Pe,"\u21E2","\\dashrightarrow",!0),re(ue,ot,Pe,"\u21E0","\\dashleftarrow",!0),re(ue,ot,Pe,"\u21C7","\\leftleftarrows",!0),re(ue,ot,Pe,"\u21C6","\\leftrightarrows",!0),re(ue,ot,Pe,"\u21DA","\\Lleftarrow",!0),re(ue,ot,Pe,"\u219E","\\twoheadleftarrow",!0),re(ue,ot,Pe,"\u21A2","\\leftarrowtail",!0),re(ue,ot,Pe,"\u21AB","\\looparrowleft",!0),re(ue,ot,Pe,"\u21CB","\\leftrightharpoons",!0),re(ue,ot,Pe,"\u21B6","\\curvearrowleft",!0),re(ue,ot,Pe,"\u21BA","\\circlearrowleft",!0),re(ue,ot,Pe,"\u21B0","\\Lsh",!0),re(ue,ot,Pe,"\u21C8","\\upuparrows",!0),re(ue,ot,Pe,"\u21BF","\\upharpoonleft",!0),re(ue,ot,Pe,"\u21C3","\\downharpoonleft",!0),re(ue,ot,Pe,"\u22B8","\\multimap",!0),re(ue,ot,Pe,"\u21AD","\\leftrightsquigarrow",!0),re(ue,ot,Pe,"\u21C9","\\rightrightarrows",!0),re(ue,ot,Pe,"\u21C4","\\rightleftarrows",!0),re(ue,ot,Pe,"\u21A0","\\twoheadrightarrow",!0),re(ue,ot,Pe,"\u21A3","\\rightarrowtail",!0),re(ue,ot,Pe,"\u21AC","\\looparrowright",!0),re(ue,ot,Pe,"\u21B7","\\curvearrowright",!0),re(ue,ot,Pe,"\u21BB","\\circlearrowright",!0),re(ue,ot,Pe,"\u21B1","\\Rsh",!0),re(ue,ot,Pe,"\u21CA","\\downdownarrows",!0),re(ue,ot,Pe,"\u21BE","\\upharpoonright",!0),re(ue,ot,Pe,"\u21C2","\\downharpoonright",!0),re(ue,ot,Pe,"\u21DD","\\rightsquigarrow",!0),re(ue,ot,Pe,"\u21DD","\\leadsto"),re(ue,ot,Pe,"\u21DB","\\Rrightarrow",!0),re(ue,ot,Pe,"\u21BE","\\restriction"),re(ue,Qe,kt,"\u2018","`"),re(ue,Qe,kt,"$","\\$"),re(rr,Qe,kt,"$","\\$"),re(rr,Qe,kt,"$","\\textdollar"),re(ue,Qe,kt,"%","\\%"),re(rr,Qe,kt,"%","\\%"),re(ue,Qe,kt,"_","\\_"),re(rr,Qe,kt,"_","\\_"),re(rr,Qe,kt,"_","\\textunderscore"),re(ue,Qe,kt,"\u2220","\\angle",!0),re(ue,Qe,kt,"\u221E","\\infty",!0),re(ue,Qe,kt,"\u2032","\\prime"),re(ue,Qe,kt,"\u25B3","\\triangle"),re(ue,Qe,kt,"\u0393","\\Gamma",!0),re(ue,Qe,kt,"\u0394","\\Delta",!0),re(ue,Qe,kt,"\u0398","\\Theta",!0),re(ue,Qe,kt,"\u039B","\\Lambda",!0),re(ue,Qe,kt,"\u039E","\\Xi",!0),re(ue,Qe,kt,"\u03A0","\\Pi",!0),re(ue,Qe,kt,"\u03A3","\\Sigma",!0),re(ue,Qe,kt,"\u03A5","\\Upsilon",!0),re(ue,Qe,kt,"\u03A6","\\Phi",!0),re(ue,Qe,kt,"\u03A8","\\Psi",!0),re(ue,Qe,kt,"\u03A9","\\Omega",!0),re(ue,Qe,kt,"A","\u0391"),re(ue,Qe,kt,"B","\u0392"),re(ue,Qe,kt,"E","\u0395"),re(ue,Qe,kt,"Z","\u0396"),re(ue,Qe,kt,"H","\u0397"),re(ue,Qe,kt,"I","\u0399"),re(ue,Qe,kt,"K","\u039A"),re(ue,Qe,kt,"M","\u039C"),re(ue,Qe,kt,"N","\u039D"),re(ue,Qe,kt,"O","\u039F"),re(ue,Qe,kt,"P","\u03A1"),re(ue,Qe,kt,"T","\u03A4"),re(ue,Qe,kt,"X","\u03A7"),re(ue,Qe,kt,"\xAC","\\neg",!0),re(ue,Qe,kt,"\xAC","\\lnot"),re(ue,Qe,kt,"\u22A4","\\top"),re(ue,Qe,kt,"\u22A5","\\bot"),re(ue,Qe,kt,"\u2205","\\emptyset"),re(ue,ot,kt,"\u2205","\\varnothing"),re(ue,Qe,qe,"\u03B1","\\alpha",!0),re(ue,Qe,qe,"\u03B2","\\beta",!0),re(ue,Qe,qe,"\u03B3","\\gamma",!0),re(ue,Qe,qe,"\u03B4","\\delta",!0),re(ue,Qe,qe,"\u03F5","\\epsilon",!0),re(ue,Qe,qe,"\u03B6","\\zeta",!0),re(ue,Qe,qe,"\u03B7","\\eta",!0),re(ue,Qe,qe,"\u03B8","\\theta",!0),re(ue,Qe,qe,"\u03B9","\\iota",!0),re(ue,Qe,qe,"\u03BA","\\kappa",!0),re(ue,Qe,qe,"\u03BB","\\lambda",!0),re(ue,Qe,qe,"\u03BC","\\mu",!0),re(ue,Qe,qe,"\u03BD","\\nu",!0),re(ue,Qe,qe,"\u03BE","\\xi",!0),re(ue,Qe,qe,"\u03BF","\\omicron",!0),re(ue,Qe,qe,"\u03C0","\\pi",!0),re(ue,Qe,qe,"\u03C1","\\rho",!0),re(ue,Qe,qe,"\u03C3","\\sigma",!0),re(ue,Qe,qe,"\u03C4","\\tau",!0),re(ue,Qe,qe,"\u03C5","\\upsilon",!0),re(ue,Qe,qe,"\u03D5","\\phi",!0),re(ue,Qe,qe,"\u03C7","\\chi",!0),re(ue,Qe,qe,"\u03C8","\\psi",!0),re(ue,Qe,qe,"\u03C9","\\omega",!0),re(ue,Qe,qe,"\u03B5","\\varepsilon",!0),re(ue,Qe,qe,"\u03D1","\\vartheta",!0),re(ue,Qe,qe,"\u03D6","\\varpi",!0),re(ue,Qe,qe,"\u03F1","\\varrho",!0),re(ue,Qe,qe,"\u03C2","\\varsigma",!0),re(ue,Qe,qe,"\u03C6","\\varphi",!0),re(ue,Qe,It,"\u2217","*"),re(ue,Qe,It,"+","+"),re(ue,Qe,It,"\u2212","-"),re(ue,Qe,It,"\u22C5","\\cdot",!0),re(ue,Qe,It,"\u2218","\\circ"),re(ue,Qe,It,"\xF7","\\div",!0),re(ue,Qe,It,"\xB1","\\pm",!0),re(ue,Qe,It,"\xD7","\\times",!0),re(ue,Qe,It,"\u2229","\\cap",!0),re(ue,Qe,It,"\u222A","\\cup",!0),re(ue,Qe,It,"\u2216","\\setminus"),re(ue,Qe,It,"\u2227","\\land"),re(ue,Qe,It,"\u2228","\\lor"),re(ue,Qe,It,"\u2227","\\wedge",!0),re(ue,Qe,It,"\u2228","\\vee",!0),re(ue,Qe,kt,"\u221A","\\surd"),re(ue,Qe,dt,"(","("),re(ue,Qe,dt,"[","["),re(ue,Qe,dt,"\u27E8","\\langle",!0),re(ue,Qe,dt,"\u2223","\\lvert"),re(ue,Qe,dt,"\u2225","\\lVert"),re(ue,Qe,zt,")",")"),re(ue,Qe,zt,"]","]"),re(ue,Qe,zt,"?","?"),re(ue,Qe,zt,"!","!"),re(ue,Qe,zt,"\u27E9","\\rangle",!0),re(ue,Qe,zt,"\u2223","\\rvert"),re(ue,Qe,zt,"\u2225","\\rVert"),re(ue,Qe,Pe,"=","="),re(ue,Qe,Pe,"<","<"),re(ue,Qe,Pe,">",">"),re(ue,Qe,Pe,":",":"),re(ue,Qe,Pe,"\u2248","\\approx",!0),re(ue,Qe,Pe,"\u2245","\\cong",!0),re(ue,Qe,Pe,"\u2265","\\ge"),re(ue,Qe,Pe,"\u2265","\\geq",!0),re(ue,Qe,Pe,"\u2190","\\gets"),re(ue,Qe,Pe,">","\\gt"),re(ue,Qe,Pe,"\u2208","\\in",!0),re(ue,Qe,Pe,"\uE020","\\@not"),re(ue,Qe,Pe,"\u2282","\\subset",!0),re(ue,Qe,Pe,"\u2283","\\supset",!0),re(ue,Qe,Pe,"\u2286","\\subseteq",!0),re(ue,Qe,Pe,"\u2287","\\supseteq",!0),re(ue,ot,Pe,"\u2288","\\nsubseteq",!0),re(ue,ot,Pe,"\u2289","\\nsupseteq",!0),re(ue,Qe,Pe,"\u22A8","\\models"),re(ue,Qe,Pe,"\u2190","\\leftarrow",!0),re(ue,Qe,Pe,"\u2264","\\le"),re(ue,Qe,Pe,"\u2264","\\leq",!0),re(ue,Qe,Pe,"<","\\lt"),re(ue,Qe,Pe,"\u2192","\\rightarrow",!0),re(ue,Qe,Pe,"\u2192","\\to"),re(ue,ot,Pe,"\u2271","\\ngeq",!0),re(ue,ot,Pe,"\u2270","\\nleq",!0),re(ue,Qe,an,"\xA0","\\ "),re(ue,Qe,an,"\xA0","~"),re(ue,Qe,an,"\xA0","\\space"),re(ue,Qe,an,"\xA0","\\nobreakspace"),re(rr,Qe,an,"\xA0","\\ "),re(rr,Qe,an,"\xA0","~"),re(rr,Qe,an,"\xA0","\\space"),re(rr,Qe,an,"\xA0","\\nobreakspace"),re(ue,Qe,an,null,"\\nobreak"),re(ue,Qe,an,null,"\\allowbreak"),re(ue,Qe,Gt,",",","),re(ue,Qe,Gt,";",";"),re(ue,ot,It,"\u22BC","\\barwedge",!0),re(ue,ot,It,"\u22BB","\\veebar",!0),re(ue,Qe,It,"\u2299","\\odot",!0),re(ue,Qe,It,"\u2295","\\oplus",!0),re(ue,Qe,It,"\u2297","\\otimes",!0),re(ue,Qe,kt,"\u2202","\\partial",!0),re(ue,Qe,It,"\u2298","\\oslash",!0),re(ue,ot,It,"\u229A","\\circledcirc",!0),re(ue,ot,It,"\u22A1","\\boxdot",!0),re(ue,Qe,It,"\u25B3","\\bigtriangleup"),re(ue,Qe,It,"\u25BD","\\bigtriangledown"),re(ue,Qe,It,"\u2020","\\dagger"),re(ue,Qe,It,"\u22C4","\\diamond"),re(ue,Qe,It,"\u22C6","\\star"),re(ue,Qe,It,"\u25C3","\\triangleleft"),re(ue,Qe,It,"\u25B9","\\triangleright"),re(ue,Qe,dt,"{","\\{"),re(rr,Qe,kt,"{","\\{"),re(rr,Qe,kt,"{","\\textbraceleft"),re(ue,Qe,zt,"}","\\}"),re(rr,Qe,kt,"}","\\}"),re(rr,Qe,kt,"}","\\textbraceright"),re(ue,Qe,dt,"{","\\lbrace"),re(ue,Qe,zt,"}","\\rbrace"),re(ue,Qe,dt,"[","\\lbrack"),re(rr,Qe,kt,"[","\\lbrack"),re(ue,Qe,zt,"]","\\rbrack"),re(rr,Qe,kt,"]","\\rbrack"),re(ue,Qe,dt,"(","\\lparen"),re(ue,Qe,zt,")","\\rparen"),re(rr,Qe,kt,"<","\\textless"),re(rr,Qe,kt,">","\\textgreater"),re(ue,Qe,dt,"\u230A","\\lfloor",!0),re(ue,Qe,zt,"\u230B","\\rfloor",!0),re(ue,Qe,dt,"\u2308","\\lceil",!0),re(ue,Qe,zt,"\u2309","\\rceil",!0),re(ue,Qe,kt,"\\","\\backslash"),re(ue,Qe,kt,"\u2223","|"),re(ue,Qe,kt,"\u2223","\\vert"),re(rr,Qe,kt,"|","\\textbar"),re(ue,Qe,kt,"\u2225","\\|"),re(ue,Qe,kt,"\u2225","\\Vert"),re(rr,Qe,kt,"\u2225","\\textbardbl"),re(rr,Qe,kt,"~","\\textasciitilde"),re(rr,Qe,kt,"\\","\\textbackslash"),re(rr,Qe,kt,"^","\\textasciicircum"),re(ue,Qe,Pe,"\u2191","\\uparrow",!0),re(ue,Qe,Pe,"\u21D1","\\Uparrow",!0),re(ue,Qe,Pe,"\u2193","\\downarrow",!0),re(ue,Qe,Pe,"\u21D3","\\Downarrow",!0),re(ue,Qe,Pe,"\u2195","\\updownarrow",!0),re(ue,Qe,Pe,"\u21D5","\\Updownarrow",!0),re(ue,Qe,At,"\u2210","\\coprod"),re(ue,Qe,At,"\u22C1","\\bigvee"),re(ue,Qe,At,"\u22C0","\\bigwedge"),re(ue,Qe,At,"\u2A04","\\biguplus"),re(ue,Qe,At,"\u22C2","\\bigcap"),re(ue,Qe,At,"\u22C3","\\bigcup"),re(ue,Qe,At,"\u222B","\\int"),re(ue,Qe,At,"\u222B","\\intop"),re(ue,Qe,At,"\u222C","\\iint"),re(ue,Qe,At,"\u222D","\\iiint"),re(ue,Qe,At,"\u220F","\\prod"),re(ue,Qe,At,"\u2211","\\sum"),re(ue,Qe,At,"\u2A02","\\bigotimes"),re(ue,Qe,At,"\u2A01","\\bigoplus"),re(ue,Qe,At,"\u2A00","\\bigodot"),re(ue,Qe,At,"\u222E","\\oint"),re(ue,Qe,At,"\u222F","\\oiint"),re(ue,Qe,At,"\u2230","\\oiiint"),re(ue,Qe,At,"\u2A06","\\bigsqcup"),re(ue,Qe,At,"\u222B","\\smallint"),re(rr,Qe,qt,"\u2026","\\textellipsis"),re(ue,Qe,qt,"\u2026","\\mathellipsis"),re(rr,Qe,qt,"\u2026","\\ldots",!0),re(ue,Qe,qt,"\u2026","\\ldots",!0),re(ue,Qe,qt,"\u22EF","\\@cdots",!0),re(ue,Qe,qt,"\u22F1","\\ddots",!0),re(ue,Qe,kt,"\u22EE","\\varvdots"),re(ue,Qe,Yr,"\u02CA","\\acute"),re(ue,Qe,Yr,"\u02CB","\\grave"),re(ue,Qe,Yr,"\xA8","\\ddot"),re(ue,Qe,Yr,"~","\\tilde"),re(ue,Qe,Yr,"\u02C9","\\bar"),re(ue,Qe,Yr,"\u02D8","\\breve"),re(ue,Qe,Yr,"\u02C7","\\check"),re(ue,Qe,Yr,"^","\\hat"),re(ue,Qe,Yr,"\u20D7","\\vec"),re(ue,Qe,Yr,"\u02D9","\\dot"),re(ue,Qe,Yr,"\u02DA","\\mathring"),re(ue,Qe,qe,"\u0131","\\imath",!0),re(ue,Qe,qe,"\u0237","\\jmath",!0),re(rr,Qe,kt,"\u0131","\\i",!0),re(rr,Qe,kt,"\u0237","\\j",!0),re(rr,Qe,kt,"\xDF","\\ss",!0),re(rr,Qe,kt,"\xE6","\\ae",!0),re(rr,Qe,kt,"\xE6","\\ae",!0),re(rr,Qe,kt,"\u0153","\\oe",!0),re(rr,Qe,kt,"\xF8","\\o",!0),re(rr,Qe,kt,"\xC6","\\AE",!0),re(rr,Qe,kt,"\u0152","\\OE",!0),re(rr,Qe,kt,"\xD8","\\O",!0),re(rr,Qe,Yr,"\u02CA","\\'"),re(rr,Qe,Yr,"\u02CB","\\`"),re(rr,Qe,Yr,"\u02C6","\\^"),re(rr,Qe,Yr,"\u02DC","\\~"),re(rr,Qe,Yr,"\u02C9","\\="),re(rr,Qe,Yr,"\u02D8","\\u"),re(rr,Qe,Yr,"\u02D9","\\."),re(rr,Qe,Yr,"\u02DA","\\r"),re(rr,Qe,Yr,"\u02C7","\\v"),re(rr,Qe,Yr,"\xA8",'\\"'),re(rr,Qe,Yr,"\u02DD","\\H"),re(rr,Qe,Yr,"\u25EF","\\textcircled");var kn={"--":!0,"---":!0,"``":!0,"''":!0};re(rr,Qe,kt,"\u2013","--"),re(rr,Qe,kt,"\u2013","\\textendash"),re(rr,Qe,kt,"\u2014","---"),re(rr,Qe,kt,"\u2014","\\textemdash"),re(rr,Qe,kt,"\u2018","`"),re(rr,Qe,kt,"\u2018","\\textquoteleft"),re(rr,Qe,kt,"\u2019","'"),re(rr,Qe,kt,"\u2019","\\textquoteright"),re(rr,Qe,kt,"\u201C","``"),re(rr,Qe,kt,"\u201C","\\textquotedblleft"),re(rr,Qe,kt,"\u201D","''"),re(rr,Qe,kt,"\u201D","\\textquotedblright"),re(ue,Qe,kt,"\xB0","\\degree",!0),re(rr,Qe,kt,"\xB0","\\degree"),re(rr,Qe,kt,"\xB0","\\textdegree",!0),re(ue,Qe,qe,"\xA3","\\pounds"),re(ue,Qe,qe,"\xA3","\\mathsterling",!0),re(rr,Qe,qe,"\xA3","\\pounds"),re(rr,Qe,qe,"\xA3","\\textsterling",!0),re(ue,ot,kt,"\u2720","\\maltese"),re(rr,ot,kt,"\u2720","\\maltese"),re(rr,Qe,an,"\xA0","\\ "),re(rr,Qe,an,"\xA0"," "),re(rr,Qe,an,"\xA0","~");for(var Xn='0123456789/@."',yi=0;yi<Xn.length;yi++){var ji=Xn.charAt(yi);re(ue,Qe,kt,ji,ji)}for(var On='0123456789!@*()-=+[]<>|";:?/.,',$n=0;$n<On.length;$n++){var Yt=On.charAt($n);re(rr,Qe,kt,Yt,Yt)}for(var jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Jr=0;Jr<jr.length;Jr++){var Ot=jr.charAt(Jr);re(ue,Qe,qe,Ot,Ot),re(rr,Qe,kt,Ot,Ot)}re(ue,ot,kt,"C","\u2102"),re(rr,ot,kt,"C","\u2102"),re(ue,ot,kt,"H","\u210D"),re(rr,ot,kt,"H","\u210D"),re(ue,ot,kt,"N","\u2115"),re(rr,ot,kt,"N","\u2115"),re(ue,ot,kt,"P","\u2119"),re(rr,ot,kt,"P","\u2119"),re(ue,ot,kt,"Q","\u211A"),re(rr,ot,kt,"Q","\u211A"),re(ue,ot,kt,"R","\u211D"),re(rr,ot,kt,"R","\u211D"),re(ue,ot,kt,"Z","\u2124"),re(rr,ot,kt,"Z","\u2124"),re(ue,Qe,qe,"h","\u210E"),re(rr,Qe,qe,"h","\u210E");for(var _t="",Br=0;Br<jr.length;Br++){var Lr=jr.charAt(Br);_t=String.fromCharCode(55349,56320+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56372+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56424+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56580+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56736+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56788+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56840+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56944+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),Br<26&&(_t=String.fromCharCode(55349,56632+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t),_t=String.fromCharCode(55349,56476+Br),re(ue,Qe,qe,Lr,_t),re(rr,Qe,kt,Lr,_t))}_t="\u{1D55C}",re(ue,Qe,qe,"k",_t),re(rr,Qe,kt,"k",_t);for(var In=0;In<10;In++){var tn=In.toString();_t=String.fromCharCode(55349,57294+In),re(ue,Qe,qe,tn,_t),re(rr,Qe,kt,tn,_t),_t=String.fromCharCode(55349,57314+In),re(ue,Qe,qe,tn,_t),re(rr,Qe,kt,tn,_t),_t=String.fromCharCode(55349,57324+In),re(ue,Qe,qe,tn,_t),re(rr,Qe,kt,tn,_t),_t=String.fromCharCode(55349,57334+In),re(ue,Qe,qe,tn,_t),re(rr,Qe,kt,tn,_t)}for(var Bn="\xC7\xD0\xDE\xE7\xFE",gn=0;gn<Bn.length;gn++){var Qn=Bn.charAt(gn);re(ue,Qe,qe,Qn,Qn),re(rr,Qe,kt,Qn,Qn)}re(rr,Qe,kt,"\xF0","\xF0"),re(rr,Qe,kt,"\u2013","\u2013"),re(rr,Qe,kt,"\u2014","\u2014"),re(rr,Qe,kt,"\u2018","\u2018"),re(rr,Qe,kt,"\u2019","\u2019"),re(rr,Qe,kt,"\u201C","\u201C"),re(rr,Qe,kt,"\u201D","\u201D");var ei=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Hr=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],zr=function(c,w){var C=c.charCodeAt(0),K=c.charCodeAt(1),Be=(C-55296)*1024+(K-56320)+65536,je=w==="math"?0:1;if(119808<=Be&&Be<120484){var xt=Math.floor((Be-119808)/26);return[ei[xt][2],ei[xt][je]]}else if(120782<=Be&&Be<=120831){var bt=Math.floor((Be-120782)/10);return[Hr[bt][2],Hr[bt][je]]}else{if(Be===120485||Be===120486)return[ei[0][2],ei[0][je]];if(120486<Be&&Be<120782)return["",""];throw new Y("Unsupported character: "+c)}},Tn=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Sn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],jn=function(c,w){return w.size<2?c:Tn[c-1][w.size-1]},Vn=function(){function He(w){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=w.style,this.color=w.color,this.size=w.size||He.BASESIZE,this.textSize=w.textSize||this.size,this.phantom=!!w.phantom,this.font=w.font||"",this.fontFamily=w.fontFamily||"",this.fontWeight=w.fontWeight||"",this.fontShape=w.fontShape||"",this.sizeMultiplier=Sn[this.size-1],this.maxSize=w.maxSize,this.minRuleThickness=w.minRuleThickness,this._fontMetrics=void 0}var c=He.prototype;return c.extend=function(C){var K={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var Be in C)C.hasOwnProperty(Be)&&(K[Be]=C[Be]);return new He(K)},c.havingStyle=function(C){return this.style===C?this:this.extend({style:C,size:jn(this.textSize,C)})},c.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},c.havingSize=function(C){return this.size===C&&this.textSize===C?this:this.extend({style:this.style.text(),size:C,textSize:C,sizeMultiplier:Sn[C-1]})},c.havingBaseStyle=function(C){C=C||this.style.text();var K=jn(He.BASESIZE,C);return this.size===K&&this.textSize===He.BASESIZE&&this.style===C?this:this.extend({style:C,size:K})},c.havingBaseSizing=function(){var C;switch(this.style.id){case 4:case 5:C=3;break;case 6:case 7:C=1;break;default:C=6}return this.extend({style:this.style.text(),size:C})},c.withColor=function(C){return this.extend({color:C})},c.withPhantom=function(){return this.extend({phantom:!0})},c.withFont=function(C){return this.extend({font:C})},c.withTextFontFamily=function(C){return this.extend({fontFamily:C,font:""})},c.withTextFontWeight=function(C){return this.extend({fontWeight:C,font:""})},c.withTextFontShape=function(C){return this.extend({fontShape:C,font:""})},c.sizingClasses=function(C){return C.size!==this.size?["sizing","reset-size"+C.size,"size"+this.size]:[]},c.baseSizingClasses=function(){return this.size!==He.BASESIZE?["sizing","reset-size"+this.size,"size"+He.BASESIZE]:[]},c.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Bt(this.size)),this._fontMetrics},c.getColor=function(){return this.phantom?"transparent":this.color},He}();Vn.BASESIZE=6;var Mi=Vn,Ai={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},wn={ex:!0,em:!0,mu:!0},hr=function(c){return typeof c!="string"&&(c=c.unit),c in Ai||c in wn||c==="ex"},br=function(c,w){var C;if(c.unit in Ai)C=Ai[c.unit]/w.fontMetrics().ptPerEm/w.sizeMultiplier;else if(c.unit==="mu")C=w.fontMetrics().cssEmPerMu;else{var K;if(w.style.isTight()?K=w.havingStyle(w.style.text()):K=w,c.unit==="ex")C=K.fontMetrics().xHeight;else if(c.unit==="em")C=K.fontMetrics().quad;else throw new Y("Invalid unit: '"+c.unit+"'");K!==w&&(C*=K.sizeMultiplier/w.sizeMultiplier)}return Math.min(c.number*C,w.maxSize)},Fr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Zr=function(c,w,C){return wr[C][c]&&wr[C][c].replace&&(c=wr[C][c].replace),{value:c,metrics:Ge(c,w,C)}},Ur=function(c,w,C,K,Be){var je=Zr(c,w,C),xt=je.metrics;c=je.value;var bt;if(xt){var Xt=xt.italic;(C==="text"||K&&K.font==="mathit")&&(Xt=0),bt=new N(c,xt.height,xt.depth,Xt,xt.skew,xt.width,Be)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+c+"' in style '"+w+"' and mode '"+C+"'")),bt=new N(c,0,0,0,0,0,Be);if(K){bt.maxFontSize=K.sizeMultiplier,K.style.isTight()&&bt.classes.push("mtight");var Ar=K.getColor();Ar&&(bt.style.color=Ar)}return bt},on=function(c,w,C,K){return K===void 0&&(K=[]),C.font==="boldsymbol"&&Zr(c,"Main-Bold",w).metrics?Ur(c,"Main-Bold",w,C,K.concat(["mathbf"])):c==="\\"||wr[w][c].font==="main"?Ur(c,"Main-Regular",w,C,K):Ur(c,"AMS-Regular",w,C,K.concat(["amsrm"]))},en=function(c,w,C,K){return/[0-9]/.test(c.charAt(0))||F.contains(Fr,c)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Hn=function(c,w,C,K){return F.contains(Fr,c)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(c.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ti=function(c,w,C,K){return Zr(c,"Math-BoldItalic",w).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ui=function(c,w,C){var K=c.mode,Be=c.text,je=["mord"],xt=K==="math"||K==="text"&&w.font,bt=xt?w.font:w.fontFamily;if(Be.charCodeAt(0)===55349){var Xt=zr(Be,K),Ar=Xt[0],xr=Xt[1];return Ur(Be,Ar,K,w,je.concat(xr))}else if(bt){var nn,En;if(bt==="boldsymbol"||bt==="mathnormal"){var Xr=bt==="boldsymbol"?ti(Be,K,w,je):Hn(Be,K,w,je);nn=Xr.fontName,En=[Xr.fontClass]}else F.contains(Fr,Be)?(nn="Main-Italic",En=["mathit"]):xt?(nn=ca[bt].fontName,En=[bt]):(nn=zi(bt,w.fontWeight,w.fontShape),En=[bt,w.fontWeight,w.fontShape]);if(Zr(Be,nn,K).metrics)return Ur(Be,nn,K,w,je.concat(En));if(kn.hasOwnProperty(Be)&&nn.substr(0,10)==="Typewriter"){for(var fn=[],Mn=0;Mn<Be.length;Mn++)fn.push(Ur(Be[Mn],nn,K,w,je.concat(En)));return ii(fn)}}if(C==="mathord"){var Jn=en(Be,K,w,je);return Ur(Be,Jn.fontName,K,w,je.concat([Jn.fontClass]))}else if(C==="textord"){var wi=wr[K][Be]&&wr[K][Be].font;if(wi==="ams"){var yn=zi("amsrm",w.fontWeight,w.fontShape);return Ur(Be,yn,K,w,je.concat("amsrm",w.fontWeight,w.fontShape))}else if(wi==="main"||!wi){var fi=zi("textrm",w.fontWeight,w.fontShape);return Ur(Be,fi,K,w,je.concat(w.fontWeight,w.fontShape))}else{var qi=zi(wi,w.fontWeight,w.fontShape);return Ur(Be,qi,K,w,je.concat(qi,w.fontWeight,w.fontShape))}}else throw new Error("unexpected type: "+C+" in makeOrd")},Ri=function(c,w){if(Se(c.classes)!==Se(w.classes)||c.skew!==w.skew||c.maxFontSize!==w.maxFontSize)return!1;for(var C in c.style)if(c.style.hasOwnProperty(C)&&c.style[C]!==w.style[C])return!1;for(var K in w.style)if(w.style.hasOwnProperty(K)&&c.style[K]!==w.style[K])return!1;return!0},Ui=function(c){for(var w=0;w<c.length-1;w++){var C=c[w],K=c[w+1];C instanceof N&&K instanceof N&&Ri(C,K)&&(C.text+=K.text,C.height=Math.max(C.height,K.height),C.depth=Math.max(C.depth,K.depth),C.italic=K.italic,c.splice(w+1,1),w--)}return c},Pi=function(c){for(var w=0,C=0,K=0,Be=0;Be<c.children.length;Be++){var je=c.children[Be];je.height>w&&(w=je.height),je.depth>C&&(C=je.depth),je.maxFontSize>K&&(K=je.maxFontSize)}c.height=w,c.depth=C,c.maxFontSize=K},Tr=function(c,w,C,K){var Be=new h(c,w,C,K);return Pi(Be),Be},_n=function(c,w,C,K){return new h(c,w,C,K)},hn=function(c,w,C){var K=Tr([c],[],w);return K.height=Math.max(C||w.fontMetrics().defaultRuleThickness,w.minRuleThickness),K.style.borderBottomWidth=K.height+"em",K.maxFontSize=1,K},hi=function(c,w,C,K){var Be=new D(c,w,C,K);return Pi(Be),Be},ii=function(c){var w=new _r(c);return Pi(w),w},ri=function(c,w){return c instanceof _r?Tr([],[c],w):c},bi=function(c){if(c.positionType==="individualShift"){for(var w=c.children,C=[w[0]],K=-w[0].shift-w[0].elem.depth,Be=K,je=1;je<w.length;je++){var xt=-w[je].shift-Be-w[je].elem.depth,bt=xt-(w[je-1].elem.height+w[je-1].elem.depth);Be=Be+xt,C.push({type:"kern",size:bt}),C.push(w[je])}return{children:C,depth:K}}var Xt;if(c.positionType==="top"){for(var Ar=c.positionData,xr=0;xr<c.children.length;xr++){var nn=c.children[xr];Ar-=nn.type==="kern"?nn.size:nn.elem.height+nn.elem.depth}Xt=Ar}else if(c.positionType==="bottom")Xt=-c.positionData;else{var En=c.children[0];if(En.type!=="elem")throw new Error('First child must have type "elem".');if(c.positionType==="shift")Xt=-En.elem.depth-c.positionData;else if(c.positionType==="firstBaseline")Xt=-En.elem.depth;else throw new Error("Invalid positionType "+c.positionType+".")}return{children:c.children,depth:Xt}},Di=function(c,w){for(var C=bi(c),K=C.children,Be=C.depth,je=0,xt=0;xt<K.length;xt++){var bt=K[xt];if(bt.type==="elem"){var Xt=bt.elem;je=Math.max(je,Xt.maxFontSize,Xt.height)}}je+=2;var Ar=Tr(["pstrut"],[]);Ar.style.height=je+"em";for(var xr=[],nn=Be,En=Be,Xr=Be,fn=0;fn<K.length;fn++){var Mn=K[fn];if(Mn.type==="kern")Xr+=Mn.size;else{var Jn=Mn.elem,wi=Mn.wrapperClasses||[],yn=Mn.wrapperStyle||{},fi=Tr(wi,[Ar,Jn],void 0,yn);fi.style.top=-je-Xr-Jn.depth+"em",Mn.marginLeft&&(fi.style.marginLeft=Mn.marginLeft),Mn.marginRight&&(fi.style.marginRight=Mn.marginRight),xr.push(fi),Xr+=Jn.height+Jn.depth}nn=Math.min(nn,Xr),En=Math.max(En,Xr)}var qi=Tr(["vlist"],xr);qi.style.height=En+"em";var Ki;if(nn<0){var Ia=Tr([],[]),Ta=Tr(["vlist"],[Ia]);Ta.style.height=-nn+"em";var Xi=Tr(["vlist-s"],[new N("\u200B")]);Ki=[Tr(["vlist-r"],[qi,Xi]),Tr(["vlist-r"],[Ta])]}else Ki=[Tr(["vlist-r"],[qi])];var Fa=Tr(["vlist-t"],Ki);return Ki.length===2&&Fa.classes.push("vlist-t2"),Fa.height=En,Fa.depth=-nn,Fa},Bi=function(c,w){var C=Tr(["mspace"],[],w),K=br(c,w);return C.style.marginRight=K+"em",C},zi=function(c,w,C){var K="";switch(c){case"amsrm":K="AMS";break;case"textrm":K="Main";break;case"textsf":K="SansSerif";break;case"texttt":K="Typewriter";break;default:K=c}var Be;return w==="textbf"&&C==="textit"?Be="BoldItalic":w==="textbf"?Be="Bold":w==="textit"?Be="Italic":Be="Regular",K+"-"+Be},ca={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},xi={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},vn=function(c,w){var C=xi[c],K=C[0],Be=C[1],je=C[2],xt=new Te(K),bt=new te([xt],{width:Be+"em",height:je+"em",style:"width:"+Be+"em",viewBox:"0 0 "+1e3*Be+" "+1e3*je,preserveAspectRatio:"xMinYMin"}),Xt=_n(["overlay"],[bt],w);return Xt.height=je,Xt.style.height=je+"em",Xt.style.width=Be+"em",Xt},jt={fontMap:ca,makeSymbol:Ur,mathsym:on,makeSpan:Tr,makeSvgSpan:_n,makeLineSpan:hn,makeAnchor:hi,makeFragment:ii,wrapFragment:ri,makeVList:Di,makeOrd:ui,makeGlue:Bi,staticSvg:vn,svgData:xi,tryCombineChars:Ui};function Ln(He,c){var w=Gn(He,c);if(!w)throw new Error("Expected node of type "+c+", but got "+(He?"node of type "+He.type:String(He)));return w}function Gn(He,c){return He&&He.type===c?He:null}function Ei(He,c){var w=Qi(He,c);if(!w)throw new Error('Expected node of type "atom" and family "'+c+'", but got '+(He?He.type==="atom"?"atom of family "+He.family:"node of type "+He.type:String(He)));return w}function Qi(He,c){return He&&He.type==="atom"&&He.family===c?He:null}function da(He){var c=xa(He);if(!c)throw new Error("Expected node of symbol group type, but got "+(He?"node of type "+He.type:String(He)));return c}function xa(He){return He&&(He.type==="atom"||Mt.hasOwnProperty(He.type))?He:null}var Ji={number:3,unit:"mu"},Sa={number:4,unit:"mu"},_i={number:5,unit:"mu"},ai={mord:{mop:Ji,mbin:Sa,mrel:_i,minner:Ji},mop:{mord:Ji,mop:Ji,mrel:_i,minner:Ji},mbin:{mord:Sa,mop:Sa,mopen:Sa,minner:Sa},mrel:{mord:_i,mop:_i,mopen:_i,minner:_i},mopen:{},mclose:{mop:Ji,mbin:Sa,mrel:_i,minner:Ji},mpunct:{mord:Ji,mop:Ji,mrel:_i,mopen:Ji,mclose:Ji,mpunct:Ji,minner:Ji},minner:{mord:Ji,mop:Ji,mbin:Sa,mrel:_i,mopen:Ji,mpunct:Ji,minner:Ji}},$i={mord:{mop:Ji},mop:{mord:Ji,mop:Ji},mbin:{},mrel:{},mopen:{},mclose:{mop:Ji},mpunct:{},minner:{mop:Ji}},ra={},Ea={},xs={};function oi(He){for(var c=He.type,w=He.names,C=He.props,K=He.handler,Be=He.htmlBuilder,je=He.mathmlBuilder,xt={type:c,numArgs:C.numArgs,argTypes:C.argTypes,greediness:C.greediness===void 0?1:C.greediness,allowedInText:!!C.allowedInText,allowedInMath:C.allowedInMath===void 0?!0:C.allowedInMath,numOptionalArgs:C.numOptionalArgs||0,infix:!!C.infix,handler:K},bt=0;bt<w.length;++bt)ra[w[bt]]=xt;c&&(Be&&(Ea[c]=Be),je&&(xs[c]=je))}function Ca(He){var c=He.type,w=He.htmlBuilder,C=He.mathmlBuilder;oi({type:c,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:w,mathmlBuilder:C})}var ga=function(c){var w=Gn(c,"ordgroup");return w?w.body:[c]},Qa=jt.makeSpan,_s=["leftmost","mbin","mopen","mrel","mop","mpunct"],is=["rightmost","mrel","mclose","mpunct"],Da={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT},Ni={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},la=function(c,w,C,K){K===void 0&&(K=[null,null]);for(var Be=[],je=0;je<c.length;je++){var xt=aa(c[je],w);if(xt instanceof _r){var bt=xt.children;Be.push.apply(Be,bt)}else Be.push(xt)}if(!C)return Be;var Xt=w;if(c.length===1){var Ar=Gn(c[0],"sizing")||Gn(c[0],"styling");Ar&&(Ar.type==="sizing"?Xt=w.havingSize(Ar.size):Ar.type==="styling"&&(Xt=w.havingStyle(Da[Ar.style])))}var xr=Qa([K[0]||"leftmost"],[],w),nn=Qa([K[1]||"rightmost"],[],w);return ps(Be,function(En,Xr){var fn=Xr.classes[0],Mn=En.classes[0];fn==="mbin"&&F.contains(is,Mn)?Xr.classes[0]="mord":Mn==="mbin"&&F.contains(_s,fn)&&(En.classes[0]="mord")},{node:xr},nn),ps(Be,function(En,Xr){var fn=Wi(Xr),Mn=Wi(En),Jn=fn&&Mn?En.hasClass("mtight")?$i[fn][Mn]:ai[fn][Mn]:null;if(Jn)return jt.makeGlue(Jn,Xt)},{node:xr},nn),Be},ps=function He(c,w,C,K){K&&c.push(K);for(var Be=0;Be<c.length;Be++){var je=c[Be],xt=as(je);if(xt){He(xt.children,w,C);continue}if(je.classes[0]!=="mspace"){var bt=w(je,C.node);bt&&(C.insertAfter?C.insertAfter(bt):(c.unshift(bt),Be++)),C.node=je,C.insertAfter=function(Xt){return function(Ar){c.splice(Xt+1,0,Ar),Be++}}(Be)}}K&&c.pop()},as=function(c){return c instanceof _r||c instanceof D?c:null},ts=function He(c,w){var C=as(c);if(C){var K=C.children;if(K.length){if(w==="right")return He(K[K.length-1],"right");if(w==="left")return He(K[0],"left")}}return c},Wi=function(c,w){return c?(w&&(c=ts(c,w)),Ni[c.classes[0]]||null):null},ms=function(c,w){var C=["nulldelimiter"].concat(c.baseSizingClasses());return Qa(w.concat(C))},aa=function(c,w,C){if(!c)return Qa();if(Ea[c.type]){var K=Ea[c.type](c,w);if(C&&w.size!==C.size){K=Qa(w.sizingClasses(C),[K],w);var Be=w.sizeMultiplier/C.sizeMultiplier;K.height*=Be,K.depth*=Be}return K}else throw new Y("Got group of unknown type: '"+c.type+"'")};function co(He,c){var w=Qa(["base"],He,c),C=Qa(["strut"]);return C.style.height=w.height+w.depth+"em",C.style.verticalAlign=-w.depth+"em",w.children.unshift(C),w}function Qs(He,c){var w=null;He.length===1&&He[0].type==="tag"&&(w=He[0].tag,He=He[0].body);for(var C=la(He,c,!0),K=[],Be=[],je=0;je<C.length;je++)if(Be.push(C[je]),C[je].hasClass("mbin")||C[je].hasClass("mrel")||C[je].hasClass("allowbreak")){for(var xt=!1;je<C.length-1&&C[je+1].hasClass("mspace")&&!C[je+1].hasClass("newline");)je++,Be.push(C[je]),C[je].hasClass("nobreak")&&(xt=!0);xt||(K.push(co(Be,c)),Be=[])}else C[je].hasClass("newline")&&(Be.pop(),Be.length>0&&(K.push(co(Be,c)),Be=[]),K.push(C[je]));Be.length>0&&K.push(co(Be,c));var bt;w&&(bt=co(la(w,c,!0)),bt.classes=["tag"],K.push(bt));var Xt=Qa(["katex-html"],K);if(Xt.setAttribute("aria-hidden","true"),bt){var Ar=bt.children[0];Ar.style.height=Xt.height+Xt.depth+"em",Ar.style.verticalAlign=-Xt.depth+"em"}return Xt}function _o(He){return new _r(He)}var fs=function(){function He(w,C){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=w,this.attributes={},this.children=C||[]}var c=He.prototype;return c.setAttribute=function(C,K){this.attributes[C]=K},c.getAttribute=function(C){return this.attributes[C]},c.toNode=function(){var C=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var K in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,K)&&C.setAttribute(K,this.attributes[K]);for(var Be=0;Be<this.children.length;Be++)C.appendChild(this.children[Be].toNode());return C},c.toMarkup=function(){var C="<"+this.type;for(var K in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,K)&&(C+=" "+K+'="',C+=F.escape(this.attributes[K]),C+='"');C+=">";for(var Be=0;Be<this.children.length;Be++)C+=this.children[Be].toMarkup();return C+="</"+this.type+">",C},c.toText=function(){return this.children.map(function(C){return C.toText()}).join("")},He}(),Bo=function(){function He(w){this.text=void 0,this.text=w}var c=He.prototype;return c.toNode=function(){return document.createTextNode(this.text)},c.toMarkup=function(){return F.escape(this.toText())},c.toText=function(){return this.text},He}(),ss=function(){function He(w){this.width=void 0,this.character=void 0,this.width=w,w>=.05555&&w<=.05556?this.character="\u200A":w>=.1666&&w<=.1667?this.character="\u2009":w>=.2222&&w<=.2223?this.character="\u2005":w>=.2777&&w<=.2778?this.character="\u2005\u200A":w>=-.05556&&w<=-.05555?this.character="\u200A\u2063":w>=-.1667&&w<=-.1666?this.character="\u2009\u2063":w>=-.2223&&w<=-.2222?this.character="\u205F\u2063":w>=-.2778&&w<=-.2777?this.character="\u2005\u2063":this.character=null}var c=He.prototype;return c.toNode=function(){if(this.character)return document.createTextNode(this.character);var C=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return C.setAttribute("width",this.width+"em"),C},c.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},c.toText=function(){return this.character?this.character:" "},He}(),Yn={MathNode:fs,TextNode:Bo,SpaceNode:ss,newDocumentFragment:_o},La=function(c,w,C){return wr[w][c]&&wr[w][c].replace&&c.charCodeAt(0)!==55349&&!(kn.hasOwnProperty(c)&&C&&(C.fontFamily&&C.fontFamily.substr(4,2)==="tt"||C.font&&C.font.substr(4,2)==="tt"))&&(c=wr[w][c].replace),new Yn.TextNode(c)},io=function(c){return c.length===1?c[0]:new Yn.MathNode("mrow",c)},Zi=function(c,w){if(w.fontFamily==="texttt")return"monospace";if(w.fontFamily==="textsf")return w.fontShape==="textit"&&w.fontWeight==="textbf"?"sans-serif-bold-italic":w.fontShape==="textit"?"sans-serif-italic":w.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(w.fontShape==="textit"&&w.fontWeight==="textbf")return"bold-italic";if(w.fontShape==="textit")return"italic";if(w.fontWeight==="textbf")return"bold";var C=w.font;if(!C||C==="mathnormal")return null;var K=c.mode;if(C==="mathit")return"italic";if(C==="boldsymbol")return"bold-italic";if(C==="mathbf")return"bold";if(C==="mathbb")return"double-struck";if(C==="mathfrak")return"fraktur";if(C==="mathscr"||C==="mathcal")return"script";if(C==="mathsf")return"sans-serif";if(C==="mathtt")return"monospace";var Be=c.text;if(F.contains(["\\imath","\\jmath"],Be))return null;wr[K][Be]&&wr[K][Be].replace&&(Be=wr[K][Be].replace);var je=jt.fontMap[C].fontName;return Ge(Be,je,K)?jt.fontMap[C].variant:null},ta=function(c,w,C){if(c.length===1){var K=ki(c[0],w);return C&&K instanceof fs&&K.type==="mo"&&(K.setAttribute("lspace","0em"),K.setAttribute("rspace","0em")),[K]}for(var Be=[],je,xt=0;xt<c.length;xt++){var bt=ki(c[xt],w);if(bt instanceof fs&&je instanceof fs){if(bt.type==="mtext"&&je.type==="mtext"&&bt.getAttribute("mathvariant")===je.getAttribute("mathvariant")){var Xt;(Xt=je.children).push.apply(Xt,bt.children);continue}else if(bt.type==="mn"&&je.type==="mn"){var Ar;(Ar=je.children).push.apply(Ar,bt.children);continue}else if(bt.type==="mi"&&bt.children.length===1&&je.type==="mn"){var xr=bt.children[0];if(xr instanceof Bo&&xr.text==="."){var nn;(nn=je.children).push.apply(nn,bt.children);continue}}else if(je.type==="mi"&&je.children.length===1){var En=je.children[0];if(En instanceof Bo&&En.text==="\u0338"&&(bt.type==="mo"||bt.type==="mi"||bt.type==="mn")){var Xr=bt.children[0];Xr instanceof Bo&&Xr.text.length>0&&(Xr.text=Xr.text.slice(0,1)+"\u0338"+Xr.text.slice(1),Be.pop())}}}Be.push(bt),je=bt}return Be},Hi=function(c,w,C){return io(ta(c,w,C))},ki=function(c,w){if(!c)return new Yn.MathNode("mrow");if(xs[c.type]){var C=xs[c.type](c,w);return C}else throw new Y("Got group of unknown type: '"+c.type+"'")};function ya(He,c,w,C){var K=ta(He,w),Be;K.length===1&&K[0]instanceof fs&&F.contains(["mrow","mtable"],K[0].type)?Be=K[0]:Be=new Yn.MathNode("mrow",K);var je=new Yn.MathNode("annotation",[new Yn.TextNode(c)]);je.setAttribute("encoding","application/x-tex");var xt=new Yn.MathNode("semantics",[Be,je]),bt=new Yn.MathNode("math",[xt]);bt.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Xt=C?"katex":"katex-mathml";return jt.makeSpan([Xt],[bt])}var Na=function(c){return new Mi({style:c.displayMode?_.DISPLAY:_.TEXT,maxSize:c.maxSize,minRuleThickness:c.minRuleThickness})},Rs=function(c,w){if(w.displayMode){var C=["katex-display"];w.leqno&&C.push("leqno"),w.fleqn&&C.push("fleqn"),c=jt.makeSpan(C,[c])}return c},cs=function(c,w,C){var K=Na(C),Be;if(C.output==="mathml")return ya(c,w,K,!0);if(C.output==="html"){var je=Qs(c,K);Be=jt.makeSpan(["katex"],[je])}else{var xt=ya(c,w,K,!1),bt=Qs(c,K);Be=jt.makeSpan(["katex"],[xt,bt])}return Rs(Be,C)},Es=function(c,w,C){var K=Na(C),Be=Qs(c,K),je=jt.makeSpan(["katex"],[Be]);return Rs(je,C)},rs=cs,So={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\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",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},go=function(c){var w=new Yn.MathNode("mo",[new Yn.TextNode(So[c.substr(1)])]);return w.setAttribute("stretchy","true"),w},eo={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"],xleftarrow:[["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],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["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],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},zs=function(c){return c.type==="ordgroup"?c.body.length:1},Os=function(c,w){function C(){var bt=4e5,Xt=c.label.substr(1);if(F.contains(["widehat","widecheck","widetilde","utilde"],Xt)){var Ar=c,xr=zs(Ar.base),nn,En,Xr;if(xr>5)Xt==="widehat"||Xt==="widecheck"?(nn=420,bt=2364,Xr=.42,En=Xt+"4"):(nn=312,bt=2340,Xr=.34,En="tilde4");else{var fn=[1,1,2,2,3,3][xr];Xt==="widehat"||Xt==="widecheck"?(bt=[0,1062,2364,2364,2364][fn],nn=[0,239,300,360,420][fn],Xr=[0,.24,.3,.3,.36,.42][fn],En=Xt+fn):(bt=[0,600,1033,2339,2340][fn],nn=[0,260,286,306,312][fn],Xr=[0,.26,.286,.3,.306,.34][fn],En="tilde"+fn)}var Mn=new Te(En),Jn=new te([Mn],{width:"100%",height:Xr+"em",viewBox:"0 0 "+bt+" "+nn,preserveAspectRatio:"none"});return{span:jt.makeSvgSpan([],[Jn],w),minWidth:0,height:Xr}}else{var wi=[],yn=eo[Xt],fi=yn[0],qi=yn[1],Ki=yn[2],Ia=Ki/1e3,Ta=fi.length,Xi,Fa;if(Ta===1){var Ba=yn[3];Xi=["hide-tail"],Fa=[Ba]}else if(Ta===2)Xi=["halfarrow-left","halfarrow-right"],Fa=["xMinYMin","xMaxYMin"];else if(Ta===3)Xi=["brace-left","brace-center","brace-right"],Fa=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Ta+" children.");for(var li=0;li<Ta;li++){var $a=new Te(fi[li]),os=new te([$a],{width:"400em",height:Ia+"em",viewBox:"0 0 "+bt+" "+Ki,preserveAspectRatio:Fa[li]+" slice"}),sa=jt.makeSvgSpan([Xi[li]],[os],w);if(Ta===1)return{span:sa,minWidth:qi,height:Ia};sa.style.height=Ia+"em",wi.push(sa)}return{span:jt.makeSpan(["stretchy"],wi,w),minWidth:qi,height:Ia}}}var K=C(),Be=K.span,je=K.minWidth,xt=K.height;return Be.height=xt,Be.style.height=xt+"em",je>0&&(Be.style.minWidth=je+"em"),Be},Li=function(c,w,C,K){var Be,je=c.height+c.depth+2*C;if(/fbox|color/.test(w)){if(Be=jt.makeSpan(["stretchy",w],[],K),w==="fbox"){var xt=K.color&&K.getColor();xt&&(Be.style.borderColor=xt)}}else{var bt=[];/^[bx]cancel$/.test(w)&&bt.push(new Ie({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(w)&&bt.push(new Ie({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Xt=new te(bt,{width:"100%",height:je+"em"});Be=jt.makeSvgSpan([],[Xt],K)}return Be.height=je,Be.style.height=je+"em",Be},pi={encloseSpan:Li,mathMLnode:go,svgSpan:Os},ua=function(c,w){var C,K,Be=Gn(c,"supsub"),je;Be?(K=Ln(Be.base,"accent"),C=K.base,Be.base=C,je=ze(aa(Be,w)),Be.base=K):(K=Ln(c,"accent"),C=K.base);var xt=aa(C,w.havingCrampedStyle()),bt=K.isShifty&&F.isCharacterBox(C),Xt=0;if(bt){var Ar=F.getBaseElem(C),xr=aa(Ar,w.havingCrampedStyle());Xt=Fe(xr).skew}var nn=Math.min(xt.height,w.fontMetrics().xHeight),En;if(K.isStretchy)En=pi.svgSpan(K,w),En=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"elem",elem:En,wrapperClasses:["svg-align"],wrapperStyle:Xt>0?{width:"calc(100% - "+2*Xt+"em)",marginLeft:2*Xt+"em"}:void 0}]},w);else{var Xr,fn;K.label==="\\vec"?(Xr=jt.staticSvg("vec",w),fn=jt.svgData.vec[1]):(Xr=jt.makeOrd({mode:K.mode,text:K.label},w,"textord"),Xr=Fe(Xr),Xr.italic=0,fn=Xr.width),En=jt.makeSpan(["accent-body"],[Xr]);var Mn=K.label==="\\textcircled";Mn&&(En.classes.push("accent-full"),nn=xt.height);var Jn=Xt;Mn||(Jn-=fn/2),En.style.left=Jn+"em",K.label==="\\textcircled"&&(En.style.top=".2em"),En=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"kern",size:-nn},{type:"elem",elem:En}]},w)}var wi=jt.makeSpan(["mord","accent"],[En],w);return je?(je.children[0]=wi,je.height=Math.max(wi.height,je.height),je.classes[0]="mord",je):wi},gs=function(c,w){var C=c.isStretchy?pi.mathMLnode(c.label):new Yn.MathNode("mo",[La(c.label,c.mode)]),K=new Yn.MathNode("mover",[ki(c.base,w),C]);return K.setAttribute("accent","true"),K},Oa=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(He){return"\\"+He}).join("|"));oi({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(c,w){var C=w[0],K=!Oa.test(c.funcName),Be=!K||c.funcName==="\\widehat"||c.funcName==="\\widetilde"||c.funcName==="\\widecheck";return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:K,isShifty:Be,base:C}},htmlBuilder:ua,mathmlBuilder:gs}),oi({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(c,w){var C=w[0];return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:!1,isShifty:!0,base:C}},htmlBuilder:ua,mathmlBuilder:gs}),oi({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0];return{type:"accentUnder",mode:C.mode,label:K,base:Be}},htmlBuilder:function(c,w){var C=aa(c.base,w),K=pi.svgSpan(c,w),Be=c.label==="\\utilde"?.12:0,je=jt.makeVList({positionType:"bottom",positionData:K.height+Be,children:[{type:"elem",elem:K,wrapperClasses:["svg-align"]},{type:"kern",size:Be},{type:"elem",elem:C}]},w);return jt.makeSpan(["mord","accentunder"],[je],w)},mathmlBuilder:function(c,w){var C=pi.mathMLnode(c.label),K=new Yn.MathNode("munder",[ki(c.base,w),C]);return K.setAttribute("accentunder","true"),K}});var Ns=function(c){var w=new Yn.MathNode("mpadded",c?[c]:[]);return w.setAttribute("width","+0.6em"),w.setAttribute("lspace","0.3em"),w};oi({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(c,w,C){var K=c.parser,Be=c.funcName;return{type:"xArrow",mode:K.mode,label:Be,body:w[0],below:C[0]}},htmlBuilder:function(c,w){var C=w.style,K=w.havingStyle(C.sup()),Be=jt.wrapFragment(aa(c.body,K,w),w);Be.classes.push("x-arrow-pad");var je;c.below&&(K=w.havingStyle(C.sub()),je=jt.wrapFragment(aa(c.below,K,w),w),je.classes.push("x-arrow-pad"));var xt=pi.svgSpan(c,w),bt=-w.fontMetrics().axisHeight+.5*xt.height,Xt=-w.fontMetrics().axisHeight-.5*xt.height-.111;(Be.depth>.25||c.label==="\\xleftequilibrium")&&(Xt-=Be.depth);var Ar;if(je){var xr=-w.fontMetrics().axisHeight+je.height+.5*xt.height+.111;Ar=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Be,shift:Xt},{type:"elem",elem:xt,shift:bt},{type:"elem",elem:je,shift:xr}]},w)}else Ar=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Be,shift:Xt},{type:"elem",elem:xt,shift:bt}]},w);return Ar.children[0].children[0].children[1].classes.push("svg-align"),jt.makeSpan(["mrel","x-arrow"],[Ar],w)},mathmlBuilder:function(c,w){var C=pi.mathMLnode(c.label),K;if(c.body){var Be=Ns(ki(c.body,w));if(c.below){var je=Ns(ki(c.below,w));K=new Yn.MathNode("munderover",[C,je,Be])}else K=new Yn.MathNode("mover",[C,Be])}else if(c.below){var xt=Ns(ki(c.below,w));K=new Yn.MathNode("munder",[C,xt])}else K=Ns(),K=new Yn.MathNode("mover",[C,K]);return K}}),oi({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){for(var C=c.parser,K=Ln(w[0],"ordgroup"),Be=K.body,je="",xt=0;xt<Be.length;xt++){var bt=Ln(Be[xt],"textord");je+=bt.text}var Xt=parseInt(je);if(isNaN(Xt))throw new Y("\\@char has non-numeric argument "+je);return{type:"textord",mode:C.mode,text:String.fromCharCode(Xt)}}});var Vs=function(c,w){var C=la(c.body,w.withColor(c.color),!1);return jt.makeFragment(C)},vo=function(c,w){var C=ta(c.body,w.withColor(c.color)),K=new Yn.MathNode("mstyle",C);return K.setAttribute("mathcolor",c.color),K};oi({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(c,w){var C=c.parser,K=Ln(w[0],"color-token").color,Be=w[1];return{type:"color",mode:C.mode,color:K,body:ga(Be)}},htmlBuilder:Vs,mathmlBuilder:vo}),oi({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(c,w){var C=c.parser,K=c.breakOnTokenText,Be=Ln(w[0],"color-token").color;C.gullet.macros.set("\\current@color",Be);var je=C.parseExpression(!0,K);return{type:"color",mode:C.mode,color:Be,body:je}},htmlBuilder:Vs,mathmlBuilder:vo}),oi({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,w,C){var K=c.parser,Be=c.funcName,je=C[0],xt=Be==="\\cr",bt=!1;return xt||(K.settings.displayMode&&K.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?bt=!1:bt=!0),{type:"cr",mode:K.mode,newLine:bt,newRow:xt,size:je&&Ln(je,"size").value}},htmlBuilder:function(c,w){if(c.newRow)throw new Y("\\cr valid only within a tabular/array environment");var C=jt.makeSpan(["mspace"],[],w);return c.newLine&&(C.classes.push("newline"),c.size&&(C.style.marginTop=br(c.size,w)+"em")),C},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mspace");return c.newLine&&(C.setAttribute("linebreak","newline"),c.size&&C.setAttribute("height",br(c.size,w)+"em")),C}});var Ps=function(c,w,C){var K=wr.math[c]&&wr.math[c].replace,Be=Ge(K||c,w,C);if(!Be)throw new Error("Unsupported symbol "+c+" and font size "+w+".");return Be},Ti=function(c,w,C,K){var Be=C.havingBaseStyle(w),je=jt.makeSpan(K.concat(Be.sizingClasses(C)),[c],C),xt=Be.sizeMultiplier/C.sizeMultiplier;return je.height*=xt,je.depth*=xt,je.maxFontSize=Be.sizeMultiplier,je},Dl=function(c,w,C){var K=w.havingBaseStyle(C),Be=(1-w.sizeMultiplier/K.sizeMultiplier)*w.fontMetrics().axisHeight;c.classes.push("delimcenter"),c.style.top=Be+"em",c.height-=Be,c.depth+=Be},Js=function(c,w,C,K,Be,je){var xt=jt.makeSymbol(c,"Main-Regular",Be,K),bt=Ti(xt,w,K,je);return C&&Dl(bt,K,w),bt},nl=function(c,w,C,K){return jt.makeSymbol(c,"Size"+w+"-Regular",C,K)},Qo=function(c,w,C,K,Be,je){var xt=nl(c,w,Be,K),bt=Ti(jt.makeSpan(["delimsizing","size"+w],[xt],K),_.TEXT,K,je);return C&&Dl(bt,K,_.TEXT),bt},Ao=function(c,w,C){var K;w==="Size1-Regular"?K="delim-size1":K="delim-size4";var Be=jt.makeSpan(["delimsizinginner",K],[jt.makeSpan([],[jt.makeSymbol(c,w,C)])]);return{type:"elem",elem:Be}},_a={type:"kern",size:-.005},vl=function(c,w,C,K,Be,je){var xt,bt,Xt,Ar;xt=Xt=Ar=c,bt=null;var xr="Size1-Regular";c==="\\uparrow"?Xt=Ar="\u23D0":c==="\\Uparrow"?Xt=Ar="\u2016":c==="\\downarrow"?xt=Xt="\u23D0":c==="\\Downarrow"?xt=Xt="\u2016":c==="\\updownarrow"?(xt="\\uparrow",Xt="\u23D0",Ar="\\downarrow"):c==="\\Updownarrow"?(xt="\\Uparrow",Xt="\u2016",Ar="\\Downarrow"):c==="["||c==="\\lbrack"?(xt="\u23A1",Xt="\u23A2",Ar="\u23A3",xr="Size4-Regular"):c==="]"||c==="\\rbrack"?(xt="\u23A4",Xt="\u23A5",Ar="\u23A6",xr="Size4-Regular"):c==="\\lfloor"||c==="\u230A"?(Xt=xt="\u23A2",Ar="\u23A3",xr="Size4-Regular"):c==="\\lceil"||c==="\u2308"?(xt="\u23A1",Xt=Ar="\u23A2",xr="Size4-Regular"):c==="\\rfloor"||c==="\u230B"?(Xt=xt="\u23A5",Ar="\u23A6",xr="Size4-Regular"):c==="\\rceil"||c==="\u2309"?(xt="\u23A4",Xt=Ar="\u23A5",xr="Size4-Regular"):c==="("||c==="\\lparen"?(xt="\u239B",Xt="\u239C",Ar="\u239D",xr="Size4-Regular"):c===")"||c==="\\rparen"?(xt="\u239E",Xt="\u239F",Ar="\u23A0",xr="Size4-Regular"):c==="\\{"||c==="\\lbrace"?(xt="\u23A7",bt="\u23A8",Ar="\u23A9",Xt="\u23AA",xr="Size4-Regular"):c==="\\}"||c==="\\rbrace"?(xt="\u23AB",bt="\u23AC",Ar="\u23AD",Xt="\u23AA",xr="Size4-Regular"):c==="\\lgroup"||c==="\u27EE"?(xt="\u23A7",Ar="\u23A9",Xt="\u23AA",xr="Size4-Regular"):c==="\\rgroup"||c==="\u27EF"?(xt="\u23AB",Ar="\u23AD",Xt="\u23AA",xr="Size4-Regular"):c==="\\lmoustache"||c==="\u23B0"?(xt="\u23A7",Ar="\u23AD",Xt="\u23AA",xr="Size4-Regular"):(c==="\\rmoustache"||c==="\u23B1")&&(xt="\u23AB",Ar="\u23A9",Xt="\u23AA",xr="Size4-Regular");var nn=Ps(xt,xr,Be),En=nn.height+nn.depth,Xr=Ps(Xt,xr,Be),fn=Xr.height+Xr.depth,Mn=Ps(Ar,xr,Be),Jn=Mn.height+Mn.depth,wi=0,yn=1;if(bt!==null){var fi=Ps(bt,xr,Be);wi=fi.height+fi.depth,yn=2}var qi=En+Jn+wi,Ki=Math.max(0,Math.ceil((w-qi)/(yn*fn))),Ia=qi+Ki*yn*fn,Ta=K.fontMetrics().axisHeight;C&&(Ta*=K.sizeMultiplier);var Xi=Ia/2-Ta,Fa=(Ki+1)*.005-fn,Ba=[];if(Ba.push(Ao(Ar,xr,Be)),bt===null)for(var li=0;li<Ki;li++)Ba.push(_a),Ba.push(Ao(Xt,xr,Be));else{for(var $a=0;$a<Ki;$a++)Ba.push(_a),Ba.push(Ao(Xt,xr,Be));Ba.push({type:"kern",size:Fa}),Ba.push(Ao(Xt,xr,Be)),Ba.push(_a),Ba.push(Ao(bt,xr,Be));for(var os=0;os<Ki;os++)Ba.push(_a),Ba.push(Ao(Xt,xr,Be))}Ba.push({type:"kern",size:Fa}),Ba.push(Ao(Xt,xr,Be)),Ba.push(_a),Ba.push(Ao(xt,xr,Be));var sa=K.havingBaseStyle(_.TEXT),fa=jt.makeVList({positionType:"bottom",positionData:Xi,children:Ba},sa);return Ti(jt.makeSpan(["delimsizing","mult"],[fa],sa),_.TEXT,K,je)},yl=80,fo=.08,yo=function(c,w,C,K,Be){var je=Er(c,K,C),xt=new Te(c,je),bt=new te([xt],{width:"400em",height:w+"em",viewBox:"0 0 400000 "+C,preserveAspectRatio:"xMinYMin slice"});return jt.makeSvgSpan(["hide-tail"],[bt],Be)},ka=function(c,w){var C=w.havingBaseSizing(),K=Do("\\surd",c*C.sizeMultiplier,ao,C),Be=C.sizeMultiplier,je=Math.max(0,w.minRuleThickness-w.fontMetrics().sqrtRuleThickness),xt,bt=0,Xt=0,Ar=0,xr;return K.type==="small"?(Ar=1e3+1e3*je+yl,c<1?Be=1:c<1.4&&(Be=.7),bt=(1+je+fo)/Be,Xt=(1+je)/Be,xt=yo("sqrtMain",bt,Ar,je,w),xt.style.minWidth="0.853em",xr=.833/Be):K.type==="large"?(Ar=(1e3+yl)*ns[K.size],Xt=(ns[K.size]+je)/Be,bt=(ns[K.size]+je+fo)/Be,xt=yo("sqrtSize"+K.size,bt,Ar,je,w),xt.style.minWidth="1.02em",xr=1/Be):(bt=c+je+fo,Xt=c+je,Ar=Math.floor(1e3*c+je)+yl,xt=yo("sqrtTall",bt,Ar,je,w),xt.style.minWidth="0.742em",xr=1.056),xt.height=Xt,xt.style.height=bt+"em",{span:xt,advanceWidth:xr,ruleWidth:(w.fontMetrics().sqrtRuleThickness+je)*Be}},pa=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],to=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Ya=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ns=[0,1.2,1.8,2.4,3],js=function(c,w,C,K,Be){if(c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle"),F.contains(pa,c)||F.contains(Ya,c))return Qo(c,w,!1,C,K,Be);if(F.contains(to,c))return vl(c,ns[w],!1,C,K,Be);throw new Y("Illegal delimiter: '"+c+"'")},wa=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Ys=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"stack"}],ao=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Po=function(c){if(c.type==="small")return"Main-Regular";if(c.type==="large")return"Size"+c.size+"-Regular";if(c.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+c.type+"' here.")},Do=function(c,w,C,K){for(var Be=Math.min(2,3-K.style.size),je=Be;je<C.length&&C[je].type!=="stack";je++){var xt=Ps(c,Po(C[je]),"math"),bt=xt.height+xt.depth;if(C[je].type==="small"){var Xt=K.havingBaseStyle(C[je].style);bt*=Xt.sizeMultiplier}if(bt>w)return C[je]}return C[C.length-1]},Xa=function(c,w,C,K,Be,je){c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle");var xt;F.contains(Ya,c)?xt=wa:F.contains(pa,c)?xt=ao:xt=Ys;var bt=Do(c,w,xt,K);return bt.type==="small"?Js(c,bt.style,C,K,Be,je):bt.type==="large"?Qo(c,bt.size,C,K,Be,je):vl(c,w,C,K,Be,je)},bl=function(c,w,C,K,Be,je){var xt=K.fontMetrics().axisHeight*K.sizeMultiplier,bt=901,Xt=5/K.fontMetrics().ptPerEm,Ar=Math.max(w-xt,C+xt),xr=Math.max(Ar/500*bt,2*Ar-Xt);return Xa(c,xr,!0,K,Be,je)},so={sqrtImage:ka,sizedDelim:js,customSizedDelim:Xa,leftRightDelim:bl},bo={"\\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}},Zl=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function wl(He,c){var w=xa(He);if(w&&F.contains(Zl,w.text))return w;throw new Y("Invalid delimiter: '"+(w?w.text:JSON.stringify(He))+"' after '"+c.funcName+"'",He)}oi({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(c,w){var C=wl(w[0],c);return{type:"delimsizing",mode:c.parser.mode,size:bo[c.funcName].size,mclass:bo[c.funcName].mclass,delim:C.text}},htmlBuilder:function(c,w){return c.delim==="."?jt.makeSpan([c.mclass]):so.sizedDelim(c.delim,c.size,w,c.mode,[c.mclass])},mathmlBuilder:function(c){var w=[];c.delim!=="."&&w.push(La(c.delim,c.mode));var C=new Yn.MathNode("mo",w);return c.mclass==="mopen"||c.mclass==="mclose"?C.setAttribute("fence","true"):C.setAttribute("fence","false"),C}});function fl(He){if(!He.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}oi({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(c,w){var C=c.parser.gullet.macros.get("\\current@color");if(C&&typeof C!="string")throw new Y("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:c.parser.mode,delim:wl(w[0],c).text,color:C}}}),oi({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(c,w){var C=wl(w[0],c),K=c.parser;++K.leftrightDepth;var Be=K.parseExpression(!1);--K.leftrightDepth,K.expect("\\right",!1);var je=Ln(K.parseFunction(),"leftright-right");return{type:"leftright",mode:K.mode,body:Be,left:C.text,right:je.delim,rightColor:je.color}},htmlBuilder:function(c,w){fl(c);for(var C=la(c.body,w,!0,["mopen","mclose"]),K=0,Be=0,je=!1,xt=0;xt<C.length;xt++)C[xt].isMiddle?je=!0:(K=Math.max(C[xt].height,K),Be=Math.max(C[xt].depth,Be));K*=w.sizeMultiplier,Be*=w.sizeMultiplier;var bt;if(c.left==="."?bt=ms(w,["mopen"]):bt=so.leftRightDelim(c.left,K,Be,w,c.mode,["mopen"]),C.unshift(bt),je)for(var Xt=1;Xt<C.length;Xt++){var Ar=C[Xt],xr=Ar.isMiddle;xr&&(C[Xt]=so.leftRightDelim(xr.delim,K,Be,xr.options,c.mode,[]))}var nn;if(c.right===".")nn=ms(w,["mclose"]);else{var En=c.rightColor?w.withColor(c.rightColor):w;nn=so.leftRightDelim(c.right,K,Be,En,c.mode,["mclose"])}return C.push(nn),jt.makeSpan(["minner"],C,w)},mathmlBuilder:function(c,w){fl(c);var C=ta(c.body,w);if(c.left!=="."){var K=new Yn.MathNode("mo",[La(c.left,c.mode)]);K.setAttribute("fence","true"),C.unshift(K)}if(c.right!=="."){var Be=new Yn.MathNode("mo",[La(c.right,c.mode)]);Be.setAttribute("fence","true"),c.rightColor&&Be.setAttribute("mathcolor",c.rightColor),C.push(Be)}return io(C)}}),oi({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(c,w){var C=wl(w[0],c);if(!c.parser.leftrightDepth)throw new Y("\\middle without preceding \\left",C);return{type:"middle",mode:c.parser.mode,delim:C.text}},htmlBuilder:function(c,w){var C;if(c.delim===".")C=ms(w,[]);else{C=so.sizedDelim(c.delim,1,w,c.mode,[]);var K={delim:c.delim,options:w};C.isMiddle=K}return C},mathmlBuilder:function(c,w){var C=c.delim==="\\vert"||c.delim==="|"?La("|","text"):La(c.delim,c.mode),K=new Yn.MathNode("mo",[C]);return K.setAttribute("fence","true"),K.setAttribute("lspace","0.05em"),K.setAttribute("rspace","0.05em"),K}});var Ll=function(c,w){var C=jt.wrapFragment(aa(c.body,w),w),K=c.label.substr(1),Be=w.sizeMultiplier,je,xt=0,bt=F.isCharacterBox(c.body);if(K==="sout")je=jt.makeSpan(["stretchy","sout"]),je.height=w.fontMetrics().defaultRuleThickness/Be,xt=-.5*w.fontMetrics().xHeight;else{/cancel/.test(K)?bt||C.classes.push("cancel-pad"):C.classes.push("boxpad");var Xt=0,Ar=0;/box/.test(K)?(Ar=Math.max(w.fontMetrics().fboxrule,w.minRuleThickness),Xt=w.fontMetrics().fboxsep+(K==="colorbox"?0:Ar)):Xt=bt?.2:0,je=pi.encloseSpan(C,K,Xt,w),/fbox|boxed|fcolorbox/.test(K)&&(je.style.borderStyle="solid",je.style.borderWidth=Ar+"em"),xt=C.depth+Xt,c.backgroundColor&&(je.style.backgroundColor=c.backgroundColor,c.borderColor&&(je.style.borderColor=c.borderColor))}var xr;return c.backgroundColor?xr=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:je,shift:xt},{type:"elem",elem:C,shift:0}]},w):xr=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:0},{type:"elem",elem:je,shift:xt,wrapperClasses:/cancel/.test(K)?["svg-align"]:[]}]},w),/cancel/.test(K)&&(xr.height=C.height,xr.depth=C.depth),/cancel/.test(K)&&!bt?jt.makeSpan(["mord","cancel-lap"],[xr],w):jt.makeSpan(["mord"],[xr],w)},xl=function(c,w){var C=0,K=new Yn.MathNode(c.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ki(c.body,w)]);switch(c.label){case"\\cancel":K.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":K.setAttribute("notation","downdiagonalstrike");break;case"\\sout":K.setAttribute("notation","horizontalstrike");break;case"\\fbox":K.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(C=w.fontMetrics().fboxsep*w.fontMetrics().ptPerEm,K.setAttribute("width","+"+2*C+"pt"),K.setAttribute("height","+"+2*C+"pt"),K.setAttribute("lspace",C+"pt"),K.setAttribute("voffset",C+"pt"),c.label==="\\fcolorbox"){var Be=Math.max(w.fontMetrics().fboxrule,w.minRuleThickness);K.setAttribute("style","border: "+Be+"em solid "+String(c.borderColor))}break;case"\\xcancel":K.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return c.backgroundColor&&K.setAttribute("mathbackground",c.backgroundColor),K};oi({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(c,w,C){var K=c.parser,Be=c.funcName,je=Ln(w[0],"color-token").color,xt=w[1];return{type:"enclose",mode:K.mode,label:Be,backgroundColor:je,body:xt}},htmlBuilder:Ll,mathmlBuilder:xl}),oi({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(c,w,C){var K=c.parser,Be=c.funcName,je=Ln(w[0],"color-token").color,xt=Ln(w[1],"color-token").color,bt=w[2];return{type:"enclose",mode:K.mode,label:Be,backgroundColor:xt,borderColor:je,body:bt}},htmlBuilder:Ll,mathmlBuilder:xl}),oi({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(c,w){var C=c.parser;return{type:"enclose",mode:C.mode,label:"\\fbox",body:w[0]}}}),oi({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(c,w,C){var K=c.parser,Be=c.funcName,je=w[0];return{type:"enclose",mode:K.mode,label:Be,body:je}},htmlBuilder:Ll,mathmlBuilder:xl});var jo={};function Gs(He){for(var c=He.type,w=He.names,C=He.props,K=He.handler,Be=He.htmlBuilder,je=He.mathmlBuilder,xt={type:c,numArgs:C.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:K},bt=0;bt<w.length;++bt)jo[w[bt]]=xt;Be&&(Ea[c]=Be),je&&(xs[c]=je)}function Lo(He){var c=[];He.consumeSpaces();for(var w=He.fetch().text;w==="\\hline"||w==="\\hdashline";)He.consume(),c.push(w==="\\hdashline"),He.consumeSpaces(),w=He.fetch().text;return c}function Wa(He,c,w){var C=c.hskipBeforeAndAfter,K=c.addJot,Be=c.cols,je=c.arraystretch,xt=c.colSeparationType;if(He.gullet.beginGroup(),He.gullet.macros.set("\\\\","\\cr"),!je){var bt=He.gullet.expandMacroAsText("\\arraystretch");if(bt==null)je=1;else if(je=parseFloat(bt),!je||je<0)throw new Y("Invalid \\arraystretch: "+bt)}He.gullet.beginGroup();var Xt=[],Ar=[Xt],xr=[],nn=[];for(nn.push(Lo(He));;){var En=He.parseExpression(!1,"\\cr");He.gullet.endGroup(),He.gullet.beginGroup(),En={type:"ordgroup",mode:He.mode,body:En},w&&(En={type:"styling",mode:He.mode,style:w,body:[En]}),Xt.push(En);var Xr=He.fetch().text;if(Xr==="&")He.consume();else if(Xr==="\\end"){Xt.length===1&&En.type==="styling"&&En.body[0].body.length===0&&Ar.pop(),nn.length<Ar.length+1&&nn.push([]);break}else if(Xr==="\\cr"){var fn=Ln(He.parseFunction(),"cr");xr.push(fn.size),nn.push(Lo(He)),Xt=[],Ar.push(Xt)}else throw new Y("Expected & or \\\\ or \\cr or \\end",He.nextToken)}return He.gullet.endGroup(),He.gullet.endGroup(),{type:"array",mode:He.mode,addJot:K,arraystretch:je,body:Ar,cols:Be,rowGaps:xr,hskipBeforeAndAfter:C,hLinesBeforeRow:nn,colSeparationType:xt}}function vs(He){return He.substr(0,1)==="d"?"display":"text"}var Ja=function(c,w){var C,K,Be=c.body.length,je=c.hLinesBeforeRow,xt=0,bt=new Array(Be),Xt=[],Ar=Math.max(w.fontMetrics().arrayRuleWidth,w.minRuleThickness),xr=1/w.fontMetrics().ptPerEm,nn=5*xr;if(c.colSeparationType&&c.colSeparationType==="small"){var En=w.havingStyle(_.SCRIPT).sizeMultiplier;nn=.2778*(En/w.sizeMultiplier)}var Xr=12*xr,fn=3*xr,Mn=c.arraystretch*Xr,Jn=.7*Mn,wi=.3*Mn,yn=0;function fi($s){for(var qa=0;qa<$s.length;++qa)qa>0&&(yn+=.25),Xt.push({pos:yn,isDashed:$s[qa]})}for(fi(je[0]),C=0;C<c.body.length;++C){var qi=c.body[C],Ki=Jn,Ia=wi;xt<qi.length&&(xt=qi.length);var Ta=new Array(qi.length);for(K=0;K<qi.length;++K){var Xi=aa(qi[K],w);Ia<Xi.depth&&(Ia=Xi.depth),Ki<Xi.height&&(Ki=Xi.height),Ta[K]=Xi}var Fa=c.rowGaps[C],Ba=0;Fa&&(Ba=br(Fa,w),Ba>0&&(Ba+=wi,Ia<Ba&&(Ia=Ba),Ba=0)),c.addJot&&(Ia+=fn),Ta.height=Ki,Ta.depth=Ia,yn+=Ki,Ta.pos=yn,yn+=Ia+Ba,bt[C]=Ta,fi(je[C+1])}var li=yn/2+w.fontMetrics().axisHeight,$a=c.cols||[],os=[],sa,fa;for(K=0,fa=0;K<xt||fa<$a.length;++K,++fa){for(var ba=$a[fa]||{},Ha=!0;ba.type==="separator";){if(Ha||(sa=jt.makeSpan(["arraycolsep"],[]),sa.style.width=w.fontMetrics().doubleRuleSep+"em",os.push(sa)),ba.separator==="|"||ba.separator===":"){var ls=ba.separator==="|"?"solid":"dashed",Aa=jt.makeSpan(["vertical-separator"],[],w);Aa.style.height=yn+"em",Aa.style.borderRightWidth=Ar+"em",Aa.style.borderRightStyle=ls,Aa.style.margin="0 -"+Ar/2+"em",Aa.style.verticalAlign=-(yn-li)+"em",os.push(Aa)}else throw new Y("Invalid separator type: "+ba.separator);fa++,ba=$a[fa]||{},Ha=!1}if(!(K>=xt)){var Ts=void 0;(K>0||c.hskipBeforeAndAfter)&&(Ts=F.deflt(ba.pregap,nn),Ts!==0&&(sa=jt.makeSpan(["arraycolsep"],[]),sa.style.width=Ts+"em",os.push(sa)));var ys=[];for(C=0;C<Be;++C){var Hs=bt[C],Zs=Hs[K];if(Zs){var Xs=Hs.pos-li;Zs.depth=Hs.depth,Zs.height=Hs.height,ys.push({type:"elem",elem:Zs,shift:Xs})}}ys=jt.makeVList({positionType:"individualShift",children:ys},w),ys=jt.makeSpan(["col-align-"+(ba.align||"c")],[ys]),os.push(ys),(K<xt-1||c.hskipBeforeAndAfter)&&(Ts=F.deflt(ba.postgap,nn),Ts!==0&&(sa=jt.makeSpan(["arraycolsep"],[]),sa.style.width=Ts+"em",os.push(sa)))}}if(bt=jt.makeSpan(["mtable"],os),Xt.length>0){for(var Wo=jt.makeLineSpan("hline",w,Ar),$o=jt.makeLineSpan("hdashline",w,Ar),ho=[{type:"elem",elem:bt,shift:0}];Xt.length>0;){var oo=Xt.pop(),ro=oo.pos-li;oo.isDashed?ho.push({type:"elem",elem:$o,shift:ro}):ho.push({type:"elem",elem:Wo,shift:ro})}bt=jt.makeVList({positionType:"individualShift",children:ho},w)}return jt.makeSpan(["mord"],[bt],w)},Cs={c:"center ",l:"left ",r:"right "},qs=function(c,w){var C=new Yn.MathNode("mtable",c.body.map(function(yn){return new Yn.MathNode("mtr",yn.map(function(fi){return new Yn.MathNode("mtd",[ki(fi,w)])}))})),K=c.arraystretch===.5?.1:.16+c.arraystretch-1+(c.addJot?.09:0);C.setAttribute("rowspacing",K+"em");var Be="",je="";if(c.cols){var xt=c.cols,bt="",Xt=!1,Ar=0,xr=xt.length;xt[0].type==="separator"&&(Be+="top ",Ar=1),xt[xt.length-1].type==="separator"&&(Be+="bottom ",xr-=1);for(var nn=Ar;nn<xr;nn++)xt[nn].type==="align"?(je+=Cs[xt[nn].align],Xt&&(bt+="none "),Xt=!0):xt[nn].type==="separator"&&Xt&&(bt+=xt[nn].separator==="|"?"solid ":"dashed ",Xt=!1);C.setAttribute("columnalign",je.trim()),/[sd]/.test(bt)&&C.setAttribute("columnlines",bt.trim())}if(c.colSeparationType==="align"){for(var En=c.cols||[],Xr="",fn=1;fn<En.length;fn++)Xr+=fn%2?"0em ":"1em ";C.setAttribute("columnspacing",Xr.trim())}else c.colSeparationType==="alignat"?C.setAttribute("columnspacing","0em"):c.colSeparationType==="small"?C.setAttribute("columnspacing","0.2778em"):C.setAttribute("columnspacing","1em");var Mn="",Jn=c.hLinesBeforeRow;Be+=Jn[0].length>0?"left ":"",Be+=Jn[Jn.length-1].length>0?"right ":"";for(var wi=1;wi<Jn.length-1;wi++)Mn+=Jn[wi].length===0?"none ":Jn[wi][0]?"dashed ":"solid ";return/[sd]/.test(Mn)&&C.setAttribute("rowlines",Mn.trim()),Be!==""&&(C=new Yn.MathNode("menclose",[C]),C.setAttribute("notation",Be.trim())),c.arraystretch&&c.arraystretch<1&&(C=new Yn.MathNode("mstyle",[C]),C.setAttribute("scriptlevel","1")),C},El=function(c,w){var C=[],K=Wa(c.parser,{cols:C,addJot:!0},"display"),Be,je=0,xt={type:"ordgroup",mode:c.mode,body:[]},bt=Gn(w[0],"ordgroup");if(bt){for(var Xt="",Ar=0;Ar<bt.body.length;Ar++){var xr=Ln(bt.body[Ar],"textord");Xt+=xr.text}Be=Number(Xt),je=Be*2}var nn=!je;K.body.forEach(function(Mn){for(var Jn=1;Jn<Mn.length;Jn+=2){var wi=Ln(Mn[Jn],"styling"),yn=Ln(wi.body[0],"ordgroup");yn.body.unshift(xt)}if(nn)je<Mn.length&&(je=Mn.length);else{var fi=Mn.length/2;if(Be<fi)throw new Y("Too many math in a row: "+("expected "+Be+", but got "+fi),Mn[0])}});for(var En=0;En<je;++En){var Xr="r",fn=0;En%2===1?Xr="l":En>0&&nn&&(fn=1),C[En]={type:"align",align:Xr,pregap:fn,postgap:0}}return K.colSeparationType=nn?"align":"alignat",K};Gs({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(c,w){var C=xa(w[0]),K=C?[w[0]]:Ln(w[0],"ordgroup").body,Be=K.map(function(xt){var bt=da(xt),Xt=bt.text;if("lcr".indexOf(Xt)!==-1)return{type:"align",align:Xt};if(Xt==="|")return{type:"separator",separator:"|"};if(Xt===":")return{type:"separator",separator:":"};throw new Y("Unknown column alignment: "+Xt,xt)}),je={cols:Be,hskipBeforeAndAfter:!0};return Wa(c.parser,je,vs(c.envName))},htmlBuilder:Ja,mathmlBuilder:qs}),Gs({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(c){var w={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[c.envName],C={hskipBeforeAndAfter:!1},K=Wa(c.parser,C,vs(c.envName));return w?{type:"leftright",mode:c.mode,body:[K],left:w[0],right:w[1],rightColor:void 0}:K},htmlBuilder:Ja,mathmlBuilder:qs}),Gs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(c){var w={arraystretch:.5},C=Wa(c.parser,w,"script");return C.colSeparationType="small",C},htmlBuilder:Ja,mathmlBuilder:qs}),Gs({type:"array",names:["subarray"],props:{numArgs:1},handler:function(c,w){var C=xa(w[0]),K=C?[w[0]]:Ln(w[0],"ordgroup").body,Be=K.map(function(xt){var bt=da(xt),Xt=bt.text;if("lc".indexOf(Xt)!==-1)return{type:"align",align:Xt};throw new Y("Unknown column alignment: "+Xt,xt)});if(Be.length>1)throw new Y("{subarray} can contain only one column");var je={cols:Be,hskipBeforeAndAfter:!1,arraystretch:.5};if(je=Wa(c.parser,je,"script"),je.body[0].length>1)throw new Y("{subarray} can contain only one column");return je},htmlBuilder:Ja,mathmlBuilder:qs}),Gs({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(c){var w={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},C=Wa(c.parser,w,vs(c.envName));return{type:"leftright",mode:c.mode,body:[C],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Ja,mathmlBuilder:qs}),Gs({type:"array",names:["aligned"],props:{numArgs:0},handler:El,htmlBuilder:Ja,mathmlBuilder:qs}),Gs({type:"array",names:["gathered"],props:{numArgs:0},handler:function(c){var w={cols:[{type:"align",align:"c"}],addJot:!0};return Wa(c.parser,w,"display")},htmlBuilder:Ja,mathmlBuilder:qs}),Gs({type:"array",names:["alignedat"],props:{numArgs:1},handler:El,htmlBuilder:Ja,mathmlBuilder:qs}),oi({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(c,w){throw new Y(c.funcName+" valid only within array environment")}});var il=jo,Rl=il;oi({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0];if(Be.type!=="ordgroup")throw new Y("Invalid environment name",Be);for(var je="",xt=0;xt<Be.body.length;++xt)je+=Ln(Be.body[xt],"textord").text;if(K==="\\begin"){if(!Rl.hasOwnProperty(je))throw new Y("No such environment: "+je,Be);var bt=Rl[je],Xt=C.parseArguments("\\begin{"+je+"}",bt),Ar=Xt.args,xr=Xt.optArgs,nn={mode:C.mode,envName:je,parser:C},En=bt.handler(nn,Ar,xr);C.expect("\\end",!1);var Xr=C.nextToken,fn=Ln(C.parseFunction(),"environment");if(fn.name!==je)throw new Y("Mismatch: \\begin{"+je+"} matched by \\end{"+fn.name+"}",Xr);return En}return{type:"environment",mode:C.mode,name:je,nameGroup:Be}}});var cu=jt.makeSpan;function Ol(He,c){var w=la(He.body,c,!0);return cu([He.mclass],w,c)}function Pl(He,c){var w,C=ta(He.body,c);return He.mclass==="minner"?Yn.newDocumentFragment(C):(He.mclass==="mord"?He.isCharacterBox?(w=C[0],w.type="mi"):w=new Yn.MathNode("mi",C):(He.isCharacterBox?(w=C[0],w.type="mo"):w=new Yn.MathNode("mo",C),He.mclass==="mbin"?(w.attributes.lspace="0.22em",w.attributes.rspace="0.22em"):He.mclass==="mpunct"?(w.attributes.lspace="0em",w.attributes.rspace="0.17em"):(He.mclass==="mopen"||He.mclass==="mclose")&&(w.attributes.lspace="0em",w.attributes.rspace="0em")),w)}oi({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0];return{type:"mclass",mode:C.mode,mclass:"m"+K.substr(5),body:ga(Be),isCharacterBox:F.isCharacterBox(Be)}},htmlBuilder:Ol,mathmlBuilder:Pl});var ci=function(c){var w=c.type==="ordgroup"&&c.body.length?c.body[0]:c;return w.type==="atom"&&(w.family==="bin"||w.family==="rel")?"m"+w.family:"mord"};oi({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(c,w){var C=c.parser;return{type:"mclass",mode:C.mode,mclass:ci(w[0]),body:[w[1]],isCharacterBox:F.isCharacterBox(w[1])}}}),oi({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[1],je=w[0],xt;K!=="\\stackrel"?xt=ci(Be):xt="mrel";var bt={type:"op",mode:Be.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:K!=="\\stackrel",body:ga(Be)},Xt={type:"supsub",mode:je.mode,base:bt,sup:K==="\\underset"?null:je,sub:K==="\\underset"?je:null};return{type:"mclass",mode:C.mode,mclass:xt,body:[Xt],isCharacterBox:F.isCharacterBox(Xt)}},htmlBuilder:Ol,mathmlBuilder:Pl});var Au=function(c,w){var C=c.font,K=w.withFont(C);return aa(c.body,K)},Wl=function(c,w){var C=c.font,K=w.withFont(C);return ki(c.body,K)},ic={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};oi({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0],je=K;return je in ic&&(je=ic[je]),{type:"font",mode:C.mode,font:je.slice(1),body:Be}},htmlBuilder:Au,mathmlBuilder:Wl}),oi({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(c,w){var C=c.parser,K=w[0],Be=F.isCharacterBox(K);return{type:"mclass",mode:C.mode,mclass:ci(K),body:[{type:"font",mode:C.mode,font:"boldsymbol",body:K}],isCharacterBox:Be}}}),oi({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(c,w){var C=c.parser,K=c.funcName,Be=c.breakOnTokenText,je=C.mode,xt=C.parseExpression(!0,Be),bt="math"+K.slice(1);return{type:"font",mode:je,font:bt,body:{type:"ordgroup",mode:C.mode,body:xt}}},htmlBuilder:Au,mathmlBuilder:Wl});var ac=function(c,w){var C=w;return c==="display"?C=C.id>=_.SCRIPT.id?C.text():_.DISPLAY:c==="text"&&C.size===_.DISPLAY.size?C=_.TEXT:c==="script"?C=_.SCRIPT:c==="scriptscript"&&(C=_.SCRIPTSCRIPT),C},du=function(c,w){var C=ac(c.size,w.style),K=C.fracNum(),Be=C.fracDen(),je;je=w.havingStyle(K);var xt=aa(c.numer,je,w);if(c.continued){var bt=8.5/w.fontMetrics().ptPerEm,Xt=3.5/w.fontMetrics().ptPerEm;xt.height=xt.height<bt?bt:xt.height,xt.depth=xt.depth<Xt?Xt:xt.depth}je=w.havingStyle(Be);var Ar=aa(c.denom,je,w),xr,nn,En;c.hasBarLine?(c.barSize?(nn=br(c.barSize,w),xr=jt.makeLineSpan("frac-line",w,nn)):xr=jt.makeLineSpan("frac-line",w),nn=xr.height,En=xr.height):(xr=null,nn=0,En=w.fontMetrics().defaultRuleThickness);var Xr,fn,Mn;C.size===_.DISPLAY.size||c.size==="display"?(Xr=w.fontMetrics().num1,nn>0?fn=3*En:fn=7*En,Mn=w.fontMetrics().denom1):(nn>0?(Xr=w.fontMetrics().num2,fn=En):(Xr=w.fontMetrics().num3,fn=3*En),Mn=w.fontMetrics().denom2);var Jn;if(xr){var yn=w.fontMetrics().axisHeight;Xr-xt.depth-(yn+.5*nn)<fn&&(Xr+=fn-(Xr-xt.depth-(yn+.5*nn))),yn-.5*nn-(Ar.height-Mn)<fn&&(Mn+=fn-(yn-.5*nn-(Ar.height-Mn)));var fi=-(yn-.5*nn);Jn=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ar,shift:Mn},{type:"elem",elem:xr,shift:fi},{type:"elem",elem:xt,shift:-Xr}]},w)}else{var wi=Xr-xt.depth-(Ar.height-Mn);wi<fn&&(Xr+=.5*(fn-wi),Mn+=.5*(fn-wi)),Jn=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ar,shift:Mn},{type:"elem",elem:xt,shift:-Xr}]},w)}je=w.havingStyle(C),Jn.height*=je.sizeMultiplier/w.sizeMultiplier,Jn.depth*=je.sizeMultiplier/w.sizeMultiplier;var qi;C.size===_.DISPLAY.size?qi=w.fontMetrics().delim1:qi=w.fontMetrics().delim2;var Ki,Ia;return c.leftDelim==null?Ki=ms(w,["mopen"]):Ki=so.customSizedDelim(c.leftDelim,qi,!0,w.havingStyle(C),c.mode,["mopen"]),c.continued?Ia=jt.makeSpan([]):c.rightDelim==null?Ia=ms(w,["mclose"]):Ia=so.customSizedDelim(c.rightDelim,qi,!0,w.havingStyle(C),c.mode,["mclose"]),jt.makeSpan(["mord"].concat(je.sizingClasses(w)),[Ki,jt.makeSpan(["mfrac"],[Jn]),Ia],w)},sc=function(c,w){var C=new Yn.MathNode("mfrac",[ki(c.numer,w),ki(c.denom,w)]);if(!c.hasBarLine)C.setAttribute("linethickness","0px");else if(c.barSize){var K=br(c.barSize,w);C.setAttribute("linethickness",K+"em")}var Be=ac(c.size,w.style);if(Be.size!==w.style.size){C=new Yn.MathNode("mstyle",[C]);var je=Be.size===_.DISPLAY.size?"true":"false";C.setAttribute("displaystyle",je),C.setAttribute("scriptlevel","0")}if(c.leftDelim!=null||c.rightDelim!=null){var xt=[];if(c.leftDelim!=null){var bt=new Yn.MathNode("mo",[new Yn.TextNode(c.leftDelim.replace("\\",""))]);bt.setAttribute("fence","true"),xt.push(bt)}if(xt.push(C),c.rightDelim!=null){var Xt=new Yn.MathNode("mo",[new Yn.TextNode(c.rightDelim.replace("\\",""))]);Xt.setAttribute("fence","true"),xt.push(Xt)}return io(xt)}return C};oi({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0],je=w[1],xt,bt=null,Xt=null,Ar="auto";switch(K){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":xt=!0;break;case"\\\\atopfrac":xt=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":xt=!1,bt="(",Xt=")";break;case"\\\\bracefrac":xt=!1,bt="\\{",Xt="\\}";break;case"\\\\brackfrac":xt=!1,bt="[",Xt="]";break;default:throw new Error("Unrecognized genfrac command")}switch(K){case"\\cfrac":case"\\dfrac":case"\\dbinom":Ar="display";break;case"\\tfrac":case"\\tbinom":Ar="text";break}return{type:"genfrac",mode:C.mode,continued:K==="\\cfrac",numer:Be,denom:je,hasBarLine:xt,leftDelim:bt,rightDelim:Xt,size:Ar,barSize:null}},htmlBuilder:du,mathmlBuilder:sc}),oi({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(c){var w=c.parser,C=c.funcName,K=c.token,Be;switch(C){case"\\over":Be="\\frac";break;case"\\choose":Be="\\binom";break;case"\\atop":Be="\\\\atopfrac";break;case"\\brace":Be="\\\\bracefrac";break;case"\\brack":Be="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:w.mode,replaceWith:Be,token:K}}});var Xo=["display","text","script","scriptscript"],Hu=function(c){var w=null;return c.length>0&&(w=c,w=w==="."?null:w),w};oi({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(c,w){var C=c.parser,K=w[4],Be=w[5],je=Gn(w[0],"atom");je&&(je=Ei(w[0],"open"));var xt=je?Hu(je.text):null,bt=Gn(w[1],"atom");bt&&(bt=Ei(w[1],"close"));var Xt=bt?Hu(bt.text):null,Ar=Ln(w[2],"size"),xr,nn=null;Ar.isBlank?xr=!0:(nn=Ar.value,xr=nn.number>0);var En="auto",Xr=Gn(w[3],"ordgroup");if(Xr){if(Xr.body.length>0){var fn=Ln(Xr.body[0],"textord");En=Xo[Number(fn.text)]}}else Xr=Ln(w[3],"textord"),En=Xo[Number(Xr.text)];return{type:"genfrac",mode:C.mode,numer:K,denom:Be,continued:!1,hasBarLine:xr,barSize:nn,leftDelim:xt,rightDelim:Xt,size:En}},htmlBuilder:du,mathmlBuilder:sc}),oi({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(c,w){var C=c.parser,K=c.funcName,Be=c.token;return{type:"infix",mode:C.mode,replaceWith:"\\\\abovefrac",size:Ln(w[0],"size").value,token:Be}}}),oi({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0],je=S(Ln(w[1],"infix").size),xt=w[2],bt=je.number>0;return{type:"genfrac",mode:C.mode,numer:Be,denom:xt,continued:!1,hasBarLine:bt,barSize:je,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:du,mathmlBuilder:sc});var oc=function(c,w){var C=w.style,K,Be,je=Gn(c,"supsub");je?(K=je.sup?aa(je.sup,w.havingStyle(C.sup()),w):aa(je.sub,w.havingStyle(C.sub()),w),Be=Ln(je.base,"horizBrace")):Be=Ln(c,"horizBrace");var xt=aa(Be.base,w.havingBaseStyle(_.DISPLAY)),bt=pi.svgSpan(Be,w),Xt;if(Be.isOver?(Xt=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"kern",size:.1},{type:"elem",elem:bt}]},w),Xt.children[0].children[0].children[1].classes.push("svg-align")):(Xt=jt.makeVList({positionType:"bottom",positionData:xt.depth+.1+bt.height,children:[{type:"elem",elem:bt},{type:"kern",size:.1},{type:"elem",elem:xt}]},w),Xt.children[0].children[0].children[0].classes.push("svg-align")),K){var Ar=jt.makeSpan(["mord",Be.isOver?"mover":"munder"],[Xt],w);Be.isOver?Xt=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ar},{type:"kern",size:.2},{type:"elem",elem:K}]},w):Xt=jt.makeVList({positionType:"bottom",positionData:Ar.depth+.2+K.height+K.depth,children:[{type:"elem",elem:K},{type:"kern",size:.2},{type:"elem",elem:Ar}]},w)}return jt.makeSpan(["mord",Be.isOver?"mover":"munder"],[Xt],w)},b=function(c,w){var C=pi.mathMLnode(c.label);return new Yn.MathNode(c.isOver?"mover":"munder",[ki(c.base,w),C])};oi({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(c,w){var C=c.parser,K=c.funcName;return{type:"horizBrace",mode:C.mode,label:K,isOver:/^\\over/.test(K),base:w[0]}},htmlBuilder:oc,mathmlBuilder:b}),oi({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(c,w){var C=c.parser,K=w[1],Be=Ln(w[0],"url").url;return C.settings.isTrusted({command:"\\href",url:Be})?{type:"href",mode:C.mode,href:Be,body:ga(K)}:C.formatUnsupportedCmd("\\href")},htmlBuilder:function(c,w){var C=la(c.body,w,!1);return jt.makeAnchor(c.href,[],C,w)},mathmlBuilder:function(c,w){var C=Hi(c.body,w);return C instanceof fs||(C=new fs("mrow",[C])),C.setAttribute("href",c.href),C}}),oi({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(c,w){var C=c.parser,K=Ln(w[0],"url").url;if(!C.settings.isTrusted({command:"\\url",url:K}))return C.formatUnsupportedCmd("\\url");for(var Be=[],je=0;je<K.length;je++){var xt=K[je];xt==="~"&&(xt="\\textasciitilde"),Be.push({type:"textord",mode:"text",text:xt})}var bt={type:"text",mode:C.mode,font:"\\texttt",body:Be};return{type:"href",mode:C.mode,href:K,body:ga(bt)}}}),oi({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(c,w){var C=c.parser;return{type:"htmlmathml",mode:C.mode,html:ga(w[0]),mathml:ga(w[1])}},htmlBuilder:function(c,w){var C=la(c.html,w,!1);return jt.makeFragment(C)},mathmlBuilder:function(c,w){return Hi(c.mathml,w)}});var u=function(c){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(c))return{number:+c,unit:"bp"};var w=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(c);if(!w)throw new Y("Invalid size: '"+c+"' in \\includegraphics");var C={number:+(w[1]+w[2]),unit:w[3]};if(!hr(C))throw new Y("Invalid unit: '"+C.unit+"' in \\includegraphics.");return C};oi({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(c,w,C){var K=c.parser,Be={number:0,unit:"em"},je={number:.9,unit:"em"},xt={number:0,unit:"em"},bt="";if(C[0])for(var Xt=Ln(C[0],"raw").string,Ar=Xt.split(","),xr=0;xr<Ar.length;xr++){var nn=Ar[xr].split("=");if(nn.length===2){var En=nn[1].trim();switch(nn[0].trim()){case"alt":bt=En;break;case"width":Be=u(En);break;case"height":je=u(En);break;case"totalheight":xt=u(En);break;default:throw new Y("Invalid key: '"+nn[0]+"' in \\includegraphics.")}}}var Xr=Ln(w[0],"url").url;return bt===""&&(bt=Xr,bt=bt.replace(/^.*[\\/]/,""),bt=bt.substring(0,bt.lastIndexOf("."))),K.settings.isTrusted({command:"\\includegraphics",url:Xr})?{type:"includegraphics",mode:K.mode,alt:bt,width:Be,height:je,totalheight:xt,src:Xr}:K.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(c,w){var C=br(c.height,w),K=0;c.totalheight.number>0&&(K=br(c.totalheight,w)-C,K=Number(K.toFixed(2)));var Be=0;c.width.number>0&&(Be=br(c.width,w));var je={height:C+K+"em"};Be>0&&(je.width=Be+"em"),K>0&&(je.verticalAlign=-K+"em");var xt=new fe(c.src,c.alt,je);return xt.height=C,xt.depth=K,xt},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mglyph",[]);C.setAttribute("alt",c.alt);var K=br(c.height,w),Be=0;if(c.totalheight.number>0&&(Be=br(c.totalheight,w)-K,Be=Be.toFixed(2),C.setAttribute("valign","-"+Be+"em")),C.setAttribute("height",K+Be+"em"),c.width.number>0){var je=br(c.width,w);C.setAttribute("width",je+"em")}return C.setAttribute("src",c.src),C}}),oi({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,w){var C=c.parser,K=c.funcName,Be=Ln(w[0],"size");if(C.settings.strict){var je=K[1]==="m",xt=Be.value.unit==="mu";je?(xt||C.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+K+" supports only mu units, "+("not "+Be.value.unit+" units")),C.mode!=="math"&&C.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+K+" works only in math mode")):xt&&C.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+K+" doesn't support mu units")}return{type:"kern",mode:C.mode,dimension:Be.value}},htmlBuilder:function(c,w){return jt.makeGlue(c.dimension,w)},mathmlBuilder:function(c,w){var C=br(c.dimension,w);return new Yn.SpaceNode(C)}}),oi({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0];return{type:"lap",mode:C.mode,alignment:K.slice(5),body:Be}},htmlBuilder:function(c,w){var C;c.alignment==="clap"?(C=jt.makeSpan([],[aa(c.body,w)]),C=jt.makeSpan(["inner"],[C],w)):C=jt.makeSpan(["inner"],[aa(c.body,w)]);var K=jt.makeSpan(["fix"],[]),Be=jt.makeSpan([c.alignment],[C,K],w),je=jt.makeSpan(["strut"]);return je.style.height=Be.height+Be.depth+"em",je.style.verticalAlign=-Be.depth+"em",Be.children.unshift(je),Be=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Be}]},w),jt.makeSpan(["mord"],[Be],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[ki(c.body,w)]);if(c.alignment!=="rlap"){var K=c.alignment==="llap"?"-1":"-0.5";C.setAttribute("lspace",K+"width")}return C.setAttribute("width","0px"),C}}),oi({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,w){var C=c.funcName,K=c.parser,Be=K.mode;K.switchMode("math");var je=C==="\\("?"\\)":"$",xt=K.parseExpression(!1,je);return K.expect(je),K.switchMode(Be),{type:"styling",mode:K.mode,style:"text",body:xt}}}),oi({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,w){throw new Y("Mismatched "+c.funcName)}});var y=function(c,w){switch(w.style.size){case _.DISPLAY.size:return c.display;case _.TEXT.size:return c.text;case _.SCRIPT.size:return c.script;case _.SCRIPTSCRIPT.size:return c.scriptscript;default:return c.text}};oi({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(c,w){var C=c.parser;return{type:"mathchoice",mode:C.mode,display:ga(w[0]),text:ga(w[1]),script:ga(w[2]),scriptscript:ga(w[3])}},htmlBuilder:function(c,w){var C=y(c,w),K=la(C,w,!1);return jt.makeFragment(K)},mathmlBuilder:function(c,w){var C=y(c,w);return Hi(C,w)}});var M=function(c,w,C,K,Be,je,xt){c=jt.makeSpan([],[c]);var bt,Xt;if(w){var Ar=aa(w,K.havingStyle(Be.sup()),K);Xt={elem:Ar,kern:Math.max(K.fontMetrics().bigOpSpacing1,K.fontMetrics().bigOpSpacing3-Ar.depth)}}if(C){var xr=aa(C,K.havingStyle(Be.sub()),K);bt={elem:xr,kern:Math.max(K.fontMetrics().bigOpSpacing2,K.fontMetrics().bigOpSpacing4-xr.height)}}var nn;if(Xt&&bt){var En=K.fontMetrics().bigOpSpacing5+bt.elem.height+bt.elem.depth+bt.kern+c.depth+xt;nn=jt.makeVList({positionType:"bottom",positionData:En,children:[{type:"kern",size:K.fontMetrics().bigOpSpacing5},{type:"elem",elem:bt.elem,marginLeft:-je+"em"},{type:"kern",size:bt.kern},{type:"elem",elem:c},{type:"kern",size:Xt.kern},{type:"elem",elem:Xt.elem,marginLeft:je+"em"},{type:"kern",size:K.fontMetrics().bigOpSpacing5}]},K)}else if(bt){var Xr=c.height-xt;nn=jt.makeVList({positionType:"top",positionData:Xr,children:[{type:"kern",size:K.fontMetrics().bigOpSpacing5},{type:"elem",elem:bt.elem,marginLeft:-je+"em"},{type:"kern",size:bt.kern},{type:"elem",elem:c}]},K)}else if(Xt){var fn=c.depth+xt;nn=jt.makeVList({positionType:"bottom",positionData:fn,children:[{type:"elem",elem:c},{type:"kern",size:Xt.kern},{type:"elem",elem:Xt.elem,marginLeft:je+"em"},{type:"kern",size:K.fontMetrics().bigOpSpacing5}]},K)}else return c;return jt.makeSpan(["mop","op-limits"],[nn],K)},ne=["\\smallint"],W=function(c,w){var C,K,Be=!1,je,xt=Gn(c,"supsub");xt?(C=xt.sup,K=xt.sub,je=Ln(xt.base,"op"),Be=!0):je=Ln(c,"op");var bt=w.style,Xt=!1;bt.size===_.DISPLAY.size&&je.symbol&&!F.contains(ne,je.name)&&(Xt=!0);var Ar;if(je.symbol){var xr=Xt?"Size2-Regular":"Size1-Regular",nn="";if((je.name==="\\oiint"||je.name==="\\oiiint")&&(nn=je.name.substr(1),je.name=nn==="oiint"?"\\iint":"\\iiint"),Ar=jt.makeSymbol(je.name,xr,"math",w,["mop","op-symbol",Xt?"large-op":"small-op"]),nn.length>0){var En=Ar.italic,Xr=jt.staticSvg(nn+"Size"+(Xt?"2":"1"),w);Ar=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ar,shift:0},{type:"elem",elem:Xr,shift:Xt?.08:0}]},w),je.name="\\"+nn,Ar.classes.unshift("mop"),Ar.italic=En}}else if(je.body){var fn=la(je.body,w,!0);fn.length===1&&fn[0]instanceof N?(Ar=fn[0],Ar.classes[0]="mop"):Ar=jt.makeSpan(["mop"],jt.tryCombineChars(fn),w)}else{for(var Mn=[],Jn=1;Jn<je.name.length;Jn++)Mn.push(jt.mathsym(je.name[Jn],je.mode,w));Ar=jt.makeSpan(["mop"],Mn,w)}var wi=0,yn=0;return(Ar instanceof N||je.name==="\\oiint"||je.name==="\\oiiint")&&!je.suppressBaseShift&&(wi=(Ar.height-Ar.depth)/2-w.fontMetrics().axisHeight,yn=Ar.italic),Be?M(Ar,C,K,w,bt,yn,wi):(wi&&(Ar.style.position="relative",Ar.style.top=wi+"em"),Ar)},ge=function(c,w){var C;if(c.symbol)C=new fs("mo",[La(c.name,c.mode)]),F.contains(ne,c.name)&&C.setAttribute("largeop","false");else if(c.body)C=new fs("mo",ta(c.body,w));else{C=new fs("mi",[new Bo(c.name.slice(1))]);var K=new fs("mo",[La("\u2061","text")]);c.parentIsSupSub?C=new fs("mo",[C,K]):C=_o([C,K])}return C},Le={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};oi({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(c,w){var C=c.parser,K=c.funcName,Be=K;return Be.length===1&&(Be=Le[Be]),{type:"op",mode:C.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Be}},htmlBuilder:W,mathmlBuilder:ge}),oi({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(c,w){var C=c.parser,K=w[0];return{type:"op",mode:C.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ga(K)}},htmlBuilder:W,mathmlBuilder:ge});var ke={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};oi({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(c){var w=c.parser,C=c.funcName;return{type:"op",mode:w.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:C}},htmlBuilder:W,mathmlBuilder:ge}),oi({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(c){var w=c.parser,C=c.funcName;return{type:"op",mode:w.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:C}},htmlBuilder:W,mathmlBuilder:ge}),oi({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(c){var w=c.parser,C=c.funcName,K=C;return K.length===1&&(K=ke[K]),{type:"op",mode:w.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:K}},htmlBuilder:W,mathmlBuilder:ge});var rt=function(c,w){var C,K,Be=!1,je,xt=Gn(c,"supsub");xt?(C=xt.sup,K=xt.sub,je=Ln(xt.base,"operatorname"),Be=!0):je=Ln(c,"operatorname");var bt;if(je.body.length>0){for(var Xt=je.body.map(function(En){var Xr=En.text;return typeof Xr=="string"?{type:"textord",mode:En.mode,text:Xr}:En}),Ar=la(Xt,w.withFont("mathrm"),!0),xr=0;xr<Ar.length;xr++){var nn=Ar[xr];nn instanceof N&&(nn.text=nn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}bt=jt.makeSpan(["mop"],Ar,w)}else bt=jt.makeSpan(["mop"],[],w);return Be?M(bt,C,K,w,w.style,0,0):bt},yt=function(c,w){for(var C=ta(c.body,w.withFont("mathrm")),K=!0,Be=0;Be<C.length;Be++){var je=C[Be];if(!(je instanceof Yn.SpaceNode))if(je instanceof Yn.MathNode)switch(je.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var xt=je.children[0];je.children.length===1&&xt instanceof Yn.TextNode?xt.text=xt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):K=!1;break}default:K=!1}else K=!1}if(K){var bt=C.map(function(xr){return xr.toText()}).join("");C=[new Yn.TextNode(bt)]}var Xt=new Yn.MathNode("mi",C);Xt.setAttribute("mathvariant","normal");var Ar=new Yn.MathNode("mo",[La("\u2061","text")]);return c.parentIsSupSub?new Yn.MathNode("mo",[Xt,Ar]):Yn.newDocumentFragment([Xt,Ar])};oi({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0];return{type:"operatorname",mode:C.mode,body:ga(Be),alwaysHandleSupSub:K==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:rt,mathmlBuilder:yt}),Ca({type:"ordgroup",htmlBuilder:function(c,w){return c.semisimple?jt.makeFragment(la(c.body,w,!1)):jt.makeSpan(["mord"],la(c.body,w,!0),w)},mathmlBuilder:function(c,w){return Hi(c.body,w,!0)}}),oi({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(c,w){var C=c.parser,K=w[0];return{type:"overline",mode:C.mode,body:K}},htmlBuilder:function(c,w){var C=aa(c.body,w.havingCrampedStyle()),K=jt.makeLineSpan("overline-line",w),Be=w.fontMetrics().defaultRuleThickness,je=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C},{type:"kern",size:3*Be},{type:"elem",elem:K},{type:"kern",size:Be}]},w);return jt.makeSpan(["mord","overline"],[je],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mo",[new Yn.TextNode("\u203E")]);C.setAttribute("stretchy","true");var K=new Yn.MathNode("mover",[ki(c.body,w),C]);return K.setAttribute("accent","true"),K}}),oi({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,K=w[0];return{type:"phantom",mode:C.mode,body:ga(K)}},htmlBuilder:function(c,w){var C=la(c.body,w.withPhantom(),!1);return jt.makeFragment(C)},mathmlBuilder:function(c,w){var C=ta(c.body,w);return new Yn.MathNode("mphantom",C)}}),oi({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,K=w[0];return{type:"hphantom",mode:C.mode,body:K}},htmlBuilder:function(c,w){var C=jt.makeSpan([],[aa(c.body,w.withPhantom())]);if(C.height=0,C.depth=0,C.children)for(var K=0;K<C.children.length;K++)C.children[K].height=0,C.children[K].depth=0;return C=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},w),jt.makeSpan(["mord"],[C],w)},mathmlBuilder:function(c,w){var C=ta(ga(c.body),w),K=new Yn.MathNode("mphantom",C),Be=new Yn.MathNode("mpadded",[K]);return Be.setAttribute("height","0px"),Be.setAttribute("depth","0px"),Be}}),oi({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,K=w[0];return{type:"vphantom",mode:C.mode,body:K}},htmlBuilder:function(c,w){var C=jt.makeSpan(["inner"],[aa(c.body,w.withPhantom())]),K=jt.makeSpan(["fix"],[]);return jt.makeSpan(["mord","rlap"],[C,K],w)},mathmlBuilder:function(c,w){var C=ta(ga(c.body),w),K=new Yn.MathNode("mphantom",C),Be=new Yn.MathNode("mpadded",[K]);return Be.setAttribute("width","0px"),Be}}),oi({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(c,w){var C=c.parser,K=Ln(w[0],"size").value,Be=w[1];return{type:"raisebox",mode:C.mode,dy:K,body:Be}},htmlBuilder:function(c,w){var C=aa(c.body,w),K=br(c.dy,w);return jt.makeVList({positionType:"shift",positionData:-K,children:[{type:"elem",elem:C}]},w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[ki(c.body,w)]),K=c.dy.number+c.dy.unit;return C.setAttribute("voffset",K),C}}),oi({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(c,w,C){var K=c.parser,Be=C[0],je=Ln(w[0],"size"),xt=Ln(w[1],"size");return{type:"rule",mode:K.mode,shift:Be&&Ln(Be,"size").value,width:je.value,height:xt.value}},htmlBuilder:function(c,w){var C=jt.makeSpan(["mord","rule"],[],w),K=br(c.width,w),Be=br(c.height,w),je=c.shift?br(c.shift,w):0;return C.style.borderRightWidth=K+"em",C.style.borderTopWidth=Be+"em",C.style.bottom=je+"em",C.width=K,C.height=Be+je,C.depth=-je,C.maxFontSize=Be*1.125*w.sizeMultiplier,C},mathmlBuilder:function(c,w){var C=br(c.width,w),K=br(c.height,w),Be=c.shift?br(c.shift,w):0,je=w.color&&w.getColor()||"black",xt=new Yn.MathNode("mspace");xt.setAttribute("mathbackground",je),xt.setAttribute("width",C+"em"),xt.setAttribute("height",K+"em");var bt=new Yn.MathNode("mpadded",[xt]);return Be>=0?bt.setAttribute("height","+"+Be+"em"):(bt.setAttribute("height",Be+"em"),bt.setAttribute("depth","+"+-Be+"em")),bt.setAttribute("voffset",Be+"em"),bt}});function vt(He,c,w){for(var C=la(He,c,!1),K=c.sizeMultiplier/w.sizeMultiplier,Be=0;Be<C.length;Be++){var je=C[Be].classes.indexOf("sizing");je<0?Array.prototype.push.apply(C[Be].classes,c.sizingClasses(w)):C[Be].classes[je+1]==="reset-size"+c.size&&(C[Be].classes[je+1]="reset-size"+w.size),C[Be].height*=K,C[Be].depth*=K}return jt.makeFragment(C)}var Pt=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ve=function(c,w){var C=w.havingSize(c.size);return vt(c.body,C,w)};oi({type:"sizing",names:Pt,props:{numArgs:0,allowedInText:!0},handler:function(c,w){var C=c.breakOnTokenText,K=c.funcName,Be=c.parser,je=Be.parseExpression(!1,C);return{type:"sizing",mode:Be.mode,size:Pt.indexOf(K)+1,body:je}},htmlBuilder:Ve,mathmlBuilder:function(c,w){var C=w.havingSize(c.size),K=ta(c.body,C),Be=new Yn.MathNode("mstyle",K);return Be.setAttribute("mathsize",C.sizeMultiplier+"em"),Be}}),oi({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(c,w,C){var K=c.parser,Be=!1,je=!1,xt=C[0]&&Ln(C[0],"ordgroup");if(xt)for(var bt="",Xt=0;Xt<xt.body.length;++Xt){var Ar=xt.body[Xt];if(bt=Ar.text,bt==="t")Be=!0;else if(bt==="b")je=!0;else{Be=!1,je=!1;break}}else Be=!0,je=!0;var xr=w[0];return{type:"smash",mode:K.mode,body:xr,smashHeight:Be,smashDepth:je}},htmlBuilder:function(c,w){var C=jt.makeSpan([],[aa(c.body,w)]);if(!c.smashHeight&&!c.smashDepth)return C;if(c.smashHeight&&(C.height=0,C.children))for(var K=0;K<C.children.length;K++)C.children[K].height=0;if(c.smashDepth&&(C.depth=0,C.children))for(var Be=0;Be<C.children.length;Be++)C.children[Be].depth=0;var je=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},w);return jt.makeSpan(["mord"],[je],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[ki(c.body,w)]);return c.smashHeight&&C.setAttribute("height","0px"),c.smashDepth&&C.setAttribute("depth","0px"),C}}),oi({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(c,w,C){var K=c.parser,Be=C[0],je=w[0];return{type:"sqrt",mode:K.mode,body:je,index:Be}},htmlBuilder:function(c,w){var C=aa(c.body,w.havingCrampedStyle());C.height===0&&(C.height=w.fontMetrics().xHeight),C=jt.wrapFragment(C,w);var K=w.fontMetrics(),Be=K.defaultRuleThickness,je=Be;w.style.id<_.TEXT.id&&(je=w.fontMetrics().xHeight);var xt=Be+je/4,bt=C.height+C.depth+xt+Be,Xt=so.sqrtImage(bt,w),Ar=Xt.span,xr=Xt.ruleWidth,nn=Xt.advanceWidth,En=Ar.height-xr;En>C.height+C.depth+xt&&(xt=(xt+En-C.height-C.depth)/2);var Xr=Ar.height-C.height-xt-xr;C.style.paddingLeft=nn+"em";var fn=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C,wrapperClasses:["svg-align"]},{type:"kern",size:-(C.height+Xr)},{type:"elem",elem:Ar},{type:"kern",size:xr}]},w);if(c.index){var Mn=w.havingStyle(_.SCRIPTSCRIPT),Jn=aa(c.index,Mn,w),wi=.6*(fn.height-fn.depth),yn=jt.makeVList({positionType:"shift",positionData:-wi,children:[{type:"elem",elem:Jn}]},w),fi=jt.makeSpan(["root"],[yn]);return jt.makeSpan(["mord","sqrt"],[fi,fn],w)}else return jt.makeSpan(["mord","sqrt"],[fn],w)},mathmlBuilder:function(c,w){var C=c.body,K=c.index;return K?new Yn.MathNode("mroot",[ki(C,w),ki(K,w)]):new Yn.MathNode("msqrt",[ki(C,w)])}});var cr={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT};oi({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(c,w){var C=c.breakOnTokenText,K=c.funcName,Be=c.parser,je=Be.parseExpression(!0,C),xt=K.slice(1,K.length-5);return{type:"styling",mode:Be.mode,style:xt,body:je}},htmlBuilder:function(c,w){var C=cr[c.style],K=w.havingStyle(C).withFont("");return vt(c.body,K,w)},mathmlBuilder:function(c,w){var C=cr[c.style],K=w.havingStyle(C),Be=ta(c.body,K),je=new Yn.MathNode("mstyle",Be),xt={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},bt=xt[c.style];return je.setAttribute("scriptlevel",bt[0]),je.setAttribute("displaystyle",bt[1]),je}});var tr=function(c,w){var C=c.base;if(C)if(C.type==="op"){var K=C.limits&&(w.style.size===_.DISPLAY.size||C.alwaysHandleSupSub);return K?W:null}else if(C.type==="operatorname"){var Be=C.alwaysHandleSupSub&&(w.style.size===_.DISPLAY.size||C.limits);return Be?rt:null}else{if(C.type==="accent")return F.isCharacterBox(C.base)?ua:null;if(C.type==="horizBrace"){var je=!c.sub;return je===C.isOver?oc:null}else return null}else return null};Ca({type:"supsub",htmlBuilder:function(c,w){var C=tr(c,w);if(C)return C(c,w);var K=c.base,Be=c.sup,je=c.sub,xt=aa(K,w),bt,Xt,Ar=w.fontMetrics(),xr=0,nn=0,En=K&&F.isCharacterBox(K);if(Be){var Xr=w.havingStyle(w.style.sup());bt=aa(Be,Xr,w),En||(xr=xt.height-Xr.fontMetrics().supDrop*Xr.sizeMultiplier/w.sizeMultiplier)}if(je){var fn=w.havingStyle(w.style.sub());Xt=aa(je,fn,w),En||(nn=xt.depth+fn.fontMetrics().subDrop*fn.sizeMultiplier/w.sizeMultiplier)}var Mn;w.style===_.DISPLAY?Mn=Ar.sup1:w.style.cramped?Mn=Ar.sup3:Mn=Ar.sup2;var Jn=w.sizeMultiplier,wi=.5/Ar.ptPerEm/Jn+"em",yn=null;if(Xt){var fi=c.base&&c.base.type==="op"&&c.base.name&&(c.base.name==="\\oiint"||c.base.name==="\\oiiint");(xt instanceof N||fi)&&(yn=-xt.italic+"em")}var qi;if(bt&&Xt){xr=Math.max(xr,Mn,bt.depth+.25*Ar.xHeight),nn=Math.max(nn,Ar.sub2);var Ki=Ar.defaultRuleThickness,Ia=4*Ki;if(xr-bt.depth-(Xt.height-nn)<Ia){nn=Ia-(xr-bt.depth)+Xt.height;var Ta=.8*Ar.xHeight-(xr-bt.depth);Ta>0&&(xr+=Ta,nn-=Ta)}var Xi=[{type:"elem",elem:Xt,shift:nn,marginRight:wi,marginLeft:yn},{type:"elem",elem:bt,shift:-xr,marginRight:wi}];qi=jt.makeVList({positionType:"individualShift",children:Xi},w)}else if(Xt){nn=Math.max(nn,Ar.sub1,Xt.height-.8*Ar.xHeight);var Fa=[{type:"elem",elem:Xt,marginLeft:yn,marginRight:wi}];qi=jt.makeVList({positionType:"shift",positionData:nn,children:Fa},w)}else if(bt)xr=Math.max(xr,Mn,bt.depth+.25*Ar.xHeight),qi=jt.makeVList({positionType:"shift",positionData:-xr,children:[{type:"elem",elem:bt,marginRight:wi}]},w);else throw new Error("supsub must have either sup or sub.");var Ba=Wi(xt,"right")||"mord";return jt.makeSpan([Ba],[xt,jt.makeSpan(["msupsub"],[qi])],w)},mathmlBuilder:function(c,w){var C=!1,K,Be,je=Gn(c.base,"horizBrace");je&&(Be=!!c.sup,Be===je.isOver&&(C=!0,K=je.isOver)),c.base&&(c.base.type==="op"||c.base.type==="operatorname")&&(c.base.parentIsSupSub=!0);var xt=[ki(c.base,w)];c.sub&&xt.push(ki(c.sub,w)),c.sup&&xt.push(ki(c.sup,w));var bt;if(C)bt=K?"mover":"munder";else if(c.sub)if(c.sup){var xr=c.base;xr&&xr.type==="op"&&xr.limits&&w.style===_.DISPLAY||xr&&xr.type==="operatorname"&&xr.alwaysHandleSupSub&&(w.style===_.DISPLAY||xr.limits)?bt="munderover":bt="msubsup"}else{var Ar=c.base;Ar&&Ar.type==="op"&&Ar.limits&&(w.style===_.DISPLAY||Ar.alwaysHandleSupSub)||Ar&&Ar.type==="operatorname"&&Ar.alwaysHandleSupSub&&(Ar.limits||w.style===_.DISPLAY)?bt="munder":bt="msub"}else{var Xt=c.base;Xt&&Xt.type==="op"&&Xt.limits&&(w.style===_.DISPLAY||Xt.alwaysHandleSupSub)||Xt&&Xt.type==="operatorname"&&Xt.alwaysHandleSupSub&&(Xt.limits||w.style===_.DISPLAY)?bt="mover":bt="msup"}var nn=new Yn.MathNode(bt,xt);return nn}}),Ca({type:"atom",htmlBuilder:function(c,w){return jt.mathsym(c.text,c.mode,w,["m"+c.family])},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mo",[La(c.text,c.mode)]);if(c.family==="bin"){var K=Zi(c,w);K==="bold-italic"&&C.setAttribute("mathvariant",K)}else c.family==="punct"?C.setAttribute("separator","true"):(c.family==="open"||c.family==="close")&&C.setAttribute("stretchy","false");return C}});var dr={mi:"italic",mn:"normal",mtext:"normal"};Ca({type:"mathord",htmlBuilder:function(c,w){return jt.makeOrd(c,w,"mathord")},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mi",[La(c.text,c.mode,w)]),K=Zi(c,w)||"italic";return K!==dr[C.type]&&C.setAttribute("mathvariant",K),C}}),Ca({type:"textord",htmlBuilder:function(c,w){return jt.makeOrd(c,w,"textord")},mathmlBuilder:function(c,w){var C=La(c.text,c.mode,w),K=Zi(c,w)||"normal",Be;return c.mode==="text"?Be=new Yn.MathNode("mtext",[C]):/[0-9]/.test(c.text)?Be=new Yn.MathNode("mn",[C]):c.text==="\\prime"?Be=new Yn.MathNode("mo",[C]):Be=new Yn.MathNode("mi",[C]),K!==dr[Be.type]&&Be.setAttribute("mathvariant",K),Be}});var Qt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},pr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ca({type:"spacing",htmlBuilder:function(c,w){if(pr.hasOwnProperty(c.text)){var C=pr[c.text].className||"";if(c.mode==="text"){var K=jt.makeOrd(c,w,"textord");return K.classes.push(C),K}else return jt.makeSpan(["mspace",C],[jt.mathsym(c.text,c.mode,w)],w)}else{if(Qt.hasOwnProperty(c.text))return jt.makeSpan(["mspace",Qt[c.text]],[],w);throw new Y('Unknown type of space "'+c.text+'"')}},mathmlBuilder:function(c,w){var C;if(pr.hasOwnProperty(c.text))C=new Yn.MathNode("mtext",[new Yn.TextNode("\xA0")]);else{if(Qt.hasOwnProperty(c.text))return new Yn.MathNode("mspace");throw new Y('Unknown type of space "'+c.text+'"')}return C}});var Mr=function(){var c=new Yn.MathNode("mtd",[]);return c.setAttribute("width","50%"),c};Ca({type:"tag",mathmlBuilder:function(c,w){var C=new Yn.MathNode("mtable",[new Yn.MathNode("mtr",[Mr(),new Yn.MathNode("mtd",[Hi(c.body,w)]),Mr(),new Yn.MathNode("mtd",[Hi(c.tag,w)])])]);return C.setAttribute("width","100%"),C}});var sn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Rn={"\\textbf":"textbf","\\textmd":"textmd"},di={"\\textit":"textit","\\textup":"textup"},pn=function(c,w){var C=c.font;return C?sn[C]?w.withTextFontFamily(sn[C]):Rn[C]?w.withTextFontWeight(Rn[C]):w.withTextFontShape(di[C]):w};oi({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(c,w){var C=c.parser,K=c.funcName,Be=w[0];return{type:"text",mode:C.mode,body:ga(Be),font:K}},htmlBuilder:function(c,w){var C=pn(c,w),K=la(c.body,C,!0);return jt.makeSpan(["mord","text"],jt.tryCombineChars(K),C)},mathmlBuilder:function(c,w){var C=pn(c,w);return Hi(c.body,C)}}),oi({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser;return{type:"underline",mode:C.mode,body:w[0]}},htmlBuilder:function(c,w){var C=aa(c.body,w),K=jt.makeLineSpan("underline-line",w),Be=w.fontMetrics().defaultRuleThickness,je=jt.makeVList({positionType:"top",positionData:C.height,children:[{type:"kern",size:Be},{type:"elem",elem:K},{type:"kern",size:3*Be},{type:"elem",elem:C}]},w);return jt.makeSpan(["mord","underline"],[je],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mo",[new Yn.TextNode("\u203E")]);C.setAttribute("stretchy","true");var K=new Yn.MathNode("munder",[ki(c.body,w),C]);return K.setAttribute("accentunder","true"),K}}),oi({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(c,w,C){throw new Y("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(c,w){for(var C=Sr(c),K=[],Be=w.havingStyle(w.style.text()),je=0;je<C.length;je++){var xt=C[je];xt==="~"&&(xt="\\textasciitilde"),K.push(jt.makeSymbol(xt,"Typewriter-Regular",c.mode,Be,["mord","texttt"]))}return jt.makeSpan(["mord","text"].concat(Be.sizingClasses(w)),jt.tryCombineChars(K),Be)},mathmlBuilder:function(c,w){var C=new Yn.TextNode(Sr(c)),K=new Yn.MathNode("mtext",[C]);return K.setAttribute("mathvariant","monospace"),K}});var Sr=function(c){return c.body.replace(/ /g,c.star?"\u2423":"\xA0")},xn=ra,Nn=xn,er=`[ \r
|
|
|
]`,nr="\\\\[a-zA-Z@]+",ye="\\\\[^\uD800-\uDFFF]",xe=""+nr+er+"*",et=new RegExp("^("+nr+")"+er+"*$"),st="[\u0300-\u036F]",gt=new RegExp(st+"+$"),ft="("+er+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(st+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(st+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+xe)+("|"+ye+")"),Ut=function(){function He(w,C){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=w,this.settings=C,this.tokenRegex=new RegExp(ft,"g"),this.catcodes={"%":14}}var c=He.prototype;return c.setCatcode=function(C,K){this.catcodes[C]=K},c.lex=function(){var C=this.input,K=this.tokenRegex.lastIndex;if(K===C.length)return new Me("EOF",new se(this,K,K));var Be=this.tokenRegex.exec(C);if(Be===null||Be.index!==K)throw new Y("Unexpected character: '"+C[K]+"'",new Me(C[K],new se(this,K,K+1)));var je=Be[2]||" ";if(this.catcodes[je]===14){var xt=C.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return xt===-1?(this.tokenRegex.lastIndex=C.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=xt+1,this.lex()}var bt=je.match(et);return bt&&(je=bt[1]),new Me(je,new se(this,K,this.tokenRegex.lastIndex))},He}(),$t=function(){function He(w,C){w===void 0&&(w={}),C===void 0&&(C={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=C,this.builtins=w,this.undefStack=[]}var c=He.prototype;return c.beginGroup=function(){this.undefStack.push({})},c.endGroup=function(){if(this.undefStack.length===0)throw new Y("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var C=this.undefStack.pop();for(var K in C)C.hasOwnProperty(K)&&(C[K]===void 0?delete this.current[K]:this.current[K]=C[K])},c.has=function(C){return this.current.hasOwnProperty(C)||this.builtins.hasOwnProperty(C)},c.get=function(C){return this.current.hasOwnProperty(C)?this.current[C]:this.builtins[C]},c.set=function(C,K,Be){if(Be===void 0&&(Be=!1),Be){for(var je=0;je<this.undefStack.length;je++)delete this.undefStack[je][C];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][C]=K)}else{var xt=this.undefStack[this.undefStack.length-1];xt&&!xt.hasOwnProperty(C)&&(xt[C]=this.current[C])}this.current[C]=K},He}(),sr={},Ze=sr;function _e(He,c){sr[He]=c}_e("\\@firstoftwo",function(He){var c=He.consumeArgs(2);return{tokens:c[0],numArgs:0}}),_e("\\@secondoftwo",function(He){var c=He.consumeArgs(2);return{tokens:c[1],numArgs:0}}),_e("\\@ifnextchar",function(He){var c=He.consumeArgs(3),w=He.future();return c[0].length===1&&c[0][0].text===w.text?{tokens:c[1],numArgs:0}:{tokens:c[2],numArgs:0}}),_e("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),_e("\\TextOrMath",function(He){var c=He.consumeArgs(2);return He.mode==="text"?{tokens:c[0],numArgs:0}:{tokens:c[1],numArgs:0}});var wt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};_e("\\char",function(He){var c=He.popToken(),w,C="";if(c.text==="'")w=8,c=He.popToken();else if(c.text==='"')w=16,c=He.popToken();else if(c.text==="`")if(c=He.popToken(),c.text[0]==="\\")C=c.text.charCodeAt(1);else{if(c.text==="EOF")throw new Y("\\char` missing argument");C=c.text.charCodeAt(0)}else w=10;if(w){if(C=wt[c.text],C==null||C>=w)throw new Y("Invalid base-"+w+" digit "+c.text);for(var K;(K=wt[He.future().text])!=null&&K<w;)C*=w,C+=K,He.popToken()}return"\\@char{"+C+"}"});var Ht=function(c,w){var C=c.consumeArgs(1)[0];if(C.length!==1)throw new Y("\\gdef's first argument must be a macro name");var K=C[0].text,Be=0;for(C=c.consumeArgs(1)[0];C.length===1&&C[0].text==="#";){if(C=c.consumeArgs(1)[0],C.length!==1)throw new Y('Invalid argument number length "'+C.length+'"');if(!/^[1-9]$/.test(C[0].text))throw new Y('Invalid argument number "'+C[0].text+'"');if(Be++,parseInt(C[0].text)!==Be)throw new Y('Argument number "'+C[0].text+'" out of order');C=c.consumeArgs(1)[0]}return c.macros.set(K,{tokens:C,numArgs:Be},w),""};_e("\\gdef",function(He){return Ht(He,!0)}),_e("\\def",function(He){return Ht(He,!1)}),_e("\\global",function(He){var c=He.consumeArgs(1)[0];if(c.length!==1)throw new Y("Invalid command after \\global");var w=c[0].text;if(w==="\\def")return Ht(He,!0);throw new Y("Invalid command '"+w+"' after \\global")});var Wt=function(c,w,C){var K=c.consumeArgs(1)[0];if(K.length!==1)throw new Y("\\newcommand's first argument must be a macro name");var Be=K[0].text,je=c.isDefined(Be);if(je&&!w)throw new Y("\\newcommand{"+Be+"} attempting to redefine "+(Be+"; use \\renewcommand"));if(!je&&!C)throw new Y("\\renewcommand{"+Be+"} when command "+Be+" does not yet exist; use \\newcommand");var xt=0;if(K=c.consumeArgs(1)[0],K.length===1&&K[0].text==="["){for(var bt="",Xt=c.expandNextToken();Xt.text!=="]"&&Xt.text!=="EOF";)bt+=Xt.text,Xt=c.expandNextToken();if(!bt.match(/^\s*[0-9]+\s*$/))throw new Y("Invalid number of arguments: "+bt);xt=parseInt(bt),K=c.consumeArgs(1)[0]}return c.macros.set(Be,{tokens:K,numArgs:xt}),""};_e("\\newcommand",function(He){return Wt(He,!1,!0)}),_e("\\renewcommand",function(He){return Wt(He,!0,!1)}),_e("\\providecommand",function(He){return Wt(He,!0,!0)}),_e("\\bgroup","{"),_e("\\egroup","}"),_e("\\lq","`"),_e("\\rq","'"),_e("\\aa","\\r a"),_e("\\AA","\\r A"),_e("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),_e("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),_e("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),_e("\u212C","\\mathscr{B}"),_e("\u2130","\\mathscr{E}"),_e("\u2131","\\mathscr{F}"),_e("\u210B","\\mathscr{H}"),_e("\u2110","\\mathscr{I}"),_e("\u2112","\\mathscr{L}"),_e("\u2133","\\mathscr{M}"),_e("\u211B","\\mathscr{R}"),_e("\u212D","\\mathfrak{C}"),_e("\u210C","\\mathfrak{H}"),_e("\u2128","\\mathfrak{Z}"),_e("\\Bbbk","\\Bbb{k}"),_e("\xB7","\\cdotp"),_e("\\llap","\\mathllap{\\textrm{#1}}"),_e("\\rlap","\\mathrlap{\\textrm{#1}}"),_e("\\clap","\\mathclap{\\textrm{#1}}"),_e("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),_e("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),_e("\\ne","\\neq"),_e("\u2260","\\neq"),_e("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),_e("\u2209","\\notin"),_e("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),_e("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),_e("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),_e("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),_e("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),_e("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),_e("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),_e("\u27C2","\\perp"),_e("\u203C","\\mathclose{!\\mkern-0.8mu!}"),_e("\u220C","\\notni"),_e("\u231C","\\ulcorner"),_e("\u231D","\\urcorner"),_e("\u231E","\\llcorner"),_e("\u231F","\\lrcorner"),_e("\xA9","\\copyright"),_e("\xAE","\\textregistered"),_e("\uFE0F","\\textregistered"),_e("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),_e("\u22EE","\\vdots"),_e("\\varGamma","\\mathit{\\Gamma}"),_e("\\varDelta","\\mathit{\\Delta}"),_e("\\varTheta","\\mathit{\\Theta}"),_e("\\varLambda","\\mathit{\\Lambda}"),_e("\\varXi","\\mathit{\\Xi}"),_e("\\varPi","\\mathit{\\Pi}"),_e("\\varSigma","\\mathit{\\Sigma}"),_e("\\varUpsilon","\\mathit{\\Upsilon}"),_e("\\varPhi","\\mathit{\\Phi}"),_e("\\varPsi","\\mathit{\\Psi}"),_e("\\varOmega","\\mathit{\\Omega}"),_e("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),_e("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),_e("\\boxed","\\fbox{$\\displaystyle{#1}$}"),_e("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),_e("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),_e("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var lr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};_e("\\dots",function(He){var c="\\dotso",w=He.expandAfterFuture().text;return w in lr?c=lr[w]:(w.substr(0,4)==="\\not"||w in wr.math&&F.contains(["bin","rel"],wr.math[w].group))&&(c="\\dotsb"),c});var St={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};_e("\\dotso",function(He){var c=He.future().text;return c in St?"\\ldots\\,":"\\ldots"}),_e("\\dotsc",function(He){var c=He.future().text;return c in St&&c!==","?"\\ldots\\,":"\\ldots"}),_e("\\cdots",function(He){var c=He.future().text;return c in St?"\\@cdots\\,":"\\@cdots"}),_e("\\dotsb","\\cdots"),_e("\\dotsm","\\cdots"),_e("\\dotsi","\\!\\cdots"),_e("\\dotsx","\\ldots\\,"),_e("\\DOTSI","\\relax"),_e("\\DOTSB","\\relax"),_e("\\DOTSX","\\relax"),_e("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),_e("\\,","\\tmspace+{3mu}{.1667em}"),_e("\\thinspace","\\,"),_e("\\>","\\mskip{4mu}"),_e("\\:","\\tmspace+{4mu}{.2222em}"),_e("\\medspace","\\:"),_e("\\;","\\tmspace+{5mu}{.2777em}"),_e("\\thickspace","\\;"),_e("\\!","\\tmspace-{3mu}{.1667em}"),_e("\\negthinspace","\\!"),_e("\\negmedspace","\\tmspace-{4mu}{.2222em}"),_e("\\negthickspace","\\tmspace-{5mu}{.277em}"),_e("\\enspace","\\kern.5em "),_e("\\enskip","\\hskip.5em\\relax"),_e("\\quad","\\hskip1em\\relax"),_e("\\qquad","\\hskip2em\\relax"),_e("\\tag","\\@ifstar\\tag@literal\\tag@paren"),_e("\\tag@paren","\\tag@literal{({#1})}"),_e("\\tag@literal",function(He){if(He.macros.get("\\df@tag"))throw new Y("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),_e("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),_e("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),_e("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),_e("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),_e("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),_e("\\\\","\\newline"),_e("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var yr=pt["Main-Regular"][84][1]-.7*pt["Main-Regular"][65][1]+"em";_e("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+yr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),_e("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+yr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),_e("\\hspace","\\@ifstar\\@hspacer\\@hspace"),_e("\\@hspace","\\hskip #1\\relax"),_e("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),_e("\\ordinarycolon",":"),_e("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),_e("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),_e("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),_e("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),_e("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),_e("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),_e("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),_e("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),_e("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),_e("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),_e("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),_e("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),_e("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),_e("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),_e("\u2237","\\dblcolon"),_e("\u2239","\\eqcolon"),_e("\u2254","\\coloneqq"),_e("\u2255","\\eqqcolon"),_e("\u2A74","\\Coloneqq"),_e("\\ratio","\\vcentcolon"),_e("\\coloncolon","\\dblcolon"),_e("\\colonequals","\\coloneqq"),_e("\\coloncolonequals","\\Coloneqq"),_e("\\equalscolon","\\eqqcolon"),_e("\\equalscoloncolon","\\Eqqcolon"),_e("\\colonminus","\\coloneq"),_e("\\coloncolonminus","\\Coloneq"),_e("\\minuscolon","\\eqcolon"),_e("\\minuscoloncolon","\\Eqcolon"),_e("\\coloncolonapprox","\\Colonapprox"),_e("\\coloncolonsim","\\Colonsim"),_e("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),_e("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),_e("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),_e("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),_e("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),_e("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),_e("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),_e("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),_e("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),_e("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),_e("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),_e("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),_e("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),_e("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),_e("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),_e("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),_e("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),_e("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),_e("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),_e("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),_e("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),_e("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),_e("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),_e("\u27E6","\\llbracket"),_e("\u27E7","\\rrbracket"),_e("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),_e("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),_e("\u2983","\\lBrace"),_e("\u2984","\\rBrace"),_e("\\darr","\\downarrow"),_e("\\dArr","\\Downarrow"),_e("\\Darr","\\Downarrow"),_e("\\lang","\\langle"),_e("\\rang","\\rangle"),_e("\\uarr","\\uparrow"),_e("\\uArr","\\Uparrow"),_e("\\Uarr","\\Uparrow"),_e("\\N","\\mathbb{N}"),_e("\\R","\\mathbb{R}"),_e("\\Z","\\mathbb{Z}"),_e("\\alef","\\aleph"),_e("\\alefsym","\\aleph"),_e("\\Alpha","\\mathrm{A}"),_e("\\Beta","\\mathrm{B}"),_e("\\bull","\\bullet"),_e("\\Chi","\\mathrm{X}"),_e("\\clubs","\\clubsuit"),_e("\\cnums","\\mathbb{C}"),_e("\\Complex","\\mathbb{C}"),_e("\\Dagger","\\ddagger"),_e("\\diamonds","\\diamondsuit"),_e("\\empty","\\emptyset"),_e("\\Epsilon","\\mathrm{E}"),_e("\\Eta","\\mathrm{H}"),_e("\\exist","\\exists"),_e("\\harr","\\leftrightarrow"),_e("\\hArr","\\Leftrightarrow"),_e("\\Harr","\\Leftrightarrow"),_e("\\hearts","\\heartsuit"),_e("\\image","\\Im"),_e("\\infin","\\infty"),_e("\\Iota","\\mathrm{I}"),_e("\\isin","\\in"),_e("\\Kappa","\\mathrm{K}"),_e("\\larr","\\leftarrow"),_e("\\lArr","\\Leftarrow"),_e("\\Larr","\\Leftarrow"),_e("\\lrarr","\\leftrightarrow"),_e("\\lrArr","\\Leftrightarrow"),_e("\\Lrarr","\\Leftrightarrow"),_e("\\Mu","\\mathrm{M}"),_e("\\natnums","\\mathbb{N}"),_e("\\Nu","\\mathrm{N}"),_e("\\Omicron","\\mathrm{O}"),_e("\\plusmn","\\pm"),_e("\\rarr","\\rightarrow"),_e("\\rArr","\\Rightarrow"),_e("\\Rarr","\\Rightarrow"),_e("\\real","\\Re"),_e("\\reals","\\mathbb{R}"),_e("\\Reals","\\mathbb{R}"),_e("\\Rho","\\mathrm{P}"),_e("\\sdot","\\cdot"),_e("\\sect","\\S"),_e("\\spades","\\spadesuit"),_e("\\sub","\\subset"),_e("\\sube","\\subseteq"),_e("\\supe","\\supseteq"),_e("\\Tau","\\mathrm{T}"),_e("\\thetasym","\\vartheta"),_e("\\weierp","\\wp"),_e("\\Zeta","\\mathrm{Z}"),_e("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),_e("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),_e("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),_e("\\blue","\\textcolor{##6495ed}{#1}"),_e("\\orange","\\textcolor{##ffa500}{#1}"),_e("\\pink","\\textcolor{##ff00af}{#1}"),_e("\\red","\\textcolor{##df0030}{#1}"),_e("\\green","\\textcolor{##28ae7b}{#1}"),_e("\\gray","\\textcolor{gray}{#1}"),_e("\\purple","\\textcolor{##9d38bd}{#1}"),_e("\\blueA","\\textcolor{##ccfaff}{#1}"),_e("\\blueB","\\textcolor{##80f6ff}{#1}"),_e("\\blueC","\\textcolor{##63d9ea}{#1}"),_e("\\blueD","\\textcolor{##11accd}{#1}"),_e("\\blueE","\\textcolor{##0c7f99}{#1}"),_e("\\tealA","\\textcolor{##94fff5}{#1}"),_e("\\tealB","\\textcolor{##26edd5}{#1}"),_e("\\tealC","\\textcolor{##01d1c1}{#1}"),_e("\\tealD","\\textcolor{##01a995}{#1}"),_e("\\tealE","\\textcolor{##208170}{#1}"),_e("\\greenA","\\textcolor{##b6ffb0}{#1}"),_e("\\greenB","\\textcolor{##8af281}{#1}"),_e("\\greenC","\\textcolor{##74cf70}{#1}"),_e("\\greenD","\\textcolor{##1fab54}{#1}"),_e("\\greenE","\\textcolor{##0d923f}{#1}"),_e("\\goldA","\\textcolor{##ffd0a9}{#1}"),_e("\\goldB","\\textcolor{##ffbb71}{#1}"),_e("\\goldC","\\textcolor{##ff9c39}{#1}"),_e("\\goldD","\\textcolor{##e07d10}{#1}"),_e("\\goldE","\\textcolor{##a75a05}{#1}"),_e("\\redA","\\textcolor{##fca9a9}{#1}"),_e("\\redB","\\textcolor{##ff8482}{#1}"),_e("\\redC","\\textcolor{##f9685d}{#1}"),_e("\\redD","\\textcolor{##e84d39}{#1}"),_e("\\redE","\\textcolor{##bc2612}{#1}"),_e("\\maroonA","\\textcolor{##ffbde0}{#1}"),_e("\\maroonB","\\textcolor{##ff92c6}{#1}"),_e("\\maroonC","\\textcolor{##ed5fa6}{#1}"),_e("\\maroonD","\\textcolor{##ca337c}{#1}"),_e("\\maroonE","\\textcolor{##9e034e}{#1}"),_e("\\purpleA","\\textcolor{##ddd7ff}{#1}"),_e("\\purpleB","\\textcolor{##c6b9fc}{#1}"),_e("\\purpleC","\\textcolor{##aa87ff}{#1}"),_e("\\purpleD","\\textcolor{##7854ab}{#1}"),_e("\\purpleE","\\textcolor{##543b78}{#1}"),_e("\\mintA","\\textcolor{##f5f9e8}{#1}"),_e("\\mintB","\\textcolor{##edf2df}{#1}"),_e("\\mintC","\\textcolor{##e0e5cc}{#1}"),_e("\\grayA","\\textcolor{##f6f7f7}{#1}"),_e("\\grayB","\\textcolor{##f0f1f2}{#1}"),_e("\\grayC","\\textcolor{##e3e5e6}{#1}"),_e("\\grayD","\\textcolor{##d6d8da}{#1}"),_e("\\grayE","\\textcolor{##babec2}{#1}"),_e("\\grayF","\\textcolor{##888d93}{#1}"),_e("\\grayG","\\textcolor{##626569}{#1}"),_e("\\grayH","\\textcolor{##3b3e40}{#1}"),_e("\\grayI","\\textcolor{##21242c}{#1}"),_e("\\kaBlue","\\textcolor{##314453}{#1}"),_e("\\kaGreen","\\textcolor{##71B307}{#1}");var Gr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},$r=function(){function He(w,C,K){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=C,this.expansionCount=0,this.feed(w),this.macros=new $t(Ze,C.macros),this.mode=K,this.stack=[]}var c=He.prototype;return c.feed=function(C){this.lexer=new Ut(C,this.settings)},c.switchMode=function(C){this.mode=C},c.beginGroup=function(){this.macros.beginGroup()},c.endGroup=function(){this.macros.endGroup()},c.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},c.popToken=function(){return this.future(),this.stack.pop()},c.pushToken=function(C){this.stack.push(C)},c.pushTokens=function(C){var K;(K=this.stack).push.apply(K,C)},c.consumeSpaces=function(){for(;;){var C=this.future();if(C.text===" ")this.stack.pop();else break}},c.consumeArgs=function(C){for(var K=[],Be=0;Be<C;++Be){this.consumeSpaces();var je=this.popToken();if(je.text==="{"){for(var xt=[],bt=1;bt!==0;){var Xt=this.popToken();if(xt.push(Xt),Xt.text==="{")++bt;else if(Xt.text==="}")--bt;else if(Xt.text==="EOF")throw new Y("End of input in macro argument",je)}xt.pop(),xt.reverse(),K[Be]=xt}else{if(je.text==="EOF")throw new Y("End of input expecting macro argument");K[Be]=[je]}}return K},c.expandOnce=function(){var C=this.popToken(),K=C.text,Be=this._getExpansion(K);if(Be==null)return this.pushToken(C),C;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new Y("Too many expansions: infinite loop or need to increase maxExpand setting");var je=Be.tokens;if(Be.numArgs){var xt=this.consumeArgs(Be.numArgs);je=je.slice();for(var bt=je.length-1;bt>=0;--bt){var Xt=je[bt];if(Xt.text==="#"){if(bt===0)throw new Y("Incomplete placeholder at end of macro body",Xt);if(Xt=je[--bt],Xt.text==="#")je.splice(bt+1,1);else if(/^[1-9]$/.test(Xt.text)){var Ar;(Ar=je).splice.apply(Ar,[bt,2].concat(xt[+Xt.text-1]))}else throw new Y("Not a valid argument number",Xt)}}}return this.pushTokens(je),je},c.expandAfterFuture=function(){return this.expandOnce(),this.future()},c.expandNextToken=function(){for(;;){var C=this.expandOnce();if(C instanceof Me)if(C.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},c.expandMacro=function(C){if(this.macros.get(C)){var K=[],Be=this.stack.length;for(this.pushToken(new Me(C));this.stack.length>Be;){var je=this.expandOnce();je instanceof Me&&K.push(this.stack.pop())}return K}},c.expandMacroAsText=function(C){var K=this.expandMacro(C);return K&&K.map(function(Be){return Be.text}).join("")},c._getExpansion=function(C){var K=this.macros.get(C);if(K==null)return K;var Be=typeof K=="function"?K(this):K;if(typeof Be=="string"){var je=0;if(Be.indexOf("#")!==-1)for(var xt=Be.replace(/##/g,"");xt.indexOf("#"+(je+1))!==-1;)++je;for(var bt=new Ut(Be,this.settings),Xt=[],Ar=bt.lex();Ar.text!=="EOF";)Xt.push(Ar),Ar=bt.lex();Xt.reverse();var xr={tokens:Xt,numArgs:je};return xr}return Be},c.isDefined=function(C){return this.macros.has(C)||Nn.hasOwnProperty(C)||wr.math.hasOwnProperty(C)||wr.text.hasOwnProperty(C)||Gr.hasOwnProperty(C)},He}(),An={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Dn={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},ni=function(){function He(w,C){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new $r(w,C,this.mode),this.settings=C,this.leftrightDepth=0}var c=He.prototype;return c.expect=function(C,K){if(K===void 0&&(K=!0),this.fetch().text!==C)throw new Y("Expected '"+C+"', got '"+this.fetch().text+"'",this.fetch());K&&this.consume()},c.consume=function(){this.nextToken=null},c.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},c.switchMode=function(C){this.mode=C,this.gullet.switchMode(C)},c.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var C=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),C},c.parseExpression=function(C,K){for(var Be=[];;){this.mode==="math"&&this.consumeSpaces();var je=this.fetch();if(He.endOfExpression.indexOf(je.text)!==-1||K&&je.text===K||C&&Nn[je.text]&&Nn[je.text].infix)break;var xt=this.parseAtom(K);if(!xt)break;Be.push(xt)}return this.mode==="text"&&this.formLigatures(Be),this.handleInfixNodes(Be)},c.handleInfixNodes=function(C){for(var K=-1,Be,je=0;je<C.length;je++){var xt=Gn(C[je],"infix");if(xt){if(K!==-1)throw new Y("only one infix operator per group",xt.token);K=je,Be=xt.replaceWith}}if(K!==-1&&Be){var bt,Xt,Ar=C.slice(0,K),xr=C.slice(K+1);Ar.length===1&&Ar[0].type==="ordgroup"?bt=Ar[0]:bt={type:"ordgroup",mode:this.mode,body:Ar},xr.length===1&&xr[0].type==="ordgroup"?Xt=xr[0]:Xt={type:"ordgroup",mode:this.mode,body:xr};var nn;return Be==="\\\\abovefrac"?nn=this.callFunction(Be,[bt,C[K],Xt],[]):nn=this.callFunction(Be,[bt,Xt],[]),[nn]}else return C},c.handleSupSubscript=function(C){var K=this.fetch(),Be=K.text;this.consume();var je=this.parseGroup(C,!1,He.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!je)throw new Y("Expected group after '"+Be+"'",K);return je},c.formatUnsupportedCmd=function(C){for(var K=[],Be=0;Be<C.length;Be++)K.push({type:"textord",mode:"text",text:C[Be]});var je={type:"text",mode:this.mode,body:K},xt={type:"color",mode:this.mode,color:this.settings.errorColor,body:[je]};return xt},c.parseAtom=function(C){var K=this.parseGroup("atom",!1,null,C);if(this.mode==="text")return K;for(var Be,je;;){this.consumeSpaces();var xt=this.fetch();if(xt.text==="\\limits"||xt.text==="\\nolimits"){var bt=Gn(K,"op");if(bt){var Xt=xt.text==="\\limits";bt.limits=Xt,bt.alwaysHandleSupSub=!0}else if(bt=Gn(K,"operatorname"),bt&&bt.alwaysHandleSupSub){var Ar=xt.text==="\\limits";bt.limits=Ar}else throw new Y("Limit controls must follow a math operator",xt);this.consume()}else if(xt.text==="^"){if(Be)throw new Y("Double superscript",xt);Be=this.handleSupSubscript("superscript")}else if(xt.text==="_"){if(je)throw new Y("Double subscript",xt);je=this.handleSupSubscript("subscript")}else if(xt.text==="'"){if(Be)throw new Y("Double superscript",xt);var xr={type:"textord",mode:this.mode,text:"\\prime"},nn=[xr];for(this.consume();this.fetch().text==="'";)nn.push(xr),this.consume();this.fetch().text==="^"&&nn.push(this.handleSupSubscript("superscript")),Be={type:"ordgroup",mode:this.mode,body:nn}}else break}return Be||je?{type:"supsub",mode:this.mode,base:K,sup:Be,sub:je}:K},c.parseFunction=function(C,K,Be){var je=this.fetch(),xt=je.text,bt=Nn[xt];if(!bt)return null;if(this.consume(),Be!=null&&bt.greediness<=Be)throw new Y("Got function '"+xt+"' with no arguments"+(K?" as "+K:""),je);if(this.mode==="text"&&!bt.allowedInText)throw new Y("Can't use function '"+xt+"' in text mode",je);if(this.mode==="math"&&bt.allowedInMath===!1)throw new Y("Can't use function '"+xt+"' in math mode",je);var Xt=this.parseArguments(xt,bt),Ar=Xt.args,xr=Xt.optArgs;return this.callFunction(xt,Ar,xr,je,C)},c.callFunction=function(C,K,Be,je,xt){var bt={funcName:C,parser:this,token:je,breakOnTokenText:xt},Xt=Nn[C];if(Xt&&Xt.handler)return Xt.handler(bt,K,Be);throw new Y("No function handler for "+C)},c.parseArguments=function(C,K){var Be=K.numArgs+K.numOptionalArgs;if(Be===0)return{args:[],optArgs:[]};for(var je=K.greediness,xt=[],bt=[],Xt=0;Xt<Be;Xt++){var Ar=K.argTypes&&K.argTypes[Xt],xr=Xt<K.numOptionalArgs,nn=Xt>0&&!xr||Xt===0&&!xr&&this.mode==="math",En=this.parseGroupOfType("argument to '"+C+"'",Ar,xr,je,nn);if(!En){if(xr){bt.push(null);continue}throw new Y("Expected group after '"+C+"'",this.fetch())}(xr?bt:xt).push(En)}return{args:xt,optArgs:bt}},c.parseGroupOfType=function(C,K,Be,je,xt){switch(K){case"color":return xt&&this.consumeSpaces(),this.parseColorGroup(Be);case"size":return xt&&this.consumeSpaces(),this.parseSizeGroup(Be);case"url":return this.parseUrlGroup(Be,xt);case"math":case"text":return this.parseGroup(C,Be,je,void 0,K,xt);case"hbox":{var bt=this.parseGroup(C,Be,je,void 0,"text",xt);if(!bt)return bt;var Xt={type:"styling",mode:bt.mode,body:[bt],style:"text"};return Xt}case"raw":{if(xt&&this.consumeSpaces(),Be&&this.fetch().text==="{")return null;var Ar=this.parseStringGroup("raw",Be,!0);if(Ar)return{type:"raw",mode:"text",string:Ar.text};throw new Y("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(C,Be,je,void 0,void 0,xt);default:throw new Y("Unknown group type as "+C,this.fetch())}},c.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},c.parseStringGroup=function(C,K,Be){var je=K?"[":"{",xt=K?"]":"}",bt=this.fetch();if(bt.text!==je){if(K)return null;if(Be&&bt.text!=="EOF"&&/[^{}[\]]/.test(bt.text))return this.consume(),bt}var Xt=this.mode;this.mode="text",this.expect(je);for(var Ar="",xr=this.fetch(),nn=0,En=xr,Xr;(Xr=this.fetch()).text!==xt||Be&&nn>0;){switch(Xr.text){case"EOF":throw new Y("Unexpected end of input in "+C,xr.range(En,Ar));case je:nn++;break;case xt:nn--;break}En=Xr,Ar+=En.text,this.consume()}return this.expect(xt),this.mode=Xt,xr.range(En,Ar)},c.parseRegexGroup=function(C,K){var Be=this.mode;this.mode="text";for(var je=this.fetch(),xt=je,bt="",Xt;(Xt=this.fetch()).text!=="EOF"&&C.test(bt+Xt.text);)xt=Xt,bt+=xt.text,this.consume();if(bt==="")throw new Y("Invalid "+K+": '"+je.text+"'",je);return this.mode=Be,je.range(xt,bt)},c.parseColorGroup=function(C){var K=this.parseStringGroup("color",C);if(!K)return null;var Be=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(K.text);if(!Be)throw new Y("Invalid color: '"+K.text+"'",K);var je=Be[0];return/^[0-9a-f]{6}$/i.test(je)&&(je="#"+je),{type:"color-token",mode:this.mode,color:je}},c.parseSizeGroup=function(C){var K,Be=!1;if(!C&&this.fetch().text!=="{"?K=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):K=this.parseStringGroup("size",C),!K)return null;!C&&K.text.length===0&&(K.text="0pt",Be=!0);var je=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(K.text);if(!je)throw new Y("Invalid size: '"+K.text+"'",K);var xt={number:+(je[1]+je[2]),unit:je[3]};if(!hr(xt))throw new Y("Invalid unit: '"+xt.unit+"'",K);return{type:"size",mode:this.mode,value:xt,isBlank:Be}},c.parseUrlGroup=function(C,K){this.gullet.lexer.setCatcode("%",13);var Be=this.parseStringGroup("url",C,!0);if(this.gullet.lexer.setCatcode("%",14),!Be)return null;var je=Be.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:je}},c.parseGroup=function(C,K,Be,je,xt,bt){var Xt=this.mode;xt&&this.switchMode(xt),bt&&this.consumeSpaces();var Ar=this.fetch(),xr=Ar.text,nn;if(K?xr==="[":xr==="{"||xr==="\\begingroup"){this.consume();var En=He.endOfGroup[xr];this.gullet.beginGroup();var Xr=this.parseExpression(!1,En),fn=this.fetch();this.expect(En),this.gullet.endGroup(),nn={type:"ordgroup",mode:this.mode,loc:se.range(Ar,fn),body:Xr,semisimple:xr==="\\begingroup"||void 0}}else if(K)nn=null;else if(nn=this.parseFunction(je,C,Be)||this.parseSymbol(),nn==null&&xr[0]==="\\"&&!Gr.hasOwnProperty(xr)){if(this.settings.throwOnError)throw new Y("Undefined control sequence: "+xr,Ar);nn=this.formatUnsupportedCmd(xr),this.consume()}return xt&&this.switchMode(Xt),nn},c.formLigatures=function(C){for(var K=C.length-1,Be=0;Be<K;++Be){var je=C[Be],xt=je.text;xt==="-"&&C[Be+1].text==="-"&&(Be+1<K&&C[Be+2].text==="-"?(C.splice(Be,3,{type:"textord",mode:"text",loc:se.range(je,C[Be+2]),text:"---"}),K-=2):(C.splice(Be,2,{type:"textord",mode:"text",loc:se.range(je,C[Be+1]),text:"--"}),K-=1)),(xt==="'"||xt==="`")&&C[Be+1].text===xt&&(C.splice(Be,2,{type:"textord",mode:"text",loc:se.range(je,C[Be+1]),text:xt+xt}),K-=1)}},c.parseSymbol=function(){var C=this.fetch(),K=C.text;if(/^\\verb[^a-zA-Z]/.test(K)){this.consume();var Be=K.slice(5),je=Be.charAt(0)==="*";if(je&&(Be=Be.slice(1)),Be.length<2||Be.charAt(0)!==Be.slice(-1))throw new Y(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return Be=Be.slice(1,-1),{type:"verb",mode:"text",body:Be,star:je}}Dn.hasOwnProperty(K[0])&&!wr[this.mode][K[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+K[0]+'" used in math mode',C),K=Dn[K[0]]+K.substr(1));var xt=gt.exec(K);xt&&(K=K.substring(0,xt.index),K==="i"?K="\u0131":K==="j"&&(K="\u0237"));var bt;if(wr[this.mode][K]){this.settings.strict&&this.mode==="math"&&Bn.indexOf(K)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+K[0]+'" used in math mode',C);var Xt=wr[this.mode][K].group,Ar=se.range(C),xr;if(Vt.hasOwnProperty(Xt)){var nn=Xt;xr={type:"atom",mode:this.mode,family:nn,loc:Ar,text:K}}else xr={type:Xt,mode:this.mode,loc:Ar,text:K};bt=xr}else if(K.charCodeAt(0)>=128)this.settings.strict&&(Je(K.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+K[0]+'" used in math mode',C):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+K[0]+'"'+(" ("+K.charCodeAt(0)+")"),C)),bt={type:"textord",mode:"text",loc:se.range(C),text:K};else return null;if(this.consume(),xt)for(var En=0;En<xt[0].length;En++){var Xr=xt[0][En];if(!An[Xr])throw new Y("Unknown accent ' "+Xr+"'",C);var fn=An[Xr][this.mode];if(!fn)throw new Y("Accent "+Xr+" unsupported in "+this.mode+" mode",C);bt={type:"accent",mode:this.mode,loc:se.range(C),label:fn,isStretchy:!1,isShifty:!0,base:bt}}return bt},He}();ni.endOfExpression=["}","\\endgroup","\\end","\\right","&"],ni.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},ni.SUPSUB_GREEDINESS=1;var kr=function(c,w){if(!(typeof c=="string"||c instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var C=new ni(c,w);delete C.gullet.macros.current["\\df@tag"];var K=C.parse();if(C.gullet.macros.get("\\df@tag")){if(!w.displayMode)throw new Y("\\tag works only in display equations");C.gullet.feed("\\df@tag"),K=[{type:"tag",mode:"text",body:K,tag:C.parse()}]}return K},ir=kr,Si=function(c,w,C){w.textContent="";var K=rn(c,C).toNode();w.appendChild(K)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Si=function(){throw new Y("KaTeX doesn't work in quirks mode.")});var Fn=function(c,w){var C=rn(c,w).toMarkup();return C},ln=function(c,w){var C=new H(w);return ir(c,C)},dn=function(c,w,C){if(C.throwOnError||!(c instanceof Y))throw c;var K=jt.makeSpan(["katex-error"],[new N(w)]);return K.setAttribute("title",c.toString()),K.setAttribute("style","color:"+C.errorColor),K},rn=function(c,w){var C=new H(w);try{var K=ir(c,C);return cs(K,c,C)}catch(Be){return dn(Be,c,C)}},Cn=function(c,w){var C=new H(w);try{var K=ir(c,C);return Es(K,c,C)}catch(Be){return dn(Be,c,C)}},si={version:"0.11.1",render:Si,renderToString:Fn,ParseError:Y,__parse:ln,__renderToDomTree:rn,__renderToHTMLTree:Cn,__setFontMetrics:ct,__defineSymbol:re,__defineMacro:_e,__domTree:{Span:h,Anchor:D,SymbolNode:N,SvgNode:te,PathNode:Te,LineNode:Ie}},Fi=g.default=si}]).default})},32834:function(bn){(function(Zt,g){bn.exports=g()})(this,function(){"use strict";function Zt(It,zt){for(var qt=0;qt<zt.length;qt++){var qe=zt[qt];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(It,qe.key,qe)}}function g(It,zt,qt){return zt&&Zt(It.prototype,zt),qt&&Zt(It,qt),It}function we(It,zt){if(It){if(typeof It=="string")return De(It,zt);var qt=Object.prototype.toString.call(It).slice(8,-1);if(qt==="Object"&&It.constructor&&(qt=It.constructor.name),qt==="Map"||qt==="Set")return Array.from(It);if(qt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qt))return De(It,zt)}}function De(It,zt){(zt==null||zt>It.length)&&(zt=It.length);for(var qt=0,qe=new Array(zt);qt<zt;qt++)qe[qt]=It[qt];return qe}function se(It,zt){var qt=typeof Symbol!="undefined"&&It[Symbol.iterator]||It["@@iterator"];if(qt)return(qt=qt.call(It)).next.bind(qt);if(Array.isArray(It)||(qt=we(It))||zt&&It&&typeof It.length=="number"){qt&&(It=qt);var qe=0;return function(){return qe>=It.length?{done:!0}:{done:!1,value:It[qe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Me={exports:{}};function ie(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Y(It){Me.exports.defaults=It}Me.exports={defaults:ie(),getDefaults:ie,changeDefaults:Y};var O=/[&<>"']/,I=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,L={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(zt){return L[zt]};function a(It,zt){if(zt){if(O.test(It))return It.replace(I,p)}else if(n.test(It))return It.replace(o,p);return It}var A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(It){return It.replace(A,function(zt,qt){return qt=qt.toLowerCase(),qt==="colon"?":":qt.charAt(0)==="#"?qt.charAt(1)==="x"?String.fromCharCode(parseInt(qt.substring(2),16)):String.fromCharCode(+qt.substring(1)):""})}var S=/(^|[^\[])\^/g;function $(It,zt){It=It.source||It,zt=zt||"";var qt={replace:function(At,dt){return dt=dt.source||dt,dt=dt.replace(S,"$1"),It=It.replace(At,dt),qt},getRegex:function(){return new RegExp(It,zt)}};return qt}var F=/[^\w:]/g,H=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(It,zt,qt){if(It){var qe;try{qe=decodeURIComponent(m(qt)).replace(F,"").toLowerCase()}catch(At){return null}if(qe.indexOf("javascript:")===0||qe.indexOf("vbscript:")===0||qe.indexOf("data:")===0)return null}zt&&!H.test(qt)&&(qt=J(zt,qt));try{qt=encodeURI(qt).replace(/%25/g,"%")}catch(At){return null}return qt}var ee={},B=/^[^:]+:\/*[^/]*$/,G=/^([^:]+:)[\s\S]*$/,le=/^([^:]+:\/*[^/]*)[\s\S]*$/;function J(It,zt){ee[" "+It]||(B.test(It)?ee[" "+It]=It+"/":ee[" "+It]=ae(It,"/",!0)),It=ee[" "+It];var qt=It.indexOf(":")===-1;return zt.substring(0,2)==="//"?qt?zt:It.replace(G,"$1")+zt:zt.charAt(0)==="/"?qt?zt:It.replace(le,"$1")+zt:It+zt}var be={exec:function(){}};function Ce(It){for(var zt=1,qt,qe;zt<arguments.length;zt++){qt=arguments[zt];for(qe in qt)Object.prototype.hasOwnProperty.call(qt,qe)&&(It[qe]=qt[qe])}return It}function Re(It,zt){var qt=It.replace(/\|/g,function(dt,Gt,Pe){for(var an=!1,kt=Gt;--kt>=0&&Pe[kt]==="\\";)an=!an;return an?"|":" |"}),qe=qt.split(/ \|/),At=0;if(qe.length>zt)qe.splice(zt);else for(;qe.length<zt;)qe.push("");for(;At<qe.length;At++)qe[At]=qe[At].trim().replace(/\\\|/g,"|");return qe}function ae(It,zt,qt){var qe=It.length;if(qe===0)return"";for(var At=0;At<qe;){var dt=It.charAt(qe-At-1);if(dt===zt&&!qt)At++;else if(dt!==zt&&qt)At++;else break}return It.substr(0,qe-At)}function me(It,zt){if(It.indexOf(zt[1])===-1)return-1;for(var qt=It.length,qe=0,At=0;At<qt;At++)if(It[At]==="\\")At++;else if(It[At]===zt[0])qe++;else if(It[At]===zt[1]&&(qe--,qe<0))return At;return-1}function T(It){It&&It.sanitize&&!It.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ee(It,zt){if(zt<1)return"";for(var qt="";zt>1;)zt&1&&(qt+=It),zt>>=1,It+=It;return qt+It}var oe={escape:a,unescape:m,edit:$,cleanUrl:V,resolveUrl:J,noopTest:be,merge:Ce,splitCells:Re,rtrim:ae,findClosingBracket:me,checkSanitizeDeprecation:T,repeatString:Ee},he=Me.exports.defaults,ve=oe.rtrim,_=oe.splitCells,P=oe.escape,X=oe.findClosingBracket;function pe(It,zt,qt){var qe=zt.href,At=zt.title?P(zt.title):null,dt=It[1].replace(/\\([\[\]])/g,"$1");return It[0].charAt(0)!=="!"?{type:"link",raw:qt,href:qe,title:At,text:dt}:{type:"image",raw:qt,href:qe,title:At,text:P(dt)}}function Je(It,zt){var qt=It.match(/^(\s+)(?:```)/);if(qt===null)return zt;var qe=qt[1];return zt.split(`
|
|
|
`).map(function(At){var dt=At.match(/^\s+/);if(dt===null)return At;var Gt=dt[0];return Gt.length>=qe.length?At.slice(qe.length):At}).join(`
|
|
|
`)}var at=function(){function It(qt){this.options=qt||he}var zt=It.prototype;return zt.space=function(qe){var At=this.rules.block.newline.exec(qe);if(At)return At[0].length>1?{type:"space",raw:At[0]}:{raw:`
|
|
|
`}},zt.code=function(qe){var At=this.rules.block.code.exec(qe);if(At){var dt=At[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:At[0],codeBlockStyle:"indented",text:this.options.pedantic?dt:ve(dt,`
|
|
|
`)}}},zt.fences=function(qe){var At=this.rules.block.fences.exec(qe);if(At){var dt=At[0],Gt=Je(dt,At[3]||"");return{type:"code",raw:dt,lang:At[2]?At[2].trim():At[2],text:Gt}}},zt.heading=function(qe){var At=this.rules.block.heading.exec(qe);if(At){var dt=At[2].trim();if(/#$/.test(dt)){var Gt=ve(dt,"#");(this.options.pedantic||!Gt||/ $/.test(Gt))&&(dt=Gt.trim())}return{type:"heading",raw:At[0],depth:At[1].length,text:dt}}},zt.nptable=function(qe){var At=this.rules.block.nptable.exec(qe);if(At){var dt={type:"table",header:_(At[1].replace(/^ *| *\| *$/g,"")),align:At[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:At[3]?At[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:At[0]};if(dt.header.length===dt.align.length){var Gt=dt.align.length,Pe;for(Pe=0;Pe<Gt;Pe++)/^ *-+: *$/.test(dt.align[Pe])?dt.align[Pe]="right":/^ *:-+: *$/.test(dt.align[Pe])?dt.align[Pe]="center":/^ *:-+ *$/.test(dt.align[Pe])?dt.align[Pe]="left":dt.align[Pe]=null;for(Gt=dt.cells.length,Pe=0;Pe<Gt;Pe++)dt.cells[Pe]=_(dt.cells[Pe],dt.header.length);return dt}}},zt.hr=function(qe){var At=this.rules.block.hr.exec(qe);if(At)return{type:"hr",raw:At[0]}},zt.blockquote=function(qe){var At=this.rules.block.blockquote.exec(qe);if(At){var dt=At[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:At[0],text:dt}}},zt.list=function(qe){var At=this.rules.block.list.exec(qe);if(At){var dt=At[0],Gt=At[2],Pe=Gt.length>1,an={type:"list",raw:dt,ordered:Pe,start:Pe?+Gt.slice(0,-1):"",loose:!1,items:[]},kt=At[0].match(this.rules.block.item),kn=!1,Xn,yi,ji,On,$n,Yt,jr,Jr,Ot,_t=kt.length;ji=this.rules.block.listItemStart.exec(kt[0]);for(var Br=0;Br<_t;Br++){if(Xn=kt[Br],dt=Xn,this.options.pedantic||(Ot=Xn.match(new RegExp("\\n\\s*\\n {0,"+(ji[0].length-1)+"}\\S")),Ot&&($n=Xn.length-Ot.index+kt.slice(Br+1).join(`
|
|
|
`).length,an.raw=an.raw.substring(0,an.raw.length-$n),Xn=Xn.substring(0,Ot.index),dt=Xn,_t=Br+1)),Br!==_t-1){if(On=this.rules.block.listItemStart.exec(kt[Br+1]),this.options.pedantic?On[1].length>ji[1].length:On[1].length>=ji[0].length||On[1].length>3){kt.splice(Br,2,kt[Br]+(!this.options.pedantic&&On[1].length<ji[0].length&&!kt[Br].match(/\n$/)?"":`
|
|
|
`)+kt[Br+1]),Br--,_t--;continue}else(!this.options.pedantic||this.options.smartLists?On[2][On[2].length-1]!==Gt[Gt.length-1]:Pe===(On[2].length===1))&&($n=kt.slice(Br+1).join(`
|
|
|
`).length,an.raw=an.raw.substring(0,an.raw.length-$n),Br=_t-1);ji=On}yi=Xn.length,Xn=Xn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Xn.indexOf(`
|
|
|
`)&&(yi-=Xn.length,Xn=this.options.pedantic?Xn.replace(/^ {1,4}/gm,""):Xn.replace(new RegExp("^ {1,"+yi+"}","gm"),"")),Xn=ve(Xn,`
|
|
|
`),Br!==_t-1&&(dt=dt+`
|
|
|
`),Yt=kn||/\n\n(?!\s*$)/.test(dt),Br!==_t-1&&(kn=dt.slice(-2)===`
|
|
|
|
|
|
`,Yt||(Yt=kn)),Yt&&(an.loose=!0),this.options.gfm&&(jr=/^\[[ xX]\] /.test(Xn),Jr=void 0,jr&&(Jr=Xn[1]!==" ",Xn=Xn.replace(/^\[[ xX]\] +/,""))),an.items.push({type:"list_item",raw:dt,task:jr,checked:Jr,loose:Yt,text:Xn})}return an}},zt.html=function(qe){var At=this.rules.block.html.exec(qe);if(At)return{type:this.options.sanitize?"paragraph":"html",raw:At[0],pre:!this.options.sanitizer&&(At[1]==="pre"||At[1]==="script"||At[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(At[0]):P(At[0]):At[0]}},zt.def=function(qe){var At=this.rules.block.def.exec(qe);if(At){At[3]&&(At[3]=At[3].substring(1,At[3].length-1));var dt=At[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:dt,raw:At[0],href:At[2],title:At[3]}}},zt.table=function(qe){var At=this.rules.block.table.exec(qe);if(At){var dt={type:"table",header:_(At[1].replace(/^ *| *\| *$/g,"")),align:At[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:At[3]?At[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(dt.header.length===dt.align.length){dt.raw=At[0];var Gt=dt.align.length,Pe;for(Pe=0;Pe<Gt;Pe++)/^ *-+: *$/.test(dt.align[Pe])?dt.align[Pe]="right":/^ *:-+: *$/.test(dt.align[Pe])?dt.align[Pe]="center":/^ *:-+ *$/.test(dt.align[Pe])?dt.align[Pe]="left":dt.align[Pe]=null;for(Gt=dt.cells.length,Pe=0;Pe<Gt;Pe++)dt.cells[Pe]=_(dt.cells[Pe].replace(/^ *\| *| *\| *$/g,""),dt.header.length);return dt}}},zt.lheading=function(qe){var At=this.rules.block.lheading.exec(qe);if(At)return{type:"heading",raw:At[0],depth:At[2].charAt(0)==="="?1:2,text:At[1]}},zt.paragraph=function(qe){var At=this.rules.block.paragraph.exec(qe);if(At)return{type:"paragraph",raw:At[0],text:At[1].charAt(At[1].length-1)===`
|
|
|
`?At[1].slice(0,-1):At[1]}},zt.text=function(qe){var At=this.rules.block.text.exec(qe);if(At)return{type:"text",raw:At[0],text:At[0]}},zt.escape=function(qe){var At=this.rules.inline.escape.exec(qe);if(At)return{type:"escape",raw:At[0],text:P(At[1])}},zt.tag=function(qe,At,dt){var Gt=this.rules.inline.tag.exec(qe);if(Gt)return!At&&/^<a /i.test(Gt[0])?At=!0:At&&/^<\/a>/i.test(Gt[0])&&(At=!1),!dt&&/^<(pre|code|kbd|script)(\s|>)/i.test(Gt[0])?dt=!0:dt&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Gt[0])&&(dt=!1),{type:this.options.sanitize?"text":"html",raw:Gt[0],inLink:At,inRawBlock:dt,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Gt[0]):P(Gt[0]):Gt[0]}},zt.link=function(qe){var At=this.rules.inline.link.exec(qe);if(At){var dt=At[2].trim();if(!this.options.pedantic&&/^</.test(dt)){if(!/>$/.test(dt))return;var Gt=ve(dt.slice(0,-1),"\\");if((dt.length-Gt.length)%2===0)return}else{var Pe=X(At[2],"()");if(Pe>-1){var an=At[0].indexOf("!")===0?5:4,kt=an+At[1].length+Pe;At[2]=At[2].substring(0,Pe),At[0]=At[0].substring(0,kt).trim(),At[3]=""}}var kn=At[2],Xn="";if(this.options.pedantic){var yi=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(kn);yi&&(kn=yi[1],Xn=yi[3])}else Xn=At[3]?At[3].slice(1,-1):"";return kn=kn.trim(),/^</.test(kn)&&(this.options.pedantic&&!/>$/.test(dt)?kn=kn.slice(1):kn=kn.slice(1,-1)),pe(At,{href:kn&&kn.replace(this.rules.inline._escapes,"$1"),title:Xn&&Xn.replace(this.rules.inline._escapes,"$1")},At[0])}},zt.reflink=function(qe,At){var dt;if((dt=this.rules.inline.reflink.exec(qe))||(dt=this.rules.inline.nolink.exec(qe))){var Gt=(dt[2]||dt[1]).replace(/\s+/g," ");if(Gt=At[Gt.toLowerCase()],!Gt||!Gt.href){var Pe=dt[0].charAt(0);return{type:"text",raw:Pe,text:Pe}}return pe(dt,Gt,dt[0])}},zt.emStrong=function(qe,At,dt){dt===void 0&&(dt="");var Gt=this.rules.inline.emStrong.lDelim.exec(qe);if(Gt&&!(Gt[3]&&dt.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var Pe=Gt[1]||Gt[2]||"";if(!Pe||Pe&&(dt===""||this.rules.inline.punctuation.exec(dt))){var an=Gt[0].length-1,kt,kn,Xn=an,yi=0,ji=Gt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ji.lastIndex=0,At=At.slice(-1*qe.length+an);(Gt=ji.exec(At))!=null;)if(kt=Gt[1]||Gt[2]||Gt[3]||Gt[4]||Gt[5]||Gt[6],!!kt){if(kn=kt.length,Gt[3]||Gt[4]){Xn+=kn;continue}else if((Gt[5]||Gt[6])&&an%3&&!((an+kn)%3)){yi+=kn;continue}if(Xn-=kn,!(Xn>0))return kn=Math.min(kn,kn+Xn+yi),Math.min(an,kn)%2?{type:"em",raw:qe.slice(0,an+Gt.index+kn+1),text:qe.slice(1,an+Gt.index+kn)}:{type:"strong",raw:qe.slice(0,an+Gt.index+kn+1),text:qe.slice(2,an+Gt.index+kn-1)}}}}},zt.codespan=function(qe){var At=this.rules.inline.code.exec(qe);if(At){var dt=At[2].replace(/\n/g," "),Gt=/[^ ]/.test(dt),Pe=/^ /.test(dt)&&/ $/.test(dt);return Gt&&Pe&&(dt=dt.substring(1,dt.length-1)),dt=P(dt,!0),{type:"codespan",raw:At[0],text:dt}}},zt.br=function(qe){var At=this.rules.inline.br.exec(qe);if(At)return{type:"br",raw:At[0]}},zt.del=function(qe){var At=this.rules.inline.del.exec(qe);if(At)return{type:"del",raw:At[0],text:At[2]}},zt.autolink=function(qe,At){var dt=this.rules.inline.autolink.exec(qe);if(dt){var Gt,Pe;return dt[2]==="@"?(Gt=P(this.options.mangle?At(dt[1]):dt[1]),Pe="mailto:"+Gt):(Gt=P(dt[1]),Pe=Gt),{type:"link",raw:dt[0],text:Gt,href:Pe,tokens:[{type:"text",raw:Gt,text:Gt}]}}},zt.url=function(qe,At){var dt;if(dt=this.rules.inline.url.exec(qe)){var Gt,Pe;if(dt[2]==="@")Gt=P(this.options.mangle?At(dt[0]):dt[0]),Pe="mailto:"+Gt;else{var an;do an=dt[0],dt[0]=this.rules.inline._backpedal.exec(dt[0])[0];while(an!==dt[0]);Gt=P(dt[0]),dt[1]==="www."?Pe="http://"+Gt:Pe=Gt}return{type:"link",raw:dt[0],text:Gt,href:Pe,tokens:[{type:"text",raw:Gt,text:Gt}]}}},zt.inlineText=function(qe,At,dt){var Gt=this.rules.inline.text.exec(qe);if(Gt){var Pe;return At?Pe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Gt[0]):P(Gt[0]):Gt[0]:Pe=P(this.options.smartypants?dt(Gt[0]):Gt[0]),{type:"text",raw:Gt[0],text:Pe}}},It}(),nt=oe.noopTest,Lt=oe.edit,ur=oe.merge,Jt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:nt,table:nt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Jt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Jt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Jt.def=Lt(Jt.def).replace("label",Jt._label).replace("title",Jt._title).getRegex(),Jt.bullet=/(?:[*+-]|\d{1,9}[.)])/,Jt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Jt.item=Lt(Jt.item,"gm").replace(/bull/g,Jt.bullet).getRegex(),Jt.listItemStart=Lt(/^( *)(bull) */).replace("bull",Jt.bullet).getRegex(),Jt.list=Lt(Jt.list).replace(/bull/g,Jt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Jt.def.source+")").getRegex(),Jt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Jt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Jt.html=Lt(Jt.html,"i").replace("comment",Jt._comment).replace("tag",Jt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jt.paragraph=Lt(Jt._paragraph).replace("hr",Jt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Jt._tag).getRegex(),Jt.blockquote=Lt(Jt.blockquote).replace("paragraph",Jt.paragraph).getRegex(),Jt.normal=ur({},Jt),Jt.gfm=ur({},Jt.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Jt.gfm.nptable=Lt(Jt.gfm.nptable).replace("hr",Jt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Jt._tag).getRegex(),Jt.gfm.table=Lt(Jt.gfm.table).replace("hr",Jt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Jt._tag).getRegex(),Jt.pedantic=ur({},Jt.normal,{html:Lt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Jt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nt,paragraph:Lt(Jt.normal._paragraph).replace("hr",Jt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",Jt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var We={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nt,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:nt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};We._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",We.punctuation=Lt(We.punctuation).replace(/punctuation/g,We._punctuation).getRegex(),We.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,We.escapedEmSt=/\\\*|\\_/g,We._comment=Lt(Jt._comment).replace("(?:-->|$)","-->").getRegex(),We.emStrong.lDelim=Lt(We.emStrong.lDelim).replace(/punct/g,We._punctuation).getRegex(),We.emStrong.rDelimAst=Lt(We.emStrong.rDelimAst,"g").replace(/punct/g,We._punctuation).getRegex(),We.emStrong.rDelimUnd=Lt(We.emStrong.rDelimUnd,"g").replace(/punct/g,We._punctuation).getRegex(),We._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,We._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,We._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,We.autolink=Lt(We.autolink).replace("scheme",We._scheme).replace("email",We._email).getRegex(),We._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,We.tag=Lt(We.tag).replace("comment",We._comment).replace("attribute",We._attribute).getRegex(),We._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,We._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,We._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,We.link=Lt(We.link).replace("label",We._label).replace("href",We._href).replace("title",We._title).getRegex(),We.reflink=Lt(We.reflink).replace("label",We._label).getRegex(),We.reflinkSearch=Lt(We.reflinkSearch,"g").replace("reflink",We.reflink).replace("nolink",We.nolink).getRegex(),We.normal=ur({},We),We.pedantic=ur({},We.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Lt(/^!?\[(label)\]\((.*?)\)/).replace("label",We._label).getRegex(),reflink:Lt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",We._label).getRegex()}),We.gfm=ur({},We.normal,{escape:Lt(We.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),We.gfm.url=Lt(We.gfm.url,"i").replace("email",We.gfm._extended_email).getRegex(),We.breaks=ur({},We.gfm,{br:Lt(We.br).replace("{2,}","*").getRegex(),text:Lt(We.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Cr={block:Jt,inline:We},Er=at,Kr=Me.exports.defaults,_r=Cr.block,Se=Cr.inline,Nt=oe.repeatString;function z(It){return It.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function v(It){var zt="",qt,qe,At=It.length;for(qt=0;qt<At;qt++)qe=It.charCodeAt(qt),Math.random()>.5&&(qe="x"+qe.toString(16)),zt+="&#"+qe+";";return zt}var h=function(){function It(qt){this.tokens=[],this.tokens.links=Object.create(null),this.options=qt||Kr,this.options.tokenizer=this.options.tokenizer||new Er,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var qe={block:_r.normal,inline:Se.normal};this.options.pedantic?(qe.block=_r.pedantic,qe.inline=Se.pedantic):this.options.gfm&&(qe.block=_r.gfm,this.options.breaks?qe.inline=Se.breaks:qe.inline=Se.gfm),this.tokenizer.rules=qe}It.lex=function(qe,At){var dt=new It(At);return dt.lex(qe)},It.lexInline=function(qe,At){var dt=new It(At);return dt.inlineTokens(qe)};var zt=It.prototype;return zt.lex=function(qe){return qe=qe.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(qe,this.tokens,!0),this.inline(this.tokens),this.tokens},zt.blockTokens=function(qe,At,dt){At===void 0&&(At=[]),dt===void 0&&(dt=!0),this.options.pedantic&&(qe=qe.replace(/^ +$/gm,""));for(var Gt,Pe,an,kt;qe;){if(Gt=this.tokenizer.space(qe)){qe=qe.substring(Gt.raw.length),Gt.type&&At.push(Gt);continue}if(Gt=this.tokenizer.code(qe)){qe=qe.substring(Gt.raw.length),kt=At[At.length-1],kt&&kt.type==="paragraph"?(kt.raw+=`
|
|
|
`+Gt.raw,kt.text+=`
|
|
|
`+Gt.text):At.push(Gt);continue}if(Gt=this.tokenizer.fences(qe)){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(Gt=this.tokenizer.heading(qe)){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(Gt=this.tokenizer.nptable(qe)){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(Gt=this.tokenizer.hr(qe)){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(Gt=this.tokenizer.blockquote(qe)){qe=qe.substring(Gt.raw.length),Gt.tokens=this.blockTokens(Gt.text,[],dt),At.push(Gt);continue}if(Gt=this.tokenizer.list(qe)){for(qe=qe.substring(Gt.raw.length),an=Gt.items.length,Pe=0;Pe<an;Pe++)Gt.items[Pe].tokens=this.blockTokens(Gt.items[Pe].text,[],!1);At.push(Gt);continue}if(Gt=this.tokenizer.html(qe)){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(dt&&(Gt=this.tokenizer.def(qe))){qe=qe.substring(Gt.raw.length),this.tokens.links[Gt.tag]||(this.tokens.links[Gt.tag]={href:Gt.href,title:Gt.title});continue}if(Gt=this.tokenizer.table(qe)){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(Gt=this.tokenizer.lheading(qe)){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(dt&&(Gt=this.tokenizer.paragraph(qe))){qe=qe.substring(Gt.raw.length),At.push(Gt);continue}if(Gt=this.tokenizer.text(qe)){qe=qe.substring(Gt.raw.length),kt=At[At.length-1],kt&&kt.type==="text"?(kt.raw+=`
|
|
|
`+Gt.raw,kt.text+=`
|
|
|
`+Gt.text):At.push(Gt);continue}if(qe){var kn="Infinite loop on byte: "+qe.charCodeAt(0);if(this.options.silent){console.error(kn);break}else throw new Error(kn)}}return At},zt.inline=function(qe){var At,dt,Gt,Pe,an,kt,kn=qe.length;for(At=0;At<kn;At++)switch(kt=qe[At],kt.type){case"paragraph":case"text":case"heading":{kt.tokens=[],this.inlineTokens(kt.text,kt.tokens);break}case"table":{for(kt.tokens={header:[],cells:[]},Pe=kt.header.length,dt=0;dt<Pe;dt++)kt.tokens.header[dt]=[],this.inlineTokens(kt.header[dt],kt.tokens.header[dt]);for(Pe=kt.cells.length,dt=0;dt<Pe;dt++)for(an=kt.cells[dt],kt.tokens.cells[dt]=[],Gt=0;Gt<an.length;Gt++)kt.tokens.cells[dt][Gt]=[],this.inlineTokens(an[Gt],kt.tokens.cells[dt][Gt]);break}case"blockquote":{this.inline(kt.tokens);break}case"list":{for(Pe=kt.items.length,dt=0;dt<Pe;dt++)this.inline(kt.items[dt].tokens);break}}return qe},zt.inlineTokens=function(qe,At,dt,Gt){At===void 0&&(At=[]),dt===void 0&&(dt=!1),Gt===void 0&&(Gt=!1);var Pe,an,kt=qe,kn,Xn,yi;if(this.tokens.links){var ji=Object.keys(this.tokens.links);if(ji.length>0)for(;(kn=this.tokenizer.rules.inline.reflinkSearch.exec(kt))!=null;)ji.includes(kn[0].slice(kn[0].lastIndexOf("[")+1,-1))&&(kt=kt.slice(0,kn.index)+"["+Nt("a",kn[0].length-2)+"]"+kt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(kn=this.tokenizer.rules.inline.blockSkip.exec(kt))!=null;)kt=kt.slice(0,kn.index)+"["+Nt("a",kn[0].length-2)+"]"+kt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(kn=this.tokenizer.rules.inline.escapedEmSt.exec(kt))!=null;)kt=kt.slice(0,kn.index)+"++"+kt.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;qe;){if(Xn||(yi=""),Xn=!1,Pe=this.tokenizer.escape(qe)){qe=qe.substring(Pe.raw.length),At.push(Pe);continue}if(Pe=this.tokenizer.tag(qe,dt,Gt)){qe=qe.substring(Pe.raw.length),dt=Pe.inLink,Gt=Pe.inRawBlock;var On=At[At.length-1];On&&Pe.type==="text"&&On.type==="text"?(On.raw+=Pe.raw,On.text+=Pe.text):At.push(Pe);continue}if(Pe=this.tokenizer.link(qe)){qe=qe.substring(Pe.raw.length),Pe.type==="link"&&(Pe.tokens=this.inlineTokens(Pe.text,[],!0,Gt)),At.push(Pe);continue}if(Pe=this.tokenizer.reflink(qe,this.tokens.links)){qe=qe.substring(Pe.raw.length);var $n=At[At.length-1];Pe.type==="link"?(Pe.tokens=this.inlineTokens(Pe.text,[],!0,Gt),At.push(Pe)):$n&&Pe.type==="text"&&$n.type==="text"?($n.raw+=Pe.raw,$n.text+=Pe.text):At.push(Pe);continue}if(Pe=this.tokenizer.emStrong(qe,kt,yi)){qe=qe.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],dt,Gt),At.push(Pe);continue}if(Pe=this.tokenizer.codespan(qe)){qe=qe.substring(Pe.raw.length),At.push(Pe);continue}if(Pe=this.tokenizer.br(qe)){qe=qe.substring(Pe.raw.length),At.push(Pe);continue}if(Pe=this.tokenizer.del(qe)){qe=qe.substring(Pe.raw.length),Pe.tokens=this.inlineTokens(Pe.text,[],dt,Gt),At.push(Pe);continue}if(Pe=this.tokenizer.autolink(qe,v)){qe=qe.substring(Pe.raw.length),At.push(Pe);continue}if(!dt&&(Pe=this.tokenizer.url(qe,v))){qe=qe.substring(Pe.raw.length),At.push(Pe);continue}if(Pe=this.tokenizer.inlineText(qe,Gt,z)){qe=qe.substring(Pe.raw.length),Pe.raw.slice(-1)!=="_"&&(yi=Pe.raw.slice(-1)),Xn=!0,an=At[At.length-1],an&&an.type==="text"?(an.raw+=Pe.raw,an.text+=Pe.text):At.push(Pe);continue}if(qe){var Yt="Infinite loop on byte: "+qe.charCodeAt(0);if(this.options.silent){console.error(Yt);break}else throw new Error(Yt)}}return At},g(It,null,[{key:"rules",get:function(){return{block:_r,inline:Se}}}]),It}(),D=Me.exports.defaults,fe=oe.cleanUrl,Z=oe.escape,N=function(){function It(qt){this.options=qt||D}var zt=It.prototype;return zt.code=function(qe,At,dt){var Gt=(At||"").match(/\S*/)[0];if(this.options.highlight){var Pe=this.options.highlight(qe,Gt);Pe!=null&&Pe!==qe&&(dt=!0,qe=Pe)}return qe=qe.replace(/\n$/,"")+`
|
|
|
`,Gt?'<pre><code class="'+this.options.langPrefix+Z(Gt,!0)+'">'+(dt?qe:Z(qe,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(dt?qe:Z(qe,!0))+`</code></pre>
|
|
|
`},zt.blockquote=function(qe){return`<blockquote>
|
|
|
`+qe+`</blockquote>
|
|
|
`},zt.html=function(qe){return qe},zt.heading=function(qe,At,dt,Gt){return this.options.headerIds?"<h"+At+' id="'+this.options.headerPrefix+Gt.slug(dt)+'">'+qe+"</h"+At+`>
|
|
|
`:"<h"+At+">"+qe+"</h"+At+`>
|
|
|
`},zt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},zt.list=function(qe,At,dt){var Gt=At?"ol":"ul",Pe=At&&dt!==1?' start="'+dt+'"':"";return"<"+Gt+Pe+`>
|
|
|
`+qe+"</"+Gt+`>
|
|
|
`},zt.listitem=function(qe){return"<li>"+qe+`</li>
|
|
|
`},zt.checkbox=function(qe){return"<input "+(qe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},zt.paragraph=function(qe){return"<p>"+qe+`</p>
|
|
|
`},zt.table=function(qe,At){return At&&(At="<tbody>"+At+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+qe+`</thead>
|
|
|
`+At+`</table>
|
|
|
`},zt.tablerow=function(qe){return`<tr>
|
|
|
`+qe+`</tr>
|
|
|
`},zt.tablecell=function(qe,At){var dt=At.header?"th":"td",Gt=At.align?"<"+dt+' align="'+At.align+'">':"<"+dt+">";return Gt+qe+"</"+dt+`>
|
|
|
`},zt.strong=function(qe){return"<strong>"+qe+"</strong>"},zt.em=function(qe){return"<em>"+qe+"</em>"},zt.codespan=function(qe){return"<code>"+qe+"</code>"},zt.br=function(){return this.options.xhtml?"<br/>":"<br>"},zt.del=function(qe){return"<del>"+qe+"</del>"},zt.link=function(qe,At,dt){if(qe=fe(this.options.sanitize,this.options.baseUrl,qe),qe===null)return dt;var Gt='<a href="'+Z(qe)+'"';return At&&(Gt+=' title="'+At+'"'),Gt+=">"+dt+"</a>",Gt},zt.image=function(qe,At,dt){if(qe=fe(this.options.sanitize,this.options.baseUrl,qe),qe===null)return dt;var Gt='<img src="'+qe+'" alt="'+dt+'"';return At&&(Gt+=' title="'+At+'"'),Gt+=this.options.xhtml?"/>":">",Gt},zt.text=function(qe){return qe},It}(),te=function(){function It(){}var zt=It.prototype;return zt.strong=function(qe){return qe},zt.em=function(qe){return qe},zt.codespan=function(qe){return qe},zt.del=function(qe){return qe},zt.html=function(qe){return qe},zt.text=function(qe){return qe},zt.link=function(qe,At,dt){return""+dt},zt.image=function(qe,At,dt){return""+dt},zt.br=function(){return""},It}(),Te=function(){function It(){this.seen={}}var zt=It.prototype;return zt.serialize=function(qe){return qe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},zt.getNextSafeSlug=function(qe,At){var dt=qe,Gt=0;if(this.seen.hasOwnProperty(dt)){Gt=this.seen[qe];do Gt++,dt=qe+"-"+Gt;while(this.seen.hasOwnProperty(dt))}return At||(this.seen[qe]=Gt,this.seen[dt]=0),dt},zt.slug=function(qe,At){At===void 0&&(At={});var dt=this.serialize(qe);return this.getNextSafeSlug(dt,At.dryrun)},It}(),Ie=N,Fe=te,ze=Te,pt=Me.exports.defaults,$e=oe.unescape,tt=function(){function It(qt){this.options=qt||pt,this.options.renderer=this.options.renderer||new Ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Fe,this.slugger=new ze}It.parse=function(qe,At){var dt=new It(At);return dt.parse(qe)},It.parseInline=function(qe,At){var dt=new It(At);return dt.parseInline(qe)};var zt=It.prototype;return zt.parse=function(qe,At){At===void 0&&(At=!0);var dt="",Gt,Pe,an,kt,kn,Xn,yi,ji,On,$n,Yt,jr,Jr,Ot,_t,Br,Lr,In,tn=qe.length;for(Gt=0;Gt<tn;Gt++)switch($n=qe[Gt],$n.type){case"space":continue;case"hr":{dt+=this.renderer.hr();continue}case"heading":{dt+=this.renderer.heading(this.parseInline($n.tokens),$n.depth,$e(this.parseInline($n.tokens,this.textRenderer)),this.slugger);continue}case"code":{dt+=this.renderer.code($n.text,$n.lang,$n.escaped);continue}case"table":{for(ji="",yi="",kt=$n.header.length,Pe=0;Pe<kt;Pe++)yi+=this.renderer.tablecell(this.parseInline($n.tokens.header[Pe]),{header:!0,align:$n.align[Pe]});for(ji+=this.renderer.tablerow(yi),On="",kt=$n.cells.length,Pe=0;Pe<kt;Pe++){for(Xn=$n.tokens.cells[Pe],yi="",kn=Xn.length,an=0;an<kn;an++)yi+=this.renderer.tablecell(this.parseInline(Xn[an]),{header:!1,align:$n.align[an]});On+=this.renderer.tablerow(yi)}dt+=this.renderer.table(ji,On);continue}case"blockquote":{On=this.parse($n.tokens),dt+=this.renderer.blockquote(On);continue}case"list":{for(Yt=$n.ordered,jr=$n.start,Jr=$n.loose,kt=$n.items.length,On="",Pe=0;Pe<kt;Pe++)_t=$n.items[Pe],Br=_t.checked,Lr=_t.task,Ot="",_t.task&&(In=this.renderer.checkbox(Br),Jr?_t.tokens.length>0&&_t.tokens[0].type==="text"?(_t.tokens[0].text=In+" "+_t.tokens[0].text,_t.tokens[0].tokens&&_t.tokens[0].tokens.length>0&&_t.tokens[0].tokens[0].type==="text"&&(_t.tokens[0].tokens[0].text=In+" "+_t.tokens[0].tokens[0].text)):_t.tokens.unshift({type:"text",text:In}):Ot+=In),Ot+=this.parse(_t.tokens,Jr),On+=this.renderer.listitem(Ot,Lr,Br);dt+=this.renderer.list(On,Yt,jr);continue}case"html":{dt+=this.renderer.html($n.text);continue}case"paragraph":{dt+=this.renderer.paragraph(this.parseInline($n.tokens));continue}case"text":{for(On=$n.tokens?this.parseInline($n.tokens):$n.text;Gt+1<tn&&qe[Gt+1].type==="text";)$n=qe[++Gt],On+=`
|
|
|
`+($n.tokens?this.parseInline($n.tokens):$n.text);dt+=At?this.renderer.paragraph(On):On;continue}default:{var Bn='Token with "'+$n.type+'" type was not found.';if(this.options.silent){console.error(Bn);return}else throw new Error(Bn)}}return dt},zt.parseInline=function(qe,At){At=At||this.renderer;var dt="",Gt,Pe,an=qe.length;for(Gt=0;Gt<an;Gt++)switch(Pe=qe[Gt],Pe.type){case"escape":{dt+=At.text(Pe.text);break}case"html":{dt+=At.html(Pe.text);break}case"link":{dt+=At.link(Pe.href,Pe.title,this.parseInline(Pe.tokens,At));break}case"image":{dt+=At.image(Pe.href,Pe.title,Pe.text);break}case"strong":{dt+=At.strong(this.parseInline(Pe.tokens,At));break}case"em":{dt+=At.em(this.parseInline(Pe.tokens,At));break}case"codespan":{dt+=At.codespan(Pe.text);break}case"br":{dt+=At.br();break}case"del":{dt+=At.del(this.parseInline(Pe.tokens,At));break}case"text":{dt+=At.text(Pe.text);break}default:{var kt='Token with "'+Pe.type+'" type was not found.';if(this.options.silent){console.error(kt);return}else throw new Error(kt)}}return dt},It}(),ct=h,Ge=tt,Ke=at,Bt=N,Vt=te,Mt=Te,mr=oe.merge,wr=oe.checkSanitizeDeprecation,re=oe.escape,ue=Me.exports.getDefaults,rr=Me.exports.changeDefaults,Qe=Me.exports.defaults;function ot(It,zt,qt){if(typeof It=="undefined"||It===null)throw new Error("marked(): input parameter is undefined or null");if(typeof It!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(It)+", string expected");if(typeof zt=="function"&&(qt=zt,zt=null),zt=mr({},ot.defaults,zt||{}),wr(zt),qt){var qe=zt.highlight,At;try{At=ct.lex(It,zt)}catch(an){return qt(an)}var dt=function(kt){var kn;if(!kt)try{zt.walkTokens&&ot.walkTokens(At,zt.walkTokens),kn=Ge.parse(At,zt)}catch(Xn){kt=Xn}return zt.highlight=qe,kt?qt(kt):qt(null,kn)};if(!qe||qe.length<3||(delete zt.highlight,!At.length))return dt();var Gt=0;ot.walkTokens(At,function(an){an.type==="code"&&(Gt++,setTimeout(function(){qe(an.text,an.lang,function(kt,kn){if(kt)return dt(kt);kn!=null&&kn!==an.text&&(an.text=kn,an.escaped=!0),Gt--,Gt===0&&dt()})},0))}),Gt===0&&dt();return}try{var Pe=ct.lex(It,zt);return zt.walkTokens&&ot.walkTokens(Pe,zt.walkTokens),Ge.parse(Pe,zt)}catch(an){if(an.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,zt.silent)return"<p>An error occurred:</p><pre>"+re(an.message+"",!0)+"</pre>";throw an}}ot.options=ot.setOptions=function(It){return mr(ot.defaults,It),rr(ot.defaults),ot},ot.getDefaults=ue,ot.defaults=Qe,ot.use=function(It){var zt=mr({},It);if(It.renderer&&function(){var qe=ot.defaults.renderer||new Bt,At=function(Pe){var an=qe[Pe];qe[Pe]=function(){for(var kt=arguments.length,kn=new Array(kt),Xn=0;Xn<kt;Xn++)kn[Xn]=arguments[Xn];var yi=It.renderer[Pe].apply(qe,kn);return yi===!1&&(yi=an.apply(qe,kn)),yi}};for(var dt in It.renderer)At(dt);zt.renderer=qe}(),It.tokenizer&&function(){var qe=ot.defaults.tokenizer||new Ke,At=function(Pe){var an=qe[Pe];qe[Pe]=function(){for(var kt=arguments.length,kn=new Array(kt),Xn=0;Xn<kt;Xn++)kn[Xn]=arguments[Xn];var yi=It.tokenizer[Pe].apply(qe,kn);return yi===!1&&(yi=an.apply(qe,kn)),yi}};for(var dt in It.tokenizer)At(dt);zt.tokenizer=qe}(),It.walkTokens){var qt=ot.defaults.walkTokens;zt.walkTokens=function(qe){It.walkTokens(qe),qt&&qt(qe)}}ot.setOptions(zt)},ot.walkTokens=function(It,zt){for(var qt=se(It),qe;!(qe=qt()).done;){var At=qe.value;switch(zt(At),At.type){case"table":{for(var dt=se(At.tokens.header),Gt;!(Gt=dt()).done;){var Pe=Gt.value;ot.walkTokens(Pe,zt)}for(var an=se(At.tokens.cells),kt;!(kt=an()).done;)for(var kn=kt.value,Xn=se(kn),yi;!(yi=Xn()).done;){var ji=yi.value;ot.walkTokens(ji,zt)}break}case"list":{ot.walkTokens(At.items,zt);break}default:At.tokens&&ot.walkTokens(At.tokens,zt)}}},ot.parseInline=function(It,zt){if(typeof It=="undefined"||It===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof It!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(It)+", string expected");zt=mr({},ot.defaults,zt||{}),wr(zt);try{var qt=ct.lexInline(It,zt);return zt.walkTokens&&ot.walkTokens(qt,zt.walkTokens),Ge.parseInline(qt,zt)}catch(qe){if(qe.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,zt.silent)return"<p>An error occurred:</p><pre>"+re(qe.message+"",!0)+"</pre>";throw qe}},ot.Parser=Ge,ot.parser=Ge.parse,ot.Renderer=Bt,ot.TextRenderer=Vt,ot.Lexer=ct,ot.lexer=ct.lex,ot.Tokenizer=Ke,ot.Slugger=Mt,ot.parse=ot;var Yr=ot;return Yr})},11690:function(bn){const Zt=/[&<>"']/,g=/[&<>"']/g,we=/[<>"']|&(?!#?\w+;)/,De=/[<>"']|&(?!#?\w+;)/g,se={"&":"&","<":"<",">":">",'"':""","'":"'"},Me=J=>se[J];function ie(J,be){if(be){if(Zt.test(J))return J.replace(g,Me)}else if(we.test(J))return J.replace(De,Me);return J}const Y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function O(J){return J.replace(Y,(be,Ce)=>(Ce=Ce.toLowerCase(),Ce==="colon"?":":Ce.charAt(0)==="#"?Ce.charAt(1)==="x"?String.fromCharCode(parseInt(Ce.substring(2),16)):String.fromCharCode(+Ce.substring(1)):""))}const I=/(^|[^\[])\^/g;function n(J,be){J=J.source||J,be=be||"";const Ce={replace:(Re,ae)=>(ae=ae.source||ae,ae=ae.replace(I,"$1"),J=J.replace(Re,ae),Ce),getRegex:()=>new RegExp(J,be)};return Ce}const o=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(J,be,Ce){if(J){let Re;try{Re=decodeURIComponent(O(Ce)).replace(o,"").toLowerCase()}catch(ae){return null}if(Re.indexOf("javascript:")===0||Re.indexOf("vbscript:")===0||Re.indexOf("data:")===0)return null}be&&!L.test(Ce)&&(Ce=$(be,Ce));try{Ce=encodeURI(Ce).replace(/%25/g,"%")}catch(Re){return null}return Ce}const a={},A=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,S=/^([^:]+:\/*[^/]*)[\s\S]*$/;function $(J,be){a[" "+J]||(A.test(J)?a[" "+J]=J+"/":a[" "+J]=ee(J,"/",!0)),J=a[" "+J];const Ce=J.indexOf(":")===-1;return be.substring(0,2)==="//"?Ce?be:J.replace(m,"$1")+be:be.charAt(0)==="/"?Ce?be:J.replace(S,"$1")+be:J+be}const F={exec:function(){}};function H(J){let be=1,Ce,Re;for(;be<arguments.length;be++){Ce=arguments[be];for(Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&(J[Re]=Ce[Re])}return J}function V(J,be){const Ce=J.replace(/\|/g,(me,T,Ee)=>{let oe=!1,he=T;for(;--he>=0&&Ee[he]==="\\";)oe=!oe;return oe?"|":" |"}),Re=Ce.split(/ \|/);let ae=0;if(Re.length>be)Re.splice(be);else for(;Re.length<be;)Re.push("");for(;ae<Re.length;ae++)Re[ae]=Re[ae].trim().replace(/\\\|/g,"|");return Re}function ee(J,be,Ce){const Re=J.length;if(Re===0)return"";let ae=0;for(;ae<Re;){const me=J.charAt(Re-ae-1);if(me===be&&!Ce)ae++;else if(me!==be&&Ce)ae++;else break}return J.substr(0,Re-ae)}function B(J,be){if(J.indexOf(be[1])===-1)return-1;const Ce=J.length;let Re=0,ae=0;for(;ae<Ce;ae++)if(J[ae]==="\\")ae++;else if(J[ae]===be[0])Re++;else if(J[ae]===be[1]&&(Re--,Re<0))return ae;return-1}function G(J){J&&J.sanitize&&!J.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function le(J,be){if(be<1)return"";let Ce="";for(;be>1;)be&1&&(Ce+=J),be>>=1,J+=J;return Ce+J}bn.exports={escape:ie,unescape:O,edit:n,cleanUrl:p,resolveUrl:$,noopTest:F,merge:H,splitCells:V,rtrim:ee,findClosingBracket:B,checkSanitizeDeprecation:G,repeatString:le}},75918:function(bn,Zt,g){"use strict";g.d(Zt,{Wi:function(){return Y},Z0:function(){return O},aU:function(){return ie},eZ:function(){return n},wY:function(){return I}});var we=g(4348),De=g(69323),se=g(13268),Me=function(o,L,p,a){function A(m){return m instanceof p?m:new p(function(S){S(m)})}return new(p||(p=Promise))(function(m,S){function $(V){try{H(a.next(V))}catch(ee){S(ee)}}function F(V){try{H(a.throw(V))}catch(ee){S(ee)}}function H(V){V.done?m(V.value):A(V.value).then($,F)}H((a=a.apply(o,L||[])).next())})};class ie extends De.JT{constructor(L,p="",a="",A=!0,m){super(),this._onDidChange=this._register(new we.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=L,this._label=p,this._cssClass=a,this._enabled=A,this._actionCallback=m}get id(){return this._id}get label(){return this._label}set label(L){this._setLabel(L)}_setLabel(L){this._label!==L&&(this._label=L,this._onDidChange.fire({label:L}))}get tooltip(){return this._tooltip||""}set tooltip(L){this._setTooltip(L)}_setTooltip(L){this._tooltip!==L&&(this._tooltip=L,this._onDidChange.fire({tooltip:L}))}get class(){return this._cssClass}set class(L){this._setClass(L)}_setClass(L){this._cssClass!==L&&(this._cssClass=L,this._onDidChange.fire({class:L}))}get enabled(){return this._enabled}set enabled(L){this._setEnabled(L)}_setEnabled(L){this._enabled!==L&&(this._enabled=L,this._onDidChange.fire({enabled:L}))}get checked(){return this._checked}set checked(L){this._setChecked(L)}_setChecked(L){this._checked!==L&&(this._checked=L,this._onDidChange.fire({checked:L}))}run(L,p){return Me(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(L))})}}class Y extends De.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new we.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new we.Q5),this.onDidRun=this._onDidRun.event}run(L,p){return Me(this,void 0,void 0,function*(){if(!L.enabled)return;this._onBeforeRun.fire({action:L});let a;try{yield this.runAction(L,p)}catch(A){a=A}this._onDidRun.fire({action:L,error:a})})}runAction(L,p){return Me(this,void 0,void 0,function*(){yield L.run(p)})}}class O extends ie{constructor(L){super(O.ID,L,L?"separator text":"separator"),this.checked=!1,this.enabled=!1}}O.ID="vs.actions.separator";class I{constructor(L,p,a,A){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=L,this.label=p,this.class=A,this._actions=a}get actions(){return this._actions}dispose(){}run(){return Me(this,void 0,void 0,function*(){})}}class n extends ie{constructor(){super(n.ID,se.N("submenu.empty","(empty)"),void 0,!1)}}n.ID="vs.actions.empty"},76068:function(bn,Zt,g){"use strict";g.d(Zt,{ok:function(){return we}});function we(De,se){if(!De)throw new Error(se?`Assertion failed (${se})`:"Assertion Failed")}},52615:function(bn,Zt,g){"use strict";g.d(Zt,{CM:function(){return ie},JL:function(){return Y},dT:function(){return I},fK:function(){return Me},lA:function(){return O}});var we=g(4348);class De{constructor(){this._icons=new Map,this._onDidRegister=new we.Q5}add(o){const L=this._icons.get(o.id);L?o.description?L.description=o.description:console.error(`Duplicate registration of codicon ${o.id}`):(this._icons.set(o.id,o),this._onDidRegister.fire(o))}get(o){return this._icons.get(o)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const se=new De,Me=se;function ie(n,o){return new O(n,o)}function Y(n){return n?n.replace(/\$\((.*?)\)/g,(o,L)=>` ${L} `).trim():""}class O{constructor(o,L,p){this.id=o,this.definition=L,this.description=p,se.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var I;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9\\-]+",n.iconModifierExpression="~[A-Za-z]+";const o=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function L(A){if(A instanceof O)return["codicon","codicon-"+A.id];const m=o.exec(A.id);if(!m)return L(O.error);let[,S,$]=m;const F=["codicon","codicon-"+S];return $&&F.push("codicon-modifier-"+$.substr(1)),F}n.asClassNameArray=L;function p(A){return L(A).join(" ")}n.asClassName=p;function a(A){return"."+L(A).join(".")}n.asCSSSelector=a})(I||(I={})),function(n){n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",{fontCharacter:"\\ea71"}),n.closeDirty=new n("close-dirty",{fontCharacter:"\\ea71"}),n.debugBreakpoint=new n("debug-breakpoint",{fontCharacter:"\\ea71"}),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),n.debugHint=new n("debug-hint",{fontCharacter:"\\ea71"}),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circleOutline=new n("circle-outline",{fontCharacter:"\\eabc"}),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.debugStackframeDot=new n("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLargeOutline=new n("circle-large-outline",{fontCharacter:"\\ebb5"}),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"})}(O||(O={}))},79881:function(bn,Zt,g){"use strict";g.d(Zt,{B8:function(){return L},Cp:function(){return Me},F0:function(){return I},L6:function(){return o},VV:function(){return O},b1:function(){return n},dL:function(){return se},ri:function(){return ie}});class we{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(a){setTimeout(()=>{throw a.stack?new Error(a.message+`
|
|
|
|
|
|
`+a.stack):a},0)}}emit(a){this.listeners.forEach(A=>{A(a)})}onUnexpectedError(a){this.unexpectedErrorHandler(a),this.emit(a)}onUnexpectedExternalError(a){this.unexpectedErrorHandler(a)}}const De=new we;function se(p){O(p)||De.onUnexpectedError(p)}function Me(p){O(p)||De.onUnexpectedExternalError(p)}function ie(p){if(p instanceof Error){let{name:a,message:A}=p;const m=p.stacktrace||p.stack;return{$isError:!0,name:a,message:A,stack:m}}return p}const Y="Canceled";function O(p){return p instanceof Error&&p.name===Y&&p.message===Y}function I(){const p=new Error(Y);return p.name=p.message,p}function n(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function o(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class L extends Error{constructor(a){super("NotSupported"),a&&(this.message=a)}}},4348:function(bn,Zt,g){"use strict";g.d(Zt,{D0:function(){return L},E7:function(){return p},K3:function(){return o},Q5:function(){return n},ZD:function(){return a},ju:function(){return ie}});var we=g(79881),De=g(69323),se=g(34502),Me=g(95830),ie;(function(A){A.None=()=>De.JT.None;function m(Ee){return(oe,he=null,ve)=>{let _=!1,P;return P=Ee(X=>{if(!_)return P?P.dispose():_=!0,oe.call(he,X)},null,ve),_&&P.dispose(),P}}A.once=m;function S(Ee,oe){return B((he,ve=null,_)=>Ee(P=>he.call(ve,oe(P)),null,_))}A.map=S;function $(Ee,oe){return B((he,ve=null,_)=>Ee(P=>{oe(P),he.call(ve,P)},null,_))}A.forEach=$;function F(Ee,oe){return B((he,ve=null,_)=>Ee(P=>oe(P)&&he.call(ve,P),null,_))}A.filter=F;function H(Ee){return Ee}A.signal=H;function V(...Ee){return(oe,he=null,ve)=>(0,De.F8)(...Ee.map(_=>_(P=>oe.call(he,P),null,ve)))}A.any=V;function ee(Ee,oe,he){let ve=he;return S(Ee,_=>(ve=oe(ve,_),ve))}A.reduce=ee;function B(Ee){let oe;const he=new n({onFirstListenerAdd(){oe=Ee(he.fire,he)},onLastListenerRemove(){oe.dispose()}});return he.event}function G(Ee,oe,he=100,ve=!1,_){let P,X,pe,Je=0;const at=new n({leakWarningThreshold:_,onFirstListenerAdd(){P=Ee(nt=>{Je++,X=oe(X,nt),ve&&!pe&&(at.fire(X),X=void 0),clearTimeout(pe),pe=setTimeout(()=>{const Lt=X;X=void 0,pe=void 0,(!ve||Je>1)&&at.fire(Lt),Je=0},he)})},onLastListenerRemove(){P.dispose()}});return at.event}A.debounce=G;function le(Ee,oe=(he,ve)=>he===ve){let he=!0,ve;return F(Ee,_=>{const P=he||!oe(_,ve);return he=!1,ve=_,P})}A.latch=le;function J(Ee,oe){return[A.filter(Ee,oe),A.filter(Ee,he=>!oe(he))]}A.split=J;function be(Ee,oe=!1,he=[]){let ve=he.slice(),_=Ee(pe=>{ve?ve.push(pe):X.fire(pe)});const P=()=>{ve&&ve.forEach(pe=>X.fire(pe)),ve=null},X=new n({onFirstListenerAdd(){_||(_=Ee(pe=>X.fire(pe)))},onFirstListenerDidAdd(){ve&&(oe?setTimeout(P):P())},onLastListenerRemove(){_&&_.dispose(),_=null}});return X.event}A.buffer=be;class Ce{constructor(oe){this.event=oe}map(oe){return new Ce(S(this.event,oe))}forEach(oe){return new Ce($(this.event,oe))}filter(oe){return new Ce(F(this.event,oe))}reduce(oe,he){return new Ce(ee(this.event,oe,he))}latch(){return new Ce(le(this.event))}debounce(oe,he=100,ve=!1,_){return new Ce(G(this.event,oe,he,ve,_))}on(oe,he,ve){return this.event(oe,he,ve)}once(oe,he,ve){return m(this.event)(oe,he,ve)}}function Re(Ee){return new Ce(Ee)}A.chain=Re;function ae(Ee,oe,he=ve=>ve){const ve=(...pe)=>X.fire(he(...pe)),_=()=>Ee.on(oe,ve),P=()=>Ee.removeListener(oe,ve),X=new n({onFirstListenerAdd:_,onLastListenerRemove:P});return X.event}A.fromNodeEventEmitter=ae;function me(Ee,oe,he=ve=>ve){const ve=(...pe)=>X.fire(he(...pe)),_=()=>Ee.addEventListener(oe,ve),P=()=>Ee.removeEventListener(oe,ve),X=new n({onFirstListenerAdd:_,onLastListenerRemove:P});return X.event}A.fromDOMEventEmitter=me;function T(Ee){return new Promise(oe=>m(Ee)(oe))}A.toPromise=T})(ie||(ie={}));class Y{constructor(m){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${m}_${Y._idPool++}`}start(m){this._stopWatch=new Me.G(!0),this._listenerCount=m}stop(){if(this._stopWatch){const m=this._stopWatch.elapsed();this._elapsedOverall+=m,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${m.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Y._idPool=0;let O=-1;class I{constructor(m,S=Math.random().toString(18).slice(2,5)){this.customThreshold=m,this.name=S,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(m){let S=O;if(typeof this.customThreshold=="number"&&(S=this.customThreshold),S<=0||m<S)return;this._stacks||(this._stacks=new Map);const $=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),F=this._stacks.get($)||0;if(this._stacks.set($,F+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=S*.5;let H,V=0;for(const[ee,B]of this._stacks)(!H||V<B)&&(H=ee,V=B);console.warn(`[${this.name}] potential listener LEAK detected, having ${m} listeners already. MOST frequent listener (${V}):`),console.warn(H)}return()=>{const H=this._stacks.get($)||0;this._stacks.set($,H-1)}}}class n{constructor(m){var S;this._disposed=!1,this._options=m,this._leakageMon=O>0?new I(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((S=this._options)===null||S===void 0)&&S._profName?new Y(this._options._profName):void 0}get event(){return this._event||(this._event=(m,S,$)=>{var F;this._listeners||(this._listeners=new se.S);const H=this._listeners.isEmpty();H&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const V=this._listeners.push(S?[m,S]:m);H&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,m,S);const ee=(F=this._leakageMon)===null||F===void 0?void 0:F.check(this._listeners.size),B=(0,De.OF)(()=>{ee&&ee(),this._disposed||(V(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return $ instanceof De.SL?$.add(B):Array.isArray($)&&$.push(B),B}),this._event}fire(m){var S,$;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new se.S);for(let F of this._listeners)this._deliveryQueue.push([F,m]);for((S=this._perfMon)===null||S===void 0||S.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[F,H]=this._deliveryQueue.shift();try{typeof F=="function"?F.call(void 0,H):F[0].call(F[1],H)}catch(V){(0,we.dL)(V)}}($=this._perfMon)===null||$===void 0||$.stop()}}dispose(){var m,S,$,F,H;this._disposed||(this._disposed=!0,(m=this._listeners)===null||m===void 0||m.clear(),(S=this._deliveryQueue)===null||S===void 0||S.clear(),(F=($=this._options)===null||$===void 0?void 0:$.onLastListenerRemove)===null||F===void 0||F.call($),(H=this._leakageMon)===null||H===void 0||H.dispose())}}class o extends n{constructor(m){super(m),this._isPaused=0,this._eventQueue=new se.S,this._mergeFn=m==null?void 0:m.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const m=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):super.fire(m))}}class L extends o{constructor(m){var S;super(m),this._delay=(S=m.delay)!==null&&S!==void 0?S:100}fire(m){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(m)}}class p{constructor(){this.buffers=[]}wrapEvent(m){return(S,$,F)=>m(H=>{const V=this.buffers[this.buffers.length-1];V?V.push(()=>S.call($,H)):S.call($,H)},void 0,F)}bufferEvents(m){const S=[];this.buffers.push(S);const $=m();return this.buffers.pop(),S.forEach(F=>F()),$}}class a{constructor(){this.listening=!1,this.inputEvent=ie.None,this.inputEventListener=De.JT.None,this.emitter=new n({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(m){this.inputEvent=m,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=m(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(bn,Zt,g){"use strict";g.d(Zt,{I:function(){return we}});function we(De){const se=this;let Me=!1,ie;return function(){return Me||(Me=!0,ie=De.apply(se,arguments)),ie}}},88226:function(bn,Zt,g){"use strict";g.d(Zt,{$:function(){return we}});var we;(function(De){function se(V){return V&&typeof V=="object"&&typeof V[Symbol.iterator]=="function"}De.is=se;const Me=Object.freeze([]);function ie(){return Me}De.empty=ie;function*Y(V){yield V}De.single=Y;function O(V){return V||Me}De.from=O;function I(V){return!V||V[Symbol.iterator]().next().done===!0}De.isEmpty=I;function n(V){return V[Symbol.iterator]().next().value}De.first=n;function o(V,ee){for(const B of V)if(ee(B))return!0;return!1}De.some=o;function L(V,ee){for(const B of V)if(ee(B))return B}De.find=L;function*p(V,ee){for(const B of V)ee(B)&&(yield B)}De.filter=p;function*a(V,ee){let B=0;for(const G of V)yield ee(G,B++)}De.map=a;function*A(...V){for(const ee of V)for(const B of ee)yield B}De.concat=A;function*m(V){for(const ee of V)for(const B of ee)yield B}De.concatNested=m;function S(V,ee,B){let G=B;for(const le of V)G=ee(G,le);return G}De.reduce=S;function*$(V,ee,B=V.length){for(ee<0&&(ee+=V.length),B<0?B+=V.length:B>V.length&&(B=V.length);ee<B;ee++)yield V[ee]}De.slice=$;function F(V,ee=Number.POSITIVE_INFINITY){const B=[];if(ee===0)return[B,V];const G=V[Symbol.iterator]();for(let le=0;le<ee;le++){const J=G.next();if(J.done)return[B,De.empty()];B.push(J.value)}return[B,{[Symbol.iterator](){return G}}]}De.consume=F;function H(V,ee,B=(G,le)=>G===le){const G=V[Symbol.iterator](),le=ee[Symbol.iterator]();for(;;){const J=G.next(),be=le.next();if(J.done!==be.done)return!1;if(J.done)return!0;if(!B(J.value,be.value))return!1}}De.equals=H})(we||(we={}))},69323:function(bn,Zt,g){"use strict";g.d(Zt,{B9:function(){return a},F8:function(){return A},JT:function(){return $},Jz:function(){return H},OF:function(){return m},SL:function(){return S},Wf:function(){return p},XK:function(){return F},dk:function(){return o}});var we=g(17845),De=g(88226);const se=!1;let Me=null;function ie(V){Me=V}if(se){const V="__is_disposable_tracked__";ie(new class{trackDisposable(ee){const B=new Error("Potentially leaked disposable").stack;setTimeout(()=>{ee[V]||console.log(B)},3e3)}setParent(ee,B){if(ee&&ee!==$.None)try{ee[V]=!0}catch(G){}}markAsDisposed(ee){if(ee&&ee!==$.None)try{ee[V]=!0}catch(B){}}markAsSingleton(ee){}})}function Y(V){return Me==null||Me.trackDisposable(V),V}function O(V){Me==null||Me.markAsDisposed(V)}function I(V,ee){Me==null||Me.setParent(V,ee)}function n(V,ee){if(Me)for(const B of V)Me.setParent(B,ee)}function o(V){return Me==null||Me.markAsSingleton(V),V}class L extends Error{constructor(ee){super(`Encountered errors while disposing of store. Errors: [${ee.join(", ")}]`),this.errors=ee}}function p(V){return typeof V.dispose=="function"&&V.dispose.length===0}function a(V){if(De.$.is(V)){let ee=[];for(const B of V)if(B)try{B.dispose()}catch(G){ee.push(G)}if(ee.length===1)throw ee[0];if(ee.length>1)throw new L(ee);return Array.isArray(V)?[]:V}else if(V)return V.dispose(),V}function A(...V){const ee=m(()=>a(V));return n(V,ee),ee}function m(V){const ee=Y({dispose:(0,we.I)(()=>{O(ee),V()})});return ee}class S{constructor(){this._toDispose=new Set,this._isDisposed=!1,Y(this)}dispose(){this._isDisposed||(O(this),this._isDisposed=!0,this.clear())}clear(){try{a(this._toDispose.values())}finally{this._toDispose.clear()}}add(ee){if(!ee)return ee;if(ee===this)throw new Error("Cannot register a disposable on itself!");return I(ee,this),this._isDisposed?S.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(ee),ee}}S.DISABLE_DISPOSED_WARNING=!1;class ${constructor(){this._store=new S,Y(this),I(this._store,this)}dispose(){O(this),this._store.dispose()}_register(ee){if(ee===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(ee)}}$.None=Object.freeze({dispose(){}});class F{constructor(){this._isDisposed=!1,Y(this)}get value(){return this._isDisposed?void 0:this._value}set value(ee){var B;this._isDisposed||ee===this._value||((B=this._value)===null||B===void 0||B.dispose(),ee&&I(ee,this),this._value=ee)}clear(){this.value=void 0}dispose(){var ee;this._isDisposed=!0,O(this),(ee=this._value)===null||ee===void 0||ee.dispose(),this._value=void 0}clearAndLeak(){const ee=this._value;return this._value=void 0,ee&&I(ee,null),ee}}class H{constructor(ee){this.object=ee}dispose(){}}},34502:function(bn,Zt,g){"use strict";g.d(Zt,{S:function(){return De}});class we{constructor(Me){this.element=Me,this.next=we.Undefined,this.prev=we.Undefined}}we.Undefined=new we(void 0);class De{constructor(){this._first=we.Undefined,this._last=we.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===we.Undefined}clear(){let Me=this._first;for(;Me!==we.Undefined;){const ie=Me.next;Me.prev=we.Undefined,Me.next=we.Undefined,Me=ie}this._first=we.Undefined,this._last=we.Undefined,this._size=0}unshift(Me){return this._insert(Me,!1)}push(Me){return this._insert(Me,!0)}_insert(Me,ie){const Y=new we(Me);if(this._first===we.Undefined)this._first=Y,this._last=Y;else if(ie){const I=this._last;this._last=Y,Y.prev=I,I.next=Y}else{const I=this._first;this._first=Y,Y.next=I,I.prev=Y}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(Y))}}shift(){if(this._first!==we.Undefined){const Me=this._first.element;return this._remove(this._first),Me}}pop(){if(this._last!==we.Undefined){const Me=this._last.element;return this._remove(this._last),Me}}_remove(Me){if(Me.prev!==we.Undefined&&Me.next!==we.Undefined){const ie=Me.prev;ie.next=Me.next,Me.next.prev=ie}else Me.prev===we.Undefined&&Me.next===we.Undefined?(this._first=we.Undefined,this._last=we.Undefined):Me.next===we.Undefined?(this._last=this._last.prev,this._last.next=we.Undefined):Me.prev===we.Undefined&&(this._first=this._first.next,this._first.prev=we.Undefined);this._size-=1}*[Symbol.iterator](){let Me=this._first;for(;Me!==we.Undefined;)yield Me.element,Me=Me.next}}},23345:function(bn,Zt,g){"use strict";g.d(Zt,{$L:function(){return G},ED:function(){return H},IJ:function(){return ee},OS:function(){return Ce},WE:function(){return J},dz:function(){return V},gn:function(){return le},li:function(){return m},r:function(){return me},tY:function(){return B},xS:function(){return be}});var we=g(97671),De;const se="en";let Me=!1,ie=!1,Y=!1,O=!1,I=!1,n=!1,o=!1,L,p=null,a=null,A;const m=typeof self=="object"?self:typeof g.g=="object"?g.g:{};let S;typeof m.vscode!="undefined"&&typeof m.vscode.process!="undefined"?S=m.vscode.process:typeof we!="undefined"&&(S=we);const $=typeof((De=S==null?void 0:S.versions)===null||De===void 0?void 0:De.electron)=="string"&&S.type==="renderer";if(typeof navigator=="object"&&!$)A=navigator.userAgent,Me=A.indexOf("Windows")>=0,ie=A.indexOf("Macintosh")>=0,o=(A.indexOf("Macintosh")>=0||A.indexOf("iPad")>=0||A.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Y=A.indexOf("Linux")>=0,n=!0,L=navigator.language,p=L;else if(typeof S=="object"){Me=S.platform==="win32",ie=S.platform==="darwin",Y=S.platform==="linux",O=Y&&!!S.env.SNAP&&!!S.env.SNAP_REVISION,L=se,p=se;const T=S.env.VSCODE_NLS_CONFIG;if(T)try{const Ee=JSON.parse(T),oe=Ee.availableLanguages["*"];L=Ee.locale,p=oe||se,a=Ee._translationsConfigFile}catch(Ee){}I=!0}else console.error("Unable to resolve platform.");let F=0;ie?F=1:Me?F=3:Y&&(F=2);const H=Me,V=ie,ee=Y,B=I,G=n,le=o,J=A,be=function(){if(m.setImmediate)return m.setImmediate.bind(m);if(typeof m.postMessage=="function"&&!m.importScripts){let oe=[];m.addEventListener("message",ve=>{if(ve.data&&ve.data.vscodeSetImmediateId)for(let _=0,P=oe.length;_<P;_++){const X=oe[_];if(X.id===ve.data.vscodeSetImmediateId){oe.splice(_,1),X.callback();return}}});let he=0;return ve=>{const _=++he;oe.push({id:_,callback:ve}),m.postMessage({vscodeSetImmediateId:_},"*")}}if(typeof(S==null?void 0:S.nextTick)=="function")return S.nextTick.bind(S);const Ee=Promise.resolve();return oe=>Ee.then(oe)}(),Ce=ie||o?2:Me?1:3;let Re=!0,ae=!1;function me(){if(!ae){ae=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2,Re=new Uint16Array(T.buffer)[0]===513}return Re}},95830:function(bn,Zt,g){"use strict";g.d(Zt,{G:function(){return se}});var we=g(23345);const De=we.li.performance&&typeof we.li.performance.now=="function";class se{constructor(ie){this._highResolution=De&&ie,this._startTime=this._now(),this._stopTime=-1}static create(ie=!0){return new se(ie)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?we.li.performance.now():Date.now()}}},82983:function(bn,Zt,g){"use strict";g.d(Zt,{$i:function(){return Je},C8:function(){return Jt},GF:function(){return L},HO:function(){return he},IO:function(){return p},K7:function(){return ur},Kw:function(){return Er},LC:function(){return m},Mh:function(){return be},P1:function(){return Ce},PJ:function(){return Kr},Qe:function(){return at},R1:function(){return o},RP:function(){return X},S6:function(){return _r},TT:function(){return H},Ut:function(){return _},V8:function(){return S},WU:function(){return se},YK:function(){return ae},YU:function(){return Me},ZG:function(){return Re},ZH:function(){return T},ab:function(){return nt},c1:function(){return We},df:function(){return G},ec:function(){return ie},fi:function(){return Se},fy:function(){return Y},j3:function(){return O},j_:function(){return ee},m5:function(){return we},mK:function(){return B},mr:function(){return a},oH:function(){return v},oL:function(){return I},ok:function(){return J},ow:function(){return $},qq:function(){return le},qu:function(){return F},rL:function(){return me},uS:function(){return Cr},un:function(){return n},uq:function(){return A},vH:function(){return oe},xe:function(){return Lt},zY:function(){return V}});function we(Z){return!Z||typeof Z!="string"?!0:Z.trim().length===0}const De=/{(\d+)}/g;function se(Z,...N){return N.length===0?Z:Z.replace(De,function(te,Te){const Ie=parseInt(Te,10);return isNaN(Ie)||Ie<0||Ie>=N.length?te:N[Ie]})}function Me(Z){return Z.replace(/[<>&]/g,function(N){switch(N){case"<":return"<";case">":return">";case"&":return"&";default:return N}})}function ie(Z){return Z.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Y(Z,N=" "){const te=O(Z,N);return I(te,N)}function O(Z,N){if(!Z||!N)return Z;const te=N.length;if(te===0||Z.length===0)return Z;let Te=0;for(;Z.indexOf(N,Te)===Te;)Te=Te+te;return Z.substring(Te)}function I(Z,N){if(!Z||!N)return Z;const te=N.length,Te=Z.length;if(te===0||Te===0)return Z;let Ie=Te,Fe=-1;for(;Fe=Z.lastIndexOf(N,Ie-1),!(Fe===-1||Fe+te!==Ie);){if(Fe===0)return"";Ie=Fe}return Z.substring(0,Ie)}function n(Z){return Z.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function o(Z){return Z.replace(/\*/g,"")}function L(Z,N,te={}){if(!Z)throw new Error("Cannot create regex from empty string");N||(Z=ie(Z)),te.wholeWord&&(/\B/.test(Z.charAt(0))||(Z="\\b"+Z),/\B/.test(Z.charAt(Z.length-1))||(Z=Z+"\\b"));let Te="";return te.global&&(Te+="g"),te.matchCase||(Te+="i"),te.multiline&&(Te+="m"),te.unicode&&(Te+="u"),new RegExp(Z,Te)}function p(Z){return Z.source==="^"||Z.source==="^$"||Z.source==="$"||Z.source==="^\\s*$"?!1:!!(Z.exec("")&&Z.lastIndex===0)}function a(Z){return(Z.global?"g":"")+(Z.ignoreCase?"i":"")+(Z.multiline?"m":"")+(Z.unicode?"u":"")}function A(Z){return Z.split(/\r\n|\r|\n/)}function m(Z){for(let N=0,te=Z.length;N<te;N++){const Te=Z.charCodeAt(N);if(Te!==32&&Te!==9)return N}return-1}function S(Z,N=0,te=Z.length){for(let Te=N;Te<te;Te++){const Ie=Z.charCodeAt(Te);if(Ie!==32&&Ie!==9)return Z.substring(N,Te)}return Z.substring(N,te)}function $(Z,N=Z.length-1){for(let te=N;te>=0;te--){const Te=Z.charCodeAt(te);if(Te!==32&&Te!==9)return te}return-1}function F(Z,N){return Z<N?-1:Z>N?1:0}function H(Z,N,te=0,Te=Z.length,Ie=0,Fe=N.length){for(;te<Te&&Ie<Fe;te++,Ie++){let $e=Z.charCodeAt(te),tt=N.charCodeAt(Ie);if($e<tt)return-1;if($e>tt)return 1}const ze=Te-te,pt=Fe-Ie;return ze<pt?-1:ze>pt?1:0}function V(Z,N){return ee(Z,N,0,Z.length,0,N.length)}function ee(Z,N,te=0,Te=Z.length,Ie=0,Fe=N.length){for(;te<Te&&Ie<Fe;te++,Ie++){let $e=Z.charCodeAt(te),tt=N.charCodeAt(Ie);if($e===tt)continue;if($e>=128||tt>=128)return H(Z.toLowerCase(),N.toLowerCase(),te,Te,Ie,Fe);B($e)&&($e-=32),B(tt)&&(tt-=32);const ct=$e-tt;if(ct!==0)return ct}const ze=Te-te,pt=Fe-Ie;return ze<pt?-1:ze>pt?1:0}function B(Z){return Z>=97&&Z<=122}function G(Z){return Z>=65&&Z<=90}function le(Z,N){return Z.length===N.length&&ee(Z,N)===0}function J(Z,N){const te=N.length;return N.length>Z.length?!1:ee(Z,N,0,te)===0}function be(Z,N){let te,Te=Math.min(Z.length,N.length);for(te=0;te<Te;te++)if(Z.charCodeAt(te)!==N.charCodeAt(te))return te;return Te}function Ce(Z,N){let te,Te=Math.min(Z.length,N.length);const Ie=Z.length-1,Fe=N.length-1;for(te=0;te<Te;te++)if(Z.charCodeAt(Ie-te)!==N.charCodeAt(Fe-te))return te;return Te}function Re(Z){return 55296<=Z&&Z<=56319}function ae(Z){return 56320<=Z&&Z<=57343}function me(Z,N){return(Z-55296<<10)+(N-56320)+65536}function T(Z,N,te){const Te=Z.charCodeAt(te);if(Re(Te)&&te+1<N){const Ie=Z.charCodeAt(te+1);if(ae(Ie))return me(Te,Ie)}return Te}function Ee(Z,N){const te=Z.charCodeAt(N-1);if(ae(te)&&N>1){const Te=Z.charCodeAt(N-2);if(Re(Te))return me(Te,te)}return te}function oe(Z,N){const te=Nt.getInstance(),Te=N,Ie=Z.length,Fe=T(Z,Ie,N);N+=Fe>=65536?2:1;let ze=te.getGraphemeBreakType(Fe);for(;N<Ie;){const pt=T(Z,Ie,N),$e=te.getGraphemeBreakType(pt);if(Se(ze,$e))break;N+=pt>=65536?2:1,ze=$e}return N-Te}function he(Z,N){const te=Nt.getInstance(),Te=N,Ie=Ee(Z,N);N-=Ie>=65536?2:1;let Fe=te.getGraphemeBreakType(Ie);for(;N>0;){const ze=Ee(Z,N),pt=te.getGraphemeBreakType(ze);if(Se(pt,Fe))break;N-=ze>=65536?2:1,Fe=pt}return Te-N}const ve=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function _(Z){return ve.test(Z)}const P=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function X(Z){return P.test(Z)}const pe=/^[\t\n\r\x20-\x7E]*$/;function Je(Z){return pe.test(Z)}const at=/[\u2028\u2029]/;function nt(Z){return at.test(Z)}function Lt(Z){for(let N=0,te=Z.length;N<te;N++)if(ur(Z.charCodeAt(N)))return!0;return!1}function ur(Z){return Z=+Z,Z>=11904&&Z<=55215||Z>=63744&&Z<=64255||Z>=65281&&Z<=65374}function Jt(Z){return Z>=127462&&Z<=127487||Z===8986||Z===8987||Z===9200||Z===9203||Z>=9728&&Z<=10175||Z===11088||Z===11093||Z>=127744&&Z<=128591||Z>=128640&&Z<=128764||Z>=128992&&Z<=129003||Z>=129280&&Z<=129535||Z>=129648&&Z<=129750}const We="\uFEFF";function Cr(Z){return!!(Z&&Z.length>0&&Z.charCodeAt(0)===65279)}function Er(Z,N=!1){return Z?(N&&(Z=Z.replace(/\\./g,"")),Z.toLowerCase()!==Z):!1}function Kr(Z){return Z=Z%(2*26),Z<26?String.fromCharCode(97+Z):String.fromCharCode(65+Z-26)}function _r(Z){return Nt.getInstance().getGraphemeBreakType(Z)}function Se(Z,N){return Z===0?N!==5&&N!==7:Z===2&&N===3?!1:Z===4||Z===2||Z===3||N===4||N===2||N===3?!0:!(Z===8&&(N===8||N===9||N===11||N===12)||(Z===11||Z===9)&&(N===9||N===10)||(Z===12||Z===10)&&N===10||N===5||N===13||N===7||Z===1||Z===13&&N===14||Z===6&&N===6)}class Nt{constructor(){this._data=z()}static getInstance(){return Nt._INSTANCE||(Nt._INSTANCE=new Nt),Nt._INSTANCE}getGraphemeBreakType(N){if(N<32)return N===10?3:N===13?2:4;if(N<127)return 0;const te=this._data,Te=te.length/3;let Ie=1;for(;Ie<=Te;)if(N<te[3*Ie])Ie=2*Ie;else if(N>te[3*Ie+1])Ie=2*Ie+1;else return te[3*Ie+2];return 0}}Nt._INSTANCE=null;function z(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function v(Z,N){if(Z===0)return 0;const te=h(Z,N);if(te!==void 0)return te;const Te=Ee(N,Z);return Z-=D(Te),Z}function h(Z,N){let te=Ee(N,Z);for(Z-=D(te);fe(te)||te===65039||te===8419;){if(Z===0)return;te=Ee(N,Z),Z-=D(te)}if(Jt(te)){if(Z>=0){const Te=Ee(N,Z);Te===8205&&(Z-=D(Te))}return Z}}function D(Z){return Z>=65536?2:1}function fe(Z){return 127995<=Z&&Z<=127999}},72999:function(bn,Zt,g){"use strict";g.d(Zt,{$E:function(){return m},$K:function(){return O},D8:function(){return p},HD:function(){return De},IU:function(){return S},Jp:function(){return I},Kn:function(){return se},cW:function(){return o},f6:function(){return $},hj:function(){return Me},jn:function(){return ie},kJ:function(){return we},mf:function(){return L},o8:function(){return Y},p_:function(){return n},vE:function(){return F}});function we(H){return Array.isArray(H)}function De(H){return typeof H=="string"}function se(H){return typeof H=="object"&&H!==null&&!Array.isArray(H)&&!(H instanceof RegExp)&&!(H instanceof Date)}function Me(H){return typeof H=="number"&&!isNaN(H)}function ie(H){return H===!0||H===!1}function Y(H){return typeof H=="undefined"}function O(H){return!I(H)}function I(H){return Y(H)||H===null}function n(H,V){if(!H)throw new Error(V?`Unexpected type, expected '${V}'`:"Unexpected type")}function o(H){if(I(H))throw new Error("Assertion Failed: argument is undefined or null");return H}function L(H){return typeof H=="function"}function p(H,V){const ee=Math.min(H.length,V.length);for(let B=0;B<ee;B++)a(H[B],V[B])}function a(H,V){if(De(V)){if(typeof H!==V)throw new Error(`argument does not match constraint: typeof ${V}`)}else if(L(V)){try{if(H instanceof V)return}catch(ee){}if(!I(H)&&H.constructor===V||V.length===1&&V.call(void 0,H)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function A(H){let V=[],ee=Object.getPrototypeOf(H);for(;Object.prototype!==ee;)V=V.concat(Object.getOwnPropertyNames(ee)),ee=Object.getPrototypeOf(ee);return V}function m(H){const V=[];for(const ee of A(H))typeof H[ee]=="function"&&V.push(ee);return V}function S(H,V){const ee=G=>function(){const le=Array.prototype.slice.call(arguments,0);return V(G,le)};let B={};for(const G of H)B[G]=ee(G);return B}function $(H){return H===null?void 0:H}function F(H,V="Unreachable"){throw new Error(V)}},13268:function(bn,Zt,g){"use strict";g.d(Zt,{N:function(){return De}});function we(se,Me){let ie;return Me.length===0?ie=se:ie=se.replace(/\{(\d+)\}/g,function(Y,O){const I=O[0];return typeof Me[I]!="undefined"?Me[I]:Y}),ie}function De(se,Me,...ie){return we(Me,ie)}},96236:function(bn,Zt,g){"use strict";g.d(Zt,{BH:function(){return S},NZ:function(){return $},U8:function(){return F},co:function(){return m},eH:function(){return A},vr:function(){return a}});var we=g(75918),De=g(52615),se=g(4348),Me=g(88226),ie=g(69323),Y=g(34502),O=g(35884),I=g(90689),n=g(16925),o=g(49055),L=function(H,V,ee,B){var G=arguments.length,le=G<3?V:B===null?B=Object.getOwnPropertyDescriptor(V,ee):B,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(H,V,ee,B);else for(var be=H.length-1;be>=0;be--)(J=H[be])&&(le=(G<3?J(le):G>3?J(V,ee,le):J(V,ee))||le);return G>3&&le&&Object.defineProperty(V,ee,le),le},p=function(H,V){return function(ee,B){V(ee,B,H)}};function a(H){return H.command!==void 0}class A{constructor(V){this.id=A._idPool++,this._debugName=V}}A._idPool=0,A.CommandPalette=new A("CommandPalette"),A.EditorContext=new A("EditorContext"),A.SimpleEditorContext=new A("SimpleEditorContext"),A.EditorContextCopy=new A("EditorContextCopy"),A.EditorContextPeek=new A("EditorContextPeek"),A.MenubarEditMenu=new A("MenubarEditMenu"),A.MenubarCopy=new A("MenubarCopy"),A.MenubarGoMenu=new A("MenubarGoMenu"),A.MenubarSelectionMenu=new A("MenubarSelectionMenu"),A.InlineCompletionsActions=new A("InlineCompletionsActions");const m=(0,n.yh)("menuService"),S=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new se.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:H=>H===A.CommandPalette}}addCommand(H){return this.addCommands(Me.$.single(H))}addCommands(H){for(const V of H)this._commands.set(V.id,V);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,ie.OF)(()=>{let V=!1;for(const ee of H)V=this._commands.delete(ee.id)||V;V&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(H){return this._commands.get(H)}getCommands(){const H=new Map;return this._commands.forEach((V,ee)=>H.set(ee,V)),H}appendMenuItem(H,V){return this.appendMenuItems(Me.$.single({id:H,item:V}))}appendMenuItems(H){const V=new Set,ee=new Y.S;for(const{id:B,item:G}of H){let le=this._menuItems.get(B);le||(le=new Y.S,this._menuItems.set(B,le)),ee.push(le.push(G)),V.add(B)}return this._onDidChangeMenu.fire(V),(0,ie.OF)(()=>{if(ee.size>0){for(let B of ee)B();this._onDidChangeMenu.fire(V),ee.clear()}})}getMenuItems(H){let V;return this._menuItems.has(H)?V=[...this._menuItems.get(H)]:V=[],H===A.CommandPalette&&this._appendImplicitItems(V),V}_appendImplicitItems(H){const V=new Set;for(const ee of H)a(ee)&&(V.add(ee.command.id),ee.alt&&V.add(ee.alt.id));this._commands.forEach((ee,B)=>{V.has(B)||H.push({command:ee})})}};class $ extends we.wY{constructor(V,ee,B,G){super(`submenuitem.${V.submenu.id}`,typeof V.title=="string"?V.title:V.title.value,[],"submenu"),this.item=V,this._menuService=ee,this._contextKeyService=B,this._options=G}get actions(){const V=[],ee=this._menuService.createMenu(this.item.submenu,this._contextKeyService),B=ee.getActions(this._options);ee.dispose();for(const[,G]of B)G.length>0&&(V.push(...G),V.push(new we.Z0));return V.length&&V.pop(),V}}let F=class WA{constructor(V,ee,B,G,le){var J,be;if(this._commandService=le,this.id=V.id,this.label=B!=null&&B.renderShortTitle&&V.shortTitle?typeof V.shortTitle=="string"?V.shortTitle:V.shortTitle.value:typeof V.title=="string"?V.title:V.title.value,this.tooltip=(be=typeof V.tooltip=="string"?V.tooltip:(J=V.tooltip)===null||J===void 0?void 0:J.value)!==null&&be!==void 0?be:"",this.enabled=!V.precondition||G.contextMatchesRules(V.precondition),this.checked=void 0,V.toggled){const Ce=V.toggled.condition?V.toggled:{condition:V.toggled};this.checked=G.contextMatchesRules(Ce.condition),this.checked&&Ce.tooltip&&(this.tooltip=typeof Ce.tooltip=="string"?Ce.tooltip:Ce.tooltip.value),Ce.title&&(this.label=typeof Ce.title=="string"?Ce.title:Ce.title.value)}this.item=V,this.alt=ee?new WA(ee,void 0,B,G,le):void 0,this._options=B,o.kS.isThemeIcon(V.icon)&&(this.class=De.dT.asClassName(V.icon))}dispose(){}run(...V){var ee,B;let G=[];return!((ee=this._options)===null||ee===void 0)&&ee.arg&&(G=[...G,this._options.arg]),!((B=this._options)===null||B===void 0)&&B.shouldForwardArgs&&(G=[...G,...V]),this._commandService.executeCommand(this.id,...G)}};F=L([p(3,I.i6),p(4,O.H)],F)},35884:function(bn,Zt,g){"use strict";g.d(Zt,{H:function(){return O},P:function(){return I}});var we=g(4348),De=g(88226),se=g(69323),Me=g(34502),ie=g(72999),Y=g(16925);const O=(0,Y.yh)("commandService"),I=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new we.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,o){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!o)throw new Error("invalid command");return this.registerCommand({id:n,handler:o})}if(n.description){const m=[];for(let $ of n.description.args)m.push($.constraint);const S=n.handler;n.handler=function($,...F){return(0,ie.D8)(F,m),S($,...F)}}const{id:L}=n;let p=this._commands.get(L);p||(p=new Me.S,this._commands.set(L,p));let a=p.unshift(n),A=(0,se.OF)(()=>{a();const m=this._commands.get(L);m!=null&&m.isEmpty()&&this._commands.delete(L)});return this._onDidRegisterCommand.fire(L),A}registerCommandAlias(n,o){return I.registerCommand(n,(L,...p)=>L.get(O).executeCommand(o,...p))}getCommand(n){const o=this._commands.get(n);if(!(!o||o.isEmpty()))return De.$.first(o)}getCommands(){const n=new Map;for(const o of this._commands.keys()){const L=this.getCommand(o);L&&n.set(o,L)}return n}};I.registerCommand("noop",()=>{})},90689:function(bn,Zt,g){"use strict";g.d(Zt,{Ao:function(){return O},Eq:function(){return me},Fb:function(){return I},K8:function(){return oe},i6:function(){return ae},uy:function(){return Re}});var we=g(23345),De=g(82983),se=g(16925);let Me=we.WE||"";const ie=new Map;ie.set("false",!1),ie.set("true",!0),ie.set("isMac",we.dz),ie.set("isLinux",we.IJ),ie.set("isWindows",we.ED),ie.set("isWeb",we.$L),ie.set("isMacNative",we.dz&&!we.$L),ie.set("isEdge",Me.indexOf("Edg/")>=0),ie.set("isFirefox",Me.indexOf("Firefox")>=0),ie.set("isChrome",Me.indexOf("Chrome")>=0),ie.set("isSafari",Me.indexOf("Safari")>=0);const Y=Object.prototype.hasOwnProperty;class O{static has(_){return p.create(_)}static equals(_,P){return a.create(_,P)}static regex(_,P){return G.create(_,P)}static not(_){return $.create(_)}static and(..._){return be.create(_,null)}static or(..._){return Ce.create(_,null,!0)}static deserialize(_,P=!1){if(_)return this._deserializeOrExpression(_,P)}static _deserializeOrExpression(_,P){let X=_.split("||");return Ce.create(X.map(pe=>this._deserializeAndExpression(pe,P)),null,!0)}static _deserializeAndExpression(_,P){let X=_.split("&&");return be.create(X.map(pe=>this._deserializeOne(pe,P)),null)}static _deserializeOne(_,P){if(_=_.trim(),_.indexOf("!=")>=0){let X=_.split("!=");return S.create(X[0].trim(),this._deserializeValue(X[1],P))}if(_.indexOf("==")>=0){let X=_.split("==");return a.create(X[0].trim(),this._deserializeValue(X[1],P))}if(_.indexOf("=~")>=0){let X=_.split("=~");return G.create(X[0].trim(),this._deserializeRegexValue(X[1],P))}if(_.indexOf(" in ")>=0){let X=_.split(" in ");return A.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(_)){const X=_.split(">=");return V.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(_)){const X=_.split(">");return H.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(_)){const X=_.split("<=");return B.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(_)){const X=_.split("<");return ee.create(X[0].trim(),X[1].trim())}return/^\!\s*/.test(_)?$.create(_.substr(1).trim()):p.create(_)}static _deserializeValue(_,P){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let X=/^'([^']*)'$/.exec(_);return X?X[1].trim():_}static _deserializeRegexValue(_,P){if((0,De.m5)(_)){if(P)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let X=_.indexOf("/"),pe=_.lastIndexOf("/");if(X===pe||X<0){if(P)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let Je=_.slice(X+1,pe),at=_[pe+1]==="i"?"i":"";try{return new RegExp(Je,at)}catch(nt){if(P)throw new Error(`bad regexp-value '${_}', parse error: ${nt}`);return console.warn(`bad regexp-value '${_}', parse error: ${nt}`),null}}}function I(ve,_){const P=ve?ve.substituteConstants():void 0,X=_?_.substituteConstants():void 0;return!P&&!X?!0:!P||!X?!1:P.equals(X)}function n(ve,_){return ve.cmp(_)}class o{constructor(){this.type=0}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}o.INSTANCE=new o;class L{constructor(){this.type=1}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!0}serialize(){return"true"}keys(){return[]}negate(){return o.INSTANCE}}L.INSTANCE=new L;class p{constructor(_,P){this.key=_,this.negated=P,this.type=2}static create(_,P=null){const X=ie.get(_);return typeof X=="boolean"?X?L.INSTANCE:o.INSTANCE:new p(_,P)}cmp(_){return _.type!==this.type?this.type-_.type:T(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=ie.get(this.key);return typeof _=="boolean"?_?L.INSTANCE:o.INSTANCE:this}evaluate(_){return!!_.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this)),this.negated}}class a{constructor(_,P,X){this.key=_,this.value=P,this.negated=X,this.type=4}static create(_,P,X=null){if(typeof P=="boolean")return P?p.create(_,X):$.create(_,X);const pe=ie.get(_);return typeof pe=="boolean"?P===(pe?"true":"false")?L.INSTANCE:o.INSTANCE:new a(_,P,X)}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=ie.get(this.key);if(typeof _=="boolean"){const P=_?"true":"false";return this.value===P?L.INSTANCE:o.INSTANCE}return this}evaluate(_){return _.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this.value,this)),this.negated}}class A{constructor(_,P){this.key=_,this.valueKey=P,this.type=10,this.negated=null}static create(_,P){return new A(_,P)}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.valueKey,_.key,_.valueKey)}equals(_){return _.type===this.type?this.key===_.key&&this.valueKey===_.valueKey:!1}substituteConstants(){return this}evaluate(_){const P=_.getValue(this.valueKey),X=_.getValue(this.key);return Array.isArray(P)?P.indexOf(X)>=0:typeof X=="string"&&typeof P=="object"&&P!==null?Y.call(P,X):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=m.create(this)),this.negated}}class m{constructor(_){this._actual=_,this.type=11}static create(_){return new m(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class S{constructor(_,P,X){this.key=_,this.value=P,this.negated=X,this.type=5}static create(_,P,X=null){if(typeof P=="boolean")return P?$.create(_,X):p.create(_,X);const pe=ie.get(_);return typeof pe=="boolean"?P===(pe?"true":"false")?o.INSTANCE:L.INSTANCE:new S(_,P,X)}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=ie.get(this.key);if(typeof _=="boolean"){const P=_?"true":"false";return this.value===P?o.INSTANCE:L.INSTANCE}return this}evaluate(_){return _.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=a.create(this.key,this.value,this)),this.negated}}class ${constructor(_,P){this.key=_,this.negated=P,this.type=3}static create(_,P=null){const X=ie.get(_);return typeof X=="boolean"?X?o.INSTANCE:L.INSTANCE:new $(_,P)}cmp(_){return _.type!==this.type?this.type-_.type:T(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=ie.get(this.key);return typeof _=="boolean"?_?o.INSTANCE:L.INSTANCE:this}evaluate(_){return!_.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function F(ve,_){if(typeof ve=="string"){const P=parseFloat(ve);isNaN(P)||(ve=P)}return typeof ve=="string"||typeof ve=="number"?_(ve):o.INSTANCE}class H{constructor(_,P,X){this.key=_,this.value=P,this.negated=X,this.type=12}static create(_,P,X=null){return F(P,pe=>new H(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class V{constructor(_,P,X){this.key=_,this.value=P,this.negated=X,this.type=13}static create(_,P,X=null){return F(P,pe=>new V(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ee.create(this.key,this.value,this)),this.negated}}class ee{constructor(_,P,X){this.key=_,this.value=P,this.negated=X,this.type=14}static create(_,P,X=null){return F(P,pe=>new ee(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class B{constructor(_,P,X){this.key=_,this.value=P,this.negated=X,this.type=15}static create(_,P,X=null){return F(P,pe=>new B(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class G{constructor(_,P){this.key=_,this.regexp=P,this.type=7,this.negated=null}static create(_,P){return new G(_,P)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const P=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return P<X?-1:P>X?1:0}equals(_){if(_.type===this.type){const P=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return this.key===_.key&&P===X}return!1}substituteConstants(){return this}evaluate(_){let P=_.getValue(this.key);return this.regexp?this.regexp.test(P):!1}serialize(){const _=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${_}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=le.create(this)),this.negated}}class le{constructor(_){this._actual=_,this.type=8}static create(_){return new le(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function J(ve){let _=null;for(let P=0,X=ve.length;P<X;P++){const pe=ve[P].substituteConstants();if(ve[P]!==pe&&_===null){_=[];for(let Je=0;Je<P;Je++)_[Je]=ve[Je]}_!==null&&(_[P]=pe)}return _===null?ve:_}class be{constructor(_,P){this.expr=_,this.negated=P,this.type=6}static create(_,P){return be._normalizeArr(_,P)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let P=0,X=this.expr.length;P<X;P++){const pe=n(this.expr[P],_.expr[P]);if(pe!==0)return pe}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let P=0,X=this.expr.length;P<X;P++)if(!this.expr[P].equals(_.expr[P]))return!1;return!0}return!1}substituteConstants(){const _=J(this.expr);return _===this.expr?this:be.create(_,this.negated)}evaluate(_){for(let P=0,X=this.expr.length;P<X;P++)if(!this.expr[P].evaluate(_))return!1;return!0}static _normalizeArr(_,P){const X=[];let pe=!1;for(const Je of _)if(Je){if(Je.type===1){pe=!0;continue}if(Je.type===0)return o.INSTANCE;if(Je.type===6){X.push(...Je.expr);continue}X.push(Je)}if(X.length===0&&pe)return L.INSTANCE;if(X.length!==0){if(X.length===1)return X[0];X.sort(n);for(let Je=1;Je<X.length;Je++)X[Je-1].equals(X[Je])&&(X.splice(Je,1),Je--);if(X.length===1)return X[0];for(;X.length>1;){const Je=X[X.length-1];if(Je.type!==9)break;X.pop();const at=X.pop(),nt=X.length===0,Lt=Ce.create(Je.expr.map(ur=>be.create([ur,at],null)),null,nt);Lt&&(X.push(Lt),X.sort(n))}return X.length===1?X[0]:new be(X,P)}}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let P of this.expr)_.push(...P.keys());return _}negate(){if(!this.negated){const _=[];for(let P of this.expr)_.push(P.negate());this.negated=Ce.create(_,this,!0)}return this.negated}}class Ce{constructor(_,P){this.expr=_,this.negated=P,this.type=9}static create(_,P,X){return Ce._normalizeArr(_,P,X)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let P=0,X=this.expr.length;P<X;P++){const pe=n(this.expr[P],_.expr[P]);if(pe!==0)return pe}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let P=0,X=this.expr.length;P<X;P++)if(!this.expr[P].equals(_.expr[P]))return!1;return!0}return!1}substituteConstants(){const _=J(this.expr);return _===this.expr?this:Ce.create(_,this.negated,!1)}evaluate(_){for(let P=0,X=this.expr.length;P<X;P++)if(this.expr[P].evaluate(_))return!0;return!1}static _normalizeArr(_,P,X){let pe=[],Je=!1;if(_){for(let at=0,nt=_.length;at<nt;at++){const Lt=_[at];if(Lt){if(Lt.type===0){Je=!0;continue}if(Lt.type===1)return L.INSTANCE;if(Lt.type===9){pe=pe.concat(Lt.expr);continue}pe.push(Lt)}}if(pe.length===0&&Je)return o.INSTANCE;pe.sort(n)}if(pe.length!==0){if(pe.length===1)return pe[0];for(let at=1;at<pe.length;at++)pe[at-1].equals(pe[at])&&(pe.splice(at,1),at--);if(pe.length===1)return pe[0];if(X){for(let at=0;at<pe.length;at++)for(let nt=at+1;nt<pe.length;nt++)oe(pe[at],pe[nt])&&(pe.splice(nt,1),nt--);if(pe.length===1)return pe[0]}return new Ce(pe,P)}}serialize(){return this.expr.map(_=>_.serialize()).join(" || ")}keys(){const _=[];for(let P of this.expr)_.push(...P.keys());return _}negate(){if(!this.negated){let _=[];for(let P of this.expr)_.push(P.negate());for(;_.length>1;){const P=_.shift(),X=_.shift(),pe=[];for(const at of he(P))for(const nt of he(X))pe.push(be.create([at,nt],null));const Je=_.length===0;_.unshift(Ce.create(pe,null,Je))}this.negated=_[0]}return this.negated}}class Re extends p{constructor(_,P,X){super(_,null),this._defaultValue=P,typeof X=="object"?Re._info.push(Object.assign(Object.assign({},X),{key:_})):X!==!0&&Re._info.push({key:_,description:X,type:P!=null?typeof P:void 0})}static all(){return Re._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return a.create(this.key,_)}}Re._info=[];const ae=(0,se.yh)("contextKeyService"),me="setContext";function T(ve,_){return ve<_?-1:ve>_?1:0}function Ee(ve,_,P,X){return ve<P?-1:ve>P?1:_<X?-1:_>X?1:0}function oe(ve,_){if(_.type===6&&ve.type!==9&&ve.type!==6){for(const pe of _.expr)if(ve.equals(pe))return!0}const P=ve.negate(),X=he(P).concat(he(_));X.sort(n);for(let pe=0;pe<X.length;pe++){const at=X[pe].negate();for(let nt=pe+1;nt<X.length;nt++){const Lt=X[nt];if(at.equals(Lt))return!0}}return!1}function he(ve){return ve.type===9?ve.expr:[ve]}},16925:function(bn,Zt,g){"use strict";g.d(Zt,{I8:function(){return we},TG:function(){return De},jt:function(){return ie},yh:function(){return Me}});var we;(function(Y){Y.serviceIds=new Map,Y.DI_TARGET="$di$target",Y.DI_DEPENDENCIES="$di$dependencies";function O(I){return I[Y.DI_DEPENDENCIES]||[]}Y.getServiceDependencies=O})(we||(we={}));const De=Me("instantiationService");function se(Y,O,I,n){O[we.DI_TARGET]===O?O[we.DI_DEPENDENCIES].push({id:Y,index:I,optional:n}):(O[we.DI_DEPENDENCIES]=[{id:Y,index:I,optional:n}],O[we.DI_TARGET]=O)}function Me(Y){if(we.serviceIds.has(Y))return we.serviceIds.get(Y);const O=function(I,n,o){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");se(O,I,o,!1)};return O.toString=()=>Y,we.serviceIds.set(Y,O),O}function ie(Y){return function(O,I,n){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");se(Y,O,n,!0)}}},44650:function(bn,Zt,g){"use strict";g.d(Zt,{B:function(){return Me}});var we=g(76068),De=g(72999);class se{constructor(){this.data=new Map}add(Y,O){we.ok(De.HD(Y)),we.ok(De.Kn(O)),we.ok(!this.data.has(Y),"There is already an extension with this id"),this.data.set(Y,O)}as(Y){return this.data.get(Y)||null}}const Me=new se},66213:function(bn,Zt,g){"use strict";g.d(Zt,{e:function(){return we}});var we;(function(De){De.DARK="dark",De.LIGHT="light",De.HIGH_CONTRAST="hc"})(we||(we={}))},49055:function(bn,Zt,g){"use strict";g.d(Zt,{EN:function(){return n},IP:function(){return p},Ic:function(){return m},XE:function(){return O},bB:function(){return S},kS:function(){return o},m6:function(){return L}});var we=g(52615),De=g(4348),se=g(69323),Me=g(16925),ie=g(44650),Y=g(66213);const O=(0,Me.yh)("themeService");var I;(function($){function F(H){return H&&typeof H=="object"&&typeof H.id=="string"}$.isThemeColor=F})(I||(I={}));function n($){return{id:$}}var o;(function($){function F(le){return le&&typeof le=="object"&&typeof le.id=="string"&&(typeof le.color=="undefined"||I.isThemeColor(le.color))}$.isThemeIcon=F;const H=new RegExp(`^\\$\\((${we.dT.iconNameExpression}(?:${we.dT.iconModifierExpression})?)\\)$`);function V(le){const J=H.exec(le);if(!J)return;let[,be]=J;return{id:be}}$.fromString=V;function ee(le,J){let be=le.id;const Ce=be.lastIndexOf("~");return Ce!==-1&&(be=be.substring(0,Ce)),J&&(be=`${be}~${J}`),{id:be}}$.modify=ee;function B(le,J){var be,Ce;return le.id===J.id&&((be=le.color)===null||be===void 0?void 0:be.id)===((Ce=J.color)===null||Ce===void 0?void 0:Ce.id)}$.isEqual=B;function G(le,J){return{id:le.id,color:J?n(J):void 0}}$.asThemeIcon=G,$.asClassNameArray=we.dT.asClassNameArray,$.asClassName=we.dT.asClassName,$.asCSSSelector=we.dT.asCSSSelector})(o||(o={}));function L($){switch($){case Y.e.DARK:return"vs-dark";case Y.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class a{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new De.Q5}onColorThemeChange(F){return this.themingParticipants.push(F),this.onThemingParticipantAddedEmitter.fire(F),(0,se.OF)(()=>{const H=this.themingParticipants.indexOf(F);this.themingParticipants.splice(H,1)})}getThemingParticipants(){return this.themingParticipants}}let A=new a;ie.B.add(p.ThemingContribution,A);function m($){return A.onColorThemeChange($)}class S extends se.JT{constructor(F){super(),this.themeService=F,this.theme=F.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(H=>this.onThemeChange(H)))}onThemeChange(F){this.theme=F,this.updateStyles()}updateStyles(){}}},5630:function(bn,Zt,g){"use strict";var we=g(96663),De=g(44127),se=g(90493),Me=g(72071),ie=g(6620),Y=g(92310),O=g.n(Y),I=g(18929),n=g(59301),o=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],L=(0,n.forwardRef)(function(p,a){var A,m=p.prefixCls,S=m===void 0?"rc-checkbox":m,$=p.className,F=p.style,H=p.checked,V=p.disabled,ee=p.defaultChecked,B=ee===void 0?!1:ee,G=p.type,le=G===void 0?"checkbox":G,J=p.title,be=p.onChange,Ce=(0,ie.Z)(p,o),Re=(0,n.useRef)(null),ae=(0,I.Z)(B,{value:H}),me=(0,Me.Z)(ae,2),T=me[0],Ee=me[1];(0,n.useImperativeHandle)(a,function(){return{focus:function(){var _;(_=Re.current)===null||_===void 0||_.focus()},blur:function(){var _;(_=Re.current)===null||_===void 0||_.blur()},input:Re.current}});var oe=O()(S,$,(A={},(0,se.Z)(A,"".concat(S,"-checked"),T),(0,se.Z)(A,"".concat(S,"-disabled"),V),A)),he=function(_){V||("checked"in p||Ee(_.target.checked),be==null||be({target:(0,De.Z)((0,De.Z)({},p),{},{type:le,checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return n.createElement("span",{className:oe,title:J,style:F},n.createElement("input",(0,we.Z)({},Ce,{className:"".concat(S,"-input"),ref:Re,onChange:he,disabled:V,checked:!!T,type:le})),n.createElement("span",{className:"".concat(S,"-inner")}))});Zt.Z=L},31561:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return le}});var we=g(96663),De=g(90493),se=g(72071),Me=g(6620),ie=g(35593),Y=g(92310),O=g.n(Y),I=g(8654),n=g(59301),o=g(10228),L=g(16089),p=o.Z.ESC,a=o.Z.TAB;function A(J){var be=J.visible,Ce=J.triggerRef,Re=J.onVisibleChange,ae=J.autoFocus,me=J.overlayRef,T=n.useRef(!1),Ee=function(){if(be){var _,P;(_=Ce.current)===null||_===void 0||(P=_.focus)===null||P===void 0||P.call(_),Re==null||Re(!1)}},oe=function(){var _;return(_=me.current)!==null&&_!==void 0&&_.focus?(me.current.focus(),T.current=!0,!0):!1},he=function(_){switch(_.keyCode){case p:Ee();break;case a:{var P=!1;T.current||(P=oe()),P?_.preventDefault():Ee();break}}};n.useEffect(function(){return be?(window.addEventListener("keydown",he),ae&&(0,L.Z)(oe,3),function(){window.removeEventListener("keydown",he),T.current=!1}):function(){T.current=!1}},[be])}var m=(0,n.forwardRef)(function(J,be){var Ce=J.overlay,Re=J.arrow,ae=J.prefixCls,me=(0,n.useMemo)(function(){var Ee;return typeof Ce=="function"?Ee=Ce():Ee=Ce,Ee},[Ce]),T=(0,I.sQ)(be,me==null?void 0:me.ref);return n.createElement(n.Fragment,null,Re&&n.createElement("div",{className:"".concat(ae,"-arrow")}),n.cloneElement(me,{ref:(0,I.Yr)(me)?T:void 0}))}),S=m,$={adjustX:1,adjustY:1},F=[0,0],H={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-4],targetOffset:F},top:{points:["bc","tc"],overflow:$,offset:[0,-4],targetOffset:F},topRight:{points:["br","tr"],overflow:$,offset:[0,-4],targetOffset:F},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,4],targetOffset:F},bottom:{points:["tc","bc"],overflow:$,offset:[0,4],targetOffset:F},bottomRight:{points:["tr","br"],overflow:$,offset:[0,4],targetOffset:F}},V=H,ee=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function B(J,be){var Ce,Re=J.arrow,ae=Re===void 0?!1:Re,me=J.prefixCls,T=me===void 0?"rc-dropdown":me,Ee=J.transitionName,oe=J.animation,he=J.align,ve=J.placement,_=ve===void 0?"bottomLeft":ve,P=J.placements,X=P===void 0?V:P,pe=J.getPopupContainer,Je=J.showAction,at=J.hideAction,nt=J.overlayClassName,Lt=J.overlayStyle,ur=J.visible,Jt=J.trigger,We=Jt===void 0?["hover"]:Jt,Cr=J.autoFocus,Er=J.overlay,Kr=J.children,_r=J.onVisibleChange,Se=(0,Me.Z)(J,ee),Nt=n.useState(),z=(0,se.Z)(Nt,2),v=z[0],h=z[1],D="visible"in J?ur:v,fe=n.useRef(null),Z=n.useRef(null),N=n.useRef(null);n.useImperativeHandle(be,function(){return fe.current});var te=function(Ge){h(Ge),_r==null||_r(Ge)};A({visible:D,triggerRef:N,onVisibleChange:te,autoFocus:Cr,overlayRef:Z});var Te=function(Ge){var Ke=J.onOverlayClick;h(!1),Ke&&Ke(Ge)},Ie=function(){return n.createElement(S,{ref:Z,overlay:Er,prefixCls:T,arrow:ae})},Fe=function(){return typeof Er=="function"?Ie:Ie()},ze=function(){var Ge=J.minOverlayWidthMatchTrigger,Ke=J.alignPoint;return"minOverlayWidthMatchTrigger"in J?Ge:!Ke},pt=function(){var Ge=J.openClassName;return Ge!==void 0?Ge:"".concat(T,"-open")},$e=n.cloneElement(Kr,{className:O()((Ce=Kr.props)===null||Ce===void 0?void 0:Ce.className,D&&pt()),ref:(0,I.Yr)(Kr)?(0,I.sQ)(N,Kr.ref):void 0}),tt=at;return!tt&&We.indexOf("contextMenu")!==-1&&(tt=["click"]),n.createElement(ie.Z,(0,we.Z)({builtinPlacements:X},Se,{prefixCls:T,ref:fe,popupClassName:O()(nt,(0,De.Z)({},"".concat(T,"-show-arrow"),ae)),popupStyle:Lt,action:We,showAction:Je,hideAction:tt,popupPlacement:_,popupAlign:he,popupTransitionName:Ee,popupAnimation:oe,popupVisible:D,stretch:ze()?"minWidth":"",popup:Fe(),onPopupVisibleChange:te,onPopupClick:Te,getPopupContainer:pe}),$e)}var G=n.forwardRef(B),le=G},93681:function(bn,Zt,g){"use strict";g.r(Zt),g.d(Zt,{BaseInput:function(){return o},default:function(){return H}});var we=g(96663),De=g(44127),se=g(90493),Me=g(20135),ie=g(92310),Y=g.n(ie),O=g(59301),I=g(5643),n=function(ee){var B,G,le=ee.inputElement,J=ee.prefixCls,be=ee.prefix,Ce=ee.suffix,Re=ee.addonBefore,ae=ee.addonAfter,me=ee.className,T=ee.style,Ee=ee.disabled,oe=ee.readOnly,he=ee.focused,ve=ee.triggerFocus,_=ee.allowClear,P=ee.value,X=ee.handleReset,pe=ee.hidden,Je=ee.classes,at=ee.classNames,nt=ee.dataAttrs,Lt=ee.styles,ur=ee.components,Jt=(ur==null?void 0:ur.affixWrapper)||"span",We=(ur==null?void 0:ur.groupWrapper)||"span",Cr=(ur==null?void 0:ur.wrapper)||"span",Er=(ur==null?void 0:ur.groupAddon)||"span",Kr=(0,O.useRef)(null),_r=function(Ie){var Fe;(Fe=Kr.current)!==null&&Fe!==void 0&&Fe.contains(Ie.target)&&(ve==null||ve())},Se=function(){var Ie;if(!_)return null;var Fe=!Ee&&!oe&&P,ze="".concat(J,"-clear-icon"),pt=(0,Me.Z)(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"\u2716";return O.createElement("span",{onClick:X,onMouseDown:function(tt){return tt.preventDefault()},className:Y()(ze,(Ie={},(0,se.Z)(Ie,"".concat(ze,"-hidden"),!Fe),(0,se.Z)(Ie,"".concat(ze,"-has-suffix"),!!Ce),Ie)),role:"button",tabIndex:-1},pt)},Nt=(0,O.cloneElement)(le,{value:P,hidden:pe,className:Y()((B=le.props)===null||B===void 0?void 0:B.className,!(0,I.X3)(ee)&&!(0,I.He)(ee)&&me)||null,style:(0,De.Z)((0,De.Z)({},(G=le.props)===null||G===void 0?void 0:G.style),!(0,I.X3)(ee)&&!(0,I.He)(ee)?T:{})});if((0,I.X3)(ee)){var z,v="".concat(J,"-affix-wrapper"),h=Y()(v,(z={},(0,se.Z)(z,"".concat(v,"-disabled"),Ee),(0,se.Z)(z,"".concat(v,"-focused"),he),(0,se.Z)(z,"".concat(v,"-readonly"),oe),(0,se.Z)(z,"".concat(v,"-input-with-clear-btn"),Ce&&_&&P),z),!(0,I.He)(ee)&&me,Je==null?void 0:Je.affixWrapper,at==null?void 0:at.affixWrapper),D=(Ce||_)&&O.createElement("span",{className:Y()("".concat(J,"-suffix"),at==null?void 0:at.suffix),style:Lt==null?void 0:Lt.suffix},Se(),Ce);Nt=O.createElement(Jt,(0,we.Z)({className:h,style:(0,De.Z)((0,De.Z)({},(0,I.He)(ee)?void 0:T),Lt==null?void 0:Lt.affixWrapper),hidden:!(0,I.He)(ee)&&pe,onClick:_r},nt==null?void 0:nt.affixWrapper,{ref:Kr}),be&&O.createElement("span",{className:Y()("".concat(J,"-prefix"),at==null?void 0:at.prefix),style:Lt==null?void 0:Lt.prefix},be),(0,O.cloneElement)(le,{value:P,hidden:null}),D)}if((0,I.He)(ee)){var fe="".concat(J,"-group"),Z="".concat(fe,"-addon"),N=Y()("".concat(J,"-wrapper"),fe,Je==null?void 0:Je.wrapper),te=Y()("".concat(J,"-group-wrapper"),me,Je==null?void 0:Je.group);return O.createElement(We,{className:te,style:T,hidden:pe},O.createElement(Cr,{className:N},Re&&O.createElement(Er,{className:Z},Re),(0,O.cloneElement)(Nt,{hidden:null}),ae&&O.createElement(Er,{className:Z},ae)))}return Nt},o=n,L=g(19127),p=g(72071),a=g(6620),A=g(18929),m=g(2738),S=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],$=(0,O.forwardRef)(function(V,ee){var B=V.autoComplete,G=V.onChange,le=V.onFocus,J=V.onBlur,be=V.onPressEnter,Ce=V.onKeyDown,Re=V.prefixCls,ae=Re===void 0?"rc-input":Re,me=V.disabled,T=V.htmlSize,Ee=V.className,oe=V.maxLength,he=V.suffix,ve=V.showCount,_=V.type,P=_===void 0?"text":_,X=V.classes,pe=V.classNames,Je=V.styles,at=(0,a.Z)(V,S),nt=(0,A.Z)(V.defaultValue,{value:V.value}),Lt=(0,p.Z)(nt,2),ur=Lt[0],Jt=Lt[1],We=(0,O.useState)(!1),Cr=(0,p.Z)(We,2),Er=Cr[0],Kr=Cr[1],_r=(0,O.useRef)(null),Se=function(te){_r.current&&(0,I.nH)(_r.current,te)};(0,O.useImperativeHandle)(ee,function(){return{focus:Se,blur:function(){var te;(te=_r.current)===null||te===void 0||te.blur()},setSelectionRange:function(te,Te,Ie){var Fe;(Fe=_r.current)===null||Fe===void 0||Fe.setSelectionRange(te,Te,Ie)},select:function(){var te;(te=_r.current)===null||te===void 0||te.select()},input:_r.current}}),(0,O.useEffect)(function(){Kr(function(N){return N&&me?!1:N})},[me]);var Nt=function(te){V.value===void 0&&Jt(te.target.value),_r.current&&(0,I.rJ)(_r.current,te,G)},z=function(te){be&&te.key==="Enter"&&be(te),Ce==null||Ce(te)},v=function(te){Kr(!0),le==null||le(te)},h=function(te){Kr(!1),J==null||J(te)},D=function(te){Jt(""),Se(),_r.current&&(0,I.rJ)(_r.current,te,G)},fe=function(){var te=(0,m.Z)(V,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return O.createElement("input",(0,we.Z)({autoComplete:B},te,{onChange:Nt,onFocus:v,onBlur:h,onKeyDown:z,className:Y()(ae,(0,se.Z)({},"".concat(ae,"-disabled"),me),pe==null?void 0:pe.input),style:Je==null?void 0:Je.input,ref:_r,size:T,type:P}))},Z=function(){var te=Number(oe)>0;if(he||ve){var Te=(0,I.D7)(ur),Ie=(0,L.Z)(Te).length,Fe=(0,Me.Z)(ve)==="object"?ve.formatter({value:Te,count:Ie,maxLength:oe}):"".concat(Ie).concat(te?" / ".concat(oe):"");return O.createElement(O.Fragment,null,!!ve&&O.createElement("span",{className:Y()("".concat(ae,"-show-count-suffix"),(0,se.Z)({},"".concat(ae,"-show-count-has-suffix"),!!he),pe==null?void 0:pe.count),style:(0,De.Z)({},Je==null?void 0:Je.count)},Fe),he)}return null};return O.createElement(o,(0,we.Z)({},at,{prefixCls:ae,className:Ee,inputElement:fe(),handleReset:D,value:(0,I.D7)(ur),focused:Er,triggerFocus:Se,suffix:Z(),disabled:me,classes:X,classNames:pe,styles:Je}))}),F=$,H=F},5643:function(bn,Zt,g){"use strict";g.d(Zt,{D7:function(){return ie},He:function(){return we},X3:function(){return De},nH:function(){return Me},rJ:function(){return se}});function we(Y){return!!(Y.addonBefore||Y.addonAfter)}function De(Y){return!!(Y.prefix||Y.suffix||Y.allowClear)}function se(Y,O,I,n){if(I){var o=O;if(O.type==="click"){var L=Y.cloneNode(!0);o=Object.create(O,{target:{value:L},currentTarget:{value:L}}),L.value="",I(o);return}if(n!==void 0){o=Object.create(O,{target:{value:Y},currentTarget:{value:Y}}),Y.value=n,I(o);return}I(o)}}function Me(Y,O){if(Y){Y.focus(O);var I=O||{},n=I.cursor;if(n){var o=Y.value.length;switch(n){case"start":Y.setSelectionRange(0,0);break;case"end":Y.setSelectionRange(o,o);break;default:Y.setSelectionRange(0,o)}}}}function ie(Y){return typeof Y=="undefined"||Y===null?"":String(Y)}},15285:function(bn,Zt,g){"use strict";g.d(Zt,{iz:function(){return ei},ck:function(){return qt},BW:function(){return Qn},sN:function(){return qt},Wd:function(){return Lr},ZP:function(){return wn},Xl:function(){return Ce}});var we=g(96663),De=g(90493),se=g(44127),Me=g(19127),ie=g(72071),Y=g(6620),O=g(92310),I=g.n(O),n=g(11780),o=g(18929),L=g(13697),p=g(48736),a=g(59301),A=g(4676),m=a.createContext(null);function S(hr,br){return hr===void 0?null:"".concat(hr,"-").concat(br)}function $(hr){var br=a.useContext(m);return S(br,hr)}var F=g(80547),H=["children","locked"],V=a.createContext(null);function ee(hr,br){var Fr=(0,se.Z)({},hr);return Object.keys(br).forEach(function(Zr){var Ur=br[Zr];Ur!==void 0&&(Fr[Zr]=Ur)}),Fr}function B(hr){var br=hr.children,Fr=hr.locked,Zr=(0,Y.Z)(hr,H),Ur=a.useContext(V),on=(0,F.Z)(function(){return ee(Ur,Zr)},[Ur,Zr],function(en,Hn){return!Fr&&(en[0]!==Hn[0]||!(0,L.Z)(en[1],Hn[1],!0))});return a.createElement(V.Provider,{value:on},br)}var G=[],le=a.createContext(null);function J(){return a.useContext(le)}var be=a.createContext(G);function Ce(hr){var br=a.useContext(be);return a.useMemo(function(){return hr!==void 0?[].concat((0,Me.Z)(br),[hr]):br},[br,hr])}var Re=a.createContext(null),ae=a.createContext({}),me=ae,T=g(29194);function Ee(hr){var br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,T.Z)(hr)){var Fr=hr.nodeName.toLowerCase(),Zr=["input","select","textarea","button"].includes(Fr)||hr.isContentEditable||Fr==="a"&&!!hr.getAttribute("href"),Ur=hr.getAttribute("tabindex"),on=Number(Ur),en=null;return Ur&&!Number.isNaN(on)?en=on:Zr&&en===null&&(en=0),Zr&&hr.disabled&&(en=null),en!==null&&(en>=0||br&&en<0)}return!1}function oe(hr){var br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fr=(0,Me.Z)(hr.querySelectorAll("*")).filter(function(Zr){return Ee(Zr,br)});return Ee(hr,br)&&Fr.unshift(hr),Fr}var he=null;function ve(){he=document.activeElement}function _(){he=null}function P(){if(he)try{he.focus()}catch(hr){}}function X(hr,br){if(br.keyCode===9){var Fr=oe(hr),Zr=Fr[br.shiftKey?0:Fr.length-1],Ur=Zr===document.activeElement||hr===document.activeElement;if(Ur){var on=Fr[br.shiftKey?Fr.length-1:0];on.focus(),br.preventDefault()}}}var pe=g(10228),Je=g(16089),at=pe.Z.LEFT,nt=pe.Z.RIGHT,Lt=pe.Z.UP,ur=pe.Z.DOWN,Jt=pe.Z.ENTER,We=pe.Z.ESC,Cr=pe.Z.HOME,Er=pe.Z.END,Kr=[Lt,ur,at,nt];function _r(hr,br,Fr,Zr){var Ur,on,en,Hn,ti="prev",ui="next",Ri="children",Ui="parent";if(hr==="inline"&&Zr===Jt)return{inlineTrigger:!0};var Pi=(Ur={},(0,De.Z)(Ur,Lt,ti),(0,De.Z)(Ur,ur,ui),Ur),Tr=(on={},(0,De.Z)(on,at,Fr?ui:ti),(0,De.Z)(on,nt,Fr?ti:ui),(0,De.Z)(on,ur,Ri),(0,De.Z)(on,Jt,Ri),on),_n=(en={},(0,De.Z)(en,Lt,ti),(0,De.Z)(en,ur,ui),(0,De.Z)(en,Jt,Ri),(0,De.Z)(en,We,Ui),(0,De.Z)(en,at,Fr?Ri:Ui),(0,De.Z)(en,nt,Fr?Ui:Ri),en),hn={inline:Pi,horizontal:Tr,vertical:_n,inlineSub:Pi,horizontalSub:_n,verticalSub:_n},hi=(Hn=hn["".concat(hr).concat(br?"":"Sub")])===null||Hn===void 0?void 0:Hn[Zr];switch(hi){case ti:return{offset:-1,sibling:!0};case ui:return{offset:1,sibling:!0};case Ui:return{offset:-1,sibling:!1};case Ri:return{offset:1,sibling:!1};default:return null}}function Se(hr){for(var br=hr;br;){if(br.getAttribute("data-menu-list"))return br;br=br.parentElement}return null}function Nt(hr,br){for(var Fr=hr||document.activeElement;Fr;){if(br.has(Fr))return Fr;Fr=Fr.parentElement}return null}function z(hr,br){var Fr=oe(hr,!0);return Fr.filter(function(Zr){return br.has(Zr)})}function v(hr,br,Fr){var Zr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!hr)return null;var Ur=z(hr,br),on=Ur.length,en=Ur.findIndex(function(Hn){return Fr===Hn});return Zr<0?en===-1?en=on-1:en-=1:Zr>0&&(en+=1),en=(en+on)%on,Ur[en]}var h=function(br,Fr){var Zr=new Set,Ur=new Map,on=new Map;return br.forEach(function(en){var Hn=document.querySelector("[data-menu-id='".concat(S(Fr,en),"']"));Hn&&(Zr.add(Hn),on.set(Hn,en),Ur.set(en,Hn))}),{elements:Zr,key2element:Ur,element2key:on}};function D(hr,br,Fr,Zr,Ur,on,en,Hn,ti,ui){var Ri=a.useRef(),Ui=a.useRef();Ui.current=br;var Pi=function(){Je.Z.cancel(Ri.current)};return a.useEffect(function(){return function(){Pi()}},[]),function(Tr){var _n=Tr.which;if([].concat(Kr,[Jt,We,Cr,Er]).includes(_n)){var hn=on(),hi=h(hn,Zr),ii=hi,ri=ii.elements,bi=ii.key2element,Di=ii.element2key,Bi=bi.get(br),zi=Nt(Bi,ri),ca=Di.get(zi),xi=_r(hr,en(ca,!0).length===1,Fr,_n);if(!xi&&_n!==Cr&&_n!==Er)return;(Kr.includes(_n)||[Cr,Er].includes(_n))&&Tr.preventDefault();var vn=function(Ji){if(Ji){var Sa=Ji,_i=Ji.querySelector("a");_i!=null&&_i.getAttribute("href")&&(Sa=_i);var ai=Di.get(Ji);Hn(ai),Pi(),Ri.current=(0,Je.Z)(function(){Ui.current===ai&&Sa.focus()})}};if([Cr,Er].includes(_n)||xi.sibling||!zi){var jt;!zi||hr==="inline"?jt=Ur.current:jt=Se(zi);var Ln,Gn=z(jt,ri);_n===Cr?Ln=Gn[0]:_n===Er?Ln=Gn[Gn.length-1]:Ln=v(jt,ri,zi,xi.offset),vn(Ln)}else if(xi.inlineTrigger)ti(ca);else if(xi.offset>0)ti(ca,!0),Pi(),Ri.current=(0,Je.Z)(function(){hi=h(hn,Zr);var xa=zi.getAttribute("aria-controls"),Ji=document.getElementById(xa),Sa=v(Ji,hi.elements);vn(Sa)},5);else if(xi.offset<0){var Ei=en(ca,!0),Qi=Ei[Ei.length-2],da=bi.get(Qi);ti(Qi,!1),vn(da)}}ui==null||ui(Tr)}}function fe(hr){Promise.resolve().then(hr)}var Z="__RC_UTIL_PATH_SPLIT__",N=function(br){return br.join(Z)},te=function(br){return br.split(Z)},Te="rc-menu-more";function Ie(){var hr=a.useState({}),br=(0,ie.Z)(hr,2),Fr=br[1],Zr=(0,a.useRef)(new Map),Ur=(0,a.useRef)(new Map),on=a.useState([]),en=(0,ie.Z)(on,2),Hn=en[0],ti=en[1],ui=(0,a.useRef)(0),Ri=(0,a.useRef)(!1),Ui=function(){Ri.current||Fr({})},Pi=(0,a.useCallback)(function(bi,Di){var Bi=N(Di);Ur.current.set(Bi,bi),Zr.current.set(bi,Bi),ui.current+=1;var zi=ui.current;fe(function(){zi===ui.current&&Ui()})},[]),Tr=(0,a.useCallback)(function(bi,Di){var Bi=N(Di);Ur.current.delete(Bi),Zr.current.delete(bi)},[]),_n=(0,a.useCallback)(function(bi){ti(bi)},[]),hn=(0,a.useCallback)(function(bi,Di){var Bi=Zr.current.get(bi)||"",zi=te(Bi);return Di&&Hn.includes(zi[0])&&zi.unshift(Te),zi},[Hn]),hi=(0,a.useCallback)(function(bi,Di){return bi.some(function(Bi){var zi=hn(Bi,!0);return zi.includes(Di)})},[hn]),ii=function(){var Di=(0,Me.Z)(Zr.current.keys());return Hn.length&&Di.push(Te),Di},ri=(0,a.useCallback)(function(bi){var Di="".concat(Zr.current.get(bi)).concat(Z),Bi=new Set;return(0,Me.Z)(Ur.current.keys()).forEach(function(zi){zi.startsWith(Di)&&Bi.add(Ur.current.get(zi))}),Bi},[]);return a.useEffect(function(){return function(){Ri.current=!0}},[]),{registerPath:Pi,unregisterPath:Tr,refreshOverflowKeys:_n,isSubPathKey:hi,getKeyPath:hn,getKeys:ii,getSubPathKeys:ri}}function Fe(hr){var br=a.useRef(hr);br.current=hr;var Fr=a.useCallback(function(){for(var Zr,Ur=arguments.length,on=new Array(Ur),en=0;en<Ur;en++)on[en]=arguments[en];return(Zr=br.current)===null||Zr===void 0?void 0:Zr.call.apply(Zr,[br].concat(on))},[]);return hr?Fr:void 0}var ze=Math.random().toFixed(5).toString().slice(2),pt=0;function $e(hr){var br=(0,o.Z)(hr,{value:hr}),Fr=(0,ie.Z)(br,2),Zr=Fr[0],Ur=Fr[1];return a.useEffect(function(){pt+=1;var on="".concat(ze,"-").concat(pt);Ur("rc-menu-uuid-".concat(on))},[]),Zr}var tt=g(52884),ct=g(95727),Ge=g(65711),Ke=g(85745),Bt=g(2738),Vt=g(8654);function Mt(hr,br,Fr,Zr){var Ur=a.useContext(V),on=Ur.activeKey,en=Ur.onActive,Hn=Ur.onInactive,ti={active:on===hr};return br||(ti.onMouseEnter=function(ui){Fr==null||Fr({key:hr,domEvent:ui}),en(hr)},ti.onMouseLeave=function(ui){Zr==null||Zr({key:hr,domEvent:ui}),Hn(hr)}),ti}function mr(hr){var br=a.useContext(V),Fr=br.mode,Zr=br.rtl,Ur=br.inlineIndent;if(Fr!=="inline")return null;var on=hr;return Zr?{paddingRight:on*Ur}:{paddingLeft:on*Ur}}function wr(hr){var br=hr.icon,Fr=hr.props,Zr=hr.children,Ur;return br===null||br===!1?null:(typeof br=="function"?Ur=a.createElement(br,(0,se.Z)({},Fr)):typeof br!="boolean"&&(Ur=br),Ur||Zr||null)}var re=["item"];function ue(hr){var br=hr.item,Fr=(0,Y.Z)(hr,re);return Object.defineProperty(Fr,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),br}}),Fr}var rr=["title","attribute","elementRef"],Qe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ot=["active"],Yr=function(hr){(0,Ge.Z)(Fr,hr);var br=(0,Ke.Z)(Fr);function Fr(){return(0,tt.Z)(this,Fr),br.apply(this,arguments)}return(0,ct.Z)(Fr,[{key:"render",value:function(){var Ur=this.props,on=Ur.title,en=Ur.attribute,Hn=Ur.elementRef,ti=(0,Y.Z)(Ur,rr),ui=(0,Bt.Z)(ti,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!en,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(n.Z.Item,(0,we.Z)({},en,{title:typeof on=="string"?on:void 0},ui,{ref:Hn}))}}]),Fr}(a.Component),It=a.forwardRef(function(hr,br){var Fr,Zr=hr.style,Ur=hr.className,on=hr.eventKey,en=hr.warnKey,Hn=hr.disabled,ti=hr.itemIcon,ui=hr.children,Ri=hr.role,Ui=hr.onMouseEnter,Pi=hr.onMouseLeave,Tr=hr.onClick,_n=hr.onKeyDown,hn=hr.onFocus,hi=(0,Y.Z)(hr,Qe),ii=$(on),ri=a.useContext(V),bi=ri.prefixCls,Di=ri.onItemClick,Bi=ri.disabled,zi=ri.overflowDisabled,ca=ri.itemIcon,xi=ri.selectedKeys,vn=ri.onActive,jt=a.useContext(me),Ln=jt._internalRenderMenuItem,Gn="".concat(bi,"-item"),Ei=a.useRef(),Qi=a.useRef(),da=Bi||Hn,xa=(0,Vt.x1)(br,Qi),Ji=Ce(on),Sa=function(Da){return{key:on,keyPath:(0,Me.Z)(Ji).reverse(),item:Ei.current,domEvent:Da}},_i=ti||ca,ai=Mt(on,da,Ui,Pi),$i=ai.active,ra=(0,Y.Z)(ai,ot),Ea=xi.includes(on),xs=mr(Ji.length),oi=function(Da){if(!da){var Ni=Sa(Da);Tr==null||Tr(ue(Ni)),Di(Ni)}},Ca=function(Da){if(_n==null||_n(Da),Da.which===pe.Z.ENTER){var Ni=Sa(Da);Tr==null||Tr(ue(Ni)),Di(Ni)}},ga=function(Da){vn(on),hn==null||hn(Da)},Qa={};hr.role==="option"&&(Qa["aria-selected"]=Ea);var _s=a.createElement(Yr,(0,we.Z)({ref:Ei,elementRef:xa,role:Ri===null?"none":Ri||"menuitem",tabIndex:Hn?null:-1,"data-menu-id":zi&&ii?null:ii},hi,ra,Qa,{component:"li","aria-disabled":Hn,style:(0,se.Z)((0,se.Z)({},xs),Zr),className:I()(Gn,(Fr={},(0,De.Z)(Fr,"".concat(Gn,"-active"),$i),(0,De.Z)(Fr,"".concat(Gn,"-selected"),Ea),(0,De.Z)(Fr,"".concat(Gn,"-disabled"),da),Fr),Ur),onClick:oi,onKeyDown:Ca,onFocus:ga}),ui,a.createElement(wr,{props:(0,se.Z)((0,se.Z)({},hr),{},{isSelected:Ea}),icon:_i}));return Ln&&(_s=Ln(_s,hr,{selected:Ea})),_s});function zt(hr,br){var Fr=hr.eventKey,Zr=J(),Ur=Ce(Fr);return a.useEffect(function(){if(Zr)return Zr.registerPath(Fr,Ur),function(){Zr.unregisterPath(Fr,Ur)}},[Ur]),Zr?null:a.createElement(It,(0,we.Z)({},hr,{ref:br}))}var qt=a.forwardRef(zt),qe=["className","children"],At=function(br,Fr){var Zr=br.className,Ur=br.children,on=(0,Y.Z)(br,qe),en=a.useContext(V),Hn=en.prefixCls,ti=en.mode,ui=en.rtl;return a.createElement("ul",(0,we.Z)({className:I()(Hn,ui&&"".concat(Hn,"-rtl"),"".concat(Hn,"-sub"),"".concat(Hn,"-").concat(ti==="inline"?"inline":"vertical"),Zr),role:"menu"},on,{"data-menu-list":!0,ref:Fr}),Ur)},dt=a.forwardRef(At);dt.displayName="SubMenuList";var Gt=dt,Pe=g(11592);function an(hr,br){return(0,Pe.Z)(hr).map(function(Fr,Zr){if(a.isValidElement(Fr)){var Ur,on,en=Fr.key,Hn=(Ur=(on=Fr.props)===null||on===void 0?void 0:on.eventKey)!==null&&Ur!==void 0?Ur:en,ti=Hn==null;ti&&(Hn="tmp_key-".concat([].concat((0,Me.Z)(br),[Zr]).join("-")));var ui={key:Hn,eventKey:Hn};return a.cloneElement(Fr,ui)}return Fr})}var kt=g(35593),kn={adjustX:1,adjustY:1},Xn={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},leftTop:{points:["tr","tl"],overflow:kn},leftBottom:{points:["br","bl"],overflow:kn},rightTop:{points:["tl","tr"],overflow:kn},rightBottom:{points:["bl","br"],overflow:kn}},yi={topLeft:{points:["bl","tl"],overflow:kn},topRight:{points:["br","tr"],overflow:kn},bottomLeft:{points:["tl","bl"],overflow:kn},bottomRight:{points:["tr","br"],overflow:kn},rightTop:{points:["tr","tl"],overflow:kn},rightBottom:{points:["br","bl"],overflow:kn},leftTop:{points:["tl","tr"],overflow:kn},leftBottom:{points:["bl","br"],overflow:kn}},ji=null;function On(hr,br,Fr){if(br)return br;if(Fr)return Fr[hr]||Fr.other}var $n={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Yt(hr){var br=hr.prefixCls,Fr=hr.visible,Zr=hr.children,Ur=hr.popup,on=hr.popupStyle,en=hr.popupClassName,Hn=hr.popupOffset,ti=hr.disabled,ui=hr.mode,Ri=hr.onVisibleChange,Ui=a.useContext(V),Pi=Ui.getPopupContainer,Tr=Ui.rtl,_n=Ui.subMenuOpenDelay,hn=Ui.subMenuCloseDelay,hi=Ui.builtinPlacements,ii=Ui.triggerSubMenuAction,ri=Ui.forceSubMenuRender,bi=Ui.rootClassName,Di=Ui.motion,Bi=Ui.defaultMotions,zi=a.useState(!1),ca=(0,ie.Z)(zi,2),xi=ca[0],vn=ca[1],jt=Tr?(0,se.Z)((0,se.Z)({},yi),hi):(0,se.Z)((0,se.Z)({},Xn),hi),Ln=$n[ui],Gn=On(ui,Di,Bi),Ei=a.useRef(Gn);ui!=="inline"&&(Ei.current=Gn);var Qi=(0,se.Z)((0,se.Z)({},Ei.current),{},{leavedClassName:"".concat(br,"-hidden"),removeOnLeave:!1,motionAppear:!0}),da=a.useRef();return a.useEffect(function(){return da.current=(0,Je.Z)(function(){vn(Fr)}),function(){Je.Z.cancel(da.current)}},[Fr]),a.createElement(kt.Z,{prefixCls:br,popupClassName:I()("".concat(br,"-popup"),(0,De.Z)({},"".concat(br,"-rtl"),Tr),en,bi),stretch:ui==="horizontal"?"minWidth":null,getPopupContainer:Pi,builtinPlacements:jt,popupPlacement:Ln,popupVisible:xi,popup:Ur,popupStyle:on,popupAlign:Hn&&{offset:Hn},action:ti?[]:[ii],mouseEnterDelay:_n,mouseLeaveDelay:hn,onPopupVisibleChange:Ri,forceRender:ri,popupMotion:Qi,fresh:!0},Zr)}var jr=g(77900);function Jr(hr){var br=hr.id,Fr=hr.open,Zr=hr.keyPath,Ur=hr.children,on="inline",en=a.useContext(V),Hn=en.prefixCls,ti=en.forceSubMenuRender,ui=en.motion,Ri=en.defaultMotions,Ui=en.mode,Pi=a.useRef(!1);Pi.current=Ui===on;var Tr=a.useState(!Pi.current),_n=(0,ie.Z)(Tr,2),hn=_n[0],hi=_n[1],ii=Pi.current?Fr:!1;a.useEffect(function(){Pi.current&&hi(!1)},[Ui]);var ri=(0,se.Z)({},On(on,ui,Ri));Zr.length>1&&(ri.motionAppear=!1);var bi=ri.onVisibleChanged;return ri.onVisibleChanged=function(Di){return!Pi.current&&!Di&&hi(!0),bi==null?void 0:bi(Di)},hn?null:a.createElement(B,{mode:on,locked:!Pi.current},a.createElement(jr.default,(0,we.Z)({visible:ii},ri,{forceRender:ti,removeOnLeave:!1,leavedClassName:"".concat(Hn,"-hidden")}),function(Di){var Bi=Di.className,zi=Di.style;return a.createElement(Gt,{id:br,className:Bi,style:zi},Ur)}))}var Ot=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_t=["active"],Br=function(br){var Fr,Zr=br.style,Ur=br.className,on=br.title,en=br.eventKey,Hn=br.warnKey,ti=br.disabled,ui=br.internalPopupClose,Ri=br.children,Ui=br.itemIcon,Pi=br.expandIcon,Tr=br.popupClassName,_n=br.popupOffset,hn=br.popupStyle,hi=br.onClick,ii=br.onMouseEnter,ri=br.onMouseLeave,bi=br.onTitleClick,Di=br.onTitleMouseEnter,Bi=br.onTitleMouseLeave,zi=(0,Y.Z)(br,Ot),ca=$(en),xi=a.useContext(V),vn=xi.prefixCls,jt=xi.mode,Ln=xi.openKeys,Gn=xi.disabled,Ei=xi.overflowDisabled,Qi=xi.activeKey,da=xi.selectedKeys,xa=xi.itemIcon,Ji=xi.expandIcon,Sa=xi.onItemClick,_i=xi.onOpenChange,ai=xi.onActive,$i=a.useContext(me),ra=$i._internalRenderSubMenuItem,Ea=a.useContext(Re),xs=Ea.isSubPathKey,oi=Ce(),Ca="".concat(vn,"-submenu"),ga=Gn||ti,Qa=a.useRef(),_s=a.useRef(),is=Ui!=null?Ui:xa,Da=Pi!=null?Pi:Ji,Ni=Ln.includes(en),la=!Ei&&Ni,ps=xs(da,en),as=Mt(en,ga,Di,Bi),ts=as.active,Wi=(0,Y.Z)(as,_t),ms=a.useState(!1),aa=(0,ie.Z)(ms,2),co=aa[0],Qs=aa[1],_o=function(Es){ga||Qs(Es)},fs=function(Es){_o(!0),ii==null||ii({key:en,domEvent:Es})},Bo=function(Es){_o(!1),ri==null||ri({key:en,domEvent:Es})},ss=a.useMemo(function(){return ts||(jt!=="inline"?co||xs([Qi],en):!1)},[jt,ts,Qi,co,en,xs]),Yn=mr(oi.length),La=function(Es){ga||(bi==null||bi({key:en,domEvent:Es}),jt==="inline"&&_i(en,!Ni))},io=Fe(function(cs){hi==null||hi(ue(cs)),Sa(cs)}),Zi=function(Es){jt!=="inline"&&_i(en,Es)},ta=function(){ai(en)},Hi=ca&&"".concat(ca,"-popup"),ki=a.createElement("div",(0,we.Z)({role:"menuitem",style:Yn,className:"".concat(Ca,"-title"),tabIndex:ga?null:-1,ref:Qa,title:typeof on=="string"?on:null,"data-menu-id":Ei&&ca?null:ca,"aria-expanded":la,"aria-haspopup":!0,"aria-controls":Hi,"aria-disabled":ga,onClick:La,onFocus:ta},Wi),on,a.createElement(wr,{icon:jt!=="horizontal"?Da:void 0,props:(0,se.Z)((0,se.Z)({},br),{},{isOpen:la,isSubMenu:!0})},a.createElement("i",{className:"".concat(Ca,"-arrow")}))),ya=a.useRef(jt);if(jt!=="inline"&&oi.length>1?ya.current="vertical":ya.current=jt,!Ei){var Na=ya.current;ki=a.createElement(Yt,{mode:Na,prefixCls:Ca,visible:!ui&&la&&jt!=="inline",popupClassName:Tr,popupOffset:_n,popupStyle:hn,popup:a.createElement(B,{mode:Na==="horizontal"?"vertical":Na},a.createElement(Gt,{id:Hi,ref:_s},Ri)),disabled:ga,onVisibleChange:Zi},ki)}var Rs=a.createElement(n.Z.Item,(0,we.Z)({role:"none"},zi,{component:"li",style:Zr,className:I()(Ca,"".concat(Ca,"-").concat(jt),Ur,(Fr={},(0,De.Z)(Fr,"".concat(Ca,"-open"),la),(0,De.Z)(Fr,"".concat(Ca,"-active"),ss),(0,De.Z)(Fr,"".concat(Ca,"-selected"),ps),(0,De.Z)(Fr,"".concat(Ca,"-disabled"),ga),Fr)),onMouseEnter:fs,onMouseLeave:Bo}),ki,!Ei&&a.createElement(Jr,{id:Hi,open:la,keyPath:oi},Ri));return ra&&(Rs=ra(Rs,br,{selected:ps,active:ss,open:la,disabled:ga})),a.createElement(B,{onItemClick:io,mode:jt==="horizontal"?"vertical":jt,itemIcon:is,expandIcon:Da},Rs)};function Lr(hr){var br=hr.eventKey,Fr=hr.children,Zr=Ce(br),Ur=an(Fr,Zr),on=J();a.useEffect(function(){if(on)return on.registerPath(br,Zr),function(){on.unregisterPath(br,Zr)}},[Zr]);var en;return on?en=Ur:en=a.createElement(Br,hr,Ur),a.createElement(be.Provider,{value:Zr},en)}var In=g(20135),tn=["className","title","eventKey","children"],Bn=["children"],gn=function(br){var Fr=br.className,Zr=br.title,Ur=br.eventKey,on=br.children,en=(0,Y.Z)(br,tn),Hn=a.useContext(V),ti=Hn.prefixCls,ui="".concat(ti,"-item-group");return a.createElement("li",(0,we.Z)({role:"presentation"},en,{onClick:function(Ui){return Ui.stopPropagation()},className:I()(ui,Fr)}),a.createElement("div",{role:"presentation",className:"".concat(ui,"-title"),title:typeof Zr=="string"?Zr:void 0},Zr),a.createElement("ul",{role:"group",className:"".concat(ui,"-list")},on))};function Qn(hr){var br=hr.children,Fr=(0,Y.Z)(hr,Bn),Zr=Ce(Fr.eventKey),Ur=an(br,Zr),on=J();return on?Ur:a.createElement(gn,(0,Bt.Z)(Fr,["warnKey"]),Ur)}function ei(hr){var br=hr.className,Fr=hr.style,Zr=a.useContext(V),Ur=Zr.prefixCls,on=J();return on?null:a.createElement("li",{role:"separator",className:I()("".concat(Ur,"-item-divider"),br),style:Fr})}var Hr=["label","children","key","type"];function zr(hr){return(hr||[]).map(function(br,Fr){if(br&&(0,In.Z)(br)==="object"){var Zr=br,Ur=Zr.label,on=Zr.children,en=Zr.key,Hn=Zr.type,ti=(0,Y.Z)(Zr,Hr),ui=en!=null?en:"tmp-".concat(Fr);return on||Hn==="group"?Hn==="group"?a.createElement(Qn,(0,we.Z)({key:ui},ti,{title:Ur}),zr(on)):a.createElement(Lr,(0,we.Z)({key:ui},ti,{title:Ur}),zr(on)):Hn==="divider"?a.createElement(ei,(0,we.Z)({key:ui},ti)):a.createElement(qt,(0,we.Z)({key:ui},ti),Ur)}return null}).filter(function(br){return br})}function Tn(hr,br,Fr){var Zr=hr;return br&&(Zr=zr(br)),an(Zr,Fr)}var Sn=["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"],jn=[],Vn=a.forwardRef(function(hr,br){var Fr,Zr,Ur=hr,on=Ur.prefixCls,en=on===void 0?"rc-menu":on,Hn=Ur.rootClassName,ti=Ur.style,ui=Ur.className,Ri=Ur.tabIndex,Ui=Ri===void 0?0:Ri,Pi=Ur.items,Tr=Ur.children,_n=Ur.direction,hn=Ur.id,hi=Ur.mode,ii=hi===void 0?"vertical":hi,ri=Ur.inlineCollapsed,bi=Ur.disabled,Di=Ur.disabledOverflow,Bi=Ur.subMenuOpenDelay,zi=Bi===void 0?.1:Bi,ca=Ur.subMenuCloseDelay,xi=ca===void 0?.1:ca,vn=Ur.forceSubMenuRender,jt=Ur.defaultOpenKeys,Ln=Ur.openKeys,Gn=Ur.activeKey,Ei=Ur.defaultActiveFirst,Qi=Ur.selectable,da=Qi===void 0?!0:Qi,xa=Ur.multiple,Ji=xa===void 0?!1:xa,Sa=Ur.defaultSelectedKeys,_i=Ur.selectedKeys,ai=Ur.onSelect,$i=Ur.onDeselect,ra=Ur.inlineIndent,Ea=ra===void 0?24:ra,xs=Ur.motion,oi=Ur.defaultMotions,Ca=Ur.triggerSubMenuAction,ga=Ca===void 0?"hover":Ca,Qa=Ur.builtinPlacements,_s=Ur.itemIcon,is=Ur.expandIcon,Da=Ur.overflowedIndicator,Ni=Da===void 0?"...":Da,la=Ur.overflowedIndicatorPopupClassName,ps=Ur.getPopupContainer,as=Ur.onClick,ts=Ur.onOpenChange,Wi=Ur.onKeyDown,ms=Ur.openAnimation,aa=Ur.openTransitionName,co=Ur._internalRenderMenuItem,Qs=Ur._internalRenderSubMenuItem,_o=(0,Y.Z)(Ur,Sn),fs=a.useMemo(function(){return Tn(Tr,Pi,jn)},[Tr,Pi]),Bo=a.useState(!1),ss=(0,ie.Z)(Bo,2),Yn=ss[0],La=ss[1],io=a.useRef(),Zi=$e(hn),ta=_n==="rtl",Hi=(0,o.Z)(jt,{value:Ln,postState:function(vs){return vs||jn}}),ki=(0,ie.Z)(Hi,2),ya=ki[0],Na=ki[1],Rs=function(vs){var Ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Cs(){Na(vs),ts==null||ts(vs)}Ja?(0,A.flushSync)(Cs):Cs()},cs=a.useState(ya),Es=(0,ie.Z)(cs,2),rs=Es[0],So=Es[1],go=a.useRef(!1),eo=a.useMemo(function(){return(ii==="inline"||ii==="vertical")&&ri?["vertical",ri]:[ii,!1]},[ii,ri]),zs=(0,ie.Z)(eo,2),Os=zs[0],Li=zs[1],pi=Os==="inline",ua=a.useState(Os),gs=(0,ie.Z)(ua,2),Oa=gs[0],Ns=gs[1],Vs=a.useState(Li),vo=(0,ie.Z)(Vs,2),Ps=vo[0],Ti=vo[1];a.useEffect(function(){Ns(Os),Ti(Li),go.current&&(pi?Na(rs):Rs(jn))},[Os,Li]);var Dl=a.useState(0),Js=(0,ie.Z)(Dl,2),nl=Js[0],Qo=Js[1],Ao=nl>=fs.length-1||Oa!=="horizontal"||Di;a.useEffect(function(){pi&&So(ya)},[ya]),a.useEffect(function(){return go.current=!0,function(){go.current=!1}},[]);var _a=Ie(),vl=_a.registerPath,yl=_a.unregisterPath,fo=_a.refreshOverflowKeys,yo=_a.isSubPathKey,ka=_a.getKeyPath,pa=_a.getKeys,to=_a.getSubPathKeys,Ya=a.useMemo(function(){return{registerPath:vl,unregisterPath:yl}},[vl,yl]),ns=a.useMemo(function(){return{isSubPathKey:yo}},[yo]);a.useEffect(function(){fo(Ao?jn:fs.slice(nl+1).map(function(Wa){return Wa.key}))},[nl,Ao]);var js=(0,o.Z)(Gn||Ei&&((Fr=fs[0])===null||Fr===void 0?void 0:Fr.key),{value:Gn}),wa=(0,ie.Z)(js,2),Ys=wa[0],ao=wa[1],Po=Fe(function(Wa){ao(Wa)}),Do=Fe(function(){ao(void 0)});(0,a.useImperativeHandle)(br,function(){return{list:io.current,focus:function(vs){var Ja,Cs=pa(),qs=h(Cs,Zi),El=qs.elements,il=qs.key2element,Rl=qs.element2key,cu=z(io.current,El),Ol=Ys!=null?Ys:cu[0]?Rl.get(cu[0]):(Ja=fs.find(function(Au){return!Au.props.disabled}))===null||Ja===void 0?void 0:Ja.key,Pl=il.get(Ol);if(Ol&&Pl){var ci;Pl==null||(ci=Pl.focus)===null||ci===void 0||ci.call(Pl,vs)}}}});var Xa=(0,o.Z)(Sa||[],{value:_i,postState:function(vs){return Array.isArray(vs)?vs:vs==null?jn:[vs]}}),bl=(0,ie.Z)(Xa,2),so=bl[0],bo=bl[1],Zl=function(vs){if(da){var Ja=vs.key,Cs=so.includes(Ja),qs;Ji?Cs?qs=so.filter(function(il){return il!==Ja}):qs=[].concat((0,Me.Z)(so),[Ja]):qs=[Ja],bo(qs);var El=(0,se.Z)((0,se.Z)({},vs),{},{selectedKeys:qs});Cs?$i==null||$i(El):ai==null||ai(El)}!Ji&&ya.length&&Oa!=="inline"&&Rs(jn)},wl=Fe(function(Wa){as==null||as(ue(Wa)),Zl(Wa)}),fl=Fe(function(Wa,vs){var Ja=ya.filter(function(qs){return qs!==Wa});if(vs)Ja.push(Wa);else if(Oa!=="inline"){var Cs=to(Wa);Ja=Ja.filter(function(qs){return!Cs.has(qs)})}(0,L.Z)(ya,Ja,!0)||Rs(Ja,!0)}),Ll=function(vs,Ja){var Cs=Ja!=null?Ja:!ya.includes(vs);fl(vs,Cs)},xl=D(Oa,Ys,ta,Zi,io,pa,ka,ao,Ll,Wi);a.useEffect(function(){La(!0)},[]);var jo=a.useMemo(function(){return{_internalRenderMenuItem:co,_internalRenderSubMenuItem:Qs}},[co,Qs]),Gs=Oa!=="horizontal"||Di?fs:fs.map(function(Wa,vs){return a.createElement(B,{key:Wa.key,overflowDisabled:vs>nl},Wa)}),Lo=a.createElement(n.Z,(0,we.Z)({id:hn,ref:io,prefixCls:"".concat(en,"-overflow"),component:"ul",itemComponent:qt,className:I()(en,"".concat(en,"-root"),"".concat(en,"-").concat(Oa),ui,(Zr={},(0,De.Z)(Zr,"".concat(en,"-inline-collapsed"),Ps),(0,De.Z)(Zr,"".concat(en,"-rtl"),ta),Zr),Hn),dir:_n,style:ti,role:"menu",tabIndex:Ui,data:Gs,renderRawItem:function(vs){return vs},renderRawRest:function(vs){var Ja=vs.length,Cs=Ja?fs.slice(-Ja):null;return a.createElement(Lr,{eventKey:Te,title:Ni,disabled:Ao,internalPopupClose:Ja===0,popupClassName:la},Cs)},maxCount:Oa!=="horizontal"||Di?n.Z.INVALIDATE:n.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(vs){Qo(vs)},onKeyDown:xl},_o));return a.createElement(me.Provider,{value:jo},a.createElement(m.Provider,{value:Zi},a.createElement(B,{prefixCls:en,rootClassName:Hn,mode:Oa,openKeys:ya,rtl:ta,disabled:bi,motion:Yn?xs:null,defaultMotions:Yn?oi:null,activeKey:Ys,onActive:Po,onInactive:Do,selectedKeys:so,inlineIndent:Ea,subMenuOpenDelay:zi,subMenuCloseDelay:xi,forceSubMenuRender:vn,builtinPlacements:Qa,triggerSubMenuAction:ga,getPopupContainer:ps,itemIcon:_s,expandIcon:is,onItemClick:wl,onOpenChange:fl},a.createElement(Re.Provider,{value:ns},Lo),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(le.Provider,{value:Ya},fs)))))}),Mi=Vn,Ai=Mi;Ai.Item=qt,Ai.SubMenu=Lr,Ai.ItemGroup=Qn,Ai.Divider=ei;var wn=Ai},11780:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return ve}});var we=g(96663),De=g(44127),se=g(72071),Me=g(6620),ie=g(59301),Y=g(92310),O=g.n(Y),I=g(29301),n=g(34280),o=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L=void 0;function p(_,P){var X=_.prefixCls,pe=_.invalidate,Je=_.item,at=_.renderItem,nt=_.responsive,Lt=_.responsiveDisabled,ur=_.registerSize,Jt=_.itemKey,We=_.className,Cr=_.style,Er=_.children,Kr=_.display,_r=_.order,Se=_.component,Nt=Se===void 0?"div":Se,z=(0,Me.Z)(_,o),v=nt&&!Kr;function h(te){ur(Jt,te)}ie.useEffect(function(){return function(){h(null)}},[]);var D=at&&Je!==L?at(Je,{index:_r}):Er,fe;pe||(fe={opacity:v?0:1,height:v?0:L,overflowY:v?"hidden":L,order:nt?_r:L,pointerEvents:v?"none":L,position:v?"absolute":L});var Z={};v&&(Z["aria-hidden"]=!0);var N=ie.createElement(Nt,(0,we.Z)({className:O()(!pe&&X,We),style:(0,De.Z)((0,De.Z)({},fe),Cr)},Z,z,{ref:P}),D);return nt&&(N=ie.createElement(I.Z,{onResize:function(Te){var Ie=Te.offsetWidth;h(Ie)},disabled:Lt},N)),N}var a=ie.forwardRef(p);a.displayName="Item";var A=a,m=g(6089),S=g(4676),$=g(16089);function F(_){if(typeof MessageChannel=="undefined")(0,$.Z)(_);else{var P=new MessageChannel;P.port1.onmessage=function(){return _()},P.port2.postMessage(void 0)}}function H(){var _=ie.useRef(null),P=function(pe){_.current||(_.current=[],F(function(){(0,S.unstable_batchedUpdates)(function(){_.current.forEach(function(Je){Je()}),_.current=null})})),_.current.push(pe)};return P}function V(_,P){var X=ie.useState(P),pe=(0,se.Z)(X,2),Je=pe[0],at=pe[1],nt=(0,m.Z)(function(Lt){_(function(){at(Lt)})});return[Je,nt]}var ee=ie.createContext(null),B=["component"],G=["className"],le=["className"],J=function(P,X){var pe=ie.useContext(ee);if(!pe){var Je=P.component,at=Je===void 0?"div":Je,nt=(0,Me.Z)(P,B);return ie.createElement(at,(0,we.Z)({},nt,{ref:X}))}var Lt=pe.className,ur=(0,Me.Z)(pe,G),Jt=P.className,We=(0,Me.Z)(P,le);return ie.createElement(ee.Provider,{value:null},ie.createElement(A,(0,we.Z)({ref:X,className:O()(Lt,Jt)},ur,We)))},be=ie.forwardRef(J);be.displayName="RawItem";var Ce=be,Re=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ae="responsive",me="invalidate";function T(_){return"+ ".concat(_.length," ...")}function Ee(_,P){var X=_.prefixCls,pe=X===void 0?"rc-overflow":X,Je=_.data,at=Je===void 0?[]:Je,nt=_.renderItem,Lt=_.renderRawItem,ur=_.itemKey,Jt=_.itemWidth,We=Jt===void 0?10:Jt,Cr=_.ssr,Er=_.style,Kr=_.className,_r=_.maxCount,Se=_.renderRest,Nt=_.renderRawRest,z=_.suffix,v=_.component,h=v===void 0?"div":v,D=_.itemComponent,fe=_.onVisibleChange,Z=(0,Me.Z)(_,Re),N=Cr==="full",te=H(),Te=V(te,null),Ie=(0,se.Z)(Te,2),Fe=Ie[0],ze=Ie[1],pt=Fe||0,$e=V(te,new Map),tt=(0,se.Z)($e,2),ct=tt[0],Ge=tt[1],Ke=V(te,0),Bt=(0,se.Z)(Ke,2),Vt=Bt[0],Mt=Bt[1],mr=V(te,0),wr=(0,se.Z)(mr,2),re=wr[0],ue=wr[1],rr=V(te,0),Qe=(0,se.Z)(rr,2),ot=Qe[0],Yr=Qe[1],It=(0,ie.useState)(null),zt=(0,se.Z)(It,2),qt=zt[0],qe=zt[1],At=(0,ie.useState)(null),dt=(0,se.Z)(At,2),Gt=dt[0],Pe=dt[1],an=ie.useMemo(function(){return Gt===null&&N?Number.MAX_SAFE_INTEGER:Gt||0},[Gt,Fe]),kt=(0,ie.useState)(!1),kn=(0,se.Z)(kt,2),Xn=kn[0],yi=kn[1],ji="".concat(pe,"-item"),On=Math.max(Vt,re),$n=_r===ae,Yt=at.length&&$n,jr=_r===me,Jr=Yt||typeof _r=="number"&&at.length>_r,Ot=(0,ie.useMemo)(function(){var wn=at;return Yt?Fe===null&&N?wn=at:wn=at.slice(0,Math.min(at.length,pt/We)):typeof _r=="number"&&(wn=at.slice(0,_r)),wn},[at,We,Fe,_r,Yt]),_t=(0,ie.useMemo)(function(){return Yt?at.slice(an+1):at.slice(Ot.length)},[at,Ot,Yt,an]),Br=(0,ie.useCallback)(function(wn,hr){var br;return typeof ur=="function"?ur(wn):(br=ur&&(wn==null?void 0:wn[ur]))!==null&&br!==void 0?br:hr},[ur]),Lr=(0,ie.useCallback)(nt||function(wn){return wn},[nt]);function In(wn,hr,br){Gt===wn&&(hr===void 0||hr===qt)||(Pe(wn),br||(yi(wn<at.length-1),fe==null||fe(wn)),hr!==void 0&&qe(hr))}function tn(wn,hr){ze(hr.clientWidth)}function Bn(wn,hr){Ge(function(br){var Fr=new Map(br);return hr===null?Fr.delete(wn):Fr.set(wn,hr),Fr})}function gn(wn,hr){ue(hr),Mt(re)}function Qn(wn,hr){Yr(hr)}function ei(wn){return ct.get(Br(Ot[wn],wn))}(0,n.Z)(function(){if(pt&&typeof On=="number"&&Ot){var wn=ot,hr=Ot.length,br=hr-1;if(!hr){In(0,null);return}for(var Fr=0;Fr<hr;Fr+=1){var Zr=ei(Fr);if(N&&(Zr=Zr||0),Zr===void 0){In(Fr-1,void 0,!0);break}if(wn+=Zr,br===0&&wn<=pt||Fr===br-1&&wn+ei(br)<=pt){In(br,null);break}else if(wn+On>pt){In(Fr-1,wn-Zr-ot+re);break}}z&&ei(0)+ot>pt&&qe(null)}},[pt,ct,re,ot,Br,Ot]);var Hr=Xn&&!!_t.length,zr={};qt!==null&&Yt&&(zr={position:"absolute",left:qt,top:0});var Tn={prefixCls:ji,responsive:Yt,component:D,invalidate:jr},Sn=Lt?function(wn,hr){var br=Br(wn,hr);return ie.createElement(ee.Provider,{key:br,value:(0,De.Z)((0,De.Z)({},Tn),{},{order:hr,item:wn,itemKey:br,registerSize:Bn,display:hr<=an})},Lt(wn,hr))}:function(wn,hr){var br=Br(wn,hr);return ie.createElement(A,(0,we.Z)({},Tn,{order:hr,key:br,item:wn,renderItem:Lr,itemKey:br,registerSize:Bn,display:hr<=an}))},jn={order:Hr?an:Number.MAX_SAFE_INTEGER,className:"".concat(ji,"-rest"),registerSize:gn,display:Hr},Vn=Se||T,Mi=Nt?ie.createElement(ee.Provider,{value:(0,De.Z)((0,De.Z)({},Tn),jn)},Nt(_t)):ie.createElement(A,(0,we.Z)({},Tn,jn),typeof Vn=="function"?Vn(_t):Vn),Ai=ie.createElement(h,(0,we.Z)({className:O()(!jr&&pe,Kr),style:Er,ref:P},Z),Ot.map(Sn),Jr?Mi:null,z&&ie.createElement(A,(0,we.Z)({},Tn,{responsive:$n,responsiveDisabled:!Yt,order:an,className:"".concat(ji,"-suffix"),registerSize:Qn,display:!0,style:zr}),z));return $n?ie.createElement(I.Z,{onResize:tn,disabled:!Yt},Ai):Ai}var oe=ie.forwardRef(Ee);oe.displayName="Overflow",oe.Item=Ce,oe.RESPONSIVE=ae,oe.INVALIDATE=me;var he=oe,ve=he},29301:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return me}});var we=g(96663),De=g(59301),se=g(11592),Me=g(48736),ie=g(44127),Y=g(20135),O=g(76846),I=g(8654),n=De.createContext(null);function o(T){var Ee=T.children,oe=T.onBatchResize,he=De.useRef(0),ve=De.useRef([]),_=De.useContext(n),P=De.useCallback(function(X,pe,Je){he.current+=1;var at=he.current;ve.current.push({size:X,element:pe,data:Je}),Promise.resolve().then(function(){at===he.current&&(oe==null||oe(ve.current),ve.current=[])}),_==null||_(X,pe,Je)},[oe,_]);return De.createElement(n.Provider,{value:P},Ee)}var L=g(76374),p=new Map;function a(T){T.forEach(function(Ee){var oe,he=Ee.target;(oe=p.get(he))===null||oe===void 0||oe.forEach(function(ve){return ve(he)})})}var A=new L.Z(a),m=null,S=null;function $(T,Ee){p.has(T)||(p.set(T,new Set),A.observe(T)),p.get(T).add(Ee)}function F(T,Ee){p.has(T)&&(p.get(T).delete(Ee),p.get(T).size||(A.unobserve(T),p.delete(T)))}var H=g(52884),V=g(95727),ee=g(65711),B=g(85745),G=function(T){(0,ee.Z)(oe,T);var Ee=(0,B.Z)(oe);function oe(){return(0,H.Z)(this,oe),Ee.apply(this,arguments)}return(0,V.Z)(oe,[{key:"render",value:function(){return this.props.children}}]),oe}(De.Component);function le(T,Ee){var oe=T.children,he=T.disabled,ve=De.useRef(null),_=De.useRef(null),P=De.useContext(n),X=typeof oe=="function",pe=X?oe(ve):oe,Je=De.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),at=!X&&De.isValidElement(pe)&&(0,I.Yr)(pe),nt=at?(0,I.C4)(pe):null,Lt=(0,I.x1)(nt,ve),ur=function(){var Er;return(0,O.ZP)(ve.current)||(ve.current&&(0,Y.Z)(ve.current)==="object"?(0,O.ZP)((Er=ve.current)===null||Er===void 0?void 0:Er.nativeElement):null)||(0,O.ZP)(_.current)};De.useImperativeHandle(Ee,function(){return ur()});var Jt=De.useRef(T);Jt.current=T;var We=De.useCallback(function(Cr){var Er=Jt.current,Kr=Er.onResize,_r=Er.data,Se=Cr.getBoundingClientRect(),Nt=Se.width,z=Se.height,v=Cr.offsetWidth,h=Cr.offsetHeight,D=Math.floor(Nt),fe=Math.floor(z);if(Je.current.width!==D||Je.current.height!==fe||Je.current.offsetWidth!==v||Je.current.offsetHeight!==h){var Z={width:D,height:fe,offsetWidth:v,offsetHeight:h};Je.current=Z;var N=v===Math.round(Nt)?Nt:v,te=h===Math.round(z)?z:h,Te=(0,ie.Z)((0,ie.Z)({},Z),{},{offsetWidth:N,offsetHeight:te});P==null||P(Te,Cr,_r),Kr&&Promise.resolve().then(function(){Kr(Te,Cr)})}},[]);return De.useEffect(function(){var Cr=ur();return Cr&&!he&&$(Cr,We),function(){return F(Cr,We)}},[ve.current,he]),De.createElement(G,{ref:_},at?De.cloneElement(pe,{ref:Lt}):pe)}var J=De.forwardRef(le),be=J,Ce="rc-observer-key";function Re(T,Ee){var oe=T.children,he=typeof oe=="function"?[oe]:(0,se.Z)(oe);return he.map(function(ve,_){var P=(ve==null?void 0:ve.key)||"".concat(Ce,"-").concat(_);return De.createElement(be,(0,we.Z)({},T,{key:P,ref:_===0?Ee:void 0}),ve)})}var ae=De.forwardRef(Re);ae.Collection=o;var me=ae},17115:function(bn,Zt,g){"use strict";g.d(Zt,{ZP:function(){return O}});var we=g(72071),De=g(59301),se=g(47273),Me=0,ie=(0,se.Z)();function Y(){var I;return ie?(I=Me,Me+=1):I="TEST_OR_SSR",I}function O(I){var n=De.useState(),o=(0,we.Z)(n,2),L=o[0],p=o[1];return De.useEffect(function(){p("rc_select_".concat(Y()))},[]),I||L}},77861:function(bn,Zt,g){"use strict";g.d(Zt,{Ac:function(){return ze},Xo:function(){return ue},Wx:function(){return Qe},ZP:function(){return Jr},lk:function(){return ee}});var we=g(96663),De=g(19127),se=g(90493),Me=g(44127),ie=g(72071),Y=g(6620),O=g(20135),I=g(18929),n=g(48736),o=g(59301),L=g(92310),p=g.n(L),a=g(34280),A=g(49658),m=g(10228),S=g(8654),$=function(_t){var Br=_t.className,Lr=_t.customizeIcon,In=_t.customizeIconProps,tn=_t.onMouseDown,Bn=_t.onClick,gn=_t.children,Qn;return typeof Lr=="function"?Qn=Lr(In):Qn=Lr,o.createElement("span",{className:Br,onMouseDown:function(Hr){Hr.preventDefault(),tn&&tn(Hr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bn,"aria-hidden":!0},Qn!==void 0?Qn:o.createElement("span",{className:p()(Br.split(/\s+/).map(function(ei){return"".concat(ei,"-icon")}))},gn))},F=$;function H(Ot,_t,Br,Lr,In){var tn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Bn=arguments.length>6?arguments[6]:void 0,gn=arguments.length>7?arguments[7]:void 0,Qn=o.useMemo(function(){if((0,O.Z)(Lr)==="object")return Lr.clearIcon;if(In)return In},[Lr,In]),ei=o.useMemo(function(){return!!(!tn&&Lr&&(Br.length||Bn)&&!(gn==="combobox"&&Bn===""))},[Lr,tn,Br.length,Bn,gn]);return{allowClear:ei,clearIcon:o.createElement(F,{className:"".concat(Ot,"-clear"),onMouseDown:_t,customizeIcon:Qn},"\xD7")}}var V=o.createContext(null);function ee(){return o.useContext(V)}function B(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,_t=o.useState(!1),Br=(0,ie.Z)(_t,2),Lr=Br[0],In=Br[1],tn=o.useRef(null),Bn=function(){window.clearTimeout(tn.current)};o.useEffect(function(){return Bn},[]);var gn=function(ei,Hr){Bn(),tn.current=window.setTimeout(function(){In(ei),Hr&&Hr()},Ot)};return[Lr,gn,Bn]}function G(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,_t=o.useRef(null),Br=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(Br.current)}},[]);function Lr(In){(In||_t.current===null)&&(_t.current=In),window.clearTimeout(Br.current),Br.current=window.setTimeout(function(){_t.current=null},Ot)}return[function(){return _t.current},Lr]}function le(Ot,_t,Br,Lr){var In=o.useRef(null);In.current={open:_t,triggerOpen:Br,customizedTrigger:Lr},o.useEffect(function(){function tn(Bn){var gn;if(!((gn=In.current)!==null&&gn!==void 0&&gn.customizedTrigger)){var Qn=Bn.target;Qn.shadowRoot&&Bn.composed&&(Qn=Bn.composedPath()[0]||Qn),In.current.open&&Ot().filter(function(ei){return ei}).every(function(ei){return!ei.contains(Qn)&&ei!==Qn})&&In.current.triggerOpen(!1)}}return window.addEventListener("mousedown",tn),function(){return window.removeEventListener("mousedown",tn)}},[])}var J=g(26112),be=g(11780),Ce=function(_t,Br){var Lr,In,tn=_t.prefixCls,Bn=_t.id,gn=_t.inputElement,Qn=_t.disabled,ei=_t.tabIndex,Hr=_t.autoFocus,zr=_t.autoComplete,Tn=_t.editable,Sn=_t.activeDescendantId,jn=_t.value,Vn=_t.maxLength,Mi=_t.onKeyDown,Ai=_t.onMouseDown,wn=_t.onChange,hr=_t.onPaste,br=_t.onCompositionStart,Fr=_t.onCompositionEnd,Zr=_t.open,Ur=_t.attrs,on=gn||o.createElement("input",null),en=on,Hn=en.ref,ti=en.props,ui=ti.onKeyDown,Ri=ti.onChange,Ui=ti.onMouseDown,Pi=ti.onCompositionStart,Tr=ti.onCompositionEnd,_n=ti.style;return(0,n.Kp)(!("maxLength"in on.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),on=o.cloneElement(on,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},ti),{},{id:Bn,ref:(0,S.sQ)(Br,Hn),disabled:Qn,tabIndex:ei,autoComplete:zr||"off",autoFocus:Hr,className:p()("".concat(tn,"-selection-search-input"),(Lr=on)===null||Lr===void 0||(In=Lr.props)===null||In===void 0?void 0:In.className),role:"combobox","aria-label":"Search","aria-expanded":Zr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Bn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Bn,"_list"),"aria-activedescendant":Zr?Sn:void 0},Ur),{},{value:Tn?jn:"",maxLength:Vn,readOnly:!Tn,unselectable:Tn?null:"on",style:(0,Me.Z)((0,Me.Z)({},_n),{},{opacity:Tn?null:0}),onKeyDown:function(hi){Mi(hi),ui&&ui(hi)},onMouseDown:function(hi){Ai(hi),Ui&&Ui(hi)},onChange:function(hi){wn(hi),Ri&&Ri(hi)},onCompositionStart:function(hi){br(hi),Pi&&Pi(hi)},onCompositionEnd:function(hi){Fr(hi),Tr&&Tr(hi)},onPaste:hr})),on},Re=o.forwardRef(Ce);Re.displayName="Input";var ae=Re;function me(Ot){return Array.isArray(Ot)?Ot:Ot!==void 0?[Ot]:[]}var T=typeof window!="undefined"&&window.document&&window.document.documentElement,Ee=T;function oe(Ot){return Ot!=null}function he(Ot){return!Ot&&Ot!==0}function ve(Ot){return["string","number"].includes((0,O.Z)(Ot))}function _(Ot){var _t=void 0;return Ot&&(ve(Ot.title)?_t=Ot.title.toString():ve(Ot.label)&&(_t=Ot.label.toString())),_t}function P(Ot,_t){Ee?o.useLayoutEffect(Ot,_t):o.useEffect(Ot,_t)}function X(Ot){var _t;return(_t=Ot.key)!==null&&_t!==void 0?_t:Ot.value}var pe=function(_t){_t.preventDefault(),_t.stopPropagation()},Je=function(_t){var Br=_t.id,Lr=_t.prefixCls,In=_t.values,tn=_t.open,Bn=_t.searchValue,gn=_t.autoClearSearchValue,Qn=_t.inputRef,ei=_t.placeholder,Hr=_t.disabled,zr=_t.mode,Tn=_t.showSearch,Sn=_t.autoFocus,jn=_t.autoComplete,Vn=_t.activeDescendantId,Mi=_t.tabIndex,Ai=_t.removeIcon,wn=_t.maxTagCount,hr=_t.maxTagTextLength,br=_t.maxTagPlaceholder,Fr=br===void 0?function(Qi){return"+ ".concat(Qi.length," ...")}:br,Zr=_t.tagRender,Ur=_t.onToggleOpen,on=_t.onRemove,en=_t.onInputChange,Hn=_t.onInputPaste,ti=_t.onInputKeyDown,ui=_t.onInputMouseDown,Ri=_t.onInputCompositionStart,Ui=_t.onInputCompositionEnd,Pi=o.useRef(null),Tr=(0,o.useState)(0),_n=(0,ie.Z)(Tr,2),hn=_n[0],hi=_n[1],ii=(0,o.useState)(!1),ri=(0,ie.Z)(ii,2),bi=ri[0],Di=ri[1],Bi="".concat(Lr,"-selection"),zi=tn||zr==="multiple"&&gn===!1||zr==="tags"?Bn:"",ca=zr==="tags"||zr==="multiple"&&gn===!1||Tn&&(tn||bi);P(function(){hi(Pi.current.scrollWidth)},[zi]);function xi(Qi,da,xa,Ji,Sa){return o.createElement("span",{className:p()("".concat(Bi,"-item"),(0,se.Z)({},"".concat(Bi,"-item-disabled"),xa)),title:_(Qi)},o.createElement("span",{className:"".concat(Bi,"-item-content")},da),Ji&&o.createElement(F,{className:"".concat(Bi,"-item-remove"),onMouseDown:pe,onClick:Sa,customizeIcon:Ai},"\xD7"))}function vn(Qi,da,xa,Ji,Sa){var _i=function($i){pe($i),Ur(!tn)};return o.createElement("span",{onMouseDown:_i},Zr({label:da,value:Qi,disabled:xa,closable:Ji,onClose:Sa}))}function jt(Qi){var da=Qi.disabled,xa=Qi.label,Ji=Qi.value,Sa=!Hr&&!da,_i=xa;if(typeof hr=="number"&&(typeof xa=="string"||typeof xa=="number")){var ai=String(_i);ai.length>hr&&(_i="".concat(ai.slice(0,hr),"..."))}var $i=function(Ea){Ea&&Ea.stopPropagation(),on(Qi)};return typeof Zr=="function"?vn(Ji,_i,da,Sa,$i):xi(Qi,_i,da,Sa,$i)}function Ln(Qi){var da=typeof Fr=="function"?Fr(Qi):Fr;return xi({title:da},da,!1)}var Gn=o.createElement("div",{className:"".concat(Bi,"-search"),style:{width:hn},onFocus:function(){Di(!0)},onBlur:function(){Di(!1)}},o.createElement(ae,{ref:Qn,open:tn,prefixCls:Lr,id:Br,inputElement:null,disabled:Hr,autoFocus:Sn,autoComplete:jn,editable:ca,activeDescendantId:Vn,value:zi,onKeyDown:ti,onMouseDown:ui,onChange:en,onPaste:Hn,onCompositionStart:Ri,onCompositionEnd:Ui,tabIndex:Mi,attrs:(0,J.Z)(_t,!0)}),o.createElement("span",{ref:Pi,className:"".concat(Bi,"-search-mirror"),"aria-hidden":!0},zi,"\xA0")),Ei=o.createElement(be.Z,{prefixCls:"".concat(Bi,"-overflow"),data:In,renderItem:jt,renderRest:Ln,suffix:Gn,itemKey:X,maxCount:wn});return o.createElement(o.Fragment,null,Ei,!In.length&&!zi&&o.createElement("span",{className:"".concat(Bi,"-placeholder")},ei))},at=Je,nt=function(_t){var Br=_t.inputElement,Lr=_t.prefixCls,In=_t.id,tn=_t.inputRef,Bn=_t.disabled,gn=_t.autoFocus,Qn=_t.autoComplete,ei=_t.activeDescendantId,Hr=_t.mode,zr=_t.open,Tn=_t.values,Sn=_t.placeholder,jn=_t.tabIndex,Vn=_t.showSearch,Mi=_t.searchValue,Ai=_t.activeValue,wn=_t.maxLength,hr=_t.onInputKeyDown,br=_t.onInputMouseDown,Fr=_t.onInputChange,Zr=_t.onInputPaste,Ur=_t.onInputCompositionStart,on=_t.onInputCompositionEnd,en=_t.title,Hn=o.useState(!1),ti=(0,ie.Z)(Hn,2),ui=ti[0],Ri=ti[1],Ui=Hr==="combobox",Pi=Ui||Vn,Tr=Tn[0],_n=Mi||"";Ui&&Ai&&!ui&&(_n=Ai),o.useEffect(function(){Ui&&Ri(!1)},[Ui,Ai]);var hn=Hr!=="combobox"&&!zr&&!Vn?!1:!!_n,hi=en===void 0?_(Tr):en,ii=function(){if(Tr)return null;var bi=hn?{visibility:"hidden"}:void 0;return o.createElement("span",{className:"".concat(Lr,"-selection-placeholder"),style:bi},Sn)};return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(Lr,"-selection-search")},o.createElement(ae,{ref:tn,prefixCls:Lr,id:In,open:zr,inputElement:Br,disabled:Bn,autoFocus:gn,autoComplete:Qn,editable:Pi,activeDescendantId:ei,value:_n,onKeyDown:hr,onMouseDown:br,onChange:function(bi){Ri(!0),Fr(bi)},onPaste:Zr,onCompositionStart:Ur,onCompositionEnd:on,tabIndex:jn,attrs:(0,J.Z)(_t,!0),maxLength:Ui?wn:void 0})),!Ui&&Tr?o.createElement("span",{className:"".concat(Lr,"-selection-item"),title:hi,style:hn?{visibility:"hidden"}:void 0},Tr.label):null,ii())},Lt=nt;function ur(Ot){return![m.Z.ESC,m.Z.SHIFT,m.Z.BACKSPACE,m.Z.TAB,m.Z.WIN_KEY,m.Z.ALT,m.Z.META,m.Z.WIN_KEY_RIGHT,m.Z.CTRL,m.Z.SEMICOLON,m.Z.EQUALS,m.Z.CAPS_LOCK,m.Z.CONTEXT_MENU,m.Z.F1,m.Z.F2,m.Z.F3,m.Z.F4,m.Z.F5,m.Z.F6,m.Z.F7,m.Z.F8,m.Z.F9,m.Z.F10,m.Z.F11,m.Z.F12].includes(Ot)}var Jt=function(_t,Br){var Lr=(0,o.useRef)(null),In=(0,o.useRef)(!1),tn=_t.prefixCls,Bn=_t.open,gn=_t.mode,Qn=_t.showSearch,ei=_t.tokenWithEnter,Hr=_t.autoClearSearchValue,zr=_t.onSearch,Tn=_t.onSearchSubmit,Sn=_t.onToggleOpen,jn=_t.onInputKeyDown,Vn=_t.domRef;o.useImperativeHandle(Br,function(){return{focus:function(){Lr.current.focus()},blur:function(){Lr.current.blur()}}});var Mi=G(0),Ai=(0,ie.Z)(Mi,2),wn=Ai[0],hr=Ai[1],br=function(_n){var hn=_n.which;(hn===m.Z.UP||hn===m.Z.DOWN)&&_n.preventDefault(),jn&&jn(_n),hn===m.Z.ENTER&&gn==="tags"&&!In.current&&!Bn&&(Tn==null||Tn(_n.target.value)),ur(hn)&&Sn(!0)},Fr=function(){hr(!0)},Zr=(0,o.useRef)(null),Ur=function(_n){zr(_n,!0,In.current)!==!1&&Sn(!0)},on=function(){In.current=!0},en=function(_n){In.current=!1,gn!=="combobox"&&Ur(_n.target.value)},Hn=function(_n){var hn=_n.target.value;if(ei&&Zr.current&&/[\r\n]/.test(Zr.current)){var hi=Zr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");hn=hn.replace(hi,Zr.current)}Zr.current=null,Ur(hn)},ti=function(_n){var hn=_n.clipboardData,hi=hn.getData("text");Zr.current=hi},ui=function(_n){var hn=_n.target;if(hn!==Lr.current){var hi=document.body.style.msTouchAction!==void 0;hi?setTimeout(function(){Lr.current.focus()}):Lr.current.focus()}},Ri=function(_n){var hn=wn();_n.target!==Lr.current&&!hn&&gn!=="combobox"&&_n.preventDefault(),(gn!=="combobox"&&(!Qn||!hn)||!Bn)&&(Bn&&Hr!==!1&&zr("",!0,!1),Sn())},Ui={inputRef:Lr,onInputKeyDown:br,onInputMouseDown:Fr,onInputChange:Hn,onInputPaste:ti,onInputCompositionStart:on,onInputCompositionEnd:en},Pi=gn==="multiple"||gn==="tags"?o.createElement(at,(0,we.Z)({},_t,Ui)):o.createElement(Lt,(0,we.Z)({},_t,Ui));return o.createElement("div",{ref:Vn,className:"".concat(tn,"-selector"),onClick:ui,onMouseDown:Ri},Pi)},We=o.forwardRef(Jt);We.displayName="Selector";var Cr=We,Er=g(35593),Kr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_r=function(_t){var Br=_t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Br,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Br,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Br,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Br,adjustY:1},htmlRegion:"scroll"}}},Se=function(_t,Br){var Lr=_t.prefixCls,In=_t.disabled,tn=_t.visible,Bn=_t.children,gn=_t.popupElement,Qn=_t.animation,ei=_t.transitionName,Hr=_t.dropdownStyle,zr=_t.dropdownClassName,Tn=_t.direction,Sn=Tn===void 0?"ltr":Tn,jn=_t.placement,Vn=_t.builtinPlacements,Mi=_t.dropdownMatchSelectWidth,Ai=_t.dropdownRender,wn=_t.dropdownAlign,hr=_t.getPopupContainer,br=_t.empty,Fr=_t.getTriggerDOMNode,Zr=_t.onPopupVisibleChange,Ur=_t.onPopupMouseEnter,on=(0,Y.Z)(_t,Kr),en="".concat(Lr,"-dropdown"),Hn=gn;Ai&&(Hn=Ai(gn));var ti=o.useMemo(function(){return Vn||_r(Mi)},[Vn,Mi]),ui=Qn?"".concat(en,"-").concat(Qn):ei,Ri=typeof Mi=="number",Ui=o.useMemo(function(){return Ri?null:Mi===!1?"minWidth":"width"},[Mi,Ri]),Pi=Hr;Ri&&(Pi=(0,Me.Z)((0,Me.Z)({},Pi),{},{width:Mi}));var Tr=o.useRef(null);return o.useImperativeHandle(Br,function(){return{getPopupElement:function(){return Tr.current}}}),o.createElement(Er.Z,(0,we.Z)({},on,{showAction:Zr?["click"]:[],hideAction:Zr?["click"]:[],popupPlacement:jn||(Sn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ti,prefixCls:en,popupTransitionName:ui,popup:o.createElement("div",{ref:Tr,onMouseEnter:Ur},Hn),stretch:Ui,popupAlign:wn,popupVisible:tn,getPopupContainer:hr,popupClassName:p()(zr,(0,se.Z)({},"".concat(en,"-empty"),br)),popupStyle:Pi,getTriggerDOMNode:Fr,onPopupVisibleChange:Zr}),Bn)},Nt=o.forwardRef(Se);Nt.displayName="SelectTrigger";var z=Nt,v=g(4537);function h(Ot,_t){var Br=Ot.key,Lr;return"value"in Ot&&(Lr=Ot.value),Br!=null?Br:Lr!==void 0?Lr:"rc-index-key-".concat(_t)}function D(Ot,_t){var Br=Ot||{},Lr=Br.label,In=Br.value,tn=Br.options,Bn=Br.groupLabel,gn=Lr||(_t?"children":"label");return{label:gn,value:In||"value",options:tn||"options",groupLabel:Bn||gn}}function fe(Ot){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Br=_t.fieldNames,Lr=_t.childrenAsData,In=[],tn=D(Br,!1),Bn=tn.label,gn=tn.value,Qn=tn.options,ei=tn.groupLabel;function Hr(zr,Tn){zr.forEach(function(Sn){if(Tn||!(Qn in Sn)){var jn=Sn[gn];In.push({key:h(Sn,In.length),groupOption:Tn,data:Sn,label:Sn[Bn],value:jn})}else{var Vn=Sn[ei];Vn===void 0&&Lr&&(Vn=Sn.label),In.push({key:h(Sn,In.length),group:!0,data:Sn,label:Vn}),Hr(Sn[Qn],!0)}})}return Hr(Ot,!1),In}function Z(Ot){var _t=(0,Me.Z)({},Ot);return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,n.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),_t}}),_t}function N(Ot,_t){if(!_t||!_t.length)return null;var Br=!1;function Lr(tn,Bn){var gn=(0,v.Z)(Bn),Qn=gn[0],ei=gn.slice(1);if(!Qn)return[tn];var Hr=tn.split(Qn);return Br=Br||Hr.length>1,Hr.reduce(function(zr,Tn){return[].concat((0,De.Z)(zr),(0,De.Z)(Lr(Tn,ei)))},[]).filter(function(zr){return zr})}var In=Lr(Ot,_t);return Br?In:null}var te=["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"],Te=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ie(Ot){return Ot==="tags"||Ot==="multiple"}var Fe=o.forwardRef(function(Ot,_t){var Br,Lr,In=Ot.id,tn=Ot.prefixCls,Bn=Ot.className,gn=Ot.showSearch,Qn=Ot.tagRender,ei=Ot.direction,Hr=Ot.omitDomProps,zr=Ot.displayValues,Tn=Ot.onDisplayValuesChange,Sn=Ot.emptyOptions,jn=Ot.notFoundContent,Vn=jn===void 0?"Not Found":jn,Mi=Ot.onClear,Ai=Ot.mode,wn=Ot.disabled,hr=Ot.loading,br=Ot.getInputElement,Fr=Ot.getRawInputElement,Zr=Ot.open,Ur=Ot.defaultOpen,on=Ot.onDropdownVisibleChange,en=Ot.activeValue,Hn=Ot.onActiveValueChange,ti=Ot.activeDescendantId,ui=Ot.searchValue,Ri=Ot.autoClearSearchValue,Ui=Ot.onSearch,Pi=Ot.onSearchSplit,Tr=Ot.tokenSeparators,_n=Ot.allowClear,hn=Ot.suffixIcon,hi=Ot.clearIcon,ii=Ot.OptionList,ri=Ot.animation,bi=Ot.transitionName,Di=Ot.dropdownStyle,Bi=Ot.dropdownClassName,zi=Ot.dropdownMatchSelectWidth,ca=Ot.dropdownRender,xi=Ot.dropdownAlign,vn=Ot.placement,jt=Ot.builtinPlacements,Ln=Ot.getPopupContainer,Gn=Ot.showAction,Ei=Gn===void 0?[]:Gn,Qi=Ot.onFocus,da=Ot.onBlur,xa=Ot.onKeyUp,Ji=Ot.onKeyDown,Sa=Ot.onMouseDown,_i=(0,Y.Z)(Ot,te),ai=Ie(Ai),$i=(gn!==void 0?gn:ai)||Ai==="combobox",ra=(0,Me.Z)({},_i);Te.forEach(function(ka){delete ra[ka]}),Hr==null||Hr.forEach(function(ka){delete ra[ka]});var Ea=o.useState(!1),xs=(0,ie.Z)(Ea,2),oi=xs[0],Ca=xs[1];o.useEffect(function(){Ca((0,A.Z)())},[]);var ga=o.useRef(null),Qa=o.useRef(null),_s=o.useRef(null),is=o.useRef(null),Da=o.useRef(null),Ni=B(),la=(0,ie.Z)(Ni,3),ps=la[0],as=la[1],ts=la[2];o.useImperativeHandle(_t,function(){var ka,pa;return{focus:(ka=is.current)===null||ka===void 0?void 0:ka.focus,blur:(pa=is.current)===null||pa===void 0?void 0:pa.blur,scrollTo:function(Ya){var ns;return(ns=Da.current)===null||ns===void 0?void 0:ns.scrollTo(Ya)}}});var Wi=o.useMemo(function(){var ka;if(Ai!=="combobox")return ui;var pa=(ka=zr[0])===null||ka===void 0?void 0:ka.value;return typeof pa=="string"||typeof pa=="number"?String(pa):""},[ui,Ai,zr]),ms=Ai==="combobox"&&typeof br=="function"&&br()||null,aa=typeof Fr=="function"&&Fr(),co=(0,S.x1)(Qa,aa==null||(Br=aa.props)===null||Br===void 0?void 0:Br.ref),Qs=o.useState(!1),_o=(0,ie.Z)(Qs,2),fs=_o[0],Bo=_o[1];(0,a.Z)(function(){Bo(!0)},[]);var ss=(0,I.Z)(!1,{defaultValue:Ur,value:Zr}),Yn=(0,ie.Z)(ss,2),La=Yn[0],io=Yn[1],Zi=fs?La:!1,ta=!Vn&&Sn;(wn||ta&&Zi&&Ai==="combobox")&&(Zi=!1);var Hi=ta?!1:Zi,ki=o.useCallback(function(ka){var pa=ka!==void 0?ka:!Zi;wn||(io(pa),Zi!==pa&&(on==null||on(pa)))},[wn,Zi,io,on]),ya=o.useMemo(function(){return(Tr||[]).some(function(ka){return[`
|
|
|
`,`\r
|
|
|
`].includes(ka)})},[Tr]),Na=function(pa,to,Ya){var ns=!0,js=pa;Hn==null||Hn(null);var wa=Ya?null:N(pa,Tr);return Ai!=="combobox"&&wa&&(js="",Pi==null||Pi(wa),ki(!1),ns=!1),Ui&&Wi!==js&&Ui(js,{source:to?"typing":"effect"}),ns},Rs=function(pa){!pa||!pa.trim()||Ui(pa,{source:"submit"})};o.useEffect(function(){!Zi&&!ai&&Ai!=="combobox"&&Na("",!1,!1)},[Zi]),o.useEffect(function(){La&&wn&&io(!1),wn&&as(!1)},[wn]);var cs=G(),Es=(0,ie.Z)(cs,2),rs=Es[0],So=Es[1],go=function(pa){var to=rs(),Ya=pa.which;if(Ya===m.Z.ENTER&&(Ai!=="combobox"&&pa.preventDefault(),Zi||ki(!0)),So(!!Wi),Ya===m.Z.BACKSPACE&&!to&&ai&&!Wi&&zr.length){for(var ns=(0,De.Z)(zr),js=null,wa=ns.length-1;wa>=0;wa-=1){var Ys=ns[wa];if(!Ys.disabled){ns.splice(wa,1),js=Ys;break}}js&&Tn(ns,{type:"remove",values:[js]})}for(var ao=arguments.length,Po=new Array(ao>1?ao-1:0),Do=1;Do<ao;Do++)Po[Do-1]=arguments[Do];if(Zi&&Da.current){var Xa;(Xa=Da.current).onKeyDown.apply(Xa,[pa].concat(Po))}Ji==null||Ji.apply(void 0,[pa].concat(Po))},eo=function(pa){for(var to=arguments.length,Ya=new Array(to>1?to-1:0),ns=1;ns<to;ns++)Ya[ns-1]=arguments[ns];if(Zi&&Da.current){var js;(js=Da.current).onKeyUp.apply(js,[pa].concat(Ya))}xa==null||xa.apply(void 0,[pa].concat(Ya))},zs=function(pa){var to=zr.filter(function(Ya){return Ya!==pa});Tn(to,{type:"remove",values:[pa]})},Os=o.useRef(!1),Li=function(){as(!0),wn||(Qi&&!Os.current&&Qi.apply(void 0,arguments),Ei.includes("focus")&&ki(!0)),Os.current=!0},pi=function(){as(!1,function(){Os.current=!1,ki(!1)}),!wn&&(Wi&&(Ai==="tags"?Ui(Wi,{source:"submit"}):Ai==="multiple"&&Ui("",{source:"blur"})),da&&da.apply(void 0,arguments))},ua=[];o.useEffect(function(){return function(){ua.forEach(function(ka){return clearTimeout(ka)}),ua.splice(0,ua.length)}},[]);var gs=function(pa){var to,Ya=pa.target,ns=(to=_s.current)===null||to===void 0?void 0:to.getPopupElement();if(ns&&ns.contains(Ya)){var js=setTimeout(function(){var Po=ua.indexOf(js);if(Po!==-1&&ua.splice(Po,1),ts(),!oi&&!ns.contains(document.activeElement)){var Do;(Do=is.current)===null||Do===void 0||Do.focus()}});ua.push(js)}for(var wa=arguments.length,Ys=new Array(wa>1?wa-1:0),ao=1;ao<wa;ao++)Ys[ao-1]=arguments[ao];Sa==null||Sa.apply(void 0,[pa].concat(Ys))},Oa=o.useState({}),Ns=(0,ie.Z)(Oa,2),Vs=Ns[1];function vo(){Vs({})}var Ps;aa&&(Ps=function(pa){ki(pa)}),le(function(){var ka;return[ga.current,(ka=_s.current)===null||ka===void 0?void 0:ka.getPopupElement()]},Hi,ki,!!aa);var Ti=o.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},Ot),{},{notFoundContent:Vn,open:Zi,triggerOpen:Hi,id:In,showSearch:$i,multiple:ai,toggleOpen:ki})},[Ot,Vn,Hi,Zi,In,$i,ai,ki]),Dl=!!hn||hr,Js;Dl&&(Js=o.createElement(F,{className:p()("".concat(tn,"-arrow"),(0,se.Z)({},"".concat(tn,"-arrow-loading"),hr)),customizeIcon:hn,customizeIconProps:{loading:hr,searchValue:Wi,open:Zi,focused:ps,showSearch:$i}}));var nl=function(){var pa;Mi==null||Mi(),(pa=is.current)===null||pa===void 0||pa.focus(),Tn([],{type:"clear",values:zr}),Na("",!1,!1)},Qo=H(tn,nl,zr,_n,hi,wn,Wi,Ai),Ao=Qo.allowClear,_a=Qo.clearIcon,vl=o.createElement(ii,{ref:Da}),yl=p()(tn,Bn,(Lr={},(0,se.Z)(Lr,"".concat(tn,"-focused"),ps),(0,se.Z)(Lr,"".concat(tn,"-multiple"),ai),(0,se.Z)(Lr,"".concat(tn,"-single"),!ai),(0,se.Z)(Lr,"".concat(tn,"-allow-clear"),_n),(0,se.Z)(Lr,"".concat(tn,"-show-arrow"),Dl),(0,se.Z)(Lr,"".concat(tn,"-disabled"),wn),(0,se.Z)(Lr,"".concat(tn,"-loading"),hr),(0,se.Z)(Lr,"".concat(tn,"-open"),Zi),(0,se.Z)(Lr,"".concat(tn,"-customize-input"),ms),(0,se.Z)(Lr,"".concat(tn,"-show-search"),$i),Lr)),fo=o.createElement(z,{ref:_s,disabled:wn,prefixCls:tn,visible:Hi,popupElement:vl,animation:ri,transitionName:bi,dropdownStyle:Di,dropdownClassName:Bi,direction:ei,dropdownMatchSelectWidth:zi,dropdownRender:ca,dropdownAlign:xi,placement:vn,builtinPlacements:jt,getPopupContainer:Ln,empty:Sn,getTriggerDOMNode:function(){return Qa.current},onPopupVisibleChange:Ps,onPopupMouseEnter:vo},aa?o.cloneElement(aa,{ref:co}):o.createElement(Cr,(0,we.Z)({},Ot,{domRef:Qa,prefixCls:tn,inputElement:ms,ref:is,id:In,showSearch:$i,autoClearSearchValue:Ri,mode:Ai,activeDescendantId:ti,tagRender:Qn,values:zr,open:Zi,onToggleOpen:ki,activeValue:en,searchValue:Wi,onSearch:Na,onSearchSubmit:Rs,onRemove:zs,tokenWithEnter:ya}))),yo;return aa?yo=fo:yo=o.createElement("div",(0,we.Z)({className:yl},ra,{ref:ga,onMouseDown:gs,onKeyDown:go,onKeyUp:eo,onFocus:Li,onBlur:pi}),ps&&!Zi&&o.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(zr.map(function(ka){var pa=ka.label,to=ka.value;return["number","string"].includes((0,O.Z)(pa))?pa:to}).join(", "))),fo,Js,Ao&&_a),o.createElement(V.Provider,{value:Ti},yo)}),ze=Fe,pt=function(Ot,_t){var Br=o.useRef({values:new Map,options:new Map}),Lr=o.useMemo(function(){var tn=Br.current,Bn=tn.values,gn=tn.options,Qn=Ot.map(function(zr){if(zr.label===void 0){var Tn;return(0,Me.Z)((0,Me.Z)({},zr),{},{label:(Tn=Bn.get(zr.value))===null||Tn===void 0?void 0:Tn.label})}return zr}),ei=new Map,Hr=new Map;return Qn.forEach(function(zr){ei.set(zr.value,zr),Hr.set(zr.value,_t.get(zr.value)||gn.get(zr.value))}),Br.current.values=ei,Br.current.options=Hr,Qn},[Ot,_t]),In=o.useCallback(function(tn){return _t.get(tn)||Br.current.options.get(tn)},[_t]);return[Lr,In]};function $e(Ot,_t){return me(Ot).join("").toUpperCase().includes(_t)}var tt=function(Ot,_t,Br,Lr,In){return o.useMemo(function(){if(!Br||Lr===!1)return Ot;var tn=_t.options,Bn=_t.label,gn=_t.value,Qn=[],ei=typeof Lr=="function",Hr=Br.toUpperCase(),zr=ei?Lr:function(Sn,jn){return In?$e(jn[In],Hr):jn[tn]?$e(jn[Bn!=="children"?Bn:"label"],Hr):$e(jn[gn],Hr)},Tn=ei?function(Sn){return Z(Sn)}:function(Sn){return Sn};return Ot.forEach(function(Sn){if(Sn[tn]){var jn=zr(Br,Tn(Sn));if(jn)Qn.push(Sn);else{var Vn=Sn[tn].filter(function(Mi){return zr(Br,Tn(Mi))});Vn.length&&Qn.push((0,Me.Z)((0,Me.Z)({},Sn),{},(0,se.Z)({},tn,Vn)))}return}zr(Br,Tn(Sn))&&Qn.push(Sn)}),Qn},[Ot,Lr,In,Br,_t])},ct=g(17115),Ge=g(11592),Ke=["children","value"],Bt=["children"];function Vt(Ot){var _t=Ot,Br=_t.key,Lr=_t.props,In=Lr.children,tn=Lr.value,Bn=(0,Y.Z)(Lr,Ke);return(0,Me.Z)({key:Br,value:tn!==void 0?tn:Br,children:In},Bn)}function Mt(Ot){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ge.Z)(Ot).map(function(Br,Lr){if(!o.isValidElement(Br)||!Br.type)return null;var In=Br,tn=In.type.isSelectOptGroup,Bn=In.key,gn=In.props,Qn=gn.children,ei=(0,Y.Z)(gn,Bt);return _t||!tn?Vt(Br):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(Bn===null?Lr:Bn,"__"),label:Bn},ei),{},{options:Mt(Qn)})}).filter(function(Br){return Br})}function mr(Ot,_t,Br,Lr,In){return o.useMemo(function(){var tn=Ot,Bn=!Ot;Bn&&(tn=Mt(_t));var gn=new Map,Qn=new Map,ei=function(Tn,Sn,jn){jn&&typeof jn=="string"&&Tn.set(Sn[jn],Sn)};function Hr(zr){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=0;Sn<zr.length;Sn+=1){var jn=zr[Sn];!jn[Br.options]||Tn?(gn.set(jn[Br.value],jn),ei(Qn,jn,Br.label),ei(Qn,jn,Lr),ei(Qn,jn,In)):Hr(jn[Br.options],!0)}}return Hr(tn),{options:tn,valueOptions:gn,labelOptions:Qn}},[Ot,_t,Br,Lr,In])}function wr(Ot){var _t=o.useRef();_t.current=Ot;var Br=o.useCallback(function(){return _t.current.apply(_t,arguments)},[]);return Br}var re=function(){return null};re.isSelectOptGroup=!0;var ue=re,rr=function(){return null};rr.isSelectOption=!0;var Qe=rr,ot=g(80547),Yr=g(2738),It=g(24916),zt=o.createContext(null),qt=zt;function qe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var At=["disabled","title","children","style","className"];function dt(Ot){return typeof Ot=="string"||typeof Ot=="number"}var Gt=function(_t,Br){var Lr=ee(),In=Lr.prefixCls,tn=Lr.id,Bn=Lr.open,gn=Lr.multiple,Qn=Lr.mode,ei=Lr.searchValue,Hr=Lr.toggleOpen,zr=Lr.notFoundContent,Tn=Lr.onPopupScroll,Sn=o.useContext(qt),jn=Sn.flattenOptions,Vn=Sn.onActiveValue,Mi=Sn.defaultActiveFirstOption,Ai=Sn.onSelect,wn=Sn.menuItemSelectedIcon,hr=Sn.rawValues,br=Sn.fieldNames,Fr=Sn.virtual,Zr=Sn.direction,Ur=Sn.listHeight,on=Sn.listItemHeight,en="".concat(In,"-item"),Hn=(0,ot.Z)(function(){return jn},[Bn,jn],function(xi,vn){return vn[0]&&xi[1]!==vn[1]}),ti=o.useRef(null),ui=function(vn){vn.preventDefault()},Ri=function(vn){ti.current&&ti.current.scrollTo(typeof vn=="number"?{index:vn}:vn)},Ui=function(vn){for(var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ln=Hn.length,Gn=0;Gn<Ln;Gn+=1){var Ei=(vn+Gn*jt+Ln)%Ln,Qi=Hn[Ei],da=Qi.group,xa=Qi.data;if(!da&&!xa.disabled)return Ei}return-1},Pi=o.useState(function(){return Ui(0)}),Tr=(0,ie.Z)(Pi,2),_n=Tr[0],hn=Tr[1],hi=function(vn){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;hn(vn);var Ln={source:jt?"keyboard":"mouse"},Gn=Hn[vn];if(!Gn){Vn(null,-1,Ln);return}Vn(Gn.value,vn,Ln)};(0,o.useEffect)(function(){hi(Mi!==!1?Ui(0):-1)},[Hn.length,ei]);var ii=o.useCallback(function(xi){return hr.has(xi)&&Qn!=="combobox"},[Qn,(0,De.Z)(hr).toString(),hr.size]);(0,o.useEffect)(function(){var xi=setTimeout(function(){if(!gn&&Bn&&hr.size===1){var jt=Array.from(hr)[0],Ln=Hn.findIndex(function(Gn){var Ei=Gn.data;return Ei.value===jt});Ln!==-1&&(hi(Ln),Ri(Ln))}});if(Bn){var vn;(vn=ti.current)===null||vn===void 0||vn.scrollTo(void 0)}return function(){return clearTimeout(xi)}},[Bn,ei,jn.length]);var ri=function(vn){vn!==void 0&&Ai(vn,{selected:!hr.has(vn)}),gn||Hr(!1)};if(o.useImperativeHandle(Br,function(){return{onKeyDown:function(vn){var jt=vn.which,Ln=vn.ctrlKey;switch(jt){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:{var Gn=0;if(jt===m.Z.UP?Gn=-1:jt===m.Z.DOWN?Gn=1:qe()&&Ln&&(jt===m.Z.N?Gn=1:jt===m.Z.P&&(Gn=-1)),Gn!==0){var Ei=Ui(_n+Gn,Gn);Ri(Ei),hi(Ei,!0)}break}case m.Z.ENTER:{var Qi=Hn[_n];Qi&&!Qi.data.disabled?ri(Qi.value):ri(void 0),Bn&&vn.preventDefault();break}case m.Z.ESC:Hr(!1),Bn&&vn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vn){Ri(vn)}}}),Hn.length===0)return o.createElement("div",{role:"listbox",id:"".concat(tn,"_list"),className:"".concat(en,"-empty"),onMouseDown:ui},zr);var bi=Object.keys(br).map(function(xi){return br[xi]}),Di=function(vn){return vn.label};function Bi(xi,vn){var jt=xi.group;return{role:jt?"presentation":"option",id:"".concat(tn,"_list_").concat(vn)}}var zi=function(vn){var jt=Hn[vn];if(!jt)return null;var Ln=jt.data||{},Gn=Ln.value,Ei=jt.group,Qi=(0,J.Z)(Ln,!0),da=Di(jt);return jt?o.createElement("div",(0,we.Z)({"aria-label":typeof da=="string"&&!Ei?da:null},Qi,{key:vn},Bi(jt,vn),{"aria-selected":ii(Gn)}),Gn):null},ca={role:"listbox",id:"".concat(tn,"_list")};return o.createElement(o.Fragment,null,Fr&&o.createElement("div",(0,we.Z)({},ca,{style:{height:0,width:0,overflow:"hidden"}}),zi(_n-1),zi(_n),zi(_n+1)),o.createElement(It.Z,{itemKey:"key",ref:ti,data:Hn,height:Ur,itemHeight:on,fullHeight:!1,onMouseDown:ui,onScroll:Tn,virtual:Fr,direction:Zr,innerProps:Fr?null:ca},function(xi,vn){var jt,Ln=xi.group,Gn=xi.groupOption,Ei=xi.data,Qi=xi.label,da=xi.value,xa=Ei.key;if(Ln){var Ji,Sa=(Ji=Ei.title)!==null&&Ji!==void 0?Ji:dt(Qi)?Qi.toString():void 0;return o.createElement("div",{className:p()(en,"".concat(en,"-group")),title:Sa},Qi!==void 0?Qi:xa)}var _i=Ei.disabled,ai=Ei.title,$i=Ei.children,ra=Ei.style,Ea=Ei.className,xs=(0,Y.Z)(Ei,At),oi=(0,Yr.Z)(xs,bi),Ca=ii(da),ga="".concat(en,"-option"),Qa=p()(en,ga,Ea,(jt={},(0,se.Z)(jt,"".concat(ga,"-grouped"),Gn),(0,se.Z)(jt,"".concat(ga,"-active"),_n===vn&&!_i),(0,se.Z)(jt,"".concat(ga,"-disabled"),_i),(0,se.Z)(jt,"".concat(ga,"-selected"),Ca),jt)),_s=Di(xi),is=!wn||typeof wn=="function"||Ca,Da=typeof _s=="number"?_s:_s||da,Ni=dt(Da)?Da.toString():void 0;return ai!==void 0&&(Ni=ai),o.createElement("div",(0,we.Z)({},(0,J.Z)(oi),Fr?{}:Bi(xi,vn),{"aria-selected":Ca,className:Qa,title:Ni,onMouseMove:function(){_n===vn||_i||hi(vn)},onClick:function(){_i||ri(da)},style:ra}),o.createElement("div",{className:"".concat(ga,"-content")},Da),o.isValidElement(wn)||Ca,is&&o.createElement(F,{className:"".concat(en,"-option-state"),customizeIcon:wn,customizeIconProps:{isSelected:Ca}},Ca?"\u2713":null))}))},Pe=o.forwardRef(Gt);Pe.displayName="OptionList";var an=Pe;function kt(Ot){var _t=Ot.mode,Br=Ot.options,Lr=Ot.children,In=Ot.backfill,tn=Ot.allowClear,Bn=Ot.placeholder,gn=Ot.getInputElement,Qn=Ot.showSearch,ei=Ot.onSearch,Hr=Ot.defaultOpen,zr=Ot.autoFocus,Tn=Ot.labelInValue,Sn=Ot.value,jn=Ot.inputValue,Vn=Ot.optionLabelProp,Mi=isMultiple(_t),Ai=Qn!==void 0?Qn:Mi||_t==="combobox",wn=Br||convertChildrenToData(Lr);if(warning(_t!=="tags"||wn.every(function(Zr){return!Zr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_t==="tags"||_t==="combobox"){var hr=wn.some(function(Zr){return Zr.options?Zr.options.some(function(Ur){return typeof("value"in Ur?Ur.value:Ur.key)=="number"}):typeof("value"in Zr?Zr.value:Zr.key)=="number"});warning(!hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(_t!=="combobox"||!Vn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(_t==="combobox"||!In,"`backfill` only works with `combobox` mode."),warning(_t==="combobox"||!gn,"`getInputElement` only work with `combobox` mode."),noteOnce(_t!=="combobox"||!gn||!tn||!Bn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ei&&!Ai&&_t!=="combobox"&&_t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Hr||zr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Sn!=null){var br=toArray(Sn);warning(!Tn||br.every(function(Zr){return _typeof(Zr)==="object"&&("key"in Zr||"value"in Zr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Mi||Array.isArray(Sn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Lr){var Fr=null;toNodeArray(Lr).some(function(Zr){if(!React.isValidElement(Zr)||!Zr.type)return!1;var Ur=Zr,on=Ur.type;if(on.isSelectOption)return!1;if(on.isSelectOptGroup){var en=toNodeArray(Zr.props.children).every(function(Hn){return!React.isValidElement(Hn)||!Zr.type||Hn.type.isSelectOption?!0:(Fr=Hn.type,!1)});return!en}return Fr=on,!0}),Fr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Fr.displayName||Fr.name||Fr,"`.")),warning(jn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function kn(Ot,_t){if(Ot){var Br=function Lr(In){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bn=0;Bn<In.length;Bn++){var gn=In[Bn];if(gn[_t==null?void 0:_t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!tn&&Array.isArray(gn[_t==null?void 0:_t.options])&&Lr(gn[_t==null?void 0:_t.options],!0))break}};Br(Ot)}}var Xn=null,yi=["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"],ji=["inputValue"];function On(Ot){return!Ot||(0,O.Z)(Ot)!=="object"}var $n=o.forwardRef(function(Ot,_t){var Br=Ot.id,Lr=Ot.mode,In=Ot.prefixCls,tn=In===void 0?"rc-select":In,Bn=Ot.backfill,gn=Ot.fieldNames,Qn=Ot.inputValue,ei=Ot.searchValue,Hr=Ot.onSearch,zr=Ot.autoClearSearchValue,Tn=zr===void 0?!0:zr,Sn=Ot.onSelect,jn=Ot.onDeselect,Vn=Ot.dropdownMatchSelectWidth,Mi=Vn===void 0?!0:Vn,Ai=Ot.filterOption,wn=Ot.filterSort,hr=Ot.optionFilterProp,br=Ot.optionLabelProp,Fr=Ot.options,Zr=Ot.children,Ur=Ot.defaultActiveFirstOption,on=Ot.menuItemSelectedIcon,en=Ot.virtual,Hn=Ot.direction,ti=Ot.listHeight,ui=ti===void 0?200:ti,Ri=Ot.listItemHeight,Ui=Ri===void 0?20:Ri,Pi=Ot.value,Tr=Ot.defaultValue,_n=Ot.labelInValue,hn=Ot.onChange,hi=(0,Y.Z)(Ot,yi),ii=(0,ct.ZP)(Br),ri=Ie(Lr),bi=!!(!Fr&&Zr),Di=o.useMemo(function(){return Ai===void 0&&Lr==="combobox"?!1:Ai},[Ai,Lr]),Bi=o.useMemo(function(){return D(gn,bi)},[JSON.stringify(gn),bi]),zi=(0,I.Z)("",{value:ei!==void 0?ei:Qn,postState:function(ta){return ta||""}}),ca=(0,ie.Z)(zi,2),xi=ca[0],vn=ca[1],jt=mr(Fr,Zr,Bi,hr,br),Ln=jt.valueOptions,Gn=jt.labelOptions,Ei=jt.options,Qi=o.useCallback(function(Zi){var ta=me(Zi);return ta.map(function(Hi){var ki,ya,Na,Rs,cs;if(On(Hi))ki=Hi;else{var Es;Na=Hi.key,ya=Hi.label,ki=(Es=Hi.value)!==null&&Es!==void 0?Es:Na}var rs=Ln.get(ki);if(rs){var So;if(ya===void 0&&(ya=rs==null?void 0:rs[br||Bi.label]),Na===void 0&&(Na=(So=rs==null?void 0:rs.key)!==null&&So!==void 0?So:ki),Rs=rs==null?void 0:rs.disabled,cs=rs==null?void 0:rs.title,0)var go}return{label:ya,value:ki,key:Na,disabled:Rs,title:cs}})},[Bi,br,Ln]),da=(0,I.Z)(Tr,{value:Pi}),xa=(0,ie.Z)(da,2),Ji=xa[0],Sa=xa[1],_i=o.useMemo(function(){var Zi,ta=Qi(Ji);return Lr==="combobox"&&he((Zi=ta[0])===null||Zi===void 0?void 0:Zi.value)?[]:ta},[Ji,Qi,Lr]),ai=pt(_i,Ln),$i=(0,ie.Z)(ai,2),ra=$i[0],Ea=$i[1],xs=o.useMemo(function(){if(!Lr&&ra.length===1){var Zi=ra[0];if(Zi.value===null&&(Zi.label===null||Zi.label===void 0))return[]}return ra.map(function(ta){var Hi;return(0,Me.Z)((0,Me.Z)({},ta),{},{label:(Hi=ta.label)!==null&&Hi!==void 0?Hi:ta.value})})},[Lr,ra]),oi=o.useMemo(function(){return new Set(ra.map(function(Zi){return Zi.value}))},[ra]);o.useEffect(function(){if(Lr==="combobox"){var Zi,ta=(Zi=ra[0])===null||Zi===void 0?void 0:Zi.value;vn(oe(ta)?String(ta):"")}},[ra]);var Ca=wr(function(Zi,ta){var Hi,ki=ta!=null?ta:Zi;return Hi={},(0,se.Z)(Hi,Bi.value,Zi),(0,se.Z)(Hi,Bi.label,ki),Hi}),ga=o.useMemo(function(){if(Lr!=="tags")return Ei;var Zi=(0,De.Z)(Ei),ta=function(ki){return Ln.has(ki)};return(0,De.Z)(ra).sort(function(Hi,ki){return Hi.value<ki.value?-1:1}).forEach(function(Hi){var ki=Hi.value;ta(ki)||Zi.push(Ca(ki,Hi.label))}),Zi},[Ca,Ei,Ln,ra,Lr]),Qa=tt(ga,Bi,xi,Di,hr),_s=o.useMemo(function(){return Lr!=="tags"||!xi||Qa.some(function(Zi){return Zi[hr||"value"]===xi})||Qa.some(function(Zi){return Zi[Bi.value]===xi})?Qa:[Ca(xi)].concat((0,De.Z)(Qa))},[Ca,hr,Lr,Qa,xi,Bi]),is=o.useMemo(function(){return wn?(0,De.Z)(_s).sort(function(Zi,ta){return wn(Zi,ta)}):_s},[_s,wn]),Da=o.useMemo(function(){return fe(is,{fieldNames:Bi,childrenAsData:bi})},[is,Bi,bi]),Ni=function(ta){var Hi=Qi(ta);if(Sa(Hi),hn&&(Hi.length!==ra.length||Hi.some(function(Na,Rs){var cs;return((cs=ra[Rs])===null||cs===void 0?void 0:cs.value)!==(Na==null?void 0:Na.value)}))){var ki=_n?Hi:Hi.map(function(Na){return Na.value}),ya=Hi.map(function(Na){return Z(Ea(Na.value))});hn(ri?ki:ki[0],ri?ya:ya[0])}},la=o.useState(null),ps=(0,ie.Z)(la,2),as=ps[0],ts=ps[1],Wi=o.useState(0),ms=(0,ie.Z)(Wi,2),aa=ms[0],co=ms[1],Qs=Ur!==void 0?Ur:Lr!=="combobox",_o=o.useCallback(function(Zi,ta){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ki=Hi.source,ya=ki===void 0?"keyboard":ki;co(ta),Bn&&Lr==="combobox"&&Zi!==null&&ya==="keyboard"&&ts(String(Zi))},[Bn,Lr]),fs=function(ta,Hi,ki){var ya=function(){var Os,Li=Ea(ta);return[_n?{label:Li==null?void 0:Li[Bi.label],value:ta,key:(Os=Li==null?void 0:Li.key)!==null&&Os!==void 0?Os:ta}:ta,Z(Li)]};if(Hi&&Sn){var Na=ya(),Rs=(0,ie.Z)(Na,2),cs=Rs[0],Es=Rs[1];Sn(cs,Es)}else if(!Hi&&jn&&ki!=="clear"){var rs=ya(),So=(0,ie.Z)(rs,2),go=So[0],eo=So[1];jn(go,eo)}},Bo=wr(function(Zi,ta){var Hi,ki=ri?ta.selected:!0;ki?Hi=ri?[].concat((0,De.Z)(ra),[Zi]):[Zi]:Hi=ra.filter(function(ya){return ya.value!==Zi}),Ni(Hi),fs(Zi,ki),Lr==="combobox"?ts(""):(!Ie||Tn)&&(vn(""),ts(""))}),ss=function(ta,Hi){Ni(ta);var ki=Hi.type,ya=Hi.values;(ki==="remove"||ki==="clear")&&ya.forEach(function(Na){fs(Na.value,!1,ki)})},Yn=function(ta,Hi){if(vn(ta),ts(null),Hi.source==="submit"){var ki=(ta||"").trim();if(ki){var ya=Array.from(new Set([].concat((0,De.Z)(oi),[ki])));Ni(ya),fs(ki,!0),vn("")}return}Hi.source!=="blur"&&(Lr==="combobox"&&Ni(ta),Hr==null||Hr(ta))},La=function(ta){var Hi=ta;Lr!=="tags"&&(Hi=ta.map(function(ya){var Na=Gn.get(ya);return Na==null?void 0:Na.value}).filter(function(ya){return ya!==void 0}));var ki=Array.from(new Set([].concat((0,De.Z)(oi),(0,De.Z)(Hi))));Ni(ki),ki.forEach(function(ya){fs(ya,!0)})},io=o.useMemo(function(){var Zi=en!==!1&&Mi!==!1;return(0,Me.Z)((0,Me.Z)({},jt),{},{flattenOptions:Da,onActiveValue:_o,defaultActiveFirstOption:Qs,onSelect:Bo,menuItemSelectedIcon:on,rawValues:oi,fieldNames:Bi,virtual:Zi,direction:Hn,listHeight:ui,listItemHeight:Ui,childrenAsData:bi})},[jt,Da,_o,Qs,Bo,on,oi,Bi,en,Mi,ui,Ui,bi]);return o.createElement(qt.Provider,{value:io},o.createElement(ze,(0,we.Z)({},hi,{id:ii,prefixCls:tn,ref:_t,omitDomProps:ji,mode:Lr,displayValues:xs,onDisplayValuesChange:ss,direction:Hn,searchValue:xi,onSearch:Yn,autoClearSearchValue:Tn,onSearchSplit:La,dropdownMatchSelectWidth:Mi,OptionList:an,emptyOptions:!Da.length,activeValue:as,activeDescendantId:"".concat(ii,"_list_").concat(aa)})))}),Yt=$n;Yt.Option=Qe,Yt.OptGroup=ue;var jr=Yt,Jr=jr},9296:function(bn,Zt,g){"use strict";g.r(Zt),g.d(Zt,{ResizableTextArea:function(){return Re},default:function(){return he}});var we=g(96663),De=g(44127),se=g(90493),Me=g(20135),ie=g(72071),Y=g(6620),O=g(19127),I=g(92310),n=g.n(I),o=g(93681),L=g(5643),p=g(18929),a=g(59301),A=g(29301),m=g(34280),S=g(16089),$=`
|
|
|
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;
|
|
|
`,F=["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"],H={},V;function ee(ve){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=ve.getAttribute("id")||ve.getAttribute("data-reactid")||ve.getAttribute("name");if(_&&H[P])return H[P];var X=window.getComputedStyle(ve),pe=X.getPropertyValue("box-sizing")||X.getPropertyValue("-moz-box-sizing")||X.getPropertyValue("-webkit-box-sizing"),Je=parseFloat(X.getPropertyValue("padding-bottom"))+parseFloat(X.getPropertyValue("padding-top")),at=parseFloat(X.getPropertyValue("border-bottom-width"))+parseFloat(X.getPropertyValue("border-top-width")),nt=F.map(function(ur){return"".concat(ur,":").concat(X.getPropertyValue(ur))}).join(";"),Lt={sizingStyle:nt,paddingSize:Je,borderSize:at,boxSizing:pe};return _&&P&&(H[P]=Lt),Lt}function B(ve){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;V||(V=document.createElement("textarea"),V.setAttribute("tab-index","-1"),V.setAttribute("aria-hidden","true"),document.body.appendChild(V)),ve.getAttribute("wrap")?V.setAttribute("wrap",ve.getAttribute("wrap")):V.removeAttribute("wrap");var pe=ee(ve,_),Je=pe.paddingSize,at=pe.borderSize,nt=pe.boxSizing,Lt=pe.sizingStyle;V.setAttribute("style","".concat(Lt,";").concat($)),V.value=ve.value||ve.placeholder||"";var ur=void 0,Jt=void 0,We,Cr=V.scrollHeight;if(nt==="border-box"?Cr+=at:nt==="content-box"&&(Cr-=Je),P!==null||X!==null){V.value=" ";var Er=V.scrollHeight-Je;P!==null&&(ur=Er*P,nt==="border-box"&&(ur=ur+Je+at),Cr=Math.max(ur,Cr)),X!==null&&(Jt=Er*X,nt==="border-box"&&(Jt=Jt+Je+at),We=Cr>Jt?"":"hidden",Cr=Math.min(Jt,Cr))}var Kr={height:Cr,overflowY:We,resize:"none"};return ur&&(Kr.minHeight=ur),Jt&&(Kr.maxHeight=Jt),Kr}var G=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,J=1,be=2,Ce=a.forwardRef(function(ve,_){var P=ve,X=P.prefixCls,pe=P.onPressEnter,Je=P.defaultValue,at=P.value,nt=P.autoSize,Lt=P.onResize,ur=P.className,Jt=P.style,We=P.disabled,Cr=P.onChange,Er=P.onInternalAutoSize,Kr=(0,Y.Z)(P,G),_r=(0,p.Z)(Je,{value:at,postState:function(ue){return ue!=null?ue:""}}),Se=(0,ie.Z)(_r,2),Nt=Se[0],z=Se[1],v=function(ue){z(ue.target.value),Cr==null||Cr(ue)},h=a.useRef();a.useImperativeHandle(_,function(){return{textArea:h.current}});var D=a.useMemo(function(){return nt&&(0,Me.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),fe=(0,ie.Z)(D,2),Z=fe[0],N=fe[1],te=!!nt,Te=function(){try{if(document.activeElement===h.current){var ue=h.current,rr=ue.selectionStart,Qe=ue.selectionEnd,ot=ue.scrollTop;h.current.setSelectionRange(rr,Qe),h.current.scrollTop=ot}}catch(Yr){}},Ie=a.useState(be),Fe=(0,ie.Z)(Ie,2),ze=Fe[0],pt=Fe[1],$e=a.useState(),tt=(0,ie.Z)($e,2),ct=tt[0],Ge=tt[1],Ke=function(){pt(le)};(0,m.Z)(function(){te&&Ke()},[at,Z,N,te]),(0,m.Z)(function(){if(ze===le)pt(J);else if(ze===J){var re=B(h.current,!1,Z,N);pt(be),Ge(re)}else Te()},[ze]);var Bt=a.useRef(),Vt=function(){S.Z.cancel(Bt.current)},Mt=function(ue){ze===be&&(Lt==null||Lt(ue),nt&&(Vt(),Bt.current=(0,S.Z)(function(){Ke()})))};a.useEffect(function(){return Vt},[]);var mr=te?ct:null,wr=(0,De.Z)((0,De.Z)({},Jt),mr);return(ze===le||ze===J)&&(wr.overflowY="hidden",wr.overflowX="hidden"),a.createElement(A.Z,{onResize:Mt,disabled:!(nt||Lt)},a.createElement("textarea",(0,we.Z)({},Kr,{ref:h,style:wr,className:n()(X,ur,(0,se.Z)({},"".concat(X,"-disabled"),We)),disabled:We,value:Nt,onChange:v})))}),Re=Ce,ae=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function me(ve,_){return(0,O.Z)(ve||"").slice(0,_).join("")}function T(ve,_,P,X){var pe=P;return ve?pe=me(P,X):(0,O.Z)(_||"").length<P.length&&(0,O.Z)(P||"").length>X&&(pe=_),pe}var Ee=a.forwardRef(function(ve,_){var P,X=ve.defaultValue,pe=ve.value,Je=ve.onFocus,at=ve.onBlur,nt=ve.onChange,Lt=ve.allowClear,ur=ve.maxLength,Jt=ve.onCompositionStart,We=ve.onCompositionEnd,Cr=ve.suffix,Er=ve.prefixCls,Kr=Er===void 0?"rc-textarea":Er,_r=ve.classes,Se=ve.showCount,Nt=ve.className,z=ve.style,v=ve.disabled,h=ve.hidden,D=ve.classNames,fe=ve.styles,Z=ve.onResize,N=(0,Y.Z)(ve,ae),te=(0,p.Z)(X,{value:pe,defaultValue:X}),Te=(0,ie.Z)(te,2),Ie=Te[0],Fe=Te[1],ze=(0,a.useRef)(null),pt=a.useState(!1),$e=(0,ie.Z)(pt,2),tt=$e[0],ct=$e[1],Ge=a.useState(!1),Ke=(0,ie.Z)(Ge,2),Bt=Ke[0],Vt=Ke[1],Mt=a.useRef(),mr=a.useRef(0),wr=a.useState(null),re=(0,ie.Z)(wr,2),ue=re[0],rr=re[1],Qe=function(){var On;(On=ze.current)===null||On===void 0||On.textArea.focus()};(0,a.useImperativeHandle)(_,function(){return{resizableTextArea:ze.current,focus:Qe,blur:function(){var On;(On=ze.current)===null||On===void 0||On.textArea.blur()}}}),(0,a.useEffect)(function(){ct(function(ji){return!v&&ji})},[v]);var ot=Number(ur)>0,Yr=function(On){Vt(!0),Mt.current=Ie,mr.current=On.currentTarget.selectionStart,Jt==null||Jt(On)},It=function(On){Vt(!1);var $n=On.currentTarget.value;if(ot){var Yt,jr=mr.current>=ur+1||mr.current===((Yt=Mt.current)===null||Yt===void 0?void 0:Yt.length);$n=T(jr,Mt.current,$n,ur)}$n!==Ie&&(Fe($n),(0,L.rJ)(On.currentTarget,On,nt,$n)),We==null||We(On)},zt=function(On){var $n=On.target.value;if(!Bt&&ot){var Yt=On.target.selectionStart>=ur+1||On.target.selectionStart===$n.length||!On.target.selectionStart;$n=T(Yt,Ie,$n,ur)}Fe($n),(0,L.rJ)(On.currentTarget,On,nt,$n)},qt=function(On){var $n=N.onPressEnter,Yt=N.onKeyDown;On.key==="Enter"&&$n&&$n(On),Yt==null||Yt(On)},qe=function(On){ct(!0),Je==null||Je(On)},At=function(On){ct(!1),at==null||at(On)},dt=function(On){var $n;Fe(""),Qe(),(0,L.rJ)(($n=ze.current)===null||$n===void 0?void 0:$n.textArea,On,nt)},Gt=(0,L.D7)(Ie);!Bt&&ot&&pe==null&&(Gt=me(Gt,ur));var Pe=Cr,an;if(Se){var kt=(0,O.Z)(Gt).length;(0,Me.Z)(Se)==="object"?an=Se.formatter({value:Gt,count:kt,maxLength:ur}):an="".concat(kt).concat(ot?" / ".concat(ur):""),Pe=a.createElement(a.Fragment,null,Pe,a.createElement("span",{className:n()("".concat(Kr,"-data-count"),D==null?void 0:D.count),style:fe==null?void 0:fe.count},an))}var kn=function(On){var $n;Z==null||Z(On),($n=ze.current)!==null&&$n!==void 0&&$n.textArea.style.height&&rr(!0)},Xn=!N.autoSize&&!Se&&!Lt,yi=a.createElement(o.BaseInput,{value:Gt,allowClear:Lt,handleReset:dt,suffix:Pe,prefixCls:Kr,classes:{affixWrapper:n()(_r==null?void 0:_r.affixWrapper,(P={},(0,se.Z)(P,"".concat(Kr,"-show-count"),Se),(0,se.Z)(P,"".concat(Kr,"-textarea-allow-clear"),Lt),P))},disabled:v,focused:tt,className:Nt,style:(0,De.Z)((0,De.Z)({},z),ue&&!Xn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof an=="string"?an:void 0}},hidden:h,inputElement:a.createElement(Re,(0,we.Z)({},N,{onKeyDown:qt,onChange:zt,onFocus:qe,onBlur:At,onCompositionStart:Yr,onCompositionEnd:It,className:D==null?void 0:D.textarea,style:(0,De.Z)((0,De.Z)({},fe==null?void 0:fe.textarea),{},{resize:z==null?void 0:z.resize}),disabled:v,prefixCls:Kr,onResize:kn,ref:ze}))});return yi}),oe=Ee,he=oe},55477:function(bn,Zt,g){"use strict";g.d(Zt,{G:function(){return a},Z:function(){return $}});var we=g(96663),De=g(44127),se=g(6620),Me=g(35593),ie=g(59301),Y={shiftX:64,adjustY:1},O={adjustX:1,shiftY:!0},I=[0,0],n={left:{points:["cr","cl"],overflow:O,offset:[-4,0],targetOffset:I},right:{points:["cl","cr"],overflow:O,offset:[4,0],targetOffset:I},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:I},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:I},topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:I},leftTop:{points:["tr","tl"],overflow:O,offset:[-4,0],targetOffset:I},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:I},rightTop:{points:["tl","tr"],overflow:O,offset:[4,0],targetOffset:I},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:I},rightBottom:{points:["bl","br"],overflow:O,offset:[4,0],targetOffset:I},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:I},leftBottom:{points:["br","bl"],overflow:O,offset:[-4,0],targetOffset:I}},o=null,L=g(92310),p=g.n(L);function a(F){var H=F.children,V=F.prefixCls,ee=F.id,B=F.overlayInnerStyle,G=F.className,le=F.style;return ie.createElement("div",{className:p()("".concat(V,"-content"),G),style:le},ie.createElement("div",{className:"".concat(V,"-inner"),id:ee,role:"tooltip",style:B},typeof H=="function"?H():H))}var A=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],m=function(H,V){var ee=H.overlayClassName,B=H.trigger,G=B===void 0?["hover"]:B,le=H.mouseEnterDelay,J=le===void 0?0:le,be=H.mouseLeaveDelay,Ce=be===void 0?.1:be,Re=H.overlayStyle,ae=H.prefixCls,me=ae===void 0?"rc-tooltip":ae,T=H.children,Ee=H.onVisibleChange,oe=H.afterVisibleChange,he=H.transitionName,ve=H.animation,_=H.motion,P=H.placement,X=P===void 0?"right":P,pe=H.align,Je=pe===void 0?{}:pe,at=H.destroyTooltipOnHide,nt=at===void 0?!1:at,Lt=H.defaultVisible,ur=H.getTooltipContainer,Jt=H.overlayInnerStyle,We=H.arrowContent,Cr=H.overlay,Er=H.id,Kr=H.showArrow,_r=Kr===void 0?!0:Kr,Se=(0,se.Z)(H,A),Nt=(0,ie.useRef)(null);(0,ie.useImperativeHandle)(V,function(){return Nt.current});var z=(0,De.Z)({},Se);"visible"in H&&(z.popupVisible=H.visible);var v=function(){return ie.createElement(a,{key:"content",prefixCls:me,id:Er,overlayInnerStyle:Jt},Cr)};return ie.createElement(Me.Z,(0,we.Z)({popupClassName:ee,prefixCls:me,popup:v,action:G,builtinPlacements:n,popupPlacement:X,ref:Nt,popupAlign:Je,getPopupContainer:ur,onPopupVisibleChange:Ee,afterPopupVisibleChange:oe,popupTransitionName:he,popupAnimation:ve,popupMotion:_,defaultPopupVisible:Lt,autoDestroy:nt,mouseLeaveDelay:Ce,popupStyle:Re,mouseEnterDelay:J,arrow:_r},z),T)},S=(0,ie.forwardRef)(m),$=S},39417:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return J}});var we=g(96663),De=g(90493),se=g(6620),Me=g(44127),ie=g(52884),Y=g(95727),O=g(89866),I=g(65711),n=g(85745),o=g(92310),L=g.n(o),p=g(26112),a=g(59301),A=g(39378),m=function(Ce){for(var Re=Ce.prefixCls,ae=Ce.level,me=Ce.isStart,T=Ce.isEnd,Ee="".concat(Re,"-indent-unit"),oe=[],he=0;he<ae;he+=1){var ve;oe.push(a.createElement("span",{key:he,className:L()(Ee,(ve={},(0,De.Z)(ve,"".concat(Ee,"-start"),me[he]),(0,De.Z)(ve,"".concat(Ee,"-end"),T[he]),ve))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(Re,"-indent")},oe)},S=a.memo(m),$=g(67841),F=g(71430),H=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],V="open",ee="close",B="---",G=function(be){(0,I.Z)(Re,be);var Ce=(0,n.Z)(Re);function Re(){var ae;(0,ie.Z)(this,Re);for(var me=arguments.length,T=new Array(me),Ee=0;Ee<me;Ee++)T[Ee]=arguments[Ee];return ae=Ce.call.apply(Ce,[this].concat(T)),ae.state={dragNodeHighlight:!1},ae.selectHandle=void 0,ae.cacheIndent=void 0,ae.onSelectorClick=function(oe){var he=ae.props.context.onNodeClick;he(oe,(0,F.F)(ae.props)),ae.isSelectable()?ae.onSelect(oe):ae.onCheck(oe)},ae.onSelectorDoubleClick=function(oe){var he=ae.props.context.onNodeDoubleClick;he(oe,(0,F.F)(ae.props))},ae.onSelect=function(oe){if(!ae.isDisabled()){var he=ae.props.context.onNodeSelect;he(oe,(0,F.F)(ae.props))}},ae.onCheck=function(oe){if(!ae.isDisabled()){var he=ae.props,ve=he.disableCheckbox,_=he.checked,P=ae.props.context.onNodeCheck;if(!(!ae.isCheckable()||ve)){var X=!_;P(oe,(0,F.F)(ae.props),X)}}},ae.onMouseEnter=function(oe){var he=ae.props.context.onNodeMouseEnter;he(oe,(0,F.F)(ae.props))},ae.onMouseLeave=function(oe){var he=ae.props.context.onNodeMouseLeave;he(oe,(0,F.F)(ae.props))},ae.onContextMenu=function(oe){var he=ae.props.context.onNodeContextMenu;he(oe,(0,F.F)(ae.props))},ae.onDragStart=function(oe){var he=ae.props.context.onNodeDragStart;oe.stopPropagation(),ae.setState({dragNodeHighlight:!0}),he(oe,(0,O.Z)(ae));try{oe.dataTransfer.setData("text/plain","")}catch(ve){}},ae.onDragEnter=function(oe){var he=ae.props.context.onNodeDragEnter;oe.preventDefault(),oe.stopPropagation(),he(oe,(0,O.Z)(ae))},ae.onDragOver=function(oe){var he=ae.props.context.onNodeDragOver;oe.preventDefault(),oe.stopPropagation(),he(oe,(0,O.Z)(ae))},ae.onDragLeave=function(oe){var he=ae.props.context.onNodeDragLeave;oe.stopPropagation(),he(oe,(0,O.Z)(ae))},ae.onDragEnd=function(oe){var he=ae.props.context.onNodeDragEnd;oe.stopPropagation(),ae.setState({dragNodeHighlight:!1}),he(oe,(0,O.Z)(ae))},ae.onDrop=function(oe){var he=ae.props.context.onNodeDrop;oe.preventDefault(),oe.stopPropagation(),ae.setState({dragNodeHighlight:!1}),he(oe,(0,O.Z)(ae))},ae.onExpand=function(oe){var he=ae.props,ve=he.loading,_=he.context.onNodeExpand;ve||_(oe,(0,F.F)(ae.props))},ae.setSelectHandle=function(oe){ae.selectHandle=oe},ae.getNodeState=function(){var oe=ae.props.expanded;return ae.isLeaf()?null:oe?V:ee},ae.hasChildren=function(){var oe=ae.props.eventKey,he=ae.props.context.keyEntities,ve=(0,$.Z)(he,oe)||{},_=ve.children;return!!(_||[]).length},ae.isLeaf=function(){var oe=ae.props,he=oe.isLeaf,ve=oe.loaded,_=ae.props.context.loadData,P=ae.hasChildren();return he===!1?!1:he||!_&&!P||_&&ve&&!P},ae.isDisabled=function(){var oe=ae.props.disabled,he=ae.props.context.disabled;return!!(he||oe)},ae.isCheckable=function(){var oe=ae.props.checkable,he=ae.props.context.checkable;return!he||oe===!1?!1:he},ae.syncLoadData=function(oe){var he=oe.expanded,ve=oe.loading,_=oe.loaded,P=ae.props.context,X=P.loadData,pe=P.onNodeLoad;ve||X&&he&&!ae.isLeaf()&&!ae.hasChildren()&&!_&&pe((0,F.F)(ae.props))},ae.isDraggable=function(){var oe=ae.props,he=oe.data,ve=oe.context.draggable;return!!(ve&&(!ve.nodeDraggable||ve.nodeDraggable(he)))},ae.renderDragHandler=function(){var oe=ae.props.context,he=oe.draggable,ve=oe.prefixCls;return he!=null&&he.icon?a.createElement("span",{className:"".concat(ve,"-draggable-icon")},he.icon):null},ae.renderSwitcherIconDom=function(oe){var he=ae.props.switcherIcon,ve=ae.props.context.switcherIcon,_=he||ve;return typeof _=="function"?_((0,Me.Z)((0,Me.Z)({},ae.props),{},{isLeaf:oe})):_},ae.renderSwitcher=function(){var oe=ae.props.expanded,he=ae.props.context.prefixCls;if(ae.isLeaf()){var ve=ae.renderSwitcherIconDom(!0);return ve!==!1?a.createElement("span",{className:L()("".concat(he,"-switcher"),"".concat(he,"-switcher-noop"))},ve):null}var _=L()("".concat(he,"-switcher"),"".concat(he,"-switcher_").concat(oe?V:ee)),P=ae.renderSwitcherIconDom(!1);return P!==!1?a.createElement("span",{onClick:ae.onExpand,className:_},P):null},ae.renderCheckbox=function(){var oe=ae.props,he=oe.checked,ve=oe.halfChecked,_=oe.disableCheckbox,P=ae.props.context.prefixCls,X=ae.isDisabled(),pe=ae.isCheckable();if(!pe)return null;var Je=typeof pe!="boolean"?pe:null;return a.createElement("span",{className:L()("".concat(P,"-checkbox"),he&&"".concat(P,"-checkbox-checked"),!he&&ve&&"".concat(P,"-checkbox-indeterminate"),(X||_)&&"".concat(P,"-checkbox-disabled")),onClick:ae.onCheck},Je)},ae.renderIcon=function(){var oe=ae.props.loading,he=ae.props.context.prefixCls;return a.createElement("span",{className:L()("".concat(he,"-iconEle"),"".concat(he,"-icon__").concat(ae.getNodeState()||"docu"),oe&&"".concat(he,"-icon_loading"))})},ae.renderSelector=function(){var oe=ae.state.dragNodeHighlight,he=ae.props,ve=he.title,_=ve===void 0?B:ve,P=he.selected,X=he.icon,pe=he.loading,Je=he.data,at=ae.props.context,nt=at.prefixCls,Lt=at.showIcon,ur=at.icon,Jt=at.loadData,We=at.titleRender,Cr=ae.isDisabled(),Er="".concat(nt,"-node-content-wrapper"),Kr;if(Lt){var _r=X||ur;Kr=_r?a.createElement("span",{className:L()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof _r=="function"?_r(ae.props):_r):ae.renderIcon()}else Jt&&pe&&(Kr=ae.renderIcon());var Se;typeof _=="function"?Se=_(Je):We?Se=We(Je):Se=_;var Nt=a.createElement("span",{className:"".concat(nt,"-title")},Se);return a.createElement("span",{ref:ae.setSelectHandle,title:typeof _=="string"?_:"",className:L()("".concat(Er),"".concat(Er,"-").concat(ae.getNodeState()||"normal"),!Cr&&(P||oe)&&"".concat(nt,"-node-selected")),onMouseEnter:ae.onMouseEnter,onMouseLeave:ae.onMouseLeave,onContextMenu:ae.onContextMenu,onClick:ae.onSelectorClick,onDoubleClick:ae.onSelectorDoubleClick},Kr,Nt,ae.renderDropIndicator())},ae.renderDropIndicator=function(){var oe=ae.props,he=oe.disabled,ve=oe.eventKey,_=ae.props.context,P=_.draggable,X=_.dropLevelOffset,pe=_.dropPosition,Je=_.prefixCls,at=_.indent,nt=_.dropIndicatorRender,Lt=_.dragOverNodeKey,ur=_.direction,Jt=!!P,We=!he&&Jt&&Lt===ve,Cr=at!=null?at:ae.cacheIndent;return ae.cacheIndent=at,We?nt({dropPosition:pe,dropLevelOffset:X,indent:Cr,prefixCls:Je,direction:ur}):null},ae}return(0,Y.Z)(Re,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var me=this.props.selectable,T=this.props.context.selectable;return typeof me=="boolean"?me:T}},{key:"render",value:function(){var me,T=this.props,Ee=T.eventKey,oe=T.className,he=T.style,ve=T.dragOver,_=T.dragOverGapTop,P=T.dragOverGapBottom,X=T.isLeaf,pe=T.isStart,Je=T.isEnd,at=T.expanded,nt=T.selected,Lt=T.checked,ur=T.halfChecked,Jt=T.loading,We=T.domRef,Cr=T.active,Er=T.data,Kr=T.onMouseMove,_r=T.selectable,Se=(0,se.Z)(T,H),Nt=this.props.context,z=Nt.prefixCls,v=Nt.filterTreeNode,h=Nt.keyEntities,D=Nt.dropContainerKey,fe=Nt.dropTargetKey,Z=Nt.draggingNodeKey,N=this.isDisabled(),te=(0,p.Z)(Se,{aria:!0,data:!0}),Te=(0,$.Z)(h,Ee)||{},Ie=Te.level,Fe=Je[Je.length-1],ze=this.isDraggable(),pt=!N&&ze,$e=Z===Ee,tt=_r!==void 0?{"aria-selected":!!_r}:void 0;return a.createElement("div",(0,we.Z)({ref:We,className:L()(oe,"".concat(z,"-treenode"),(me={},(0,De.Z)(me,"".concat(z,"-treenode-disabled"),N),(0,De.Z)(me,"".concat(z,"-treenode-switcher-").concat(at?"open":"close"),!X),(0,De.Z)(me,"".concat(z,"-treenode-checkbox-checked"),Lt),(0,De.Z)(me,"".concat(z,"-treenode-checkbox-indeterminate"),ur),(0,De.Z)(me,"".concat(z,"-treenode-selected"),nt),(0,De.Z)(me,"".concat(z,"-treenode-loading"),Jt),(0,De.Z)(me,"".concat(z,"-treenode-active"),Cr),(0,De.Z)(me,"".concat(z,"-treenode-leaf-last"),Fe),(0,De.Z)(me,"".concat(z,"-treenode-draggable"),ze),(0,De.Z)(me,"dragging",$e),(0,De.Z)(me,"drop-target",fe===Ee),(0,De.Z)(me,"drop-container",D===Ee),(0,De.Z)(me,"drag-over",!N&&ve),(0,De.Z)(me,"drag-over-gap-top",!N&&_),(0,De.Z)(me,"drag-over-gap-bottom",!N&&P),(0,De.Z)(me,"filter-node",v&&v((0,F.F)(this.props))),me)),style:he,draggable:pt,"aria-grabbed":$e,onDragStart:pt?this.onDragStart:void 0,onDragEnter:ze?this.onDragEnter:void 0,onDragOver:ze?this.onDragOver:void 0,onDragLeave:ze?this.onDragLeave:void 0,onDrop:ze?this.onDrop:void 0,onDragEnd:ze?this.onDragEnd:void 0,onMouseMove:Kr},tt,te),a.createElement(S,{prefixCls:z,level:Ie,isStart:pe,isEnd:Je}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Re}(a.Component),le=function(Ce){return a.createElement(A.k.Consumer,null,function(Re){return a.createElement(G,(0,we.Z)({},Ce,{context:Re}))})};le.displayName="TreeNode",le.isTreeNode=1;var J=le},39378:function(bn,Zt,g){"use strict";g.d(Zt,{k:function(){return De}});var we=g(59301),De=we.createContext(null)},43858:function(bn,Zt,g){"use strict";g.d(Zt,{O:function(){return J.Z},Z:function(){return Nt}});var we=g(96663),De=g(90493),se=g(20135),Me=g(44127),ie=g(19127),Y=g(52884),O=g(95727),I=g(89866),n=g(65711),o=g(85745),L=g(92310),p=g.n(L),a=g(10228),A=g(26112),m=g(48736),S=g(59301),$=g(39378);function F(z){var v=z.dropPosition,h=z.dropLevelOffset,D=z.indent,fe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(v){case-1:fe.top=0,fe.left=-h*D;break;case 1:fe.bottom=0,fe.left=-h*D;break;case 0:fe.bottom=0,fe.left=D;break}return S.createElement("div",{style:fe})}function H(z){if(z==null)throw new TypeError("Cannot destructure "+z)}var V=g(72071),ee=g(6620),B=g(34280),G=g(24916),le=g(77900),J=g(39417);function be(z,v){var h=S.useState(!1),D=(0,V.Z)(h,2),fe=D[0],Z=D[1];S.useLayoutEffect(function(){if(fe)return z(),function(){v()}},[fe]),S.useLayoutEffect(function(){return Z(!0),function(){Z(!1)}},[])}var Ce=g(71430),Re=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ae=function(v,h){var D=v.className,fe=v.style,Z=v.motion,N=v.motionNodes,te=v.motionType,Te=v.onMotionStart,Ie=v.onMotionEnd,Fe=v.active,ze=v.treeNodeRequiredProps,pt=(0,ee.Z)(v,Re),$e=S.useState(!0),tt=(0,V.Z)($e,2),ct=tt[0],Ge=tt[1],Ke=S.useContext($.k),Bt=Ke.prefixCls,Vt=N&&te!=="hide";(0,B.Z)(function(){N&&Vt!==ct&&Ge(Vt)},[N]);var Mt=function(){N&&Te()},mr=S.useRef(!1),wr=function(){N&&!mr.current&&(mr.current=!0,Ie())};be(Mt,wr);var re=function(rr){Vt===rr&&wr()};return N?S.createElement(le.default,(0,we.Z)({ref:h,visible:ct},Z,{motionAppear:te==="show",onVisibleChanged:re}),function(ue,rr){var Qe=ue.className,ot=ue.style;return S.createElement("div",{ref:rr,className:p()("".concat(Bt,"-treenode-motion"),Qe),style:ot},N.map(function(Yr){var It=(0,we.Z)({},(H(Yr.data),Yr.data)),zt=Yr.title,qt=Yr.key,qe=Yr.isStart,At=Yr.isEnd;delete It.children;var dt=(0,Ce.H8)(qt,ze);return S.createElement(J.Z,(0,we.Z)({},It,dt,{title:zt,active:Fe,data:Yr.data,key:qt,isStart:qe,isEnd:At}))}))}):S.createElement(J.Z,(0,we.Z)({domRef:h,className:D,style:fe},pt,{active:Fe}))};ae.displayName="MotionTreeNode";var me=S.forwardRef(ae),T=me;function Ee(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=z.length,D=v.length;if(Math.abs(h-D)!==1)return{add:!1,key:null};function fe(Z,N){var te=new Map;Z.forEach(function(Ie){te.set(Ie,!0)});var Te=N.filter(function(Ie){return!te.has(Ie)});return Te.length===1?Te[0]:null}return h<D?{add:!0,key:fe(z,v)}:{add:!1,key:fe(v,z)}}function oe(z,v,h){var D=z.findIndex(function(te){return te.key===h}),fe=z[D+1],Z=v.findIndex(function(te){return te.key===h});if(fe){var N=v.findIndex(function(te){return te.key===fe.key});return v.slice(Z+1,N)}return v.slice(Z+1)}var he=["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"],ve={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_=function(){},P="RC_TREE_MOTION_".concat(Math.random()),X={key:P},pe={key:P,level:0,index:0,pos:"0",node:X,nodes:[X]},Je={parent:null,children:[],pos:pe.pos,data:X,title:null,key:P,isStart:[],isEnd:[]};function at(z,v,h,D){return v===!1||!h?z:z.slice(0,Math.ceil(h/D)+1)}function nt(z){var v=z.key,h=z.pos;return(0,Ce.km)(v,h)}function Lt(z){for(var v=String(z.data.key),h=z;h.parent;)h=h.parent,v="".concat(h.data.key," > ").concat(v);return v}var ur=S.forwardRef(function(z,v){var h=z.prefixCls,D=z.data,fe=z.selectable,Z=z.checkable,N=z.expandedKeys,te=z.selectedKeys,Te=z.checkedKeys,Ie=z.loadedKeys,Fe=z.loadingKeys,ze=z.halfCheckedKeys,pt=z.keyEntities,$e=z.disabled,tt=z.dragging,ct=z.dragOverNodeKey,Ge=z.dropPosition,Ke=z.motion,Bt=z.height,Vt=z.itemHeight,Mt=z.virtual,mr=z.focusable,wr=z.activeItem,re=z.focused,ue=z.tabIndex,rr=z.onKeyDown,Qe=z.onFocus,ot=z.onBlur,Yr=z.onActiveChange,It=z.onListChangeStart,zt=z.onListChangeEnd,qt=(0,ee.Z)(z,he),qe=S.useRef(null),At=S.useRef(null);S.useImperativeHandle(v,function(){return{scrollTo:function(zr){qe.current.scrollTo(zr)},getIndentWidth:function(){return At.current.offsetWidth}}});var dt=S.useState(N),Gt=(0,V.Z)(dt,2),Pe=Gt[0],an=Gt[1],kt=S.useState(D),kn=(0,V.Z)(kt,2),Xn=kn[0],yi=kn[1],ji=S.useState(D),On=(0,V.Z)(ji,2),$n=On[0],Yt=On[1],jr=S.useState([]),Jr=(0,V.Z)(jr,2),Ot=Jr[0],_t=Jr[1],Br=S.useState(null),Lr=(0,V.Z)(Br,2),In=Lr[0],tn=Lr[1],Bn=S.useRef(D);Bn.current=D;function gn(){var Hr=Bn.current;yi(Hr),Yt(Hr),_t([]),tn(null),zt()}(0,B.Z)(function(){an(N);var Hr=Ee(Pe,N);if(Hr.key!==null)if(Hr.add){var zr=Xn.findIndex(function(Ai){var wn=Ai.key;return wn===Hr.key}),Tn=at(oe(Xn,D,Hr.key),Mt,Bt,Vt),Sn=Xn.slice();Sn.splice(zr+1,0,Je),Yt(Sn),_t(Tn),tn("show")}else{var jn=D.findIndex(function(Ai){var wn=Ai.key;return wn===Hr.key}),Vn=at(oe(D,Xn,Hr.key),Mt,Bt,Vt),Mi=D.slice();Mi.splice(jn+1,0,Je),Yt(Mi),_t(Vn),tn("hide")}else Xn!==D&&(yi(D),Yt(D))},[N,D]),S.useEffect(function(){tt||gn()},[tt]);var Qn=Ke?$n:D,ei={expandedKeys:N,selectedKeys:te,loadedKeys:Ie,loadingKeys:Fe,checkedKeys:Te,halfCheckedKeys:ze,dragOverNodeKey:ct,dropPosition:Ge,keyEntities:pt};return S.createElement(S.Fragment,null,re&&wr&&S.createElement("span",{style:ve,"aria-live":"assertive"},Lt(wr)),S.createElement("div",null,S.createElement("input",{style:ve,disabled:mr===!1||$e,tabIndex:mr!==!1?ue:null,onKeyDown:rr,onFocus:Qe,onBlur:ot,value:"",onChange:_,"aria-label":"for screen reader"})),S.createElement("div",{className:"".concat(h,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},S.createElement("div",{className:"".concat(h,"-indent")},S.createElement("div",{ref:At,className:"".concat(h,"-indent-unit")}))),S.createElement(G.Z,(0,we.Z)({},qt,{data:Qn,itemKey:nt,height:Bt,fullHeight:!1,virtual:Mt,itemHeight:Vt,prefixCls:"".concat(h,"-list"),ref:qe,onVisibleChange:function(zr,Tn){var Sn=new Set(zr),jn=Tn.filter(function(Vn){return!Sn.has(Vn)});jn.some(function(Vn){return nt(Vn)===P})&&gn()}}),function(Hr){var zr=Hr.pos,Tn=(0,we.Z)({},(H(Hr.data),Hr.data)),Sn=Hr.title,jn=Hr.key,Vn=Hr.isStart,Mi=Hr.isEnd,Ai=(0,Ce.km)(jn,zr);delete Tn.key,delete Tn.children;var wn=(0,Ce.H8)(Ai,ei);return S.createElement(T,(0,we.Z)({},Tn,wn,{title:Sn,active:!!wr&&jn===wr.key,pos:zr,data:Hr.data,isStart:Vn,isEnd:Mi,motion:Ke,motionNodes:jn===P?Ot:null,motionType:In,onMotionStart:It,onMotionEnd:gn,treeNodeRequiredProps:ei,onMouseMove:function(){Yr(null)}}))}))});ur.displayName="NodeList";var Jt=ur,We=g(35654),Cr=g(90782),Er=g(67841),Kr=10,_r=function(z){(0,n.Z)(h,z);var v=(0,o.Z)(h);function h(){var D;(0,Y.Z)(this,h);for(var fe=arguments.length,Z=new Array(fe),N=0;N<fe;N++)Z[N]=arguments[N];return D=v.call.apply(v,[this].concat(Z)),D.destroyed=!1,D.delayedDragEnterLogic=void 0,D.loadingRetryTimes={},D.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,Ce.w$)()},D.dragStartMousePosition=null,D.dragNode=void 0,D.currentMouseOverDroppableNodeKey=null,D.listRef=S.createRef(),D.onNodeDragStart=function(te,Te){var Ie=D.state,Fe=Ie.expandedKeys,ze=Ie.keyEntities,pt=D.props.onDragStart,$e=Te.props.eventKey;D.dragNode=Te,D.dragStartMousePosition={x:te.clientX,y:te.clientY};var tt=(0,We._5)(Fe,$e);D.setState({draggingNodeKey:$e,dragChildrenKeys:(0,We.wA)($e,ze),indent:D.listRef.current.getIndentWidth()}),D.setExpandedKeys(tt),window.addEventListener("dragend",D.onWindowDragEnd),pt==null||pt({event:te,node:(0,Ce.F)(Te.props)})},D.onNodeDragEnter=function(te,Te){var Ie=D.state,Fe=Ie.expandedKeys,ze=Ie.keyEntities,pt=Ie.dragChildrenKeys,$e=Ie.flattenNodes,tt=Ie.indent,ct=D.props,Ge=ct.onDragEnter,Ke=ct.onExpand,Bt=ct.allowDrop,Vt=ct.direction,Mt=Te.props,mr=Mt.pos,wr=Mt.eventKey,re=(0,I.Z)(D),ue=re.dragNode;if(D.currentMouseOverDroppableNodeKey!==wr&&(D.currentMouseOverDroppableNodeKey=wr),!ue){D.resetDragState();return}var rr=(0,We.OM)(te,ue,Te,tt,D.dragStartMousePosition,Bt,$e,ze,Fe,Vt),Qe=rr.dropPosition,ot=rr.dropLevelOffset,Yr=rr.dropTargetKey,It=rr.dropContainerKey,zt=rr.dropTargetPos,qt=rr.dropAllowed,qe=rr.dragOverNodeKey;if(pt.indexOf(Yr)!==-1||!qt){D.resetDragState();return}if(D.delayedDragEnterLogic||(D.delayedDragEnterLogic={}),Object.keys(D.delayedDragEnterLogic).forEach(function(At){clearTimeout(D.delayedDragEnterLogic[At])}),ue.props.eventKey!==Te.props.eventKey&&(te.persist(),D.delayedDragEnterLogic[mr]=window.setTimeout(function(){if(D.state.draggingNodeKey!==null){var At=(0,ie.Z)(Fe),dt=(0,Er.Z)(ze,Te.props.eventKey);dt&&(dt.children||[]).length&&(At=(0,We.L0)(Fe,Te.props.eventKey)),"expandedKeys"in D.props||D.setExpandedKeys(At),Ke==null||Ke(At,{node:(0,Ce.F)(Te.props),expanded:!0,nativeEvent:te.nativeEvent})}},800)),ue.props.eventKey===Yr&&ot===0){D.resetDragState();return}D.setState({dragOverNodeKey:qe,dropPosition:Qe,dropLevelOffset:ot,dropTargetKey:Yr,dropContainerKey:It,dropTargetPos:zt,dropAllowed:qt}),Ge==null||Ge({event:te,node:(0,Ce.F)(Te.props),expandedKeys:Fe})},D.onNodeDragOver=function(te,Te){var Ie=D.state,Fe=Ie.dragChildrenKeys,ze=Ie.flattenNodes,pt=Ie.keyEntities,$e=Ie.expandedKeys,tt=Ie.indent,ct=D.props,Ge=ct.onDragOver,Ke=ct.allowDrop,Bt=ct.direction,Vt=(0,I.Z)(D),Mt=Vt.dragNode;if(Mt){var mr=(0,We.OM)(te,Mt,Te,tt,D.dragStartMousePosition,Ke,ze,pt,$e,Bt),wr=mr.dropPosition,re=mr.dropLevelOffset,ue=mr.dropTargetKey,rr=mr.dropContainerKey,Qe=mr.dropAllowed,ot=mr.dropTargetPos,Yr=mr.dragOverNodeKey;Fe.indexOf(ue)!==-1||!Qe||(Mt.props.eventKey===ue&&re===0?D.state.dropPosition===null&&D.state.dropLevelOffset===null&&D.state.dropTargetKey===null&&D.state.dropContainerKey===null&&D.state.dropTargetPos===null&&D.state.dropAllowed===!1&&D.state.dragOverNodeKey===null||D.resetDragState():wr===D.state.dropPosition&&re===D.state.dropLevelOffset&&ue===D.state.dropTargetKey&&rr===D.state.dropContainerKey&&ot===D.state.dropTargetPos&&Qe===D.state.dropAllowed&&Yr===D.state.dragOverNodeKey||D.setState({dropPosition:wr,dropLevelOffset:re,dropTargetKey:ue,dropContainerKey:rr,dropTargetPos:ot,dropAllowed:Qe,dragOverNodeKey:Yr}),Ge==null||Ge({event:te,node:(0,Ce.F)(Te.props)}))}},D.onNodeDragLeave=function(te,Te){D.currentMouseOverDroppableNodeKey===Te.props.eventKey&&!te.currentTarget.contains(te.relatedTarget)&&(D.resetDragState(),D.currentMouseOverDroppableNodeKey=null);var Ie=D.props.onDragLeave;Ie==null||Ie({event:te,node:(0,Ce.F)(Te.props)})},D.onWindowDragEnd=function(te){D.onNodeDragEnd(te,null,!0),window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDragEnd=function(te,Te){var Ie=D.props.onDragEnd;D.setState({dragOverNodeKey:null}),D.cleanDragState(),Ie==null||Ie({event:te,node:(0,Ce.F)(Te.props)}),D.dragNode=null,window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDrop=function(te,Te){var Ie,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ze=D.state,pt=ze.dragChildrenKeys,$e=ze.dropPosition,tt=ze.dropTargetKey,ct=ze.dropTargetPos,Ge=ze.dropAllowed;if(Ge){var Ke=D.props.onDrop;if(D.setState({dragOverNodeKey:null}),D.cleanDragState(),tt!==null){var Bt=(0,Me.Z)((0,Me.Z)({},(0,Ce.H8)(tt,D.getTreeNodeRequiredProps())),{},{active:((Ie=D.getActiveItem())===null||Ie===void 0?void 0:Ie.key)===tt,data:(0,Er.Z)(D.state.keyEntities,tt).node}),Vt=pt.indexOf(tt)!==-1;(0,m.ZP)(!Vt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mt=(0,We.yx)(ct),mr={event:te,node:(0,Ce.F)(Bt),dragNode:D.dragNode?(0,Ce.F)(D.dragNode.props):null,dragNodesKeys:[D.dragNode.props.eventKey].concat(pt),dropToGap:$e!==0,dropPosition:$e+Number(Mt[Mt.length-1])};Fe||Ke==null||Ke(mr),D.dragNode=null}}},D.cleanDragState=function(){var te=D.state.draggingNodeKey;te!==null&&D.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),D.dragStartMousePosition=null,D.currentMouseOverDroppableNodeKey=null},D.triggerExpandActionExpand=function(te,Te){var Ie=D.state,Fe=Ie.expandedKeys,ze=Ie.flattenNodes,pt=Te.expanded,$e=Te.key,tt=Te.isLeaf;if(!(tt||te.shiftKey||te.metaKey||te.ctrlKey)){var ct=ze.filter(function(Ke){return Ke.key===$e})[0],Ge=(0,Ce.F)((0,Me.Z)((0,Me.Z)({},(0,Ce.H8)($e,D.getTreeNodeRequiredProps())),{},{data:ct.data}));D.setExpandedKeys(pt?(0,We._5)(Fe,$e):(0,We.L0)(Fe,$e)),D.onNodeExpand(te,Ge)}},D.onNodeClick=function(te,Te){var Ie=D.props,Fe=Ie.onClick,ze=Ie.expandAction;ze==="click"&&D.triggerExpandActionExpand(te,Te),Fe==null||Fe(te,Te)},D.onNodeDoubleClick=function(te,Te){var Ie=D.props,Fe=Ie.onDoubleClick,ze=Ie.expandAction;ze==="doubleClick"&&D.triggerExpandActionExpand(te,Te),Fe==null||Fe(te,Te)},D.onNodeSelect=function(te,Te){var Ie=D.state.selectedKeys,Fe=D.state,ze=Fe.keyEntities,pt=Fe.fieldNames,$e=D.props,tt=$e.onSelect,ct=$e.multiple,Ge=Te.selected,Ke=Te[pt.key],Bt=!Ge;Bt?ct?Ie=(0,We.L0)(Ie,Ke):Ie=[Ke]:Ie=(0,We._5)(Ie,Ke);var Vt=Ie.map(function(Mt){var mr=(0,Er.Z)(ze,Mt);return mr?mr.node:null}).filter(function(Mt){return Mt});D.setUncontrolledState({selectedKeys:Ie}),tt==null||tt(Ie,{event:"select",selected:Bt,node:Te,selectedNodes:Vt,nativeEvent:te.nativeEvent})},D.onNodeCheck=function(te,Te,Ie){var Fe=D.state,ze=Fe.keyEntities,pt=Fe.checkedKeys,$e=Fe.halfCheckedKeys,tt=D.props,ct=tt.checkStrictly,Ge=tt.onCheck,Ke=Te.key,Bt,Vt={event:"check",node:Te,checked:Ie,nativeEvent:te.nativeEvent};if(ct){var Mt=Ie?(0,We.L0)(pt,Ke):(0,We._5)(pt,Ke),mr=(0,We._5)($e,Ke);Bt={checked:Mt,halfChecked:mr},Vt.checkedNodes=Mt.map(function(ot){return(0,Er.Z)(ze,ot)}).filter(function(ot){return ot}).map(function(ot){return ot.node}),D.setUncontrolledState({checkedKeys:Mt})}else{var wr=(0,Cr.S)([].concat((0,ie.Z)(pt),[Ke]),!0,ze),re=wr.checkedKeys,ue=wr.halfCheckedKeys;if(!Ie){var rr=new Set(re);rr.delete(Ke);var Qe=(0,Cr.S)(Array.from(rr),{checked:!1,halfCheckedKeys:ue},ze);re=Qe.checkedKeys,ue=Qe.halfCheckedKeys}Bt=re,Vt.checkedNodes=[],Vt.checkedNodesPositions=[],Vt.halfCheckedKeys=ue,re.forEach(function(ot){var Yr=(0,Er.Z)(ze,ot);if(Yr){var It=Yr.node,zt=Yr.pos;Vt.checkedNodes.push(It),Vt.checkedNodesPositions.push({node:It,pos:zt})}}),D.setUncontrolledState({checkedKeys:re},!1,{halfCheckedKeys:ue})}Ge==null||Ge(Bt,Vt)},D.onNodeLoad=function(te){var Te=te.key,Ie=new Promise(function(Fe,ze){D.setState(function(pt){var $e=pt.loadedKeys,tt=$e===void 0?[]:$e,ct=pt.loadingKeys,Ge=ct===void 0?[]:ct,Ke=D.props,Bt=Ke.loadData,Vt=Ke.onLoad;if(!Bt||tt.indexOf(Te)!==-1||Ge.indexOf(Te)!==-1)return null;var Mt=Bt(te);return Mt.then(function(){var mr=D.state.loadedKeys,wr=(0,We.L0)(mr,Te);Vt==null||Vt(wr,{event:"load",node:te}),D.setUncontrolledState({loadedKeys:wr}),D.setState(function(re){return{loadingKeys:(0,We._5)(re.loadingKeys,Te)}}),Fe()}).catch(function(mr){if(D.setState(function(re){return{loadingKeys:(0,We._5)(re.loadingKeys,Te)}}),D.loadingRetryTimes[Te]=(D.loadingRetryTimes[Te]||0)+1,D.loadingRetryTimes[Te]>=Kr){var wr=D.state.loadedKeys;(0,m.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),D.setUncontrolledState({loadedKeys:(0,We.L0)(wr,Te)}),Fe()}ze(mr)}),{loadingKeys:(0,We.L0)(Ge,Te)}})});return Ie.catch(function(){}),Ie},D.onNodeMouseEnter=function(te,Te){var Ie=D.props.onMouseEnter;Ie==null||Ie({event:te,node:Te})},D.onNodeMouseLeave=function(te,Te){var Ie=D.props.onMouseLeave;Ie==null||Ie({event:te,node:Te})},D.onNodeContextMenu=function(te,Te){var Ie=D.props.onRightClick;Ie&&(te.preventDefault(),Ie({event:te,node:Te}))},D.onFocus=function(){var te=D.props.onFocus;D.setState({focused:!0});for(var Te=arguments.length,Ie=new Array(Te),Fe=0;Fe<Te;Fe++)Ie[Fe]=arguments[Fe];te==null||te.apply(void 0,Ie)},D.onBlur=function(){var te=D.props.onBlur;D.setState({focused:!1}),D.onActiveChange(null);for(var Te=arguments.length,Ie=new Array(Te),Fe=0;Fe<Te;Fe++)Ie[Fe]=arguments[Fe];te==null||te.apply(void 0,Ie)},D.getTreeNodeRequiredProps=function(){var te=D.state,Te=te.expandedKeys,Ie=te.selectedKeys,Fe=te.loadedKeys,ze=te.loadingKeys,pt=te.checkedKeys,$e=te.halfCheckedKeys,tt=te.dragOverNodeKey,ct=te.dropPosition,Ge=te.keyEntities;return{expandedKeys:Te||[],selectedKeys:Ie||[],loadedKeys:Fe||[],loadingKeys:ze||[],checkedKeys:pt||[],halfCheckedKeys:$e||[],dragOverNodeKey:tt,dropPosition:ct,keyEntities:Ge}},D.setExpandedKeys=function(te){var Te=D.state,Ie=Te.treeData,Fe=Te.fieldNames,ze=(0,Ce.oH)(Ie,te,Fe);D.setUncontrolledState({expandedKeys:te,flattenNodes:ze},!0)},D.onNodeExpand=function(te,Te){var Ie=D.state.expandedKeys,Fe=D.state,ze=Fe.listChanging,pt=Fe.fieldNames,$e=D.props,tt=$e.onExpand,ct=$e.loadData,Ge=Te.expanded,Ke=Te[pt.key];if(!ze){var Bt=Ie.indexOf(Ke),Vt=!Ge;if((0,m.ZP)(Ge&&Bt!==-1||!Ge&&Bt===-1,"Expand state not sync with index check"),Vt?Ie=(0,We.L0)(Ie,Ke):Ie=(0,We._5)(Ie,Ke),D.setExpandedKeys(Ie),tt==null||tt(Ie,{node:Te,expanded:Vt,nativeEvent:te.nativeEvent}),Vt&&ct){var Mt=D.onNodeLoad(Te);Mt&&Mt.then(function(){var mr=(0,Ce.oH)(D.state.treeData,Ie,pt);D.setUncontrolledState({flattenNodes:mr})}).catch(function(){var mr=D.state.expandedKeys,wr=(0,We._5)(mr,Ke);D.setExpandedKeys(wr)})}}},D.onListChangeStart=function(){D.setUncontrolledState({listChanging:!0})},D.onListChangeEnd=function(){setTimeout(function(){D.setUncontrolledState({listChanging:!1})})},D.onActiveChange=function(te){var Te=D.state.activeKey,Ie=D.props.onActiveChange;Te!==te&&(D.setState({activeKey:te}),te!==null&&D.scrollTo({key:te}),Ie==null||Ie(te))},D.getActiveItem=function(){var te=D.state,Te=te.activeKey,Ie=te.flattenNodes;return Te===null?null:Ie.find(function(Fe){var ze=Fe.key;return ze===Te})||null},D.offsetActiveKey=function(te){var Te=D.state,Ie=Te.flattenNodes,Fe=Te.activeKey,ze=Ie.findIndex(function(tt){var ct=tt.key;return ct===Fe});ze===-1&&te<0&&(ze=Ie.length),ze=(ze+te+Ie.length)%Ie.length;var pt=Ie[ze];if(pt){var $e=pt.key;D.onActiveChange($e)}else D.onActiveChange(null)},D.onKeyDown=function(te){var Te=D.state,Ie=Te.activeKey,Fe=Te.expandedKeys,ze=Te.checkedKeys,pt=Te.fieldNames,$e=D.props,tt=$e.onKeyDown,ct=$e.checkable,Ge=$e.selectable;switch(te.which){case a.Z.UP:{D.offsetActiveKey(-1),te.preventDefault();break}case a.Z.DOWN:{D.offsetActiveKey(1),te.preventDefault();break}}var Ke=D.getActiveItem();if(Ke&&Ke.data){var Bt=D.getTreeNodeRequiredProps(),Vt=Ke.data.isLeaf===!1||!!(Ke.data[pt.children]||[]).length,Mt=(0,Ce.F)((0,Me.Z)((0,Me.Z)({},(0,Ce.H8)(Ie,Bt)),{},{data:Ke.data,active:!0}));switch(te.which){case a.Z.LEFT:{Vt&&Fe.includes(Ie)?D.onNodeExpand({},Mt):Ke.parent&&D.onActiveChange(Ke.parent.key),te.preventDefault();break}case a.Z.RIGHT:{Vt&&!Fe.includes(Ie)?D.onNodeExpand({},Mt):Ke.children&&Ke.children.length&&D.onActiveChange(Ke.children[0].key),te.preventDefault();break}case a.Z.ENTER:case a.Z.SPACE:{ct&&!Mt.disabled&&Mt.checkable!==!1&&!Mt.disableCheckbox?D.onNodeCheck({},Mt,!ze.includes(Ie)):!ct&&Ge&&!Mt.disabled&&Mt.selectable!==!1&&D.onNodeSelect({},Mt);break}}}tt==null||tt(te)},D.setUncontrolledState=function(te){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!D.destroyed){var Fe=!1,ze=!0,pt={};Object.keys(te).forEach(function($e){if($e in D.props){ze=!1;return}Fe=!0,pt[$e]=te[$e]}),Fe&&(!Te||ze)&&D.setState((0,Me.Z)((0,Me.Z)({},pt),Ie))}},D.scrollTo=function(te){D.listRef.current.scrollTo(te)},D}return(0,O.Z)(h,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var fe=this.props.activeKey;fe!==void 0&&fe!==this.state.activeKey&&(this.setState({activeKey:fe}),fe!==null&&this.scrollTo({key:fe}))}},{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 fe,Z=this.state,N=Z.focused,te=Z.flattenNodes,Te=Z.keyEntities,Ie=Z.draggingNodeKey,Fe=Z.activeKey,ze=Z.dropLevelOffset,pt=Z.dropContainerKey,$e=Z.dropTargetKey,tt=Z.dropPosition,ct=Z.dragOverNodeKey,Ge=Z.indent,Ke=this.props,Bt=Ke.prefixCls,Vt=Ke.className,Mt=Ke.style,mr=Ke.showLine,wr=Ke.focusable,re=Ke.tabIndex,ue=re===void 0?0:re,rr=Ke.selectable,Qe=Ke.showIcon,ot=Ke.icon,Yr=Ke.switcherIcon,It=Ke.draggable,zt=Ke.checkable,qt=Ke.checkStrictly,qe=Ke.disabled,At=Ke.motion,dt=Ke.loadData,Gt=Ke.filterTreeNode,Pe=Ke.height,an=Ke.itemHeight,kt=Ke.virtual,kn=Ke.titleRender,Xn=Ke.dropIndicatorRender,yi=Ke.onContextMenu,ji=Ke.onScroll,On=Ke.direction,$n=Ke.rootClassName,Yt=Ke.rootStyle,jr=(0,A.Z)(this.props,{aria:!0,data:!0}),Jr;return It&&((0,se.Z)(It)==="object"?Jr=It:typeof It=="function"?Jr={nodeDraggable:It}:Jr={}),S.createElement($.k.Provider,{value:{prefixCls:Bt,selectable:rr,showIcon:Qe,icon:ot,switcherIcon:Yr,draggable:Jr,draggingNodeKey:Ie,checkable:zt,checkStrictly:qt,disabled:qe,keyEntities:Te,dropLevelOffset:ze,dropContainerKey:pt,dropTargetKey:$e,dropPosition:tt,dragOverNodeKey:ct,indent:Ge,direction:On,dropIndicatorRender:Xn,loadData:dt,filterTreeNode:Gt,titleRender:kn,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}},S.createElement("div",{role:"tree",className:p()(Bt,Vt,$n,(fe={},(0,De.Z)(fe,"".concat(Bt,"-show-line"),mr),(0,De.Z)(fe,"".concat(Bt,"-focused"),N),(0,De.Z)(fe,"".concat(Bt,"-active-focused"),Fe!==null),fe)),style:Yt},S.createElement(Jt,(0,we.Z)({ref:this.listRef,prefixCls:Bt,style:Mt,data:te,disabled:qe,selectable:rr,checkable:!!zt,motion:At,dragging:Ie!==null,height:Pe,itemHeight:an,virtual:kt,focusable:wr,focused:N,tabIndex:ue,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:yi,onScroll:ji},this.getTreeNodeRequiredProps(),jr))))}}],[{key:"getDerivedStateFromProps",value:function(fe,Z){var N=Z.prevProps,te={prevProps:fe};function Te(wr){return!N&&wr in fe||N&&N[wr]!==fe[wr]}var Ie,Fe=Z.fieldNames;if(Te("fieldNames")&&(Fe=(0,Ce.w$)(fe.fieldNames),te.fieldNames=Fe),Te("treeData")?Ie=fe.treeData:Te("children")&&((0,m.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ie=(0,Ce.zn)(fe.children)),Ie){te.treeData=Ie;var ze=(0,Ce.I8)(Ie,{fieldNames:Fe});te.keyEntities=(0,Me.Z)((0,De.Z)({},P,pe),ze.keyEntities)}var pt=te.keyEntities||Z.keyEntities;if(Te("expandedKeys")||N&&Te("autoExpandParent"))te.expandedKeys=fe.autoExpandParent||!N&&fe.defaultExpandParent?(0,We.r7)(fe.expandedKeys,pt):fe.expandedKeys;else if(!N&&fe.defaultExpandAll){var $e=(0,Me.Z)({},pt);delete $e[P],te.expandedKeys=Object.keys($e).map(function(wr){return $e[wr].key})}else!N&&fe.defaultExpandedKeys&&(te.expandedKeys=fe.autoExpandParent||fe.defaultExpandParent?(0,We.r7)(fe.defaultExpandedKeys,pt):fe.defaultExpandedKeys);if(te.expandedKeys||delete te.expandedKeys,Ie||te.expandedKeys){var tt=(0,Ce.oH)(Ie||Z.treeData,te.expandedKeys||Z.expandedKeys,Fe);te.flattenNodes=tt}if(fe.selectable&&(Te("selectedKeys")?te.selectedKeys=(0,We.BT)(fe.selectedKeys,fe):!N&&fe.defaultSelectedKeys&&(te.selectedKeys=(0,We.BT)(fe.defaultSelectedKeys,fe))),fe.checkable){var ct;if(Te("checkedKeys")?ct=(0,We.E6)(fe.checkedKeys)||{}:!N&&fe.defaultCheckedKeys?ct=(0,We.E6)(fe.defaultCheckedKeys)||{}:Ie&&(ct=(0,We.E6)(fe.checkedKeys)||{checkedKeys:Z.checkedKeys,halfCheckedKeys:Z.halfCheckedKeys}),ct){var Ge=ct,Ke=Ge.checkedKeys,Bt=Ke===void 0?[]:Ke,Vt=Ge.halfCheckedKeys,Mt=Vt===void 0?[]:Vt;if(!fe.checkStrictly){var mr=(0,Cr.S)(Bt,!0,pt);Bt=mr.checkedKeys,Mt=mr.halfCheckedKeys}te.checkedKeys=Bt,te.halfCheckedKeys=Mt}}return Te("loadedKeys")&&(te.loadedKeys=fe.loadedKeys),te}}]),h}(S.Component);_r.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:F,allowDrop:function(){return!0},expandAction:!1},_r.TreeNode=J.Z;var Se=_r,Nt=Se},35654:function(bn,Zt,g){"use strict";g.d(Zt,{BT:function(){return S},E6:function(){return H},L0:function(){return o},OM:function(){return m},_5:function(){return n},r7:function(){return V},wA:function(){return p},yx:function(){return L}});var we=g(19127),De=g(20135),se=g(48736),Me=g(59301),ie=g(39417),Y=g(67841),O=g(71430),I=null;function n(ee,B){if(!ee)return[];var G=ee.slice(),le=G.indexOf(B);return le>=0&&G.splice(le,1),G}function o(ee,B){var G=(ee||[]).slice();return G.indexOf(B)===-1&&G.push(B),G}function L(ee){return ee.split("-")}function p(ee,B){var G=[],le=(0,Y.Z)(B,ee);function J(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(Ce){var Re=Ce.key,ae=Ce.children;G.push(Re),J(ae)})}return J(le.children),G}function a(ee){if(ee.parent){var B=L(ee.pos);return Number(B[B.length-1])===ee.parent.children.length-1}return!1}function A(ee){var B=L(ee.pos);return Number(B[B.length-1])===0}function m(ee,B,G,le,J,be,Ce,Re,ae,me){var T,Ee=ee.clientX,oe=ee.clientY,he=ee.target.getBoundingClientRect(),ve=he.top,_=he.height,P=(me==="rtl"?-1:1)*(((J==null?void 0:J.x)||0)-Ee),X=(P-12)/le,pe=(0,Y.Z)(Re,G.props.eventKey);if(oe<ve+_/2){var Je=Ce.findIndex(function(Nt){return Nt.key===pe.key}),at=Je<=0?0:Je-1,nt=Ce[at].key;pe=(0,Y.Z)(Re,nt)}var Lt=pe.key,ur=pe,Jt=pe.key,We=0,Cr=0;if(!ae.includes(Lt))for(var Er=0;Er<X&&a(pe);Er+=1)pe=pe.parent,Cr+=1;var Kr=B.props.data,_r=pe.node,Se=!0;return A(pe)&&pe.level===0&&oe<ve+_/2&&be({dragNode:Kr,dropNode:_r,dropPosition:-1})&&pe.key===G.props.eventKey?We=-1:(ur.children||[]).length&&ae.includes(Jt)?be({dragNode:Kr,dropNode:_r,dropPosition:0})?We=0:Se=!1:Cr===0?X>-1.5?be({dragNode:Kr,dropNode:_r,dropPosition:1})?We=1:Se=!1:be({dragNode:Kr,dropNode:_r,dropPosition:0})?We=0:be({dragNode:Kr,dropNode:_r,dropPosition:1})?We=1:Se=!1:be({dragNode:Kr,dropNode:_r,dropPosition:1})?We=1:Se=!1,{dropPosition:We,dropLevelOffset:Cr,dropTargetKey:pe.key,dropTargetPos:pe.pos,dragOverNodeKey:Jt,dropContainerKey:We===0?null:((T=pe.parent)===null||T===void 0?void 0:T.key)||null,dropAllowed:Se}}function S(ee,B){if(ee){var G=B.multiple;return G?ee.slice():ee.length?[ee[0]]:ee}}var $=function(B){return B};function F(ee,B){if(!ee)return[];var G=B||{},le=G.processProps,J=le===void 0?$:le,be=Array.isArray(ee)?ee:[ee];return be.map(function(Ce){var Re=Ce.children,ae=_objectWithoutProperties(Ce,I),me=F(Re,B);return React.createElement(TreeNode,_extends({key:ae.key},J(ae)),me)})}function H(ee){if(!ee)return null;var B;if(Array.isArray(ee))B={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,De.Z)(ee)==="object")B={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return B}function V(ee,B){var G=new Set;function le(J){if(!G.has(J)){var be=(0,Y.Z)(B,J);if(be){G.add(J);var Ce=be.parent,Re=be.node;Re.disabled||Ce&&le(Ce.key)}}}return(ee||[]).forEach(function(J){le(J)}),(0,we.Z)(G)}},90782:function(bn,Zt,g){"use strict";g.d(Zt,{S:function(){return O}});var we=g(48736),De=g(67841);function se(I,n){var o=new Set;return I.forEach(function(L){n.has(L)||o.add(L)}),o}function Me(I){var n=I||{},o=n.disabled,L=n.disableCheckbox,p=n.checkable;return!!(o||L)||p===!1}function ie(I,n,o,L){for(var p=new Set(I),a=new Set,A=0;A<=o;A+=1){var m=n.get(A)||new Set;m.forEach(function(H){var V=H.key,ee=H.node,B=H.children,G=B===void 0?[]:B;p.has(V)&&!L(ee)&&G.filter(function(le){return!L(le.node)}).forEach(function(le){p.add(le.key)})})}for(var S=new Set,$=o;$>=0;$-=1){var F=n.get($)||new Set;F.forEach(function(H){var V=H.parent,ee=H.node;if(!(L(ee)||!H.parent||S.has(H.parent.key))){if(L(H.parent.node)){S.add(V.key);return}var B=!0,G=!1;(V.children||[]).filter(function(le){return!L(le.node)}).forEach(function(le){var J=le.key,be=p.has(J);B&&!be&&(B=!1),!G&&(be||a.has(J))&&(G=!0)}),B&&p.add(V.key),G&&a.add(V.key),S.add(V.key)}})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(se(a,p))}}function Y(I,n,o,L,p){for(var a=new Set(I),A=new Set(n),m=0;m<=L;m+=1){var S=o.get(m)||new Set;S.forEach(function(V){var ee=V.key,B=V.node,G=V.children,le=G===void 0?[]:G;!a.has(ee)&&!A.has(ee)&&!p(B)&&le.filter(function(J){return!p(J.node)}).forEach(function(J){a.delete(J.key)})})}A=new Set;for(var $=new Set,F=L;F>=0;F-=1){var H=o.get(F)||new Set;H.forEach(function(V){var ee=V.parent,B=V.node;if(!(p(B)||!V.parent||$.has(V.parent.key))){if(p(V.parent.node)){$.add(ee.key);return}var G=!0,le=!1;(ee.children||[]).filter(function(J){return!p(J.node)}).forEach(function(J){var be=J.key,Ce=a.has(be);G&&!Ce&&(G=!1),!le&&(Ce||A.has(be))&&(le=!0)}),G||a.delete(ee.key),le&&A.add(ee.key),$.add(ee.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(se(A,a))}}function O(I,n,o,L){var p=[],a;L?a=L:a=Me;var A=new Set(I.filter(function(F){var H=!!(0,De.Z)(o,F);return H||p.push(F),H})),m=new Map,S=0;Object.keys(o).forEach(function(F){var H=o[F],V=H.level,ee=m.get(V);ee||(ee=new Set,m.set(V,ee)),ee.add(H),S=Math.max(S,V)}),(0,we.ZP)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(F){return"'".concat(F,"'")}).join(", ")));var $;return n===!0?$=ie(A,m,S,a):$=Y(A,n.halfCheckedKeys,m,S,a),$}},67841:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return we}});function we(De,se){return De[se]}},71430:function(bn,Zt,g){"use strict";g.d(Zt,{F:function(){return V},H8:function(){return H},I8:function(){return F},km:function(){return p},oH:function(){return S},w$:function(){return a},zn:function(){return m}});var we=g(20135),De=g(19127),se=g(44127),Me=g(6620),ie=g(11592),Y=g(2738),O=g(48736),I=g(67841),n=["children"];function o(ee,B){return"".concat(ee,"-").concat(B)}function L(ee){return ee&&ee.type&&ee.type.isTreeNode}function p(ee,B){return ee!=null?ee:B}function a(ee){var B=ee||{},G=B.title,le=B._title,J=B.key,be=B.children,Ce=G||"title";return{title:Ce,_title:le||[Ce],key:J||"key",children:be||"children"}}function A(ee,B){var G=new Map;function le(J){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(J||[]).forEach(function(Ce){var Re=Ce[B.key],ae=Ce[B.children];warning(Re!=null,"Tree node must have a certain key: [".concat(be).concat(Re,"]"));var me=String(Re);warning(!G.has(me)||Re===null||Re===void 0,"Same 'key' exist in the Tree: ".concat(me)),G.set(me,!0),le(ae,"".concat(be).concat(me," > "))})}le(ee)}function m(ee){function B(G){var le=(0,ie.Z)(G);return le.map(function(J){if(!L(J))return(0,O.ZP)(!J,"Tree/TreeNode can only accept TreeNode as children."),null;var be=J.key,Ce=J.props,Re=Ce.children,ae=(0,Me.Z)(Ce,n),me=(0,se.Z)({key:be},ae),T=B(Re);return T.length&&(me.children=T),me}).filter(function(J){return J})}return B(ee)}function S(ee,B,G){var le=a(G),J=le._title,be=le.key,Ce=le.children,Re=new Set(B===!0?[]:B),ae=[];function me(T){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(oe,he){for(var ve=o(Ee?Ee.pos:"0",he),_=p(oe[be],ve),P,X=0;X<J.length;X+=1){var pe=J[X];if(oe[pe]!==void 0){P=oe[pe];break}}var Je=(0,se.Z)((0,se.Z)({},(0,Y.Z)(oe,[].concat((0,De.Z)(J),[be,Ce]))),{},{title:P,key:_,parent:Ee,pos:ve,children:null,data:oe,isStart:[].concat((0,De.Z)(Ee?Ee.isStart:[]),[he===0]),isEnd:[].concat((0,De.Z)(Ee?Ee.isEnd:[]),[he===T.length-1])});return ae.push(Je),B===!0||Re.has(_)?Je.children=me(oe[Ce]||[],Je):Je.children=[],Je})}return me(ee),ae}function $(ee,B,G){var le={};(0,we.Z)(G)==="object"?le=G:le={externalGetKey:G},le=le||{};var J=le,be=J.childrenPropName,Ce=J.externalGetKey,Re=J.fieldNames,ae=a(Re),me=ae.key,T=ae.children,Ee=be||T,oe;Ce?typeof Ce=="string"?oe=function(_){return _[Ce]}:typeof Ce=="function"&&(oe=function(_){return Ce(_)}):oe=function(_,P){return p(_[me],P)};function he(ve,_,P,X){var pe=ve?ve[Ee]:ee,Je=ve?o(P.pos,_):"0",at=ve?[].concat((0,De.Z)(X),[ve]):[];if(ve){var nt=oe(ve,Je),Lt={node:ve,index:_,pos:Je,key:nt,parentPos:P.node?P.pos:null,level:P.level+1,nodes:at};B(Lt)}pe&&pe.forEach(function(ur,Jt){he(ur,Jt,{node:ve,pos:Je,level:P?P.level+1:-1},at)})}he(null)}function F(ee){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=B.initWrapper,le=B.processEntity,J=B.onProcessFinished,be=B.externalGetKey,Ce=B.childrenPropName,Re=B.fieldNames,ae=arguments.length>2?arguments[2]:void 0,me=be||ae,T={},Ee={},oe={posEntities:T,keyEntities:Ee};return G&&(oe=G(oe)||oe),$(ee,function(he){var ve=he.node,_=he.index,P=he.pos,X=he.key,pe=he.parentPos,Je=he.level,at=he.nodes,nt={node:ve,nodes:at,index:_,key:X,pos:P,level:Je},Lt=p(X,P);T[P]=nt,Ee[Lt]=nt,nt.parent=T[pe],nt.parent&&(nt.parent.children=nt.parent.children||[],nt.parent.children.push(nt)),le&&le(nt,oe)},{externalGetKey:me,childrenPropName:Ce,fieldNames:Re}),J&&J(oe),oe}function H(ee,B){var G=B.expandedKeys,le=B.selectedKeys,J=B.loadedKeys,be=B.loadingKeys,Ce=B.checkedKeys,Re=B.halfCheckedKeys,ae=B.dragOverNodeKey,me=B.dropPosition,T=B.keyEntities,Ee=(0,I.Z)(T,ee),oe={eventKey:ee,expanded:G.indexOf(ee)!==-1,selected:le.indexOf(ee)!==-1,loaded:J.indexOf(ee)!==-1,loading:be.indexOf(ee)!==-1,checked:Ce.indexOf(ee)!==-1,halfChecked:Re.indexOf(ee)!==-1,pos:String(Ee?Ee.pos:""),dragOver:ae===ee&&me===0,dragOverGapTop:ae===ee&&me===-1,dragOverGapBottom:ae===ee&&me===1};return oe}function V(ee){var B=ee.data,G=ee.expanded,le=ee.selected,J=ee.checked,be=ee.loaded,Ce=ee.loading,Re=ee.halfChecked,ae=ee.dragOver,me=ee.dragOverGapTop,T=ee.dragOverGapBottom,Ee=ee.pos,oe=ee.active,he=ee.eventKey,ve=(0,se.Z)((0,se.Z)({},B),{},{expanded:G,selected:le,checked:J,loaded:be,loading:Ce,halfChecked:Re,dragOver:ae,dragOverGapTop:me,dragOverGapBottom:T,pos:Ee,active:oe,key:he});return"props"in ve||Object.defineProperty(ve,"props",{get:function(){return(0,O.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),ve}},8224:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return De}});var we=g(4676);function De(se,Me,ie,Y){var O=we.unstable_batchedUpdates?function(n){we.unstable_batchedUpdates(ie,n)}:ie;return se!=null&&se.addEventListener&&se.addEventListener(Me,O,Y),{remove:function(){se!=null&&se.removeEventListener&&se.removeEventListener(Me,O,Y)}}}},55468:function(bn,Zt,g){"use strict";g.d(Zt,{g1:function(){return L},os:function(){return a}});var we=/margin|padding|width|height|max|min|offset/,De={left:!0,top:!0},se={cssFloat:1,styleFloat:1,float:1};function Me(A){return A.nodeType===1?A.ownerDocument.defaultView.getComputedStyle(A,null):{}}function ie(A,m,S){if(m=m.toLowerCase(),S==="auto"){if(m==="height")return A.offsetHeight;if(m==="width")return A.offsetWidth}return m in De||(De[m]=we.test(m)),De[m]?parseFloat(S)||0:S}function Y(A,m){var S=arguments.length,$=Me(A);return m=se[m]?"cssFloat"in A.style?"cssFloat":"styleFloat":m,S===1?$:ie(A,m,$[m]||A.style[m])}function O(A,m,S){var $=arguments.length;if(m=se[m]?"cssFloat"in A.style?"cssFloat":"styleFloat":m,$===3)return typeof S=="number"&&we.test(m)&&(S="".concat(S,"px")),A.style[m]=S,S;for(var F in m)m.hasOwnProperty(F)&&O(A,F,m[F]);return Me(A)}function I(A){return A===document.body?document.documentElement.clientWidth:A.offsetWidth}function n(A){return A===document.body?window.innerHeight||document.documentElement.clientHeight:A.offsetHeight}function o(){var A=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:A,height:m}}function L(){var A=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:A,height:m}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function a(A){var m=A.getBoundingClientRect(),S=document.documentElement;return{left:m.left+(window.pageXOffset||S.scrollLeft)-(S.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||S.scrollTop)-(S.clientTop||document.body.clientTop||0)}}},24514:function(bn,Zt,g){"use strict";g.d(Zt,{G:function(){return Me}});var we=g(47273),De=function(Y){if((0,we.Z)()&&window.document.documentElement){var O=Array.isArray(Y)?Y:[Y],I=window.document.documentElement;return O.some(function(n){return n in I.style})}return!1},se=function(Y,O){if(!De(Y))return!1;var I=document.createElement("div"),n=I.style[Y];return I.style[Y]=O,I.style[Y]!==n};function Me(ie,Y){return!Array.isArray(ie)&&Y!==void 0?se(ie,Y):De(ie)}},49658:function(bn,Zt){"use strict";Zt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var g=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(g)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(g==null?void 0:g.substr(0,4))}},24916:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return _r}});var we=g(96663),De=g(20135),se=g(44127),Me=g(90493),ie=g(72071),Y=g(6620),O=g(92310),I=g.n(O),n=g(29301),o=g(70425),L=g(34280),p=g(59301),a=g(4676),A=p.forwardRef(function(Se,Nt){var z=Se.height,v=Se.offsetY,h=Se.offsetX,D=Se.children,fe=Se.prefixCls,Z=Se.onInnerResize,N=Se.innerProps,te=Se.rtl,Te=Se.extra,Ie={},Fe={display:"flex",flexDirection:"column"};return v!==void 0&&(Ie={height:z,position:"relative",overflow:"hidden"},Fe=(0,se.Z)((0,se.Z)({},Fe),{},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({transform:"translateY(".concat(v,"px)")},te?"marginRight":"marginLeft",-h),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:Ie},p.createElement(n.Z,{onResize:function(pt){var $e=pt.offsetHeight;$e&&Z&&Z()}},p.createElement("div",(0,we.Z)({style:Fe,className:I()((0,Me.Z)({},"".concat(fe,"-holder-inner"),fe)),ref:Nt},N),D,Te)))});A.displayName="Filler";var m=A;function S(Se){var Nt=Se.children,z=Se.setRef,v=p.useCallback(function(h){z(h)},[]);return p.cloneElement(Nt,{ref:v})}function $(Se,Nt,z,v,h,D,fe,Z){var N=Z.getKey;return Se.slice(Nt,z+1).map(function(te,Te){var Ie=Nt+Te,Fe=fe(te,Ie,{style:{width:v},offsetX:h}),ze=N(te);return p.createElement(S,{key:ze,setRef:function($e){return D(te,$e)}},Fe)})}function F(Se,Nt,z,v){var h=z-Se,D=Nt-z,fe=Math.min(h,D)*2;if(v<=fe){var Z=Math.floor(v/2);return v%2?z+Z+1:z-Z}return h>D?z-(v-D):z+(v-h)}function H(Se,Nt,z){var v=Se.length,h=Nt.length,D,fe;if(v===0&&h===0)return null;v<h?(D=Se,fe=Nt):(D=Nt,fe=Se);var Z={__EMPTY_ITEM__:!0};function N(pt){return pt!==void 0?z(pt):Z}for(var te=null,Te=Math.abs(v-h)!==1,Ie=0;Ie<fe.length;Ie+=1){var Fe=N(D[Ie]),ze=N(fe[Ie]);if(Fe!==ze){te=Ie,Te=Te||Fe!==N(fe[Ie+1]);break}}return te===null?null:{index:te,multiple:Te}}function V(Se,Nt,z){var v=p.useState(Se),h=(0,ie.Z)(v,2),D=h[0],fe=h[1],Z=p.useState(null),N=(0,ie.Z)(Z,2),te=N[0],Te=N[1];return p.useEffect(function(){var Ie=H(D||[],Se||[],Nt);(Ie==null?void 0:Ie.index)!==void 0&&(z==null||z(Ie.index),Te(Se[Ie.index])),fe(Se)},[Se]),[te]}var ee=g(16089),B=(typeof navigator=="undefined"?"undefined":(0,De.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),G=B,le=function(Se,Nt,z,v){var h=(0,p.useRef)(!1),D=(0,p.useRef)(null);function fe(){clearTimeout(D.current),h.current=!0,D.current=setTimeout(function(){h.current=!1},50)}var Z=(0,p.useRef)({top:Se,bottom:Nt,left:z,right:v});return Z.current.top=Se,Z.current.bottom=Nt,Z.current.left=z,Z.current.right=v,function(N,te){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ie=N?te<0&&Z.current.left||te>0&&Z.current.right:te<0&&Z.current.top||te>0&&Z.current.bottom;return Te&&Ie?(clearTimeout(D.current),h.current=!1):(!Ie||h.current)&&fe(),!h.current&&Ie}};function J(Se,Nt,z,v,h,D,fe){var Z=(0,p.useRef)(0),N=(0,p.useRef)(null),te=(0,p.useRef)(null),Te=(0,p.useRef)(!1),Ie=le(Nt,z,v,h);function Fe(Ge,Ke){if(ee.Z.cancel(N.current),!Ie(!1,Ke)){var Bt=Ge;if(!Bt._virtualHandled)Bt._virtualHandled=!0;else return;Z.current+=Ke,te.current=Ke,G||Bt.preventDefault(),N.current=(0,ee.Z)(function(){var Vt=Te.current?10:1;fe(Z.current*Vt,!1),Z.current=0})}}function ze(Ge,Ke){fe(Ke,!0),G||Ge.preventDefault()}var pt=(0,p.useRef)(null),$e=(0,p.useRef)(null);function tt(Ge){if(Se){ee.Z.cancel($e.current),$e.current=(0,ee.Z)(function(){pt.current=null},2);var Ke=Ge.deltaX,Bt=Ge.deltaY,Vt=Ge.shiftKey,Mt=Ke,mr=Bt;(pt.current==="sx"||!pt.current&&Vt&&Bt&&!Ke)&&(Mt=Bt,mr=0,pt.current="sx");var wr=Math.abs(Mt),re=Math.abs(mr);pt.current===null&&(pt.current=D&&wr>re?"x":"y"),pt.current==="y"?Fe(Ge,mr):ze(Ge,Mt)}}function ct(Ge){Se&&(Te.current=Ge.detail===te.current)}return[tt,ct]}function be(Se,Nt,z,v){var h=p.useMemo(function(){return[new Map,[]]},[Se,z.id,v]),D=(0,ie.Z)(h,2),fe=D[0],Z=D[1],N=function(Te){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te,Fe=fe.get(Te),ze=fe.get(Ie);if(Fe===void 0||ze===void 0)for(var pt=Se.length,$e=Z.length;$e<pt;$e+=1){var tt,ct=Se[$e],Ge=Nt(ct);fe.set(Ge,$e);var Ke=(tt=z.get(Ge))!==null&&tt!==void 0?tt:v;if(Z[$e]=(Z[$e-1]||0)+Ke,Ge===Te&&(Fe=$e),Ge===Ie&&(ze=$e),Fe!==void 0&&ze!==void 0)break}return{top:Z[Fe-1]||0,bottom:Z[ze]}};return N}var Ce=g(52884),Re=g(95727),ae=function(){function Se(){(0,Ce.Z)(this,Se),(0,Me.Z)(this,"maps",void 0),(0,Me.Z)(this,"id",0),(0,Me.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Re.Z)(Se,[{key:"set",value:function(z,v){this.maps[z]=v,this.id+=1,this.diffKeys.add(z)}},{key:"get",value:function(z){return this.maps[z]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Se}(),me=ae;function T(Se){var Nt=parseFloat(Se);return isNaN(Nt)?0:Nt}function Ee(Se,Nt,z){var v=p.useState(0),h=(0,ie.Z)(v,2),D=h[0],fe=h[1],Z=(0,p.useRef)(new Map),N=(0,p.useRef)(new me),te=(0,p.useRef)(0);function Te(){te.current+=1}function Ie(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te();var pt=function(){var ct=!1;Z.current.forEach(function(Ge,Ke){if(Ge&&Ge.offsetParent){var Bt=Ge.offsetHeight,Vt=getComputedStyle(Ge),Mt=Vt.marginTop,mr=Vt.marginBottom,wr=T(Mt),re=T(mr),ue=Bt+wr+re;N.current.get(Ke)!==ue&&(N.current.set(Ke,ue),ct=!0)}}),ct&&fe(function(Ge){return Ge+1})};if(ze)pt();else{te.current+=1;var $e=te.current;Promise.resolve().then(function(){$e===te.current&&pt()})}}function Fe(ze,pt){var $e=Se(ze),tt=Z.current.get($e);pt?(Z.current.set($e,pt),Ie()):Z.current.delete($e),!tt!=!pt&&(pt?Nt==null||Nt(ze):z==null||z(ze))}return(0,p.useEffect)(function(){return Te},[]),[Fe,Ie,N.current,D]}var oe=14/15;function he(Se,Nt,z){var v=(0,p.useRef)(!1),h=(0,p.useRef)(0),D=(0,p.useRef)(0),fe=(0,p.useRef)(null),Z=(0,p.useRef)(null),N,te=function(ze){if(v.current){var pt=Math.ceil(ze.touches[0].pageX),$e=Math.ceil(ze.touches[0].pageY),tt=h.current-pt,ct=D.current-$e,Ge=Math.abs(tt)>Math.abs(ct);Ge?h.current=pt:D.current=$e;var Ke=z(Ge,Ge?tt:ct,!1,ze);Ke&&ze.preventDefault(),clearInterval(Z.current),Ke&&(Z.current=setInterval(function(){Ge?tt*=oe:ct*=oe;var Bt=Math.floor(Ge?tt:ct);(!z(Ge,Bt,!0)||Math.abs(Bt)<=.1)&&clearInterval(Z.current)},16))}},Te=function(){v.current=!1,N()},Ie=function(ze){N(),ze.touches.length===1&&!v.current&&(v.current=!0,h.current=Math.ceil(ze.touches[0].pageX),D.current=Math.ceil(ze.touches[0].pageY),fe.current=ze.target,fe.current.addEventListener("touchmove",te,{passive:!1}),fe.current.addEventListener("touchend",Te,{passive:!0}))};N=function(){fe.current&&(fe.current.removeEventListener("touchmove",te),fe.current.removeEventListener("touchend",Te))},(0,L.Z)(function(){return Se&&Nt.current.addEventListener("touchstart",Ie,{passive:!0}),function(){var Fe;(Fe=Nt.current)===null||Fe===void 0||Fe.removeEventListener("touchstart",Ie),N(),clearInterval(Z.current)}},[Se])}function ve(Se){return Math.floor(Math.pow(Se,.5))}function _(Se,Nt){var z="touches"in Se?Se.touches[0]:Se;return z[Nt?"pageX":"pageY"]-window[Nt?"scrollX":"scrollY"]}function P(Se,Nt,z){p.useEffect(function(){var v=Nt.current;if(Se&&v){var h=!1,D,fe,Z=function(){ee.Z.cancel(D)},N=function Fe(){Z(),D=(0,ee.Z)(function(){z(fe),Fe()})},te=function(ze){if(!ze.target.draggable){var pt=ze;pt._virtualHandled||(pt._virtualHandled=!0,h=!0)}},Te=function(){h=!1,Z()},Ie=function(ze){if(h){var pt=_(ze,!1),$e=v.getBoundingClientRect(),tt=$e.top,ct=$e.bottom;if(pt<=tt){var Ge=tt-pt;fe=-ve(Ge),N()}else if(pt>=ct){var Ke=pt-ct;fe=ve(Ke),N()}else Z()}};return v.addEventListener("mousedown",te),v.ownerDocument.addEventListener("mouseup",Te),v.ownerDocument.addEventListener("mousemove",Ie),function(){v.removeEventListener("mousedown",te),v.ownerDocument.removeEventListener("mouseup",Te),v.ownerDocument.removeEventListener("mousemove",Ie),Z()}}},[Se])}var X=10;function pe(Se,Nt,z,v,h,D,fe,Z){var N=p.useRef(),te=p.useState(null),Te=(0,ie.Z)(te,2),Ie=Te[0],Fe=Te[1];return(0,L.Z)(function(){if(Ie&&Ie.times<X){if(!Se.current){Fe(function(At){return(0,se.Z)({},At)});return}D();var ze=Ie.targetAlign,pt=Ie.originAlign,$e=Ie.index,tt=Ie.offset,ct=Se.current.clientHeight,Ge=!1,Ke=ze,Bt=null;if(ct){for(var Vt=ze||pt,Mt=0,mr=0,wr=0,re=Math.min(Nt.length-1,$e),ue=0;ue<=re;ue+=1){var rr=h(Nt[ue]);mr=Mt;var Qe=z.get(rr);wr=mr+(Qe===void 0?v:Qe),Mt=wr}for(var ot=Vt==="top"?tt:ct-tt,Yr=re;Yr>=0;Yr-=1){var It=h(Nt[Yr]),zt=z.get(It);if(zt===void 0){Ge=!0;break}if(ot-=zt,ot<=0)break}switch(Vt){case"top":Bt=mr-tt;break;case"bottom":Bt=wr-ct+tt;break;default:{var qt=Se.current.scrollTop,qe=qt+ct;mr<qt?Ke="top":wr>qe&&(Ke="bottom")}}Bt!==null&&fe(Bt),Bt!==Ie.lastTop&&(Ge=!0)}Ge&&Fe((0,se.Z)((0,se.Z)({},Ie),{},{times:Ie.times+1,targetAlign:Ke,lastTop:Bt}))}},[Ie,Se.current]),function(ze){if(ze==null){Z();return}if(ee.Z.cancel(N.current),typeof ze=="number")fe(ze);else if(ze&&(0,De.Z)(ze)==="object"){var pt,$e=ze.align;"index"in ze?pt=ze.index:pt=Nt.findIndex(function(Ge){return h(Ge)===ze.key});var tt=ze.offset,ct=tt===void 0?0:tt;Fe({times:0,index:pt,offset:ct,originAlign:$e})}}}var Je=p.forwardRef(function(Se,Nt){var z=Se.prefixCls,v=Se.rtl,h=Se.scrollOffset,D=Se.scrollRange,fe=Se.onStartMove,Z=Se.onStopMove,N=Se.onScroll,te=Se.horizontal,Te=Se.spinSize,Ie=Se.containerSize,Fe=Se.style,ze=Se.thumbStyle,pt=Se.showScrollBar,$e=p.useState(!1),tt=(0,ie.Z)($e,2),ct=tt[0],Ge=tt[1],Ke=p.useState(null),Bt=(0,ie.Z)(Ke,2),Vt=Bt[0],Mt=Bt[1],mr=p.useState(null),wr=(0,ie.Z)(mr,2),re=wr[0],ue=wr[1],rr=!v,Qe=p.useRef(),ot=p.useRef(),Yr=p.useState(pt),It=(0,ie.Z)(Yr,2),zt=It[0],qt=It[1],qe=p.useRef(),At=function(){pt===!0||pt===!1||(clearTimeout(qe.current),qt(!0),qe.current=setTimeout(function(){qt(!1)},3e3))},dt=D-Ie||0,Gt=Ie-Te||0,Pe=p.useMemo(function(){if(h===0||dt===0)return 0;var Yt=h/dt;return Yt*Gt},[h,dt,Gt]),an=function(jr){jr.stopPropagation(),jr.preventDefault()},kt=p.useRef({top:Pe,dragging:ct,pageY:Vt,startTop:re});kt.current={top:Pe,dragging:ct,pageY:Vt,startTop:re};var kn=function(jr){Ge(!0),Mt(_(jr,te)),ue(kt.current.top),fe(),jr.stopPropagation(),jr.preventDefault()};p.useEffect(function(){var Yt=function(_t){_t.preventDefault()},jr=Qe.current,Jr=ot.current;return jr.addEventListener("touchstart",Yt,{passive:!1}),Jr.addEventListener("touchstart",kn,{passive:!1}),function(){jr.removeEventListener("touchstart",Yt),Jr.removeEventListener("touchstart",kn)}},[]);var Xn=p.useRef();Xn.current=dt;var yi=p.useRef();yi.current=Gt,p.useEffect(function(){if(ct){var Yt,jr=function(_t){var Br=kt.current,Lr=Br.dragging,In=Br.pageY,tn=Br.startTop;ee.Z.cancel(Yt);var Bn=Qe.current.getBoundingClientRect(),gn=Ie/(te?Bn.width:Bn.height);if(Lr){var Qn=(_(_t,te)-In)*gn,ei=tn;!rr&&te?ei-=Qn:ei+=Qn;var Hr=Xn.current,zr=yi.current,Tn=zr?ei/zr:0,Sn=Math.ceil(Tn*Hr);Sn=Math.max(Sn,0),Sn=Math.min(Sn,Hr),Yt=(0,ee.Z)(function(){N(Sn,te)})}},Jr=function(){Ge(!1),Z()};return window.addEventListener("mousemove",jr,{passive:!0}),window.addEventListener("touchmove",jr,{passive:!0}),window.addEventListener("mouseup",Jr,{passive:!0}),window.addEventListener("touchend",Jr,{passive:!0}),function(){window.removeEventListener("mousemove",jr),window.removeEventListener("touchmove",jr),window.removeEventListener("mouseup",Jr),window.removeEventListener("touchend",Jr),ee.Z.cancel(Yt)}}},[ct]),p.useEffect(function(){return At(),function(){clearTimeout(qe.current)}},[h]),p.useImperativeHandle(Nt,function(){return{delayHidden:At}});var ji="".concat(z,"-scrollbar"),On={position:"absolute",visibility:zt?null:"hidden"},$n={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return te?(On.height=8,On.left=0,On.right=0,On.bottom=0,$n.height="100%",$n.width=Te,rr?$n.left=Pe:$n.right=Pe):(On.width=8,On.top=0,On.bottom=0,rr?On.right=0:On.left=0,$n.width="100%",$n.height=Te,$n.top=Pe),p.createElement("div",{ref:Qe,className:I()(ji,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(ji,"-horizontal"),te),"".concat(ji,"-vertical"),!te),"".concat(ji,"-visible"),zt)),style:(0,se.Z)((0,se.Z)({},On),Fe),onMouseDown:an,onMouseMove:At},p.createElement("div",{ref:ot,className:I()("".concat(ji,"-thumb"),(0,Me.Z)({},"".concat(ji,"-thumb-moving"),ct)),style:(0,se.Z)((0,se.Z)({},$n),ze),onMouseDown:kn}))}),at=Je,nt=20;function Lt(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=Se/Nt*Se;return isNaN(z)&&(z=0),z=Math.max(z,nt),Math.floor(z)}var ur=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Jt=[],We={overflowY:"auto",overflowAnchor:"none"};function Cr(Se,Nt){var z=Se.prefixCls,v=z===void 0?"rc-virtual-list":z,h=Se.className,D=Se.height,fe=Se.itemHeight,Z=Se.fullHeight,N=Z===void 0?!0:Z,te=Se.style,Te=Se.data,Ie=Se.children,Fe=Se.itemKey,ze=Se.virtual,pt=Se.direction,$e=Se.scrollWidth,tt=Se.component,ct=tt===void 0?"div":tt,Ge=Se.onScroll,Ke=Se.onVirtualScroll,Bt=Se.onVisibleChange,Vt=Se.innerProps,Mt=Se.extraRender,mr=Se.styles,wr=Se.showScrollBar,re=wr===void 0?"optional":wr,ue=(0,Y.Z)(Se,ur),rr=p.useCallback(function(_i){return typeof Fe=="function"?Fe(_i):_i==null?void 0:_i[Fe]},[Fe]),Qe=Ee(rr,null,null),ot=(0,ie.Z)(Qe,4),Yr=ot[0],It=ot[1],zt=ot[2],qt=ot[3],qe=!!(ze!==!1&&D&&fe),At=p.useMemo(function(){return Object.values(zt.maps).reduce(function(_i,ai){return _i+ai},0)},[zt.id,zt.maps]),dt=qe&&Te&&(Math.max(fe*Te.length,At)>D||!!$e),Gt=pt==="rtl",Pe=I()(v,(0,Me.Z)({},"".concat(v,"-rtl"),Gt),h),an=Te||Jt,kt=(0,p.useRef)(),kn=(0,p.useRef)(),Xn=(0,p.useRef)(),yi=(0,p.useState)(0),ji=(0,ie.Z)(yi,2),On=ji[0],$n=ji[1],Yt=(0,p.useState)(0),jr=(0,ie.Z)(Yt,2),Jr=jr[0],Ot=jr[1],_t=(0,p.useState)(!1),Br=(0,ie.Z)(_t,2),Lr=Br[0],In=Br[1],tn=function(){In(!0)},Bn=function(){In(!1)},gn={getKey:rr};function Qn(_i){$n(function(ai){var $i;typeof _i=="function"?$i=_i(ai):$i=_i;var ra=Ui($i);return kt.current.scrollTop=ra,ra})}var ei=(0,p.useRef)({start:0,end:an.length}),Hr=(0,p.useRef)(),zr=V(an,rr),Tn=(0,ie.Z)(zr,1),Sn=Tn[0];Hr.current=Sn;var jn=p.useMemo(function(){if(!qe)return{scrollHeight:void 0,start:0,end:an.length-1,offset:void 0};if(!dt){var _i;return{scrollHeight:((_i=kn.current)===null||_i===void 0?void 0:_i.offsetHeight)||0,start:0,end:an.length-1,offset:void 0}}for(var ai=0,$i,ra,Ea,xs=an.length,oi=0;oi<xs;oi+=1){var Ca=an[oi],ga=rr(Ca),Qa=zt.get(ga),_s=ai+(Qa===void 0?fe:Qa);_s>=On&&$i===void 0&&($i=oi,ra=ai),_s>On+D&&Ea===void 0&&(Ea=oi),ai=_s}return $i===void 0&&($i=0,ra=0,Ea=Math.ceil(D/fe)),Ea===void 0&&(Ea=an.length-1),Ea=Math.min(Ea+1,an.length-1),{scrollHeight:ai,start:$i,end:Ea,offset:ra}},[dt,qe,On,an,qt,D]),Vn=jn.scrollHeight,Mi=jn.start,Ai=jn.end,wn=jn.offset;ei.current.start=Mi,ei.current.end=Ai,p.useLayoutEffect(function(){var _i=zt.getRecord();if(_i.size===1){var ai=Array.from(_i)[0],$i=an[Mi];if($i){var ra=rr($i);if(ra===ai){var Ea=zt.get(ai),xs=Ea-fe;Qn(function(oi){return oi+xs})}}}zt.resetRecord()},[Vn]);var hr=p.useState({width:0,height:D}),br=(0,ie.Z)(hr,2),Fr=br[0],Zr=br[1],Ur=function(ai){Zr({width:ai.offsetWidth,height:ai.offsetHeight})},on=(0,p.useRef)(),en=(0,p.useRef)(),Hn=p.useMemo(function(){return Lt(Fr.width,$e)},[Fr.width,$e]),ti=p.useMemo(function(){return Lt(Fr.height,Vn)},[Fr.height,Vn]),ui=Vn-D,Ri=(0,p.useRef)(ui);Ri.current=ui;function Ui(_i){var ai=_i;return Number.isNaN(Ri.current)||(ai=Math.min(ai,Ri.current)),ai=Math.max(ai,0),ai}var Pi=On<=0,Tr=On>=ui,_n=Jr<=0,hn=Jr>=$e,hi=le(Pi,Tr,_n,hn),ii=function(){return{x:Gt?-Jr:Jr,y:On}},ri=(0,p.useRef)(ii()),bi=(0,o.useEvent)(function(_i){if(Ke){var ai=(0,se.Z)((0,se.Z)({},ii()),_i);(ri.current.x!==ai.x||ri.current.y!==ai.y)&&(Ke(ai),ri.current=ai)}});function Di(_i,ai){var $i=_i;ai?((0,a.flushSync)(function(){Ot($i)}),bi()):Qn($i)}function Bi(_i){var ai=_i.currentTarget.scrollTop;ai!==On&&Qn(ai),Ge==null||Ge(_i),bi()}var zi=function(ai){var $i=ai,ra=$e?$e-Fr.width:0;return $i=Math.max($i,0),$i=Math.min($i,ra),$i},ca=(0,o.useEvent)(function(_i,ai){ai?((0,a.flushSync)(function(){Ot(function($i){var ra=$i+(Gt?-_i:_i);return zi(ra)})}),bi()):Qn(function($i){var ra=$i+_i;return ra})}),xi=J(qe,Pi,Tr,_n,hn,!!$e,ca),vn=(0,ie.Z)(xi,2),jt=vn[0],Ln=vn[1];he(qe,kt,function(_i,ai,$i,ra){var Ea=ra;return hi(_i,ai,$i)?!1:!Ea||!Ea._virtualHandled?(Ea&&(Ea._virtualHandled=!0),jt({preventDefault:function(){},deltaX:_i?ai:0,deltaY:_i?0:ai}),!0):!1}),P(dt,kt,function(_i){Qn(function(ai){return ai+_i})}),(0,L.Z)(function(){function _i($i){var ra=Pi&&$i.detail<0,Ea=Tr&&$i.detail>0;qe&&!ra&&!Ea&&$i.preventDefault()}var ai=kt.current;return ai.addEventListener("wheel",jt,{passive:!1}),ai.addEventListener("DOMMouseScroll",Ln,{passive:!0}),ai.addEventListener("MozMousePixelScroll",_i,{passive:!1}),function(){ai.removeEventListener("wheel",jt),ai.removeEventListener("DOMMouseScroll",Ln),ai.removeEventListener("MozMousePixelScroll",_i)}},[qe,Pi,Tr]),(0,L.Z)(function(){if($e){var _i=zi(Jr);Ot(_i),bi({x:_i})}},[Fr.width,$e]);var Gn=function(){var ai,$i;(ai=on.current)===null||ai===void 0||ai.delayHidden(),($i=en.current)===null||$i===void 0||$i.delayHidden()},Ei=pe(kt,an,zt,fe,rr,function(){return It(!0)},Qn,Gn);p.useImperativeHandle(Nt,function(){return{nativeElement:Xn.current,getScrollInfo:ii,scrollTo:function(ai){function $i(ra){return ra&&(0,De.Z)(ra)==="object"&&("left"in ra||"top"in ra)}$i(ai)?(ai.left!==void 0&&Ot(zi(ai.left)),Ei(ai.top)):Ei(ai)}}}),(0,L.Z)(function(){if(Bt){var _i=an.slice(Mi,Ai+1);Bt(_i,an)}},[Mi,Ai,an]);var Qi=be(an,rr,zt,fe),da=Mt==null?void 0:Mt({start:Mi,end:Ai,virtual:dt,offsetX:Jr,offsetY:wn,rtl:Gt,getSize:Qi}),xa=$(an,Mi,Ai,$e,Jr,Yr,Ie,gn),Ji=null;D&&(Ji=(0,se.Z)((0,Me.Z)({},N?"height":"maxHeight",D),We),qe&&(Ji.overflowY="hidden",$e&&(Ji.overflowX="hidden"),Lr&&(Ji.pointerEvents="none")));var Sa={};return Gt&&(Sa.dir="rtl"),p.createElement("div",(0,we.Z)({ref:Xn,style:(0,se.Z)((0,se.Z)({},te),{},{position:"relative"}),className:Pe},Sa,ue),p.createElement(n.Z,{onResize:Ur},p.createElement(ct,{className:"".concat(v,"-holder"),style:Ji,ref:kt,onScroll:Bi,onMouseEnter:Gn},p.createElement(m,{prefixCls:v,height:Vn,offsetX:Jr,offsetY:wn,scrollWidth:$e,onInnerResize:It,ref:kn,innerProps:Vt,rtl:Gt,extra:da},xa))),dt&&Vn>D&&p.createElement(at,{ref:on,prefixCls:v,scrollOffset:On,scrollRange:Vn,rtl:Gt,onScroll:Di,onStartMove:tn,onStopMove:Bn,spinSize:ti,containerSize:Fr.height,style:mr==null?void 0:mr.verticalScrollBar,thumbStyle:mr==null?void 0:mr.verticalScrollBarThumb,showScrollBar:re}),dt&&$e>Fr.width&&p.createElement(at,{ref:en,prefixCls:v,scrollOffset:Jr,scrollRange:$e,rtl:Gt,onScroll:Di,onStartMove:tn,onStopMove:Bn,spinSize:Hn,containerSize:Fr.width,horizontal:!0,style:mr==null?void 0:mr.horizontalScrollBar,thumbStyle:mr==null?void 0:mr.horizontalScrollBarThumb,showScrollBar:re}))}var Er=p.forwardRef(Cr);Er.displayName="List";var Kr=Er,_r=Kr},83145:function(bn,Zt,g){"use strict";Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.CopyToClipboard=void 0;var we=se(g(59301)),De=se(g(25769));function se(H){return H&&H.__esModule?H:{default:H}}function Me(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(ee){return typeof ee}:Me=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},Me(H)}function ie(H,V){var ee=Object.keys(H);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(H);V&&(B=B.filter(function(G){return Object.getOwnPropertyDescriptor(H,G).enumerable})),ee.push.apply(ee,B)}return ee}function Y(H){for(var V=1;V<arguments.length;V++){var ee=arguments[V]!=null?arguments[V]:{};V%2?ie(ee,!0).forEach(function(B){$(H,B,ee[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(ee)):ie(ee).forEach(function(B){Object.defineProperty(H,B,Object.getOwnPropertyDescriptor(ee,B))})}return H}function O(H,V){if(H==null)return{};var ee=I(H,V),B,G;if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(H);for(G=0;G<le.length;G++)B=le[G],!(V.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(H,B)&&(ee[B]=H[B])}return ee}function I(H,V){if(H==null)return{};var ee={},B=Object.keys(H),G,le;for(le=0;le<B.length;le++)G=B[le],!(V.indexOf(G)>=0)&&(ee[G]=H[G]);return ee}function n(H,V){if(!(H instanceof V))throw new TypeError("Cannot call a class as a function")}function o(H,V){for(var ee=0;ee<V.length;ee++){var B=V[ee];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(H,B.key,B)}}function L(H,V,ee){return V&&o(H.prototype,V),ee&&o(H,ee),H}function p(H,V){return V&&(Me(V)==="object"||typeof V=="function")?V:A(H)}function a(H){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},a(H)}function A(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function m(H,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(V&&V.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),V&&S(H,V)}function S(H,V){return S=Object.setPrototypeOf||function(B,G){return B.__proto__=G,B},S(H,V)}function $(H,V,ee){return V in H?Object.defineProperty(H,V,{value:ee,enumerable:!0,configurable:!0,writable:!0}):H[V]=ee,H}var F=function(H){m(V,H);function V(){var ee,B;n(this,V);for(var G=arguments.length,le=new Array(G),J=0;J<G;J++)le[J]=arguments[J];return B=p(this,(ee=a(V)).call.apply(ee,[this].concat(le))),$(A(B),"onClick",function(be){var Ce=B.props,Re=Ce.text,ae=Ce.onCopy,me=Ce.children,T=Ce.options,Ee=we.default.Children.only(me),oe=(0,De.default)(Re,T);ae&&ae(Re,oe),Ee&&Ee.props&&typeof Ee.props.onClick=="function"&&Ee.props.onClick(be)}),B}return L(V,[{key:"render",value:function(){var B=this.props,G=B.text,le=B.onCopy,J=B.options,be=B.children,Ce=O(B,["text","onCopy","options","children"]),Re=we.default.Children.only(be);return we.default.cloneElement(Re,Y({},Ce,{onClick:this.onClick}))}}]),V}(we.default.PureComponent);Zt.CopyToClipboard=F,$(F,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(bn,Zt,g){"use strict";var we=g(83145),De=we.CopyToClipboard;De.CopyToClipboard=De,bn.exports=De},76374:function(bn,Zt,g){"use strict";var we=function(){if(typeof Map!="undefined")return Map;function me(T,Ee){var oe=-1;return T.some(function(he,ve){return he[0]===Ee?(oe=ve,!0):!1}),oe}return function(){function T(){this.__entries__=[]}return Object.defineProperty(T.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),T.prototype.get=function(Ee){var oe=me(this.__entries__,Ee),he=this.__entries__[oe];return he&&he[1]},T.prototype.set=function(Ee,oe){var he=me(this.__entries__,Ee);~he?this.__entries__[he][1]=oe:this.__entries__.push([Ee,oe])},T.prototype.delete=function(Ee){var oe=this.__entries__,he=me(oe,Ee);~he&&oe.splice(he,1)},T.prototype.has=function(Ee){return!!~me(this.__entries__,Ee)},T.prototype.clear=function(){this.__entries__.splice(0)},T.prototype.forEach=function(Ee,oe){oe===void 0&&(oe=null);for(var he=0,ve=this.__entries__;he<ve.length;he++){var _=ve[he];Ee.call(oe,_[1],_[0])}},T}()}(),De=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,se=function(){return typeof g.g!="undefined"&&g.g.Math===Math?g.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Me=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(se):function(me){return setTimeout(function(){return me(Date.now())},1e3/60)}}(),ie=2;function Y(me,T){var Ee=!1,oe=!1,he=0;function ve(){Ee&&(Ee=!1,me()),oe&&P()}function _(){Me(ve)}function P(){var X=Date.now();if(Ee){if(X-he<ie)return;oe=!0}else Ee=!0,oe=!1,setTimeout(_,T);he=X}return P}var O=20,I=["top","right","bottom","left","width","height","size","weight"],n=typeof MutationObserver!="undefined",o=function(){function me(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Y(this.refresh.bind(this),O)}return me.prototype.addObserver=function(T){~this.observers_.indexOf(T)||this.observers_.push(T),this.connected_||this.connect_()},me.prototype.removeObserver=function(T){var Ee=this.observers_,oe=Ee.indexOf(T);~oe&&Ee.splice(oe,1),!Ee.length&&this.connected_&&this.disconnect_()},me.prototype.refresh=function(){var T=this.updateObservers_();T&&this.refresh()},me.prototype.updateObservers_=function(){var T=this.observers_.filter(function(Ee){return Ee.gatherActive(),Ee.hasActive()});return T.forEach(function(Ee){return Ee.broadcastActive()}),T.length>0},me.prototype.connect_=function(){!De||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),n?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},me.prototype.disconnect_=function(){!De||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},me.prototype.onTransitionEnd_=function(T){var Ee=T.propertyName,oe=Ee===void 0?"":Ee,he=I.some(function(ve){return!!~oe.indexOf(ve)});he&&this.refresh()},me.getInstance=function(){return this.instance_||(this.instance_=new me),this.instance_},me.instance_=null,me}(),L=function(me,T){for(var Ee=0,oe=Object.keys(T);Ee<oe.length;Ee++){var he=oe[Ee];Object.defineProperty(me,he,{value:T[he],enumerable:!1,writable:!1,configurable:!0})}return me},p=function(me){var T=me&&me.ownerDocument&&me.ownerDocument.defaultView;return T||se},a=G(0,0,0,0);function A(me){return parseFloat(me)||0}function m(me){for(var T=[],Ee=1;Ee<arguments.length;Ee++)T[Ee-1]=arguments[Ee];return T.reduce(function(oe,he){var ve=me["border-"+he+"-width"];return oe+A(ve)},0)}function S(me){for(var T=["top","right","bottom","left"],Ee={},oe=0,he=T;oe<he.length;oe++){var ve=he[oe],_=me["padding-"+ve];Ee[ve]=A(_)}return Ee}function $(me){var T=me.getBBox();return G(0,0,T.width,T.height)}function F(me){var T=me.clientWidth,Ee=me.clientHeight;if(!T&&!Ee)return a;var oe=p(me).getComputedStyle(me),he=S(oe),ve=he.left+he.right,_=he.top+he.bottom,P=A(oe.width),X=A(oe.height);if(oe.boxSizing==="border-box"&&(Math.round(P+ve)!==T&&(P-=m(oe,"left","right")+ve),Math.round(X+_)!==Ee&&(X-=m(oe,"top","bottom")+_)),!V(me)){var pe=Math.round(P+ve)-T,Je=Math.round(X+_)-Ee;Math.abs(pe)!==1&&(P-=pe),Math.abs(Je)!==1&&(X-=Je)}return G(he.left,he.top,P,X)}var H=function(){return typeof SVGGraphicsElement!="undefined"?function(me){return me instanceof p(me).SVGGraphicsElement}:function(me){return me instanceof p(me).SVGElement&&typeof me.getBBox=="function"}}();function V(me){return me===p(me).document.documentElement}function ee(me){return De?H(me)?$(me):F(me):a}function B(me){var T=me.x,Ee=me.y,oe=me.width,he=me.height,ve=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,_=Object.create(ve.prototype);return L(_,{x:T,y:Ee,width:oe,height:he,top:Ee,right:T+oe,bottom:he+Ee,left:T}),_}function G(me,T,Ee,oe){return{x:me,y:T,width:Ee,height:oe}}var le=function(){function me(T){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=G(0,0,0,0),this.target=T}return me.prototype.isActive=function(){var T=ee(this.target);return this.contentRect_=T,T.width!==this.broadcastWidth||T.height!==this.broadcastHeight},me.prototype.broadcastRect=function(){var T=this.contentRect_;return this.broadcastWidth=T.width,this.broadcastHeight=T.height,T},me}(),J=function(){function me(T,Ee){var oe=B(Ee);L(this,{target:T,contentRect:oe})}return me}(),be=function(){function me(T,Ee,oe){if(this.activeObservations_=[],this.observations_=new we,typeof T!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=T,this.controller_=Ee,this.callbackCtx_=oe}return me.prototype.observe=function(T){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(T instanceof p(T).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ee=this.observations_;Ee.has(T)||(Ee.set(T,new le(T)),this.controller_.addObserver(this),this.controller_.refresh())}},me.prototype.unobserve=function(T){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(T instanceof p(T).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ee=this.observations_;Ee.has(T)&&(Ee.delete(T),Ee.size||this.controller_.removeObserver(this))}},me.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},me.prototype.gatherActive=function(){var T=this;this.clearActive(),this.observations_.forEach(function(Ee){Ee.isActive()&&T.activeObservations_.push(Ee)})},me.prototype.broadcastActive=function(){if(this.hasActive()){var T=this.callbackCtx_,Ee=this.activeObservations_.map(function(oe){return new J(oe.target,oe.broadcastRect())});this.callback_.call(T,Ee,T),this.clearActive()}},me.prototype.clearActive=function(){this.activeObservations_.splice(0)},me.prototype.hasActive=function(){return this.activeObservations_.length>0},me}(),Ce=typeof WeakMap!="undefined"?new WeakMap:new we,Re=function(){function me(T){if(!(this instanceof me))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Ee=o.getInstance(),oe=new be(T,Ee,this);Ce.set(this,oe)}return me}();["observe","unobserve","disconnect"].forEach(function(me){Re.prototype[me]=function(){var T;return(T=Ce.get(this))[me].apply(T,arguments)}});var ae=function(){return typeof se.ResizeObserver!="undefined"?se.ResizeObserver:Re}();Zt.Z=ae},98040:function(bn){bn.exports=function(){var Zt=document.getSelection();if(!Zt.rangeCount)return function(){};for(var g=document.activeElement,we=[],De=0;De<Zt.rangeCount;De++)we.push(Zt.getRangeAt(De));switch(g.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":g.blur();break;default:g=null;break}return Zt.removeAllRanges(),function(){Zt.type==="Caret"&&Zt.removeAllRanges(),Zt.rangeCount||we.forEach(function(se){Zt.addRange(se)}),g&&g.focus()}}},1012:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return p}});var we=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),De=new Uint8Array(16);function se(){if(!we)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return we(De)}var Me=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ie(a){return typeof a=="string"&&Me.test(a)}for(var Y=ie,O=[],I=0;I<256;++I)O.push((I+256).toString(16).substr(1));function n(a){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=(O[a[A+0]]+O[a[A+1]]+O[a[A+2]]+O[a[A+3]]+"-"+O[a[A+4]]+O[a[A+5]]+"-"+O[a[A+6]]+O[a[A+7]]+"-"+O[a[A+8]]+O[a[A+9]]+"-"+O[a[A+10]]+O[a[A+11]]+O[a[A+12]]+O[a[A+13]]+O[a[A+14]]+O[a[A+15]]).toLowerCase();if(!Y(m))throw TypeError("Stringified UUID is invalid");return m}var o=n;function L(a,A,m){a=a||{};var S=a.random||(a.rng||se)();if(S[6]=S[6]&15|64,S[8]=S[8]&63|128,A){m=m||0;for(var $=0;$<16;++$)A[m+$]=S[$];return A}return o(S)}var p=L},93314:function(bn){"use strict";bn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},40846:function(bn,Zt,g){"use strict";g.d(Zt,{ZP:function(){return Al}});function we(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var De={exports:{}};(function(d,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,l=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,x={buildAbsoluteURL:function(j,q,Ae){if(Ae=Ae||{},j=j.trim(),q=q.trim(),!q){if(!Ae.alwaysNormalize)return j;var Oe=x.parseURL(j);if(!Oe)throw new Error("Error trying to parse base URL.");return Oe.path=x.normalizePath(Oe.path),x.buildURLFromParts(Oe)}var Ye=x.parseURL(q);if(!Ye)throw new Error("Error trying to parse relative URL.");if(Ye.scheme)return Ae.alwaysNormalize?(Ye.path=x.normalizePath(Ye.path),x.buildURLFromParts(Ye)):q;var Xe=x.parseURL(j);if(!Xe)throw new Error("Error trying to parse base URL.");if(!Xe.netLoc&&Xe.path&&Xe.path[0]!=="/"){var lt=i.exec(Xe.path);Xe.netLoc=lt[1],Xe.path=lt[2]}Xe.netLoc&&!Xe.path&&(Xe.path="/");var Ct={scheme:Xe.scheme,netLoc:Ye.netLoc,path:null,params:Ye.params,query:Ye.query,fragment:Ye.fragment};if(!Ye.netLoc&&(Ct.netLoc=Xe.netLoc,Ye.path[0]!=="/"))if(!Ye.path)Ct.path=Xe.path,Ye.params||(Ct.params=Xe.params,Ye.query||(Ct.query=Xe.query));else{var Tt=Xe.path,vr=Tt.substring(0,Tt.lastIndexOf("/")+1)+Ye.path;Ct.path=x.normalizePath(vr)}return Ct.path===null&&(Ct.path=Ae.alwaysNormalize?x.normalizePath(Ye.path):Ye.path),x.buildURLFromParts(Ct)},parseURL:function(j){var q=r.exec(j);return q?{scheme:q[1]||"",netLoc:q[2]||"",path:q[3]||"",params:q[4]||"",query:q[5]||"",fragment:q[6]||""}:null},normalizePath:function(j){for(j=j.split("").reverse().join("").replace(s,"");j.length!==(j=j.replace(l,"")).length;);return j.split("").reverse().join("")},buildURLFromParts:function(j){return j.scheme+j.netLoc+j.path+j.params+j.query+j.fragment}};d.exports=x})()})(De);var se=De.exports;function Me(d,e){var t=Object.keys(d);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(d);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(d,i).enumerable})),t.push.apply(t,r)}return t}function ie(d){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Me(Object(t),!0).forEach(function(r){I(d,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach(function(r){Object.defineProperty(d,r,Object.getOwnPropertyDescriptor(t,r))})}return d}function Y(d,e){if(typeof d!="object"||!d)return d;var t=d[Symbol.toPrimitive];if(t!==void 0){var r=t.call(d,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(d)}function O(d){var e=Y(d,"string");return typeof e=="symbol"?e:String(e)}function I(d,e,t){return e=O(e),e in d?Object.defineProperty(d,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):d[e]=t,d}function n(){return n=Object.assign?Object.assign.bind():function(d){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(d[r]=t[r])}return d},n.apply(this,arguments)}const o=Number.isFinite||function(d){return typeof d=="number"&&isFinite(d)},L=Number.isSafeInteger||function(d){return typeof d=="number"&&Math.abs(d)<=p},p=Number.MAX_SAFE_INTEGER||9007199254740991;let a=function(d){return d.MEDIA_ATTACHING="hlsMediaAttaching",d.MEDIA_ATTACHED="hlsMediaAttached",d.MEDIA_DETACHING="hlsMediaDetaching",d.MEDIA_DETACHED="hlsMediaDetached",d.BUFFER_RESET="hlsBufferReset",d.BUFFER_CODECS="hlsBufferCodecs",d.BUFFER_CREATED="hlsBufferCreated",d.BUFFER_APPENDING="hlsBufferAppending",d.BUFFER_APPENDED="hlsBufferAppended",d.BUFFER_EOS="hlsBufferEos",d.BUFFER_FLUSHING="hlsBufferFlushing",d.BUFFER_FLUSHED="hlsBufferFlushed",d.MANIFEST_LOADING="hlsManifestLoading",d.MANIFEST_LOADED="hlsManifestLoaded",d.MANIFEST_PARSED="hlsManifestParsed",d.LEVEL_SWITCHING="hlsLevelSwitching",d.LEVEL_SWITCHED="hlsLevelSwitched",d.LEVEL_LOADING="hlsLevelLoading",d.LEVEL_LOADED="hlsLevelLoaded",d.LEVEL_UPDATED="hlsLevelUpdated",d.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",d.LEVELS_UPDATED="hlsLevelsUpdated",d.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",d.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",d.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",d.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",d.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",d.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",d.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",d.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",d.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",d.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",d.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",d.CUES_PARSED="hlsCuesParsed",d.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",d.INIT_PTS_FOUND="hlsInitPtsFound",d.FRAG_LOADING="hlsFragLoading",d.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",d.FRAG_LOADED="hlsFragLoaded",d.FRAG_DECRYPTED="hlsFragDecrypted",d.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",d.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",d.FRAG_PARSING_METADATA="hlsFragParsingMetadata",d.FRAG_PARSED="hlsFragParsed",d.FRAG_BUFFERED="hlsFragBuffered",d.FRAG_CHANGED="hlsFragChanged",d.FPS_DROP="hlsFpsDrop",d.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",d.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",d.ERROR="hlsError",d.DESTROYING="hlsDestroying",d.KEY_LOADING="hlsKeyLoading",d.KEY_LOADED="hlsKeyLoaded",d.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",d.BACK_BUFFER_REACHED="hlsBackBufferReached",d.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",d}({}),A=function(d){return d.NETWORK_ERROR="networkError",d.MEDIA_ERROR="mediaError",d.KEY_SYSTEM_ERROR="keySystemError",d.MUX_ERROR="muxError",d.OTHER_ERROR="otherError",d}({}),m=function(d){return d.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",d.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",d.KEY_SYSTEM_NO_SESSION="keySystemNoSession",d.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",d.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",d.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",d.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",d.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",d.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",d.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",d.MANIFEST_LOAD_ERROR="manifestLoadError",d.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",d.MANIFEST_PARSING_ERROR="manifestParsingError",d.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",d.LEVEL_EMPTY_ERROR="levelEmptyError",d.LEVEL_LOAD_ERROR="levelLoadError",d.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",d.LEVEL_PARSING_ERROR="levelParsingError",d.LEVEL_SWITCH_ERROR="levelSwitchError",d.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",d.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",d.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",d.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",d.FRAG_LOAD_ERROR="fragLoadError",d.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",d.FRAG_DECRYPT_ERROR="fragDecryptError",d.FRAG_PARSING_ERROR="fragParsingError",d.FRAG_GAP="fragGap",d.REMUX_ALLOC_ERROR="remuxAllocError",d.KEY_LOAD_ERROR="keyLoadError",d.KEY_LOAD_TIMEOUT="keyLoadTimeOut",d.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",d.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",d.BUFFER_APPEND_ERROR="bufferAppendError",d.BUFFER_APPENDING_ERROR="bufferAppendingError",d.BUFFER_STALLED_ERROR="bufferStalledError",d.BUFFER_FULL_ERROR="bufferFullError",d.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",d.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",d.INTERNAL_EXCEPTION="internalException",d.INTERNAL_ABORTED="aborted",d.UNKNOWN="unknown",d}({});const S=function(){},$={trace:S,debug:S,log:S,warn:S,info:S,error:S};let F=$;function H(d){const e=self.console[d];return e?e.bind(self.console,`[${d}] >`):S}function V(d,...e){e.forEach(function(t){F[t]=d[t]?d[t].bind(d):H(t)})}function ee(d,e){if(typeof console=="object"&&d===!0||typeof d=="object"){V(d,"debug","log","info","warn","error");try{F.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){F=$}}else F=$}const B=F,G=/^(\d+)x(\d+)$/,le=/(.+?)=(".*?"|.*?)(?:,|$)/g;class J{constructor(e){typeof e=="string"&&(e=J.parseAttrList(e)),n(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const r=new Uint8Array(t.length/2);for(let i=0;i<t.length/2;i++)r[i]=parseInt(t.slice(i*2,i*2+2),16);return r}else return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const r=this[e];return r?parseFloat(r):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=G.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const r={},i='"';for(le.lastIndex=0;(t=le.exec(e))!==null;){let s=t[2];s.indexOf(i)===0&&s.lastIndexOf(i)===s.length-1&&(s=s.slice(1,-1));const l=t[1].trim();r[l]=s}return r}}function be(d){return d!=="ID"&&d!=="CLASS"&&d!=="START-DATE"&&d!=="DURATION"&&d!=="END-DATE"&&d!=="END-ON-NEXT"}function Ce(d){return d==="SCTE35-OUT"||d==="SCTE35-IN"}class Re{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const r=t.attr;for(const i in r)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==r[i]){B.warn(`DATERANGE tag attribute: "${i}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=i;break}e=n(new J({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);o(r.getTime())&&(this._endDate=r)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(o(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&o(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class ae{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var me={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class T{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[me.AUDIO]:null,[me.VIDEO]:null,[me.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const r=e.split("@",2);let i;r.length===1?i=(t==null?void 0:t.byteRangeEndOffset)||0:i=parseInt(r[1]),this._byteRange=[i,parseInt(r[0])+i]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=se.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class Ee extends T{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new ae,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const r=Object.keys(this.levelkeys);if(r.length===1)return this._decryptdata=this.levelkeys[r[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!o(this.programDateTime))return null;const e=o(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),r=t.length;if(r>1||r===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,r,i,s,l=!1){const{elementaryStreams:x}=this,j=x[e];if(!j){x[e]={startPTS:t,endPTS:r,startDTS:i,endDTS:s,partial:l};return}j.startPTS=Math.min(j.startPTS,t),j.endPTS=Math.max(j.endPTS,r),j.startDTS=Math.min(j.startDTS,i),j.endDTS=Math.max(j.endDTS,s)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[me.AUDIO]=null,e[me.VIDEO]=null,e[me.AUDIOVIDEO]=null}}class oe extends T{constructor(e,t,r,i,s){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new ae,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=i;const l=e.enumeratedString("BYTERANGE");l&&this.setByteRange(l,s),s&&(this.fragOffset=s.fragOffset+s.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}const he=10;class ve{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?o(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||he}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function _(d){return Uint8Array.from(atob(d),e=>e.charCodeAt(0))}function P(d){const e=Je(d).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function X(d){const e=function(r,i,s){const l=r[i];r[i]=r[s],r[s]=l};e(d,0,3),e(d,1,2),e(d,4,5),e(d,6,7)}function pe(d){const e=d.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const s=i[0]==="base64",l=i[1];s?(r.splice(-1,1),t=_(l)):t=P(l)}}return t}function Je(d){return Uint8Array.from(unescape(encodeURIComponent(d)),e=>e.charCodeAt(0))}const at=typeof self!="undefined"?self:void 0;var nt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Lt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function ur(d){switch(d){case Lt.FAIRPLAY:return nt.FAIRPLAY;case Lt.PLAYREADY:return nt.PLAYREADY;case Lt.WIDEVINE:return nt.WIDEVINE;case Lt.CLEARKEY:return nt.CLEARKEY}}var Jt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function We(d){if(d===Jt.WIDEVINE)return nt.WIDEVINE;if(d===Jt.PLAYREADY)return nt.PLAYREADY;if(d===Jt.CENC||d===Jt.CLEARKEY)return nt.CLEARKEY}function Cr(d){switch(d){case nt.FAIRPLAY:return Lt.FAIRPLAY;case nt.PLAYREADY:return Lt.PLAYREADY;case nt.WIDEVINE:return Lt.WIDEVINE;case nt.CLEARKEY:return Lt.CLEARKEY}}function Er(d){const{drmSystems:e,widevineLicenseUrl:t}=d,r=e?[nt.FAIRPLAY,nt.WIDEVINE,nt.PLAYREADY,nt.CLEARKEY].filter(i=>!!e[i]):[];return!r[nt.WIDEVINE]&&t&&r.push(nt.WIDEVINE),r}const Kr=function(d){return at!=null&&(d=at.navigator)!=null&&d.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function _r(d,e,t,r){let i;switch(d){case nt.FAIRPLAY:i=["cenc","sinf"];break;case nt.WIDEVINE:case nt.PLAYREADY:i=["cenc"];break;case nt.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${d}`)}return Se(i,e,t,r)}function Se(d,e,t,r){return[{initDataTypes:d,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(s=>({contentType:`audio/mp4; codecs="${s}"`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:t.map(s=>({contentType:`video/mp4; codecs="${s}"`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function Nt(d){const e=new Uint16Array(d.buffer,d.byteOffset,d.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),r=t.substring(t.indexOf("<"),t.length),l=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(l){const x=l.childNodes[0]?l.childNodes[0].nodeValue:l.getAttribute("VALUE");if(x){const j=_(x).subarray(0,16);return X(j),j}}return null}function z(d,e,t){return Uint8Array.prototype.slice?d.slice(e,t):new Uint8Array(Array.prototype.slice.call(d,e,t))}const v=(d,e)=>e+10<=d.length&&d[e]===73&&d[e+1]===68&&d[e+2]===51&&d[e+3]<255&&d[e+4]<255&&d[e+6]<128&&d[e+7]<128&&d[e+8]<128&&d[e+9]<128,h=(d,e)=>e+10<=d.length&&d[e]===51&&d[e+1]===68&&d[e+2]===73&&d[e+3]<255&&d[e+4]<255&&d[e+6]<128&&d[e+7]<128&&d[e+8]<128&&d[e+9]<128,D=(d,e)=>{const t=e;let r=0;for(;v(d,e);){r+=10;const i=fe(d,e+6);r+=i,h(d,e+10)&&(r+=10),e+=r}if(r>0)return d.subarray(t,t+r)},fe=(d,e)=>{let t=0;return t=(d[e]&127)<<21,t|=(d[e+1]&127)<<14,t|=(d[e+2]&127)<<7,t|=d[e+3]&127,t},Z=(d,e)=>v(d,e)&&fe(d,e+6)+10<=d.length-e,N=d=>{const e=Ie(d);for(let t=0;t<e.length;t++){const r=e[t];if(te(r))return tt(r)}},te=d=>d&&d.key==="PRIV"&&d.info==="com.apple.streaming.transportStreamTimestamp",Te=d=>{const e=String.fromCharCode(d[0],d[1],d[2],d[3]),t=fe(d,4),r=10;return{type:e,size:t,data:d.subarray(r,r+t)}},Ie=d=>{let e=0;const t=[];for(;v(d,e);){const r=fe(d,e+6);e+=10;const i=e+r;for(;e+8<i;){const s=Te(d.subarray(e)),l=Fe(s);l&&t.push(l),e+=s.size+10}h(d,e)&&(e+=10)}return t},Fe=d=>d.type==="PRIV"?ze(d):d.type[0]==="W"?$e(d):pt(d),ze=d=>{if(d.size<2)return;const e=ct(d.data,!0),t=new Uint8Array(d.data.subarray(e.length+1));return{key:d.type,info:e,data:t.buffer}},pt=d=>{if(d.size<2)return;if(d.type==="TXXX"){let t=1;const r=ct(d.data.subarray(t),!0);t+=r.length+1;const i=ct(d.data.subarray(t));return{key:d.type,info:r,data:i}}const e=ct(d.data.subarray(1));return{key:d.type,data:e}},$e=d=>{if(d.type==="WXXX"){if(d.size<2)return;let t=1;const r=ct(d.data.subarray(t),!0);t+=r.length+1;const i=ct(d.data.subarray(t));return{key:d.type,info:r,data:i}}const e=ct(d.data);return{key:d.type,data:e}},tt=d=>{if(d.data.byteLength===8){const e=new Uint8Array(d.data),t=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,t&&(r+=4772185884e-2),Math.round(r)}},ct=(d,e=!1)=>{const t=Ke();if(t){const q=t.decode(d);if(e){const Ae=q.indexOf("\0");return Ae!==-1?q.substring(0,Ae):q}return q.replace(/\0/g,"")}const r=d.length;let i,s,l,x="",j=0;for(;j<r;){if(i=d[j++],i===0&&e)return x;if(i===0||i===3)continue;switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:x+=String.fromCharCode(i);break;case 12:case 13:s=d[j++],x+=String.fromCharCode((i&31)<<6|s&63);break;case 14:s=d[j++],l=d[j++],x+=String.fromCharCode((i&15)<<12|(s&63)<<6|(l&63)<<0);break}}return x};let Ge;function Ke(){if(!navigator.userAgent.includes("PlayStation 4"))return!Ge&&typeof self.TextDecoder!="undefined"&&(Ge=new self.TextDecoder("utf-8")),Ge}const Bt={hexDump:function(d){let e="";for(let t=0;t<d.length;t++){let r=d[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}},Vt=Math.pow(2,32)-1,Mt=[].push,mr={video:1,audio:2,id3:3,text:4};function wr(d){return String.fromCharCode.apply(null,d)}function re(d,e){const t=d[e]<<8|d[e+1];return t<0?65536+t:t}function ue(d,e){const t=Qe(d,e);return t<0?4294967296+t:t}function rr(d,e){let t=ue(d,e);return t*=Math.pow(2,32),t+=ue(d,e+4),t}function Qe(d,e){return d[e]<<24|d[e+1]<<16|d[e+2]<<8|d[e+3]}function ot(d,e,t){d[e]=t>>24,d[e+1]=t>>16&255,d[e+2]=t>>8&255,d[e+3]=t&255}function Yr(d){const e=d.byteLength;for(let t=0;t<e;){const r=ue(d,t);if(r>8&&d[t+4]===109&&d[t+5]===111&&d[t+6]===111&&d[t+7]===102)return!0;t=r>1?t+r:e}return!1}function It(d,e){const t=[];if(!e.length)return t;const r=d.byteLength;for(let i=0;i<r;){const s=ue(d,i),l=wr(d.subarray(i+4,i+8)),x=s>1?i+s:r;if(l===e[0])if(e.length===1)t.push(d.subarray(i+8,x));else{const j=It(d.subarray(i+8,x),e.slice(1));j.length&&Mt.apply(t,j)}i=x}return t}function zt(d){const e=[],t=d[0];let r=8;const i=ue(d,r);r+=4;let s=0,l=0;t===0?(s=ue(d,r),l=ue(d,r+4),r+=8):(s=rr(d,r),l=rr(d,r+8),r+=16),r+=2;let x=d.length+l;const j=re(d,r);r+=2;for(let q=0;q<j;q++){let Ae=r;const Oe=ue(d,Ae);Ae+=4;const Ye=Oe&2147483647;if((Oe&2147483648)>>>31===1)return B.warn("SIDX has hierarchical references (not supported)"),null;const lt=ue(d,Ae);Ae+=4,e.push({referenceSize:Ye,subsegmentDuration:lt,info:{duration:lt/i,start:x,end:x+Ye-1}}),x+=Ye,Ae+=4,r=Ae}return{earliestPresentationTime:s,timescale:i,version:t,referencesCount:j,references:e}}function qt(d){const e=[],t=It(d,["moov","trak"]);for(let i=0;i<t.length;i++){const s=t[i],l=It(s,["tkhd"])[0];if(l){let x=l[0];const j=ue(l,x===0?12:20),q=It(s,["mdia","mdhd"])[0];if(q){x=q[0];const Ae=ue(q,x===0?12:20),Oe=It(s,["mdia","hdlr"])[0];if(Oe){const Ye=wr(Oe.subarray(8,12)),Xe={soun:me.AUDIO,vide:me.VIDEO}[Ye];if(Xe){const lt=It(s,["mdia","minf","stbl","stsd"])[0],Ct=qe(lt);e[j]={timescale:Ae,type:Xe},e[Xe]=ie({timescale:Ae,id:j},Ct)}}}}}return It(d,["moov","mvex","trex"]).forEach(i=>{const s=ue(i,4),l=e[s];l&&(l.default={duration:ue(i,12),flags:ue(i,20)})}),e}function qe(d){const e=d.subarray(8),t=e.subarray(86),r=wr(e.subarray(4,8));let i=r;const s=r==="enca"||r==="encv";if(s){const x=It(e,[r])[0].subarray(r==="enca"?28:78);It(x,["sinf"]).forEach(q=>{const Ae=It(q,["schm"])[0];if(Ae){const Oe=wr(Ae.subarray(4,8));if(Oe==="cbcs"||Oe==="cenc"){const Ye=It(q,["frma"])[0];Ye&&(i=wr(Ye))}}})}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const l=It(t,["avcC"])[0];i+="."+dt(l[1])+dt(l[2])+dt(l[3]);break}case"mp4a":{const l=It(e,[r])[0],x=It(l.subarray(28),["esds"])[0];if(x&&x.length>12){let j=4;if(x[j++]!==3)break;j=At(x,j),j+=2;const q=x[j++];if(q&128&&(j+=2),q&64&&(j+=x[j++]),x[j++]!==4)break;j=At(x,j);const Ae=x[j++];if(Ae===64)i+="."+dt(Ae);else break;if(j+=12,x[j++]!==5)break;j=At(x,j);const Oe=x[j++];let Ye=(Oe&248)>>3;Ye===31&&(Ye+=1+((Oe&7)<<3)+((x[j]&224)>>5)),i+="."+Ye}break}case"hvc1":case"hev1":{const l=It(t,["hvcC"])[0],x=l[1],j=["","A","B","C"][x>>6],q=x&31,Ae=ue(l,2),Oe=(x&32)>>5?"H":"L",Ye=l[12],Xe=l.subarray(6,12);i+="."+j+q,i+="."+Ae.toString(16).toUpperCase(),i+="."+Oe+Ye;let lt="";for(let Ct=Xe.length;Ct--;){const Tt=Xe[Ct];(Tt||lt)&&(lt="."+Tt.toString(16).toUpperCase()+lt)}i+=lt;break}case"dvh1":case"dvhe":{const l=It(t,["dvcC"])[0],x=l[2]>>1&127,j=l[2]<<5&32|l[3]>>3&31;i+="."+Gt(x)+"."+Gt(j);break}case"vp09":{const l=It(t,["vpcC"])[0],x=l[4],j=l[5],q=l[6]>>4&15;i+="."+Gt(x)+"."+Gt(j)+"."+Gt(q);break}case"av01":{const l=It(t,["av1C"])[0],x=l[1]>>>5,j=l[1]&31,q=l[2]>>>7?"H":"M",Ae=(l[2]&64)>>6,Oe=(l[2]&32)>>5,Ye=x===2&&Ae?Oe?12:10:Ae?10:8,Xe=(l[2]&16)>>4,lt=(l[2]&8)>>3,Ct=(l[2]&4)>>2,Tt=l[2]&3;i+="."+x+"."+Gt(j)+q+"."+Gt(Ye)+"."+Xe+"."+lt+Ct+Tt+"."+Gt(1)+"."+Gt(1)+"."+Gt(1)+"."+0;break}}return{codec:i,encrypted:s}}function At(d,e){const t=e+5;for(;d[e++]&128&&e<t;);return e}function dt(d){return("0"+d.toString(16).toUpperCase()).slice(-2)}function Gt(d){return(d<10?"0":"")+d}function Pe(d,e){if(!d||!e)return d;const t=e.keyId;return t&&e.isCommonEncryption&&It(d,["moov","trak"]).forEach(i=>{const l=It(i,["mdia","minf","stbl","stsd"])[0].subarray(8);let x=It(l,["enca"]);const j=x.length>0;j||(x=It(l,["encv"])),x.forEach(q=>{const Ae=j?q.subarray(28):q.subarray(78);It(Ae,["sinf"]).forEach(Ye=>{const Xe=an(Ye);if(Xe){const lt=Xe.subarray(8,24);lt.some(Ct=>Ct!==0)||(B.log(`[eme] Patching keyId in 'enc${j?"a":"v"}>sinf>>tenc' box: ${Bt.hexDump(lt)} -> ${Bt.hexDump(t)}`),Xe.set(t,8))}})})}),d}function an(d){const e=It(d,["schm"])[0];if(e){const t=wr(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return It(d,["schi","tenc"])[0]}return null}function kt(d,e){return It(e,["moof","traf"]).reduce((t,r)=>{const i=It(r,["tfdt"])[0],s=i[0],l=It(r,["tfhd"]).reduce((x,j)=>{const q=ue(j,4),Ae=d[q];if(Ae){let Oe=ue(i,4);if(s===1){if(Oe===Vt)return B.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),x;Oe*=Vt+1,Oe+=ue(i,8)}const Ye=Ae.timescale||9e4,Xe=Oe/Ye;if(o(Xe)&&(x===null||Xe<x))return Xe}return x},null);return l!==null&&o(l)&&(t===null||l<t)?l:t},null)}function kn(d,e){let t=0,r=0,i=0;const s=It(d,["moof","traf"]);for(let l=0;l<s.length;l++){const x=s[l],j=It(x,["tfhd"])[0],q=ue(j,4),Ae=e[q];if(!Ae)continue;const Oe=Ae.default,Ye=ue(j,0)|(Oe==null?void 0:Oe.flags);let Xe=Oe==null?void 0:Oe.duration;Ye&8&&(Ye&2?Xe=ue(j,12):Xe=ue(j,8));const lt=Ae.timescale||9e4,Ct=It(x,["trun"]);for(let Tt=0;Tt<Ct.length;Tt++){if(t=Xn(Ct[Tt]),!t&&Xe){const vr=ue(Ct[Tt],4);t=Xe*vr}Ae.type===me.VIDEO?r+=t/lt:Ae.type===me.AUDIO&&(i+=t/lt)}}if(r===0&&i===0){let l=1/0,x=0,j=0;const q=It(d,["sidx"]);for(let Ae=0;Ae<q.length;Ae++){const Oe=zt(q[Ae]);if(Oe!=null&&Oe.references){l=Math.min(l,Oe.earliestPresentationTime/Oe.timescale);const Ye=Oe.references.reduce((Xe,lt)=>Xe+lt.info.duration||0,0);x=Math.max(x,Ye+Oe.earliestPresentationTime/Oe.timescale),j=x-l}}if(j&&o(j))return j}return r||i}function Xn(d){const e=ue(d,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const i=ue(d,4);for(let s=0;s<i;s++){if(e&256){const l=ue(d,t);r+=l,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function yi(d,e,t){It(e,["moof","traf"]).forEach(r=>{It(r,["tfhd"]).forEach(i=>{const s=ue(i,4),l=d[s];if(!l)return;const x=l.timescale||9e4;It(r,["tfdt"]).forEach(j=>{const q=j[0],Ae=t*x;if(Ae){let Oe=ue(j,4);if(q===0)Oe-=Ae,Oe=Math.max(Oe,0),ot(j,4,Oe);else{Oe*=Math.pow(2,32),Oe+=ue(j,8),Oe-=Ae,Oe=Math.max(Oe,0);const Ye=Math.floor(Oe/(Vt+1)),Xe=Math.floor(Oe%(Vt+1));ot(j,4,Ye),ot(j,8,Xe)}}})})})}function ji(d){const e={valid:null,remainder:null},t=It(d,["moof"]);if(t.length<2)return e.remainder=d,e;const r=t[t.length-1];return e.valid=z(d,0,r.byteOffset-8),e.remainder=z(d,r.byteOffset-8),e}function On(d,e){const t=new Uint8Array(d.length+e.length);return t.set(d),t.set(e,d.length),t}function $n(d,e){const t=[],r=e.samples,i=e.timescale,s=e.id;let l=!1;return It(r,["moof"]).map(j=>{const q=j.byteOffset-8;It(j,["traf"]).map(Oe=>{const Ye=It(Oe,["tfdt"]).map(Xe=>{const lt=Xe[0];let Ct=ue(Xe,4);return lt===1&&(Ct*=Math.pow(2,32),Ct+=ue(Xe,8)),Ct/i})[0];return Ye!==void 0&&(d=Ye),It(Oe,["tfhd"]).map(Xe=>{const lt=ue(Xe,4),Ct=ue(Xe,0)&16777215,Tt=(Ct&1)!==0,vr=(Ct&2)!==0,Nr=(Ct&8)!==0;let Or=0;const Un=(Ct&16)!==0;let cn=0;const gi=(Ct&32)!==0;let zn=8;lt===s&&(Tt&&(zn+=8),vr&&(zn+=4),Nr&&(Or=ue(Xe,zn),zn+=4),Un&&(cn=ue(Xe,zn),zn+=4),gi&&(zn+=4),e.type==="video"&&(l=Yt(e.codec)),It(Oe,["trun"]).map(Ii=>{const ea=Ii[0],mi=ue(Ii,0)&16777215,Oi=(mi&1)!==0;let Ga=0;const ia=(mi&4)!==0,ja=(mi&256)!==0;let Ua=0;const Ra=(mi&512)!==0;let Fs=0;const Ks=(mi&1024)!==0,ha=(mi&2048)!==0;let oa=0;const ks=ue(Ii,4);let hs=8;Oi&&(Ga=ue(Ii,hs),hs+=4),ia&&(hs+=4);let Ws=Ga+q;for(let lo=0;lo<ks;lo++){if(ja?(Ua=ue(Ii,hs),hs+=4):Ua=Or,Ra?(Fs=ue(Ii,hs),hs+=4):Fs=cn,Ks&&(hs+=4),ha&&(ea===0?oa=ue(Ii,hs):oa=Qe(Ii,hs),hs+=4),e.type===me.VIDEO){let Ms=0;for(;Ms<Fs;){const Fo=ue(r,Ws);if(Ws+=4,jr(l,r[Ws])){const dl=r.subarray(Ws,Ws+Fo);Jr(dl,l?2:1,d+oa/i,t)}Ws+=Fo,Ms+=Fo+4}}d+=Ua/i}}))})})}),t}function Yt(d){if(!d)return!1;const e=d.indexOf("."),t=e<0?d:d.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function jr(d,e){if(d){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Jr(d,e,t,r){const i=Ot(d);let s=0;s+=e;let l=0,x=0,j=0;for(;s<i.length;){l=0;do{if(s>=i.length)break;j=i[s++],l+=j}while(j===255);x=0;do{if(s>=i.length)break;j=i[s++],x+=j}while(j===255);const q=i.length-s;let Ae=s;if(x<q)s+=x;else if(x>q){B.error(`Malformed SEI payload. ${x} is too small, only ${q} bytes left to parse.`);break}if(l===4){if(i[Ae++]===181){const Ye=re(i,Ae);if(Ae+=2,Ye===49){const Xe=ue(i,Ae);if(Ae+=4,Xe===1195456820){const lt=i[Ae++];if(lt===3){const Ct=i[Ae++],Tt=31&Ct,vr=64&Ct,Nr=vr?2+Tt*3:0,Or=new Uint8Array(Nr);if(vr){Or[0]=Ct;for(let Un=1;Un<Nr;Un++)Or[Un]=i[Ae++]}r.push({type:lt,payloadType:l,pts:t,bytes:Or})}}}}}else if(l===5&&x>16){const Oe=[];for(let lt=0;lt<16;lt++){const Ct=i[Ae++].toString(16);Oe.push(Ct.length==1?"0"+Ct:Ct),(lt===3||lt===5||lt===7||lt===9)&&Oe.push("-")}const Ye=x-16,Xe=new Uint8Array(Ye);for(let lt=0;lt<Ye;lt++)Xe[lt]=i[Ae++];r.push({payloadType:l,pts:t,uuid:Oe.join(""),userData:ct(Xe),userDataBytes:Xe})}}}function Ot(d){const e=d.byteLength,t=[];let r=1;for(;r<e-2;)d[r]===0&&d[r+1]===0&&d[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return d;const i=e-t.length,s=new Uint8Array(i);let l=0;for(r=0;r<i;l++,r++)l===t[0]&&(l++,t.shift()),s[r]=d[l];return s}function _t(d){const e=d[0];let t="",r="",i=0,s=0,l=0,x=0,j=0,q=0;if(e===0){for(;wr(d.subarray(q,q+1))!=="\0";)t+=wr(d.subarray(q,q+1)),q+=1;for(t+=wr(d.subarray(q,q+1)),q+=1;wr(d.subarray(q,q+1))!=="\0";)r+=wr(d.subarray(q,q+1)),q+=1;r+=wr(d.subarray(q,q+1)),q+=1,i=ue(d,12),s=ue(d,16),x=ue(d,20),j=ue(d,24),q=28}else if(e===1){q+=4,i=ue(d,q),q+=4;const Oe=ue(d,q);q+=4;const Ye=ue(d,q);for(q+=4,l=GA(2,32)*Oe+Ye,L(l)||(l=Number.MAX_SAFE_INTEGER,B.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),x=ue(d,q),q+=4,j=ue(d,q),q+=4;wr(d.subarray(q,q+1))!=="\0";)t+=wr(d.subarray(q,q+1)),q+=1;for(t+=wr(d.subarray(q,q+1)),q+=1;wr(d.subarray(q,q+1))!=="\0";)r+=wr(d.subarray(q,q+1)),q+=1;r+=wr(d.subarray(q,q+1)),q+=1}const Ae=d.subarray(q,d.byteLength);return{schemeIdUri:t,value:r,timeScale:i,presentationTime:l,presentationTimeDelta:s,eventDuration:x,id:j,payload:Ae}}function Br(d,...e){const t=e.length;let r=8,i=t;for(;i--;)r+=e[i].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(d,4),i=0,r=8;i<t;i++)s.set(e[i],r),r+=e[i].byteLength;return s}function Lr(d,e,t){if(d.byteLength!==16)throw new RangeError("Invalid system id");let r,i;if(e){r=1,i=new Uint8Array(e.length*16);for(let x=0;x<e.length;x++){const j=e[x];if(j.byteLength!==16)throw new RangeError("Invalid key");i.set(j,x*16)}}else r=0,i=new Uint8Array;let s;r>0?(s=new Uint8Array(4),e.length>0&&new DataView(s.buffer).setUint32(0,e.length,!1)):s=new Uint8Array;const l=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(l.buffer).setUint32(0,t.byteLength,!1),Br([112,115,115,104],new Uint8Array([r,0,0,0]),d,s,i,l,t||new Uint8Array)}function In(d){const e=[];if(d instanceof ArrayBuffer){const t=d.byteLength;let r=0;for(;r+32<t;){const i=new DataView(d,r),s=tn(i);e.push(s),r+=s.size}}return e}function tn(d){const e=d.getUint32(0),t=d.byteOffset,r=d.byteLength;if(r<e)return{offset:t,size:r};if(d.getUint32(4)!==1886614376)return{offset:t,size:e};const s=d.getUint32(8)>>>24;if(s!==0&&s!==1)return{offset:t,size:e};const l=d.buffer,x=Bt.hexDump(new Uint8Array(l,t+12,16)),j=d.getUint32(28);let q=null,Ae=null;if(s===0){if(e-32<j||j<22)return{offset:t,size:e};Ae=new Uint8Array(l,t+32,j)}else if(s===1){if(!j||r<t+32+j*16+16)return{offset:t,size:e};q=[];for(let Oe=0;Oe<j;Oe++)q.push(new Uint8Array(l,t+32+Oe*16,16))}return{version:s,systemId:x,kids:q,data:Ae,offset:t,size:e}}let Bn={};class gn{static clearKeyUriToKeyIdMap(){Bn={}}constructor(e,t,r,i=[1],s=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=r,this.keyFormatVersions=i,this.iv=s,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Lt.FAIRPLAY:case Lt.WIDEVINE:case Lt.PLAYREADY:case Lt.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&B.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=Qn(e);return new gn(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=pe(this.uri);if(t)switch(this.keyFormat){case Lt.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Lt.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Lr(r,null,t),this.keyId=Nt(t);break}default:{let r=t.subarray(0,16);if(r.length!==16){const i=new Uint8Array(16);i.set(r,16-r.length),r=i}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=Bn[this.uri];if(!r){const i=Object.keys(Bn).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,i),Bn[this.uri]=r}this.keyId=r}return this}}function Qn(d){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=d>>8*(15-t)&255;return e}const ei=/\{\$([a-zA-Z0-9-_]+)\}/g;function Hr(d){return ei.test(d)}function zr(d,e,t){if(d.variableList!==null||d.hasVariableRefs)for(let r=t.length;r--;){const i=t[r],s=e[i];s&&(e[i]=Tn(d,s))}}function Tn(d,e){if(d.variableList!==null||d.hasVariableRefs){const t=d.variableList;return e.replace(ei,r=>{const i=r.substring(2,r.length-1),s=t==null?void 0:t[i];return s===void 0?(d.playlistParsingError||(d.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):s})}return e}function Sn(d,e,t){let r=d.variableList;r||(d.variableList=r={});let i,s;if("QUERYPARAM"in e){i=e.QUERYPARAM;try{const l=new self.URL(t).searchParams;if(l.has(i))s=l.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${t}"`)}catch(l){d.playlistParsingError||(d.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${l.message}`))}}else i=e.NAME,s=e.VALUE;i in r?d.playlistParsingError||(d.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=s||""}function jn(d,e,t){const r=e.IMPORT;if(t&&r in t){let i=d.variableList;i||(d.variableList=i={}),i[r]=t[r]}else d.playlistParsingError||(d.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}function Vn(d=!0){return typeof self=="undefined"?void 0:(d||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Mi(d){return typeof self!="undefined"&&d===self.ManagedMediaSource}const Ai={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function wn(d,e){const t=Ai[e];return!!t&&!!t[d.slice(0,4)]}function hr(d,e,t=!0){return!d.split(",").some(r=>!br(r,e,t))}function br(d,e,t=!0){var r;const i=Vn(t);return(r=i==null?void 0:i.isTypeSupported(Fr(d,e)))!=null?r:!1}function Fr(d,e){return`${e}/mp4;codecs="${d}"`}function Zr(d){if(d){const e=d.substring(0,4);return Ai.video[e]}return 2}function Ur(d){return d.split(",").reduce((e,t)=>{const r=Ai.video[t];return r?(r*2+e)/(e?3:2):(Ai.audio[t]+e)/(e?2:1)},0)}const on={};function en(d,e=!0){if(on[d])return on[d];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[d];for(let r=0;r<t.length;r++)if(br(t[r],"audio",e))return on[d]=t[r],t[r];return d}const Hn=/flac|opus/i;function ti(d,e=!0){return d.replace(Hn,t=>en(t.toLowerCase(),e))}function ui(d,e){return d&&d!=="mp4a"?d:e&&e.split(",")[0]}function Ri(d){const e=d.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");if(r.length>2){let i=r.shift()+".";i+=parseInt(r.shift()).toString(16),i+=("000"+parseInt(r.shift()).toString(16)).slice(-4),e[t]=i}}return e.join(",")}const Ui=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Pi=/#EXT-X-MEDIA:(.*)/g,Tr=/^#EXT(?:INF|-X-TARGETDURATION):/m,_n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),hn=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class hi{static findGroup(e,t){for(let r=0;r<e.length;r++){const i=e[r];if(i.id===t)return i}}static resolve(e,t){return se.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Tr.test(e)}static parseMasterPlaylist(e,t){const r=Hr(e),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},s=[];Ui.lastIndex=0;let l;for(;(l=Ui.exec(e))!=null;)if(l[1]){var x;const q=new J(l[1]);zr(i,q,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const Ae=Tn(i,l[2]),Oe={attrs:q,bitrate:q.decimalInteger("BANDWIDTH")||q.decimalInteger("AVERAGE-BANDWIDTH"),name:q.NAME,url:hi.resolve(Ae,t)},Ye=q.decimalResolution("RESOLUTION");Ye&&(Oe.width=Ye.width,Oe.height=Ye.height),bi(q.CODECS,Oe),(x=Oe.unknownCodecs)!=null&&x.length||s.push(Oe),i.levels.push(Oe)}else if(l[3]){const q=l[3],Ae=l[4];switch(q){case"SESSION-DATA":{const Oe=new J(Ae);zr(i,Oe,["DATA-ID","LANGUAGE","VALUE","URI"]);const Ye=Oe["DATA-ID"];Ye&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[Ye]=Oe);break}case"SESSION-KEY":{const Oe=ii(Ae,t,i);Oe.encrypted&&Oe.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(Oe)):B.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${Ae}"`);break}case"DEFINE":{{const Oe=new J(Ae);zr(i,Oe,["NAME","VALUE","QUERYPARAM"]),Sn(i,Oe,t)}break}case"CONTENT-STEERING":{const Oe=new J(Ae);zr(i,Oe,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:hi.resolve(Oe["SERVER-URI"],t),pathwayId:Oe["PATHWAY-ID"]||"."};break}case"START":{i.startTimeOffset=ri(Ae);break}}}const j=s.length>0&&s.length<i.levels.length;return i.levels=j?s:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(e,t,r){let i;const s={},l=r.levels,x={AUDIO:l.map(q=>({id:q.attrs.AUDIO,audioCodec:q.audioCodec})),SUBTITLES:l.map(q=>({id:q.attrs.SUBTITLES,textCodec:q.textCodec})),"CLOSED-CAPTIONS":[]};let j=0;for(Pi.lastIndex=0;(i=Pi.exec(e))!==null;){const q=new J(i[1]),Ae=q.TYPE;if(Ae){const Oe=x[Ae],Ye=s[Ae]||[];s[Ae]=Ye,zr(r,q,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const Xe=q.LANGUAGE,lt=q["ASSOC-LANGUAGE"],Ct=q.CHANNELS,Tt=q.CHARACTERISTICS,vr=q["INSTREAM-ID"],Nr={attrs:q,bitrate:0,id:j++,groupId:q["GROUP-ID"]||"",name:q.NAME||Xe||"",type:Ae,default:q.bool("DEFAULT"),autoselect:q.bool("AUTOSELECT"),forced:q.bool("FORCED"),lang:Xe,url:q.URI?hi.resolve(q.URI,t):""};if(lt&&(Nr.assocLang=lt),Ct&&(Nr.channels=Ct),Tt&&(Nr.characteristics=Tt),vr&&(Nr.instreamId=vr),Oe!=null&&Oe.length){const Or=hi.findGroup(Oe,Nr.groupId)||Oe[0];Di(Nr,Or,"audioCodec"),Di(Nr,Or,"textCodec")}Ye.push(Nr)}}return s}static parseLevelPlaylist(e,t,r,i,s,l){const x=new ve(t),j=x.fragments;let q=null,Ae=0,Oe=0,Ye=0,Xe=0,lt=null,Ct=new Ee(i,t),Tt,vr,Nr,Or=-1,Un=!1,cn=null;for(_n.lastIndex=0,x.m3u8=e,x.hasVariableRefs=Hr(e);(Tt=_n.exec(e))!==null;){Un&&(Un=!1,Ct=new Ee(i,t),Ct.start=Ye,Ct.sn=Ae,Ct.cc=Xe,Ct.level=r,q&&(Ct.initSegment=q,Ct.rawProgramDateTime=q.rawProgramDateTime,q.rawProgramDateTime=null,cn&&(Ct.setByteRange(cn),cn=null)));const ea=Tt[1];if(ea){Ct.duration=parseFloat(ea);const mi=(" "+Tt[2]).slice(1);Ct.title=mi||null,Ct.tagList.push(mi?["INF",ea,mi]:["INF",ea])}else if(Tt[3]){if(o(Ct.duration)){Ct.start=Ye,Nr&&xi(Ct,Nr,x),Ct.sn=Ae,Ct.level=r,Ct.cc=Xe,j.push(Ct);const mi=(" "+Tt[3]).slice(1);Ct.relurl=Tn(x,mi),zi(Ct,lt),lt=Ct,Ye+=Ct.duration,Ae++,Oe=0,Un=!0}}else if(Tt[4]){const mi=(" "+Tt[4]).slice(1);lt?Ct.setByteRange(mi,lt):Ct.setByteRange(mi)}else if(Tt[5])Ct.rawProgramDateTime=(" "+Tt[5]).slice(1),Ct.tagList.push(["PROGRAM-DATE-TIME",Ct.rawProgramDateTime]),Or===-1&&(Or=j.length);else{if(Tt=Tt[0].match(hn),!Tt){B.warn("No matches on slow regex match for level playlist!");continue}for(vr=1;vr<Tt.length&&typeof Tt[vr]=="undefined";vr++);const mi=(" "+Tt[vr]).slice(1),Oi=(" "+Tt[vr+1]).slice(1),Ga=Tt[vr+2]?(" "+Tt[vr+2]).slice(1):"";switch(mi){case"PLAYLIST-TYPE":x.type=Oi.toUpperCase();break;case"MEDIA-SEQUENCE":Ae=x.startSN=parseInt(Oi);break;case"SKIP":{const ia=new J(Oi);zr(x,ia,["RECENTLY-REMOVED-DATERANGES"]);const ja=ia.decimalInteger("SKIPPED-SEGMENTS");if(o(ja)){x.skippedSegments=ja;for(let Ra=ja;Ra--;)j.unshift(null);Ae+=ja}const Ua=ia.enumeratedString("RECENTLY-REMOVED-DATERANGES");Ua&&(x.recentlyRemovedDateranges=Ua.split(" "));break}case"TARGETDURATION":x.targetduration=Math.max(parseInt(Oi),1);break;case"VERSION":x.version=parseInt(Oi);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":x.live=!1;break;case"#":(Oi||Ga)&&Ct.tagList.push(Ga?[Oi,Ga]:[Oi]);break;case"DISCONTINUITY":Xe++,Ct.tagList.push(["DIS"]);break;case"GAP":Ct.gap=!0,Ct.tagList.push([mi]);break;case"BITRATE":Ct.tagList.push([mi,Oi]);break;case"DATERANGE":{const ia=new J(Oi);zr(x,ia,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),zr(x,ia,ia.clientAttrs);const ja=new Re(ia,x.dateRanges[ia.ID]);ja.isValid||x.skippedSegments?x.dateRanges[ja.id]=ja:B.warn(`Ignoring invalid DATERANGE tag: "${Oi}"`),Ct.tagList.push(["EXT-X-DATERANGE",Oi]);break}case"DEFINE":{{const ia=new J(Oi);zr(x,ia,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in ia?jn(x,ia,l):Sn(x,ia,t)}break}case"DISCONTINUITY-SEQUENCE":Xe=parseInt(Oi);break;case"KEY":{const ia=ii(Oi,t,x);if(ia.isSupported()){if(ia.method==="NONE"){Nr=void 0;break}Nr||(Nr={}),Nr[ia.keyFormat]&&(Nr=n({},Nr)),Nr[ia.keyFormat]=ia}else B.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Oi}"`);break}case"START":x.startTimeOffset=ri(Oi);break;case"MAP":{const ia=new J(Oi);if(zr(x,ia,["BYTERANGE","URI"]),Ct.duration){const ja=new Ee(i,t);ca(ja,ia,r,Nr),q=ja,Ct.initSegment=q,q.rawProgramDateTime&&!Ct.rawProgramDateTime&&(Ct.rawProgramDateTime=q.rawProgramDateTime)}else{const ja=Ct.byteRangeEndOffset;if(ja){const Ua=Ct.byteRangeStartOffset;cn=`${ja-Ua}@${Ua}`}else cn=null;ca(Ct,ia,r,Nr),q=Ct,Un=!0}break}case"SERVER-CONTROL":{const ia=new J(Oi);x.canBlockReload=ia.bool("CAN-BLOCK-RELOAD"),x.canSkipUntil=ia.optionalFloat("CAN-SKIP-UNTIL",0),x.canSkipDateRanges=x.canSkipUntil>0&&ia.bool("CAN-SKIP-DATERANGES"),x.partHoldBack=ia.optionalFloat("PART-HOLD-BACK",0),x.holdBack=ia.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const ia=new J(Oi);x.partTarget=ia.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ia=x.partList;ia||(ia=x.partList=[]);const ja=Oe>0?ia[ia.length-1]:void 0,Ua=Oe++,Ra=new J(Oi);zr(x,Ra,["BYTERANGE","URI"]);const Fs=new oe(Ra,Ct,t,Ua,ja);ia.push(Fs),Ct.duration+=Fs.duration;break}case"PRELOAD-HINT":{const ia=new J(Oi);zr(x,ia,["URI"]),x.preloadHint=ia;break}case"RENDITION-REPORT":{const ia=new J(Oi);zr(x,ia,["URI"]),x.renditionReports=x.renditionReports||[],x.renditionReports.push(ia);break}default:B.warn(`line parsed but not handled: ${Tt}`);break}}}lt&&!lt.relurl?(j.pop(),Ye-=lt.duration,x.partList&&(x.fragmentHint=lt)):x.partList&&(zi(Ct,lt),Ct.cc=Xe,x.fragmentHint=Ct,Nr&&xi(Ct,Nr,x));const gi=j.length,zn=j[0],Ii=j[gi-1];if(Ye+=x.skippedSegments*x.targetduration,Ye>0&&gi&&Ii){x.averagetargetduration=Ye/gi;const ea=Ii.sn;x.endSN=ea!=="initSegment"?ea:0,x.live||(Ii.endList=!0),zn&&(x.startCC=zn.cc)}else x.endSN=0,x.startCC=0;return x.fragmentHint&&(Ye+=x.fragmentHint.duration),x.totalduration=Ye,x.endCC=Xe,Or>0&&Bi(j,Or),x}}function ii(d,e,t){var r,i;const s=new J(d);zr(t,s,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const l=(r=s.METHOD)!=null?r:"",x=s.URI,j=s.hexadecimalInteger("IV"),q=s.KEYFORMATVERSIONS,Ae=(i=s.KEYFORMAT)!=null?i:"identity";x&&s.IV&&!j&&B.error(`Invalid IV: ${s.IV}`);const Oe=x?hi.resolve(x,e):"",Ye=(q||"1").split("/").map(Number).filter(Number.isFinite);return new gn(l,Oe,Ae,Ye,j)}function ri(d){const t=new J(d).decimalFloatingPoint("TIME-OFFSET");return o(t)?t:null}function bi(d,e){let t=(d||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const i=t.filter(s=>wn(s,r));i.length&&(e[`${r}Codec`]=i.join(","),t=t.filter(s=>i.indexOf(s)===-1))}),e.unknownCodecs=t}function Di(d,e,t){const r=e[t];r&&(d[t]=r)}function Bi(d,e){let t=d[e];for(let r=e;r--;){const i=d[r];if(!i)return;i.programDateTime=t.programDateTime-i.duration*1e3,t=i}}function zi(d,e){d.rawProgramDateTime?d.programDateTime=Date.parse(d.rawProgramDateTime):e!=null&&e.programDateTime&&(d.programDateTime=e.endProgramDateTime),o(d.programDateTime)||(d.programDateTime=null,d.rawProgramDateTime=null)}function ca(d,e,t,r){d.relurl=e.URI,e.BYTERANGE&&d.setByteRange(e.BYTERANGE),d.level=t,d.sn="initSegment",r&&(d.levelkeys=r),d.initSegment=null}function xi(d,e,t){d.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(i=>e[i].isCommonEncryption)&&r.push(d)}var vn={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},jt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Ln(d){const{type:e}=d;switch(e){case vn.AUDIO_TRACK:return jt.AUDIO;case vn.SUBTITLE_TRACK:return jt.SUBTITLE;default:return jt.MAIN}}function Gn(d,e){let t=d.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Ei{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(a.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(a.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,i=t.loader,s=r||i,l=new s(t);return this.loaders[e.type]=l,l}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:r}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:vn.MANIFEST,url:r,deliveryDirectives:null})}onLevelLoading(e,t){const{id:r,level:i,pathwayId:s,url:l,deliveryDirectives:x}=t;this.load({id:r,level:i,pathwayId:s,responseType:"text",type:vn.LEVEL,url:l,deliveryDirectives:x})}onAudioTrackLoading(e,t){const{id:r,groupId:i,url:s,deliveryDirectives:l}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:vn.AUDIO_TRACK,url:s,deliveryDirectives:l})}onSubtitleTrackLoading(e,t){const{id:r,groupId:i,url:s,deliveryDirectives:l}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:vn.SUBTITLE_TRACK,url:s,deliveryDirectives:l})}load(e){var t;const r=this.hls.config;let i=this.getInternalLoader(e);if(i){const q=i.context;if(q&&q.url===e.url&&q.level===e.level){B.trace("[playlist-loader]: playlist request ongoing");return}B.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}let s;if(e.type===vn.MANIFEST?s=r.manifestLoadPolicy.default:s=n({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),o((t=e.deliveryDirectives)==null?void 0:t.part)){let q;if(e.type===vn.LEVEL&&e.level!==null?q=this.hls.levels[e.level].details:e.type===vn.AUDIO_TRACK&&e.id!==null?q=this.hls.audioTracks[e.id].details:e.type===vn.SUBTITLE_TRACK&&e.id!==null&&(q=this.hls.subtitleTracks[e.id].details),q){const Ae=q.partTarget,Oe=q.targetduration;if(Ae&&Oe){const Ye=Math.max(Ae*3,Oe*.8)*1e3;s=n({},s,{maxTimeToFirstByteMs:Math.min(Ye,s.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Ye,s.maxTimeToFirstByteMs)})}}}const l=s.errorRetry||s.timeoutRetry||{},x={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},j={onSuccess:(q,Ae,Oe,Ye)=>{const Xe=this.getInternalLoader(Oe);this.resetInternalLoader(Oe.type);const lt=q.data;if(lt.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(q,Oe,new Error("no EXTM3U delimiter"),Ye||null,Ae);return}Ae.parsing.start=performance.now(),hi.isMediaPlaylist(lt)?this.handleTrackOrLevelPlaylist(q,Ae,Oe,Ye||null,Xe):this.handleMasterPlaylist(q,Ae,Oe,Ye)},onError:(q,Ae,Oe,Ye)=>{this.handleNetworkError(Ae,Oe,!1,q,Ye)},onTimeout:(q,Ae,Oe)=>{this.handleNetworkError(Ae,Oe,!0,void 0,q)}};i.load(e,x,j)}handleMasterPlaylist(e,t,r,i){const s=this.hls,l=e.data,x=Gn(e,r),j=hi.parseMasterPlaylist(l,x);if(j.playlistParsingError){this.handleManifestParsingError(e,r,j.playlistParsingError,i,t);return}const{contentSteering:q,levels:Ae,sessionData:Oe,sessionKeys:Ye,startTimeOffset:Xe,variableList:lt}=j;this.variableList=lt;const{AUDIO:Ct=[],SUBTITLES:Tt,"CLOSED-CAPTIONS":vr}=hi.parseMasterPlaylistMedia(l,x,j);Ct.length&&!Ct.some(Or=>!Or.url)&&Ae[0].audioCodec&&!Ae[0].attrs.AUDIO&&(B.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Ct.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new J({}),bitrate:0,url:""})),s.trigger(a.MANIFEST_LOADED,{levels:Ae,audioTracks:Ct,subtitles:Tt,captions:vr,contentSteering:q,url:x,stats:t,networkDetails:i,sessionData:Oe,sessionKeys:Ye,startTimeOffset:Xe,variableList:lt})}handleTrackOrLevelPlaylist(e,t,r,i,s){const l=this.hls,{id:x,level:j,type:q}=r,Ae=Gn(e,r),Oe=0,Ye=o(j)?j:o(x)?x:0,Xe=Ln(r),lt=hi.parseLevelPlaylist(e.data,Ae,Ye,Xe,Oe,this.variableList);if(q===vn.MANIFEST){const Ct={attrs:new J({}),bitrate:0,details:lt,name:"",url:Ae};l.trigger(a.MANIFEST_LOADED,{levels:[Ct],audioTracks:[],url:Ae,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=lt,this.handlePlaylistLoaded(lt,e,t,r,i,s)}handleManifestParsingError(e,t,r,i,s){this.hls.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.MANIFEST_PARSING_ERROR,fatal:t.type===vn.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:i,stats:s})}handleNetworkError(e,t,r=!1,i,s){let l=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===vn.LEVEL?l+=`: ${e.level} id: ${e.id}`:(e.type===vn.AUDIO_TRACK||e.type===vn.SUBTITLE_TRACK)&&(l+=` id: ${e.id} group-id: "${e.groupId}"`);const x=new Error(l);B.warn(`[playlist-loader]: ${l}`);let j=m.UNKNOWN,q=!1;const Ae=this.getInternalLoader(e);switch(e.type){case vn.MANIFEST:j=r?m.MANIFEST_LOAD_TIMEOUT:m.MANIFEST_LOAD_ERROR,q=!0;break;case vn.LEVEL:j=r?m.LEVEL_LOAD_TIMEOUT:m.LEVEL_LOAD_ERROR,q=!1;break;case vn.AUDIO_TRACK:j=r?m.AUDIO_TRACK_LOAD_TIMEOUT:m.AUDIO_TRACK_LOAD_ERROR,q=!1;break;case vn.SUBTITLE_TRACK:j=r?m.SUBTITLE_TRACK_LOAD_TIMEOUT:m.SUBTITLE_LOAD_ERROR,q=!1;break}Ae&&this.resetInternalLoader(e.type);const Oe={type:A.NETWORK_ERROR,details:j,fatal:q,url:e.url,loader:Ae,context:e,error:x,networkDetails:t,stats:s};if(i){const Ye=(t==null?void 0:t.url)||e.url;Oe.response=ie({url:Ye,data:void 0},i)}this.hls.trigger(a.ERROR,Oe)}handlePlaylistLoaded(e,t,r,i,s,l){const x=this.hls,{type:j,level:q,id:Ae,groupId:Oe,deliveryDirectives:Ye}=i,Xe=Gn(t,i),lt=Ln(i),Ct=typeof i.level=="number"&<===jt.MAIN?q:void 0;if(!e.fragments.length){const vr=new Error("No Segments found in Playlist");x.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.LEVEL_EMPTY_ERROR,fatal:!1,url:Xe,error:vr,reason:vr.message,response:t,context:i,level:Ct,parent:lt,networkDetails:s,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Tt=e.playlistParsingError;if(Tt){x.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.LEVEL_PARSING_ERROR,fatal:!1,url:Xe,error:Tt,reason:Tt.message,response:t,context:i,level:Ct,parent:lt,networkDetails:s,stats:r});return}switch(e.live&&l&&(l.getCacheAge&&(e.ageHeader=l.getCacheAge()||0),(!l.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),j){case vn.MANIFEST:case vn.LEVEL:x.trigger(a.LEVEL_LOADED,{details:e,level:Ct||0,id:Ae||0,stats:r,networkDetails:s,deliveryDirectives:Ye});break;case vn.AUDIO_TRACK:x.trigger(a.AUDIO_TRACK_LOADED,{details:e,id:Ae||0,groupId:Oe||"",stats:r,networkDetails:s,deliveryDirectives:Ye});break;case vn.SUBTITLE_TRACK:x.trigger(a.SUBTITLE_TRACK_LOADED,{details:e,id:Ae||0,groupId:Oe||"",stats:r,networkDetails:s,deliveryDirectives:Ye});break}}}function Qi(d,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=d,e.dispatchEvent(t)}function da(d,e){const t=d.mode;if(t==="disabled"&&(d.mode="hidden"),d.cues&&!d.cues.getCueById(e.id))try{if(d.addCue(e),!d.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){B.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,d.addCue(i)}catch(i){B.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}t==="disabled"&&(d.mode=t)}function xa(d){const e=d.mode;if(e==="disabled"&&(d.mode="hidden"),d.cues)for(let t=d.cues.length;t--;)d.removeCue(d.cues[t]);e==="disabled"&&(d.mode=e)}function Ji(d,e,t,r){const i=d.mode;if(i==="disabled"&&(d.mode="hidden"),d.cues&&d.cues.length>0){const s=_i(d.cues,e,t);for(let l=0;l<s.length;l++)(!r||r(s[l]))&&d.removeCue(s[l])}i==="disabled"&&(d.mode=i)}function Sa(d,e){if(e<d[0].startTime)return 0;const t=d.length-1;if(e>d[t].endTime)return-1;let r=0,i=t;for(;r<=i;){const s=Math.floor((i+r)/2);if(e<d[s].startTime)i=s-1;else if(e>d[s].startTime&&r<t)r=s+1;else return s}return d[r].startTime-e<e-d[i].startTime?r:i}function _i(d,e,t){const r=[],i=Sa(d,e);if(i>-1)for(let s=i,l=d.length;s<l;s++){const x=d[s];if(x.startTime>=e&&x.endTime<=t)r.push(x);else if(x.startTime>t)return r}return r}function ai(d){const e=[];for(let t=0;t<d.length;t++){const r=d[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(d[t])}return e}var $i={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const ra=.25;function Ea(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function xs(d,e,t,r,i){let s=new d(e,t,"");try{s.value=r,i&&(s.type=i)}catch(l){s=new d(e,t,JSON.stringify(i?ie({type:i},r):r))}return s}const oi=(()=>{const d=Ea();try{d&&new d(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Ca(d,e){return d.getTime()/1e3-e}function ga(d){return Uint8Array.from(d.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Qa{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(xa(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const r=e[t];if(r.kind==="metadata"&&r.label==="id3")return Qi(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:i}}}=this;if(!r&&!i)return;const{samples:s}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=Ea();if(l)for(let x=0;x<s.length;x++){const j=s[x].type;if(j===$i.emsg&&!r||!i)continue;const q=Ie(s[x].data);if(q){const Ae=s[x].pts;let Oe=Ae+s[x].duration;Oe>oi&&(Oe=oi),Oe-Ae<=0&&(Oe=Ae+ra);for(let Xe=0;Xe<q.length;Xe++){const lt=q[Xe];if(!te(lt)){this.updateId3CueEnds(Ae,j);const Ct=xs(l,Ae,Oe,lt,j);Ct&&this.id3Track.addCue(Ct)}}}}}updateId3CueEnds(e,t){var r;const i=(r=this.id3Track)==null?void 0:r.cues;if(i)for(let s=i.length;s--;){const l=i[s];l.type===t&&l.startTime<e&&l.endTime===oi&&(l.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:i}){const{id3Track:s,hls:l}=this;if(!l)return;const{config:{enableEmsgMetadataCues:x,enableID3MetadataCues:j}}=l;if(s&&(x||j)){let q;i==="audio"?q=Ae=>Ae.type===$i.audioId3&&j:i==="video"?q=Ae=>Ae.type===$i.emsg&&x:q=Ae=>Ae.type===$i.audioId3&&j||Ae.type===$i.emsg&&x,Ji(s,t,r,q)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:r,id3Track:i}=this,{dateRanges:s}=t,l=Object.keys(s);if(i){const Ae=Object.keys(r).filter(Oe=>!l.includes(Oe));for(let Oe=Ae.length;Oe--;){const Ye=Ae[Oe];Object.keys(r[Ye].cues).forEach(Xe=>{i.removeCue(r[Ye].cues[Xe])}),delete r[Ye]}}const x=t.fragments[t.fragments.length-1];if(l.length===0||!o(x==null?void 0:x.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const j=x.programDateTime/1e3-x.start,q=Ea();for(let Ae=0;Ae<l.length;Ae++){const Oe=l[Ae],Ye=s[Oe],Xe=Ca(Ye.startDate,j),lt=r[Oe],Ct=(lt==null?void 0:lt.cues)||{};let Tt=(lt==null?void 0:lt.durationKnown)||!1,vr=oi;const Nr=Ye.endDate;if(Nr)vr=Ca(Nr,j),Tt=!0;else if(Ye.endOnNext&&!Tt){const Un=l.reduce((cn,gi)=>{if(gi!==Ye.id){const zn=s[gi];if(zn.class===Ye.class&&zn.startDate>Ye.startDate&&(!cn||Ye.startDate<cn.startDate))return zn}return cn},null);Un&&(vr=Ca(Un.startDate,j),Tt=!0)}const Or=Object.keys(Ye.attr);for(let Un=0;Un<Or.length;Un++){const cn=Or[Un];if(!be(cn))continue;const gi=Ct[cn];if(gi)Tt&&!lt.durationKnown&&(gi.endTime=vr);else if(q){let zn=Ye.attr[cn];Ce(cn)&&(zn=ga(zn));const Ii=xs(q,Xe,vr,{key:cn,data:zn},$i.dateRange);Ii&&(Ii.id=Oe,this.id3Track.addCue(Ii),Ct[cn]=Ii)}}r[Oe]={cues:Ct,dateRange:Ye,durationKnown:Tt}}}}class _s{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:r,targetduration:i}=e,{liveSyncDuration:s,liveSyncDurationCount:l,lowLatencyMode:x}=this.config,j=this.hls.userConfig;let q=x&&r||t;(j.liveSyncDuration||j.liveSyncDurationCount||q===0)&&(q=s!==void 0?s:l*i);const Ae=i;return q+Math.min(this.stallCount*1,Ae)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,r=this.levelDetails;if(e===null||t===null||r===null)return null;const i=r.edge,s=e-t-this.edgeStalled,l=i-r.totalduration,x=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(l,s),x)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(a.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(a.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(a.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(a.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var r;t.details===m.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&B.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!t.live)return;const l=this.targetLatency;if(l===null)return;const x=r-l,j=Math.min(this.maxLatency,l+t.targetduration);if(x<j&&x>.05&&this.forwardBufferLength>1){const Ae=Math.min(2,Math.max(1,s)),Oe=Math.round(2/(1+Math.exp(-.75*x-this.edgeStalled))*20)/20;e.playbackRate=Math.min(Ae,Math.max(1,Oe))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const is=["NONE","TYPE-0","TYPE-1",null];function Da(d){return is.indexOf(d)>-1}const Ni=["SDR","PQ","HLG"];function la(d){return!!d&&Ni.indexOf(d)>-1}var ps={No:"",Yes:"YES",v2:"v2"};function as(d){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=d,i=r<e/2;return e&&i?t?ps.v2:ps.Yes:ps.No}class ts{constructor(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Wi{constructor(e){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return ms(this._audioGroups,e)}hasSubtitleGroup(e){return ms(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(t)===-1&&r.push(t)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(t)===-1&&r.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function ms(d,e){return!e||!d?!1:d.indexOf(e)!==-1}function aa(d,e){const t=e.startPTS;if(o(t)){let r=0,i;e.sn>d.sn?(r=t-d.start,i=d):(r=d.start-t,i=e),i.duration!==r&&(i.duration=r)}else e.sn>d.sn?d.cc===e.cc&&d.minEndPTS?e.start=d.start+(d.minEndPTS-d.start):e.start=d.start+d.duration:e.start=Math.max(d.start-e.duration,0)}function co(d,e,t,r,i,s){r-t<=0&&(B.warn("Fragment should have a positive duration",e),r=t+e.duration,s=i+e.duration);let x=t,j=r;const q=e.startPTS,Ae=e.endPTS;if(o(q)){const Tt=Math.abs(q-t);o(e.deltaPTS)?e.deltaPTS=Math.max(Tt,e.deltaPTS):e.deltaPTS=Tt,x=Math.max(t,q),t=Math.min(t,q),i=Math.min(i,e.startDTS),j=Math.min(r,Ae),r=Math.max(r,Ae),s=Math.max(s,e.endDTS)}const Oe=t-e.start;e.start!==0&&(e.start=t),e.duration=r-e.start,e.startPTS=t,e.maxStartPTS=x,e.startDTS=i,e.endPTS=r,e.minEndPTS=j,e.endDTS=s;const Ye=e.sn;if(!d||Ye<d.startSN||Ye>d.endSN)return 0;let Xe;const lt=Ye-d.startSN,Ct=d.fragments;for(Ct[lt]=e,Xe=lt;Xe>0;Xe--)aa(Ct[Xe],Ct[Xe-1]);for(Xe=lt;Xe<Ct.length-1;Xe++)aa(Ct[Xe],Ct[Xe+1]);return d.fragmentHint&&aa(Ct[Ct.length-1],d.fragmentHint),d.PTSKnown=d.alignedSliding=!0,Oe}function Qs(d,e){let t=null;const r=d.fragments;for(let x=r.length-1;x>=0;x--){const j=r[x].initSegment;if(j){t=j;break}}d.fragmentHint&&delete d.fragmentHint.endPTS;let i;Bo(d,e,(x,j,q,Ae)=>{if(e.skippedSegments&&j.cc!==x.cc){const Oe=x.cc-j.cc;for(let Ye=q;Ye<Ae.length;Ye++)Ae[Ye].cc+=Oe}o(x.startPTS)&&o(x.endPTS)&&(j.start=j.startPTS=x.startPTS,j.startDTS=x.startDTS,j.maxStartPTS=x.maxStartPTS,j.endPTS=x.endPTS,j.endDTS=x.endDTS,j.minEndPTS=x.minEndPTS,j.duration=x.endPTS-x.startPTS,j.duration&&(i=j),e.PTSKnown=e.alignedSliding=!0),j.elementaryStreams=x.elementaryStreams,j.loader=x.loader,j.stats=x.stats,x.initSegment&&(j.initSegment=x.initSegment,t=x.initSegment)});const s=e.fragments;if(t&&(e.fragmentHint?s.concat(e.fragmentHint):s).forEach(j=>{var q;j&&(!j.initSegment||j.initSegment.relurl===((q=t)==null?void 0:q.relurl))&&(j.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(x=>!x),e.deltaUpdateFailed){B.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let x=e.skippedSegments;x--;)s.shift();e.startSN=s[0].sn}else e.canSkipDateRanges&&(e.dateRanges=_o(d.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=s[s.length-1].cc}fs(d.partList,e.partList,(x,j)=>{j.elementaryStreams=x.elementaryStreams,j.stats=x.stats}),i?co(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):ss(d,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=d.driftStartTime,e.driftStart=d.driftStart;const l=e.advancedDateTime;if(e.advanced&&l){const x=e.edge;e.driftStart||(e.driftStartTime=l,e.driftStart=x),e.driftEndTime=l,e.driftEnd=x}else e.driftEndTime=d.driftEndTime,e.driftEnd=d.driftEnd,e.advancedDateTime=d.advancedDateTime}function _o(d,e,t){const r=n({},d);return t&&t.forEach(i=>{delete r[i]}),Object.keys(e).forEach(i=>{const s=new Re(e[i].attr,r[i]);s.isValid?r[i]=s:B.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[i].attr)}"`)}),r}function fs(d,e,t){if(d&&e){let r=0;for(let i=0,s=d.length;i<=s;i++){const l=d[i],x=e[i+r];l&&x&&l.index===x.index&&l.fragment.sn===x.fragment.sn?t(l,x):r--}}}function Bo(d,e,t){const r=e.skippedSegments,i=Math.max(d.startSN,e.startSN)-e.startSN,s=(d.fragmentHint?1:0)+(r?e.endSN:Math.min(d.endSN,e.endSN))-e.startSN,l=e.startSN-d.startSN,x=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,j=d.fragmentHint?d.fragments.concat(d.fragmentHint):d.fragments;for(let q=i;q<=s;q++){const Ae=j[l+q];let Oe=x[q];r&&!Oe&&q<r&&(Oe=e.fragments[q]=Ae),Ae&&Oe&&t(Ae,Oe,q,x)}}function ss(d,e){const t=e.startSN+e.skippedSegments-d.startSN,r=d.fragments;t<0||t>=r.length||Yn(e,r[t].start)}function Yn(d,e){if(e){const t=d.fragments;for(let r=d.skippedSegments;r<t.length;r++)t[r].start+=e;d.fragmentHint&&(d.fragmentHint.start+=e)}}function La(d,e=1/0){let t=1e3*d.targetduration;if(d.updated){const r=d.fragments;if(r.length&&t*4>e){const s=r[r.length-1].duration*1e3;s<t&&(t=s)}}else t/=2;return Math.round(t)}function io(d,e,t){if(!(d!=null&&d.details))return null;const r=d.details;let i=r.fragments[e-r.startSN];return i||(i=r.fragmentHint,i&&i.sn===e)?i:e<r.startSN&&t&&t.sn===e?t:null}function Zi(d,e,t){var r;return d!=null&&d.details?ta((r=d.details)==null?void 0:r.partList,e,t):null}function ta(d,e,t){if(d)for(let r=d.length;r--;){const i=d[r];if(i.index===t&&i.fragment.sn===e)return i}return null}function Hi(d){d.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(i=>{i.level=t})})}function ki(d){switch(d.details){case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_TIMEOUT:case m.LEVEL_LOAD_TIMEOUT:case m.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function ya(d,e){const t=ki(e);return d.default[`${t?"timeout":"error"}Retry`]}function Na(d,e){const t=d.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*d.retryDelayMs,d.maxRetryDelayMs)}function Rs(d){return ie(ie({},d),{errorRetry:null,timeoutRetry:null})}function cs(d,e,t,r){if(!d)return!1;const i=r==null?void 0:r.code,s=e<d.maxNumRetry&&(Es(i)||!!t);return d.shouldRetry?d.shouldRetry(d,e,t,r,s):s}function Es(d){return d===0&&navigator.onLine===!1||!!d&&(d<400||d>499)}const rs={search:function(d,e){let t=0,r=d.length-1,i=null,s=null;for(;t<=r;){i=(t+r)/2|0,s=d[i];const l=e(s);if(l>0)t=i+1;else if(l<0)r=i-1;else return s}return null}};function So(d,e,t){if(e===null||!Array.isArray(d)||!d.length||!o(e))return null;const r=d[0].programDateTime;if(e<(r||0))return null;const i=d[d.length-1].endProgramDateTime;if(e>=(i||0))return null;t=t||0;for(let s=0;s<d.length;++s){const l=d[s];if(Os(e,t,l))return l}return null}function go(d,e,t=0,r=0,i=.005){let s=null;if(d){s=e[d.sn-e[0].sn+1]||null;const x=d.endDTS-t;x>0&&x<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(s=e[0]);if(s&&((!d||d.level===s.level)&&zs(t,r,s)===0||eo(s,d,Math.min(i,r))))return s;const l=rs.search(e,zs.bind(null,t,r));return l&&(l!==d||!s)?l:s}function eo(d,e,t){if(e&&e.start===0&&e.level<d.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((i,s)=>(s[0]==="INF"&&(i+=parseFloat(s[1])),i),t);return d.start<=r}return!1}function zs(d=0,e=0,t){if(t.start<=d&&t.start+t.duration>d)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=d?1:t.start-r>d&&t.start?-1:0}function Os(d,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>d}function Li(d,e){return rs.search(d,t=>t.cc<e?1:t.cc>e?-1:0)}var pi={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},ua={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class gs{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=B.log.bind(B,"[info]:"),this.warn=B.warn.bind(B,"[warning]:"),this.error=B.error.bind(B,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(a.ERROR,this.onError,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(a.ERROR,this.onError,this),e.off(a.ERROR,this.onErrorOut,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===jt.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var r,i;if(t.fatal)return;const s=this.hls,l=t.context;switch(t.details){case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case m.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction={action:pi.DoNothing,flags:ua.None};return}case m.FRAG_GAP:case m.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=pi.SendAlternateToPenaltyBox;return}case m.LEVEL_EMPTY_ERROR:case m.LEVEL_PARSING_ERROR:{var x,j;const q=t.parent===jt.MAIN?t.level:s.loadLevel;t.details===m.LEVEL_EMPTY_ERROR&&((x=t.context)!=null&&(j=x.levelDetails)!=null&&j.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,q):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,q))}return;case m.LEVEL_LOAD_ERROR:case m.LEVEL_LOAD_TIMEOUT:typeof(l==null?void 0:l.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,l.level));return;case m.AUDIO_TRACK_LOAD_ERROR:case m.AUDIO_TRACK_LOAD_TIMEOUT:case m.SUBTITLE_LOAD_ERROR:case m.SUBTITLE_TRACK_LOAD_TIMEOUT:if(l){const q=s.levels[s.loadLevel];if(q&&(l.type===vn.AUDIO_TRACK&&q.hasAudioGroup(l.groupId)||l.type===vn.SUBTITLE_TRACK&&q.hasSubtitleGroup(l.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.loadLevel),t.errorAction.action=pi.SendAlternateToPenaltyBox,t.errorAction.flags=ua.MoveAllAlternatesMatchingHost;return}}return;case m.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const q=s.levels[s.loadLevel],Ae=q==null?void 0:q.attrs["HDCP-LEVEL"];Ae?t.errorAction={action:pi.SendAlternateToPenaltyBox,flags:ua.MoveAllAlternatesMatchingHDCP,hdcpLevel:Ae}:this.keySystemError(t)}return;case m.BUFFER_ADD_CODEC_ERROR:case m.REMUX_ALLOC_ERROR:case m.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(i=t.level)!=null?i:s.loadLevel);return;case m.INTERNAL_EXCEPTION:case m.BUFFER_APPENDING_ERROR:case m.BUFFER_FULL_ERROR:case m.LEVEL_SWITCH_ERROR:case m.BUFFER_STALLED_ERROR:case m.BUFFER_SEEK_OVER_HOLE:case m.BUFFER_NUDGE_ON_STALL:t.errorAction={action:pi.DoNothing,flags:ua.None};return}t.type===A.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const r=this.hls,i=ya(r.config.playlistLoadPolicy,e),s=this.playlistError++;if(cs(i,s,ki(e),e.response))return{action:pi.RetryRequest,flags:ua.None,retryConfig:i,retryCount:s};const x=this.getLevelSwitchAction(e,t);return i&&(x.retryConfig=i,x.retryCount=s),x}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),i=t.levels[r],{fragLoadPolicy:s,keyLoadPolicy:l}=t.config,x=ya(e.details.startsWith("key")?l:s,e),j=t.levels.reduce((Ae,Oe)=>Ae+Oe.fragmentError,0);if(i&&(e.details!==m.FRAG_GAP&&i.fragmentError++,cs(x,j,ki(e),e.response)))return{action:pi.RetryRequest,flags:ua.None,retryConfig:x,retryCount:j};const q=this.getLevelSwitchAction(e,r);return x&&(q.retryConfig=x,q.retryCount=j),q}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const i=this.hls.levels[t];if(i){var s,l;const q=e.details;i.loadError++,q===m.BUFFER_APPEND_ERROR&&i.fragmentError++;let Ae=-1;const{levels:Oe,loadLevel:Ye,minAutoLevel:Xe,maxAutoLevel:lt}=r;r.autoLevelEnabled||(r.loadLevel=-1);const Ct=(s=e.frag)==null?void 0:s.type,vr=(Ct===jt.AUDIO&&q===m.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(q===m.BUFFER_ADD_CODEC_ERROR||q===m.BUFFER_APPEND_ERROR))&&Oe.some(({audioCodec:gi})=>i.audioCodec!==gi),Or=e.sourceBufferName==="video"&&(q===m.BUFFER_ADD_CODEC_ERROR||q===m.BUFFER_APPEND_ERROR)&&Oe.some(({codecSet:gi,audioCodec:zn})=>i.codecSet!==gi&&i.audioCodec===zn),{type:Un,groupId:cn}=(l=e.context)!=null?l:{};for(let gi=Oe.length;gi--;){const zn=(gi+Ye)%Oe.length;if(zn!==Ye&&zn>=Xe&&zn<=lt&&Oe[zn].loadError===0){var x,j;const Ii=Oe[zn];if(q===m.FRAG_GAP&&Ct===jt.MAIN&&e.frag){const ea=Oe[zn].details;if(ea){const mi=go(e.frag,ea.fragments,e.frag.start);if(mi!=null&&mi.gap)continue}}else{if(Un===vn.AUDIO_TRACK&&Ii.hasAudioGroup(cn)||Un===vn.SUBTITLE_TRACK&&Ii.hasSubtitleGroup(cn))continue;if(Ct===jt.AUDIO&&(x=i.audioGroups)!=null&&x.some(ea=>Ii.hasAudioGroup(ea))||Ct===jt.SUBTITLE&&(j=i.subtitleGroups)!=null&&j.some(ea=>Ii.hasSubtitleGroup(ea))||vr&&i.audioCodec===Ii.audioCodec||!vr&&i.audioCodec!==Ii.audioCodec||Or&&i.codecSet===Ii.codecSet)continue}Ae=zn;break}}if(Ae>-1&&r.loadLevel!==Ae)return e.levelRetry=!0,this.playlistError=0,{action:pi.SendAlternateToPenaltyBox,flags:ua.None,nextAutoLevel:Ae}}return{action:pi.SendAlternateToPenaltyBox,flags:ua.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case pi.DoNothing:break;case pi.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==m.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case pi.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;const{flags:i,hdcpLevel:s,nextAutoLevel:l}=r;switch(i){case ua.None:this.switchLevel(e,l);break;case ua.MoveAllAlternatesMatchingHDCP:s&&(t.maxHdcpLevel=is[is.indexOf(s)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}r.resolved||this.switchLevel(e,l)}switchLevel(e,t){t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class Oa{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=B.log.bind(B,`${t}:`),this.warn=B.warn.bind(B,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,r){const i=t==null?void 0:t.renditionReports;if(i){let s=-1;for(let l=0;l<i.length;l++){const x=i[l];let j;try{j=new self.URL(x.URI,t.url).href}catch(q){B.warn(`Could not construct new URL for Rendition Report: ${q}`),j=x.URI||""}if(j===e){s=l;break}else j===e.substring(0,j.length)&&(s=l)}if(s!==-1){const l=i[s],x=parseInt(l["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let j=parseInt(l["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const Ae=Math.min(t.age-t.partTarget,t.targetduration);j>=0&&Ae>t.partTarget&&(j+=1)}const q=r&&as(r);return new ts(x,j>=0?j:void 0,q)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,r){const{details:i,stats:s}=t,l=self.performance.now(),x=s.loading.first?Math.max(0,l-s.loading.first):0;if(i.advancedDateTime=Date.now()-x,i.live||r!=null&&r.live){if(i.reloaded(r),r&&this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),r&&i.fragments.length>0&&Qs(r,i),!this.canLoad||!i.live)return;let j,q,Ae;if(i.canBlockReload&&i.endSN&&i.advanced){const Tt=this.hls.config.lowLatencyMode,vr=i.lastPartSn,Nr=i.endSN,Or=i.lastPartIndex,Un=Or!==-1,cn=vr===Nr,gi=Tt?0:Or;Un?(q=cn?Nr+1:vr,Ae=cn?gi:Or+1):q=Nr+1;const zn=i.age,Ii=zn+i.ageHeader;let ea=Math.min(Ii-i.partTarget,i.targetduration*1.5);if(ea>0){if(r&&ea>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${ea} with playlist age: ${i.age}`),ea=0;else{const mi=Math.floor(ea/i.targetduration);if(q+=mi,Ae!==void 0){const Oi=Math.round(ea%i.targetduration/i.partTarget);Ae+=Oi}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${zn.toFixed(2)}s goal: ${ea} skip sn ${mi} to part ${Ae}`)}i.tuneInGoal=ea}if(j=this.getDeliveryDirectives(i,t.deliveryDirectives,q,Ae),Tt||!cn){this.loadPlaylist(j);return}}else(i.canBlockReload||i.canSkipUntil)&&(j=this.getDeliveryDirectives(i,t.deliveryDirectives,q,Ae));const Oe=this.hls.mainForwardBufferInfo,Ye=Oe?Oe.end-Oe.len:0,Xe=(i.edge-Ye)*1e3,lt=La(i,Xe);i.updated&&l>this.requestScheduled+lt&&(this.requestScheduled=s.loading.start),q!==void 0&&i.canBlockReload?this.requestScheduled=s.loading.first+lt-(i.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+lt<l?this.requestScheduled=l:this.requestScheduled-l<=0&&(this.requestScheduled+=lt);let Ct=this.requestScheduled-l;Ct=Math.max(0,Ct),this.log(`reload live playlist ${e} in ${Math.round(Ct)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(j),Ct)}else this.clearTimer()}getDeliveryDirectives(e,t,r,i){let s=as(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,i=t.part,s=ps.No),new ts(r,i,s)}checkRetry(e){const t=e.details,r=ki(e),i=e.errorAction,{action:s,retryCount:l=0,retryConfig:x}=i||{},j=!!i&&!!x&&(s===pi.RetryRequest||!i.resolved&&s===pi.SendAlternateToPenaltyBox);if(j){var q;if(this.requestScheduled=-1,l>=x.maxNumRetry)return!1;if(r&&(q=e.context)!=null&&q.deliveryDirectives)this.warn(`Retrying playlist loading ${l+1}/${x.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const Ae=Na(x,l);this.timer=self.setTimeout(()=>this.loadPlaylist(),Ae),this.warn(`Retrying playlist loading ${l+1}/${x.maxNumRetry} after "${t}" in ${Ae}ms`)}e.levelRetry=!0,i.resolved=!0}return j}}class Ns{constructor(e,t=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=r}sample(e,t){const r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class Vs{constructor(e,t,r,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Ns(e),this.fast_=new Ns(t),this.defaultTTFB_=i,this.ttfb_=new Ns(e)}update(e,t){const{slow_:r,fast_:i,ttfb_:s}=this;r.halfLife!==e&&(this.slow_=new Ns(e,r.getEstimate(),r.getTotalWeight())),i.halfLife!==t&&(this.fast_=new Ns(t,i.getEstimate(),i.getTotalWeight())),s.halfLife!==e&&(this.ttfb_=new Ns(e,s.getEstimate(),s.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const r=8*t,i=e/1e3,s=r/i;this.fast_.sample(i,s),this.slow_.sample(i,s)}sampleTTFB(e){const t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const vo={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Ps={};function Ti(d,e,t,r,i,s){const l=d.audioCodec?d.audioGroups:null,x=s==null?void 0:s.audioCodec,j=s==null?void 0:s.channels,q=j?parseInt(j):x?1/0:2;let Ae=null;if(l!=null&&l.length)try{l.length===1&&l[0]?Ae=e.groups[l[0]].channels:Ae=l.reduce((Oe,Ye)=>{if(Ye){const Xe=e.groups[Ye];if(!Xe)throw new Error(`Audio track group ${Ye} not found`);Object.keys(Xe.channels).forEach(lt=>{Oe[lt]=(Oe[lt]||0)+Xe.channels[lt]})}return Oe},{2:0})}catch(Oe){return!0}return d.videoCodec!==void 0&&(d.width>1920&&d.height>1088||d.height>1920&&d.width>1088||d.frameRate>Math.max(r,30)||d.videoRange!=="SDR"&&d.videoRange!==t||d.bitrate>Math.max(i,8e6))||!!Ae&&o(q)&&Object.keys(Ae).some(Oe=>parseInt(Oe)>q)}function Dl(d,e,t){const r=d.videoCodec,i=d.audioCodec;if(!r||!i||!t)return Promise.resolve(vo);const s={width:d.width,height:d.height,bitrate:Math.ceil(Math.max(d.bitrate*.9,d.averageBitrate)),framerate:d.frameRate||30},l=d.videoRange;l!=="SDR"&&(s.transferFunction=l.toLowerCase());const x=r.split(",").map(j=>({type:"media-source",video:ie(ie({},s),{},{contentType:Fr(j,"video")})}));return i&&d.audioGroups&&d.audioGroups.forEach(j=>{var q;j&&((q=e.groups[j])==null||q.tracks.forEach(Ae=>{if(Ae.groupId===j){const Oe=Ae.channels||"",Ye=parseFloat(Oe);o(Ye)&&Ye>2&&x.push.apply(x,i.split(",").map(Xe=>({type:"media-source",audio:{contentType:Fr(Xe,"audio"),channels:""+Ye}})))}}))}),Promise.all(x.map(j=>{const q=Js(j);return Ps[q]||(Ps[q]=t.decodingInfo(j))})).then(j=>({supported:!j.some(q=>!q.supported),configurations:x,decodingInfoResults:j})).catch(j=>({supported:!1,configurations:x,decodingInfoResults:[],error:j}))}function Js(d){const{audio:e,video:t}=d,r=t||e;if(r){const i=r.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${i}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${i}`}return""}function nl(){if(typeof matchMedia=="function"){const d=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(d.media!==e.media)return d.matches===!0}return!1}function Qo(d,e){let t=!1,r=[];return d&&(t=d!=="SDR",r=[d]),e&&(r=e.allowedVideoRanges||Ni.slice(0),t=e.preferHDR!==void 0?e.preferHDR:nl(),t?r=r.filter(i=>i!=="SDR"):r=["SDR"]),{preferHDR:t,allowedVideoRanges:r}}function Ao(d,e,t,r,i){const s=Object.keys(d),l=r==null?void 0:r.channels,x=r==null?void 0:r.audioCodec,j=l&&parseInt(l)===2;let q=!0,Ae=!1,Oe=1/0,Ye=1/0,Xe=1/0,lt=0,Ct=[];const{preferHDR:Tt,allowedVideoRanges:vr}=Qo(e,i);for(let cn=s.length;cn--;){const gi=d[s[cn]];q=gi.channels[2]>0,Oe=Math.min(Oe,gi.minHeight),Ye=Math.min(Ye,gi.minFramerate),Xe=Math.min(Xe,gi.minBitrate);const zn=vr.filter(Ii=>gi.videoRanges[Ii]>0);zn.length>0&&(Ae=!0,Ct=zn)}Oe=o(Oe)?Oe:0,Ye=o(Ye)?Ye:0;const Nr=Math.max(1080,Oe),Or=Math.max(30,Ye);return Xe=o(Xe)?Xe:t,t=Math.max(Xe,t),Ae||(e=void 0,Ct=[]),{codecSet:s.reduce((cn,gi)=>{const zn=d[gi];if(gi===cn)return cn;if(zn.minBitrate>t)return _a(gi,`min bitrate of ${zn.minBitrate} > current estimate of ${t}`),cn;if(!zn.hasDefaultAudio)return _a(gi,"no renditions with default or auto-select sound found"),cn;if(x&&gi.indexOf(x.substring(0,4))%5!==0)return _a(gi,`audio codec preference "${x}" not found`),cn;if(l&&!j){if(!zn.channels[l])return _a(gi,`no renditions with ${l} channel sound found (channels options: ${Object.keys(zn.channels)})`),cn}else if((!x||j)&&q&&zn.channels[2]===0)return _a(gi,"no renditions with stereo sound found"),cn;return zn.minHeight>Nr?(_a(gi,`min resolution of ${zn.minHeight} > maximum of ${Nr}`),cn):zn.minFramerate>Or?(_a(gi,`min framerate of ${zn.minFramerate} > maximum of ${Or}`),cn):Ct.some(Ii=>zn.videoRanges[Ii]>0)?zn.maxScore<lt?(_a(gi,`max score of ${zn.maxScore} < selected max of ${lt}`),cn):cn&&(Ur(gi)>=Ur(cn)||zn.fragmentError>d[cn].fragmentError)?cn:(lt=zn.maxScore,gi):(_a(gi,`no variants with VIDEO-RANGE of ${JSON.stringify(Ct)} found`),cn)},void 0),videoRanges:Ct,preferHDR:Tt,minFramerate:Ye,minBitrate:Xe}}function _a(d,e){B.log(`[abr] start candidates with "${d}" ignored because ${e}`)}function vl(d){return d.reduce((e,t)=>{let r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);const i=t.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function yl(d,e,t,r){return d.slice(t,r+1).reduce((i,s)=>{if(!s.codecSet)return i;const l=s.audioGroups;let x=i[s.codecSet];x||(i[s.codecSet]=x={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),x.minBitrate=Math.min(x.minBitrate,s.bitrate);const j=Math.min(s.height,s.width);return x.minHeight=Math.min(x.minHeight,j),x.minFramerate=Math.min(x.minFramerate,s.frameRate),x.maxScore=Math.max(x.maxScore,s.score),x.fragmentError+=s.fragmentError,x.videoRanges[s.videoRange]=(x.videoRanges[s.videoRange]||0)+1,l&&l.forEach(q=>{if(!q)return;const Ae=e.groups[q];Ae&&(x.hasDefaultAudio=x.hasDefaultAudio||e.hasDefaultAudio?Ae.hasDefault:Ae.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(Ae.channels).forEach(Oe=>{x.channels[Oe]=(x.channels[Oe]||0)+Ae.channels[Oe]}))}),i},{})}function fo(d,e,t){if("attrs"in d){const r=e.indexOf(d);if(r!==-1)return r}for(let r=0;r<e.length;r++){const i=e[r];if(yo(d,i,t))return r}return-1}function yo(d,e,t){const{groupId:r,name:i,lang:s,assocLang:l,default:x}=d,j=d.forced;return(r===void 0||e.groupId===r)&&(i===void 0||e.name===i)&&(s===void 0||e.lang===s)&&(s===void 0||e.assocLang===l)&&(x===void 0||e.default===x)&&(j===void 0||e.forced===j)&&(!("characteristics"in d)||ka(d.characteristics||"",e.characteristics))&&(t===void 0||t(d,e))}function ka(d,e=""){const t=d.split(","),r=e.split(",");return t.length===r.length&&!t.some(i=>r.indexOf(i)===-1)}function pa(d,e){const{audioCodec:t,channels:r}=d;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function to(d,e,t,r,i){const s=e[r],x=e.reduce((Ye,Xe,lt)=>{const Ct=Xe.uri;return(Ye[Ct]||(Ye[Ct]=[])).push(lt),Ye},{})[s.uri];x.length>1&&(r=Math.max.apply(Math,x));const j=s.videoRange,q=s.frameRate,Ae=s.codecSet.substring(0,4),Oe=Ya(e,r,Ye=>{if(Ye.videoRange!==j||Ye.frameRate!==q||Ye.codecSet.substring(0,4)!==Ae)return!1;const Xe=Ye.audioGroups,lt=t.filter(Ct=>!Xe||Xe.indexOf(Ct.groupId)!==-1);return fo(d,lt,i)>-1});return Oe>-1?Oe:Ya(e,r,Ye=>{const Xe=Ye.audioGroups,lt=t.filter(Ct=>!Xe||Xe.indexOf(Ct.groupId)!==-1);return fo(d,lt,i)>-1})}function Ya(d,e,t){for(let r=e;r>-1;r--)if(t(d[r]))return r;for(let r=e+1;r<d.length;r++)if(t(d[r]))return r;return-1}class ns{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:r,hls:i}=this,{autoLevelEnabled:s,media:l}=i;if(!t||!l)return;const x=performance.now(),j=r?r.stats:t.stats,q=r?r.duration:t.duration,Ae=x-j.loading.start,Oe=i.minAutoLevel;if(j.aborted||j.loaded&&j.loaded===j.total||t.level<=Oe){this.clearTimer(),this._nextAutoLevel=-1;return}if(!s||l.paused||!l.playbackRate||!l.readyState)return;const Ye=i.mainForwardBufferInfo;if(Ye===null)return;const Xe=this.bwEstimator.getEstimateTTFB(),lt=Math.abs(l.playbackRate);if(Ae<=Math.max(Xe,1e3*(q/(lt*2))))return;const Ct=Ye.len/lt,Tt=j.loading.first?j.loading.first-j.loading.start:-1,vr=j.loaded&&Tt>-1,Nr=this.getBwEstimate(),Or=i.levels,Un=Or[t.level],cn=j.total||Math.max(j.loaded,Math.round(q*Un.averageBitrate/8));let gi=vr?Ae-Tt:Ae;gi<1&&vr&&(gi=Math.min(Ae,j.loaded*8/Nr));const zn=vr?j.loaded*1e3/gi:0,Ii=zn?(cn-j.loaded)/zn:cn*8/Nr+Xe/1e3;if(Ii<=Ct)return;const ea=zn?zn*8:Nr;let mi=Number.POSITIVE_INFINITY,Oi;for(Oi=t.level-1;Oi>Oe;Oi--){const ia=Or[Oi].maxBitrate;if(mi=this.getTimeToLoadFrag(Xe/1e3,ea,q*ia,!Or[Oi].details),mi<Ct)break}if(mi>=Ii||mi>q*10)return;i.nextLoadLevel=i.nextAutoLevel=Oi,vr?this.bwEstimator.sample(Ae-Math.min(Xe,Tt),j.loaded):this.bwEstimator.sampleTTFB(Ae);const Ga=Or[Oi].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Ga&&this.resetEstimator(Ga),this.clearTimer(),B.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
|
|
|
Time to underbuffer: ${Ct.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${Ii.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${mi.toFixed(3)} s
|
|
|
TTFB estimate: ${Tt|0} ms
|
|
|
Current BW estimate: ${o(Nr)?Nr|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Oi} @ ${Ga|0} bps`),i.trigger(a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:j})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(B.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new Vs(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.FRAG_LOADING,this.onFragLoading,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.FRAG_LOADING,this.onFragLoading,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(a.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const r=t.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var i;this.fragCurrent=r,this.partCurrent=(i=t.part)!=null?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case m.BUFFER_ADD_CODEC_ERROR:case m.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case m.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:i,partCurrent:s}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const l=performance.now(),x=s?s.stats:r.stats,j=l-x.loading.start,q=x.loading.first?x.loading.first-x.loading.start:-1;if(x.loaded&&q>-1){const Oe=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(j-Math.min(Oe,q),x.loaded)}else this.bwEstimator.sampleTTFB(j)}break}}}getTimeToLoadFrag(e,t,r,i){const s=e+r/t,l=i?this.lastLevelLoadSec:0;return s+l}onLevelLoaded(e,t){const r=this.hls.config,{loading:i}=t.stats,s=i.end-i.start;o(s)&&(this.lastLevelLoadSec=s/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:r}){const i=r?r.stats:t.stats;if(t.type===jt.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const s=r?r.duration:t.duration,l=this.hls.levels[t.level],x=(l.loaded?l.loaded.bytes:0)+i.loaded,j=(l.loaded?l.loaded.duration:0)+s;l.loaded={bytes:x,duration:j},l.realBitrate=Math.round(8*x/j)}if(t.bitrateTest){const s={stats:i,frag:t,part:r,id:t.type};this.onFragBuffered(a.FRAG_BUFFERED,s),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:r,part:i}=t,s=i!=null&&i.stats.loaded?i.stats:r.stats;if(s.aborted||this.ignoreFragment(r))return;const l=s.parsing.end-s.loading.start-Math.min(s.loading.first-s.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(l,s.loaded),s.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=l/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==jt.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,s=this.findBestLevel(r,t,e,0,i,1,1);if(s>-1)return s;const l=this.hls.firstLevel,x=Math.min(Math.max(l,t),e);return B.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${l} clamped to ${x}`),x}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const s=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const l=this.hls.levels;if(l.length>Math.max(e,s)&&l[e].loadError<=l[s].loadError)return e}return this._nextAutoLevel=s,this.nextAutoLevelKey=this.getAutoLevelKey(),s}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:r}=this,{maxAutoLevel:i,config:s,minAutoLevel:l}=r,x=t?t.duration:e?e.duration:0,j=this.getBwEstimate(),q=this.getStarvationDelay();let Ae=s.abrBandWidthFactor,Oe=s.abrBandWidthUpFactor;if(q){const Tt=this.findBestLevel(j,l,i,q,0,Ae,Oe);if(Tt>=0)return Tt}let Ye=x?Math.min(x,s.maxStarvationDelay):s.maxStarvationDelay;if(!q){const Tt=this.bitrateTestDelay;Tt&&(Ye=(x?Math.min(x,s.maxLoadingDelay):s.maxLoadingDelay)-Tt,B.info(`[abr] bitrate test took ${Math.round(1e3*Tt)}ms, set first fragment max fetchDuration to ${Math.round(1e3*Ye)} ms`),Ae=Oe=1)}const Xe=this.findBestLevel(j,l,i,q,Ye,Ae,Oe);if(B.info(`[abr] ${q?"rebuffering expected":"buffer is empty"}, optimal quality level ${Xe}`),Xe>-1)return Xe;const lt=r.levels[l],Ct=r.levels[r.loadLevel];return(lt==null?void 0:lt.bitrate)<(Ct==null?void 0:Ct.bitrate)?l:r.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const r=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,i=e.mainForwardBufferInfo;return(i?i.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,r,i,s,l,x){var j;const q=i+s,Ae=this.lastLoadedFragLevel,Oe=Ae===-1?this.hls.firstLevel:Ae,{fragCurrent:Ye,partCurrent:Xe}=this,{levels:lt,allAudioTracks:Ct,loadLevel:Tt,config:vr}=this.hls;if(lt.length===1)return 0;const Nr=lt[Oe],Or=!!(Nr!=null&&(j=Nr.details)!=null&&j.live),Un=Tt===-1||Ae===-1;let cn,gi="SDR",zn=(Nr==null?void 0:Nr.frameRate)||0;const{audioPreference:Ii,videoPreference:ea}=vr,mi=this.audioTracksByGroup||(this.audioTracksByGroup=vl(Ct));if(Un){if(this.firstSelection!==-1)return this.firstSelection;const Ua=this.codecTiers||(this.codecTiers=yl(lt,mi,t,r)),Ra=Ao(Ua,gi,e,Ii,ea),{codecSet:Fs,videoRanges:Ks,minFramerate:ha,minBitrate:oa,preferHDR:ks}=Ra;cn=Fs,gi=ks?Ks[Ks.length-1]:Ks[0],zn=ha,e=Math.max(e,oa),B.log(`[abr] picked start tier ${JSON.stringify(Ra)}`)}else cn=Nr==null?void 0:Nr.codecSet,gi=Nr==null?void 0:Nr.videoRange;const Oi=Xe?Xe.duration:Ye?Ye.duration:0,Ga=this.bwEstimator.getEstimateTTFB()/1e3,ia=[];for(let Ua=r;Ua>=t;Ua--){var ja;const Ra=lt[Ua],Fs=Ua>Oe;if(!Ra)continue;if(vr.useMediaCapabilities&&!Ra.supportedResult&&!Ra.supportedPromise){const lo=navigator.mediaCapabilities;typeof(lo==null?void 0:lo.decodingInfo)=="function"&&Ti(Ra,mi,gi,zn,e,Ii)?(Ra.supportedPromise=Dl(Ra,mi,lo),Ra.supportedPromise.then(Ms=>{if(!this.hls)return;Ra.supportedResult=Ms;const Fo=this.hls.levels,dl=Fo.indexOf(Ra);Ms.error?B.warn(`[abr] MediaCapabilities decodingInfo error: "${Ms.error}" for level ${dl} ${JSON.stringify(Ms)}`):Ms.supported||(B.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${dl} ${JSON.stringify(Ms)}`),dl>-1&&Fo.length>1&&(B.log(`[abr] Removing unsupported level ${dl}`),this.hls.removeLevel(dl)))})):Ra.supportedResult=vo}if(cn&&Ra.codecSet!==cn||gi&&Ra.videoRange!==gi||Fs&&zn>Ra.frameRate||!Fs&&zn>0&&zn<Ra.frameRate||Ra.supportedResult&&!((ja=Ra.supportedResult.decodingInfoResults)!=null&&ja[0].smooth)){ia.push(Ua);continue}const Ks=Ra.details,ha=(Xe?Ks==null?void 0:Ks.partTarget:Ks==null?void 0:Ks.averagetargetduration)||Oi;let oa;Fs?oa=x*e:oa=l*e;const ks=Oi&&i>=Oi*2&&s===0?lt[Ua].averageBitrate:lt[Ua].maxBitrate,hs=this.getTimeToLoadFrag(Ga,oa,ks*ha,Ks===void 0);if(oa>=ks&&(Ua===Ae||Ra.loadError===0&&Ra.fragmentError===0)&&(hs<=Ga||!o(hs)||Or&&!this.bitrateTestDelay||hs<q)){const lo=this.forcedAutoLevel;return Ua!==Tt&&(lo===-1||lo!==Tt)&&(ia.length&&B.trace(`[abr] Skipped level(s) ${ia.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${lt[ia[0]].codecs}" ${lt[ia[0]].videoRange}; not compatible with "${Nr.codecs}" ${gi}`),B.info(`[abr] switch candidate:${Oe}->${Ua} adjustedbw(${Math.round(oa)})-bitrate=${Math.round(oa-ks)} ttfb:${Ga.toFixed(1)} avgDuration:${ha.toFixed(1)} maxFetchDuration:${q.toFixed(1)} fetchDuration:${hs.toFixed(1)} firstSelection:${Un} codecSet:${cn} videoRange:${gi} hls.loadLevel:${Tt}`)),Un&&(this.firstSelection=Ua),Ua}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls,i=Math.min(Math.max(e,r),t);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i)}}class js{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var wa={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Ys{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(a.BUFFER_APPENDED,this.onBufferAppended,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.BUFFER_APPENDED,this.onBufferAppended,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const r=this.activePartLists[t];if(r)for(let i=r.length;i--;){const s=r[i];if(!s)break;const l=s.end;if(s.start<=e&&l!==null&&e<=l)return s}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const l=r[i[s]];if((l==null?void 0:l.body.type)===t&&l.buffered){const x=l.body;if(x.start<=e&&e<=x.end)return x}}return null}detectEvictedFragments(e,t,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(i==null?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const x=this.fragments[l];if(!x||s>=x.body.sn)return;if(!x.buffered&&!x.loaded){x.body.type===r&&this.removeFragment(x.body);return}const j=x.range[e];j&&j.time.some(q=>{const Ae=!this.isTimeBuffered(q.startPTS,q.endPTS,t);return Ae&&this.removeFragment(x.body),Ae})})}detectPartialFragments(e){const t=this.timeRanges,{frag:r,part:i}=e;if(!t||r.sn==="initSegment")return;const s=Po(r),l=this.fragments[s];if(!l||l.buffered&&r.gap)return;const x=!r.relurl;Object.keys(t).forEach(j=>{const q=r.elementaryStreams[j];if(!q)return;const Ae=t[j],Oe=x||q.partial===!0;l.range[j]=this.getBufferedTimes(r,i,Oe,Ae)}),l.loaded=null,Object.keys(l.range).length?(l.buffered=!0,(l.body.endList=r.endList||l.body.endList)&&(this.endListFragments[l.body.type]=l),ao(l)||this.removeParts(r.sn-1,r.type)):this.removeFragment(l.body)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=r.filter(i=>i.fragment.sn>=e))}fragBuffered(e,t){const r=Po(e);let i=this.fragments[r];!i&&t&&(i=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,r,i){const s={time:[],partial:r},l=e.start,x=e.end,j=e.minEndPTS||x,q=e.maxStartPTS||l;for(let Ae=0;Ae<i.length;Ae++){const Oe=i.start(Ae)-this.bufferPadding,Ye=i.end(Ae)+this.bufferPadding;if(q>=Oe&&j<=Ye){s.time.push({startPTS:Math.max(l,i.start(Ae)),endPTS:Math.min(x,i.end(Ae))});break}else if(l<Ye&&x>Oe){const Xe=Math.max(l,i.start(Ae)),lt=Math.min(x,i.end(Ae));lt>Xe&&(s.partial=!0,s.time.push({startPTS:Xe,endPTS:lt}))}else if(x<=Oe)break}return s}getPartialFragment(e){let t=null,r,i,s,l=0;const{bufferPadding:x,fragments:j}=this;return Object.keys(j).forEach(q=>{const Ae=j[q];Ae&&ao(Ae)&&(i=Ae.body.start-x,s=Ae.body.end+x,e>=i&&e<=s&&(r=Math.min(e-i,s-e),l<=r&&(t=Ae.body,l=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||ao(t))}getState(e){const t=Po(e),r=this.fragments[t];return r?r.buffered?ao(r)?wa.PARTIAL:wa.OK:wa.APPENDING:wa.NOT_LOADED}isTimeBuffered(e,t,r){let i,s;for(let l=0;l<r.length;l++){if(i=r.start(l)-this.bufferPadding,s=r.end(l)+this.bufferPadding,e>=i&&t<=s)return!0;if(t<=i)return!1}return!1}onFragLoaded(e,t){const{frag:r,part:i}=t;if(r.sn==="initSegment"||r.bitrateTest)return;const s=i?null:t,l=Po(r);this.fragments[l]={body:r,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:i,timeRanges:s}=t;if(r.sn==="initSegment")return;const l=r.type;if(i){let x=this.activePartLists[l];x||(this.activePartLists[l]=x=[]),x.push(i)}this.timeRanges=s,Object.keys(s).forEach(x=>{const j=s[x];this.detectEvictedFragments(x,j,l,i)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Po(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,r,i,s){i&&!this.hasGaps||Object.keys(this.fragments).forEach(l=>{const x=this.fragments[l];if(!x)return;const j=x.body;j.type!==r||i&&!j.gap||j.start<t&&j.end>e&&(x.buffered||s)&&this.removeFragment(j)})}removeFragment(e){const t=Po(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const i=e.sn;this.activePartLists[e.type]=r.filter(s=>s.fragment.sn!==i)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function ao(d){var e,t,r;return d.buffered&&(d.body.gap||((e=d.range.video)==null?void 0:e.partial)||((t=d.range.audio)==null?void 0:t.partial)||((r=d.range.audiovideo)==null?void 0:r.partial))}function Po(d){return`${d.type}_${d.level}_${d.sn}`}const Do={length:0,start:()=>0,end:()=>0};class Xa{static isBuffered(e,t){try{if(e){const r=Xa.getBuffered(e);for(let i=0;i<r.length;i++)if(t>=r.start(i)&&t<=r.end(i))return!0}}catch(r){}return!1}static bufferInfo(e,t,r){try{if(e){const i=Xa.getBuffered(e),s=[];let l;for(l=0;l<i.length;l++)s.push({start:i.start(l),end:i.end(l)});return this.bufferedInfo(s,t,r)}}catch(i){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.sort(function(q,Ae){const Oe=q.start-Ae.start;return Oe||Ae.end-q.end});let i=[];if(r)for(let q=0;q<e.length;q++){const Ae=i.length;if(Ae){const Oe=i[Ae-1].end;e[q].start-Oe<r?e[q].end>Oe&&(i[Ae-1].end=e[q].end):i.push(e[q])}else i.push(e[q])}else i=e;let s=0,l,x=t,j=t;for(let q=0;q<i.length;q++){const Ae=i[q].start,Oe=i[q].end;if(t+r>=Ae&&t<Oe)x=Ae,j=Oe,s=j-t;else if(t+r<Ae){l=Ae;break}}return{len:s,start:x||0,end:j||0,nextStart:l}}static getBuffered(e){try{return e.buffered}catch(t){return B.log("failed to get media.buffered",t),Do}}}class bl{constructor(e,t,r,i=0,s=-1,l=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=so(),this.buffering={audio:so(),video:so(),audiovideo:so()},this.level=e,this.sn=t,this.id=r,this.size=i,this.part=s,this.partial=l}}function so(){return{start:0,executeStart:0,executeEnd:0,end:0}}function bo(d,e){for(let r=0,i=d.length;r<i;r++){var t;if(((t=d[r])==null?void 0:t.cc)===e)return d[r]}return null}function Zl(d,e,t){return!!(e&&(t.endCC>t.startCC||d&&d.cc<t.startCC))}function wl(d,e){const t=d.fragments,r=e.fragments;if(!r.length||!t.length){B.log("No fragments to align");return}const i=bo(t,r[0].cc);if(!i||i&&!i.startPTS){B.log("No frag in previous level to align on");return}return i}function fl(d,e){if(d){const t=d.start+e;d.start=d.startPTS=t,d.endPTS=t+d.duration}}function Ll(d,e){const t=e.fragments;for(let r=0,i=t.length;r<i;r++)fl(t[r],d);e.fragmentHint&&fl(e.fragmentHint,d),e.alignedSliding=!0}function xl(d,e,t){e&&(jo(d,t,e),!t.alignedSliding&&e&&Gs(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&ss(e,t))}function jo(d,e,t){if(Zl(d,t,e)){const r=wl(t,e);r&&o(r.start)&&(B.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),Ll(r.start,e))}}function Gs(d,e){if(!d.hasProgramDateTime||!e.hasProgramDateTime)return;const t=d.fragments,r=e.fragments;if(!t.length||!r.length)return;let i,s;const l=Math.min(e.endCC,d.endCC);e.startCC<l&&d.startCC<l&&(i=bo(r,l),s=bo(t,l)),(!i||!s)&&(i=r[Math.floor(r.length/2)],s=bo(t,i.cc)||t[Math.floor(t.length/2)]);const x=i.programDateTime,j=s.programDateTime;if(!x||!j)return;const q=(j-x)/1e3-(s.start-i.start);Ll(q,d)}const Lo=Math.pow(2,17);class Wa{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const r=e.url;if(!r)return Promise.reject(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,s=i.fLoader,l=i.loader;return new Promise((x,j)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(Xe=>Xe[0]==="GAP")){j(Ja(e));return}else e.gap=!1;const q=this.loader=e.loader=s?new s(i):new l(i),Ae=vs(e),Oe=Rs(i.fragLoadPolicy.default),Ye={loadPolicy:Oe,timeout:Oe.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Lo};e.stats=q.stats,q.load(Ae,Ye,{onSuccess:(Xe,lt,Ct,Tt)=>{this.resetLoader(e,q);let vr=Xe.data;Ct.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(vr.slice(0,16)),vr=vr.slice(16)),x({frag:e,part:null,payload:vr,networkDetails:Tt})},onError:(Xe,lt,Ct,Tt)=>{this.resetLoader(e,q),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ie({url:r,data:void 0},Xe),error:new Error(`HTTP Error ${Xe.code} ${Xe.text}`),networkDetails:Ct,stats:Tt}))},onAbort:(Xe,lt,Ct)=>{this.resetLoader(e,q),j(new Cs({type:A.NETWORK_ERROR,details:m.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Ct,stats:Xe}))},onTimeout:(Xe,lt,Ct)=>{this.resetLoader(e,q),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${Ye.timeout}ms`),networkDetails:Ct,stats:Xe}))},onProgress:(Xe,lt,Ct,Tt)=>{t&&t({frag:e,part:null,payload:Ct,networkDetails:Tt})}})})}loadPart(e,t,r){this.abort();const i=this.config,s=i.fLoader,l=i.loader;return new Promise((x,j)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){j(Ja(e,t));return}const q=this.loader=e.loader=s?new s(i):new l(i),Ae=vs(e,t),Oe=Rs(i.fragLoadPolicy.default),Ye={loadPolicy:Oe,timeout:Oe.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Lo};t.stats=q.stats,q.load(Ae,Ye,{onSuccess:(Xe,lt,Ct,Tt)=>{this.resetLoader(e,q),this.updateStatsFromPart(e,t);const vr={frag:e,part:t,payload:Xe.data,networkDetails:Tt};r(vr),x(vr)},onError:(Xe,lt,Ct,Tt)=>{this.resetLoader(e,q),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ie({url:Ae.url,data:void 0},Xe),error:new Error(`HTTP Error ${Xe.code} ${Xe.text}`),networkDetails:Ct,stats:Tt}))},onAbort:(Xe,lt,Ct)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,q),j(new Cs({type:A.NETWORK_ERROR,details:m.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Ct,stats:Xe}))},onTimeout:(Xe,lt,Ct)=>{this.resetLoader(e,q),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${Ye.timeout}ms`),networkDetails:Ct,stats:Xe}))}})})}updateStatsFromPart(e,t){const r=e.stats,i=t.stats,s=i.total;if(r.loaded+=i.loaded,s){const j=Math.round(e.duration/t.duration),q=Math.min(Math.round(r.loaded/s),j),Oe=(j-q)*Math.round(r.loaded/q);r.total=r.loaded+Oe}else r.total=Math.max(r.loaded,r.total);const l=r.loading,x=i.loading;l.start?l.first+=x.first-x.start:(l.start=x.start,l.first=x.first),l.end=x.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function vs(d,e=null){const t=e||d,r={frag:d,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},i=t.byteRangeStartOffset,s=t.byteRangeEndOffset;if(o(i)&&o(s)){var l;let x=i,j=s;if(d.sn==="initSegment"&&((l=d.decryptdata)==null?void 0:l.method)==="AES-128"){const q=s-i;q%16&&(j=s+(16-q%16)),i!==0&&(r.resetIV=!0,x=i-16)}r.rangeStart=x,r.rangeEnd=j}return r}function Ja(d,e){const t=new Error(`GAP ${d.gap?"tag":"attribute"} found`),r={type:A.MEDIA_ERROR,details:m.FRAG_GAP,fatal:!1,frag:d,error:t,networkDetails:null};return e&&(r.part=e),(e||d).stats.aborted=!0,new Cs(r)}class Cs extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class qs{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class El{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function il(d){const e=d.byteLength,t=e&&new DataView(d.buffer).getUint8(e-1);return t?z(d,0,e-t):d}class Rl{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),r=new Uint32Array(4);for(let i=0;i<4;i++)r[i]=t.getUint32(i*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,i=r[0],s=r[1],l=r[2],x=r[3],j=this.invSubMix,q=j[0],Ae=j[1],Oe=j[2],Ye=j[3],Xe=new Uint32Array(256);let lt=0,Ct=0,Tt=0;for(Tt=0;Tt<256;Tt++)Tt<128?Xe[Tt]=Tt<<1:Xe[Tt]=Tt<<1^283;for(Tt=0;Tt<256;Tt++){let vr=Ct^Ct<<1^Ct<<2^Ct<<3^Ct<<4;vr=vr>>>8^vr&255^99,e[lt]=vr,t[vr]=lt;const Nr=Xe[lt],Or=Xe[Nr],Un=Xe[Or];let cn=Xe[vr]*257^vr*16843008;i[lt]=cn<<24|cn>>>8,s[lt]=cn<<16|cn>>>16,l[lt]=cn<<8|cn>>>24,x[lt]=cn,cn=Un*16843009^Or*65537^Nr*257^lt*16843008,q[vr]=cn<<24|cn>>>8,Ae[vr]=cn<<16|cn>>>16,Oe[vr]=cn<<8|cn>>>24,Ye[vr]=cn,lt?(lt=Nr^Xe[Xe[Xe[Un^Nr]]],Ct^=Xe[Xe[Ct]]):lt=Ct=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,i=0;for(;i<t.length&&r;)r=t[i]===this.key[i],i++;if(r)return;this.key=t;const s=this.keySize=t.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);const l=this.ksRows=(s+6+1)*4;let x,j;const q=this.keySchedule=new Uint32Array(l),Ae=this.invKeySchedule=new Uint32Array(l),Oe=this.sBox,Ye=this.rcon,Xe=this.invSubMix,lt=Xe[0],Ct=Xe[1],Tt=Xe[2],vr=Xe[3];let Nr,Or;for(x=0;x<l;x++){if(x<s){Nr=q[x]=t[x];continue}Or=Nr,x%s===0?(Or=Or<<8|Or>>>24,Or=Oe[Or>>>24]<<24|Oe[Or>>>16&255]<<16|Oe[Or>>>8&255]<<8|Oe[Or&255],Or^=Ye[x/s|0]<<24):s>6&&x%s===4&&(Or=Oe[Or>>>24]<<24|Oe[Or>>>16&255]<<16|Oe[Or>>>8&255]<<8|Oe[Or&255]),q[x]=Nr=(q[x-s]^Or)>>>0}for(j=0;j<l;j++)x=l-j,j&3?Or=q[x]:Or=q[x-4],j<4||x<=4?Ae[j]=Or:Ae[j]=lt[Oe[Or>>>24]]^Ct[Oe[Or>>>16&255]]^Tt[Oe[Or>>>8&255]]^vr[Oe[Or&255]],Ae[j]=Ae[j]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const i=this.keySize+6,s=this.invKeySchedule,l=this.invSBox,x=this.invSubMix,j=x[0],q=x[1],Ae=x[2],Oe=x[3],Ye=this.uint8ArrayToUint32Array_(r);let Xe=Ye[0],lt=Ye[1],Ct=Ye[2],Tt=Ye[3];const vr=new Int32Array(e),Nr=new Int32Array(vr.length);let Or,Un,cn,gi,zn,Ii,ea,mi,Oi,Ga,ia,ja,Ua,Ra;const Fs=this.networkToHostOrderSwap;for(;t<vr.length;){for(Oi=Fs(vr[t]),Ga=Fs(vr[t+1]),ia=Fs(vr[t+2]),ja=Fs(vr[t+3]),zn=Oi^s[0],Ii=ja^s[1],ea=ia^s[2],mi=Ga^s[3],Ua=4,Ra=1;Ra<i;Ra++)Or=j[zn>>>24]^q[Ii>>16&255]^Ae[ea>>8&255]^Oe[mi&255]^s[Ua],Un=j[Ii>>>24]^q[ea>>16&255]^Ae[mi>>8&255]^Oe[zn&255]^s[Ua+1],cn=j[ea>>>24]^q[mi>>16&255]^Ae[zn>>8&255]^Oe[Ii&255]^s[Ua+2],gi=j[mi>>>24]^q[zn>>16&255]^Ae[Ii>>8&255]^Oe[ea&255]^s[Ua+3],zn=Or,Ii=Un,ea=cn,mi=gi,Ua=Ua+4;Or=l[zn>>>24]<<24^l[Ii>>16&255]<<16^l[ea>>8&255]<<8^l[mi&255]^s[Ua],Un=l[Ii>>>24]<<24^l[ea>>16&255]<<16^l[mi>>8&255]<<8^l[zn&255]^s[Ua+1],cn=l[ea>>>24]<<24^l[mi>>16&255]<<16^l[zn>>8&255]<<8^l[Ii&255]^s[Ua+2],gi=l[mi>>>24]<<24^l[zn>>16&255]<<16^l[Ii>>8&255]<<8^l[ea&255]^s[Ua+3],Nr[t]=Fs(Or^Xe),Nr[t+1]=Fs(gi^lt),Nr[t+2]=Fs(cn^Ct),Nr[t+3]=Fs(Un^Tt),Xe=Oi,lt=Ga,Ct=ia,Tt=ja,t=t+4}return Nr.buffer}}const cu=16;class Ol{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(r){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?il(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r){return this.useSoftware?new Promise((i,s)=>{this.softwareDecrypt(new Uint8Array(e),t,r);const l=this.flush();l?i(l.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r)}softwareDecrypt(e,t,r){const{currentIV:i,currentResult:s,remainderData:l}=this;this.logOnce("JS AES decrypt"),l&&(e=On(l,e),this.remainderData=null);const x=this.getValidChunk(e);if(!x.length)return null;i&&(r=i);let j=this.softwareDecrypter;j||(j=this.softwareDecrypter=new Rl),j.expandKey(t);const q=s;return this.currentResult=j.decrypt(x.buffer,0,r),this.currentIV=z(x,-16).buffer,q||null}webCryptoDecrypt(e,t,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r));this.key=t,this.fastAesKey=new El(this.subtle,t)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new qs(this.subtle,new Uint8Array(r)).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(B.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,r)))}onWebCryptoError(e,t,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%cu;return r!==e.length&&(t=z(e,0,r),this.remainderData=z(e,r)),t}logOnce(e){this.logEnabled&&(B.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Pl={toString:function(d){let e="";const t=d.length;for(let r=0;r<t;r++)e+=`[${d.start(r).toFixed(3)}-${d.end(r).toFixed(3)}]`;return e}},ci={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class Au extends js{constructor(e,t,r,i,s){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=ci.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=s,this.logPrefix=i,this.log=B.log.bind(B,`${i}:`),this.warn=B.warn.bind(B,`${i}:`),this.hls=e,this.fragmentLoader=new Wa(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ol(e.config),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=ci.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const r=t.partList;if(r!=null&&r.length){const s=r[r.length-1];return Xa.isBuffered(this.media,s.start+s.duration/2)}const i=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const r=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);const i=this.config;this.levels&&i.autoStartLoad&&this.state===ci.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:r,mediaBuffer:i,state:s}=this,l=r?r.currentTime:0,x=Xa.bufferInfo(i||r,l,e.maxBufferHole);if(this.log(`media seeking to ${o(l)?l.toFixed(3):l}, state: ${s}`),this.state===ci.ENDED)this.resetLoadingState();else if(t){const j=e.maxFragLookUpTolerance,q=t.start-j,Ae=t.start+t.duration+j;if(!x.len||Ae<x.start||q>x.end){const Oe=l>Ae;(l<q||Oe)&&(Oe&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(l,1/0,this.playlistType,!0),this.lastCurrentTime=l),!this.loadedmetadata&&!x.len&&(this.nextLoadPosition=this.startPosition=l),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=ci.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,r){this._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const i=s=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${s.part?" p: "+s.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(s)};this._doFragLoad(e,t,r,i).then(s=>{if(!s)return;const l=this.state;if(this.fragContextChanged(e)){(l===ci.FRAG_LOADING||!this.fragCurrent&&l===ci.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=ci.IDLE);return}"payload"in s&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(a.FRAG_LOADED,s)),this._handleFragmentLoadComplete(s)}).catch(s=>{this.state===ci.STOPPED||this.state===ci.ERROR||(this.warn(`Frag error: ${(s==null?void 0:s.message)||s}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:r}=this;if(r.getState(e)===wa.APPENDING){const s=e.type,l=this.getFwdBufferInfo(this.mediaBuffer,s),x=Math.max(e.duration,l?l.len:this.config.maxBufferLength),j=this.backtrackFragment;((j?e.sn-j.sn:0)===1||this.reduceMaxBufferLength(x,e.duration))&&r.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===wa.PARTIAL&&r.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const i={startOffset:e,endOffset:t,type:r};this.hls.trigger(a.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{if(!r||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{payload:s}=r,l=e.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&l.method==="AES-128"){const x=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer).catch(j=>{throw i.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_DECRYPT_ERROR,fatal:!1,error:j,reason:j.message,frag:e}),j}).then(j=>{const q=self.performance.now();return i.trigger(a.FRAG_DECRYPTED,{frag:e,payload:j,stats:{tstart:x,tdecrypt:q}}),r.payload=j,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===ci.STOPPED||this.state===ci.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const r=e.frag.stats;this.state=ci.IDLE,e.frag.data=new Uint8Array(e.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){var r,i,s,l;const x=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===jt.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((i=e.endPTS)!=null?i:NaN).toFixed(3)}] > buffer:${x?Pl.toString(Xa.getBuffered(x)):"(detached)"})`),e.sn!=="initSegment"){var j;if(e.type!==jt.SUBTITLE){const Ae=e.elementaryStreams;if(!Object.keys(Ae).some(Oe=>!!Ae[Oe])){this.state=ci.IDLE;return}}const q=(j=this.levels)==null?void 0:j[e.level];q!=null&&q.fragmentError&&(this.log(`Resetting level fragment error count of ${q.fragmentError} on frag buffered`),q.fragmentError=0)}this.state=ci.IDLE,x&&(!this.loadedmetadata&&e.type==jt.MAIN&&x.buffered.length&&((s=this.fragCurrent)==null?void 0:s.sn)===((l=this.fragPrevious)==null?void 0:l.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:i,partsLoaded:s}=e,l=!s||s.length===0||s.some(j=>!j),x=new bl(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!l);t.flush(x)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,i){var s;const l=t==null?void 0:t.details;if(!this.levels||!l)throw new Error(`frag load aborted, missing level${l?"":" detail"}s`);let x=null;if(e.encrypted&&!((s=e.decryptdata)!=null&&s.key)?(this.log(`Loading key for ${e.sn} of [${l.startSN}-${l.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=ci.KEY_LOADING,this.fragCurrent=e,x=this.keyLoader.load(e).then(Ae=>{if(!this.fragContextChanged(Ae.frag))return this.hls.trigger(a.KEY_LOADED,Ae),this.state===ci.KEY_LOADING&&(this.state=ci.IDLE),Ae}),this.hls.trigger(a.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(x=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&l.encryptedFragments.length&&this.keyLoader.loadClear(e,l.encryptedFragments),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const Ae=l.partList;if(Ae&&i){r>e.end&&l.fragmentHint&&(e=l.fragmentHint);const Oe=this.getNextPart(Ae,e,r);if(Oe>-1){const Ye=Ae[Oe];this.log(`Loading part sn: ${e.sn} p: ${Ye.index} cc: ${e.cc} of playlist [${l.startSN}-${l.endSN}] parts [0-${Oe}-${Ae.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=Ye.start+Ye.duration,this.state=ci.FRAG_LOADING;let Xe;return x?Xe=x.then(lt=>!lt||this.fragContextChanged(lt.frag)?null:this.doFragPartsLoad(e,Ye,t,i)).catch(lt=>this.handleFragLoadError(lt)):Xe=this.doFragPartsLoad(e,Ye,t,i).catch(lt=>this.handleFragLoadError(lt)),this.hls.trigger(a.FRAG_LOADING,{frag:e,part:Ye,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Xe}else if(!e.url||this.loadedEndOfParts(Ae,r))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${l?"of ["+l.startSN+"-"+l.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),o(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=ci.FRAG_LOADING;const j=this.config.progressive;let q;return j&&x?q=x.then(Ae=>!Ae||this.fragContextChanged(Ae==null?void 0:Ae.frag)?null:this.fragmentLoader.load(e,i)).catch(Ae=>this.handleFragLoadError(Ae)):q=Promise.all([this.fragmentLoader.load(e,j?i:void 0),x]).then(([Ae])=>(!j&&Ae&&i&&i(Ae),Ae)).catch(Ae=>this.handleFragLoadError(Ae)),this.hls.trigger(a.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):q}doFragPartsLoad(e,t,r,i){return new Promise((s,l)=>{var x;const j=[],q=(x=r.details)==null?void 0:x.partList,Ae=Oe=>{this.fragmentLoader.loadPart(e,Oe,i).then(Ye=>{j[Oe.index]=Ye;const Xe=Ye.part;this.hls.trigger(a.FRAG_LOADED,Ye);const lt=Zi(r,e.sn,Oe.index+1)||ta(q,e.sn,Oe.index+1);if(lt)Ae(lt);else return s({frag:e,part:Xe,partsLoaded:j})}).catch(l)};Ae(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===m.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(a.ERROR,t)}else this.hls.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==ci.PARSING){!this.fragCurrent&&this.state!==ci.STOPPED&&this.state!==ci.ERROR&&(this.state=ci.IDLE);return}const{frag:r,part:i,level:s}=t,l=self.performance.now();r.stats.parsing.end=l,i&&(i.stats.parsing.end=l),this.updateLevelTiming(r,i,s,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:i,sn:s,part:l}=e;if(!(t!=null&&t[i]))return this.warn(`Levels object was unset while buffering fragment ${s} of level ${i}. The current chunk will not be buffered.`),null;const x=t[i],j=l>-1?Zi(x,s,l):null,q=j?j.fragment:io(x,s,r);return q?(r&&r!==q&&(q.stats=r.stats),{frag:q,part:j,level:x}):null}bufferFragmentData(e,t,r,i,s){var l;if(!e||this.state!==ci.PARSING)return;const{data1:x,data2:j}=e;let q=x;if(x&&j&&(q=On(x,j)),!((l=q)!=null&&l.length))return;const Ae={type:e.type,frag:t,part:r,chunkMeta:i,parent:t.type,data:q};if(this.hls.trigger(a.BUFFER_APPENDING,Ae),e.dropped&&e.independent&&!r){if(s)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Xa.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,i=Xa.bufferInfo(t,r,0),s=e.duration,l=Math.min(this.config.maxFragLookUpTolerance*2,s*.25),x=Math.max(Math.min(e.start-l,i.end-l),r+l);e.start-x>l&&this.flushMainBuffer(x,e.start)}getFwdBufferInfo(e,t){const r=this.getLoadPosition();return o(r)?this.getFwdBufferInfoAtPos(e,r,t):null}getFwdBufferInfoAtPos(e,t,r){const{config:{maxBufferHole:i}}=this,s=Xa.bufferInfo(e,t,i);if(s.len===0&&s.nextStart!==void 0){const l=this.fragmentTracker.getBufferedFrag(t,r);if(l&&s.nextStart<l.end)return Xa.bufferInfo(e,t,Math.max(s.nextStart,i))}return s}getMaxBufferLength(e){const{config:t}=this;let r;return e?r=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):r=t.maxBufferLength,Math.min(r,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const r=this.config,i=Math.max(Math.min(e-t,r.maxBufferLength),t),s=Math.max(e-t*3,r.maxMaxBufferLength/2,i);return s>=i?(r.maxMaxBufferLength=s,this.warn(`Reduce max buffer length to ${s}s`),!0):!1}getAppendedFrag(e,t=jt.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,jt.MAIN);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const r=t.fragments,i=r.length;if(!i)return null;const{config:s}=this,l=r[0].start;let x;if(t.live){const j=s.initialLiveManifestSize;if(i<j)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${j})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<l)&&(x=this.getInitialLiveFragment(t,r),this.startPosition=this.nextLoadPosition=x?this.hls.liveSyncPosition||x.start:e)}else e<=l&&(x=r[0]);if(!x){const j=s.lowLatencyMode?t.partEnd:t.fragmentEnd;x=this.getFragmentAtPosition(e,j,t)}return this.mapToInitFragWhenRequired(x)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===wa.OK||r===wa.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,i,s){const l=e.gap,x=this.getNextFragment(this.nextLoadPosition,t);if(x===null)return x;if(e=x,l&&e&&!e.gap&&r.nextStart){const j=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(j!==null&&r.len+j.len>=s)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,r){let i=-1,s=!1,l=!0;for(let x=0,j=e.length;x<j;x++){const q=e[x];if(l=l&&!q.independent,i>-1&&r<q.start)break;const Ae=q.loaded;Ae?i=-1:(s||q.independent||l)&&q.fragment===t&&(i=x),s=Ae}return i}loadedEndOfParts(e,t){const r=e[e.length-1];return r&&t>r.start&&r.loaded}getInitialLiveFragment(e,t){const r=this.fragPrevious;let i=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=So(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const s=r.sn+1;if(s>=e.startSN&&s<=e.endSN){const l=t[s-e.startSN];r.cc===l.cc&&(i=l,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=Li(t,r.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const s=this.hls.liveSyncPosition;s!==null&&(i=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,r){const{config:i}=this;let{fragPrevious:s}=this,{fragments:l,endSN:x}=r;const{fragmentHint:j}=r,{maxFragLookUpTolerance:q}=i,Ae=r.partList,Oe=!!(i.lowLatencyMode&&Ae!=null&&Ae.length&&j);Oe&&j&&!this.bitrateTest&&(l=l.concat(j),x=j.sn);let Ye;if(e<t){const Xe=e>t-q?0:q;Ye=go(s,l,e,Xe)}else Ye=l[l.length-1];if(Ye){const Xe=Ye.sn-r.startSN,lt=this.fragmentTracker.getState(Ye);if((lt===wa.OK||lt===wa.PARTIAL&&Ye.gap)&&(s=Ye),s&&Ye.sn===s.sn&&(!Oe||Ae[0].fragment.sn>Ye.sn)&&s&&Ye.level===s.level){const Tt=l[Xe+1];Ye.sn<x&&this.fragmentTracker.getState(Tt)!==wa.OK?Ye=Tt:Ye=null}}return Ye}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const i=this.hls.liveSyncPosition,s=r.currentTime,l=e.fragments[0].start,x=e.edge,j=s>=l-t.maxFragLookUpTolerance&&s<=x;if(i!==null&&r.duration>i&&(s<i||!j)){const q=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!j&&r.readyState<4||s<x-q)&&(this.loadedmetadata||(this.nextLoadPosition=i),r.readyState&&(this.warn(`Playback: ${s.toFixed(3)} is located too far from the end of live sliding playlist: ${x}, reset currentTime to : ${i.toFixed(3)}`),r.currentTime=i))}}alignPlaylists(e,t,r){const i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const s=e.fragments[0].start,l=!t,x=e.alignedSliding&&o(s);if(l||!x&&!s){const{fragPrevious:j}=this;xl(j,r,e);const q=e.fragments[0].start;return this.log(`Live playlist sliding: ${q.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${j?j.sn:"na"} fragments: ${i}`),q}return s}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let r=this.startPosition;if(r<t&&(r=-1),r===-1||this.lastCurrentTime===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&o(s)?(r=t+s,s<0&&(r+=e.totalduration),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Start time offset ${s} found in ${i?"multivariant":"media"} playlist, adjust startPosition to ${r}`),this.startPosition=r):e.live?r=this.hls.liveSyncPosition||t:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==ci.FRAG_LOADING_WAITING_RETRY)&&(this.state=ci.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const Ae=this.getCurrentContext(t.chunkMeta);Ae&&(t.frag=Ae.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=t.details===m.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const l=t.errorAction,{action:x,retryCount:j=0,retryConfig:q}=l||{};if(l&&x===pi.RetryRequest&&q){this.resetStartWhenNotLoaded(this.levelLastLoaded);const Ae=Na(q,j);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${j+1}/${q.maxNumRetry} in ${Ae}ms`),l.resolved=!0,this.retryDate=self.performance.now()+Ae,this.state=ci.FRAG_LOADING_WAITING_RETRY}else if(q&&l)if(this.resetFragmentErrors(e),j<q.maxNumRetry)!s&&x!==pi.RemoveAlternatePermanently&&(l.resolved=!0);else{B.warn(`${t.details} reached or exceeded max retry (${j})`);return}else(l==null?void 0:l.action)===pi.SendAlternateToPenaltyBox?this.state=ci.WAITING_LEVEL:this.state=ci.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===ci.PARSING||this.state===ci.PARSED){const t=e.frag,r=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),s=i&&i.len>.5;s&&this.reduceMaxBufferLength(i.len,(t==null?void 0:t.duration)||10);const l=!s;return l&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${r} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),l}return!1}resetFragmentErrors(e){e===jt.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==ci.STOPPED&&(this.state=ci.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const i=Xa.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,r),this.state===ci.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=ci.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,r,i){var s;const l=r.details;if(!l){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((j,q)=>{const Ae=e.elementaryStreams[q];if(Ae){const Oe=Ae.endPTS-Ae.startPTS;if(Oe<=0)return this.warn(`Could not parse fragment ${e.sn} ${q} duration reliably (${Oe})`),j||!1;const Ye=i?0:co(l,e,Ae.startPTS,Ae.endPTS,Ae.startDTS,Ae.endDTS);return this.hls.trigger(a.LEVEL_PTS_UPDATED,{details:l,level:r,drift:Ye,type:q,frag:e,start:Ae.startPTS,end:Ae.endPTS}),!0}return j},!1)&&((s=this.transmuxer)==null?void 0:s.error)===null){const j=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(r.fragmentError===0&&(r.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(j.message),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,error:j,frag:e,reason:`Found no media in msn ${e.sn} of level "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=ci.PARSED,this.hls.trigger(a.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class Wl{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let r;if(e.length)e.length===1?r=e[0]:r=ic(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function ic(d,e){const t=new Uint8Array(e);let r=0;for(let i=0;i<d.length;i++){const s=d[i];t.set(s,r),r+=s.length}return t}function ac(){return typeof __HLS_WORKER_BUNDLE__=="function"}function du(){const d=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(d);return{worker:new self.Worker(e),objectURL:e}}function sc(d){const e=new self.URL(d,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Xo(d="",e=9e4){return{type:d,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Hu{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,r,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,r){}demux(e,t){this.cachedData&&(e=On(this.cachedData,e),this.cachedData=null);let r=D(e,0),i=r?r.length:0,s;const l=this._audioTrack,x=this._id3Track,j=r?N(r):void 0,q=e.length;for((this.basePTS===null||this.frameIndex===0&&o(j))&&(this.basePTS=oc(j,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&x.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:$i.audioId3,duration:Number.POSITIVE_INFINITY});i<q;){if(this.canParse(e,i)){const Ae=this.appendFrame(l,e,i);Ae?(this.frameIndex++,this.lastPTS=Ae.sample.pts,i+=Ae.length,s=i):i=q}else Z(e,i)?(r=D(e,i),x.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:$i.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,s=i):i++;if(i===q&&s!==q){const Ae=z(e,s);this.cachedData?this.cachedData=On(this.cachedData,Ae):this.cachedData=Ae}}return{audioTrack:l,videoTrack:Xo(),id3Track:x,textTrack:Xo()}}demuxSampleAes(e,t,r){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Xo(),id3Track:this._id3Track,textTrack:Xo()}}destroy(){}}const oc=(d,e,t)=>{if(o(d))return d*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};function b(d,e,t,r){let i,s,l,x;const j=navigator.userAgent.toLowerCase(),q=r,Ae=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=((e[t+2]&192)>>>6)+1;const Oe=(e[t+2]&60)>>>2;if(Oe>Ae.length-1){const Ye=new Error(`invalid ADTS sampling index:${Oe}`);d.emit(a.ERROR,a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!0,error:Ye,reason:Ye.message});return}return l=(e[t+2]&1)<<2,l|=(e[t+3]&192)>>>6,B.log(`manifest codec:${r}, ADTS type:${i}, samplingIndex:${Oe}`),/firefox/i.test(j)?Oe>=6?(i=5,x=new Array(4),s=Oe-3):(i=2,x=new Array(2),s=Oe):j.indexOf("android")!==-1?(i=2,x=new Array(2),s=Oe):(i=5,x=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&Oe>=6?s=Oe-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(Oe>=6&&l===1||/vivaldi/i.test(j))||!r&&l===1)&&(i=2,x=new Array(2)),s=Oe)),x[0]=i<<3,x[0]|=(Oe&14)>>1,x[1]|=(Oe&1)<<7,x[1]|=l<<3,i===5&&(x[1]|=(s&14)>>1,x[2]=(s&1)<<7,x[2]|=8,x[3]=0),{config:x,samplerate:Ae[Oe],channelCount:l,codec:"mp4a.40."+i,manifestCodec:q}}function u(d,e){return d[e]===255&&(d[e+1]&246)===240}function y(d,e){return d[e+1]&1?7:9}function M(d,e){return(d[e+3]&3)<<11|d[e+4]<<3|(d[e+5]&224)>>>5}function ne(d,e){return e+5<d.length}function W(d,e){return e+1<d.length&&u(d,e)}function ge(d,e){return ne(d,e)&&u(d,e)&&M(d,e)<=d.length-e}function Le(d,e){if(W(d,e)){const t=y(d,e);if(e+t>=d.length)return!1;const r=M(d,e);if(r<=t)return!1;const i=e+r;return i===d.length||W(d,i)}return!1}function ke(d,e,t,r,i){if(!d.samplerate){const s=b(e,t,r,i);if(!s)return;d.config=s.config,d.samplerate=s.samplerate,d.channelCount=s.channelCount,d.codec=s.codec,d.manifestCodec=s.manifestCodec,B.log(`parsed codec:${d.codec}, rate:${s.samplerate}, channels:${s.channelCount}`)}}function rt(d){return 1024*9e4/d}function yt(d,e){const t=y(d,e);if(e+t<=d.length){const r=M(d,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function vt(d,e,t,r,i){const s=rt(d.samplerate),l=r+i*s,x=yt(e,t);let j;if(x){const{frameLength:Oe,headerLength:Ye}=x,Xe=Ye+Oe,lt=Math.max(0,t+Xe-e.length);lt?(j=new Uint8Array(Xe-Ye),j.set(e.subarray(t+Ye,e.length),0)):j=e.subarray(t+Ye,t+Xe);const Ct={unit:j,pts:l};return lt||d.samples.push(Ct),{sample:Ct,length:Xe,missing:lt}}const q=e.length-t;return j=new Uint8Array(q),j.set(e.subarray(t,e.length),0),{sample:{unit:j,pts:l},length:q,missing:-1}}let Pt=null;const Ve=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],cr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],tr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],dr=[0,1,1,4];function Qt(d,e,t,r,i){if(t+24>e.length)return;const s=pr(e,t);if(s&&t+s.frameLength<=e.length){const l=s.samplesPerFrame*9e4/s.sampleRate,x=r+i*l,j={unit:e.subarray(t,t+s.frameLength),pts:x,dts:x};return d.config=[],d.channelCount=s.channelCount,d.samplerate=s.sampleRate,d.samples.push(j),{sample:j,length:s.frameLength,missing:0}}}function pr(d,e){const t=d[e+1]>>3&3,r=d[e+1]>>1&3,i=d[e+2]>>4&15,s=d[e+2]>>2&3;if(t!==1&&i!==0&&i!==15&&s!==3){const l=d[e+2]>>1&1,x=d[e+3]>>6,j=t===3?3-r:r===3?3:4,q=Ve[j*14+i-1]*1e3,Oe=cr[(t===3?0:t===2?1:2)*3+s],Ye=x===3?1:2,Xe=tr[t][r],lt=dr[r],Ct=Xe*8*lt,Tt=Math.floor(Xe*q/Oe+l)*lt;if(Pt===null){const Or=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Pt=Or?parseInt(Or[1]):0}return!!Pt&&Pt<=87&&r===2&&q>=224e3&&x===0&&(d[e+3]=d[e+3]|128),{sampleRate:Oe,channelCount:Ye,frameLength:Tt,samplesPerFrame:Ct}}}function Mr(d,e){return d[e]===255&&(d[e+1]&224)===224&&(d[e+1]&6)!==0}function sn(d,e){return e+1<d.length&&Mr(d,e)}function Rn(d,e){return Mr(d,e)&&4<=d.length-e}function di(d,e){if(e+1<d.length&&Mr(d,e)){const r=pr(d,e);let i=4;r!=null&&r.frameLength&&(i=r.frameLength);const s=e+i;return s===d.length||sn(d,s)}return!1}class pn extends Hu{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=D(e,0);let r=(t==null?void 0:t.length)||0;if(di(e,r))return!1;for(let i=e.length;r<i;r++)if(Le(e,r))return B.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return ge(e,t)}appendFrame(e,t,r){ke(e,this.observer,t,r,e.manifestCodec);const i=vt(e,t,r,this.basePTS,this.frameIndex);if(i&&i.missing===0)return i}}const Sr=/\/emsg[-/]ID3/i;class xn{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,r,i){const s=this.videoTrack=Xo("video",1),l=this.audioTrack=Xo("audio",1),x=this.txtTrack=Xo("text",1);if(this.id3Track=Xo("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const j=qt(e);if(j.video){const{id:q,timescale:Ae,codec:Oe}=j.video;s.id=q,s.timescale=x.timescale=Ae,s.codec=Oe}if(j.audio){const{id:q,timescale:Ae,codec:Oe}=j.audio;l.id=q,l.timescale=Ae,l.codec=Oe}x.id=mr.text,s.sampleDuration=0,s.duration=l.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return Yr(e)}demux(e,t){this.timeOffset=t;let r=e;const i=this.videoTrack,s=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=On(this.remainderData,e));const x=ji(r);this.remainderData=x.remainder,i.samples=x.valid||new Uint8Array}else i.samples=r;const l=this.extractID3Track(i,t);return s.samples=$n(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:l,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(t,this.timeOffset);return r.samples=$n(e,t),{videoTrack:t,audioTrack:Xo(),id3Track:i,textTrack:Xo()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const i=It(e.samples,["emsg"]);i&&i.forEach(s=>{const l=_t(s);if(Sr.test(l.schemeIdUri)){const x=o(l.presentationTime)?l.presentationTime/l.timeScale:t+l.presentationTimeDelta/l.timeScale;let j=l.eventDuration===4294967295?Number.POSITIVE_INFINITY:l.eventDuration/l.timeScale;j<=.001&&(j=Number.POSITIVE_INFINITY);const q=l.payload;r.samples.push({data:q,len:q.byteLength,dts:x,pts:x,type:$i.emsg,duration:j})}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const Nn=(d,e)=>{let t=0,r=5;e+=r;const i=new Uint32Array(1),s=new Uint32Array(1),l=new Uint8Array(1);for(;r>0;){l[0]=d[e];const x=Math.min(r,8),j=8-x;s[0]=4278190080>>>24+j<<j,i[0]=(l[0]&s[0])>>j,t=t?t<<x|i[0]:i[0],e+=1,r-=x}return t};class er extends Hu{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,r){const i=nr(e,t,r,this.basePTS,this.frameIndex);if(i!==-1)return{sample:e.samples[e.samples.length-1],length:i,missing:0}}static probe(e){if(!e)return!1;const t=D(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&N(t)!==void 0&&Nn(e,r)<16}}function nr(d,e,t,r,i){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const s=e[t+4]>>6;if(s>=3)return-1;const x=[48e3,44100,32e3][s],j=e[t+4]&63,Ae=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][j*3+s]*2;if(t+Ae>e.length)return-1;const Oe=e[t+6]>>5;let Ye=0;Oe===2?Ye+=2:(Oe&1&&Oe!==1&&(Ye+=2),Oe&4&&(Ye+=2));const Xe=(e[t+6]<<8|e[t+7])>>12-Ye&1,Ct=[2,1,2,3,3,4,4,5][Oe]+Xe,Tt=e[t+5]>>3,vr=e[t+5]&7,Nr=new Uint8Array([s<<6|Tt<<1|vr>>2,(vr&3)<<6|Oe<<3|Xe<<2|j>>4,j<<4&224]),Or=1536/x*9e4,Un=r+i*Or,cn=e.subarray(t,t+Ae);return d.config=Nr,d.channelCount=Ct,d.samplerate=x,d.samples.push({unit:cn,pts:Un}),Ae}class ye{constructor(){this.VideoSample=null}createVideoSample(e,t,r,i){return{key:e,frame:!1,pts:t,dts:r,units:[],debug:i,length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const s=r.units;i=s[s.length-1]}return i}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,i=r.length;if(i){const s=r[i-1];e.pts=s.pts,e.dts=s.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&B.log(e.pts+"/"+e.dts+":"+e.debug)}}class xe{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,r=e.byteLength-t,i=new Uint8Array(4),s=Math.min(4,t);if(s===0)throw new Error("no bytes available");i.set(e.subarray(r,r+s)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const r=this.word>>>32-t;if(e>32&&B.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?r<<t|this.readBits(t):r}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let t=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=this.readEG(),r=(t+i+256)%256),t=r===0?t:r}readSPS(){let e=0,t=0,r=0,i=0,s,l,x;const j=this.readUByte.bind(this),q=this.readBits.bind(this),Ae=this.readUEG.bind(this),Oe=this.readBoolean.bind(this),Ye=this.skipBits.bind(this),Xe=this.skipEG.bind(this),lt=this.skipUEG.bind(this),Ct=this.skipScalingList.bind(this);j();const Tt=j();if(q(5),Ye(3),j(),lt(),Tt===100||Tt===110||Tt===122||Tt===244||Tt===44||Tt===83||Tt===86||Tt===118||Tt===128){const gi=Ae();if(gi===3&&Ye(1),lt(),lt(),Ye(1),Oe())for(l=gi!==3?8:12,x=0;x<l;x++)Oe()&&(x<6?Ct(16):Ct(64))}lt();const vr=Ae();if(vr===0)Ae();else if(vr===1)for(Ye(1),Xe(),Xe(),s=Ae(),x=0;x<s;x++)Xe();lt(),Ye(1);const Nr=Ae(),Or=Ae(),Un=q(1);Un===0&&Ye(1),Ye(1),Oe()&&(e=Ae(),t=Ae(),r=Ae(),i=Ae());let cn=[1,1];if(Oe()&&Oe())switch(j()){case 1:cn=[1,1];break;case 2:cn=[12,11];break;case 3:cn=[10,11];break;case 4:cn=[16,11];break;case 5:cn=[40,33];break;case 6:cn=[24,11];break;case 7:cn=[20,11];break;case 8:cn=[32,11];break;case 9:cn=[80,33];break;case 10:cn=[18,11];break;case 11:cn=[15,11];break;case 12:cn=[64,33];break;case 13:cn=[160,99];break;case 14:cn=[4,3];break;case 15:cn=[3,2];break;case 16:cn=[2,1];break;case 255:{cn=[j()<<8|j(),j()<<8|j()];break}}return{width:Math.ceil((Nr+1)*16-e*2-t*2),height:(2-Un)*(Or+1)*16-(Un?2:4)*(r+i),pixelRatio:cn}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class et extends ye{parseAVCPES(e,t,r,i,s){const l=this.parseAVCNALu(e,r.data);let x=this.VideoSample,j,q=!1;r.data=null,x&&l.length&&!e.audFound&&(this.pushAccessUnit(x,e),x=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),l.forEach(Ae=>{var Oe;switch(Ae.type){case 1:{let Ct=!1;j=!0;const Tt=Ae.data;if(q&&Tt.length>4){const vr=new xe(Tt).readSliceType();(vr===2||vr===4||vr===7||vr===9)&&(Ct=!0)}if(Ct){var Ye;(Ye=x)!=null&&Ye.frame&&!x.key&&(this.pushAccessUnit(x,e),x=this.VideoSample=null)}x||(x=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),x.frame=!0,x.key=Ct;break}case 5:j=!0,(Oe=x)!=null&&Oe.frame&&!x.key&&(this.pushAccessUnit(x,e),x=this.VideoSample=null),x||(x=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),x.key=!0,x.frame=!0;break;case 6:{j=!0,Jr(Ae.data,1,r.pts,t.samples);break}case 7:{var Xe,lt;j=!0,q=!0;const Ct=Ae.data,vr=new xe(Ct).readSPS();if(!e.sps||e.width!==vr.width||e.height!==vr.height||((Xe=e.pixelRatio)==null?void 0:Xe[0])!==vr.pixelRatio[0]||((lt=e.pixelRatio)==null?void 0:lt[1])!==vr.pixelRatio[1]){e.width=vr.width,e.height=vr.height,e.pixelRatio=vr.pixelRatio,e.sps=[Ct],e.duration=s;const Nr=Ct.subarray(1,4);let Or="avc1.";for(let Un=0;Un<3;Un++){let cn=Nr[Un].toString(16);cn.length<2&&(cn="0"+cn),Or+=cn}e.codec=Or}break}case 8:j=!0,e.pps=[Ae.data];break;case 9:j=!0,e.audFound=!0,x&&this.pushAccessUnit(x,e),x=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"");break;case 12:j=!0;break;default:j=!1,x&&(x.debug+="unknown NAL "+Ae.type+" ");break}x&&j&&x.units.push(Ae)}),i&&x&&(this.pushAccessUnit(x,e),this.VideoSample=null)}parseAVCNALu(e,t){const r=t.byteLength;let i=e.naluState||0;const s=i,l=[];let x=0,j,q,Ae,Oe=-1,Ye=0;for(i===-1&&(Oe=0,Ye=t[0]&31,i=0,x=1);x<r;){if(j=t[x++],!i){i=j?0:1;continue}if(i===1){i=j?0:2;continue}if(!j)i=3;else if(j===1){if(q=x-i-1,Oe>=0){const Xe={data:t.subarray(Oe,q),type:Ye};l.push(Xe)}else{const Xe=this.getLastNalUnit(e.samples);Xe&&(s&&x<=4-s&&Xe.state&&(Xe.data=Xe.data.subarray(0,Xe.data.byteLength-s)),q>0&&(Xe.data=On(Xe.data,t.subarray(0,q)),Xe.state=0))}x<r?(Ae=t[x]&31,Oe=x,Ye=Ae,i=0):i=-1}else i=0}if(Oe>=0&&i>=0){const Xe={data:t.subarray(Oe,r),type:Ye,state:i};l.push(Xe)}if(l.length===0){const Xe=this.getLastNalUnit(e.samples);Xe&&(Xe.data=On(Xe.data,t))}return e.naluState=i,l}}class st{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Ol(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,r){const i=e[t].unit;if(i.length<=16)return;const s=i.subarray(16,i.length-i.length%16),l=s.buffer.slice(s.byteOffset,s.byteOffset+s.length);this.decryptBuffer(l).then(x=>{const j=new Uint8Array(x);i.set(j,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)})}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let i=0;for(let s=32;s<e.length-16;s+=160,i+=16)r.set(e.subarray(s,s+16),i);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let i=0;for(let s=32;s<e.length-16;s+=160,i+=16)e.set(r.subarray(i,i+16),s);return e}decryptAvcSample(e,t,r,i,s){const l=Ot(s.data),x=this.getAvcEncryptedData(l);this.decryptBuffer(x.buffer).then(j=>{s.data=this.getAvcDecryptedUnit(l,j),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,i)})}decryptAvcSamples(e,t,r,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){i();return}const s=e[t].units;for(;!(r>=s.length);r++){const l=s[r];if(!(l.data.length<=48||l.type!==1&&l.type!==5)&&(this.decryptAvcSample(e,t,r,i,l),!this.decrypter.isSync()))return}}}}const gt=188;class ft{constructor(e,t,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.videoParser=new et}static probe(e){const t=ft.syncOffset(e);return t>0&&B.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let r=Math.min(gt*5,t-gt)+1,i=0;for(;i<r;){let s=!1,l=-1,x=0;for(let j=i;j<t;j+=gt)if(e[j]===71&&(t-j===gt||e[j+gt]===71)){if(x++,l===-1&&(l=j,l!==0&&(r=Math.min(l+gt*99,e.length-gt)+1)),s||(s=Ut(e,j)===0),s&&x>1&&(l===0&&x>2||j+gt>r))return l}else{if(x)return-1;break}i++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:mr[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=ft.createTrack("video"),this._audioTrack=ft.createTrack("audio",i),this._id3Track=ft.createTrack("id3"),this._txtTrack=ft.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r,this._duration=i}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:r}=this;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,r=!1,i=!1){r||(this.sampleAes=null);let s;const l=this._videoTrack,x=this._audioTrack,j=this._id3Track,q=this._txtTrack;let Ae=l.pid,Oe=l.pesData,Ye=x.pid,Xe=j.pid,lt=x.pesData,Ct=j.pesData,Tt=null,vr=this.pmtParsed,Nr=this._pmtId,Or=e.length;if(this.remainderData&&(e=On(this.remainderData,e),Or=e.length,this.remainderData=null),Or<gt&&!i)return this.remainderData=e,{audioTrack:x,videoTrack:l,id3Track:j,textTrack:q};const Un=Math.max(0,ft.syncOffset(e));Or-=(Or-Un)%gt,Or<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,Or,e.buffer.byteLength-Or));let cn=0;for(let zn=Un;zn<Or;zn+=gt)if(e[zn]===71){const Ii=!!(e[zn+1]&64),ea=Ut(e,zn),mi=(e[zn+3]&48)>>4;let Oi;if(mi>1){if(Oi=zn+5+e[zn+4],Oi===zn+gt)continue}else Oi=zn+4;switch(ea){case Ae:Ii&&(Oe&&(s=wt(Oe))&&this.videoParser.parseAVCPES(l,q,s,!1,this._duration),Oe={data:[],size:0}),Oe&&(Oe.data.push(e.subarray(Oi,zn+gt)),Oe.size+=zn+gt-Oi);break;case Ye:if(Ii){if(lt&&(s=wt(lt)))switch(x.segmentCodec){case"aac":this.parseAACPES(x,s);break;case"mp3":this.parseMPEGPES(x,s);break;case"ac3":this.parseAC3PES(x,s);break}lt={data:[],size:0}}lt&&(lt.data.push(e.subarray(Oi,zn+gt)),lt.size+=zn+gt-Oi);break;case Xe:Ii&&(Ct&&(s=wt(Ct))&&this.parseID3PES(j,s),Ct={data:[],size:0}),Ct&&(Ct.data.push(e.subarray(Oi,zn+gt)),Ct.size+=zn+gt-Oi);break;case 0:Ii&&(Oi+=e[Oi]+1),Nr=this._pmtId=$t(e,Oi);break;case Nr:{Ii&&(Oi+=e[Oi]+1);const Ga=sr(e,Oi,this.typeSupported,r,this.observer);Ae=Ga.videoPid,Ae>0&&(l.pid=Ae,l.segmentCodec=Ga.segmentVideoCodec),Ye=Ga.audioPid,Ye>0&&(x.pid=Ye,x.segmentCodec=Ga.segmentAudioCodec),Xe=Ga.id3Pid,Xe>0&&(j.pid=Xe),Tt!==null&&!vr&&(B.warn(`MPEG-TS PMT found at ${zn} after unknown PID '${Tt}'. Backtracking to sync byte @${Un} to parse all TS packets.`),Tt=null,zn=Un-188),vr=this.pmtParsed=!0;break}case 17:case 8191:break;default:Tt=ea;break}}else cn++;cn>0&&Ze(this.observer,new Error(`Found ${cn} TS packet/s that do not start with 0x47`)),l.pesData=Oe,x.pesData=lt,j.pesData=Ct;const gi={audioTrack:x,videoTrack:l,id3Track:j,textTrack:q};return i&&this.extractRemainingSamples(gi),gi}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:r,id3Track:i,textTrack:s}=e,l=r.pesData,x=t.pesData,j=i.pesData;let q;if(l&&(q=wt(l))?(this.videoParser.parseAVCPES(r,s,q,!0,this._duration),r.pesData=null):r.pesData=l,x&&(q=wt(x))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,q);break;case"mp3":this.parseMPEGPES(t,q);break;case"ac3":this.parseAC3PES(t,q);break}t.pesData=null}else x!=null&&x.size&&B.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=x;j&&(q=wt(j))?(this.parseID3PES(i,q),i.pesData=null):i.pesData=j}demuxSampleAes(e,t,r){const i=this.demux(e,r,!0,!this.config.progressive),s=this.sampleAes=new st(this.observer,this.config,t);return this.decrypt(i,s)}decrypt(e,t){return new Promise(r=>{const{audioTrack:i,videoTrack:s}=e;i.samples&&i.segmentCodec==="aac"?t.decryptAacSamples(i.samples,0,()=>{s.samples?t.decryptAvcSamples(s.samples,0,0,()=>{r(e)}):r(e)}):s.samples&&t.decryptAvcSamples(s.samples,0,0,()=>{r(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let r=0;const i=this.aacOverFlow;let s=t.data;if(i){this.aacOverFlow=null;const Oe=i.missing,Ye=i.sample.unit.byteLength;if(Oe===-1)s=On(i.sample.unit,s);else{const Xe=Ye-Oe;i.sample.unit.set(s.subarray(0,Oe),Xe),e.samples.push(i.sample),r=i.missing}}let l,x;for(l=r,x=s.length;l<x-1&&!W(s,l);l++);if(l!==r){let Oe;const Ye=l<x-1;if(Ye?Oe=`AAC PES did not start with ADTS header,offset:${l}`:Oe="No ADTS header found in AAC PES",Ze(this.observer,new Error(Oe),Ye),!Ye)return}ke(e,this.observer,s,l,this.audioCodec);let j;if(t.pts!==void 0)j=t.pts;else if(i){const Oe=rt(e.samplerate);j=i.sample.pts+Oe}else{B.warn("[tsdemuxer]: AAC PES unknown PTS");return}let q=0,Ae;for(;l<x;)if(Ae=vt(e,s,l,j,q),l+=Ae.length,Ae.missing){this.aacOverFlow=Ae;break}else for(q++;l<x-1&&!W(s,l);l++);}parseMPEGPES(e,t){const r=t.data,i=r.length;let s=0,l=0;const x=t.pts;if(x===void 0){B.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;l<i;)if(sn(r,l)){const j=Qt(e,r,l,x,s);if(j)l+=j.length,s++;else break}else l++}parseAC3PES(e,t){{const r=t.data,i=t.pts;if(i===void 0){B.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const s=r.length;let l=0,x=0,j;for(;x<s&&(j=nr(e,r,x,i,l++))>0;)x+=j}}parseID3PES(e,t){if(t.pts===void 0){B.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=n({},t,{type:this._videoTrack?$i.emsg:$i.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function Ut(d,e){return((d[e+1]&31)<<8)+d[e+2]}function $t(d,e){return(d[e+10]&31)<<8|d[e+11]}function sr(d,e,t,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(d[e+1]&15)<<8|d[e+2],x=e+3+l-4,j=(d[e+10]&15)<<8|d[e+11];for(e+=12+j;e<x;){const q=Ut(d,e),Ae=(d[e+3]&15)<<8|d[e+4];switch(d[e]){case 207:if(!r){_e("ADTS AAC");break}case 15:s.audioPid===-1&&(s.audioPid=q);break;case 21:s.id3Pid===-1&&(s.id3Pid=q);break;case 219:if(!r){_e("H.264");break}case 27:s.videoPid===-1&&(s.videoPid=q,s.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?B.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=q,s.segmentAudioCodec="mp3");break;case 193:if(!r){_e("AC-3");break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=q,s.segmentAudioCodec="ac3"):B.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&Ae>0){let Oe=e+5,Ye=Ae;for(;Ye>2;){switch(d[Oe]){case 106:t.ac3!==!0?B.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=q,s.segmentAudioCodec="ac3");break}const lt=d[Oe+1]+2;Oe+=lt,Ye-=lt}}break;case 194:case 135:return Ze(i,new Error("Unsupported EC-3 in M2TS found")),s;case 36:return Ze(i,new Error("Unsupported HEVC in M2TS found")),s}e+=Ae+5}return s}function Ze(d,e,t){B.warn(`parsing error: ${e.message}`),d.emit(a.ERROR,a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function _e(d){B.log(`${d} with AES-128-CBC encryption found in unencrypted stream`)}function wt(d){let e=0,t,r,i,s,l;const x=d.data;if(!d||d.size===0)return null;for(;x[0].length<19&&x.length>1;)x[0]=On(x[0],x[1]),x.splice(1,1);if(t=x[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(r=(t[4]<<8)+t[5],r&&r>d.size-6)return null;const q=t[7];q&192&&(s=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,q&64?(l=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,s-l>60*9e4&&(B.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),i=t[8];let Ae=i+9;if(d.size<=Ae)return null;d.size-=Ae;const Oe=new Uint8Array(d.size);for(let Ye=0,Xe=x.length;Ye<Xe;Ye++){t=x[Ye];let lt=t.byteLength;if(Ae)if(Ae>lt){Ae-=lt;continue}else t=t.subarray(Ae),lt-=Ae,Ae=0;Oe.set(t,e),e+=lt}return r&&(r-=i+3),{data:Oe,pts:s,dts:l,len:r}}return null}class Ht extends Hu{resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=D(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&N(t)!==void 0&&Nn(e,r)<=16)return!1;for(let i=e.length;r<i;r++)if(di(e,r))return B.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Rn(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Qt(e,t,r,this.basePTS,this.frameIndex)}}class Wt{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const lr=Math.pow(2,32)-1;class St{static init(){St.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in St.types)St.types.hasOwnProperty(e)&&(St.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);St.HDLR_TYPES={video:t,audio:r};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),s=new Uint8Array([0,0,0,0,0,0,0,0]);St.STTS=St.STSC=St.STCO=s,St.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),St.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),St.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),St.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const l=new Uint8Array([105,115,111,109]),x=new Uint8Array([97,118,99,49]),j=new Uint8Array([0,0,0,1]);St.FTYP=St.box(St.types.ftyp,l,j,l,x),St.DINF=St.box(St.types.dinf,St.box(St.types.dref,i))}static box(e,...t){let r=8,i=t.length;const s=i;for(;i--;)r+=t[i].byteLength;const l=new Uint8Array(r);for(l[0]=r>>24&255,l[1]=r>>16&255,l[2]=r>>8&255,l[3]=r&255,l.set(e,4),i=0,r=8;i<s;i++)l.set(t[i],r),r+=t[i].byteLength;return l}static hdlr(e){return St.box(St.types.hdlr,St.HDLR_TYPES[e])}static mdat(e){return St.box(St.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(lr+1)),i=Math.floor(t%(lr+1));return St.box(St.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(e){return St.box(St.types.mdia,St.mdhd(e.timescale,e.duration),St.hdlr(e.type),St.minf(e))}static mfhd(e){return St.box(St.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?St.box(St.types.minf,St.box(St.types.smhd,St.SMHD),St.DINF,St.stbl(e)):St.box(St.types.minf,St.box(St.types.vmhd,St.VMHD),St.DINF,St.stbl(e))}static moof(e,t,r){return St.box(St.types.moof,St.mfhd(e),St.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=St.trak(e[t]);return St.box.apply(null,[St.types.moov,St.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(St.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=St.trex(e[t]);return St.box.apply(null,[St.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(lr+1)),i=Math.floor(t%(lr+1)),s=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return St.box(St.types.mvhd,s)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let i,s;for(i=0;i<t.length;i++)s=t[i].flags,r[i+4]=s.dependsOn<<4|s.isDependedOn<<2|s.hasRedundancy;return St.box(St.types.sdtp,r)}static stbl(e){return St.box(St.types.stbl,St.stsd(e),St.box(St.types.stts,St.STTS),St.box(St.types.stsc,St.STSC),St.box(St.types.stsz,St.STSZ),St.box(St.types.stco,St.STCO))}static avc1(e){let t=[],r=[],i,s,l;for(i=0;i<e.sps.length;i++)s=e.sps[i],l=s.byteLength,t.push(l>>>8&255),t.push(l&255),t=t.concat(Array.prototype.slice.call(s));for(i=0;i<e.pps.length;i++)s=e.pps[i],l=s.byteLength,r.push(l>>>8&255),r.push(l&255),r=r.concat(Array.prototype.slice.call(s));const x=St.box(St.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),j=e.width,q=e.height,Ae=e.pixelRatio[0],Oe=e.pixelRatio[1];return St.box(St.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,j>>8&255,j&255,q>>8&255,q&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),x,St.box(St.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),St.box(St.types.pasp,new Uint8Array([Ae>>24,Ae>>16&255,Ae>>8&255,Ae&255,Oe>>24,Oe>>16&255,Oe>>8&255,Oe&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return St.box(St.types.mp4a,St.audioStsd(e),St.box(St.types.esds,St.esds(e)))}static mp3(e){return St.box(St.types[".mp3"],St.audioStsd(e))}static ac3(e){return St.box(St.types["ac-3"],St.audioStsd(e),St.box(St.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?St.box(St.types.stsd,St.STSD,St.mp3(e)):e.segmentCodec==="ac3"?St.box(St.types.stsd,St.STSD,St.ac3(e)):St.box(St.types.stsd,St.STSD,St.mp4a(e)):St.box(St.types.stsd,St.STSD,St.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,i=e.width,s=e.height,l=Math.floor(r/(lr+1)),x=Math.floor(r%(lr+1));return St.box(St.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,x>>24,x>>16&255,x>>8&255,x&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,s>>8&255,s&255,0,0]))}static traf(e,t){const r=St.sdtp(e),i=e.id,s=Math.floor(t/(lr+1)),l=Math.floor(t%(lr+1));return St.box(St.types.traf,St.box(St.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),St.box(St.types.tfdt,new Uint8Array([1,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255])),St.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,St.box(St.types.trak,St.tkhd(e),St.mdia(e))}static trex(e){const t=e.id;return St.box(St.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const r=e.samples||[],i=r.length,s=12+16*i,l=new Uint8Array(s);let x,j,q,Ae,Oe,Ye;for(t+=8+s,l.set([e.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),x=0;x<i;x++)j=r[x],q=j.duration,Ae=j.size,Oe=j.flags,Ye=j.cts,l.set([q>>>24&255,q>>>16&255,q>>>8&255,q&255,Ae>>>24&255,Ae>>>16&255,Ae>>>8&255,Ae&255,Oe.isLeading<<2|Oe.dependsOn,Oe.isDependedOn<<6|Oe.hasRedundancy<<4|Oe.paddingValue<<1|Oe.isNonSync,Oe.degradPrio&61440,Oe.degradPrio&15,Ye>>>24&255,Ye>>>16&255,Ye>>>8&255,Ye&255],12+16*x);return St.box(St.types.trun,l)}static initSegment(e){St.types||St.init();const t=St.moov(e);return On(St.FTYP,t)}}St.types=void 0,St.HDLR_TYPES=void 0,St.STTS=void 0,St.STSC=void 0,St.STCO=void 0,St.STSZ=void 0,St.VMHD=void 0,St.SMHD=void 0,St.STSD=void 0,St.FTYP=void 0,St.DINF=void 0;const yr=9e4;function Gr(d,e,t=1,r=!1){const i=d*e*t;return r?Math.round(i):i}function $r(d,e,t=1,r=!1){return Gr(d,e,1/t,r)}function An(d,e=!1){return Gr(d,1e3,1/yr,e)}function Dn(d,e=1){return Gr(d,yr,1/e)}const ni=10*1e3,kr=1024,ir=1152,Si=1536;let Fn=null,ln=null;class dn{constructor(e,t,r,i=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.ISGenerated=!1,Fn===null){const l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Fn=l?parseInt(l[1]):0}if(ln===null){const s=navigator.userAgent.match(/Safari\/(\d+)/i);ln=s?parseInt(s[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){B.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){B.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){B.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const r=e[0].pts,i=e.reduce((s,l)=>{let x=l.pts,j=x-s;return j<-4294967296&&(t=!0,x=rn(x,r),j=x-s),j>0?s:x},r);return t&&B.debug("PTS rollover detected"),i}remux(e,t,r,i,s,l,x,j){let q,Ae,Oe,Ye,Xe,lt,Ct=s,Tt=s;const vr=e.pid>-1,Nr=t.pid>-1,Or=t.samples.length,Un=e.samples.length>0,cn=x&&Or>0||Or>1;if((!vr||Un)&&(!Nr||cn)||this.ISGenerated||x){if(this.ISGenerated){var zn,Ii,ea,mi;const ja=this.videoTrackConfig;ja&&(t.width!==ja.width||t.height!==ja.height||((zn=t.pixelRatio)==null?void 0:zn[0])!==((Ii=ja.pixelRatio)==null?void 0:Ii[0])||((ea=t.pixelRatio)==null?void 0:ea[1])!==((mi=ja.pixelRatio)==null?void 0:mi[1]))&&this.resetInitSegment()}else Oe=this.generateIS(e,t,s,l);const Oi=this.isVideoContiguous;let Ga=-1,ia;if(cn&&(Ga=Cn(t.samples),!Oi&&this.config.forceKeyFrameOnDiscontinuity))if(lt=!0,Ga>0){B.warn(`[mp4-remuxer]: Dropped ${Ga} out of ${Or} video samples due to a missing keyframe`);const ja=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Ga),t.dropped+=Ga,Tt+=(t.samples[0].pts-ja)/t.inputTimeScale,ia=Tt}else Ga===-1&&(B.warn(`[mp4-remuxer]: No keyframe found out of ${Or} video samples`),lt=!1);if(this.ISGenerated){if(Un&&cn){const ja=this.getVideoStartPts(t.samples),Ra=(rn(e.samples[0].pts,ja)-ja)/t.inputTimeScale;Ct+=Math.max(0,Ra),Tt+=Math.max(0,-Ra)}if(Un){if(e.samplerate||(B.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Oe=this.generateIS(e,t,s,l)),Ae=this.remuxAudio(e,Ct,this.isAudioContiguous,l,Nr||cn||j===jt.AUDIO?Tt:void 0),cn){const ja=Ae?Ae.endPTS-Ae.startPTS:0;t.inputTimeScale||(B.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Oe=this.generateIS(e,t,s,l)),q=this.remuxVideo(t,Tt,Oi,ja)}}else cn&&(q=this.remuxVideo(t,Tt,Oi,0));q&&(q.firstKeyFrame=Ga,q.independent=Ga!==-1,q.firstKeyFramePTS=ia)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(Xe=si(r,s,this._initPTS,this._initDTS)),i.samples.length&&(Ye=Fi(i,s,this._initPTS))),{audio:Ae,video:q,initSegment:Oe,independent:lt,text:Ye,id3:Xe}}generateIS(e,t,r,i){const s=e.samples,l=t.samples,x=this.typeSupported,j={},q=this._initPTS;let Ae=!q||i,Oe="audio/mp4",Ye,Xe,lt;if(Ae&&(Ye=Xe=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":x.mpeg?(Oe="audio/mpeg",e.codec=""):x.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}j.audio={id:"audio",container:Oe,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&x.mpeg?new Uint8Array(0):St.initSegment([e]),metadata:{channelCount:e.channelCount}},Ae&&(lt=e.inputTimeScale,!q||lt!==q.timescale?Ye=Xe=s[0].pts-Math.round(lt*r):Ae=!1)}if(t.sps&&t.pps&&l.length){if(t.timescale=t.inputTimeScale,j.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:St.initSegment([t]),metadata:{width:t.width,height:t.height}},Ae)if(lt=t.inputTimeScale,!q||lt!==q.timescale){const Ct=this.getVideoStartPts(l),Tt=Math.round(lt*r);Xe=Math.min(Xe,rn(l[0].dts,Ct)-Tt),Ye=Math.min(Ye,Ct-Tt)}else Ae=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(j).length)return this.ISGenerated=!0,Ae?(this._initPTS={baseTime:Ye,timescale:lt},this._initDTS={baseTime:Xe,timescale:lt}):Ye=lt=void 0,{tracks:j,initPTS:Ye,timescale:lt}}remuxVideo(e,t,r,i){const s=e.inputTimeScale,l=e.samples,x=[],j=l.length,q=this._initPTS;let Ae=this.nextAvcDts,Oe=8,Ye=this.videoSampleDuration,Xe,lt,Ct=Number.POSITIVE_INFINITY,Tt=Number.NEGATIVE_INFINITY,vr=!1;if(!r||Ae===null){const ha=t*s,oa=l[0].pts-rn(l[0].dts,l[0].pts);Fn&&Ae!==null&&Math.abs(ha-oa-Ae)<15e3?r=!0:Ae=ha-oa}const Nr=q.baseTime*s/q.timescale;for(let ha=0;ha<j;ha++){const oa=l[ha];oa.pts=rn(oa.pts-Nr,Ae),oa.dts=rn(oa.dts-Nr,Ae),oa.dts<l[ha>0?ha-1:ha].dts&&(vr=!0)}vr&&l.sort(function(ha,oa){const ks=ha.dts-oa.dts,hs=ha.pts-oa.pts;return ks||hs}),Xe=l[0].dts,lt=l[l.length-1].dts;const Or=lt-Xe,Un=Or?Math.round(Or/(j-1)):Ye||e.inputTimeScale/30;if(r){const ha=Xe-Ae,oa=ha>Un,ks=ha<-1;if((oa||ks)&&(oa?B.warn(`AVC: ${An(ha,!0)} ms (${ha}dts) hole between fragments detected at ${t.toFixed(3)}`):B.warn(`AVC: ${An(-ha,!0)} ms (${ha}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!ks||Ae>=l[0].pts||Fn)){Xe=Ae;const hs=l[0].pts-ha;if(oa)l[0].dts=Xe,l[0].pts=hs;else for(let Ws=0;Ws<l.length&&!(l[Ws].dts>hs);Ws++)l[Ws].dts-=ha,l[Ws].pts-=ha;B.log(`Video: Initial PTS/DTS adjusted: ${An(hs,!0)}/${An(Xe,!0)}, delta: ${An(ha,!0)} ms`)}}Xe=Math.max(0,Xe);let cn=0,gi=0,zn=Xe;for(let ha=0;ha<j;ha++){const oa=l[ha],ks=oa.units,hs=ks.length;let Ws=0;for(let lo=0;lo<hs;lo++)Ws+=ks[lo].data.length;gi+=Ws,cn+=hs,oa.length=Ws,oa.dts<zn?(oa.dts=zn,zn+=Un/4|0||1):zn=oa.dts,Ct=Math.min(oa.pts,Ct),Tt=Math.max(oa.pts,Tt)}lt=l[j-1].dts;const Ii=gi+4*cn+8;let ea;try{ea=new Uint8Array(Ii)}catch(ha){this.observer.emit(a.ERROR,a.ERROR,{type:A.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:ha,bytes:Ii,reason:`fail allocating video mdat ${Ii}`});return}const mi=new DataView(ea.buffer);mi.setUint32(0,Ii),ea.set(St.types.mdat,4);let Oi=!1,Ga=Number.POSITIVE_INFINITY,ia=Number.POSITIVE_INFINITY,ja=Number.NEGATIVE_INFINITY,Ua=Number.NEGATIVE_INFINITY;for(let ha=0;ha<j;ha++){const oa=l[ha],ks=oa.units;let hs=0;for(let Ms=0,Fo=ks.length;Ms<Fo;Ms++){const dl=ks[Ms],_c=dl.data,Fc=dl.data.byteLength;mi.setUint32(Oe,Fc),Oe+=4,ea.set(_c,Oe),Oe+=Fc,hs+=4+Fc}let Ws;if(ha<j-1)Ye=l[ha+1].dts-oa.dts,Ws=l[ha+1].pts-oa.pts;else{const Ms=this.config,Fo=ha>0?oa.dts-l[ha-1].dts:Un;if(Ws=ha>0?oa.pts-l[ha-1].pts:Un,Ms.stretchShortVideoTrack&&this.nextAudioPts!==null){const dl=Math.floor(Ms.maxBufferHole*s),_c=(i?Ct+i*s:this.nextAudioPts)-oa.pts;_c>dl?(Ye=_c-Fo,Ye<0?Ye=Fo:Oi=!0,B.log(`[mp4-remuxer]: It is approximately ${_c/90} ms to the next segment; using duration ${Ye/90} ms for the last video frame.`)):Ye=Fo}else Ye=Fo}const lo=Math.round(oa.pts-oa.dts);Ga=Math.min(Ga,Ye),ja=Math.max(ja,Ye),ia=Math.min(ia,Ws),Ua=Math.max(Ua,Ws),x.push(new He(oa.key,Ye,hs,lo))}if(x.length){if(Fn){if(Fn<70){const ha=x[0].flags;ha.dependsOn=2,ha.isNonSync=0}}else if(ln&&Ua-ia<ja-Ga&&Un/ja<.025&&x[0].cts===0){B.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let ha=Xe;for(let oa=0,ks=x.length;oa<ks;oa++){const hs=ha+x[oa].duration,Ws=ha+x[oa].cts;if(oa<ks-1){const lo=hs+x[oa+1].cts;x[oa].duration=lo-Ws}else x[oa].duration=oa?x[oa-1].duration:Un;x[oa].cts=0,ha=hs}}}Ye=Oi||!Ye?Un:Ye,this.nextAvcDts=Ae=lt+Ye,this.videoSampleDuration=Ye,this.isVideoContiguous=!0;const Ks={data1:St.moof(e.sequenceNumber++,Xe,n({},e,{samples:x})),data2:ea,startPTS:Ct/s,endPTS:(Tt+Ye)/s,startDTS:Xe/s,endDTS:Ae/s,type:"video",hasAudio:!1,hasVideo:!0,nb:x.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Ks}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return ir;case"ac3":return Si;default:return kr}}remuxAudio(e,t,r,i,s){const l=e.inputTimeScale,x=e.samplerate?e.samplerate:l,j=l/x,q=this.getSamplesPerFrame(e),Ae=q*j,Oe=this._initPTS,Ye=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Xe=[],lt=s!==void 0;let Ct=e.samples,Tt=Ye?0:8,vr=this.nextAudioPts||-1;const Nr=t*l,Or=Oe.baseTime*l/Oe.timescale;if(this.isAudioContiguous=r=r||Ct.length&&vr>0&&(i&&Math.abs(Nr-vr)<9e3||Math.abs(rn(Ct[0].pts-Or,Nr)-vr)<20*Ae),Ct.forEach(function(Ra){Ra.pts=rn(Ra.pts-Or,Nr)}),!r||vr<0){if(Ct=Ct.filter(Ra=>Ra.pts>=0),!Ct.length)return;s===0?vr=0:i&&!lt?vr=Math.max(0,Nr):vr=Ct[0].pts}if(e.segmentCodec==="aac"){const Ra=this.config.maxAudioFramesDrift;for(let Fs=0,Ks=vr;Fs<Ct.length;Fs++){const ha=Ct[Fs],oa=ha.pts,ks=oa-Ks,hs=Math.abs(1e3*ks/l);if(ks<=-Ra*Ae&<)Fs===0&&(B.warn(`Audio frame @ ${(oa/l).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*ks/l)} ms.`),this.nextAudioPts=vr=Ks=oa);else if(ks>=Ra*Ae&&hs<ni&<){let Ws=Math.round(ks/Ae);Ks=oa-Ws*Ae,Ks<0&&(Ws--,Ks+=Ae),Fs===0&&(this.nextAudioPts=vr=Ks),B.warn(`[mp4-remuxer]: Injecting ${Ws} audio frame @ ${(Ks/l).toFixed(3)}s due to ${Math.round(1e3*ks/l)} ms gap.`);for(let lo=0;lo<Ws;lo++){const Ms=Math.max(Ks,0);let Fo=Wt.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Fo||(B.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Fo=ha.unit.subarray()),Ct.splice(Fs,0,{unit:Fo,pts:Ms}),Ks+=Ae,Fs++}}ha.pts=Ks,Ks+=Ae}}let Un=null,cn=null,gi,zn=0,Ii=Ct.length;for(;Ii--;)zn+=Ct[Ii].unit.byteLength;for(let Ra=0,Fs=Ct.length;Ra<Fs;Ra++){const Ks=Ct[Ra],ha=Ks.unit;let oa=Ks.pts;if(cn!==null){const hs=Xe[Ra-1];hs.duration=Math.round((oa-cn)/j)}else if(r&&e.segmentCodec==="aac"&&(oa=vr),Un=oa,zn>0){zn+=Tt;try{gi=new Uint8Array(zn)}catch(hs){this.observer.emit(a.ERROR,a.ERROR,{type:A.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:hs,bytes:zn,reason:`fail allocating audio mdat ${zn}`});return}Ye||(new DataView(gi.buffer).setUint32(0,zn),gi.set(St.types.mdat,4))}else return;gi.set(ha,Tt);const ks=ha.byteLength;Tt+=ks,Xe.push(new He(!0,q,ks,0)),cn=oa}const ea=Xe.length;if(!ea)return;const mi=Xe[Xe.length-1];this.nextAudioPts=vr=cn+j*mi.duration;const Oi=Ye?new Uint8Array(0):St.moof(e.sequenceNumber++,Un/j,n({},e,{samples:Xe}));e.samples=[];const Ga=Un/l,ia=vr/l,Ua={data1:Oi,data2:gi,startPTS:Ga,endPTS:ia,startDTS:Ga,endDTS:ia,type:"audio",hasAudio:!0,hasVideo:!1,nb:ea};return this.isAudioContiguous=!0,Ua}remuxEmptyAudio(e,t,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,x=s/l,j=this.nextAudioPts,q=this._initDTS,Ae=q.baseTime*9e4/q.timescale,Oe=(j!==null?j:i.startDTS*s)+Ae,Ye=i.endDTS*s+Ae,Xe=x*kr,lt=Math.ceil((Ye-Oe)/Xe),Ct=Wt.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(B.warn("[mp4-remuxer]: remux empty Audio"),!Ct){B.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const Tt=[];for(let vr=0;vr<lt;vr++){const Nr=Oe+vr*Xe;Tt.push({unit:Ct,pts:Nr,dts:Nr})}return e.samples=Tt,this.remuxAudio(e,t,r,!1)}}function rn(d,e){let t;if(e===null)return d;for(e<d?t=-8589934592:t=8589934592;Math.abs(d-e)>4294967296;)d+=t;return d}function Cn(d){for(let e=0;e<d.length;e++)if(d[e].key)return e;return-1}function si(d,e,t,r){const i=d.samples.length;if(!i)return;const s=d.inputTimeScale;for(let x=0;x<i;x++){const j=d.samples[x];j.pts=rn(j.pts-t.baseTime*s/t.timescale,e*s)/s,j.dts=rn(j.dts-r.baseTime*s/r.timescale,e*s)/s}const l=d.samples;return d.samples=[],{samples:l}}function Fi(d,e,t){const r=d.samples.length;if(!r)return;const i=d.inputTimeScale;for(let l=0;l<r;l++){const x=d.samples[l];x.pts=rn(x.pts-t.baseTime*i/t.timescale,e*i)/i}d.samples.sort((l,x)=>l.pts-x.pts);const s=d.samples;return d.samples=[],{samples:s}}class He{constructor(e,t,r,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=r,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class c{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,r,i){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(Pe(e,i)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const i=this.initData=qt(e);i.audio&&(t=C(i.audio,me.AUDIO)),i.video&&(r=C(i.video,me.VIDEO));const s={};i.audio&&i.video?s.audiovideo={container:"video/mp4",codec:t+","+r,initSegment:e,id:"main"}:i.audio?s.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:i.video?s.video={container:"video/mp4",codec:r,initSegment:e,id:"main"}:B.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s}remux(e,t,r,i,s,l){var x,j;let{initPTS:q,lastEndTime:Ae}=this;const Oe={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};o(Ae)||(Ae=this.lastEndTime=s||0);const Ye=t.samples;if(!(Ye!=null&&Ye.length))return Oe;const Xe={initPTS:void 0,timescale:1};let lt=this.initData;if((x=lt)!=null&&x.length||(this.generateInitSegment(Ye),lt=this.initData),!((j=lt)!=null&&j.length))return B.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Oe;this.emitInitSegment&&(Xe.tracks=this.initTracks,this.emitInitSegment=!1);const Ct=kn(Ye,lt),Tt=kt(lt,Ye),vr=Tt===null?s:Tt;(w(q,vr,s,Ct)||Xe.timescale!==q.timescale&&l)&&(Xe.initPTS=vr-s,q&&q.timescale===1&&B.warn(`Adjusting initPTS by ${Xe.initPTS-q.baseTime}`),this.initPTS=q={baseTime:Xe.initPTS,timescale:1});const Nr=e?vr-q.baseTime/q.timescale:Ae,Or=Nr+Ct;yi(lt,Ye,q.baseTime/q.timescale),Ct>0?this.lastEndTime=Or:(B.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Un=!!lt.audio,cn=!!lt.video;let gi="";Un&&(gi+="audio"),cn&&(gi+="video");const zn={data1:Ye,startPTS:Nr,startDTS:Nr,endPTS:Or,endDTS:Or,type:gi,hasAudio:Un,hasVideo:cn,nb:1,dropped:0};return Oe.audio=zn.type==="audio"?zn:void 0,Oe.video=zn.type!=="audio"?zn:void 0,Oe.initSegment=Xe,Oe.id3=si(r,s,q,q),i.samples.length&&(Oe.text=Fi(i,s,q)),Oe}}function w(d,e,t,r){if(d===null)return!0;const i=Math.max(r,1),s=e-d.baseTime/d.timescale;return Math.abs(s-t)>i}function C(d,e){const t=d==null?void 0:d.codec;if(t&&t.length>4)return t;if(e===me.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return ti(t,!1);const r="mp4a.40.5";return B.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${r}"`),r}return B.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let K;try{K=self.performance.now.bind(self.performance)}catch(d){B.debug("Unable to use Performance API on this environment"),K=at==null?void 0:at.Date.now}const Be=[{demux:xn,remux:c},{demux:ft,remux:dn},{demux:pn,remux:dn},{demux:Ht,remux:dn}];Be.splice(2,0,{demux:er,remux:dn});class je{constructor(e,t,r,i,s){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=r,this.vendor=i,this.id=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,i){const s=r.transmuxing;s.executeStart=K();let l=new Uint8Array(e);const{currentTransmuxState:x,transmuxConfig:j}=this;i&&(this.currentTransmuxState=i);const{contiguous:q,discontinuity:Ae,trackSwitch:Oe,accurateTimeOffset:Ye,timeOffset:Xe,initSegmentChange:lt}=i||x,{audioCodec:Ct,videoCodec:Tt,defaultInitPts:vr,duration:Nr,initSegmentData:Or}=j,Un=xt(l,t);if(Un&&Un.method==="AES-128"){const Ii=this.getDecrypter();if(Ii.isSync()){let ea=Ii.softwareDecrypt(l,Un.key.buffer,Un.iv.buffer);if(r.part>-1&&(ea=Ii.flush()),!ea)return s.executeEnd=K(),bt(r);l=new Uint8Array(ea)}else return this.decryptionPromise=Ii.webCryptoDecrypt(l,Un.key.buffer,Un.iv.buffer).then(ea=>{const mi=this.push(ea,null,r);return this.decryptionPromise=null,mi}),this.decryptionPromise}const cn=this.needsProbing(Ae,Oe);if(cn){const Ii=this.configureTransmuxer(l);if(Ii)return B.warn(`[transmuxer] ${Ii.message}`),this.observer.emit(a.ERROR,a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,error:Ii,reason:Ii.message}),s.executeEnd=K(),bt(r)}(Ae||Oe||lt||cn)&&this.resetInitSegment(Or,Ct,Tt,Nr,t),(Ae||lt||cn)&&this.resetInitialTimestamp(vr),q||this.resetContiguity();const gi=this.transmux(l,Un,Xe,Ye,r),zn=this.currentTransmuxState;return zn.contiguous=!0,zn.discontinuity=!1,zn.trackSwitch=!1,s.executeEnd=K(),gi}flush(e){const t=e.transmuxing;t.executeStart=K();const{decrypter:r,currentTransmuxState:i,decryptionPromise:s}=this;if(s)return s.then(()=>this.flush(e));const l=[],{timeOffset:x}=i;if(r){const Oe=r.flush();Oe&&l.push(this.push(Oe,null,e))}const{demuxer:j,remuxer:q}=this;if(!j||!q)return t.executeEnd=K(),[bt(e)];const Ae=j.flush(x);return Xt(Ae)?Ae.then(Oe=>(this.flushRemux(l,Oe,e),l)):(this.flushRemux(l,Ae,e),l)}flushRemux(e,t,r){const{audioTrack:i,videoTrack:s,id3Track:l,textTrack:x}=t,{accurateTimeOffset:j,timeOffset:q}=this.currentTransmuxState;B.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const Ae=this.remuxer.remux(i,s,l,x,q,j,!0,this.id);e.push({remuxResult:Ae,chunkMeta:r}),r.transmuxing.executeEnd=K()}resetInitialTimestamp(e){const{demuxer:t,remuxer:r}=this;!t||!r||(t.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,r,i,s){const{demuxer:l,remuxer:x}=this;!l||!x||(l.resetInitSegment(e,t,r,i),x.resetInitSegment(e,t,r,s))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,r,i,s){let l;return t&&t.method==="SAMPLE-AES"?l=this.transmuxSampleAes(e,t,r,i,s):l=this.transmuxUnencrypted(e,r,i,s),l}transmuxUnencrypted(e,t,r,i){const{audioTrack:s,videoTrack:l,id3Track:x,textTrack:j}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(s,l,x,j,t,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,r,i,s){return this.demuxer.demuxSampleAes(e,t,r).then(l=>({remuxResult:this.remuxer.remux(l.audioTrack,l.videoTrack,l.id3Track,l.textTrack,r,i,!1,this.id),chunkMeta:s}))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:i,vendor:s}=this;let l;for(let Ye=0,Xe=Be.length;Ye<Xe;Ye++){var x;if((x=Be[Ye].demux)!=null&&x.probe(e)){l=Be[Ye];break}}if(!l)return new Error("Failed to find demuxer by probing fragment data");const j=this.demuxer,q=this.remuxer,Ae=l.remux,Oe=l.demux;(!q||!(q instanceof Ae))&&(this.remuxer=new Ae(r,t,i,s)),(!j||!(j instanceof Oe))&&(this.demuxer=new Oe(r,t,i),this.probe=Oe.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Ol(this.config)),e}}function xt(d,e){let t=null;return d.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const bt=d=>({remuxResult:{},chunkMeta:d});function Xt(d){return"then"in d&&d.then instanceof Function}class Ar{constructor(e,t,r,i,s){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=r,this.duration=i,this.defaultInitPts=s||null}}class xr{constructor(e,t,r,i,s,l){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=s,this.initSegmentChange=l}}var nn={exports:{}};(function(d){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(j,q,Ae){this.fn=j,this.context=q,this.once=Ae||!1}function s(j,q,Ae,Oe,Ye){if(typeof Ae!="function")throw new TypeError("The listener must be a function");var Xe=new i(Ae,Oe||j,Ye),lt=t?t+q:q;return j._events[lt]?j._events[lt].fn?j._events[lt]=[j._events[lt],Xe]:j._events[lt].push(Xe):(j._events[lt]=Xe,j._eventsCount++),j}function l(j,q){--j._eventsCount===0?j._events=new r:delete j._events[q]}function x(){this._events=new r,this._eventsCount=0}x.prototype.eventNames=function(){var q=[],Ae,Oe;if(this._eventsCount===0)return q;for(Oe in Ae=this._events)e.call(Ae,Oe)&&q.push(t?Oe.slice(1):Oe);return Object.getOwnPropertySymbols?q.concat(Object.getOwnPropertySymbols(Ae)):q},x.prototype.listeners=function(q){var Ae=t?t+q:q,Oe=this._events[Ae];if(!Oe)return[];if(Oe.fn)return[Oe.fn];for(var Ye=0,Xe=Oe.length,lt=new Array(Xe);Ye<Xe;Ye++)lt[Ye]=Oe[Ye].fn;return lt},x.prototype.listenerCount=function(q){var Ae=t?t+q:q,Oe=this._events[Ae];return Oe?Oe.fn?1:Oe.length:0},x.prototype.emit=function(q,Ae,Oe,Ye,Xe,lt){var Ct=t?t+q:q;if(!this._events[Ct])return!1;var Tt=this._events[Ct],vr=arguments.length,Nr,Or;if(Tt.fn){switch(Tt.once&&this.removeListener(q,Tt.fn,void 0,!0),vr){case 1:return Tt.fn.call(Tt.context),!0;case 2:return Tt.fn.call(Tt.context,Ae),!0;case 3:return Tt.fn.call(Tt.context,Ae,Oe),!0;case 4:return Tt.fn.call(Tt.context,Ae,Oe,Ye),!0;case 5:return Tt.fn.call(Tt.context,Ae,Oe,Ye,Xe),!0;case 6:return Tt.fn.call(Tt.context,Ae,Oe,Ye,Xe,lt),!0}for(Or=1,Nr=new Array(vr-1);Or<vr;Or++)Nr[Or-1]=arguments[Or];Tt.fn.apply(Tt.context,Nr)}else{var Un=Tt.length,cn;for(Or=0;Or<Un;Or++)switch(Tt[Or].once&&this.removeListener(q,Tt[Or].fn,void 0,!0),vr){case 1:Tt[Or].fn.call(Tt[Or].context);break;case 2:Tt[Or].fn.call(Tt[Or].context,Ae);break;case 3:Tt[Or].fn.call(Tt[Or].context,Ae,Oe);break;case 4:Tt[Or].fn.call(Tt[Or].context,Ae,Oe,Ye);break;default:if(!Nr)for(cn=1,Nr=new Array(vr-1);cn<vr;cn++)Nr[cn-1]=arguments[cn];Tt[Or].fn.apply(Tt[Or].context,Nr)}}return!0},x.prototype.on=function(q,Ae,Oe){return s(this,q,Ae,Oe,!1)},x.prototype.once=function(q,Ae,Oe){return s(this,q,Ae,Oe,!0)},x.prototype.removeListener=function(q,Ae,Oe,Ye){var Xe=t?t+q:q;if(!this._events[Xe])return this;if(!Ae)return l(this,Xe),this;var lt=this._events[Xe];if(lt.fn)lt.fn===Ae&&(!Ye||lt.once)&&(!Oe||lt.context===Oe)&&l(this,Xe);else{for(var Ct=0,Tt=[],vr=lt.length;Ct<vr;Ct++)(lt[Ct].fn!==Ae||Ye&&!lt[Ct].once||Oe&<[Ct].context!==Oe)&&Tt.push(lt[Ct]);Tt.length?this._events[Xe]=Tt.length===1?Tt[0]:Tt:l(this,Xe)}return this},x.prototype.removeAllListeners=function(q){var Ae;return q?(Ae=t?t+q:q,this._events[Ae]&&l(this,Ae)):(this._events=new r,this._eventsCount=0),this},x.prototype.off=x.prototype.removeListener,x.prototype.addListener=x.prototype.on,x.prefixed=t,x.EventEmitter=x,d.exports=x})(nn);var En=nn.exports,Xr=we(En);class fn{constructor(e,t,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const s=e.config;this.hls=e,this.id=t,this.useWorker=!!s.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const l=(q,Ae)=>{Ae=Ae||{},Ae.frag=this.frag,Ae.id=this.id,q===a.ERROR&&(this.error=Ae.error),this.hls.trigger(q,Ae)};this.observer=new Xr,this.observer.on(a.FRAG_DECRYPTED,l),this.observer.on(a.ERROR,l);const x=Vn(s.preferManagedMediaSource)||{isTypeSupported:()=>!1},j={mpeg:x.isTypeSupported("audio/mpeg"),mp3:x.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:x.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(s.workerPath||ac())){try{s.workerPath?(B.log(`loading Web Worker ${s.workerPath} for "${t}"`),this.workerContext=sc(s.workerPath)):(B.log(`injecting Web Worker for "${t}"`),this.workerContext=du()),this.onwmsg=Oe=>this.onWorkerMessage(Oe);const{worker:Ae}=this.workerContext;Ae.addEventListener("message",this.onwmsg),Ae.onerror=Oe=>{const Ye=new Error(`${Oe.message} (${Oe.filename}:${Oe.lineno})`);s.enableWorker=!1,B.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Ye})},Ae.postMessage({cmd:"init",typeSupported:j,vendor:"",id:t,config:JSON.stringify(s)})}catch(Ae){B.warn(`Error setting up "${t}" Web Worker, fallback to inline`,Ae),this.resetWorker(),this.error=null,this.transmuxer=new je(this.observer,j,s,"",t)}return}this.transmuxer=new je(this.observer,j,s,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,r,i,s,l,x,j,q,Ae){var Oe,Ye;q.transmuxing.start=self.performance.now();const{transmuxer:Xe}=this,lt=l?l.start:s.start,Ct=s.decryptdata,Tt=this.frag,vr=!(Tt&&s.cc===Tt.cc),Nr=!(Tt&&q.level===Tt.level),Or=Tt?q.sn-Tt.sn:-1,Un=this.part?q.part-this.part.index:-1,cn=Or===0&&q.id>1&&q.id===(Tt==null?void 0:Tt.stats.chunkCount),gi=!Nr&&(Or===1||Or===0&&(Un===1||cn&&Un<=0)),zn=self.performance.now();(Nr||Or||s.stats.parsing.start===0)&&(s.stats.parsing.start=zn),l&&(Un||!gi)&&(l.stats.parsing.start=zn);const Ii=!(Tt&&((Oe=s.initSegment)==null?void 0:Oe.url)===((Ye=Tt.initSegment)==null?void 0:Ye.url)),ea=new xr(vr,gi,j,Nr,lt,Ii);if(!gi||vr||Ii){B.log(`[transmuxer-interface, ${s.type}]: Starting new transmux session for sn: ${q.sn} p: ${q.part} level: ${q.level} id: ${q.id}
|
|
|
discontinuity: ${vr}
|
|
|
trackSwitch: ${Nr}
|
|
|
contiguous: ${gi}
|
|
|
accurateTimeOffset: ${j}
|
|
|
timeOffset: ${lt}
|
|
|
initSegmentChange: ${Ii}`);const mi=new Ar(r,i,t,x,Ae);this.configureTransmuxer(mi)}if(this.frag=s,this.part=l,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:Ct,chunkMeta:q,state:ea},e instanceof ArrayBuffer?[e]:[]);else if(Xe){const mi=Xe.push(e,Ct,q,ea);Xt(mi)?(Xe.async=!0,mi.then(Oi=>{this.handleTransmuxComplete(Oi)}).catch(Oi=>{this.transmuxerError(Oi,q,"transmuxer-interface push error")})):(Xe.async=!1,this.handleTransmuxComplete(mi))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let r=t.flush(e);Xt(r)||t.async?(Xt(r)||(r=Promise.resolve(r)),r.then(s=>{this.handleFlushResult(s,e)}).catch(s=>{this.transmuxerError(s,e,"transmuxer-interface flush error")})):this.handleFlushResult(r,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){B.warn(`worker message received with no ${t?"event name":"data"}`);return}const r=this.hls;if(this.hls)switch(t.event){case"init":{var i;const s=(i=this.workerContext)==null?void 0:i.objectURL;s&&self.URL.revokeObjectURL(s);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":B[t.data.logType]&&B[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Mn=100;class Jn extends Au{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",jt.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(a.ERROR,this.onError,this),e.on(a.BUFFER_RESET,this.onBufferReset,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(a.ERROR,this.onError,this),e.off(a.BUFFER_RESET,this.onBufferReset,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:s}){if(r==="main"){const l=t.cc;this.initPTS[t.cc]={baseTime:i,timescale:s},this.log(`InitPTS for cc: ${l} found from main: ${i}`),this.videoTrackCC=l,this.state===ci.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=ci.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(Mn),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=ci.IDLE):(this.loadedmetadata=!1,this.state=ci.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case ci.IDLE:this.doTickIdle();break;case ci.WAITING_TRACK:{var e;const{levels:r,trackId:i}=this,s=r==null||(e=r[i])==null?void 0:e.details;if(s){if(this.waitForCdnTuneIn(s))break;this.state=ci.WAITING_INIT_PTS}break}case ci.FRAG_LOADING_WAITING_RETRY:{var t;const r=performance.now(),i=this.retryDate;if(!i||r>=i||(t=this.media)!=null&&t.seeking){const{levels:s,trackId:l}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((s==null?void 0:s[l])||null),this.state=ci.IDLE}break}case ci.WAITING_INIT_PTS:{const r=this.waitingData;if(r){const{frag:i,part:s,cache:l,complete:x}=r;if(this.initPTS[i.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=ci.FRAG_LOADING;const j=l.flush(),q={frag:i,part:s,payload:j,networkDetails:null};this._handleFragmentLoadProgress(q),x&&super._handleFragmentLoadComplete(q)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${i.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const j=this.getLoadPosition(),q=Xa.bufferInfo(this.mediaBuffer,j,this.config.maxBufferHole);zs(q.end,this.config.maxFragLookUpTolerance,i)<0&&(this.log(`Waiting fragment cc (${i.cc}) @ ${i.start} cancelled because another fragment at ${q.end} is needed`),this.clearWaitingFragment())}}else this.state=ci.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=ci.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:r,trackId:i}=this,s=e.config;if(!this.buffering||!r&&(this.startFragRequested||!s.startFragPrefetch)||!(t!=null&&t[i]))return;const l=t[i],x=l.details;if(!x||x.live&&this.levelLastLoaded!==l||this.waitForCdnTuneIn(x)){this.state=ci.WAITING_TRACK;return}const j=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&j&&(this.bufferFlushed=!1,this.afterBufferFlushed(j,me.AUDIO,jt.AUDIO));const q=this.getFwdBufferInfo(j,jt.AUDIO);if(q===null)return;if(!this.switchingTrack&&this._streamEnded(q,x)){e.trigger(a.BUFFER_EOS,{type:"audio"}),this.state=ci.ENDED;return}const Ae=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,jt.MAIN),Oe=q.len,Ye=this.getMaxBufferLength(Ae==null?void 0:Ae.len),Xe=x.fragments,lt=Xe[0].start,Ct=this.getLoadPosition(),Tt=this.flushing?Ct:q.end;if(this.switchingTrack&&r){const Un=Ct;x.PTSKnown&&Un<lt&&(q.end>lt||q.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=lt+.05)}if(Oe>=Ye&&!this.switchingTrack&&Tt<Xe[Xe.length-1].start)return;let vr=this.getNextFragment(Tt,x),Nr=!1;if(vr&&this.isLoopLoading(vr,Tt)&&(Nr=!!vr.gap,vr=this.getNextFragmentLoopLoading(vr,x,q,jt.MAIN,Ye)),!vr){this.bufferFlushed=!0;return}const Or=Ae&&vr.start>Ae.end+x.targetduration;if(Or||!(Ae!=null&&Ae.len)&&q.len){const Un=this.getAppendedFrag(vr.start,jt.MAIN);if(Un===null||(Nr||(Nr=!!Un.gap||!!Or&&Ae.len===0),Or&&!Nr||Nr&&q.nextStart&&q.nextStart<Un.end))return}this.loadFragment(vr,l,Tt)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new Wi(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?this.setInterval(Mn):this.resetTransmuxer(),r?(this.switchingTrack=t,this.state=ci.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=ci.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(a.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var r;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Audio tracks were reset while loading level ${l}`);return}this.log(`Audio track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`);const x=i[l];let j=0;if(s.live||(r=x.details)!=null&&r.live){this.checkLiveUpdate(s);const Ae=this.mainDetails;if(s.deltaUpdateFailed||!Ae)return;if(!x.details&&s.hasProgramDateTime&&Ae.hasProgramDateTime)Gs(s,Ae),j=s.fragments[0].start;else{var q;j=this.alignPlaylists(s,x.details,(q=this.levelLastLoaded)==null?void 0:q.details)}}x.details=s,this.levelLastLoaded=x,!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,j),this.state===ci.WAITING_TRACK&&!this.waitForCdnTuneIn(s)&&(this.state=ci.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:i,payload:s}=e,{config:l,trackId:x,levels:j}=this;if(!j){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const q=j[x];if(!q){this.warn("Audio track is undefined on fragment load progress");return}const Ae=q.details;if(!Ae){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const Oe=l.defaultAudioCodec||q.audioCodec||"mp4a.40.2";let Ye=this.transmuxer;Ye||(Ye=this.transmuxer=new fn(this.hls,jt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Xe=this.initPTS[r.cc],lt=(t=r.initSegment)==null?void 0:t.data;if(Xe!==void 0){const Tt=i?i.index:-1,vr=Tt!==-1,Nr=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,Tt,vr);Ye.push(s,lt,Oe,"",r,i,Ae.totalduration,!1,Nr,Xe)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${Ae.startSN} ,${Ae.endSN}],track ${x}`);const{cache:Ct}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new Wl,complete:!1};Ct.push(new Uint8Array(s)),this.waitingVideoCC=this.videoTrackCC,this.state=ci.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:r,part:i}=t;if(r.type!==jt.AUDIO){if(!this.loadedmetadata&&r.type===jt.MAIN){const s=this.videoBuffer||this.media;s&&Xa.getBuffered(s).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(r.sn!=="initSegment"){this.fragPrevious=r;const s=this.switchingTrack;s&&(this.bufferedTrack=s,this.switchingTrack=null,this.hls.trigger(a.AUDIO_TRACK_SWITCHED,ie({},s)))}this.fragBufferedComplete(r,i)}onError(e,t){var r;if(t.fatal){this.state=ci.ERROR;return}switch(t.details){case m.FRAG_GAP:case m.FRAG_PARSING_ERROR:case m.FRAG_DECRYPT_ERROR:case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(jt.AUDIO,t);break;case m.AUDIO_TRACK_LOAD_ERROR:case m.AUDIO_TRACK_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===ci.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===vn.AUDIO_TRACK&&(this.state=ci.IDLE);break;case m.BUFFER_APPEND_ERROR:case m.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===m.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case m.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==me.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==me.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===ci.ENDED&&(this.state=ci.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,jt.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:i}=this,{remuxResult:s,chunkMeta:l}=e,x=this.getCurrentContext(l);if(!x){this.resetWhenMissingContext(l);return}const{frag:j,part:q,level:Ae}=x,{details:Oe}=Ae,{audio:Ye,text:Xe,id3:lt,initSegment:Ct}=s;if(this.fragContextChanged(j)||!Oe){this.fragmentTracker.removeFragment(j);return}if(this.state=ci.PARSING,this.switchingTrack&&Ye&&this.completeAudioSwitch(this.switchingTrack),Ct!=null&&Ct.tracks){const Tt=j.initSegment||j;this._bufferInitSegment(Ae,Ct.tracks,Tt,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Tt,id:r,tracks:Ct.tracks})}if(Ye){const{startPTS:Tt,endPTS:vr,startDTS:Nr,endDTS:Or}=Ye;q&&(q.elementaryStreams[me.AUDIO]={startPTS:Tt,endPTS:vr,startDTS:Nr,endDTS:Or}),j.setElementaryStreamInfo(me.AUDIO,Tt,vr,Nr,Or),this.bufferFragmentData(Ye,j,q,l)}if(lt!=null&&(t=lt.samples)!=null&&t.length){const Tt=n({id:r,frag:j,details:Oe},lt);i.trigger(a.FRAG_PARSING_METADATA,Tt)}if(Xe){const Tt=n({id:r,frag:j,details:Oe},Xe);i.trigger(a.FRAG_PARSING_USERDATA,Tt)}}_bufferInitSegment(e,t,r,i){if(this.state!==ci.PARSING)return;t.video&&delete t.video;const s=t.audio;if(!s)return;s.id="audio";const l=e.audioCodec;this.log(`Init audio buffer, container:${s.container}, codecs[level/parsed]=[${l}/${s.codec}]`),l&&l.split(",").length===1&&(s.levelCodec=l),this.hls.trigger(a.BUFFER_CODECS,t);const x=s.initSegment;if(x!=null&&x.byteLength){const j={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:x};this.hls.trigger(a.BUFFER_APPENDING,j)}this.tickImmediate()}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||i===wa.NOT_LOADED||i===wa.PARTIAL){var s;if(e.sn==="initSegment")this._loadInitSegment(e,t);else if((s=t.details)!=null&&s.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=ci.WAITING_INIT_PTS;const l=this.mainDetails;l&&l.fragments[0].start!==t.details.fragments[0].start&&Gs(t.details,l)}else this.startFragRequested=!0,super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:x}=this.bufferedTrack;yo({name:t,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:x},e,pa)||(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(a.AUDIO_TRACK_SWITCHED,ie({},e))}}function wi(d,e){if(d.length!==e.length)return!1;for(let t=0;t<d.length;t++)if(!yn(d[t].attrs,e[t].attrs))return!1;return!0}function yn(d,e,t){const r=d["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(i=>d[i]!==e[i])}function fi(d,e){return e.label.toLowerCase()===d.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(d.lang||"").toLowerCase())}class qi extends Oa{constructor(e){super(e,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(a.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:r,groupId:i,details:s}=t,l=this.tracksInGroup[r];if(!l||l.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${l==null?void 0:l.groupId}`);return}const x=l.details;l.details=t.details,this.log(`Audio track ${r} "${l.name}" lang:${l.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,x)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.audioGroups||null,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(x=>(i==null?void 0:i.indexOf(x))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const x=this.tracks.filter(Ye=>!r||r.indexOf(Ye.groupId)!==-1);if(x.length)this.selectDefaultTrack&&!x.some(Ye=>Ye.default)&&(this.selectDefaultTrack=!1),x.forEach((Ye,Xe)=>{Ye.id=Xe});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=x;const j=this.hls.config.audioPreference;if(!s&&j){const Ye=fo(j,x,pa);if(Ye>-1)s=x[Ye];else{const Xe=fo(j,this.tracks);s=this.tracks[Xe]}}let q=this.findTrackId(s);q===-1&&s&&(q=this.findTrackId(null));const Ae={audioTracks:x};this.log(`Updating audio tracks, ${x.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(a.AUDIO_TRACKS_UPDATED,Ae);const Oe=this.trackId;if(q!==-1&&Oe===-1)this.setAudioTrack(q);else if(x.length&&Oe===-1){var l;const Ye=new Error(`No audio track selected for current audio group-ID(s): ${(l=this.groupIds)==null?void 0:l.join(",")} track count: ${x.length}`);this.warn(Ye.message),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:Ye})}}else this.shouldReloadPlaylist(s)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===vn.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const i=this.currentTrack;if(i&&yo(e,i,pa))return i;const s=fo(e,this.tracksInGroup,pa);if(s>-1){const l=this.tracksInGroup[s];return this.setAudioTrack(s),l}else if(i){let l=t.loadLevel;l===-1&&(l=t.firstAutoLevel);const x=to(e,t.levels,r,l,pa);if(x===-1)return null;t.nextLoadLevel=x}if(e.channels||e.audioCodec){const l=fo(e,r);if(l>-1)return r[l]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=t[e],s=i.details&&!i.details.live;if(e===this.trackId&&i===r&&s||(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(a.AUDIO_TRACK_SWITCHING,ie({},i)),s))return;const l=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(l)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(!(this.selectDefaultTrack&&!i.default)&&(!e||yo(e,i,pa)))return r}if(e){const{name:r,lang:i,assocLang:s,characteristics:l,audioCodec:x,channels:j}=e;for(let q=0;q<t.length;q++){const Ae=t[q];if(yo({name:r,lang:i,assocLang:s,characteristics:l,audioCodec:x,channels:j},Ae,pa))return q}for(let q=0;q<t.length;q++){const Ae=t[q];if(yn(e.attrs,Ae.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return q}for(let q=0;q<t.length;q++){const Ae=t[q];if(yn(e.attrs,Ae.attrs,["LANGUAGE"]))return q}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const r=t.id,i=t.groupId;let s=t.url;if(e)try{s=e.addDirectives(s)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}this.log(`loading audio-track playlist ${r} "${t.name}" lang:${t.lang} group:${i}`),this.clearTimer(),this.hls.trigger(a.AUDIO_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}}const Ki=500;class Ia extends Au{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",jt.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.ERROR,this.onError,this),e.on(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(a.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(a.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.ERROR,this.onError,this),e.off(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(a.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(a.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=ci.IDLE,this.setInterval(Ki),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:r,success:i}=t;if(this.fragPrevious=r,this.state=ci.IDLE,!i)return;const s=this.tracksBuffered[this.currentTrackId];if(!s)return;let l;const x=r.start;for(let q=0;q<s.length;q++)if(x>=s[q].start&&x<=s[q].end){l=s[q];break}const j=r.start+r.duration;l?l.end=j:(l={start:x,end:j},s.push(l)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}onBufferFlushing(e,t){const{startOffset:r,endOffset:i}=t;if(r===0&&i!==Number.POSITIVE_INFINITY){const s=i-1;if(s<=0)return;t.endOffsetSubtitles=Math.max(0,s),this.tracksBuffered.forEach(l=>{for(let x=0;x<l.length;){if(l[x].end<=s){l.shift();continue}else if(l[x].start<s)l[x].start=s;else break;x++}}),this.fragmentTracker.removeFragmentsInRange(r,s,jt.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===jt.MAIN){var r;(r=this.media)!=null&&r.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===jt.SUBTITLE&&(t.details===m.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==ci.STOPPED&&(this.state=ci.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&wi(this.levels,t)){this.levels=t.map(r=>new Wi(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const i=new Wi(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,jt.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var r;if(this.currentTrackId=t.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(Ki)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:i,levels:s}=this,{details:l,id:x}=t;if(!s){this.warn(`Subtitle tracks were reset while loading level ${x}`);return}const j=s[x];if(x>=s.length||!j)return;this.log(`Subtitle track ${x} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""},duration:${l.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let q=0;if(l.live||(r=j.details)!=null&&r.live){const Oe=this.mainDetails;if(l.deltaUpdateFailed||!Oe)return;const Ye=Oe.fragments[0];if(!j.details)l.hasProgramDateTime&&Oe.hasProgramDateTime?(Gs(l,Oe),q=l.fragments[0].start):Ye&&(q=Ye.start,Yn(l,q));else{var Ae;q=this.alignPlaylists(l,j.details,(Ae=this.levelLastLoaded)==null?void 0:Ae.details),q===0&&Ye&&(q=Ye.start,Yn(l,q))}}j.details=l,this.levelLastLoaded=j,x===i&&(!this.startFragRequested&&(this.mainDetails||!l.live)&&this.setStartPosition(this.mainDetails||l,q),this.tick(),l.live&&!this.fragCurrent&&this.media&&this.state===ci.IDLE&&(go(null,l.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),j.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e,i=t.decryptdata,s=this.hls;if(!this.fragContextChanged(t)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&i.method==="AES-128"){const l=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).catch(x=>{throw s.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_DECRYPT_ERROR,fatal:!1,error:x,reason:x.message,frag:t}),x}).then(x=>{const j=performance.now();s.trigger(a.FRAG_DECRYPTED,{frag:t,payload:x,stats:{tstart:l,tdecrypt:j}})}).catch(x=>{this.warn(`${x.name}: ${x.message}`),this.state=ci.IDLE})}}doTick(){if(!this.media){this.state=ci.IDLE;return}if(this.state===ci.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details)return;const{config:i}=this,s=this.getLoadPosition(),l=Xa.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],s,i.maxBufferHole),{end:x,len:j}=l,q=this.getFwdBufferInfo(this.media,jt.MAIN),Ae=r.details,Oe=this.getMaxBufferLength(q==null?void 0:q.len)+Ae.levelTargetDuration;if(j>Oe)return;const Ye=Ae.fragments,Xe=Ye.length,lt=Ae.edge;let Ct=null;const Tt=this.fragPrevious;if(x<lt){const vr=i.maxFragLookUpTolerance,Nr=x>lt-vr?0:vr;Ct=go(Tt,Ye,Math.max(Ye[0].start,x),Nr),!Ct&&Tt&&Tt.start<Ye[0].start&&(Ct=Ye[0])}else Ct=Ye[Xe-1];if(!Ct)return;if(Ct=this.mapToInitFragWhenRequired(Ct),Ct.sn!=="initSegment"){const vr=Ct.sn-Ae.startSN,Nr=Ye[vr-1];Nr&&Nr.cc===Ct.cc&&this.fragmentTracker.getState(Nr)===wa.NOT_LOADED&&(Ct=Nr)}this.fragmentTracker.getState(Ct)===wa.NOT_LOADED&&this.loadFragment(Ct,r,x)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,r){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,r))}get mediaBufferTimeRanges(){return new Ta(this.tracksBuffered[this.currentTrackId]||[])}}class Ta{constructor(e){this.buffered=void 0;const t=(r,i,s)=>{if(i=i>>>0,i>s-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${s})`);return e[i][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}class Xi extends Oa{constructor(e){super(e,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const r=ai(this.media.textTracks);for(let s=0;s<r.length;s++)if(r[s].mode==="hidden")t=r[s];else if(r[s].mode==="showing"){t=r[s];break}const i=this.findTrackForTextTrack(t);this.subtitleTrack!==i&&this.setSubtitleTrack(i)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(a.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),ai(this.media.textTracks).forEach(t=>{xa(t)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:r,groupId:i,details:s}=t,l=this.tracksInGroup[r];if(!l||l.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${l==null?void 0:l.groupId}`);return}const x=l.details;l.details=t.details,this.log(`Subtitle track ${r} "${l.name}" lang:${l.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,x)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.subtitleGroups||null,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(l=>(i==null?void 0:i.indexOf(l))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(Ae=>!r||r.indexOf(Ae.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(Ae=>Ae.default)&&(this.selectDefaultTrack=!1),l.forEach((Ae,Oe)=>{Ae.id=Oe});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const x=this.hls.config.subtitlePreference;if(!s&&x){this.selectDefaultTrack=!1;const Ae=fo(x,l);if(Ae>-1)s=l[Ae];else{const Oe=fo(x,this.tracks);s=this.tracks[Oe]}}let j=this.findTrackId(s);j===-1&&s&&(j=this.findTrackId(null));const q={subtitleTracks:l};this.log(`Updating subtitle tracks, ${l.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(a.SUBTITLE_TRACKS_UPDATED,q),j!==-1&&this.trackId===-1&&this.setSubtitleTrack(j)}else this.shouldReloadPlaylist(s)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i<t.length;i++){const s=t[i];if(!(r&&!s.default||!r&&!e)&&(!e||yo(s,e)))return i}if(e){for(let i=0;i<t.length;i++){const s=t[i];if(yn(e.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<t.length;i++){const s=t[i];if(yn(e.attrs,s.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(fi(i,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===vn.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const r=this.currentTrack;if(r&&yo(e,r))return r;const i=fo(e,this.tracksInGroup);if(i>-1){const s=this.tracksInGroup[i];return this.setSubtitleTrack(i),s}else{if(r)return null;{const s=fo(e,t);if(s>-1)return t[s]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const r=t.id,i=t.groupId;let s=t.url;if(e)try{s=e.addDirectives(s)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}this.log(`Loading subtitle playlist for id ${r}`),this.hls.trigger(a.SUBTITLE_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=ai(e.textTracks),r=this.currentTrack;let i;if(r&&(i=t.filter(s=>fi(r,s))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(t).forEach(s=>{s.mode!=="disabled"&&s!==i&&(s.mode="disabled")}),i){const s=this.subtitleDisplay?"showing":"hidden";i.mode!==s&&(i.mode=s)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!o(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(a.SUBTITLE_TRACK_SWITCH,{id:e});return}const s=!!i.details&&!i.details.live;if(e===this.trackId&&i===r&&s)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:l,groupId:x="",name:j,type:q,url:Ae}=i;this.hls.trigger(a.SUBTITLE_TRACK_SWITCH,{id:l,groupId:x,name:j,type:q,url:Ae});const Oe=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(Oe)}}class Fa{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,r){const i=this.queues[t];i.push(e),i.length===1&&!r&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const r=new Promise(s=>{t=s}),i={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,e),r}executeNext(e){const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){B.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${i}`),r.onError(i);const s=this.buffers[e];s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const Ba=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class li{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=r=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:r,mediaSource:i}=this;this.log("Media source opened"),r&&(r.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(a.MEDIA_ATTACHED,{media:r,mediaSource:i})),i&&i.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&B.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Mi(Vn(e.config.preferManagedMediaSource)),this.log=B.log.bind(B,t),this.warn=B.warn.bind(B,t),this.error=B.error.bind(B,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.BUFFER_RESET,this.onBufferReset,this),e.on(a.BUFFER_APPENDING,this.onBufferAppending,this),e.on(a.BUFFER_CODECS,this.onBufferCodecs,this),e.on(a.BUFFER_EOS,this.onBufferEos,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(a.FRAG_PARSED,this.onFragParsed,this),e.on(a.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.BUFFER_RESET,this.onBufferReset,this),e.off(a.BUFFER_APPENDING,this.onBufferAppending,this),e.off(a.BUFFER_CODECS,this.onBufferCodecs,this),e.off(a.BUFFER_EOS,this.onBufferEos,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(a.FRAG_PARSED,this.onFragParsed,this),e.off(a.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new Fa(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const r=this.media=t.media,i=Vn(this.appendSource);if(r&&i){var s;const l=this.mediaSource=new i;this.log(`created media source: ${(s=l.constructor)==null?void 0:s.name}`),l.addEventListener("sourceopen",this._onMediaSourceOpen),l.addEventListener("sourceended",this._onMediaSourceEnded),l.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(l.addEventListener("startstreaming",this._onStartStreaming),l.addEventListener("endstreaming",this._onEndStreaming));const x=this._objectUrl=self.URL.createObjectURL(l);if(this.appendSource)try{r.removeAttribute("src");const j=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||j&&l instanceof j,$a(r),os(r,x),r.load()}catch(j){r.src=x}else r.src=x;r.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:r}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(i){this.warn(`onMediaDetaching: ${i.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(e.removeAttribute("src"),this.appendSource&&$a(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(a.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var r;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(i){this.warn(`onBufferReset ${e}`,i)}}onBufferCodecs(e,t){const r=this.getSourceBufferTypes().length,i=Object.keys(t);if(i.forEach(l=>{if(r){const j=this.tracks[l];if(j&&typeof j.buffer.changeType=="function"){var x;const{id:q,codec:Ae,levelCodec:Oe,container:Ye,metadata:Xe}=t[l],lt=ui(j.codec,j.levelCodec),Ct=lt==null?void 0:lt.replace(Ba,"$1");let Tt=ui(Ae,Oe);const vr=(x=Tt)==null?void 0:x.replace(Ba,"$1");if(Tt&&Ct!==vr){l.slice(0,5)==="audio"&&(Tt=ti(Tt,this.appendSource));const Nr=`${Ye};codecs=${Tt}`;this.appendChangeType(l,Nr),this.log(`switching codec ${lt} to ${Tt}`),this.tracks[l]={buffer:j.buffer,codec:Ae,container:Ye,levelCodec:Oe,metadata:Xe,id:q}}}}else this.pendingTracks[l]=t[l]}),r)return;const s=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==s&&(this.log(`${s} bufferCodec event(s) expected ${i.join(",")}`),this.bufferCodecEventsExpected=s),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:r}=this,i={execute:()=>{const s=this.sourceBuffer[e];s&&(this.log(`changing ${e} sourceBuffer type to ${t}`),s.changeType(t)),r.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};r.append(i,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:r,operationQueue:i,tracks:s}=this,{data:l,type:x,frag:j,part:q,chunkMeta:Ae}=t,Oe=Ae.buffering[x],Ye=self.performance.now();Oe.start=Ye;const Xe=j.stats.buffering,lt=q?q.stats.buffering:null;Xe.start===0&&(Xe.start=Ye),lt&<.start===0&&(lt.start=Ye);const Ct=s.audio;let Tt=!1;x==="audio"&&(Ct==null?void 0:Ct.container)==="audio/mpeg"&&(Tt=!this.lastMpegAudioChunk||Ae.id===1||this.lastMpegAudioChunk.sn!==Ae.sn,this.lastMpegAudioChunk=Ae);const vr=j.start,Nr={execute:()=>{if(Oe.executeStart=self.performance.now(),Tt){const Or=this.sourceBuffer[x];if(Or){const Un=vr-Or.timestampOffset;Math.abs(Un)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${vr} (delta: ${Un}) sn: ${j.sn})`),Or.timestampOffset=vr)}}this.appendExecutor(l,x)},onStart:()=>{},onComplete:()=>{const Or=self.performance.now();Oe.executeEnd=Oe.end=Or,Xe.first===0&&(Xe.first=Or),lt&<.first===0&&(lt.first=Or);const{sourceBuffer:Un}=this,cn={};for(const gi in Un)cn[gi]=Xa.getBuffered(Un[gi]);this.appendErrors[x]=0,x==="audio"||x==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(a.BUFFER_APPENDED,{type:x,frag:j,part:q,chunkMeta:Ae,parent:j.type,timeRanges:cn})},onError:Or=>{const Un={type:A.MEDIA_ERROR,parent:j.type,details:m.BUFFER_APPEND_ERROR,sourceBufferName:x,frag:j,part:q,chunkMeta:Ae,error:Or,err:Or,fatal:!1};if(Or.code===DOMException.QUOTA_EXCEEDED_ERR)Un.details=m.BUFFER_FULL_ERROR;else{const cn=++this.appendErrors[x];Un.details=m.BUFFER_APPEND_ERROR,this.warn(`Failed ${cn}/${r.config.appendErrorMaxRetry} times to append segment in "${x}" sourceBuffer`),cn>=r.config.appendErrorMaxRetry&&(Un.fatal=!0)}r.trigger(a.ERROR,Un)}};i.append(Nr,x,!!this.pendingTracks[x])}onBufferFlushing(e,t){const{operationQueue:r}=this,i=s=>({execute:this.removeExecutor.bind(this,s,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(a.BUFFER_FLUSHED,{type:s})},onError:l=>{this.warn(`Failed to remove from ${s} SourceBuffer`,l)}});t.type?r.append(i(t.type),t.type):this.getSourceBufferTypes().forEach(s=>{r.append(i(s),s)})}onFragParsed(e,t){const{frag:r,part:i}=t,s=[],l=i?i.elementaryStreams:r.elementaryStreams;l[me.AUDIOVIDEO]?s.push("audiovideo"):(l[me.AUDIO]&&s.push("audio"),l[me.VIDEO]&&s.push("video"));const x=()=>{const j=self.performance.now();r.stats.buffering.end=j,i&&(i.stats.buffering.end=j);const q=i?i.stats:r.stats;this.hls.trigger(a.FRAG_BUFFERED,{frag:r,part:i,stats:q,id:r.type})};s.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(x,s)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((i,s)=>{const l=this.sourceBuffer[s];return l&&(!t.type||t.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} sourceBuffer now EOS`))),i&&!!(!l||l.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(s=>{const l=this.sourceBuffer[s];l&&(l.ending=!1)});const{mediaSource:i}=this;if(!i||i.readyState!=="open"){i&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${i.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),i.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.getSourceBufferTypes().length)return;const s=e.config,l=r.currentTime,x=t.levelTargetDuration,j=t.live&&s.liveBackBufferLength!==null?s.liveBackBufferLength:s.backBufferLength;if(o(j)&&j>0){const q=Math.max(j,x),Ae=Math.floor(l/x)*x-q;this.flushBackBuffer(l,x,Ae)}if(o(s.frontBufferFlushThreshold)&&s.frontBufferFlushThreshold>0){const q=Math.max(s.maxBufferLength,s.frontBufferFlushThreshold),Ae=Math.max(q,x),Oe=Math.floor(l/x)*x+Ae;this.flushFrontBuffer(l,x,Oe)}}flushBackBuffer(e,t,r){const{details:i,sourceBuffer:s}=this;this.getSourceBufferTypes().forEach(x=>{const j=s[x];if(j){const q=Xa.getBuffered(j);if(q.length>0&&r>q.start(0)){if(this.hls.trigger(a.BACK_BUFFER_REACHED,{bufferEnd:r}),i!=null&&i.live)this.hls.trigger(a.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(j.ended&&q.end(q.length-1)-e<t*2){this.log(`Cannot flush ${x} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(a.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:x})}}})}flushFrontBuffer(e,t,r){const{sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(l=>{const x=i[l];if(x){const j=Xa.getBuffered(x),q=j.length;if(q<2)return;const Ae=j.start(q-1),Oe=j.end(q-1);if(r>Ae||e>=Ae&&e<=Oe)return;if(x.ended&&e-Oe<2*t){this.log(`Cannot flush ${l} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(a.BUFFER_FLUSHING,{startOffset:Ae,endOffset:1/0,type:l})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:r,mediaSource:i}=this,s=e.fragments[0].start+e.totalduration,l=r.duration,x=o(i.duration)?i.duration:0;e.live&&t.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(e)):(s>x&&s>l||!o(l))&&(this.log(`Updating Media Source duration to ${s.toFixed(3)}`),i.duration=s)}updateSeekableRange(e){const t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&t!=null&&t.setLiveSeekableRange){const s=Math.max(0,r[0].start),l=Math.max(s,s+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${s}-${l}.`),t.setLiveSeekableRange(s,l)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:r}=this,i=Object.keys(r).length;if(i&&(!e||i===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const s=this.getSourceBufferTypes();if(s.length)this.hls.trigger(a.BUFFER_CREATED,{tracks:this.tracks}),s.forEach(l=>{t.executeNext(l)});else{const l=new Error("could not create source buffer for media codec(s)");this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:l,reason:l.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:r}=this;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(const s in e)if(!t[s]){var i;const l=e[s];if(!l)throw Error(`source buffer exists for track ${s}, however track does not`);let x=((i=l.levelCodec)==null?void 0:i.indexOf(","))===-1?l.levelCodec:l.codec;x&&s.slice(0,5)==="audio"&&(x=ti(x,this.appendSource));const j=`${l.container};codecs=${x}`;this.log(`creating sourceBuffer(${j})`);try{const q=t[s]=r.addSourceBuffer(j),Ae=s;this.addBufferListener(Ae,"updatestart",this._onSBUpdateStart),this.addBufferListener(Ae,"updateend",this._onSBUpdateEnd),this.addBufferListener(Ae,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(Ae,"bufferedchange",(Oe,Ye)=>{const Xe=Ye.removedRanges;Xe!=null&&Xe.length&&this.hls.trigger(a.BUFFER_FLUSHED,{type:s})}),this.tracks[s]={buffer:q,codec:x,container:l.container,levelCodec:l.levelCodec,metadata:l.metadata,id:l.id}}catch(q){this.error(`error while trying to add sourceBuffer: ${q.message}`),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:q,sourceBufferName:s,mimeType:j})}}}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.src}_onSBUpdateStart(e){const{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:r}=this;r.current(e).onComplete(),r.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var r;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,t),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const s=this.operationQueue.current(e);s&&s.onError(i)}removeExecutor(e,t,r){const{media:i,mediaSource:s,operationQueue:l,sourceBuffer:x}=this,j=x[e];if(!i||!s||!j){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),l.shiftAndExecuteNext(e);return}const q=o(i.duration)?i.duration:1/0,Ae=o(s.duration)?s.duration:1/0,Oe=Math.max(0,t),Ye=Math.min(r,q,Ae);Ye>Oe&&(!j.ending||j.ended)?(j.ended=!1,this.log(`Removing [${Oe},${Ye}] from the ${e} SourceBuffer`),j.remove(Oe,Ye)):l.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.sourceBuffer[t];if(!r){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}r.ended=!1,r.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,i=t.map(s=>r.appendBlocker(s));Promise.all(i).then(()=>{e(),t.forEach(s=>{const l=this.sourceBuffer[s];l!=null&&l.updating||r.shiftAndExecuteNext(s)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,r){const i=this.sourceBuffer[e];if(!i)return;const s=r.bind(this,e);this.listeners[e].push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(r=>{t.removeEventListener(r.event,r.listener)})}}function $a(d){const e=d.querySelectorAll("source");[].slice.call(e).forEach(t=>{d.removeChild(t)})}function os(d,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,d.appendChild(t)}const sa={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},fa=d=>String.fromCharCode(sa[d]||d),ba=15,Ha=100,ls={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Aa={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Ts={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ys={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Hs=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Zs{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;B.log(`${this.time} [${e}] ${r}`)}}}const Xs=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class Wo{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let r=0;r<t.length;r++){const i=t[r];e.hasOwnProperty(i)&&(this[i]=e[i])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class $o{constructor(){this.uchar=" ",this.penState=new Wo}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class ho{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Wo,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Ha;t++)this.chars.push(new $o);this.logger=e}equals(e){for(let t=0;t<Ha;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Ha;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Ha;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ha&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ha)}moveCursor(e){const t=this.pos+e;if(e>1)for(let r=this.pos+1;r<t+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=fa(e);if(this.pos>=Ha){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<Ha;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let r=0;r<Ha;r++){const i=this.chars[r].uchar;i!==" "&&(t=!1),e.push(i)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class oo{constructor(e){this.rows=[],this.currRow=ba-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<ba;t++)this.rows.push(new ho(e));this.logger=e}reset(){for(let e=0;e<ba;e++)this.rows[e].clear();this.currRow=ba-1}equals(e){let t=!0;for(let r=0;r<ba;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<ba;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<ba;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let x=0;x<ba;x++)this.rows[x].clear();const s=this.currRow+1-this.nrRollUpRows,l=this.lastOutputScreen;if(l){const x=l.rows[s].cueStartTime,j=this.logger.time;if(x!==null&&j!==null&&x<j)for(let q=0;q<this.nrRollUpRows;q++)this.rows[t-this.nrRollUpRows+q+1].copy(l.rows[s+q])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const s=e.indent,l=Math.max(s-1,0);r.setCursor(e.indent),e.color=r.chars[l].penState.foreground}const i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let r="",i=-1;for(let s=0;s<ba;s++){const l=this.rows[s].getTextString();l&&(i=s+1,e?t.push("Row "+i+": '"+l+"'"):t.push(l.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
|
|
|
`)),r}getTextAndFormat(){return this.rows}}class ro{constructor(e,t,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new oo(r),this.nonDisplayedMemory=new oo(r),this.lastOutputScreen=new oo(r),this.currRollUpRow=this.displayedMemory.rows[ba-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[ba-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const r=Math.floor(e/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[r]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class $s{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=$l(),this.logger=void 0;const i=this.logger=new Zs;this.channels=[null,new ro(e,t,i),new ro(e+1,r,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let r=0;r<t.length;r+=2){const i=t[r]&127,s=t[r+1]&127;let l=!1,x=null;if(i===0&&s===0)continue;this.logger.log(3,()=>"["+Xs([t[r],t[r+1]])+"] -> ("+Xs([i,s])+")");const j=this.cmdHistory;if(i>=16&&i<=31){if(al(i,s,j)){qa(null,null,j),this.logger.log(3,()=>"Repeated command ("+Xs([i,s])+") is dropped");continue}qa(i,s,this.cmdHistory),l=this.parseCmd(i,s),l||(l=this.parseMidrow(i,s)),l||(l=this.parsePAC(i,s)),l||(l=this.parseBackgroundAttributes(i,s))}else qa(null,null,j);if(!l&&(x=this.parseChars(i,s),x)){const Ae=this.currentChannel;Ae&&Ae>0?this.channels[Ae].insertChars(x):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!l&&!x&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Xs([i,s])+" orig: "+Xs([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=33&&t<=35;if(!(r||i))return!1;const s=e===20||e===21||e===23?1:2,l=this.channels[s];return e===20||e===21||e===28||e===29?t===32?l.ccRCL():t===33?l.ccBS():t===34?l.ccAOF():t===35?l.ccAON():t===36?l.ccDER():t===37?l.ccRU(2):t===38?l.ccRU(3):t===39?l.ccRU(4):t===40?l.ccFON():t===41?l.ccRDC():t===42?l.ccTR():t===43?l.ccRTD():t===44?l.ccEDM():t===45?l.ccCR():t===46?l.ccENM():t===47&&l.ccEOC():l.ccTO(t-32),this.currentChannel=s,!0}parseMidrow(e,t){let r=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[r];return i?(i.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+Xs([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const i=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,s=(e===16||e===24)&&t>=64&&t<=95;if(!(i||s))return!1;const l=e<=23?1:2;t>=64&&t<=95?r=l===1?ls[e]:Ts[e]:r=l===1?Aa[e]:ys[e];const x=this.channels[l];return x?(x.setPAC(this.interpretPAC(r,t)),this.currentChannel=l,!0):!1}interpretPAC(e,t){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(e,t){let r,i=null,s=null;if(e>=25?(r=2,s=e-8):(r=1,s=e),s>=17&&s<=19){let l;s===17?l=t+80:s===18?l=t+112:l=t+144,this.logger.log(2,()=>"Special char '"+fa(l)+"' in channel "+r),i=[l]}else e>=32&&e<=127&&(i=t===0?[e]:[e,t]);return i&&this.logger.log(3,()=>"Char codes = "+Xs(i).join(",")),i}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=45&&t<=47;if(!(r||i))return!1;let s;const l={};e===16||e===24?(s=Math.floor((t-32)/2),l.background=Hs[s],t%2===1&&(l.background=l.background+"_semi")):t===45?l.background="transparent":(l.foreground="black",t===47&&(l.underline=!0));const x=e<=23?1:2;return this.channels[x].setBkgData(l),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}qa(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const r=this.channels[t];r&&r.cueSplitAtTime(e)}}}function qa(d,e,t){t.a=d,t.b=e}function al(d,e,t){return t.a===d&&t.b===e}function $l(){return{a:null,b:null}}class Vo{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var Jo=function(){if(at!=null&&at.VTTCue)return self.VTTCue;const d=["","lr","rl"],e=["start","middle","end","left","right"];function t(x,j){if(typeof j!="string"||!Array.isArray(x))return!1;const q=j.toLowerCase();return~x.indexOf(q)?q:!1}function r(x){return t(d,x)}function i(x){return t(e,x)}function s(x,...j){let q=1;for(;q<arguments.length;q++){const Ae=arguments[q];for(const Oe in Ae)x[Oe]=Ae[Oe]}return x}function l(x,j,q){const Ae=this,Oe={enumerable:!0};Ae.hasBeenReset=!1;let Ye="",Xe=!1,lt=x,Ct=j,Tt=q,vr=null,Nr="",Or=!0,Un="auto",cn="start",gi=50,zn="middle",Ii=50,ea="middle";Object.defineProperty(Ae,"id",s({},Oe,{get:function(){return Ye},set:function(mi){Ye=""+mi}})),Object.defineProperty(Ae,"pauseOnExit",s({},Oe,{get:function(){return Xe},set:function(mi){Xe=!!mi}})),Object.defineProperty(Ae,"startTime",s({},Oe,{get:function(){return lt},set:function(mi){if(typeof mi!="number")throw new TypeError("Start time must be set to a number.");lt=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"endTime",s({},Oe,{get:function(){return Ct},set:function(mi){if(typeof mi!="number")throw new TypeError("End time must be set to a number.");Ct=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"text",s({},Oe,{get:function(){return Tt},set:function(mi){Tt=""+mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"region",s({},Oe,{get:function(){return vr},set:function(mi){vr=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"vertical",s({},Oe,{get:function(){return Nr},set:function(mi){const Oi=r(mi);if(Oi===!1)throw new SyntaxError("An invalid or illegal string was specified.");Nr=Oi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"snapToLines",s({},Oe,{get:function(){return Or},set:function(mi){Or=!!mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"line",s({},Oe,{get:function(){return Un},set:function(mi){if(typeof mi!="number"&&mi!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Un=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"lineAlign",s({},Oe,{get:function(){return cn},set:function(mi){const Oi=i(mi);if(!Oi)throw new SyntaxError("An invalid or illegal string was specified.");cn=Oi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"position",s({},Oe,{get:function(){return gi},set:function(mi){if(mi<0||mi>100)throw new Error("Position must be between 0 and 100.");gi=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"positionAlign",s({},Oe,{get:function(){return zn},set:function(mi){const Oi=i(mi);if(!Oi)throw new SyntaxError("An invalid or illegal string was specified.");zn=Oi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"size",s({},Oe,{get:function(){return Ii},set:function(mi){if(mi<0||mi>100)throw new Error("Size must be between 0 and 100.");Ii=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"align",s({},Oe,{get:function(){return ea},set:function(mi){const Oi=i(mi);if(!Oi)throw new SyntaxError("An invalid or illegal string was specified.");ea=Oi,this.hasBeenReset=!0}})),Ae.displayState=void 0}return l.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},l}();class fu{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Iu(d){function e(r,i,s,l){return(r|0)*3600+(i|0)*60+(s|0)+parseFloat(l||0)}const t=d.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class Ma{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,r){for(let i=0;i<r.length;++i)if(t===r[i]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function Bs(d,e,t,r){const i=r?d.split(r):[d];for(const s in i){if(typeof i[s]!="string")continue;const l=i[s].split(t);if(l.length!==2)continue;const x=l[0],j=l[1];e(x,j)}}const es=new Jo(0,0,""),Ss=es.align==="middle"?"middle":"center";function wo(d,e,t){const r=d;function i(){const x=Iu(d);if(x===null)throw new Error("Malformed timestamp: "+r);return d=d.replace(/^[^\sa-zA-Z-]+/,""),x}function s(x,j){const q=new Ma;Bs(x,function(Ye,Xe){let lt;switch(Ye){case"region":for(let Ct=t.length-1;Ct>=0;Ct--)if(t[Ct].id===Xe){q.set(Ye,t[Ct].region);break}break;case"vertical":q.alt(Ye,Xe,["rl","lr"]);break;case"line":lt=Xe.split(","),q.integer(Ye,lt[0]),q.percent(Ye,lt[0])&&q.set("snapToLines",!1),q.alt(Ye,lt[0],["auto"]),lt.length===2&&q.alt("lineAlign",lt[1],["start",Ss,"end"]);break;case"position":lt=Xe.split(","),q.percent(Ye,lt[0]),lt.length===2&&q.alt("positionAlign",lt[1],["start",Ss,"end","line-left","line-right","auto"]);break;case"size":q.percent(Ye,Xe);break;case"align":q.alt(Ye,Xe,["start",Ss,"end","left","right"]);break}},/:/,/\s/),j.region=q.get("region",null),j.vertical=q.get("vertical","");let Ae=q.get("line","auto");Ae==="auto"&&es.line===-1&&(Ae=-1),j.line=Ae,j.lineAlign=q.get("lineAlign","start"),j.snapToLines=q.get("snapToLines",!0),j.size=q.get("size",100),j.align=q.get("align",Ss);let Oe=q.get("position","auto");Oe==="auto"&&es.position===50&&(Oe=j.align==="start"||j.align==="left"?0:j.align==="end"||j.align==="right"?100:50),j.position=Oe}function l(){d=d.replace(/^\s+/,"")}if(l(),e.startTime=i(),l(),d.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);d=d.slice(3),l(),e.endTime=i(),l(),s(d,e)}function Ro(d){return d.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class po{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new fu,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function r(){let s=t.buffer,l=0;for(s=Ro(s);l<s.length&&s[l]!=="\r"&&s[l]!==`
|
|
|
`;)++l;const x=s.slice(0,l);return s[l]==="\r"&&++l,s[l]===`
|
|
|
`&&++l,t.buffer=s.slice(l),x}function i(s){Bs(s,function(l,x){},/:/)}try{let s="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;s=r();const x=s.match(/^()?WEBVTT([ \t].*)?$/);if(!(x!=null&&x[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let l=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:s=r(),t.state){case"HEADER":/:/.test(s)?i(s):s||(t.state="ID");continue;case"NOTE":s||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){t.state="NOTE";break}if(!s)continue;if(t.cue=new Jo(0,0,""),t.state="CUE",s.indexOf("-->")===-1){t.cue.id=s;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{wo(s,t.cue,t.regionList)}catch(x){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const x=s.indexOf("-->")!==-1;if(!s||x&&(l=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
|
|
|
`),t.cue.text+=s}continue;case"BADCUE":s||(t.state="ID")}}}catch(s){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
|
|
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const Cl=/\r\n|\n\r|\n|\r/g,Ko=function(e,t,r=0){return e.slice(r,r+t.length)===t},Vl=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),s=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!o(t)||!o(r)||!o(i)||!o(s))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*i,t+=60*60*1e3*s,t},No=function(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0).toString()};function Yl(d,e,t){return No(d.toString())+No(e.toString())+No(t)}const $u=function(e,t,r){let i=e[t],s=e[i.prevCC];if(!s||!s.new&&i.new){e.ccOffset=e.presentationOffset=i.start,i.new=!1;return}for(;(l=s)!=null&&l.new;){var l;e.ccOffset+=i.start-s.start,i.new=!1,i=s,s=e[i.prevCC]}e.presentationOffset=r};function hu(d,e,t,r,i,s,l){const x=new po,j=ct(new Uint8Array(d)).trim().replace(Cl,`
|
|
|
`).split(`
|
|
|
`),q=[],Ae=e?Dn(e.baseTime,e.timescale):0;let Oe="00:00.000",Ye=0,Xe=0,lt,Ct=!0;x.oncue=function(Tt){const vr=t[r];let Nr=t.ccOffset;const Or=(Ye-Ae)/9e4;if(vr!=null&&vr.new&&(Xe!==void 0?Nr=t.ccOffset=vr.start:$u(t,r,Or)),Or){if(!e){lt=new Error("Missing initPTS for VTT MPEGTS");return}Nr=Or-t.presentationOffset}const Un=Tt.endTime-Tt.startTime,cn=rn((Tt.startTime+Nr-Xe)*9e4,i*9e4)/9e4;Tt.startTime=Math.max(cn,0),Tt.endTime=Math.max(cn+Un,0);const gi=Tt.text.trim();Tt.text=decodeURIComponent(encodeURIComponent(gi)),Tt.id||(Tt.id=Yl(Tt.startTime,Tt.endTime,gi)),Tt.endTime>0&&q.push(Tt)},x.onparsingerror=function(Tt){lt=Tt},x.onflush=function(){if(lt){l(lt);return}s(q)},j.forEach(Tt=>{if(Ct)if(Ko(Tt,"X-TIMESTAMP-MAP=")){Ct=!1,Tt.slice(16).split(",").forEach(vr=>{Ko(vr,"LOCAL:")?Oe=vr.slice(6):Ko(vr,"MPEGTS:")&&(Ye=parseInt(vr.slice(7)))});try{Xe=Vl(Oe)/1e3}catch(vr){lt=vr}return}else Tt===""&&(Ct=!1);x.parse(Tt+`
|
|
|
`)}),x.flush()}const sl="stpp.ttml.im1t",pu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Tu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Ku={left:"start",center:"center",right:"end",start:"start",end:"end"};function mu(d,e,t,r){const i=It(new Uint8Array(d),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const s=i.map(x=>ct(x)),l=$r(e.baseTime,1,e.timescale);try{s.forEach(x=>t(zu(x,l)))}catch(x){r(x)}}function zu(d,e){const i=new DOMParser().parseFromString(d,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const s={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},l=Object.keys(s).reduce((Oe,Ye)=>(Oe[Ye]=i.getAttribute(`ttp:${Ye}`)||s[Ye],Oe),{}),x=i.getAttribute("xml:space")!=="preserve",j=Gu(Nl(i,"styling","style")),q=Gu(Nl(i,"layout","region")),Ae=Nl(i,"body","[begin]");return[].map.call(Ae,Oe=>{const Ye=kl(Oe,x);if(!Ye||!Oe.hasAttribute("begin"))return null;const Xe=ko(Oe.getAttribute("begin"),l),lt=ko(Oe.getAttribute("dur"),l);let Ct=ko(Oe.getAttribute("end"),l);if(Xe===null)throw vu(Oe);if(Ct===null){if(lt===null)throw vu(Oe);Ct=Xe+lt}const Tt=new Jo(Xe-e,Ct-e,Ye);Tt.id=Yl(Tt.startTime,Tt.endTime,Tt.text);const vr=q[Oe.getAttribute("region")],Nr=j[Oe.getAttribute("style")],Or=gu(vr,Nr,j),{textAlign:Un}=Or;if(Un){const cn=Ku[Un];cn&&(Tt.lineAlign=cn),Tt.align=Un}return n(Tt,Or),Tt}).filter(Oe=>Oe!==null)}function Nl(d,e,t){const r=d.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Gu(d){return d.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function kl(d,e){return[].slice.call(d.childNodes).reduce((t,r,i)=>{var s;return r.nodeName==="br"&&i?t+`
|
|
|
`:(s=r.childNodes)!=null&&s.length?kl(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function gu(d,e,t){const r="http://www.w3.org/ns/ttml#styling";let i=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],l=d!=null&&d.hasAttribute("style")?d.getAttribute("style"):null;return l&&t.hasOwnProperty(l)&&(i=t[l]),s.reduce((x,j)=>{const q=Io(e,r,j)||Io(d,r,j)||Io(i,r,j);return q&&(x[j]=q),x},{})}function Io(d,e,t){return d&&d.hasAttributeNS(e,t)?d.getAttributeNS(e,t):null}function vu(d){return new Error(`Could not parse ttml timestamp ${d}`)}function ko(d,e){if(!d)return null;let t=Iu(d);return t===null&&(pu.test(d)?t=yc(d,e):Tu.test(d)&&(t=Zu(d,e))),t}function yc(d,e){const t=pu.exec(d),r=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+r/e.frameRate}function Zu(d,e){const t=Tu.exec(d),r=Number(t[1]);switch(t[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}class Pa{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Lu(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(a.FRAG_LOADING,this.onFragLoading,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this),e.on(a.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(a.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(a.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(a.FRAG_LOADING,this.onFragLoading,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this),e.off(a.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(a.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(a.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Vo(this,"textTrack1"),t=new Vo(this,"textTrack2"),r=new Vo(this,"textTrack3"),i=new Vo(this,"textTrack4");this.cea608Parser1=new $s(1,e,t),this.cea608Parser2=new $s(3,r,i)}}addCues(e,t,r,i,s){let l=!1;for(let x=s.length;x--;){const j=s[x],q=_l(j[0],j[1],t,r);if(q>=0&&(j[0]=Math.min(j[0],t),j[1]=Math.max(j[1],r),l=!0,q/(r-t)>.5))return}if(l||s.push([t,r]),this.config.renderTextTracksNatively){const x=this.captionsTracks[e];this.Cues.newCue(x,t,r,i)}else{const x=this.Cues.newCue(null,t,r,i);this.hls.trigger(a.CUES_PARSED,{type:"captions",cues:x,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:s}){const{unparsedVttFrags:l}=this;r==="main"&&(this.initPTS[t.cc]={baseTime:i,timescale:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(x=>{this.onFragLoaded(a.FRAG_LOADED,x)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let i=0;i<r.textTracks.length;i++){const s=r.textTracks[i];if(Du(s,{name:e,lang:t,attrs:{}}))return s}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:r,media:i}=this,{label:s,languageCode:l}=t[e],x=this.getExistingTrack(s,l);if(x)r[e]=x,xa(r[e]),Qi(r[e],i);else{const j=this.createTextTrack("captions",s,l);j&&(j[e]=!0,r[e]=j)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,i={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(e,t,r){const i=this.media;if(i)return i.addTextTrack(e,t,r)}onMediaAttaching(e,t){this.media=t.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{xa(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Lu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let r=0;r<t.length;r++)xa(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],i=r.some(s=>s.textCodec===sl);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(wi(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const l=this.media,x=l?ai(l.textTracks):null;if(this.tracks.forEach((j,q)=>{let Ae;if(x){let Oe=null;for(let Ye=0;Ye<x.length;Ye++)if(x[Ye]&&Du(x[Ye],j)){Oe=x[Ye],x[Ye]=null;break}Oe&&(Ae=Oe)}if(Ae)xa(Ae);else{const Oe=Fu(j);Ae=this.createTextTrack(Oe,j.name,j.lang),Ae&&(Ae.mode="disabled")}Ae&&this.textTracks.push(Ae)}),x!=null&&x.length){const j=x.filter(q=>q!==null).map(q=>q.label);j.length&&B.warn(`Media element contains unused subtitle tracks: ${j.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const l=this.tracks.map(x=>({label:x.name,kind:x.type.toLowerCase(),default:x.default,subtitleTrack:x}));this.hls.trigger(a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:l})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const s=`textTrack${i[1]}`,l=this.captionsProperties[s];l&&(l.label=r.name,r.lang&&(l.languageCode=r.lang),l.media=r)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===jt.MAIN){var r,i;const{cea608Parser1:s,cea608Parser2:l,lastSn:x}=this,{cc:j,sn:q}=t.frag,Ae=(r=(i=t.part)==null?void 0:i.index)!=null?r:-1;s&&l&&(q!==x+1||q===x&&Ae!==this.lastPartIndex+1||j!==this.lastCc)&&(s.reset(),l.reset()),this.lastCc=j,this.lastSn=q,this.lastPartIndex=Ae}}onFragLoaded(e,t){const{frag:r,payload:i}=t;if(r.type===jt.SUBTITLE)if(i.byteLength){const s=r.decryptdata,l="stats"in t;if(s==null||!s.encrypted||l){const x=this.tracks[r.level],j=this.vttCCs;j[r.cc]||(j[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),x&&x.textCodec===sl?this._parseIMSC1(r,i):this._parseVTTs(t)}}else this.hls.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;mu(t,this.initPTS[e.cc],i=>{this._appendCues(i,e.level),r.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},i=>{B.log(`Failed to parse IMSC1: ${i}`),r.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:i})})}_parseVTTs(e){var t;const{frag:r,payload:i}=e,{initPTS:s,unparsedVttFrags:l}=this,x=s.length-1;if(!s[r.cc]&&x===-1){l.push(e);return}const j=this.hls,q=(t=r.initSegment)!=null&&t.data?On(r.initSegment.data,new Uint8Array(i)):i;hu(q,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,Ae=>{this._appendCues(Ae,r.level),j.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},Ae=>{const Oe=Ae.message==="Missing initPTS for VTT MPEGTS";Oe?l.push(e):this._fallbackToIMSC1(r,i),B.log(`Failed to parse VTT cue: ${Ae}`),!(Oe&&x>r.cc)&&j.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:Ae})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||mu(t,this.initPTS[e.cc],()=>{r.textCodec=sl,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[t];if(!i||i.mode==="disabled")return;e.forEach(s=>da(i,s))}else{const i=this.tracks[t];if(!i)return;const s=i.default?"default":"subtitles"+t;r.trigger(a.CUES_PARSED,{type:"subtitles",cues:e,track:s})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===jt.SUBTITLE&&this.onFragLoaded(a.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:r,cea608Parser2:i}=this;if(!this.enabled||!r||!i)return;const{frag:s,samples:l}=t;if(!(s.type===jt.MAIN&&this.closedCaptionsForLevel(s)==="NONE"))for(let x=0;x<l.length;x++){const j=l[x].bytes;if(j){const q=this.extractCea608Data(j);r.addData(l[x].pts,q[0]),i.addData(l[x].pts,q[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:r,endOffsetSubtitles:i,type:s}){const{media:l}=this;if(!(!l||l.currentTime<r)){if(!s||s==="video"){const{captionsTracks:x}=this;Object.keys(x).forEach(j=>Ji(x[j],t,r))}if(this.config.renderTextTracksNatively&&t===0&&i!==void 0){const{textTracks:x}=this;Object.keys(x).forEach(j=>Ji(x[j],t,i))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let i=2;for(let s=0;s<r;s++){const l=e[i++],x=127&e[i++],j=127&e[i++];if(x===0&&j===0)continue;if((4&l)!==0){const Ae=3&l;(Ae===0||Ae===1)&&(t[Ae].push(x),t[Ae].push(j))}}return t}}function Fu(d){return d.characteristics&&/transcribes-spoken-dialog/gi.test(d.characteristics)&&/describes-music-and-sound/gi.test(d.characteristics)?"captions":"subtitles"}function Du(d,e){return!!d&&d.kind===Fu(e)&&fi(e,d)}function _l(d,e,t,r){return Math.min(e,r)-Math.max(d,t)}function Lu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class yu{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(a.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.BUFFER_CODECS,this.onBufferCodecs,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(a.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.BUFFER_CODECS,this.onBufferCodecs,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&o(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&B.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const r=t.filter((i,s)=>this.isLevelAllowed(i)&&s<=e);return this.clientRect=null,yu.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return e}isLevelAllowed(e){return!this.restrictedLevels.some(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const i=(x,j)=>j?x.width!==j.width||x.height!==j.height:!0;let s=e.length-1;const l=Math.max(t,r);for(let x=0;x<e.length;x+=1){const j=e[x];if((j.width>=l||j.height>=l)&&i(j,e[x+1])){s=x;break}}return s}}class Xl{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.capLevelOnFPSDrop){const i=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,r){const i=performance.now();if(t){if(this.lastTime){const s=i-this.lastTime,l=r-this.lastDroppedFrames,x=t-this.lastDecodedFrames,j=1e3*l/s,q=this.hls;if(q.trigger(a.FPS_DROP,{currentDropped:l,currentDecoded:x,totalDroppedFrames:r}),j>0&&l>q.config.fpsDroppedMonitoringThreshold*x){let Ae=q.currentLevel;B.warn("drop FPS ratio greater than max allowed value for currentLevel: "+Ae),Ae>0&&(q.autoLevelCapping===-1||q.autoLevelCapping>=Ae)&&(Ae=Ae-1,q.trigger(a.FPS_DROP_LEVEL_CAPPING,{level:Ae,droppedLevel:q.currentLevel}),q.autoLevelCapping=Ae,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}const Jl="[eme]";class Bl{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Bl.CDMCleanupPromise?[Bl.CDMCleanupPromise]:[],this.debug=B.debug.bind(B,Jl),this.log=B.log.bind(B,Jl),this.warn=B.warn.bind(B,Jl),this.error=B.error.bind(B,Jl),this.onMediaEncrypted=t=>{const{initDataType:r,initData:i}=t,s=`"${t.type}" event: init data type: "${r}"`;if(this.debug(s),i!==null){if(!this.keyFormatPromise){let l=Object.keys(this.keySystemAccessPromises);l.length||(l=Er(this.config));const x=l.map(Cr).filter(j=>!!j);this.keyFormatPromise=this.getKeyFormatPromise(x)}this.keyFormatPromise.then(l=>{const x=ur(l);let j,q;if(r==="sinf"){if(x!==nt.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const lt=wr(new Uint8Array(i));try{const Ct=_(JSON.parse(lt).sinf),Tt=an(Ct);if(!Tt)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");j=Tt.subarray(8,24),q=nt.FAIRPLAY}catch(Ct){this.warn(`${s} Failed to parse sinf: ${Ct}`);return}}else{if(x!==nt.WIDEVINE&&x!==nt.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const lt=In(i),Ct=lt.filter(vr=>!!vr.systemId&&We(vr.systemId)===x);Ct.length>1&&this.warn(`${s} Using first of ${Ct.length} pssh found for selected key-system ${x}`);const Tt=Ct[0];if(!Tt){lt.length===0||lt.some(vr=>!vr.systemId)?this.warn(`${s} contains incomplete or invalid pssh data`):this.log(`ignoring ${s} for ${lt.map(vr=>We(vr.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(q=We(Tt.systemId),Tt.version===0&&Tt.data)if(q===nt.WIDEVINE){const vr=Tt.data.length-22;j=Tt.data.subarray(vr,vr+16)}else q===nt.PLAYREADY&&(j=Nt(Tt.data))}if(!q||!j){this.log(`Unable to handle ${s} with key-system ${x}`);return}const Ae=Bt.hexDump(j),{keyIdToKeySessionPromise:Oe,mediaKeySessions:Ye}=this;let Xe=Oe[Ae];for(let lt=0;lt<Ye.length;lt++){const Ct=Ye[lt],Tt=Ct.decryptdata;if(!Tt.keyId)continue;const vr=Bt.hexDump(Tt.keyId);if(Ae===vr||Tt.uri.replace(/-/g,"").indexOf(Ae)!==-1){if(Xe=Oe[vr],Tt.pssh)break;delete Oe[vr],Tt.pssh=new Uint8Array(i),Tt.keyId=j,Xe=Oe[Ae]=Xe.then(()=>this.generateRequestWithPreferredKeySession(Ct,r,i,"encrypted-event-key-match")),Xe.catch(Nr=>this.handleError(Nr));break}}if(!Xe){if(q!==x){this.log(`Ignoring "${s}" with ${q} init data for selected key-system ${x}`);return}Xe=Oe[Ae]=this.getKeySystemSelectionPromise([q]).then(({keySystem:lt,mediaKeys:Ct})=>{var Tt;this.throwIfDestroyed();const vr=new gn("ISO-23001-7",Ae,(Tt=Cr(lt))!=null?Tt:"");return vr.pssh=new Uint8Array(i),vr.keyId=j,this.attemptSetMediaKeys(lt,Ct).then(()=>{this.throwIfDestroyed();const Nr=this.createMediaKeySessionContext({decryptdata:vr,keySystem:lt,mediaKeys:Ct});return this.generateRequestWithPreferredKeySession(Nr,r,i,"encrypted-event-no-match")})}),Xe.catch(lt=>this.handleError(lt))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(a.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(a.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(a.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(a.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,i=t[e];if(i)return i.licenseUrl;if(e===nt.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,r=t[e];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,r=(l,x,j)=>!!l&&j.indexOf(l)===x,i=t.map(l=>l.audioCodec).filter(r),s=t.map(l=>l.videoCodec).filter(r);return i.length+s.length===0&&s.push("avc1.42e01e"),new Promise((l,x)=>{const j=q=>{const Ae=q.shift();this.getMediaKeysPromise(Ae,i,s).then(Oe=>l({keySystem:Ae,mediaKeys:Oe})).catch(Oe=>{q.length?j(q):Oe instanceof Ho?x(Oe):x(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_ACCESS,error:Oe,fatal:!0},Oe.message))})};j(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return Kr===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(e,t)}getMediaKeysPromise(e,t,r){const i=_r(e,t,r,this.config.drmSystemOptions),s=this.keySystemAccessPromises[e];let l=s==null?void 0:s.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${e}" key-system access with config: ${JSON.stringify(i)}`),l=this.requestMediaKeySystemAccess(e,i);const x=this.keySystemAccessPromises[e]={keySystemAccess:l};return l.catch(j=>{this.log(`Failed to obtain access to key-system "${e}": ${j}`)}),l.then(j=>{this.log(`Access for key-system "${j.keySystem}" obtained`);const q=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),x.mediaKeys=j.createMediaKeys().then(Ae=>(this.log(`Media-keys created for "${e}"`),q.then(Oe=>Oe?this.setMediaKeysServerCertificate(Ae,e,Oe):Ae))),x.mediaKeys.catch(Ae=>{this.error(`Failed to create media-keys for "${e}"}: ${Ae}`)}),x.mediaKeys})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${Bt.hexDump(e.keyId||[])}`);const i=r.createSession(),s={decryptdata:e,keySystem:t,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(s),s}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const r=this.createMediaKeySessionContext(e),i=this.getKeyIdString(t),s="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,s,t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Bt.hexDump(e.keyId)}updateKeySession(e,t){var r;const i=e.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${Bt.hexDump(((r=e.decryptdata)==null?void 0:r.keyId)||[])}
|
|
|
} (data length: ${t&&t.byteLength})`),i.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,r)=>{const i=Er(this.config),s=e.map(ur).filter(l=>!!l&&i.indexOf(l)!==-1);return this.getKeySystemSelectionPromise(s).then(({keySystem:l})=>{const x=Cr(l);x?t(x):r(new Error(`Unable to find format for key-system "${l}"`))}).catch(r)})}loadKey(e){const t=e.keyInfo.decryptdata,r=this.getKeyIdString(t),i=`(keyId: ${r} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);let s=this.keyIdToKeySessionPromise[r];return s||(s=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:x})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(l,x).then(()=>{this.throwIfDestroyed();const j=this.createMediaKeySessionContext({keySystem:l,mediaKeys:x,decryptdata:t});return this.generateRequestWithPreferredKeySession(j,"cenc",t.pssh,"playlist-key")}))),s.catch(l=>this.handleError(l))),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ho?this.hls.trigger(a.ERROR,e.data):this.hls.trigger(a.ERROR,{type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const i=ur(e.keyFormat),s=i?[i]:Er(this.config);return this.attemptKeySystemAccess(s)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Er(this.config)),e.length===0)throw new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const i=Promise.all(r).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(s=>r.indexOf(s)===-1)})}generateRequestWithPreferredKeySession(e,t,r,i){var s,l;const x=(s=this.config.drmSystems)==null||(l=s[e.keySystem])==null?void 0:l.generateRequest;if(x)try{const lt=x.call(this.hls,t,r,e);if(!lt)throw new Error("Invalid response from configured generateRequest filter");t=lt.initDataType,r=e.decryptdata.pssh=lt.initData?new Uint8Array(lt.initData):null}catch(lt){var j;if(this.warn(lt.message),(j=this.hls)!=null&&j.config.debug)throw lt}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const q=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${i}": ${q} (init data type: ${t} length: ${r?r.byteLength:null})`);const Ae=new Xr,Oe=e._onmessage=lt=>{const Ct=e.mediaKeysSession;if(!Ct){Ae.emit("error",new Error("invalid state"));return}const{messageType:Tt,message:vr}=lt;this.log(`"${Tt}" message event for session "${Ct.sessionId}" message size: ${vr.byteLength}`),Tt==="license-request"||Tt==="license-renewal"?this.renewLicense(e,vr).catch(Nr=>{this.handleError(Nr),Ae.emit("error",Nr)}):Tt==="license-release"?e.keySystem===nt.FAIRPLAY&&(this.updateKeySession(e,Je("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Tt}"`)},Ye=e._onkeystatuseschange=lt=>{if(!e.mediaKeysSession){Ae.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Tt=e.keyStatus;Ae.emit("keyStatus",Tt),Tt==="expired"&&(this.warn(`${e.keySystem} expired for key ${q}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",Oe),e.mediaKeysSession.addEventListener("keystatuseschange",Ye);const Xe=new Promise((lt,Ct)=>{Ae.on("error",Ct),Ae.on("keyStatus",Tt=>{Tt.startsWith("usable")?lt():Tt==="output-restricted"?Ct(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Tt==="internal-error"?Ct(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Tt}"`)):Tt==="expired"?Ct(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Tt}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var lt;this.log(`Request generated for key-session "${(lt=e.mediaKeysSession)==null?void 0:lt.sessionId}" keyId: ${q}`)}).catch(lt=>{throw new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_SESSION,error:lt,fatal:!1},`Error generating key-session request: ${lt}`)}).then(()=>Xe).catch(lt=>{throw Ae.removeAllListeners(),this.removeSession(e),lt}).then(()=>(Ae.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${Bt.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${Bt.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,r=t.loader,i=new r(t),s=this.getServerCertificateUrl(e);return s?(this.log(`Fetching server certificate for "${e}"`),new Promise((l,x)=>{const j={responseType:"arraybuffer",url:s},q=t.certLoadPolicy.default,Ae={loadPolicy:q,timeout:q.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Oe={onSuccess:(Ye,Xe,lt,Ct)=>{l(Ye.data)},onError:(Ye,Xe,lt,Ct)=>{x(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:lt,response:ie({url:j.url,data:void 0},Ye)},`"${e}" certificate request failed (${s}). Status: ${Ye.code} (${Ye.text})`))},onTimeout:(Ye,Xe,lt)=>{x(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:lt,response:{url:j.url,data:void 0}},`"${e}" certificate request timed out (${s})`))},onAbort:(Ye,Xe,lt)=>{x(new Error("aborted"))}};i.load(j,Ae,Oe)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((i,s)=>{e.setServerCertificate(r).then(l=>{this.log(`setServerCertificate ${l?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${t}"`),i(e)}).catch(l=>{s(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:l,fatal:!0},l.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(i=>{throw new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:i,fatal:!0},i.message)}))}unpackPlayReadyKeyMessage(e,t){const r=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const i=new DOMParser().parseFromString(r,"application/xml"),s=i.querySelectorAll("HttpHeader");if(s.length>0){let Ae;for(let Oe=0,Ye=s.length;Oe<Ye;Oe++){var l,x;Ae=s[Oe];const Xe=(l=Ae.querySelector("name"))==null?void 0:l.textContent,lt=(x=Ae.querySelector("value"))==null?void 0:x.textContent;Xe&<&&e.setRequestHeader(Xe,lt)}}const j=i.querySelector("Challenge"),q=j==null?void 0:j.textContent;if(!q)throw new Error("Cannot find <Challenge> in key message");return Je(atob(q))}setupLicenseXHR(e,t,r,i){const s=this.config.licenseXhrSetup;return s?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return s.call(this.hls,e,t,r,i)}).catch(l=>{if(!r.decryptdata)throw l;return e.open("POST",t,!0),s.call(this.hls,e,t,r,i)}).then(l=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:l||i})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const r=this.config.keyLoadPolicy.default;return new Promise((i,s)=>{const l=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${l}`);const x=new XMLHttpRequest;x.responseType="arraybuffer",x.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return s(new Error("invalid state"));if(x.readyState===4)if(x.status===200){this._requestLicenseFailureCount=0;let j=x.response;this.log(`License received ${j instanceof ArrayBuffer?j.byteLength:j}`);const q=this.config.licenseResponseCallback;if(q)try{j=q.call(this.hls,x,l,e)}catch(Ae){this.error(Ae)}i(j)}else{const j=r.errorRetry,q=j?j.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>q||x.status>=400&&x.status<500)s(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:x,response:{url:l,data:void 0,code:x.status,text:x.statusText}},`License Request XHR failed (${l}). Status: ${x.status} (${x.statusText})`));else{const Ae=q-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${Ae} attempts left`),this.requestLicense(e,t).then(i,s)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=x,this.setupLicenseXHR(x,l,e,t).then(({xhr:j,licenseChallenge:q})=>{e.keySystem==nt.PLAYREADY&&(q=this.unpackPlayReadyKeyMessage(j,q)),j.send(q)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const r=t.media;this.media=r,r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},gn.clearKeyUriToKeyIdMap();const r=t.length;Bl.CDMCleanupPromise=Promise.all(t.map(i=>this.removeSession(i)).concat(e==null?void 0:e.setMediaKeys(null).catch(i=>{this.log(`Could not clear media keys: ${i}`)}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((i,s)=>(i.indexOf(s.keyFormat)===-1&&i.push(s.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:r}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(e);return i>-1&&this.mediaKeySessions.splice(i,1),t.remove().catch(s=>{this.log(`Could not remove session: ${s}`)}).then(()=>t.close()).catch(s=>{this.log(`Could not close session: ${s}`)})}}}Bl.CDMCleanupPromise=void 0;class Ho extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}var bs;(function(d){d.MANIFEST="m",d.AUDIO="a",d.VIDEO="v",d.MUXED="av",d.INIT="i",d.CAPTION="c",d.TIMED_TEXT="tt",d.KEY="k",d.OTHER="o"})(bs||(bs={}));var ol;(function(d){d.DASH="d",d.HLS="h",d.SMOOTH="s",d.OTHER="o"})(ol||(ol={}));var qo;(function(d){d.OBJECT="CMCD-Object",d.REQUEST="CMCD-Request",d.SESSION="CMCD-Session",d.STATUS="CMCD-Status"})(qo||(qo={}));const ql={[qo.OBJECT]:["br","d","ot","tb"],[qo.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[qo.SESSION]:["cid","pr","sf","sid","st","v"],[qo.STATUS]:["bs","rtp"]};class Ka{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof Ka?r:new Ka(r))),this.value=e,this.params=t}}class As{constructor(e){this.description=void 0,this.description=e}}const zo="Dict";function ll(d){return Array.isArray(d)?JSON.stringify(d):d instanceof Map?"Map{}":d instanceof Set?"Set{}":typeof d=="object"?JSON.stringify(d):String(d)}function Sl(d,e,t,r){return new Error(`failed to ${d} "${ll(e)}" as ${t}`,{cause:r})}const Ru="Bare Item",Ou="Boolean",Pu="Byte Sequence",hl="Decimal",Il="Integer";function Ic(d){return d<-999999999999999||999999999999999<d}const bu=/[\x00-\x1f\x7f]+/,Ml="Token",lc="Key";function Go(d,e,t){return Sl("serialize",d,e,t)}function kc(d){if(typeof d!="boolean")throw Go(d,Ou);return d?"?1":"?0"}function uc(d){return btoa(String.fromCharCode(...d))}function Mc(d){if(ArrayBuffer.isView(d)===!1)throw Go(d,Pu);return`:${uc(d)}:`}function cc(d){if(Ic(d))throw Go(d,Il);return d.toString()}function Nu(d){return`@${cc(d.getTime()/1e3)}`}function ku(d,e){if(d<0)return-ku(-d,e);const t=Math.pow(10,e);if(Math.abs(d*t%1-.5)<Number.EPSILON){const i=Math.floor(d*t);return(i%2===0?i:i+1)/t}else return Math.round(d*t)/t}function Ac(d){const e=ku(d,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Go(d,hl);const t=e.toString();return t.includes(".")?t:`${t}.0`}const dc="String";function Wu(d){if(bu.test(d))throw Go(d,dc);return`"${d.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function bc(d){return d.description||d.toString().slice(7,-1)}function wc(d){const e=bc(d);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Go(e,Ml);return e}function wu(d){switch(typeof d){case"number":if(!o(d))throw Go(d,Ru);return Number.isInteger(d)?cc(d):Ac(d);case"string":return Wu(d);case"symbol":return wc(d);case"boolean":return kc(d);case"object":if(d instanceof Date)return Nu(d);if(d instanceof Uint8Array)return Mc(d);if(d instanceof As)return wc(d);default:throw Go(d,Ru)}}function xu(d){if(/^[a-z*][a-z0-9\-_.*]*$/.test(d)===!1)throw Go(d,lc);return d}function eu(d){return d==null?"":Object.entries(d).map(([e,t])=>t===!0?`;${xu(e)}`:`;${xu(e)}=${wu(t)}`).join("")}function tu(d){return d instanceof Ka?`${wu(d.value)}${eu(d.params)}`:wu(d)}function fc(d){return`(${d.value.map(tu).join(" ")})${eu(d.params)}`}function de(d,e={whitespace:!0}){if(typeof d!="object")throw Go(d,zo);const t=d instanceof Map?d.entries():Object.entries(d),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([i,s])=>{s instanceof Ka||(s=new Ka(s));let l=xu(i);return s.value===!0?l+=eu(s.params):(l+="=",Array.isArray(s.value)?l+=fc(s):l+=tu(s)),l}).join(`,${r}`)}function Et(d,e){return de(d,e)}const gr=d=>d==="ot"||d==="sf"||d==="st",Rr=d=>typeof d=="number"?o(d):d!=null&&d!==""&&d!==!1;function un(d,e){const t=new URL(d),r=new URL(e);if(t.origin!==r.origin)return d;const i=t.pathname.split("/").slice(1),s=r.pathname.split("/").slice(1,-1);for(;i[0]===s[0];)i.shift(),s.shift();for(;s.length;)s.shift(),i.unshift("..");return i.join("/")}function Kn(){try{return crypto.randomUUID()}catch(d){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(i=="x"?s:s&3|8).toString(16)})}}}const Ci=d=>Math.round(d),na=(d,e)=>(e!=null&&e.baseUrl&&(d=un(d,e.baseUrl)),encodeURIComponent(d)),va=d=>Ci(d/100)*100,Va={br:Ci,d:Ci,bl:va,dl:va,mtp:va,nor:na,rtp:va,tb:Ci};function za(d,e){const t={};if(d==null||typeof d!="object")return t;const r=Object.keys(d).sort(),i=n({},Va,e==null?void 0:e.formatters),s=e==null?void 0:e.filter;return r.forEach(l=>{if(s!=null&&s(l))return;let x=d[l];const j=i[l];j&&(x=j(x,e)),!(l==="v"&&x===1)&&(l=="pr"&&x===1||Rr(x)&&(gr(l)&&typeof x=="string"&&(x=new As(x)),t[l]=x))}),t}function ws(d,e={}){return d?Et(za(d,e),n({whitespace:!1},e)):""}function mo(d,e={}){if(!d)return{};const t=Object.entries(d),r=Object.entries(ql).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=t.reduce((s,l)=>{var x,j;const[q,Ae]=l,Oe=((x=r.find(Ye=>Ye[1].includes(q)))==null?void 0:x[0])||qo.REQUEST;return(j=s[Oe])!=null||(s[Oe]={}),s[Oe][q]=Ae,s},{});return Object.entries(i).reduce((s,[l,x])=>(s[l]=ws(x,e),s),{})}function xo(d,e,t){return n(d,mo(e,t))}const To="CMCD";function Yo(d,e={}){if(!d)return"";const t=ws(d,e);return`${To}=${encodeURIComponent(t)}`}const Mo=/CMCD=[^&#]+/;function Kl(d,e,t){const r=Yo(e,t);if(!r)return d;if(Mo.test(d))return d.replace(Mo,r);const i=d.includes("?")?"&":"?";return`${d}${i}${r}`}class el{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=i=>{try{this.apply(i,{ot:bs.MANIFEST,su:!this.initialized})}catch(s){B.warn("Could not generate manifest CMCD data.",s)}},this.applyFragmentData=i=>{try{const s=i.frag,l=this.hls.levels[s.level],x=this.getObjectType(s),j={d:s.duration*1e3,ot:x};(x===bs.VIDEO||x===bs.AUDIO||x==bs.MUXED)&&(j.br=l.bitrate/1e3,j.tb=this.getTopBandwidth(x)/1e3,j.bl=this.getBufferLength(x)),this.apply(i,j)}catch(s){B.warn("Could not generate segment CMCD data.",s)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||Kn(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHED,this.onMediaDetached,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHED,this.onMediaDetached,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var r,i;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=t.tracks.video)==null?void 0:i.buffer}createData(){var e;return{v:1,sf:ol.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){n(t,this.createData());const r=t.ot===bs.INIT||t.ot===bs.VIDEO||t.ot===bs.MUXED;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:i}=this;i&&(t=Object.keys(t).reduce((s,l)=>(i.includes(l)&&(s[l]=t[l]),s),{})),this.useHeaders?(e.headers||(e.headers={}),xo(e.headers,t)):e.url=Kl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return bs.TIMED_TEXT;if(e.sn==="initSegment")return bs.INIT;if(t==="audio")return bs.AUDIO;if(t==="main")return this.hls.audioTracks.length?bs.VIDEO:bs.MUXED}getTopBandwidth(e){let t=0,r;const i=this.hls;if(e===bs.AUDIO)r=i.audioTracks;else{const s=i.maxAutoLevel,l=s>-1?s+1:i.levels.length;r=i.levels.slice(0,l)}for(const s of r)s.bitrate>t&&(t=s.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.hls.media,r=e===bs.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:Xa.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,l,x){t(s),this.loader.load(s,l,x)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,l,x){t(s),this.loader.load(s,l,x)}}}}const Tl=3e5;class xc{constructor(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=B.log.bind(B,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(r=>r!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:r}=t;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:r}=t;if((r==null?void 0:r.action)===pi.SendAlternateToPenaltyBox&&r.flags===ua.MoveAllAlternatesMatchingHost){const i=this.levels;let s=this.pathwayPriority,l=this.pathwayId;if(t.context){const{groupId:x,pathwayId:j,type:q}=t.context;x&&i?l=this.getPathwayForGroupId(x,q,l):j&&(l=j)}l in this.penalizedPathways||(this.penalizedPathways[l]=performance.now()),!s&&i&&(s=i.reduce((x,j)=>(x.indexOf(j.pathwayId)===-1&&x.push(j.pathwayId),x),[])),s&&s.length>1&&(this.updatePathwayPriority(s),r.resolved=this.pathwayId!==l),r.resolved||B.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${l} levels: ${i&&i.length} priorities: ${JSON.stringify(s)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this.pathwayPriority=e;let t;const r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(s=>{i-r[s]>Tl&&delete r[s]});for(let s=0;s<e.length;s++){const l=e[s];if(l in r)continue;if(l===this.pathwayId)return;const x=this.hls.nextLoadLevel,j=this.hls.levels[x];if(t=this.getLevelsForPathway(l),t.length>0){this.log(`Setting Pathway to "${l}"`),this.pathwayId=l,Hi(t),this.hls.trigger(a.LEVELS_UPDATED,{levels:t});const q=this.hls.levels[x];j&&q&&this.levels&&(q.attrs["STABLE-VARIANT-ID"]!==j.attrs["STABLE-VARIANT-ID"]&&q.bitrate!==j.bitrate&&this.log(`Unstable Pathways change from bitrate ${j.bitrate} to ${q.bitrate}`),this.hls.nextLoadLevel=x);break}}}getPathwayForGroupId(e,t,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let s=0;s<i.length;s++)if(t===vn.AUDIO_TRACK&&i[s].hasAudioGroup(e)||t===vn.SUBTITLE_TRACK&&i[s].hasSubtitleGroup(e))return i[s].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},i={};e.forEach(s=>{const{ID:l,"BASE-ID":x,"URI-REPLACEMENT":j}=s;if(t.some(Ae=>Ae.pathwayId===l))return;const q=this.getLevelsForPathway(x).map(Ae=>{const Oe=new J(Ae.attrs);Oe["PATHWAY-ID"]=l;const Ye=Oe.AUDIO&&`${Oe.AUDIO}_clone_${l}`,Xe=Oe.SUBTITLES&&`${Oe.SUBTITLES}_clone_${l}`;Ye&&(r[Oe.AUDIO]=Ye,Oe.AUDIO=Ye),Xe&&(i[Oe.SUBTITLES]=Xe,Oe.SUBTITLES=Xe);const lt=hc(Ae.uri,Oe["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",j),Ct=new Wi({attrs:Oe,audioCodec:Ae.audioCodec,bitrate:Ae.bitrate,height:Ae.height,name:Ae.name,url:lt,videoCodec:Ae.videoCodec,width:Ae.width});if(Ae.audioGroups)for(let Tt=1;Tt<Ae.audioGroups.length;Tt++)Ct.addGroupId("audio",`${Ae.audioGroups[Tt]}_clone_${l}`);if(Ae.subtitleGroups)for(let Tt=1;Tt<Ae.subtitleGroups.length;Tt++)Ct.addGroupId("text",`${Ae.subtitleGroups[Tt]}_clone_${l}`);return Ct});t.push(...q),Vu(this.audioTracks,r,j,l),Vu(this.subtitleTracks,i,j,l)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(t);let i;try{i=new self.URL(e)}catch(Ae){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(i.protocol!=="data:"){const Ae=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+Ae)}const s={responseType:"json",url:i.href},l=t.steeringManifestLoadPolicy.default,x=l.errorRetry||l.timeoutRetry||{},j={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:x.maxNumRetry||0,retryDelay:x.retryDelayMs||0,maxRetryDelay:x.maxRetryDelayMs||0},q={onSuccess:(Ae,Oe,Ye,Xe)=>{this.log(`Loaded steering manifest: "${i}"`);const lt=Ae.data;if(lt.VERSION!==1){this.log(`Steering VERSION ${lt.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=lt.TTL;const{"RELOAD-URI":Ct,"PATHWAY-CLONES":Tt,"PATHWAY-PRIORITY":vr}=lt;if(Ct)try{this.uri=new self.URL(Ct,i).href}catch(Or){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Ct}`);return}this.scheduleRefresh(this.uri||Ye.url),Tt&&this.clonePathways(Tt);const Nr={steeringManifest:lt,url:i.toString()};this.hls.trigger(a.STEERING_MANIFEST_LOADED,Nr),vr&&this.updatePathwayPriority(vr)},onError:(Ae,Oe,Ye,Xe)=>{if(this.log(`Error loading steering manifest: ${Ae.code} ${Ae.text} (${Oe.url})`),this.stopLoad(),Ae.code===410){this.enabled=!1,this.log(`Steering manifest ${Oe.url} no longer available`);return}let lt=this.timeToLoad*1e3;if(Ae.code===429){const Ct=this.loader;if(typeof(Ct==null?void 0:Ct.getResponseHeader)=="function"){const Tt=Ct.getResponseHeader("Retry-After");Tt&&(lt=parseFloat(Tt)*1e3)}this.log(`Steering manifest ${Oe.url} rate limited`);return}this.scheduleRefresh(this.uri||Oe.url,lt)},onTimeout:(Ae,Oe,Ye)=>{this.log(`Timeout loading steering manifest (${Oe.url})`),this.scheduleRefresh(this.uri||Oe.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(s,j,q)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Vu(d,e,t,r){d&&Object.keys(e).forEach(i=>{const s=d.filter(l=>l.groupId===i).map(l=>{const x=n({},l);return x.details=void 0,x.attrs=new J(x.attrs),x.url=x.attrs.URI=hc(l.url,l.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),x.groupId=x.attrs["GROUP-ID"]=e[i],x.attrs["PATHWAY-ID"]=r,x});d.push(...s)})}function hc(d,e,t,r){const{HOST:i,PARAMS:s,[t]:l}=r;let x;e&&(x=l==null?void 0:l[e],x&&(d=x));const j=new self.URL(d);return i&&!x&&(j.host=i),s&&Object.keys(s).sort().forEach(q=>{q&&j.searchParams.set(q,s[q])}),j.href}const Yu=/^age:\s*[\d.]+\s*$/im;class Xu{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new ae,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const s=this.xhrSetup;s?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return s(r,t.url)}).catch(l=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",t.url,!0),s(r,t.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,t,e)}).catch(l=>{this.callbacks.onError({code:r.status,text:l.message},t,r,i)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:l}=r.loadPolicy;if(i)for(const x in i)e.setRequestHeader(x,i[x]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),r.timeout=s&&o(s)?s:l,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const i=t.readyState,s=this.config;if(!r.aborted&&i>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),s.timeout!==s.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),s.timeout=s.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const l=t.status,x=t.responseType==="text"?t.responseText:null;if(l>=200&&l<300){const Oe=x!=null?x:t.response;if(Oe!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const Ye=t.responseType==="arraybuffer"?Oe.byteLength:Oe.length;if(r.loaded=r.total=Ye,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const Xe=this.callbacks.onProgress;if(Xe&&Xe(r,e,Oe,t),!this.callbacks)return;const lt={url:t.responseURL,data:Oe,code:l};this.callbacks.onSuccess(lt,r,e,t);return}}const j=s.loadPolicy.errorRetry,q=r.retry,Ae={url:e.url,data:void 0,code:l};cs(j,q,!1,Ae)?this.retry(j):(B.error(`${l} while loading ${e.url}`),this.callbacks.onError({code:l,text:t.statusText},e,t,r))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(cs(e,t,!0))this.retry(e);else{var r;B.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=Na(e,r.retry),r.retry++,B.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${r.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&Yu.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}function Ec(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(d){}return!1}const pc=/(\d+)-(\d+)\/(\d+)/;class Eo{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||ru,this.controller=new self.AbortController,this.stats=new ae}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,r){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const s=Ju(e,this.controller.signal),l=r.onProgress,x=e.responseType==="arraybuffer",j=x?"byteLength":"length",{maxTimeToFirstByteMs:q,maxLoadTimeMs:Ae}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,s),self.clearTimeout(this.requestTimeout),t.timeout=q&&o(q)?q:Ae,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},t.timeout),self.fetch(this.request).then(Oe=>{this.response=this.loader=Oe;const Ye=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=Ae,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},Ae-(Ye-i.loading.start)),!Oe.ok){const{status:Xe,statusText:lt}=Oe;throw new Oo(lt||"fetch, bad network response",Xe,Oe)}return i.loading.first=Ye,i.total=Ul(Oe.headers)||i.total,l&&o(t.highWaterMark)?this.loadProgressively(Oe,i,e,t.highWaterMark,l):x?Oe.arrayBuffer():e.responseType==="json"?Oe.json():Oe.text()}).then(Oe=>{const Ye=this.response;if(!Ye)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const Xe=Oe[j];Xe&&(i.loaded=i.total=Xe);const lt={url:Ye.url,data:Oe,code:Ye.status};l&&!o(t.highWaterMark)&&l(i,e,Oe,Ye),r.onSuccess(lt,i,e,Ye)}).catch(Oe=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const Ye=Oe&&Oe.code||0,Xe=Oe?Oe.message:null;r.onError({code:Ye,text:Xe},e,Oe?Oe.details:null,i)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,r,i=0,s){const l=new Wl,x=e.body.getReader(),j=()=>x.read().then(q=>{if(q.done)return l.dataLength&&s(t,r,l.flush(),e),Promise.resolve(new ArrayBuffer(0));const Ae=q.value,Oe=Ae.length;return t.loaded+=Oe,Oe<i||l.dataLength?(l.push(Ae),l.dataLength>=i&&s(t,r,l.flush(),e)):s(t,r,Ae,e),j()}).catch(()=>Promise.reject());return j()}}function Ju(d,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(n({},d.headers))};return d.rangeEnd&&t.headers.set("Range","bytes="+d.rangeStart+"-"+String(d.rangeEnd-1)),t}function no(d){const e=pc.exec(d);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Ul(d){const e=d.get("Content-Range");if(e){const r=no(e);if(o(r))return r}const t=d.get("Content-Length");if(t)return parseInt(t)}function ru(d,e){return new self.Request(d.url,e)}class Oo extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const nu=/\s/,Eu={newCue(d,e,t,r){const i=[];let s,l,x,j,q;const Ae=self.VTTCue||self.TextTrackCue;for(let Ye=0;Ye<r.rows.length;Ye++)if(s=r.rows[Ye],x=!0,j=0,q="",!s.isEmpty()){var Oe;for(let Ct=0;Ct<s.chars.length;Ct++)nu.test(s.chars[Ct].uchar)&&x?j++:(q+=s.chars[Ct].uchar,x=!1);s.cueStartTime=e,e===t&&(t+=1e-4),j>=16?j--:j++;const Xe=Ro(q.trim()),lt=Yl(e,t,Xe);d!=null&&(Oe=d.cues)!=null&&Oe.getCueById(lt)||(l=new Ae(e,t,Xe),l.id=lt,l.line=Ye+1,l.align="left",l.position=10+Math.min(80,Math.floor(j*8/32)*10),i.push(l))}return d&&i.length&&(i.sort((Ye,Xe)=>Ye.line==="auto"||Xe.line==="auto"?0:Ye.line>8&&Xe.line>8?Xe.line-Ye.line:Ye.line-Xe.line),i.forEach(Ye=>da(d,Ye))),i}},Ql={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},pl=ie(ie({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Xu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ns,bufferController:li,capLevelController:yu,errorController:gs,fpsController:Xl,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Kr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:Ql},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},qu()),{},{subtitleStreamController:Ia,subtitleTrackController:Xi,timelineController:Pa,audioStreamController:Jn,audioTrackController:qi,emeController:Bl,cmcdController:el,contentSteeringController:xc});function qu(){return{cueHandler:Eu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Cc(d,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const t=Mu(d),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,x=e[l]===void 0,j=[];i.forEach(q=>{const Ae=`${s}Loading${q}`,Oe=e[Ae];if(Oe!==void 0&&x){j.push(Ae);const Ye=t[l].default;switch(e[l]={default:Ye},q){case"TimeOut":Ye.maxLoadTimeMs=Oe,Ye.maxTimeToFirstByteMs=Oe;break;case"MaxRetry":Ye.errorRetry.maxNumRetry=Oe,Ye.timeoutRetry.maxNumRetry=Oe;break;case"RetryDelay":Ye.errorRetry.retryDelayMs=Oe,Ye.timeoutRetry.retryDelayMs=Oe;break;case"MaxRetryTimeout":Ye.errorRetry.maxRetryDelayMs=Oe,Ye.timeoutRetry.maxRetryDelayMs=Oe;break}}}),j.length&&B.warn(`hls.js config: "${j.join('", "')}" setting(s) are deprecated, use "${l}": ${JSON.stringify(e[l])}`)}),ie(ie({},t),e)}function Mu(d){return d&&typeof d=="object"?Array.isArray(d)?d.map(Mu):Object.keys(d).reduce((e,t)=>(e[t]=Mu(d[t]),e),{}):d}function jl(d){const e=d.loader;e!==Eo&&e!==Xu?(B.log("[config]: Custom loader detected, cannot enable progressive streaming"),d.progressive=!1):Ec()&&(d.loader=Eo,d.progressive=!0,d.enableSoftwareAES=!0,B.log("[config]: Progressive streaming enabled, using FetchLoader"))}let iu;class ul extends Oa{constructor(e,t){super(e,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const r=this.hls.config.preferManagedMediaSource,i=[],s={},l={};let x=!1,j=!1,q=!1;t.levels.forEach(Ae=>{var Oe,Ye;const Xe=Ae.attrs;let{audioCodec:lt,videoCodec:Ct}=Ae;((Oe=lt)==null?void 0:Oe.indexOf("mp4a.40.34"))!==-1&&(iu||(iu=/chrome|firefox/i.test(navigator.userAgent)),iu&&(Ae.audioCodec=lt=void 0)),lt&&(Ae.audioCodec=lt=ti(lt,r)),((Ye=Ct)==null?void 0:Ye.indexOf("avc1"))===0&&(Ct=Ae.videoCodec=Ri(Ct));const{width:Tt,height:vr,unknownCodecs:Nr}=Ae;if(x||(x=!!(Tt&&vr)),j||(j=!!Ct),q||(q=!!lt),Nr!=null&&Nr.length||lt&&!hr(lt,"audio",r)||Ct&&!hr(Ct,"video",r))return;const{CODECS:Or,"FRAME-RATE":Un,"HDCP-LEVEL":cn,"PATHWAY-ID":gi,RESOLUTION:zn,"VIDEO-RANGE":Ii}=Xe,mi=`${`${gi||"."}-`}${Ae.bitrate}-${zn}-${Un}-${Or}-${Ii}-${cn}`;if(s[mi])if(s[mi].uri!==Ae.url&&!Ae.attrs["PATHWAY-ID"]){const Oi=l[mi]+=1;Ae.attrs["PATHWAY-ID"]=new Array(Oi+1).join(".");const Ga=new Wi(Ae);s[mi]=Ga,i.push(Ga)}else s[mi].addGroupId("audio",Xe.AUDIO),s[mi].addGroupId("text",Xe.SUBTITLES);else{const Oi=new Wi(Ae);s[mi]=Oi,l[mi]=1,i.push(Oi)}}),this.filterAndSortMediaOptions(i,t,x,j,q)}filterAndSortMediaOptions(e,t,r,i,s){let l=[],x=[],j=e;if((r||i)&&s&&(j=j.filter(({videoCodec:lt,videoRange:Ct,width:Tt,height:vr})=>(!!lt||!!(Tt&&vr))&&la(Ct))),j.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const lt=new Error("no level with compatible codecs found in manifest");this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:lt,reason:lt.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:lt}=this.hls.config;l=t.audioTracks.filter(Ct=>!Ct.audioCodec||hr(Ct.audioCodec,"audio",lt)),Uo(l)}t.subtitles&&(x=t.subtitles,Uo(x));const q=j.slice(0);j.sort((lt,Ct)=>{if(lt.attrs["HDCP-LEVEL"]!==Ct.attrs["HDCP-LEVEL"])return(lt.attrs["HDCP-LEVEL"]||"")>(Ct.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&<.height!==Ct.height)return lt.height-Ct.height;if(lt.frameRate!==Ct.frameRate)return lt.frameRate-Ct.frameRate;if(lt.videoRange!==Ct.videoRange)return Ni.indexOf(lt.videoRange)-Ni.indexOf(Ct.videoRange);if(lt.videoCodec!==Ct.videoCodec){const Tt=Zr(lt.videoCodec),vr=Zr(Ct.videoCodec);if(Tt!==vr)return vr-Tt}if(lt.uri===Ct.uri&<.codecSet!==Ct.codecSet){const Tt=Ur(lt.codecSet),vr=Ur(Ct.codecSet);if(Tt!==vr)return vr-Tt}return lt.averageBitrate!==Ct.averageBitrate?lt.averageBitrate-Ct.averageBitrate:0});let Ae=q[0];if(this.steering&&(j=this.steering.filterParsedLevels(j),j.length!==q.length)){for(let lt=0;lt<q.length;lt++)if(q[lt].pathwayId===j[0].pathwayId){Ae=q[lt];break}}this._levels=j;for(let lt=0;lt<j.length;lt++)if(j[lt]===Ae){var Oe;this._firstLevel=lt;const Ct=Ae.bitrate,Tt=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${j.length} level(s) found, first bitrate: ${Ct}`),((Oe=this.hls.userConfig)==null?void 0:Oe.abrEwmaDefaultEstimate)===void 0){const vr=Math.min(Ct,this.hls.config.abrEwmaDefaultEstimateMax);vr>Tt&&Tt===pl.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=vr)}break}const Ye=s&&!i,Xe={levels:j,audioTracks:l,subtitleTracks:x,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:s,video:i,altAudio:!Ye&&l.some(lt=>!!lt.url)};this.hls.trigger(a.MANIFEST_PARSED,Xe),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const Ae=new Error("invalid level idx"),Oe=e<0;if(this.hls.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.LEVEL_SWITCH_ERROR,level:e,fatal:Oe,error:Ae,reason:Ae.message}),Oe)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,s=i?i.attrs["PATHWAY-ID"]:void 0,l=t[e],x=l.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=l,r===e&&l.details&&i&&s===x)return;this.log(`Switching to level ${e} (${l.height?l.height+"p ":""}${l.videoRange?l.videoRange+" ":""}${l.codecSet?l.codecSet+" ":""}@${l.bitrate})${x?" with Pathway "+x:""} from level ${r}${s?" with Pathway "+s:""}`);const j={level:e,attrs:l.attrs,details:l.details,bitrate:l.bitrate,averageBitrate:l.averageBitrate,maxBitrate:l.maxBitrate,realBitrate:l.realBitrate,width:l.width,height:l.height,codecSet:l.codecSet,audioCodec:l.audioCodec,videoCodec:l.videoCodec,audioGroups:l.audioGroups,subtitleGroups:l.subtitleGroups,loaded:l.loaded,loadError:l.loadError,fragmentError:l.fragmentError,name:l.name,id:l.id,uri:l.uri,url:l.url,urlId:0,audioGroupIds:l.audioGroupIds,textGroupIds:l.textGroupIds};this.hls.trigger(a.LEVEL_SWITCHING,j);const q=l.details;if(!q||q.live){const Ae=this.switchParams(l.uri,i==null?void 0:i.details,q);this.loadPlaylist(Ae)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}onError(e,t){t.fatal||!t.context||t.context.type===vn.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===jt.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(s=>!!r[s]))return;const i=this._levels[t.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(e,t){var r;const{level:i,details:s}=t,l=this._levels[i];if(!l){var x;this.warn(`Invalid level index ${i}`),(x=t.deliveryDirectives)!=null&&x.skip&&(s.deltaUpdateFailed=!0);return}i===this.currentLevelIndex?(l.fragmentError===0&&(l.loadError=0),this.playlistLoaded(i,t,l.details)):(r=t.deliveryDirectives)!=null&&r.skip&&(s.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){let i=r.uri;if(e)try{i=e.addDirectives(i)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}const s=r.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${s?" Pathway "+s:""} ${i}`),this.clearTimer(),this.hls.trigger(a.LEVEL_LOADING,{url:i,level:t,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;const r=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));Hi(r),this._levels=r,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(a.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(a.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Uo(d){const e={};d.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class Uu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[r].loader;if(i){var t;if(e&&e!==((t=i.context)==null?void 0:t.frag.type))return;i.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=m.KEY_LOAD_ERROR,r,i,s){return new Cs({type:A.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:s,error:r,networkDetails:i})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:i}=e;for(let s=0;s<t.length;s++){const l=t[s];if(i<=l.cc&&(r==="initSegment"||l.sn==="initSegment"||r<l.sn)){this.emeController.selectKeySystemFormat(l).then(x=>{l.setKeyFormat(x)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var r,i;t&&e.setKeyFormat(t);const s=e.decryptdata;if(!s){const q=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,m.KEY_LOAD_ERROR,q))}const l=s.uri;if(!l)return Promise.reject(this.createKeyLoadError(e,m.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${l}"`)));let x=this.keyUriToKeyInfo[l];if((r=x)!=null&&r.decryptdata.key)return s.key=x.decryptdata.key,Promise.resolve({frag:e,keyInfo:x});if((i=x)!=null&&i.keyLoadPromise){var j;switch((j=x.mediaKeySessionContext)==null?void 0:j.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return x.keyLoadPromise.then(q=>(s.key=q.keyInfo.decryptdata.key,{frag:e,keyInfo:x}))}}switch(x=this.keyUriToKeyInfo[l]={decryptdata:s,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},s.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return s.keyFormat==="identity"?this.loadKeyHTTP(x,e):this.loadKeyEME(x,e);case"AES-128":return this.loadKeyHTTP(x,e);default:return Promise.reject(this.createKeyLoadError(e,m.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${s.method}"`)))}}loadKeyEME(e,t){const r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const i=this.emeController.loadKey(r);if(i)return(e.keyLoadPromise=i.then(s=>(e.mediaKeySessionContext=s,r))).catch(s=>{throw e.keyLoadPromise=null,s})}return Promise.resolve(r)}loadKeyHTTP(e,t){const r=this.config,i=r.loader,s=new i(r);return t.keyLoader=e.loader=s,e.keyLoadPromise=new Promise((l,x)=>{const j={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},q=r.keyLoadPolicy.default,Ae={loadPolicy:q,timeout:q.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Oe={onSuccess:(Ye,Xe,lt,Ct)=>{const{frag:Tt,keyInfo:vr,url:Nr}=lt;if(!Tt.decryptdata||vr!==this.keyUriToKeyInfo[Nr])return x(this.createKeyLoadError(Tt,m.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Ct));vr.decryptdata.key=Tt.decryptdata.key=new Uint8Array(Ye.data),Tt.keyLoader=null,vr.loader=null,l({frag:Tt,keyInfo:vr})},onError:(Ye,Xe,lt,Ct)=>{this.resetLoader(Xe),x(this.createKeyLoadError(t,m.KEY_LOAD_ERROR,new Error(`HTTP Error ${Ye.code} loading key ${Ye.text}`),lt,ie({url:j.url,data:void 0},Ye)))},onTimeout:(Ye,Xe,lt)=>{this.resetLoader(Xe),x(this.createKeyLoadError(t,m.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),lt))},onAbort:(Ye,Xe,lt)=>{this.resetLoader(Xe),x(this.createKeyLoadError(t,m.INTERNAL_ABORTED,new Error("key loading aborted"),lt))}};s.load(j,Ae,Oe)})}resetLoader(e){const{frag:t,keyInfo:r,url:i}=e,s=r.loader;t.keyLoader===s&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[i],s&&s.destroy()}}function au(){return self.SourceBuffer||self.WebKitSourceBuffer}function su(){if(!Vn())return!1;const e=au();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function mc(){if(!su())return!1;const d=Vn();return typeof(d==null?void 0:d.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>d.isTypeSupported(Fr(e,"video")))||["mp4a.40.2","fLaC"].some(e=>d.isTypeSupported(Fr(e,"audio"))))}function Cu(){var d;const e=au();return typeof(e==null||(d=e.prototype)==null?void 0:d.changeType)=="function"}const Co=250,Qu=2,cl=.1,Hl=.05;class gc{constructor(e,t,r,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=r,this.hls=i}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:r,media:i,stalled:s}=this;if(i===null)return;const{currentTime:l,seeking:x}=i,j=this.seeking&&!x,q=!this.seeking&&x;if(this.seeking=x,l!==e){if(this.moved=!0,x||(this.nudgeRetry=0),s!==null){if(this.stallReported){const Tt=self.performance.now()-s;B.warn(`playback not stuck anymore @${l}, after ${Math.round(Tt)}ms`),this.stallReported=!1}this.stalled=null}return}if(q||j){this.stalled=null;return}if(i.paused&&!x||i.ended||i.playbackRate===0||!Xa.getBuffered(i).length){this.nudgeRetry=0;return}const Ae=Xa.bufferInfo(i,l,0),Oe=Ae.nextStart||0;if(x){const Tt=Ae.len>Qu,vr=!Oe||t&&t.start<=l||Oe-l>Qu&&!this.fragmentTracker.getPartialFragment(l);if(Tt||vr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Ye;if(!(Ae.len>0)&&!Oe)return;const vr=Math.max(Oe,Ae.start||0)-l,Nr=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Un=(Nr==null||(Ye=Nr.details)==null?void 0:Ye.live)?Nr.details.targetduration*2:Qu,cn=this.fragmentTracker.getPartialFragment(l);if(vr>0&&(vr<=Un||cn)){i.paused||this._trySkipBufferHole(cn);return}}const Xe=self.performance.now();if(s===null){this.stalled=Xe;return}const lt=Xe-s;if(!x&<>=Co&&(this._reportStall(Ae),!this.media))return;const Ct=Xa.bufferInfo(i,l,r.maxBufferHole);this._tryFixBufferStall(Ct,lt)}_tryFixBufferStall(e,t){const{config:r,fragmentTracker:i,media:s}=this;if(s===null)return;const l=s.currentTime,x=i.getPartialFragment(l);x&&(this._trySkipBufferHole(x)||!this.media)||(e.len>r.maxBufferHole||e.nextStart&&e.nextStart-l<r.maxBufferHole)&&t>r.highBufferWatchdogPeriod*1e3&&(B.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:r,stallReported:i}=this;if(!i&&r){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${JSON.stringify(e)})`);B.warn(s.message),t.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:r,media:i}=this;if(i===null)return 0;const s=i.currentTime,l=Xa.bufferInfo(i,s,0),x=s<l.start?l.start:l.nextStart;if(x){const j=l.len<=t.maxBufferHole,q=l.len>0&&l.len<1&&i.readyState<3,Ae=x-s;if(Ae>0&&(j||q)){if(Ae>t.maxBufferHole){const{fragmentTracker:Ye}=this;let Xe=!1;if(s===0){const lt=Ye.getAppendedFrag(0,jt.MAIN);lt&&x<lt.end&&(Xe=!0)}if(!Xe){const lt=e||Ye.getAppendedFrag(s,jt.MAIN);if(lt){let Ct=!1,Tt=lt.end;for(;Tt<x;){const vr=Ye.getPartialFragment(Tt);if(vr)Tt+=vr.duration;else{Ct=!0;break}}if(Ct)return 0}}}const Oe=Math.max(x+Hl,s+cl);if(B.warn(`skipping hole, adjusting currentTime from ${s} to ${Oe}`),this.moved=!0,this.stalled=null,i.currentTime=Oe,e&&!e.gap){const Ye=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${Oe}`);r.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:Ye,reason:Ye.message,frag:e})}return Oe}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:r,nudgeRetry:i}=this;if(r===null)return;const s=r.currentTime;if(this.nudgeRetry++,i<e.nudgeMaxRetry){const l=s+(i+1)*e.nudgeOffset,x=new Error(`Nudging 'currentTime' from ${s} to ${l}`);B.warn(x.message),r.currentTime=l,t.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_NUDGE_ON_STALL,error:x,fatal:!1})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${e.nudgeMaxRetry} nudges`);B.error(l.message),t.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_STALLED_ERROR,error:l,fatal:!0})}}}const Tc=100;class ec extends Au{constructor(e,t,r){super(e,t,r,"[stream-controller]",jt.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(a.ERROR,this.onError,this),e.on(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(a.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this),e.on(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(a.ERROR,this.onError,this),e.off(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(a.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this),e.off(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:r}=this;if(this.stopLoad(),this.setInterval(Tc),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=ci.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=ci.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case ci.WAITING_LEVEL:{const{levels:t,level:r}=this,i=t==null?void 0:t[r],s=i==null?void 0:i.details;if(s&&(!s.live||this.levelLastLoaded===i)){if(this.waitForCdnTuneIn(s))break;this.state=ci.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=ci.IDLE;break}break}case ci.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),r=this.retryDate;if(!r||t>=r||(e=this.media)!=null&&e.seeking){const{levels:i,level:s}=this,l=i==null?void 0:i[s];this.resetStartWhenNotLoaded(l||null),this.state=ci.IDLE}}break}this.state===ci.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:r,media:i}=this;if(t===null||!i&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const s=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[s]))return;const l=r[s],x=this.getMainFwdBufferInfo();if(x===null)return;const j=this.getLevelDetails();if(j&&this._streamEnded(x,j)){const Ct={};this.altAudio&&(Ct.type="video"),this.hls.trigger(a.BUFFER_EOS,Ct),this.state=ci.ENDED;return}if(!this.buffering)return;e.loadLevel!==s&&e.manualLevel===-1&&this.log(`Adapting to level ${s} from level ${this.level}`),this.level=e.nextLoadLevel=s;const q=l.details;if(!q||this.state===ci.WAITING_LEVEL||q.live&&this.levelLastLoaded!==l){this.level=s,this.state=ci.WAITING_LEVEL;return}const Ae=x.len,Oe=this.getMaxBufferLength(l.maxBitrate);if(Ae>=Oe)return;this.backtrackFragment&&this.backtrackFragment.start>x.end&&(this.backtrackFragment=null);const Ye=this.backtrackFragment?this.backtrackFragment.start:x.end;let Xe=this.getNextFragment(Ye,q);if(this.couldBacktrack&&!this.fragPrevious&&Xe&&Xe.sn!=="initSegment"&&this.fragmentTracker.getState(Xe)!==wa.OK){var lt;const Tt=((lt=this.backtrackFragment)!=null?lt:Xe).sn-q.startSN,vr=q.fragments[Tt-1];vr&&Xe.cc===vr.cc&&(Xe=vr,this.fragmentTracker.removeFragment(vr))}else this.backtrackFragment&&x.len&&(this.backtrackFragment=null);if(Xe&&this.isLoopLoading(Xe,Ye)){if(!Xe.gap){const Tt=this.audioOnly&&!this.altAudio?me.AUDIO:me.VIDEO,vr=(Tt===me.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;vr&&this.afterBufferFlushed(vr,Tt,jt.MAIN)}Xe=this.getNextFragmentLoopLoading(Xe,q,x,jt.MAIN,Oe)}Xe&&(Xe.initSegment&&!Xe.initSegment.data&&!this.bitrateTest&&(Xe=Xe.initSegment),this.loadFragment(Xe,l,Ye))}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===wa.NOT_LOADED||i===wa.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):(this.startFragRequested=!0,super.loadFragment(e,t,r)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,jt.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let r;const i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const s=this.getLevelDetails();if(s!=null&&s.live){const x=this.getMainFwdBufferInfo();if(!x||x.len<s.targetduration*2)return}if(!t.paused&&e){const x=this.hls.nextLoadLevel,j=e[x],q=this.fragLastKbps;q&&this.fragCurrent?r=this.fragCurrent.duration*j.maxBitrate/(1e3*q)+1:r=0}else r=0;const l=this.getBufferedFrag(t.currentTime+r);if(l){const x=this.followingBufferedFrag(l);if(x){this.abortCurrentFrag();const j=x.maxStartPTS?x.maxStartPTS:x.start,q=x.duration,Ae=Math.max(l.end,j+Math.min(Math.max(q-this.config.maxFragLookUpTolerance,q*(this.couldBacktrack?.5:.125)),q*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(Ae,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case ci.KEY_LOADING:case ci.FRAG_LOADING:case ci.FRAG_LOADING_WAITING_RETRY:case ci.PARSING:case ci.PARSED:this.state=ci.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const r=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new gc(this.config,r,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;o(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const r=this.getMainFwdBufferInfo();if(r===null||r.len===0){this.warn(`Main forward buffer length on "seeked" event ${r?r.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(a.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let r=!1,i=!1;t.levels.forEach(s=>{const l=s.audioCodec;l&&(r=r||l.indexOf("mp4a.40.2")!==-1,i=i||l.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&i&&!Cu(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:r}=this;if(!r||this.state!==ci.IDLE)return;const i=r[t.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=ci.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:i}=this,s=t.level,l=t.details,x=l.totalduration;if(!i){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${x}`);const j=i[s],q=this.fragCurrent;q&&(this.state===ci.FRAG_LOADING||this.state===ci.FRAG_LOADING_WAITING_RETRY)&&q.level!==t.level&&q.loader&&this.abortCurrentFrag();let Ae=0;if(l.live||(r=j.details)!=null&&r.live){var Oe;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;Ae=this.alignPlaylists(l,j.details,(Oe=this.levelLastLoaded)==null?void 0:Oe.details)}if(j.details=l,this.levelLastLoaded=j,this.hls.trigger(a.LEVEL_UPDATED,{details:l,level:s}),this.state===ci.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=ci.IDLE}this.startFragRequested?l.live&&this.synchronizeToLiveEdge(l):this.setStartPosition(l,Ae),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:i,payload:s}=e,{levels:l}=this;if(!l){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const x=l[r.level],j=x.details;if(!j){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const q=x.videoCodec,Ae=j.PTSKnown||!j.live,Oe=(t=r.initSegment)==null?void 0:t.data,Ye=this._getAudioCodec(x),Xe=this.transmuxer=this.transmuxer||new fn(this.hls,jt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),lt=i?i.index:-1,Ct=lt!==-1,Tt=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,lt,Ct),vr=this.initPTS[r.cc];Xe.push(s,Oe,Ye,q,r,i,j.totalduration,Ae,Tt,vr)}onAudioTrackSwitching(e,t){const r=this.altAudio;if(!!!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const l=this.fragCurrent;l&&(this.log("Switching to main audio track, cancel main fragment load"),l.abortRequests(),this.fragmentTracker.removeFragment(l)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const s=this.hls;r&&(s.trigger(a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),s.trigger(a.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=t.id,i=!!this.hls.audioTracks[r].url;if(i){const s=this.videoBuffer;s&&this.mediaBuffer!==s&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=s)}this.altAudio=i,this.tick()}onBufferCreated(e,t){const r=t.tracks;let i,s,l=!1;for(const x in r){const j=r[x];if(j.id==="main"){if(s=x,i=j,x==="video"){const q=r[x];q&&(this.videoBuffer=q.buffer)}}else l=!0}l&&i?(this.log(`Alternate track found, use ${s}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:i}=t;if(r&&r.type!==jt.MAIN)return;if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===ci.PARSED&&(this.state=ci.IDLE);return}const s=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*s.total/(s.buffering.end-s.loading.first)),r.sn!=="initSegment"&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}onError(e,t){var r;if(t.fatal){this.state=ci.ERROR;return}switch(t.details){case m.FRAG_GAP:case m.FRAG_PARSING_ERROR:case m.FRAG_DECRYPT_ERROR:case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(jt.MAIN,t);break;case m.LEVEL_LOAD_ERROR:case m.LEVEL_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===ci.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===vn.LEVEL&&(this.state=ci.IDLE);break;case m.BUFFER_APPEND_ERROR:case m.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===m.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case m.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Xa.getBuffered(e).length){const r=this.state!==ci.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=ci.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==me.AUDIO||this.audioOnly&&!this.altAudio){const r=(t===me.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,t,jt.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let r=this.startPosition;if(r>=0&&t<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${t}`);return}const i=Xa.getBuffered(e),l=(i.length?i.start(0):0)-r;l>0&&(l<this.config.maxBufferHole||l<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${l} to match buffer start`),r+=l,this.startPosition=r),this.log(`seek to target start position ${r} from current time ${t}`),e.currentTime=r}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(r=>{const{hls:i}=this;if(!r||this.fragContextChanged(e))return;t.fragmentError=0,this.state=ci.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=e.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),i.trigger(a.FRAG_LOADED,r),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const r="main",{hls:i}=this,{remuxResult:s,chunkMeta:l}=e,x=this.getCurrentContext(l);if(!x){this.resetWhenMissingContext(l);return}const{frag:j,part:q,level:Ae}=x,{video:Oe,text:Ye,id3:Xe,initSegment:lt}=s,{details:Ct}=Ae,Tt=this.altAudio?void 0:s.audio;if(this.fragContextChanged(j)){this.fragmentTracker.removeFragment(j);return}if(this.state=ci.PARSING,lt){if(lt!=null&<.tracks){const Or=j.initSegment||j;this._bufferInitSegment(Ae,lt.tracks,Or,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Or,id:r,tracks:lt.tracks})}const vr=lt.initPTS,Nr=lt.timescale;o(vr)&&(this.initPTS[j.cc]={baseTime:vr,timescale:Nr},i.trigger(a.INIT_PTS_FOUND,{frag:j,id:r,initPTS:vr,timescale:Nr}))}if(Oe&&Ct&&j.sn!=="initSegment"){const vr=Ct.fragments[j.sn-1-Ct.startSN],Nr=j.sn===Ct.startSN,Or=!vr||j.cc>vr.cc;if(s.independent!==!1){const{startPTS:Un,endPTS:cn,startDTS:gi,endDTS:zn}=Oe;if(q)q.elementaryStreams[Oe.type]={startPTS:Un,endPTS:cn,startDTS:gi,endDTS:zn};else if(Oe.firstKeyFrame&&Oe.independent&&l.id===1&&!Or&&(this.couldBacktrack=!0),Oe.dropped&&Oe.independent){const Ii=this.getMainFwdBufferInfo(),ea=(Ii?Ii.end:this.getLoadPosition())+this.config.maxBufferHole,mi=Oe.firstKeyFramePTS?Oe.firstKeyFramePTS:Un;if(!Nr&&ea<mi-this.config.maxBufferHole&&!Or){this.backtrack(j);return}else Or&&(j.gap=!0);j.setElementaryStreamInfo(Oe.type,j.start,cn,j.start,zn,!0)}else Nr&&Un>Qu&&(j.gap=!0);j.setElementaryStreamInfo(Oe.type,Un,cn,gi,zn),this.backtrackFragment&&(this.backtrackFragment=j),this.bufferFragmentData(Oe,j,q,l,Nr||Or)}else if(Nr||Or)j.gap=!0;else{this.backtrack(j);return}}if(Tt){const{startPTS:vr,endPTS:Nr,startDTS:Or,endDTS:Un}=Tt;q&&(q.elementaryStreams[me.AUDIO]={startPTS:vr,endPTS:Nr,startDTS:Or,endDTS:Un}),j.setElementaryStreamInfo(me.AUDIO,vr,Nr,Or,Un),this.bufferFragmentData(Tt,j,q,l)}if(Ct&&Xe!=null&&(t=Xe.samples)!=null&&t.length){const vr={id:r,frag:j,details:Ct,samples:Xe.samples};i.trigger(a.FRAG_PARSING_METADATA,vr)}if(Ct&&Ye){const vr={id:r,frag:j,details:Ct,samples:Ye.samples};i.trigger(a.FRAG_PARSING_USERDATA,vr)}}_bufferInitSegment(e,t,r,i){if(this.state!==ci.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:s,video:l,audiovideo:x}=t;if(s){let j=e.audioCodec;const q=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){j&&(j.indexOf("mp4a.40.5")!==-1?j="mp4a.40.2":j="mp4a.40.5");const Ae=s.metadata;Ae&&"channelCount"in Ae&&(Ae.channelCount||1)!==1&&q.indexOf("firefox")===-1&&(j="mp4a.40.5")}j&&j.indexOf("mp4a.40.5")!==-1&&q.indexOf("android")!==-1&&s.container!=="audio/mpeg"&&(j="mp4a.40.2",this.log(`Android: force audio codec to ${j}`)),e.audioCodec&&e.audioCodec!==j&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${j}"`),s.levelCodec=j,s.id="main",this.log(`Init audio buffer, container:${s.container}, codecs[selected/level/parsed]=[${j||""}/${e.audioCodec||""}/${s.codec}]`)}l&&(l.levelCodec=e.videoCodec,l.id="main",this.log(`Init video buffer, container:${l.container}, codecs[level/parsed]=[${e.videoCodec||""}/${l.codec}]`)),x&&this.log(`Init audiovideo buffer, container:${x.container}, codecs[level/parsed]=[${e.codecs}/${x.codec}]`),this.hls.trigger(a.BUFFER_CODECS,t),Object.keys(t).forEach(j=>{const Ae=t[j].initSegment;Ae!=null&&Ae.byteLength&&this.hls.trigger(a.BUFFER_APPENDING,{type:j,data:Ae,frag:r,part:null,chunkMeta:i,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,jt.MAIN)}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=ci.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(Xa.isBuffered(e,r)?t=this.getAppendedFrag(r):Xa.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;const i=this.fragPlaying,s=t.level;(!i||t.sn!==i.sn||i.level!==s)&&(this.fragPlaying=t,this.hls.trigger(a.FRAG_CHANGED,{frag:t}),(!i||i.level!==s)&&this.hls.trigger(a.LEVEL_SWITCHED,{level:s}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,r=this.currentFrag;if(r&&o(t)&&o(r.programDateTime)){const i=r.programDateTime+(t-r.start)*1e3;return new Date(i)}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class Al{static get version(){return"1.5.20"}static isMSESupported(){return su()}static isSupported(){return mc()}static getMediaSource(){return Vn()}static get Events(){return a}static get ErrorTypes(){return A}static get ErrorDetails(){return m}static get DefaultConfig(){return Al.defaultConfig?Al.defaultConfig:pl}static set DefaultConfig(e){Al.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Xr,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ee(e.debug||!1,"Hls instance");const t=this.config=Cc(Al.DefaultConfig,e);this.userConfig=e,t.progressive&&jl(t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:x}=t,j=new l(this),q=this.abrController=new r(this),Ae=this.bufferController=new i(this),Oe=this.capLevelController=new s(this),Ye=new x(this),Xe=new Ei(this),lt=new Qa(this),Ct=t.contentSteeringController,Tt=Ct?new Ct(this):null,vr=this.levelController=new ul(this,Tt),Nr=new Ys(this),Or=new Uu(this.config),Un=this.streamController=new ec(this,Nr,Or);Oe.setStreamController(Un),Ye.setStreamController(Un);const cn=[Xe,vr,Un];Tt&&cn.splice(1,0,Tt),this.networkControllers=cn;const gi=[q,Ae,Oe,Ye,lt,Nr];this.audioTrackController=this.createController(t.audioTrackController,cn);const zn=t.audioStreamController;zn&&cn.push(new zn(this,Nr,Or)),this.subtitleTrackController=this.createController(t.subtitleTrackController,cn);const Ii=t.subtitleStreamController;Ii&&cn.push(new Ii(this,Nr,Or)),this.createController(t.timelineController,gi),Or.emeController=this.emeController=this.createController(t.emeController,gi),this.cmcdController=this.createController(t.cmcdController,gi),this.latencyController=this.createController(_s,gi),this.coreComponents=gi,cn.push(j);const ea=j.onErrorOut;typeof ea=="function"&&this.on(a.ERROR,ea,j)}createController(e,t){if(e){const r=new e(this);return t&&t.push(r),r}return null}on(e,t,r=this){this._emitter.on(e,t,r)}once(e,t,r=this){this._emitter.once(e,t,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,r=this,i){this._emitter.off(e,t,r,i)}listeners(e){return this._emitter.listeners(e)}emit(e,t,r){return this._emitter.emit(e,t,r)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(r){if(B.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=e===a.ERROR;this.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,fatal:i,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){B.log("destroy"),this.trigger(a.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){B.log("attachMedia"),this._media=e,this.trigger(a.MEDIA_ATTACHING,{media:e})}detachMedia(){B.log("detachMedia"),this.trigger(a.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,r=this.url,i=this.url=se.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,B.log(`loadSource:${i}`),t&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(a.MANIFEST_LOADING,{url:e})}startLoad(e=-1){B.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){B.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){B.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){B.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){B.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){B.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){B.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){B.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){B.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){B.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){B.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(B.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Da(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const r=e.length;for(let i=0;i<r;i++)if(e[i].maxBitrate>=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let i;if(t===-1&&e!=null&&e.length?i=e.length-1:i=t,r)for(let s=i;s--;){const l=e[s].attrs["HDCP-LEVEL"];if(l&&l<=r)return s}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Al.defaultConfig=void 0},16722:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});const we=n=>typeof n=="object"&&n!=null&&n.nodeType===1,De=(n,o)=>(!o||n!=="hidden")&&n!=="visible"&&n!=="clip",se=(n,o)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const L=getComputedStyle(n,null);return De(L.overflowY,o)||De(L.overflowX,o)||(p=>{const a=(A=>{if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(m){return null}})(p);return!!a&&(a.clientHeight<p.scrollHeight||a.clientWidth<p.scrollWidth)})(n)}return!1},Me=(n,o,L,p,a,A,m,S)=>A<n&&m>o||A>n&&m<o?0:A<=n&&S<=L||m>=o&&S>=L?A-n-p:m>o&&S<L||A<n&&S>L?m-o+a:0,ie=n=>{const o=n.parentElement;return o==null?n.getRootNode().host||null:o},Y=(n,o)=>{var L,p,a,A;if(typeof document=="undefined")return[];const{scrollMode:m,block:S,inline:$,boundary:F,skipOverflowHiddenElements:H}=o,V=typeof F=="function"?F:at=>at!==F;if(!we(n))throw new TypeError("Invalid target");const ee=document.scrollingElement||document.documentElement,B=[];let G=n;for(;we(G)&&V(G);){if(G=ie(G),G===ee){B.push(G);break}G!=null&&G===document.body&&se(G)&&!se(document.documentElement)||G!=null&&se(G,H)&&B.push(G)}const le=(p=(L=window.visualViewport)==null?void 0:L.width)!=null?p:innerWidth,J=(A=(a=window.visualViewport)==null?void 0:a.height)!=null?A:innerHeight,{scrollX:be,scrollY:Ce}=window,{height:Re,width:ae,top:me,right:T,bottom:Ee,left:oe}=n.getBoundingClientRect(),{top:he,right:ve,bottom:_,left:P}=(at=>{const nt=window.getComputedStyle(at);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(n);let X=S==="start"||S==="nearest"?me-he:S==="end"?Ee+_:me+Re/2-he+_,pe=$==="center"?oe+ae/2-P+ve:$==="end"?T+ve:oe-P;const Je=[];for(let at=0;at<B.length;at++){const nt=B[at],{height:Lt,width:ur,top:Jt,right:We,bottom:Cr,left:Er}=nt.getBoundingClientRect();if(m==="if-needed"&&me>=0&&oe>=0&&Ee<=J&&T<=le&&(nt===ee&&!se(nt)||me>=Jt&&Ee<=Cr&&oe>=Er&&T<=We))return Je;const Kr=getComputedStyle(nt),_r=parseInt(Kr.borderLeftWidth,10),Se=parseInt(Kr.borderTopWidth,10),Nt=parseInt(Kr.borderRightWidth,10),z=parseInt(Kr.borderBottomWidth,10);let v=0,h=0;const D="offsetWidth"in nt?nt.offsetWidth-nt.clientWidth-_r-Nt:0,fe="offsetHeight"in nt?nt.offsetHeight-nt.clientHeight-Se-z:0,Z="offsetWidth"in nt?nt.offsetWidth===0?0:ur/nt.offsetWidth:0,N="offsetHeight"in nt?nt.offsetHeight===0?0:Lt/nt.offsetHeight:0;if(ee===nt)v=S==="start"?X:S==="end"?X-J:S==="nearest"?Me(Ce,Ce+J,J,Se,z,Ce+X,Ce+X+Re,Re):X-J/2,h=$==="start"?pe:$==="center"?pe-le/2:$==="end"?pe-le:Me(be,be+le,le,_r,Nt,be+pe,be+pe+ae,ae),v=Math.max(0,v+Ce),h=Math.max(0,h+be);else{v=S==="start"?X-Jt-Se:S==="end"?X-Cr+z+fe:S==="nearest"?Me(Jt,Cr,Lt,Se,z+fe,X,X+Re,Re):X-(Jt+Lt/2)+fe/2,h=$==="start"?pe-Er-_r:$==="center"?pe-(Er+ur/2)+D/2:$==="end"?pe-We+Nt+D:Me(Er,We,ur,_r,Nt+D,pe,pe+ae,ae);const{scrollLeft:te,scrollTop:Te}=nt;v=N===0?0:Math.max(0,Math.min(Te+v/N,nt.scrollHeight-Lt/N+fe)),h=Z===0?0:Math.max(0,Math.min(te+h/Z,nt.scrollWidth-ur/Z+D)),X+=Te-v,pe+=te-h}Je.push({el:nt,top:v,left:h})}return Je},O=n=>n===!1?{block:"end",inline:"nearest"}:(o=>o===Object(o)&&Object.keys(o).length!==0)(n)?n:{block:"start",inline:"nearest"};function I(n,o){if(!n.isConnected||!(a=>{let A=a;for(;A&&A.parentNode;){if(A.parentNode===document)return!0;A=A.parentNode instanceof ShadowRoot?A.parentNode.host:A.parentNode}return!1})(n))return;const L=(a=>{const A=window.getComputedStyle(a);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(n);if((a=>typeof a=="object"&&typeof a.behavior=="function")(o))return o.behavior(Y(n,o));const p=typeof o=="boolean"||o==null?void 0:o.behavior;for(const{el:a,top:A,left:m}of Y(n,O(o))){const S=A-L.top+L.bottom,$=m-L.left+L.right;a.scroll({top:S,left:$,behavior:p})}}}}]);
|
|
|
}()); |