|
|
!(function(){var GA=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2303],{70557:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},27812:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},89489:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},59477:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},40001:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},26227:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},49198:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},84105:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},18785:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},87169:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},73331:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},15277:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},52671:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},8657:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},56082:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},33853:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},15075:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},43531:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},61485:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},38819:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},47472:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},95869:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},87395:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),I=O},35593:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return St}});var we=g(33708),Fe=g(33606),se=g(37061),ke=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(92413),S=g(77900),$=g(8654);function F(G){var v=G.prefixCls,f=G.align,D=G.arrow,fe=G.arrowPos,W=D||{},P=W.className,te=W.content,Ie=fe.x,Te=Ie===void 0?0:Ie,Se=fe.y,Ge=Se===void 0?0:Se,dt=A.useRef();if(!f||!f.points)return null;var Ke={position:"absolute"};if(f.autoArrow!==!1){var Xe=f.points[0],At=f.points[1],We=Xe[0],$e=Xe[1],Bt=At[0],Kt=At[1];We===Bt||!["t","b"].includes(We)?Ke.top=Ge:We==="t"?Ke.top=0:Ke.bottom=0,$e===Kt||!["l","r"].includes($e)?Ke.left=Te:$e==="l"?Ke.left=0:Ke.right=0}return A.createElement("div",{ref:dt,className:Y()("".concat(v,"-arrow"),P),style:Ke},te)}function H(G){var v=G.prefixCls,f=G.open,D=G.zIndex,fe=G.mask,W=G.motion;return fe?A.createElement(S.default,(0,m.Z)({},W,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(P){var te=P.className;return A.createElement("div",{style:{zIndex:D},className:Y()("".concat(v,"-mask"),te)})}):null}var V=A.memo(function(G){var v=G.children;return v},function(G,v){return v.cache}),ee=V,B=A.forwardRef(function(G,v){var f=G.popup,D=G.className,fe=G.prefixCls,W=G.style,P=G.target,te=G.onVisibleChanged,Ie=G.open,Te=G.keepDom,Se=G.fresh,Ge=G.onClick,dt=G.mask,Ke=G.arrow,Xe=G.arrowPos,At=G.align,We=G.motion,$e=G.maskMotion,Bt=G.forceRender,Kt=G.getPopupContainer,Mt=G.autoDestroy,br=G.portal,vr=G.zIndex,re=G.onMouseEnter,ue=G.onMouseLeave,rr=G.onPointerEnter,Me=G.ready,ot=G.offsetX,Zr=G.offsetY,Tt=G.offsetR,Yt=G.offsetB,Gt=G.onAlign,nt=G.onPrepare,ct=G.stretch,pt=G.targetWidth,Zt=G.targetHeight,Oe=typeof f=="function"?f():f,fn=Ie||Te,Nt=(Kt==null?void 0:Kt.length)>0,Ln=A.useState(!Kt||!Nt),Vn=(0,Fe.Z)(Ln,2),yi=Vn[0],Ki=Vn[1];if((0,p.Z)(function(){!yi&&Nt&&P&&Ki(!0)},[yi,Nt,P]),!yi)return null;var jn="auto",kn={left:"-1000vw",top:"-1000vh",right:jn,bottom:jn};if(Me||!Ie){var qt,zr=At.points,Jr=At.dynamicInset||((qt=At._experimental)===null||qt===void 0?void 0:qt.dynamicInset),Ot=Jr&&zr[0][1]==="r",Ct=Jr&&zr[0][0]==="b";Ot?(kn.right=Tt,kn.left=jn):(kn.left=ot,kn.right=jn),Ct?(kn.bottom=Yt,kn.top=jn):(kn.top=Zr,kn.bottom=jn)}var Ir={};return ct&&(ct.includes("height")&&Zt?Ir.height=Zt:ct.includes("minHeight")&&Zt&&(Ir.minHeight=Zt),ct.includes("width")&&pt?Ir.width=pt:ct.includes("minWidth")&&pt&&(Ir.minWidth=pt)),Ie||(Ir.pointerEvents="none"),A.createElement(br,{open:Bt||fn,getContainer:Kt&&function(){return Kt(P)},autoDestroy:Mt},A.createElement(H,{prefixCls:fe,open:Ie,zIndex:vr,mask:dt,motion:$e}),A.createElement(O.Z,{onResize:Gt,disabled:!Ie},function(Fr){return A.createElement(S.default,(0,m.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Bt,leavedClassName:"".concat(fe,"-hidden")},We,{onAppearPrepare:nt,onEnterPrepare:nt,visible:Ie,onVisibleChanged:function(tn){var Bn;We==null||(Bn=We.onVisibleChanged)===null||Bn===void 0||Bn.call(We,tn),te(tn)}}),function(Tn,tn){var Bn=Tn.className,gn=Tn.style,zn=Y()(fe,Bn,D);return A.createElement("div",{ref:(0,$.sQ)(Fr,v,tn),className:zn,style:(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({"--arrow-x":"".concat(Xe.x||0,"px"),"--arrow-y":"".concat(Xe.y||0,"px")},kn),Ir),gn),{},{boxSizing:"border-box",zIndex:vr},W),onMouseEnter:re,onMouseLeave:ue,onPointerEnter:rr,onClick:Ge},Ke&&A.createElement(F,{prefixCls:fe,arrow:Ke,arrowPos:Xe,align:At}),A.createElement(ee,{cache:!Ie&&!Se},Oe))})}))}),z=B,le=A.forwardRef(function(G,v){var f=G.children,D=G.getTriggerDOMNode,fe=(0,$.Yr)(f),W=A.useCallback(function(te){(0,$.mH)(v,D?D(te):te)},[D]),P=(0,$.x1)(W,f.ref);return fe?A.cloneElement(f,{ref:P}):f}),J=le,be=A.createContext(null),Ce=be;function Le(G){return G?Array.isArray(G)?G:[G]:[]}function ae(G,v,f,D){return A.useMemo(function(){var fe=Le(f!=null?f:v),W=Le(D!=null?D:v),P=new Set(fe),te=new Set(W);return G&&(P.has("hover")&&(P.delete("hover"),P.add("click")),te.has("hover")&&(te.delete("hover"),te.add("click"))),[P,te]},[G,v,f,D])}var me=g(29194);function T(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?G[0]===v[0]:G[0]===v[0]&&G[1]===v[1]}function Ee(G,v,f,D){for(var fe=f.points,W=Object.keys(G),P=0;P<W.length;P+=1){var te,Ie=W[P];if(T((te=G[Ie])===null||te===void 0?void 0:te.points,fe,D))return"".concat(v,"-placement-").concat(Ie)}return""}function oe(G,v,f,D){return v||(f?{motionName:"".concat(G,"-").concat(f)}:D?{motionName:D}:null)}function he(G){return G.ownerDocument.defaultView}function ve(G){for(var v=[],f=G==null?void 0:G.parentElement,D=["hidden","scroll","clip","auto"];f;){var fe=he(f).getComputedStyle(f),W=fe.overflowX,P=fe.overflowY,te=fe.overflow;[W,P,te].some(function(Ie){return D.includes(Ie)})&&v.push(f),f=f.parentElement}return v}function _(G){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(G)?v:G}function N(G){return _(parseFloat(G),0)}function X(G,v){var f=(0,we.Z)({},G);return(v||[]).forEach(function(D){if(!(D instanceof HTMLBodyElement||D instanceof HTMLHtmlElement)){var fe=he(D).getComputedStyle(D),W=fe.overflow,P=fe.overflowClipMargin,te=fe.borderTopWidth,Ie=fe.borderBottomWidth,Te=fe.borderLeftWidth,Se=fe.borderRightWidth,Ge=D.getBoundingClientRect(),dt=D.offsetHeight,Ke=D.clientHeight,Xe=D.offsetWidth,At=D.clientWidth,We=N(te),$e=N(Ie),Bt=N(Te),Kt=N(Se),Mt=_(Math.round(Ge.width/Xe*1e3)/1e3),br=_(Math.round(Ge.height/dt*1e3)/1e3),vr=(Xe-At-Bt-Kt)*Mt,re=(dt-Ke-We-$e)*br,ue=We*br,rr=$e*br,Me=Bt*Mt,ot=Kt*Mt,Zr=0,Tt=0;if(W==="clip"){var Yt=N(P);Zr=Yt*Mt,Tt=Yt*br}var Gt=Ge.x+Me-Zr,nt=Ge.y+ue-Tt,ct=Gt+Ge.width+2*Zr-Me-ot-vr,pt=nt+Ge.height+2*Tt-ue-rr-re;f.left=Math.max(f.left,Gt),f.top=Math.max(f.top,nt),f.right=Math.min(f.right,ct),f.bottom=Math.min(f.bottom,pt)}}),f}function pe(G){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(v),D=f.match(/^(.*)\%$/);return D?G*(parseFloat(D[1])/100):parseFloat(f)}function qe(G,v){var f=v||[],D=(0,Fe.Z)(f,2),fe=D[0],W=D[1];return[pe(G.width,fe),pe(G.height,W)]}function at(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[G[0],G[1]]}function rt(G,v){var f=v[0],D=v[1],fe,W;return f==="t"?W=G.y:f==="b"?W=G.y+G.height:W=G.y+G.height/2,D==="l"?fe=G.x:D==="r"?fe=G.x+G.width:fe=G.x+G.width/2,{x:fe,y:W}}function Rt(G,v){var f={t:"b",b:"t",l:"r",r:"l"};return G.map(function(D,fe){return fe===v?f[D]||"c":D}).join("")}function lr(G,v,f,D,fe,W,P){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]||{}}),Ie=(0,Fe.Z)(te,2),Te=Ie[0],Se=Ie[1],Ge=A.useRef(0),dt=A.useMemo(function(){return v?ve(v):[]},[v]),Ke=A.useRef({}),Xe=function(){Ke.current={}};G||Xe();var At=(0,o.Z)(function(){if(v&&f&&G){let ji=function(ba,ka){var Rs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zn,As=Oe.x+ba,Es=Oe.y+ka,is=As+qt,So=Es+kn,go=Math.max(As,Rs.left),eo=Math.max(Es,Rs.top),zs=Math.min(is,Rs.right),Os=Math.min(So,Rs.bottom);return Math.max(0,(zs-go)*(Os-eo))},Ui=function(){Fn=Oe.y+En,Gn=Fn+kn,Ci=Oe.x+Tr,ki=Ci+qt};var Bt,Kt,Mt=v,br=Mt.ownerDocument,vr=he(Mt),re=vr.getComputedStyle(Mt),ue=re.width,rr=re.height,Me=re.position,ot=Mt.style.left,Zr=Mt.style.top,Tt=Mt.style.right,Yt=Mt.style.bottom,Gt=Mt.style.overflow,nt=(0,we.Z)((0,we.Z)({},fe[D]),W),ct=br.createElement("div");(Bt=Mt.parentElement)===null||Bt===void 0||Bt.appendChild(ct),ct.style.left="".concat(Mt.offsetLeft,"px"),ct.style.top="".concat(Mt.offsetTop,"px"),ct.style.position=Me,ct.style.height="".concat(Mt.offsetHeight,"px"),ct.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 pt;if(Array.isArray(f))pt={x:f[0],y:f[1],width:0,height:0};else{var Zt=f.getBoundingClientRect();pt={x:Zt.x,y:Zt.y,width:Zt.width,height:Zt.height}}var Oe=Mt.getBoundingClientRect(),fn=br.documentElement,Nt=fn.clientWidth,Ln=fn.clientHeight,Vn=fn.scrollWidth,yi=fn.scrollHeight,Ki=fn.scrollTop,jn=fn.scrollLeft,kn=Oe.height,qt=Oe.width,zr=pt.height,Jr=pt.width,Ot={left:0,top:0,right:Nt,bottom:Ln},Ct={left:-jn,top:-Ki,right:Vn-jn,bottom:yi-Ki},Ir=nt.htmlRegion,Fr="visible",Tn="visibleFirst";Ir!=="scroll"&&Ir!==Tn&&(Ir=Fr);var tn=Ir===Tn,Bn=X(Ct,dt),gn=X(Ot,dt),zn=Ir===Fr?gn:Bn,Xn=tn?gn:zn;Mt.style.left="auto",Mt.style.top="auto",Mt.style.right="0",Mt.style.bottom="0";var Qr=Mt.getBoundingClientRect();Mt.style.left=ot,Mt.style.top=Zr,Mt.style.right=Tt,Mt.style.bottom=Yt,Mt.style.overflow=Gt,(Kt=Mt.parentElement)===null||Kt===void 0||Kt.removeChild(ct);var Gr=_(Math.round(qt/parseFloat(ue)*1e3)/1e3),Sn=_(Math.round(kn/parseFloat(rr)*1e3)/1e3);if(Gr===0||Sn===0||(0,I.Sh)(f)&&!(0,me.Z)(f))return;var On=nt.offset,Qn=nt.targetOffset,Jn=qe(Oe,On),Ni=(0,Fe.Z)(Jn,2),li=Ni[0],vn=Ni[1],hr=qe(pt,Qn),wr=(0,Fe.Z)(hr,2),Or=wr[0],Hr=wr[1];pt.x-=Or,pt.y-=Hr;var Ur=nt.points||[],on=(0,Fe.Z)(Ur,2),en=on[0],Hn=on[1],ti=at(Hn),ui=at(en),Ri=rt(pt,ti),Oi=rt(Oe,ui),Qi=(0,we.Z)({},nt),Tr=Ri.x-Oi.x+li,En=Ri.y-Oi.y+vn,hn=ji(Tr,En),Ai=ji(Tr,En,gn),si=rt(pt,["t","l"]),ri=rt(Oe,["t","l"]),wi=rt(pt,["b","r"]),Ti=rt(Oe,["b","r"]),Bi=nt.overflow||{},zi=Bi.adjustX,oa=Bi.adjustY,Ei=Bi.shiftX,wn=Bi.shiftY,Ht=function(ka){return typeof ka=="boolean"?ka:ka>=0},Fn,Gn,Ci,ki;Ui();var Aa=Ht(oa),Ca=ui[0]===ti[0];if(Aa&&ui[0]==="t"&&(Gn>Xn.bottom||Ke.current.bt)){var ta=En;Ca?ta-=kn-zr:ta=si.y-Ti.y-vn;var xa=ji(Tr,ta),La=ji(Tr,ta,gn);xa>hn||xa===hn&&(!tn||La>=Ai)?(Ke.current.bt=!0,En=ta,vn=-vn,Qi.points=[Rt(ui,0),Rt(ti,0)]):Ke.current.bt=!1}if(Aa&&ui[0]==="b"&&(Fn<Xn.top||Ke.current.tb)){var hi=En;Ca?hi+=kn-zr:hi=wi.y-ri.y-vn;var bi=ji(Tr,hi),Hi=ji(Tr,hi,gn);bi>hn||bi===hn&&(!tn||Hi>=Ai)?(Ke.current.tb=!0,En=hi,vn=-vn,Qi.points=[Rt(ui,0),Rt(ti,0)]):Ke.current.tb=!1}var ha=Ht(zi),Na=ui[1]===ti[1];if(ha&&ui[1]==="l"&&(ki>Xn.right||Ke.current.rl)){var ci=Tr;Na?ci-=qt-Jr:ci=si.x-Ti.x-li;var pa=ji(ci,En),va=ji(ci,En,gn);pa>hn||pa===hn&&(!tn||va>=Ai)?(Ke.current.rl=!0,Tr=ci,li=-li,Qi.points=[Rt(ui,1),Rt(ti,1)]):Ke.current.rl=!1}if(ha&&ui[1]==="r"&&(Ci<Xn.left||Ke.current.lr)){var Ha=Tr;Na?Ha+=qt-Jr:Ha=wi.x-ri.x-li;var Is=ji(Ha,En),Wa=ji(Ha,En,gn);Is>hn||Is===hn&&(!tn||Wa>=Ai)?(Ke.current.lr=!0,Tr=Ha,li=-li,Qi.points=[Rt(ui,1),Rt(ti,1)]):Ke.current.lr=!1}Ui();var Fa=Ei===!0?0:Ei;typeof Fa=="number"&&(Ci<gn.left&&(Tr-=Ci-gn.left-li,pt.x+Jr<gn.left+Fa&&(Tr+=pt.x-gn.left+Jr-Fa)),ki>gn.right&&(Tr-=ki-gn.right-li,pt.x>gn.right-Fa&&(Tr+=pt.x-gn.right+Fa)));var Mi=wn===!0?0:wn;typeof Mi=="number"&&(Fn<gn.top&&(En-=Fn-gn.top-vn,pt.y+zr<gn.top+Mi&&(En+=pt.y-gn.top+zr-Mi)),Gn>gn.bottom&&(En-=Gn-gn.bottom-vn,pt.y>gn.bottom-Mi&&(En+=pt.y-gn.bottom+Mi)));var la=Oe.x+Tr,ms=la+qt,ss=Oe.y+En,ns=ss+kn,Wi=pt.x,gs=Wi+Jr,ia=pt.y,co=ia+zr,Qs=Math.max(la,Wi),_o=Math.min(ms,gs),hs=(Qs+_o)/2,Bo=hs-la,os=Math.max(ss,ia),Yn=Math.min(ns,co),Da=(os+Yn)/2,io=Da-ss;P==null||P(v,Qi);var Zi=Qr.right-Oe.x-(Tr+Oe.width),ea=Qr.bottom-Oe.y-(En+Oe.height);Se({ready:!0,offsetX:Tr/Gr,offsetY:En/Sn,offsetR:Zi/Gr,offsetB:ea/Sn,arrowX:Bo/Gr,arrowY:io/Sn,scaleX:Gr,scaleY:Sn,align:Qi})}}),We=function(){Ge.current+=1;var Kt=Ge.current;Promise.resolve().then(function(){Ge.current===Kt&&At()})},$e=function(){Se(function(Kt){return(0,we.Z)((0,we.Z)({},Kt),{},{ready:!1})})};return(0,p.Z)($e,[D]),(0,p.Z)(function(){G||$e()},[G]),[Te.ready,Te.offsetX,Te.offsetY,Te.offsetR,Te.offsetB,Te.arrowX,Te.arrowY,Te.scaleX,Te.scaleY,Te.align,We]}var Jt=g(26407);function Ze(G,v,f,D,fe){(0,p.Z)(function(){if(G&&v&&f){let Ge=function(){D(),fe()};var W=v,P=f,te=ve(W),Ie=ve(P),Te=he(P),Se=new Set([Te].concat((0,Jt.Z)(te),(0,Jt.Z)(Ie)));return Se.forEach(function(dt){dt.addEventListener("scroll",Ge,{passive:!0})}),Te.addEventListener("resize",Ge,{passive:!0}),D(),function(){Se.forEach(function(dt){dt.removeEventListener("scroll",Ge),Te.removeEventListener("resize",Ge)})}}},[G,v,f])}var Er=g(48736),Cr=g(16089);function Kr(G,v,f,D,fe,W,P,te){var Ie=A.useRef(G),Te=A.useRef(!1);Ie.current!==G&&(Te.current=!0,Ie.current=G),A.useEffect(function(){var Se=(0,Cr.Z)(function(){Te.current=!1});return function(){Cr.Z.cancel(Se)}},[G]),A.useEffect(function(){if(v&&D&&(!fe||W)){var Se=function(){var Me=!1,ot=function(Yt){var Gt=Yt.target;Me=P(Gt)},Zr=function(Yt){var Gt=Yt.target;!Te.current&&Ie.current&&!Me&&!P(Gt)&&te(!1)};return[ot,Zr]},Ge=Se(),dt=(0,Fe.Z)(Ge,2),Ke=dt[0],Xe=dt[1],At=Se(),We=(0,Fe.Z)(At,2),$e=We[0],Bt=We[1],Kt=he(D);Kt.addEventListener("mousedown",Ke,!0),Kt.addEventListener("click",Xe,!0),Kt.addEventListener("contextmenu",Xe,!0);var Mt=(0,n.A)(f);if(Mt&&(Mt.addEventListener("mousedown",$e,!0),Mt.addEventListener("click",Bt,!0),Mt.addEventListener("contextmenu",Bt,!0)),0)var br,vr,re,ue;return function(){Kt.removeEventListener("mousedown",Ke,!0),Kt.removeEventListener("click",Xe,!0),Kt.removeEventListener("contextmenu",Xe,!0),Mt&&(Mt.removeEventListener("mousedown",$e,!0),Mt.removeEventListener("click",Bt,!0),Mt.removeEventListener("contextmenu",Bt,!0))}}},[v,f,D,fe,W])}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 Ue(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ke.Z,v=A.forwardRef(function(f,D){var fe=f.prefixCls,W=fe===void 0?"rc-trigger-popup":fe,P=f.children,te=f.action,Ie=te===void 0?"hover":te,Te=f.showAction,Se=f.hideAction,Ge=f.popupVisible,dt=f.defaultPopupVisible,Ke=f.onPopupVisibleChange,Xe=f.afterPopupVisibleChange,At=f.mouseEnterDelay,We=f.mouseLeaveDelay,$e=We===void 0?.1:We,Bt=f.focusDelay,Kt=f.blurDelay,Mt=f.mask,br=f.maskClosable,vr=br===void 0?!0:br,re=f.getPopupContainer,ue=f.forceRender,rr=f.autoDestroy,Me=f.destroyPopupOnHide,ot=f.popup,Zr=f.popupClassName,Tt=f.popupStyle,Yt=f.popupPlacement,Gt=f.builtinPlacements,nt=Gt===void 0?{}:Gt,ct=f.popupAlign,pt=f.zIndex,Zt=f.stretch,Oe=f.getPopupClassNameFromAlign,fn=f.fresh,Nt=f.alignPoint,Ln=f.onPopupClick,Vn=f.onPopupAlign,yi=f.arrow,Ki=f.popupMotion,jn=f.maskMotion,kn=f.popupTransitionName,qt=f.popupAnimation,zr=f.maskTransitionName,Jr=f.maskAnimation,Ot=f.className,Ct=f.getTriggerDOMNode,Ir=(0,se.Z)(f,_r),Fr=rr||Me||!1,Tn=A.useState(!1),tn=(0,Fe.Z)(Tn,2),Bn=tn[0],gn=tn[1];(0,p.Z)(function(){gn((0,a.Z)())},[]);var zn=A.useRef({}),Xn=A.useContext(Ce),Qr=A.useMemo(function(){return{registerSubPopup:function(pi,ua){zn.current[pi]=ua,Xn==null||Xn.registerSubPopup(pi,ua)}}},[Xn]),Gr=(0,L.Z)(),Sn=A.useState(null),On=(0,Fe.Z)(Sn,2),Qn=On[0],Jn=On[1],Ni=(0,o.Z)(function(Li){(0,I.Sh)(Li)&&Qn!==Li&&Jn(Li),Xn==null||Xn.registerSubPopup(Gr,Li)}),li=A.useState(null),vn=(0,Fe.Z)(li,2),hr=vn[0],wr=vn[1],Or=A.useRef(null),Hr=(0,o.Z)(function(Li){(0,I.Sh)(Li)&&hr!==Li&&(wr(Li),Or.current=Li)}),Ur=A.Children.only(P),on=(Ur==null?void 0:Ur.props)||{},en={},Hn=(0,o.Z)(function(Li){var pi,ua,vs=hr;return(vs==null?void 0:vs.contains(Li))||((pi=(0,n.A)(vs))===null||pi===void 0?void 0:pi.host)===Li||Li===vs||(Qn==null?void 0:Qn.contains(Li))||((ua=(0,n.A)(Qn))===null||ua===void 0?void 0:ua.host)===Li||Li===Qn||Object.values(zn.current).some(function(Oa){return(Oa==null?void 0:Oa.contains(Li))||Li===Oa})}),ti=oe(W,Ki,qt,kn),ui=oe(W,jn,Jr,zr),Ri=A.useState(dt||!1),Oi=(0,Fe.Z)(Ri,2),Qi=Oi[0],Tr=Oi[1],En=Ge!=null?Ge:Qi,hn=(0,o.Z)(function(Li){Ge===void 0&&Tr(Li)});(0,p.Z)(function(){Tr(Ge||!1)},[Ge]);var Ai=A.useRef(En);Ai.current=En;var si=A.useRef([]);si.current=[];var ri=(0,o.Z)(function(Li){var pi;hn(Li),((pi=si.current[si.current.length-1])!==null&&pi!==void 0?pi:En)!==Li&&(si.current.push(Li),Ke==null||Ke(Li))}),wi=A.useRef(),Ti=function(){clearTimeout(wi.current)},Bi=function(pi){var ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ti(),ua===0?ri(pi):wi.current=setTimeout(function(){ri(pi)},ua*1e3)};A.useEffect(function(){return Ti},[]);var zi=A.useState(!1),oa=(0,Fe.Z)(zi,2),Ei=oa[0],wn=oa[1];(0,p.Z)(function(Li){(!Li||En)&&wn(!0)},[En]);var Ht=A.useState(null),Fn=(0,Fe.Z)(Ht,2),Gn=Fn[0],Ci=Fn[1],ki=A.useState([0,0]),Aa=(0,Fe.Z)(ki,2),Ca=Aa[0],ta=Aa[1],xa=function(pi){ta([pi.clientX,pi.clientY])},La=lr(En,Qn,Nt?Ca:hr,Yt,nt,ct,Vn),hi=(0,Fe.Z)(La,11),bi=hi[0],Hi=hi[1],ha=hi[2],Na=hi[3],ci=hi[4],pa=hi[5],va=hi[6],Ha=hi[7],Is=hi[8],Wa=hi[9],Fa=hi[10],Mi=ae(Bn,Ie,Te,Se),la=(0,Fe.Z)(Mi,2),ms=la[0],ss=la[1],ns=ms.has("click"),Wi=ss.has("click")||ss.has("contextMenu"),gs=(0,o.Z)(function(){Ei||Fa()}),ia=function(){Ai.current&&Nt&&Wi&&Bi(!1)};Ze(En,hr,Qn,gs,ia),(0,p.Z)(function(){gs()},[Ca,Yt]),(0,p.Z)(function(){En&&!(nt!=null&&nt[Yt])&&gs()},[JSON.stringify(ct)]);var co=A.useMemo(function(){var Li=Ee(nt,W,Wa,Nt);return Y()(Li,Oe==null?void 0:Oe(Wa))},[Wa,Oe,nt,W,Nt]);A.useImperativeHandle(D,function(){return{nativeElement:Or.current,forceAlign:gs}});var Qs=A.useState(0),_o=(0,Fe.Z)(Qs,2),hs=_o[0],Bo=_o[1],os=A.useState(0),Yn=(0,Fe.Z)(os,2),Da=Yn[0],io=Yn[1],Zi=function(){if(Zt&&hr){var pi=hr.getBoundingClientRect();Bo(pi.width),io(pi.height)}},ea=function(){Zi(),gs()},ji=function(pi){wn(!1),Fa(),Xe==null||Xe(pi)},Ui=function(){return new Promise(function(pi){Zi(),Ci(function(){return pi})})};(0,p.Z)(function(){Gn&&(Fa(),Gn(),Ci(null))},[Gn]);function ba(Li,pi,ua,vs){en[Li]=function(Oa){var Ns;vs==null||vs(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))}}(ns||Wi)&&(en.onClick=function(Li){var pi;Ai.current&&Wi?Bi(!1):!Ai.current&&ns&&(xa(Li),Bi(!0));for(var ua=arguments.length,vs=new Array(ua>1?ua-1:0),Oa=1;Oa<ua;Oa++)vs[Oa-1]=arguments[Oa];(pi=on.onClick)===null||pi===void 0||pi.call.apply(pi,[on,Li].concat(vs))}),Kr(En,Wi,hr,Qn,Mt,vr,Hn,Bi);var ka=ms.has("hover"),Rs=ss.has("hover"),As,Es;ka&&(ba("onMouseEnter",!0,At,function(Li){xa(Li)}),ba("onPointerEnter",!0,At,function(Li){xa(Li)}),As=function(pi){(En||Ei)&&Qn!==null&&Qn!==void 0&&Qn.contains(pi.target)&&Bi(!0,At)},Nt&&(en.onMouseMove=function(Li){var pi;(pi=on.onMouseMove)===null||pi===void 0||pi.call(on,Li)})),Rs&&(ba("onMouseLeave",!1,$e),ba("onPointerLeave",!1,$e),Es=function(){Bi(!1,$e)}),ms.has("focus")&&ba("onFocus",!0,Bt),ss.has("focus")&&ba("onBlur",!1,Kt),ms.has("contextMenu")&&(en.onContextMenu=function(Li){var pi;Ai.current&&ss.has("contextMenu")?Bi(!1):(xa(Li),Bi(!0)),Li.preventDefault();for(var ua=arguments.length,vs=new Array(ua>1?ua-1:0),Oa=1;Oa<ua;Oa++)vs[Oa-1]=arguments[Oa];(pi=on.onContextMenu)===null||pi===void 0||pi.call.apply(pi,[on,Li].concat(vs))}),Ot&&(en.className=Y()(on.className,Ot));var is=(0,we.Z)((0,we.Z)({},on),en),So={},go=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];go.forEach(function(Li){Ir[Li]&&(So[Li]=function(){for(var pi,ua=arguments.length,vs=new Array(ua),Oa=0;Oa<ua;Oa++)vs[Oa]=arguments[Oa];(pi=is[Li])===null||pi===void 0||pi.call.apply(pi,[is].concat(vs)),Ir[Li].apply(Ir,vs)})});var eo=A.cloneElement(Ur,(0,we.Z)((0,we.Z)({},is),So)),zs={x:pa,y:va},Os=yi?(0,we.Z)({},yi!==!0?yi:{}):null;return A.createElement(A.Fragment,null,A.createElement(O.Z,{disabled:!En,ref:Hr,onResize:ea},A.createElement(J,{getTriggerDOMNode:Ct},eo)),A.createElement(Ce.Provider,{value:Qr},A.createElement(z,{portal:G,ref:Ni,prefixCls:W,popup:ot,className:Y()(Zr,co),style:Tt,target:hr,onMouseEnter:As,onMouseLeave:Es,onPointerEnter:As,zIndex:pt,open:En,keepDom:Ei,fresh:fn,onClick:Ln,mask:Mt,motion:ti,maskMotion:ui,onVisibleChanged:ji,onPrepare:Ui,forceRender:ue,autoDestroy:Fr,getPopupContainer:re,align:Wa,arrow:Os,arrowPos:zs,ready:bi,offsetX:Hi,offsetY:ha,offsetR:Na,offsetB:ci,onAlign:gs,stretch:Zt,targetWidth:hs/Ha,targetHeight:Da/Is})))});return v}var St=Ue(ke.Z)},50304:function(){"use strict"},8797:function(bn,Wt,g){"use strict";var we=g(59301),Fe=g(93314),se=g(3113),ke=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?ke(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:z=!1})=>we.createElement("section",{className:"tc animated fadeIn",style:L(L({},{color:"#999",margin:"100px auto",visibility:z?"hidden":"visible"}),S)},we.createElement("img",{src:A||Fe,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);Wt.Z=a},23210:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return V}});var we=g(59301),Fe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=g(3113),ke=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,z)=>B in ee?a(ee,B,{enumerable:!0,configurable:!0,writable:!0,value:z}):ee[B]=z,F=(ee,B)=>{for(var z in B||(B={}))m.call(B,z)&&$(ee,z,B[z]);if(A)for(var z of A(B))S.call(B,z)&&$(ee,z,B[z]);return ee},H=(ee,B,z)=>new Promise((le,J)=>{var be=ae=>{try{Le(z.next(ae))}catch(me){J(me)}},Ce=ae=>{try{Le(z.throw(ae))}catch(me){J(me)}},Le=ae=>ae.done?le(ae.value):Promise.resolve(ae.value).then(be,Ce);Le((z=z.apply(ee,B)).next())}),V=({editOffice:ee="view",data:B,theme:z,type:le,filename:J,monacoEditor:be,className:Ce,style:Le,close:ae,onClose:me,hasMask:T,disabledDownload:Ee,onImgDimensions:oe,showNodata:he,recordInfo:ve})=>{const[_,N]=(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)(""),[qe,at]=(0,we.useState)(),rt=window.ENV==="build"?"/react/build":"",Rt=location.host.startsWith("localhost")?o.Z.PROXY_SERVER:o.Z.API_SERVER,Jt=10*(1024*1024),Ze=(0,we.useRef)();B!=null&&B.startsWith("/api")&&le!=="txt"&&(B=o.Z.API_SERVER+B);const Er=Ue=>Ue.substring(Ue.lastIndexOf("/")+1).split(".").pop();J&&be&&(be.filename=J),(0,we.useEffect)(()=>{var Ue,St;const G=(St=(Ue=document.cookie)==null?void 0:Ue.replace(/\s/g,""))==null?void 0:St.split(";");G==null||G.map(v=>{let f=v.split("=");f[0]==="_educoder_session"&&pe(f[1])})},[]),(0,we.useEffect)(()=>{le==="office"&&(B.indexOf("bigfilescdn.")>-1||B.indexOf("bigfiles1")>-1?at({url:B,fileType:Er(B),model:B.indexOf("model=edit")?"edit":"view"}):Cr())},[le,B]);const Cr=()=>H(void 0,null,function*(){console.log("data:",B);let Ue=B;B.startsWith("http")||(Ue=location.origin+Ue);let St=new URL(Ue).pathname.split("/").pop();const G=yield(0,I.gJ)({attachment_id:St});G.url=Rt+G.url,at(G)}),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({},Le||{}),className:`${T&&Fe.bgBlack} ${le?Fe.wrp:"hide"}`},ae&&p.createElement("div",{className:Fe.close,ref:Ze},!!oe&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ze.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:()=>Ze.current},p.createElement("span",{onClick:_r},p.createElement("i",{className:"icon-quxiaozhiding"}))),p.createElement(Y.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ze.current},p.createElement("span",{className:"",onClick:me},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${Fe[Ce]} ${Ce} ${Fe.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"&&qe&&p.createElement("iframe",{src:`${rt}/office.html?key=${qe.key}&url=${btoa(qe.url)}&callbackUrl=${Rt+(qe.callbackUrl||"")}&fileType=${qe.fileType}&title=${qe.title||""}&model=${ee}&officeServer=${o.Z.ONLYOFFICE}&disabledDownload=${!!Ee}`}),le==="html"&&p.createElement("iframe",{src:B+"&disposition=inline"}),le==="pdf"&&p.createElement("iframe",{src:`${rt}/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(ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(bn,Wt,g){"use strict";g.d(Wt,{z:function(){return le},Z:function(){return J}});var we=g(59301),Fe=g(50304),se=g(24768),ke=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),Le=(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"});Le.current=document.createElement("div"),Le.current.className="markdown-body",Le.current.innerHTML=be,me.appendChild(Le.current);const T=document.createElement("style");return T.textContent=ae,me.appendChild(T),()=>{me.innerHTML=""}},[]),(0,we.useEffect)(()=>{Le.current&&(Le.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,Le)=>Ce in be?A(be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Le}):be[Ce]=Le,H=(be,Ce)=>{for(var Le in Ce||(Ce={}))S.call(Ce,Le)&&F(be,Le,Ce[Le]);if(m)for(var Le of m(Ce))$.call(Ce,Le)&&F(be,Le,Ce[Le]);return be};const V="@\u2581\u2581@",ee="@\u2581@",B=/<pre[^>]*>/g;function z(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 Le=/(?: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(Le,(Ee,oe,he,ve,_,N,X)=>{const pe=oe||ve||N,qe=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+qe+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(be=be.replace(T,(Ee,oe,he,ve,_,N,X)=>{const pe=oe||ve||N,qe=he||_||X||"?";return Y.Z.API_SERVER+"/attachments/download/"+pe+qe+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(Le,(Ee,oe,he,ve,_,N,X)=>{const pe=oe||ve||N,qe=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+qe+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(ae,(Ee,oe,he,ve,_)=>{const N=oe||ve,X=he||_||"";return'"'+Y.Z.API_SERVER+"/api/attachments/"+N+X+N+X+"&t="+(0,O.Jn)(N,Date.now())}).replace(me,(Ee,oe,he,ve,_)=>{const N=oe||ve,X=he||_||"";return"("+Y.Z.API_SERVER+"/files/uploads/"+N+X+N+X+"&t="+(0,O.Jn)(N,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:Le,showLines:ae,style:me={},stylesPrev:T={},highlightKeywords:Ee,showProgramFill:oe,isProgramFill:he,disabledFill:ve=!1,programFillValue:_,onFillChange:N=qe=>{},onFillBlur:X=()=>{},onFillFocus:pe=()=>{}})=>{let qe=String(be);const[at,rt]=(0,we.useState)(""),[Rt,lr]=(0,we.useState)("office"),[Jt,Ze]=(0,we.useState)([]),Er=(0,we.useRef)("a"+(0,n.Z)()),Cr={},Kr=(Ie,Te,Se)=>{const Ge=document.createElement(Ie===ee?"input":"textarea");Ge.style.width="100%",Ge.style.height=Ie===ee?"40px":"151px",Ge.rows=5,Ge.spellcheck=!1,Ge.name="edu-program-fill",Ge.placeholder="\u8BF7\u8F93\u5165",Ge.dataset.id=Te;const dt=Object.keys(Cr).length;return Cr[dt]=Ge,`<span class="edu-program-fill-wrap ${Ie===ee?"":"show"}" style="width:${Ie===ee?"400px":"100%"}" title=${Se||""}><span>${Ge.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function _r(Ie){return Ie=Ie.replace(/!\[.*?\]\(.*?\)/g,""),Ie=Ie.replace(/\[.*?\]\(.*?\)/g,""),Ie=Ie.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ie=Ie.replace(/<embed.*?>/g,""),Ie=Ie.replace(/<img.*?>/g,""),Ie=Ie.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ie=Ie.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ie=Ie.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ie=Ie.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ie}const Ue=Ie=>Ie.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Te,Se){let Ge=Se.replace(/(\n|\r)/g,"").split("}"),dt=[];return Ge.map(Ke=>{Ke!=""&&dt.push(`.${Er.current} ${Ke}`)}),`<style>${dt.join("}")}</style>`}),St=(0,we.useMemo)(()=>{try{const Ge=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,dt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ke=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xe=/\(\/attachments\/download\//g;qe=qe.replace(Xe,"("+Y.Z.API_SERVER+"/attachments/download/").replace(Ge,"("+Y.Z.API_SERVER+"/api/attachments/").replace(dt,'"'+Y.Z.API_SERVER+"/api/attachments/").replace(Ke,'"'+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(Ge){}if(oe){let Ge=-1;return qe=qe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(dt,Ke,Xe){var At;return++Ge,Kr(dt,Ge,(At=_==null?void 0:_[Ge])==null?void 0:At.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ue(qe||"")}</pre>`}let Ie=Ue(qe);Ie=(0,se.ZP)(Ie);const Te=(0,se.ez)();qe.match(/\[TOC\]/)&&(Ie=Ie.replace("<p>[TOC]</p>",(0,se.Qv)()),(0,se.Iy)()),Ie=Ie.replace(/(__special_katext_id_\d+__)/g,(Ge,dt)=>{const{type:Ke,expression:Xe}=Te[dt];return(0,I.renderToString)(z(Xe)||"",{displayMode:Ke==="block",throwOnError:!1,output:"html"})}),Ie=Ie.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const Se=document.createElement("div");if(Se.innerHTML=Ie,Le)return Se.innerText;if(Ee){const Ge=Ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return D(Se,Ge),Se.innerHTML}return setTimeout(()=>P(),500),Se.innerHTML},[qe,Ee]);(0,we.useEffect)(()=>{fe.current&&fe.current.querySelectorAll(["input","textarea"]).forEach(Te=>{Te.oninput=G,Te.onblur=v,Te.onfocus=f})},[Jt]),(0,we.useEffect)(()=>{var Ie,Te,Se,Ge,dt;if(_!=null&&_.length)try{const Ke=fe.current.querySelectorAll(".edu-program-fill-score"),Xe=fe.current.querySelectorAll('[name="edu-program-fill"]');for(const[At,We]of Xe.entries())We.value=((Ie=_==null?void 0:_[At])==null?void 0:Ie.value)||"",((Te=_==null?void 0:_[At])==null?void 0:Te.type)==="warning"?We.className="program-fill-warning":((Se=_==null?void 0:_[At])==null?void 0:Se.type)==="success"?We.className="program-fill-success":We.className="";for(const[At,We]of Ke.entries())We.innerHTML=(Ge=_==null?void 0:_[At])!=null&&Ge.score?`${(dt=_==null?void 0:_[At])==null?void 0:dt.score}\u5206`:"";Ze(_)}catch(Ke){console.log(Ke,"error")}},[_]);const G=Ie=>{Jt[Ie.target.dataset.id]=Jt[Ie.target.dataset.id]||{},Jt[Ie.target.dataset.id].value=Ie.target.value,Ze([...Jt]),N(Jt,Ie.target.dataset.id)},v=Ie=>{Jt[Ie.target.dataset.id]=Jt[Ie.target.dataset.id]||{},Jt[Ie.target.dataset.id].value=Ie.target.value,Ze([...Jt]),X(Jt,Ie.target.dataset.id)},f=Ie=>{Jt[Ie.target.dataset.id]=Jt[Ie.target.dataset.id]||{},Jt[Ie.target.dataset.id].value=Ie.target.value,Ze([...Jt]),pe(Jt,Ie.target.dataset.id)};function D(Ie,Te){return Ie.childNodes.forEach(Se=>{var Ge;if(Se.childNodes.length>0)D(Se,Te);else if(Se.nodeName!=="IMG")if(Se.innerHTML)Se.innerHTML=(Ge=Se.innerHTML)==null?void 0:Ge.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const dt=document.createElement("span");dt.innerHTML=Se.textContent.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Se.replaceWith(dt)}})}const fe=(0,we.useRef)();se.jb.WebkitLineClamp=ae,ae&&(me=H(H({},me),se.jb));function W(Ie){let Te=Ie.target;if(Te.tagName.toUpperCase()==="A"){let Se=Te.getAttribute("href");if(Se.indexOf("office")>-1)Ie.preventDefault(),rt(Se),lr("office");else if(Se.indexOf("application/pdf")>-1)Ie.preventDefault(),rt(Se),lr("pdf");else if(Se.indexOf("text/html")>-1)Ie.preventDefault(),rt(Se),lr("html");else if(Se.startsWith("#")){Ie.preventDefault();let Ge=document.getElementById(Se.replace("#",""));Ge&&Ge.scrollIntoView(!0)}}}const P=()=>{var Ie;const Te=(Ie=fe.current)==null?void 0:Ie.querySelectorAll("video");Te==null||Te.forEach(Se=>{if(Se.oncontextmenu=()=>!1,Se.src.indexOf(".m3u8")>-1&&!Se.canPlayType("application/vnd.apple.mpegurl")){if(ie.ZP.isSupported()){var Ge=new ie.ZP;Ge.loadSource(Se.src),Ge.attachMedia(Se)}}})};(0,we.useEffect)(()=>{if(fe.current&&St&&St.match(B)&&window.PR.prettyPrint(),fe.current)return fe.current.addEventListener("click",W),()=>{var Ie;(Ie=fe.current)==null||Ie.removeEventListener("click",W),(0,se.AL)(),(0,se.Iy)()}},[St,fe.current,W]),(0,we.useEffect)(()=>{var Ie;const Te=Se=>{Se.preventDefault(),Se.clipboardData.setData("text",window.getSelection().toString())};return(Ie=fe.current)==null||Ie.addEventListener("copy",Te),()=>{var Se;(Se=fe.current)==null||Se.removeEventListener("copy",Te)}},[fe.current]);const te=Ie=>/<style[\s\S]*?>/i.test(Ie||"");return we.createElement(we.Fragment,null,Le&&we.createElement("div",{ref:fe},St),!Le&&!te(St)&&we.createElement("div",{ref:fe,style:H({},me),className:`${Ce||""} ${ve?"disabled-fill":""} markdown-body ${Er.current}`,dangerouslySetInnerHTML:{__html:St}}),!Le&&te(St)&&we.createElement(a,{html:St}),we.createElement(o.Z,{close:!0,data:at,type:at!=null&&at.length?Rt:"",style:H({},T),onClose:()=>rt("")}))}},23954:function(bn,Wt,g){"use strict";g.d(Wt,{SV:function(){return fe},ZP:function(){return D}});var we=g(59301),Fe=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"]},ke={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=(W,P,te)=>P in W?o(W,P,{enumerable:!0,configurable:!0,writable:!0,value:te}):W[P]=te,$=(W,P)=>{for(var te in P||(P={}))A.call(P,te)&&S(W,te,P[te]);if(a)for(var te of a(P))m.call(P,te)&&S(W,te,P[te]);return W},F=(W,P)=>L(W,p(P)),H=(W,P,te)=>new Promise((Ie,Te)=>{var Se=Ke=>{try{dt(te.next(Ke))}catch(Xe){Te(Xe)}},Ge=Ke=>{try{dt(te.throw(Ke))}catch(Xe){Te(Xe)}},dt=Ke=>Ke.done?Ie(Ke.value):Promise.resolve(Ke.value).then(Se,Ge);dt((te=te.apply(W,P)).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=(W,P)=>P.map(te=>({label:te,kind:W.languages.CompletionItemKind.Keyword,insertText:te})),B=W=>Object.keys(V.tables).map(P=>({label:P,kind:W.languages.CompletionItemKind.Variable,insertText:P})),z=(W,P)=>{const te=V.tables[W];return te?te.map(Ie=>({label:Ie,kind:P.languages.CompletionItemKind.Field,insertText:Ie})):[]};function le(W,P,te,Ie,Te){let Se=P.getWordUntilPosition(te),Ge={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},dt=Ie.map(Ke=>({label:Ke,kind:W.languages.CompletionItemKind.Keyword,insertText:Ke,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}));return Te.map(Ke=>{dt.push(F($({},Ke),{range:Ge}))}),dt}var J=W=>{V.languages.map(Te=>(W.languages.registerDocumentFormattingEditProvider(Te,{provideDocumentFormattingEdits(Se,Ge,dt){return H(this,null,function*(){const Ke=n()(Se.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:Se.getFullModelRange(),text:Ke}]})}}),Te));const P=ie.quickKey.map(Te=>({label:Te.label,kind:W.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet})),te=Y.quickKey.map(Te=>({label:Te.label,kind:W.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ie=ke.quickKey.map(Te=>({label:Te.label,kind:W.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet}));W.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),dt={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...ie.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...ie.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),W.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),dt={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn};return{suggestions:[...se.keywords.map(Ke=>({label:Ke,kind:W.languages.CompletionItemKind.Function,documentation:Ke,insertText:Ke,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),W.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),dt={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...ke.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...ke.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),W.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),dt={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...O.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...O.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}}),W.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),dt={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Y.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt})),...Y.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dt}))]}}})};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,Le=(W,P,te)=>P in W?Ce(W,P,{enumerable:!0,configurable:!0,writable:!0,value:te}):W[P]=te,ae=(W,P,te)=>Le(W,typeof P!="symbol"?P+"":P,te);const me=class ZA{constructor(P,te,Ie){this.placeholder=P,this.editor=te,this.monaco=Ie,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),N=g(34604),X=g(56102),pe=Object.defineProperty,qe=Object.defineProperties,at=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,Jt=(W,P,te)=>P in W?pe(W,P,{enumerable:!0,configurable:!0,writable:!0,value:te}):W[P]=te,Ze=(W,P)=>{for(var te in P||(P={}))Rt.call(P,te)&&Jt(W,te,P[te]);if(rt)for(var te of rt(P))lr.call(P,te)&&Jt(W,te,P[te]);return W},Er=(W,P)=>qe(W,at(P)),Cr=(W,P)=>{var te={};for(var Ie in W)Rt.call(W,Ie)&&P.indexOf(Ie)<0&&(te[Ie]=W[Ie]);if(W!=null&&rt)for(var Ie of rt(W))P.indexOf(Ie)<0&&lr.call(W,Ie)&&(te[Ie]=W[Ie]);return te},Kr=(W,P,te)=>new Promise((Ie,Te)=>{var Se=Ke=>{try{dt(te.next(Ke))}catch(Xe){Te(Xe)}},Ge=Ke=>{try{dt(te.throw(Ke))}catch(Xe){Te(Xe)}},dt=Ke=>Ke.done?Ie(Ke.value):Promise.resolve(Ke.value).then(Se,Ge);dt((te=te.apply(W,P)).next())});function _r(W){return/^\d+$/.test(W)?`${W}px`:W}function Ue(){}let St=!1;const G={"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(W=[]){let P=W;if(Array.isArray(W)){for(let te=0;te<W.length;te++){let Ie=G[W[te]];if(Ie)return Ie}return P[0]}return G[P]||P}let f=null;var D=W=>{var P=W,{width:te="100%",height:Ie="100%",value:Te,language:Se="javascript",style:Ge={},options:dt={},overrideServices:Ke={},theme:Xe="vs-dark",onEditBlur:At,isCopy:We=!1,onSave:$e,autoHeight:Bt=!1,forbidCopy:Kt=!1,onChange:Mt=Ue,editorDidMount:br=Ue,onFocus:vr=Ue,onBreakPoint:re=Ue,breakPointValue:ue=[],filename:rr="educoder.txt",errorLine:Me,errorContent:ot="",highlightLine:Zr,openBreakPoint:Tt=!1,placeholder:Yt=""}=P,Gt=Cr(P,["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 nt=(0,we.useRef)(),ct=(0,we.useRef)({}),pt=(0,we.useRef)(),Zt=(0,we.useRef)(),Oe=(0,we.useRef)([]),fn=(0,we.useRef)(!1),Nt=(0,we.useRef)(),Ln=(0,we.useRef)(),Vn=(0,we.useRef)(!1),[yi,Ki]=(0,we.useState)(!1);function jn(){let Qr;return nt.current&&(Qr=new Fe.Z(Gr=>{for(let Sn of Gr)(Sn.target.offsetHeight>0||Sn.target.offsetWidth>0)&&ct.current.instance.layout()}),Qr.observe(nt.current)),Qr}function kn(){he.ZP.warning({content:decodeURIComponent(be),key:"monaco-editor-tip"})}const qt=()=>{let Qr=ct.current.instance;if(Te!=null&&Qr&&yi){const Gr=Qr.getModel();Gr&&Te!==Gr.getValue()&&(St=!0,Gr.setValue(Te),Qr.layout(),St=!1)}};(0,we.useEffect)(()=>{const Qr=N.Z.subscribe("formatDocument",Gr=>{var Sn;let On=ct.current.instance;(Sn=On==null?void 0:On.getAction)==null||Sn.call(On,"editor.action.formatDocument").run()});return window.updateMonacoValue=Gr=>{Mt(Gr)},Qr},[]),(0,we.useEffect)(()=>{var Qr;let Gr=ct.current.instance;Zt.current&&clearTimeout(Zt.current),Zt.current=setTimeout(()=>{qt()},500),Te&&(Te!=null&&Te.length)&&((Qr=Gr==null?void 0:Gr.updateOptions)==null||Qr.call(Gr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Te.split(/\r\n|\r|\n/g).length))+3,5)}))},[Te,yi,ct.current]),(0,we.useEffect)(()=>{if(Me&&ct.current&&ct.current.instance){let Gr=ct.current.instance;Gr.changeViewZones(function(Sn){var On=document.createElement("div");On.style.padding="10px 20px",On.style.width="calc(100% - 20px)",On.className="my-error-line-wrp",On.innerHTML=ot,Sn.addZone({afterLineNumber:Me||11,heightInLines:3,domNode:On})});var Qr={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}};Gr.addOverlayWidget(Qr),Gr.revealPositionInCenter({lineNumber:20,column:1})}},[Me,ct.current,yi]);const zr=(Qr="",Gr)=>{if(!Qr||Qr.trim()==="")return!0;const On=ct.current.instance.getModel().getLineTokens(Gr);let Qn=!1;for(let Jn=0;Jn<2;Jn++)On.getStandardTokenType(Jn)===1&&(Qn=!0);return Qn};(0,we.useEffect)(()=>{var Qr;const Gr=(Qr=ct.current)==null?void 0:Qr.instance;if(Gr&&yi&&Kt){const Sn=Gr.onDidBlurEditorWidget(()=>{Vn.current=!1}),On=Gr.onDidFocusEditorText(()=>{Vn.current=!0});return()=>{Sn.dispose(),On.dispose()}}},[ct.current,yi,Kt]),(0,we.useEffect)(()=>{var Qr;if((Qr=ct.current)!=null&&Qr.instance&&yi&&Tt){let Gr=ct.current.instance,Sn=Gr.getModel();if(!Sn)return;(()=>{var on;let en=[],Hn=[];const ti=Sn.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(Zr===en[0])return;Sn.deltaDecorations(Hn,[]);const ui=Sn.getLineCount();Zr&&Zr<=ui&&(Gr.deltaDecorations([],[{range:new f.Range(Zr,1,Zr,Sn.getLineMaxColumn(Zr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Gr.revealLineInCenter(Zr))})();const Qn=(on=!1)=>{var en;let Hn=[],ti=[];const ui=Sn.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)},Jn=on=>Kr(void 0,null,function*(){let en={range:new f.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Sn.deltaDecorations([],[en]),Qn()}),Ni=on=>Kr(void 0,null,function*(){let en=[];const Hn=Gr.getLineDecorations(on);for(let ti of Hn)ti.options.linesDecorationsClassName==="breakpoints-select"&&en.push(ti.id);yield Sn.deltaDecorations(en,[]),Qn()}),li=on=>{let en=Gr.getLineDecorations(on);for(let Hn of en)if(Hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_.isEqual)(ue,Qn(!0).lines)){Sn.deltaDecorations(Qn(!0).ids,[]);const on=ue.map(en=>({range:new f.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Sn.deltaDecorations([],on)}const vn=Gr.onDidChangeModelContent(on=>{let en=Gr.getPosition();if(en){let Hn=en.lineNumber;clearTimeout(Ln.current),Ln.current=setTimeout(()=>{zr(Sn.getLineContent(Hn),Hn)?Ni(Hn):li(Hn)?(Ni(Hn),Jn(Hn)):Qn()},100)}}),hr=Gr.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(zr(Sn.getLineContent(ui),ui))return;li(ui)?Ni(ui):Jn(ui)}}),wr=on=>{let en={range:new f.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Oe.current=Gr.deltaDecorations(Oe.current,[en])},Or=()=>{Oe.current=Gr.deltaDecorations(Oe.current,[])},Hr=Gr.onMouseMove(on=>{var en,Hn,ti;if(Or(),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(zr(Sn.getLineContent(ui),ui))return;wr(ui)}}),Ur=Gr.onMouseLeave(()=>{Or()});return()=>{vn.dispose(),hr.dispose(),Hr.dispose(),Ur.dispose()}}},[ct.current,yi,ue,Zr,Tt,Se]),(0,we.useEffect)(()=>{var Qr;(Qr=ct.current)!=null&&Qr.instance&&Tt&&ct.current.instance.setPosition({lineNumber:0,column:0})},[Zr]);function Jr(){let Qr=ct.current.instance;if(Qr){const Gr=Qr.getSelection(),Sn=ct.current.pastePos||{},On=new f.Range(Sn.startLineNumber||Gr.endLineNumber,Sn.startColumn||Gr.endColumn,Sn.endLineNumber||Gr.endLineNumber,Sn.endColumn||Gr.endColumn);setTimeout(()=>{Qr.executeEdits("",[{range:On,text:""}])},300)}}function Ot(Qr){(window.navigator.platform.match("Mac")?Qr.metaKey:Qr.ctrlKey)&&Qr.keyCode==83&&(Qr.preventDefault(),$e())}const Ct=()=>{if(Bt&&ct.current.instance){const Qr=ct.current.instance.getContentHeight();zn(Qr<Ie?Ie:Qr)}else zn(Ie)};function Ir(Qr){var Gr=document.createEvent("MouseEvents");Gr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Qr.dispatchEvent(Gr)}const Fr=Qr=>{if(!Vn.current)return;const{keyCode:Gr,ctrlKey:Sn,metaKey:On,target:Qn,type:Jn}=Qr;return(Jn==="paste"||(Gr===67||Gr===86)&&(On||Sn))&&Qn.nodeName==="TEXTAREA"&&(kn(),Qr.preventDefault()),!1};function Tn(Qr,Gr){var Sn=window.URL||window.webkitURL||window,On=new Blob([Gr]),Qn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Qn.href=Sn.createObjectURL(On),Qn.download=Qr,Ir(Qn)}(0,we.useEffect)(()=>{Ct()},[Ct]),(0,we.useEffect)(()=>{nt.current&&!yi&&Promise.all([g.e(8909),g.e(3267)]).then(g.bind(g,71448)).then(Qr=>{try{f=Qr,ct.current.instance=f.editor.create(nt.current,{value:Te,language:v(Se),theme:Xe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ke);const Gr=ct.current.instance;let Qn=[...oe.BH._menuItems].find(vn=>vn[0]._debugName=="EditorContext")[1],Jn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ni=(vn,hr)=>{var wr,Or;let Hr=vn._first;do hr.includes((Or=(wr=Hr.element)==null?void 0:wr.command)==null?void 0:Or.id)&&vn._remove(Hr);while(Hr=Hr.next)};if(br(Gr,f),setTimeout(()=>{Ct(),ct.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Tn(rr||"educoder.txt",Gr.getValue())}})},500),ct.current.subscription=Gr.onDidChangeModelContent(vn=>{fn.current?clearTimeout(Nt.current):(Ct(),Mt(Gr.getValue(),vn)),Nt.current=setTimeout(()=>{fn.current=!1},500)}),window.Monaco||J(f,v(Se)),Kt&&(Ni(Qn,Jn),nt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Fr),window.removeEventListener("paste",Fr),window.addEventListener("keydown",Fr),window.addEventListener("paste",Fr)),window.Monaco=f,At&&Gr.onDidBlurEditorWidget(()=>{At(Gr.getValue())}),vr&&Gr.onDidFocusEditorText(()=>{vr(Gr.getValue())}),Kt)try{Gr.onDidPaste(vn=>{const hr=Gr.getSelection(),wr=ct.current.pastePos||{},Or=new f.Range(wr.startLineNumber||hr.endLineNumber,wr.startColumn||hr.endColumn,wr.endLineNumber||hr.endLineNumber,wr.endColumn||hr.endColumn);Gr.executeEdits("",[{range:vn.range,text:""}])})}catch(vn){}let li=jn();return Yt&&typeof Yt=="string"&&new Ee(Yt,Gr,f),Ki(!0),()=>{const vn=ct.current.instance;vn.dispose();const hr=vn.getModel();hr&&hr.dispose(),ct.current.subscription&&ct.current.subscription.dispose(),li.unobserve(nt.current)}}catch(Gr){}})},[]),(0,we.useEffect)(()=>{if(ct.current.instance&&yi)return document.addEventListener("keydown",Ot,!1),()=>{document.removeEventListener("keydown",Ot)}},[$e,yi]),(0,we.useEffect)(()=>{let Qr=ct.current.instance;if(Qr&&yi){let Gr=v(Se);f.editor.setModelLanguage(Qr.getModel(),Gr)}},[Se,yi]),(0,we.useEffect)(()=>{ct.current.instance&&yi&&f.editor.setTheme(Xe)},[Xe,yi]),(0,we.useEffect)(()=>{let Qr=ct.current.instance;pt.current=dt,Qr&&yi&&(Qr.updateOptions(Ze({},dt)),setTimeout(()=>{Qr.getModel().updateOptions(Ze({},dt))},200))},[JSON.stringify(dt),yi]),(0,we.useEffect)(()=>{let Qr=ct.current.instance;Qr&&yi&&Qr.layout()},[te,Ie,yi]);const[tn,Bn]=(0,we.useState)(_r(te)),[gn,zn]=(0,we.useState)(_r(Ie)),Xn=Er(Ze({},Ge),{width:tn,height:gn,position:"relative"});return we.createElement("div",{className:"my-monaco-editor",ref:nt,style:Xn},We&&we.createElement(X.CopyToClipboard,{text:Te,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:W="100%",height:P="100%",original:te,modified:Ie,language:Te,options:Se={}}){const Ge=(0,we.useRef)(),[dt,Ke]=(0,we.useState)(null);function Xe(Bt){let Kt;return Ge.current&&(Kt=new Fe.Z(Mt=>{for(let br of Mt)(br.target.offsetHeight>0||br.target.offsetWidth>0)&&Bt.layout()}),Kt.observe(Ge.current)),Kt}(0,we.useEffect)(()=>(Ge.current&&Promise.all([g.e(8909),g.e(9404)]).then(g.bind(g,2550)).then(Bt=>{f=Bt;const Kt=f.editor.createDiffEditor(Ge.current,Er(Ze({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},Se),{wordWrap:!0}));Ke(Kt);let Mt=Xe(Kt);return()=>{Kt.dispose();const br=Kt.getModel();br&&br.dispose(),Mt.unobserve(Ge.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,we.useEffect)(()=>{dt&&dt.setModel({original:f.editor.createModel(te,Te),modified:f.editor.createModel(Ie,Te)})},[te,Ie,Te,dt]);const At=_r(W),We=_r(P),$e={width:At,height:We};return we.createElement("div",{className:"my-diff-editor",ref:Ge,style:$e})}},67059:function(bn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{default:function(){return D}});var we=g(59301),Fe=g(61186),se=g.n(Fe),ke=g(86129),ie=g.n(ke),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),z=g(26227),le=g(3294),J=g(24065),be=g(955),Ce=g(78241),Le=g(5871),ae=g(92832),me=({defaultValue:fe,onBlur:W,max:P,className:te="game-score"})=>{const[Ie,Te]=(0,we.useState)(fe);(0,we.useEffect)(()=>{Te(fe)},[fe]);function Se(dt){Te(dt)}function Ge(){Ie&&(W(Ie>P?P:Ie),Te(null))}return we.createElement(Le.Z,{max:P,min:0,className:te,value:Ie,onChange:Se,onBlur:Ge})},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,W,P)=>new Promise((te,Ie)=>{var Te=dt=>{try{Ge(P.next(dt))}catch(Ke){Ie(Ke)}},Se=dt=>{try{Ge(P.throw(dt))}catch(Ke){Ie(Ke)}},Ge=dt=>dt.done?te(dt.value):Promise.resolve(dt.value).then(Te,Se);Ge((P=P.apply(fe,W)).next())});const he=({shixunHomeworks:fe,dispatch:W,classroomList:P,gethomeworkreport:te,homeWorkReport:Ie})=>{var Te,Se;const{shixunWorkReport:Ge}=fe,dt=(0,O.useParams)(),[Ke,Xe]=(0,we.useState)(!1),[At,We]=(0,we.useState)(!1),[$e,Bt]=(0,we.useState)(""),[Kt]=Ce.default.useForm(),Mt=()=>oe(void 0,null,function*(){We(!0);const re=Kt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${dt.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"),Kt.resetFields(),W({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),We(!1)}),br=()=>oe(void 0,null,function*(){if(!$e){n.ZP.warning("\u8BF7\u586B\u5199\u5206\u6570");return}We(!0);const re=Kt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${dt.homeworkId}/add_score.json`,{method:"post",body:{comment:re.comment,score:$e}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),W({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),We(!1)}),vr=[{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 Me;if((0,J.Rm)()&&!((Me=P.AssistantObject.practice)!=null&&Me.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/${dt.homeworkId}/adjust_score.json`,{method:"post",body:{score:rr}});te(),ot.status===0&&n.ZP.success("\u8C03\u5206\u6210\u529F")})}):Ie!=null&&Ie.is_anonymous?Ee.createElement(Le.Z,{min:0,value:$e,onChange:rr=>Bt(rr),max:ue.score_full}):re}].filter(re=>Ie!=null&&Ie.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:()=>{Kt.resetFields(),Bt("")},confirmLoading:At,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=P.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(Ie!=null&&Ie.is_anonymous){br();return}const ue=Kt.getFieldsValue();JSON.stringify(ue)==="{}"||ue.hidden_comment===""&&ue.comment===""?Xe(!0):Mt()}),onCancel:()=>{W({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},Ie==null?void 0:Ie.username)),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u5B66\u53F7"),Ee.createElement("span",{className:T.blackContent},(Ie==null?void 0:Ie.student_id)||"--")),!(Ie!=null&&Ie.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},(Ie==null?void 0:Ie.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},((Te=Ie==null?void 0:Ie.stage_list[0])==null?void 0:Te.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},((Se=Ie==null?void 0:Ie.stage_list[0])==null?void 0:Se.absence_penalty)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u603B\u6210\u7EE9"),Ee.createElement("span",{className:T.orangeContent},(Ie==null?void 0:Ie.stage_list[0].score)||"--")))),Ee.createElement(Ce.default,{form:Kt,onChange:()=>{Ke&&Xe(!1)}},Ee.createElement("div",{className:`${T.inputLabel} ${T.greyText}`},Ie!=null&&Ie.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})),!(Ie!=null&&Ie.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}))," ")),Ke&&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:Ie==null?void 0:Ie.stage_list,rowKey:"challenge_id",pagination:!1,columns:vr}))};var ve=(0,O.connect)(({shixunHomeworks:fe,classroomList:W})=>({shixunHomeworks:fe,classroomList:W}))(he),_={},N=(fe,W,P)=>new Promise((te,Ie)=>{var Te=dt=>{try{Ge(P.next(dt))}catch(Ke){Ie(Ke)}},Se=dt=>{try{Ge(P.throw(dt))}catch(Ke){Ie(Ke)}},Ge=dt=>dt.done?te(dt.value):Promise.resolve(dt.value).then(Te,Se);Ge((P=P.apply(fe,W)).next())});const X=({shixunHomeworks:fe,dispatch:W,gethomeworkreport:P,homeWorkReport:te})=>{var Ie,Te;const{shixunWorkReport:Se}=fe;console.log(te,"homeWorkReport");const Ge=(0,O.useParams)(),[dt,Ke]=(0,we.useState)(!1),[Xe]=Ce.default.useForm(),{user_name:At,score:We,comment_time:$e,content:Bt,score_id:Kt,user_id:Mt}=((Te=(Ie=fe==null?void 0:fe.actionTabs)==null?void 0:Ie.selectArrs)==null?void 0:Te.data)||{},br=()=>N(void 0,null,function*(){yield Xe.validateFields(),Ke(!0);const vr=Xe.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${Ge.homeworkId}/appeal_anonymous_score.json`,{method:"post",body:{comment:vr.comment,score_id:Kt,userId:Mt}})).status===0&&(n.ZP.success("\u64CD\u4F5C\u6210\u529F"),W({type:"shixunHomeworks/setActionTabs",payload:{}}),P()),Ke(!1)});return we.createElement(I.default,{centered:!0,width:600,title:"\u533F\u8BC4\u7533\u8BC9",afterClose:()=>{Xe.resetFields()},confirmLoading:dt,open:fe.actionTabs.key==="\u533F\u8BC4\u7533\u8BC9",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:br,onCancel:()=>{W({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"},At),we.createElement("span",{className:"c-grey-333 ml5"},"\u8C03\u5206\u4E3A"),we.createElement("span",{className:"c-orange ml5"},We,"\u5206")),we.createElement("span",{className:"c-grey-333"},$e)),we.createElement("div",{className:"c-grey-333 mt5"},Bt)),we.createElement(Ce.default,{form:Xe,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),qe=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"},rt=g(85149),Rt=g(36708),lr=g(44164),Jt=g.n(lr),Ze=g(59301),Er=Object.defineProperty,Cr=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Ue=(fe,W,P)=>W in fe?Er(fe,W,{enumerable:!0,configurable:!0,writable:!0,value:P}):fe[W]=P,St=(fe,W)=>{for(var P in W||(W={}))Kr.call(W,P)&&Ue(fe,P,W[P]);if(Cr)for(var P of Cr(W))_r.call(W,P)&&Ue(fe,P,W[P]);return fe},G=(fe,W)=>{var P={};for(var te in fe)Kr.call(fe,te)&&W.indexOf(te)<0&&(P[te]=fe[te]);if(fe!=null&&Cr)for(var te of Cr(fe))W.indexOf(te)<0&&_r.call(fe,te)&&(P[te]=fe[te]);return P},v=(fe,W,P)=>new Promise((te,Ie)=>{var Te=dt=>{try{Ge(P.next(dt))}catch(Ke){Ie(Ke)}},Se=dt=>{try{Ge(P.throw(dt))}catch(Ke){Ie(Ke)}},Ge=dt=>dt.done?te(dt.value):Promise.resolve(dt.value).then(Te,Se);Ge((P=P.apply(fe,W)).next())});const f=fe=>{var W=fe,{shixunHomeworks:P,classroomList:te,globalSetting:Ie,loading:Te,user:Se,dispatch:Ge}=W,dt=G(W,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),Ke,Xe,At,We,$e,Bt,Kt;const[Mt,br]=(0,we.useState)(St({},(0,O.useParams)())),vr=(0,O.useParams)(),re=(0,O.useLocation)(),[]=(0,we.useState)([]),[ue,rr]=(0,we.useState)({last:!1}),[Me,ot]=(0,we.useState)({last:!1}),Zr=(0,we.useRef)(),Tt=(0,we.useRef)(),[Yt,Gt]=(0,we.useState)(!1),[nt,ct]=(0,we.useState)(!1),[pt,Zt]=(0,we.useState)(!1),[Oe,fn]=(0,we.useState)(),[Nt,Ln]=(0,we.useState)(),[Vn,yi]=(0,we.useState)(!0),[Ki,jn]=(0,we.useState)(),kn=(0,J.GJ)(),[qt,zr]=(0,we.useState)(new(ie())),[Jr,Ot]=(0,we.useState)(0),[Ct,Ir]=(0,we.useState)([]),[Fr,Tn]=(0,we.useState)(!1),[tn,Bn]=(0,we.useState)(!1),[gn,zn]=(0,we.useState)(""),[Xn,Qr]=(0,we.useState)(!1),[Gr,Sn]=(0,we.useState)(!0),[On,Qn]=(0,we.useState)(0),[Jn]=(0,O.useSearchParams)(),Ni=()=>v(void 0,null,function*(){(Se.userInfo.is_teacher||Se.userInfo.admin)&&(Qr(!0),Sn(!1))});(0,we.useEffect)(()=>{Ni(),console.log("\u6253\u5370\u7684------",Oe),console.log(P),zn(Oe==null?void 0:Oe.repeat_minus_score)},[Oe,Se]),(0,we.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Oe==null?void 0:Oe.work_score),Qn(Oe==null?void 0:Oe.work_score)},[Oe==null?void 0:Oe.work_score,gn]),(0,we.useEffect)(()=>(Ge({type:"globalSetting/footerToggle",payload:!1}),()=>{Ge({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,we.useEffect)(()=>{var Tr;if(Oe){let En=[];(Tr=Oe==null?void 0:Oe.target_test_sets)==null||Tr.map((hn,Ai)=>{var si;(si=hn==null?void 0:hn.targets)==null||si.map((ri,wi)=>{var Ti;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=wi===0?(Ti=hn==null?void 0:hn.targets)==null?void 0:Ti.length:0,ri.order=Ai+1,En.push(ri)})}),jn(En),Ge({type:"classroomList/getAssistantPermissions",payload:{course_id:Mt.coursesId}})}},[Oe]),(0,we.useEffect)(()=>{P.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&Ct.length>0&&Oe!=null&&Oe.course_name&&wr("all")},[Oe==null?void 0:Oe.course_name]),(0,we.useEffect)(()=>{console.log(vr),br(St({},vr))},[re.pathname]);const li=()=>{document.body.scrollIntoView()};function vn(){return v(this,null,function*(){var Tr,En,hn,Ai;const si=JSON.parse(localStorage.all_student_works_param||"{}"),ri=yield Ge({type:"shixunHomeworks/getAllStudentWorks",payload:St(St({},Mt),si)});Ir(ri.all_student_works);const wi=(Tr=ri.all_student_works)==null?void 0:Tr.map(Ti=>String(Ti.student_work_id)).indexOf(Mt.homeworkId);wi===((En=ri.all_student_works)==null?void 0:En.length)-1?rr({last:!0}):rr((hn=ri.all_student_works)==null?void 0:hn[wi+1]),ot(wi===0?{last:!0}:(Ai=ri.all_student_works)==null?void 0:Ai[wi-1])})}const hr=()=>{document.querySelectorAll("canvas").forEach(Tr=>{(!Tr.clientWidth||!Tr.clientHeight)&&Tr.remove()})},wr=Tr=>v(void 0,null,function*(){let En=0,hn;hn=I.default.info({width:460,title:Ze.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",Ze.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:Ze.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Ze.createElement("span",{className:"c-blue"},En+1),"/",Tr!=="all"?1:Ct==null?void 0:Ct.length,Ze.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:at.modal,onOk:()=>{}});const Ai={margin:[0,0],filename:`${Oe==null?void 0:Oe.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};function si(){return v(this,null,function*(){li(),En++,setTimeout(()=>v(this,null,function*(){var wi;hr();const Ti=qt.folder(`${(wi=Oe==null?void 0:Oe.stage_list[0])==null?void 0:wi.shixun_name}`),Bi=document.querySelector("#export-all").children;let zi=Jt()();for(let oa=0;oa<Bi.length;oa++)yield zi.set(Ai).from(Bi[oa]).toContainer().toCanvas().toPdf().get("pdf").then(Ei=>v(this,null,function*(){oa<Bi.length-1&&(yield Ei.addPage())}));Ti.file(`${Ct[En-1].student_work_user_name}.pdf`,zi.output("blob")),hn.update({content:Ze.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Ze.createElement("span",{className:"c-blue"},En),"/",Ct==null?void 0:Ct.length,Ze.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),En==(Ct==null?void 0:Ct.length)?(hn.destroy(),Or()):ri()}),2200)})}function ri(){return v(this,null,function*(){var wi,Ti,Bi,zi,oa;const Ei=yield(0,Y.ZP)(`/api/student_works/${Ct[En].student_work_id}/jupyter_work_report.json`,{method:"get"});if((Ei==null?void 0:Ei.status)===0)if(fn(Ei.data),(Ti=(wi=Ei==null?void 0:Ei.data)==null?void 0:wi.shixun_detail[0])!=null&&Ti.myshixun_identifier){yi(!0);const wn=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(zi=(Bi=Ei==null?void 0:Ei.data)==null?void 0:Bi.shixun_detail[0])==null?void 0:zi.myshixun_identifier,student_work_id:(oa=Ei==null?void 0:Ei.data)==null?void 0:oa.work_id}});wn.status===0&&(Ln(wn.html_content),yi(!1),en(),si())}else si()})}if(Tr!=="all"||(Ct==null?void 0:Ct.length)<2){hr(),li();const wi=Tt.current.children;let Ti=Jt()();const Bi=qt.folder(`${Oe==null?void 0:Oe.username}`);for(let zi=0;zi<wi.length;zi++)yield Ti.set(Ai).from(wi[zi]).toContainer().toCanvas().toPdf().get("pdf").then(oa=>v(void 0,null,function*(){zi<wi.length-1&&(yield oa.addPage())}));Gt(!1),Bi.file(`${Oe==null?void 0:Oe.username}.pdf`,Ti.output("blob"),{base64:!1}),hn.destroy(),Or();return}else ri()}),Or=()=>{qt.generateAsync({type:"blob"}).then(function(Tr){const En=document.createElement("a");En.href=window.URL.createObjectURL(Tr),En.download=(Oe==null?void 0:Oe.course_name)+".zip",document.body.appendChild(En);const hn=document.createEvent("MouseEvents");hn.initEvent("click",!1,!1),En.dispatchEvent(hn),document.body.removeChild(En),zr(new(ie()))}),Zt(!1)};(0,we.useEffect)(()=>{Hn()},[Mt.homeworkId]),(0,we.useEffect)(()=>{Oe!=null&&Oe.work_id&&((0,J.GJ)()||Oe!=null&&Oe.is_anonymous)&&vn()},[Oe==null?void 0:Oe.work_id]),(0,we.useEffect)(()=>{console.log(Oe)},[Oe]);const Hr=()=>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&&fn(Tr.data)}),Ur=()=>v(void 0,null,function*(){var Tr,En,hn,Ai,si;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&&(fn(ri.data),(En=(Tr=ri==null?void 0:ri.data)==null?void 0:Tr.shixun_detail[0])!=null&&En.myshixun_identifier)){yi(!0);const wi=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(Ai=(hn=ri==null?void 0:ri.data)==null?void 0:hn.shixun_detail[0])==null?void 0:Ai.myshixun_identifier,student_work_id:(si=ri==null?void 0:ri.data)==null?void 0:si.work_id}});if(wi.status===0){Ln(wi.html_content),yi(!1),on(wi.html_content);return}}}),on=Tr=>{var En,hn;(hn=(En=Tr==null?void 0:Tr.match)==null?void 0:En.call(Tr,/<script [^>]*src=['"]([^'"]+)[^>]*>/gi))==null||hn.map(Ai=>{const si=document.createElement("script");si.src=/<script [^>]*src=['"]([^'"]+)[^>]*>/gi.exec(Ai)[1],document.body.appendChild(si)}),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*(){ct(!0),Ur(),ct(!1)}),ti=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0,render:(Tr,En,hn)=>Tr},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:Oe!=null&&Oe.is_anonymous?220:170,render:Tr=>Tr||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:Oe!=null&&Oe.is_anonymous?140:90},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:Oe!=null&&Oe.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,En)=>Ze.createElement("div",null,Ze.createElement("span",{style:{color:parseFloat(En.score_full)!==parseFloat(Tr)?"red":"green"}},Tr||0),"/",En.score_full)},{title:"\u8C03\u5206",dataIndex:"action",width:110,render:(Tr,En)=>kn?Ze.createElement(me,{max:En.score_full,onBlur:hn=>v(void 0,null,function*(){var Ai;if((0,J.Rm)()&&!((Ai=te.AssistantObject.practice)!=null&&Ai.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 si=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/adjust_score.json`,{method:"post",body:{score:hn}});Hr(),si.status===0&&n.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Tr}].filter(Tr=>Oe!=null&&Oe.is_anonymous?!["late_penalty","absence_penalty","score","action"].includes(Tr.dataIndex):!0),ui=Oe==null?void 0:Oe.comment_scores.map(Tr=>{var En,hn,Ai;return{children:Ze.createElement(o.Z,null,Ze.createElement(L.Z,{span:24},Ze.createElement(o.Z,null,Ze.createElement(L.Z,{flex:1},Ze.createElement("span",{className:"c-light-black mr10"},Tr.user_name),Ze.createElement("span",null,"\u8C03\u5206\u4E3A"),Ze.createElement("span",{className:"ml10 c-orange"},Tr.score?Tr.score:0,"\u5206")),Ze.createElement(L.Z,null,Ze.createElement("span",{className:"c-light-black ml10"},Tr.comment_time)))),Ze.createElement(L.Z,{span:24,className:"mt8"},Ze.createElement(o.Z,{className:"mt8"},Ze.createElement(L.Z,{span:22},Tr.content?Ze.createElement("span",{style:{color:"#333333"}},Tr.content):Ze.createElement("span",{className:"c-light-black"},"\u6682\u672A\u5199\u8BC4\u8BED")),Ze.createElement(L.Z,{className:"tr",span:2},(Tr==null?void 0:Tr.can_appeal)&&!(Tr!=null&&Tr.is_invalid)&&Ze.createElement(p.ZP,{size:"small",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u533F\u8BC4\u7533\u8BC9",selectArrs:{data:St({},Tr)}}})}},"\u7533\u8BC9")))),!!(Tr!=null&&Tr.appeal_info)&&Ze.createElement(L.Z,{span:24,className:"mt8"},Ze.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15}},Ze.createElement(o.Z,{justify:"space-between"},Ze.createElement("span",null,Ze.createElement("span",{className:"c-grey-333"},(En=Tr==null?void 0:Tr.appeal_info)==null?void 0:En.user_name),Ze.createElement("span",null,(Tr==null?void 0:Tr.appeal_status)===1&&Ze.createElement("span",{className:`tag-style bg-orange ml10 ${at.tag}`},"\u7533\u8BC9\u4E2D"),(Tr==null?void 0:Tr.appeal_status)===2&&Ze.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&&Ze.createElement("span",{className:`tag-style ml10 ${at.tag}`,style:{background:"#57BE40"}},"\u7533\u8BC9\u6210\u529F"),(Tr==null?void 0:Tr.appeal_status)===4&&Ze.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&&Ze.createElement("span",{className:`tag-style c-light-black ml10 ${at.tag}`,style:{background:"#E9EAED"}},"\u7533\u8BC9\u5931\u8D25"))),Ze.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"))),Ze.createElement(o.Z,{justify:"space-between",className:"mt10"},Ze.createElement(L.Z,{flex:1},(Ai=Tr.appeal_info)==null?void 0:Ai.content),Ze.createElement(L.Z,{style:{flexShrink:0,marginLeft:"auto"}},(Tr==null?void 0:Tr.appeal_status)===1&&(0,J.GJ)()&&Ze.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 si=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Tr.score_id,status:3}});(si==null?void 0:si.status)===0&&Hr()})})},className:"c-red current"},"\u63A5\u53D7\u7533\u8BC9"),(Tr==null?void 0:Tr.appeal_status)===1&&(0,J.GJ)()&&Ze.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 si=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Tr.score_id,status:4}});(si==null?void 0:si.status)===0&&Hr()})})},className:"c-light-black current ml10"},"\u62D2\u7EDD\u7533\u8BC9"))))))}}),Ri=Tr=>{Ln(null),Ge({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=${Jn.get("page")}`):O.history.push(`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/${Me==null?void 0:Me.student_work_id}/comment?page=${Jn.get("page")}`)},200)},Oi=Tr=>{zn(""),Tr.target.value&&(console.log("\u8FDB\u6765",Oe),Tr.target.value=Tr.target.value>(Oe==null?void 0:Oe.repeat_setting_score)?Oe==null?void 0:Oe.repeat_setting_score:Tr.target.value,zn(Tr.target.value))},Qi=()=>v(void 0,null,function*(){const Tr=yield(0,Y.ZP)(`/api/student_works/${Oe==null?void 0:Oe.work_id}/update_repeat_score`,{method:"put",body:{score:gn}});yield Ge({type:"shixunHomeworks/gethomeWorkReport",payload:St({},Mt)}),Tr.status===0&&n.ZP.info("\u64CD\u4F5C\u6210\u529F")});return console.log(!!(Oe!=null&&Oe.category),Oe==null?void 0:Oe.course_id,"homeWorkReport"),Ze.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},Ze.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},Ze.createElement(a.Z,{loading:nt,active:!0,avatar:{size:40},paragraph:{rows:5}},Ze.createElement("div",{className:"edu-container"},(Oe==null?void 0:Oe.course_id)&&Ze.createElement("section",{className:"animated fadeIn"},Ze.createElement("aside",{className:""},(Oe==null?void 0:Oe.category)&&Ze.createElement(A.Z,{separator:">"},Ze.createElement(A.Z.Item,null,Ze.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework`},Oe==null?void 0:Oe.course_name)),Ze.createElement(A.Z.Item,null,Ze.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe!=null&&Oe.category.main?"":Oe==null?void 0:Oe.category.category_id}`},Oe==null?void 0:Oe.category.category_name)),Ze.createElement(A.Z.Item,null,Ze.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe==null?void 0:Oe.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),Ze.createElement(A.Z.Item,null,Oe==null?void 0:Oe.username))),Ze.createElement("aside",{className:[at.title1,"mt20"].join(" ")},Ze.createElement(o.Z,{align:"middle"},Ze.createElement(L.Z,{flex:1},Ze.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe==null?void 0:Oe.homework_common_id}/detail?page=${Jn.get("page")}`},Ze.createElement(V.Z,{className:"font16 c-black"})),Ze.createElement("strong",{style:{fontWeight:700},className:"font20 ml5"},Oe==null?void 0:Oe.shixun_name),Ze.createElement(be.VV,{status:Oe==null?void 0:Oe.homework_status})),Ze.createElement(L.Z,{className:at.title1_right},!(Oe!=null&&Oe.is_anonymous)&&!!(Oe!=null&&Oe.work_status)&&Ze.createElement(p.ZP,null,Ze.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),Ze.createElement(O.Link,{className:"c-black",target:"_blank",to:`/tasks/${(Xe=(Ke=Oe==null?void 0:Oe.shixun_detail)==null?void 0:Ke[0])==null?void 0:Xe.myshixun_identifier}/jupyter${(0,J.GJ)()?"":`?homework_common_id=${vr.categoryId}`}`},(0,J.GJ)()?"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD":"\u67E5\u770B\u5B9E\u8BAD")),(0,J.GJ)()&&!((At=Oe==null?void 0:Oe.homework_status)!=null&&At.includes("\u5DF2\u622A\u6B62"))&&Ze.createElement(p.ZP,{className:"ml10",onClick:()=>v(void 0,null,function*(){yield Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"redoShixunModal",homework_common_id:vr.categoryId,student_work_id:vr.homeworkId}})})},Ze.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),!(Oe!=null&&Oe.is_anonymous)&&Ze.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}wr("")},loading:Yt},Ze.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,J.GJ)()&&(Ct==null?void 0:Ct.length)>1&&Ze.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}wr("all")}},Ze.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),Ze.createElement("aside",{className:"mt30 relative"})),Ze.createElement("aside",{className:"edu-container bg-white",ref:Zr},Ze.createElement("div",{id:"export-all",ref:Tt},Ze.createElement("div",{id:"export-all-1"},Ze.createElement("div",{className:at.title},Ze.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),Ze.createElement("div",null,!((We=Oe==null?void 0:Oe.homework_status)!=null&&We.includes("\u5DF2\u622A\u6B62")&&(0,J.dE)())&&((0,J.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&Ze.createElement(p.ZP,{className:"mr20",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Oe==null?void 0:Oe.user_id,data:St({},Oe)}}})}},Ze.createElement(ee.Z,null),Oe!=null&&Oe.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),Ze.createElement(m.Z,{style:{marginTop:0}}),Ze.createElement(o.Z,{className:"pl30 pr30"},Ze.createElement(L.Z,null,Ze.createElement("img",{className:at.userPic,src:`${le.Z.IMG_SERVER}/images/${Oe==null?void 0:Oe.image_url}`,alt:Oe==null?void 0:Oe.username})),Ze.createElement(L.Z,{className:"pt20"},Ze.createElement("span",{className:"font16 ml40"},Oe==null?void 0:Oe.username),Ze.createElement(be.Y,{status:Oe==null?void 0:Oe.work_status}),Ze.createElement("ul",{className:at.userInfo},Ze.createElement("li",null,"\u5B66\u53F7\uFF1A",(Oe==null?void 0:Oe.student_id)||"--"),((0,J.GJ)()||!(Oe!=null&&Oe.is_anonymous))&&Ze.createElement("li",null,"\u5206\u73ED\uFF1A",(Oe==null?void 0:Oe.group_name)||"--"),Ze.createElement("br",null)))),Ze.createElement("aside",{className:"pl30 pr30 mt30 mb10"},Ze.createElement(S.default,{dataSource:Oe==null?void 0:Oe.stage_list,rowKey:Tr=>Tr==null?void 0:Tr.challenge_id,pagination:!1,columns:ti})),((Oe==null?void 0:Oe.work_comment_hidden)||(Oe==null?void 0:Oe.work_comment))&&Ze.createElement("div",null,Ze.createElement(o.Z,{align:"middle"},Ze.createElement(L.Z,{flex:1},Ze.createElement("h1",{className:at.title},"\u70B9\u8BC4\u5185\u5BB9")),Ze.createElement(L.Z,{className:"pr30"},(0,J.GJ)()&&Ze.createElement(p.ZP,{onClick:()=>v(void 0,null,function*(){I.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:Ze.createElement(B.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return v(this,null,function*(){(yield(0,Rt.gZ)({comment_id:Oe==null?void 0:Oe.comment_id,homeworkId:Mt.homeworkId})).status===0&&(n.ZP.success("\u5220\u9664\u6210\u529F"),Hr())})}})})},Ze.createElement(z.Z,null),"\u5220\u9664"))),(Oe==null?void 0:Oe.work_comment)&&Ze.createElement("aside",{className:"pl30 pr30",style:{marginTop:"-5px"}},Ze.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ze.createElement("br",null),Ze.createElement(rt.Z,{value:Oe==null?void 0:Oe.work_comment,className:"font14"})),(Oe==null?void 0:Oe.work_comment_hidden)&&Ze.createElement("aside",{className:"pl30 pr30 mt15"},Ze.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ze.createElement("br",null),Ze.createElement(rt.Z,{value:Oe==null?void 0:Oe.work_comment_hidden,className:"font14"}))),(Oe==null?void 0:Oe.comment_scores.length)>0&&Ze.createElement(Ze.Fragment,null,Ze.createElement("h1",{className:at.title},"\u8C03\u5206\u539F\u56E0"),Ze.createElement("aside",{className:"pl30 pr30",style:{marginTop:"4px"}},Ze.createElement($.Z,{items:ui}))),(($e=Oe==null?void 0:Oe.shixun_detail[0])==null?void 0:$e.myshixun_identifier)&&Ze.createElement(Ze.Fragment,null,Ze.createElement("h1",{className:at.title,style:{marginTop:"-20px"}},"\u5B9E\u8BAD\u8BE6\u60C5"),Ze.createElement("aside",{className:"pl30 pr30"},Ze.createElement("div",{className:at.shixunWrp},Ze.createElement("h2",null,Ze.createElement("span",null,"\u8BC4\u6D4B\u4EE3\u7801",Ze.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")),Ze.createElement("span",null,Ze.createElement(F.default,{style:{width:200},value:(Bt=Oe==null?void 0:Oe.shixun_detail[0])==null?void 0:Bt.path}," ",Oe==null?void 0:Oe.shixun_detail.map(Tr=>Ze.createElement(Option,{value:Tr.path},Tr.path))," "))),Ze.createElement(H.Z,{spinning:Vn},Ze.createElement("div",{style:{width:"100%",minHeight:"550px",padding:"16px"},dangerouslySetInnerHTML:{__html:Nt}})))))))),((0,J.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&Ze.createElement("aside",{className:`${at.footerBar} ${Yt?at.footerBarStatic:""}`},Ze.createElement("aside",{className:"edu-container"},Ze.createElement(o.Z,{align:"middle"},Ze.createElement(L.Z,{flex:"1"},Ze.createElement(O.Link,{className:at.exitComment,to:`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/detail?page=${Jn.get("page")}`},"\u8FD4\u56DE\u5217\u8868")),Ze.createElement(L.Z,{flex:"1",className:"tr"},Ze.createElement(p.ZP,{type:"default",disabled:Me==null?void 0:Me.last,onClick:()=>Ri()},"\u4E0A\u4E00\u4E2A"),Ze.createElement(p.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:ue==null?void 0:ue.last,onClick:()=>Ri("next")},"\u4E0B\u4E00\u4E2A"),!((Kt=Oe==null?void 0:Oe.homework_status)!=null&&Kt.includes("\u5DF2\u622A\u6B62")&&(0,J.dE)())&&((0,J.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&Ze.createElement(p.ZP,{type:"primary",onClick:()=>v(void 0,null,function*(){Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Oe==null?void 0:Oe.user_id,data:St({},Oe)}}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),Ze.createElement(pe,{gethomeworkreport:Hr,homeWorkReport:Oe}),Ze.createElement(ve,{gethomeworkreport:Hr,homeWorkReport:Oe}),Ze.createElement(qe.Z,{getData:Hr}),Ze.createElement(I.default,{open:Fr,width:860,centered:!0,onCancel:()=>{Tn(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},Ze.createElement("div",{style:{color:"#333333",fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),Ze.createElement("br",null),Ze.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"),Ze.createElement("br",null),Ze.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"),Ze.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 "),Ze.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")),Ze.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),Ze.createElement("br",null),Ze.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 "),Ze.createElement("br",null),Ze.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"),Ze.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 "),Ze.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"),Ze.createElement("br",null),Ze.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")),Ze.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),Ze.createElement("br",null),Ze.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")),Ze.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),Ze.createElement("br",null),Ze.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"))),Ze.createElement(I.default,{open:tn,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Bn(!1)},width:600},Ze.createElement("div",{style:{fontWeight:400,color:"#333333"}},Ze.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Ze.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"),Ze.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Ze.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"),Ze.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Ze.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:W,loading:P,globalSetting:te,user:Ie})=>({shixunHomeworks:fe,classroomList:W,globalSetting:te,loading:P.effects,user:Ie}))(f)},45633:function(bn,Wt,g){"use strict";var we=g(43418),Fe=g(8591),se=g(99064),ke=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)){Fe.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&&(Fe.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?"));Wt.Z=(0,ke.connect)(({shixunHomeworks:n,classroomList:o})=>({shixunHomeworks:n,classroomList:o}))(I)},24768:function(bn,Wt,g){"use strict";g.d(Wt,{AL:function(){return ee},Iy:function(){return L},Qv:function(){return A},ez:function(){return V},jb:function(){return p}});var we=g(32834),Fe=g.n(we),se=g(11690),ke=g.n(se);let ie=1;function Y(be,Ce){const Le=be.match(/^(\s+)(?:```)/);if(Le===null)return Ce;const ae=Le[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(Fe()).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,Le,ae){if(Ce>=be.length||be[Ce].level<=Le)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,Le,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 Le=Ce[0];let ae=Y(Le,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:Le,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,Le)=>{const ae=F();return H[ae]={type:"inline",expression:Le},ae}),be}const z=n.listitem;n.listitem=function(be){return z(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,Le){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}">${Le?be:(0,se.escape)(be,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Le?be:(0,se.escape)(be,!0))+"</code></pre>"},n.heading=function(be,Ce,Le){let ae=this.options.headerPrefix+Le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return O.push({anchor:ae,level:Ce,text:be}),"<h"+Ce+' id="'+ie+ae+'">'+be+"</h"+Ce+">"},Fe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Fe().use({tokenizer:m,renderer:n}),Wt.ZP=Fe()},36785:function(bn,Wt,g){"use strict";g.d(Wt,{o2:function(){return ie},yT:function(){return Y}});var we=g(26407),Fe=g(33166);const se=Fe.i.map(O=>`${O}-inverse`),ke=["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)(Fe.i)).includes(O):Fe.i.includes(O)}function Y(O){return ke.includes(O)}},50371:function(bn,Wt){"use strict";function g(){const we=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Fe=1;Fe<arguments.length;Fe++){const se=Fe<0||arguments.length<=Fe?void 0:arguments[Fe];se&&Object.keys(se).forEach(ke=>{const ie=se[ke];ie!==void 0&&(we[ke]=ie)})}return we}Wt.Z=g},13845:function(bn,Wt,g){"use strict";g.d(Wt,{F:function(){return we},Z:function(){return Fe}});function we(se){return se!=null&&se===se.window}function Fe(se,ke){var ie,Y;if(typeof window=="undefined")return 0;const O=ke?"scrollTop":"scrollLeft";let I=0;return we(se)?I=se[ke?"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,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var we=g(59301);function Fe(){const[,se]=we.useReducer(ke=>ke+1,0);return se}},79676:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Y}});var we=g(19447);function Fe(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"]}},ke={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&&ke[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=Fe(S,H,I,n),a&&(F.htmlRegion="visibleFirst")}),m}},68031:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return ke}});var we=g(16089);function Fe(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 ke(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=Fe(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,Wt,g){"use strict";g.d(Wt,{F:function(){return ie},Z:function(){return ke}});var we=g(92310),Fe=g.n(we);const se=null;function ke(Y,O,I){return Fe()({[`${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,Wt,g){"use strict";g.d(Wt,{Z:function(){return Ee}});var we=g(92310),Fe=g.n(we),se=g(11592),ke=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 N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);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"),(_,N)=>he[N]||_)}function A(oe,he,ve,_){if(ve==null)return null;const{className:N,onClick:X}=he,pe=p(he,["className","onClick"]),qe=Object.assign(Object.assign({},(0,ke.Z)(pe,{data:!0,aria:!0})),{onClick:X});return _!==void 0?ie.createElement("a",Object.assign({},qe,{className:Fe()(`${oe}-link`,N),href:_}),ve):ie.createElement("span",Object.assign({},qe,{className:Fe()(`${oe}-link`,N)}),ve)}function m(oe,he){return(_,N,X,pe,qe)=>{if(he)return he(_,N,X,pe);const at=a(_,N);return A(oe,_,at,qe)}}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 N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);return ve};const $=oe=>{const{prefixCls:he,separator:ve="/",children:_,menu:N,overlay:X,dropdownProps:pe,href:qe}=oe,rt=(Rt=>{if(N||X){const lr=Object.assign({},pe);if(N){const Jt=N||{},{items:Ze}=Jt,Er=S(Jt,["items"]);lr.menu=Object.assign(Object.assign({},Er),{items:Ze==null?void 0:Ze.map((Cr,Kr)=>{var{key:_r,title:Ue,label:St,path:G}=Cr,v=S(Cr,["key","title","label","path"]);let f=St!=null?St:Ue;return G&&(f=ie.createElement("a",{href:`${qe}${G}`},f)),Object.assign(Object.assign({},v),{key:_r!=null?_r:Kr,label:f})})})}else X&&(lr.overlay=X);return ie.createElement(n.Z,Object.assign({placement:"bottom"},lr),ie.createElement("span",{className:`${he}-overlay-link`},Rt,ie.createElement(I.Z,null)))}return Rt})(_);return rt!=null?ie.createElement(ie.Fragment,null,ie.createElement("li",null,rt),ve&&ie.createElement(L,null,ve)):null},F=oe=>{const{prefixCls:he,children:ve,href:_}=oe,N=S(oe,["prefixCls","children","href"]),{getPrefixCls:X}=ie.useContext(O.E_),pe=X("breadcrumb",he);return ie.createElement($,Object.assign({},N,{prefixCls:pe}),A(pe,N,ve,_))};F.__ANT_BREADCRUMB_ITEM=!0;var H=F,V=g(17313),ee=g(83116),B=g(37613);const z=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[z(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 N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);return ve};function be(oe){const{breadcrumbName:he,children:ve}=oe,_=J(oe,["breadcrumbName","children"]),N=Object.assign({title:he},_);return ve&&(N.menu={items:ve.map(X=>{var{breadcrumbName:pe}=X,qe=J(X,["breadcrumbName"]);return Object.assign(Object.assign({},qe),{title:pe})})}),N}function Ce(oe,he){return(0,ie.useMemo)(()=>oe||(he?he.map(be):null),[oe,he])}var Le=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 N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);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:N,rootClassName:X,routes:pe,items:qe,children:at,itemRender:rt,params:Rt={}}=oe,lr=Le(oe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Jt,direction:Ze,breadcrumb:Er}=ie.useContext(O.E_);let Cr;const Kr=Jt("breadcrumb",he),[_r,Ue]=le(Kr),St=Ce(qe,pe),G=m(Kr,rt);if(St&&St.length>0){const D=[],fe=qe||pe;Cr=St.map((W,P)=>{const{path:te,key:Ie,type:Te,menu:Se,overlay:Ge,onClick:dt,className:Ke,separator:Xe,dropdownProps:At}=W,We=ae(Rt,te);We!==void 0&&D.push(We);const $e=Ie!=null?Ie:P;if(Te==="separator")return ie.createElement(L,{key:$e},Xe);const Bt={},Kt=P===St.length-1;Se?Bt.menu=Se:Ge&&(Bt.overlay=Ge);let{href:Mt}=W;return D.length&&We!==void 0&&(Mt=`#/${D.join("/")}`),ie.createElement($,Object.assign({key:$e},Bt,(0,ke.Z)(W,{data:!0,aria:!0}),{className:Ke,dropdownProps:At,href:Mt,separator:Kt?"":ve,onClick:dt,prefixCls:Kr}),G(W,Rt,fe,D,Mt))})}else if(at){const D=(0,se.Z)(at).length;Cr=(0,se.Z)(at).map((fe,W)=>{if(!fe)return fe;const P=W===D-1;return(0,Y.Tm)(fe,{separator:P?"":ve,key:W})})}const v=Fe()(Kr,Er==null?void 0:Er.className,{[`${Kr}-rtl`]:Ze==="rtl"},N,X,Ue),f=Object.assign(Object.assign({},Er==null?void 0:Er.style),_);return _r(ie.createElement("nav",Object.assign({className:v,style:f},lr),ie.createElement("ol",null,Cr)))};me.Item=H,me.Separator=L;var T=me,Ee=T},24905:function(bn,Wt,g){"use strict";g.d(Wt,{default:function(){return le}});var we=g(92310),Fe=g.n(we),se=g(5630),ke=g(59301),ie=g(36355),Y=g(1684),O=g(32441),n=ke.createContext(null),o=g(98447),L=g(14088),p=g(4572),a=function(J,be){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&be.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce};const A=(J,be)=>{var Ce;const{prefixCls:Le,className:ae,rootClassName:me,children:T,indeterminate:Ee=!1,style:oe,onMouseEnter:he,onMouseLeave:ve,skipGroup:_=!1,disabled:N}=J,X=a(J,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pe,direction:qe,checkbox:at}=ke.useContext(ie.E_),rt=ke.useContext(n),{isFormItemInput:Rt}=ke.useContext(O.aM),lr=ke.useContext(Y.Z),Jt=(Ce=(rt==null?void 0:rt.disabled)||N)!==null&&Ce!==void 0?Ce:lr,Ze=ke.useRef(X.value);ke.useEffect(()=>{rt==null||rt.registerValue(X.value)},[]),ke.useEffect(()=>{if(!_)return X.value!==Ze.current&&(rt==null||rt.cancelValue(Ze.current),rt==null||rt.registerValue(X.value),Ze.current=X.value),()=>rt==null?void 0:rt.cancelValue(X.value)},[X.value]);const Er=pe("checkbox",Le),[Cr,Kr]=(0,o.ZP)(Er),_r=Object.assign({},X);rt&&!_&&(_r.onChange=function(){X.onChange&&X.onChange.apply(X,arguments),rt.toggleOption&&rt.toggleOption({label:T,value:X.value})},_r.name=rt.name,_r.checked=rt.value.includes(X.value));const Ue=Fe()(`${Er}-wrapper`,{[`${Er}-rtl`]:qe==="rtl",[`${Er}-wrapper-checked`]:_r.checked,[`${Er}-wrapper-disabled`]:Jt,[`${Er}-wrapper-in-form-item`]:Rt},at==null?void 0:at.className,ae,me,Kr),St=Fe()({[`${Er}-indeterminate`]:Ee},p.A,Kr),G=Ee?"mixed":void 0;return Cr(ke.createElement(L.Z,{component:"Checkbox",disabled:Jt},ke.createElement("label",{className:Ue,style:Object.assign(Object.assign({},at==null?void 0:at.style),oe),onMouseEnter:he,onMouseLeave:ve},ke.createElement(se.Z,Object.assign({"aria-checked":G},_r,{prefixCls:Er,className:St,disabled:Jt,ref:be})),T!==void 0&&ke.createElement("span",null,T))))};var S=ke.forwardRef(A),$=g(26407),F=g(2738),H=function(J,be){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&be.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce};const V=(J,be)=>{const{defaultValue:Ce,children:Le,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:N}=ke.useContext(ie.E_),[X,pe]=ke.useState(ve.value||Ce||[]),[qe,at]=ke.useState([]);ke.useEffect(()=>{"value"in ve&&pe(ve.value||[])},[ve.value]);const rt=ke.useMemo(()=>ae.map(v=>typeof v=="string"||typeof v=="number"?{label:v,value:v}:v),[ae]),Rt=v=>{at(f=>f.filter(D=>D!==v))},lr=v=>{at(f=>[].concat((0,$.Z)(f),[v]))},Jt=v=>{const f=X.indexOf(v.value),D=(0,$.Z)(X);f===-1?D.push(v.value):D.splice(f,1),"value"in ve||pe(D),he==null||he(D.filter(fe=>qe.includes(fe)).sort((fe,W)=>{const P=rt.findIndex(Ie=>Ie.value===fe),te=rt.findIndex(Ie=>Ie.value===W);return P-te}))},Ze=_("checkbox",me),Er=`${Ze}-group`,[Cr,Kr]=(0,o.ZP)(Ze),_r=(0,F.Z)(ve,["value","disabled"]),Ue=ae.length?rt.map(v=>ke.createElement(S,{prefixCls:Ze,key:v.value.toString(),disabled:"disabled"in v?v.disabled:ve.disabled,value:v.value,checked:X.includes(v.value),onChange:v.onChange,className:`${Er}-item`,style:v.style,title:v.title},v.label)):Le,St={toggleOption:Jt,value:X,disabled:ve.disabled,name:ve.name,registerValue:lr,cancelValue:Rt},G=Fe()(Er,{[`${Er}-rtl`]:N==="rtl"},T,Ee,Kr);return Cr(ke.createElement("div",Object.assign({className:G,style:oe},_r,{ref:be}),ke.createElement(n.Provider,{value:St},Ue)))},ee=ke.forwardRef(V);var B=ke.memo(ee);const z=S;z.Group=B,z.__ANT_CHECKBOX=!0;var le=z},98447:function(bn,Wt,g){"use strict";g.d(Wt,{C2:function(){return ie}});var we=g(17313),Fe=g(37613),se=g(83116);const ke=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,Fe.TS)(O,{checkboxCls:`.${Y}`,checkboxSize:O.controlInteractiveSize});return[ke(I)]}Wt.ZP=(0,se.Z)("Checkbox",(Y,O)=>{let{prefixCls:I}=O;return[ie(I,Y)]})},93891:function(bn,Wt,g){"use strict";var we=g(59301),Fe=g(36355),se=g(64165);const ke=ie=>{const{componentName:Y}=ie,{getPrefixCls:O}=(0,we.useContext)(Fe.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)}};Wt.Z=ke},28103:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return p}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=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(ke.E_),{prefixCls:$,type:F="horizontal",orientation:H="center",orientationMargin:V,className:ee,rootClassName:B,children:z,dashed:le,plain:J,style:be}=a,Ce=o(a,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Le=A("divider",$),[ae,me]=n(Le),T=H.length>0?`-${H}`:H,Ee=!!z,oe=H==="left"&&V!=null,he=H==="right"&&V!=null,ve=Fe()(Le,S==null?void 0:S.className,me,`${Le}-${F}`,{[`${Le}-with-text`]:Ee,[`${Le}-with-text${T}`]:Ee,[`${Le}-dashed`]:!!le,[`${Le}-plain`]:!!J,[`${Le}-rtl`]:m==="rtl",[`${Le}-no-default-orientation-margin-left`]:oe,[`${Le}-no-default-orientation-margin-right`]:he},ee,B),_=se.useMemo(()=>typeof V=="number"?V:/^\d+$/.test(V)?Number(V):V,[V]),N=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"}),z&&F!=="vertical"&&se.createElement("span",{className:`${Le}-inner-text`,style:N},z)))}},91857:function(bn,Wt,g){"use strict";var we=g(59301),Fe=g(38819),se=g(92310),ke=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:z,arrow:le,prefixCls:J,children:be,trigger:Ce,disabled:Le,dropdownRender:ae,getPopupContainer:me,overlayClassName:T,rootClassName:Ee,open:oe,onOpenChange:he,visible:ve,onVisibleChange:_,mouseEnterDelay:N=.15,mouseLeaveDelay:X=.1,autoAdjustOverflow:pe=!0,placement:qe="",overlay:at,transitionName:rt}=B,{getPopupContainer:Rt,getPrefixCls:lr,direction:Jt}=we.useContext(p.E_),Ze=we.useMemo(()=>{const Se=lr();return rt!==void 0?rt:qe.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[lr,qe,rt]),Er=we.useMemo(()=>qe?qe.includes("Center")?qe.slice(0,qe.indexOf("Center")):qe:Jt==="rtl"?"bottomRight":"bottomLeft",[qe,Jt]),Cr=lr("dropdown",J),[Kr,_r]=(0,S.Z)(Cr),[,Ue]=(0,m.Z)(),St=we.Children.only(be),G=(0,L.Tm)(St,{className:ke()(`${Cr}-trigger`,{[`${Cr}-rtl`]:Jt==="rtl"},St.props.className),disabled:Le}),v=Le?[]:Ce;let f;v&&v.includes("contextMenu")&&(f=!0);const[D,fe]=(0,O.Z)(!1,{value:oe!=null?oe:ve}),W=(0,Y.useEvent)(Se=>{he==null||he(Se),_==null||_(Se),fe(Se)}),P=ke()(T,Ee,_r,{[`${Cr}-rtl`]:Jt==="rtl"}),te=(0,n.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:pe,offset:Ue.marginXXS,arrowWidth:le?Ue.sizePopupArrow:0,borderRadius:Ue.borderRadius}),Ie=we.useCallback(()=>{fe(!1)},[]),Te=()=>{let Se;return z!=null&&z.items?Se=we.createElement(a.default,Object.assign({},z)):typeof at=="function"?Se=at():Se=at,ae&&(Se=ae(Se)),Se=we.Children.only(typeof Se=="string"?we.createElement("span",null,Se):Se),we.createElement(A.J,{prefixCls:`${Cr}-menu`,expandIcon:we.createElement("span",{className:`${Cr}-menu-submenu-arrow`},we.createElement(Fe.Z,{className:`${Cr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ie,validator:Ge=>{let{mode:dt}=Ge}},Se)};return Kr(we.createElement(ie.Z,Object.assign({alignPoint:f},(0,I.Z)(B,["rootClassName"]),{mouseEnterDelay:N,mouseLeaveDelay:X,visible:D,builtinPlacements:te,arrow:!!le,overlayClassName:P,prefixCls:Cr,getPopupContainer:me||Rt,transitionName:Ze,trigger:v,overlay:Te,placement:Er,onVisibleChange:W}),G))};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,Wt.Z=F},38854:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return m}});var we=g(91857),Fe=g(92310),se=g.n(Fe),ke=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}=ke.useContext(O.E_),{prefixCls:V,type:ee="default",danger:B,disabled:z,loading:le,onClick:J,htmlType:be,children:Ce,className:Le,menu:ae,arrow:me,autoFocus:T,overlay:Ee,trigger:oe,align:he,open:ve,onOpenChange:_,placement:N,getPopupContainer:X,href:pe,icon:qe=ke.createElement(ie.Z,null),title:at,buttonsRender:rt=Te=>Te,mouseEnterDelay:Rt,mouseLeaveDelay:lr,overlayClassName:Jt,overlayStyle:Ze,destroyPopupOnHide:Er,dropdownRender:Cr}=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),Ue=`${_r}-button`,[St,G]=(0,o.Z)(_r),v={menu:ae,arrow:me,autoFocus:T,align:he,disabled:z,trigger:z?[]:oe,onOpenChange:_,getPopupContainer:X||$,mouseEnterDelay:Rt,mouseLeaveDelay:lr,overlayClassName:Jt,overlayStyle:Ze,destroyPopupOnHide:Er,dropdownRender:Cr},{compactSize:f,compactItemClassnames:D}=(0,n.ri)(_r,H),fe=se()(Ue,D,Le,G);"overlay"in S&&(v.overlay=Ee),"open"in S&&(v.open=ve),"placement"in S?v.placement=N:v.placement=H==="rtl"?"bottomLeft":"bottomRight";const W=ke.createElement(Y.ZP,{type:ee,danger:B,disabled:z,loading:le,onClick:J,htmlType:be,href:pe,title:at},Ce),P=ke.createElement(Y.ZP,{type:ee,danger:B,icon:qe}),[te,Ie]=rt([W,P]);return St(ke.createElement(I.Z.Compact,Object.assign({className:fe,size:f,block:!0},Kr),te,ke.createElement(we.Z,Object.assign({},v),Ie)))};p.__ANT_BUTTON=!0;var a=p;const A=we.Z;A.Button=a;var m=A},47211:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return L}});var we=g(17313),Fe=g(13826),se=g(92899),ke=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:z,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:Fe.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:Fe.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:Fe.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:Fe.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:z,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,Fe.oN)(p,"slide-up"),(0,Fe.oN)(p,"slide-down"),(0,se.Fm)(p,"move-up"),(0,se.Fm)(p,"move-down"),(0,ke._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,z=($-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:z,dropdownEdgeChildPadding:V});return[o(J),n(J)]},p=>({zIndexPopup:p.zIndexPopupBase+50}))},64165:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return V}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=g(9763),Y=g(64993),O=g(88088),n=()=>{const[,ee]=(0,O.Z)(),z=new Y.C(ee.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return se.createElement("svg",{style:z,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:z,colorFillQuaternary:le,colorBgContainer:J}=ee,{borderColor:be,shadowColor:Ce,contentColor:Le}=(0,se.useMemo)(()=>({borderColor:new Y.C(B).onBackground(J).toHexShortString(),shadowColor:new Y.C(z).onBackground(J).toHexShortString(),contentColor:new Y.C(le).onBackground(J).toHexShortString()}),[B,z,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:Le}))))},p=g(83116),a=g(37613);const A=ee=>{const{componentCls:B,margin:z,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:z},"&-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:z}=ee,le=(0,a.TS)(ee,{emptyImgCls:`${B}-img`,emptyImgHeight:z*2.5,emptyImgHeightMD:z,emptyImgHeightSM:z*.875});return[A(le)]}),S=function(ee,B){var z={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&B.indexOf(le)<0&&(z[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])&&(z[le[J]]=ee[le[J]]);return z};const $=se.createElement(n,null),F=se.createElement(L,null),H=ee=>{var{className:B,rootClassName:z,prefixCls:le,image:J=$,description:be,children:Ce,imageStyle:Le,style:ae}=ee,me=S(ee,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:T,direction:Ee,empty:oe}=se.useContext(ke.E_),he=T("empty",le),[ve,_]=m(he),[N]=(0,ie.Z)("Empty"),X=typeof be!="undefined"?be:N==null?void 0:N.description,pe=typeof X=="string"?X:"empty";let qe=null;return typeof J=="string"?qe=se.createElement("img",{alt:pe,src:J}):qe=J,ve(se.createElement("div",Object.assign({className:Fe()(_,he,oe==null?void 0:oe.className,{[`${he}-normal`]:J===F,[`${he}-rtl`]:Ee==="rtl"},B,z),style:Object.assign(Object.assign({},oe==null?void 0:oe.style),ae)},me),se.createElement("div",{className:`${he}-image`,style:Le},qe),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,Wt,g){"use strict";g.d(Wt,{default:function(){return kn}});var we=g(26407),Fe=g(92310),se=g.n(Fe),ke=g(77900),ie=g(59301),Y=g(62892),O=g(32441);function I(qt){const[zr,Jr]=ie.useState(qt);return ie.useEffect(()=>{const Ot=setTimeout(()=>{Jr(qt)},qt.length?0:10);return()=>{clearTimeout(Ot)}},[qt]),zr}var n=g(17313),o=g(29878),L=g(8378),p=g(37613),a=g(83116),m=qt=>{const{componentCls:zr}=qt,Jr=`${zr}-show-help`,Ot=`${zr}-show-help-item`;return{[Jr]:{transition:`opacity ${qt.motionDurationSlow} ${qt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ot]:{overflow:"hidden",transition:`height ${qt.motionDurationSlow} ${qt.motionEaseInOut},
|
|
|
opacity ${qt.motionDurationSlow} ${qt.motionEaseInOut},
|
|
|
transform ${qt.motionDurationSlow} ${qt.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=qt=>({legend:{display:"block",width:"100%",marginBottom:qt.marginLG,padding:0,color:qt.colorTextDescription,fontSize:qt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${qt.lineWidth}px ${qt.lineType} ${qt.colorBorder}`},label:{fontSize:qt.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 ${qt.controlOutlineWidth}px ${qt.controlOutline}`},output:{display:"block",paddingTop:15,color:qt.colorText,fontSize:qt.fontSize,lineHeight:qt.lineHeight}}),$=(qt,zr)=>{const{formItemCls:Jr}=qt;return{[Jr]:{[`${Jr}-label > label`]:{height:zr},[`${Jr}-control-input`]:{minHeight:zr}}}},F=qt=>{const{componentCls:zr}=qt;return{[qt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(qt)),S(qt)),{[`${zr}-text`]:{display:"inline-block",paddingInlineEnd:qt.paddingSM},"&-small":Object.assign({},$(qt,qt.controlHeightSM)),"&-large":Object.assign({},$(qt,qt.controlHeightLG))})}},H=qt=>{const{formItemCls:zr,iconCls:Jr,componentCls:Ot,rootPrefixCls:Ct,labelRequiredMarkColor:Ir,labelColor:Fr,labelFontSize:Tn,labelHeight:tn,labelColonMarginInlineStart:Bn,labelColonMarginInlineEnd:gn,itemMarginBottom:zn}=qt;return{[zr]:Object.assign(Object.assign({},(0,n.Wf)(qt)),{marginBottom:zn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ct}-row`]:{display:"none"},"&-has-warning":{[`${zr}-split`]:{color:qt.colorError}},"&-has-error":{[`${zr}-split`]:{color:qt.colorWarning}},[`${zr}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${qt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:tn,color:Fr,fontSize:Tn,[`> ${Jr}`]:{fontSize:qt.fontSize,verticalAlign:"top"},[`&${zr}-required:not(${zr}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:qt.marginXXS,color:Ir,fontSize:qt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ot}-hide-required-mark &`]:{display:"none"}},[`${zr}-optional`]:{display:"inline-block",marginInlineStart:qt.marginXXS,color:qt.colorTextDescription,[`${Ot}-hide-required-mark &`]:{display:"none"}},[`${zr}-tooltip`]:{color:qt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:qt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Bn,marginInlineEnd:gn},[`&${zr}-no-colon::after`]:{content:'"\\a0"'}}},[`${zr}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ct}-col-'"]):not([class*="' ${Ct}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:qt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[zr]:{"&-explain, &-extra":{clear:"both",color:qt.colorTextDescription,fontSize:qt.fontSize,lineHeight:qt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:qt.controlHeightSM,transition:`color ${qt.motionDurationMid} ${qt.motionEaseOut}`},"&-explain":{"&-error":{color:qt.colorError},"&-warning":{color:qt.colorWarning}}},[`&-with-help ${zr}-explain`]:{height:"auto",opacity:1},[`${zr}-feedback-icon`]:{fontSize:qt.fontSize,textAlign:"center",visibility:"visible",animationName:o.kr,animationDuration:qt.motionDurationMid,animationTimingFunction:qt.motionEaseOutBack,pointerEvents:"none","&-success":{color:qt.colorSuccess},"&-error":{color:qt.colorError},"&-warning":{color:qt.colorWarning},"&-validating":{color:qt.colorPrimary}}})}},V=qt=>{const{componentCls:zr,formItemCls:Jr}=qt;return{[`${zr}-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=qt=>{const{componentCls:zr,formItemCls:Jr}=qt;return{[`${zr}-inline`]:{display:"flex",flexWrap:"wrap",[Jr]:{flex:"none",marginInlineEnd:qt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Jr}-label,
|
|
|
> ${Jr}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Jr}-label`]:{flex:"none"},[`${zr}-text`]:{display:"inline-block"},[`${Jr}-has-feedback`]:{display:"inline-block"}}}}},B=qt=>({padding:qt.verticalLabelPadding,margin:qt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),z=qt=>{const{componentCls:zr,formItemCls:Jr,rootPrefixCls:Ot}=qt;return{[`${Jr} ${Jr}-label`]:B(qt),[zr]:{[Jr]:{flexWrap:"wrap",[`${Jr}-label, ${Jr}-control`]:{[`&:not([class*=" ${Ot}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},le=qt=>{const{componentCls:zr,formItemCls:Jr,rootPrefixCls:Ot}=qt;return{[`${zr}-vertical`]:{[Jr]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${zr}-item-control`]:{width:"100%"}}},[`${zr}-vertical ${Jr}-label,
|
|
|
.${Ot}-col-24${Jr}-label,
|
|
|
.${Ot}-col-xl-24${Jr}-label`]:B(qt),[`@media (max-width: ${qt.screenXSMax}px)`]:[z(qt),{[zr]:{[`.${Ot}-col-xs-24${Jr}-label`]:B(qt)}}],[`@media (max-width: ${qt.screenSMMax}px)`]:{[zr]:{[`.${Ot}-col-sm-24${Jr}-label`]:B(qt)}},[`@media (max-width: ${qt.screenMDMax}px)`]:{[zr]:{[`.${Ot}-col-md-24${Jr}-label`]:B(qt)}},[`@media (max-width: ${qt.screenLGMax}px)`]:{[zr]:{[`.${Ot}-col-lg-24${Jr}-label`]:B(qt)}}}},J=(qt,zr)=>(0,p.TS)(qt,{formItemCls:`${qt.componentCls}-item`,rootPrefixCls:zr});var be=(0,a.Z)("Form",(qt,zr)=>{let{rootPrefixCls:Jr}=zr;const Ot=J(qt,Jr);return[F(Ot),H(Ot),m(Ot),V(Ot),ee(Ot),le(Ot),(0,L.Z)(Ot),o.kr]},qt=>({labelRequiredMarkColor:qt.colorError,labelColor:qt.colorTextHeading,labelFontSize:qt.fontSize,labelHeight:qt.controlHeight,labelColonMarginInlineStart:qt.marginXXS/2,labelColonMarginInlineEnd:qt.marginXS,itemMarginBottom:qt.marginLG,verticalLabelPadding:`0 0 ${qt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ce=[];function Le(qt,zr,Jr){let Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof qt=="string"?qt:`${zr}-${Ot}`,error:qt,errorStatus:Jr}}var me=qt=>{let{help:zr,helpStatus:Jr,errors:Ot=Ce,warnings:Ct=Ce,className:Ir,fieldId:Fr,onVisibleChanged:Tn}=qt;const{prefixCls:tn}=ie.useContext(O.Rk),Bn=`${tn}-item-explain`,[,gn]=be(tn),zn=(0,ie.useMemo)(()=>(0,Y.Z)(tn),[tn]),Xn=I(Ot),Qr=I(Ct),Gr=ie.useMemo(()=>zr!=null?[Le(zr,"help",Jr)]:[].concat((0,we.Z)(Xn.map((On,Qn)=>Le(On,"error","error",Qn))),(0,we.Z)(Qr.map((On,Qn)=>Le(On,"warning","warning",Qn)))),[zr,Jr,Xn,Qr]),Sn={};return Fr&&(Sn.id=`${Fr}_help`),ie.createElement(ke.default,{motionDeadline:zn.motionDeadline,motionName:`${tn}-show-help`,visible:!!Gr.length,onVisibleChanged:Tn},On=>{const{className:Qn,style:Jn}=On;return ie.createElement("div",Object.assign({},Sn,{className:se()(Bn,Qn,Ir,gn),style:Jn,role:"alert"}),ie.createElement(ke.CSSMotionList,Object.assign({keys:Gr},(0,Y.Z)(tn),{motionName:`${tn}-show-help-item`,component:!1}),Ni=>{const{key:li,error:vn,errorStatus:hr,className:wr,style:Or}=Ni;return ie.createElement("div",{key:li,className:se()(wr,{[`${Bn}-${hr}`]:hr}),style:Or},vn)}))})},T=g(95013),Ee=g(36355),oe=g(1684),he=g(52946),ve=g(19716),_=g(16722);const N=["parentNode"],X="form_item";function pe(qt){return qt===void 0||qt===!1?[]:Array.isArray(qt)?qt:[qt]}function qe(qt,zr){if(!qt.length)return;const Jr=qt.join("_");return zr?`${zr}_${Jr}`:N.includes(Jr)?`${X}_${Jr}`:Jr}function at(qt,zr,Jr,Ot,Ct,Ir){let Fr=Ot;return Ir!==void 0?Fr=Ir:Jr.validating?Fr="validating":qt.length?Fr="error":zr.length?Fr="warning":(Jr.touched||Ct&&Jr.validated)&&(Fr="success"),Fr}function rt(qt){return pe(qt).join("_")}function Rt(qt){const[zr]=(0,T.useForm)(),Jr=ie.useRef({}),Ot=ie.useMemo(()=>qt!=null?qt:Object.assign(Object.assign({},zr),{__INTERNAL__:{itemRef:Ct=>Ir=>{const Fr=rt(Ct);Ir?Jr.current[Fr]=Ir:delete Jr.current[Fr]}},scrollToField:function(Ct){let Ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Fr=pe(Ct),Tn=qe(Fr,Ot.__INTERNAL__.name),tn=Tn?document.getElementById(Tn):null;tn&&(0,_.Z)(tn,Object.assign({scrollMode:"if-needed",block:"nearest"},Ir))},getFieldInstance:Ct=>{const Ir=rt(Ct);return Jr.current[Ir]}}),[qt,zr]);return[Ot]}var lr=g(28726),Jt=function(qt,zr){var Jr={};for(var Ot in qt)Object.prototype.hasOwnProperty.call(qt,Ot)&&zr.indexOf(Ot)<0&&(Jr[Ot]=qt[Ot]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ot=Object.getOwnPropertySymbols(qt);Ct<Ot.length;Ct++)zr.indexOf(Ot[Ct])<0&&Object.prototype.propertyIsEnumerable.call(qt,Ot[Ct])&&(Jr[Ot[Ct]]=qt[Ot[Ct]]);return Jr};const Ze=(qt,zr)=>{const Jr=ie.useContext(oe.Z),{getPrefixCls:Ot,direction:Ct,form:Ir}=ie.useContext(Ee.E_),{prefixCls:Fr,className:Tn,rootClassName:tn,size:Bn,disabled:gn=Jr,form:zn,colon:Xn,labelAlign:Qr,labelWrap:Gr,labelCol:Sn,wrapperCol:On,hideRequiredMark:Qn,layout:Jn="horizontal",scrollToFirstError:Ni,requiredMark:li,onFinishFailed:vn,name:hr,style:wr,feedbackIcons:Or}=qt,Hr=Jt(qt,["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(lr.Z),en=(0,ie.useMemo)(()=>li!==void 0?li:Ir&&Ir.requiredMark!==void 0?Ir.requiredMark:!Qn,[Qn,li,Ir]),Hn=Xn!=null?Xn:Ir==null?void 0:Ir.colon,ti=Ot("form",Fr),[ui,Ri]=be(ti),Oi=se()(ti,`${ti}-${Jn}`,{[`${ti}-hide-required-mark`]:en===!1,[`${ti}-rtl`]:Ct==="rtl",[`${ti}-${Ur}`]:Ur},Ri,Ir==null?void 0:Ir.className,Tn,tn),[Qi]=Rt(zn),{__INTERNAL__:Tr}=Qi;Tr.name=hr;const En=(0,ie.useMemo)(()=>({name:hr,labelAlign:Qr,labelCol:Sn,labelWrap:Gr,wrapperCol:On,vertical:Jn==="vertical",colon:Hn,requiredMark:en,itemRef:Tr.itemRef,form:Qi,feedbackIcons:Or}),[hr,Qr,Sn,On,Jn,Hn,en,Qi,Or]);ie.useImperativeHandle(zr,()=>Qi);const hn=(si,ri)=>{if(si){let wi={block:"nearest"};typeof si=="object"&&(wi=si),Qi.scrollToField(ri,wi)}},Ai=si=>{if(vn==null||vn(si),si.errorFields.length){const ri=si.errorFields[0].name;if(Ni!==void 0){hn(Ni,ri);return}Ir&&Ir.scrollToFirstError!==void 0&&hn(Ir.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:En},ie.createElement(T.default,Object.assign({id:hr},Hr,{name:hr,onFinishFailed:Ai,form:Qi,style:Object.assign(Object.assign({},Ir==null?void 0:Ir.style),wr),className:Oi})))))))};var Cr=ie.forwardRef(Ze),Kr=g(41799),_r=g(8654),Ue=g(92343),St=g(11592);function G(qt){if(typeof qt=="function")return qt;const zr=(0,St.Z)(qt);return zr.length<=1?zr[0]:zr}const v=()=>{const{status:qt,errors:zr=[],warnings:Jr=[]}=(0,ie.useContext)(O.aM);return{status:qt,errors:zr,warnings:Jr}};v.Context=O.aM;var f=v,D=g(16089);function fe(qt){const[zr,Jr]=ie.useState(qt),Ot=(0,ie.useRef)(null),Ct=(0,ie.useRef)([]),Ir=(0,ie.useRef)(!1);ie.useEffect(()=>(Ir.current=!1,()=>{Ir.current=!0,D.Z.cancel(Ot.current),Ot.current=null}),[]);function Fr(Tn){Ir.current||(Ot.current===null&&(Ct.current=[],Ot.current=(0,D.Z)(()=>{Ot.current=null,Jr(tn=>{let Bn=tn;return Ct.current.forEach(gn=>{Bn=gn(Bn)}),Bn})})),Ct.current.push(Tn))}return[zr,Fr]}function W(){const{itemRef:qt}=ie.useContext(O.q3),zr=ie.useRef({});function Jr(Ot,Ct){const Ir=Ct&&typeof Ct=="object"&&Ct.ref,Fr=Ot.join("_");return(zr.current.name!==Fr||zr.current.originRef!==Ir)&&(zr.current.name=Fr,zr.current.originRef=Ir,zr.current.ref=(0,_r.sQ)(qt(Ot),Ir)),zr.current.ref}return Jr}var P=g(29194),te=g(34280),Ie=g(2738),Te=g(27382),Se=g(37028);const Ge=qt=>{const{formItemCls:zr}=qt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${zr}-control`]:{display:"flex"}}}};var dt=(0,a.b)(["Form","item-item"],(qt,zr)=>{let{rootPrefixCls:Jr}=zr;const Ot=J(qt,Jr);return[Ge(Ot)]}),Xe=qt=>{const{prefixCls:zr,status:Jr,wrapperCol:Ot,children:Ct,errors:Ir,warnings:Fr,_internalItemRender:Tn,extra:tn,help:Bn,fieldId:gn,marginBottom:zn,onErrorVisibleChanged:Xn}=qt,Qr=`${zr}-item`,Gr=ie.useContext(O.q3),Sn=Ot||Gr.wrapperCol||{},On=se()(`${Qr}-control`,Sn.className),Qn=ie.useMemo(()=>Object.assign({},Gr),[Gr]);delete Qn.labelCol,delete Qn.wrapperCol;const Jn=ie.createElement("div",{className:`${Qr}-control-input`},ie.createElement("div",{className:`${Qr}-control-input-content`},Ct)),Ni=ie.useMemo(()=>({prefixCls:zr,status:Jr}),[zr,Jr]),li=zn!==null||Ir.length||Fr.length?ie.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ie.createElement(O.Rk.Provider,{value:Ni},ie.createElement(me,{fieldId:gn,errors:Ir,warnings:Fr,help:Bn,helpStatus:Jr,className:`${Qr}-explain-connected`,onVisibleChanged:Xn})),!!zn&&ie.createElement("div",{style:{width:0,height:zn}})):null,vn={};gn&&(vn.id=`${gn}_extra`);const hr=tn?ie.createElement("div",Object.assign({},vn,{className:`${Qr}-extra`}),tn):null,wr=Tn&&Tn.mark==="pro_table_render"&&Tn.render?Tn.render(qt,{input:Jn,errorList:li,extra:hr}):ie.createElement(ie.Fragment,null,Jn,li,hr);return ie.createElement(O.q3.Provider,{value:Qn},ie.createElement(Se.Z,Object.assign({},Sn,{className:On}),wr),ie.createElement(dt,{prefixCls:zr}))},At=g(61485),We=g(31724),$e=g(9763),Bt=g(6848),Kt=function(qt,zr){var Jr={};for(var Ot in qt)Object.prototype.hasOwnProperty.call(qt,Ot)&&zr.indexOf(Ot)<0&&(Jr[Ot]=qt[Ot]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ot=Object.getOwnPropertySymbols(qt);Ct<Ot.length;Ct++)zr.indexOf(Ot[Ct])<0&&Object.prototype.propertyIsEnumerable.call(qt,Ot[Ct])&&(Jr[Ot[Ct]]=qt[Ot[Ct]]);return Jr};function Mt(qt){return qt?typeof qt=="object"&&!ie.isValidElement(qt)?qt:{title:qt}:null}var vr=qt=>{let{prefixCls:zr,label:Jr,htmlFor:Ot,labelCol:Ct,labelAlign:Ir,colon:Fr,required:Tn,requiredMark:tn,tooltip:Bn}=qt;var gn;const[zn]=(0,$e.Z)("Form"),{vertical:Xn,labelAlign:Qr,labelCol:Gr,labelWrap:Sn,colon:On}=ie.useContext(O.q3);if(!Jr)return null;const Qn=Ct||Gr||{},Jn=Ir||Qr,Ni=`${zr}-item-label`,li=se()(Ni,Jn==="left"&&`${Ni}-left`,Qn.className,{[`${Ni}-wrap`]:!!Sn});let vn=Jr;const hr=Fr===!0||On!==!1&&Fr!==!1;hr&&!Xn&&typeof Jr=="string"&&Jr.trim()!==""&&(vn=Jr.replace(/[:|:]\s*$/,""));const Or=Mt(Bn);if(Or){const{icon:en=ie.createElement(At.Z,null)}=Or,Hn=Kt(Or,["icon"]),ti=ie.createElement(Bt.Z,Object.assign({},Hn),ie.cloneElement(en,{className:`${zr}-item-tooltip`,title:""}));vn=ie.createElement(ie.Fragment,null,vn,ti)}const Hr=tn==="optional",Ur=typeof tn=="function";Ur?vn=tn(vn,{required:!!Tn}):Hr&&!Tn&&(vn=ie.createElement(ie.Fragment,null,vn,ie.createElement("span",{className:`${zr}-item-optional`,title:""},(zn==null?void 0:zn.optional)||((gn=We.Z.Form)===null||gn===void 0?void 0:gn.optional))));const on=se()({[`${zr}-item-required`]:Tn,[`${zr}-item-required-mark-optional`]:Hr||Ur,[`${zr}-item-no-colon`]:!hr});return ie.createElement(Se.Z,Object.assign({},Qn,{className:li}),ie.createElement("label",{htmlFor:Ot,className:on,title:typeof Jr=="string"?Jr:""},vn))},re=g(29679),ue=g(19248),rr=g(96512),Me=g(58617);const ot={success:re.Z,warning:rr.Z,error:ue.Z,validating:Me.Z};function Zr(qt){let{children:zr,errors:Jr,warnings:Ot,hasFeedback:Ct,validateStatus:Ir,prefixCls:Fr,meta:Tn,noStyle:tn}=qt;const Bn=`${Fr}-item`,{feedbackIcons:gn}=ie.useContext(O.q3),zn=at(Jr,Ot,Tn,null,!!Ct,Ir),{isFormItemInput:Xn,status:Qr}=ie.useContext(O.aM),Gr=ie.useMemo(()=>{var Sn;let On;if(Ct){const Ni=Ct!==!0&&Ct.icons||gn,li=zn&&((Sn=Ni==null?void 0:Ni({status:zn,errors:Jr,warnings:Ot}))===null||Sn===void 0?void 0:Sn[zn]),vn=zn&&ot[zn];On=li!==!1&&vn?ie.createElement("span",{className:se()(`${Bn}-feedback-icon`,`${Bn}-feedback-icon-${zn}`)},li||ie.createElement(vn,null)):null}let Qn=!0,Jn=zn||"";return tn&&(Qn=Xn,Jn=(zn!=null?zn:Qr)||""),{status:Jn,errors:Jr,warnings:Ot,hasFeedback:!!Ct,feedbackIcon:On,isFormItemInput:Qn}},[zn,Ct,tn,Xn,Qr]);return ie.createElement(O.aM.Provider,{value:Gr},zr)}var Tt=function(qt,zr){var Jr={};for(var Ot in qt)Object.prototype.hasOwnProperty.call(qt,Ot)&&zr.indexOf(Ot)<0&&(Jr[Ot]=qt[Ot]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ot=Object.getOwnPropertySymbols(qt);Ct<Ot.length;Ct++)zr.indexOf(Ot[Ct])<0&&Object.prototype.propertyIsEnumerable.call(qt,Ot[Ct])&&(Jr[Ot[Ct]]=qt[Ot[Ct]]);return Jr};function Yt(qt){const{prefixCls:zr,className:Jr,rootClassName:Ot,style:Ct,help:Ir,errors:Fr,warnings:Tn,validateStatus:tn,meta:Bn,hasFeedback:gn,hidden:zn,children:Xn,fieldId:Qr,required:Gr,isRequired:Sn,onSubItemMetaChange:On}=qt,Qn=Tt(qt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Jn=`${zr}-item`,{requiredMark:Ni}=ie.useContext(O.q3),li=ie.useRef(null),vn=I(Fr),hr=I(Tn),wr=Ir!=null,Or=!!(wr||Fr.length||Tn.length),Hr=!!li.current&&(0,P.Z)(li.current),[Ur,on]=ie.useState(null);(0,te.Z)(()=>{if(Or&&li.current){const Ri=getComputedStyle(li.current);on(parseInt(Ri.marginBottom,10))}},[Or,Hr]);const en=Ri=>{Ri||on(null)},ti=function(){let Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Oi=Ri?vn:Bn.errors,Qi=Ri?hr:Bn.warnings;return at(Oi,Qi,Bn,"",!!gn,tn)}(),ui=se()(Jn,Jr,Ot,{[`${Jn}-with-help`]:wr||vn.length||hr.length,[`${Jn}-has-feedback`]:ti&&gn,[`${Jn}-has-success`]:ti==="success",[`${Jn}-has-warning`]:ti==="warning",[`${Jn}-has-error`]:ti==="error",[`${Jn}-is-validating`]:ti==="validating",[`${Jn}-hidden`]:zn});return ie.createElement("div",{className:ui,style:Ct,ref:li},ie.createElement(Te.Z,Object.assign({className:`${Jn}-row`},(0,Ie.Z)(Qn,["_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(vr,Object.assign({htmlFor:Qr},qt,{requiredMark:Ni,required:Gr!=null?Gr:Sn,prefixCls:zr})),ie.createElement(Xe,Object.assign({},qt,Bn,{errors:vn,warnings:hr,prefixCls:zr,status:ti,help:Ir,marginBottom:Ur,onErrorVisibleChanged:en}),ie.createElement(O.qI.Provider,{value:On},ie.createElement(Zr,{prefixCls:zr,meta:Bn,errors:Bn.errors,warnings:Bn.warnings,hasFeedback:gn,validateStatus:ti},Xn)))),!!Ur&&ie.createElement("div",{className:`${Jn}-margin-offset`,style:{marginBottom:-Ur}}))}const Gt="__SPLIT__",nt=null,ct=ie.memo(qt=>{let{children:zr}=qt;return zr},(qt,zr)=>qt.value===zr.value&&qt.update===zr.update&&qt.childProps.length===zr.childProps.length&&qt.childProps.every((Jr,Ot)=>Jr===zr.childProps[Ot]));function pt(qt){return qt!=null}function Zt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Oe(qt){const{name:zr,noStyle:Jr,className:Ot,dependencies:Ct,prefixCls:Ir,shouldUpdate:Fr,rules:Tn,children:tn,required:Bn,label:gn,messageVariables:zn,trigger:Xn="onChange",validateTrigger:Qr,hidden:Gr,help:Sn}=qt,{getPrefixCls:On}=ie.useContext(Ee.E_),{name:Qn}=ie.useContext(O.q3),Jn=G(tn),Ni=typeof Jn=="function",li=ie.useContext(O.qI),{validateTrigger:vn}=ie.useContext(T.FieldContext),hr=Qr!==void 0?Qr:vn,wr=pt(zr),Or=On("form",Ir),[Hr,Ur]=be(Or),on=ie.useContext(T.ListContext),en=ie.useRef(),[Hn,ti]=fe({}),[ui,Ri]=(0,Kr.Z)(()=>Zt()),Oi=ri=>{const wi=on==null?void 0:on.getKey(ri.name);if(Ri(ri.destroy?Zt():ri,!0),Jr&&Sn!==!1&&li){let Ti=ri.name;if(ri.destroy)Ti=en.current||Ti;else if(wi!==void 0){const[Bi,zi]=wi;Ti=[Bi].concat((0,we.Z)(zi)),en.current=Ti}li(ri,Ti)}},Qi=(ri,wi)=>{ti(Ti=>{const Bi=Object.assign({},Ti),oa=[].concat((0,we.Z)(ri.name.slice(0,-1)),(0,we.Z)(wi)).join(Gt);return ri.destroy?delete Bi[oa]:Bi[oa]=ri,Bi})},[Tr,En]=ie.useMemo(()=>{const ri=(0,we.Z)(ui.errors),wi=(0,we.Z)(ui.warnings);return Object.values(Hn).forEach(Ti=>{ri.push.apply(ri,(0,we.Z)(Ti.errors||[])),wi.push.apply(wi,(0,we.Z)(Ti.warnings||[]))}),[ri,wi]},[Hn,ui.errors,ui.warnings]),hn=W();function Ai(ri,wi,Ti){return Jr&&!Gr?ie.createElement(Zr,{prefixCls:Or,hasFeedback:qt.hasFeedback,validateStatus:qt.validateStatus,meta:ui,errors:Tr,warnings:En,noStyle:!0},ri):ie.createElement(Yt,Object.assign({key:"row"},qt,{className:se()(Ot,Ur),prefixCls:Or,fieldId:wi,isRequired:Ti,errors:Tr,warnings:En,meta:ui,onSubItemMetaChange:Qi}),ri)}if(!wr&&!Ni&&!Ct)return Hr(Ai(Jn));let si={};return typeof gn=="string"?si.label=gn:zr&&(si.label=String(zr)),zn&&(si=Object.assign(Object.assign({},si),zn)),Hr(ie.createElement(T.Field,Object.assign({},qt,{messageVariables:si,trigger:Xn,validateTrigger:hr,onMetaChange:Oi}),(ri,wi,Ti)=>{const Bi=pe(zr).length&&wi?wi.name:[],zi=qe(Bi,Qn),oa=Bn!==void 0?Bn:!!(Tn&&Tn.some(Ht=>{if(Ht&&typeof Ht=="object"&&Ht.required&&!Ht.warningOnly)return!0;if(typeof Ht=="function"){const Fn=Ht(Ti);return Fn&&Fn.required&&!Fn.warningOnly}return!1})),Ei=Object.assign({},ri);let wn=null;if(Array.isArray(Jn)&&wr)wn=Jn;else if(!(Ni&&(!(Fr||Ct)||wr))){if(!(Ct&&!Ni&&!wr))if((0,Ue.l$)(Jn)){const Ht=Object.assign(Object.assign({},Jn.props),Ei);if(Ht.id||(Ht.id=zi),Sn||Tr.length>0||En.length>0||qt.extra){const Ci=[];(Sn||Tr.length>0)&&Ci.push(`${zi}_help`),qt.extra&&Ci.push(`${zi}_extra`),Ht["aria-describedby"]=Ci.join(" ")}Tr.length>0&&(Ht["aria-invalid"]="true"),oa&&(Ht["aria-required"]="true"),(0,_r.Yr)(Jn)&&(Ht.ref=hn(Bi,Jn)),new Set([].concat((0,we.Z)(pe(Xn)),(0,we.Z)(pe(hr)))).forEach(Ci=>{Ht[Ci]=function(){for(var ki,Aa,Ca,ta,xa,La=arguments.length,hi=new Array(La),bi=0;bi<La;bi++)hi[bi]=arguments[bi];(Ca=Ei[Ci])===null||Ca===void 0||(ki=Ca).call.apply(ki,[Ei].concat(hi)),(xa=(ta=Jn.props)[Ci])===null||xa===void 0||(Aa=xa).call.apply(Aa,[ta].concat(hi))}});const Gn=[Ht["aria-required"],Ht["aria-invalid"],Ht["aria-describedby"]];wn=ie.createElement(ct,{value:Ei[qt.valuePropName||"value"],update:Jn,childProps:Gn},(0,Ue.Tm)(Jn,Ht))}else Ni&&(Fr||Ct)&&!wr?wn=Jn(Ti):wn=Jn}return Ai(wn,zi,oa)}))}const fn=Oe;fn.useStatus=f;var Nt=fn,Ln=function(qt,zr){var Jr={};for(var Ot in qt)Object.prototype.hasOwnProperty.call(qt,Ot)&&zr.indexOf(Ot)<0&&(Jr[Ot]=qt[Ot]);if(qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ot=Object.getOwnPropertySymbols(qt);Ct<Ot.length;Ct++)zr.indexOf(Ot[Ct])<0&&Object.prototype.propertyIsEnumerable.call(qt,Ot[Ct])&&(Jr[Ot[Ct]]=qt[Ot[Ct]]);return Jr},yi=qt=>{var{prefixCls:zr,children:Jr}=qt,Ot=Ln(qt,["prefixCls","children"]);const{getPrefixCls:Ct}=ie.useContext(Ee.E_),Ir=Ct("form",zr),Fr=ie.useMemo(()=>({prefixCls:Ir,status:"error"}),[Ir]);return ie.createElement(T.List,Object.assign({},Ot),(Tn,tn,Bn)=>ie.createElement(O.Rk.Provider,{value:Fr},Jr(Tn.map(gn=>Object.assign(Object.assign({},gn),{fieldKey:gn.key})),tn,{errors:Bn.errors,warnings:Bn.warnings})))};function Ki(){const{form:qt}=(0,ie.useContext)(O.q3);return qt}const jn=Cr;jn.Item=Nt,jn.List=yi,jn.ErrorList=me,jn.useForm=Rt,jn.useFormInstance=Ki,jn.useWatch=T.useWatch,jn.Provider=O.RV,jn.create=()=>{};var kn=jn},8628:function(bn,Wt,g){"use strict";var we=g(59301),Fe=g(34280),se=g(56762),ke=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,ke.ZP)();return(0,Fe.Z)(()=>{const o=n.subscribe(L=>{O.current=L,Y&&I()});return()=>n.unsubscribe(o)},[]),O.current}Wt.Z=ie},5871:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return At}});var we=g(84105),Fe=g(87395),se=g(92310),ke=g.n(se),ie=g(92413),Y=g(400),O=g(39559),I=g(33606),n=g(37061),o=g(6909),L=g(4771);function p(){return typeof BigInt=="function"}function a(We){return!We&&We!==0&&!Number.isNaN(We)||!String(We).trim()}function A(We){var $e=We.trim(),Bt=$e.startsWith("-");Bt&&($e=$e.slice(1)),$e=$e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),$e.startsWith(".")&&($e="0".concat($e));var Kt=$e||"0",Mt=Kt.split("."),br=Mt[0]||"0",vr=Mt[1]||"0";br==="0"&&vr==="0"&&(Bt=!1);var re=Bt?"-":"";return{negative:Bt,negativeStr:re,trimStr:Kt,integerStr:br,decimalStr:vr,fullStr:"".concat(re).concat(Kt)}}function m(We){var $e=String(We);return!Number.isNaN(Number($e))&&$e.includes("e")}function S(We){var $e=String(We);if(m(We)){var Bt=Number($e.slice($e.indexOf("e-")+2)),Kt=$e.match(/\.(\d+)/);return Kt!=null&&Kt[1]&&(Bt+=Kt[1].length),Bt}return $e.includes(".")&&F($e)?$e.length-$e.indexOf(".")-1:0}function $(We){var $e=String(We);if(m(We)){if(We>Number.MAX_SAFE_INTEGER)return String(p()?BigInt(We).toString():Number.MAX_SAFE_INTEGER);if(We<Number.MIN_SAFE_INTEGER)return String(p()?BigInt(We).toString():Number.MIN_SAFE_INTEGER);$e=We.toFixed(S($e))}return A($e).fullStr}function F(We){return typeof We=="number"?!Number.isNaN(We):We?/^\s*-?\d+(\.\d+)?\s*$/.test(We)||/^\s*-?\d+\.\s*$/.test(We)||/^\s*-?\.\d+\s*$/.test(We):!1}var H=function(){function We($e){if((0,o.Z)(this,We),(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($e)){this.empty=!0;return}if(this.origin=String($e),$e==="-"||Number.isNaN($e)){this.nan=!0;return}var Bt=$e;if(m(Bt)&&(Bt=Number(Bt)),Bt=typeof Bt=="string"?Bt:$(Bt),F(Bt)){var Kt=A(Bt);this.negative=Kt.negative;var Mt=Kt.trimStr.split(".");this.integer=BigInt(Mt[0]);var br=Mt[1]||"0";this.decimal=BigInt(br),this.decimalLen=br.length}else this.nan=!0}return(0,L.Z)(We,[{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 Kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Bt,"0"));return BigInt(Kt)}},{key:"negate",value:function(){var Bt=new We(this.toString());return Bt.negative=!Bt.negative,Bt}},{key:"cal",value:function(Bt,Kt,Mt){var br=Math.max(this.getDecimalStr().length,Bt.getDecimalStr().length),vr=this.alignDecimal(br),re=Bt.alignDecimal(br),ue=Kt(vr,re).toString(),rr=Mt(br),Me=A(ue),ot=Me.negativeStr,Zr=Me.trimStr,Tt="".concat(ot).concat(Zr.padStart(rr+1,"0"));return new We("".concat(Tt.slice(0,-rr),".").concat(Tt.slice(-rr)))}},{key:"add",value:function(Bt){if(this.isInvalidate())return new We(Bt);var Kt=new We(Bt);return Kt.isInvalidate()?this:this.cal(Kt,function(Mt,br){return Mt+br},function(Mt){return Mt})}},{key:"multi",value:function(Bt){var Kt=new We(Bt);return this.isInvalidate()||Kt.isInvalidate()?new We(NaN):this.cal(Kt,function(Mt,br){return Mt*br},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}}]),We}(),V=function(){function We($e){if((0,o.Z)(this,We),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"number",void 0),(0,Y.Z)(this,"empty",void 0),a($e)){this.empty=!0;return}this.origin=String($e),this.number=Number($e)}return(0,L.Z)(We,[{key:"negate",value:function(){return new We(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new We(Bt);var Kt=Number(Bt);if(Number.isNaN(Kt))return this;var Mt=this.number+Kt;if(Mt>Number.MAX_SAFE_INTEGER)return new We(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new We(Number.MIN_SAFE_INTEGER);var br=Math.max(S(this.number),S(Kt));return new We(Mt.toFixed(br))}},{key:"multi",value:function(Bt){var Kt=Number(Bt);if(this.isInvalidate()||Number.isNaN(Kt))return new We(NaN);var Mt=this.number*Kt;if(Mt>Number.MAX_SAFE_INTEGER)return new We(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new We(Number.MIN_SAFE_INTEGER);var br=Math.max(S(this.number),S(Kt));return new We(Mt.toFixed(br))}},{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}}]),We}();function ee(We){return p()?new H(We):new V(We)}function B(We,$e,Bt){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(We==="")return"";var Mt=A(We),br=Mt.negativeStr,vr=Mt.integerStr,re=Mt.decimalStr,ue="".concat($e).concat(re),rr="".concat(br).concat(vr);if(Bt>=0){var Me=Number(re[Bt]);if(Me>=5&&!Kt){var ot=ee(We).add("".concat(br,"0.").concat("0".repeat(Bt)).concat(10-Me));return B(ot.toString(),$e,Bt,Kt)}return Bt===0?rr:"".concat(rr).concat($e).concat(re.padEnd(Bt,"0").slice(0,Bt))}return ue===".0"?rr:"".concat(rr).concat(ue)}var z=ee,le=g(93681),J=g(34280),be=g(8654),Ce=g(59301),Le=g(48736);function ae(We,$e){var Bt=(0,Ce.useRef)(null);function Kt(){try{var br=We.selectionStart,vr=We.selectionEnd,re=We.value,ue=re.substring(0,br),rr=re.substring(vr);Bt.current={start:br,end:vr,value:re,beforeTxt:ue,afterTxt:rr}}catch(Me){}}function Mt(){if(We&&Bt.current&&$e)try{var br=We.value,vr=Bt.current,re=vr.beforeTxt,ue=vr.afterTxt,rr=vr.start,Me=br.length;if(br.endsWith(ue))Me=br.length-Bt.current.afterTxt.length;else if(br.startsWith(re))Me=re.length;else{var ot=re[rr-1],Zr=br.indexOf(ot,rr-1);Zr!==-1&&(Me=Zr+1)}We.setSelectionRange(Me,Me)}catch(Tt){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Tt.message))}}return[Kt,Mt]}var me=g(49658),T=function(){var $e=(0,Ce.useState)(!1),Bt=(0,I.Z)($e,2),Kt=Bt[0],Mt=Bt[1];return(0,J.Z)(function(){Mt((0,me.Z)())},[]),Kt},Ee=T,oe=g(16089),he=200,ve=600;function _(We){var $e=We.prefixCls,Bt=We.upNode,Kt=We.downNode,Mt=We.upDisabled,br=We.downDisabled,vr=We.onStep,re=Ce.useRef(),ue=Ce.useRef([]),rr=Ce.useRef();rr.current=vr;var Me=function(){clearTimeout(re.current)},ot=function(Zt,Oe){Zt.preventDefault(),Me(),rr.current(Oe);function fn(){rr.current(Oe),re.current=setTimeout(fn,he)}re.current=setTimeout(fn,ve)};Ce.useEffect(function(){return function(){Me(),ue.current.forEach(function(pt){return oe.Z.cancel(pt)})}},[]);var Zr=Ee();if(Zr)return null;var Tt="".concat($e,"-handler"),Yt=ke()(Tt,"".concat(Tt,"-up"),(0,Y.Z)({},"".concat(Tt,"-up-disabled"),Mt)),Gt=ke()(Tt,"".concat(Tt,"-down"),(0,Y.Z)({},"".concat(Tt,"-down-disabled"),br)),nt=function(){return ue.current.push((0,oe.Z)(Me))},ct={unselectable:"on",role:"button",onMouseUp:nt,onMouseLeave:nt};return Ce.createElement("div",{className:"".concat(Tt,"-wrap")},Ce.createElement("span",(0,ie.Z)({},ct,{onMouseDown:function(Zt){ot(Zt,!0)},"aria-label":"Increase Value","aria-disabled":Mt,className:Yt}),Bt||Ce.createElement("span",{unselectable:"on",className:"".concat($e,"-handler-up-inner")})),Ce.createElement("span",(0,ie.Z)({},ct,{onMouseDown:function(Zt){ot(Zt,!1)},"aria-label":"Decrease Value","aria-disabled":br,className:Gt}),Kt||Ce.createElement("span",{unselectable:"on",className:"".concat($e,"-handler-down-inner")})))}function N(We){var $e=typeof We=="number"?$(We):A(We).fullStr,Bt=$e.includes(".");return Bt?A($e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:We+"0"}var X=g(5643),pe=function(){var We=(0,Ce.useRef)(0),$e=function(){oe.Z.cancel(We.current)};return(0,Ce.useEffect)(function(){return $e},[]),function(Bt){$e(),We.current=(0,oe.Z)(function(){Bt()})}},qe=["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"],rt=function($e,Bt){return $e||Bt.isEmpty()?Bt.toString():Bt.toNumber()},Rt=function($e){var Bt=z($e);return Bt.isInvalidate()?null:Bt},lr=Ce.forwardRef(function(We,$e){var Bt,Kt=We.prefixCls,Mt=Kt===void 0?"rc-input-number":Kt,br=We.className,vr=We.style,re=We.min,ue=We.max,rr=We.step,Me=rr===void 0?1:rr,ot=We.defaultValue,Zr=We.value,Tt=We.disabled,Yt=We.readOnly,Gt=We.upHandler,nt=We.downHandler,ct=We.keyboard,pt=We.controls,Zt=pt===void 0?!0:pt,Oe=We.classNames,fn=We.stringMode,Nt=We.parser,Ln=We.formatter,Vn=We.precision,yi=We.decimalSeparator,Ki=We.onChange,jn=We.onInput,kn=We.onPressEnter,qt=We.onStep,zr=(0,n.Z)(We,qe),Jr="".concat(Mt,"-input"),Ot=Ce.useRef(null),Ct=Ce.useState(!1),Ir=(0,I.Z)(Ct,2),Fr=Ir[0],Tn=Ir[1],tn=Ce.useRef(!1),Bn=Ce.useRef(!1),gn=Ce.useRef(!1),zn=Ce.useState(function(){return z(Zr!=null?Zr:ot)}),Xn=(0,I.Z)(zn,2),Qr=Xn[0],Gr=Xn[1];function Sn(wn){Zr===void 0&&Gr(wn)}var On=Ce.useCallback(function(wn,Ht){if(!Ht)return Vn>=0?Vn:Math.max(S(wn),S(Me))},[Vn,Me]),Qn=Ce.useCallback(function(wn){var Ht=String(wn);if(Nt)return Nt(Ht);var Fn=Ht;return yi&&(Fn=Fn.replace(yi,".")),Fn.replace(/[^\w.-]+/g,"")},[Nt,yi]),Jn=Ce.useRef(""),Ni=Ce.useCallback(function(wn,Ht){if(Ln)return Ln(wn,{userTyping:Ht,input:String(Jn.current)});var Fn=typeof wn=="number"?$(wn):wn;if(!Ht){var Gn=On(Fn,Ht);if(F(Fn)&&(yi||Gn>=0)){var Ci=yi||".";Fn=B(Fn,Ci,Gn)}}return Fn},[Ln,On,yi]),li=Ce.useState(function(){var wn=ot!=null?ot:Zr;return Qr.isInvalidate()&&["string","number"].includes((0,O.Z)(wn))?Number.isNaN(wn)?"":wn:Ni(Qr.toString(),!1)}),vn=(0,I.Z)(li,2),hr=vn[0],wr=vn[1];Jn.current=hr;function Or(wn,Ht){wr(Ni(wn.isInvalidate()?wn.toString(!1):wn.toString(!Ht),Ht))}var Hr=Ce.useMemo(function(){return Rt(ue)},[ue,Vn]),Ur=Ce.useMemo(function(){return Rt(re)},[re,Vn]),on=Ce.useMemo(function(){return!Hr||!Qr||Qr.isInvalidate()?!1:Hr.lessEquals(Qr)},[Hr,Qr]),en=Ce.useMemo(function(){return!Ur||!Qr||Qr.isInvalidate()?!1:Qr.lessEquals(Ur)},[Ur,Qr]),Hn=ae(Ot.current,Fr),ti=(0,I.Z)(Hn,2),ui=ti[0],Ri=ti[1],Oi=function(Ht){return Hr&&!Ht.lessEquals(Hr)?Hr:Ur&&!Ur.lessEquals(Ht)?Ur:null},Qi=function(Ht){return!Oi(Ht)},Tr=function(Ht,Fn){var Gn=Ht,Ci=Qi(Gn)||Gn.isEmpty();if(!Gn.isEmpty()&&!Fn&&(Gn=Oi(Gn)||Gn,Ci=!0),!Yt&&!Tt&&Ci){var ki=Gn.toString(),Aa=On(ki,Fn);return Aa>=0&&(Gn=z(B(ki,".",Aa)),Qi(Gn)||(Gn=z(B(ki,".",Aa,!0)))),Gn.equals(Qr)||(Sn(Gn),Ki==null||Ki(Gn.isEmpty()?null:rt(fn,Gn)),Zr===void 0&&Or(Gn,Fn)),Gn}return Qr},En=pe(),hn=function wn(Ht){if(ui(),Jn.current=Ht,wr(Ht),!Bn.current){var Fn=Qn(Ht),Gn=z(Fn);Gn.isNaN()||Tr(Gn,!0)}jn==null||jn(Ht),En(function(){var Ci=Ht;Nt||(Ci=Ht.replace(/。/g,".")),Ci!==Ht&&wn(Ci)})},Ai=function(){Bn.current=!0},si=function(){Bn.current=!1,hn(Ot.current.value)},ri=function(Ht){hn(Ht.target.value)},wi=function(Ht){var Fn;if(!(Ht&&on||!Ht&&en)){tn.current=!1;var Gn=z(gn.current?N(Me):Me);Ht||(Gn=Gn.negate());var Ci=(Qr||z(0)).add(Gn.toString()),ki=Tr(Ci,!1);qt==null||qt(rt(fn,ki),{offset:gn.current?N(Me):Me,type:Ht?"up":"down"}),(Fn=Ot.current)===null||Fn===void 0||Fn.focus()}},Ti=function(Ht){var Fn=z(Qn(hr)),Gn=Fn;Fn.isNaN()?Gn=Tr(Qr,Ht):Gn=Tr(Fn,Ht),Zr!==void 0?Or(Qr,!1):Gn.isNaN()||Or(Gn,!1)},Bi=function(){tn.current=!0},zi=function(Ht){var Fn=Ht.key,Gn=Ht.shiftKey;tn.current=!0,gn.current=Gn,Fn==="Enter"&&(Bn.current||(tn.current=!1),Ti(!1),kn==null||kn(Ht)),ct!==!1&&!Bn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Fn)&&(wi(Fn==="Up"||Fn==="ArrowUp"),Ht.preventDefault())},oa=function(){tn.current=!1,gn.current=!1},Ei=function(){Ti(!1),Tn(!1),tn.current=!1};return(0,J.o)(function(){Qr.isInvalidate()||Or(Qr,!1)},[Vn]),(0,J.o)(function(){var wn=z(Zr);Gr(wn);var Ht=z(Qn(hr));(!wn.equals(Ht)||!tn.current||Ln)&&Or(wn,tn.current)},[Zr]),(0,J.o)(function(){Ln&&Ri()},[hr]),Ce.createElement("div",{className:ke()(Mt,Oe==null?void 0:Oe.input,br,(Bt={},(0,Y.Z)(Bt,"".concat(Mt,"-focused"),Fr),(0,Y.Z)(Bt,"".concat(Mt,"-disabled"),Tt),(0,Y.Z)(Bt,"".concat(Mt,"-readonly"),Yt),(0,Y.Z)(Bt,"".concat(Mt,"-not-a-number"),Qr.isNaN()),(0,Y.Z)(Bt,"".concat(Mt,"-out-of-range"),!Qr.isInvalidate()&&!Qi(Qr)),Bt)),style:vr,onFocus:function(){Tn(!0)},onBlur:Ei,onKeyDown:zi,onKeyUp:oa,onCompositionStart:Ai,onCompositionEnd:si,onBeforeInput:Bi},Zt&&Ce.createElement(_,{prefixCls:Mt,upNode:Gt,downNode:nt,upDisabled:on,downDisabled:en,onStep:wi}),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":Qr.isInvalidate()?null:Qr.toString(),step:Me},zr,{ref:(0,be.sQ)(Ot,$e),className:Jr,value:hr,onChange:ri,disabled:Tt,readOnly:Yt}))))}),Jt=Ce.forwardRef(function(We,$e){var Bt=We.disabled,Kt=We.style,Mt=We.prefixCls,br=We.value,vr=We.prefix,re=We.suffix,ue=We.addonBefore,rr=We.addonAfter,Me=We.classes,ot=We.className,Zr=We.classNames,Tt=(0,n.Z)(We,at),Yt=Ce.useRef(null),Gt=function(ct){Yt.current&&(0,X.nH)(Yt.current,ct)};return Ce.createElement(le.BaseInput,{inputElement:Ce.createElement(lr,(0,ie.Z)({prefixCls:Mt,disabled:Bt,classNames:Zr,ref:(0,be.sQ)(Yt,$e)},Tt)),className:ot,triggerFocus:Gt,prefixCls:Mt,value:br,disabled:Bt,style:Kt,prefix:vr,suffix:re,addonAfter:rr,addonBefore:ue,classes:Me,classNames:Zr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Jt.displayName="InputNumber";var Ze=Jt,Er=Ze,Cr=g(19080),Kr=g(36355),_r=g(92736),Ue=g(1684),St=g(19716),G=g(32441),v=g(33234),f=g(9937),D=g(17313),fe=g(74207),W=g(83116),P=g(37613);const te=(We,$e)=>{let{componentCls:Bt,borderRadiusSM:Kt,borderRadiusLG:Mt}=We;const br=$e==="lg"?Mt:Kt;return{[`&-${$e}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:br,borderEndEndRadius:br},[`${Bt}-handler-up`]:{borderStartEndRadius:br},[`${Bt}-handler-down`]:{borderEndEndRadius:br}}}},Ie=We=>{const{componentCls:$e,lineWidth:Bt,lineType:Kt,colorBorder:Mt,borderRadius:br,fontSizeLG:vr,controlHeightLG:re,controlHeightSM:ue,colorError:rr,paddingInlineSM:Me,colorTextDescription:ot,motionDurationMid:Zr,handleHoverColor:Tt,paddingInline:Yt,paddingBlock:Gt,handleBg:nt,handleActiveBg:ct,colorTextDisabled:pt,borderRadiusSM:Zt,borderRadiusLG:Oe,controlWidth:fn,handleVisible:Nt,handleBorderColor:Ln}=We;return[{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(We)),(0,f.ik)(We)),(0,f.bi)(We,$e)),{display:"inline-block",width:fn,margin:0,padding:0,border:`${Bt}px ${Kt} ${Mt}`,borderRadius:br,"&-rtl":{direction:"rtl",[`${$e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:vr,borderRadius:Oe,[`input${$e}-input`]:{height:re-2*Bt}},"&-sm":{padding:0,borderRadius:Zt,[`input${$e}-input`]:{height:ue-2*Bt,padding:`0 ${Me}px`}},"&:hover":Object.assign({},(0,f.pU)(We)),"&-focused":Object.assign({},(0,f.M1)(We)),"&-out-of-range":{[`${$e}-input-wrap`]:{input:{color:rr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,D.Wf)(We)),(0,f.s7)(We)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${$e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${$e}-group-addon`]:{borderRadius:Oe,fontSize:We.fontSizeLG}},"&-sm":{[`${$e}-group-addon`]:{borderRadius:Zt}},[`${$e}-wrapper-disabled > ${$e}-group-addon`]:Object.assign({},(0,f.Xy)(We))}}),[`&-disabled ${$e}-input`]:{cursor:"not-allowed"},[$e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(We)),{width:"100%",padding:`${Gt}px ${Yt}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:br,outline:0,transition:`all ${Zr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,f.nz)(We.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[$e]:Object.assign(Object.assign(Object.assign({[`&:hover ${$e}-handler-wrap, &-focused ${$e}-handler-wrap`]:{opacity:1},[`${$e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:We.handleWidth,height:"100%",background:nt,borderStartStartRadius:0,borderStartEndRadius:br,borderEndEndRadius:br,borderEndStartRadius:0,opacity:Nt===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Zr} linear ${Zr}`,[`${$e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${$e}-handler-up-inner,
|
|
|
${$e}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:We.handleFontSize}}},[`${$e}-handler`]:{height:"50%",overflow:"hidden",color:ot,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bt}px ${Kt} ${Ln}`,transition:`all ${Zr} linear`,"&:active":{background:ct},"&:hover":{height:"60%",[`
|
|
|
${$e}-handler-up-inner,
|
|
|
${$e}-handler-down-inner
|
|
|
`]:{color:Tt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,D.Ro)()),{color:ot,transition:`all ${Zr} linear`,userSelect:"none"})},[`${$e}-handler-up`]:{borderStartEndRadius:br},[`${$e}-handler-down`]:{borderBlockStart:`${Bt}px ${Kt} ${Ln}`,borderEndEndRadius:br}},te(We,"lg")),te(We,"sm")),{"&-disabled, &-readonly":{[`${$e}-handler-wrap`]:{display:"none"},[`${$e}-input`]:{color:"inherit"}},[`
|
|
|
${$e}-handler-up-disabled,
|
|
|
${$e}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${$e}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${$e}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:pt}})},{[`${$e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${$e}-handler-down`]:{borderBlockStartWidth:0}}}]},Te=We=>{const{componentCls:$e,paddingBlock:Bt,paddingInline:Kt,inputAffixPadding:Mt,controlWidth:br,borderRadiusLG:vr,borderRadiusSM:re}=We;return{[`${$e}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,f.ik)(We)),(0,f.bi)(We,`${$e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:br,padding:0,paddingInlineStart:Kt,"&-lg":{borderRadius:vr},"&-sm":{borderRadius:re},[`&:not(${$e}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,f.pU)(We)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${$e}-disabled`]:{background:"transparent"},[`> div${$e}`]:{width:"100%",border:"none",outline:"none",[`&${$e}-focused`]:{boxShadow:"none !important"}},[`input${$e}-input`]:{padding:`${Bt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${$e}-handler-wrap`]:{zIndex:2},[$e]:{"&-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:Kt,marginInlineStart:Mt}}})}};var Se=(0,W.Z)("InputNumber",We=>{const $e=(0,P.TS)(We,(0,f.e5)(We));return[Ie($e),Te($e),(0,fe.c)($e)]},We=>Object.assign(Object.assign({},(0,f.TM)(We)),{controlWidth:90,handleWidth:We.controlHeightSM-We.lineWidth*2,handleFontSize:We.fontSize/2,handleVisible:"auto",handleActiveBg:We.colorFillAlter,handleBg:We.colorBgContainer,handleHoverColor:We.colorPrimary,handleBorderColor:We.colorBorder})),Ge=function(We,$e){var Bt={};for(var Kt in We)Object.prototype.hasOwnProperty.call(We,Kt)&&$e.indexOf(Kt)<0&&(Bt[Kt]=We[Kt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Kt=Object.getOwnPropertySymbols(We);Mt<Kt.length;Mt++)$e.indexOf(Kt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(We,Kt[Mt])&&(Bt[Kt[Mt]]=We[Kt[Mt]]);return Bt};const dt=Ce.forwardRef((We,$e)=>{const{getPrefixCls:Bt,direction:Kt}=Ce.useContext(Kr.E_),Mt=Ce.useRef(null);Ce.useImperativeHandle($e,()=>Mt.current);const{className:br,rootClassName:vr,size:re,disabled:ue,prefixCls:rr,addonBefore:Me,addonAfter:ot,prefix:Zr,bordered:Tt=!0,readOnly:Yt,status:Gt,controls:nt}=We,ct=Ge(We,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),pt=Bt("input-number",rr),[Zt,Oe]=Se(pt),{compactSize:fn,compactItemClassnames:Nt}=(0,v.ri)(pt,Kt);let Ln=Ce.createElement(Fe.Z,{className:`${pt}-handler-up-inner`}),Vn=Ce.createElement(we.Z,{className:`${pt}-handler-down-inner`});const yi=typeof nt=="boolean"?nt:void 0;typeof nt=="object"&&(Ln=typeof nt.upIcon=="undefined"?Ln:Ce.createElement("span",{className:`${pt}-handler-up-inner`},nt.upIcon),Vn=typeof nt.downIcon=="undefined"?Vn:Ce.createElement("span",{className:`${pt}-handler-down-inner`},nt.downIcon));const{hasFeedback:Ki,status:jn,isFormItemInput:kn,feedbackIcon:qt}=Ce.useContext(G.aM),zr=(0,Cr.F)(jn,Gt),Jr=(0,St.Z)(tn=>{var Bn;return(Bn=re!=null?re:fn)!==null&&Bn!==void 0?Bn:tn}),Ot=Ce.useContext(Ue.Z),Ct=ue!=null?ue:Ot,Ir=ke()({[`${pt}-lg`]:Jr==="large",[`${pt}-sm`]:Jr==="small",[`${pt}-rtl`]:Kt==="rtl",[`${pt}-borderless`]:!Tt,[`${pt}-in-form-item`]:kn},(0,Cr.Z)(pt,zr),Nt,Oe),Fr=`${pt}-group`,Tn=Ce.createElement(Er,Object.assign({ref:Mt,disabled:Ct,className:ke()(br,vr),upHandler:Ln,downHandler:Vn,prefixCls:pt,readOnly:Yt,controls:yi,prefix:Zr,suffix:Ki&&qt,addonAfter:ot&&Ce.createElement(v.BR,null,Ce.createElement(G.Ux,{override:!0,status:!0},ot)),addonBefore:Me&&Ce.createElement(v.BR,null,Ce.createElement(G.Ux,{override:!0,status:!0},Me)),classNames:{input:Ir},classes:{affixWrapper:ke()((0,Cr.Z)(`${pt}-affix-wrapper`,zr,Ki),{[`${pt}-affix-wrapper-sm`]:Jr==="small",[`${pt}-affix-wrapper-lg`]:Jr==="large",[`${pt}-affix-wrapper-rtl`]:Kt==="rtl",[`${pt}-affix-wrapper-borderless`]:!Tt},Oe),wrapper:ke()({[`${Fr}-rtl`]:Kt==="rtl",[`${pt}-wrapper-disabled`]:Ct},Oe),group:ke()({[`${pt}-group-wrapper-sm`]:Jr==="small",[`${pt}-group-wrapper-lg`]:Jr==="large",[`${pt}-group-wrapper-rtl`]:Kt==="rtl"},(0,Cr.Z)(`${pt}-group-wrapper`,zr,Ki),Oe)}},ct));return Zt(Tn)}),Ke=dt,Xe=We=>Ce.createElement(_r.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ce.createElement(dt,Object.assign({},We)));Ke._InternalPanelDoNotUseOrYouWillBeFired=Xe;var At=Ke},9432:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return H},n:function(){return $}});var we=g(19248),Fe=g(92310),se=g.n(Fe),ke=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 z in V)Object.prototype.hasOwnProperty.call(V,z)&&ee.indexOf(z)<0&&(B[z]=V[z]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,z=Object.getOwnPropertySymbols(V);le<z.length;le++)ee.indexOf(z[le])<0&&Object.prototype.propertyIsEnumerable.call(V,z[le])&&(B[z[le]]=V[z[le]]);return B};function $(V,ee){if(!V)return;V.focus(ee);const{cursor:B}=ee||{};if(B){const z=V.value.length;switch(B){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(z,z);break;default:V.setSelectionRange(0,z);break}}}var H=(0,Y.forwardRef)((V,ee)=>{var B;const{prefixCls:z,bordered:le=!0,status:J,size:be,disabled:Ce,onBlur:Le,onFocus:ae,suffix:me,allowClear:T,addonAfter:Ee,addonBefore:oe,className:he,style:ve,styles:_,rootClassName:N,onChange:X,classNames:pe}=V,qe=S(V,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:at,direction:rt,input:Rt}=Y.useContext(I.E_),lr=at("input",z),Jt=(0,Y.useRef)(null),[Ze,Er]=(0,A.ZP)(lr),{compactSize:Cr,compactItemClassnames:Kr}=(0,p.ri)(lr,rt),_r=(0,o.Z)(dt=>{var Ke;return(Ke=be!=null?be:Cr)!==null&&Ke!==void 0?Ke:dt}),Ue=Y.useContext(n.Z),St=Ce!=null?Ce:Ue,{status:G,hasFeedback:v,feedbackIcon:f}=(0,Y.useContext)(L.aM),D=(0,O.F)(G,J),fe=m(V)||!!v,W=(0,Y.useRef)(fe);(0,Y.useEffect)(()=>{var dt;fe&&W.current,W.current=fe},[fe]);const P=(0,a.Z)(Jt,!0),te=dt=>{P(),Le==null||Le(dt)},Ie=dt=>{P(),ae==null||ae(dt)},Te=dt=>{P(),X==null||X(dt)},Se=(v||me)&&Y.createElement(Y.Fragment,null,me,v&&f);let Ge;return typeof T=="object"&&(T!=null&&T.clearIcon)?Ge=T:T&&(Ge={clearIcon:Y.createElement(we.Z,null)}),Ze(Y.createElement(ke.default,Object.assign({ref:(0,ie.sQ)(ee,Jt),prefixCls:lr,autoComplete:Rt==null?void 0:Rt.autoComplete},qe,{disabled:St,onBlur:te,onFocus:Ie,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),ve),styles:Object.assign(Object.assign({},Rt==null?void 0:Rt.styles),_),suffix:Se,allowClear:Ge,className:se()(he,N,Kr,Rt==null?void 0:Rt.className),onChange:Te,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),Rt==null?void 0:Rt.classNames),{input:se()({[`${lr}-sm`]:_r==="small",[`${lr}-lg`]:_r==="large",[`${lr}-rtl`]:rt==="rtl",[`${lr}-borderless`]:!le},!fe&&(0,O.Z)(lr,D),pe==null?void 0:pe.input,(B=Rt==null?void 0:Rt.classNames)===null||B===void 0?void 0:B.input,Er)}),classes:{affixWrapper:se()({[`${lr}-affix-wrapper-sm`]:_r==="small",[`${lr}-affix-wrapper-lg`]:_r==="large",[`${lr}-affix-wrapper-rtl`]:rt==="rtl",[`${lr}-affix-wrapper-borderless`]:!le},(0,O.Z)(`${lr}-affix-wrapper`,D,v),Er),wrapper:se()({[`${lr}-group-rtl`]:rt==="rtl"},Er),group:se()({[`${lr}-group-wrapper-sm`]:_r==="small",[`${lr}-group-wrapper-lg`]:_r==="large",[`${lr}-group-wrapper-rtl`]:rt==="rtl",[`${lr}-group-wrapper-disabled`]:St},(0,O.Z)(`${lr}-group-wrapper`,D,v),Er)}})))})},1643:function(bn,Wt,g){"use strict";var we=g(19248),Fe=g(92310),se=g.n(Fe),ke=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:z,classNames:le,rootClassName:J,className:be}=m,Ce=a(m,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Le,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),N=ie.useRef(null);ie.useImperativeHandle(S,()=>{var rt;return{resizableTextArea:(rt=N.current)===null||rt===void 0?void 0:rt.resizableTextArea,focus:Rt=>{var lr,Jt;(0,L.n)((Jt=(lr=N.current)===null||lr===void 0?void 0:lr.resizableTextArea)===null||Jt===void 0?void 0:Jt.textArea,Rt)},blur:()=>{var Rt;return(Rt=N.current)===null||Rt===void 0?void 0:Rt.blur()}}});const X=Le("input",$);let pe;typeof B=="object"&&(B!=null&&B.clearIcon)?pe=B:B&&(pe={clearIcon:ie.createElement(we.Z,null)});const[qe,at]=(0,p.ZP)(X);return qe(ie.createElement(ke.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`]:z},(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:z,ref:N})))});Wt.Z=A},59412:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var we=g(59301);function Fe(se,ke){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)(()=>(ke&&Y(),()=>ie.current.forEach(O=>{O&&clearTimeout(O)})),[]),Y}},92832:function(bn,Wt,g){"use strict";g.d(Wt,{default:function(){return me}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=g(32441),Y=g(9937),I=T=>{const{getPrefixCls:Ee,direction:oe}=(0,se.useContext)(ke.E_),{prefixCls:he,className:ve}=T,_=Ee("input-group",he),N=Ee("input"),[X,pe]=(0,Y.ZP)(N),qe=Fe()(_,{[`${_}-lg`]:T.size==="large",[`${_}-sm`]:T.size==="small",[`${_}-compact`]:T.compact,[`${_}-rtl`]:oe==="rtl"},pe,ve),at=(0,se.useContext)(ie.aM),rt=(0,se.useMemo)(()=>Object.assign(Object.assign({},at),{isFormItemInput:!1}),[at]);return X(se.createElement("span",{className:qe,style:T.style,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onFocus:T.onFocus,onBlur:T.onBlur},se.createElement(ie.aM.Provider,{value:rt},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),N=(0,se.useRef)(null);se.useEffect(()=>{he&&_(oe.visible)},[he,oe]);const X=(0,A.Z)(N),pe=()=>{const{disabled:St}=T;St||(ve&&X(),_(G=>{var v;const f=!G;return typeof oe=="object"&&((v=oe.onVisibleChange)===null||v===void 0||v.call(oe,f)),f}))},qe=St=>{const{action:G="click",iconRender:v=S}=T,f=$[G]||"",D=v(ve),fe={[f]:pe,className:`${St}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return se.cloneElement(se.isValidElement(D)?D:se.createElement("span",null,D),fe)},{className:at,prefixCls:rt,inputPrefixCls:Rt,size:lr}=T,Jt=m(T,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ze}=se.useContext(ke.E_),Er=Ze("input",Rt),Cr=Ze("input-password",rt),Kr=oe&&qe(Cr),_r=Fe()(Cr,at,{[`${Cr}-${lr}`]:!!lr}),Ue=Object.assign(Object.assign({},(0,p.Z)(Jt,["suffix","iconRender","visibilityToggle"])),{type:ve?"text":"password",className:_r,prefixCls:Er,suffix:Kr});return lr&&(Ue.size=lr),se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(Ee,N)},Ue))}),V=g(47472),ee=g(92343),B=g(3113),z=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:N,enterButton:X=!1,addonAfter:pe,loading:qe,disabled:at,onSearch:rt,onChange:Rt,onCompositionStart:lr,onCompositionEnd:Jt}=T,Ze=J(T,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Er,direction:Cr}=se.useContext(ke.E_),Kr=se.useRef(!1),_r=Er("input-search",oe),Ue=Er("input",he),{compactSize:St}=(0,le.ri)(_r,Cr),G=(0,z.Z)(Xe=>{var At;return(At=_!=null?_:St)!==null&&At!==void 0?At:Xe}),v=se.useRef(null),f=Xe=>{Xe&&Xe.target&&Xe.type==="click"&&rt&&rt(Xe.target.value,Xe,{source:"clear"}),Rt&&Rt(Xe)},D=Xe=>{var At;document.activeElement===((At=v.current)===null||At===void 0?void 0:At.input)&&Xe.preventDefault()},fe=Xe=>{var At,We;rt&&rt((We=(At=v.current)===null||At===void 0?void 0:At.input)===null||We===void 0?void 0:We.value,Xe,{source:"input"})},W=Xe=>{Kr.current||qe||fe(Xe)},P=typeof X=="boolean"?se.createElement(V.Z,null):null,te=`${_r}-button`;let Ie;const Te=X||{},Se=Te.type&&Te.type.__ANT_BUTTON===!0;Se||Te.type==="button"?Ie=(0,ee.Tm)(Te,Object.assign({onMouseDown:D,onClick:Xe=>{var At,We;(We=(At=Te==null?void 0:Te.props)===null||At===void 0?void 0:At.onClick)===null||We===void 0||We.call(At,Xe),fe(Xe)},key:"enterButton"},Se?{className:te,size:G}:{})):Ie=se.createElement(B.ZP,{className:te,type:X?"primary":void 0,size:G,disabled:at,key:"enterButton",onMouseDown:D,onClick:fe,loading:qe,icon:P},X),pe&&(Ie=[Ie,(0,ee.Tm)(pe,{key:"addonAfter"})]);const Ge=Fe()(_r,{[`${_r}-rtl`]:Cr==="rtl",[`${_r}-${G}`]:!!G,[`${_r}-with-button`]:!!X},ve),dt=Xe=>{Kr.current=!0,lr==null||lr(Xe)},Ke=Xe=>{Kr.current=!1,Jt==null||Jt(Xe)};return se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(v,Ee),onPressEnter:W},Ze,{size:G,onCompositionStart:dt,onCompositionEnd:Ke,prefixCls:Ue,addonAfter:Ie,suffix:N,onChange:f,className:Ge,disabled:at}))}),Le=g(1643);const ae=n.Z;ae.Group=I,ae.Search=Ce,ae.TextArea=Le.Z,ae.Password=H;var me=ae},9937:function(bn,Wt,g){"use strict";g.d(Wt,{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),Fe=g(74207),se=g(37613),ke=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:z,fontSizeLG:le,lineHeightLG:J,borderRadiusLG:be,paddingInlineLG:Ce}=B;return{padding:`${z}px ${Ce}px`,fontSize:le,lineHeight:J,borderRadius:be}},o=B=>({padding:`${B.paddingBlockSM}px ${B.paddingInlineSM}px`,borderRadius:B.borderRadiusSM}),L=(B,z)=>{const{componentCls:le,colorError:J,colorWarning:be,errorActiveShadow:Ce,warningActiveShadow:Le,colorErrorBorderHover:ae,colorWarningBorderHover:me}=B;return{[`&-status-error:not(${z}-disabled):not(${z}-borderless)${z}`]:{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(${z}-disabled):not(${z}-borderless)${z}`]:{borderColor:be,"&:hover":{borderColor:me},"&:focus, &-focused":Object.assign({},O((0,se.TS)(B,{activeBorderColor:be,activeShadow:Le}))),[`${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:z,antCls:le}=B;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:B.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${z}, &-lg > ${z}-group-addon`]:Object.assign({},n(B)),[`&-sm ${z}, &-sm > ${z}-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},[`> ${z}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${z}-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}},[`${z}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${z}-search-with-button &`]:{zIndex:0}}},[`> ${z}:first-child, ${z}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${z}-affix-wrapper`]:{[`&:not(:first-child) ${z}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${z}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${z}:last-child, ${z}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${z}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${z}-search &`]:{borderStartStartRadius:B.borderRadius,borderEndStartRadius:B.borderRadius}},[`&:not(:first-child), ${z}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${z}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,we.dF)()),{[`${z}-group-addon, ${z}-group-wrap, > ${z}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:B.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${z}-affix-wrapper,
|
|
|
& > ${z}-number-affix-wrapper,
|
|
|
& > ${le}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-B.lineWidth,borderInlineEndWidth:B.lineWidth},[`${z}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
|
|
|
& > ${le}-select-auto-complete ${z},
|
|
|
& > ${le}-cascader-picker ${z},
|
|
|
& > ${z}-group-wrapper ${z}`]:{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 ${z},
|
|
|
& > ${le}-cascader-picker:first-child ${z}`]:{borderStartStartRadius:B.borderRadius,borderEndStartRadius:B.borderRadius},[`& > *:last-child,
|
|
|
& > ${le}-select:last-child > ${le}-select-selector,
|
|
|
& > ${le}-cascader-picker:last-child ${z},
|
|
|
& > ${le}-cascader-picker-focused:last-child ${z}`]:{borderInlineEndWidth:B.lineWidth,borderStartEndRadius:B.borderRadius,borderEndEndRadius:B.borderRadius},[`& > ${le}-select-auto-complete ${z}`]:{verticalAlign:"top"},[`${z}-group-wrapper + ${z}-group-wrapper`]:{marginInlineStart:-B.lineWidth,[`${z}-affix-wrapper`]:{borderRadius:0}},[`${z}-group-wrapper:not(:last-child)`]:{[`&${z}-search > ${z}-group`]:{[`& > ${z}-group-addon > ${z}-search-button`]:{borderRadius:0},[`& > ${z}`]:{borderStartStartRadius:B.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:B.borderRadius}}}})}},A=B=>{const{componentCls:z,controlHeightSM:le,lineWidth:J}=B,Ce=(le-J*2-16)/2;return{[z]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(B)),p(B)),L(B,z)),{'&[type="color"]':{height:B.controlHeight,[`&${z}-lg`]:{height:B.controlHeightLG},[`&${z}-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:z}=B;return{[`${z}-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:z,inputAffixPadding:le,colorTextDescription:J,motionDurationSlow:be,colorIcon:Ce,colorIconHover:Le,iconCls:ae}=B;return{[`${z}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(B)),{display:"inline-flex",[`&:not(${z}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Y(B)),{zIndex:1,[`${z}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${z}[disabled]`]:{background:"transparent"}},[`> input${z}`]:{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"'},[`${z}`]:{"&-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}${z}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${be}`,"&:hover":{color:Le}}}),L(B,`${z}-affix-wrapper`))}},$=B=>{const{componentCls:z,colorError:le,colorWarning:J,borderRadiusLG:be,borderRadiusSM:Ce}=B;return{[`${z}-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":{[`${z}-group-addon`]:{borderRadius:be,fontSize:B.fontSizeLG}},"&-sm":{[`${z}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${z}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${z}-group-addon`]:{color:J,borderColor:J}},"&-disabled":{[`${z}-group-addon`]:Object.assign({},I(B))},[`&:not(${z}-compact-first-item):not(${z}-compact-last-item)${z}-compact-item`]:{[`${z}, ${z}-group-addon`]:{borderRadius:0}},[`&:not(${z}-compact-last-item)${z}-compact-first-item`]:{[`${z}, ${z}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${z}-compact-first-item)${z}-compact-last-item`]:{[`${z}, ${z}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},F=B=>{const{componentCls:z,antCls:le}=B,J=`${z}-search`;return{[J]:{[`${z}`]:{"&:hover, &:focus":{borderColor:B.colorPrimaryHover,[`+ ${z}-group-addon ${J}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:B.colorPrimaryHover}}},[`${z}-affix-wrapper`]:{borderRadius:0},[`${z}-lg`]:{lineHeight:B.lineHeightLG-2e-4},[`> ${z}-group`]:{[`> ${z}-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"},[`&${z}-compact-item`]:{[`&:not(${z}-compact-last-item)`]:{[`${z}-group-addon`]:{[`${z}-search-button`]:{marginInlineEnd:-B.lineWidth,borderRadius:0}}},[`&:not(${z}-compact-first-item)`]:{[`${z},${z}-affix-wrapper`]:{borderRadius:0}},[`> ${z}-group-addon ${z}-search-button,
|
|
|
> ${z},
|
|
|
${z}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${z}-affix-wrapper-focused`]:{zIndex:2}}}}},H=B=>{const{componentCls:z,paddingLG:le}=B,J=`${z}-textarea`;return{[J]:{position:"relative","&-show-count":{[`> ${z}`]:{height:"100%"},[`${z}-data-count`]:{position:"absolute",bottom:-B.fontSize*B.lineHeight,insetInlineEnd:0,color:B.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${z}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${J}-has-feedback`]:{[`${z}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${z}-affix-wrapper`]:{padding:0,[`> textarea${z}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${z}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${z}-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:z,fontSize:le,lineHeight:J,lineWidth:be,controlHeightSM:Ce,controlHeightLG:Le,fontSizeLG:ae,lineHeightLG:me,paddingSM:T,controlPaddingHorizontalSM:Ee,controlPaddingHorizontal:oe,colorFillAlter:he,colorPrimaryHover:ve,controlOutlineWidth:_,controlOutline:N,colorErrorOutline:X,colorWarningOutline:pe}=B;return{paddingBlock:Math.max(Math.round((z-le*J)/2*10)/10-be,3),paddingBlockSM:Math.max(Math.round((Ce-le*J)/2*10)/10-be,0),paddingBlockLG:Math.ceil((Le-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 ${N}`,errorActiveShadow:`0 0 0 ${_}px ${X}`,warningActiveShadow:`0 0 0 ${_}px ${pe}`}};Wt.ZP=(0,ke.Z)("Input",B=>{const z=(0,se.TS)(B,V(B));return[A(z),H(z),S(z),$(z),F(z),(0,Fe.c)(z)]},ee)},45818:function(bn,Wt,g){"use strict";g.d(Wt,{D:function(){return V},Z:function(){return z}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(J,be){return Fe.createElement(ie.Z,(0,we.Z)({},J,{ref:be,icon:ke}))},O=Fe.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 Le=0,Ce=Object.getOwnPropertySymbols(le);Le<Ce.length;Le++)J.indexOf(Ce[Le])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Le])&&(be[Ce[Le]]=le[Ce[Le]]);return be};const H={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},V=Fe.createContext({}),ee=(()=>{let le=0;return function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${J}${le}`}})();var z=Fe.forwardRef((le,J)=>{const{prefixCls:be,className:Ce,trigger:Le,children:ae,defaultCollapsed:me=!1,theme:T="dark",style:Ee={},collapsible:oe=!1,reverseArrow:he=!1,width:ve=200,collapsedWidth:_=80,zeroWidthTriggerStyle:N,breakpoint:X,onCollapse:pe,onBreakpoint:qe}=le,at=F(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,Fe.useContext)($.Gs),[Rt,lr]=(0,Fe.useState)("collapsed"in le?le.collapsed:me),[Jt,Ze]=(0,Fe.useState)(!1);(0,Fe.useEffect)(()=>{"collapsed"in le&&lr(le.collapsed)},[le.collapsed]);const Er=(G,v)=>{"collapsed"in le||lr(G),pe==null||pe(G,v)},Cr=(0,Fe.useRef)();Cr.current=G=>{Ze(G.matches),qe==null||qe(G.matches),Rt!==G.matches&&Er(G.matches,"responsive")},(0,Fe.useEffect)(()=>{function G(f){return Cr.current(f)}let v;if(typeof window!="undefined"){const{matchMedia:f}=window;if(f&&X&&X in H){v=f(`(max-width: ${H[X]})`);try{v.addEventListener("change",G)}catch(D){v.addListener(G)}G(v)}}return()=>{try{v==null||v.removeEventListener("change",G)}catch(f){v==null||v.removeListener(G)}}},[X]),(0,Fe.useEffect)(()=>{const G=ee("ant-sider-");return rt.addSider(G),()=>rt.removeSider(G)},[]);const Kr=()=>{Er(!Rt,"clickTrigger")},{getPrefixCls:_r}=(0,Fe.useContext)(S.E_),Ue=()=>{const G=_r("layout-sider",be),v=(0,a.Z)(at,["collapsed"]),f=Rt?_:ve,D=m(f)?`${f}px`:String(f),fe=parseFloat(String(_||0))===0?Fe.createElement("span",{onClick:Kr,className:p()(`${G}-zero-width-trigger`,`${G}-zero-width-trigger-${he?"right":"left"}`),style:N},Le||Fe.createElement(I,null)):null,te={expanded:he?Fe.createElement(o.Z,null):Fe.createElement(n.Z,null),collapsed:he?Fe.createElement(n.Z,null):Fe.createElement(o.Z,null)}[Rt?"collapsed":"expanded"],Ie=Le!==null?fe||Fe.createElement("div",{className:`${G}-trigger`,onClick:Kr,style:{width:D}},Le||te):null,Te=Object.assign(Object.assign({},Ee),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),Se=p()(G,`${G}-${T}`,{[`${G}-collapsed`]:!!Rt,[`${G}-has-trigger`]:oe&&Le!==null&&!fe,[`${G}-below`]:!!Jt,[`${G}-zero-width`]:parseFloat(D)===0},Ce);return Fe.createElement("aside",Object.assign({className:Se},v,{style:Te,ref:J}),Fe.createElement("div",{className:`${G}-children`},ae),oe||Jt&&fe?Ie:null)},St=Fe.useMemo(()=>({siderCollapsed:Rt}),[Rt]);return Fe.createElement(V.Provider,{value:St},Ue())})},84966:function(bn,Wt,g){"use strict";g.d(Wt,{VY:function(){return V},$_:function(){return H},h4:function(){return F},Gs:function(){return a},ZP:function(){return ee}});var we=g(26407),Fe=g(92310),se=g.n(Fe),ke=g(2738),ie=g(59301),Y=g(36355),O=g(83116),n=B=>{const{componentCls:z,bodyBg:le,lightSiderBg:J,lightTriggerBg:be,lightTriggerColor:Ce}=B;return{[`${z}-sider-light`]:{background:J,[`${z}-sider-trigger`]:{color:Ce,background:be},[`${z}-sider-zero-width-trigger`]:{color:Ce,background:be,border:`1px solid ${le}`,borderInlineStart:0}}}};const o=B=>{const{antCls:z,componentCls:le,colorText:J,triggerColor:be,footerBg:Ce,triggerBg:Le,headerHeight:ae,headerPadding:me,headerColor:T,footerPadding:Ee,triggerHeight:oe,zeroTriggerHeight:he,zeroTriggerWidth:ve,motionDurationMid:_,motionDurationSlow:N,fontSize:X,borderRadius:pe,bodyBg:qe,headerBg:at,siderBg:rt}=B;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:qe,"&, *":{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:rt,transition:`all ${_}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${z}-menu${z}-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:Le,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:rt,borderStartStartRadius:0,borderStartEndRadius:pe,borderEndEndRadius:pe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${N} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${N}`,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,[`${z}-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:z,controlHeight:le,controlHeightLG:J,colorText:be,controlHeightSM:Ce,marginXXS:Le,colorTextLightSolid:ae,colorBgContainer:me}=B,T=J*1.25;return{colorBgHeader:"#001529",colorBgBody:z,colorBgTrigger:"#002140",bodyBg:z,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${T}px`,headerColor:be,footerPadding:`${Ce}px ${T}px`,footerBg:z,siderBg:"#001529",triggerHeight:J+Le*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,z){var le={};for(var J in B)Object.prototype.hasOwnProperty.call(B,J)&&z.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++)z.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:z,tagName:le,displayName:J}=B;return be=>ie.forwardRef((Le,ae)=>ie.createElement(be,Object.assign({ref:ae,suffixCls:z,tagName:le},Le)))}const m=ie.forwardRef((B,z)=>{const{prefixCls:le,suffixCls:J,className:be,tagName:Ce}=B,Le=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:z},Le)))}),S=ie.forwardRef((B,z)=>{const{direction:le}=ie.useContext(Y.E_),[J,be]=ie.useState([]),{prefixCls:Ce,className:Le,rootClassName:ae,children:me,hasSider:T,tagName:Ee,style:oe}=B,he=p(B,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ve=(0,ke.Z)(he,["suffixCls"]),{getPrefixCls:_,layout:N}=ie.useContext(Y.E_),X=_("layout",Ce),[pe,qe]=L(X),at=se()(X,{[`${X}-has-sider`]:typeof T=="boolean"?T:J.length>0,[`${X}-rtl`]:le==="rtl"},N==null?void 0:N.className,Le,ae,qe),rt=ie.useMemo(()=>({siderHook:{addSider:Rt=>{be(lr=>[].concat((0,we.Z)(lr),[Rt]))},removeSider:Rt=>{be(lr=>lr.filter(Jt=>Jt!==Rt))}}}),[]);return pe(ie.createElement(a.Provider,{value:rt},ie.createElement(Ee,Object.assign({ref:z,className:at,style:Object.assign(Object.assign({},N==null?void 0:N.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,Wt,g){"use strict";g.d(Wt,{J:function(){return Y}});var we=g(59301),Fe=g(33234),se=g(70425),ke=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=ke(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(Fe.BR,null,(0,se.supportNodeRef)(n)?we.cloneElement(n,{ref:I}):n))});Wt.Z=ie},20834:function(bn,Wt,g){"use strict";g.d(Wt,{default:function(){return St}});var we=g(15285),Fe=g(59301),se=g(45818),ke=g(92310),ie=g.n(ke),Y=g(36355),O=function(G,v){var f={};for(var D in G)Object.prototype.hasOwnProperty.call(G,D)&&v.indexOf(D)<0&&(f[D]=G[D]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,D=Object.getOwnPropertySymbols(G);fe<D.length;fe++)v.indexOf(D[fe])<0&&Object.prototype.propertyIsEnumerable.call(G,D[fe])&&(f[D[fe]]=G[D[fe]]);return f},n=G=>{const{prefixCls:v,className:f,dashed:D}=G,fe=O(G,["prefixCls","className","dashed"]),{getPrefixCls:W}=Fe.useContext(Y.E_),P=W("menu",v),te=ie()({[`${P}-item-divider-dashed`]:!!D},f);return Fe.createElement(we.iz,Object.assign({className:te},fe))},o=g(11592),L=g(2738),p=g(6848),a=g(92343),m=(0,Fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$=G=>{var v;const{className:f,children:D,icon:fe,title:W,danger:P}=G,{prefixCls:te,firstLevel:Ie,direction:Te,disableMenuItemTitleTooltip:Se,inlineCollapsed:Ge}=Fe.useContext(m),dt=Bt=>{const Kt=Fe.createElement("span",{className:`${te}-title-content`},D);return(!fe||(0,a.l$)(D)&&D.type==="span")&&D&&Bt&&Ie&&typeof D=="string"?Fe.createElement("div",{className:`${te}-inline-collapsed-noicon`},D.charAt(0)):Kt},{siderCollapsed:Ke}=Fe.useContext(se.D);let Xe=W;typeof W=="undefined"?Xe=Ie?D:"":W===!1&&(Xe="");const At={title:Xe};!Ke&&!Ge&&(At.title=null,At.open=!1);const We=(0,o.Z)(D).length;let $e=Fe.createElement(we.ck,Object.assign({},(0,L.Z)(G,["title","icon","danger"]),{className:ie()({[`${te}-item-danger`]:P,[`${te}-item-only-child`]:(fe?We+1:We)===1},f),title:typeof W=="string"?W: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`)}),dt(Ge));return Se||($e=Fe.createElement(p.Z,Object.assign({},At,{placement:Te==="rtl"?"left":"right",overlayClassName:`${te}-inline-collapsed-tooltip`}),$e)),$e},H=G=>{var v;const{popupClassName:f,icon:D,title:fe,theme:W}=G,P=Fe.useContext(m),{prefixCls:te,inlineCollapsed:Ie,theme:Te}=P,Se=(0,we.Xl)();let Ge;if(!D)Ge=Ie&&!Se.length&&fe&&typeof fe=="string"?Fe.createElement("div",{className:`${te}-inline-collapsed-noicon`},fe.charAt(0)):Fe.createElement("span",{className:`${te}-title-content`},fe);else{const Ke=(0,a.l$)(fe)&&fe.type==="span";Ge=Fe.createElement(Fe.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`)}),Ke?fe:Fe.createElement("span",{className:`${te}-title-content`},fe))}const dt=Fe.useMemo(()=>Object.assign(Object.assign({},P),{firstLevel:!1}),[P]);return Fe.createElement(m.Provider,{value:dt},Fe.createElement(we.Wd,Object.assign({},(0,L.Z)(G,["icon"]),{title:Ge,popupClassName:ie()(te,f,`${te}-${W||Te}`)})))},V=g(18785),ee=g(70425),B=g(62892),z=g(40875),le=function(G,v){var f={};for(var D in G)Object.prototype.hasOwnProperty.call(G,D)&&v.indexOf(D)<0&&(f[D]=G[D]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,D=Object.getOwnPropertySymbols(G);fe<D.length;fe++)v.indexOf(D[fe])<0&&Object.prototype.propertyIsEnumerable.call(G,D[fe])&&(f[D[fe]]=G[D[fe]]);return f};function J(G){return(G||[]).map((v,f)=>{if(v&&typeof v=="object"){const D=v,{label:fe,children:W,key:P,type:te}=D,Ie=le(D,["label","children","key","type"]),Te=P!=null?P:`tmp-${f}`;return W||te==="group"?te==="group"?Fe.createElement(we.BW,Object.assign({key:Te},Ie,{title:fe}),J(W)):Fe.createElement(H,Object.assign({key:Te},Ie,{title:fe}),J(W)):te==="divider"?Fe.createElement(n,Object.assign({key:Te},Ie)):Fe.createElement($,Object.assign({key:Te},Ie),fe)}return null}).filter(v=>v)}function be(G){return Fe.useMemo(()=>G&&J(G),[G])}var Ce=g(64993),Le=g(17313),ae=g(8378),me=g(13826),T=g(29878),Ee=g(83116),oe=g(37613),ve=G=>{const{componentCls:v,motionDurationSlow:f,horizontalLineHeight:D,colorSplit:fe,lineWidth:W,lineType:P,itemPaddingInline:te}=G;return{[`${v}-horizontal`]:{lineHeight:D,border:0,borderBottom:`${W}px ${P} ${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 ${f}`,`background ${f}`].join(",")},[`${v}-submenu-arrow`]:{display:"none"}}}},N=G=>{let{componentCls:v,menuArrowOffset:f}=G;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(-${f})`},"&::after":{transform:`rotate(45deg) translateY(${f})`}}}}};const X=G=>Object.assign({},(0,Le.oN)(G));var qe=(G,v)=>{const{componentCls:f,itemColor:D,itemSelectedColor:fe,groupTitleColor:W,itemBg:P,subMenuItemBg:te,itemSelectedBg:Ie,activeBarHeight:Te,activeBarWidth:Se,activeBarBorderWidth:Ge,motionDurationSlow:dt,motionEaseInOut:Ke,motionEaseOut:Xe,itemPaddingInline:At,motionDurationMid:We,itemHoverColor:$e,lineType:Bt,colorSplit:Kt,itemDisabledColor:Mt,dangerItemColor:br,dangerItemHoverColor:vr,dangerItemSelectedColor:re,dangerItemActiveBg:ue,dangerItemSelectedBg:rr,itemHoverBg:Me,itemActiveBg:ot,menuSubMenuBg:Zr,horizontalItemSelectedColor:Tt,horizontalItemSelectedBg:Yt,horizontalItemBorderRadius:Gt,horizontalItemHoverBg:nt,popupBg:ct}=G;return{[`${f}-${v}, ${f}-${v} > ${f}`]:{color:D,background:P,[`&${f}-root:focus-visible`]:Object.assign({},X(G)),[`${f}-item-group-title`]:{color:W},[`${f}-submenu-selected`]:{[`> ${f}-submenu-title`]:{color:fe}},[`${f}-item-disabled, ${f}-submenu-disabled`]:{color:`${Mt} !important`},[`${f}-item:not(${f}-item-selected):not(${f}-submenu-selected)`]:{[`&:hover, > ${f}-submenu-title:hover`]:{color:$e}},[`&:not(${f}-horizontal)`]:{[`${f}-item:not(${f}-item-selected)`]:{"&:hover":{backgroundColor:Me},"&:active":{backgroundColor:ot}},[`${f}-submenu-title`]:{"&:hover":{backgroundColor:Me},"&:active":{backgroundColor:ot}}},[`${f}-item-danger`]:{color:br,[`&${f}-item:hover`]:{[`&:not(${f}-item-selected):not(${f}-submenu-selected)`]:{color:vr}},[`&${f}-item:active`]:{background:ue}},[`${f}-item a`]:{"&, &:hover":{color:"inherit"}},[`${f}-item-selected`]:{color:fe,[`&${f}-item-danger`]:{color:re},"a, a:hover":{color:"inherit"}},[`& ${f}-item-selected`]:{backgroundColor:Ie,[`&${f}-item-danger`]:{backgroundColor:rr}},[`${f}-item, ${f}-submenu-title`]:{[`&:not(${f}-item-disabled):focus-visible`]:Object.assign({},X(G))},[`&${f}-submenu > ${f}`]:{backgroundColor:Zr},[`&${f}-popup > ${f}`]:{backgroundColor:ct},[`&${f}-horizontal`]:Object.assign(Object.assign({},v==="dark"?{borderBottom:0}:{}),{[`> ${f}-item, > ${f}-submenu`]:{top:Ge,marginTop:-Ge,marginBottom:0,borderRadius:Gt,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${Te}px solid transparent`,transition:`border-color ${dt} ${Ke}`,content:'""'},"&:hover, &-active, &-open":{background:nt,"&::after":{borderBottomWidth:Te,borderBottomColor:Tt}},"&-selected":{color:Tt,backgroundColor:Yt,"&:hover":{backgroundColor:Yt},"&::after":{borderBottomWidth:Te,borderBottomColor:Tt}}}}),[`&${f}-root`]:{[`&${f}-inline, &${f}-vertical`]:{borderInlineEnd:`${Ge}px ${Bt} ${Kt}`}},[`&${f}-inline`]:{[`${f}-sub${f}-inline`]:{background:te},[`${f}-item, ${f}-submenu-title`]:Ge&&Se?{width:`calc(100% + ${Ge}px)`}:{},[`${f}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Se}px solid ${fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${We} ${Xe}`,`opacity ${We} ${Xe}`].join(","),content:'""'},[`&${f}-item-danger`]:{"&::after":{borderInlineEndColor:re}}},[`${f}-selected, ${f}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${We} ${Ke}`,`opacity ${We} ${Ke}`].join(",")}}}}}};const at=G=>{const{componentCls:v,itemHeight:f,itemMarginInline:D,padding:fe,menuArrowSize:W,marginXS:P,itemMarginBlock:te}=G,Ie=fe+W+P;return{[`${v}-item`]:{position:"relative",overflow:"hidden"},[`${v}-item, ${v}-submenu-title`]:{height:f,lineHeight:`${f}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:f,lineHeight:`${f}px`},[`${v}-item-group-list ${v}-submenu-title,
|
|
|
${v}-submenu-title`]:{paddingInlineEnd:Ie}}};var Rt=G=>{const{componentCls:v,iconCls:f,itemHeight:D,colorTextLightSolid:fe,dropdownWidth:W,controlHeightLG:P,motionDurationMid:te,motionEaseOut:Ie,paddingXL:Te,itemMarginInline:Se,fontSizeLG:Ge,motionDurationSlow:dt,paddingXS:Ke,boxShadowSecondary:Xe,collapsedWidth:At,collapsedIconSize:We}=G,$e={height:D,lineHeight:`${D}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[v]:{"&-inline, &-vertical":Object.assign({[`&${v}-root`]:{boxShadow:"none"}},at(G))},[`${v}-submenu-popup`]:{[`${v}-vertical`]:Object.assign(Object.assign({},at(G)),{boxShadow:Xe})}},{[`${v}-submenu-popup ${v}-vertical${v}-sub`]:{minWidth:W,maxHeight:`calc(100vh - ${P*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 ${dt}`,`background ${dt}`,`padding ${te} ${Ie}`].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`]:$e,[`& ${v}-item-group-title`]:{paddingInlineStart:Te}},[`${v}-item`]:$e}},{[`${v}-inline-collapsed`]:{width:At,[`&${v}-root`]:{[`${v}-item, ${v}-submenu ${v}-submenu-title`]:{[`> ${v}-inline-collapsed-noicon`]:{fontSize:Ge,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% - ${Ge/2}px - ${Se}px)`,textOverflow:"clip",[`
|
|
|
${v}-submenu-arrow,
|
|
|
${v}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${v}-item-icon, ${f}`]:{margin:0,fontSize:We,lineHeight:`${D}px`,"+ span":{display:"inline-block",opacity:0}}},[`${v}-item-icon, ${f}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${v}-item-icon, ${f}`]:{display:"none"},"a, a:hover":{color:fe}},[`${v}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:Ke})}}]};const lr=G=>{const{componentCls:v,motionDurationSlow:f,motionDurationMid:D,motionEaseInOut:fe,motionEaseOut:W,iconCls:P,iconSize:te,iconMarginInlineEnd:Ie}=G;return{[`${v}-item, ${v}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${f}`,`background ${f}`,`padding ${f} ${fe}`].join(","),[`${v}-item-icon, ${P}`]:{minWidth:te,fontSize:te,transition:[`font-size ${D} ${W}`,`margin ${f} ${fe}`,`color ${f}`].join(","),"+ span":{marginInlineStart:Ie,opacity:1,transition:[`opacity ${f} ${fe}`,`margin ${f}`,`color ${f}`].join(",")}},[`${v}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${v}-item-only-child`]:{[`> ${P}, > ${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=G=>{const{componentCls:v,motionDurationSlow:f,motionEaseInOut:D,borderRadius:fe,menuArrowSize:W,menuArrowOffset:P}=G;return{[`${v}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:G.margin,width:W,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${f} ${D}, opacity ${f}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:W*.6,height:W*.15,backgroundColor:"currentcolor",borderRadius:fe,transition:[`background ${f} ${D}`,`transform ${f} ${D}`,`top ${f} ${D}`,`color ${f} ${D}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${P})`},"&::after":{transform:`rotate(-45deg) translateY(${P})`}}}}},Ze=G=>{const{antCls:v,componentCls:f,fontSize:D,motionDurationSlow:fe,motionDurationMid:W,motionEaseInOut:P,paddingXS:te,padding:Ie,colorSplit:Te,lineWidth:Se,zIndexPopup:Ge,borderRadiusLG:dt,subMenuItemBorderRadius:Ke,menuArrowSize:Xe,menuArrowOffset:At,lineType:We,menuPanelMaskInset:$e,groupTitleLineHeight:Bt,groupTitleFontSize:Kt}=G;return[{"":{[`${f}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${f}-submenu-hidden`]:{display:"none"}},{[f]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(G)),(0,Le.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",[`${f}-item`]:{flex:"none"}},[`${f}-item, ${f}-submenu, ${f}-submenu-title`]:{borderRadius:G.itemBorderRadius},[`${f}-item-group-title`]:{padding:`${te}px ${Ie}px`,fontSize:Kt,lineHeight:Bt,transition:`all ${fe}`},[`&-horizontal ${f}-submenu`]:{transition:[`border-color ${fe} ${P}`,`background ${fe} ${P}`].join(",")},[`${f}-submenu, ${f}-submenu-inline`]:{transition:[`border-color ${fe} ${P}`,`background ${fe} ${P}`,`padding ${W} ${P}`].join(",")},[`${f}-submenu ${f}-sub`]:{cursor:"initial",transition:[`background ${fe} ${P}`,`padding ${fe} ${P}`].join(",")},[`${f}-title-content`]:{transition:`color ${fe}`},[`${f}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${f}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Te,borderStyle:We,borderWidth:0,borderTopWidth:Se,marginBlock:Se,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lr(G)),{[`${f}-item-group`]:{[`${f}-item-group-list`]:{margin:0,padding:0,[`${f}-item, ${f}-submenu-title`]:{paddingInline:`${D*2}px ${Ie}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ge,borderRadius:dt,boxShadow:"none",transformOrigin:"0 0",[`&${f}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${$e}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:$e},"\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:G.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:G.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:G.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:G.paddingXS},[`> ${f}`]:Object.assign(Object.assign(Object.assign({borderRadius:dt},lr(G)),Jt(G)),{[`${f}-item, ${f}-submenu > ${f}-submenu-title`]:{borderRadius:Ke},[`${f}-submenu-title::after`]:{transition:`transform ${fe} ${P}`}})}}),Jt(G)),{[`&-inline-collapsed ${f}-submenu-arrow,
|
|
|
&-inline ${f}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${At})`},"&::after":{transform:`rotate(45deg) translateX(-${At})`}},[`${f}-submenu-open${f}-submenu-inline > ${f}-submenu-title > ${f}-submenu-arrow`]:{transform:`translateY(-${Xe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${At})`},"&::before":{transform:`rotate(45deg) translateX(${At})`}}})},{[`${v}-layout-header`]:{[f]:{lineHeight:"inherit"}}}]};var Er=(G,v)=>(0,Ee.Z)("Menu",D=>{if(v===!1)return[];const{colorBgElevated:fe,colorPrimary:W,colorTextLightSolid:P,controlHeightLG:te,fontSize:Ie,darkItemColor:Te,darkDangerItemColor:Se,darkItemBg:Ge,darkSubMenuItemBg:dt,darkItemSelectedColor:Ke,darkItemSelectedBg:Xe,darkDangerItemSelectedBg:At,darkItemHoverBg:We,darkGroupTitleColor:$e,darkItemHoverColor:Bt,darkItemDisabledColor:Kt,darkDangerItemHoverColor:Mt,darkDangerItemSelectedColor:br,darkDangerItemActiveBg:vr}=D,re=Ie/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:Te,itemHoverColor:Bt,groupTitleColor:$e,itemSelectedColor:Ke,itemBg:Ge,popupBg:Ge,subMenuItemBg:dt,itemActiveBg:"transparent",itemSelectedBg:Xe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:We,itemDisabledColor:Kt,dangerItemColor:Se,dangerItemHoverColor:Mt,dangerItemSelectedColor:br,dangerItemActiveBg:vr,dangerItemSelectedBg:At,menuSubMenuBg:dt,horizontalItemSelectedColor:P,horizontalItemSelectedBg:W});return[Ze(ue),ve(ue),Rt(ue),qe(ue,"light"),qe(rr,"dark"),N(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:W,colorTextDisabled:P,colorErrorBg:te,colorText:Ie,colorTextDescription:Te,colorBgContainer:Se,colorFillAlter:Ge,colorFillContent:dt,lineWidth:Ke,lineWidthBold:Xe,controlItemBgActive:At,colorBgTextHover:We,controlHeightLG:$e,lineHeight:Bt,colorBgElevated:Kt,marginXXS:Mt,padding:br,fontSize:vr,controlHeightSM:re,fontSizeLG:ue,colorTextLightSolid:rr,colorErrorHover:Me}=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:Ie,itemColor:Ie,colorItemTextHover:Ie,itemHoverColor:Ie,colorItemTextHoverHorizontal:fe,horizontalItemHoverColor:fe,colorGroupTitle:Te,groupTitleColor:Te,colorItemTextSelected:fe,itemSelectedColor:fe,colorItemTextSelectedHorizontal:fe,horizontalItemSelectedColor:fe,colorItemBg:Se,itemBg:Se,colorItemBgHover:We,itemHoverBg:We,colorItemBgActive:dt,itemActiveBg:At,colorSubItemBg:Ge,subMenuItemBg:Ge,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xe,activeBarHeight:Xe,colorActiveBarBorderSize:Ke,activeBarBorderWidth:Ke,colorItemTextDisabled:P,itemDisabledColor:P,colorDangerItemText:W,dangerItemColor:W,colorDangerItemTextHover:W,dangerItemHoverColor:W,colorDangerItemTextSelected:W,dangerItemSelectedColor:W,colorDangerItemBgActive:te,dangerItemActiveBg:te,colorDangerItemBgSelected:te,dangerItemSelectedBg:te,itemMarginInline:D.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$e,groupTitleLineHeight:Bt,collapsedWidth:$e*2,popupBg:Kt,itemMarginBlock:Mt,itemPaddingInline:br,horizontalLineHeight:`${$e*1.15}px`,iconSize:vr,iconMarginInlineEnd:re-vr,collapsedIconSize:ue,groupTitleFontSize:vr,darkItemDisabledColor:new Ce.C(rr).setAlpha(.25).toRgbString(),darkItemColor:ot,darkDangerItemColor:W,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rr,darkItemSelectedBg:fe,darkDangerItemSelectedBg:W,darkItemHoverBg:"transparent",darkGroupTitleColor:ot,darkItemHoverColor:rr,darkDangerItemHoverColor:Me,darkDangerItemSelectedColor:rr,darkDangerItemActiveBg:W}},{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"]]})(G),Cr=function(G,v){var f={};for(var D in G)Object.prototype.hasOwnProperty.call(G,D)&&v.indexOf(D)<0&&(f[D]=G[D]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,D=Object.getOwnPropertySymbols(G);fe<D.length;fe++)v.indexOf(D[fe])<0&&Object.prototype.propertyIsEnumerable.call(G,D[fe])&&(f[D[fe]]=G[D[fe]]);return f},_r=(0,Fe.forwardRef)((G,v)=>{var f,D;const fe=Fe.useContext(z.Z),W=fe||{},{getPrefixCls:P,getPopupContainer:te,direction:Ie,menu:Te}=Fe.useContext(Y.E_),Se=P(),{prefixCls:Ge,className:dt,style:Ke,theme:Xe="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:We,inlineCollapsed:$e,siderCollapsed:Bt,items:Kt,children:Mt,rootClassName:br,mode:vr,selectable:re,onClick:ue,overflowedIndicatorPopupClassName:rr}=G,Me=Cr(G,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ot=(0,L.Z)(Me,["collapsedWidth"]),Zr=be(Kt)||Mt;(f=W.validator)===null||f===void 0||f.call(W,{mode:vr});const Tt=(0,ee.useEvent)(function(){var Vn;ue==null||ue.apply(void 0,arguments),(Vn=W.onClick)===null||Vn===void 0||Vn.call(W)}),Yt=W.mode||vr,Gt=re!=null?re:W.selectable,nt=Fe.useMemo(()=>Bt!==void 0?Bt:$e,[$e,Bt]),ct={horizontal:{motionName:`${Se}-slide-up`},inline:(0,B.Z)(Se),other:{motionName:`${Se}-zoom-big`}},pt=P("menu",Ge||W.prefixCls),[Zt,Oe]=Er(pt,!fe),fn=ie()(`${pt}-${Xe}`,Te==null?void 0:Te.className,dt);let Nt;if(typeof At=="function")Nt=At;else if(At===null||At===!1)Nt=null;else if(W.expandIcon===null||W.expandIcon===!1)Nt=null;else{const Vn=At!=null?At:W.expandIcon;Nt=(0,a.Tm)(Vn,{className:ie()(`${pt}-submenu-expand-icon`,(0,a.l$)(Vn)?(D=Vn.props)===null||D===void 0?void 0:D.className:"")})}const Ln=Fe.useMemo(()=>({prefixCls:pt,inlineCollapsed:nt||!1,direction:Ie,firstLevel:!0,theme:Xe,mode:Yt,disableMenuItemTitleTooltip:We}),[pt,nt,Ie,We,Xe]);return Zt(Fe.createElement(z.Z.Provider,{value:null},Fe.createElement(m.Provider,{value:Ln},Fe.createElement(we.ZP,Object.assign({getPopupContainer:te,overflowedIndicator:Fe.createElement(V.Z,null),overflowedIndicatorPopupClassName:ie()(pt,`${pt}-${Xe}`,rr),mode:Yt,selectable:Gt,onClick:Tt},ot,{inlineCollapsed:nt,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),Ke),className:fn,prefixCls:pt,direction:Ie,defaultMotions:ct,expandIcon:Nt,ref:v,rootClassName:ie()(br,Oe)}),Zr))))});const Ue=(0,Fe.forwardRef)((G,v)=>{const f=(0,Fe.useRef)(null),D=Fe.useContext(se.D);return(0,Fe.useImperativeHandle)(v,()=>({menu:f.current,focus:fe=>{var W;(W=f.current)===null||W===void 0||W.focus(fe)}})),Fe.createElement(_r,Object.assign({ref:f},G,D))});Ue.Item=$,Ue.SubMenu=H,Ue.Divider=n,Ue.ItemGroup=we.BW;var St=Ue},58421:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return W}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(te,Ie){return Fe.createElement(ie.Z,(0,we.Z)({},te,{ref:Ie,icon:ke}))},O=Fe.forwardRef(Y),I=O,n=g(49198),o=g(33853),L=g(38819),p=g(92310),a=g.n(p),A=g(400),m=g(33708),S=g(6909),$=g(4771),F=g(9427),H=g(25440),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,z=g(91735),le=function(P){(0,F.Z)(Ie,P);var te=(0,H.Z)(Ie);function Ie(){var Te;(0,S.Z)(this,Ie);for(var Se=arguments.length,Ge=new Array(Se),dt=0;dt<Se;dt++)Ge[dt]=arguments[dt];return Te=te.call.apply(te,[this].concat(Ge)),Te.state={goInputText:""},Te.getValidValue=function(){var Ke=Te.state.goInputText;return!Ke||Number.isNaN(Ke)?void 0:Number(Ke)},Te.buildOptionText=function(Ke){return"".concat(Ke," ").concat(Te.props.locale.items_per_page)},Te.changeSize=function(Ke){Te.props.changeSize(Number(Ke))},Te.handleChange=function(Ke){Te.setState({goInputText:Ke.target.value})},Te.handleBlur=function(Ke){var Xe=Te.props,At=Xe.goButton,We=Xe.quickGo,$e=Xe.rootPrefixCls,Bt=Te.state.goInputText;At||Bt===""||(Te.setState({goInputText:""}),!(Ke.relatedTarget&&(Ke.relatedTarget.className.indexOf("".concat($e,"-item-link"))>=0||Ke.relatedTarget.className.indexOf("".concat($e,"-item"))>=0))&&We(Te.getValidValue()))},Te.go=function(Ke){var Xe=Te.state.goInputText;Xe!==""&&(Ke.keyCode===B.ENTER||Ke.type==="click")&&(Te.setState({goInputText:""}),Te.props.quickGo(Te.getValidValue()))},Te}return(0,$.Z)(Ie,[{key:"getPageSizeOptions",value:function(){var Se=this.props,Ge=Se.pageSize,dt=Se.pageSizeOptions;return dt.some(function(Ke){return Ke.toString()===Ge.toString()})?dt:dt.concat([Ge.toString()]).sort(function(Ke,Xe){var At=Number.isNaN(Number(Ke))?0:Number(Ke),We=Number.isNaN(Number(Xe))?0:Number(Xe);return At-We})}},{key:"render",value:function(){var Se=this,Ge=this.props,dt=Ge.pageSize,Ke=Ge.locale,Xe=Ge.rootPrefixCls,At=Ge.changeSize,We=Ge.quickGo,$e=Ge.goButton,Bt=Ge.selectComponentClass,Kt=Ge.buildOptionText,Mt=Ge.selectPrefixCls,br=Ge.disabled,vr=this.state.goInputText,re="".concat(Xe,"-options"),ue=Bt,rr=null,Me=null,ot=null;if(!At&&!We)return null;var Zr=this.getPageSizeOptions();if(At&&ue){var Tt=Zr.map(function(Yt,Gt){return Fe.createElement(ue.Option,{key:Gt,value:Yt.toString()},(Kt||Se.buildOptionText)(Yt))});rr=Fe.createElement(ue,{disabled:br,prefixCls:Mt,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(dt||Zr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Gt){return Gt.parentNode},"aria-label":Ke.page_size,defaultOpen:!1},Tt)}return We&&($e&&(ot=typeof $e=="boolean"?Fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:br,className:"".concat(re,"-quick-jumper-button")},Ke.jump_to_confirm):Fe.createElement("span",{onClick:this.go,onKeyUp:this.go},$e)),Me=Fe.createElement("div",{className:"".concat(re,"-quick-jumper")},Ke.jump_to,Fe.createElement("input",{disabled:br,type:"text",value:vr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ke.page}),Ke.page,ot)),Fe.createElement("li",{className:"".concat(re)},rr,Me)}}]),Ie}(Fe.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var J=le,be=function(te){var Ie,Te=te.rootPrefixCls,Se=te.page,Ge=te.active,dt=te.className,Ke=te.showTitle,Xe=te.onClick,At=te.onKeyPress,We=te.itemRender,$e="".concat(Te,"-item"),Bt=a()($e,"".concat($e,"-").concat(Se),(Ie={},(0,A.Z)(Ie,"".concat($e,"-active"),Ge),(0,A.Z)(Ie,"".concat($e,"-disabled"),!Se),(0,A.Z)(Ie,te.className,dt),Ie)),Kt=function(){Xe(Se)},Mt=function(re){At(re,Xe,Se)},br=We(Se,"page",Fe.createElement("a",{rel:"nofollow"},Se));return br?Fe.createElement("li",{title:Ke?Se.toString():null,className:Bt,onClick:Kt,onKeyPress:Mt,tabIndex:0},br):null},Ce=be;function Le(){}function ae(P){var te=Number(P);return typeof te=="number"&&!Number.isNaN(te)&&isFinite(te)&&Math.floor(te)===te}var me=function(te,Ie,Te){return Te};function T(P,te,Ie){var Te=typeof P=="undefined"?te.pageSize:P;return Math.floor((Ie.total-1)/Te)+1}var Ee=function(P){(0,F.Z)(Ie,P);var te=(0,H.Z)(Ie);function Ie(Te){var Se;(0,S.Z)(this,Ie),Se=te.call(this,Te),Se.paginationNode=Fe.createRef(),Se.getJumpPrevPage=function(){return Math.max(1,Se.state.current-(Se.props.showLessItems?3:5))},Se.getJumpNextPage=function(){return Math.min(T(void 0,Se.state,Se.props),Se.state.current+(Se.props.showLessItems?3:5))},Se.getItemIcon=function(At,We){var $e=Se.props.prefixCls,Bt=At||Fe.createElement("button",{type:"button","aria-label":We,className:"".concat($e,"-item-link")});return typeof At=="function"&&(Bt=Fe.createElement(At,(0,m.Z)({},Se.props))),Bt},Se.isValid=function(At){var We=Se.props.total;return ae(At)&&At!==Se.state.current&&ae(We)&&We>0},Se.shouldDisplayQuickJumper=function(){var At=Se.props,We=At.showQuickJumper,$e=At.total,Bt=Se.state.pageSize;return $e<=Bt?!1:We},Se.handleKeyDown=function(At){(At.keyCode===B.ARROW_UP||At.keyCode===B.ARROW_DOWN)&&At.preventDefault()},Se.handleKeyUp=function(At){var We=Se.getValidValue(At),$e=Se.state.currentInputValue;We!==$e&&Se.setState({currentInputValue:We}),At.keyCode===B.ENTER?Se.handleChange(We):At.keyCode===B.ARROW_UP?Se.handleChange(We-1):At.keyCode===B.ARROW_DOWN&&Se.handleChange(We+1)},Se.handleBlur=function(At){var We=Se.getValidValue(At);Se.handleChange(We)},Se.changePageSize=function(At){var We=Se.state.current,$e=T(At,Se.state,Se.props);We=We>$e?$e:We,$e===0&&(We=Se.state.current),typeof At=="number"&&("pageSize"in Se.props||Se.setState({pageSize:At}),"current"in Se.props||Se.setState({current:We,currentInputValue:We})),Se.props.onShowSizeChange(We,At),"onChange"in Se.props&&Se.props.onChange&&Se.props.onChange(We,At)},Se.handleChange=function(At){var We=Se.props,$e=We.disabled,Bt=We.onChange,Kt=Se.state,Mt=Kt.pageSize,br=Kt.current,vr=Kt.currentInputValue;if(Se.isValid(At)&&!$e){var re=T(void 0,Se.state,Se.props),ue=At;return At>re?ue=re:At<1&&(ue=1),"current"in Se.props||Se.setState({current:ue}),ue!==vr&&Se.setState({currentInputValue:ue}),Bt(ue,Mt),ue}return br},Se.prev=function(){Se.hasPrev()&&Se.handleChange(Se.state.current-1)},Se.next=function(){Se.hasNext()&&Se.handleChange(Se.state.current+1)},Se.jumpPrev=function(){Se.handleChange(Se.getJumpPrevPage())},Se.jumpNext=function(){Se.handleChange(Se.getJumpNextPage())},Se.hasPrev=function(){return Se.state.current>1},Se.hasNext=function(){return Se.state.current<T(void 0,Se.state,Se.props)},Se.runIfEnter=function(At,We){if(At.key==="Enter"||At.charCode===13){for(var $e=arguments.length,Bt=new Array($e>2?$e-2:0),Kt=2;Kt<$e;Kt++)Bt[Kt-2]=arguments[Kt];We.apply(void 0,Bt)}},Se.runIfEnterPrev=function(At){Se.runIfEnter(At,Se.prev)},Se.runIfEnterNext=function(At){Se.runIfEnter(At,Se.next)},Se.runIfEnterJumpPrev=function(At){Se.runIfEnter(At,Se.jumpPrev)},Se.runIfEnterJumpNext=function(At){Se.runIfEnter(At,Se.jumpNext)},Se.handleGoTO=function(At){(At.keyCode===B.ENTER||At.type==="click")&&Se.handleChange(Se.state.currentInputValue)},Se.renderPrev=function(At){var We=Se.props,$e=We.prevIcon,Bt=We.itemRender,Kt=Bt(At,"prev",Se.getItemIcon($e,"prev page")),Mt=!Se.hasPrev();return(0,Fe.isValidElement)(Kt)?(0,Fe.cloneElement)(Kt,{disabled:Mt}):Kt},Se.renderNext=function(At){var We=Se.props,$e=We.nextIcon,Bt=We.itemRender,Kt=Bt(At,"next",Se.getItemIcon($e,"next page")),Mt=!Se.hasNext();return(0,Fe.isValidElement)(Kt)?(0,Fe.cloneElement)(Kt,{disabled:Mt}):Kt};var Ge=Te.onChange!==Le,dt="current"in Te;dt&&!Ge&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ke=Te.defaultCurrent;"current"in Te&&(Ke=Te.current);var Xe=Te.defaultPageSize;return"pageSize"in Te&&(Xe=Te.pageSize),Ke=Math.min(Ke,T(Xe,void 0,Te)),Se.state={current:Ke,currentInputValue:Ke,pageSize:Xe},Se}return(0,$.Z)(Ie,[{key:"componentDidUpdate",value:function(Se,Ge){var dt=this.props.prefixCls;if(Ge.current!==this.state.current&&this.paginationNode.current){var Ke=this.paginationNode.current.querySelector(".".concat(dt,"-item-").concat(Ge.current));if(Ke&&document.activeElement===Ke){var Xe;Ke==null||(Xe=Ke.blur)===null||Xe===void 0||Xe.call(Ke)}}}},{key:"getValidValue",value:function(Se){var Ge=Se.target.value,dt=T(void 0,this.state,this.props),Ke=this.state.currentInputValue,Xe;return Ge===""?Xe=Ge:Number.isNaN(Number(Ge))?Xe=Ke:Ge>=dt?Xe=dt:Xe=Number(Ge),Xe}},{key:"getShowSizeChanger",value:function(){var Se=this.props,Ge=Se.showSizeChanger,dt=Se.total,Ke=Se.totalBoundaryShowSizeChanger;return typeof Ge!="undefined"?Ge:dt>Ke}},{key:"render",value:function(){var Se=this.props,Ge=Se.prefixCls,dt=Se.className,Ke=Se.style,Xe=Se.disabled,At=Se.hideOnSinglePage,We=Se.total,$e=Se.locale,Bt=Se.showQuickJumper,Kt=Se.showLessItems,Mt=Se.showTitle,br=Se.showTotal,vr=Se.simple,re=Se.itemRender,ue=Se.showPrevNextJumpers,rr=Se.jumpPrevIcon,Me=Se.jumpNextIcon,ot=Se.selectComponentClass,Zr=Se.selectPrefixCls,Tt=Se.pageSizeOptions,Yt=this.state,Gt=Yt.current,nt=Yt.pageSize,ct=Yt.currentInputValue;if(At===!0&&We<=nt)return null;var pt=T(void 0,this.state,this.props),Zt=[],Oe=null,fn=null,Nt=null,Ln=null,Vn=null,yi=Bt&&Bt.goButton,Ki=Kt?1:2,jn=Gt-1>0?Gt-1:0,kn=Gt+1<pt?Gt+1:pt,qt=(0,V.Z)(this.props,{aria:!0,data:!0}),zr=br&&Fe.createElement("li",{className:"".concat(Ge,"-total-text")},br(We,[We===0?0:(Gt-1)*nt+1,Gt*nt>We?We:Gt*nt]));if(vr){yi&&(typeof yi=="boolean"?Vn=Fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},$e.jump_to_confirm):Vn=Fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yi),Vn=Fe.createElement("li",{title:Mt?"".concat($e.jump_to).concat(Gt,"/").concat(pt):null,className:"".concat(Ge,"-simple-pager")},Vn));var Jr=this.renderPrev(jn);return Fe.createElement("ul",(0,we.Z)({className:a()(Ge,"".concat(Ge,"-simple"),(0,A.Z)({},"".concat(Ge,"-disabled"),Xe),dt),style:Ke,ref:this.paginationNode},qt),zr,Jr?Fe.createElement("li",{title:Mt?$e.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Ge,"-prev"),(0,A.Z)({},"".concat(Ge,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Jr):null,Fe.createElement("li",{title:Mt?"".concat(Gt,"/").concat(pt):null,className:"".concat(Ge,"-simple-pager")},Fe.createElement("input",{type:"text",value:ct,disabled:Xe,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Fe.createElement("span",{className:"".concat(Ge,"-slash")},"/"),pt),Fe.createElement("li",{title:Mt?$e.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(Ge,"-next"),(0,A.Z)({},"".concat(Ge,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(kn)),Vn)}if(pt<=3+Ki*2){var Ot={locale:$e,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Mt,itemRender:re};pt||Zt.push(Fe.createElement(Ce,(0,we.Z)({},Ot,{key:"noPager",page:1,className:"".concat(Ge,"-item-disabled")})));for(var Ct=1;Ct<=pt;Ct+=1){var Ir=Gt===Ct;Zt.push(Fe.createElement(Ce,(0,we.Z)({},Ot,{key:Ct,page:Ct,active:Ir})))}}else{var Fr=Kt?$e.prev_3:$e.prev_5,Tn=Kt?$e.next_3:$e.next_5,tn=re(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(rr,"prev page")),Bn=re(this.getJumpNextPage(),"jump-next",this.getItemIcon(Me,"next page"));ue&&(Oe=tn?Fe.createElement("li",{title:Mt?Fr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(Ge,"-jump-prev"),(0,A.Z)({},"".concat(Ge,"-jump-prev-custom-icon"),!!rr))},tn):null,fn=Bn?Fe.createElement("li",{title:Mt?Tn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(Ge,"-jump-next"),(0,A.Z)({},"".concat(Ge,"-jump-next-custom-icon"),!!Me))},Bn):null),Ln=Fe.createElement(Ce,{locale:$e,last:!0,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:pt,page:pt,active:!1,showTitle:Mt,itemRender:re}),Nt=Fe.createElement(Ce,{locale:$e,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Mt,itemRender:re});var gn=Math.max(1,Gt-Ki),zn=Math.min(Gt+Ki,pt);Gt-1<=Ki&&(zn=1+Ki*2),pt-Gt<=Ki&&(gn=pt-Ki*2);for(var Xn=gn;Xn<=zn;Xn+=1){var Qr=Gt===Xn;Zt.push(Fe.createElement(Ce,{locale:$e,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Xn,page:Xn,active:Qr,showTitle:Mt,itemRender:re}))}Gt-1>=Ki*2&&Gt!==3&&(Zt[0]=(0,Fe.cloneElement)(Zt[0],{className:"".concat(Ge,"-item-after-jump-prev")}),Zt.unshift(Oe)),pt-Gt>=Ki*2&&Gt!==pt-2&&(Zt[Zt.length-1]=(0,Fe.cloneElement)(Zt[Zt.length-1],{className:"".concat(Ge,"-item-before-jump-next")}),Zt.push(fn)),gn!==1&&Zt.unshift(Nt),zn!==pt&&Zt.push(Ln)}var Gr=!this.hasPrev()||!pt,Sn=!this.hasNext()||!pt,On=this.renderPrev(jn),Qn=this.renderNext(kn);return Fe.createElement("ul",(0,we.Z)({className:a()(Ge,dt,(0,A.Z)({},"".concat(Ge,"-disabled"),Xe)),style:Ke,ref:this.paginationNode},qt),zr,On?Fe.createElement("li",{title:Mt?$e.prev_page:null,onClick:this.prev,tabIndex:Gr?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Ge,"-prev"),(0,A.Z)({},"".concat(Ge,"-disabled"),Gr)),"aria-disabled":Gr},On):null,Zt,Qn?Fe.createElement("li",{title:Mt?$e.next_page:null,onClick:this.next,tabIndex:Sn?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(Ge,"-next"),(0,A.Z)({},"".concat(Ge,"-disabled"),Sn)),"aria-disabled":Sn},Qn):null,Fe.createElement(J,{disabled:Xe,locale:$e,rootPrefixCls:Ge,selectComponentClass:ot,selectPrefixCls:Zr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Gt,pageSize:nt,pageSizeOptions:Tt,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:yi}))}}],[{key:"getDerivedStateFromProps",value:function(Se,Ge){var dt={};if("current"in Se&&(dt.current=Se.current,Se.current!==Ge.current&&(dt.currentInputValue=dt.current)),"pageSize"in Se&&Se.pageSize!==Ge.pageSize){var Ke=Ge.current,Xe=T(Se.pageSize,Ge,Se);Ke=Ke>Xe?Xe:Ke,"current"in Se||(dt.current=Ke,dt.currentInputValue=Ke),dt.pageSize=Se.pageSize}return dt}}]),Ie}(Fe.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Le,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Le,locale:z.Z,style:{},itemRender:me,totalBoundaryShowSizeChanger:50};var oe=Ee,he=g(22075),ve=g(36355),_=g(19716),N=g(8628),X=g(9763),pe=g(57809);const qe=P=>Fe.createElement(pe.default,Object.assign({},P,{showSearch:!0,size:"small"})),at=P=>Fe.createElement(pe.default,Object.assign({},P,{showSearch:!0,size:"middle"}));qe.Option=pe.default.Option,at.Option=pe.default.Option;var rt=g(9937),Rt=g(17313),lr=g(83116),Jt=g(37613);const Ze=P=>{const{componentCls:te}=P;return{[`${te}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${te}-item-link`]:{color:P.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${te}-item-link`]:{color:P.colorTextDisabled,cursor:"not-allowed"}}},[`&${te}-disabled`]:{cursor:"not-allowed",[`${te}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:P.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:P.colorBorder,backgroundColor:P.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:P.itemActiveBgDisabled},a:{color:P.itemActiveColorDisabled}}},[`${te}-item-link`]:{color:P.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${te}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${te}-simple-pager`]:{color:P.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"}}}}}},Er=P=>{const{componentCls:te}=P;return{[`&${te}-mini ${te}-total-text, &${te}-mini ${te}-simple-pager`]:{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`},[`&${te}-mini ${te}-item`]:{minWidth:P.itemSizeSM,height:P.itemSizeSM,margin:0,lineHeight:`${P.itemSizeSM-2}px`},[`&${te}-mini:not(${te}-disabled) ${te}-item:not(${te}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:P.colorBgTextHover},"&:active":{backgroundColor:P.colorBgTextActive}},[`&${te}-mini ${te}-prev, &${te}-mini ${te}-next`]:{minWidth:P.itemSizeSM,height:P.itemSizeSM,margin:0,lineHeight:`${P.itemSizeSM}px`},[`&${te}-mini:not(${te}-disabled)`]:{[`${te}-prev, ${te}-next`]:{[`&:hover ${te}-item-link`]:{backgroundColor:P.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:P.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:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`}},[`&${te}-mini ${te}-jump-prev, &${te}-mini ${te}-jump-next`]:{height:P.itemSizeSM,marginInlineEnd:0,lineHeight:`${P.itemSizeSM}px`},[`&${te}-mini ${te}-options`]:{marginInlineStart:P.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:P.miniOptionsSizeChangerTop},"&-quick-jumper":{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,rt.x0)(P)),{width:P.paginationMiniQuickJumperInputWidth,height:P.controlHeightSM})}}}},Cr=P=>{const{componentCls:te}=P;return{[`
|
|
|
&${te}-simple ${te}-prev,
|
|
|
&${te}-simple ${te}-next
|
|
|
`]:{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`,verticalAlign:"top",[`${te}-item-link`]:{height:P.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:P.colorBgTextHover},"&:active":{backgroundColor:P.colorBgTextActive},"&::after":{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`}}},[`&${te}-simple ${te}-simple-pager`]:{display:"inline-block",height:P.itemSizeSM,marginInlineEnd:P.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:P.marginXS,padding:`0 ${P.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:P.itemInputBg,border:`${P.lineWidth}px ${P.lineType} ${P.colorBorder}`,borderRadius:P.borderRadius,outline:"none",transition:`border-color ${P.motionDurationMid}`,color:"inherit","&:hover":{borderColor:P.colorPrimary},"&:focus":{borderColor:P.colorPrimaryHover,boxShadow:`${P.inputOutlineOffset}px 0 ${P.controlOutlineWidth}px ${P.controlOutline}`},"&[disabled]":{color:P.colorTextDisabled,backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,cursor:"not-allowed"}}}}},Kr=P=>{const{componentCls:te}=P;return{[`${te}-jump-prev, ${te}-jump-next`]:{outline:0,[`${te}-item-container`]:{position:"relative",[`${te}-item-link-icon`]:{color:P.colorPrimary,fontSize:P.fontSizeSM,opacity:0,transition:`all ${P.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:P.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:P.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:P.paginationEllipsisTextIndent,opacity:1,transition:`all ${P.motionDurationMid}`}},"&:hover":{[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${te}-prev,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{marginInlineEnd:P.marginXS},[`
|
|
|
${te}-prev,
|
|
|
${te}-next,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:P.itemSize,height:P.itemSize,color:P.colorText,fontFamily:P.fontFamily,lineHeight:`${P.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:P.borderRadius,cursor:"pointer",transition:`all ${P.motionDurationMid}`},[`${te}-prev, ${te}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:P.colorText,cursor:"pointer",userSelect:"none"},[`${te}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:P.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${P.lineWidth}px ${P.lineType} transparent`,borderRadius:P.borderRadius,outline:"none",transition:`all ${P.motionDurationMid}`},[`&:hover ${te}-item-link`]:{backgroundColor:P.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:P.colorBgTextActive},[`&${te}-disabled:hover`]:{[`${te}-item-link`]:{backgroundColor:"transparent"}}},[`${te}-slash`]:{marginInlineEnd:P.paginationSlashMarginInlineEnd,marginInlineStart:P.paginationSlashMarginInlineStart},[`${te}-options`]:{display:"inline-block",marginInlineStart:P.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:P.controlHeight,marginInlineStart:P.marginXS,lineHeight:`${P.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,rt.ik)(P)),{width:P.controlHeightLG*1.25,height:P.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:P.marginXS,marginInlineEnd:P.marginXS})}}}},_r=P=>{const{componentCls:te}=P;return{[`${te}-item`]:{display:"inline-block",minWidth:P.itemSize,height:P.itemSize,marginInlineEnd:P.marginXS,fontFamily:P.fontFamily,lineHeight:`${P.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${P.lineWidth}px ${P.lineType} transparent`,borderRadius:P.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${P.paginationItemPaddingInline}px`,color:P.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${te}-item-active)`]:{"&:hover":{transition:`all ${P.motionDurationMid}`,backgroundColor:P.colorBgTextHover},"&:active":{backgroundColor:P.colorBgTextActive}},"&-active":{fontWeight:P.fontWeightStrong,backgroundColor:P.itemActiveBg,borderColor:P.colorPrimary,a:{color:P.colorPrimary},"&:hover":{borderColor:P.colorPrimaryHover},"&:hover a":{color:P.colorPrimaryHover}}}}},Ue=P=>{const{componentCls:te}=P;return{[te]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(P)),{"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:P.itemSize,marginInlineEnd:P.marginXS,lineHeight:`${P.itemSize-2}px`,verticalAlign:"middle"}}),_r(P)),Kr(P)),Cr(P)),Er(P)),Ze(P)),{[`@media only screen and (max-width: ${P.screenLG}px)`]:{[`${te}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${P.screenSM}px)`]:{[`${te}-options`]:{display:"none"}}}),[`&${P.componentCls}-rtl`]:{direction:"rtl"}}},St=P=>{const{componentCls:te}=P;return{[`${te}${te}-disabled:not(${te}-mini)`]:{"&, &:hover":{[`${te}-item-link`]:{borderColor:P.colorBorder}},"&:focus-visible":{[`${te}-item-link`]:{borderColor:P.colorBorder}},[`${te}-item, ${te}-item-link`]:{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,[`&:hover:not(${te}-item-active)`]:{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,a:{color:P.colorTextDisabled}},[`&${te}-item-active`]:{backgroundColor:P.itemActiveBgDisabled}},[`${te}-prev, ${te}-next`]:{"&:hover button":{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,color:P.colorTextDisabled},[`${te}-item-link`]:{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder}}},[`${te}:not(${te}-mini)`]:{[`${te}-prev, ${te}-next`]:{"&:hover button":{borderColor:P.colorPrimaryHover,backgroundColor:P.itemBg},[`${te}-item-link`]:{backgroundColor:P.itemLinkBg,borderColor:P.colorBorder},[`&:hover ${te}-item-link`]:{borderColor:P.colorPrimary,backgroundColor:P.itemBg,color:P.colorPrimary},[`&${te}-disabled`]:{[`${te}-item-link`]:{borderColor:P.colorBorder,color:P.colorTextDisabled}}},[`${te}-item`]:{backgroundColor:P.itemBg,border:`${P.lineWidth}px ${P.lineType} ${P.colorBorder}`,[`&:hover:not(${te}-item-active)`]:{borderColor:P.colorPrimary,backgroundColor:P.itemBg,a:{color:P.colorPrimary}},"&-active":{borderColor:P.colorPrimary}}}}},G=P=>{const{componentCls:te}=P;return{[`${te}:not(${te}-disabled)`]:{[`${te}-item`]:Object.assign({},(0,Rt.Qy)(P)),[`${te}-jump-prev, ${te}-jump-next`]:{"&:focus-visible":Object.assign({[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}},(0,Rt.oN)(P))},[`${te}-prev, ${te}-next`]:{[`&:focus-visible ${te}-item-link`]:Object.assign({},(0,Rt.oN)(P))}}}};var v=(0,lr.Z)("Pagination",P=>{const te=(0,Jt.TS)(P,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:P.marginXXS/2,paginationMiniQuickJumperInputWidth:P.controlHeightLG*1.1,paginationItemPaddingInline:P.marginXXS*1.5,paginationEllipsisLetterSpacing:P.marginXXS/2,paginationSlashMarginInlineStart:P.marginXXS,paginationSlashMarginInlineEnd:P.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e5)(P),(0,rt.TM)(P));return[Ue(te),G(te),P.wireframe&&St(te)]},P=>({itemBg:P.colorBgContainer,itemSize:P.controlHeight,itemSizeSM:P.controlHeightSM,itemActiveBg:P.colorBgContainer,itemLinkBg:P.colorBgContainer,itemActiveColorDisabled:P.colorTextDisabled,itemActiveBgDisabled:P.controlItemBgActiveDisabled,itemInputBg:P.colorBgContainer,miniOptionsSizeChangerTop:0})),f=function(P,te){var Ie={};for(var Te in P)Object.prototype.hasOwnProperty.call(P,Te)&&te.indexOf(Te)<0&&(Ie[Te]=P[Te]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Te=Object.getOwnPropertySymbols(P);Se<Te.length;Se++)te.indexOf(Te[Se])<0&&Object.prototype.propertyIsEnumerable.call(P,Te[Se])&&(Ie[Te[Se]]=P[Te[Se]]);return Ie},fe=P=>{const{prefixCls:te,selectPrefixCls:Ie,className:Te,rootClassName:Se,style:Ge,size:dt,locale:Ke,selectComponentClass:Xe,responsive:At,showSizeChanger:We}=P,$e=f(P,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Bt}=(0,N.Z)(At),{getPrefixCls:Kt,direction:Mt,pagination:br={}}=Fe.useContext(ve.E_),vr=Kt("pagination",te),[re,ue]=v(vr),rr=We!=null?We:br.showSizeChanger,Me=Fe.useMemo(()=>{const pt=Fe.createElement("span",{className:`${vr}-item-ellipsis`},"\u2022\u2022\u2022"),Zt=Fe.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?Fe.createElement(L.Z,null):Fe.createElement(o.Z,null)),Oe=Fe.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?Fe.createElement(o.Z,null):Fe.createElement(L.Z,null)),fn=Fe.createElement("a",{className:`${vr}-item-link`},Fe.createElement("div",{className:`${vr}-item-container`},Mt==="rtl"?Fe.createElement(n.Z,{className:`${vr}-item-link-icon`}):Fe.createElement(I,{className:`${vr}-item-link-icon`}),pt)),Nt=Fe.createElement("a",{className:`${vr}-item-link`},Fe.createElement("div",{className:`${vr}-item-container`},Mt==="rtl"?Fe.createElement(I,{className:`${vr}-item-link-icon`}):Fe.createElement(n.Z,{className:`${vr}-item-link-icon`}),pt));return{prevIcon:Zt,nextIcon:Oe,jumpPrevIcon:fn,jumpNextIcon:Nt}},[Mt,vr]),[ot]=(0,X.Z)("Pagination",he.Z),Zr=Object.assign(Object.assign({},ot),Ke),Tt=(0,_.Z)(dt),Yt=Tt==="small"||!!(Bt&&!Tt&&At),Gt=Kt("select",Ie),nt=a()({[`${vr}-mini`]:Yt,[`${vr}-rtl`]:Mt==="rtl"},br==null?void 0:br.className,Te,Se,ue),ct=Object.assign(Object.assign({},br==null?void 0:br.style),Ge);return re(Fe.createElement(oe,Object.assign({},Me,$e,{style:ct,prefixCls:vr,selectPrefixCls:Gt,className:nt,selectComponentClass:Xe||(Yt?qe:at),locale:Zr,showSizeChanger:rr})))},W=fe},5112:function(bn,Wt,g){"use strict";g.d(Wt,{ZP:function(){return N}});var we=g(92310),Fe=g.n(we),se=g(18929),ke=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:qe}=X,at=`${pe}-group`;return{[at]:Object.assign(Object.assign({},(0,$.Wf)(X)),{display:"inline-block",fontSize:0,[`&${at}-rtl`]:{direction:"rtl"},[`${qe}-badge ${qe}-badge-count`]:{zIndex:1},[`> ${qe}-badge:not(:first-child) > ${qe}-button-wrapper`]:{borderInlineStart:"none"}})}},ee=X=>{const{componentCls:pe,wrapperMarginInlineEnd:qe,colorPrimary:at,radioSize:rt,motionDurationSlow:Rt,motionDurationMid:lr,motionEaseInOutCirc:Jt,colorBgContainer:Ze,colorBorder:Er,lineWidth:Cr,dotSize:Kr,colorBgContainerDisabled:_r,colorTextDisabled:Ue,paddingXS:St,dotColorDisabled:G,lineType:v,radioDotDisabledSize:f,wireframe:D,colorWhite:fe}=X,W=`${pe}-inner`;return{[`${pe}-wrapper`]:Object.assign(Object.assign({},(0,$.Wf)(X)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:qe,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:`${Cr}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 ${W}`]:{borderColor:at},[`${pe}-input:focus-visible + ${W}`]: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:rt,height:rt,marginBlockStart:rt/-2,marginInlineStart:rt/-2,backgroundColor:D?at:fe,borderBlockStart:0,borderInlineStart:0,borderRadius:rt,transform:"scale(0)",opacity:0,transition:`all ${Rt} ${Jt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:rt,height:rt,backgroundColor:Ze,borderColor:Er,borderStyle:"solid",borderWidth:Cr,borderRadius:"50%",transition:`all ${lr}`},[`${pe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${pe}-checked`]:{[W]:{borderColor:at,backgroundColor:D?Ze:at,"&::after":{transform:`scale(${Kr/rt})`,opacity:1,transition:`all ${Rt} ${Jt}`}}},[`${pe}-disabled`]:{cursor:"not-allowed",[W]:{backgroundColor:_r,borderColor:Er,cursor:"not-allowed","&::after":{backgroundColor:G}},[`${pe}-input`]:{cursor:"not-allowed"},[`${pe}-disabled + span`]:{color:Ue,cursor:"not-allowed"},[`&${pe}-checked`]:{[W]:{"&::after":{transform:`scale(${f/rt})`}}}},[`span${pe} + *`]:{paddingInlineStart:St,paddingInlineEnd:St}})}},B=X=>{const{buttonColor:pe,controlHeight:qe,componentCls:at,lineWidth:rt,lineType:Rt,colorBorder:lr,motionDurationSlow:Jt,motionDurationMid:Ze,buttonPaddingInline:Er,fontSize:Cr,buttonBg:Kr,fontSizeLG:_r,controlHeightLG:Ue,controlHeightSM:St,paddingXS:G,borderRadius:v,borderRadiusSM:f,borderRadiusLG:D,buttonCheckedBg:fe,buttonSolidCheckedColor:W,colorTextDisabled:P,colorBgContainerDisabled:te,buttonCheckedBgDisabled:Ie,buttonCheckedColorDisabled:Te,colorPrimary:Se,colorPrimaryHover:Ge,colorPrimaryActive:dt,buttonSolidCheckedBg:Ke,buttonSolidCheckedHoverBg:Xe,buttonSolidCheckedActiveBg:At}=X;return{[`${at}-button-wrapper`]:{position:"relative",display:"inline-block",height:qe,margin:0,paddingInline:Er,paddingBlock:0,color:pe,fontSize:Cr,lineHeight:`${qe-rt*2}px`,background:Kr,border:`${rt}px ${Rt} ${lr}`,borderBlockStartWidth:rt+.02,borderInlineStartWidth:0,borderInlineEndWidth:rt,cursor:"pointer",transition:[`color ${Ze}`,`background ${Ze}`,`box-shadow ${Ze}`].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:-rt,insetInlineStart:-rt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:rt,paddingInline:0,backgroundColor:lr,transition:`background-color ${Jt}`,content:'""'}},"&:first-child":{borderInlineStart:`${rt}px ${Rt} ${lr}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${at}-group-large &`]:{height:Ue,fontSize:_r,lineHeight:`${Ue-rt*2}px`,"&:first-child":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D}},[`${at}-group-small &`]:{height:St,paddingInline:G-rt,paddingBlock:0,lineHeight:`${St-rt*2}px`,"&:first-child":{borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f}},"&:hover":{position:"relative",color:Se},"&: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:Se,background:fe,borderColor:Se,"&::before":{backgroundColor:Se},"&:first-child":{borderColor:Se},"&:hover":{color:Ge,borderColor:Ge,"&::before":{backgroundColor:Ge}},"&:active":{color:dt,borderColor:dt,"&::before":{backgroundColor:dt}}},[`${at}-group-solid &-checked:not(${at}-button-wrapper-disabled)`]:{color:W,background:Ke,borderColor:Ke,"&:hover":{color:W,background:Xe,borderColor:Xe},"&:active":{color:W,background:At,borderColor:At}},"&-disabled":{color:P,backgroundColor:te,borderColor:lr,cursor:"not-allowed","&:first-child, &:hover":{color:P,backgroundColor:te,borderColor:lr}},[`&-disabled${at}-button-wrapper-checked`]:{color:Te,backgroundColor:Ie,borderColor:lr,boxShadow:"none"}}}},z=X=>X-4*2;var le=(0,F.Z)("Radio",X=>{const{controlOutline:pe,controlOutlineWidth:qe,radioSize:at}=X,rt=`0 0 0 ${qe}px ${pe}`,Rt=rt,lr=z(at),Jt=(0,H.TS)(X,{radioDotDisabledSize:lr,radioFocusShadow:rt,radioButtonFocusShadow:Rt});return[V(Jt),ee(Jt),B(Jt)]},X=>{const{wireframe:pe,padding:qe,marginXS:at,lineWidth:rt,fontSizeLG:Rt,colorText:lr,colorBgContainer:Jt,colorTextDisabled:Ze,controlItemBgActiveDisabled:Er,colorTextLightSolid:Cr,colorPrimary:Kr,colorPrimaryHover:_r,colorPrimaryActive:Ue}=X,St=4,G=Rt,v=pe?z(G):G-(St+rt)*2;return{radioSize:G,dotSize:v,dotColorDisabled:Ze,buttonSolidCheckedColor:Cr,buttonSolidCheckedBg:Kr,buttonSolidCheckedHoverBg:_r,buttonSolidCheckedActiveBg:Ue,buttonBg:Jt,buttonCheckedBg:Jt,buttonColor:lr,buttonCheckedBgDisabled:Er,buttonCheckedColorDisabled:Ze,buttonPaddingInline:qe-rt,wrapperMarginInlineEnd:at}}),J=g(14088),be=g(4572),Ce=function(X,pe){var qe={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(qe[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(X);rt<at.length;rt++)pe.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[rt])&&(qe[at[rt]]=X[at[rt]]);return qe};const Le=(X,pe)=>{var qe,at;const rt=ie.useContext(o),Rt=ie.useContext(L),{getPrefixCls:lr,direction:Jt,radio:Ze}=ie.useContext(Y.E_),Er=ie.useRef(null),Cr=(0,A.sQ)(pe,Er),{isFormItemInput:Kr}=ie.useContext(S.aM),_r=dt=>{var Ke,Xe;(Ke=X.onChange)===null||Ke===void 0||Ke.call(X,dt),(Xe=rt==null?void 0:rt.onChange)===null||Xe===void 0||Xe.call(rt,dt)},{prefixCls:Ue,className:St,rootClassName:G,children:v,style:f}=X,D=Ce(X,["prefixCls","className","rootClassName","children","style"]),fe=lr("radio",Ue),W=((rt==null?void 0:rt.optionType)||Rt)==="button",P=W?`${fe}-button`:fe,[te,Ie]=le(fe),Te=Object.assign({},D),Se=ie.useContext(m.Z);rt&&(Te.name=rt.name,Te.onChange=_r,Te.checked=X.value===rt.value,Te.disabled=(qe=Te.disabled)!==null&&qe!==void 0?qe:rt.disabled),Te.disabled=(at=Te.disabled)!==null&&at!==void 0?at:Se;const Ge=Fe()(`${P}-wrapper`,{[`${P}-wrapper-checked`]:Te.checked,[`${P}-wrapper-disabled`]:Te.disabled,[`${P}-wrapper-rtl`]:Jt==="rtl",[`${P}-wrapper-in-form-item`]:Kr},Ze==null?void 0:Ze.className,St,G,Ie);return te(ie.createElement(J.Z,{component:"Radio",disabled:Te.disabled},ie.createElement("label",{className:Ge,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),f),onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave},ie.createElement(a.Z,Object.assign({},Te,{className:Fe()(Te.className,!W&&be.A),type:"radio",prefixCls:P,ref:Cr})),v!==void 0?ie.createElement("span",null,v):null)))};var me=ie.forwardRef(Le);const T=ie.forwardRef((X,pe)=>{const{getPrefixCls:qe,direction:at}=ie.useContext(Y.E_),[rt,Rt]=(0,se.Z)(X.defaultValue,{value:X.value}),lr=Ke=>{const Xe=rt,At=Ke.target.value;"value"in X||Rt(At);const{onChange:We}=X;We&&At!==Xe&&We(Ke)},{prefixCls:Jt,className:Ze,rootClassName:Er,options:Cr,buttonStyle:Kr="outline",disabled:_r,children:Ue,size:St,style:G,id:v,onMouseEnter:f,onMouseLeave:D,onFocus:fe,onBlur:W}=X,P=qe("radio",Jt),te=`${P}-group`,[Ie,Te]=le(P);let Se=Ue;Cr&&Cr.length>0&&(Se=Cr.map(Ke=>typeof Ke=="string"||typeof Ke=="number"?ie.createElement(me,{key:Ke.toString(),prefixCls:P,disabled:_r,value:Ke,checked:rt===Ke},Ke):ie.createElement(me,{key:`radio-group-value-options-${Ke.value}`,prefixCls:P,disabled:Ke.disabled||_r,value:Ke.value,checked:rt===Ke.value,title:Ke.title,style:Ke.style},Ke.label)));const Ge=(0,O.Z)(St),dt=Fe()(te,`${te}-${Kr}`,{[`${te}-${Ge}`]:Ge,[`${te}-rtl`]:at==="rtl"},Ze,Er,Te);return Ie(ie.createElement("div",Object.assign({},(0,ke.Z)(X,{aria:!0,data:!0}),{className:dt,style:G,onMouseEnter:f,onMouseLeave:D,onFocus:fe,onBlur:W,id:v,ref:pe}),ie.createElement(n,{value:{onChange:lr,value:rt,disabled:X.disabled,name:X.name,optionType:X.optionType}},Se)))});var Ee=ie.memo(T),oe=function(X,pe){var qe={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(qe[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(X);rt<at.length;rt++)pe.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[rt])&&(qe[at[rt]]=X[at[rt]]);return qe};const he=(X,pe)=>{const{getPrefixCls:qe}=ie.useContext(Y.E_),{prefixCls:at}=X,rt=oe(X,["prefixCls"]),Rt=qe("radio",at);return ie.createElement(p,{value:"button"},ie.createElement(me,Object.assign({prefixCls:Rt},rt,{type:"radio",ref:pe})))};var ve=ie.forwardRef(he);const _=me;_.Button=ve,_.Group=Ee,_.__ANT_RADIO=!0;var N=_},57809:function(bn,Wt,g){"use strict";var we=g(92310),Fe=g.n(we),se=g(77861),ke=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 Le=0,Ce=Object.getOwnPropertySymbols(le);Le<Ce.length;Le++)J.indexOf(Ce[Le])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Le])&&(be[Ce[Le]]=le[Ce[Le]]);return be};const V="SECRET_COMBOBOX_MODE_DO_NOT_USE",ee=(le,J)=>{var be,{prefixCls:Ce,bordered:Le=!0,className:ae,rootClassName:me,getPopupContainer:T,popupClassName:Ee,dropdownClassName:oe,listHeight:he=256,placement:ve,listItemHeight:_=24,size:N,disabled:X,notFoundContent:pe,status:qe,builtinPlacements:at,dropdownMatchSelectWidth:rt,popupMatchSelectWidth:Rt,direction:lr,style:Jt,allowClear:Ze}=le,Er=H(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Cr,getPrefixCls:Kr,renderEmpty:_r,direction:Ue,virtual:St,popupMatchSelectWidth:G,popupOverflow:v,select:f}=ie.useContext(n.E_),D=Kr("select",Ce),fe=Kr(),W=lr!=null?lr:Ue,{compactSize:P,compactItemClassnames:te}=(0,A.ri)(D,W),[Ie,Te]=(0,m.Z)(D),Se=ie.useMemo(()=>{const{mode:ct}=Er;if(ct!=="combobox")return ct===V?"combobox":ct},[Er.mode]),Ge=Se==="multiple"||Se==="tags",dt=(0,$.Z)(Er.suffixIcon,Er.showArrow),Ke=(be=Rt!=null?Rt:rt)!==null&&be!==void 0?be:G,{status:Xe,hasFeedback:At,isFormItemInput:We,feedbackIcon:$e}=ie.useContext(a.aM),Bt=(0,I.F)(Xe,qe);let Kt;pe!==void 0?Kt=pe:Se==="combobox"?Kt=null:Kt=(_r==null?void 0:_r("Select"))||ie.createElement(L.Z,{componentName:"Select"});const{suffixIcon:Mt,itemIcon:br,removeIcon:vr,clearIcon:re}=(0,F.Z)(Object.assign(Object.assign({},Er),{multiple:Ge,hasFeedback:At,feedbackIcon:$e,showSuffixIcon:dt,prefixCls:D,showArrow:Er.showArrow,componentName:"Select"})),ue=Ze===!0?{clearIcon:re}:Ze,rr=(0,ke.Z)(Er,["suffixIcon","itemIcon"]),Me=Fe()(Ee||oe,{[`${D}-dropdown-${W}`]:W==="rtl"},me,Te),ot=(0,p.Z)(ct=>{var pt;return(pt=N!=null?N:P)!==null&&pt!==void 0?pt:ct}),Zr=ie.useContext(o.Z),Tt=X!=null?X:Zr,Yt=Fe()({[`${D}-lg`]:ot==="large",[`${D}-sm`]:ot==="small",[`${D}-rtl`]:W==="rtl",[`${D}-borderless`]:!Le,[`${D}-in-form-item`]:We},(0,I.Z)(D,Bt,At),te,f==null?void 0:f.className,ae,me,Te),Gt=ie.useMemo(()=>ve!==void 0?ve:W==="rtl"?"bottomRight":"bottomLeft",[ve,W]),nt=(0,S.Z)(at,v);return Ie(ie.createElement(se.ZP,Object.assign({ref:J,virtual:St,showSearch:f==null?void 0:f.showSearch},rr,{style:Object.assign(Object.assign({},f==null?void 0:f.style),Jt),dropdownMatchSelectWidth:Ke,builtinPlacements:nt,transitionName:(0,O.m)(fe,"slide-up",Er.transitionName),listHeight:he,listItemHeight:_,mode:Se,prefixCls:D,placement:Gt,direction:W,suffixIcon:Mt,menuItemSelectedIcon:br,removeIcon:vr,allowClear:ue,notFoundContent:Kt,className:Yt,getPopupContainer:T||Cr,dropdownClassName:Me,disabled:Tt})))},B=ie.forwardRef(ee),z=(0,Y.Z)(B);B.SECRET_COMBOBOX_MODE_DO_NOT_USE=V,B.Option=se.Wx,B.OptGroup=se.Xo,B._InternalPanelDoNotUseOrYouWillBeFired=z,Wt.default=B},14154:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return B}});var we=g(17313),Fe=g(74207),se=g(37613),ke=g(83116),ie=g(13826),Y=g(92899);const O=z=>{const{optionHeight:le,optionFontSize:J,optionLineHeight:be,optionPadding:Ce}=z;return{position:"relative",display:"block",minHeight:le,padding:Ce,color:z.colorText,fontWeight:"normal",fontSize:J,lineHeight:be,boxSizing:"border-box"}};var n=z=>{const{antCls:le,componentCls:J}=z,be=`${J}-item`,Ce=`&${le}-slide-up-enter${le}-slide-up-enter-active`,Le=`&${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)(z)),{position:"absolute",top:-9999,zIndex:z.zIndexPopup,boxSizing:"border-box",padding:z.paddingXXS,overflow:"hidden",fontSize:z.fontSize,fontVariant:"initial",backgroundColor:z.colorBgElevated,borderRadius:z.borderRadiusLG,outline:"none",boxShadow:z.boxShadowSecondary,[`
|
|
|
${Ce}${me}bottomLeft,
|
|
|
${Le}${me}bottomLeft
|
|
|
`]:{animationName:ie.fJ},[`
|
|
|
${Ce}${me}topLeft,
|
|
|
${Le}${me}topLeft,
|
|
|
${Ce}${me}topRight,
|
|
|
${Le}${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(z)),{cursor:"pointer",transition:`background ${z.motionDurationSlow} ease`,borderRadius:z.borderRadiusSM,"&-group":{color:z.colorTextDescription,fontSize:z.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:z.optionActiveBg},[`&-selected:not(${be}-option-disabled)`]:{color:z.optionSelectedColor,fontWeight:z.optionSelectedFontWeight,backgroundColor:z.optionSelectedBg,[`${be}-option-state`]:{color:z.colorPrimary}},"&-disabled":{[`&${be}-option-selected`]:{backgroundColor:z.colorBgContainerDisabled},color:z.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:z.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ie.oN)(z,"slide-up"),(0,ie.oN)(z,"slide-down"),(0,Y.Fm)(z,"move-up"),(0,Y.Fm)(z,"move-down")]};const o=2,L=z=>{let{controlHeightSM:le,controlHeight:J,lineWidth:be}=z;const Ce=(J-le)/2-be,Le=Math.ceil(Ce/2);return[Ce,Le]};function p(z,le){const{componentCls:J,iconCls:be}=z,Ce=`${J}-selection-overflow`,Le=z.multipleSelectItemHeight,[ae]=L(z),me=le?`${J}-${le}`:"";return{[`${J}-multiple${me}`]:{fontSize:z.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:z.borderRadius,[`${J}-show-search&`]:{cursor:"text"},[`${J}-disabled&`]:{background:z.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${o}px 0`,lineHeight:`${Le}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${J}-show-arrow ${J}-selector,
|
|
|
&${J}-allow-clear ${J}-selector
|
|
|
`]:{paddingInlineEnd:z.fontSizeIcon+z.controlPaddingHorizontal},[`${J}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Le,marginTop:o,marginBottom:o,lineHeight:`${Le-z.lineWidth*2}px`,background:z.multipleItemBg,border:`${z.lineWidth}px ${z.lineType} ${z.multipleItemBorderColor}`,borderRadius:z.borderRadiusSM,cursor:"default",transition:`font-size ${z.motionDurationSlow}, line-height ${z.motionDurationSlow}, height ${z.motionDurationSlow}`,userSelect:"none",marginInlineEnd:o*2,paddingInlineStart:z.paddingXS,paddingInlineEnd:z.paddingXS/2,[`${J}-disabled&`]:{color:z.multipleItemColorDisabled,borderColor:z.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:z.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,we.Ro)()),{display:"inline-flex",alignItems:"center",color:z.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:z.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${J}-selection-search`]:{marginInlineStart:0}},[`${J}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:z.inputPaddingHorizontalBase-ae,"\n &-input,\n &-mirror\n ":{height:Le,fontFamily:z.fontFamily,lineHeight:`${Le}px`,transition:`all ${z.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:z.inputPaddingHorizontalBase,insetInlineEnd:z.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${z.motionDurationSlow}`}}}}var A=z=>{const{componentCls:le}=z,J=(0,se.TS)(z,{controlHeight:z.controlHeightSM,multipleSelectItemHeight:z.controlHeightXS,borderRadius:z.borderRadiusSM,borderRadiusSM:z.borderRadiusXS}),be=(0,se.TS)(z,{fontSize:z.fontSizeLG,controlHeight:z.controlHeightLG,multipleSelectItemHeight:z.multipleItemHeightLG,borderRadius:z.borderRadiusLG,borderRadiusSM:z.borderRadius}),[,Ce]=L(z);return[p(z),p(J,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:z.controlPaddingHorizontalSM-z.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Ce}}},p(be,"lg")]};function m(z,le){const{componentCls:J,inputPaddingHorizontalBase:be,borderRadius:Ce}=z,Le=z.controlHeight-z.lineWidth*2,ae=Math.ceil(z.fontSize*1.25),me=le?`${J}-${le}`:"";return{[`${J}-single${me}`]:{fontSize:z.fontSize,[`${J}-selector`]:Object.assign(Object.assign({},(0,we.Wf)(z)),{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:`${Le}px`,transition:`all ${z.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Le}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:z.colorTextPlaceholder},[`&:not(${J}-customize-input)`]:{[`${J}-selector`]:{width:"100%",height:z.controlHeight,padding:`0 ${be}px`,[`${J}-selection-search-input`]:{height:Le},"&:after":{lineHeight:`${Le}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(z){const{componentCls:le}=z,J=z.controlPaddingHorizontalSM-z.lineWidth;return[m(z),m((0,se.TS)(z,{controlHeight:z.controlHeightSM,borderRadius:z.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+z.fontSize*1.5},[`
|
|
|
&${le}-show-arrow ${le}-selection-item,
|
|
|
&${le}-show-arrow ${le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:z.fontSize*1.5}}}},m((0,se.TS)(z,{controlHeight:z.singleItemHeightLG,fontSize:z.fontSizeLG,borderRadius:z.borderRadiusLG}),"lg")]}const $=z=>{const{componentCls:le,selectorBg:J}=z;return{position:"relative",backgroundColor:J,border:`${z.lineWidth}px ${z.lineType} ${z.colorBorder}`,transition:`all ${z.motionDurationMid} ${z.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:z.colorTextDisabled,background:z.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:z.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},F=function(z,le){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:be,borderHoverColor:Ce,outlineColor:Le,antCls:ae}=le,me=J?{[`${be}-selector`]:{borderColor:Ce}}:{};return{[z]:{[`&: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 ${Le}`,outline:0},[`&:hover ${be}-selector`]:{borderColor:Ce}})}}},H=z=>{const{componentCls:le}=z;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=z=>{const{componentCls:le,inputPaddingHorizontalBase:J,iconCls:be}=z;return{[le]:Object.assign(Object.assign({},(0,we.Wf)(z)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},$(z)),H(z)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},we.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},we.vS),{flex:1,color:z.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,we.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:J,height:z.fontSizeIcon,marginTop:-z.fontSizeIcon/2,color:z.colorTextQuaternary,fontSize:z.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[be]:{verticalAlign:"top",transition:`transform ${z.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:z.fontSizeIcon,height:z.fontSizeIcon,marginTop:-z.fontSizeIcon/2,color:z.colorTextQuaternary,fontSize:z.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:z.clearBg,cursor:"pointer",opacity:0,transition:`color ${z.motionDurationMid} ease, opacity ${z.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:z.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:J+z.fontSize+z.paddingXS}}}},ee=z=>{const{componentCls:le}=z;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},V(z),S(z),A(z),n(z),{[`${le}-rtl`]:{direction:"rtl"}},F(le,(0,se.TS)(z,{borderHoverColor:z.colorPrimaryHover,outlineColor:z.controlOutline})),F(`${le}-status-error`,(0,se.TS)(z,{borderHoverColor:z.colorErrorHover,outlineColor:z.colorErrorOutline}),!0),F(`${le}-status-warning`,(0,se.TS)(z,{borderHoverColor:z.colorWarningHover,outlineColor:z.colorWarningOutline}),!0),(0,Fe.c)(z,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var B=(0,ke.Z)("Select",(z,le)=>{let{rootPrefixCls:J}=le;const be=(0,se.TS)(z,{rootPrefixCls:J,inputPaddingHorizontalBase:z.paddingSM-1,multipleSelectItemHeight:z.multipleItemHeight});return[ee(be)]},z=>{const{fontSize:le,lineHeight:J,controlHeight:be,controlPaddingHorizontal:Ce,zIndexPopupBase:Le,colorText:ae,fontWeightStrong:me,controlItemBgActive:T,controlItemBgHover:Ee,colorBgContainer:oe,colorFillSecondary:he,controlHeightLG:ve,controlHeightSM:_,colorBgContainerDisabled:N,colorTextDisabled:X}=z;return{zIndexPopup:Le+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:N,multipleItemColorDisabled:X,multipleItemBorderColorDisabled:"transparent"}})},58582:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});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 Fe(se,ke){return se||we(ke)}},84443:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return we}});function we(Fe,se){return se!==void 0?se:Fe!==null}},66339:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var we=g(40001),Fe=g(19248),se=g(99267),ke=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(Fe.Z,null),z=Ce=>o===null&&!S&&!V?null:O.createElement(O.Fragment,null,F!==!1&&Ce,S&&H);let le=null;if(o!==void 0)le=z(o);else if(A)le=z(O.createElement(ie.Z,{spin:!0}));else{const Ce=`${$}-suffix`;le=Le=>{let{open:ae,showSearch:me}=Le;return z(ae&&me?O.createElement(Y.Z,{className:Ce}):O.createElement(ke.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,Wt,g){"use strict";g.d(Wt,{Z:function(){return v}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=g(2738),O=f=>{const{prefixCls:D,className:fe,style:W,size:P,shape:te}=f,Ie=Fe()({[`${D}-lg`]:P==="large",[`${D}-sm`]:P==="small"}),Te=Fe()({[`${D}-circle`]:te==="circle",[`${D}-square`]:te==="square",[`${D}-round`]:te==="round"}),Se=se.useMemo(()=>typeof P=="number"?{width:P,height:P,lineHeight:`${P}px`}:{},[P]);return se.createElement("span",{className:Fe()(D,Ie,Te,fe),style:Object.assign(Object.assign({},Se),W)})},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=f=>({height:f,lineHeight:`${f}px`}),a=f=>Object.assign({width:f},p(f)),A=f=>({background:f.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:L,animationDuration:f.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),m=f=>Object.assign({width:f*5,minWidth:f*5},p(f)),S=f=>{const{skeletonAvatarCls:D,gradientFromColor:fe,controlHeight:W,controlHeightLG:P,controlHeightSM:te}=f;return{[`${D}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:fe},a(W)),[`${D}${D}-circle`]:{borderRadius:"50%"},[`${D}${D}-lg`]:Object.assign({},a(P)),[`${D}${D}-sm`]:Object.assign({},a(te))}},$=f=>{const{controlHeight:D,borderRadiusSM:fe,skeletonInputCls:W,controlHeightLG:P,controlHeightSM:te,gradientFromColor:Ie}=f;return{[`${W}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ie,borderRadius:fe},m(D)),[`${W}-lg`]:Object.assign({},m(P)),[`${W}-sm`]:Object.assign({},m(te))}},F=f=>Object.assign({width:f},p(f)),H=f=>{const{skeletonImageCls:D,imageSizeBase:fe,gradientFromColor:W,borderRadiusSM:P}=f;return{[`${D}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:W,borderRadius:P},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=(f,D,fe)=>{const{skeletonButtonCls:W}=f;return{[`${fe}${W}-circle`]:{width:D,minWidth:D,borderRadius:"50%"},[`${fe}${W}-round`]:{borderRadius:D}}},ee=f=>Object.assign({width:f*2,minWidth:f*2},p(f)),B=f=>{const{borderRadiusSM:D,skeletonButtonCls:fe,controlHeight:W,controlHeightLG:P,controlHeightSM:te,gradientFromColor:Ie}=f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ie,borderRadius:D,width:W*2,minWidth:W*2},ee(W))},V(f,W,fe)),{[`${fe}-lg`]:Object.assign({},ee(P))}),V(f,P,`${fe}-lg`)),{[`${fe}-sm`]:Object.assign({},ee(te))}),V(f,te,`${fe}-sm`))},z=f=>{const{componentCls:D,skeletonAvatarCls:fe,skeletonTitleCls:W,skeletonParagraphCls:P,skeletonButtonCls:te,skeletonInputCls:Ie,skeletonImageCls:Te,controlHeight:Se,controlHeightLG:Ge,controlHeightSM:dt,gradientFromColor:Ke,padding:Xe,marginSM:At,borderRadius:We,titleHeight:$e,blockRadius:Bt,paragraphLiHeight:Kt,controlHeightXS:Mt,paragraphMarginTop:br}=f;return{[`${D}`]:{display:"table",width:"100%",[`${D}-header`]:{display:"table-cell",paddingInlineEnd:Xe,verticalAlign:"top",[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke},a(Se)),[`${fe}-circle`]:{borderRadius:"50%"},[`${fe}-lg`]:Object.assign({},a(Ge)),[`${fe}-sm`]:Object.assign({},a(dt))},[`${D}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${W}`]:{width:"100%",height:$e,background:Ke,borderRadius:Bt,[`+ ${P}`]:{marginBlockStart:dt}},[`${P}`]:{padding:0,"> li":{width:"100%",height:Kt,listStyle:"none",background:Ke,borderRadius:Bt,"+ li":{marginBlockStart:Mt}}},[`${P}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${D}-content`]:{[`${W}, ${P} > li`]:{borderRadius:We}}},[`${D}-with-avatar ${D}-content`]:{[`${W}`]:{marginBlockStart:At,[`+ ${P}`]:{marginBlockStart:br}}},[`${D}${D}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},B(f)),S(f)),$(f)),H(f)),[`${D}${D}-block`]:{width:"100%",[`${te}`]:{width:"100%"},[`${Ie}`]:{width:"100%"}},[`${D}${D}-active`]:{[`
|
|
|
${W},
|
|
|
${P} > li,
|
|
|
${fe},
|
|
|
${te},
|
|
|
${Ie},
|
|
|
${Te}
|
|
|
`]:Object.assign({},A(f))}}};var le=(0,n.Z)("Skeleton",f=>{const{componentCls:D}=f,fe=(0,o.TS)(f,{skeletonAvatarCls:`${D}-avatar`,skeletonTitleCls:`${D}-title`,skeletonParagraphCls:`${D}-paragraph`,skeletonButtonCls:`${D}-button`,skeletonInputCls:`${D}-input`,skeletonImageCls:`${D}-image`,imageSizeBase:f.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${f.gradientFromColor} 25%, ${f.gradientToColor} 37%, ${f.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[z(fe)]},f=>{const{colorFillContent:D,colorFill:fe}=f,W=D,P=fe;return{color:W,colorGradientEnd:P,gradientFromColor:W,gradientToColor:P,titleHeight:f.controlHeight/2,blockRadius:f.borderRadiusSM,paragraphMarginTop:f.marginLG+f.marginXXS,paragraphLiHeight:f.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),be=f=>{const{prefixCls:D,className:fe,rootClassName:W,active:P,shape:te="circle",size:Ie="default"}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,dt]=le(Se),Ke=(0,ie.Z)(f,["prefixCls","className"]),Xe=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:P},fe,W,dt);return Ge(se.createElement("div",{className:Xe},se.createElement(O,Object.assign({prefixCls:`${Se}-avatar`,shape:te,size:Ie},Ke))))},Le=f=>{const{prefixCls:D,className:fe,rootClassName:W,active:P,block:te=!1,size:Ie="default"}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,dt]=le(Se),Ke=(0,ie.Z)(f,["prefixCls"]),Xe=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:P,[`${Se}-block`]:te},fe,W,dt);return Ge(se.createElement("div",{className:Xe},se.createElement(O,Object.assign({prefixCls:`${Se}-button`,size:Ie},Ke))))};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=f=>{const{prefixCls:D,className:fe,rootClassName:W,style:P,active:te}=f,{getPrefixCls:Ie}=se.useContext(ke.E_),Te=Ie("skeleton",D),[Se,Ge]=le(Te),dt=Fe()(Te,`${Te}-element`,{[`${Te}-active`]:te},fe,W,Ge);return Se(se.createElement("div",{className:dt},se.createElement("div",{className:Fe()(`${Te}-image`,fe),style:P},se.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Te}-image-svg`},se.createElement("path",{d:ae,className:`${Te}-image-path`})))))},oe=f=>{const{prefixCls:D,className:fe,rootClassName:W,active:P,block:te,size:Ie="default"}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,dt]=le(Se),Ke=(0,ie.Z)(f,["prefixCls"]),Xe=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:P,[`${Se}-block`]:te},fe,W,dt);return Ge(se.createElement("div",{className:Xe},se.createElement(O,Object.assign({prefixCls:`${Se}-input`,size:Ie},Ke))))},he=g(92413),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,N=g(7657),X=function(D,fe){return se.createElement(N.Z,(0,he.Z)({},D,{ref:fe,icon:_}))},pe=se.forwardRef(X),qe=pe,rt=f=>{const{prefixCls:D,className:fe,rootClassName:W,style:P,active:te,children:Ie}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,dt]=le(Se),Ke=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:te},dt,fe,W),Xe=Ie!=null?Ie:se.createElement(qe,null);return Ge(se.createElement("div",{className:Ke},se.createElement("div",{className:Fe()(`${Se}-image`,fe),style:P},Xe)))},Rt=g(26407),Jt=f=>{const D=Te=>{const{width:Se,rows:Ge=2}=f;if(Array.isArray(Se))return Se[Te];if(Ge-1===Te)return Se},{prefixCls:fe,className:W,style:P,rows:te}=f,Ie=(0,Rt.Z)(Array(te)).map((Te,Se)=>se.createElement("li",{key:Se,style:{width:D(Se)}}));return se.createElement("ul",{className:Fe()(fe,W),style:P},Ie)},Er=f=>{let{prefixCls:D,className:fe,width:W,style:P}=f;return se.createElement("h3",{className:Fe()(D,fe),style:Object.assign({width:W},P)})};function Cr(f){return f&&typeof f=="object"?f:{}}function Kr(f,D){return f&&!D?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function _r(f,D){return!f&&D?{width:"38%"}:f&&D?{width:"50%"}:{}}function Ue(f,D){const fe={};return(!f||!D)&&(fe.width="61%"),!f&&D?fe.rows=3:fe.rows=2,fe}const St=f=>{const{prefixCls:D,loading:fe,className:W,rootClassName:P,style:te,children:Ie,avatar:Te=!1,title:Se=!0,paragraph:Ge=!0,active:dt,round:Ke}=f,{getPrefixCls:Xe,direction:At,skeleton:We}=se.useContext(ke.E_),$e=Xe("skeleton",D),[Bt,Kt]=le($e);if(fe||!("loading"in f)){const Mt=!!Te,br=!!Se,vr=!!Ge;let re;if(Mt){const Me=Object.assign(Object.assign({prefixCls:`${$e}-avatar`},Kr(br,vr)),Cr(Te));re=se.createElement("div",{className:`${$e}-header`},se.createElement(O,Object.assign({},Me)))}let ue;if(br||vr){let Me;if(br){const Zr=Object.assign(Object.assign({prefixCls:`${$e}-title`},_r(Mt,vr)),Cr(Se));Me=se.createElement(Er,Object.assign({},Zr))}let ot;if(vr){const Zr=Object.assign(Object.assign({prefixCls:`${$e}-paragraph`},Ue(Mt,br)),Cr(Ge));ot=se.createElement(Jt,Object.assign({},Zr))}ue=se.createElement("div",{className:`${$e}-content`},Me,ot)}const rr=Fe()($e,{[`${$e}-with-avatar`]:Mt,[`${$e}-active`]:dt,[`${$e}-rtl`]:At==="rtl",[`${$e}-round`]:Ke},We==null?void 0:We.className,W,P,Kt);return Bt(se.createElement("div",{className:rr,style:Object.assign(Object.assign({},We==null?void 0:We.style),te)},re,ue))}return typeof Ie!="undefined"?Ie:null};St.Button=Le,St.Avatar=be,St.Input=oe,St.Image=T,St.Node=rt;var G=St,v=G},81327:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return $}});var we=g(59301),Fe=g(92310),se=g.n(Fe),ke=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:z}=F;const{latestIndex:le}=we.useContext(O);return ee==null?null:we.createElement(we.Fragment,null,we.createElement("div",{className:H,style:z},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:z,direction:le}=we.useContext(ie.E_),{size:J=(z==null?void 0:z.size)||"small",align:be,className:Ce,rootClassName:Le,children:ae,direction:me="horizontal",prefixCls:T,split:Ee,style:oe,wrap:he=!1,classNames:ve,styles:_}=F,N=A(F,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[X,pe]=Array.isArray(J)?J:[J,J],qe=p(pe),at=p(X),rt=a(pe),Rt=a(X),lr=(0,ke.Z)(ae,{keepEmpty:!0}),Jt=be===void 0&&me==="horizontal"?"center":be,Ze=B("space",T),[Er,Cr]=(0,L.Z)(Ze),Kr=se()(Ze,z==null?void 0:z.className,Cr,`${Ze}-${me}`,{[`${Ze}-rtl`]:le==="rtl",[`${Ze}-align-${Jt}`]:Jt,[`${Ze}-gap-row-${pe}`]:qe,[`${Ze}-gap-col-${X}`]:at},Ce,Le),_r=se()(`${Ze}-item`,(V=ve==null?void 0:ve.item)!==null&&V!==void 0?V:(ee=z==null?void 0:z.classNames)===null||ee===void 0?void 0:ee.item);let Ue=0;const St=lr.map((f,D)=>{var fe,W;f!=null&&(Ue=D);const P=f&&f.key||`${_r}-${D}`;return we.createElement(o,{className:_r,key:P,index:D,split:Ee,style:(fe=_==null?void 0:_.item)!==null&&fe!==void 0?fe:(W=z==null?void 0:z.styles)===null||W===void 0?void 0:W.item},f)}),G=we.useMemo(()=>({latestIndex:Ue}),[Ue]);if(lr.length===0)return null;const v={};return he&&(v.flexWrap="wrap"),!at&&Rt&&(v.columnGap=X),!qe&&rt&&(v.rowGap=pe),Er(we.createElement("div",Object.assign({ref:H,className:Kr,style:Object.assign(Object.assign(Object.assign({},v),z==null?void 0:z.style),oe)},N),we.createElement(I,{value:G},St)))});S.Compact=Y.ZP;var $=S},8378:function(bn,Wt){"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`}}});Wt.Z=g},92899:function(bn,Wt,g){"use strict";g.d(Wt,{Fm:function(){return p}});var we=g(93083),Fe=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}}),ke=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:ke},"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,Fe.R)(S,$,F,a.motionDurationMid),{[`
|
|
|
${S}-enter,
|
|
|
${S}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:a.motionEaseOutCirc},[`${S}-leave`]:{animationTimingFunction:a.motionEaseInOutCirc}}]}},13826:function(bn,Wt,g){"use strict";g.d(Wt,{Qt:function(){return ie},Uw:function(){return ke},fJ:function(){return se},ly:function(){return Y},oN:function(){return p}});var we=g(93083),Fe=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}}),ke=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:ke},"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,Fe.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,Wt,g){"use strict";g.d(Wt,{N:function(){return we}});const we=Fe=>({color:Fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Fe.motionDurationSlow}`,"&:focus, &:hover":{color:Fe.colorLinkHover},"&:active":{color:Fe.colorLinkActive}})},19447:function(bn,Wt,g){"use strict";g.d(Wt,{ZP:function(){return ie},fS:function(){return se},qN:function(){return Fe}});var we=g(47585);const Fe=8;function se(Y){const O=Fe,{contentRadius:I,limitVerticalRadius:n}=Y,o=I>12?I+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:n?O:o}}function ke(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}})]},ke(!!$.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}}})),ke(!!$.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}}})),ke(!!$.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}})),ke(!!$.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,Wt,g){"use strict";g.d(Wt,{r:function(){return we}});const we=(Fe,se,ke,ie,Y)=>{const O=Fe/2,I=0,n=O,o=ke*1/Math.sqrt(2),L=O-ke*(1-1/Math.sqrt(2)),p=O-se*(1/Math.sqrt(2)),a=ke*(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)+ke*(Math.sqrt(2)-2),ee=ke*(Math.sqrt(2)-1);return{pointerEvents:"none",width:Fe,height:Fe,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Fe,height:Fe/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 ${ke} ${ke} 0 0 0 ${o} ${L} L ${p} ${a} A ${se} ${se} 0 0 1 ${A} ${m} L ${S} ${$} A ${ke} ${ke} 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,Wt,g){"use strict";g.d(Wt,{default:function(){return nr}});var we={},Fe="rc-table-internal-hook",se=g(33606),ke=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,ke.Z)(typeof xe=="function"?xe:function(wt){if(xe===void 0)return wt;if(!Array.isArray(xe))return wt[xe];var jt={};return xe.forEach(function(Vt){jt[Vt]=wt[Vt]}),jt}),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(jt){var Vt=et(jt);(0,Y.Z)($t.current,Vt,!0)||_e({})}return ft.add(wt),function(){ft.delete(wt)}},[st]),$t.current}var L=g(92413),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}:{},jt=O.useRef(0),Vt=O.useRef(ze),ur=xe();return ur!==null?O.createElement(gt,(0,L.Z)({},ze,wt)):((!ft||ft(Vt.current,ze))&&(jt.current+=1),Vt.current=ze,O.createElement(ye.Provider,{value:jt.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(),z=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(39559),Le=g(33708),ae=g(400),me=g(92310),T=g.n(me),Ee=g(80547),oe=g(97938),he=g(48736),ve=O.createContext({renderWithProps:!1}),_=ve,N="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("-")||N;et[$t];)$t="".concat($t,"_next");et[$t]=!0,xe.push($t)}),xe}function qe(ye){return ye!=null}function at(ye){return ye&&(0,Ce.Z)(ye)==="object"&&!Array.isArray(ye)&&!O.isValidElement(ye)}function rt(ye,xe,et,st,gt,ft){var Ut=O.useContext(_),$t=ee(),sr=(0,Ee.Z)(function(){if(qe(st))return[st];var ze=xe==null||xe===""?[]:Array.isArray(xe)?xe:[xe],_e=(0,oe.Z)(ye,ze),wt=_e,jt=void 0;if(gt){var Vt=gt(_e,ye,et);at(Vt)?(wt=Vt.children,jt=Vt.props,Ut.renderWithProps=!0):wt=Vt}return[wt,jt]},[$t,ye,st,xe,gt,et],function(ze,_e){if(ft){var wt=(0,se.Z)(ze,2),jt=wt[1],Vt=(0,se.Z)(_e,2),ur=Vt[1];return ft(ur,jt)}return Ut.renderWithProps?!0:!(0,Y.Z)(ze,_e,!0)});return sr}function Rt(ye,xe,et,st){var gt=ye+xe-1;return ye<=st&>>=et}function lr(ye,xe){return o(z,function(et){var st=Rt(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 Ze(ye){var xe,et,st,gt,ft,Ut,$t,sr,ze=ye.component,_e=ye.children,wt=ye.ellipsis,jt=ye.scope,Vt=ye.prefixCls,ur=ye.className,It=ye.align,yr=ye.record,Wr=ye.render,$r=ye.dataIndex,cn=ye.renderIndex,Dn=ye.shouldCellUpdate,ni=ye.index,kr=ye.rowType,ir=ye.colSpan,Si=ye.rowSpan,In=ye.fixLeft,sn=ye.fixRight,An=ye.firstFixLeft,rn=ye.lastFixLeft,_n=ye.firstFixRight,ii=ye.lastFixRight,Di=ye.appendNode,He=ye.additionalProps,c=He===void 0?{}:He,w=ye.isSticky,C="".concat(Vt,"-cell"),K=o(z,["supportSticky","allColumnsFixedLeft"]),Be=K.supportSticky,je=K.allColumnsFixedLeft,xt=rt(yr,$r,cn,_e,Wr,Dn),bt=(0,se.Z)(xt,2),Xt=bt[0],Ar=bt[1],xr={},nn=typeof In=="number"&&Be,Cn=typeof sn=="number"&&Be;nn&&(xr.position="sticky",xr.left=In),Cn&&(xr.position="sticky",xr.right=sn);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,dn=(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=lr(ni,dn),qn=(0,se.Z)(Mn,2),xi=qn[0],yn=qn[1],fi=function(ai){var Ka;yr&&yn(ni,ni+dn-1),c==null||(Ka=c.onMouseEnter)===null||Ka===void 0||Ka.call(c,ai)},Ji=function(ai){var Ka;yr&&yn(-1,-1),c==null||(Ka=c.onMouseLeave)===null||Ka===void 0||Ka.call(c,ai)};if(Xr===0||dn===0)return null;var $i=($t=c.title)!==null&&$t!==void 0?$t:Jt({rowType:kr,ellipsis:wt,children:Xt}),Sa=T()(C,ur,(sr={},(0,ae.Z)(sr,"".concat(C,"-fix-left"),nn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-left-first"),An&&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"),Cn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right-first"),_n&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right-last"),ii&&Be),(0,ae.Z)(sr,"".concat(C,"-ellipsis"),wt),(0,ae.Z)(sr,"".concat(C,"-with-append"),Di),(0,ae.Z)(sr,"".concat(C,"-fix-sticky"),(nn||Cn)&&w&&Be),(0,ae.Z)(sr,"".concat(C,"-row-hover"),!Ar&&xi),sr),c.className,Ar==null?void 0:Ar.className),Ia={};It&&(Ia.textAlign=It);var Xi=(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},xr),c.style),Ia),Ar==null?void 0:Ar.style),Ta=Xt;return(0,Ce.Z)(Ta)==="object"&&!Array.isArray(Ta)&&!O.isValidElement(Ta)&&(Ta=null),wt&&(rn||_n)&&(Ta=O.createElement("span",{className:"".concat(C,"-content")},Ta)),O.createElement(ze,(0,L.Z)({},Ar,c,{className:Sa,style:Xi,title:$i,scope:jt,onMouseEnter:fi,onMouseLeave:Ji,colSpan:Xr!==1?Xr:null,rowSpan:dn!==1?dn:null}),Di,Ta)}var Er=O.memo(Ze);function Cr(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,jt=!1,Vt=!1,ur=et[xe+1],It=et[ye-1],yr=!(ft!=null&&ft.children);if(gt==="rtl"){if(sr!==void 0){var Wr=It&&It.fixed==="left";Vt=!Wr&&yr}else if(ze!==void 0){var $r=ur&&ur.fixed==="right";jt=!$r&&yr}}else if(sr!==void 0){var cn=ur&&ur.fixed==="left";_e=!cn&&yr}else if(ze!==void 0){var Dn=It&&It.fixed==="right";wt=!Dn&&yr}return{fixLeft:sr,fixRight:ze,lastFixLeft:_e,firstFixRight:wt,lastFixRight:jt,firstFixLeft:Vt,isSticky:st.isSticky}}var Kr=O.createContext({}),_r=Kr;function Ue(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(z,["prefixCls","direction"]),ze=sr.prefixCls,_e=sr.direction,wt=O.useContext(_r),jt=wt.scrollColumnIndex,Vt=wt.stickyOffsets,ur=wt.flattenColumns,It=wt.columns,yr=et+ft-1,Wr=yr+1===jt?ft+1:ft,$r=Cr(et,et+Wr-1,ur,Vt,_e,It==null?void 0:It[et]);return O.createElement(Er,(0,L.Z)({className:xe,index:et,component:"td",prefixCls:ze,record:null,dataIndex:null,align:$t,colSpan:Wr,rowSpan:Ut,render:function(){return st}},$r))}var St=g(37061),G=["children"];function v(ye){var xe=ye.children,et=(0,St.Z)(ye,G);return O.createElement("tr",et,xe)}function f(ye){var xe=ye.children;return xe}f.Row=v,f.Cell=Ue;var D=f;function fe(ye){var xe=ye.children,et=ye.stickyOffsets,st=ye.flattenColumns,gt=ye.columns,ft=o(z,"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 W=V(fe),P=D,te=g(70425),Ie=g(29301),Te=g(29194),Se=g(24514),Ge=g(75152),dt=g(26112);function Ke(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)Ke(ye,xe[st][ze],et+1,st,gt,ft,ze)}function Xe(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];Ke(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 At(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(z,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),_e=ze.scrollbarSize,wt=ze.fixHeader,jt=ze.fixColumn,Vt=ze.componentWidth,ur=ze.horizonScroll,It=et;return(sr?ur&&Vt:jt)&&(It=O.createElement("div",{style:{width:Vt-(wt?_e:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(xe,"-expanded-row-fixed")},It)),O.createElement(st,{className:ft,style:{display:Ut?null:"none"}},O.createElement(Er,{component:gt,prefixCls:xe,colSpan:$t},It))}var We=At;function $e(ye,xe,et,st){var gt=o(z,["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,jt=gt.expandRowByClick,Vt=gt.rowClassName,ur=Ut==="nest",It=Ut==="row"&&(!_e||_e(ye)),yr=It||ur,Wr=$t&&$t.has(xe),$r=sr&&ye&&ye[sr],cn=(0,te.useEvent)(ze),Dn=wt==null?void 0:wt(ye,et),ni=Dn==null?void 0:Dn.onClick,kr=function(sn){jt&&yr&&ze(ye,sn);for(var An=arguments.length,rn=new Array(An>1?An-1:0),_n=1;_n<An;_n++)rn[_n-1]=arguments[_n];ni==null||ni.apply(void 0,[sn].concat(rn))},ir;typeof Vt=="string"?ir=Vt:typeof Vt=="function"&&(ir=Vt(ye,et,st));var Si=pe(ft);return(0,Le.Z)((0,Le.Z)({},gt),{},{columnsKey:Si,nestExpandable:ur,expanded:Wr,hasNestChildren:$r,record:ye,onTriggerExpand:cn,rowSupportExpand:It,expandable:yr,rowProps:(0,Le.Z)((0,Le.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,jt=ye.expandIcon,Vt=ye.expanded,ur=ye.hasNestChildren,It=ye.onTriggerExpand,yr=$t[et],Wr=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)}),jt({prefixCls:Ut,expanded:Vt,expandable:ur,record:ft,onExpand:It})));var cn;return xe.onCell&&(cn=xe.onCell(ft,gt)),{key:yr,fixedInfo:Wr,appendCellNode:$r,additionalCellProps:cn||{}}}function Kt(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,jt=$e(st,Ut,gt,sr),Vt=jt.prefixCls,ur=jt.flattenColumns,It=jt.expandedRowClassName,yr=jt.expandedRowRender,Wr=jt.rowProps,$r=jt.expanded,cn=jt.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)({},Wr,{"data-row-key":Ut,className:T()(xe,"".concat(Vt,"-row"),"".concat(Vt,"-row-level-").concat(sr),Wr==null?void 0:Wr.className),style:(0,Le.Z)((0,Le.Z)({},et),Wr==null?void 0:Wr.style)}),ur.map(function(rn,_n){var ii=rn.render,Di=rn.dataIndex,He=rn.className,c=Bt(jt,rn,_n,sr,gt),w=c.key,C=c.fixedInfo,K=c.appendCellNode,Be=c.additionalCellProps;return O.createElement(Er,(0,L.Z)({className:He,ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:rn.rowScope?wt:_e,prefixCls:Vt,key:w,record:st,index:gt,renderIndex:ft,dataIndex:Di,render:ii,shouldCellUpdate:rn.shouldCellUpdate},C,{appendNode:K,additionalProps:Be}))})),In;if(cn&&(kr||$r)){var sn=yr(st,gt,sr+1,$r),An=It&&It(st,gt,sr);In=O.createElement(We,{expanded:$r,className:T()("".concat(Vt,"-expanded-row"),"".concat(Vt,"-expanded-row-level-").concat(sr+1),An),prefixCls:Vt,component:ze,cellComponent:_e,colSpan:ur.length,isEmpty:!1},sn)}return O.createElement(O.Fragment,null,Si,In)}Kt.displayName="BodyRow";var Mt=V(Kt);function br(ye){var xe=ye.columnKey,et=ye.onColumnResize,st=O.useRef();return O.useEffect(function(){st.current&&et(xe,st.current.offsetWidth)},[]),O.createElement(Ie.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 vr(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(Ie.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(br,{key:gt,columnKey:gt,onColumnResize:st})})))}function re(ye){var xe=ye.data,et=ye.measureColumnWidth,st=o(z,["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,jt=Xe(xe,_e,ze,sr),Vt=O.useRef({renderWithProps:!1}),ur=ft(["body","wrapper"],"tbody"),It=ft(["body","row"],"tr"),yr=ft(["body","cell"],"td"),Wr=ft(["body","cell"],"th"),$r;xe.length?$r=jt.map(function(Dn,ni){var kr=Dn.record,ir=Dn.indent,Si=Dn.index,In=sr(kr,ni);return O.createElement(Mt,{key:In,rowKey:In,record:kr,index:ni,renderIndex:Si,rowComponent:It,cellComponent:yr,scopeCellComponent:Wr,getRowKey:sr,indent:ir})}):$r=O.createElement(We,{expanded:!0,className:"".concat(gt,"-placeholder"),prefixCls:gt,component:It,cellComponent:yr,colSpan:$t.length,isEmpty:!0},wt);var cn=pe($t);return O.createElement(_.Provider,{value:Vt.current},O.createElement(ur,{className:"".concat(gt,"-tbody")},et&&O.createElement(vr,{prefixCls:gt,columnsKey:cn,onColumnResize:Ut}),$r))}re.displayName="Body";var ue=V(re),rr=["expandable"],Me="RC_TABLE_INTERNAL_COL_DEFINE";function ot(ye){var xe=ye.expandable,et=(0,St.Z)(ye,rr),st;return"expandable"in ye?st=(0,Le.Z)((0,Le.Z)({},et),xe):st=et,st.showExpandColumn===!1&&(st.expandIconColumnIndex=-1),st}var Zr=["columnType"];function Tt(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[Me];if(sr||_e||Ut){var wt=_e||{},jt=wt.columnType,Vt=(0,St.Z)(wt,Zr);gt.unshift(O.createElement("col",(0,L.Z)({key:$t,style:{width:sr}},Vt))),Ut=!0}}return O.createElement("colgroup",null,gt)}var Yt=Tt,Gt=g(26407),nt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ct(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 pt=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,jt=ye.stickyBottomOffset,Vt=ye.stickyClassName,ur=ye.onScroll,It=ye.maxContentScroll,yr=ye.children,Wr=(0,St.Z)(ye,nt),$r=o(z,["prefixCls","scrollbarSize","isSticky"]),cn=$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&&(ur({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 In=O.useMemo(function(){return ft.every(function(He){return He.width})},[ft]),sn=ft[ft.length-1],An={fixed:sn?sn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(cn,"-cell-scrollbar")}}},rn=(0,O.useMemo)(function(){return kr?[].concat((0,Gt.Z)(gt),[An]):gt},[kr,gt]),_n=(0,O.useMemo)(function(){return kr?[].concat((0,Gt.Z)(ft),[An]):ft},[kr,ft]),ii=(0,O.useMemo)(function(){var He=sr.right,c=sr.left;return(0,Le.Z)((0,Le.Z)({},sr),{},{left:ze==="rtl"?[].concat((0,Gt.Z)(c.map(function(w){return w+kr})),[0]):c,right:ze==="rtl"?He:[].concat((0,Gt.Z)(He.map(function(w){return w+kr})),[0]),isSticky:ni})},[kr,sr,ni]),Di=ct(Ut,$t);return O.createElement("div",{style:(0,Le.Z)({overflow:"hidden"},ni?{top:wt,bottom:jt}:{}),ref:Si,className:T()(et,(0,ae.Z)({},Vt,!!Vt))},O.createElement("table",{style:{tableLayout:"fixed",visibility:st||Di?null:"hidden"}},(!st||!It||In)&&O.createElement(Yt,{colWidths:Di?[].concat((0,Gt.Z)(Di),[kr]):[],columCount:$t+1,columns:_n}),yr((0,Le.Z)((0,Le.Z)({},Wr),{},{stickyOffsets:ii,columns:rn,flattenColumns:_n}))))});pt.displayName="FixedHolder";var Zt=O.memo(pt);function Oe(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(z,["prefixCls","direction"]),_e=ze.prefixCls,wt=ze.direction,jt;$t&&(jt=$t(xe.map(function(ur){return ur.column}),sr));var Vt=pe(xe.map(function(ur){return ur.column}));return O.createElement(gt,jt,xe.map(function(ur,It){var yr=ur.column,Wr=Cr(ur.colStart,ur.colEnd,st,et,wt,yr),$r;return yr&&yr.onHeaderCell&&($r=ur.column.onHeaderCell(yr)),O.createElement(Er,(0,L.Z)({},ur,{scope:yr.title?ur.colSpan>1?"colgroup":"col":null,ellipsis:yr.ellipsis,align:yr.align,component:yr.title?ft:Ut,prefixCls:_e,key:Vt[It]},Wr,{additionalProps:$r,rowType:"header"}))}))}Oe.displayName="HeaderRow";var fn=Oe;function Nt(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 jt={key:wt.key,className:wt.className||"",children:wt.title,column:wt,colStart:ze},Vt=1,ur=wt.children;return ur&&ur.length>0&&(Vt=et(ur,ze,sr+1).reduce(function(It,yr){return It+yr},0),jt.hasSubColumns=!0),"colSpan"in wt&&(Vt=wt.colSpan),"rowSpan"in wt&&(jt.rowSpan=wt.rowSpan),jt.colSpan=Vt,jt.colEnd=jt.colStart+Vt-1,xe[sr].push(jt),ze+=Vt,Vt});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 Ln(ye){var xe=ye.stickyOffsets,et=ye.columns,st=ye.flattenColumns,gt=ye.onHeaderRow,ft=o(z,["prefixCls","getComponent"]),Ut=ft.prefixCls,$t=ft.getComponent,sr=O.useMemo(function(){return Nt(et)},[et]),ze=$t(["header","wrapper"],"thead"),_e=$t(["header","row"],"tr"),wt=$t(["header","cell"],"th"),jt=$t(["header","cell"],"td");return O.createElement(ze,{className:"".concat(Ut,"-thead")},sr.map(function(Vt,ur){var It=O.createElement(fn,{key:ur,flattenColumns:st,cells:Vt,stickyOffsets:xe,rowComponent:_e,cellComponent:wt,tdCellComponent:jt,onHeaderRow:gt,index:ur});return It}))}var Vn=V(Ln),yi=g(11592);function Ki(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 jn(ye,xe){return O.useMemo(function(){if(xe&&xe>0){var et=0,st=0;ye.forEach(function(ze){var _e=Ki(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,Le.Z)({},ze),wt=Ki(xe,_e.width);if(wt)_e.width=wt;else{var jt=Math.floor(Ut);_e.width=ft===1?gt:jt,gt-=jt,ft-=1}return $t+=_e.width,_e});return[sr,$t]}return[ye,xe]},[ye,xe])}var kn=["children"],qt=["fixed"];function zr(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,St.Z)(st,kn),Ut=(0,Le.Z)({key:et},ft);return gt&&(Ut.children=zr(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,Gt.Z)(et),(0,Gt.Z)(Jr(sr,$t).map(function(ze){return(0,Le.Z)({fixed:Ut},ze)}))):[].concat((0,Gt.Z)(et),[(0,Le.Z)((0,Le.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 Ct(ye){return ye.map(function(xe){var et=xe.fixed,st=(0,St.Z)(xe,qt),gt=et;return et==="left"?gt="right":et==="right"&&(gt="left"),(0,Le.Z)({fixed:gt},st)})}function Ir(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,jt=ye.expandIconColumnIndex,Vt=ye.direction,ur=ye.expandRowByClick,It=ye.columnWidth,yr=ye.fixed,Wr=ye.scrollWidth,$r=O.useMemo(function(){return st||zr(gt)},[st,gt]),cn=O.useMemo(function(){if(ft){var sn,An=$r.slice();if(!An.includes(we)){var rn=jt||0;rn>=0&&An.splice(rn,0,we)}var _n=An.indexOf(we);An=An.filter(function(c,w){return c!==we||w===_n});var ii=$r[_n],Di;(yr==="left"||yr)&&!jt?Di="left":(yr==="right"||yr)&&jt===$r.length?Di="right":Di=ii?ii.fixed:null;var He=(sn={},(0,ae.Z)(sn,Me,{className:"".concat(et,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ae.Z)(sn,"title",$t),(0,ae.Z)(sn,"fixed",Di),(0,ae.Z)(sn,"className","".concat(et,"-row-expand-icon-cell")),(0,ae.Z)(sn,"width",It),(0,ae.Z)(sn,"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 ur?O.createElement("span",{onClick:function(Ar){return Ar.stopPropagation()}},bt):bt}),sn);return An.map(function(c){return c===we?He:c})}return $r.filter(function(c){return c!==we})},[ft,$r,sr,Ut,_e,Vt]),Dn=O.useMemo(function(){var sn=cn;return xe&&(sn=xe(sn)),sn.length||(sn=[{render:function(){return null}}]),sn},[xe,cn,Vt]),ni=O.useMemo(function(){return Vt==="rtl"?Ct(Jr(Dn)):Jr(Dn)},[Dn,Vt,Wr]),kr=jn(ni,Wr),ir=(0,se.Z)(kr,2),Si=ir[0],In=ir[1];return[Dn,Si,In]}var Fr=Ir;function Tn(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,jt=gt||Tn,Vt=wt||"children",ur=O.useMemo(function(){return sr?"row":ye.expandable&&ye.internalHooks===Fe&&ye.expandable.__PARENT_RENDER_ICON__||xe.some(function(ni){return ni&&(0,Ce.Z)(ni)==="object"&&ni[Vt]})?"nest":!1},[!!sr,xe]),It=O.useState(function(){return Ut||($t?tn(xe,et,Vt):[])}),yr=(0,se.Z)(It,2),Wr=yr[0],$r=yr[1],cn=O.useMemo(function(){return new Set(ft||Wr||[])},[ft,Wr]),Dn=O.useCallback(function(ni){var kr=et(ni,xe.indexOf(ni)),ir,Si=cn.has(kr);Si?(cn.delete(kr),ir=(0,Gt.Z)(cn)):ir=[].concat((0,Gt.Z)(cn),[kr]),$r(ir),ze&&ze(!Si,ni),_e&&_e(ir)},[et,cn,xe,ze,_e]);return[st,ur,cn,jt,Vt,Dn]}function gn(ye,xe,et,st){var gt=ye.map(function(ft,Ut){return Cr(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 zn(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(jt){xe.current=jt(xe.current)}),ft.current=null,wt!==xe.current&>({})}})}return(0,O.useEffect)(function(){return function(){ft.current=null}},[]),[xe.current,$t]}function Xn(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 Qr(){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 Gr=g(47273),Sn=(0,Gr.Z)()?window:null;function On(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 Sn}:ze,wt=_e()||Sn;return O.useMemo(function(){var jt=!!ye;return{isSticky:jt,stickyClassName:jt?"".concat(xe,"-sticky-holder"):"",offsetHeader:gt,offsetSummary:Ut,offsetScroll:sr,container:wt}},[sr,gt,Ut,xe,wt])}function Qn(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 Jn=Qn;function Ni(ye){var xe=ye.className,et=ye.children;return O.createElement("div",{className:xe},et)}var li=Ni,vn=g(8224),hr=g(55468),wr=function(xe,et){var st,gt,ft=xe.scrollBodyRef,Ut=xe.onScroll,$t=xe.offsetScroll,sr=xe.container,ze=o(z,"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,jt=_e&&wt*(wt/_e),Vt=O.useRef(),ur=zn({scrollLeft:0,isHiddenScrollBar:!1}),It=(0,se.Z)(ur,2),yr=It[0],Wr=It[1],$r=O.useRef({delta:0,x:0}),cn=O.useState(!1),Dn=(0,se.Z)(cn,2),ni=Dn[0],kr=Dn[1],ir=function(){kr(!1)},Si=function(_n){_n.persist(),$r.current.delta=_n.pageX-yr.scrollLeft,$r.current.x=0,kr(!0),_n.preventDefault()},In=function(_n){var ii,Di=_n||((ii=window)===null||ii===void 0?void 0:ii.event),He=Di.buttons;if(!ni||He===0){ni&&kr(!1);return}var c=$r.current.x+_n.pageX-$r.current.x-$r.current.delta;c<=0&&(c=0),c+jt>=wt&&(c=wt-jt),Ut({scrollLeft:c/wt*(_e+2)}),$r.current.x=_n.pageX},sn=function(){if(ft.current){var _n=(0,hr.os)(ft.current).top,ii=_n+ft.current.offsetHeight,Di=sr===window?document.documentElement.scrollTop+window.innerHeight:(0,hr.os)(sr).top+sr.clientHeight;ii-(0,Ge.Z)()<=Di||_n>=Di-$t?Wr(function(He){return(0,Le.Z)((0,Le.Z)({},He),{},{isHiddenScrollBar:!0})}):Wr(function(He){return(0,Le.Z)((0,Le.Z)({},He),{},{isHiddenScrollBar:!1})})}},An=function(_n){Wr(function(ii){return(0,Le.Z)((0,Le.Z)({},ii),{},{scrollLeft:_n/_e*wt||0})})};return O.useImperativeHandle(et,function(){return{setScrollLeft:An}}),O.useEffect(function(){var rn=(0,vn.Z)(document.body,"mouseup",ir,!1),_n=(0,vn.Z)(document.body,"mousemove",In,!1);return sn(),function(){rn.remove(),_n.remove()}},[jt,ni]),O.useEffect(function(){var rn=(0,vn.Z)(sr,"scroll",sn,!1),_n=(0,vn.Z)(window,"resize",sn,!1);return function(){rn.remove(),_n.remove()}},[sr]),O.useEffect(function(){yr.isHiddenScrollBar||Wr(function(rn){var _n=ft.current;return _n?(0,Le.Z)((0,Le.Z)({},rn),{},{scrollLeft:_n.scrollLeft/_n.scrollWidth*_n.clientWidth}):rn})},[yr.isHiddenScrollBar]),_e<=wt||!jt||yr.isHiddenScrollBar?null:O.createElement("div",{style:{height:(0,Ge.Z)(),width:wt,bottom:$t},className:"".concat(ze,"-sticky-scroll")},O.createElement("div",{onMouseDown:Si,ref:Vt,className:T()("".concat(ze,"-sticky-scroll-bar"),(0,ae.Z)({},"".concat(ze,"-sticky-scroll-bar-active"),ni)),style:{width:"".concat(jt,"px"),transform:"translate3d(".concat(yr.scrollLeft,"px, 0, 0)")}}))},Or=O.forwardRef(wr);function Hr(ye){return null}var Ur=Hr;function on(ye){return null}var en=on,Hn="rc-table",ti=[],ui={};function Ri(){return"No Data"}function Oi(ye){var xe,et=(0,Le.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,jt=et.title,Vt=et.footer,ur=et.summary,It=et.caption,yr=et.id,Wr=et.showHeader,$r=et.components,cn=et.emptyText,Dn=et.onRow,ni=et.onHeaderRow,kr=et.internalHooks,ir=et.transformColumns,Si=et.internalRefs,In=et.tailor,sn=et.sticky,An=$t||ti,rn=!!An.length,_n=kr===Fe,ii=O.useCallback(function(za,ds){return(0,oe.Z)($r,za)||ds},[$r]),Di=O.useMemo(function(){return typeof sr=="function"?sr:function(za){var ds=za&&za[sr];return ds}},[sr]),He=ii(["body"]),c=Qr(),w=(0,se.Z)(c,3),C=w[0],K=w[1],Be=w[2],je=Bn(et,An,Di),xt=(0,se.Z)(je,6),bt=xt[0],Xt=xt[1],Ar=xt[2],xr=xt[3],nn=xt[4],Cn=xt[5],Xr=ze==null?void 0:ze.x,dn=O.useState(0),Mn=(0,se.Z)(dn,2),qn=Mn[0],xi=Mn[1],yn=Fr((0,Le.Z)((0,Le.Z)((0,Le.Z)({},et),bt),{},{expandable:!!bt.expandedRowRender,columnTitle:bt.columnTitle,expandedKeys:Ar,getRowKey:Di,onTriggerExpand:Cn,expandIcon:xr,expandIconColumnIndex:bt.expandIconColumnIndex,direction:wt,scrollWidth:_n&&In&&typeof Xr=="number"?Xr:null}),_n?ir:null),fi=(0,se.Z)(yn,3),Ji=fi[0],$i=fi[1],Sa=fi[2],Ia=Sa!=null?Sa:Xr,Xi=O.useMemo(function(){return{columns:Ji,flattenColumns:$i}},[Ji,$i]),Ta=O.useRef(),Ba=O.useRef(),ai=O.useRef(),Ka=O.useRef(),ls=O.useRef(),aa=O.useState(!1),da=(0,se.Z)(aa,2),wa=da[0],$a=da[1],us=O.useState(!1),ca=(0,se.Z)(us,2),Ts=ca[0],bs=ca[1],Hs=zn(new Map),Zs=(0,se.Z)(Hs,2),Xs=Zs[0],Wo=Zs[1],$o=pe($i),ho=$o.map(function(za){return Xs.get(za)}),oo=O.useMemo(function(){return ho},[ho.join("_")]),ro=Jn(oo,$i.length,wt),$s=ze&&qe(ze.y),ts=ze&&qe(Ia)||!!bt.fixed,al=ts&&$i.some(function(za){var ds=za.fixed;return ds}),$l=O.useRef(),Vo=On(sn,st),Jo=Vo.isSticky,fu=Vo.offsetHeader,Iu=Vo.offsetSummary,Ua=Vo.offsetScroll,_s=Vo.stickyClassName,rs=Vo.container,Bs=O.useMemo(function(){return ur==null?void 0:ur(An)},[ur,An]),wo=($s||Jo)&&O.isValidElement(Bs)&&Bs.type===D&&Bs.props.fixed,Ro,po,Cl;$s&&(po={overflowY:"scroll",maxHeight:ze.y}),ts&&(Ro={overflowX:"auto"},$s||(po={overflowY:"hidden"}),Cl={width:Ia===!0?"auto":Ia,minWidth:"100%"});var Ko=O.useCallback(function(za,ds){(0,Te.Z)(Ta.current)&&Wo(function(zo){if(zo.get(za)!==ds){var ll=new Map(zo);return ll.set(za,ds),ll}return zo})},[]),Vl=Xn(null),No=(0,se.Z)(Vl,2),Yl=No[0],$u=No[1];function hu(za,ds){ds&&(typeof ds=="function"?ds(za):ds.scrollLeft!==za&&(ds.scrollLeft=za,ds.scrollLeft!==za&&setTimeout(function(){ds.scrollLeft=za},0)))}var sl=(0,ke.Z)(function(za){var ds=za.currentTarget,zo=za.scrollLeft,ll=wt==="rtl",Sl=typeof zo=="number"?zo:ds.scrollLeft,Ru=ds||ui;if(!$u()||$u()===Ru){var Ou;Yl(Ru),hu(Sl,Ba.current),hu(Sl,ai.current),hu(Sl,ls.current),hu(Sl,(Ou=$l.current)===null||Ou===void 0?void 0:Ou.setScrollLeft)}var Pu=ds||Ba.current;if(Pu){var hl=Pu.scrollWidth,Il=Pu.clientWidth;if(hl===Il){$a(!1),bs(!1);return}ll?($a(-Sl<hl-Il),bs(-Sl>0)):($a(Sl>0),bs(Sl<hl-Il))}}),pu=function(){ts&&ai.current?sl({currentTarget:ai.current}):($a(!1),bs(!1))},Tu=function(ds){var zo=ds.width;zo!==qn&&(pu(),xi(Ta.current?Ta.current.offsetWidth:zo))},Ku=O.useRef(!1);O.useEffect(function(){Ku.current&&pu()},[ts,$t,Ji.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(){(!In||!_n)&&(ai.current instanceof Element?Gu((0,Ge.o)(ai.current).width):Gu((0,Ge.o)(Ka.current).width)),vu((0,Se.G)("position","sticky"))},[]),O.useEffect(function(){_n&&Si&&(Si.body.current=ai.current)});var ko=O.useCallback(function(za){return O.createElement(O.Fragment,null,O.createElement(Vn,za),wo==="top"&&O.createElement(W,za,Bs))},[wo,Bs]),yc=O.useCallback(function(za){return O.createElement(W,za,Bs)},[Bs]),Zu=ii(["table"],"table"),Pa=O.useMemo(function(){return _e||(al?Ia==="max-content"?"auto":"fixed":$s||Jo||$i.some(function(za){var ds=za.ellipsis;return ds})?"fixed":"auto")},[$s,al,$i,_e,Jo]),Fu,Du={colWidths:oo,columCount:$i.length,stickyOffsets:ro,onHeaderRow:ni,fixHeader:$s,scroll:ze},_l=O.useMemo(function(){return rn?null:typeof cn=="function"?cn():cn},[rn,cn]),Lu=O.createElement(ue,{data:An,measureColumnWidth:$s||ts||Jo}),yu=O.createElement(Yt,{colWidths:$i.map(function(za){var ds=za.width;return ds}),columns:$i}),Xl=It!=null?O.createElement("caption",{className:"".concat(st,"-caption")},It):void 0,Jl=(0,dt.Z)(et,{data:!0}),Bl=(0,dt.Z)(et,{aria:!0});if($s||Jo){var Ho;typeof He=="function"?(Ho=He(An,{scrollbarSize:Nl,ref:ai,onScroll:sl}),Du.colWidths=$i.map(function(za,ds){var zo=za.width,ll=ds===$i.length-1?zo-Nl:zo;return typeof ll=="number"&&!Number.isNaN(ll)?ll:0})):Ho=O.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Ro),po),onScroll:sl,ref:ai,className:T()("".concat(st,"-body"))},O.createElement(Zu,(0,L.Z)({style:(0,Le.Z)((0,Le.Z)({},Cl),{},{tableLayout:Pa})},Bl),Xl,yu,Lu,!wo&&Bs&&O.createElement(W,{stickyOffsets:ro,flattenColumns:$i,columns:Ji},Bs)));var ws=(0,Le.Z)((0,Le.Z)((0,Le.Z)({noData:!An.length,maxContentScroll:ts&&Ia==="max-content"},Du),Xi),{},{direction:wt,stickyClassName:_s,onScroll:sl});Fu=O.createElement(O.Fragment,null,Wr!==!1&&O.createElement(Zt,(0,L.Z)({},ws,{stickyTopOffset:fu,className:"".concat(st,"-header"),ref:Ba}),ko),Ho,wo&&wo!=="top"&&O.createElement(Zt,(0,L.Z)({},ws,{stickyBottomOffset:Iu,className:"".concat(st,"-summary"),ref:ls}),yc),Jo&&O.createElement(Or,{ref:$l,offsetScroll:Ua,scrollBodyRef:ai,onScroll:sl,container:rs}))}else Fu=O.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Ro),po),className:T()("".concat(st,"-content")),onScroll:sl,ref:ai},O.createElement(Zu,(0,L.Z)({style:(0,Le.Z)((0,Le.Z)({},Cl),{},{tableLayout:Pa})},Bl),Xl,yu,Wr!==!1&&O.createElement(Vn,(0,L.Z)({},Du,Xi)),Lu,Bs&&O.createElement(W,{stickyOffsets:ro,flattenColumns:$i,columns:Ji},Bs)));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"),wa),(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"),ts),(0,ae.Z)(xe,"".concat(st,"-has-fix-left"),$i[0]&&$i[0].fixed),(0,ae.Z)(xe,"".concat(st,"-has-fix-right"),$i[$i.length-1]&&$i[$i.length-1].fixed==="right"),xe)),style:Ut,id:yr,ref:Ta},Jl),jt&&O.createElement(li,{className:"".concat(st,"-title")},jt(An)),O.createElement("div",{ref:Ka,className:"".concat(st,"-container")},Fu),Vt&&O.createElement(li,{className:"".concat(st,"-footer")},Vt(An)));ts&&(ol=O.createElement(Ie.Z,{onResize:Tu},ol));var qo=gn($i,ro,wt,Ji),ql=O.useMemo(function(){return{scrollX:Ia,prefixCls:st,getComponent:ii,scrollbarSize:Nl,direction:wt,fixedInfoList:qo,isSticky:Jo,supportSticky:Io,componentWidth:qn,fixHeader:$s,fixColumn:al,horizonScroll:ts,tableLayout:Pa,rowClassName:ft,expandedRowClassName:bt.expandedRowClassName,expandIcon:xr,expandableType:Xt,expandRowByClick:bt.expandRowByClick,expandedRowRender:bt.expandedRowRender,onTriggerExpand:Cn,expandIconColumnIndex:bt.expandIconColumnIndex,indentSize:bt.indentSize,allColumnsFixedLeft:$i.every(function(za){return za.fixed==="left"}),emptyNode:_l,columns:Ji,flattenColumns:$i,onColumnResize:Ko,hoverStartRow:C,hoverEndRow:K,onHover:Be,rowExpandable:bt.rowExpandable,onRow:Dn,getRowKey:Di,expandedKeys:Ar,childrenColumnName:nn}},[Ia,st,ii,Nl,wt,qo,Jo,Io,qn,$s,al,ts,Pa,ft,bt.expandedRowClassName,xr,Xt,bt.expandRowByClick,bt.expandedRowRender,Cn,bt.expandIconColumnIndex,bt.indentSize,_l,Ji,$i,Ko,C,K,Be,bt.rowExpandable,Dn,Di,Ar,nn]);return O.createElement(z.Provider,{value:ql},ol)}function Qi(ye){return H(Oi,ye)}var Tr=Qi();Tr.EXPAND_COLUMN=we,Tr.INTERNAL_HOOKS=Fe,Tr.Column=Ur,Tr.ColumnGroup=en,Tr.Summary=P;var En=Tr,hn=g(57149),Ai=n(null),si=n(null);function ri(ye,xe,et){var st=xe||1;return et[ye+st]-(et[ye]||0)}function wi(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,jt=et.render,Vt=et.dataIndex,ur=et.className,It=et.width,yr=o(si,["columnsOffset"]),Wr=yr.columnsOffset,$r=Bt(xe,et,st,gt,ft),cn=$r.key,Dn=$r.fixedInfo,ni=$r.appendCellNode,kr=$r.additionalCellProps,ir=kr.style,Si=kr.colSpan,In=Si===void 0?1:Si,sn=kr.rowSpan,An=sn===void 0?1:sn,rn=st-1,_n=ri(rn,In,Wr),ii=In>1?It-_n:0,Di=(0,Le.Z)((0,Le.Z)((0,Le.Z)({},ir),sr),{},{flex:"0 0 ".concat(_n,"px"),width:"".concat(_n,"px"),marginRight:ii,pointerEvents:"auto"}),He=O.useMemo(function(){return _e?An<=1:In===0||An===0||An>1},[An,In,_e]);He?Di.visibility="hidden":_e&&(Di.height=wt==null?void 0:wt(An));var c=He?function(){return null}:jt,w={};return(An===0||In===0)&&(w.rowSpan=1,w.colSpan=1),O.createElement(Er,(0,L.Z)({className:T()(ur,ze),ellipsis:et.ellipsis,align:et.align,scope:et.rowScope,component:"div",prefixCls:xe.prefixCls,key:cn,record:$t,index:ft,renderIndex:Ut,dataIndex:Vt,render:c,shouldCellUpdate:et.shouldCellUpdate},Dn,{appendNode:ni,additionalProps:(0,Le.Z)((0,Le.Z)({},kr),{},{style:Di},w)}))}var Ti=wi,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,St.Z)(ye,Bi),_e=et.record,wt=et.indent,jt=et.index,Vt=o(z,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ur=Vt.scrollX,It=Vt.flattenColumns,yr=Vt.prefixCls,Wr=Vt.fixColumn,$r=Vt.componentWidth,cn=$e(_e,ft,st,wt),Dn=cn.rowSupportExpand,ni=cn.expanded,kr=cn.rowProps,ir=cn.expandedRowRender,Si=cn.expandedRowClassName,In;if(Dn&&ni){var sn=ir(_e,st,wt+1,ni),An=Si==null?void 0:Si(_e,st,wt),rn={};Wr&&(rn={style:(0,ae.Z)({},"--virtual-width","".concat($r,"px"))});var _n="".concat(yr,"-expanded-row-cell");In=O.createElement("div",{className:T()("".concat(yr,"-expanded-row"),"".concat(yr,"-expanded-row-level-").concat(wt+1),An)},O.createElement(Er,{component:"div",prefixCls:yr,className:T()(_n,(0,ae.Z)({},"".concat(_n,"-fixed"),Wr)),additionalProps:rn},sn))}var ii=(0,Le.Z)((0,Le.Z)({},Ut),{},{width:ur});$t&&(ii.position="absolute",ii.pointerEvents="none");var Di=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,Le.Z)((0,Le.Z)({},ii),kr==null?void 0:kr.style)}),It.map(function(He,c){return O.createElement(Ti,{key:c,rowInfo:cn,column:He,colIndex:c,indent:wt,index:st,renderIndex:jt,record:_e,inverse:$t,getHeight:sr})}));return Dn?O.createElement("div",{ref:xe},Di,In):Di}),oa=V(zi),Ei=oa,wn=O.forwardRef(function(ye,xe){var et=ye.data,st=ye.onScroll,gt=o(z,["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,jt=gt.scrollX,Vt=o(Ai),ur=Vt.scrollY,It=Vt.listItemHeight,yr=O.useRef(),Wr=Xe(et,_e,sr,$t),$r=O.useMemo(function(){var In=0;return ft.map(function(sn){var An=sn.width,rn=sn.key;return In+=An,[rn,An,In]})},[ft]),cn=O.useMemo(function(){return $r.map(function(In){return In[2]})},[$r]);O.useEffect(function(){$r.forEach(function(In){var sn=(0,se.Z)(In,2),An=sn[0],rn=sn[1];Ut(An,rn)})},[$r]),O.useImperativeHandle(xe,function(){var In={};return Object.defineProperty(In,"scrollLeft",{get:function(){var An;return((An=yr.current)===null||An===void 0?void 0:An.getScrollInfo().x)||0},set:function(An){var rn;(rn=yr.current)===null||rn===void 0||rn.scrollTo({left:An})}}),In});var Dn=function(sn,An){var rn,_n=(rn=Wr[An])===null||rn===void 0?void 0:rn.record,ii=sn.onCell;if(ii){var Di,He=ii(_n,An);return(Di=He==null?void 0:He.rowSpan)!==null&&Di!==void 0?Di:1}return 1},ni=function(sn){var An=sn.start,rn=sn.end,_n=sn.getSize,ii=sn.offsetY;if(rn<0)return null;for(var Di=ft.filter(function(Xr){return Dn(Xr,An)===0}),He=An,c=function(dn){if(Di=Di.filter(function(Mn){return Dn(Mn,dn)===0}),!Di.length)return He=dn,"break"},w=An;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(dn){if(K=K.filter(function(Mn){return Dn(Mn,dn)!==1}),!K.length)return Be=Math.max(dn-1,rn),"break"},xt=rn;xt<Wr.length;xt+=1){var bt=je(xt);if(bt==="break")break}for(var Xt=[],Ar=function(dn){var Mn=Wr[dn];if(!Mn)return"continue";ft.some(function(qn){return Dn(qn,dn)>1})&&Xt.push(dn)},xr=He;xr<=Be;xr+=1)var nn=Ar(xr);var Cn=Xt.map(function(Xr){var dn=Wr[Xr],Mn=$t(dn.record,Xr),qn=function(fi){var Ji=Xr+fi-1,$i=$t(Wr[Ji].record,Ji),Sa=_n(Mn,$i);return Sa.bottom-Sa.top},xi=_n(Mn);return O.createElement(Ei,{key:Xr,data:dn,rowKey:Mn,index:Xr,style:{top:-ii+xi.top},extra:!0,getHeight:qn})});return Cn},kr=O.useMemo(function(){return{columnsOffset:cn}},[cn]),ir="".concat(ze,"-tbody"),Si;return Wr.length?Si=O.createElement(hn.Z,{fullHeight:!1,ref:yr,className:T()(ir,"".concat(ir,"-virtual")),height:ur,itemHeight:It||24,data:Wr,itemKey:function(sn){return $t(sn.record)},scrollWidth:jt,onVirtualScroll:function(sn){var An=sn.x;st({scrollLeft:An})},extraRender:ni},function(In,sn,An){var rn=$t(In.record,sn);return O.createElement(Ei,(0,L.Z)({data:In,rowKey:rn,index:sn},An))}):Si=O.createElement("div",{className:T()("".concat(ze,"-placeholder"))},O.createElement(Er,{component:"div",prefixCls:ze},wt)),O.createElement(si.Provider,{value:kr},Si)}),Ht=V(wn),Fn=Ht,Gn=function(xe,et){var st=et.ref,gt=et.onScroll;return O.createElement(Fn,{ref:st,data:xe,onScroll:gt})},Ci=100;function ki(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)*Ci),typeof ze!="number"&&(ze=500);var _e=O.useMemo(function(){return{scrollY:ze,listItemHeight:Ut}},[ze,Ut]);return O.createElement(Ai.Provider,{value:_e},O.createElement(En,(0,L.Z)({},ye,{className:T()(ft,"".concat(gt,"-virtual")),scroll:(0,Le.Z)((0,Le.Z)({},et),{},{x:sr}),components:{body:Gn},columns:xe,internalHooks:Fe,tailor:!0})))}function Aa(ye){return H(ki,ye)}var Ca=Aa(),ta=null;function xa(ye){return null}var La=xa;function hi(ye){return null}var bi=hi,Hi=g(2738),ha=g(68031),Na=g(36355),ci=g(93891),pa=g(19716),va=g(8628),Ha=g(31724),Is=g(58421),Wa=g(71418),Fa=g(88088);function Mi(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=Mi;function ms(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 ss(ye,xe){return xe?`${xe}-${ye}`:`${ye}`}function ns(ye,xe){return typeof ye=="function"?ye(xe):ye}function Wi(ye,xe){const et=ns(ye,xe);return Object.prototype.toString.call(et)==="[object Object]"?"":et}var gs={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"},ia=gs,co=g(7657),Qs=function(xe,et){return O.createElement(co.Z,(0,L.Z)({},xe,{ref:et,icon:ia}))},_o=O.forwardRef(Qs),hs=_o,Bo=g(56762);function os(ye){const xe=O.useRef(ye),et=(0,Bo.Z)();return[()=>xe.current,st=>{xe.current=st,et()}]}var Yn=g(3113),Da=g(24905),io=g(38854),Zi=g(64165),ea=g(20834),ji=g(40875),Ui=g(5112),ba=g(17574),ka=g(47472),Rs=g(92832);function As(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(ka.Z,null),placeholder:ft.filterSearchPlaceholder,onChange:et,value:xe,htmlSize:1,className:`${gt}-filter-dropdown-search-input`})):null}var Es=As,is=g(10228);const So=ye=>{const{keyCode:xe}=ye;xe===is.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,Gt.Z)(xe),(0,Gt.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?Da.default:Ui.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:jt,locale:Vt,children:ur,getPopupContainer:It}=ye,{filterDropdownOpen:yr,onFilterDropdownOpenChange:Wr,filterResetToDefaultFilteredValue:$r,defaultFilteredValue:cn,filterDropdownVisible:Dn,onFilterDropdownVisibleChange:ni}=ft,[kr,ir]=O.useState(!1),Si=!!(wt&&(!((xe=wt.filteredKeys)===null||xe===void 0)&&xe.length||wt.forceFiltered)),In=yn=>{ir(yn),Wr==null||Wr(yn),ni==null||ni(yn)},sn=(et=yr!=null?yr:Dn)!==null&&et!==void 0?et:kr,An=wt==null?void 0:wt.filteredKeys,[rn,_n]=os(An||[]),ii=yn=>{let{selectedKeys:fi}=yn;_n(fi)},Di=(yn,fi)=>{let{node:Ji,checked:$i}=fi;ii(sr?{selectedKeys:yn}:{selectedKeys:$i&&Ji.key?[Ji.key]:[]})};O.useEffect(()=>{kr&&ii({selectedKeys:An||[]})},[An]);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;jt({column:ft,key:$t,filteredKeys:fi})},xt=()=>{In(!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&&In(!1),K(""),_n($r?(cn||[]).map(Ji=>String(Ji)):[])},Xt=function(){let{closeDropdown:yn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};yn&&In(!1),je(rn())},Ar=yn=>{yn&&An!==void 0&&_n(An||[]),In(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(Ji=>String(Ji));_n(fi)}else _n([])},Cn=yn=>{let{filters:fi}=yn;return(fi||[]).map((Ji,$i)=>{const Sa=String(Ji.value),Ia={title:Ji.text,key:Ji.value!==void 0?Sa:$i};return Ji.children&&(Ia.children=Cn({filters:Ji.children})),Ia})},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(Ji=>Xr(Ji)))||[]})};let dn;if(typeof ft.filterDropdown=="function")dn=ft.filterDropdown({prefixCls:`${Ut}-custom`,setSelectedKeys:yn=>ii({selectedKeys:yn}),selectedKeys:rn(),confirm:Xt,clearFilters:bt,filters:ft.filters,visible:sn,close:()=>{In(!1)}});else if(ft.filterDropdown)dn=ft.filterDropdown;else{const yn=rn()||[],fi=()=>(ft.filters||[]).length===0?O.createElement(Zi.Z,{image:Zi.Z.PRESENTED_IMAGE_SIMPLE,description:Vt.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:Vt}),O.createElement("div",{className:`${st}-filter-dropdown-tree`},sr?O.createElement(Da.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},Vt.filterCheckall):null,O.createElement(ba.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:sr,checkStrictly:!sr,className:`${Ut}-menu`,onCheck:Di,checkedKeys:yn,selectedKeys:yn,showIcon:!1,treeData:Cn({filters:ft.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:C.trim()?$i=>typeof _e=="function"?_e(C,Xr($i)):Li(C,$i.title):void 0}))):O.createElement(O.Fragment,null,O.createElement(Es,{filterSearch:_e,value:C,onChange:Be,tablePrefixCls:st,locale:Vt}),O.createElement(ea.default,{selectable:!0,multiple:sr,prefixCls:`${Ut}-menu`,className:xr,onSelect:ii,onDeselect:ii,selectedKeys:yn,getPopupContainer:It,openKeys:He,onOpenChange:w,items:pi({filters:ft.filters||[],filterSearch:_e,prefixCls:gt,filteredKeys:rn(),filterMultiple:sr,searchValue:C})})),Ji=()=>$r?(0,Y.Z)((cn||[]).map($i=>String($i)),yn,!0):yn.length===0;dn=O.createElement(O.Fragment,null,fi(),O.createElement("div",{className:`${gt}-dropdown-btns`},O.createElement(Yn.ZP,{type:"link",size:"small",disabled:Ji(),onClick:()=>bt()},Vt.filterReset),O.createElement(Yn.ZP,{type:"primary",size:"small",onClick:xt},Vt.filterConfirm)))}ft.filterDropdown&&(dn=O.createElement(ji.J,{selectable:void 0},dn));const Mn=()=>O.createElement(eo,{className:`${gt}-dropdown`},dn);let qn;typeof ft.filterIcon=="function"?qn=ft.filterIcon(Si):ft.filterIcon?qn=ft.filterIcon:qn=O.createElement(hs,null);const{direction:xi}=O.useContext(Na.E_);return O.createElement("div",{className:`${gt}-column`},O.createElement("span",{className:`${st}-column-title`},ur),O.createElement(io.Z,{dropdownRender:Mn,trigger:["click"],open:sn,onOpenChange:Ar,getPopupContainer:It,placement:xi==="rtl"?"bottomLeft":"bottomRight"},O.createElement("span",{role:"button",tabIndex:-1,className:T()(`${gt}-trigger`,{active:Si}),onClick:yn=>{yn.stopPropagation()}},qn)))}var vs=ua;function Oa(ye,xe,et){let st=[];return(ye||[]).forEach((gt,ft)=>{var Ut;const $t=ss(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:ms(gt,$t),filteredKeys:sr,forceFiltered:gt.filtered})}else st.push({column:gt,key:ms(gt,$t),filteredKeys:xe&>.defaultFilteredValue?gt.defaultFilteredValue:void 0,forceFiltered:gt.filtered});"children"in gt&&(st=[].concat((0,Gt.Z)(st),(0,Gt.Z)(Oa(gt.children,xe,$t))))}),st}function Ns(ye,xe,et,st,gt,ft,Ut,$t){return et.map((sr,ze)=>{const _e=ss(ze,$t),{filterMultiple:wt=!0,filterMode:jt,filterSearch:Vt}=sr;let ur=sr;if(ur.filters||ur.filterDropdown){const It=ms(ur,_e),yr=st.find(Wr=>{let{key:$r}=Wr;return It===$r});ur=Object.assign(Object.assign({},ur),{title:Wr=>O.createElement(vs,{tablePrefixCls:ye,prefixCls:`${ye}-filter`,dropdownPrefixCls:xe,column:ur,columnKey:It,filterState:yr,filterMultiple:wt,filterMode:jt,filterSearch:Vt,triggerFilter:ft,locale:gt,getPopupContainer:Ut},ns(sr.title,Wr))})}return"children"in ur&&(ur=Object.assign(Object.assign({},ur),{children:Ns(ye,xe,ur.children,st,gt,ft,Ut,_e)})),ur})}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(jt=>String(jt)===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,Gt.Z)(Ps(xe.children||[]))):[xe]);function Fi(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 ur=Oa($t,!1);if(ur.length===0)return ur;let It=!0,yr=!0;if(ur.forEach(Wr=>{let{filteredKeys:$r}=Wr;$r!==void 0?It=!1:yr=!1}),It){const Wr=($t||[]).map(($r,cn)=>ms($r,ss(cn)));return sr.filter($r=>{let{key:cn}=$r;return Wr.includes(cn)}).map($r=>{const cn=$t[Wr.findIndex(Dn=>Dn===$r.key)];return Object.assign(Object.assign({},$r),{column:Object.assign(Object.assign({},$r.column),cn),forceFiltered:cn.filtered})})}return ur},[$t,sr]),wt=O.useMemo(()=>Vs(_e),[_e]),jt=ur=>{const It=_e.filter(yr=>{let{key:Wr}=yr;return Wr!==ur.key});It.push(ur),ze(It),gt(Vs(It),It)};return[ur=>Ns(xe,et,ur,_e,Ut,jt,ft),_e,wt]}var Dl=Fi;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=(jt,Vt)=>{$t({current:jt!=null?jt:1,pageSize:Vt||sr.pageSize})},wt=(jt,Vt)=>{var ur;et&&((ur=et.onChange)===null||ur===void 0||ur.call(et,jt,Vt)),_e(jt,Vt),xe(jt,Vt||(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),Ma=g(90782),ma=g(71430),to=g(18929);const Ja={},as="SELECT_ALL",js="SELECT_INVERT",Ea="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,Gt.Z)(et),(0,Gt.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:jt,type:Vt,selections:ur,fixed:It,renderCell:yr,hideSelectAll:Wr,checkStrictly:$r=!0}=xe||{},{prefixCls:cn,data:Dn,pageData:ni,getRecordByKey:kr,getRowKey:ir,expandType:Si,childrenColumnName:In,locale:sn,getPopupContainer:An}=ye,[rn,_n]=(0,to.Z)(st||gt||Ys,{value:st}),ii=O.useRef(new Map),Di=(0,O.useCallback)(Xr=>{if(et){const dn=new Map;Xr.forEach(Mn=>{let qn=kr(Mn);!qn&&ii.current.has(Mn)&&(qn=ii.current.get(Mn)),dn.set(Mn,qn)}),ii.current=dn}},[kr,et]);O.useEffect(()=>{Di(rn)},[rn]);const{keyEntities:He}=(0,O.useMemo)(()=>{if($r)return{keyEntities:null};let Xr=Dn;if(et){const dn=new Set(Dn.map((qn,xi)=>ir(qn,xi))),Mn=Array.from(ii.current).reduce((qn,xi)=>{let[yn,fi]=xi;return dn.has(yn)?qn:qn.concat(fi)},[]);Xr=[].concat((0,Gt.Z)(Xr),(0,Gt.Z)(Mn))}return(0,ma.I8)(Xr,{externalGetKey:ir,childrenPropName:In})},[Dn,ir,$r,In,et]),c=(0,O.useMemo)(()=>ao(In,ni),[In,ni]),w=(0,O.useMemo)(()=>{const Xr=new Map;return c.forEach((dn,Mn)=>{const qn=ir(dn,Mn),xi=(ft?ft(dn):null)||{};Xr.set(qn,xi)}),Xr},[c,ir,ft]),C=(0,O.useCallback)(Xr=>{var dn;return!!(!((dn=w.get(ir(Xr)))===null||dn===void 0)&&dn.disabled)},[w,ir]),[K,Be]=(0,O.useMemo)(()=>{if($r)return[rn||[],[]];const{checkedKeys:Xr,halfCheckedKeys:dn}=(0,Ma.S)(rn,!0,He,C);return[Xr||[],dn]},[rn,$r,He,C]),je=(0,O.useMemo)(()=>{const Xr=Vt==="radio"?K.slice(0,1):K;return new Set(Xr)},[K,Vt]),xt=(0,O.useMemo)(()=>Vt==="radio"?new Set:new Set(Be),[Be,Vt]),[bt,Xt]=(0,O.useState)(null);O.useEffect(()=>{xe||_n(Ys)},[!!xe]);const Ar=(0,O.useCallback)((Xr,dn)=>{let Mn,qn;Di(Xr),et?(Mn=Xr,qn=Xr.map(xi=>ii.current.get(xi))):(Mn=[],qn=[],Xr.forEach(xi=>{const yn=kr(xi);yn!==void 0&&(Mn.push(xi),qn.push(yn))})),_n(Mn),Ut==null||Ut(Mn,qn,{type:dn})},[_n,kr,Ut,et]),xr=(0,O.useCallback)((Xr,dn,Mn,qn)=>{if($t){const xi=Mn.map(yn=>kr(yn));$t(kr(Xr),dn,xi,qn)}Ar(Mn,"single")},[$t,kr,Ar]),nn=(0,O.useMemo)(()=>!ur||Wr?null:(ur===!0?[as,js,Ea]:ur).map(dn=>dn===as?{key:"all",text:sn.selectionAll,onSelect(){Ar(Dn.map((Mn,qn)=>ir(Mn,qn)).filter(Mn=>{const qn=w.get(Mn);return!(qn!=null&&qn.disabled)||je.has(Mn)}),"all")}}:dn===js?{key:"invert",text:sn.selectInvert,onSelect(){const Mn=new Set(je);ni.forEach((xi,yn)=>{const fi=ir(xi,yn),Ji=w.get(fi);Ji!=null&&Ji.disabled||(Mn.has(fi)?Mn.delete(fi):Mn.add(fi))});const qn=Array.from(Mn);ze&&ze(qn),Ar(qn,"invert")}}:dn===Ea?{key:"none",text:sn.selectNone,onSelect(){_e==null||_e(),Ar(Array.from(je).filter(Mn=>{const qn=w.get(Mn);return qn==null?void 0:qn.disabled}),"none")}}:dn).map(dn=>Object.assign(Object.assign({},dn),{onSelect:function(){for(var Mn,qn,xi=arguments.length,yn=new Array(xi),fi=0;fi<xi;fi++)yn[fi]=arguments[fi];(qn=dn.onSelect)===null||qn===void 0||(Mn=qn).call.apply(Mn,[dn].concat(yn)),Xt(null)}})),[ur,je,ni,ir,ze,Ar]);return[(0,O.useCallback)(Xr=>{var dn;if(!xe)return Xr.filter(aa=>aa!==Ja);let Mn=(0,Gt.Z)(Xr);const qn=new Set(je),xi=c.map(ir).filter(aa=>!w.get(aa).disabled),yn=xi.every(aa=>qn.has(aa)),fi=xi.some(aa=>qn.has(aa)),Ji=()=>{const aa=[];yn?xi.forEach(wa=>{qn.delete(wa),aa.push(wa)}):xi.forEach(wa=>{qn.has(wa)||(qn.add(wa),aa.push(wa))});const da=Array.from(qn);sr==null||sr(!yn,da.map(wa=>kr(wa)),aa.map(wa=>kr(wa))),Ar(da,"all"),Xt(null)};let $i;if(Vt!=="radio"){let aa;if(nn){const ca={getPopupContainer:An,items:nn.map((Ts,bs)=>{const{key:Hs,text:Zs,onSelect:Xs}=Ts;return{key:Hs!=null?Hs:bs,onClick:()=>{Xs==null||Xs(xi)},label:Zs}})};aa=O.createElement("div",{className:`${cn}-selection-extra`},O.createElement(io.Z,{menu:ca,getPopupContainer:An},O.createElement("span",null,O.createElement(fo.Z,null))))}const da=c.map((ca,Ts)=>{const bs=ir(ca,Ts),Hs=w.get(bs)||{};return Object.assign({checked:qn.has(bs)},Hs)}).filter(ca=>{let{disabled:Ts}=ca;return Ts}),wa=!!da.length&&da.length===c.length,$a=wa&&da.every(ca=>{let{checked:Ts}=ca;return Ts}),us=wa&&da.some(ca=>{let{checked:Ts}=ca;return Ts});$i=!Wr&&O.createElement("div",{className:`${cn}-selection`},O.createElement(Da.default,{checked:wa?$a:!!c.length&&yn,indeterminate:wa?!$a&&us:!yn&&fi,onChange:Ji,disabled:c.length===0||wa,"aria-label":aa?"Custom selection":"Select all",skipGroup:!0}),aa)}let Sa;Vt==="radio"?Sa=(aa,da,wa)=>{const $a=ir(da,wa),us=qn.has($a);return{node:O.createElement(Ui.ZP,Object.assign({},w.get($a),{checked:us,onClick:ca=>ca.stopPropagation(),onChange:ca=>{qn.has($a)||xr($a,!0,[$a],ca.nativeEvent)}})),checked:us}}:Sa=(aa,da,wa)=>{var $a;const us=ir(da,wa),ca=qn.has(us),Ts=xt.has(us),bs=w.get(us);let Hs;return Si==="nest"?Hs=Ts:Hs=($a=bs==null?void 0:bs.indeterminate)!==null&&$a!==void 0?$a:Ts,{node:O.createElement(Da.default,Object.assign({},bs,{indeterminate:Hs,checked:ca,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,us]);xi.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=xi.slice($o,ho+1),ro=[];ca?oo.forEach(ts=>{qn.has(ts)&&(ro.push(ts),qn.delete(ts))}):oo.forEach(ts=>{qn.has(ts)||(ro.push(ts),qn.add(ts))});const $s=Array.from(qn);wt==null||wt(!ca,$s.map(ts=>kr(ts)),ro.map(ts=>kr(ts))),Ar($s,"multiple")}else{const oo=K;if($r){const ro=ca?(0,yo._5)(oo,us):(0,yo.L0)(oo,us);xr(us,!ca,ro,Xs)}else{const ro=(0,Ma.S)([].concat((0,Gt.Z)(oo),[us]),!0,He,C),{checkedKeys:$s,halfCheckedKeys:ts}=ro;let al=$s;if(ca){const $l=new Set($s);$l.delete(us),al=(0,Ma.S)(Array.from($l),{checked:!1,halfCheckedKeys:ts},He,C).checkedKeys}xr(us,!ca,al,Xs)}}Xt(ca?null:us)}})),checked:ca}};const Ia=(aa,da,wa)=>{const{node:$a,checked:us}=Sa(aa,da,wa);return yr?yr(us,da,wa,$a):$a};if(!Mn.includes(Ja))if(Mn.findIndex(aa=>{var da;return((da=aa[Me])===null||da===void 0?void 0:da.columnType)==="EXPAND_COLUMN"})===0){const[aa,...da]=Mn;Mn=[aa,Ja].concat((0,Gt.Z)(da))}else Mn=[Ja].concat((0,Gt.Z)(Mn));const Xi=Mn.indexOf(Ja);Mn=Mn.filter((aa,da)=>aa!==Ja||da===Xi);const Ta=Mn[Xi-1],Ba=Mn[Xi+1];let ai=It;ai===void 0&&((Ba==null?void 0:Ba.fixed)!==void 0?ai=Ba.fixed:(Ta==null?void 0:Ta.fixed)!==void 0&&(ai=Ta.fixed)),ai&&Ta&&((dn=Ta[Me])===null||dn===void 0?void 0:dn.columnType)==="EXPAND_COLUMN"&&Ta.fixed===void 0&&(Ta.fixed=ai);const Ka=T()(`${cn}-selection-col`,{[`${cn}-selection-col-with-dropdown`]:ur&&Vt==="checkbox"}),ls={fixed:ai,width:jt,className:`${cn}-selection-column`,title:xe.columnTitle||$i,render:Ia,onCell:xe.onCell,[Me]:{className:Ka}};return Mn.map(aa=>aa===Ja?ls:aa)},[ir,c,xe,K,je,xt,jt,nn,Si,bt,w,wt,xr,C]),je]},qa=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:ms(ft,Ut),multiplePriority:wl(ft),sortOrder:ft.sortOrder})}return(ye||[]).forEach((ft,Ut)=>{const $t=ss(Ut,et);ft.children?("sortOrder"in ft&>(ft,$t),st=[].concat((0,Gt.Z)(st),(0,Gt.Z)(xl(ft.children,xe,$t)))):ft.sorter&&("sortOrder"in ft?gt(ft,$t):xe&&ft.defaultSortOrder&&st.push({column:ft,key:ms(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=ss(ze,$t);let wt=sr;if(wt.sorter){const jt=wt.sortDirections||gt,Vt=wt.showSorterTooltip===void 0?Ut:wt.showSorterTooltip,ur=ms(wt,_e),It=et.find(Si=>{let{key:In}=Si;return In===ur}),yr=It?It.sortOrder:null,Wr=Ll(jt,yr);let $r;if(sr.sortIcon)$r=sr.sortIcon({sortOrder:yr});else{const Si=jt.includes(bo)&&O.createElement(bl.Z,{className:T()(`${ye}-column-sorter-up`,{active:yr===bo})}),In=jt.includes(Zl)&&O.createElement(qa.Z,{className:T()(`${ye}-column-sorter-down`,{active:yr===Zl})});$r=O.createElement("span",{className:T()(`${ye}-column-sorter`,{[`${ye}-column-sorter-full`]:!!(Si&&In)})},O.createElement("span",{className:`${ye}-column-sorter-inner`,"aria-hidden":"true"},Si,In))}const{cancelSort:cn,triggerAsc:Dn,triggerDesc:ni}=ft||{};let kr=cn;Wr===Zl?kr=ni:Wr===bo&&(kr=Dn);const ir=typeof Vt=="object"?Vt:{title:kr};wt=Object.assign(Object.assign({},wt),{className:T()(wt.className,{[`${ye}-column-sort`]:yr}),title:Si=>{const In=O.createElement("div",{className:`${ye}-column-sorters`},O.createElement("span",{className:`${ye}-column-title`},ns(sr.title,Si)),$r);return Vt?O.createElement(so.Z,Object.assign({},ir),In):In},onHeaderCell:Si=>{const In=sr.onHeaderCell&&sr.onHeaderCell(Si)||{},sn=In.onClick,An=In.onKeyDown;In.onClick=ii=>{st({column:sr,key:ur,sortOrder:Wr,multiplePriority:wl(sr)}),sn==null||sn(ii)},In.onKeyDown=ii=>{ii.keyCode===is.Z.ENTER&&(st({column:sr,key:ur,sortOrder:Wr,multiplePriority:wl(sr)}),An==null||An(ii))};const rn=Wi(sr.title,{}),_n=rn==null?void 0:rn.toString();return yr?In["aria-sort"]=yr==="ascend"?"ascending":"descending":In["aria-label"]=_n||"",In.className=T()(In.className,`${ye}-column-has-sorters`),In.tabIndex=0,sr.ellipsis&&(In.title=(rn!=null?rn:"").toString()),In}})}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 Ya(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,jt=fl(_e);if(jt&&wt){const Vt=jt(Ut,$t,wt);if(Vt!==0)return wt===bo?Vt:-Vt}}return 0}).map(Ut=>{const $t=Ut[et];return $t?Object.assign(Object.assign({},Ut),{[et]:Ya($t,xe,et)}):Ut}):gt}function ys(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 ur=!0;const It=xl(et,!1);if(!It.length)return $t;const yr=[];function Wr(cn){ur?yr.push(cn):yr.push(Object.assign(Object.assign({},cn),{sortOrder:null}))}let $r=null;return It.forEach(cn=>{$r===null?(Wr(cn),cn.sortOrder&&(cn.multiplePriority===!1?ur=!1:$r=!0)):($r&&cn.multiplePriority!==!1||(ur=!1),Wr(cn))}),yr},[et,$t]),_e=O.useMemo(()=>{const ur=ze.map(It=>{let{column:yr,sortOrder:Wr}=It;return{column:yr,order:Wr}});return{sortColumns:ur,sortColumn:ur[0]&&ur[0].column,sortOrder:ur[0]&&ur[0].order}},[ze]);function wt(ur){let It;ur.multiplePriority===!1||!ze.length||ze[0].multiplePriority===!1?It=[ur]:It=[].concat((0,Gt.Z)(ze.filter(yr=>{let{key:Wr}=yr;return Wr!==ur.key})),[ur]),sr(It),st(Lo(It),It)}return[ur=>jo(xe,ur,ze,wt,gt,ft,Ut),ze,_e,()=>Lo(ze)]}function es(ye,xe){return ye.map(et=>{const st=Object.assign({},et);return st.title=ns(et.title,xe),"children"in st&&(st.children=es(st.children,xe)),st})}function Cs(ye){return[O.useCallback(et=>es(et,ye),[ye])]}var qs=Qi((ye,xe)=>{const{_renderTimes:et}=ye,{_renderTimes:st}=xe;return et!==st}),El=Aa((ye,xe)=>{const{_renderTimes:et}=ye,{_renderTimes:st}=xe;return et!==st}),il=g(64993),Rl=g(17313),cu=g(83116),Ol=g(37613),oi=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:jt,fontSizeSM:Vt,lineHeight:ur,tablePaddingVertical:It,tablePaddingHorizontal:yr,tableExpandedRowBg:Wr,paddingXXS:$r}=ye,cn=st/2-ft,Dn=cn*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:cn,insetInlineEnd:kr,insetInlineStart:kr,height:ft},"&::after":{top:kr,bottom:kr,insetInlineStart:cn,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:(jt*ur-ft*3)/2-Math.ceil((Vt*1.4-ft*3)/2),marginInlineEnd:Ut},[`tr${xe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Wr}},[`${et}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${xe}-expanded-row-fixed`]:{position:"relative",margin:`-${It}px -${yr}px`,padding:`${It}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:jt,fontSizeSM:Vt,tablePaddingHorizontal:ur,borderRadius:It,motionDurationSlow:yr,colorTextDescription:Wr,colorPrimary:$r,tableHeaderFilterActiveBg:cn,colorTextDisabled:Dn,tableFilterDropdownBg:ni,tableFilterDropdownHeight:kr,controlItemBgHover:ir,controlItemBgActive:Si,boxShadowSecondary:In,filterDropdownMenuBg:sn}=ye,An=`${et}-dropdown`,rn=`${xe}-filter-dropdown`,_n=`${et}-tree`,ii=`${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 ${-ur/2}px`,padding:`0 ${Ut}px`,color:jt,fontSize:Vt,borderRadius:It,cursor:"pointer",transition:`all ${yr}`,"&:hover":{color:Wr,background:cn},"&.active":{color:$r}}}},{[`${et}-dropdown`]:{[rn]:Object.assign(Object.assign({},(0,Rl.Wf)(ye)),{minWidth:gt,backgroundColor:ni,borderRadius:It,boxShadow:In,overflow:"hidden",[`${An}-menu`]:{maxHeight:kr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:sn,"&:empty::after":{display:"block",padding:`${$t}px 0`,color:Dn,fontSize:Vt,textAlign:"center",content:'"Not Found"'}},[`${rn}-tree`]:{paddingBlock:`${$t}px 0`,paddingInline:$t,[_n]:{padding:0},[`${_n}-treenode ${_n}-node-content-wrapper:hover`]:{backgroundColor:ir},[`${_n}-treenode-checkbox-checked ${_n}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Si}}},[`${rn}-search`]:{padding:$t,borderBottom:ii,"&-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:ii}})}},{[`${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"}}}}},Z=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`}}}}},De=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"}}}}},tt=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 an=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:jt,tableHeaderBg:Vt,tableHeaderCellSplitColor:ur,tableRowHoverBg:It,tableSelectedRowBg:yr,tableSelectedRowHoverBg:Wr,tableFooterTextColor:$r,tableFooterBg:cn,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:Vt,borderBottom:ni,transition:`background ${jt} 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:ur,transform:"translateY(-50%)",transition:`background-color ${jt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${xe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${jt}, border-color ${jt}`,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:Vt,borderBottom:ni,transition:`background ${jt} ease`},[`
|
|
|
&${xe}-row:hover > th,
|
|
|
&${xe}-row:hover > td,
|
|
|
> th${xe}-cell-row-hover,
|
|
|
> td${xe}-cell-row-hover
|
|
|
`]:{background:It},[`&${xe}-row-selected`]:{"> th, > td":{background:yr},"&:hover > th, &:hover > td":{background:Wr}}}},[`${xe}-footer`]:{padding:`${st}px ${gt}px`,color:$r,background:cn}})}};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:jt,rowHoverBg:Vt,rowSelectedBg:ur,rowSelectedHoverBg:It,rowExpandedBg:yr,cellPaddingBlock:Wr,cellPaddingInline:$r,cellPaddingBlockMD:cn,cellPaddingInlineMD:Dn,cellPaddingBlockSM:ni,cellPaddingInlineSM:kr,borderColor:ir,footerBg:Si,footerColor:In,headerBorderRadius:sn,cellFontSize:An,cellFontSizeMD:rn,cellFontSizeSM:_n,headerSplitColor:ii,fixedHeaderSortActiveBg:Di,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:An,tableBg:Ut,tableRadius:sn,tablePaddingVertical:Wr,tablePaddingHorizontal:$r,tablePaddingVerticalMiddle:cn,tablePaddingHorizontalMiddle:Dn,tablePaddingVerticalSmall:ni,tablePaddingHorizontalSmall:kr,tableBorderColor:ir,tableHeaderTextColor:ze,tableHeaderBg:sr,tableFooterTextColor:In,tableFooterBg:Si,tableHeaderCellSplitColor:ii,tableHeaderSortBg:_e,tableHeaderSortHoverBg:wt,tableHeaderIconColor:Be.clone().setAlpha(Be.getAlpha()*ft).toRgbString(),tableHeaderIconColorHover:je.clone().setAlpha(je.getAlpha()*ft).toRgbString(),tableBodySortBg:jt,tableFixedHeaderSortActiveBg:Di,tableHeaderFilterActiveBg:He,tableFilterDropdownBg:c,tableRowHoverBg:Vt,tableSelectedRowBg:ur,tableSelectedRowHoverBg:It,zIndexTableFixed:xt,zIndexTableSticky:xt+1,tableFontSizeMiddle:rn,tableFontSizeSmall:_n,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[an(bt),M(bt),Qt(bt),Ve(bt),oc(bt),oi(bt),Z(bt),Xo(bt),Qt(bt),ac(bt),tt(bt),u(bt),tr(bt),Wl(bt),vt(bt),De(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:jt,fontSize:Vt,controlHeight:ur,colorTextPlaceholder:It}=ye,yr=new il.C(gt).onBackground(et).toHexShortString(),Wr=new il.C(ft).onBackground(et).toHexShortString(),$r=new il.C(xe).onBackground(et).toHexShortString();return{headerBg:$r,headerColor:st,headerSortActiveBg:yr,headerSortHoverBg:Wr,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:jt,footerBg:$r,footerColor:st,cellFontSize:Vt,cellFontSizeMD:Vt,cellFontSizeSM:Vt,headerSplitColor:wt,fixedHeaderSortActiveBg:yr,headerFilterHoverBg:ft,filterDropdownMenuBg:et,filterDropdownBg:et,expandIconBg:et,selectionColumnWidth:ur,stickyScrollBarBg:It,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:jt="key",rowClassName:Vt,columns:ur,children:It,childrenColumnName:yr,onChange:Wr,getPopupContainer:$r,loading:cn,expandIcon:Dn,expandable:ni,expandedRowRender:kr,expandIconColumnIndex:ir,indentSize:Si,scroll:In,sortDirections:sn,locale:An,showSorterTooltip:rn=!0,virtual:_n}=ye,ii=O.useMemo(()=>ur||zr(It),[ur,It]),Di=O.useMemo(()=>ii.some(Ua=>Ua.responsive),[ii]),He=(0,va.Z)(Di),c=O.useMemo(()=>{const Ua=new Set(Object.keys(He).filter(_s=>He[_s]));return ii.filter(_s=>!_s.responsive||_s.responsive.some(rs=>Ua.has(rs)))},[ii,He]),w=(0,Hi.Z)(ye,["className","style","columns"]),{locale:C=Ha.Z,direction:K,table:Be,renderEmpty:je,getPrefixCls:xt,getPopupContainer:bt}=O.useContext(Na.E_),Xt=(0,pa.Z)(Ut),Ar=Object.assign(Object.assign({},C.Table),An),xr=ze||di,nn=xt("table",et),Cn=xt("dropdown",sr),Xr=Object.assign({childrenColumnName:yr,expandIconColumnIndex:ir},ni),{childrenColumnName:dn="children"}=Xr,Mn=O.useMemo(()=>xr.some(Ua=>Ua==null?void 0:Ua[dn])?"nest":kr||ni&&ni.expandedRowRender?"row":null,[xr]),qn={body:O.useRef()},xi=O.useMemo(()=>typeof jt=="function"?jt:Ua=>Ua==null?void 0:Ua[jt],[jt]),[yn]=Js(xr,dn,xi),fi={},Ji=function(Ua,_s){let rs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Bs,wo,Ro;const po=Object.assign(Object.assign({},fi),Ua);rs&&((Bs=fi.resetPagination)===null||Bs===void 0||Bs.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)),In&&In.scrollToFirstRowOnChange!==!1&&qn.body.current&&(0,ha.Z)(0,{getContainer:()=>qn.body.current}),Wr==null||Wr(po.pagination,po.filters,po.sorter,{currentDataSource:vo(Ya(xr,po.sorterStates,dn),po.filterStates),action:_s})},$i=(Ua,_s)=>{Ji({sorter:Ua,sorterStates:_s},"sort",!1)},[Sa,Ia,Xi,Ta]=ys({prefixCls:nn,mergedColumns:c,onSorterChange:$i,sortDirections:sn||["ascend","descend"],tableLocale:Ar,showSorterTooltip:rn}),Ba=O.useMemo(()=>Ya(xr,Ia,dn),[xr,Ia]);fi.sorter=Ta(),fi.sorterStates=Ia;const ai=(Ua,_s)=>{Ji({filters:Ua,filterStates:_s},"filter",!0)},[Ka,ls,aa]=Dl({prefixCls:nn,locale:Ar,dropdownPrefixCls:Cn,mergedColumns:c,onFilterChange:ai,getPopupContainer:$r||bt}),da=vo(Ba,ls);fi.filters=aa,fi.filterStates=ls;const wa=O.useMemo(()=>{const Ua={};return Object.keys(aa).forEach(_s=>{aa[_s]!==null&&(Ua[_s]=aa[_s])}),Object.assign(Object.assign({},Xi),{filters:Ua})},[Xi,aa]),[$a]=Cs(wa),us=(Ua,_s)=>{Ji({pagination:Object.assign(Object.assign({},fi.pagination),{current:Ua,pageSize:_s})},"paginate")},[ca,Ts]=yl(da.length,us,_e);fi.pagination=_e===!1?{}:_a(ca,_e),fi.resetPagination=Ts;const bs=O.useMemo(()=>{if(_e===!1||!ca.pageSize)return da;const{current:Ua=1,total:_s,pageSize:rs=Ao}=ca;return da.length<_s?da.length>rs?da.slice((Ua-1)*rs,Ua*rs):da:da.slice((Ua-1)*rs,Ua*rs)},[!!_e,da,ca&&ca.current,ca&&ca.pageSize,ca&&ca.total]),[Hs,Zs]=Do({prefixCls:nn,data:da,pageData:bs,getRowKey:xi,getRecordByKey:yn,expandType:Mn,childrenColumnName:dn,locale:Ar,getPopupContainer:$r||bt},wt),Xs=(Ua,_s,rs)=>{let Bs;return typeof Vt=="function"?Bs=T()(Vt(Ua,_s,rs)):Bs=T()(Vt),T()({[`${nn}-row-selected`]:Zs.has(xi(Ua,_s))},Bs)};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(Ua=>$a(Hs(Ka(Sa(Ua)))),[Sa,Ka,Hs]);let $o,ho;if(_e!==!1&&(ca!=null&&ca.total)){let Ua;ca.size?Ua=ca.size:Ua=Xt==="small"||Xt==="middle"?"small":void 0;const _s=wo=>O.createElement(Is.Z,Object.assign({},ca,{className:T()(`${nn}-pagination ${nn}-pagination-${wo}`,ca.className),size:Ua})),rs=K==="rtl"?"left":"right",{position:Bs}=ca;if(Bs!==null&&Array.isArray(Bs)){const wo=Bs.find(Cl=>Cl.includes("top")),Ro=Bs.find(Cl=>Cl.includes("bottom")),po=Bs.every(Cl=>`${Cl}`=="none");!wo&&!Ro&&!po&&(ho=_s(rs)),wo&&($o=_s(wo.toLowerCase().replace("top",""))),Ro&&(ho=_s(Ro.toLowerCase().replace("bottom","")))}else ho=_s(rs)}let oo;typeof cn=="boolean"?oo={spinning:cn}:typeof cn=="object"&&(oo=Object.assign({spinning:!0},cn));const[ro,$s]=Rn(nn),[,ts]=(0,Fa.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=An&&An.emptyText||(je==null?void 0:je("Table"))||O.createElement(ci.Z,{componentName:"Table"}),Jo=_n?El:qs,fu={},Iu=O.useMemo(()=>{const{fontSize:Ua,lineHeight:_s,padding:rs,paddingXS:Bs,paddingSM:wo}=ts,Ro=Math.floor(Ua*_s);switch(Xt){case"large":return rs*2+Ro;case"small":return Bs*2+Ro;default:return wo*2+Ro}},[ts,Xt]);return _n&&(fu.listItemHeight=Iu),ro(O.createElement("div",{ref:xe,className:al,style:$l},O.createElement(Wa.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:bs,rowKey:xi,rowClassName:Xs,emptyText:Vo,internalHooks:Fe,internalRefs:qn,transformColumns:Wo})),ho)))};var Br=O.forwardRef(pn);const xn=(ye,xe)=>{const et=O.useRef(0);return et.current+=1,O.createElement(Br,Object.assign({},ye,{ref:xe,_renderTimes:et.current}))},Nn=O.forwardRef(xn);Nn.SELECTION_COLUMN=Ja,Nn.EXPAND_COLUMN=we,Nn.SELECTION_ALL=as,Nn.SELECTION_INVERT=js,Nn.SELECTION_NONE=Ea,Nn.Column=La,Nn.ColumnGroup=bi,Nn.Summary=P;var er=Nn,nr=er},33166:function(bn,Wt,g){"use strict";g.d(Wt,{i:function(){return we}});const we=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var we=g(33166);function Fe(se,ke){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),ke(Y,{lightColor:O,lightBorderColor:I,darkColor:n,textColor:o}))},{})}},10777:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return le}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=function(J,be){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&be.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce},O=J=>{var{prefixCls:be,className:Ce,color:Le="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(ke.E_),_=ve("timeline",be),N=Fe()(`${_}-item`,{[`${_}-item-pending`]:me},Ce),X=/blue|red|green|gray/.test(Le||"")?void 0:Le,pe=Fe()(`${_}-item-head`,{[`${_}-item-head-custom`]:!!ae,[`${_}-item-head-${Le}`]:!X});return se.createElement("li",Object.assign({},he,{className:N}),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(26407),n=g(58617),o=function(J,be){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&be.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce},p=J=>{var{prefixCls:be,className:Ce,pending:Le=!1,children:ae,items:me,rootClassName:T,reverse:Ee=!1,direction:oe,hashId:he,pendingDot:ve,mode:_=""}=J,N=o(J,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const X=(Ze,Er)=>_==="alternate"?Ze==="right"?`${be}-item-right`:Ze==="left"?`${be}-item-left`:Er%2===0?`${be}-item-left`:`${be}-item-right`:_==="left"?`${be}-item-left`:_==="right"?`${be}-item-right`:Ze==="right"?`${be}-item-right`:"",pe=(0,I.Z)(me||[]),qe=typeof Le=="boolean"?null:Le;Le&&pe.push({pending:!!Le,dot:ve||se.createElement(n.Z,null),children:qe}),Ee&&pe.reverse();const at=pe.length,rt=`${be}-item-last`,Rt=pe.filter(Ze=>!!Ze).map((Ze,Er)=>{var Cr;const Kr=Er===at-2?rt:"",_r=Er===at-1?rt:"",{className:Ue}=Ze,St=o(Ze,["className"]);return se.createElement(O,Object.assign({},St,{className:Fe()([Ue,!Ee&&Le?Kr:_r,X((Cr=Ze==null?void 0:Ze.position)!==null&&Cr!==void 0?Cr:"",Er)]),key:(Ze==null?void 0:Ze.key)||Er}))}),lr=pe.some(Ze=>!!(Ze!=null&&Ze.label)),Jt=Fe()(be,{[`${be}-pending`]:!!Le,[`${be}-reverse`]:!!Ee,[`${be}-${_}`]:!!_&&!lr,[`${be}-label`]:lr,[`${be}-rtl`]:oe==="rtl"},Ce,T,he);return se.createElement("ul",Object.assign({},N,{className:Jt}),Rt)},a=g(11592);function A(J,be){return J&&Array.isArray(J)?J:(0,a.Z)(be).map(Ce=>{var Le,ae;return Object.assign({children:(ae=(Le=Ce==null?void 0:Ce.props)===null||Le===void 0?void 0:Le.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 Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&be.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce};const B=J=>{const{getPrefixCls:be,direction:Ce,timeline:Le}=se.useContext(ke.E_),{prefixCls:ae,children:me,items:T,className:Ee,style:oe}=J,he=ee(J,["prefixCls","children","items","className","style"]),ve=be("timeline",ae),[_,N]=V(ve),X=m(T,me);return _(se.createElement(p,Object.assign({},he,{className:Fe()(Le==null?void 0:Le.className,Ee),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),oe),prefixCls:ve,direction:Ce,items:X,hashId:N})))};B.Item=O;var z=B,le=z},6848:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Le}});var we=g(59301),Fe=g(92310),se=g.n(Fe),ke=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:N,paddingSM:X,paddingXS:pe,tooltipRadiusOuter:qe}=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:N,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,rt)=>{let{darkColor:Rt}=rt;return{[`&${me}-${at}`]:{[`${me}-inner`]:{backgroundColor:Rt},[`${me}-arrow`]:{"--antd-arrow-background-color":Rt}}}})),{"&-rtl":{direction:"rtl"}})},(0,A.ZP)((0,S.TS)(ae,{borderRadiusOuter:qe}),{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,N=(0,S.TS)(Ee,{tooltipMaxWidth:250,tooltipColor:he,tooltipBorderRadius:oe,tooltipBg:ve,tooltipRadiusOuter:_>4?4:_});return[F(N),(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 z=ae=>{const{prefixCls:me,className:T,placement:Ee="top",title:oe,color:he,overlayInnerStyle:ve}=ae,{getPrefixCls:_}=we.useContext(n.E_),N=_("tooltip",me),[X,pe]=H(N,!0),qe=ee(N,he),at=qe.arrowStyle,rt=Object.assign(Object.assign({},ve),qe.overlayStyle),Rt=se()(pe,N,`${N}-pure`,`${N}-placement-${Ee}`,T,qe.className);return X(we.createElement("div",{className:Rt,style:at},we.createElement("div",{className:`${N}-arrow`}),we.createElement(ke.G,Object.assign({},ae,{className:pe,prefixCls:N,overlayInnerStyle:rt}),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:N,overlayInnerStyle:X,children:pe,afterOpenChange:qe,afterVisibleChange:at,destroyTooltipOnHide:rt,arrow:Rt=!0,title:lr,overlay:Jt,builtinPlacements:Ze,arrowPointAtCenter:Er=!1,autoAdjustOverflow:Cr=!0}=ae,Kr=!!Rt,[,_r]=(0,L.Z)(),{getPopupContainer:Ue,getPrefixCls:St,direction:G}=we.useContext(n.E_),v=we.useRef(null),f=()=>{var Yt;(Yt=v.current)===null||Yt===void 0||Yt.forceAlign()};we.useImperativeHandle(me,()=>({forceAlign:f,forcePopupAlign:()=>{f()}}));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}),W=!lr&&!Jt&&lr!==0,P=Yt=>{var Gt,nt;fe(W?!1:Yt),W||((Gt=ae.onOpenChange)===null||Gt===void 0||Gt.call(ae,Yt),(nt=ae.onVisibleChange)===null||nt===void 0||nt.call(ae,Yt))},te=we.useMemo(()=>{var Yt,Gt;let nt=Er;return typeof Rt=="object"&&(nt=(Gt=(Yt=Rt.pointAtCenter)!==null&&Yt!==void 0?Yt:Rt.arrowPointAtCenter)!==null&&Gt!==void 0?Gt:Er),Ze||(0,O.Z)({arrowPointAtCenter:nt,autoAdjustOverflow:Cr,arrowWidth:Kr?_r.sizePopupArrow:0,borderRadius:_r.borderRadius,offset:_r.marginXXS,visibleFirst:!0})},[Er,Rt,Ze,_r]),Ie=we.useMemo(()=>lr===0?lr:Jt||lr||"",[Jt,lr]),Te=we.createElement(o.BR,null,typeof Ie=="function"?Ie():Ie),{getPopupContainer:Se,placement:Ge="top",mouseEnterDelay:dt=.1,mouseLeaveDelay:Ke=.1,overlayStyle:Xe,rootClassName:At}=ae,We=le(ae,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),$e=St("tooltip",oe),Bt=St(),Kt=ae["data-popover-inject"];let Mt=D;!("open"in ae)&&!("visible"in ae)&&W&&(Mt=!1);const br=be((0,I.l$)(pe)&&!(0,I.M2)(pe)?pe:we.createElement("span",null,pe),$e),vr=br.props,re=!vr.className||typeof vr.className=="string"?se()(vr.className,he||`${$e}-open`):vr.className,[ue,rr]=H($e,!Kt),Me=ee($e,N),ot=Me.arrowStyle,Zr=Object.assign(Object.assign({},X),Me.overlayStyle),Tt=se()(_,{[`${$e}-rtl`]:G==="rtl"},Me.className,At,rr);return ue(we.createElement(ke.Z,Object.assign({},We,{showArrow:Kr,placement:Ge,mouseEnterDelay:dt,mouseLeaveDelay:Ke,prefixCls:$e,overlayClassName:Tt,overlayStyle:Object.assign(Object.assign({},ot),Xe),getTooltipContainer:Se||ve||Ue,ref:v,builtinPlacements:te,overlay:Te,visible:Mt,onVisibleChange:P,afterVisibleChange:qe!=null?qe:at,overlayInnerStyle:Zr,arrowContent:we.createElement("span",{className:`${$e}-arrow-content`}),motion:{motionName:(0,Y.m)(Bt,"zoom-big-fast",ae.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!rt}),Mt?(0,I.Tm)(br,{className:re}):br))});Ce._InternalPanelDoNotUseOrYouWillBeFired=z;var Le=Ce},17574:function(bn,Wt,g){"use strict";g.d(Wt,{default:function(){return N}});var we=g(23130),Fe=g(26407),se=g(52671),ke=g(8657),ie=g(92413),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,qe){return Y.createElement(n.Z,(0,ie.Z)({},pe,{ref:qe,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:qe,prefixCls:at,indent:rt,direction:Rt="ltr"}=X,lr=Rt==="ltr"?"left":"right",Jt=Rt==="ltr"?"right":"left",Ze={[lr]:-qe*rt+ee,[Jt]:0};switch(pe){case-1:Ze.top=-3;break;case 1:Ze.bottom=-3;break;default:Ze.bottom=-3,Ze[lr]=rt+ee;break}return Y.createElement("div",{style:Ze,className:`${at}-drop-indicator`})}var z=g(71997),J=Y.forwardRef((X,pe)=>{const{getPrefixCls:qe,direction:at,virtual:rt,tree:Rt}=Y.useContext($.E_),{prefixCls:lr,className:Jt,showIcon:Ze=!1,showLine:Er,switcherIcon:Cr,blockNode:Kr=!1,children:_r,checkable:Ue=!1,selectable:St=!0,draggable:G,motion:v,style:f}=X,D=qe("tree",lr),fe=qe(),W=v!=null?v:Object.assign(Object.assign({},(0,H.Z)(fe)),{motionAppear:!1}),P=Object.assign(Object.assign({},X),{checkable:Ue,selectable:St,showIcon:Ze,motion:W,blockNode:Kr,showLine:!!Er,dropIndicatorRender:B}),[te,Ie]=(0,V.ZP)(D),Te=Y.useMemo(()=>{if(!G)return!1;let Ge={};switch(typeof G){case"function":Ge.nodeDraggable=G;break;case"object":Ge=Object.assign({},G);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||Y.createElement(F.Z,null)),Ge},[G]),Se=Ge=>Y.createElement(z.Z,{prefixCls:D,switcherIcon:Cr,treeNodeProps:Ge,showLine:Er});return te(Y.createElement(we.Z,Object.assign({itemHeight:20,ref:pe,virtual:rt},P,{style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),f),prefixCls:D,className:A()({[`${D}-icon-hide`]:!Ze,[`${D}-block-node`]:Kr,[`${D}-unselectable`]:!St,[`${D}-rtl`]:at==="rtl"},Rt==null?void 0:Rt.className,Jt,Ie),direction:at,checkable:Ue&&Y.createElement("span",{className:`${D}-checkbox-inner`}),selectable:St,switcherIcon:Se,draggable:Te}),_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 qe(at){const{key:rt,children:Rt}=at;pe(rt,at)!==!1&&Ce(Rt||[],pe)}X.forEach(qe)}function Le(X){let{treeData:pe,expandedKeys:qe,startKey:at,endKey:rt}=X;const Rt=[];let lr=be.None;if(at&&at===rt)return[at];if(!at||!rt)return[];function Jt(Ze){return Ze===at||Ze===rt}return Ce(pe,Ze=>{if(lr===be.End)return!1;if(Jt(Ze)){if(Rt.push(Ze),lr===be.None)lr=be.Start;else if(lr===be.Start)return lr=be.End,!1}else lr===be.Start&&Rt.push(Ze);return qe.includes(Ze)}),Rt}function ae(X,pe){const qe=(0,Fe.Z)(pe),at=[];return Ce(X,(rt,Rt)=>{const lr=qe.indexOf(rt);return lr!==-1&&(at.push(Rt),qe.splice(lr,1)),!!qe.length}),at}var me=function(X,pe){var qe={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(qe[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(X);rt<at.length;rt++)pe.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[rt])&&(qe[at[rt]]=X[at[rt]]);return qe};function T(X){const{isLeaf:pe,expanded:qe}=X;return pe?Y.createElement(se.Z,null):qe?Y.createElement(ke.Z,null):Y.createElement(p,null)}function Ee(X){let{treeData:pe,children:qe}=X;return pe||(0,S.zn)(qe)}const oe=(X,pe)=>{var{defaultExpandAll:qe,defaultExpandParent:at,defaultExpandedKeys:rt}=X,Rt=me(X,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const lr=Y.useRef(),Jt=Y.useRef(),Ze=()=>{const{keyEntities:Te}=(0,S.I8)(Ee(Rt));let Se;return qe?Se=Object.keys(Te):at?Se=(0,m.r7)(Rt.expandedKeys||rt||[],Te):Se=Rt.expandedKeys||rt,Se},[Er,Cr]=Y.useState(Rt.selectedKeys||Rt.defaultSelectedKeys||[]),[Kr,_r]=Y.useState(()=>Ze());Y.useEffect(()=>{"selectedKeys"in Rt&&Cr(Rt.selectedKeys)},[Rt.selectedKeys]),Y.useEffect(()=>{"expandedKeys"in Rt&&_r(Rt.expandedKeys)},[Rt.expandedKeys]);const Ue=(Te,Se)=>{var Ge;return"expandedKeys"in Rt||_r(Te),(Ge=Rt.onExpand)===null||Ge===void 0?void 0:Ge.call(Rt,Te,Se)},St=(Te,Se)=>{var Ge;const{multiple:dt}=Rt,{node:Ke,nativeEvent:Xe}=Se,{key:At=""}=Ke,We=Ee(Rt),$e=Object.assign(Object.assign({},Se),{selected:!0}),Bt=(Xe==null?void 0:Xe.ctrlKey)||(Xe==null?void 0:Xe.metaKey),Kt=Xe==null?void 0:Xe.shiftKey;let Mt;dt&&Bt?(Mt=Te,lr.current=At,Jt.current=Mt,$e.selectedNodes=ae(We,Mt)):dt&&Kt?(Mt=Array.from(new Set([].concat((0,Fe.Z)(Jt.current||[]),(0,Fe.Z)(Le({treeData:We,expandedKeys:Kr,startKey:At,endKey:lr.current}))))),$e.selectedNodes=ae(We,Mt)):(Mt=[At],lr.current=At,Jt.current=Mt,$e.selectedNodes=ae(We,Mt)),(Ge=Rt.onSelect)===null||Ge===void 0||Ge.call(Rt,Mt,$e),"selectedKeys"in Rt||Cr(Mt)},{getPrefixCls:G,direction:v}=Y.useContext($.E_),{prefixCls:f,className:D,showIcon:fe=!0,expandAction:W="click"}=Rt,P=me(Rt,["prefixCls","className","showIcon","expandAction"]),te=G("tree",f),Ie=A()(`${te}-directory`,{[`${te}-directory-rtl`]:v==="rtl"},D);return Y.createElement(J,Object.assign({icon:T,ref:pe,blockNode:!0},P,{showIcon:fe,expandAction:W,prefixCls:te,className:Ie,expandedKeys:Kr,selectedKeys:Er,onSelect:St,onExpand:Ue}))};var ve=Y.forwardRef(oe);const _=J;_.DirectoryTree=ve,_.TreeNode=we.O;var N=_},20648:function(bn,Wt,g){"use strict";g.d(Wt,{TM:function(){return a},Yk:function(){return p}});var we=g(93083),Fe=g(98447),se=g(17313),ke=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}};Wt.ZP=(0,Y.Z)("Tree",(A,m)=>{let{prefixCls:S}=m;return[{[A.componentCls]:(0,Fe.C2)(`${S}-checkbox`,A)},p(S,A),(0,ke.Z)(A)]},A=>{const{colorTextLightSolid:m,colorPrimary:S}=A;return Object.assign(Object.assign({},a(A)),{directoryNodeSelectedColor:m,directoryNodeSelectedBg:S})})},71997:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return $}});var we=g(92413),Fe=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"},ke=se,ie=g(7657),Y=function(H,V){return Fe.createElement(ie.Z,(0,we.Z)({},H,{ref:V,icon:ke}))},O=Fe.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:z,expanded:le,loading:J}=ee;if(J)return Fe.createElement(o.Z,{className:`${H}-switcher-loading-icon`});let be;if(B&&typeof B=="object"&&(be=B.showLeafIcon),z){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?Fe.createElement(n.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement("span",{className:`${H}-switcher-leaf-line`})}const Ce=`${H}-switcher-icon`,Le=typeof V=="function"?V(ee):V;return(0,m.l$)(Le)?(0,m.Tm)(Le,{className:A()(Le.props.className||"",Ce)}):Le!==void 0?Le:B?le?Fe.createElement(L.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement(p.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement(I,{className:Ce})}},86251:function(bn,Wt){"use strict";Wt.byteLength=O,Wt.toByteArray=n,Wt.fromByteArray=p;for(var g=[],we=[],Fe=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke=0,ie=se.length;ke<ie;++ke)g[ke]=se[ke],we[se.charCodeAt(ke)]=ke;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 Fe(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,Wt,g){"use strict";var we;var Fe=g(86251),se=g(67467),ke=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Wt.lW=I,we=H,Wt.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 G=new Uint8Array(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,Uint8Array.prototype),Object.setPrototypeOf(G,v),G.foo()===42}catch(f){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(G){if(G>ie)throw new RangeError('The value "'+G+'" is invalid for option "size"');var v=new Uint8Array(G);return Object.setPrototypeOf(v,I.prototype),v}function I(G,v,f){if(typeof G=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(G)}return n(G,v,f)}I.poolSize=8192;function n(G,v,f){if(typeof G=="string")return a(G,v);if(ArrayBuffer.isView(G))return m(G);if(G==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(_r(G,ArrayBuffer)||G&&_r(G.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_r(G,SharedArrayBuffer)||G&&_r(G.buffer,SharedArrayBuffer)))return S(G,v,f);if(typeof G=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=G.valueOf&&G.valueOf();if(D!=null&&D!==G)return I.from(D,v,f);var fe=$(G);if(fe)return fe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof G[Symbol.toPrimitive]=="function")return I.from(G[Symbol.toPrimitive]("string"),v,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}I.from=function(G,v,f){return n(G,v,f)},Object.setPrototypeOf(I.prototype,Uint8Array.prototype),Object.setPrototypeOf(I,Uint8Array);function o(G){if(typeof G!="number")throw new TypeError('"size" argument must be of type number');if(G<0)throw new RangeError('The value "'+G+'" is invalid for option "size"')}function L(G,v,f){return o(G),G<=0?O(G):v!==void 0?typeof f=="string"?O(G).fill(v,f):O(G).fill(v):O(G)}I.alloc=function(G,v,f){return L(G,v,f)};function p(G){return o(G),O(G<0?0:F(G)|0)}I.allocUnsafe=function(G){return p(G)},I.allocUnsafeSlow=function(G){return p(G)};function a(G,v){if((typeof v!="string"||v==="")&&(v="utf8"),!I.isEncoding(v))throw new TypeError("Unknown encoding: "+v);var f=V(G,v)|0,D=O(f),fe=D.write(G,v);return fe!==f&&(D=D.slice(0,fe)),D}function A(G){for(var v=G.length<0?0:F(G.length)|0,f=O(v),D=0;D<v;D+=1)f[D]=G[D]&255;return f}function m(G){if(_r(G,Uint8Array)){var v=new Uint8Array(G);return S(v.buffer,v.byteOffset,v.byteLength)}return A(G)}function S(G,v,f){if(v<0||G.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(G.byteLength<v+(f||0))throw new RangeError('"length" is outside of buffer bounds');var D;return v===void 0&&f===void 0?D=new Uint8Array(G):f===void 0?D=new Uint8Array(G,v):D=new Uint8Array(G,v,f),Object.setPrototypeOf(D,I.prototype),D}function $(G){if(I.isBuffer(G)){var v=F(G.length)|0,f=O(v);return f.length===0||G.copy(f,0,0,v),f}if(G.length!==void 0)return typeof G.length!="number"||Ue(G.length)?O(0):A(G);if(G.type==="Buffer"&&Array.isArray(G.data))return A(G.data)}function F(G){if(G>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return G|0}function H(G){return+G!=G&&(G=0),I.alloc(+G)}I.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==I.prototype},I.compare=function(v,f){if(_r(v,Uint8Array)&&(v=I.from(v,v.offset,v.byteLength)),_r(f,Uint8Array)&&(f=I.from(f,f.offset,f.byteLength)),!I.isBuffer(v)||!I.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===f)return 0;for(var D=v.length,fe=f.length,W=0,P=Math.min(D,fe);W<P;++W)if(v[W]!==f[W]){D=v[W],fe=f[W];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,f){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(f===void 0)for(f=0,D=0;D<v.length;++D)f+=v[D].length;var fe=I.allocUnsafe(f),W=0;for(D=0;D<v.length;++D){var P=v[D];if(_r(P,Uint8Array))W+P.length>fe.length?I.from(P).copy(fe,W):Uint8Array.prototype.set.call(fe,P,W);else if(I.isBuffer(P))P.copy(fe,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=P.length}return fe};function V(G,v){if(I.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||_r(G,ArrayBuffer))return G.byteLength;if(typeof G!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);var f=G.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&f===0)return 0;for(var fe=!1;;)switch(v){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return Jt(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return Cr(G).length;default:if(fe)return D?-1:Jt(G).length;v=(""+v).toLowerCase(),fe=!0}}I.byteLength=V;function ee(G,v,f){var D=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,v>>>=0,f<=v))return"";for(G||(G="utf8");;)switch(G){case"hex":return _(this,v,f);case"utf8":case"utf-8":return T(this,v,f);case"ascii":return he(this,v,f);case"latin1":case"binary":return ve(this,v,f);case"base64":return me(this,v,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,v,f);default:if(D)throw new TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),D=!0}}I.prototype._isBuffer=!0;function B(G,v,f){var D=G[v];G[v]=G[f],G[f]=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 f=0;f<v;f+=2)B(this,f,f+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 f=0;f<v;f+=4)B(this,f,f+3),B(this,f+1,f+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 f=0;f<v;f+=8)B(this,f,f+7),B(this,f+1,f+6),B(this,f+2,f+5),B(this,f+3,f+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="",f=Wt.h2;return v=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(v+=" ... "),"<Buffer "+v+">"},ke&&(I.prototype[ke]=I.prototype.inspect),I.prototype.compare=function(v,f,D,fe,W){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(f===void 0&&(f=0),D===void 0&&(D=v?v.length:0),fe===void 0&&(fe=0),W===void 0&&(W=this.length),f<0||D>v.length||fe<0||W>this.length)throw new RangeError("out of range index");if(fe>=W&&f>=D)return 0;if(fe>=W)return-1;if(f>=D)return 1;if(f>>>=0,D>>>=0,fe>>>=0,W>>>=0,this===v)return 0;for(var P=W-fe,te=D-f,Ie=Math.min(P,te),Te=this.slice(fe,W),Se=v.slice(f,D),Ge=0;Ge<Ie;++Ge)if(Te[Ge]!==Se[Ge]){P=Te[Ge],te=Se[Ge];break}return P<te?-1:te<P?1:0};function z(G,v,f,D,fe){if(G.length===0)return-1;if(typeof f=="string"?(D=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,Ue(f)&&(f=fe?0:G.length-1),f<0&&(f=G.length+f),f>=G.length){if(fe)return-1;f=G.length-1}else if(f<0)if(fe)f=0;else return-1;if(typeof v=="string"&&(v=I.from(v,D)),I.isBuffer(v))return v.length===0?-1:le(G,v,f,D,fe);if(typeof v=="number")return v=v&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(G,v,f):Uint8Array.prototype.lastIndexOf.call(G,v,f):le(G,[v],f,D,fe);throw new TypeError("val must be string, number or Buffer")}function le(G,v,f,D,fe){var W=1,P=G.length,te=v.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(G.length<2||v.length<2)return-1;W=2,P/=2,te/=2,f/=2}function Ie(Ke,Xe){return W===1?Ke[Xe]:Ke.readUInt16BE(Xe*W)}var Te;if(fe){var Se=-1;for(Te=f;Te<P;Te++)if(Ie(G,Te)===Ie(v,Se===-1?0:Te-Se)){if(Se===-1&&(Se=Te),Te-Se+1===te)return Se*W}else Se!==-1&&(Te-=Te-Se),Se=-1}else for(f+te>P&&(f=P-te),Te=f;Te>=0;Te--){for(var Ge=!0,dt=0;dt<te;dt++)if(Ie(G,Te+dt)!==Ie(v,dt)){Ge=!1;break}if(Ge)return Te}return-1}I.prototype.includes=function(v,f,D){return this.indexOf(v,f,D)!==-1},I.prototype.indexOf=function(v,f,D){return z(this,v,f,D,!0)},I.prototype.lastIndexOf=function(v,f,D){return z(this,v,f,D,!1)};function J(G,v,f,D){f=Number(f)||0;var fe=G.length-f;D?(D=Number(D),D>fe&&(D=fe)):D=fe;var W=v.length;D>W/2&&(D=W/2);for(var P=0;P<D;++P){var te=parseInt(v.substr(P*2,2),16);if(Ue(te))return P;G[f+P]=te}return P}function be(G,v,f,D){return Kr(Jt(v,G.length-f),G,f,D)}function Ce(G,v,f,D){return Kr(Ze(v),G,f,D)}function Le(G,v,f,D){return Kr(Cr(v),G,f,D)}function ae(G,v,f,D){return Kr(Er(v,G.length-f),G,f,D)}I.prototype.write=function(v,f,D,fe){if(f===void 0)fe="utf8",D=this.length,f=0;else if(D===void 0&&typeof f=="string")fe=f,D=this.length,f=0;else if(isFinite(f))f=f>>>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 W=this.length-f;if((D===void 0||D>W)&&(D=W),v.length>0&&(D<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var P=!1;;)switch(fe){case"hex":return J(this,v,f,D);case"utf8":case"utf-8":return be(this,v,f,D);case"ascii":case"latin1":case"binary":return Ce(this,v,f,D);case"base64":return Le(this,v,f,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,v,f,D);default:if(P)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),P=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function me(G,v,f){return v===0&&f===G.length?Fe.fromByteArray(G):Fe.fromByteArray(G.slice(v,f))}function T(G,v,f){f=Math.min(G.length,f);for(var D=[],fe=v;fe<f;){var W=G[fe],P=null,te=W>239?4:W>223?3:W>191?2:1;if(fe+te<=f){var Ie,Te,Se,Ge;switch(te){case 1:W<128&&(P=W);break;case 2:Ie=G[fe+1],(Ie&192)===128&&(Ge=(W&31)<<6|Ie&63,Ge>127&&(P=Ge));break;case 3:Ie=G[fe+1],Te=G[fe+2],(Ie&192)===128&&(Te&192)===128&&(Ge=(W&15)<<12|(Ie&63)<<6|Te&63,Ge>2047&&(Ge<55296||Ge>57343)&&(P=Ge));break;case 4:Ie=G[fe+1],Te=G[fe+2],Se=G[fe+3],(Ie&192)===128&&(Te&192)===128&&(Se&192)===128&&(Ge=(W&15)<<18|(Ie&63)<<12|(Te&63)<<6|Se&63,Ge>65535&&Ge<1114112&&(P=Ge))}}P===null?(P=65533,te=1):P>65535&&(P-=65536,D.push(P>>>10&1023|55296),P=56320|P&1023),D.push(P),fe+=te}return oe(D)}var Ee=4096;function oe(G){var v=G.length;if(v<=Ee)return String.fromCharCode.apply(String,G);for(var f="",D=0;D<v;)f+=String.fromCharCode.apply(String,G.slice(D,D+=Ee));return f}function he(G,v,f){var D="";f=Math.min(G.length,f);for(var fe=v;fe<f;++fe)D+=String.fromCharCode(G[fe]&127);return D}function ve(G,v,f){var D="";f=Math.min(G.length,f);for(var fe=v;fe<f;++fe)D+=String.fromCharCode(G[fe]);return D}function _(G,v,f){var D=G.length;(!v||v<0)&&(v=0),(!f||f<0||f>D)&&(f=D);for(var fe="",W=v;W<f;++W)fe+=St[G[W]];return fe}function N(G,v,f){for(var D=G.slice(v,f),fe="",W=0;W<D.length-1;W+=2)fe+=String.fromCharCode(D[W]+D[W+1]*256);return fe}I.prototype.slice=function(v,f){var D=this.length;v=~~v,f=f===void 0?D:~~f,v<0?(v+=D,v<0&&(v=0)):v>D&&(v=D),f<0?(f+=D,f<0&&(f=0)):f>D&&(f=D),f<v&&(f=v);var fe=this.subarray(v,f);return Object.setPrototypeOf(fe,I.prototype),fe};function X(G,v,f){if(G%1!==0||G<0)throw new RangeError("offset is not uint");if(G+v>f)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var fe=this[v],W=1,P=0;++P<f&&(W*=256);)fe+=this[v+P]*W;return fe},I.prototype.readUintBE=I.prototype.readUIntBE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var fe=this[v+--f],W=1;f>0&&(W*=256);)fe+=this[v+--f]*W;return fe},I.prototype.readUint8=I.prototype.readUInt8=function(v,f){return v=v>>>0,f||X(v,1,this.length),this[v]},I.prototype.readUint16LE=I.prototype.readUInt16LE=function(v,f){return v=v>>>0,f||X(v,2,this.length),this[v]|this[v+1]<<8},I.prototype.readUint16BE=I.prototype.readUInt16BE=function(v,f){return v=v>>>0,f||X(v,2,this.length),this[v]<<8|this[v+1]},I.prototype.readUint32LE=I.prototype.readUInt32LE=function(v,f){return v=v>>>0,f||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,f){return v=v>>>0,f||X(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},I.prototype.readIntLE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var fe=this[v],W=1,P=0;++P<f&&(W*=256);)fe+=this[v+P]*W;return W*=128,fe>=W&&(fe-=Math.pow(2,8*f)),fe},I.prototype.readIntBE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var fe=f,W=1,P=this[v+--fe];fe>0&&(W*=256);)P+=this[v+--fe]*W;return W*=128,P>=W&&(P-=Math.pow(2,8*f)),P},I.prototype.readInt8=function(v,f){return v=v>>>0,f||X(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},I.prototype.readInt16LE=function(v,f){v=v>>>0,f||X(v,2,this.length);var D=this[v]|this[v+1]<<8;return D&32768?D|4294901760:D},I.prototype.readInt16BE=function(v,f){v=v>>>0,f||X(v,2,this.length);var D=this[v+1]|this[v]<<8;return D&32768?D|4294901760:D},I.prototype.readInt32LE=function(v,f){return v=v>>>0,f||X(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},I.prototype.readInt32BE=function(v,f){return v=v>>>0,f||X(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},I.prototype.readFloatLE=function(v,f){return v=v>>>0,f||X(v,4,this.length),se.read(this,v,!0,23,4)},I.prototype.readFloatBE=function(v,f){return v=v>>>0,f||X(v,4,this.length),se.read(this,v,!1,23,4)},I.prototype.readDoubleLE=function(v,f){return v=v>>>0,f||X(v,8,this.length),se.read(this,v,!0,52,8)},I.prototype.readDoubleBE=function(v,f){return v=v>>>0,f||X(v,8,this.length),se.read(this,v,!1,52,8)};function pe(G,v,f,D,fe,W){if(!I.isBuffer(G))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>fe||v<W)throw new RangeError('"value" argument is out of bounds');if(f+D>G.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(v,f,D,fe){if(v=+v,f=f>>>0,D=D>>>0,!fe){var W=Math.pow(2,8*D)-1;pe(this,v,f,D,W,0)}var P=1,te=0;for(this[f]=v&255;++te<D&&(P*=256);)this[f+te]=v/P&255;return f+D},I.prototype.writeUintBE=I.prototype.writeUIntBE=function(v,f,D,fe){if(v=+v,f=f>>>0,D=D>>>0,!fe){var W=Math.pow(2,8*D)-1;pe(this,v,f,D,W,0)}var P=D-1,te=1;for(this[f+P]=v&255;--P>=0&&(te*=256);)this[f+P]=v/te&255;return f+D},I.prototype.writeUint8=I.prototype.writeUInt8=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,1,255,0),this[f]=v&255,f+1},I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,65535,0),this[f]=v&255,this[f+1]=v>>>8,f+2},I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,65535,0),this[f]=v>>>8,this[f+1]=v&255,f+2},I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,4294967295,0),this[f+3]=v>>>24,this[f+2]=v>>>16,this[f+1]=v>>>8,this[f]=v&255,f+4},I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,4294967295,0),this[f]=v>>>24,this[f+1]=v>>>16,this[f+2]=v>>>8,this[f+3]=v&255,f+4},I.prototype.writeIntLE=function(v,f,D,fe){if(v=+v,f=f>>>0,!fe){var W=Math.pow(2,8*D-1);pe(this,v,f,D,W-1,-W)}var P=0,te=1,Ie=0;for(this[f]=v&255;++P<D&&(te*=256);)v<0&&Ie===0&&this[f+P-1]!==0&&(Ie=1),this[f+P]=(v/te>>0)-Ie&255;return f+D},I.prototype.writeIntBE=function(v,f,D,fe){if(v=+v,f=f>>>0,!fe){var W=Math.pow(2,8*D-1);pe(this,v,f,D,W-1,-W)}var P=D-1,te=1,Ie=0;for(this[f+P]=v&255;--P>=0&&(te*=256);)v<0&&Ie===0&&this[f+P+1]!==0&&(Ie=1),this[f+P]=(v/te>>0)-Ie&255;return f+D},I.prototype.writeInt8=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,1,127,-128),v<0&&(v=255+v+1),this[f]=v&255,f+1},I.prototype.writeInt16LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,32767,-32768),this[f]=v&255,this[f+1]=v>>>8,f+2},I.prototype.writeInt16BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,32767,-32768),this[f]=v>>>8,this[f+1]=v&255,f+2},I.prototype.writeInt32LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,2147483647,-2147483648),this[f]=v&255,this[f+1]=v>>>8,this[f+2]=v>>>16,this[f+3]=v>>>24,f+4},I.prototype.writeInt32BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[f]=v>>>24,this[f+1]=v>>>16,this[f+2]=v>>>8,this[f+3]=v&255,f+4};function qe(G,v,f,D,fe,W){if(f+D>G.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function at(G,v,f,D,fe){return v=+v,f=f>>>0,fe||qe(G,v,f,4,34028234663852886e22,-34028234663852886e22),se.write(G,v,f,D,23,4),f+4}I.prototype.writeFloatLE=function(v,f,D){return at(this,v,f,!0,D)},I.prototype.writeFloatBE=function(v,f,D){return at(this,v,f,!1,D)};function rt(G,v,f,D,fe){return v=+v,f=f>>>0,fe||qe(G,v,f,8,17976931348623157e292,-17976931348623157e292),se.write(G,v,f,D,52,8),f+8}I.prototype.writeDoubleLE=function(v,f,D){return rt(this,v,f,!0,D)},I.prototype.writeDoubleBE=function(v,f,D){return rt(this,v,f,!1,D)},I.prototype.copy=function(v,f,D,fe){if(!I.isBuffer(v))throw new TypeError("argument should be a Buffer");if(D||(D=0),!fe&&fe!==0&&(fe=this.length),f>=v.length&&(f=v.length),f||(f=0),fe>0&&fe<D&&(fe=D),fe===D||v.length===0||this.length===0)return 0;if(f<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-f<fe-D&&(fe=v.length-f+D);var W=fe-D;return this===v&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,D,fe):Uint8Array.prototype.set.call(v,this.subarray(D,fe),f),W},I.prototype.fill=function(v,f,D,fe){if(typeof v=="string"){if(typeof f=="string"?(fe=f,f=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 W=v.charCodeAt(0);(fe==="utf8"&&W<128||fe==="latin1")&&(v=W)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(f<0||this.length<f||this.length<D)throw new RangeError("Out of range index");if(D<=f)return this;f=f>>>0,D=D===void 0?this.length:D>>>0,v||(v=0);var P;if(typeof v=="number")for(P=f;P<D;++P)this[P]=v;else{var te=I.isBuffer(v)?v:I.from(v,fe),Ie=te.length;if(Ie===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(P=0;P<D-f;++P)this[P+f]=te[P%Ie]}return this};var Rt=/[^+/0-9A-Za-z-_]/g;function lr(G){if(G=G.split("=")[0],G=G.trim().replace(Rt,""),G.length<2)return"";for(;G.length%4!==0;)G=G+"=";return G}function Jt(G,v){v=v||1/0;for(var f,D=G.length,fe=null,W=[],P=0;P<D;++P){if(f=G.charCodeAt(P),f>55295&&f<57344){if(!fe){if(f>56319){(v-=3)>-1&&W.push(239,191,189);continue}else if(P+1===D){(v-=3)>-1&&W.push(239,191,189);continue}fe=f;continue}if(f<56320){(v-=3)>-1&&W.push(239,191,189),fe=f;continue}f=(fe-55296<<10|f-56320)+65536}else fe&&(v-=3)>-1&&W.push(239,191,189);if(fe=null,f<128){if((v-=1)<0)break;W.push(f)}else if(f<2048){if((v-=2)<0)break;W.push(f>>6|192,f&63|128)}else if(f<65536){if((v-=3)<0)break;W.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((v-=4)<0)break;W.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return W}function Ze(G){for(var v=[],f=0;f<G.length;++f)v.push(G.charCodeAt(f)&255);return v}function Er(G,v){for(var f,D,fe,W=[],P=0;P<G.length&&!((v-=2)<0);++P)f=G.charCodeAt(P),D=f>>8,fe=f%256,W.push(fe),W.push(D);return W}function Cr(G){return Fe.toByteArray(lr(G))}function Kr(G,v,f,D){for(var fe=0;fe<D&&!(fe+f>=v.length||fe>=G.length);++fe)v[fe+f]=G[fe];return fe}function _r(G,v){return G instanceof v||G!=null&&G.constructor!=null&&G.constructor.name!=null&&G.constructor.name===v.name}function Ue(G){return G!==G}var St=function(){for(var G="0123456789abcdef",v=new Array(256),f=0;f<16;++f)for(var D=f*16,fe=0;fe<16;++fe)v[D+fe]=G[f]+G[fe];return v}()},64018:function(){var bn,Wt,g,we=!1,Fe,se;window.PR_SHOULD_USE_CONTINUATION=!0;var ke,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",z="com",le="typ",J="lit",be="pun",Ce="pln",Le="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(G){for(var v=0,f=!1,D=!1,fe=0,W=G.length;fe<W;++fe){var P=G[fe];if(P.ignoreCase)D=!0;else if(/[a-z]/i.test(P.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){f=!0,D=!1;break}}var te={b:8,t:9,n:10,v:11,f:12,r:13};function Ie(Ke){var Xe=Ke.charCodeAt(0);if(Xe!==92)return Xe;var At=Ke.charAt(1);return Xe=te[At],Xe||("0"<=At&&At<="7"?parseInt(Ke.substring(1),8):At==="u"||At==="x"?parseInt(Ke.substring(2),16):Ke.charCodeAt(1))}function Te(Ke){if(Ke<32)return(Ke<16?"\\x0":"\\x")+Ke.toString(16);var Xe=String.fromCharCode(Ke);return Xe==="\\"||Xe==="-"||Xe==="]"||Xe==="^"?"\\"+Xe:Xe}function Se(Ke){var Xe=Ke.substring(1,Ke.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")),At=[],We=Xe[0]==="^",$e=["["];We&&$e.push("^");for(var Bt=We?1:0,Kt=Xe.length;Bt<Kt;++Bt){var Mt=Xe[Bt];if(/\\[bdsw]/i.test(Mt))$e.push(Mt);else{var br=Ie(Mt),vr;Bt+2<Kt&&Xe[Bt+1]==="-"?(vr=Ie(Xe[Bt+2]),Bt+=2):vr=br,At.push([br,vr]),vr<65||br>122||(vr<65||br>90||At.push([Math.max(65,br)|32,Math.min(vr,90)|32]),vr<97||br>122||At.push([Math.max(97,br)&-33,Math.min(vr,122)&-33]))}}At.sort(function(Me,ot){return Me[0]-ot[0]||ot[1]-Me[1]});for(var re=[],ue=[],Bt=0;Bt<At.length;++Bt){var rr=At[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];$e.push(Te(rr[0])),rr[1]>rr[0]&&(rr[1]+1>rr[0]&&$e.push("-"),$e.push(Te(rr[1])))}return $e.push("]"),$e.join("")}function Ge(Ke){for(var Xe=Ke.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")),At=Xe.length,We=[],$e=0,Bt=0;$e<At;++$e){var Kt=Xe[$e];if(Kt==="(")++Bt;else if(Kt.charAt(0)==="\\"){var Mt=+Kt.substring(1);Mt&&(Mt<=Bt?We[Mt]=-1:Xe[$e]=Te(Mt))}}for(var $e=1;$e<We.length;++$e)We[$e]===-1&&(We[$e]=++v);for(var $e=0,Bt=0;$e<At;++$e){var Kt=Xe[$e];if(Kt==="(")++Bt,We[Bt]||(Xe[$e]="(?:");else if(Kt.charAt(0)==="\\"){var Mt=+Kt.substring(1);Mt&&Mt<=Bt&&(Xe[$e]="\\"+We[Mt])}}for(var $e=0;$e<At;++$e)Xe[$e]==="^"&&Xe[$e+1]!=="^"&&(Xe[$e]="");if(Ke.ignoreCase&&f)for(var $e=0;$e<At;++$e){var Kt=Xe[$e],br=Kt.charAt(0);Kt.length>=2&&br==="["?Xe[$e]=Se(Kt):br!=="\\"&&(Xe[$e]=Kt.replace(/[a-zA-Z]/g,function(ue){var rr=ue.charCodeAt(0);return"["+String.fromCharCode(rr&-33,rr|32)+"]"}))}return Xe.join("")}for(var dt=[],fe=0,W=G.length;fe<W;++fe){var P=G[fe];if(P.global||P.multiline)throw new Error(""+P);dt.push("(?:"+Ge(P)+")")}return new RegExp(dt.join("|"),D?"gi":"g")}function _(G,v){var f=/(?:^|\s)nocode(?:\s|$)/,D=[],fe=0,W=[],P=0;function te(Ie){var Te=Ie.nodeType;if(Te==1){if(f.test(Ie.className))return;for(var Se=Ie.firstChild;Se;Se=Se.nextSibling)te(Se);var Ge=Ie.nodeName.toLowerCase();(Ge==="br"||Ge==="li")&&(D[P]=`
|
|
|
`,W[P<<1]=fe++,W[P++<<1|1]=Ie)}else if(Te==3||Te==4){var dt=Ie.nodeValue;dt.length&&(v?dt=dt.replace(/\r\n?/g,`
|
|
|
`):dt=dt.replace(/[ \t\r\n]+/g," "),D[P]=dt,W[P<<1]=fe,fe+=dt.length,W[P++<<1|1]=Ie)}}return te(G),{sourceCode:D.join("").replace(/\n$/,""),spans:W}}function N(G,v,f,D,fe){if(f){var W={sourceNode:G,pre:1,langExtension:null,numberLines:null,sourceCode:f,spans:null,basePos:v,decorations:null};D(W),fe.push.apply(fe,W.decorations)}}var X=/\S/;function pe(G){for(var v=void 0,f=G.firstChild;f;f=f.nextSibling){var D=f.nodeType;v=D===1?v?G:f:D===3&&X.test(f.nodeValue)?G:v}return v===G?void 0:v}function qe(G,v){var f={},D;(function(){for(var P=G.concat(v),te=[],Ie={},Te=0,Se=P.length;Te<Se;++Te){var Ge=P[Te],dt=Ge[3];if(dt)for(var Ke=dt.length;--Ke>=0;)f[dt.charAt(Ke)]=Ge;var Xe=Ge[1],At=""+Xe;Ie.hasOwnProperty(At)||(te.push(Xe),Ie[At]=null)}te.push(/[\0-\uffff]/),D=ve(te)})();var fe=v.length,W=function(P){for(var te=P.sourceCode,Ie=P.basePos,Te=P.sourceNode,Se=[Ie,Ce],Ge=0,dt=te.match(D)||[],Ke={},Xe=0,At=dt.length;Xe<At;++Xe){var We=dt[Xe],$e=Ke[We],Bt=void 0,Kt;if(typeof $e=="string")Kt=!1;else{var Mt=f[We.charAt(0)];if(Mt)Bt=We.match(Mt[1]),$e=Mt[0];else{for(var br=0;br<fe;++br)if(Mt=v[br],Bt=We.match(Mt[1]),Bt){$e=Mt[0];break}Bt||($e=Ce)}Kt=$e.length>=5&&$e.substring(0,5)==="lang-",Kt&&!(Bt&&typeof Bt[1]=="string")&&(Kt=!1,$e=me),Kt||(Ke[We]=$e)}var vr=Ge;if(Ge+=We.length,!Kt)Se.push(Ie+vr,$e);else{var re=Bt[1],ue=We.indexOf(re),rr=ue+re.length;Bt[2]&&(rr=We.length-Bt[2].length,ue=rr-re.length);var Me=$e.substring(5);N(Te,Ie+vr,We.substring(0,ue),W,Se),N(Te,Ie+vr+ue,re,Er(Me,re),Se),N(Te,Ie+vr+rr,We.substring(rr),W,Se)}}P.decorations=Se};return W}function at(G){var v=[],f=[];G.tripleQuotedStrings?v.push([ee,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):G.multiLineStrings?v.push([ee,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):v.push([ee,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),G.verbatimStrings&&f.push([ee,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var D=G.hashComments;D&&(G.cStyleComments?(D>1?v.push([z,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):v.push([z,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),f.push([ee,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):v.push([z,/^#[^\r\n]*/,null,"#"])),G.cStyleComments&&(f.push([z,/^\/\/[^\r\n]*/,null]),f.push([z,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=G.regexLiterals;if(fe){var W=fe>1?"":`
|
|
|
\r`,P=W?".":"[\\S\\s]",te="/(?=[^/*"+W+"])(?:[^/\\x5B\\x5C"+W+"]|\\x5C"+P+"|\\x5B(?:[^\\x5C\\x5D"+W+"]|\\x5C"+P+")*(?:\\x5D|$))+/";f.push(["lang-regex",RegExp("^"+he+"("+te+")")])}var Ie=G.types;Ie&&f.push([le,Ie]);var Te=(""+G.keywords).replace(/^ | $/g,"");Te.length&&f.push([B,new RegExp("^(?:"+Te.replace(/[\s,]+/g,"|")+")\\b"),null]),v.push([Ce,/^\s+/,null,` \r
|
|
|
\xA0`]);var Se="^.[^\\s\\w.$@'\"`/\\\\]*";return G.regexLiterals&&(Se+="(?!s*/)"),f.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(Se),null]),qe(v,f)}var rt=at({keywords:H,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Rt(G,v,f){for(var D=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,W=G.ownerDocument,P=W.createElement("li");G.firstChild;)P.appendChild(G.firstChild);var te=[P];function Ie(Xe){var At=Xe.nodeType;if(At==1&&!D.test(Xe.className))if(Xe.nodeName==="br")Te(Xe),Xe.parentNode&&Xe.parentNode.removeChild(Xe);else for(var We=Xe.firstChild;We;We=We.nextSibling)Ie(We);else if((At==3||At==4)&&f){var $e=Xe.nodeValue,Bt=$e.match(fe);if(Bt){var Kt=$e.substring(0,Bt.index);Xe.nodeValue=Kt;var Mt=$e.substring(Bt.index+Bt[0].length);if(Mt){var br=Xe.parentNode;br.insertBefore(W.createTextNode(Mt),Xe.nextSibling)}Te(Xe),Kt||Xe.parentNode.removeChild(Xe)}}}function Te(Xe){for(;!Xe.nextSibling;)if(Xe=Xe.parentNode,!Xe)return;function At(Bt,Kt){var Mt=Kt?Bt.cloneNode(!1):Bt,br=Bt.parentNode;if(br){var vr=At(br,1),re=Bt.nextSibling;vr.appendChild(Mt);for(var ue=re;ue;ue=re)re=ue.nextSibling,vr.appendChild(ue)}return Mt}for(var We=At(Xe.nextSibling,0),$e;($e=We.parentNode)&&$e.nodeType===1;)We=$e;te.push(We)}for(var Se=0;Se<te.length;++Se)Ie(te[Se]);v===(v|0)&&te[0].setAttribute("value",v);var Ge=W.createElement("ol");Ge.className="linenums";for(var dt=Math.max(0,v-1|0)||0,Se=0,Ke=te.length;Se<Ke;++Se)P=te[Se],P.className="L"+(Se+dt)%10,P.firstChild||P.appendChild(W.createTextNode("\xA0")),Ge.appendChild(P);G.appendChild(Ge)}function lr(G){var v=/\bMSIE\s(\d+)/.exec(navigator.userAgent);v=v&&+v[1]<=8;var f=/\n/g,D=G.sourceCode,fe=D.length,W=0,P=G.spans,te=P.length,Ie=0,Te=G.decorations,Se=Te.length,Ge=0;Te[Se]=fe;var dt,Ke;for(Ke=dt=0;Ke<Se;)Te[Ke]!==Te[Ke+2]?(Te[dt++]=Te[Ke++],Te[dt++]=Te[Ke++]):Ke+=2;for(Se=dt,Ke=dt=0;Ke<Se;){for(var Xe=Te[Ke],At=Te[Ke+1],We=Ke+2;We+2<=Se&&Te[We+1]===At;)We+=2;Te[dt++]=Xe,Te[dt++]=At,Ke=We}Se=Te.length=dt;var $e=G.sourceNode,Bt="";$e&&(Bt=$e.style.display,$e.style.display="none");try{for(var Kt=null;Ie<te;){var Mt=P[Ie],br=P[Ie+2]||fe,vr=Te[Ge+2]||fe,We=Math.min(br,vr),re=P[Ie+1],ue;if(re.nodeType!==1&&(ue=D.substring(W,We))){v&&(ue=ue.replace(f,"\r")),re.nodeValue=ue;var rr=re.ownerDocument,Me=rr.createElement("span");Me.className=Te[Ge+1];var ot=re.parentNode;ot.replaceChild(Me,re),Me.appendChild(re),W<br&&(P[Ie+1]=re=rr.createTextNode(D.substring(We,br)),ot.insertBefore(re,Me.nextSibling))}W=We,W>=br&&(Ie+=2),W>=vr&&(Ge+=2)}}finally{$e&&($e.style.display=Bt)}}var Jt={};function Ze(G,v){for(var f=v.length;--f>=0;){var D=v[f];Jt.hasOwnProperty(D)?Y.console&&console.warn("cannot override language handler %s",D):Jt[D]=G}}function Er(G,v){return G&&Jt.hasOwnProperty(G)||(G=/^\s*</.test(v)?"default-markup":"default-code"),Jt[G]}Ze(rt,["default-code"]),Ze(qe([],[[Ce,/^[^<?]+/],[ae,/^<!\w[^>]*(?:>|$)/],[z,/^<\!--[\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"]),Ze(qe([[Ce,/^[\s]+/,null,` \r
|
|
|
`],[Ee,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Le,/^^<\/?[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"]),Ze(qe([],[[Ee,/^[\s\S]+/]]),["uq.val"]),Ze(at({keywords:o,hashComments:!0,cStyleComments:!0,types:V}),["c","cc","cpp","cxx","cyc","m"]),Ze(at({keywords:"null,true,false"}),["json"]),Ze(at({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:V}),["cs"]),Ze(at({keywords:L,cStyleComments:!0}),["java"]),Ze(at({keywords:F,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ze(at({keywords:S,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ze(at({keywords:m,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ze(at({keywords:$,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ze(at({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ze(at({keywords:a,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ze(qe([],[[ee,/^[\s\S]+/]]),["regex"]);function Cr(G){var v=G.langExtension;try{var f=_(G.sourceNode,G.pre),D=f.sourceCode;G.sourceCode=D,G.spans=f.spans,G.basePos=0,Er(v,D)(G),lr(G)}catch(fe){Y.console&&console.log(fe&&fe.stack||fe)}}function Kr(G,v,f){var D=f||!1,fe=v||null,W=document.createElement("div");W.innerHTML="<pre>"+G+"</pre>",W=W.firstChild,D&&Rt(W,D,!0);var P={langExtension:fe,numberLines:D,sourceNode:W,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Cr(P),W.innerHTML}function _r(G,v){var f=v||document.body,D=f.ownerDocument||document;function fe(Mt){return f.getElementsByTagName(Mt)}for(var W=[fe("pre"),fe("code"),fe("xmp")],P=[],te=0;te<W.length;++te)for(var Ie=0,Te=W[te].length;Ie<Te;++Ie)P.push(W[te][Ie]);W=null;var Se=Date;Se.now||(Se={now:function(){return+new Date}});var Ge=0,dt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ke=/\bprettyprint\b/,Xe=/\bprettyprinted\b/,At=/pre|xmp/i,We=/^code$/i,$e=/^(?:pre|code|xmp)$/i,Bt={};function Kt(){for(var Mt=Y.PR_SHOULD_USE_CONTINUATION?Se.now()+250:1/0;Ge<P.length&&Se.now()<Mt;Ge++){for(var br=P[Ge],vr=Bt,re=br;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){vr={},rr.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Nt,Ln,Vn){vr[Ln]=Vn});break}}var Me=br.className;if((vr!==Bt||Ke.test(Me))&&!Xe.test(Me)){for(var ot=!1,Zr=br.parentNode;Zr;Zr=Zr.parentNode){var Tt=Zr.tagName;if($e.test(Tt)&&Zr.className&&Ke.test(Zr.className)){ot=!0;break}}if(!ot){br.className+=" prettyprinted";var Yt=vr.lang;if(!Yt){Yt=Me.match(dt);var Gt;!Yt&&(Gt=pe(br))&&We.test(Gt.tagName)&&(Yt=Gt.className.match(dt)),Yt&&(Yt=Yt[1])}var nt;if(At.test(br.tagName))nt=1;else{var ct=br.currentStyle,pt=D.defaultView,Zt=ct?ct.whiteSpace:pt&&pt.getComputedStyle?pt.getComputedStyle(br,null).getPropertyValue("white-space"):0;nt=Zt&&Zt.substring(0,3)==="pre"}var Oe=vr.linenums;(Oe=Oe==="true"||+Oe)||(Oe=Me.match(/\blinenums\b(?::(\d+))?/),Oe=Oe?Oe[1]&&Oe[1].length?+Oe[1]:!0:!1),Oe&&Rt(br,Oe,nt);var fn={langExtension:Yt,sourceNode:br,numberLines:Oe,pre:nt,sourceCode:null,basePos:null,spans:null,decorations:null};Cr(fn)}}}Ge<P.length?Y.setTimeout(Kt,250):typeof G=="function"&&G()}Kt()}var Ue=Y.PR={createSimpleLexer:qe,registerLangHandler:Ze,sourceDecorator:at,PR_ATTRIB_NAME:T,PR_ATTRIB_VALUE:Ee,PR_COMMENT:z,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:Le,PR_TYPE:le,prettyPrintOne:we?Y.prettyPrintOne=Kr:ke=Kr,prettyPrint:ie=we?Y.prettyPrint=_r:ie=_r},St=Y.define;typeof St=="function"&&St.amd&&St("google-code-prettify",[],function(){return Ue})})()},25769:function(bn,Wt,g){"use strict";var we=g(98040),Fe={"text/plain":"Text","text/html":"Url",default:"Text"},se="Copy to clipboard: #{key}, Enter";function ke(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 $=Fe[O.format]||Fe.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=ke("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(Wt,g){bn.exports=g()})(this,function(){"use strict";var Wt=function(R,E){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var Pe in k)Object.prototype.hasOwnProperty.call(k,Pe)&&(U[Pe]=k[Pe])},Wt(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");Wt(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,Pe=arguments.length;k<Pe;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 Fe(R,E,U,k){function Pe(it){return it instanceof U?it:new U(function(Lt){Lt(it)})}return new(U||(U=Promise))(function(it,Lt){function or(qr){try{jr(k.next(qr))}catch(mn){Lt(mn)}}function ar(qr){try{jr(k.throw(qr))}catch(mn){Lt(mn)}}function jr(qr){qr.done?it(qr.value):Pe(qr.value).then(or,ar)}jr((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,Pe,it,Lt;return Lt={next:or(0),throw:or(1),return:or(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function or(jr){return function(qr){return ar([jr,qr])}}function ar(jr){if(k)throw new TypeError("Generator is already executing.");for(;U;)try{if(k=1,Pe&&(it=jr[0]&2?Pe.return:jr[0]?Pe.throw||((it=Pe.return)&&it.call(Pe),0):Pe.next)&&!(it=it.call(Pe,jr[1])).done)return it;switch(Pe=0,it&&(jr=[jr[0]&2,it.value]),jr[0]){case 0:case 1:it=jr;break;case 4:return U.label++,{value:jr[1],done:!1};case 5:U.label++,Pe=jr[1],jr=[0];continue;case 7:jr=U.ops.pop(),U.trys.pop();continue;default:if(it=U.trys,!(it=it.length>0&&it[it.length-1])&&(jr[0]===6||jr[0]===2)){U=0;continue}if(jr[0]===3&&(!it||jr[1]>it[0]&&jr[1]<it[3])){U.label=jr[1];break}if(jr[0]===6&&U.label<it[1]){U.label=it[1],it=jr;break}if(it&&U.label<it[2]){U.label=it[2],U.ops.push(jr);break}it[2]&&U.ops.pop(),U.trys.pop();continue}jr=E.call(R,U)}catch(qr){jr=[6,qr],Pe=0}finally{k=it=0}if(jr[0]&5)throw jr[1];return{value:jr[0]?jr[1]:void 0,done:!0}}}function ke(R,E,U){if(U||arguments.length===2)for(var k=0,Pe=E.length,it;k<Pe;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,Pe){this.left=E,this.top=U,this.width=k,this.height=Pe}return R.prototype.add=function(E,U,k,Pe){return new R(this.left+E,this.top+U,this.width+k,this.height+Pe)},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(Pe){return Pe.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)),Pe=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,Pe)},I=function(R){for(var E=[],U=0,k=R.length;U<k;){var Pe=R.charCodeAt(U++);if(Pe>=55296&&Pe<=56319&&U<k){var it=R.charCodeAt(U++);(it&64512)===56320?E.push(((Pe&1023)<<10)+(it&1023)+65536):(E.push(Pe),U--)}else E.push(Pe)}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=[],Pe=-1,it="";++Pe<U;){var Lt=R[Pe];Lt<=65535?k.push(Lt):(Lt-=65536,k.push((Lt>>10)+55296,Lt%1024+56320)),(Pe+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,Pe=0,it,Lt,or,ar;R[R.length-1]==="="&&(E--,R[R.length-2]==="="&&E--);var jr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(E):new Array(E),qr=Array.isArray(jr)?jr:new Uint8Array(jr);for(k=0;k<U;k+=4)it=A[R.charCodeAt(k)],Lt=A[R.charCodeAt(k+1)],or=A[R.charCodeAt(k+2)],ar=A[R.charCodeAt(k+3)],qr[Pe++]=it<<2|Lt>>4,qr[Pe++]=(Lt&15)<<4|or>>2,qr[Pe++]=(or&3)<<6|ar&63;return jr},$=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,z=65536>>H,le=1<<H,J=le-1,be=1024>>H,Ce=z+be,Le=Ce,ae=32,me=Le+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),Pe=Array.isArray(U)?$(U):new Uint16Array(U),it=24,Lt=he(Pe,it/2,k[4]/2),or=k[5]===2?he(Pe,(it+k[4])/2):ve(k,Math.ceil((it+k[4])/4));return new N(k[0],k[1],k[2],k[3],Lt,or)},N=function(){function R(E,U,k,Pe,it,Lt){this.initialValue=E,this.errorValue=U,this.highStart=k,this.highValueIndex=Pe,this.index=it,this.data=Lt}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[z+(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),qe=0;qe<X.length;qe++)pe[X.charCodeAt(qe)]=qe;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==",rt=50,Rt=1,lr=2,Jt=3,Ze=4,Er=5,Cr=7,Kr=8,_r=9,Ue=10,St=11,G=12,v=13,f=14,D=15,fe=16,W=17,P=18,te=19,Ie=20,Te=21,Se=22,Ge=23,dt=24,Ke=25,Xe=26,At=27,We=28,$e=29,Bt=30,Kt=31,Mt=32,br=33,vr=34,re=35,ue=36,rr=37,Me=38,ot=39,Zr=40,Tt=41,Yt=42,Gt=43,nt=[9001,65288],ct="!",pt="\xD7",Zt="\xF7",Oe=_(at),fn=[Bt,ue],Nt=[Rt,lr,Jt,Er],Ln=[Ue,Kr],Vn=[At,Xe],yi=Nt.concat(Ln),Ki=[Me,ot,Zr,vr,re],jn=[D,v],kn=function(R,E){E===void 0&&(E="strict");var U=[],k=[],Pe=[];return R.forEach(function(it,Lt){var or=Oe.get(it);if(or>rt?(Pe.push(!0),or-=rt):Pe.push(!1),["normal","auto","loose"].indexOf(E)!==-1&&[8208,8211,12316,12448].indexOf(it)!==-1)return k.push(Lt),U.push(fe);if(or===Ze||or===St){if(Lt===0)return k.push(Lt),U.push(Bt);var ar=U[Lt-1];return yi.indexOf(ar)===-1?(k.push(k[Lt-1]),U.push(ar)):(k.push(Lt),U.push(Bt))}if(k.push(Lt),or===Kt)return U.push(E==="strict"?Te:rr);if(or===Yt||or===$e)return U.push(Bt);if(or===Gt)return it>=131072&&it<=196605||it>=196608&&it<=262141?U.push(rr):U.push(Bt);U.push(or)}),[k,U,Pe]},qt=function(R,E,U,k){var Pe=k[U];if(Array.isArray(R)?R.indexOf(Pe)!==-1:R===Pe)for(var it=U;it<=k.length;){it++;var Lt=k[it];if(Lt===E)return!0;if(Lt!==Ue)break}if(Pe===Ue)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 Lt=k[ar];if(Lt===E)return!0;if(Lt!==Ue)break}if(or!==Ue)break}return!1},zr=function(R,E){for(var U=R;U>=0;){var k=E[U];if(k===Ue)U--;else return k}return 0},Jr=function(R,E,U,k,Pe){if(U[k]===0)return pt;var it=k-1;if(Array.isArray(Pe)&&Pe[it]===!0)return pt;var Lt=it-1,or=it+1,ar=E[it],jr=Lt>=0?E[Lt]:0,qr=E[or];if(ar===lr&&qr===Jt)return pt;if(Nt.indexOf(ar)!==-1)return ct;if(Nt.indexOf(qr)!==-1||Ln.indexOf(qr)!==-1)return pt;if(zr(it,E)===Kr)return Zt;if(Oe.get(R[it])===St||(ar===Mt||ar===br)&&Oe.get(R[or])===St||ar===Cr||qr===Cr||ar===_r||[Ue,v,D].indexOf(ar)===-1&&qr===_r||[W,P,te,dt,We].indexOf(qr)!==-1||zr(it,E)===Se||qt(Ge,Se,it,E)||qt([W,P],Te,it,E)||qt(G,G,it,E))return pt;if(ar===Ue)return Zt;if(ar===Ge||qr===Ge)return pt;if(qr===fe||ar===fe)return Zt;if([v,D,Te].indexOf(qr)!==-1||ar===f||jr===ue&&jn.indexOf(ar)!==-1||ar===We&&qr===ue||qr===Ie||fn.indexOf(qr)!==-1&&ar===Ke||fn.indexOf(ar)!==-1&&qr===Ke||ar===At&&[rr,Mt,br].indexOf(qr)!==-1||[rr,Mt,br].indexOf(ar)!==-1&&qr===Xe||fn.indexOf(ar)!==-1&&Vn.indexOf(qr)!==-1||Vn.indexOf(ar)!==-1&&fn.indexOf(qr)!==-1||[At,Xe].indexOf(ar)!==-1&&(qr===Ke||[Se,D].indexOf(qr)!==-1&&E[or+1]===Ke)||[Se,D].indexOf(ar)!==-1&&qr===Ke||ar===Ke&&[Ke,We,dt].indexOf(qr)!==-1)return pt;if([Ke,We,dt,W,P].indexOf(qr)!==-1)for(var mn=it;mn>=0;){var h=E[mn];if(h===Ke)return pt;if([We,dt].indexOf(h)!==-1)mn--;else break}if([At,Xe].indexOf(qr)!==-1)for(var mn=[W,P].indexOf(ar)!==-1?Lt:it;mn>=0;){var h=E[mn];if(h===Ke)return pt;if([We,dt].indexOf(h)!==-1)mn--;else break}if(Me===ar&&[Me,ot,vr,re].indexOf(qr)!==-1||[ot,vr].indexOf(ar)!==-1&&[ot,Zr].indexOf(qr)!==-1||[Zr,re].indexOf(ar)!==-1&&qr===Zr||Ki.indexOf(ar)!==-1&&[Ie,Xe].indexOf(qr)!==-1||Ki.indexOf(qr)!==-1&&ar===At||fn.indexOf(ar)!==-1&&fn.indexOf(qr)!==-1||ar===dt&&fn.indexOf(qr)!==-1||fn.concat(Ke).indexOf(ar)!==-1&&qr===Se&&nt.indexOf(R[or])===-1||fn.concat(Ke).indexOf(qr)!==-1&&ar===P)return pt;if(ar===Tt&&qr===Tt){for(var Q=U[it],ce=1;Q>0&&(Q--,E[Q]===Tt);)ce++;if(ce%2!==0)return pt}return ar===Mt&&qr===br?pt:Zt},Ot=function(R,E){E||(E={lineBreak:"normal",wordBreak:"normal"});var U=kn(R,E.lineBreak),k=U[0],Pe=U[1],it=U[2];(E.wordBreak==="break-all"||E.wordBreak==="break-word")&&(Pe=Pe.map(function(or){return[Ke,Bt,Yt].indexOf(or)!==-1?rr:or}));var Lt=E.wordBreak==="keep-all"?it.map(function(or,ar){return or&&R[ar]>=19968&&R[ar]<=40959}):void 0;return[k,Pe,Lt]},Ct=function(){function R(E,U,k,Pe){this.codePoints=E,this.required=U===ct,this.start=k,this.end=Pe}return R.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},R}(),Ir=function(R,E){var U=I(R),k=Ot(U,E),Pe=k[0],it=k[1],Lt=k[2],or=U.length,ar=0,jr=0;return{next:function(){if(jr>=or)return{done:!0,value:null};for(var qr=pt;jr<or&&(qr=Jr(U,it,Pe,++jr,Lt))===pt;);if(qr!==pt||jr===or){var mn=new Ct(U,qr,ar,jr);return ar=jr,{value:mn,done:!1}}return{done:!0,value:null}}}},Fr=1,Tn=2,tn=4,Bn=8,gn=10,zn=47,Xn=92,Qr=9,Gr=32,Sn=34,On=61,Qn=35,Jn=36,Ni=37,li=39,vn=40,hr=41,wr=95,Or=45,Hr=33,Ur=60,on=62,en=64,Hn=91,ti=93,ui=61,Ri=123,Oi=63,Qi=125,Tr=124,En=126,hn=128,Ai=65533,si=42,ri=43,wi=44,Ti=58,Bi=59,zi=46,oa=0,Ei=8,wn=11,Ht=14,Fn=31,Gn=127,Ci=-1,ki=48,Aa=97,Ca=101,ta=102,xa=117,La=122,hi=65,bi=69,Hi=70,ha=85,Na=90,ci=function(R){return R>=ki&&R<=57},pa=function(R){return R>=55296&&R<=57343},va=function(R){return ci(R)||R>=hi&&R<=Hi||R>=Aa&&R<=ta},Ha=function(R){return R>=Aa&&R<=La},Is=function(R){return R>=hi&&R<=Na},Wa=function(R){return Ha(R)||Is(R)},Fa=function(R){return R>=hn},Mi=function(R){return R===gn||R===Qr||R===Gr},la=function(R){return Wa(R)||Fa(R)||R===wr},ms=function(R){return la(R)||ci(R)||R===Or},ss=function(R){return R>=oa&&R<=Ei||R===wn||R>=Ht&&R<=Fn||R===Gn},ns=function(R,E){return R!==Xn?!1:E!==gn},Wi=function(R,E,U){return R===Or?la(E)||ns(E,U):la(R)?!0:!!(R===Xn&&ns(R,E))},gs=function(R,E,U){return R===ri||R===Or?ci(E)?!0:E===zi&&ci(U):ci(R===zi?E:R)},ia=function(R){var E=0,U=1;(R[E]===ri||R[E]===Or)&&(R[E]===Or&&(U=-1),E++);for(var k=[];ci(R[E]);)k.push(R[E++]);var Pe=k.length?parseInt(n.apply(void 0,k),10):0;R[E]===zi&&E++;for(var it=[];ci(R[E]);)it.push(R[E++]);var Lt=it.length,or=Lt?parseInt(n.apply(void 0,it),10):0;(R[E]===bi||R[E]===Ca)&&E++;var ar=1;(R[E]===ri||R[E]===Or)&&(R[E]===Or&&(ar=-1),E++);for(var jr=[];ci(R[E]);)jr.push(R[E++]);var qr=jr.length?parseInt(n.apply(void 0,jr),10):0;return U*(Pe+or*Math.pow(10,-Lt))*Math.pow(10,ar*qr)},co={type:2},Qs={type:3},_o={type:4},hs={type:13},Bo={type:8},os={type:21},Yn={type:9},Da={type:10},io={type:11},Zi={type:12},ea={type:14},ji={type:23},Ui={type:1},ba={type:25},ka={type:24},Rs={type:26},As={type:27},Es={type:28},is={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 Sn:return this.consumeStringToken(Sn);case Qn:var U=this.peekCodePoint(0),k=this.peekCodePoint(1),Pe=this.peekCodePoint(2);if(ms(U)||ns(k,Pe)){var it=Wi(U,k,Pe)?Tn:Fr,Lt=this.consumeName();return{type:5,value:Lt,flags:it}}break;case Jn:if(this.peekCodePoint(0)===On)return this.consumeCodePoint(),hs;break;case li:return this.consumeStringToken(li);case vn:return co;case hr:return Qs;case si:if(this.peekCodePoint(0)===On)return this.consumeCodePoint(),ea;break;case ri:if(gs(E,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(E),this.consumeNumericToken();break;case wi:return _o;case Or:var or=E,ar=this.peekCodePoint(0),jr=this.peekCodePoint(1);if(gs(or,ar,jr))return this.reconsumeCodePoint(E),this.consumeNumericToken();if(Wi(or,ar,jr))return this.reconsumeCodePoint(E),this.consumeIdentLikeToken();if(ar===Or&&jr===on)return this.consumeCodePoint(),this.consumeCodePoint(),ka;break;case zi:if(gs(E,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(E),this.consumeNumericToken();break;case zn:if(this.peekCodePoint(0)===si)for(this.consumeCodePoint();;){var qr=this.consumeCodePoint();if(qr===si&&(qr=this.consumeCodePoint(),qr===zn))return this.consumeToken();if(qr===Ci)return this.consumeToken()}break;case Ti:return Rs;case Bi:return As;case Ur:if(this.peekCodePoint(0)===Hr&&this.peekCodePoint(1)===Or&&this.peekCodePoint(2)===Or)return this.consumeCodePoint(),this.consumeCodePoint(),ba;break;case en:var mn=this.peekCodePoint(0),h=this.peekCodePoint(1),Q=this.peekCodePoint(2);if(Wi(mn,h,Q)){var Lt=this.consumeName();return{type:7,value:Lt}}break;case Hn:return Es;case Xn:if(ns(E,this.peekCodePoint(0)))return this.reconsumeCodePoint(E),this.consumeIdentLikeToken();break;case ti:return is;case ui:if(this.peekCodePoint(0)===On)return this.consumeCodePoint(),Bo;break;case Ri:return io;case Qi:return Zi;case xa:case ha:var ce=this.peekCodePoint(0),Qe=this.peekCodePoint(1);return ce===ri&&(va(Qe)||Qe===Oi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(E),this.consumeIdentLikeToken();case Tr:if(this.peekCodePoint(0)===On)return this.consumeCodePoint(),Yn;if(this.peekCodePoint(0)===Tr)return this.consumeCodePoint(),os;break;case En:if(this.peekCodePoint(0)===On)return this.consumeCodePoint(),Da;break;case Ci:return go}return Mi(E)?(this.consumeWhiteSpace(),So):ci(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();va(U)&&E.length<6;)E.push(U),U=this.consumeCodePoint();for(var k=!1;U===Oi&&E.length<6;)E.push(U),U=this.consumeCodePoint(),k=!0;if(k){var Pe=parseInt(n.apply(void 0,E.map(function(ar){return ar===Oi?ki:ar})),16),it=parseInt(n.apply(void 0,E.map(function(ar){return ar===Oi?Hi:ar})),16);return{type:30,start:Pe,end:it}}var Lt=parseInt(n.apply(void 0,E),16);if(this.peekCodePoint(0)===Or&&va(this.peekCodePoint(1))){this.consumeCodePoint(),U=this.consumeCodePoint();for(var or=[];va(U)&&or.length<6;)or.push(U),U=this.consumeCodePoint();var it=parseInt(n.apply(void 0,or),16);return{type:30,start:Lt,end:it}}else return{type:30,start:Lt,end:Lt}},R.prototype.consumeIdentLikeToken=function(){var E=this.consumeName();return E.toLowerCase()==="url"&&this.peekCodePoint(0)===vn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===vn?(this.consumeCodePoint(),{type:19,value:E}):{type:20,value:E}},R.prototype.consumeUrlToken=function(){var E=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci)return{type:22,value:""};var U=this.peekCodePoint(0);if(U===li||U===Sn){var k=this.consumeStringToken(this.consumeCodePoint());return k.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci||this.peekCodePoint(0)===hr)?(this.consumeCodePoint(),{type:22,value:k.value}):(this.consumeBadUrlRemnants(),ji)}for(;;){var Pe=this.consumeCodePoint();if(Pe===Ci||Pe===hr)return{type:22,value:n.apply(void 0,E)};if(Mi(Pe))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci||this.peekCodePoint(0)===hr?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,E)}):(this.consumeBadUrlRemnants(),ji);if(Pe===Sn||Pe===li||Pe===vn||ss(Pe))return this.consumeBadUrlRemnants(),ji;if(Pe===Xn)if(ns(Pe,this.peekCodePoint(0)))E.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ji;else E.push(Pe)}},R.prototype.consumeWhiteSpace=function(){for(;Mi(this.peekCodePoint(0));)this.consumeCodePoint()},R.prototype.consumeBadUrlRemnants=function(){for(;;){var E=this.consumeCodePoint();if(E===hr||E===Ci)return;ns(E,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},R.prototype.consumeStringSlice=function(E){for(var U=5e4,k="";E>0;){var Pe=Math.min(U,E);k+=n.apply(void 0,this._value.splice(0,Pe)),E-=Pe}return this._value.shift(),k},R.prototype.consumeStringToken=function(E){var U="",k=0;do{var Pe=this._value[k];if(Pe===Ci||Pe===void 0||Pe===E)return U+=this.consumeStringSlice(k),{type:0,value:U};if(Pe===gn)return this._value.splice(0,k),Ui;if(Pe===Xn){var it=this._value[k+1];it!==Ci&&it!==void 0&&(it===gn?(U+=this.consumeStringSlice(k),k=-1,this._value.shift()):ns(Pe,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===Or)&&E.push(this.consumeCodePoint());ci(this.peekCodePoint(0));)E.push(this.consumeCodePoint());k=this.peekCodePoint(0);var Pe=this.peekCodePoint(1);if(k===zi&&ci(Pe))for(E.push(this.consumeCodePoint(),this.consumeCodePoint()),U=Bn;ci(this.peekCodePoint(0));)E.push(this.consumeCodePoint());k=this.peekCodePoint(0),Pe=this.peekCodePoint(1);var it=this.peekCodePoint(2);if((k===bi||k===Ca)&&((Pe===ri||Pe===Or)&&ci(it)||ci(Pe)))for(E.push(this.consumeCodePoint(),this.consumeCodePoint()),U=Bn;ci(this.peekCodePoint(0));)E.push(this.consumeCodePoint());return[ia(E),U]},R.prototype.consumeNumericToken=function(){var E=this.consumeNumber(),U=E[0],k=E[1],Pe=this.peekCodePoint(0),it=this.peekCodePoint(1),Lt=this.peekCodePoint(2);if(Wi(Pe,it,Lt)){var or=this.consumeName();return{type:15,number:U,flags:k,unit:or}}return Pe===Ni?(this.consumeCodePoint(),{type:16,number:U,flags:k}):{type:17,number:U,flags:k}},R.prototype.consumeEscapedCodePoint=function(){var E=this.consumeCodePoint();if(va(E)){for(var U=n(E);va(this.peekCodePoint(0))&&U.length<6;)U+=n(this.consumeCodePoint());Mi(this.peekCodePoint(0))&&this.consumeCodePoint();var k=parseInt(U,16);return k===0||pa(k)||k>1114111?Ai:k}return E===Ci?Ai:E},R.prototype.consumeName=function(){for(var E="";;){var U=this.consumeCodePoint();if(ms(U))E+=n(U);else if(ns(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},vs=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},Fi=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],Pe=R[1];return[_a(k,E),_a(typeof Pe!="undefined"?Pe: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",Ma={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")}},ma=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 Ja(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Js,Qo];case"to right":case"left":return Ja(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Qo,Qo];case"to bottom":case"top":return Ja(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Qo,Js];case"to left":case"right":return Ja(270)}return 0},Ja=function(R){return Math.PI*R/180},as={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),Pe=E.value.substring(1,2),it=E.value.substring(2,3);return Ys(parseInt(k+k,16),parseInt(Pe+Pe,16),parseInt(it+it,16),1)}if(E.value.length===4){var k=E.value.substring(0,1),Pe=E.value.substring(1,2),it=E.value.substring(2,3),Lt=E.value.substring(3,4);return Ys(parseInt(k+k,16),parseInt(Pe+Pe,16),parseInt(it+it,16),parseInt(Lt+Lt,16)/255)}if(E.value.length===6){var k=E.value.substring(0,2),Pe=E.value.substring(2,4),it=E.value.substring(4,6);return Ys(parseInt(k,16),parseInt(Pe,16),parseInt(it,16),1)}if(E.value.length===8){var k=E.value.substring(0,2),Pe=E.value.substring(2,4),it=E.value.substring(4,6),Lt=E.value.substring(6,8);return Ys(parseInt(k,16),parseInt(Pe,16),parseInt(it,16),parseInt(Lt,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},Ea=function(R){var E=255&R,U=255&R>>8,k=255&R>>16,Pe=255&R>>24;return E<255?"rgba("+Pe+","+k+","+U+","+E/255+")":"rgb("+Pe+","+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),Pe=k[0],it=k[1],Lt=k[2];return Ys(Pe,it,Lt,1)}if(U.length===4){var or=U.map(ao),Pe=or[0],it=or[1],Lt=or[2],ar=or[3];return Ys(Pe,it,Lt,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 qa=function(R,E){var U=E.filter(Ns),k=U[0],Pe=U[1],it=U[2],Lt=U[3],or=(k.type===17?Ja(k.number):Ma.parse(R,k))/(Math.PI*2),ar=Fi(Pe)?Pe.number/100:0,jr=Fi(it)?it.number/100:0,qr=typeof Lt!="undefined"&&Fi(Lt)?_a(Lt,1):1;if(ar===0)return Ys(jr*255,jr*255,jr*255,1);var mn=jr<=.5?jr*(ar+1):jr+ar-jr*ar,h=jr*2-mn,Q=Do(h,mn,or+1/3),ce=Do(h,mn,or),Qe=Do(h,mn,or-1/3);return Ys(Q*255,ce*255,Qe*255,qr)},bl={hsl:qa,hsla:qa,rgb:Po,rgba:Po},so=function(R,E){return as.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=as.parse(R,E[0]),k=E[1];return k&&Fi(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 Pe=[],it=0,Lt=0;Lt<R.length;Lt++){var or=R[Lt].stop;if(or!==null){var ar=_a(or,E);ar>it?Pe.push(ar):Pe.push(it),it=ar}else Pe.push(null)}for(var jr=null,Lt=0;Lt<Pe.length;Lt++){var qr=Pe[Lt];if(qr===null)jr===null&&(jr=Lt);else if(jr!==null){for(var mn=Lt-jr,h=Pe[jr-1],Q=(qr-h)/(mn+1),ce=1;ce<=mn;ce++)Pe[jr+ce-1]=Q*ce;jr=null}}return R.map(function(Qe,ut){var ht=Qe.color;return{color:ht,stop:Math.max(Math.min(1,Pe[ut]/E),0)}})},xl=function(R,E,U){var k=E/2,Pe=U/2,it=_a(R[0],E)-k,Lt=Pe-_a(R[1],U);return(Math.atan2(Lt,it)+Math.PI*2)%(Math.PI*2)},jo=function(R,E,U){var k=typeof R=="number"?R:xl(R,E,U),Pe=Math.abs(E*Math.sin(k))+Math.abs(U*Math.cos(k)),it=E/2,Lt=U/2,or=Pe/2,ar=Math.sin(k-Math.PI/2)*or,jr=Math.cos(k-Math.PI/2)*or;return[Pe,it-jr,it+jr,Lt-ar,Lt+ar]},Gs=function(R,E){return Math.sqrt(R*R+E*E)},Lo=function(R,E,U,k,Pe){var it=[[0,0],[0,E],[R,0],[R,E]];return it.reduce(function(Lt,or){var ar=or[0],jr=or[1],qr=Gs(U-ar,k-jr);return(Pe?qr<Lt.optimumDistance:qr>Lt.optimumDistance)?{optimumCorner:or,optimumDistance:qr}:Lt},{optimumDistance:Pe?1/0:-1/0,optimumCorner:null}).optimumCorner},Ya=function(R,E,U,k,Pe){var it=0,Lt=0;switch(R.size){case 0:R.shape===0?it=Lt=Math.min(Math.abs(E),Math.abs(E-k),Math.abs(U),Math.abs(U-Pe)):R.shape===1&&(it=Math.min(Math.abs(E),Math.abs(E-k)),Lt=Math.min(Math.abs(U),Math.abs(U-Pe)));break;case 2:if(R.shape===0)it=Lt=Math.min(Gs(E,U),Gs(E,U-Pe),Gs(E-k,U),Gs(E-k,U-Pe));else if(R.shape===1){var or=Math.min(Math.abs(U),Math.abs(U-Pe))/Math.min(Math.abs(E),Math.abs(E-k)),ar=Lo(k,Pe,E,U,!0),jr=ar[0],qr=ar[1];it=Gs(jr-E,(qr-U)/or),Lt=or*it}break;case 1:R.shape===0?it=Lt=Math.max(Math.abs(E),Math.abs(E-k),Math.abs(U),Math.abs(U-Pe)):R.shape===1&&(it=Math.max(Math.abs(E),Math.abs(E-k)),Lt=Math.max(Math.abs(U),Math.abs(U-Pe)));break;case 3:if(R.shape===0)it=Lt=Math.max(Gs(E,U),Gs(E,U-Pe),Gs(E-k,U),Gs(E-k,U-Pe));else if(R.shape===1){var or=Math.max(Math.abs(U),Math.abs(U-Pe))/Math.max(Math.abs(E),Math.abs(E-k)),mn=Lo(k,Pe,E,U,!1),jr=mn[0],qr=mn[1];it=Gs(jr-E,(qr-U)/or),Lt=or*it}break}return Array.isArray(R.size)&&(it=_a(R.size[0],k),Lt=R.size.length===2?_a(R.size[1],Pe):it),[it,Lt]},ys=function(R,E){var U=Ja(180),k=[];return Vs(E).forEach(function(Pe,it){if(it===0){var Lt=Pe[0];if(Lt.type===20&&Lt.value==="to"){U=to(Pe);return}else if(ma(Lt)){U=Ma.parse(R,Lt);return}}var or=fl(R,Pe);k.push(or)}),{angle:U,stops:k,type:1}},es=function(R,E){var U=Ja(180),k=[];return Vs(E).forEach(function(Pe,it){if(it===0){var Lt=Pe[0];if(Lt.type===20&&["top","left","right","bottom"].indexOf(Lt.value)!==-1){U=to(Pe);return}else if(ma(Lt)){U=(Ma.parse(R,Lt)+Ja(270))%Ja(360);return}}var or=fl(R,Pe);k.push(or)}),{angle:U,stops:k,type:1}},Cs=function(R,E){var U=Ja(180),k=[],Pe=1,it=0,Lt=3,or=[];return Vs(E).forEach(function(ar,jr){var qr=ar[0];if(jr===0){if(pi(qr)&&qr.value==="linear"){Pe=1;return}else if(pi(qr)&&qr.value==="radial"){Pe=2;return}}if(qr.type===18){if(qr.name==="from"){var mn=as.parse(R,qr.values[0]);k.push({stop:Js,color:mn})}else if(qr.name==="to"){var mn=as.parse(R,qr.values[0]);k.push({stop:Qo,color:mn})}else if(qr.name==="color-stop"){var h=qr.values.filter(Ns);if(h.length===2){var mn=as.parse(R,h[1]),Q=h[0];Li(Q)&&k.push({stop:{type:16,number:Q.number*100,flags:Q.flags},color:mn})}}}}),Pe===1?{angle:(U+Ja(180))%Ja(360),stops:k,type:Pe}:{size:Lt,shape:it,stops:k,position:or,type:Pe}},qs="closest-side",El="farthest-side",il="closest-corner",Rl="farthest-corner",cu="circle",Ol="ellipse",Pl="cover",oi="contain",Au=function(R,E){var U=0,k=3,Pe=[],it=[];return Vs(E).forEach(function(Lt,or){var ar=!0;if(or===0){var jr=!1;ar=Lt.reduce(function(mn,h){if(jr)if(pi(h))switch(h.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(Fi(h)||Ps(h))&&it.push(h);else if(pi(h))switch(h.value){case cu:return U=0,!1;case Ol:return U=1,!1;case"at":return jr=!0,!1;case qs:return k=0,!1;case Pl:case El:return k=1,!1;case oi:case il:return k=2,!1;case Rl:return k=3,!1}else if(Ps(h)||Fi(h))return Array.isArray(k)||(k=[]),k.push(h),!1;return mn},ar)}if(ar){var qr=fl(R,Lt);Pe.push(qr)}}),{size:k,shape:U,stops:Pe,position:it,type:2}},Wl=function(R,E){var U=0,k=3,Pe=[],it=[];return Vs(E).forEach(function(Lt,or){var ar=!0;if(or===0?ar=Lt.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(Fi(mn)||Ps(mn))return it.push(mn),!1;return qr},ar):or===1&&(ar=Lt.reduce(function(qr,mn){if(pi(mn))switch(mn.value){case cu:return U=0,!1;case Ol:return U=1,!1;case oi: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)||Fi(mn))return Array.isArray(k)||(k=[]),k.push(mn),!1;return qr},ar)),ar){var jr=fl(R,Lt);Pe.push(jr)}}),{size:k,shape:U,stops:Pe,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":ys,"-moz-linear-gradient":es,"-ms-linear-gradient":es,"-o-linear-gradient":es,"-webkit-linear-gradient":es,"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(Fi)}).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(Z)})}},Z=function(R){return pi(R)||Fi(R)},ge=function(R){return{name:"border-"+R+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},De=ge("top"),Ne=ge("right"),tt=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(Fi))}}},kt=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"),an=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"),Br=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:Fi(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"),jt=_e("right"),Vt=_e("bottom"),ur=_e("left"),It={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"}}},Wr=function(R){return{name:"padding-"+R,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},$r=Wr("top"),cn=Wr("right"),Dn=Wr("bottom"),ni=Wr("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&&vs(E[0],"none")?[]:Vs(E).map(function(U){for(var k={color:bo.TRANSPARENT,offsetX:Js,offsetY:Js,blur:Js},Pe=0,it=0;it<U.length;it++){var Lt=U[it];Ps(Lt)?(Pe===0?k.offsetX=Lt:Pe===1?k.offsetY=Lt:k.blur=Lt,Pe++):k.color=as.parse(R,Lt)}return k})}},In={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}},sn={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=_n[E.name];if(typeof U=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+E.name+'"');return U(E.values)}return null}},An=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 Pe=E[4],it=E[5];E[6],E[7],E[8],E[9],E[10],E[11];var Lt=E[12],or=E[13];return E[14],E[15],E.length===16?[U,k,Pe,it,Lt,or]:null},_n={matrix:An,matrix3d:rn},ii={type:16,number:50,flags:tn},Di=[ii,ii],He={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(R,E){var U=E.filter(Fi);return U.length!==2?Di:[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(Pe){switch(Pe.type){case 20:case 0:U.push(Pe.value);break;case 17:U.push(Pe.number.toString());break;case 4:k.push(U.join(" ")),U.length=0;break}}),U.length&&k.push(U.join(" ")),k.map(function(Pe){return Pe.indexOf(" ")===-1?Pe:"'"+Pe+"'"})}},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})}},Cn={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},dn={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=[],Pe=E.filter(Oa),it=0;it<Pe.length;it++){var Lt=Pe[it],or=Pe[it+1];if(Lt.type===20){var ar=or&&Li(or)?or.number:1;k.push({counter:Lt.value,increment:ar})}}return k}},qn={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),Pe=0;Pe<k.length;Pe++){var it=k[Pe],Lt=k[Pe+1];if(pi(it)&&it.value!=="none"){var or=Lt&&Li(Lt)?Lt.number:0;U.push({counter:it.value,reset:or})}}return U}},xi={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=[],Pe=E.filter(ua);if(Pe.length%2!==0)return null;for(var it=0;it<Pe.length;it+=2){var Lt=Pe[it].value,or=Pe[it+1].value;k.push({open:Lt,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:""},Ji={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(R,E){return E.length===1&&vs(E[0],"none")?[]:Vs(E).map(function(U){for(var k={color:255,offsetX:Js,offsetY:Js,blur:Js,spread:Js,inset:!1},Pe=0,it=0;it<U.length;it++){var Lt=U[it];vs(Lt,"inset")?k.inset=!0:Ps(Lt)?(Pe===0?k.offsetX=Lt:Pe===1?k.offsetY=Lt:Pe===2?k.blur=Lt:k.spread=Lt,Pe++):k.color=as.parse(R,Lt)}return k})}},$i={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(Pe){switch(Pe.value){case"stroke":k.push(1);break;case"fill":k.push(0);break;case"markers":k.push(2);break}}),U.forEach(function(Pe){k.indexOf(Pe)===-1&&k.push(Pe)}),k}},Sa={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ia={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,Pe;this.animationDuration=ai(E,xi,U.animationDuration),this.backgroundClip=ai(E,Zl,U.backgroundClip),this.backgroundColor=ai(E,wl,U.backgroundColor),this.backgroundImage=ai(E,Hu,U.backgroundImage),this.backgroundOrigin=ai(E,oc,U.backgroundOrigin),this.backgroundPosition=ai(E,b,U.backgroundPosition),this.backgroundRepeat=ai(E,u,U.backgroundRepeat),this.backgroundSize=ai(E,ne,U.backgroundSize),this.borderTopColor=ai(E,De,U.borderTopColor),this.borderRightColor=ai(E,Ne,U.borderRightColor),this.borderBottomColor=ai(E,tt,U.borderBottomColor),this.borderLeftColor=ai(E,yt,U.borderLeftColor),this.borderTopLeftRadius=ai(E,kt,U.borderTopLeftRadius),this.borderTopRightRadius=ai(E,Ve,U.borderTopRightRadius),this.borderBottomRightRadius=ai(E,cr,U.borderBottomRightRadius),this.borderBottomLeftRadius=ai(E,tr,U.borderBottomLeftRadius),this.borderTopStyle=ai(E,Qt,U.borderTopStyle),this.borderRightStyle=ai(E,pr,U.borderRightStyle),this.borderBottomStyle=ai(E,Mr,U.borderBottomStyle),this.borderLeftStyle=ai(E,an,U.borderLeftStyle),this.borderTopWidth=ai(E,di,U.borderTopWidth),this.borderRightWidth=ai(E,pn,U.borderRightWidth),this.borderBottomWidth=ai(E,Br,U.borderBottomWidth),this.borderLeftWidth=ai(E,xn,U.borderLeftWidth),this.boxShadow=ai(E,Ji,U.boxShadow),this.color=ai(E,Nn,U.color),this.direction=ai(E,er,U.direction),this.display=ai(E,nr,U.display),this.float=ai(E,xe,U.cssFloat),this.fontFamily=ai(E,Xt,U.fontFamily),this.fontSize=ai(E,Ar,U.fontSize),this.fontStyle=ai(E,Cn,U.fontStyle),this.fontVariant=ai(E,nn,U.fontVariant),this.fontWeight=ai(E,xr,U.fontWeight),this.letterSpacing=ai(E,et,U.letterSpacing),this.lineBreak=ai(E,gt,U.lineBreak),this.lineHeight=ai(E,ft,U.lineHeight),this.listStyleImage=ai(E,$t,U.listStyleImage),this.listStylePosition=ai(E,sr,U.listStylePosition),this.listStyleType=ai(E,ze,U.listStyleType),this.marginTop=ai(E,wt,U.marginTop),this.marginRight=ai(E,jt,U.marginRight),this.marginBottom=ai(E,Vt,U.marginBottom),this.marginLeft=ai(E,ur,U.marginLeft),this.opacity=ai(E,je,U.opacity);var it=ai(E,It,U.overflow);this.overflowX=it[0],this.overflowY=it[it.length>1?1:0],this.overflowWrap=ai(E,yr,U.overflowWrap),this.paddingTop=ai(E,$r,U.paddingTop),this.paddingRight=ai(E,cn,U.paddingRight),this.paddingBottom=ai(E,Dn,U.paddingBottom),this.paddingLeft=ai(E,ni,U.paddingLeft),this.paintOrder=ai(E,$i,U.paintOrder),this.position=ai(E,ir,U.position),this.textAlign=ai(E,kr,U.textAlign),this.textDecorationColor=ai(E,xt,(k=U.textDecorationColor)!==null&&k!==void 0?k:U.color),this.textDecorationLine=ai(E,bt,(Pe=U.textDecorationLine)!==null&&Pe!==void 0?Pe:U.textDecoration),this.textShadow=ai(E,Si,U.textShadow),this.textTransform=ai(E,In,U.textTransform),this.transform=ai(E,sn,U.transform),this.transformOrigin=ai(E,He,U.transformOrigin),this.visibility=ai(E,c,U.visibility),this.webkitTextStrokeColor=ai(E,Sa,U.webkitTextStrokeColor),this.webkitTextStrokeWidth=ai(E,Ia,U.webkitTextStrokeWidth),this.wordBreak=ai(E,C,U.wordBreak),this.zIndex=ai(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}(),Ta=function(){function R(E,U){this.content=ai(E,dn,U.content),this.quotes=ai(E,yn,U.quotes)}return R}(),Ba=function(){function R(E,U){this.counterIncrement=ai(E,Mn,U.counterIncrement),this.counterReset=ai(E,qn,U.counterReset)}return R}(),ai=function(R,E,U){var k=new eo,Pe=U!==null&&typeof U!="undefined"?U.toString():E.initialValue;k.write(Pe);var it=new zs(k.read());switch(E.type){case 2:var Lt=it.parseComponentValue();return E.parse(R,pi(Lt)?Lt.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 Ma.parse(R,it.parseComponentValue());case"color":return as.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 Fi(ar)?ar:Js;case"time":return Be.parse(R,it.parseComponentValue())}break}},Ka="data-html2canvas-debug",ls=function(R){var E=R.getAttribute(Ka);switch(E){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},aa=function(R,E){var U=ls(R);return U===1||E===U},da=function(){function R(E,U){if(this.context=E,this.textNodes=[],this.elements=[],this.flags=0,aa(U,3))debugger;this.styles=new Xi(E,window.getComputedStyle(U,null)),ln(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),aa(U,4)&&(this.flags|=16)}return R}(),wa="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",$a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",us=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ca=0;ca<$a.length;ca++)us[$a.charCodeAt(ca)]=ca;for(var Ts=function(R){var E=R.length*.75,U=R.length,k,Pe=0,it,Lt,or,ar;R[R.length-1]==="="&&(E--,R[R.length-2]==="="&&E--);var jr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(E):new Array(E),qr=Array.isArray(jr)?jr:new Uint8Array(jr);for(k=0;k<U;k+=4)it=us[R.charCodeAt(k)],Lt=us[R.charCodeAt(k+1)],or=us[R.charCodeAt(k+2)],ar=us[R.charCodeAt(k+3)],qr[Pe++]=it<<2|Lt>>4,qr[Pe++]=(Lt&15)<<4|or>>2,qr[Pe++]=(or&3)<<6|ar&63;return jr},bs=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,ts=ho+$s,al=ts,$l=32,Vo=al+$l,Jo=65536>>Xs,fu=1<<$o,Iu=fu-1,Ua=function(R,E,U){return R.slice?R.slice(E,U):new Uint16Array(Array.prototype.slice.call(R,E,U))},_s=function(R,E,U){return R.slice?R.slice(E,U):new Uint32Array(Array.prototype.slice.call(R,E,U))},rs=function(R,E){var U=Ts(R),k=Array.isArray(U)?Hs(U):new Uint32Array(U),Pe=Array.isArray(U)?bs(U):new Uint16Array(U),it=24,Lt=Ua(Pe,it/2,k[4]/2),or=k[5]===2?Ua(Pe,(it+k[4])/2):_s(k,Math.ceil((it+k[4])/4));return new Bs(k[0],k[1],k[2],k[3],Lt,or)},Bs=function(){function R(E,U,k,Pe,it,Lt){this.initialValue=E,this.errorValue=U,this.highStart=k,this.highValueIndex=Pe,this.index=it,this.data=Lt}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 Pe=R.charCodeAt(U++);if(Pe>=55296&&Pe<=56319&&U<k){var it=R.charCodeAt(U++);(it&64512)===56320?E.push(((Pe&1023)<<10)+(it&1023)+65536):(E.push(Pe),U--)}else E.push(Pe)}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=[],Pe=-1,it="";++Pe<U;){var Lt=R[Pe];Lt<=65535?k.push(Lt):(Lt-=65536,k.push((Lt>>10)+55296,Lt%1024+56320)),(Pe+1===U||k.length>16384)&&(it+=String.fromCharCode.apply(String,k),k.length=0)}return it},gu=rs(wa),Io="\xD7",vu="\xF7",ko=function(R){return gu.get(R)},yc=function(R,E,U){var k=U-2,Pe=E[k],it=E[U-1],Lt=E[U];if(it===Ko&&Lt===Vl)return Io;if(it===Ko||it===Vl||it===No||Lt===Ko||Lt===Vl||Lt===No)return vu;if(it===hu&&[hu,sl,Tu,Ku].indexOf(Lt)!==-1||(it===Tu||it===sl)&&(Lt===sl||Lt===pu)||(it===Ku||it===pu)&&Lt===pu||Lt===mu||Lt===Yl||Lt===$u||it===Cl)return Io;if(it===mu&&Lt===zu){for(;Pe===Yl;)Pe=E[--k];if(Pe===zu)return Io}if(it===Nl&&Lt===Nl){for(var or=0;Pe===Nl;)or++,Pe=E[--k];if(or%2===0)return Io}return vu},Zu=function(R){var E=Gu(R),U=E.length,k=0,Pe=0,it=E.map(ko);return{next:function(){if(k>=U)return{done:!0,value:null};for(var Lt=Io;k<U&&(Lt=yc(E,it,++k))===Io;);if(Lt!==Io||k===U){var or=kl.apply(null,E.slice(Pe,k));return Pe=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 Pe=U.getBoundingClientRect(),it=Math.round(Pe.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,Pe=I(k.data).map(function(ar){return n(ar)}),it=0,Lt={},or=Pe.every(function(ar,jr){U.setStart(k,it),U.setEnd(k,it+ar.length);var qr=U.getBoundingClientRect();it+=ar.length;var mn=qr.x>Lt.x||qr.y>Lt.y;return Lt=qr,jr===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(Pe){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 Pe=new Image,it=E.toDataURL();Pe.src=it;var Lt=Bl(U,U,0,0,Pe);return k.fillStyle="red",k.fillRect(0,0,U,U),Ho(Lt).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 jr=R.createElement("div");return jr.style.backgroundImage="url("+it+")",jr.style.height=U+"px",Xl(ar)?Ho(Bl(U,U,0,0,jr)):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,Pe){var it="http://www.w3.org/2000/svg",Lt=document.createElementNS(it,"svg"),or=document.createElementNS(it,"foreignObject");return Lt.setAttributeNS(null,"width",R.toString()),Lt.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"),Lt.appendChild(or),or.appendChild(Pe),Lt},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))})},ws={get SUPPORT_RANGE_BOUNDS(){var R=Fu(document);return Object.defineProperty(ws,"SUPPORT_RANGE_BOUNDS",{value:R}),R},get SUPPORT_WORD_BREAKING(){var R=ws.SUPPORT_RANGE_BOUNDS&&Du(document);return Object.defineProperty(ws,"SUPPORT_WORD_BREAKING",{value:R}),R},get SUPPORT_SVG_DRAWING(){var R=yu(document);return Object.defineProperty(ws,"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(ws,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:R}),R},get SUPPORT_CORS_IMAGES(){var R=_l();return Object.defineProperty(ws,"SUPPORT_CORS_IMAGES",{value:R}),R},get SUPPORT_RESPONSE_TYPE(){var R=Lu();return Object.defineProperty(ws,"SUPPORT_RESPONSE_TYPE",{value:R}),R},get SUPPORT_CORS_XHR(){var R="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ws,"SUPPORT_CORS_XHR",{value:R}),R},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var R=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ws,"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 Pe=ll(E,U),it=[],Lt=0;return Pe.forEach(function(or){if(U.textDecorationLine.length||or.trim().length>0)if(ws.SUPPORT_RANGE_BOUNDS){var ar=za(k,Lt,or.length).getClientRects();if(ar.length>1){var jr=ds(or),qr=0;jr.forEach(function(h){it.push(new ol(h,ie.fromDOMRectList(R,za(k,qr+Lt,h.length).getClientRects()))),qr+=h.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 ws.SUPPORT_RANGE_BOUNDS||(k=k.splitText(or.length));Lt+=or.length}),it},ql=function(R,E){var U=E.ownerDocument;if(U){var k=U.createElement("html2canvaswrapper");k.appendChild(E.cloneNode(!0));var Pe=E.parentNode;if(Pe){Pe.replaceChild(k,E);var it=Y(R,k);return k.firstChild&&Pe.replaceChild(k.firstChild,k),it}}return ie.EMPTY},za=function(R,E,U){var k=R.ownerDocument;if(!k)throw new Error("Node has no owner document");var Pe=k.createRange();return Pe.setStart(R,E),Pe.setEnd(R,E+U),Pe},ds=function(R){if(ws.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(ws.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?ds(R):zo(R,E)},Sl=[32,160,4961,65792,65793,4153,4241],Ru=function(R,E){for(var U=Ir(R,{lineBreak:E.lineBreak,wordBreak:E.overflowWrap==="break-word"?"break-word":E.wordBreak}),k=[],Pe,it=function(){if(Pe.value){var Lt=Pe.value.slice(),or=I(Lt),ar="";or.forEach(function(jr){Sl.indexOf(jr)===-1?ar+=n(jr):(ar.length&&k.push(ar),k.push(n(jr)),ar="")}),ar.length&&k.push(ar)}};!(Pe=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 Pe=R.call(this,U,k)||this;return Pe.src=k.currentSrc||k.src,Pe.intrinsicWidth=k.naturalWidth,Pe.intrinsicHeight=k.naturalHeight,Pe.context.cache.addImage(Pe.src),Pe}return E}(da),bu=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.canvas=k,Pe.intrinsicWidth=k.width,Pe.intrinsicHeight=k.height,Pe}return E}(da),Ml=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this,it=new XMLSerializer,Lt=Y(U,k);return k.setAttribute("width",Lt.width+"px"),k.setAttribute("height",Lt.height+"px"),Pe.svg="data:image/svg+xml,"+encodeURIComponent(it.serializeToString(k)),Pe.intrinsicWidth=k.width.baseVal.value,Pe.intrinsicHeight=k.height.baseVal.value,Pe.context.cache.addImage(Pe.svg),Pe}return E}(da),lc=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.value=k.value,Pe}return E}(da),Go=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.start=k.start,Pe.reversed=typeof k.reversed=="boolean"&&k.reversed===!0,Pe}return E}(da),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 Pe=R.call(this,U,k)||this;switch(Pe.type=k.type.toLowerCase(),Pe.checked=k.checked,Pe.value=cc(k),(Pe.type===Nu||Pe.type===ku)&&(Pe.styles.backgroundColor=3739148031,Pe.styles.borderTopColor=Pe.styles.borderRightColor=Pe.styles.borderBottomColor=Pe.styles.borderLeftColor=2779096575,Pe.styles.borderTopWidth=Pe.styles.borderRightWidth=Pe.styles.borderBottomWidth=Pe.styles.borderLeftWidth=1,Pe.styles.borderTopStyle=Pe.styles.borderRightStyle=Pe.styles.borderBottomStyle=Pe.styles.borderLeftStyle=1,Pe.styles.backgroundClip=[0],Pe.styles.backgroundOrigin=[0],Pe.bounds=Mc(Pe.bounds)),Pe.type){case Nu:Pe.styles.borderTopRightRadius=Pe.styles.borderTopLeftRadius=Pe.styles.borderBottomRightRadius=Pe.styles.borderBottomLeftRadius=kc;break;case ku:Pe.styles.borderTopRightRadius=Pe.styles.borderTopLeftRadius=Pe.styles.borderBottomRightRadius=Pe.styles.borderBottomLeftRadius=uc;break}return Pe}return E}(da),bc=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this,it=k.options[k.selectedIndex||0];return Pe.value=it&&it.text||"",Pe}return E}(da),wc=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.value=k.value,Pe}return E}(da),wu=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;Pe.src=k.src,Pe.width=parseInt(k.width,10)||0,Pe.height=parseInt(k.height,10)||0,Pe.backgroundColor=Pe.styles.backgroundColor;try{if(k.contentWindow&&k.contentWindow.document&&k.contentWindow.document.documentElement){Pe.tree=fc(U,k.contentWindow.document.documentElement);var it=k.contentWindow.document.documentElement?so(U,getComputedStyle(k.contentWindow.document.documentElement).backgroundColor):bo.TRANSPARENT,Lt=k.contentWindow.document.body?so(U,getComputedStyle(k.contentWindow.document.body).backgroundColor):bo.TRANSPARENT;Pe.backgroundColor=js(it)?js(Lt)?Pe.styles.backgroundColor:Lt:it}}catch(or){}return Pe}return E}(da),xu=["OL","UL","MENU"],eu=function(R,E,U,k){for(var Pe=E.firstChild,it=void 0;Pe;Pe=it)if(it=Pe.nextSibling,mr(Pe)&&Pe.data.trim().length>0)U.textNodes.push(new Ou(R,Pe,U.styles));else if(Lr(Pe))if(xc(Pe)&&Pe.assignedNodes)Pe.assignedNodes().forEach(function(or){return eu(R,or,U,k)});else{var Lt=tu(R,Pe);Lt.styles.isVisible()&&(de(Pe,Lt,k)?Lt.flags|=4:Et(Lt.styles)&&(Lt.flags|=2),xu.indexOf(Pe.tagName)!==-1&&(Lt.flags|=8),U.elements.push(Lt),Pe.slot,Pe.shadowRoot?eu(R,Pe.shadowRoot,Lt,k):!el(Pe)&&!Ga(Pe)&&!Tl(Pe)&&eu(R,Pe,Lt,k))}},tu=function(R,E){return To(E)?new Ic(R,E):mo(E)?new bu(R,E):Ga(E)?new Ml(R,E):_i(E)?new lc(R,E):ra(E)?new Go(R,E):ya(E)?new Wu(R,E):Tl(E)?new bc(R,E):el(E)?new wc(R,E):Yo(E)?new wu(R,E):new da(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()||xs(R)&&U.styles.isTransparent()},Et=function(R){return R.isPositioned()||R.isFloating()},mr=function(R){return R.nodeType===Node.TEXT_NODE},Lr=function(R){return R.nodeType===Node.ELEMENT_NODE},ln=function(R){return Lr(R)&&typeof R.style!="undefined"&&!$n(R)},$n=function(R){return typeof R.className=="object"},_i=function(R){return R.tagName==="LI"},ra=function(R){return R.tagName==="OL"},ya=function(R){return R.tagName==="INPUT"},Xa=function(R){return R.tagName==="HTML"},Ga=function(R){return R.tagName==="svg"},xs=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,Pe=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 Lt=[];return it&&Pe.forEach(function(or){var ar=U.counters[or.counter];Lt.push(or.counter),ar||(ar=U.counters[or.counter]=[]),ar.push(or.reset)}),Lt},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,Pe,it){return R<E||R>U?jl(R,Pe,it.length>0):k.integers.reduce(function(Lt,or,ar){for(;R>=or;)R-=or,Lt+=k.values[ar];return Lt},"")+it},Ju=function(R,E,U,k){var Pe="";do U||R--,Pe=k(R)+Pe,R/=E;while(R*E>=E);return Pe},no=function(R,E,U,k,Pe){var it=U-E+1;return(R<0?"-":"")+(Ju(Math.abs(R),it,k,function(Lt){return n(Math.floor(Lt%it)+E)})+Pe)},Ul=function(R,E,U){U===void 0&&(U=". ");var k=E.length;return Ju(Math.abs(R),k,!1,function(Pe){return E[Math.floor(Pe%k)]})+U},ru=1,Oo=2,nu=4,Eu=8,Ql=function(R,E,U,k,Pe,it){if(R<-9999||R>9999)return jl(R,4,Pe.length>0);var Lt=Math.abs(R),or=Pe;if(Lt===0)return E[0]+or;for(var ar=0;Lt>0&&ar<=4;ar++){var jr=Lt%10;jr===0&&Xr(it,ru)&&or!==""?or=E[jr]+or:jr>1||jr===1&&ar===0||jr===1&&ar===1&&Xr(it,Oo)||jr===1&&ar===1&&Xr(it,nu)&&R>100||jr===1&&ar>1&&Xr(it,Eu)?or=E[jr]+(ar>0?U[ar-1]:"")+or:jr===1&&ar>0&&(or=U[ar-1]+or),Lt=Math.floor(Lt/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?". ":"",Pe=U?"\u3001":"",it=U?", ":"",Lt=U?" ":"";switch(E){case 0:return"\u2022"+Lt;case 1:return"\u25E6"+Lt;case 2:return"\u25FE"+Lt;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",Pe);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",Pe);case 16:return Ul(R,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Pe);case 17:case 48:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",pl,"\u8CA0",Pe,Oo|nu|Eu);case 47:return Ql(R,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",qu,"\u8CA0",Pe,ru|Oo|nu|Eu);case 42:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",pl,"\u8D1F",Pe,Oo|nu|Eu);case 41:return Ql(R,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",qu,"\u8D1F",Pe,ru|Oo|nu|Eu);case 26:return Ql(R,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Cc,Pe,0);case 25:return Ql(R,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Cc,Pe,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",Pe);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",Pe);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,Pe=Uu(E,U);if(!Pe.contentWindow)return Promise.reject("Unable to find iframe window");var it=E.defaultView.pageXOffset,Lt=E.defaultView.pageYOffset,or=Pe.contentWindow,ar=or.document,jr=mc(Pe).then(function(){return Fe(k,void 0,void 0,function(){var qr,mn;return se(this,function(h){switch(h.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:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,su(ar)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof qr=="function"?[2,Promise.resolve().then(function(){return qr(ar,mn)}).then(function(){return Pe})]:[2,Pe]}})})});return ar.open(),ar.write(Qu(document.doctype)+"<html></html>"),cl(this.referenceElement.ownerDocument,it,Lt),ar.replaceChild(ar.adoptNode(this.documentElement),ar.documentElement),ar.close(),jr},R.prototype.createElementClone=function(E){if(aa(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,Lt){return Lt&&typeof Lt.cssText=="string"?it+Lt.cssText:it},""),Pe=E.cloneNode(!1);return Pe.textContent=k,Pe}}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(jr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",E)}}var Pe=E.cloneNode(!1);try{Pe.width=E.width,Pe.height=E.height;var it=E.getContext("2d"),Lt=Pe.getContext("2d");if(Lt)if(!this.options.allowTaint&&it)Lt.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)}Lt.drawImage(E,0,0)}return Pe}catch(jr){this.context.logger.info("Unable to clone canvas as it is tainted",E)}return Pe},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 Pe=E.ownerDocument.createElement("canvas");return Pe.width=E.offsetWidth,Pe.height=E.offsetHeight,Pe},R.prototype.appendChildNode=function(E,U,k){(!Lr(U)||!Kl(U)&&!U.hasAttribute(iu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(U)))&&(!this.options.copyStyles||!Lr(U)||!Mo(U))&&E.appendChild(this.cloneNode(U,k))},R.prototype.cloneChildNodes=function(E,U,k){for(var Pe=this,it=E.shadowRoot?E.shadowRoot.firstChild:E.firstChild;it;it=it.nextSibling)if(Lr(it)&&xc(it)&&typeof it.assignedNodes=="function"){var Lt=it.assignedNodes();Lt.length&&Lt.forEach(function(or){return Pe.appendChildNode(U,or,k)})}else this.appendChildNode(U,it,k)},R.prototype.cloneNode=function(E,U){if(mr(E))return document.createTextNode(E.data);if(!E.ownerDocument)return E.cloneNode(!1);var k=E.ownerDocument.defaultView;if(k&&Lr(E)&&(ln(E)||$n(E))){var Pe=this.createElementClone(E);Pe.style.transitionProperty="none";var it=k.getComputedStyle(E),Lt=k.getComputedStyle(E,":before"),or=k.getComputedStyle(E,":after");this.referenceElement===E&&ln(Pe)&&(this.clonedReferenceElement=Pe),xs(Pe)&&e(Pe);var ar=this.counters.parse(new Ba(this.context,it)),jr=this.resolvePseudoContent(E,Pe,Lt,Uo.BEFORE);Vu(E)&&(U=!0),xo(E)||this.cloneChildNodes(E,Pe,U),jr&&Pe.insertBefore(jr,Pe.firstChild);var qr=this.resolvePseudoContent(E,Pe,or,Uo.AFTER);return qr&&Pe.appendChild(qr),this.counters.pop(ar),(it&&(this.options.copyStyles||$n(E))&&!Yo(E)||U)&&Co(it,Pe),(E.scrollTop!==0||E.scrollLeft!==0)&&this.scrolledElements.push([Pe,E.scrollLeft,E.scrollTop]),(el(E)||Tl(E))&&(el(Pe)||Tl(Pe))&&(Pe.value=E.value),Pe}return E.cloneNode(!1)},R.prototype.resolvePseudoContent=function(E,U,k,Pe){var it=this;if(k){var Lt=k.content,or=U.ownerDocument;if(!(!or||!Lt||Lt==="none"||Lt==="-moz-alt-content"||k.display==="none")){this.counters.parse(new Ba(this.context,k));var ar=new Ta(this.context,k),jr=or.createElement("html2canvaspseudoelement");Co(k,jr),ar.content.forEach(function(mn){if(mn.type===0)jr.appendChild(or.createTextNode(mn.value));else if(mn.type===22){var h=or.createElement("img");h.src=mn.value,h.style.opacity="1",jr.appendChild(h)}else if(mn.type===18){if(mn.name==="attr"){var Q=mn.values.filter(pi);Q.length&&jr.appendChild(or.createTextNode(E.getAttribute(Q[0].value)||""))}else if(mn.name==="counter"){var ce=mn.values.filter(Ns),Qe=ce[0],ut=ce[1];if(Qe&&pi(Qe)){var ht=it.counters.getCounterValue(Qe.value),mt=ut&&pi(ut)?ze.parse(it.context,ut.value):3;jr.appendChild(or.createTextNode(jl(ht,mt,!1)))}}else if(mn.name==="counters"){var Dt=mn.values.filter(Ns),Qe=Dt[0],Pt=Dt[1],ut=Dt[2];if(Qe&&pi(Qe)){var zt=it.counters.getCounterValues(Qe.value),fr=ut&&pi(ut)?ze.parse(it.context,ut.value):3,Vr=Pt&&Pt.type===0?Pt.value:"",Yr=zt.map(function(Pn){return jl(Pn,fr,!1)}).join(Vr);jr.appendChild(or.createTextNode(Yr))}}}else if(mn.type===20)switch(mn.value){case"open-quote":jr.appendChild(or.createTextNode(fi(ar.quotes,it.quoteDepth++,!0)));break;case"close-quote":jr.appendChild(or.createTextNode(fi(ar.quotes,--it.quoteDepth,!1)));break;default:jr.appendChild(or.createTextNode(mn.value))}}),jr.className=ec+" "+Al;var qr=Pe===Uo.BEFORE?" "+ec:" "+Al;return $n(U)?U.className.baseValue+=qr:U.className+=qr,jr}}},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 Pe=k.document;k.onload=R.onload=function(){k.onload=R.onload=null;var it=setInterval(function(){Pe.body.childNodes.length>0&&Pe.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)||(Re(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 Fe(this,void 0,void 0,function(){var U,k,Pe,it,Lt=this;return se(this,function(or){switch(or.label){case 0:return U=r.isSameOrigin(E),k=!q(E)&&this._options.useCORS===!0&&ws.SUPPORT_CORS_IMAGES&&!U,Pe=!q(E)&&!U&&!Re(E)&&typeof this._options.proxy=="string"&&ws.SUPPORT_CORS_XHR&&!k,!U&&this._options.allowTaint===!1&&!q(E)&&!Re(E)&&!Pe&&!k?[2]:(it=E,Pe?[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,jr){var qr=new Image;qr.onload=function(){return ar(qr)},qr.onerror=jr,(Ae(it)||k)&&(qr.crossOrigin="anonymous"),qr.src=it,qr.complete===!0&&setTimeout(function(){return ar(qr)},500),Lt._options.imageTimeout>0&&setTimeout(function(){return jr("Timed out ("+Lt._options.imageTimeout+"ms) loading image")},Lt._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 Pe=E.substring(0,256);return new Promise(function(it,Lt){var or=ws.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(h){return Lt(h)},!1),mn.readAsDataURL(ar.response)}else Lt("Failed to proxy resource "+Pe+" with status code "+ar.status)},ar.onerror=Lt;var jr=k.indexOf("?")>-1?"&":"?";if(ar.open("GET",""+k+jr+"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 Lt("Timed out ("+qr+"ms) proxying "+Pe)}}ar.send()})},R}(),s=/^data:image\/svg\+xml/i,l=/^data:image\/.*;base64,/i,x=/^data:image\/.*/i,j=function(R){return ws.SUPPORT_SVG_DRAWING||!Ye(R)},q=function(R){return x.test(R)},Ae=function(R){return l.test(R)},Re=function(R){return R.substr(0,4)==="blob"},Ye=function(R){return R.substr(-3).toLowerCase()==="svg"||s.test(R)},Je=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 Je(R.x+(E.x-R.x)*U,R.y+(E.y-R.y)*U)},_t=function(){function R(E,U,k,Pe){this.type=1,this.start=E,this.startControl=U,this.endControl=k,this.end=Pe}return R.prototype.subdivide=function(E,U){var k=lt(this.start,this.startControl,E),Pe=lt(this.startControl,this.endControl,E),it=lt(this.endControl,this.end,E),Lt=lt(k,Pe,E),or=lt(Pe,it,E),ar=lt(Lt,or,E);return U?new R(this.start,k,Lt,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}(),Ft=function(R){return R.type===1},gr=function(){function R(E){var U=E.styles,k=E.bounds,Pe=Ao(U.borderTopLeftRadius,k.width,k.height),it=Pe[0],Lt=Pe[1],or=Ao(U.borderTopRightRadius,k.width,k.height),ar=or[0],jr=or[1],qr=Ao(U.borderBottomRightRadius,k.width,k.height),mn=qr[0],h=qr[1],Q=Ao(U.borderBottomLeftRadius,k.width,k.height),ce=Q[0],Qe=Q[1],ut=[];ut.push((it+ar)/k.width),ut.push((ce+mn)/k.width),ut.push((Lt+Qe)/k.height),ut.push((jr+h)/k.height);var ht=Math.max.apply(Math,ut);ht>1&&(it/=ht,Lt/=ht,ar/=ht,jr/=ht,mn/=ht,h/=ht,ce/=ht,Qe/=ht);var mt=k.width-ar,Dt=k.height-h,Pt=k.width-mn,zt=k.height-Qe,fr=U.borderTopWidth,Vr=U.borderRightWidth,Yr=U.borderBottomWidth,Sr=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||Lt>0?Rr(k.left+Sr/3,k.top+fr/3,it-Sr/3,Lt-fr/3,Nr.TOP_LEFT):new Je(k.left+Sr/3,k.top+fr/3),this.topRightBorderDoubleOuterBox=it>0||Lt>0?Rr(k.left+mt,k.top+fr/3,ar-Vr/3,jr-fr/3,Nr.TOP_RIGHT):new Je(k.left+k.width-Vr/3,k.top+fr/3),this.bottomRightBorderDoubleOuterBox=mn>0||h>0?Rr(k.left+Pt,k.top+Dt,mn-Vr/3,h-Yr/3,Nr.BOTTOM_RIGHT):new Je(k.left+k.width-Vr/3,k.top+k.height-Yr/3),this.bottomLeftBorderDoubleOuterBox=ce>0||Qe>0?Rr(k.left+Sr/3,k.top+zt,ce-Sr/3,Qe-Yr/3,Nr.BOTTOM_LEFT):new Je(k.left+Sr/3,k.top+k.height-Yr/3),this.topLeftBorderDoubleInnerBox=it>0||Lt>0?Rr(k.left+Sr*2/3,k.top+fr*2/3,it-Sr*2/3,Lt-fr*2/3,Nr.TOP_LEFT):new Je(k.left+Sr*2/3,k.top+fr*2/3),this.topRightBorderDoubleInnerBox=it>0||Lt>0?Rr(k.left+mt,k.top+fr*2/3,ar-Vr*2/3,jr-fr*2/3,Nr.TOP_RIGHT):new Je(k.left+k.width-Vr*2/3,k.top+fr*2/3),this.bottomRightBorderDoubleInnerBox=mn>0||h>0?Rr(k.left+Pt,k.top+Dt,mn-Vr*2/3,h-Yr*2/3,Nr.BOTTOM_RIGHT):new Je(k.left+k.width-Vr*2/3,k.top+k.height-Yr*2/3),this.bottomLeftBorderDoubleInnerBox=ce>0||Qe>0?Rr(k.left+Sr*2/3,k.top+zt,ce-Sr*2/3,Qe-Yr*2/3,Nr.BOTTOM_LEFT):new Je(k.left+Sr*2/3,k.top+k.height-Yr*2/3),this.topLeftBorderStroke=it>0||Lt>0?Rr(k.left+Sr/2,k.top+fr/2,it-Sr/2,Lt-fr/2,Nr.TOP_LEFT):new Je(k.left+Sr/2,k.top+fr/2),this.topRightBorderStroke=it>0||Lt>0?Rr(k.left+mt,k.top+fr/2,ar-Vr/2,jr-fr/2,Nr.TOP_RIGHT):new Je(k.left+k.width-Vr/2,k.top+fr/2),this.bottomRightBorderStroke=mn>0||h>0?Rr(k.left+Pt,k.top+Dt,mn-Vr/2,h-Yr/2,Nr.BOTTOM_RIGHT):new Je(k.left+k.width-Vr/2,k.top+k.height-Yr/2),this.bottomLeftBorderStroke=ce>0||Qe>0?Rr(k.left+Sr/2,k.top+zt,ce-Sr/2,Qe-Yr/2,Nr.BOTTOM_LEFT):new Je(k.left+Sr/2,k.top+k.height-Yr/2),this.topLeftBorderBox=it>0||Lt>0?Rr(k.left,k.top,it,Lt,Nr.TOP_LEFT):new Je(k.left,k.top),this.topRightBorderBox=ar>0||jr>0?Rr(k.left+mt,k.top,ar,jr,Nr.TOP_RIGHT):new Je(k.left+k.width,k.top),this.bottomRightBorderBox=mn>0||h>0?Rr(k.left+Pt,k.top+Dt,mn,h,Nr.BOTTOM_RIGHT):new Je(k.left+k.width,k.top+k.height),this.bottomLeftBorderBox=ce>0||Qe>0?Rr(k.left,k.top+zt,ce,Qe,Nr.BOTTOM_LEFT):new Je(k.left,k.top+k.height),this.topLeftPaddingBox=it>0||Lt>0?Rr(k.left+Sr,k.top+fr,Math.max(0,it-Sr),Math.max(0,Lt-fr),Nr.TOP_LEFT):new Je(k.left+Sr,k.top+fr),this.topRightPaddingBox=ar>0||jr>0?Rr(k.left+Math.min(mt,k.width-Vr),k.top+fr,mt>k.width+Vr?0:Math.max(0,ar-Vr),Math.max(0,jr-fr),Nr.TOP_RIGHT):new Je(k.left+k.width-Vr,k.top+fr),this.bottomRightPaddingBox=mn>0||h>0?Rr(k.left+Math.min(Pt,k.width-Sr),k.top+Math.min(Dt,k.height-Yr),Math.max(0,mn-Vr),Math.max(0,h-Yr),Nr.BOTTOM_RIGHT):new Je(k.left+k.width-Vr,k.top+k.height-Yr),this.bottomLeftPaddingBox=ce>0||Qe>0?Rr(k.left+Sr,k.top+Math.min(zt,k.height-Yr),Math.max(0,ce-Sr),Math.max(0,Qe-Yr),Nr.BOTTOM_LEFT):new Je(k.left+Sr,k.top+k.height-Yr),this.topLeftContentBox=it>0||Lt>0?Rr(k.left+Sr+Dr,k.top+fr+Zn,Math.max(0,it-(Sr+Dr)),Math.max(0,Lt-(fr+Zn)),Nr.TOP_LEFT):new Je(k.left+Sr+Dr,k.top+fr+Zn),this.topRightContentBox=ar>0||jr>0?Rr(k.left+Math.min(mt,k.width+Sr+Dr),k.top+fr+Zn,mt>k.width+Sr+Dr?0:ar-Sr+Dr,jr-(fr+Zn),Nr.TOP_RIGHT):new Je(k.left+k.width-(Vr+Pn),k.top+fr+Zn),this.bottomRightContentBox=mn>0||h>0?Rr(k.left+Math.min(Pt,k.width-(Sr+Dr)),k.top+Math.min(Dt,k.height+fr+Zn),Math.max(0,mn-(Vr+Pn)),h-(Yr+Pr),Nr.BOTTOM_RIGHT):new Je(k.left+k.width-(Vr+Pn),k.top+k.height-(Yr+Pr)),this.bottomLeftContentBox=ce>0||Qe>0?Rr(k.left+Sr+Dr,k.top+zt,Math.max(0,ce-(Sr+Dr)),Qe-(Yr+Pr),Nr.BOTTOM_LEFT):new Je(k.left+Sr+Dr,k.top+k.height-(Yr+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 Rr=function(R,E,U,k,Pe){var it=4*((Math.sqrt(2)-1)/3),Lt=U*it,or=k*it,ar=R+U,jr=E+k;switch(Pe){case Nr.TOP_LEFT:return new _t(new Je(R,jr),new Je(R,jr-or),new Je(ar-Lt,E),new Je(ar,E));case Nr.TOP_RIGHT:return new _t(new Je(R,E),new Je(R+Lt,E),new Je(ar,jr-or),new Je(ar,jr));case Nr.BOTTOM_RIGHT:return new _t(new Je(ar,E),new Je(ar,E+or),new Je(R+Lt,jr),new Je(R,jr));case Nr.BOTTOM_LEFT:default:return new _t(new Je(ar,jr),new Je(ar-Lt,jr),new Je(R,E+or),new Je(R,E))}},Un=function(R){return[R.topLeftBorderBox,R.topRightBorderBox,R.bottomRightBorderBox,R.bottomLeftBorderBox]},un=function(R){return[R.topLeftContentBox,R.topRightContentBox,R.bottomRightContentBox,R.bottomLeftContentBox]},gi=function(R){return[R.topLeftPaddingBox,R.topRightPaddingBox,R.bottomRightPaddingBox,R.bottomLeftPaddingBox]},Kn=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}(),qi=function(){function R(E){this.opacity=E,this.type=2,this.target=6}return R}(),mi=function(R){return R.type===0},Pi=function(R){return R.type===1},Za=function(R){return R.type===2},na=function(R,E){return R.length===E.length?R.some(function(U,k){return U===E[k]}):!1},ja=function(R,E,U,k,Pe){return R.map(function(it,Lt){switch(Lt){case 0:return it.add(E,U);case 1:return it.add(E+k,U);case 2:return it.add(E+k,U+Pe);case 3:return it.add(E,U+Pe)}return it})},Qa=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 gr(this.container),this.container.styles.opacity<1&&this.effects.push(new qi(this.container.styles.opacity)),this.container.styles.transform!==null){var k=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Pe=this.container.bounds.top+this.container.styles.transformOrigin[1].number,it=this.container.styles.transform;this.effects.push(new Kn(k,Pe,it))}if(this.container.styles.overflowX!==0){var Lt=Un(this.curves),or=gi(this.curves);na(Lt,or)?this.effects.push(new Ii(Lt,6)):(this.effects.push(new Ii(Lt,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,Pe=this.effects.slice(0);k;){var it=k.effects.filter(function(ar){return!Pi(ar)});if(U||k.container.styles.position!==0||!k.parent){if(Pe.unshift.apply(Pe,it),U=[2,3].indexOf(k.container.styles.position)===-1,k.container.styles.overflowX!==0){var Lt=Un(k.curves),or=gi(k.curves);na(Lt,or)||Pe.unshift(new Ii(or,6))}}else Pe.unshift.apply(Pe,it);k=k.parent}return Pe.filter(function(ar){return Xr(ar.target,E)})},R}(),Fs=function(R,E,U,k){R.container.elements.forEach(function(Pe){var it=Xr(Pe.flags,4),Lt=Xr(Pe.flags,2),or=new Ra(Pe,R);Xr(Pe.styles.display,2048)&&k.push(or);var ar=Xr(Pe.flags,8)?[]:k;if(it||Lt){var jr=it||Pe.styles.isPositioned()?U:E,qr=new Qa(or);if(Pe.styles.isPositioned()||Pe.styles.opacity<1||Pe.styles.isTransformed()){var mn=Pe.styles.zIndex.order;if(mn<0){var h=0;jr.negativeZIndex.some(function(ce,Qe){return mn>ce.element.container.styles.zIndex.order?(h=Qe,!1):h>0}),jr.negativeZIndex.splice(h,0,qr)}else if(mn>0){var Q=0;jr.positiveZIndex.some(function(ce,Qe){return mn>=ce.element.container.styles.zIndex.order?(Q=Qe+1,!1):Q>0}),jr.positiveZIndex.splice(Q,0,qr)}else jr.zeroOrAutoZIndexOrTransformedOrOpacity.push(qr)}else Pe.styles.isFloating()?jr.nonPositionedFloats.push(qr):jr.nonPositionedInlineLevel.push(qr);Fs(or,qr,it?qr:U,ar)}else Pe.styles.isInlineLevel()?E.inlineLevel.push(or):E.nonInlineLevel.push(or),Fs(or,E,U,ar);Xr(Pe.flags,8)&&Ks(Pe,ar)})},Ks=function(R,E){for(var U=R instanceof Go?R.start:1,k=R instanceof Go?R.reversed:!1,Pe=0;Pe<E.length;Pe++){var it=E[Pe];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}},fa=function(R){var E=new Ra(R,null),U=new Qa(E),k=[];return Fs(E,U,U,k),Ks(E.container,k),U},sa=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)}},ps=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 Ft(R)?U.push(R.subdivide(.5,!1)):U.push(R),Ft(E)?U.push(E.subdivide(.5,!0)):U.push(E),U},Ms=function(R,E,U,k){var Pe=[];return Ft(R)?Pe.push(R.subdivide(.5,!1)):Pe.push(R),Ft(U)?Pe.push(U.subdivide(.5,!0)):Pe.push(U),Ft(k)?Pe.push(k.subdivide(.5,!0).reverse()):Pe.push(k),Ft(E)?Pe.push(E.subdivide(.5,!1).reverse()):Pe.push(E),Pe},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),Pe=_a(E.paddingRight,U.width),it=_a(E.paddingTop,U.width),Lt=_a(E.paddingBottom,U.width);return U.add(k+E.borderLeftWidth,it+E.borderTopWidth,-(E.borderRightWidth+E.borderLeftWidth+k+Pe),-(E.borderTopWidth+E.borderBottomWidth+it+Lt))},_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),Pe=Fc(zl(R.styles.backgroundClip,E),R),it=gA(zl(R.styles.backgroundSize,E),U,k),Lt=it[0],or=it[1],ar=Ao(zl(R.styles.backgroundPosition,E),k.width-Lt,k.height-or),jr=_u(zl(R.styles.backgroundRepeat,E),ar,it,k,Pe),qr=Math.round(k.left+ar[0]),mn=Math.round(k.top+ar[1]);return[jr,qr,mn,Lt,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],Pe=E[1],it=E[2],Lt=R[0],or=R[1];if(!Lt)return[0,0];if(Fi(Lt)&&or&&Fi(or))return[_a(Lt,U.width),_a(or,U.height)];var ar=jc(it);if(pi(Lt)&&(Lt.value===M.CONTAIN||Lt.value===M.COVER)){if(jc(it)){var jr=U.width/U.height;return jr<it!=(Lt.value===M.COVER)?[U.width,U.width/it]:[U.height*it,U.height]}return[U.width,U.height]}var qr=jc(k),mn=jc(Pe),h=qr||mn;if(Dc(Lt)&&(!or||Dc(or))){if(qr&&mn)return[k,Pe];if(!ar&&!h)return[U.width,U.height];if(h&&ar){var Q=qr?k:Pe*it,ce=mn?Pe:k/it;return[Q,ce]}var Qe=qr?k:U.width,ut=mn?Pe:U.height;return[Qe,ut]}if(ar){var ht=0,mt=0;return Fi(Lt)?ht=_a(Lt,U.width):Fi(or)&&(mt=_a(or,U.height)),Dc(Lt)?ht=mt*it:(!or||Dc(or))&&(mt=ht/it),[ht,mt]}var Dt=null,Pt=null;if(Fi(Lt)?Dt=_a(Lt,U.width):or&&Fi(or)&&(Pt=_a(or,U.height)),Dt!==null&&(!or||Dc(or))&&(Pt=qr&&mn?Dt/k*Pe:U.height),Pt!==null&&Dc(Lt)&&(Dt=qr&&mn?Pt/Pe*k:U.width),Dt!==null&&Pt!==null)return[Dt,Pt];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,Pe){var it=E[0],Lt=E[1],or=U[0],ar=U[1];switch(R){case 2:return[new Je(Math.round(k.left),Math.round(k.top+Lt)),new Je(Math.round(k.left+k.width),Math.round(k.top+Lt)),new Je(Math.round(k.left+k.width),Math.round(ar+k.top+Lt)),new Je(Math.round(k.left),Math.round(ar+k.top+Lt))];case 3:return[new Je(Math.round(k.left+it),Math.round(k.top)),new Je(Math.round(k.left+it+or),Math.round(k.top)),new Je(Math.round(k.left+it+or),Math.round(k.height+k.top)),new Je(Math.round(k.left+it),Math.round(k.height+k.top))];case 1:return[new Je(Math.round(k.left+it),Math.round(k.top+Lt)),new Je(Math.round(k.left+it+or),Math.round(k.top+Lt)),new Je(Math.round(k.left+it+or),Math.round(k.top+Lt+ar)),new Je(Math.round(k.left+it),Math.round(k.top+Lt+ar))];default:return[new Je(Math.round(Pe.left),Math.round(Pe.top)),new Je(Math.round(Pe.left+Pe.width),Math.round(Pe.top)),new Je(Math.round(Pe.left+Pe.width),Math.round(Pe.height+Pe.top)),new Je(Math.round(Pe.left),Math.round(Pe.height+Pe.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"),Pe=this._document.createElement("img"),it=this._document.createElement("span"),Lt=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",Lt.appendChild(k),Pe.src=tc,Pe.width=1,Pe.height=1,Pe.style.margin="0",Pe.style.padding="0",Pe.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(Pe);var or=Pe.offsetTop-it.offsetTop+2;k.removeChild(it),k.appendChild(this._document.createTextNode(eA)),k.style.lineHeight="normal",Pe.style.verticalAlign="super";var ar=Pe.offsetTop-k.offsetTop+2;return Lt.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 Pe=R.call(this,U,k)||this;return Pe._activeEffects=[],Pe.canvas=k.canvas?k.canvas:document.createElement("canvas"),Pe.ctx=Pe.canvas.getContext("2d"),k.canvas||(Pe.canvas.width=Math.floor(k.width*k.scale),Pe.canvas.height=Math.floor(k.height*k.scale),Pe.canvas.style.width=k.width+"px",Pe.canvas.style.height=k.height+"px"),Pe.fontMetrics=new tA(document),Pe.ctx.scale(Pe.options.scale,Pe.options.scale),Pe.ctx.translate(-k.x,-k.y),Pe.ctx.textBaseline="bottom",Pe._activeEffects=[],Pe.context.logger.debug("Canvas renderer initialized ("+k.width+"x"+k.height+") with scale "+k.scale),Pe}return E.prototype.applyEffects=function(U){for(var k=this;this._activeEffects.length;)this.popEffect();U.forEach(function(Pe){return k.applyEffect(Pe)})},E.prototype.applyEffect=function(U){this.ctx.save(),Za(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)),Pi(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 Fe(this,void 0,void 0,function(){var k;return se(this,function(Pe){switch(Pe.label){case 0:return k=U.element.container.styles,k.isVisible()?[4,this.renderStackContent(U)]:[3,2];case 1:Pe.sent(),Pe.label=2;case 2:return[2]}})})},E.prototype.renderNode=function(U){return Fe(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,Pe){var it=this;if(k===0)this.ctx.fillText(U.text,U.bounds.left,U.bounds.top+Pe);else{var Lt=ds(U.text);Lt.reduce(function(or,ar){return it.ctx.fillText(ar,or,U.bounds.top+Pe),or+it.ctx.measureText(ar).width},U.bounds.left)}},E.prototype.createFontStyle=function(U){var k=U.fontVariant.filter(function(Lt){return Lt==="normal"||Lt==="small-caps"}).join(""),Pe=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,Pe].join(" "),Pe,it]},E.prototype.renderTextNode=function(U,k){return Fe(this,void 0,void 0,function(){var Pe,it,Lt,or,ar,jr,qr,mn,h=this;return se(this,function(Q){return Pe=this.createFontStyle(k),it=Pe[0],Lt=Pe[1],or=Pe[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(Lt,or),jr=ar.baseline,qr=ar.middle,mn=k.paintOrder,U.textBounds.forEach(function(ce){mn.forEach(function(Qe){switch(Qe){case 0:h.ctx.fillStyle=Ea(k.color),h.renderTextWithLetterSpacing(ce,k.letterSpacing,jr);var ut=k.textShadow;ut.length&&ce.text.trim().length&&(ut.slice(0).reverse().forEach(function(ht){h.ctx.shadowColor=Ea(ht.color),h.ctx.shadowOffsetX=ht.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=ht.offsetY.number*h.options.scale,h.ctx.shadowBlur=ht.blur.number,h.renderTextWithLetterSpacing(ce,k.letterSpacing,jr)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),k.textDecorationLine.length&&(h.ctx.fillStyle=Ea(k.textDecorationColor||k.color),k.textDecorationLine.forEach(function(ht){switch(ht){case 1:h.ctx.fillRect(ce.bounds.left,Math.round(ce.bounds.top+jr),ce.bounds.width,1);break;case 2:h.ctx.fillRect(ce.bounds.left,Math.round(ce.bounds.top),ce.bounds.width,1);break;case 3:h.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&&(h.ctx.strokeStyle=Ea(k.webkitTextStrokeColor),h.ctx.lineWidth=k.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(ce.text,ce.bounds.left,ce.bounds.top+jr)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},E.prototype.renderReplacedElement=function(U,k,Pe){if(Pe&&U.intrinsicWidth>0&&U.intrinsicHeight>0){var it=dl(U),Lt=gi(k);this.path(Lt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Pe,0,0,U.intrinsicWidth,U.intrinsicHeight,it.left,it.top,it.width,it.height),this.ctx.restore()}},E.prototype.renderNodeContent=function(U){return Fe(this,void 0,void 0,function(){var k,Pe,it,Lt,or,ar,mt,mt,jr,qr,mn,h,Pt,Q,ce,zt,Qe,ut,ht,mt,Dt,Pt,zt;return se(this,function(fr){switch(fr.label){case 0:this.applyEffects(U.getEffects(4)),k=U.container,Pe=U.curves,it=k.styles,Lt=0,or=k.textNodes,fr.label=1;case 1:return Lt<or.length?(ar=or[Lt],[4,this.renderTextNode(ar,it)]):[3,4];case 2:fr.sent(),fr.label=3;case 3:return Lt++,[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,Pe,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,Pe,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,Pe,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?(jr=new E(this.context,{scale:this.options.scale,backgroundColor:k.backgroundColor,x:0,y:0,width:k.width,height:k.height}),[4,jr.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 Je(k.bounds.left+mn*.39363,k.bounds.top+mn*.79),new Je(k.bounds.left+mn*.16,k.bounds.top+mn*.5549),new Je(k.bounds.left+mn*.27347,k.bounds.top+mn*.44071),new Je(k.bounds.left+mn*.39694,k.bounds.top+mn*.5649),new Je(k.bounds.left+mn*.72983,k.bounds.top+mn*.23),new Je(k.bounds.left+mn*.84,k.bounds.top+mn*.34085),new Je(k.bounds.left+mn*.39363,k.bounds.top+mn*.79)]),this.ctx.fillStyle=Ea(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=Ea(dc),this.ctx.fill(),this.ctx.restore())),yA(k)&&k.value.length){switch(h=this.createFontStyle(it),Pt=h[0],Q=h[1],ce=this.fontMetrics.getMetrics(Pt,Q).baseline,this.ctx.font=Pt,this.ctx.fillStyle=Ea(it.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=nA(k.styles.textAlign),zt=dl(k),Qe=0,k.styles.textAlign){case 1:Qe+=zt.width/2;break;case 2:Qe+=zt.width;break}ut=zt.add(Qe,0,0,-zt.height/2+1),this.ctx.save(),this.path([new Je(zt.left,zt.top),new Je(zt.left+zt.width,zt.top),new Je(zt.left+zt.width,zt.top+zt.height),new Je(zt.left,zt.top+zt.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,Dt=ht.url,fr.label=15;case 15:return fr.trys.push([15,17,,18]),[4,this.context.cache.match(Dt)];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 "+Dt),[3,18];case 18:return[3,20];case 19:U.listValue&&k.styles.listStyleType!==-1&&(Pt=this.createFontStyle(it)[0],this.ctx.font=Pt,this.ctx.fillStyle=Ea(it.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",zt=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,zt),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 Fe(this,void 0,void 0,function(){var k,Pe,ht,it,Lt,ht,or,ar,ht,jr,qr,ht,mn,h,ht,Q,ce,ht,Qe,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,Pe=U.negativeZIndex,mt.label=2;case 2:return k<Pe.length?(ht=Pe[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,Lt=U.nonInlineLevel,mt.label=7;case 7:return it<Lt.length?(ht=Lt[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:jr=0,qr=U.nonPositionedInlineLevel,mt.label=15;case 15:return jr<qr.length?(ht=qr[jr],[4,this.renderStack(ht)]):[3,18];case 16:mt.sent(),mt.label=17;case 17:return jr++,[3,15];case 18:mn=0,h=U.inlineLevel,mt.label=19;case 19:return mn<h.length?(ht=h[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:Qe=0,ut=U.positiveZIndex,mt.label=27;case 27:return Qe<ut.length?(ht=ut[Qe],[4,this.renderStack(ht)]):[3,30];case 28:mt.sent(),mt.label=29;case 29:return Qe++,[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(Pe,it){var Lt=Ft(Pe)?Pe.start:Pe;it===0?k.ctx.moveTo(Lt.x,Lt.y):k.ctx.lineTo(Lt.x,Lt.y),Ft(Pe)&&k.ctx.bezierCurveTo(Pe.startControl.x,Pe.startControl.y,Pe.endControl.x,Pe.endControl.y,Pe.end.x,Pe.end.y)})},E.prototype.renderRepeat=function(U,k,Pe,it){this.path(U),this.ctx.fillStyle=k,this.ctx.translate(Pe,it),this.ctx.fill(),this.ctx.translate(-Pe,-it)},E.prototype.resizeImage=function(U,k,Pe){var it;if(U.width===k&&U.height===Pe)return U;var Lt=(it=this.canvas.ownerDocument)!==null&&it!==void 0?it:document,or=Lt.createElement("canvas");or.width=Math.max(1,k),or.height=Math.max(1,Pe);var ar=or.getContext("2d");return ar.drawImage(U,0,0,U.width,U.height,0,0,k,Pe),or},E.prototype.renderBackgroundImage=function(U){return Fe(this,void 0,void 0,function(){var k,Pe,it,Lt,or,ar;return se(this,function(jr){switch(jr.label){case 0:k=U.styles.backgroundImage.length-1,Pe=function(qr){var mn,h,Q,Zn,ei,Vi,Dr,Wn,Yr,ce,Zn,ei,Vi,Dr,Wn,Qe,ut,ht,mt,Dt,Pt,zt,fr,Vr,Yr,Sr,Zn,Pn,Pr,Dr,Wn,vi,ei,Vi,Gi,ga,Yi,Ss,Ds,fs,cs,Ls;return se(this,function(Us){switch(Us.label){case 0:if(qr.type!==0)return[3,5];mn=void 0,h=qr.url,Us.label=1;case 1:return Us.trys.push([1,3,,4]),[4,it.context.cache.match(h)];case 2:return mn=Us.sent(),[3,4];case 3:return Us.sent(),it.context.logger.error("Error loading background-image "+h),[3,4];case 4:return mn&&(Q=Wc(U,k,[mn.width,mn.height,mn.width/mn.height]),Zn=Q[0],ei=Q[1],Vi=Q[2],Dr=Q[3],Wn=Q[4],Yr=it.ctx.createPattern(it.resizeImage(mn,Dr,Wn),"repeat"),it.renderRepeat(Zn,Yr,ei,Vi)),[3,6];case 5:ic(qr)?(ce=Wc(U,k,[null,null,null]),Zn=ce[0],ei=ce[1],Vi=ce[2],Dr=ce[3],Wn=ce[4],Qe=jo(qr.angle,Dr,Wn),ut=Qe[0],ht=Qe[1],mt=Qe[2],Dt=Qe[3],Pt=Qe[4],zt=document.createElement("canvas"),zt.width=Dr,zt.height=Wn,fr=zt.getContext("2d"),Vr=fr.createLinearGradient(ht,Dt,mt,Pt),Ll(qr.stops,ut).forEach(function(Va){return Vr.addColorStop(Va.stop,Ea(Va.color))}),fr.fillStyle=Vr,fr.fillRect(0,0,Dr,Wn),Dr>0&&Wn>0&&(Yr=it.ctx.createPattern(zt,"repeat"),it.renderRepeat(Zn,Yr,ei,Vi))):ac(qr)&&(Sr=Wc(U,k,[null,null,null]),Zn=Sr[0],Pn=Sr[1],Pr=Sr[2],Dr=Sr[3],Wn=Sr[4],vi=qr.position.length===0?[nl]:qr.position,ei=_a(vi[0],Dr),Vi=_a(vi[vi.length-1],Wn),Gi=Ya(qr,ei,Vi,Dr,Wn),ga=Gi[0],Yi=Gi[1],ga>0&&Yi>0&&(Ss=it.ctx.createRadialGradient(Pn+ei,Pr+Vi,0,Pn+ei,Pr+Vi,ga),Ll(qr.stops,ga*2).forEach(function(Va){return Ss.addColorStop(Va.stop,Ea(Va.color))}),it.path(Zn),it.ctx.fillStyle=Ss,ga!==Yi?(Ds=U.bounds.left+.5*U.bounds.width,fs=U.bounds.top+.5*U.bounds.height,cs=Yi/ga,Ls=1/cs,it.ctx.save(),it.ctx.translate(Ds,fs),it.ctx.transform(1,0,0,cs,0,0),it.ctx.translate(-Ds,-fs),it.ctx.fillRect(Pn,Ls*(Pr-fs)+fs,Dr,Wn*Ls),it.ctx.restore()):it.ctx.fill())),Us.label=6;case 6:return k--,[2]}})},it=this,Lt=0,or=U.styles.backgroundImage.slice(0).reverse(),jr.label=1;case 1:return Lt<or.length?(ar=or[Lt],[5,Pe(ar)]):[3,4];case 2:jr.sent(),jr.label=3;case 3:return Lt++,[3,1];case 4:return[2]}})})},E.prototype.renderSolidBorder=function(U,k,Pe){return Fe(this,void 0,void 0,function(){return se(this,function(it){return this.path(sa(Pe,k)),this.ctx.fillStyle=Ea(U),this.ctx.fill(),[2]})})},E.prototype.renderDoubleBorder=function(U,k,Pe,it){return Fe(this,void 0,void 0,function(){var Lt,or;return se(this,function(ar){switch(ar.label){case 0:return k<3?[4,this.renderSolidBorder(U,Pe,it)]:[3,2];case 1:return ar.sent(),[2];case 2:return Lt=ks(it,Pe),this.path(Lt),this.ctx.fillStyle=Ea(U),this.ctx.fill(),or=ps(it,Pe),this.path(or),this.ctx.fill(),[2]}})})},E.prototype.renderNodeBackgroundAndBorders=function(U){return Fe(this,void 0,void 0,function(){var k,Pe,it,Lt,or,ar,jr,qr,mn=this;return se(this,function(h){switch(h.label){case 0:return this.applyEffects(U.getEffects(2)),k=U.container.styles,Pe=!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}],Lt=rA(zl(k.backgroundClip,0),U.curves),Pe||k.boxShadow.length?(this.ctx.save(),this.path(Lt),this.ctx.clip(),js(k.backgroundColor)||(this.ctx.fillStyle=Ea(k.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(U.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),k.boxShadow.slice(0).reverse().forEach(function(Q){mn.ctx.save();var ce=Un(U.curves),Qe=Q.inset?0:ou,ut=ja(ce,-Qe+(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+Qe,mn.ctx.shadowOffsetY=Q.offsetY.number,mn.ctx.shadowColor=Ea(Q.color),mn.ctx.shadowBlur=Q.blur.number,mn.ctx.fillStyle=Q.inset?Ea(Q.color):"rgba(0,0,0,1)",mn.ctx.fill(),mn.ctx.restore()}),h.label=2;case 2:or=0,ar=0,jr=it,h.label=3;case 3:return ar<jr.length?(qr=jr[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 h.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 h.sent(),[3,11];case 7:return qr.style!==4?[3,9]:[4,this.renderDoubleBorder(qr.color,qr.width,or,U.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(qr.color,or,U.curves)];case 10:h.sent(),h.label=11;case 11:or++,h.label=12;case 12:return ar++,[3,3];case 13:return[2]}})})},E.prototype.renderDashedDottedBorder=function(U,k,Pe,it,Lt){return Fe(this,void 0,void 0,function(){var or,ar,jr,qr,mn,h,Q,ce,Qe,ut,ht,mt,Dt,Pt,zt,fr,zt,fr;return se(this,function(Vr){return this.ctx.save(),or=Ws(it,Pe),ar=sa(it,Pe),Lt===2&&(this.path(ar),this.ctx.clip()),Ft(ar[0])?(jr=ar[0].start.x,qr=ar[0].start.y):(jr=ar[0].x,qr=ar[0].y),Ft(ar[1])?(mn=ar[1].end.x,h=ar[1].end.y):(mn=ar[1].x,h=ar[1].y),Pe===0||Pe===2?Q=Math.abs(jr-mn):Q=Math.abs(qr-h),this.ctx.beginPath(),Lt===3?this.formatPath(or):this.formatPath(ar.slice(0,2)),ce=k<3?k*3:k*2,Qe=k<3?k*2:k,Lt===3&&(ce=k,Qe=k),ut=!0,Q<=ce*2?ut=!1:Q<=ce*2+Qe?(ht=Q/(2*ce+Qe),ce*=ht,Qe*=ht):(mt=Math.floor((Q+Qe)/(ce+Qe)),Dt=(Q-mt*ce)/(mt-1),Pt=(Q-(mt+1)*ce)/mt,Qe=Pt<=0||Math.abs(Qe-Dt)<Math.abs(Qe-Pt)?Dt:Pt),ut&&(Lt===3?this.ctx.setLineDash([0,ce+Qe]):this.ctx.setLineDash([ce,Qe])),Lt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=k):this.ctx.lineWidth=k*2+1.1,this.ctx.strokeStyle=Ea(U),this.ctx.stroke(),this.ctx.setLineDash([]),Lt===2&&(Ft(ar[0])&&(zt=ar[3],fr=ar[0],this.ctx.beginPath(),this.formatPath([new Je(zt.end.x,zt.end.y),new Je(fr.start.x,fr.start.y)]),this.ctx.stroke()),Ft(ar[1])&&(zt=ar[1],fr=ar[2],this.ctx.beginPath(),this.formatPath([new Je(zt.end.x,zt.end.y),new Je(fr.start.x,fr.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},E.prototype.render=function(U){return Fe(this,void 0,void 0,function(){var k;return se(this,function(Pe){switch(Pe.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ea(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),k=fa(U),[4,this.renderStack(k)];case 1:return Pe.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 un(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 Pe=R.call(this,U,k)||this;return Pe.canvas=k.canvas?k.canvas:document.createElement("canvas"),Pe.ctx=Pe.canvas.getContext("2d"),Pe.options=k,Pe.canvas.width=Math.floor(k.width*k.scale),Pe.canvas.height=Math.floor(k.height*k.scale),Pe.canvas.style.width=k.width+"px",Pe.canvas.style.height=k.height+"px",Pe.ctx.scale(Pe.options.scale,Pe.options.scale),Pe.ctx.translate(-k.x,-k.y),Pe.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+k.width+"x"+k.height+" at "+k.x+","+k.y+") with scale "+k.scale),Pe}return E.prototype.render=function(U){return Fe(this,void 0,void 0,function(){var k,Pe;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 Pe=it.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ea(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Pe,-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,ke([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,ke([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,ke([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,ke([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 Fe(void 0,void 0,void 0,function(){var U,k,Pe,it,Lt,or,ar,jr,qr,mn,h,Q,ce,Qe,ut,ht,mt,Dt,Pt,zt,Vr,fr,Vr,Yr,Sr,Zn,Pn,Pr,Dr,Wn,vi,ei,Vi,Gi,ga,Yi,Ss,Ds,fs,cs;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 Pe={allowTaint:(Yr=E.allowTaint)!==null&&Yr!==void 0?Yr:!1,imageTimeout:(Sr=E.imageTimeout)!==null&&Sr!==void 0?Sr: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},Pe),Lt={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(Lt.scrollX,Lt.scrollY,Lt.windowWidth,Lt.windowHeight),ar=new Uc(it,or),jr=(ei=E.foreignObjectRendering)!==null&&ei!==void 0?ei:!1,qr={allowTaint:(Vi=E.allowTaint)!==null&&Vi!==void 0?Vi:!1,onclone:E.onclone,ignoreElements:E.ignoreElements,inlineImages:jr,copyStyles:jr},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),h=mn.clonedReferenceElement,h?[4,mn.toIFrame(U,or)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Q=Ls.sent(),ce=xs(h)||Xa(h)?O(h.ownerDocument):Y(ar,h),Qe=ce.width,ut=ce.height,ht=ce.left,mt=ce.top,Dt=wA(ar,h,E.backgroundColor),Pt={canvas:E.canvas,backgroundColor:Dt,scale:(ga=(Gi=E.scale)!==null&&Gi!==void 0?Gi:k.devicePixelRatio)!==null&&ga!==void 0?ga:1,x:((Yi=E.x)!==null&&Yi!==void 0?Yi:0)+ht,y:((Ss=E.y)!==null&&Ss!==void 0?Ss:0)+mt,width:(Ds=E.width)!==null&&Ds!==void 0?Ds:Math.ceil(Qe),height:(fs=E.height)!==null&&fs!==void 0?fs:Math.ceil(ut)},jr?(ar.logger.debug("Document cloned, using foreign object rendering"),Vr=new bA(ar,Pt),[4,Vr.render(h)]):[3,3];case 2:return zt=Ls.sent(),[3,5];case 3:return ar.logger.debug("Document cloned, element located at "+ht+","+mt+" with size "+Qe+"x"+ut+" using computed rendering"),ar.logger.debug("Starting DOM parsing"),fr=fc(ar,h),Dt===fr.styles.backgroundColor&&(fr.styles.backgroundColor=bo.TRANSPARENT),ar.logger.debug("Starting renderer for element at "+Pt.x+","+Pt.y+" with size "+Pt.width+"x"+Pt.height),Vr=new vA(ar,Pt),[4,Vr.render(fr)];case 4:zt=Ls.sent(),Ls.label=5;case 5:return(!((cs=E.removeContainer)!==null&&cs!==void 0)||cs)&&(ul.destroy(Q)||ar.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ar.logger.debug("Finished rendering"),[2,zt]}})})},wA=function(R,E,U){var k=E.ownerDocument,Pe=k.documentElement?so(R,getComputedStyle(k.documentElement).backgroundColor):bo.TRANSPARENT,it=k.body?so(R,getComputedStyle(k.body).backgroundColor):bo.TRANSPARENT,Lt=typeof U=="string"?so(R,U):U===null?bo.TRANSPARENT:4294967295;return E===k.documentElement?js(Pe)?js(it)?Lt:it:Pe:Lt};return Vc})},44164:function(bn,Wt,g){var we=g(97671);(function(se,ke){bn.exports=ke(g(73207),g(64270))})(self,function(Fe,se){return function(){var ke={"./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"),z=(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-=z.left,Ce.top-=z.top;var Le=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:Le,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),z=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=o.n(z),J=o("jspdf"),be=o.n(J);function Ce(Le){"@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(Le)}J.jsPDF.getPageSize=function(Le,ae,me){if(Ce(Le)==="object"){var T=Le;Le=T.orientation,ae=T.unit||ae,me=T.format||me}ae=ae||"mm",me=me||"a4",Le=(""+(Le||"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(Le==="p"||Le==="portrait"){if(Le="p",_>ve){var N=_;_=ve,ve=N}}else if(Le==="l"||Le==="landscape"){if(Le="l",ve>_){var N=_;_=ve,ve=N}}else throw"Invalid orientation: "+Le;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"),z={toContainer:ee.default.prototype.toContainer};ee.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},ee.default.prototype.toContainer=function(){return z.toContainer.call(this).then(function(){var be=this.prop.container,Ce=this.prop.pageSize.inner.px.height,Le=[].concat(this.opt.pagebreak.mode),ae={avoidAll:Le.indexOf("avoid-all")!==-1,css:Le.indexOf("css")!==-1,legacy:Le.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 N=window.getComputedStyle(ve),X=["always","page","left","right"],pe=["avoid","avoid-page"];_={before:_.before||X.indexOf(N.breakBefore||N.pageBreakBefore)!==-1,after:_.after||X.indexOf(N.breakAfter||N.pageBreakAfter)!==-1,avoid:_.avoid||pe.indexOf(N.breakInside||N.pageBreakInside)!==-1}}Object.keys(_).forEach(function(Jt){_[Jt]=_[Jt]||me[Jt].indexOf(ve)!==-1});var qe=ve.getBoundingClientRect();if(_.avoid&&!_.before){var at=Math.floor(qe.top/Ce),rt=Math.floor(qe.bottom/Ce),Rt=Math.abs(qe.bottom-qe.top)/Ce;rt!==at&&Rt<=1&&(_.before=!0)}if(_.before){var lr=(0,B.createElement)("div",{style:{display:"block",height:Ce-qe.top%Ce+"px"}});ve.parentNode.insertBefore(lr,ve)}if(_.after){var lr=(0,B.createElement)("div",{style:{display:"block",height:Ce-qe.bottom%Ce+"px"}});ve.parentNode.insertBefore(lr,ve.nextSibling)}})})}},"./src/utils.js":function(I,n,o){"use strict";o.r(n),o.d(n,{objType:function(){return Le},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),z=o("./node_modules/core-js/modules/es.string.iterator.js"),le=o.n(z),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 Le=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 N=_.getElementsByTagName("script"),X=N.length;X-- >0;null)N[X].parentNode.removeChild(N[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),N=he.firstChild;N;N=N.nextSibling)(ve===!0||N.nodeType!==1||N.nodeName!=="SCRIPT")&&_.appendChild(oe(N,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(Le(he)==="number")return he*72/96/ve;var _={};for(var N in he)_[N]=he[N]*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),z=o("./node_modules/core-js/modules/es.function.name.js"),le=o.n(z),J=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),be=o.n(J),Ce=o("jspdf"),Le=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 _(N){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(N),pe};ve.prototype=Object.create(he.prototype),ve.prototype.constructor=ve,ve.convert=function(N,X){return N.__proto__=X||ve.prototype,N},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(N,X){function pe(qe){switch((0,T.objType)(qe)){case"string":return"string";case"element":return qe.nodeName.toLowerCase&&qe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(X=X||pe(N),X){case"string":return this.set({src:(0,T.createElement)("div",{innerHTML:N})});case"element":return this.set({src:N});case"canvas":return this.set({canvas:N});case"img":return this.set({img:N});default:return this.error("Unknown source type.")}})},ve.prototype.to=function(N){switch(N){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 N=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(N).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)"},qe={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:qe}),this.prop.container.appendChild(at),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},ve.prototype.toCanvas=function(){var N=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(N).then(function(){var pe=Object.assign({},this.opt.html2canvas);return delete pe.onrendered,ae(this.prop.container,pe)}).then(function(pe){var qe=this.opt.html2canvas.onrendered||function(){};qe(pe),this.prop.canvas=pe,document.body.removeChild(this.prop.overlay)})},ve.prototype.toImg=function(){var N=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(N).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 N=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(N).then(function(){var pe=this.prop.canvas,qe=this.opt,at=pe.height,rt=Math.floor(pe.width*this.prop.pageSize.inner.ratio),Rt=Math.ceil(at/rt),lr=this.prop.pageSize.inner.height,Jt=document.createElement("canvas"),Ze=Jt.getContext("2d");Jt.width=pe.width,Jt.height=rt,this.prop.pdf=this.prop.pdf||new Ce.jsPDF(qe.jsPDF);for(var Er=0;Er<Rt;Er++){Er===Rt-1&&at%rt!==0&&(Jt.height=at%rt,lr=Jt.height*this.prop.pageSize.inner.width/Jt.width);var Cr=Jt.width,Kr=Jt.height;Ze.fillStyle="white",Ze.fillRect(0,0,Cr,Kr),Ze.drawImage(pe,0,Er*rt,Cr,Kr,0,0,Cr,Kr),Er&&this.prop.pdf.addPage();var _r=Jt.toDataURL("image/"+qe.image.type,qe.image.quality);this.prop.pdf.addImage(_r,qe.image.type,qe.margin[1],qe.margin[0],this.prop.pageSize.inner.width,lr)}})},ve.prototype.output=function(N,X,pe){return pe=pe||"pdf",pe.toLowerCase()==="img"||pe.toLowerCase()==="image"?this.outputImg(N,X):this.outputPdf(N,X)},ve.prototype.outputPdf=function(N,X){var pe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(pe).then(function(){return this.prop.pdf.output(N,X)})},ve.prototype.outputImg=function(N,X){var pe=[function(){return this.prop.img||this.toImg()}];return this.thenList(pe).then(function(){switch(N){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 "'+N+'" is not supported.'}})},ve.prototype.save=function(N){var X=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(X).set(N?{filename:N}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ve.prototype.set=function(N){if((0,T.objType)(N)!=="object")return this;var X=Object.keys(N||{}).map(function(pe){switch(pe){case"margin":return this.setMargin.bind(this,N.margin);case"jsPDF":return function(){return this.opt.jsPDF=N.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,N.pageSize);default:return pe in ve.template.prop?function(){this.prop[pe]=N[pe]}:function(){this.opt[pe]=N[pe]}}},this);return this.then(function(){return this.thenList(X)})},ve.prototype.get=function(N,X){return this.then(function(){var qe=N in ve.template.prop?this.prop[N]:this.opt[N];return X?X(qe):qe})},ve.prototype.setMargin=function(N){return this.then(function(){switch((0,T.objType)(N)){case"number":N=[N,N,N,N];case"array":if(N.length===2&&(N=[N[0],N[1],N[0],N[1]]),N.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=N}).then(this.setPageSize)},ve.prototype.setPageSize=function(N){return this.then(function(){N=N||Ce.jsPDF.getPageSize(this.opt.jsPDF),N.hasOwnProperty("inner")||(N.inner={width:N.width-this.opt.margin[1]-this.opt.margin[3],height:N.height-this.opt.margin[0]-this.opt.margin[2]},N.inner.px={width:(0,T.toPx)(N.inner.width,N.k),height:(0,T.toPx)(N.inner.height,N.k)},N.inner.ratio=N.inner.height/N.inner.width),this.prop.pageSize=N})},ve.prototype.setProgress=function(N,X,pe,qe){return N!=null&&(this.progress.val=N),X!=null&&(this.progress.state=X),pe!=null&&(this.progress.n=pe),qe!=null&&(this.progress.stack=qe),this.progress.ratio=this.progress.val/this.progress.state,this},ve.prototype.updateProgress=function(N,X,pe,qe){return this.setProgress(N?this.progress.val+N:null,X||null,pe?this.progress.n+pe:null,qe?this.progress.stack.concat(qe):null)},ve.prototype.then=function(N,X){var pe=this;return this.thenCore(N,X,function(at,rt){return pe.updateProgress(null,null,1,[at]),he.prototype.then.call(this,function(lr){return pe.updateProgress(null,at),lr}).then(at,rt).then(function(lr){return pe.updateProgress(1),lr})})},ve.prototype.thenCore=function(N,X,pe){pe=pe||he.prototype.then;var qe=this;N&&(N=N.bind(qe)),X&&(X=X.bind(qe));var at=he.toString().indexOf("[native code]")!==-1&&he.name==="Promise",rt=at?qe:ve.convert(Object.assign({},qe),he.prototype),Rt=pe.call(rt,N,X);return ve.convert(Rt,qe.__proto__)},ve.prototype.thenExternal=function(N,X){return he.prototype.then.call(this,N,X)},ve.prototype.thenList=function(N){var X=this;return N.forEach(function(qe){X=X.thenCore(qe)}),X},ve.prototype.catch=function(_){_&&(_=_.bind(this));var N=he.prototype.catch.call(this,_);return ve.convert(N,this)},ve.prototype.catchExternal=function(N){return he.prototype.catch.call(this,N)},ve.prototype.error=function(N){return this.then(function(){throw new Error(N)})},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,z=F==6,le=F==7,J=F==5||z;return function(be,Ce,Le,ae){for(var me=a(be),T=p(me),Ee=L(Ce,Le,3),oe=A(T.length),he=0,ve=ae||m,_=H?ve(be,oe):V||le?ve(be,0):void 0,N,X;oe>he;he++)if((J||he in T)&&(N=T[he],X=Ee(N,he,me),F))if(H)_[he]=X;else if(X)switch(F){case 3:return!0;case 5:return N;case 6:return he;case 2:S.call(_,N)}else switch(F){case 4:return!1;case 7:S.call(_,N)}return z?-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,z=ee.BUGGY_SAFARI_ITERATORS,le=F("iterator"),J="keys",be="values",Ce="entries",Le=function(){return this};I.exports=function(ae,me,T,Ee,oe,he,ve){p(T,me,Ee);var _=function(Ze){if(Ze===oe&&at)return at;if(!z&&Ze in pe)return pe[Ze];switch(Ze){case J:return function(){return new T(this,Ze)};case be:return function(){return new T(this,Ze)};case Ce:return function(){return new T(this,Ze)}}return function(){return new T(this)}},N=me+" Iterator",X=!1,pe=ae.prototype,qe=pe[le]||pe["@@iterator"]||oe&&pe[oe],at=!z&&qe||_(oe),rt=me=="Array"&&pe.entries||qe,Rt,lr,Jt;if(rt&&(Rt=a(rt.call(new ae)),B!==Object.prototype&&Rt.next&&(!H&&a(Rt)!==B&&(A?A(Rt,B):typeof Rt[le]!="function"&&S(Rt,le,Le)),m(Rt,N,!0,!0),H&&(V[N]=Le))),oe==be&&qe&&qe.name!==be&&(X=!0,at=function(){return qe.call(this)}),(!H||ve)&&pe[le]!==at&&S(pe,le,at),V[me]=at,oe)if(lr={values:_(be),keys:he?at:_(J),entries:_(Ce)},ve)for(Jt in lr)(z||X||!(Jt in pe))&&$(pe,Jt,lr[Jt]);else L({target:me,proto:!0,forced:z||X},lr);return lr}},"./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,z,le,J,be,Ce,Le;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?(Le=p(le,J),be=Le&&Le.value):be=le[J],z=$(ee?J:V+(B?".":"#")+J,F.forced),!z&&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,z,le=function(T){return z(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,Le=be.has,ae=be.set;ee=function(T,Ee){if(Le.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)||{}},z=function(T){return Le.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]:{}},z=function(T){return m(T,me)}}I.exports={set:ee,get:B,has:z,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 z=V==null||L(function(){var le={};return V[$].call(le)!==le});z&&(V={}),(!S||z)&&!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(),z="abcdefghijklmnopqrst";return V[B]=7,z.split("").forEach(function(le){ee[le]=le}),F({},V)[B]!=7||a(F({},ee)).join("")!=z})?function(ee,B){for(var z=S(ee),le=arguments.length,J=1,be=A.f,Ce=m.f;le>J;)for(var Le=$(arguments[J++]),ae=be?a(Le).concat(be(Le)):a(Le),me=ae.length,T=0,Ee;me>T;)Ee=ae[T++],(!L||Ce.call(Le,Ee))&&(z[Ee]=Le[Ee]);return z}: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"),z=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,Le=function(){try{Ce=new ActiveXObject("htmlfile")}catch(me){}Le=document.domain&&Ce?J(Ce):be()||J(Ce);for(var ae=a.length;ae--;)delete Le[V][a[ae]];return Le()};A[B]=!0,I.exports=Object.create||function(me,T){var Ee;return me!==null?(z[V]=L(me),Ee=new z,z[V]=null,Ee[B]=me):Ee=Le(),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,z){var le=z?!!z.unsafe:!1,J=z?!!z.enumerable:!1,be=z?!!z.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"),z=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)},Le=!J||!be;L({target:"Array",proto:!0,forced:Le},{concat:function(me){var T=m(this),Ee=F(T,0),oe=0,he,ve,_,N,X;for(he=-1,_=arguments.length;he<_;he++)if(X=he===-1?T:arguments[he],Ce(X)){if(N=S(X.length),oe+N>z)throw TypeError(le);for(ve=0;ve<N;ve++,oe++)ve in X&&$(Ee,oe,X[ve])}else{if(oe>=z)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,z=Math.max;L({target:"Array",proto:!0,forced:!V},{slice:function(J,be){var Ce=S(this),Le=m(Ce.length),ae=A(J,Le),me=A(be===void 0?Le:be,Le),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)(z(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,z=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],Le=Ce.prototype,ae=S(ee(Le))==be,me=function(ve){if(F(ve))throw TypeError("Cannot convert a Symbol value to a number");var _=H(ve,"number"),N,X,pe,qe,at,rt,Rt,lr;if(typeof _=="string"&&_.length>2){if(_=J(_),N=_.charCodeAt(0),N===43||N===45){if(X=_.charCodeAt(2),X===88||X===120)return NaN}else if(N===48){switch(_.charCodeAt(1)){case 66:case 98:pe=2,qe=49;break;case 79:case 111:pe=8,qe=55;break;default:return+_}for(at=_.slice(2),rt=at.length,Rt=0;Rt<rt;Rt++)if(lr=at.charCodeAt(Rt),lr<48||lr>qe)return NaN;return parseInt(at,pe)}}return+_};if(a(be,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var T=function(_){var N=arguments.length<1?0:_,X=this;return X instanceof T&&(ae?V(function(){Le.valueOf.call(X)}):S(X)!=be)?$(new Ce(me(N)),X,T):me(N)},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,z(Ce,he));T.prototype=Le,Le.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),z=a(B.source),le=B.flags,J=a(le===void 0&&B instanceof RegExp&&!("flags"in $)?m.call(B):le);return"/"+z+"/"+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,z=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 Le=z?Ce.slice(7,-1):Ce.replace(le,"$1");return Le===""?void 0:Le}}),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"),z=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"),Le=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"),N=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"),qe=o("./node_modules/core-js/internals/hidden-keys.js"),at=o("./node_modules/core-js/internals/uid.js"),rt=o("./node_modules/core-js/internals/well-known-symbol.js"),Rt=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),lr=o("./node_modules/core-js/internals/define-well-known-symbol.js"),Jt=o("./node_modules/core-js/internals/set-to-string-tag.js"),Ze=o("./node_modules/core-js/internals/internal-state.js"),Er=o("./node_modules/core-js/internals/array-iteration.js").forEach,Cr=pe("hidden"),Kr="Symbol",_r="prototype",Ue=rt("toPrimitive"),St=Ze.set,G=Ze.getterFor(Kr),v=Object[_r],f=p.Symbol,D=a("JSON","stringify"),fe=oe.f,W=he.f,P=T.f,te=ve.f,Ie=X("symbols"),Te=X("op-symbols"),Se=X("string-to-symbol-registry"),Ge=X("symbol-to-string-registry"),dt=X("wks"),Ke=p.QObject,Xe=!Ke||!Ke[_r]||!Ke[_r].findChild,At=m&&$(function(){return Le(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a!=7})?function(rr,Me,ot){var Zr=fe(v,Me);Zr&&delete v[Me],W(rr,Me,ot),Zr&&rr!==v&&W(v,Me,Zr)}:W,We=function(rr,Me){var ot=Ie[rr]=Le(f[_r]);return St(ot,{type:Kr,tag:rr,description:Me}),m||(ot.description=Me),ot},$e=function(Me,ot,Zr){Me===v&&$e(Te,ot,Zr),B(Me);var Tt=J(ot);return B(Zr),F(Ie,Tt)?(Zr.enumerable?(F(Me,Cr)&&Me[Cr][Tt]&&(Me[Cr][Tt]=!1),Zr=Le(Zr,{enumerable:Ce(0,!1)})):(F(Me,Cr)||W(Me,Cr,Ce(1,{})),Me[Cr][Tt]=!0),At(Me,Tt,Zr)):W(Me,Tt,Zr)},Bt=function(Me,ot){B(Me);var Zr=le(ot),Tt=ae(Zr).concat(re(Zr));return Er(Tt,function(Yt){(!m||Mt.call(Zr,Yt))&&$e(Me,Yt,Zr[Yt])}),Me},Kt=function(Me,ot){return ot===void 0?Le(Me):Bt(Le(Me),ot)},Mt=function(Me){var ot=J(Me),Zr=te.call(this,ot);return this===v&&F(Ie,ot)&&!F(Te,ot)?!1:Zr||!F(this,ot)||!F(Ie,ot)||F(this,Cr)&&this[Cr][ot]?Zr:!0},br=function(Me,ot){var Zr=le(Me),Tt=J(ot);if(!(Zr===v&&F(Ie,Tt)&&!F(Te,Tt))){var Yt=fe(Zr,Tt);return Yt&&F(Ie,Tt)&&!(F(Zr,Cr)&&Zr[Cr][Tt])&&(Yt.enumerable=!0),Yt}},vr=function(Me){var ot=P(le(Me)),Zr=[];return Er(ot,function(Tt){!F(Ie,Tt)&&!F(qe,Tt)&&Zr.push(Tt)}),Zr},re=function(Me){var ot=Me===v,Zr=P(ot?Te:le(Me)),Tt=[];return Er(Zr,function(Yt){F(Ie,Yt)&&(!ot||F(v,Yt))&&Tt.push(Ie[Yt])}),Tt};if(S||(f=function(){if(this instanceof f)throw TypeError("Symbol is not a constructor");var Me=!arguments.length||arguments[0]===void 0?void 0:be(arguments[0]),ot=at(Me),Zr=function(Tt){this===v&&Zr.call(Te,Tt),F(this,Cr)&&F(this[Cr],ot)&&(this[Cr][ot]=!1),At(this,ot,Ce(1,Tt))};return m&&Xe&&At(v,ot,{configurable:!0,set:Zr}),We(ot,Me)},N(f[_r],"toString",function(){return G(this).tag}),N(f,"withoutSetter",function(rr){return We(at(rr),rr)}),ve.f=Mt,he.f=$e,oe.f=br,me.f=T.f=vr,Ee.f=re,Rt.f=function(rr){return We(rt(rr),rr)},m&&(W(f[_r],"description",{configurable:!0,get:function(){return G(this).description}}),A||N(v,"propertyIsEnumerable",Mt,{unsafe:!0}))),L({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:f}),Er(ae(dt),function(rr){lr(rr)}),L({target:Kr,stat:!0,forced:!S},{for:function(rr){var Me=be(rr);if(F(Se,Me))return Se[Me];var ot=f(Me);return Se[Me]=ot,Ge[ot]=Me,ot},keyFor:function(Me){if(!ee(Me))throw TypeError(Me+" is not a symbol");if(F(Ge,Me))return Ge[Me]},useSetter:function(){Xe=!0},useSimple:function(){Xe=!1}}),L({target:"Object",stat:!0,forced:!S,sham:!m},{create:Kt,defineProperty:$e,defineProperties:Bt,getOwnPropertyDescriptor:br}),L({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:vr,getOwnPropertySymbols:re}),L({target:"Object",stat:!0,forced:$(function(){Ee.f(1)})},{getOwnPropertySymbols:function(Me){return Ee.f(z(Me))}}),D){var ue=!S||$(function(){var rr=f();return D([rr])!="[null]"||D({a:rr})!="{}"||D(Object(rr))!="{}"});L({target:"JSON",stat:!0,forced:ue},{stringify:function(Me,ot,Zr){for(var Tt=[Me],Yt=1,Gt;arguments.length>Yt;)Tt.push(arguments[Yt++]);if(Gt=ot,!(!V(ot)&&Me===void 0||ee(Me)))return H(ot)||(ot=function(nt,ct){if(typeof Gt=="function"&&(ct=Gt.call(this,nt,ct)),!ee(ct))return ct}),Tt[1]=ot,D.apply(null,Tt)}})}f[_r][Ue]||_(f[_r],Ue,f[_r].valueOf),Jt(f,Kr),qe[Cr]=!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(z){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(z){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(Ke){var Xe=typeof Ke;return Ke!==null&&(Xe==="object"||Xe==="function")}function o(Ke){return typeof Ke=="function"}var L=void 0;Array.isArray?L=Array.isArray:L=function(Ke){return Object.prototype.toString.call(Ke)==="[object Array]"};var p=L,a=0,A=void 0,m=void 0,S=function(Xe,At){ae[a]=Xe,ae[a+1]=At,a+=2,a===2&&(m?m(me):Ee())};function $(Ke){m=Ke}function F(Ke){S=Ke}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]",z=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)}:Le()}function be(){var Ke=0,Xe=new ee(me),At=document.createTextNode("");return Xe.observe(At,{characterData:!0}),function(){At.data=Ke=++Ke%2}}function Ce(){var Ke=new MessageChannel;return Ke.port1.onmessage=me,function(){return Ke.port2.postMessage(0)}}function Le(){var Ke=setTimeout;return function(){return Ke(me,1)}}var ae=new Array(1e3);function me(){for(var Ke=0;Ke<a;Ke+=2){var Xe=ae[Ke],At=ae[Ke+1];Xe(At),ae[Ke]=void 0,ae[Ke+1]=void 0}a=0}function T(){try{var Ke=Function("return this")().require("vertx");return A=Ke.runOnLoop||Ke.runOnContext,J()}catch(Xe){return Le()}}var Ee=void 0;B?Ee=le():ee?Ee=be():z?Ee=Ce():H===void 0?Ee=T():Ee=Le();function oe(Ke,Xe){var At=this,We=new this.constructor(_);We[ve]===void 0&&D(We);var $e=At._state;if($e){var Bt=arguments[$e-1];S(function(){return St($e,We,Bt,At._result)})}else _r(At,We,Ke,Xe);return We}function he(Ke){var Xe=this;if(Ke&&typeof Ke=="object"&&Ke.constructor===Xe)return Ke;var At=new Xe(_);return Ze(At,Ke),At}var ve=Math.random().toString(36).substring(2);function _(){}var N=void 0,X=1,pe=2;function qe(){return new TypeError("You cannot resolve a promise with itself")}function at(){return new TypeError("A promises callback cannot return that same promise.")}function rt(Ke,Xe,At,We){try{Ke.call(Xe,At,We)}catch($e){return $e}}function Rt(Ke,Xe,At){S(function(We){var $e=!1,Bt=rt(At,Xe,function(Kt){$e||($e=!0,Xe!==Kt?Ze(We,Kt):Cr(We,Kt))},function(Kt){$e||($e=!0,Kr(We,Kt))},"Settle: "+(We._label||" unknown promise"));!$e&&Bt&&($e=!0,Kr(We,Bt))},Ke)}function lr(Ke,Xe){Xe._state===X?Cr(Ke,Xe._result):Xe._state===pe?Kr(Ke,Xe._result):_r(Xe,void 0,function(At){return Ze(Ke,At)},function(At){return Kr(Ke,At)})}function Jt(Ke,Xe,At){Xe.constructor===Ke.constructor&&At===oe&&Xe.constructor.resolve===he?lr(Ke,Xe):At===void 0?Cr(Ke,Xe):o(At)?Rt(Ke,Xe,At):Cr(Ke,Xe)}function Ze(Ke,Xe){if(Ke===Xe)Kr(Ke,qe());else if(n(Xe)){var At=void 0;try{At=Xe.then}catch(We){Kr(Ke,We);return}Jt(Ke,Xe,At)}else Cr(Ke,Xe)}function Er(Ke){Ke._onerror&&Ke._onerror(Ke._result),Ue(Ke)}function Cr(Ke,Xe){Ke._state===N&&(Ke._result=Xe,Ke._state=X,Ke._subscribers.length!==0&&S(Ue,Ke))}function Kr(Ke,Xe){Ke._state===N&&(Ke._state=pe,Ke._result=Xe,S(Er,Ke))}function _r(Ke,Xe,At,We){var $e=Ke._subscribers,Bt=$e.length;Ke._onerror=null,$e[Bt]=Xe,$e[Bt+X]=At,$e[Bt+pe]=We,Bt===0&&Ke._state&&S(Ue,Ke)}function Ue(Ke){var Xe=Ke._subscribers,At=Ke._state;if(Xe.length!==0){for(var We=void 0,$e=void 0,Bt=Ke._result,Kt=0;Kt<Xe.length;Kt+=3)We=Xe[Kt],$e=Xe[Kt+At],We?St(At,We,$e,Bt):$e(Bt);Ke._subscribers.length=0}}function St(Ke,Xe,At,We){var $e=o(At),Bt=void 0,Kt=void 0,Mt=!0;if($e){try{Bt=At(We)}catch(br){Mt=!1,Kt=br}if(Xe===Bt){Kr(Xe,at());return}}else Bt=We;Xe._state!==N||($e&&Mt?Ze(Xe,Bt):Mt===!1?Kr(Xe,Kt):Ke===X?Cr(Xe,Bt):Ke===pe&&Kr(Xe,Bt))}function G(Ke,Xe){try{Xe(function(We){Ze(Ke,We)},function(We){Kr(Ke,We)})}catch(At){Kr(Ke,At)}}var v=0;function f(){return v++}function D(Ke){Ke[ve]=v++,Ke._state=void 0,Ke._result=void 0,Ke._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var W=function(){function Ke(Xe,At){this._instanceConstructor=Xe,this.promise=new Xe(_),this.promise[ve]||D(this.promise),p(At)?(this.length=At.length,this._remaining=At.length,this._result=new Array(this.length),this.length===0?Cr(this.promise,this._result):(this.length=this.length||0,this._enumerate(At),this._remaining===0&&Cr(this.promise,this._result))):Kr(this.promise,fe())}return Ke.prototype._enumerate=function(At){for(var We=0;this._state===N&&We<At.length;We++)this._eachEntry(At[We],We)},Ke.prototype._eachEntry=function(At,We){var $e=this._instanceConstructor,Bt=$e.resolve;if(Bt===he){var Kt=void 0,Mt=void 0,br=!1;try{Kt=At.then}catch(re){br=!0,Mt=re}if(Kt===oe&&At._state!==N)this._settledAt(At._state,We,At._result);else if(typeof Kt!="function")this._remaining--,this._result[We]=At;else if($e===Ge){var vr=new $e(_);br?Kr(vr,Mt):Jt(vr,At,Kt),this._willSettleAt(vr,We)}else this._willSettleAt(new $e(function(re){return re(At)}),We)}else this._willSettleAt(Bt(At),We)},Ke.prototype._settledAt=function(At,We,$e){var Bt=this.promise;Bt._state===N&&(this._remaining--,At===pe?Kr(Bt,$e):this._result[We]=$e),this._remaining===0&&Cr(Bt,this._result)},Ke.prototype._willSettleAt=function(At,We){var $e=this;_r(At,void 0,function(Bt){return $e._settledAt(X,We,Bt)},function(Bt){return $e._settledAt(pe,We,Bt)})},Ke}();function P(Ke){return new W(this,Ke).promise}function te(Ke){var Xe=this;return p(Ke)?new Xe(function(At,We){for(var $e=Ke.length,Bt=0;Bt<$e;Bt++)Xe.resolve(Ke[Bt]).then(At,We)}):new Xe(function(At,We){return We(new TypeError("You must pass an array to race."))})}function Ie(Ke){var Xe=this,At=new Xe(_);return Kr(At,Ke),At}function Te(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Se(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ge=function(){function Ke(Xe){this[ve]=f(),this._result=this._state=void 0,this._subscribers=[],_!==Xe&&(typeof Xe!="function"&&Te(),this instanceof Ke?G(this,Xe):Se())}return Ke.prototype.catch=function(At){return this.then(null,At)},Ke.prototype.finally=function(At){var We=this,$e=We.constructor;return o(At)?We.then(function(Bt){return $e.resolve(At()).then(function(){return Bt})},function(Bt){return $e.resolve(At()).then(function(){throw Bt})}):We.then(At,At)},Ke}();Ge.prototype.then=oe,Ge.all=P,Ge.race=te,Ge.resolve=he,Ge.reject=Ie,Ge._setScheduler=$,Ge._setAsap=F,Ge._asap=S;function dt(){var Ke=void 0;if(typeof g.g!="undefined")Ke=g.g;else if(typeof self!="undefined")Ke=self;else try{Ke=Function("return this")()}catch(We){throw new Error("polyfill failed because global object is unavailable in this environment")}var Xe=Ke.Promise;if(Xe){var At=null;try{At=Object.prototype.toString.call(Xe.resolve())}catch(We){}if(At==="[object Promise]"&&!Xe.cast)return}Ke.Promise=Ge}return Ge.polyfill=dt,Ge.Promise=Ge,Ge})},html2canvas:function(I){"use strict";I.exports=se},jspdf:function(I){"use strict";I.exports=Fe}},ie={};function Y(I){var n=ie[I];if(n!==void 0)return n.exports;var o=ie[I]={exports:{}};return ke[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,Wt){Wt.read=function(g,we,Fe,se,ke){var ie,Y,O=ke*8-se-1,I=(1<<O)-1,n=I>>1,o=-7,L=Fe?ke-1:0,p=Fe?-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)},Wt.write=function(g,we,Fe,se,ke,ie){var Y,O,I,n=ie*8-ke-1,o=(1<<n)-1,L=o>>1,p=ke===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,ke),Y=Y+L):(O=we*Math.pow(2,L-1)*Math.pow(2,ke),Y=0));ke>=8;g[Fe+a]=O&255,a+=A,O/=256,ke-=8);for(Y=Y<<ke|O,n+=ke;n>0;g[Fe+a]=Y&255,a+=A,Y/=256,n-=8);g[Fe+a-A]|=m*128}},53184:function(bn,Wt,g){"use strict";var we,Fe;function se(ke,ie,Y){var O=function(I,n){return ke.js_beautify(I,n)};return O.js=ke.js_beautify,O.css=ie.css_beautify,O.html=Y.html_beautify,O.js_beautify=ke.js_beautify,O.css_beautify=ie.css_beautify,O.html_beautify=Y.html_beautify,O}we=[g(58553),g(87804),g(40998)],Fe=function(ke,ie,Y){return se(ke,ie,Y)}.apply(Wt,we),Fe!==void 0&&(bn.exports=Fe)},87804:function(bn,Wt){var g,we;(function(){var Fe;(function(){"use strict";var ke=[,,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(z,le){this._source_text=z||"",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(z){var le="";for(this._ch=this._input.next();this._ch;){if(le+=this._ch,this._ch==="\\")le+=this._input.next();else if(z.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return le},B.prototype.eatWhitespace=function(z){for(var le=F.test(this._input.peek()),J=0;F.test(this._input.peek());)this._ch=this._input.next(),z&&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 z=0,le=1,J=this._input.peek(le);J;){if(J==="{")return!0;if(J==="(")z+=1;else if(J===")"){if(z===0)return!1;z-=1}else if(J===";"||J==="}")return!1;le++,J=this._input.peek(le)}return!1},B.prototype.print_string=function(z){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(z)},B.prototype.preserveSingleSpace=function(z){z&&(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 z=this._source_text,le=this._options.eol;le==="auto"&&(le=`
|
|
|
`,z&&S.test(z||"")&&(le=z.match(S)[0])),z=z.replace($,`
|
|
|
`);var J=z.match(/^[\t ]*/)[0];this._output=new p(this._options,J),this._input=new a(z),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var be=0,Ce=!1,Le=!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 N=this._input.read(V),X=m.get_directives(N);X&&X.ignore==="start"&&(N+=m.readIgnored(this._input)),this.print_string(N),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&&(Le=!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 qe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);qe.match(/[ :]$/)&&(qe=this.eatString(": ").replace(/\s+$/,""),this.print_string(qe),this._output.space_before_token=!0),be===0&&qe.indexOf(":")!==-1?(Le=!0,this.indent()):qe in this.NESTED_AT_RULE?(this._nestedLevel+=1,qe in this.CONDITIONAL_GROUP_RULE&&(ae=!0)):be===0&&!Le&&(me=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(ve),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Le&&(Le=!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),Le&&(this.outdent(),Le=!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(":"),Le||(Le=!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 rt=_==='"'||_==="'";this.preserveSingleSpace(rt||ve),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")oe=!1,be===0?(Le&&(this.outdent(),Le=!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 Rt=!1;this._input.lookBack("with")&&(Rt=!0),this.preserveSingleSpace(ve||Rt),this.print_string(this._ch),Le&&_==="$"&&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&&(!Le||T)&&be===0&&!me?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Le&&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 lr=_==='"'||_==="'";this.preserveSingleSpace(lr||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 ke[I](o,o.exports,Y),o.exports}var O=Y(15);Fe=O})();var se=Fe;g=[],we=function(){return{css_beautify:se}}.apply(Wt,g),we!==void 0&&(bn.exports=we)})()},40998:function(bn,Wt,g){var we,Fe;(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,z=[],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)?(z.push(B),B=V):B&&this._is_closing(V,B)&&(V.opened=B,B.closed=V,B=z.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 z(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 N=null,X=_.next();X.type!==$.EOF;)X.type===$.TAG_OPEN||X.type===$.COMMENT?(N=this._handle_tag_open(ve,X,he,oe,_),he=N):X.type===$.ATTRIBUTE||X.type===$.EQUALS||X.type===$.VALUE||X.type===$.TEXT&&!he.tag_complete?N=this._handle_inside_tag(ve,X,he,oe):X.type===$.TAG_CLOSE?N=this._handle_tag_close(ve,X,he):X.type===$.TEXT?N=this._handle_text(ve,X,he):X.type===$.CONTROL_FLOW_OPEN?N=this._handle_control_flow_open(ve,X):X.type===$.CONTROL_FLOW_CLOSE?N=this._handle_control_flow_close(ve,X):ve.add_raw_token(X),oe=N,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,N="",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(lr,Jt){var Ze=new be(lr,Jt,oe._js_beautify,oe._css_beautify);return Ze.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 qe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(he);if(!qe){me.add_raw_token(T);return}N=pe+qe[1]+`
|
|
|
`,he=qe[4],qe[5]&&(X=pe+qe[5]),he=he.replace(/\n[ \t]*$/,""),(qe[2]||qe[3].indexOf(`
|
|
|
`)!==-1)&&(qe=qe[3].match(/[ \t]+$/),qe&&(T.whitespace_before=qe[0]))}if(he)if(ve){var at=function(){this.eol=`
|
|
|
`};at.prototype=this._options.raw_options;var rt=new at;he=ve(pe+he,rt)}else{var Rt=T.whitespace_before;Rt&&(he=he.replace(new RegExp(`
|
|
|
(`+Rt+")?","g"),`
|
|
|
`)),he=pe+he.replace(/\n/g,`
|
|
|
`+pe)}N&&(he?he=N+he+`
|
|
|
`+X:he=N+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,N;do N=he.peek(_),N.type===$.ATTRIBUTE&&(ve.attr_count+=1),_+=1;while(N.type!==$.EOF&&N.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||z(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&&z(T.tag_check,this._options.unformatted),T.is_content_unformatted=!T.is_empty_element&&z(T.tag_check,this._options.content_unformatted),T.is_inline_element=z(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)))),z(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 Le=["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"&&Le.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,z){A.call(this,B,z),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,z){return B.type===H.TAG_CLOSE&&z&&((B.text===">"||B.text==="/>")&&z.text[0]==="<"||B.text==="}}"&&z.text[0]==="{"&&z.text[1]==="{")||B.type===H.CONTROL_FLOW_CLOSE&&B.text==="}"&&z.text.endsWith("{")},ee.prototype._reset=function(){this._current_tag_name=""},ee.prototype._get_next_token=function(B,z){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,z),le=le||this._read_attribute(J,B,z),le=le||this._read_close(J,z),le=le||this._read_script_and_style(J,B),le=le||this._read_control_flows(J,z),le=le||this._read_raw_content(J,B,z),le=le||this._read_content_word(J,z),le=le||this._read_comment_or_cdata(J),le=le||this._read_processing(J),le=le||this._read_open(J,z),le=le||this._create_token(H.UNKNOWN,this._input.next()),le)},ee.prototype._read_comment_or_cdata=function(B){var z=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&&(z=this._create_token(H.COMMENT,le),z.directives=J)}return z},ee.prototype._read_processing=function(B){var z=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&&(z=this._create_token(H.COMMENT,le),z.directives=J)}return z},ee.prototype._read_open=function(B,z){var le=null,J=null;return(!z||z.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,z){var le=null,J=null;return(!z||z.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,z){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 Le=this._input.next();if(Le===null)break;Le==="("?be++:Le===")"&&Ce++,le+=Le}J=this._create_token(H.CONTROL_FLOW_OPEN,le)}else B==="}"&&z&&z.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,z){var le=null,J=null;return z&&z.type===H.TAG_OPEN&&(z.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)):z.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,z,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&&(z.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,z,le){var J="";if(le&&le.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(z.type===H.TAG_CLOSE&&z.opened.text[0]==="<"&&z.text[0]!=="/"){var be=z.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,z){if(z.type===H.TAG_CLOSE&&z.opened.text[0]==="<"&&z.text[0]!=="/"){var le=z.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,z){var le="";return this._options.unformatted_content_delimiter&&B===this._options.unformatted_content_delimiter[0]&&(le=this.__patterns.unformatted_content_delimiter.read()),le||(le=z&&z.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 ke=se;if(1)we=[g,g(58553),g(87804)],Fe=function(O){var I=g(58553),n=g(87804);return{html_beautify:function(o,L){return ke(o,L,I.js_beautify,n.css_beautify)}}}.apply(Wt,we),Fe!==void 0&&(bn.exports=Fe);else var ie,Y})()},58553:function(bn,Wt){var g,we;(function(){var Fe;(function(){"use strict";var ke=[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(N,X){return X.indexOf(N)!==-1}function V(N){return N.replace(/^\s+/g,"")}function ee(N){for(var X={},pe=0;pe<N.length;pe++)X[N[pe].replace(/-/g,"_")]=N[pe];return X}function B(N,X){return N&&N.type===F.RESERVED&&N.text===X}function z(N,X){return N&&N.type===F.RESERVED&&H(N.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],Le={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ae(N,X){X.multiline_frame||X.mode===Le.ForInitializer||X.mode===Le.Conditional||N.remove_indent(X.start_line_index)}function me(N){N=N.replace(a.allLineBreaks,`
|
|
|
`);for(var X=[],pe=N.indexOf(`
|
|
|
`);pe!==-1;)X.push(N.substring(0,pe)),N=N.substring(pe+1),pe=N.indexOf(`
|
|
|
`);return N.length&&X.push(N),X}function T(N){return N===Le.ArrayLiteral}function Ee(N){return H(N,[Le.Expression,Le.ForInitializer,Le.Conditional])}function oe(N,X){for(var pe=0;pe<N.length;pe++){var qe=N[pe].trim();if(qe.charAt(0)!==X)return!1}return!0}function he(N,X){for(var pe=0,qe=N.length,at;pe<qe;pe++)if(at=N[pe],at&&at.indexOf(X)!==0)return!1;return!0}function ve(N,X){X=X||{},this._source_text=N||"",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(N,X){var pe=0;N&&(pe=N.indentation_level,!this._output.just_added_newline()&&N.line_indent_level>pe&&(pe=N.line_indent_level));var qe={mode:X,parent:N,last_token:N?N.last_token:new p(F.START_BLOCK,""),last_word:N?N.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:N?N.line_indent_level:pe,start_line_index:this._output.get_line_number(),ternary_depth:0};return qe},ve.prototype._reset=function(N){var X=N.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(Le.BlockStatement);var pe=new m(N,this._options);return this._tokens=pe.tokenize(),N},ve.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N,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 qe=this._tokens.next();qe;)this.handle_token(qe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=qe,qe=this._tokens.next();return N=this._output.get_code(pe),N},ve.prototype.handle_token=function(N,X){N.type===F.START_EXPR?this.handle_start_expr(N):N.type===F.END_EXPR?this.handle_end_expr(N):N.type===F.START_BLOCK?this.handle_start_block(N):N.type===F.END_BLOCK?this.handle_end_block(N):N.type===F.WORD?this.handle_word(N):N.type===F.RESERVED?this.handle_word(N):N.type===F.SEMICOLON?this.handle_semicolon(N):N.type===F.STRING?this.handle_string(N):N.type===F.EQUALS?this.handle_equals(N):N.type===F.OPERATOR?this.handle_operator(N):N.type===F.COMMA?this.handle_comma(N):N.type===F.BLOCK_COMMENT?this.handle_block_comment(N,X):N.type===F.COMMENT?this.handle_comment(N,X):N.type===F.DOT?this.handle_dot(N):N.type===F.EOF?this.handle_eof(N):N.type===F.UNKNOWN?this.handle_unknown(N,X):this.handle_unknown(N,X)},ve.prototype.handle_whitespace_and_comments=function(N,X){var pe=N.newlines,qe=this._options.keep_array_indentation&&T(this._flags.mode);if(N.comments_before)for(var at=N.comments_before.next();at;)this.handle_whitespace_and_comments(at,X),this.handle_token(at,X),at=N.comments_before.next();if(qe)for(var rt=0;rt<pe;rt+=1)this.print_newline(rt>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 Rt=1;Rt<pe;Rt+=1)this.print_newline(!0,X)}};var _=["async","break","continue","return","throw","yield"];ve.prototype.allow_wrap_or_preserved_newline=function(N,X){if(X=X===void 0?!1:X,!this._output.just_added_newline()){var pe=this._options.preserve_newlines&&N.newlines||X,qe=H(this._flags.last_token.text,$)||H(N.text,$);if(qe){var at=H(this._flags.last_token.text,$)&&H(this._options.operator_position,Ce)||H(N.text,$);pe=pe&&at}if(pe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(z(this._flags.last_token,_))return;this._output.set_wrap_point()}}},ve.prototype.print_newline=function(N,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===Le.Statement&&!(this._flags.if_block&&B(pe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(N)&&(this._flags.multiline_frame=!0)},ve.prototype.print_token_line_indentation=function(N){this._output.just_added_newline()&&(this._options.keep_array_indentation&&N.newlines&&(N.text==="["||T(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(N.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(N){if(this._output.raw){this._output.add_raw_token(N);return}if(this._options.comma_first&&N.previous&&N.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(N),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(N),this._output.non_breaking_space=!0,this._output.add_token(N.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(N){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,N),this._flags=this.create_flags(this._previous_flags,N),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===Le.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===Le.ObjectLiteral&&this._flags.mode===Le.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||z(this._flags.last_token,["get","set"]))},ve.prototype.start_of_statement=function(N){var X=!1;return X=X||z(this._flags.last_token,["var","let","const"])&&N.type===F.WORD,X=X||B(this._flags.last_token,"do"),X=X||!(this._flags.parent.mode===Le.ObjectLiteral&&this._flags.mode===Le.Statement)&&z(this._flags.last_token,_)&&!N.newlines,X=X||B(this._flags.last_token,"else")&&!(B(N,"if")&&!N.comments_before),X=X||this._flags.last_token.type===F.END_EXPR&&(this._previous_flags.mode===Le.ForInitializer||this._previous_flags.mode===Le.Conditional),X=X||this._flags.last_token.type===F.WORD&&this._flags.mode===Le.BlockStatement&&!this._flags.in_case&&!(N.text==="--"||N.text==="++")&&this._last_last_text!=="function"&&N.type!==F.WORD&&N.type!==F.RESERVED,X=X||this._flags.mode===Le.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||z(this._flags.last_token,["get","set"])),X?(this.set_mode(Le.Statement),this.indent(),this.handle_whitespace_and_comments(N,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N,z(N,["do","for","if","while"])),!0):!1},ve.prototype.handle_start_expr=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N);var X=Le.Expression;if(N.text==="["){if(this._flags.last_token.type===F.WORD||this._flags.last_token.text===")"){z(this._flags.last_token,S)&&(this._output.space_before_token=!0),this.print_token(N),this.set_mode(X),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}X=Le.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=Le.ForInitializer):H(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,X=Le.Conditional):H(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&N.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(N);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 qe=this._tokens.peek(-4);z(pe,["async","function"])||pe.text==="*"&&z(qe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Le.ObjectLiteral?(pe.text==="{"||pe.text===","||pe.text==="*"&&(qe.text==="{"||qe.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(N);(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===Le.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(N,N.newlines),this.print_token(N),this.set_mode(X),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ve.prototype.handle_end_expr=function(N){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(N,N.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(N),this.restore_mode(),ae(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Le.Conditional&&(this._previous_flags.mode=Le.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},ve.prototype.handle_start_block=function(N){this.handle_whitespace_and_comments(N);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(Le.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Le.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(Le.BlockStatement):this.set_mode(Le.ObjectLiteral):this._flags.last_token.type===F.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Le.BlockStatement):H(this._flags.last_token.type,[F.EQUALS,F.START_EXPR,F.COMMA,F.OPERATOR])||z(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Le.ObjectLiteral):this.set_mode(Le.BlockStatement),this._flags.last_token&&z(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var qe=!X.comments_before&&X.text==="}",at=qe&&this._flags.last_word==="function"&&this._flags.last_token.type===F.END_EXPR;if(this._options.brace_preserve_inline){var rt=0,Rt=null;this._flags.inline_frame=!0;do if(rt+=1,Rt=this._tokens.peek(rt-1),Rt.newlines){this._flags.inline_frame=!1;break}while(Rt.type!==F.EOF&&!(Rt.type===F.END_BLOCK&&Rt.opened===N))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&N.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==F.OPERATOR&&(at||this._flags.last_token.type===F.EQUALS||z(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(N),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(N),this.indent(),!qe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ve.prototype.handle_end_block=function(N){for(this.handle_whitespace_and_comments(N);this._flags.mode===Le.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(N)},ve.prototype.handle_word=function(N){if(N.type===F.RESERVED){if(H(N.text,["set","get"])&&this._flags.mode!==Le.ObjectLiteral)N.type=F.WORD;else if(N.text==="import"&&H(this._tokens.peek().text,["(","."]))N.type=F.WORD;else if(H(N.text,["as","from"])&&!this._flags.import_block)N.type=F.WORD;else if(this._flags.mode===Le.ObjectLiteral){var X=this._tokens.peek();X.text===":"&&(N.type=F.WORD)}}if(this.start_of_statement(N)?z(this._flags.last_token,["var","let","const"])&&N.type===F.WORD&&(this._flags.declaration_statement=!0):N.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||!z(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(N),this.print_newline()):this.handle_whitespace_and_comments(N),this._flags.do_block&&!this._flags.do_while)if(B(N,"while")){this._output.space_before_token=!0,this.print_token(N),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(N,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Le.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&z(N,["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(N),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===Le.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(N),B(N,"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()&&!N.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD?z(this._flags.last_token,["get","set","new","export"])||z(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(N),this._flags.last_word=N.text;return}var pe="NONE";if(this._flags.last_token.type===F.END_BLOCK?this._previous_flags.inline_frame?pe="SPACE":z(N,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&N.newlines?pe="NEWLINE":(pe="SPACE",this._output.space_before_token=!0):pe="NEWLINE":this._flags.last_token.type===F.SEMICOLON&&this._flags.mode===Le.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===Le.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"),z(N,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"),z(N,["else","catch","finally"]))if((!(this._flags.last_token.type===F.END_BLOCK&&this._previous_flags.mode===Le.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&N.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var qe=this._output.current_line;qe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else pe==="NEWLINE"?z(this._flags.last_token,le)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&z(N,["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||!z(N,["var","let","const"]))&&this._flags.last_token.text!==":"&&(B(N,"if")&&B(N.previous,"else")?this._output.space_before_token=!0:this.print_newline()):z(N,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);N.previous&&(N.previous.type===F.WORD||N.previous.type===F.RESERVED)&&(this._output.space_before_token=!0),this.print_token(N),this._flags.last_word=N.text,N.type===F.RESERVED&&(N.text==="do"?this._flags.do_block=!0:N.text==="if"?this._flags.if_block=!0:N.text==="import"?this._flags.import_block=!0:this._flags.import_block&&B(N,"from")&&(this._flags.import_block=!1))},ve.prototype.handle_semicolon=function(N){this.start_of_statement(N)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(N);for(var X=this._tokens.peek();this._flags.mode===Le.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(N)},ve.prototype.handle_string=function(N){N.text.startsWith("`")&&N.newlines===0&&N.whitespace_before===""&&(N.previous.text===")"||this._flags.last_token.type===F.WORD)||(this.start_of_statement(N)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(N),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(N):N.text.startsWith("`")&&this._flags.last_token.type===F.END_EXPR&&(N.previous.text==="]"||N.previous.text===")")&&N.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(N)},ve.prototype.handle_equals=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0},ve.prototype.handle_comma=function(N){this.handle_whitespace_and_comments(N,!0),this.print_token(N),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(N)):this._flags.mode===Le.ObjectLiteral||this._flags.mode===Le.Statement&&this._flags.parent.mode===Le.ObjectLiteral?(this._flags.mode===Le.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(N)},ve.prototype.handle_operator=function(N){var X=N.text==="*"&&(z(this._flags.last_token,["function","yield"])||H(this._flags.last_token.type,[F.START_BLOCK,F.COMMA,F.END_BLOCK,F.SEMICOLON])),pe=H(N.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(N)){var qe=!X;this.handle_whitespace_and_comments(N,qe)}if(N.text==="*"&&this._flags.last_token.type===F.DOT){this.print_token(N);return}if(N.text==="::"){this.print_token(N);return}if(H(N.text,["-","+"])&&this.start_of_object_property()){this.print_token(N);return}if(this._flags.last_token.type===F.OPERATOR&&H(this._options.operator_position,Ce)&&this.allow_wrap_or_preserved_newline(N),N.text===":"&&this._flags.in_case){this.print_token(N),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,rt=!0,Rt=!1;if(N.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,Rt=!0):N.text==="?"&&(this._flags.ternary_depth+=1),!pe&&!X&&this._options.preserve_newlines&&H(N.text,$)){var lr=N.text===":",Jt=lr&&Rt,Ze=lr&&!Rt;switch(this._options.operator_position){case be.before_newline:this._output.space_before_token=!Ze,this.print_token(N),(!lr||Jt)&&this.allow_wrap_or_preserved_newline(N),this._output.space_before_token=!0;return;case be.after_newline:this._output.space_before_token=!0,!lr||Jt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(N):this._output.space_before_token=!1,this.print_token(N),this._output.space_before_token=!0;return;case be.preserve_newline:Ze||this.allow_wrap_or_preserved_newline(N),at=!(this._output.just_added_newline()||Ze),this._output.space_before_token=at,this.print_token(N),this._output.space_before_token=!0;return}}if(X){this.allow_wrap_or_preserved_newline(N),at=!1;var Er=this._tokens.peek();rt=Er&&H(Er.type,[F.WORD,F.RESERVED])}else if(N.text==="...")this.allow_wrap_or_preserved_newline(N),at=this._flags.last_token.type===F.START_BLOCK,rt=!1;else if(H(N.text,["--","++","!","~"])||pe){if((this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR)&&this.allow_wrap_or_preserved_newline(N),at=!1,rt=!1,N.newlines&&(N.text==="--"||N.text==="++"||N.text==="~")){var Cr=z(this._flags.last_token,le)&&N.newlines;Cr&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Cr,!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==="]"&&(N.text==="--"||N.text==="++")):this._flags.last_token.type===F.OPERATOR&&(at=H(N.text,["--","-","++","+"])&&H(this._flags.last_token.text,["--","-","++","+"]),H(N.text,["+","-"])&&H(this._flags.last_token.text,["--","++"])&&(rt=!0)),(this._flags.mode===Le.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Le.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(N),this._output.space_before_token=rt},ve.prototype.handle_block_comment=function(N,X){if(this._output.raw){this._output.add_raw_token(N),N.directives&&N.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(N.directives){this.print_newline(!1,X),this.print_token(N),N.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(N.text)&&!N.newlines){this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0;return}else this.print_block_commment(N,X)},ve.prototype.print_block_commment=function(N,X){var pe=me(N.text),qe,at=!1,rt=!1,Rt=N.whitespace_before,lr=Rt.length;if(this.print_newline(!1,X),this.print_token_line_indentation(N),this._output.add_token(pe[0]),this.print_newline(!1,X),pe.length>1){for(pe=pe.slice(1),at=oe(pe,"*"),rt=he(pe,Rt),at&&(this._flags.alignment=1),qe=0;qe<pe.length;qe++)at?(this.print_token_line_indentation(N),this._output.add_token(V(pe[qe]))):rt&&pe[qe]?(this.print_token_line_indentation(N),this._output.add_token(pe[qe].substring(lr))):(this._output.current_line.set_indent(-1),this._output.add_token(pe[qe])),this.print_newline(!1,X);this._flags.alignment=0}},ve.prototype.handle_comment=function(N,X){N.newlines?this.print_newline(!1,X):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(N),this.print_newline(!1,X)},ve.prototype.handle_dot=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),z(this._flags.last_token,le)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(N,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(N)},ve.prototype.handle_unknown=function(N,X){this.print_token(N),N.text[N.text.length-1]===`
|
|
|
`&&this.print_newline(!1,X)},ve.prototype.handle_eof=function(N){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N)},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]/,z=/[^\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(","),Le=Ce.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ae=new RegExp("^(?:"+Le.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==="."&&z.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,N=!1;this._input.hasNext()&&(_||N||this._input.peek()!==oe)&&!this._input.testChar(m.newline);)ve+=this._input.peek(),_?_=!1:(_=this._input.peek()==="\\",this._input.peek()==="["?N=!0:this._input.peek()==="]"&&(N=!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 N=_[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),X=N.indexOf("{")===0,pe=0;_;){var qe=!!_[1],at=_[2],rt=!!_[_.length-1]||at.slice(0,8)==="![CDATA[";if(!rt&&(at===N||X&&at.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(qe?--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),N=null;_.hasNext();)if(N=_.match(/([\s]|[^\\]|\\\\)+/g),N&&(he+=N[0]),_.peek()==="\\"){if(_.next(),_.peek()==="x")N=_.match(/x([0-9A-Fa-f]{2})/g);else if(_.peek()==="u")N=_.match(/u([0-9A-Fa-f]{4})/g),N||(N=_.match(/u\{([0-9A-Fa-f]+)\}/g));else{he+="\\",_.hasNext()&&(he+=_.next());continue}if(!N||(ve=parseInt(N[1],16),ve>126&&ve<=255&&N[0].indexOf("x")===0))return oe;ve>=0&&ve<32||ve>1114111?he+="\\"+N[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 _,N;oe==="'"?N=this.__patterns.single_quote:oe==='"'?N=this.__patterns.double_quote:oe==="`"?N=this.__patterns.template_text:oe==="}"&&(N=this.__patterns.template_expression);for(var X=N.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+=N.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 ke[I](o,o.exports,Y),o.exports}var O=Y(0);Fe=O})();var se=Fe;g=[],we=function(){return{js_beautify:se}}.apply(Wt,g),we!==void 0&&(bn.exports=we)})()},73207:function(bn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{AcroForm:function(){return Js},AcroFormAppearance:function(){return Fi},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 vs},AcroFormRadioButton:function(){return Oa},AcroFormTextField:function(){return vo},GState:function(){return Ha},ShadingPattern:function(){return Wa},TilingPattern:function(){return Fa},default:function(){return oc},jsPDF:function(){return Mi}});var we=g(39559),Fe={},se=function(b,u,y,M,ne){var Z=new Worker(Fe[u]||(Fe[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 Z.onmessage=function(ge){var De=ge.data,Ne=De.$e$;if(Ne){var tt=new Error(Ne[0]);tt.code=Ne[1],tt.stack=Ne[2],ne(tt,null)}else ne(null,De)},Z.postMessage(y,M),Z},ke=Uint8Array,ie=Uint16Array,Y=Int32Array,O=new ke([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 ke([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 ke([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 Z=y[M];Z<y[M+1];++Z)ne[Z]=Z-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,Z=new ie(u);ne<M;++ne)b[ne]&&++Z[b[ne]-1];var ge=new ie(u);for(ne=1;ne<u;++ne)ge[ne]=ge[ne-1]+Z[ne-1]<<1;var De;if(y){De=new ie(1<<u);var Ne=15-u;for(ne=0;ne<M;++ne)if(b[ne])for(var tt=ne<<4|b[ne],yt=u-b[ne],vt=ge[b[ne]-1]++<<yt,kt=vt|(1<<yt)-1;vt<=kt;++vt)De[$[vt]>>Ne]=tt}else for(De=new ie(M),ne=0;ne<M;++ne)b[ne]&&(De[ne]=$[ge[b[ne]-1]++]>>15-b[ne]);return De},ee=new ke(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 ke(32),F=0;F<32;++F)B[F]=5;var z=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},Le=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 ke(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,Z=M?M.length:0;if(!ne||u.f&&!u.l)return y||new ke(0);var ge=!y,De=ge||u.i!=2,Ne=u.i;ge&&(y=new ke(ne*3));var tt=function($r){var cn=y.length;if($r>cn){var Dn=new ke(Math.max(cn*2,$r));Dn.set(y),y=Dn}},yt=u.f||0,vt=u.p||0,kt=u.b||0,Ve=u.l,cr=u.d,tr=u.m,dr=u.n,Qt=ne*8;do{if(!Ve){yt=Le(b,vt,1);var pr=Le(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=Le(b,vt,31)+257,pn=Le(b,vt+10,15)+4,Br=di+Le(b,vt+5,31)+1;vt+=14;for(var xn=new ke(Br),Nn=new ke(19),er=0;er<pn;++er)Nn[n[er]]=Le(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<Br;){var et=xe[Le(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+Le(b,vt,3),vt+=2,st=xn[er-1]):Mr==17?(gt=3+Le(b,vt,7),vt+=3):Mr==18&&(gt=11+Le(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,an=b[Mr-4]|b[Mr-3]<<8,Rn=Mr+an;if(Rn>ne){Ne&&he(0);break}De&&tt(kt+an),y.set(b.subarray(Mr,Rn),kt),u.b=kt+=an,u.p=vt=Rn*8,u.f=yt;continue}if(vt>Qt){Ne&&he(0);break}}De&&tt(kt+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){Ne&&he(0);break}if(st||he(2),_e<256)y[kt++]=_e;else if(_e==256){ze=vt,Ve=null;break}else{var wt=_e-254;if(_e>264){var er=_e-257,jt=O[er];wt=Le(b,vt,(1<<jt)-1)+p[er],vt+=jt}var Vt=cr[ae(b,vt)&sr],ur=Vt>>4;Vt||he(3),vt+=Vt&15;var Ut=m[ur];if(ur>3){var jt=I[ur];Ut+=ae(b,vt)&(1<<jt)-1,vt+=jt}if(vt>Qt){Ne&&he(0);break}De&&tt(kt+131072);var It=kt+wt;if(kt<Ut){var yr=Z-Ut,Wr=Math.min(Ut,It);for(yr+kt<0&&he(3);kt<Wr;++kt)y[kt]=M[yr+kt]}for(;kt<It;++kt)y[kt]=y[kt-Ut]}}u.l=Ve,u.p=ze,u.b=kt,u.f=yt,Ve&&(yt=1,u.m=tr,u.d=cr,u.n=dr)}while(!yt);return kt!=y.length&&ge?T(y,0,kt):y.subarray(0,kt)},_=function(b,u,y){y<<=u&7;var M=u/8|0;b[M]|=y,b[M+1]|=y>>8},N=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,Z=y.slice();if(!ne)return{t:Jt,l:0};if(ne==1){var ge=new ke(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 De=y[0],Ne=y[1],tt=0,yt=1,vt=2;for(y[0]={s:-1,f:De.f+Ne.f,l:De,r:Ne};yt!=ne-1;)De=y[y[tt].f<y[vt].f?tt++:vt++],Ne=y[tt!=yt&&y[tt].f<y[vt].f?tt++:vt++],y[yt++]={s:-1,f:De.f+Ne.f,l:De,r:Ne};for(var kt=Z[0].s,M=1;M<ne;++M)Z[M].s>kt&&(kt=Z[M].s);var Ve=new ie(kt+1),cr=pe(y[yt-1],Ve,0);if(cr>u){var M=0,tr=0,dr=cr-u,Qt=1<<dr;for(Z.sort(function(di,pn){return Ve[pn.s]-Ve[di.s]||di.f-pn.f});M<ne;++M){var pr=Z[M].s;if(Ve[pr]>u)tr+=Qt-(1<<cr-Ve[pr]),Ve[pr]=u;else break}for(tr>>=dr;tr>0;){var Mr=Z[M].s;Ve[Mr]<u?tr-=1<<u-Ve[Mr]++-1:++M}for(;M>=0&&tr;--M){var an=Z[M].s;Ve[an]==u&&(--Ve[an],++tr)}cr=u}return{t:new ke(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},qe=function(b){for(var u=b.length;u&&!b[--u];);for(var y=new ie(++u),M=0,ne=b[0],Z=1,ge=function(Ne){y[M++]=Ne},De=1;De<=u;++De)if(b[De]==ne&&De!=u)++Z;else{if(!ne&&Z>2){for(;Z>138;Z-=138)ge(32754);Z>2&&(ge(Z>10?Z-11<<5|28690:Z-3<<5|12305),Z=0)}else if(Z>3){for(ge(ne),--Z;Z>6;Z-=6)ge(8304);Z>2&&(ge(Z-3<<5|8208),Z=0)}for(;Z--;)ge(ne);Z=1,ne=b[De]}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},rt=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 Z=0;Z<M;++Z)b[ne+Z+4]=y[Z];return(ne+4+M)*8},Rt=function(b,u,y,M,ne,Z,ge,De,Ne,tt,yt){_(u,yt++,y),++ne[256];for(var vt=X(ne,15),kt=vt.t,Ve=vt.l,cr=X(Z,15),tr=cr.t,dr=cr.l,Qt=qe(kt),pr=Qt.c,Mr=Qt.n,an=qe(tr),Rn=an.c,di=an.n,pn=new ie(19),Br=0;Br<pr.length;++Br)++pn[pr[Br]&31];for(var Br=0;Br<Rn.length;++Br)++pn[Rn[Br]&31];for(var xn=X(pn,7),Nn=xn.t,er=xn.l,nr=19;nr>4&&!Nn[n[nr-1]];--nr);var ye=tt+5<<3,xe=at(ne,ee)+at(Z,B)+ge,et=at(ne,kt)+at(Z,tr)+ge+14+3*nr+at(pn,Nn)+2*pn[16]+3*pn[17]+7*pn[18];if(Ne>=0&&ye<=xe&&ye<=et)return rt(u,yt,b.subarray(Ne,Ne+tt));var st,gt,ft,Ut;if(_(u,yt,1+(et<xe)),yt+=2,et<xe){st=V(kt,Ve,0),gt=kt,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 Br=0;Br<nr;++Br)_(u,yt+3*Br,Nn[n[Br]]);yt+=3*nr;for(var sr=[pr,Rn],ze=0;ze<2;++ze)for(var _e=sr[ze],Br=0;Br<_e.length;++Br){var wt=_e[Br]&31;_(u,yt,$t[wt]),yt+=Nn[wt],wt>15&&(_(u,yt,_e[Br]>>5&127),yt+=_e[Br]>>12)}}else st=z,gt=ee,ft=J,Ut=B;for(var Br=0;Br<De;++Br){var jt=M[Br];if(jt>255){var wt=jt>>18&31;N(u,yt,st[wt+257]),yt+=gt[wt+257],wt>7&&(_(u,yt,jt>>23&31),yt+=O[wt]);var Vt=jt&31;N(u,yt,ft[Vt]),yt+=Ut[Vt],Vt>3&&(N(u,yt,jt>>5&8191),yt+=I[Vt])}else N(u,yt,st[jt]),yt+=gt[jt]}return N(u,yt,st[256]),yt+gt[256]},lr=new Y([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Jt=new ke(0),Ze=function(b,u,y,M,ne,Z){var ge=Z.z||b.length,De=new ke(M+ge+5*(1+Math.ceil(ge/7e3))+ne),Ne=De.subarray(M,De.length-ne),tt=Z.l,yt=(Z.r||0)&7;if(u){yt&&(Ne[0]=Z.r>>3);for(var vt=lr[u-1],kt=vt>>13,Ve=vt&8191,cr=(1<<y)-1,tr=Z.p||new ie(32768),dr=Z.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},an=new Y(25e3),Rn=new ie(288),di=new ie(32),pn=0,Br=0,xn=Z.i||0,Nn=0,er=Z.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||!tt)){yt=Rt(b,Ne,0,an,Rn,di,Br,Nn,nr,xn-nr,yt),Nn=pn=Br=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(kt,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 jt=0;jt<wt&&b[xn+jt]==b[xn+jt-sr];++jt);if(jt>ft){if(ft=jt,Ut=sr,jt>ze)break;for(var Vt=Math.min(sr,jt-2),ur=0,gt=0;gt<Vt;++gt){var It=xn-sr+gt&32767,yr=tr[It],Wr=It-yr&32767;Wr>ur&&(ur=Wr,et=It)}}}xe=et,et=tr[xe],sr+=xe-et&32767}if(Ut){an[Nn++]=268435456|a[ft]<<18|S[Ut];var $r=a[ft]&31,cn=S[Ut]&31;Br+=O[$r]+I[cn],++Rn[257+$r],++di[cn],er=xn+ft,++pn}else an[Nn++]=b[xn],++Rn[b[xn]]}}for(xn=Math.max(xn,er);xn<ge;++xn)an[Nn++]=b[xn],++Rn[b[xn]];yt=Rt(b,Ne,tt,an,Rn,di,Br,Nn,nr,xn-nr,yt),tt||(Z.r=yt&7|Ne[yt/8|0]<<3,yt-=7,Z.h=dr,Z.p=tr,Z.i=xn,Z.w=er)}else{for(var xn=Z.w||0;xn<ge+tt;xn+=65535){var Dn=xn+65535;Dn>=ge&&(Ne[yt/8|0]=tt,Dn=ge),yt=rt(Ne,yt+1,b.subarray(xn,Dn))}Z.i=ge}return T(De,0,M+me(yt)+ne)},Er=null,Cr=function(){var b=-1;return{p:function(u){for(var y=b,M=0;M<u.length;++M)y=Er[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,Z=y.length|0,ge=0;ge!=Z;){for(var De=Math.min(ge+2655,Z);ge<De;++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 Z=u.dictionary.subarray(-32768),ge=new ke(Z.length+b.length);ge.set(Z),ge.set(b,Z.length),b=ge,ne.w=Z.length}return Ze(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)},Ue=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},St=function(b,u,y){for(var M=b(),ne=b.toString(),Z=ne.slice(ne.indexOf("[")+1,ne.lastIndexOf("]")).replace(/\s+/g,"").split(","),ge=0;ge<M.length;++ge){var De=M[ge],Ne=Z[ge];if(typeof De=="function"){u+=";"+Ne+"=";var tt=De.toString();if(De.prototype)if(tt.indexOf("[native code]")!=-1){var yt=tt.indexOf(" ",8)+1;u+=tt.slice(yt,tt.indexOf("(",yt))}else{u+=tt;for(var vt in De.prototype)u+=";"+Ne+".prototype."+vt+"="+De.prototype[vt].toString()}else u+=tt}else y[Ne]=De}return u},G=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},f=function(b,u,y,M){if(!G[y]){for(var ne="",Z={},ge=b.length-1,De=0;De<ge;++De)ne=St(b[De],ne,Z);G[y]={c:St(b[ge],ne,Z),e:Z}}var Ne=Ue({},G[y].e);return se(G[y].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+u.toString()+"}",y,Ne,v(Ne),M)},D=function(){return[ke,ie,Y,O,I,n,p,m,le,be,$,oe,V,Ce,Le,ae,me,T,he,ve,nt,Te,Se]},fe=function(){return[ke,ie,Y,O,I,n,a,S,z,ee,J,B,$,lr,Jt,V,_,N,X,pe,qe,at,rt,Rt,me,T,Ze,_r,Zr,Te]},W=function(){return[Bt,br,$e,Cr,Er]},P=function(){return[Kt,Mt]},te=function(){return[vr,$e,Kr]},Ie=function(){return[re]},Te=function(b){return postMessage(b,[b.buffer])},Se=function(b){return b&&{out:b.size&&new ke(b.size),dictionary:b.dictionary}},Ge=function(b,u,y,M,ne,Z){var ge=f(y,M,ne,function(De,Ne){ge.terminate(),Z(De,Ne)});return ge.postMessage([b,u],u.consume?[b.buffer]:[]),function(){ge.terminate()}},dt=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()}},Ke=function(b,u,y,M,ne,Z,ge){var De,Ne=f(b,M,ne,function(tt,yt){tt?(Ne.terminate(),u.ondata.call(u,tt)):Array.isArray(yt)?yt.length==1?(u.queuedSize-=yt[0],u.ondrain&&u.ondrain(yt[0])):(yt[1]&&Ne.terminate(),u.ondata.call(u,tt,yt[0],yt[1])):ge(yt)});Ne.postMessage(y),u.queuedSize=0,u.push=function(tt,yt){u.ondata||he(5),De&&u.ondata(he(4,0,1),null,!!yt),u.queuedSize+=tt.length,Ne.postMessage([tt,De=yt],[tt.buffer])},u.terminate=function(){Ne.terminate()},Z&&(u.flush=function(){Ne.postMessage([])})},Xe=function(b,u){return b[u]|b[u+1]<<8},At=function(b,u){return(b[u]|b[u+1]<<8|b[u+2]<<16|b[u+3]<<24)>>>0},We=function(b,u){return At(b,u)+At(b,u+4)*4294967296},$e=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&&$e(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)}},Kt=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},br=function(b){return 10+(b.filename?b.filename.length+1:0)},vr=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),$e(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,Me=null;function ot(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[fe],function(M){return Te(Zr(M.data[0],M.data[1]))},0,y)}function Zr(b,u){return _r(b,u||{},0,0)}var Tt=null,Yt=null;function Gt(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[D],function(M){return Te(nt(M.data[0],Se(M.data[1])))},1,y)}function nt(b,u){return ve(b,{i:2},u&&u.out,u&&u.dictionary)}var ct=null,pt=null;function Zt(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[fe,W,function(){return[Oe]}],function(M){return Te(Oe(M.data[0],M.data[1]))},2,y)}function Oe(b,u){u||(u={});var y=Cr(),M=b.length;y.p(b);var ne=_r(b,u,br(u),8),Z=ne.length;return Bt(ne,u),$e(ne,Z-8,y.d()),$e(ne,Z-4,M),ne}var fn=null,Nt=null;function Ln(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[D,P,function(){return[Vn]}],function(M){return Te(Vn(M.data[0],M.data[1]))},3,y)}function Vn(b,u){var y=Kt(b);return y+8>b.length&&he(6,"invalid gzip data"),ve(b.subarray(y,-8),{i:2},u&&u.out||new ke(Mt(b)),u&&u.dictionary)}var yi=null,Ki=null;function jn(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[fe,te,function(){return[kn]}],function(M){return Te(kn(M.data[0],M.data[1]))},4,y)}function kn(b,u){u||(u={});var y=Kr();y.p(b);var M=_r(b,u,u.dictionary?6:2,4);return vr(M,u),$e(M,M.length-4,y.d()),M}var qt=null,zr=null;function Jr(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[D,Ie,function(){return[Ot]}],function(M){return Te(Ot(M.data[0],Se(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 Ct=null,Ir=null;function Fr(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),b[0]==31&&b[1]==139&&b[2]==8?Ln(b,u,y):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?Gt(b,u,y):Jr(b,u,y)}function Tn(b,u){return b[0]==31&&b[1]==139&&b[2]==8?Vn(b,u):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?nt(b,u):Ot(b,u)}var tn=function(b,u,y,M){for(var ne in b){var Z=b[ne],ge=u+ne,De=M;Array.isArray(Z)&&(De=Ue(M,Z[1]),Z=Z[0]),Z instanceof ke?y[ge]=[Z,De]:(y[ge+="/"]=[new ke(0),De],tn(Z,ge,y,M))}},Bn=typeof TextEncoder!="undefined"&&new TextEncoder,gn=typeof TextDecoder!="undefined"&&new TextDecoder,zn=0;try{gn.decode(Jt,{stream:!0}),zn=1}catch(b){}var Xn=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)}},Qr=null,Gr=null;function Sn(b,u){if(u){for(var y=new ke(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,Z=new ke(b.length+(b.length>>1)),ge=0,De=function(yt){Z[ge++]=yt},M=0;M<ne;++M){if(ge+5>Z.length){var Ne=new ke(ge+8+(ne-M<<1));Ne.set(Z),Z=Ne}var tt=b.charCodeAt(M);tt<128||u?De(tt):tt<2048?(De(192|tt>>6),De(128|tt&63)):tt>55295&&tt<57344?(tt=65536+(tt&1047552)|b.charCodeAt(++M)&1023,De(240|tt>>18),De(128|tt>>12&63),De(128|tt>>6&63),De(128|tt&63)):(De(224|tt>>12),De(128|tt>>6&63),De(128|tt&63))}return T(Z,0,ge)}function On(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=Xn(b),Z=ne.s,y=ne.r;return y.length&&he(8),Z}}var Qn=function(b){return b==1?3:b<6?2:b==9?1:0},Jn=function(b,u){return u+30+Xe(b,u+26)+Xe(b,u+28)},Ni=function(b,u,y){var M=Xe(b,u+28),ne=On(b.subarray(u+46,u+46+M),!(Xe(b,u+8)&2048)),Z=u+46+M,ge=At(b,u+20),De=y&&ge==4294967295?li(b,Z):[ge,At(b,u+24),At(b,u+42)],Ne=De[0],tt=De[1],yt=De[2];return[Xe(b,u+10),Ne,tt,ne,Z+Xe(b,u+30)+Xe(b,u+32),yt]},li=function(b,u){for(;Xe(b,u)!=1;u+=4+Xe(b,u+2));return[We(b,u+12),We(b,u+4),We(b,u+20)]},vn=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,Z,ge,De){var Ne=M.length,tt=y.extra,yt=De&&De.length,vt=vn(tt);$e(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|(Z<0&&8),b[u++]=ne&&8,b[u++]=y.compression&255,b[u++]=y.compression>>8;var kt=new Date(y.mtime==null?Date.now():y.mtime),Ve=kt.getFullYear()-1980;if((Ve<0||Ve>119)&&he(10),$e(b,u,Ve<<25|kt.getMonth()+1<<21|kt.getDate()<<16|kt.getHours()<<11|kt.getMinutes()<<5|kt.getSeconds()>>1),u+=4,Z!=-1&&($e(b,u,y.crc),$e(b,u+4,Z<0?-Z-2:Z),$e(b,u+8,y.size)),$e(b,u+12,Ne),$e(b,u+14,vt),u+=16,ge!=null&&($e(b,u,yt),$e(b,u+6,y.attrs),$e(b,u+10,ge),u+=14),b.set(M,u),u+=Ne,vt)for(var cr in tt){var tr=tt[cr],dr=tr.length;$e(b,u,+cr),$e(b,u+2,dr),b.set(tr,u+4),u+=4+dr}return yt&&(b.set(De,u),u+=yt),u},wr=function(b,u,y,M,ne){$e(b,u,101010256),$e(b,u+8,y),$e(b,u+10,y),$e(b,u+12,M),$e(b,u+16,ne)},Or=null,Hr=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),Z=ne.length,ge=0,De=0,Ne=Z,tt=new Array(Z),yt=[],vt=function(){for(var dr=0;dr<yt.length;++dr)yt[dr]()},kt=function(dr,Qt){Qi(function(){y(dr,Qt)})};Qi(function(){kt=y});var Ve=function(){var dr=new ke(De+22),Qt=ge,pr=De-ge;De=0;for(var Mr=0;Mr<Ne;++Mr){var an=tt[Mr];try{var Rn=an.c.length;hr(dr,De,an,an.f,an.u,Rn);var di=30+an.f.length+vn(an.extra),pn=De+di;dr.set(an.c,pn),hr(dr,ge,an,an.f,an.u,Rn,De,an.m),ge+=16+di+(an.m?an.m.length:0),De=pn+Rn}catch(Br){return kt(Br,null)}}wr(dr,ge,tt.length,pr,Qt),kt(null,dr)};Z||Ve();for(var cr=function(dr){var Qt=ne[dr],pr=M[Qt],Mr=pr[0],an=pr[1],Rn=Cr(),di=Mr.length;Rn.p(Mr);var pn=Sn(Qt),Br=pn.length,xn=an.comment,Nn=xn&&Sn(xn),er=Nn&&Nn.length,nr=vn(an.extra),ye=an.level==0?0:8,xe=function(et,st){if(et)vt(),kt(et,null);else{var gt=st.length;tt[dr]=Ue(an,{size:di,crc:Rn.d(),c:st,f:pn,m:Nn,u:Br!=Qt.length||Nn&&xn.length!=er,compression:ye}),ge+=30+Br+nr+gt,De+=76+2*(Br+nr)+(er||0)+gt,--Z||Ve()}};if(Br>65535&&xe(he(11,0,1),null),!ye)xe(null,Mr);else if(di<16e4)try{xe(null,Zr(Mr,an))}catch(et){xe(et,null)}else yt.push(ot(Mr,an,xe))},tr=0;tr<Ne;++tr)cr(tr);return vt}function Hn(b,u){u||(u={});var y={},M=[];tn(b,"",y,u);var ne=0,Z=0;for(var ge in y){var De=y[ge],Ne=De[0],tt=De[1],yt=tt.level==0?0:8,vt=Sn(ge),kt=vt.length,Ve=tt.comment,cr=Ve&&Sn(Ve),tr=cr&&cr.length,dr=vn(tt.extra);kt>65535&&he(11);var Qt=yt?Zr(Ne,tt):Ne,pr=Qt.length,Mr=Cr();Mr.p(Ne),M.push(Ue(tt,{size:Ne.length,crc:Mr.d(),c:Qt,f:vt,m:cr,u:kt!=ge.length||cr&&Ve.length!=tr,o:ne,compression:yt})),ne+=30+kt+dr+pr,Z+=76+2*(kt+dr)+(tr||0)+pr}for(var an=new ke(Z+22),Rn=ne,di=Z-ne,pn=0;pn<M.length;++pn){var vt=M[pn];hr(an,vt.o,vt,vt.f,vt.u,vt.c.length);var Br=30+vt.f.length+vn(vt.extra);an.set(vt.c,vt.o+Br),hr(an,ne,vt,vt.f,vt.u,vt.c.length,vt.o,vt.m),ne+=16+Br+(vt.m?vt.m.length:0)}return wr(an,ne,M.length,di,Rn),an}var ti=null,ui=null,Ri=null,Oi=null,Qi=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]()},Z={},ge=function(dr,Qt){Qi(function(){y(dr,Qt)})};Qi(function(){ge=y});for(var De=b.length-22;At(b,De)!=101010256;--De)if(!De||b.length-De>65558)return ge(he(13,0,1),null),ne;var Ne=Xe(b,De+8);if(Ne){var tt=Ne,yt=At(b,De+16),vt=yt==4294967295||tt==65535;if(vt){var kt=At(b,De-12);vt=At(b,kt)==101075792,vt&&(tt=Ne=At(b,kt+32),yt=At(b,kt+48))}for(var Ve=u&&u.filter,cr=function(dr){var Qt=Ni(b,yt,vt),pr=Qt[0],Mr=Qt[1],an=Qt[2],Rn=Qt[3],di=Qt[4],pn=Qt[5],Br=Jn(b,pn);yt=di;var xn=function(er,nr){er?(ne(),ge(er,null)):(nr&&(Z[Rn]=nr),--Ne||ge(null,Z))};if(!Ve||Ve({name:Rn,size:Mr,originalSize:an,compression:pr}))if(!pr)xn(null,T(b,Br,Br+Mr));else if(pr==8){var Nn=b.subarray(Br,Br+Mr);if(an<524288||Mr>.8*an)try{xn(null,nt(Nn,{out:new ke(an)}))}catch(er){xn(er,null)}else M.push(Gt(Nn,{size:an},xn))}else xn(he(14,"unknown compression type "+pr,1),null);else xn(null,null)},tr=0;tr<tt;++tr)cr(tr)}else ge(null,{});return ne}function En(b,u){for(var y={},M=b.length-22;At(b,M)!=101010256;--M)(!M||b.length-M>65558)&&he(13);var ne=Xe(b,M+8);if(!ne)return{};var Z=At(b,M+16),ge=Z==4294967295||ne==65535;if(ge){var De=At(b,M-12);ge=At(b,De)==101075792,ge&&(ne=At(b,De+32),Z=At(b,De+48))}for(var Ne=u&&u.filter,tt=0;tt<ne;++tt){var yt=Ni(b,Z,ge),vt=yt[0],kt=yt[1],Ve=yt[2],cr=yt[3],tr=yt[4],dr=yt[5],Qt=Jn(b,dr);Z=tr,(!Ne||Ne({name:cr,size:kt,originalSize:Ve,compression:vt}))&&(vt?vt==8?y[cr]=nt(b.subarray(Qt,Qt+kt),{out:new ke(Ve)}):he(14,"unknown compression type "+vt):y[cr]=T(b,Qt,Qt+kt))}return y}var hn=function(){return typeof window!="undefined"?window:typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:this}();function Ai(){hn.console&&typeof hn.console.log=="function"&&hn.console.log.apply(hn.console,arguments)}var si={log:Ai,warn:function(b){hn.console&&(typeof hn.console.warn=="function"?hn.console.warn.apply(hn.console,arguments):Ai.call(null,arguments))},error:function(b){hn.console&&(typeof hn.console.error=="function"?hn.console.error.apply(hn.console,arguments):Ai(b))}};function ri(b,u,y){var M=new XMLHttpRequest;M.open("GET",b),M.responseType="blob",M.onload=function(){oa(M.response,u,y)},M.onerror=function(){si.error("could not download file")},M.send()}function wi(b){var u=new XMLHttpRequest;u.open("HEAD",b,!1);try{u.send()}catch(y){}return u.status>=200&&u.status<=299}function Ti(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,oa=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?wi(ne.href)?ri(b,u,y):Ti(ne,ne.target="_blank"):Ti(ne)):(ne.href=M.createObjectURL(b),setTimeout(function(){M.revokeObjectURL(ne.href)},4e4),setTimeout(function(){Ti(ne)},0))}:"msSaveOrOpenBlob"in navigator?function(b,u,y){if(u=u||b.name||"download",typeof b=="string")if(wi(b))ri(b,u,y);else{var M=document.createElement("a");M.href=b,M.target="_blank",setTimeout(function(){Ti(M)})}else navigator.msSaveOrOpenBlob(function(ne,Z){return Z===void 0?Z={autoBom:!1}:(0,we.Z)(Z)!=="object"&&(si.warn("Deprecated: Expected third argument to be a object"),Z={autoBom:!Z}),Z.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",Z=/constructor/i.test(hn.HTMLElement)||hn.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ne&&Z)&&(typeof FileReader=="undefined"?"undefined":(0,we.Z)(FileReader))==="object"){var De=new FileReader;De.onloadend=function(){var yt=De.result;yt=ge?yt:yt.replace(/^data:[^;]*;/,"data:attachment/file;"),M?M.location.href=yt:location=yt,M=null},De.readAsDataURL(b)}else{var Ne=hn.URL||hn.webkitURL,tt=Ne.createObjectURL(b);M?M.location=tt:location.href=tt,M=null,setTimeout(function(){Ne.revokeObjectURL(tt)},4e4)}});function Ei(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(De){return[parseInt(De[1]),parseInt(De[2]),parseInt(De[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(De){return[parseInt(De[1],16),parseInt(De[2],16),parseInt(De[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(De){return[parseInt(De[1]+De[1],16),parseInt(De[2]+De[2],16),parseInt(De[3]+De[3],16)]}}],M=0;M<y.length;M++){var ne=y[M].re,Z=y[M].process,ge=ne.exec(b);ge&&(u=Z(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 De=this.r.toString(16),Ne=this.g.toString(16),tt=this.b.toString(16);return De.length==1&&(De="0"+De),Ne.length==1&&(Ne="0"+Ne),tt.length==1&&(tt="0"+tt),"#"+De+Ne+tt}}function wn(b,u){var y=b[0],M=b[1],ne=b[2],Z=b[3];y=Fn(y,M,ne,Z,u[0],7,-680876936),Z=Fn(Z,y,M,ne,u[1],12,-389564586),ne=Fn(ne,Z,y,M,u[2],17,606105819),M=Fn(M,ne,Z,y,u[3],22,-1044525330),y=Fn(y,M,ne,Z,u[4],7,-176418897),Z=Fn(Z,y,M,ne,u[5],12,1200080426),ne=Fn(ne,Z,y,M,u[6],17,-1473231341),M=Fn(M,ne,Z,y,u[7],22,-45705983),y=Fn(y,M,ne,Z,u[8],7,1770035416),Z=Fn(Z,y,M,ne,u[9],12,-1958414417),ne=Fn(ne,Z,y,M,u[10],17,-42063),M=Fn(M,ne,Z,y,u[11],22,-1990404162),y=Fn(y,M,ne,Z,u[12],7,1804603682),Z=Fn(Z,y,M,ne,u[13],12,-40341101),ne=Fn(ne,Z,y,M,u[14],17,-1502002290),y=Gn(y,M=Fn(M,ne,Z,y,u[15],22,1236535329),ne,Z,u[1],5,-165796510),Z=Gn(Z,y,M,ne,u[6],9,-1069501632),ne=Gn(ne,Z,y,M,u[11],14,643717713),M=Gn(M,ne,Z,y,u[0],20,-373897302),y=Gn(y,M,ne,Z,u[5],5,-701558691),Z=Gn(Z,y,M,ne,u[10],9,38016083),ne=Gn(ne,Z,y,M,u[15],14,-660478335),M=Gn(M,ne,Z,y,u[4],20,-405537848),y=Gn(y,M,ne,Z,u[9],5,568446438),Z=Gn(Z,y,M,ne,u[14],9,-1019803690),ne=Gn(ne,Z,y,M,u[3],14,-187363961),M=Gn(M,ne,Z,y,u[8],20,1163531501),y=Gn(y,M,ne,Z,u[13],5,-1444681467),Z=Gn(Z,y,M,ne,u[2],9,-51403784),ne=Gn(ne,Z,y,M,u[7],14,1735328473),y=Ci(y,M=Gn(M,ne,Z,y,u[12],20,-1926607734),ne,Z,u[5],4,-378558),Z=Ci(Z,y,M,ne,u[8],11,-2022574463),ne=Ci(ne,Z,y,M,u[11],16,1839030562),M=Ci(M,ne,Z,y,u[14],23,-35309556),y=Ci(y,M,ne,Z,u[1],4,-1530992060),Z=Ci(Z,y,M,ne,u[4],11,1272893353),ne=Ci(ne,Z,y,M,u[7],16,-155497632),M=Ci(M,ne,Z,y,u[10],23,-1094730640),y=Ci(y,M,ne,Z,u[13],4,681279174),Z=Ci(Z,y,M,ne,u[0],11,-358537222),ne=Ci(ne,Z,y,M,u[3],16,-722521979),M=Ci(M,ne,Z,y,u[6],23,76029189),y=Ci(y,M,ne,Z,u[9],4,-640364487),Z=Ci(Z,y,M,ne,u[12],11,-421815835),ne=Ci(ne,Z,y,M,u[15],16,530742520),y=ki(y,M=Ci(M,ne,Z,y,u[2],23,-995338651),ne,Z,u[0],6,-198630844),Z=ki(Z,y,M,ne,u[7],10,1126891415),ne=ki(ne,Z,y,M,u[14],15,-1416354905),M=ki(M,ne,Z,y,u[5],21,-57434055),y=ki(y,M,ne,Z,u[12],6,1700485571),Z=ki(Z,y,M,ne,u[3],10,-1894986606),ne=ki(ne,Z,y,M,u[10],15,-1051523),M=ki(M,ne,Z,y,u[1],21,-2054922799),y=ki(y,M,ne,Z,u[8],6,1873313359),Z=ki(Z,y,M,ne,u[15],10,-30611744),ne=ki(ne,Z,y,M,u[6],15,-1560198380),M=ki(M,ne,Z,y,u[13],21,1309151649),y=ki(y,M,ne,Z,u[4],6,-145523070),Z=ki(Z,y,M,ne,u[11],10,-1120210379),ne=ki(ne,Z,y,M,u[2],15,718787259),M=ki(M,ne,Z,y,u[9],21,-343485551),b[0]=Hi(y,b[0]),b[1]=Hi(M,b[1]),b[2]=Hi(ne,b[2]),b[3]=Hi(Z,b[3])}function Ht(b,u,y,M,ne,Z){return u=Hi(Hi(u,b),Hi(M,Z)),Hi(u<<ne|u>>>32-ne,y)}function Fn(b,u,y,M,ne,Z,ge){return Ht(u&y|~u&M,b,u,ne,Z,ge)}function Gn(b,u,y,M,ne,Z,ge){return Ht(u&M|y&~M,b,u,ne,Z,ge)}function Ci(b,u,y,M,ne,Z,ge){return Ht(u^y^M,b,u,ne,Z,ge)}function ki(b,u,y,M,ne,Z,ge){return Ht(y^(u|~M),b,u,ne,Z,ge)}function Aa(b){var u,y=b.length,M=[1732584193,-271733879,-1732584194,271733878];for(u=64;u<=b.length;u+=64)wn(M,Ca(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(wn(M,ne),u=0;u<16;u++)ne[u]=0;return ne[14]=8*y,wn(M,ne),M}function Ca(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 ta="0123456789abcdef".split("");function xa(b){for(var u="",y=0;y<4;y++)u+=ta[b>>8*y+4&15]+ta[b>>8*y&15];return u}function La(b){return String.fromCharCode((255&b)>>0,(65280&b)>>8,(16711680&b)>>16,(4278190080&b)>>24)}function hi(b){return Aa(b).map(La).join("")}var bi=function(b){for(var u=0;u<b.length;u++)b[u]=xa(b[u]);return b.join("")}(Aa("hello"))!="5d41402abc4b2a76b9719d911017c592";function Hi(b,u){if(bi){var y=(65535&b)+(65535&u);return(b>>16)+(u>>16)+(y>>16)<<16|65535&y}return b+u&4294967295}function ha(b,u){var y,M,ne,Z;if(b!==y){for(var ge=(ne=b,Z=1+(256/b.length>>0),new Array(Z+1).join(ne)),De=[],Ne=0;Ne<256;Ne++)De[Ne]=Ne;var tt=0;for(Ne=0;Ne<256;Ne++){var yt=De[Ne];tt=(tt+yt+ge.charCodeAt(Ne))%256,De[Ne]=De[tt],De[tt]=yt}y=b,M=De}else De=M;var vt=u.length,kt=0,Ve=0,cr="";for(Ne=0;Ne<vt;Ne++)Ve=(Ve+(yt=De[kt=(kt+1)%256]))%256,De[kt]=De[Ve],De[Ve]=yt,ge=De[(De[kt]+De[Ve])%256],cr+=String.fromCharCode(u.charCodeAt(Ne)^ge);return cr}var Na={print:4,modify:8,copy:16,"annot-forms":32};function ci(b,u,y,M){this.v=1,this.r=2;var ne=192;b.forEach(function(De){if(Na.perm!==void 0)throw new Error("Invalid permission: "+De);ne+=Na[De]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Z=(u+this.padding).substr(0,32),ge=(y+this.padding).substr(0,32);this.O=this.processOwnerPassword(Z,ge),this.P=-(1+(255^ne)),this.encryptionKey=hi(Z+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(M)).substr(0,5),this.U=ha(this.encryptionKey,this.padding)}function pa(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 va(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 Z=Math.random().toString(35);return u[y][Z]=[M,!!ne],Z},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 Z in u[y]){var ge=u[y][Z];try{ge[0].apply(b,M)}catch(De){hn.console&&si.error("jsPDF PubSub Error",De.message,De)}ge[1]&&ne.push(Z)}ne.length&&ne.forEach(this.unsubscribe)}},this.getTopics=function(){return u}}function Ha(b){if(!(this instanceof Ha))return new Ha(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 Is(b,u){this.gState=b,this.matrix=u,this.id="",this.objectNumber=-1}function Wa(b,u,y,M,ne){if(!(this instanceof Wa))return new Wa(b,u,y,M,ne);this.type=b==="axial"?2:3,this.coords=u,this.colors=y,Is.call(this,M,ne)}function Fa(b,u,y,M,ne){if(!(this instanceof Fa))return new Fa(b,u,y,M,ne);this.boundingBox=b,this.xStep=u,this.yStep=y,this.stream="",this.cloneIndex=0,Is.call(this,M,ne)}function Mi(b){var u,y=typeof arguments[0]=="string"?arguments[0]:"p",M=arguments[1],ne=arguments[2],Z=arguments[3],ge=[],De=1,Ne=16,tt="S",yt=null;(0,we.Z)(b=b||{})==="object"&&(y=b.orientation,M=b.unit||M,ne=b.format||ne,Z=b.compress||b.compressPdf||Z,(yt=b.encryption||null)!==null&&(yt.userPassword=yt.userPassword||"",yt.ownerPassword=yt.ownerPassword||"",yt.userPermissions=yt.userPermissions||[]),De=typeof b.userUnit=="number"?Math.abs(b.userUnit):1,b.precision!==void 0&&(u=b.precision),b.floatPrecision!==void 0&&(Ne=b.floatPrecision),tt=b.defaultPathOperation||"S"),ge=b.filters||(Z===!0?["FlateEncode"]:ge),M=M||"mm",y=(""+(y||"P")).toLowerCase();var vt=b.putOnlyUsedFonts||!1,kt={},Ve={internal:{},__private__:{}};Ve.__private__.PubSub=va;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 an(){this.saveGraphicsState(),ir(new Xi(je,0,0,-je,0,tu()*je).toString()+" cm"),this.setFontSize(this.getFontSize()/je),tt="n",Mr=pr.ADVANCED}function Rn(){this.restoreGraphicsState(),tt="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&&an.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&&an.call(this)),this},Ve.isAdvancedAPI=function(){return Mr===pr.ADVANCED};var pn,Br=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 mr=u||Et;if(isNaN(de)||isNaN(mr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return de.toFixed(mr).replace(/0+$/,"")};pn=Ve.hpf=Ve.__private__.hpf=typeof Ne=="number"?function(de){if(isNaN(de))throw new Error("Invalid argument passed to jsPDF.hpf");return xn(de,Ne)}:Ne==="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 ci(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(),mr=Et<0?"+":"-",Lr=Math.floor(Math.abs(Et/60)),ln=Math.abs(Et%60),$n=[mr,wt(Lr),"'",wt(ln),"'"].join("");return["D:",de.getFullYear(),wt(de.getMonth()+1),wt(de.getDate()),wt(de.getHours()),wt(de.getMinutes()),wt(de.getSeconds()),$n].join("")},$t=Ve.__private__.convertPDFDateToDate=function(de){var Et=parseInt(de.substr(2,4),10),mr=parseInt(de.substr(6,2),10)-1,Lr=parseInt(de.substr(8,2),10),ln=parseInt(de.substr(10,2),10),$n=parseInt(de.substr(12,2),10),_i=parseInt(de.substr(14,2),10);return new Date(Et,mr,Lr,ln,$n,_i,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)},jt=Ve.__private__.padd2Hex=function(de){return("00"+(de=de.toString())).substr(de.length)},Vt=0,ur=[],It=[],yr=0,Wr=[],$r=[],cn=!1,Dn=It,ni=function(){Vt=0,yr=0,It=[],ur=[],Wr=[],wa=ls(),$a=ls()};Ve.__private__.setCustomOutputDestination=function(de){cn=!0,Dn=de};var kr=function(de){cn||(Dn=de)};Ve.__private__.resetCustomOutputDestination=function(){cn=!1,Dn=It};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," "))},In=Ve.__private__.getArrayBuffer=function(de){for(var Et=de.length,mr=new ArrayBuffer(Et),Lr=new Uint8Array(mr);Et--;)Lr[Et]=de.charCodeAt(Et);return mr},sn=[["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 sn};var An=b.fontSize||16;Ve.__private__.setFontSize=Ve.setFontSize=function(de){return An=Mr===pr.ADVANCED?de/je:de,this};var rn,_n=Ve.__private__.getFontSize=Ve.getFontSize=function(){return Mr===pr.COMPAT?An:An*je},ii=b.R2L||!1;Ve.__private__.setR2L=Ve.setR2L=function(de){return ii=de,this},Ve.__private__.getR2L=Ve.getR2L=function(){return ii};var Di,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.');Di=de};Ve.__private__.getPageMode=function(){return Di};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,mr){return He(de),C(Et),w(mr),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=[],Cn={},Xr={},dn={},Mn={},qn=null,xi=0,yn=[],fi=new va(Ve),Ji=b.hotfixes||[],$i={},Sa={},Ia=[],Xi=function de(Et,mr,Lr,ln,$n,_i){if(!(this instanceof de))return new de(Et,mr,Lr,ln,$n,_i);isNaN(Et)&&(Et=1),isNaN(mr)&&(mr=0),isNaN(Lr)&&(Lr=0),isNaN(ln)&&(ln=1),isNaN($n)&&($n=0),isNaN(_i)&&(_i=0),this._matrix=[Et,mr,Lr,ln,$n,_i]};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,mr=de.sx*this.shy+de.shy*this.sy,Lr=de.shx*this.sx+de.sy*this.shx,ln=de.shx*this.shy+de.sy*this.sy,$n=de.tx*this.sx+de.ty*this.shx+this.tx,_i=de.tx*this.shy+de.ty*this.sy+this.ty;return new Xi(Et,mr,Lr,ln,$n,_i)},Xi.prototype.decompose=function(){var de=this.sx,Et=this.shy,mr=this.shx,Lr=this.sy,ln=this.tx,$n=this.ty,_i=Math.sqrt(de*de+Et*Et),ra=(de/=_i)*mr+(Et/=_i)*Lr;mr-=de*ra,Lr-=Et*ra;var ya=Math.sqrt(mr*mr+Lr*Lr);return ra/=ya,de*(Lr/=ya)<Et*(mr/=ya)&&(de=-de,Et=-Et,ra=-ra,_i=-_i),{scale:new Xi(_i,0,0,ya,0,0),translate:new Xi(1,0,0,1,ln,$n),rotate:new Xi(de,Et,-Et,de,0,0),skew:new Xi(1,0,ra,1,0,0)}},Xi.prototype.toString=function(de){return this.join(" ")},Xi.prototype.inversed=function(){var de=this.sx,Et=this.shy,mr=this.shx,Lr=this.sy,ln=this.tx,$n=this.ty,_i=1/(de*Lr-Et*mr),ra=Lr*_i,ya=-Et*_i,Xa=-mr*_i,Ga=de*_i;return new Xi(ra,ya,Xa,Ga,-ra*ln-Xa*$n,-ya*ln-Ga*$n)},Xi.prototype.applyToPoint=function(de){var Et=de.x*this.sx+de.y*this.shx+this.tx,mr=de.x*this.shy+de.y*this.sy+this.ty;return new Ac(Et,mr)},Xi.prototype.applyToRectangle=function(de){var Et=this.applyToPoint(de),mr=this.applyToPoint(new Ac(de.x+de.w,de.y+de.h));return new dc(Et.x,Et.y,mr.x-Et.x,mr.y-Et.y)},Xi.prototype.clone=function(){var de=this.sx,Et=this.shy,mr=this.shx,Lr=this.sy,ln=this.tx,$n=this.ty;return new Xi(de,Et,mr,Lr,ln,$n)},Ve.Matrix=Xi;var Ta=Ve.matrixMult=function(de,Et){return Et.multiply(de)},Ba=new Xi(1,0,0,1,0,0);Ve.unitMatrix=Ve.identityMatrix=Ba;var ai=function(de,Et){if(!Xr[de]){var mr=(Et instanceof Wa?"Sh":"P")+(Object.keys(Cn).length+1).toString(10);Et.id=mr,Xr[de]=mr,Cn[mr]=Et,fi.publish("addPattern",Et)}};Ve.ShadingPattern=Wa,Ve.TilingPattern=Fa,Ve.addShadingPattern=function(de,Et){return Br("addShadingPattern()"),ai(de,Et),this},Ve.beginTilingPattern=function(de){Br("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){Br("endTilingPattern()"),Et.stream=$r[_e].join(`
|
|
|
`),ai(de,Et),fi.publish("endTilingPattern",Et),Ia.pop().restore()};var Ka=Ve.__private__.newObject=function(){var de=ls();return aa(de,!0),de},ls=Ve.__private__.newObjectDeferred=function(){return Vt++,ur[Vt]=function(){return yr},Vt},aa=function(de,Et){return Et=typeof Et=="boolean"&&Et,ur[de]=yr,Et&&ir(de+" 0 obj"),de},da=Ve.__private__.newAdditionalObject=function(){var de={objId:ls(),content:""};return Wr.push(de),de},wa=ls(),$a=ls(),us=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 mr=parseFloat(Et[0]);Et=[mr,mr,mr,"r"]}for(var Lr="#",ln=0;ln<3;ln++)Lr+=("0"+Math.floor(255*parseFloat(Et[ln])).toString(16)).slice(-2);return Lr},ca=Ve.__private__.encodeColorString=function(de){var Et;typeof de=="string"&&(de={ch1:de});var mr=de.ch1,Lr=de.ch2,ln=de.ch3,$n=de.ch4,_i=de.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof mr=="string"&&mr.charAt(0)!=="#"){var ra=new Ei(mr);if(ra.ok)mr=ra.toHex();else if(!/^\d*\.?\d*$/.test(mr))throw new Error('Invalid color "'+mr+'" passed to jsPDF.encodeColorString.')}if(typeof mr=="string"&&/^#[0-9A-Fa-f]{3}$/.test(mr)&&(mr="#"+mr[1]+mr[1]+mr[2]+mr[2]+mr[3]+mr[3]),typeof mr=="string"&&/^#[0-9A-Fa-f]{6}$/.test(mr)){var ya=parseInt(mr.substr(1),16);mr=ya>>16&255,Lr=ya>>8&255,ln=255&ya}if(Lr===void 0||$n===void 0&&mr===Lr&&Lr===ln)if(typeof mr=="string")Et=mr+" "+_i[0];else switch(de.precision){case 2:Et=Nn(mr/255)+" "+_i[0];break;case 3:default:Et=er(mr/255)+" "+_i[0]}else if($n===void 0||(0,we.Z)($n)==="object"){if($n&&!isNaN($n.a)&&$n.a===0)return Et=["1.","1.","1.",_i[1]].join(" ");if(typeof mr=="string")Et=[mr,Lr,ln,_i[1]].join(" ");else switch(de.precision){case 2:Et=[Nn(mr/255),Nn(Lr/255),Nn(ln/255),_i[1]].join(" ");break;default:case 3:Et=[er(mr/255),er(Lr/255),er(ln/255),_i[1]].join(" ")}}else if(typeof mr=="string")Et=[mr,Lr,ln,$n,_i[2]].join(" ");else switch(de.precision){case 2:Et=[Nn(mr),Nn(Lr),Nn(ln),Nn($n),_i[2]].join(" ");break;case 3:default:Et=[er(mr),er(Lr),er(ln),er($n),_i[2]].join(" ")}return Et},Ts=Ve.__private__.getFilters=function(){return ge},bs=Ve.__private__.putStream=function(de){var Et=(de=de||{}).data||"",mr=de.filters||Ts(),Lr=de.alreadyAppliedFilters||[],ln=de.addLength1||!1,$n=Et.length,_i=de.objectId,ra=function(Yo){return Yo};if(yt!==null&&_i===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");yt!==null&&(ra=ko.encryptor(_i,0));var ya={};mr===!0&&(mr=["FlateEncode"]);var Xa=de.additionalKeyValues||[],Ga=(ya=Mi.API.processDataByFilters!==void 0?Mi.API.processDataByFilters(Et,mr):{data:Et,reverseChain:[]}).reverseChain+(Array.isArray(Lr)?Lr.join(" "):Lr.toString());if(ya.data.length!==0&&(Xa.push({key:"Length",value:ya.data.length}),ln===!0&&Xa.push({key:"Length1",value:$n})),Ga.length!=0)if(Ga.split("/").length-1==1)Xa.push({key:"Filter",value:Ga});else{Xa.push({key:"Filter",value:"["+Ga+"]"});for(var xs=0;xs<Xa.length;xs+=1)if(Xa[xs].key==="DecodeParms"){for(var mo=[],xo=0;xo<ya.reverseChain.split("/").length-1;xo+=1)mo.push("null");mo.push(Xa[xs].value),Xa[xs].value="["+mo.join(" ")+"]"}}ir("<<");for(var To=0;To<Xa.length;To++)ir("/"+Xa[To].key+" "+Xa[To].value);ir(">>"),ya.data.length!==0&&(ir("stream"),ir(ra(ya.data)),ir("endstream"))},Hs=Ve.__private__.putPage=function(de){var Et=de.number,mr=de.data,Lr=de.objId,ln=de.contentsObjId;aa(Lr,!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:Lr,pageContext:yn[Et],pageNumber:Et,page:mr}),ir("/Contents "+ln+" 0 R"),ir(">>"),ir("endobj");var $n=mr.join(`
|
|
|
`);return Mr===pr.ADVANCED&&($n+=`
|
|
|
Q`),aa(ln,!0),bs({data:$n,filters:Ts(),objectId:ln}),ir("endobj"),Lr},Zs=Ve.__private__.putPages=function(){var de,Et,mr=[];for(de=1;de<=xi;de++)yn[de].objId=ls(),yn[de].contentsObjId=ls();for(de=1;de<=xi;de++)mr.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:wa,resourceDictionaryObjId:$a}));aa(wa,!0),ir("<</Type /Pages");var Lr="/Kids [";for(Et=0;Et<xi;Et++)Lr+=mr[Et]+" 0 R ";ir(Lr+"]"),ir("/Count "+xi),ir(">>"),ir("endobj"),fi.publish("postPutPages")},Xs=function(de){fi.publish("putFont",{font:de,out:ir,newObject:Ka,putStream:bs}),de.isAlreadyPutted!==!0&&(de.objectNumber=Ka(),ir("<<"),ir("/Type /Font"),ir("/BaseFont /"+pa(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&&kt.hasOwnProperty(de))&&Xs(Ar[de])},$o=function(de){de.objectNumber=Ka();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 mr=de.pages[1].join(`
|
|
|
`);bs({data:mr,additionalKeyValues:Et,objectId:de.objectNumber}),ir("endobj")},ho=function(){for(var de in $i)$i.hasOwnProperty(de)&&$o($i[de])},oo=function(de,Et){var mr,Lr=[],ln=1/(Et-1);for(mr=0;mr<1;mr+=ln)Lr.push(mr);if(Lr.push(1),de[0].offset!=0){var $n={offset:0,color:de[0].color};de.unshift($n)}if(de[de.length-1].offset!=1){var _i={offset:1,color:de[de.length-1].color};de.push(_i)}for(var ra="",ya=0,Xa=0;Xa<Lr.length;Xa++){for(mr=Lr[Xa];mr>de[ya+1].offset;)ya++;var Ga=de[ya].offset,xs=(mr-Ga)/(de[ya+1].offset-Ga),mo=de[ya].color,xo=de[ya+1].color;ra+=jt(Math.round((1-xs)*mo[0]+xs*xo[0]).toString(16))+jt(Math.round((1-xs)*mo[1]+xs*xo[1]).toString(16))+jt(Math.round((1-xs)*mo[2]+xs*xo[2]).toString(16))}return ra.trim()},ro=function(de,Et){Et||(Et=21);var mr=Ka(),Lr=oo(de.colors,Et),ln=[];ln.push({key:"FunctionType",value:"0"}),ln.push({key:"Domain",value:"[0.0 1.0]"}),ln.push({key:"Size",value:"["+Et+"]"}),ln.push({key:"BitsPerSample",value:"8"}),ln.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ln.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bs({data:Lr,additionalKeyValues:ln,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:mr}),ir("endobj"),de.objectNumber=Ka(),ir("<< /ShadingType "+de.type),ir("/ColorSpace /DeviceRGB");var $n="/Coords ["+pn(parseFloat(de.coords[0]))+" "+pn(parseFloat(de.coords[1]))+" ";de.type===2?$n+=pn(parseFloat(de.coords[2]))+" "+pn(parseFloat(de.coords[3])):$n+=pn(parseFloat(de.coords[2]))+" "+pn(parseFloat(de.coords[3]))+" "+pn(parseFloat(de.coords[4]))+" "+pn(parseFloat(de.coords[5])),ir($n+="]"),de.matrix&&ir("/Matrix ["+de.matrix.toString()+"]"),ir("/Function "+mr+" 0 R"),ir("/Extend [true true]"),ir(">>"),ir("endobj")},$s=function(de,Et){var mr=ls(),Lr=Ka();Et.push({resourcesOid:mr,objectOid:Lr}),de.objectNumber=Lr;var ln=[];ln.push({key:"Type",value:"/Pattern"}),ln.push({key:"PatternType",value:"1"}),ln.push({key:"PaintType",value:"1"}),ln.push({key:"TilingType",value:"1"}),ln.push({key:"BBox",value:"["+de.boundingBox.map(pn).join(" ")+"]"}),ln.push({key:"XStep",value:pn(de.xStep)}),ln.push({key:"YStep",value:pn(de.yStep)}),ln.push({key:"Resources",value:mr+" 0 R"}),de.matrix&&ln.push({key:"Matrix",value:"["+de.matrix.toString()+"]"}),bs({data:de.stream,additionalKeyValues:ln,objectId:de.objectNumber}),ir("endobj")},ts=function(de){var Et;for(Et in Cn)Cn.hasOwnProperty(Et)&&(Cn[Et]instanceof Wa?ro(Cn[Et]):Cn[Et]instanceof Fa&&$s(Cn[Et],de))},al=function(de){for(var Et in de.objectNumber=Ka(),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 dn)dn.hasOwnProperty(de)&&al(dn[de])},Vo=function(){for(var de in ir("/XObject <<"),$i)$i.hasOwnProperty(de)&&$i[de].objectNumber>=0&&ir("/"+de+" "+$i[de].objectNumber+" 0 R");fi.publish("putXobjectDict"),ir(">>")},Jo=function(){ko.oid=Ka(),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&&kt.hasOwnProperty(de))&&ir("/"+de+" "+Ar[de].objectNumber+" 0 R");ir(">>")},Iu=function(){if(Object.keys(Cn).length>0){for(var de in ir("/Shading <<"),Cn)Cn.hasOwnProperty(de)&&Cn[de]instanceof Wa&&Cn[de].objectNumber>=0&&ir("/"+de+" "+Cn[de].objectNumber+" 0 R");fi.publish("putShadingPatternDict"),ir(">>")}},Ua=function(de){if(Object.keys(Cn).length>0){for(var Et in ir("/Pattern <<"),Cn)Cn.hasOwnProperty(Et)&&Cn[Et]instanceof Ve.TilingPattern&&Cn[Et].objectNumber>=0&&Cn[Et].objectNumber<de&&ir("/"+Et+" "+Cn[Et].objectNumber+" 0 R");fi.publish("putTilingPatternDict"),ir(">>")}},_s=function(){if(Object.keys(dn).length>0){var de;for(de in ir("/ExtGState <<"),dn)dn.hasOwnProperty(de)&&dn[de].objectNumber>=0&&ir("/"+de+" "+dn[de].objectNumber+" 0 R");fi.publish("putGStateDict"),ir(">>")}},rs=function(de){aa(de.resourcesOid,!0),ir("<<"),ir("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),fu(),Iu(),Ua(de.objectOid),_s(),Vo(),ir(">>"),ir("endobj")},Bs=function(){var de=[];Wo(),$l(),ho(),ts(de),fi.publish("putResources"),de.forEach(rs),rs({resourcesOid:$a,objectOid:Number.MAX_SAFE_INTEGER}),fi.publish("postPutResources")},wo=function(){fi.publish("putAdditionalObjects");for(var de=0;de<Wr.length;de++){var Et=Wr[de];aa(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,mr,Lr,ln){var $n={id:"F"+(Object.keys(Ar).length+1).toString(10),postScriptName:de,fontName:Et,fontStyle:mr,encoding:Lr,isStandardFont:ln||!1,metadata:{}};return fi.publish("addFont",{font:$n,instance:this}),Ar[$n.id]=$n,Ro($n),$n.id},Cl=function(de){for(var Et=0,mr=sn.length;Et<mr;Et++){var Lr=po.call(this,de[Et][0],de[Et][1],de[Et][2],sn[Et][3],!0);vt===!1&&(kt[Lr]=!0);var ln=de[Et][0].split("-");Ro({id:Lr,fontName:ln[0],fontStyle:ln[1]||""})}fi.publish("addFonts",{fonts:Ar,dictionary:xr})},Ko=function(de){return de.foo=function(){try{return de.apply(this,arguments)}catch(Lr){var Et=Lr.stack||"";~Et.indexOf(" at ")&&(Et=Et.split(" at ")[1]);var mr="Error in function "+Et.split(`
|
|
|
`)[0].split("<")[0]+": "+Lr.message;if(!hn.console)throw new Error(mr);hn.console.error(mr,Lr),hn.alert&&alert(mr)}},de.foo.bar=de,de.foo},Vl=function(de,Et){var mr,Lr,ln,$n,_i,ra,ya,Xa,Ga;if(ln=(Et=Et||{}).sourceEncoding||"Unicode",_i=Et.outputEncoding,(Et.autoencode||_i)&&Ar[Be].metadata&&Ar[Be].metadata[ln]&&Ar[Be].metadata[ln].encoding&&($n=Ar[Be].metadata[ln].encoding,!_i&&Ar[Be].encoding&&(_i=Ar[Be].encoding),!_i&&$n.codePages&&(_i=$n.codePages[0]),typeof _i=="string"&&(_i=$n[_i]),_i)){for(ya=!1,ra=[],mr=0,Lr=de.length;mr<Lr;mr++)(Xa=_i[de.charCodeAt(mr)])?ra.push(String.fromCharCode(Xa)):ra.push(de[mr]),ra[mr].charCodeAt(0)>>8&&(ya=!0);de=ra.join("")}for(mr=de.length;ya===void 0&&mr!==0;)de.charCodeAt(mr-1)>>8&&(ya=!0),mr--;if(!ya)return de;for(ra=Et.noBOM?[]:[254,255],mr=0,Lr=de.length;mr<Lr;mr++){if((Ga=(Xa=de.charCodeAt(mr))>>8)>>8)throw new Error("Character at position "+mr+" of string '"+de+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ra.push(Ga),ra.push(Xa-(Ga<<8))}return String.fromCharCode.apply(void 0,ra)},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[++xi]=[],yn[xi]={objId:0,contentsObjId:0,userUnit:Number(De),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(de[0]),topRightY:Number(de[1])}},sl(xi),kr($r[_e])},$u=function(de,Et){var mr,Lr,ln;switch(y=Et||y,typeof de=="string"&&(mr=Qt(de.toLowerCase()),Array.isArray(mr)&&(Lr=mr[0],ln=mr[1])),Array.isArray(de)&&(Lr=de[0]*je,ln=de[1]*je),isNaN(Lr)&&(Lr=ne[0],ln=ne[1]),(Lr>14400||ln>14400)&&(si.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Lr=Math.min(14400,Lr),ln=Math.min(14400,ln)),ne=[Lr,ln],y.substr(0,1)){case"l":ln>Lr&&(ne=[ln,Lr]);break;case"p":Lr>ln&&(ne=[ln,Lr])}Yl(ne),Sl(zo),ir(Ml),cc!==0&&ir(cc+" J"),Nu!==0&&ir(Nu+" j"),fi.publish("addPage",{pageNumber:xi})},hu=function(de){de>0&&de<=xi&&($r.splice(de,1),yn.splice(de,1),xi--,_e>xi&&(_e=xi),this.setPage(_e))},sl=function(de){de>0&&de<=xi&&(_e=de)},pu=Ve.__private__.getNumberOfPages=Ve.getNumberOfPages=function(){return $r.length-1},Tu=function(de,Et,mr){var Lr,ln=void 0;return mr=mr||{},de=de!==void 0?de:Ar[Be].fontName,Et=Et!==void 0?Et:Ar[Be].fontStyle,Lr=de.toLowerCase(),xr[Lr]!==void 0&&xr[Lr][Et]!==void 0?ln=xr[Lr][Et]:xr[de]!==void 0&&xr[de][Et]!==void 0?ln=xr[de][Et]:mr.disableWarning===!1&&si.warn("Unable to look up font label for font '"+de+"', '"+Et+"'. Refer to getFontList() for available fonts."),ln||mr.noFallback||(ln=xr.times[Et])==null&&(ln=xr.times.normal),ln},Ku=Ve.__private__.putInfo=function(){var de=Ka(),Et=function(Lr){return Lr};for(var mr in yt!==null&&(Et=ko.encryptor(de,0)),ir("<<"),ir("/Producer ("+No(Et("jsPDF "+Mi.version))+")"),K)K.hasOwnProperty(mr)&&K[mr]&&ir("/"+mr.substr(0,1).toUpperCase()+mr.substr(1)+" ("+No(Et(K[mr]))+")");ir("/CreationDate ("+No(Et(et))+")"),ir(">>"),ir("endobj")},mu=Ve.__private__.putCatalog=function(de){var Et=(de=de||{}).rootDictionaryObjId||wa;switch(Ka(),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 mr=""+rn;mr.substr(mr.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")}Di&&ir("/PageMode /"+Di),fi.publish("putCatalog"),ir(">>"),ir("endobj")},zu=Ve.__private__.putTrailer=function(){ir("trailer"),ir("<<"),ir("/Size "+(Vt+1)),ir("/Root "+Vt+" 0 R"),ir("/Info "+(Vt-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 "+(Vt+1)),ir("0000000000 65535 f ");for(var Et=1;Et<=Vt;Et++)typeof ur[Et]=="function"?ir((de+ur[Et]()).slice(-10)+" 00000 n "):ur[Et]!==void 0?ir((de+ur[Et]).slice(-10)+" 00000 n "):ir("0000000000 00000 n ")},kl=Ve.__private__.buildDocument=function(){ni(),kr(It),fi.publish("buildDocument"),Nl(),Zs(),wo(),Bs(),yt!==null&&Jo(),Ku(),mu();var de=yr;return Gu(),zu(),ir("startxref"),ir(""+de),ir("%%EOF"),kr($r[_e]),It.join(`
|
|
|
`)},gu=Ve.__private__.getBlob=function(de){return new Blob([In(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 In(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;si.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var mr="",Lr=kl();try{mr=zi(Lr)}catch(xo){mr=zi(unescape(encodeURIComponent(Lr)))}return"data:application/pdf;filename="+Et.filename+";base64,"+mr;case"pdfobjectnewwindow":if(Object.prototype.toString.call(hn)==="[object Window]"){var ln="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",$n=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Et.pdfObjectUrl&&(ln=Et.pdfObjectUrl,$n="");var _i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ln+'"'+$n+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Et)+");<\/script></body></html>",ra=hn.open();return ra!==null&&ra.document.write(_i),ra}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(hn)==="[object Window]"){var ya='<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>',Xa=hn.open();if(Xa!==null){Xa.document.write(ya);var Ga=this;Xa.document.documentElement.querySelector("#pdfViewer").onload=function(){Xa.document.title=Et.filename,Xa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ga.output("bloburl"))}}return Xa}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 xs='<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(xs),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(Ji)===!0&&Ji.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 mr,Lr;if(de>Et){mr=$r[de],Lr=yn[de];for(var ln=de;ln>Et;ln--)$r[ln]=$r[ln-1],yn[ln]=yn[ln-1];$r[Et]=mr,yn[Et]=Lr,this.setPage(Et)}else if(de<Et){mr=$r[de],Lr=yn[de];for(var $n=de;$n<Et;$n++)$r[$n]=$r[$n+1],yn[$n]=yn[$n+1];$r[Et]=mr,yn[Et]=Lr,this.setPage(Et)}return this},Ve.deletePage=function(){return hu.apply(this,arguments),this},Ve.__private__.text=Ve.text=function(de,Et,mr,Lr,ln){var $n,_i,ra,ya,Xa,Ga,xs,mo,xo,To=(Lr=Lr||{}).scope||this;if(typeof de=="number"&&typeof Et=="number"&&(typeof mr=="string"||Array.isArray(mr))){var Yo=mr;mr=Et,Et=de,de=Yo}if(arguments[3]instanceof Xi?(Br("The transform parameter of text() with a Matrix value"),xo=ln):(ra=arguments[4],ya=arguments[5],(0,we.Z)(xs=arguments[3])==="object"&&xs!==null||(typeof ra=="string"&&(ya=ra,ra=null),typeof xs=="string"&&(ya=xs,xs=null),typeof xs=="number"&&(ra=xs,xs=null),Lr={flags:xs,angle:ra,align:ya})),isNaN(Et)||isNaN(mr)||de==null)throw new Error("Invalid arguments passed to jsPDF.text");if(de.length===0)return To;var Mo="",Kl=!1,el=typeof Lr.lineHeightFactor=="number"?Lr.lineHeightFactor:ds,Tl=To.internal.scaleFactor;function xc(q){return q=q.split(" ").join(Array(Lr.TabLen||9).join(" ")),No(q,xs)}function Vu(q){for(var Ae,Re=q.concat(),Ye=[],Je=Re.length;Je--;)typeof(Ae=Re.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 Re;if(typeof q=="string")Re=Ae(q)[0];else if(Array.isArray(q)){for(var Ye,Je,lt=q.concat(),_t=[],Ft=lt.length;Ft--;)typeof(Ye=lt.shift())=="string"?_t.push(Ae(Ye)[0]):Array.isArray(Ye)&&typeof Ye[0]=="string"&&(Je=Ae(Ye[0],Ye[1],Ye[2]),_t.push([Je[0],Je[1],Je[2]]));Re=_t}return Re}var Yu=!1,Xu=!0;if(typeof de=="string")Yu=!0;else if(Array.isArray(de)){var Ec=de.concat();_i=[];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=An/To.internal.scaleFactor,no=Ju*(el-1);switch(Lr.baseline){case"bottom":mr-=no;break;case"top":mr+=Ju-no;break;case"hanging":mr+=Ju-2*no;break;case"middle":mr+=Ju/2-no}if((Ga=Lr.maxWidth||0)>0&&(typeof de=="string"?de=To.splitTextToSize(de,Ga):Object.prototype.toString.call(de)==="[object Array]"&&(de=de.reduce(function(q,Ae){return q.concat(To.splitTextToSize(Ae,Ga))},[]))),$n={text:de,x:Et,y:mr,options:Lr,mutex:{pdfEscape:No,activeFontKey:Be,fonts:Ar,activeFontSize:An}},fi.publish("preProcessText",$n),de=$n.text,ra=(Lr=$n.options).angle,!(xo instanceof Xi)&&ra&&typeof ra=="number"){ra*=Math.PI/180,Lr.rotationDirection===0&&(ra=-ra),Mr===pr.ADVANCED&&(ra=-ra);var Ul=Math.cos(ra),ru=Math.sin(ra);xo=new Xi(Ul,ru,-ru,Ul,0,0)}else ra&&ra instanceof Xi&&(xo=ra);Mr!==pr.ADVANCED||xo||(xo=Ba),(Xa=Lr.charSpace||uc)!==void 0&&(Mo+=pn(nr(Xa))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(mo=Lr.horizontalScale)!==void 0&&(Mo+=pn(100*mo)+` Tz
|
|
|
`),Lr.lang;var Oo=-1,nu=Lr.renderingMode!==void 0?Lr.renderingMode:Lr.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),ya=Lr.align||"left";var pl,qu=An*el,Cc=To.internal.pageSize.getWidth(),Mu=Ar[Be];Xa=Lr.charSpace||uc,Ga=Lr.maxWidth||0,xs=Object.assign({autoencode:!0,noBOM:!0},Lr.flags);var jl=[],iu=function(q){return To.getStringUnitWidth(q,{font:Mu,charSpace:Xa,fontSize:An,doKerning:!1})*An/Tl};if(Object.prototype.toString.call(de)==="[object Array]"){var ul;_i=Vu(de),ya!=="left"&&(pl=_i.map(iu));var Uo,Uu=0;if(ya==="right"){Et-=pl[0],de=[],Eo=_i.length;for(var au=0;au<Eo;au++)au===0?(Uo=hl(Et),ul=Il(mr)):(Uo=nr(Uu-pl[au]),ul=-qu),de.push([_i[au],Uo,ul]),Uu=pl[au]}else if(ya==="center"){Et-=pl[0]/2,de=[],Eo=_i.length;for(var su=0;su<Eo;su++)su===0?(Uo=hl(Et),ul=Il(mr)):(Uo=nr((Uu-pl[su])/2),ul=-qu),de.push([_i[su],Uo,ul]),Uu=pl[su]}else if(ya==="left"){de=[],Eo=_i.length;for(var mc=0;mc<Eo;mc++)de.push(_i[mc])}else if(ya==="justify"&&Mu.encoding==="Identity-H"){de=[],Eo=_i.length,Ga=Ga!==0?Ga:Cc;for(var Cu=0,Co=0;Co<Eo;Co++)if(ul=Co===0?Il(mr):-qu,Uo=Co===0?hl(Et):Cu,Co<Eo-1){var Qu=nr((Ga-pl[Co])/(_i[Co].split(" ").length-1)),cl=_i[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([_i[Co],Uo,ul]);de.push(["",Cu,0])}else{if(ya!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(de=[],Eo=_i.length,Ga=Ga!==0?Ga:Cc,Co=0;Co<Eo;Co++)ul=Co===0?Il(mr):-qu,Uo=Co===0?hl(Et):0,Co<Eo-1?jl.push(pn(nr((Ga-pl[Co])/(_i[Co].split(" ").length-1)))):jl.push(0),de.push([_i[Co],Uo,ul])}}var Tc=typeof Lr.R2L=="boolean"?Lr.R2L:ii;Tc===!0&&(de=hc(de,function(q,Ae,Re){return[q.split("").reverse().join(""),Ae,Re]})),$n={text:de,x:Et,y:mr,options:Lr,mutex:{pdfEscape:No,activeFontKey:Be,fonts:Ar,activeFontSize:An}},fi.publish("postProcessText",$n),de=$n.text,Kl=$n.mutex.isHex||!1;var ec=Ar[Be].encoding;ec!=="WinAnsiEncoding"&&ec!=="StandardEncoding"||(de=hc(de,function(q,Ae,Re){return[xc(q),Ae,Re]})),_i=Vu(de),de=[];for(var Al,d,e,t=0,r=1,i=Array.isArray(_i[0])?r:t,s="",l=function(q,Ae,Re){var Ye="";return Re instanceof Xi?(Re=typeof Lr.angle=="number"?Ta(Re,new Xi(1,0,0,1,q,Ae)):Ta(new Xi(1,0,0,1,q,Ae),Re),Mr===pr.ADVANCED&&(Re=Ta(new Xi(1,0,0,-1,0,0),Re)),Ye=Re.join(" ")+` Tm
|
|
|
`):Ye=pn(q)+" "+pn(Ae)+` Td
|
|
|
`,Ye},x=0;x<_i.length;x++){switch(s="",i){case r:e=(Kl?"<":"(")+_i[x][0]+(Kl?">":")"),Al=parseFloat(_i[x][1]),d=parseFloat(_i[x][2]);break;case t:e=(Kl?"<":"(")+_i[x]+(Kl?">":")"),Al=hl(Et),d=Il(mr)}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+" "+An+` Tf
|
|
|
`,j+=pn(An*el)+` TL
|
|
|
`,j+=Go+`
|
|
|
`,j+=Mo,j+=de,ir(j+="ET"),kt[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)&&(tt=de),this};var Lu=Ve.__private__.getStyle=Ve.getStyle=function(de){var Et=tt;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,mr,Lr,ln){var $n=new Fa(Et||this.boundingBox,mr||this.xStep,Lr||this.yStep,this.gState,ln||this.matrix);$n.stream=this.stream;var _i=de+"$$"+this.cloneIndex+++"$$";return ai(_i,$n),$n}var Ho=function(de,Et){var mr=Xr[de.key],Lr=Cn[mr];if(Lr instanceof Wa)ir("q"),ir(ws(Et)),Lr.gState&&Ve.setGState(Lr.gState),ir(de.matrix.toString()+" cm"),ir("/"+mr+" sh"),ir("Q");else if(Lr instanceof Fa){var ln=new Xi(1,0,0,-1,0,tu());de.matrix&&(ln=ln.multiply(de.matrix||Ba),mr=Bl.call(Lr,de.key,de.boundingBox,de.xStep,de.yStep,ln).id),ir("q"),ir("/Pattern cs"),ir("/"+mr+" scn"),Lr.gState&&Ve.setGState(Lr.gState),ir(Et),ir("Q")}},ws=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,mr,Lr,ln,$n){return ir([pn(nr(de)),pn(xe(Et)),pn(nr(mr)),pn(xe(Lr)),pn(nr(ln)),pn(xe($n)),"c"].join(" ")),this};Ve.__private__.line=Ve.line=function(de,Et,mr,Lr,ln){if(isNaN(de)||isNaN(Et)||isNaN(mr)||isNaN(Lr)||!_l(ln))throw new Error("Invalid arguments passed to jsPDF.line");return Mr===pr.COMPAT?this.lines([[mr-de,Lr-Et]],de,Et,[1,1],ln||"S"):this.lines([[mr-de,Lr-Et]],de,Et,[1,1]).stroke()},Ve.__private__.lines=Ve.lines=function(de,Et,mr,Lr,ln,$n){var _i,ra,ya,Xa,Ga,xs,mo,xo,To,Yo,Mo,Kl;if(typeof de=="number"&&(Kl=mr,mr=Et,Et=de,de=Kl),Lr=Lr||[1,1],$n=$n||!1,isNaN(Et)||isNaN(mr)||!Array.isArray(de)||!Array.isArray(Lr)||!_l(ln)||typeof $n!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ol(Et,mr),_i=Lr[0],ra=Lr[1],Xa=de.length,Yo=Et,Mo=mr,ya=0;ya<Xa;ya++)(Ga=de[ya]).length===2?(Yo=Ga[0]*_i+Yo,Mo=Ga[1]*ra+Mo,qo(Yo,Mo)):(xs=Ga[0]*_i+Yo,mo=Ga[1]*ra+Mo,xo=Ga[2]*_i+Yo,To=Ga[3]*ra+Mo,Yo=Ga[4]*_i+Yo,Mo=Ga[5]*ra+Mo,ql(xs,mo,xo,To,Yo,Mo));return $n&&yu(),Jl(ln),this},Ve.path=function(de){for(var Et=0;Et<de.length;Et++){var mr=de[Et],Lr=mr.c;switch(mr.op){case"m":ol(Lr[0],Lr[1]);break;case"l":qo(Lr[0],Lr[1]);break;case"c":ql.apply(this,Lr);break;case"h":yu()}}return this},Ve.__private__.rect=Ve.rect=function(de,Et,mr,Lr,ln){if(isNaN(de)||isNaN(Et)||isNaN(mr)||isNaN(Lr)||!_l(ln))throw new Error("Invalid arguments passed to jsPDF.rect");return Mr===pr.COMPAT&&(Lr=-Lr),ir([pn(nr(de)),pn(xe(Et)),pn(nr(mr)),pn(nr(Lr)),"re"].join(" ")),Jl(ln),this},Ve.__private__.triangle=Ve.triangle=function(de,Et,mr,Lr,ln,$n,_i){if(isNaN(de)||isNaN(Et)||isNaN(mr)||isNaN(Lr)||isNaN(ln)||isNaN($n)||!_l(_i))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[mr-de,Lr-Et],[ln-mr,$n-Lr],[de-ln,Et-$n]],de,Et,[1,1],_i,!0),this},Ve.__private__.roundedRect=Ve.roundedRect=function(de,Et,mr,Lr,ln,$n,_i){if(isNaN(de)||isNaN(Et)||isNaN(mr)||isNaN(Lr)||isNaN(ln)||isNaN($n)||!_l(_i))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ra=4/3*(Math.SQRT2-1);return ln=Math.min(ln,.5*mr),$n=Math.min($n,.5*Lr),this.lines([[mr-2*ln,0],[ln*ra,0,ln,$n-$n*ra,ln,$n],[0,Lr-2*$n],[0,$n*ra,-ln*ra,$n,-ln,$n],[2*ln-mr,0],[-ln*ra,0,-ln,-$n*ra,-ln,-$n],[0,2*$n-Lr],[0,-$n*ra,ln*ra,-$n,ln,-$n]],de+ln,Et,[1,1],_i,!0),this},Ve.__private__.ellipse=Ve.ellipse=function(de,Et,mr,Lr,ln){if(isNaN(de)||isNaN(Et)||isNaN(mr)||isNaN(Lr)||!_l(ln))throw new Error("Invalid arguments passed to jsPDF.ellipse");var $n=4/3*(Math.SQRT2-1)*mr,_i=4/3*(Math.SQRT2-1)*Lr;return ol(de+mr,Et),ql(de+mr,Et-_i,de+$n,Et-Lr,de,Et-Lr),ql(de-$n,Et-Lr,de-mr,Et-_i,de-mr,Et),ql(de-mr,Et+_i,de-$n,Et+Lr,de,Et+Lr),ql(de+$n,Et+Lr,de+mr,Et+_i,de+mr,Et),Jl(ln),this},Ve.__private__.circle=Ve.circle=function(de,Et,mr,Lr){if(isNaN(de)||isNaN(Et)||isNaN(mr)||!_l(Lr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(de,Et,mr,mr,Lr)},Ve.setFont=function(de,Et,mr){return mr&&(Et=di(Et,mr)),Be=Tu(de,Et,{disableWarning:!1}),this};var za=Ve.__private__.getFont=Ve.getFont=function(){return Ar[Tu.apply(Ve,arguments)]};Ve.__private__.getFontList=Ve.getFontList=function(){var de,Et,mr={};for(de in xr)if(xr.hasOwnProperty(de))for(Et in mr[de]=[],xr[de])xr[de].hasOwnProperty(Et)&&mr[de].push(Et);return mr},Ve.addFont=function(de,Et,mr,Lr,ln){var $n=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&$n.indexOf(arguments[3])!==-1?ln=arguments[3]:arguments[3]&&$n.indexOf(arguments[3])==-1&&(mr=di(mr,Lr)),ln=ln||"Identity-H",po.call(this,de,Et,mr,ln)};var ds,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=Mi.API.setLineDash=Mi.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(mr){return pn(nr(mr))}).join(" "),Et=pn(nr(Et)),ir("["+de+"] "+Et+" d"),this};var Ru=Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return An*ds};Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return An*ds};var Ou=Ve.__private__.setLineHeightFactor=Ve.setLineHeightFactor=function(de){return typeof(de=de||1.15)=="number"&&(ds=de),this},Pu=Ve.__private__.getLineHeightFactor=Ve.getLineHeightFactor=function(){return ds};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 us(Ml)},Ve.__private__.setStrokeColor=Ve.setDrawColor=function(de,Et,mr,Lr){return Ml=ca({ch1:de,ch2:Et,ch3:mr,ch4:Lr,pdfColorType:"draw",precision:2}),ir(Ml),this};var lc=b.fillColor||"0 g";Ve.__private__.getFillColor=Ve.getFillColor=function(){return us(lc)},Ve.__private__.setFillColor=Ve.setFillColor=function(de,Et,mr,Lr){return lc=ca({ch1:de,ch2:Et,ch3:mr,ch4:Lr,pdfColorType:"fill",precision:2}),ir(lc),this};var Go=b.textColor||"0 g",kc=Ve.__private__.getTextColor=Ve.getTextColor=function(){return us(Go)};Ve.__private__.setTextColor=Ve.setTextColor=function(de,Et,mr,Lr){return Go=ca({ch1:de,ch2:Et,ch3:mr,ch4:Lr,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=Ha,Ve.setGState=function(de){(de=typeof de=="string"?dn[Mn[de]]:ku(null,de)).equals(qn)||(ir("/"+de.id+" gs"),qn=de)};var ku=function(de,Et){if(!de||!Mn[de]){var mr=!1;for(var Lr in dn)if(dn.hasOwnProperty(Lr)&&dn[Lr].equals(Et)){mr=!0;break}if(mr)Et=dn[Lr];else{var ln="GS"+(Object.keys(dn).length+1).toString(10);dn[ln]=Et,Et.id=ln}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:An,color:Go}),this},Ve.restoreGraphicsState=function(){ir("Q");var de=nn.pop();return Be=de.key,An=de.size,Go=de.color,qn=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 mr=de||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return mr},set:function($n){isNaN($n)||(mr=parseFloat($n))}});var Lr=Et||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Lr},set:function($n){isNaN($n)||(Lr=parseFloat($n))}});var ln="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ln},set:function($n){ln=$n.toString()}}),this},dc=function(de,Et,mr,Lr){Ac.call(this,de,Et),this.type="rect";var ln=mr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ln},set:function(_i){isNaN(_i)||(ln=parseFloat(_i))}});var $n=Lr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return $n},set:function(_i){isNaN(_i)||($n=parseFloat(_i))}}),this},Wu=function(){this.page=xi,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(){xi=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,mr,Lr,ln){Ia.push(new Wu),xi=_e=0,$r=[],xt=de,bt=Et,Xt=ln,Yl([mr,Lr])},wc=function(de){if(Sa[de])Ia.pop().restore();else{var Et=new Wu,mr="Xo"+(Object.keys($i).length+1).toString(10);Et.id=mr,Sa[de]=mr,$i[mr]=Et,fi.publish("addFormObject",Et),Ia.pop().restore()}};for(var wu in Ve.beginFormObject=function(de,Et,mr,Lr,ln){return bc(de,Et,mr,Lr,ln),this},Ve.endFormObject=function(de){return wc(de),this},Ve.doFormObject=function(de,Et){var mr=$i[Sa[de]];return ir("q"),ir(Et.toString()+" cm"),ir("/"+mr.id+" Do"),ir("Q"),this},Ve.getFormObject=function(de){var Et=$i[Sa[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?(oa(gu(kl()),de),typeof oa.unload=="function"&&hn.setTimeout&&setTimeout(oa.unload,911),this):new Promise(function(mr,Lr){try{var ln=oa(gu(kl()),de);typeof oa.unload=="function"&&hn.setTimeout&&setTimeout(oa.unload,911),mr(ln)}catch($n){Lr($n.message)}})},Mi.API)Mi.API.hasOwnProperty(wu)&&(wu==="events"&&Mi.API.events.length?function(de,Et){var mr,Lr,ln;for(ln=Et.length-1;ln!==-1;ln--)mr=Et[ln][0],Lr=Et[ln][1],de.subscribe.apply(de,[mr].concat(typeof Lr=="function"?[Lr]:Lr))}(fi,Mi.API.events):Ve[wu]=Mi.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:za,getFontSize:_n,getCharSpace:Mc,getTextColor:kc,getLineHeight:Ru,getLineHeightFactor:Pu,getLineWidth:ll,write:Si,getHorizontalCoordinate:hl,getVerticalCoordinate:Il,getCoordinateString:Ic,getVerticalCoordinateString:bu,collections:{},newObject:Ka,newAdditionalObject:da,newObjectDeferred:ls,newObjectDeferredBegin:aa,getFilters:Ts,putStream:bs,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,sn),Be="F1",$u(ne,y),fi.publish("initialized"),Ve}ci.prototype.lsbFirstWord=function(b){return String.fromCharCode(b>>0&255,b>>8&255,b>>16&255,b>>24&255)},ci.prototype.toHexString=function(b){return b.split("").map(function(u){return("0"+(255&u.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ci.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("")},ci.prototype.processOwnerPassword=function(b,u){return ha(hi(u).substr(0,5),b)},ci.prototype.encryptor=function(b,u){var y=hi(this.encryptionKey+String.fromCharCode(255&b,b>>8&255,b>>16&255,255&u,u>>8&255)).substr(0,10);return function(M){return ha(y,M)}},Ha.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},Mi.API={events:[]},Mi.version="3.0.0";var la=Mi.API,ms=1,ss=function(b){return b.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ns=function(b){return b.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wi=function(b){return b.toFixed(2)},gs=function(b){return b.toFixed(5)};la.__acroform__={};var ia=function(b,u){b.prototype=Object.create(u.prototype),b.prototype.constructor=b},co=function(b){return b*ms},Qs=function(b){var u=new So,y=Fi.internal.getHeight(b)||0,M=Fi.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},hs=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},os=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)},Da=la.__acroform__.clearBitForPdf=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return hs(b,u-1)},io=la.__acroform__.calculateCoordinates=function(b,u){var y=u.internal.getHorizontalCoordinate,M=u.internal.getVerticalCoordinate,ne=b[0],Z=b[1],ge=b[2],De=b[3],Ne={};return Ne.lowerLeft_X=y(ne)||0,Ne.lowerLeft_Y=M(Z+De)||0,Ne.upperRight_X=y(ne+ge)||0,Ne.upperRight_Y=M(Z)||0,[Number(Wi(Ne.lowerLeft_X)),Number(Wi(Ne.lowerLeft_Y)),Number(Wi(Ne.upperRight_X)),Number(Wi(Ne.upperRight_Y))]},Zi=function(b){if(b.appearanceStreamContent)return b.appearanceStreamContent;if(b.V||b.DV){var u=[],y=b._V||b.DV,M=ea(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 Z=Qs(b);return Z.scope=b.scope,Z.stream=u.join(`
|
|
|
`),Z}},ea=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 Z=y,ge=Fi.internal.getHeight(b)||0;ge=ge<0?-ge:ge;var De=Fi.internal.getWidth(b)||0;De=De<0?-De:De;var Ne=function(er,nr,ye){if(er+1<ne.length){var xe=nr+" "+ne[er+1][0];return ji(xe,b,ye).width<=De-4}return!1};Z++;e:for(;Z>0;){u="",Z--;var tt,yt,vt=ji("3",b,Z).height,kt=b.multiline?ge-Z:(ge-vt)/2,Ve=kt+=2,cr=0,tr=0,dr=0;if(Z<=0){u=`(...) Tj
|
|
|
`,u+="% Width of Text: "+ji(u,b,Z=12).width+", FieldWidth:"+De+`
|
|
|
`;break}for(var Qt="",pr=0,Mr=0;Mr<ne.length;Mr++)if(ne.hasOwnProperty(Mr)){var an=!1;if(ne[Mr].length!==1&&dr!==ne[Mr].length-1){if((vt+2)*(pr+2)+2>ge)continue e;Qt+=ne[Mr][dr],an=!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=Ne(Rn,Qt,Z),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 Br="",xn=cr;xn<=tr;xn++){var Nn=ne[xn];if(b.multiline){if(xn===tr){Br+=Nn[dr]+" ",dr=(dr+1)%Nn.length;continue}if(xn===cr){Br+=Nn[Nn.length-1]+" ";continue}}Br+=Nn[0]+" "}switch(Br=Br.substr(Br.length-1)==" "?Br.substr(0,Br.length-1):Br,yt=ji(Br,b,Z).width,b.textAlign){case"right":tt=De-yt-2;break;case"center":tt=(De-yt)/2;break;case"left":default:tt=2}u+=Wi(tt)+" "+Wi(Ve)+` Td
|
|
|
`,u+="("+ss(Br)+`) Tj
|
|
|
`,u+=-Wi(tt)+` 0 Td
|
|
|
`,Ve=-(Z+2),yt=0,cr=an?tr:tr+1,pr++,Qt=""}break}return M.text=u,M.fontSize=Z,M},ji=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}},Ui={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ba=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)},ka=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(Ui)),b.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ms=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 Z=M[ne];Z.objId=void 0,Z.hasAnnotation&&ba(Z,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 Z=!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 De=M[ge],Ne=[],tt=De.Rect;if(De.Rect&&(De.Rect=io(De.Rect,ne)),ne.internal.newObjectDeferredBegin(De.objId,!0),De.DA=Fi.createDefaultAppearanceStream(De),(0,we.Z)(De)==="object"&&typeof De.getKeyValueListForStream=="function"&&(Ne=De.getKeyValueListForStream()),De.Rect=tt,De.hasAppearanceStream&&!De.appearanceStreamContent){var yt=Zi(De);Ne.push({key:"AP",value:"<</N "+yt+">>"}),ne.internal.acroformPlugin.xForms.push(yt)}if(De.appearanceStreamContent){var vt="";for(var kt in De.appearanceStreamContent)if(De.appearanceStreamContent.hasOwnProperty(kt)){var Ve=De.appearanceStreamContent[kt];if(vt+="/"+kt+" ",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,De)),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,De)),vt+="/"+ge+" "+cr,ne.internal.acroformPlugin.xForms.indexOf(cr)>=0||ne.internal.acroformPlugin.xForms.push(cr);vt+=">>"}Ne.push({key:"AP",value:`<<
|
|
|
`+vt+">>"})}ne.internal.putStream({additionalKeyValues:Ne,objectId:De.objId}),ne.internal.out("endobj")}Z&&ka(ne.internal.acroformPlugin.xForms,ne)})(y,b)}),b.internal.acroformPlugin.isInitialized=!0}},As=la.__acroform__.arrayToPdfArray=function(b,u,y){var M=function(ge){return ge};if(Array.isArray(b)){for(var ne="[",Z=0;Z<b.length;Z++)switch(Z!==0&&(ne+=" "),(0,we.Z)(b[Z])){case"boolean":case"number":case"object":ne+=b[Z].toString();break;case"string":b[Z].substr(0,1)!=="/"?(u!==void 0&&y&&(M=y.internal.getEncryptor(u)),ne+="("+ss(M(b[Z].toString()))+")"):ne+=b[Z].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="("+ss(M(b))+")"},is=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})};is.prototype.toString=function(){return this.objId+" 0 R"},is.prototype.putStream=function(){var b=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:b,objectId:this.objId}),this.scope.internal.out("endobj")},is.prototype.getKeyValueListForStream=function(){var b=[],u=Object.getOwnPropertyNames(this).filter(function(Z){return Z!="content"&&Z!="appearanceStreamContent"&&Z!="scope"&&Z!="objId"&&Z.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:As(ne,this.objId,this.scope)}):ne instanceof is?(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(){is.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}})};ia(So,is);var go=function(){is.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)),"("+ss(y(b))+")"}},set:function(y){b=y}})};ia(go,is);var eo=function b(){is.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!!os(u,3)},set:function(Qt){Qt?this.F=Yn(u,3):this.F=Da(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 Z=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Z||Z.length<1){if(this instanceof Ns)return;Z="FieldObject"+b.FieldNum++}var Qt=function(pr){return pr};return this.scope&&(Qt=this.scope.internal.getEncryptor(this.objId)),"("+ss(Qt(Z))+")"},set:function(Qt){Z=Qt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Z},set:function(Qt){Z=Qt}});var ge="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ge},set:function(Qt){ge=Qt}});var De="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return De},set:function(Qt){De=Qt}});var Ne=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(Qt){Ne=Qt}});var tt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return tt===void 0?50/ms:tt},set:function(Qt){tt=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 kt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(kt)return this instanceof ua?kt:Es(kt,this.objId,this.scope)},set:function(Qt){Qt=Qt.toString(),kt=this instanceof ua?Qt:Qt.substr(0,1)==="("?ns(Qt.substr(1,Qt.length-2)):ns(Qt)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua?ns(kt.substr(1,kt.length-1)):kt},set:function(Qt){Qt=Qt.toString(),kt=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)==="("?ns(Qt.substr(1,Qt.length-2)):ns(Qt)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua?ns(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!!os(this.Ff,1)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,1):this.Ff=Da(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,2)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,2):this.Ff=Da(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,3)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,3):this.Ff=Da(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}}})};ia(eo,is);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 As(u,this.objId,this.scope)},set:function(y){var M,ne;ne=[],typeof(M=y)=="string"&&(ne=function(Z,ge,De){De||(De=1);for(var Ne,tt=[];Ne=ge.exec(Z);)tt.push(Ne[De]);return tt}(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!!os(this.Ff,18)},set:function(y){y?this.Ff=Yn(this.Ff,18):this.Ff=Da(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,19)},set:function(y){this.combo===!0&&(y?this.Ff=Yn(this.Ff,19):this.Ff=Da(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,20)},set:function(y){y?(this.Ff=Yn(this.Ff,20),u.sort()):this.Ff=Da(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,22)},set:function(y){y?this.Ff=Yn(this.Ff,22):this.Ff=Da(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,23)},set:function(y){y?this.Ff=Yn(this.Ff,23):this.Ff=Da(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,27)},set:function(y){y?this.Ff=Yn(this.Ff,27):this.Ff=Da(this.Ff,27)}}),this.hasAppearanceStream=!1};ia(zs,eo);var Os=function(){zs.call(this),this.fontName="helvetica",this.combo=!1};ia(Os,zs);var Li=function(){Os.call(this),this.combo=!0};ia(Li,Os);var pi=function(){Li.call(this),this.edit=!0};ia(pi,Li);var ua=function(){eo.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,15)},set:function(y){y?this.Ff=Yn(this.Ff,15):this.Ff=Da(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,16)},set:function(y){y?this.Ff=Yn(this.Ff,16):this.Ff=Da(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,17)},set:function(y){y?this.Ff=Yn(this.Ff,17):this.Ff=Da(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,26)},set:function(y){y?this.Ff=Yn(this.Ff,26):this.Ff=Da(this.Ff,26)}});var b,u={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var y=function(Z){return Z};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+" ("+ss(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}})};ia(ua,eo);var vs=function(){ua.call(this),this.pushButton=!0};ia(vs,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:[]}})};ia(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(De){return De};this.scope&&(ne=this.scope.internal.getEncryptor(this.objId));var Z,ge=[];for(Z in ge.push("<<"),M)ge.push("/"+Z+" ("+ss(ne(M[Z]))+")");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=Fi.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ia(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=Fi.CheckBox.createAppearanceStream()};ia(Vs,ua);var vo=function(){eo.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,13)},set:function(u){u?this.Ff=Yn(this.Ff,13):this.Ff=Da(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,21)},set:function(u){u?this.Ff=Yn(this.Ff,21):this.Ff=Da(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,23)},set:function(u){u?this.Ff=Yn(this.Ff,23):this.Ff=Da(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,24)},set:function(u){u?this.Ff=Yn(this.Ff,24):this.Ff=Da(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,25)},set:function(u){u?this.Ff=Yn(this.Ff,25):this.Ff=Da(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,26)},set:function(u){u?this.Ff=Yn(this.Ff,26):this.Ff=Da(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}})};ia(vo,eo);var Ps=function(){vo.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!os(this.Ff,14)},set:function(b){b?this.Ff=Yn(this.Ff,14):this.Ff=Da(this.Ff,14)}}),this.password=!0};ia(Ps,vo);var Fi={CheckBox:{createAppearanceStream:function(){return{N:{On:Fi.CheckBox.YesNormal},D:{On:Fi.CheckBox.YesPushDown,Off:Fi.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),Z=ea(b,b.caption);return y.push("0.749023 g"),y.push("0 0 "+Wi(Fi.internal.getWidth(b))+" "+Wi(Fi.internal.getHeight(b))+" re"),y.push("f"),y.push("BMC"),y.push("q"),y.push("0 0 1 rg"),y.push("/"+M+" "+Wi(Z.fontSize)+" Tf "+ne),y.push("BT"),y.push(Z.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=[],Z=Fi.internal.getHeight(b),ge=Fi.internal.getWidth(b),De=ea(b,b.caption);return ne.push("1 g"),ne.push("0 0 "+Wi(ge)+" "+Wi(Z)+" re"),ne.push("f"),ne.push("q"),ne.push("0 0 1 rg"),ne.push("0 0 "+Wi(ge-1)+" "+Wi(Z-1)+" re"),ne.push("W"),ne.push("n"),ne.push("0 g"),ne.push("BT"),ne.push("/"+y+" "+Wi(De.fontSize)+" Tf "+M),ne.push(De.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(Fi.internal.getWidth(b))+" "+Wi(Fi.internal.getHeight(b))+" re"),y.push("f"),u.stream=y.join(`
|
|
|
`),u}},RadioButton:{Circle:{createAppearanceStream:function(b){var u={D:{Off:Fi.RadioButton.Circle.OffPushDown},N:{}};return u.N[b]=Fi.RadioButton.Circle.YesNormal,u.D[b]=Fi.RadioButton.Circle.YesPushDown,u},getCA:function(){return"l"},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Fi.internal.getWidth(b)<=Fi.internal.getHeight(b)?Fi.internal.getWidth(b)/4:Fi.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Fi.internal.Bezier_C,Z=Number((M*ne).toFixed(5));return y.push("q"),y.push("1 0 0 1 "+gs(Fi.internal.getWidth(b)/2)+" "+gs(Fi.internal.getHeight(b)/2)+" cm"),y.push(M+" 0 m"),y.push(M+" "+Z+" "+Z+" "+M+" 0 "+M+" c"),y.push("-"+Z+" "+M+" -"+M+" "+Z+" -"+M+" 0 c"),y.push("-"+M+" -"+Z+" -"+Z+" -"+M+" 0 -"+M+" c"),y.push(Z+" -"+M+" "+M+" -"+Z+" "+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=Fi.internal.getWidth(b)<=Fi.internal.getHeight(b)?Fi.internal.getWidth(b)/4:Fi.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Number((2*M).toFixed(5)),Z=Number((ne*Fi.internal.Bezier_C).toFixed(5)),ge=Number((M*Fi.internal.Bezier_C).toFixed(5));return y.push("0.749023 g"),y.push("q"),y.push("1 0 0 1 "+gs(Fi.internal.getWidth(b)/2)+" "+gs(Fi.internal.getHeight(b)/2)+" cm"),y.push(ne+" 0 m"),y.push(ne+" "+Z+" "+Z+" "+ne+" 0 "+ne+" c"),y.push("-"+Z+" "+ne+" -"+ne+" "+Z+" -"+ne+" 0 c"),y.push("-"+ne+" -"+Z+" -"+Z+" -"+ne+" 0 -"+ne+" c"),y.push(Z+" -"+ne+" "+ne+" -"+Z+" "+ne+" 0 c"),y.push("f"),y.push("Q"),y.push("0 g"),y.push("q"),y.push("1 0 0 1 "+gs(Fi.internal.getWidth(b)/2)+" "+gs(Fi.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=Fi.internal.getWidth(b)<=Fi.internal.getHeight(b)?Fi.internal.getWidth(b)/4:Fi.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Number((2*M).toFixed(5)),Z=Number((ne*Fi.internal.Bezier_C).toFixed(5));return y.push("0.749023 g"),y.push("q"),y.push("1 0 0 1 "+gs(Fi.internal.getWidth(b)/2)+" "+gs(Fi.internal.getHeight(b)/2)+" cm"),y.push(ne+" 0 m"),y.push(ne+" "+Z+" "+Z+" "+ne+" 0 "+ne+" c"),y.push("-"+Z+" "+ne+" -"+ne+" "+Z+" -"+ne+" 0 c"),y.push("-"+ne+" -"+Z+" -"+Z+" -"+ne+" 0 -"+ne+" c"),y.push(Z+" -"+ne+" "+ne+" -"+Z+" "+ne+" 0 c"),y.push("f"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u}},Cross:{createAppearanceStream:function(b){var u={D:{Off:Fi.RadioButton.Cross.OffPushDown},N:{}};return u.N[b]=Fi.RadioButton.Cross.YesNormal,u.D[b]=Fi.RadioButton.Cross.YesPushDown,u},getCA:function(){return"8"},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Fi.internal.calculateCross(b);return y.push("q"),y.push("1 1 "+Wi(Fi.internal.getWidth(b)-2)+" "+Wi(Fi.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=Fi.internal.calculateCross(b),M=[];return M.push("0.749023 g"),M.push("0 0 "+Wi(Fi.internal.getWidth(b))+" "+Wi(Fi.internal.getHeight(b))+" re"),M.push("f"),M.push("q"),M.push("1 1 "+Wi(Fi.internal.getWidth(b)-2)+" "+Wi(Fi.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(Fi.internal.getWidth(b))+" "+Wi(Fi.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}};Fi.internal={Bezier_C:.551915024494,calculateCross:function(b){var u=Fi.internal.getWidth(b),y=Fi.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}}}},Fi.internal.getWidth=function(b){var u=0;return(0,we.Z)(b)==="object"&&(u=co(b.Rect[2])),u},Fi.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=vs,la.AcroFormRadioButton=Oa,la.AcroFormCheckBox=Vs,la.AcroFormTextField=vo,la.AcroFormPasswordField=Ps,la.AcroFormAppearance=Fi,la.AcroForm={ChoiceField:zs,ListBox:Os,ComboBox:Li,EditBox:pi,Button:ua,PushButton:vs,RadioButton:Oa,CheckBox:Vs,TextField:vo,PasswordField:Ps,Appearance:Fi},Mi.AcroForm={ChoiceField:zs,ListBox:Os,ComboBox:Li,EditBox:pi,Button:ua,PushButton:vs,RadioButton:Oa,CheckBox:Vs,TextField:vo,PasswordField:Ps,Appearance:Fi};var Js=Mi.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:Br(new Uint8Array(nr.palette)),objectId:_e}),ye("endobj")}},Z=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")},De=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Z),this.internal.events.subscribe("putXobjectDict",ge))},Ne=function(){var er=this.internal.collections.addImage_images;return De.call(this),er},tt=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},kt=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=Ne.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(jt){return jt.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},an=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},Br=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");De.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=kt(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,tt.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=an(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=kt(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}})(Mi.API),function(b){var u=function(y){if(y!==void 0&&y!="")return!0};Mi.API.events.push(["addPage",function(y){this.internal.getPageInfo(y.pageNumber).pageContext.annotations=[]}]),b.events.push(["putPage",function(y){for(var M,ne,Z,ge=this.internal.getCoordinateString,De=this.internal.getVerticalCoordinateString,Ne=this.internal.getPageInfoByObjId(y.objId),tt=y.pageContext.annotations,yt=!1,vt=0;vt<tt.length&&!yt;vt++)switch((M=tt[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 kt=0;kt<tt.length;kt++){M=tt[kt];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";Z="<</Type /Annot /Subtype /Text "+(ne="/Rect ["+ge(M.bounds.x)+" "+De(M.bounds.y+M.bounds.h)+" "+ge(M.bounds.x+M.bounds.w)+" "+De(M.bounds.y)+"] ")+"/Contents ("+Ve(Qt(M.contents))+")",Z+=" /Popup "+dr.objId+" 0 R",Z+=" /P "+Ne.objId+" 0 R",Z+=" /T ("+Ve(Qt(pr))+") >>",tr.content=Z;var Mr=tr.objId+" 0 R";Z="<</Type /Annot /Subtype /Popup "+(ne="/Rect ["+ge(M.bounds.x+30)+" "+De(M.bounds.y+M.bounds.h)+" "+ge(M.bounds.x+M.bounds.w+30)+" "+De(M.bounds.y)+"] ")+" /Parent "+Mr,M.open&&(Z+=" /Open true"),Z+=" >>",dr.content=Z,this.internal.write(tr.objId,"0 R",dr.objId,"0 R");break;case"freetext":ne="/Rect ["+ge(M.bounds.x)+" "+De(M.bounds.y)+" "+ge(M.bounds.x+M.bounds.w)+" "+De(M.bounds.y+M.bounds.h)+"] ";var an=M.color||"#000000";Z="<</Type /Annot /Subtype /FreeText "+ne+"/Contents ("+Ve(cr(M.contents))+")",Z+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+an+")",Z+=" /Border [0 0 0]",Z+=" >>",this.internal.write(Z);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+"] ",Z="",M.options.url)Z="<</Type /Annot /Subtype /Link "+ne+"/Border [0 0 0] /A <</S /URI /URI ("+Ve(cr(M.options.url))+") >>";else if(M.options.pageNumber)switch(Z="<</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":Z+=" /Fit]";break;case"FitH":Z+=" /FitH "+M.options.top+"]";break;case"FitV":M.options.left=M.options.left||0,Z+=" /FitV "+M.options.left+"]";break;case"XYZ":default:var di=De(M.options.top);M.options.left=M.options.left||0,M.options.zoom===void 0&&(M.options.zoom=0),Z+=" /XYZ "+M.options.left+" "+di+" "+M.options.zoom+"]"}Z!=""&&(Z+=" >>",this.internal.write(Z))}}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,Z,ge){var De=this.internal.getCurrentPageInfo(),Ne=this.internal.getCoordinateString,tt=this.internal.getVerticalCoordinateString;De.pageContext.annotations.push({finalBounds:{x:Ne(y),y:tt(M),w:Ne(y+ne),h:tt(M+Z)},options:ge,type:"link"})},b.textWithLink=function(y,M,ne,Z){var ge,De,Ne=this.getTextWidth(y),tt=this.internal.getLineHeight()/this.internal.scaleFactor;if(Z.maxWidth!==void 0){De=Z.maxWidth;var yt=this.splitTextToSize(y,De).length;ge=Math.ceil(tt*yt)}else De=Ne,ge=tt;return this.text(y,M,ne,Z),ne+=.2*tt,Z.align==="center"&&(M-=Ne/2),Z.align==="right"&&(M-=Ne),this.link(M,ne-tt,De,ge,Z),Ne},b.getTextWidth=function(y){var M=this.internal.getFontSize();return this.getStringUnitWidth(y)*M/this.internal.scaleFactor}}(Mi.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 Z=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)},De=b.__arabicParser__.isArabicEndLetter=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length<=2},Ne=b.__arabicParser__.isArabicAlfLetter=function(tr){return ge(tr)&&ne.indexOf(tr.charCodeAt(0))>=0};b.__arabicParser__.arabicLetterHasIsolatedForm=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length>=1};var tt=b.__arabicParser__.arabicLetterHasFinalForm=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length>=2};b.__arabicParser__.arabicLetterHasInitialForm=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length>=3};var yt=b.__arabicParser__.arabicLetterHasMedialForm=function(tr){return ge(tr)&&Z(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 kt=b.__arabicParser__.getCorrectForm=function(tr,dr,Qt){return ge(tr)?Z(tr)===!1?-1:!tt(tr)||!ge(dr)&&!ge(Qt)||!ge(Qt)&&De(dr)||De(tr)&&!ge(dr)||De(tr)&&Ne(dr)||De(tr)&&De(dr)?0:yt(tr)&&ge(dr)&&!De(dr)&&ge(Qt)&&tt(Qt)?3:De(tr)||!ge(Qt)?1:2:-1},Ve=function(tr){var dr=0,Qt=0,pr=0,Mr="",an="",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],an=di[dr][Qt-1],Rn=di[dr][Qt+1],ge(Mr)?(pr=kt(Mr,an,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])}(Mi.API),Mi.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(De){y=De}});var M=150;Object.defineProperty(this,"width",{get:function(){return M},set:function(De){M=isNaN(De)||Number.isInteger(De)===!1||De<0?150:De,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=M+1)}});var ne=300;Object.defineProperty(this,"height",{get:function(){return ne},set:function(De){ne=isNaN(De)||Number.isInteger(De)===!1||De<0?300:De,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ne+1)}});var Z=[];Object.defineProperty(this,"childNodes",{get:function(){return Z},set:function(De){Z=De}});var ge={};Object.defineProperty(this,"style",{get:function(){return ge},set:function(De){ge=De}}),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}])}(Mi.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 Z,this.internal.__cell__.pages=1},Z=function(){var Ne=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ne},set:function(tr){Ne=tr}});var tt=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return tt},set:function(tr){tt=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 kt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return kt},set:function(tr){kt=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};Z.prototype.clone=function(){return new Z(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Z.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},b.setHeaderFunction=function(Ne){return M.call(this),this.internal.__cell__.headerFunction=typeof Ne=="function"?Ne:void 0,this},b.getTextDimensions=function(Ne,tt){M.call(this);var yt=(tt=tt||{}).fontSize||this.getFontSize(),vt=tt.font||this.getFont(),kt=tt.scaleFactor||this.internal.scaleFactor,Ve=0,cr=0,tr=0,dr=this;if(!Array.isArray(Ne)&&typeof Ne!="string"){if(typeof Ne!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Ne=String(Ne)}var Qt=tt.maxWidth;Qt>0?typeof Ne=="string"?Ne=this.splitTextToSize(Ne,Qt):Object.prototype.toString.call(Ne)==="[object Array]"&&(Ne=Ne.reduce(function(Mr,an){return Mr.concat(dr.splitTextToSize(an,Qt))},[])):Ne=Array.isArray(Ne)?Ne:[Ne];for(var pr=0;pr<Ne.length;pr++)Ve<(tr=this.getStringUnitWidth(Ne[pr],{font:vt})*yt)&&(Ve=tr);return Ve!==0&&(cr=Ne.length),{w:Ve/=kt,h:Math.max((cr*yt*this.getLineHeightFactor()-yt*(this.getLineHeightFactor()-1))/kt,0)}},b.cellAddPage=function(){M.call(this),this.addPage();var Ne=this.internal.__cell__.margins||u;return this.internal.__cell__.lastCell=new Z(Ne.left,Ne.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ge=b.cell=function(){var Ne;Ne=arguments[0]instanceof Z?arguments[0]:new Z(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),M.call(this);var tt=this.internal.__cell__.lastCell,yt=this.internal.__cell__.padding,vt=this.internal.__cell__.margins||u,kt=this.internal.__cell__.tableHeaderRow,Ve=this.internal.__cell__.printHeaders;return tt.lineNumber!==void 0&&(tt.lineNumber===Ne.lineNumber?(Ne.x=(tt.x||0)+(tt.width||0),Ne.y=tt.y||0):tt.y+tt.height+Ne.height+vt.bottom>this.getPageHeight()?(this.cellAddPage(),Ne.y=vt.top,Ve&&kt&&(this.printHeaderRow(Ne.lineNumber,!0),Ne.y+=kt[0].height)):Ne.y=tt.y+tt.height||Ne.y),Ne.text[0]!==void 0&&(this.rect(Ne.x,Ne.y,Ne.width,Ne.height,y===!0?"FD":void 0),Ne.align==="right"?this.text(Ne.text,Ne.x+Ne.width-yt,Ne.y+yt,{align:"right",baseline:"top"}):Ne.align==="center"?this.text(Ne.text,Ne.x+Ne.width/2,Ne.y+yt,{align:"center",baseline:"top",maxWidth:Ne.width-yt-yt}):this.text(Ne.text,Ne.x+yt,Ne.y+yt,{align:"left",baseline:"top",maxWidth:Ne.width-yt-yt})),this.internal.__cell__.lastCell=Ne,this};b.table=function(Ne,tt,yt,vt,kt){if(M.call(this),!yt)throw new Error("No data for PDF table.");var Ve,cr,tr,dr,Qt=[],pr=[],Mr=[],an={},Rn={},di=[],pn=[],Br=(kt=kt||{}).autoSize||!1,xn=kt.printHeaders!==!1,Nn=kt.css&&kt.css["font-size"]!==void 0?16*kt.css["font-size"]:kt.fontSize||12,er=kt.margins||Object.assign({width:this.getPageWidth()},u),nr=typeof kt.padding=="number"?kt.padding:3,ye=kt.headerBackgroundColor||"#c8c8c8",xe=kt.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(Br||Array.isArray(vt)&&typeof vt[0]=="string")for(Ve=0;Ve<Qt.length;Ve+=1){for(an[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=an[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=De.call(this,et,Rn);pn=Qt.map(function($t){return new Z(Ne,tt,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 kt&&kt.rowStart instanceof Function&&kt.rowStart({row:Ve,data:yt[Ve]},this);var ft=De.call(this,yt[Ve],Rn);for(tr=0;tr<Qt.length;tr+=1){var Ut=yt[Ve][Qt[tr]];"cellStart"in kt&&kt.cellStart instanceof Function&&kt.cellStart({row:Ve,col:tr,data:Ut},this),ge.call(this,new Z(Ne,tt,Rn[Qt[tr]],ft,Ut,Ve+2,gt[Qt[tr]]))}}return this.internal.__cell__.table_x=Ne,this.internal.__cell__.table_y=tt,this};var De=function(Ne,tt){var yt=this.internal.__cell__.padding,vt=this.internal.__cell__.table_font_size,kt=this.internal.scaleFactor;return Object.keys(Ne).map(function(Ve){var cr=Ne[Ve];return this.splitTextToSize(cr.hasOwnProperty("text")?cr.text:cr,tt[Ve]-yt-yt)},this).map(function(Ve){return this.getLineHeightFactor()*Ve.length*vt/kt+yt+yt},this).reduce(function(Ve,cr){return Math.max(Ve,cr)},0)};b.setTableHeaderRow=function(Ne){M.call(this),this.internal.__cell__.tableHeaderRow=Ne},b.printHeaderRow=function(Ne,tt){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 Z(vt[0],vt[1],vt[2],vt[3],void 0,-1)}this.setFont(void 0,"bold");for(var kt=[],Ve=0;Ve<this.internal.__cell__.tableHeaderRow.length;Ve+=1){yt=this.internal.__cell__.tableHeaderRow[Ve].clone(),tt&&(yt.y=this.internal.__cell__.margins.top||0,kt.push(yt)),yt.lineNumber=Ne;var cr=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ge.call(this,yt),this.setTextColor(cr)}kt.length>0&&this.setTableHeaderRow(kt),this.setFont(void 0,"normal"),y=!1}}(Mi.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(Z){return Qo[Z=Z||"normal"]?Z:"normal"}(b.style),M=function(Z){if(!Z)return 400;if(typeof Z=="number")return Z>=100&&Z<=900&&Z%100==0?Z:400;if(/^\d00$/.test(Z))return parseInt(Z);switch(Z){case"bold":return 700;case"normal":default:return 400}}(b.weight),ne=function(Z){return typeof _a[Z=Z||"normal"]=="number"?Z:"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 Ma={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ma={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 Ja(b,u,y){for(var M=(y=y||{}).defaultFontFamily||"times",ne=Object.assign({},Ma,y.genericFontFamilies||{}),Z=null,ge=null,De=0;De<u.length;++De)if(ne[(Z=fo(u[De])).family]&&(Z.family=ne[Z.family]),b.hasOwnProperty(Z.family)){ge=b[Z.family];break}if(!(ge=ge||b[M]))throw new Error("Could not find a font-family for the rule '"+to(Z)+"' and default family '"+M+"'.");if(ge=function(Ne,tt){if(tt[Ne])return tt[Ne];var yt=_a[Ne],vt=yt<=_a.normal?-1:1,kt=yo(tt,Ao,yt,vt);if(!kt)throw new Error("Could not find a matching font-stretch value for "+Ne);return kt}(Z.stretch,ge),ge=function(Ne,tt){if(tt[Ne])return tt[Ne];for(var yt=Qo[Ne],vt=0;vt<yt.length;++vt)if(tt[yt[vt]])return tt[yt[vt]];throw new Error("Could not find a matching font-style for "+Ne)}(Z.style,ge),!(ge=function(Ne,tt){if(tt[Ne])return tt[Ne];if(Ne===400&&tt[500])return tt[500];if(Ne===500&&tt[400])return tt[400];var yt=yl[Ne],vt=yo(tt,vl,yt,Ne<400?-1:1);if(!vt)throw new Error("Could not find a matching font-weight for value "+Ne);return vt}(Z.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+to(Z)+"'.");return ge}function as(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 Ea(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,Z,ge,De,Ne,tt,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 Ne,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,Z=this.internal.getVerticalCoordinate,ge=this.internal.Point,De=this.internal.Rectangle,Ne=this.internal.Matrix,tt=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 jt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return jt},set:function(kr){jt=!!kr}});var Vt=0;Object.defineProperty(this,"posX",{get:function(){return Vt},set:function(kr){isNaN(kr)||(Vt=kr)}});var ur=0;Object.defineProperty(this,"posY",{get:function(){return ur},set:function(kr){isNaN(kr)||(ur=kr)}}),Object.defineProperty(this,"margin",{get:function(){return tt.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]),tt.margin=ir}});var It=!1;Object.defineProperty(this,"autoPaging",{get:function(){return It},set:function(kr){It=kr}});var yr=0;Object.defineProperty(this,"lastBreak",{get:function(){return yr},set:function(kr){yr=kr}});var Wr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Wr},set:function(kr){Wr=kr}}),Object.defineProperty(this,"ctx",{get:function(){return tt},set:function(kr){kr instanceof yt&&(tt=kr)}}),Object.defineProperty(this,"path",{get:function(){return tt.path},set:function(kr){tt.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=kt(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=kt(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 cn=null;function Dn(kr,ir){if(cn===null){var Si=function(In){var sn=[];return Object.keys(In).forEach(function(An){In[An].forEach(function(rn){var _n=null;switch(rn){case"bold":_n={family:An,weight:"bold"};break;case"italic":_n={family:An,style:"italic"};break;case"bolditalic":_n={family:An,weight:"bold",style:"italic"};break;case"":case"normal":_n={family:An}}_n!==null&&(_n.ref={name:An,style:rn},sn.push(_n))})}),sn}(kr.getFontList());cn=function(In){for(var sn={},An=0;An<In.length;++An){var rn=fo(In[An]),_n=rn.family,ii=rn.stretch,Di=rn.style,He=rn.weight;sn[_n]=sn[_n]||{},sn[_n][ii]=sn[_n][ii]||{},sn[_n][ii][Di]=sn[_n][ii][Di]||{},sn[_n][ii][Di][He]=rn}return sn}(Si.concat(ir))}return cn}var ni=null;Object.defineProperty(this,"fontFaces",{get:function(){return ni},set:function(kr){cn=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],In=(ir[2],ir[3]),sn=ir[4],An=(ir[5],ir[6]),rn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(sn)[2];sn=Math.floor(rn==="px"?parseFloat(sn)*this.pdf.internal.scaleFactor:rn==="em"?parseFloat(sn)*this.pdf.getFontSize():parseFloat(sn)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(sn);var _n=function(K){var Be,je,xt=[],bt=K.trim();if(bt==="")return Do;if(bt in ma)return[ma[bt]];for(;bt!=="";){switch(je=null,Be=(bt=as(bt)).charAt(0)){case'"':case"'":je=js(bt.substring(1),Be);break;default:je=Ea(bt)}if(je===null||(xt.push(je[0]),(bt=as(je[1]))!==""&&bt.charAt(0)!==","))return Do;bt=bt.replace(/^,/,"")}return xt}(An);if(this.fontFaces){var ii=Ja(Dn(this.pdf,this.fontFaces),_n.map(function(K){return{family:K,stretch:"normal",weight:In,style:Si}}));this.pdf.setFont(ii.ref.name,ii.ref.style)}else{var Di="";(In==="bold"||parseInt(In,10)>=700||Si==="bold")&&(Di="bold"),Si==="italic"&&(Di+="italic"),Di.length===0&&(Di="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<_n.length;w++){if(this.pdf.internal.getFont(_n[w],Di,{noFallback:!0,disableWarning:!0})!==void 0){He=_n[w];break}if(Di==="bolditalic"&&this.pdf.internal.getFont(_n[w],"bold",{noFallback:!0,disableWarning:!0})!==void 0)He=_n[w],Di="bold";else if(this.pdf.internal.getFont(_n[w],"normal",{noFallback:!0,disableWarning:!0})!==void 0){He=_n[w],Di="normal";break}}if(He===""){for(var C=0;C<_n.length;C++)if(c[_n[C]]){He=c[_n[C]];break}}He=He===""?"Times":He,this.pdf.setFont(He,Di)}}}}),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(){an.call(this,"fill",!1)},vt.prototype.stroke=function(){an.call(this,"stroke",!1)},vt.prototype.beginPath=function(){this.path=[{type:"begin"}]},vt.prototype.moveTo=function(ze,_e){if(isNaN(ze)||isNaN(_e))throw si.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 si.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)),an.call(this,null,!0)},vt.prototype.quadraticCurveTo=function(ze,_e,wt,jt){if(isNaN(wt)||isNaN(jt)||isNaN(ze)||isNaN(_e))throw si.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Vt=this.ctx.transform.applyToPoint(new ge(wt,jt)),ur=this.ctx.transform.applyToPoint(new ge(ze,_e));this.path.push({type:"qct",x1:ur.x,y1:ur.y,x:Vt.x,y:Vt.y}),this.ctx.lastPoint=new ge(Vt.x,Vt.y)},vt.prototype.bezierCurveTo=function(ze,_e,wt,jt,Vt,ur){if(isNaN(Vt)||isNaN(ur)||isNaN(ze)||isNaN(_e)||isNaN(wt)||isNaN(jt))throw si.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var It=this.ctx.transform.applyToPoint(new ge(Vt,ur)),yr=this.ctx.transform.applyToPoint(new ge(ze,_e)),Wr=this.ctx.transform.applyToPoint(new ge(wt,jt));this.path.push({type:"bct",x1:yr.x,y1:yr.y,x2:Wr.x,y2:Wr.y,x:It.x,y:It.y}),this.ctx.lastPoint=new ge(It.x,It.y)},vt.prototype.arc=function(ze,_e,wt,jt,Vt,ur){if(isNaN(ze)||isNaN(_e)||isNaN(wt)||isNaN(jt)||isNaN(Vt))throw si.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ur=!!ur,!this.ctx.transform.isIdentity){var It=this.ctx.transform.applyToPoint(new ge(ze,_e));ze=It.x,_e=It.y;var yr=this.ctx.transform.applyToPoint(new ge(0,wt)),Wr=this.ctx.transform.applyToPoint(new ge(0,0));wt=Math.sqrt(Math.pow(yr.x-Wr.x,2)+Math.pow(yr.y-Wr.y,2))}Math.abs(Vt-jt)>=2*Math.PI&&(jt=0,Vt=2*Math.PI),this.path.push({type:"arc",x:ze,y:_e,radius:wt,startAngle:jt,endAngle:Vt,counterclockwise:ur})},vt.prototype.arcTo=function(ze,_e,wt,jt,Vt){throw new Error("arcTo not implemented.")},vt.prototype.rect=function(ze,_e,wt,jt){if(isNaN(ze)||isNaN(_e)||isNaN(wt)||isNaN(jt))throw si.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+jt),this.lineTo(ze,_e+jt),this.lineTo(ze,_e),this.lineTo(ze+wt,_e),this.lineTo(ze,_e)},vt.prototype.fillRect=function(ze,_e,wt,jt){if(isNaN(ze)||isNaN(_e)||isNaN(wt)||isNaN(jt))throw si.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ve.call(this)){var Vt={};this.lineCap!=="butt"&&(Vt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Vt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(ze,_e,wt,jt),this.fill(),Vt.hasOwnProperty("lineCap")&&(this.lineCap=Vt.lineCap),Vt.hasOwnProperty("lineJoin")&&(this.lineJoin=Vt.lineJoin)}},vt.prototype.strokeRect=function(ze,_e,wt,jt){if(isNaN(ze)||isNaN(_e)||isNaN(wt)||isNaN(jt))throw si.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,jt),this.stroke())},vt.prototype.clearRect=function(ze,_e,wt,jt){if(isNaN(ze)||isNaN(_e)||isNaN(wt)||isNaN(jt))throw si.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,jt))},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 jt=new yt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=jt}},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 kt=function(ze){var _e,wt,jt,Vt;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,jt=0,Vt=0;else{var ur=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(ze);if(ur!==null)_e=parseInt(ur[1]),wt=parseInt(ur[2]),jt=parseInt(ur[3]),Vt=1;else if((ur=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(ze))!==null)_e=parseInt(ur[1]),wt=parseInt(ur[2]),jt=parseInt(ur[3]),Vt=parseFloat(ur[4]);else{if(Vt=1,typeof ze=="string"&&ze.charAt(0)!=="#"){var It=new Ei(ze);ze=It.ok?It.toHex():"#000000"}ze.length===4?(_e=ze.substring(1,2),_e+=_e,wt=ze.substring(2,3),wt+=wt,jt=ze.substring(3,4),jt+=jt):(_e=ze.substring(1,3),wt=ze.substring(3,5),jt=ze.substring(5,7)),_e=parseInt(_e,16),wt=parseInt(wt,16),jt=parseInt(jt,16)}}return{r:_e,g:wt,b:jt,a:Vt,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,jt){if(isNaN(_e)||isNaN(wt)||typeof ze!="string")throw si.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(jt=isNaN(jt)?void 0:jt,!Ve.call(this)){var Vt=ft(this.ctx.transform.rotation),ur=this.ctx.transform.scaleX;nr.call(this,{text:ze,x:_e,y:wt,scale:ur,angle:Vt,align:this.textAlign,maxWidth:jt})}},vt.prototype.strokeText=function(ze,_e,wt,jt){if(isNaN(_e)||isNaN(wt)||typeof ze!="string")throw si.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!cr.call(this)){jt=isNaN(jt)?void 0:jt;var Vt=ft(this.ctx.transform.rotation),ur=this.ctx.transform.scaleX;nr.call(this,{text:ze,x:_e,y:wt,scale:ur,renderingMode:"stroke",angle:Vt,align:this.textAlign,maxWidth:jt})}},vt.prototype.measureText=function(ze){if(typeof ze!="string")throw si.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,jt=_e.internal.getFontSize(),Vt=_e.getStringUnitWidth(ze)*jt/_e.internal.scaleFactor,ur=function(It){var yr=(It=It||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return yr}}),this};return new ur({width:Vt*=Math.round(96*wt/72*1e4)/1e4})},vt.prototype.scale=function(ze,_e){if(isNaN(ze)||isNaN(_e))throw si.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var wt=new Ne(ze,0,0,_e,0,0);this.ctx.transform=this.ctx.transform.multiply(wt)},vt.prototype.rotate=function(ze){if(isNaN(ze))throw si.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _e=new Ne(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 si.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var wt=new Ne(1,0,0,1,ze,_e);this.ctx.transform=this.ctx.transform.multiply(wt)},vt.prototype.transform=function(ze,_e,wt,jt,Vt,ur){if(isNaN(ze)||isNaN(_e)||isNaN(wt)||isNaN(jt)||isNaN(Vt)||isNaN(ur))throw si.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var It=new Ne(ze,_e,wt,jt,Vt,ur);this.ctx.transform=this.ctx.transform.multiply(It)},vt.prototype.setTransform=function(ze,_e,wt,jt,Vt,ur){ze=isNaN(ze)?1:ze,_e=isNaN(_e)?0:_e,wt=isNaN(wt)?0:wt,jt=isNaN(jt)?1:jt,Vt=isNaN(Vt)?0:Vt,ur=isNaN(ur)?0:ur,this.ctx.transform=new Ne(ze,_e,wt,jt,Vt,ur)};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,jt,Vt,ur,It,yr,Wr){var $r=this.pdf.getImageProperties(ze),cn=1,Dn=1,ni=1,kr=1;jt!==void 0&&yr!==void 0&&(ni=yr/jt,kr=Wr/Vt,cn=$r.width/jt*yr/jt,Dn=$r.height/Vt*Wr/Vt),ur===void 0&&(ur=_e,It=wt,_e=0,wt=0),jt!==void 0&&yr===void 0&&(yr=jt,Wr=Vt),jt===void 0&&yr===void 0&&(yr=$r.width,Wr=$r.height);for(var ir,Si=this.ctx.transform.decompose(),In=ft(Si.rotate.shx),sn=new Ne,An=(sn=(sn=(sn=sn.multiply(Si.translate)).multiply(Si.skew)).multiply(Si.scale)).applyToRectangle(new De(ur-_e*ni,It-wt*kr,jt*cn,Vt*Dn)),rn=dr.call(this,An),_n=[],ii=0;ii<rn.length;ii+=1)_n.indexOf(rn[ii])===-1&&_n.push(rn[ii]);if(Mr(_n),this.autoPaging)for(var Di=_n[0],He=_n[_n.length-1],c=Di;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(An));bt=pr([bt],this.posX+this.margin[3],-je+C+this.ctx.prevPageLastElemOffset)[0];var Xt=(c>Di||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,In),Xt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(ze,"JPEG",An.x,An.y,An.w,An.h,null,null,In)};var dr=function(ze,_e,wt){var jt=[];_e=_e||this.pdf.internal.pageSize.width,wt=wt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Vt=this.posY+this.ctx.prevPageLastElemOffset;switch(ze.type){default:case"mt":case"lt":jt.push(Math.floor((ze.y+Vt)/wt)+1);break;case"arc":jt.push(Math.floor((ze.y+Vt-ze.radius)/wt)+1),jt.push(Math.floor((ze.y+Vt+ze.radius)/wt)+1);break;case"qct":var ur=Ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ze.x1,ze.y1,ze.x,ze.y);jt.push(Math.floor((ur.y+Vt)/wt)+1),jt.push(Math.floor((ur.y+ur.h+Vt)/wt)+1);break;case"bct":var It=$t(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ze.x1,ze.y1,ze.x2,ze.y2,ze.x,ze.y);jt.push(Math.floor((It.y+Vt)/wt)+1),jt.push(Math.floor((It.y+It.h+Vt)/wt)+1);break;case"rect":jt.push(Math.floor((ze.y+Vt)/wt)+1),jt.push(Math.floor((ze.y+ze.h+Vt)/wt)+1)}for(var yr=0;yr<jt.length;yr+=1)for(;this.pdf.internal.getNumberOfPages()<jt[yr];)Qt.call(this);return jt},Qt=function(){var ze=this.fillStyle,_e=this.strokeStyle,wt=this.font,jt=this.lineCap,Vt=this.lineWidth,ur=this.lineJoin;this.pdf.addPage(),this.fillStyle=ze,this.strokeStyle=_e,this.font=wt,this.lineCap=jt,this.lineWidth=Vt,this.lineJoin=ur},pr=function(ze,_e,wt){for(var jt=0;jt<ze.length;jt++)switch(ze[jt].type){case"bct":ze[jt].x2+=_e,ze[jt].y2+=wt;case"qct":ze[jt].x1+=_e,ze[jt].y1+=wt;case"mt":case"lt":case"arc":default:ze[jt].x+=_e,ze[jt].y+=wt}return ze},Mr=function(ze){return ze.sort(function(_e,wt){return _e-wt})},an=function(ze,_e){for(var wt,jt,Vt=this.fillStyle,ur=this.strokeStyle,It=this.lineCap,yr=this.lineWidth,Wr=Math.abs(yr*this.ctx.transform.scaleX),$r=this.lineJoin,cn=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 In=0;In<ni.length;In++)for(;this.pdf.internal.getNumberOfPages()<ni[In];)Qt.call(this);if(Mr(ni),this.autoPaging)for(var sn=ni[0],An=ni[ni.length-1],rn=sn;rn<An+1;rn++){this.pdf.setPage(rn),this.fillStyle=Vt,this.strokeStyle=ur,this.lineCap=It,this.lineWidth=Wr,this.lineJoin=$r;var _n=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ii=rn===1?this.posY+this.margin[0]:this.margin[0],Di=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:Di+(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+ii+this.ctx.prevPageLastElemOffset),Rn.call(this,ze,!0),this.path=w}if(jt=JSON.parse(JSON.stringify(cn)),this.path=pr(jt,this.posX+this.margin[3],-c+ii+this.ctx.prevPageLastElemOffset),_e===!1||rn===0){var C=(rn>sn||rn<An)&&tr.call(this);C&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_n,He,null).clip().discardPath()),Rn.call(this,ze,_e),C&&this.pdf.restoreGraphicsState()}this.lineWidth=yr}else this.lineWidth=Wr,Rn.call(this,ze,_e),this.lineWidth=yr;this.path=cn},Rn=function(ze,_e){if((ze!=="stroke"||_e||!cr.call(this))&&(ze==="stroke"||_e||!Ve.call(this))){for(var wt,jt,Vt=[],ur=this.path,It=0;It<ur.length;It++){var yr=ur[It];switch(yr.type){case"begin":Vt.push({begin:!0});break;case"close":Vt.push({close:!0});break;case"mt":Vt.push({start:yr,deltas:[],abs:[]});break;case"lt":var Wr=Vt.length;if(ur[It-1]&&!isNaN(ur[It-1].x)&&(wt=[yr.x-ur[It-1].x,yr.y-ur[It-1].y],Wr>0)){for(;Wr>=0;Wr--)if(Vt[Wr-1].close!==!0&&Vt[Wr-1].begin!==!0){Vt[Wr-1].deltas.push(wt),Vt[Wr-1].abs.push(yr);break}}break;case"bct":wt=[yr.x1-ur[It-1].x,yr.y1-ur[It-1].y,yr.x2-ur[It-1].x,yr.y2-ur[It-1].y,yr.x-ur[It-1].x,yr.y-ur[It-1].y],Vt[Vt.length-1].deltas.push(wt);break;case"qct":var $r=ur[It-1].x+2/3*(yr.x1-ur[It-1].x),cn=ur[It-1].y+2/3*(yr.y1-ur[It-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-ur[It-1].x,cn-ur[It-1].y,Dn-ur[It-1].x,ni-ur[It-1].y,kr-ur[It-1].x,ir-ur[It-1].y],Vt[Vt.length-1].deltas.push(wt);break;case"arc":Vt.push({deltas:[],abs:[],arc:!0}),Array.isArray(Vt[Vt.length-1].abs)&&Vt[Vt.length-1].abs.push(yr)}}jt=_e?null:ze==="stroke"?"stroke":"fill";for(var Si=!1,In=0;In<Vt.length;In++)if(Vt[In].arc)for(var sn=Vt[In].abs,An=0;An<sn.length;An++){var rn=sn[An];rn.type==="arc"?Br.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(Vt[In].close===!0)this.pdf.internal.out("h"),Si=!1;else if(Vt[In].begin!==!0){var _n=Vt[In].start.x,ii=Vt[In].start.y;xe.call(this,Vt[In].deltas,_n,ii),Si=!0}jt&&xn.call(this,jt),_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 Br=function(ze,_e,wt,jt,Vt,ur,It,yr,Wr){for(var $r=st.call(this,wt,jt,Vt,ur),cn=0;cn<$r.length;cn++){var Dn=$r[cn];cn===0&&(Wr?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,It)},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),jt=di.call(this,ze.y),Vt=pn.call(this,jt)-wt.h,ur=this.ctx.transform.applyToPoint(new ge(ze.x,jt)),It=this.ctx.transform.decompose(),yr=new Ne;yr=(yr=(yr=yr.multiply(It.translate)).multiply(It.skew)).multiply(It.scale);for(var Wr,$r,cn,Dn=this.ctx.transform.applyToRectangle(new De(ze.x,jt,wt.w,wt.h)),ni=yr.applyToRectangle(new De(ze.x,Vt,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 In=ir[0],sn=ir[ir.length-1],An=In;An<sn+1;An++){this.pdf.setPage(An);var rn=An===1?this.posY+this.margin[0]:this.margin[0],_n=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ii=this.pdf.internal.pageSize.height-this.margin[2],Di=ii-this.margin[0],He=this.pdf.internal.pageSize.width-this.margin[1],c=He-this.margin[3],w=An===1?0:_n+(An-2)*Di;if(this.ctx.clip_path.length!==0){var C=this.path;Wr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pr(Wr,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),cn=this.lineWidth,this.lineWidth=cn*ze.scale);var Be=this.autoPaging!=="text";if(Be||K.y+K.h<=ii){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&&(An>In||An<sn)&&tr.call(this);bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],c,Di,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<ii&&(this.ctx.prevPageLastElemOffset+=ii-K.y);ze.scale>=.01&&(this.pdf.setFontSize($r),this.lineWidth=cn)}else ze.scale>=.01&&($r=this.pdf.internal.getFontSize(),this.pdf.setFontSize($r*ze.scale),cn=this.lineWidth,this.lineWidth=cn*ze.scale),this.pdf.text(ze.text,ur.x+this.posX,ur.y+this.posY,{angle:ze.angle,align:_e,renderingMode:ze.renderingMode,maxWidth:ze.maxWidth}),ze.scale>=.01&&(this.pdf.setFontSize($r),this.lineWidth=cn)},ye=function(ze,_e,wt,jt){wt=wt||0,jt=jt||0,this.pdf.internal.out(y(ze+wt)+" "+M(_e+jt)+" l")},xe=function(ze,_e,wt){return this.pdf.lines(ze,_e,wt,null,null)},et=function(ze,_e,wt,jt,Vt,ur,It,yr){this.pdf.internal.out([u(ne(wt+ze)),u(Z(jt+_e)),u(ne(Vt+ze)),u(Z(ur+_e)),u(ne(It+ze)),u(Z(yr+_e)),"c"].join(" "))},st=function(ze,_e,wt,jt){for(var Vt=2*Math.PI,ur=Math.PI/2;_e>wt;)_e-=Vt;var It=Math.abs(wt-_e);It<Vt&&jt&&(It=Vt-It);for(var yr=[],Wr=jt?-1:1,$r=_e;It>1e-5;){var cn=$r+Wr*Math.min(It,ur);yr.push(gt.call(this,ze,$r,cn)),It-=Math.abs(cn-$r),$r=cn}return yr},gt=function(ze,_e,wt){var jt=(wt-_e)/2,Vt=ze*Math.cos(jt),ur=ze*Math.sin(jt),It=Vt,yr=-ur,Wr=It*It+yr*yr,$r=Wr+It*Vt+yr*ur,cn=4/3*(Math.sqrt(2*Wr*$r)-$r)/(It*ur-yr*Vt),Dn=It-cn*yr,ni=yr+cn*It,kr=Dn,ir=-ni,Si=jt+_e,In=Math.cos(Si),sn=Math.sin(Si);return{x1:ze*Math.cos(_e),y1:ze*Math.sin(_e),x2:Dn*In-ni*sn,y2:Dn*sn+ni*In,x3:kr*In-ir*sn,y3:kr*sn+ir*In,x4:ze*Math.cos(wt),y4:ze*Math.sin(wt)}},ft=function(ze){return 180*ze/Math.PI},Ut=function(ze,_e,wt,jt,Vt,ur){var It=ze+.5*(wt-ze),yr=_e+.5*(jt-_e),Wr=Vt+.5*(wt-Vt),$r=ur+.5*(jt-ur),cn=Math.min(ze,Vt,It,Wr),Dn=Math.max(ze,Vt,It,Wr),ni=Math.min(_e,ur,yr,$r),kr=Math.max(_e,ur,yr,$r);return new De(cn,ni,Dn-cn,kr-ni)},$t=function(ze,_e,wt,jt,Vt,ur,It,yr){var Wr,$r,cn,Dn,ni,kr,ir,Si,In,sn,An,rn,_n,ii,Di=wt-ze,He=jt-_e,c=Vt-wt,w=ur-jt,C=It-Vt,K=yr-ur;for($r=0;$r<41;$r++)In=(ir=(cn=ze+(Wr=$r/40)*Di)+Wr*((ni=wt+Wr*c)-cn))+Wr*(ni+Wr*(Vt+Wr*C-ni)-ir),sn=(Si=(Dn=_e+Wr*He)+Wr*((kr=jt+Wr*w)-Dn))+Wr*(kr+Wr*(ur+Wr*K-kr)-Si),$r==0?(An=In,rn=sn,_n=In,ii=sn):(An=Math.min(An,In),rn=Math.min(rn,sn),_n=Math.max(_n,In),ii=Math.max(ii,sn));return new De(Math.round(An),Math.round(rn),Math.round(_n-An),Math.round(ii-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)}}})(Mi.API),function(b){var u=function(Z){var ge,De,Ne,tt,yt,vt,kt,Ve,cr,tr;for(/[^\x00-\xFF]/.test(Z),De=[],Ne=0,tt=(Z+=ge="\0\0\0\0".slice(Z.length%4||4)).length;tt>Ne;Ne+=4)(yt=(Z.charCodeAt(Ne)<<24)+(Z.charCodeAt(Ne+1)<<16)+(Z.charCodeAt(Ne+2)<<8)+Z.charCodeAt(Ne+3))!==0?(vt=(yt=((yt=((yt=((yt=(yt-(tr=yt%85))/85)-(cr=yt%85))/85)-(Ve=yt%85))/85)-(kt=yt%85))/85)%85,De.push(vt+33,kt+33,Ve+33,cr+33,tr+33)):De.push(122);return function(dr,Qt){for(var pr=Qt;pr>0;pr--)dr.pop()}(De,ge.length),String.fromCharCode.apply(String,De)+"~>"},y=function(Z){var ge,De,Ne,tt,yt,vt=String,kt="length",Ve=255,cr="charCodeAt",tr="slice",dr="replace";for(Z[tr](-2),Z=Z[tr](0,-2)[dr](/\s/g,"")[dr]("z","!!!!!"),Ne=[],tt=0,yt=(Z+=ge="uuuuu"[tr](Z[kt]%5||5))[kt];yt>tt;tt+=5)De=52200625*(Z[cr](tt)-33)+614125*(Z[cr](tt+1)-33)+7225*(Z[cr](tt+2)-33)+85*(Z[cr](tt+3)-33)+(Z[cr](tt+4)-33),Ne.push(Ve&De>>24,Ve&De>>16,Ve&De>>8,Ve&De);return function(Qt,pr){for(var Mr=pr;Mr>0;Mr--)Qt.pop()}(Ne,ge[kt]),vt.fromCharCode.apply(vt,Ne)},M=function(Z){var ge=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Z=Z.replace(/\s/g,"")).indexOf(">")!==-1&&(Z=Z.substr(0,Z.indexOf(">"))),Z.length%2&&(Z+="0"),ge.test(Z)===!1)return"";for(var De="",Ne=0;Ne<Z.length;Ne+=2)De+=String.fromCharCode("0x"+(Z[Ne]+Z[Ne+1]));return De},ne=function(Z){for(var ge=new Uint8Array(Z.length),De=Z.length;De--;)ge[De]=Z.charCodeAt(De);return Z=(ge=kn(ge)).reduce(function(Ne,tt){return Ne+String.fromCharCode(tt)},"")};b.processDataByFilters=function(Z,ge){var De=0,Ne=Z||"",tt=[];for(typeof(ge=ge||[])=="string"&&(ge=[ge]),De=0;De<ge.length;De+=1)switch(ge[De]){case"ASCII85Decode":case"/ASCII85Decode":Ne=y(Ne),tt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ne=u(Ne),tt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ne=M(Ne),tt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ne=Ne.split("").map(function(yt){return("0"+yt.charCodeAt().toString(16)).slice(-2)}).join("")+">",tt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ne=ne(Ne),tt.push("/FlateDecode");break;default:throw new Error('The filter: "'+ge[De]+'" is not implemented')}return{data:Ne,reverseChain:tt.reverse().join(" ")}}}(Mi.API),function(b){b.loadFile=function(u,y,M){return function(ne,Z,ge){Z=Z!==!1,ge=typeof ge=="function"?ge:function(){};var De=void 0;try{De=function(Ne,tt,yt){var vt=new XMLHttpRequest,kt=0,Ve=function(cr){var tr=cr.length,dr=[],Qt=String.fromCharCode;for(kt=0;kt<tr;kt+=1)dr.push(Qt(255&cr.charCodeAt(kt)));return dr.join("")};if(vt.open("GET",Ne,!tt),vt.overrideMimeType("text/plain; charset=x-user-defined"),tt===!1&&(vt.onload=function(){vt.status===200?yt(Ve(this.responseText)):yt(void 0)}),vt.send(null),tt&&vt.status===200)return Ve(vt.responseText)}(ne,Z,ge)}catch(Ne){}return De}(u,y,M)},b.loadImageFile=b.loadFile}(Mi.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 De=(0,we.Z)(ge);return De==="undefined"?"undefined":De==="string"||ge instanceof String?"string":De==="number"||ge instanceof Number?"number":De==="function"||ge instanceof Function?"function":ge&&ge.constructor===Array?"array":ge&&ge.nodeType===1?"element":De==="object"?"object":"unknown"},ne=function(ge,De){var Ne=document.createElement(ge);for(var tt in De.className&&(Ne.className=De.className),De.innerHTML&&De.dompurify&&(Ne.innerHTML=De.dompurify.sanitize(De.innerHTML)),De.style)Ne.style[tt]=De.style[tt];return Ne},Z=function ge(De){var Ne=Object.assign(ge.convert(Promise.resolve()),JSON.parse(JSON.stringify(ge.template))),tt=ge.convert(Promise.resolve(),Ne);return tt=(tt=tt.setProgress(1,ge,1,[ge])).set(De)};(Z.prototype=Object.create(Promise.prototype)).constructor=Z,Z.convert=function(ge,De){return ge.__proto__=De||Z.prototype,ge},Z.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"}},Z.prototype.from=function(ge,De){return this.then(function(){switch(De=De||function(Ne){switch(M(Ne)){case"string":return"string";case"element":return Ne.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ge)){case"string":return this.then(y).then(function(Ne){return this.set({src:ne("div",{innerHTML:ge,dompurify:Ne})})});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.")}})},Z.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.")}},Z.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},De=function Ne(tt,yt){for(var vt=tt.nodeType===3?document.createTextNode(tt.nodeValue):tt.cloneNode(!1),kt=tt.firstChild;kt;kt=kt.nextSibling)yt!==!0&&kt.nodeType===1&&kt.nodeName==="SCRIPT"||vt.appendChild(Ne(kt,yt));return tt.nodeType===1&&(tt.nodeName==="CANVAS"?(vt.width=tt.width,vt.height=tt.height,vt.getContext("2d").drawImage(tt,0,0)):tt.nodeName!=="TEXTAREA"&&tt.nodeName!=="SELECT"||(vt.value=tt.value),vt.addEventListener("load",function(){vt.scrollTop=tt.scrollTop,vt.scrollLeft=tt.scrollLeft},!0)),vt}(this.prop.src,this.opt.html2canvas.javascriptEnabled);De.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(De),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"})},Z.prototype.toCanvas=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(u).then(function(De){var Ne=Object.assign({},this.opt.html2canvas);return delete Ne.onrendered,De(this.prop.container,Ne)}).then(function(De){(this.opt.html2canvas.onrendered||function(){})(De),this.prop.canvas=De,document.body.removeChild(this.prop.overlay)})},Z.prototype.toContext2d=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(u).then(function(De){var Ne=this.opt.jsPDF,tt=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,Ne.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ne.context2d.posX=this.opt.x,Ne.context2d.posY=this.opt.y,Ne.context2d.margin=this.opt.margin,Ne.context2d.fontFaces=tt,tt)for(var kt=0;kt<tt.length;++kt){var Ve=tt[kt],cr=Ve.src.find(function(tr){return tr.format==="truetype"});cr&&Ne.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,Ne.context2d.save(!0),De(this.prop.container,vt)}).then(function(De){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(De),this.prop.canvas=De,document.body.removeChild(this.prop.overlay)})},Z.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})},Z.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Z.prototype.output=function(ge,De,Ne){return(Ne=Ne||"pdf").toLowerCase()==="img"||Ne.toLowerCase()==="image"?this.outputImg(ge,De):this.outputPdf(ge,De)},Z.prototype.outputPdf=function(ge,De){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ge,De)})},Z.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.'}})},Z.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)})},Z.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Z.prototype.set=function(ge){if(M(ge)!=="object")return this;var De=Object.keys(ge||{}).map(function(Ne){if(Ne in Z.template.prop)return function(){this.prop[Ne]=ge[Ne]};switch(Ne){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[Ne]=ge[Ne]}}},this);return this.then(function(){return this.thenList(De)})},Z.prototype.get=function(ge,De){return this.then(function(){var Ne=ge in Z.template.prop?this.prop[ge]:this.opt[ge];return De?De(Ne):Ne})},Z.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)},Z.prototype.setPageSize=function(ge){function De(Ne,tt){return Math.floor(Ne*tt/72*96)}return this.then(function(){(ge=ge||Mi.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:De(ge.inner.width,ge.k),height:De(ge.inner.height,ge.k)},ge.inner.ratio=ge.inner.height/ge.inner.width),this.prop.pageSize=ge})},Z.prototype.setProgress=function(ge,De,Ne,tt){return ge!=null&&(this.progress.val=ge),De!=null&&(this.progress.state=De),Ne!=null&&(this.progress.n=Ne),tt!=null&&(this.progress.stack=tt),this.progress.ratio=this.progress.val/this.progress.state,this},Z.prototype.updateProgress=function(ge,De,Ne,tt){return this.setProgress(ge?this.progress.val+ge:null,De||null,Ne?this.progress.n+Ne:null,tt?this.progress.stack.concat(tt):null)},Z.prototype.then=function(ge,De){var Ne=this;return this.thenCore(ge,De,function(tt,yt){return Ne.updateProgress(null,null,1,[tt]),Promise.prototype.then.call(this,function(vt){return Ne.updateProgress(null,tt),vt}).then(tt,yt).then(function(vt){return Ne.updateProgress(1),vt})})},Z.prototype.thenCore=function(ge,De,Ne){Ne=Ne||Promise.prototype.then,ge&&(ge=ge.bind(this)),De&&(De=De.bind(this));var tt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Z.convert(Object.assign({},this),Promise.prototype),yt=Ne.call(tt,ge,De);return Z.convert(yt,this.__proto__)},Z.prototype.thenExternal=function(ge,De){return Promise.prototype.then.call(this,ge,De)},Z.prototype.thenList=function(ge){var De=this;return ge.forEach(function(Ne){De=De.thenCore(Ne)}),De},Z.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var De=Promise.prototype.catch.call(this,ge);return Z.convert(De,this)},Z.prototype.catchExternal=function(ge){return Promise.prototype.catch.call(this,ge)},Z.prototype.error=function(ge){return this.then(function(){throw new Error(ge)})},Z.prototype.using=Z.prototype.set,Z.prototype.saveAs=Z.prototype.save,Z.prototype.export=Z.prototype.output,Z.prototype.run=Z.prototype.then,Mi.getPageSize=function(ge,De,Ne){if((0,we.Z)(ge)==="object"){var tt=ge;ge=tt.orientation,De=tt.unit||De,Ne=tt.format||Ne}De=De||"mm",Ne=Ne||"a4",ge=(""+(ge||"P")).toLowerCase();var yt,vt=(""+Ne).toLowerCase(),kt={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(De){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: "+De}var Ve,cr=0,tr=0;if(kt.hasOwnProperty(vt))cr=kt[vt][1]/yt,tr=kt[vt][0]/yt;else try{cr=Ne[1],tr=Ne[0]}catch(dr){throw new Error("Invalid format: "+Ne)}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:De,k:yt,orientation:ge}},b.html=function(ge,De){(De=De||{}).callback=De.callback||function(){},De.html2canvas=De.html2canvas||{},De.html2canvas.canvas=De.html2canvas.canvas||this.canvas,De.jsPDF=De.jsPDF||this,De.fontFaces=De.fontFaces?De.fontFaces.map(fo):null;var Ne=new Z(De);return De.worker?Ne:Ne.from(ge).doCallback()}}(Mi.API),Mi.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/),Z=0;Z<ne.length;Z++){var ge=ne[Z],De=M.exec(ge);if(De!=null){var Ne=De[1];y.internal.newObjectDeferredBegin(Ne,!1)}y.internal.write(ge)}if(this.outline.createNamedDestinations){var tt=this.internal.pages.length,yt=[];for(Z=0;Z<tt;Z++){var vt=y.internal.newObject();yt.push(vt);var kt=y.internal.getPageInfo(Z+1);y.internal.write("<< /D["+kt.objId+" 0 R /XYZ null null null]>> endobj")}var Ve=y.internal.newObject();for(y.internal.write("<< /Names [ "),Z=0;Z<yt.length;Z++)y.internal.write("(page_"+(Z+1)+")"+yt[Z]+" 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,Z){var ge={title:ne,options:Z,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,Z=0;Z<M.children.length;Z++){var ge=M.children[Z];this.objStart(ge),this.line("/Title "+this.makeString(ge.title)),this.line("/Parent "+this.makeRef(M)),Z>0&&this.line("/Prev "+this.makeRef(M.children[Z-1])),Z<M.children.length-1&&this.line("/Next "+this.makeRef(M.children[Z+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 De=this.count=this.count_r({count:0},ge);if(De>0&&this.line("/Count "+De),ge.options&&ge.options.pageNumber){var Ne=y.internal.getPageInfo(ge.options.pageNumber);this.line("/Dest ["+Ne.objId+" 0 R /XYZ 0 "+ne(0)+" 0]")}this.objEnd()}for(var tt=0;tt<M.children.length;tt++)this.renderItems(M.children[tt])},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 Z=0;Z<ne.children.length;Z++)M.count++,this.count_r(M,ne.children[Z]);return M.count}}])}(Mi.API),function(b){var u=[192,193,194,195,196,197,198,199];b.processJPEG=function(y,M,ne,Z,ge,De){var Ne,tt=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,(Ne=function(vt){for(var kt,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){kt=256*vt.charCodeAt(dr+5)+vt.charCodeAt(dr+6),tr={width:256*vt.charCodeAt(dr+7)+vt.charCodeAt(dr+8),height:kt,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:De=this.color_spaces.DEVICE_GRAY;break;case 4:De=this.color_spaces.DEVICE_CMYK;break;case 3:De=this.color_spaces.DEVICE_RGB}yt={data:y,width:Ne.width,height:Ne.height,colorSpace:De,bitsPerComponent:8,filter:tt,index:M,alias:ne}}return yt}}(Mi.API);var qa,bl,so,bo,Zl,wl=function(){var b,u,y;function M(Z){var ge,De,Ne,tt,yt,vt,kt,Ve,cr,tr,dr,Qt,pr,Mr;for(this.data=Z,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},vt=null;;){switch(ge=this.readUInt32(),cr=function(){var an,Rn;for(Rn=[],an=0;an<4;++an)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(),tt=this.readUInt16()||100,vt.delay=1e3*yt/tt,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),Z=(vt!=null?vt.data:void 0)||this.imgData,Qt=0;0<=ge?Qt<ge:Qt>ge;0<=ge?++Qt:--Qt)Z.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Ne=this.palette.length/3,this.transparency.indexed=this.read(ge),this.transparency.indexed.length>Ne)throw new Error("More transparent colors than palette size");if((tr=Ne-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":kt=(dr=this.read(ge)).indexOf(0),Ve=String.fromCharCode.apply(String,dr.slice(0,kt)),this.text[Ve]=String.fromCharCode.apply(String,dr.slice(kt+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,De=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*De,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(Z){var ge,De;for(De=[],ge=0;0<=Z?ge<Z:ge>Z;0<=Z?++ge:--ge)De.push(this.data[this.pos++]);return De},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(Z){var ge=this.pixelBitlength/8,De=new Uint8Array(this.width*this.height*ge),Ne=0,tt=this;if(Z==null&&(Z=this.imgData),Z.length===0)return new Uint8Array(0);function yt(vt,kt,Ve,cr){var tr,dr,Qt,pr,Mr,an,Rn,di,pn,Br,xn,Nn,er,nr,ye,xe,et,st,gt,ft,Ut,$t=Math.ceil((tt.width-vt)/Ve),sr=Math.ceil((tt.height-kt)/cr),ze=tt.width==$t&&tt.height==sr;for(nr=ge*$t,Nn=ze?De:new Uint8Array(nr*sr),an=Z.length,er=0,dr=0;er<sr&&Ne<an;){switch(Z[Ne++]){case 0:for(pr=et=0;et<nr;pr=et+=1)Nn[dr++]=Z[Ne++];break;case 1:for(pr=st=0;st<nr;pr=st+=1)tr=Z[Ne++],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=Z[Ne++],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=Z[Ne++],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=Z[Ne++],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),Br=Math.abs(Rn-ye),xn=Math.abs(Rn-xe),pn=di<=Br&&di<=xn?Mr:Br<=xn?ye:xe,Nn[dr++]=(tr+pn)%256;break;default:throw new Error("Invalid filter algorithm: "+Z[Ne-1])}if(!ze){var _e=((kt+er*cr)*tt.width+vt)*ge,wt=er*nr;for(pr=0;pr<$t;pr+=1){for(var jt=0;jt<ge;jt+=1)De[_e++]=Nn[wt++];_e+=(Ve-1)*ge}}er++}}return Z=Ot(Z),tt.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),De},M.prototype.decodePalette=function(){var Z,ge,De,Ne,tt,yt,vt,kt,Ve;for(De=this.palette,yt=this.transparency.indexed||[],tt=new Uint8Array((yt.length||0)+De.length),Ne=0,Z=0,ge=vt=0,kt=De.length;vt<kt;ge=vt+=3)tt[Ne++]=De[ge],tt[Ne++]=De[ge+1],tt[Ne++]=De[ge+2],tt[Ne++]=(Ve=yt[Z++])!=null?Ve:255;return tt},M.prototype.copyToImageData=function(Z,ge){var De,Ne,tt,yt,vt,kt,Ve,cr,tr,dr,Qt;if(Ne=this.colors,tr=null,De=this.hasAlphaChannel,this.palette.length&&(tr=(Qt=this._decodedPalette)!=null?Qt:this._decodedPalette=this.decodePalette(),Ne=4,De=!0),cr=(tt=Z.data||Z).length,vt=tr||ge,yt=kt=0,Ne===1)for(;yt<cr;)Ve=tr?4*ge[yt/4]:kt,dr=vt[Ve++],tt[yt++]=dr,tt[yt++]=dr,tt[yt++]=dr,tt[yt++]=De?vt[Ve++]:255,kt=Ve;else for(;yt<cr;)Ve=tr?4*ge[yt/4]:kt,tt[yt++]=vt[Ve++],tt[yt++]=vt[Ve++],tt[yt++]=vt[Ve++],tt[yt++]=De?vt[Ve++]:255,kt=Ve},M.prototype.decode=function(){var Z;return Z=new Uint8Array(this.width*this.height*4),this.copyToImageData(Z,this.decodePixels()),Z};var ne=function(){if(Object.prototype.toString.call(hn)==="[object Window]"){try{u=hn.document.createElement("canvas"),y=u.getContext("2d")}catch(Z){return!1}return!0}return!1};return ne(),b=function(Z){var ge;if(ne()===!0)return y.width=Z.width,y.height=Z.height,y.clearRect(0,0,Z.width,Z.height),y.putImageData(Z,0,0),(ge=new Image).src=u.toDataURL(),ge;throw new Error("This method requires a Browser with Canvas-capability.")},M.prototype.decodeFrames=function(Z){var ge,De,Ne,tt,yt,vt,kt,Ve;if(this.animation){for(Ve=[],De=yt=0,vt=(kt=this.animation.frames).length;yt<vt;De=++yt)ge=kt[De],Ne=Z.createImageData(ge.width,ge.height),tt=this.decodePixels(new Uint8Array(ge.data)),this.copyToImageData(Ne,tt),ge.imageData=Ne,Ve.push(ge.image=b(Ne));return Ve}},M.prototype.renderFrame=function(Z,ge){var De,Ne,tt;return De=(Ne=this.animation.frames)[ge],tt=Ne[ge-1],ge===0&&Z.clearRect(0,0,this.width,this.height),(tt!=null?tt.disposeOp:void 0)===1?Z.clearRect(tt.xOffset,tt.yOffset,tt.width,tt.height):(tt!=null?tt.disposeOp:void 0)===2&&Z.putImageData(tt.imageData,tt.xOffset,tt.yOffset),De.blendOp===0&&Z.clearRect(De.xOffset,De.yOffset,De.width,De.height),Z.drawImage(De.image,De.xOffset,De.yOffset)},M.prototype.animate=function(Z){var ge,De,Ne,tt,yt,vt,kt=this;return De=0,vt=this.animation,tt=vt.numFrames,Ne=vt.frames,yt=vt.numPlays,(ge=function(){var Ve,cr;if(Ve=De++%tt,cr=Ne[Ve],kt.renderFrame(Z,Ve),tt>1&&De/tt<yt)return kt.animation._timeout=setTimeout(ge,cr.delay)})()},M.prototype.stopAnimation=function(){var Z;return clearTimeout((Z=this.animation)!=null?Z._timeout:void 0)},M.prototype.render=function(Z){var ge,De;return Z._png&&Z._png.stopAnimation(),Z._png=this,Z.width=this.width,Z.height=this.height,ge=Z.getContext("2d"),this.animation?(this.decodeFrames(ge),this.animate(ge)):(De=ge.createImageData(this.width,this.height),this.copyToImageData(De,this.decodePixels()),ge.putImageData(De,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++],Z=ne>>7,ge=1<<(7&ne)+1;b[u++],b[u++];var De=null,Ne=null;Z&&(De=u,Ne=ge,u+=3*ge);var tt=!0,yt=[],vt=0,kt=null,Ve=0,cr=null;for(this.width=y,this.height=M;tt&&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,kt=b[u++],!(1&tr)&&(kt=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,an=b[u++],Rn=an>>6&1,di=1<<(7&an)+1,pn=De,Br=Ne,xn=!1;an>>7&&(xn=!0,pn=u,Br=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:Br,data_offset:Nn,data_length:u-Nn,transparent_index:kt,interlaced:!!Rn,delay:vt,disposal:Ve});break;case 59:tt=!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,jt=4*$t;xe.interlaced===!0&&(jt+=4*y*7);for(var Vt=8,ur=0,It=st.length;ur<It;++ur){var yr=st[ur];if(sr===0&&(sr=Ut,(wt+=jt)>=_e&&(jt=4*$t+4*y*(Vt-1),wt=ze+(Ut+$t)*(Vt<<1),Vt>>=1)),yr===ft)wt+=4;else{var Wr=b[gt+3*yr],$r=b[gt+3*yr+1],cn=b[gt+3*yr+2];ye[wt++]=cn,ye[wt++]=$r,ye[wt++]=Wr,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,jt=4*$t;xe.interlaced===!0&&(jt+=4*y*7);for(var Vt=8,ur=0,It=st.length;ur<It;++ur){var yr=st[ur];if(sr===0&&(sr=Ut,(wt+=jt)>=_e&&(jt=4*$t+4*y*(Vt-1),wt=ze+(Ut+$t)*(Vt<<1),Vt>>=1)),yr===ft)wt+=4;else{var Wr=b[gt+3*yr],$r=b[gt+3*yr+1],cn=b[gt+3*yr+2];ye[wt++]=Wr,ye[wt++]=$r,ye[wt++]=cn,ye[wt++]=255}--sr}}}function Ll(b,u,y,M){for(var ne=b[u++],Z=1<<ne,ge=Z+1,De=ge+1,Ne=ne+1,tt=(1<<Ne)-1,yt=0,vt=0,kt=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<Ne)break;var dr=vt&tt;if(vt>>=Ne,yt-=Ne,dr!==Z){if(dr===ge)break;for(var Qt=dr<De?dr:tr,pr=0,Mr=Qt;Mr>Z;)Mr=cr[Mr]>>8,++pr;var an=Mr;if(kt+pr+(Qt!==dr?1:0)>M)return void si.log("Warning, gif stream longer than expected.");y[kt++]=an;var Rn=kt+=pr;for(Qt!==dr&&(y[kt++]=an),Mr=Qt;pr--;)Mr=cr[Mr],y[--Rn]=255&Mr,Mr>>=8;tr!==null&&De<4096&&(cr[De++]=tr<<8|an,De>=tt+1&&Ne<12&&(++Ne,tt=tt<<1|1)),tr=dr}else De=ge+1,tt=(1<<(Ne=ne+1))-1,tr=null}return kt!==M&&si.log("Warning, gif stream shorter than expected."),y}function xl(b){var u,y,M,ne,Z,ge=Math.floor,De=new Array(64),Ne=new Array(64),tt=new Array(64),yt=new Array(64),vt=new Array(65535),kt=new Array(65535),Ve=new Array(64),cr=new Array(64),tr=[],dr=0,Qt=7,pr=new Array(64),Mr=new Array(64),an=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],Br=[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,jt=0,Vt=new Array,ur=1;ur<=16;ur++){for(var It=1;It<=ze[ur];It++)Vt[_e[jt]]=[],Vt[_e[jt]][0]=wt,Vt[_e[jt]][1]=ur,jt++,wt++;wt*=2}return Vt}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,jt,Vt){for(var ur,It=Vt[0],yr=Vt[240],Wr=function(sn,An){var rn,_n,ii,Di,He,c,w,C,K,Be,je=0;for(K=0;K<8;++K){rn=sn[je],_n=sn[je+1],ii=sn[je+2],Di=sn[je+3],He=sn[je+4],c=sn[je+5],w=sn[je+6];var xt=rn+(C=sn[je+7]),bt=rn-C,Xt=_n+w,Ar=_n-w,xr=ii+c,nn=ii-c,Cn=Di+He,Xr=Di-He,dn=xt+Cn,Mn=xt-Cn,qn=Xt+xr,xi=Xt-xr;sn[je]=dn+qn,sn[je+4]=dn-qn;var yn=.707106781*(xi+Mn);sn[je+2]=Mn+yn,sn[je+6]=Mn-yn;var fi=.382683433*((dn=Xr+nn)-(xi=Ar+bt)),Ji=.5411961*dn+fi,$i=1.306562965*xi+fi,Sa=.707106781*(qn=nn+Ar),Ia=bt+Sa,Xi=bt-Sa;sn[je+5]=Xi+Ji,sn[je+3]=Xi-Ji,sn[je+1]=Ia+$i,sn[je+7]=Ia-$i,je+=8}for(je=0,K=0;K<8;++K){rn=sn[je],_n=sn[je+8],ii=sn[je+16],Di=sn[je+24],He=sn[je+32],c=sn[je+40],w=sn[je+48];var Ta=rn+(C=sn[je+56]),Ba=rn-C,ai=_n+w,Ka=_n-w,ls=ii+c,aa=ii-c,da=Di+He,wa=Di-He,$a=Ta+da,us=Ta-da,ca=ai+ls,Ts=ai-ls;sn[je]=$a+ca,sn[je+32]=$a-ca;var bs=.707106781*(Ts+us);sn[je+16]=us+bs,sn[je+48]=us-bs;var Hs=.382683433*(($a=wa+aa)-(Ts=Ka+Ba)),Zs=.5411961*$a+Hs,Xs=1.306562965*Ts+Hs,Wo=.707106781*(ca=aa+Ka),$o=Ba+Wo,ho=Ba-Wo;sn[je+40]=ho+Zs,sn[je+24]=ho-Zs,sn[je+8]=$o+Xs,sn[je+56]=$o-Xs,je++}for(K=0;K<64;++K)Be=sn[K]*An[K],Ve[K]=Be>0?Be+.5|0:Be-.5|0;return Ve}(ze,_e),$r=0;$r<64;++$r)cr[pn[$r]]=Wr[$r];var cn=cr[0]-wt;wt=cr[0],cn==0?gt(jt[0]):(gt(jt[kt[ur=32767+cn]]),gt(vt[ur]));for(var Dn=63;Dn>0&&cr[Dn]==0;)Dn--;if(Dn==0)return gt(It),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 In=1;In<=ni;++In)gt(yr);Si&=15}ur=32767+cr[kr],gt(Vt[(Si<<4)+kt[ur]]),gt(vt[ur]),kr++}return Dn!=63&>(It),wt}function sr(ze){ze=Math.min(Math.max(ze,1),100),Z!=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],jt=0;jt<64;jt++){var Vt=ge((wt[jt]*_e+50)/100);Vt=Math.min(Math.max(Vt,1),255),De[pn[jt]]=Vt}for(var ur=[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],It=0;It<64;It++){var yr=ge((ur[It]*_e+50)/100);yr=Math.min(Math.max(yr,1),255),Ne[pn[It]]=yr}for(var Wr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],$r=0,cn=0;cn<8;cn++)for(var Dn=0;Dn<8;Dn++)tt[$r]=1/(De[pn[$r]]*Wr[cn]*Wr[Dn]*8),yt[$r]=1/(Ne[pn[$r]]*Wr[cn]*Wr[Dn]*8),$r++}(ze<50?Math.floor(5e3/ze):Math.floor(200-2*ze)),Z=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 _n=0;_n<64;_n++)ft(De[_n]);ft(1);for(var ii=0;ii<64;ii++)ft(Ne[ii])}(),function(_n,ii){Ut(65472),Ut(17),ft(8),Ut(ii),Ut(_n),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 _n=0;_n<16;_n++)ft(Br[_n+1]);for(var ii=0;ii<=11;ii++)ft(xn[ii]);ft(16);for(var Di=0;Di<16;Di++)ft(Nn[Di+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,jt=0,Vt=0;dr=0,Qt=7,this.encode.displayName="_encode_";for(var ur,It,yr,Wr,$r,cn,Dn,ni,kr,ir=ze.data,Si=ze.width,In=ze.height,sn=4*Si,An=0;An<In;){for(ur=0;ur<sn;){for($r=sn*An+ur,Dn=-1,ni=0,kr=0;kr<64;kr++)cn=$r+(ni=kr>>3)*sn+(Dn=4*(7&kr)),An+ni>=In&&(cn-=sn*(An+1+ni-In)),ur+Dn>=sn&&(cn-=ur+Dn-sn+4),It=ir[cn++],yr=ir[cn++],Wr=ir[cn++],pr[kr]=(di[It]+di[yr+256>>0]+di[Wr+512>>0]>>16)-128,Mr[kr]=(di[It+768>>0]+di[yr+1024>>0]+di[Wr+1280>>0]>>16)-128,an[kr]=(di[It+1280>>0]+di[yr+1536>>0]+di[Wr+1792>>0]>>16)-128;wt=$t(pr,tt,wt,u,M),jt=$t(Mr,yt,jt,y,ne),Vt=$t(an,yt,Vt,y,ne),ur+=32}An+=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(Br,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 jt=ze;jt<_e;jt++)kt[32767+jt]=wt,vt[32767+jt]=[],vt[32767+jt][1]=wt,vt[32767+jt][0]=jt;for(var Vt=-(_e-1);Vt<=-ze;Vt++)kt[32767+Vt]=wt,vt[32767+Vt]=[],vt[32767+Vt][1]=wt,vt[32767+Vt][0]=_e-1+Vt;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(Br){if(!Br)throw Error("assert :P")}function y(Br,xn,Nn){for(var er=0;4>er;er++)if(Br[xn+er]!=Nn.charCodeAt(er))return!0;return!1}function M(Br,xn,Nn,er,nr){for(var ye=0;ye<nr;ye++)Br[xn+ye]=Nn[er+ye]}function ne(Br,xn,Nn,er){for(var nr=0;nr<er;nr++)Br[xn+nr]=Nn}function Z(Br){return new Int32Array(Br)}function ge(Br,xn){for(var Nn=[],er=0;er<Br;er++)Nn.push(new xn);return Nn}function De(Br,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,Br),Nn}var Ne=function(){var Br=this;function xn(h,Q){for(var ce=1<<Q-1>>>0;h&ce;)ce>>>=1;return ce?(h&ce-1)+ce:h}function Nn(h,Q,ce,Qe,ut){u(!(Qe%ce));do h[Q+(Qe-=ce)]=ut;while(0<Qe)}function er(h,Q,ce,Qe,ut){if(u(2328>=ut),512>=ut)var ht=Z(512);else if((ht=Z(ut))==null)return 0;return function(mt,Dt,Pt,zt,fr,Vr){var Yr,Sr,Zn=Dt,Pn=1<<Pt,Pr=Z(16),Dr=Z(16);for(u(fr!=0),u(zt!=null),u(mt!=null),u(0<Pt),Sr=0;Sr<fr;++Sr){if(15<zt[Sr])return 0;++Pr[zt[Sr]]}if(Pr[0]==fr)return 0;for(Dr[1]=0,Yr=1;15>Yr;++Yr){if(Pr[Yr]>1<<Yr)return 0;Dr[Yr+1]=Dr[Yr]+Pr[Yr]}for(Sr=0;Sr<fr;++Sr)Yr=zt[Sr],0<zt[Sr]&&(Vr[Dr[Yr]++]=Sr);if(Dr[15]==1)return(zt=new nr).g=0,zt.value=Vr[0],Nn(mt,Zn,1,Pn,zt),Pn;var Wn,vi=-1,ei=Pn-1,Vi=0,Gi=1,ga=1,Yi=1<<Pt;for(Sr=0,Yr=1,fr=2;Yr<=Pt;++Yr,fr<<=1){if(Gi+=ga<<=1,0>(ga-=Pr[Yr]))return 0;for(;0<Pr[Yr];--Pr[Yr])(zt=new nr).g=Yr,zt.value=Vr[Sr++],Nn(mt,Zn+Vi,fr,Yi,zt),Vi=xn(Vi,Yr)}for(Yr=Pt+1,fr=2;15>=Yr;++Yr,fr<<=1){if(Gi+=ga<<=1,0>(ga-=Pr[Yr]))return 0;for(;0<Pr[Yr];--Pr[Yr]){if(zt=new nr,(Vi&ei)!=vi){for(Zn+=Yi,Wn=1<<(vi=Yr)-Pt;15>vi&&!(0>=(Wn-=Pr[vi]));)++vi,Wn<<=1;Pn+=Yi=1<<(Wn=vi-Pt),mt[Dt+(vi=Vi&ei)].g=Wn+Pt,mt[Dt+vi].value=Zn-Dt-vi}zt.g=Yr-Pt,zt.value=Vr[Sr++],Nn(mt,Zn+(Vi>>Pt),fr,Yi,zt),Vi=xn(Vi,Yr)}}return Gi!=2*Dr[15]-1?0:Pn}(h,Q,ce,Qe,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=Z(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ge(Eo,ye)}function et(h,Q,ce,Qe){u(h!=null),u(Q!=null),u(2147483648>Qe),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=Q,h.pa=ce,h.Jd=Q,h.Yc=ce+Qe,h.Zc=4<=Qe?ce+Qe-4+1:ce,ur(h)}function st(h,Q){for(var ce=0;0<Q--;)ce|=yr(h,128)<<Q;return ce}function gt(h,Q){var ce=st(h,Q);return It(h)?-ce:ce}function ft(h,Q,ce,Qe){var ut,ht=0;for(u(h!=null),u(Q!=null),u(4294967288>Qe),h.Sb=Qe,h.Ra=0,h.u=0,h.h=0,4<Qe&&(Qe=4),ut=0;ut<Qe;++ut)ht+=Q[ce+ut]<<8*ut;h.Ra=ht,h.bb=Qe,h.oa=Q,h.pa=ce}function Ut(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<Ul-8>>>0,++h.bb,h.u-=8;wt(h)&&(h.h=1,h.u=0)}function $t(h,Q){if(u(0<=Q),!h.h&&Q<=no){var ce=_e(h)&Ju[Q];return h.u+=Q,Ut(h),ce}return h.h=1,h.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(h){return h.Ra>>>(h.u&Ul-1)>>>0}function wt(h){return u(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>Ul}function jt(h,Q){h.u=Q,h.h=wt(h)}function Vt(h){h.u>=ru&&(u(h.u>=ru),Ut(h))}function ur(h){u(h!=null&&h.oa!=null),h.pa<h.Zc?(h.I=(h.oa[h.pa++]|h.I<<8)>>>0,h.b+=8):(u(h!=null&&h.oa!=null),h.pa<h.Yc?(h.b+=8,h.I=h.oa[h.pa++]|h.I<<8):h.Ka?h.b=0:(h.I<<=8,h.b+=8,h.Ka=1))}function It(h){return st(h,1)}function yr(h,Q){var ce=h.Ca;0>h.b&&ur(h);var Qe=h.b,ut=ce*Q>>>8,ht=(h.I>>>Qe>ut)+0;for(ht?(ce-=ut,h.I-=ut+1<<Qe>>>0):ce=ut+1,Qe=ce,ut=0;256<=Qe;)ut+=8,Qe>>=8;return Qe=7^ut+Oo[Qe],h.b-=Qe,h.Ca=(ce<<Qe)-1,ht}function Wr(h,Q,ce){h[Q+0]=ce>>24&255,h[Q+1]=ce>>16&255,h[Q+2]=ce>>8&255,h[Q+3]=ce>>0&255}function $r(h,Q){return h[Q+0]<<0|h[Q+1]<<8}function cn(h,Q){return $r(h,Q)|h[Q+2]<<16}function Dn(h,Q){return $r(h,Q)|$r(h,Q+2)<<16}function ni(h,Q){var ce=1<<Q;return u(h!=null),u(0<Q),h.X=Z(ce),h.X==null?0:(h.Mb=32-Q,h.Xa=Q,1)}function kr(h,Q){u(h!=null),u(Q!=null),u(h.Xa==Q.Xa),M(Q.X,0,h.X,0,1<<Q.Xa)}function ir(){this.X=[],this.Xa=this.Mb=0}function Si(h,Q,ce,Qe){u(ce!=null),u(Qe!=null);var ut=ce[0],ht=Qe[0];return ut==0&&(ut=(h*ht+Q/2)/Q),ht==0&&(ht=(Q*ut+h/2)/h),0>=ut||0>=ht?0:(ce[0]=ut,Qe[0]=ht,1)}function In(h,Q){return h+(1<<Q)-1>>>Q}function sn(h,Q){return((4278255360&h)+(4278255360&Q)>>>0&4278255360)+((16711935&h)+(16711935&Q)>>>0&16711935)>>>0}function An(h,Q){Br[Q]=function(ce,Qe,ut,ht,mt,Dt,Pt){var zt;for(zt=0;zt<mt;++zt){var fr=Br[h](Dt[Pt+zt-1],ut,ht+zt);Dt[Pt+zt]=sn(ce[Qe+zt],fr)}}}function rn(){this.ud=this.hd=this.jd=0}function _n(h,Q){return((4278124286&(h^Q))>>>1)+(h&Q)>>>0}function ii(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function Di(h,Q){return ii(h+(h-Q+.5>>1))}function He(h,Q,ce){return Math.abs(Q-ce)-Math.abs(h-ce)}function c(h,Q,ce,Qe,ut,ht,mt){for(Qe=ht[mt-1],ce=0;ce<ut;++ce)ht[mt+ce]=Qe=sn(h[Q+ce],Qe)}function w(h,Q,ce,Qe,ut){var ht;for(ht=0;ht<ce;++ht){var mt=h[Q+ht],Dt=mt>>8&255,Pt=16711935&(Pt=(Pt=16711935&mt)+((Dt<<16)+Dt));Qe[ut+ht]=(4278255360&mt)+Pt>>>0}}function C(h,Q){Q.jd=h>>0&255,Q.hd=h>>8&255,Q.ud=h>>16&255}function K(h,Q,ce,Qe,ut,ht){var mt;for(mt=0;mt<Qe;++mt){var Dt=Q[ce+mt],Pt=Dt>>>8,zt=Dt,fr=255&(fr=(fr=Dt>>>16)+((h.jd<<24>>24)*(Pt<<24>>24)>>>5));zt=255&(zt=(zt=zt+((h.hd<<24>>24)*(Pt<<24>>24)>>>5))+((h.ud<<24>>24)*(fr<<24>>24)>>>5)),ut[ht+mt]=(4278255360&Dt)+(fr<<16)+zt}}function Be(h,Q,ce,Qe,ut){Br[Q]=function(ht,mt,Dt,Pt,zt,fr,Vr,Yr,Sr){for(Pt=Vr;Pt<Yr;++Pt)for(Vr=0;Vr<Sr;++Vr)zt[fr++]=ut(Dt[Qe(ht[mt++])])},Br[h]=function(ht,mt,Dt,Pt,zt,fr,Vr){var Yr=8>>ht.b,Sr=ht.Ea,Zn=ht.K[0],Pn=ht.w;if(8>Yr)for(ht=(1<<ht.b)-1,Pn=(1<<Yr)-1;mt<Dt;++mt){var Pr,Dr=0;for(Pr=0;Pr<Sr;++Pr)Pr&ht||(Dr=Qe(Pt[zt++])),fr[Vr++]=ut(Zn[Dr&Pn]),Dr>>=Yr}else Br["VP8LMapColor"+ce](Pt,zt,Zn,Pn,fr,Vr,mt,Dt,Sr)}}function je(h,Q,ce,Qe,ut){for(ce=Q+ce;Q<ce;){var ht=h[Q++];Qe[ut++]=ht>>16&255,Qe[ut++]=ht>>8&255,Qe[ut++]=ht>>0&255}}function xt(h,Q,ce,Qe,ut){for(ce=Q+ce;Q<ce;){var ht=h[Q++];Qe[ut++]=ht>>16&255,Qe[ut++]=ht>>8&255,Qe[ut++]=ht>>0&255,Qe[ut++]=ht>>24&255}}function bt(h,Q,ce,Qe,ut){for(ce=Q+ce;Q<ce;){var ht=(mt=h[Q++])>>16&240|mt>>12&15,mt=mt>>0&240|mt>>28&15;Qe[ut++]=ht,Qe[ut++]=mt}}function Xt(h,Q,ce,Qe,ut){for(ce=Q+ce;Q<ce;){var ht=(mt=h[Q++])>>16&248|mt>>13&7,mt=mt>>5&224|mt>>3&31;Qe[ut++]=ht,Qe[ut++]=mt}}function Ar(h,Q,ce,Qe,ut){for(ce=Q+ce;Q<ce;){var ht=h[Q++];Qe[ut++]=ht>>0&255,Qe[ut++]=ht>>8&255,Qe[ut++]=ht>>16&255}}function xr(h,Q,ce,Qe,ut,ht){if(ht==0)for(ce=Q+ce;Q<ce;)Wr(Qe,((ht=h[Q++])[0]>>24|ht[1]>>8&65280|ht[2]<<8&16711680|ht[3]<<24)>>>0),ut+=32;else M(Qe,ut,h,Q,ce)}function nn(h,Q){Br[Q][0]=Br[h+"0"],Br[Q][1]=Br[h+"1"],Br[Q][2]=Br[h+"2"],Br[Q][3]=Br[h+"3"],Br[Q][4]=Br[h+"4"],Br[Q][5]=Br[h+"5"],Br[Q][6]=Br[h+"6"],Br[Q][7]=Br[h+"7"],Br[Q][8]=Br[h+"8"],Br[Q][9]=Br[h+"9"],Br[Q][10]=Br[h+"10"],Br[Q][11]=Br[h+"11"],Br[Q][12]=Br[h+"12"],Br[Q][13]=Br[h+"13"],Br[Q][14]=Br[h+"0"],Br[Q][15]=Br[h+"0"]}function Cn(h){return h==Za||h==na||h==ja||h==Qa}function Xr(){this.eb=[],this.size=this.A=this.fb=0}function dn(){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 dn,this.sd=null}function qn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xi(){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(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function fi(h,Q){var ce=h.T,Qe=Q.ba.f.RGBA,ut=Qe.eb,ht=Qe.fb+h.ka*Qe.A,mt=ou[Q.ba.S],Dt=h.y,Pt=h.O,zt=h.f,fr=h.N,Vr=h.ea,Yr=h.W,Sr=Q.cc,Zn=Q.dc,Pn=Q.Mc,Pr=Q.Nc,Dr=h.ka,Wn=h.ka+h.T,vi=h.U,ei=vi+1>>1;for(Dr==0?mt(Dt,Pt,null,null,zt,fr,Vr,Yr,zt,fr,Vr,Yr,ut,ht,null,null,vi):(mt(Q.ec,Q.fc,Dt,Pt,Sr,Zn,Pn,Pr,zt,fr,Vr,Yr,ut,ht-Qe.A,ut,ht,vi),++ce);Dr+2<Wn;Dr+=2)Sr=zt,Zn=fr,Pn=Vr,Pr=Yr,fr+=h.Rc,Yr+=h.Rc,ht+=2*Qe.A,mt(Dt,(Pt+=2*h.fa)-h.fa,Dt,Pt,Sr,Zn,Pn,Pr,zt,fr,Vr,Yr,ut,ht-Qe.A,ut,ht,vi);return Pt+=h.fa,h.j+Wn<h.o?(M(Q.ec,Q.fc,Dt,Pt,vi),M(Q.cc,Q.dc,zt,fr,ei),M(Q.Mc,Q.Nc,Vr,Yr,ei),ce--):1&Wn||mt(Dt,Pt,null,null,zt,fr,Vr,Yr,zt,fr,Vr,Yr,ut,ht+Qe.A,null,null,vi),ce}function Ji(h,Q,ce){var Qe=h.F,ut=[h.J];if(Qe!=null){var ht=h.U,mt=Q.ba.S,Dt=mt==qi||mt==ja;Q=Q.ba.f.RGBA;var Pt=[0],zt=h.ka;Pt[0]=h.T,h.Kb&&(zt==0?--Pt[0]:(--zt,ut[0]-=h.width),h.j+h.ka+h.T==h.o&&(Pt[0]=h.o-h.j-zt));var fr=Q.eb;zt=Q.fb+zt*Q.A,h=Ae(Qe,ut[0],h.width,ht,Pt,fr,zt+(Dt?0:3),Q.A),u(ce==Pt),h&&Cn(mt)&&j(fr,zt,Dt,ht,Pt,Q.A)}return 0}function $i(h){var Q=h.ma,ce=Q.ba.S,Qe=11>ce,ut=ce==gi||ce==Ii||ce==qi||ce==mi||ce==12||Cn(ce);if(Q.memory=null,Q.Ib=null,Q.Jb=null,Q.Nd=null,!Xu(Q.Oa,h,ut?11:12))return 0;if(ut&&Cn(ce)&&_i(),h.da)alert("todo:use_scaling");else{if(Qe){if(Q.Ib=yn,h.Kb){if(ce=h.U+1>>1,Q.memory=Z(h.U+2*ce),Q.memory==null)return 0;Q.ec=Q.memory,Q.fc=0,Q.cc=Q.ec,Q.dc=Q.fc+h.U,Q.Mc=Q.cc,Q.Nc=Q.dc+ce,Q.Ib=fi,_i()}}else alert("todo:EmitYUV");ut&&(Q.Jb=Ji,Qe&&ln())}if(Qe&&!R){for(h=0;256>h;++h)E[h]=89858*(h-128)+$c>>Hc,Pe[h]=-22014*(h-128)+$c,k[h]=-45773*(h-128),U[h]=113618*(h-128)+$c>>Hc;for(h=Uc;h<Vc;++h)Q=76283*(h-16)+$c>>Hc,it[h-Uc]=el(Q,255),Lt[h-Uc]=el(Q+8>>4,15);R=1}return 1}function Sa(h){var Q=h.ma,ce=h.U,Qe=h.T;return u(!(1&h.ka)),0>=ce||0>=Qe?0:(ce=Q.Ib(h,Q),Q.Jb!=null&&Q.Jb(h,Q,ce),Q.Dc+=ce,1)}function Ia(h){h.ma.memory=null}function Xi(h,Q,ce,Qe){return $t(h,8)!=47?0:(Q[0]=$t(h,14)+1,ce[0]=$t(h,14)+1,Qe[0]=$t(h,1),$t(h,3)!=0?0:!h.h)}function Ta(h,Q){if(4>h)return h+1;var ce=h-2>>1;return(2+(1&h)<<ce)+$t(Q,ce)+1}function Ba(h,Q){return 120<Q?Q-120:1<=(ce=((ce=ks[Q-1])>>4)*h+(8-(15&ce)))?ce:1;var ce}function ai(h,Q,ce){var Qe=_e(ce),ut=h[Q+=255&Qe].g-8;return 0<ut&&(jt(ce,ce.u+8),Qe=_e(ce),Q+=h[Q].value,Q+=Qe&(1<<ut)-1),jt(ce,ce.u+h[Q].g),h[Q].value}function Ka(h,Q,ce){return ce.g+=h.g,ce.value+=h.value<<Q>>>0,u(8>=ce.g),h.g}function ls(h,Q,ce){var Qe=h.xc;return u((Q=Qe==0?0:h.vc[h.md*(ce>>Qe)+(Q>>Qe)])<h.Wb),h.Ya[Q]}function aa(h,Q,ce,Qe){var ut=h.ab,ht=h.c*Q,mt=h.C;Q=mt+Q;var Dt=ce,Pt=Qe;for(Qe=h.Ta,ce=h.Ua;0<ut--;){var zt=h.gc[ut],fr=mt,Vr=Q,Yr=Dt,Sr=Pt,Zn=(Pt=Qe,Dt=ce,zt.Ea);switch(u(fr<Vr),u(Vr<=zt.nc),zt.hc){case 2:Ql(Yr,Sr,(Vr-fr)*Zn,Pt,Dt);break;case 0:var Pn=fr,Pr=Vr,Dr=Pt,Wn=Dt,vi=(Yi=zt).Ea;Pn==0&&(nu(Yr,Sr,null,null,1,Dr,Wn),c(Yr,Sr+1,0,0,vi-1,Dr,Wn+1),Sr+=vi,Wn+=vi,++Pn);for(var ei=1<<Yi.b,Vi=ei-1,Gi=In(vi,Yi.b),ga=Yi.K,Yi=Yi.w+(Pn>>Yi.b)*Gi;Pn<Pr;){var Ss=ga,Ds=Yi,fs=1;for(Eu(Yr,Sr,Dr,Wn-vi,1,Dr,Wn);fs<vi;){var cs=(fs&~Vi)+ei;cs>vi&&(cs=vi),(0,jl[Ss[Ds++]>>8&15])(Yr,Sr+ +fs,Dr,Wn+fs-vi,cs-fs,Dr,Wn+fs),fs=cs}Sr+=vi,Wn+=vi,++Pn&Vi||(Yi+=Gi)}Vr!=zt.nc&&M(Pt,Dt-Zn,Pt,Dt+(Vr-fr-1)*Zn,Zn);break;case 1:for(Zn=Yr,Pr=Sr,vi=(Yr=zt.Ea)-(Wn=Yr&~(Dr=(Sr=1<<zt.b)-1)),Pn=In(Yr,zt.b),ei=zt.K,zt=zt.w+(fr>>zt.b)*Pn;fr<Vr;){for(Vi=ei,Gi=zt,ga=new rn,Yi=Pr+Wn,Ss=Pr+Yr;Pr<Yi;)C(Vi[Gi++],ga),iu(ga,Zn,Pr,Sr,Pt,Dt),Pr+=Sr,Dt+=Sr;Pr<Ss&&(C(Vi[Gi++],ga),iu(ga,Zn,Pr,vi,Pt,Dt),Pr+=vi,Dt+=vi),++fr&Dr||(zt+=Pn)}break;case 3:if(Yr==Pt&&Sr==Dt&&0<zt.b){for(Pr=Pt,Yr=Zn=Dt+(Vr-fr)*Zn-(Wn=(Vr-fr)*In(zt.Ea,zt.b)),Sr=Pt,Dr=Dt,Pn=[],Wn=(vi=Wn)-1;0<=Wn;--Wn)Pn[Wn]=Sr[Dr+Wn];for(Wn=vi-1;0<=Wn;--Wn)Pr[Yr+Wn]=Pn[Wn];pl(zt,fr,Vr,Pt,Zn,Pt,Dt)}else pl(zt,fr,Vr,Yr,Sr,Pt,Dt)}Dt=Qe,Pt=ce}Pt!=ce&&M(Qe,ce,Dt,Pt,ht)}function da(h,Q){var ce=h.V,Qe=h.Ba+h.c*h.C,ut=Q-h.C;if(u(Q<=h.l.o),u(16>=ut),0<ut){var ht=h.l,mt=h.Ta,Dt=h.Ua,Pt=ht.width;if(aa(h,ut,ce,Qe),ut=Dt=[Dt],u((ce=h.C)<(Qe=Q)),u(ht.v<ht.va),Qe>ht.o&&(Qe=ht.o),ce<ht.j){var zt=ht.j-ce;ce=ht.j,ut[0]+=zt*Pt}if(ce>=Qe?ce=0:(ut[0]+=4*ht.v,ht.ka=ce-ht.j,ht.U=ht.va-ht.v,ht.T=Qe-ce,ce=1),ce){if(Dt=Dt[0],11>(ce=h.ca).S){var fr=ce.f.RGBA,Vr=(Qe=ce.S,ut=ht.U,ht=ht.T,zt=fr.eb,fr.A),Yr=ht;for(fr=fr.fb+h.Ma*fr.A;0<Yr--;){var Sr=mt,Zn=Dt,Pn=ut,Pr=zt,Dr=fr;switch(Qe){case un:ul(Sr,Zn,Pn,Pr,Dr);break;case gi:Uo(Sr,Zn,Pn,Pr,Dr);break;case Za:Uo(Sr,Zn,Pn,Pr,Dr),j(Pr,Dr,0,Pn,1,0);break;case Kn:su(Sr,Zn,Pn,Pr,Dr);break;case Ii:xr(Sr,Zn,Pn,Pr,Dr,1);break;case na:xr(Sr,Zn,Pn,Pr,Dr,1),j(Pr,Dr,0,Pn,1,0);break;case qi:xr(Sr,Zn,Pn,Pr,Dr,0);break;case ja:xr(Sr,Zn,Pn,Pr,Dr,0),j(Pr,Dr,1,Pn,1,0);break;case mi:Uu(Sr,Zn,Pn,Pr,Dr);break;case Qa:Uu(Sr,Zn,Pn,Pr,Dr),q(Pr,Dr,Pn,1,0);break;case Pi:au(Sr,Zn,Pn,Pr,Dr);break;default:u(0)}Dt+=Pt,fr+=Vr}h.Ma+=ht}else alert("todo:EmitRescaledRowsYUVA");u(h.Ma<=ce.height)}}h.C=Q,u(h.C<=h.i)}function wa(h){var Q;if(0<h.ua)return 0;for(Q=0;Q<h.Wb;++Q){var ce=h.Ya[Q].G,Qe=h.Ya[Q].H;if(0<ce[1][Qe[1]+0].g||0<ce[2][Qe[2]+0].g||0<ce[3][Qe[3]+0].g)return 0}return 1}function $a(h,Q,ce,Qe,ut,ht){if(h.Z!=0){var mt=h.qd,Dt=h.rd;for(u(rc[h.Z]!=null);Q<ce;++Q)rc[h.Z](mt,Dt,Qe,ut,Qe,ut,ht),mt=Qe,Dt=ut,ut+=ht;h.qd=mt,h.rd=Dt}}function us(h,Q){var ce=h.l.ma,Qe=ce.Z==0||ce.Z==1?h.l.j:h.C;if(Qe=h.C<Qe?Qe:h.C,u(Q<=h.l.o),Q>Qe){var ut=h.l.width,ht=ce.ca,mt=ce.tb+ut*Qe,Dt=h.V,Pt=h.Ba+h.c*Qe,zt=h.gc;u(h.ab==1),u(zt[0].hc==3),Cc(zt[0],Qe,Q,Dt,Pt,ht,mt),$a(ce,Qe,Q,ht,mt,ut)}h.C=h.Ma=Q}function ca(h,Q,ce,Qe,ut,ht,mt){var Dt=h.$/Qe,Pt=h.$%Qe,zt=h.m,fr=h.s,Vr=ce+h.$,Yr=Vr;ut=ce+Qe*ut;var Sr=ce+Qe*ht,Zn=280+fr.ua,Pn=h.Pb?Dt:16777216,Pr=0<fr.ua?fr.Wa:null,Dr=fr.wc,Wn=Vr<Sr?ls(fr,Pt,Dt):null;u(h.C<ht),u(Sr<=ut);var vi=!1;e:for(;;){for(;vi||Vr<Sr;){var ei=0;if(Dt>=Pn){var Vi=Vr-ce;u((Pn=h).Pb),Pn.wd=Pn.m,Pn.xd=Vi,0<Pn.s.ua&&kr(Pn.s.Wa,Pn.s.vb),Pn=Dt+Ws}if(Pt&Dr||(Wn=ls(fr,Pt,Dt)),u(Wn!=null),Wn.Qb&&(Q[Vr]=Wn.qb,vi=!0),!vi)if(Vt(zt),Wn.jc){ei=zt,Vi=Q;var Gi=Vr,ga=Wn.pd[_e(ei)&Eo-1];u(Wn.jc),256>ga.g?(jt(ei,ei.u+ga.g),Vi[Gi]=ga.value,ei=0):(jt(ei,ei.u+ga.g-256),u(256<=ga.value),ei=ga.value),ei==0&&(vi=!0)}else ei=ai(Wn.G[0],Wn.H[0],zt);if(zt.h)break;if(vi||256>ei){if(!vi)if(Wn.nd)Q[Vr]=(Wn.qb|ei<<8)>>>0;else{if(Vt(zt),vi=ai(Wn.G[1],Wn.H[1],zt),Vt(zt),Vi=ai(Wn.G[2],Wn.H[2],zt),Gi=ai(Wn.G[3],Wn.H[3],zt),zt.h)break;Q[Vr]=(Gi<<24|vi<<16|ei<<8|Vi)>>>0}if(vi=!1,++Vr,++Pt>=Qe&&(Pt=0,++Dt,mt!=null&&Dt<=ht&&!(Dt%16)&&mt(h,Dt),Pr!=null))for(;Yr<Vr;)ei=Q[Yr++],Pr.X[(506832829*ei&4294967295)>>>Pr.Mb]=ei}else if(280>ei){if(ei=Ta(ei-256,zt),Vi=ai(Wn.G[4],Wn.H[4],zt),Vt(zt),Vi=Ba(Qe,Vi=Ta(Vi,zt)),zt.h)break;if(Vr-ce<Vi||ut-Vr<ei)break e;for(Gi=0;Gi<ei;++Gi)Q[Vr+Gi]=Q[Vr+Gi-Vi];for(Vr+=ei,Pt+=ei;Pt>=Qe;)Pt-=Qe,++Dt,mt!=null&&Dt<=ht&&!(Dt%16)&&mt(h,Dt);if(u(Vr<=ut),Pt&Dr&&(Wn=ls(fr,Pt,Dt)),Pr!=null)for(;Yr<Vr;)ei=Q[Yr++],Pr.X[(506832829*ei&4294967295)>>>Pr.Mb]=ei}else{if(!(ei<Zn))break e;for(vi=ei-280,u(Pr!=null);Yr<Vr;)ei=Q[Yr++],Pr.X[(506832829*ei&4294967295)>>>Pr.Mb]=ei;ei=Vr,u(!(vi>>>(Vi=Pr).Xa)),Q[ei]=Vi.X[vi],vi=!0}vi||u(zt.h==wt(zt))}if(h.Pb&&zt.h&&Vr<ut)u(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&kr(h.s.vb,h.s.Wa);else{if(zt.h)break e;mt!=null&&mt(h,Dt>ht?ht:Dt),h.a=0,h.$=Vr-ce}return 1}return h.a=3,0}function Ts(h){u(h!=null),h.vc=null,h.yc=null,h.Ya=null;var Q=h.Wa;Q!=null&&(Q.X=null),h.vb=null,u(h!=null)}function bs(){var h=new wc;return h==null?null:(h.a=0,h.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,Br.VP8LMapColor32b=qu,Br.VP8LMapColor8b=Mu,h)}function Hs(h,Q,ce,Qe,ut){var ht=1,mt=[h],Dt=[Q],Pt=Qe.m,zt=Qe.s,fr=null,Vr=0;e:for(;;){if(ce)for(;ht&&$t(Pt,1);){var Yr=mt,Sr=Dt,Zn=Qe,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=Yr[0],Dr.nc=Sr[0],Dr.K=[null],++Zn.ab,u(4>=Zn.ab),Wn){case 0:case 1:Dr.b=$t(Pr,3)+2,Pn=Hs(In(Dr.Ea,Dr.b),In(Dr.nc,Dr.b),0,Zn,Dr.K),Dr.K=Dr.K[0];break;case 3:var vi,ei=$t(Pr,8)+1,Vi=16<ei?0:4<ei?1:2<ei?2:3;if(Yr[0]=In(Dr.Ea,Vi),Dr.b=Vi,vi=Pn=Hs(ei,1,0,Zn,Dr.K)){var Gi,ga=ei,Yi=Dr,Ss=1<<(8>>Yi.b),Ds=Z(Ss);if(Ds==null)vi=0;else{var fs=Yi.K[0],cs=Yi.w;for(Ds[0]=Yi.K[0][0],Gi=1;Gi<1*ga;++Gi)Ds[Gi]=sn(fs[cs+Gi],Ds[Gi-1]);for(;Gi<4*Ss;++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],Dt=Dt[0],ht&&$t(Pt,1)&&!(ht=1<=(Vr=$t(Pt,4))&&11>=Vr)){Qe.a=3;break e}var Ls;if(Ls=ht)t:{var Us,Va,tl,lu=Qe,rl=mt,uu=Dt,uo=Vr,Bu=ce,Su=lu.m,ml=lu.s,Fl=[null],Gl=1,ju=0,vc=ps[uo];r:for(;;){if(Bu&&$t(Su,1)){var gl=$t(Su,3)+2,Bc=In(rl,gl),Qc=In(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(Va=0;5>Va;++Va){var Zo=Ks[Va];!Va&&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=Z(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(Va=0;5>Va;++Va){Zo=Ks[Va],zc[Va]=lA,Gc[Va]=tl,!Va&&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=Z(19),kA=$t(Rc,4)+4;if(19<kA){AA.a=3;var fA=0;break i}for(cA=0;cA<kA;++cA)NA[sa[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--;){Vt(Oc);var HA=jA[0+(127&_e(Oc))];jt(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&&fa[Va]==1&&(uA=lA[tl].g==0),RA+=lA[tl].g,tl+=fA,3>=Va){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>>=Ka(mA,8,Nc),Pc>>=Ka(Sc.G[1][Sc.H[1]+Pc],16,Nc),Pc>>=Ka(Sc.G[2][Sc.H[2]+Pc],0,Nc),Ka(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)){Qe.a=3;break e}if(0<Vr){if(zt.ua=1<<Vr,!ni(zt.Wa,Vr)){Qe.a=1,ht=0;break e}}else zt.ua=0;var IA=Qe,zA=mt,a0=Dt,TA=IA.s,FA=TA.xc;if(IA.c=zA,IA.i=a0,TA.md=In(zA,FA),TA.wc=FA==0?-1:(1<<FA)-1,ce){Qe.xb=eA;break e}if((fr=Z(mt*Dt))==null){Qe.a=1,ht=0;break e}ht=(ht=ca(Qe,fr,0,mt,Dt,Dt,null))&&!Pt.h;break e}return ht?(ut!=null?ut[0]=fr:(u(fr==null),u(ce)),Qe.$=0,ce||Ts(zt)):Ts(zt),ht}function Zs(h,Q){var ce=h.c*h.i,Qe=ce+Q+16*Q;return u(h.c<=Q),h.V=Z(Qe),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+ce+Q,1)}function Xs(h,Q){var ce=h.C,Qe=Q-ce,ut=h.V,ht=h.Ba+h.c*ce;for(u(Q<=h.l.o);0<Qe;){var mt=16<Qe?16:Qe,Dt=h.l.ma,Pt=h.l.width,zt=Pt*mt,fr=Dt.ca,Vr=Dt.tb+Pt*ce,Yr=h.Ta,Sr=h.Ua;aa(h,mt,ut,ht),Re(Yr,Sr,fr,Vr,zt),$a(Dt,ce,ce+mt,fr,Vr,Pt),Qe-=mt,ut+=mt*h.c,ce+=mt}u(ce==Q),h.C=h.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=Z(4),this.Lb=Z(4)}function oo(){this.Yb=function(){var h=[];return function Q(ce,Qe,ut){for(var ht=ut[Qe],mt=0;mt<ht&&(ce.push(ut.length>Qe+1?[]:0),!(ut.length<Qe+1));mt++)Q(ce[mt],Qe+1,ut)}(h,0,[3,11]),h}()}function ro(){this.jb=Z(3),this.Wc=De([4,8],oo),this.Xc=De([4,17],oo)}function $s(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Z(4),this.od=new Z(4)}function ts(){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=Z(384),this.Za=0,this.Ob=Z(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 ts),this.Y=0,this.ya=Array(new Vo),this.aa=0,this.l=new Ua}function fu(){this.y=Z(16),this.f=Z(8),this.ea=Z(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 ts),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=De([4,2],ts),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 Ua(){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 _s(){var h=new Iu;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,Fo||(Fo=Ro)),h}function rs(h,Q,ce){return h.a==0&&(h.a=Q,h.sc=ce,h.cb=0),0}function Bs(h,Q,ce){return 3<=ce&&h[Q+0]==157&&h[Q+1]==1&&h[Q+2]==42}function wo(h,Q){if(h==null)return 0;if(h.a=0,h.sc="OK",Q==null)return rs(h,2,"null VP8Io passed to VP8GetHeaders()");var ce=Q.data,Qe=Q.w,ut=Q.ha;if(4>ut)return rs(h,7,"Truncated header.");var ht=ce[Qe+0]|ce[Qe+1]<<8|ce[Qe+2]<<16,mt=h.Od;if(mt.Rb=!(1&ht),mt.td=ht>>1&7,mt.yd=ht>>4&1,mt.ub=ht>>5,3<mt.td)return rs(h,3,"Incorrect keyframe parameters.");if(!mt.yd)return rs(h,4,"Frame not displayable.");Qe+=3,ut-=3;var Dt=h.Kc;if(mt.Rb){if(7>ut)return rs(h,7,"cannot parse picture header");if(!Bs(ce,Qe,ut))return rs(h,3,"Bad code word");Dt.c=16383&(ce[Qe+4]<<8|ce[Qe+3]),Dt.Td=ce[Qe+4]>>6,Dt.i=16383&(ce[Qe+6]<<8|ce[Qe+5]),Dt.Ud=ce[Qe+6]>>6,Qe+=7,ut-=7,h.za=Dt.c+15>>4,h.Ub=Dt.i+15>>4,Q.width=Dt.c,Q.height=Dt.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=h.Pa).jb,0,255,ht.jb.length),u((ht=h.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 rs(h,7,"bad partition length");et(ht=h.m,ce,Qe,mt.ub),Qe+=mt.ub,ut-=mt.ub,mt.Rb&&(Dt.Ld=It(ht),Dt.Kd=It(ht)),Dt=h.Qa;var Pt,zt=h.Pa;if(u(ht!=null),u(Dt!=null),Dt.Cb=It(ht),Dt.Cb){if(Dt.Bb=It(ht),It(ht)){for(Dt.Fb=It(ht),Pt=0;4>Pt;++Pt)Dt.Zb[Pt]=It(ht)?gt(ht,7):0;for(Pt=0;4>Pt;++Pt)Dt.Lb[Pt]=It(ht)?gt(ht,6):0}if(Dt.Bb)for(Pt=0;3>Pt;++Pt)zt.jb[Pt]=It(ht)?st(ht,8):255}else Dt.Bb=0;if(ht.Ka)return rs(h,3,"cannot parse segment header");if((Dt=h.ed).zd=It(ht),Dt.Tb=st(ht,6),Dt.wb=st(ht,3),Dt.Pc=It(ht),Dt.Pc&&It(ht)){for(zt=0;4>zt;++zt)It(ht)&&(Dt.vd[zt]=gt(ht,6));for(zt=0;4>zt;++zt)It(ht)&&(Dt.od[zt]=gt(ht,6))}if(h.L=Dt.Tb==0?0:Dt.zd?1:2,ht.Ka)return rs(h,3,"cannot parse filter header");var fr=ut;if(ut=Pt=Qe,Qe=Pt+fr,Dt=fr,h.Xb=(1<<st(h.m,2))-1,fr<3*(zt=h.Xb))ce=7;else{for(Pt+=3*zt,Dt-=3*zt,fr=0;fr<zt;++fr){var Vr=ce[ut+0]|ce[ut+1]<<8|ce[ut+2]<<16;Vr>Dt&&(Vr=Dt),et(h.Jc[+fr],ce,Pt,Vr),Pt+=Vr,Dt-=Vr,ut+=3}et(h.Jc[+zt],ce,Pt,Dt),ce=Pt<Qe?0:5}if(ce!=0)return rs(h,ce,"cannot parse partitions");for(ce=st(Pt=h.m,7),ut=It(Pt)?gt(Pt,4):0,Qe=It(Pt)?gt(Pt,4):0,Dt=It(Pt)?gt(Pt,4):0,zt=It(Pt)?gt(Pt,4):0,Pt=It(Pt)?gt(Pt,4):0,fr=h.Qa,Vr=0;4>Vr;++Vr){if(fr.Cb){var Yr=fr.Zb[Vr];fr.Fb||(Yr+=ce)}else{if(0<Vr){h.pb[Vr]=h.pb[0];continue}Yr=ce}var Sr=h.pb[Vr];Sr.Sc[0]=lo[el(Yr+ut,127)],Sr.Sc[1]=Ms[el(Yr+0,127)],Sr.Eb[0]=2*lo[el(Yr+Qe,127)],Sr.Eb[1]=101581*Ms[el(Yr+Dt,127)]>>16,8>Sr.Eb[1]&&(Sr.Eb[1]=8),Sr.Qc[0]=lo[el(Yr+zt,117)],Sr.Qc[1]=Ms[el(Yr+Pt,127)],Sr.lc=Yr+Pt}if(!mt.Rb)return rs(h,4,"Not a key frame.");for(It(ht),mt=h.Pa,ce=0;4>ce;++ce){for(ut=0;8>ut;++ut)for(Qe=0;3>Qe;++Qe)for(Dt=0;11>Dt;++Dt)zt=yr(ht,jc[ce][ut][Qe][Dt])?st(ht,8):Wc[ce][ut][Qe][Dt],mt.Wc[ce][ut].Yb[Qe][Dt]=zt;for(ut=0;17>ut;++ut)mt.Xc[ce][ut]=mt.Wc[ce][gA[ut]]}return h.kc=It(ht),h.kc&&(h.Bd=st(ht,8)),h.cb=1}function Ro(h,Q,ce,Qe,ut,ht,mt){var Dt=Q[ut].Yb[ce];for(ce=0;16>ut;++ut){if(!yr(h,Dt[ce+0]))return ut;for(;!yr(h,Dt[ce+1]);)if(Dt=Q[++ut].Yb[0],ce=0,ut==16)return 16;var Pt=Q[ut+1].Yb;if(yr(h,Dt[ce+2])){var zt=h,fr=0;if(yr(zt,(Yr=Dt)[(Vr=ce)+3]))if(yr(zt,Yr[Vr+6])){for(Dt=0,Vr=2*(fr=yr(zt,Yr[Vr+8]))+(Yr=yr(zt,Yr[Vr+9+fr])),fr=0,Yr=dl[Vr];Yr[Dt];++Dt)fr+=fr+yr(zt,Yr[Dt]);fr+=3+(8<<Vr)}else yr(zt,Yr[Vr+7])?(fr=7+2*yr(zt,165),fr+=yr(zt,145)):fr=5+yr(zt,159);else fr=yr(zt,Yr[Vr+4])?3+yr(zt,Yr[Vr+5]):2;Dt=Pt[2]}else fr=1,Dt=Pt[1];Pt=mt+_c[ut],0>(zt=h).b&&ur(zt);var Vr,Yr=zt.b,Sr=(Vr=zt.Ca>>1)-(zt.I>>Yr)>>31;--zt.b,zt.Ca+=Sr,zt.Ca|=1,zt.I-=(Vr+1&Sr)<<Yr,ht[Pt]=((fr^Sr)-Sr)*Qe[(0<ut)+0]}return 16}function po(h){var Q=h.rb[h.sb-1];Q.la=0,Q.Na=0,ne(h.zc,0,0,h.zc.length),h.ja=0}function Cl(h,Q){if(h==null)return 0;if(Q==null)return rs(h,2,"NULL VP8Io parameter in VP8Decode().");if(!h.cb&&!wo(h,Q))return 0;if(u(h.cb),Q.ac==null||Q.ac(Q)){Q.ob&&(h.L=0);var ce=ar[h.L];if(h.L==2?(h.yb=0,h.zb=0):(h.yb=Q.v-ce>>4,h.zb=Q.j-ce>>4,0>h.yb&&(h.yb=0),0>h.zb&&(h.zb=0)),h.Va=Q.o+15+ce>>4,h.Hb=Q.va+15+ce>>4,h.Hb>h.za&&(h.Hb=h.za),h.Va>h.Ub&&(h.Va=h.Ub),0<h.L){var Qe=h.ed;for(ce=0;4>ce;++ce){var ut;if(h.Qa.Cb){var ht=h.Qa.Lb[ce];h.Qa.Fb||(ht+=Qe.Tb)}else ht=Qe.Tb;for(ut=0;1>=ut;++ut){var mt=h.gd[ce][ut],Dt=ht;if(Qe.Pc&&(Dt+=Qe.vd[0],ut&&(Dt+=Qe.od[0])),0<(Dt=0>Dt?0:63<Dt?63:Dt)){var Pt=Dt;0<Qe.wb&&(Pt=4<Qe.wb?Pt>>2:Pt>>1)>9-Qe.wb&&(Pt=9-Qe.wb),1>Pt&&(Pt=1),mt.dd=Pt,mt.tc=2*Dt+Pt,mt.ld=40<=Dt?2:15<=Dt?1:0}else mt.tc=0;mt.La=ut}}}ce=0}else rs(h,6,"Frame setup failed"),ce=h.a;if(ce=ce==0){if(ce){h.$c=0,0<h.Aa||(h.Ic=qr);e:{ce=h.Ic,Qe=4*(Pt=h.za);var zt=32*Pt,fr=Pt+1,Vr=0<h.L?Pt*(0<h.Aa?2:1):0,Yr=(h.Aa==2?2:1)*Pt;if((mt=Qe+832+(ut=3*(16*ce+ar[h.L])/2*zt)+(ht=h.Fa!=null&&0<h.Fa.length?h.Kc.c*h.Kc.i:0))!=mt)ce=0;else{if(mt>h.Vb){if(h.Vb=0,h.Ec=Z(mt),h.Fc=0,h.Ec==null){ce=rs(h,1,"no memory during frame initialization.");break e}h.Vb=mt}mt=h.Ec,Dt=h.Fc,h.Ac=mt,h.Bc=Dt,Dt+=Qe,h.Gd=ge(zt,fu),h.Hd=0,h.rb=ge(fr+1,al),h.sb=1,h.wa=Vr?ge(Vr,ts):null,h.Y=0,h.D.Nb=0,h.D.wa=h.wa,h.D.Y=h.Y,0<h.Aa&&(h.D.Y+=Pt),u(!0),h.oc=mt,h.pc=Dt,Dt+=832,h.ya=ge(Yr,Vo),h.aa=0,h.D.ya=h.ya,h.D.aa=h.aa,h.Aa==2&&(h.D.aa+=Pt),h.R=16*Pt,h.B=8*Pt,Pt=(zt=ar[h.L])*h.R,zt=zt/2*h.B,h.sa=mt,h.ta=Dt+Pt,h.qa=h.sa,h.ra=h.ta+16*ce*h.R+zt,h.Ha=h.qa,h.Ia=h.ra+8*ce*h.B+zt,h.$c=0,Dt+=ut,h.mb=ht?mt:null,h.nb=ht?Dt:null,u(Dt+ht<=h.Fc+h.Vb),po(h),ne(h.Ac,h.Bc,0,Qe),ce=1}}if(ce){if(Q.ka=0,Q.y=h.sa,Q.O=h.ta,Q.f=h.qa,Q.N=h.ra,Q.ea=h.Ha,Q.Vd=h.Ia,Q.fa=h.R,Q.Rc=h.B,Q.F=null,Q.J=0,!Ft){for(ce=-255;255>=ce;++ce)Ye[255+ce]=0>ce?-ce:ce;for(ce=-1020;1020>=ce;++ce)Je[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)_t[255+ce]=0>ce?0:255<ce?255:ce;Ft=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]=ws,tc[3]=ol,tc[4]=ds,tc[5]=za,tc[6]=zo,ce=1}else ce=0}ce&&(ce=function(Sr,Zn){for(Sr.M=0;Sr.M<Sr.Va;++Sr.M){var Pn,Pr=Sr.Jc[Sr.M&Sr.Xb],Dr=Sr.m,Wn=Sr;for(Pn=0;Pn<Wn.za;++Pn){var vi=Dr,ei=Wn,Vi=ei.Ac,Gi=ei.Bc+4*Pn,ga=ei.zc,Yi=ei.ya[ei.aa+Pn];if(ei.Qa.Bb?Yi.$b=yr(vi,ei.Pa.jb[0])?2+yr(vi,ei.Pa.jb[2]):yr(vi,ei.Pa.jb[1]):Yi.$b=0,ei.kc&&(Yi.Ad=yr(vi,ei.Bd)),Yi.Za=!yr(vi,145)+0,Yi.Za){var Ss=Yi.Ob,Ds=0;for(ei=0;4>ei;++ei){var fs,cs=ga[0+ei];for(fs=0;4>fs;++fs){cs=Dc[Vi[Gi+fs]][cs];for(var Ls=Fc[yr(vi,cs[0])];0<Ls;)Ls=Fc[2*Ls+yr(vi,cs[Ls])];cs=-Ls,Vi[Gi+fs]=cs}M(Ss,Ds,Vi,Gi,4),Ds+=4,ga[0+ei]=cs}}else cs=yr(vi,156)?yr(vi,128)?1:3:yr(vi,163)?2:0,Yi.Ob[0]=cs,ne(Vi,Gi,cs,4),ne(ga,0,cs,4);Yi.Dd=yr(vi,142)?yr(vi,114)?yr(vi,183)?1:3:2:0}if(Wn.m.Ka)return rs(Sr,7,"Premature end-of-partition0 encountered.");for(;Sr.ja<Sr.za;++Sr.ja){if(Wn=Pr,vi=(Dr=Sr).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,Va;if(vi=Vi,Vi=Wn,Gi=Dr.Pa.Xc,ga=Dr.ya[Dr.aa+Dr.ja],Yi=Dr.pb[ga.$b],ei=ga.ad,Ss=0,Ds=Dr.rb[Dr.sb-1],cs=fs=0,ne(ei,Ss,0,384),ga.Za)var tl=0,lu=Gi[3];else{Ls=Z(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,ei,Ss);else{var uu=Ls[0]+3>>3;for(Ls=0;256>Ls;Ls+=16)ei[Ss+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=Va=0;4>uu;++uu)uo=uo>>1|(Su=(rl=Fo(Vi,lu,rl=Su+(1&uo),Yi.Sc,tl,ei,Ss))>tl)<<7,Va=Va<<2|(3<rl?3:1<rl?2:ei[Ss+0]!=0),Ss+=16;uo>>=4,Bu=Bu>>1|Su<<7,fs=(fs<<8|Va)>>>0}for(lu=uo,tl=Bu>>4,Us=0;4>Us;Us+=2){for(Va=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,ei,Ss)))<<3,Va=Va<<2|(3<rl?3:1<rl?2:ei[Ss+0]!=0),Ss+=16;uo>>=2,Bu=Bu>>1|Su<<5}cs|=Va<<4*Us,lu|=uo<<4<<Us,tl|=(240&Bu)<<Us}vi.la=lu,Ds.la=tl,ga.Hc=fs,ga.Gc=cs,ga.ia=43690&cs?0:Yi.ia,Gi=!(fs|cs)}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 rs(Sr,7,"Premature end-of-file encountered.")}if(po(Sr),Dr=Zn,Wn=1,Pn=(Pr=Sr).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=(Va=Pr.D).Nb,vi=(cs=ar[Pr.L])*Pr.R,Vi=cs/2*Pr.B,Ls=16*Pn*Pr.R,uu=8*Pn*Pr.B,Gi=Pr.sa,ga=Pr.ta-vi+Ls,Yi=Pr.qa,ei=Pr.ra-Vi+uu,Ss=Pr.Ha,Ds=Pr.Ia-Vi+uu,Bu=(uo=Va.M)==0,fs=uo>=Pr.Va-1,Pr.Aa==2&&hc(Pr,Va),Va.uc)for(Su=(rl=Pr).D.M,u(rl.D.uc),Va=rl.yb;Va<rl.Hb;++Va){tl=Va,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(Va=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):(Va-=cs,Dr.y=Gi,Dr.O=ga,Dr.f=Yi,Dr.N=ei,Dr.ea=Ss,Dr.W=Ds),fs||(uo-=cs),uo>Dr.o&&(uo=Dr.o),Dr.F=null,Dr.J=null,Pr.Fa!=null&&0<Pr.Fa.length&&Va<uo&&(Dr.J=fc(Pr,Dr,Va,uo-Va),Dr.F=Pr.mb,Dr.F==null&&Dr.F.length==0)){Wn=rs(Pr,3,"Could not decode alpha data.");break e}Va<Dr.j&&(cs=Dr.j-Va,Va=Dr.j,u(!(1&cs)),Dr.O+=Pr.R*cs,Dr.N+=Pr.B*(cs>>1),Dr.W+=Pr.B*(cs>>1),Dr.F!=null&&(Dr.J+=Dr.width*cs)),Va<uo&&(Dr.O+=Dr.v,Dr.N+=Dr.v>>1,Dr.W+=Dr.v>>1,Dr.F!=null&&(Dr.J+=Dr.v),Dr.ka=Va-Dr.j,Dr.U=Dr.va-Dr.v,Dr.T=uo-Va,Wn=Dr.put(Dr))}Pn+1!=Pr.Ic||fs||(M(Pr.sa,Pr.ta-vi,Gi,ga+16*Pr.R,vi),M(Pr.qa,Pr.ra-Vi,Yi,ei+8*Pr.B,Vi),M(Pr.Ha,Pr.Ia-Vi,Ss,Ds+8*Pr.B,Vi))}if(!Wn)return rs(Sr,6,"Output aborted.")}return 1}(h,Q)),Q.bc!=null&&Q.bc(Q),ce&=1}return ce?(h.cb=0,ce):0}function Ko(h,Q,ce,Qe,ut){ut=h[Q+ce+32*Qe]+(ut>>3),h[Q+ce+32*Qe]=-256&ut?0>ut?0:255:ut}function Vl(h,Q,ce,Qe,ut,ht){Ko(h,Q,0,ce,Qe+ut),Ko(h,Q,1,ce,Qe+ht),Ko(h,Q,2,ce,Qe-ht),Ko(h,Q,3,ce,Qe-ut)}function No(h){return(20091*h>>16)+h}function Yl(h,Q,ce,Qe){var ut,ht=0,mt=Z(16);for(ut=0;4>ut;++ut){var Dt=h[Q+0]+h[Q+8],Pt=h[Q+0]-h[Q+8],zt=(35468*h[Q+4]>>16)-No(h[Q+12]),fr=No(h[Q+4])+(35468*h[Q+12]>>16);mt[ht+0]=Dt+fr,mt[ht+1]=Pt+zt,mt[ht+2]=Pt-zt,mt[ht+3]=Dt-fr,ht+=4,Q++}for(ut=ht=0;4>ut;++ut)Dt=(h=mt[ht+0]+4)+mt[ht+8],Pt=h-mt[ht+8],zt=(35468*mt[ht+4]>>16)-No(mt[ht+12]),Ko(ce,Qe,0,0,Dt+(fr=No(mt[ht+4])+(35468*mt[ht+12]>>16))),Ko(ce,Qe,1,0,Pt+zt),Ko(ce,Qe,2,0,Pt-zt),Ko(ce,Qe,3,0,Dt-fr),ht++,Qe+=32}function $u(h,Q,ce,Qe){var ut=h[Q+0]+4,ht=35468*h[Q+4]>>16,mt=No(h[Q+4]),Dt=35468*h[Q+1]>>16;Vl(ce,Qe,0,ut+mt,h=No(h[Q+1]),Dt),Vl(ce,Qe,1,ut+ht,h,Dt),Vl(ce,Qe,2,ut-ht,h,Dt),Vl(ce,Qe,3,ut-mt,h,Dt)}function hu(h,Q,ce,Qe,ut){Yl(h,Q,ce,Qe),ut&&Yl(h,Q+16,ce,Qe+4)}function sl(h,Q,ce,Qe){Cu(h,Q+0,ce,Qe,1),Cu(h,Q+32,ce,Qe+128,1)}function pu(h,Q,ce,Qe){var ut;for(h=h[Q+0]+4,ut=0;4>ut;++ut)for(Q=0;4>Q;++Q)Ko(ce,Qe,Q,ut,h)}function Tu(h,Q,ce,Qe){h[Q+0]&&cl(h,Q+0,ce,Qe),h[Q+16]&&cl(h,Q+16,ce,Qe+4),h[Q+32]&&cl(h,Q+32,ce,Qe+128),h[Q+48]&&cl(h,Q+48,ce,Qe+128+4)}function Ku(h,Q,ce,Qe){var ut,ht=Z(16);for(ut=0;4>ut;++ut){var mt=h[Q+0+ut]+h[Q+12+ut],Dt=h[Q+4+ut]+h[Q+8+ut],Pt=h[Q+4+ut]-h[Q+8+ut],zt=h[Q+0+ut]-h[Q+12+ut];ht[0+ut]=mt+Dt,ht[8+ut]=mt-Dt,ht[4+ut]=zt+Pt,ht[12+ut]=zt-Pt}for(ut=0;4>ut;++ut)mt=(h=ht[0+4*ut]+3)+ht[3+4*ut],Dt=ht[1+4*ut]+ht[2+4*ut],Pt=ht[1+4*ut]-ht[2+4*ut],zt=h-ht[3+4*ut],ce[Qe+0]=mt+Dt>>3,ce[Qe+16]=zt+Pt>>3,ce[Qe+32]=mt-Dt>>3,ce[Qe+48]=zt-Pt>>3,Qe+=64}function mu(h,Q,ce){var Qe,ut=Q-32,ht=Rr,mt=255-h[ut-1];for(Qe=0;Qe<ce;++Qe){var Dt,Pt=ht,zt=mt+h[Q-1];for(Dt=0;Dt<ce;++Dt)h[Q+Dt]=Pt[zt+h[ut+Dt]];Q+=32}}function zu(h,Q){mu(h,Q,4)}function Nl(h,Q){mu(h,Q,8)}function Gu(h,Q){mu(h,Q,16)}function kl(h,Q){var ce;for(ce=0;16>ce;++ce)M(h,Q+32*ce,h,Q-32,16)}function gu(h,Q){var ce;for(ce=16;0<ce;--ce)ne(h,Q,h[Q-1],16),Q+=32}function Io(h,Q,ce){var Qe;for(Qe=0;16>Qe;++Qe)ne(Q,ce+32*Qe,h,16)}function vu(h,Q){var ce,Qe=16;for(ce=0;16>ce;++ce)Qe+=h[Q-1+32*ce]+h[Q+ce-32];Io(Qe>>5,h,Q)}function ko(h,Q){var ce,Qe=8;for(ce=0;16>ce;++ce)Qe+=h[Q-1+32*ce];Io(Qe>>4,h,Q)}function yc(h,Q){var ce,Qe=8;for(ce=0;16>ce;++ce)Qe+=h[Q+ce-32];Io(Qe>>4,h,Q)}function Zu(h,Q){Io(128,h,Q)}function Pa(h,Q,ce){return h+2*Q+ce+2>>2}function Fu(h,Q){var ce,Qe=Q-32;for(Qe=new Uint8Array([Pa(h[Qe-1],h[Qe+0],h[Qe+1]),Pa(h[Qe+0],h[Qe+1],h[Qe+2]),Pa(h[Qe+1],h[Qe+2],h[Qe+3]),Pa(h[Qe+2],h[Qe+3],h[Qe+4])]),ce=0;4>ce;++ce)M(h,Q+32*ce,Qe,0,Qe.length)}function Du(h,Q){var ce=h[Q-1],Qe=h[Q-1+32],ut=h[Q-1+64],ht=h[Q-1+96];Wr(h,Q+0,16843009*Pa(h[Q-1-32],ce,Qe)),Wr(h,Q+32,16843009*Pa(ce,Qe,ut)),Wr(h,Q+64,16843009*Pa(Qe,ut,ht)),Wr(h,Q+96,16843009*Pa(ut,ht,ht))}function _l(h,Q){var ce,Qe=4;for(ce=0;4>ce;++ce)Qe+=h[Q+ce-32]+h[Q-1+32*ce];for(Qe>>=3,ce=0;4>ce;++ce)ne(h,Q+32*ce,Qe,4)}function Lu(h,Q){var ce=h[Q-1+0],Qe=h[Q-1+32],ut=h[Q-1+64],ht=h[Q-1-32],mt=h[Q+0-32],Dt=h[Q+1-32],Pt=h[Q+2-32],zt=h[Q+3-32];h[Q+0+96]=Pa(Qe,ut,h[Q-1+96]),h[Q+1+96]=h[Q+0+64]=Pa(ce,Qe,ut),h[Q+2+96]=h[Q+1+64]=h[Q+0+32]=Pa(ht,ce,Qe),h[Q+3+96]=h[Q+2+64]=h[Q+1+32]=h[Q+0+0]=Pa(mt,ht,ce),h[Q+3+64]=h[Q+2+32]=h[Q+1+0]=Pa(Dt,mt,ht),h[Q+3+32]=h[Q+2+0]=Pa(Pt,Dt,mt),h[Q+3+0]=Pa(zt,Pt,Dt)}function yu(h,Q){var ce=h[Q+1-32],Qe=h[Q+2-32],ut=h[Q+3-32],ht=h[Q+4-32],mt=h[Q+5-32],Dt=h[Q+6-32],Pt=h[Q+7-32];h[Q+0+0]=Pa(h[Q+0-32],ce,Qe),h[Q+1+0]=h[Q+0+32]=Pa(ce,Qe,ut),h[Q+2+0]=h[Q+1+32]=h[Q+0+64]=Pa(Qe,ut,ht),h[Q+3+0]=h[Q+2+32]=h[Q+1+64]=h[Q+0+96]=Pa(ut,ht,mt),h[Q+3+32]=h[Q+2+64]=h[Q+1+96]=Pa(ht,mt,Dt),h[Q+3+64]=h[Q+2+96]=Pa(mt,Dt,Pt),h[Q+3+96]=Pa(Dt,Pt,Pt)}function Xl(h,Q){var ce=h[Q-1+0],Qe=h[Q-1+32],ut=h[Q-1+64],ht=h[Q-1-32],mt=h[Q+0-32],Dt=h[Q+1-32],Pt=h[Q+2-32],zt=h[Q+3-32];h[Q+0+0]=h[Q+1+64]=ht+mt+1>>1,h[Q+1+0]=h[Q+2+64]=mt+Dt+1>>1,h[Q+2+0]=h[Q+3+64]=Dt+Pt+1>>1,h[Q+3+0]=Pt+zt+1>>1,h[Q+0+96]=Pa(ut,Qe,ce),h[Q+0+64]=Pa(Qe,ce,ht),h[Q+0+32]=h[Q+1+96]=Pa(ce,ht,mt),h[Q+1+32]=h[Q+2+96]=Pa(ht,mt,Dt),h[Q+2+32]=h[Q+3+96]=Pa(mt,Dt,Pt),h[Q+3+32]=Pa(Dt,Pt,zt)}function Jl(h,Q){var ce=h[Q+0-32],Qe=h[Q+1-32],ut=h[Q+2-32],ht=h[Q+3-32],mt=h[Q+4-32],Dt=h[Q+5-32],Pt=h[Q+6-32],zt=h[Q+7-32];h[Q+0+0]=ce+Qe+1>>1,h[Q+1+0]=h[Q+0+64]=Qe+ut+1>>1,h[Q+2+0]=h[Q+1+64]=ut+ht+1>>1,h[Q+3+0]=h[Q+2+64]=ht+mt+1>>1,h[Q+0+32]=Pa(ce,Qe,ut),h[Q+1+32]=h[Q+0+96]=Pa(Qe,ut,ht),h[Q+2+32]=h[Q+1+96]=Pa(ut,ht,mt),h[Q+3+32]=h[Q+2+96]=Pa(ht,mt,Dt),h[Q+3+64]=Pa(mt,Dt,Pt),h[Q+3+96]=Pa(Dt,Pt,zt)}function Bl(h,Q){var ce=h[Q-1+0],Qe=h[Q-1+32],ut=h[Q-1+64],ht=h[Q-1+96];h[Q+0+0]=ce+Qe+1>>1,h[Q+2+0]=h[Q+0+32]=Qe+ut+1>>1,h[Q+2+32]=h[Q+0+64]=ut+ht+1>>1,h[Q+1+0]=Pa(ce,Qe,ut),h[Q+3+0]=h[Q+1+32]=Pa(Qe,ut,ht),h[Q+3+32]=h[Q+1+64]=Pa(ut,ht,ht),h[Q+3+64]=h[Q+2+64]=h[Q+0+96]=h[Q+1+96]=h[Q+2+96]=h[Q+3+96]=ht}function Ho(h,Q){var ce=h[Q-1+0],Qe=h[Q-1+32],ut=h[Q-1+64],ht=h[Q-1+96],mt=h[Q-1-32],Dt=h[Q+0-32],Pt=h[Q+1-32],zt=h[Q+2-32];h[Q+0+0]=h[Q+2+32]=ce+mt+1>>1,h[Q+0+32]=h[Q+2+64]=Qe+ce+1>>1,h[Q+0+64]=h[Q+2+96]=ut+Qe+1>>1,h[Q+0+96]=ht+ut+1>>1,h[Q+3+0]=Pa(Dt,Pt,zt),h[Q+2+0]=Pa(mt,Dt,Pt),h[Q+1+0]=h[Q+3+32]=Pa(ce,mt,Dt),h[Q+1+32]=h[Q+3+64]=Pa(Qe,ce,mt),h[Q+1+64]=h[Q+3+96]=Pa(ut,Qe,ce),h[Q+1+96]=Pa(ht,ut,Qe)}function ws(h,Q){var ce;for(ce=0;8>ce;++ce)M(h,Q+32*ce,h,Q-32,8)}function ol(h,Q){var ce;for(ce=0;8>ce;++ce)ne(h,Q,h[Q-1],8),Q+=32}function qo(h,Q,ce){var Qe;for(Qe=0;8>Qe;++Qe)ne(Q,ce+32*Qe,h,8)}function ql(h,Q){var ce,Qe=8;for(ce=0;8>ce;++ce)Qe+=h[Q+ce-32]+h[Q-1+32*ce];qo(Qe>>4,h,Q)}function za(h,Q){var ce,Qe=4;for(ce=0;8>ce;++ce)Qe+=h[Q+ce-32];qo(Qe>>3,h,Q)}function ds(h,Q){var ce,Qe=4;for(ce=0;8>ce;++ce)Qe+=h[Q-1+32*ce];qo(Qe>>3,h,Q)}function zo(h,Q){qo(128,h,Q)}function ll(h,Q,ce){var Qe=h[Q-ce],ut=h[Q+0],ht=3*(ut-Qe)+gr[1020+h[Q-2*ce]-h[Q+ce]],mt=Nr[112+(ht+4>>3)];h[Q-ce]=Rr[255+Qe+Nr[112+(ht+3>>3)]],h[Q+0]=Rr[255+ut-mt]}function Sl(h,Q,ce,Qe){var ut=h[Q+0],ht=h[Q+ce];return Un[255+h[Q-2*ce]-h[Q-ce]]>Qe||Un[255+ht-ut]>Qe}function Ru(h,Q,ce,Qe){return 4*Un[255+h[Q-ce]-h[Q+0]]+Un[255+h[Q-2*ce]-h[Q+ce]]<=Qe}function Ou(h,Q,ce,Qe,ut){var ht=h[Q-3*ce],mt=h[Q-2*ce],Dt=h[Q-ce],Pt=h[Q+0],zt=h[Q+ce],fr=h[Q+2*ce],Vr=h[Q+3*ce];return 4*Un[255+Dt-Pt]+Un[255+mt-zt]>Qe?0:Un[255+h[Q-4*ce]-ht]<=ut&&Un[255+ht-mt]<=ut&&Un[255+mt-Dt]<=ut&&Un[255+Vr-fr]<=ut&&Un[255+fr-zt]<=ut&&Un[255+zt-Pt]<=ut}function Pu(h,Q,ce,Qe){var ut=2*Qe+1;for(Qe=0;16>Qe;++Qe)Ru(h,Q+Qe,ce,ut)&&ll(h,Q+Qe,ce)}function hl(h,Q,ce,Qe){var ut=2*Qe+1;for(Qe=0;16>Qe;++Qe)Ru(h,Q+Qe*ce,1,ut)&&ll(h,Q+Qe*ce,1)}function Il(h,Q,ce,Qe){var ut;for(ut=3;0<ut;--ut)Pu(h,Q+=4*ce,ce,Qe)}function Ic(h,Q,ce,Qe){var ut;for(ut=3;0<ut;--ut)hl(h,Q+=4,ce,Qe)}function bu(h,Q,ce,Qe,ut,ht,mt,Dt){for(ht=2*ht+1;0<ut--;){if(Ou(h,Q,ce,ht,mt))if(Sl(h,Q,ce,Dt))ll(h,Q,ce);else{var Pt=h,zt=Q,fr=ce,Vr=Pt[zt-2*fr],Yr=Pt[zt-fr],Sr=Pt[zt+0],Zn=Pt[zt+fr],Pn=Pt[zt+2*fr],Pr=27*(Wn=gr[1020+3*(Sr-Yr)+gr[1020+Vr-Zn]])+63>>7,Dr=18*Wn+63>>7,Wn=9*Wn+63>>7;Pt[zt-3*fr]=Rr[255+Pt[zt-3*fr]+Wn],Pt[zt-2*fr]=Rr[255+Vr+Dr],Pt[zt-fr]=Rr[255+Yr+Pr],Pt[zt+0]=Rr[255+Sr-Pr],Pt[zt+fr]=Rr[255+Zn-Dr],Pt[zt+2*fr]=Rr[255+Pn-Wn]}Q+=Qe}}function Ml(h,Q,ce,Qe,ut,ht,mt,Dt){for(ht=2*ht+1;0<ut--;){if(Ou(h,Q,ce,ht,mt))if(Sl(h,Q,ce,Dt))ll(h,Q,ce);else{var Pt=h,zt=Q,fr=ce,Vr=Pt[zt-fr],Yr=Pt[zt+0],Sr=Pt[zt+fr],Zn=Nr[112+((Pn=3*(Yr-Vr))+4>>3)],Pn=Nr[112+(Pn+3>>3)],Pr=Zn+1>>1;Pt[zt-2*fr]=Rr[255+Pt[zt-2*fr]+Pr],Pt[zt-fr]=Rr[255+Vr+Pn],Pt[zt+0]=Rr[255+Yr-Zn],Pt[zt+fr]=Rr[255+Sr-Pr]}Q+=Qe}}function lc(h,Q,ce,Qe,ut,ht){bu(h,Q,ce,1,16,Qe,ut,ht)}function Go(h,Q,ce,Qe,ut,ht){bu(h,Q,1,ce,16,Qe,ut,ht)}function kc(h,Q,ce,Qe,ut,ht){var mt;for(mt=3;0<mt;--mt)Ml(h,Q+=4*ce,ce,1,16,Qe,ut,ht)}function uc(h,Q,ce,Qe,ut,ht){var mt;for(mt=3;0<mt;--mt)Ml(h,Q+=4,1,ce,16,Qe,ut,ht)}function Mc(h,Q,ce,Qe,ut,ht,mt,Dt){bu(h,Q,ut,1,8,ht,mt,Dt),bu(ce,Qe,ut,1,8,ht,mt,Dt)}function cc(h,Q,ce,Qe,ut,ht,mt,Dt){bu(h,Q,1,ut,8,ht,mt,Dt),bu(ce,Qe,1,ut,8,ht,mt,Dt)}function Nu(h,Q,ce,Qe,ut,ht,mt,Dt){Ml(h,Q+4*ut,ut,1,8,ht,mt,Dt),Ml(ce,Qe+4*ut,ut,1,8,ht,mt,Dt)}function ku(h,Q,ce,Qe,ut,ht,mt,Dt){Ml(h,Q+4,1,ut,8,ht,mt,Dt),Ml(ce,Qe+4,1,ut,8,ht,mt,Dt)}function Ac(){this.ba=new Mn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xi,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 Ua,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 Ua,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xu(h,Q,ce,Qe,ut,ht,mt){for(h=h==null?0:h[Q+0],Q=0;Q<mt;++Q)ut[ht+Q]=h+ce[Qe+Q]&255,h=ut[ht+Q]}function eu(h,Q,ce,Qe,ut,ht,mt){var Dt;if(h==null)xu(null,null,ce,Qe,ut,ht,mt);else for(Dt=0;Dt<mt;++Dt)ut[ht+Dt]=h[Q+Dt]+ce[Qe+Dt]&255}function tu(h,Q,ce,Qe,ut,ht,mt){if(h==null)xu(null,null,ce,Qe,ut,ht,mt);else{var Dt,Pt=h[Q+0],zt=Pt,fr=Pt;for(Dt=0;Dt<mt;++Dt)zt=fr+(Pt=h[Q+Dt])-zt,fr=ce[Qe+Dt]+(-256&zt?0>zt?0:255:zt)&255,zt=Pt,ut[ht+Dt]=fr}}function fc(h,Q,ce,Qe){var ut=Q.width,ht=Q.o;if(u(h!=null&&Q!=null),0>ce||0>=Qe||ce+Qe>ht)return null;if(!h.Cc){if(h.ga==null){var mt;if(h.ga=new wu,(mt=h.ga==null)||(mt=Q.width*Q.o,u(h.Gb.length==0),h.Gb=Z(mt),h.Uc=0,h.Gb==null?mt=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,mt=1),mt=!mt),!mt){mt=h.ga;var Dt=h.Fa,Pt=h.P,zt=h.qc,fr=h.mb,Vr=h.nb,Yr=Pt+1,Sr=zt-1,Zn=mt.l;if(u(Dt!=null&&fr!=null&&Q!=null),rc[0]=null,rc[1]=xu,rc[2]=eu,rc[3]=tu,mt.ca=fr,mt.tb=Vr,mt.c=Q.width,mt.i=Q.height,u(0<mt.c&&0<mt.i),1>=zt)Q=0;else if(mt.$a=Dt[Pt+0]>>0&3,mt.Z=Dt[Pt+0]>>2&3,mt.Lc=Dt[Pt+0]>>4&3,Pt=Dt[Pt+0]>>6&3,0>mt.$a||1<mt.$a||4<=mt.Z||1<mt.Lc||Pt)Q=0;else if(Zn.put=Sa,Zn.ac=$i,Zn.bc=Ia,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=bs();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,Dt,Yr,Sr),!Hs(mt.c,mt.i,1,Q,null)||(Q.ab==1&&Q.gc[0].hc==3&&wa(Q.s)?(mt.ic=1,Dt=Q.c*Q.i,Q.Ta=null,Q.Ua=0,Q.V=Z(Dt),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=Sr>=mt.c*mt.i;mt=!Q}if(mt)return null;h.ga.Lc!=1?h.Ga=0:Qe=ht-ce}u(h.ga!=null),u(ce+Qe<=ht);e:{if(Q=(Dt=h.ga).c,ht=Dt.l.o,Dt.$a==0){if(Yr=h.rc,Sr=h.Vc,Zn=h.Fa,Pt=h.P+1+ce*Q,zt=h.mb,fr=h.nb+ce*Q,u(Pt<=h.P+h.qc),Dt.Z!=0)for(u(rc[Dt.Z]!=null),mt=0;mt<Qe;++mt)rc[Dt.Z](Yr,Sr,Zn,Pt,zt,fr,Q),Yr=zt,Sr=fr,fr+=Q,Pt+=Q;else for(mt=0;mt<Qe;++mt)M(zt,fr,Zn,Pt,Q),Yr=zt,Sr=fr,fr+=Q,Pt+=Q;h.rc=Yr,h.Vc=Sr}else{if(u(Dt.mc!=null),Q=ce+Qe,u((mt=Dt.mc)!=null),u(Q<=mt.i),mt.C>=Q)Q=1;else if(Dt.ic||ln(),Dt.ic){Dt=mt.V,Yr=mt.Ba,Sr=mt.c;var Pn=mt.i,Pr=(Zn=1,Pt=mt.$/Sr,zt=mt.$%Sr,fr=mt.m,Vr=mt.s,mt.$),Dr=Sr*Pn,Wn=Sr*Q,vi=Vr.wc,ei=Pr<Wn?ls(Vr,zt,Pt):null;u(Pr<=Dr),u(Q<=Pn),u(wa(Vr));t:for(;;){for(;!fr.h&&Pr<Wn;){if(zt&vi||(ei=ls(Vr,zt,Pt)),u(ei!=null),Vt(fr),256>(Pn=ai(ei.G[0],ei.H[0],fr)))Dt[Yr+Pr]=Pn,++Pr,++zt>=Sr&&(zt=0,++Pt<=Q&&!(Pt%16)&&us(mt,Pt));else{if(!(280>Pn)){Zn=0;break t}Pn=Ta(Pn-256,fr);var Vi,Gi=ai(ei.G[4],ei.H[4],fr);if(Vt(fr),!(Pr>=(Gi=Ba(Sr,Gi=Ta(Gi,fr)))&&Dr-Pr>=Pn)){Zn=0;break t}for(Vi=0;Vi<Pn;++Vi)Dt[Yr+Pr+Vi]=Dt[Yr+Pr+Vi-Gi];for(Pr+=Pn,zt+=Pn;zt>=Sr;)zt-=Sr,++Pt<=Q&&!(Pt%16)&&us(mt,Pt);Pr<Wn&&zt&vi&&(ei=ls(Vr,zt,Pt))}u(fr.h==wt(fr))}us(mt,Pt>Q?Q:Pt);break t}!Zn||fr.h&&Pr<Dr?(Zn=0,mt.a=fr.h?5:3):mt.$=Pr,Q=Zn}else Q=ca(mt,mt.V,mt.Ba,mt.c,mt.i,Q,Xs);if(!Q){Qe=0;break e}}ce+Qe>=ht&&(h.Cc=1),Qe=1}if(!Qe)return null;if(h.Cc&&((Qe=h.ga)!=null&&(Qe.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+ce*ut}function de(h,Q,ce,Qe,ut,ht){for(;0<ut--;){var mt,Dt=h,Pt=Q+(ce?1:0),zt=h,fr=Q+(ce?0:3);for(mt=0;mt<Qe;++mt){var Vr=zt[fr+4*mt];Vr!=255&&(Vr*=32897,Dt[Pt+4*mt+0]=Dt[Pt+4*mt+0]*Vr>>23,Dt[Pt+4*mt+1]=Dt[Pt+4*mt+1]*Vr>>23,Dt[Pt+4*mt+2]=Dt[Pt+4*mt+2]*Vr>>23)}Q+=ht}}function Et(h,Q,ce,Qe,ut){for(;0<Qe--;){var ht;for(ht=0;ht<ce;++ht){var mt=h[Q+2*ht+0],Dt=15&(zt=h[Q+2*ht+1]),Pt=4369*Dt,zt=(240&zt|zt>>4)*Pt>>16;h[Q+2*ht+0]=(240&mt|mt>>4)*Pt>>16&240|(15&mt|mt<<4)*Pt>>16>>4&15,h[Q+2*ht+1]=240&zt|Dt}Q+=ut}}function mr(h,Q,ce,Qe,ut,ht,mt,Dt){var Pt,zt,fr=255;for(zt=0;zt<ut;++zt){for(Pt=0;Pt<Qe;++Pt){var Vr=h[Q+Pt];ht[mt+4*Pt]=Vr,fr&=Vr}Q+=ce,mt+=Dt}return fr!=255}function Lr(h,Q,ce,Qe,ut){var ht;for(ht=0;ht<ut;++ht)ce[Qe+ht]=h[Q+ht]>>8}function ln(){j=de,q=Et,Ae=mr,Re=Lr}function $n(h,Q,ce){Br[h]=function(Qe,ut,ht,mt,Dt,Pt,zt,fr,Vr,Yr,Sr,Zn,Pn,Pr,Dr,Wn,vi){var ei,Vi=vi-1>>1,Gi=Dt[Pt+0]|zt[fr+0]<<16,ga=Vr[Yr+0]|Sr[Zn+0]<<16;u(Qe!=null);var Yi=3*Gi+ga+131074>>2;for(Q(Qe[ut+0],255&Yi,Yi>>16,Pn,Pr),ht!=null&&(Yi=3*ga+Gi+131074>>2,Q(ht[mt+0],255&Yi,Yi>>16,Dr,Wn)),ei=1;ei<=Vi;++ei){var Ss=Dt[Pt+ei]|zt[fr+ei]<<16,Ds=Vr[Yr+ei]|Sr[Zn+ei]<<16,fs=Gi+Ss+ga+Ds+524296,cs=fs+2*(Ss+ga)>>3;Yi=cs+Gi>>1,Gi=(fs=fs+2*(Gi+Ds)>>3)+Ss>>1,Q(Qe[ut+2*ei-1],255&Yi,Yi>>16,Pn,Pr+(2*ei-1)*ce),Q(Qe[ut+2*ei-0],255&Gi,Gi>>16,Pn,Pr+(2*ei-0)*ce),ht!=null&&(Yi=fs+ga>>1,Gi=cs+Ds>>1,Q(ht[mt+2*ei-1],255&Yi,Yi>>16,Dr,Wn+(2*ei-1)*ce),Q(ht[mt+2*ei+0],255&Gi,Gi>>16,Dr,Wn+(2*ei+0)*ce)),Gi=Ss,ga=Ds}1&vi||(Yi=3*Gi+ga+131074>>2,Q(Qe[ut+vi-1],255&Yi,Yi>>16,Pn,Pr+(vi-1)*ce),ht!=null&&(Yi=3*ga+Gi+131074>>2,Q(ht[mt+vi-1],255&Yi,Yi>>16,Dr,Wn+(vi-1)*ce)))}}function _i(){ou[un]=vA,ou[gi]=rA,ou[Kn]=yA,ou[Ii]=nA,ou[qi]=iA,ou[mi]=aA,ou[Pi]=bA,ou[Za]=rA,ou[na]=nA,ou[ja]=iA,ou[Qa]=aA}function ra(h){return h&~wA?0>h?0:255:h>>sA}function ya(h,Q){return ra((19077*h>>8)+(26149*Q>>8)-14234)}function Xa(h,Q,ce){return ra((19077*h>>8)-(6419*Q>>8)-(13320*ce>>8)+8708)}function Ga(h,Q){return ra((19077*h>>8)+(33050*Q>>8)-17685)}function xs(h,Q,ce,Qe,ut){Qe[ut+0]=ya(h,ce),Qe[ut+1]=Xa(h,Q,ce),Qe[ut+2]=Ga(h,Q)}function mo(h,Q,ce,Qe,ut){Qe[ut+0]=Ga(h,Q),Qe[ut+1]=Xa(h,Q,ce),Qe[ut+2]=ya(h,ce)}function xo(h,Q,ce,Qe,ut){var ht=Xa(h,Q,ce);Q=ht<<3&224|Ga(h,Q)>>3,Qe[ut+0]=248&ya(h,ce)|ht>>5,Qe[ut+1]=Q}function To(h,Q,ce,Qe,ut){var ht=240&Ga(h,Q)|15;Qe[ut+0]=240&ya(h,ce)|Xa(h,Q,ce)>>4,Qe[ut+1]=ht}function Yo(h,Q,ce,Qe,ut){Qe[ut+0]=255,xs(h,Q,ce,Qe,ut+1)}function Mo(h,Q,ce,Qe,ut){mo(h,Q,ce,Qe,ut),Qe[ut+3]=255}function Kl(h,Q,ce,Qe,ut){xs(h,Q,ce,Qe,ut),Qe[ut+3]=255}function el(h,Q){return 0>h?0:h>Q?Q:h}function Tl(h,Q,ce){Br[h]=function(Qe,ut,ht,mt,Dt,Pt,zt,fr,Vr){for(var Yr=fr+(-2&Vr)*ce;fr!=Yr;)Q(Qe[ut+0],ht[mt+0],Dt[Pt+0],zt,fr),Q(Qe[ut+1],ht[mt+0],Dt[Pt+0],zt,fr+ce),ut+=2,++mt,++Pt,fr+=2*ce;1&Vr&&Q(Qe[ut+0],ht[mt+0],Dt[Pt+0],zt,fr)}}function xc(h,Q,ce){return ce==0?h==0?Q==0?6:5:Q==0?4:0:ce}function Vu(h,Q,ce,Qe,ut){switch(h>>>30){case 3:Cu(Q,ce,Qe,ut,0);break;case 2:Co(Q,ce,Qe,ut);break;case 1:cl(Q,ce,Qe,ut)}}function hc(h,Q){var ce,Qe,ut=Q.M,ht=Q.Nb,mt=h.oc,Dt=h.pc+40,Pt=h.oc,zt=h.pc+584,fr=h.oc,Vr=h.pc+600;for(ce=0;16>ce;++ce)mt[Dt+32*ce-1]=129;for(ce=0;8>ce;++ce)Pt[zt+32*ce-1]=129,fr[Vr+32*ce-1]=129;for(0<ut?mt[Dt-1-32]=Pt[zt-1-32]=fr[Vr-1-32]=129:(ne(mt,Dt-32-1,127,21),ne(Pt,zt-32-1,127,9),ne(fr,Vr-32-1,127,9)),Qe=0;Qe<h.za;++Qe){var Yr=Q.ya[Q.aa+Qe];if(0<Qe){for(ce=-1;16>ce;++ce)M(mt,Dt+32*ce-4,mt,Dt+32*ce+12,4);for(ce=-1;8>ce;++ce)M(Pt,zt+32*ce-4,Pt,zt+32*ce+4,4),M(fr,Vr+32*ce-4,fr,Vr+32*ce+4,4)}var Sr=h.Gd,Zn=h.Hd+Qe,Pn=Yr.ad,Pr=Yr.Hc;if(0<ut&&(M(mt,Dt-32,Sr[Zn].y,0,16),M(Pt,zt-32,Sr[Zn].f,0,8),M(fr,Vr-32,Sr[Zn].ea,0,8)),Yr.Za){var Dr=mt,Wn=Dt-32+16;for(0<ut&&(Qe>=h.za-1?ne(Dr,Wn,Sr[Zn].y[15],4):M(Dr,Wn,Sr[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=Dt+or[ce],_u[Yr.Ob[ce]](Dr,Wn),Vu(Pr,Pn,16*+ce,Dr,Wn)}else if(Dr=xc(Qe,ut,Yr.Ob[0]),zl[Dr](mt,Dt),Pr!=0)for(ce=0;16>ce;++ce,Pr<<=2)Vu(Pr,Pn,16*+ce,mt,Dt+or[ce]);for(ce=Yr.Gc,Dr=xc(Qe,ut,Yr.Dd),tc[Dr](Pt,zt),tc[Dr](fr,Vr),Pr=Pn,Dr=Pt,Wn=zt,255&(Yr=ce>>0)&&(170&Yr?Qu(Pr,256,Dr,Wn):Hl(Pr,256,Dr,Wn)),Yr=fr,Pr=Vr,255&(ce>>=8)&&(170&ce?Qu(Pn,320,Yr,Pr):Hl(Pn,320,Yr,Pr)),ut<h.Ub-1&&(M(Sr[Zn].y,0,mt,Dt+480,16),M(Sr[Zn].f,0,Pt,zt+224,8),M(Sr[Zn].ea,0,fr,Vr+224,8)),ce=8*ht*h.B,Sr=h.sa,Zn=h.ta+16*Qe+16*ht*h.R,Pn=h.qa,Yr=h.ra+8*Qe+ce,Pr=h.Ha,Dr=h.Ia+8*Qe+ce,ce=0;16>ce;++ce)M(Sr,Zn+ce*h.R,mt,Dt+32*ce,16);for(ce=0;8>ce;++ce)M(Pn,Yr+ce*h.B,Pt,zt+32*ce,8),M(Pr,Dr+ce*h.B,fr,Vr+32*ce,8)}}function Yu(h,Q,ce,Qe,ut,ht,mt,Dt,Pt){var zt=[0],fr=[0],Vr=0,Yr=Pt!=null?Pt.kd:0,Sr=Pt!=null?Pt:new dc;if(h==null||12>ce)return 7;Sr.data=h,Sr.w=Q,Sr.ha=ce,Q=[Q],ce=[ce],Sr.gb=[Sr.gb];e:{var Zn=Q,Pn=ce,Pr=Sr.gb;if(u(h!=null),u(Pn!=null),u(Pr!=null),Pr[0]=0,12<=Pn[0]&&!y(h,Zn[0],"RIFF")){if(y(h,Zn[0]+8,"WEBP")){Pr=3;break e}var Dr=Dn(h,Zn[0]+4);if(12>Dr||4294967286<Dr){Pr=3;break e}if(Yr&&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<Sr.gb[0],ce=ce[0];;){e:{var Wn=h;Pn=Q,Pr=ce;var vi=zt,ei=fr,Vi=Zn=[0];if((Yi=Vr=[Vr])[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),ga=1+cn(Wn,Pn[0]+12);if(2147483648<=ga*(Wn=1+cn(Wn,Pn[0]+15))){Pr=3;break e}Vi!=null&&(Vi[0]=Gi),vi!=null&&(vi[0]=ga),ei!=null&&(ei[0]=Wn),Pn[0]+=18,Pr[0]-=18,Yi[0]=1}Pr=0}}if(Vr=Vr[0],Zn=Zn[0],Pr!=0)return Pr;if(Pn=!!(2&Zn),!Dr&&Vr)return 3;if(ht!=null&&(ht[0]=!!(16&Zn)),mt!=null&&(mt[0]=Pn),Dt!=null&&(Dt[0]=0),mt=zt[0],Zn=fr[0],Vr&&Pn&&Pt==null){Pr=0;break}if(4>ce){Pr=7;break}if(Dr&&Vr||!Dr&&!Vr&&!y(h,Q[0],"ALPH")){ce=[ce],Sr.na=[Sr.na],Sr.P=[Sr.P],Sr.Sa=[Sr.Sa];e:{Gi=h,Pr=Q,Dr=ce;var Yi=Sr.gb;vi=Sr.na,ei=Sr.P,Vi=Sr.Sa,ga=22,u(Gi!=null),u(Dr!=null),Wn=Pr[0];var Ss=Dr[0];for(u(vi!=null),u(Vi!=null),vi[0]=null,ei[0]=null,Vi[0]=0;;){if(Pr[0]=Wn,Dr[0]=Ss,8>Ss){Pr=7;break e}var Ds=Dn(Gi,Wn+4);if(4294967286<Ds){Pr=3;break e}var fs=8+Ds+1&-2;if(ga+=fs,0<Yi&&ga>Yi){Pr=3;break e}if(!y(Gi,Wn,"VP8 ")||!y(Gi,Wn,"VP8L")){Pr=0;break e}if(Ss[0]<fs){Pr=7;break e}y(Gi,Wn,"ALPH")||(vi[0]=Gi,ei[0]=Wn+8,Vi[0]=Ds),Wn+=fs,Ss-=fs}}if(ce=ce[0],Sr.na=Sr.na[0],Sr.P=Sr.P[0],Sr.Sa=Sr.Sa[0],Pr!=0)break}ce=[ce],Sr.Ja=[Sr.Ja],Sr.xa=[Sr.xa];e:if(Yi=h,Pr=Q,Dr=ce,vi=Sr.gb[0],ei=Sr.Ja,Vi=Sr.xa,Gi=Pr[0],Wn=!y(Yi,Gi,"VP8 "),ga=!y(Yi,Gi,"VP8L"),u(Yi!=null),u(Dr!=null),u(ei!=null),u(Vi!=null),8>Dr[0])Pr=7;else{if(Wn||ga){if(Yi=Dn(Yi,Gi+4),12<=vi&&Yi>vi-12){Pr=3;break e}if(Yr&&Yi>Dr[0]-8){Pr=7;break e}ei[0]=Yi,Pr[0]+=8,Dr[0]-=8,Vi[0]=ga}else Vi[0]=5<=Dr[0]&&Yi[Gi+0]==47&&!(Yi[Gi+4]>>5),ei[0]=Dr[0];Pr=0}if(ce=ce[0],Sr.Ja=Sr.Ja[0],Sr.xa=Sr.xa[0],Q=Q[0],Pr!=0)break;if(4294967286<Sr.Ja)return 3;if(Dt==null||Pn||(Dt[0]=Sr.xa?2:1),mt=[mt],Zn=[Zn],Sr.xa){if(5>ce){Pr=7;break}Dt=mt,Yr=Zn,Pn=ht,h==null||5>ce?h=0:5<=ce&&h[Q+0]==47&&!(h[Q+4]>>5)?(Dr=[0],Yi=[0],vi=[0],ft(ei=new ze,h,Q,ce),Xi(ei,Dr,Yi,vi)?(Dt!=null&&(Dt[0]=Dr[0]),Yr!=null&&(Yr[0]=Yi[0]),Pn!=null&&(Pn[0]=vi[0]),h=1):h=0):h=0}else{if(10>ce){Pr=7;break}Dt=Zn,h==null||10>ce||!Bs(h,Q+3,ce-3)?h=0:(Yr=h[Q+0]|h[Q+1]<<8|h[Q+2]<<16,Pn=16383&(h[Q+7]<<8|h[Q+6]),h=16383&(h[Q+9]<<8|h[Q+8]),1&Yr||3<(Yr>>1&7)||!(Yr>>4&1)||Yr>>5>=Sr.Ja||!Pn||!h?h=0:(mt&&(mt[0]=Pn),Dt&&(Dt[0]=h),h=1))}if(!h||(mt=mt[0],Zn=Zn[0],Vr&&(zt[0]!=mt||fr[0]!=Zn)))return 3;Pt!=null&&(Pt[0]=Sr,Pt.offset=Q-Pt.w,u(4294967286>Q-Pt.w),u(Pt.offset==Pt.ha-ce));break}return Pr==0||Pr==7&&Vr&&Pt==null?(ht!=null&&(ht[0]|=Sr.na!=null&&0<Sr.na.length),Qe!=null&&(Qe[0]=mt),ut!=null&&(ut[0]=Zn),0):Pr}function Xu(h,Q,ce){var Qe=Q.width,ut=Q.height,ht=0,mt=0,Dt=Qe,Pt=ut;if(Q.Da=h!=null&&0<h.Da,Q.Da&&(Dt=h.cd,Pt=h.bd,ht=h.v,mt=h.j,11>ce||(ht&=-2,mt&=-2),0>ht||0>mt||0>=Dt||0>=Pt||ht+Dt>Qe||mt+Pt>ut))return 0;if(Q.v=ht,Q.j=mt,Q.va=ht+Dt,Q.o=mt+Pt,Q.U=Dt,Q.T=Pt,Q.da=h!=null&&0<h.da,Q.da){if(!Si(Dt,Pt,ce=[h.ib],ht=[h.hb]))return 0;Q.ib=ce[0],Q.hb=ht[0]}return Q.ob=h!=null&&h.ob,Q.Kb=h==null||!h.Sd,Q.da&&(Q.ob=Q.ib<3*Qe/4&&Q.hb<3*ut/4,Q.Kb=0),1}function Ec(h){if(h==null)return 2;if(11>h.S){var Q=h.f.RGBA;Q.fb+=(h.height-1)*Q.A,Q.A=-Q.A}else Q=h.f.kb,h=h.height,Q.O+=(h-1)*Q.fa,Q.fa=-Q.fa,Q.N+=(h-1>>1)*Q.Ab,Q.Ab=-Q.Ab,Q.W+=(h-1>>1)*Q.Db,Q.Db=-Q.Db,Q.F!=null&&(Q.J+=(h-1)*Q.lb,Q.lb=-Q.lb);return 0}function pc(h,Q,ce,Qe){if(Qe==null||0>=h||0>=Q)return 2;if(ce!=null){if(ce.Da){var ut=ce.cd,ht=ce.bd,mt=-2&ce.v,Dt=-2&ce.j;if(0>mt||0>Dt||0>=ut||0>=ht||mt+ut>h||Dt+ht>Q)return 2;h=ut,Q=ht}if(ce.da){if(!Si(h,Q,ut=[ce.ib],ht=[ce.hb]))return 2;h=ut[0],Q=ht[0]}}Qe.width=h,Qe.height=Q;e:{var Pt=Qe.width,zt=Qe.height;if(h=Qe.S,0>=Pt||0>=zt||!(h>=un&&13>h))h=2;else{if(0>=Qe.Rd&&Qe.sd==null){mt=ht=ut=Q=0;var fr=(Dt=Pt*mn[h])*zt;if(11>h||(ht=(zt+1)/2*(Q=(Pt+1)/2),h==12&&(mt=(ut=Pt)*zt)),(zt=Z(fr+2*ht+mt))==null){h=1;break e}Qe.sd=zt,11>h?((Pt=Qe.f.RGBA).eb=zt,Pt.fb=0,Pt.A=Dt,Pt.size=fr):((Pt=Qe.f.kb).y=zt,Pt.O=0,Pt.fa=Dt,Pt.Fd=fr,Pt.f=zt,Pt.N=0+fr,Pt.Ab=Q,Pt.Cd=ht,Pt.ea=zt,Pt.W=0+fr+ht,Pt.Db=Q,Pt.Ed=ht,h==12&&(Pt.F=zt,Pt.J=0+fr+2*ht),Pt.Tc=mt,Pt.lb=ut)}if(Q=1,ut=Qe.S,ht=Qe.width,mt=Qe.height,ut>=un&&13>ut)if(11>ut)h=Qe.f.RGBA,Q&=(Dt=Math.abs(h.A))*(mt-1)+ht<=h.size,Q&=Dt>=ht*mn[ut],Q&=h.eb!=null;else{h=Qe.f.kb,Dt=(ht+1)/2,fr=(mt+1)/2,Pt=Math.abs(h.fa),zt=Math.abs(h.Ab);var Vr=Math.abs(h.Db),Yr=Math.abs(h.lb),Sr=Yr*(mt-1)+ht;Q&=Pt*(mt-1)+ht<=h.Fd,Q&=zt*(fr-1)+Dt<=h.Cd,Q=(Q&=Vr*(fr-1)+Dt<=h.Ed)&Pt>=ht&zt>=Dt&Vr>=Dt,Q&=h.y!=null,Q&=h.f!=null,Q&=h.ea!=null,ut==12&&(Q&=Yr>=ht,Q&=Sr<=h.Tc,Q&=h.F!=null)}else Q=0;h=Q?0:2}}return h!=0||ce!=null&&ce.fd&&(h=Ec(Qe)),h}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];An("Predictor0","PredictorAdd0"),Br.Predictor0=function(){return 4278190080},Br.Predictor1=function(h){return h},Br.Predictor2=function(h,Q,ce){return Q[ce+0]},Br.Predictor3=function(h,Q,ce){return Q[ce+1]},Br.Predictor4=function(h,Q,ce){return Q[ce-1]},Br.Predictor5=function(h,Q,ce){return _n(_n(h,Q[ce+1]),Q[ce+0])},Br.Predictor6=function(h,Q,ce){return _n(h,Q[ce-1])},Br.Predictor7=function(h,Q,ce){return _n(h,Q[ce+0])},Br.Predictor8=function(h,Q,ce){return _n(Q[ce-1],Q[ce+0])},Br.Predictor9=function(h,Q,ce){return _n(Q[ce+0],Q[ce+1])},Br.Predictor10=function(h,Q,ce){return _n(_n(h,Q[ce-1]),_n(Q[ce+0],Q[ce+1]))},Br.Predictor11=function(h,Q,ce){var Qe=Q[ce+0];return 0>=He(Qe>>24&255,h>>24&255,(Q=Q[ce-1])>>24&255)+He(Qe>>16&255,h>>16&255,Q>>16&255)+He(Qe>>8&255,h>>8&255,Q>>8&255)+He(255&Qe,255&h,255&Q)?Qe:h},Br.Predictor12=function(h,Q,ce){var Qe=Q[ce+0];return(ii((h>>24&255)+(Qe>>24&255)-((Q=Q[ce-1])>>24&255))<<24|ii((h>>16&255)+(Qe>>16&255)-(Q>>16&255))<<16|ii((h>>8&255)+(Qe>>8&255)-(Q>>8&255))<<8|ii((255&h)+(255&Qe)-(255&Q)))>>>0},Br.Predictor13=function(h,Q,ce){var Qe=Q[ce-1];return(Di((h=_n(h,Q[ce+0]))>>24&255,Qe>>24&255)<<24|Di(h>>16&255,Qe>>16&255)<<16|Di(h>>8&255,Qe>>8&255)<<8|Di(h>>0&255,Qe>>0&255))>>>0};var nu=Br.PredictorAdd0;Br.PredictorAdd1=c,An("Predictor2","PredictorAdd2"),An("Predictor3","PredictorAdd3"),An("Predictor4","PredictorAdd4"),An("Predictor5","PredictorAdd5"),An("Predictor6","PredictorAdd6"),An("Predictor7","PredictorAdd7"),An("Predictor8","PredictorAdd8"),An("Predictor9","PredictorAdd9"),An("Predictor10","PredictorAdd10"),An("Predictor11","PredictorAdd11"),An("Predictor12","PredictorAdd12"),An("Predictor13","PredictorAdd13");var Eu=Br.PredictorAdd2;Be("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Be("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var Ql,pl=Br.ColorIndexInverseTransform,qu=Br.MapARGB,Cc=Br.VP8LColorIndexInverseTransformAlpha,Mu=Br.MapAlpha,jl=Br.VP8LPredictorsAdd=[];jl.length=16,(Br.VP8LPredictors=[]).length=16,(Br.VP8LPredictorsAdd_C=[]).length=16,(Br.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,Re,Ye=Z(511),Je=Z(2041),lt=Z(225),_t=Z(767),Ft=0,gr=Je,Nr=lt,Rr=_t,Un=Ye,un=0,gi=1,Kn=2,Ii=3,qi=4,mi=5,Pi=6,Za=7,na=8,ja=9,Qa=10,Ra=[2,3,7],Fs=[3,3,11],Ks=[280,256,256,256,40],fa=[0,1,1,1,0],sa=[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],ps=[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=[];$n("UpsampleRgbLinePair",xs,3),$n("UpsampleBgrLinePair",mo,3),$n("UpsampleRgbaLinePair",Kl,4),$n("UpsampleBgraLinePair",Mo,4),$n("UpsampleArgbLinePair",Yo,4),$n("UpsampleRgba4444LinePair",To,2),$n("UpsampleRgb565LinePair",xo,2);var vA=Br.UpsampleRgbLinePair,yA=Br.UpsampleBgrLinePair,rA=Br.UpsampleRgbaLinePair,nA=Br.UpsampleBgraLinePair,iA=Br.UpsampleArgbLinePair,aA=Br.UpsampleRgba4444LinePair,bA=Br.UpsampleRgb565LinePair,Hc=16,$c=1<<Hc-1,Uc=-227,Vc=482,sA=6,wA=(256<<sA)-1,R=0,E=Z(256),U=Z(256),k=Z(256),Pe=Z(256),it=Z(Vc-Uc),Lt=Z(Vc-Uc);Tl("YuvToRgbRow",xs,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],jr=[8,7,6,4,4,2,2,2,1,1,1,1],qr=1;this.WebPDecodeRGBA=function(h,Q,ce,Qe,ut){var ht=gi,mt=new Ac,Dt=new Mn;mt.ba=Dt,Dt.S=ht,Dt.width=[Dt.width],Dt.height=[Dt.height];var Pt=Dt.width,zt=Dt.height,fr=new qn;if(fr==null||h==null)var Vr=2;else u(fr!=null),Vr=Yu(h,Q,ce,fr.width,fr.height,fr.Pd,fr.Qd,fr.format,null);if(Vr!=0?Pt=0:(Pt!=null&&(Pt[0]=fr.width[0]),zt!=null&&(zt[0]=fr.height[0]),Pt=1),Pt){Dt.width=Dt.width[0],Dt.height=Dt.height[0],Qe!=null&&(Qe[0]=Dt.width),ut!=null&&(ut[0]=Dt.height);e:{if(Qe=new Ua,(ut=new dc).data=h,ut.w=Q,ut.ha=ce,ut.kd=1,Q=[0],u(ut!=null),((h=Yu(ut.data,ut.w,ut.ha,null,null,null,Q,null,ut))==0||h==7)&&Q[0]&&(h=4),(Q=h)==0){if(u(mt!=null),Qe.data=ut.data,Qe.w=ut.w+ut.offset,Qe.ha=ut.ha-ut.offset,Qe.put=Sa,Qe.ac=$i,Qe.bc=Ia,Qe.ma=mt,ut.xa){if((h=bs())==null){mt=1;break e}if(function(Yr,Sr){var Zn=[0],Pn=[0],Pr=[0];t:for(;;){if(Yr==null)return 0;if(Sr==null)return Yr.a=2,0;if(Yr.l=Sr,Yr.a=0,ft(Yr.m,Sr.data,Sr.w,Sr.ha),!Xi(Yr.m,Zn,Pn,Pr)){Yr.a=3;break t}if(Yr.xb=tA,Sr.width=Zn[0],Sr.height=Pn[0],!Hs(Zn[0],Pn[0],1,Yr,null))break t;return 1}return u(Yr.a!=0),0}(h,Qe)){if(Qe=(Q=pc(Qe.width,Qe.height,mt.Oa,mt.ba))==0){t:{Qe=h;r:for(;;){if(Qe==null){Qe=0;break t}if(u(Qe.s.yc!=null),u(Qe.s.Ya!=null),u(0<Qe.s.Wb),u((ce=Qe.l)!=null),u((ut=ce.ma)!=null),Qe.xb!=0){if(Qe.ca=ut.ba,Qe.tb=ut.tb,u(Qe.ca!=null),!Xu(ut.Oa,ce,Ii)){Qe.a=2;break r}if(!Zs(Qe,ce.width)||ce.da)break r;if((ce.da||Cn(Qe.ca.S))&&ln(),11>Qe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Qe.ca.f.kb.F!=null&&ln()),Qe.Pb&&0<Qe.s.ua&&Qe.s.vb.X==null&&!ni(Qe.s.vb,Qe.s.Wa.Xa)){Qe.a=1;break r}Qe.xb=0}if(!ca(Qe,Qe.V,Qe.Ba,Qe.c,Qe.i,ce.o,da))break r;ut.Dc=Qe.Ma,Qe=1;break t}u(Qe.a!=0),Qe=0}Qe=!Qe}Qe&&(Q=h.a)}else Q=h.a}else{if((h=new _s)==null){mt=1;break e}if(h.Fa=ut.na,h.P=ut.P,h.qc=ut.Sa,wo(h,Qe)){if((Q=pc(Qe.width,Qe.height,mt.Oa,mt.ba))==0){if(h.Aa=0,ce=mt.Oa,u((ut=h)!=null),ce!=null){if(0<(Pt=0>(Pt=ce.Md)?0:100<Pt?255:255*Pt/100)){for(zt=fr=0;4>zt;++zt)12>(Vr=ut.pb[zt]).lc&&(Vr.ia=Pt*jr[0>Vr.lc?0:Vr.lc]>>3),fr|=Vr.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(h,Qe)||(Q=h.a)}}else Q=h.a}Q==0&&mt.Oa!=null&&mt.Oa.fd&&(Q=Ec(mt.ba))}mt=Q}ht=mt!=0?null:11>ht?Dt.f.RGBA.eb:Dt.f.kb.y}else ht=null;return ht};var mn=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function tt(Br,xn){for(var Nn="",er=0;er<4;er++)Nn+=String.fromCharCode(Br[xn++]);return Nn}function yt(Br,xn){return(Br[xn+0]<<0|Br[xn+1]<<8|Br[xn+2]<<16)>>>0}function vt(Br,xn){return(Br[xn+0]<<0|Br[xn+1]<<8|Br[xn+2]<<16|Br[xn+3]<<24)>>>0}new Ne;var kt=[0],Ve=[0],cr=[],tr=new Ne,dr=b,Qt=function(Br,xn){var Nn={},er=0,nr=!1,ye=0,xe=0;if(Nn.frames=[],!function(_e,wt,jt,Vt){for(var ur=0;ur<Vt;ur++)if(_e[wt+ur]!=jt.charCodeAt(ur))return!0;return!1}(Br,xn,"RIFF",4)){var et,st;for(vt(Br,xn+=4),xn+=8;xn<Br.length;){var gt=tt(Br,xn),ft=vt(Br,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=Br[xn];var $t=xn+4;ze.canvas_width=1+yt(Br,$t),$t+=3,ze.canvas_height=1+yt(Br,$t),$t+=3;break;case"ALPH":nr=!0,ye=Ut+8,xe=xn-8;break;case"ANIM":(ze=Nn.header).bgcolor=vt(Br,xn),$t=xn+4,ze.loop_count=(et=Br)[(st=$t)+0]<<0|et[st+1]<<8,$t+=2;break;case"ANMF":var sr,ze;(ze=Nn.frames[er]={}).offset_x=2*yt(Br,xn),xn+=3,ze.offset_y=2*yt(Br,xn),xn+=3,ze.width=1+yt(Br,xn),xn+=3,ze.height=1+yt(Br,xn),xn+=3,ze.duration=yt(Br,xn),xn+=3,sr=Br[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,kt=[pr.canvas_height],Ve=[pr.canvas_width];for(var an=0;an<Mr.length&&Mr[an].blend!=0;an++);}var Rn=Mr[0],di=tr.WebPDecodeRGBA(dr,Rn.src_off,Rn.src_size,Ve,kt);Rn.rgba=di,Rn.imgwidth=Ve[0],Rn.imgheight=kt[0];for(var pn=0;pn<Ve[0]*kt[0]*4;pn++)cr[pn]=di[pn];return this.width=Ve,this.height=kt,this.data=cr,this}(function(b){var u=function(){return typeof kn=="function"},y=function(kt,Ve,cr,tr){var dr=4,Qt=ge;switch(tr){case b.image_compression.FAST:dr=1,Qt=Z;break;case b.image_compression.MEDIUM:dr=6,Qt=De;break;case b.image_compression.SLOW:dr=9,Qt=Ne}kt=M(kt,Ve,cr,Qt);var pr=kn(kt,{level:dr});return b.__addimage__.arrayBufferToBinaryString(pr)},M=function(kt,Ve,cr,tr){for(var dr,Qt,pr,Mr=kt.length/Ve,an=new Uint8Array(kt.length+Mr),Rn=yt(),di=0;di<Mr;di+=1){if(pr=di*Ve,dr=kt.subarray(pr,pr+Ve),tr)an.set(tr(dr,cr,Qt),pr+di);else{for(var pn,Br=Rn.length,xn=[];pn<Br;pn+=1)xn[pn]=Rn[pn](dr,cr,Qt);var Nn=vt(xn.concat());an.set(xn[Nn],pr+di)}Qt=dr}return an},ne=function(kt){var Ve=Array.apply([],kt);return Ve.unshift(0),Ve},Z=function(kt,Ve){var cr,tr=[],dr=kt.length;tr[0]=1;for(var Qt=0;Qt<dr;Qt+=1)cr=kt[Qt-Ve]||0,tr[Qt+1]=kt[Qt]-cr+256&255;return tr},ge=function(kt,Ve,cr){var tr,dr=[],Qt=kt.length;dr[0]=2;for(var pr=0;pr<Qt;pr+=1)tr=cr&&cr[pr]||0,dr[pr+1]=kt[pr]-tr+256&255;return dr},De=function(kt,Ve,cr){var tr,dr,Qt=[],pr=kt.length;Qt[0]=3;for(var Mr=0;Mr<pr;Mr+=1)tr=kt[Mr-Ve]||0,dr=cr&&cr[Mr]||0,Qt[Mr+1]=kt[Mr]+256-(tr+dr>>>1)&255;return Qt},Ne=function(kt,Ve,cr){var tr,dr,Qt,pr,Mr=[],an=kt.length;Mr[0]=4;for(var Rn=0;Rn<an;Rn+=1)tr=kt[Rn-Ve]||0,dr=cr&&cr[Rn]||0,Qt=cr&&cr[Rn-Ve]||0,pr=tt(tr,dr,Qt),Mr[Rn+1]=kt[Rn]-pr+256&255;return Mr},tt=function(kt,Ve,cr){if(kt===Ve&&Ve===cr)return kt;var tr=Math.abs(Ve-cr),dr=Math.abs(kt-cr),Qt=Math.abs(kt+Ve-cr-cr);return tr<=dr&&tr<=Qt?kt:dr<=Qt?Ve:cr},yt=function(){return[ne,Z,ge,De,Ne]},vt=function(kt){var Ve=kt.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(kt,Ve,cr,tr){var dr,Qt,pr,Mr,an,Rn,di,pn,Br,xn,Nn,er,nr,ye,xe,et=this.decode.FLATE_DECODE,st="";if(this.__addimage__.isArrayBuffer(kt)&&(kt=new Uint8Array(kt)),this.__addimage__.isArrayBufferView(kt)){if(kt=(pr=new wl(kt)).imgData,Qt=pr.bits,dr=pr.colorSpace,an=pr.colors,[4,6].indexOf(pr.colorType)!==-1){if(pr.bits===8){Br=(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(Br*pr.colors),xn=new Uint8Array(Br);var gt,ft=pr.pixelBitlength-pr.bits;for(ye=0,xe=0;ye<Br;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){Br=(pn=new Uint32Array(pr.decodePixels().buffer)).length,Nn=new Uint8Array(Br*(32/pr.pixelBitlength)*pr.colors),xn=new Uint8Array(Br*(32/pr.pixelBitlength)),er=pr.colors>1,ye=0,xe=0;for(var Ut=0;ye<Br;)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()?(kt=y(Nn,pr.width*pr.colors,pr.colors,tr),di=y(xn,pr.width,1,tr)):(kt=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,Br=$t.length;ye<Br;++ye)sr+=$t[ye];if((sr/=255)===Br-1&&$t.indexOf(0)!==-1)Mr=[$t.indexOf(0)];else if(sr!==Br){for(pn=pr.decodePixels(),xn=new Uint8Array(pn.length),ye=0,Br=pn.length;ye<Br;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 "+an+" /BitsPerComponent "+Qt+" /Columns "+pr.width,(this.__addimage__.isArrayBuffer(kt)||this.__addimage__.isArrayBufferView(kt))&&(kt=this.__addimage__.arrayBufferToBinaryString(kt)),(di&&this.__addimage__.isArrayBuffer(di)||this.__addimage__.isArrayBufferView(di))&&(di=this.__addimage__.arrayBufferToBinaryString(di)),{alias:cr,data:kt,index:Ve,filter:et,decodeParameters:st,transparency:Mr,palette:Rn,sMask:di,predictor:ze,width:pr.width,height:pr.height,bitsPerComponent:Qt,colorSpace:dr}}}})(Mi.API),function(b){b.processGIF89A=function(u,y,M,ne){var Z=new fl(u),ge=Z.width,De=Z.height,Ne=[];Z.decodeAndBlitFrameRGBA(0,Ne);var tt={data:Ne,width:ge,height:De},yt=new xl(100).encode(tt,100);return b.processJPEG.call(this,yt,y,M,ne)},b.processGIF87A=b.processGIF89A}(Mi.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),Z=this.datav.getUint8(this.pos++,!0);this.palette[u]={red:ne,green:M,blue:y,quad:Z}}}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){si.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 Z=this.datav.getUint8(this.pos++,!0),ge=M*this.width*4+8*ne*4,De=0;De<8&&8*ne+De<this.width;De++){var Ne=this.palette[Z>>7-De&1];this.data[ge+4*De]=Ne.blue,this.data[ge+4*De+1]=Ne.green,this.data[ge+4*De+2]=Ne.red,this.data[ge+4*De+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 Z=this.datav.getUint8(this.pos++,!0),ge=M*this.width*4+2*ne*4,De=Z>>4,Ne=15&Z,tt=this.palette[De];if(this.data[ge]=tt.blue,this.data[ge+1]=tt.green,this.data[ge+2]=tt.red,this.data[ge+3]=255,2*ne+1>=this.width)break;tt=this.palette[Ne],this.data[ge+4]=tt.blue,this.data[ge+4+1]=tt.green,this.data[ge+4+2]=tt.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),Z=y*this.width*4+4*M;if(ne<this.palette.length){var ge=this.palette[ne];this.data[Z]=ge.red,this.data[Z+1]=ge.green,this.data[Z+2]=ge.blue,this.data[Z+3]=255}else this.data[Z]=255,this.data[Z+1]=255,this.data[Z+2]=255,this.data[Z+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 Z=this.datav.getUint16(this.pos,!0);this.pos+=2;var ge=(Z&u)/u*255|0,De=(Z>>5&u)/u*255|0,Ne=(Z>>10&u)/u*255|0,tt=Z>>15?255:0,yt=M*this.width*4+4*ne;this.data[yt]=Ne,this.data[yt+1]=De,this.data[yt+2]=ge,this.data[yt+3]=tt}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,Z=0;Z<this.width;Z++){var ge=this.datav.getUint16(this.pos,!0);this.pos+=2;var De=(ge&u)/u*255|0,Ne=(ge>>5&y)/y*255|0,tt=(ge>>11)/u*255|0,yt=ne*this.width*4+4*Z;this.data[yt]=tt,this.data[yt+1]=Ne,this.data[yt+2]=De,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),Z=this.datav.getUint8(this.pos++,!0),ge=u*this.width*4+4*y;this.data[ge]=Z,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),Z=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),De=u*this.width*4+4*y;this.data[De]=Z,this.data[De+1]=ne,this.data[De+2]=M,this.data[De+3]=ge}},jo.prototype.getData=function(){return this.data},function(b){b.processBMP=function(u,y,M,ne){var Z=new jo(u,!1),ge=Z.width,De=Z.height,Ne={data:Z.getData(),width:ge,height:De},tt=new xl(100).encode(Ne,100);return b.processJPEG.call(this,tt,y,M,ne)}}(Mi.API),Gs.prototype.getData=function(){return this.data},function(b){b.processWEBP=function(u,y,M,ne){var Z=new Gs(u,!1),ge=Z.width,De=Z.height,Ne={data:Z.getData(),width:ge,height:De},tt=new xl(100).encode(Ne,100);return b.processJPEG.call(this,tt,y,M,ne)}}(Mi.API),Mi.API.processRGBA=function(b,u,y){for(var M=b.data,ne=M.length,Z=new Uint8Array(ne/4*3),ge=new Uint8Array(ne/4),De=0,Ne=0,tt=0;tt<ne;tt+=4){var yt=M[tt],vt=M[tt+1],kt=M[tt+2],Ve=M[tt+3];Z[De++]=yt,Z[De++]=vt,Z[De++]=kt,ge[Ne++]=Ve}var cr=this.__addimage__.arrayBufferToBinaryString(Z);return{alpha:this.__addimage__.arrayBufferToBinaryString(ge),data:cr,index:u,alias:y,colorSpace:"DeviceRGB",bitsPerComponent:8,width:b.width,height:b.height}},Mi.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},qa=Mi.API,bl=qa.getCharWidthsArray=function(b,u){var y,M,ne=(u=u||{}).font||this.internal.getFont(),Z=u.fontSize||this.internal.getFontSize(),ge=u.charSpace||this.internal.getCharSpace(),De=u.widths?u.widths:ne.metadata.Unicode.widths,Ne=De.fof?De.fof:1,tt=u.kerning?u.kerning:ne.metadata.Unicode.kerning,yt=tt.fof?tt.fof:1,vt=u.doKerning!==!1,kt=0,Ve=b.length,cr=0,tr=De[0]||Ne,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/Z)||0)/1e3):(kt=vt&&(0,we.Z)(tt[M])==="object"&&!isNaN(parseInt(tt[M][cr],10))?tt[M][cr]/yt:0,dr.push((De[M]||tr)/Ne+kt)),cr=M;return dr},so=qa.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 qa.processArabic&&(b=qa.processArabic(b)),typeof M.metadata.widthOfString=="function"?M.metadata.widthOfString(b,y,ne)/y:bl.apply(this,arguments).reduce(function(Z,ge){return Z+ge},0)},bo=function(b,u,y,M){for(var ne=[],Z=0,ge=b.length,De=0;Z!==ge&&De+u[Z]<y;)De+=u[Z],Z++;ne.push(b.slice(0,Z));var Ne=Z;for(De=0;Z!==ge;)De+u[Z]>M&&(ne.push(b.slice(Ne,Z)),De=0,Ne=Z),De+=u[Z],Z++;return Ne!==Z&&ne.push(b.slice(Ne,Z)),ne},Zl=function(b,u,y){y||(y={});var M,ne,Z,ge,De,Ne,tt,yt=[],vt=[yt],kt=y.textIndent||0,Ve=0,cr=0,tr=b.split(" "),dr=bl.apply(this,[" ",y])[0];if(Ne=y.lineIndent===-1?tr[0].length+2:y.lineIndent||0){var Qt=Array(Ne).join(" "),pr=[];tr.map(function(an){(an=an.split(/\s*\n/)).length>1?pr=pr.concat(an.map(function(Rn,di){return(di&&Rn.length?`
|
|
|
`:"")+Rn})):pr.push(an[0])}),tr=pr,Ne=so.apply(this,[Qt,y])}for(Z=0,ge=tr.length;Z<ge;Z++){var Mr=0;if(M=tr[Z],Ne&&M[0]==`
|
|
|
`&&(M=M.substr(1),Mr=1),kt+Ve+(cr=(ne=bl.apply(this,[M,y])).reduce(function(an,Rn){return an+Rn},0))>u||Mr){if(cr>u){for(De=bo.apply(this,[M,ne,u-(kt+Ve),u]),yt.push(De.shift()),yt=[De.pop()];De.length;)vt.push([De.shift()]);cr=ne.slice(M.length-(yt[0]?yt[0].length:0)).reduce(function(an,Rn){return an+Rn},0)}else yt=[M];vt.push(yt),kt=cr+Ne,Ve=dr}else yt.push(M),kt+=Ve+cr,Ve=dr}return tt=Ne?function(an,Rn){return(Rn?Qt:"")+an.join(" ")}:function(an){return an.join(" ")},vt.map(tt)},qa.splitTextToSize=function(b,u,y){var M,ne=(y=y||{}).fontSize||this.internal.getFontSize(),Z=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;Z.textIndent=y.textIndent?1*y.textIndent*this.internal.scaleFactor/ne:0,Z.lineIndent=y.lineIndent;var De,Ne,tt=[];for(De=0,Ne=M.length;De<Ne;De++)tt=tt.concat(Zl.apply(this,[M[De],ge,Z]));return tt},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 Z=function(vt){return"0x"+parseInt(vt,10).toString(16)},ge=b.__fontmetrics__.compress=function(vt){var kt,Ve,cr,tr,dr=["{"];for(var Qt in vt){if(kt=vt[Qt],isNaN(parseInt(Qt,10))?Ve="'"+Qt+"'":(Qt=parseInt(Qt,10),Ve=(Ve=Z(Qt).slice(2)).slice(0,-1)+M[Ve.slice(-1)]),typeof kt=="number")kt<0?(cr=Z(kt).slice(3),tr="-"):(cr=Z(kt).slice(2),tr=""),cr=tr+cr.slice(0,-1)+M[cr.slice(-1)];else{if((0,we.Z)(kt)!=="object")throw new Error("Don't know what to do with value type "+(0,we.Z)(kt)+".");cr=ge(kt)}dr.push(Ve+cr)}return dr.push("}"),dr.join("")},De=b.__fontmetrics__.uncompress=function(vt){if(typeof vt!="string")throw new Error("Invalid argument passed to uncompress.");for(var kt,Ve,cr,tr,dr={},Qt=1,pr=dr,Mr=[],an="",Rn="",di=vt.length-1,pn=1;pn<di;pn+=1)(tr=vt[pn])=="'"?kt?(cr=kt.join(""),kt=void 0):kt=[]:kt?kt.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)?(an+=y[tr],cr=parseInt(an,16)*Qt,Qt=1,an=""):an+=tr:y.hasOwnProperty(tr)?(Rn+=y[tr],pr[cr]=parseInt(Rn,16)*Qt,Qt=1,cr=void 0,Rn=""):Rn+=tr;return dr},Ne={codePages:["WinAnsiEncoding"],WinAnsiEncoding:De("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},tt={Unicode:{Courier:Ne,"Courier-Bold":Ne,"Courier-BoldOblique":Ne,"Courier-Oblique":Ne,Helvetica:Ne,"Helvetica-Bold":Ne,"Helvetica-BoldOblique":Ne,"Helvetica-Oblique":Ne,"Times-Roman":Ne,"Times-Bold":Ne,"Times-BoldItalic":Ne,"Times-Italic":Ne}},yt={Unicode:{"Courier-Oblique":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":De("{'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":De("{'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:De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":De("{'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:De("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:De("{'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":De("{'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:De("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":De("{'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":De("{'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":De("{'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 kt=vt.font,Ve=yt.Unicode[kt.postScriptName];Ve&&(kt.metadata.Unicode={},kt.metadata.Unicode.widths=Ve.widths,kt.metadata.Unicode.kerning=Ve.kerning);var cr=tt.Unicode[kt.postScriptName];cr&&(kt.metadata.Unicode.encoding=cr,kt.encoding=cr.codePages[0])}])}(Mi.API),function(b){var u=function(y){for(var M=y.length,ne=new Uint8Array(M),Z=0;Z<M;Z++)ne[Z]=y.charCodeAt(Z);return ne};b.API.events.push(["addFont",function(y){var M=void 0,ne=y.font,Z=y.instance;if(!ne.isStandardFont){if(Z===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");if(typeof(M=Z.existsFileInVFS(ne.postScriptName)===!1?Z.loadFile(ne.postScriptName):Z.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,De){De=/^\x00\x01\x00\x00/.test(De)?u(De):u(Bi(De)),ge.metadata=b.API.TTFFont.open(De),ge.metadata.Unicode=ge.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ge.metadata.glyIdsUsed=[0]})(ne,M)}}])}(Mi),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})}Mi.API.addSvgAsImage=function(y,M,ne,Z,ge,De,Ne,tt){if(isNaN(M)||isNaN(ne))throw si.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Z)||isNaN(ge))throw si.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=Z,yt.height=ge;var vt=yt.getContext("2d");vt.fillStyle="#fff",vt.fillRect(0,0,yt.width,yt.height);var kt={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ve=this;return u().then(function(cr){return cr.fromString(vt,y,kt)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(cr){return cr.render(kt)}).then(function(){Ve.addImage(yt.toDataURL("image/jpeg",1),M,ne,Z,ge,Ne,tt)})}}(),Mi.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},Mi.API.viewerPreferences=function(b,u){var y;b=b||{},u=u||!1;var M,ne,Z,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}},De=Object.keys(ge),Ne=[],tt=0,yt=0,vt=0;function kt(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=De.length;for(vt=0;vt<Ve;vt+=1)y[De[vt]].value=y[De[vt]].defaultValue,y[De[vt]].explicitSet=!1}if((0,we.Z)(b)==="object"){for(ne in b)if(Z=b[ne],kt(De,ne)&&Z!==void 0){if(y[ne].type==="boolean"&&typeof Z=="boolean")y[ne].value=Z;else if(y[ne].type==="name"&&kt(y[ne].valueSet,Z))y[ne].value=Z;else if(y[ne].type==="integer"&&Number.isInteger(Z))y[ne].value=Z;else if(y[ne].type==="array"){for(tt=0;tt<Z.length;tt+=1)if(M=!0,Z[tt].length===1&&typeof Z[tt][0]=="number")Ne.push(String(Z[tt]-1));else if(Z[tt].length>1){for(yt=0;yt<Z[tt].length;yt+=1)typeof Z[tt][yt]!="number"&&(M=!1);M===!0&&Ne.push([Z[tt][0]-1,Z[tt][1]-1].join(" "))}y[ne].value="["+Ne.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/">')),Z=unescape(encodeURIComponent(M)),ge=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),De=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ne=unescape(encodeURIComponent("</x:xmpmeta>")),tt=Z.length+ge.length+De.length+ne.length+Ne.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+tt+" >>"),this.internal.write("stream"),this.internal.write(ne+Z+ge+De+Ne),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}}(Mi.API),function(b){var u=b.API,y=u.pdfEscape16=function(Z,ge){for(var De,Ne=ge.metadata.Unicode.widths,tt=["","0","00","000","0000"],yt=[""],vt=0,kt=Z.length;vt<kt;++vt){if(De=ge.metadata.characterToGlyph(Z.charCodeAt(vt)),ge.metadata.glyIdsUsed.push(De),ge.metadata.toUnicode[De]=Z.charCodeAt(vt),Ne.indexOf(De)==-1&&(Ne.push(De),Ne.push([parseInt(ge.metadata.widthOfGlyph(De),10)])),De=="0")return yt.join("");De=De.toString(16),yt.push(tt[4-De.length],De)}return yt.join("")},M=function(Z){var ge,De,Ne,tt,yt,vt,kt;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`,Ne=[],vt=0,kt=(De=Object.keys(Z).sort(function(Ve,cr){return Ve-cr})).length;vt<kt;vt++)ge=De[vt],Ne.length>=100&&(yt+=`
|
|
|
`+Ne.length+` beginbfchar
|
|
|
`+Ne.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Ne=[]),Z[ge]!==void 0&&Z[ge]!==null&&typeof Z[ge].toString=="function"&&(tt=("0000"+Z[ge].toString(16)).slice(-4),ge=("0000"+(+ge).toString(16)).slice(-4),Ne.push("<"+ge+"><"+tt+">"));return Ne.length&&(yt+=`
|
|
|
`+Ne.length+` beginbfchar
|
|
|
`+Ne.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),yt+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};u.events.push(["putFont",function(Z){(function(ge){var De=ge.font,Ne=ge.out,tt=ge.newObject,yt=ge.putStream;if(De.metadata instanceof b.API.TTFFont&&De.encoding==="Identity-H"){for(var vt=De.metadata.Unicode.widths,kt=De.metadata.subset.encode(De.metadata.glyIdsUsed,1),Ve="",cr=0;cr<kt.length;cr++)Ve+=String.fromCharCode(kt[cr]);var tr=tt();yt({data:Ve,addLength1:!0,objectId:tr}),Ne("endobj");var dr=tt();yt({data:M(De.metadata.toUnicode),addLength1:!0,objectId:dr}),Ne("endobj");var Qt=tt();Ne("<<"),Ne("/Type /FontDescriptor"),Ne("/FontName /"+pa(De.fontName)),Ne("/FontFile2 "+tr+" 0 R"),Ne("/FontBBox "+b.API.PDFObject.convert(De.metadata.bbox)),Ne("/Flags "+De.metadata.flags),Ne("/StemV "+De.metadata.stemV),Ne("/ItalicAngle "+De.metadata.italicAngle),Ne("/Ascent "+De.metadata.ascender),Ne("/Descent "+De.metadata.decender),Ne("/CapHeight "+De.metadata.capHeight),Ne(">>"),Ne("endobj");var pr=tt();Ne("<<"),Ne("/Type /Font"),Ne("/BaseFont /"+pa(De.fontName)),Ne("/FontDescriptor "+Qt+" 0 R"),Ne("/W "+b.API.PDFObject.convert(vt)),Ne("/CIDToGIDMap /Identity"),Ne("/DW 1000"),Ne("/Subtype /CIDFontType2"),Ne("/CIDSystemInfo"),Ne("<<"),Ne("/Supplement 0"),Ne("/Registry (Adobe)"),Ne("/Ordering ("+De.encoding+")"),Ne(">>"),Ne(">>"),Ne("endobj"),De.objectNumber=tt(),Ne("<<"),Ne("/Type /Font"),Ne("/Subtype /Type0"),Ne("/ToUnicode "+dr+" 0 R"),Ne("/BaseFont /"+pa(De.fontName)),Ne("/Encoding /"+De.encoding),Ne("/DescendantFonts ["+pr+" 0 R]"),Ne(">>"),Ne("endobj"),De.isAlreadyPutted=!0}})(Z)}]),u.events.push(["putFont",function(Z){(function(ge){var De=ge.font,Ne=ge.out,tt=ge.newObject,yt=ge.putStream;if(De.metadata instanceof b.API.TTFFont&&De.encoding==="WinAnsiEncoding"){for(var vt=De.metadata.rawData,kt="",Ve=0;Ve<vt.length;Ve++)kt+=String.fromCharCode(vt[Ve]);var cr=tt();yt({data:kt,addLength1:!0,objectId:cr}),Ne("endobj");var tr=tt();yt({data:M(De.metadata.toUnicode),addLength1:!0,objectId:tr}),Ne("endobj");var dr=tt();Ne("<<"),Ne("/Descent "+De.metadata.decender),Ne("/CapHeight "+De.metadata.capHeight),Ne("/StemV "+De.metadata.stemV),Ne("/Type /FontDescriptor"),Ne("/FontFile2 "+cr+" 0 R"),Ne("/Flags 96"),Ne("/FontBBox "+b.API.PDFObject.convert(De.metadata.bbox)),Ne("/FontName /"+pa(De.fontName)),Ne("/ItalicAngle "+De.metadata.italicAngle),Ne("/Ascent "+De.metadata.ascender),Ne(">>"),Ne("endobj"),De.objectNumber=tt();for(var Qt=0;Qt<De.metadata.hmtx.widths.length;Qt++)De.metadata.hmtx.widths[Qt]=parseInt(De.metadata.hmtx.widths[Qt]*(1e3/De.metadata.head.unitsPerEm));Ne("<</Subtype/TrueType/Type/Font/ToUnicode "+tr+" 0 R/BaseFont/"+pa(De.fontName)+"/FontDescriptor "+dr+" 0 R/Encoding/"+De.encoding+" /FirstChar 29 /LastChar 255 /Widths "+b.API.PDFObject.convert(De.metadata.hmtx.widths)+">>"),Ne("endobj"),De.isAlreadyPutted=!0}})(Z)}]);var ne=function(Z){var ge,De=Z.text||"",Ne=Z.x,tt=Z.y,yt=Z.options||{},vt=Z.mutex||{},kt=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:De,x:Ne,y:tt,options:yt,mutex:vt};for(pr=De,tr=Ve,Array.isArray(De)&&(pr=De[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 an="";return parseInt(tr.slice(1))<14||Mr==="WinAnsiEncoding"?an=kt(dr,tr).split("").map(function(Rn){return Rn.charCodeAt(0).toString(16)}).join(""):Mr==="Identity-H"&&(an=y(dr,cr[tr])),vt.isHex=!0,{text:an,x:Ne,y:tt,options:yt,mutex:vt}};u.events.push(["postProcessText",function(Z){var ge=Z.text||"",De=[],Ne={text:ge,x:Z.x,y:Z.y,options:Z.options,mutex:Z.mutex};if(Array.isArray(ge)){var tt=0;for(tt=0;tt<ge.length;tt+=1)Array.isArray(ge[tt])&&ge[tt].length===3?De.push([ne(Object.assign({},Ne,{text:ge[tt][0]})).text,ge[tt][1],ge[tt][2]]):De.push(ne(Object.assign({},Ne,{text:ge[tt]})).text);Z.text=De}else Z.text=ne(Object.assign({},Ne,{text:ge})).text}])}(Mi),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}}(Mi.API),function(b){b.__bidiEngine__=b.prototype.__bidiEngine__=function(M){var ne,Z,ge,De,Ne,tt,yt,vt=u,kt=[[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 an=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=an(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&&!De){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":Z=!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&&Br(xe,ye,{hiLevel:Mr}),xe.reverse(),nr&&nr.reverse(),xe.join("")},Br=function(er,nr,ye){var xe,et,st,gt,ft,Ut=-1,$t=er.length,sr=0,ze=[],_e=Mr?Ve:kt,wt=[];for(pr=!1,ne=!1,Z=!1,et=0;et<$t;et++)wt[et]=an(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}Z&&function(jt,Vt,ur){for(var It=0;It<ur;It++)if(jt[It]==="S"){Vt[It]=Mr;for(var yr=It-1;yr>=0&&jt[yr]==="WS";yr--)Vt[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=[]),Br(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;De===void 0&&(De=Rn(et)),tt===void 0&&(tt=Rn(et))}(er,nr),ge||!Ne||tt)if(ge&&Ne&&De^tt)Mr=De?1:0,er=pn(er,nr,ye);else if(!ge&&Ne&&tt)Mr=De?1:0,er=Nn(er,nr,ye),er=pn(er,nr);else if(!ge||De||Ne||tt){if(ge&&!Ne&&De^tt)er=pn(er,nr),De?(Mr=0,er=Nn(er,nr,ye)):(Mr=1,er=Nn(er,nr,ye),er=pn(er,nr));else if(ge&&De&&!Ne&&tt)Mr=1,er=Nn(er,nr,ye),er=pn(er,nr);else if(!ge&&!Ne&&De^tt){var xe=yt;De?(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=De?1:0,er=Nn(er,nr,ye);return er},this.__bidiEngine__.setOptions=function(er){er&&(ge=er.isInputVisual,Ne=er.isOutputVisual,De=er.isInputRtl,tt=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,Z=(M.x,M.y,M.options||{}),ge=(M.mutex,Z.lang,[]);if(Z.isInputVisual=typeof Z.isInputVisual!="boolean"||Z.isInputVisual,y.setOptions(Z),Object.prototype.toString.call(ne)==="[object Array]"){var De=0;for(ge=[],De=0;De<ne.length;De+=1)Object.prototype.toString.call(ne[De])==="[object Array]"?ge.push([y.doBidiReorder(ne[De][0]),ne[De][1],ne[De][2]]):ge.push([y.doBidiReorder(ne[De])]);M.text=ge}else M.text=y.doBidiReorder(ne);y.setOptions({isInputVisual:!0})}])}(Mi),Mi.API.TTFFont=function(){function b(u){var y;if(this.rawData=u,y=this.contents=new Ya(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 ys(this.contents),this.head=new qs(this),this.name=new oi(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,Z;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ge,De,Ne,tt;for(tt=[],ge=0,De=(Ne=this.bbox).length;ge<De;ge++)u=Ne[ge],tt.push(Math.round(u*this.scaleFactor));return tt}.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=(Z=this.familyClass)===1||Z===2||Z===3||Z===4||Z===5||Z===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,Z,ge,De;for(ge=0,Z=0,De=(u=""+u).length;0<=De?Z<De:Z>De;Z=0<=De?++Z:--Z)ne=u.charCodeAt(Z),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,Ya=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,Z,ge,De,Ne;return u=this.readByte(),y=this.readByte(),M=this.readByte(),ne=this.readByte(),Z=this.readByte(),ge=this.readByte(),De=this.readByte(),Ne=this.readByte(),128&u?-1*(72057594037927940*(255^u)+281474976710656*(255^y)+1099511627776*(255^M)+4294967296*(255^ne)+16777216*(255^Z)+65536*(255^ge)+256*(255^De)+(255^Ne)+1):72057594037927940*u+281474976710656*y+1099511627776*M+4294967296*ne+16777216*Z+65536*ge+256*De+Ne},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,Z;for(Z=[],M=0,ne=u.length;M<ne;M++)y=u[M],Z.push(this.writeByte(y));return Z},b}(),ys=function(){var b;function u(y){var M,ne,Z;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,Z=this.tableCount;0<=Z?ne<Z:ne>Z;ne=0<=Z?++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,Z,ge,De,Ne,tt,yt,vt,kt,Ve,cr,tr;for(tr in Ve=Object.keys(y).length,Ne=Math.log(2),vt=16*Math.floor(Math.log(Ve)/Ne),ge=Math.floor(vt/Ne),yt=16*Ve-vt,(ne=new Ya).writeInt(this.scalarType),ne.writeShort(Ve),ne.writeShort(vt),ne.writeShort(ge),ne.writeShort(yt),Z=16*Ve,tt=ne.pos+Z,De=null,cr=[],y)for(kt=y[tr],ne.writeString(tr),ne.writeInt(b(kt)),ne.writeInt(tt),ne.writeInt(kt.length),cr=cr.concat(kt),tr==="head"&&(De=tt),tt+=kt.length;tt%4;)cr.push(0),tt++;return ne.write(cr),M=2981146554-b(ne.data),ne.pos=De+8,ne.writeUInt32(M),ne.data},b=function(y){var M,ne,Z,ge;for(y=ic.call(y);y.length%4;)y.push(0);for(Z=new Ya(y),ne=0,M=0,ge=y.length;M<ge;M=M+=4)ne+=Z.readUInt32();return 4294967295&ne},u}(),es={}.hasOwnProperty,Cs=function(b,u){for(var y in u)es.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 Ya).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,Z,ge,De,Ne,tt,yt,vt,kt,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(Ne=0;Ne<256;++Ne)this.codeMap[Ne]=u.readByte();break;case 4:for(Ve=u.readUInt16(),kt=Ve/2,u.pos+=6,Z=function(){var an,Rn;for(Rn=[],Ne=an=0;0<=kt?an<kt:an>kt;Ne=0<=kt?++an:--an)Rn.push(u.readUInt16());return Rn}(),u.pos+=2,tr=function(){var an,Rn;for(Rn=[],Ne=an=0;0<=kt?an<kt:an>kt;Ne=0<=kt?++an:--an)Rn.push(u.readUInt16());return Rn}(),tt=function(){var an,Rn;for(Rn=[],Ne=an=0;0<=kt?an<kt:an>kt;Ne=0<=kt?++an:--an)Rn.push(u.readUInt16());return Rn}(),yt=function(){var an,Rn;for(Rn=[],Ne=an=0;0<=kt?an<kt:an>kt;Ne=0<=kt?++an:--an)Rn.push(u.readUInt16());return Rn}(),ne=(this.length-u.pos+this.offset)/2,De=function(){var an,Rn;for(Rn=[],Ne=an=0;0<=ne?an<ne:an>ne;Ne=0<=ne?++an:--an)Rn.push(u.readUInt16());return Rn}(),Ne=Qt=0,Mr=Z.length;Qt<Mr;Ne=++Qt)for(dr=Z[Ne],M=pr=cr=tr[Ne];cr<=dr?pr<=dr:pr>=dr;M=cr<=dr?++pr:--pr)yt[Ne]===0?ge=M+tt[Ne]:(ge=De[yt[Ne]/2+(M-cr)-(kt-Ne)]||0)!==0&&(ge+=tt[Ne]),this.codeMap[M]=65535&ge}u.pos=vt}return b.encode=function(u,y){var M,ne,Z,ge,De,Ne,tt,yt,vt,kt,Ve,cr,tr,dr,Qt,pr,Mr,an,Rn,di,pn,Br,xn,Nn,er,nr,ye,xe,et,st,gt,ft,Ut,$t,sr,ze,_e,wt,jt,Vt,ur,It,yr,Wr,$r,cn;switch(xe=new Ya,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},Z={},et=0,Ut=ge.length;et<Ut;et++)pr[yr=u[ne=ge[et]]]==null&&(pr[yr]=++tr),Z[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:Z,subtable:xe.data,maxGlyphID:tr+1};case"unicode":for(nr=[],vt=[],Mr=0,pr={},M={},Qt=tt=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]},De=pr[Rn]-ne,Qt!=null&&De===tt||(Qt&&vt.push(Qt),nr.push(ne),tt=De),Qt=ne;for(Qt&&vt.push(Qt),vt.push(65535),nr.push(65535),Nn=2*(xn=nr.length),Br=2*Math.pow(Math.log(xn)/Math.LN2,2),kt=Math.log(Br/2)/Math.LN2,pn=2*xn-Br,Ne=[],di=[],Ve=[],cr=gt=0,sr=nr.length;gt<sr;cr=++gt){if(er=nr[cr],yt=vt[cr],er===65535){Ne.push(0),di.push(0);break}if(er-(ye=M[er].new)>=32768)for(Ne.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 Ne.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(Br),xe.writeUInt16(kt),xe.writeUInt16(pn),ur=0,ze=vt.length;ur<ze;ur++)ne=vt[ur],xe.writeUInt16(ne);for(xe.writeUInt16(0),It=0,_e=nr.length;It<_e;It++)ne=nr[It],xe.writeUInt16(ne);for(Wr=0,wt=Ne.length;Wr<wt;Wr++)De=Ne[Wr],xe.writeUInt16(De);for($r=0,jt=di.length;$r<jt;$r++)an=di[$r],xe.writeUInt16(an);for(cn=0,Vt=Ve.length;cn<Vt;cn++)tr=Ve[cn],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,Z;for(y.pos=this.offset,this.version=y.readUInt16(),Z=y.readUInt16(),this.tables=[],this.unicode=null,ne=0;0<=Z?ne<Z:ne>Z;ne=0<=Z?++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,Z;return M==null&&(M="macroman"),ne=El.encode(y,M),(Z=new Ya).writeUInt16(0),Z.writeUInt16(1),ne.table=Z.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,Z;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=[],Z=[];y.pos<this.offset+this.length;)M=y.readByte(),Z.push(this.names.push(y.readString(M)));return Z;case 151552:return ne=y.readUInt16(),this.offsets=y.read(ne);case 196608:break;case 262144:return this.map=function(){var De,Ne,tt;for(tt=[],ge=De=0,Ne=this.file.maxp.numGlyphs;0<=Ne?De<Ne:De>Ne;ge=0<=Ne?++De:--De)tt.push(y.readUInt32());return tt}.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},oi=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,Z,ge,De,Ne,tt,yt,vt,kt,Ve;for(y.pos=this.offset,y.readShort(),M=y.readShort(),Ne=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+Ne+y.readShort()});for(tt={},ge=vt=0,kt=ne.length;vt<kt;ge=++vt)Z=ne[ge],y.pos=Z.offset,yt=y.readString(Z.length),De=new Pl(yt,Z),tt[Ve=Z.nameID]==null&&(tt[Ve]=[]),tt[Z.nameID].push(De);this.strings=tt,this.copyright=tt[0],this.fontFamily=tt[1],this.fontSubfamily=tt[2],this.uniqueSubfamily=tt[3],this.fontName=tt[4],this.version=tt[5];try{this.postscriptName=tt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(cr){this.postscriptName=tt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=tt[7],this.manufacturer=tt[8],this.designer=tt[9],this.description=tt[10],this.vendorUrl=tt[11],this.designerUrl=tt[12],this.license=tt[13],this.licenseUrl=tt[14],this.preferredFamily=tt[15],this.preferredSubfamily=tt[17],this.compatibleFull=tt[18],this.sampleText=tt[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,Z,ge,De,Ne,tt;for(y.pos=this.offset,this.metrics=[],M=0,Ne=this.file.hhea.numberOfMetrics;0<=Ne?M<Ne:M>Ne;M=0<=Ne?++M:--M)this.metrics.push({advance:y.readUInt16(),lsb:y.readInt16()});for(Z=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var yt,vt;for(vt=[],M=yt=0;0<=Z?yt<Z:yt>Z;M=0<=Z?++yt:--yt)vt.push(y.readInt16());return vt}(),this.widths=function(){var yt,vt,kt,Ve;for(Ve=[],yt=0,vt=(kt=this.metrics).length;yt<vt;yt++)ge=kt[yt],Ve.push(ge.advance);return Ve}.call(this),ne=this.widths[this.widths.length-1],tt=[],M=De=0;0<=Z?De<Z:De>Z;M=0<=Z?++De:--De)tt.push(this.widths.push(ne));return tt},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,Z,ge,De,Ne,tt,yt,vt,kt;return y in this.cache?this.cache[y]:(ge=this.file.loca,M=this.file.contents,ne=ge.indexOf(y),(Z=ge.lengthOf(y))===0?this.cache[y]=null:(M.pos=this.offset+ne,De=(Ne=new Ya(M.read(Z))).readShort(),yt=Ne.readShort(),kt=Ne.readShort(),tt=Ne.readShort(),vt=Ne.readShort(),this.cache[y]=De===-1?new sc(Ne,yt,kt,tt,vt):new du(Ne,De,yt,kt,tt,vt),this.cache[y]))},u.prototype.encode=function(y,M,ne){var Z,ge,De,Ne,tt;for(De=[],ge=[],Ne=0,tt=M.length;Ne<tt;Ne++)Z=y[M[Ne]],ge.push(De.length),Z&&(De=De.concat(Z.encode(ne)));return ge.push(De.length),{table:De,offsets:ge}},u}(),du=function(){function b(u,y,M,ne,Z,ge){this.raw=u,this.numberOfContours=y,this.xMin=M,this.yMin=ne,this.xMax=Z,this.yMax=ge,this.compound=!1}return b.prototype.encode=function(){return this.raw.data},b}(),sc=function(){function b(u,y,M,ne,Z){var ge,De;for(this.raw=u,this.xMin=y,this.yMin=M,this.xMax=ne,this.yMax=Z,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ge=this.raw;De=ge.readShort(),this.glyphOffsets.push(ge.pos),this.glyphIDs.push(ge.readUInt16()),32&De;)ge.pos+=1&De?4:2,128&De?ge.pos+=8:64&De?ge.pos+=4:8&De&&(ge.pos+=2)}return b.prototype.encode=function(){var u,y,M;for(y=new Ya(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 Z,ge;for(ge=[],ne=0,Z=this.length;ne<Z;ne+=2)ge.push(2*y.readUInt16());return ge}.call(this):function(){var Z,ge;for(ge=[],ne=0,Z=this.length;ne<Z;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),Z=0,ge=0,De=0;De<ne.length;++De)if(ne[De]=Z,ge<M.length&&M[ge]==De){++ge,ne[De]=Z;var Ne=this.offsets[De],tt=this.offsets[De+1]-Ne;tt>0&&(Z+=tt)}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,Z;for(y in ne=this.font.cmap.tables[0].codeMap,u={},Z=this.subset)M=Z[y],u[y]=ne[M];return u},b.prototype.glyphsFor=function(u){var y,M,ne,Z,ge,De,Ne;for(ne={},ge=0,De=u.length;ge<De;ge++)ne[Z=u[ge]]=this.font.glyf.glyphFor(Z);for(Z in y=[],ne)(M=ne[Z])!=null&&M.compound&&y.push.apply(y,M.glyphIDs);if(y.length>0)for(Z in Ne=this.glyphsFor(y))M=Ne[Z],ne[Z]=M;return ne},b.prototype.encode=function(u,y){var M,ne,Z,ge,De,Ne,tt,yt,vt,kt,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[(Ne=Qt[ne]).old]=Ne.new;for(cr in kt=M.maxGlyphID,ge)cr in Ve||(Ve[cr]=kt++);return yt=function(pr){var Mr,an;for(Mr in an={},pr)an[pr[Mr]]=Mr;return an}(Ve),vt=Object.keys(yt).sort(function(pr,Mr){return pr-Mr}),tr=function(){var pr,Mr,an;for(an=[],pr=0,Mr=vt.length;pr<Mr;pr++)De=vt[pr],an.push(yt[De]);return an}(),Z=this.font.glyf.encode(ge,tr,Ve),tt=this.font.loca.encode(Z.offsets,tr),dr={cmap:this.font.cmap.raw(),glyf:Z.table,loca:tt,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}();Mi.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,Z,ge;if(Array.isArray(y))return"["+function(){var De,Ne,tt;for(tt=[],De=0,Ne=y.length;De<Ne;De++)M=y[De],tt.push(u.convert(M));return tt}().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 Z=["<<"],y)ge=y[ne],Z.push("/"+ne+" "+u.convert(ge));return Z.push(">>"),Z.join(`
|
|
|
`)}return""+y},u}();var oc=Mi},86129:function(bn,Wt,g){var we=g(19208).lW,Fe=g(97671);(function(se){bn.exports=se()})(function(){return function se(ke,ie,Y){function O(o,L){if(!ie[o]){if(!ke[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:{}};ke[o][0].call(A.exports,function(m){var S=ke[o][1][m];return O(S||m)},A,A.exports,se,ke,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,ke,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,ke,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)},ke.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(se,ke,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,ke,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}();ke.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,ke,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,ke,ie){"use strict";var Y=null;Y=typeof Promise!="undefined"?Promise:se("lie"),ke.exports={Promise:Y}},{lie:37}],7:[function(se,ke,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,ke,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,z=A.compression,le=H!==o.utf8encode,J=I.transformTo("string",H(B.name)),be=I.transformTo("string",o.utf8encode(B.name)),Ce=B.comment,Le=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,N={crc32:0,compressedSize:0,uncompressedSize:0};m&&!S||(N.crc32=A.crc32,N.compressedSize=A.compressedSize,N.uncompressedSize=A.uncompressedSize);var X=0;m&&(X|=8),le||!me&&!T||(X|=2048);var pe=0,qe=0;ve&&(pe|=16),F==="UNIX"?(qe=798,pe|=function(rt,Rt){var lr=rt;return rt||(lr=Rt?16893:33204),(65535&lr)<<16}(B.unixPermissions,ve)):(qe=20,pe|=function(rt){return 63&(rt||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(Le),4)+ae,Ee+="uc"+Y(he.length,2)+he);var at="";return at+=`
|
|
|
\0`,at+=Y(X,2),at+=z.magic,at+=Y(V,2),at+=Y(ee,2),at+=Y(N.crc32,4),at+=Y(N.compressedSize,4),at+=Y(N.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(qe,2)+at+Y(Le.length,2)+"\0\0\0\0"+Y(pe,4)+Y($,4)+J+Ee+Le}}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 z=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(z.length,2)+z}(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()},ke.exports=a},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(se,ke,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,ke,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"),ke.exports=Y},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(se,ke,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()})}ke.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,ke,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)},ke.exports=I},{"../stream/GenericWorker":28,"../utils":32}],13:[function(se,ke,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()},ke.exports=O},{"../utils":32,"readable-stream":16}],14:[function(se,ke,ie){"use strict";ke.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,ke,ie){"use strict";function Y(B,z,le){var J,be=I.getTypeOf(z),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 Le=be==="string"&&Ce.binary===!1&&Ce.base64===!1;le&&le.binary!==void 0||(Ce.binary=!Le),(z instanceof p&&z.uncompressedSize===0||Ce.dir||!z||z.length===0)&&(Ce.base64=!1,Ce.binary=!0,z="",Ce.compression="STORE",be="string");var ae=null;ae=z instanceof p||z instanceof n?z:m.isNode&&m.isStream(z)?new S(B,z):I.prepareContent(B,z,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 z=B.lastIndexOf("/");return 0<z?B.substring(0,z):""},F=function(B){return B.slice(-1)!=="/"&&(B+="/"),B},H=function(B,z){return z=z!==void 0?z:L.createFolders,B=F(B),this.files[B]||Y.call(this,B,null,{dir:!0,createFolders:z}),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 z,le,J;for(z in this.files)J=this.files[z],(le=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&B(le,J)},filter:function(B){var z=[];return this.forEach(function(le,J){B(le,J)&&z.push(J)}),z},file:function(B,z,le){if(arguments.length!==1)return B=this.root+B,Y.call(this,B,z,le),this;if(V(B)){var J=B;return this.filter(function(Ce,Le){return!Le.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 z=this.root+B,le=H.call(this,z),J=this.clone();return J.root=le.name,J},remove:function(B){B=this.root+B;var z=this.files[B];if(z||(B.slice(-1)!=="/"&&(B+="/"),z=this.files[B]),z&&!z.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 z,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||"";z=A.generateWorker(this,le,J)}catch(be){(z=new n("error")).error(be)}return new o(z,le.type||"string",le.mimeType)},generateAsync:function(B,z){return this.generateInternalStream(B).accumulate(z)},generateNodeStream:function(B,z){return(B=B||{}).type||(B.type="nodebuffer"),this.generateInternalStream(B).toNodejsStream(z)}};ke.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,ke,ie){"use strict";ke.exports=se("stream")},{stream:void 0}],17:[function(se,ke,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},ke.exports=O},{"../utils":32,"./DataReader":18}],18:[function(se,ke,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))}},ke.exports=O},{"../utils":32}],19:[function(se,ke,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},ke.exports=O},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(se,ke,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},ke.exports=O},{"../utils":32,"./DataReader":18}],21:[function(se,ke,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},ke.exports=O},{"../utils":32,"./ArrayReader":17}],22:[function(se,ke,ie){"use strict";var Y=se("../utils"),O=se("../support"),I=se("./ArrayReader"),n=se("./StringReader"),o=se("./NodeBufferReader"),L=se("./Uint8ArrayReader");ke.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,ke,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,ke,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})},ke.exports=I},{"../utils":32,"./GenericWorker":28}],25:[function(se,ke,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)},ke.exports=I},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(se,ke,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)},ke.exports=I},{"../utils":32,"./GenericWorker":28}],27:[function(se,ke,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}})},ke.exports=I},{"../utils":32,"./GenericWorker":28}],28:[function(se,ke,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}},ke.exports=Y},{}],29:[function(se,ke,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(z,le){H.push(z),S&&S(le)}).on("error",function(z){H=[],F(z)}).on("end",function(){try{var z=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,Le=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(Le=new Uint8Array(ae),be=0;be<J.length;be++)Le.set(J[be],Ce),Ce+=J[be].length;return Le;case"nodebuffer":return we.concat(J);default:throw new Error("concat : unsupported type '"+le+"'")}}(V,H),B);$(z)}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)}},ke.exports=A},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(se,ke,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,ke,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,ke,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,z){var le=new FileReader;le.onload=function(J){B(J.target.result)},le.onerror=function(J){z(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(z){return L(z,Y.uint8array?new Uint8Array(z.length):new Array(z.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,ke,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()}},ke.exports=L},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(se,ke,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}},ke.exports=a},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(se,ke,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;ke.exports=Y},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(se,ke,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}ke.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,ke,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 z=$(function(){H(B,ee)});z.status==="error"&&ee(z.value)}function $(F,H){var V={};try{V.value=F(H),V.status="success"}catch(ee){V.status="error",V.value=ee}return V}(ke.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,z=F.queue.length;++B<z;)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),z=0,le=-1,J=new this(O);++le<V;)be(F[le],le);return J;function be(Ce,Le){H.resolve(Ce).then(function(ae){B[Le]=ae,++z!==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,z=new this(O);++B<V;)le=F[B],H.resolve(le).then(function(J){ee||(ee=!0,I.resolve(z,J))},function(J){ee||(ee=!0,I.reject(z,J))});var le;return z}},{immediate:36}],38:[function(se,ke,ie){"use strict";var Y={};(0,se("./lib/utils/common").assign)(Y,se("./lib/deflate"),se("./lib/inflate"),se("./lib/zlib/constants")),ke.exports=Y},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(se,ke,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,z=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(z),B.next_out=0,B.avail_out=z),(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,ke,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,z,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&&(z=typeof be=="string"?I.string2buf(be):a.call(be)==="[object ArrayBuffer]"?new Uint8Array(be):be,F=Y.inflateSetDictionary(this.strm,z)),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,ke,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,ke,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,ke,ie){"use strict";ke.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,ke,ie){"use strict";ke.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,ke,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}();ke.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,ke,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,z=19,le=2*ee+1,J=15,be=3,Ce=258,Le=Ce+be+1,ae=42,me=113,T=1,Ee=2,oe=3,he=4;function ve(Ue,St){return Ue.msg=L[St],St}function _(Ue){return(Ue<<1)-(4<Ue?9:0)}function N(Ue){for(var St=Ue.length;0<=--St;)Ue[St]=0}function X(Ue){var St=Ue.state,G=St.pending;G>Ue.avail_out&&(G=Ue.avail_out),G!==0&&(O.arraySet(Ue.output,St.pending_buf,St.pending_out,G,Ue.next_out),Ue.next_out+=G,St.pending_out+=G,Ue.total_out+=G,Ue.avail_out-=G,St.pending-=G,St.pending===0&&(St.pending_out=0))}function pe(Ue,St){I._tr_flush_block(Ue,0<=Ue.block_start?Ue.block_start:-1,Ue.strstart-Ue.block_start,St),Ue.block_start=Ue.strstart,X(Ue.strm)}function qe(Ue,St){Ue.pending_buf[Ue.pending++]=St}function at(Ue,St){Ue.pending_buf[Ue.pending++]=St>>>8&255,Ue.pending_buf[Ue.pending++]=255&St}function rt(Ue,St){var G,v,f=Ue.max_chain_length,D=Ue.strstart,fe=Ue.prev_length,W=Ue.nice_match,P=Ue.strstart>Ue.w_size-Le?Ue.strstart-(Ue.w_size-Le):0,te=Ue.window,Ie=Ue.w_mask,Te=Ue.prev,Se=Ue.strstart+Ce,Ge=te[D+fe-1],dt=te[D+fe];Ue.prev_length>=Ue.good_match&&(f>>=2),W>Ue.lookahead&&(W=Ue.lookahead);do if(te[(G=St)+fe]===dt&&te[G+fe-1]===Ge&&te[G]===te[D]&&te[++G]===te[D+1]){D+=2,G++;do;while(te[++D]===te[++G]&&te[++D]===te[++G]&&te[++D]===te[++G]&&te[++D]===te[++G]&&te[++D]===te[++G]&&te[++D]===te[++G]&&te[++D]===te[++G]&&te[++D]===te[++G]&&D<Se);if(v=Ce-(Se-D),D=Se-Ce,fe<v){if(Ue.match_start=St,W<=(fe=v))break;Ge=te[D+fe-1],dt=te[D+fe]}}while((St=Te[St&Ie])>P&&--f!=0);return fe<=Ue.lookahead?fe:Ue.lookahead}function Rt(Ue){var St,G,v,f,D,fe,W,P,te,Ie,Te=Ue.w_size;do{if(f=Ue.window_size-Ue.lookahead-Ue.strstart,Ue.strstart>=Te+(Te-Le)){for(O.arraySet(Ue.window,Ue.window,Te,Te,0),Ue.match_start-=Te,Ue.strstart-=Te,Ue.block_start-=Te,St=G=Ue.hash_size;v=Ue.head[--St],Ue.head[St]=Te<=v?v-Te:0,--G;);for(St=G=Te;v=Ue.prev[--St],Ue.prev[St]=Te<=v?v-Te:0,--G;);f+=Te}if(Ue.strm.avail_in===0)break;if(fe=Ue.strm,W=Ue.window,P=Ue.strstart+Ue.lookahead,te=f,Ie=void 0,Ie=fe.avail_in,te<Ie&&(Ie=te),G=Ie===0?0:(fe.avail_in-=Ie,O.arraySet(W,fe.input,fe.next_in,Ie,P),fe.state.wrap===1?fe.adler=n(fe.adler,W,Ie,P):fe.state.wrap===2&&(fe.adler=o(fe.adler,W,Ie,P)),fe.next_in+=Ie,fe.total_in+=Ie,Ie),Ue.lookahead+=G,Ue.lookahead+Ue.insert>=be)for(D=Ue.strstart-Ue.insert,Ue.ins_h=Ue.window[D],Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[D+1])&Ue.hash_mask;Ue.insert&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[D+be-1])&Ue.hash_mask,Ue.prev[D&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=D,D++,Ue.insert--,!(Ue.lookahead+Ue.insert<be)););}while(Ue.lookahead<Le&&Ue.strm.avail_in!==0)}function lr(Ue,St){for(var G,v;;){if(Ue.lookahead<Le){if(Rt(Ue),Ue.lookahead<Le&&St===p)return T;if(Ue.lookahead===0)break}if(G=0,Ue.lookahead>=be&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+be-1])&Ue.hash_mask,G=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart),G!==0&&Ue.strstart-G<=Ue.w_size-Le&&(Ue.match_length=rt(Ue,G)),Ue.match_length>=be)if(v=I._tr_tally(Ue,Ue.strstart-Ue.match_start,Ue.match_length-be),Ue.lookahead-=Ue.match_length,Ue.match_length<=Ue.max_lazy_match&&Ue.lookahead>=be){for(Ue.match_length--;Ue.strstart++,Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+be-1])&Ue.hash_mask,G=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart,--Ue.match_length!=0;);Ue.strstart++}else Ue.strstart+=Ue.match_length,Ue.match_length=0,Ue.ins_h=Ue.window[Ue.strstart],Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+1])&Ue.hash_mask;else v=I._tr_tally(Ue,0,Ue.window[Ue.strstart]),Ue.lookahead--,Ue.strstart++;if(v&&(pe(Ue,!1),Ue.strm.avail_out===0))return T}return Ue.insert=Ue.strstart<be-1?Ue.strstart:be-1,St===a?(pe(Ue,!0),Ue.strm.avail_out===0?oe:he):Ue.last_lit&&(pe(Ue,!1),Ue.strm.avail_out===0)?T:Ee}function Jt(Ue,St){for(var G,v,f;;){if(Ue.lookahead<Le){if(Rt(Ue),Ue.lookahead<Le&&St===p)return T;if(Ue.lookahead===0)break}if(G=0,Ue.lookahead>=be&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+be-1])&Ue.hash_mask,G=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart),Ue.prev_length=Ue.match_length,Ue.prev_match=Ue.match_start,Ue.match_length=be-1,G!==0&&Ue.prev_length<Ue.max_lazy_match&&Ue.strstart-G<=Ue.w_size-Le&&(Ue.match_length=rt(Ue,G),Ue.match_length<=5&&(Ue.strategy===1||Ue.match_length===be&&4096<Ue.strstart-Ue.match_start)&&(Ue.match_length=be-1)),Ue.prev_length>=be&&Ue.match_length<=Ue.prev_length){for(f=Ue.strstart+Ue.lookahead-be,v=I._tr_tally(Ue,Ue.strstart-1-Ue.prev_match,Ue.prev_length-be),Ue.lookahead-=Ue.prev_length-1,Ue.prev_length-=2;++Ue.strstart<=f&&(Ue.ins_h=(Ue.ins_h<<Ue.hash_shift^Ue.window[Ue.strstart+be-1])&Ue.hash_mask,G=Ue.prev[Ue.strstart&Ue.w_mask]=Ue.head[Ue.ins_h],Ue.head[Ue.ins_h]=Ue.strstart),--Ue.prev_length!=0;);if(Ue.match_available=0,Ue.match_length=be-1,Ue.strstart++,v&&(pe(Ue,!1),Ue.strm.avail_out===0))return T}else if(Ue.match_available){if((v=I._tr_tally(Ue,0,Ue.window[Ue.strstart-1]))&&pe(Ue,!1),Ue.strstart++,Ue.lookahead--,Ue.strm.avail_out===0)return T}else Ue.match_available=1,Ue.strstart++,Ue.lookahead--}return Ue.match_available&&(v=I._tr_tally(Ue,0,Ue.window[Ue.strstart-1]),Ue.match_available=0),Ue.insert=Ue.strstart<be-1?Ue.strstart:be-1,St===a?(pe(Ue,!0),Ue.strm.avail_out===0?oe:he):Ue.last_lit&&(pe(Ue,!1),Ue.strm.avail_out===0)?T:Ee}function Ze(Ue,St,G,v,f){this.good_length=Ue,this.max_lazy=St,this.nice_length=G,this.max_chain=v,this.func=f}function Er(){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*z+1)),N(this.dyn_ltree),N(this.dyn_dtree),N(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),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new O.Buf16(2*ee+1),N(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 Cr(Ue){var St;return Ue&&Ue.state?(Ue.total_in=Ue.total_out=0,Ue.data_type=F,(St=Ue.state).pending=0,St.pending_out=0,St.wrap<0&&(St.wrap=-St.wrap),St.status=St.wrap?ae:me,Ue.adler=St.wrap===2?0:1,St.last_flush=p,I._tr_init(St),A):ve(Ue,m)}function Kr(Ue){var St=Cr(Ue);return St===A&&function(G){G.window_size=2*G.w_size,N(G.head),G.max_lazy_match=Y[G.level].max_lazy,G.good_match=Y[G.level].good_length,G.nice_match=Y[G.level].nice_length,G.max_chain_length=Y[G.level].max_chain,G.strstart=0,G.block_start=0,G.lookahead=0,G.insert=0,G.match_length=G.prev_length=be-1,G.match_available=0,G.ins_h=0}(Ue.state),St}function _r(Ue,St,G,v,f,D){if(!Ue)return m;var fe=1;if(St===S&&(St=6),v<0?(fe=0,v=-v):15<v&&(fe=2,v-=16),f<1||V<f||G!==H||v<8||15<v||St<0||9<St||D<0||$<D)return ve(Ue,m);v===8&&(v=9);var W=new Er;return(Ue.state=W).strm=Ue,W.wrap=fe,W.gzhead=null,W.w_bits=v,W.w_size=1<<W.w_bits,W.w_mask=W.w_size-1,W.hash_bits=f+7,W.hash_size=1<<W.hash_bits,W.hash_mask=W.hash_size-1,W.hash_shift=~~((W.hash_bits+be-1)/be),W.window=new O.Buf8(2*W.w_size),W.head=new O.Buf16(W.hash_size),W.prev=new O.Buf16(W.w_size),W.lit_bufsize=1<<f+6,W.pending_buf_size=4*W.lit_bufsize,W.pending_buf=new O.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=St,W.strategy=D,W.method=G,Kr(Ue)}Y=[new Ze(0,0,0,0,function(Ue,St){var G=65535;for(G>Ue.pending_buf_size-5&&(G=Ue.pending_buf_size-5);;){if(Ue.lookahead<=1){if(Rt(Ue),Ue.lookahead===0&&St===p)return T;if(Ue.lookahead===0)break}Ue.strstart+=Ue.lookahead,Ue.lookahead=0;var v=Ue.block_start+G;if((Ue.strstart===0||Ue.strstart>=v)&&(Ue.lookahead=Ue.strstart-v,Ue.strstart=v,pe(Ue,!1),Ue.strm.avail_out===0)||Ue.strstart-Ue.block_start>=Ue.w_size-Le&&(pe(Ue,!1),Ue.strm.avail_out===0))return T}return Ue.insert=0,St===a?(pe(Ue,!0),Ue.strm.avail_out===0?oe:he):(Ue.strstart>Ue.block_start&&(pe(Ue,!1),Ue.strm.avail_out),T)}),new Ze(4,4,8,4,lr),new Ze(4,5,16,8,lr),new Ze(4,6,32,32,lr),new Ze(4,4,16,16,Jt),new Ze(8,16,32,32,Jt),new Ze(8,16,128,128,Jt),new Ze(8,32,128,256,Jt),new Ze(32,128,258,1024,Jt),new Ze(32,258,258,4096,Jt)],ie.deflateInit=function(Ue,St){return _r(Ue,St,H,15,8,0)},ie.deflateInit2=_r,ie.deflateReset=Kr,ie.deflateResetKeep=Cr,ie.deflateSetHeader=function(Ue,St){return Ue&&Ue.state?Ue.state.wrap!==2?m:(Ue.state.gzhead=St,A):m},ie.deflate=function(Ue,St){var G,v,f,D;if(!Ue||!Ue.state||5<St||St<0)return Ue?ve(Ue,m):m;if(v=Ue.state,!Ue.output||!Ue.input&&Ue.avail_in!==0||v.status===666&&St!==a)return ve(Ue,Ue.avail_out===0?-5:m);if(v.strm=Ue,G=v.last_flush,v.last_flush=St,v.status===ae)if(v.wrap===2)Ue.adler=0,qe(v,31),qe(v,139),qe(v,8),v.gzhead?(qe(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)),qe(v,255&v.gzhead.time),qe(v,v.gzhead.time>>8&255),qe(v,v.gzhead.time>>16&255),qe(v,v.gzhead.time>>24&255),qe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),qe(v,255&v.gzhead.os),v.gzhead.extra&&v.gzhead.extra.length&&(qe(v,255&v.gzhead.extra.length),qe(v,v.gzhead.extra.length>>8&255)),v.gzhead.hcrc&&(Ue.adler=o(Ue.adler,v.pending_buf,v.pending,0)),v.gzindex=0,v.status=69):(qe(v,0),qe(v,0),qe(v,0),qe(v,0),qe(v,0),qe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),qe(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,Ue.adler>>>16),at(v,65535&Ue.adler)),Ue.adler=1}if(v.status===69)if(v.gzhead.extra){for(f=v.pending;v.gzindex<(65535&v.gzhead.extra.length)&&(v.pending!==v.pending_buf_size||(v.gzhead.hcrc&&v.pending>f&&(Ue.adler=o(Ue.adler,v.pending_buf,v.pending-f,f)),X(Ue),f=v.pending,v.pending!==v.pending_buf_size));)qe(v,255&v.gzhead.extra[v.gzindex]),v.gzindex++;v.gzhead.hcrc&&v.pending>f&&(Ue.adler=o(Ue.adler,v.pending_buf,v.pending-f,f)),v.gzindex===v.gzhead.extra.length&&(v.gzindex=0,v.status=73)}else v.status=73;if(v.status===73)if(v.gzhead.name){f=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>f&&(Ue.adler=o(Ue.adler,v.pending_buf,v.pending-f,f)),X(Ue),f=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,qe(v,D)}while(D!==0);v.gzhead.hcrc&&v.pending>f&&(Ue.adler=o(Ue.adler,v.pending_buf,v.pending-f,f)),D===0&&(v.gzindex=0,v.status=91)}else v.status=91;if(v.status===91)if(v.gzhead.comment){f=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>f&&(Ue.adler=o(Ue.adler,v.pending_buf,v.pending-f,f)),X(Ue),f=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,qe(v,D)}while(D!==0);v.gzhead.hcrc&&v.pending>f&&(Ue.adler=o(Ue.adler,v.pending_buf,v.pending-f,f)),D===0&&(v.status=103)}else v.status=103;if(v.status===103&&(v.gzhead.hcrc?(v.pending+2>v.pending_buf_size&&X(Ue),v.pending+2<=v.pending_buf_size&&(qe(v,255&Ue.adler),qe(v,Ue.adler>>8&255),Ue.adler=0,v.status=me)):v.status=me),v.pending!==0){if(X(Ue),Ue.avail_out===0)return v.last_flush=-1,A}else if(Ue.avail_in===0&&_(St)<=_(G)&&St!==a)return ve(Ue,-5);if(v.status===666&&Ue.avail_in!==0)return ve(Ue,-5);if(Ue.avail_in!==0||v.lookahead!==0||St!==p&&v.status!==666){var W=v.strategy===2?function(P,te){for(var Ie;;){if(P.lookahead===0&&(Rt(P),P.lookahead===0)){if(te===p)return T;break}if(P.match_length=0,Ie=I._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++,Ie&&(pe(P,!1),P.strm.avail_out===0))return T}return P.insert=0,te===a?(pe(P,!0),P.strm.avail_out===0?oe:he):P.last_lit&&(pe(P,!1),P.strm.avail_out===0)?T:Ee}(v,St):v.strategy===3?function(P,te){for(var Ie,Te,Se,Ge,dt=P.window;;){if(P.lookahead<=Ce){if(Rt(P),P.lookahead<=Ce&&te===p)return T;if(P.lookahead===0)break}if(P.match_length=0,P.lookahead>=be&&0<P.strstart&&(Te=dt[Se=P.strstart-1])===dt[++Se]&&Te===dt[++Se]&&Te===dt[++Se]){Ge=P.strstart+Ce;do;while(Te===dt[++Se]&&Te===dt[++Se]&&Te===dt[++Se]&&Te===dt[++Se]&&Te===dt[++Se]&&Te===dt[++Se]&&Te===dt[++Se]&&Te===dt[++Se]&&Se<Ge);P.match_length=Ce-(Ge-Se),P.match_length>P.lookahead&&(P.match_length=P.lookahead)}if(P.match_length>=be?(Ie=I._tr_tally(P,1,P.match_length-be),P.lookahead-=P.match_length,P.strstart+=P.match_length,P.match_length=0):(Ie=I._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++),Ie&&(pe(P,!1),P.strm.avail_out===0))return T}return P.insert=0,te===a?(pe(P,!0),P.strm.avail_out===0?oe:he):P.last_lit&&(pe(P,!1),P.strm.avail_out===0)?T:Ee}(v,St):Y[v.level].func(v,St);if(W!==oe&&W!==he||(v.status=666),W===T||W===oe)return Ue.avail_out===0&&(v.last_flush=-1),A;if(W===Ee&&(St===1?I._tr_align(v):St!==5&&(I._tr_stored_block(v,0,0,!1),St===3&&(N(v.head),v.lookahead===0&&(v.strstart=0,v.block_start=0,v.insert=0))),X(Ue),Ue.avail_out===0))return v.last_flush=-1,A}return St!==a?A:v.wrap<=0?1:(v.wrap===2?(qe(v,255&Ue.adler),qe(v,Ue.adler>>8&255),qe(v,Ue.adler>>16&255),qe(v,Ue.adler>>24&255),qe(v,255&Ue.total_in),qe(v,Ue.total_in>>8&255),qe(v,Ue.total_in>>16&255),qe(v,Ue.total_in>>24&255)):(at(v,Ue.adler>>>16),at(v,65535&Ue.adler)),X(Ue),0<v.wrap&&(v.wrap=-v.wrap),v.pending!==0?A:1)},ie.deflateEnd=function(Ue){var St;return Ue&&Ue.state?(St=Ue.state.status)!==ae&&St!==69&&St!==73&&St!==91&&St!==103&&St!==me&&St!==666?ve(Ue,m):(Ue.state=null,St===me?ve(Ue,-3):A):m},ie.deflateSetDictionary=function(Ue,St){var G,v,f,D,fe,W,P,te,Ie=St.length;if(!Ue||!Ue.state||(D=(G=Ue.state).wrap)===2||D===1&&G.status!==ae||G.lookahead)return m;for(D===1&&(Ue.adler=n(Ue.adler,St,Ie,0)),G.wrap=0,Ie>=G.w_size&&(D===0&&(N(G.head),G.strstart=0,G.block_start=0,G.insert=0),te=new O.Buf8(G.w_size),O.arraySet(te,St,Ie-G.w_size,G.w_size,0),St=te,Ie=G.w_size),fe=Ue.avail_in,W=Ue.next_in,P=Ue.input,Ue.avail_in=Ie,Ue.next_in=0,Ue.input=St,Rt(G);G.lookahead>=be;){for(v=G.strstart,f=G.lookahead-(be-1);G.ins_h=(G.ins_h<<G.hash_shift^G.window[v+be-1])&G.hash_mask,G.prev[v&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=v,v++,--f;);G.strstart=v,G.lookahead=be-1,Rt(G)}return G.strstart+=G.lookahead,G.block_start=G.strstart,G.insert=G.lookahead,G.lookahead=0,G.match_length=G.prev_length=be-1,G.match_available=0,Ue.next_in=W,Ue.input=P,Ue.avail_in=fe,G.wrap=D,A},ie.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(se,ke,ie){"use strict";ke.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,ke,ie){"use strict";ke.exports=function(Y,O){var I,n,o,L,p,a,A,m,S,$,F,H,V,ee,B,z,le,J,be,Ce,Le,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,z=(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&z];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(Le=65535&J,V<(be&=15)&&(H+=T[n++]<<V,(V+=8)<be&&(H+=T[n++]<<V,V+=8)),A<(Le+=H&(1<<be)-1)){Y.msg="invalid distance too far back",I.mode=30;break e}if(H>>>=be,V-=be,(be=L-p)<Le){if(S<(be=Le-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-Le,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-Le,me=Ee}}}else if(ae+=$-be,be<Ce){for(Ce-=be;Ee[L++]=F[ae++],--be;);ae=L-Le,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-Le;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,ke,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 z(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 Le(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 z(ae,15)},ie.inflateInit2=z,ie.inflate=function(ae,me){var T,Ee,oe,he,ve,_,N,X,pe,qe,at,rt,Rt,lr,Jt,Ze,Er,Cr,Kr,_r,Ue,St,G,v,f=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,N=ae.avail_out,he=ae.next_in,Ee=ae.input,_=ae.avail_in,X=T.hold,pe=T.bits,qe=_,at=N,St=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,Ue=8+(15&(X>>>=4)),T.wbits===0)T.wbits=Ue;else if(Ue>T.wbits){ae.msg="invalid window size",T.mode=30;break}T.dmax=1<<Ue,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&&(_<(rt=T.length)&&(rt=_),rt&&(T.head&&(Ue=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,rt,Ue)),512&T.flags&&(T.check=I(T.check,Ee,rt,he)),_-=rt,he+=rt,T.length-=rt),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(_===0)break e;for(rt=0;Ue=Ee[he+rt++],T.head&&Ue&&T.length<65536&&(T.head.name+=String.fromCharCode(Ue)),Ue&&rt<_;);if(512&T.flags&&(T.check=I(T.check,Ee,rt,he)),_-=rt,he+=rt,Ue)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(rt=0;Ue=Ee[he+rt++],T.head&&Ue&&T.length<65536&&(T.head.comment+=String.fromCharCode(Ue)),Ue&&rt<_;);if(512&T.flags&&(T.check=I(T.check,Ee,rt,he)),_-=rt,he+=rt,Ue)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=N,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(rt=T.length){if(_<rt&&(rt=_),N<rt&&(rt=N),rt===0)break e;Y.arraySet(oe,Ee,he,rt,ve),_-=rt,he+=rt,N-=rt,ve+=rt,T.length-=rt;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,G={bits:T.lenbits},St=o(0,T.lens,0,19,T.lencode,0,T.work,G),T.lenbits=G.bits,St){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(;Ze=(f=T.lencode[X&(1<<T.lenbits)-1])>>>16&255,Er=65535&f,!((Jt=f>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(Er<16)X>>>=Jt,pe-=Jt,T.lens[T.have++]=Er;else{if(Er===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}Ue=T.lens[T.have-1],rt=3+(3&X),X>>>=2,pe-=2}else if(Er===17){for(v=Jt+3;pe<v;){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}pe-=Jt,Ue=0,rt=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,Ue=0,rt=11+(127&(X>>>=Jt)),X>>>=7,pe-=7}if(T.have+rt>T.nlen+T.ndist){ae.msg="invalid bit length repeat",T.mode=30;break}for(;rt--;)T.lens[T.have++]=Ue}}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,G={bits:T.lenbits},St=o(L,T.lens,0,T.nlen,T.lencode,0,T.work,G),T.lenbits=G.bits,St){ae.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,G={bits:T.distbits},St=o(p,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,G),T.distbits=G.bits,St){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<=N){ae.next_out=ve,ae.avail_out=N,ae.next_in=he,ae.avail_in=_,T.hold=X,T.bits=pe,n(ae,at),ve=ae.next_out,oe=ae.output,N=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;Ze=(f=T.lencode[X&(1<<T.lenbits)-1])>>>16&255,Er=65535&f,!((Jt=f>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(Ze&&!(240&Ze)){for(Cr=Jt,Kr=Ze,_r=Er;Ze=(f=T.lencode[_r+((X&(1<<Cr+Kr)-1)>>Cr)])>>>16&255,Er=65535&f,!(Cr+(Jt=f>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}X>>>=Cr,pe-=Cr,T.back+=Cr}if(X>>>=Jt,pe-=Jt,T.back+=Jt,T.length=Er,Ze===0){T.mode=26;break}if(32&Ze){T.back=-1,T.mode=12;break}if(64&Ze){ae.msg="invalid literal/length code",T.mode=30;break}T.extra=15&Ze,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(;Ze=(f=T.distcode[X&(1<<T.distbits)-1])>>>16&255,Er=65535&f,!((Jt=f>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}if(!(240&Ze)){for(Cr=Jt,Kr=Ze,_r=Er;Ze=(f=T.distcode[_r+((X&(1<<Cr+Kr)-1)>>Cr)])>>>16&255,Er=65535&f,!(Cr+(Jt=f>>>24)<=pe);){if(_===0)break e;_--,X+=Ee[he++]<<pe,pe+=8}X>>>=Cr,pe-=Cr,T.back+=Cr}if(X>>>=Jt,pe-=Jt,T.back+=Jt,64&Ze){ae.msg="invalid distance code",T.mode=30;break}T.offset=Er,T.extra=15&Ze,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(N===0)break e;if(rt=at-N,T.offset>rt){if((rt=T.offset-rt)>T.whave&&T.sane){ae.msg="invalid distance too far back",T.mode=30;break}Rt=rt>T.wnext?(rt-=T.wnext,T.wsize-rt):T.wnext-rt,rt>T.length&&(rt=T.length),lr=T.window}else lr=oe,Rt=ve-T.offset,rt=T.length;for(N<rt&&(rt=N),N-=rt,T.length-=rt;oe[ve++]=lr[Rt++],--rt;);T.length===0&&(T.mode=21);break;case 26:if(N===0)break e;oe[ve++]=T.length,N--,T.mode=21;break;case 27:if(T.wrap){for(;pe<32;){if(_===0)break e;_--,X|=Ee[he++]<<pe,pe+=8}if(at-=N,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=N,(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:St=1;break e;case 30:St=-3;break e;case 31:return-4;case 32:default:return A}return ae.next_out=ve,ae.avail_out=N,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))&&Le(ae,ae.output,ae.next_out,at-ae.avail_out)?(T.mode=31,-4):(qe-=ae.avail_in,at-=ae.avail_out,ae.total_in+=qe,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),(qe==0&&at===0||me===4)&&St===a&&(St=-5),St)},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:Le(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,ke,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];ke.exports=function(L,p,a,A,m,S,$,F){var H,V,ee,B,z,le,J,be,Ce,Le=F.bits,ae=0,me=0,T=0,Ee=0,oe=0,he=0,ve=0,_=0,N=0,X=0,pe=null,qe=0,at=new Y.Buf16(16),rt=new Y.Buf16(16),Rt=null,lr=0;for(ae=0;ae<=15;ae++)at[ae]=0;for(me=0;me<A;me++)at[p[a+me]]++;for(oe=Le,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(rt[1]=0,ae=1;ae<15;ae++)rt[ae+1]=rt[ae]+at[ae];for(me=0;me<A;me++)p[a+me]!==0&&($[rt[p[a+me]]++]=me);if(le=L===0?(pe=Rt=$,19):L===1?(pe=O,qe-=257,Rt=I,lr-=257,256):(pe=n,Rt=o,-1),ae=T,z=S,ve=me=X=0,ee=-1,B=(N=1<<(he=oe))-1,L===1&&852<N||L===2&&592<N)return 1;for(;;){for(J=ae-ve,Ce=$[me]<le?(be=0,$[me]):$[me]>le?(be=Rt[lr+$[me]],pe[qe+$[me]]):(be=96,0),H=1<<ae-ve,T=V=1<<he;m[z+(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),z+=T,_=1<<(he=ae-ve);he+ve<Ee&&!((_-=at[he+ve])<=0);)he++,_<<=1;if(N+=1<<he,L===1&&852<N||L===2&&592<N)return 1;m[ee=X&B]=oe<<24|he<<16|z-S|0}}return X!==0&&(m[z+X]=ae-ve<<24|64<<16|0),F.bits=oe,0}},{"../utils/common":41}],51:[function(se,ke,ie){"use strict";ke.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,ke,ie){"use strict";var Y=se("../utils/common"),O=0,I=1;function n(f){for(var D=f.length;0<=--D;)f[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,z=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],Le=new Array(2*(a+2));n(Le);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 N(f,D,fe,W,P){this.static_tree=f,this.extra_bits=D,this.extra_base=fe,this.elems=W,this.max_length=P,this.has_stree=f&&f.length}function X(f,D){this.dyn_tree=f,this.max_code=0,this.stat_desc=D}function pe(f){return f<256?me[f]:me[256+(f>>>7)]}function qe(f,D){f.pending_buf[f.pending++]=255&D,f.pending_buf[f.pending++]=D>>>8&255}function at(f,D,fe){f.bi_valid>F-fe?(f.bi_buf|=D<<f.bi_valid&65535,qe(f,f.bi_buf),f.bi_buf=D>>F-f.bi_valid,f.bi_valid+=fe-F):(f.bi_buf|=D<<f.bi_valid&65535,f.bi_valid+=fe)}function rt(f,D,fe){at(f,fe[2*D],fe[2*D+1])}function Rt(f,D){for(var fe=0;fe|=1&f,f>>>=1,fe<<=1,0<--D;);return fe>>>1}function lr(f,D,fe){var W,P,te=new Array($+1),Ie=0;for(W=1;W<=$;W++)te[W]=Ie=Ie+fe[W-1]<<1;for(P=0;P<=D;P++){var Te=f[2*P+1];Te!==0&&(f[2*P]=Rt(te[Te]++,Te))}}function Jt(f){var D;for(D=0;D<a;D++)f.dyn_ltree[2*D]=0;for(D=0;D<A;D++)f.dyn_dtree[2*D]=0;for(D=0;D<m;D++)f.bl_tree[2*D]=0;f.dyn_ltree[2*V]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function Ze(f){8<f.bi_valid?qe(f,f.bi_buf):0<f.bi_valid&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function Er(f,D,fe,W){var P=2*D,te=2*fe;return f[P]<f[te]||f[P]===f[te]&&W[D]<=W[fe]}function Cr(f,D,fe){for(var W=f.heap[fe],P=fe<<1;P<=f.heap_len&&(P<f.heap_len&&Er(D,f.heap[P+1],f.heap[P],f.depth)&&P++,!Er(D,W,f.heap[P],f.depth));)f.heap[fe]=f.heap[P],fe=P,P<<=1;f.heap[fe]=W}function Kr(f,D,fe){var W,P,te,Ie,Te=0;if(f.last_lit!==0)for(;W=f.pending_buf[f.d_buf+2*Te]<<8|f.pending_buf[f.d_buf+2*Te+1],P=f.pending_buf[f.l_buf+Te],Te++,W===0?rt(f,P,D):(rt(f,(te=T[P])+p+1,D),(Ie=le[te])!==0&&at(f,P-=Ee[te],Ie),rt(f,te=pe(--W),fe),(Ie=J[te])!==0&&at(f,W-=_[te],Ie)),Te<f.last_lit;);rt(f,V,D)}function _r(f,D){var fe,W,P,te=D.dyn_tree,Ie=D.stat_desc.static_tree,Te=D.stat_desc.has_stree,Se=D.stat_desc.elems,Ge=-1;for(f.heap_len=0,f.heap_max=S,fe=0;fe<Se;fe++)te[2*fe]!==0?(f.heap[++f.heap_len]=Ge=fe,f.depth[fe]=0):te[2*fe+1]=0;for(;f.heap_len<2;)te[2*(P=f.heap[++f.heap_len]=Ge<2?++Ge:0)]=1,f.depth[P]=0,f.opt_len--,Te&&(f.static_len-=Ie[2*P+1]);for(D.max_code=Ge,fe=f.heap_len>>1;1<=fe;fe--)Cr(f,te,fe);for(P=Se;fe=f.heap[1],f.heap[1]=f.heap[f.heap_len--],Cr(f,te,1),W=f.heap[1],f.heap[--f.heap_max]=fe,f.heap[--f.heap_max]=W,te[2*P]=te[2*fe]+te[2*W],f.depth[P]=(f.depth[fe]>=f.depth[W]?f.depth[fe]:f.depth[W])+1,te[2*fe+1]=te[2*W+1]=P,f.heap[1]=P++,Cr(f,te,1),2<=f.heap_len;);f.heap[--f.heap_max]=f.heap[1],function(dt,Ke){var Xe,At,We,$e,Bt,Kt,Mt=Ke.dyn_tree,br=Ke.max_code,vr=Ke.stat_desc.static_tree,re=Ke.stat_desc.has_stree,ue=Ke.stat_desc.extra_bits,rr=Ke.stat_desc.extra_base,Me=Ke.stat_desc.max_length,ot=0;for($e=0;$e<=$;$e++)dt.bl_count[$e]=0;for(Mt[2*dt.heap[dt.heap_max]+1]=0,Xe=dt.heap_max+1;Xe<S;Xe++)Me<($e=Mt[2*Mt[2*(At=dt.heap[Xe])+1]+1]+1)&&($e=Me,ot++),Mt[2*At+1]=$e,br<At||(dt.bl_count[$e]++,Bt=0,rr<=At&&(Bt=ue[At-rr]),Kt=Mt[2*At],dt.opt_len+=Kt*($e+Bt),re&&(dt.static_len+=Kt*(vr[2*At+1]+Bt)));if(ot!==0){do{for($e=Me-1;dt.bl_count[$e]===0;)$e--;dt.bl_count[$e]--,dt.bl_count[$e+1]+=2,dt.bl_count[Me]--,ot-=2}while(0<ot);for($e=Me;$e!==0;$e--)for(At=dt.bl_count[$e];At!==0;)br<(We=dt.heap[--Xe])||(Mt[2*We+1]!==$e&&(dt.opt_len+=($e-Mt[2*We+1])*Mt[2*We],Mt[2*We+1]=$e),At--)}}(f,D),lr(te,Ge,f.bl_count)}function Ue(f,D,fe){var W,P,te=-1,Ie=D[1],Te=0,Se=7,Ge=4;for(Ie===0&&(Se=138,Ge=3),D[2*(fe+1)+1]=65535,W=0;W<=fe;W++)P=Ie,Ie=D[2*(W+1)+1],++Te<Se&&P===Ie||(Te<Ge?f.bl_tree[2*P]+=Te:P!==0?(P!==te&&f.bl_tree[2*P]++,f.bl_tree[2*ee]++):Te<=10?f.bl_tree[2*B]++:f.bl_tree[2*z]++,te=P,Ge=(Te=0)===Ie?(Se=138,3):P===Ie?(Se=6,3):(Se=7,4))}function St(f,D,fe){var W,P,te=-1,Ie=D[1],Te=0,Se=7,Ge=4;for(Ie===0&&(Se=138,Ge=3),W=0;W<=fe;W++)if(P=Ie,Ie=D[2*(W+1)+1],!(++Te<Se&&P===Ie)){if(Te<Ge)for(;rt(f,P,f.bl_tree),--Te!=0;);else P!==0?(P!==te&&(rt(f,P,f.bl_tree),Te--),rt(f,ee,f.bl_tree),at(f,Te-3,2)):Te<=10?(rt(f,B,f.bl_tree),at(f,Te-3,3)):(rt(f,z,f.bl_tree),at(f,Te-11,7));te=P,Ge=(Te=0)===Ie?(Se=138,3):P===Ie?(Se=6,3):(Se=7,4)}}n(_);var G=!1;function v(f,D,fe,W){at(f,(o<<1)+(W?1:0),3),function(P,te,Ie,Te){Ze(P),Te&&(qe(P,Ie),qe(P,~Ie)),Y.arraySet(P.pending_buf,P.window,te,Ie,P.pending),P.pending+=Ie}(f,D,fe,!0)}ie._tr_init=function(f){G||(function(){var D,fe,W,P,te,Ie=new Array($+1);for(P=W=0;P<L-1;P++)for(Ee[P]=W,D=0;D<1<<le[P];D++)T[W++]=P;for(T[W-1]=P,P=te=0;P<16;P++)for(_[P]=te,D=0;D<1<<J[P];D++)me[te++]=P;for(te>>=7;P<A;P++)for(_[P]=te<<7,D=0;D<1<<J[P]-7;D++)me[256+te++]=P;for(fe=0;fe<=$;fe++)Ie[fe]=0;for(D=0;D<=143;)Le[2*D+1]=8,D++,Ie[8]++;for(;D<=255;)Le[2*D+1]=9,D++,Ie[9]++;for(;D<=279;)Le[2*D+1]=7,D++,Ie[7]++;for(;D<=287;)Le[2*D+1]=8,D++,Ie[8]++;for(lr(Le,a+1,Ie),D=0;D<A;D++)ae[2*D+1]=5,ae[2*D]=Rt(D,5);oe=new N(Le,le,p+1,a,$),he=new N(ae,J,0,A,$),ve=new N(new Array(0),be,0,m,H)}(),G=!0),f.l_desc=new X(f.dyn_ltree,oe),f.d_desc=new X(f.dyn_dtree,he),f.bl_desc=new X(f.bl_tree,ve),f.bi_buf=0,f.bi_valid=0,Jt(f)},ie._tr_stored_block=v,ie._tr_flush_block=function(f,D,fe,W){var P,te,Ie=0;0<f.level?(f.strm.data_type===2&&(f.strm.data_type=function(Te){var Se,Ge=4093624447;for(Se=0;Se<=31;Se++,Ge>>>=1)if(1&Ge&&Te.dyn_ltree[2*Se]!==0)return O;if(Te.dyn_ltree[18]!==0||Te.dyn_ltree[20]!==0||Te.dyn_ltree[26]!==0)return I;for(Se=32;Se<p;Se++)if(Te.dyn_ltree[2*Se]!==0)return I;return O}(f)),_r(f,f.l_desc),_r(f,f.d_desc),Ie=function(Te){var Se;for(Ue(Te,Te.dyn_ltree,Te.l_desc.max_code),Ue(Te,Te.dyn_dtree,Te.d_desc.max_code),_r(Te,Te.bl_desc),Se=m-1;3<=Se&&Te.bl_tree[2*Ce[Se]+1]===0;Se--);return Te.opt_len+=3*(Se+1)+5+5+4,Se}(f),P=f.opt_len+3+7>>>3,(te=f.static_len+3+7>>>3)<=P&&(P=te)):P=te=fe+5,fe+4<=P&&D!==-1?v(f,D,fe,W):f.strategy===4||te===P?(at(f,2+(W?1:0),3),Kr(f,Le,ae)):(at(f,4+(W?1:0),3),function(Te,Se,Ge,dt){var Ke;for(at(Te,Se-257,5),at(Te,Ge-1,5),at(Te,dt-4,4),Ke=0;Ke<dt;Ke++)at(Te,Te.bl_tree[2*Ce[Ke]+1],3);St(Te,Te.dyn_ltree,Se-1),St(Te,Te.dyn_dtree,Ge-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,Ie+1),Kr(f,f.dyn_ltree,f.dyn_dtree)),Jt(f),W&&Ze(f)},ie._tr_tally=function(f,D,fe){return f.pending_buf[f.d_buf+2*f.last_lit]=D>>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&D,f.pending_buf[f.l_buf+f.last_lit]=255&fe,f.last_lit++,D===0?f.dyn_ltree[2*fe]++:(f.matches++,D--,f.dyn_ltree[2*(T[fe]+p+1)]++,f.dyn_dtree[2*pe(D)]++),f.last_lit===f.lit_bufsize-1},ie._tr_align=function(f){at(f,2,3),rt(f,V,Le),function(D){D.bi_valid===16?(qe(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)}(f)}},{"../utils/common":41}],53:[function(se,ke,ie){"use strict";ke.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,ke,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){Fe.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),z=0;z<B.length;z++)B[z]=arguments[z+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(z){var le=z.callback,J=z.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(Wt){var g={};function we(Fe){if(g[Fe])return g[Fe].exports;var se=g[Fe]={i:Fe,l:!1,exports:{}};return Wt[Fe].call(se.exports,se,se.exports,we),se.l=!0,se.exports}return we.m=Wt,we.c=g,we.d=function(Fe,se,ke){we.o(Fe,se)||Object.defineProperty(Fe,se,{enumerable:!0,get:ke})},we.r=function(Fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Fe,"__esModule",{value:!0})},we.t=function(Fe,se){if(se&1&&(Fe=we(Fe)),se&8||se&4&&typeof Fe=="object"&&Fe&&Fe.__esModule)return Fe;var ke=Object.create(null);if(we.r(ke),Object.defineProperty(ke,"default",{enumerable:!0,value:Fe}),se&2&&typeof Fe!="string")for(var ie in Fe)we.d(ke,ie,function(Y){return Fe[Y]}.bind(null,ie));return ke},we.n=function(Fe){var se=Fe&&Fe.__esModule?function(){return Fe.default}:function(){return Fe};return we.d(se,"a",se),se},we.o=function(Fe,se){return Object.prototype.hasOwnProperty.call(Fe,se)},we.p="",we(we.s=1)}([function(Wt,g,we){},function(Wt,g,we){"use strict";we.r(g);var Fe=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}(),ke=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,z=2,le=3,J=4,be=5,Ce=6,Le=7,ae=[new V(ee,0,!1),new V(B,0,!0),new V(z,1,!1),new V(le,1,!0),new V(J,2,!1),new V(be,2,!0),new V(Ce,3,!1),new V(Le,3,!0)],me=[J,be,J,be,Ce,Le,Ce,Le],T=[be,be,be,be,Le,Le,Le,Le],Ee=[z,le,J,be,Ce,Le,Ce,Le],oe=[le,le,be,be,Le,Le,Le,Le],he=[B,B,le,le,be,be,Le,Le],ve=[ee,B,z,le,z,le,z,le],_={DISPLAY:ae[ee],TEXT:ae[z],SCRIPT:ae[J],SCRIPTSCRIPT:ae[Ce]},N=[{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<N.length;c++)for(var w=N[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=[];N.forEach(function(He){return He.blocks.forEach(function(c){return pe.push.apply(pe,c)})});function qe(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,rt=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"},Rt=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"},lr=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"},Ze=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"},Er=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"},Cr=function(c,w,C){w=1e3*w;var K="";switch(c){case"sqrtMain":K=rt(w,at);break;case"sqrtSize1":K=Rt(w,at);break;case"sqrtSize2":K=lr(w,at);break;case"sqrtSize3":K=Jt(w,at);break;case"sqrtSize4":K=Ze(w,at);break;case"sqrtTall":K=Er(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}(),Ue=function(c){return c.filter(function(w){return w}).join(" ")},St=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)}},G=function(c){var w=document.createElement(c);w.className=Ue(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(Ue(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},f=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,St.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 G.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,St.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 G.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}(),W={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},P=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=W[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=Ue(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(Ue(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}(),Ie=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}(),Te=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 Se(He){if(He instanceof P)return He;throw new Error("Expected symbolNode but got "+String(He)+".")}function Ge(He){if(He instanceof f)return He;throw new Error("Expected span<HtmlDomNode> but got "+String(He)+".")}var dt={"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]}},Ke={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]},Xe={\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 At(He,c){dt[He]=c}function We(He,c,w){if(!dt[c])throw new Error("Font metrics not found for font: "+c+".");var C=He.charCodeAt(0),K=dt[c][C];if(!K&&He[0]in Xe&&(C=Xe[He[0]].charCodeAt(0),K=dt[c][C]),!K&&w==="text"&&qe(C)&&(K=dt[c][77]),K)return{depth:K[0],height:K[1],italic:K[2],skew:K[3],width:K[4]}}var $e={};function Bt(He){var c;if(He>=5?c=0:He>=3?c=1:c=2,!$e[c]){var w=$e[c]={cssEmPerMu:Ke.quad[c]/18};for(var C in Ke)Ke.hasOwnProperty(C)&&(w[C]=Ke[C][c])}return $e[c]}var Kt={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},br={math:{},text:{}},vr=br;function re(He,c,w,C,K,Be){br[He][K]={font:c,group:w,replace:C},Be&&C&&(br[He][C]=br[He][K])}var ue="math",rr="text",Me="main",ot="ams",Zr="accent-token",Tt="bin",Yt="close",Gt="inner",nt="mathord",ct="op-token",pt="open",Zt="punct",Oe="rel",fn="spacing",Nt="textord";re(ue,Me,Oe,"\u2261","\\equiv",!0),re(ue,Me,Oe,"\u227A","\\prec",!0),re(ue,Me,Oe,"\u227B","\\succ",!0),re(ue,Me,Oe,"\u223C","\\sim",!0),re(ue,Me,Oe,"\u22A5","\\perp"),re(ue,Me,Oe,"\u2AAF","\\preceq",!0),re(ue,Me,Oe,"\u2AB0","\\succeq",!0),re(ue,Me,Oe,"\u2243","\\simeq",!0),re(ue,Me,Oe,"\u2223","\\mid",!0),re(ue,Me,Oe,"\u226A","\\ll",!0),re(ue,Me,Oe,"\u226B","\\gg",!0),re(ue,Me,Oe,"\u224D","\\asymp",!0),re(ue,Me,Oe,"\u2225","\\parallel"),re(ue,Me,Oe,"\u22C8","\\bowtie",!0),re(ue,Me,Oe,"\u2323","\\smile",!0),re(ue,Me,Oe,"\u2291","\\sqsubseteq",!0),re(ue,Me,Oe,"\u2292","\\sqsupseteq",!0),re(ue,Me,Oe,"\u2250","\\doteq",!0),re(ue,Me,Oe,"\u2322","\\frown",!0),re(ue,Me,Oe,"\u220B","\\ni",!0),re(ue,Me,Oe,"\u221D","\\propto",!0),re(ue,Me,Oe,"\u22A2","\\vdash",!0),re(ue,Me,Oe,"\u22A3","\\dashv",!0),re(ue,Me,Oe,"\u220B","\\owns"),re(ue,Me,Zt,".","\\ldotp"),re(ue,Me,Zt,"\u22C5","\\cdotp"),re(ue,Me,Nt,"#","\\#"),re(rr,Me,Nt,"#","\\#"),re(ue,Me,Nt,"&","\\&"),re(rr,Me,Nt,"&","\\&"),re(ue,Me,Nt,"\u2135","\\aleph",!0),re(ue,Me,Nt,"\u2200","\\forall",!0),re(ue,Me,Nt,"\u210F","\\hbar",!0),re(ue,Me,Nt,"\u2203","\\exists",!0),re(ue,Me,Nt,"\u2207","\\nabla",!0),re(ue,Me,Nt,"\u266D","\\flat",!0),re(ue,Me,Nt,"\u2113","\\ell",!0),re(ue,Me,Nt,"\u266E","\\natural",!0),re(ue,Me,Nt,"\u2663","\\clubsuit",!0),re(ue,Me,Nt,"\u2118","\\wp",!0),re(ue,Me,Nt,"\u266F","\\sharp",!0),re(ue,Me,Nt,"\u2662","\\diamondsuit",!0),re(ue,Me,Nt,"\u211C","\\Re",!0),re(ue,Me,Nt,"\u2661","\\heartsuit",!0),re(ue,Me,Nt,"\u2111","\\Im",!0),re(ue,Me,Nt,"\u2660","\\spadesuit",!0),re(rr,Me,Nt,"\xA7","\\S",!0),re(rr,Me,Nt,"\xB6","\\P",!0),re(ue,Me,Nt,"\u2020","\\dag"),re(rr,Me,Nt,"\u2020","\\dag"),re(rr,Me,Nt,"\u2020","\\textdagger"),re(ue,Me,Nt,"\u2021","\\ddag"),re(rr,Me,Nt,"\u2021","\\ddag"),re(rr,Me,Nt,"\u2021","\\textdaggerdbl"),re(ue,Me,Yt,"\u23B1","\\rmoustache",!0),re(ue,Me,pt,"\u23B0","\\lmoustache",!0),re(ue,Me,Yt,"\u27EF","\\rgroup",!0),re(ue,Me,pt,"\u27EE","\\lgroup",!0),re(ue,Me,Tt,"\u2213","\\mp",!0),re(ue,Me,Tt,"\u2296","\\ominus",!0),re(ue,Me,Tt,"\u228E","\\uplus",!0),re(ue,Me,Tt,"\u2293","\\sqcap",!0),re(ue,Me,Tt,"\u2217","\\ast"),re(ue,Me,Tt,"\u2294","\\sqcup",!0),re(ue,Me,Tt,"\u25EF","\\bigcirc"),re(ue,Me,Tt,"\u2219","\\bullet"),re(ue,Me,Tt,"\u2021","\\ddagger"),re(ue,Me,Tt,"\u2240","\\wr",!0),re(ue,Me,Tt,"\u2A3F","\\amalg"),re(ue,Me,Tt,"&","\\And"),re(ue,Me,Oe,"\u27F5","\\longleftarrow",!0),re(ue,Me,Oe,"\u21D0","\\Leftarrow",!0),re(ue,Me,Oe,"\u27F8","\\Longleftarrow",!0),re(ue,Me,Oe,"\u27F6","\\longrightarrow",!0),re(ue,Me,Oe,"\u21D2","\\Rightarrow",!0),re(ue,Me,Oe,"\u27F9","\\Longrightarrow",!0),re(ue,Me,Oe,"\u2194","\\leftrightarrow",!0),re(ue,Me,Oe,"\u27F7","\\longleftrightarrow",!0),re(ue,Me,Oe,"\u21D4","\\Leftrightarrow",!0),re(ue,Me,Oe,"\u27FA","\\Longleftrightarrow",!0),re(ue,Me,Oe,"\u21A6","\\mapsto",!0),re(ue,Me,Oe,"\u27FC","\\longmapsto",!0),re(ue,Me,Oe,"\u2197","\\nearrow",!0),re(ue,Me,Oe,"\u21A9","\\hookleftarrow",!0),re(ue,Me,Oe,"\u21AA","\\hookrightarrow",!0),re(ue,Me,Oe,"\u2198","\\searrow",!0),re(ue,Me,Oe,"\u21BC","\\leftharpoonup",!0),re(ue,Me,Oe,"\u21C0","\\rightharpoonup",!0),re(ue,Me,Oe,"\u2199","\\swarrow",!0),re(ue,Me,Oe,"\u21BD","\\leftharpoondown",!0),re(ue,Me,Oe,"\u21C1","\\rightharpoondown",!0),re(ue,Me,Oe,"\u2196","\\nwarrow",!0),re(ue,Me,Oe,"\u21CC","\\rightleftharpoons",!0),re(ue,ot,Oe,"\u226E","\\nless",!0),re(ue,ot,Oe,"\uE010","\\@nleqslant"),re(ue,ot,Oe,"\uE011","\\@nleqq"),re(ue,ot,Oe,"\u2A87","\\lneq",!0),re(ue,ot,Oe,"\u2268","\\lneqq",!0),re(ue,ot,Oe,"\uE00C","\\@lvertneqq"),re(ue,ot,Oe,"\u22E6","\\lnsim",!0),re(ue,ot,Oe,"\u2A89","\\lnapprox",!0),re(ue,ot,Oe,"\u2280","\\nprec",!0),re(ue,ot,Oe,"\u22E0","\\npreceq",!0),re(ue,ot,Oe,"\u22E8","\\precnsim",!0),re(ue,ot,Oe,"\u2AB9","\\precnapprox",!0),re(ue,ot,Oe,"\u2241","\\nsim",!0),re(ue,ot,Oe,"\uE006","\\@nshortmid"),re(ue,ot,Oe,"\u2224","\\nmid",!0),re(ue,ot,Oe,"\u22AC","\\nvdash",!0),re(ue,ot,Oe,"\u22AD","\\nvDash",!0),re(ue,ot,Oe,"\u22EA","\\ntriangleleft"),re(ue,ot,Oe,"\u22EC","\\ntrianglelefteq",!0),re(ue,ot,Oe,"\u228A","\\subsetneq",!0),re(ue,ot,Oe,"\uE01A","\\@varsubsetneq"),re(ue,ot,Oe,"\u2ACB","\\subsetneqq",!0),re(ue,ot,Oe,"\uE017","\\@varsubsetneqq"),re(ue,ot,Oe,"\u226F","\\ngtr",!0),re(ue,ot,Oe,"\uE00F","\\@ngeqslant"),re(ue,ot,Oe,"\uE00E","\\@ngeqq"),re(ue,ot,Oe,"\u2A88","\\gneq",!0),re(ue,ot,Oe,"\u2269","\\gneqq",!0),re(ue,ot,Oe,"\uE00D","\\@gvertneqq"),re(ue,ot,Oe,"\u22E7","\\gnsim",!0),re(ue,ot,Oe,"\u2A8A","\\gnapprox",!0),re(ue,ot,Oe,"\u2281","\\nsucc",!0),re(ue,ot,Oe,"\u22E1","\\nsucceq",!0),re(ue,ot,Oe,"\u22E9","\\succnsim",!0),re(ue,ot,Oe,"\u2ABA","\\succnapprox",!0),re(ue,ot,Oe,"\u2246","\\ncong",!0),re(ue,ot,Oe,"\uE007","\\@nshortparallel"),re(ue,ot,Oe,"\u2226","\\nparallel",!0),re(ue,ot,Oe,"\u22AF","\\nVDash",!0),re(ue,ot,Oe,"\u22EB","\\ntriangleright"),re(ue,ot,Oe,"\u22ED","\\ntrianglerighteq",!0),re(ue,ot,Oe,"\uE018","\\@nsupseteqq"),re(ue,ot,Oe,"\u228B","\\supsetneq",!0),re(ue,ot,Oe,"\uE01B","\\@varsupsetneq"),re(ue,ot,Oe,"\u2ACC","\\supsetneqq",!0),re(ue,ot,Oe,"\uE019","\\@varsupsetneqq"),re(ue,ot,Oe,"\u22AE","\\nVdash",!0),re(ue,ot,Oe,"\u2AB5","\\precneqq",!0),re(ue,ot,Oe,"\u2AB6","\\succneqq",!0),re(ue,ot,Oe,"\uE016","\\@nsubseteqq"),re(ue,ot,Tt,"\u22B4","\\unlhd"),re(ue,ot,Tt,"\u22B5","\\unrhd"),re(ue,ot,Oe,"\u219A","\\nleftarrow",!0),re(ue,ot,Oe,"\u219B","\\nrightarrow",!0),re(ue,ot,Oe,"\u21CD","\\nLeftarrow",!0),re(ue,ot,Oe,"\u21CF","\\nRightarrow",!0),re(ue,ot,Oe,"\u21AE","\\nleftrightarrow",!0),re(ue,ot,Oe,"\u21CE","\\nLeftrightarrow",!0),re(ue,ot,Oe,"\u25B3","\\vartriangle"),re(ue,ot,Nt,"\u210F","\\hslash"),re(ue,ot,Nt,"\u25BD","\\triangledown"),re(ue,ot,Nt,"\u25CA","\\lozenge"),re(ue,ot,Nt,"\u24C8","\\circledS"),re(ue,ot,Nt,"\xAE","\\circledR"),re(rr,ot,Nt,"\xAE","\\circledR"),re(ue,ot,Nt,"\u2221","\\measuredangle",!0),re(ue,ot,Nt,"\u2204","\\nexists"),re(ue,ot,Nt,"\u2127","\\mho"),re(ue,ot,Nt,"\u2132","\\Finv",!0),re(ue,ot,Nt,"\u2141","\\Game",!0),re(ue,ot,Nt,"\u2035","\\backprime"),re(ue,ot,Nt,"\u25B2","\\blacktriangle"),re(ue,ot,Nt,"\u25BC","\\blacktriangledown"),re(ue,ot,Nt,"\u25A0","\\blacksquare"),re(ue,ot,Nt,"\u29EB","\\blacklozenge"),re(ue,ot,Nt,"\u2605","\\bigstar"),re(ue,ot,Nt,"\u2222","\\sphericalangle",!0),re(ue,ot,Nt,"\u2201","\\complement",!0),re(ue,ot,Nt,"\xF0","\\eth",!0),re(ue,ot,Nt,"\u2571","\\diagup"),re(ue,ot,Nt,"\u2572","\\diagdown"),re(ue,ot,Nt,"\u25A1","\\square"),re(ue,ot,Nt,"\u25A1","\\Box"),re(ue,ot,Nt,"\u25CA","\\Diamond"),re(ue,ot,Nt,"\xA5","\\yen",!0),re(rr,ot,Nt,"\xA5","\\yen",!0),re(ue,ot,Nt,"\u2713","\\checkmark",!0),re(rr,ot,Nt,"\u2713","\\checkmark"),re(ue,ot,Nt,"\u2136","\\beth",!0),re(ue,ot,Nt,"\u2138","\\daleth",!0),re(ue,ot,Nt,"\u2137","\\gimel",!0),re(ue,ot,Nt,"\u03DD","\\digamma",!0),re(ue,ot,Nt,"\u03F0","\\varkappa"),re(ue,ot,pt,"\u250C","\\ulcorner",!0),re(ue,ot,Yt,"\u2510","\\urcorner",!0),re(ue,ot,pt,"\u2514","\\llcorner",!0),re(ue,ot,Yt,"\u2518","\\lrcorner",!0),re(ue,ot,Oe,"\u2266","\\leqq",!0),re(ue,ot,Oe,"\u2A7D","\\leqslant",!0),re(ue,ot,Oe,"\u2A95","\\eqslantless",!0),re(ue,ot,Oe,"\u2272","\\lesssim",!0),re(ue,ot,Oe,"\u2A85","\\lessapprox",!0),re(ue,ot,Oe,"\u224A","\\approxeq",!0),re(ue,ot,Tt,"\u22D6","\\lessdot"),re(ue,ot,Oe,"\u22D8","\\lll",!0),re(ue,ot,Oe,"\u2276","\\lessgtr",!0),re(ue,ot,Oe,"\u22DA","\\lesseqgtr",!0),re(ue,ot,Oe,"\u2A8B","\\lesseqqgtr",!0),re(ue,ot,Oe,"\u2251","\\doteqdot"),re(ue,ot,Oe,"\u2253","\\risingdotseq",!0),re(ue,ot,Oe,"\u2252","\\fallingdotseq",!0),re(ue,ot,Oe,"\u223D","\\backsim",!0),re(ue,ot,Oe,"\u22CD","\\backsimeq",!0),re(ue,ot,Oe,"\u2AC5","\\subseteqq",!0),re(ue,ot,Oe,"\u22D0","\\Subset",!0),re(ue,ot,Oe,"\u228F","\\sqsubset",!0),re(ue,ot,Oe,"\u227C","\\preccurlyeq",!0),re(ue,ot,Oe,"\u22DE","\\curlyeqprec",!0),re(ue,ot,Oe,"\u227E","\\precsim",!0),re(ue,ot,Oe,"\u2AB7","\\precapprox",!0),re(ue,ot,Oe,"\u22B2","\\vartriangleleft"),re(ue,ot,Oe,"\u22B4","\\trianglelefteq"),re(ue,ot,Oe,"\u22A8","\\vDash",!0),re(ue,ot,Oe,"\u22AA","\\Vvdash",!0),re(ue,ot,Oe,"\u2323","\\smallsmile"),re(ue,ot,Oe,"\u2322","\\smallfrown"),re(ue,ot,Oe,"\u224F","\\bumpeq",!0),re(ue,ot,Oe,"\u224E","\\Bumpeq",!0),re(ue,ot,Oe,"\u2267","\\geqq",!0),re(ue,ot,Oe,"\u2A7E","\\geqslant",!0),re(ue,ot,Oe,"\u2A96","\\eqslantgtr",!0),re(ue,ot,Oe,"\u2273","\\gtrsim",!0),re(ue,ot,Oe,"\u2A86","\\gtrapprox",!0),re(ue,ot,Tt,"\u22D7","\\gtrdot"),re(ue,ot,Oe,"\u22D9","\\ggg",!0),re(ue,ot,Oe,"\u2277","\\gtrless",!0),re(ue,ot,Oe,"\u22DB","\\gtreqless",!0),re(ue,ot,Oe,"\u2A8C","\\gtreqqless",!0),re(ue,ot,Oe,"\u2256","\\eqcirc",!0),re(ue,ot,Oe,"\u2257","\\circeq",!0),re(ue,ot,Oe,"\u225C","\\triangleq",!0),re(ue,ot,Oe,"\u223C","\\thicksim"),re(ue,ot,Oe,"\u2248","\\thickapprox"),re(ue,ot,Oe,"\u2AC6","\\supseteqq",!0),re(ue,ot,Oe,"\u22D1","\\Supset",!0),re(ue,ot,Oe,"\u2290","\\sqsupset",!0),re(ue,ot,Oe,"\u227D","\\succcurlyeq",!0),re(ue,ot,Oe,"\u22DF","\\curlyeqsucc",!0),re(ue,ot,Oe,"\u227F","\\succsim",!0),re(ue,ot,Oe,"\u2AB8","\\succapprox",!0),re(ue,ot,Oe,"\u22B3","\\vartriangleright"),re(ue,ot,Oe,"\u22B5","\\trianglerighteq"),re(ue,ot,Oe,"\u22A9","\\Vdash",!0),re(ue,ot,Oe,"\u2223","\\shortmid"),re(ue,ot,Oe,"\u2225","\\shortparallel"),re(ue,ot,Oe,"\u226C","\\between",!0),re(ue,ot,Oe,"\u22D4","\\pitchfork",!0),re(ue,ot,Oe,"\u221D","\\varpropto"),re(ue,ot,Oe,"\u25C0","\\blacktriangleleft"),re(ue,ot,Oe,"\u2234","\\therefore",!0),re(ue,ot,Oe,"\u220D","\\backepsilon"),re(ue,ot,Oe,"\u25B6","\\blacktriangleright"),re(ue,ot,Oe,"\u2235","\\because",!0),re(ue,ot,Oe,"\u22D8","\\llless"),re(ue,ot,Oe,"\u22D9","\\gggtr"),re(ue,ot,Tt,"\u22B2","\\lhd"),re(ue,ot,Tt,"\u22B3","\\rhd"),re(ue,ot,Oe,"\u2242","\\eqsim",!0),re(ue,Me,Oe,"\u22C8","\\Join"),re(ue,ot,Oe,"\u2251","\\Doteq",!0),re(ue,ot,Tt,"\u2214","\\dotplus",!0),re(ue,ot,Tt,"\u2216","\\smallsetminus"),re(ue,ot,Tt,"\u22D2","\\Cap",!0),re(ue,ot,Tt,"\u22D3","\\Cup",!0),re(ue,ot,Tt,"\u2A5E","\\doublebarwedge",!0),re(ue,ot,Tt,"\u229F","\\boxminus",!0),re(ue,ot,Tt,"\u229E","\\boxplus",!0),re(ue,ot,Tt,"\u22C7","\\divideontimes",!0),re(ue,ot,Tt,"\u22C9","\\ltimes",!0),re(ue,ot,Tt,"\u22CA","\\rtimes",!0),re(ue,ot,Tt,"\u22CB","\\leftthreetimes",!0),re(ue,ot,Tt,"\u22CC","\\rightthreetimes",!0),re(ue,ot,Tt,"\u22CF","\\curlywedge",!0),re(ue,ot,Tt,"\u22CE","\\curlyvee",!0),re(ue,ot,Tt,"\u229D","\\circleddash",!0),re(ue,ot,Tt,"\u229B","\\circledast",!0),re(ue,ot,Tt,"\u22C5","\\centerdot"),re(ue,ot,Tt,"\u22BA","\\intercal",!0),re(ue,ot,Tt,"\u22D2","\\doublecap"),re(ue,ot,Tt,"\u22D3","\\doublecup"),re(ue,ot,Tt,"\u22A0","\\boxtimes",!0),re(ue,ot,Oe,"\u21E2","\\dashrightarrow",!0),re(ue,ot,Oe,"\u21E0","\\dashleftarrow",!0),re(ue,ot,Oe,"\u21C7","\\leftleftarrows",!0),re(ue,ot,Oe,"\u21C6","\\leftrightarrows",!0),re(ue,ot,Oe,"\u21DA","\\Lleftarrow",!0),re(ue,ot,Oe,"\u219E","\\twoheadleftarrow",!0),re(ue,ot,Oe,"\u21A2","\\leftarrowtail",!0),re(ue,ot,Oe,"\u21AB","\\looparrowleft",!0),re(ue,ot,Oe,"\u21CB","\\leftrightharpoons",!0),re(ue,ot,Oe,"\u21B6","\\curvearrowleft",!0),re(ue,ot,Oe,"\u21BA","\\circlearrowleft",!0),re(ue,ot,Oe,"\u21B0","\\Lsh",!0),re(ue,ot,Oe,"\u21C8","\\upuparrows",!0),re(ue,ot,Oe,"\u21BF","\\upharpoonleft",!0),re(ue,ot,Oe,"\u21C3","\\downharpoonleft",!0),re(ue,ot,Oe,"\u22B8","\\multimap",!0),re(ue,ot,Oe,"\u21AD","\\leftrightsquigarrow",!0),re(ue,ot,Oe,"\u21C9","\\rightrightarrows",!0),re(ue,ot,Oe,"\u21C4","\\rightleftarrows",!0),re(ue,ot,Oe,"\u21A0","\\twoheadrightarrow",!0),re(ue,ot,Oe,"\u21A3","\\rightarrowtail",!0),re(ue,ot,Oe,"\u21AC","\\looparrowright",!0),re(ue,ot,Oe,"\u21B7","\\curvearrowright",!0),re(ue,ot,Oe,"\u21BB","\\circlearrowright",!0),re(ue,ot,Oe,"\u21B1","\\Rsh",!0),re(ue,ot,Oe,"\u21CA","\\downdownarrows",!0),re(ue,ot,Oe,"\u21BE","\\upharpoonright",!0),re(ue,ot,Oe,"\u21C2","\\downharpoonright",!0),re(ue,ot,Oe,"\u21DD","\\rightsquigarrow",!0),re(ue,ot,Oe,"\u21DD","\\leadsto"),re(ue,ot,Oe,"\u21DB","\\Rrightarrow",!0),re(ue,ot,Oe,"\u21BE","\\restriction"),re(ue,Me,Nt,"\u2018","`"),re(ue,Me,Nt,"$","\\$"),re(rr,Me,Nt,"$","\\$"),re(rr,Me,Nt,"$","\\textdollar"),re(ue,Me,Nt,"%","\\%"),re(rr,Me,Nt,"%","\\%"),re(ue,Me,Nt,"_","\\_"),re(rr,Me,Nt,"_","\\_"),re(rr,Me,Nt,"_","\\textunderscore"),re(ue,Me,Nt,"\u2220","\\angle",!0),re(ue,Me,Nt,"\u221E","\\infty",!0),re(ue,Me,Nt,"\u2032","\\prime"),re(ue,Me,Nt,"\u25B3","\\triangle"),re(ue,Me,Nt,"\u0393","\\Gamma",!0),re(ue,Me,Nt,"\u0394","\\Delta",!0),re(ue,Me,Nt,"\u0398","\\Theta",!0),re(ue,Me,Nt,"\u039B","\\Lambda",!0),re(ue,Me,Nt,"\u039E","\\Xi",!0),re(ue,Me,Nt,"\u03A0","\\Pi",!0),re(ue,Me,Nt,"\u03A3","\\Sigma",!0),re(ue,Me,Nt,"\u03A5","\\Upsilon",!0),re(ue,Me,Nt,"\u03A6","\\Phi",!0),re(ue,Me,Nt,"\u03A8","\\Psi",!0),re(ue,Me,Nt,"\u03A9","\\Omega",!0),re(ue,Me,Nt,"A","\u0391"),re(ue,Me,Nt,"B","\u0392"),re(ue,Me,Nt,"E","\u0395"),re(ue,Me,Nt,"Z","\u0396"),re(ue,Me,Nt,"H","\u0397"),re(ue,Me,Nt,"I","\u0399"),re(ue,Me,Nt,"K","\u039A"),re(ue,Me,Nt,"M","\u039C"),re(ue,Me,Nt,"N","\u039D"),re(ue,Me,Nt,"O","\u039F"),re(ue,Me,Nt,"P","\u03A1"),re(ue,Me,Nt,"T","\u03A4"),re(ue,Me,Nt,"X","\u03A7"),re(ue,Me,Nt,"\xAC","\\neg",!0),re(ue,Me,Nt,"\xAC","\\lnot"),re(ue,Me,Nt,"\u22A4","\\top"),re(ue,Me,Nt,"\u22A5","\\bot"),re(ue,Me,Nt,"\u2205","\\emptyset"),re(ue,ot,Nt,"\u2205","\\varnothing"),re(ue,Me,nt,"\u03B1","\\alpha",!0),re(ue,Me,nt,"\u03B2","\\beta",!0),re(ue,Me,nt,"\u03B3","\\gamma",!0),re(ue,Me,nt,"\u03B4","\\delta",!0),re(ue,Me,nt,"\u03F5","\\epsilon",!0),re(ue,Me,nt,"\u03B6","\\zeta",!0),re(ue,Me,nt,"\u03B7","\\eta",!0),re(ue,Me,nt,"\u03B8","\\theta",!0),re(ue,Me,nt,"\u03B9","\\iota",!0),re(ue,Me,nt,"\u03BA","\\kappa",!0),re(ue,Me,nt,"\u03BB","\\lambda",!0),re(ue,Me,nt,"\u03BC","\\mu",!0),re(ue,Me,nt,"\u03BD","\\nu",!0),re(ue,Me,nt,"\u03BE","\\xi",!0),re(ue,Me,nt,"\u03BF","\\omicron",!0),re(ue,Me,nt,"\u03C0","\\pi",!0),re(ue,Me,nt,"\u03C1","\\rho",!0),re(ue,Me,nt,"\u03C3","\\sigma",!0),re(ue,Me,nt,"\u03C4","\\tau",!0),re(ue,Me,nt,"\u03C5","\\upsilon",!0),re(ue,Me,nt,"\u03D5","\\phi",!0),re(ue,Me,nt,"\u03C7","\\chi",!0),re(ue,Me,nt,"\u03C8","\\psi",!0),re(ue,Me,nt,"\u03C9","\\omega",!0),re(ue,Me,nt,"\u03B5","\\varepsilon",!0),re(ue,Me,nt,"\u03D1","\\vartheta",!0),re(ue,Me,nt,"\u03D6","\\varpi",!0),re(ue,Me,nt,"\u03F1","\\varrho",!0),re(ue,Me,nt,"\u03C2","\\varsigma",!0),re(ue,Me,nt,"\u03C6","\\varphi",!0),re(ue,Me,Tt,"\u2217","*"),re(ue,Me,Tt,"+","+"),re(ue,Me,Tt,"\u2212","-"),re(ue,Me,Tt,"\u22C5","\\cdot",!0),re(ue,Me,Tt,"\u2218","\\circ"),re(ue,Me,Tt,"\xF7","\\div",!0),re(ue,Me,Tt,"\xB1","\\pm",!0),re(ue,Me,Tt,"\xD7","\\times",!0),re(ue,Me,Tt,"\u2229","\\cap",!0),re(ue,Me,Tt,"\u222A","\\cup",!0),re(ue,Me,Tt,"\u2216","\\setminus"),re(ue,Me,Tt,"\u2227","\\land"),re(ue,Me,Tt,"\u2228","\\lor"),re(ue,Me,Tt,"\u2227","\\wedge",!0),re(ue,Me,Tt,"\u2228","\\vee",!0),re(ue,Me,Nt,"\u221A","\\surd"),re(ue,Me,pt,"(","("),re(ue,Me,pt,"[","["),re(ue,Me,pt,"\u27E8","\\langle",!0),re(ue,Me,pt,"\u2223","\\lvert"),re(ue,Me,pt,"\u2225","\\lVert"),re(ue,Me,Yt,")",")"),re(ue,Me,Yt,"]","]"),re(ue,Me,Yt,"?","?"),re(ue,Me,Yt,"!","!"),re(ue,Me,Yt,"\u27E9","\\rangle",!0),re(ue,Me,Yt,"\u2223","\\rvert"),re(ue,Me,Yt,"\u2225","\\rVert"),re(ue,Me,Oe,"=","="),re(ue,Me,Oe,"<","<"),re(ue,Me,Oe,">",">"),re(ue,Me,Oe,":",":"),re(ue,Me,Oe,"\u2248","\\approx",!0),re(ue,Me,Oe,"\u2245","\\cong",!0),re(ue,Me,Oe,"\u2265","\\ge"),re(ue,Me,Oe,"\u2265","\\geq",!0),re(ue,Me,Oe,"\u2190","\\gets"),re(ue,Me,Oe,">","\\gt"),re(ue,Me,Oe,"\u2208","\\in",!0),re(ue,Me,Oe,"\uE020","\\@not"),re(ue,Me,Oe,"\u2282","\\subset",!0),re(ue,Me,Oe,"\u2283","\\supset",!0),re(ue,Me,Oe,"\u2286","\\subseteq",!0),re(ue,Me,Oe,"\u2287","\\supseteq",!0),re(ue,ot,Oe,"\u2288","\\nsubseteq",!0),re(ue,ot,Oe,"\u2289","\\nsupseteq",!0),re(ue,Me,Oe,"\u22A8","\\models"),re(ue,Me,Oe,"\u2190","\\leftarrow",!0),re(ue,Me,Oe,"\u2264","\\le"),re(ue,Me,Oe,"\u2264","\\leq",!0),re(ue,Me,Oe,"<","\\lt"),re(ue,Me,Oe,"\u2192","\\rightarrow",!0),re(ue,Me,Oe,"\u2192","\\to"),re(ue,ot,Oe,"\u2271","\\ngeq",!0),re(ue,ot,Oe,"\u2270","\\nleq",!0),re(ue,Me,fn,"\xA0","\\ "),re(ue,Me,fn,"\xA0","~"),re(ue,Me,fn,"\xA0","\\space"),re(ue,Me,fn,"\xA0","\\nobreakspace"),re(rr,Me,fn,"\xA0","\\ "),re(rr,Me,fn,"\xA0","~"),re(rr,Me,fn,"\xA0","\\space"),re(rr,Me,fn,"\xA0","\\nobreakspace"),re(ue,Me,fn,null,"\\nobreak"),re(ue,Me,fn,null,"\\allowbreak"),re(ue,Me,Zt,",",","),re(ue,Me,Zt,";",";"),re(ue,ot,Tt,"\u22BC","\\barwedge",!0),re(ue,ot,Tt,"\u22BB","\\veebar",!0),re(ue,Me,Tt,"\u2299","\\odot",!0),re(ue,Me,Tt,"\u2295","\\oplus",!0),re(ue,Me,Tt,"\u2297","\\otimes",!0),re(ue,Me,Nt,"\u2202","\\partial",!0),re(ue,Me,Tt,"\u2298","\\oslash",!0),re(ue,ot,Tt,"\u229A","\\circledcirc",!0),re(ue,ot,Tt,"\u22A1","\\boxdot",!0),re(ue,Me,Tt,"\u25B3","\\bigtriangleup"),re(ue,Me,Tt,"\u25BD","\\bigtriangledown"),re(ue,Me,Tt,"\u2020","\\dagger"),re(ue,Me,Tt,"\u22C4","\\diamond"),re(ue,Me,Tt,"\u22C6","\\star"),re(ue,Me,Tt,"\u25C3","\\triangleleft"),re(ue,Me,Tt,"\u25B9","\\triangleright"),re(ue,Me,pt,"{","\\{"),re(rr,Me,Nt,"{","\\{"),re(rr,Me,Nt,"{","\\textbraceleft"),re(ue,Me,Yt,"}","\\}"),re(rr,Me,Nt,"}","\\}"),re(rr,Me,Nt,"}","\\textbraceright"),re(ue,Me,pt,"{","\\lbrace"),re(ue,Me,Yt,"}","\\rbrace"),re(ue,Me,pt,"[","\\lbrack"),re(rr,Me,Nt,"[","\\lbrack"),re(ue,Me,Yt,"]","\\rbrack"),re(rr,Me,Nt,"]","\\rbrack"),re(ue,Me,pt,"(","\\lparen"),re(ue,Me,Yt,")","\\rparen"),re(rr,Me,Nt,"<","\\textless"),re(rr,Me,Nt,">","\\textgreater"),re(ue,Me,pt,"\u230A","\\lfloor",!0),re(ue,Me,Yt,"\u230B","\\rfloor",!0),re(ue,Me,pt,"\u2308","\\lceil",!0),re(ue,Me,Yt,"\u2309","\\rceil",!0),re(ue,Me,Nt,"\\","\\backslash"),re(ue,Me,Nt,"\u2223","|"),re(ue,Me,Nt,"\u2223","\\vert"),re(rr,Me,Nt,"|","\\textbar"),re(ue,Me,Nt,"\u2225","\\|"),re(ue,Me,Nt,"\u2225","\\Vert"),re(rr,Me,Nt,"\u2225","\\textbardbl"),re(rr,Me,Nt,"~","\\textasciitilde"),re(rr,Me,Nt,"\\","\\textbackslash"),re(rr,Me,Nt,"^","\\textasciicircum"),re(ue,Me,Oe,"\u2191","\\uparrow",!0),re(ue,Me,Oe,"\u21D1","\\Uparrow",!0),re(ue,Me,Oe,"\u2193","\\downarrow",!0),re(ue,Me,Oe,"\u21D3","\\Downarrow",!0),re(ue,Me,Oe,"\u2195","\\updownarrow",!0),re(ue,Me,Oe,"\u21D5","\\Updownarrow",!0),re(ue,Me,ct,"\u2210","\\coprod"),re(ue,Me,ct,"\u22C1","\\bigvee"),re(ue,Me,ct,"\u22C0","\\bigwedge"),re(ue,Me,ct,"\u2A04","\\biguplus"),re(ue,Me,ct,"\u22C2","\\bigcap"),re(ue,Me,ct,"\u22C3","\\bigcup"),re(ue,Me,ct,"\u222B","\\int"),re(ue,Me,ct,"\u222B","\\intop"),re(ue,Me,ct,"\u222C","\\iint"),re(ue,Me,ct,"\u222D","\\iiint"),re(ue,Me,ct,"\u220F","\\prod"),re(ue,Me,ct,"\u2211","\\sum"),re(ue,Me,ct,"\u2A02","\\bigotimes"),re(ue,Me,ct,"\u2A01","\\bigoplus"),re(ue,Me,ct,"\u2A00","\\bigodot"),re(ue,Me,ct,"\u222E","\\oint"),re(ue,Me,ct,"\u222F","\\oiint"),re(ue,Me,ct,"\u2230","\\oiiint"),re(ue,Me,ct,"\u2A06","\\bigsqcup"),re(ue,Me,ct,"\u222B","\\smallint"),re(rr,Me,Gt,"\u2026","\\textellipsis"),re(ue,Me,Gt,"\u2026","\\mathellipsis"),re(rr,Me,Gt,"\u2026","\\ldots",!0),re(ue,Me,Gt,"\u2026","\\ldots",!0),re(ue,Me,Gt,"\u22EF","\\@cdots",!0),re(ue,Me,Gt,"\u22F1","\\ddots",!0),re(ue,Me,Nt,"\u22EE","\\varvdots"),re(ue,Me,Zr,"\u02CA","\\acute"),re(ue,Me,Zr,"\u02CB","\\grave"),re(ue,Me,Zr,"\xA8","\\ddot"),re(ue,Me,Zr,"~","\\tilde"),re(ue,Me,Zr,"\u02C9","\\bar"),re(ue,Me,Zr,"\u02D8","\\breve"),re(ue,Me,Zr,"\u02C7","\\check"),re(ue,Me,Zr,"^","\\hat"),re(ue,Me,Zr,"\u20D7","\\vec"),re(ue,Me,Zr,"\u02D9","\\dot"),re(ue,Me,Zr,"\u02DA","\\mathring"),re(ue,Me,nt,"\u0131","\\imath",!0),re(ue,Me,nt,"\u0237","\\jmath",!0),re(rr,Me,Nt,"\u0131","\\i",!0),re(rr,Me,Nt,"\u0237","\\j",!0),re(rr,Me,Nt,"\xDF","\\ss",!0),re(rr,Me,Nt,"\xE6","\\ae",!0),re(rr,Me,Nt,"\xE6","\\ae",!0),re(rr,Me,Nt,"\u0153","\\oe",!0),re(rr,Me,Nt,"\xF8","\\o",!0),re(rr,Me,Nt,"\xC6","\\AE",!0),re(rr,Me,Nt,"\u0152","\\OE",!0),re(rr,Me,Nt,"\xD8","\\O",!0),re(rr,Me,Zr,"\u02CA","\\'"),re(rr,Me,Zr,"\u02CB","\\`"),re(rr,Me,Zr,"\u02C6","\\^"),re(rr,Me,Zr,"\u02DC","\\~"),re(rr,Me,Zr,"\u02C9","\\="),re(rr,Me,Zr,"\u02D8","\\u"),re(rr,Me,Zr,"\u02D9","\\."),re(rr,Me,Zr,"\u02DA","\\r"),re(rr,Me,Zr,"\u02C7","\\v"),re(rr,Me,Zr,"\xA8",'\\"'),re(rr,Me,Zr,"\u02DD","\\H"),re(rr,Me,Zr,"\u25EF","\\textcircled");var Ln={"--":!0,"---":!0,"``":!0,"''":!0};re(rr,Me,Nt,"\u2013","--"),re(rr,Me,Nt,"\u2013","\\textendash"),re(rr,Me,Nt,"\u2014","---"),re(rr,Me,Nt,"\u2014","\\textemdash"),re(rr,Me,Nt,"\u2018","`"),re(rr,Me,Nt,"\u2018","\\textquoteleft"),re(rr,Me,Nt,"\u2019","'"),re(rr,Me,Nt,"\u2019","\\textquoteright"),re(rr,Me,Nt,"\u201C","``"),re(rr,Me,Nt,"\u201C","\\textquotedblleft"),re(rr,Me,Nt,"\u201D","''"),re(rr,Me,Nt,"\u201D","\\textquotedblright"),re(ue,Me,Nt,"\xB0","\\degree",!0),re(rr,Me,Nt,"\xB0","\\degree"),re(rr,Me,Nt,"\xB0","\\textdegree",!0),re(ue,Me,nt,"\xA3","\\pounds"),re(ue,Me,nt,"\xA3","\\mathsterling",!0),re(rr,Me,nt,"\xA3","\\pounds"),re(rr,Me,nt,"\xA3","\\textsterling",!0),re(ue,ot,Nt,"\u2720","\\maltese"),re(rr,ot,Nt,"\u2720","\\maltese"),re(rr,Me,fn,"\xA0","\\ "),re(rr,Me,fn,"\xA0"," "),re(rr,Me,fn,"\xA0","~");for(var Vn='0123456789/@."',yi=0;yi<Vn.length;yi++){var Ki=Vn.charAt(yi);re(ue,Me,Nt,Ki,Ki)}for(var jn='0123456789!@*()-=+[]<>|";:?/.,',kn=0;kn<jn.length;kn++){var qt=jn.charAt(kn);re(rr,Me,Nt,qt,qt)}for(var zr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Jr=0;Jr<zr.length;Jr++){var Ot=zr.charAt(Jr);re(ue,Me,nt,Ot,Ot),re(rr,Me,Nt,Ot,Ot)}re(ue,ot,Nt,"C","\u2102"),re(rr,ot,Nt,"C","\u2102"),re(ue,ot,Nt,"H","\u210D"),re(rr,ot,Nt,"H","\u210D"),re(ue,ot,Nt,"N","\u2115"),re(rr,ot,Nt,"N","\u2115"),re(ue,ot,Nt,"P","\u2119"),re(rr,ot,Nt,"P","\u2119"),re(ue,ot,Nt,"Q","\u211A"),re(rr,ot,Nt,"Q","\u211A"),re(ue,ot,Nt,"R","\u211D"),re(rr,ot,Nt,"R","\u211D"),re(ue,ot,Nt,"Z","\u2124"),re(rr,ot,Nt,"Z","\u2124"),re(ue,Me,nt,"h","\u210E"),re(rr,Me,nt,"h","\u210E");for(var Ct="",Ir=0;Ir<zr.length;Ir++){var Fr=zr.charAt(Ir);Ct=String.fromCharCode(55349,56320+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56372+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56424+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56580+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56736+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56788+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56840+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56944+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ir<26&&(Ct=String.fromCharCode(55349,56632+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct),Ct=String.fromCharCode(55349,56476+Ir),re(ue,Me,nt,Fr,Ct),re(rr,Me,Nt,Fr,Ct))}Ct="\u{1D55C}",re(ue,Me,nt,"k",Ct),re(rr,Me,Nt,"k",Ct);for(var Tn=0;Tn<10;Tn++){var tn=Tn.toString();Ct=String.fromCharCode(55349,57294+Tn),re(ue,Me,nt,tn,Ct),re(rr,Me,Nt,tn,Ct),Ct=String.fromCharCode(55349,57314+Tn),re(ue,Me,nt,tn,Ct),re(rr,Me,Nt,tn,Ct),Ct=String.fromCharCode(55349,57324+Tn),re(ue,Me,nt,tn,Ct),re(rr,Me,Nt,tn,Ct),Ct=String.fromCharCode(55349,57334+Tn),re(ue,Me,nt,tn,Ct),re(rr,Me,Nt,tn,Ct)}for(var Bn="\xC7\xD0\xDE\xE7\xFE",gn=0;gn<Bn.length;gn++){var zn=Bn.charAt(gn);re(ue,Me,nt,zn,zn),re(rr,Me,Nt,zn,zn)}re(rr,Me,Nt,"\xF0","\xF0"),re(rr,Me,Nt,"\u2013","\u2013"),re(rr,Me,Nt,"\u2014","\u2014"),re(rr,Me,Nt,"\u2018","\u2018"),re(rr,Me,Nt,"\u2019","\u2019"),re(rr,Me,Nt,"\u201C","\u201C"),re(rr,Me,Nt,"\u201D","\u201D");var Xn=[["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"]],Qr=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Gr=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[Xn[xt][2],Xn[xt][je]]}else if(120782<=Be&&Be<=120831){var bt=Math.floor((Be-120782)/10);return[Qr[bt][2],Qr[bt][je]]}else{if(Be===120485||Be===120486)return[Xn[0][2],Xn[0][je]];if(120486<Be&&Be<120782)return["",""];throw new Y("Unsupported character: "+c)}},Sn=[[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]],On=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qn=function(c,w){return w.size<2?c:Sn[c-1][w.size-1]},Jn=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=On[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:Qn(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:On[C-1]})},c.havingBaseStyle=function(C){C=C||this.style.text();var K=Qn(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}();Jn.BASESIZE=6;var Ni=Jn,li={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},vn={ex:!0,em:!0,mu:!0},hr=function(c){return typeof c!="string"&&(c=c.unit),c in li||c in vn||c==="ex"},wr=function(c,w){var C;if(c.unit in li)C=li[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)},Or=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Hr=function(c,w,C){return vr[C][c]&&vr[C][c].replace&&(c=vr[C][c].replace),{value:c,metrics:We(c,w,C)}},Ur=function(c,w,C,K,Be){var je=Hr(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 P(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 P(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"&&Hr(c,"Main-Bold",w).metrics?Ur(c,"Main-Bold",w,C,K.concat(["mathbf"])):c==="\\"||vr[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(Or,c)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Hn=function(c,w,C,K){return F.contains(Or,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 Hr(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=Gr(Be,K),Ar=Xt[0],xr=Xt[1];return Ur(Be,Ar,K,w,je.concat(xr))}else if(bt){var nn,Cn;if(bt==="boldsymbol"||bt==="mathnormal"){var Xr=bt==="boldsymbol"?ti(Be,K,w,je):Hn(Be,K,w,je);nn=Xr.fontName,Cn=[Xr.fontClass]}else F.contains(Or,Be)?(nn="Main-Italic",Cn=["mathit"]):xt?(nn=oa[bt].fontName,Cn=[bt]):(nn=zi(bt,w.fontWeight,w.fontShape),Cn=[bt,w.fontWeight,w.fontShape]);if(Hr(Be,nn,K).metrics)return Ur(Be,nn,K,w,je.concat(Cn));if(Ln.hasOwnProperty(Be)&&nn.substr(0,10)==="Typewriter"){for(var dn=[],Mn=0;Mn<Be.length;Mn++)dn.push(Ur(Be[Mn],nn,K,w,je.concat(Cn)));return si(dn)}}if(C==="mathord"){var qn=en(Be,K,w,je);return Ur(Be,qn.fontName,K,w,je.concat([qn.fontClass]))}else if(C==="textord"){var xi=vr[K][Be]&&vr[K][Be].font;if(xi==="ams"){var yn=zi("amsrm",w.fontWeight,w.fontShape);return Ur(Be,yn,K,w,je.concat("amsrm",w.fontWeight,w.fontShape))}else if(xi==="main"||!xi){var fi=zi("textrm",w.fontWeight,w.fontShape);return Ur(Be,fi,K,w,je.concat(w.fontWeight,w.fontShape))}else{var Ji=zi(xi,w.fontWeight,w.fontShape);return Ur(Be,Ji,K,w,je.concat(Ji,w.fontWeight,w.fontShape))}}else throw new Error("unexpected type: "+C+" in makeOrd")},Ri=function(c,w){if(Ue(c.classes)!==Ue(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},Oi=function(c){for(var w=0;w<c.length-1;w++){var C=c[w],K=c[w+1];C instanceof P&&K instanceof P&&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},Qi=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 f(c,w,C,K);return Qi(Be),Be},En=function(c,w,C,K){return new f(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},Ai=function(c,w,C,K){var Be=new D(c,w,C,K);return Qi(Be),Be},si=function(c){var w=new _r(c);return Qi(w),w},ri=function(c,w){return c instanceof _r?Tr([],[c],w):c},wi=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 Cn=c.children[0];if(Cn.type!=="elem")throw new Error('First child must have type "elem".');if(c.positionType==="shift")Xt=-Cn.elem.depth-c.positionData;else if(c.positionType==="firstBaseline")Xt=-Cn.elem.depth;else throw new Error("Invalid positionType "+c.positionType+".")}return{children:c.children,depth:Xt}},Ti=function(c,w){for(var C=wi(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,Cn=Be,Xr=Be,dn=0;dn<K.length;dn++){var Mn=K[dn];if(Mn.type==="kern")Xr+=Mn.size;else{var qn=Mn.elem,xi=Mn.wrapperClasses||[],yn=Mn.wrapperStyle||{},fi=Tr(xi,[Ar,qn],void 0,yn);fi.style.top=-je-Xr-qn.depth+"em",Mn.marginLeft&&(fi.style.marginLeft=Mn.marginLeft),Mn.marginRight&&(fi.style.marginRight=Mn.marginRight),xr.push(fi),Xr+=qn.height+qn.depth}nn=Math.min(nn,Xr),Cn=Math.max(Cn,Xr)}var Ji=Tr(["vlist"],xr);Ji.style.height=Cn+"em";var $i;if(nn<0){var Sa=Tr([],[]),Ia=Tr(["vlist"],[Sa]);Ia.style.height=-nn+"em";var Xi=Tr(["vlist-s"],[new P("\u200B")]);$i=[Tr(["vlist-r"],[Ji,Xi]),Tr(["vlist-r"],[Ia])]}else $i=[Tr(["vlist-r"],[Ji])];var Ta=Tr(["vlist-t"],$i);return $i.length===2&&Ta.classes.push("vlist-t2"),Ta.height=Cn,Ta.depth=-nn,Ta},Bi=function(c,w){var C=Tr(["mspace"],[],w),K=wr(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},oa={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"}},Ei={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},wn=function(c,w){var C=Ei[c],K=C[0],Be=C[1],je=C[2],xt=new Ie(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=En(["overlay"],[bt],w);return Xt.height=je,Xt.style.height=je+"em",Xt.style.width=Be+"em",Xt},Ht={fontMap:oa,makeSymbol:Ur,mathsym:on,makeSpan:Tr,makeSvgSpan:En,makeLineSpan:hn,makeAnchor:Ai,makeFragment:si,wrapFragment:ri,makeVList:Ti,makeOrd:ui,makeGlue:Bi,staticSvg:wn,svgData:Ei,tryCombineChars:Oi};function Fn(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 Ci(He,c){var w=ki(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 ki(He,c){return He&&He.type==="atom"&&He.family===c?He:null}function Aa(He){var c=Ca(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 Ca(He){return He&&(He.type==="atom"||Mt.hasOwnProperty(He.type))?He:null}var ta={number:3,unit:"mu"},xa={number:4,unit:"mu"},La={number:5,unit:"mu"},hi={mord:{mop:ta,mbin:xa,mrel:La,minner:ta},mop:{mord:ta,mop:ta,mrel:La,minner:ta},mbin:{mord:xa,mop:xa,mopen:xa,minner:xa},mrel:{mord:La,mop:La,mopen:La,minner:La},mopen:{},mclose:{mop:ta,mbin:xa,mrel:La,minner:ta},mpunct:{mord:ta,mop:ta,mrel:La,mopen:ta,mclose:ta,mpunct:ta,minner:ta},minner:{mord:ta,mop:ta,mbin:xa,mrel:La,mopen:ta,mpunct:ta,minner:ta}},bi={mord:{mop:ta},mop:{mord:ta,mop:ta},mbin:{},mrel:{},mopen:{},mclose:{mop:ta},mpunct:{},minner:{mop:ta}},Hi={},ha={},Na={};function ci(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)Hi[w[bt]]=xt;c&&(Be&&(ha[c]=Be),je&&(Na[c]=je))}function pa(He){var c=He.type,w=He.htmlBuilder,C=He.mathmlBuilder;ci({type:c,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:w,mathmlBuilder:C})}var va=function(c){var w=Gn(c,"ordgroup");return w?w.body:[c]},Ha=Ht.makeSpan,Is=["leftmost","mbin","mopen","mrel","mop","mpunct"],Wa=["rightmost","mrel","mclose","mpunct"],Fa={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT},Mi={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=ia(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(Fa[Ar.style])))}var xr=Ha([K[0]||"leftmost"],[],w),nn=Ha([K[1]||"rightmost"],[],w);return ms(Be,function(Cn,Xr){var dn=Xr.classes[0],Mn=Cn.classes[0];dn==="mbin"&&F.contains(Wa,Mn)?Xr.classes[0]="mord":Mn==="mbin"&&F.contains(Is,dn)&&(Cn.classes[0]="mord")},{node:xr},nn),ms(Be,function(Cn,Xr){var dn=Wi(Xr),Mn=Wi(Cn),qn=dn&&Mn?Cn.hasClass("mtight")?bi[dn][Mn]:hi[dn][Mn]:null;if(qn)return Ht.makeGlue(qn,Xt)},{node:xr},nn),Be},ms=function He(c,w,C,K){K&&c.push(K);for(var Be=0;Be<c.length;Be++){var je=c[Be],xt=ss(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()},ss=function(c){return c instanceof _r||c instanceof D?c:null},ns=function He(c,w){var C=ss(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=ns(c,w)),Mi[c.classes[0]]||null):null},gs=function(c,w){var C=["nulldelimiter"].concat(c.baseSizingClasses());return Ha(w.concat(C))},ia=function(c,w,C){if(!c)return Ha();if(ha[c.type]){var K=ha[c.type](c,w);if(C&&w.size!==C.size){K=Ha(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=Ha(["base"],He,c),C=Ha(["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=Ha(["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 hs=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}(),os=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:hs,TextNode:Bo,SpaceNode:os,newDocumentFragment:_o},Da=function(c,w,C){return vr[w][c]&&vr[w][c].replace&&c.charCodeAt(0)!==55349&&!(Ln.hasOwnProperty(c)&&C&&(C.fontFamily&&C.fontFamily.substr(4,2)==="tt"||C.font&&C.font.substr(4,2)==="tt"))&&(c=vr[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;vr[K][Be]&&vr[K][Be].replace&&(Be=vr[K][Be].replace);var je=Ht.fontMap[C].fontName;return We(Be,je,K)?Ht.fontMap[C].variant:null},ea=function(c,w,C){if(c.length===1){var K=Ui(c[0],w);return C&&K instanceof hs&&K.type==="mo"&&(K.setAttribute("lspace","0em"),K.setAttribute("rspace","0em")),[K]}for(var Be=[],je,xt=0;xt<c.length;xt++){var bt=Ui(c[xt],w);if(bt instanceof hs&&je instanceof hs){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 Cn=je.children[0];if(Cn instanceof Bo&&Cn.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},ji=function(c,w,C){return io(ea(c,w,C))},Ui=function(c,w){if(!c)return new Yn.MathNode("mrow");if(Na[c.type]){var C=Na[c.type](c,w);return C}else throw new Y("Got group of unknown type: '"+c.type+"'")};function ba(He,c,w,C){var K=ea(He,w),Be;K.length===1&&K[0]instanceof hs&&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 Ht.makeSpan([Xt],[bt])}var ka=function(c){return new Ni({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=Ht.makeSpan(C,[c])}return c},As=function(c,w,C){var K=ka(C),Be;if(C.output==="mathml")return ba(c,w,K,!0);if(C.output==="html"){var je=Qs(c,K);Be=Ht.makeSpan(["katex"],[je])}else{var xt=ba(c,w,K,!1),bt=Qs(c,K);Be=Ht.makeSpan(["katex"],[xt,bt])}return Rs(Be,C)},Es=function(c,w,C){var K=ka(C),Be=Qs(c,K),je=Ht.makeSpan(["katex"],[Be]);return Rs(je,C)},is=As,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,Cn,Xr;if(xr>5)Xt==="widehat"||Xt==="widecheck"?(nn=420,bt=2364,Xr=.42,Cn=Xt+"4"):(nn=312,bt=2340,Xr=.34,Cn="tilde4");else{var dn=[1,1,2,2,3,3][xr];Xt==="widehat"||Xt==="widecheck"?(bt=[0,1062,2364,2364,2364][dn],nn=[0,239,300,360,420][dn],Xr=[0,.24,.3,.3,.36,.42][dn],Cn=Xt+dn):(bt=[0,600,1033,2339,2340][dn],nn=[0,260,286,306,312][dn],Xr=[0,.26,.286,.3,.306,.34][dn],Cn="tilde"+dn)}var Mn=new Ie(Cn),qn=new te([Mn],{width:"100%",height:Xr+"em",viewBox:"0 0 "+bt+" "+nn,preserveAspectRatio:"none"});return{span:Ht.makeSvgSpan([],[qn],w),minWidth:0,height:Xr}}else{var xi=[],yn=eo[Xt],fi=yn[0],Ji=yn[1],$i=yn[2],Sa=$i/1e3,Ia=fi.length,Xi,Ta;if(Ia===1){var Ba=yn[3];Xi=["hide-tail"],Ta=[Ba]}else if(Ia===2)Xi=["halfarrow-left","halfarrow-right"],Ta=["xMinYMin","xMaxYMin"];else if(Ia===3)Xi=["brace-left","brace-center","brace-right"],Ta=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Ia+" children.");for(var ai=0;ai<Ia;ai++){var Ka=new Ie(fi[ai]),ls=new te([Ka],{width:"400em",height:Sa+"em",viewBox:"0 0 "+bt+" "+$i,preserveAspectRatio:Ta[ai]+" slice"}),aa=Ht.makeSvgSpan([Xi[ai]],[ls],w);if(Ia===1)return{span:aa,minWidth:Ji,height:Sa};aa.style.height=Sa+"em",xi.push(aa)}return{span:Ht.makeSpan(["stretchy"],xi,w),minWidth:Ji,height:Sa}}}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=Ht.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 Te({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(w)&&bt.push(new Te({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Xt=new te(bt,{width:"100%",height:je+"em"});Be=Ht.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=Fn(Be.base,"accent"),C=K.base,Be.base=C,je=Ge(ia(Be,w)),Be.base=K):(K=Fn(c,"accent"),C=K.base);var xt=ia(C,w.havingCrampedStyle()),bt=K.isShifty&&F.isCharacterBox(C),Xt=0;if(bt){var Ar=F.getBaseElem(C),xr=ia(Ar,w.havingCrampedStyle());Xt=Se(xr).skew}var nn=Math.min(xt.height,w.fontMetrics().xHeight),Cn;if(K.isStretchy)Cn=pi.svgSpan(K,w),Cn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"elem",elem:Cn,wrapperClasses:["svg-align"],wrapperStyle:Xt>0?{width:"calc(100% - "+2*Xt+"em)",marginLeft:2*Xt+"em"}:void 0}]},w);else{var Xr,dn;K.label==="\\vec"?(Xr=Ht.staticSvg("vec",w),dn=Ht.svgData.vec[1]):(Xr=Ht.makeOrd({mode:K.mode,text:K.label},w,"textord"),Xr=Se(Xr),Xr.italic=0,dn=Xr.width),Cn=Ht.makeSpan(["accent-body"],[Xr]);var Mn=K.label==="\\textcircled";Mn&&(Cn.classes.push("accent-full"),nn=xt.height);var qn=Xt;Mn||(qn-=dn/2),Cn.style.left=qn+"em",K.label==="\\textcircled"&&(Cn.style.top=".2em"),Cn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"kern",size:-nn},{type:"elem",elem:Cn}]},w)}var xi=Ht.makeSpan(["mord","accent"],[Cn],w);return je?(je.children[0]=xi,je.height=Math.max(xi.height,je.height),je.classes[0]="mord",je):xi},vs=function(c,w){var C=c.isStretchy?pi.mathMLnode(c.label):new Yn.MathNode("mo",[Da(c.label,c.mode)]),K=new Yn.MathNode("mover",[Ui(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("|"));ci({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:vs}),ci({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:vs}),ci({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=ia(c.base,w),K=pi.svgSpan(c,w),Be=c.label==="\\utilde"?.12:0,je=Ht.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 Ht.makeSpan(["mord","accentunder"],[je],w)},mathmlBuilder:function(c,w){var C=pi.mathMLnode(c.label),K=new Yn.MathNode("munder",[Ui(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};ci({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=Ht.wrapFragment(ia(c.body,K,w),w);Be.classes.push("x-arrow-pad");var je;c.below&&(K=w.havingStyle(C.sub()),je=Ht.wrapFragment(ia(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=Ht.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=Ht.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"),Ht.makeSpan(["mrel","x-arrow"],[Ar],w)},mathmlBuilder:function(c,w){var C=pi.mathMLnode(c.label),K;if(c.body){var Be=Ns(Ui(c.body,w));if(c.below){var je=Ns(Ui(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(Ui(c.below,w));K=new Yn.MathNode("munder",[C,xt])}else K=Ns(),K=new Yn.MathNode("mover",[C,K]);return K}}),ci({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){for(var C=c.parser,K=Fn(w[0],"ordgroup"),Be=K.body,je="",xt=0;xt<Be.length;xt++){var bt=Fn(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 Ht.makeFragment(C)},vo=function(c,w){var C=ea(c.body,w.withColor(c.color)),K=new Yn.MathNode("mstyle",C);return K.setAttribute("mathcolor",c.color),K};ci({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(c,w){var C=c.parser,K=Fn(w[0],"color-token").color,Be=w[1];return{type:"color",mode:C.mode,color:K,body:va(Be)}},htmlBuilder:Vs,mathmlBuilder:vo}),ci({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=Fn(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}),ci({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&&Fn(je,"size").value}},htmlBuilder:function(c,w){if(c.newRow)throw new Y("\\cr valid only within a tabular/array environment");var C=Ht.makeSpan(["mspace"],[],w);return c.newLine&&(C.classes.push("newline"),c.size&&(C.style.marginTop=wr(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",wr(c.size,w)+"em")),C}});var Ps=function(c,w,C){var K=vr.math[c]&&vr.math[c].replace,Be=We(K||c,w,C);if(!Be)throw new Error("Unsupported symbol "+c+" and font size "+w+".");return Be},Fi=function(c,w,C,K){var Be=C.havingBaseStyle(w),je=Ht.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=Ht.makeSymbol(c,"Main-Regular",Be,K),bt=Fi(xt,w,K,je);return C&&Dl(bt,K,w),bt},nl=function(c,w,C,K){return Ht.makeSymbol(c,"Size"+w+"-Regular",C,K)},Qo=function(c,w,C,K,Be,je){var xt=nl(c,w,Be,K),bt=Fi(Ht.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=Ht.makeSpan(["delimsizinginner",K],[Ht.makeSpan([],[Ht.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),Cn=nn.height+nn.depth,Xr=Ps(Xt,xr,Be),dn=Xr.height+Xr.depth,Mn=Ps(Ar,xr,Be),qn=Mn.height+Mn.depth,xi=0,yn=1;if(bt!==null){var fi=Ps(bt,xr,Be);xi=fi.height+fi.depth,yn=2}var Ji=Cn+qn+xi,$i=Math.max(0,Math.ceil((w-Ji)/(yn*dn))),Sa=Ji+$i*yn*dn,Ia=K.fontMetrics().axisHeight;C&&(Ia*=K.sizeMultiplier);var Xi=Sa/2-Ia,Ta=($i+1)*.005-dn,Ba=[];if(Ba.push(Ao(Ar,xr,Be)),bt===null)for(var ai=0;ai<$i;ai++)Ba.push(_a),Ba.push(Ao(Xt,xr,Be));else{for(var Ka=0;Ka<$i;Ka++)Ba.push(_a),Ba.push(Ao(Xt,xr,Be));Ba.push({type:"kern",size:Ta}),Ba.push(Ao(Xt,xr,Be)),Ba.push(_a),Ba.push(Ao(bt,xr,Be));for(var ls=0;ls<$i;ls++)Ba.push(_a),Ba.push(Ao(Xt,xr,Be))}Ba.push({type:"kern",size:Ta}),Ba.push(Ao(Xt,xr,Be)),Ba.push(_a),Ba.push(Ao(xt,xr,Be));var aa=K.havingBaseStyle(_.TEXT),da=Ht.makeVList({positionType:"bottom",positionData:Xi,children:Ba},aa);return Fi(Ht.makeSpan(["delimsizing","mult"],[da],aa),_.TEXT,K,je)},yl=80,fo=.08,yo=function(c,w,C,K,Be){var je=Cr(c,K,C),xt=new Ie(c,je),bt=new te([xt],{width:"400em",height:w+"em",viewBox:"0 0 400000 "+C,preserveAspectRatio:"xMinYMin slice"});return Ht.makeSvgSpan(["hide-tail"],[bt],Be)},Ma=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)*as[K.size],Xt=(as[K.size]+je)/Be,bt=(as[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}},ma=["(","\\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"],Ja=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],as=[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(ma,c)||F.contains(Ja,c))return Qo(c,w,!1,C,K,Be);if(F.contains(to,c))return vl(c,as[w],!1,C,K,Be);throw new Y("Illegal delimiter: '"+c+"'")},Ea=[{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]},qa=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(Ja,c)?xt=Ea:F.contains(ma,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 qa(c,xr,!0,K,Be,je)},so={sqrtImage:Ma,sizedDelim:js,customSizedDelim:qa,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=Ca(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)}ci({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==="."?Ht.makeSpan([c.mclass]):so.sizedDelim(c.delim,c.size,w,c.mode,[c.mclass])},mathmlBuilder:function(c){var w=[];c.delim!=="."&&w.push(Da(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.")}ci({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}}}),ci({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=Fn(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=gs(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=gs(w,["mclose"]);else{var Cn=c.rightColor?w.withColor(c.rightColor):w;nn=so.leftRightDelim(c.right,K,Be,Cn,c.mode,["mclose"])}return C.push(nn),Ht.makeSpan(["minner"],C,w)},mathmlBuilder:function(c,w){fl(c);var C=ea(c.body,w);if(c.left!=="."){var K=new Yn.MathNode("mo",[Da(c.left,c.mode)]);K.setAttribute("fence","true"),C.unshift(K)}if(c.right!=="."){var Be=new Yn.MathNode("mo",[Da(c.right,c.mode)]);Be.setAttribute("fence","true"),c.rightColor&&Be.setAttribute("mathcolor",c.rightColor),C.push(Be)}return io(C)}}),ci({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=gs(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==="|"?Da("|","text"):Da(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=Ht.wrapFragment(ia(c.body,w),w),K=c.label.substr(1),Be=w.sizeMultiplier,je,xt=0,bt=F.isCharacterBox(c.body);if(K==="sout")je=Ht.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=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:je,shift:xt},{type:"elem",elem:C,shift:0}]},w):xr=Ht.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?Ht.makeSpan(["mord","cancel-lap"],[xr],w):Ht.makeSpan(["mord"],[xr],w)},xl=function(c,w){var C=0,K=new Yn.MathNode(c.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ui(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};ci({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=Fn(w[0],"color-token").color,xt=w[1];return{type:"enclose",mode:K.mode,label:Be,backgroundColor:je,body:xt}},htmlBuilder:Ll,mathmlBuilder:xl}),ci({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=Fn(w[0],"color-token").color,xt=Fn(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}),ci({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]}}}),ci({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&&(ha[c]=Be),je&&(Na[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 Ya(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 Cn=He.parseExpression(!1,"\\cr");He.gullet.endGroup(),He.gullet.beginGroup(),Cn={type:"ordgroup",mode:He.mode,body:Cn},w&&(Cn={type:"styling",mode:He.mode,style:w,body:[Cn]}),Xt.push(Cn);var Xr=He.fetch().text;if(Xr==="&")He.consume();else if(Xr==="\\end"){Xt.length===1&&Cn.type==="styling"&&Cn.body[0].body.length===0&&Ar.pop(),nn.length<Ar.length+1&&nn.push([]);break}else if(Xr==="\\cr"){var dn=Fn(He.parseFunction(),"cr");xr.push(dn.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 ys(He){return He.substr(0,1)==="d"?"display":"text"}var es=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 Cn=w.havingStyle(_.SCRIPT).sizeMultiplier;nn=.2778*(Cn/w.sizeMultiplier)}var Xr=12*xr,dn=3*xr,Mn=c.arraystretch*Xr,qn=.7*Mn,xi=.3*Mn,yn=0;function fi($s){for(var ts=0;ts<$s.length;++ts)ts>0&&(yn+=.25),Xt.push({pos:yn,isDashed:$s[ts]})}for(fi(je[0]),C=0;C<c.body.length;++C){var Ji=c.body[C],$i=qn,Sa=xi;xt<Ji.length&&(xt=Ji.length);var Ia=new Array(Ji.length);for(K=0;K<Ji.length;++K){var Xi=ia(Ji[K],w);Sa<Xi.depth&&(Sa=Xi.depth),$i<Xi.height&&($i=Xi.height),Ia[K]=Xi}var Ta=c.rowGaps[C],Ba=0;Ta&&(Ba=wr(Ta,w),Ba>0&&(Ba+=xi,Sa<Ba&&(Sa=Ba),Ba=0)),c.addJot&&(Sa+=dn),Ia.height=$i,Ia.depth=Sa,yn+=$i,Ia.pos=yn,yn+=Sa+Ba,bt[C]=Ia,fi(je[C+1])}var ai=yn/2+w.fontMetrics().axisHeight,Ka=c.cols||[],ls=[],aa,da;for(K=0,da=0;K<xt||da<Ka.length;++K,++da){for(var wa=Ka[da]||{},$a=!0;wa.type==="separator";){if($a||(aa=Ht.makeSpan(["arraycolsep"],[]),aa.style.width=w.fontMetrics().doubleRuleSep+"em",ls.push(aa)),wa.separator==="|"||wa.separator===":"){var us=wa.separator==="|"?"solid":"dashed",ca=Ht.makeSpan(["vertical-separator"],[],w);ca.style.height=yn+"em",ca.style.borderRightWidth=Ar+"em",ca.style.borderRightStyle=us,ca.style.margin="0 -"+Ar/2+"em",ca.style.verticalAlign=-(yn-ai)+"em",ls.push(ca)}else throw new Y("Invalid separator type: "+wa.separator);da++,wa=Ka[da]||{},$a=!1}if(!(K>=xt)){var Ts=void 0;(K>0||c.hskipBeforeAndAfter)&&(Ts=F.deflt(wa.pregap,nn),Ts!==0&&(aa=Ht.makeSpan(["arraycolsep"],[]),aa.style.width=Ts+"em",ls.push(aa)));var bs=[];for(C=0;C<Be;++C){var Hs=bt[C],Zs=Hs[K];if(Zs){var Xs=Hs.pos-ai;Zs.depth=Hs.depth,Zs.height=Hs.height,bs.push({type:"elem",elem:Zs,shift:Xs})}}bs=Ht.makeVList({positionType:"individualShift",children:bs},w),bs=Ht.makeSpan(["col-align-"+(wa.align||"c")],[bs]),ls.push(bs),(K<xt-1||c.hskipBeforeAndAfter)&&(Ts=F.deflt(wa.postgap,nn),Ts!==0&&(aa=Ht.makeSpan(["arraycolsep"],[]),aa.style.width=Ts+"em",ls.push(aa)))}}if(bt=Ht.makeSpan(["mtable"],ls),Xt.length>0){for(var Wo=Ht.makeLineSpan("hline",w,Ar),$o=Ht.makeLineSpan("hdashline",w,Ar),ho=[{type:"elem",elem:bt,shift:0}];Xt.length>0;){var oo=Xt.pop(),ro=oo.pos-ai;oo.isDashed?ho.push({type:"elem",elem:$o,shift:ro}):ho.push({type:"elem",elem:Wo,shift:ro})}bt=Ht.makeVList({positionType:"individualShift",children:ho},w)}return Ht.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",[Ui(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 Cn=c.cols||[],Xr="",dn=1;dn<Cn.length;dn++)Xr+=dn%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="",qn=c.hLinesBeforeRow;Be+=qn[0].length>0?"left ":"",Be+=qn[qn.length-1].length>0?"right ":"";for(var xi=1;xi<qn.length-1;xi++)Mn+=qn[xi].length===0?"none ":qn[xi][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=Ya(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=Fn(bt.body[Ar],"textord");Xt+=xr.text}Be=Number(Xt),je=Be*2}var nn=!je;K.body.forEach(function(Mn){for(var qn=1;qn<Mn.length;qn+=2){var xi=Fn(Mn[qn],"styling"),yn=Fn(xi.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 Cn=0;Cn<je;++Cn){var Xr="r",dn=0;Cn%2===1?Xr="l":Cn>0&&nn&&(dn=1),C[Cn]={type:"align",align:Xr,pregap:dn,postgap:0}}return K.colSeparationType=nn?"align":"alignat",K};Gs({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(c,w){var C=Ca(w[0]),K=C?[w[0]]:Fn(w[0],"ordgroup").body,Be=K.map(function(xt){var bt=Aa(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 Ya(c.parser,je,ys(c.envName))},htmlBuilder:es,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=Ya(c.parser,C,ys(c.envName));return w?{type:"leftright",mode:c.mode,body:[K],left:w[0],right:w[1],rightColor:void 0}:K},htmlBuilder:es,mathmlBuilder:qs}),Gs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(c){var w={arraystretch:.5},C=Ya(c.parser,w,"script");return C.colSeparationType="small",C},htmlBuilder:es,mathmlBuilder:qs}),Gs({type:"array",names:["subarray"],props:{numArgs:1},handler:function(c,w){var C=Ca(w[0]),K=C?[w[0]]:Fn(w[0],"ordgroup").body,Be=K.map(function(xt){var bt=Aa(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=Ya(c.parser,je,"script"),je.body[0].length>1)throw new Y("{subarray} can contain only one column");return je},htmlBuilder:es,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=Ya(c.parser,w,ys(c.envName));return{type:"leftright",mode:c.mode,body:[C],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:es,mathmlBuilder:qs}),Gs({type:"array",names:["aligned"],props:{numArgs:0},handler:El,htmlBuilder:es,mathmlBuilder:qs}),Gs({type:"array",names:["gathered"],props:{numArgs:0},handler:function(c){var w={cols:[{type:"align",align:"c"}],addJot:!0};return Ya(c.parser,w,"display")},htmlBuilder:es,mathmlBuilder:qs}),Gs({type:"array",names:["alignedat"],props:{numArgs:1},handler:El,htmlBuilder:es,mathmlBuilder:qs}),ci({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;ci({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+=Fn(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},Cn=bt.handler(nn,Ar,xr);C.expect("\\end",!1);var Xr=C.nextToken,dn=Fn(C.parseFunction(),"environment");if(dn.name!==je)throw new Y("Mismatch: \\begin{"+je+"} matched by \\end{"+dn.name+"}",Xr);return Cn}return{type:"environment",mode:C.mode,name:je,nameGroup:Be}}});var cu=Ht.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=ea(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)}ci({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:va(Be),isCharacterBox:F.isCharacterBox(Be)}},htmlBuilder:Ol,mathmlBuilder:Pl});var oi=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"};ci({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(c,w){var C=c.parser;return{type:"mclass",mode:C.mode,mclass:oi(w[0]),body:[w[1]],isCharacterBox:F.isCharacterBox(w[1])}}}),ci({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=oi(Be):xt="mrel";var bt={type:"op",mode:Be.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:K!=="\\stackrel",body:va(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 ia(c.body,K)},Wl=function(c,w){var C=c.font,K=w.withFont(C);return Ui(c.body,K)},ic={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ci({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}),ci({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:oi(K),body:[{type:"font",mode:C.mode,font:"boldsymbol",body:K}],isCharacterBox:Be}}}),ci({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=ia(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=ia(c.denom,je,w),xr,nn,Cn;c.hasBarLine?(c.barSize?(nn=wr(c.barSize,w),xr=Ht.makeLineSpan("frac-line",w,nn)):xr=Ht.makeLineSpan("frac-line",w),nn=xr.height,Cn=xr.height):(xr=null,nn=0,Cn=w.fontMetrics().defaultRuleThickness);var Xr,dn,Mn;C.size===_.DISPLAY.size||c.size==="display"?(Xr=w.fontMetrics().num1,nn>0?dn=3*Cn:dn=7*Cn,Mn=w.fontMetrics().denom1):(nn>0?(Xr=w.fontMetrics().num2,dn=Cn):(Xr=w.fontMetrics().num3,dn=3*Cn),Mn=w.fontMetrics().denom2);var qn;if(xr){var yn=w.fontMetrics().axisHeight;Xr-xt.depth-(yn+.5*nn)<dn&&(Xr+=dn-(Xr-xt.depth-(yn+.5*nn))),yn-.5*nn-(Ar.height-Mn)<dn&&(Mn+=dn-(yn-.5*nn-(Ar.height-Mn)));var fi=-(yn-.5*nn);qn=Ht.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 xi=Xr-xt.depth-(Ar.height-Mn);xi<dn&&(Xr+=.5*(dn-xi),Mn+=.5*(dn-xi)),qn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ar,shift:Mn},{type:"elem",elem:xt,shift:-Xr}]},w)}je=w.havingStyle(C),qn.height*=je.sizeMultiplier/w.sizeMultiplier,qn.depth*=je.sizeMultiplier/w.sizeMultiplier;var Ji;C.size===_.DISPLAY.size?Ji=w.fontMetrics().delim1:Ji=w.fontMetrics().delim2;var $i,Sa;return c.leftDelim==null?$i=gs(w,["mopen"]):$i=so.customSizedDelim(c.leftDelim,Ji,!0,w.havingStyle(C),c.mode,["mopen"]),c.continued?Sa=Ht.makeSpan([]):c.rightDelim==null?Sa=gs(w,["mclose"]):Sa=so.customSizedDelim(c.rightDelim,Ji,!0,w.havingStyle(C),c.mode,["mclose"]),Ht.makeSpan(["mord"].concat(je.sizingClasses(w)),[$i,Ht.makeSpan(["mfrac"],[qn]),Sa],w)},sc=function(c,w){var C=new Yn.MathNode("mfrac",[Ui(c.numer,w),Ui(c.denom,w)]);if(!c.hasBarLine)C.setAttribute("linethickness","0px");else if(c.barSize){var K=wr(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};ci({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}),ci({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};ci({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=Ci(w[0],"open"));var xt=je?Hu(je.text):null,bt=Gn(w[1],"atom");bt&&(bt=Ci(w[1],"close"));var Xt=bt?Hu(bt.text):null,Ar=Fn(w[2],"size"),xr,nn=null;Ar.isBlank?xr=!0:(nn=Ar.value,xr=nn.number>0);var Cn="auto",Xr=Gn(w[3],"ordgroup");if(Xr){if(Xr.body.length>0){var dn=Fn(Xr.body[0],"textord");Cn=Xo[Number(dn.text)]}}else Xr=Fn(w[3],"textord"),Cn=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:Cn}},htmlBuilder:du,mathmlBuilder:sc}),ci({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:Fn(w[0],"size").value,token:Be}}}),ci({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(Fn(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?ia(je.sup,w.havingStyle(C.sup()),w):ia(je.sub,w.havingStyle(C.sub()),w),Be=Fn(je.base,"horizBrace")):Be=Fn(c,"horizBrace");var xt=ia(Be.base,w.havingBaseStyle(_.DISPLAY)),bt=pi.svgSpan(Be,w),Xt;if(Be.isOver?(Xt=Ht.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=Ht.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=Ht.makeSpan(["mord",Be.isOver?"mover":"munder"],[Xt],w);Be.isOver?Xt=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ar},{type:"kern",size:.2},{type:"elem",elem:K}]},w):Xt=Ht.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 Ht.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",[Ui(c.base,w),C])};ci({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}),ci({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(c,w){var C=c.parser,K=w[1],Be=Fn(w[0],"url").url;return C.settings.isTrusted({command:"\\href",url:Be})?{type:"href",mode:C.mode,href:Be,body:va(K)}:C.formatUnsupportedCmd("\\href")},htmlBuilder:function(c,w){var C=la(c.body,w,!1);return Ht.makeAnchor(c.href,[],C,w)},mathmlBuilder:function(c,w){var C=ji(c.body,w);return C instanceof hs||(C=new hs("mrow",[C])),C.setAttribute("href",c.href),C}}),ci({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(c,w){var C=c.parser,K=Fn(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:va(bt)}}}),ci({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:va(w[0]),mathml:va(w[1])}},htmlBuilder:function(c,w){var C=la(c.html,w,!1);return Ht.makeFragment(C)},mathmlBuilder:function(c,w){return ji(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};ci({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=Fn(C[0],"raw").string,Ar=Xt.split(","),xr=0;xr<Ar.length;xr++){var nn=Ar[xr].split("=");if(nn.length===2){var Cn=nn[1].trim();switch(nn[0].trim()){case"alt":bt=Cn;break;case"width":Be=u(Cn);break;case"height":je=u(Cn);break;case"totalheight":xt=u(Cn);break;default:throw new Y("Invalid key: '"+nn[0]+"' in \\includegraphics.")}}}var Xr=Fn(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=wr(c.height,w),K=0;c.totalheight.number>0&&(K=wr(c.totalheight,w)-C,K=Number(K.toFixed(2)));var Be=0;c.width.number>0&&(Be=wr(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=wr(c.height,w),Be=0;if(c.totalheight.number>0&&(Be=wr(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=wr(c.width,w);C.setAttribute("width",je+"em")}return C.setAttribute("src",c.src),C}}),ci({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=Fn(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 Ht.makeGlue(c.dimension,w)},mathmlBuilder:function(c,w){var C=wr(c.dimension,w);return new Yn.SpaceNode(C)}}),ci({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=Ht.makeSpan([],[ia(c.body,w)]),C=Ht.makeSpan(["inner"],[C],w)):C=Ht.makeSpan(["inner"],[ia(c.body,w)]);var K=Ht.makeSpan(["fix"],[]),Be=Ht.makeSpan([c.alignment],[C,K],w),je=Ht.makeSpan(["strut"]);return je.style.height=Be.height+Be.depth+"em",je.style.verticalAlign=-Be.depth+"em",Be.children.unshift(je),Be=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Be}]},w),Ht.makeSpan(["mord"],[Be],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[Ui(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}}),ci({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}}}),ci({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}};ci({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(c,w){var C=c.parser;return{type:"mathchoice",mode:C.mode,display:va(w[0]),text:va(w[1]),script:va(w[2]),scriptscript:va(w[3])}},htmlBuilder:function(c,w){var C=y(c,w),K=la(C,w,!1);return Ht.makeFragment(K)},mathmlBuilder:function(c,w){var C=y(c,w);return ji(C,w)}});var M=function(c,w,C,K,Be,je,xt){c=Ht.makeSpan([],[c]);var bt,Xt;if(w){var Ar=ia(w,K.havingStyle(Be.sup()),K);Xt={elem:Ar,kern:Math.max(K.fontMetrics().bigOpSpacing1,K.fontMetrics().bigOpSpacing3-Ar.depth)}}if(C){var xr=ia(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 Cn=K.fontMetrics().bigOpSpacing5+bt.elem.height+bt.elem.depth+bt.kern+c.depth+xt;nn=Ht.makeVList({positionType:"bottom",positionData:Cn,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=Ht.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 dn=c.depth+xt;nn=Ht.makeVList({positionType:"bottom",positionData:dn,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 Ht.makeSpan(["mop","op-limits"],[nn],K)},ne=["\\smallint"],Z=function(c,w){var C,K,Be=!1,je,xt=Gn(c,"supsub");xt?(C=xt.sup,K=xt.sub,je=Fn(xt.base,"op"),Be=!0):je=Fn(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=Ht.makeSymbol(je.name,xr,"math",w,["mop","op-symbol",Xt?"large-op":"small-op"]),nn.length>0){var Cn=Ar.italic,Xr=Ht.staticSvg(nn+"Size"+(Xt?"2":"1"),w);Ar=Ht.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=Cn}}else if(je.body){var dn=la(je.body,w,!0);dn.length===1&&dn[0]instanceof P?(Ar=dn[0],Ar.classes[0]="mop"):Ar=Ht.makeSpan(["mop"],Ht.tryCombineChars(dn),w)}else{for(var Mn=[],qn=1;qn<je.name.length;qn++)Mn.push(Ht.mathsym(je.name[qn],je.mode,w));Ar=Ht.makeSpan(["mop"],Mn,w)}var xi=0,yn=0;return(Ar instanceof P||je.name==="\\oiint"||je.name==="\\oiiint")&&!je.suppressBaseShift&&(xi=(Ar.height-Ar.depth)/2-w.fontMetrics().axisHeight,yn=Ar.italic),Be?M(Ar,C,K,w,bt,yn,xi):(xi&&(Ar.style.position="relative",Ar.style.top=xi+"em"),Ar)},ge=function(c,w){var C;if(c.symbol)C=new hs("mo",[Da(c.name,c.mode)]),F.contains(ne,c.name)&&C.setAttribute("largeop","false");else if(c.body)C=new hs("mo",ea(c.body,w));else{C=new hs("mi",[new Bo(c.name.slice(1))]);var K=new hs("mo",[Da("\u2061","text")]);c.parentIsSupSub?C=new hs("mo",[C,K]):C=_o([C,K])}return C},De={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};ci({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=De[Be]),{type:"op",mode:C.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Be}},htmlBuilder:Z,mathmlBuilder:ge}),ci({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:va(K)}},htmlBuilder:Z,mathmlBuilder:ge});var Ne={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};ci({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:Z,mathmlBuilder:ge}),ci({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:Z,mathmlBuilder:ge}),ci({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=Ne[K]),{type:"op",mode:w.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:K}},htmlBuilder:Z,mathmlBuilder:ge});var tt=function(c,w){var C,K,Be=!1,je,xt=Gn(c,"supsub");xt?(C=xt.sup,K=xt.sub,je=Fn(xt.base,"operatorname"),Be=!0):je=Fn(c,"operatorname");var bt;if(je.body.length>0){for(var Xt=je.body.map(function(Cn){var Xr=Cn.text;return typeof Xr=="string"?{type:"textord",mode:Cn.mode,text:Xr}:Cn}),Ar=la(Xt,w.withFont("mathrm"),!0),xr=0;xr<Ar.length;xr++){var nn=Ar[xr];nn instanceof P&&(nn.text=nn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}bt=Ht.makeSpan(["mop"],Ar,w)}else bt=Ht.makeSpan(["mop"],[],w);return Be?M(bt,C,K,w,w.style,0,0):bt},yt=function(c,w){for(var C=ea(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",[Da("\u2061","text")]);return c.parentIsSupSub?new Yn.MathNode("mo",[Xt,Ar]):Yn.newDocumentFragment([Xt,Ar])};ci({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:va(Be),alwaysHandleSupSub:K==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:tt,mathmlBuilder:yt}),pa({type:"ordgroup",htmlBuilder:function(c,w){return c.semisimple?Ht.makeFragment(la(c.body,w,!1)):Ht.makeSpan(["mord"],la(c.body,w,!0),w)},mathmlBuilder:function(c,w){return ji(c.body,w,!0)}}),ci({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=ia(c.body,w.havingCrampedStyle()),K=Ht.makeLineSpan("overline-line",w),Be=w.fontMetrics().defaultRuleThickness,je=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C},{type:"kern",size:3*Be},{type:"elem",elem:K},{type:"kern",size:Be}]},w);return Ht.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",[Ui(c.body,w),C]);return K.setAttribute("accent","true"),K}}),ci({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:va(K)}},htmlBuilder:function(c,w){var C=la(c.body,w.withPhantom(),!1);return Ht.makeFragment(C)},mathmlBuilder:function(c,w){var C=ea(c.body,w);return new Yn.MathNode("mphantom",C)}}),ci({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=Ht.makeSpan([],[ia(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=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},w),Ht.makeSpan(["mord"],[C],w)},mathmlBuilder:function(c,w){var C=ea(va(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}}),ci({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=Ht.makeSpan(["inner"],[ia(c.body,w.withPhantom())]),K=Ht.makeSpan(["fix"],[]);return Ht.makeSpan(["mord","rlap"],[C,K],w)},mathmlBuilder:function(c,w){var C=ea(va(c.body),w),K=new Yn.MathNode("mphantom",C),Be=new Yn.MathNode("mpadded",[K]);return Be.setAttribute("width","0px"),Be}}),ci({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(c,w){var C=c.parser,K=Fn(w[0],"size").value,Be=w[1];return{type:"raisebox",mode:C.mode,dy:K,body:Be}},htmlBuilder:function(c,w){var C=ia(c.body,w),K=wr(c.dy,w);return Ht.makeVList({positionType:"shift",positionData:-K,children:[{type:"elem",elem:C}]},w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[Ui(c.body,w)]),K=c.dy.number+c.dy.unit;return C.setAttribute("voffset",K),C}}),ci({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=Fn(w[0],"size"),xt=Fn(w[1],"size");return{type:"rule",mode:K.mode,shift:Be&&Fn(Be,"size").value,width:je.value,height:xt.value}},htmlBuilder:function(c,w){var C=Ht.makeSpan(["mord","rule"],[],w),K=wr(c.width,w),Be=wr(c.height,w),je=c.shift?wr(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=wr(c.width,w),K=wr(c.height,w),Be=c.shift?wr(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 Ht.makeFragment(C)}var kt=["\\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)};ci({type:"sizing",names:kt,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:kt.indexOf(K)+1,body:je}},htmlBuilder:Ve,mathmlBuilder:function(c,w){var C=w.havingSize(c.size),K=ea(c.body,C),Be=new Yn.MathNode("mstyle",K);return Be.setAttribute("mathsize",C.sizeMultiplier+"em"),Be}}),ci({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]&&Fn(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=Ht.makeSpan([],[ia(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=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},w);return Ht.makeSpan(["mord"],[je],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[Ui(c.body,w)]);return c.smashHeight&&C.setAttribute("height","0px"),c.smashDepth&&C.setAttribute("depth","0px"),C}}),ci({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=ia(c.body,w.havingCrampedStyle());C.height===0&&(C.height=w.fontMetrics().xHeight),C=Ht.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,Cn=Ar.height-xr;Cn>C.height+C.depth+xt&&(xt=(xt+Cn-C.height-C.depth)/2);var Xr=Ar.height-C.height-xt-xr;C.style.paddingLeft=nn+"em";var dn=Ht.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),qn=ia(c.index,Mn,w),xi=.6*(dn.height-dn.depth),yn=Ht.makeVList({positionType:"shift",positionData:-xi,children:[{type:"elem",elem:qn}]},w),fi=Ht.makeSpan(["root"],[yn]);return Ht.makeSpan(["mord","sqrt"],[fi,dn],w)}else return Ht.makeSpan(["mord","sqrt"],[dn],w)},mathmlBuilder:function(c,w){var C=c.body,K=c.index;return K?new Yn.MathNode("mroot",[Ui(C,w),Ui(K,w)]):new Yn.MathNode("msqrt",[Ui(C,w)])}});var cr={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT};ci({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=ea(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?Z:null}else if(C.type==="operatorname"){var Be=C.alwaysHandleSupSub&&(w.style.size===_.DISPLAY.size||C.limits);return Be?tt: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};pa({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=ia(K,w),bt,Xt,Ar=w.fontMetrics(),xr=0,nn=0,Cn=K&&F.isCharacterBox(K);if(Be){var Xr=w.havingStyle(w.style.sup());bt=ia(Be,Xr,w),Cn||(xr=xt.height-Xr.fontMetrics().supDrop*Xr.sizeMultiplier/w.sizeMultiplier)}if(je){var dn=w.havingStyle(w.style.sub());Xt=ia(je,dn,w),Cn||(nn=xt.depth+dn.fontMetrics().subDrop*dn.sizeMultiplier/w.sizeMultiplier)}var Mn;w.style===_.DISPLAY?Mn=Ar.sup1:w.style.cramped?Mn=Ar.sup3:Mn=Ar.sup2;var qn=w.sizeMultiplier,xi=.5/Ar.ptPerEm/qn+"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 P||fi)&&(yn=-xt.italic+"em")}var Ji;if(bt&&Xt){xr=Math.max(xr,Mn,bt.depth+.25*Ar.xHeight),nn=Math.max(nn,Ar.sub2);var $i=Ar.defaultRuleThickness,Sa=4*$i;if(xr-bt.depth-(Xt.height-nn)<Sa){nn=Sa-(xr-bt.depth)+Xt.height;var Ia=.8*Ar.xHeight-(xr-bt.depth);Ia>0&&(xr+=Ia,nn-=Ia)}var Xi=[{type:"elem",elem:Xt,shift:nn,marginRight:xi,marginLeft:yn},{type:"elem",elem:bt,shift:-xr,marginRight:xi}];Ji=Ht.makeVList({positionType:"individualShift",children:Xi},w)}else if(Xt){nn=Math.max(nn,Ar.sub1,Xt.height-.8*Ar.xHeight);var Ta=[{type:"elem",elem:Xt,marginLeft:yn,marginRight:xi}];Ji=Ht.makeVList({positionType:"shift",positionData:nn,children:Ta},w)}else if(bt)xr=Math.max(xr,Mn,bt.depth+.25*Ar.xHeight),Ji=Ht.makeVList({positionType:"shift",positionData:-xr,children:[{type:"elem",elem:bt,marginRight:xi}]},w);else throw new Error("supsub must have either sup or sub.");var Ba=Wi(xt,"right")||"mord";return Ht.makeSpan([Ba],[xt,Ht.makeSpan(["msupsub"],[Ji])],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=[Ui(c.base,w)];c.sub&&xt.push(Ui(c.sub,w)),c.sup&&xt.push(Ui(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}}),pa({type:"atom",htmlBuilder:function(c,w){return Ht.mathsym(c.text,c.mode,w,["m"+c.family])},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mo",[Da(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"};pa({type:"mathord",htmlBuilder:function(c,w){return Ht.makeOrd(c,w,"mathord")},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mi",[Da(c.text,c.mode,w)]),K=Zi(c,w)||"italic";return K!==dr[C.type]&&C.setAttribute("mathvariant",K),C}}),pa({type:"textord",htmlBuilder:function(c,w){return Ht.makeOrd(c,w,"textord")},mathmlBuilder:function(c,w){var C=Da(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"}};pa({type:"spacing",htmlBuilder:function(c,w){if(pr.hasOwnProperty(c.text)){var C=pr[c.text].className||"";if(c.mode==="text"){var K=Ht.makeOrd(c,w,"textord");return K.classes.push(C),K}else return Ht.makeSpan(["mspace",C],[Ht.mathsym(c.text,c.mode,w)],w)}else{if(Qt.hasOwnProperty(c.text))return Ht.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};pa({type:"tag",mathmlBuilder:function(c,w){var C=new Yn.MathNode("mtable",[new Yn.MathNode("mtr",[Mr(),new Yn.MathNode("mtd",[ji(c.body,w)]),Mr(),new Yn.MathNode("mtd",[ji(c.tag,w)])])]);return C.setAttribute("width","100%"),C}});var an={"\\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?an[C]?w.withTextFontFamily(an[C]):Rn[C]?w.withTextFontWeight(Rn[C]):w.withTextFontShape(di[C]):w};ci({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:va(Be),font:K}},htmlBuilder:function(c,w){var C=pn(c,w),K=la(c.body,C,!0);return Ht.makeSpan(["mord","text"],Ht.tryCombineChars(K),C)},mathmlBuilder:function(c,w){var C=pn(c,w);return ji(c.body,C)}}),ci({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=ia(c.body,w),K=Ht.makeLineSpan("underline-line",w),Be=w.fontMetrics().defaultRuleThickness,je=Ht.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 Ht.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",[Ui(c.body,w),C]);return K.setAttribute("accentunder","true"),K}}),ci({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=Br(c),K=[],Be=w.havingStyle(w.style.text()),je=0;je<C.length;je++){var xt=C[je];xt==="~"&&(xt="\\textasciitilde"),K.push(Ht.makeSymbol(xt,"Typewriter-Regular",c.mode,Be,["mord","texttt"]))}return Ht.makeSpan(["mord","text"].concat(Be.sizingClasses(w)),Ht.tryCombineChars(K),Be)},mathmlBuilder:function(c,w){var C=new Yn.TextNode(Br(c)),K=new Yn.MathNode("mtext",[C]);return K.setAttribute("mathvariant","monospace"),K}});var Br=function(c){return c.body.replace(/ /g,c.star?"\u2423":"\xA0")},xn=Hi,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 ke("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 ke(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 ke(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 jt=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 jt(He,!0)}),_e("\\def",function(He){return jt(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 jt(He,!0);throw new Y("Invalid command '"+w+"' after \\global")});var Vt=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 Vt(He,!1,!0)}),_e("\\renewcommand",function(He){return Vt(He,!0,!1)}),_e("\\providecommand",function(He){return Vt(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 ur={",":"\\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 ur?c=ur[w]:(w.substr(0,4)==="\\not"||w in vr.math&&F.contains(["bin","rel"],vr.math[w].group))&&(c="\\dotsb"),c});var It={")":!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 It?"\\ldots\\,":"\\ldots"}),_e("\\dotsc",function(He){var c=He.future().text;return c in It&&c!==","?"\\ldots\\,":"\\ldots"}),_e("\\cdots",function(He){var c=He.future().text;return c in It?"\\@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=dt["Main-Regular"][84][1]-.7*dt["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 Wr={"\\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 ke)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 ke(C));this.stack.length>Be;){var je=this.expandOnce();je instanceof ke&&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)||vr.math.hasOwnProperty(C)||vr.text.hasOwnProperty(C)||Wr.hasOwnProperty(C)},He}(),cn={"\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",Cn=this.parseGroupOfType("argument to '"+C+"'",Ar,xr,je,nn);if(!Cn){if(xr){bt.push(null);continue}throw new Y("Expected group after '"+C+"'",this.fetch())}(xr?bt:xt).push(Cn)}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,Cn=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(Cn,Ar));case je:nn++;break;case xt:nn--;break}Cn=Xr,Ar+=Cn.text,this.consume()}return this.expect(xt),this.mode=Xt,xr.range(Cn,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 Cn=He.endOfGroup[xr];this.gullet.beginGroup();var Xr=this.parseExpression(!1,Cn),dn=this.fetch();this.expect(Cn),this.gullet.endGroup(),nn={type:"ordgroup",mode:this.mode,loc:se.range(Ar,dn),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]==="\\"&&!Wr.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])&&!vr[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(vr[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=vr[this.mode][K].group,Ar=se.range(C),xr;if(Kt.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&&(qe(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 Cn=0;Cn<xt[0].length;Cn++){var Xr=xt[0][Cn];if(!cn[Xr])throw new Y("Unknown accent ' "+Xr+"'",C);var dn=cn[Xr][this.mode];if(!dn)throw new Y("Accent "+Xr+" unsupported in "+this.mode+" mode",C);bt={type:"accent",mode:this.mode,loc:se.range(C),label:dn,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 In=function(c,w){var C=rn(c,w).toMarkup();return C},sn=function(c,w){var C=new H(w);return ir(c,C)},An=function(c,w,C){if(C.throwOnError||!(c instanceof Y))throw c;var K=Ht.makeSpan(["katex-error"],[new P(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 As(K,c,C)}catch(Be){return An(Be,c,C)}},_n=function(c,w){var C=new H(w);try{var K=ir(c,C);return Es(K,c,C)}catch(Be){return An(Be,c,C)}},ii={version:"0.11.1",render:Si,renderToString:In,ParseError:Y,__parse:sn,__renderToDomTree:rn,__renderToHTMLTree:_n,__setFontMetrics:At,__defineSymbol:re,__defineMacro:_e,__domTree:{Span:f,Anchor:D,SymbolNode:P,SvgNode:te,PathNode:Ie,LineNode:Te}},Di=g.default=ii}]).default})},32834:function(bn){(function(Wt,g){bn.exports=g()})(this,function(){"use strict";function Wt(Tt,Yt){for(var Gt=0;Gt<Yt.length;Gt++){var nt=Yt[Gt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(Tt,nt.key,nt)}}function g(Tt,Yt,Gt){return Yt&&Wt(Tt.prototype,Yt),Gt&&Wt(Tt,Gt),Tt}function we(Tt,Yt){if(Tt){if(typeof Tt=="string")return Fe(Tt,Yt);var Gt=Object.prototype.toString.call(Tt).slice(8,-1);if(Gt==="Object"&&Tt.constructor&&(Gt=Tt.constructor.name),Gt==="Map"||Gt==="Set")return Array.from(Tt);if(Gt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gt))return Fe(Tt,Yt)}}function Fe(Tt,Yt){(Yt==null||Yt>Tt.length)&&(Yt=Tt.length);for(var Gt=0,nt=new Array(Yt);Gt<Yt;Gt++)nt[Gt]=Tt[Gt];return nt}function se(Tt,Yt){var Gt=typeof Symbol!="undefined"&&Tt[Symbol.iterator]||Tt["@@iterator"];if(Gt)return(Gt=Gt.call(Tt)).next.bind(Gt);if(Array.isArray(Tt)||(Gt=we(Tt))||Yt&&Tt&&typeof Tt.length=="number"){Gt&&(Tt=Gt);var nt=0;return function(){return nt>=Tt.length?{done:!0}:{done:!1,value:Tt[nt++]}}}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 ke={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(Tt){ke.exports.defaults=Tt}ke.exports={defaults:ie(),getDefaults:ie,changeDefaults:Y};var O=/[&<>"']/,I=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,L={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(Yt){return L[Yt]};function a(Tt,Yt){if(Yt){if(O.test(Tt))return Tt.replace(I,p)}else if(n.test(Tt))return Tt.replace(o,p);return Tt}var A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(Tt){return Tt.replace(A,function(Yt,Gt){return Gt=Gt.toLowerCase(),Gt==="colon"?":":Gt.charAt(0)==="#"?Gt.charAt(1)==="x"?String.fromCharCode(parseInt(Gt.substring(2),16)):String.fromCharCode(+Gt.substring(1)):""})}var S=/(^|[^\[])\^/g;function $(Tt,Yt){Tt=Tt.source||Tt,Yt=Yt||"";var Gt={replace:function(ct,pt){return pt=pt.source||pt,pt=pt.replace(S,"$1"),Tt=Tt.replace(ct,pt),Gt},getRegex:function(){return new RegExp(Tt,Yt)}};return Gt}var F=/[^\w:]/g,H=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(Tt,Yt,Gt){if(Tt){var nt;try{nt=decodeURIComponent(m(Gt)).replace(F,"").toLowerCase()}catch(ct){return null}if(nt.indexOf("javascript:")===0||nt.indexOf("vbscript:")===0||nt.indexOf("data:")===0)return null}Yt&&!H.test(Gt)&&(Gt=J(Yt,Gt));try{Gt=encodeURI(Gt).replace(/%25/g,"%")}catch(ct){return null}return Gt}var ee={},B=/^[^:]+:\/*[^/]*$/,z=/^([^:]+:)[\s\S]*$/,le=/^([^:]+:\/*[^/]*)[\s\S]*$/;function J(Tt,Yt){ee[" "+Tt]||(B.test(Tt)?ee[" "+Tt]=Tt+"/":ee[" "+Tt]=ae(Tt,"/",!0)),Tt=ee[" "+Tt];var Gt=Tt.indexOf(":")===-1;return Yt.substring(0,2)==="//"?Gt?Yt:Tt.replace(z,"$1")+Yt:Yt.charAt(0)==="/"?Gt?Yt:Tt.replace(le,"$1")+Yt:Tt+Yt}var be={exec:function(){}};function Ce(Tt){for(var Yt=1,Gt,nt;Yt<arguments.length;Yt++){Gt=arguments[Yt];for(nt in Gt)Object.prototype.hasOwnProperty.call(Gt,nt)&&(Tt[nt]=Gt[nt])}return Tt}function Le(Tt,Yt){var Gt=Tt.replace(/\|/g,function(pt,Zt,Oe){for(var fn=!1,Nt=Zt;--Nt>=0&&Oe[Nt]==="\\";)fn=!fn;return fn?"|":" |"}),nt=Gt.split(/ \|/),ct=0;if(nt.length>Yt)nt.splice(Yt);else for(;nt.length<Yt;)nt.push("");for(;ct<nt.length;ct++)nt[ct]=nt[ct].trim().replace(/\\\|/g,"|");return nt}function ae(Tt,Yt,Gt){var nt=Tt.length;if(nt===0)return"";for(var ct=0;ct<nt;){var pt=Tt.charAt(nt-ct-1);if(pt===Yt&&!Gt)ct++;else if(pt!==Yt&&Gt)ct++;else break}return Tt.substr(0,nt-ct)}function me(Tt,Yt){if(Tt.indexOf(Yt[1])===-1)return-1;for(var Gt=Tt.length,nt=0,ct=0;ct<Gt;ct++)if(Tt[ct]==="\\")ct++;else if(Tt[ct]===Yt[0])nt++;else if(Tt[ct]===Yt[1]&&(nt--,nt<0))return ct;return-1}function T(Tt){Tt&&Tt.sanitize&&!Tt.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(Tt,Yt){if(Yt<1)return"";for(var Gt="";Yt>1;)Yt&1&&(Gt+=Tt),Yt>>=1,Tt+=Tt;return Gt+Tt}var oe={escape:a,unescape:m,edit:$,cleanUrl:V,resolveUrl:J,noopTest:be,merge:Ce,splitCells:Le,rtrim:ae,findClosingBracket:me,checkSanitizeDeprecation:T,repeatString:Ee},he=ke.exports.defaults,ve=oe.rtrim,_=oe.splitCells,N=oe.escape,X=oe.findClosingBracket;function pe(Tt,Yt,Gt){var nt=Yt.href,ct=Yt.title?N(Yt.title):null,pt=Tt[1].replace(/\\([\[\]])/g,"$1");return Tt[0].charAt(0)!=="!"?{type:"link",raw:Gt,href:nt,title:ct,text:pt}:{type:"image",raw:Gt,href:nt,title:ct,text:N(pt)}}function qe(Tt,Yt){var Gt=Tt.match(/^(\s+)(?:```)/);if(Gt===null)return Yt;var nt=Gt[1];return Yt.split(`
|
|
|
`).map(function(ct){var pt=ct.match(/^\s+/);if(pt===null)return ct;var Zt=pt[0];return Zt.length>=nt.length?ct.slice(nt.length):ct}).join(`
|
|
|
`)}var at=function(){function Tt(Gt){this.options=Gt||he}var Yt=Tt.prototype;return Yt.space=function(nt){var ct=this.rules.block.newline.exec(nt);if(ct)return ct[0].length>1?{type:"space",raw:ct[0]}:{raw:`
|
|
|
`}},Yt.code=function(nt){var ct=this.rules.block.code.exec(nt);if(ct){var pt=ct[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ct[0],codeBlockStyle:"indented",text:this.options.pedantic?pt:ve(pt,`
|
|
|
`)}}},Yt.fences=function(nt){var ct=this.rules.block.fences.exec(nt);if(ct){var pt=ct[0],Zt=qe(pt,ct[3]||"");return{type:"code",raw:pt,lang:ct[2]?ct[2].trim():ct[2],text:Zt}}},Yt.heading=function(nt){var ct=this.rules.block.heading.exec(nt);if(ct){var pt=ct[2].trim();if(/#$/.test(pt)){var Zt=ve(pt,"#");(this.options.pedantic||!Zt||/ $/.test(Zt))&&(pt=Zt.trim())}return{type:"heading",raw:ct[0],depth:ct[1].length,text:pt}}},Yt.nptable=function(nt){var ct=this.rules.block.nptable.exec(nt);if(ct){var pt={type:"table",header:_(ct[1].replace(/^ *| *\| *$/g,"")),align:ct[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ct[3]?ct[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:ct[0]};if(pt.header.length===pt.align.length){var Zt=pt.align.length,Oe;for(Oe=0;Oe<Zt;Oe++)/^ *-+: *$/.test(pt.align[Oe])?pt.align[Oe]="right":/^ *:-+: *$/.test(pt.align[Oe])?pt.align[Oe]="center":/^ *:-+ *$/.test(pt.align[Oe])?pt.align[Oe]="left":pt.align[Oe]=null;for(Zt=pt.cells.length,Oe=0;Oe<Zt;Oe++)pt.cells[Oe]=_(pt.cells[Oe],pt.header.length);return pt}}},Yt.hr=function(nt){var ct=this.rules.block.hr.exec(nt);if(ct)return{type:"hr",raw:ct[0]}},Yt.blockquote=function(nt){var ct=this.rules.block.blockquote.exec(nt);if(ct){var pt=ct[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ct[0],text:pt}}},Yt.list=function(nt){var ct=this.rules.block.list.exec(nt);if(ct){var pt=ct[0],Zt=ct[2],Oe=Zt.length>1,fn={type:"list",raw:pt,ordered:Oe,start:Oe?+Zt.slice(0,-1):"",loose:!1,items:[]},Nt=ct[0].match(this.rules.block.item),Ln=!1,Vn,yi,Ki,jn,kn,qt,zr,Jr,Ot,Ct=Nt.length;Ki=this.rules.block.listItemStart.exec(Nt[0]);for(var Ir=0;Ir<Ct;Ir++){if(Vn=Nt[Ir],pt=Vn,this.options.pedantic||(Ot=Vn.match(new RegExp("\\n\\s*\\n {0,"+(Ki[0].length-1)+"}\\S")),Ot&&(kn=Vn.length-Ot.index+Nt.slice(Ir+1).join(`
|
|
|
`).length,fn.raw=fn.raw.substring(0,fn.raw.length-kn),Vn=Vn.substring(0,Ot.index),pt=Vn,Ct=Ir+1)),Ir!==Ct-1){if(jn=this.rules.block.listItemStart.exec(Nt[Ir+1]),this.options.pedantic?jn[1].length>Ki[1].length:jn[1].length>=Ki[0].length||jn[1].length>3){Nt.splice(Ir,2,Nt[Ir]+(!this.options.pedantic&&jn[1].length<Ki[0].length&&!Nt[Ir].match(/\n$/)?"":`
|
|
|
`)+Nt[Ir+1]),Ir--,Ct--;continue}else(!this.options.pedantic||this.options.smartLists?jn[2][jn[2].length-1]!==Zt[Zt.length-1]:Oe===(jn[2].length===1))&&(kn=Nt.slice(Ir+1).join(`
|
|
|
`).length,fn.raw=fn.raw.substring(0,fn.raw.length-kn),Ir=Ct-1);Ki=jn}yi=Vn.length,Vn=Vn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Vn.indexOf(`
|
|
|
`)&&(yi-=Vn.length,Vn=this.options.pedantic?Vn.replace(/^ {1,4}/gm,""):Vn.replace(new RegExp("^ {1,"+yi+"}","gm"),"")),Vn=ve(Vn,`
|
|
|
`),Ir!==Ct-1&&(pt=pt+`
|
|
|
`),qt=Ln||/\n\n(?!\s*$)/.test(pt),Ir!==Ct-1&&(Ln=pt.slice(-2)===`
|
|
|
|
|
|
`,qt||(qt=Ln)),qt&&(fn.loose=!0),this.options.gfm&&(zr=/^\[[ xX]\] /.test(Vn),Jr=void 0,zr&&(Jr=Vn[1]!==" ",Vn=Vn.replace(/^\[[ xX]\] +/,""))),fn.items.push({type:"list_item",raw:pt,task:zr,checked:Jr,loose:qt,text:Vn})}return fn}},Yt.html=function(nt){var ct=this.rules.block.html.exec(nt);if(ct)return{type:this.options.sanitize?"paragraph":"html",raw:ct[0],pre:!this.options.sanitizer&&(ct[1]==="pre"||ct[1]==="script"||ct[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ct[0]):N(ct[0]):ct[0]}},Yt.def=function(nt){var ct=this.rules.block.def.exec(nt);if(ct){ct[3]&&(ct[3]=ct[3].substring(1,ct[3].length-1));var pt=ct[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:pt,raw:ct[0],href:ct[2],title:ct[3]}}},Yt.table=function(nt){var ct=this.rules.block.table.exec(nt);if(ct){var pt={type:"table",header:_(ct[1].replace(/^ *| *\| *$/g,"")),align:ct[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ct[3]?ct[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(pt.header.length===pt.align.length){pt.raw=ct[0];var Zt=pt.align.length,Oe;for(Oe=0;Oe<Zt;Oe++)/^ *-+: *$/.test(pt.align[Oe])?pt.align[Oe]="right":/^ *:-+: *$/.test(pt.align[Oe])?pt.align[Oe]="center":/^ *:-+ *$/.test(pt.align[Oe])?pt.align[Oe]="left":pt.align[Oe]=null;for(Zt=pt.cells.length,Oe=0;Oe<Zt;Oe++)pt.cells[Oe]=_(pt.cells[Oe].replace(/^ *\| *| *\| *$/g,""),pt.header.length);return pt}}},Yt.lheading=function(nt){var ct=this.rules.block.lheading.exec(nt);if(ct)return{type:"heading",raw:ct[0],depth:ct[2].charAt(0)==="="?1:2,text:ct[1]}},Yt.paragraph=function(nt){var ct=this.rules.block.paragraph.exec(nt);if(ct)return{type:"paragraph",raw:ct[0],text:ct[1].charAt(ct[1].length-1)===`
|
|
|
`?ct[1].slice(0,-1):ct[1]}},Yt.text=function(nt){var ct=this.rules.block.text.exec(nt);if(ct)return{type:"text",raw:ct[0],text:ct[0]}},Yt.escape=function(nt){var ct=this.rules.inline.escape.exec(nt);if(ct)return{type:"escape",raw:ct[0],text:N(ct[1])}},Yt.tag=function(nt,ct,pt){var Zt=this.rules.inline.tag.exec(nt);if(Zt)return!ct&&/^<a /i.test(Zt[0])?ct=!0:ct&&/^<\/a>/i.test(Zt[0])&&(ct=!1),!pt&&/^<(pre|code|kbd|script)(\s|>)/i.test(Zt[0])?pt=!0:pt&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Zt[0])&&(pt=!1),{type:this.options.sanitize?"text":"html",raw:Zt[0],inLink:ct,inRawBlock:pt,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Zt[0]):N(Zt[0]):Zt[0]}},Yt.link=function(nt){var ct=this.rules.inline.link.exec(nt);if(ct){var pt=ct[2].trim();if(!this.options.pedantic&&/^</.test(pt)){if(!/>$/.test(pt))return;var Zt=ve(pt.slice(0,-1),"\\");if((pt.length-Zt.length)%2===0)return}else{var Oe=X(ct[2],"()");if(Oe>-1){var fn=ct[0].indexOf("!")===0?5:4,Nt=fn+ct[1].length+Oe;ct[2]=ct[2].substring(0,Oe),ct[0]=ct[0].substring(0,Nt).trim(),ct[3]=""}}var Ln=ct[2],Vn="";if(this.options.pedantic){var yi=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ln);yi&&(Ln=yi[1],Vn=yi[3])}else Vn=ct[3]?ct[3].slice(1,-1):"";return Ln=Ln.trim(),/^</.test(Ln)&&(this.options.pedantic&&!/>$/.test(pt)?Ln=Ln.slice(1):Ln=Ln.slice(1,-1)),pe(ct,{href:Ln&&Ln.replace(this.rules.inline._escapes,"$1"),title:Vn&&Vn.replace(this.rules.inline._escapes,"$1")},ct[0])}},Yt.reflink=function(nt,ct){var pt;if((pt=this.rules.inline.reflink.exec(nt))||(pt=this.rules.inline.nolink.exec(nt))){var Zt=(pt[2]||pt[1]).replace(/\s+/g," ");if(Zt=ct[Zt.toLowerCase()],!Zt||!Zt.href){var Oe=pt[0].charAt(0);return{type:"text",raw:Oe,text:Oe}}return pe(pt,Zt,pt[0])}},Yt.emStrong=function(nt,ct,pt){pt===void 0&&(pt="");var Zt=this.rules.inline.emStrong.lDelim.exec(nt);if(Zt&&!(Zt[3]&&pt.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 Oe=Zt[1]||Zt[2]||"";if(!Oe||Oe&&(pt===""||this.rules.inline.punctuation.exec(pt))){var fn=Zt[0].length-1,Nt,Ln,Vn=fn,yi=0,Ki=Zt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Ki.lastIndex=0,ct=ct.slice(-1*nt.length+fn);(Zt=Ki.exec(ct))!=null;)if(Nt=Zt[1]||Zt[2]||Zt[3]||Zt[4]||Zt[5]||Zt[6],!!Nt){if(Ln=Nt.length,Zt[3]||Zt[4]){Vn+=Ln;continue}else if((Zt[5]||Zt[6])&&fn%3&&!((fn+Ln)%3)){yi+=Ln;continue}if(Vn-=Ln,!(Vn>0))return Ln=Math.min(Ln,Ln+Vn+yi),Math.min(fn,Ln)%2?{type:"em",raw:nt.slice(0,fn+Zt.index+Ln+1),text:nt.slice(1,fn+Zt.index+Ln)}:{type:"strong",raw:nt.slice(0,fn+Zt.index+Ln+1),text:nt.slice(2,fn+Zt.index+Ln-1)}}}}},Yt.codespan=function(nt){var ct=this.rules.inline.code.exec(nt);if(ct){var pt=ct[2].replace(/\n/g," "),Zt=/[^ ]/.test(pt),Oe=/^ /.test(pt)&&/ $/.test(pt);return Zt&&Oe&&(pt=pt.substring(1,pt.length-1)),pt=N(pt,!0),{type:"codespan",raw:ct[0],text:pt}}},Yt.br=function(nt){var ct=this.rules.inline.br.exec(nt);if(ct)return{type:"br",raw:ct[0]}},Yt.del=function(nt){var ct=this.rules.inline.del.exec(nt);if(ct)return{type:"del",raw:ct[0],text:ct[2]}},Yt.autolink=function(nt,ct){var pt=this.rules.inline.autolink.exec(nt);if(pt){var Zt,Oe;return pt[2]==="@"?(Zt=N(this.options.mangle?ct(pt[1]):pt[1]),Oe="mailto:"+Zt):(Zt=N(pt[1]),Oe=Zt),{type:"link",raw:pt[0],text:Zt,href:Oe,tokens:[{type:"text",raw:Zt,text:Zt}]}}},Yt.url=function(nt,ct){var pt;if(pt=this.rules.inline.url.exec(nt)){var Zt,Oe;if(pt[2]==="@")Zt=N(this.options.mangle?ct(pt[0]):pt[0]),Oe="mailto:"+Zt;else{var fn;do fn=pt[0],pt[0]=this.rules.inline._backpedal.exec(pt[0])[0];while(fn!==pt[0]);Zt=N(pt[0]),pt[1]==="www."?Oe="http://"+Zt:Oe=Zt}return{type:"link",raw:pt[0],text:Zt,href:Oe,tokens:[{type:"text",raw:Zt,text:Zt}]}}},Yt.inlineText=function(nt,ct,pt){var Zt=this.rules.inline.text.exec(nt);if(Zt){var Oe;return ct?Oe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Zt[0]):N(Zt[0]):Zt[0]:Oe=N(this.options.smartypants?pt(Zt[0]):Zt[0]),{type:"text",raw:Zt[0],text:Oe}}},Tt}(),rt=oe.noopTest,Rt=oe.edit,lr=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:rt,table:rt,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=Rt(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=Rt(Jt.item,"gm").replace(/bull/g,Jt.bullet).getRegex(),Jt.listItemStart=Rt(/^( *)(bull) */).replace("bull",Jt.bullet).getRegex(),Jt.list=Rt(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=Rt(Jt.html,"i").replace("comment",Jt._comment).replace("tag",Jt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jt.paragraph=Rt(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=Rt(Jt.blockquote).replace("paragraph",Jt.paragraph).getRegex(),Jt.normal=lr({},Jt),Jt.gfm=lr({},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=Rt(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=Rt(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=lr({},Jt.normal,{html:Rt(`^ *(?: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:rt,paragraph:Rt(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 Ze={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:rt,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:rt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ze._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ze.punctuation=Rt(Ze.punctuation).replace(/punctuation/g,Ze._punctuation).getRegex(),Ze.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ze.escapedEmSt=/\\\*|\\_/g,Ze._comment=Rt(Jt._comment).replace("(?:-->|$)","-->").getRegex(),Ze.emStrong.lDelim=Rt(Ze.emStrong.lDelim).replace(/punct/g,Ze._punctuation).getRegex(),Ze.emStrong.rDelimAst=Rt(Ze.emStrong.rDelimAst,"g").replace(/punct/g,Ze._punctuation).getRegex(),Ze.emStrong.rDelimUnd=Rt(Ze.emStrong.rDelimUnd,"g").replace(/punct/g,Ze._punctuation).getRegex(),Ze._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ze._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ze._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])?)+(?![-_])/,Ze.autolink=Rt(Ze.autolink).replace("scheme",Ze._scheme).replace("email",Ze._email).getRegex(),Ze._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ze.tag=Rt(Ze.tag).replace("comment",Ze._comment).replace("attribute",Ze._attribute).getRegex(),Ze._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ze._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ze._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ze.link=Rt(Ze.link).replace("label",Ze._label).replace("href",Ze._href).replace("title",Ze._title).getRegex(),Ze.reflink=Rt(Ze.reflink).replace("label",Ze._label).getRegex(),Ze.reflinkSearch=Rt(Ze.reflinkSearch,"g").replace("reflink",Ze.reflink).replace("nolink",Ze.nolink).getRegex(),Ze.normal=lr({},Ze),Ze.pedantic=lr({},Ze.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:Rt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ze._label).getRegex(),reflink:Rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ze._label).getRegex()}),Ze.gfm=lr({},Ze.normal,{escape:Rt(Ze.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ze.gfm.url=Rt(Ze.gfm.url,"i").replace("email",Ze.gfm._extended_email).getRegex(),Ze.breaks=lr({},Ze.gfm,{br:Rt(Ze.br).replace("{2,}","*").getRegex(),text:Rt(Ze.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Er={block:Jt,inline:Ze},Cr=at,Kr=ke.exports.defaults,_r=Er.block,Ue=Er.inline,St=oe.repeatString;function G(Tt){return Tt.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(Tt){var Yt="",Gt,nt,ct=Tt.length;for(Gt=0;Gt<ct;Gt++)nt=Tt.charCodeAt(Gt),Math.random()>.5&&(nt="x"+nt.toString(16)),Yt+="&#"+nt+";";return Yt}var f=function(){function Tt(Gt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Gt||Kr,this.options.tokenizer=this.options.tokenizer||new Cr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var nt={block:_r.normal,inline:Ue.normal};this.options.pedantic?(nt.block=_r.pedantic,nt.inline=Ue.pedantic):this.options.gfm&&(nt.block=_r.gfm,this.options.breaks?nt.inline=Ue.breaks:nt.inline=Ue.gfm),this.tokenizer.rules=nt}Tt.lex=function(nt,ct){var pt=new Tt(ct);return pt.lex(nt)},Tt.lexInline=function(nt,ct){var pt=new Tt(ct);return pt.inlineTokens(nt)};var Yt=Tt.prototype;return Yt.lex=function(nt){return nt=nt.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(nt,this.tokens,!0),this.inline(this.tokens),this.tokens},Yt.blockTokens=function(nt,ct,pt){ct===void 0&&(ct=[]),pt===void 0&&(pt=!0),this.options.pedantic&&(nt=nt.replace(/^ +$/gm,""));for(var Zt,Oe,fn,Nt;nt;){if(Zt=this.tokenizer.space(nt)){nt=nt.substring(Zt.raw.length),Zt.type&&ct.push(Zt);continue}if(Zt=this.tokenizer.code(nt)){nt=nt.substring(Zt.raw.length),Nt=ct[ct.length-1],Nt&&Nt.type==="paragraph"?(Nt.raw+=`
|
|
|
`+Zt.raw,Nt.text+=`
|
|
|
`+Zt.text):ct.push(Zt);continue}if(Zt=this.tokenizer.fences(nt)){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(Zt=this.tokenizer.heading(nt)){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(Zt=this.tokenizer.nptable(nt)){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(Zt=this.tokenizer.hr(nt)){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(Zt=this.tokenizer.blockquote(nt)){nt=nt.substring(Zt.raw.length),Zt.tokens=this.blockTokens(Zt.text,[],pt),ct.push(Zt);continue}if(Zt=this.tokenizer.list(nt)){for(nt=nt.substring(Zt.raw.length),fn=Zt.items.length,Oe=0;Oe<fn;Oe++)Zt.items[Oe].tokens=this.blockTokens(Zt.items[Oe].text,[],!1);ct.push(Zt);continue}if(Zt=this.tokenizer.html(nt)){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(pt&&(Zt=this.tokenizer.def(nt))){nt=nt.substring(Zt.raw.length),this.tokens.links[Zt.tag]||(this.tokens.links[Zt.tag]={href:Zt.href,title:Zt.title});continue}if(Zt=this.tokenizer.table(nt)){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(Zt=this.tokenizer.lheading(nt)){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(pt&&(Zt=this.tokenizer.paragraph(nt))){nt=nt.substring(Zt.raw.length),ct.push(Zt);continue}if(Zt=this.tokenizer.text(nt)){nt=nt.substring(Zt.raw.length),Nt=ct[ct.length-1],Nt&&Nt.type==="text"?(Nt.raw+=`
|
|
|
`+Zt.raw,Nt.text+=`
|
|
|
`+Zt.text):ct.push(Zt);continue}if(nt){var Ln="Infinite loop on byte: "+nt.charCodeAt(0);if(this.options.silent){console.error(Ln);break}else throw new Error(Ln)}}return ct},Yt.inline=function(nt){var ct,pt,Zt,Oe,fn,Nt,Ln=nt.length;for(ct=0;ct<Ln;ct++)switch(Nt=nt[ct],Nt.type){case"paragraph":case"text":case"heading":{Nt.tokens=[],this.inlineTokens(Nt.text,Nt.tokens);break}case"table":{for(Nt.tokens={header:[],cells:[]},Oe=Nt.header.length,pt=0;pt<Oe;pt++)Nt.tokens.header[pt]=[],this.inlineTokens(Nt.header[pt],Nt.tokens.header[pt]);for(Oe=Nt.cells.length,pt=0;pt<Oe;pt++)for(fn=Nt.cells[pt],Nt.tokens.cells[pt]=[],Zt=0;Zt<fn.length;Zt++)Nt.tokens.cells[pt][Zt]=[],this.inlineTokens(fn[Zt],Nt.tokens.cells[pt][Zt]);break}case"blockquote":{this.inline(Nt.tokens);break}case"list":{for(Oe=Nt.items.length,pt=0;pt<Oe;pt++)this.inline(Nt.items[pt].tokens);break}}return nt},Yt.inlineTokens=function(nt,ct,pt,Zt){ct===void 0&&(ct=[]),pt===void 0&&(pt=!1),Zt===void 0&&(Zt=!1);var Oe,fn,Nt=nt,Ln,Vn,yi;if(this.tokens.links){var Ki=Object.keys(this.tokens.links);if(Ki.length>0)for(;(Ln=this.tokenizer.rules.inline.reflinkSearch.exec(Nt))!=null;)Ki.includes(Ln[0].slice(Ln[0].lastIndexOf("[")+1,-1))&&(Nt=Nt.slice(0,Ln.index)+"["+St("a",Ln[0].length-2)+"]"+Nt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ln=this.tokenizer.rules.inline.blockSkip.exec(Nt))!=null;)Nt=Nt.slice(0,Ln.index)+"["+St("a",Ln[0].length-2)+"]"+Nt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Ln=this.tokenizer.rules.inline.escapedEmSt.exec(Nt))!=null;)Nt=Nt.slice(0,Ln.index)+"++"+Nt.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;nt;){if(Vn||(yi=""),Vn=!1,Oe=this.tokenizer.escape(nt)){nt=nt.substring(Oe.raw.length),ct.push(Oe);continue}if(Oe=this.tokenizer.tag(nt,pt,Zt)){nt=nt.substring(Oe.raw.length),pt=Oe.inLink,Zt=Oe.inRawBlock;var jn=ct[ct.length-1];jn&&Oe.type==="text"&&jn.type==="text"?(jn.raw+=Oe.raw,jn.text+=Oe.text):ct.push(Oe);continue}if(Oe=this.tokenizer.link(nt)){nt=nt.substring(Oe.raw.length),Oe.type==="link"&&(Oe.tokens=this.inlineTokens(Oe.text,[],!0,Zt)),ct.push(Oe);continue}if(Oe=this.tokenizer.reflink(nt,this.tokens.links)){nt=nt.substring(Oe.raw.length);var kn=ct[ct.length-1];Oe.type==="link"?(Oe.tokens=this.inlineTokens(Oe.text,[],!0,Zt),ct.push(Oe)):kn&&Oe.type==="text"&&kn.type==="text"?(kn.raw+=Oe.raw,kn.text+=Oe.text):ct.push(Oe);continue}if(Oe=this.tokenizer.emStrong(nt,Nt,yi)){nt=nt.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],pt,Zt),ct.push(Oe);continue}if(Oe=this.tokenizer.codespan(nt)){nt=nt.substring(Oe.raw.length),ct.push(Oe);continue}if(Oe=this.tokenizer.br(nt)){nt=nt.substring(Oe.raw.length),ct.push(Oe);continue}if(Oe=this.tokenizer.del(nt)){nt=nt.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],pt,Zt),ct.push(Oe);continue}if(Oe=this.tokenizer.autolink(nt,v)){nt=nt.substring(Oe.raw.length),ct.push(Oe);continue}if(!pt&&(Oe=this.tokenizer.url(nt,v))){nt=nt.substring(Oe.raw.length),ct.push(Oe);continue}if(Oe=this.tokenizer.inlineText(nt,Zt,G)){nt=nt.substring(Oe.raw.length),Oe.raw.slice(-1)!=="_"&&(yi=Oe.raw.slice(-1)),Vn=!0,fn=ct[ct.length-1],fn&&fn.type==="text"?(fn.raw+=Oe.raw,fn.text+=Oe.text):ct.push(Oe);continue}if(nt){var qt="Infinite loop on byte: "+nt.charCodeAt(0);if(this.options.silent){console.error(qt);break}else throw new Error(qt)}}return ct},g(Tt,null,[{key:"rules",get:function(){return{block:_r,inline:Ue}}}]),Tt}(),D=ke.exports.defaults,fe=oe.cleanUrl,W=oe.escape,P=function(){function Tt(Gt){this.options=Gt||D}var Yt=Tt.prototype;return Yt.code=function(nt,ct,pt){var Zt=(ct||"").match(/\S*/)[0];if(this.options.highlight){var Oe=this.options.highlight(nt,Zt);Oe!=null&&Oe!==nt&&(pt=!0,nt=Oe)}return nt=nt.replace(/\n$/,"")+`
|
|
|
`,Zt?'<pre><code class="'+this.options.langPrefix+W(Zt,!0)+'">'+(pt?nt:W(nt,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(pt?nt:W(nt,!0))+`</code></pre>
|
|
|
`},Yt.blockquote=function(nt){return`<blockquote>
|
|
|
`+nt+`</blockquote>
|
|
|
`},Yt.html=function(nt){return nt},Yt.heading=function(nt,ct,pt,Zt){return this.options.headerIds?"<h"+ct+' id="'+this.options.headerPrefix+Zt.slug(pt)+'">'+nt+"</h"+ct+`>
|
|
|
`:"<h"+ct+">"+nt+"</h"+ct+`>
|
|
|
`},Yt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Yt.list=function(nt,ct,pt){var Zt=ct?"ol":"ul",Oe=ct&&pt!==1?' start="'+pt+'"':"";return"<"+Zt+Oe+`>
|
|
|
`+nt+"</"+Zt+`>
|
|
|
`},Yt.listitem=function(nt){return"<li>"+nt+`</li>
|
|
|
`},Yt.checkbox=function(nt){return"<input "+(nt?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Yt.paragraph=function(nt){return"<p>"+nt+`</p>
|
|
|
`},Yt.table=function(nt,ct){return ct&&(ct="<tbody>"+ct+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+nt+`</thead>
|
|
|
`+ct+`</table>
|
|
|
`},Yt.tablerow=function(nt){return`<tr>
|
|
|
`+nt+`</tr>
|
|
|
`},Yt.tablecell=function(nt,ct){var pt=ct.header?"th":"td",Zt=ct.align?"<"+pt+' align="'+ct.align+'">':"<"+pt+">";return Zt+nt+"</"+pt+`>
|
|
|
`},Yt.strong=function(nt){return"<strong>"+nt+"</strong>"},Yt.em=function(nt){return"<em>"+nt+"</em>"},Yt.codespan=function(nt){return"<code>"+nt+"</code>"},Yt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Yt.del=function(nt){return"<del>"+nt+"</del>"},Yt.link=function(nt,ct,pt){if(nt=fe(this.options.sanitize,this.options.baseUrl,nt),nt===null)return pt;var Zt='<a href="'+W(nt)+'"';return ct&&(Zt+=' title="'+ct+'"'),Zt+=">"+pt+"</a>",Zt},Yt.image=function(nt,ct,pt){if(nt=fe(this.options.sanitize,this.options.baseUrl,nt),nt===null)return pt;var Zt='<img src="'+nt+'" alt="'+pt+'"';return ct&&(Zt+=' title="'+ct+'"'),Zt+=this.options.xhtml?"/>":">",Zt},Yt.text=function(nt){return nt},Tt}(),te=function(){function Tt(){}var Yt=Tt.prototype;return Yt.strong=function(nt){return nt},Yt.em=function(nt){return nt},Yt.codespan=function(nt){return nt},Yt.del=function(nt){return nt},Yt.html=function(nt){return nt},Yt.text=function(nt){return nt},Yt.link=function(nt,ct,pt){return""+pt},Yt.image=function(nt,ct,pt){return""+pt},Yt.br=function(){return""},Tt}(),Ie=function(){function Tt(){this.seen={}}var Yt=Tt.prototype;return Yt.serialize=function(nt){return nt.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Yt.getNextSafeSlug=function(nt,ct){var pt=nt,Zt=0;if(this.seen.hasOwnProperty(pt)){Zt=this.seen[nt];do Zt++,pt=nt+"-"+Zt;while(this.seen.hasOwnProperty(pt))}return ct||(this.seen[nt]=Zt,this.seen[pt]=0),pt},Yt.slug=function(nt,ct){ct===void 0&&(ct={});var pt=this.serialize(nt);return this.getNextSafeSlug(pt,ct.dryrun)},Tt}(),Te=P,Se=te,Ge=Ie,dt=ke.exports.defaults,Ke=oe.unescape,Xe=function(){function Tt(Gt){this.options=Gt||dt,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Se,this.slugger=new Ge}Tt.parse=function(nt,ct){var pt=new Tt(ct);return pt.parse(nt)},Tt.parseInline=function(nt,ct){var pt=new Tt(ct);return pt.parseInline(nt)};var Yt=Tt.prototype;return Yt.parse=function(nt,ct){ct===void 0&&(ct=!0);var pt="",Zt,Oe,fn,Nt,Ln,Vn,yi,Ki,jn,kn,qt,zr,Jr,Ot,Ct,Ir,Fr,Tn,tn=nt.length;for(Zt=0;Zt<tn;Zt++)switch(kn=nt[Zt],kn.type){case"space":continue;case"hr":{pt+=this.renderer.hr();continue}case"heading":{pt+=this.renderer.heading(this.parseInline(kn.tokens),kn.depth,Ke(this.parseInline(kn.tokens,this.textRenderer)),this.slugger);continue}case"code":{pt+=this.renderer.code(kn.text,kn.lang,kn.escaped);continue}case"table":{for(Ki="",yi="",Nt=kn.header.length,Oe=0;Oe<Nt;Oe++)yi+=this.renderer.tablecell(this.parseInline(kn.tokens.header[Oe]),{header:!0,align:kn.align[Oe]});for(Ki+=this.renderer.tablerow(yi),jn="",Nt=kn.cells.length,Oe=0;Oe<Nt;Oe++){for(Vn=kn.tokens.cells[Oe],yi="",Ln=Vn.length,fn=0;fn<Ln;fn++)yi+=this.renderer.tablecell(this.parseInline(Vn[fn]),{header:!1,align:kn.align[fn]});jn+=this.renderer.tablerow(yi)}pt+=this.renderer.table(Ki,jn);continue}case"blockquote":{jn=this.parse(kn.tokens),pt+=this.renderer.blockquote(jn);continue}case"list":{for(qt=kn.ordered,zr=kn.start,Jr=kn.loose,Nt=kn.items.length,jn="",Oe=0;Oe<Nt;Oe++)Ct=kn.items[Oe],Ir=Ct.checked,Fr=Ct.task,Ot="",Ct.task&&(Tn=this.renderer.checkbox(Ir),Jr?Ct.tokens.length>0&&Ct.tokens[0].type==="text"?(Ct.tokens[0].text=Tn+" "+Ct.tokens[0].text,Ct.tokens[0].tokens&&Ct.tokens[0].tokens.length>0&&Ct.tokens[0].tokens[0].type==="text"&&(Ct.tokens[0].tokens[0].text=Tn+" "+Ct.tokens[0].tokens[0].text)):Ct.tokens.unshift({type:"text",text:Tn}):Ot+=Tn),Ot+=this.parse(Ct.tokens,Jr),jn+=this.renderer.listitem(Ot,Fr,Ir);pt+=this.renderer.list(jn,qt,zr);continue}case"html":{pt+=this.renderer.html(kn.text);continue}case"paragraph":{pt+=this.renderer.paragraph(this.parseInline(kn.tokens));continue}case"text":{for(jn=kn.tokens?this.parseInline(kn.tokens):kn.text;Zt+1<tn&&nt[Zt+1].type==="text";)kn=nt[++Zt],jn+=`
|
|
|
`+(kn.tokens?this.parseInline(kn.tokens):kn.text);pt+=ct?this.renderer.paragraph(jn):jn;continue}default:{var Bn='Token with "'+kn.type+'" type was not found.';if(this.options.silent){console.error(Bn);return}else throw new Error(Bn)}}return pt},Yt.parseInline=function(nt,ct){ct=ct||this.renderer;var pt="",Zt,Oe,fn=nt.length;for(Zt=0;Zt<fn;Zt++)switch(Oe=nt[Zt],Oe.type){case"escape":{pt+=ct.text(Oe.text);break}case"html":{pt+=ct.html(Oe.text);break}case"link":{pt+=ct.link(Oe.href,Oe.title,this.parseInline(Oe.tokens,ct));break}case"image":{pt+=ct.image(Oe.href,Oe.title,Oe.text);break}case"strong":{pt+=ct.strong(this.parseInline(Oe.tokens,ct));break}case"em":{pt+=ct.em(this.parseInline(Oe.tokens,ct));break}case"codespan":{pt+=ct.codespan(Oe.text);break}case"br":{pt+=ct.br();break}case"del":{pt+=ct.del(this.parseInline(Oe.tokens,ct));break}case"text":{pt+=ct.text(Oe.text);break}default:{var Nt='Token with "'+Oe.type+'" type was not found.';if(this.options.silent){console.error(Nt);return}else throw new Error(Nt)}}return pt},Tt}(),At=f,We=Xe,$e=at,Bt=P,Kt=te,Mt=Ie,br=oe.merge,vr=oe.checkSanitizeDeprecation,re=oe.escape,ue=ke.exports.getDefaults,rr=ke.exports.changeDefaults,Me=ke.exports.defaults;function ot(Tt,Yt,Gt){if(typeof Tt=="undefined"||Tt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Tt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Tt)+", string expected");if(typeof Yt=="function"&&(Gt=Yt,Yt=null),Yt=br({},ot.defaults,Yt||{}),vr(Yt),Gt){var nt=Yt.highlight,ct;try{ct=At.lex(Tt,Yt)}catch(fn){return Gt(fn)}var pt=function(Nt){var Ln;if(!Nt)try{Yt.walkTokens&&ot.walkTokens(ct,Yt.walkTokens),Ln=We.parse(ct,Yt)}catch(Vn){Nt=Vn}return Yt.highlight=nt,Nt?Gt(Nt):Gt(null,Ln)};if(!nt||nt.length<3||(delete Yt.highlight,!ct.length))return pt();var Zt=0;ot.walkTokens(ct,function(fn){fn.type==="code"&&(Zt++,setTimeout(function(){nt(fn.text,fn.lang,function(Nt,Ln){if(Nt)return pt(Nt);Ln!=null&&Ln!==fn.text&&(fn.text=Ln,fn.escaped=!0),Zt--,Zt===0&&pt()})},0))}),Zt===0&&pt();return}try{var Oe=At.lex(Tt,Yt);return Yt.walkTokens&&ot.walkTokens(Oe,Yt.walkTokens),We.parse(Oe,Yt)}catch(fn){if(fn.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Yt.silent)return"<p>An error occurred:</p><pre>"+re(fn.message+"",!0)+"</pre>";throw fn}}ot.options=ot.setOptions=function(Tt){return br(ot.defaults,Tt),rr(ot.defaults),ot},ot.getDefaults=ue,ot.defaults=Me,ot.use=function(Tt){var Yt=br({},Tt);if(Tt.renderer&&function(){var nt=ot.defaults.renderer||new Bt,ct=function(Oe){var fn=nt[Oe];nt[Oe]=function(){for(var Nt=arguments.length,Ln=new Array(Nt),Vn=0;Vn<Nt;Vn++)Ln[Vn]=arguments[Vn];var yi=Tt.renderer[Oe].apply(nt,Ln);return yi===!1&&(yi=fn.apply(nt,Ln)),yi}};for(var pt in Tt.renderer)ct(pt);Yt.renderer=nt}(),Tt.tokenizer&&function(){var nt=ot.defaults.tokenizer||new $e,ct=function(Oe){var fn=nt[Oe];nt[Oe]=function(){for(var Nt=arguments.length,Ln=new Array(Nt),Vn=0;Vn<Nt;Vn++)Ln[Vn]=arguments[Vn];var yi=Tt.tokenizer[Oe].apply(nt,Ln);return yi===!1&&(yi=fn.apply(nt,Ln)),yi}};for(var pt in Tt.tokenizer)ct(pt);Yt.tokenizer=nt}(),Tt.walkTokens){var Gt=ot.defaults.walkTokens;Yt.walkTokens=function(nt){Tt.walkTokens(nt),Gt&&Gt(nt)}}ot.setOptions(Yt)},ot.walkTokens=function(Tt,Yt){for(var Gt=se(Tt),nt;!(nt=Gt()).done;){var ct=nt.value;switch(Yt(ct),ct.type){case"table":{for(var pt=se(ct.tokens.header),Zt;!(Zt=pt()).done;){var Oe=Zt.value;ot.walkTokens(Oe,Yt)}for(var fn=se(ct.tokens.cells),Nt;!(Nt=fn()).done;)for(var Ln=Nt.value,Vn=se(Ln),yi;!(yi=Vn()).done;){var Ki=yi.value;ot.walkTokens(Ki,Yt)}break}case"list":{ot.walkTokens(ct.items,Yt);break}default:ct.tokens&&ot.walkTokens(ct.tokens,Yt)}}},ot.parseInline=function(Tt,Yt){if(typeof Tt=="undefined"||Tt===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Tt!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Tt)+", string expected");Yt=br({},ot.defaults,Yt||{}),vr(Yt);try{var Gt=At.lexInline(Tt,Yt);return Yt.walkTokens&&ot.walkTokens(Gt,Yt.walkTokens),We.parseInline(Gt,Yt)}catch(nt){if(nt.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Yt.silent)return"<p>An error occurred:</p><pre>"+re(nt.message+"",!0)+"</pre>";throw nt}},ot.Parser=We,ot.parser=We.parse,ot.Renderer=Bt,ot.TextRenderer=Kt,ot.Lexer=At,ot.lexer=At.lex,ot.Tokenizer=$e,ot.Slugger=Mt,ot.parse=ot;var Zr=ot;return Zr})},11690:function(bn){const Wt=/[&<>"']/,g=/[&<>"']/g,we=/[<>"']|&(?!#?\w+;)/,Fe=/[<>"']|&(?!#?\w+;)/g,se={"&":"&","<":"<",">":">",'"':""","'":"'"},ke=J=>se[J];function ie(J,be){if(be){if(Wt.test(J))return J.replace(g,ke)}else if(we.test(J))return J.replace(Fe,ke);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:(Le,ae)=>(ae=ae.source||ae,ae=ae.replace(I,"$1"),J=J.replace(Le,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 Le;try{Le=decodeURIComponent(O(Ce)).replace(o,"").toLowerCase()}catch(ae){return null}if(Le.indexOf("javascript:")===0||Le.indexOf("vbscript:")===0||Le.indexOf("data:")===0)return null}be&&!L.test(Ce)&&(Ce=$(be,Ce));try{Ce=encodeURI(Ce).replace(/%25/g,"%")}catch(Le){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,Le;for(;be<arguments.length;be++){Ce=arguments[be];for(Le in Ce)Object.prototype.hasOwnProperty.call(Ce,Le)&&(J[Le]=Ce[Le])}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?"|":" |"}),Le=Ce.split(/ \|/);let ae=0;if(Le.length>be)Le.splice(be);else for(;Le.length<be;)Le.push("");for(;ae<Le.length;ae++)Le[ae]=Le[ae].trim().replace(/\\\|/g,"|");return Le}function ee(J,be,Ce){const Le=J.length;if(Le===0)return"";let ae=0;for(;ae<Le;){const me=J.charAt(Le-ae-1);if(me===be&&!Ce)ae++;else if(me!==be&&Ce)ae++;else break}return J.substr(0,Le-ae)}function B(J,be){if(J.indexOf(be[1])===-1)return-1;const Ce=J.length;let Le=0,ae=0;for(;ae<Ce;ae++)if(J[ae]==="\\")ae++;else if(J[ae]===be[0])Le++;else if(J[ae]===be[1]&&(Le--,Le<0))return ae;return-1}function z(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:z,repeatString:le}},75918:function(bn,Wt,g){"use strict";g.d(Wt,{Wi:function(){return Y},Z0:function(){return O},aU:function(){return ie},eZ:function(){return n},wY:function(){return I}});var we=g(4348),Fe=g(69323),se=g(13268),ke=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 Fe.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 ke(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(L))})}}class Y extends Fe.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 ke(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 ke(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 ke(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,Wt,g){"use strict";g.d(Wt,{ok:function(){return we}});function we(Fe,se){if(!Fe)throw new Error(se?`Assertion failed (${se})`:"Assertion Failed")}},52615:function(bn,Wt,g){"use strict";g.d(Wt,{CM:function(){return ie},JL:function(){return Y},dT:function(){return I},fK:function(){return ke},lA:function(){return O}});var we=g(4348);class Fe{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 Fe,ke=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,Wt,g){"use strict";g.d(Wt,{B8:function(){return L},Cp:function(){return ke},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 Fe=new we;function se(p){O(p)||Fe.onUnexpectedError(p)}function ke(p){O(p)||Fe.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,Wt,g){"use strict";g.d(Wt,{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),Fe=g(69323),se=g(34502),ke=g(95830),ie;(function(A){A.None=()=>Fe.JT.None;function m(Ee){return(oe,he=null,ve)=>{let _=!1,N;return N=Ee(X=>{if(!_)return N?N.dispose():_=!0,oe.call(he,X)},null,ve),_&&N.dispose(),N}}A.once=m;function S(Ee,oe){return B((he,ve=null,_)=>Ee(N=>he.call(ve,oe(N)),null,_))}A.map=S;function $(Ee,oe){return B((he,ve=null,_)=>Ee(N=>{oe(N),he.call(ve,N)},null,_))}A.forEach=$;function F(Ee,oe){return B((he,ve=null,_)=>Ee(N=>oe(N)&&he.call(ve,N),null,_))}A.filter=F;function H(Ee){return Ee}A.signal=H;function V(...Ee){return(oe,he=null,ve)=>(0,Fe.F8)(...Ee.map(_=>_(N=>oe.call(he,N),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 z(Ee,oe,he=100,ve=!1,_){let N,X,pe,qe=0;const at=new n({leakWarningThreshold:_,onFirstListenerAdd(){N=Ee(rt=>{qe++,X=oe(X,rt),ve&&!pe&&(at.fire(X),X=void 0),clearTimeout(pe),pe=setTimeout(()=>{const Rt=X;X=void 0,pe=void 0,(!ve||qe>1)&&at.fire(Rt),qe=0},he)})},onLastListenerRemove(){N.dispose()}});return at.event}A.debounce=z;function le(Ee,oe=(he,ve)=>he===ve){let he=!0,ve;return F(Ee,_=>{const N=he||!oe(_,ve);return he=!1,ve=_,N})}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 N=()=>{ve&&ve.forEach(pe=>X.fire(pe)),ve=null},X=new n({onFirstListenerAdd(){_||(_=Ee(pe=>X.fire(pe)))},onFirstListenerDidAdd(){ve&&(oe?setTimeout(N):N())},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(z(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 Le(Ee){return new Ce(Ee)}A.chain=Le;function ae(Ee,oe,he=ve=>ve){const ve=(...pe)=>X.fire(he(...pe)),_=()=>Ee.on(oe,ve),N=()=>Ee.removeListener(oe,ve),X=new n({onFirstListenerAdd:_,onLastListenerRemove:N});return X.event}A.fromNodeEventEmitter=ae;function me(Ee,oe,he=ve=>ve){const ve=(...pe)=>X.fire(he(...pe)),_=()=>Ee.addEventListener(oe,ve),N=()=>Ee.removeEventListener(oe,ve),X=new n({onFirstListenerAdd:_,onLastListenerRemove:N});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 ke.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,Fe.OF)(()=>{ee&&ee(),this._disposed||(V(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return $ instanceof Fe.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=Fe.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,Wt,g){"use strict";g.d(Wt,{I:function(){return we}});function we(Fe){const se=this;let ke=!1,ie;return function(){return ke||(ke=!0,ie=Fe.apply(se,arguments)),ie}}},88226:function(bn,Wt,g){"use strict";g.d(Wt,{$:function(){return we}});var we;(function(Fe){function se(V){return V&&typeof V=="object"&&typeof V[Symbol.iterator]=="function"}Fe.is=se;const ke=Object.freeze([]);function ie(){return ke}Fe.empty=ie;function*Y(V){yield V}Fe.single=Y;function O(V){return V||ke}Fe.from=O;function I(V){return!V||V[Symbol.iterator]().next().done===!0}Fe.isEmpty=I;function n(V){return V[Symbol.iterator]().next().value}Fe.first=n;function o(V,ee){for(const B of V)if(ee(B))return!0;return!1}Fe.some=o;function L(V,ee){for(const B of V)if(ee(B))return B}Fe.find=L;function*p(V,ee){for(const B of V)ee(B)&&(yield B)}Fe.filter=p;function*a(V,ee){let B=0;for(const z of V)yield ee(z,B++)}Fe.map=a;function*A(...V){for(const ee of V)for(const B of ee)yield B}Fe.concat=A;function*m(V){for(const ee of V)for(const B of ee)yield B}Fe.concatNested=m;function S(V,ee,B){let z=B;for(const le of V)z=ee(z,le);return z}Fe.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]}Fe.slice=$;function F(V,ee=Number.POSITIVE_INFINITY){const B=[];if(ee===0)return[B,V];const z=V[Symbol.iterator]();for(let le=0;le<ee;le++){const J=z.next();if(J.done)return[B,Fe.empty()];B.push(J.value)}return[B,{[Symbol.iterator](){return z}}]}Fe.consume=F;function H(V,ee,B=(z,le)=>z===le){const z=V[Symbol.iterator](),le=ee[Symbol.iterator]();for(;;){const J=z.next(),be=le.next();if(J.done!==be.done)return!1;if(J.done)return!0;if(!B(J.value,be.value))return!1}}Fe.equals=H})(we||(we={}))},69323:function(bn,Wt,g){"use strict";g.d(Wt,{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),Fe=g(88226);const se=!1;let ke=null;function ie(V){ke=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(z){}}markAsDisposed(ee){if(ee&&ee!==$.None)try{ee[V]=!0}catch(B){}}markAsSingleton(ee){}})}function Y(V){return ke==null||ke.trackDisposable(V),V}function O(V){ke==null||ke.markAsDisposed(V)}function I(V,ee){ke==null||ke.setParent(V,ee)}function n(V,ee){if(ke)for(const B of V)ke.setParent(B,ee)}function o(V){return ke==null||ke.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(Fe.$.is(V)){let ee=[];for(const B of V)if(B)try{B.dispose()}catch(z){ee.push(z)}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,Wt,g){"use strict";g.d(Wt,{S:function(){return Fe}});class we{constructor(ke){this.element=ke,this.next=we.Undefined,this.prev=we.Undefined}}we.Undefined=new we(void 0);class Fe{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 ke=this._first;for(;ke!==we.Undefined;){const ie=ke.next;ke.prev=we.Undefined,ke.next=we.Undefined,ke=ie}this._first=we.Undefined,this._last=we.Undefined,this._size=0}unshift(ke){return this._insert(ke,!1)}push(ke){return this._insert(ke,!0)}_insert(ke,ie){const Y=new we(ke);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 ke=this._first.element;return this._remove(this._first),ke}}pop(){if(this._last!==we.Undefined){const ke=this._last.element;return this._remove(this._last),ke}}_remove(ke){if(ke.prev!==we.Undefined&&ke.next!==we.Undefined){const ie=ke.prev;ie.next=ke.next,ke.next.prev=ie}else ke.prev===we.Undefined&&ke.next===we.Undefined?(this._first=we.Undefined,this._last=we.Undefined):ke.next===we.Undefined?(this._last=this._last.prev,this._last.next=we.Undefined):ke.prev===we.Undefined&&(this._first=this._first.next,this._first.prev=we.Undefined);this._size-=1}*[Symbol.iterator](){let ke=this._first;for(;ke!==we.Undefined;)yield ke.element,ke=ke.next}}},23345:function(bn,Wt,g){"use strict";g.d(Wt,{$L:function(){return z},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),Fe;const se="en";let ke=!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((Fe=S==null?void 0:S.versions)===null||Fe===void 0?void 0:Fe.electron)=="string"&&S.type==="renderer";if(typeof navigator=="object"&&!$)A=navigator.userAgent,ke=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"){ke=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:ke?F=3:Y&&(F=2);const H=ke,V=ie,ee=Y,B=I,z=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,N=oe.length;_<N;_++){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:ke?1:3;let Le=!0,ae=!1;function me(){if(!ae){ae=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2,Le=new Uint16Array(T.buffer)[0]===513}return Le}},95830:function(bn,Wt,g){"use strict";g.d(Wt,{G:function(){return se}});var we=g(23345);const Fe=we.li.performance&&typeof we.li.performance.now=="function";class se{constructor(ie){this._highResolution=Fe&&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,Wt,g){"use strict";g.d(Wt,{$i:function(){return qe},C8:function(){return Jt},GF:function(){return L},HO:function(){return he},IO:function(){return p},K7:function(){return lr},Kw:function(){return Cr},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 ke},ZG:function(){return Le},ZH:function(){return T},ab:function(){return rt},c1:function(){return Ze},df:function(){return z},ec:function(){return ie},fi:function(){return Ue},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 Er},un:function(){return n},uq:function(){return A},vH:function(){return oe},xe:function(){return Rt},zY:function(){return V}});function we(W){return!W||typeof W!="string"?!0:W.trim().length===0}const Fe=/{(\d+)}/g;function se(W,...P){return P.length===0?W:W.replace(Fe,function(te,Ie){const Te=parseInt(Ie,10);return isNaN(Te)||Te<0||Te>=P.length?te:P[Te]})}function ke(W){return W.replace(/[<>&]/g,function(P){switch(P){case"<":return"<";case">":return">";case"&":return"&";default:return P}})}function ie(W){return W.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Y(W,P=" "){const te=O(W,P);return I(te,P)}function O(W,P){if(!W||!P)return W;const te=P.length;if(te===0||W.length===0)return W;let Ie=0;for(;W.indexOf(P,Ie)===Ie;)Ie=Ie+te;return W.substring(Ie)}function I(W,P){if(!W||!P)return W;const te=P.length,Ie=W.length;if(te===0||Ie===0)return W;let Te=Ie,Se=-1;for(;Se=W.lastIndexOf(P,Te-1),!(Se===-1||Se+te!==Te);){if(Se===0)return"";Te=Se}return W.substring(0,Te)}function n(W){return W.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function o(W){return W.replace(/\*/g,"")}function L(W,P,te={}){if(!W)throw new Error("Cannot create regex from empty string");P||(W=ie(W)),te.wholeWord&&(/\B/.test(W.charAt(0))||(W="\\b"+W),/\B/.test(W.charAt(W.length-1))||(W=W+"\\b"));let Ie="";return te.global&&(Ie+="g"),te.matchCase||(Ie+="i"),te.multiline&&(Ie+="m"),te.unicode&&(Ie+="u"),new RegExp(W,Ie)}function p(W){return W.source==="^"||W.source==="^$"||W.source==="$"||W.source==="^\\s*$"?!1:!!(W.exec("")&&W.lastIndex===0)}function a(W){return(W.global?"g":"")+(W.ignoreCase?"i":"")+(W.multiline?"m":"")+(W.unicode?"u":"")}function A(W){return W.split(/\r\n|\r|\n/)}function m(W){for(let P=0,te=W.length;P<te;P++){const Ie=W.charCodeAt(P);if(Ie!==32&&Ie!==9)return P}return-1}function S(W,P=0,te=W.length){for(let Ie=P;Ie<te;Ie++){const Te=W.charCodeAt(Ie);if(Te!==32&&Te!==9)return W.substring(P,Ie)}return W.substring(P,te)}function $(W,P=W.length-1){for(let te=P;te>=0;te--){const Ie=W.charCodeAt(te);if(Ie!==32&&Ie!==9)return te}return-1}function F(W,P){return W<P?-1:W>P?1:0}function H(W,P,te=0,Ie=W.length,Te=0,Se=P.length){for(;te<Ie&&Te<Se;te++,Te++){let Ke=W.charCodeAt(te),Xe=P.charCodeAt(Te);if(Ke<Xe)return-1;if(Ke>Xe)return 1}const Ge=Ie-te,dt=Se-Te;return Ge<dt?-1:Ge>dt?1:0}function V(W,P){return ee(W,P,0,W.length,0,P.length)}function ee(W,P,te=0,Ie=W.length,Te=0,Se=P.length){for(;te<Ie&&Te<Se;te++,Te++){let Ke=W.charCodeAt(te),Xe=P.charCodeAt(Te);if(Ke===Xe)continue;if(Ke>=128||Xe>=128)return H(W.toLowerCase(),P.toLowerCase(),te,Ie,Te,Se);B(Ke)&&(Ke-=32),B(Xe)&&(Xe-=32);const At=Ke-Xe;if(At!==0)return At}const Ge=Ie-te,dt=Se-Te;return Ge<dt?-1:Ge>dt?1:0}function B(W){return W>=97&&W<=122}function z(W){return W>=65&&W<=90}function le(W,P){return W.length===P.length&&ee(W,P)===0}function J(W,P){const te=P.length;return P.length>W.length?!1:ee(W,P,0,te)===0}function be(W,P){let te,Ie=Math.min(W.length,P.length);for(te=0;te<Ie;te++)if(W.charCodeAt(te)!==P.charCodeAt(te))return te;return Ie}function Ce(W,P){let te,Ie=Math.min(W.length,P.length);const Te=W.length-1,Se=P.length-1;for(te=0;te<Ie;te++)if(W.charCodeAt(Te-te)!==P.charCodeAt(Se-te))return te;return Ie}function Le(W){return 55296<=W&&W<=56319}function ae(W){return 56320<=W&&W<=57343}function me(W,P){return(W-55296<<10)+(P-56320)+65536}function T(W,P,te){const Ie=W.charCodeAt(te);if(Le(Ie)&&te+1<P){const Te=W.charCodeAt(te+1);if(ae(Te))return me(Ie,Te)}return Ie}function Ee(W,P){const te=W.charCodeAt(P-1);if(ae(te)&&P>1){const Ie=W.charCodeAt(P-2);if(Le(Ie))return me(Ie,te)}return te}function oe(W,P){const te=St.getInstance(),Ie=P,Te=W.length,Se=T(W,Te,P);P+=Se>=65536?2:1;let Ge=te.getGraphemeBreakType(Se);for(;P<Te;){const dt=T(W,Te,P),Ke=te.getGraphemeBreakType(dt);if(Ue(Ge,Ke))break;P+=dt>=65536?2:1,Ge=Ke}return P-Ie}function he(W,P){const te=St.getInstance(),Ie=P,Te=Ee(W,P);P-=Te>=65536?2:1;let Se=te.getGraphemeBreakType(Te);for(;P>0;){const Ge=Ee(W,P),dt=te.getGraphemeBreakType(Ge);if(Ue(dt,Se))break;P-=Ge>=65536?2:1,Se=dt}return Ie-P}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 _(W){return ve.test(W)}const N=/(?:[\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(W){return N.test(W)}const pe=/^[\t\n\r\x20-\x7E]*$/;function qe(W){return pe.test(W)}const at=/[\u2028\u2029]/;function rt(W){return at.test(W)}function Rt(W){for(let P=0,te=W.length;P<te;P++)if(lr(W.charCodeAt(P)))return!0;return!1}function lr(W){return W=+W,W>=11904&&W<=55215||W>=63744&&W<=64255||W>=65281&&W<=65374}function Jt(W){return W>=127462&&W<=127487||W===8986||W===8987||W===9200||W===9203||W>=9728&&W<=10175||W===11088||W===11093||W>=127744&&W<=128591||W>=128640&&W<=128764||W>=128992&&W<=129003||W>=129280&&W<=129535||W>=129648&&W<=129750}const Ze="\uFEFF";function Er(W){return!!(W&&W.length>0&&W.charCodeAt(0)===65279)}function Cr(W,P=!1){return W?(P&&(W=W.replace(/\\./g,"")),W.toLowerCase()!==W):!1}function Kr(W){return W=W%(2*26),W<26?String.fromCharCode(97+W):String.fromCharCode(65+W-26)}function _r(W){return St.getInstance().getGraphemeBreakType(W)}function Ue(W,P){return W===0?P!==5&&P!==7:W===2&&P===3?!1:W===4||W===2||W===3||P===4||P===2||P===3?!0:!(W===8&&(P===8||P===9||P===11||P===12)||(W===11||W===9)&&(P===9||P===10)||(W===12||W===10)&&P===10||P===5||P===13||P===7||W===1||W===13&&P===14||W===6&&P===6)}class St{constructor(){this._data=G()}static getInstance(){return St._INSTANCE||(St._INSTANCE=new St),St._INSTANCE}getGraphemeBreakType(P){if(P<32)return P===10?3:P===13?2:4;if(P<127)return 0;const te=this._data,Ie=te.length/3;let Te=1;for(;Te<=Ie;)if(P<te[3*Te])Te=2*Te;else if(P>te[3*Te+1])Te=2*Te+1;else return te[3*Te+2];return 0}}St._INSTANCE=null;function G(){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(W,P){if(W===0)return 0;const te=f(W,P);if(te!==void 0)return te;const Ie=Ee(P,W);return W-=D(Ie),W}function f(W,P){let te=Ee(P,W);for(W-=D(te);fe(te)||te===65039||te===8419;){if(W===0)return;te=Ee(P,W),W-=D(te)}if(Jt(te)){if(W>=0){const Ie=Ee(P,W);Ie===8205&&(W-=D(Ie))}return W}}function D(W){return W>=65536?2:1}function fe(W){return 127995<=W&&W<=127999}},72999:function(bn,Wt,g){"use strict";g.d(Wt,{$E:function(){return m},$K:function(){return O},D8:function(){return p},HD:function(){return Fe},IU:function(){return S},Jp:function(){return I},Kn:function(){return se},cW:function(){return o},f6:function(){return $},hj:function(){return ke},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 Fe(H){return typeof H=="string"}function se(H){return typeof H=="object"&&H!==null&&!Array.isArray(H)&&!(H instanceof RegExp)&&!(H instanceof Date)}function ke(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(Fe(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=z=>function(){const le=Array.prototype.slice.call(arguments,0);return V(z,le)};let B={};for(const z of H)B[z]=ee(z);return B}function $(H){return H===null?void 0:H}function F(H,V="Unreachable"){throw new Error(V)}},13268:function(bn,Wt,g){"use strict";g.d(Wt,{N:function(){return Fe}});function we(se,ke){let ie;return ke.length===0?ie=se:ie=se.replace(/\{(\d+)\}/g,function(Y,O){const I=O[0];return typeof ke[I]!="undefined"?ke[I]:Y}),ie}function Fe(se,ke,...ie){return we(ke,ie)}},96236:function(bn,Wt,g){"use strict";g.d(Wt,{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),Fe=g(52615),se=g(4348),ke=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 z=arguments.length,le=z<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=(z<3?J(le):z>3?J(V,ee,le):J(V,ee))||le);return z>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(ke.$.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(ke.$.single({id:H,item:V}))}appendMenuItems(H){const V=new Set,ee=new Y.S;for(const{id:B,item:z}of H){let le=this._menuItems.get(B);le||(le=new Y.S,this._menuItems.set(B,le)),ee.push(le.push(z)),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,z){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=z}get actions(){const V=[],ee=this._menuService.createMenu(this.item.submenu,this._contextKeyService),B=ee.getActions(this._options);ee.dispose();for(const[,z]of B)z.length>0&&(V.push(...z),V.push(new we.Z0));return V.length&&V.pop(),V}}let F=class WA{constructor(V,ee,B,z,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||z.contextMatchesRules(V.precondition),this.checked=void 0,V.toggled){const Ce=V.toggled.condition?V.toggled:{condition:V.toggled};this.checked=z.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,z,le):void 0,this._options=B,o.kS.isThemeIcon(V.icon)&&(this.class=Fe.dT.asClassName(V.icon))}dispose(){}run(...V){var ee,B;let z=[];return!((ee=this._options)===null||ee===void 0)&&ee.arg&&(z=[...z,this._options.arg]),!((B=this._options)===null||B===void 0)&&B.shouldForwardArgs&&(z=[...z,...V]),this._commandService.executeCommand(this.id,...z)}};F=L([p(3,I.i6),p(4,O.H)],F)},35884:function(bn,Wt,g){"use strict";g.d(Wt,{H:function(){return O},P:function(){return I}});var we=g(4348),Fe=g(88226),se=g(69323),ke=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 ke.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 Fe.$.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,Wt,g){"use strict";g.d(Wt,{Ao:function(){return O},Eq:function(){return me},Fb:function(){return I},K8:function(){return oe},i6:function(){return ae},uy:function(){return Le}});var we=g(23345),Fe=g(82983),se=g(16925);let ke=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",ke.indexOf("Edg/")>=0),ie.set("isFirefox",ke.indexOf("Firefox")>=0),ie.set("isChrome",ke.indexOf("Chrome")>=0),ie.set("isSafari",ke.indexOf("Safari")>=0);const Y=Object.prototype.hasOwnProperty;class O{static has(_){return p.create(_)}static equals(_,N){return a.create(_,N)}static regex(_,N){return z.create(_,N)}static not(_){return $.create(_)}static and(..._){return be.create(_,null)}static or(..._){return Ce.create(_,null,!0)}static deserialize(_,N=!1){if(_)return this._deserializeOrExpression(_,N)}static _deserializeOrExpression(_,N){let X=_.split("||");return Ce.create(X.map(pe=>this._deserializeAndExpression(pe,N)),null,!0)}static _deserializeAndExpression(_,N){let X=_.split("&&");return be.create(X.map(pe=>this._deserializeOne(pe,N)),null)}static _deserializeOne(_,N){if(_=_.trim(),_.indexOf("!=")>=0){let X=_.split("!=");return S.create(X[0].trim(),this._deserializeValue(X[1],N))}if(_.indexOf("==")>=0){let X=_.split("==");return a.create(X[0].trim(),this._deserializeValue(X[1],N))}if(_.indexOf("=~")>=0){let X=_.split("=~");return z.create(X[0].trim(),this._deserializeRegexValue(X[1],N))}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(_,N){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let X=/^'([^']*)'$/.exec(_);return X?X[1].trim():_}static _deserializeRegexValue(_,N){if((0,Fe.m5)(_)){if(N)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(N)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let qe=_.slice(X+1,pe),at=_[pe+1]==="i"?"i":"";try{return new RegExp(qe,at)}catch(rt){if(N)throw new Error(`bad regexp-value '${_}', parse error: ${rt}`);return console.warn(`bad regexp-value '${_}', parse error: ${rt}`),null}}}function I(ve,_){const N=ve?ve.substituteConstants():void 0,X=_?_.substituteConstants():void 0;return!N&&!X?!0:!N||!X?!1:N.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(_,N){this.key=_,this.negated=N,this.type=2}static create(_,N=null){const X=ie.get(_);return typeof X=="boolean"?X?L.INSTANCE:o.INSTANCE:new p(_,N)}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(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=4}static create(_,N,X=null){if(typeof N=="boolean")return N?p.create(_,X):$.create(_,X);const pe=ie.get(_);return typeof pe=="boolean"?N===(pe?"true":"false")?L.INSTANCE:o.INSTANCE:new a(_,N,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 N=_?"true":"false";return this.value===N?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(_,N){this.key=_,this.valueKey=N,this.type=10,this.negated=null}static create(_,N){return new A(_,N)}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 N=_.getValue(this.valueKey),X=_.getValue(this.key);return Array.isArray(N)?N.indexOf(X)>=0:typeof X=="string"&&typeof N=="object"&&N!==null?Y.call(N,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(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=5}static create(_,N,X=null){if(typeof N=="boolean")return N?$.create(_,X):p.create(_,X);const pe=ie.get(_);return typeof pe=="boolean"?N===(pe?"true":"false")?o.INSTANCE:L.INSTANCE:new S(_,N,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 N=_?"true":"false";return this.value===N?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(_,N){this.key=_,this.negated=N,this.type=3}static create(_,N=null){const X=ie.get(_);return typeof X=="boolean"?X?o.INSTANCE:L.INSTANCE:new $(_,N)}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 N=parseFloat(ve);isNaN(N)||(ve=N)}return typeof ve=="string"||typeof ve=="number"?_(ve):o.INSTANCE}class H{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=12}static create(_,N,X=null){return F(N,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(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=13}static create(_,N,X=null){return F(N,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(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=14}static create(_,N,X=null){return F(N,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(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=15}static create(_,N,X=null){return F(N,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 z{constructor(_,N){this.key=_,this.regexp=N,this.type=7,this.negated=null}static create(_,N){return new z(_,N)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const N=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return N<X?-1:N>X?1:0}equals(_){if(_.type===this.type){const N=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return this.key===_.key&&N===X}return!1}substituteConstants(){return this}evaluate(_){let N=_.getValue(this.key);return this.regexp?this.regexp.test(N):!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 N=0,X=ve.length;N<X;N++){const pe=ve[N].substituteConstants();if(ve[N]!==pe&&_===null){_=[];for(let qe=0;qe<N;qe++)_[qe]=ve[qe]}_!==null&&(_[N]=pe)}return _===null?ve:_}class be{constructor(_,N){this.expr=_,this.negated=N,this.type=6}static create(_,N){return be._normalizeArr(_,N)}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 N=0,X=this.expr.length;N<X;N++){const pe=n(this.expr[N],_.expr[N]);if(pe!==0)return pe}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].equals(_.expr[N]))return!1;return!0}return!1}substituteConstants(){const _=J(this.expr);return _===this.expr?this:be.create(_,this.negated)}evaluate(_){for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].evaluate(_))return!1;return!0}static _normalizeArr(_,N){const X=[];let pe=!1;for(const qe of _)if(qe){if(qe.type===1){pe=!0;continue}if(qe.type===0)return o.INSTANCE;if(qe.type===6){X.push(...qe.expr);continue}X.push(qe)}if(X.length===0&&pe)return L.INSTANCE;if(X.length!==0){if(X.length===1)return X[0];X.sort(n);for(let qe=1;qe<X.length;qe++)X[qe-1].equals(X[qe])&&(X.splice(qe,1),qe--);if(X.length===1)return X[0];for(;X.length>1;){const qe=X[X.length-1];if(qe.type!==9)break;X.pop();const at=X.pop(),rt=X.length===0,Rt=Ce.create(qe.expr.map(lr=>be.create([lr,at],null)),null,rt);Rt&&(X.push(Rt),X.sort(n))}return X.length===1?X[0]:new be(X,N)}}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let N of this.expr)_.push(...N.keys());return _}negate(){if(!this.negated){const _=[];for(let N of this.expr)_.push(N.negate());this.negated=Ce.create(_,this,!0)}return this.negated}}class Ce{constructor(_,N){this.expr=_,this.negated=N,this.type=9}static create(_,N,X){return Ce._normalizeArr(_,N,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 N=0,X=this.expr.length;N<X;N++){const pe=n(this.expr[N],_.expr[N]);if(pe!==0)return pe}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].equals(_.expr[N]))return!1;return!0}return!1}substituteConstants(){const _=J(this.expr);return _===this.expr?this:Ce.create(_,this.negated,!1)}evaluate(_){for(let N=0,X=this.expr.length;N<X;N++)if(this.expr[N].evaluate(_))return!0;return!1}static _normalizeArr(_,N,X){let pe=[],qe=!1;if(_){for(let at=0,rt=_.length;at<rt;at++){const Rt=_[at];if(Rt){if(Rt.type===0){qe=!0;continue}if(Rt.type===1)return L.INSTANCE;if(Rt.type===9){pe=pe.concat(Rt.expr);continue}pe.push(Rt)}}if(pe.length===0&&qe)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 rt=at+1;rt<pe.length;rt++)oe(pe[at],pe[rt])&&(pe.splice(rt,1),rt--);if(pe.length===1)return pe[0]}return new Ce(pe,N)}}serialize(){return this.expr.map(_=>_.serialize()).join(" || ")}keys(){const _=[];for(let N of this.expr)_.push(...N.keys());return _}negate(){if(!this.negated){let _=[];for(let N of this.expr)_.push(N.negate());for(;_.length>1;){const N=_.shift(),X=_.shift(),pe=[];for(const at of he(N))for(const rt of he(X))pe.push(be.create([at,rt],null));const qe=_.length===0;_.unshift(Ce.create(pe,null,qe))}this.negated=_[0]}return this.negated}}class Le extends p{constructor(_,N,X){super(_,null),this._defaultValue=N,typeof X=="object"?Le._info.push(Object.assign(Object.assign({},X),{key:_})):X!==!0&&Le._info.push({key:_,description:X,type:N!=null?typeof N:void 0})}static all(){return Le._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return a.create(this.key,_)}}Le._info=[];const ae=(0,se.yh)("contextKeyService"),me="setContext";function T(ve,_){return ve<_?-1:ve>_?1:0}function Ee(ve,_,N,X){return ve<N?-1:ve>N?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 N=ve.negate(),X=he(N).concat(he(_));X.sort(n);for(let pe=0;pe<X.length;pe++){const at=X[pe].negate();for(let rt=pe+1;rt<X.length;rt++){const Rt=X[rt];if(at.equals(Rt))return!0}}return!1}function he(ve){return ve.type===9?ve.expr:[ve]}},16925:function(bn,Wt,g){"use strict";g.d(Wt,{I8:function(){return we},TG:function(){return Fe},jt:function(){return ie},yh:function(){return ke}});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 Fe=ke("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 ke(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,Wt,g){"use strict";g.d(Wt,{B:function(){return ke}});var we=g(76068),Fe=g(72999);class se{constructor(){this.data=new Map}add(Y,O){we.ok(Fe.HD(Y)),we.ok(Fe.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 ke=new se},66213:function(bn,Wt,g){"use strict";g.d(Wt,{e:function(){return we}});var we;(function(Fe){Fe.DARK="dark",Fe.LIGHT="light",Fe.HIGH_CONTRAST="hc"})(we||(we={}))},49055:function(bn,Wt,g){"use strict";g.d(Wt,{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),Fe=g(4348),se=g(69323),ke=g(16925),ie=g(44650),Y=g(66213);const O=(0,ke.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 z(le,J){return{id:le.id,color:J?n(J):void 0}}$.asThemeIcon=z,$.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 Fe.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,Wt,g){"use strict";var we=g(92413),Fe=g(33708),se=g(400),ke=g(33606),ie=g(37061),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,z=p.type,le=z===void 0?"checkbox":z,J=p.title,be=p.onChange,Ce=(0,ie.Z)(p,o),Le=(0,n.useRef)(null),ae=(0,I.Z)(B,{value:H}),me=(0,ke.Z)(ae,2),T=me[0],Ee=me[1];(0,n.useImperativeHandle)(a,function(){return{focus:function(){var _;(_=Le.current)===null||_===void 0||_.focus()},blur:function(){var _;(_=Le.current)===null||_===void 0||_.blur()},input:Le.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,Fe.Z)((0,Fe.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:Le,onChange:he,disabled:V,checked:!!T,type:le})),n.createElement("span",{className:"".concat(S,"-inner")}))});Wt.Z=L},31561:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return le}});var we=g(92413),Fe=g(400),se=g(33606),ke=g(37061),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,Le=J.onVisibleChange,ae=J.autoFocus,me=J.overlayRef,T=n.useRef(!1),Ee=function(){if(be){var _,N;(_=Ce.current)===null||_===void 0||(N=_.focus)===null||N===void 0||N.call(_),Le==null||Le(!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 N=!1;T.current||(N=oe()),N?_.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,Le=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,Le&&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,Le=J.arrow,ae=Le===void 0?!1:Le,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,N=J.placements,X=N===void 0?V:N,pe=J.getPopupContainer,qe=J.showAction,at=J.hideAction,rt=J.overlayClassName,Rt=J.overlayStyle,lr=J.visible,Jt=J.trigger,Ze=Jt===void 0?["hover"]:Jt,Er=J.autoFocus,Cr=J.overlay,Kr=J.children,_r=J.onVisibleChange,Ue=(0,ke.Z)(J,ee),St=n.useState(),G=(0,se.Z)(St,2),v=G[0],f=G[1],D="visible"in J?lr:v,fe=n.useRef(null),W=n.useRef(null),P=n.useRef(null);n.useImperativeHandle(be,function(){return fe.current});var te=function(We){f(We),_r==null||_r(We)};A({visible:D,triggerRef:P,onVisibleChange:te,autoFocus:Er,overlayRef:W});var Ie=function(We){var $e=J.onOverlayClick;f(!1),$e&&$e(We)},Te=function(){return n.createElement(S,{ref:W,overlay:Cr,prefixCls:T,arrow:ae})},Se=function(){return typeof Cr=="function"?Te:Te()},Ge=function(){var We=J.minOverlayWidthMatchTrigger,$e=J.alignPoint;return"minOverlayWidthMatchTrigger"in J?We:!$e},dt=function(){var We=J.openClassName;return We!==void 0?We:"".concat(T,"-open")},Ke=n.cloneElement(Kr,{className:O()((Ce=Kr.props)===null||Ce===void 0?void 0:Ce.className,D&&dt()),ref:(0,I.Yr)(Kr)?(0,I.sQ)(P,Kr.ref):void 0}),Xe=at;return!Xe&&Ze.indexOf("contextMenu")!==-1&&(Xe=["click"]),n.createElement(ie.Z,(0,we.Z)({builtinPlacements:X},Ue,{prefixCls:T,ref:fe,popupClassName:O()(rt,(0,Fe.Z)({},"".concat(T,"-show-arrow"),ae)),popupStyle:Rt,action:Ze,showAction:qe,hideAction:Xe,popupPlacement:_,popupAlign:he,popupTransitionName:Ee,popupAnimation:oe,popupVisible:D,stretch:Ge()?"minWidth":"",popup:Se(),onPopupVisibleChange:te,onPopupClick:Ie,getPopupContainer:pe}),Ke)}var z=n.forwardRef(B),le=z},93681:function(bn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{BaseInput:function(){return o},default:function(){return H}});var we=g(92413),Fe=g(33708),se=g(400),ke=g(39559),ie=g(92310),Y=g.n(ie),O=g(59301),I=g(5643),n=function(ee){var B,z,le=ee.inputElement,J=ee.prefixCls,be=ee.prefix,Ce=ee.suffix,Le=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,N=ee.value,X=ee.handleReset,pe=ee.hidden,qe=ee.classes,at=ee.classNames,rt=ee.dataAttrs,Rt=ee.styles,lr=ee.components,Jt=(lr==null?void 0:lr.affixWrapper)||"span",Ze=(lr==null?void 0:lr.groupWrapper)||"span",Er=(lr==null?void 0:lr.wrapper)||"span",Cr=(lr==null?void 0:lr.groupAddon)||"span",Kr=(0,O.useRef)(null),_r=function(Te){var Se;(Se=Kr.current)!==null&&Se!==void 0&&Se.contains(Te.target)&&(ve==null||ve())},Ue=function(){var Te;if(!_)return null;var Se=!Ee&&!oe&&N,Ge="".concat(J,"-clear-icon"),dt=(0,ke.Z)(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"\u2716";return O.createElement("span",{onClick:X,onMouseDown:function(Xe){return Xe.preventDefault()},className:Y()(Ge,(Te={},(0,se.Z)(Te,"".concat(Ge,"-hidden"),!Se),(0,se.Z)(Te,"".concat(Ge,"-has-suffix"),!!Ce),Te)),role:"button",tabIndex:-1},dt)},St=(0,O.cloneElement)(le,{value:N,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,Fe.Z)((0,Fe.Z)({},(z=le.props)===null||z===void 0?void 0:z.style),!(0,I.X3)(ee)&&!(0,I.He)(ee)?T:{})});if((0,I.X3)(ee)){var G,v="".concat(J,"-affix-wrapper"),f=Y()(v,(G={},(0,se.Z)(G,"".concat(v,"-disabled"),Ee),(0,se.Z)(G,"".concat(v,"-focused"),he),(0,se.Z)(G,"".concat(v,"-readonly"),oe),(0,se.Z)(G,"".concat(v,"-input-with-clear-btn"),Ce&&_&&N),G),!(0,I.He)(ee)&&me,qe==null?void 0:qe.affixWrapper,at==null?void 0:at.affixWrapper),D=(Ce||_)&&O.createElement("span",{className:Y()("".concat(J,"-suffix"),at==null?void 0:at.suffix),style:Rt==null?void 0:Rt.suffix},Ue(),Ce);St=O.createElement(Jt,(0,we.Z)({className:f,style:(0,Fe.Z)((0,Fe.Z)({},(0,I.He)(ee)?void 0:T),Rt==null?void 0:Rt.affixWrapper),hidden:!(0,I.He)(ee)&&pe,onClick:_r},rt==null?void 0:rt.affixWrapper,{ref:Kr}),be&&O.createElement("span",{className:Y()("".concat(J,"-prefix"),at==null?void 0:at.prefix),style:Rt==null?void 0:Rt.prefix},be),(0,O.cloneElement)(le,{value:N,hidden:null}),D)}if((0,I.He)(ee)){var fe="".concat(J,"-group"),W="".concat(fe,"-addon"),P=Y()("".concat(J,"-wrapper"),fe,qe==null?void 0:qe.wrapper),te=Y()("".concat(J,"-group-wrapper"),me,qe==null?void 0:qe.group);return O.createElement(Ze,{className:te,style:T,hidden:pe},O.createElement(Er,{className:P},Le&&O.createElement(Cr,{className:W},Le),(0,O.cloneElement)(St,{hidden:null}),ae&&O.createElement(Cr,{className:W},ae)))}return St},o=n,L=g(26407),p=g(33606),a=g(37061),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,z=V.onChange,le=V.onFocus,J=V.onBlur,be=V.onPressEnter,Ce=V.onKeyDown,Le=V.prefixCls,ae=Le===void 0?"rc-input":Le,me=V.disabled,T=V.htmlSize,Ee=V.className,oe=V.maxLength,he=V.suffix,ve=V.showCount,_=V.type,N=_===void 0?"text":_,X=V.classes,pe=V.classNames,qe=V.styles,at=(0,a.Z)(V,S),rt=(0,A.Z)(V.defaultValue,{value:V.value}),Rt=(0,p.Z)(rt,2),lr=Rt[0],Jt=Rt[1],Ze=(0,O.useState)(!1),Er=(0,p.Z)(Ze,2),Cr=Er[0],Kr=Er[1],_r=(0,O.useRef)(null),Ue=function(te){_r.current&&(0,I.nH)(_r.current,te)};(0,O.useImperativeHandle)(ee,function(){return{focus:Ue,blur:function(){var te;(te=_r.current)===null||te===void 0||te.blur()},setSelectionRange:function(te,Ie,Te){var Se;(Se=_r.current)===null||Se===void 0||Se.setSelectionRange(te,Ie,Te)},select:function(){var te;(te=_r.current)===null||te===void 0||te.select()},input:_r.current}}),(0,O.useEffect)(function(){Kr(function(P){return P&&me?!1:P})},[me]);var St=function(te){V.value===void 0&&Jt(te.target.value),_r.current&&(0,I.rJ)(_r.current,te,z)},G=function(te){be&&te.key==="Enter"&&be(te),Ce==null||Ce(te)},v=function(te){Kr(!0),le==null||le(te)},f=function(te){Kr(!1),J==null||J(te)},D=function(te){Jt(""),Ue(),_r.current&&(0,I.rJ)(_r.current,te,z)},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:St,onFocus:v,onBlur:f,onKeyDown:G,className:Y()(ae,(0,se.Z)({},"".concat(ae,"-disabled"),me),pe==null?void 0:pe.input),style:qe==null?void 0:qe.input,ref:_r,size:T,type:N}))},W=function(){var te=Number(oe)>0;if(he||ve){var Ie=(0,I.D7)(lr),Te=(0,L.Z)(Ie).length,Se=(0,ke.Z)(ve)==="object"?ve.formatter({value:Ie,count:Te,maxLength:oe}):"".concat(Te).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,Fe.Z)({},qe==null?void 0:qe.count)},Se),he)}return null};return O.createElement(o,(0,we.Z)({},at,{prefixCls:ae,className:Ee,inputElement:fe(),handleReset:D,value:(0,I.D7)(lr),focused:Cr,triggerFocus:Ue,suffix:W(),disabled:me,classes:X,classNames:pe,styles:qe}))}),F=$,H=F},5643:function(bn,Wt,g){"use strict";g.d(Wt,{D7:function(){return ie},He:function(){return we},X3:function(){return Fe},nH:function(){return ke},rJ:function(){return se}});function we(Y){return!!(Y.addonBefore||Y.addonAfter)}function Fe(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 ke(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,Wt,g){"use strict";g.d(Wt,{iz:function(){return Xn},ck:function(){return Gt},BW:function(){return zn},sN:function(){return Gt},Wd:function(){return Fr},ZP:function(){return vn},Xl:function(){return Ce}});var we=g(92413),Fe=g(400),se=g(33708),ke=g(26407),ie=g(33606),Y=g(37061),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,wr){return hr===void 0?null:"".concat(hr,"-").concat(wr)}function $(hr){var wr=a.useContext(m);return S(wr,hr)}var F=g(80547),H=["children","locked"],V=a.createContext(null);function ee(hr,wr){var Or=(0,se.Z)({},hr);return Object.keys(wr).forEach(function(Hr){var Ur=wr[Hr];Ur!==void 0&&(Or[Hr]=Ur)}),Or}function B(hr){var wr=hr.children,Or=hr.locked,Hr=(0,Y.Z)(hr,H),Ur=a.useContext(V),on=(0,F.Z)(function(){return ee(Ur,Hr)},[Ur,Hr],function(en,Hn){return!Or&&(en[0]!==Hn[0]||!(0,L.Z)(en[1],Hn[1],!0))});return a.createElement(V.Provider,{value:on},wr)}var z=[],le=a.createContext(null);function J(){return a.useContext(le)}var be=a.createContext(z);function Ce(hr){var wr=a.useContext(be);return a.useMemo(function(){return hr!==void 0?[].concat((0,ke.Z)(wr),[hr]):wr},[wr,hr])}var Le=a.createContext(null),ae=a.createContext({}),me=ae,T=g(29194);function Ee(hr){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,T.Z)(hr)){var Or=hr.nodeName.toLowerCase(),Hr=["input","select","textarea","button"].includes(Or)||hr.isContentEditable||Or==="a"&&!!hr.getAttribute("href"),Ur=hr.getAttribute("tabindex"),on=Number(Ur),en=null;return Ur&&!Number.isNaN(on)?en=on:Hr&&en===null&&(en=0),Hr&&hr.disabled&&(en=null),en!==null&&(en>=0||wr&&en<0)}return!1}function oe(hr){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Or=(0,ke.Z)(hr.querySelectorAll("*")).filter(function(Hr){return Ee(Hr,wr)});return Ee(hr,wr)&&Or.unshift(hr),Or}var he=null;function ve(){he=document.activeElement}function _(){he=null}function N(){if(he)try{he.focus()}catch(hr){}}function X(hr,wr){if(wr.keyCode===9){var Or=oe(hr),Hr=Or[wr.shiftKey?0:Or.length-1],Ur=Hr===document.activeElement||hr===document.activeElement;if(Ur){var on=Or[wr.shiftKey?Or.length-1:0];on.focus(),wr.preventDefault()}}}var pe=g(10228),qe=g(16089),at=pe.Z.LEFT,rt=pe.Z.RIGHT,Rt=pe.Z.UP,lr=pe.Z.DOWN,Jt=pe.Z.ENTER,Ze=pe.Z.ESC,Er=pe.Z.HOME,Cr=pe.Z.END,Kr=[Rt,lr,at,rt];function _r(hr,wr,Or,Hr){var Ur,on,en,Hn,ti="prev",ui="next",Ri="children",Oi="parent";if(hr==="inline"&&Hr===Jt)return{inlineTrigger:!0};var Qi=(Ur={},(0,Fe.Z)(Ur,Rt,ti),(0,Fe.Z)(Ur,lr,ui),Ur),Tr=(on={},(0,Fe.Z)(on,at,Or?ui:ti),(0,Fe.Z)(on,rt,Or?ti:ui),(0,Fe.Z)(on,lr,Ri),(0,Fe.Z)(on,Jt,Ri),on),En=(en={},(0,Fe.Z)(en,Rt,ti),(0,Fe.Z)(en,lr,ui),(0,Fe.Z)(en,Jt,Ri),(0,Fe.Z)(en,Ze,Oi),(0,Fe.Z)(en,at,Or?Ri:Oi),(0,Fe.Z)(en,rt,Or?Oi:Ri),en),hn={inline:Qi,horizontal:Tr,vertical:En,inlineSub:Qi,horizontalSub:En,verticalSub:En},Ai=(Hn=hn["".concat(hr).concat(wr?"":"Sub")])===null||Hn===void 0?void 0:Hn[Hr];switch(Ai){case ti:return{offset:-1,sibling:!0};case ui:return{offset:1,sibling:!0};case Oi:return{offset:-1,sibling:!1};case Ri:return{offset:1,sibling:!1};default:return null}}function Ue(hr){for(var wr=hr;wr;){if(wr.getAttribute("data-menu-list"))return wr;wr=wr.parentElement}return null}function St(hr,wr){for(var Or=hr||document.activeElement;Or;){if(wr.has(Or))return Or;Or=Or.parentElement}return null}function G(hr,wr){var Or=oe(hr,!0);return Or.filter(function(Hr){return wr.has(Hr)})}function v(hr,wr,Or){var Hr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!hr)return null;var Ur=G(hr,wr),on=Ur.length,en=Ur.findIndex(function(Hn){return Or===Hn});return Hr<0?en===-1?en=on-1:en-=1:Hr>0&&(en+=1),en=(en+on)%on,Ur[en]}var f=function(wr,Or){var Hr=new Set,Ur=new Map,on=new Map;return wr.forEach(function(en){var Hn=document.querySelector("[data-menu-id='".concat(S(Or,en),"']"));Hn&&(Hr.add(Hn),on.set(Hn,en),Ur.set(en,Hn))}),{elements:Hr,key2element:Ur,element2key:on}};function D(hr,wr,Or,Hr,Ur,on,en,Hn,ti,ui){var Ri=a.useRef(),Oi=a.useRef();Oi.current=wr;var Qi=function(){qe.Z.cancel(Ri.current)};return a.useEffect(function(){return function(){Qi()}},[]),function(Tr){var En=Tr.which;if([].concat(Kr,[Jt,Ze,Er,Cr]).includes(En)){var hn=on(),Ai=f(hn,Hr),si=Ai,ri=si.elements,wi=si.key2element,Ti=si.element2key,Bi=wi.get(wr),zi=St(Bi,ri),oa=Ti.get(zi),Ei=_r(hr,en(oa,!0).length===1,Or,En);if(!Ei&&En!==Er&&En!==Cr)return;(Kr.includes(En)||[Er,Cr].includes(En))&&Tr.preventDefault();var wn=function(ta){if(ta){var xa=ta,La=ta.querySelector("a");La!=null&&La.getAttribute("href")&&(xa=La);var hi=Ti.get(ta);Hn(hi),Qi(),Ri.current=(0,qe.Z)(function(){Oi.current===hi&&xa.focus()})}};if([Er,Cr].includes(En)||Ei.sibling||!zi){var Ht;!zi||hr==="inline"?Ht=Ur.current:Ht=Ue(zi);var Fn,Gn=G(Ht,ri);En===Er?Fn=Gn[0]:En===Cr?Fn=Gn[Gn.length-1]:Fn=v(Ht,ri,zi,Ei.offset),wn(Fn)}else if(Ei.inlineTrigger)ti(oa);else if(Ei.offset>0)ti(oa,!0),Qi(),Ri.current=(0,qe.Z)(function(){Ai=f(hn,Hr);var Ca=zi.getAttribute("aria-controls"),ta=document.getElementById(Ca),xa=v(ta,Ai.elements);wn(xa)},5);else if(Ei.offset<0){var Ci=en(oa,!0),ki=Ci[Ci.length-2],Aa=wi.get(ki);ti(ki,!1),wn(Aa)}}ui==null||ui(Tr)}}function fe(hr){Promise.resolve().then(hr)}var W="__RC_UTIL_PATH_SPLIT__",P=function(wr){return wr.join(W)},te=function(wr){return wr.split(W)},Ie="rc-menu-more";function Te(){var hr=a.useState({}),wr=(0,ie.Z)(hr,2),Or=wr[1],Hr=(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),Oi=function(){Ri.current||Or({})},Qi=(0,a.useCallback)(function(wi,Ti){var Bi=P(Ti);Ur.current.set(Bi,wi),Hr.current.set(wi,Bi),ui.current+=1;var zi=ui.current;fe(function(){zi===ui.current&&Oi()})},[]),Tr=(0,a.useCallback)(function(wi,Ti){var Bi=P(Ti);Ur.current.delete(Bi),Hr.current.delete(wi)},[]),En=(0,a.useCallback)(function(wi){ti(wi)},[]),hn=(0,a.useCallback)(function(wi,Ti){var Bi=Hr.current.get(wi)||"",zi=te(Bi);return Ti&&Hn.includes(zi[0])&&zi.unshift(Ie),zi},[Hn]),Ai=(0,a.useCallback)(function(wi,Ti){return wi.some(function(Bi){var zi=hn(Bi,!0);return zi.includes(Ti)})},[hn]),si=function(){var Ti=(0,ke.Z)(Hr.current.keys());return Hn.length&&Ti.push(Ie),Ti},ri=(0,a.useCallback)(function(wi){var Ti="".concat(Hr.current.get(wi)).concat(W),Bi=new Set;return(0,ke.Z)(Ur.current.keys()).forEach(function(zi){zi.startsWith(Ti)&&Bi.add(Ur.current.get(zi))}),Bi},[]);return a.useEffect(function(){return function(){Ri.current=!0}},[]),{registerPath:Qi,unregisterPath:Tr,refreshOverflowKeys:En,isSubPathKey:Ai,getKeyPath:hn,getKeys:si,getSubPathKeys:ri}}function Se(hr){var wr=a.useRef(hr);wr.current=hr;var Or=a.useCallback(function(){for(var Hr,Ur=arguments.length,on=new Array(Ur),en=0;en<Ur;en++)on[en]=arguments[en];return(Hr=wr.current)===null||Hr===void 0?void 0:Hr.call.apply(Hr,[wr].concat(on))},[]);return hr?Or:void 0}var Ge=Math.random().toFixed(5).toString().slice(2),dt=0;function Ke(hr){var wr=(0,o.Z)(hr,{value:hr}),Or=(0,ie.Z)(wr,2),Hr=Or[0],Ur=Or[1];return a.useEffect(function(){dt+=1;var on="".concat(Ge,"-").concat(dt);Ur("rc-menu-uuid-".concat(on))},[]),Hr}var Xe=g(6909),At=g(4771),We=g(9427),$e=g(25440),Bt=g(2738),Kt=g(8654);function Mt(hr,wr,Or,Hr){var Ur=a.useContext(V),on=Ur.activeKey,en=Ur.onActive,Hn=Ur.onInactive,ti={active:on===hr};return wr||(ti.onMouseEnter=function(ui){Or==null||Or({key:hr,domEvent:ui}),en(hr)},ti.onMouseLeave=function(ui){Hr==null||Hr({key:hr,domEvent:ui}),Hn(hr)}),ti}function br(hr){var wr=a.useContext(V),Or=wr.mode,Hr=wr.rtl,Ur=wr.inlineIndent;if(Or!=="inline")return null;var on=hr;return Hr?{paddingRight:on*Ur}:{paddingLeft:on*Ur}}function vr(hr){var wr=hr.icon,Or=hr.props,Hr=hr.children,Ur;return wr===null||wr===!1?null:(typeof wr=="function"?Ur=a.createElement(wr,(0,se.Z)({},Or)):typeof wr!="boolean"&&(Ur=wr),Ur||Hr||null)}var re=["item"];function ue(hr){var wr=hr.item,Or=(0,Y.Z)(hr,re);return Object.defineProperty(Or,"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."),wr}}),Or}var rr=["title","attribute","elementRef"],Me=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ot=["active"],Zr=function(hr){(0,We.Z)(Or,hr);var wr=(0,$e.Z)(Or);function Or(){return(0,Xe.Z)(this,Or),wr.apply(this,arguments)}return(0,At.Z)(Or,[{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}))}}]),Or}(a.Component),Tt=a.forwardRef(function(hr,wr){var Or,Hr=hr.style,Ur=hr.className,on=hr.eventKey,en=hr.warnKey,Hn=hr.disabled,ti=hr.itemIcon,ui=hr.children,Ri=hr.role,Oi=hr.onMouseEnter,Qi=hr.onMouseLeave,Tr=hr.onClick,En=hr.onKeyDown,hn=hr.onFocus,Ai=(0,Y.Z)(hr,Me),si=$(on),ri=a.useContext(V),wi=ri.prefixCls,Ti=ri.onItemClick,Bi=ri.disabled,zi=ri.overflowDisabled,oa=ri.itemIcon,Ei=ri.selectedKeys,wn=ri.onActive,Ht=a.useContext(me),Fn=Ht._internalRenderMenuItem,Gn="".concat(wi,"-item"),Ci=a.useRef(),ki=a.useRef(),Aa=Bi||Hn,Ca=(0,Kt.x1)(wr,ki),ta=Ce(on),xa=function(Fa){return{key:on,keyPath:(0,ke.Z)(ta).reverse(),item:Ci.current,domEvent:Fa}},La=ti||oa,hi=Mt(on,Aa,Oi,Qi),bi=hi.active,Hi=(0,Y.Z)(hi,ot),ha=Ei.includes(on),Na=br(ta.length),ci=function(Fa){if(!Aa){var Mi=xa(Fa);Tr==null||Tr(ue(Mi)),Ti(Mi)}},pa=function(Fa){if(En==null||En(Fa),Fa.which===pe.Z.ENTER){var Mi=xa(Fa);Tr==null||Tr(ue(Mi)),Ti(Mi)}},va=function(Fa){wn(on),hn==null||hn(Fa)},Ha={};hr.role==="option"&&(Ha["aria-selected"]=ha);var Is=a.createElement(Zr,(0,we.Z)({ref:Ci,elementRef:Ca,role:Ri===null?"none":Ri||"menuitem",tabIndex:Hn?null:-1,"data-menu-id":zi&&si?null:si},Ai,Hi,Ha,{component:"li","aria-disabled":Hn,style:(0,se.Z)((0,se.Z)({},Na),Hr),className:I()(Gn,(Or={},(0,Fe.Z)(Or,"".concat(Gn,"-active"),bi),(0,Fe.Z)(Or,"".concat(Gn,"-selected"),ha),(0,Fe.Z)(Or,"".concat(Gn,"-disabled"),Aa),Or),Ur),onClick:ci,onKeyDown:pa,onFocus:va}),ui,a.createElement(vr,{props:(0,se.Z)((0,se.Z)({},hr),{},{isSelected:ha}),icon:La}));return Fn&&(Is=Fn(Is,hr,{selected:ha})),Is});function Yt(hr,wr){var Or=hr.eventKey,Hr=J(),Ur=Ce(Or);return a.useEffect(function(){if(Hr)return Hr.registerPath(Or,Ur),function(){Hr.unregisterPath(Or,Ur)}},[Ur]),Hr?null:a.createElement(Tt,(0,we.Z)({},hr,{ref:wr}))}var Gt=a.forwardRef(Yt),nt=["className","children"],ct=function(wr,Or){var Hr=wr.className,Ur=wr.children,on=(0,Y.Z)(wr,nt),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"),Hr),role:"menu"},on,{"data-menu-list":!0,ref:Or}),Ur)},pt=a.forwardRef(ct);pt.displayName="SubMenuList";var Zt=pt,Oe=g(11592);function fn(hr,wr){return(0,Oe.Z)(hr).map(function(Or,Hr){if(a.isValidElement(Or)){var Ur,on,en=Or.key,Hn=(Ur=(on=Or.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,ke.Z)(wr),[Hr]).join("-")));var ui={key:Hn,eventKey:Hn};return a.cloneElement(Or,ui)}return Or})}var Nt=g(35593),Ln={adjustX:1,adjustY:1},Vn={topLeft:{points:["bl","tl"],overflow:Ln},topRight:{points:["br","tr"],overflow:Ln},bottomLeft:{points:["tl","bl"],overflow:Ln},bottomRight:{points:["tr","br"],overflow:Ln},leftTop:{points:["tr","tl"],overflow:Ln},leftBottom:{points:["br","bl"],overflow:Ln},rightTop:{points:["tl","tr"],overflow:Ln},rightBottom:{points:["bl","br"],overflow:Ln}},yi={topLeft:{points:["bl","tl"],overflow:Ln},topRight:{points:["br","tr"],overflow:Ln},bottomLeft:{points:["tl","bl"],overflow:Ln},bottomRight:{points:["tr","br"],overflow:Ln},rightTop:{points:["tr","tl"],overflow:Ln},rightBottom:{points:["br","bl"],overflow:Ln},leftTop:{points:["tl","tr"],overflow:Ln},leftBottom:{points:["bl","br"],overflow:Ln}},Ki=null;function jn(hr,wr,Or){if(wr)return wr;if(Or)return Or[hr]||Or.other}var kn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function qt(hr){var wr=hr.prefixCls,Or=hr.visible,Hr=hr.children,Ur=hr.popup,on=hr.popupStyle,en=hr.popupClassName,Hn=hr.popupOffset,ti=hr.disabled,ui=hr.mode,Ri=hr.onVisibleChange,Oi=a.useContext(V),Qi=Oi.getPopupContainer,Tr=Oi.rtl,En=Oi.subMenuOpenDelay,hn=Oi.subMenuCloseDelay,Ai=Oi.builtinPlacements,si=Oi.triggerSubMenuAction,ri=Oi.forceSubMenuRender,wi=Oi.rootClassName,Ti=Oi.motion,Bi=Oi.defaultMotions,zi=a.useState(!1),oa=(0,ie.Z)(zi,2),Ei=oa[0],wn=oa[1],Ht=Tr?(0,se.Z)((0,se.Z)({},yi),Ai):(0,se.Z)((0,se.Z)({},Vn),Ai),Fn=kn[ui],Gn=jn(ui,Ti,Bi),Ci=a.useRef(Gn);ui!=="inline"&&(Ci.current=Gn);var ki=(0,se.Z)((0,se.Z)({},Ci.current),{},{leavedClassName:"".concat(wr,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Aa=a.useRef();return a.useEffect(function(){return Aa.current=(0,qe.Z)(function(){wn(Or)}),function(){qe.Z.cancel(Aa.current)}},[Or]),a.createElement(Nt.Z,{prefixCls:wr,popupClassName:I()("".concat(wr,"-popup"),(0,Fe.Z)({},"".concat(wr,"-rtl"),Tr),en,wi),stretch:ui==="horizontal"?"minWidth":null,getPopupContainer:Qi,builtinPlacements:Ht,popupPlacement:Fn,popupVisible:Ei,popup:Ur,popupStyle:on,popupAlign:Hn&&{offset:Hn},action:ti?[]:[si],mouseEnterDelay:En,mouseLeaveDelay:hn,onPopupVisibleChange:Ri,forceRender:ri,popupMotion:ki,fresh:!0},Hr)}var zr=g(77900);function Jr(hr){var wr=hr.id,Or=hr.open,Hr=hr.keyPath,Ur=hr.children,on="inline",en=a.useContext(V),Hn=en.prefixCls,ti=en.forceSubMenuRender,ui=en.motion,Ri=en.defaultMotions,Oi=en.mode,Qi=a.useRef(!1);Qi.current=Oi===on;var Tr=a.useState(!Qi.current),En=(0,ie.Z)(Tr,2),hn=En[0],Ai=En[1],si=Qi.current?Or:!1;a.useEffect(function(){Qi.current&&Ai(!1)},[Oi]);var ri=(0,se.Z)({},jn(on,ui,Ri));Hr.length>1&&(ri.motionAppear=!1);var wi=ri.onVisibleChanged;return ri.onVisibleChanged=function(Ti){return!Qi.current&&!Ti&&Ai(!0),wi==null?void 0:wi(Ti)},hn?null:a.createElement(B,{mode:on,locked:!Qi.current},a.createElement(zr.default,(0,we.Z)({visible:si},ri,{forceRender:ti,removeOnLeave:!1,leavedClassName:"".concat(Hn,"-hidden")}),function(Ti){var Bi=Ti.className,zi=Ti.style;return a.createElement(Zt,{id:wr,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"],Ct=["active"],Ir=function(wr){var Or,Hr=wr.style,Ur=wr.className,on=wr.title,en=wr.eventKey,Hn=wr.warnKey,ti=wr.disabled,ui=wr.internalPopupClose,Ri=wr.children,Oi=wr.itemIcon,Qi=wr.expandIcon,Tr=wr.popupClassName,En=wr.popupOffset,hn=wr.popupStyle,Ai=wr.onClick,si=wr.onMouseEnter,ri=wr.onMouseLeave,wi=wr.onTitleClick,Ti=wr.onTitleMouseEnter,Bi=wr.onTitleMouseLeave,zi=(0,Y.Z)(wr,Ot),oa=$(en),Ei=a.useContext(V),wn=Ei.prefixCls,Ht=Ei.mode,Fn=Ei.openKeys,Gn=Ei.disabled,Ci=Ei.overflowDisabled,ki=Ei.activeKey,Aa=Ei.selectedKeys,Ca=Ei.itemIcon,ta=Ei.expandIcon,xa=Ei.onItemClick,La=Ei.onOpenChange,hi=Ei.onActive,bi=a.useContext(me),Hi=bi._internalRenderSubMenuItem,ha=a.useContext(Le),Na=ha.isSubPathKey,ci=Ce(),pa="".concat(wn,"-submenu"),va=Gn||ti,Ha=a.useRef(),Is=a.useRef(),Wa=Oi!=null?Oi:Ca,Fa=Qi!=null?Qi:ta,Mi=Fn.includes(en),la=!Ci&&Mi,ms=Na(Aa,en),ss=Mt(en,va,Ti,Bi),ns=ss.active,Wi=(0,Y.Z)(ss,Ct),gs=a.useState(!1),ia=(0,ie.Z)(gs,2),co=ia[0],Qs=ia[1],_o=function(Es){va||Qs(Es)},hs=function(Es){_o(!0),si==null||si({key:en,domEvent:Es})},Bo=function(Es){_o(!1),ri==null||ri({key:en,domEvent:Es})},os=a.useMemo(function(){return ns||(Ht!=="inline"?co||Na([ki],en):!1)},[Ht,ns,ki,co,en,Na]),Yn=br(ci.length),Da=function(Es){va||(wi==null||wi({key:en,domEvent:Es}),Ht==="inline"&&La(en,!Mi))},io=Se(function(As){Ai==null||Ai(ue(As)),xa(As)}),Zi=function(Es){Ht!=="inline"&&La(en,Es)},ea=function(){hi(en)},ji=oa&&"".concat(oa,"-popup"),Ui=a.createElement("div",(0,we.Z)({role:"menuitem",style:Yn,className:"".concat(pa,"-title"),tabIndex:va?null:-1,ref:Ha,title:typeof on=="string"?on:null,"data-menu-id":Ci&&oa?null:oa,"aria-expanded":la,"aria-haspopup":!0,"aria-controls":ji,"aria-disabled":va,onClick:Da,onFocus:ea},Wi),on,a.createElement(vr,{icon:Ht!=="horizontal"?Fa:void 0,props:(0,se.Z)((0,se.Z)({},wr),{},{isOpen:la,isSubMenu:!0})},a.createElement("i",{className:"".concat(pa,"-arrow")}))),ba=a.useRef(Ht);if(Ht!=="inline"&&ci.length>1?ba.current="vertical":ba.current=Ht,!Ci){var ka=ba.current;Ui=a.createElement(qt,{mode:ka,prefixCls:pa,visible:!ui&&la&&Ht!=="inline",popupClassName:Tr,popupOffset:En,popupStyle:hn,popup:a.createElement(B,{mode:ka==="horizontal"?"vertical":ka},a.createElement(Zt,{id:ji,ref:Is},Ri)),disabled:va,onVisibleChange:Zi},Ui)}var Rs=a.createElement(n.Z.Item,(0,we.Z)({role:"none"},zi,{component:"li",style:Hr,className:I()(pa,"".concat(pa,"-").concat(Ht),Ur,(Or={},(0,Fe.Z)(Or,"".concat(pa,"-open"),la),(0,Fe.Z)(Or,"".concat(pa,"-active"),os),(0,Fe.Z)(Or,"".concat(pa,"-selected"),ms),(0,Fe.Z)(Or,"".concat(pa,"-disabled"),va),Or)),onMouseEnter:hs,onMouseLeave:Bo}),Ui,!Ci&&a.createElement(Jr,{id:ji,open:la,keyPath:ci},Ri));return Hi&&(Rs=Hi(Rs,wr,{selected:ms,active:os,open:la,disabled:va})),a.createElement(B,{onItemClick:io,mode:Ht==="horizontal"?"vertical":Ht,itemIcon:Wa,expandIcon:Fa},Rs)};function Fr(hr){var wr=hr.eventKey,Or=hr.children,Hr=Ce(wr),Ur=fn(Or,Hr),on=J();a.useEffect(function(){if(on)return on.registerPath(wr,Hr),function(){on.unregisterPath(wr,Hr)}},[Hr]);var en;return on?en=Ur:en=a.createElement(Ir,hr,Ur),a.createElement(be.Provider,{value:Hr},en)}var Tn=g(39559),tn=["className","title","eventKey","children"],Bn=["children"],gn=function(wr){var Or=wr.className,Hr=wr.title,Ur=wr.eventKey,on=wr.children,en=(0,Y.Z)(wr,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(Oi){return Oi.stopPropagation()},className:I()(ui,Or)}),a.createElement("div",{role:"presentation",className:"".concat(ui,"-title"),title:typeof Hr=="string"?Hr:void 0},Hr),a.createElement("ul",{role:"group",className:"".concat(ui,"-list")},on))};function zn(hr){var wr=hr.children,Or=(0,Y.Z)(hr,Bn),Hr=Ce(Or.eventKey),Ur=fn(wr,Hr),on=J();return on?Ur:a.createElement(gn,(0,Bt.Z)(Or,["warnKey"]),Ur)}function Xn(hr){var wr=hr.className,Or=hr.style,Hr=a.useContext(V),Ur=Hr.prefixCls,on=J();return on?null:a.createElement("li",{role:"separator",className:I()("".concat(Ur,"-item-divider"),wr),style:Or})}var Qr=["label","children","key","type"];function Gr(hr){return(hr||[]).map(function(wr,Or){if(wr&&(0,Tn.Z)(wr)==="object"){var Hr=wr,Ur=Hr.label,on=Hr.children,en=Hr.key,Hn=Hr.type,ti=(0,Y.Z)(Hr,Qr),ui=en!=null?en:"tmp-".concat(Or);return on||Hn==="group"?Hn==="group"?a.createElement(zn,(0,we.Z)({key:ui},ti,{title:Ur}),Gr(on)):a.createElement(Fr,(0,we.Z)({key:ui},ti,{title:Ur}),Gr(on)):Hn==="divider"?a.createElement(Xn,(0,we.Z)({key:ui},ti)):a.createElement(Gt,(0,we.Z)({key:ui},ti),Ur)}return null}).filter(function(wr){return wr})}function Sn(hr,wr,Or){var Hr=hr;return wr&&(Hr=Gr(wr)),fn(Hr,Or)}var On=["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"],Qn=[],Jn=a.forwardRef(function(hr,wr){var Or,Hr,Ur=hr,on=Ur.prefixCls,en=on===void 0?"rc-menu":on,Hn=Ur.rootClassName,ti=Ur.style,ui=Ur.className,Ri=Ur.tabIndex,Oi=Ri===void 0?0:Ri,Qi=Ur.items,Tr=Ur.children,En=Ur.direction,hn=Ur.id,Ai=Ur.mode,si=Ai===void 0?"vertical":Ai,ri=Ur.inlineCollapsed,wi=Ur.disabled,Ti=Ur.disabledOverflow,Bi=Ur.subMenuOpenDelay,zi=Bi===void 0?.1:Bi,oa=Ur.subMenuCloseDelay,Ei=oa===void 0?.1:oa,wn=Ur.forceSubMenuRender,Ht=Ur.defaultOpenKeys,Fn=Ur.openKeys,Gn=Ur.activeKey,Ci=Ur.defaultActiveFirst,ki=Ur.selectable,Aa=ki===void 0?!0:ki,Ca=Ur.multiple,ta=Ca===void 0?!1:Ca,xa=Ur.defaultSelectedKeys,La=Ur.selectedKeys,hi=Ur.onSelect,bi=Ur.onDeselect,Hi=Ur.inlineIndent,ha=Hi===void 0?24:Hi,Na=Ur.motion,ci=Ur.defaultMotions,pa=Ur.triggerSubMenuAction,va=pa===void 0?"hover":pa,Ha=Ur.builtinPlacements,Is=Ur.itemIcon,Wa=Ur.expandIcon,Fa=Ur.overflowedIndicator,Mi=Fa===void 0?"...":Fa,la=Ur.overflowedIndicatorPopupClassName,ms=Ur.getPopupContainer,ss=Ur.onClick,ns=Ur.onOpenChange,Wi=Ur.onKeyDown,gs=Ur.openAnimation,ia=Ur.openTransitionName,co=Ur._internalRenderMenuItem,Qs=Ur._internalRenderSubMenuItem,_o=(0,Y.Z)(Ur,On),hs=a.useMemo(function(){return Sn(Tr,Qi,Qn)},[Tr,Qi]),Bo=a.useState(!1),os=(0,ie.Z)(Bo,2),Yn=os[0],Da=os[1],io=a.useRef(),Zi=Ke(hn),ea=En==="rtl",ji=(0,o.Z)(Ht,{value:Fn,postState:function(ys){return ys||Qn}}),Ui=(0,ie.Z)(ji,2),ba=Ui[0],ka=Ui[1],Rs=function(ys){var es=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Cs(){ka(ys),ns==null||ns(ys)}es?(0,A.flushSync)(Cs):Cs()},As=a.useState(ba),Es=(0,ie.Z)(As,2),is=Es[0],So=Es[1],go=a.useRef(!1),eo=a.useMemo(function(){return(si==="inline"||si==="vertical")&&ri?["vertical",ri]:[si,!1]},[si,ri]),zs=(0,ie.Z)(eo,2),Os=zs[0],Li=zs[1],pi=Os==="inline",ua=a.useState(Os),vs=(0,ie.Z)(ua,2),Oa=vs[0],Ns=vs[1],Vs=a.useState(Li),vo=(0,ie.Z)(Vs,2),Ps=vo[0],Fi=vo[1];a.useEffect(function(){Ns(Os),Fi(Li),go.current&&(pi?ka(is):Rs(Qn))},[Os,Li]);var Dl=a.useState(0),Js=(0,ie.Z)(Dl,2),nl=Js[0],Qo=Js[1],Ao=nl>=hs.length-1||Oa!=="horizontal"||Ti;a.useEffect(function(){pi&&So(ba)},[ba]),a.useEffect(function(){return go.current=!0,function(){go.current=!1}},[]);var _a=Te(),vl=_a.registerPath,yl=_a.unregisterPath,fo=_a.refreshOverflowKeys,yo=_a.isSubPathKey,Ma=_a.getKeyPath,ma=_a.getKeys,to=_a.getSubPathKeys,Ja=a.useMemo(function(){return{registerPath:vl,unregisterPath:yl}},[vl,yl]),as=a.useMemo(function(){return{isSubPathKey:yo}},[yo]);a.useEffect(function(){fo(Ao?Qn:hs.slice(nl+1).map(function(Ya){return Ya.key}))},[nl,Ao]);var js=(0,o.Z)(Gn||Ci&&((Or=hs[0])===null||Or===void 0?void 0:Or.key),{value:Gn}),Ea=(0,ie.Z)(js,2),Ys=Ea[0],ao=Ea[1],Po=Se(function(Ya){ao(Ya)}),Do=Se(function(){ao(void 0)});(0,a.useImperativeHandle)(wr,function(){return{list:io.current,focus:function(ys){var es,Cs=ma(),qs=f(Cs,Zi),El=qs.elements,il=qs.key2element,Rl=qs.element2key,cu=G(io.current,El),Ol=Ys!=null?Ys:cu[0]?Rl.get(cu[0]):(es=hs.find(function(Au){return!Au.props.disabled}))===null||es===void 0?void 0:es.key,Pl=il.get(Ol);if(Ol&&Pl){var oi;Pl==null||(oi=Pl.focus)===null||oi===void 0||oi.call(Pl,ys)}}}});var qa=(0,o.Z)(xa||[],{value:La,postState:function(ys){return Array.isArray(ys)?ys:ys==null?Qn:[ys]}}),bl=(0,ie.Z)(qa,2),so=bl[0],bo=bl[1],Zl=function(ys){if(Aa){var es=ys.key,Cs=so.includes(es),qs;ta?Cs?qs=so.filter(function(il){return il!==es}):qs=[].concat((0,ke.Z)(so),[es]):qs=[es],bo(qs);var El=(0,se.Z)((0,se.Z)({},ys),{},{selectedKeys:qs});Cs?bi==null||bi(El):hi==null||hi(El)}!ta&&ba.length&&Oa!=="inline"&&Rs(Qn)},wl=Se(function(Ya){ss==null||ss(ue(Ya)),Zl(Ya)}),fl=Se(function(Ya,ys){var es=ba.filter(function(qs){return qs!==Ya});if(ys)es.push(Ya);else if(Oa!=="inline"){var Cs=to(Ya);es=es.filter(function(qs){return!Cs.has(qs)})}(0,L.Z)(ba,es,!0)||Rs(es,!0)}),Ll=function(ys,es){var Cs=es!=null?es:!ba.includes(ys);fl(ys,Cs)},xl=D(Oa,Ys,ea,Zi,io,ma,Ma,ao,Ll,Wi);a.useEffect(function(){Da(!0)},[]);var jo=a.useMemo(function(){return{_internalRenderMenuItem:co,_internalRenderSubMenuItem:Qs}},[co,Qs]),Gs=Oa!=="horizontal"||Ti?hs:hs.map(function(Ya,ys){return a.createElement(B,{key:Ya.key,overflowDisabled:ys>nl},Ya)}),Lo=a.createElement(n.Z,(0,we.Z)({id:hn,ref:io,prefixCls:"".concat(en,"-overflow"),component:"ul",itemComponent:Gt,className:I()(en,"".concat(en,"-root"),"".concat(en,"-").concat(Oa),ui,(Hr={},(0,Fe.Z)(Hr,"".concat(en,"-inline-collapsed"),Ps),(0,Fe.Z)(Hr,"".concat(en,"-rtl"),ea),Hr),Hn),dir:En,style:ti,role:"menu",tabIndex:Oi,data:Gs,renderRawItem:function(ys){return ys},renderRawRest:function(ys){var es=ys.length,Cs=es?hs.slice(-es):null;return a.createElement(Fr,{eventKey:Ie,title:Mi,disabled:Ao,internalPopupClose:es===0,popupClassName:la},Cs)},maxCount:Oa!=="horizontal"||Ti?n.Z.INVALIDATE:n.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ys){Qo(ys)},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:ba,rtl:ea,disabled:wi,motion:Yn?Na:null,defaultMotions:Yn?ci:null,activeKey:Ys,onActive:Po,onInactive:Do,selectedKeys:so,inlineIndent:ha,subMenuOpenDelay:zi,subMenuCloseDelay:Ei,forceSubMenuRender:wn,builtinPlacements:Ha,triggerSubMenuAction:va,getPopupContainer:ms,itemIcon:Is,expandIcon:Wa,onItemClick:wl,onOpenChange:fl},a.createElement(Le.Provider,{value:as},Lo),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(le.Provider,{value:Ja},hs)))))}),Ni=Jn,li=Ni;li.Item=Gt,li.SubMenu=Fr,li.ItemGroup=zn,li.Divider=Xn;var vn=li},11780:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return ve}});var we=g(92413),Fe=g(33708),se=g(33606),ke=g(37061),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(_,N){var X=_.prefixCls,pe=_.invalidate,qe=_.item,at=_.renderItem,rt=_.responsive,Rt=_.responsiveDisabled,lr=_.registerSize,Jt=_.itemKey,Ze=_.className,Er=_.style,Cr=_.children,Kr=_.display,_r=_.order,Ue=_.component,St=Ue===void 0?"div":Ue,G=(0,ke.Z)(_,o),v=rt&&!Kr;function f(te){lr(Jt,te)}ie.useEffect(function(){return function(){f(null)}},[]);var D=at&&qe!==L?at(qe,{index:_r}):Cr,fe;pe||(fe={opacity:v?0:1,height:v?0:L,overflowY:v?"hidden":L,order:rt?_r:L,pointerEvents:v?"none":L,position:v?"absolute":L});var W={};v&&(W["aria-hidden"]=!0);var P=ie.createElement(St,(0,we.Z)({className:O()(!pe&&X,Ze),style:(0,Fe.Z)((0,Fe.Z)({},fe),Er)},W,G,{ref:N}),D);return rt&&(P=ie.createElement(I.Z,{onResize:function(Ie){var Te=Ie.offsetWidth;f(Te)},disabled:Rt},P)),P}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 N=new MessageChannel;N.port1.onmessage=function(){return _()},N.port2.postMessage(void 0)}}function H(){var _=ie.useRef(null),N=function(pe){_.current||(_.current=[],F(function(){(0,S.unstable_batchedUpdates)(function(){_.current.forEach(function(qe){qe()}),_.current=null})})),_.current.push(pe)};return N}function V(_,N){var X=ie.useState(N),pe=(0,se.Z)(X,2),qe=pe[0],at=pe[1],rt=(0,m.Z)(function(Rt){_(function(){at(Rt)})});return[qe,rt]}var ee=ie.createContext(null),B=["component"],z=["className"],le=["className"],J=function(N,X){var pe=ie.useContext(ee);if(!pe){var qe=N.component,at=qe===void 0?"div":qe,rt=(0,ke.Z)(N,B);return ie.createElement(at,(0,we.Z)({},rt,{ref:X}))}var Rt=pe.className,lr=(0,ke.Z)(pe,z),Jt=N.className,Ze=(0,ke.Z)(N,le);return ie.createElement(ee.Provider,{value:null},ie.createElement(A,(0,we.Z)({ref:X,className:O()(Rt,Jt)},lr,Ze)))},be=ie.forwardRef(J);be.displayName="RawItem";var Ce=be,Le=["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(_,N){var X=_.prefixCls,pe=X===void 0?"rc-overflow":X,qe=_.data,at=qe===void 0?[]:qe,rt=_.renderItem,Rt=_.renderRawItem,lr=_.itemKey,Jt=_.itemWidth,Ze=Jt===void 0?10:Jt,Er=_.ssr,Cr=_.style,Kr=_.className,_r=_.maxCount,Ue=_.renderRest,St=_.renderRawRest,G=_.suffix,v=_.component,f=v===void 0?"div":v,D=_.itemComponent,fe=_.onVisibleChange,W=(0,ke.Z)(_,Le),P=Er==="full",te=H(),Ie=V(te,null),Te=(0,se.Z)(Ie,2),Se=Te[0],Ge=Te[1],dt=Se||0,Ke=V(te,new Map),Xe=(0,se.Z)(Ke,2),At=Xe[0],We=Xe[1],$e=V(te,0),Bt=(0,se.Z)($e,2),Kt=Bt[0],Mt=Bt[1],br=V(te,0),vr=(0,se.Z)(br,2),re=vr[0],ue=vr[1],rr=V(te,0),Me=(0,se.Z)(rr,2),ot=Me[0],Zr=Me[1],Tt=(0,ie.useState)(null),Yt=(0,se.Z)(Tt,2),Gt=Yt[0],nt=Yt[1],ct=(0,ie.useState)(null),pt=(0,se.Z)(ct,2),Zt=pt[0],Oe=pt[1],fn=ie.useMemo(function(){return Zt===null&&P?Number.MAX_SAFE_INTEGER:Zt||0},[Zt,Se]),Nt=(0,ie.useState)(!1),Ln=(0,se.Z)(Nt,2),Vn=Ln[0],yi=Ln[1],Ki="".concat(pe,"-item"),jn=Math.max(Kt,re),kn=_r===ae,qt=at.length&&kn,zr=_r===me,Jr=qt||typeof _r=="number"&&at.length>_r,Ot=(0,ie.useMemo)(function(){var vn=at;return qt?Se===null&&P?vn=at:vn=at.slice(0,Math.min(at.length,dt/Ze)):typeof _r=="number"&&(vn=at.slice(0,_r)),vn},[at,Ze,Se,_r,qt]),Ct=(0,ie.useMemo)(function(){return qt?at.slice(fn+1):at.slice(Ot.length)},[at,Ot,qt,fn]),Ir=(0,ie.useCallback)(function(vn,hr){var wr;return typeof lr=="function"?lr(vn):(wr=lr&&(vn==null?void 0:vn[lr]))!==null&&wr!==void 0?wr:hr},[lr]),Fr=(0,ie.useCallback)(rt||function(vn){return vn},[rt]);function Tn(vn,hr,wr){Zt===vn&&(hr===void 0||hr===Gt)||(Oe(vn),wr||(yi(vn<at.length-1),fe==null||fe(vn)),hr!==void 0&&nt(hr))}function tn(vn,hr){Ge(hr.clientWidth)}function Bn(vn,hr){We(function(wr){var Or=new Map(wr);return hr===null?Or.delete(vn):Or.set(vn,hr),Or})}function gn(vn,hr){ue(hr),Mt(re)}function zn(vn,hr){Zr(hr)}function Xn(vn){return At.get(Ir(Ot[vn],vn))}(0,n.Z)(function(){if(dt&&typeof jn=="number"&&Ot){var vn=ot,hr=Ot.length,wr=hr-1;if(!hr){Tn(0,null);return}for(var Or=0;Or<hr;Or+=1){var Hr=Xn(Or);if(P&&(Hr=Hr||0),Hr===void 0){Tn(Or-1,void 0,!0);break}if(vn+=Hr,wr===0&&vn<=dt||Or===wr-1&&vn+Xn(wr)<=dt){Tn(wr,null);break}else if(vn+jn>dt){Tn(Or-1,vn-Hr-ot+re);break}}G&&Xn(0)+ot>dt&&nt(null)}},[dt,At,re,ot,Ir,Ot]);var Qr=Vn&&!!Ct.length,Gr={};Gt!==null&&qt&&(Gr={position:"absolute",left:Gt,top:0});var Sn={prefixCls:Ki,responsive:qt,component:D,invalidate:zr},On=Rt?function(vn,hr){var wr=Ir(vn,hr);return ie.createElement(ee.Provider,{key:wr,value:(0,Fe.Z)((0,Fe.Z)({},Sn),{},{order:hr,item:vn,itemKey:wr,registerSize:Bn,display:hr<=fn})},Rt(vn,hr))}:function(vn,hr){var wr=Ir(vn,hr);return ie.createElement(A,(0,we.Z)({},Sn,{order:hr,key:wr,item:vn,renderItem:Fr,itemKey:wr,registerSize:Bn,display:hr<=fn}))},Qn={order:Qr?fn:Number.MAX_SAFE_INTEGER,className:"".concat(Ki,"-rest"),registerSize:gn,display:Qr},Jn=Ue||T,Ni=St?ie.createElement(ee.Provider,{value:(0,Fe.Z)((0,Fe.Z)({},Sn),Qn)},St(Ct)):ie.createElement(A,(0,we.Z)({},Sn,Qn),typeof Jn=="function"?Jn(Ct):Jn),li=ie.createElement(f,(0,we.Z)({className:O()(!zr&&pe,Kr),style:Cr,ref:N},W),Ot.map(On),Jr?Ni:null,G&&ie.createElement(A,(0,we.Z)({},Sn,{responsive:kn,responsiveDisabled:!qt,order:fn,className:"".concat(Ki,"-suffix"),registerSize:zn,display:!0,style:Gr}),G));return kn?ie.createElement(I.Z,{onResize:tn,disabled:!qt},li):li}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,Wt,g){"use strict";g.d(Wt,{Z:function(){return me}});var we=g(92413),Fe=g(59301),se=g(11592),ke=g(48736),ie=g(33708),Y=g(39559),O=g(76846),I=g(8654),n=Fe.createContext(null);function o(T){var Ee=T.children,oe=T.onBatchResize,he=Fe.useRef(0),ve=Fe.useRef([]),_=Fe.useContext(n),N=Fe.useCallback(function(X,pe,qe){he.current+=1;var at=he.current;ve.current.push({size:X,element:pe,data:qe}),Promise.resolve().then(function(){at===he.current&&(oe==null||oe(ve.current),ve.current=[])}),_==null||_(X,pe,qe)},[oe,_]);return Fe.createElement(n.Provider,{value:N},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(6909),V=g(4771),ee=g(9427),B=g(25440),z=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}(Fe.Component);function le(T,Ee){var oe=T.children,he=T.disabled,ve=Fe.useRef(null),_=Fe.useRef(null),N=Fe.useContext(n),X=typeof oe=="function",pe=X?oe(ve):oe,qe=Fe.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),at=!X&&Fe.isValidElement(pe)&&(0,I.Yr)(pe),rt=at?(0,I.C4)(pe):null,Rt=(0,I.x1)(rt,ve),lr=function(){var Cr;return(0,O.ZP)(ve.current)||(ve.current&&(0,Y.Z)(ve.current)==="object"?(0,O.ZP)((Cr=ve.current)===null||Cr===void 0?void 0:Cr.nativeElement):null)||(0,O.ZP)(_.current)};Fe.useImperativeHandle(Ee,function(){return lr()});var Jt=Fe.useRef(T);Jt.current=T;var Ze=Fe.useCallback(function(Er){var Cr=Jt.current,Kr=Cr.onResize,_r=Cr.data,Ue=Er.getBoundingClientRect(),St=Ue.width,G=Ue.height,v=Er.offsetWidth,f=Er.offsetHeight,D=Math.floor(St),fe=Math.floor(G);if(qe.current.width!==D||qe.current.height!==fe||qe.current.offsetWidth!==v||qe.current.offsetHeight!==f){var W={width:D,height:fe,offsetWidth:v,offsetHeight:f};qe.current=W;var P=v===Math.round(St)?St:v,te=f===Math.round(G)?G:f,Ie=(0,ie.Z)((0,ie.Z)({},W),{},{offsetWidth:P,offsetHeight:te});N==null||N(Ie,Er,_r),Kr&&Promise.resolve().then(function(){Kr(Ie,Er)})}},[]);return Fe.useEffect(function(){var Er=lr();return Er&&!he&&$(Er,Ze),function(){return F(Er,Ze)}},[ve.current,he]),Fe.createElement(z,{ref:_},at?Fe.cloneElement(pe,{ref:Rt}):pe)}var J=Fe.forwardRef(le),be=J,Ce="rc-observer-key";function Le(T,Ee){var oe=T.children,he=typeof oe=="function"?[oe]:(0,se.Z)(oe);return he.map(function(ve,_){var N=(ve==null?void 0:ve.key)||"".concat(Ce,"-").concat(_);return Fe.createElement(be,(0,we.Z)({},T,{key:N,ref:_===0?Ee:void 0}),ve)})}var ae=Fe.forwardRef(Le);ae.Collection=o;var me=ae},17115:function(bn,Wt,g){"use strict";g.d(Wt,{ZP:function(){return O}});var we=g(33606),Fe=g(59301),se=g(47273),ke=0,ie=(0,se.Z)();function Y(){var I;return ie?(I=ke,ke+=1):I="TEST_OR_SSR",I}function O(I){var n=Fe.useState(),o=(0,we.Z)(n,2),L=o[0],p=o[1];return Fe.useEffect(function(){p("rc_select_".concat(Y()))},[]),I||L}},77861:function(bn,Wt,g){"use strict";g.d(Wt,{Ac:function(){return Ge},Xo:function(){return ue},Wx:function(){return Me},ZP:function(){return Jr},lk:function(){return ee}});var we=g(92413),Fe=g(26407),se=g(400),ke=g(33708),ie=g(33606),Y=g(37061),O=g(39559),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(Ct){var Ir=Ct.className,Fr=Ct.customizeIcon,Tn=Ct.customizeIconProps,tn=Ct.onMouseDown,Bn=Ct.onClick,gn=Ct.children,zn;return typeof Fr=="function"?zn=Fr(Tn):zn=Fr,o.createElement("span",{className:Ir,onMouseDown:function(Qr){Qr.preventDefault(),tn&&tn(Qr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bn,"aria-hidden":!0},zn!==void 0?zn:o.createElement("span",{className:p()(Ir.split(/\s+/).map(function(Xn){return"".concat(Xn,"-icon")}))},gn))},F=$;function H(Ot,Ct,Ir,Fr,Tn){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,zn=o.useMemo(function(){if((0,O.Z)(Fr)==="object")return Fr.clearIcon;if(Tn)return Tn},[Fr,Tn]),Xn=o.useMemo(function(){return!!(!tn&&Fr&&(Ir.length||Bn)&&!(gn==="combobox"&&Bn===""))},[Fr,tn,Ir.length,Bn,gn]);return{allowClear:Xn,clearIcon:o.createElement(F,{className:"".concat(Ot,"-clear"),onMouseDown:Ct,customizeIcon:zn},"\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,Ct=o.useState(!1),Ir=(0,ie.Z)(Ct,2),Fr=Ir[0],Tn=Ir[1],tn=o.useRef(null),Bn=function(){window.clearTimeout(tn.current)};o.useEffect(function(){return Bn},[]);var gn=function(Xn,Qr){Bn(),tn.current=window.setTimeout(function(){Tn(Xn),Qr&&Qr()},Ot)};return[Fr,gn,Bn]}function z(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ct=o.useRef(null),Ir=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(Ir.current)}},[]);function Fr(Tn){(Tn||Ct.current===null)&&(Ct.current=Tn),window.clearTimeout(Ir.current),Ir.current=window.setTimeout(function(){Ct.current=null},Ot)}return[function(){return Ct.current},Fr]}function le(Ot,Ct,Ir,Fr){var Tn=o.useRef(null);Tn.current={open:Ct,triggerOpen:Ir,customizedTrigger:Fr},o.useEffect(function(){function tn(Bn){var gn;if(!((gn=Tn.current)!==null&&gn!==void 0&&gn.customizedTrigger)){var zn=Bn.target;zn.shadowRoot&&Bn.composed&&(zn=Bn.composedPath()[0]||zn),Tn.current.open&&Ot().filter(function(Xn){return Xn}).every(function(Xn){return!Xn.contains(zn)&&Xn!==zn})&&Tn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",tn),function(){return window.removeEventListener("mousedown",tn)}},[])}var J=g(26112),be=g(11780),Ce=function(Ct,Ir){var Fr,Tn,tn=Ct.prefixCls,Bn=Ct.id,gn=Ct.inputElement,zn=Ct.disabled,Xn=Ct.tabIndex,Qr=Ct.autoFocus,Gr=Ct.autoComplete,Sn=Ct.editable,On=Ct.activeDescendantId,Qn=Ct.value,Jn=Ct.maxLength,Ni=Ct.onKeyDown,li=Ct.onMouseDown,vn=Ct.onChange,hr=Ct.onPaste,wr=Ct.onCompositionStart,Or=Ct.onCompositionEnd,Hr=Ct.open,Ur=Ct.attrs,on=gn||o.createElement("input",null),en=on,Hn=en.ref,ti=en.props,ui=ti.onKeyDown,Ri=ti.onChange,Oi=ti.onMouseDown,Qi=ti.onCompositionStart,Tr=ti.onCompositionEnd,En=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,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},ti),{},{id:Bn,ref:(0,S.sQ)(Ir,Hn),disabled:zn,tabIndex:Xn,autoComplete:Gr||"off",autoFocus:Qr,className:p()("".concat(tn,"-selection-search-input"),(Fr=on)===null||Fr===void 0||(Tn=Fr.props)===null||Tn===void 0?void 0:Tn.className),role:"combobox","aria-label":"Search","aria-expanded":Hr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Bn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Bn,"_list"),"aria-activedescendant":Hr?On:void 0},Ur),{},{value:Sn?Qn:"",maxLength:Jn,readOnly:!Sn,unselectable:Sn?null:"on",style:(0,ke.Z)((0,ke.Z)({},En),{},{opacity:Sn?null:0}),onKeyDown:function(Ai){Ni(Ai),ui&&ui(Ai)},onMouseDown:function(Ai){li(Ai),Oi&&Oi(Ai)},onChange:function(Ai){vn(Ai),Ri&&Ri(Ai)},onCompositionStart:function(Ai){wr(Ai),Qi&&Qi(Ai)},onCompositionEnd:function(Ai){Or(Ai),Tr&&Tr(Ai)},onPaste:hr})),on},Le=o.forwardRef(Ce);Le.displayName="Input";var ae=Le;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 Ct=void 0;return Ot&&(ve(Ot.title)?Ct=Ot.title.toString():ve(Ot.label)&&(Ct=Ot.label.toString())),Ct}function N(Ot,Ct){Ee?o.useLayoutEffect(Ot,Ct):o.useEffect(Ot,Ct)}function X(Ot){var Ct;return(Ct=Ot.key)!==null&&Ct!==void 0?Ct:Ot.value}var pe=function(Ct){Ct.preventDefault(),Ct.stopPropagation()},qe=function(Ct){var Ir=Ct.id,Fr=Ct.prefixCls,Tn=Ct.values,tn=Ct.open,Bn=Ct.searchValue,gn=Ct.autoClearSearchValue,zn=Ct.inputRef,Xn=Ct.placeholder,Qr=Ct.disabled,Gr=Ct.mode,Sn=Ct.showSearch,On=Ct.autoFocus,Qn=Ct.autoComplete,Jn=Ct.activeDescendantId,Ni=Ct.tabIndex,li=Ct.removeIcon,vn=Ct.maxTagCount,hr=Ct.maxTagTextLength,wr=Ct.maxTagPlaceholder,Or=wr===void 0?function(ki){return"+ ".concat(ki.length," ...")}:wr,Hr=Ct.tagRender,Ur=Ct.onToggleOpen,on=Ct.onRemove,en=Ct.onInputChange,Hn=Ct.onInputPaste,ti=Ct.onInputKeyDown,ui=Ct.onInputMouseDown,Ri=Ct.onInputCompositionStart,Oi=Ct.onInputCompositionEnd,Qi=o.useRef(null),Tr=(0,o.useState)(0),En=(0,ie.Z)(Tr,2),hn=En[0],Ai=En[1],si=(0,o.useState)(!1),ri=(0,ie.Z)(si,2),wi=ri[0],Ti=ri[1],Bi="".concat(Fr,"-selection"),zi=tn||Gr==="multiple"&&gn===!1||Gr==="tags"?Bn:"",oa=Gr==="tags"||Gr==="multiple"&&gn===!1||Sn&&(tn||wi);N(function(){Ai(Qi.current.scrollWidth)},[zi]);function Ei(ki,Aa,Ca,ta,xa){return o.createElement("span",{className:p()("".concat(Bi,"-item"),(0,se.Z)({},"".concat(Bi,"-item-disabled"),Ca)),title:_(ki)},o.createElement("span",{className:"".concat(Bi,"-item-content")},Aa),ta&&o.createElement(F,{className:"".concat(Bi,"-item-remove"),onMouseDown:pe,onClick:xa,customizeIcon:li},"\xD7"))}function wn(ki,Aa,Ca,ta,xa){var La=function(bi){pe(bi),Ur(!tn)};return o.createElement("span",{onMouseDown:La},Hr({label:Aa,value:ki,disabled:Ca,closable:ta,onClose:xa}))}function Ht(ki){var Aa=ki.disabled,Ca=ki.label,ta=ki.value,xa=!Qr&&!Aa,La=Ca;if(typeof hr=="number"&&(typeof Ca=="string"||typeof Ca=="number")){var hi=String(La);hi.length>hr&&(La="".concat(hi.slice(0,hr),"..."))}var bi=function(ha){ha&&ha.stopPropagation(),on(ki)};return typeof Hr=="function"?wn(ta,La,Aa,xa,bi):Ei(ki,La,Aa,xa,bi)}function Fn(ki){var Aa=typeof Or=="function"?Or(ki):Or;return Ei({title:Aa},Aa,!1)}var Gn=o.createElement("div",{className:"".concat(Bi,"-search"),style:{width:hn},onFocus:function(){Ti(!0)},onBlur:function(){Ti(!1)}},o.createElement(ae,{ref:zn,open:tn,prefixCls:Fr,id:Ir,inputElement:null,disabled:Qr,autoFocus:On,autoComplete:Qn,editable:oa,activeDescendantId:Jn,value:zi,onKeyDown:ti,onMouseDown:ui,onChange:en,onPaste:Hn,onCompositionStart:Ri,onCompositionEnd:Oi,tabIndex:Ni,attrs:(0,J.Z)(Ct,!0)}),o.createElement("span",{ref:Qi,className:"".concat(Bi,"-search-mirror"),"aria-hidden":!0},zi,"\xA0")),Ci=o.createElement(be.Z,{prefixCls:"".concat(Bi,"-overflow"),data:Tn,renderItem:Ht,renderRest:Fn,suffix:Gn,itemKey:X,maxCount:vn});return o.createElement(o.Fragment,null,Ci,!Tn.length&&!zi&&o.createElement("span",{className:"".concat(Bi,"-placeholder")},Xn))},at=qe,rt=function(Ct){var Ir=Ct.inputElement,Fr=Ct.prefixCls,Tn=Ct.id,tn=Ct.inputRef,Bn=Ct.disabled,gn=Ct.autoFocus,zn=Ct.autoComplete,Xn=Ct.activeDescendantId,Qr=Ct.mode,Gr=Ct.open,Sn=Ct.values,On=Ct.placeholder,Qn=Ct.tabIndex,Jn=Ct.showSearch,Ni=Ct.searchValue,li=Ct.activeValue,vn=Ct.maxLength,hr=Ct.onInputKeyDown,wr=Ct.onInputMouseDown,Or=Ct.onInputChange,Hr=Ct.onInputPaste,Ur=Ct.onInputCompositionStart,on=Ct.onInputCompositionEnd,en=Ct.title,Hn=o.useState(!1),ti=(0,ie.Z)(Hn,2),ui=ti[0],Ri=ti[1],Oi=Qr==="combobox",Qi=Oi||Jn,Tr=Sn[0],En=Ni||"";Oi&&li&&!ui&&(En=li),o.useEffect(function(){Oi&&Ri(!1)},[Oi,li]);var hn=Qr!=="combobox"&&!Gr&&!Jn?!1:!!En,Ai=en===void 0?_(Tr):en,si=function(){if(Tr)return null;var wi=hn?{visibility:"hidden"}:void 0;return o.createElement("span",{className:"".concat(Fr,"-selection-placeholder"),style:wi},On)};return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(Fr,"-selection-search")},o.createElement(ae,{ref:tn,prefixCls:Fr,id:Tn,open:Gr,inputElement:Ir,disabled:Bn,autoFocus:gn,autoComplete:zn,editable:Qi,activeDescendantId:Xn,value:En,onKeyDown:hr,onMouseDown:wr,onChange:function(wi){Ri(!0),Or(wi)},onPaste:Hr,onCompositionStart:Ur,onCompositionEnd:on,tabIndex:Qn,attrs:(0,J.Z)(Ct,!0),maxLength:Oi?vn:void 0})),!Oi&&Tr?o.createElement("span",{className:"".concat(Fr,"-selection-item"),title:Ai,style:hn?{visibility:"hidden"}:void 0},Tr.label):null,si())},Rt=rt;function lr(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(Ct,Ir){var Fr=(0,o.useRef)(null),Tn=(0,o.useRef)(!1),tn=Ct.prefixCls,Bn=Ct.open,gn=Ct.mode,zn=Ct.showSearch,Xn=Ct.tokenWithEnter,Qr=Ct.autoClearSearchValue,Gr=Ct.onSearch,Sn=Ct.onSearchSubmit,On=Ct.onToggleOpen,Qn=Ct.onInputKeyDown,Jn=Ct.domRef;o.useImperativeHandle(Ir,function(){return{focus:function(){Fr.current.focus()},blur:function(){Fr.current.blur()}}});var Ni=z(0),li=(0,ie.Z)(Ni,2),vn=li[0],hr=li[1],wr=function(En){var hn=En.which;(hn===m.Z.UP||hn===m.Z.DOWN)&&En.preventDefault(),Qn&&Qn(En),hn===m.Z.ENTER&&gn==="tags"&&!Tn.current&&!Bn&&(Sn==null||Sn(En.target.value)),lr(hn)&&On(!0)},Or=function(){hr(!0)},Hr=(0,o.useRef)(null),Ur=function(En){Gr(En,!0,Tn.current)!==!1&&On(!0)},on=function(){Tn.current=!0},en=function(En){Tn.current=!1,gn!=="combobox"&&Ur(En.target.value)},Hn=function(En){var hn=En.target.value;if(Xn&&Hr.current&&/[\r\n]/.test(Hr.current)){var Ai=Hr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");hn=hn.replace(Ai,Hr.current)}Hr.current=null,Ur(hn)},ti=function(En){var hn=En.clipboardData,Ai=hn.getData("text");Hr.current=Ai},ui=function(En){var hn=En.target;if(hn!==Fr.current){var Ai=document.body.style.msTouchAction!==void 0;Ai?setTimeout(function(){Fr.current.focus()}):Fr.current.focus()}},Ri=function(En){var hn=vn();En.target!==Fr.current&&!hn&&gn!=="combobox"&&En.preventDefault(),(gn!=="combobox"&&(!zn||!hn)||!Bn)&&(Bn&&Qr!==!1&&Gr("",!0,!1),On())},Oi={inputRef:Fr,onInputKeyDown:wr,onInputMouseDown:Or,onInputChange:Hn,onInputPaste:ti,onInputCompositionStart:on,onInputCompositionEnd:en},Qi=gn==="multiple"||gn==="tags"?o.createElement(at,(0,we.Z)({},Ct,Oi)):o.createElement(Rt,(0,we.Z)({},Ct,Oi));return o.createElement("div",{ref:Jn,className:"".concat(tn,"-selector"),onClick:ui,onMouseDown:Ri},Qi)},Ze=o.forwardRef(Jt);Ze.displayName="Selector";var Er=Ze,Cr=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(Ct){var Ir=Ct===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"}}},Ue=function(Ct,Ir){var Fr=Ct.prefixCls,Tn=Ct.disabled,tn=Ct.visible,Bn=Ct.children,gn=Ct.popupElement,zn=Ct.animation,Xn=Ct.transitionName,Qr=Ct.dropdownStyle,Gr=Ct.dropdownClassName,Sn=Ct.direction,On=Sn===void 0?"ltr":Sn,Qn=Ct.placement,Jn=Ct.builtinPlacements,Ni=Ct.dropdownMatchSelectWidth,li=Ct.dropdownRender,vn=Ct.dropdownAlign,hr=Ct.getPopupContainer,wr=Ct.empty,Or=Ct.getTriggerDOMNode,Hr=Ct.onPopupVisibleChange,Ur=Ct.onPopupMouseEnter,on=(0,Y.Z)(Ct,Kr),en="".concat(Fr,"-dropdown"),Hn=gn;li&&(Hn=li(gn));var ti=o.useMemo(function(){return Jn||_r(Ni)},[Jn,Ni]),ui=zn?"".concat(en,"-").concat(zn):Xn,Ri=typeof Ni=="number",Oi=o.useMemo(function(){return Ri?null:Ni===!1?"minWidth":"width"},[Ni,Ri]),Qi=Qr;Ri&&(Qi=(0,ke.Z)((0,ke.Z)({},Qi),{},{width:Ni}));var Tr=o.useRef(null);return o.useImperativeHandle(Ir,function(){return{getPopupElement:function(){return Tr.current}}}),o.createElement(Cr.Z,(0,we.Z)({},on,{showAction:Hr?["click"]:[],hideAction:Hr?["click"]:[],popupPlacement:Qn||(On==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ti,prefixCls:en,popupTransitionName:ui,popup:o.createElement("div",{ref:Tr,onMouseEnter:Ur},Hn),stretch:Oi,popupAlign:vn,popupVisible:tn,getPopupContainer:hr,popupClassName:p()(Gr,(0,se.Z)({},"".concat(en,"-empty"),wr)),popupStyle:Qi,getTriggerDOMNode:Or,onPopupVisibleChange:Hr}),Bn)},St=o.forwardRef(Ue);St.displayName="SelectTrigger";var G=St,v=g(34589);function f(Ot,Ct){var Ir=Ot.key,Fr;return"value"in Ot&&(Fr=Ot.value),Ir!=null?Ir:Fr!==void 0?Fr:"rc-index-key-".concat(Ct)}function D(Ot,Ct){var Ir=Ot||{},Fr=Ir.label,Tn=Ir.value,tn=Ir.options,Bn=Ir.groupLabel,gn=Fr||(Ct?"children":"label");return{label:gn,value:Tn||"value",options:tn||"options",groupLabel:Bn||gn}}function fe(Ot){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ir=Ct.fieldNames,Fr=Ct.childrenAsData,Tn=[],tn=D(Ir,!1),Bn=tn.label,gn=tn.value,zn=tn.options,Xn=tn.groupLabel;function Qr(Gr,Sn){Gr.forEach(function(On){if(Sn||!(zn in On)){var Qn=On[gn];Tn.push({key:f(On,Tn.length),groupOption:Sn,data:On,label:On[Bn],value:Qn})}else{var Jn=On[Xn];Jn===void 0&&Fr&&(Jn=On.label),Tn.push({key:f(On,Tn.length),group:!0,data:On,label:Jn}),Qr(On[zn],!0)}})}return Qr(Ot,!1),Tn}function W(Ot){var Ct=(0,ke.Z)({},Ot);return"props"in Ct||Object.defineProperty(Ct,"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`."),Ct}}),Ct}function P(Ot,Ct){if(!Ct||!Ct.length)return null;var Ir=!1;function Fr(tn,Bn){var gn=(0,v.Z)(Bn),zn=gn[0],Xn=gn.slice(1);if(!zn)return[tn];var Qr=tn.split(zn);return Ir=Ir||Qr.length>1,Qr.reduce(function(Gr,Sn){return[].concat((0,Fe.Z)(Gr),(0,Fe.Z)(Fr(Sn,Xn)))},[]).filter(function(Gr){return Gr})}var Tn=Fr(Ot,Ct);return Ir?Tn: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"],Ie=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Te(Ot){return Ot==="tags"||Ot==="multiple"}var Se=o.forwardRef(function(Ot,Ct){var Ir,Fr,Tn=Ot.id,tn=Ot.prefixCls,Bn=Ot.className,gn=Ot.showSearch,zn=Ot.tagRender,Xn=Ot.direction,Qr=Ot.omitDomProps,Gr=Ot.displayValues,Sn=Ot.onDisplayValuesChange,On=Ot.emptyOptions,Qn=Ot.notFoundContent,Jn=Qn===void 0?"Not Found":Qn,Ni=Ot.onClear,li=Ot.mode,vn=Ot.disabled,hr=Ot.loading,wr=Ot.getInputElement,Or=Ot.getRawInputElement,Hr=Ot.open,Ur=Ot.defaultOpen,on=Ot.onDropdownVisibleChange,en=Ot.activeValue,Hn=Ot.onActiveValueChange,ti=Ot.activeDescendantId,ui=Ot.searchValue,Ri=Ot.autoClearSearchValue,Oi=Ot.onSearch,Qi=Ot.onSearchSplit,Tr=Ot.tokenSeparators,En=Ot.allowClear,hn=Ot.suffixIcon,Ai=Ot.clearIcon,si=Ot.OptionList,ri=Ot.animation,wi=Ot.transitionName,Ti=Ot.dropdownStyle,Bi=Ot.dropdownClassName,zi=Ot.dropdownMatchSelectWidth,oa=Ot.dropdownRender,Ei=Ot.dropdownAlign,wn=Ot.placement,Ht=Ot.builtinPlacements,Fn=Ot.getPopupContainer,Gn=Ot.showAction,Ci=Gn===void 0?[]:Gn,ki=Ot.onFocus,Aa=Ot.onBlur,Ca=Ot.onKeyUp,ta=Ot.onKeyDown,xa=Ot.onMouseDown,La=(0,Y.Z)(Ot,te),hi=Te(li),bi=(gn!==void 0?gn:hi)||li==="combobox",Hi=(0,ke.Z)({},La);Ie.forEach(function(Ma){delete Hi[Ma]}),Qr==null||Qr.forEach(function(Ma){delete Hi[Ma]});var ha=o.useState(!1),Na=(0,ie.Z)(ha,2),ci=Na[0],pa=Na[1];o.useEffect(function(){pa((0,A.Z)())},[]);var va=o.useRef(null),Ha=o.useRef(null),Is=o.useRef(null),Wa=o.useRef(null),Fa=o.useRef(null),Mi=B(),la=(0,ie.Z)(Mi,3),ms=la[0],ss=la[1],ns=la[2];o.useImperativeHandle(Ct,function(){var Ma,ma;return{focus:(Ma=Wa.current)===null||Ma===void 0?void 0:Ma.focus,blur:(ma=Wa.current)===null||ma===void 0?void 0:ma.blur,scrollTo:function(Ja){var as;return(as=Fa.current)===null||as===void 0?void 0:as.scrollTo(Ja)}}});var Wi=o.useMemo(function(){var Ma;if(li!=="combobox")return ui;var ma=(Ma=Gr[0])===null||Ma===void 0?void 0:Ma.value;return typeof ma=="string"||typeof ma=="number"?String(ma):""},[ui,li,Gr]),gs=li==="combobox"&&typeof wr=="function"&&wr()||null,ia=typeof Or=="function"&&Or(),co=(0,S.x1)(Ha,ia==null||(Ir=ia.props)===null||Ir===void 0?void 0:Ir.ref),Qs=o.useState(!1),_o=(0,ie.Z)(Qs,2),hs=_o[0],Bo=_o[1];(0,a.Z)(function(){Bo(!0)},[]);var os=(0,I.Z)(!1,{defaultValue:Ur,value:Hr}),Yn=(0,ie.Z)(os,2),Da=Yn[0],io=Yn[1],Zi=hs?Da:!1,ea=!Jn&&On;(vn||ea&&Zi&&li==="combobox")&&(Zi=!1);var ji=ea?!1:Zi,Ui=o.useCallback(function(Ma){var ma=Ma!==void 0?Ma:!Zi;vn||(io(ma),Zi!==ma&&(on==null||on(ma)))},[vn,Zi,io,on]),ba=o.useMemo(function(){return(Tr||[]).some(function(Ma){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ma)})},[Tr]),ka=function(ma,to,Ja){var as=!0,js=ma;Hn==null||Hn(null);var Ea=Ja?null:P(ma,Tr);return li!=="combobox"&&Ea&&(js="",Qi==null||Qi(Ea),Ui(!1),as=!1),Oi&&Wi!==js&&Oi(js,{source:to?"typing":"effect"}),as},Rs=function(ma){!ma||!ma.trim()||Oi(ma,{source:"submit"})};o.useEffect(function(){!Zi&&!hi&&li!=="combobox"&&ka("",!1,!1)},[Zi]),o.useEffect(function(){Da&&vn&&io(!1),vn&&ss(!1)},[vn]);var As=z(),Es=(0,ie.Z)(As,2),is=Es[0],So=Es[1],go=function(ma){var to=is(),Ja=ma.which;if(Ja===m.Z.ENTER&&(li!=="combobox"&&ma.preventDefault(),Zi||Ui(!0)),So(!!Wi),Ja===m.Z.BACKSPACE&&!to&&hi&&!Wi&&Gr.length){for(var as=(0,Fe.Z)(Gr),js=null,Ea=as.length-1;Ea>=0;Ea-=1){var Ys=as[Ea];if(!Ys.disabled){as.splice(Ea,1),js=Ys;break}}js&&Sn(as,{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&&Fa.current){var qa;(qa=Fa.current).onKeyDown.apply(qa,[ma].concat(Po))}ta==null||ta.apply(void 0,[ma].concat(Po))},eo=function(ma){for(var to=arguments.length,Ja=new Array(to>1?to-1:0),as=1;as<to;as++)Ja[as-1]=arguments[as];if(Zi&&Fa.current){var js;(js=Fa.current).onKeyUp.apply(js,[ma].concat(Ja))}Ca==null||Ca.apply(void 0,[ma].concat(Ja))},zs=function(ma){var to=Gr.filter(function(Ja){return Ja!==ma});Sn(to,{type:"remove",values:[ma]})},Os=o.useRef(!1),Li=function(){ss(!0),vn||(ki&&!Os.current&&ki.apply(void 0,arguments),Ci.includes("focus")&&Ui(!0)),Os.current=!0},pi=function(){ss(!1,function(){Os.current=!1,Ui(!1)}),!vn&&(Wi&&(li==="tags"?Oi(Wi,{source:"submit"}):li==="multiple"&&Oi("",{source:"blur"})),Aa&&Aa.apply(void 0,arguments))},ua=[];o.useEffect(function(){return function(){ua.forEach(function(Ma){return clearTimeout(Ma)}),ua.splice(0,ua.length)}},[]);var vs=function(ma){var to,Ja=ma.target,as=(to=Is.current)===null||to===void 0?void 0:to.getPopupElement();if(as&&as.contains(Ja)){var js=setTimeout(function(){var Po=ua.indexOf(js);if(Po!==-1&&ua.splice(Po,1),ns(),!ci&&!as.contains(document.activeElement)){var Do;(Do=Wa.current)===null||Do===void 0||Do.focus()}});ua.push(js)}for(var Ea=arguments.length,Ys=new Array(Ea>1?Ea-1:0),ao=1;ao<Ea;ao++)Ys[ao-1]=arguments[ao];xa==null||xa.apply(void 0,[ma].concat(Ys))},Oa=o.useState({}),Ns=(0,ie.Z)(Oa,2),Vs=Ns[1];function vo(){Vs({})}var Ps;ia&&(Ps=function(ma){Ui(ma)}),le(function(){var Ma;return[va.current,(Ma=Is.current)===null||Ma===void 0?void 0:Ma.getPopupElement()]},ji,Ui,!!ia);var Fi=o.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},Ot),{},{notFoundContent:Jn,open:Zi,triggerOpen:ji,id:Tn,showSearch:bi,multiple:hi,toggleOpen:Ui})},[Ot,Jn,ji,Zi,Tn,bi,hi,Ui]),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:ms,showSearch:bi}}));var nl=function(){var ma;Ni==null||Ni(),(ma=Wa.current)===null||ma===void 0||ma.focus(),Sn([],{type:"clear",values:Gr}),ka("",!1,!1)},Qo=H(tn,nl,Gr,En,Ai,vn,Wi,li),Ao=Qo.allowClear,_a=Qo.clearIcon,vl=o.createElement(si,{ref:Fa}),yl=p()(tn,Bn,(Fr={},(0,se.Z)(Fr,"".concat(tn,"-focused"),ms),(0,se.Z)(Fr,"".concat(tn,"-multiple"),hi),(0,se.Z)(Fr,"".concat(tn,"-single"),!hi),(0,se.Z)(Fr,"".concat(tn,"-allow-clear"),En),(0,se.Z)(Fr,"".concat(tn,"-show-arrow"),Dl),(0,se.Z)(Fr,"".concat(tn,"-disabled"),vn),(0,se.Z)(Fr,"".concat(tn,"-loading"),hr),(0,se.Z)(Fr,"".concat(tn,"-open"),Zi),(0,se.Z)(Fr,"".concat(tn,"-customize-input"),gs),(0,se.Z)(Fr,"".concat(tn,"-show-search"),bi),Fr)),fo=o.createElement(G,{ref:Is,disabled:vn,prefixCls:tn,visible:ji,popupElement:vl,animation:ri,transitionName:wi,dropdownStyle:Ti,dropdownClassName:Bi,direction:Xn,dropdownMatchSelectWidth:zi,dropdownRender:oa,dropdownAlign:Ei,placement:wn,builtinPlacements:Ht,getPopupContainer:Fn,empty:On,getTriggerDOMNode:function(){return Ha.current},onPopupVisibleChange:Ps,onPopupMouseEnter:vo},ia?o.cloneElement(ia,{ref:co}):o.createElement(Er,(0,we.Z)({},Ot,{domRef:Ha,prefixCls:tn,inputElement:gs,ref:Wa,id:Tn,showSearch:bi,autoClearSearchValue:Ri,mode:li,activeDescendantId:ti,tagRender:zn,values:Gr,open:Zi,onToggleOpen:Ui,activeValue:en,searchValue:Wi,onSearch:ka,onSearchSubmit:Rs,onRemove:zs,tokenWithEnter:ba}))),yo;return ia?yo=fo:yo=o.createElement("div",(0,we.Z)({className:yl},Hi,{ref:va,onMouseDown:vs,onKeyDown:go,onKeyUp:eo,onFocus:Li,onBlur:pi}),ms&&!Zi&&o.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Gr.map(function(Ma){var ma=Ma.label,to=Ma.value;return["number","string"].includes((0,O.Z)(ma))?ma:to}).join(", "))),fo,Js,Ao&&_a),o.createElement(V.Provider,{value:Fi},yo)}),Ge=Se,dt=function(Ot,Ct){var Ir=o.useRef({values:new Map,options:new Map}),Fr=o.useMemo(function(){var tn=Ir.current,Bn=tn.values,gn=tn.options,zn=Ot.map(function(Gr){if(Gr.label===void 0){var Sn;return(0,ke.Z)((0,ke.Z)({},Gr),{},{label:(Sn=Bn.get(Gr.value))===null||Sn===void 0?void 0:Sn.label})}return Gr}),Xn=new Map,Qr=new Map;return zn.forEach(function(Gr){Xn.set(Gr.value,Gr),Qr.set(Gr.value,Ct.get(Gr.value)||gn.get(Gr.value))}),Ir.current.values=Xn,Ir.current.options=Qr,zn},[Ot,Ct]),Tn=o.useCallback(function(tn){return Ct.get(tn)||Ir.current.options.get(tn)},[Ct]);return[Fr,Tn]};function Ke(Ot,Ct){return me(Ot).join("").toUpperCase().includes(Ct)}var Xe=function(Ot,Ct,Ir,Fr,Tn){return o.useMemo(function(){if(!Ir||Fr===!1)return Ot;var tn=Ct.options,Bn=Ct.label,gn=Ct.value,zn=[],Xn=typeof Fr=="function",Qr=Ir.toUpperCase(),Gr=Xn?Fr:function(On,Qn){return Tn?Ke(Qn[Tn],Qr):Qn[tn]?Ke(Qn[Bn!=="children"?Bn:"label"],Qr):Ke(Qn[gn],Qr)},Sn=Xn?function(On){return W(On)}:function(On){return On};return Ot.forEach(function(On){if(On[tn]){var Qn=Gr(Ir,Sn(On));if(Qn)zn.push(On);else{var Jn=On[tn].filter(function(Ni){return Gr(Ir,Sn(Ni))});Jn.length&&zn.push((0,ke.Z)((0,ke.Z)({},On),{},(0,se.Z)({},tn,Jn)))}return}Gr(Ir,Sn(On))&&zn.push(On)}),zn},[Ot,Fr,Tn,Ir,Ct])},At=g(17115),We=g(11592),$e=["children","value"],Bt=["children"];function Kt(Ot){var Ct=Ot,Ir=Ct.key,Fr=Ct.props,Tn=Fr.children,tn=Fr.value,Bn=(0,Y.Z)(Fr,$e);return(0,ke.Z)({key:Ir,value:tn!==void 0?tn:Ir,children:Tn},Bn)}function Mt(Ot){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,We.Z)(Ot).map(function(Ir,Fr){if(!o.isValidElement(Ir)||!Ir.type)return null;var Tn=Ir,tn=Tn.type.isSelectOptGroup,Bn=Tn.key,gn=Tn.props,zn=gn.children,Xn=(0,Y.Z)(gn,Bt);return Ct||!tn?Kt(Ir):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(Bn===null?Fr:Bn,"__"),label:Bn},Xn),{},{options:Mt(zn)})}).filter(function(Ir){return Ir})}function br(Ot,Ct,Ir,Fr,Tn){return o.useMemo(function(){var tn=Ot,Bn=!Ot;Bn&&(tn=Mt(Ct));var gn=new Map,zn=new Map,Xn=function(Sn,On,Qn){Qn&&typeof Qn=="string"&&Sn.set(On[Qn],On)};function Qr(Gr){for(var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<Gr.length;On+=1){var Qn=Gr[On];!Qn[Ir.options]||Sn?(gn.set(Qn[Ir.value],Qn),Xn(zn,Qn,Ir.label),Xn(zn,Qn,Fr),Xn(zn,Qn,Tn)):Qr(Qn[Ir.options],!0)}}return Qr(tn),{options:tn,valueOptions:gn,labelOptions:zn}},[Ot,Ct,Ir,Fr,Tn])}function vr(Ot){var Ct=o.useRef();Ct.current=Ot;var Ir=o.useCallback(function(){return Ct.current.apply(Ct,arguments)},[]);return Ir}var re=function(){return null};re.isSelectOptGroup=!0;var ue=re,rr=function(){return null};rr.isSelectOption=!0;var Me=rr,ot=g(80547),Zr=g(2738),Tt=g(57149),Yt=o.createContext(null),Gt=Yt;function nt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ct=["disabled","title","children","style","className"];function pt(Ot){return typeof Ot=="string"||typeof Ot=="number"}var Zt=function(Ct,Ir){var Fr=ee(),Tn=Fr.prefixCls,tn=Fr.id,Bn=Fr.open,gn=Fr.multiple,zn=Fr.mode,Xn=Fr.searchValue,Qr=Fr.toggleOpen,Gr=Fr.notFoundContent,Sn=Fr.onPopupScroll,On=o.useContext(Gt),Qn=On.flattenOptions,Jn=On.onActiveValue,Ni=On.defaultActiveFirstOption,li=On.onSelect,vn=On.menuItemSelectedIcon,hr=On.rawValues,wr=On.fieldNames,Or=On.virtual,Hr=On.direction,Ur=On.listHeight,on=On.listItemHeight,en="".concat(Tn,"-item"),Hn=(0,ot.Z)(function(){return Qn},[Bn,Qn],function(Ei,wn){return wn[0]&&Ei[1]!==wn[1]}),ti=o.useRef(null),ui=function(wn){wn.preventDefault()},Ri=function(wn){ti.current&&ti.current.scrollTo(typeof wn=="number"?{index:wn}:wn)},Oi=function(wn){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Fn=Hn.length,Gn=0;Gn<Fn;Gn+=1){var Ci=(wn+Gn*Ht+Fn)%Fn,ki=Hn[Ci],Aa=ki.group,Ca=ki.data;if(!Aa&&!Ca.disabled)return Ci}return-1},Qi=o.useState(function(){return Oi(0)}),Tr=(0,ie.Z)(Qi,2),En=Tr[0],hn=Tr[1],Ai=function(wn){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;hn(wn);var Fn={source:Ht?"keyboard":"mouse"},Gn=Hn[wn];if(!Gn){Jn(null,-1,Fn);return}Jn(Gn.value,wn,Fn)};(0,o.useEffect)(function(){Ai(Ni!==!1?Oi(0):-1)},[Hn.length,Xn]);var si=o.useCallback(function(Ei){return hr.has(Ei)&&zn!=="combobox"},[zn,(0,Fe.Z)(hr).toString(),hr.size]);(0,o.useEffect)(function(){var Ei=setTimeout(function(){if(!gn&&Bn&&hr.size===1){var Ht=Array.from(hr)[0],Fn=Hn.findIndex(function(Gn){var Ci=Gn.data;return Ci.value===Ht});Fn!==-1&&(Ai(Fn),Ri(Fn))}});if(Bn){var wn;(wn=ti.current)===null||wn===void 0||wn.scrollTo(void 0)}return function(){return clearTimeout(Ei)}},[Bn,Xn,Qn.length]);var ri=function(wn){wn!==void 0&&li(wn,{selected:!hr.has(wn)}),gn||Qr(!1)};if(o.useImperativeHandle(Ir,function(){return{onKeyDown:function(wn){var Ht=wn.which,Fn=wn.ctrlKey;switch(Ht){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:{var Gn=0;if(Ht===m.Z.UP?Gn=-1:Ht===m.Z.DOWN?Gn=1:nt()&&Fn&&(Ht===m.Z.N?Gn=1:Ht===m.Z.P&&(Gn=-1)),Gn!==0){var Ci=Oi(En+Gn,Gn);Ri(Ci),Ai(Ci,!0)}break}case m.Z.ENTER:{var ki=Hn[En];ki&&!ki.data.disabled?ri(ki.value):ri(void 0),Bn&&wn.preventDefault();break}case m.Z.ESC:Qr(!1),Bn&&wn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(wn){Ri(wn)}}}),Hn.length===0)return o.createElement("div",{role:"listbox",id:"".concat(tn,"_list"),className:"".concat(en,"-empty"),onMouseDown:ui},Gr);var wi=Object.keys(wr).map(function(Ei){return wr[Ei]}),Ti=function(wn){return wn.label};function Bi(Ei,wn){var Ht=Ei.group;return{role:Ht?"presentation":"option",id:"".concat(tn,"_list_").concat(wn)}}var zi=function(wn){var Ht=Hn[wn];if(!Ht)return null;var Fn=Ht.data||{},Gn=Fn.value,Ci=Ht.group,ki=(0,J.Z)(Fn,!0),Aa=Ti(Ht);return Ht?o.createElement("div",(0,we.Z)({"aria-label":typeof Aa=="string"&&!Ci?Aa:null},ki,{key:wn},Bi(Ht,wn),{"aria-selected":si(Gn)}),Gn):null},oa={role:"listbox",id:"".concat(tn,"_list")};return o.createElement(o.Fragment,null,Or&&o.createElement("div",(0,we.Z)({},oa,{style:{height:0,width:0,overflow:"hidden"}}),zi(En-1),zi(En),zi(En+1)),o.createElement(Tt.Z,{itemKey:"key",ref:ti,data:Hn,height:Ur,itemHeight:on,fullHeight:!1,onMouseDown:ui,onScroll:Sn,virtual:Or,direction:Hr,innerProps:Or?null:oa},function(Ei,wn){var Ht,Fn=Ei.group,Gn=Ei.groupOption,Ci=Ei.data,ki=Ei.label,Aa=Ei.value,Ca=Ci.key;if(Fn){var ta,xa=(ta=Ci.title)!==null&&ta!==void 0?ta:pt(ki)?ki.toString():void 0;return o.createElement("div",{className:p()(en,"".concat(en,"-group")),title:xa},ki!==void 0?ki:Ca)}var La=Ci.disabled,hi=Ci.title,bi=Ci.children,Hi=Ci.style,ha=Ci.className,Na=(0,Y.Z)(Ci,ct),ci=(0,Zr.Z)(Na,wi),pa=si(Aa),va="".concat(en,"-option"),Ha=p()(en,va,ha,(Ht={},(0,se.Z)(Ht,"".concat(va,"-grouped"),Gn),(0,se.Z)(Ht,"".concat(va,"-active"),En===wn&&!La),(0,se.Z)(Ht,"".concat(va,"-disabled"),La),(0,se.Z)(Ht,"".concat(va,"-selected"),pa),Ht)),Is=Ti(Ei),Wa=!vn||typeof vn=="function"||pa,Fa=typeof Is=="number"?Is:Is||Aa,Mi=pt(Fa)?Fa.toString():void 0;return hi!==void 0&&(Mi=hi),o.createElement("div",(0,we.Z)({},(0,J.Z)(ci),Or?{}:Bi(Ei,wn),{"aria-selected":pa,className:Ha,title:Mi,onMouseMove:function(){En===wn||La||Ai(wn)},onClick:function(){La||ri(Aa)},style:Hi}),o.createElement("div",{className:"".concat(va,"-content")},Fa),o.isValidElement(vn)||pa,Wa&&o.createElement(F,{className:"".concat(en,"-option-state"),customizeIcon:vn,customizeIconProps:{isSelected:pa}},pa?"\u2713":null))}))},Oe=o.forwardRef(Zt);Oe.displayName="OptionList";var fn=Oe;function Nt(Ot){var Ct=Ot.mode,Ir=Ot.options,Fr=Ot.children,Tn=Ot.backfill,tn=Ot.allowClear,Bn=Ot.placeholder,gn=Ot.getInputElement,zn=Ot.showSearch,Xn=Ot.onSearch,Qr=Ot.defaultOpen,Gr=Ot.autoFocus,Sn=Ot.labelInValue,On=Ot.value,Qn=Ot.inputValue,Jn=Ot.optionLabelProp,Ni=isMultiple(Ct),li=zn!==void 0?zn:Ni||Ct==="combobox",vn=Ir||convertChildrenToData(Fr);if(warning(Ct!=="tags"||vn.every(function(Hr){return!Hr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ct==="tags"||Ct==="combobox"){var hr=vn.some(function(Hr){return Hr.options?Hr.options.some(function(Ur){return typeof("value"in Ur?Ur.value:Ur.key)=="number"}):typeof("value"in Hr?Hr.value:Hr.key)=="number"});warning(!hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ct!=="combobox"||!Jn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ct==="combobox"||!Tn,"`backfill` only works with `combobox` mode."),warning(Ct==="combobox"||!gn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ct!=="combobox"||!gn||!tn||!Bn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Xn&&!li&&Ct!=="combobox"&&Ct!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qr||Gr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),On!=null){var wr=toArray(On);warning(!Sn||wr.every(function(Hr){return _typeof(Hr)==="object"&&("key"in Hr||"value"in Hr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ni||Array.isArray(On),"`value` should be array when `mode` is `multiple` or `tags`")}if(Fr){var Or=null;toNodeArray(Fr).some(function(Hr){if(!React.isValidElement(Hr)||!Hr.type)return!1;var Ur=Hr,on=Ur.type;if(on.isSelectOption)return!1;if(on.isSelectOptGroup){var en=toNodeArray(Hr.props.children).every(function(Hn){return!React.isValidElement(Hn)||!Hr.type||Hn.type.isSelectOption?!0:(Or=Hn.type,!1)});return!en}return Or=on,!0}),Or&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Or.displayName||Or.name||Or,"`.")),warning(Qn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ln(Ot,Ct){if(Ot){var Ir=function Fr(Tn){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bn=0;Bn<Tn.length;Bn++){var gn=Tn[Bn];if(gn[Ct==null?void 0:Ct.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!tn&&Array.isArray(gn[Ct==null?void 0:Ct.options])&&Fr(gn[Ct==null?void 0:Ct.options],!0))break}};Ir(Ot)}}var Vn=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"],Ki=["inputValue"];function jn(Ot){return!Ot||(0,O.Z)(Ot)!=="object"}var kn=o.forwardRef(function(Ot,Ct){var Ir=Ot.id,Fr=Ot.mode,Tn=Ot.prefixCls,tn=Tn===void 0?"rc-select":Tn,Bn=Ot.backfill,gn=Ot.fieldNames,zn=Ot.inputValue,Xn=Ot.searchValue,Qr=Ot.onSearch,Gr=Ot.autoClearSearchValue,Sn=Gr===void 0?!0:Gr,On=Ot.onSelect,Qn=Ot.onDeselect,Jn=Ot.dropdownMatchSelectWidth,Ni=Jn===void 0?!0:Jn,li=Ot.filterOption,vn=Ot.filterSort,hr=Ot.optionFilterProp,wr=Ot.optionLabelProp,Or=Ot.options,Hr=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,Oi=Ri===void 0?20:Ri,Qi=Ot.value,Tr=Ot.defaultValue,En=Ot.labelInValue,hn=Ot.onChange,Ai=(0,Y.Z)(Ot,yi),si=(0,At.ZP)(Ir),ri=Te(Fr),wi=!!(!Or&&Hr),Ti=o.useMemo(function(){return li===void 0&&Fr==="combobox"?!1:li},[li,Fr]),Bi=o.useMemo(function(){return D(gn,wi)},[JSON.stringify(gn),wi]),zi=(0,I.Z)("",{value:Xn!==void 0?Xn:zn,postState:function(ea){return ea||""}}),oa=(0,ie.Z)(zi,2),Ei=oa[0],wn=oa[1],Ht=br(Or,Hr,Bi,hr,wr),Fn=Ht.valueOptions,Gn=Ht.labelOptions,Ci=Ht.options,ki=o.useCallback(function(Zi){var ea=me(Zi);return ea.map(function(ji){var Ui,ba,ka,Rs,As;if(jn(ji))Ui=ji;else{var Es;ka=ji.key,ba=ji.label,Ui=(Es=ji.value)!==null&&Es!==void 0?Es:ka}var is=Fn.get(Ui);if(is){var So;if(ba===void 0&&(ba=is==null?void 0:is[wr||Bi.label]),ka===void 0&&(ka=(So=is==null?void 0:is.key)!==null&&So!==void 0?So:Ui),Rs=is==null?void 0:is.disabled,As=is==null?void 0:is.title,0)var go}return{label:ba,value:Ui,key:ka,disabled:Rs,title:As}})},[Bi,wr,Fn]),Aa=(0,I.Z)(Tr,{value:Qi}),Ca=(0,ie.Z)(Aa,2),ta=Ca[0],xa=Ca[1],La=o.useMemo(function(){var Zi,ea=ki(ta);return Fr==="combobox"&&he((Zi=ea[0])===null||Zi===void 0?void 0:Zi.value)?[]:ea},[ta,ki,Fr]),hi=dt(La,Fn),bi=(0,ie.Z)(hi,2),Hi=bi[0],ha=bi[1],Na=o.useMemo(function(){if(!Fr&&Hi.length===1){var Zi=Hi[0];if(Zi.value===null&&(Zi.label===null||Zi.label===void 0))return[]}return Hi.map(function(ea){var ji;return(0,ke.Z)((0,ke.Z)({},ea),{},{label:(ji=ea.label)!==null&&ji!==void 0?ji:ea.value})})},[Fr,Hi]),ci=o.useMemo(function(){return new Set(Hi.map(function(Zi){return Zi.value}))},[Hi]);o.useEffect(function(){if(Fr==="combobox"){var Zi,ea=(Zi=Hi[0])===null||Zi===void 0?void 0:Zi.value;wn(oe(ea)?String(ea):"")}},[Hi]);var pa=vr(function(Zi,ea){var ji,Ui=ea!=null?ea:Zi;return ji={},(0,se.Z)(ji,Bi.value,Zi),(0,se.Z)(ji,Bi.label,Ui),ji}),va=o.useMemo(function(){if(Fr!=="tags")return Ci;var Zi=(0,Fe.Z)(Ci),ea=function(Ui){return Fn.has(Ui)};return(0,Fe.Z)(Hi).sort(function(ji,Ui){return ji.value<Ui.value?-1:1}).forEach(function(ji){var Ui=ji.value;ea(Ui)||Zi.push(pa(Ui,ji.label))}),Zi},[pa,Ci,Fn,Hi,Fr]),Ha=Xe(va,Bi,Ei,Ti,hr),Is=o.useMemo(function(){return Fr!=="tags"||!Ei||Ha.some(function(Zi){return Zi[hr||"value"]===Ei})||Ha.some(function(Zi){return Zi[Bi.value]===Ei})?Ha:[pa(Ei)].concat((0,Fe.Z)(Ha))},[pa,hr,Fr,Ha,Ei,Bi]),Wa=o.useMemo(function(){return vn?(0,Fe.Z)(Is).sort(function(Zi,ea){return vn(Zi,ea)}):Is},[Is,vn]),Fa=o.useMemo(function(){return fe(Wa,{fieldNames:Bi,childrenAsData:wi})},[Wa,Bi,wi]),Mi=function(ea){var ji=ki(ea);if(xa(ji),hn&&(ji.length!==Hi.length||ji.some(function(ka,Rs){var As;return((As=Hi[Rs])===null||As===void 0?void 0:As.value)!==(ka==null?void 0:ka.value)}))){var Ui=En?ji:ji.map(function(ka){return ka.value}),ba=ji.map(function(ka){return W(ha(ka.value))});hn(ri?Ui:Ui[0],ri?ba:ba[0])}},la=o.useState(null),ms=(0,ie.Z)(la,2),ss=ms[0],ns=ms[1],Wi=o.useState(0),gs=(0,ie.Z)(Wi,2),ia=gs[0],co=gs[1],Qs=Ur!==void 0?Ur:Fr!=="combobox",_o=o.useCallback(function(Zi,ea){var ji=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ui=ji.source,ba=Ui===void 0?"keyboard":Ui;co(ea),Bn&&Fr==="combobox"&&Zi!==null&&ba==="keyboard"&&ns(String(Zi))},[Bn,Fr]),hs=function(ea,ji,Ui){var ba=function(){var Os,Li=ha(ea);return[En?{label:Li==null?void 0:Li[Bi.label],value:ea,key:(Os=Li==null?void 0:Li.key)!==null&&Os!==void 0?Os:ea}:ea,W(Li)]};if(ji&&On){var ka=ba(),Rs=(0,ie.Z)(ka,2),As=Rs[0],Es=Rs[1];On(As,Es)}else if(!ji&&Qn&&Ui!=="clear"){var is=ba(),So=(0,ie.Z)(is,2),go=So[0],eo=So[1];Qn(go,eo)}},Bo=vr(function(Zi,ea){var ji,Ui=ri?ea.selected:!0;Ui?ji=ri?[].concat((0,Fe.Z)(Hi),[Zi]):[Zi]:ji=Hi.filter(function(ba){return ba.value!==Zi}),Mi(ji),hs(Zi,Ui),Fr==="combobox"?ns(""):(!Te||Sn)&&(wn(""),ns(""))}),os=function(ea,ji){Mi(ea);var Ui=ji.type,ba=ji.values;(Ui==="remove"||Ui==="clear")&&ba.forEach(function(ka){hs(ka.value,!1,Ui)})},Yn=function(ea,ji){if(wn(ea),ns(null),ji.source==="submit"){var Ui=(ea||"").trim();if(Ui){var ba=Array.from(new Set([].concat((0,Fe.Z)(ci),[Ui])));Mi(ba),hs(Ui,!0),wn("")}return}ji.source!=="blur"&&(Fr==="combobox"&&Mi(ea),Qr==null||Qr(ea))},Da=function(ea){var ji=ea;Fr!=="tags"&&(ji=ea.map(function(ba){var ka=Gn.get(ba);return ka==null?void 0:ka.value}).filter(function(ba){return ba!==void 0}));var Ui=Array.from(new Set([].concat((0,Fe.Z)(ci),(0,Fe.Z)(ji))));Mi(Ui),Ui.forEach(function(ba){hs(ba,!0)})},io=o.useMemo(function(){var Zi=en!==!1&&Ni!==!1;return(0,ke.Z)((0,ke.Z)({},Ht),{},{flattenOptions:Fa,onActiveValue:_o,defaultActiveFirstOption:Qs,onSelect:Bo,menuItemSelectedIcon:on,rawValues:ci,fieldNames:Bi,virtual:Zi,direction:Hn,listHeight:ui,listItemHeight:Oi,childrenAsData:wi})},[Ht,Fa,_o,Qs,Bo,on,ci,Bi,en,Ni,ui,Oi,wi]);return o.createElement(Gt.Provider,{value:io},o.createElement(Ge,(0,we.Z)({},Ai,{id:si,prefixCls:tn,ref:Ct,omitDomProps:Ki,mode:Fr,displayValues:Na,onDisplayValuesChange:os,direction:Hn,searchValue:Ei,onSearch:Yn,autoClearSearchValue:Sn,onSearchSplit:Da,dropdownMatchSelectWidth:Ni,OptionList:fn,emptyOptions:!Fa.length,activeValue:ss,activeDescendantId:"".concat(si,"_list_").concat(ia)})))}),qt=kn;qt.Option=Me,qt.OptGroup=ue;var zr=qt,Jr=zr},9296:function(bn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{ResizableTextArea:function(){return Le},default:function(){return he}});var we=g(92413),Fe=g(33708),se=g(400),ke=g(39559),ie=g(33606),Y=g(37061),O=g(26407),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,N=ve.getAttribute("id")||ve.getAttribute("data-reactid")||ve.getAttribute("name");if(_&&H[N])return H[N];var X=window.getComputedStyle(ve),pe=X.getPropertyValue("box-sizing")||X.getPropertyValue("-moz-box-sizing")||X.getPropertyValue("-webkit-box-sizing"),qe=parseFloat(X.getPropertyValue("padding-bottom"))+parseFloat(X.getPropertyValue("padding-top")),at=parseFloat(X.getPropertyValue("border-bottom-width"))+parseFloat(X.getPropertyValue("border-top-width")),rt=F.map(function(lr){return"".concat(lr,":").concat(X.getPropertyValue(lr))}).join(";"),Rt={sizingStyle:rt,paddingSize:qe,borderSize:at,boxSizing:pe};return _&&N&&(H[N]=Rt),Rt}function B(ve){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=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,_),qe=pe.paddingSize,at=pe.borderSize,rt=pe.boxSizing,Rt=pe.sizingStyle;V.setAttribute("style","".concat(Rt,";").concat($)),V.value=ve.value||ve.placeholder||"";var lr=void 0,Jt=void 0,Ze,Er=V.scrollHeight;if(rt==="border-box"?Er+=at:rt==="content-box"&&(Er-=qe),N!==null||X!==null){V.value=" ";var Cr=V.scrollHeight-qe;N!==null&&(lr=Cr*N,rt==="border-box"&&(lr=lr+qe+at),Er=Math.max(lr,Er)),X!==null&&(Jt=Cr*X,rt==="border-box"&&(Jt=Jt+qe+at),Ze=Er>Jt?"":"hidden",Er=Math.min(Jt,Er))}var Kr={height:Er,overflowY:Ze,resize:"none"};return lr&&(Kr.minHeight=lr),Jt&&(Kr.maxHeight=Jt),Kr}var z=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,J=1,be=2,Ce=a.forwardRef(function(ve,_){var N=ve,X=N.prefixCls,pe=N.onPressEnter,qe=N.defaultValue,at=N.value,rt=N.autoSize,Rt=N.onResize,lr=N.className,Jt=N.style,Ze=N.disabled,Er=N.onChange,Cr=N.onInternalAutoSize,Kr=(0,Y.Z)(N,z),_r=(0,p.Z)(qe,{value:at,postState:function(ue){return ue!=null?ue:""}}),Ue=(0,ie.Z)(_r,2),St=Ue[0],G=Ue[1],v=function(ue){G(ue.target.value),Er==null||Er(ue)},f=a.useRef();a.useImperativeHandle(_,function(){return{textArea:f.current}});var D=a.useMemo(function(){return rt&&(0,ke.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),fe=(0,ie.Z)(D,2),W=fe[0],P=fe[1],te=!!rt,Ie=function(){try{if(document.activeElement===f.current){var ue=f.current,rr=ue.selectionStart,Me=ue.selectionEnd,ot=ue.scrollTop;f.current.setSelectionRange(rr,Me),f.current.scrollTop=ot}}catch(Zr){}},Te=a.useState(be),Se=(0,ie.Z)(Te,2),Ge=Se[0],dt=Se[1],Ke=a.useState(),Xe=(0,ie.Z)(Ke,2),At=Xe[0],We=Xe[1],$e=function(){dt(le)};(0,m.Z)(function(){te&&$e()},[at,W,P,te]),(0,m.Z)(function(){if(Ge===le)dt(J);else if(Ge===J){var re=B(f.current,!1,W,P);dt(be),We(re)}else Ie()},[Ge]);var Bt=a.useRef(),Kt=function(){S.Z.cancel(Bt.current)},Mt=function(ue){Ge===be&&(Rt==null||Rt(ue),rt&&(Kt(),Bt.current=(0,S.Z)(function(){$e()})))};a.useEffect(function(){return Kt},[]);var br=te?At:null,vr=(0,Fe.Z)((0,Fe.Z)({},Jt),br);return(Ge===le||Ge===J)&&(vr.overflowY="hidden",vr.overflowX="hidden"),a.createElement(A.Z,{onResize:Mt,disabled:!(rt||Rt)},a.createElement("textarea",(0,we.Z)({},Kr,{ref:f,style:vr,className:n()(X,lr,(0,se.Z)({},"".concat(X,"-disabled"),Ze)),disabled:Ze,value:St,onChange:v})))}),Le=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,_,N,X){var pe=N;return ve?pe=me(N,X):(0,O.Z)(_||"").length<N.length&&(0,O.Z)(N||"").length>X&&(pe=_),pe}var Ee=a.forwardRef(function(ve,_){var N,X=ve.defaultValue,pe=ve.value,qe=ve.onFocus,at=ve.onBlur,rt=ve.onChange,Rt=ve.allowClear,lr=ve.maxLength,Jt=ve.onCompositionStart,Ze=ve.onCompositionEnd,Er=ve.suffix,Cr=ve.prefixCls,Kr=Cr===void 0?"rc-textarea":Cr,_r=ve.classes,Ue=ve.showCount,St=ve.className,G=ve.style,v=ve.disabled,f=ve.hidden,D=ve.classNames,fe=ve.styles,W=ve.onResize,P=(0,Y.Z)(ve,ae),te=(0,p.Z)(X,{value:pe,defaultValue:X}),Ie=(0,ie.Z)(te,2),Te=Ie[0],Se=Ie[1],Ge=(0,a.useRef)(null),dt=a.useState(!1),Ke=(0,ie.Z)(dt,2),Xe=Ke[0],At=Ke[1],We=a.useState(!1),$e=(0,ie.Z)(We,2),Bt=$e[0],Kt=$e[1],Mt=a.useRef(),br=a.useRef(0),vr=a.useState(null),re=(0,ie.Z)(vr,2),ue=re[0],rr=re[1],Me=function(){var jn;(jn=Ge.current)===null||jn===void 0||jn.textArea.focus()};(0,a.useImperativeHandle)(_,function(){return{resizableTextArea:Ge.current,focus:Me,blur:function(){var jn;(jn=Ge.current)===null||jn===void 0||jn.textArea.blur()}}}),(0,a.useEffect)(function(){At(function(Ki){return!v&&Ki})},[v]);var ot=Number(lr)>0,Zr=function(jn){Kt(!0),Mt.current=Te,br.current=jn.currentTarget.selectionStart,Jt==null||Jt(jn)},Tt=function(jn){Kt(!1);var kn=jn.currentTarget.value;if(ot){var qt,zr=br.current>=lr+1||br.current===((qt=Mt.current)===null||qt===void 0?void 0:qt.length);kn=T(zr,Mt.current,kn,lr)}kn!==Te&&(Se(kn),(0,L.rJ)(jn.currentTarget,jn,rt,kn)),Ze==null||Ze(jn)},Yt=function(jn){var kn=jn.target.value;if(!Bt&&ot){var qt=jn.target.selectionStart>=lr+1||jn.target.selectionStart===kn.length||!jn.target.selectionStart;kn=T(qt,Te,kn,lr)}Se(kn),(0,L.rJ)(jn.currentTarget,jn,rt,kn)},Gt=function(jn){var kn=P.onPressEnter,qt=P.onKeyDown;jn.key==="Enter"&&kn&&kn(jn),qt==null||qt(jn)},nt=function(jn){At(!0),qe==null||qe(jn)},ct=function(jn){At(!1),at==null||at(jn)},pt=function(jn){var kn;Se(""),Me(),(0,L.rJ)((kn=Ge.current)===null||kn===void 0?void 0:kn.textArea,jn,rt)},Zt=(0,L.D7)(Te);!Bt&&ot&&pe==null&&(Zt=me(Zt,lr));var Oe=Er,fn;if(Ue){var Nt=(0,O.Z)(Zt).length;(0,ke.Z)(Ue)==="object"?fn=Ue.formatter({value:Zt,count:Nt,maxLength:lr}):fn="".concat(Nt).concat(ot?" / ".concat(lr):""),Oe=a.createElement(a.Fragment,null,Oe,a.createElement("span",{className:n()("".concat(Kr,"-data-count"),D==null?void 0:D.count),style:fe==null?void 0:fe.count},fn))}var Ln=function(jn){var kn;W==null||W(jn),(kn=Ge.current)!==null&&kn!==void 0&&kn.textArea.style.height&&rr(!0)},Vn=!P.autoSize&&!Ue&&!Rt,yi=a.createElement(o.BaseInput,{value:Zt,allowClear:Rt,handleReset:pt,suffix:Oe,prefixCls:Kr,classes:{affixWrapper:n()(_r==null?void 0:_r.affixWrapper,(N={},(0,se.Z)(N,"".concat(Kr,"-show-count"),Ue),(0,se.Z)(N,"".concat(Kr,"-textarea-allow-clear"),Rt),N))},disabled:v,focused:Xe,className:St,style:(0,Fe.Z)((0,Fe.Z)({},G),ue&&!Vn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof fn=="string"?fn:void 0}},hidden:f,inputElement:a.createElement(Le,(0,we.Z)({},P,{onKeyDown:Gt,onChange:Yt,onFocus:nt,onBlur:ct,onCompositionStart:Zr,onCompositionEnd:Tt,className:D==null?void 0:D.textarea,style:(0,Fe.Z)((0,Fe.Z)({},fe==null?void 0:fe.textarea),{},{resize:G==null?void 0:G.resize}),disabled:v,prefixCls:Kr,onResize:Ln,ref:Ge}))});return yi}),oe=Ee,he=oe},55477:function(bn,Wt,g){"use strict";g.d(Wt,{G:function(){return a},Z:function(){return $}});var we=g(92413),Fe=g(33708),se=g(37061),ke=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,z=F.className,le=F.style;return ie.createElement("div",{className:p()("".concat(V,"-content"),z),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,z=B===void 0?["hover"]:B,le=H.mouseEnterDelay,J=le===void 0?0:le,be=H.mouseLeaveDelay,Ce=be===void 0?.1:be,Le=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,N=H.placement,X=N===void 0?"right":N,pe=H.align,qe=pe===void 0?{}:pe,at=H.destroyTooltipOnHide,rt=at===void 0?!1:at,Rt=H.defaultVisible,lr=H.getTooltipContainer,Jt=H.overlayInnerStyle,Ze=H.arrowContent,Er=H.overlay,Cr=H.id,Kr=H.showArrow,_r=Kr===void 0?!0:Kr,Ue=(0,se.Z)(H,A),St=(0,ie.useRef)(null);(0,ie.useImperativeHandle)(V,function(){return St.current});var G=(0,Fe.Z)({},Ue);"visible"in H&&(G.popupVisible=H.visible);var v=function(){return ie.createElement(a,{key:"content",prefixCls:me,id:Cr,overlayInnerStyle:Jt},Er)};return ie.createElement(ke.Z,(0,we.Z)({popupClassName:ee,prefixCls:me,popup:v,action:z,builtinPlacements:n,popupPlacement:X,ref:St,popupAlign:qe,getPopupContainer:lr,onPopupVisibleChange:Ee,afterPopupVisibleChange:oe,popupTransitionName:he,popupAnimation:ve,popupMotion:_,defaultPopupVisible:Rt,autoDestroy:rt,mouseLeaveDelay:Ce,popupStyle:Le,mouseEnterDelay:J,arrow:_r},G),T)},S=(0,ie.forwardRef)(m),$=S},39417:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return J}});var we=g(92413),Fe=g(400),se=g(37061),ke=g(33708),ie=g(6909),Y=g(4771),O=g(25314),I=g(9427),n=g(25440),o=g(92310),L=g.n(o),p=g(26112),a=g(59301),A=g(39378),m=function(Ce){for(var Le=Ce.prefixCls,ae=Ce.level,me=Ce.isStart,T=Ce.isEnd,Ee="".concat(Le,"-indent-unit"),oe=[],he=0;he<ae;he+=1){var ve;oe.push(a.createElement("span",{key:he,className:L()(Ee,(ve={},(0,Fe.Z)(ve,"".concat(Ee,"-start"),me[he]),(0,Fe.Z)(ve,"".concat(Ee,"-end"),T[he]),ve))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-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="---",z=function(be){(0,I.Z)(Le,be);var Ce=(0,n.Z)(Le);function Le(){var ae;(0,ie.Z)(this,Le);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,N=ae.props.context.onNodeCheck;if(!(!ae.isCheckable()||ve)){var X=!_;N(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,N=ae.hasChildren();return he===!1?!1:he||!_&&!N||_&&ve&&!N},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,N=ae.props.context,X=N.loadData,pe=N.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,ke.Z)((0,ke.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)),N=ae.renderSwitcherIconDom(!1);return N!==!1?a.createElement("span",{onClick:ae.onExpand,className:_},N):null},ae.renderCheckbox=function(){var oe=ae.props,he=oe.checked,ve=oe.halfChecked,_=oe.disableCheckbox,N=ae.props.context.prefixCls,X=ae.isDisabled(),pe=ae.isCheckable();if(!pe)return null;var qe=typeof pe!="boolean"?pe:null;return a.createElement("span",{className:L()("".concat(N,"-checkbox"),he&&"".concat(N,"-checkbox-checked"),!he&&ve&&"".concat(N,"-checkbox-indeterminate"),(X||_)&&"".concat(N,"-checkbox-disabled")),onClick:ae.onCheck},qe)},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,N=he.selected,X=he.icon,pe=he.loading,qe=he.data,at=ae.props.context,rt=at.prefixCls,Rt=at.showIcon,lr=at.icon,Jt=at.loadData,Ze=at.titleRender,Er=ae.isDisabled(),Cr="".concat(rt,"-node-content-wrapper"),Kr;if(Rt){var _r=X||lr;Kr=_r?a.createElement("span",{className:L()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof _r=="function"?_r(ae.props):_r):ae.renderIcon()}else Jt&&pe&&(Kr=ae.renderIcon());var Ue;typeof _=="function"?Ue=_(qe):Ze?Ue=Ze(qe):Ue=_;var St=a.createElement("span",{className:"".concat(rt,"-title")},Ue);return a.createElement("span",{ref:ae.setSelectHandle,title:typeof _=="string"?_:"",className:L()("".concat(Cr),"".concat(Cr,"-").concat(ae.getNodeState()||"normal"),!Er&&(N||oe)&&"".concat(rt,"-node-selected")),onMouseEnter:ae.onMouseEnter,onMouseLeave:ae.onMouseLeave,onContextMenu:ae.onContextMenu,onClick:ae.onSelectorClick,onDoubleClick:ae.onSelectorDoubleClick},Kr,St,ae.renderDropIndicator())},ae.renderDropIndicator=function(){var oe=ae.props,he=oe.disabled,ve=oe.eventKey,_=ae.props.context,N=_.draggable,X=_.dropLevelOffset,pe=_.dropPosition,qe=_.prefixCls,at=_.indent,rt=_.dropIndicatorRender,Rt=_.dragOverNodeKey,lr=_.direction,Jt=!!N,Ze=!he&&Jt&&Rt===ve,Er=at!=null?at:ae.cacheIndent;return ae.cacheIndent=at,Ze?rt({dropPosition:pe,dropLevelOffset:X,indent:Er,prefixCls:qe,direction:lr}):null},ae}return(0,Y.Z)(Le,[{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,N=T.dragOverGapBottom,X=T.isLeaf,pe=T.isStart,qe=T.isEnd,at=T.expanded,rt=T.selected,Rt=T.checked,lr=T.halfChecked,Jt=T.loading,Ze=T.domRef,Er=T.active,Cr=T.data,Kr=T.onMouseMove,_r=T.selectable,Ue=(0,se.Z)(T,H),St=this.props.context,G=St.prefixCls,v=St.filterTreeNode,f=St.keyEntities,D=St.dropContainerKey,fe=St.dropTargetKey,W=St.draggingNodeKey,P=this.isDisabled(),te=(0,p.Z)(Ue,{aria:!0,data:!0}),Ie=(0,$.Z)(f,Ee)||{},Te=Ie.level,Se=qe[qe.length-1],Ge=this.isDraggable(),dt=!P&&Ge,Ke=W===Ee,Xe=_r!==void 0?{"aria-selected":!!_r}:void 0;return a.createElement("div",(0,we.Z)({ref:Ze,className:L()(oe,"".concat(G,"-treenode"),(me={},(0,Fe.Z)(me,"".concat(G,"-treenode-disabled"),P),(0,Fe.Z)(me,"".concat(G,"-treenode-switcher-").concat(at?"open":"close"),!X),(0,Fe.Z)(me,"".concat(G,"-treenode-checkbox-checked"),Rt),(0,Fe.Z)(me,"".concat(G,"-treenode-checkbox-indeterminate"),lr),(0,Fe.Z)(me,"".concat(G,"-treenode-selected"),rt),(0,Fe.Z)(me,"".concat(G,"-treenode-loading"),Jt),(0,Fe.Z)(me,"".concat(G,"-treenode-active"),Er),(0,Fe.Z)(me,"".concat(G,"-treenode-leaf-last"),Se),(0,Fe.Z)(me,"".concat(G,"-treenode-draggable"),Ge),(0,Fe.Z)(me,"dragging",Ke),(0,Fe.Z)(me,"drop-target",fe===Ee),(0,Fe.Z)(me,"drop-container",D===Ee),(0,Fe.Z)(me,"drag-over",!P&&ve),(0,Fe.Z)(me,"drag-over-gap-top",!P&&_),(0,Fe.Z)(me,"drag-over-gap-bottom",!P&&N),(0,Fe.Z)(me,"filter-node",v&&v((0,F.F)(this.props))),me)),style:he,draggable:dt,"aria-grabbed":Ke,onDragStart:dt?this.onDragStart:void 0,onDragEnter:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?this.onDragEnd:void 0,onMouseMove:Kr},Xe,te),a.createElement(S,{prefixCls:G,level:Te,isStart:pe,isEnd:qe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Le}(a.Component),le=function(Ce){return a.createElement(A.k.Consumer,null,function(Le){return a.createElement(z,(0,we.Z)({},Ce,{context:Le}))})};le.displayName="TreeNode",le.isTreeNode=1;var J=le},39378:function(bn,Wt,g){"use strict";g.d(Wt,{k:function(){return Fe}});var we=g(59301),Fe=we.createContext(null)},23130:function(bn,Wt,g){"use strict";g.d(Wt,{O:function(){return J.Z},Z:function(){return St}});var we=g(92413),Fe=g(400),se=g(39559),ke=g(33708),ie=g(26407),Y=g(6909),O=g(4771),I=g(25314),n=g(9427),o=g(25440),L=g(92310),p=g.n(L),a=g(10228),A=g(26112),m=g(48736),S=g(59301),$=g(39378);function F(G){var v=G.dropPosition,f=G.dropLevelOffset,D=G.indent,fe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(v){case-1:fe.top=0,fe.left=-f*D;break;case 1:fe.bottom=0,fe.left=-f*D;break;case 0:fe.bottom=0,fe.left=D;break}return S.createElement("div",{style:fe})}function H(G){if(G==null)throw new TypeError("Cannot destructure "+G)}var V=g(33606),ee=g(37061),B=g(34280),z=g(57149),le=g(77900),J=g(39417);function be(G,v){var f=S.useState(!1),D=(0,V.Z)(f,2),fe=D[0],W=D[1];S.useLayoutEffect(function(){if(fe)return G(),function(){v()}},[fe]),S.useLayoutEffect(function(){return W(!0),function(){W(!1)}},[])}var Ce=g(71430),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ae=function(v,f){var D=v.className,fe=v.style,W=v.motion,P=v.motionNodes,te=v.motionType,Ie=v.onMotionStart,Te=v.onMotionEnd,Se=v.active,Ge=v.treeNodeRequiredProps,dt=(0,ee.Z)(v,Le),Ke=S.useState(!0),Xe=(0,V.Z)(Ke,2),At=Xe[0],We=Xe[1],$e=S.useContext($.k),Bt=$e.prefixCls,Kt=P&&te!=="hide";(0,B.Z)(function(){P&&Kt!==At&&We(Kt)},[P]);var Mt=function(){P&&Ie()},br=S.useRef(!1),vr=function(){P&&!br.current&&(br.current=!0,Te())};be(Mt,vr);var re=function(rr){Kt===rr&&vr()};return P?S.createElement(le.default,(0,we.Z)({ref:f,visible:At},W,{motionAppear:te==="show",onVisibleChanged:re}),function(ue,rr){var Me=ue.className,ot=ue.style;return S.createElement("div",{ref:rr,className:p()("".concat(Bt,"-treenode-motion"),Me),style:ot},P.map(function(Zr){var Tt=(0,we.Z)({},(H(Zr.data),Zr.data)),Yt=Zr.title,Gt=Zr.key,nt=Zr.isStart,ct=Zr.isEnd;delete Tt.children;var pt=(0,Ce.H8)(Gt,Ge);return S.createElement(J.Z,(0,we.Z)({},Tt,pt,{title:Yt,active:Se,data:Zr.data,key:Gt,isStart:nt,isEnd:ct}))}))}):S.createElement(J.Z,(0,we.Z)({domRef:f,className:D,style:fe},dt,{active:Se}))};ae.displayName="MotionTreeNode";var me=S.forwardRef(ae),T=me;function Ee(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=G.length,D=v.length;if(Math.abs(f-D)!==1)return{add:!1,key:null};function fe(W,P){var te=new Map;W.forEach(function(Te){te.set(Te,!0)});var Ie=P.filter(function(Te){return!te.has(Te)});return Ie.length===1?Ie[0]:null}return f<D?{add:!0,key:fe(G,v)}:{add:!1,key:fe(v,G)}}function oe(G,v,f){var D=G.findIndex(function(te){return te.key===f}),fe=G[D+1],W=v.findIndex(function(te){return te.key===f});if(fe){var P=v.findIndex(function(te){return te.key===fe.key});return v.slice(W+1,P)}return v.slice(W+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(){},N="RC_TREE_MOTION_".concat(Math.random()),X={key:N},pe={key:N,level:0,index:0,pos:"0",node:X,nodes:[X]},qe={parent:null,children:[],pos:pe.pos,data:X,title:null,key:N,isStart:[],isEnd:[]};function at(G,v,f,D){return v===!1||!f?G:G.slice(0,Math.ceil(f/D)+1)}function rt(G){var v=G.key,f=G.pos;return(0,Ce.km)(v,f)}function Rt(G){for(var v=String(G.data.key),f=G;f.parent;)f=f.parent,v="".concat(f.data.key," > ").concat(v);return v}var lr=S.forwardRef(function(G,v){var f=G.prefixCls,D=G.data,fe=G.selectable,W=G.checkable,P=G.expandedKeys,te=G.selectedKeys,Ie=G.checkedKeys,Te=G.loadedKeys,Se=G.loadingKeys,Ge=G.halfCheckedKeys,dt=G.keyEntities,Ke=G.disabled,Xe=G.dragging,At=G.dragOverNodeKey,We=G.dropPosition,$e=G.motion,Bt=G.height,Kt=G.itemHeight,Mt=G.virtual,br=G.focusable,vr=G.activeItem,re=G.focused,ue=G.tabIndex,rr=G.onKeyDown,Me=G.onFocus,ot=G.onBlur,Zr=G.onActiveChange,Tt=G.onListChangeStart,Yt=G.onListChangeEnd,Gt=(0,ee.Z)(G,he),nt=S.useRef(null),ct=S.useRef(null);S.useImperativeHandle(v,function(){return{scrollTo:function(Gr){nt.current.scrollTo(Gr)},getIndentWidth:function(){return ct.current.offsetWidth}}});var pt=S.useState(P),Zt=(0,V.Z)(pt,2),Oe=Zt[0],fn=Zt[1],Nt=S.useState(D),Ln=(0,V.Z)(Nt,2),Vn=Ln[0],yi=Ln[1],Ki=S.useState(D),jn=(0,V.Z)(Ki,2),kn=jn[0],qt=jn[1],zr=S.useState([]),Jr=(0,V.Z)(zr,2),Ot=Jr[0],Ct=Jr[1],Ir=S.useState(null),Fr=(0,V.Z)(Ir,2),Tn=Fr[0],tn=Fr[1],Bn=S.useRef(D);Bn.current=D;function gn(){var Qr=Bn.current;yi(Qr),qt(Qr),Ct([]),tn(null),Yt()}(0,B.Z)(function(){fn(P);var Qr=Ee(Oe,P);if(Qr.key!==null)if(Qr.add){var Gr=Vn.findIndex(function(li){var vn=li.key;return vn===Qr.key}),Sn=at(oe(Vn,D,Qr.key),Mt,Bt,Kt),On=Vn.slice();On.splice(Gr+1,0,qe),qt(On),Ct(Sn),tn("show")}else{var Qn=D.findIndex(function(li){var vn=li.key;return vn===Qr.key}),Jn=at(oe(D,Vn,Qr.key),Mt,Bt,Kt),Ni=D.slice();Ni.splice(Qn+1,0,qe),qt(Ni),Ct(Jn),tn("hide")}else Vn!==D&&(yi(D),qt(D))},[P,D]),S.useEffect(function(){Xe||gn()},[Xe]);var zn=$e?kn:D,Xn={expandedKeys:P,selectedKeys:te,loadedKeys:Te,loadingKeys:Se,checkedKeys:Ie,halfCheckedKeys:Ge,dragOverNodeKey:At,dropPosition:We,keyEntities:dt};return S.createElement(S.Fragment,null,re&&vr&&S.createElement("span",{style:ve,"aria-live":"assertive"},Rt(vr)),S.createElement("div",null,S.createElement("input",{style:ve,disabled:br===!1||Ke,tabIndex:br!==!1?ue:null,onKeyDown:rr,onFocus:Me,onBlur:ot,value:"",onChange:_,"aria-label":"for screen reader"})),S.createElement("div",{className:"".concat(f,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},S.createElement("div",{className:"".concat(f,"-indent")},S.createElement("div",{ref:ct,className:"".concat(f,"-indent-unit")}))),S.createElement(z.Z,(0,we.Z)({},Gt,{data:zn,itemKey:rt,height:Bt,fullHeight:!1,virtual:Mt,itemHeight:Kt,prefixCls:"".concat(f,"-list"),ref:nt,onVisibleChange:function(Gr,Sn){var On=new Set(Gr),Qn=Sn.filter(function(Jn){return!On.has(Jn)});Qn.some(function(Jn){return rt(Jn)===N})&&gn()}}),function(Qr){var Gr=Qr.pos,Sn=(0,we.Z)({},(H(Qr.data),Qr.data)),On=Qr.title,Qn=Qr.key,Jn=Qr.isStart,Ni=Qr.isEnd,li=(0,Ce.km)(Qn,Gr);delete Sn.key,delete Sn.children;var vn=(0,Ce.H8)(li,Xn);return S.createElement(T,(0,we.Z)({},Sn,vn,{title:On,active:!!vr&&Qn===vr.key,pos:Gr,data:Qr.data,isStart:Jn,isEnd:Ni,motion:$e,motionNodes:Qn===N?Ot:null,motionType:Tn,onMotionStart:Tt,onMotionEnd:gn,treeNodeRequiredProps:Xn,onMouseMove:function(){Zr(null)}}))}))});lr.displayName="NodeList";var Jt=lr,Ze=g(35654),Er=g(90782),Cr=g(67841),Kr=10,_r=function(G){(0,n.Z)(f,G);var v=(0,o.Z)(f);function f(){var D;(0,Y.Z)(this,f);for(var fe=arguments.length,W=new Array(fe),P=0;P<fe;P++)W[P]=arguments[P];return D=v.call.apply(v,[this].concat(W)),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,Ie){var Te=D.state,Se=Te.expandedKeys,Ge=Te.keyEntities,dt=D.props.onDragStart,Ke=Ie.props.eventKey;D.dragNode=Ie,D.dragStartMousePosition={x:te.clientX,y:te.clientY};var Xe=(0,Ze._5)(Se,Ke);D.setState({draggingNodeKey:Ke,dragChildrenKeys:(0,Ze.wA)(Ke,Ge),indent:D.listRef.current.getIndentWidth()}),D.setExpandedKeys(Xe),window.addEventListener("dragend",D.onWindowDragEnd),dt==null||dt({event:te,node:(0,Ce.F)(Ie.props)})},D.onNodeDragEnter=function(te,Ie){var Te=D.state,Se=Te.expandedKeys,Ge=Te.keyEntities,dt=Te.dragChildrenKeys,Ke=Te.flattenNodes,Xe=Te.indent,At=D.props,We=At.onDragEnter,$e=At.onExpand,Bt=At.allowDrop,Kt=At.direction,Mt=Ie.props,br=Mt.pos,vr=Mt.eventKey,re=(0,I.Z)(D),ue=re.dragNode;if(D.currentMouseOverDroppableNodeKey!==vr&&(D.currentMouseOverDroppableNodeKey=vr),!ue){D.resetDragState();return}var rr=(0,Ze.OM)(te,ue,Ie,Xe,D.dragStartMousePosition,Bt,Ke,Ge,Se,Kt),Me=rr.dropPosition,ot=rr.dropLevelOffset,Zr=rr.dropTargetKey,Tt=rr.dropContainerKey,Yt=rr.dropTargetPos,Gt=rr.dropAllowed,nt=rr.dragOverNodeKey;if(dt.indexOf(Zr)!==-1||!Gt){D.resetDragState();return}if(D.delayedDragEnterLogic||(D.delayedDragEnterLogic={}),Object.keys(D.delayedDragEnterLogic).forEach(function(ct){clearTimeout(D.delayedDragEnterLogic[ct])}),ue.props.eventKey!==Ie.props.eventKey&&(te.persist(),D.delayedDragEnterLogic[br]=window.setTimeout(function(){if(D.state.draggingNodeKey!==null){var ct=(0,ie.Z)(Se),pt=(0,Cr.Z)(Ge,Ie.props.eventKey);pt&&(pt.children||[]).length&&(ct=(0,Ze.L0)(Se,Ie.props.eventKey)),"expandedKeys"in D.props||D.setExpandedKeys(ct),$e==null||$e(ct,{node:(0,Ce.F)(Ie.props),expanded:!0,nativeEvent:te.nativeEvent})}},800)),ue.props.eventKey===Zr&&ot===0){D.resetDragState();return}D.setState({dragOverNodeKey:nt,dropPosition:Me,dropLevelOffset:ot,dropTargetKey:Zr,dropContainerKey:Tt,dropTargetPos:Yt,dropAllowed:Gt}),We==null||We({event:te,node:(0,Ce.F)(Ie.props),expandedKeys:Se})},D.onNodeDragOver=function(te,Ie){var Te=D.state,Se=Te.dragChildrenKeys,Ge=Te.flattenNodes,dt=Te.keyEntities,Ke=Te.expandedKeys,Xe=Te.indent,At=D.props,We=At.onDragOver,$e=At.allowDrop,Bt=At.direction,Kt=(0,I.Z)(D),Mt=Kt.dragNode;if(Mt){var br=(0,Ze.OM)(te,Mt,Ie,Xe,D.dragStartMousePosition,$e,Ge,dt,Ke,Bt),vr=br.dropPosition,re=br.dropLevelOffset,ue=br.dropTargetKey,rr=br.dropContainerKey,Me=br.dropAllowed,ot=br.dropTargetPos,Zr=br.dragOverNodeKey;Se.indexOf(ue)!==-1||!Me||(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():vr===D.state.dropPosition&&re===D.state.dropLevelOffset&&ue===D.state.dropTargetKey&&rr===D.state.dropContainerKey&&ot===D.state.dropTargetPos&&Me===D.state.dropAllowed&&Zr===D.state.dragOverNodeKey||D.setState({dropPosition:vr,dropLevelOffset:re,dropTargetKey:ue,dropContainerKey:rr,dropTargetPos:ot,dropAllowed:Me,dragOverNodeKey:Zr}),We==null||We({event:te,node:(0,Ce.F)(Ie.props)}))}},D.onNodeDragLeave=function(te,Ie){D.currentMouseOverDroppableNodeKey===Ie.props.eventKey&&!te.currentTarget.contains(te.relatedTarget)&&(D.resetDragState(),D.currentMouseOverDroppableNodeKey=null);var Te=D.props.onDragLeave;Te==null||Te({event:te,node:(0,Ce.F)(Ie.props)})},D.onWindowDragEnd=function(te){D.onNodeDragEnd(te,null,!0),window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDragEnd=function(te,Ie){var Te=D.props.onDragEnd;D.setState({dragOverNodeKey:null}),D.cleanDragState(),Te==null||Te({event:te,node:(0,Ce.F)(Ie.props)}),D.dragNode=null,window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDrop=function(te,Ie){var Te,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ge=D.state,dt=Ge.dragChildrenKeys,Ke=Ge.dropPosition,Xe=Ge.dropTargetKey,At=Ge.dropTargetPos,We=Ge.dropAllowed;if(We){var $e=D.props.onDrop;if(D.setState({dragOverNodeKey:null}),D.cleanDragState(),Xe!==null){var Bt=(0,ke.Z)((0,ke.Z)({},(0,Ce.H8)(Xe,D.getTreeNodeRequiredProps())),{},{active:((Te=D.getActiveItem())===null||Te===void 0?void 0:Te.key)===Xe,data:(0,Cr.Z)(D.state.keyEntities,Xe).node}),Kt=dt.indexOf(Xe)!==-1;(0,m.ZP)(!Kt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mt=(0,Ze.yx)(At),br={event:te,node:(0,Ce.F)(Bt),dragNode:D.dragNode?(0,Ce.F)(D.dragNode.props):null,dragNodesKeys:[D.dragNode.props.eventKey].concat(dt),dropToGap:Ke!==0,dropPosition:Ke+Number(Mt[Mt.length-1])};Se||$e==null||$e(br),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,Ie){var Te=D.state,Se=Te.expandedKeys,Ge=Te.flattenNodes,dt=Ie.expanded,Ke=Ie.key,Xe=Ie.isLeaf;if(!(Xe||te.shiftKey||te.metaKey||te.ctrlKey)){var At=Ge.filter(function($e){return $e.key===Ke})[0],We=(0,Ce.F)((0,ke.Z)((0,ke.Z)({},(0,Ce.H8)(Ke,D.getTreeNodeRequiredProps())),{},{data:At.data}));D.setExpandedKeys(dt?(0,Ze._5)(Se,Ke):(0,Ze.L0)(Se,Ke)),D.onNodeExpand(te,We)}},D.onNodeClick=function(te,Ie){var Te=D.props,Se=Te.onClick,Ge=Te.expandAction;Ge==="click"&&D.triggerExpandActionExpand(te,Ie),Se==null||Se(te,Ie)},D.onNodeDoubleClick=function(te,Ie){var Te=D.props,Se=Te.onDoubleClick,Ge=Te.expandAction;Ge==="doubleClick"&&D.triggerExpandActionExpand(te,Ie),Se==null||Se(te,Ie)},D.onNodeSelect=function(te,Ie){var Te=D.state.selectedKeys,Se=D.state,Ge=Se.keyEntities,dt=Se.fieldNames,Ke=D.props,Xe=Ke.onSelect,At=Ke.multiple,We=Ie.selected,$e=Ie[dt.key],Bt=!We;Bt?At?Te=(0,Ze.L0)(Te,$e):Te=[$e]:Te=(0,Ze._5)(Te,$e);var Kt=Te.map(function(Mt){var br=(0,Cr.Z)(Ge,Mt);return br?br.node:null}).filter(function(Mt){return Mt});D.setUncontrolledState({selectedKeys:Te}),Xe==null||Xe(Te,{event:"select",selected:Bt,node:Ie,selectedNodes:Kt,nativeEvent:te.nativeEvent})},D.onNodeCheck=function(te,Ie,Te){var Se=D.state,Ge=Se.keyEntities,dt=Se.checkedKeys,Ke=Se.halfCheckedKeys,Xe=D.props,At=Xe.checkStrictly,We=Xe.onCheck,$e=Ie.key,Bt,Kt={event:"check",node:Ie,checked:Te,nativeEvent:te.nativeEvent};if(At){var Mt=Te?(0,Ze.L0)(dt,$e):(0,Ze._5)(dt,$e),br=(0,Ze._5)(Ke,$e);Bt={checked:Mt,halfChecked:br},Kt.checkedNodes=Mt.map(function(ot){return(0,Cr.Z)(Ge,ot)}).filter(function(ot){return ot}).map(function(ot){return ot.node}),D.setUncontrolledState({checkedKeys:Mt})}else{var vr=(0,Er.S)([].concat((0,ie.Z)(dt),[$e]),!0,Ge),re=vr.checkedKeys,ue=vr.halfCheckedKeys;if(!Te){var rr=new Set(re);rr.delete($e);var Me=(0,Er.S)(Array.from(rr),{checked:!1,halfCheckedKeys:ue},Ge);re=Me.checkedKeys,ue=Me.halfCheckedKeys}Bt=re,Kt.checkedNodes=[],Kt.checkedNodesPositions=[],Kt.halfCheckedKeys=ue,re.forEach(function(ot){var Zr=(0,Cr.Z)(Ge,ot);if(Zr){var Tt=Zr.node,Yt=Zr.pos;Kt.checkedNodes.push(Tt),Kt.checkedNodesPositions.push({node:Tt,pos:Yt})}}),D.setUncontrolledState({checkedKeys:re},!1,{halfCheckedKeys:ue})}We==null||We(Bt,Kt)},D.onNodeLoad=function(te){var Ie=te.key,Te=new Promise(function(Se,Ge){D.setState(function(dt){var Ke=dt.loadedKeys,Xe=Ke===void 0?[]:Ke,At=dt.loadingKeys,We=At===void 0?[]:At,$e=D.props,Bt=$e.loadData,Kt=$e.onLoad;if(!Bt||Xe.indexOf(Ie)!==-1||We.indexOf(Ie)!==-1)return null;var Mt=Bt(te);return Mt.then(function(){var br=D.state.loadedKeys,vr=(0,Ze.L0)(br,Ie);Kt==null||Kt(vr,{event:"load",node:te}),D.setUncontrolledState({loadedKeys:vr}),D.setState(function(re){return{loadingKeys:(0,Ze._5)(re.loadingKeys,Ie)}}),Se()}).catch(function(br){if(D.setState(function(re){return{loadingKeys:(0,Ze._5)(re.loadingKeys,Ie)}}),D.loadingRetryTimes[Ie]=(D.loadingRetryTimes[Ie]||0)+1,D.loadingRetryTimes[Ie]>=Kr){var vr=D.state.loadedKeys;(0,m.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),D.setUncontrolledState({loadedKeys:(0,Ze.L0)(vr,Ie)}),Se()}Ge(br)}),{loadingKeys:(0,Ze.L0)(We,Ie)}})});return Te.catch(function(){}),Te},D.onNodeMouseEnter=function(te,Ie){var Te=D.props.onMouseEnter;Te==null||Te({event:te,node:Ie})},D.onNodeMouseLeave=function(te,Ie){var Te=D.props.onMouseLeave;Te==null||Te({event:te,node:Ie})},D.onNodeContextMenu=function(te,Ie){var Te=D.props.onRightClick;Te&&(te.preventDefault(),Te({event:te,node:Ie}))},D.onFocus=function(){var te=D.props.onFocus;D.setState({focused:!0});for(var Ie=arguments.length,Te=new Array(Ie),Se=0;Se<Ie;Se++)Te[Se]=arguments[Se];te==null||te.apply(void 0,Te)},D.onBlur=function(){var te=D.props.onBlur;D.setState({focused:!1}),D.onActiveChange(null);for(var Ie=arguments.length,Te=new Array(Ie),Se=0;Se<Ie;Se++)Te[Se]=arguments[Se];te==null||te.apply(void 0,Te)},D.getTreeNodeRequiredProps=function(){var te=D.state,Ie=te.expandedKeys,Te=te.selectedKeys,Se=te.loadedKeys,Ge=te.loadingKeys,dt=te.checkedKeys,Ke=te.halfCheckedKeys,Xe=te.dragOverNodeKey,At=te.dropPosition,We=te.keyEntities;return{expandedKeys:Ie||[],selectedKeys:Te||[],loadedKeys:Se||[],loadingKeys:Ge||[],checkedKeys:dt||[],halfCheckedKeys:Ke||[],dragOverNodeKey:Xe,dropPosition:At,keyEntities:We}},D.setExpandedKeys=function(te){var Ie=D.state,Te=Ie.treeData,Se=Ie.fieldNames,Ge=(0,Ce.oH)(Te,te,Se);D.setUncontrolledState({expandedKeys:te,flattenNodes:Ge},!0)},D.onNodeExpand=function(te,Ie){var Te=D.state.expandedKeys,Se=D.state,Ge=Se.listChanging,dt=Se.fieldNames,Ke=D.props,Xe=Ke.onExpand,At=Ke.loadData,We=Ie.expanded,$e=Ie[dt.key];if(!Ge){var Bt=Te.indexOf($e),Kt=!We;if((0,m.ZP)(We&&Bt!==-1||!We&&Bt===-1,"Expand state not sync with index check"),Kt?Te=(0,Ze.L0)(Te,$e):Te=(0,Ze._5)(Te,$e),D.setExpandedKeys(Te),Xe==null||Xe(Te,{node:Ie,expanded:Kt,nativeEvent:te.nativeEvent}),Kt&&At){var Mt=D.onNodeLoad(Ie);Mt&&Mt.then(function(){var br=(0,Ce.oH)(D.state.treeData,Te,dt);D.setUncontrolledState({flattenNodes:br})}).catch(function(){var br=D.state.expandedKeys,vr=(0,Ze._5)(br,$e);D.setExpandedKeys(vr)})}}},D.onListChangeStart=function(){D.setUncontrolledState({listChanging:!0})},D.onListChangeEnd=function(){setTimeout(function(){D.setUncontrolledState({listChanging:!1})})},D.onActiveChange=function(te){var Ie=D.state.activeKey,Te=D.props.onActiveChange;Ie!==te&&(D.setState({activeKey:te}),te!==null&&D.scrollTo({key:te}),Te==null||Te(te))},D.getActiveItem=function(){var te=D.state,Ie=te.activeKey,Te=te.flattenNodes;return Ie===null?null:Te.find(function(Se){var Ge=Se.key;return Ge===Ie})||null},D.offsetActiveKey=function(te){var Ie=D.state,Te=Ie.flattenNodes,Se=Ie.activeKey,Ge=Te.findIndex(function(Xe){var At=Xe.key;return At===Se});Ge===-1&&te<0&&(Ge=Te.length),Ge=(Ge+te+Te.length)%Te.length;var dt=Te[Ge];if(dt){var Ke=dt.key;D.onActiveChange(Ke)}else D.onActiveChange(null)},D.onKeyDown=function(te){var Ie=D.state,Te=Ie.activeKey,Se=Ie.expandedKeys,Ge=Ie.checkedKeys,dt=Ie.fieldNames,Ke=D.props,Xe=Ke.onKeyDown,At=Ke.checkable,We=Ke.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 $e=D.getActiveItem();if($e&&$e.data){var Bt=D.getTreeNodeRequiredProps(),Kt=$e.data.isLeaf===!1||!!($e.data[dt.children]||[]).length,Mt=(0,Ce.F)((0,ke.Z)((0,ke.Z)({},(0,Ce.H8)(Te,Bt)),{},{data:$e.data,active:!0}));switch(te.which){case a.Z.LEFT:{Kt&&Se.includes(Te)?D.onNodeExpand({},Mt):$e.parent&&D.onActiveChange($e.parent.key),te.preventDefault();break}case a.Z.RIGHT:{Kt&&!Se.includes(Te)?D.onNodeExpand({},Mt):$e.children&&$e.children.length&&D.onActiveChange($e.children[0].key),te.preventDefault();break}case a.Z.ENTER:case a.Z.SPACE:{At&&!Mt.disabled&&Mt.checkable!==!1&&!Mt.disableCheckbox?D.onNodeCheck({},Mt,!Ge.includes(Te)):!At&&We&&!Mt.disabled&&Mt.selectable!==!1&&D.onNodeSelect({},Mt);break}}}Xe==null||Xe(te)},D.setUncontrolledState=function(te){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!D.destroyed){var Se=!1,Ge=!0,dt={};Object.keys(te).forEach(function(Ke){if(Ke in D.props){Ge=!1;return}Se=!0,dt[Ke]=te[Ke]}),Se&&(!Ie||Ge)&&D.setState((0,ke.Z)((0,ke.Z)({},dt),Te))}},D.scrollTo=function(te){D.listRef.current.scrollTo(te)},D}return(0,O.Z)(f,[{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,W=this.state,P=W.focused,te=W.flattenNodes,Ie=W.keyEntities,Te=W.draggingNodeKey,Se=W.activeKey,Ge=W.dropLevelOffset,dt=W.dropContainerKey,Ke=W.dropTargetKey,Xe=W.dropPosition,At=W.dragOverNodeKey,We=W.indent,$e=this.props,Bt=$e.prefixCls,Kt=$e.className,Mt=$e.style,br=$e.showLine,vr=$e.focusable,re=$e.tabIndex,ue=re===void 0?0:re,rr=$e.selectable,Me=$e.showIcon,ot=$e.icon,Zr=$e.switcherIcon,Tt=$e.draggable,Yt=$e.checkable,Gt=$e.checkStrictly,nt=$e.disabled,ct=$e.motion,pt=$e.loadData,Zt=$e.filterTreeNode,Oe=$e.height,fn=$e.itemHeight,Nt=$e.virtual,Ln=$e.titleRender,Vn=$e.dropIndicatorRender,yi=$e.onContextMenu,Ki=$e.onScroll,jn=$e.direction,kn=$e.rootClassName,qt=$e.rootStyle,zr=(0,A.Z)(this.props,{aria:!0,data:!0}),Jr;return Tt&&((0,se.Z)(Tt)==="object"?Jr=Tt:typeof Tt=="function"?Jr={nodeDraggable:Tt}:Jr={}),S.createElement($.k.Provider,{value:{prefixCls:Bt,selectable:rr,showIcon:Me,icon:ot,switcherIcon:Zr,draggable:Jr,draggingNodeKey:Te,checkable:Yt,checkStrictly:Gt,disabled:nt,keyEntities:Ie,dropLevelOffset:Ge,dropContainerKey:dt,dropTargetKey:Ke,dropPosition:Xe,dragOverNodeKey:At,indent:We,direction:jn,dropIndicatorRender:Vn,loadData:pt,filterTreeNode:Zt,titleRender:Ln,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,Kt,kn,(fe={},(0,Fe.Z)(fe,"".concat(Bt,"-show-line"),br),(0,Fe.Z)(fe,"".concat(Bt,"-focused"),P),(0,Fe.Z)(fe,"".concat(Bt,"-active-focused"),Se!==null),fe)),style:qt},S.createElement(Jt,(0,we.Z)({ref:this.listRef,prefixCls:Bt,style:Mt,data:te,disabled:nt,selectable:rr,checkable:!!Yt,motion:ct,dragging:Te!==null,height:Oe,itemHeight:fn,virtual:Nt,focusable:vr,focused:P,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:Ki},this.getTreeNodeRequiredProps(),zr))))}}],[{key:"getDerivedStateFromProps",value:function(fe,W){var P=W.prevProps,te={prevProps:fe};function Ie(vr){return!P&&vr in fe||P&&P[vr]!==fe[vr]}var Te,Se=W.fieldNames;if(Ie("fieldNames")&&(Se=(0,Ce.w$)(fe.fieldNames),te.fieldNames=Se),Ie("treeData")?Te=fe.treeData:Ie("children")&&((0,m.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Te=(0,Ce.zn)(fe.children)),Te){te.treeData=Te;var Ge=(0,Ce.I8)(Te,{fieldNames:Se});te.keyEntities=(0,ke.Z)((0,Fe.Z)({},N,pe),Ge.keyEntities)}var dt=te.keyEntities||W.keyEntities;if(Ie("expandedKeys")||P&&Ie("autoExpandParent"))te.expandedKeys=fe.autoExpandParent||!P&&fe.defaultExpandParent?(0,Ze.r7)(fe.expandedKeys,dt):fe.expandedKeys;else if(!P&&fe.defaultExpandAll){var Ke=(0,ke.Z)({},dt);delete Ke[N],te.expandedKeys=Object.keys(Ke).map(function(vr){return Ke[vr].key})}else!P&&fe.defaultExpandedKeys&&(te.expandedKeys=fe.autoExpandParent||fe.defaultExpandParent?(0,Ze.r7)(fe.defaultExpandedKeys,dt):fe.defaultExpandedKeys);if(te.expandedKeys||delete te.expandedKeys,Te||te.expandedKeys){var Xe=(0,Ce.oH)(Te||W.treeData,te.expandedKeys||W.expandedKeys,Se);te.flattenNodes=Xe}if(fe.selectable&&(Ie("selectedKeys")?te.selectedKeys=(0,Ze.BT)(fe.selectedKeys,fe):!P&&fe.defaultSelectedKeys&&(te.selectedKeys=(0,Ze.BT)(fe.defaultSelectedKeys,fe))),fe.checkable){var At;if(Ie("checkedKeys")?At=(0,Ze.E6)(fe.checkedKeys)||{}:!P&&fe.defaultCheckedKeys?At=(0,Ze.E6)(fe.defaultCheckedKeys)||{}:Te&&(At=(0,Ze.E6)(fe.checkedKeys)||{checkedKeys:W.checkedKeys,halfCheckedKeys:W.halfCheckedKeys}),At){var We=At,$e=We.checkedKeys,Bt=$e===void 0?[]:$e,Kt=We.halfCheckedKeys,Mt=Kt===void 0?[]:Kt;if(!fe.checkStrictly){var br=(0,Er.S)(Bt,!0,dt);Bt=br.checkedKeys,Mt=br.halfCheckedKeys}te.checkedKeys=Bt,te.halfCheckedKeys=Mt}}return Ie("loadedKeys")&&(te.loadedKeys=fe.loadedKeys),te}}]),f}(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 Ue=_r,St=Ue},35654:function(bn,Wt,g){"use strict";g.d(Wt,{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(26407),Fe=g(39559),se=g(48736),ke=g(59301),ie=g(39417),Y=g(67841),O=g(71430),I=null;function n(ee,B){if(!ee)return[];var z=ee.slice(),le=z.indexOf(B);return le>=0&&z.splice(le,1),z}function o(ee,B){var z=(ee||[]).slice();return z.indexOf(B)===-1&&z.push(B),z}function L(ee){return ee.split("-")}function p(ee,B){var z=[],le=(0,Y.Z)(B,ee);function J(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(Ce){var Le=Ce.key,ae=Ce.children;z.push(Le),J(ae)})}return J(le.children),z}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,z,le,J,be,Ce,Le,ae,me){var T,Ee=ee.clientX,oe=ee.clientY,he=ee.target.getBoundingClientRect(),ve=he.top,_=he.height,N=(me==="rtl"?-1:1)*(((J==null?void 0:J.x)||0)-Ee),X=(N-12)/le,pe=(0,Y.Z)(Le,z.props.eventKey);if(oe<ve+_/2){var qe=Ce.findIndex(function(St){return St.key===pe.key}),at=qe<=0?0:qe-1,rt=Ce[at].key;pe=(0,Y.Z)(Le,rt)}var Rt=pe.key,lr=pe,Jt=pe.key,Ze=0,Er=0;if(!ae.includes(Rt))for(var Cr=0;Cr<X&&a(pe);Cr+=1)pe=pe.parent,Er+=1;var Kr=B.props.data,_r=pe.node,Ue=!0;return A(pe)&&pe.level===0&&oe<ve+_/2&&be({dragNode:Kr,dropNode:_r,dropPosition:-1})&&pe.key===z.props.eventKey?Ze=-1:(lr.children||[]).length&&ae.includes(Jt)?be({dragNode:Kr,dropNode:_r,dropPosition:0})?Ze=0:Ue=!1:Er===0?X>-1.5?be({dragNode:Kr,dropNode:_r,dropPosition:1})?Ze=1:Ue=!1:be({dragNode:Kr,dropNode:_r,dropPosition:0})?Ze=0:be({dragNode:Kr,dropNode:_r,dropPosition:1})?Ze=1:Ue=!1:be({dragNode:Kr,dropNode:_r,dropPosition:1})?Ze=1:Ue=!1,{dropPosition:Ze,dropLevelOffset:Er,dropTargetKey:pe.key,dropTargetPos:pe.pos,dragOverNodeKey:Jt,dropContainerKey:Ze===0?null:((T=pe.parent)===null||T===void 0?void 0:T.key)||null,dropAllowed:Ue}}function S(ee,B){if(ee){var z=B.multiple;return z?ee.slice():ee.length?[ee[0]]:ee}}var $=function(B){return B};function F(ee,B){if(!ee)return[];var z=B||{},le=z.processProps,J=le===void 0?$:le,be=Array.isArray(ee)?ee:[ee];return be.map(function(Ce){var Le=Ce.children,ae=_objectWithoutProperties(Ce,I),me=F(Le,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,Fe.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 z=new Set;function le(J){if(!z.has(J)){var be=(0,Y.Z)(B,J);if(be){z.add(J);var Ce=be.parent,Le=be.node;Le.disabled||Ce&&le(Ce.key)}}}return(ee||[]).forEach(function(J){le(J)}),(0,we.Z)(z)}},90782:function(bn,Wt,g){"use strict";g.d(Wt,{S:function(){return O}});var we=g(48736),Fe=g(67841);function se(I,n){var o=new Set;return I.forEach(function(L){n.has(L)||o.add(L)}),o}function ke(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,z=B===void 0?[]:B;p.has(V)&&!L(ee)&&z.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,z=!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),!z&&(be||a.has(J))&&(z=!0)}),B&&p.add(V.key),z&&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,z=V.children,le=z===void 0?[]:z;!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 z=!0,le=!1;(ee.children||[]).filter(function(J){return!p(J.node)}).forEach(function(J){var be=J.key,Ce=a.has(be);z&&!Ce&&(z=!1),!le&&(Ce||A.has(be))&&(le=!0)}),z||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=ke;var A=new Set(I.filter(function(F){var H=!!(0,Fe.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,Wt,g){"use strict";g.d(Wt,{Z:function(){return we}});function we(Fe,se){return Fe[se]}},71430:function(bn,Wt,g){"use strict";g.d(Wt,{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(39559),Fe=g(26407),se=g(33708),ke=g(37061),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||{},z=B.title,le=B._title,J=B.key,be=B.children,Ce=z||"title";return{title:Ce,_title:le||[Ce],key:J||"key",children:be||"children"}}function A(ee,B){var z=new Map;function le(J){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(J||[]).forEach(function(Ce){var Le=Ce[B.key],ae=Ce[B.children];warning(Le!=null,"Tree node must have a certain key: [".concat(be).concat(Le,"]"));var me=String(Le);warning(!z.has(me)||Le===null||Le===void 0,"Same 'key' exist in the Tree: ".concat(me)),z.set(me,!0),le(ae,"".concat(be).concat(me," > "))})}le(ee)}function m(ee){function B(z){var le=(0,ie.Z)(z);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,Le=Ce.children,ae=(0,ke.Z)(Ce,n),me=(0,se.Z)({key:be},ae),T=B(Le);return T.length&&(me.children=T),me}).filter(function(J){return J})}return B(ee)}function S(ee,B,z){var le=a(z),J=le._title,be=le.key,Ce=le.children,Le=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),N,X=0;X<J.length;X+=1){var pe=J[X];if(oe[pe]!==void 0){N=oe[pe];break}}var qe=(0,se.Z)((0,se.Z)({},(0,Y.Z)(oe,[].concat((0,Fe.Z)(J),[be,Ce]))),{},{title:N,key:_,parent:Ee,pos:ve,children:null,data:oe,isStart:[].concat((0,Fe.Z)(Ee?Ee.isStart:[]),[he===0]),isEnd:[].concat((0,Fe.Z)(Ee?Ee.isEnd:[]),[he===T.length-1])});return ae.push(qe),B===!0||Le.has(_)?qe.children=me(oe[Ce]||[],qe):qe.children=[],qe})}return me(ee),ae}function $(ee,B,z){var le={};(0,we.Z)(z)==="object"?le=z:le={externalGetKey:z},le=le||{};var J=le,be=J.childrenPropName,Ce=J.externalGetKey,Le=J.fieldNames,ae=a(Le),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(_,N){return p(_[me],N)};function he(ve,_,N,X){var pe=ve?ve[Ee]:ee,qe=ve?o(N.pos,_):"0",at=ve?[].concat((0,Fe.Z)(X),[ve]):[];if(ve){var rt=oe(ve,qe),Rt={node:ve,index:_,pos:qe,key:rt,parentPos:N.node?N.pos:null,level:N.level+1,nodes:at};B(Rt)}pe&&pe.forEach(function(lr,Jt){he(lr,Jt,{node:ve,pos:qe,level:N?N.level+1:-1},at)})}he(null)}function F(ee){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=B.initWrapper,le=B.processEntity,J=B.onProcessFinished,be=B.externalGetKey,Ce=B.childrenPropName,Le=B.fieldNames,ae=arguments.length>2?arguments[2]:void 0,me=be||ae,T={},Ee={},oe={posEntities:T,keyEntities:Ee};return z&&(oe=z(oe)||oe),$(ee,function(he){var ve=he.node,_=he.index,N=he.pos,X=he.key,pe=he.parentPos,qe=he.level,at=he.nodes,rt={node:ve,nodes:at,index:_,key:X,pos:N,level:qe},Rt=p(X,N);T[N]=rt,Ee[Rt]=rt,rt.parent=T[pe],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),le&&le(rt,oe)},{externalGetKey:me,childrenPropName:Ce,fieldNames:Le}),J&&J(oe),oe}function H(ee,B){var z=B.expandedKeys,le=B.selectedKeys,J=B.loadedKeys,be=B.loadingKeys,Ce=B.checkedKeys,Le=B.halfCheckedKeys,ae=B.dragOverNodeKey,me=B.dropPosition,T=B.keyEntities,Ee=(0,I.Z)(T,ee),oe={eventKey:ee,expanded:z.indexOf(ee)!==-1,selected:le.indexOf(ee)!==-1,loaded:J.indexOf(ee)!==-1,loading:be.indexOf(ee)!==-1,checked:Ce.indexOf(ee)!==-1,halfChecked:Le.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,z=ee.expanded,le=ee.selected,J=ee.checked,be=ee.loaded,Ce=ee.loading,Le=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:z,selected:le,checked:J,loaded:be,loading:Ce,halfChecked:Le,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,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var we=g(4676);function Fe(se,ke,ie,Y){var O=we.unstable_batchedUpdates?function(n){we.unstable_batchedUpdates(ie,n)}:ie;return se!=null&&se.addEventListener&&se.addEventListener(ke,O,Y),{remove:function(){se!=null&&se.removeEventListener&&se.removeEventListener(ke,O,Y)}}}},55468:function(bn,Wt,g){"use strict";g.d(Wt,{g1:function(){return L},os:function(){return a}});var we=/margin|padding|width|height|max|min|offset/,Fe={left:!0,top:!0},se={cssFloat:1,styleFloat:1,float:1};function ke(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 Fe||(Fe[m]=we.test(m)),Fe[m]?parseFloat(S)||0:S}function Y(A,m){var S=arguments.length,$=ke(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 ke(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,Wt,g){"use strict";g.d(Wt,{G:function(){return ke}});var we=g(47273),Fe=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(!Fe(Y))return!1;var I=document.createElement("div"),n=I.style[Y];return I.style[Y]=O,I.style[Y]!==n};function ke(ie,Y){return!Array.isArray(ie)&&Y!==void 0?se(ie,Y):Fe(ie)}},49658:function(bn,Wt){"use strict";Wt.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))}},57149:function(bn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Ue}});var we=g(92413),Fe=g(39559),se=g(33708),ke=g(400),ie=g(33606),Y=g(37061),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(St,G){var v=St.height,f=St.offsetY,D=St.offsetX,fe=St.children,W=St.prefixCls,P=St.onInnerResize,te=St.innerProps,Ie=St.rtl,Te=St.extra,Se={},Ge={display:"flex",flexDirection:"column"};return f!==void 0&&(Se={height:v,position:"relative",overflow:"hidden"},Ge=(0,se.Z)((0,se.Z)({},Ge),{},(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({transform:"translateY(".concat(f,"px)")},Ie?"marginRight":"marginLeft",-D),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:Se},p.createElement(n.Z,{onResize:function(Ke){var Xe=Ke.offsetHeight;Xe&&P&&P()}},p.createElement("div",(0,we.Z)({style:Ge,className:I()((0,ke.Z)({},"".concat(W,"-holder-inner"),W)),ref:G},te),fe,Te)))});A.displayName="Filler";var m=A;function S(St){var G=St.children,v=St.setRef,f=p.useCallback(function(D){v(D)},[]);return p.cloneElement(G,{ref:f})}function $(St,G,v,f,D,fe,W,P){var te=P.getKey;return St.slice(G,v+1).map(function(Ie,Te){var Se=G+Te,Ge=W(Ie,Se,{style:{width:f},offsetX:D}),dt=te(Ie);return p.createElement(S,{key:dt,setRef:function(Xe){return fe(Ie,Xe)}},Ge)})}function F(St,G,v,f){var D=v-St,fe=G-v,W=Math.min(D,fe)*2;if(f<=W){var P=Math.floor(f/2);return f%2?v+P+1:v-P}return D>fe?v-(f-fe):v+(f-D)}function H(St,G,v){var f=St.length,D=G.length,fe,W;if(f===0&&D===0)return null;f<D?(fe=St,W=G):(fe=G,W=St);var P={__EMPTY_ITEM__:!0};function te(Ke){return Ke!==void 0?v(Ke):P}for(var Ie=null,Te=Math.abs(f-D)!==1,Se=0;Se<W.length;Se+=1){var Ge=te(fe[Se]),dt=te(W[Se]);if(Ge!==dt){Ie=Se,Te=Te||Ge!==te(W[Se+1]);break}}return Ie===null?null:{index:Ie,multiple:Te}}function V(St,G,v){var f=p.useState(St),D=(0,ie.Z)(f,2),fe=D[0],W=D[1],P=p.useState(null),te=(0,ie.Z)(P,2),Ie=te[0],Te=te[1];return p.useEffect(function(){var Se=H(fe||[],St||[],G);(Se==null?void 0:Se.index)!==void 0&&(v==null||v(Se.index),Te(St[Se.index])),W(St)},[St]),[Ie]}var ee=g(16089),B=(typeof navigator=="undefined"?"undefined":(0,Fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),z=B,le=function(St,G,v,f){var D=(0,p.useRef)(!1),fe=(0,p.useRef)(null);function W(){clearTimeout(fe.current),D.current=!0,fe.current=setTimeout(function(){D.current=!1},50)}var P=(0,p.useRef)({top:St,bottom:G,left:v,right:f});return P.current.top=St,P.current.bottom=G,P.current.left=v,P.current.right=f,function(te,Ie){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Se=te?Ie<0&&P.current.left||Ie>0&&P.current.right:Ie<0&&P.current.top||Ie>0&&P.current.bottom;return Te&&Se?(clearTimeout(fe.current),D.current=!1):(!Se||D.current)&&W(),!D.current&&Se}};function J(St,G,v,f,D,fe,W){var P=(0,p.useRef)(0),te=(0,p.useRef)(null),Ie=(0,p.useRef)(null),Te=(0,p.useRef)(!1),Se=le(G,v,f,D);function Ge($e,Bt){if(ee.Z.cancel(te.current),!Se(!1,Bt)){var Kt=$e;if(!Kt._virtualHandled)Kt._virtualHandled=!0;else return;P.current+=Bt,Ie.current=Bt,z||Kt.preventDefault(),te.current=(0,ee.Z)(function(){var Mt=Te.current?10:1;W(P.current*Mt,!1),P.current=0})}}function dt($e,Bt){W(Bt,!0),z||$e.preventDefault()}var Ke=(0,p.useRef)(null),Xe=(0,p.useRef)(null);function At($e){if(St){ee.Z.cancel(Xe.current),Xe.current=(0,ee.Z)(function(){Ke.current=null},2);var Bt=$e.deltaX,Kt=$e.deltaY,Mt=$e.shiftKey,br=Bt,vr=Kt;(Ke.current==="sx"||!Ke.current&&Mt&&Kt&&!Bt)&&(br=Kt,vr=0,Ke.current="sx");var re=Math.abs(br),ue=Math.abs(vr);Ke.current===null&&(Ke.current=fe&&re>ue?"x":"y"),Ke.current==="y"?Ge($e,vr):dt($e,br)}}function We($e){St&&(Te.current=$e.detail===Ie.current)}return[At,We]}function be(St,G,v,f){var D=p.useMemo(function(){return[new Map,[]]},[St,v.id,f]),fe=(0,ie.Z)(D,2),W=fe[0],P=fe[1],te=function(Te){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te,Ge=W.get(Te),dt=W.get(Se);if(Ge===void 0||dt===void 0)for(var Ke=St.length,Xe=P.length;Xe<Ke;Xe+=1){var At,We=St[Xe],$e=G(We);W.set($e,Xe);var Bt=(At=v.get($e))!==null&&At!==void 0?At:f;if(P[Xe]=(P[Xe-1]||0)+Bt,$e===Te&&(Ge=Xe),$e===Se&&(dt=Xe),Ge!==void 0&&dt!==void 0)break}return{top:P[Ge-1]||0,bottom:P[dt]}};return te}var Ce=g(76846),Le=g(6909),ae=g(4771),me=function(){function St(){(0,Le.Z)(this,St),(0,ke.Z)(this,"maps",void 0),(0,ke.Z)(this,"id",0),(0,ke.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ae.Z)(St,[{key:"set",value:function(v,f){this.maps[v]=f,this.id+=1,this.diffKeys.add(v)}},{key:"get",value:function(v){return this.maps[v]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),St}(),T=me;function Ee(St){var G=parseFloat(St);return isNaN(G)?0:G}function oe(St,G,v){var f=p.useState(0),D=(0,ie.Z)(f,2),fe=D[0],W=D[1],P=(0,p.useRef)(new Map),te=(0,p.useRef)(new T),Ie=(0,p.useRef)(0);function Te(){Ie.current+=1}function Se(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te();var Ke=function(){var We=!1;P.current.forEach(function($e,Bt){if($e&&$e.offsetParent){var Kt=(0,Ce.ZP)($e),Mt=Kt.offsetHeight,br=getComputedStyle(Kt),vr=br.marginTop,re=br.marginBottom,ue=Ee(vr),rr=Ee(re),Me=Mt+ue+rr;te.current.get(Bt)!==Me&&(te.current.set(Bt,Me),We=!0)}}),We&&W(function($e){return $e+1})};if(dt)Ke();else{Ie.current+=1;var Xe=Ie.current;Promise.resolve().then(function(){Xe===Ie.current&&Ke()})}}function Ge(dt,Ke){var Xe=St(dt),At=P.current.get(Xe);Ke?(P.current.set(Xe,Ke),Se()):P.current.delete(Xe),!At!=!Ke&&(Ke?G==null||G(dt):v==null||v(dt))}return(0,p.useEffect)(function(){return Te},[]),[Ge,Se,te.current,fe]}var he=14/15;function ve(St,G,v){var f=(0,p.useRef)(!1),D=(0,p.useRef)(0),fe=(0,p.useRef)(0),W=(0,p.useRef)(null),P=(0,p.useRef)(null),te,Ie=function(dt){if(f.current){var Ke=Math.ceil(dt.touches[0].pageX),Xe=Math.ceil(dt.touches[0].pageY),At=D.current-Ke,We=fe.current-Xe,$e=Math.abs(At)>Math.abs(We);$e?D.current=Ke:fe.current=Xe;var Bt=v($e,$e?At:We,!1,dt);Bt&&dt.preventDefault(),clearInterval(P.current),Bt&&(P.current=setInterval(function(){$e?At*=he:We*=he;var Kt=Math.floor($e?At:We);(!v($e,Kt,!0)||Math.abs(Kt)<=.1)&&clearInterval(P.current)},16))}},Te=function(){f.current=!1,te()},Se=function(dt){te(),dt.touches.length===1&&!f.current&&(f.current=!0,D.current=Math.ceil(dt.touches[0].pageX),fe.current=Math.ceil(dt.touches[0].pageY),W.current=dt.target,W.current.addEventListener("touchmove",Ie,{passive:!1}),W.current.addEventListener("touchend",Te,{passive:!0}))};te=function(){W.current&&(W.current.removeEventListener("touchmove",Ie),W.current.removeEventListener("touchend",Te))},(0,L.Z)(function(){return St&&G.current.addEventListener("touchstart",Se,{passive:!0}),function(){var Ge;(Ge=G.current)===null||Ge===void 0||Ge.removeEventListener("touchstart",Se),te(),clearInterval(P.current)}},[St])}function _(St){return Math.floor(Math.pow(St,.5))}function N(St,G){var v="touches"in St?St.touches[0]:St;return v[G?"pageX":"pageY"]-window[G?"scrollX":"scrollY"]}function X(St,G,v){p.useEffect(function(){var f=G.current;if(St&&f){var D=!1,fe,W,P=function(){ee.Z.cancel(fe)},te=function Ge(){P(),fe=(0,ee.Z)(function(){v(W),Ge()})},Ie=function(dt){if(!dt.target.draggable){var Ke=dt;Ke._virtualHandled||(Ke._virtualHandled=!0,D=!0)}},Te=function(){D=!1,P()},Se=function(dt){if(D){var Ke=N(dt,!1),Xe=f.getBoundingClientRect(),At=Xe.top,We=Xe.bottom;if(Ke<=At){var $e=At-Ke;W=-_($e),te()}else if(Ke>=We){var Bt=Ke-We;W=_(Bt),te()}else P()}};return f.addEventListener("mousedown",Ie),f.ownerDocument.addEventListener("mouseup",Te),f.ownerDocument.addEventListener("mousemove",Se),function(){f.removeEventListener("mousedown",Ie),f.ownerDocument.removeEventListener("mouseup",Te),f.ownerDocument.removeEventListener("mousemove",Se),P()}}},[St])}var pe=10;function qe(St,G,v,f,D,fe,W,P){var te=p.useRef(),Ie=p.useState(null),Te=(0,ie.Z)(Ie,2),Se=Te[0],Ge=Te[1];return(0,L.Z)(function(){if(Se&&Se.times<pe){if(!St.current){Ge(function(pt){return(0,se.Z)({},pt)});return}fe();var dt=Se.targetAlign,Ke=Se.originAlign,Xe=Se.index,At=Se.offset,We=St.current.clientHeight,$e=!1,Bt=dt,Kt=null;if(We){for(var Mt=dt||Ke,br=0,vr=0,re=0,ue=Math.min(G.length-1,Xe),rr=0;rr<=ue;rr+=1){var Me=D(G[rr]);vr=br;var ot=v.get(Me);re=vr+(ot===void 0?f:ot),br=re}for(var Zr=Mt==="top"?At:We-At,Tt=ue;Tt>=0;Tt-=1){var Yt=D(G[Tt]),Gt=v.get(Yt);if(Gt===void 0){$e=!0;break}if(Zr-=Gt,Zr<=0)break}switch(Mt){case"top":Kt=vr-At;break;case"bottom":Kt=re-We+At;break;default:{var nt=St.current.scrollTop,ct=nt+We;vr<nt?Bt="top":re>ct&&(Bt="bottom")}}Kt!==null&&W(Kt),Kt!==Se.lastTop&&($e=!0)}$e&&Ge((0,se.Z)((0,se.Z)({},Se),{},{times:Se.times+1,targetAlign:Bt,lastTop:Kt}))}},[Se,St.current]),function(dt){if(dt==null){P();return}if(ee.Z.cancel(te.current),typeof dt=="number")W(dt);else if(dt&&(0,Fe.Z)(dt)==="object"){var Ke,Xe=dt.align;"index"in dt?Ke=dt.index:Ke=G.findIndex(function($e){return D($e)===dt.key});var At=dt.offset,We=At===void 0?0:At;Ge({times:0,index:Ke,offset:We,originAlign:Xe})}}}var at=p.forwardRef(function(St,G){var v=St.prefixCls,f=St.rtl,D=St.scrollOffset,fe=St.scrollRange,W=St.onStartMove,P=St.onStopMove,te=St.onScroll,Ie=St.horizontal,Te=St.spinSize,Se=St.containerSize,Ge=St.style,dt=St.thumbStyle,Ke=St.showScrollBar,Xe=p.useState(!1),At=(0,ie.Z)(Xe,2),We=At[0],$e=At[1],Bt=p.useState(null),Kt=(0,ie.Z)(Bt,2),Mt=Kt[0],br=Kt[1],vr=p.useState(null),re=(0,ie.Z)(vr,2),ue=re[0],rr=re[1],Me=!f,ot=p.useRef(),Zr=p.useRef(),Tt=p.useState(Ke),Yt=(0,ie.Z)(Tt,2),Gt=Yt[0],nt=Yt[1],ct=p.useRef(),pt=function(){Ke===!0||Ke===!1||(clearTimeout(ct.current),nt(!0),ct.current=setTimeout(function(){nt(!1)},3e3))},Zt=fe-Se||0,Oe=Se-Te||0,fn=p.useMemo(function(){if(D===0||Zt===0)return 0;var zr=D/Zt;return zr*Oe},[D,Zt,Oe]),Nt=function(Jr){Jr.stopPropagation(),Jr.preventDefault()},Ln=p.useRef({top:fn,dragging:We,pageY:Mt,startTop:ue});Ln.current={top:fn,dragging:We,pageY:Mt,startTop:ue};var Vn=function(Jr){$e(!0),br(N(Jr,Ie)),rr(Ln.current.top),W(),Jr.stopPropagation(),Jr.preventDefault()};p.useEffect(function(){var zr=function(Ir){Ir.preventDefault()},Jr=ot.current,Ot=Zr.current;return Jr.addEventListener("touchstart",zr,{passive:!1}),Ot.addEventListener("touchstart",Vn,{passive:!1}),function(){Jr.removeEventListener("touchstart",zr),Ot.removeEventListener("touchstart",Vn)}},[]);var yi=p.useRef();yi.current=Zt;var Ki=p.useRef();Ki.current=Oe,p.useEffect(function(){if(We){var zr,Jr=function(Ir){var Fr=Ln.current,Tn=Fr.dragging,tn=Fr.pageY,Bn=Fr.startTop;ee.Z.cancel(zr);var gn=ot.current.getBoundingClientRect(),zn=Se/(Ie?gn.width:gn.height);if(Tn){var Xn=(N(Ir,Ie)-tn)*zn,Qr=Bn;!Me&&Ie?Qr-=Xn:Qr+=Xn;var Gr=yi.current,Sn=Ki.current,On=Sn?Qr/Sn:0,Qn=Math.ceil(On*Gr);Qn=Math.max(Qn,0),Qn=Math.min(Qn,Gr),zr=(0,ee.Z)(function(){te(Qn,Ie)})}},Ot=function(){$e(!1),P()};return window.addEventListener("mousemove",Jr,{passive:!0}),window.addEventListener("touchmove",Jr,{passive:!0}),window.addEventListener("mouseup",Ot,{passive:!0}),window.addEventListener("touchend",Ot,{passive:!0}),function(){window.removeEventListener("mousemove",Jr),window.removeEventListener("touchmove",Jr),window.removeEventListener("mouseup",Ot),window.removeEventListener("touchend",Ot),ee.Z.cancel(zr)}}},[We]),p.useEffect(function(){return pt(),function(){clearTimeout(ct.current)}},[D]),p.useImperativeHandle(G,function(){return{delayHidden:pt}});var jn="".concat(v,"-scrollbar"),kn={position:"absolute",visibility:Gt?null:"hidden"},qt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ie?(kn.height=8,kn.left=0,kn.right=0,kn.bottom=0,qt.height="100%",qt.width=Te,Me?qt.left=fn:qt.right=fn):(kn.width=8,kn.top=0,kn.bottom=0,Me?kn.right=0:kn.left=0,qt.width="100%",qt.height=Te,qt.top=fn),p.createElement("div",{ref:ot,className:I()(jn,(0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(jn,"-horizontal"),Ie),"".concat(jn,"-vertical"),!Ie),"".concat(jn,"-visible"),Gt)),style:(0,se.Z)((0,se.Z)({},kn),Ge),onMouseDown:Nt,onMouseMove:pt},p.createElement("div",{ref:Zr,className:I()("".concat(jn,"-thumb"),(0,ke.Z)({},"".concat(jn,"-thumb-moving"),We)),style:(0,se.Z)((0,se.Z)({},qt),dt),onMouseDown:Vn}))}),rt=at,Rt=20;function lr(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=St/G*St;return isNaN(v)&&(v=0),v=Math.max(v,Rt),Math.floor(v)}var Jt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ze=[],Er={overflowY:"auto",overflowAnchor:"none"};function Cr(St,G){var v=St.prefixCls,f=v===void 0?"rc-virtual-list":v,D=St.className,fe=St.height,W=St.itemHeight,P=St.fullHeight,te=P===void 0?!0:P,Ie=St.style,Te=St.data,Se=St.children,Ge=St.itemKey,dt=St.virtual,Ke=St.direction,Xe=St.scrollWidth,At=St.component,We=At===void 0?"div":At,$e=St.onScroll,Bt=St.onVirtualScroll,Kt=St.onVisibleChange,Mt=St.innerProps,br=St.extraRender,vr=St.styles,re=St.showScrollBar,ue=re===void 0?"optional":re,rr=(0,Y.Z)(St,Jt),Me=p.useCallback(function(hi){return typeof Ge=="function"?Ge(hi):hi==null?void 0:hi[Ge]},[Ge]),ot=oe(Me,null,null),Zr=(0,ie.Z)(ot,4),Tt=Zr[0],Yt=Zr[1],Gt=Zr[2],nt=Zr[3],ct=!!(dt!==!1&&fe&&W),pt=p.useMemo(function(){return Object.values(Gt.maps).reduce(function(hi,bi){return hi+bi},0)},[Gt.id,Gt.maps]),Zt=ct&&Te&&(Math.max(W*Te.length,pt)>fe||!!Xe),Oe=Ke==="rtl",fn=I()(f,(0,ke.Z)({},"".concat(f,"-rtl"),Oe),D),Nt=Te||Ze,Ln=(0,p.useRef)(),Vn=(0,p.useRef)(),yi=(0,p.useRef)(),Ki=(0,p.useState)(0),jn=(0,ie.Z)(Ki,2),kn=jn[0],qt=jn[1],zr=(0,p.useState)(0),Jr=(0,ie.Z)(zr,2),Ot=Jr[0],Ct=Jr[1],Ir=(0,p.useState)(!1),Fr=(0,ie.Z)(Ir,2),Tn=Fr[0],tn=Fr[1],Bn=function(){tn(!0)},gn=function(){tn(!1)},zn={getKey:Me};function Xn(hi){qt(function(bi){var Hi;typeof hi=="function"?Hi=hi(bi):Hi=hi;var ha=Qi(Hi);return Ln.current.scrollTop=ha,ha})}var Qr=(0,p.useRef)({start:0,end:Nt.length}),Gr=(0,p.useRef)(),Sn=V(Nt,Me),On=(0,ie.Z)(Sn,1),Qn=On[0];Gr.current=Qn;var Jn=p.useMemo(function(){if(!ct)return{scrollHeight:void 0,start:0,end:Nt.length-1,offset:void 0};if(!Zt){var hi;return{scrollHeight:((hi=Vn.current)===null||hi===void 0?void 0:hi.offsetHeight)||0,start:0,end:Nt.length-1,offset:void 0}}for(var bi=0,Hi,ha,Na,ci=Nt.length,pa=0;pa<ci;pa+=1){var va=Nt[pa],Ha=Me(va),Is=Gt.get(Ha),Wa=bi+(Is===void 0?W:Is);Wa>=kn&&Hi===void 0&&(Hi=pa,ha=bi),Wa>kn+fe&&Na===void 0&&(Na=pa),bi=Wa}return Hi===void 0&&(Hi=0,ha=0,Na=Math.ceil(fe/W)),Na===void 0&&(Na=Nt.length-1),Na=Math.min(Na+1,Nt.length-1),{scrollHeight:bi,start:Hi,end:Na,offset:ha}},[Zt,ct,kn,Nt,nt,fe]),Ni=Jn.scrollHeight,li=Jn.start,vn=Jn.end,hr=Jn.offset;Qr.current.start=li,Qr.current.end=vn,p.useLayoutEffect(function(){var hi=Gt.getRecord();if(hi.size===1){var bi=Array.from(hi)[0],Hi=Nt[li];if(Hi){var ha=Me(Hi);if(ha===bi){var Na=Gt.get(bi),ci=Na-W;Xn(function(pa){return pa+ci})}}}Gt.resetRecord()},[Ni]);var wr=p.useState({width:0,height:fe}),Or=(0,ie.Z)(wr,2),Hr=Or[0],Ur=Or[1],on=function(bi){Ur({width:bi.offsetWidth,height:bi.offsetHeight})},en=(0,p.useRef)(),Hn=(0,p.useRef)(),ti=p.useMemo(function(){return lr(Hr.width,Xe)},[Hr.width,Xe]),ui=p.useMemo(function(){return lr(Hr.height,Ni)},[Hr.height,Ni]),Ri=Ni-fe,Oi=(0,p.useRef)(Ri);Oi.current=Ri;function Qi(hi){var bi=hi;return Number.isNaN(Oi.current)||(bi=Math.min(bi,Oi.current)),bi=Math.max(bi,0),bi}var Tr=kn<=0,En=kn>=Ri,hn=Ot<=0,Ai=Ot>=Xe,si=le(Tr,En,hn,Ai),ri=function(){return{x:Oe?-Ot:Ot,y:kn}},wi=(0,p.useRef)(ri()),Ti=(0,o.useEvent)(function(hi){if(Bt){var bi=(0,se.Z)((0,se.Z)({},ri()),hi);(wi.current.x!==bi.x||wi.current.y!==bi.y)&&(Bt(bi),wi.current=bi)}});function Bi(hi,bi){var Hi=hi;bi?((0,a.flushSync)(function(){Ct(Hi)}),Ti()):Xn(Hi)}function zi(hi){var bi=hi.currentTarget.scrollTop;bi!==kn&&Xn(bi),$e==null||$e(hi),Ti()}var oa=function(bi){var Hi=bi,ha=Xe?Xe-Hr.width:0;return Hi=Math.max(Hi,0),Hi=Math.min(Hi,ha),Hi},Ei=(0,o.useEvent)(function(hi,bi){bi?((0,a.flushSync)(function(){Ct(function(Hi){var ha=Hi+(Oe?-hi:hi);return oa(ha)})}),Ti()):Xn(function(Hi){var ha=Hi+hi;return ha})}),wn=J(ct,Tr,En,hn,Ai,!!Xe,Ei),Ht=(0,ie.Z)(wn,2),Fn=Ht[0],Gn=Ht[1];ve(ct,Ln,function(hi,bi,Hi,ha){var Na=ha;return si(hi,bi,Hi)?!1:!Na||!Na._virtualHandled?(Na&&(Na._virtualHandled=!0),Fn({preventDefault:function(){},deltaX:hi?bi:0,deltaY:hi?0:bi}),!0):!1}),X(Zt,Ln,function(hi){Xn(function(bi){return bi+hi})}),(0,L.Z)(function(){function hi(Hi){var ha=Tr&&Hi.detail<0,Na=En&&Hi.detail>0;ct&&!ha&&!Na&&Hi.preventDefault()}var bi=Ln.current;return bi.addEventListener("wheel",Fn,{passive:!1}),bi.addEventListener("DOMMouseScroll",Gn,{passive:!0}),bi.addEventListener("MozMousePixelScroll",hi,{passive:!1}),function(){bi.removeEventListener("wheel",Fn),bi.removeEventListener("DOMMouseScroll",Gn),bi.removeEventListener("MozMousePixelScroll",hi)}},[ct,Tr,En]),(0,L.Z)(function(){if(Xe){var hi=oa(Ot);Ct(hi),Ti({x:hi})}},[Hr.width,Xe]);var Ci=function(){var bi,Hi;(bi=en.current)===null||bi===void 0||bi.delayHidden(),(Hi=Hn.current)===null||Hi===void 0||Hi.delayHidden()},ki=qe(Ln,Nt,Gt,W,Me,function(){return Yt(!0)},Xn,Ci);p.useImperativeHandle(G,function(){return{nativeElement:yi.current,getScrollInfo:ri,scrollTo:function(bi){function Hi(ha){return ha&&(0,Fe.Z)(ha)==="object"&&("left"in ha||"top"in ha)}Hi(bi)?(bi.left!==void 0&&Ct(oa(bi.left)),ki(bi.top)):ki(bi)}}}),(0,L.Z)(function(){if(Kt){var hi=Nt.slice(li,vn+1);Kt(hi,Nt)}},[li,vn,Nt]);var Aa=be(Nt,Me,Gt,W),Ca=br==null?void 0:br({start:li,end:vn,virtual:Zt,offsetX:Ot,offsetY:hr,rtl:Oe,getSize:Aa}),ta=$(Nt,li,vn,Xe,Ot,Tt,Se,zn),xa=null;fe&&(xa=(0,se.Z)((0,ke.Z)({},te?"height":"maxHeight",fe),Er),ct&&(xa.overflowY="hidden",Xe&&(xa.overflowX="hidden"),Tn&&(xa.pointerEvents="none")));var La={};return Oe&&(La.dir="rtl"),p.createElement("div",(0,we.Z)({ref:yi,style:(0,se.Z)((0,se.Z)({},Ie),{},{position:"relative"}),className:fn},La,rr),p.createElement(n.Z,{onResize:on},p.createElement(We,{className:"".concat(f,"-holder"),style:xa,ref:Ln,onScroll:zi,onMouseEnter:Ci},p.createElement(m,{prefixCls:f,height:Ni,offsetX:Ot,offsetY:hr,scrollWidth:Xe,onInnerResize:Yt,ref:Vn,innerProps:Mt,rtl:Oe,extra:Ca},ta))),Zt&&Ni>fe&&p.createElement(rt,{ref:en,prefixCls:f,scrollOffset:kn,scrollRange:Ni,rtl:Oe,onScroll:Bi,onStartMove:Bn,onStopMove:gn,spinSize:ui,containerSize:Hr.height,style:vr==null?void 0:vr.verticalScrollBar,thumbStyle:vr==null?void 0:vr.verticalScrollBarThumb,showScrollBar:ue}),Zt&&Xe>Hr.width&&p.createElement(rt,{ref:Hn,prefixCls:f,scrollOffset:Ot,scrollRange:Xe,rtl:Oe,onScroll:Bi,onStartMove:Bn,onStopMove:gn,spinSize:ti,containerSize:Hr.width,horizontal:!0,style:vr==null?void 0:vr.horizontalScrollBar,thumbStyle:vr==null?void 0:vr.horizontalScrollBarThumb,showScrollBar:ue}))}var Kr=p.forwardRef(Cr);Kr.displayName="List";var _r=Kr,Ue=_r},83145:function(bn,Wt,g){"use strict";Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.CopyToClipboard=void 0;var we=se(g(59301)),Fe=se(g(25769));function se(H){return H&&H.__esModule?H:{default:H}}function ke(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ke=function(ee){return typeof ee}:ke=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},ke(H)}function ie(H,V){var ee=Object.keys(H);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(H);V&&(B=B.filter(function(z){return Object.getOwnPropertyDescriptor(H,z).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,z;if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(H);for(z=0;z<le.length;z++)B=le[z],!(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),z,le;for(le=0;le<B.length;le++)z=B[le],!(V.indexOf(z)>=0)&&(ee[z]=H[z]);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&&(ke(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,z){return B.__proto__=z,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 z=arguments.length,le=new Array(z),J=0;J<z;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,Le=Ce.text,ae=Ce.onCopy,me=Ce.children,T=Ce.options,Ee=we.default.Children.only(me),oe=(0,Fe.default)(Le,T);ae&&ae(Le,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,z=B.text,le=B.onCopy,J=B.options,be=B.children,Ce=O(B,["text","onCopy","options","children"]),Le=we.default.Children.only(be);return we.default.cloneElement(Le,Y({},Ce,{onClick:this.onClick}))}}]),V}(we.default.PureComponent);Wt.CopyToClipboard=F,$(F,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(bn,Wt,g){"use strict";var we=g(83145),Fe=we.CopyToClipboard;Fe.CopyToClipboard=Fe,bn.exports=Fe},76374:function(bn,Wt,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}()}(),Fe=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")()}(),ke=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&&N()}function _(){ke(ve)}function N(){var X=Date.now();if(Ee){if(X-he<ie)return;oe=!0}else Ee=!0,oe=!1,setTimeout(_,T);he=X}return N}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(){!Fe||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(){!Fe||!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=z(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 z(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,N=A(oe.width),X=A(oe.height);if(oe.boxSizing==="border-box"&&(Math.round(N+ve)!==T&&(N-=m(oe,"left","right")+ve),Math.round(X+_)!==Ee&&(X-=m(oe,"top","bottom")+_)),!V(me)){var pe=Math.round(N+ve)-T,qe=Math.round(X+_)-Ee;Math.abs(pe)!==1&&(N-=pe),Math.abs(qe)!==1&&(X-=qe)}return z(he.left,he.top,N,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 Fe?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 z(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_=z(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,Le=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){Le.prototype[me]=function(){var T;return(T=Ce.get(this))[me].apply(T,arguments)}});var ae=function(){return typeof se.ResizeObserver!="undefined"?se.ResizeObserver:Le}();Wt.Z=ae},98040:function(bn){bn.exports=function(){var Wt=document.getSelection();if(!Wt.rangeCount)return function(){};for(var g=document.activeElement,we=[],Fe=0;Fe<Wt.rangeCount;Fe++)we.push(Wt.getRangeAt(Fe));switch(g.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":g.blur();break;default:g=null;break}return Wt.removeAllRanges(),function(){Wt.type==="Caret"&&Wt.removeAllRanges(),Wt.rangeCount||we.forEach(function(se){Wt.addRange(se)}),g&&g.focus()}}},1012:function(bn,Wt,g){"use strict";g.d(Wt,{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),Fe=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(Fe)}var ke=/^(?:[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"&&ke.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,Wt,g){"use strict";g.d(Wt,{ZP:function(){return Al}});function we(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Fe={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 Re=x.parseURL(j);if(!Re)throw new Error("Error trying to parse base URL.");return Re.path=x.normalizePath(Re.path),x.buildURLFromParts(Re)}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 Je=x.parseURL(j);if(!Je)throw new Error("Error trying to parse base URL.");if(!Je.netLoc&&Je.path&&Je.path[0]!=="/"){var lt=i.exec(Je.path);Je.netLoc=lt[1],Je.path=lt[2]}Je.netLoc&&!Je.path&&(Je.path="/");var _t={scheme:Je.scheme,netLoc:Ye.netLoc,path:null,params:Ye.params,query:Ye.query,fragment:Ye.fragment};if(!Ye.netLoc&&(_t.netLoc=Je.netLoc,Ye.path[0]!=="/"))if(!Ye.path)_t.path=Je.path,Ye.params||(_t.params=Je.params,Ye.query||(_t.query=Je.query));else{var Ft=Je.path,gr=Ft.substring(0,Ft.lastIndexOf("/")+1)+Ye.path;_t.path=x.normalizePath(gr)}return _t.path===null&&(_t.path=Ae.alwaysNormalize?x.normalizePath(Ye.path):Ye.path),x.buildURLFromParts(_t)},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})()})(Fe);var se=Fe.exports;function ke(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?ke(Object(t),!0).forEach(function(r){I(d,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(t)):ke(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,z=/^(\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=z.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 Le{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 N(d){const e=qe(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=N(l)}}return t}function qe(d){return Uint8Array.from(unescape(encodeURIComponent(d)),e=>e.charCodeAt(0))}const at=typeof self!="undefined"?self:void 0;var rt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Rt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function lr(d){switch(d){case Rt.FAIRPLAY:return rt.FAIRPLAY;case Rt.PLAYREADY:return rt.PLAYREADY;case Rt.WIDEVINE:return rt.WIDEVINE;case Rt.CLEARKEY:return rt.CLEARKEY}}var Jt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Ze(d){if(d===Jt.WIDEVINE)return rt.WIDEVINE;if(d===Jt.PLAYREADY)return rt.PLAYREADY;if(d===Jt.CENC||d===Jt.CLEARKEY)return rt.CLEARKEY}function Er(d){switch(d){case rt.FAIRPLAY:return Rt.FAIRPLAY;case rt.PLAYREADY:return Rt.PLAYREADY;case rt.WIDEVINE:return Rt.WIDEVINE;case rt.CLEARKEY:return Rt.CLEARKEY}}function Cr(d){const{drmSystems:e,widevineLicenseUrl:t}=d,r=e?[rt.FAIRPLAY,rt.WIDEVINE,rt.PLAYREADY,rt.CLEARKEY].filter(i=>!!e[i]):[];return!r[rt.WIDEVINE]&&t&&r.push(rt.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 rt.FAIRPLAY:i=["cenc","sinf"];break;case rt.WIDEVINE:case rt.PLAYREADY:i=["cenc"];break;case rt.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${d}`)}return Ue(i,e,t,r)}function Ue(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 St(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 G(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,f=(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,f(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},W=(d,e)=>v(d,e)&&fe(d,e+6)+10<=d.length-e,P=d=>{const e=Te(d);for(let t=0;t<e.length;t++){const r=e[t];if(te(r))return Xe(r)}},te=d=>d&&d.key==="PRIV"&&d.info==="com.apple.streaming.transportStreamTimestamp",Ie=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)}},Te=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=Ie(d.subarray(e)),l=Se(s);l&&t.push(l),e+=s.size+10}f(d,e)&&(e+=10)}return t},Se=d=>d.type==="PRIV"?Ge(d):d.type[0]==="W"?Ke(d):dt(d),Ge=d=>{if(d.size<2)return;const e=At(d.data,!0),t=new Uint8Array(d.data.subarray(e.length+1));return{key:d.type,info:e,data:t.buffer}},dt=d=>{if(d.size<2)return;if(d.type==="TXXX"){let t=1;const r=At(d.data.subarray(t),!0);t+=r.length+1;const i=At(d.data.subarray(t));return{key:d.type,info:r,data:i}}const e=At(d.data.subarray(1));return{key:d.type,data:e}},Ke=d=>{if(d.type==="WXXX"){if(d.size<2)return;let t=1;const r=At(d.data.subarray(t),!0);t+=r.length+1;const i=At(d.data.subarray(t));return{key:d.type,info:r,data:i}}const e=At(d.data);return{key:d.type,data:e}},Xe=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)}},At=(d,e=!1)=>{const t=$e();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 We;function $e(){if(!navigator.userAgent.includes("PlayStation 4"))return!We&&typeof self.TextDecoder!="undefined"&&(We=new self.TextDecoder("utf-8")),We}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}},Kt=Math.pow(2,32)-1,Mt=[].push,br={video:1,audio:2,id3:3,text:4};function vr(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=Me(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 Me(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 Zr(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 Tt(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=vr(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=Tt(d.subarray(i+8,x),e.slice(1));j.length&&Mt.apply(t,j)}i=x}return t}function Yt(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 Re=ue(d,Ae);Ae+=4;const Ye=Re&2147483647;if((Re&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 Gt(d){const e=[],t=Tt(d,["moov","trak"]);for(let i=0;i<t.length;i++){const s=t[i],l=Tt(s,["tkhd"])[0];if(l){let x=l[0];const j=ue(l,x===0?12:20),q=Tt(s,["mdia","mdhd"])[0];if(q){x=q[0];const Ae=ue(q,x===0?12:20),Re=Tt(s,["mdia","hdlr"])[0];if(Re){const Ye=vr(Re.subarray(8,12)),Je={soun:me.AUDIO,vide:me.VIDEO}[Ye];if(Je){const lt=Tt(s,["mdia","minf","stbl","stsd"])[0],_t=nt(lt);e[j]={timescale:Ae,type:Je},e[Je]=ie({timescale:Ae,id:j},_t)}}}}}return Tt(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 nt(d){const e=d.subarray(8),t=e.subarray(86),r=vr(e.subarray(4,8));let i=r;const s=r==="enca"||r==="encv";if(s){const x=Tt(e,[r])[0].subarray(r==="enca"?28:78);Tt(x,["sinf"]).forEach(q=>{const Ae=Tt(q,["schm"])[0];if(Ae){const Re=vr(Ae.subarray(4,8));if(Re==="cbcs"||Re==="cenc"){const Ye=Tt(q,["frma"])[0];Ye&&(i=vr(Ye))}}})}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const l=Tt(t,["avcC"])[0];i+="."+pt(l[1])+pt(l[2])+pt(l[3]);break}case"mp4a":{const l=Tt(e,[r])[0],x=Tt(l.subarray(28),["esds"])[0];if(x&&x.length>12){let j=4;if(x[j++]!==3)break;j=ct(x,j),j+=2;const q=x[j++];if(q&128&&(j+=2),q&64&&(j+=x[j++]),x[j++]!==4)break;j=ct(x,j);const Ae=x[j++];if(Ae===64)i+="."+pt(Ae);else break;if(j+=12,x[j++]!==5)break;j=ct(x,j);const Re=x[j++];let Ye=(Re&248)>>3;Ye===31&&(Ye+=1+((Re&7)<<3)+((x[j]&224)>>5)),i+="."+Ye}break}case"hvc1":case"hev1":{const l=Tt(t,["hvcC"])[0],x=l[1],j=["","A","B","C"][x>>6],q=x&31,Ae=ue(l,2),Re=(x&32)>>5?"H":"L",Ye=l[12],Je=l.subarray(6,12);i+="."+j+q,i+="."+Ae.toString(16).toUpperCase(),i+="."+Re+Ye;let lt="";for(let _t=Je.length;_t--;){const Ft=Je[_t];(Ft||lt)&&(lt="."+Ft.toString(16).toUpperCase()+lt)}i+=lt;break}case"dvh1":case"dvhe":{const l=Tt(t,["dvcC"])[0],x=l[2]>>1&127,j=l[2]<<5&32|l[3]>>3&31;i+="."+Zt(x)+"."+Zt(j);break}case"vp09":{const l=Tt(t,["vpcC"])[0],x=l[4],j=l[5],q=l[6]>>4&15;i+="."+Zt(x)+"."+Zt(j)+"."+Zt(q);break}case"av01":{const l=Tt(t,["av1C"])[0],x=l[1]>>>5,j=l[1]&31,q=l[2]>>>7?"H":"M",Ae=(l[2]&64)>>6,Re=(l[2]&32)>>5,Ye=x===2&&Ae?Re?12:10:Ae?10:8,Je=(l[2]&16)>>4,lt=(l[2]&8)>>3,_t=(l[2]&4)>>2,Ft=l[2]&3;i+="."+x+"."+Zt(j)+q+"."+Zt(Ye)+"."+Je+"."+lt+_t+Ft+"."+Zt(1)+"."+Zt(1)+"."+Zt(1)+"."+0;break}}return{codec:i,encrypted:s}}function ct(d,e){const t=e+5;for(;d[e++]&128&&e<t;);return e}function pt(d){return("0"+d.toString(16).toUpperCase()).slice(-2)}function Zt(d){return(d<10?"0":"")+d}function Oe(d,e){if(!d||!e)return d;const t=e.keyId;return t&&e.isCommonEncryption&&Tt(d,["moov","trak"]).forEach(i=>{const l=Tt(i,["mdia","minf","stbl","stsd"])[0].subarray(8);let x=Tt(l,["enca"]);const j=x.length>0;j||(x=Tt(l,["encv"])),x.forEach(q=>{const Ae=j?q.subarray(28):q.subarray(78);Tt(Ae,["sinf"]).forEach(Ye=>{const Je=fn(Ye);if(Je){const lt=Je.subarray(8,24);lt.some(_t=>_t!==0)||(B.log(`[eme] Patching keyId in 'enc${j?"a":"v"}>sinf>>tenc' box: ${Bt.hexDump(lt)} -> ${Bt.hexDump(t)}`),Je.set(t,8))}})})}),d}function fn(d){const e=Tt(d,["schm"])[0];if(e){const t=vr(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return Tt(d,["schi","tenc"])[0]}return null}function Nt(d,e){return Tt(e,["moof","traf"]).reduce((t,r)=>{const i=Tt(r,["tfdt"])[0],s=i[0],l=Tt(r,["tfhd"]).reduce((x,j)=>{const q=ue(j,4),Ae=d[q];if(Ae){let Re=ue(i,4);if(s===1){if(Re===Kt)return B.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),x;Re*=Kt+1,Re+=ue(i,8)}const Ye=Ae.timescale||9e4,Je=Re/Ye;if(o(Je)&&(x===null||Je<x))return Je}return x},null);return l!==null&&o(l)&&(t===null||l<t)?l:t},null)}function Ln(d,e){let t=0,r=0,i=0;const s=Tt(d,["moof","traf"]);for(let l=0;l<s.length;l++){const x=s[l],j=Tt(x,["tfhd"])[0],q=ue(j,4),Ae=e[q];if(!Ae)continue;const Re=Ae.default,Ye=ue(j,0)|(Re==null?void 0:Re.flags);let Je=Re==null?void 0:Re.duration;Ye&8&&(Ye&2?Je=ue(j,12):Je=ue(j,8));const lt=Ae.timescale||9e4,_t=Tt(x,["trun"]);for(let Ft=0;Ft<_t.length;Ft++){if(t=Vn(_t[Ft]),!t&&Je){const gr=ue(_t[Ft],4);t=Je*gr}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=Tt(d,["sidx"]);for(let Ae=0;Ae<q.length;Ae++){const Re=Yt(q[Ae]);if(Re!=null&&Re.references){l=Math.min(l,Re.earliestPresentationTime/Re.timescale);const Ye=Re.references.reduce((Je,lt)=>Je+lt.info.duration||0,0);x=Math.max(x,Ye+Re.earliestPresentationTime/Re.timescale),j=x-l}}if(j&&o(j))return j}return r||i}function Vn(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){Tt(e,["moof","traf"]).forEach(r=>{Tt(r,["tfhd"]).forEach(i=>{const s=ue(i,4),l=d[s];if(!l)return;const x=l.timescale||9e4;Tt(r,["tfdt"]).forEach(j=>{const q=j[0],Ae=t*x;if(Ae){let Re=ue(j,4);if(q===0)Re-=Ae,Re=Math.max(Re,0),ot(j,4,Re);else{Re*=Math.pow(2,32),Re+=ue(j,8),Re-=Ae,Re=Math.max(Re,0);const Ye=Math.floor(Re/(Kt+1)),Je=Math.floor(Re%(Kt+1));ot(j,4,Ye),ot(j,8,Je)}}})})})}function Ki(d){const e={valid:null,remainder:null},t=Tt(d,["moof"]);if(t.length<2)return e.remainder=d,e;const r=t[t.length-1];return e.valid=G(d,0,r.byteOffset-8),e.remainder=G(d,r.byteOffset-8),e}function jn(d,e){const t=new Uint8Array(d.length+e.length);return t.set(d),t.set(e,d.length),t}function kn(d,e){const t=[],r=e.samples,i=e.timescale,s=e.id;let l=!1;return Tt(r,["moof"]).map(j=>{const q=j.byteOffset-8;Tt(j,["traf"]).map(Re=>{const Ye=Tt(Re,["tfdt"]).map(Je=>{const lt=Je[0];let _t=ue(Je,4);return lt===1&&(_t*=Math.pow(2,32),_t+=ue(Je,8)),_t/i})[0];return Ye!==void 0&&(d=Ye),Tt(Re,["tfhd"]).map(Je=>{const lt=ue(Je,4),_t=ue(Je,0)&16777215,Ft=(_t&1)!==0,gr=(_t&2)!==0,Nr=(_t&8)!==0;let Rr=0;const Un=(_t&16)!==0;let un=0;const gi=(_t&32)!==0;let Kn=8;lt===s&&(Ft&&(Kn+=8),gr&&(Kn+=4),Nr&&(Rr=ue(Je,Kn),Kn+=4),Un&&(un=ue(Je,Kn),Kn+=4),gi&&(Kn+=4),e.type==="video"&&(l=qt(e.codec)),Tt(Re,["trun"]).map(Ii=>{const qi=Ii[0],mi=ue(Ii,0)&16777215,Pi=(mi&1)!==0;let Za=0;const na=(mi&4)!==0,ja=(mi&256)!==0;let Qa=0;const Ra=(mi&512)!==0;let Fs=0;const Ks=(mi&1024)!==0,fa=(mi&2048)!==0;let sa=0;const ks=ue(Ii,4);let ps=8;Pi&&(Za=ue(Ii,ps),ps+=4),na&&(ps+=4);let Ws=Za+q;for(let lo=0;lo<ks;lo++){if(ja?(Qa=ue(Ii,ps),ps+=4):Qa=Rr,Ra?(Fs=ue(Ii,ps),ps+=4):Fs=un,Ks&&(ps+=4),fa&&(qi===0?sa=ue(Ii,ps):sa=Me(Ii,ps),ps+=4),e.type===me.VIDEO){let Ms=0;for(;Ms<Fs;){const Fo=ue(r,Ws);if(Ws+=4,zr(l,r[Ws])){const dl=r.subarray(Ws,Ws+Fo);Jr(dl,l?2:1,d+sa/i,t)}Ws+=Fo,Ms+=Fo+4}}d+=Qa/i}}))})})}),t}function qt(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 zr(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 Je=ue(i,Ae);if(Ae+=4,Je===1195456820){const lt=i[Ae++];if(lt===3){const _t=i[Ae++],Ft=31&_t,gr=64&_t,Nr=gr?2+Ft*3:0,Rr=new Uint8Array(Nr);if(gr){Rr[0]=_t;for(let Un=1;Un<Nr;Un++)Rr[Un]=i[Ae++]}r.push({type:lt,payloadType:l,pts:t,bytes:Rr})}}}}}else if(l===5&&x>16){const Re=[];for(let lt=0;lt<16;lt++){const _t=i[Ae++].toString(16);Re.push(_t.length==1?"0"+_t:_t),(lt===3||lt===5||lt===7||lt===9)&&Re.push("-")}const Ye=x-16,Je=new Uint8Array(Ye);for(let lt=0;lt<Ye;lt++)Je[lt]=i[Ae++];r.push({payloadType:l,pts:t,uuid:Re.join(""),userData:At(Je),userDataBytes:Je})}}}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 Ct(d){const e=d[0];let t="",r="",i=0,s=0,l=0,x=0,j=0,q=0;if(e===0){for(;vr(d.subarray(q,q+1))!=="\0";)t+=vr(d.subarray(q,q+1)),q+=1;for(t+=vr(d.subarray(q,q+1)),q+=1;vr(d.subarray(q,q+1))!=="\0";)r+=vr(d.subarray(q,q+1)),q+=1;r+=vr(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 Re=ue(d,q);q+=4;const Ye=ue(d,q);for(q+=4,l=GA(2,32)*Re+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;vr(d.subarray(q,q+1))!=="\0";)t+=vr(d.subarray(q,q+1)),q+=1;for(t+=vr(d.subarray(q,q+1)),q+=1;vr(d.subarray(q,q+1))!=="\0";)r+=vr(d.subarray(q,q+1)),q+=1;r+=vr(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 Ir(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 Fr(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),Ir([112,115,115,104],new Uint8Array([r,0,0,0]),d,s,i,l,t||new Uint8Array)}function Tn(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 Re=0;Re<j;Re++)q.push(new Uint8Array(l,t+32+Re*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 Rt.FAIRPLAY:case Rt.WIDEVINE:case Rt.PLAYREADY:case Rt.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=zn(e);return new gn(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=pe(this.uri);if(t)switch(this.keyFormat){case Rt.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Rt.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Fr(r,null,t),this.keyId=St(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 zn(d){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=d>>8*(15-t)&255;return e}const Xn=/\{\$([a-zA-Z0-9-_]+)\}/g;function Qr(d){return Xn.test(d)}function Gr(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]=Sn(d,s))}}function Sn(d,e){if(d.variableList!==null||d.hasVariableRefs){const t=d.variableList;return e.replace(Xn,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 On(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 Qn(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 Jn(d=!0){return typeof self=="undefined"?void 0:(d||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ni(d){return typeof self!="undefined"&&d===self.ManagedMediaSource}const li={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 vn(d,e){const t=li[e];return!!t&&!!t[d.slice(0,4)]}function hr(d,e,t=!0){return!d.split(",").some(r=>!wr(r,e,t))}function wr(d,e,t=!0){var r;const i=Jn(t);return(r=i==null?void 0:i.isTypeSupported(Or(d,e)))!=null?r:!1}function Or(d,e){return`${e}/mp4;codecs="${d}"`}function Hr(d){if(d){const e=d.substring(0,4);return li.video[e]}return 2}function Ur(d){return d.split(",").reduce((e,t)=>{const r=li.video[t];return r?(r*2+e)/(e?3:2):(li.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(wr(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 Oi=/#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,Qi=/#EXT-X-MEDIA:(.*)/g,Tr=/^#EXT(?:INF|-X-TARGETDURATION):/m,En=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 Ai{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=Qr(e),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},s=[];Oi.lastIndex=0;let l;for(;(l=Oi.exec(e))!=null;)if(l[1]){var x;const q=new J(l[1]);Gr(i,q,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const Ae=Sn(i,l[2]),Re={attrs:q,bitrate:q.decimalInteger("BANDWIDTH")||q.decimalInteger("AVERAGE-BANDWIDTH"),name:q.NAME,url:Ai.resolve(Ae,t)},Ye=q.decimalResolution("RESOLUTION");Ye&&(Re.width=Ye.width,Re.height=Ye.height),wi(q.CODECS,Re),(x=Re.unknownCodecs)!=null&&x.length||s.push(Re),i.levels.push(Re)}else if(l[3]){const q=l[3],Ae=l[4];switch(q){case"SESSION-DATA":{const Re=new J(Ae);Gr(i,Re,["DATA-ID","LANGUAGE","VALUE","URI"]);const Ye=Re["DATA-ID"];Ye&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[Ye]=Re);break}case"SESSION-KEY":{const Re=si(Ae,t,i);Re.encrypted&&Re.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(Re)):B.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${Ae}"`);break}case"DEFINE":{{const Re=new J(Ae);Gr(i,Re,["NAME","VALUE","QUERYPARAM"]),On(i,Re,t)}break}case"CONTENT-STEERING":{const Re=new J(Ae);Gr(i,Re,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:Ai.resolve(Re["SERVER-URI"],t),pathwayId:Re["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(Qi.lastIndex=0;(i=Qi.exec(e))!==null;){const q=new J(i[1]),Ae=q.TYPE;if(Ae){const Re=x[Ae],Ye=s[Ae]||[];s[Ae]=Ye,Gr(r,q,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const Je=q.LANGUAGE,lt=q["ASSOC-LANGUAGE"],_t=q.CHANNELS,Ft=q.CHARACTERISTICS,gr=q["INSTREAM-ID"],Nr={attrs:q,bitrate:0,id:j++,groupId:q["GROUP-ID"]||"",name:q.NAME||Je||"",type:Ae,default:q.bool("DEFAULT"),autoselect:q.bool("AUTOSELECT"),forced:q.bool("FORCED"),lang:Je,url:q.URI?Ai.resolve(q.URI,t):""};if(lt&&(Nr.assocLang=lt),_t&&(Nr.channels=_t),Ft&&(Nr.characteristics=Ft),gr&&(Nr.instreamId=gr),Re!=null&&Re.length){const Rr=Ai.findGroup(Re,Nr.groupId)||Re[0];Ti(Nr,Rr,"audioCodec"),Ti(Nr,Rr,"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,Re=0,Ye=0,Je=0,lt=null,_t=new Ee(i,t),Ft,gr,Nr,Rr=-1,Un=!1,un=null;for(En.lastIndex=0,x.m3u8=e,x.hasVariableRefs=Qr(e);(Ft=En.exec(e))!==null;){Un&&(Un=!1,_t=new Ee(i,t),_t.start=Ye,_t.sn=Ae,_t.cc=Je,_t.level=r,q&&(_t.initSegment=q,_t.rawProgramDateTime=q.rawProgramDateTime,q.rawProgramDateTime=null,un&&(_t.setByteRange(un),un=null)));const qi=Ft[1];if(qi){_t.duration=parseFloat(qi);const mi=(" "+Ft[2]).slice(1);_t.title=mi||null,_t.tagList.push(mi?["INF",qi,mi]:["INF",qi])}else if(Ft[3]){if(o(_t.duration)){_t.start=Ye,Nr&&Ei(_t,Nr,x),_t.sn=Ae,_t.level=r,_t.cc=Je,j.push(_t);const mi=(" "+Ft[3]).slice(1);_t.relurl=Sn(x,mi),zi(_t,lt),lt=_t,Ye+=_t.duration,Ae++,Re=0,Un=!0}}else if(Ft[4]){const mi=(" "+Ft[4]).slice(1);lt?_t.setByteRange(mi,lt):_t.setByteRange(mi)}else if(Ft[5])_t.rawProgramDateTime=(" "+Ft[5]).slice(1),_t.tagList.push(["PROGRAM-DATE-TIME",_t.rawProgramDateTime]),Rr===-1&&(Rr=j.length);else{if(Ft=Ft[0].match(hn),!Ft){B.warn("No matches on slow regex match for level playlist!");continue}for(gr=1;gr<Ft.length&&typeof Ft[gr]=="undefined";gr++);const mi=(" "+Ft[gr]).slice(1),Pi=(" "+Ft[gr+1]).slice(1),Za=Ft[gr+2]?(" "+Ft[gr+2]).slice(1):"";switch(mi){case"PLAYLIST-TYPE":x.type=Pi.toUpperCase();break;case"MEDIA-SEQUENCE":Ae=x.startSN=parseInt(Pi);break;case"SKIP":{const na=new J(Pi);Gr(x,na,["RECENTLY-REMOVED-DATERANGES"]);const ja=na.decimalInteger("SKIPPED-SEGMENTS");if(o(ja)){x.skippedSegments=ja;for(let Ra=ja;Ra--;)j.unshift(null);Ae+=ja}const Qa=na.enumeratedString("RECENTLY-REMOVED-DATERANGES");Qa&&(x.recentlyRemovedDateranges=Qa.split(" "));break}case"TARGETDURATION":x.targetduration=Math.max(parseInt(Pi),1);break;case"VERSION":x.version=parseInt(Pi);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":x.live=!1;break;case"#":(Pi||Za)&&_t.tagList.push(Za?[Pi,Za]:[Pi]);break;case"DISCONTINUITY":Je++,_t.tagList.push(["DIS"]);break;case"GAP":_t.gap=!0,_t.tagList.push([mi]);break;case"BITRATE":_t.tagList.push([mi,Pi]);break;case"DATERANGE":{const na=new J(Pi);Gr(x,na,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Gr(x,na,na.clientAttrs);const ja=new Le(na,x.dateRanges[na.ID]);ja.isValid||x.skippedSegments?x.dateRanges[ja.id]=ja:B.warn(`Ignoring invalid DATERANGE tag: "${Pi}"`),_t.tagList.push(["EXT-X-DATERANGE",Pi]);break}case"DEFINE":{{const na=new J(Pi);Gr(x,na,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in na?Qn(x,na,l):On(x,na,t)}break}case"DISCONTINUITY-SEQUENCE":Je=parseInt(Pi);break;case"KEY":{const na=si(Pi,t,x);if(na.isSupported()){if(na.method==="NONE"){Nr=void 0;break}Nr||(Nr={}),Nr[na.keyFormat]&&(Nr=n({},Nr)),Nr[na.keyFormat]=na}else B.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Pi}"`);break}case"START":x.startTimeOffset=ri(Pi);break;case"MAP":{const na=new J(Pi);if(Gr(x,na,["BYTERANGE","URI"]),_t.duration){const ja=new Ee(i,t);oa(ja,na,r,Nr),q=ja,_t.initSegment=q,q.rawProgramDateTime&&!_t.rawProgramDateTime&&(_t.rawProgramDateTime=q.rawProgramDateTime)}else{const ja=_t.byteRangeEndOffset;if(ja){const Qa=_t.byteRangeStartOffset;un=`${ja-Qa}@${Qa}`}else un=null;oa(_t,na,r,Nr),q=_t,Un=!0}break}case"SERVER-CONTROL":{const na=new J(Pi);x.canBlockReload=na.bool("CAN-BLOCK-RELOAD"),x.canSkipUntil=na.optionalFloat("CAN-SKIP-UNTIL",0),x.canSkipDateRanges=x.canSkipUntil>0&&na.bool("CAN-SKIP-DATERANGES"),x.partHoldBack=na.optionalFloat("PART-HOLD-BACK",0),x.holdBack=na.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const na=new J(Pi);x.partTarget=na.decimalFloatingPoint("PART-TARGET");break}case"PART":{let na=x.partList;na||(na=x.partList=[]);const ja=Re>0?na[na.length-1]:void 0,Qa=Re++,Ra=new J(Pi);Gr(x,Ra,["BYTERANGE","URI"]);const Fs=new oe(Ra,_t,t,Qa,ja);na.push(Fs),_t.duration+=Fs.duration;break}case"PRELOAD-HINT":{const na=new J(Pi);Gr(x,na,["URI"]),x.preloadHint=na;break}case"RENDITION-REPORT":{const na=new J(Pi);Gr(x,na,["URI"]),x.renditionReports=x.renditionReports||[],x.renditionReports.push(na);break}default:B.warn(`line parsed but not handled: ${Ft}`);break}}}lt&&!lt.relurl?(j.pop(),Ye-=lt.duration,x.partList&&(x.fragmentHint=lt)):x.partList&&(zi(_t,lt),_t.cc=Je,x.fragmentHint=_t,Nr&&Ei(_t,Nr,x));const gi=j.length,Kn=j[0],Ii=j[gi-1];if(Ye+=x.skippedSegments*x.targetduration,Ye>0&&gi&&Ii){x.averagetargetduration=Ye/gi;const qi=Ii.sn;x.endSN=qi!=="initSegment"?qi:0,x.live||(Ii.endList=!0),Kn&&(x.startCC=Kn.cc)}else x.endSN=0,x.startCC=0;return x.fragmentHint&&(Ye+=x.fragmentHint.duration),x.totalduration=Ye,x.endCC=Je,Rr>0&&Bi(j,Rr),x}}function si(d,e,t){var r,i;const s=new J(d);Gr(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 Re=x?Ai.resolve(x,e):"",Ye=(q||"1").split("/").map(Number).filter(Number.isFinite);return new gn(l,Re,Ae,Ye,j)}function ri(d){const t=new J(d).decimalFloatingPoint("TIME-OFFSET");return o(t)?t:null}function wi(d,e){let t=(d||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const i=t.filter(s=>vn(s,r));i.length&&(e[`${r}Codec`]=i.join(","),t=t.filter(s=>i.indexOf(s)===-1))}),e.unknownCodecs=t}function Ti(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 oa(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 Ei(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 wn={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ht={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Fn(d){const{type:e}=d;switch(e){case wn.AUDIO_TRACK:return Ht.AUDIO;case wn.SUBTITLE_TRACK:return Ht.SUBTITLE;default:return Ht.MAIN}}function Gn(d,e){let t=d.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Ci{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:wn.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:wn.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:wn.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:wn.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===wn.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===wn.LEVEL&&e.level!==null?q=this.hls.levels[e.level].details:e.type===wn.AUDIO_TRACK&&e.id!==null?q=this.hls.audioTracks[e.id].details:e.type===wn.SUBTITLE_TRACK&&e.id!==null&&(q=this.hls.subtitleTracks[e.id].details),q){const Ae=q.partTarget,Re=q.targetduration;if(Ae&&Re){const Ye=Math.max(Ae*3,Re*.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,Re,Ye)=>{const Je=this.getInternalLoader(Re);this.resetInternalLoader(Re.type);const lt=q.data;if(lt.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(q,Re,new Error("no EXTM3U delimiter"),Ye||null,Ae);return}Ae.parsing.start=performance.now(),Ai.isMediaPlaylist(lt)?this.handleTrackOrLevelPlaylist(q,Ae,Re,Ye||null,Je):this.handleMasterPlaylist(q,Ae,Re,Ye)},onError:(q,Ae,Re,Ye)=>{this.handleNetworkError(Ae,Re,!1,q,Ye)},onTimeout:(q,Ae,Re)=>{this.handleNetworkError(Ae,Re,!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=Ai.parseMasterPlaylist(l,x);if(j.playlistParsingError){this.handleManifestParsingError(e,r,j.playlistParsingError,i,t);return}const{contentSteering:q,levels:Ae,sessionData:Re,sessionKeys:Ye,startTimeOffset:Je,variableList:lt}=j;this.variableList=lt;const{AUDIO:_t=[],SUBTITLES:Ft,"CLOSED-CAPTIONS":gr}=Ai.parseMasterPlaylistMedia(l,x,j);_t.length&&!_t.some(Rr=>!Rr.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"),_t.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:_t,subtitles:Ft,captions:gr,contentSteering:q,url:x,stats:t,networkDetails:i,sessionData:Re,sessionKeys:Ye,startTimeOffset:Je,variableList:lt})}handleTrackOrLevelPlaylist(e,t,r,i,s){const l=this.hls,{id:x,level:j,type:q}=r,Ae=Gn(e,r),Re=0,Ye=o(j)?j:o(x)?x:0,Je=Fn(r),lt=Ai.parseLevelPlaylist(e.data,Ae,Ye,Je,Re,this.variableList);if(q===wn.MANIFEST){const _t={attrs:new J({}),bitrate:0,details:lt,name:"",url:Ae};l.trigger(a.MANIFEST_LOADED,{levels:[_t],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===wn.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===wn.LEVEL?l+=`: ${e.level} id: ${e.id}`:(e.type===wn.AUDIO_TRACK||e.type===wn.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 wn.MANIFEST:j=r?m.MANIFEST_LOAD_TIMEOUT:m.MANIFEST_LOAD_ERROR,q=!0;break;case wn.LEVEL:j=r?m.LEVEL_LOAD_TIMEOUT:m.LEVEL_LOAD_ERROR,q=!1;break;case wn.AUDIO_TRACK:j=r?m.AUDIO_TRACK_LOAD_TIMEOUT:m.AUDIO_TRACK_LOAD_ERROR,q=!1;break;case wn.SUBTITLE_TRACK:j=r?m.SUBTITLE_TRACK_LOAD_TIMEOUT:m.SUBTITLE_LOAD_ERROR,q=!1;break}Ae&&this.resetInternalLoader(e.type);const Re={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;Re.response=ie({url:Ye,data:void 0},i)}this.hls.trigger(a.ERROR,Re)}handlePlaylistLoaded(e,t,r,i,s,l){const x=this.hls,{type:j,level:q,id:Ae,groupId:Re,deliveryDirectives:Ye}=i,Je=Gn(t,i),lt=Fn(i),_t=typeof i.level=="number"&<===Ht.MAIN?q:void 0;if(!e.fragments.length){const gr=new Error("No Segments found in Playlist");x.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.LEVEL_EMPTY_ERROR,fatal:!1,url:Je,error:gr,reason:gr.message,response:t,context:i,level:_t,parent:lt,networkDetails:s,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Ft=e.playlistParsingError;if(Ft){x.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.LEVEL_PARSING_ERROR,fatal:!1,url:Je,error:Ft,reason:Ft.message,response:t,context:i,level:_t,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 wn.MANIFEST:case wn.LEVEL:x.trigger(a.LEVEL_LOADED,{details:e,level:_t||0,id:Ae||0,stats:r,networkDetails:s,deliveryDirectives:Ye});break;case wn.AUDIO_TRACK:x.trigger(a.AUDIO_TRACK_LOADED,{details:e,id:Ae||0,groupId:Re||"",stats:r,networkDetails:s,deliveryDirectives:Ye});break;case wn.SUBTITLE_TRACK:x.trigger(a.SUBTITLE_TRACK_LOADED,{details:e,id:Ae||0,groupId:Re||"",stats:r,networkDetails:s,deliveryDirectives:Ye});break}}}function ki(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 Aa(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 Ca(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 ta(d,e,t,r){const i=d.mode;if(i==="disabled"&&(d.mode="hidden"),d.cues&&d.cues.length>0){const s=La(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 xa(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 La(d,e,t){const r=[],i=xa(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 hi(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 bi={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const Hi=.25;function ha(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Na(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 ci=(()=>{const d=ha();try{d&&new d(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function pa(d,e){return d.getTime()/1e3-e}function va(d){return Uint8Array.from(d.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Ha{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&&(Ca(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 ki(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=ha();if(l)for(let x=0;x<s.length;x++){const j=s[x].type;if(j===bi.emsg&&!r||!i)continue;const q=Te(s[x].data);if(q){const Ae=s[x].pts;let Re=Ae+s[x].duration;Re>ci&&(Re=ci),Re-Ae<=0&&(Re=Ae+Hi);for(let Je=0;Je<q.length;Je++){const lt=q[Je];if(!te(lt)){this.updateId3CueEnds(Ae,j);const _t=Na(l,Ae,Re,lt,j);_t&&this.id3Track.addCue(_t)}}}}}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===ci&&(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===bi.audioId3&&j:i==="video"?q=Ae=>Ae.type===bi.emsg&&x:q=Ae=>Ae.type===bi.audioId3&&j||Ae.type===bi.emsg&&x,ta(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(Re=>!l.includes(Re));for(let Re=Ae.length;Re--;){const Ye=Ae[Re];Object.keys(r[Ye].cues).forEach(Je=>{i.removeCue(r[Ye].cues[Je])}),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=ha();for(let Ae=0;Ae<l.length;Ae++){const Re=l[Ae],Ye=s[Re],Je=pa(Ye.startDate,j),lt=r[Re],_t=(lt==null?void 0:lt.cues)||{};let Ft=(lt==null?void 0:lt.durationKnown)||!1,gr=ci;const Nr=Ye.endDate;if(Nr)gr=pa(Nr,j),Ft=!0;else if(Ye.endOnNext&&!Ft){const Un=l.reduce((un,gi)=>{if(gi!==Ye.id){const Kn=s[gi];if(Kn.class===Ye.class&&Kn.startDate>Ye.startDate&&(!un||Ye.startDate<un.startDate))return Kn}return un},null);Un&&(gr=pa(Un.startDate,j),Ft=!0)}const Rr=Object.keys(Ye.attr);for(let Un=0;Un<Rr.length;Un++){const un=Rr[Un];if(!be(un))continue;const gi=_t[un];if(gi)Ft&&!lt.durationKnown&&(gi.endTime=gr);else if(q){let Kn=Ye.attr[un];Ce(un)&&(Kn=va(Kn));const Ii=Na(q,Je,gr,{key:un,data:Kn},bi.dateRange);Ii&&(Ii.id=Re,this.id3Track.addCue(Ii),_t[un]=Ii)}}r[Re]={cues:_t,dateRange:Ye,durationKnown:Ft}}}}class Is{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)),Re=Math.round(2/(1+Math.exp(-.75*x-this.edgeStalled))*20)/20;e.playbackRate=Math.min(Ae,Math.max(1,Re))}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 Wa=["NONE","TYPE-0","TYPE-1",null];function Fa(d){return Wa.indexOf(d)>-1}const Mi=["SDR","PQ","HLG"];function la(d){return!!d&&Mi.indexOf(d)>-1}var ms={No:"",Yes:"YES",v2:"v2"};function ss(d){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=d,i=r<e/2;return e&&i?t?ms.v2:ms.Yes:ms.No}class ns{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 gs(this._audioGroups,e)}hasSubtitleGroup(e){return gs(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 gs(d,e){return!e||!d?!1:d.indexOf(e)!==-1}function ia(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 Ft=Math.abs(q-t);o(e.deltaPTS)?e.deltaPTS=Math.max(Ft,e.deltaPTS):e.deltaPTS=Ft,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 Re=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 Je;const lt=Ye-d.startSN,_t=d.fragments;for(_t[lt]=e,Je=lt;Je>0;Je--)ia(_t[Je],_t[Je-1]);for(Je=lt;Je<_t.length-1;Je++)ia(_t[Je],_t[Je+1]);return d.fragmentHint&&ia(_t[_t.length-1],d.fragmentHint),d.PTSKnown=d.alignedSliding=!0,Re}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 Re=x.cc-j.cc;for(let Ye=q;Ye<Ae.length;Ye++)Ae[Ye].cc+=Re}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}hs(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):os(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 Le(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 hs(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 Re=x[q];r&&!Re&&q<r&&(Re=e.fragments[q]=Ae),Ae&&Re&&t(Ae,Re,q,x)}}function os(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 Da(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?ea((r=d.details)==null?void 0:r.partList,e,t):null}function ea(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 ji(d){d.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(i=>{i.level=t})})}function Ui(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 ba(d,e){const t=Ui(e);return d.default[`${t?"timeout":"error"}Retry`]}function ka(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 As(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 is={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=is.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 is.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 vs{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)===Ht.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===Ht.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===wn.AUDIO_TRACK&&q.hasAudioGroup(l.groupId)||l.type===wn.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=ba(r.config.playlistLoadPolicy,e),s=this.playlistError++;if(As(i,s,Ui(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=ba(e.details.startsWith("key")?l:s,e),j=t.levels.reduce((Ae,Re)=>Ae+Re.fragmentError,0);if(i&&(e.details!==m.FRAG_GAP&&i.fragmentError++,As(x,j,Ui(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:Re,loadLevel:Ye,minAutoLevel:Je,maxAutoLevel:lt}=r;r.autoLevelEnabled||(r.loadLevel=-1);const _t=(s=e.frag)==null?void 0:s.type,gr=(_t===Ht.AUDIO&&q===m.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(q===m.BUFFER_ADD_CODEC_ERROR||q===m.BUFFER_APPEND_ERROR))&&Re.some(({audioCodec:gi})=>i.audioCodec!==gi),Rr=e.sourceBufferName==="video"&&(q===m.BUFFER_ADD_CODEC_ERROR||q===m.BUFFER_APPEND_ERROR)&&Re.some(({codecSet:gi,audioCodec:Kn})=>i.codecSet!==gi&&i.audioCodec===Kn),{type:Un,groupId:un}=(l=e.context)!=null?l:{};for(let gi=Re.length;gi--;){const Kn=(gi+Ye)%Re.length;if(Kn!==Ye&&Kn>=Je&&Kn<=lt&&Re[Kn].loadError===0){var x,j;const Ii=Re[Kn];if(q===m.FRAG_GAP&&_t===Ht.MAIN&&e.frag){const qi=Re[Kn].details;if(qi){const mi=go(e.frag,qi.fragments,e.frag.start);if(mi!=null&&mi.gap)continue}}else{if(Un===wn.AUDIO_TRACK&&Ii.hasAudioGroup(un)||Un===wn.SUBTITLE_TRACK&&Ii.hasSubtitleGroup(un))continue;if(_t===Ht.AUDIO&&(x=i.audioGroups)!=null&&x.some(qi=>Ii.hasAudioGroup(qi))||_t===Ht.SUBTITLE&&(j=i.subtitleGroups)!=null&&j.some(qi=>Ii.hasSubtitleGroup(qi))||gr&&i.audioCodec===Ii.audioCodec||!gr&&i.audioCodec!==Ii.audioCodec||Rr&&i.codecSet===Ii.codecSet)continue}Ae=Kn;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=Wa[Wa.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&&ss(r);return new ns(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 Ft=this.hls.config.lowLatencyMode,gr=i.lastPartSn,Nr=i.endSN,Rr=i.lastPartIndex,Un=Rr!==-1,un=gr===Nr,gi=Ft?0:Rr;Un?(q=un?Nr+1:gr,Ae=un?gi:Rr+1):q=Nr+1;const Kn=i.age,Ii=Kn+i.ageHeader;let qi=Math.min(Ii-i.partTarget,i.targetduration*1.5);if(qi>0){if(r&&qi>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${qi} with playlist age: ${i.age}`),qi=0;else{const mi=Math.floor(qi/i.targetduration);if(q+=mi,Ae!==void 0){const Pi=Math.round(qi%i.targetduration/i.partTarget);Ae+=Pi}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${Kn.toFixed(2)}s goal: ${qi} skip sn ${mi} to part ${Ae}`)}i.tuneInGoal=qi}if(j=this.getDeliveryDirectives(i,t.deliveryDirectives,q,Ae),Ft||!un){this.loadPlaylist(j);return}}else(i.canBlockReload||i.canSkipUntil)&&(j=this.getDeliveryDirectives(i,t.deliveryDirectives,q,Ae));const Re=this.hls.mainForwardBufferInfo,Ye=Re?Re.end-Re.len:0,Je=(i.edge-Ye)*1e3,lt=Da(i,Je);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 _t=this.requestScheduled-l;_t=Math.max(0,_t),this.log(`reload live playlist ${e} in ${Math.round(_t)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(j),_t)}else this.clearTimer()}getDeliveryDirectives(e,t,r,i){let s=ss(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,i=t.part,s=ms.No),new ns(r,i,s)}checkRetry(e){const t=e.details,r=Ui(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=ka(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 Fi(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((Re,Ye)=>{if(Ye){const Je=e.groups[Ye];if(!Je)throw new Error(`Audio track group ${Ye} not found`);Object.keys(Je.channels).forEach(lt=>{Re[lt]=(Re[lt]||0)+Je.channels[lt]})}return Re},{2:0})}catch(Re){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(Re=>parseInt(Re)>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:Or(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 Re=Ae.channels||"",Ye=parseFloat(Re);o(Ye)&&Ye>2&&x.push.apply(x,i.split(",").map(Je=>({type:"media-source",audio:{contentType:Or(Je,"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||Mi.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,Re=1/0,Ye=1/0,Je=1/0,lt=0,_t=[];const{preferHDR:Ft,allowedVideoRanges:gr}=Qo(e,i);for(let un=s.length;un--;){const gi=d[s[un]];q=gi.channels[2]>0,Re=Math.min(Re,gi.minHeight),Ye=Math.min(Ye,gi.minFramerate),Je=Math.min(Je,gi.minBitrate);const Kn=gr.filter(Ii=>gi.videoRanges[Ii]>0);Kn.length>0&&(Ae=!0,_t=Kn)}Re=o(Re)?Re:0,Ye=o(Ye)?Ye:0;const Nr=Math.max(1080,Re),Rr=Math.max(30,Ye);return Je=o(Je)?Je:t,t=Math.max(Je,t),Ae||(e=void 0,_t=[]),{codecSet:s.reduce((un,gi)=>{const Kn=d[gi];if(gi===un)return un;if(Kn.minBitrate>t)return _a(gi,`min bitrate of ${Kn.minBitrate} > current estimate of ${t}`),un;if(!Kn.hasDefaultAudio)return _a(gi,"no renditions with default or auto-select sound found"),un;if(x&&gi.indexOf(x.substring(0,4))%5!==0)return _a(gi,`audio codec preference "${x}" not found`),un;if(l&&!j){if(!Kn.channels[l])return _a(gi,`no renditions with ${l} channel sound found (channels options: ${Object.keys(Kn.channels)})`),un}else if((!x||j)&&q&&Kn.channels[2]===0)return _a(gi,"no renditions with stereo sound found"),un;return Kn.minHeight>Nr?(_a(gi,`min resolution of ${Kn.minHeight} > maximum of ${Nr}`),un):Kn.minFramerate>Rr?(_a(gi,`min framerate of ${Kn.minFramerate} > maximum of ${Rr}`),un):_t.some(Ii=>Kn.videoRanges[Ii]>0)?Kn.maxScore<lt?(_a(gi,`max score of ${Kn.maxScore} < selected max of ${lt}`),un):un&&(Ur(gi)>=Ur(un)||Kn.fragmentError>d[un].fragmentError)?un:(lt=Kn.maxScore,gi):(_a(gi,`no variants with VIDEO-RANGE of ${JSON.stringify(_t)} found`),un)},void 0),videoRanges:_t,preferHDR:Ft,minFramerate:Ye,minBitrate:Je}}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(Re=>{x.channels[Re]=(x.channels[Re]||0)+Ae.channels[Re]}))}),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)||Ma(d.characteristics||"",e.characteristics))&&(t===void 0||t(d,e))}function Ma(d,e=""){const t=d.split(","),r=e.split(",");return t.length===r.length&&!t.some(i=>r.indexOf(i)===-1)}function ma(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,Je,lt)=>{const _t=Je.uri;return(Ye[_t]||(Ye[_t]=[])).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),Re=Ja(e,r,Ye=>{if(Ye.videoRange!==j||Ye.frameRate!==q||Ye.codecSet.substring(0,4)!==Ae)return!1;const Je=Ye.audioGroups,lt=t.filter(_t=>!Je||Je.indexOf(_t.groupId)!==-1);return fo(d,lt,i)>-1});return Re>-1?Re:Ja(e,r,Ye=>{const Je=Ye.audioGroups,lt=t.filter(_t=>!Je||Je.indexOf(_t.groupId)!==-1);return fo(d,lt,i)>-1})}function Ja(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 as{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,Re=i.minAutoLevel;if(j.aborted||j.loaded&&j.loaded===j.total||t.level<=Re){this.clearTimer(),this._nextAutoLevel=-1;return}if(!s||l.paused||!l.playbackRate||!l.readyState)return;const Ye=i.mainForwardBufferInfo;if(Ye===null)return;const Je=this.bwEstimator.getEstimateTTFB(),lt=Math.abs(l.playbackRate);if(Ae<=Math.max(Je,1e3*(q/(lt*2))))return;const _t=Ye.len/lt,Ft=j.loading.first?j.loading.first-j.loading.start:-1,gr=j.loaded&&Ft>-1,Nr=this.getBwEstimate(),Rr=i.levels,Un=Rr[t.level],un=j.total||Math.max(j.loaded,Math.round(q*Un.averageBitrate/8));let gi=gr?Ae-Ft:Ae;gi<1&&gr&&(gi=Math.min(Ae,j.loaded*8/Nr));const Kn=gr?j.loaded*1e3/gi:0,Ii=Kn?(un-j.loaded)/Kn:un*8/Nr+Je/1e3;if(Ii<=_t)return;const qi=Kn?Kn*8:Nr;let mi=Number.POSITIVE_INFINITY,Pi;for(Pi=t.level-1;Pi>Re;Pi--){const na=Rr[Pi].maxBitrate;if(mi=this.getTimeToLoadFrag(Je/1e3,qi,q*na,!Rr[Pi].details),mi<_t)break}if(mi>=Ii||mi>q*10)return;i.nextLoadLevel=i.nextAutoLevel=Pi,gr?this.bwEstimator.sample(Ae-Math.min(Je,Ft),j.loaded):this.bwEstimator.sampleTTFB(Ae);const Za=Rr[Pi].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Za&&this.resetEstimator(Za),this.clearTimer(),B.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
|
|
|
Time to underbuffer: ${_t.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: ${Ft|0} ms
|
|
|
Current BW estimate: ${o(Nr)?Nr|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Pi} @ ${Za|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 Re=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(j-Math.min(Re,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===Ht.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!==Ht.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,Re=s.abrBandWidthUpFactor;if(q){const Ft=this.findBestLevel(j,l,i,q,0,Ae,Re);if(Ft>=0)return Ft}let Ye=x?Math.min(x,s.maxStarvationDelay):s.maxStarvationDelay;if(!q){const Ft=this.bitrateTestDelay;Ft&&(Ye=(x?Math.min(x,s.maxLoadingDelay):s.maxLoadingDelay)-Ft,B.info(`[abr] bitrate test took ${Math.round(1e3*Ft)}ms, set first fragment max fetchDuration to ${Math.round(1e3*Ye)} ms`),Ae=Re=1)}const Je=this.findBestLevel(j,l,i,q,Ye,Ae,Re);if(B.info(`[abr] ${q?"rebuffering expected":"buffer is empty"}, optimal quality level ${Je}`),Je>-1)return Je;const lt=r.levels[l],_t=r.levels[r.loadLevel];return(lt==null?void 0:lt.bitrate)<(_t==null?void 0:_t.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,Re=Ae===-1?this.hls.firstLevel:Ae,{fragCurrent:Ye,partCurrent:Je}=this,{levels:lt,allAudioTracks:_t,loadLevel:Ft,config:gr}=this.hls;if(lt.length===1)return 0;const Nr=lt[Re],Rr=!!(Nr!=null&&(j=Nr.details)!=null&&j.live),Un=Ft===-1||Ae===-1;let un,gi="SDR",Kn=(Nr==null?void 0:Nr.frameRate)||0;const{audioPreference:Ii,videoPreference:qi}=gr,mi=this.audioTracksByGroup||(this.audioTracksByGroup=vl(_t));if(Un){if(this.firstSelection!==-1)return this.firstSelection;const Qa=this.codecTiers||(this.codecTiers=yl(lt,mi,t,r)),Ra=Ao(Qa,gi,e,Ii,qi),{codecSet:Fs,videoRanges:Ks,minFramerate:fa,minBitrate:sa,preferHDR:ks}=Ra;un=Fs,gi=ks?Ks[Ks.length-1]:Ks[0],Kn=fa,e=Math.max(e,sa),B.log(`[abr] picked start tier ${JSON.stringify(Ra)}`)}else un=Nr==null?void 0:Nr.codecSet,gi=Nr==null?void 0:Nr.videoRange;const Pi=Je?Je.duration:Ye?Ye.duration:0,Za=this.bwEstimator.getEstimateTTFB()/1e3,na=[];for(let Qa=r;Qa>=t;Qa--){var ja;const Ra=lt[Qa],Fs=Qa>Re;if(!Ra)continue;if(gr.useMediaCapabilities&&!Ra.supportedResult&&!Ra.supportedPromise){const lo=navigator.mediaCapabilities;typeof(lo==null?void 0:lo.decodingInfo)=="function"&&Fi(Ra,mi,gi,Kn,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(un&&Ra.codecSet!==un||gi&&Ra.videoRange!==gi||Fs&&Kn>Ra.frameRate||!Fs&&Kn>0&&Kn<Ra.frameRate||Ra.supportedResult&&!((ja=Ra.supportedResult.decodingInfoResults)!=null&&ja[0].smooth)){na.push(Qa);continue}const Ks=Ra.details,fa=(Je?Ks==null?void 0:Ks.partTarget:Ks==null?void 0:Ks.averagetargetduration)||Pi;let sa;Fs?sa=x*e:sa=l*e;const ks=Pi&&i>=Pi*2&&s===0?lt[Qa].averageBitrate:lt[Qa].maxBitrate,ps=this.getTimeToLoadFrag(Za,sa,ks*fa,Ks===void 0);if(sa>=ks&&(Qa===Ae||Ra.loadError===0&&Ra.fragmentError===0)&&(ps<=Za||!o(ps)||Rr&&!this.bitrateTestDelay||ps<q)){const lo=this.forcedAutoLevel;return Qa!==Ft&&(lo===-1||lo!==Ft)&&(na.length&&B.trace(`[abr] Skipped level(s) ${na.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${lt[na[0]].codecs}" ${lt[na[0]].videoRange}; not compatible with "${Nr.codecs}" ${gi}`),B.info(`[abr] switch candidate:${Re}->${Qa} adjustedbw(${Math.round(sa)})-bitrate=${Math.round(sa-ks)} ttfb:${Za.toFixed(1)} avgDuration:${fa.toFixed(1)} maxFetchDuration:${q.toFixed(1)} fetchDuration:${ps.toFixed(1)} firstSelection:${Un} codecSet:${un} videoRange:${gi} hls.loadLevel:${Ft}`)),Un&&(this.firstSelection=Qa),Qa}}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 Ea={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],Re=x||q.partial===!0;l.range[j]=this.getBufferedTimes(r,i,Re,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 Re=i.start(Ae)-this.bufferPadding,Ye=i.end(Ae)+this.bufferPadding;if(q>=Re&&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>Re){const Je=Math.max(l,i.start(Ae)),lt=Math.min(x,i.end(Ae));lt>Je&&(s.partial=!0,s.time.push({startPTS:Je,endPTS:lt}))}else if(x<=Re)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)?Ea.PARTIAL:Ea.OK:Ea.APPENDING:Ea.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 qa{static isBuffered(e,t){try{if(e){const r=qa.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=qa.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 Re=q.start-Ae.start;return Re||Ae.end-q.end});let i=[];if(r)for(let q=0;q<e.length;q++){const Ae=i.length;if(Ae){const Re=i[Ae-1].end;e[q].start-Re<r?e[q].end>Re&&(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,Re=i[q].end;if(t+r>=Ae&&t<Re)x=Ae,j=Re,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&&os(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 Ya{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(Je=>Je[0]==="GAP")){j(es(e));return}else e.gap=!1;const q=this.loader=e.loader=s?new s(i):new l(i),Ae=ys(e),Re=Rs(i.fragLoadPolicy.default),Ye={loadPolicy:Re,timeout:Re.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Lo};e.stats=q.stats,q.load(Ae,Ye,{onSuccess:(Je,lt,_t,Ft)=>{this.resetLoader(e,q);let gr=Je.data;_t.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(gr.slice(0,16)),gr=gr.slice(16)),x({frag:e,part:null,payload:gr,networkDetails:Ft})},onError:(Je,lt,_t,Ft)=>{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},Je),error:new Error(`HTTP Error ${Je.code} ${Je.text}`),networkDetails:_t,stats:Ft}))},onAbort:(Je,lt,_t)=>{this.resetLoader(e,q),j(new Cs({type:A.NETWORK_ERROR,details:m.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:_t,stats:Je}))},onTimeout:(Je,lt,_t)=>{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:_t,stats:Je}))},onProgress:(Je,lt,_t,Ft)=>{t&&t({frag:e,part:null,payload:_t,networkDetails:Ft})}})})}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(es(e,t));return}const q=this.loader=e.loader=s?new s(i):new l(i),Ae=ys(e,t),Re=Rs(i.fragLoadPolicy.default),Ye={loadPolicy:Re,timeout:Re.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Lo};t.stats=q.stats,q.load(Ae,Ye,{onSuccess:(Je,lt,_t,Ft)=>{this.resetLoader(e,q),this.updateStatsFromPart(e,t);const gr={frag:e,part:t,payload:Je.data,networkDetails:Ft};r(gr),x(gr)},onError:(Je,lt,_t,Ft)=>{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},Je),error:new Error(`HTTP Error ${Je.code} ${Je.text}`),networkDetails:_t,stats:Ft}))},onAbort:(Je,lt,_t)=>{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:_t,stats:Je}))},onTimeout:(Je,lt,_t)=>{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:_t,stats:Je}))}})})}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),Re=(j-q)*Math.round(r.loaded/q);r.total=r.loaded+Re}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 ys(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 es(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?G(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],Re=j[2],Ye=j[3],Je=new Uint32Array(256);let lt=0,_t=0,Ft=0;for(Ft=0;Ft<256;Ft++)Ft<128?Je[Ft]=Ft<<1:Je[Ft]=Ft<<1^283;for(Ft=0;Ft<256;Ft++){let gr=_t^_t<<1^_t<<2^_t<<3^_t<<4;gr=gr>>>8^gr&255^99,e[lt]=gr,t[gr]=lt;const Nr=Je[lt],Rr=Je[Nr],Un=Je[Rr];let un=Je[gr]*257^gr*16843008;i[lt]=un<<24|un>>>8,s[lt]=un<<16|un>>>16,l[lt]=un<<8|un>>>24,x[lt]=un,un=Un*16843009^Rr*65537^Nr*257^lt*16843008,q[gr]=un<<24|un>>>8,Ae[gr]=un<<16|un>>>16,Re[gr]=un<<8|un>>>24,Ye[gr]=un,lt?(lt=Nr^Je[Je[Je[Un^Nr]]],_t^=Je[Je[_t]]):lt=_t=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),Re=this.sBox,Ye=this.rcon,Je=this.invSubMix,lt=Je[0],_t=Je[1],Ft=Je[2],gr=Je[3];let Nr,Rr;for(x=0;x<l;x++){if(x<s){Nr=q[x]=t[x];continue}Rr=Nr,x%s===0?(Rr=Rr<<8|Rr>>>24,Rr=Re[Rr>>>24]<<24|Re[Rr>>>16&255]<<16|Re[Rr>>>8&255]<<8|Re[Rr&255],Rr^=Ye[x/s|0]<<24):s>6&&x%s===4&&(Rr=Re[Rr>>>24]<<24|Re[Rr>>>16&255]<<16|Re[Rr>>>8&255]<<8|Re[Rr&255]),q[x]=Nr=(q[x-s]^Rr)>>>0}for(j=0;j<l;j++)x=l-j,j&3?Rr=q[x]:Rr=q[x-4],j<4||x<=4?Ae[j]=Rr:Ae[j]=lt[Re[Rr>>>24]]^_t[Re[Rr>>>16&255]]^Ft[Re[Rr>>>8&255]]^gr[Re[Rr&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],Re=x[3],Ye=this.uint8ArrayToUint32Array_(r);let Je=Ye[0],lt=Ye[1],_t=Ye[2],Ft=Ye[3];const gr=new Int32Array(e),Nr=new Int32Array(gr.length);let Rr,Un,un,gi,Kn,Ii,qi,mi,Pi,Za,na,ja,Qa,Ra;const Fs=this.networkToHostOrderSwap;for(;t<gr.length;){for(Pi=Fs(gr[t]),Za=Fs(gr[t+1]),na=Fs(gr[t+2]),ja=Fs(gr[t+3]),Kn=Pi^s[0],Ii=ja^s[1],qi=na^s[2],mi=Za^s[3],Qa=4,Ra=1;Ra<i;Ra++)Rr=j[Kn>>>24]^q[Ii>>16&255]^Ae[qi>>8&255]^Re[mi&255]^s[Qa],Un=j[Ii>>>24]^q[qi>>16&255]^Ae[mi>>8&255]^Re[Kn&255]^s[Qa+1],un=j[qi>>>24]^q[mi>>16&255]^Ae[Kn>>8&255]^Re[Ii&255]^s[Qa+2],gi=j[mi>>>24]^q[Kn>>16&255]^Ae[Ii>>8&255]^Re[qi&255]^s[Qa+3],Kn=Rr,Ii=Un,qi=un,mi=gi,Qa=Qa+4;Rr=l[Kn>>>24]<<24^l[Ii>>16&255]<<16^l[qi>>8&255]<<8^l[mi&255]^s[Qa],Un=l[Ii>>>24]<<24^l[qi>>16&255]<<16^l[mi>>8&255]<<8^l[Kn&255]^s[Qa+1],un=l[qi>>>24]<<24^l[mi>>16&255]<<16^l[Kn>>8&255]<<8^l[Ii&255]^s[Qa+2],gi=l[mi>>>24]<<24^l[Kn>>16&255]<<16^l[Ii>>8&255]<<8^l[qi&255]^s[Qa+3],Nr[t]=Fs(Rr^Je),Nr[t+1]=Fs(gi^lt),Nr[t+2]=Fs(un^_t),Nr[t+3]=Fs(Un^Ft),Je=Pi,lt=Za,_t=na,Ft=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=jn(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=G(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=G(e,0,r),this.remainderData=G(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}},oi={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=oi.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 Ya(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=oi.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 qa.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===oi.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=qa.bufferInfo(i||r,l,e.maxBufferHole);if(this.log(`media seeking to ${o(l)?l.toFixed(3):l}, state: ${s}`),this.state===oi.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 Re=l>Ae;(l<q||Re)&&(Re&&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=oi.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===oi.FRAG_LOADING||!this.fragCurrent&&l===oi.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=oi.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===oi.STOPPED||this.state===oi.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)===Ea.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)===Ea.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===oi.STOPPED||this.state===oi.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=oi.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===Ht.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(qa.getBuffered(x)):"(detached)"})`),e.sn!=="initSegment"){var j;if(e.type!==Ht.SUBTITLE){const Ae=e.elementaryStreams;if(!Object.keys(Ae).some(Re=>!!Ae[Re])){this.state=oi.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=oi.IDLE,x&&(!this.loadedmetadata&&e.type==Ht.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=oi.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===oi.KEY_LOADING&&(this.state=oi.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 Re=this.getNextPart(Ae,e,r);if(Re>-1){const Ye=Ae[Re];this.log(`Loading part sn: ${e.sn} p: ${Ye.index} cc: ${e.cc} of playlist [${l.startSN}-${l.endSN}] parts [0-${Re}-${Ae.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=Ye.start+Ye.duration,this.state=oi.FRAG_LOADING;let Je;return x?Je=x.then(lt=>!lt||this.fragContextChanged(lt.frag)?null:this.doFragPartsLoad(e,Ye,t,i)).catch(lt=>this.handleFragLoadError(lt)):Je=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")):Je}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=oi.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=Re=>{this.fragmentLoader.loadPart(e,Re,i).then(Ye=>{j[Re.index]=Ye;const Je=Ye.part;this.hls.trigger(a.FRAG_LOADED,Ye);const lt=Zi(r,e.sn,Re.index+1)||ea(q,e.sn,Re.index+1);if(lt)Ae(lt);else return s({frag:e,part:Je,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!==oi.PARSING){!this.fragCurrent&&this.state!==oi.STOPPED&&this.state!==oi.ERROR&&(this.state=oi.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!==oi.PARSING)return;const{data1:x,data2:j}=e;let q=x;if(x&&j&&(q=jn(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(!qa.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,i=qa.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=qa.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 qa.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=Ht.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,Ht.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===Ea.OK||r===Ea.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,Re=!!(i.lowLatencyMode&&Ae!=null&&Ae.length&&j);Re&&j&&!this.bitrateTest&&(l=l.concat(j),x=j.sn);let Ye;if(e<t){const Je=e>t-q?0:q;Ye=go(s,l,e,Je)}else Ye=l[l.length-1];if(Ye){const Je=Ye.sn-r.startSN,lt=this.fragmentTracker.getState(Ye);if((lt===Ea.OK||lt===Ea.PARTIAL&&Ye.gap)&&(s=Ye),s&&Ye.sn===s.sn&&(!Re||Ae[0].fragment.sn>Ye.sn)&&s&&Ye.level===s.level){const Ft=l[Je+1];Ye.sn<x&&this.fragmentTracker.getState(Ft)!==Ea.OK?Ye=Ft: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!==oi.FRAG_LOADING_WAITING_RETRY)&&(this.state=oi.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=ka(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=oi.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=oi.WAITING_LEVEL:this.state=oi.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===oi.PARSING||this.state===oi.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===Ht.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==oi.STOPPED&&(this.state=oi.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const i=qa.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,r),this.state===oi.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=oi.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 Re=Ae.endPTS-Ae.startPTS;if(Re<=0)return this.warn(`Could not parse fragment ${e.sn} ${q} duration reliably (${Re})`),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=oi.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=jn(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?P(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:bi.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 W(e,i)?(r=D(e,i),x.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:bi.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,s=i):i++;if(i===q&&s!==q){const Ae=G(e,s);this.cachedData?this.cachedData=jn(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 Re=(e[t+2]&60)>>>2;if(Re>Ae.length-1){const Ye=new Error(`invalid ADTS sampling index:${Re}`);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:${Re}`),/firefox/i.test(j)?Re>=6?(i=5,x=new Array(4),s=Re-3):(i=2,x=new Array(2),s=Re):j.indexOf("android")!==-1?(i=2,x=new Array(2),s=Re):(i=5,x=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&Re>=6?s=Re-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(Re>=6&&l===1||/vivaldi/i.test(j))||!r&&l===1)&&(i=2,x=new Array(2)),s=Re)),x[0]=i<<3,x[0]|=(Re&14)>>1,x[1]|=(Re&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[Re],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 Z(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 De(d,e){if(Z(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||Z(d,i)}return!1}function Ne(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 tt(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=tt(d.samplerate),l=r+i*s,x=yt(e,t);let j;if(x){const{frameLength:Re,headerLength:Ye}=x,Je=Ye+Re,lt=Math.max(0,t+Je-e.length);lt?(j=new Uint8Array(Je-Ye),j.set(e.subarray(t+Ye,e.length),0)):j=e.subarray(t+Ye,t+Je);const _t={unit:j,pts:l};return lt||d.samples.push(_t),{sample:_t,length:Je,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 kt=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,Re=cr[(t===3?0:t===2?1:2)*3+s],Ye=x===3?1:2,Je=tr[t][r],lt=dr[r],_t=Je*8*lt,Ft=Math.floor(Je*q/Re+l)*lt;if(kt===null){const Rr=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);kt=Rr?parseInt(Rr[1]):0}return!!kt&&kt<=87&&r===2&&q>=224e3&&x===0&&(d[e+3]=d[e+3]|128),{sampleRate:Re,channelCount:Ye,frameLength:Ft,samplesPerFrame:_t}}}function Mr(d,e){return d[e]===255&&(d[e+1]&224)===224&&(d[e+1]&6)!==0}function an(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||an(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(De(e,r))return B.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return ge(e,t)}appendFrame(e,t,r){Ne(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 Br=/\/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=Gt(e);if(j.video){const{id:q,timescale:Ae,codec:Re}=j.video;s.id=q,s.timescale=x.timescale=Ae,s.codec=Re}if(j.audio){const{id:q,timescale:Ae,codec:Re}=j.audio;l.id=q,l.timescale=Ae,l.codec=Re}x.id=br.text,s.sampleDuration=0,s.duration=l.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return Zr(e)}demux(e,t){this.timeOffset=t;let r=e;const i=this.videoTrack,s=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=jn(this.remainderData,e));const x=Ki(r);this.remainderData=x.remainder,i.samples=x.valid||new Uint8Array}else i.samples=r;const l=this.extractID3Track(i,t);return s.samples=kn(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=kn(e,t),{videoTrack:t,audioTrack:Xo(),id3Track:i,textTrack:Xo()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const i=Tt(e.samples,["emsg"]);i&&i.forEach(s=>{const l=Ct(s);if(Br.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:bi.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&&P(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 Re=e[t+6]>>5;let Ye=0;Re===2?Ye+=2:(Re&1&&Re!==1&&(Ye+=2),Re&4&&(Ye+=2));const Je=(e[t+6]<<8|e[t+7])>>12-Ye&1,_t=[2,1,2,3,3,4,4,5][Re]+Je,Ft=e[t+5]>>3,gr=e[t+5]&7,Nr=new Uint8Array([s<<6|Ft<<1|gr>>2,(gr&3)<<6|Re<<3|Je<<2|j>>4,j<<4&224]),Rr=1536/x*9e4,Un=r+i*Rr,un=e.subarray(t,t+Ae);return d.config=Nr,d.channelCount=_t,d.samplerate=x,d.samples.push({unit:un,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),Re=this.readBoolean.bind(this),Ye=this.skipBits.bind(this),Je=this.skipEG.bind(this),lt=this.skipUEG.bind(this),_t=this.skipScalingList.bind(this);j();const Ft=j();if(q(5),Ye(3),j(),lt(),Ft===100||Ft===110||Ft===122||Ft===244||Ft===44||Ft===83||Ft===86||Ft===118||Ft===128){const gi=Ae();if(gi===3&&Ye(1),lt(),lt(),Ye(1),Re())for(l=gi!==3?8:12,x=0;x<l;x++)Re()&&(x<6?_t(16):_t(64))}lt();const gr=Ae();if(gr===0)Ae();else if(gr===1)for(Ye(1),Je(),Je(),s=Ae(),x=0;x<s;x++)Je();lt(),Ye(1);const Nr=Ae(),Rr=Ae(),Un=q(1);Un===0&&Ye(1),Ye(1),Re()&&(e=Ae(),t=Ae(),r=Ae(),i=Ae());let un=[1,1];if(Re()&&Re())switch(j()){case 1:un=[1,1];break;case 2:un=[12,11];break;case 3:un=[10,11];break;case 4:un=[16,11];break;case 5:un=[40,33];break;case 6:un=[24,11];break;case 7:un=[20,11];break;case 8:un=[32,11];break;case 9:un=[80,33];break;case 10:un=[18,11];break;case 11:un=[15,11];break;case 12:un=[64,33];break;case 13:un=[160,99];break;case 14:un=[4,3];break;case 15:un=[3,2];break;case 16:un=[2,1];break;case 255:{un=[j()<<8|j(),j()<<8|j()];break}}return{width:Math.ceil((Nr+1)*16-e*2-t*2),height:(2-Un)*(Rr+1)*16-(Un?2:4)*(r+i),pixelRatio:un}}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 Re;switch(Ae.type){case 1:{let _t=!1;j=!0;const Ft=Ae.data;if(q&&Ft.length>4){const gr=new xe(Ft).readSliceType();(gr===2||gr===4||gr===7||gr===9)&&(_t=!0)}if(_t){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=_t;break}case 5:j=!0,(Re=x)!=null&&Re.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 Je,lt;j=!0,q=!0;const _t=Ae.data,gr=new xe(_t).readSPS();if(!e.sps||e.width!==gr.width||e.height!==gr.height||((Je=e.pixelRatio)==null?void 0:Je[0])!==gr.pixelRatio[0]||((lt=e.pixelRatio)==null?void 0:lt[1])!==gr.pixelRatio[1]){e.width=gr.width,e.height=gr.height,e.pixelRatio=gr.pixelRatio,e.sps=[_t],e.duration=s;const Nr=_t.subarray(1,4);let Rr="avc1.";for(let Un=0;Un<3;Un++){let un=Nr[Un].toString(16);un.length<2&&(un="0"+un),Rr+=un}e.codec=Rr}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,Re=-1,Ye=0;for(i===-1&&(Re=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,Re>=0){const Je={data:t.subarray(Re,q),type:Ye};l.push(Je)}else{const Je=this.getLastNalUnit(e.samples);Je&&(s&&x<=4-s&&Je.state&&(Je.data=Je.data.subarray(0,Je.data.byteLength-s)),q>0&&(Je.data=jn(Je.data,t.subarray(0,q)),Je.state=0))}x<r?(Ae=t[x]&31,Re=x,Ye=Ae,i=0):i=-1}else i=0}if(Re>=0&&i>=0){const Je={data:t.subarray(Re,r),type:Ye,state:i};l.push(Je)}if(l.length===0){const Je=this.getLastNalUnit(e.samples);Je&&(Je.data=jn(Je.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:br[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,Re=l.pesData,Ye=x.pid,Je=j.pid,lt=x.pesData,_t=j.pesData,Ft=null,gr=this.pmtParsed,Nr=this._pmtId,Rr=e.length;if(this.remainderData&&(e=jn(this.remainderData,e),Rr=e.length,this.remainderData=null),Rr<gt&&!i)return this.remainderData=e,{audioTrack:x,videoTrack:l,id3Track:j,textTrack:q};const Un=Math.max(0,ft.syncOffset(e));Rr-=(Rr-Un)%gt,Rr<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,Rr,e.buffer.byteLength-Rr));let un=0;for(let Kn=Un;Kn<Rr;Kn+=gt)if(e[Kn]===71){const Ii=!!(e[Kn+1]&64),qi=Ut(e,Kn),mi=(e[Kn+3]&48)>>4;let Pi;if(mi>1){if(Pi=Kn+5+e[Kn+4],Pi===Kn+gt)continue}else Pi=Kn+4;switch(qi){case Ae:Ii&&(Re&&(s=wt(Re))&&this.videoParser.parseAVCPES(l,q,s,!1,this._duration),Re={data:[],size:0}),Re&&(Re.data.push(e.subarray(Pi,Kn+gt)),Re.size+=Kn+gt-Pi);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(Pi,Kn+gt)),lt.size+=Kn+gt-Pi);break;case Je:Ii&&(_t&&(s=wt(_t))&&this.parseID3PES(j,s),_t={data:[],size:0}),_t&&(_t.data.push(e.subarray(Pi,Kn+gt)),_t.size+=Kn+gt-Pi);break;case 0:Ii&&(Pi+=e[Pi]+1),Nr=this._pmtId=$t(e,Pi);break;case Nr:{Ii&&(Pi+=e[Pi]+1);const Za=sr(e,Pi,this.typeSupported,r,this.observer);Ae=Za.videoPid,Ae>0&&(l.pid=Ae,l.segmentCodec=Za.segmentVideoCodec),Ye=Za.audioPid,Ye>0&&(x.pid=Ye,x.segmentCodec=Za.segmentAudioCodec),Je=Za.id3Pid,Je>0&&(j.pid=Je),Ft!==null&&!gr&&(B.warn(`MPEG-TS PMT found at ${Kn} after unknown PID '${Ft}'. Backtracking to sync byte @${Un} to parse all TS packets.`),Ft=null,Kn=Un-188),gr=this.pmtParsed=!0;break}case 17:case 8191:break;default:Ft=qi;break}}else un++;un>0&&ze(this.observer,new Error(`Found ${un} TS packet/s that do not start with 0x47`)),l.pesData=Re,x.pesData=lt,j.pesData=_t;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 Re=i.missing,Ye=i.sample.unit.byteLength;if(Re===-1)s=jn(i.sample.unit,s);else{const Je=Ye-Re;i.sample.unit.set(s.subarray(0,Re),Je),e.samples.push(i.sample),r=i.missing}}let l,x;for(l=r,x=s.length;l<x-1&&!Z(s,l);l++);if(l!==r){let Re;const Ye=l<x-1;if(Ye?Re=`AAC PES did not start with ADTS header,offset:${l}`:Re="No ADTS header found in AAC PES",ze(this.observer,new Error(Re),Ye),!Ye)return}Ne(e,this.observer,s,l,this.audioCodec);let j;if(t.pts!==void 0)j=t.pts;else if(i){const Re=tt(e.samplerate);j=i.sample.pts+Re}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&&!Z(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(an(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?bi.emsg:bi.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 Re=e+5,Ye=Ae;for(;Ye>2;){switch(d[Re]){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[Re+1]+2;Re+=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]=jn(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 Re=new Uint8Array(d.size);for(let Ye=0,Je=x.length;Ye<Je;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;Re.set(t,e),e+=lt}return r&&(r-=i+3),{data:Re,pts:s,dts:l,len:r}}return null}class jt 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&&P(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 Vt{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 ur=Math.pow(2,32)-1;class It{static init(){It.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 It.types)It.types.hasOwnProperty(e)&&(It.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]);It.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]);It.STTS=It.STSC=It.STCO=s,It.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),It.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),It.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),It.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]);It.FTYP=It.box(It.types.ftyp,l,j,l,x),It.DINF=It.box(It.types.dinf,It.box(It.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 It.box(It.types.hdlr,It.HDLR_TYPES[e])}static mdat(e){return It.box(It.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(ur+1)),i=Math.floor(t%(ur+1));return It.box(It.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 It.box(It.types.mdia,It.mdhd(e.timescale,e.duration),It.hdlr(e.type),It.minf(e))}static mfhd(e){return It.box(It.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"?It.box(It.types.minf,It.box(It.types.smhd,It.SMHD),It.DINF,It.stbl(e)):It.box(It.types.minf,It.box(It.types.vmhd,It.VMHD),It.DINF,It.stbl(e))}static moof(e,t,r){return It.box(It.types.moof,It.mfhd(e),It.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=It.trak(e[t]);return It.box.apply(null,[It.types.moov,It.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(It.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=It.trex(e[t]);return It.box.apply(null,[It.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(ur+1)),i=Math.floor(t%(ur+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 It.box(It.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 It.box(It.types.sdtp,r)}static stbl(e){return It.box(It.types.stbl,It.stsd(e),It.box(It.types.stts,It.STTS),It.box(It.types.stsc,It.STSC),It.box(It.types.stsz,It.STSZ),It.box(It.types.stco,It.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=It.box(It.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],Re=e.pixelRatio[1];return It.box(It.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,It.box(It.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),It.box(It.types.pasp,new Uint8Array([Ae>>24,Ae>>16&255,Ae>>8&255,Ae&255,Re>>24,Re>>16&255,Re>>8&255,Re&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 It.box(It.types.mp4a,It.audioStsd(e),It.box(It.types.esds,It.esds(e)))}static mp3(e){return It.box(It.types[".mp3"],It.audioStsd(e))}static ac3(e){return It.box(It.types["ac-3"],It.audioStsd(e),It.box(It.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?It.box(It.types.stsd,It.STSD,It.mp3(e)):e.segmentCodec==="ac3"?It.box(It.types.stsd,It.STSD,It.ac3(e)):It.box(It.types.stsd,It.STSD,It.mp4a(e)):It.box(It.types.stsd,It.STSD,It.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,i=e.width,s=e.height,l=Math.floor(r/(ur+1)),x=Math.floor(r%(ur+1));return It.box(It.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=It.sdtp(e),i=e.id,s=Math.floor(t/(ur+1)),l=Math.floor(t%(ur+1));return It.box(It.types.traf,It.box(It.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),It.box(It.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])),It.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,It.box(It.types.trak,It.tkhd(e),It.mdia(e))}static trex(e){const t=e.id;return It.box(It.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,Re,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,Re=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,Re.isLeading<<2|Re.dependsOn,Re.isDependedOn<<6|Re.hasRedundancy<<4|Re.paddingValue<<1|Re.isNonSync,Re.degradPrio&61440,Re.degradPrio&15,Ye>>>24&255,Ye>>>16&255,Ye>>>8&255,Ye&255],12+16*x);return It.box(It.types.trun,l)}static initSegment(e){It.types||It.init();const t=It.moov(e);return jn(It.FTYP,t)}}It.types=void 0,It.HDLR_TYPES=void 0,It.STTS=void 0,It.STSC=void 0,It.STCO=void 0,It.STSZ=void 0,It.VMHD=void 0,It.SMHD=void 0,It.STSD=void 0,It.FTYP=void 0,It.DINF=void 0;const yr=9e4;function Wr(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 Wr(d,e,1/t,r)}function cn(d,e=!1){return Wr(d,1e3,1/yr,e)}function Dn(d,e=1){return Wr(d,yr,1/e)}const ni=10*1e3,kr=1024,ir=1152,Si=1536;let In=null,sn=null;class An{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,In===null){const l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);In=l?parseInt(l[1]):0}if(sn===null){const s=navigator.userAgent.match(/Safari\/(\d+)/i);sn=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,Re,Ye,Je,lt,_t=s,Ft=s;const gr=e.pid>-1,Nr=t.pid>-1,Rr=t.samples.length,Un=e.samples.length>0,un=x&&Rr>0||Rr>1;if((!gr||Un)&&(!Nr||un)||this.ISGenerated||x){if(this.ISGenerated){var Kn,Ii,qi,mi;const ja=this.videoTrackConfig;ja&&(t.width!==ja.width||t.height!==ja.height||((Kn=t.pixelRatio)==null?void 0:Kn[0])!==((Ii=ja.pixelRatio)==null?void 0:Ii[0])||((qi=t.pixelRatio)==null?void 0:qi[1])!==((mi=ja.pixelRatio)==null?void 0:mi[1]))&&this.resetInitSegment()}else Re=this.generateIS(e,t,s,l);const Pi=this.isVideoContiguous;let Za=-1,na;if(un&&(Za=_n(t.samples),!Pi&&this.config.forceKeyFrameOnDiscontinuity))if(lt=!0,Za>0){B.warn(`[mp4-remuxer]: Dropped ${Za} out of ${Rr} video samples due to a missing keyframe`);const ja=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Za),t.dropped+=Za,Ft+=(t.samples[0].pts-ja)/t.inputTimeScale,na=Ft}else Za===-1&&(B.warn(`[mp4-remuxer]: No keyframe found out of ${Rr} video samples`),lt=!1);if(this.ISGenerated){if(Un&&un){const ja=this.getVideoStartPts(t.samples),Ra=(rn(e.samples[0].pts,ja)-ja)/t.inputTimeScale;_t+=Math.max(0,Ra),Ft+=Math.max(0,-Ra)}if(Un){if(e.samplerate||(B.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Re=this.generateIS(e,t,s,l)),Ae=this.remuxAudio(e,_t,this.isAudioContiguous,l,Nr||un||j===Ht.AUDIO?Ft:void 0),un){const ja=Ae?Ae.endPTS-Ae.startPTS:0;t.inputTimeScale||(B.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Re=this.generateIS(e,t,s,l)),q=this.remuxVideo(t,Ft,Pi,ja)}}else un&&(q=this.remuxVideo(t,Ft,Pi,0));q&&(q.firstKeyFrame=Za,q.independent=Za!==-1,q.firstKeyFramePTS=na)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(Je=ii(r,s,this._initPTS,this._initDTS)),i.samples.length&&(Ye=Di(i,s,this._initPTS))),{audio:Ae,video:q,initSegment:Re,independent:lt,text:Ye,id3:Je}}generateIS(e,t,r,i){const s=e.samples,l=t.samples,x=this.typeSupported,j={},q=this._initPTS;let Ae=!q||i,Re="audio/mp4",Ye,Je,lt;if(Ae&&(Ye=Je=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":x.mpeg?(Re="audio/mpeg",e.codec=""):x.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}j.audio={id:"audio",container:Re,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&x.mpeg?new Uint8Array(0):It.initSegment([e]),metadata:{channelCount:e.channelCount}},Ae&&(lt=e.inputTimeScale,!q||lt!==q.timescale?Ye=Je=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:It.initSegment([t]),metadata:{width:t.width,height:t.height}},Ae)if(lt=t.inputTimeScale,!q||lt!==q.timescale){const _t=this.getVideoStartPts(l),Ft=Math.round(lt*r);Je=Math.min(Je,rn(l[0].dts,_t)-Ft),Ye=Math.min(Ye,_t-Ft)}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:Je,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,Re=8,Ye=this.videoSampleDuration,Je,lt,_t=Number.POSITIVE_INFINITY,Ft=Number.NEGATIVE_INFINITY,gr=!1;if(!r||Ae===null){const fa=t*s,sa=l[0].pts-rn(l[0].dts,l[0].pts);In&&Ae!==null&&Math.abs(fa-sa-Ae)<15e3?r=!0:Ae=fa-sa}const Nr=q.baseTime*s/q.timescale;for(let fa=0;fa<j;fa++){const sa=l[fa];sa.pts=rn(sa.pts-Nr,Ae),sa.dts=rn(sa.dts-Nr,Ae),sa.dts<l[fa>0?fa-1:fa].dts&&(gr=!0)}gr&&l.sort(function(fa,sa){const ks=fa.dts-sa.dts,ps=fa.pts-sa.pts;return ks||ps}),Je=l[0].dts,lt=l[l.length-1].dts;const Rr=lt-Je,Un=Rr?Math.round(Rr/(j-1)):Ye||e.inputTimeScale/30;if(r){const fa=Je-Ae,sa=fa>Un,ks=fa<-1;if((sa||ks)&&(sa?B.warn(`AVC: ${cn(fa,!0)} ms (${fa}dts) hole between fragments detected at ${t.toFixed(3)}`):B.warn(`AVC: ${cn(-fa,!0)} ms (${fa}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!ks||Ae>=l[0].pts||In)){Je=Ae;const ps=l[0].pts-fa;if(sa)l[0].dts=Je,l[0].pts=ps;else for(let Ws=0;Ws<l.length&&!(l[Ws].dts>ps);Ws++)l[Ws].dts-=fa,l[Ws].pts-=fa;B.log(`Video: Initial PTS/DTS adjusted: ${cn(ps,!0)}/${cn(Je,!0)}, delta: ${cn(fa,!0)} ms`)}}Je=Math.max(0,Je);let un=0,gi=0,Kn=Je;for(let fa=0;fa<j;fa++){const sa=l[fa],ks=sa.units,ps=ks.length;let Ws=0;for(let lo=0;lo<ps;lo++)Ws+=ks[lo].data.length;gi+=Ws,un+=ps,sa.length=Ws,sa.dts<Kn?(sa.dts=Kn,Kn+=Un/4|0||1):Kn=sa.dts,_t=Math.min(sa.pts,_t),Ft=Math.max(sa.pts,Ft)}lt=l[j-1].dts;const Ii=gi+4*un+8;let qi;try{qi=new Uint8Array(Ii)}catch(fa){this.observer.emit(a.ERROR,a.ERROR,{type:A.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:fa,bytes:Ii,reason:`fail allocating video mdat ${Ii}`});return}const mi=new DataView(qi.buffer);mi.setUint32(0,Ii),qi.set(It.types.mdat,4);let Pi=!1,Za=Number.POSITIVE_INFINITY,na=Number.POSITIVE_INFINITY,ja=Number.NEGATIVE_INFINITY,Qa=Number.NEGATIVE_INFINITY;for(let fa=0;fa<j;fa++){const sa=l[fa],ks=sa.units;let ps=0;for(let Ms=0,Fo=ks.length;Ms<Fo;Ms++){const dl=ks[Ms],_c=dl.data,Fc=dl.data.byteLength;mi.setUint32(Re,Fc),Re+=4,qi.set(_c,Re),Re+=Fc,ps+=4+Fc}let Ws;if(fa<j-1)Ye=l[fa+1].dts-sa.dts,Ws=l[fa+1].pts-sa.pts;else{const Ms=this.config,Fo=fa>0?sa.dts-l[fa-1].dts:Un;if(Ws=fa>0?sa.pts-l[fa-1].pts:Un,Ms.stretchShortVideoTrack&&this.nextAudioPts!==null){const dl=Math.floor(Ms.maxBufferHole*s),_c=(i?_t+i*s:this.nextAudioPts)-sa.pts;_c>dl?(Ye=_c-Fo,Ye<0?Ye=Fo:Pi=!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(sa.pts-sa.dts);Za=Math.min(Za,Ye),ja=Math.max(ja,Ye),na=Math.min(na,Ws),Qa=Math.max(Qa,Ws),x.push(new He(sa.key,Ye,ps,lo))}if(x.length){if(In){if(In<70){const fa=x[0].flags;fa.dependsOn=2,fa.isNonSync=0}}else if(sn&&Qa-na<ja-Za&&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 fa=Je;for(let sa=0,ks=x.length;sa<ks;sa++){const ps=fa+x[sa].duration,Ws=fa+x[sa].cts;if(sa<ks-1){const lo=ps+x[sa+1].cts;x[sa].duration=lo-Ws}else x[sa].duration=sa?x[sa-1].duration:Un;x[sa].cts=0,fa=ps}}}Ye=Pi||!Ye?Un:Ye,this.nextAvcDts=Ae=lt+Ye,this.videoSampleDuration=Ye,this.isVideoContiguous=!0;const Ks={data1:It.moof(e.sequenceNumber++,Je,n({},e,{samples:x})),data2:qi,startPTS:_t/s,endPTS:(Ft+Ye)/s,startDTS:Je/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,Re=this._initPTS,Ye=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Je=[],lt=s!==void 0;let _t=e.samples,Ft=Ye?0:8,gr=this.nextAudioPts||-1;const Nr=t*l,Rr=Re.baseTime*l/Re.timescale;if(this.isAudioContiguous=r=r||_t.length&&gr>0&&(i&&Math.abs(Nr-gr)<9e3||Math.abs(rn(_t[0].pts-Rr,Nr)-gr)<20*Ae),_t.forEach(function(Ra){Ra.pts=rn(Ra.pts-Rr,Nr)}),!r||gr<0){if(_t=_t.filter(Ra=>Ra.pts>=0),!_t.length)return;s===0?gr=0:i&&!lt?gr=Math.max(0,Nr):gr=_t[0].pts}if(e.segmentCodec==="aac"){const Ra=this.config.maxAudioFramesDrift;for(let Fs=0,Ks=gr;Fs<_t.length;Fs++){const fa=_t[Fs],sa=fa.pts,ks=sa-Ks,ps=Math.abs(1e3*ks/l);if(ks<=-Ra*Ae&<)Fs===0&&(B.warn(`Audio frame @ ${(sa/l).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*ks/l)} ms.`),this.nextAudioPts=gr=Ks=sa);else if(ks>=Ra*Ae&&ps<ni&<){let Ws=Math.round(ks/Ae);Ks=sa-Ws*Ae,Ks<0&&(Ws--,Ks+=Ae),Fs===0&&(this.nextAudioPts=gr=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=Vt.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=fa.unit.subarray()),_t.splice(Fs,0,{unit:Fo,pts:Ms}),Ks+=Ae,Fs++}}fa.pts=Ks,Ks+=Ae}}let Un=null,un=null,gi,Kn=0,Ii=_t.length;for(;Ii--;)Kn+=_t[Ii].unit.byteLength;for(let Ra=0,Fs=_t.length;Ra<Fs;Ra++){const Ks=_t[Ra],fa=Ks.unit;let sa=Ks.pts;if(un!==null){const ps=Je[Ra-1];ps.duration=Math.round((sa-un)/j)}else if(r&&e.segmentCodec==="aac"&&(sa=gr),Un=sa,Kn>0){Kn+=Ft;try{gi=new Uint8Array(Kn)}catch(ps){this.observer.emit(a.ERROR,a.ERROR,{type:A.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:ps,bytes:Kn,reason:`fail allocating audio mdat ${Kn}`});return}Ye||(new DataView(gi.buffer).setUint32(0,Kn),gi.set(It.types.mdat,4))}else return;gi.set(fa,Ft);const ks=fa.byteLength;Ft+=ks,Je.push(new He(!0,q,ks,0)),un=sa}const qi=Je.length;if(!qi)return;const mi=Je[Je.length-1];this.nextAudioPts=gr=un+j*mi.duration;const Pi=Ye?new Uint8Array(0):It.moof(e.sequenceNumber++,Un/j,n({},e,{samples:Je}));e.samples=[];const Za=Un/l,na=gr/l,Qa={data1:Pi,data2:gi,startPTS:Za,endPTS:na,startDTS:Za,endDTS:na,type:"audio",hasAudio:!0,hasVideo:!1,nb:qi};return this.isAudioContiguous=!0,Qa}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,Re=(j!==null?j:i.startDTS*s)+Ae,Ye=i.endDTS*s+Ae,Je=x*kr,lt=Math.ceil((Ye-Re)/Je),_t=Vt.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(B.warn("[mp4-remuxer]: remux empty Audio"),!_t){B.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const Ft=[];for(let gr=0;gr<lt;gr++){const Nr=Re+gr*Je;Ft.push({unit:_t,pts:Nr,dts:Nr})}return e.samples=Ft,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 _n(d){for(let e=0;e<d.length;e++)if(d[e].key)return e;return-1}function ii(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 Di(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(Oe(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=Gt(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 Re={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 Re;const Je={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."),Re;this.emitInitSegment&&(Je.tracks=this.initTracks,this.emitInitSegment=!1);const _t=Ln(Ye,lt),Ft=Nt(lt,Ye),gr=Ft===null?s:Ft;(w(q,gr,s,_t)||Je.timescale!==q.timescale&&l)&&(Je.initPTS=gr-s,q&&q.timescale===1&&B.warn(`Adjusting initPTS by ${Je.initPTS-q.baseTime}`),this.initPTS=q={baseTime:Je.initPTS,timescale:1});const Nr=e?gr-q.baseTime/q.timescale:Ae,Rr=Nr+_t;yi(lt,Ye,q.baseTime/q.timescale),_t>0?this.lastEndTime=Rr:(B.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Un=!!lt.audio,un=!!lt.video;let gi="";Un&&(gi+="audio"),un&&(gi+="video");const Kn={data1:Ye,startPTS:Nr,startDTS:Nr,endPTS:Rr,endDTS:Rr,type:gi,hasAudio:Un,hasVideo:un,nb:1,dropped:0};return Re.audio=Kn.type==="audio"?Kn:void 0,Re.video=Kn.type!=="audio"?Kn:void 0,Re.initSegment=Je,Re.id3=ii(r,s,q,q),i.samples.length&&(Re.text=Di(i,s,q)),Re}}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:An},{demux:pn,remux:An},{demux:jt,remux:An}];Be.splice(2,0,{demux:er,remux:An});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:Re,accurateTimeOffset:Ye,timeOffset:Je,initSegmentChange:lt}=i||x,{audioCodec:_t,videoCodec:Ft,defaultInitPts:gr,duration:Nr,initSegmentData:Rr}=j,Un=xt(l,t);if(Un&&Un.method==="AES-128"){const Ii=this.getDecrypter();if(Ii.isSync()){let qi=Ii.softwareDecrypt(l,Un.key.buffer,Un.iv.buffer);if(r.part>-1&&(qi=Ii.flush()),!qi)return s.executeEnd=K(),bt(r);l=new Uint8Array(qi)}else return this.decryptionPromise=Ii.webCryptoDecrypt(l,Un.key.buffer,Un.iv.buffer).then(qi=>{const mi=this.push(qi,null,r);return this.decryptionPromise=null,mi}),this.decryptionPromise}const un=this.needsProbing(Ae,Re);if(un){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||Re||lt||un)&&this.resetInitSegment(Rr,_t,Ft,Nr,t),(Ae||lt||un)&&this.resetInitialTimestamp(gr),q||this.resetContiguity();const gi=this.transmux(l,Un,Je,Ye,r),Kn=this.currentTransmuxState;return Kn.contiguous=!0,Kn.discontinuity=!1,Kn.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 Re=r.flush();Re&&l.push(this.push(Re,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(Re=>(this.flushRemux(l,Re,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,Je=Be.length;Ye<Je;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,Re=l.demux;(!q||!(q instanceof Ae))&&(this.remuxer=new Ae(r,t,i,s)),(!j||!(j instanceof Re))&&(this.demuxer=new Re(r,t,i),this.probe=Re.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,Re,Ye){if(typeof Ae!="function")throw new TypeError("The listener must be a function");var Je=new i(Ae,Re||j,Ye),lt=t?t+q:q;return j._events[lt]?j._events[lt].fn?j._events[lt]=[j._events[lt],Je]:j._events[lt].push(Je):(j._events[lt]=Je,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,Re;if(this._eventsCount===0)return q;for(Re in Ae=this._events)e.call(Ae,Re)&&q.push(t?Re.slice(1):Re);return Object.getOwnPropertySymbols?q.concat(Object.getOwnPropertySymbols(Ae)):q},x.prototype.listeners=function(q){var Ae=t?t+q:q,Re=this._events[Ae];if(!Re)return[];if(Re.fn)return[Re.fn];for(var Ye=0,Je=Re.length,lt=new Array(Je);Ye<Je;Ye++)lt[Ye]=Re[Ye].fn;return lt},x.prototype.listenerCount=function(q){var Ae=t?t+q:q,Re=this._events[Ae];return Re?Re.fn?1:Re.length:0},x.prototype.emit=function(q,Ae,Re,Ye,Je,lt){var _t=t?t+q:q;if(!this._events[_t])return!1;var Ft=this._events[_t],gr=arguments.length,Nr,Rr;if(Ft.fn){switch(Ft.once&&this.removeListener(q,Ft.fn,void 0,!0),gr){case 1:return Ft.fn.call(Ft.context),!0;case 2:return Ft.fn.call(Ft.context,Ae),!0;case 3:return Ft.fn.call(Ft.context,Ae,Re),!0;case 4:return Ft.fn.call(Ft.context,Ae,Re,Ye),!0;case 5:return Ft.fn.call(Ft.context,Ae,Re,Ye,Je),!0;case 6:return Ft.fn.call(Ft.context,Ae,Re,Ye,Je,lt),!0}for(Rr=1,Nr=new Array(gr-1);Rr<gr;Rr++)Nr[Rr-1]=arguments[Rr];Ft.fn.apply(Ft.context,Nr)}else{var Un=Ft.length,un;for(Rr=0;Rr<Un;Rr++)switch(Ft[Rr].once&&this.removeListener(q,Ft[Rr].fn,void 0,!0),gr){case 1:Ft[Rr].fn.call(Ft[Rr].context);break;case 2:Ft[Rr].fn.call(Ft[Rr].context,Ae);break;case 3:Ft[Rr].fn.call(Ft[Rr].context,Ae,Re);break;case 4:Ft[Rr].fn.call(Ft[Rr].context,Ae,Re,Ye);break;default:if(!Nr)for(un=1,Nr=new Array(gr-1);un<gr;un++)Nr[un-1]=arguments[un];Ft[Rr].fn.apply(Ft[Rr].context,Nr)}}return!0},x.prototype.on=function(q,Ae,Re){return s(this,q,Ae,Re,!1)},x.prototype.once=function(q,Ae,Re){return s(this,q,Ae,Re,!0)},x.prototype.removeListener=function(q,Ae,Re,Ye){var Je=t?t+q:q;if(!this._events[Je])return this;if(!Ae)return l(this,Je),this;var lt=this._events[Je];if(lt.fn)lt.fn===Ae&&(!Ye||lt.once)&&(!Re||lt.context===Re)&&l(this,Je);else{for(var _t=0,Ft=[],gr=lt.length;_t<gr;_t++)(lt[_t].fn!==Ae||Ye&&!lt[_t].once||Re&<[_t].context!==Re)&&Ft.push(lt[_t]);Ft.length?this._events[Je]=Ft.length===1?Ft[0]:Ft:l(this,Je)}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 Cn=nn.exports,Xr=we(Cn);class dn{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=Jn(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=Re=>this.onWorkerMessage(Re);const{worker:Ae}=this.workerContext;Ae.addEventListener("message",this.onwmsg),Ae.onerror=Re=>{const Ye=new Error(`${Re.message} (${Re.filename}:${Re.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 Re,Ye;q.transmuxing.start=self.performance.now();const{transmuxer:Je}=this,lt=l?l.start:s.start,_t=s.decryptdata,Ft=this.frag,gr=!(Ft&&s.cc===Ft.cc),Nr=!(Ft&&q.level===Ft.level),Rr=Ft?q.sn-Ft.sn:-1,Un=this.part?q.part-this.part.index:-1,un=Rr===0&&q.id>1&&q.id===(Ft==null?void 0:Ft.stats.chunkCount),gi=!Nr&&(Rr===1||Rr===0&&(Un===1||un&&Un<=0)),Kn=self.performance.now();(Nr||Rr||s.stats.parsing.start===0)&&(s.stats.parsing.start=Kn),l&&(Un||!gi)&&(l.stats.parsing.start=Kn);const Ii=!(Ft&&((Re=s.initSegment)==null?void 0:Re.url)===((Ye=Ft.initSegment)==null?void 0:Ye.url)),qi=new xr(gr,gi,j,Nr,lt,Ii);if(!gi||gr||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: ${gr}
|
|
|
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:_t,chunkMeta:q,state:qi},e instanceof ArrayBuffer?[e]:[]);else if(Je){const mi=Je.push(e,_t,q,qi);Xt(mi)?(Je.async=!0,mi.then(Pi=>{this.handleTransmuxComplete(Pi)}).catch(Pi=>{this.transmuxerError(Pi,q,"transmuxer-interface push error")})):(Je.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 qn extends Au{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",Ht.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===oi.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=oi.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=oi.IDLE):(this.loadedmetadata=!1,this.state=oi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case oi.IDLE:this.doTickIdle();break;case oi.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=oi.WAITING_INIT_PTS}break}case oi.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=oi.IDLE}break}case oi.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=oi.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=qa.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=oi.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=oi.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=oi.WAITING_TRACK;return}const j=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&j&&(this.bufferFlushed=!1,this.afterBufferFlushed(j,me.AUDIO,Ht.AUDIO));const q=this.getFwdBufferInfo(j,Ht.AUDIO);if(q===null)return;if(!this.switchingTrack&&this._streamEnded(q,x)){e.trigger(a.BUFFER_EOS,{type:"audio"}),this.state=oi.ENDED;return}const Ae=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ht.MAIN),Re=q.len,Ye=this.getMaxBufferLength(Ae==null?void 0:Ae.len),Je=x.fragments,lt=Je[0].start,_t=this.getLoadPosition(),Ft=this.flushing?_t:q.end;if(this.switchingTrack&&r){const Un=_t;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(Re>=Ye&&!this.switchingTrack&&Ft<Je[Je.length-1].start)return;let gr=this.getNextFragment(Ft,x),Nr=!1;if(gr&&this.isLoopLoading(gr,Ft)&&(Nr=!!gr.gap,gr=this.getNextFragmentLoopLoading(gr,x,q,Ht.MAIN,Ye)),!gr){this.bufferFlushed=!0;return}const Rr=Ae&&gr.start>Ae.end+x.targetduration;if(Rr||!(Ae!=null&&Ae.len)&&q.len){const Un=this.getAppendedFrag(gr.start,Ht.MAIN);if(Un===null||(Nr||(Nr=!!Un.gap||!!Rr&&Ae.len===0),Rr&&!Nr||Nr&&q.nextStart&&q.nextStart<Un.end))return}this.loadFragment(gr,l,Ft)}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=oi.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=oi.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===oi.WAITING_TRACK&&!this.waitForCdnTuneIn(s)&&(this.state=oi.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 Re=l.defaultAudioCodec||q.audioCodec||"mp4a.40.2";let Ye=this.transmuxer;Ye||(Ye=this.transmuxer=new dn(this.hls,Ht.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Je=this.initPTS[r.cc],lt=(t=r.initSegment)==null?void 0:t.data;if(Je!==void 0){const Ft=i?i.index:-1,gr=Ft!==-1,Nr=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,Ft,gr);Ye.push(s,lt,Re,"",r,i,Ae.totalduration,!1,Nr,Je)}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:_t}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new Wl,complete:!1};_t.push(new Uint8Array(s)),this.waitingVideoCC=this.videoTrackCC,this.state=oi.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!==Ht.AUDIO){if(!this.loadedmetadata&&r.type===Ht.MAIN){const s=this.videoBuffer||this.media;s&&qa.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=oi.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(Ht.AUDIO,t);break;case m.AUDIO_TRACK_LOAD_ERROR:case m.AUDIO_TRACK_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===oi.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===wn.AUDIO_TRACK&&(this.state=oi.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===oi.ENDED&&(this.state=oi.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,Ht.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:Re}=Ae,{audio:Ye,text:Je,id3:lt,initSegment:_t}=s;if(this.fragContextChanged(j)||!Re){this.fragmentTracker.removeFragment(j);return}if(this.state=oi.PARSING,this.switchingTrack&&Ye&&this.completeAudioSwitch(this.switchingTrack),_t!=null&&_t.tracks){const Ft=j.initSegment||j;this._bufferInitSegment(Ae,_t.tracks,Ft,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Ft,id:r,tracks:_t.tracks})}if(Ye){const{startPTS:Ft,endPTS:gr,startDTS:Nr,endDTS:Rr}=Ye;q&&(q.elementaryStreams[me.AUDIO]={startPTS:Ft,endPTS:gr,startDTS:Nr,endDTS:Rr}),j.setElementaryStreamInfo(me.AUDIO,Ft,gr,Nr,Rr),this.bufferFragmentData(Ye,j,q,l)}if(lt!=null&&(t=lt.samples)!=null&&t.length){const Ft=n({id:r,frag:j,details:Re},lt);i.trigger(a.FRAG_PARSING_METADATA,Ft)}if(Je){const Ft=n({id:r,frag:j,details:Re},Je);i.trigger(a.FRAG_PARSING_USERDATA,Ft)}}_bufferInitSegment(e,t,r,i){if(this.state!==oi.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===Ea.NOT_LOADED||i===Ea.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=oi.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,ma)||(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 xi(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 Ji 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,Je)=>{Ye.id=Je});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=x;const j=this.hls.config.audioPreference;if(!s&&j){const Ye=fo(j,x,ma);if(Ye>-1)s=x[Ye];else{const Je=fo(j,this.tracks);s=this.tracks[Je]}}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 Re=this.trackId;if(q!==-1&&Re===-1)this.setAudioTrack(q);else if(x.length&&Re===-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===wn.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,ma))return i;const s=fo(e,this.tracksInGroup,ma);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,ma);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,ma)))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,ma))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 $i=500;class Sa extends Au{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",Ht.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=oi.IDLE,this.setInterval($i),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=oi.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,Ht.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ht.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)===Ht.SUBTITLE&&(t.details===m.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==oi.STOPPED&&(this.state=oi.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&xi(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,Ht.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($i)}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 Re=this.mainDetails;if(l.deltaUpdateFailed||!Re)return;const Ye=Re.fragments[0];if(!j.details)l.hasProgramDateTime&&Re.hasProgramDateTime?(Gs(l,Re),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===oi.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=oi.IDLE})}}doTick(){if(!this.media){this.state=oi.IDLE;return}if(this.state===oi.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=qa.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],s,i.maxBufferHole),{end:x,len:j}=l,q=this.getFwdBufferInfo(this.media,Ht.MAIN),Ae=r.details,Re=this.getMaxBufferLength(q==null?void 0:q.len)+Ae.levelTargetDuration;if(j>Re)return;const Ye=Ae.fragments,Je=Ye.length,lt=Ae.edge;let _t=null;const Ft=this.fragPrevious;if(x<lt){const gr=i.maxFragLookUpTolerance,Nr=x>lt-gr?0:gr;_t=go(Ft,Ye,Math.max(Ye[0].start,x),Nr),!_t&&Ft&&Ft.start<Ye[0].start&&(_t=Ye[0])}else _t=Ye[Je-1];if(!_t)return;if(_t=this.mapToInitFragWhenRequired(_t),_t.sn!=="initSegment"){const gr=_t.sn-Ae.startSN,Nr=Ye[gr-1];Nr&&Nr.cc===_t.cc&&this.fragmentTracker.getState(Nr)===Ea.NOT_LOADED&&(_t=Nr)}this.fragmentTracker.getState(_t)===Ea.NOT_LOADED&&this.loadFragment(_t,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 Ia(this.tracksBuffered[this.currentTrackId]||[])}}class Ia{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=hi(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),hi(this.media.textTracks).forEach(t=>{Ca(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,Re)=>{Ae.id=Re});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 Re=fo(x,this.tracks);s=this.tracks[Re]}}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===wn.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=hi(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 Re=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(Re)}}class Ta{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 ai{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=Ni(Jn(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 Ta(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=Jn(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,Ka(r),ls(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&&Ka(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:Re,container:Ye,metadata:Je}=t[l],lt=ui(j.codec,j.levelCodec),_t=lt==null?void 0:lt.replace(Ba,"$1");let Ft=ui(Ae,Re);const gr=(x=Ft)==null?void 0:x.replace(Ba,"$1");if(Ft&&_t!==gr){l.slice(0,5)==="audio"&&(Ft=ti(Ft,this.appendSource));const Nr=`${Ye};codecs=${Ft}`;this.appendChangeType(l,Nr),this.log(`switching codec ${lt} to ${Ft}`),this.tracks[l]={buffer:j.buffer,codec:Ae,container:Ye,levelCodec:Re,metadata:Je,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,Re=Ae.buffering[x],Ye=self.performance.now();Re.start=Ye;const Je=j.stats.buffering,lt=q?q.stats.buffering:null;Je.start===0&&(Je.start=Ye),lt&<.start===0&&(lt.start=Ye);const _t=s.audio;let Ft=!1;x==="audio"&&(_t==null?void 0:_t.container)==="audio/mpeg"&&(Ft=!this.lastMpegAudioChunk||Ae.id===1||this.lastMpegAudioChunk.sn!==Ae.sn,this.lastMpegAudioChunk=Ae);const gr=j.start,Nr={execute:()=>{if(Re.executeStart=self.performance.now(),Ft){const Rr=this.sourceBuffer[x];if(Rr){const Un=gr-Rr.timestampOffset;Math.abs(Un)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${gr} (delta: ${Un}) sn: ${j.sn})`),Rr.timestampOffset=gr)}}this.appendExecutor(l,x)},onStart:()=>{},onComplete:()=>{const Rr=self.performance.now();Re.executeEnd=Re.end=Rr,Je.first===0&&(Je.first=Rr),lt&<.first===0&&(lt.first=Rr);const{sourceBuffer:Un}=this,un={};for(const gi in Un)un[gi]=qa.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:un})},onError:Rr=>{const Un={type:A.MEDIA_ERROR,parent:j.type,details:m.BUFFER_APPEND_ERROR,sourceBufferName:x,frag:j,part:q,chunkMeta:Ae,error:Rr,err:Rr,fatal:!1};if(Rr.code===DOMException.QUOTA_EXCEEDED_ERR)Un.details=m.BUFFER_FULL_ERROR;else{const un=++this.appendErrors[x];Un.details=m.BUFFER_APPEND_ERROR,this.warn(`Failed ${un}/${r.config.appendErrorMaxRetry} times to append segment in "${x}" sourceBuffer`),un>=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),Re=Math.floor(l/x)*x+Ae;this.flushFrontBuffer(l,x,Re)}}flushBackBuffer(e,t,r){const{details:i,sourceBuffer:s}=this;this.getSourceBufferTypes().forEach(x=>{const j=s[x];if(j){const q=qa.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=qa.getBuffered(x),q=j.length;if(q<2)return;const Ae=j.start(q-1),Re=j.end(q-1);if(r>Ae||e>=Ae&&e<=Re)return;if(x.ended&&e-Re<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",(Re,Ye)=>{const Je=Ye.removedRanges;Je!=null&&Je.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,Re=Math.max(0,t),Ye=Math.min(r,q,Ae);Ye>Re&&(!j.ending||j.ended)?(j.ended=!1,this.log(`Removing [${Re},${Ye}] from the ${e} SourceBuffer`),j.remove(Re,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 Ka(d){const e=d.querySelectorAll("source");[].slice.call(e).forEach(t=>{d.removeChild(t)})}function ls(d,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,d.appendChild(t)}const aa={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},da=d=>String.fromCharCode(aa[d]||d),wa=15,$a=100,us={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ca={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},bs={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<$a;t++)this.chars.push(new $o);this.logger=e}equals(e){for(let t=0;t<$a;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<$a;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<$a;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>$a&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=$a)}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=da(e);if(this.pos>=$a){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<$a;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<$a;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=wa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<wa;t++)this.rows.push(new ho(e));this.logger=e}reset(){for(let e=0;e<wa;e++)this.rows[e].clear();this.currRow=wa-1}equals(e){let t=!0;for(let r=0;r<wa;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<wa;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<wa;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<wa;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<wa;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[wa-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[wa-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)){ts(null,null,j),this.logger.log(3,()=>"Repeated command ("+Xs([i,s])+") is dropped");continue}ts(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 ts(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?us[e]:Ts[e]:r=l===1?ca[e]:bs[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 '"+da(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()}ts(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 ts(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 Re in Ae)x[Re]=Ae[Re]}return x}function l(x,j,q){const Ae=this,Re={enumerable:!0};Ae.hasBeenReset=!1;let Ye="",Je=!1,lt=x,_t=j,Ft=q,gr=null,Nr="",Rr=!0,Un="auto",un="start",gi=50,Kn="middle",Ii=50,qi="middle";Object.defineProperty(Ae,"id",s({},Re,{get:function(){return Ye},set:function(mi){Ye=""+mi}})),Object.defineProperty(Ae,"pauseOnExit",s({},Re,{get:function(){return Je},set:function(mi){Je=!!mi}})),Object.defineProperty(Ae,"startTime",s({},Re,{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({},Re,{get:function(){return _t},set:function(mi){if(typeof mi!="number")throw new TypeError("End time must be set to a number.");_t=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"text",s({},Re,{get:function(){return Ft},set:function(mi){Ft=""+mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"region",s({},Re,{get:function(){return gr},set:function(mi){gr=mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"vertical",s({},Re,{get:function(){return Nr},set:function(mi){const Pi=r(mi);if(Pi===!1)throw new SyntaxError("An invalid or illegal string was specified.");Nr=Pi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"snapToLines",s({},Re,{get:function(){return Rr},set:function(mi){Rr=!!mi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"line",s({},Re,{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({},Re,{get:function(){return un},set:function(mi){const Pi=i(mi);if(!Pi)throw new SyntaxError("An invalid or illegal string was specified.");un=Pi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"position",s({},Re,{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({},Re,{get:function(){return Kn},set:function(mi){const Pi=i(mi);if(!Pi)throw new SyntaxError("An invalid or illegal string was specified.");Kn=Pi,this.hasBeenReset=!0}})),Object.defineProperty(Ae,"size",s({},Re,{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({},Re,{get:function(){return qi},set:function(mi){const Pi=i(mi);if(!Pi)throw new SyntaxError("An invalid or illegal string was specified.");qi=Pi,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 Ua{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 _s(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 rs=new Jo(0,0,""),Bs=rs.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 Ua;_s(x,function(Ye,Je){let lt;switch(Ye){case"region":for(let _t=t.length-1;_t>=0;_t--)if(t[_t].id===Je){q.set(Ye,t[_t].region);break}break;case"vertical":q.alt(Ye,Je,["rl","lr"]);break;case"line":lt=Je.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",Bs,"end"]);break;case"position":lt=Je.split(","),q.percent(Ye,lt[0]),lt.length===2&&q.alt("positionAlign",lt[1],["start",Bs,"end","line-left","line-right","auto"]);break;case"size":q.percent(Ye,Je);break;case"align":q.alt(Ye,Je,["start",Bs,"end","left","right"]);break}},/:/,/\s/),j.region=q.get("region",null),j.vertical=q.get("vertical","");let Ae=q.get("line","auto");Ae==="auto"&&rs.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",Bs);let Re=q.get("position","auto");Re==="auto"&&rs.position===50&&(Re=j.align==="start"||j.align==="left"?0:j.align==="end"||j.align==="right"?100:50),j.position=Re}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){_s(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=At(new Uint8Array(d)).trim().replace(Cl,`
|
|
|
`).split(`
|
|
|
`),q=[],Ae=e?Dn(e.baseTime,e.timescale):0;let Re="00:00.000",Ye=0,Je=0,lt,_t=!0;x.oncue=function(Ft){const gr=t[r];let Nr=t.ccOffset;const Rr=(Ye-Ae)/9e4;if(gr!=null&&gr.new&&(Je!==void 0?Nr=t.ccOffset=gr.start:$u(t,r,Rr)),Rr){if(!e){lt=new Error("Missing initPTS for VTT MPEGTS");return}Nr=Rr-t.presentationOffset}const Un=Ft.endTime-Ft.startTime,un=rn((Ft.startTime+Nr-Je)*9e4,i*9e4)/9e4;Ft.startTime=Math.max(un,0),Ft.endTime=Math.max(un+Un,0);const gi=Ft.text.trim();Ft.text=decodeURIComponent(encodeURIComponent(gi)),Ft.id||(Ft.id=Yl(Ft.startTime,Ft.endTime,gi)),Ft.endTime>0&&q.push(Ft)},x.onparsingerror=function(Ft){lt=Ft},x.onflush=function(){if(lt){l(lt);return}s(q)},j.forEach(Ft=>{if(_t)if(Ko(Ft,"X-TIMESTAMP-MAP=")){_t=!1,Ft.slice(16).split(",").forEach(gr=>{Ko(gr,"LOCAL:")?Re=gr.slice(6):Ko(gr,"MPEGTS:")&&(Ye=parseInt(gr.slice(7)))});try{Je=Vl(Re)/1e3}catch(gr){lt=gr}return}else Ft===""&&(_t=!1);x.parse(Ft+`
|
|
|
`)}),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=Tt(new Uint8Array(d),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const s=i.map(x=>At(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((Re,Ye)=>(Re[Ye]=i.getAttribute(`ttp:${Ye}`)||s[Ye],Re),{}),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,Re=>{const Ye=kl(Re,x);if(!Ye||!Re.hasAttribute("begin"))return null;const Je=ko(Re.getAttribute("begin"),l),lt=ko(Re.getAttribute("dur"),l);let _t=ko(Re.getAttribute("end"),l);if(Je===null)throw vu(Re);if(_t===null){if(lt===null)throw vu(Re);_t=Je+lt}const Ft=new Jo(Je-e,_t-e,Ye);Ft.id=Yl(Ft.startTime,Ft.endTime,Ft.text);const gr=q[Re.getAttribute("region")],Nr=j[Re.getAttribute("style")],Rr=gu(gr,Nr,j),{textAlign:Un}=Rr;if(Un){const un=Ku[Un];un&&(Ft.lineAlign=un),Ft.align=Un}return n(Ft,Rr),Ft}).filter(Re=>Re!==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,Ca(r[e]),ki(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=>{Ca(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++)Ca(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(xi(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const l=this.media,x=l?hi(l.textTracks):null;if(this.tracks.forEach((j,q)=>{let Ae;if(x){let Re=null;for(let Ye=0;Ye<x.length;Ye++)if(x[Ye]&&Du(x[Ye],j)){Re=x[Ye],x[Ye]=null;break}Re&&(Ae=Re)}if(Ae)Ca(Ae);else{const Re=Fu(j);Ae=this.createTextTrack(Re,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===Ht.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===Ht.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?jn(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 Re=Ae.message==="Missing initPTS for VTT MPEGTS";Re?l.push(e):this._fallbackToIMSC1(r,i),B.log(`Failed to parse VTT cue: ${Ae}`),!(Re&&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=>Aa(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===Ht.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===Ht.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=>ta(x[j],t,r))}if(this.config.renderTextTracksNatively&&t===0&&i!==void 0){const{textTracks:x}=this;Object.keys(x).forEach(j=>ta(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=Cr(this.config));const x=l.map(Er).filter(j=>!!j);this.keyFormatPromise=this.getKeyFormatPromise(x)}this.keyFormatPromise.then(l=>{const x=lr(l);let j,q;if(r==="sinf"){if(x!==rt.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const lt=vr(new Uint8Array(i));try{const _t=_(JSON.parse(lt).sinf),Ft=fn(_t);if(!Ft)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");j=Ft.subarray(8,24),q=rt.FAIRPLAY}catch(_t){this.warn(`${s} Failed to parse sinf: ${_t}`);return}}else{if(x!==rt.WIDEVINE&&x!==rt.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const lt=Tn(i),_t=lt.filter(gr=>!!gr.systemId&&Ze(gr.systemId)===x);_t.length>1&&this.warn(`${s} Using first of ${_t.length} pssh found for selected key-system ${x}`);const Ft=_t[0];if(!Ft){lt.length===0||lt.some(gr=>!gr.systemId)?this.warn(`${s} contains incomplete or invalid pssh data`):this.log(`ignoring ${s} for ${lt.map(gr=>Ze(gr.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(q=Ze(Ft.systemId),Ft.version===0&&Ft.data)if(q===rt.WIDEVINE){const gr=Ft.data.length-22;j=Ft.data.subarray(gr,gr+16)}else q===rt.PLAYREADY&&(j=St(Ft.data))}if(!q||!j){this.log(`Unable to handle ${s} with key-system ${x}`);return}const Ae=Bt.hexDump(j),{keyIdToKeySessionPromise:Re,mediaKeySessions:Ye}=this;let Je=Re[Ae];for(let lt=0;lt<Ye.length;lt++){const _t=Ye[lt],Ft=_t.decryptdata;if(!Ft.keyId)continue;const gr=Bt.hexDump(Ft.keyId);if(Ae===gr||Ft.uri.replace(/-/g,"").indexOf(Ae)!==-1){if(Je=Re[gr],Ft.pssh)break;delete Re[gr],Ft.pssh=new Uint8Array(i),Ft.keyId=j,Je=Re[Ae]=Je.then(()=>this.generateRequestWithPreferredKeySession(_t,r,i,"encrypted-event-key-match")),Je.catch(Nr=>this.handleError(Nr));break}}if(!Je){if(q!==x){this.log(`Ignoring "${s}" with ${q} init data for selected key-system ${x}`);return}Je=Re[Ae]=this.getKeySystemSelectionPromise([q]).then(({keySystem:lt,mediaKeys:_t})=>{var Ft;this.throwIfDestroyed();const gr=new gn("ISO-23001-7",Ae,(Ft=Er(lt))!=null?Ft:"");return gr.pssh=new Uint8Array(i),gr.keyId=j,this.attemptSetMediaKeys(lt,_t).then(()=>{this.throwIfDestroyed();const Nr=this.createMediaKeySessionContext({decryptdata:gr,keySystem:lt,mediaKeys:_t});return this.generateRequestWithPreferredKeySession(Nr,r,i,"encrypted-event-no-match")})}),Je.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===rt.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(Re=>l({keySystem:Ae,mediaKeys:Re})).catch(Re=>{q.length?j(q):Re instanceof Ho?x(Re):x(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_ACCESS,error:Re,fatal:!0},Re.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(Re=>Re?this.setMediaKeysServerCertificate(Ae,e,Re):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=Cr(this.config),s=e.map(lr).filter(l=>!!l&&i.indexOf(l)!==-1);return this.getKeySystemSelectionPromise(s).then(({keySystem:l})=>{const x=Er(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=lr(e.keyFormat),s=i?[i]:Cr(this.config);return this.attemptKeySystemAccess(s)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Cr(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,Re=e._onmessage=lt=>{const _t=e.mediaKeysSession;if(!_t){Ae.emit("error",new Error("invalid state"));return}const{messageType:Ft,message:gr}=lt;this.log(`"${Ft}" message event for session "${_t.sessionId}" message size: ${gr.byteLength}`),Ft==="license-request"||Ft==="license-renewal"?this.renewLicense(e,gr).catch(Nr=>{this.handleError(Nr),Ae.emit("error",Nr)}):Ft==="license-release"?e.keySystem===rt.FAIRPLAY&&(this.updateKeySession(e,qe("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Ft}"`)},Ye=e._onkeystatuseschange=lt=>{if(!e.mediaKeysSession){Ae.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Ft=e.keyStatus;Ae.emit("keyStatus",Ft),Ft==="expired"&&(this.warn(`${e.keySystem} expired for key ${q}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",Re),e.mediaKeysSession.addEventListener("keystatuseschange",Ye);const Je=new Promise((lt,_t)=>{Ae.on("error",_t),Ae.on("keyStatus",Ft=>{Ft.startsWith("usable")?lt():Ft==="output-restricted"?_t(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Ft==="internal-error"?_t(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Ft}"`)):Ft==="expired"?_t(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Ft}"`)})});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(()=>Je).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},Re={onSuccess:(Ye,Je,lt,_t)=>{l(Ye.data)},onError:(Ye,Je,lt,_t)=>{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,Je,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,Je,lt)=>{x(new Error("aborted"))}};i.load(j,Ae,Re)})):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 Re=0,Ye=s.length;Re<Ye;Re++){var l,x;Ae=s[Re];const Je=(l=Ae.querySelector("name"))==null?void 0:l.textContent,lt=(x=Ae.querySelector("value"))==null?void 0:x.textContent;Je&<&&e.setRequestHeader(Je,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 qe(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==rt.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 ws;(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"})(ws||(ws={}));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 za{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof za?r:new za(r))),this.value=e,this.params=t}}class ds{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 ds)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 za?`${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 za||(s=new za(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 mr=d=>d==="ot"||d==="sf"||d==="st",Lr=d=>typeof d=="number"?o(d):d!=null&&d!==""&&d!==!1;function ln(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 $n(){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 _i=d=>Math.round(d),ra=(d,e)=>(e!=null&&e.baseUrl&&(d=ln(d,e.baseUrl)),encodeURIComponent(d)),ya=d=>_i(d/100)*100,Xa={br:_i,d:_i,bl:ya,dl:ya,mtp:ya,nor:ra,rtp:ya,tb:_i};function Ga(d,e){const t={};if(d==null||typeof d!="object")return t;const r=Object.keys(d).sort(),i=n({},Xa,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||Lr(x)&&(mr(l)&&typeof x=="string"&&(x=new ds(x)),t[l]=x))}),t}function xs(d,e={}){return d?Et(Ga(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,Re=((x=r.find(Ye=>Ye[1].includes(q)))==null?void 0:x[0])||qo.REQUEST;return(j=s[Re])!=null||(s[Re]={}),s[Re][q]=Ae,s},{});return Object.entries(i).reduce((s,[l,x])=>(s[l]=xs(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=xs(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:ws.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===ws.VIDEO||x===ws.AUDIO||x==ws.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||$n(),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===ws.INIT||t.ot===ws.VIDEO||t.ot===ws.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 ws.TIMED_TEXT;if(e.sn==="initSegment")return ws.INIT;if(t==="audio")return ws.AUDIO;if(t==="main")return this.hls.audioTracks.length?ws.VIDEO:ws.MUXED}getTopBandwidth(e){let t=0,r;const i=this.hls;if(e===ws.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===ws.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:qa.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,ji(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===wn.AUDIO_TRACK&&i[s].hasAudioGroup(e)||t===wn.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 Re=new J(Ae.attrs);Re["PATHWAY-ID"]=l;const Ye=Re.AUDIO&&`${Re.AUDIO}_clone_${l}`,Je=Re.SUBTITLES&&`${Re.SUBTITLES}_clone_${l}`;Ye&&(r[Re.AUDIO]=Ye,Re.AUDIO=Ye),Je&&(i[Re.SUBTITLES]=Je,Re.SUBTITLES=Je);const lt=hc(Ae.uri,Re["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",j),_t=new Wi({attrs:Re,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 Ft=1;Ft<Ae.audioGroups.length;Ft++)_t.addGroupId("audio",`${Ae.audioGroups[Ft]}_clone_${l}`);if(Ae.subtitleGroups)for(let Ft=1;Ft<Ae.subtitleGroups.length;Ft++)_t.addGroupId("text",`${Ae.subtitleGroups[Ft]}_clone_${l}`);return _t});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,Re,Ye,Je)=>{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":_t,"PATHWAY-CLONES":Ft,"PATHWAY-PRIORITY":gr}=lt;if(_t)try{this.uri=new self.URL(_t,i).href}catch(Rr){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${_t}`);return}this.scheduleRefresh(this.uri||Ye.url),Ft&&this.clonePathways(Ft);const Nr={steeringManifest:lt,url:i.toString()};this.hls.trigger(a.STEERING_MANIFEST_LOADED,Nr),gr&&this.updatePathwayPriority(gr)},onError:(Ae,Re,Ye,Je)=>{if(this.log(`Error loading steering manifest: ${Ae.code} ${Ae.text} (${Re.url})`),this.stopLoad(),Ae.code===410){this.enabled=!1,this.log(`Steering manifest ${Re.url} no longer available`);return}let lt=this.timeToLoad*1e3;if(Ae.code===429){const _t=this.loader;if(typeof(_t==null?void 0:_t.getResponseHeader)=="function"){const Ft=_t.getResponseHeader("Retry-After");Ft&&(lt=parseFloat(Ft)*1e3)}this.log(`Steering manifest ${Re.url} rate limited`);return}this.scheduleRefresh(this.uri||Re.url,lt)},onTimeout:(Ae,Re,Ye)=>{this.log(`Timeout loading steering manifest (${Re.url})`),this.scheduleRefresh(this.uri||Re.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 Re=x!=null?x:t.response;if(Re!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const Ye=t.responseType==="arraybuffer"?Re.byteLength:Re.length;if(r.loaded=r.total=Ye,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const Je=this.callbacks.onProgress;if(Je&&Je(r,e,Re,t),!this.callbacks)return;const lt={url:t.responseURL,data:Re,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};As(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(As(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=ka(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(Re=>{this.response=this.loader=Re;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)),!Re.ok){const{status:Je,statusText:lt}=Re;throw new Oo(lt||"fetch, bad network response",Je,Re)}return i.loading.first=Ye,i.total=Ul(Re.headers)||i.total,l&&o(t.highWaterMark)?this.loadProgressively(Re,i,e,t.highWaterMark,l):x?Re.arrayBuffer():e.responseType==="json"?Re.json():Re.text()}).then(Re=>{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 Je=Re[j];Je&&(i.loaded=i.total=Je);const lt={url:Ye.url,data:Re,code:Ye.status};l&&!o(t.highWaterMark)&&l(i,e,Re,Ye),r.onSuccess(lt,i,e,Ye)}).catch(Re=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const Ye=Re&&Re.code||0,Je=Re?Re.message:null;r.onError({code:Ye,text:Je},e,Re?Re.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,Re=Ae.length;return t.loaded+=Re,Re<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 Re;for(let _t=0;_t<s.chars.length;_t++)nu.test(s.chars[_t].uchar)&&x?j++:(q+=s.chars[_t].uchar,x=!1);s.cueStartTime=e,e===t&&(t+=1e-4),j>=16?j--:j++;const Je=Ro(q.trim()),lt=Yl(e,t,Je);d!=null&&(Re=d.cues)!=null&&Re.getCueById(lt)||(l=new Ae(e,t,Je),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,Je)=>Ye.line==="auto"||Je.line==="auto"?0:Ye.line>8&&Je.line>8?Je.line-Ye.line:Ye.line-Je.line),i.forEach(Ye=>Aa(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:as,bufferController:ai,capLevelController:yu,errorController:vs,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:Sa,subtitleTrackController:Xi,timelineController:Pa,audioStreamController:qn,audioTrackController:Ji,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}`,Re=e[Ae];if(Re!==void 0&&x){j.push(Ae);const Ye=t[l].default;switch(e[l]={default:Ye},q){case"TimeOut":Ye.maxLoadTimeMs=Re,Ye.maxTimeToFirstByteMs=Re;break;case"MaxRetry":Ye.errorRetry.maxNumRetry=Re,Ye.timeoutRetry.maxNumRetry=Re;break;case"RetryDelay":Ye.errorRetry.retryDelayMs=Re,Ye.timeoutRetry.retryDelayMs=Re;break;case"MaxRetryTimeout":Ye.errorRetry.maxRetryDelayMs=Re,Ye.timeoutRetry.maxRetryDelayMs=Re;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 Re,Ye;const Je=Ae.attrs;let{audioCodec:lt,videoCodec:_t}=Ae;((Re=lt)==null?void 0:Re.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=_t)==null?void 0:Ye.indexOf("avc1"))===0&&(_t=Ae.videoCodec=Ri(_t));const{width:Ft,height:gr,unknownCodecs:Nr}=Ae;if(x||(x=!!(Ft&&gr)),j||(j=!!_t),q||(q=!!lt),Nr!=null&&Nr.length||lt&&!hr(lt,"audio",r)||_t&&!hr(_t,"video",r))return;const{CODECS:Rr,"FRAME-RATE":Un,"HDCP-LEVEL":un,"PATHWAY-ID":gi,RESOLUTION:Kn,"VIDEO-RANGE":Ii}=Je,mi=`${`${gi||"."}-`}${Ae.bitrate}-${Kn}-${Un}-${Rr}-${Ii}-${un}`;if(s[mi])if(s[mi].uri!==Ae.url&&!Ae.attrs["PATHWAY-ID"]){const Pi=l[mi]+=1;Ae.attrs["PATHWAY-ID"]=new Array(Pi+1).join(".");const Za=new Wi(Ae);s[mi]=Za,i.push(Za)}else s[mi].addGroupId("audio",Je.AUDIO),s[mi].addGroupId("text",Je.SUBTITLES);else{const Pi=new Wi(Ae);s[mi]=Pi,l[mi]=1,i.push(Pi)}}),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:_t,width:Ft,height:gr})=>(!!lt||!!(Ft&&gr))&&la(_t))),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(_t=>!_t.audioCodec||hr(_t.audioCodec,"audio",lt)),Uo(l)}t.subtitles&&(x=t.subtitles,Uo(x));const q=j.slice(0);j.sort((lt,_t)=>{if(lt.attrs["HDCP-LEVEL"]!==_t.attrs["HDCP-LEVEL"])return(lt.attrs["HDCP-LEVEL"]||"")>(_t.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&<.height!==_t.height)return lt.height-_t.height;if(lt.frameRate!==_t.frameRate)return lt.frameRate-_t.frameRate;if(lt.videoRange!==_t.videoRange)return Mi.indexOf(lt.videoRange)-Mi.indexOf(_t.videoRange);if(lt.videoCodec!==_t.videoCodec){const Ft=Hr(lt.videoCodec),gr=Hr(_t.videoCodec);if(Ft!==gr)return gr-Ft}if(lt.uri===_t.uri&<.codecSet!==_t.codecSet){const Ft=Ur(lt.codecSet),gr=Ur(_t.codecSet);if(Ft!==gr)return gr-Ft}return lt.averageBitrate!==_t.averageBitrate?lt.averageBitrate-_t.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 Re;this._firstLevel=lt;const _t=Ae.bitrate,Ft=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${j.length} level(s) found, first bitrate: ${_t}`),((Re=this.hls.userConfig)==null?void 0:Re.abrEwmaDefaultEstimate)===void 0){const gr=Math.min(_t,this.hls.config.abrEwmaDefaultEstimateMax);gr>Ft&&Ft===pl.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=gr)}break}const Ye=s&&!i,Je={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,Je),(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"),Re=e<0;if(this.hls.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.LEVEL_SWITCH_ERROR,level:e,fatal:Re,error:Ae,reason:Ae.message}),Re)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===wn.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ht.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));ji(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},Re={onSuccess:(Ye,Je,lt,_t)=>{const{frag:Ft,keyInfo:gr,url:Nr}=lt;if(!Ft.decryptdata||gr!==this.keyUriToKeyInfo[Nr])return x(this.createKeyLoadError(Ft,m.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),_t));gr.decryptdata.key=Ft.decryptdata.key=new Uint8Array(Ye.data),Ft.keyLoader=null,gr.loader=null,l({frag:Ft,keyInfo:gr})},onError:(Ye,Je,lt,_t)=>{this.resetLoader(Je),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,Je,lt)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),lt))},onAbort:(Ye,Je,lt)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.INTERNAL_ABORTED,new Error("key loading aborted"),lt))}};s.load(j,Ae,Re)})}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(!Jn())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=Jn();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(Or(e,"video")))||["mp4a.40.2","fLaC"].some(e=>d.isTypeSupported(Or(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 Ft=self.performance.now()-s;B.warn(`playback not stuck anymore @${l}, after ${Math.round(Ft)}ms`),this.stallReported=!1}this.stalled=null}return}if(q||j){this.stalled=null;return}if(i.paused&&!x||i.ended||i.playbackRate===0||!qa.getBuffered(i).length){this.nudgeRetry=0;return}const Ae=qa.bufferInfo(i,l,0),Re=Ae.nextStart||0;if(x){const Ft=Ae.len>Qu,gr=!Re||t&&t.start<=l||Re-l>Qu&&!this.fragmentTracker.getPartialFragment(l);if(Ft||gr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Ye;if(!(Ae.len>0)&&!Re)return;const gr=Math.max(Re,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,un=this.fragmentTracker.getPartialFragment(l);if(gr>0&&(gr<=Un||un)){i.paused||this._trySkipBufferHole(un);return}}const Je=self.performance.now();if(s===null){this.stalled=Je;return}const lt=Je-s;if(!x&<>=Co&&(this._reportStall(Ae),!this.media))return;const _t=qa.bufferInfo(i,l,r.maxBufferHole);this._tryFixBufferStall(_t,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=qa.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 Je=!1;if(s===0){const lt=Ye.getAppendedFrag(0,Ht.MAIN);lt&&x<lt.end&&(Je=!0)}if(!Je){const lt=e||Ye.getAppendedFrag(s,Ht.MAIN);if(lt){let _t=!1,Ft=lt.end;for(;Ft<x;){const gr=Ye.getPartialFragment(Ft);if(gr)Ft+=gr.duration;else{_t=!0;break}}if(_t)return 0}}}const Re=Math.max(x+Hl,s+cl);if(B.warn(`skipping hole, adjusting currentTime from ${s} to ${Re}`),this.moved=!0,this.stalled=null,i.currentTime=Re,e&&!e.gap){const Ye=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${Re}`);r.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:Ye,reason:Ye.message,frag:e})}return Re}}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]",Ht.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=oi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=oi.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case oi.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=oi.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=oi.IDLE;break}break}case oi.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=oi.IDLE}}break}this.state===oi.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 _t={};this.altAudio&&(_t.type="video"),this.hls.trigger(a.BUFFER_EOS,_t),this.state=oi.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===oi.WAITING_LEVEL||q.live&&this.levelLastLoaded!==l){this.level=s,this.state=oi.WAITING_LEVEL;return}const Ae=x.len,Re=this.getMaxBufferLength(l.maxBitrate);if(Ae>=Re)return;this.backtrackFragment&&this.backtrackFragment.start>x.end&&(this.backtrackFragment=null);const Ye=this.backtrackFragment?this.backtrackFragment.start:x.end;let Je=this.getNextFragment(Ye,q);if(this.couldBacktrack&&!this.fragPrevious&&Je&&Je.sn!=="initSegment"&&this.fragmentTracker.getState(Je)!==Ea.OK){var lt;const Ft=((lt=this.backtrackFragment)!=null?lt:Je).sn-q.startSN,gr=q.fragments[Ft-1];gr&&Je.cc===gr.cc&&(Je=gr,this.fragmentTracker.removeFragment(gr))}else this.backtrackFragment&&x.len&&(this.backtrackFragment=null);if(Je&&this.isLoopLoading(Je,Ye)){if(!Je.gap){const Ft=this.audioOnly&&!this.altAudio?me.AUDIO:me.VIDEO,gr=(Ft===me.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;gr&&this.afterBufferFlushed(gr,Ft,Ht.MAIN)}Je=this.getNextFragmentLoopLoading(Je,q,x,Ht.MAIN,Re)}Je&&(Je.initSegment&&!Je.initSegment.data&&!this.bitrateTest&&(Je=Je.initSegment),this.loadFragment(Je,l,Ye))}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===Ea.NOT_LOADED||i===Ea.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,Ht.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 oi.KEY_LOADING:case oi.FRAG_LOADING:case oi.FRAG_LOADING_WAITING_RETRY:case oi.PARSING:case oi.PARSED:this.state=oi.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!==oi.IDLE)return;const i=r[t.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=oi.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===oi.FRAG_LOADING||this.state===oi.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 Re;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;Ae=this.alignPlaylists(l,j.details,(Re=this.levelLastLoaded)==null?void 0:Re.details)}if(j.details=l,this.levelLastLoaded=j,this.hls.trigger(a.LEVEL_UPDATED,{details:l,level:s}),this.state===oi.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=oi.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,Re=(t=r.initSegment)==null?void 0:t.data,Ye=this._getAudioCodec(x),Je=this.transmuxer=this.transmuxer||new dn(this.hls,Ht.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),lt=i?i.index:-1,_t=lt!==-1,Ft=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,lt,_t),gr=this.initPTS[r.cc];Je.push(s,Re,Ye,q,r,i,j.totalduration,Ae,Ft,gr)}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!==Ht.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===oi.PARSED&&(this.state=oi.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=oi.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(Ht.MAIN,t);break;case m.LEVEL_LOAD_ERROR:case m.LEVEL_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===oi.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===wn.LEVEL&&(this.state=oi.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||!qa.getBuffered(e).length){const r=this.state!==oi.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=oi.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,Ht.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=qa.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=oi.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:Re,text:Ye,id3:Je,initSegment:lt}=s,{details:_t}=Ae,Ft=this.altAudio?void 0:s.audio;if(this.fragContextChanged(j)){this.fragmentTracker.removeFragment(j);return}if(this.state=oi.PARSING,lt){if(lt!=null&<.tracks){const Rr=j.initSegment||j;this._bufferInitSegment(Ae,lt.tracks,Rr,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Rr,id:r,tracks:lt.tracks})}const gr=lt.initPTS,Nr=lt.timescale;o(gr)&&(this.initPTS[j.cc]={baseTime:gr,timescale:Nr},i.trigger(a.INIT_PTS_FOUND,{frag:j,id:r,initPTS:gr,timescale:Nr}))}if(Re&&_t&&j.sn!=="initSegment"){const gr=_t.fragments[j.sn-1-_t.startSN],Nr=j.sn===_t.startSN,Rr=!gr||j.cc>gr.cc;if(s.independent!==!1){const{startPTS:Un,endPTS:un,startDTS:gi,endDTS:Kn}=Re;if(q)q.elementaryStreams[Re.type]={startPTS:Un,endPTS:un,startDTS:gi,endDTS:Kn};else if(Re.firstKeyFrame&&Re.independent&&l.id===1&&!Rr&&(this.couldBacktrack=!0),Re.dropped&&Re.independent){const Ii=this.getMainFwdBufferInfo(),qi=(Ii?Ii.end:this.getLoadPosition())+this.config.maxBufferHole,mi=Re.firstKeyFramePTS?Re.firstKeyFramePTS:Un;if(!Nr&&qi<mi-this.config.maxBufferHole&&!Rr){this.backtrack(j);return}else Rr&&(j.gap=!0);j.setElementaryStreamInfo(Re.type,j.start,un,j.start,Kn,!0)}else Nr&&Un>Qu&&(j.gap=!0);j.setElementaryStreamInfo(Re.type,Un,un,gi,Kn),this.backtrackFragment&&(this.backtrackFragment=j),this.bufferFragmentData(Re,j,q,l,Nr||Rr)}else if(Nr||Rr)j.gap=!0;else{this.backtrack(j);return}}if(Ft){const{startPTS:gr,endPTS:Nr,startDTS:Rr,endDTS:Un}=Ft;q&&(q.elementaryStreams[me.AUDIO]={startPTS:gr,endPTS:Nr,startDTS:Rr,endDTS:Un}),j.setElementaryStreamInfo(me.AUDIO,gr,Nr,Rr,Un),this.bufferFragmentData(Ft,j,q,l)}if(_t&&Je!=null&&(t=Je.samples)!=null&&t.length){const gr={id:r,frag:j,details:_t,samples:Je.samples};i.trigger(a.FRAG_PARSING_METADATA,gr)}if(_t&&Ye){const gr={id:r,frag:j,details:_t,samples:Ye.samples};i.trigger(a.FRAG_PARSING_USERDATA,gr)}}_bufferInitSegment(e,t,r,i){if(this.state!==oi.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,Ht.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=oi.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(qa.isBuffered(e,r)?t=this.getAppendedFrag(r):qa.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 Jn()}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),Re=this.capLevelController=new s(this),Ye=new x(this),Je=new Ci(this),lt=new Ha(this),_t=t.contentSteeringController,Ft=_t?new _t(this):null,gr=this.levelController=new ul(this,Ft),Nr=new Ys(this),Rr=new Uu(this.config),Un=this.streamController=new ec(this,Nr,Rr);Re.setStreamController(Un),Ye.setStreamController(Un);const un=[Je,gr,Un];Ft&&un.splice(1,0,Ft),this.networkControllers=un;const gi=[q,Ae,Re,Ye,lt,Nr];this.audioTrackController=this.createController(t.audioTrackController,un);const Kn=t.audioStreamController;Kn&&un.push(new Kn(this,Nr,Rr)),this.subtitleTrackController=this.createController(t.subtitleTrackController,un);const Ii=t.subtitleStreamController;Ii&&un.push(new Ii(this,Nr,Rr)),this.createController(t.timelineController,gi),Rr.emeController=this.emeController=this.createController(t.emeController,gi),this.cmcdController=this.createController(t.cmcdController,gi),this.latencyController=this.createController(Is,gi),this.coreComponents=gi,un.push(j);const qi=j.onErrorOut;typeof qi=="function"&&this.on(a.ERROR,qi,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){Fa(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,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});const we=n=>typeof n=="object"&&n!=null&&n.nodeType===1,Fe=(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 Fe(L.overflowY,o)||Fe(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},ke=(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 z=n;for(;we(z)&&V(z);){if(z=ie(z),z===ee){B.push(z);break}z!=null&&z===document.body&&se(z)&&!se(document.documentElement)||z!=null&&se(z,H)&&B.push(z)}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:Le,width:ae,top:me,right:T,bottom:Ee,left:oe}=n.getBoundingClientRect(),{top:he,right:ve,bottom:_,left:N}=(at=>{const rt=window.getComputedStyle(at);return{top:parseFloat(rt.scrollMarginTop)||0,right:parseFloat(rt.scrollMarginRight)||0,bottom:parseFloat(rt.scrollMarginBottom)||0,left:parseFloat(rt.scrollMarginLeft)||0}})(n);let X=S==="start"||S==="nearest"?me-he:S==="end"?Ee+_:me+Le/2-he+_,pe=$==="center"?oe+ae/2-N+ve:$==="end"?T+ve:oe-N;const qe=[];for(let at=0;at<B.length;at++){const rt=B[at],{height:Rt,width:lr,top:Jt,right:Ze,bottom:Er,left:Cr}=rt.getBoundingClientRect();if(m==="if-needed"&&me>=0&&oe>=0&&Ee<=J&&T<=le&&(rt===ee&&!se(rt)||me>=Jt&&Ee<=Er&&oe>=Cr&&T<=Ze))return qe;const Kr=getComputedStyle(rt),_r=parseInt(Kr.borderLeftWidth,10),Ue=parseInt(Kr.borderTopWidth,10),St=parseInt(Kr.borderRightWidth,10),G=parseInt(Kr.borderBottomWidth,10);let v=0,f=0;const D="offsetWidth"in rt?rt.offsetWidth-rt.clientWidth-_r-St:0,fe="offsetHeight"in rt?rt.offsetHeight-rt.clientHeight-Ue-G:0,W="offsetWidth"in rt?rt.offsetWidth===0?0:lr/rt.offsetWidth:0,P="offsetHeight"in rt?rt.offsetHeight===0?0:Rt/rt.offsetHeight:0;if(ee===rt)v=S==="start"?X:S==="end"?X-J:S==="nearest"?ke(Ce,Ce+J,J,Ue,G,Ce+X,Ce+X+Le,Le):X-J/2,f=$==="start"?pe:$==="center"?pe-le/2:$==="end"?pe-le:ke(be,be+le,le,_r,St,be+pe,be+pe+ae,ae),v=Math.max(0,v+Ce),f=Math.max(0,f+be);else{v=S==="start"?X-Jt-Ue:S==="end"?X-Er+G+fe:S==="nearest"?ke(Jt,Er,Rt,Ue,G+fe,X,X+Le,Le):X-(Jt+Rt/2)+fe/2,f=$==="start"?pe-Cr-_r:$==="center"?pe-(Cr+lr/2)+D/2:$==="end"?pe-Ze+St+D:ke(Cr,Ze,lr,_r,St+D,pe,pe+ae,ae);const{scrollLeft:te,scrollTop:Ie}=rt;v=P===0?0:Math.max(0,Math.min(Ie+v/P,rt.scrollHeight-Rt/P+fe)),f=W===0?0:Math.max(0,Math.min(te+f/W,rt.scrollWidth-lr/W+D)),X+=Ie-v,pe+=te-f}qe.push({el:rt,top:v,left:f})}return qe},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})}}}}]);
|
|
|
}()); |