|
|
!(function(){var Ru=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[6309],{70557:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},27812:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},89489:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},59477:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},40001:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},49198:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},84105:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},18785:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},73331:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},15277:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},52671:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},8657:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},56082:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},33853:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},15075:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},43531:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},61485:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},38819:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},47472:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(I,k){return U.createElement(A.Z,(0,O.Z)({},I,{ref:k,icon:ue}))},w=U.forwardRef(m),ne=w},35593:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return Ct}});var O=p(77321),U=p(52487),ee=p(74416),ue=p(43403),A=p(92310),m=p.n(A),w=p(29301),ne=p(76846),o=p(96452),I=p(6089),k=p(80402),g=p(34280),_=p(49658),S=p(59301),T=p(72308),N=p(77900),ie=p(8654);function z(he){var pe=he.prefixCls,le=he.align,J=he.arrow,Ie=he.arrowPos,H=J||{},R=H.className,P=H.content,fe=Ie.x,oe=fe===void 0?0:fe,te=Ie.y,Ae=te===void 0?0:te,je=S.useRef();if(!le||!le.points)return null;var ke={position:"absolute"};if(le.autoArrow!==!1){var Be=le.points[0],qe=le.points[1],Qe=Be[0],Ve=Be[1],xt=qe[0],Dt=qe[1];Qe===xt||!["t","b"].includes(Qe)?ke.top=Ae:Qe==="t"?ke.top=0:ke.bottom=0,Ve===Dt||!["l","r"].includes(Ve)?ke.left=oe:Ve==="l"?ke.left=0:ke.right=0}return S.createElement("div",{ref:je,className:m()("".concat(pe,"-arrow"),R),style:ke},P)}function $(he){var pe=he.prefixCls,le=he.open,J=he.zIndex,Ie=he.mask,H=he.motion;return Ie?S.createElement(N.default,(0,T.Z)({},H,{motionAppear:!0,visible:le,removeOnLeave:!0}),function(R){var P=R.className;return S.createElement("div",{style:{zIndex:J},className:m()("".concat(pe,"-mask"),P)})}):null}var G=S.memo(function(he){var pe=he.children;return pe},function(he,pe){return pe.cache}),Q=G,L=S.forwardRef(function(he,pe){var le=he.popup,J=he.className,Ie=he.prefixCls,H=he.style,R=he.target,P=he.onVisibleChanged,fe=he.open,oe=he.keepDom,te=he.fresh,Ae=he.onClick,je=he.mask,ke=he.arrow,Be=he.arrowPos,qe=he.align,Qe=he.motion,Ve=he.maskMotion,xt=he.forceRender,Dt=he.getPopupContainer,vt=he.autoDestroy,Bt=he.portal,jt=he.zIndex,C=he.onMouseEnter,B=he.onMouseLeave,yt=he.onPointerEnter,ye=he.ready,Me=he.offsetX,Sn=he.offsetY,it=he.offsetR,nt=he.offsetB,rt=he.onAlign,Ee=he.onPrepare,De=he.stretch,Fe=he.targetWidth,tt=he.targetHeight,_e=typeof le=="function"?le():le,Jt=fe||oe,Ze=(Dt==null?void 0:Dt.length)>0,xn=S.useState(!Dt||!Ze),Rn=(0,U.Z)(xn,2),Wn=Rn[0],yr=Rn[1];if((0,g.Z)(function(){!Wn&&Ze&&R&&yr(!0)},[Wn,Ze,R]),!Wn)return null;var vn="auto",wn={left:"-1000vw",top:"-1000vh",right:vn,bottom:vn};if(ye||!fe){var Xe,Lt=qe.points,Wt=qe.dynamicInset||((Xe=qe._experimental)===null||Xe===void 0?void 0:Xe.dynamicInset),Ke=Wt&&Lt[0][1]==="r",Oe=Wt&&Lt[0][0]==="b";Ke?(wn.right=it,wn.left=vn):(wn.left=Me,wn.right=vn),Oe?(wn.bottom=nt,wn.top=vn):(wn.top=Sn,wn.bottom=vn)}var _t={};return De&&(De.includes("height")&&tt?_t.height=tt:De.includes("minHeight")&&tt&&(_t.minHeight=tt),De.includes("width")&&Fe?_t.width=Fe:De.includes("minWidth")&&Fe&&(_t.minWidth=Fe)),fe||(_t.pointerEvents="none"),S.createElement(Bt,{open:xt||Jt,getContainer:Dt&&function(){return Dt(R)},autoDestroy:vt},S.createElement($,{prefixCls:Ie,open:fe,zIndex:jt,mask:je,motion:Ve}),S.createElement(w.Z,{onResize:rt,disabled:!fe},function(wt){return S.createElement(N.default,(0,T.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:xt,leavedClassName:"".concat(Ie,"-hidden")},Qe,{onAppearPrepare:Ee,onEnterPrepare:Ee,visible:fe,onVisibleChanged:function(Xt){var cn;Qe==null||(cn=Qe.onVisibleChanged)===null||cn===void 0||cn.call(Qe,Xt),P(Xt)}}),function(rn,Xt){var cn=rn.className,nn=rn.style,pn=m()(Ie,cn,J);return S.createElement("div",{ref:(0,ie.sQ)(wt,pe,Xt),className:pn,style:(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({"--arrow-x":"".concat(Be.x||0,"px"),"--arrow-y":"".concat(Be.y||0,"px")},wn),_t),nn),{},{boxSizing:"border-box",zIndex:jt},H),onMouseEnter:C,onMouseLeave:B,onPointerEnter:yt,onClick:Ae},ke&&S.createElement(z,{prefixCls:Ie,arrow:ke,arrowPos:Be,align:qe}),S.createElement(Q,{cache:!fe&&!te},_e))})}))}),D=L,Y=S.forwardRef(function(he,pe){var le=he.children,J=he.getTriggerDOMNode,Ie=(0,ie.Yr)(le),H=S.useCallback(function(P){(0,ie.mH)(pe,J?J(P):P)},[J]),R=(0,ie.x1)(H,le.ref);return Ie?S.cloneElement(le,{ref:R}):le}),j=Y,xe=S.createContext(null),Ce=xe;function Se(he){return he?Array.isArray(he)?he:[he]:[]}function ge(he,pe,le,J){return S.useMemo(function(){var Ie=Se(le!=null?le:pe),H=Se(J!=null?J:pe),R=new Set(Ie),P=new Set(H);return he&&(R.has("hover")&&(R.delete("hover"),R.add("click")),P.has("hover")&&(P.delete("hover"),P.add("click"))),[R,P]},[he,pe,le,J])}var de=p(29194);function W(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=arguments.length>2?arguments[2]:void 0;return le?he[0]===pe[0]:he[0]===pe[0]&&he[1]===pe[1]}function be(he,pe,le,J){for(var Ie=le.points,H=Object.keys(he),R=0;R<H.length;R+=1){var P,fe=H[R];if(W((P=he[fe])===null||P===void 0?void 0:P.points,Ie,J))return"".concat(pe,"-placement-").concat(fe)}return""}function F(he,pe,le,J){return pe||(le?{motionName:"".concat(he,"-").concat(le)}:J?{motionName:J}:null)}function ce(he){return he.ownerDocument.defaultView}function q(he){for(var pe=[],le=he==null?void 0:he.parentElement,J=["hidden","scroll","clip","auto"];le;){var Ie=ce(le).getComputedStyle(le),H=Ie.overflowX,R=Ie.overflowY,P=Ie.overflow;[H,R,P].some(function(fe){return J.includes(fe)})&&pe.push(le),le=le.parentElement}return pe}function y(he){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(he)?pe:he}function x(he){return y(parseFloat(he),0)}function Z(he,pe){var le=(0,O.Z)({},he);return(pe||[]).forEach(function(J){if(!(J instanceof HTMLBodyElement||J instanceof HTMLHtmlElement)){var Ie=ce(J).getComputedStyle(J),H=Ie.overflow,R=Ie.overflowClipMargin,P=Ie.borderTopWidth,fe=Ie.borderBottomWidth,oe=Ie.borderLeftWidth,te=Ie.borderRightWidth,Ae=J.getBoundingClientRect(),je=J.offsetHeight,ke=J.clientHeight,Be=J.offsetWidth,qe=J.clientWidth,Qe=x(P),Ve=x(fe),xt=x(oe),Dt=x(te),vt=y(Math.round(Ae.width/Be*1e3)/1e3),Bt=y(Math.round(Ae.height/je*1e3)/1e3),jt=(Be-qe-xt-Dt)*vt,C=(je-ke-Qe-Ve)*Bt,B=Qe*Bt,yt=Ve*Bt,ye=xt*vt,Me=Dt*vt,Sn=0,it=0;if(H==="clip"){var nt=x(R);Sn=nt*vt,it=nt*Bt}var rt=Ae.x+ye-Sn,Ee=Ae.y+B-it,De=rt+Ae.width+2*Sn-ye-Me-jt,Fe=Ee+Ae.height+2*it-B-yt-C;le.left=Math.max(le.left,rt),le.top=Math.max(le.top,Ee),le.right=Math.min(le.right,De),le.bottom=Math.min(le.bottom,Fe)}}),le}function me(he){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le="".concat(pe),J=le.match(/^(.*)\%$/);return J?he*(parseFloat(J[1])/100):parseFloat(le)}function Ne(he,pe){var le=pe||[],J=(0,U.Z)(le,2),Ie=J[0],H=J[1];return[me(he.width,Ie),me(he.height,H)]}function Ue(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[he[0],he[1]]}function ze(he,pe){var le=pe[0],J=pe[1],Ie,H;return le==="t"?H=he.y:le==="b"?H=he.y+he.height:H=he.y+he.height/2,J==="l"?Ie=he.x:J==="r"?Ie=he.x+he.width:Ie=he.x+he.width/2,{x:Ie,y:H}}function et(he,pe){var le={t:"b",b:"t",l:"r",r:"l"};return he.map(function(J,Ie){return Ie===pe?le[J]||"c":J}).join("")}function pt(he,pe,le,J,Ie,H,R){var P=S.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ie[J]||{}}),fe=(0,U.Z)(P,2),oe=fe[0],te=fe[1],Ae=S.useRef(0),je=S.useMemo(function(){return pe?q(pe):[]},[pe]),ke=S.useRef({}),Be=function(){ke.current={}};he||Be();var qe=(0,I.Z)(function(){if(pe&&le&&he){let lr=function(Kr,si){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pn,Pi=_e.x+Kr,Ai=_e.y+si,$r=Pi+Xe,Ni=Ai+wn,Ts=Math.max(Pi,Hi.left),Ns=Math.max(Ai,Hi.top),fs=Math.min($r,Hi.right),as=Math.min(Ni,Hi.bottom);return Math.max(0,(fs-Ts)*(as-Ns))},Vn=function(){Bn=_e.y+Cn,or=Bn+wn,qn=_e.x+En,Lr=qn+Xe};var xt,Dt,vt=pe,Bt=vt.ownerDocument,jt=ce(vt),C=jt.getComputedStyle(vt),B=C.width,yt=C.height,ye=C.position,Me=vt.style.left,Sn=vt.style.top,it=vt.style.right,nt=vt.style.bottom,rt=vt.style.overflow,Ee=(0,O.Z)((0,O.Z)({},Ie[J]),H),De=Bt.createElement("div");(xt=vt.parentElement)===null||xt===void 0||xt.appendChild(De),De.style.left="".concat(vt.offsetLeft,"px"),De.style.top="".concat(vt.offsetTop,"px"),De.style.position=ye,De.style.height="".concat(vt.offsetHeight,"px"),De.style.width="".concat(vt.offsetWidth,"px"),vt.style.left="0",vt.style.top="0",vt.style.right="auto",vt.style.bottom="auto",vt.style.overflow="hidden";var Fe;if(Array.isArray(le))Fe={x:le[0],y:le[1],width:0,height:0};else{var tt=le.getBoundingClientRect();Fe={x:tt.x,y:tt.y,width:tt.width,height:tt.height}}var _e=vt.getBoundingClientRect(),Jt=Bt.documentElement,Ze=Jt.clientWidth,xn=Jt.clientHeight,Rn=Jt.scrollWidth,Wn=Jt.scrollHeight,yr=Jt.scrollTop,vn=Jt.scrollLeft,wn=_e.height,Xe=_e.width,Lt=Fe.height,Wt=Fe.width,Ke={left:0,top:0,right:Ze,bottom:xn},Oe={left:-vn,top:-yr,right:Rn-vn,bottom:Wn-yr},_t=Ee.htmlRegion,wt="visible",rn="visibleFirst";_t!=="scroll"&&_t!==rn&&(_t=wt);var Xt=_t===rn,cn=Z(Oe,je),nn=Z(Ke,je),pn=_t===wt?nn:cn,Ln=Xt?nn:pn;vt.style.left="auto",vt.style.top="auto",vt.style.right="0",vt.style.bottom="0";var Kt=vt.getBoundingClientRect();vt.style.left=Me,vt.style.top=Sn,vt.style.right=it,vt.style.bottom=nt,vt.style.overflow=rt,(Dt=vt.parentElement)===null||Dt===void 0||Dt.removeChild(De);var zt=y(Math.round(Xe/parseFloat(B)*1e3)/1e3),ln=y(Math.round(wn/parseFloat(yt)*1e3)/1e3);if(zt===0||ln===0||(0,ne.Sh)(le)&&!(0,de.Z)(le))return;var sn=Ee.offset,mn=Ee.targetOffset,un=Ne(_e,sn),ar=(0,U.Z)(un,2),On=ar[0],tn=ar[1],ct=Ne(Fe,mn),ht=(0,U.Z)(ct,2),At=ht[0],Ft=ht[1];Fe.x-=At,Fe.y-=Ft;var Pt=Ee.points||[],Yt=(0,U.Z)(Pt,2),Mt=Yt[0],gn=Yt[1],An=Ue(gn),Dn=Ue(Mt),Xn=ze(Fe,An),nr=ze(_e,Dn),dr=(0,O.Z)({},Ee),En=Xn.x-nr.x+On,Cn=Xn.y-nr.y+tn,pr=lr(En,Cn),mr=lr(En,Cn,nn),Ir=ze(Fe,["t","l"]),rr=ze(_e,["t","l"]),ir=ze(Fe,["b","r"]),Cr=ze(_e,["b","r"]),tr=Ee.overflow||{},Pr=tr.adjustX,ei=tr.adjustY,Qn=tr.shiftX,zn=tr.shiftY,dt=function(si){return typeof si=="boolean"?si:si>=0},Bn,or,qn,Lr;Vn();var Ur=dt(ei),Vr=Dn[0]===An[0];if(Ur&&Dn[0]==="t"&&(or>Ln.bottom||ke.current.bt)){var fr=Cn;Vr?fr-=wn-Lt:fr=Ir.y-Cr.y-tn;var Yr=lr(En,fr),Un=lr(En,fr,nn);Yr>pr||Yr===pr&&(!Xt||Un>=mr)?(ke.current.bt=!0,Cn=fr,tn=-tn,dr.points=[et(Dn,0),et(An,0)]):ke.current.bt=!1}if(Ur&&Dn[0]==="b"&&(Bn<Ln.top||ke.current.tb)){var Pn=Cn;Vr?Pn+=wn-Lt:Pn=ir.y-rr.y-tn;var Er=lr(En,Pn),Mr=lr(En,Pn,nn);Er>pr||Er===pr&&(!Xt||Mr>=mr)?(ke.current.tb=!0,Cn=Pn,tn=-tn,dr.points=[et(Dn,0),et(An,0)]):ke.current.tb=!1}var ti=dt(Pr),Ri=Dn[1]===An[1];if(ti&&Dn[1]==="l"&&(Lr>Ln.right||ke.current.rl)){var Hn=En;Ri?Hn-=Xe-Wt:Hn=Ir.x-Cr.x-On;var ri=lr(Hn,Cn),Xr=lr(Hn,Cn,nn);ri>pr||ri===pr&&(!Xt||Xr>=mr)?(ke.current.rl=!0,En=Hn,On=-On,dr.points=[et(Dn,1),et(An,1)]):ke.current.rl=!1}if(ti&&Dn[1]==="r"&&(qn<Ln.left||ke.current.lr)){var di=En;Ri?di+=Xe-Wt:di=ir.x-rr.x-On;var Mi=lr(di,Cn),bi=lr(di,Cn,nn);Mi>pr||Mi===pr&&(!Xt||bi>=mr)?(ke.current.lr=!0,En=di,On=-On,dr.points=[et(Dn,1),et(An,1)]):ke.current.lr=!1}Vn();var ii=Qn===!0?0:Qn;typeof ii=="number"&&(qn<nn.left&&(En-=qn-nn.left-On,Fe.x+Wt<nn.left+ii&&(En+=Fe.x-nn.left+Wt-ii)),Lr>nn.right&&(En-=Lr-nn.right-On,Fe.x>nn.right-ii&&(En+=Fe.x-nn.right+ii)));var Ti=zn===!0?0:zn;typeof Ti=="number"&&(Bn<nn.top&&(Cn-=Bn-nn.top-tn,Fe.y+Lt<nn.top+Ti&&(Cn+=Fe.y-nn.top+Lt-Ti)),or>nn.bottom&&(Cn-=or-nn.bottom-tn,Fe.y>nn.bottom-Ti&&(Cn+=Fe.y-nn.bottom+Ti)));var oi=_e.x+En,$i=oi+Xe,Tr=_e.y+Cn,Yi=Tr+wn,Ki=Fe.x,Xi=Ki+Wt,Gr=Fe.y,cs=Gr+Lt,ms=Math.max(oi,Ki),us=Math.min($i,Xi),Fr=(ms+us)/2,ds=Fr-oi,Cs=Math.max(Tr,Gr),Nn=Math.min(Yi,cs),Bi=(Cs+Nn)/2,is=Bi-Tr;R==null||R(pe,dr);var gr=Kt.right-_e.x-(En+_e.width),xr=Kt.bottom-_e.y-(Cn+_e.height);te({ready:!0,offsetX:En/zt,offsetY:Cn/ln,offsetR:gr/zt,offsetB:xr/ln,arrowX:ds/zt,arrowY:is/ln,scaleX:zt,scaleY:ln,align:dr})}}),Qe=function(){Ae.current+=1;var Dt=Ae.current;Promise.resolve().then(function(){Ae.current===Dt&&qe()})},Ve=function(){te(function(Dt){return(0,O.Z)((0,O.Z)({},Dt),{},{ready:!1})})};return(0,g.Z)(Ve,[J]),(0,g.Z)(function(){he||Ve()},[he]),[oe.ready,oe.offsetX,oe.offsetY,oe.offsetR,oe.offsetB,oe.arrowX,oe.arrowY,oe.scaleX,oe.scaleY,oe.align,Qe]}var gt=p(80702);function at(he,pe,le,J,Ie){(0,g.Z)(function(){if(he&&pe&&le){let Ae=function(){J(),Ie()};var H=pe,R=le,P=q(H),fe=q(R),oe=ce(R),te=new Set([oe].concat((0,gt.Z)(P),(0,gt.Z)(fe)));return te.forEach(function(je){je.addEventListener("scroll",Ae,{passive:!0})}),oe.addEventListener("resize",Ae,{passive:!0}),J(),function(){te.forEach(function(je){je.removeEventListener("scroll",Ae),oe.removeEventListener("resize",Ae)})}}},[he,pe,le])}var Ot=p(48736),en=p(16089);function Rt(he,pe,le,J,Ie,H,R,P){var fe=S.useRef(he),oe=S.useRef(!1);fe.current!==he&&(oe.current=!0,fe.current=he),S.useEffect(function(){var te=(0,en.Z)(function(){oe.current=!1});return function(){en.Z.cancel(te)}},[he]),S.useEffect(function(){if(pe&&J&&(!Ie||H)){var te=function(){var ye=!1,Me=function(nt){var rt=nt.target;ye=R(rt)},Sn=function(nt){var rt=nt.target;!oe.current&&fe.current&&!ye&&!R(rt)&&P(!1)};return[Me,Sn]},Ae=te(),je=(0,U.Z)(Ae,2),ke=je[0],Be=je[1],qe=te(),Qe=(0,U.Z)(qe,2),Ve=Qe[0],xt=Qe[1],Dt=ce(J);Dt.addEventListener("mousedown",ke,!0),Dt.addEventListener("click",Be,!0),Dt.addEventListener("contextmenu",Be,!0);var vt=(0,o.A)(le);if(vt&&(vt.addEventListener("mousedown",Ve,!0),vt.addEventListener("click",xt,!0),vt.addEventListener("contextmenu",xt,!0)),0)var Bt,jt,C,B;return function(){Dt.removeEventListener("mousedown",ke,!0),Dt.removeEventListener("click",Be,!0),Dt.removeEventListener("contextmenu",Be,!0),vt&&(vt.removeEventListener("mousedown",Ve,!0),vt.removeEventListener("click",xt,!0),vt.removeEventListener("contextmenu",xt,!0))}}},[pe,le,J,Ie,H])}var Zt=["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 ut(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ue.Z,pe=S.forwardRef(function(le,J){var Ie=le.prefixCls,H=Ie===void 0?"rc-trigger-popup":Ie,R=le.children,P=le.action,fe=P===void 0?"hover":P,oe=le.showAction,te=le.hideAction,Ae=le.popupVisible,je=le.defaultPopupVisible,ke=le.onPopupVisibleChange,Be=le.afterPopupVisibleChange,qe=le.mouseEnterDelay,Qe=le.mouseLeaveDelay,Ve=Qe===void 0?.1:Qe,xt=le.focusDelay,Dt=le.blurDelay,vt=le.mask,Bt=le.maskClosable,jt=Bt===void 0?!0:Bt,C=le.getPopupContainer,B=le.forceRender,yt=le.autoDestroy,ye=le.destroyPopupOnHide,Me=le.popup,Sn=le.popupClassName,it=le.popupStyle,nt=le.popupPlacement,rt=le.builtinPlacements,Ee=rt===void 0?{}:rt,De=le.popupAlign,Fe=le.zIndex,tt=le.stretch,_e=le.getPopupClassNameFromAlign,Jt=le.fresh,Ze=le.alignPoint,xn=le.onPopupClick,Rn=le.onPopupAlign,Wn=le.arrow,yr=le.popupMotion,vn=le.maskMotion,wn=le.popupTransitionName,Xe=le.popupAnimation,Lt=le.maskTransitionName,Wt=le.maskAnimation,Ke=le.className,Oe=le.getTriggerDOMNode,_t=(0,ee.Z)(le,Zt),wt=yt||ye||!1,rn=S.useState(!1),Xt=(0,U.Z)(rn,2),cn=Xt[0],nn=Xt[1];(0,g.Z)(function(){nn((0,_.Z)())},[]);var pn=S.useRef({}),Ln=S.useContext(Ce),Kt=S.useMemo(function(){return{registerSubPopup:function(Or,_i){pn.current[Or]=_i,Ln==null||Ln.registerSubPopup(Or,_i)}}},[Ln]),zt=(0,k.Z)(),ln=S.useState(null),sn=(0,U.Z)(ln,2),mn=sn[0],un=sn[1],ar=(0,I.Z)(function(sr){(0,ne.Sh)(sr)&&mn!==sr&&un(sr),Ln==null||Ln.registerSubPopup(zt,sr)}),On=S.useState(null),tn=(0,U.Z)(On,2),ct=tn[0],ht=tn[1],At=S.useRef(null),Ft=(0,I.Z)(function(sr){(0,ne.Sh)(sr)&&ct!==sr&&(ht(sr),At.current=sr)}),Pt=S.Children.only(R),Yt=(Pt==null?void 0:Pt.props)||{},Mt={},gn=(0,I.Z)(function(sr){var Or,_i,Zi=ct;return(Zi==null?void 0:Zi.contains(sr))||((Or=(0,o.A)(Zi))===null||Or===void 0?void 0:Or.host)===sr||sr===Zi||(mn==null?void 0:mn.contains(sr))||((_i=(0,o.A)(mn))===null||_i===void 0?void 0:_i.host)===sr||sr===mn||Object.values(pn.current).some(function(gi){return(gi==null?void 0:gi.contains(sr))||sr===gi})}),An=F(H,yr,Xe,wn),Dn=F(H,vn,Wt,Lt),Xn=S.useState(je||!1),nr=(0,U.Z)(Xn,2),dr=nr[0],En=nr[1],Cn=Ae!=null?Ae:dr,pr=(0,I.Z)(function(sr){Ae===void 0&&En(sr)});(0,g.Z)(function(){En(Ae||!1)},[Ae]);var mr=S.useRef(Cn);mr.current=Cn;var Ir=S.useRef([]);Ir.current=[];var rr=(0,I.Z)(function(sr){var Or;pr(sr),((Or=Ir.current[Ir.current.length-1])!==null&&Or!==void 0?Or:Cn)!==sr&&(Ir.current.push(sr),ke==null||ke(sr))}),ir=S.useRef(),Cr=function(){clearTimeout(ir.current)},tr=function(Or){var _i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Cr(),_i===0?rr(Or):ir.current=setTimeout(function(){rr(Or)},_i*1e3)};S.useEffect(function(){return Cr},[]);var Pr=S.useState(!1),ei=(0,U.Z)(Pr,2),Qn=ei[0],zn=ei[1];(0,g.Z)(function(sr){(!sr||Cn)&&zn(!0)},[Cn]);var dt=S.useState(null),Bn=(0,U.Z)(dt,2),or=Bn[0],qn=Bn[1],Lr=S.useState([0,0]),Ur=(0,U.Z)(Lr,2),Vr=Ur[0],fr=Ur[1],Yr=function(Or){fr([Or.clientX,Or.clientY])},Un=pt(Cn,mn,Ze?Vr:ct,nt,Ee,De,Rn),Pn=(0,U.Z)(Un,11),Er=Pn[0],Mr=Pn[1],ti=Pn[2],Ri=Pn[3],Hn=Pn[4],ri=Pn[5],Xr=Pn[6],di=Pn[7],Mi=Pn[8],bi=Pn[9],ii=Pn[10],Ti=ge(cn,fe,oe,te),oi=(0,U.Z)(Ti,2),$i=oi[0],Tr=oi[1],Yi=$i.has("click"),Ki=Tr.has("click")||Tr.has("contextMenu"),Xi=(0,I.Z)(function(){Qn||ii()}),Gr=function(){mr.current&&Ze&&Ki&&tr(!1)};at(Cn,ct,mn,Xi,Gr),(0,g.Z)(function(){Xi()},[Vr,nt]),(0,g.Z)(function(){Cn&&!(Ee!=null&&Ee[nt])&&Xi()},[JSON.stringify(De)]);var cs=S.useMemo(function(){var sr=be(Ee,H,bi,Ze);return m()(sr,_e==null?void 0:_e(bi))},[bi,_e,Ee,H,Ze]);S.useImperativeHandle(J,function(){return{nativeElement:At.current,forceAlign:Xi}});var ms=S.useState(0),us=(0,U.Z)(ms,2),Fr=us[0],ds=us[1],Cs=S.useState(0),Nn=(0,U.Z)(Cs,2),Bi=Nn[0],is=Nn[1],gr=function(){if(tt&&ct){var Or=ct.getBoundingClientRect();ds(Or.width),is(Or.height)}},xr=function(){gr(),Xi()},lr=function(Or){zn(!1),ii(),Be==null||Be(Or)},Vn=function(){return new Promise(function(Or){gr(),qn(function(){return Or})})};(0,g.Z)(function(){or&&(ii(),or(),qn(null))},[or]);function Kr(sr,Or,_i,Zi){Mt[sr]=function(gi){var gs;Zi==null||Zi(gi),tr(Or,_i);for(var As=arguments.length,Hs=new Array(As>1?As-1:0),vs=1;vs<As;vs++)Hs[vs-1]=arguments[vs];(gs=Yt[sr])===null||gs===void 0||gs.call.apply(gs,[Yt,gi].concat(Hs))}}(Yi||Ki)&&(Mt.onClick=function(sr){var Or;mr.current&&Ki?tr(!1):!mr.current&&Yi&&(Yr(sr),tr(!0));for(var _i=arguments.length,Zi=new Array(_i>1?_i-1:0),gi=1;gi<_i;gi++)Zi[gi-1]=arguments[gi];(Or=Yt.onClick)===null||Or===void 0||Or.call.apply(Or,[Yt,sr].concat(Zi))}),Rt(Cn,Ki,ct,mn,vt,jt,gn,tr);var si=$i.has("hover"),Hi=Tr.has("hover"),Pi,Ai;si&&(Kr("onMouseEnter",!0,qe,function(sr){Yr(sr)}),Kr("onPointerEnter",!0,qe,function(sr){Yr(sr)}),Pi=function(Or){(Cn||Qn)&&mn!==null&&mn!==void 0&&mn.contains(Or.target)&&tr(!0,qe)},Ze&&(Mt.onMouseMove=function(sr){var Or;(Or=Yt.onMouseMove)===null||Or===void 0||Or.call(Yt,sr)})),Hi&&(Kr("onMouseLeave",!1,Ve),Kr("onPointerLeave",!1,Ve),Ai=function(){tr(!1,Ve)}),$i.has("focus")&&Kr("onFocus",!0,xt),Tr.has("focus")&&Kr("onBlur",!1,Dt),$i.has("contextMenu")&&(Mt.onContextMenu=function(sr){var Or;mr.current&&Tr.has("contextMenu")?tr(!1):(Yr(sr),tr(!0)),sr.preventDefault();for(var _i=arguments.length,Zi=new Array(_i>1?_i-1:0),gi=1;gi<_i;gi++)Zi[gi-1]=arguments[gi];(Or=Yt.onContextMenu)===null||Or===void 0||Or.call.apply(Or,[Yt,sr].concat(Zi))}),Ke&&(Mt.className=m()(Yt.className,Ke));var $r=(0,O.Z)((0,O.Z)({},Yt),Mt),Ni={},Ts=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ts.forEach(function(sr){_t[sr]&&(Ni[sr]=function(){for(var Or,_i=arguments.length,Zi=new Array(_i),gi=0;gi<_i;gi++)Zi[gi]=arguments[gi];(Or=$r[sr])===null||Or===void 0||Or.call.apply(Or,[$r].concat(Zi)),_t[sr].apply(_t,Zi)})});var Ns=S.cloneElement(Pt,(0,O.Z)((0,O.Z)({},$r),Ni)),fs={x:ri,y:Xr},as=Wn?(0,O.Z)({},Wn!==!0?Wn:{}):null;return S.createElement(S.Fragment,null,S.createElement(w.Z,{disabled:!Cn,ref:Ft,onResize:xr},S.createElement(j,{getTriggerDOMNode:Oe},Ns)),S.createElement(Ce.Provider,{value:Kt},S.createElement(D,{portal:he,ref:ar,prefixCls:H,popup:Me,className:m()(Sn,cs),style:it,target:ct,onMouseEnter:Pi,onMouseLeave:Ai,onPointerEnter:Pi,zIndex:Fe,open:Cn,keepDom:Qn,fresh:Jt,onClick:xn,mask:vt,motion:An,maskMotion:Dn,onVisibleChanged:lr,onPrepare:Vn,forceRender:B,autoDestroy:wt,getPopupContainer:C,align:bi,arrow:as,arrowPos:fs,ready:Er,offsetX:Mr,offsetY:ti,offsetR:Ri,offsetB:Hn,onAlign:Xi,stretch:tt,targetWidth:Fr/di,targetHeight:Bi/Mi})))});return pe}var Ct=ut(ue.Z)},50304:function(){"use strict"},8797:function(Qt,He,p){"use strict";var O=p(59301),U=p(93314),ee=p(3113),ue=Object.defineProperty,A=Object.defineProperties,m=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,I=(S,T,N)=>T in S?ue(S,T,{enumerable:!0,configurable:!0,writable:!0,value:N}):S[T]=N,k=(S,T)=>{for(var N in T||(T={}))ne.call(T,N)&&I(S,N,T[N]);if(w)for(var N of w(T))o.call(T,N)&&I(S,N,T[N]);return S},g=(S,T)=>A(S,m(T));const _=({img:S,buttonProps:T={},styles:N={},customText:ie,ButtonText:z,ButtonClick:$,Buttonclass:G,ButtonTwo:Q,imgStyles:L,loading:D=!1,className:Y=""})=>O.createElement("section",{className:`tc animated fadeIn ${Y}`,style:k({color:"#999",margin:"100px auto",visibility:D?"hidden":"visible"},N)},O.createElement("img",{src:S||U,style:g(k({},L),{pointerEvents:"none",userSelect:"none"})}),O.createElement("p",{className:"mt20 font14"},ie||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),z&&O.createElement(ee.ZP,k({className:G,onClick:$},T),z),Q&&Q);He.Z=_},23210:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return G}});var O=p(59301),U={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ee=p(3113),ue=p(70557),A=p(23954),m=p(6848),w=p(955),ne=p(94941),o=p(8797),I=p(3294),k=p(19381),g=p(59301),_=Object.defineProperty,S=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,ie=(Q,L,D)=>L in Q?_(Q,L,{enumerable:!0,configurable:!0,writable:!0,value:D}):Q[L]=D,z=(Q,L)=>{for(var D in L||(L={}))T.call(L,D)&&ie(Q,D,L[D]);if(S)for(var D of S(L))N.call(L,D)&&ie(Q,D,L[D]);return Q},$=(Q,L,D)=>new Promise((Y,j)=>{var xe=ge=>{try{Se(D.next(ge))}catch(de){j(de)}},Ce=ge=>{try{Se(D.throw(ge))}catch(de){j(de)}},Se=ge=>ge.done?Y(ge.value):Promise.resolve(ge.value).then(xe,Ce);Se((D=D.apply(Q,L)).next())}),G=({editOffice:Q="view",data:L,theme:D,type:Y,filename:j,monacoEditor:xe,className:Ce,style:Se,close:ge,onClose:de,hasMask:W,disabledDownload:be,onImgDimensions:F,showNodata:ce,recordInfo:q})=>{const[y,x]=(0,O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Z,me]=(0,O.useState)(""),[Ne,Ue]=(0,O.useState)(),ze=window.ENV==="build"?"/react/build":"",et=location.host.startsWith("localhost")?I.Z.PROXY_SERVER:I.Z.API_SERVER,gt=10*(1024*1024),at=(0,O.useRef)();L!=null&&L.startsWith("/api")&&Y!=="txt"&&(L=I.Z.API_SERVER+L);const Ot=ut=>ut.substring(ut.lastIndexOf("/")+1).split(".").pop();j&&xe&&(xe.filename=j),(0,O.useEffect)(()=>{var ut,Ct;const he=(Ct=(ut=document.cookie)==null?void 0:ut.replace(/\s/g,""))==null?void 0:Ct.split(";");he==null||he.map(pe=>{let le=pe.split("=");le[0]==="_educoder_session"&&me(le[1])})},[]),(0,O.useEffect)(()=>{Y==="office"&&(L.indexOf("bigfilescdn.")>-1||L.indexOf("bigfiles1")>-1?Ue({url:L,fileType:Ot(L),model:L.indexOf("model=edit")?"edit":"view"}):en())},[Y,L]);const en=()=>$(void 0,null,function*(){console.log("data:",L);let ut=L;L.startsWith("http")||(ut=location.origin+ut);let Ct=new URL(ut).pathname.split("/").pop();const he=yield(0,ne.gJ)({attachment_id:Ct});he.url=et+he.url,Ue(he)}),Rt=()=>{if(L.startsWith("http")||L.startsWith("blob:")){Zt();return}(0,w.Sv)(j||"educoder",L,j)},Zt=()=>{q&&(0,k.fc)({id:q==null?void 0:q.id,watch_type:1,course_id:q==null?void 0:q.course_id}),(0,w.Nd)(j||"educoder",decodeURIComponent(L))};return g.createElement("div",{style:z({},Se||{}),className:`${W&&U.bgBlack} ${Y?U.wrp:"hide"}`},ge&&g.createElement("div",{className:U.close,ref:at},!!F&&g.createElement(m.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>at.current},g.createElement("span",{onClick:()=>{de(),F()}},g.createElement("i",{className:"icon-yulanpizhu"}))),!be&&g.createElement(m.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>at.current},g.createElement("span",{onClick:Zt},g.createElement("i",{className:"icon-quxiaozhiding"}))),g.createElement(m.Z,{title:"\u5173\u95ED",getPopupContainer:()=>at.current},g.createElement("span",{className:"",onClick:de},g.createElement("i",{className:"icon-guanbi1"})))),g.createElement("div",{className:`${U[Ce]} ${Ce} ${U.monaco} ${Y==="txt"?"show":"hide"}`},Y==="txt"&&g.createElement(g.Fragment,null,g.createElement(A.ZP,z({},xe)))),Y==="audio"&&g.createElement("audio",{src:`${(L==null?void 0:L.indexOf("http://"))>-1||(L==null?void 0:L.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${L}`,autoPlay:!0}),Y==="video"&&g.createElement(g.Fragment,null,(L==null?void 0:L.indexOf("http"))>-1?g.createElement("video",{controls:!0,src:`${L}`,autoPlay:!0}):g.createElement("video",{controls:!0,src:`data:video/mp4;base64,${L}`,autoPlay:!0})),Y==="office"&&Ne&&g.createElement("iframe",{src:`${ze}/office.html?key=${Ne.key}&url=${btoa(Ne.url)}&callbackUrl=${et+(Ne.callbackUrl||"")}&fileType=${Ne.fileType}&title=${Ne.title||""}&model=${Q}&officeServer=${I.Z.ONLYOFFICE}&disabledDownload=${!!be}`}),Y==="html"&&g.createElement("iframe",{src:L+"&disposition=inline"}),Y==="pdf"&&g.createElement("iframe",{src:`${ze}/js/pdfview/index.html?filename=${j||"educoder.pdf"}&url=${encodeURIComponent(L)}&disabledDownload=${!!be}`}),Y==="image"&&g.createElement("img",{src:`${(L==null?void 0:L.indexOf("http://"))>-1||(L==null?void 0:L.indexOf("https://"))>-1?"":"data:image/png;base64,"}${L}`}),(Y==="other"||Y==="download")&&g.createElement(g.Fragment,null,ce?g.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:g.createElement(ee.ZP,{icon:g.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Rt,disabled:be},"\u4E0B\u8F7D")}):g.createElement(ee.ZP,{type:"primary",size:"middle",onClick:Rt,disabled:be},g.createElement(ue.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Qt,He,p){"use strict";p.d(He,{z:function(){return Y},Z:function(){return j}});var O=p(59301),U=p(50304),ee=p(24768),ue=p(64018),A=p(65157),m=p(3294),w=p(955),ne=p(15342),o=p(1012),I=p(23210),k=p(59301),_=({html:xe})=>{const Ce=(0,O.useRef)(null),Se=(0,O.useRef)(null),ge=`.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,O.useEffect)(()=>{const de=Ce.current.attachShadow({mode:"open"});Se.current=document.createElement("div"),Se.current.className="markdown-body",Se.current.innerHTML=xe,de.appendChild(Se.current);const W=document.createElement("style");return W.textContent=ge,de.appendChild(W),()=>{de.innerHTML=""}},[]),(0,O.useEffect)(()=>{Se.current&&(Se.current.innerHTML=xe)},[xe]),k.createElement("div",{ref:Ce})},S=Object.defineProperty,T=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,z=(xe,Ce,Se)=>Ce in xe?S(xe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Se}):xe[Ce]=Se,$=(xe,Ce)=>{for(var Se in Ce||(Ce={}))N.call(Ce,Se)&&z(xe,Se,Ce[Se]);if(T)for(var Se of T(Ce))ie.call(Ce,Se)&&z(xe,Se,Ce[Se]);return xe};const G="@\u2581\u2581@",Q="@\u2581@",L=/<pre[^>]*>/g;function D(xe){let Ce=document.createElement("div");return Ce.innerHTML=xe,Ce.childNodes.length===0?"":Ce.childNodes[0].nodeValue}const Y=(xe,Ce)=>{xe=xe||"";const Se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ge=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,de=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,W=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ce?xe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Se,(be,F,ce,q,y,x,Z)=>{const me=F||q||x,Ne=ce||y||Z||"?";return m.Z.API_SERVER+"/api/attachments/"+me+Ne+"&t="+(0,w.Jn)(me,Date.now())+(be.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(xe=xe.replace(W,(be,F,ce,q,y,x,Z)=>{const me=F||q||x,Ne=ce||y||Z||"?";return m.Z.API_SERVER+"/attachments/download/"+me+Ne+"&t="+(0,w.Jn)(me,Date.now())+(be.indexOf(")")>-1?")":"&")}).replace(Se,(be,F,ce,q,y,x,Z)=>{const me=F||q||x,Ne=ce||y||Z||"?";return m.Z.API_SERVER+"/api/attachments/"+me+Ne+"&t="+(0,w.Jn)(me,Date.now())+(be.indexOf(")")>-1?")":"&")}).replace(ge,(be,F,ce,q,y)=>{const x=F||q,Z=ce||y||"";return'"'+m.Z.API_SERVER+"/api/attachments/"+x+Z+x+Z+"&t="+(0,w.Jn)(x,Date.now())}).replace(de,(be,F,ce,q,y)=>{const x=F||q,Z=ce||y||"";return"("+m.Z.API_SERVER+"/files/uploads/"+x+Z+x+Z+"&t="+(0,w.Jn)(x,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,`
|
|
|
`),xe)};var j=({value:xe="",className:Ce,showTextOnly:Se,showLines:ge,style:de={},stylesPrev:W={},highlightKeywords:be,showProgramFill:F,isProgramFill:ce,disabledFill:q=!1,programFillValue:y,onFillChange:x=Ne=>{},onFillBlur:Z=()=>{},onFillFocus:me=()=>{}})=>{let Ne=String(xe);const[Ue,ze]=(0,O.useState)(""),[et,pt]=(0,O.useState)("office"),[gt,at]=(0,O.useState)([]),Ot=(0,O.useRef)("a"+(0,o.Z)()),en={},Rt=(fe,oe,te)=>{const Ae=document.createElement(fe===Q?"input":"textarea");Ae.style.width="100%",Ae.style.height=fe===Q?"40px":"151px",Ae.rows=5,Ae.spellcheck=!1,Ae.name="edu-program-fill",Ae.placeholder="\u8BF7\u8F93\u5165",Ae.dataset.id=oe;const je=Object.keys(en).length;return en[je]=Ae,`<span class="edu-program-fill-wrap ${fe===Q?"":"show"}" style="width:${fe===Q?"400px":"100%"}" title=${te||""}><span>${Ae.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Zt(fe){return fe=fe.replace(/!\[.*?\]\(.*?\)/g,""),fe=fe.replace(/\[.*?\]\(.*?\)/g,""),fe=fe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),fe=fe.replace(/<embed.*?>/g,""),fe=fe.replace(/<img.*?>/g,""),fe=fe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),fe=fe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),fe=fe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),fe=fe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),fe}const ut=fe=>fe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(oe,te){let Ae=te.replace(/(\n|\r)/g,"").split("}"),je=[];return Ae.map(ke=>{ke!=""&&je.push(`.${Ot.current} ${ke}`)}),`<style>${je.join("}")}</style>`}),Ct=(0,O.useMemo)(()=>{try{const Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,je=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ke=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Be=/\(\/attachments\/download\//g;Ne=Ne.replace(Be,"("+m.Z.API_SERVER+"/attachments/download/").replace(Ae,"("+m.Z.API_SERVER+"/api/attachments/").replace(je,'"'+m.Z.API_SERVER+"/api/attachments/").replace(ke,'"'+m.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(Ae){}if(F){let Ae=-1;return Ne=Ne.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(je,ke,Be){var qe;return++Ae,Rt(je,Ae,(qe=y==null?void 0:y[Ae])==null?void 0:qe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ut(Ne||"")}</pre>`}let fe=ut(Ne);fe=(0,ee.ZP)(fe);const oe=(0,ee.ez)();Ne.match(/\[TOC\]/)&&(fe=fe.replace("<p>[TOC]</p>",(0,ee.Qv)()),(0,ee.Iy)()),fe=fe.replace(/(__special_katext_id_\d+__)/g,(Ae,je)=>{const{type:ke,expression:Be}=oe[je];return(0,ne.renderToString)(D(Be)||"",{displayMode:ke==="block",throwOnError:!1,output:"html"})}),fe=fe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ee.AL)();const te=document.createElement("div");if(te.innerHTML=fe,Se)return te.innerText;if(be){const Ae=be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return J(te,Ae),te.innerHTML}return setTimeout(()=>R(),500),te.innerHTML},[Ne,be]);(0,O.useEffect)(()=>{Ie.current&&Ie.current.querySelectorAll(["input","textarea"]).forEach(oe=>{oe.oninput=he,oe.onblur=pe,oe.onfocus=le})},[gt]),(0,O.useEffect)(()=>{var fe,oe,te,Ae,je;if(y!=null&&y.length)try{const ke=Ie.current.querySelectorAll(".edu-program-fill-score"),Be=Ie.current.querySelectorAll('[name="edu-program-fill"]');for(const[qe,Qe]of Be.entries())Qe.value=((fe=y==null?void 0:y[qe])==null?void 0:fe.value)||"",((oe=y==null?void 0:y[qe])==null?void 0:oe.type)==="warning"?Qe.className="program-fill-warning":((te=y==null?void 0:y[qe])==null?void 0:te.type)==="success"?Qe.className="program-fill-success":Qe.className="";for(const[qe,Qe]of ke.entries())Qe.innerHTML=(Ae=y==null?void 0:y[qe])!=null&&Ae.score?`${(je=y==null?void 0:y[qe])==null?void 0:je.score}\u5206`:"";at(y)}catch(ke){console.log(ke,"error")}},[y]);const he=fe=>{gt[fe.target.dataset.id]=gt[fe.target.dataset.id]||{},gt[fe.target.dataset.id].value=fe.target.value,at([...gt]),x(gt,fe.target.dataset.id)},pe=fe=>{gt[fe.target.dataset.id]=gt[fe.target.dataset.id]||{},gt[fe.target.dataset.id].value=fe.target.value,at([...gt]),Z(gt,fe.target.dataset.id)},le=fe=>{gt[fe.target.dataset.id]=gt[fe.target.dataset.id]||{},gt[fe.target.dataset.id].value=fe.target.value,at([...gt]),me(gt,fe.target.dataset.id)};function J(fe,oe){return fe.childNodes.forEach(te=>{var Ae;if(te.childNodes.length>0)J(te,oe);else if(te.nodeName!=="IMG")if(te.innerHTML)te.innerHTML=(Ae=te.innerHTML)==null?void 0:Ae.replace(new RegExp(oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const je=document.createElement("span");je.innerHTML=te.textContent.replace(new RegExp(oe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),te.replaceWith(je)}})}const Ie=(0,O.useRef)();ee.jb.WebkitLineClamp=ge,ge&&(de=$($({},de),ee.jb));function H(fe){let oe=fe.target;if(oe.tagName.toUpperCase()==="A"){let te=oe.getAttribute("href");if(te.indexOf("office")>-1)fe.preventDefault(),ze(te),pt("office");else if(te.indexOf("application/pdf")>-1)fe.preventDefault(),ze(te),pt("pdf");else if(te.indexOf("text/html")>-1)fe.preventDefault(),ze(te),pt("html");else if(te.startsWith("#")){fe.preventDefault();let Ae=document.getElementById(te.replace("#",""));Ae&&Ae.scrollIntoView(!0)}}}const R=()=>{var fe;const oe=(fe=Ie.current)==null?void 0:fe.querySelectorAll("video");oe==null||oe.forEach(te=>{if(te.oncontextmenu=()=>!1,te.src.indexOf(".m3u8")>-1&&!te.canPlayType("application/vnd.apple.mpegurl")){if(A.ZP.isSupported()){var Ae=new A.ZP;Ae.loadSource(te.src),Ae.attachMedia(te)}}})};(0,O.useEffect)(()=>{if(Ie.current&&Ct&&Ct.match(L)&&window.PR.prettyPrint(),Ie.current)return Ie.current.addEventListener("click",H),()=>{var fe;(fe=Ie.current)==null||fe.removeEventListener("click",H),(0,ee.AL)(),(0,ee.Iy)()}},[Ct,Ie.current,H]),(0,O.useEffect)(()=>{var fe;const oe=te=>{te.preventDefault(),te.clipboardData.setData("text",window.getSelection().toString())};return(fe=Ie.current)==null||fe.addEventListener("copy",oe),()=>{var te;(te=Ie.current)==null||te.removeEventListener("copy",oe)}},[Ie.current]);const P=fe=>/<style[\s\S]*?>/i.test(fe||"");return O.createElement(O.Fragment,null,Se&&O.createElement("div",{ref:Ie},Ct),!Se&&!P(Ct)&&O.createElement("div",{ref:Ie,style:$({},de),className:`${Ce||""} ${q?"disabled-fill":""} markdown-body ${Ot.current}`,dangerouslySetInnerHTML:{__html:Ct}}),!Se&&P(Ct)&&O.createElement(_,{html:Ct}),O.createElement(I.Z,{close:!0,data:Ue,type:Ue!=null&&Ue.length?et:"",style:$({},W),onClose:()=>ze("")}))}},23954:function(Qt,He,p){"use strict";p.d(He,{SV:function(){return Ie},ZP:function(){return J}});var O=p(59301),U=p(76374);const ee={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"]},ue={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"]},A={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(`
|
|
|
`)}]},m={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(`
|
|
|
`)}]},w={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 ne=p(53184),o=p.n(ne),I=Object.defineProperty,k=Object.defineProperties,g=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,N=(H,R,P)=>R in H?I(H,R,{enumerable:!0,configurable:!0,writable:!0,value:P}):H[R]=P,ie=(H,R)=>{for(var P in R||(R={}))S.call(R,P)&&N(H,P,R[P]);if(_)for(var P of _(R))T.call(R,P)&&N(H,P,R[P]);return H},z=(H,R)=>k(H,g(R)),$=(H,R,P)=>new Promise((fe,oe)=>{var te=ke=>{try{je(P.next(ke))}catch(Be){oe(Be)}},Ae=ke=>{try{je(P.throw(ke))}catch(Be){oe(Be)}},je=ke=>ke.done?fe(ke.value):Promise.resolve(ke.value).then(te,Ae);je((P=P.apply(H,R)).next())});const G={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"]}},Q=(H,R)=>R.map(P=>({label:P,kind:H.languages.CompletionItemKind.Keyword,insertText:P})),L=H=>Object.keys(G.tables).map(R=>({label:R,kind:H.languages.CompletionItemKind.Variable,insertText:R})),D=(H,R)=>{const P=G.tables[H];return P?P.map(fe=>({label:fe,kind:R.languages.CompletionItemKind.Field,insertText:fe})):[]};function Y(H,R,P,fe,oe){let te=R.getWordUntilPosition(P),Ae={startLineNumber:P.lineNumber,endLineNumber:P.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},je=fe.map(ke=>({label:ke,kind:H.languages.CompletionItemKind.Keyword,insertText:ke,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ae}));return oe.map(ke=>{je.push(z(ie({},ke),{range:Ae}))}),je}var j=H=>{G.languages.map(oe=>(H.languages.registerDocumentFormattingEditProvider(oe,{provideDocumentFormattingEdits(te,Ae,je){return $(this,null,function*(){const ke=o()(te.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:te.getFullModelRange(),text:ke}]})}}),oe));const R=A.quickKey.map(oe=>({label:oe.label,kind:H.languages.CompletionItemKind.Method,insertText:oe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet})),P=m.quickKey.map(oe=>({label:oe.label,kind:H.languages.CompletionItemKind.Method,insertText:oe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet})),fe=ue.quickKey.map(oe=>({label:oe.label,kind:H.languages.CompletionItemKind.Method,insertText:oe.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet}));H.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(oe,te){var Ae=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},ke=oe.getLineContent(te.lineNumber).substring(Ae.startColumn-2,Ae.endColumn);return{suggestions:[...A.keywords.map(Be=>({label:Be,kind:H.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...A.quickKey.map(Be=>({label:Be.label,kind:H.languages.CompletionItemKind.Function,documentation:Be.content,insertText:ke.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(oe,te){var Ae=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn};return{suggestions:[...ee.keywords.map(ke=>({label:ke,kind:H.languages.CompletionItemKind.Function,documentation:ke,insertText:ke,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(oe,te){var Ae=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},ke=oe.getLineContent(te.lineNumber).substring(Ae.startColumn-2,Ae.endColumn);return{suggestions:[...ue.keywords.map(Be=>({label:Be,kind:H.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...ue.quickKey.map(Be=>({label:Be.label,kind:H.languages.CompletionItemKind.Function,documentation:Be.content,insertText:ke.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(oe,te){var Ae=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},ke=oe.getLineContent(te.lineNumber).substring(Ae.startColumn-2,Ae.endColumn);return{suggestions:[...w.keywords.map(Be=>({label:Be,kind:H.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...w.quickKey.map(Be=>({label:Be.label,kind:H.languages.CompletionItemKind.Function,documentation:Be.content,insertText:ke.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}}),H.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(oe,te){var Ae=oe.getWordUntilPosition(te),je={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},ke=oe.getLineContent(te.lineNumber).substring(Ae.startColumn-2,Ae.endColumn);return{suggestions:[...m.keywords.map(Be=>({label:Be,kind:H.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...m.quickKey.map(Be=>({label:Be.label,kind:H.languages.CompletionItemKind.Function,documentation:Be.content,insertText:ke.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:H.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}})};const xe="\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,Se=(H,R,P)=>R in H?Ce(H,R,{enumerable:!0,configurable:!0,writable:!0,value:P}):H[R]=P,ge=(H,R,P)=>Se(H,typeof R!="symbol"?R+"":R,P);const de=class Lu{constructor(R,P,fe){this.placeholder=R,this.editor=P,this.monaco=fe,P.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Lu.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)}};ge(de,"ID","editor.widget.placeholderHint");var be=de,F=p(96236),ce=p(8591),q=p(6848),y=p(89392),x=p(34604),Z=p(56102),me=Object.defineProperty,Ne=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,gt=(H,R,P)=>R in H?me(H,R,{enumerable:!0,configurable:!0,writable:!0,value:P}):H[R]=P,at=(H,R)=>{for(var P in R||(R={}))et.call(R,P)&>(H,P,R[P]);if(ze)for(var P of ze(R))pt.call(R,P)&>(H,P,R[P]);return H},Ot=(H,R)=>Ne(H,Ue(R)),en=(H,R)=>{var P={};for(var fe in H)et.call(H,fe)&&R.indexOf(fe)<0&&(P[fe]=H[fe]);if(H!=null&&ze)for(var fe of ze(H))R.indexOf(fe)<0&&pt.call(H,fe)&&(P[fe]=H[fe]);return P},Rt=(H,R,P)=>new Promise((fe,oe)=>{var te=ke=>{try{je(P.next(ke))}catch(Be){oe(Be)}},Ae=ke=>{try{je(P.throw(ke))}catch(Be){oe(Be)}},je=ke=>ke.done?fe(ke.value):Promise.resolve(ke.value).then(te,Ae);je((P=P.apply(H,R)).next())});function Zt(H){return/^\d+$/.test(H)?`${H}px`:H}function ut(){}let Ct=!1;const he={"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 pe(H=[]){let R=H;if(Array.isArray(H)){for(let P=0;P<H.length;P++){let fe=he[H[P]];if(fe)return fe}return R[0]}return he[R]||R}let le=null;var J=H=>{var R=H,{width:P="100%",height:fe="100%",value:oe,language:te="javascript",style:Ae={},options:je={},overrideServices:ke={},theme:Be="vs-dark",onEditBlur:qe,isCopy:Qe=!1,onSave:Ve,autoHeight:xt=!1,forbidCopy:Dt=!1,onChange:vt=ut,editorDidMount:Bt=ut,onFocus:jt=ut,onBreakPoint:C=ut,breakPointValue:B=[],filename:yt="educoder.txt",errorLine:ye,errorContent:Me="",highlightLine:Sn,openBreakPoint:it=!1,placeholder:nt=""}=R,rt=en(R,["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 Ee=(0,O.useRef)(),De=(0,O.useRef)({}),Fe=(0,O.useRef)(),tt=(0,O.useRef)(),_e=(0,O.useRef)([]),Jt=(0,O.useRef)(!1),Ze=(0,O.useRef)(),xn=(0,O.useRef)(),Rn=(0,O.useRef)(!1),[Wn,yr]=(0,O.useState)(!1);function vn(){let Kt;return Ee.current&&(Kt=new U.Z(zt=>{for(let ln of zt)(ln.target.offsetHeight>0||ln.target.offsetWidth>0)&&De.current.instance.layout()}),Kt.observe(Ee.current)),Kt}function wn(){ce.ZP.warning({content:decodeURIComponent(xe),key:"monaco-editor-tip"})}const Xe=()=>{let Kt=De.current.instance;if(oe!=null&&Kt&&Wn){const zt=Kt.getModel();zt&&oe!==zt.getValue()&&(Ct=!0,zt.setValue(oe),Kt.layout(),Ct=!1)}};(0,O.useEffect)(()=>{const Kt=x.Z.subscribe("formatDocument",zt=>{var ln;let sn=De.current.instance;(ln=sn==null?void 0:sn.getAction)==null||ln.call(sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=zt=>{vt(zt)},Kt},[]),(0,O.useEffect)(()=>{var Kt;let zt=De.current.instance;tt.current&&clearTimeout(tt.current),tt.current=setTimeout(()=>{Xe()},500),oe&&(oe!=null&&oe.length)&&((Kt=zt==null?void 0:zt.updateOptions)==null||Kt.call(zt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[oe,Wn,De.current]),(0,O.useEffect)(()=>{if(ye&&De.current&&De.current.instance){let zt=De.current.instance;zt.changeViewZones(function(ln){var sn=document.createElement("div");sn.style.padding="10px 20px",sn.style.width="calc(100% - 20px)",sn.className="my-error-line-wrp",sn.innerHTML=Me,ln.addZone({afterLineNumber:ye||11,heightInLines:3,domNode:sn})});var Kt={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}};zt.addOverlayWidget(Kt),zt.revealPositionInCenter({lineNumber:20,column:1})}},[ye,De.current,Wn]);const Lt=(Kt="",zt)=>{if(!Kt||Kt.trim()==="")return!0;const sn=De.current.instance.getModel().getLineTokens(zt);let mn=!1;for(let un=0;un<2;un++)sn.getStandardTokenType(un)===1&&(mn=!0);return mn};(0,O.useEffect)(()=>{var Kt;const zt=(Kt=De.current)==null?void 0:Kt.instance;if(zt&&Wn&&Dt){const ln=zt.onDidBlurEditorWidget(()=>{Rn.current=!1}),sn=zt.onDidFocusEditorText(()=>{Rn.current=!0});return()=>{ln.dispose(),sn.dispose()}}},[De.current,Wn,Dt]),(0,O.useEffect)(()=>{var Kt;if((Kt=De.current)!=null&&Kt.instance&&Wn&&it){let zt=De.current.instance,ln=zt.getModel();if(!ln)return;(()=>{var Yt;let Mt=[],gn=[];const An=ln.getAllDecorations();for(let Xn of An)Xn.options.className==="highlighted-line"&&(Mt.push((Yt=Xn==null?void 0:Xn.range)==null?void 0:Yt.startLineNumber),gn.push(Xn==null?void 0:Xn.id));if(Sn===Mt[0])return;ln.deltaDecorations(gn,[]);const Dn=ln.getLineCount();Sn&&Sn<=Dn&&(zt.deltaDecorations([],[{range:new le.Range(Sn,1,Sn,ln.getLineMaxColumn(Sn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),zt.revealLineInCenter(Sn))})();const mn=(Yt=!1)=>{var Mt;let gn=[],An=[];const Dn=ln.getAllDecorations();for(let Xn of Dn)Xn.options.linesDecorationsClassName==="breakpoints-select"&&(gn.push((Mt=Xn==null?void 0:Xn.range)==null?void 0:Mt.startLineNumber),An.push(Xn==null?void 0:Xn.id));if(Yt)return{lines:gn,ids:An};C(gn)},un=Yt=>Rt(void 0,null,function*(){let Mt={range:new le.Range(Yt,1,Yt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ln.deltaDecorations([],[Mt]),mn()}),ar=Yt=>Rt(void 0,null,function*(){let Mt=[];const gn=zt.getLineDecorations(Yt);for(let An of gn)An.options.linesDecorationsClassName==="breakpoints-select"&&Mt.push(An.id);yield ln.deltaDecorations(Mt,[]),mn()}),On=Yt=>{let Mt=zt.getLineDecorations(Yt);for(let gn of Mt)if(gn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,y.isEqual)(B,mn(!0).lines)){ln.deltaDecorations(mn(!0).ids,[]);const Yt=B.map(Mt=>({range:new le.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ln.deltaDecorations([],Yt)}const tn=zt.onDidChangeModelContent(Yt=>{let Mt=zt.getPosition();if(Mt){let gn=Mt.lineNumber;clearTimeout(xn.current),xn.current=setTimeout(()=>{Lt(ln.getLineContent(gn),gn)?ar(gn):On(gn)?(ar(gn),un(gn)):mn()},100)}}),ct=zt.onMouseDown(Yt=>{var Mt,gn,An;if(Yt.target.detail&&((An=(gn=(Mt=Yt.target)==null?void 0:Mt.element)==null?void 0:gn.className)!=null&&An.includes("line-numbers"))){let Dn=Yt.target.position.lineNumber;if(Lt(ln.getLineContent(Dn),Dn))return;On(Dn)?ar(Dn):un(Dn)}}),ht=Yt=>{let Mt={range:new le.Range(Yt,1,Yt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};_e.current=zt.deltaDecorations(_e.current,[Mt])},At=()=>{_e.current=zt.deltaDecorations(_e.current,[])},Ft=zt.onMouseMove(Yt=>{var Mt,gn,An;if(At(),Yt.target.detail&&((An=(gn=(Mt=Yt.target)==null?void 0:Mt.element)==null?void 0:gn.className)!=null&&An.includes("line-numbers"))){let Dn=Yt.target.position.lineNumber;if(Lt(ln.getLineContent(Dn),Dn))return;ht(Dn)}}),Pt=zt.onMouseLeave(()=>{At()});return()=>{tn.dispose(),ct.dispose(),Ft.dispose(),Pt.dispose()}}},[De.current,Wn,B,Sn,it,te]),(0,O.useEffect)(()=>{var Kt;(Kt=De.current)!=null&&Kt.instance&&it&&De.current.instance.setPosition({lineNumber:0,column:0})},[Sn]);function Wt(){let Kt=De.current.instance;if(Kt){const zt=Kt.getSelection(),ln=De.current.pastePos||{},sn=new le.Range(ln.startLineNumber||zt.endLineNumber,ln.startColumn||zt.endColumn,ln.endLineNumber||zt.endLineNumber,ln.endColumn||zt.endColumn);setTimeout(()=>{Kt.executeEdits("",[{range:sn,text:""}])},300)}}function Ke(Kt){(window.navigator.platform.match("Mac")?Kt.metaKey:Kt.ctrlKey)&&Kt.keyCode==83&&(Kt.preventDefault(),Ve())}const Oe=()=>{if(xt&&De.current.instance){const Kt=De.current.instance.getContentHeight();pn(Kt<fe?fe:Kt)}else pn(fe)};function _t(Kt){var zt=document.createEvent("MouseEvents");zt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Kt.dispatchEvent(zt)}const wt=Kt=>{if(!Rn.current)return;const{keyCode:zt,ctrlKey:ln,metaKey:sn,target:mn,type:un}=Kt;return(un==="paste"||(zt===67||zt===86)&&(sn||ln))&&mn.nodeName==="TEXTAREA"&&(wn(),Kt.preventDefault()),!1};function rn(Kt,zt){var ln=window.URL||window.webkitURL||window,sn=new Blob([zt]),mn=document.createElementNS("http://www.w3.org/1999/xhtml","a");mn.href=ln.createObjectURL(sn),mn.download=Kt,_t(mn)}(0,O.useEffect)(()=>{Oe()},[Oe]),(0,O.useEffect)(()=>{Ee.current&&!Wn&&Promise.all([p.e(8909),p.e(3267)]).then(p.bind(p,71448)).then(Kt=>{try{le=Kt,De.current.instance=le.editor.create(Ee.current,{value:oe,language:pe(te),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},ke);const zt=De.current.instance;let mn=[...F.BH._menuItems].find(tn=>tn[0]._debugName=="EditorContext")[1],un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ar=(tn,ct)=>{var ht,At;let Ft=tn._first;do ct.includes((At=(ht=Ft.element)==null?void 0:ht.command)==null?void 0:At.id)&&tn._remove(Ft);while(Ft=Ft.next)};if(Bt(zt,le),setTimeout(()=>{Oe(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{rn(yt||"educoder.txt",zt.getValue())}})},500),De.current.subscription=zt.onDidChangeModelContent(tn=>{Jt.current?clearTimeout(Ze.current):(Oe(),vt(zt.getValue(),tn)),Ze.current=setTimeout(()=>{Jt.current=!1},500)}),window.Monaco||j(le,pe(te)),Dt&&(ar(mn,un),Ee.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",wt),window.removeEventListener("paste",wt),window.addEventListener("keydown",wt),window.addEventListener("paste",wt)),window.Monaco=le,qe&&zt.onDidBlurEditorWidget(()=>{qe(zt.getValue())}),jt&&zt.onDidFocusEditorText(()=>{jt(zt.getValue())}),Dt)try{zt.onDidPaste(tn=>{const ct=zt.getSelection(),ht=De.current.pastePos||{},At=new le.Range(ht.startLineNumber||ct.endLineNumber,ht.startColumn||ct.endColumn,ht.endLineNumber||ct.endLineNumber,ht.endColumn||ct.endColumn);zt.executeEdits("",[{range:tn.range,text:""}])})}catch(tn){}let On=vn();return nt&&typeof nt=="string"&&new be(nt,zt,le),yr(!0),()=>{const tn=De.current.instance;tn.dispose();const ct=tn.getModel();ct&&ct.dispose(),De.current.subscription&&De.current.subscription.dispose(),On.unobserve(Ee.current)}}catch(zt){}})},[]),(0,O.useEffect)(()=>{if(De.current.instance&&Wn)return document.addEventListener("keydown",Ke,!1),()=>{document.removeEventListener("keydown",Ke)}},[Ve,Wn]),(0,O.useEffect)(()=>{let Kt=De.current.instance;if(Kt&&Wn){let zt=pe(te);le.editor.setModelLanguage(Kt.getModel(),zt)}},[te,Wn]),(0,O.useEffect)(()=>{De.current.instance&&Wn&&le.editor.setTheme(Be)},[Be,Wn]),(0,O.useEffect)(()=>{let Kt=De.current.instance;Fe.current=je,Kt&&Wn&&(Kt.updateOptions(at({},je)),setTimeout(()=>{Kt.getModel().updateOptions(at({},je))},200))},[JSON.stringify(je),Wn]),(0,O.useEffect)(()=>{let Kt=De.current.instance;Kt&&Wn&&Kt.layout()},[P,fe,Wn]);const[Xt,cn]=(0,O.useState)(Zt(P)),[nn,pn]=(0,O.useState)(Zt(fe)),Ln=Ot(at({},Ae),{width:Xt,height:nn,position:"relative"});return O.createElement("div",{className:"my-monaco-editor",ref:Ee,style:Ln},Qe&&O.createElement(Z.CopyToClipboard,{text:oe,onCopy:()=>ce.ZP.success("\u590D\u5236\u6210\u529F")},O.createElement(q.Z,{title:"\u590D\u5236\u4EE3\u7801"},O.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},O.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ie({width:H="100%",height:R="100%",original:P,modified:fe,language:oe,options:te={}}){const Ae=(0,O.useRef)(),[je,ke]=(0,O.useState)(null);function Be(xt){let Dt;return Ae.current&&(Dt=new U.Z(vt=>{for(let Bt of vt)(Bt.target.offsetHeight>0||Bt.target.offsetWidth>0)&&xt.layout()}),Dt.observe(Ae.current)),Dt}(0,O.useEffect)(()=>(Ae.current&&Promise.all([p.e(8909),p.e(9404)]).then(p.bind(p,2550)).then(xt=>{le=xt;const Dt=le.editor.createDiffEditor(Ae.current,Ot(at({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},te),{wordWrap:!0}));ke(Dt);let vt=Be(Dt);return()=>{Dt.dispose();const Bt=Dt.getModel();Bt&&Bt.dispose(),vt.unobserve(Ae.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,O.useEffect)(()=>{je&&je.setModel({original:le.editor.createModel(P,oe),modified:le.editor.createModel(fe,oe)})},[P,fe,oe,je]);const qe=Zt(H),Qe=Zt(R),Ve={width:qe,height:Qe};return O.createElement("div",{className:"my-diff-editor",ref:Ae,style:Ve})}},60913:function(Qt,He,p){"use strict";p.d(He,{H:function(){return w}});var O=p(59301),U=p(78241),ee=p(92832),ue=p(42441),A=p(85149);const m=({form:ne,index:o=1,field:I,ParentName:k=[]})=>{(typeof k=="string"||typeof k=="number")&&(k=[k]);const g=U.default.useWatch([...k,I.name,"chart_1"],{form:ne}),_=U.default.useWatch([...k,I.name,"chart_2"],{form:ne}),S=U.default.useWatch([...k,I.name,"name"],{form:ne}),T=U.default.useWatch([...k,I.name,"question_type"],{form:ne}),N=(0,O.useMemo)(()=>{const z=[],$=[];return g==null||g.forEach(G=>{z.push(G==null?void 0:G.x_axis),$.push(G==null?void 0:G.y_axis)}),{tooltip:{},grid:{left:"7%",right:"5%",bottom:"15%",top:"15%",containLabel:!0},xAxis:{type:"category",data:[...z||[],[4,5,6,7,8].includes(T)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:$,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[g]),ie=(0,O.useMemo)(()=>{const z=[],$=[];return _==null||_.forEach(G=>{z.push(G==null?void 0:G.x_axis),$.push(Math.round((G==null?void 0:G.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...z||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(G,Q)=>G!=="\u9898\u76EE"?`${Q+1}
|
|
|
|
|
|
{subtext|${(G.length>6?G==null?void 0:G.slice(0,6):G).split("").join(`
|
|
|
`)}}`:G,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:$,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[_]);return O.createElement(O.Fragment,null,O.createElement("div",{className:"text-500 font14 mb10"},o,".",S),O.createElement(U.default.Item,{name:[I.name,"content"]},O.createElement(ee.default.TextArea,{rows:3})),O.createElement("div",{className:"mt20"},O.createElement("div",{className:"font14 mb10"},"\u5B66\u5458\u7B54\u9898\u60C5\u51B5"),O.createElement(ue.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB"},option:N})),O.createElement("div",{className:"mt20"},O.createElement("div",{className:"font14 mb10"},"\u5404\u5C0F\u9898\u7B54\u9898\u60C5\u51B5"),O.createElement(ue.Z,{className:"bg-white",style:{border:"1px solid #EBEBEB",height:331},option:ie})))};He.Z=O.memo(m);const w=O.memo(({form:ne,index:o=1,data:I})=>{const k=(0,O.useMemo)(()=>{var _;const S=[],T=[];return(_=I==null?void 0:I.chart_1)==null||_.forEach(N=>{S.push(N==null?void 0:N.x_axis),T.push(N==null?void 0:N.y_axis)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"15%",top:"20%",containLabel:!0},xAxis:{type:"category",data:[...S||[],[4,5,6,7,8].includes(I==null?void 0:I.question_type)?"\u5206\u6570\u533A\u95F4":"\u7B54\u5BF9\u9898\u6570\uFF08\u5355\u4F4D\uFF1A\u9898\uFF09"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{name:"\u4EBA\u6570\uFF08\u5355\u4F4D\uFF1A\u4EBA\uFF09",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:T,barMaxWidth:"40px",itemStyle:{color:"#A2BEFF",borderColor:"#165DFF"},type:"bar"}]}},[I==null?void 0:I.chart_1]),g=(0,O.useMemo)(()=>{var _;const S=[],T=[];return(_=I==null?void 0:I.chart_2)==null||_.forEach(N=>{S.push(N==null?void 0:N.x_axis),T.push(Math.round((N==null?void 0:N.y_axis)*1e4)/100)}),{tooltip:{},grid:{left:"5%",right:"5%",bottom:"7%",containLabel:!0},xAxis:{type:"category",data:[...S||[],"\u9898\u76EE"],axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0,formatter:(N,ie)=>N!=="\u9898\u76EE"?`${ie+1}
|
|
|
|
|
|
{subtext|${(N.length>6?N==null?void 0:N.slice(0,6):N).split("").join(`
|
|
|
`)}}`:N,rich:{subtext:{align:"center",color:"#666",lineHeight:15}}}},yAxis:{name:"\u5E73\u5747\u5F97\u5206",nameTextStyle:{color:"#666",padding:[0,0,10,0]},type:"value",splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},series:[{data:T,barMaxWidth:"40px",itemStyle:{color:"#2EC25B"},type:"bar",label:{color:"#666",show:!0,position:"top",valueAnimation:!0,formatter:"{c}%"}}]}},[I==null?void 0:I.chart_2]);return O.createElement("div",{className:"text-start pl10 pr10"},O.createElement("div",{className:"text-500 font14 mb10 c-black"},o,".",I==null?void 0:I.name),O.createElement("div",null,O.createElement(A.Z,{className:"font14 c-grey-333",value:I==null?void 0:I.content})),O.createElement("div",{className:"mt20"},O.createElement(ue.Z,{className:"bg-white",style:{background:"#F6F7F9"},option:k}),O.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",o*2-1,"\xA0\xA0",I==null?void 0:I.name,"\u7B54\u9898\u5F97\u5206\u60C5\u51B5\u5206\u5E03")),O.createElement("div",{className:"mt20"},O.createElement(ue.Z,{className:"bg-white",style:{background:"#F6F7F9",height:331},option:g}),O.createElement("div",{className:"font14 mt10 text-center"},"\u56FE",o*2,"\xA0\xA0",I==null?void 0:I.name,"\u5404\u5C0F\u9898\u5F97\u5206\u7387")))})},83312:function(Qt,He,p){"use strict";p.d(He,{U:function(){return o}});var O=p(59301),U=Object.defineProperty,ee=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,m=(I,k,g)=>k in I?U(I,k,{enumerable:!0,configurable:!0,writable:!0,value:g}):I[k]=g,w=(I,k)=>{for(var g in k||(k={}))ue.call(k,g)&&m(I,g,k[g]);if(ee)for(var g of ee(k))A.call(k,g)&&m(I,g,k[g]);return I},ne=(I,k,g)=>new Promise((_,S)=>{var T=z=>{try{ie(g.next(z))}catch($){S($)}},N=z=>{try{ie(g.throw(z))}catch($){S($)}},ie=z=>z.done?_(z.value):Promise.resolve(z.value).then(T,N);ie((g=g.apply(I,k)).next())});function o(I,k){const[g,_]=(0,O.useState)(k),[S,T]=(0,O.useState)(!1),[N,ie]=(0,O.useState)();return[g,S,($,G=!1)=>ne(this,null,function*(){const Q=G?k:w(w({},g),$);T(!0),_(Q);const L=yield I(Q);return T(!1),ie(L),L}),N,ie]}},24768:function(Qt,He,p){"use strict";p.d(He,{AL:function(){return Q},Iy:function(){return k},Qv:function(){return S},ez:function(){return G},jb:function(){return g}});var O=p(32834),U=p.n(O),ee=p(11690),ue=p.n(ee);let A=1;function m(xe,Ce){const Se=xe.match(/^(\s+)(?:```)/);if(Se===null)return Ce;const ge=Se[1];return Ce.split(`
|
|
|
`).map(de=>{const W=de.match(/^\s+/);if(W===null)return de;const[be]=W;return be.length>=ge.length?de.slice(ge.length):de}).join(`
|
|
|
`)}let w=[],ne=["<ul>"];const o=new(U()).Renderer,I=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function k(){w.length=0,ne=["<ul>"]}const g={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(xe,Ce,Se,ge){if(Ce>=xe.length||xe[Ce].level<=Se)return Ce;var de=xe[Ce];ge.push("<li><a href='#"+A+de.anchor+"'>"+de.text+"</a>"),Ce++;var W=[];return Ce=_(xe,Ce,de.level,W),W.length>0&&(ge.push("<ul>"),W.forEach(function(be){ge.push(be)}),ge.push("</ul>")),ge.push("</li>"),Ce=_(xe,Ce,Se,ge),Ce}function S(){return _(w,0,0,ne),ne.push("</ul>"),ne.join("")}const T={heading(xe){const Ce=I.exec(xe);if(A+=1,Ce)return{type:"heading",raw:Ce[0],depth:Ce[1].length,text:Ce[2]}},fences(xe){const Ce=this.rules.block.fences.exec(xe);if(Ce){const Se=Ce[0];let ge=m(Se,Ce[3]||"");const de=Ce[2]?Ce[2].trim():Ce[2];if(["latex","katex","math"].indexOf(de)>=0){const W=z(),be=ge;ge=W,$[W]={type:"block",expression:be}}return{type:"code",raw:Se,lang:de,text:ge}}}},N=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ie=0;const z=()=>`__special_katext_id_${ie++}__`;let $={};function G(){return $}function Q(){ie=0,$={}}function L(xe){return xe=xe.replace(N,(Ce,Se)=>{const ge=z();return $[ge]={type:"inline",expression:Se},ge}),xe}const D=o.listitem;o.listitem=function(xe){return D(L(xe))};const Y=o.paragraph;o.paragraph=function(xe){return Y(L(xe))};const j=o.tablecell;o.tablecell=function(xe,Ce){return j(L(xe),Ce)},o.code=function(xe,Ce,Se){const ge=(Ce||"").match(/\S*/)[0];return ge?["latex","katex","math"].indexOf(ge)>=0?`<p class='editormd-tex'>${xe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ce}">${Se?xe:(0,ee.escape)(xe,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Se?xe:(0,ee.escape)(xe,!0))+"</code></pre>"},o.heading=function(xe,Ce,Se){let ge=this.options.headerPrefix+Se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return w.push({anchor:ge,level:Ce,text:xe}),"<h"+Ce+' id="'+A+ge+'">'+xe+"</h"+Ce+">"},U().setOptions({silent:!0,gfm:!0,pedantic:!1}),U().use({tokenizer:T,renderer:o}),He.ZP=U()},36785:function(Qt,He,p){"use strict";p.d(He,{o2:function(){return A},yT:function(){return m}});var O=p(80702),U=p(33166);const ee=U.i.map(w=>`${w}-inverse`),ue=["success","processing","error","default","warning"];function A(w){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,O.Z)(ee),(0,O.Z)(U.i)).includes(w):U.i.includes(w)}function m(w){return ue.includes(w)}},50371:function(Qt,He){"use strict";function p(){const O=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let U=1;U<arguments.length;U++){const ee=U<0||arguments.length<=U?void 0:arguments[U];ee&&Object.keys(ee).forEach(ue=>{const A=ee[ue];A!==void 0&&(O[ue]=A)})}return O}He.Z=p},13845:function(Qt,He,p){"use strict";p.d(He,{F:function(){return O},Z:function(){return U}});function O(ee){return ee!=null&&ee===ee.window}function U(ee,ue){var A,m;if(typeof window=="undefined")return 0;const w=ue?"scrollTop":"scrollLeft";let ne=0;return O(ee)?ne=ee[ue?"pageYOffset":"pageXOffset"]:ee instanceof Document?ne=ee.documentElement[w]:(ee instanceof HTMLElement||ee)&&(ne=ee[w]),ee&&!O(ee)&&typeof ne!="number"&&(ne=(m=((A=ee.ownerDocument)!==null&&A!==void 0?A:ee).documentElement)===null||m===void 0?void 0:m[w]),ne}},56762:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return U}});var O=p(59301);function U(){const[,ee]=O.useReducer(ue=>ue+1,0);return ee}},79676:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return m}});var O=p(19447);function U(w,ne,o,I){if(I===!1)return{adjustX:!1,adjustY:!1};const k=I&&typeof I=="object"?I:{},g={};switch(w){case"top":case"bottom":g.shiftX=ne.dropdownArrowOffset*2+o;break;case"left":case"right":g.shiftY=ne.dropdownArrowOffsetVertical*2+o;break}const _=Object.assign(Object.assign({},g),k);return _.shiftX||(_.adjustX=!0),_.shiftY||(_.adjustY=!0),_}const ee={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"]}},ue={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"]}},A=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function m(w){const{arrowWidth:ne,autoAdjustOverflow:o,arrowPointAtCenter:I,offset:k,borderRadius:g,visibleFirst:_}=w,S=ne/2,T={};return Object.keys(ee).forEach(N=>{const ie=I&&ue[N]||ee[N],z=Object.assign(Object.assign({},ie),{offset:[0,0]});switch(T[N]=z,A.has(N)&&(z.autoArrow=!1),N){case"top":case"topLeft":case"topRight":z.offset[1]=-S-k;break;case"bottom":case"bottomLeft":case"bottomRight":z.offset[1]=S+k;break;case"left":case"leftTop":case"leftBottom":z.offset[0]=-S-k;break;case"right":case"rightTop":case"rightBottom":z.offset[0]=S+k;break}const $=(0,O.fS)({contentRadius:g,limitVerticalRadius:!0});if(I)switch(N){case"topLeft":case"bottomLeft":z.offset[0]=-$.dropdownArrowOffset-S;break;case"topRight":case"bottomRight":z.offset[0]=$.dropdownArrowOffset+S;break;case"leftTop":case"rightTop":z.offset[1]=-$.dropdownArrowOffset-S;break;case"leftBottom":case"rightBottom":z.offset[1]=$.dropdownArrowOffset+S;break}z.overflow=U(N,$,ne,o),_&&(z.htmlRegion="visibleFirst")}),T}},68031:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ue}});var O=p(16089);function U(A,m,w,ne){const o=w-m;return A/=ne/2,A<1?o/2*A*A*A+m:o/2*((A-=2)*A*A+2)+m}var ee=p(13845);function ue(A){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:w=()=>window,callback:ne,duration:o=450}=m,I=w(),k=(0,ee.Z)(I,!0),g=Date.now(),_=()=>{const T=Date.now()-g,N=U(T>o?o:T,k,A,o);(0,ee.F)(I)?I.scrollTo(window.pageXOffset,N):I instanceof Document||I.constructor.name==="HTMLDocument"?I.documentElement.scrollTop=N:I.scrollTop=N,T<o?(0,O.Z)(_):typeof ne=="function"&&ne()};(0,O.Z)(_)}},19080:function(Qt,He,p){"use strict";p.d(He,{F:function(){return A},Z:function(){return ue}});var O=p(92310),U=p.n(O);const ee=null;function ue(m,w,ne){return U()({[`${m}-status-success`]:w==="success",[`${m}-status-warning`]:w==="warning",[`${m}-status-error`]:w==="error",[`${m}-status-validating`]:w==="validating",[`${m}-has-feedback`]:ne})}const A=(m,w)=>w||m},66104:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return be}});var O=p(92310),U=p.n(O),ee=p(11592),ue=p(26112),A=p(59301),m=p(92343),w=p(36355),ne=p(84105),o=p(91857);const I=F=>{let{children:ce}=F;const{getPrefixCls:q}=A.useContext(w.E_),y=q("breadcrumb");return A.createElement("li",{className:`${y}-separator`,"aria-hidden":"true"},ce===""?ce:ce||"/")};I.__ANT_BREADCRUMB_SEPARATOR=!0;var k=I,g=function(F,ce){var q={};for(var y in F)Object.prototype.hasOwnProperty.call(F,y)&&ce.indexOf(y)<0&&(q[y]=F[y]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(F);x<y.length;x++)ce.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(F,y[x])&&(q[y[x]]=F[y[x]]);return q};function _(F,ce){if(F.title===void 0||F.title===null)return null;const q=Object.keys(ce).join("|");return typeof F.title=="object"?F.title:String(F.title).replace(new RegExp(`:(${q})`,"g"),(y,x)=>ce[x]||y)}function S(F,ce,q,y){if(q==null)return null;const{className:x,onClick:Z}=ce,me=g(ce,["className","onClick"]),Ne=Object.assign(Object.assign({},(0,ue.Z)(me,{data:!0,aria:!0})),{onClick:Z});return y!==void 0?A.createElement("a",Object.assign({},Ne,{className:U()(`${F}-link`,x),href:y}),q):A.createElement("span",Object.assign({},Ne,{className:U()(`${F}-link`,x)}),q)}function T(F,ce){return(y,x,Z,me,Ne)=>{if(ce)return ce(y,x,Z,me);const Ue=_(y,x);return S(F,y,Ue,Ne)}}var N=function(F,ce){var q={};for(var y in F)Object.prototype.hasOwnProperty.call(F,y)&&ce.indexOf(y)<0&&(q[y]=F[y]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(F);x<y.length;x++)ce.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(F,y[x])&&(q[y[x]]=F[y[x]]);return q};const ie=F=>{const{prefixCls:ce,separator:q="/",children:y,menu:x,overlay:Z,dropdownProps:me,href:Ne}=F,ze=(et=>{if(x||Z){const pt=Object.assign({},me);if(x){const gt=x||{},{items:at}=gt,Ot=N(gt,["items"]);pt.menu=Object.assign(Object.assign({},Ot),{items:at==null?void 0:at.map((en,Rt)=>{var{key:Zt,title:ut,label:Ct,path:he}=en,pe=N(en,["key","title","label","path"]);let le=Ct!=null?Ct:ut;return he&&(le=A.createElement("a",{href:`${Ne}${he}`},le)),Object.assign(Object.assign({},pe),{key:Zt!=null?Zt:Rt,label:le})})})}else Z&&(pt.overlay=Z);return A.createElement(o.Z,Object.assign({placement:"bottom"},pt),A.createElement("span",{className:`${ce}-overlay-link`},et,A.createElement(ne.Z,null)))}return et})(y);return ze!=null?A.createElement(A.Fragment,null,A.createElement("li",null,ze),q&&A.createElement(k,null,q)):null},z=F=>{const{prefixCls:ce,children:q,href:y}=F,x=N(F,["prefixCls","children","href"]),{getPrefixCls:Z}=A.useContext(w.E_),me=Z("breadcrumb",ce);return A.createElement(ie,Object.assign({},x,{prefixCls:me}),S(me,x,q,y))};z.__ANT_BREADCRUMB_ITEM=!0;var $=z,G=p(17313),Q=p(83116),L=p(37613);const D=F=>{const{componentCls:ce,iconCls:q}=F;return{[ce]:Object.assign(Object.assign({},(0,G.Wf)(F)),{color:F.itemColor,fontSize:F.fontSize,[q]:{fontSize:F.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:F.linkColor,transition:`color ${F.motionDurationMid}`,padding:`0 ${F.paddingXXS}px`,borderRadius:F.borderRadiusSM,height:F.lineHeight*F.fontSize,display:"inline-block",marginInline:-F.marginXXS,"&:hover":{color:F.linkHoverColor,backgroundColor:F.colorBgTextHover}},(0,G.Qy)(F)),"li:last-child":{color:F.lastItemColor},[`${ce}-separator`]:{marginInline:F.separatorMargin,color:F.separatorColor},[`${ce}-link`]:{[`
|
|
|
> ${q} + span,
|
|
|
> ${q} + a
|
|
|
`]:{marginInlineStart:F.marginXXS}},[`${ce}-overlay-link`]:{borderRadius:F.borderRadiusSM,height:F.lineHeight*F.fontSize,display:"inline-block",padding:`0 ${F.paddingXXS}px`,marginInline:-F.marginXXS,[`> ${q}`]:{marginInlineStart:F.marginXXS,fontSize:F.fontSizeIcon},"&:hover":{color:F.linkHoverColor,backgroundColor:F.colorBgTextHover,a:{color:F.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${F.componentCls}-rtl`]:{direction:"rtl"}})}};var Y=(0,Q.Z)("Breadcrumb",F=>{const ce=(0,L.TS)(F,{});return[D(ce)]},F=>({itemColor:F.colorTextDescription,lastItemColor:F.colorText,iconFontSize:F.fontSize,linkColor:F.colorTextDescription,linkHoverColor:F.colorText,separatorColor:F.colorTextDescription,separatorMargin:F.marginXS})),j=function(F,ce){var q={};for(var y in F)Object.prototype.hasOwnProperty.call(F,y)&&ce.indexOf(y)<0&&(q[y]=F[y]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(F);x<y.length;x++)ce.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(F,y[x])&&(q[y[x]]=F[y[x]]);return q};function xe(F){const{breadcrumbName:ce,children:q}=F,y=j(F,["breadcrumbName","children"]),x=Object.assign({title:ce},y);return q&&(x.menu={items:q.map(Z=>{var{breadcrumbName:me}=Z,Ne=j(Z,["breadcrumbName"]);return Object.assign(Object.assign({},Ne),{title:me})})}),x}function Ce(F,ce){return(0,A.useMemo)(()=>F||(ce?ce.map(xe):null),[F,ce])}var Se=function(F,ce){var q={};for(var y in F)Object.prototype.hasOwnProperty.call(F,y)&&ce.indexOf(y)<0&&(q[y]=F[y]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(F);x<y.length;x++)ce.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(F,y[x])&&(q[y[x]]=F[y[x]]);return q};const ge=(F,ce)=>{if(ce===void 0)return ce;let q=(ce||"").replace(/^\//,"");return Object.keys(F).forEach(y=>{q=q.replace(`:${y}`,F[y])}),q},de=F=>{const{prefixCls:ce,separator:q="/",style:y,className:x,rootClassName:Z,routes:me,items:Ne,children:Ue,itemRender:ze,params:et={}}=F,pt=Se(F,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:gt,direction:at,breadcrumb:Ot}=A.useContext(w.E_);let en;const Rt=gt("breadcrumb",ce),[Zt,ut]=Y(Rt),Ct=Ce(Ne,me),he=T(Rt,ze);if(Ct&&Ct.length>0){const J=[],Ie=Ne||me;en=Ct.map((H,R)=>{const{path:P,key:fe,type:oe,menu:te,overlay:Ae,onClick:je,className:ke,separator:Be,dropdownProps:qe}=H,Qe=ge(et,P);Qe!==void 0&&J.push(Qe);const Ve=fe!=null?fe:R;if(oe==="separator")return A.createElement(k,{key:Ve},Be);const xt={},Dt=R===Ct.length-1;te?xt.menu=te:Ae&&(xt.overlay=Ae);let{href:vt}=H;return J.length&&Qe!==void 0&&(vt=`#/${J.join("/")}`),A.createElement(ie,Object.assign({key:Ve},xt,(0,ue.Z)(H,{data:!0,aria:!0}),{className:ke,dropdownProps:qe,href:vt,separator:Dt?"":q,onClick:je,prefixCls:Rt}),he(H,et,Ie,J,vt))})}else if(Ue){const J=(0,ee.Z)(Ue).length;en=(0,ee.Z)(Ue).map((Ie,H)=>{if(!Ie)return Ie;const R=H===J-1;return(0,m.Tm)(Ie,{separator:R?"":q,key:H})})}const pe=U()(Rt,Ot==null?void 0:Ot.className,{[`${Rt}-rtl`]:at==="rtl"},x,Z,ut),le=Object.assign(Object.assign({},Ot==null?void 0:Ot.style),y);return Zt(A.createElement("nav",Object.assign({className:pe,style:le},pt),A.createElement("ol",null,en)))};de.Item=$,de.Separator=k;var W=de,be=W},24905:function(Qt,He,p){"use strict";p.d(He,{default:function(){return Y}});var O=p(92310),U=p.n(O),ee=p(5630),ue=p(59301),A=p(36355),m=p(1684),w=p(32441),o=ue.createContext(null),I=p(98447),k=p(14088),g=p(4572),_=function(j,xe){var Ce={};for(var Se in j)Object.prototype.hasOwnProperty.call(j,Se)&&xe.indexOf(Se)<0&&(Ce[Se]=j[Se]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Se=Object.getOwnPropertySymbols(j);ge<Se.length;ge++)xe.indexOf(Se[ge])<0&&Object.prototype.propertyIsEnumerable.call(j,Se[ge])&&(Ce[Se[ge]]=j[Se[ge]]);return Ce};const S=(j,xe)=>{var Ce;const{prefixCls:Se,className:ge,rootClassName:de,children:W,indeterminate:be=!1,style:F,onMouseEnter:ce,onMouseLeave:q,skipGroup:y=!1,disabled:x}=j,Z=_(j,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:me,direction:Ne,checkbox:Ue}=ue.useContext(A.E_),ze=ue.useContext(o),{isFormItemInput:et}=ue.useContext(w.aM),pt=ue.useContext(m.Z),gt=(Ce=(ze==null?void 0:ze.disabled)||x)!==null&&Ce!==void 0?Ce:pt,at=ue.useRef(Z.value);ue.useEffect(()=>{ze==null||ze.registerValue(Z.value)},[]),ue.useEffect(()=>{if(!y)return Z.value!==at.current&&(ze==null||ze.cancelValue(at.current),ze==null||ze.registerValue(Z.value),at.current=Z.value),()=>ze==null?void 0:ze.cancelValue(Z.value)},[Z.value]);const Ot=me("checkbox",Se),[en,Rt]=(0,I.ZP)(Ot),Zt=Object.assign({},Z);ze&&!y&&(Zt.onChange=function(){Z.onChange&&Z.onChange.apply(Z,arguments),ze.toggleOption&&ze.toggleOption({label:W,value:Z.value})},Zt.name=ze.name,Zt.checked=ze.value.includes(Z.value));const ut=U()(`${Ot}-wrapper`,{[`${Ot}-rtl`]:Ne==="rtl",[`${Ot}-wrapper-checked`]:Zt.checked,[`${Ot}-wrapper-disabled`]:gt,[`${Ot}-wrapper-in-form-item`]:et},Ue==null?void 0:Ue.className,ge,de,Rt),Ct=U()({[`${Ot}-indeterminate`]:be},g.A,Rt),he=be?"mixed":void 0;return en(ue.createElement(k.Z,{component:"Checkbox",disabled:gt},ue.createElement("label",{className:ut,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),F),onMouseEnter:ce,onMouseLeave:q},ue.createElement(ee.Z,Object.assign({"aria-checked":he},Zt,{prefixCls:Ot,className:Ct,disabled:gt,ref:xe})),W!==void 0&&ue.createElement("span",null,W))))};var N=ue.forwardRef(S),ie=p(80702),z=p(2738),$=function(j,xe){var Ce={};for(var Se in j)Object.prototype.hasOwnProperty.call(j,Se)&&xe.indexOf(Se)<0&&(Ce[Se]=j[Se]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Se=Object.getOwnPropertySymbols(j);ge<Se.length;ge++)xe.indexOf(Se[ge])<0&&Object.prototype.propertyIsEnumerable.call(j,Se[ge])&&(Ce[Se[ge]]=j[Se[ge]]);return Ce};const G=(j,xe)=>{const{defaultValue:Ce,children:Se,options:ge=[],prefixCls:de,className:W,rootClassName:be,style:F,onChange:ce}=j,q=$(j,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:x}=ue.useContext(A.E_),[Z,me]=ue.useState(q.value||Ce||[]),[Ne,Ue]=ue.useState([]);ue.useEffect(()=>{"value"in q&&me(q.value||[])},[q.value]);const ze=ue.useMemo(()=>ge.map(pe=>typeof pe=="string"||typeof pe=="number"?{label:pe,value:pe}:pe),[ge]),et=pe=>{Ue(le=>le.filter(J=>J!==pe))},pt=pe=>{Ue(le=>[].concat((0,ie.Z)(le),[pe]))},gt=pe=>{const le=Z.indexOf(pe.value),J=(0,ie.Z)(Z);le===-1?J.push(pe.value):J.splice(le,1),"value"in q||me(J),ce==null||ce(J.filter(Ie=>Ne.includes(Ie)).sort((Ie,H)=>{const R=ze.findIndex(fe=>fe.value===Ie),P=ze.findIndex(fe=>fe.value===H);return R-P}))},at=y("checkbox",de),Ot=`${at}-group`,[en,Rt]=(0,I.ZP)(at),Zt=(0,z.Z)(q,["value","disabled"]),ut=ge.length?ze.map(pe=>ue.createElement(N,{prefixCls:at,key:pe.value.toString(),disabled:"disabled"in pe?pe.disabled:q.disabled,value:pe.value,checked:Z.includes(pe.value),onChange:pe.onChange,className:`${Ot}-item`,style:pe.style,title:pe.title},pe.label)):Se,Ct={toggleOption:gt,value:Z,disabled:q.disabled,name:q.name,registerValue:pt,cancelValue:et},he=U()(Ot,{[`${Ot}-rtl`]:x==="rtl"},W,be,Rt);return en(ue.createElement("div",Object.assign({className:he,style:F},Zt,{ref:xe}),ue.createElement(o.Provider,{value:Ct},ut)))},Q=ue.forwardRef(G);var L=ue.memo(Q);const D=N;D.Group=L,D.__ANT_CHECKBOX=!0;var Y=D},98447:function(Qt,He,p){"use strict";p.d(He,{C2:function(){return A}});var O=p(17313),U=p(37613),ee=p(83116);const ue=m=>{const{checkboxCls:w}=m,ne=`${w}-wrapper`;return[{[`${w}-group`]:Object.assign(Object.assign({},(0,O.Wf)(m)),{display:"inline-flex",flexWrap:"wrap",columnGap:m.marginXS,[`> ${m.antCls}-row`]:{flex:1}}),[ne]:Object.assign(Object.assign({},(0,O.Wf)(m)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ne}`]:{marginInlineStart:0},[`&${ne}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[w]:Object.assign(Object.assign({},(0,O.Wf)(m)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:m.borderRadiusSM,alignSelf:"center",[`${w}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${w}-inner`]:Object.assign({},(0,O.oN)(m))},[`${w}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:m.checkboxSize,height:m.checkboxSize,direction:"ltr",backgroundColor:m.colorBgContainer,border:`${m.lineWidth}px ${m.lineType} ${m.colorBorder}`,borderRadius:m.borderRadiusSM,borderCollapse:"separate",transition:`all ${m.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:m.checkboxSize/14*5,height:m.checkboxSize/14*8,border:`${m.lineWidthBold}px solid ${m.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${m.motionDurationFast} ${m.motionEaseInBack}, opacity ${m.motionDurationFast}`}},"& + span":{paddingInlineStart:m.paddingXS,paddingInlineEnd:m.paddingXS}})},{[`
|
|
|
${ne}:not(${ne}-disabled),
|
|
|
${w}:not(${w}-disabled)
|
|
|
`]:{[`&:hover ${w}-inner`]:{borderColor:m.colorPrimary}},[`${ne}:not(${ne}-disabled)`]:{[`&:hover ${w}-checked:not(${w}-disabled) ${w}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${w}-checked:not(${w}-disabled):after`]:{borderColor:m.colorPrimaryHover}}},{[`${w}-checked`]:{[`${w}-inner`]:{backgroundColor:m.colorPrimary,borderColor:m.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${m.motionDurationMid} ${m.motionEaseOutBack} ${m.motionDurationFast}`}}},[`
|
|
|
${ne}-checked:not(${ne}-disabled),
|
|
|
${w}-checked:not(${w}-disabled)
|
|
|
`]:{[`&:hover ${w}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"}}},{[w]:{"&-indeterminate":{[`${w}-inner`]:{backgroundColor:m.colorBgContainer,borderColor:m.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:m.fontSizeLG/2,height:m.fontSizeLG/2,backgroundColor:m.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ne}-disabled`]:{cursor:"not-allowed"},[`${w}-disabled`]:{[`&, ${w}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${w}-inner`]:{background:m.colorBgContainerDisabled,borderColor:m.colorBorder,"&:after":{borderColor:m.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:m.colorTextDisabled},[`&${w}-indeterminate ${w}-inner::after`]:{background:m.colorTextDisabled}}}]};function A(m,w){const ne=(0,U.TS)(w,{checkboxCls:`.${m}`,checkboxSize:w.controlInteractiveSize});return[ue(ne)]}He.ZP=(0,ee.Z)("Checkbox",(m,w)=>{let{prefixCls:ne}=w;return[A(ne,m)]})},93891:function(Qt,He,p){"use strict";var O=p(59301),U=p(36355),ee=p(64165);const ue=A=>{const{componentName:m}=A,{getPrefixCls:w}=(0,O.useContext)(U.E_),ne=w("empty");switch(m){case"Table":case"List":return O.createElement(ee.Z,{image:ee.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return O.createElement(ee.Z,{image:ee.Z.PRESENTED_IMAGE_SIMPLE,className:`${ne}-small`});default:return O.createElement(ee.Z,null)}};He.Z=ue},91857:function(Qt,He,p){"use strict";var O=p(59301),U=p(38819),ee=p(92310),ue=p.n(ee),A=p(31561),m=p(70425),w=p(18929),ne=p(2738),o=p(79676),I=p(53487),k=p(92343),g=p(36355),_=p(20834),S=p(40875),T=p(88088),N=p(47211);const ie=null,z=L=>{const{menu:D,arrow:Y,prefixCls:j,children:xe,trigger:Ce,disabled:Se,dropdownRender:ge,getPopupContainer:de,overlayClassName:W,rootClassName:be,open:F,onOpenChange:ce,visible:q,onVisibleChange:y,mouseEnterDelay:x=.15,mouseLeaveDelay:Z=.1,autoAdjustOverflow:me=!0,placement:Ne="",overlay:Ue,transitionName:ze}=L,{getPopupContainer:et,getPrefixCls:pt,direction:gt}=O.useContext(g.E_),at=O.useMemo(()=>{const te=pt();return ze!==void 0?ze:Ne.includes("top")?`${te}-slide-down`:`${te}-slide-up`},[pt,Ne,ze]),Ot=O.useMemo(()=>Ne?Ne.includes("Center")?Ne.slice(0,Ne.indexOf("Center")):Ne:gt==="rtl"?"bottomRight":"bottomLeft",[Ne,gt]),en=pt("dropdown",j),[Rt,Zt]=(0,N.Z)(en),[,ut]=(0,T.Z)(),Ct=O.Children.only(xe),he=(0,k.Tm)(Ct,{className:ue()(`${en}-trigger`,{[`${en}-rtl`]:gt==="rtl"},Ct.props.className),disabled:Se}),pe=Se?[]:Ce;let le;pe&&pe.includes("contextMenu")&&(le=!0);const[J,Ie]=(0,w.Z)(!1,{value:F!=null?F:q}),H=(0,m.useEvent)(te=>{ce==null||ce(te),y==null||y(te),Ie(te)}),R=ue()(W,be,Zt,{[`${en}-rtl`]:gt==="rtl"}),P=(0,o.Z)({arrowPointAtCenter:typeof Y=="object"&&Y.pointAtCenter,autoAdjustOverflow:me,offset:ut.marginXXS,arrowWidth:Y?ut.sizePopupArrow:0,borderRadius:ut.borderRadius}),fe=O.useCallback(()=>{Ie(!1)},[]),oe=()=>{let te;return D!=null&&D.items?te=O.createElement(_.default,Object.assign({},D)):typeof Ue=="function"?te=Ue():te=Ue,ge&&(te=ge(te)),te=O.Children.only(typeof te=="string"?O.createElement("span",null,te):te),O.createElement(S.J,{prefixCls:`${en}-menu`,expandIcon:O.createElement("span",{className:`${en}-menu-submenu-arrow`},O.createElement(U.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:fe,validator:Ae=>{let{mode:je}=Ae}},te)};return Rt(O.createElement(A.Z,Object.assign({alignPoint:le},(0,ne.Z)(L,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:Z,visible:J,builtinPlacements:P,arrow:!!Y,overlayClassName:R,prefixCls:en,getPopupContainer:de||et,transitionName:at,trigger:pe,overlay:oe,placement:Ot,onVisibleChange:H}),he))};function $(L){return Object.assign(Object.assign({},L),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const G=(0,I.Z)(z,"dropdown",L=>L,$),Q=L=>O.createElement(G,Object.assign({},L),O.createElement("span",null));z._InternalPanelDoNotUseOrYouWillBeFired=Q,He.Z=z},38854:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return T}});var O=p(91857),U=p(92310),ee=p.n(U),ue=p(59301),A=p(18785),m=p(3113),w=p(36355),ne=p(81327),o=p(33234),I=p(47211),k=function(N,ie){var z={};for(var $ in N)Object.prototype.hasOwnProperty.call(N,$)&&ie.indexOf($)<0&&(z[$]=N[$]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,$=Object.getOwnPropertySymbols(N);G<$.length;G++)ie.indexOf($[G])<0&&Object.prototype.propertyIsEnumerable.call(N,$[G])&&(z[$[G]]=N[$[G]]);return z};const g=N=>{const{getPopupContainer:ie,getPrefixCls:z,direction:$}=ue.useContext(w.E_),{prefixCls:G,type:Q="default",danger:L,disabled:D,loading:Y,onClick:j,htmlType:xe,children:Ce,className:Se,menu:ge,arrow:de,autoFocus:W,overlay:be,trigger:F,align:ce,open:q,onOpenChange:y,placement:x,getPopupContainer:Z,href:me,icon:Ne=ue.createElement(A.Z,null),title:Ue,buttonsRender:ze=oe=>oe,mouseEnterDelay:et,mouseLeaveDelay:pt,overlayClassName:gt,overlayStyle:at,destroyPopupOnHide:Ot,dropdownRender:en}=N,Rt=k(N,["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"]),Zt=z("dropdown",G),ut=`${Zt}-button`,[Ct,he]=(0,I.Z)(Zt),pe={menu:ge,arrow:de,autoFocus:W,align:ce,disabled:D,trigger:D?[]:F,onOpenChange:y,getPopupContainer:Z||ie,mouseEnterDelay:et,mouseLeaveDelay:pt,overlayClassName:gt,overlayStyle:at,destroyPopupOnHide:Ot,dropdownRender:en},{compactSize:le,compactItemClassnames:J}=(0,o.ri)(Zt,$),Ie=ee()(ut,J,Se,he);"overlay"in N&&(pe.overlay=be),"open"in N&&(pe.open=q),"placement"in N?pe.placement=x:pe.placement=$==="rtl"?"bottomLeft":"bottomRight";const H=ue.createElement(m.ZP,{type:Q,danger:L,disabled:D,loading:Y,onClick:j,htmlType:xe,href:me,title:Ue},Ce),R=ue.createElement(m.ZP,{type:Q,danger:L,icon:Ne}),[P,fe]=ze([H,R]);return Ct(ue.createElement(ne.Z.Compact,Object.assign({className:Ie,size:le,block:!0},Rt),P,ue.createElement(O.Z,Object.assign({},pe),fe)))};g.__ANT_BUTTON=!0;var _=g;const S=O.Z;S.Button=_;var T=S},47211:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return k}});var O=p(17313),U=p(13826),ee=p(92899),ue=p(29878),A=p(19447),m=p(83116),w=p(37613),o=g=>{const{componentCls:_,menuCls:S,colorError:T,colorTextLightSolid:N}=g,ie=`${S}-item`;return{[`${_}, ${_}-menu-submenu`]:{[`${S} ${ie}`]:{[`&${ie}-danger:not(${ie}-disabled)`]:{color:T,"&:hover":{color:N,backgroundColor:T}}}}}};const I=g=>{const{componentCls:_,menuCls:S,zIndexPopup:T,dropdownArrowDistance:N,sizePopupArrow:ie,antCls:z,iconCls:$,motionDurationMid:G,dropdownPaddingVertical:Q,fontSize:L,dropdownEdgeChildPadding:D,colorTextDisabled:Y,fontSizeIcon:j,controlPaddingHorizontal:xe,colorBgElevated:Ce}=g;return[{[_]:Object.assign(Object.assign({},(0,O.Wf)(g)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,display:"block","&::before":{position:"absolute",insetBlock:-N+ie/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${z}-btn`]:{[`& > ${$}-down, & > ${z}-btn-icon > ${$}-down`]:{fontSize:j}},[`${_}-wrap`]:{position:"relative",[`${z}-btn > ${$}-down`]:{fontSize:j},[`${$}-down::before`]:{transition:`transform ${G}`}},[`${_}-wrap-open`]:{[`${$}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${z}-slide-down-enter${z}-slide-down-enter-active${_}-placement-bottomLeft,
|
|
|
&${z}-slide-down-appear${z}-slide-down-appear-active${_}-placement-bottomLeft,
|
|
|
&${z}-slide-down-enter${z}-slide-down-enter-active${_}-placement-bottom,
|
|
|
&${z}-slide-down-appear${z}-slide-down-appear-active${_}-placement-bottom,
|
|
|
&${z}-slide-down-enter${z}-slide-down-enter-active${_}-placement-bottomRight,
|
|
|
&${z}-slide-down-appear${z}-slide-down-appear-active${_}-placement-bottomRight`]:{animationName:U.fJ},[`&${z}-slide-up-enter${z}-slide-up-enter-active${_}-placement-topLeft,
|
|
|
&${z}-slide-up-appear${z}-slide-up-appear-active${_}-placement-topLeft,
|
|
|
&${z}-slide-up-enter${z}-slide-up-enter-active${_}-placement-top,
|
|
|
&${z}-slide-up-appear${z}-slide-up-appear-active${_}-placement-top,
|
|
|
&${z}-slide-up-enter${z}-slide-up-enter-active${_}-placement-topRight,
|
|
|
&${z}-slide-up-appear${z}-slide-up-appear-active${_}-placement-topRight`]:{animationName:U.Qt},[`&${z}-slide-down-leave${z}-slide-down-leave-active${_}-placement-bottomLeft,
|
|
|
&${z}-slide-down-leave${z}-slide-down-leave-active${_}-placement-bottom,
|
|
|
&${z}-slide-down-leave${z}-slide-down-leave-active${_}-placement-bottomRight`]:{animationName:U.Uw},[`&${z}-slide-up-leave${z}-slide-up-leave-active${_}-placement-topLeft,
|
|
|
&${z}-slide-up-leave${z}-slide-up-leave-active${_}-placement-top,
|
|
|
&${z}-slide-up-leave${z}-slide-up-leave-active${_}-placement-topRight`]:{animationName:U.ly}})},(0,A.ZP)(g,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${_} ${S}`]:{position:"relative",margin:0},[`${S}-submenu-popup`]:{position:"absolute",zIndex:T,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_}, ${_}-menu-submenu`]:{[S]:Object.assign(Object.assign({padding:D,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:g.borderRadiusLG,outline:"none",boxShadow:g.boxShadowSecondary},(0,O.Qy)(g)),{[`${S}-item-group-title`]:{padding:`${Q}px ${xe}px`,color:g.colorTextDescription,transition:`all ${G}`},[`${S}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${S}-item-icon`]:{minWidth:L,marginInlineEnd:g.marginXS,fontSize:g.fontSizeSM},[`${S}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${G}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${S}-item, ${S}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Q}px ${xe}px`,color:g.colorText,fontWeight:"normal",fontSize:L,lineHeight:g.lineHeight,cursor:"pointer",transition:`all ${G}`,borderRadius:g.borderRadiusSM,"&:hover, &-active":{backgroundColor:g.controlItemBgHover}},(0,O.Qy)(g)),{"&-selected":{color:g.colorPrimary,backgroundColor:g.controlItemBgActive,"&:hover, &-active":{backgroundColor:g.controlItemBgActiveHover}},"&-disabled":{color:Y,cursor:"not-allowed","&:hover":{color:Y,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${g.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:g.colorSplit},[`${_}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:g.paddingXS,[`${_}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:g.colorTextDescription,fontSize:j,fontStyle:"normal"}}}),[`${S}-item-group-list`]:{margin:`0 ${g.marginXS}px`,padding:0,listStyle:"none"},[`${S}-submenu-title`]:{paddingInlineEnd:xe+g.fontSizeSM},[`${S}-submenu-vertical`]:{position:"relative"},[`${S}-submenu${S}-submenu-disabled ${_}-menu-submenu-title`]:{[`&, ${_}-menu-submenu-arrow-icon`]:{color:Y,backgroundColor:Ce,cursor:"not-allowed"}},[`${S}-submenu-selected ${_}-menu-submenu-title`]:{color:g.colorPrimary}})}},[(0,U.oN)(g,"slide-up"),(0,U.oN)(g,"slide-down"),(0,ee.Fm)(g,"move-up"),(0,ee.Fm)(g,"move-down"),(0,ue._y)(g,"zoom-big")]]};var k=(0,m.Z)("Dropdown",(g,_)=>{let{rootPrefixCls:S}=_;const{marginXXS:T,sizePopupArrow:N,controlHeight:ie,fontSize:z,lineHeight:$,paddingXXS:G,componentCls:Q,borderRadiusLG:L}=g,D=(ie-z*$)/2,{dropdownArrowOffset:Y}=(0,A.fS)({contentRadius:L}),j=(0,w.TS)(g,{menuCls:`${Q}-menu`,rootPrefixCls:S,dropdownArrowDistance:N/2+T,dropdownArrowOffset:Y,dropdownPaddingVertical:D,dropdownEdgeChildPadding:G});return[I(j),o(j)]},g=>({zIndexPopup:g.zIndexPopupBase+50}))},64165:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return G}});var O=p(92310),U=p.n(O),ee=p(59301),ue=p(36355),A=p(9763),m=p(64993),w=p(88088),o=()=>{const[,Q]=(0,w.Z)(),D=new m.C(Q.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ee.createElement("svg",{style:D,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ee.createElement("g",{fill:"none",fillRule:"evenodd"},ee.createElement("g",{transform:"translate(24 31.67)"},ee.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ee.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"}),ee.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)"}),ee.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"}),ee.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"})),ee.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"}),ee.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ee.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ee.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},k=()=>{const[,Q]=(0,w.Z)(),{colorFill:L,colorFillTertiary:D,colorFillQuaternary:Y,colorBgContainer:j}=Q,{borderColor:xe,shadowColor:Ce,contentColor:Se}=(0,ee.useMemo)(()=>({borderColor:new m.C(L).onBackground(j).toHexShortString(),shadowColor:new m.C(D).onBackground(j).toHexShortString(),contentColor:new m.C(Y).onBackground(j).toHexShortString()}),[L,D,Y,j]);return ee.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ee.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ee.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),ee.createElement("g",{fillRule:"nonzero",stroke:xe},ee.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"}),ee.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:Se}))))},g=p(83116),_=p(37613);const S=Q=>{const{componentCls:L,margin:D,marginXS:Y,marginXL:j,fontSize:xe,lineHeight:Ce}=Q;return{[L]:{marginInline:Y,fontSize:xe,lineHeight:Ce,textAlign:"center",[`${L}-image`]:{height:Q.emptyImgHeight,marginBottom:Y,opacity:Q.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${L}-description`]:{color:Q.colorText},[`${L}-footer`]:{marginTop:D},"&-normal":{marginBlock:j,color:Q.colorTextDisabled,[`${L}-description`]:{color:Q.colorTextDisabled},[`${L}-image`]:{height:Q.emptyImgHeightMD}},"&-small":{marginBlock:Y,color:Q.colorTextDisabled,[`${L}-image`]:{height:Q.emptyImgHeightSM}}}}};var T=(0,g.Z)("Empty",Q=>{const{componentCls:L,controlHeightLG:D}=Q,Y=(0,_.TS)(Q,{emptyImgCls:`${L}-img`,emptyImgHeight:D*2.5,emptyImgHeightMD:D,emptyImgHeightSM:D*.875});return[S(Y)]}),N=function(Q,L){var D={};for(var Y in Q)Object.prototype.hasOwnProperty.call(Q,Y)&&L.indexOf(Y)<0&&(D[Y]=Q[Y]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,Y=Object.getOwnPropertySymbols(Q);j<Y.length;j++)L.indexOf(Y[j])<0&&Object.prototype.propertyIsEnumerable.call(Q,Y[j])&&(D[Y[j]]=Q[Y[j]]);return D};const ie=ee.createElement(o,null),z=ee.createElement(k,null),$=Q=>{var{className:L,rootClassName:D,prefixCls:Y,image:j=ie,description:xe,children:Ce,imageStyle:Se,style:ge}=Q,de=N(Q,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:W,direction:be,empty:F}=ee.useContext(ue.E_),ce=W("empty",Y),[q,y]=T(ce),[x]=(0,A.Z)("Empty"),Z=typeof xe!="undefined"?xe:x==null?void 0:x.description,me=typeof Z=="string"?Z:"empty";let Ne=null;return typeof j=="string"?Ne=ee.createElement("img",{alt:me,src:j}):Ne=j,q(ee.createElement("div",Object.assign({className:U()(y,ce,F==null?void 0:F.className,{[`${ce}-normal`]:j===z,[`${ce}-rtl`]:be==="rtl"},L,D),style:Object.assign(Object.assign({},F==null?void 0:F.style),ge)},de),ee.createElement("div",{className:`${ce}-image`,style:Se},Ne),Z&&ee.createElement("div",{className:`${ce}-description`},Z),Ce&&ee.createElement("div",{className:`${ce}-footer`},Ce)))};$.PRESENTED_IMAGE_DEFAULT=ie,$.PRESENTED_IMAGE_SIMPLE=z;var G=$},78241:function(Qt,He,p){"use strict";p.d(He,{default:function(){return wn}});var O=p(80702),U=p(92310),ee=p.n(U),ue=p(77900),A=p(59301),m=p(62892),w=p(32441);function ne(Xe){const[Lt,Wt]=A.useState(Xe);return A.useEffect(()=>{const Ke=setTimeout(()=>{Wt(Xe)},Xe.length?0:10);return()=>{clearTimeout(Ke)}},[Xe]),Lt}var o=p(17313),I=p(29878),k=p(8378),g=p(37613),_=p(83116),T=Xe=>{const{componentCls:Lt}=Xe,Wt=`${Lt}-show-help`,Ke=`${Lt}-show-help-item`;return{[Wt]:{transition:`opacity ${Xe.motionDurationSlow} ${Xe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ke]:{overflow:"hidden",transition:`height ${Xe.motionDurationSlow} ${Xe.motionEaseInOut},
|
|
|
opacity ${Xe.motionDurationSlow} ${Xe.motionEaseInOut},
|
|
|
transform ${Xe.motionDurationSlow} ${Xe.motionEaseInOut} !important`,[`&${Ke}-appear, &${Ke}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ke}-leave-active`]:{transform:"translateY(-5px)"}}}}};const N=Xe=>({legend:{display:"block",width:"100%",marginBottom:Xe.marginLG,padding:0,color:Xe.colorTextDescription,fontSize:Xe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Xe.lineWidth}px ${Xe.lineType} ${Xe.colorBorder}`},label:{fontSize:Xe.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 ${Xe.controlOutlineWidth}px ${Xe.controlOutline}`},output:{display:"block",paddingTop:15,color:Xe.colorText,fontSize:Xe.fontSize,lineHeight:Xe.lineHeight}}),ie=(Xe,Lt)=>{const{formItemCls:Wt}=Xe;return{[Wt]:{[`${Wt}-label > label`]:{height:Lt},[`${Wt}-control-input`]:{minHeight:Lt}}}},z=Xe=>{const{componentCls:Lt}=Xe;return{[Xe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(Xe)),N(Xe)),{[`${Lt}-text`]:{display:"inline-block",paddingInlineEnd:Xe.paddingSM},"&-small":Object.assign({},ie(Xe,Xe.controlHeightSM)),"&-large":Object.assign({},ie(Xe,Xe.controlHeightLG))})}},$=Xe=>{const{formItemCls:Lt,iconCls:Wt,componentCls:Ke,rootPrefixCls:Oe,labelRequiredMarkColor:_t,labelColor:wt,labelFontSize:rn,labelHeight:Xt,labelColonMarginInlineStart:cn,labelColonMarginInlineEnd:nn,itemMarginBottom:pn}=Xe;return{[Lt]:Object.assign(Object.assign({},(0,o.Wf)(Xe)),{marginBottom:pn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Oe}-row`]:{display:"none"},"&-has-warning":{[`${Lt}-split`]:{color:Xe.colorError}},"&-has-error":{[`${Lt}-split`]:{color:Xe.colorWarning}},[`${Lt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Xe.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Xt,color:wt,fontSize:rn,[`> ${Wt}`]:{fontSize:Xe.fontSize,verticalAlign:"top"},[`&${Lt}-required:not(${Lt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Xe.marginXXS,color:_t,fontSize:Xe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ke}-hide-required-mark &`]:{display:"none"}},[`${Lt}-optional`]:{display:"inline-block",marginInlineStart:Xe.marginXXS,color:Xe.colorTextDescription,[`${Ke}-hide-required-mark &`]:{display:"none"}},[`${Lt}-tooltip`]:{color:Xe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Xe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:cn,marginInlineEnd:nn},[`&${Lt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Lt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Oe}-col-'"]):not([class*="' ${Oe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Xe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Lt]:{"&-explain, &-extra":{clear:"both",color:Xe.colorTextDescription,fontSize:Xe.fontSize,lineHeight:Xe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Xe.controlHeightSM,transition:`color ${Xe.motionDurationMid} ${Xe.motionEaseOut}`},"&-explain":{"&-error":{color:Xe.colorError},"&-warning":{color:Xe.colorWarning}}},[`&-with-help ${Lt}-explain`]:{height:"auto",opacity:1},[`${Lt}-feedback-icon`]:{fontSize:Xe.fontSize,textAlign:"center",visibility:"visible",animationName:I.kr,animationDuration:Xe.motionDurationMid,animationTimingFunction:Xe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Xe.colorSuccess},"&-error":{color:Xe.colorError},"&-warning":{color:Xe.colorWarning},"&-validating":{color:Xe.colorPrimary}}})}},G=Xe=>{const{componentCls:Lt,formItemCls:Wt}=Xe;return{[`${Lt}-horizontal`]:{[`${Wt}-label`]:{flexGrow:0},[`${Wt}-control`]:{flex:"1 1 0",minWidth:0},[`${Wt}-label[class$='-24'], ${Wt}-label[class*='-24 ']`]:{[`& + ${Wt}-control`]:{minWidth:"unset"}}}}},Q=Xe=>{const{componentCls:Lt,formItemCls:Wt}=Xe;return{[`${Lt}-inline`]:{display:"flex",flexWrap:"wrap",[Wt]:{flex:"none",marginInlineEnd:Xe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Wt}-label,
|
|
|
> ${Wt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Wt}-label`]:{flex:"none"},[`${Lt}-text`]:{display:"inline-block"},[`${Wt}-has-feedback`]:{display:"inline-block"}}}}},L=Xe=>({padding:Xe.verticalLabelPadding,margin:Xe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),D=Xe=>{const{componentCls:Lt,formItemCls:Wt,rootPrefixCls:Ke}=Xe;return{[`${Wt} ${Wt}-label`]:L(Xe),[Lt]:{[Wt]:{flexWrap:"wrap",[`${Wt}-label, ${Wt}-control`]:{[`&:not([class*=" ${Ke}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Y=Xe=>{const{componentCls:Lt,formItemCls:Wt,rootPrefixCls:Ke}=Xe;return{[`${Lt}-vertical`]:{[Wt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Lt}-item-control`]:{width:"100%"}}},[`${Lt}-vertical ${Wt}-label,
|
|
|
.${Ke}-col-24${Wt}-label,
|
|
|
.${Ke}-col-xl-24${Wt}-label`]:L(Xe),[`@media (max-width: ${Xe.screenXSMax}px)`]:[D(Xe),{[Lt]:{[`.${Ke}-col-xs-24${Wt}-label`]:L(Xe)}}],[`@media (max-width: ${Xe.screenSMMax}px)`]:{[Lt]:{[`.${Ke}-col-sm-24${Wt}-label`]:L(Xe)}},[`@media (max-width: ${Xe.screenMDMax}px)`]:{[Lt]:{[`.${Ke}-col-md-24${Wt}-label`]:L(Xe)}},[`@media (max-width: ${Xe.screenLGMax}px)`]:{[Lt]:{[`.${Ke}-col-lg-24${Wt}-label`]:L(Xe)}}}},j=(Xe,Lt)=>(0,g.TS)(Xe,{formItemCls:`${Xe.componentCls}-item`,rootPrefixCls:Lt});var xe=(0,_.Z)("Form",(Xe,Lt)=>{let{rootPrefixCls:Wt}=Lt;const Ke=j(Xe,Wt);return[z(Ke),$(Ke),T(Ke),G(Ke),Q(Ke),Y(Ke),(0,k.Z)(Ke),I.kr]},Xe=>({labelRequiredMarkColor:Xe.colorError,labelColor:Xe.colorTextHeading,labelFontSize:Xe.fontSize,labelHeight:Xe.controlHeight,labelColonMarginInlineStart:Xe.marginXXS/2,labelColonMarginInlineEnd:Xe.marginXS,itemMarginBottom:Xe.marginLG,verticalLabelPadding:`0 0 ${Xe.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ce=[];function Se(Xe,Lt,Wt){let Ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Xe=="string"?Xe:`${Lt}-${Ke}`,error:Xe,errorStatus:Wt}}var de=Xe=>{let{help:Lt,helpStatus:Wt,errors:Ke=Ce,warnings:Oe=Ce,className:_t,fieldId:wt,onVisibleChanged:rn}=Xe;const{prefixCls:Xt}=A.useContext(w.Rk),cn=`${Xt}-item-explain`,[,nn]=xe(Xt),pn=(0,A.useMemo)(()=>(0,m.Z)(Xt),[Xt]),Ln=ne(Ke),Kt=ne(Oe),zt=A.useMemo(()=>Lt!=null?[Se(Lt,"help",Wt)]:[].concat((0,O.Z)(Ln.map((sn,mn)=>Se(sn,"error","error",mn))),(0,O.Z)(Kt.map((sn,mn)=>Se(sn,"warning","warning",mn)))),[Lt,Wt,Ln,Kt]),ln={};return wt&&(ln.id=`${wt}_help`),A.createElement(ue.default,{motionDeadline:pn.motionDeadline,motionName:`${Xt}-show-help`,visible:!!zt.length,onVisibleChanged:rn},sn=>{const{className:mn,style:un}=sn;return A.createElement("div",Object.assign({},ln,{className:ee()(cn,mn,_t,nn),style:un,role:"alert"}),A.createElement(ue.CSSMotionList,Object.assign({keys:zt},(0,m.Z)(Xt),{motionName:`${Xt}-show-help-item`,component:!1}),ar=>{const{key:On,error:tn,errorStatus:ct,className:ht,style:At}=ar;return A.createElement("div",{key:On,className:ee()(ht,{[`${cn}-${ct}`]:ct}),style:At},tn)}))})},W=p(95013),be=p(36355),F=p(1684),ce=p(52946),q=p(19716),y=p(16722);const x=["parentNode"],Z="form_item";function me(Xe){return Xe===void 0||Xe===!1?[]:Array.isArray(Xe)?Xe:[Xe]}function Ne(Xe,Lt){if(!Xe.length)return;const Wt=Xe.join("_");return Lt?`${Lt}_${Wt}`:x.includes(Wt)?`${Z}_${Wt}`:Wt}function Ue(Xe,Lt,Wt,Ke,Oe,_t){let wt=Ke;return _t!==void 0?wt=_t:Wt.validating?wt="validating":Xe.length?wt="error":Lt.length?wt="warning":(Wt.touched||Oe&&Wt.validated)&&(wt="success"),wt}function ze(Xe){return me(Xe).join("_")}function et(Xe){const[Lt]=(0,W.useForm)(),Wt=A.useRef({}),Ke=A.useMemo(()=>Xe!=null?Xe:Object.assign(Object.assign({},Lt),{__INTERNAL__:{itemRef:Oe=>_t=>{const wt=ze(Oe);_t?Wt.current[wt]=_t:delete Wt.current[wt]}},scrollToField:function(Oe){let _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const wt=me(Oe),rn=Ne(wt,Ke.__INTERNAL__.name),Xt=rn?document.getElementById(rn):null;Xt&&(0,y.Z)(Xt,Object.assign({scrollMode:"if-needed",block:"nearest"},_t))},getFieldInstance:Oe=>{const _t=ze(Oe);return Wt.current[_t]}}),[Xe,Lt]);return[Ke]}var pt=p(28726),gt=function(Xe,Lt){var Wt={};for(var Ke in Xe)Object.prototype.hasOwnProperty.call(Xe,Ke)&&Lt.indexOf(Ke)<0&&(Wt[Ke]=Xe[Ke]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Xe);Oe<Ke.length;Oe++)Lt.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Ke[Oe])&&(Wt[Ke[Oe]]=Xe[Ke[Oe]]);return Wt};const at=(Xe,Lt)=>{const Wt=A.useContext(F.Z),{getPrefixCls:Ke,direction:Oe,form:_t}=A.useContext(be.E_),{prefixCls:wt,className:rn,rootClassName:Xt,size:cn,disabled:nn=Wt,form:pn,colon:Ln,labelAlign:Kt,labelWrap:zt,labelCol:ln,wrapperCol:sn,hideRequiredMark:mn,layout:un="horizontal",scrollToFirstError:ar,requiredMark:On,onFinishFailed:tn,name:ct,style:ht,feedbackIcons:At}=Xe,Ft=gt(Xe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Pt=(0,q.Z)(cn),Yt=A.useContext(pt.Z),Mt=(0,A.useMemo)(()=>On!==void 0?On:_t&&_t.requiredMark!==void 0?_t.requiredMark:!mn,[mn,On,_t]),gn=Ln!=null?Ln:_t==null?void 0:_t.colon,An=Ke("form",wt),[Dn,Xn]=xe(An),nr=ee()(An,`${An}-${un}`,{[`${An}-hide-required-mark`]:Mt===!1,[`${An}-rtl`]:Oe==="rtl",[`${An}-${Pt}`]:Pt},Xn,_t==null?void 0:_t.className,rn,Xt),[dr]=et(pn),{__INTERNAL__:En}=dr;En.name=ct;const Cn=(0,A.useMemo)(()=>({name:ct,labelAlign:Kt,labelCol:ln,labelWrap:zt,wrapperCol:sn,vertical:un==="vertical",colon:gn,requiredMark:Mt,itemRef:En.itemRef,form:dr,feedbackIcons:At}),[ct,Kt,ln,sn,un,gn,Mt,dr,At]);A.useImperativeHandle(Lt,()=>dr);const pr=(Ir,rr)=>{if(Ir){let ir={block:"nearest"};typeof Ir=="object"&&(ir=Ir),dr.scrollToField(rr,ir)}},mr=Ir=>{if(tn==null||tn(Ir),Ir.errorFields.length){const rr=Ir.errorFields[0].name;if(ar!==void 0){pr(ar,rr);return}_t&&_t.scrollToFirstError!==void 0&&pr(_t.scrollToFirstError,rr)}};return Dn(A.createElement(F.n,{disabled:nn},A.createElement(ce.q,{size:Pt},A.createElement(w.RV,Object.assign({},{validateMessages:Yt}),A.createElement(w.q3.Provider,{value:Cn},A.createElement(W.default,Object.assign({id:ct},Ft,{name:ct,onFinishFailed:mr,form:dr,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),ht),className:nr})))))))};var en=A.forwardRef(at),Rt=p(41799),Zt=p(8654),ut=p(92343),Ct=p(11592);function he(Xe){if(typeof Xe=="function")return Xe;const Lt=(0,Ct.Z)(Xe);return Lt.length<=1?Lt[0]:Lt}const pe=()=>{const{status:Xe,errors:Lt=[],warnings:Wt=[]}=(0,A.useContext)(w.aM);return{status:Xe,errors:Lt,warnings:Wt}};pe.Context=w.aM;var le=pe,J=p(16089);function Ie(Xe){const[Lt,Wt]=A.useState(Xe),Ke=(0,A.useRef)(null),Oe=(0,A.useRef)([]),_t=(0,A.useRef)(!1);A.useEffect(()=>(_t.current=!1,()=>{_t.current=!0,J.Z.cancel(Ke.current),Ke.current=null}),[]);function wt(rn){_t.current||(Ke.current===null&&(Oe.current=[],Ke.current=(0,J.Z)(()=>{Ke.current=null,Wt(Xt=>{let cn=Xt;return Oe.current.forEach(nn=>{cn=nn(cn)}),cn})})),Oe.current.push(rn))}return[Lt,wt]}function H(){const{itemRef:Xe}=A.useContext(w.q3),Lt=A.useRef({});function Wt(Ke,Oe){const _t=Oe&&typeof Oe=="object"&&Oe.ref,wt=Ke.join("_");return(Lt.current.name!==wt||Lt.current.originRef!==_t)&&(Lt.current.name=wt,Lt.current.originRef=_t,Lt.current.ref=(0,Zt.sQ)(Xe(Ke),_t)),Lt.current.ref}return Wt}var R=p(29194),P=p(34280),fe=p(2738),oe=p(27382),te=p(37028);const Ae=Xe=>{const{formItemCls:Lt}=Xe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Lt}-control`]:{display:"flex"}}}};var je=(0,_.b)(["Form","item-item"],(Xe,Lt)=>{let{rootPrefixCls:Wt}=Lt;const Ke=j(Xe,Wt);return[Ae(Ke)]}),Be=Xe=>{const{prefixCls:Lt,status:Wt,wrapperCol:Ke,children:Oe,errors:_t,warnings:wt,_internalItemRender:rn,extra:Xt,help:cn,fieldId:nn,marginBottom:pn,onErrorVisibleChanged:Ln}=Xe,Kt=`${Lt}-item`,zt=A.useContext(w.q3),ln=Ke||zt.wrapperCol||{},sn=ee()(`${Kt}-control`,ln.className),mn=A.useMemo(()=>Object.assign({},zt),[zt]);delete mn.labelCol,delete mn.wrapperCol;const un=A.createElement("div",{className:`${Kt}-control-input`},A.createElement("div",{className:`${Kt}-control-input-content`},Oe)),ar=A.useMemo(()=>({prefixCls:Lt,status:Wt}),[Lt,Wt]),On=pn!==null||_t.length||wt.length?A.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},A.createElement(w.Rk.Provider,{value:ar},A.createElement(de,{fieldId:nn,errors:_t,warnings:wt,help:cn,helpStatus:Wt,className:`${Kt}-explain-connected`,onVisibleChanged:Ln})),!!pn&&A.createElement("div",{style:{width:0,height:pn}})):null,tn={};nn&&(tn.id=`${nn}_extra`);const ct=Xt?A.createElement("div",Object.assign({},tn,{className:`${Kt}-extra`}),Xt):null,ht=rn&&rn.mark==="pro_table_render"&&rn.render?rn.render(Xe,{input:un,errorList:On,extra:ct}):A.createElement(A.Fragment,null,un,On,ct);return A.createElement(w.q3.Provider,{value:mn},A.createElement(te.Z,Object.assign({},ln,{className:sn}),ht),A.createElement(je,{prefixCls:Lt}))},qe=p(61485),Qe=p(31724),Ve=p(9763),xt=p(6848),Dt=function(Xe,Lt){var Wt={};for(var Ke in Xe)Object.prototype.hasOwnProperty.call(Xe,Ke)&&Lt.indexOf(Ke)<0&&(Wt[Ke]=Xe[Ke]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Xe);Oe<Ke.length;Oe++)Lt.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Ke[Oe])&&(Wt[Ke[Oe]]=Xe[Ke[Oe]]);return Wt};function vt(Xe){return Xe?typeof Xe=="object"&&!A.isValidElement(Xe)?Xe:{title:Xe}:null}var jt=Xe=>{let{prefixCls:Lt,label:Wt,htmlFor:Ke,labelCol:Oe,labelAlign:_t,colon:wt,required:rn,requiredMark:Xt,tooltip:cn}=Xe;var nn;const[pn]=(0,Ve.Z)("Form"),{vertical:Ln,labelAlign:Kt,labelCol:zt,labelWrap:ln,colon:sn}=A.useContext(w.q3);if(!Wt)return null;const mn=Oe||zt||{},un=_t||Kt,ar=`${Lt}-item-label`,On=ee()(ar,un==="left"&&`${ar}-left`,mn.className,{[`${ar}-wrap`]:!!ln});let tn=Wt;const ct=wt===!0||sn!==!1&&wt!==!1;ct&&!Ln&&typeof Wt=="string"&&Wt.trim()!==""&&(tn=Wt.replace(/[:|:]\s*$/,""));const At=vt(cn);if(At){const{icon:Mt=A.createElement(qe.Z,null)}=At,gn=Dt(At,["icon"]),An=A.createElement(xt.Z,Object.assign({},gn),A.cloneElement(Mt,{className:`${Lt}-item-tooltip`,title:""}));tn=A.createElement(A.Fragment,null,tn,An)}const Ft=Xt==="optional",Pt=typeof Xt=="function";Pt?tn=Xt(tn,{required:!!rn}):Ft&&!rn&&(tn=A.createElement(A.Fragment,null,tn,A.createElement("span",{className:`${Lt}-item-optional`,title:""},(pn==null?void 0:pn.optional)||((nn=Qe.Z.Form)===null||nn===void 0?void 0:nn.optional))));const Yt=ee()({[`${Lt}-item-required`]:rn,[`${Lt}-item-required-mark-optional`]:Ft||Pt,[`${Lt}-item-no-colon`]:!ct});return A.createElement(te.Z,Object.assign({},mn,{className:On}),A.createElement("label",{htmlFor:Ke,className:Yt,title:typeof Wt=="string"?Wt:""},tn))},C=p(29679),B=p(19248),yt=p(96512),ye=p(58617);const Me={success:C.Z,warning:yt.Z,error:B.Z,validating:ye.Z};function Sn(Xe){let{children:Lt,errors:Wt,warnings:Ke,hasFeedback:Oe,validateStatus:_t,prefixCls:wt,meta:rn,noStyle:Xt}=Xe;const cn=`${wt}-item`,{feedbackIcons:nn}=A.useContext(w.q3),pn=Ue(Wt,Ke,rn,null,!!Oe,_t),{isFormItemInput:Ln,status:Kt}=A.useContext(w.aM),zt=A.useMemo(()=>{var ln;let sn;if(Oe){const ar=Oe!==!0&&Oe.icons||nn,On=pn&&((ln=ar==null?void 0:ar({status:pn,errors:Wt,warnings:Ke}))===null||ln===void 0?void 0:ln[pn]),tn=pn&&Me[pn];sn=On!==!1&&tn?A.createElement("span",{className:ee()(`${cn}-feedback-icon`,`${cn}-feedback-icon-${pn}`)},On||A.createElement(tn,null)):null}let mn=!0,un=pn||"";return Xt&&(mn=Ln,un=(pn!=null?pn:Kt)||""),{status:un,errors:Wt,warnings:Ke,hasFeedback:!!Oe,feedbackIcon:sn,isFormItemInput:mn}},[pn,Oe,Xt,Ln,Kt]);return A.createElement(w.aM.Provider,{value:zt},Lt)}var it=function(Xe,Lt){var Wt={};for(var Ke in Xe)Object.prototype.hasOwnProperty.call(Xe,Ke)&&Lt.indexOf(Ke)<0&&(Wt[Ke]=Xe[Ke]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Xe);Oe<Ke.length;Oe++)Lt.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Ke[Oe])&&(Wt[Ke[Oe]]=Xe[Ke[Oe]]);return Wt};function nt(Xe){const{prefixCls:Lt,className:Wt,rootClassName:Ke,style:Oe,help:_t,errors:wt,warnings:rn,validateStatus:Xt,meta:cn,hasFeedback:nn,hidden:pn,children:Ln,fieldId:Kt,required:zt,isRequired:ln,onSubItemMetaChange:sn}=Xe,mn=it(Xe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),un=`${Lt}-item`,{requiredMark:ar}=A.useContext(w.q3),On=A.useRef(null),tn=ne(wt),ct=ne(rn),ht=_t!=null,At=!!(ht||wt.length||rn.length),Ft=!!On.current&&(0,R.Z)(On.current),[Pt,Yt]=A.useState(null);(0,P.Z)(()=>{if(At&&On.current){const Xn=getComputedStyle(On.current);Yt(parseInt(Xn.marginBottom,10))}},[At,Ft]);const Mt=Xn=>{Xn||Yt(null)},An=function(){let Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const nr=Xn?tn:cn.errors,dr=Xn?ct:cn.warnings;return Ue(nr,dr,cn,"",!!nn,Xt)}(),Dn=ee()(un,Wt,Ke,{[`${un}-with-help`]:ht||tn.length||ct.length,[`${un}-has-feedback`]:An&&nn,[`${un}-has-success`]:An==="success",[`${un}-has-warning`]:An==="warning",[`${un}-has-error`]:An==="error",[`${un}-is-validating`]:An==="validating",[`${un}-hidden`]:pn});return A.createElement("div",{className:Dn,style:Oe,ref:On},A.createElement(oe.Z,Object.assign({className:`${un}-row`},(0,fe.Z)(mn,["_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"])),A.createElement(jt,Object.assign({htmlFor:Kt},Xe,{requiredMark:ar,required:zt!=null?zt:ln,prefixCls:Lt})),A.createElement(Be,Object.assign({},Xe,cn,{errors:tn,warnings:ct,prefixCls:Lt,status:An,help:_t,marginBottom:Pt,onErrorVisibleChanged:Mt}),A.createElement(w.qI.Provider,{value:sn},A.createElement(Sn,{prefixCls:Lt,meta:cn,errors:cn.errors,warnings:cn.warnings,hasFeedback:nn,validateStatus:An},Ln)))),!!Pt&&A.createElement("div",{className:`${un}-margin-offset`,style:{marginBottom:-Pt}}))}const rt="__SPLIT__",Ee=null,De=A.memo(Xe=>{let{children:Lt}=Xe;return Lt},(Xe,Lt)=>Xe.value===Lt.value&&Xe.update===Lt.update&&Xe.childProps.length===Lt.childProps.length&&Xe.childProps.every((Wt,Ke)=>Wt===Lt.childProps[Ke]));function Fe(Xe){return Xe!=null}function tt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _e(Xe){const{name:Lt,noStyle:Wt,className:Ke,dependencies:Oe,prefixCls:_t,shouldUpdate:wt,rules:rn,children:Xt,required:cn,label:nn,messageVariables:pn,trigger:Ln="onChange",validateTrigger:Kt,hidden:zt,help:ln}=Xe,{getPrefixCls:sn}=A.useContext(be.E_),{name:mn}=A.useContext(w.q3),un=he(Xt),ar=typeof un=="function",On=A.useContext(w.qI),{validateTrigger:tn}=A.useContext(W.FieldContext),ct=Kt!==void 0?Kt:tn,ht=Fe(Lt),At=sn("form",_t),[Ft,Pt]=xe(At),Yt=A.useContext(W.ListContext),Mt=A.useRef(),[gn,An]=Ie({}),[Dn,Xn]=(0,Rt.Z)(()=>tt()),nr=rr=>{const ir=Yt==null?void 0:Yt.getKey(rr.name);if(Xn(rr.destroy?tt():rr,!0),Wt&&ln!==!1&&On){let Cr=rr.name;if(rr.destroy)Cr=Mt.current||Cr;else if(ir!==void 0){const[tr,Pr]=ir;Cr=[tr].concat((0,O.Z)(Pr)),Mt.current=Cr}On(rr,Cr)}},dr=(rr,ir)=>{An(Cr=>{const tr=Object.assign({},Cr),ei=[].concat((0,O.Z)(rr.name.slice(0,-1)),(0,O.Z)(ir)).join(rt);return rr.destroy?delete tr[ei]:tr[ei]=rr,tr})},[En,Cn]=A.useMemo(()=>{const rr=(0,O.Z)(Dn.errors),ir=(0,O.Z)(Dn.warnings);return Object.values(gn).forEach(Cr=>{rr.push.apply(rr,(0,O.Z)(Cr.errors||[])),ir.push.apply(ir,(0,O.Z)(Cr.warnings||[]))}),[rr,ir]},[gn,Dn.errors,Dn.warnings]),pr=H();function mr(rr,ir,Cr){return Wt&&!zt?A.createElement(Sn,{prefixCls:At,hasFeedback:Xe.hasFeedback,validateStatus:Xe.validateStatus,meta:Dn,errors:En,warnings:Cn,noStyle:!0},rr):A.createElement(nt,Object.assign({key:"row"},Xe,{className:ee()(Ke,Pt),prefixCls:At,fieldId:ir,isRequired:Cr,errors:En,warnings:Cn,meta:Dn,onSubItemMetaChange:dr}),rr)}if(!ht&&!ar&&!Oe)return Ft(mr(un));let Ir={};return typeof nn=="string"?Ir.label=nn:Lt&&(Ir.label=String(Lt)),pn&&(Ir=Object.assign(Object.assign({},Ir),pn)),Ft(A.createElement(W.Field,Object.assign({},Xe,{messageVariables:Ir,trigger:Ln,validateTrigger:ct,onMetaChange:nr}),(rr,ir,Cr)=>{const tr=me(Lt).length&&ir?ir.name:[],Pr=Ne(tr,mn),ei=cn!==void 0?cn:!!(rn&&rn.some(dt=>{if(dt&&typeof dt=="object"&&dt.required&&!dt.warningOnly)return!0;if(typeof dt=="function"){const Bn=dt(Cr);return Bn&&Bn.required&&!Bn.warningOnly}return!1})),Qn=Object.assign({},rr);let zn=null;if(Array.isArray(un)&&ht)zn=un;else if(!(ar&&(!(wt||Oe)||ht))){if(!(Oe&&!ar&&!ht))if((0,ut.l$)(un)){const dt=Object.assign(Object.assign({},un.props),Qn);if(dt.id||(dt.id=Pr),ln||En.length>0||Cn.length>0||Xe.extra){const qn=[];(ln||En.length>0)&&qn.push(`${Pr}_help`),Xe.extra&&qn.push(`${Pr}_extra`),dt["aria-describedby"]=qn.join(" ")}En.length>0&&(dt["aria-invalid"]="true"),ei&&(dt["aria-required"]="true"),(0,Zt.Yr)(un)&&(dt.ref=pr(tr,un)),new Set([].concat((0,O.Z)(me(Ln)),(0,O.Z)(me(ct)))).forEach(qn=>{dt[qn]=function(){for(var Lr,Ur,Vr,fr,Yr,Un=arguments.length,Pn=new Array(Un),Er=0;Er<Un;Er++)Pn[Er]=arguments[Er];(Vr=Qn[qn])===null||Vr===void 0||(Lr=Vr).call.apply(Lr,[Qn].concat(Pn)),(Yr=(fr=un.props)[qn])===null||Yr===void 0||(Ur=Yr).call.apply(Ur,[fr].concat(Pn))}});const or=[dt["aria-required"],dt["aria-invalid"],dt["aria-describedby"]];zn=A.createElement(De,{value:Qn[Xe.valuePropName||"value"],update:un,childProps:or},(0,ut.Tm)(un,dt))}else ar&&(wt||Oe)&&!ht?zn=un(Cr):zn=un}return mr(zn,Pr,ei)}))}const Jt=_e;Jt.useStatus=le;var Ze=Jt,xn=function(Xe,Lt){var Wt={};for(var Ke in Xe)Object.prototype.hasOwnProperty.call(Xe,Ke)&&Lt.indexOf(Ke)<0&&(Wt[Ke]=Xe[Ke]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ke=Object.getOwnPropertySymbols(Xe);Oe<Ke.length;Oe++)Lt.indexOf(Ke[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Ke[Oe])&&(Wt[Ke[Oe]]=Xe[Ke[Oe]]);return Wt},Wn=Xe=>{var{prefixCls:Lt,children:Wt}=Xe,Ke=xn(Xe,["prefixCls","children"]);const{getPrefixCls:Oe}=A.useContext(be.E_),_t=Oe("form",Lt),wt=A.useMemo(()=>({prefixCls:_t,status:"error"}),[_t]);return A.createElement(W.List,Object.assign({},Ke),(rn,Xt,cn)=>A.createElement(w.Rk.Provider,{value:wt},Wt(rn.map(nn=>Object.assign(Object.assign({},nn),{fieldKey:nn.key})),Xt,{errors:cn.errors,warnings:cn.warnings})))};function yr(){const{form:Xe}=(0,A.useContext)(w.q3);return Xe}const vn=en;vn.Item=Ze,vn.List=Wn,vn.ErrorList=de,vn.useForm=et,vn.useFormInstance=yr,vn.useWatch=W.useWatch,vn.Provider=w.RV,vn.create=()=>{};var wn=vn},8628:function(Qt,He,p){"use strict";var O=p(59301),U=p(34280),ee=p(56762),ue=p(69507);function A(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const w=(0,O.useRef)({}),ne=(0,ee.Z)(),o=(0,ue.ZP)();return(0,U.Z)(()=>{const I=o.subscribe(k=>{w.current=k,m&&ne()});return()=>o.unsubscribe(I)},[]),w.current}He.Z=A},9432:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return $},n:function(){return ie}});var O=p(19248),U=p(92310),ee=p.n(U),ue=p(93681),A=p(8654),m=p(59301),w=p(19080),ne=p(36355),o=p(1684),I=p(19716),k=p(32441),g=p(33234),_=p(59412),S=p(9937);function T(G){return!!(G.prefix||G.suffix||G.allowClear)}var N=function(G,Q){var L={};for(var D in G)Object.prototype.hasOwnProperty.call(G,D)&&Q.indexOf(D)<0&&(L[D]=G[D]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,D=Object.getOwnPropertySymbols(G);Y<D.length;Y++)Q.indexOf(D[Y])<0&&Object.prototype.propertyIsEnumerable.call(G,D[Y])&&(L[D[Y]]=G[D[Y]]);return L};function ie(G,Q){if(!G)return;G.focus(Q);const{cursor:L}=Q||{};if(L){const D=G.value.length;switch(L){case"start":G.setSelectionRange(0,0);break;case"end":G.setSelectionRange(D,D);break;default:G.setSelectionRange(0,D);break}}}var $=(0,m.forwardRef)((G,Q)=>{var L;const{prefixCls:D,bordered:Y=!0,status:j,size:xe,disabled:Ce,onBlur:Se,onFocus:ge,suffix:de,allowClear:W,addonAfter:be,addonBefore:F,className:ce,style:q,styles:y,rootClassName:x,onChange:Z,classNames:me}=G,Ne=N(G,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ue,direction:ze,input:et}=m.useContext(ne.E_),pt=Ue("input",D),gt=(0,m.useRef)(null),[at,Ot]=(0,S.ZP)(pt),{compactSize:en,compactItemClassnames:Rt}=(0,g.ri)(pt,ze),Zt=(0,I.Z)(je=>{var ke;return(ke=xe!=null?xe:en)!==null&&ke!==void 0?ke:je}),ut=m.useContext(o.Z),Ct=Ce!=null?Ce:ut,{status:he,hasFeedback:pe,feedbackIcon:le}=(0,m.useContext)(k.aM),J=(0,w.F)(he,j),Ie=T(G)||!!pe,H=(0,m.useRef)(Ie);(0,m.useEffect)(()=>{var je;Ie&&H.current,H.current=Ie},[Ie]);const R=(0,_.Z)(gt,!0),P=je=>{R(),Se==null||Se(je)},fe=je=>{R(),ge==null||ge(je)},oe=je=>{R(),Z==null||Z(je)},te=(pe||de)&&m.createElement(m.Fragment,null,de,pe&&le);let Ae;return typeof W=="object"&&(W!=null&&W.clearIcon)?Ae=W:W&&(Ae={clearIcon:m.createElement(O.Z,null)}),at(m.createElement(ue.default,Object.assign({ref:(0,A.sQ)(Q,gt),prefixCls:pt,autoComplete:et==null?void 0:et.autoComplete},Ne,{disabled:Ct,onBlur:P,onFocus:fe,style:Object.assign(Object.assign({},et==null?void 0:et.style),q),styles:Object.assign(Object.assign({},et==null?void 0:et.styles),y),suffix:te,allowClear:Ae,className:ee()(ce,x,Rt,et==null?void 0:et.className),onChange:oe,addonAfter:be&&m.createElement(g.BR,null,m.createElement(k.Ux,{override:!0,status:!0},be)),addonBefore:F&&m.createElement(g.BR,null,m.createElement(k.Ux,{override:!0,status:!0},F)),classNames:Object.assign(Object.assign(Object.assign({},me),et==null?void 0:et.classNames),{input:ee()({[`${pt}-sm`]:Zt==="small",[`${pt}-lg`]:Zt==="large",[`${pt}-rtl`]:ze==="rtl",[`${pt}-borderless`]:!Y},!Ie&&(0,w.Z)(pt,J),me==null?void 0:me.input,(L=et==null?void 0:et.classNames)===null||L===void 0?void 0:L.input,Ot)}),classes:{affixWrapper:ee()({[`${pt}-affix-wrapper-sm`]:Zt==="small",[`${pt}-affix-wrapper-lg`]:Zt==="large",[`${pt}-affix-wrapper-rtl`]:ze==="rtl",[`${pt}-affix-wrapper-borderless`]:!Y},(0,w.Z)(`${pt}-affix-wrapper`,J,pe),Ot),wrapper:ee()({[`${pt}-group-rtl`]:ze==="rtl"},Ot),group:ee()({[`${pt}-group-wrapper-sm`]:Zt==="small",[`${pt}-group-wrapper-lg`]:Zt==="large",[`${pt}-group-wrapper-rtl`]:ze==="rtl",[`${pt}-group-wrapper-disabled`]:Ct},(0,w.Z)(`${pt}-group-wrapper`,J,pe),Ot)}})))})},1643:function(Qt,He,p){"use strict";var O=p(19248),U=p(92310),ee=p.n(U),ue=p(9296),A=p(59301),m=p(19080),w=p(36355),ne=p(1684),o=p(19716),I=p(32441),k=p(9432),g=p(9937),_=function(T,N){var ie={};for(var z in T)Object.prototype.hasOwnProperty.call(T,z)&&N.indexOf(z)<0&&(ie[z]=T[z]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,z=Object.getOwnPropertySymbols(T);$<z.length;$++)N.indexOf(z[$])<0&&Object.prototype.propertyIsEnumerable.call(T,z[$])&&(ie[z[$]]=T[z[$]]);return ie};const S=(0,A.forwardRef)((T,N)=>{const{prefixCls:ie,bordered:z=!0,size:$,disabled:G,status:Q,allowClear:L,showCount:D,classNames:Y,rootClassName:j,className:xe}=T,Ce=_(T,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Se,direction:ge}=A.useContext(w.E_),de=(0,o.Z)($),W=A.useContext(ne.Z),be=G!=null?G:W,{status:F,hasFeedback:ce,feedbackIcon:q}=A.useContext(I.aM),y=(0,m.F)(F,Q),x=A.useRef(null);A.useImperativeHandle(N,()=>{var ze;return{resizableTextArea:(ze=x.current)===null||ze===void 0?void 0:ze.resizableTextArea,focus:et=>{var pt,gt;(0,k.n)((gt=(pt=x.current)===null||pt===void 0?void 0:pt.resizableTextArea)===null||gt===void 0?void 0:gt.textArea,et)},blur:()=>{var et;return(et=x.current)===null||et===void 0?void 0:et.blur()}}});const Z=Se("input",ie);let me;typeof L=="object"&&(L!=null&&L.clearIcon)?me=L:L&&(me={clearIcon:A.createElement(O.Z,null)});const[Ne,Ue]=(0,g.ZP)(Z);return Ne(A.createElement(ue.default,Object.assign({},Ce,{disabled:be,allowClear:me,className:ee()(xe,j),classes:{affixWrapper:ee()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:ge==="rtl",[`${Z}-affix-wrapper-borderless`]:!z,[`${Z}-affix-wrapper-sm`]:de==="small",[`${Z}-affix-wrapper-lg`]:de==="large",[`${Z}-textarea-show-count`]:D},(0,m.Z)(`${Z}-affix-wrapper`,y),Ue)},classNames:Object.assign(Object.assign({},Y),{textarea:ee()({[`${Z}-borderless`]:!z,[`${Z}-sm`]:de==="small",[`${Z}-lg`]:de==="large"},(0,m.Z)(Z,y),Ue,Y==null?void 0:Y.textarea)}),prefixCls:Z,suffix:ce&&A.createElement("span",{className:`${Z}-textarea-suffix`},q),showCount:D,ref:x})))});He.Z=S},59412:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return U}});var O=p(59301);function U(ee,ue){const A=(0,O.useRef)([]),m=()=>{A.current.push(setTimeout(()=>{var w,ne,o,I;!((w=ee.current)===null||w===void 0)&&w.input&&((ne=ee.current)===null||ne===void 0?void 0:ne.input.getAttribute("type"))==="password"&&(!((o=ee.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((I=ee.current)===null||I===void 0||I.input.removeAttribute("value"))}))};return(0,O.useEffect)(()=>(ue&&m(),()=>A.current.forEach(w=>{w&&clearTimeout(w)})),[]),m}},92832:function(Qt,He,p){"use strict";p.d(He,{default:function(){return de}});var O=p(92310),U=p.n(O),ee=p(59301),ue=p(36355),A=p(32441),m=p(9937),ne=W=>{const{getPrefixCls:be,direction:F}=(0,ee.useContext)(ue.E_),{prefixCls:ce,className:q}=W,y=be("input-group",ce),x=be("input"),[Z,me]=(0,m.ZP)(x),Ne=U()(y,{[`${y}-lg`]:W.size==="large",[`${y}-sm`]:W.size==="small",[`${y}-compact`]:W.compact,[`${y}-rtl`]:F==="rtl"},me,q),Ue=(0,ee.useContext)(A.aM),ze=(0,ee.useMemo)(()=>Object.assign(Object.assign({},Ue),{isFormItemInput:!1}),[Ue]);return Z(ee.createElement("span",{className:Ne,style:W.style,onMouseEnter:W.onMouseEnter,onMouseLeave:W.onMouseLeave,onFocus:W.onFocus,onBlur:W.onBlur},ee.createElement(A.aM.Provider,{value:ze},W.children)))},o=p(9432),I=p(73331),k=p(15277),g=p(2738),_=p(8654),S=p(59412),T=function(W,be){var F={};for(var ce in W)Object.prototype.hasOwnProperty.call(W,ce)&&be.indexOf(ce)<0&&(F[ce]=W[ce]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ce=Object.getOwnPropertySymbols(W);q<ce.length;q++)be.indexOf(ce[q])<0&&Object.prototype.propertyIsEnumerable.call(W,ce[q])&&(F[ce[q]]=W[ce[q]]);return F};const N=W=>W?ee.createElement(k.Z,null):ee.createElement(I.Z,null),ie={click:"onClick",hover:"onMouseOver"};var $=ee.forwardRef((W,be)=>{const{visibilityToggle:F=!0}=W,ce=typeof F=="object"&&F.visible!==void 0,[q,y]=(0,ee.useState)(()=>ce?F.visible:!1),x=(0,ee.useRef)(null);ee.useEffect(()=>{ce&&y(F.visible)},[ce,F]);const Z=(0,S.Z)(x),me=()=>{const{disabled:Ct}=W;Ct||(q&&Z(),y(he=>{var pe;const le=!he;return typeof F=="object"&&((pe=F.onVisibleChange)===null||pe===void 0||pe.call(F,le)),le}))},Ne=Ct=>{const{action:he="click",iconRender:pe=N}=W,le=ie[he]||"",J=pe(q),Ie={[le]:me,className:`${Ct}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return ee.cloneElement(ee.isValidElement(J)?J:ee.createElement("span",null,J),Ie)},{className:Ue,prefixCls:ze,inputPrefixCls:et,size:pt}=W,gt=T(W,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:at}=ee.useContext(ue.E_),Ot=at("input",et),en=at("input-password",ze),Rt=F&&Ne(en),Zt=U()(en,Ue,{[`${en}-${pt}`]:!!pt}),ut=Object.assign(Object.assign({},(0,g.Z)(gt,["suffix","iconRender","visibilityToggle"])),{type:q?"text":"password",className:Zt,prefixCls:Ot,suffix:Rt});return pt&&(ut.size=pt),ee.createElement(o.Z,Object.assign({ref:(0,_.sQ)(be,x)},ut))}),G=p(47472),Q=p(92343),L=p(3113),D=p(19716),Y=p(33234),j=function(W,be){var F={};for(var ce in W)Object.prototype.hasOwnProperty.call(W,ce)&&be.indexOf(ce)<0&&(F[ce]=W[ce]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ce=Object.getOwnPropertySymbols(W);q<ce.length;q++)be.indexOf(ce[q])<0&&Object.prototype.propertyIsEnumerable.call(W,ce[q])&&(F[ce[q]]=W[ce[q]]);return F},Ce=ee.forwardRef((W,be)=>{const{prefixCls:F,inputPrefixCls:ce,className:q,size:y,suffix:x,enterButton:Z=!1,addonAfter:me,loading:Ne,disabled:Ue,onSearch:ze,onChange:et,onCompositionStart:pt,onCompositionEnd:gt}=W,at=j(W,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ot,direction:en}=ee.useContext(ue.E_),Rt=ee.useRef(!1),Zt=Ot("input-search",F),ut=Ot("input",ce),{compactSize:Ct}=(0,Y.ri)(Zt,en),he=(0,D.Z)(Be=>{var qe;return(qe=y!=null?y:Ct)!==null&&qe!==void 0?qe:Be}),pe=ee.useRef(null),le=Be=>{Be&&Be.target&&Be.type==="click"&&ze&&ze(Be.target.value,Be,{source:"clear"}),et&&et(Be)},J=Be=>{var qe;document.activeElement===((qe=pe.current)===null||qe===void 0?void 0:qe.input)&&Be.preventDefault()},Ie=Be=>{var qe,Qe;ze&&ze((Qe=(qe=pe.current)===null||qe===void 0?void 0:qe.input)===null||Qe===void 0?void 0:Qe.value,Be,{source:"input"})},H=Be=>{Rt.current||Ne||Ie(Be)},R=typeof Z=="boolean"?ee.createElement(G.Z,null):null,P=`${Zt}-button`;let fe;const oe=Z||{},te=oe.type&&oe.type.__ANT_BUTTON===!0;te||oe.type==="button"?fe=(0,Q.Tm)(oe,Object.assign({onMouseDown:J,onClick:Be=>{var qe,Qe;(Qe=(qe=oe==null?void 0:oe.props)===null||qe===void 0?void 0:qe.onClick)===null||Qe===void 0||Qe.call(qe,Be),Ie(Be)},key:"enterButton"},te?{className:P,size:he}:{})):fe=ee.createElement(L.ZP,{className:P,type:Z?"primary":void 0,size:he,disabled:Ue,key:"enterButton",onMouseDown:J,onClick:Ie,loading:Ne,icon:R},Z),me&&(fe=[fe,(0,Q.Tm)(me,{key:"addonAfter"})]);const Ae=U()(Zt,{[`${Zt}-rtl`]:en==="rtl",[`${Zt}-${he}`]:!!he,[`${Zt}-with-button`]:!!Z},q),je=Be=>{Rt.current=!0,pt==null||pt(Be)},ke=Be=>{Rt.current=!1,gt==null||gt(Be)};return ee.createElement(o.Z,Object.assign({ref:(0,_.sQ)(pe,be),onPressEnter:H},at,{size:he,onCompositionStart:je,onCompositionEnd:ke,prefixCls:ut,addonAfter:fe,suffix:x,onChange:le,className:Ae,disabled:Ue}))}),Se=p(1643);const ge=o.Z;ge.Group=ne,ge.Search=Ce,ge.TextArea=Se.Z,ge.Password=$;var de=ge},9937:function(Qt,He,p){"use strict";p.d(He,{M1:function(){return w},TM:function(){return Q},Xy:function(){return ne},bi:function(){return k},e5:function(){return G},ik:function(){return g},nz:function(){return A},pU:function(){return m},s7:function(){return _},x0:function(){return I}});var O=p(17313),U=p(74207),ee=p(37613),ue=p(83116);const A=L=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:L,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),m=L=>({borderColor:L.hoverBorderColor}),w=L=>({borderColor:L.activeBorderColor,boxShadow:L.activeShadow,outline:0}),ne=L=>({color:L.colorTextDisabled,backgroundColor:L.colorBgContainerDisabled,borderColor:L.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},m((0,ee.TS)(L,{hoverBorderColor:L.colorBorder})))}),o=L=>{const{paddingBlockLG:D,fontSizeLG:Y,lineHeightLG:j,borderRadiusLG:xe,paddingInlineLG:Ce}=L;return{padding:`${D}px ${Ce}px`,fontSize:Y,lineHeight:j,borderRadius:xe}},I=L=>({padding:`${L.paddingBlockSM}px ${L.paddingInlineSM}px`,borderRadius:L.borderRadiusSM}),k=(L,D)=>{const{componentCls:Y,colorError:j,colorWarning:xe,errorActiveShadow:Ce,warningActiveShadow:Se,colorErrorBorderHover:ge,colorWarningBorderHover:de}=L;return{[`&-status-error:not(${D}-disabled):not(${D}-borderless)${D}`]:{borderColor:j,"&:hover":{borderColor:ge},"&:focus, &-focused":Object.assign({},w((0,ee.TS)(L,{activeBorderColor:j,activeShadow:Ce}))),[`${Y}-prefix, ${Y}-suffix`]:{color:j}},[`&-status-warning:not(${D}-disabled):not(${D}-borderless)${D}`]:{borderColor:xe,"&:hover":{borderColor:de},"&:focus, &-focused":Object.assign({},w((0,ee.TS)(L,{activeBorderColor:xe,activeShadow:Se}))),[`${Y}-prefix, ${Y}-suffix`]:{color:xe}}}},g=L=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${L.paddingBlock}px ${L.paddingInline}px`,color:L.colorText,fontSize:L.fontSize,lineHeight:L.lineHeight,backgroundColor:L.colorBgContainer,backgroundImage:"none",borderWidth:L.lineWidth,borderStyle:L.lineType,borderColor:L.colorBorder,borderRadius:L.borderRadius,transition:`all ${L.motionDurationMid}`},A(L.colorTextPlaceholder)),{"&:hover":Object.assign({},m(L)),"&:focus, &-focused":Object.assign({},w(L)),"&-disabled, &[disabled]":Object.assign({},ne(L)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:L.controlHeight,lineHeight:L.lineHeight,verticalAlign:"bottom",transition:`all ${L.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(L)),"&-sm":Object.assign({},I(L)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),_=L=>{const{componentCls:D,antCls:Y}=L;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:L.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${D}, &-lg > ${D}-group-addon`]:Object.assign({},o(L)),[`&-sm ${D}, &-sm > ${D}-group-addon`]:Object.assign({},I(L)),[`&-lg ${Y}-select-single ${Y}-select-selector`]:{height:L.controlHeightLG},[`&-sm ${Y}-select-single ${Y}-select-selector`]:{height:L.controlHeightSM},[`> ${D}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${D}-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 ${L.paddingInline}px`,color:L.colorText,fontWeight:"normal",fontSize:L.fontSize,textAlign:"center",backgroundColor:L.colorFillAlter,border:`${L.lineWidth}px ${L.lineType} ${L.colorBorder}`,borderRadius:L.borderRadius,transition:`all ${L.motionDurationSlow}`,lineHeight:1,[`${Y}-select`]:{margin:`-${L.paddingBlock+1}px -${L.paddingInline}px`,[`&${Y}-select-single:not(${Y}-select-customize-input)`]:{[`${Y}-select-selector`]:{backgroundColor:"inherit",border:`${L.lineWidth}px ${L.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Y}-select-selector`]:{color:L.colorPrimary}}},[`${Y}-cascader-picker`]:{margin:`-9px -${L.paddingInline}px`,backgroundColor:"transparent",[`${Y}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${D}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${D}-search-with-button &`]:{zIndex:0}}},[`> ${D}:first-child, ${D}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${D}-affix-wrapper`]:{[`&:not(:first-child) ${D}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${D}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${D}:last-child, ${D}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${D}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${D}-search &`]:{borderStartStartRadius:L.borderRadius,borderEndStartRadius:L.borderRadius}},[`&:not(:first-child), ${D}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${D}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,O.dF)()),{[`${D}-group-addon, ${D}-group-wrap, > ${D}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:L.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${D}-affix-wrapper,
|
|
|
& > ${D}-number-affix-wrapper,
|
|
|
& > ${Y}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-L.lineWidth,borderInlineEndWidth:L.lineWidth},[`${D}`]:{float:"none"},[`& > ${Y}-select > ${Y}-select-selector,
|
|
|
& > ${Y}-select-auto-complete ${D},
|
|
|
& > ${Y}-cascader-picker ${D},
|
|
|
& > ${D}-group-wrapper ${D}`]:{borderInlineEndWidth:L.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Y}-select-focused`]:{zIndex:1},[`& > ${Y}-select > ${Y}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Y}-select:first-child > ${Y}-select-selector,
|
|
|
& > ${Y}-select-auto-complete:first-child ${D},
|
|
|
& > ${Y}-cascader-picker:first-child ${D}`]:{borderStartStartRadius:L.borderRadius,borderEndStartRadius:L.borderRadius},[`& > *:last-child,
|
|
|
& > ${Y}-select:last-child > ${Y}-select-selector,
|
|
|
& > ${Y}-cascader-picker:last-child ${D},
|
|
|
& > ${Y}-cascader-picker-focused:last-child ${D}`]:{borderInlineEndWidth:L.lineWidth,borderStartEndRadius:L.borderRadius,borderEndEndRadius:L.borderRadius},[`& > ${Y}-select-auto-complete ${D}`]:{verticalAlign:"top"},[`${D}-group-wrapper + ${D}-group-wrapper`]:{marginInlineStart:-L.lineWidth,[`${D}-affix-wrapper`]:{borderRadius:0}},[`${D}-group-wrapper:not(:last-child)`]:{[`&${D}-search > ${D}-group`]:{[`& > ${D}-group-addon > ${D}-search-button`]:{borderRadius:0},[`& > ${D}`]:{borderStartStartRadius:L.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:L.borderRadius}}}})}},S=L=>{const{componentCls:D,controlHeightSM:Y,lineWidth:j}=L,Ce=(Y-j*2-16)/2;return{[D]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.Wf)(L)),g(L)),k(L,D)),{'&[type="color"]':{height:L.controlHeight,[`&${D}-lg`]:{height:L.controlHeightLG},[`&${D}-sm`]:{height:Y,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},T=L=>{const{componentCls:D}=L;return{[`${D}-clear-icon`]:{margin:0,color:L.colorTextQuaternary,fontSize:L.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${L.motionDurationSlow}`,"&:hover":{color:L.colorTextTertiary},"&:active":{color:L.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${L.inputAffixPadding}px`}}}},N=L=>{const{componentCls:D,inputAffixPadding:Y,colorTextDescription:j,motionDurationSlow:xe,colorIcon:Ce,colorIconHover:Se,iconCls:ge}=L;return{[`${D}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g(L)),{display:"inline-flex",[`&:not(${D}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},m(L)),{zIndex:1,[`${D}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${D}[disabled]`]:{background:"transparent"}},[`> input${D}`]:{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"'},[`${D}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:L.paddingXS}},"&-show-count-suffix":{color:j},"&-show-count-has-suffix":{marginInlineEnd:L.paddingXXS},"&-prefix":{marginInlineEnd:Y},"&-suffix":{marginInlineStart:Y}}}),T(L)),{[`${ge}${D}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${xe}`,"&:hover":{color:Se}}}),k(L,`${D}-affix-wrapper`))}},ie=L=>{const{componentCls:D,colorError:Y,colorWarning:j,borderRadiusLG:xe,borderRadiusSM:Ce}=L;return{[`${D}-group`]:Object.assign(Object.assign(Object.assign({},(0,O.Wf)(L)),_(L)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${D}-group-addon`]:{borderRadius:xe,fontSize:L.fontSizeLG}},"&-sm":{[`${D}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${D}-group-addon`]:{color:Y,borderColor:Y}},"&-status-warning":{[`${D}-group-addon`]:{color:j,borderColor:j}},"&-disabled":{[`${D}-group-addon`]:Object.assign({},ne(L))},[`&:not(${D}-compact-first-item):not(${D}-compact-last-item)${D}-compact-item`]:{[`${D}, ${D}-group-addon`]:{borderRadius:0}},[`&:not(${D}-compact-last-item)${D}-compact-first-item`]:{[`${D}, ${D}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${D}-compact-first-item)${D}-compact-last-item`]:{[`${D}, ${D}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},z=L=>{const{componentCls:D,antCls:Y}=L,j=`${D}-search`;return{[j]:{[`${D}`]:{"&:hover, &:focus":{borderColor:L.colorPrimaryHover,[`+ ${D}-group-addon ${j}-button:not(${Y}-btn-primary)`]:{borderInlineStartColor:L.colorPrimaryHover}}},[`${D}-affix-wrapper`]:{borderRadius:0},[`${D}-lg`]:{lineHeight:L.lineHeightLG-2e-4},[`> ${D}-group`]:{[`> ${D}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${j}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:L.borderRadius,borderEndEndRadius:L.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${j}-button:not(${Y}-btn-primary)`]:{color:L.colorTextDescription,"&:hover":{color:L.colorPrimaryHover},"&:active":{color:L.colorPrimaryActive},[`&${Y}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${j}-button`]:{height:L.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${j}-button`]:{height:L.controlHeightLG},[`&-small ${j}-button`]:{height:L.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${D}-compact-item`]:{[`&:not(${D}-compact-last-item)`]:{[`${D}-group-addon`]:{[`${D}-search-button`]:{marginInlineEnd:-L.lineWidth,borderRadius:0}}},[`&:not(${D}-compact-first-item)`]:{[`${D},${D}-affix-wrapper`]:{borderRadius:0}},[`> ${D}-group-addon ${D}-search-button,
|
|
|
> ${D},
|
|
|
${D}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${D}-affix-wrapper-focused`]:{zIndex:2}}}}},$=L=>{const{componentCls:D,paddingLG:Y}=L,j=`${D}-textarea`;return{[j]:{position:"relative","&-show-count":{[`> ${D}`]:{height:"100%"},[`${D}-data-count`]:{position:"absolute",bottom:-L.fontSize*L.lineHeight,insetInlineEnd:0,color:L.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${D}`]:{paddingInlineEnd:Y}},[`&-affix-wrapper${j}-has-feedback`]:{[`${D}`]:{paddingInlineEnd:Y}},[`&-affix-wrapper${D}-affix-wrapper`]:{padding:0,[`> textarea${D}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${D}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${D}-clear-icon`]:{position:"absolute",insetInlineEnd:L.paddingXS,insetBlockStart:L.paddingXS},[`${j}-suffix`]:{position:"absolute",top:0,insetInlineEnd:L.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function G(L){return(0,ee.TS)(L,{inputAffixPadding:L.paddingXXS})}const Q=L=>{const{controlHeight:D,fontSize:Y,lineHeight:j,lineWidth:xe,controlHeightSM:Ce,controlHeightLG:Se,fontSizeLG:ge,lineHeightLG:de,paddingSM:W,controlPaddingHorizontalSM:be,controlPaddingHorizontal:F,colorFillAlter:ce,colorPrimaryHover:q,controlOutlineWidth:y,controlOutline:x,colorErrorOutline:Z,colorWarningOutline:me}=L;return{paddingBlock:Math.max(Math.round((D-Y*j)/2*10)/10-xe,3),paddingBlockSM:Math.max(Math.round((Ce-Y*j)/2*10)/10-xe,0),paddingBlockLG:Math.ceil((Se-ge*de)/2*10)/10-xe,paddingInline:W-xe,paddingInlineSM:be-xe,paddingInlineLG:F-xe,addonBg:ce,activeBorderColor:q,hoverBorderColor:q,activeShadow:`0 0 0 ${y}px ${x}`,errorActiveShadow:`0 0 0 ${y}px ${Z}`,warningActiveShadow:`0 0 0 ${y}px ${me}`}};He.ZP=(0,ue.Z)("Input",L=>{const D=(0,ee.TS)(L,G(L));return[S(D),$(D),N(D),ie(D),z(D),(0,U.c)(D)]},Q)},45818:function(Qt,He,p){"use strict";p.d(He,{D:function(){return G},Z:function(){return D}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(j,xe){return U.createElement(A.Z,(0,O.Z)({},j,{ref:xe,icon:ue}))},w=U.forwardRef(m),ne=w,o=p(33853),I=p(38819),k=p(92310),g=p.n(k),_=p(2738),T=Y=>!isNaN(parseFloat(Y))&&isFinite(Y),N=p(36355),ie=p(84966),z=function(Y,j){var xe={};for(var Ce in Y)Object.prototype.hasOwnProperty.call(Y,Ce)&&j.indexOf(Ce)<0&&(xe[Ce]=Y[Ce]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ce=Object.getOwnPropertySymbols(Y);Se<Ce.length;Se++)j.indexOf(Ce[Se])<0&&Object.prototype.propertyIsEnumerable.call(Y,Ce[Se])&&(xe[Ce[Se]]=Y[Ce[Se]]);return xe};const $={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},G=U.createContext({}),Q=(()=>{let Y=0;return function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Y+=1,`${j}${Y}`}})();var D=U.forwardRef((Y,j)=>{const{prefixCls:xe,className:Ce,trigger:Se,children:ge,defaultCollapsed:de=!1,theme:W="dark",style:be={},collapsible:F=!1,reverseArrow:ce=!1,width:q=200,collapsedWidth:y=80,zeroWidthTriggerStyle:x,breakpoint:Z,onCollapse:me,onBreakpoint:Ne}=Y,Ue=z(Y,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ze}=(0,U.useContext)(ie.Gs),[et,pt]=(0,U.useState)("collapsed"in Y?Y.collapsed:de),[gt,at]=(0,U.useState)(!1);(0,U.useEffect)(()=>{"collapsed"in Y&&pt(Y.collapsed)},[Y.collapsed]);const Ot=(he,pe)=>{"collapsed"in Y||pt(he),me==null||me(he,pe)},en=(0,U.useRef)();en.current=he=>{at(he.matches),Ne==null||Ne(he.matches),et!==he.matches&&Ot(he.matches,"responsive")},(0,U.useEffect)(()=>{function he(le){return en.current(le)}let pe;if(typeof window!="undefined"){const{matchMedia:le}=window;if(le&&Z&&Z in $){pe=le(`(max-width: ${$[Z]})`);try{pe.addEventListener("change",he)}catch(J){pe.addListener(he)}he(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",he)}catch(le){pe==null||pe.removeListener(he)}}},[Z]),(0,U.useEffect)(()=>{const he=Q("ant-sider-");return ze.addSider(he),()=>ze.removeSider(he)},[]);const Rt=()=>{Ot(!et,"clickTrigger")},{getPrefixCls:Zt}=(0,U.useContext)(N.E_),ut=()=>{const he=Zt("layout-sider",xe),pe=(0,_.Z)(Ue,["collapsed"]),le=et?y:q,J=T(le)?`${le}px`:String(le),Ie=parseFloat(String(y||0))===0?U.createElement("span",{onClick:Rt,className:g()(`${he}-zero-width-trigger`,`${he}-zero-width-trigger-${ce?"right":"left"}`),style:x},Se||U.createElement(ne,null)):null,P={expanded:ce?U.createElement(I.Z,null):U.createElement(o.Z,null),collapsed:ce?U.createElement(o.Z,null):U.createElement(I.Z,null)}[et?"collapsed":"expanded"],fe=Se!==null?Ie||U.createElement("div",{className:`${he}-trigger`,onClick:Rt,style:{width:J}},Se||P):null,oe=Object.assign(Object.assign({},be),{flex:`0 0 ${J}`,maxWidth:J,minWidth:J,width:J}),te=g()(he,`${he}-${W}`,{[`${he}-collapsed`]:!!et,[`${he}-has-trigger`]:F&&Se!==null&&!Ie,[`${he}-below`]:!!gt,[`${he}-zero-width`]:parseFloat(J)===0},Ce);return U.createElement("aside",Object.assign({className:te},pe,{style:oe,ref:j}),U.createElement("div",{className:`${he}-children`},ge),F||gt&&Ie?fe:null)},Ct=U.useMemo(()=>({siderCollapsed:et}),[et]);return U.createElement(G.Provider,{value:Ct},ut())})},84966:function(Qt,He,p){"use strict";p.d(He,{VY:function(){return G},$_:function(){return $},h4:function(){return z},Gs:function(){return _},ZP:function(){return Q}});var O=p(80702),U=p(92310),ee=p.n(U),ue=p(2738),A=p(59301),m=p(36355),w=p(83116),o=L=>{const{componentCls:D,bodyBg:Y,lightSiderBg:j,lightTriggerBg:xe,lightTriggerColor:Ce}=L;return{[`${D}-sider-light`]:{background:j,[`${D}-sider-trigger`]:{color:Ce,background:xe},[`${D}-sider-zero-width-trigger`]:{color:Ce,background:xe,border:`1px solid ${Y}`,borderInlineStart:0}}}};const I=L=>{const{antCls:D,componentCls:Y,colorText:j,triggerColor:xe,footerBg:Ce,triggerBg:Se,headerHeight:ge,headerPadding:de,headerColor:W,footerPadding:be,triggerHeight:F,zeroTriggerHeight:ce,zeroTriggerWidth:q,motionDurationMid:y,motionDurationSlow:x,fontSize:Z,borderRadius:me,bodyBg:Ne,headerBg:Ue,siderBg:ze}=L;return{[Y]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ne,"&, *":{boxSizing:"border-box"},[`&${Y}-has-sider`]:{flexDirection:"row",[`> ${Y}, > ${Y}-content`]:{width:0}},[`${Y}-header, &${Y}-footer`]:{flex:"0 0 auto"},[`${Y}-sider`]:{position:"relative",minWidth:0,background:ze,transition:`all ${y}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${D}-menu${D}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:F},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:F,color:xe,lineHeight:`${F}px`,textAlign:"center",background:Se,cursor:"pointer",transition:`all ${y}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ge,insetInlineEnd:-q,zIndex:1,width:q,height:ce,color:xe,fontSize:L.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ze,borderStartStartRadius:0,borderStartEndRadius:me,borderEndEndRadius:me,borderEndStartRadius:0,cursor:"pointer",transition:`background ${x} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${x}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-q,borderStartStartRadius:me,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:me}}}}},o(L)),{"&-rtl":{direction:"rtl"}}),[`${Y}-header`]:{height:ge,padding:de,color:W,lineHeight:`${ge}px`,background:Ue,[`${D}-menu`]:{lineHeight:"inherit"}},[`${Y}-footer`]:{padding:be,color:j,fontSize:Z,background:Ce},[`${Y}-content`]:{flex:"auto",minHeight:0}}};var k=(0,w.Z)("Layout",L=>[I(L)],L=>{const{colorBgLayout:D,controlHeight:Y,controlHeightLG:j,colorText:xe,controlHeightSM:Ce,marginXXS:Se,colorTextLightSolid:ge,colorBgContainer:de}=L,W=j*1.25;return{colorBgHeader:"#001529",colorBgBody:D,colorBgTrigger:"#002140",bodyBg:D,headerBg:"#001529",headerHeight:Y*2,headerPadding:`0 ${W}px`,headerColor:xe,footerPadding:`${Ce}px ${W}px`,footerBg:D,siderBg:"#001529",triggerHeight:j+Se*2,triggerBg:"#002140",triggerColor:ge,zeroTriggerWidth:j,zeroTriggerHeight:j,lightSiderBg:de,lightTriggerBg:de,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),g=function(L,D){var Y={};for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&D.indexOf(j)<0&&(Y[j]=L[j]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,j=Object.getOwnPropertySymbols(L);xe<j.length;xe++)D.indexOf(j[xe])<0&&Object.prototype.propertyIsEnumerable.call(L,j[xe])&&(Y[j[xe]]=L[j[xe]]);return Y};const _=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function S(L){let{suffixCls:D,tagName:Y,displayName:j}=L;return xe=>A.forwardRef((Se,ge)=>A.createElement(xe,Object.assign({ref:ge,suffixCls:D,tagName:Y},Se)))}const T=A.forwardRef((L,D)=>{const{prefixCls:Y,suffixCls:j,className:xe,tagName:Ce}=L,Se=g(L,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ge}=A.useContext(m.E_),de=ge("layout",Y),[W,be]=k(de),F=j?`${de}-${j}`:de;return W(A.createElement(Ce,Object.assign({className:ee()(Y||F,xe,be),ref:D},Se)))}),N=A.forwardRef((L,D)=>{const{direction:Y}=A.useContext(m.E_),[j,xe]=A.useState([]),{prefixCls:Ce,className:Se,rootClassName:ge,children:de,hasSider:W,tagName:be,style:F}=L,ce=g(L,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),q=(0,ue.Z)(ce,["suffixCls"]),{getPrefixCls:y,layout:x}=A.useContext(m.E_),Z=y("layout",Ce),[me,Ne]=k(Z),Ue=ee()(Z,{[`${Z}-has-sider`]:typeof W=="boolean"?W:j.length>0,[`${Z}-rtl`]:Y==="rtl"},x==null?void 0:x.className,Se,ge,Ne),ze=A.useMemo(()=>({siderHook:{addSider:et=>{xe(pt=>[].concat((0,O.Z)(pt),[et]))},removeSider:et=>{xe(pt=>pt.filter(gt=>gt!==et))}}}),[]);return me(A.createElement(_.Provider,{value:ze},A.createElement(be,Object.assign({ref:D,className:Ue,style:Object.assign(Object.assign({},x==null?void 0:x.style),F)},q),de)))}),ie=S({tagName:"div",displayName:"Layout"})(N),z=S({suffixCls:"header",tagName:"header",displayName:"Header"})(T),$=S({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),G=S({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var Q=ie},40875:function(Qt,He,p){"use strict";p.d(He,{J:function(){return m}});var O=p(59301),U=p(33234),ee=p(70425),ue=function(w,ne){var o={};for(var I in w)Object.prototype.hasOwnProperty.call(w,I)&&ne.indexOf(I)<0&&(o[I]=w[I]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,I=Object.getOwnPropertySymbols(w);k<I.length;k++)ne.indexOf(I[k])<0&&Object.prototype.propertyIsEnumerable.call(w,I[k])&&(o[I[k]]=w[I[k]]);return o};const A=O.createContext(null),m=O.forwardRef((w,ne)=>{const{children:o}=w,I=ue(w,["children"]),k=O.useContext(A),g=O.useMemo(()=>Object.assign(Object.assign({},k),I),[k,I.prefixCls,I.mode,I.selectable]);return O.createElement(A.Provider,{value:g},O.createElement(U.BR,null,(0,ee.supportNodeRef)(o)?O.cloneElement(o,{ref:ne}):o))});He.Z=A},20834:function(Qt,He,p){"use strict";p.d(He,{default:function(){return Ct}});var O=p(15285),U=p(59301),ee=p(45818),ue=p(92310),A=p.n(ue),m=p(36355),w=function(he,pe){var le={};for(var J in he)Object.prototype.hasOwnProperty.call(he,J)&&pe.indexOf(J)<0&&(le[J]=he[J]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,J=Object.getOwnPropertySymbols(he);Ie<J.length;Ie++)pe.indexOf(J[Ie])<0&&Object.prototype.propertyIsEnumerable.call(he,J[Ie])&&(le[J[Ie]]=he[J[Ie]]);return le},o=he=>{const{prefixCls:pe,className:le,dashed:J}=he,Ie=w(he,["prefixCls","className","dashed"]),{getPrefixCls:H}=U.useContext(m.E_),R=H("menu",pe),P=A()({[`${R}-item-divider-dashed`]:!!J},le);return U.createElement(O.iz,Object.assign({className:P},Ie))},I=p(11592),k=p(2738),g=p(6848),_=p(92343),T=(0,U.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ie=he=>{var pe;const{className:le,children:J,icon:Ie,title:H,danger:R}=he,{prefixCls:P,firstLevel:fe,direction:oe,disableMenuItemTitleTooltip:te,inlineCollapsed:Ae}=U.useContext(T),je=xt=>{const Dt=U.createElement("span",{className:`${P}-title-content`},J);return(!Ie||(0,_.l$)(J)&&J.type==="span")&&J&&xt&&fe&&typeof J=="string"?U.createElement("div",{className:`${P}-inline-collapsed-noicon`},J.charAt(0)):Dt},{siderCollapsed:ke}=U.useContext(ee.D);let Be=H;typeof H=="undefined"?Be=fe?J:"":H===!1&&(Be="");const qe={title:Be};!ke&&!Ae&&(qe.title=null,qe.open=!1);const Qe=(0,I.Z)(J).length;let Ve=U.createElement(O.ck,Object.assign({},(0,k.Z)(he,["title","icon","danger"]),{className:A()({[`${P}-item-danger`]:R,[`${P}-item-only-child`]:(Ie?Qe+1:Qe)===1},le),title:typeof H=="string"?H:void 0}),(0,_.Tm)(Ie,{className:A()((0,_.l$)(Ie)?(pe=Ie.props)===null||pe===void 0?void 0:pe.className:"",`${P}-item-icon`)}),je(Ae));return te||(Ve=U.createElement(g.Z,Object.assign({},qe,{placement:oe==="rtl"?"left":"right",overlayClassName:`${P}-inline-collapsed-tooltip`}),Ve)),Ve},$=he=>{var pe;const{popupClassName:le,icon:J,title:Ie,theme:H}=he,R=U.useContext(T),{prefixCls:P,inlineCollapsed:fe,theme:oe}=R,te=(0,O.Xl)();let Ae;if(!J)Ae=fe&&!te.length&&Ie&&typeof Ie=="string"?U.createElement("div",{className:`${P}-inline-collapsed-noicon`},Ie.charAt(0)):U.createElement("span",{className:`${P}-title-content`},Ie);else{const ke=(0,_.l$)(Ie)&&Ie.type==="span";Ae=U.createElement(U.Fragment,null,(0,_.Tm)(J,{className:A()((0,_.l$)(J)?(pe=J.props)===null||pe===void 0?void 0:pe.className:"",`${P}-item-icon`)}),ke?Ie:U.createElement("span",{className:`${P}-title-content`},Ie))}const je=U.useMemo(()=>Object.assign(Object.assign({},R),{firstLevel:!1}),[R]);return U.createElement(T.Provider,{value:je},U.createElement(O.Wd,Object.assign({},(0,k.Z)(he,["icon"]),{title:Ae,popupClassName:A()(P,le,`${P}-${H||oe}`)})))},G=p(18785),Q=p(70425),L=p(62892),D=p(40875),Y=function(he,pe){var le={};for(var J in he)Object.prototype.hasOwnProperty.call(he,J)&&pe.indexOf(J)<0&&(le[J]=he[J]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,J=Object.getOwnPropertySymbols(he);Ie<J.length;Ie++)pe.indexOf(J[Ie])<0&&Object.prototype.propertyIsEnumerable.call(he,J[Ie])&&(le[J[Ie]]=he[J[Ie]]);return le};function j(he){return(he||[]).map((pe,le)=>{if(pe&&typeof pe=="object"){const J=pe,{label:Ie,children:H,key:R,type:P}=J,fe=Y(J,["label","children","key","type"]),oe=R!=null?R:`tmp-${le}`;return H||P==="group"?P==="group"?U.createElement(O.BW,Object.assign({key:oe},fe,{title:Ie}),j(H)):U.createElement($,Object.assign({key:oe},fe,{title:Ie}),j(H)):P==="divider"?U.createElement(o,Object.assign({key:oe},fe)):U.createElement(ie,Object.assign({key:oe},fe),Ie)}return null}).filter(pe=>pe)}function xe(he){return U.useMemo(()=>he&&j(he),[he])}var Ce=p(64993),Se=p(17313),ge=p(8378),de=p(13826),W=p(29878),be=p(83116),F=p(37613),q=he=>{const{componentCls:pe,motionDurationSlow:le,horizontalLineHeight:J,colorSplit:Ie,lineWidth:H,lineType:R,itemPaddingInline:P}=he;return{[`${pe}-horizontal`]:{lineHeight:J,border:0,borderBottom:`${H}px ${R} ${Ie}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:P},[`> ${pe}-item:hover,
|
|
|
> ${pe}-item-active,
|
|
|
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${le}`,`background ${le}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},x=he=>{let{componentCls:pe,menuArrowOffset:le}=he;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${le})`},"&::after":{transform:`rotate(45deg) translateY(${le})`}}}}};const Z=he=>Object.assign({},(0,Se.oN)(he));var Ne=(he,pe)=>{const{componentCls:le,itemColor:J,itemSelectedColor:Ie,groupTitleColor:H,itemBg:R,subMenuItemBg:P,itemSelectedBg:fe,activeBarHeight:oe,activeBarWidth:te,activeBarBorderWidth:Ae,motionDurationSlow:je,motionEaseInOut:ke,motionEaseOut:Be,itemPaddingInline:qe,motionDurationMid:Qe,itemHoverColor:Ve,lineType:xt,colorSplit:Dt,itemDisabledColor:vt,dangerItemColor:Bt,dangerItemHoverColor:jt,dangerItemSelectedColor:C,dangerItemActiveBg:B,dangerItemSelectedBg:yt,itemHoverBg:ye,itemActiveBg:Me,menuSubMenuBg:Sn,horizontalItemSelectedColor:it,horizontalItemSelectedBg:nt,horizontalItemBorderRadius:rt,horizontalItemHoverBg:Ee,popupBg:De}=he;return{[`${le}-${pe}, ${le}-${pe} > ${le}`]:{color:J,background:R,[`&${le}-root:focus-visible`]:Object.assign({},Z(he)),[`${le}-item-group-title`]:{color:H},[`${le}-submenu-selected`]:{[`> ${le}-submenu-title`]:{color:Ie}},[`${le}-item-disabled, ${le}-submenu-disabled`]:{color:`${vt} !important`},[`${le}-item:not(${le}-item-selected):not(${le}-submenu-selected)`]:{[`&:hover, > ${le}-submenu-title:hover`]:{color:Ve}},[`&:not(${le}-horizontal)`]:{[`${le}-item:not(${le}-item-selected)`]:{"&:hover":{backgroundColor:ye},"&:active":{backgroundColor:Me}},[`${le}-submenu-title`]:{"&:hover":{backgroundColor:ye},"&:active":{backgroundColor:Me}}},[`${le}-item-danger`]:{color:Bt,[`&${le}-item:hover`]:{[`&:not(${le}-item-selected):not(${le}-submenu-selected)`]:{color:jt}},[`&${le}-item:active`]:{background:B}},[`${le}-item a`]:{"&, &:hover":{color:"inherit"}},[`${le}-item-selected`]:{color:Ie,[`&${le}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${le}-item-selected`]:{backgroundColor:fe,[`&${le}-item-danger`]:{backgroundColor:yt}},[`${le}-item, ${le}-submenu-title`]:{[`&:not(${le}-item-disabled):focus-visible`]:Object.assign({},Z(he))},[`&${le}-submenu > ${le}`]:{backgroundColor:Sn},[`&${le}-popup > ${le}`]:{backgroundColor:De},[`&${le}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${le}-item, > ${le}-submenu`]:{top:Ae,marginTop:-Ae,marginBottom:0,borderRadius:rt,"&::after":{position:"absolute",insetInline:qe,bottom:0,borderBottom:`${oe}px solid transparent`,transition:`border-color ${je} ${ke}`,content:'""'},"&:hover, &-active, &-open":{background:Ee,"&::after":{borderBottomWidth:oe,borderBottomColor:it}},"&-selected":{color:it,backgroundColor:nt,"&:hover":{backgroundColor:nt},"&::after":{borderBottomWidth:oe,borderBottomColor:it}}}}),[`&${le}-root`]:{[`&${le}-inline, &${le}-vertical`]:{borderInlineEnd:`${Ae}px ${xt} ${Dt}`}},[`&${le}-inline`]:{[`${le}-sub${le}-inline`]:{background:P},[`${le}-item, ${le}-submenu-title`]:Ae&&te?{width:`calc(100% + ${Ae}px)`}:{},[`${le}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te}px solid ${Ie}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Qe} ${Be}`,`opacity ${Qe} ${Be}`].join(","),content:'""'},[`&${le}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${le}-selected, ${le}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Qe} ${ke}`,`opacity ${Qe} ${ke}`].join(",")}}}}}};const Ue=he=>{const{componentCls:pe,itemHeight:le,itemMarginInline:J,padding:Ie,menuArrowSize:H,marginXS:R,itemMarginBlock:P}=he,fe=Ie+H+R;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:le,lineHeight:`${le}px`,paddingInline:Ie,overflow:"hidden",textOverflow:"ellipsis",marginInline:J,marginBlock:P,width:`calc(100% - ${J*2}px)`},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:le,lineHeight:`${le}px`},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:fe}}};var et=he=>{const{componentCls:pe,iconCls:le,itemHeight:J,colorTextLightSolid:Ie,dropdownWidth:H,controlHeightLG:R,motionDurationMid:P,motionEaseOut:fe,paddingXL:oe,itemMarginInline:te,fontSizeLG:Ae,motionDurationSlow:je,paddingXS:ke,boxShadowSecondary:Be,collapsedWidth:qe,collapsedIconSize:Qe}=he,Ve={height:J,lineHeight:`${J}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},Ue(he))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},Ue(he)),{boxShadow:Be})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:H,maxHeight:`calc(100vh - ${R*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${je}`,`background ${je}`,`padding ${P} ${fe}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Ve,[`& ${pe}-item-group-title`]:{paddingInlineStart:oe}},[`${pe}-item`]:Ve}},{[`${pe}-inline-collapsed`]:{width:qe,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Ae,textAlign:"center"}}},[`> ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ae/2}px - ${te}px)`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${le}`]:{margin:0,fontSize:Qe,lineHeight:`${J}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${le}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${le}`]:{display:"none"},"a, a:hover":{color:Ie}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Se.vS),{paddingInline:ke})}}]};const pt=he=>{const{componentCls:pe,motionDurationSlow:le,motionDurationMid:J,motionEaseInOut:Ie,motionEaseOut:H,iconCls:R,iconSize:P,iconMarginInlineEnd:fe}=he;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${le}`,`background ${le}`,`padding ${le} ${Ie}`].join(","),[`${pe}-item-icon, ${R}`]:{minWidth:P,fontSize:P,transition:[`font-size ${J} ${H}`,`margin ${le} ${Ie}`,`color ${le}`].join(","),"+ span":{marginInlineStart:fe,opacity:1,transition:[`opacity ${le} ${Ie}`,`margin ${le}`,`color ${le}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Se.Ro)()),[`&${pe}-item-only-child`]:{[`> ${R}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gt=he=>{const{componentCls:pe,motionDurationSlow:le,motionEaseInOut:J,borderRadius:Ie,menuArrowSize:H,menuArrowOffset:R}=he;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:he.margin,width:H,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${le} ${J}, opacity ${le}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:H*.6,height:H*.15,backgroundColor:"currentcolor",borderRadius:Ie,transition:[`background ${le} ${J}`,`transform ${le} ${J}`,`top ${le} ${J}`,`color ${le} ${J}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${R})`},"&::after":{transform:`rotate(-45deg) translateY(${R})`}}}}},at=he=>{const{antCls:pe,componentCls:le,fontSize:J,motionDurationSlow:Ie,motionDurationMid:H,motionEaseInOut:R,paddingXS:P,padding:fe,colorSplit:oe,lineWidth:te,zIndexPopup:Ae,borderRadiusLG:je,subMenuItemBorderRadius:ke,menuArrowSize:Be,menuArrowOffset:qe,lineType:Qe,menuPanelMaskInset:Ve,groupTitleLineHeight:xt,groupTitleFontSize:Dt}=he;return[{"":{[`${le}`]:Object.assign(Object.assign({},(0,Se.dF)()),{"&-hidden":{display:"none"}})},[`${le}-submenu-hidden`]:{display:"none"}},{[le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Se.Wf)(he)),(0,Se.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:J,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ie} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${le}-item`]:{flex:"none"}},[`${le}-item, ${le}-submenu, ${le}-submenu-title`]:{borderRadius:he.itemBorderRadius},[`${le}-item-group-title`]:{padding:`${P}px ${fe}px`,fontSize:Dt,lineHeight:xt,transition:`all ${Ie}`},[`&-horizontal ${le}-submenu`]:{transition:[`border-color ${Ie} ${R}`,`background ${Ie} ${R}`].join(",")},[`${le}-submenu, ${le}-submenu-inline`]:{transition:[`border-color ${Ie} ${R}`,`background ${Ie} ${R}`,`padding ${H} ${R}`].join(",")},[`${le}-submenu ${le}-sub`]:{cursor:"initial",transition:[`background ${Ie} ${R}`,`padding ${Ie} ${R}`].join(",")},[`${le}-title-content`]:{transition:`color ${Ie}`},[`${le}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${le}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:oe,borderStyle:Qe,borderWidth:0,borderTopWidth:te,marginBlock:te,padding:0,"&-dashed":{borderStyle:"dashed"}}}),pt(he)),{[`${le}-item-group`]:{[`${le}-item-group-list`]:{margin:0,padding:0,[`${le}-item, ${le}-submenu-title`]:{paddingInline:`${J*2}px ${fe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ae,borderRadius:je,boxShadow:"none",transformOrigin:"0 0",[`&${le}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ve},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:he.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:he.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:he.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:he.paddingXS},[`> ${le}`]:Object.assign(Object.assign(Object.assign({borderRadius:je},pt(he)),gt(he)),{[`${le}-item, ${le}-submenu > ${le}-submenu-title`]:{borderRadius:ke},[`${le}-submenu-title::after`]:{transition:`transform ${Ie} ${R}`}})}}),gt(he)),{[`&-inline-collapsed ${le}-submenu-arrow,
|
|
|
&-inline ${le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${qe})`},"&::after":{transform:`rotate(45deg) translateX(-${qe})`}},[`${le}-submenu-open${le}-submenu-inline > ${le}-submenu-title > ${le}-submenu-arrow`]:{transform:`translateY(-${Be*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${qe})`},"&::before":{transform:`rotate(45deg) translateX(${qe})`}}})},{[`${pe}-layout-header`]:{[le]:{lineHeight:"inherit"}}}]};var Ot=(he,pe)=>(0,be.Z)("Menu",J=>{if(pe===!1)return[];const{colorBgElevated:Ie,colorPrimary:H,colorTextLightSolid:R,controlHeightLG:P,fontSize:fe,darkItemColor:oe,darkDangerItemColor:te,darkItemBg:Ae,darkSubMenuItemBg:je,darkItemSelectedColor:ke,darkItemSelectedBg:Be,darkDangerItemSelectedBg:qe,darkItemHoverBg:Qe,darkGroupTitleColor:Ve,darkItemHoverColor:xt,darkItemDisabledColor:Dt,darkDangerItemHoverColor:vt,darkDangerItemSelectedColor:Bt,darkDangerItemActiveBg:jt}=J,C=fe/7*5,B=(0,F.TS)(J,{menuArrowSize:C,menuHorizontalHeight:P*1.15,menuArrowOffset:`${C*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ie}),yt=(0,F.TS)(B,{itemColor:oe,itemHoverColor:xt,groupTitleColor:Ve,itemSelectedColor:ke,itemBg:Ae,popupBg:Ae,subMenuItemBg:je,itemActiveBg:"transparent",itemSelectedBg:Be,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Qe,itemDisabledColor:Dt,dangerItemColor:te,dangerItemHoverColor:vt,dangerItemSelectedColor:Bt,dangerItemActiveBg:jt,dangerItemSelectedBg:qe,menuSubMenuBg:je,horizontalItemSelectedColor:R,horizontalItemSelectedBg:H});return[at(B),q(B),et(B),Ne(B,"light"),Ne(yt,"dark"),x(B),(0,ge.Z)(B),(0,de.oN)(B,"slide-up"),(0,de.oN)(B,"slide-down"),(0,W._y)(B,"zoom-big")]},J=>{const{colorPrimary:Ie,colorError:H,colorTextDisabled:R,colorErrorBg:P,colorText:fe,colorTextDescription:oe,colorBgContainer:te,colorFillAlter:Ae,colorFillContent:je,lineWidth:ke,lineWidthBold:Be,controlItemBgActive:qe,colorBgTextHover:Qe,controlHeightLG:Ve,lineHeight:xt,colorBgElevated:Dt,marginXXS:vt,padding:Bt,fontSize:jt,controlHeightSM:C,fontSizeLG:B,colorTextLightSolid:yt,colorErrorHover:ye}=J,Me=new Ce.C(yt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:J.zIndexPopupBase+50,radiusItem:J.borderRadiusLG,itemBorderRadius:J.borderRadiusLG,radiusSubMenuItem:J.borderRadiusSM,subMenuItemBorderRadius:J.borderRadiusSM,colorItemText:fe,itemColor:fe,colorItemTextHover:fe,itemHoverColor:fe,colorItemTextHoverHorizontal:Ie,horizontalItemHoverColor:Ie,colorGroupTitle:oe,groupTitleColor:oe,colorItemTextSelected:Ie,itemSelectedColor:Ie,colorItemTextSelectedHorizontal:Ie,horizontalItemSelectedColor:Ie,colorItemBg:te,itemBg:te,colorItemBgHover:Qe,itemHoverBg:Qe,colorItemBgActive:je,itemActiveBg:qe,colorSubItemBg:Ae,subMenuItemBg:Ae,colorItemBgSelected:qe,itemSelectedBg:qe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Be,activeBarHeight:Be,colorActiveBarBorderSize:ke,activeBarBorderWidth:ke,colorItemTextDisabled:R,itemDisabledColor:R,colorDangerItemText:H,dangerItemColor:H,colorDangerItemTextHover:H,dangerItemHoverColor:H,colorDangerItemTextSelected:H,dangerItemSelectedColor:H,colorDangerItemBgActive:P,dangerItemActiveBg:P,colorDangerItemBgSelected:P,dangerItemSelectedBg:P,itemMarginInline:J.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ve,groupTitleLineHeight:xt,collapsedWidth:Ve*2,popupBg:Dt,itemMarginBlock:vt,itemPaddingInline:Bt,horizontalLineHeight:`${Ve*1.15}px`,iconSize:jt,iconMarginInlineEnd:C-jt,collapsedIconSize:B,groupTitleFontSize:jt,darkItemDisabledColor:new Ce.C(yt).setAlpha(.25).toRgbString(),darkItemColor:Me,darkDangerItemColor:H,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:yt,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:H,darkItemHoverBg:"transparent",darkGroupTitleColor:Me,darkItemHoverColor:yt,darkDangerItemHoverColor:ye,darkDangerItemSelectedColor:yt,darkDangerItemActiveBg:H}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(he),en=function(he,pe){var le={};for(var J in he)Object.prototype.hasOwnProperty.call(he,J)&&pe.indexOf(J)<0&&(le[J]=he[J]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,J=Object.getOwnPropertySymbols(he);Ie<J.length;Ie++)pe.indexOf(J[Ie])<0&&Object.prototype.propertyIsEnumerable.call(he,J[Ie])&&(le[J[Ie]]=he[J[Ie]]);return le},Zt=(0,U.forwardRef)((he,pe)=>{var le,J;const Ie=U.useContext(D.Z),H=Ie||{},{getPrefixCls:R,getPopupContainer:P,direction:fe,menu:oe}=U.useContext(m.E_),te=R(),{prefixCls:Ae,className:je,style:ke,theme:Be="light",expandIcon:qe,_internalDisableMenuItemTitleTooltip:Qe,inlineCollapsed:Ve,siderCollapsed:xt,items:Dt,children:vt,rootClassName:Bt,mode:jt,selectable:C,onClick:B,overflowedIndicatorPopupClassName:yt}=he,ye=en(he,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Me=(0,k.Z)(ye,["collapsedWidth"]),Sn=xe(Dt)||vt;(le=H.validator)===null||le===void 0||le.call(H,{mode:jt});const it=(0,Q.useEvent)(function(){var Rn;B==null||B.apply(void 0,arguments),(Rn=H.onClick)===null||Rn===void 0||Rn.call(H)}),nt=H.mode||jt,rt=C!=null?C:H.selectable,Ee=U.useMemo(()=>xt!==void 0?xt:Ve,[Ve,xt]),De={horizontal:{motionName:`${te}-slide-up`},inline:(0,L.Z)(te),other:{motionName:`${te}-zoom-big`}},Fe=R("menu",Ae||H.prefixCls),[tt,_e]=Ot(Fe,!Ie),Jt=A()(`${Fe}-${Be}`,oe==null?void 0:oe.className,je);let Ze;if(typeof qe=="function")Ze=qe;else if(qe===null||qe===!1)Ze=null;else if(H.expandIcon===null||H.expandIcon===!1)Ze=null;else{const Rn=qe!=null?qe:H.expandIcon;Ze=(0,_.Tm)(Rn,{className:A()(`${Fe}-submenu-expand-icon`,(0,_.l$)(Rn)?(J=Rn.props)===null||J===void 0?void 0:J.className:"")})}const xn=U.useMemo(()=>({prefixCls:Fe,inlineCollapsed:Ee||!1,direction:fe,firstLevel:!0,theme:Be,mode:nt,disableMenuItemTitleTooltip:Qe}),[Fe,Ee,fe,Qe,Be]);return tt(U.createElement(D.Z.Provider,{value:null},U.createElement(T.Provider,{value:xn},U.createElement(O.ZP,Object.assign({getPopupContainer:P,overflowedIndicator:U.createElement(G.Z,null),overflowedIndicatorPopupClassName:A()(Fe,`${Fe}-${Be}`,yt),mode:nt,selectable:rt,onClick:it},Me,{inlineCollapsed:Ee,style:Object.assign(Object.assign({},oe==null?void 0:oe.style),ke),className:Jt,prefixCls:Fe,direction:fe,defaultMotions:De,expandIcon:Ze,ref:pe,rootClassName:A()(Bt,_e)}),Sn))))});const ut=(0,U.forwardRef)((he,pe)=>{const le=(0,U.useRef)(null),J=U.useContext(ee.D);return(0,U.useImperativeHandle)(pe,()=>({menu:le.current,focus:Ie=>{var H;(H=le.current)===null||H===void 0||H.focus(Ie)}})),U.createElement(Zt,Object.assign({ref:le},he,J))});ut.Item=ie,ut.SubMenu=$,ut.Divider=o,ut.ItemGroup=O.BW;var Ct=ut},58421:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return H}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function(P,fe){return U.createElement(A.Z,(0,O.Z)({},P,{ref:fe,icon:ue}))},w=U.forwardRef(m),ne=w,o=p(49198),I=p(33853),k=p(38819),g=p(92310),_=p.n(g),S=p(49618),T=p(77321),N=p(96949),ie=p(55090),z=p(77205),$=p(38793),G=p(26112),Q={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},L=Q,D=p(91735),Y=function(R){(0,z.Z)(fe,R);var P=(0,$.Z)(fe);function fe(){var oe;(0,N.Z)(this,fe);for(var te=arguments.length,Ae=new Array(te),je=0;je<te;je++)Ae[je]=arguments[je];return oe=P.call.apply(P,[this].concat(Ae)),oe.state={goInputText:""},oe.getValidValue=function(){var ke=oe.state.goInputText;return!ke||Number.isNaN(ke)?void 0:Number(ke)},oe.buildOptionText=function(ke){return"".concat(ke," ").concat(oe.props.locale.items_per_page)},oe.changeSize=function(ke){oe.props.changeSize(Number(ke))},oe.handleChange=function(ke){oe.setState({goInputText:ke.target.value})},oe.handleBlur=function(ke){var Be=oe.props,qe=Be.goButton,Qe=Be.quickGo,Ve=Be.rootPrefixCls,xt=oe.state.goInputText;qe||xt===""||(oe.setState({goInputText:""}),!(ke.relatedTarget&&(ke.relatedTarget.className.indexOf("".concat(Ve,"-item-link"))>=0||ke.relatedTarget.className.indexOf("".concat(Ve,"-item"))>=0))&&Qe(oe.getValidValue()))},oe.go=function(ke){var Be=oe.state.goInputText;Be!==""&&(ke.keyCode===L.ENTER||ke.type==="click")&&(oe.setState({goInputText:""}),oe.props.quickGo(oe.getValidValue()))},oe}return(0,ie.Z)(fe,[{key:"getPageSizeOptions",value:function(){var te=this.props,Ae=te.pageSize,je=te.pageSizeOptions;return je.some(function(ke){return ke.toString()===Ae.toString()})?je:je.concat([Ae.toString()]).sort(function(ke,Be){var qe=Number.isNaN(Number(ke))?0:Number(ke),Qe=Number.isNaN(Number(Be))?0:Number(Be);return qe-Qe})}},{key:"render",value:function(){var te=this,Ae=this.props,je=Ae.pageSize,ke=Ae.locale,Be=Ae.rootPrefixCls,qe=Ae.changeSize,Qe=Ae.quickGo,Ve=Ae.goButton,xt=Ae.selectComponentClass,Dt=Ae.buildOptionText,vt=Ae.selectPrefixCls,Bt=Ae.disabled,jt=this.state.goInputText,C="".concat(Be,"-options"),B=xt,yt=null,ye=null,Me=null;if(!qe&&!Qe)return null;var Sn=this.getPageSizeOptions();if(qe&&B){var it=Sn.map(function(nt,rt){return U.createElement(B.Option,{key:rt,value:nt.toString()},(Dt||te.buildOptionText)(nt))});yt=U.createElement(B,{disabled:Bt,prefixCls:vt,showSearch:!1,className:"".concat(C,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(je||Sn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(rt){return rt.parentNode},"aria-label":ke.page_size,defaultOpen:!1},it)}return Qe&&(Ve&&(Me=typeof Ve=="boolean"?U.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Bt,className:"".concat(C,"-quick-jumper-button")},ke.jump_to_confirm):U.createElement("span",{onClick:this.go,onKeyUp:this.go},Ve)),ye=U.createElement("div",{className:"".concat(C,"-quick-jumper")},ke.jump_to,U.createElement("input",{disabled:Bt,type:"text",value:jt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":ke.page}),ke.page,Me)),U.createElement("li",{className:"".concat(C)},yt,ye)}}]),fe}(U.Component);Y.defaultProps={pageSizeOptions:["10","20","50","100"]};var j=Y,xe=function(P){var fe,oe=P.rootPrefixCls,te=P.page,Ae=P.active,je=P.className,ke=P.showTitle,Be=P.onClick,qe=P.onKeyPress,Qe=P.itemRender,Ve="".concat(oe,"-item"),xt=_()(Ve,"".concat(Ve,"-").concat(te),(fe={},(0,S.Z)(fe,"".concat(Ve,"-active"),Ae),(0,S.Z)(fe,"".concat(Ve,"-disabled"),!te),(0,S.Z)(fe,P.className,je),fe)),Dt=function(){Be(te)},vt=function(C){qe(C,Be,te)},Bt=Qe(te,"page",U.createElement("a",{rel:"nofollow"},te));return Bt?U.createElement("li",{title:ke?te.toString():null,className:xt,onClick:Dt,onKeyPress:vt,tabIndex:0},Bt):null},Ce=xe;function Se(){}function ge(R){var P=Number(R);return typeof P=="number"&&!Number.isNaN(P)&&isFinite(P)&&Math.floor(P)===P}var de=function(P,fe,oe){return oe};function W(R,P,fe){var oe=typeof R=="undefined"?P.pageSize:R;return Math.floor((fe.total-1)/oe)+1}var be=function(R){(0,z.Z)(fe,R);var P=(0,$.Z)(fe);function fe(oe){var te;(0,N.Z)(this,fe),te=P.call(this,oe),te.paginationNode=U.createRef(),te.getJumpPrevPage=function(){return Math.max(1,te.state.current-(te.props.showLessItems?3:5))},te.getJumpNextPage=function(){return Math.min(W(void 0,te.state,te.props),te.state.current+(te.props.showLessItems?3:5))},te.getItemIcon=function(qe,Qe){var Ve=te.props.prefixCls,xt=qe||U.createElement("button",{type:"button","aria-label":Qe,className:"".concat(Ve,"-item-link")});return typeof qe=="function"&&(xt=U.createElement(qe,(0,T.Z)({},te.props))),xt},te.isValid=function(qe){var Qe=te.props.total;return ge(qe)&&qe!==te.state.current&&ge(Qe)&&Qe>0},te.shouldDisplayQuickJumper=function(){var qe=te.props,Qe=qe.showQuickJumper,Ve=qe.total,xt=te.state.pageSize;return Ve<=xt?!1:Qe},te.handleKeyDown=function(qe){(qe.keyCode===L.ARROW_UP||qe.keyCode===L.ARROW_DOWN)&&qe.preventDefault()},te.handleKeyUp=function(qe){var Qe=te.getValidValue(qe),Ve=te.state.currentInputValue;Qe!==Ve&&te.setState({currentInputValue:Qe}),qe.keyCode===L.ENTER?te.handleChange(Qe):qe.keyCode===L.ARROW_UP?te.handleChange(Qe-1):qe.keyCode===L.ARROW_DOWN&&te.handleChange(Qe+1)},te.handleBlur=function(qe){var Qe=te.getValidValue(qe);te.handleChange(Qe)},te.changePageSize=function(qe){var Qe=te.state.current,Ve=W(qe,te.state,te.props);Qe=Qe>Ve?Ve:Qe,Ve===0&&(Qe=te.state.current),typeof qe=="number"&&("pageSize"in te.props||te.setState({pageSize:qe}),"current"in te.props||te.setState({current:Qe,currentInputValue:Qe})),te.props.onShowSizeChange(Qe,qe),"onChange"in te.props&&te.props.onChange&&te.props.onChange(Qe,qe)},te.handleChange=function(qe){var Qe=te.props,Ve=Qe.disabled,xt=Qe.onChange,Dt=te.state,vt=Dt.pageSize,Bt=Dt.current,jt=Dt.currentInputValue;if(te.isValid(qe)&&!Ve){var C=W(void 0,te.state,te.props),B=qe;return qe>C?B=C:qe<1&&(B=1),"current"in te.props||te.setState({current:B}),B!==jt&&te.setState({currentInputValue:B}),xt(B,vt),B}return Bt},te.prev=function(){te.hasPrev()&&te.handleChange(te.state.current-1)},te.next=function(){te.hasNext()&&te.handleChange(te.state.current+1)},te.jumpPrev=function(){te.handleChange(te.getJumpPrevPage())},te.jumpNext=function(){te.handleChange(te.getJumpNextPage())},te.hasPrev=function(){return te.state.current>1},te.hasNext=function(){return te.state.current<W(void 0,te.state,te.props)},te.runIfEnter=function(qe,Qe){if(qe.key==="Enter"||qe.charCode===13){for(var Ve=arguments.length,xt=new Array(Ve>2?Ve-2:0),Dt=2;Dt<Ve;Dt++)xt[Dt-2]=arguments[Dt];Qe.apply(void 0,xt)}},te.runIfEnterPrev=function(qe){te.runIfEnter(qe,te.prev)},te.runIfEnterNext=function(qe){te.runIfEnter(qe,te.next)},te.runIfEnterJumpPrev=function(qe){te.runIfEnter(qe,te.jumpPrev)},te.runIfEnterJumpNext=function(qe){te.runIfEnter(qe,te.jumpNext)},te.handleGoTO=function(qe){(qe.keyCode===L.ENTER||qe.type==="click")&&te.handleChange(te.state.currentInputValue)},te.renderPrev=function(qe){var Qe=te.props,Ve=Qe.prevIcon,xt=Qe.itemRender,Dt=xt(qe,"prev",te.getItemIcon(Ve,"prev page")),vt=!te.hasPrev();return(0,U.isValidElement)(Dt)?(0,U.cloneElement)(Dt,{disabled:vt}):Dt},te.renderNext=function(qe){var Qe=te.props,Ve=Qe.nextIcon,xt=Qe.itemRender,Dt=xt(qe,"next",te.getItemIcon(Ve,"next page")),vt=!te.hasNext();return(0,U.isValidElement)(Dt)?(0,U.cloneElement)(Dt,{disabled:vt}):Dt};var Ae=oe.onChange!==Se,je="current"in oe;je&&!Ae&&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=oe.defaultCurrent;"current"in oe&&(ke=oe.current);var Be=oe.defaultPageSize;return"pageSize"in oe&&(Be=oe.pageSize),ke=Math.min(ke,W(Be,void 0,oe)),te.state={current:ke,currentInputValue:ke,pageSize:Be},te}return(0,ie.Z)(fe,[{key:"componentDidUpdate",value:function(te,Ae){var je=this.props.prefixCls;if(Ae.current!==this.state.current&&this.paginationNode.current){var ke=this.paginationNode.current.querySelector(".".concat(je,"-item-").concat(Ae.current));if(ke&&document.activeElement===ke){var Be;ke==null||(Be=ke.blur)===null||Be===void 0||Be.call(ke)}}}},{key:"getValidValue",value:function(te){var Ae=te.target.value,je=W(void 0,this.state,this.props),ke=this.state.currentInputValue,Be;return Ae===""?Be=Ae:Number.isNaN(Number(Ae))?Be=ke:Ae>=je?Be=je:Be=Number(Ae),Be}},{key:"getShowSizeChanger",value:function(){var te=this.props,Ae=te.showSizeChanger,je=te.total,ke=te.totalBoundaryShowSizeChanger;return typeof Ae!="undefined"?Ae:je>ke}},{key:"render",value:function(){var te=this.props,Ae=te.prefixCls,je=te.className,ke=te.style,Be=te.disabled,qe=te.hideOnSinglePage,Qe=te.total,Ve=te.locale,xt=te.showQuickJumper,Dt=te.showLessItems,vt=te.showTitle,Bt=te.showTotal,jt=te.simple,C=te.itemRender,B=te.showPrevNextJumpers,yt=te.jumpPrevIcon,ye=te.jumpNextIcon,Me=te.selectComponentClass,Sn=te.selectPrefixCls,it=te.pageSizeOptions,nt=this.state,rt=nt.current,Ee=nt.pageSize,De=nt.currentInputValue;if(qe===!0&&Qe<=Ee)return null;var Fe=W(void 0,this.state,this.props),tt=[],_e=null,Jt=null,Ze=null,xn=null,Rn=null,Wn=xt&&xt.goButton,yr=Dt?1:2,vn=rt-1>0?rt-1:0,wn=rt+1<Fe?rt+1:Fe,Xe=(0,G.Z)(this.props,{aria:!0,data:!0}),Lt=Bt&&U.createElement("li",{className:"".concat(Ae,"-total-text")},Bt(Qe,[Qe===0?0:(rt-1)*Ee+1,rt*Ee>Qe?Qe:rt*Ee]));if(jt){Wn&&(typeof Wn=="boolean"?Rn=U.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ve.jump_to_confirm):Rn=U.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Wn),Rn=U.createElement("li",{title:vt?"".concat(Ve.jump_to).concat(rt,"/").concat(Fe):null,className:"".concat(Ae,"-simple-pager")},Rn));var Wt=this.renderPrev(vn);return U.createElement("ul",(0,O.Z)({className:_()(Ae,"".concat(Ae,"-simple"),(0,S.Z)({},"".concat(Ae,"-disabled"),Be),je),style:ke,ref:this.paginationNode},Xe),Lt,Wt?U.createElement("li",{title:vt?Ve.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:_()("".concat(Ae,"-prev"),(0,S.Z)({},"".concat(Ae,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Wt):null,U.createElement("li",{title:vt?"".concat(rt,"/").concat(Fe):null,className:"".concat(Ae,"-simple-pager")},U.createElement("input",{type:"text",value:De,disabled:Be,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),U.createElement("span",{className:"".concat(Ae,"-slash")},"/"),Fe),U.createElement("li",{title:vt?Ve.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:_()("".concat(Ae,"-next"),(0,S.Z)({},"".concat(Ae,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(wn)),Rn)}if(Fe<=3+yr*2){var Ke={locale:Ve,rootPrefixCls:Ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:vt,itemRender:C};Fe||tt.push(U.createElement(Ce,(0,O.Z)({},Ke,{key:"noPager",page:1,className:"".concat(Ae,"-item-disabled")})));for(var Oe=1;Oe<=Fe;Oe+=1){var _t=rt===Oe;tt.push(U.createElement(Ce,(0,O.Z)({},Ke,{key:Oe,page:Oe,active:_t})))}}else{var wt=Dt?Ve.prev_3:Ve.prev_5,rn=Dt?Ve.next_3:Ve.next_5,Xt=C(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(yt,"prev page")),cn=C(this.getJumpNextPage(),"jump-next",this.getItemIcon(ye,"next page"));B&&(_e=Xt?U.createElement("li",{title:vt?wt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:_()("".concat(Ae,"-jump-prev"),(0,S.Z)({},"".concat(Ae,"-jump-prev-custom-icon"),!!yt))},Xt):null,Jt=cn?U.createElement("li",{title:vt?rn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:_()("".concat(Ae,"-jump-next"),(0,S.Z)({},"".concat(Ae,"-jump-next-custom-icon"),!!ye))},cn):null),xn=U.createElement(Ce,{locale:Ve,last:!0,rootPrefixCls:Ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Fe,page:Fe,active:!1,showTitle:vt,itemRender:C}),Ze=U.createElement(Ce,{locale:Ve,rootPrefixCls:Ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:vt,itemRender:C});var nn=Math.max(1,rt-yr),pn=Math.min(rt+yr,Fe);rt-1<=yr&&(pn=1+yr*2),Fe-rt<=yr&&(nn=Fe-yr*2);for(var Ln=nn;Ln<=pn;Ln+=1){var Kt=rt===Ln;tt.push(U.createElement(Ce,{locale:Ve,rootPrefixCls:Ae,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ln,page:Ln,active:Kt,showTitle:vt,itemRender:C}))}rt-1>=yr*2&&rt!==3&&(tt[0]=(0,U.cloneElement)(tt[0],{className:"".concat(Ae,"-item-after-jump-prev")}),tt.unshift(_e)),Fe-rt>=yr*2&&rt!==Fe-2&&(tt[tt.length-1]=(0,U.cloneElement)(tt[tt.length-1],{className:"".concat(Ae,"-item-before-jump-next")}),tt.push(Jt)),nn!==1&&tt.unshift(Ze),pn!==Fe&&tt.push(xn)}var zt=!this.hasPrev()||!Fe,ln=!this.hasNext()||!Fe,sn=this.renderPrev(vn),mn=this.renderNext(wn);return U.createElement("ul",(0,O.Z)({className:_()(Ae,je,(0,S.Z)({},"".concat(Ae,"-disabled"),Be)),style:ke,ref:this.paginationNode},Xe),Lt,sn?U.createElement("li",{title:vt?Ve.prev_page:null,onClick:this.prev,tabIndex:zt?null:0,onKeyPress:this.runIfEnterPrev,className:_()("".concat(Ae,"-prev"),(0,S.Z)({},"".concat(Ae,"-disabled"),zt)),"aria-disabled":zt},sn):null,tt,mn?U.createElement("li",{title:vt?Ve.next_page:null,onClick:this.next,tabIndex:ln?null:0,onKeyPress:this.runIfEnterNext,className:_()("".concat(Ae,"-next"),(0,S.Z)({},"".concat(Ae,"-disabled"),ln)),"aria-disabled":ln},mn):null,U.createElement(j,{disabled:Be,locale:Ve,rootPrefixCls:Ae,selectComponentClass:Me,selectPrefixCls:Sn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:rt,pageSize:Ee,pageSizeOptions:it,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Wn}))}}],[{key:"getDerivedStateFromProps",value:function(te,Ae){var je={};if("current"in te&&(je.current=te.current,te.current!==Ae.current&&(je.currentInputValue=je.current)),"pageSize"in te&&te.pageSize!==Ae.pageSize){var ke=Ae.current,Be=W(te.pageSize,Ae,te);ke=ke>Be?Be:ke,"current"in te||(je.current=ke,je.currentInputValue=ke),je.pageSize=te.pageSize}return je}}]),fe}(U.Component);be.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Se,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Se,locale:D.Z,style:{},itemRender:de,totalBoundaryShowSizeChanger:50};var F=be,ce=p(22075),q=p(36355),y=p(19716),x=p(8628),Z=p(9763),me=p(57809);const Ne=R=>U.createElement(me.default,Object.assign({},R,{showSearch:!0,size:"small"})),Ue=R=>U.createElement(me.default,Object.assign({},R,{showSearch:!0,size:"middle"}));Ne.Option=me.default.Option,Ue.Option=me.default.Option;var ze=p(9937),et=p(17313),pt=p(83116),gt=p(37613);const at=R=>{const{componentCls:P}=R;return{[`${P}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${P}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${P}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed"}}},[`&${P}-disabled`]:{cursor:"not-allowed",[`${P}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:R.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:R.colorBorder,backgroundColor:R.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:R.itemActiveBgDisabled},a:{color:R.itemActiveColorDisabled}}},[`${P}-item-link`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${P}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${P}-simple-pager`]:{color:R.colorTextDisabled},[`${P}-jump-prev, ${P}-jump-next`]:{[`${P}-item-link-icon`]:{opacity:0},[`${P}-item-ellipsis`]:{opacity:1}}},[`&${P}-simple`]:{[`${P}-prev, ${P}-next`]:{[`&${P}-disabled ${P}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ot=R=>{const{componentCls:P}=R;return{[`&${P}-mini ${P}-total-text, &${P}-mini ${P}-simple-pager`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`},[`&${P}-mini ${P}-item`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM-2}px`},[`&${P}-mini:not(${P}-disabled) ${P}-item:not(${P}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},[`&${P}-mini ${P}-prev, &${P}-mini ${P}-next`]:{minWidth:R.itemSizeSM,height:R.itemSizeSM,margin:0,lineHeight:`${R.itemSizeSM}px`},[`&${P}-mini:not(${P}-disabled)`]:{[`${P}-prev, ${P}-next`]:{[`&:hover ${P}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${P}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${P}-disabled:hover ${P}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${P}-mini ${P}-prev ${P}-item-link,
|
|
|
&${P}-mini ${P}-next ${P}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}},[`&${P}-mini ${P}-jump-prev, &${P}-mini ${P}-jump-next`]:{height:R.itemSizeSM,marginInlineEnd:0,lineHeight:`${R.itemSizeSM}px`},[`&${P}-mini ${P}-options`]:{marginInlineStart:R.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:R.miniOptionsSizeChangerTop},"&-quick-jumper":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ze.x0)(R)),{width:R.paginationMiniQuickJumperInputWidth,height:R.controlHeightSM})}}}},en=R=>{const{componentCls:P}=R;return{[`
|
|
|
&${P}-simple ${P}-prev,
|
|
|
&${P}-simple ${P}-next
|
|
|
`]:{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`,verticalAlign:"top",[`${P}-item-link`]:{height:R.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive},"&::after":{height:R.itemSizeSM,lineHeight:`${R.itemSizeSM}px`}}},[`&${P}-simple ${P}-simple-pager`]:{display:"inline-block",height:R.itemSizeSM,marginInlineEnd:R.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:R.marginXS,padding:`0 ${R.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:R.itemInputBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,borderRadius:R.borderRadius,outline:"none",transition:`border-color ${R.motionDurationMid}`,color:"inherit","&:hover":{borderColor:R.colorPrimary},"&:focus":{borderColor:R.colorPrimaryHover,boxShadow:`${R.inputOutlineOffset}px 0 ${R.controlOutlineWidth}px ${R.controlOutline}`},"&[disabled]":{color:R.colorTextDisabled,backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,cursor:"not-allowed"}}}}},Rt=R=>{const{componentCls:P}=R;return{[`${P}-jump-prev, ${P}-jump-next`]:{outline:0,[`${P}-item-container`]:{position:"relative",[`${P}-item-link-icon`]:{color:R.colorPrimary,fontSize:R.fontSizeSM,opacity:0,transition:`all ${R.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${P}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:R.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:R.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:R.paginationEllipsisTextIndent,opacity:1,transition:`all ${R.motionDurationMid}`}},"&:hover":{[`${P}-item-link-icon`]:{opacity:1},[`${P}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${P}-prev,
|
|
|
${P}-jump-prev,
|
|
|
${P}-jump-next
|
|
|
`]:{marginInlineEnd:R.marginXS},[`
|
|
|
${P}-prev,
|
|
|
${P}-next,
|
|
|
${P}-jump-prev,
|
|
|
${P}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,color:R.colorText,fontFamily:R.fontFamily,lineHeight:`${R.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}`},[`${P}-prev, ${P}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:R.colorText,cursor:"pointer",userSelect:"none"},[`${P}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:R.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:"none",transition:`all ${R.motionDurationMid}`},[`&:hover ${P}-item-link`]:{backgroundColor:R.colorBgTextHover},[`&:active ${P}-item-link`]:{backgroundColor:R.colorBgTextActive},[`&${P}-disabled:hover`]:{[`${P}-item-link`]:{backgroundColor:"transparent"}}},[`${P}-slash`]:{marginInlineEnd:R.paginationSlashMarginInlineEnd,marginInlineStart:R.paginationSlashMarginInlineStart},[`${P}-options`]:{display:"inline-block",marginInlineStart:R.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:R.controlHeight,marginInlineStart:R.marginXS,lineHeight:`${R.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ze.ik)(R)),{width:R.controlHeightLG*1.25,height:R.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:R.marginXS,marginInlineEnd:R.marginXS})}}}},Zt=R=>{const{componentCls:P}=R;return{[`${P}-item`]:{display:"inline-block",minWidth:R.itemSize,height:R.itemSize,marginInlineEnd:R.marginXS,fontFamily:R.fontFamily,lineHeight:`${R.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${R.lineWidth}px ${R.lineType} transparent`,borderRadius:R.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${R.paginationItemPaddingInline}px`,color:R.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${P}-item-active)`]:{"&:hover":{transition:`all ${R.motionDurationMid}`,backgroundColor:R.colorBgTextHover},"&:active":{backgroundColor:R.colorBgTextActive}},"&-active":{fontWeight:R.fontWeightStrong,backgroundColor:R.itemActiveBg,borderColor:R.colorPrimary,a:{color:R.colorPrimary},"&:hover":{borderColor:R.colorPrimaryHover},"&:hover a":{color:R.colorPrimaryHover}}}}},ut=R=>{const{componentCls:P}=R;return{[P]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(R)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${P}-total-text`]:{display:"inline-block",height:R.itemSize,marginInlineEnd:R.marginXS,lineHeight:`${R.itemSize-2}px`,verticalAlign:"middle"}}),Zt(R)),Rt(R)),en(R)),Ot(R)),at(R)),{[`@media only screen and (max-width: ${R.screenLG}px)`]:{[`${P}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${R.screenSM}px)`]:{[`${P}-options`]:{display:"none"}}}),[`&${R.componentCls}-rtl`]:{direction:"rtl"}}},Ct=R=>{const{componentCls:P}=R;return{[`${P}${P}-disabled:not(${P}-mini)`]:{"&, &:hover":{[`${P}-item-link`]:{borderColor:R.colorBorder}},"&:focus-visible":{[`${P}-item-link`]:{borderColor:R.colorBorder}},[`${P}-item, ${P}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,[`&:hover:not(${P}-item-active)`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,a:{color:R.colorTextDisabled}},[`&${P}-item-active`]:{backgroundColor:R.itemActiveBgDisabled}},[`${P}-prev, ${P}-next`]:{"&:hover button":{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder,color:R.colorTextDisabled},[`${P}-item-link`]:{backgroundColor:R.colorBgContainerDisabled,borderColor:R.colorBorder}}},[`${P}:not(${P}-mini)`]:{[`${P}-prev, ${P}-next`]:{"&:hover button":{borderColor:R.colorPrimaryHover,backgroundColor:R.itemBg},[`${P}-item-link`]:{backgroundColor:R.itemLinkBg,borderColor:R.colorBorder},[`&:hover ${P}-item-link`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,color:R.colorPrimary},[`&${P}-disabled`]:{[`${P}-item-link`]:{borderColor:R.colorBorder,color:R.colorTextDisabled}}},[`${P}-item`]:{backgroundColor:R.itemBg,border:`${R.lineWidth}px ${R.lineType} ${R.colorBorder}`,[`&:hover:not(${P}-item-active)`]:{borderColor:R.colorPrimary,backgroundColor:R.itemBg,a:{color:R.colorPrimary}},"&-active":{borderColor:R.colorPrimary}}}}},he=R=>{const{componentCls:P}=R;return{[`${P}:not(${P}-disabled)`]:{[`${P}-item`]:Object.assign({},(0,et.Qy)(R)),[`${P}-jump-prev, ${P}-jump-next`]:{"&:focus-visible":Object.assign({[`${P}-item-link-icon`]:{opacity:1},[`${P}-item-ellipsis`]:{opacity:0}},(0,et.oN)(R))},[`${P}-prev, ${P}-next`]:{[`&:focus-visible ${P}-item-link`]:Object.assign({},(0,et.oN)(R))}}}};var pe=(0,pt.Z)("Pagination",R=>{const P=(0,gt.TS)(R,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:R.marginXXS/2,paginationMiniQuickJumperInputWidth:R.controlHeightLG*1.1,paginationItemPaddingInline:R.marginXXS*1.5,paginationEllipsisLetterSpacing:R.marginXXS/2,paginationSlashMarginInlineStart:R.marginXXS,paginationSlashMarginInlineEnd:R.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ze.e5)(R),(0,ze.TM)(R));return[ut(P),he(P),R.wireframe&&Ct(P)]},R=>({itemBg:R.colorBgContainer,itemSize:R.controlHeight,itemSizeSM:R.controlHeightSM,itemActiveBg:R.colorBgContainer,itemLinkBg:R.colorBgContainer,itemActiveColorDisabled:R.colorTextDisabled,itemActiveBgDisabled:R.controlItemBgActiveDisabled,itemInputBg:R.colorBgContainer,miniOptionsSizeChangerTop:0})),le=function(R,P){var fe={};for(var oe in R)Object.prototype.hasOwnProperty.call(R,oe)&&P.indexOf(oe)<0&&(fe[oe]=R[oe]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,oe=Object.getOwnPropertySymbols(R);te<oe.length;te++)P.indexOf(oe[te])<0&&Object.prototype.propertyIsEnumerable.call(R,oe[te])&&(fe[oe[te]]=R[oe[te]]);return fe},Ie=R=>{const{prefixCls:P,selectPrefixCls:fe,className:oe,rootClassName:te,style:Ae,size:je,locale:ke,selectComponentClass:Be,responsive:qe,showSizeChanger:Qe}=R,Ve=le(R,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:xt}=(0,x.Z)(qe),{getPrefixCls:Dt,direction:vt,pagination:Bt={}}=U.useContext(q.E_),jt=Dt("pagination",P),[C,B]=pe(jt),yt=Qe!=null?Qe:Bt.showSizeChanger,ye=U.useMemo(()=>{const Fe=U.createElement("span",{className:`${jt}-item-ellipsis`},"\u2022\u2022\u2022"),tt=U.createElement("button",{className:`${jt}-item-link`,type:"button",tabIndex:-1},vt==="rtl"?U.createElement(k.Z,null):U.createElement(I.Z,null)),_e=U.createElement("button",{className:`${jt}-item-link`,type:"button",tabIndex:-1},vt==="rtl"?U.createElement(I.Z,null):U.createElement(k.Z,null)),Jt=U.createElement("a",{className:`${jt}-item-link`},U.createElement("div",{className:`${jt}-item-container`},vt==="rtl"?U.createElement(o.Z,{className:`${jt}-item-link-icon`}):U.createElement(ne,{className:`${jt}-item-link-icon`}),Fe)),Ze=U.createElement("a",{className:`${jt}-item-link`},U.createElement("div",{className:`${jt}-item-container`},vt==="rtl"?U.createElement(ne,{className:`${jt}-item-link-icon`}):U.createElement(o.Z,{className:`${jt}-item-link-icon`}),Fe));return{prevIcon:tt,nextIcon:_e,jumpPrevIcon:Jt,jumpNextIcon:Ze}},[vt,jt]),[Me]=(0,Z.Z)("Pagination",ce.Z),Sn=Object.assign(Object.assign({},Me),ke),it=(0,y.Z)(je),nt=it==="small"||!!(xt&&!it&&qe),rt=Dt("select",fe),Ee=_()({[`${jt}-mini`]:nt,[`${jt}-rtl`]:vt==="rtl"},Bt==null?void 0:Bt.className,oe,te,B),De=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Ae);return C(U.createElement(F,Object.assign({},ye,Ve,{style:De,prefixCls:jt,selectPrefixCls:rt,className:Ee,selectComponentClass:Be||(nt?Ne:Ue),locale:Sn,showSizeChanger:yt})))},H=Ie},5112:function(Qt,He,p){"use strict";p.d(He,{ZP:function(){return x}});var O=p(92310),U=p.n(O),ee=p(18929),ue=p(26112),A=p(59301),m=p(36355),w=p(19716);const ne=A.createContext(null),o=ne.Provider;var I=ne;const k=A.createContext(null),g=k.Provider;var _=p(5630),S=p(8654),T=p(1684),N=p(32441),ie=p(17313),z=p(83116),$=p(37613);const G=Z=>{const{componentCls:me,antCls:Ne}=Z,Ue=`${me}-group`;return{[Ue]:Object.assign(Object.assign({},(0,ie.Wf)(Z)),{display:"inline-block",fontSize:0,[`&${Ue}-rtl`]:{direction:"rtl"},[`${Ne}-badge ${Ne}-badge-count`]:{zIndex:1},[`> ${Ne}-badge:not(:first-child) > ${Ne}-button-wrapper`]:{borderInlineStart:"none"}})}},Q=Z=>{const{componentCls:me,wrapperMarginInlineEnd:Ne,colorPrimary:Ue,radioSize:ze,motionDurationSlow:et,motionDurationMid:pt,motionEaseInOutCirc:gt,colorBgContainer:at,colorBorder:Ot,lineWidth:en,dotSize:Rt,colorBgContainerDisabled:Zt,colorTextDisabled:ut,paddingXS:Ct,dotColorDisabled:he,lineType:pe,radioDotDisabledSize:le,wireframe:J,colorWhite:Ie}=Z,H=`${me}-inner`;return{[`${me}-wrapper`]:Object.assign(Object.assign({},(0,ie.Wf)(Z)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Ne,cursor:"pointer",[`&${me}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Z.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${me}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${en}px ${pe} ${Ue}`,borderRadius:"50%",visibility:"hidden",content:'""'},[me]:Object.assign(Object.assign({},(0,ie.Wf)(Z)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${me}-wrapper:hover &,
|
|
|
&:hover ${H}`]:{borderColor:Ue},[`${me}-input:focus-visible + ${H}`]:Object.assign({},(0,ie.oN)(Z)),[`${me}:hover::after, ${me}-wrapper:hover &::after`]:{visibility:"visible"},[`${me}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ze,height:ze,marginBlockStart:ze/-2,marginInlineStart:ze/-2,backgroundColor:J?Ue:Ie,borderBlockStart:0,borderInlineStart:0,borderRadius:ze,transform:"scale(0)",opacity:0,transition:`all ${et} ${gt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ze,height:ze,backgroundColor:at,borderColor:Ot,borderStyle:"solid",borderWidth:en,borderRadius:"50%",transition:`all ${pt}`},[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${me}-checked`]:{[H]:{borderColor:Ue,backgroundColor:J?at:Ue,"&::after":{transform:`scale(${Rt/ze})`,opacity:1,transition:`all ${et} ${gt}`}}},[`${me}-disabled`]:{cursor:"not-allowed",[H]:{backgroundColor:Zt,borderColor:Ot,cursor:"not-allowed","&::after":{backgroundColor:he}},[`${me}-input`]:{cursor:"not-allowed"},[`${me}-disabled + span`]:{color:ut,cursor:"not-allowed"},[`&${me}-checked`]:{[H]:{"&::after":{transform:`scale(${le/ze})`}}}},[`span${me} + *`]:{paddingInlineStart:Ct,paddingInlineEnd:Ct}})}},L=Z=>{const{buttonColor:me,controlHeight:Ne,componentCls:Ue,lineWidth:ze,lineType:et,colorBorder:pt,motionDurationSlow:gt,motionDurationMid:at,buttonPaddingInline:Ot,fontSize:en,buttonBg:Rt,fontSizeLG:Zt,controlHeightLG:ut,controlHeightSM:Ct,paddingXS:he,borderRadius:pe,borderRadiusSM:le,borderRadiusLG:J,buttonCheckedBg:Ie,buttonSolidCheckedColor:H,colorTextDisabled:R,colorBgContainerDisabled:P,buttonCheckedBgDisabled:fe,buttonCheckedColorDisabled:oe,colorPrimary:te,colorPrimaryHover:Ae,colorPrimaryActive:je,buttonSolidCheckedBg:ke,buttonSolidCheckedHoverBg:Be,buttonSolidCheckedActiveBg:qe}=Z;return{[`${Ue}-button-wrapper`]:{position:"relative",display:"inline-block",height:Ne,margin:0,paddingInline:Ot,paddingBlock:0,color:me,fontSize:en,lineHeight:`${Ne-ze*2}px`,background:Rt,border:`${ze}px ${et} ${pt}`,borderBlockStartWidth:ze+.02,borderInlineStartWidth:0,borderInlineEndWidth:ze,cursor:"pointer",transition:[`color ${at}`,`background ${at}`,`box-shadow ${at}`].join(","),a:{color:me},[`> ${Ue}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ze,insetInlineStart:-ze,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ze,paddingInline:0,backgroundColor:pt,transition:`background-color ${gt}`,content:'""'}},"&:first-child":{borderInlineStart:`${ze}px ${et} ${pt}`,borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe},"&:first-child:last-child":{borderRadius:pe},[`${Ue}-group-large &`]:{height:ut,fontSize:Zt,lineHeight:`${ut-ze*2}px`,"&:first-child":{borderStartStartRadius:J,borderEndStartRadius:J},"&:last-child":{borderStartEndRadius:J,borderEndEndRadius:J}},[`${Ue}-group-small &`]:{height:Ct,paddingInline:he-ze,paddingBlock:0,lineHeight:`${Ct-ze*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},"&:hover":{position:"relative",color:te},"&:has(:focus-visible)":Object.assign({},(0,ie.oN)(Z)),[`${Ue}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Ue}-button-wrapper-disabled)`]:{zIndex:1,color:te,background:Ie,borderColor:te,"&::before":{backgroundColor:te},"&:first-child":{borderColor:te},"&:hover":{color:Ae,borderColor:Ae,"&::before":{backgroundColor:Ae}},"&:active":{color:je,borderColor:je,"&::before":{backgroundColor:je}}},[`${Ue}-group-solid &-checked:not(${Ue}-button-wrapper-disabled)`]:{color:H,background:ke,borderColor:ke,"&:hover":{color:H,background:Be,borderColor:Be},"&:active":{color:H,background:qe,borderColor:qe}},"&-disabled":{color:R,backgroundColor:P,borderColor:pt,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:P,borderColor:pt}},[`&-disabled${Ue}-button-wrapper-checked`]:{color:oe,backgroundColor:fe,borderColor:pt,boxShadow:"none"}}}},D=Z=>Z-4*2;var Y=(0,z.Z)("Radio",Z=>{const{controlOutline:me,controlOutlineWidth:Ne,radioSize:Ue}=Z,ze=`0 0 0 ${Ne}px ${me}`,et=ze,pt=D(Ue),gt=(0,$.TS)(Z,{radioDotDisabledSize:pt,radioFocusShadow:ze,radioButtonFocusShadow:et});return[G(gt),Q(gt),L(gt)]},Z=>{const{wireframe:me,padding:Ne,marginXS:Ue,lineWidth:ze,fontSizeLG:et,colorText:pt,colorBgContainer:gt,colorTextDisabled:at,controlItemBgActiveDisabled:Ot,colorTextLightSolid:en,colorPrimary:Rt,colorPrimaryHover:Zt,colorPrimaryActive:ut}=Z,Ct=4,he=et,pe=me?D(he):he-(Ct+ze)*2;return{radioSize:he,dotSize:pe,dotColorDisabled:at,buttonSolidCheckedColor:en,buttonSolidCheckedBg:Rt,buttonSolidCheckedHoverBg:Zt,buttonSolidCheckedActiveBg:ut,buttonBg:gt,buttonCheckedBg:gt,buttonColor:pt,buttonCheckedBgDisabled:Ot,buttonCheckedColorDisabled:at,buttonPaddingInline:Ne-ze,wrapperMarginInlineEnd:Ue}}),j=p(14088),xe=p(4572),Ce=function(Z,me){var Ne={};for(var Ue in Z)Object.prototype.hasOwnProperty.call(Z,Ue)&&me.indexOf(Ue)<0&&(Ne[Ue]=Z[Ue]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ue=Object.getOwnPropertySymbols(Z);ze<Ue.length;ze++)me.indexOf(Ue[ze])<0&&Object.prototype.propertyIsEnumerable.call(Z,Ue[ze])&&(Ne[Ue[ze]]=Z[Ue[ze]]);return Ne};const Se=(Z,me)=>{var Ne,Ue;const ze=A.useContext(I),et=A.useContext(k),{getPrefixCls:pt,direction:gt,radio:at}=A.useContext(m.E_),Ot=A.useRef(null),en=(0,S.sQ)(me,Ot),{isFormItemInput:Rt}=A.useContext(N.aM),Zt=je=>{var ke,Be;(ke=Z.onChange)===null||ke===void 0||ke.call(Z,je),(Be=ze==null?void 0:ze.onChange)===null||Be===void 0||Be.call(ze,je)},{prefixCls:ut,className:Ct,rootClassName:he,children:pe,style:le}=Z,J=Ce(Z,["prefixCls","className","rootClassName","children","style"]),Ie=pt("radio",ut),H=((ze==null?void 0:ze.optionType)||et)==="button",R=H?`${Ie}-button`:Ie,[P,fe]=Y(Ie),oe=Object.assign({},J),te=A.useContext(T.Z);ze&&(oe.name=ze.name,oe.onChange=Zt,oe.checked=Z.value===ze.value,oe.disabled=(Ne=oe.disabled)!==null&&Ne!==void 0?Ne:ze.disabled),oe.disabled=(Ue=oe.disabled)!==null&&Ue!==void 0?Ue:te;const Ae=U()(`${R}-wrapper`,{[`${R}-wrapper-checked`]:oe.checked,[`${R}-wrapper-disabled`]:oe.disabled,[`${R}-wrapper-rtl`]:gt==="rtl",[`${R}-wrapper-in-form-item`]:Rt},at==null?void 0:at.className,Ct,he,fe);return P(A.createElement(j.Z,{component:"Radio",disabled:oe.disabled},A.createElement("label",{className:Ae,style:Object.assign(Object.assign({},at==null?void 0:at.style),le),onMouseEnter:Z.onMouseEnter,onMouseLeave:Z.onMouseLeave},A.createElement(_.Z,Object.assign({},oe,{className:U()(oe.className,!H&&xe.A),type:"radio",prefixCls:R,ref:en})),pe!==void 0?A.createElement("span",null,pe):null)))};var de=A.forwardRef(Se);const W=A.forwardRef((Z,me)=>{const{getPrefixCls:Ne,direction:Ue}=A.useContext(m.E_),[ze,et]=(0,ee.Z)(Z.defaultValue,{value:Z.value}),pt=ke=>{const Be=ze,qe=ke.target.value;"value"in Z||et(qe);const{onChange:Qe}=Z;Qe&&qe!==Be&&Qe(ke)},{prefixCls:gt,className:at,rootClassName:Ot,options:en,buttonStyle:Rt="outline",disabled:Zt,children:ut,size:Ct,style:he,id:pe,onMouseEnter:le,onMouseLeave:J,onFocus:Ie,onBlur:H}=Z,R=Ne("radio",gt),P=`${R}-group`,[fe,oe]=Y(R);let te=ut;en&&en.length>0&&(te=en.map(ke=>typeof ke=="string"||typeof ke=="number"?A.createElement(de,{key:ke.toString(),prefixCls:R,disabled:Zt,value:ke,checked:ze===ke},ke):A.createElement(de,{key:`radio-group-value-options-${ke.value}`,prefixCls:R,disabled:ke.disabled||Zt,value:ke.value,checked:ze===ke.value,title:ke.title,style:ke.style},ke.label)));const Ae=(0,w.Z)(Ct),je=U()(P,`${P}-${Rt}`,{[`${P}-${Ae}`]:Ae,[`${P}-rtl`]:Ue==="rtl"},at,Ot,oe);return fe(A.createElement("div",Object.assign({},(0,ue.Z)(Z,{aria:!0,data:!0}),{className:je,style:he,onMouseEnter:le,onMouseLeave:J,onFocus:Ie,onBlur:H,id:pe,ref:me}),A.createElement(o,{value:{onChange:pt,value:ze,disabled:Z.disabled,name:Z.name,optionType:Z.optionType}},te)))});var be=A.memo(W),F=function(Z,me){var Ne={};for(var Ue in Z)Object.prototype.hasOwnProperty.call(Z,Ue)&&me.indexOf(Ue)<0&&(Ne[Ue]=Z[Ue]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ue=Object.getOwnPropertySymbols(Z);ze<Ue.length;ze++)me.indexOf(Ue[ze])<0&&Object.prototype.propertyIsEnumerable.call(Z,Ue[ze])&&(Ne[Ue[ze]]=Z[Ue[ze]]);return Ne};const ce=(Z,me)=>{const{getPrefixCls:Ne}=A.useContext(m.E_),{prefixCls:Ue}=Z,ze=F(Z,["prefixCls"]),et=Ne("radio",Ue);return A.createElement(g,{value:"button"},A.createElement(de,Object.assign({prefixCls:et},ze,{type:"radio",ref:me})))};var q=A.forwardRef(ce);const y=de;y.Button=q,y.Group=be,y.__ANT_RADIO=!0;var x=y},57809:function(Qt,He,p){"use strict";var O=p(92310),U=p.n(O),ee=p(77861),ue=p(2738),A=p(59301),m=p(53487),w=p(62892),ne=p(19080),o=p(36355),I=p(1684),k=p(93891),g=p(19716),_=p(32441),S=p(33234),T=p(14154),N=p(58582),ie=p(84443),z=p(66339),$=function(Y,j){var xe={};for(var Ce in Y)Object.prototype.hasOwnProperty.call(Y,Ce)&&j.indexOf(Ce)<0&&(xe[Ce]=Y[Ce]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ce=Object.getOwnPropertySymbols(Y);Se<Ce.length;Se++)j.indexOf(Ce[Se])<0&&Object.prototype.propertyIsEnumerable.call(Y,Ce[Se])&&(xe[Ce[Se]]=Y[Ce[Se]]);return xe};const G="SECRET_COMBOBOX_MODE_DO_NOT_USE",Q=(Y,j)=>{var xe,{prefixCls:Ce,bordered:Se=!0,className:ge,rootClassName:de,getPopupContainer:W,popupClassName:be,dropdownClassName:F,listHeight:ce=256,placement:q,listItemHeight:y=24,size:x,disabled:Z,notFoundContent:me,status:Ne,builtinPlacements:Ue,dropdownMatchSelectWidth:ze,popupMatchSelectWidth:et,direction:pt,style:gt,allowClear:at}=Y,Ot=$(Y,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:en,getPrefixCls:Rt,renderEmpty:Zt,direction:ut,virtual:Ct,popupMatchSelectWidth:he,popupOverflow:pe,select:le}=A.useContext(o.E_),J=Rt("select",Ce),Ie=Rt(),H=pt!=null?pt:ut,{compactSize:R,compactItemClassnames:P}=(0,S.ri)(J,H),[fe,oe]=(0,T.Z)(J),te=A.useMemo(()=>{const{mode:De}=Ot;if(De!=="combobox")return De===G?"combobox":De},[Ot.mode]),Ae=te==="multiple"||te==="tags",je=(0,ie.Z)(Ot.suffixIcon,Ot.showArrow),ke=(xe=et!=null?et:ze)!==null&&xe!==void 0?xe:he,{status:Be,hasFeedback:qe,isFormItemInput:Qe,feedbackIcon:Ve}=A.useContext(_.aM),xt=(0,ne.F)(Be,Ne);let Dt;me!==void 0?Dt=me:te==="combobox"?Dt=null:Dt=(Zt==null?void 0:Zt("Select"))||A.createElement(k.Z,{componentName:"Select"});const{suffixIcon:vt,itemIcon:Bt,removeIcon:jt,clearIcon:C}=(0,z.Z)(Object.assign(Object.assign({},Ot),{multiple:Ae,hasFeedback:qe,feedbackIcon:Ve,showSuffixIcon:je,prefixCls:J,showArrow:Ot.showArrow,componentName:"Select"})),B=at===!0?{clearIcon:C}:at,yt=(0,ue.Z)(Ot,["suffixIcon","itemIcon"]),ye=U()(be||F,{[`${J}-dropdown-${H}`]:H==="rtl"},de,oe),Me=(0,g.Z)(De=>{var Fe;return(Fe=x!=null?x:R)!==null&&Fe!==void 0?Fe:De}),Sn=A.useContext(I.Z),it=Z!=null?Z:Sn,nt=U()({[`${J}-lg`]:Me==="large",[`${J}-sm`]:Me==="small",[`${J}-rtl`]:H==="rtl",[`${J}-borderless`]:!Se,[`${J}-in-form-item`]:Qe},(0,ne.Z)(J,xt,qe),P,le==null?void 0:le.className,ge,de,oe),rt=A.useMemo(()=>q!==void 0?q:H==="rtl"?"bottomRight":"bottomLeft",[q,H]),Ee=(0,N.Z)(Ue,pe);return fe(A.createElement(ee.ZP,Object.assign({ref:j,virtual:Ct,showSearch:le==null?void 0:le.showSearch},yt,{style:Object.assign(Object.assign({},le==null?void 0:le.style),gt),dropdownMatchSelectWidth:ke,builtinPlacements:Ee,transitionName:(0,w.m)(Ie,"slide-up",Ot.transitionName),listHeight:ce,listItemHeight:y,mode:te,prefixCls:J,placement:rt,direction:H,suffixIcon:vt,menuItemSelectedIcon:Bt,removeIcon:jt,allowClear:B,notFoundContent:Dt,className:nt,getPopupContainer:W||en,dropdownClassName:ye,disabled:it})))},L=A.forwardRef(Q),D=(0,m.Z)(L);L.SECRET_COMBOBOX_MODE_DO_NOT_USE=G,L.Option=ee.Wx,L.OptGroup=ee.Xo,L._InternalPanelDoNotUseOrYouWillBeFired=D,He.default=L},14154:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return L}});var O=p(17313),U=p(74207),ee=p(37613),ue=p(83116),A=p(13826),m=p(92899);const w=D=>{const{optionHeight:Y,optionFontSize:j,optionLineHeight:xe,optionPadding:Ce}=D;return{position:"relative",display:"block",minHeight:Y,padding:Ce,color:D.colorText,fontWeight:"normal",fontSize:j,lineHeight:xe,boxSizing:"border-box"}};var o=D=>{const{antCls:Y,componentCls:j}=D,xe=`${j}-item`,Ce=`&${Y}-slide-up-enter${Y}-slide-up-enter-active`,Se=`&${Y}-slide-up-appear${Y}-slide-up-appear-active`,ge=`&${Y}-slide-up-leave${Y}-slide-up-leave-active`,de=`${j}-dropdown-placement-`;return[{[`${j}-dropdown`]:Object.assign(Object.assign({},(0,O.Wf)(D)),{position:"absolute",top:-9999,zIndex:D.zIndexPopup,boxSizing:"border-box",padding:D.paddingXXS,overflow:"hidden",fontSize:D.fontSize,fontVariant:"initial",backgroundColor:D.colorBgElevated,borderRadius:D.borderRadiusLG,outline:"none",boxShadow:D.boxShadowSecondary,[`
|
|
|
${Ce}${de}bottomLeft,
|
|
|
${Se}${de}bottomLeft
|
|
|
`]:{animationName:A.fJ},[`
|
|
|
${Ce}${de}topLeft,
|
|
|
${Se}${de}topLeft,
|
|
|
${Ce}${de}topRight,
|
|
|
${Se}${de}topRight
|
|
|
`]:{animationName:A.Qt},[`${ge}${de}bottomLeft`]:{animationName:A.Uw},[`
|
|
|
${ge}${de}topLeft,
|
|
|
${ge}${de}topRight
|
|
|
`]:{animationName:A.ly},"&-hidden":{display:"none"},[`${xe}`]:Object.assign(Object.assign({},w(D)),{cursor:"pointer",transition:`background ${D.motionDurationSlow} ease`,borderRadius:D.borderRadiusSM,"&-group":{color:D.colorTextDescription,fontSize:D.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},O.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${xe}-option-disabled)`]:{backgroundColor:D.optionActiveBg},[`&-selected:not(${xe}-option-disabled)`]:{color:D.optionSelectedColor,fontWeight:D.optionSelectedFontWeight,backgroundColor:D.optionSelectedBg,[`${xe}-option-state`]:{color:D.colorPrimary}},"&-disabled":{[`&${xe}-option-selected`]:{backgroundColor:D.colorBgContainerDisabled},color:D.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:D.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,A.oN)(D,"slide-up"),(0,A.oN)(D,"slide-down"),(0,m.Fm)(D,"move-up"),(0,m.Fm)(D,"move-down")]};const I=2,k=D=>{let{controlHeightSM:Y,controlHeight:j,lineWidth:xe}=D;const Ce=(j-Y)/2-xe,Se=Math.ceil(Ce/2);return[Ce,Se]};function g(D,Y){const{componentCls:j,iconCls:xe}=D,Ce=`${j}-selection-overflow`,Se=D.multipleSelectItemHeight,[ge]=k(D),de=Y?`${j}-${Y}`:"";return{[`${j}-multiple${de}`]:{fontSize:D.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:`${ge-I}px ${I*2}px`,borderRadius:D.borderRadius,[`${j}-show-search&`]:{cursor:"text"},[`${j}-disabled&`]:{background:D.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${I}px 0`,lineHeight:`${Se}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${j}-show-arrow ${j}-selector,
|
|
|
&${j}-allow-clear ${j}-selector
|
|
|
`]:{paddingInlineEnd:D.fontSizeIcon+D.controlPaddingHorizontal},[`${j}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Se,marginTop:I,marginBottom:I,lineHeight:`${Se-D.lineWidth*2}px`,background:D.multipleItemBg,border:`${D.lineWidth}px ${D.lineType} ${D.multipleItemBorderColor}`,borderRadius:D.borderRadiusSM,cursor:"default",transition:`font-size ${D.motionDurationSlow}, line-height ${D.motionDurationSlow}, height ${D.motionDurationSlow}`,userSelect:"none",marginInlineEnd:I*2,paddingInlineStart:D.paddingXS,paddingInlineEnd:D.paddingXS/2,[`${j}-disabled&`]:{color:D.multipleItemColorDisabled,borderColor:D.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:D.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,O.Ro)()),{display:"inline-flex",alignItems:"center",color:D.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${xe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:D.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${j}-selection-search`]:{marginInlineStart:0}},[`${j}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:D.inputPaddingHorizontalBase-ge,"\n &-input,\n &-mirror\n ":{height:Se,fontFamily:D.fontFamily,lineHeight:`${Se}px`,transition:`all ${D.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:D.inputPaddingHorizontalBase,insetInlineEnd:D.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${D.motionDurationSlow}`}}}}var S=D=>{const{componentCls:Y}=D,j=(0,ee.TS)(D,{controlHeight:D.controlHeightSM,multipleSelectItemHeight:D.controlHeightXS,borderRadius:D.borderRadiusSM,borderRadiusSM:D.borderRadiusXS}),xe=(0,ee.TS)(D,{fontSize:D.fontSizeLG,controlHeight:D.controlHeightLG,multipleSelectItemHeight:D.multipleItemHeightLG,borderRadius:D.borderRadiusLG,borderRadiusSM:D.borderRadius}),[,Ce]=k(D);return[g(D),g(j,"sm"),{[`${Y}-multiple${Y}-sm`]:{[`${Y}-selection-placeholder`]:{insetInline:D.controlPaddingHorizontalSM-D.lineWidth},[`${Y}-selection-search`]:{marginInlineStart:Ce}}},g(xe,"lg")]};function T(D,Y){const{componentCls:j,inputPaddingHorizontalBase:xe,borderRadius:Ce}=D,Se=D.controlHeight-D.lineWidth*2,ge=Math.ceil(D.fontSize*1.25),de=Y?`${j}-${Y}`:"";return{[`${j}-single${de}`]:{fontSize:D.fontSize,[`${j}-selector`]:Object.assign(Object.assign({},(0,O.Wf)(D)),{display:"flex",borderRadius:Ce,[`${j}-selection-search`]:{position:"absolute",top:0,insetInlineStart:xe,insetInlineEnd:xe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${j}-selection-item,
|
|
|
${j}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Se}px`,transition:`all ${D.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Se}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:ge},[`&${j}-open ${j}-selection-item`]:{color:D.colorTextPlaceholder},[`&:not(${j}-customize-input)`]:{[`${j}-selector`]:{width:"100%",height:D.controlHeight,padding:`0 ${xe}px`,[`${j}-selection-search-input`]:{height:Se},"&:after":{lineHeight:`${Se}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 ${xe}px`,"&:after":{display:"none"}}}}}}}function N(D){const{componentCls:Y}=D,j=D.controlPaddingHorizontalSM-D.lineWidth;return[T(D),T((0,ee.TS)(D,{controlHeight:D.controlHeightSM,borderRadius:D.borderRadiusSM}),"sm"),{[`${Y}-single${Y}-sm`]:{[`&:not(${Y}-customize-input)`]:{[`${Y}-selection-search`]:{insetInlineStart:j,insetInlineEnd:j},[`${Y}-selector`]:{padding:`0 ${j}px`},[`&${Y}-show-arrow ${Y}-selection-search`]:{insetInlineEnd:j+D.fontSize*1.5},[`
|
|
|
&${Y}-show-arrow ${Y}-selection-item,
|
|
|
&${Y}-show-arrow ${Y}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:D.fontSize*1.5}}}},T((0,ee.TS)(D,{controlHeight:D.singleItemHeightLG,fontSize:D.fontSizeLG,borderRadius:D.borderRadiusLG}),"lg")]}const ie=D=>{const{componentCls:Y,selectorBg:j}=D;return{position:"relative",backgroundColor:j,border:`${D.lineWidth}px ${D.lineType} ${D.colorBorder}`,transition:`all ${D.motionDurationMid} ${D.motionEaseInOut}`,input:{cursor:"pointer"},[`${Y}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Y}-disabled&`]:{color:D.colorTextDisabled,background:D.colorBgContainerDisabled,cursor:"not-allowed",[`${Y}-multiple&`]:{background:D.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},z=function(D,Y){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:xe,borderHoverColor:Ce,outlineColor:Se,antCls:ge}=Y,de=j?{[`${xe}-selector`]:{borderColor:Ce}}:{};return{[D]:{[`&:not(${xe}-disabled):not(${xe}-customize-input):not(${ge}-pagination-size-changer)`]:Object.assign(Object.assign({},de),{[`${xe}-focused& ${xe}-selector`]:{borderColor:Ce,boxShadow:`0 0 0 ${Y.controlOutlineWidth}px ${Se}`,outline:0},[`&:hover ${xe}-selector`]:{borderColor:Ce}})}}},$=D=>{const{componentCls:Y}=D;return{[`${Y}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},G=D=>{const{componentCls:Y,inputPaddingHorizontalBase:j,iconCls:xe}=D;return{[Y]:Object.assign(Object.assign({},(0,O.Wf)(D)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Y}-customize-input) ${Y}-selector`]:Object.assign(Object.assign({},ie(D)),$(D)),[`${Y}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},O.vS),[`${Y}-selection-placeholder`]:Object.assign(Object.assign({},O.vS),{flex:1,color:D.colorTextPlaceholder,pointerEvents:"none"}),[`${Y}-arrow`]:Object.assign(Object.assign({},(0,O.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,height:D.fontSizeIcon,marginTop:-D.fontSizeIcon/2,color:D.colorTextQuaternary,fontSize:D.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[xe]:{verticalAlign:"top",transition:`transform ${D.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Y}-suffix)`]:{pointerEvents:"auto"}},[`${Y}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Y}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:j,zIndex:1,display:"inline-block",width:D.fontSizeIcon,height:D.fontSizeIcon,marginTop:-D.fontSizeIcon/2,color:D.colorTextQuaternary,fontSize:D.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:D.clearBg,cursor:"pointer",opacity:0,transition:`color ${D.motionDurationMid} ease, opacity ${D.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:D.colorTextTertiary}},"&:hover":{[`${Y}-clear`]:{opacity:1}}}),[`${Y}-has-feedback`]:{[`${Y}-clear`]:{insetInlineEnd:j+D.fontSize+D.paddingXS}}}},Q=D=>{const{componentCls:Y}=D;return[{[Y]:{[`&-borderless ${Y}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Y}-in-form-item`]:{width:"100%"}}},G(D),N(D),S(D),o(D),{[`${Y}-rtl`]:{direction:"rtl"}},z(Y,(0,ee.TS)(D,{borderHoverColor:D.colorPrimaryHover,outlineColor:D.controlOutline})),z(`${Y}-status-error`,(0,ee.TS)(D,{borderHoverColor:D.colorErrorHover,outlineColor:D.colorErrorOutline}),!0),z(`${Y}-status-warning`,(0,ee.TS)(D,{borderHoverColor:D.colorWarningHover,outlineColor:D.colorWarningOutline}),!0),(0,U.c)(D,{borderElCls:`${Y}-selector`,focusElCls:`${Y}-focused`})]};var L=(0,ue.Z)("Select",(D,Y)=>{let{rootPrefixCls:j}=Y;const xe=(0,ee.TS)(D,{rootPrefixCls:j,inputPaddingHorizontalBase:D.paddingSM-1,multipleSelectItemHeight:D.multipleItemHeight});return[Q(xe)]},D=>{const{fontSize:Y,lineHeight:j,controlHeight:xe,controlPaddingHorizontal:Ce,zIndexPopupBase:Se,colorText:ge,fontWeightStrong:de,controlItemBgActive:W,controlItemBgHover:be,colorBgContainer:F,colorFillSecondary:ce,controlHeightLG:q,controlHeightSM:y,colorBgContainerDisabled:x,colorTextDisabled:Z}=D;return{zIndexPopup:Se+50,optionSelectedColor:ge,optionSelectedFontWeight:de,optionSelectedBg:W,optionActiveBg:be,optionPadding:`${(xe-Y*j)/2}px ${Ce}px`,optionFontSize:Y,optionLineHeight:j,optionHeight:xe,selectorBg:F,clearBg:F,singleItemHeightLG:q,multipleItemBg:ce,multipleItemBorderColor:"transparent",multipleItemHeight:y,multipleItemHeightLG:xe,multipleSelectorBgDisabled:x,multipleItemColorDisabled:Z,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return U}});const O=ee=>{const A={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ee==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},A),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},A),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},A),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},A),{points:["br","tr"],offset:[0,-4]})}};function U(ee,ue){return ee||O(ue)}},84443:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return O}});function O(U,ee){return ee!==void 0?ee:U!==null}},66339:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});var O=p(40001),U=p(19248),ee=p(99267),ue=p(84105),A=p(58617),m=p(47472),w=p(59301);function ne(o){let{suffixIcon:I,clearIcon:k,menuItemSelectedIcon:g,removeIcon:_,loading:S,multiple:T,hasFeedback:N,prefixCls:ie,showSuffixIcon:z,feedbackIcon:$,showArrow:G,componentName:Q}=o;const L=k!=null?k:w.createElement(U.Z,null),D=Ce=>I===null&&!N&&!G?null:w.createElement(w.Fragment,null,z!==!1&&Ce,N&&$);let Y=null;if(I!==void 0)Y=D(I);else if(S)Y=D(w.createElement(A.Z,{spin:!0}));else{const Ce=`${ie}-suffix`;Y=Se=>{let{open:ge,showSearch:de}=Se;return D(ge&&de?w.createElement(m.Z,{className:Ce}):w.createElement(ue.Z,{className:Ce}))}}let j=null;g!==void 0?j=g:T?j=w.createElement(O.Z,null):j=null;let xe=null;return _!==void 0?xe=_:xe=w.createElement(ee.Z,null),{clearIcon:L,suffixIcon:Y,itemIcon:j,removeIcon:xe}}},81327:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ie}});var O=p(59301),U=p(92310),ee=p.n(U),ue=p(11592),A=p(36355),m=p(33234);const w=O.createContext({latestIndex:0}),ne=w.Provider;var I=z=>{let{className:$,index:G,children:Q,split:L,style:D}=z;const{latestIndex:Y}=O.useContext(w);return Q==null?null:O.createElement(O.Fragment,null,O.createElement("div",{className:$,style:D},Q),G<Y&&L&&O.createElement("span",{className:`${$}-split`},L))},k=p(2856);function g(z){return["small","middle","large"].includes(z)}function _(z){return z?typeof z=="number"&&!Number.isNaN(z):!1}var S=function(z,$){var G={};for(var Q in z)Object.prototype.hasOwnProperty.call(z,Q)&&$.indexOf(Q)<0&&(G[Q]=z[Q]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,Q=Object.getOwnPropertySymbols(z);L<Q.length;L++)$.indexOf(Q[L])<0&&Object.prototype.propertyIsEnumerable.call(z,Q[L])&&(G[Q[L]]=z[Q[L]]);return G};const N=O.forwardRef((z,$)=>{var G,Q;const{getPrefixCls:L,space:D,direction:Y}=O.useContext(A.E_),{size:j=(D==null?void 0:D.size)||"small",align:xe,className:Ce,rootClassName:Se,children:ge,direction:de="horizontal",prefixCls:W,split:be,style:F,wrap:ce=!1,classNames:q,styles:y}=z,x=S(z,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Z,me]=Array.isArray(j)?j:[j,j],Ne=g(me),Ue=g(Z),ze=_(me),et=_(Z),pt=(0,ue.Z)(ge,{keepEmpty:!0}),gt=xe===void 0&&de==="horizontal"?"center":xe,at=L("space",W),[Ot,en]=(0,k.Z)(at),Rt=ee()(at,D==null?void 0:D.className,en,`${at}-${de}`,{[`${at}-rtl`]:Y==="rtl",[`${at}-align-${gt}`]:gt,[`${at}-gap-row-${me}`]:Ne,[`${at}-gap-col-${Z}`]:Ue},Ce,Se),Zt=ee()(`${at}-item`,(G=q==null?void 0:q.item)!==null&&G!==void 0?G:(Q=D==null?void 0:D.classNames)===null||Q===void 0?void 0:Q.item);let ut=0;const Ct=pt.map((le,J)=>{var Ie,H;le!=null&&(ut=J);const R=le&&le.key||`${Zt}-${J}`;return O.createElement(I,{className:Zt,key:R,index:J,split:be,style:(Ie=y==null?void 0:y.item)!==null&&Ie!==void 0?Ie:(H=D==null?void 0:D.styles)===null||H===void 0?void 0:H.item},le)}),he=O.useMemo(()=>({latestIndex:ut}),[ut]);if(pt.length===0)return null;const pe={};return ce&&(pe.flexWrap="wrap"),!Ue&&et&&(pe.columnGap=Z),!Ne&&ze&&(pe.rowGap=me),Ot(O.createElement("div",Object.assign({ref:$,className:Rt,style:Object.assign(Object.assign(Object.assign({},pe),D==null?void 0:D.style),F)},x),O.createElement(ne,{value:he},Ct)))});N.Compact=m.ZP;var ie=N},8378:function(Qt,He){"use strict";const p=O=>({[O.componentCls]:{[`${O.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${O.motionDurationMid} ${O.motionEaseInOut},
|
|
|
opacity ${O.motionDurationMid} ${O.motionEaseInOut} !important`}},[`${O.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${O.motionDurationMid} ${O.motionEaseInOut},
|
|
|
opacity ${O.motionDurationMid} ${O.motionEaseInOut} !important`}}});He.Z=p},92899:function(Qt,He,p){"use strict";p.d(He,{Fm:function(){return g}});var O=p(93083),U=p(95406);const ee=new O.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ue=new O.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A=new O.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m=new O.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),w=new O.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ne=new O.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),o=new O.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I=new O.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),k={"move-up":{inKeyframes:o,outKeyframes:I},"move-down":{inKeyframes:ee,outKeyframes:ue},"move-left":{inKeyframes:A,outKeyframes:m},"move-right":{inKeyframes:w,outKeyframes:ne}},g=(_,S)=>{const{antCls:T}=_,N=`${T}-${S}`,{inKeyframes:ie,outKeyframes:z}=k[S];return[(0,U.R)(N,ie,z,_.motionDurationMid),{[`
|
|
|
${N}-enter,
|
|
|
${N}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:_.motionEaseOutCirc},[`${N}-leave`]:{animationTimingFunction:_.motionEaseInOutCirc}}]}},13826:function(Qt,He,p){"use strict";p.d(He,{Qt:function(){return A},Uw:function(){return ue},fJ:function(){return ee},ly:function(){return m},oN:function(){return g}});var O=p(93083),U=p(95406);const ee=new O.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ue=new O.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new O.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),m=new O.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w=new O.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ne=new O.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new O.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),I=new O.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),k={"slide-up":{inKeyframes:ee,outKeyframes:ue},"slide-down":{inKeyframes:A,outKeyframes:m},"slide-left":{inKeyframes:w,outKeyframes:ne},"slide-right":{inKeyframes:o,outKeyframes:I}},g=(_,S)=>{const{antCls:T}=_,N=`${T}-${S}`,{inKeyframes:ie,outKeyframes:z}=k[S];return[(0,U.R)(N,ie,z,_.motionDurationMid),{[`
|
|
|
${N}-enter,
|
|
|
${N}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:_.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${N}-leave`]:{animationTimingFunction:_.motionEaseInQuint}}]}},15969:function(Qt,He,p){"use strict";p.d(He,{N:function(){return O}});const O=U=>({color:U.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${U.motionDurationSlow}`,"&:focus, &:hover":{color:U.colorLinkHover},"&:active":{color:U.colorLinkActive}})},19447:function(Qt,He,p){"use strict";p.d(He,{ZP:function(){return A},fS:function(){return ee},qN:function(){return U}});var O=p(47585);const U=8;function ee(m){const w=U,{contentRadius:ne,limitVerticalRadius:o}=m,I=ne>12?ne+2:12;return{dropdownArrowOffset:I,dropdownArrowOffsetVertical:o?w:I}}function ue(m,w){return m?w:{}}function A(m,w){const{componentCls:ne,sizePopupArrow:o,borderRadiusXS:I,borderRadiusOuter:k,boxShadowPopoverArrow:g}=m,{colorBg:_,contentRadius:S=m.borderRadiusLG,limitVerticalRadius:T,arrowDistance:N=0,arrowPlacement:ie={left:!0,right:!0,top:!0,bottom:!0}}=w,{dropdownArrowOffsetVertical:z,dropdownArrowOffset:$}=ee({contentRadius:S,limitVerticalRadius:T});return{[ne]:Object.assign(Object.assign(Object.assign(Object.assign({[`${ne}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,O.r)(o,I,k,_,g)),{"&:before":{background:_}})]},ue(!!ie.top,{[[`&-placement-top ${ne}-arrow`,`&-placement-topLeft ${ne}-arrow`,`&-placement-topRight ${ne}-arrow`].join(",")]:{bottom:N,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${ne}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${ne}-arrow`]:{left:{_skip_check_:!0,value:$}},[`&-placement-topRight ${ne}-arrow`]:{right:{_skip_check_:!0,value:$}}})),ue(!!ie.bottom,{[[`&-placement-bottom ${ne}-arrow`,`&-placement-bottomLeft ${ne}-arrow`,`&-placement-bottomRight ${ne}-arrow`].join(",")]:{top:N,transform:"translateY(-100%)"},[`&-placement-bottom ${ne}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${ne}-arrow`]:{left:{_skip_check_:!0,value:$}},[`&-placement-bottomRight ${ne}-arrow`]:{right:{_skip_check_:!0,value:$}}})),ue(!!ie.left,{[[`&-placement-left ${ne}-arrow`,`&-placement-leftTop ${ne}-arrow`,`&-placement-leftBottom ${ne}-arrow`].join(",")]:{right:{_skip_check_:!0,value:N},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${ne}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${ne}-arrow`]:{top:z},[`&-placement-leftBottom ${ne}-arrow`]:{bottom:z}})),ue(!!ie.right,{[[`&-placement-right ${ne}-arrow`,`&-placement-rightTop ${ne}-arrow`,`&-placement-rightBottom ${ne}-arrow`].join(",")]:{left:{_skip_check_:!0,value:N},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${ne}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${ne}-arrow`]:{top:z},[`&-placement-rightBottom ${ne}-arrow`]:{bottom:z}}))}}},47585:function(Qt,He,p){"use strict";p.d(He,{r:function(){return O}});const O=(U,ee,ue,A,m)=>{const w=U/2,ne=0,o=w,I=ue*1/Math.sqrt(2),k=w-ue*(1-1/Math.sqrt(2)),g=w-ee*(1/Math.sqrt(2)),_=ue*(Math.sqrt(2)-1)+ee*(1/Math.sqrt(2)),S=2*w-g,T=_,N=2*w-I,ie=k,z=2*w-ne,$=o,G=w*Math.sqrt(2)+ue*(Math.sqrt(2)-2),Q=ue*(Math.sqrt(2)-1);return{pointerEvents:"none",width:U,height:U,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:U,height:U/2,background:A,clipPath:{_multi_value_:!0,value:[`polygon(${Q}px 100%, 50% ${Q}px, ${2*w-Q}px 100%, ${Q}px 100%)`,`path('M ${ne} ${o} A ${ue} ${ue} 0 0 0 ${I} ${k} L ${g} ${_} A ${ee} ${ee} 0 0 1 ${S} ${T} L ${N} ${ie} A ${ue} ${ue} 0 0 0 ${z} ${$} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:G,height:G,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ee}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:m,zIndex:0,background:"transparent"}}}},1710:function(Qt,He,p){"use strict";p.d(He,{default:function(){return Eo}});var O={},U="rc-table-internal-hook",ee=p(52487),ue=p(6089),A=p(34280),m=p(13697),w=p(59301),ne=p(4676);function o(ae){var ve=w.createContext(void 0),$e=function(st){var ot=st.value,Et=st.children,St=w.useRef(ot);St.current=ot;var bt=w.useState(function(){return{getValue:function(){return St.current},listeners:new Set}}),It=(0,ee.Z)(bt,1),we=It[0];return(0,A.Z)(function(){(0,ne.unstable_batchedUpdates)(function(){we.listeners.forEach(function(Ut){Ut(ot)})})},[ot]),w.createElement(ve.Provider,{value:we},Et)};return{Context:ve,Provider:$e,defaultValue:ae}}function I(ae,ve){var $e=(0,ue.Z)(typeof ve=="function"?ve:function(Ut){if(ve===void 0)return Ut;if(!Array.isArray(ve))return Ut[ve];var fn={};return ve.forEach(function(an){fn[an]=Ut[an]}),fn}),We=w.useContext(ae==null?void 0:ae.Context),st=We||{},ot=st.listeners,Et=st.getValue,St=w.useRef();St.current=$e(We?Et():ae==null?void 0:ae.defaultValue);var bt=w.useState({}),It=(0,ee.Z)(bt,2),we=It[1];return(0,A.Z)(function(){if(!We)return;function Ut(fn){var an=$e(fn);(0,m.Z)(St.current,an,!0)||we({})}return ot.add(Ut),function(){ot.delete(Ut)}},[We]),St.current}var k=p(72308),g=p(8654);function _(){var ae=w.createContext(null);function ve(){return w.useContext(ae)}function $e(st,ot){var Et=(0,g.Yr)(st),St=function(It,we){var Ut=Et?{ref:we}:{},fn=w.useRef(0),an=w.useRef(It),dn=ve();return dn!==null?w.createElement(st,(0,k.Z)({},It,Ut)):((!ot||ot(an.current,It))&&(fn.current+=1),an.current=It,w.createElement(ae.Provider,{value:fn.current},w.createElement(st,(0,k.Z)({},It,Ut))))};return Et?w.forwardRef(St):St}function We(st,ot){var Et=(0,g.Yr)(st),St=function(It,we){var Ut=Et?{ref:we}:{};return ve(),w.createElement(st,(0,k.Z)({},It,Ut))};return Et?w.memo(w.forwardRef(St),ot):w.memo(St,ot)}return{makeImmutable:$e,responseImmutable:We,useImmutableMark:ve}}var S=_(),T=S.makeImmutable,N=S.responseImmutable,ie=S.useImmutableMark,z=_(),$=z.makeImmutable,G=z.responseImmutable,Q=z.useImmutableMark,L=o(),D=L;function Y(ae,ve){var $e=w.useRef(0);$e.current+=1;var We=w.useRef(ae),st=[];Object.keys(ae||{}).map(function(Et){var St;(ae==null?void 0:ae[Et])!==((St=We.current)===null||St===void 0?void 0:St[Et])&&st.push(Et)}),We.current=ae;var ot=w.useRef([]);return st.length&&(ot.current=st),w.useDebugValue($e.current),w.useDebugValue(ot.current.join(", ")),ve&&console.log("".concat(ve,":"),$e.current,ot.current),$e.current}var j=null,xe=w.memo(function(){var ae=Y();return w.createElement("h1",null,"Render Times: ",ae)});xe.displayName="RenderBlock";var Ce=p(62853),Se=p(77321),ge=p(49618),de=p(92310),W=p.n(de),be=p(80547),F=p(97938),ce=p(48736),q=w.createContext({renderWithProps:!1}),y=q,x="RC_TABLE_KEY";function Z(ae){return ae==null?[]:Array.isArray(ae)?ae:[ae]}function me(ae){var ve=[],$e={};return ae.forEach(function(We){for(var st=We||{},ot=st.key,Et=st.dataIndex,St=ot||Z(Et).join("-")||x;$e[St];)St="".concat(St,"_next");$e[St]=!0,ve.push(St)}),ve}function Ne(ae){return ae!=null}function Ue(ae){return ae&&(0,Ce.Z)(ae)==="object"&&!Array.isArray(ae)&&!w.isValidElement(ae)}function ze(ae,ve,$e,We,st,ot){var Et=w.useContext(y),St=Q(),bt=(0,be.Z)(function(){if(Ne(We))return[We];var It=ve==null||ve===""?[]:Array.isArray(ve)?ve:[ve],we=(0,F.Z)(ae,It),Ut=we,fn=void 0;if(st){var an=st(we,ae,$e);Ue(an)?(Ut=an.children,fn=an.props,Et.renderWithProps=!0):Ut=an}return[Ut,fn]},[St,ae,We,ve,st,$e],function(It,we){if(ot){var Ut=(0,ee.Z)(It,2),fn=Ut[1],an=(0,ee.Z)(we,2),dn=an[1];return ot(dn,fn)}return Et.renderWithProps?!0:!(0,m.Z)(It,we,!0)});return bt}function et(ae,ve,$e,We){var st=ae+ve-1;return ae<=We&&st>=$e}function pt(ae,ve){return I(D,function($e){var We=et(ae,ve||1,$e.hoverStartRow,$e.hoverEndRow);return[We,$e.onHover]})}var gt=function(ve){var $e=ve.ellipsis,We=ve.rowType,st=ve.children,ot,Et=$e===!0?{showTitle:!0}:$e;return Et&&(Et.showTitle||We==="header")&&(typeof st=="string"||typeof st=="number"?ot=st.toString():w.isValidElement(st)&&typeof st.props.children=="string"&&(ot=st.props.children)),ot};function at(ae){var ve,$e,We,st,ot,Et,St,bt,It=ae.component,we=ae.children,Ut=ae.ellipsis,fn=ae.scope,an=ae.prefixCls,dn=ae.className,Fn=ae.align,kn=ae.record,$n=ae.render,Mn=ae.dataIndex,Gn=ae.renderIndex,Sr=ae.shouldCellUpdate,wr=ae.index,br=ae.rowType,kr=ae.colSpan,jr=ae.rowSpan,er=ae.fixLeft,_r=ae.fixRight,Jn=ae.firstFixLeft,Kn=ae.lastFixLeft,hr=ae.firstFixRight,Nr=ae.lastFixRight,Jr=ae.appendNode,re=ae.additionalProps,l=re===void 0?{}:re,d=ae.isSticky,h="".concat(an,"-cell"),b=I(D,["supportSticky","allColumnsFixedLeft"]),M=b.supportSticky,se=b.allColumnsFixedLeft,Re=ze(kn,Mn,Gn,we,$n,Sr),Pe=(0,ee.Z)(Re,2),Je=Pe[0],ft=Pe[1],Tt={},Ht=typeof er=="number"&&M,_n=typeof _r=="number"&&M;Ht&&(Tt.position="sticky",Tt.left=er),_n&&(Tt.position="sticky",Tt.right=_r);var Vt=(ve=($e=(We=ft==null?void 0:ft.colSpan)!==null&&We!==void 0?We:l.colSpan)!==null&&$e!==void 0?$e:kr)!==null&&ve!==void 0?ve:1,Ge=(st=(ot=(Et=ft==null?void 0:ft.rowSpan)!==null&&Et!==void 0?Et:l.rowSpan)!==null&&ot!==void 0?ot:jr)!==null&&st!==void 0?st:1,hn=pt(wr,Ge),Tn=(0,ee.Z)(hn,2),ur=Tn[0],In=Tn[1],cr=function(yi){var Ii;kn&&In(wr,wr+Ge-1),l==null||(Ii=l.onMouseEnter)===null||Ii===void 0||Ii.call(l,yi)},Ar=function(yi){var Ii;kn&&In(-1,-1),l==null||(Ii=l.onMouseLeave)===null||Ii===void 0||Ii.call(l,yi)};if(Vt===0||Ge===0)return null;var Dr=(St=l.title)!==null&&St!==void 0?St:gt({rowType:br,ellipsis:Ut,children:Je}),fi=W()(h,dn,(bt={},(0,ge.Z)(bt,"".concat(h,"-fix-left"),Ht&&M),(0,ge.Z)(bt,"".concat(h,"-fix-left-first"),Jn&&M),(0,ge.Z)(bt,"".concat(h,"-fix-left-last"),Kn&&M),(0,ge.Z)(bt,"".concat(h,"-fix-left-all"),Kn&&se&&M),(0,ge.Z)(bt,"".concat(h,"-fix-right"),_n&&M),(0,ge.Z)(bt,"".concat(h,"-fix-right-first"),hr&&M),(0,ge.Z)(bt,"".concat(h,"-fix-right-last"),Nr&&M),(0,ge.Z)(bt,"".concat(h,"-ellipsis"),Ut),(0,ge.Z)(bt,"".concat(h,"-with-append"),Jr),(0,ge.Z)(bt,"".concat(h,"-fix-sticky"),(Ht||_n)&&d&&M),(0,ge.Z)(bt,"".concat(h,"-row-hover"),!ft&&ur),bt),l.className,ft==null?void 0:ft.className),hi={};Fn&&(hi.textAlign=Fn);var ki=(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},Tt),l.style),hi),ft==null?void 0:ft.style),ci=Je;return(0,Ce.Z)(ci)==="object"&&!Array.isArray(ci)&&!w.isValidElement(ci)&&(ci=null),Ut&&(Kn||hr)&&(ci=w.createElement("span",{className:"".concat(h,"-content")},ci)),w.createElement(It,(0,k.Z)({},ft,l,{className:fi,style:ki,title:Dr,scope:fn,onMouseEnter:cr,onMouseLeave:Ar,colSpan:Vt!==1?Vt:null,rowSpan:Ge!==1?Ge:null}),Jr,ci)}var Ot=w.memo(at);function en(ae,ve,$e,We,st,ot){var Et=$e[ae]||{},St=$e[ve]||{},bt,It;Et.fixed==="left"?bt=We.left[st==="rtl"?ve:ae]:St.fixed==="right"&&(It=We.right[st==="rtl"?ae:ve]);var we=!1,Ut=!1,fn=!1,an=!1,dn=$e[ve+1],Fn=$e[ae-1],kn=!(ot!=null&&ot.children);if(st==="rtl"){if(bt!==void 0){var $n=Fn&&Fn.fixed==="left";an=!$n&&kn}else if(It!==void 0){var Mn=dn&&dn.fixed==="right";fn=!Mn&&kn}}else if(bt!==void 0){var Gn=dn&&dn.fixed==="left";we=!Gn&&kn}else if(It!==void 0){var Sr=Fn&&Fn.fixed==="right";Ut=!Sr&&kn}return{fixLeft:bt,fixRight:It,lastFixLeft:we,firstFixRight:Ut,lastFixRight:fn,firstFixLeft:an,isSticky:We.isSticky}}var Rt=w.createContext({}),Zt=Rt;function ut(ae){var ve=ae.className,$e=ae.index,We=ae.children,st=ae.colSpan,ot=st===void 0?1:st,Et=ae.rowSpan,St=ae.align,bt=I(D,["prefixCls","direction"]),It=bt.prefixCls,we=bt.direction,Ut=w.useContext(Zt),fn=Ut.scrollColumnIndex,an=Ut.stickyOffsets,dn=Ut.flattenColumns,Fn=Ut.columns,kn=$e+ot-1,$n=kn+1===fn?ot+1:ot,Mn=en($e,$e+$n-1,dn,an,we,Fn==null?void 0:Fn[$e]);return w.createElement(Ot,(0,k.Z)({className:ve,index:$e,component:"td",prefixCls:It,record:null,dataIndex:null,align:St,colSpan:$n,rowSpan:Et,render:function(){return We}},Mn))}var Ct=p(74416),he=["children"];function pe(ae){var ve=ae.children,$e=(0,Ct.Z)(ae,he);return w.createElement("tr",$e,ve)}function le(ae){var ve=ae.children;return ve}le.Row=pe,le.Cell=ut;var J=le;function Ie(ae){var ve=ae.children,$e=ae.stickyOffsets,We=ae.flattenColumns,st=ae.columns,ot=I(D,"prefixCls"),Et=We.length-1,St=We[Et],bt=w.useMemo(function(){return{stickyOffsets:$e,flattenColumns:We,scrollColumnIndex:St!=null&&St.scrollbar?Et:null,columns:st}},[St,We,Et,$e,st]);return w.createElement(Zt.Provider,{value:bt},w.createElement("tfoot",{className:"".concat(ot,"-summary")},ve))}var H=G(Ie),R=J,P=p(70425),fe=p(29301),oe=p(29194),te=p(24514),Ae=p(75152),je=p(26112);function ke(ae,ve,$e,We,st,ot,Et){ae.push({record:ve,indent:$e,index:Et});var St=ot(ve),bt=st==null?void 0:st.has(St);if(ve&&Array.isArray(ve[We])&&bt)for(var It=0;It<ve[We].length;It+=1)ke(ae,ve[We][It],$e+1,We,st,ot,It)}function Be(ae,ve,$e,We){var st=w.useMemo(function(){if($e!=null&&$e.size){for(var ot=[],Et=0;Et<(ae==null?void 0:ae.length);Et+=1){var St=ae[Et];ke(ot,St,0,ve,$e,We,Et)}return ot}return ae==null?void 0:ae.map(function(bt,It){return{record:bt,indent:0,index:It}})},[ae,ve,$e,We]);return st}function qe(ae){var ve=ae.prefixCls,$e=ae.children,We=ae.component,st=ae.cellComponent,ot=ae.className,Et=ae.expanded,St=ae.colSpan,bt=ae.isEmpty,It=I(D,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),we=It.scrollbarSize,Ut=It.fixHeader,fn=It.fixColumn,an=It.componentWidth,dn=It.horizonScroll,Fn=$e;return(bt?dn&&an:fn)&&(Fn=w.createElement("div",{style:{width:an-(Ut?we:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ve,"-expanded-row-fixed")},Fn)),w.createElement(We,{className:ot,style:{display:Et?null:"none"}},w.createElement(Ot,{component:st,prefixCls:ve,colSpan:St},Fn))}var Qe=qe;function Ve(ae,ve,$e,We){var st=I(D,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ot=st.flattenColumns,Et=st.expandableType,St=st.expandedKeys,bt=st.childrenColumnName,It=st.onTriggerExpand,we=st.rowExpandable,Ut=st.onRow,fn=st.expandRowByClick,an=st.rowClassName,dn=Et==="nest",Fn=Et==="row"&&(!we||we(ae)),kn=Fn||dn,$n=St&&St.has(ve),Mn=bt&&ae&&ae[bt],Gn=(0,P.useEvent)(It),Sr=Ut==null?void 0:Ut(ae,$e),wr=Sr==null?void 0:Sr.onClick,br=function(_r){fn&&kn&&It(ae,_r);for(var Jn=arguments.length,Kn=new Array(Jn>1?Jn-1:0),hr=1;hr<Jn;hr++)Kn[hr-1]=arguments[hr];wr==null||wr.apply(void 0,[_r].concat(Kn))},kr;typeof an=="string"?kr=an:typeof an=="function"&&(kr=an(ae,$e,We));var jr=me(ot);return(0,Se.Z)((0,Se.Z)({},st),{},{columnsKey:jr,nestExpandable:dn,expanded:$n,hasNestChildren:Mn,record:ae,onTriggerExpand:Gn,rowSupportExpand:Fn,expandable:kn,rowProps:(0,Se.Z)((0,Se.Z)({},Sr),{},{className:W()(kr,Sr==null?void 0:Sr.className),onClick:br})})}function xt(ae,ve,$e,We,st){var ot=ae.record,Et=ae.prefixCls,St=ae.columnsKey,bt=ae.fixedInfoList,It=ae.expandIconColumnIndex,we=ae.nestExpandable,Ut=ae.indentSize,fn=ae.expandIcon,an=ae.expanded,dn=ae.hasNestChildren,Fn=ae.onTriggerExpand,kn=St[$e],$n=bt[$e],Mn;$e===(It||0)&&we&&(Mn=w.createElement(w.Fragment,null,w.createElement("span",{style:{paddingLeft:"".concat(Ut*We,"px")},className:"".concat(Et,"-row-indent indent-level-").concat(We)}),fn({prefixCls:Et,expanded:an,expandable:dn,record:ot,onExpand:Fn})));var Gn;return ve.onCell&&(Gn=ve.onCell(ot,st)),{key:kn,fixedInfo:$n,appendCellNode:Mn,additionalCellProps:Gn||{}}}function Dt(ae){var ve=ae.className,$e=ae.style,We=ae.record,st=ae.index,ot=ae.renderIndex,Et=ae.rowKey,St=ae.indent,bt=St===void 0?0:St,It=ae.rowComponent,we=ae.cellComponent,Ut=ae.scopeCellComponent,fn=Ve(We,Et,st,bt),an=fn.prefixCls,dn=fn.flattenColumns,Fn=fn.expandedRowClassName,kn=fn.expandedRowRender,$n=fn.rowProps,Mn=fn.expanded,Gn=fn.rowSupportExpand,Sr=w.useState(!1),wr=(0,ee.Z)(Sr,2),br=wr[0],kr=wr[1];w.useEffect(function(){Mn&&kr(!0)},[Mn]);var jr=w.createElement(It,(0,k.Z)({},$n,{"data-row-key":Et,className:W()(ve,"".concat(an,"-row"),"".concat(an,"-row-level-").concat(bt),$n==null?void 0:$n.className),style:(0,Se.Z)((0,Se.Z)({},$e),$n==null?void 0:$n.style)}),dn.map(function(Kn,hr){var Nr=Kn.render,Jr=Kn.dataIndex,re=Kn.className,l=xt(fn,Kn,hr,bt,st),d=l.key,h=l.fixedInfo,b=l.appendCellNode,M=l.additionalCellProps;return w.createElement(Ot,(0,k.Z)({className:re,ellipsis:Kn.ellipsis,align:Kn.align,scope:Kn.rowScope,component:Kn.rowScope?Ut:we,prefixCls:an,key:d,record:We,index:st,renderIndex:ot,dataIndex:Jr,render:Nr,shouldCellUpdate:Kn.shouldCellUpdate},h,{appendNode:b,additionalProps:M}))})),er;if(Gn&&(br||Mn)){var _r=kn(We,st,bt+1,Mn),Jn=Fn&&Fn(We,st,bt);er=w.createElement(Qe,{expanded:Mn,className:W()("".concat(an,"-expanded-row"),"".concat(an,"-expanded-row-level-").concat(bt+1),Jn),prefixCls:an,component:It,cellComponent:we,colSpan:dn.length,isEmpty:!1},_r)}return w.createElement(w.Fragment,null,jr,er)}Dt.displayName="BodyRow";var vt=G(Dt);function Bt(ae){var ve=ae.columnKey,$e=ae.onColumnResize,We=w.useRef();return w.useEffect(function(){We.current&&$e(ve,We.current.offsetWidth)},[]),w.createElement(fe.Z,{data:ve},w.createElement("td",{ref:We,style:{padding:0,border:0,height:0}},w.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function jt(ae){var ve=ae.prefixCls,$e=ae.columnsKey,We=ae.onColumnResize;return w.createElement("tr",{"aria-hidden":"true",className:"".concat(ve,"-measure-row"),style:{height:0,fontSize:0}},w.createElement(fe.Z.Collection,{onBatchResize:function(ot){ot.forEach(function(Et){var St=Et.data,bt=Et.size;We(St,bt.offsetWidth)})}},$e.map(function(st){return w.createElement(Bt,{key:st,columnKey:st,onColumnResize:We})})))}function C(ae){var ve=ae.data,$e=ae.measureColumnWidth,We=I(D,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),st=We.prefixCls,ot=We.getComponent,Et=We.onColumnResize,St=We.flattenColumns,bt=We.getRowKey,It=We.expandedKeys,we=We.childrenColumnName,Ut=We.emptyNode,fn=Be(ve,we,It,bt),an=w.useRef({renderWithProps:!1}),dn=ot(["body","wrapper"],"tbody"),Fn=ot(["body","row"],"tr"),kn=ot(["body","cell"],"td"),$n=ot(["body","cell"],"th"),Mn;ve.length?Mn=fn.map(function(Sr,wr){var br=Sr.record,kr=Sr.indent,jr=Sr.index,er=bt(br,wr);return w.createElement(vt,{key:er,rowKey:er,record:br,index:wr,renderIndex:jr,rowComponent:Fn,cellComponent:kn,scopeCellComponent:$n,getRowKey:bt,indent:kr})}):Mn=w.createElement(Qe,{expanded:!0,className:"".concat(st,"-placeholder"),prefixCls:st,component:Fn,cellComponent:kn,colSpan:St.length,isEmpty:!0},Ut);var Gn=me(St);return w.createElement(y.Provider,{value:an.current},w.createElement(dn,{className:"".concat(st,"-tbody")},$e&&w.createElement(jt,{prefixCls:st,columnsKey:Gn,onColumnResize:Et}),Mn))}C.displayName="Body";var B=G(C),yt=["expandable"],ye="RC_TABLE_INTERNAL_COL_DEFINE";function Me(ae){var ve=ae.expandable,$e=(0,Ct.Z)(ae,yt),We;return"expandable"in ae?We=(0,Se.Z)((0,Se.Z)({},$e),ve):We=$e,We.showExpandColumn===!1&&(We.expandIconColumnIndex=-1),We}var Sn=["columnType"];function it(ae){for(var ve=ae.colWidths,$e=ae.columns,We=ae.columCount,st=[],ot=We||$e.length,Et=!1,St=ot-1;St>=0;St-=1){var bt=ve[St],It=$e&&$e[St],we=It&&It[ye];if(bt||we||Et){var Ut=we||{},fn=Ut.columnType,an=(0,Ct.Z)(Ut,Sn);st.unshift(w.createElement("col",(0,k.Z)({key:St,style:{width:bt}},an))),Et=!0}}return w.createElement("colgroup",null,st)}var nt=it,rt=p(80702),Ee=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function De(ae,ve){return(0,w.useMemo)(function(){for(var $e=[],We=0;We<ve;We+=1){var st=ae[We];if(st!==void 0)$e[We]=st;else return null}return $e},[ae.join("_"),ve])}var Fe=w.forwardRef(function(ae,ve){var $e=ae.className,We=ae.noData,st=ae.columns,ot=ae.flattenColumns,Et=ae.colWidths,St=ae.columCount,bt=ae.stickyOffsets,It=ae.direction,we=ae.fixHeader,Ut=ae.stickyTopOffset,fn=ae.stickyBottomOffset,an=ae.stickyClassName,dn=ae.onScroll,Fn=ae.maxContentScroll,kn=ae.children,$n=(0,Ct.Z)(ae,Ee),Mn=I(D,["prefixCls","scrollbarSize","isSticky"]),Gn=Mn.prefixCls,Sr=Mn.scrollbarSize,wr=Mn.isSticky,br=wr&&!we?0:Sr,kr=w.useRef(null),jr=w.useCallback(function(re){(0,g.mH)(ve,re),(0,g.mH)(kr,re)},[]);w.useEffect(function(){var re;function l(d){var h=d,b=h.currentTarget,M=h.deltaX;M&&(dn({currentTarget:b,scrollLeft:b.scrollLeft+M}),d.preventDefault())}return(re=kr.current)===null||re===void 0||re.addEventListener("wheel",l),function(){var d;(d=kr.current)===null||d===void 0||d.removeEventListener("wheel",l)}},[]);var er=w.useMemo(function(){return ot.every(function(re){return re.width})},[ot]),_r=ot[ot.length-1],Jn={fixed:_r?_r.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Gn,"-cell-scrollbar")}}},Kn=(0,w.useMemo)(function(){return br?[].concat((0,rt.Z)(st),[Jn]):st},[br,st]),hr=(0,w.useMemo)(function(){return br?[].concat((0,rt.Z)(ot),[Jn]):ot},[br,ot]),Nr=(0,w.useMemo)(function(){var re=bt.right,l=bt.left;return(0,Se.Z)((0,Se.Z)({},bt),{},{left:It==="rtl"?[].concat((0,rt.Z)(l.map(function(d){return d+br})),[0]):l,right:It==="rtl"?re:[].concat((0,rt.Z)(re.map(function(d){return d+br})),[0]),isSticky:wr})},[br,bt,wr]),Jr=De(Et,St);return w.createElement("div",{style:(0,Se.Z)({overflow:"hidden"},wr?{top:Ut,bottom:fn}:{}),ref:jr,className:W()($e,(0,ge.Z)({},an,!!an))},w.createElement("table",{style:{tableLayout:"fixed",visibility:We||Jr?null:"hidden"}},(!We||!Fn||er)&&w.createElement(nt,{colWidths:Jr?[].concat((0,rt.Z)(Jr),[br]):[],columCount:St+1,columns:hr}),kn((0,Se.Z)((0,Se.Z)({},$n),{},{stickyOffsets:Nr,columns:Kn,flattenColumns:hr}))))});Fe.displayName="FixedHolder";var tt=w.memo(Fe);function _e(ae){var ve=ae.cells,$e=ae.stickyOffsets,We=ae.flattenColumns,st=ae.rowComponent,ot=ae.cellComponent,Et=ae.tdCellComponent,St=ae.onHeaderRow,bt=ae.index,It=I(D,["prefixCls","direction"]),we=It.prefixCls,Ut=It.direction,fn;St&&(fn=St(ve.map(function(dn){return dn.column}),bt));var an=me(ve.map(function(dn){return dn.column}));return w.createElement(st,fn,ve.map(function(dn,Fn){var kn=dn.column,$n=en(dn.colStart,dn.colEnd,We,$e,Ut,kn),Mn;return kn&&kn.onHeaderCell&&(Mn=dn.column.onHeaderCell(kn)),w.createElement(Ot,(0,k.Z)({},dn,{scope:kn.title?dn.colSpan>1?"colgroup":"col":null,ellipsis:kn.ellipsis,align:kn.align,component:kn.title?ot:Et,prefixCls:we,key:an[Fn]},$n,{additionalProps:Mn,rowType:"header"}))}))}_e.displayName="HeaderRow";var Jt=_e;function Ze(ae){var ve=[];function $e(Et,St){var bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[bt]=ve[bt]||[];var It=St,we=Et.filter(Boolean).map(function(Ut){var fn={key:Ut.key,className:Ut.className||"",children:Ut.title,column:Ut,colStart:It},an=1,dn=Ut.children;return dn&&dn.length>0&&(an=$e(dn,It,bt+1).reduce(function(Fn,kn){return Fn+kn},0),fn.hasSubColumns=!0),"colSpan"in Ut&&(an=Ut.colSpan),"rowSpan"in Ut&&(fn.rowSpan=Ut.rowSpan),fn.colSpan=an,fn.colEnd=fn.colStart+an-1,ve[bt].push(fn),It+=an,an});return we}$e(ae,0);for(var We=ve.length,st=function(St){ve[St].forEach(function(bt){!("rowSpan"in bt)&&!bt.hasSubColumns&&(bt.rowSpan=We-St)})},ot=0;ot<We;ot+=1)st(ot);return ve}function xn(ae){var ve=ae.stickyOffsets,$e=ae.columns,We=ae.flattenColumns,st=ae.onHeaderRow,ot=I(D,["prefixCls","getComponent"]),Et=ot.prefixCls,St=ot.getComponent,bt=w.useMemo(function(){return Ze($e)},[$e]),It=St(["header","wrapper"],"thead"),we=St(["header","row"],"tr"),Ut=St(["header","cell"],"th"),fn=St(["header","cell"],"td");return w.createElement(It,{className:"".concat(Et,"-thead")},bt.map(function(an,dn){var Fn=w.createElement(Jt,{key:dn,flattenColumns:We,cells:an,stickyOffsets:ve,rowComponent:we,cellComponent:Ut,tdCellComponent:fn,onHeaderRow:st,index:dn});return Fn}))}var Rn=G(xn),Wn=p(11592);function yr(ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ve=="number"?ve:ve.endsWith("%")?ae*parseFloat(ve)/100:null}function vn(ae,ve){return w.useMemo(function(){if(ve&&ve>0){var $e=0,We=0;ae.forEach(function(It){var we=yr(ve,It.width);we?$e+=we:We+=1});var st=ve-$e,ot=We,Et=st/We,St=0,bt=ae.map(function(It){var we=(0,Se.Z)({},It),Ut=yr(ve,we.width);if(Ut)we.width=Ut;else{var fn=Math.floor(Et);we.width=ot===1?st:fn,st-=fn,ot-=1}return St+=we.width,we});return[bt,St]}return[ae,ve]},[ae,ve])}var wn=["children"],Xe=["fixed"];function Lt(ae){return(0,Wn.Z)(ae).filter(function(ve){return w.isValidElement(ve)}).map(function(ve){var $e=ve.key,We=ve.props,st=We.children,ot=(0,Ct.Z)(We,wn),Et=(0,Se.Z)({key:$e},ot);return st&&(Et.children=Lt(st)),Et})}function Wt(ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ae.filter(function($e){return $e&&(0,Ce.Z)($e)==="object"}).reduce(function($e,We,st){var ot=We.fixed,Et=ot===!0?"left":ot,St="".concat(ve,"-").concat(st),bt=We.children;return bt&&bt.length>0?[].concat((0,rt.Z)($e),(0,rt.Z)(Wt(bt,St).map(function(It){return(0,Se.Z)({fixed:Et},It)}))):[].concat((0,rt.Z)($e),[(0,Se.Z)((0,Se.Z)({key:St},We),{},{fixed:Et})])},[])}function Ke(ae){for(var ve=!0,$e=0;$e<ae.length;$e+=1){var We=ae[$e];if(ve&&We.fixed!=="left")ve=!1;else if(!ve&&We.fixed==="left"){warning(!1,"Index ".concat($e-1," of `columns` missing `fixed='left'` prop."));break}}for(var st=!0,ot=ae.length-1;ot>=0;ot-=1){var Et=ae[ot];if(st&&Et.fixed!=="right")st=!1;else if(!st&&Et.fixed==="right"){warning(!1,"Index ".concat(ot+1," of `columns` missing `fixed='right'` prop."));break}}}function Oe(ae){return ae.map(function(ve){var $e=ve.fixed,We=(0,Ct.Z)(ve,Xe),st=$e;return $e==="left"?st="right":$e==="right"&&(st="left"),(0,Se.Z)({fixed:st},We)})}function _t(ae,ve){var $e=ae.prefixCls,We=ae.columns,st=ae.children,ot=ae.expandable,Et=ae.expandedKeys,St=ae.columnTitle,bt=ae.getRowKey,It=ae.onTriggerExpand,we=ae.expandIcon,Ut=ae.rowExpandable,fn=ae.expandIconColumnIndex,an=ae.direction,dn=ae.expandRowByClick,Fn=ae.columnWidth,kn=ae.fixed,$n=ae.scrollWidth,Mn=w.useMemo(function(){return We||Lt(st)},[We,st]),Gn=w.useMemo(function(){if(ot){var _r,Jn=Mn.slice();if(!Jn.includes(O)){var Kn=fn||0;Kn>=0&&Jn.splice(Kn,0,O)}var hr=Jn.indexOf(O);Jn=Jn.filter(function(l,d){return l!==O||d===hr});var Nr=Mn[hr],Jr;(kn==="left"||kn)&&!fn?Jr="left":(kn==="right"||kn)&&fn===Mn.length?Jr="right":Jr=Nr?Nr.fixed:null;var re=(_r={},(0,ge.Z)(_r,ye,{className:"".concat($e,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ge.Z)(_r,"title",St),(0,ge.Z)(_r,"fixed",Jr),(0,ge.Z)(_r,"className","".concat($e,"-row-expand-icon-cell")),(0,ge.Z)(_r,"width",Fn),(0,ge.Z)(_r,"render",function(d,h,b){var M=bt(h,b),se=Et.has(M),Re=Ut?Ut(h):!0,Pe=we({prefixCls:$e,expanded:se,expandable:Re,record:h,onExpand:It});return dn?w.createElement("span",{onClick:function(ft){return ft.stopPropagation()}},Pe):Pe}),_r);return Jn.map(function(l){return l===O?re:l})}return Mn.filter(function(l){return l!==O})},[ot,Mn,bt,Et,we,an]),Sr=w.useMemo(function(){var _r=Gn;return ve&&(_r=ve(_r)),_r.length||(_r=[{render:function(){return null}}]),_r},[ve,Gn,an]),wr=w.useMemo(function(){return an==="rtl"?Oe(Wt(Sr)):Wt(Sr)},[Sr,an,$n]),br=vn(wr,$n),kr=(0,ee.Z)(br,2),jr=kr[0],er=kr[1];return[Sr,jr,er]}var wt=_t;function rn(ae){var ve,$e=ae.prefixCls,We=ae.record,st=ae.onExpand,ot=ae.expanded,Et=ae.expandable,St="".concat($e,"-row-expand-icon");if(!Et)return w.createElement("span",{className:W()(St,"".concat($e,"-row-spaced"))});var bt=function(we){st(We,we),we.stopPropagation()};return w.createElement("span",{className:W()(St,(ve={},(0,ge.Z)(ve,"".concat($e,"-row-expanded"),ot),(0,ge.Z)(ve,"".concat($e,"-row-collapsed"),!ot),ve)),onClick:bt})}function Xt(ae,ve,$e){var We=[];function st(ot){(ot||[]).forEach(function(Et,St){We.push(ve(Et,St)),st(Et[$e])})}return st(ae),We}function cn(ae,ve,$e){var We=Me(ae),st=We.expandIcon,ot=We.expandedRowKeys,Et=We.defaultExpandedRowKeys,St=We.defaultExpandAllRows,bt=We.expandedRowRender,It=We.onExpand,we=We.onExpandedRowsChange,Ut=We.childrenColumnName,fn=st||rn,an=Ut||"children",dn=w.useMemo(function(){return bt?"row":ae.expandable&&ae.internalHooks===U&&ae.expandable.__PARENT_RENDER_ICON__||ve.some(function(wr){return wr&&(0,Ce.Z)(wr)==="object"&&wr[an]})?"nest":!1},[!!bt,ve]),Fn=w.useState(function(){return Et||(St?Xt(ve,$e,an):[])}),kn=(0,ee.Z)(Fn,2),$n=kn[0],Mn=kn[1],Gn=w.useMemo(function(){return new Set(ot||$n||[])},[ot,$n]),Sr=w.useCallback(function(wr){var br=$e(wr,ve.indexOf(wr)),kr,jr=Gn.has(br);jr?(Gn.delete(br),kr=(0,rt.Z)(Gn)):kr=[].concat((0,rt.Z)(Gn),[br]),Mn(kr),It&&It(!jr,wr),we&&we(kr)},[$e,Gn,ve,It,we]);return[We,dn,Gn,fn,an,Sr]}function nn(ae,ve,$e,We){var st=ae.map(function(ot,Et){return en(Et,Et,ae,ve,$e,We==null?void 0:We[Et])});return(0,be.Z)(function(){return st},[st],function(ot,Et){return!(0,m.Z)(ot,Et)})}function pn(ae){var ve=(0,w.useRef)(ae),$e=(0,w.useState)({}),We=(0,ee.Z)($e,2),st=We[1],ot=(0,w.useRef)(null),Et=(0,w.useRef)([]);function St(bt){Et.current.push(bt);var It=Promise.resolve();ot.current=It,It.then(function(){if(ot.current===It){var we=Et.current,Ut=ve.current;Et.current=[],we.forEach(function(fn){ve.current=fn(ve.current)}),ot.current=null,Ut!==ve.current&&st({})}})}return(0,w.useEffect)(function(){return function(){ot.current=null}},[]),[ve.current,St]}function Ln(ae){var ve=(0,w.useRef)(ae||null),$e=(0,w.useRef)();function We(){window.clearTimeout($e.current)}function st(Et){ve.current=Et,We(),$e.current=window.setTimeout(function(){ve.current=null,$e.current=void 0},100)}function ot(){return ve.current}return(0,w.useEffect)(function(){return We},[]),[st,ot]}function Kt(){var ae=w.useState(-1),ve=(0,ee.Z)(ae,2),$e=ve[0],We=ve[1],st=w.useState(-1),ot=(0,ee.Z)(st,2),Et=ot[0],St=ot[1],bt=w.useCallback(function(It,we){We(It),St(we)},[]);return[$e,Et,bt]}var zt=p(47273),ln=(0,zt.Z)()?window:null;function sn(ae,ve){var $e=(0,Ce.Z)(ae)==="object"?ae:{},We=$e.offsetHeader,st=We===void 0?0:We,ot=$e.offsetSummary,Et=ot===void 0?0:ot,St=$e.offsetScroll,bt=St===void 0?0:St,It=$e.getContainer,we=It===void 0?function(){return ln}:It,Ut=we()||ln;return w.useMemo(function(){var fn=!!ae;return{isSticky:fn,stickyClassName:fn?"".concat(ve,"-sticky-holder"):"",offsetHeader:st,offsetSummary:Et,offsetScroll:bt,container:Ut}},[bt,st,Et,ve,Ut])}function mn(ae,ve,$e){var We=(0,w.useMemo)(function(){for(var st=[],ot=[],Et=0,St=0,bt=0;bt<ve;bt+=1)if($e==="rtl"){ot[bt]=St,St+=ae[bt]||0;var It=ve-bt-1;st[It]=Et,Et+=ae[It]||0}else{st[bt]=Et,Et+=ae[bt]||0;var we=ve-bt-1;ot[we]=St,St+=ae[we]||0}return{left:st,right:ot}},[ae,ve,$e]);return We}var un=mn;function ar(ae){var ve=ae.className,$e=ae.children;return w.createElement("div",{className:ve},$e)}var On=ar,tn=p(8224),ct=p(55468),ht=function(ve,$e){var We,st,ot=ve.scrollBodyRef,Et=ve.onScroll,St=ve.offsetScroll,bt=ve.container,It=I(D,"prefixCls"),we=((We=ot.current)===null||We===void 0?void 0:We.scrollWidth)||0,Ut=((st=ot.current)===null||st===void 0?void 0:st.clientWidth)||0,fn=we&&Ut*(Ut/we),an=w.useRef(),dn=pn({scrollLeft:0,isHiddenScrollBar:!1}),Fn=(0,ee.Z)(dn,2),kn=Fn[0],$n=Fn[1],Mn=w.useRef({delta:0,x:0}),Gn=w.useState(!1),Sr=(0,ee.Z)(Gn,2),wr=Sr[0],br=Sr[1],kr=function(){br(!1)},jr=function(hr){hr.persist(),Mn.current.delta=hr.pageX-kn.scrollLeft,Mn.current.x=0,br(!0),hr.preventDefault()},er=function(hr){var Nr,Jr=hr||((Nr=window)===null||Nr===void 0?void 0:Nr.event),re=Jr.buttons;if(!wr||re===0){wr&&br(!1);return}var l=Mn.current.x+hr.pageX-Mn.current.x-Mn.current.delta;l<=0&&(l=0),l+fn>=Ut&&(l=Ut-fn),Et({scrollLeft:l/Ut*(we+2)}),Mn.current.x=hr.pageX},_r=function(){if(ot.current){var hr=(0,ct.os)(ot.current).top,Nr=hr+ot.current.offsetHeight,Jr=bt===window?document.documentElement.scrollTop+window.innerHeight:(0,ct.os)(bt).top+bt.clientHeight;Nr-(0,Ae.Z)()<=Jr||hr>=Jr-St?$n(function(re){return(0,Se.Z)((0,Se.Z)({},re),{},{isHiddenScrollBar:!0})}):$n(function(re){return(0,Se.Z)((0,Se.Z)({},re),{},{isHiddenScrollBar:!1})})}},Jn=function(hr){$n(function(Nr){return(0,Se.Z)((0,Se.Z)({},Nr),{},{scrollLeft:hr/we*Ut||0})})};return w.useImperativeHandle($e,function(){return{setScrollLeft:Jn}}),w.useEffect(function(){var Kn=(0,tn.Z)(document.body,"mouseup",kr,!1),hr=(0,tn.Z)(document.body,"mousemove",er,!1);return _r(),function(){Kn.remove(),hr.remove()}},[fn,wr]),w.useEffect(function(){var Kn=(0,tn.Z)(bt,"scroll",_r,!1),hr=(0,tn.Z)(window,"resize",_r,!1);return function(){Kn.remove(),hr.remove()}},[bt]),w.useEffect(function(){kn.isHiddenScrollBar||$n(function(Kn){var hr=ot.current;return hr?(0,Se.Z)((0,Se.Z)({},Kn),{},{scrollLeft:hr.scrollLeft/hr.scrollWidth*hr.clientWidth}):Kn})},[kn.isHiddenScrollBar]),we<=Ut||!fn||kn.isHiddenScrollBar?null:w.createElement("div",{style:{height:(0,Ae.Z)(),width:Ut,bottom:St},className:"".concat(It,"-sticky-scroll")},w.createElement("div",{onMouseDown:jr,ref:an,className:W()("".concat(It,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(It,"-sticky-scroll-bar-active"),wr)),style:{width:"".concat(fn,"px"),transform:"translate3d(".concat(kn.scrollLeft,"px, 0, 0)")}}))},At=w.forwardRef(ht);function Ft(ae){return null}var Pt=Ft;function Yt(ae){return null}var Mt=Yt,gn="rc-table",An=[],Dn={};function Xn(){return"No Data"}function nr(ae){var ve,$e=(0,Se.Z)({rowKey:"key",prefixCls:gn,emptyText:Xn},ae),We=$e.prefixCls,st=$e.className,ot=$e.rowClassName,Et=$e.style,St=$e.data,bt=$e.rowKey,It=$e.scroll,we=$e.tableLayout,Ut=$e.direction,fn=$e.title,an=$e.footer,dn=$e.summary,Fn=$e.caption,kn=$e.id,$n=$e.showHeader,Mn=$e.components,Gn=$e.emptyText,Sr=$e.onRow,wr=$e.onHeaderRow,br=$e.internalHooks,kr=$e.transformColumns,jr=$e.internalRefs,er=$e.tailor,_r=$e.sticky,Jn=St||An,Kn=!!Jn.length,hr=br===U,Nr=w.useCallback(function(Si,Wi){return(0,F.Z)(Mn,Si)||Wi},[Mn]),Jr=w.useMemo(function(){return typeof bt=="function"?bt:function(Si){var Wi=Si&&Si[bt];return Wi}},[bt]),re=Nr(["body"]),l=Kt(),d=(0,ee.Z)(l,3),h=d[0],b=d[1],M=d[2],se=cn($e,Jn,Jr),Re=(0,ee.Z)(se,6),Pe=Re[0],Je=Re[1],ft=Re[2],Tt=Re[3],Ht=Re[4],_n=Re[5],Vt=It==null?void 0:It.x,Ge=w.useState(0),hn=(0,ee.Z)(Ge,2),Tn=hn[0],ur=hn[1],In=wt((0,Se.Z)((0,Se.Z)((0,Se.Z)({},$e),Pe),{},{expandable:!!Pe.expandedRowRender,columnTitle:Pe.columnTitle,expandedKeys:ft,getRowKey:Jr,onTriggerExpand:_n,expandIcon:Tt,expandIconColumnIndex:Pe.expandIconColumnIndex,direction:Ut,scrollWidth:hr&&er&&typeof Vt=="number"?Vt:null}),hr?kr:null),cr=(0,ee.Z)(In,3),Ar=cr[0],Dr=cr[1],fi=cr[2],hi=fi!=null?fi:Vt,ki=w.useMemo(function(){return{columns:Ar,flattenColumns:Dr}},[Ar,Dr]),ci=w.useRef(),pi=w.useRef(),yi=w.useRef(),Ii=w.useRef(),ys=w.useRef(),Wr=w.useState(!1),ai=(0,ee.Z)(Wr,2),Ei=ai[0],Ji=ai[1],qi=w.useState(!1),Br=(0,ee.Z)(qi,2),Qi=Br[0],es=Br[1],bs=pn(new Map),Rs=(0,ee.Z)(bs,2),Ls=Rs[0],$a=Rs[1],ra=me(Dr),Os=ra.map(function(Si){return Ls.get(Si)}),_s=w.useMemo(function(){return Os},[Os.join("_")]),ps=un(_s,Dr.length,Ut),ts=It&&Ne(It.y),Oi=It&&Ne(hi)||!!Pe.fixed,ia=Oi&&Dr.some(function(Si){var Wi=Si.fixed;return Wi}),sa=w.useRef(),pa=sn(_r,We),ma=pa.isSticky,So=pa.offsetHeader,wo=pa.offsetSummary,mi=pa.offsetScroll,zi=pa.stickyClassName,ws=pa.container,Gi=w.useMemo(function(){return dn==null?void 0:dn(Jn)},[dn,Jn]),Ps=(ts||ma)&&w.isValidElement(Gi)&&Gi.type===J&&Gi.props.fixed,ks,Ms,Ia;ts&&(Ms={overflowY:"scroll",maxHeight:It.y}),Oi&&(ks={overflowX:"auto"},ts||(Ms={overflowY:"hidden"}),Ia={width:hi===!0?"auto":hi,minWidth:"100%"});var zs=w.useCallback(function(Si,Wi){(0,oe.Z)(ci.current)&&$a(function(Gs){if(Gs.get(Si)!==Wi){var Ra=new Map(Gs);return Ra.set(Si,Wi),Ra}return Gs})},[]),Ul=Ln(null),Qo=(0,ee.Z)(Ul,2),Kl=Qo[0],vl=Qo[1];function Fo(Si,Wi){Wi&&(typeof Wi=="function"?Wi(Si):Wi.scrollLeft!==Si&&(Wi.scrollLeft=Si,Wi.scrollLeft!==Si&&setTimeout(function(){Wi.scrollLeft=Si},0)))}var ro=(0,ue.Z)(function(Si){var Wi=Si.currentTarget,Gs=Si.scrollLeft,Ra=Ut==="rtl",La=typeof Gs=="number"?Gs:Wi.scrollLeft,ll=Wi||Dn;if(!vl()||vl()===ll){var Zo;Kl(ll),Fo(La,pi.current),Fo(La,yi.current),Fo(La,ys.current),Fo(La,(Zo=sa.current)===null||Zo===void 0?void 0:Zo.setScrollLeft)}var Wa=Wi||pi.current;if(Wa){var jo=Wa.scrollWidth,Ga=Wa.clientWidth;if(jo===Ga){Ji(!1),es(!1);return}Ra?(Ji(-La<jo-Ga),es(-La>0)):(Ji(La>0),es(La<jo-Ga))}}),ja=function(){Oi&&yi.current?ro({currentTarget:yi.current}):(Ji(!1),es(!1))},yl=function(Wi){var Gs=Wi.width;Gs!==Tn&&(ja(),ur(ci.current?ci.current.offsetWidth:Gs))},za=w.useRef(!1);w.useEffect(function(){za.current&&ja()},[Oi,St,Ar.length]),w.useEffect(function(){za.current=!0},[]);var bl=w.useState(0),Jo=(0,ee.Z)(bl,2),Co=Jo[0],aa=Jo[1],qo=w.useState(!0),$o=(0,ee.Z)(qo,2),el=$o[0],_l=$o[1];w.useEffect(function(){(!er||!hr)&&(yi.current instanceof Element?aa((0,Ae.o)(yi.current).width):aa((0,Ae.o)(Ii.current).width)),_l((0,te.G)("position","sticky"))},[]),w.useEffect(function(){hr&&jr&&(jr.body.current=yi.current)});var xl=w.useCallback(function(Si){return w.createElement(w.Fragment,null,w.createElement(Rn,Si),Ps==="top"&&w.createElement(H,Si,Gi))},[Ps,Gi]),El=w.useCallback(function(Si){return w.createElement(H,Si,Gi)},[Gi]),tl=Nr(["table"],"table"),To=w.useMemo(function(){return we||(ia?hi==="max-content"?"auto":"fixed":ts||ma||Dr.some(function(Si){var Wi=Si.ellipsis;return Wi})?"fixed":"auto")},[ts,ia,Dr,we,ma]),Ao,zo={colWidths:_s,columCount:Dr.length,stickyOffsets:ps,onHeaderRow:wr,fixHeader:ts,scroll:It},nl=w.useMemo(function(){return Kn?null:typeof Gn=="function"?Gn():Gn},[Kn,Gn]),rl=w.createElement(B,{data:Jn,measureColumnWidth:ts||Oi||ma}),il=w.createElement(nt,{colWidths:Dr.map(function(Si){var Wi=Si.width;return Wi}),columns:Dr}),sl=Fn!=null?w.createElement("caption",{className:"".concat(We,"-caption")},Fn):void 0,Sl=(0,je.Z)($e,{data:!0}),al=(0,je.Z)($e,{aria:!0});if(ts||ma){var Uo;typeof re=="function"?(Uo=re(Jn,{scrollbarSize:Co,ref:yi,onScroll:ro}),zo.colWidths=Dr.map(function(Si,Wi){var Gs=Si.width,Ra=Wi===Dr.length-1?Gs-Co:Gs;return typeof Ra=="number"&&!Number.isNaN(Ra)?Ra:0})):Uo=w.createElement("div",{style:(0,Se.Z)((0,Se.Z)({},ks),Ms),onScroll:ro,ref:yi,className:W()("".concat(We,"-body"))},w.createElement(tl,(0,k.Z)({style:(0,Se.Z)((0,Se.Z)({},Ia),{},{tableLayout:To})},al),sl,il,rl,!Ps&&Gi&&w.createElement(H,{stickyOffsets:ps,flattenColumns:Dr,columns:Ar},Gi)));var Ko=(0,Se.Z)((0,Se.Z)((0,Se.Z)({noData:!Jn.length,maxContentScroll:Oi&&hi==="max-content"},zo),ki),{},{direction:Ut,stickyClassName:zi,onScroll:ro});Ao=w.createElement(w.Fragment,null,$n!==!1&&w.createElement(tt,(0,k.Z)({},Ko,{stickyTopOffset:So,className:"".concat(We,"-header"),ref:pi}),xl),Uo,Ps&&Ps!=="top"&&w.createElement(tt,(0,k.Z)({},Ko,{stickyBottomOffset:wo,className:"".concat(We,"-summary"),ref:ys}),El),ma&&w.createElement(At,{ref:sa,offsetScroll:mi,scrollBodyRef:yi,onScroll:ro,container:ws}))}else Ao=w.createElement("div",{style:(0,Se.Z)((0,Se.Z)({},ks),Ms),className:W()("".concat(We,"-content")),onScroll:ro,ref:yi},w.createElement(tl,(0,k.Z)({style:(0,Se.Z)((0,Se.Z)({},Ia),{},{tableLayout:To})},al),sl,il,$n!==!1&&w.createElement(Rn,(0,k.Z)({},zo,ki)),rl,Gi&&w.createElement(H,{stickyOffsets:ps,flattenColumns:Dr,columns:Ar},Gi)));var io=w.createElement("div",(0,k.Z)({className:W()(We,st,(ve={},(0,ge.Z)(ve,"".concat(We,"-rtl"),Ut==="rtl"),(0,ge.Z)(ve,"".concat(We,"-ping-left"),Ei),(0,ge.Z)(ve,"".concat(We,"-ping-right"),Qi),(0,ge.Z)(ve,"".concat(We,"-layout-fixed"),we==="fixed"),(0,ge.Z)(ve,"".concat(We,"-fixed-header"),ts),(0,ge.Z)(ve,"".concat(We,"-fixed-column"),ia),(0,ge.Z)(ve,"".concat(We,"-scroll-horizontal"),Oi),(0,ge.Z)(ve,"".concat(We,"-has-fix-left"),Dr[0]&&Dr[0].fixed),(0,ge.Z)(ve,"".concat(We,"-has-fix-right"),Dr[Dr.length-1]&&Dr[Dr.length-1].fixed==="right"),ve)),style:Et,id:kn,ref:ci},Sl),fn&&w.createElement(On,{className:"".concat(We,"-title")},fn(Jn)),w.createElement("div",{ref:Ii,className:"".concat(We,"-container")},Ao),an&&w.createElement(On,{className:"".concat(We,"-footer")},an(Jn)));Oi&&(io=w.createElement(fe.Z,{onResize:yl},io));var ol=nn(Dr,ps,Ut,Ar),Ho=w.useMemo(function(){return{scrollX:hi,prefixCls:We,getComponent:Nr,scrollbarSize:Co,direction:Ut,fixedInfoList:ol,isSticky:ma,supportSticky:el,componentWidth:Tn,fixHeader:ts,fixColumn:ia,horizonScroll:Oi,tableLayout:To,rowClassName:ot,expandedRowClassName:Pe.expandedRowClassName,expandIcon:Tt,expandableType:Je,expandRowByClick:Pe.expandRowByClick,expandedRowRender:Pe.expandedRowRender,onTriggerExpand:_n,expandIconColumnIndex:Pe.expandIconColumnIndex,indentSize:Pe.indentSize,allColumnsFixedLeft:Dr.every(function(Si){return Si.fixed==="left"}),emptyNode:nl,columns:Ar,flattenColumns:Dr,onColumnResize:zs,hoverStartRow:h,hoverEndRow:b,onHover:M,rowExpandable:Pe.rowExpandable,onRow:Sr,getRowKey:Jr,expandedKeys:ft,childrenColumnName:Ht}},[hi,We,Nr,Co,Ut,ol,ma,el,Tn,ts,ia,Oi,To,ot,Pe.expandedRowClassName,Tt,Je,Pe.expandRowByClick,Pe.expandedRowRender,_n,Pe.expandIconColumnIndex,Pe.indentSize,nl,Ar,Dr,zs,h,b,M,Pe.rowExpandable,Sr,Jr,ft,Ht]);return w.createElement(D.Provider,{value:Ho},io)}function dr(ae){return $(nr,ae)}var En=dr();En.EXPAND_COLUMN=O,En.INTERNAL_HOOKS=U,En.Column=Pt,En.ColumnGroup=Mt,En.Summary=R;var Cn=En,pr=p(45680),mr=o(null),Ir=o(null);function rr(ae,ve,$e){var We=ve||1;return $e[ae+We]-($e[ae]||0)}function ir(ae){var ve=ae.rowInfo,$e=ae.column,We=ae.colIndex,st=ae.indent,ot=ae.index,Et=ae.renderIndex,St=ae.record,bt=ae.style,It=ae.className,we=ae.inverse,Ut=ae.getHeight,fn=$e.render,an=$e.dataIndex,dn=$e.className,Fn=$e.width,kn=I(Ir,["columnsOffset"]),$n=kn.columnsOffset,Mn=xt(ve,$e,We,st,ot),Gn=Mn.key,Sr=Mn.fixedInfo,wr=Mn.appendCellNode,br=Mn.additionalCellProps,kr=br.style,jr=br.colSpan,er=jr===void 0?1:jr,_r=br.rowSpan,Jn=_r===void 0?1:_r,Kn=We-1,hr=rr(Kn,er,$n),Nr=er>1?Fn-hr:0,Jr=(0,Se.Z)((0,Se.Z)((0,Se.Z)({},kr),bt),{},{flex:"0 0 ".concat(hr,"px"),width:"".concat(hr,"px"),marginRight:Nr,pointerEvents:"auto"}),re=w.useMemo(function(){return we?Jn<=1:er===0||Jn===0||Jn>1},[Jn,er,we]);re?Jr.visibility="hidden":we&&(Jr.height=Ut==null?void 0:Ut(Jn));var l=re?function(){return null}:fn,d={};return(Jn===0||er===0)&&(d.rowSpan=1,d.colSpan=1),w.createElement(Ot,(0,k.Z)({className:W()(dn,It),ellipsis:$e.ellipsis,align:$e.align,scope:$e.rowScope,component:"div",prefixCls:ve.prefixCls,key:Gn,record:St,index:ot,renderIndex:Et,dataIndex:an,render:l,shouldCellUpdate:$e.shouldCellUpdate},Sr,{appendNode:wr,additionalProps:(0,Se.Z)((0,Se.Z)({},br),{},{style:Jr},d)}))}var Cr=ir,tr=["data","index","className","rowKey","style","extra","getHeight"],Pr=w.forwardRef(function(ae,ve){var $e=ae.data,We=ae.index,st=ae.className,ot=ae.rowKey,Et=ae.style,St=ae.extra,bt=ae.getHeight,It=(0,Ct.Z)(ae,tr),we=$e.record,Ut=$e.indent,fn=$e.index,an=I(D,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),dn=an.scrollX,Fn=an.flattenColumns,kn=an.prefixCls,$n=an.fixColumn,Mn=an.componentWidth,Gn=Ve(we,ot,We,Ut),Sr=Gn.rowSupportExpand,wr=Gn.expanded,br=Gn.rowProps,kr=Gn.expandedRowRender,jr=Gn.expandedRowClassName,er;if(Sr&&wr){var _r=kr(we,We,Ut+1,wr),Jn=jr==null?void 0:jr(we,We,Ut),Kn={};$n&&(Kn={style:(0,ge.Z)({},"--virtual-width","".concat(Mn,"px"))});var hr="".concat(kn,"-expanded-row-cell");er=w.createElement("div",{className:W()("".concat(kn,"-expanded-row"),"".concat(kn,"-expanded-row-level-").concat(Ut+1),Jn)},w.createElement(Ot,{component:"div",prefixCls:kn,className:W()(hr,(0,ge.Z)({},"".concat(hr,"-fixed"),$n)),additionalProps:Kn},_r))}var Nr=(0,Se.Z)((0,Se.Z)({},Et),{},{width:dn});St&&(Nr.position="absolute",Nr.pointerEvents="none");var Jr=w.createElement("div",(0,k.Z)({},br,It,{ref:Sr?null:ve,className:W()(st,"".concat(kn,"-row"),br==null?void 0:br.className,(0,ge.Z)({},"".concat(kn,"-row-extra"),St)),style:(0,Se.Z)((0,Se.Z)({},Nr),br==null?void 0:br.style)}),Fn.map(function(re,l){return w.createElement(Cr,{key:l,rowInfo:Gn,column:re,colIndex:l,indent:Ut,index:We,renderIndex:fn,record:we,inverse:St,getHeight:bt})}));return Sr?w.createElement("div",{ref:ve},Jr,er):Jr}),ei=G(Pr),Qn=ei,zn=w.forwardRef(function(ae,ve){var $e=ae.data,We=ae.onScroll,st=I(D,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),ot=st.flattenColumns,Et=st.onColumnResize,St=st.getRowKey,bt=st.expandedKeys,It=st.prefixCls,we=st.childrenColumnName,Ut=st.emptyNode,fn=st.scrollX,an=I(mr),dn=an.scrollY,Fn=an.listItemHeight,kn=w.useRef(),$n=Be($e,we,bt,St),Mn=w.useMemo(function(){var er=0;return ot.map(function(_r){var Jn=_r.width,Kn=_r.key;return er+=Jn,[Kn,Jn,er]})},[ot]),Gn=w.useMemo(function(){return Mn.map(function(er){return er[2]})},[Mn]);w.useEffect(function(){Mn.forEach(function(er){var _r=(0,ee.Z)(er,2),Jn=_r[0],Kn=_r[1];Et(Jn,Kn)})},[Mn]),w.useImperativeHandle(ve,function(){var er={};return Object.defineProperty(er,"scrollLeft",{get:function(){var Jn;return((Jn=kn.current)===null||Jn===void 0?void 0:Jn.getScrollInfo().x)||0},set:function(Jn){var Kn;(Kn=kn.current)===null||Kn===void 0||Kn.scrollTo({left:Jn})}}),er});var Sr=function(_r,Jn){var Kn,hr=(Kn=$n[Jn])===null||Kn===void 0?void 0:Kn.record,Nr=_r.onCell;if(Nr){var Jr,re=Nr(hr,Jn);return(Jr=re==null?void 0:re.rowSpan)!==null&&Jr!==void 0?Jr:1}return 1},wr=function(_r){var Jn=_r.start,Kn=_r.end,hr=_r.getSize,Nr=_r.offsetY;if(Kn<0)return null;for(var Jr=ot.filter(function(Vt){return Sr(Vt,Jn)===0}),re=Jn,l=function(Ge){if(Jr=Jr.filter(function(hn){return Sr(hn,Ge)===0}),!Jr.length)return re=Ge,"break"},d=Jn;d>=0;d-=1){var h=l(d);if(h==="break")break}for(var b=ot.filter(function(Vt){return Sr(Vt,Kn)!==1}),M=Kn,se=function(Ge){if(b=b.filter(function(hn){return Sr(hn,Ge)!==1}),!b.length)return M=Math.max(Ge-1,Kn),"break"},Re=Kn;Re<$n.length;Re+=1){var Pe=se(Re);if(Pe==="break")break}for(var Je=[],ft=function(Ge){var hn=$n[Ge];if(!hn)return"continue";ot.some(function(Tn){return Sr(Tn,Ge)>1})&&Je.push(Ge)},Tt=re;Tt<=M;Tt+=1)var Ht=ft(Tt);var _n=Je.map(function(Vt){var Ge=$n[Vt],hn=St(Ge.record,Vt),Tn=function(cr){var Ar=Vt+cr-1,Dr=St($n[Ar].record,Ar),fi=hr(hn,Dr);return fi.bottom-fi.top},ur=hr(hn);return w.createElement(Qn,{key:Vt,data:Ge,rowKey:hn,index:Vt,style:{top:-Nr+ur.top},extra:!0,getHeight:Tn})});return _n},br=w.useMemo(function(){return{columnsOffset:Gn}},[Gn]),kr="".concat(It,"-tbody"),jr;return $n.length?jr=w.createElement(pr.Z,{fullHeight:!1,ref:kn,className:W()(kr,"".concat(kr,"-virtual")),height:dn,itemHeight:Fn||24,data:$n,itemKey:function(_r){return St(_r.record)},scrollWidth:fn,onVirtualScroll:function(_r){var Jn=_r.x;We({scrollLeft:Jn})},extraRender:wr},function(er,_r,Jn){var Kn=St(er.record,_r);return w.createElement(Qn,(0,k.Z)({data:er,rowKey:Kn,index:_r},Jn))}):jr=w.createElement("div",{className:W()("".concat(It,"-placeholder"))},w.createElement(Ot,{component:"div",prefixCls:It},Ut)),w.createElement(Ir.Provider,{value:br},jr)}),dt=G(zn),Bn=dt,or=function(ve,$e){var We=$e.ref,st=$e.onScroll;return w.createElement(Bn,{ref:We,data:ve,onScroll:st})},qn=100;function Lr(ae){var ve=ae.columns,$e=ae.scroll,We=ae.prefixCls,st=We===void 0?gn:We,ot=ae.className,Et=ae.listItemHeight,St=$e||{},bt=St.x,It=St.y;typeof bt!="number"&&(bt=((ve||[]).length+1)*qn),typeof It!="number"&&(It=500);var we=w.useMemo(function(){return{scrollY:It,listItemHeight:Et}},[It,Et]);return w.createElement(mr.Provider,{value:we},w.createElement(Cn,(0,k.Z)({},ae,{className:W()(ot,"".concat(st,"-virtual")),scroll:(0,Se.Z)((0,Se.Z)({},$e),{},{x:bt}),components:{body:or},columns:ve,internalHooks:U,tailor:!0})))}function Ur(ae){return $(Lr,ae)}var Vr=Ur(),fr=null;function Yr(ae){return null}var Un=Yr;function Pn(ae){return null}var Er=Pn,Mr=p(2738),ti=p(68031),Ri=p(36355),Hn=p(93891),ri=p(19716),Xr=p(8628),di=p(31724),Mi=p(58421),bi=p(71418),ii=p(88088);function Ti(ae){return function($e){let{prefixCls:We,onExpand:st,record:ot,expanded:Et,expandable:St}=$e;const bt=`${We}-row-expand-icon`;return w.createElement("button",{type:"button",onClick:It=>{st(ot,It),It.stopPropagation()},className:W()(bt,{[`${bt}-spaced`]:!St,[`${bt}-expanded`]:St&&Et,[`${bt}-collapsed`]:St&&!Et}),"aria-label":Et?ae.collapse:ae.expand,"aria-expanded":Et})}}var oi=Ti;function $i(ae,ve){return"key"in ae&&ae.key!==void 0&&ae.key!==null?ae.key:ae.dataIndex?Array.isArray(ae.dataIndex)?ae.dataIndex.join("."):ae.dataIndex:ve}function Tr(ae,ve){return ve?`${ve}-${ae}`:`${ae}`}function Yi(ae,ve){return typeof ae=="function"?ae(ve):ae}function Ki(ae,ve){const $e=Yi(ae,ve);return Object.prototype.toString.call($e)==="[object Object]"?"":$e}var Xi={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"},Gr=Xi,cs=p(7657),ms=function(ve,$e){return w.createElement(cs.Z,(0,k.Z)({},ve,{ref:$e,icon:Gr}))},us=w.forwardRef(ms),Fr=us,ds=p(56762);function Cs(ae){const ve=w.useRef(ae),$e=(0,ds.Z)();return[()=>ve.current,We=>{ve.current=We,$e()}]}var Nn=p(3113),Bi=p(24905),is=p(38854),gr=p(64165),xr=p(20834),lr=p(40875),Vn=p(5112),Kr=p(17574),si=p(47472),Hi=p(92832);function Pi(ae){let{value:ve,onChange:$e,filterSearch:We,tablePrefixCls:st,locale:ot}=ae;return We?w.createElement("div",{className:`${st}-filter-dropdown-search`},w.createElement(Hi.default,{prefix:w.createElement(si.Z,null),placeholder:ot.filterSearchPlaceholder,onChange:$e,value:ve,htmlSize:1,className:`${st}-filter-dropdown-search-input`})):null}var Ai=Pi,$r=p(10228);const Ni=ae=>{const{keyCode:ve}=ae;ve===$r.Z.ENTER&&ae.stopPropagation()};var Ns=w.forwardRef((ae,ve)=>w.createElement("div",{className:ae.className,onClick:$e=>$e.stopPropagation(),onKeyDown:Ni,ref:ve},ae.children));function fs(ae){let ve=[];return(ae||[]).forEach($e=>{let{value:We,children:st}=$e;ve.push(We),st&&(ve=[].concat((0,rt.Z)(ve),(0,rt.Z)(fs(st))))}),ve}function as(ae){return ae.some(ve=>{let{children:$e}=ve;return $e})}function sr(ae,ve){return typeof ve=="string"||typeof ve=="number"?ve==null?void 0:ve.toString().toLowerCase().includes(ae.trim().toLowerCase()):!1}function Or(ae){let{filters:ve,prefixCls:$e,filteredKeys:We,filterMultiple:st,searchValue:ot,filterSearch:Et}=ae;return ve.map((St,bt)=>{const It=String(St.value);if(St.children)return{key:It||bt,label:St.text,popupClassName:`${$e}-dropdown-submenu`,children:Or({filters:St.children,prefixCls:$e,filteredKeys:We,filterMultiple:st,searchValue:ot,filterSearch:Et})};const we=st?Bi.default:Vn.ZP,Ut={key:St.value!==void 0?It:bt,label:w.createElement(w.Fragment,null,w.createElement(we,{checked:We.includes(It)}),w.createElement("span",null,St.text))};return ot.trim()?typeof Et=="function"?Et(ot,St)?Ut:null:sr(ot,St.text)?Ut:null:Ut})}function _i(ae){var ve,$e;const{tablePrefixCls:We,prefixCls:st,column:ot,dropdownPrefixCls:Et,columnKey:St,filterMultiple:bt,filterMode:It="menu",filterSearch:we=!1,filterState:Ut,triggerFilter:fn,locale:an,children:dn,getPopupContainer:Fn}=ae,{filterDropdownOpen:kn,onFilterDropdownOpenChange:$n,filterResetToDefaultFilteredValue:Mn,defaultFilteredValue:Gn,filterDropdownVisible:Sr,onFilterDropdownVisibleChange:wr}=ot,[br,kr]=w.useState(!1),jr=!!(Ut&&(!((ve=Ut.filteredKeys)===null||ve===void 0)&&ve.length||Ut.forceFiltered)),er=In=>{kr(In),$n==null||$n(In),wr==null||wr(In)},_r=($e=kn!=null?kn:Sr)!==null&&$e!==void 0?$e:br,Jn=Ut==null?void 0:Ut.filteredKeys,[Kn,hr]=Cs(Jn||[]),Nr=In=>{let{selectedKeys:cr}=In;hr(cr)},Jr=(In,cr)=>{let{node:Ar,checked:Dr}=cr;Nr(bt?{selectedKeys:In}:{selectedKeys:Dr&&Ar.key?[Ar.key]:[]})};w.useEffect(()=>{br&&Nr({selectedKeys:Jn||[]})},[Jn]);const[re,l]=w.useState([]),d=In=>{l(In)},[h,b]=w.useState(""),M=In=>{const{value:cr}=In.target;b(cr)};w.useEffect(()=>{br||b("")},[br]);const se=In=>{const cr=In&&In.length?In:null;if(cr===null&&(!Ut||!Ut.filteredKeys)||(0,m.Z)(cr,Ut==null?void 0:Ut.filteredKeys,!0))return null;fn({column:ot,key:St,filteredKeys:cr})},Re=()=>{er(!1),se(Kn())},Pe=function(){let{confirm:In,closeDropdown:cr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};In&&se([]),cr&&er(!1),b(""),hr(Mn?(Gn||[]).map(Ar=>String(Ar)):[])},Je=function(){let{closeDropdown:In}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};In&&er(!1),se(Kn())},ft=In=>{In&&Jn!==void 0&&hr(Jn||[]),er(In),!In&&!ot.filterDropdown&&Re()},Tt=W()({[`${Et}-menu-without-submenu`]:!as(ot.filters||[])}),Ht=In=>{if(In.target.checked){const cr=fs(ot==null?void 0:ot.filters).map(Ar=>String(Ar));hr(cr)}else hr([])},_n=In=>{let{filters:cr}=In;return(cr||[]).map((Ar,Dr)=>{const fi=String(Ar.value),hi={title:Ar.text,key:Ar.value!==void 0?fi:Dr};return Ar.children&&(hi.children=_n({filters:Ar.children})),hi})},Vt=In=>{var cr;return Object.assign(Object.assign({},In),{text:In.title,value:In.key,children:((cr=In.children)===null||cr===void 0?void 0:cr.map(Ar=>Vt(Ar)))||[]})};let Ge;if(typeof ot.filterDropdown=="function")Ge=ot.filterDropdown({prefixCls:`${Et}-custom`,setSelectedKeys:In=>Nr({selectedKeys:In}),selectedKeys:Kn(),confirm:Je,clearFilters:Pe,filters:ot.filters,visible:_r,close:()=>{er(!1)}});else if(ot.filterDropdown)Ge=ot.filterDropdown;else{const In=Kn()||[],cr=()=>(ot.filters||[]).length===0?w.createElement(gr.Z,{image:gr.Z.PRESENTED_IMAGE_SIMPLE,description:an.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):It==="tree"?w.createElement(w.Fragment,null,w.createElement(Ai,{filterSearch:we,value:h,onChange:M,tablePrefixCls:We,locale:an}),w.createElement("div",{className:`${We}-filter-dropdown-tree`},bt?w.createElement(Bi.default,{checked:In.length===fs(ot.filters).length,indeterminate:In.length>0&&In.length<fs(ot.filters).length,className:`${We}-filter-dropdown-checkall`,onChange:Ht},an.filterCheckall):null,w.createElement(Kr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:bt,checkStrictly:!bt,className:`${Et}-menu`,onCheck:Jr,checkedKeys:In,selectedKeys:In,showIcon:!1,treeData:_n({filters:ot.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:h.trim()?Dr=>typeof we=="function"?we(h,Vt(Dr)):sr(h,Dr.title):void 0}))):w.createElement(w.Fragment,null,w.createElement(Ai,{filterSearch:we,value:h,onChange:M,tablePrefixCls:We,locale:an}),w.createElement(xr.default,{selectable:!0,multiple:bt,prefixCls:`${Et}-menu`,className:Tt,onSelect:Nr,onDeselect:Nr,selectedKeys:In,getPopupContainer:Fn,openKeys:re,onOpenChange:d,items:Or({filters:ot.filters||[],filterSearch:we,prefixCls:st,filteredKeys:Kn(),filterMultiple:bt,searchValue:h})})),Ar=()=>Mn?(0,m.Z)((Gn||[]).map(Dr=>String(Dr)),In,!0):In.length===0;Ge=w.createElement(w.Fragment,null,cr(),w.createElement("div",{className:`${st}-dropdown-btns`},w.createElement(Nn.ZP,{type:"link",size:"small",disabled:Ar(),onClick:()=>Pe()},an.filterReset),w.createElement(Nn.ZP,{type:"primary",size:"small",onClick:Re},an.filterConfirm)))}ot.filterDropdown&&(Ge=w.createElement(lr.J,{selectable:void 0},Ge));const hn=()=>w.createElement(Ns,{className:`${st}-dropdown`},Ge);let Tn;typeof ot.filterIcon=="function"?Tn=ot.filterIcon(jr):ot.filterIcon?Tn=ot.filterIcon:Tn=w.createElement(Fr,null);const{direction:ur}=w.useContext(Ri.E_);return w.createElement("div",{className:`${st}-column`},w.createElement("span",{className:`${We}-column-title`},dn),w.createElement(is.Z,{dropdownRender:hn,trigger:["click"],open:_r,onOpenChange:ft,getPopupContainer:Fn,placement:ur==="rtl"?"bottomLeft":"bottomRight"},w.createElement("span",{role:"button",tabIndex:-1,className:W()(`${st}-trigger`,{active:jr}),onClick:In=>{In.stopPropagation()}},Tn)))}var Zi=_i;function gi(ae,ve,$e){let We=[];return(ae||[]).forEach((st,ot)=>{var Et;const St=Tr(ot,$e);if(st.filters||"filterDropdown"in st||"onFilter"in st)if("filteredValue"in st){let bt=st.filteredValue;"filterDropdown"in st||(bt=(Et=bt==null?void 0:bt.map(String))!==null&&Et!==void 0?Et:bt),We.push({column:st,key:$i(st,St),filteredKeys:bt,forceFiltered:st.filtered})}else We.push({column:st,key:$i(st,St),filteredKeys:ve&&st.defaultFilteredValue?st.defaultFilteredValue:void 0,forceFiltered:st.filtered});"children"in st&&(We=[].concat((0,rt.Z)(We),(0,rt.Z)(gi(st.children,ve,St))))}),We}function gs(ae,ve,$e,We,st,ot,Et,St){return $e.map((bt,It)=>{const we=Tr(It,St),{filterMultiple:Ut=!0,filterMode:fn,filterSearch:an}=bt;let dn=bt;if(dn.filters||dn.filterDropdown){const Fn=$i(dn,we),kn=We.find($n=>{let{key:Mn}=$n;return Fn===Mn});dn=Object.assign(Object.assign({},dn),{title:$n=>w.createElement(Zi,{tablePrefixCls:ae,prefixCls:`${ae}-filter`,dropdownPrefixCls:ve,column:dn,columnKey:Fn,filterState:kn,filterMultiple:Ut,filterMode:fn,filterSearch:an,triggerFilter:ot,locale:st,getPopupContainer:Et},Yi(bt.title,$n))})}return"children"in dn&&(dn=Object.assign(Object.assign({},dn),{children:gs(ae,ve,dn.children,We,st,ot,Et,we)})),dn})}function As(ae){const ve={};return ae.forEach($e=>{let{key:We,filteredKeys:st,column:ot}=$e;const{filters:Et,filterDropdown:St}=ot;if(St)ve[We]=st||null;else if(Array.isArray(st)){const bt=fs(Et);ve[We]=bt.filter(It=>st.includes(String(It)))}else ve[We]=null}),ve}function Hs(ae,ve){return ve.reduce(($e,We)=>{const{column:{onFilter:st,filters:ot},filteredKeys:Et}=We;return st&&Et&&Et.length?$e.filter(St=>Et.some(bt=>{const It=fs(ot),we=It.findIndex(fn=>String(fn)===String(bt)),Ut=we!==-1?It[we]:bt;return st(Ut,St)})):$e},ae)}const vs=ae=>ae.flatMap(ve=>"children"in ve?[ve].concat((0,rt.Z)(vs(ve.children||[]))):[ve]);function oa(ae){let{prefixCls:ve,dropdownPrefixCls:$e,mergedColumns:We,onFilterChange:st,getPopupContainer:ot,locale:Et}=ae;const St=w.useMemo(()=>vs(We||[]),[We]),[bt,It]=w.useState(()=>gi(St,!0)),we=w.useMemo(()=>{const dn=gi(St,!1);if(dn.length===0)return dn;let Fn=!0,kn=!0;if(dn.forEach($n=>{let{filteredKeys:Mn}=$n;Mn!==void 0?Fn=!1:kn=!1}),Fn){const $n=(St||[]).map((Mn,Gn)=>$i(Mn,Tr(Gn)));return bt.filter(Mn=>{let{key:Gn}=Mn;return $n.includes(Gn)}).map(Mn=>{const Gn=St[$n.findIndex(Sr=>Sr===Mn.key)];return Object.assign(Object.assign({},Mn),{column:Object.assign(Object.assign({},Mn.column),Gn),forceFiltered:Gn.filtered})})}return dn},[St,bt]),Ut=w.useMemo(()=>As(we),[we]),fn=dn=>{const Fn=we.filter(kn=>{let{key:$n}=kn;return $n!==dn.key});Fn.push(dn),It(Fn),st(As(Fn),Fn)};return[dn=>gs(ve,$e,dn,we,Et,fn,ot),we,Ut]}var ya=oa;function Ys(ae,ve,$e){const We=w.useRef({});function st(ot){if(!We.current||We.current.data!==ae||We.current.childrenColumnName!==ve||We.current.getRowKey!==$e){let St=function(bt){bt.forEach((It,we)=>{const Ut=$e(It,we);Et.set(Ut,It),It&&typeof It=="object"&&ve in It&&St(It[ve]||[])})};const Et=new Map;St(ae),We.current={data:ae,childrenColumnName:ve,kvMap:Et,getRowKey:$e}}return We.current.kvMap.get(ot)}return[st]}var la=p(50371),xs=function(ae,ve){var $e={};for(var We in ae)Object.prototype.hasOwnProperty.call(ae,We)&&ve.indexOf(We)<0&&($e[We]=ae[We]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,We=Object.getOwnPropertySymbols(ae);st<We.length;st++)ve.indexOf(We[st])<0&&Object.prototype.propertyIsEnumerable.call(ae,We[st])&&($e[We[st]]=ae[We[st]]);return $e};const Es=10;function Ds(ae,ve){const $e={current:ae.current,pageSize:ae.pageSize};return Object.keys(ve&&typeof ve=="object"?ve:{}).forEach(st=>{const ot=ae[st];typeof ot!="function"&&($e[st]=ot)}),$e}function ua(ae,ve,$e){const We=$e&&typeof $e=="object"?$e:{},{total:st=0}=We,ot=xs(We,["total"]),[Et,St]=(0,w.useState)(()=>({current:"defaultCurrent"in ot?ot.defaultCurrent:1,pageSize:"defaultPageSize"in ot?ot.defaultPageSize:Es})),bt=(0,la.Z)(Et,ot,{total:st>0?st:ae}),It=Math.ceil((st||ae)/bt.pageSize);bt.current>It&&(bt.current=It||1);const we=(fn,an)=>{St({current:fn!=null?fn:1,pageSize:an||bt.pageSize})},Ut=(fn,an)=>{var dn;$e&&((dn=$e.onChange)===null||dn===void 0||dn.call($e,fn,an)),we(fn,an),ve(fn,an||(bt==null?void 0:bt.pageSize))};return $e===!1?[{},()=>{}]:[Object.assign(Object.assign({},bt),{onChange:Ut}),we]}var Xs=ua,Qs=p(84105),Us=p(35654),li=p(90782),Qr=p(71430),ss=p(18929);const ji={},vi="SELECT_ALL",os="SELECT_INVERT",ls="SELECT_NONE",Is=[],Ss=(ae,ve)=>{let $e=[];return(ve||[]).forEach(We=>{$e.push(We),We&&typeof We=="object"&&ae in We&&($e=[].concat((0,rt.Z)($e),(0,rt.Z)(Ss(ae,We[ae]))))}),$e};var Fs=(ae,ve)=>{const{preserveSelectedRowKeys:$e,selectedRowKeys:We,defaultSelectedRowKeys:st,getCheckboxProps:ot,onChange:Et,onSelect:St,onSelectAll:bt,onSelectInvert:It,onSelectNone:we,onSelectMultiple:Ut,columnWidth:fn,type:an,selections:dn,fixed:Fn,renderCell:kn,hideSelectAll:$n,checkStrictly:Mn=!0}=ve||{},{prefixCls:Gn,data:Sr,pageData:wr,getRecordByKey:br,getRowKey:kr,expandType:jr,childrenColumnName:er,locale:_r,getPopupContainer:Jn}=ae,[Kn,hr]=(0,ss.Z)(We||st||Is,{value:We}),Nr=w.useRef(new Map),Jr=(0,w.useCallback)(Vt=>{if($e){const Ge=new Map;Vt.forEach(hn=>{let Tn=br(hn);!Tn&&Nr.current.has(hn)&&(Tn=Nr.current.get(hn)),Ge.set(hn,Tn)}),Nr.current=Ge}},[br,$e]);w.useEffect(()=>{Jr(Kn)},[Kn]);const{keyEntities:re}=(0,w.useMemo)(()=>{if(Mn)return{keyEntities:null};let Vt=Sr;if($e){const Ge=new Set(Sr.map((Tn,ur)=>kr(Tn,ur))),hn=Array.from(Nr.current).reduce((Tn,ur)=>{let[In,cr]=ur;return Ge.has(In)?Tn:Tn.concat(cr)},[]);Vt=[].concat((0,rt.Z)(Vt),(0,rt.Z)(hn))}return(0,Qr.I8)(Vt,{externalGetKey:kr,childrenPropName:er})},[Sr,kr,Mn,er,$e]),l=(0,w.useMemo)(()=>Ss(er,wr),[er,wr]),d=(0,w.useMemo)(()=>{const Vt=new Map;return l.forEach((Ge,hn)=>{const Tn=kr(Ge,hn),ur=(ot?ot(Ge):null)||{};Vt.set(Tn,ur)}),Vt},[l,kr,ot]),h=(0,w.useCallback)(Vt=>{var Ge;return!!(!((Ge=d.get(kr(Vt)))===null||Ge===void 0)&&Ge.disabled)},[d,kr]),[b,M]=(0,w.useMemo)(()=>{if(Mn)return[Kn||[],[]];const{checkedKeys:Vt,halfCheckedKeys:Ge}=(0,li.S)(Kn,!0,re,h);return[Vt||[],Ge]},[Kn,Mn,re,h]),se=(0,w.useMemo)(()=>{const Vt=an==="radio"?b.slice(0,1):b;return new Set(Vt)},[b,an]),Re=(0,w.useMemo)(()=>an==="radio"?new Set:new Set(M),[M,an]),[Pe,Je]=(0,w.useState)(null);w.useEffect(()=>{ve||hr(Is)},[!!ve]);const ft=(0,w.useCallback)((Vt,Ge)=>{let hn,Tn;Jr(Vt),$e?(hn=Vt,Tn=Vt.map(ur=>Nr.current.get(ur))):(hn=[],Tn=[],Vt.forEach(ur=>{const In=br(ur);In!==void 0&&(hn.push(ur),Tn.push(In))})),hr(hn),Et==null||Et(hn,Tn,{type:Ge})},[hr,br,Et,$e]),Tt=(0,w.useCallback)((Vt,Ge,hn,Tn)=>{if(St){const ur=hn.map(In=>br(In));St(br(Vt),Ge,ur,Tn)}ft(hn,"single")},[St,br,ft]),Ht=(0,w.useMemo)(()=>!dn||$n?null:(dn===!0?[vi,os,ls]:dn).map(Ge=>Ge===vi?{key:"all",text:_r.selectionAll,onSelect(){ft(Sr.map((hn,Tn)=>kr(hn,Tn)).filter(hn=>{const Tn=d.get(hn);return!(Tn!=null&&Tn.disabled)||se.has(hn)}),"all")}}:Ge===os?{key:"invert",text:_r.selectInvert,onSelect(){const hn=new Set(se);wr.forEach((ur,In)=>{const cr=kr(ur,In),Ar=d.get(cr);Ar!=null&&Ar.disabled||(hn.has(cr)?hn.delete(cr):hn.add(cr))});const Tn=Array.from(hn);It&&It(Tn),ft(Tn,"invert")}}:Ge===ls?{key:"none",text:_r.selectNone,onSelect(){we==null||we(),ft(Array.from(se).filter(hn=>{const Tn=d.get(hn);return Tn==null?void 0:Tn.disabled}),"none")}}:Ge).map(Ge=>Object.assign(Object.assign({},Ge),{onSelect:function(){for(var hn,Tn,ur=arguments.length,In=new Array(ur),cr=0;cr<ur;cr++)In[cr]=arguments[cr];(Tn=Ge.onSelect)===null||Tn===void 0||(hn=Tn).call.apply(hn,[Ge].concat(In)),Je(null)}})),[dn,se,wr,kr,It,ft]);return[(0,w.useCallback)(Vt=>{var Ge;if(!ve)return Vt.filter(Wr=>Wr!==ji);let hn=(0,rt.Z)(Vt);const Tn=new Set(se),ur=l.map(kr).filter(Wr=>!d.get(Wr).disabled),In=ur.every(Wr=>Tn.has(Wr)),cr=ur.some(Wr=>Tn.has(Wr)),Ar=()=>{const Wr=[];In?ur.forEach(Ei=>{Tn.delete(Ei),Wr.push(Ei)}):ur.forEach(Ei=>{Tn.has(Ei)||(Tn.add(Ei),Wr.push(Ei))});const ai=Array.from(Tn);bt==null||bt(!In,ai.map(Ei=>br(Ei)),Wr.map(Ei=>br(Ei))),ft(ai,"all"),Je(null)};let Dr;if(an!=="radio"){let Wr;if(Ht){const Br={getPopupContainer:Jn,items:Ht.map((Qi,es)=>{const{key:bs,text:Rs,onSelect:Ls}=Qi;return{key:bs!=null?bs:es,onClick:()=>{Ls==null||Ls(ur)},label:Rs}})};Wr=w.createElement("div",{className:`${Gn}-selection-extra`},w.createElement(is.Z,{menu:Br,getPopupContainer:Jn},w.createElement("span",null,w.createElement(Qs.Z,null))))}const ai=l.map((Br,Qi)=>{const es=kr(Br,Qi),bs=d.get(es)||{};return Object.assign({checked:Tn.has(es)},bs)}).filter(Br=>{let{disabled:Qi}=Br;return Qi}),Ei=!!ai.length&&ai.length===l.length,Ji=Ei&&ai.every(Br=>{let{checked:Qi}=Br;return Qi}),qi=Ei&&ai.some(Br=>{let{checked:Qi}=Br;return Qi});Dr=!$n&&w.createElement("div",{className:`${Gn}-selection`},w.createElement(Bi.default,{checked:Ei?Ji:!!l.length&&In,indeterminate:Ei?!Ji&&qi:!In&&cr,onChange:Ar,disabled:l.length===0||Ei,"aria-label":Wr?"Custom selection":"Select all",skipGroup:!0}),Wr)}let fi;an==="radio"?fi=(Wr,ai,Ei)=>{const Ji=kr(ai,Ei),qi=Tn.has(Ji);return{node:w.createElement(Vn.ZP,Object.assign({},d.get(Ji),{checked:qi,onClick:Br=>Br.stopPropagation(),onChange:Br=>{Tn.has(Ji)||Tt(Ji,!0,[Ji],Br.nativeEvent)}})),checked:qi}}:fi=(Wr,ai,Ei)=>{var Ji;const qi=kr(ai,Ei),Br=Tn.has(qi),Qi=Re.has(qi),es=d.get(qi);let bs;return jr==="nest"?bs=Qi:bs=(Ji=es==null?void 0:es.indeterminate)!==null&&Ji!==void 0?Ji:Qi,{node:w.createElement(Bi.default,Object.assign({},es,{indeterminate:bs,checked:Br,skipGroup:!0,onClick:Rs=>Rs.stopPropagation(),onChange:Rs=>{let{nativeEvent:Ls}=Rs;const{shiftKey:$a}=Ls;let ra=-1,Os=-1;if($a&&Mn){const _s=new Set([Pe,qi]);ur.some((ps,ts)=>{if(_s.has(ps))if(ra===-1)ra=ts;else return Os=ts,!0;return!1})}if(Os!==-1&&ra!==Os&&Mn){const _s=ur.slice(ra,Os+1),ps=[];Br?_s.forEach(Oi=>{Tn.has(Oi)&&(ps.push(Oi),Tn.delete(Oi))}):_s.forEach(Oi=>{Tn.has(Oi)||(ps.push(Oi),Tn.add(Oi))});const ts=Array.from(Tn);Ut==null||Ut(!Br,ts.map(Oi=>br(Oi)),ps.map(Oi=>br(Oi))),ft(ts,"multiple")}else{const _s=b;if(Mn){const ps=Br?(0,Us._5)(_s,qi):(0,Us.L0)(_s,qi);Tt(qi,!Br,ps,Ls)}else{const ps=(0,li.S)([].concat((0,rt.Z)(_s),[qi]),!0,re,h),{checkedKeys:ts,halfCheckedKeys:Oi}=ps;let ia=ts;if(Br){const sa=new Set(ts);sa.delete(qi),ia=(0,li.S)(Array.from(sa),{checked:!1,halfCheckedKeys:Oi},re,h).checkedKeys}Tt(qi,!Br,ia,Ls)}}Je(Br?null:qi)}})),checked:Br}};const hi=(Wr,ai,Ei)=>{const{node:Ji,checked:qi}=fi(Wr,ai,Ei);return kn?kn(qi,ai,Ei,Ji):Ji};if(!hn.includes(ji))if(hn.findIndex(Wr=>{var ai;return((ai=Wr[ye])===null||ai===void 0?void 0:ai.columnType)==="EXPAND_COLUMN"})===0){const[Wr,...ai]=hn;hn=[Wr,ji].concat((0,rt.Z)(ai))}else hn=[ji].concat((0,rt.Z)(hn));const ki=hn.indexOf(ji);hn=hn.filter((Wr,ai)=>Wr!==ji||ai===ki);const ci=hn[ki-1],pi=hn[ki+1];let yi=Fn;yi===void 0&&((pi==null?void 0:pi.fixed)!==void 0?yi=pi.fixed:(ci==null?void 0:ci.fixed)!==void 0&&(yi=ci.fixed)),yi&&ci&&((Ge=ci[ye])===null||Ge===void 0?void 0:Ge.columnType)==="EXPAND_COLUMN"&&ci.fixed===void 0&&(ci.fixed=yi);const Ii=W()(`${Gn}-selection-col`,{[`${Gn}-selection-col-with-dropdown`]:dn&&an==="checkbox"}),ys={fixed:yi,width:fn,className:`${Gn}-selection-column`,title:ve.columnTitle||Dr,render:hi,onCell:ve.onCell,[ye]:{className:Ii}};return hn.map(Wr=>Wr===ji?ys:Wr)},[kr,l,ve,b,se,Re,fn,Ht,jr,Pe,d,Ut,Tt,h]),se]},ba=p(89489),Pa=p(59477),Bs=p(6848);const qs="ascend",wa="descend";function ea(ae){return typeof ae.sorter=="object"&&typeof ae.sorter.multiple=="number"?ae.sorter.multiple:!1}function _a(ae){return typeof ae=="function"?ae:ae&&typeof ae=="object"&&ae.compare?ae.compare:!1}function Ca(ae,ve){return ve?ae[ae.indexOf(ve)+1]:ae[0]}function ca(ae,ve,$e){let We=[];function st(ot,Et){We.push({column:ot,key:$i(ot,Et),multiplePriority:ea(ot),sortOrder:ot.sortOrder})}return(ae||[]).forEach((ot,Et)=>{const St=Tr(Et,$e);ot.children?("sortOrder"in ot&&st(ot,St),We=[].concat((0,rt.Z)(We),(0,rt.Z)(ca(ot.children,ve,St)))):ot.sorter&&("sortOrder"in ot?st(ot,St):ve&&ot.defaultSortOrder&&We.push({column:ot,key:$i(ot,St),multiplePriority:ea(ot),sortOrder:ot.defaultSortOrder}))}),We}function ta(ae,ve,$e,We,st,ot,Et,St){return(ve||[]).map((bt,It)=>{const we=Tr(It,St);let Ut=bt;if(Ut.sorter){const fn=Ut.sortDirections||st,an=Ut.showSorterTooltip===void 0?Et:Ut.showSorterTooltip,dn=$i(Ut,we),Fn=$e.find(jr=>{let{key:er}=jr;return er===dn}),kn=Fn?Fn.sortOrder:null,$n=Ca(fn,kn);let Mn;if(bt.sortIcon)Mn=bt.sortIcon({sortOrder:kn});else{const jr=fn.includes(qs)&&w.createElement(Pa.Z,{className:W()(`${ae}-column-sorter-up`,{active:kn===qs})}),er=fn.includes(wa)&&w.createElement(ba.Z,{className:W()(`${ae}-column-sorter-down`,{active:kn===wa})});Mn=w.createElement("span",{className:W()(`${ae}-column-sorter`,{[`${ae}-column-sorter-full`]:!!(jr&&er)})},w.createElement("span",{className:`${ae}-column-sorter-inner`,"aria-hidden":"true"},jr,er))}const{cancelSort:Gn,triggerAsc:Sr,triggerDesc:wr}=ot||{};let br=Gn;$n===wa?br=wr:$n===qs&&(br=Sr);const kr=typeof an=="object"?an:{title:br};Ut=Object.assign(Object.assign({},Ut),{className:W()(Ut.className,{[`${ae}-column-sort`]:kn}),title:jr=>{const er=w.createElement("div",{className:`${ae}-column-sorters`},w.createElement("span",{className:`${ae}-column-title`},Yi(bt.title,jr)),Mn);return an?w.createElement(Bs.Z,Object.assign({},kr),er):er},onHeaderCell:jr=>{const er=bt.onHeaderCell&&bt.onHeaderCell(jr)||{},_r=er.onClick,Jn=er.onKeyDown;er.onClick=Nr=>{We({column:bt,key:dn,sortOrder:$n,multiplePriority:ea(bt)}),_r==null||_r(Nr)},er.onKeyDown=Nr=>{Nr.keyCode===$r.Z.ENTER&&(We({column:bt,key:dn,sortOrder:$n,multiplePriority:ea(bt)}),Jn==null||Jn(Nr))};const Kn=Ki(bt.title,{}),hr=Kn==null?void 0:Kn.toString();return kn?er["aria-sort"]=kn==="ascend"?"ascending":"descending":er["aria-label"]=hr||"",er.className=W()(er.className,`${ae}-column-has-sorters`),er.tabIndex=0,bt.ellipsis&&(er.title=(Kn!=null?Kn:"").toString()),er}})}return"children"in Ut&&(Ut=Object.assign(Object.assign({},Ut),{children:ta(ae,Ut.children,$e,We,st,ot,Et,we)})),Ut})}function Zs(ae){const{column:ve,sortOrder:$e}=ae;return{column:ve,order:$e,field:ve.dataIndex,columnKey:ve.key}}function Ta(ae){const ve=ae.filter($e=>{let{sortOrder:We}=$e;return We}).map(Zs);return ve.length===0&&ae.length?Object.assign(Object.assign({},Zs(ae[ae.length-1])),{column:void 0}):ve.length<=1?ve[0]||{}:ve}function Di(ae,ve,$e){const We=ve.slice().sort((Et,St)=>St.multiplePriority-Et.multiplePriority),st=ae.slice(),ot=We.filter(Et=>{let{column:{sorter:St},sortOrder:bt}=Et;return _a(St)&&bt});return ot.length?st.sort((Et,St)=>{for(let bt=0;bt<ot.length;bt+=1){const It=ot[bt],{column:{sorter:we},sortOrder:Ut}=It,fn=_a(we);if(fn&&Ut){const an=fn(Et,St,Ut);if(an!==0)return Ut===qs?an:-an}}return 0}).map(Et=>{const St=Et[$e];return St?Object.assign(Object.assign({},Et),{[$e]:Di(St,ve,$e)}):Et}):st}function Li(ae){let{prefixCls:ve,mergedColumns:$e,onSorterChange:We,sortDirections:st,tableLocale:ot,showSorterTooltip:Et}=ae;const[St,bt]=w.useState(ca($e,!0)),It=w.useMemo(()=>{let dn=!0;const Fn=ca($e,!1);if(!Fn.length)return St;const kn=[];function $n(Gn){dn?kn.push(Gn):kn.push(Object.assign(Object.assign({},Gn),{sortOrder:null}))}let Mn=null;return Fn.forEach(Gn=>{Mn===null?($n(Gn),Gn.sortOrder&&(Gn.multiplePriority===!1?dn=!1:Mn=!0)):(Mn&&Gn.multiplePriority!==!1||(dn=!1),$n(Gn))}),kn},[$e,St]),we=w.useMemo(()=>{const dn=It.map(Fn=>{let{column:kn,sortOrder:$n}=Fn;return{column:kn,order:$n}});return{sortColumns:dn,sortColumn:dn[0]&&dn[0].column,sortOrder:dn[0]&&dn[0].order}},[It]);function Ut(dn){let Fn;dn.multiplePriority===!1||!It.length||It[0].multiplePriority===!1?Fn=[dn]:Fn=[].concat((0,rt.Z)(It.filter(kn=>{let{key:$n}=kn;return $n!==dn.key})),[dn]),bt(Fn),We(Ta(Fn),Fn)}return[dn=>ta(ve,dn,It,Ut,st,ot,Et),It,we,()=>Ta(It)]}function xi(ae,ve){return ae.map($e=>{const We=Object.assign({},$e);return We.title=Yi($e.title,ve),"children"in We&&(We.children=xi(We.children,ve)),We})}function hs(ae){return[w.useCallback($e=>xi($e,ae),[ae])]}var rs=dr((ae,ve)=>{const{_renderTimes:$e}=ae,{_renderTimes:We}=ve;return $e!==We}),yn=Ur((ae,ve)=>{const{_renderTimes:$e}=ae,{_renderTimes:We}=ve;return $e!==We}),js=p(64993),da=p(17313),ka=p(83116),Ma=p(37613),fa=ae=>{const{componentCls:ve}=ae,$e=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`,We=(st,ot,Et)=>({[`&${ve}-${st}`]:{[`> ${ve}-container`]:{[`> ${ve}-content, > ${ve}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ve}-expanded-row-fixed`]:{margin:`-${ot}px -${Et+ae.lineWidth}px`}}}}}});return{[`${ve}-wrapper`]:{[`${ve}${ve}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ve}-title`]:{border:$e,borderBottom:0},[`> ${ve}-container`]:{borderInlineStart:$e,borderTop:$e,[`
|
|
|
> ${ve}-content,
|
|
|
> ${ve}-header,
|
|
|
> ${ve}-body,
|
|
|
> ${ve}-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:$e},"> thead":{"> tr:not(:last-child) > th":{borderBottom:$e},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ve}-cell-fix-right-first::after`]:{borderInlineEnd:$e}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ve}-expanded-row-fixed`]:{margin:`-${ae.tablePaddingVertical}px -${ae.tablePaddingHorizontal+ae.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ae.lineWidth,bottom:0,borderInlineEnd:$e,content:'""'}}}}}},[`&${ve}-scroll-horizontal`]:{[`> ${ve}-container > ${ve}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ve}-expanded-row,
|
|
|
> tr${ve}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},We("middle",ae.tablePaddingVerticalMiddle,ae.tablePaddingHorizontalMiddle)),We("small",ae.tablePaddingVerticalSmall,ae.tablePaddingHorizontalSmall)),{[`> ${ve}-footer`]:{border:$e,borderTop:0}}),[`${ve}-cell`]:{[`${ve}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ae.lineWidth}px 0 ${ae.lineWidth}px ${ae.tableHeaderBg}`}},[`${ve}-bordered ${ve}-cell-scrollbar`]:{borderInlineEnd:$e}}}},lo=ae=>{const{componentCls:ve}=ae;return{[`${ve}-wrapper`]:{[`${ve}-cell-ellipsis`]:Object.assign(Object.assign({},da.vS),{wordBreak:"keep-all",[`
|
|
|
&${ve}-cell-fix-left-last,
|
|
|
&${ve}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ve}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ve}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Aa=ae=>{const{componentCls:ve}=ae;return{[`${ve}-wrapper`]:{[`${ve}-tbody > tr${ve}-placeholder`]:{textAlign:"center",color:ae.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ae.colorBgContainer}}}}},ha=p(15969),co=ae=>{const{componentCls:ve,antCls:$e,controlInteractiveSize:We,motionDurationSlow:st,lineWidth:ot,paddingXS:Et,lineType:St,tableBorderColor:bt,tableExpandIconBg:It,tableExpandColumnWidth:we,borderRadius:Ut,fontSize:fn,fontSizeSM:an,lineHeight:dn,tablePaddingVertical:Fn,tablePaddingHorizontal:kn,tableExpandedRowBg:$n,paddingXXS:Mn}=ae,Gn=We/2-ot,Sr=Gn*2+ot*3,wr=`${ot}px ${St} ${bt}`,br=Mn-ot;return{[`${ve}-wrapper`]:{[`${ve}-expand-icon-col`]:{width:we},[`${ve}-row-expand-icon-cell`]:{textAlign:"center",[`${ve}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ve}-row-indent`]:{height:1,float:"left"},[`${ve}-row-expand-icon`]:Object.assign(Object.assign({},(0,ha.N)(ae)),{position:"relative",float:"left",boxSizing:"border-box",width:Sr,height:Sr,padding:0,color:"inherit",lineHeight:`${Sr}px`,background:It,border:wr,borderRadius:Ut,transform:`scale(${We/Sr})`,transition:`all ${st}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${st} ease-out`,content:'""'},"&::before":{top:Gn,insetInlineEnd:br,insetInlineStart:br,height:ot},"&::after":{top:br,bottom:br,insetInlineStart:Gn,width:ot,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"}}),[`${ve}-row-indent + ${ve}-row-expand-icon`]:{marginTop:(fn*dn-ot*3)/2-Math.ceil((an*1.4-ot*3)/2),marginInlineEnd:Et},[`tr${ve}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:$n}},[`${$e}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ve}-expanded-row-fixed`]:{position:"relative",margin:`-${Fn}px -${kn}px`,padding:`${Fn}px ${kn}px`}}}},fo=ae=>{const{componentCls:ve,antCls:$e,iconCls:We,tableFilterDropdownWidth:st,tableFilterDropdownSearchWidth:ot,paddingXXS:Et,paddingXS:St,colorText:bt,lineWidth:It,lineType:we,tableBorderColor:Ut,tableHeaderIconColor:fn,fontSizeSM:an,tablePaddingHorizontal:dn,borderRadius:Fn,motionDurationSlow:kn,colorTextDescription:$n,colorPrimary:Mn,tableHeaderFilterActiveBg:Gn,colorTextDisabled:Sr,tableFilterDropdownBg:wr,tableFilterDropdownHeight:br,controlItemBgHover:kr,controlItemBgActive:jr,boxShadowSecondary:er,filterDropdownMenuBg:_r}=ae,Jn=`${$e}-dropdown`,Kn=`${ve}-filter-dropdown`,hr=`${$e}-tree`,Nr=`${It}px ${we} ${Ut}`;return[{[`${ve}-wrapper`]:{[`${ve}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ve}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Et,marginInline:`${Et}px ${-dn/2}px`,padding:`0 ${Et}px`,color:fn,fontSize:an,borderRadius:Fn,cursor:"pointer",transition:`all ${kn}`,"&:hover":{color:$n,background:Gn},"&.active":{color:Mn}}}},{[`${$e}-dropdown`]:{[Kn]:Object.assign(Object.assign({},(0,da.Wf)(ae)),{minWidth:st,backgroundColor:wr,borderRadius:Fn,boxShadow:er,overflow:"hidden",[`${Jn}-menu`]:{maxHeight:br,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_r,"&:empty::after":{display:"block",padding:`${St}px 0`,color:Sr,fontSize:an,textAlign:"center",content:'"Not Found"'}},[`${Kn}-tree`]:{paddingBlock:`${St}px 0`,paddingInline:St,[hr]:{padding:0},[`${hr}-treenode ${hr}-node-content-wrapper:hover`]:{backgroundColor:kr},[`${hr}-treenode-checkbox-checked ${hr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:jr}}},[`${Kn}-search`]:{padding:St,borderBottom:Nr,"&-input":{input:{minWidth:ot},[We]:{color:Sr}}},[`${Kn}-checkall`]:{width:"100%",marginBottom:Et,marginInlineStart:Et},[`${Kn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${St-It}px ${St}px`,overflow:"hidden",borderTop:Nr}})}},{[`${$e}-dropdown ${Kn}, ${Kn}-submenu`]:{[`${$e}-checkbox-wrapper + span`]:{paddingInlineStart:St,color:bt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Na=ae=>{const{componentCls:ve,lineWidth:$e,colorSplit:We,motionDurationSlow:st,zIndexTableFixed:ot,tableBg:Et,zIndexTableSticky:St}=ae,bt=We;return{[`${ve}-wrapper`]:{[`
|
|
|
${ve}-cell-fix-left,
|
|
|
${ve}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:ot,background:Et},[`
|
|
|
${ve}-cell-fix-left-first::after,
|
|
|
${ve}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-$e,width:30,transform:"translateX(100%)",transition:`box-shadow ${st}`,content:'""',pointerEvents:"none"},[`${ve}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ve}-cell-fix-right-first::after,
|
|
|
${ve}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-$e,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${st}`,content:'""',pointerEvents:"none"},[`${ve}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:St+1,width:30,transition:`box-shadow ${st}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ve}-ping-left`]:{[`&:not(${ve}-has-fix-left) ${ve}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${bt}`}},[`
|
|
|
${ve}-cell-fix-left-first::after,
|
|
|
${ve}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${bt}`},[`${ve}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ve}-ping-right`]:{[`&:not(${ve}-has-fix-right) ${ve}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${bt}`}},[`
|
|
|
${ve}-cell-fix-right-first::after,
|
|
|
${ve}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${bt}`}}}}},Da=ae=>{const{componentCls:ve,antCls:$e}=ae;return{[`${ve}-wrapper`]:{[`${ve}-pagination${$e}-pagination`]:{margin:`${ae.margin}px 0`},[`${ve}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ae.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},xa=ae=>{const{componentCls:ve,tableRadius:$e}=ae;return{[`${ve}-wrapper`]:{[ve]:{[`${ve}-title, ${ve}-header`]:{borderRadius:`${$e}px ${$e}px 0 0`},[`${ve}-title + ${ve}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ve}-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:$e,borderStartEndRadius:$e,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:$e},"> *:last-child":{borderStartEndRadius:$e}}},"&-footer":{borderRadius:`0 0 ${$e}px ${$e}px`}}}}},qa=ae=>{const{componentCls:ve}=ae;return{[`${ve}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ve}-pagination-left`]:{justifyContent:"flex-end"},[`${ve}-pagination-right`]:{justifyContent:"flex-start"},[`${ve}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ve}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ve}-row-indent`]:{float:"right"}}}}},Fa=ae=>{const{componentCls:ve,antCls:$e,iconCls:We,fontSizeIcon:st,padding:ot,paddingXS:Et,tableHeaderIconColor:St,tableHeaderIconColorHover:bt,tableSelectionColumnWidth:It}=ae;return{[`${ve}-wrapper`]:{[`${ve}-selection-col`]:{width:It,[`&${ve}-selection-col-with-dropdown`]:{width:It+st+ot/4}},[`${ve}-bordered ${ve}-selection-col`]:{width:It+Et*2,[`&${ve}-selection-col-with-dropdown`]:{width:It+st+ot/4+Et*2}},[`
|
|
|
table tr th${ve}-selection-column,
|
|
|
table tr td${ve}-selection-column
|
|
|
`]:{paddingInlineEnd:ae.paddingXS,paddingInlineStart:ae.paddingXS,textAlign:"center",[`${$e}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ve}-selection-column${ve}-cell-fix-left`]:{zIndex:ae.zIndexTableFixed+1},[`table tr th${ve}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ve}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ve}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ae.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ae.tablePaddingHorizontal/4}px`,[We]:{color:St,fontSize:st,verticalAlign:"baseline","&:hover":{color:bt}}}}}},ho=ae=>{const{componentCls:ve}=ae,$e=(We,st,ot,Et)=>({[`${ve}${ve}-${We}`]:{fontSize:Et,[`
|
|
|
${ve}-title,
|
|
|
${ve}-footer,
|
|
|
${ve}-cell,
|
|
|
${ve}-thead > tr > th,
|
|
|
${ve}-tbody > tr > th,
|
|
|
${ve}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${st}px ${ot}px`},[`${ve}-filter-trigger`]:{marginInlineEnd:`-${ot/2}px`},[`${ve}-expanded-row-fixed`]:{margin:`-${st}px -${ot}px`},[`${ve}-tbody`]:{[`${ve}-wrapper:only-child ${ve}`]:{marginBlock:`-${st}px`,marginInline:`${ae.tableExpandColumnWidth-ot}px -${ot}px`}},[`${ve}-selection-column`]:{paddingInlineStart:`${ot/4}px`}}});return{[`${ve}-wrapper`]:Object.assign(Object.assign({},$e("middle",ae.tablePaddingVerticalMiddle,ae.tablePaddingHorizontalMiddle,ae.tableFontSizeMiddle)),$e("small",ae.tablePaddingVerticalSmall,ae.tablePaddingHorizontalSmall,ae.tableFontSizeSmall))}},mo=ae=>{const{componentCls:ve,marginXXS:$e,fontSizeIcon:We,tableHeaderIconColor:st,tableHeaderIconColorHover:ot}=ae;return{[`${ve}-wrapper`]:{[`${ve}-thead th${ve}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ae.motionDurationSlow}`,"&:hover":{background:ae.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ae.colorPrimary},[`
|
|
|
&${ve}-cell-fix-left:hover,
|
|
|
&${ve}-cell-fix-right:hover
|
|
|
`]:{background:ae.tableFixedHeaderSortActiveBg}},[`${ve}-thead th${ve}-column-sort`]:{background:ae.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ve}-column-sort`]:{background:ae.tableBodySortBg},[`${ve}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ve}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ve}-column-sorter`]:{marginInlineStart:$e,color:st,fontSize:0,transition:`color ${ae.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:We,"&.active":{color:ae.colorPrimary}},[`${ve}-column-sorter-up + ${ve}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ve}-column-sorters:hover ${ve}-column-sorter`]:{color:ot}}}},go=ae=>{const{componentCls:ve,opacityLoading:$e,tableScrollThumbBg:We,tableScrollThumbBgHover:st,tableScrollThumbSize:ot,tableScrollBg:Et,zIndexTableSticky:St,stickyScrollBarBorderRadius:bt}=ae,It=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`;return{[`${ve}-wrapper`]:{[`${ve}-sticky`]:{"&-holder":{position:"sticky",zIndex:St,background:ae.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ot}px !important`,zIndex:St,display:"flex",alignItems:"center",background:Et,borderTop:It,opacity:$e,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ot,backgroundColor:We,borderRadius:bt,transition:`all ${ae.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:st}}}}}}},Za=ae=>{const{componentCls:ve,lineWidth:$e,tableBorderColor:We}=ae,st=`${$e}px ${ae.lineType} ${We}`;return{[`${ve}-wrapper`]:{[`${ve}-summary`]:{position:"relative",zIndex:ae.zIndexTableFixed,background:ae.tableBg,"> tr":{"> th, > td":{borderBottom:st}}},[`div${ve}-summary`]:{boxShadow:`0 -${$e}px 0 ${We}`}}}},yo=ae=>{const{componentCls:ve}=ae,$e=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`,We=`${ve}-expanded-row-cell`;return{[`${ve}-wrapper`]:{[`${ve}-tbody-virtual`]:{[`${ve}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ve}-cell`]:{borderBottom:$e},[`${ve}-expanded-row`]:{[`${We}${We}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ae.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ve}-bordered`]:{[`${ve}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:$e,position:"absolute"},[`${ve}-cell`]:{borderInlineEnd:$e,[`&${ve}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ae.lineWidth,borderInlineStart:$e}}}}}}};const bo=ae=>{const{componentCls:ve,fontWeightStrong:$e,tablePaddingVertical:We,tablePaddingHorizontal:st,lineWidth:ot,lineType:Et,tableBorderColor:St,tableFontSize:bt,tableBg:It,tableRadius:we,tableHeaderTextColor:Ut,motionDurationMid:fn,tableHeaderBg:an,tableHeaderCellSplitColor:dn,tableRowHoverBg:Fn,tableSelectedRowBg:kn,tableSelectedRowHoverBg:$n,tableFooterTextColor:Mn,tableFooterBg:Gn,paddingContentVerticalLG:Sr}=ae,wr=`${ot}px ${Et} ${St}`;return{[`${ve}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,da.dF)()),{[ve]:Object.assign(Object.assign({},(0,da.Wf)(ae)),{fontSize:bt,background:It,borderRadius:`${we}px ${we}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${we}px ${we}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ve}-cell,
|
|
|
${ve}-thead > tr > th,
|
|
|
${ve}-tbody > tr > th,
|
|
|
${ve}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Sr}px ${st}px`,overflowWrap:"break-word"},[`${ve}-title`]:{padding:`${We}px ${st}px`},[`${ve}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Ut,fontWeight:$e,textAlign:"start",background:an,borderBottom:wr,transition:`background ${fn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ve}-selection-column):not(${ve}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:dn,transform:"translateY(-50%)",transition:`background-color ${fn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ve}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${fn}, border-color ${fn}`,borderBottom:wr,[`
|
|
|
> ${ve}-wrapper:only-child,
|
|
|
> ${ve}-expanded-row-fixed > ${ve}-wrapper:only-child
|
|
|
`]:{[ve]:{marginBlock:`-${We}px`,marginInline:`${ae.tableExpandColumnWidth-st}px -${st}px`,[`${ve}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ut,fontWeight:$e,textAlign:"start",background:an,borderBottom:wr,transition:`background ${fn} ease`},[`
|
|
|
&${ve}-row:hover > th,
|
|
|
&${ve}-row:hover > td,
|
|
|
> th${ve}-cell-row-hover,
|
|
|
> td${ve}-cell-row-hover
|
|
|
`]:{background:Fn},[`&${ve}-row-selected`]:{"> th, > td":{background:kn},"&:hover > th, &:hover > td":{background:$n}}}},[`${ve}-footer`]:{padding:`${We}px ${st}px`,color:Mn,background:Gn}})}};var eo=(0,ka.Z)("Table",ae=>{const{colorTextHeading:ve,colorSplit:$e,colorIcon:We,colorIconHover:st,opacityLoading:ot,colorBgContainer:Et,controlInteractiveSize:St,headerBg:bt,headerColor:It,headerSortActiveBg:we,headerSortHoverBg:Ut,bodySortBg:fn,rowHoverBg:an,rowSelectedBg:dn,rowSelectedHoverBg:Fn,rowExpandedBg:kn,cellPaddingBlock:$n,cellPaddingInline:Mn,cellPaddingBlockMD:Gn,cellPaddingInlineMD:Sr,cellPaddingBlockSM:wr,cellPaddingInlineSM:br,borderColor:kr,footerBg:jr,footerColor:er,headerBorderRadius:_r,cellFontSize:Jn,cellFontSizeMD:Kn,cellFontSizeSM:hr,headerSplitColor:Nr,fixedHeaderSortActiveBg:Jr,headerFilterHoverBg:re,filterDropdownBg:l,expandIconBg:d,selectionColumnWidth:h,stickyScrollBarBg:b}=ae,M=new js.C(We),se=new js.C(st),Re=2,Pe=(0,Ma.TS)(ae,{tableFontSize:Jn,tableBg:Et,tableRadius:_r,tablePaddingVertical:$n,tablePaddingHorizontal:Mn,tablePaddingVerticalMiddle:Gn,tablePaddingHorizontalMiddle:Sr,tablePaddingVerticalSmall:wr,tablePaddingHorizontalSmall:br,tableBorderColor:kr,tableHeaderTextColor:It,tableHeaderBg:bt,tableFooterTextColor:er,tableFooterBg:jr,tableHeaderCellSplitColor:Nr,tableHeaderSortBg:we,tableHeaderSortHoverBg:Ut,tableHeaderIconColor:M.clone().setAlpha(M.getAlpha()*ot).toRgbString(),tableHeaderIconColorHover:se.clone().setAlpha(se.getAlpha()*ot).toRgbString(),tableBodySortBg:fn,tableFixedHeaderSortActiveBg:Jr,tableHeaderFilterActiveBg:re,tableFilterDropdownBg:l,tableRowHoverBg:an,tableSelectedRowBg:dn,tableSelectedRowHoverBg:Fn,zIndexTableFixed:Re,zIndexTableSticky:Re+1,tableFontSizeMiddle:Kn,tableFontSizeSmall:hr,tableSelectionColumnWidth:h,tableExpandIconBg:d,tableExpandColumnWidth:St+2*ae.padding,tableExpandedRowBg:kn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:b,tableScrollThumbBgHover:ve,tableScrollBg:$e});return[bo(Pe),Da(Pe),Za(Pe),mo(Pe),fo(Pe),fa(Pe),xa(Pe),co(Pe),Za(Pe),Aa(Pe),Fa(Pe),Na(Pe),go(Pe),lo(Pe),ho(Pe),qa(Pe),yo(Pe)]},ae=>{const{colorFillAlter:ve,colorBgContainer:$e,colorTextHeading:We,colorFillSecondary:st,colorFillContent:ot,controlItemBgActive:Et,controlItemBgActiveHover:St,padding:bt,paddingSM:It,paddingXS:we,colorBorderSecondary:Ut,borderRadiusLG:fn,fontSize:an,controlHeight:dn,colorTextPlaceholder:Fn}=ae,kn=new js.C(st).onBackground($e).toHexShortString(),$n=new js.C(ot).onBackground($e).toHexShortString(),Mn=new js.C(ve).onBackground($e).toHexShortString();return{headerBg:Mn,headerColor:We,headerSortActiveBg:kn,headerSortHoverBg:$n,bodySortBg:Mn,rowHoverBg:Mn,rowSelectedBg:Et,rowSelectedHoverBg:St,rowExpandedBg:ve,cellPaddingBlock:bt,cellPaddingInline:bt,cellPaddingBlockMD:It,cellPaddingInlineMD:we,cellPaddingBlockSM:we,cellPaddingInlineSM:we,borderColor:Ut,headerBorderRadius:fn,footerBg:Mn,footerColor:We,cellFontSize:an,cellFontSizeMD:an,cellFontSizeSM:an,headerSplitColor:Ut,fixedHeaderSortActiveBg:kn,headerFilterHoverBg:ot,filterDropdownMenuBg:$e,filterDropdownBg:$e,expandIconBg:$e,selectionColumnWidth:dn,stickyScrollBarBg:Fn,stickyScrollBarBorderRadius:100}});const Bo=[],_o=(ae,ve)=>{const{prefixCls:$e,className:We,rootClassName:st,style:ot,size:Et,bordered:St,dropdownPrefixCls:bt,dataSource:It,pagination:we,rowSelection:Ut,rowKey:fn="key",rowClassName:an,columns:dn,children:Fn,childrenColumnName:kn,onChange:$n,getPopupContainer:Mn,loading:Gn,expandIcon:Sr,expandable:wr,expandedRowRender:br,expandIconColumnIndex:kr,indentSize:jr,scroll:er,sortDirections:_r,locale:Jn,showSorterTooltip:Kn=!0,virtual:hr}=ae,Nr=w.useMemo(()=>dn||Lt(Fn),[dn,Fn]),Jr=w.useMemo(()=>Nr.some(mi=>mi.responsive),[Nr]),re=(0,Xr.Z)(Jr),l=w.useMemo(()=>{const mi=new Set(Object.keys(re).filter(zi=>re[zi]));return Nr.filter(zi=>!zi.responsive||zi.responsive.some(ws=>mi.has(ws)))},[Nr,re]),d=(0,Mr.Z)(ae,["className","style","columns"]),{locale:h=di.Z,direction:b,table:M,renderEmpty:se,getPrefixCls:Re,getPopupContainer:Pe}=w.useContext(Ri.E_),Je=(0,ri.Z)(Et),ft=Object.assign(Object.assign({},h.Table),Jn),Tt=It||Bo,Ht=Re("table",$e),_n=Re("dropdown",bt),Vt=Object.assign({childrenColumnName:kn,expandIconColumnIndex:kr},wr),{childrenColumnName:Ge="children"}=Vt,hn=w.useMemo(()=>Tt.some(mi=>mi==null?void 0:mi[Ge])?"nest":br||wr&&wr.expandedRowRender?"row":null,[Tt]),Tn={body:w.useRef()},ur=w.useMemo(()=>typeof fn=="function"?fn:mi=>mi==null?void 0:mi[fn],[fn]),[In]=Ys(Tt,Ge,ur),cr={},Ar=function(mi,zi){let ws=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Gi,Ps,ks;const Ms=Object.assign(Object.assign({},cr),mi);ws&&((Gi=cr.resetPagination)===null||Gi===void 0||Gi.call(cr),!((Ps=Ms.pagination)===null||Ps===void 0)&&Ps.current&&(Ms.pagination.current=1),we&&we.onChange&&we.onChange(1,(ks=Ms.pagination)===null||ks===void 0?void 0:ks.pageSize)),er&&er.scrollToFirstRowOnChange!==!1&&Tn.body.current&&(0,ti.Z)(0,{getContainer:()=>Tn.body.current}),$n==null||$n(Ms.pagination,Ms.filters,Ms.sorter,{currentDataSource:Hs(Di(Tt,Ms.sorterStates,Ge),Ms.filterStates),action:zi})},Dr=(mi,zi)=>{Ar({sorter:mi,sorterStates:zi},"sort",!1)},[fi,hi,ki,ci]=Li({prefixCls:Ht,mergedColumns:l,onSorterChange:Dr,sortDirections:_r||["ascend","descend"],tableLocale:ft,showSorterTooltip:Kn}),pi=w.useMemo(()=>Di(Tt,hi,Ge),[Tt,hi]);cr.sorter=ci(),cr.sorterStates=hi;const yi=(mi,zi)=>{Ar({filters:mi,filterStates:zi},"filter",!0)},[Ii,ys,Wr]=ya({prefixCls:Ht,locale:ft,dropdownPrefixCls:_n,mergedColumns:l,onFilterChange:yi,getPopupContainer:Mn||Pe}),ai=Hs(pi,ys);cr.filters=Wr,cr.filterStates=ys;const Ei=w.useMemo(()=>{const mi={};return Object.keys(Wr).forEach(zi=>{Wr[zi]!==null&&(mi[zi]=Wr[zi])}),Object.assign(Object.assign({},ki),{filters:mi})},[ki,Wr]),[Ji]=hs(Ei),qi=(mi,zi)=>{Ar({pagination:Object.assign(Object.assign({},cr.pagination),{current:mi,pageSize:zi})},"paginate")},[Br,Qi]=Xs(ai.length,qi,we);cr.pagination=we===!1?{}:Ds(Br,we),cr.resetPagination=Qi;const es=w.useMemo(()=>{if(we===!1||!Br.pageSize)return ai;const{current:mi=1,total:zi,pageSize:ws=Es}=Br;return ai.length<zi?ai.length>ws?ai.slice((mi-1)*ws,mi*ws):ai:ai.slice((mi-1)*ws,mi*ws)},[!!we,ai,Br&&Br.current,Br&&Br.pageSize,Br&&Br.total]),[bs,Rs]=Fs({prefixCls:Ht,data:ai,pageData:es,getRowKey:ur,getRecordByKey:In,expandType:hn,childrenColumnName:Ge,locale:ft,getPopupContainer:Mn||Pe},Ut),Ls=(mi,zi,ws)=>{let Gi;return typeof an=="function"?Gi=W()(an(mi,zi,ws)):Gi=W()(an),W()({[`${Ht}-row-selected`]:Rs.has(ur(mi,zi))},Gi)};Vt.__PARENT_RENDER_ICON__=Vt.expandIcon,Vt.expandIcon=Vt.expandIcon||Sr||oi(ft),hn==="nest"&&Vt.expandIconColumnIndex===void 0?Vt.expandIconColumnIndex=Ut?1:0:Vt.expandIconColumnIndex>0&&Ut&&(Vt.expandIconColumnIndex-=1),typeof Vt.indentSize!="number"&&(Vt.indentSize=typeof jr=="number"?jr:15);const $a=w.useCallback(mi=>Ji(bs(Ii(fi(mi)))),[fi,Ii,bs]);let ra,Os;if(we!==!1&&(Br!=null&&Br.total)){let mi;Br.size?mi=Br.size:mi=Je==="small"||Je==="middle"?"small":void 0;const zi=Ps=>w.createElement(Mi.Z,Object.assign({},Br,{className:W()(`${Ht}-pagination ${Ht}-pagination-${Ps}`,Br.className),size:mi})),ws=b==="rtl"?"left":"right",{position:Gi}=Br;if(Gi!==null&&Array.isArray(Gi)){const Ps=Gi.find(Ia=>Ia.includes("top")),ks=Gi.find(Ia=>Ia.includes("bottom")),Ms=Gi.every(Ia=>`${Ia}`=="none");!Ps&&!ks&&!Ms&&(Os=zi(ws)),Ps&&(ra=zi(Ps.toLowerCase().replace("top",""))),ks&&(Os=zi(ks.toLowerCase().replace("bottom","")))}else Os=zi(ws)}let _s;typeof Gn=="boolean"?_s={spinning:Gn}:typeof Gn=="object"&&(_s=Object.assign({spinning:!0},Gn));const[ps,ts]=eo(Ht),[,Oi]=(0,ii.Z)(),ia=W()(`${Ht}-wrapper`,M==null?void 0:M.className,{[`${Ht}-wrapper-rtl`]:b==="rtl"},We,st,ts),sa=Object.assign(Object.assign({},M==null?void 0:M.style),ot),pa=Jn&&Jn.emptyText||(se==null?void 0:se("Table"))||w.createElement(Hn.Z,{componentName:"Table"}),ma=hr?yn:rs,So={},wo=w.useMemo(()=>{const{fontSize:mi,lineHeight:zi,padding:ws,paddingXS:Gi,paddingSM:Ps}=Oi,ks=Math.floor(mi*zi);switch(Je){case"large":return ws*2+ks;case"small":return Gi*2+ks;default:return Ps*2+ks}},[Oi,Je]);return hr&&(So.listItemHeight=wo),ps(w.createElement("div",{ref:ve,className:ia,style:sa},w.createElement(bi.Z,Object.assign({spinning:!1},_s),ra,w.createElement(ma,Object.assign({},So,d,{columns:l,direction:b,expandable:Vt,prefixCls:Ht,className:W()({[`${Ht}-middle`]:Je==="middle",[`${Ht}-small`]:Je==="small",[`${Ht}-bordered`]:St,[`${Ht}-empty`]:Tt.length===0}),data:es,rowKey:ur,rowClassName:Ls,emptyText:pa,internalHooks:U,internalRefs:Tn,transformColumns:$a})),Os)))};var xo=w.forwardRef(_o);const to=(ae,ve)=>{const $e=w.useRef(0);return $e.current+=1,w.createElement(xo,Object.assign({},ae,{ref:ve,_renderTimes:$e.current}))},$s=w.forwardRef(to);$s.SELECTION_COLUMN=ji,$s.EXPAND_COLUMN=O,$s.SELECTION_ALL=vi,$s.SELECTION_INVERT=os,$s.SELECTION_NONE=ls,$s.Column=Un,$s.ColumnGroup=Er,$s.Summary=R;var no=$s,Eo=no},33166:function(Qt,He,p){"use strict";p.d(He,{i:function(){return O}});const O=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return U}});var O=p(33166);function U(ee,ue){return O.i.reduce((A,m)=>{const w=ee[`${m}1`],ne=ee[`${m}3`],o=ee[`${m}6`],I=ee[`${m}7`];return Object.assign(Object.assign({},A),ue(m,{lightColor:w,lightBorderColor:ne,darkColor:o,textColor:I}))},{})}},6848:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return Se}});var O=p(59301),U=p(92310),ee=p.n(U),ue=p(55477),A=p(18929),m=p(62892),w=p(79676),ne=p(92343),o=p(36355),I=p(33234),k=p(88088),g=p(17313),_=p(29878),S=p(19447),T=p(45157),N=p(37613),ie=p(83116);const z=ge=>{const{componentCls:de,tooltipMaxWidth:W,tooltipColor:be,tooltipBg:F,tooltipBorderRadius:ce,zIndexPopup:q,controlHeight:y,boxShadowSecondary:x,paddingSM:Z,paddingXS:me,tooltipRadiusOuter:Ne}=ge;return[{[de]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,g.Wf)(ge)),{position:"absolute",zIndex:q,display:"block",width:"max-content",maxWidth:W,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":F,[`${de}-inner`]:{minWidth:y,minHeight:y,padding:`${Z/2}px ${me}px`,color:be,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:F,borderRadius:ce,boxShadow:x,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${de}-inner`]:{borderRadius:Math.min(ce,S.qN)}},[`${de}-content`]:{position:"relative"}}),(0,T.Z)(ge,(Ue,ze)=>{let{darkColor:et}=ze;return{[`&${de}-${Ue}`]:{[`${de}-inner`]:{backgroundColor:et},[`${de}-arrow`]:{"--antd-arrow-background-color":et}}}})),{"&-rtl":{direction:"rtl"}})},(0,S.ZP)((0,N.TS)(ge,{borderRadiusOuter:Ne}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:ce,limitVerticalRadius:!0}),{[`${de}-pure`]:{position:"relative",maxWidth:"none",margin:ge.sizePopupArrow}}]};var $=(ge,de)=>(0,ie.Z)("Tooltip",be=>{if(de===!1)return[];const{borderRadius:F,colorTextLightSolid:ce,colorBgDefault:q,borderRadiusOuter:y}=be,x=(0,N.TS)(be,{tooltipMaxWidth:250,tooltipColor:ce,tooltipBorderRadius:F,tooltipBg:q,tooltipRadiusOuter:y>4?4:y});return[z(x),(0,_._y)(be,"zoom-big-fast")]},be=>{let{zIndexPopupBase:F,colorBgSpotlight:ce}=be;return{zIndexPopup:F+70,colorBgDefault:ce}},{resetStyle:!1})(ge),G=p(36785);function Q(ge,de){const W=(0,G.o2)(de),be=ee()({[`${ge}-${de}`]:de&&W}),F={},ce={};return de&&!W&&(F.background=de,ce["--antd-arrow-background-color"]=de),{className:be,overlayStyle:F,arrowStyle:ce}}var D=ge=>{const{prefixCls:de,className:W,placement:be="top",title:F,color:ce,overlayInnerStyle:q}=ge,{getPrefixCls:y}=O.useContext(o.E_),x=y("tooltip",de),[Z,me]=$(x,!0),Ne=Q(x,ce),Ue=Ne.arrowStyle,ze=Object.assign(Object.assign({},q),Ne.overlayStyle),et=ee()(me,x,`${x}-pure`,`${x}-placement-${be}`,W,Ne.className);return Z(O.createElement("div",{className:et,style:Ue},O.createElement("div",{className:`${x}-arrow`}),O.createElement(ue.G,Object.assign({},ge,{className:me,prefixCls:x,overlayInnerStyle:ze}),F)))},Y=function(ge,de){var W={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&de.indexOf(be)<0&&(W[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,be=Object.getOwnPropertySymbols(ge);F<be.length;F++)de.indexOf(be[F])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[F])&&(W[be[F]]=ge[be[F]]);return W};const j=(ge,de)=>{const W={},be=Object.assign({},ge);return de.forEach(F=>{ge&&F in ge&&(W[F]=ge[F],delete be[F])}),{picked:W,omitted:be}};function xe(ge,de){const W=ge.type;if((W.__ANT_BUTTON===!0||ge.type==="button")&&ge.props.disabled||W.__ANT_SWITCH===!0&&(ge.props.disabled||ge.props.loading)||W.__ANT_RADIO===!0&&ge.props.disabled){const{picked:be,omitted:F}=j(ge.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ce=Object.assign(Object.assign({display:"inline-block"},be),{cursor:"not-allowed",width:ge.props.block?"100%":void 0}),q=Object.assign(Object.assign({},F),{pointerEvents:"none"}),y=(0,ne.Tm)(ge,{style:q,className:null});return O.createElement("span",{style:ce,className:ee()(ge.props.className,`${de}-disabled-compatible-wrapper`)},y)}return ge}const Ce=O.forwardRef((ge,de)=>{var W,be;const{prefixCls:F,openClassName:ce,getTooltipContainer:q,overlayClassName:y,color:x,overlayInnerStyle:Z,children:me,afterOpenChange:Ne,afterVisibleChange:Ue,destroyTooltipOnHide:ze,arrow:et=!0,title:pt,overlay:gt,builtinPlacements:at,arrowPointAtCenter:Ot=!1,autoAdjustOverflow:en=!0}=ge,Rt=!!et,[,Zt]=(0,k.Z)(),{getPopupContainer:ut,getPrefixCls:Ct,direction:he}=O.useContext(o.E_),pe=O.useRef(null),le=()=>{var nt;(nt=pe.current)===null||nt===void 0||nt.forceAlign()};O.useImperativeHandle(de,()=>({forceAlign:le,forcePopupAlign:()=>{le()}}));const[J,Ie]=(0,A.Z)(!1,{value:(W=ge.open)!==null&&W!==void 0?W:ge.visible,defaultValue:(be=ge.defaultOpen)!==null&&be!==void 0?be:ge.defaultVisible}),H=!pt&&!gt&&pt!==0,R=nt=>{var rt,Ee;Ie(H?!1:nt),H||((rt=ge.onOpenChange)===null||rt===void 0||rt.call(ge,nt),(Ee=ge.onVisibleChange)===null||Ee===void 0||Ee.call(ge,nt))},P=O.useMemo(()=>{var nt,rt;let Ee=Ot;return typeof et=="object"&&(Ee=(rt=(nt=et.pointAtCenter)!==null&&nt!==void 0?nt:et.arrowPointAtCenter)!==null&&rt!==void 0?rt:Ot),at||(0,w.Z)({arrowPointAtCenter:Ee,autoAdjustOverflow:en,arrowWidth:Rt?Zt.sizePopupArrow:0,borderRadius:Zt.borderRadius,offset:Zt.marginXXS,visibleFirst:!0})},[Ot,et,at,Zt]),fe=O.useMemo(()=>pt===0?pt:gt||pt||"",[gt,pt]),oe=O.createElement(I.BR,null,typeof fe=="function"?fe():fe),{getPopupContainer:te,placement:Ae="top",mouseEnterDelay:je=.1,mouseLeaveDelay:ke=.1,overlayStyle:Be,rootClassName:qe}=ge,Qe=Y(ge,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ve=Ct("tooltip",F),xt=Ct(),Dt=ge["data-popover-inject"];let vt=J;!("open"in ge)&&!("visible"in ge)&&H&&(vt=!1);const Bt=xe((0,ne.l$)(me)&&!(0,ne.M2)(me)?me:O.createElement("span",null,me),Ve),jt=Bt.props,C=!jt.className||typeof jt.className=="string"?ee()(jt.className,ce||`${Ve}-open`):jt.className,[B,yt]=$(Ve,!Dt),ye=Q(Ve,x),Me=ye.arrowStyle,Sn=Object.assign(Object.assign({},Z),ye.overlayStyle),it=ee()(y,{[`${Ve}-rtl`]:he==="rtl"},ye.className,qe,yt);return B(O.createElement(ue.Z,Object.assign({},Qe,{showArrow:Rt,placement:Ae,mouseEnterDelay:je,mouseLeaveDelay:ke,prefixCls:Ve,overlayClassName:it,overlayStyle:Object.assign(Object.assign({},Me),Be),getTooltipContainer:te||q||ut,ref:pe,builtinPlacements:P,overlay:oe,visible:vt,onVisibleChange:R,afterVisibleChange:Ne!=null?Ne:Ue,overlayInnerStyle:Sn,arrowContent:O.createElement("span",{className:`${Ve}-arrow-content`}),motion:{motionName:(0,m.m)(xt,"zoom-big-fast",ge.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!ze}),vt?(0,ne.Tm)(Bt,{className:C}):Bt))});Ce._InternalPanelDoNotUseOrYouWillBeFired=D;var Se=Ce},17574:function(Qt,He,p){"use strict";p.d(He,{default:function(){return x}});var O=p(54844),U=p(80702),ee=p(52671),ue=p(8657),A=p(72308),m=p(59301),w={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"},ne=w,o=p(7657),I=function(me,Ne){return m.createElement(o.Z,(0,A.Z)({},me,{ref:Ne,icon:ne}))},k=m.forwardRef(I),g=k,_=p(92310),S=p.n(_),T=p(35654),N=p(71430),ie=p(36355),z=p(56082),$=p(62892),G=p(20648);const Q=4;function L(Z){const{dropPosition:me,dropLevelOffset:Ne,prefixCls:Ue,indent:ze,direction:et="ltr"}=Z,pt=et==="ltr"?"left":"right",gt=et==="ltr"?"right":"left",at={[pt]:-Ne*ze+Q,[gt]:0};switch(me){case-1:at.top=-3;break;case 1:at.bottom=-3;break;default:at.bottom=-3,at[pt]=ze+Q;break}return m.createElement("div",{style:at,className:`${Ue}-drop-indicator`})}var D=p(71997),j=m.forwardRef((Z,me)=>{const{getPrefixCls:Ne,direction:Ue,virtual:ze,tree:et}=m.useContext(ie.E_),{prefixCls:pt,className:gt,showIcon:at=!1,showLine:Ot,switcherIcon:en,blockNode:Rt=!1,children:Zt,checkable:ut=!1,selectable:Ct=!0,draggable:he,motion:pe,style:le}=Z,J=Ne("tree",pt),Ie=Ne(),H=pe!=null?pe:Object.assign(Object.assign({},(0,$.Z)(Ie)),{motionAppear:!1}),R=Object.assign(Object.assign({},Z),{checkable:ut,selectable:Ct,showIcon:at,motion:H,blockNode:Rt,showLine:!!Ot,dropIndicatorRender:L}),[P,fe]=(0,G.ZP)(J),oe=m.useMemo(()=>{if(!he)return!1;let Ae={};switch(typeof he){case"function":Ae.nodeDraggable=he;break;case"object":Ae=Object.assign({},he);break;default:break}return Ae.icon!==!1&&(Ae.icon=Ae.icon||m.createElement(z.Z,null)),Ae},[he]),te=Ae=>m.createElement(D.Z,{prefixCls:J,switcherIcon:en,treeNodeProps:Ae,showLine:Ot});return P(m.createElement(O.Z,Object.assign({itemHeight:20,ref:me,virtual:ze},R,{style:Object.assign(Object.assign({},et==null?void 0:et.style),le),prefixCls:J,className:S()({[`${J}-icon-hide`]:!at,[`${J}-block-node`]:Rt,[`${J}-unselectable`]:!Ct,[`${J}-rtl`]:Ue==="rtl"},et==null?void 0:et.className,gt,fe),direction:Ue,checkable:ut&&m.createElement("span",{className:`${J}-checkbox-inner`}),selectable:Ct,switcherIcon:te,draggable:oe}),Zt))}),xe;(function(Z){Z[Z.None=0]="None",Z[Z.Start=1]="Start",Z[Z.End=2]="End"})(xe||(xe={}));function Ce(Z,me){function Ne(Ue){const{key:ze,children:et}=Ue;me(ze,Ue)!==!1&&Ce(et||[],me)}Z.forEach(Ne)}function Se(Z){let{treeData:me,expandedKeys:Ne,startKey:Ue,endKey:ze}=Z;const et=[];let pt=xe.None;if(Ue&&Ue===ze)return[Ue];if(!Ue||!ze)return[];function gt(at){return at===Ue||at===ze}return Ce(me,at=>{if(pt===xe.End)return!1;if(gt(at)){if(et.push(at),pt===xe.None)pt=xe.Start;else if(pt===xe.Start)return pt=xe.End,!1}else pt===xe.Start&&et.push(at);return Ne.includes(at)}),et}function ge(Z,me){const Ne=(0,U.Z)(me),Ue=[];return Ce(Z,(ze,et)=>{const pt=Ne.indexOf(ze);return pt!==-1&&(Ue.push(et),Ne.splice(pt,1)),!!Ne.length}),Ue}var de=function(Z,me){var Ne={};for(var Ue in Z)Object.prototype.hasOwnProperty.call(Z,Ue)&&me.indexOf(Ue)<0&&(Ne[Ue]=Z[Ue]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ue=Object.getOwnPropertySymbols(Z);ze<Ue.length;ze++)me.indexOf(Ue[ze])<0&&Object.prototype.propertyIsEnumerable.call(Z,Ue[ze])&&(Ne[Ue[ze]]=Z[Ue[ze]]);return Ne};function W(Z){const{isLeaf:me,expanded:Ne}=Z;return me?m.createElement(ee.Z,null):Ne?m.createElement(ue.Z,null):m.createElement(g,null)}function be(Z){let{treeData:me,children:Ne}=Z;return me||(0,N.zn)(Ne)}const F=(Z,me)=>{var{defaultExpandAll:Ne,defaultExpandParent:Ue,defaultExpandedKeys:ze}=Z,et=de(Z,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const pt=m.useRef(),gt=m.useRef(),at=()=>{const{keyEntities:oe}=(0,N.I8)(be(et));let te;return Ne?te=Object.keys(oe):Ue?te=(0,T.r7)(et.expandedKeys||ze||[],oe):te=et.expandedKeys||ze,te},[Ot,en]=m.useState(et.selectedKeys||et.defaultSelectedKeys||[]),[Rt,Zt]=m.useState(()=>at());m.useEffect(()=>{"selectedKeys"in et&&en(et.selectedKeys)},[et.selectedKeys]),m.useEffect(()=>{"expandedKeys"in et&&Zt(et.expandedKeys)},[et.expandedKeys]);const ut=(oe,te)=>{var Ae;return"expandedKeys"in et||Zt(oe),(Ae=et.onExpand)===null||Ae===void 0?void 0:Ae.call(et,oe,te)},Ct=(oe,te)=>{var Ae;const{multiple:je}=et,{node:ke,nativeEvent:Be}=te,{key:qe=""}=ke,Qe=be(et),Ve=Object.assign(Object.assign({},te),{selected:!0}),xt=(Be==null?void 0:Be.ctrlKey)||(Be==null?void 0:Be.metaKey),Dt=Be==null?void 0:Be.shiftKey;let vt;je&&xt?(vt=oe,pt.current=qe,gt.current=vt,Ve.selectedNodes=ge(Qe,vt)):je&&Dt?(vt=Array.from(new Set([].concat((0,U.Z)(gt.current||[]),(0,U.Z)(Se({treeData:Qe,expandedKeys:Rt,startKey:qe,endKey:pt.current}))))),Ve.selectedNodes=ge(Qe,vt)):(vt=[qe],pt.current=qe,gt.current=vt,Ve.selectedNodes=ge(Qe,vt)),(Ae=et.onSelect)===null||Ae===void 0||Ae.call(et,vt,Ve),"selectedKeys"in et||en(vt)},{getPrefixCls:he,direction:pe}=m.useContext(ie.E_),{prefixCls:le,className:J,showIcon:Ie=!0,expandAction:H="click"}=et,R=de(et,["prefixCls","className","showIcon","expandAction"]),P=he("tree",le),fe=S()(`${P}-directory`,{[`${P}-directory-rtl`]:pe==="rtl"},J);return m.createElement(j,Object.assign({icon:W,ref:me,blockNode:!0},R,{showIcon:Ie,expandAction:H,prefixCls:P,className:fe,expandedKeys:Rt,selectedKeys:Ot,onSelect:Ct,onExpand:ut}))};var q=m.forwardRef(F);const y=j;y.DirectoryTree=q,y.TreeNode=O.O;var x=y},20648:function(Qt,He,p){"use strict";p.d(He,{TM:function(){return _},Yk:function(){return g}});var O=p(93083),U=p(98447),ee=p(17313),ue=p(8378),A=p(37613),m=p(83116);const w=new O.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ne=(S,T)=>({[`.${S}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${T.motionDurationSlow}`}}}),o=(S,T)=>({[`.${S}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:T.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${T.lineWidthBold}px solid ${T.colorPrimary}`,borderRadius:"50%",content:'""'}}}),I=(S,T)=>{const{treeCls:N,treeNodeCls:ie,treeNodePadding:z,titleHeight:$,nodeSelectedBg:G,nodeHoverBg:Q}=T,L=T.paddingXS;return{[N]:Object.assign(Object.assign({},(0,ee.Wf)(T)),{background:T.colorBgContainer,borderRadius:T.borderRadius,transition:`background-color ${T.motionDurationSlow}`,[`&${N}-rtl`]:{[`${N}-switcher`]:{"&_close":{[`${N}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${N}-active-focused)`]:Object.assign({},(0,ee.oN)(T)),[`${N}-list-holder-inner`]:{alignItems:"flex-start"},[`&${N}-block-node`]:{[`${N}-list-holder-inner`]:{alignItems:"stretch",[`${N}-node-content-wrapper`]:{flex:"auto"},[`${ie}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:z,insetInlineStart:0,border:`1px solid ${T.colorPrimary}`,opacity:0,animationName:w,animationDuration:T.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ie}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${z}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${N}-node-content-wrapper`]:{color:T.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${N}-node-content-wrapper`]:Object.assign({},(0,ee.oN)(T)),[`&:not(${ie}-disabled).filter-node ${N}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${N}-draggable-icon`]:{flexShrink:0,width:$,lineHeight:`${$}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${T.motionDurationSlow}`,[`${ie}:hover &`]:{opacity:.45}},[`&${ie}-disabled`]:{[`${N}-draggable-icon`]:{visibility:"hidden"}}}},[`${N}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:$}},[`${N}-draggable-icon`]:{visibility:"hidden"},[`${N}-switcher`]:Object.assign(Object.assign({},ne(S,T)),{position:"relative",flex:"none",alignSelf:"stretch",width:$,margin:0,lineHeight:`${$}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${N}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:T.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$/2,bottom:-z,marginInlineStart:-1,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:$/2*.8,height:$/2,borderBottom:`1px solid ${T.colorBorder}`,content:'""'}}}),[`${N}-checkbox`]:{top:"initial",marginInlineEnd:L},[`${N}-node-content-wrapper, ${N}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:$,margin:0,padding:`0 ${T.paddingXS/2}px`,color:"inherit",lineHeight:`${$}px`,background:"transparent",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Q},[`&${N}-node-selected`]:{backgroundColor:G},[`${N}-iconEle`]:{display:"inline-block",width:$,height:$,lineHeight:`${$}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${N}-unselectable ${N}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${N}-node-content-wrapper`]:Object.assign({lineHeight:`${$}px`,userSelect:"none"},o(S,T)),[`${ie}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${T.colorPrimary}`}},"&-show-line":{[`${N}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$/2,bottom:-z,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${N}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ie}-leaf-last`]:{[`${N}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${$/2}px !important`}}}}})}},k=S=>{const{treeCls:T,treeNodeCls:N,treeNodePadding:ie,directoryNodeSelectedBg:z,directoryNodeSelectedColor:$}=S;return{[`${T}${T}-directory`]:{[N]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ie,insetInlineStart:0,transition:`background-color ${S.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:S.controlItemBgHover}},"> *":{zIndex:1},[`${T}-switcher`]:{transition:`color ${S.motionDurationMid}`},[`${T}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${T}-node-selected`]:{color:$,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:z},[`${T}-switcher`]:{color:$},[`${T}-node-content-wrapper`]:{color:$,background:"transparent"}}}}}},g=(S,T)=>{const N=`.${S}`,ie=`${N}-treenode`,z=T.paddingXS/2,$=(0,A.TS)(T,{treeCls:N,treeNodeCls:ie,treeNodePadding:z});return[I(S,$),k($)]},_=S=>{const{controlHeightSM:T}=S;return{titleHeight:T,nodeHoverBg:S.controlItemBgHover,nodeSelectedBg:S.controlItemBgActive}};He.ZP=(0,m.Z)("Tree",(S,T)=>{let{prefixCls:N}=T;return[{[S.componentCls]:(0,U.C2)(`${N}-checkbox`,S)},g(N,S),(0,ue.Z)(S)]},S=>{const{colorTextLightSolid:T,colorPrimary:N}=S;return Object.assign(Object.assign({},_(S)),{directoryNodeSelectedColor:T,directoryNodeSelectedBg:N})})},71997:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ie}});var O=p(72308),U=p(59301),ee={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"},ue=ee,A=p(7657),m=function($,G){return U.createElement(A.Z,(0,O.Z)({},$,{ref:G,icon:ue}))},w=U.forwardRef(m),ne=w,o=p(52671),I=p(58617),k=p(15075),g=p(43531),_=p(92310),S=p.n(_),T=p(92343),ie=z=>{const{prefixCls:$,switcherIcon:G,treeNodeProps:Q,showLine:L}=z,{isLeaf:D,expanded:Y,loading:j}=Q;if(j)return U.createElement(I.Z,{className:`${$}-switcher-loading-icon`});let xe;if(L&&typeof L=="object"&&(xe=L.showLeafIcon),D){if(!L)return null;if(typeof xe!="boolean"&&xe){const ge=typeof xe=="function"?xe(Q):xe,de=`${$}-switcher-line-custom-icon`;return(0,T.l$)(ge)?(0,T.Tm)(ge,{className:S()(ge.props.className||"",de)}):ge}return xe?U.createElement(o.Z,{className:`${$}-switcher-line-icon`}):U.createElement("span",{className:`${$}-switcher-leaf-line`})}const Ce=`${$}-switcher-icon`,Se=typeof G=="function"?G(Q):G;return(0,T.l$)(Se)?(0,T.Tm)(Se,{className:S()(Se.props.className||"",Ce)}):Se!==void 0?Se:L?Y?U.createElement(k.Z,{className:`${$}-switcher-line-icon`}):U.createElement(g.Z,{className:`${$}-switcher-line-icon`}):U.createElement(ne,{className:Ce})}},64018:function(){var Qt,He,p,O=!1,U,ee;window.PR_SHOULD_USE_CONTINUATION=!0;var ue,A;(function(){var m=window,w=["break,continue,do,else,for,if,return,while"],ne=[w,"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"],o=[ne,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],I=[o,"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"],k=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],g=[o,"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"],_="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",S=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],T="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",N=[w,"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"],ie=[w,"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"],z=[w,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],$=[I,g,k,S,T,N,ie,z],G=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,Q="str",L="kwd",D="com",Y="typ",j="lit",xe="pun",Ce="pln",Se="tag",ge="dec",de="src",W="atn",be="atv",F="nocode",ce="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function q(he){for(var pe=0,le=!1,J=!1,Ie=0,H=he.length;Ie<H;++Ie){var R=he[Ie];if(R.ignoreCase)J=!0;else if(/[a-z]/i.test(R.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){le=!0,J=!1;break}}var P={b:8,t:9,n:10,v:11,f:12,r:13};function fe(ke){var Be=ke.charCodeAt(0);if(Be!==92)return Be;var qe=ke.charAt(1);return Be=P[qe],Be||("0"<=qe&&qe<="7"?parseInt(ke.substring(1),8):qe==="u"||qe==="x"?parseInt(ke.substring(2),16):ke.charCodeAt(1))}function oe(ke){if(ke<32)return(ke<16?"\\x0":"\\x")+ke.toString(16);var Be=String.fromCharCode(ke);return Be==="\\"||Be==="-"||Be==="]"||Be==="^"?"\\"+Be:Be}function te(ke){var Be=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")),qe=[],Qe=Be[0]==="^",Ve=["["];Qe&&Ve.push("^");for(var xt=Qe?1:0,Dt=Be.length;xt<Dt;++xt){var vt=Be[xt];if(/\\[bdsw]/i.test(vt))Ve.push(vt);else{var Bt=fe(vt),jt;xt+2<Dt&&Be[xt+1]==="-"?(jt=fe(Be[xt+2]),xt+=2):jt=Bt,qe.push([Bt,jt]),jt<65||Bt>122||(jt<65||Bt>90||qe.push([Math.max(65,Bt)|32,Math.min(jt,90)|32]),jt<97||Bt>122||qe.push([Math.max(97,Bt)&-33,Math.min(jt,122)&-33]))}}qe.sort(function(ye,Me){return ye[0]-Me[0]||Me[1]-ye[1]});for(var C=[],B=[],xt=0;xt<qe.length;++xt){var yt=qe[xt];yt[0]<=B[1]+1?B[1]=Math.max(B[1],yt[1]):C.push(B=yt)}for(var xt=0;xt<C.length;++xt){var yt=C[xt];Ve.push(oe(yt[0])),yt[1]>yt[0]&&(yt[1]+1>yt[0]&&Ve.push("-"),Ve.push(oe(yt[1])))}return Ve.push("]"),Ve.join("")}function Ae(ke){for(var Be=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")),qe=Be.length,Qe=[],Ve=0,xt=0;Ve<qe;++Ve){var Dt=Be[Ve];if(Dt==="(")++xt;else if(Dt.charAt(0)==="\\"){var vt=+Dt.substring(1);vt&&(vt<=xt?Qe[vt]=-1:Be[Ve]=oe(vt))}}for(var Ve=1;Ve<Qe.length;++Ve)Qe[Ve]===-1&&(Qe[Ve]=++pe);for(var Ve=0,xt=0;Ve<qe;++Ve){var Dt=Be[Ve];if(Dt==="(")++xt,Qe[xt]||(Be[Ve]="(?:");else if(Dt.charAt(0)==="\\"){var vt=+Dt.substring(1);vt&&vt<=xt&&(Be[Ve]="\\"+Qe[vt])}}for(var Ve=0;Ve<qe;++Ve)Be[Ve]==="^"&&Be[Ve+1]!=="^"&&(Be[Ve]="");if(ke.ignoreCase&&le)for(var Ve=0;Ve<qe;++Ve){var Dt=Be[Ve],Bt=Dt.charAt(0);Dt.length>=2&&Bt==="["?Be[Ve]=te(Dt):Bt!=="\\"&&(Be[Ve]=Dt.replace(/[a-zA-Z]/g,function(B){var yt=B.charCodeAt(0);return"["+String.fromCharCode(yt&-33,yt|32)+"]"}))}return Be.join("")}for(var je=[],Ie=0,H=he.length;Ie<H;++Ie){var R=he[Ie];if(R.global||R.multiline)throw new Error(""+R);je.push("(?:"+Ae(R)+")")}return new RegExp(je.join("|"),J?"gi":"g")}function y(he,pe){var le=/(?:^|\s)nocode(?:\s|$)/,J=[],Ie=0,H=[],R=0;function P(fe){var oe=fe.nodeType;if(oe==1){if(le.test(fe.className))return;for(var te=fe.firstChild;te;te=te.nextSibling)P(te);var Ae=fe.nodeName.toLowerCase();(Ae==="br"||Ae==="li")&&(J[R]=`
|
|
|
`,H[R<<1]=Ie++,H[R++<<1|1]=fe)}else if(oe==3||oe==4){var je=fe.nodeValue;je.length&&(pe?je=je.replace(/\r\n?/g,`
|
|
|
`):je=je.replace(/[ \t\r\n]+/g," "),J[R]=je,H[R<<1]=Ie,Ie+=je.length,H[R++<<1|1]=fe)}}return P(he),{sourceCode:J.join("").replace(/\n$/,""),spans:H}}function x(he,pe,le,J,Ie){if(le){var H={sourceNode:he,pre:1,langExtension:null,numberLines:null,sourceCode:le,spans:null,basePos:pe,decorations:null};J(H),Ie.push.apply(Ie,H.decorations)}}var Z=/\S/;function me(he){for(var pe=void 0,le=he.firstChild;le;le=le.nextSibling){var J=le.nodeType;pe=J===1?pe?he:le:J===3&&Z.test(le.nodeValue)?he:pe}return pe===he?void 0:pe}function Ne(he,pe){var le={},J;(function(){for(var R=he.concat(pe),P=[],fe={},oe=0,te=R.length;oe<te;++oe){var Ae=R[oe],je=Ae[3];if(je)for(var ke=je.length;--ke>=0;)le[je.charAt(ke)]=Ae;var Be=Ae[1],qe=""+Be;fe.hasOwnProperty(qe)||(P.push(Be),fe[qe]=null)}P.push(/[\0-\uffff]/),J=q(P)})();var Ie=pe.length,H=function(R){for(var P=R.sourceCode,fe=R.basePos,oe=R.sourceNode,te=[fe,Ce],Ae=0,je=P.match(J)||[],ke={},Be=0,qe=je.length;Be<qe;++Be){var Qe=je[Be],Ve=ke[Qe],xt=void 0,Dt;if(typeof Ve=="string")Dt=!1;else{var vt=le[Qe.charAt(0)];if(vt)xt=Qe.match(vt[1]),Ve=vt[0];else{for(var Bt=0;Bt<Ie;++Bt)if(vt=pe[Bt],xt=Qe.match(vt[1]),xt){Ve=vt[0];break}xt||(Ve=Ce)}Dt=Ve.length>=5&&Ve.substring(0,5)==="lang-",Dt&&!(xt&&typeof xt[1]=="string")&&(Dt=!1,Ve=de),Dt||(ke[Qe]=Ve)}var jt=Ae;if(Ae+=Qe.length,!Dt)te.push(fe+jt,Ve);else{var C=xt[1],B=Qe.indexOf(C),yt=B+C.length;xt[2]&&(yt=Qe.length-xt[2].length,B=yt-C.length);var ye=Ve.substring(5);x(oe,fe+jt,Qe.substring(0,B),H,te),x(oe,fe+jt+B,C,Ot(ye,C),te),x(oe,fe+jt+yt,Qe.substring(yt),H,te)}}R.decorations=te};return H}function Ue(he){var pe=[],le=[];he.tripleQuotedStrings?pe.push([Q,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):he.multiLineStrings?pe.push([Q,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):pe.push([Q,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),he.verbatimStrings&&le.push([Q,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=he.hashComments;J&&(he.cStyleComments?(J>1?pe.push([D,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):pe.push([D,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),le.push([Q,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):pe.push([D,/^#[^\r\n]*/,null,"#"])),he.cStyleComments&&(le.push([D,/^\/\/[^\r\n]*/,null]),le.push([D,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ie=he.regexLiterals;if(Ie){var H=Ie>1?"":`
|
|
|
\r`,R=H?".":"[\\S\\s]",P="/(?=[^/*"+H+"])(?:[^/\\x5B\\x5C"+H+"]|\\x5C"+R+"|\\x5B(?:[^\\x5C\\x5D"+H+"]|\\x5C"+R+")*(?:\\x5D|$))+/";le.push(["lang-regex",RegExp("^"+ce+"("+P+")")])}var fe=he.types;fe&&le.push([Y,fe]);var oe=(""+he.keywords).replace(/^ | $/g,"");oe.length&&le.push([L,new RegExp("^(?:"+oe.replace(/[\s,]+/g,"|")+")\\b"),null]),pe.push([Ce,/^\s+/,null,` \r
|
|
|
\xA0`]);var te="^.[^\\s\\w.$@'\"`/\\\\]*";return he.regexLiterals&&(te+="(?!s*/)"),le.push([j,/^@[a-z_$][a-z_$@0-9]*/i,null],[Y,/^(?:[@_]?[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],[xe,new RegExp(te),null]),Ne(pe,le)}var ze=Ue({keywords:$,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function et(he,pe,le){for(var J=/(?:^|\s)nocode(?:\s|$)/,Ie=/\r\n?|\n/,H=he.ownerDocument,R=H.createElement("li");he.firstChild;)R.appendChild(he.firstChild);var P=[R];function fe(Be){var qe=Be.nodeType;if(qe==1&&!J.test(Be.className))if(Be.nodeName==="br")oe(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var Qe=Be.firstChild;Qe;Qe=Qe.nextSibling)fe(Qe);else if((qe==3||qe==4)&&le){var Ve=Be.nodeValue,xt=Ve.match(Ie);if(xt){var Dt=Ve.substring(0,xt.index);Be.nodeValue=Dt;var vt=Ve.substring(xt.index+xt[0].length);if(vt){var Bt=Be.parentNode;Bt.insertBefore(H.createTextNode(vt),Be.nextSibling)}oe(Be),Dt||Be.parentNode.removeChild(Be)}}}function oe(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function qe(xt,Dt){var vt=Dt?xt.cloneNode(!1):xt,Bt=xt.parentNode;if(Bt){var jt=qe(Bt,1),C=xt.nextSibling;jt.appendChild(vt);for(var B=C;B;B=C)C=B.nextSibling,jt.appendChild(B)}return vt}for(var Qe=qe(Be.nextSibling,0),Ve;(Ve=Qe.parentNode)&&Ve.nodeType===1;)Qe=Ve;P.push(Qe)}for(var te=0;te<P.length;++te)fe(P[te]);pe===(pe|0)&&P[0].setAttribute("value",pe);var Ae=H.createElement("ol");Ae.className="linenums";for(var je=Math.max(0,pe-1|0)||0,te=0,ke=P.length;te<ke;++te)R=P[te],R.className="L"+(te+je)%10,R.firstChild||R.appendChild(H.createTextNode("\xA0")),Ae.appendChild(R);he.appendChild(Ae)}function pt(he){var pe=/\bMSIE\s(\d+)/.exec(navigator.userAgent);pe=pe&&+pe[1]<=8;var le=/\n/g,J=he.sourceCode,Ie=J.length,H=0,R=he.spans,P=R.length,fe=0,oe=he.decorations,te=oe.length,Ae=0;oe[te]=Ie;var je,ke;for(ke=je=0;ke<te;)oe[ke]!==oe[ke+2]?(oe[je++]=oe[ke++],oe[je++]=oe[ke++]):ke+=2;for(te=je,ke=je=0;ke<te;){for(var Be=oe[ke],qe=oe[ke+1],Qe=ke+2;Qe+2<=te&&oe[Qe+1]===qe;)Qe+=2;oe[je++]=Be,oe[je++]=qe,ke=Qe}te=oe.length=je;var Ve=he.sourceNode,xt="";Ve&&(xt=Ve.style.display,Ve.style.display="none");try{for(var Dt=null;fe<P;){var vt=R[fe],Bt=R[fe+2]||Ie,jt=oe[Ae+2]||Ie,Qe=Math.min(Bt,jt),C=R[fe+1],B;if(C.nodeType!==1&&(B=J.substring(H,Qe))){pe&&(B=B.replace(le,"\r")),C.nodeValue=B;var yt=C.ownerDocument,ye=yt.createElement("span");ye.className=oe[Ae+1];var Me=C.parentNode;Me.replaceChild(ye,C),ye.appendChild(C),H<Bt&&(R[fe+1]=C=yt.createTextNode(J.substring(Qe,Bt)),Me.insertBefore(C,ye.nextSibling))}H=Qe,H>=Bt&&(fe+=2),H>=jt&&(Ae+=2)}}finally{Ve&&(Ve.style.display=xt)}}var gt={};function at(he,pe){for(var le=pe.length;--le>=0;){var J=pe[le];gt.hasOwnProperty(J)?m.console&&console.warn("cannot override language handler %s",J):gt[J]=he}}function Ot(he,pe){return he&>.hasOwnProperty(he)||(he=/^\s*</.test(pe)?"default-markup":"default-code"),gt[he]}at(ze,["default-code"]),at(Ne([],[[Ce,/^[^<?]+/],[ge,/^<!\w[^>]*(?:>|$)/],[D,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[xe,/^(?:<[%?]|[%?]>)/],["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"]),at(Ne([[Ce,/^[\s]+/,null,` \r
|
|
|
`],[be,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Se,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[W,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[xe,/^[=<>\/]+/],["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"]),at(Ne([],[[be,/^[\s\S]+/]]),["uq.val"]),at(Ue({keywords:I,hashComments:!0,cStyleComments:!0,types:G}),["c","cc","cpp","cxx","cyc","m"]),at(Ue({keywords:"null,true,false"}),["json"]),at(Ue({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:G}),["cs"]),at(Ue({keywords:k,cStyleComments:!0}),["java"]),at(Ue({keywords:z,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),at(Ue({keywords:N,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),at(Ue({keywords:T,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),at(Ue({keywords:ie,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),at(Ue({keywords:S,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),at(Ue({keywords:_,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),at(Ne([],[[Q,/^[\s\S]+/]]),["regex"]);function en(he){var pe=he.langExtension;try{var le=y(he.sourceNode,he.pre),J=le.sourceCode;he.sourceCode=J,he.spans=le.spans,he.basePos=0,Ot(pe,J)(he),pt(he)}catch(Ie){m.console&&console.log(Ie&&Ie.stack||Ie)}}function Rt(he,pe,le){var J=le||!1,Ie=pe||null,H=document.createElement("div");H.innerHTML="<pre>"+he+"</pre>",H=H.firstChild,J&&et(H,J,!0);var R={langExtension:Ie,numberLines:J,sourceNode:H,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return en(R),H.innerHTML}function Zt(he,pe){var le=pe||document.body,J=le.ownerDocument||document;function Ie(vt){return le.getElementsByTagName(vt)}for(var H=[Ie("pre"),Ie("code"),Ie("xmp")],R=[],P=0;P<H.length;++P)for(var fe=0,oe=H[P].length;fe<oe;++fe)R.push(H[P][fe]);H=null;var te=Date;te.now||(te={now:function(){return+new Date}});var Ae=0,je=/\blang(?:uage)?-([\w.]+)(?!\S)/,ke=/\bprettyprint\b/,Be=/\bprettyprinted\b/,qe=/pre|xmp/i,Qe=/^code$/i,Ve=/^(?:pre|code|xmp)$/i,xt={};function Dt(){for(var vt=m.PR_SHOULD_USE_CONTINUATION?te.now()+250:1/0;Ae<R.length&&te.now()<vt;Ae++){for(var Bt=R[Ae],jt=xt,C=Bt;C=C.previousSibling;){var B=C.nodeType,yt=(B===7||B===8)&&C.nodeValue;if(yt?!/^\??prettify\b/.test(yt):B!==3||/\S/.test(C.nodeValue))break;if(yt){jt={},yt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ze,xn,Rn){jt[xn]=Rn});break}}var ye=Bt.className;if((jt!==xt||ke.test(ye))&&!Be.test(ye)){for(var Me=!1,Sn=Bt.parentNode;Sn;Sn=Sn.parentNode){var it=Sn.tagName;if(Ve.test(it)&&Sn.className&&ke.test(Sn.className)){Me=!0;break}}if(!Me){Bt.className+=" prettyprinted";var nt=jt.lang;if(!nt){nt=ye.match(je);var rt;!nt&&(rt=me(Bt))&&Qe.test(rt.tagName)&&(nt=rt.className.match(je)),nt&&(nt=nt[1])}var Ee;if(qe.test(Bt.tagName))Ee=1;else{var De=Bt.currentStyle,Fe=J.defaultView,tt=De?De.whiteSpace:Fe&&Fe.getComputedStyle?Fe.getComputedStyle(Bt,null).getPropertyValue("white-space"):0;Ee=tt&&tt.substring(0,3)==="pre"}var _e=jt.linenums;(_e=_e==="true"||+_e)||(_e=ye.match(/\blinenums\b(?::(\d+))?/),_e=_e?_e[1]&&_e[1].length?+_e[1]:!0:!1),_e&&et(Bt,_e,Ee);var Jt={langExtension:nt,sourceNode:Bt,numberLines:_e,pre:Ee,sourceCode:null,basePos:null,spans:null,decorations:null};en(Jt)}}}Ae<R.length?m.setTimeout(Dt,250):typeof he=="function"&&he()}Dt()}var ut=m.PR={createSimpleLexer:Ne,registerLangHandler:at,sourceDecorator:Ue,PR_ATTRIB_NAME:W,PR_ATTRIB_VALUE:be,PR_COMMENT:D,PR_DECLARATION:ge,PR_KEYWORD:L,PR_LITERAL:j,PR_NOCODE:F,PR_PLAIN:Ce,PR_PUNCTUATION:xe,PR_SOURCE:de,PR_STRING:Q,PR_TAG:Se,PR_TYPE:Y,prettyPrintOne:O?m.prettyPrintOne=Rt:ue=Rt,prettyPrint:A=O?m.prettyPrint=Zt:A=Zt},Ct=m.define;typeof Ct=="function"&&Ct.amd&&Ct("google-code-prettify",[],function(){return ut})})()},25769:function(Qt,He,p){"use strict";var O=p(98040),U={"text/plain":"Text","text/html":"Url",default:"Text"},ee="Copy to clipboard: #{key}, Enter";function ue(m){var w=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,w)}function A(m,w){var ne,o,I,k,g,_,S=!1;w||(w={}),ne=w.debug||!1;try{I=O(),k=document.createRange(),g=document.getSelection(),_=document.createElement("span"),_.textContent=m,_.ariaHidden="true",_.style.all="unset",_.style.position="fixed",_.style.top=0,_.style.clip="rect(0, 0, 0, 0)",_.style.whiteSpace="pre",_.style.webkitUserSelect="text",_.style.MozUserSelect="text",_.style.msUserSelect="text",_.style.userSelect="text",_.addEventListener("copy",function(N){if(N.stopPropagation(),w.format)if(N.preventDefault(),typeof N.clipboardData=="undefined"){ne&&console.warn("unable to use e.clipboardData"),ne&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ie=U[w.format]||U.default;window.clipboardData.setData(ie,m)}else N.clipboardData.clearData(),N.clipboardData.setData(w.format,m);w.onCopy&&(N.preventDefault(),w.onCopy(N.clipboardData))}),document.body.appendChild(_),k.selectNodeContents(_),g.addRange(k);var T=document.execCommand("copy");if(!T)throw new Error("copy command was unsuccessful");S=!0}catch(N){ne&&console.error("unable to copy using execCommand: ",N),ne&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(w.format||"text",m),w.onCopy&&w.onCopy(window.clipboardData),S=!0}catch(ie){ne&&console.error("unable to copy using clipboardData: ",ie),ne&&console.error("falling back to prompt"),o=ue("message"in w?w.message:ee),window.prompt(o,m)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(k):g.removeAllRanges()),_&&document.body.removeChild(_),I()}return S}Qt.exports=A},97774:function(Qt,He,p){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var O=Object.assign||function(N){for(var ie=1;ie<arguments.length;ie++){var z=arguments[ie];for(var $ in z)Object.prototype.hasOwnProperty.call(z,$)&&(N[$]=z[$])}return N},U=function(){function N(ie,z){for(var $=0;$<z.length;$++){var G=z[$];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(ie,G.key,G)}}return function(ie,z,$){return z&&N(ie.prototype,z),$&&N(ie,$),ie}}(),ee=p(59301),ue=k(ee),A=p(12708),m=k(A),w=p(53291),ne=k(w),o=p(47242),I=p(65429);function k(N){return N&&N.__esModule?N:{default:N}}function g(N,ie){if(!(N instanceof ie))throw new TypeError("Cannot call a class as a function")}function _(N,ie){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:N}function S(N,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);N.prototype=Object.create(ie&&ie.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(N,ie):N.__proto__=ie)}var T=function(N){S(ie,N);function ie(z){g(this,ie);var $=_(this,(ie.__proto__||Object.getPrototypeOf(ie)).call(this,z));return $.getEchartsInstance=function(){return $.echartsLib.getInstanceByDom($.echartsElement)||$.echartsLib.init($.echartsElement,$.props.theme,$.props.opts)},$.dispose=function(){if($.echartsElement){try{(0,o.clear)($.echartsElement)}catch(G){console.warn(G)}$.echartsLib.dispose($.echartsElement)}},$.rerender=function(){var G=$.props,Q=G.onEvents,L=G.onChartReady,D=$.renderEchartDom();$.bindEvents(D,Q||{}),typeof L=="function"&&$.props.onChartReady(D),$.echartsElement&&(0,o.bind)($.echartsElement,function(){try{D.resize()}catch(Y){console.warn(Y)}})},$.bindEvents=function(G,Q){var L=function(j,xe){typeof j=="string"&&typeof xe=="function"&&G.on(j,function(Ce){xe(Ce,G)})};for(var D in Q)Object.prototype.hasOwnProperty.call(Q,D)&&L(D,Q[D])},$.renderEchartDom=function(){var G=$.getEchartsInstance();return G.setOption($.props.option,$.props.notMerge||!1,$.props.lazyUpdate||!1),$.props.showLoading?G.showLoading($.props.loadingOption||null):G.hideLoading(),G},$.echartsLib=z.echarts,$.echartsElement=null,$}return U(ie,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function($){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption($,this.props))){if(!(0,ne.default)($.theme,this.props.theme)||!(0,ne.default)($.opts,this.props.opts)||!(0,ne.default)($.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var G=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,ne.default)((0,I.pick)(this.props,G),(0,I.pick)($,G))){var Q=this.renderEchartDom();if(!(0,ne.default)($.style,this.props.style)||!(0,ne.default)($.className,this.props.className))try{Q.resize()}catch(L){console.warn(L)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var $=this,G=this.props,Q=G.style,L=G.className,D=O({height:300},Q);return ue.default.createElement("div",{ref:function(j){$.echartsElement=j},style:D,className:"echarts-for-react "+L})}}]),ie}(ee.Component);He.default=T,T.propTypes={option:m.default.object.isRequired,echarts:m.default.object,notMerge:m.default.bool,lazyUpdate:m.default.bool,style:m.default.object,className:m.default.string,theme:m.default.oneOfType([m.default.string,m.default.object]),onChartReady:m.default.func,showLoading:m.default.bool,loadingOption:m.default.object,onEvents:m.default.object,opts:m.default.shape({devicePixelRatio:m.default.number,renderer:m.default.oneOf(["canvas","svg"]),width:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])]),height:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:m.default.func},T.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(Qt,He,p){"use strict";var O;O={value:!0},He.Z=void 0;var U=p(76411),ee=m(U),ue=p(97774),A=m(ue);function m(k){return k&&k.__esModule?k:{default:k}}function w(k,g){if(!(k instanceof g))throw new TypeError("Cannot call a class as a function")}function ne(k,g){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:k}function o(k,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);k.prototype=Object.create(g&&g.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(k,g):k.__proto__=g)}var I=function(k){o(g,k);function g(_){w(this,g);var S=ne(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return S.echartsLib=ee.default,S}return g}(A.default);He.Z=I},65429:function(Qt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0});var p=He.pick=function(U,ee){var ue={};return ee.forEach(function(A){ue[A]=U[A]}),ue}},53291:function(Qt){"use strict";var He=Array.isArray,p=Object.keys,O=Object.prototype.hasOwnProperty;Qt.exports=function U(ee,ue){if(ee===ue)return!0;if(ee&&ue&&typeof ee=="object"&&typeof ue=="object"){var A=He(ee),m=He(ue),w,ne,o;if(A&&m){if(ne=ee.length,ne!=ue.length)return!1;for(w=ne;w--!==0;)if(!U(ee[w],ue[w]))return!1;return!0}if(A!=m)return!1;var I=ee instanceof Date,k=ue instanceof Date;if(I!=k)return!1;if(I&&k)return ee.getTime()==ue.getTime();var g=ee instanceof RegExp,_=ue instanceof RegExp;if(g!=_)return!1;if(g&&_)return ee.toString()==ue.toString();var S=p(ee);if(ne=S.length,ne!==p(ue).length)return!1;for(w=ne;w--!==0;)if(!O.call(ue,S[w]))return!1;for(w=ne;w--!==0;)if(o=S[w],!U(ee[o],ue[o]))return!1;return!0}return ee!==ee&&ue!==ue}},53184:function(Qt,He,p){"use strict";var O,U;function ee(ue,A,m){var w=function(ne,o){return ue.js_beautify(ne,o)};return w.js=ue.js_beautify,w.css=A.css_beautify,w.html=m.html_beautify,w.js_beautify=ue.js_beautify,w.css_beautify=A.css_beautify,w.html_beautify=m.html_beautify,w}O=[p(58553),p(87804),p(40998)],U=function(ue,A,m){return ee(ue,A,m)}.apply(He,O),U!==void 0&&(Qt.exports=U)},87804:function(Qt,He){var p,O;(function(){var U;(function(){"use strict";var ue=[,,function(ne){function o(g){this.__parent=g,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=[]}o.prototype.clone_empty=function(){var g=new o(this.__parent);return g.set_indent(this.__indent_count,this.__alignment_count),g},o.prototype.item=function(g){return g<0?this.__items[this.__items.length+g]:this.__items[g]},o.prototype.has_match=function(g){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(g))return!0;return!1},o.prototype.set_indent=function(g,_){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.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)},o.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},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var g=this.__parent.current_line;return g.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),g.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),g.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,g.__items[0]===" "&&(g.__items.splice(0,1),g.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(g){this.__items.push(g);var _=g.lastIndexOf(`
|
|
|
`);_!==-1?this.__character_count=g.length-_:this.__character_count+=g.length},o.prototype.pop=function(){var g=null;return this.is_empty()||(g=this.__items.pop(),this.__character_count-=g.length),g},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var g="";return this.is_empty()?this.__parent.indent_empty_lines&&(g=this.__parent.get_indent_string(this.__indent_count)):(g=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),g+=this.__items.join("")),g};function I(g,_){this.__cache=[""],this.__indent_size=g.indent_size,this.__indent_string=g.indent_char,g.indent_with_tabs||(this.__indent_string=new Array(g.indent_size+1).join(g.indent_char)),_=_||"",g.indent_level>0&&(_=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}I.prototype.get_indent_size=function(g,_){var S=this.__base_string_length;return _=_||0,g<0&&(S=0),S+=g*this.__indent_size,S+=_,S},I.prototype.get_indent_string=function(g,_){var S=this.__base_string;return _=_||0,g<0&&(g=0,S=""),_+=g*this.__indent_size,this.__ensure_cache(_),S+=this.__cache[_],S},I.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},I.prototype.__add_column=function(){var g=this.__cache.length,_=0,S="";this.__indent_size&&g>=this.__indent_size&&(_=Math.floor(g/this.__indent_size),g-=_*this.__indent_size,S=new Array(_+1).join(this.__indent_string)),g&&(S+=new Array(g+1).join(" ")),this.__cache.push(S)};function k(g,_){this.__indent_cache=new I(g,_),this.raw=!1,this._end_with_newline=g.end_with_newline,this.indent_size=g.indent_size,this.wrap_line_length=g.wrap_line_length,this.indent_empty_lines=g.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}k.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},k.prototype.get_line_number=function(){return this.__lines.length},k.prototype.get_indent_string=function(g,_){return this.__indent_cache.get_indent_string(g,_)},k.prototype.get_indent_size=function(g,_){return this.__indent_cache.get_indent_size(g,_)},k.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},k.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},k.prototype.get_code=function(g){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
|
|
|
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var S=this.__lines.join(`
|
|
|
`);return g!==`
|
|
|
`&&(S=S.replace(/[\n]/g,g)),S},k.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},k.prototype.set_indent=function(g,_){return g=g||0,_=_||0,this.next_line.set_indent(g,_),this.__lines.length>1?(this.current_line.set_indent(g,_),!0):(this.current_line.set_indent(),!1)},k.prototype.add_raw_token=function(g){for(var _=0;_<g.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(g.whitespace_before),this.current_line.push(g.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},k.prototype.add_token=function(g){this.__add_space_before_token(),this.current_line.push(g),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},k.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(" "))},k.prototype.remove_indent=function(g){for(var _=this.__lines.length;g<_;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},k.prototype.trim=function(g){for(g=g===void 0?!1:g,this.current_line.trim();g&&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},k.prototype.just_added_newline=function(){return this.current_line.is_empty()},k.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},k.prototype.ensure_empty_line_above=function(g,_){for(var S=this.__lines.length-2;S>=0;){var T=this.__lines[S];if(T.is_empty())break;if(T.item(0).indexOf(g)!==0&&T.item(-1)!==_){this.__lines.splice(S+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}S--}},ne.exports.Output=k},,,,function(ne){function o(g,_){this.raw_options=I(g,_),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"])}o.prototype._get_array=function(g,_){var S=this.raw_options[g],T=_||[];return typeof S=="object"?S!==null&&typeof S.concat=="function"&&(T=S.concat()):typeof S=="string"&&(T=S.split(/[^a-zA-Z0-9_\/\-]+/)),T},o.prototype._get_boolean=function(g,_){var S=this.raw_options[g],T=S===void 0?!!_:!!S;return T},o.prototype._get_characters=function(g,_){var S=this.raw_options[g],T=_||"";return typeof S=="string"&&(T=S.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),T},o.prototype._get_number=function(g,_){var S=this.raw_options[g];_=parseInt(_,10),isNaN(_)&&(_=0);var T=parseInt(S,10);return isNaN(T)&&(T=_),T},o.prototype._get_selection=function(g,_,S){var T=this._get_selection_list(g,_,S);if(T.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T[0]},o.prototype._get_selection_list=function(g,_,S){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(S=S||[_[0]],!this._is_valid_selection(S,_))throw new Error("Invalid Default Value!");var T=this._get_array(g,S);if(!this._is_valid_selection(T,_))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T},o.prototype._is_valid_selection=function(g,_){return g.length&&_.length&&!g.some(function(S){return _.indexOf(S)===-1})};function I(g,_){var S={};g=k(g);var T;for(T in g)T!==_&&(S[T]=g[T]);if(_&&g[_])for(T in g[_])S[T]=g[_][T];return S}function k(g){var _={},S;for(S in g){var T=S.replace(/-/g,"_");_[T]=g[S]}return _}ne.exports.Options=o,ne.exports.normalizeOpts=k,ne.exports.mergeOpts=I},,function(ne){var o=RegExp.prototype.hasOwnProperty("sticky");function I(k){this.__input=k||"",this.__input_length=this.__input.length,this.__position=0}I.prototype.restart=function(){this.__position=0},I.prototype.back=function(){this.__position>0&&(this.__position-=1)},I.prototype.hasNext=function(){return this.__position<this.__input_length},I.prototype.next=function(){var k=null;return this.hasNext()&&(k=this.__input.charAt(this.__position),this.__position+=1),k},I.prototype.peek=function(k){var g=null;return k=k||0,k+=this.__position,k>=0&&k<this.__input_length&&(g=this.__input.charAt(k)),g},I.prototype.__match=function(k,g){k.lastIndex=g;var _=k.exec(this.__input);return _&&!(o&&k.sticky)&&_.index!==g&&(_=null),_},I.prototype.test=function(k,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(k,g):!1},I.prototype.testChar=function(k,g){var _=this.peek(g);return k.lastIndex=0,_!==null&&k.test(_)},I.prototype.match=function(k){var g=this.__match(k,this.__position);return g?this.__position+=g[0].length:g=null,g},I.prototype.read=function(k,g,_){var S="",T;return k&&(T=this.match(k),T&&(S+=T[0])),g&&(T||!k)&&(S+=this.readUntil(g,_)),S},I.prototype.readUntil=function(k,g){var _="",S=this.__position;k.lastIndex=this.__position;var T=k.exec(this.__input);return T?(S=T.index,g&&(S+=T[0].length)):S=this.__input_length,_=this.__input.substring(this.__position,S),this.__position=S,_},I.prototype.readUntilAfter=function(k){return this.readUntil(k,!0)},I.prototype.get_regexp=function(k,g){var _=null,S="g";return g&&o&&(S="y"),typeof k=="string"&&k!==""?_=new RegExp(k,S):k&&(_=new RegExp(k.source,S)),_},I.prototype.get_literal_regexp=function(k){return RegExp(k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},I.prototype.peekUntilAfter=function(k){var g=this.__position,_=this.readUntilAfter(k);return this.__position=g,_},I.prototype.lookBack=function(k){var g=this.__position-1;return g>=k.length&&this.__input.substring(g-k.length,g).toLowerCase()===k},ne.exports.InputScanner=I},,,,,function(ne){function o(I,k){I=typeof I=="string"?I:I.source,k=typeof k=="string"?k:k.source,this.__directives_block_pattern=new RegExp(I+/ beautify( \w+[:]\w+)+ /.source+k,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(I+/\sbeautify\signore:end\s/.source+k,"g")}o.prototype.get_directives=function(I){if(!I.match(this.__directives_block_pattern))return null;var k={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(I);g;)k[g[1]]=g[2],g=this.__directive_pattern.exec(I);return k},o.prototype.readIgnored=function(I){return I.readUntilAfter(this.__directives_end_ignore_pattern)},ne.exports.Directives=o},,function(ne,o,I){var k=I(16).Beautifier,g=I(17).Options;function _(S,T){var N=new k(S,T);return N.beautify()}ne.exports=_,ne.exports.defaultOptions=function(){return new g}},function(ne,o,I){var k=I(17).Options,g=I(2).Output,_=I(8).InputScanner,S=I(13).Directives,T=new S(/\/\*/,/\*\//),N=/\r\n|[\r\n]/,ie=/\r\n|[\r\n]/g,z=/\s/,$=/(?:\s|\n)+/g,G=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,Q=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function L(D,Y){this._source_text=D||"",this._options=new k(Y),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"]}L.prototype.eatString=function(D){var Y="";for(this._ch=this._input.next();this._ch;){if(Y+=this._ch,this._ch==="\\")Y+=this._input.next();else if(D.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return Y},L.prototype.eatWhitespace=function(D){for(var Y=z.test(this._input.peek()),j=0;z.test(this._input.peek());)this._ch=this._input.next(),D&&this._ch===`
|
|
|
`&&(j===0||j<this._options.max_preserve_newlines)&&(j++,this._output.add_new_line(!0));return Y},L.prototype.foundNestedPseudoClass=function(){for(var D=0,Y=1,j=this._input.peek(Y);j;){if(j==="{")return!0;if(j==="(")D+=1;else if(j===")"){if(D===0)return!1;D-=1}else if(j===";"||j==="}")return!1;Y++,j=this._input.peek(Y)}return!1},L.prototype.print_string=function(D){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(D)},L.prototype.preserveSingleSpace=function(D){D&&(this._output.space_before_token=!0)},L.prototype.indent=function(){this._indentLevel++},L.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},L.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D=this._source_text,Y=this._options.eol;Y==="auto"&&(Y=`
|
|
|
`,D&&N.test(D||"")&&(Y=D.match(N)[0])),D=D.replace(ie,`
|
|
|
`);var j=D.match(/^[\t ]*/)[0];this._output=new g(this._options,j),this._input=new _(D),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var xe=0,Ce=!1,Se=!1,ge=!1,de=!1,W=!1,be=this._ch,F=!1,ce,q,y;ce=this._input.read($),q=ce!=="",y=be,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),be=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var x=this._input.read(G),Z=T.get_directives(x);Z&&Z.ignore==="start"&&(x+=T.readIgnored(this._input)),this.print_string(x),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(Q)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(q),this.print_string(this._ch);var me=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);me.match(/[ :]$/)&&(me=this.eatString(": ").replace(/\s+$/,""),this.print_string(me),this._output.space_before_token=!0),xe===0&&me.indexOf(":")!==-1&&(Se=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(q),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Ne=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Ne.match(/[ :]$/)&&(Ne=this.eatString(": ").replace(/\s+$/,""),this.print_string(Ne),this._output.space_before_token=!0),xe===0&&Ne.indexOf(":")!==-1?(Se=!0,this.indent()):Ne in this.NESTED_AT_RULE?(this._nestedLevel+=1,Ne in this.CONDITIONAL_GROUP_RULE&&(ge=!0)):xe===0&&!Se&&(de=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(q),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Se&&(Se=!1,this.outdent()),de=!1,ge?(ge=!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)):(y==="("?this._output.space_before_token=!1:y!==","&&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(),y==="{"&&this._output.trim(!0),Se&&(this.outdent(),Se=!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 Ue=0;Ue<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ue++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ue])){F=!0;break}(Ce||ge)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!de&&xe===0?(this.print_string(":"),Se||(Se=!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 ze=y==='"'||y==="'";this.preserveSingleSpace(ze||q),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")F=!1,xe===0?(Se&&(this.outdent(),Se=!1),de=!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(),xe++,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(")")),xe&&(xe--,this.outdent()));else{var et=!1;this._input.lookBack("with")&&(et=!0),this.preserveSingleSpace(q||et),this.print_string(this._ch),Se&&y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),W=!0):(this.eatWhitespace(),xe++,this.indent())}else if(this._ch===")")xe&&(xe--,this.outdent()),W&&this._input.peek()===";"&&this._options.selector_separator_newline&&(W=!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&&(!Se||W)&&xe===0&&!de?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Se&&xe===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&&z.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(q),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),z.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 pt=y==='"'||y==="'";this.preserveSingleSpace(pt||q),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&F&&this._output.add_new_line()}var gt=this._output.get_code(Y);return gt},ne.exports.Beautifier=L},function(ne,o,I){var k=I(6).Options;function g(_){k.call(this,_,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var S=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||S;var T=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var N=0;N<T.length;N++)T[N]!=="expand"?this.brace_style="collapse":this.brace_style=T[N]}g.prototype=new k,ne.exports.Options=g}],A={};function m(ne){var o=A[ne];if(o!==void 0)return o.exports;var I=A[ne]={exports:{}};return ue[ne](I,I.exports,m),I.exports}var w=m(15);U=w})();var ee=U;p=[],O=function(){return{css_beautify:ee}}.apply(He,p),O!==void 0&&(Qt.exports=O)})()},40998:function(Qt,He,p){var O,U;(function(){var ee;(function(){"use strict";var w=[,,function(k){function g(T){this.__parent=T,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=[]}g.prototype.clone_empty=function(){var T=new g(this.__parent);return T.set_indent(this.__indent_count,this.__alignment_count),T},g.prototype.item=function(T){return T<0?this.__items[this.__items.length+T]:this.__items[T]},g.prototype.has_match=function(T){for(var N=this.__items.length-1;N>=0;N--)if(this.__items[N].match(T))return!0;return!1},g.prototype.set_indent=function(T,N){this.is_empty()&&(this.__indent_count=T||0,this.__alignment_count=N||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},g.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)},g.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},g.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var T=this.__parent.current_line;return T.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),T.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),T.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,T.__items[0]===" "&&(T.__items.splice(0,1),T.__character_count-=1),!0}return!1},g.prototype.is_empty=function(){return this.__items.length===0},g.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},g.prototype.push=function(T){this.__items.push(T);var N=T.lastIndexOf(`
|
|
|
`);N!==-1?this.__character_count=T.length-N:this.__character_count+=T.length},g.prototype.pop=function(){var T=null;return this.is_empty()||(T=this.__items.pop(),this.__character_count-=T.length),T},g.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},g.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},g.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},g.prototype.toString=function(){var T="";return this.is_empty()?this.__parent.indent_empty_lines&&(T=this.__parent.get_indent_string(this.__indent_count)):(T=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),T+=this.__items.join("")),T};function _(T,N){this.__cache=[""],this.__indent_size=T.indent_size,this.__indent_string=T.indent_char,T.indent_with_tabs||(this.__indent_string=new Array(T.indent_size+1).join(T.indent_char)),N=N||"",T.indent_level>0&&(N=new Array(T.indent_level+1).join(this.__indent_string)),this.__base_string=N,this.__base_string_length=N.length}_.prototype.get_indent_size=function(T,N){var ie=this.__base_string_length;return N=N||0,T<0&&(ie=0),ie+=T*this.__indent_size,ie+=N,ie},_.prototype.get_indent_string=function(T,N){var ie=this.__base_string;return N=N||0,T<0&&(T=0,ie=""),N+=T*this.__indent_size,this.__ensure_cache(N),ie+=this.__cache[N],ie},_.prototype.__ensure_cache=function(T){for(;T>=this.__cache.length;)this.__add_column()},_.prototype.__add_column=function(){var T=this.__cache.length,N=0,ie="";this.__indent_size&&T>=this.__indent_size&&(N=Math.floor(T/this.__indent_size),T-=N*this.__indent_size,ie=new Array(N+1).join(this.__indent_string)),T&&(ie+=new Array(T+1).join(" ")),this.__cache.push(ie)};function S(T,N){this.__indent_cache=new _(T,N),this.raw=!1,this._end_with_newline=T.end_with_newline,this.indent_size=T.indent_size,this.wrap_line_length=T.wrap_line_length,this.indent_empty_lines=T.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new g(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}S.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},S.prototype.get_line_number=function(){return this.__lines.length},S.prototype.get_indent_string=function(T,N){return this.__indent_cache.get_indent_string(T,N)},S.prototype.get_indent_size=function(T,N){return this.__indent_cache.get_indent_size(T,N)},S.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},S.prototype.add_new_line=function(T){return this.is_empty()||!T&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},S.prototype.get_code=function(T){this.trim(!0);var N=this.current_line.pop();N&&(N[N.length-1]===`
|
|
|
`&&(N=N.replace(/\n+$/g,"")),this.current_line.push(N)),this._end_with_newline&&this.__add_outputline();var ie=this.__lines.join(`
|
|
|
`);return T!==`
|
|
|
`&&(ie=ie.replace(/[\n]/g,T)),ie},S.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},S.prototype.set_indent=function(T,N){return T=T||0,N=N||0,this.next_line.set_indent(T,N),this.__lines.length>1?(this.current_line.set_indent(T,N),!0):(this.current_line.set_indent(),!1)},S.prototype.add_raw_token=function(T){for(var N=0;N<T.newlines;N++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(T.whitespace_before),this.current_line.push(T.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},S.prototype.add_token=function(T){this.__add_space_before_token(),this.current_line.push(T),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},S.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(" "))},S.prototype.remove_indent=function(T){for(var N=this.__lines.length;T<N;)this.__lines[T]._remove_indent(),T++;this.current_line._remove_wrap_indent()},S.prototype.trim=function(T){for(T=T===void 0?!1:T,this.current_line.trim();T&&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},S.prototype.just_added_newline=function(){return this.current_line.is_empty()},S.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},S.prototype.ensure_empty_line_above=function(T,N){for(var ie=this.__lines.length-2;ie>=0;){var z=this.__lines[ie];if(z.is_empty())break;if(z.item(0).indexOf(T)!==0&&z.item(-1)!==N){this.__lines.splice(ie+1,0,new g(this)),this.previous_line=this.__lines[this.__lines.length-2];break}ie--}},k.exports.Output=S},function(k){function g(_,S,T,N){this.type=_,this.text=S,this.comments_before=null,this.newlines=T||0,this.whitespace_before=N||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}k.exports.Token=g},,,function(k){function g(T,N){this.raw_options=_(T,N),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"])}g.prototype._get_array=function(T,N){var ie=this.raw_options[T],z=N||[];return typeof ie=="object"?ie!==null&&typeof ie.concat=="function"&&(z=ie.concat()):typeof ie=="string"&&(z=ie.split(/[^a-zA-Z0-9_\/\-]+/)),z},g.prototype._get_boolean=function(T,N){var ie=this.raw_options[T],z=ie===void 0?!!N:!!ie;return z},g.prototype._get_characters=function(T,N){var ie=this.raw_options[T],z=N||"";return typeof ie=="string"&&(z=ie.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),z},g.prototype._get_number=function(T,N){var ie=this.raw_options[T];N=parseInt(N,10),isNaN(N)&&(N=0);var z=parseInt(ie,10);return isNaN(z)&&(z=N),z},g.prototype._get_selection=function(T,N,ie){var z=this._get_selection_list(T,N,ie);if(z.length!==1)throw new Error("Invalid Option Value: The option '"+T+`' can only be one of the following values:
|
|
|
`+N+`
|
|
|
You passed in: '`+this.raw_options[T]+"'");return z[0]},g.prototype._get_selection_list=function(T,N,ie){if(!N||N.length===0)throw new Error("Selection list cannot be empty.");if(ie=ie||[N[0]],!this._is_valid_selection(ie,N))throw new Error("Invalid Default Value!");var z=this._get_array(T,ie);if(!this._is_valid_selection(z,N))throw new Error("Invalid Option Value: The option '"+T+`' can contain only the following values:
|
|
|
`+N+`
|
|
|
You passed in: '`+this.raw_options[T]+"'");return z},g.prototype._is_valid_selection=function(T,N){return T.length&&N.length&&!T.some(function(ie){return N.indexOf(ie)===-1})};function _(T,N){var ie={};T=S(T);var z;for(z in T)z!==N&&(ie[z]=T[z]);if(N&&T[N])for(z in T[N])ie[z]=T[N][z];return ie}function S(T){var N={},ie;for(ie in T){var z=ie.replace(/-/g,"_");N[z]=T[ie]}return N}k.exports.Options=g,k.exports.normalizeOpts=S,k.exports.mergeOpts=_},,function(k){var g=RegExp.prototype.hasOwnProperty("sticky");function _(S){this.__input=S||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position<this.__input_length},_.prototype.next=function(){var S=null;return this.hasNext()&&(S=this.__input.charAt(this.__position),this.__position+=1),S},_.prototype.peek=function(S){var T=null;return S=S||0,S+=this.__position,S>=0&&S<this.__input_length&&(T=this.__input.charAt(S)),T},_.prototype.__match=function(S,T){S.lastIndex=T;var N=S.exec(this.__input);return N&&!(g&&S.sticky)&&N.index!==T&&(N=null),N},_.prototype.test=function(S,T){return T=T||0,T+=this.__position,T>=0&&T<this.__input_length?!!this.__match(S,T):!1},_.prototype.testChar=function(S,T){var N=this.peek(T);return S.lastIndex=0,N!==null&&S.test(N)},_.prototype.match=function(S){var T=this.__match(S,this.__position);return T?this.__position+=T[0].length:T=null,T},_.prototype.read=function(S,T,N){var ie="",z;return S&&(z=this.match(S),z&&(ie+=z[0])),T&&(z||!S)&&(ie+=this.readUntil(T,N)),ie},_.prototype.readUntil=function(S,T){var N="",ie=this.__position;S.lastIndex=this.__position;var z=S.exec(this.__input);return z?(ie=z.index,T&&(ie+=z[0].length)):ie=this.__input_length,N=this.__input.substring(this.__position,ie),this.__position=ie,N},_.prototype.readUntilAfter=function(S){return this.readUntil(S,!0)},_.prototype.get_regexp=function(S,T){var N=null,ie="g";return T&&g&&(ie="y"),typeof S=="string"&&S!==""?N=new RegExp(S,ie):S&&(N=new RegExp(S.source,ie)),N},_.prototype.get_literal_regexp=function(S){return RegExp(S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},_.prototype.peekUntilAfter=function(S){var T=this.__position,N=this.readUntilAfter(S);return this.__position=T,N},_.prototype.lookBack=function(S){var T=this.__position-1;return T>=S.length&&this.__input.substring(T-S.length,T).toLowerCase()===S},k.exports.InputScanner=_},function(k,g,_){var S=_(8).InputScanner,T=_(3).Token,N=_(10).TokenStream,ie=_(11).WhitespacePattern,z={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},$=function(G,Q){this._input=new S(G),this._options=Q||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new ie(this._input)};$.prototype.tokenize=function(){this._input.restart(),this.__tokens=new N,this._reset();for(var G,Q=new T(z.START,""),L=null,D=[],Y=new N;Q.type!==z.EOF;){for(G=this._get_next_token(Q,L);this._is_comment(G);)Y.add(G),G=this._get_next_token(Q,L);Y.isEmpty()||(G.comments_before=Y,Y=new N),G.parent=L,this._is_opening(G)?(D.push(L),L=G):L&&this._is_closing(G,L)&&(G.opened=L,L.closed=G,L=D.pop(),G.parent=L),G.previous=Q,Q.next=G,this.__tokens.add(G),Q=G}return this.__tokens},$.prototype._is_first_token=function(){return this.__tokens.isEmpty()},$.prototype._reset=function(){},$.prototype._get_next_token=function(G,Q){this._readWhitespace();var L=this._input.read(/.+/g);return L?this._create_token(z.RAW,L):this._create_token(z.EOF,"")},$.prototype._is_comment=function(G){return!1},$.prototype._is_opening=function(G){return!1},$.prototype._is_closing=function(G,Q){return!1},$.prototype._create_token=function(G,Q){var L=new T(G,Q,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return L},$.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},k.exports.Tokenizer=$,k.exports.TOKEN=z},function(k){function g(_){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=_}g.prototype.restart=function(){this.__position=0},g.prototype.isEmpty=function(){return this.__tokens_length===0},g.prototype.hasNext=function(){return this.__position<this.__tokens_length},g.prototype.next=function(){var _=null;return this.hasNext()&&(_=this.__tokens[this.__position],this.__position+=1),_},g.prototype.peek=function(_){var S=null;return _=_||0,_+=this.__position,_>=0&&_<this.__tokens_length&&(S=this.__tokens[_]),S},g.prototype.add=function(_){this.__parent_token&&(_.parent=this.__parent_token),this.__tokens.push(_),this.__tokens_length+=1},k.exports.TokenStream=g},function(k,g,_){var S=_(12).Pattern;function T(N,ie){S.call(this,N,ie),ie?this._line_regexp=this._input.get_regexp(ie._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}T.prototype=new S,T.prototype.__set_whitespace_patterns=function(N,ie){N+="\\t ",ie+="\\n\\r",this._match_pattern=this._input.get_regexp("["+N+ie+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+ie+"]")},T.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var N=this._input.read(this._match_pattern);if(N===" ")this.whitespace_before_token=" ";else if(N){var ie=this.__split(this._newline_regexp,N);this.newline_count=ie.length-1,this.whitespace_before_token=ie[this.newline_count]}return N},T.prototype.matching=function(N,ie){var z=this._create();return z.__set_whitespace_patterns(N,ie),z._update(),z},T.prototype._create=function(){return new T(this._input,this)},T.prototype.__split=function(N,ie){N.lastIndex=0;for(var z=0,$=[],G=N.exec(ie);G;)$.push(ie.substring(z,G.index)),z=G.index+G[0].length,G=N.exec(ie);return z<ie.length?$.push(ie.substring(z,ie.length)):$.push(""),$},k.exports.WhitespacePattern=T},function(k){function g(_,S){this._input=_,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,S&&(this._starting_pattern=this._input.get_regexp(S._starting_pattern,!0),this._match_pattern=this._input.get_regexp(S._match_pattern,!0),this._until_pattern=this._input.get_regexp(S._until_pattern),this._until_after=S._until_after)}g.prototype.read=function(){var _=this._input.read(this._starting_pattern);return(!this._starting_pattern||_)&&(_+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),_},g.prototype.read_match=function(){return this._input.match(this._match_pattern)},g.prototype.until_after=function(_){var S=this._create();return S._until_after=!0,S._until_pattern=this._input.get_regexp(_),S._update(),S},g.prototype.until=function(_){var S=this._create();return S._until_after=!1,S._until_pattern=this._input.get_regexp(_),S._update(),S},g.prototype.starting_with=function(_){var S=this._create();return S._starting_pattern=this._input.get_regexp(_,!0),S._update(),S},g.prototype.matching=function(_){var S=this._create();return S._match_pattern=this._input.get_regexp(_,!0),S._update(),S},g.prototype._create=function(){return new g(this._input,this)},g.prototype._update=function(){},k.exports.Pattern=g},function(k){function g(_,S){_=typeof _=="string"?_:_.source,S=typeof S=="string"?S:S.source,this.__directives_block_pattern=new RegExp(_+/ beautify( \w+[:]\w+)+ /.source+S,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(_+/\sbeautify\signore:end\s/.source+S,"g")}g.prototype.get_directives=function(_){if(!_.match(this.__directives_block_pattern))return null;var S={};this.__directive_pattern.lastIndex=0;for(var T=this.__directive_pattern.exec(_);T;)S[T[1]]=T[2],T=this.__directive_pattern.exec(_);return S},g.prototype.readIgnored=function(_){return _.readUntilAfter(this.__directives_end_ignore_pattern)},k.exports.Directives=g},function(k,g,_){var S=_(12).Pattern,T={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function N(ie,z){S.call(this,ie,z),this.__template_pattern=null,this._disabled=Object.assign({},T),this._excluded=Object.assign({},T),z&&(this.__template_pattern=this._input.get_regexp(z.__template_pattern),this._excluded=Object.assign(this._excluded,z._excluded),this._disabled=Object.assign(this._disabled,z._disabled));var $=new S(ie);this.__patterns={handlebars_comment:$.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:$.starting_with(/{{{/).until_after(/}}}/),handlebars:$.starting_with(/{{/).until_after(/}}/),php:$.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:$.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:$.starting_with(/{%/).until_after(/%}/),django_value:$.starting_with(/{{/).until_after(/}}/),django_comment:$.starting_with(/{#/).until_after(/#}/),smarty:$.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:$.starting_with(/{\*/).until_after(/\*}/),smarty_literal:$.starting_with(/{literal}/).until_after(/{\/literal}/)}}N.prototype=new S,N.prototype._create=function(){return new N(this._input,this)},N.prototype._update=function(){this.__set_templated_pattern()},N.prototype.disable=function(ie){var z=this._create();return z._disabled[ie]=!0,z._update(),z},N.prototype.read_options=function(ie){var z=this._create();for(var $ in T)z._disabled[$]=ie.templating.indexOf($)===-1;return z._update(),z},N.prototype.exclude=function(ie){var z=this._create();return z._excluded[ie]=!0,z._update(),z},N.prototype.read=function(){var ie="";this._match_pattern?ie=this._input.read(this._starting_pattern):ie=this._input.read(this._starting_pattern,this.__template_pattern);for(var z=this._read_template();z;)this._match_pattern?z+=this._input.read(this._match_pattern):z+=this._input.readUntil(this.__template_pattern),ie+=z,z=this._read_template();return this._until_after&&(ie+=this._input.readUntilAfter(this._until_pattern)),ie},N.prototype.__set_templated_pattern=function(){var ie=[];this._disabled.php||ie.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||ie.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||ie.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||ie.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(ie.push(this.__patterns.django._starting_pattern.source),ie.push(this.__patterns.django_value._starting_pattern.source),ie.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||ie.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&ie.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+ie.join("|")+")")},N.prototype._read_template=function(){var ie="",z=this._input.peek();if(z==="<"){var $=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&$==="?"&&(ie=ie||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&$==="%"&&(ie=ie||this.__patterns.erb.read())}else z==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(ie=ie||this.__patterns.handlebars_comment.read(),ie=ie||this.__patterns.handlebars_unescaped.read(),ie=ie||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(ie=ie||this.__patterns.django_value.read()),this._excluded.django||(ie=ie||this.__patterns.django_comment.read(),ie=ie||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(ie=ie||this.__patterns.smarty_comment.read(),ie=ie||this.__patterns.smarty_literal.read(),ie=ie||this.__patterns.smarty.read()));return ie},k.exports.TemplatablePattern=N},,,,function(k,g,_){var S=_(19).Beautifier,T=_(20).Options;function N(ie,z,$,G){var Q=new S(ie,z,$,G);return Q.beautify()}k.exports=N,k.exports.defaultOptions=function(){return new T}},function(k,g,_){var S=_(20).Options,T=_(2).Output,N=_(21).Tokenizer,ie=_(21).TOKEN,z=/\r\n|[\r\n]/,$=/\r\n|[\r\n]/g,G=function(de,W){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=de.max_preserve_newlines,this.preserve_newlines=de.preserve_newlines,this._output=new T(de,W)};G.prototype.current_line_has_match=function(de){return this._output.current_line.has_match(de)},G.prototype.set_space_before_token=function(de,W){this._output.space_before_token=de,this._output.non_breaking_space=W},G.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},G.prototype.add_raw_token=function(de){this._output.add_raw_token(de)},G.prototype.print_preserved_newlines=function(de){var W=0;de.type!==ie.TEXT&&de.previous.type!==ie.TEXT&&(W=de.newlines?1:0),this.preserve_newlines&&(W=de.newlines<this.max_preserve_newlines+1?de.newlines:this.max_preserve_newlines+1);for(var be=0;be<W;be++)this.print_newline(be>0);return W!==0},G.prototype.traverse_whitespace=function(de){return de.whitespace_before||de.newlines?(this.print_preserved_newlines(de)||(this._output.space_before_token=!0),!0):!1},G.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},G.prototype.print_newline=function(de){this._output.add_new_line(de)},G.prototype.print_token=function(de){de.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(de.text))},G.prototype.indent=function(){this.indent_level++},G.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},G.prototype.get_full_indent=function(de){return de=this.indent_level+(de||0),de<1?"":this._output.get_indent_string(de)};var Q=function(de){for(var W=null,be=de.next;be.type!==ie.EOF&&de.closed!==be;){if(be.type===ie.ATTRIBUTE&&be.text==="type"){be.next&&be.next.type===ie.EQUALS&&be.next.next&&be.next.next.type===ie.VALUE&&(W=be.next.next.text);break}be=be.next}return W},L=function(de,W){var be=null,F=null;return W.closed?(de==="script"?be="text/javascript":de==="style"&&(be="text/css"),be=Q(W)||be,be.search("text/css")>-1?F="css":be.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?F="javascript":be.search(/(text|application|dojo)\/(x-)?(html)/)>-1?F="html":be.search(/test\/null/)>-1&&(F="null"),F):null};function D(de,W){return W.indexOf(de)!==-1}function Y(de,W,be){this.parent=de||null,this.tag=W?W.tag_name:"",this.indent_level=be||0,this.parser_token=W||null}function j(de){this._printer=de,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(de){var W=new Y(this._current_frame,de,this._printer.indent_level);this._current_frame=W},j.prototype._try_pop_frame=function(de){var W=null;return de&&(W=de.parser_token,this._printer.indent_level=de.indent_level,this._current_frame=de.parent),W},j.prototype._get_frame=function(de,W){for(var be=this._current_frame;be&&de.indexOf(be.tag)===-1;){if(W&&W.indexOf(be.tag)!==-1){be=null;break}be=be.parent}return be},j.prototype.try_pop=function(de,W){var be=this._get_frame([de],W);return this._try_pop_frame(be)},j.prototype.indent_to_tag=function(de){var W=this._get_frame(de);W&&(this._printer.indent_level=W.indent_level)};function xe(de,W,be,F){this._source_text=de||"",W=W||{},this._js_beautify=be,this._css_beautify=F,this._tag_stack=null;var ce=new S(W,"html");this._options=ce,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"}xe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var de=this._source_text,W=this._options.eol;this._options.eol==="auto"&&(W=`
|
|
|
`,de&&z.test(de)&&(W=de.match(z)[0])),de=de.replace($,`
|
|
|
`);var be=de.match(/^[\t ]*/)[0],F={text:"",type:""},ce=new Ce(this._options),q=new G(this._options,be),y=new N(de,this._options).tokenize();this._tag_stack=new j(q);for(var x=null,Z=y.next();Z.type!==ie.EOF;)Z.type===ie.TAG_OPEN||Z.type===ie.COMMENT?(x=this._handle_tag_open(q,Z,ce,F,y),ce=x):Z.type===ie.ATTRIBUTE||Z.type===ie.EQUALS||Z.type===ie.VALUE||Z.type===ie.TEXT&&!ce.tag_complete?x=this._handle_inside_tag(q,Z,ce,F):Z.type===ie.TAG_CLOSE?x=this._handle_tag_close(q,Z,ce):Z.type===ie.TEXT?x=this._handle_text(q,Z,ce):Z.type===ie.CONTROL_FLOW_OPEN?x=this._handle_control_flow_open(q,Z):Z.type===ie.CONTROL_FLOW_CLOSE?x=this._handle_control_flow_close(q,Z):q.add_raw_token(Z),F=x,Z=y.next();var me=q._output.get_code(W);return me},xe.prototype._handle_control_flow_open=function(de,W){var be={text:W.text,type:W.type};return de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),W.newlines?de.print_preserved_newlines(W):de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),de.print_token(W),de.indent(),be},xe.prototype._handle_control_flow_close=function(de,W){var be={text:W.text,type:W.type};return de.deindent(),W.newlines?de.print_preserved_newlines(W):de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),de.print_token(W),be},xe.prototype._handle_tag_close=function(de,W,be){var F={text:W.text,type:W.type};return de.alignment_size=0,be.tag_complete=!0,de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),be.is_unformatted?de.add_raw_token(W):(be.tag_start_char==="<"&&(de.set_space_before_token(W.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&be.has_wrapped_attrs&&de.print_newline(!1)),de.print_token(W)),be.indent_content&&!(be.is_unformatted||be.is_content_unformatted)&&(de.indent(),be.indent_content=!1),!be.is_inline_element&&!(be.is_unformatted||be.is_content_unformatted)&&de.set_wrap_point(),F},xe.prototype._handle_inside_tag=function(de,W,be,F){var ce=be.has_wrapped_attrs,q={text:W.text,type:W.type};return de.set_space_before_token(W.newlines||W.whitespace_before!=="",!0),be.is_unformatted?de.add_raw_token(W):be.tag_start_char==="{"&&W.type===ie.TEXT?de.print_preserved_newlines(W)?(W.newlines=0,de.add_raw_token(W)):de.print_token(W):(W.type===ie.ATTRIBUTE?de.set_space_before_token(!0):(W.type===ie.EQUALS||W.type===ie.VALUE&&W.previous.type===ie.EQUALS)&&de.set_space_before_token(!1),W.type===ie.ATTRIBUTE&&be.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(de.traverse_whitespace(W),ce=ce||W.newlines!==0),this._is_wrap_attributes_force&&be.attr_count>=this._options.wrap_attributes_min_attrs&&(F.type!==ie.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(de.print_newline(!1),ce=!0)),de.print_token(W),ce=ce||de.previous_token_wrapped(),be.has_wrapped_attrs=ce),q},xe.prototype._handle_text=function(de,W,be){var F={text:W.text,type:"TK_CONTENT"};return be.custom_beautifier_name?this._print_custom_beatifier_text(de,W,be):be.is_unformatted||be.is_content_unformatted?de.add_raw_token(W):(de.traverse_whitespace(W),de.print_token(W)),F},xe.prototype._print_custom_beatifier_text=function(de,W,be){var F=this;if(W.text!==""){var ce=W.text,q,y=1,x="",Z="";be.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?q=this._js_beautify:be.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?q=this._css_beautify:be.custom_beautifier_name==="html"&&(q=function(pt,gt){var at=new xe(pt,gt,F._js_beautify,F._css_beautify);return at.beautify()}),this._options.indent_scripts==="keep"?y=0:this._options.indent_scripts==="separate"&&(y=-de.indent_level);var me=de.get_full_indent(y);if(ce=ce.replace(/\n[ \t]*$/,""),be.custom_beautifier_name!=="html"&&ce[0]==="<"&&ce.match(/^(<!--|<!\[CDATA\[)/)){var Ne=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ce);if(!Ne){de.add_raw_token(W);return}x=me+Ne[1]+`
|
|
|
`,ce=Ne[4],Ne[5]&&(Z=me+Ne[5]),ce=ce.replace(/\n[ \t]*$/,""),(Ne[2]||Ne[3].indexOf(`
|
|
|
`)!==-1)&&(Ne=Ne[3].match(/[ \t]+$/),Ne&&(W.whitespace_before=Ne[0]))}if(ce)if(q){var Ue=function(){this.eol=`
|
|
|
`};Ue.prototype=this._options.raw_options;var ze=new Ue;ce=q(me+ce,ze)}else{var et=W.whitespace_before;et&&(ce=ce.replace(new RegExp(`
|
|
|
(`+et+")?","g"),`
|
|
|
`)),ce=me+ce.replace(/\n/g,`
|
|
|
`+me)}x&&(ce?ce=x+ce+`
|
|
|
`+Z:ce=x+Z),de.print_newline(!1),ce&&(W.text=ce,W.whitespace_before="",W.newlines=0,de.add_raw_token(W),de.print_newline(!0))}},xe.prototype._handle_tag_open=function(de,W,be,F,ce){var q=this._get_tag_open_token(W);if((be.is_unformatted||be.is_content_unformatted)&&!be.is_empty_element&&W.type===ie.TAG_OPEN&&!q.is_start_tag?(de.add_raw_token(W),q.start_tag_token=this._tag_stack.try_pop(q.tag_name)):(de.traverse_whitespace(W),this._set_tag_position(de,W,q,be,F),q.is_inline_element||de.set_wrap_point(),de.print_token(W)),q.is_start_tag&&this._is_wrap_attributes_force){var y=0,x;do x=ce.peek(y),x.type===ie.ATTRIBUTE&&(q.attr_count+=1),y+=1;while(x.type!==ie.EOF&&x.type!==ie.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(q.alignment_size=W.text.length+1),!q.tag_complete&&!q.is_unformatted&&(de.alignment_size=q.alignment_size),q};var Ce=function(de,W,be){if(this.parent=W||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="",!be)this.tag_complete=!0;else{var F;this.tag_start_char=be.text[0],this.text=be.text,this.tag_start_char==="<"?(F=be.text.match(/^<([^\s>]*)/),this.tag_check=F?F[1]:""):(F=be.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=F?F[1]:"",(be.text.startsWith("{{#>")||be.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&be.next!==null?this.tag_check=be.next.text.split(" ")[0]:this.tag_check=be.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),be.type===ie.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||be.closed&&be.closed.text==="/>";var ce=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ce=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!de.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ce)))}};xe.prototype._get_tag_open_token=function(de){var W=new Ce(this._options,this._tag_stack.get_parser_token(),de);return W.alignment_size=this._options.wrap_attributes_indent_size,W.is_end_tag=W.is_end_tag||D(W.tag_check,this._options.void_elements),W.is_empty_element=W.tag_complete||W.is_start_tag&&W.is_end_tag,W.is_unformatted=!W.tag_complete&&D(W.tag_check,this._options.unformatted),W.is_content_unformatted=!W.is_empty_element&&D(W.tag_check,this._options.content_unformatted),W.is_inline_element=D(W.tag_name,this._options.inline)||this._options.inline_custom_elements&&W.tag_name.includes("-")||W.tag_start_char==="{",W},xe.prototype._set_tag_position=function(de,W,be,F,ce){if(be.is_empty_element||(be.is_end_tag?be.start_tag_token=this._tag_stack.try_pop(be.tag_name):(this._do_optional_end_element(be)&&(be.is_inline_element||de.print_newline(!1)),this._tag_stack.record_tag(be),(be.tag_name==="script"||be.tag_name==="style")&&!(be.is_unformatted||be.is_content_unformatted)&&(be.custom_beautifier_name=L(be.tag_check,W)))),D(be.tag_check,this._options.extra_liners)&&(de.print_newline(!1),de._output.just_added_blankline()||de.print_newline(!0)),be.is_empty_element){if(be.tag_start_char==="{"&&be.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),be.indent_content=!0;var q=de.current_line_has_match(/{{#if/);q||de.print_newline(!1)}be.tag_name==="!--"&&ce.type===ie.TAG_CLOSE&&F.is_end_tag&&be.text.indexOf(`
|
|
|
`)===-1||(be.is_inline_element||be.is_unformatted||de.print_newline(!1),this._calcluate_parent_multiline(de,be))}else if(be.is_end_tag){var y=!1;y=be.start_tag_token&&be.start_tag_token.multiline_content,y=y||!be.is_inline_element&&!(F.is_inline_element||F.is_unformatted)&&!(ce.type===ie.TAG_CLOSE&&be.start_tag_token===F)&&ce.type!=="TK_CONTENT",(be.is_content_unformatted||be.is_unformatted)&&(y=!1),y&&de.print_newline(!1)}else be.indent_content=!be.custom_beautifier_name,be.tag_start_char==="<"&&(be.tag_name==="html"?be.indent_content=this._options.indent_inner_html:be.tag_name==="head"?be.indent_content=this._options.indent_head_inner_html:be.tag_name==="body"&&(be.indent_content=this._options.indent_body_inner_html)),!(be.is_inline_element||be.is_unformatted)&&(ce.type!=="TK_CONTENT"||be.is_content_unformatted)&&de.print_newline(!1),this._calcluate_parent_multiline(de,be)},xe.prototype._calcluate_parent_multiline=function(de,W){W.parent&&de._output.just_added_newline()&&!((W.is_inline_element||W.is_unformatted)&&W.parent.is_inline_element)&&(W.parent.multiline_content=!0)};var Se=["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"],ge=["a","audio","del","ins","map","noscript","video"];xe.prototype._do_optional_end_element=function(de){var W=null;if(!(de.is_empty_element||!de.is_start_tag||!de.parent)){if(de.tag_name==="body")W=W||this._tag_stack.try_pop("head");else if(de.tag_name==="li")W=W||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(de.tag_name==="dd"||de.tag_name==="dt")W=W||this._tag_stack.try_pop("dt",["dl"]),W=W||this._tag_stack.try_pop("dd",["dl"]);else if(de.parent.tag_name==="p"&&Se.indexOf(de.tag_name)!==-1){var be=de.parent.parent;(!be||ge.indexOf(be.tag_name)===-1)&&(W=W||this._tag_stack.try_pop("p"))}else de.tag_name==="rp"||de.tag_name==="rt"?(W=W||this._tag_stack.try_pop("rt",["ruby","rtc"]),W=W||this._tag_stack.try_pop("rp",["ruby","rtc"])):de.tag_name==="optgroup"?W=W||this._tag_stack.try_pop("optgroup",["select"]):de.tag_name==="option"?W=W||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):de.tag_name==="colgroup"?W=W||this._tag_stack.try_pop("caption",["table"]):de.tag_name==="thead"?(W=W||this._tag_stack.try_pop("caption",["table"]),W=W||this._tag_stack.try_pop("colgroup",["table"])):de.tag_name==="tbody"||de.tag_name==="tfoot"?(W=W||this._tag_stack.try_pop("caption",["table"]),W=W||this._tag_stack.try_pop("colgroup",["table"]),W=W||this._tag_stack.try_pop("thead",["table"]),W=W||this._tag_stack.try_pop("tbody",["table"])):de.tag_name==="tr"?(W=W||this._tag_stack.try_pop("caption",["table"]),W=W||this._tag_stack.try_pop("colgroup",["table"]),W=W||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(de.tag_name==="th"||de.tag_name==="td")&&(W=W||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),W=W||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return de.parent=this._tag_stack.get_parser_token(),W}},k.exports.Beautifier=xe},function(k,g,_){var S=_(6).Options;function T(N){S.call(this,N,"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"])}T.prototype=new S,k.exports.Options=T},function(k,g,_){var S=_(9).Tokenizer,T=_(9).TOKEN,N=_(13).Directives,ie=_(14).TemplatablePattern,z=_(12).Pattern,$={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:T.START,RAW:T.RAW,EOF:T.EOF},G=new N(/<\!--/,/-->/),Q=function(L,D){S.call(this,L,D),this._current_tag_name="";var Y=new ie(this._input).read_options(this._options),j=new z(this._input);if(this.__patterns={word:Y.until(/[\n\r\t <]/),word_control_flow_close_excluded:Y.until(/[\n\r\t <}]/),single_quote:Y.until_after(/'/),double_quote:Y.until_after(/"/),attribute:Y.until(/[\n\r\t =>]|\/>/),element_name:Y.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 xe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=j.matching(xe).until_after(xe)}};Q.prototype=new S,Q.prototype._is_comment=function(L){return!1},Q.prototype._is_opening=function(L){return L.type===$.TAG_OPEN||L.type===$.CONTROL_FLOW_OPEN},Q.prototype._is_closing=function(L,D){return L.type===$.TAG_CLOSE&&D&&((L.text===">"||L.text==="/>")&&D.text[0]==="<"||L.text==="}}"&&D.text[0]==="{"&&D.text[1]==="{")||L.type===$.CONTROL_FLOW_CLOSE&&L.text==="}"&&D.text.endsWith("{")},Q.prototype._reset=function(){this._current_tag_name=""},Q.prototype._get_next_token=function(L,D){var Y=null;this._readWhitespace();var j=this._input.peek();return j===null?this._create_token($.EOF,""):(Y=Y||this._read_open_handlebars(j,D),Y=Y||this._read_attribute(j,L,D),Y=Y||this._read_close(j,D),Y=Y||this._read_script_and_style(j,L),Y=Y||this._read_control_flows(j,D),Y=Y||this._read_raw_content(j,L,D),Y=Y||this._read_content_word(j,D),Y=Y||this._read_comment_or_cdata(j),Y=Y||this._read_processing(j),Y=Y||this._read_open(j,D),Y=Y||this._create_token($.UNKNOWN,this._input.next()),Y)},Q.prototype._read_comment_or_cdata=function(L){var D=null,Y=null,j=null;if(L==="<"){var xe=this._input.peek(1);xe==="!"&&(Y=this.__patterns.comment.read(),Y?(j=G.get_directives(Y),j&&j.ignore==="start"&&(Y+=G.readIgnored(this._input))):Y=this.__patterns.cdata.read()),Y&&(D=this._create_token($.COMMENT,Y),D.directives=j)}return D},Q.prototype._read_processing=function(L){var D=null,Y=null,j=null;if(L==="<"){var xe=this._input.peek(1);(xe==="!"||xe==="?")&&(Y=this.__patterns.conditional_comment.read(),Y=Y||this.__patterns.processing.read()),Y&&(D=this._create_token($.COMMENT,Y),D.directives=j)}return D},Q.prototype._read_open=function(L,D){var Y=null,j=null;return(!D||D.type===$.CONTROL_FLOW_OPEN)&&L==="<"&&(Y=this._input.next(),this._input.peek()==="/"&&(Y+=this._input.next()),Y+=this.__patterns.element_name.read(),j=this._create_token($.TAG_OPEN,Y)),j},Q.prototype._read_open_handlebars=function(L,D){var Y=null,j=null;return(!D||D.type===$.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&L==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(Y=this.__patterns.handlebars_comment.read(),Y=Y||this.__patterns.handlebars.read(),j=this._create_token($.COMMENT,Y)):(Y=this.__patterns.handlebars_open.read(),j=this._create_token($.TAG_OPEN,Y))),j},Q.prototype._read_control_flows=function(L,D){var Y="",j=null;if(!this._options.templating.includes("angular"))return j;if(L==="@"){if(Y=this.__patterns.angular_control_flow_start.read(),Y==="")return j;for(var xe=Y.endsWith("(")?1:0,Ce=0;!(Y.endsWith("{")&&xe===Ce);){var Se=this._input.next();if(Se===null)break;Se==="("?xe++:Se===")"&&Ce++,Y+=Se}j=this._create_token($.CONTROL_FLOW_OPEN,Y)}else L==="}"&&D&&D.type===$.CONTROL_FLOW_OPEN&&(Y=this._input.next(),j=this._create_token($.CONTROL_FLOW_CLOSE,Y));return j},Q.prototype._read_close=function(L,D){var Y=null,j=null;return D&&D.type===$.TAG_OPEN&&(D.text[0]==="<"&&(L===">"||L==="/"&&this._input.peek(1)===">")?(Y=this._input.next(),L==="/"&&(Y+=this._input.next()),j=this._create_token($.TAG_CLOSE,Y)):D.text[0]==="{"&&L==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),j=this._create_token($.TAG_CLOSE,"}}"))),j},Q.prototype._read_attribute=function(L,D,Y){var j=null,xe="";if(Y&&Y.text[0]==="<")if(L==="=")j=this._create_token($.EQUALS,this._input.next());else if(L==='"'||L==="'"){var Ce=this._input.next();L==='"'?Ce+=this.__patterns.double_quote.read():Ce+=this.__patterns.single_quote.read(),j=this._create_token($.VALUE,Ce)}else xe=this.__patterns.attribute.read(),xe&&(D.type===$.EQUALS?j=this._create_token($.VALUE,xe):j=this._create_token($.ATTRIBUTE,xe));return j},Q.prototype._is_content_unformatted=function(L){return this._options.void_elements.indexOf(L)===-1&&(this._options.content_unformatted.indexOf(L)!==-1||this._options.unformatted.indexOf(L)!==-1)},Q.prototype._read_raw_content=function(L,D,Y){var j="";if(Y&&Y.text[0]==="{")j=this.__patterns.handlebars_raw_close.read();else if(D.type===$.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var xe=D.opened.text.substr(1).toLowerCase();this._is_content_unformatted(xe)&&(j=this._input.readUntil(new RegExp("</"+xe+"[\\n\\r\\t ]*?>","ig")))}return j?this._create_token($.TEXT,j):null},Q.prototype._read_script_and_style=function(L,D){if(D.type===$.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var Y=D.opened.text.substr(1).toLowerCase();if(Y==="script"||Y==="style"){var j=this._read_comment_or_cdata(L);if(j)return j.type=$.TEXT,j;var xe=this._input.readUntil(new RegExp("</"+Y+"[\\n\\r\\t ]*?>","ig"));if(xe)return this._create_token($.TEXT,xe)}}return null},Q.prototype._read_content_word=function(L,D){var Y="";return this._options.unformatted_content_delimiter&&L===this._options.unformatted_content_delimiter[0]&&(Y=this.__patterns.unformatted_content_delimiter.read()),Y||(Y=D&&D.type===$.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),Y?this._create_token($.TEXT,Y):null},k.exports.Tokenizer=Q,k.exports.TOKEN=$}],ne={};function o(k){var g=ne[k];if(g!==void 0)return g.exports;var _=ne[k]={exports:{}};return w[k](_,_.exports,o),_.exports}var I=o(18);ee=I})();var ue=ee;if(1)O=[p,p(58553),p(87804)],U=function(w){var ne=p(58553),o=p(87804);return{html_beautify:function(I,k){return ue(I,k,ne.js_beautify,o.css_beautify)}}}.apply(He,O),U!==void 0&&(Qt.exports=U);else var A,m})()},58553:function(Qt,He){var p,O;(function(){var U;(function(){"use strict";var ue=[function(ne,o,I){var k=I(1).Beautifier,g=I(5).Options;function _(S,T){var N=new k(S,T);return N.beautify()}ne.exports=_,ne.exports.defaultOptions=function(){return new g}},function(ne,o,I){var k=I(2).Output,g=I(3).Token,_=I(4),S=I(5).Options,T=I(7).Tokenizer,N=I(7).line_starters,ie=I(7).positionable_operators,z=I(7).TOKEN;function $(x,Z){return Z.indexOf(x)!==-1}function G(x){return x.replace(/^\s+/g,"")}function Q(x){for(var Z={},me=0;me<x.length;me++)Z[x[me].replace(/-/g,"_")]=x[me];return Z}function L(x,Z){return x&&x.type===z.RESERVED&&x.text===Z}function D(x,Z){return x&&x.type===z.RESERVED&&$(x.text,Z)}var Y=["case","return","do","if","throw","else","await","break","continue","async"],j=["before-newline","after-newline","preserve-newline"],xe=Q(j),Ce=[xe.before_newline,xe.preserve_newline],Se={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ge(x,Z){Z.multiline_frame||Z.mode===Se.ForInitializer||Z.mode===Se.Conditional||x.remove_indent(Z.start_line_index)}function de(x){x=x.replace(_.allLineBreaks,`
|
|
|
`);for(var Z=[],me=x.indexOf(`
|
|
|
`);me!==-1;)Z.push(x.substring(0,me)),x=x.substring(me+1),me=x.indexOf(`
|
|
|
`);return x.length&&Z.push(x),Z}function W(x){return x===Se.ArrayLiteral}function be(x){return $(x,[Se.Expression,Se.ForInitializer,Se.Conditional])}function F(x,Z){for(var me=0;me<x.length;me++){var Ne=x[me].trim();if(Ne.charAt(0)!==Z)return!1}return!0}function ce(x,Z){for(var me=0,Ne=x.length,Ue;me<Ne;me++)if(Ue=x[me],Ue&&Ue.indexOf(Z)!==0)return!1;return!0}function q(x,Z){Z=Z||{},this._source_text=x||"",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 S(Z)}q.prototype.create_flags=function(x,Z){var me=0;x&&(me=x.indentation_level,!this._output.just_added_newline()&&x.line_indent_level>me&&(me=x.line_indent_level));var Ne={mode:Z,parent:x,last_token:x?x.last_token:new g(z.START_BLOCK,""),last_word:x?x.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:me,alignment:0,line_indent_level:x?x.line_indent_level:me,start_line_index:this._output.get_line_number(),ternary_depth:0};return Ne},q.prototype._reset=function(x){var Z=x.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new k(this._options,Z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Se.BlockStatement);var me=new T(x,this._options);return this._tokens=me.tokenize(),x},q.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x,Z=this._reset(this._source_text),me=this._options.eol;this._options.eol==="auto"&&(me=`
|
|
|
`,Z&&_.lineBreak.test(Z||"")&&(me=Z.match(_.lineBreak)[0]));for(var Ne=this._tokens.next();Ne;)this.handle_token(Ne),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Ne,Ne=this._tokens.next();return x=this._output.get_code(me),x},q.prototype.handle_token=function(x,Z){x.type===z.START_EXPR?this.handle_start_expr(x):x.type===z.END_EXPR?this.handle_end_expr(x):x.type===z.START_BLOCK?this.handle_start_block(x):x.type===z.END_BLOCK?this.handle_end_block(x):x.type===z.WORD?this.handle_word(x):x.type===z.RESERVED?this.handle_word(x):x.type===z.SEMICOLON?this.handle_semicolon(x):x.type===z.STRING?this.handle_string(x):x.type===z.EQUALS?this.handle_equals(x):x.type===z.OPERATOR?this.handle_operator(x):x.type===z.COMMA?this.handle_comma(x):x.type===z.BLOCK_COMMENT?this.handle_block_comment(x,Z):x.type===z.COMMENT?this.handle_comment(x,Z):x.type===z.DOT?this.handle_dot(x):x.type===z.EOF?this.handle_eof(x):x.type===z.UNKNOWN?this.handle_unknown(x,Z):this.handle_unknown(x,Z)},q.prototype.handle_whitespace_and_comments=function(x,Z){var me=x.newlines,Ne=this._options.keep_array_indentation&&W(this._flags.mode);if(x.comments_before)for(var Ue=x.comments_before.next();Ue;)this.handle_whitespace_and_comments(Ue,Z),this.handle_token(Ue,Z),Ue=x.comments_before.next();if(Ne)for(var ze=0;ze<me;ze+=1)this.print_newline(ze>0,Z);else if(this._options.max_preserve_newlines&&me>this._options.max_preserve_newlines&&(me=this._options.max_preserve_newlines),this._options.preserve_newlines&&me>1){this.print_newline(!1,Z);for(var et=1;et<me;et+=1)this.print_newline(!0,Z)}};var y=["async","break","continue","return","throw","yield"];q.prototype.allow_wrap_or_preserved_newline=function(x,Z){if(Z=Z===void 0?!1:Z,!this._output.just_added_newline()){var me=this._options.preserve_newlines&&x.newlines||Z,Ne=$(this._flags.last_token.text,ie)||$(x.text,ie);if(Ne){var Ue=$(this._flags.last_token.text,ie)&&$(this._options.operator_position,Ce)||$(x.text,ie);me=me&&Ue}if(me)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(D(this._flags.last_token,y))return;this._output.set_wrap_point()}}},q.prototype.print_newline=function(x,Z){if(!Z&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==z.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var me=this._tokens.peek();this._flags.mode===Se.Statement&&!(this._flags.if_block&&L(me,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(x)&&(this._flags.multiline_frame=!0)},q.prototype.print_token_line_indentation=function(x){this._output.just_added_newline()&&(this._options.keep_array_indentation&&x.newlines&&(x.text==="["||W(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(x.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))},q.prototype.print_token=function(x){if(this._output.raw){this._output.add_raw_token(x);return}if(this._options.comma_first&&x.previous&&x.previous.type===z.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(x),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(x),this._output.non_breaking_space=!0,this._output.add_token(x.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},q.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},q.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))},q.prototype.set_mode=function(x){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,x),this._flags=this.create_flags(this._previous_flags,x),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},q.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Se.Statement&&ge(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},q.prototype.start_of_object_property=function(){return this._flags.parent.mode===Se.ObjectLiteral&&this._flags.mode===Se.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"]))},q.prototype.start_of_statement=function(x){var Z=!1;return Z=Z||D(this._flags.last_token,["var","let","const"])&&x.type===z.WORD,Z=Z||L(this._flags.last_token,"do"),Z=Z||!(this._flags.parent.mode===Se.ObjectLiteral&&this._flags.mode===Se.Statement)&&D(this._flags.last_token,y)&&!x.newlines,Z=Z||L(this._flags.last_token,"else")&&!(L(x,"if")&&!x.comments_before),Z=Z||this._flags.last_token.type===z.END_EXPR&&(this._previous_flags.mode===Se.ForInitializer||this._previous_flags.mode===Se.Conditional),Z=Z||this._flags.last_token.type===z.WORD&&this._flags.mode===Se.BlockStatement&&!this._flags.in_case&&!(x.text==="--"||x.text==="++")&&this._last_last_text!=="function"&&x.type!==z.WORD&&x.type!==z.RESERVED,Z=Z||this._flags.mode===Se.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"])),Z?(this.set_mode(Se.Statement),this.indent(),this.handle_whitespace_and_comments(x,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(x,D(x,["do","for","if","while"])),!0):!1},q.prototype.handle_start_expr=function(x){this.start_of_statement(x)||this.handle_whitespace_and_comments(x);var Z=Se.Expression;if(x.text==="["){if(this._flags.last_token.type===z.WORD||this._flags.last_token.text===")"){D(this._flags.last_token,N)&&(this._output.space_before_token=!0),this.print_token(x),this.set_mode(Z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Z=Se.ArrayLiteral,W(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()),$(this._flags.last_token.type,[z.START_EXPR,z.END_EXPR,z.WORD,z.OPERATOR,z.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===z.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,Z=Se.ForInitializer):$(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Z=Se.Conditional):$(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&x.whitespace_before===""?this._output.space_before_token=!1:($(this._flags.last_token.text,N)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===z.EQUALS||this._flags.last_token.type===z.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(x);else if(this._flags.last_token.type===z.WORD){this._output.space_before_token=!1;var me=this._tokens.peek(-3);if(this._options.space_after_named_function&&me){var Ne=this._tokens.peek(-4);D(me,["async","function"])||me.text==="*"&&D(Ne,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Se.ObjectLiteral?(me.text==="{"||me.text===","||me.text==="*"&&(Ne.text==="{"||Ne.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(x);(this._flags.last_token.type===z.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&($(this._last_last_text,["function","yield"])||this._flags.mode===Se.ObjectLiteral&&$(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===z.START_BLOCK?this.print_newline():(this._flags.last_token.type===z.END_EXPR||this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===z.COMMA)&&this.allow_wrap_or_preserved_newline(x,x.newlines),this.print_token(x),this.set_mode(Z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},q.prototype.handle_end_expr=function(x){for(;this._flags.mode===Se.Statement;)this.restore_mode();this.handle_whitespace_and_comments(x),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(x,x.text==="]"&&W(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===z.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(x),this.restore_mode(),ge(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Se.Conditional&&(this._previous_flags.mode=Se.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},q.prototype.handle_start_block=function(x){this.handle_whitespace_and_comments(x);var Z=this._tokens.peek(),me=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===z.END_EXPR?(this.set_mode(Se.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Se.BlockStatement):me&&($(me.text,[":",","])&&$(Z.type,[z.STRING,z.WORD,z.RESERVED])||$(Z.text,["get","set","..."])&&$(me.type,[z.WORD,z.RESERVED]))?$(this._last_last_text,["class","interface"])&&!$(me.text,[":",","])?this.set_mode(Se.BlockStatement):this.set_mode(Se.ObjectLiteral):this._flags.last_token.type===z.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Se.BlockStatement):$(this._flags.last_token.type,[z.EQUALS,z.START_EXPR,z.COMMA,z.OPERATOR])||D(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Se.ObjectLiteral):this.set_mode(Se.BlockStatement),this._flags.last_token&&D(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Ne=!Z.comments_before&&Z.text==="}",Ue=Ne&&this._flags.last_word==="function"&&this._flags.last_token.type===z.END_EXPR;if(this._options.brace_preserve_inline){var ze=0,et=null;this._flags.inline_frame=!0;do if(ze+=1,et=this._tokens.peek(ze-1),et.newlines){this._flags.inline_frame=!1;break}while(et.type!==z.EOF&&!(et.type===z.END_BLOCK&&et.opened===x))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&x.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==z.OPERATOR&&(Ue||this._flags.last_token.type===z.EQUALS||D(this._flags.last_token,Y)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(W(this._previous_flags.mode)&&(this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.COMMA)&&((this._flags.last_token.type===z.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(x),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==z.OPERATOR&&this._flags.last_token.type!==z.START_EXPR&&($(this._flags.last_token.type,[z.START_BLOCK,z.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(x),this.indent(),!Ne&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},q.prototype.handle_end_block=function(x){for(this.handle_whitespace_and_comments(x);this._flags.mode===Se.Statement;)this.restore_mode();var Z=this._flags.last_token.type===z.START_BLOCK;this._flags.inline_frame&&!Z?this._output.space_before_token=!0:this._options.brace_style==="expand"?Z||this.print_newline():Z||(W(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(x)},q.prototype.handle_word=function(x){if(x.type===z.RESERVED){if($(x.text,["set","get"])&&this._flags.mode!==Se.ObjectLiteral)x.type=z.WORD;else if(x.text==="import"&&$(this._tokens.peek().text,["(","."]))x.type=z.WORD;else if($(x.text,["as","from"])&&!this._flags.import_block)x.type=z.WORD;else if(this._flags.mode===Se.ObjectLiteral){var Z=this._tokens.peek();Z.text===":"&&(x.type=z.WORD)}}if(this.start_of_statement(x)?D(this._flags.last_token,["var","let","const"])&&x.type===z.WORD&&(this._flags.declaration_statement=!0):x.newlines&&!be(this._flags.mode)&&(this._flags.last_token.type!==z.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==z.EQUALS&&(this._options.preserve_newlines||!D(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(x),this.print_newline()):this.handle_whitespace_and_comments(x),this._flags.do_block&&!this._flags.do_while)if(L(x,"while")){this._output.space_before_token=!0,this.print_token(x),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&&L(x,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Se.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&D(x,["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(x),this._flags.in_case=!0;return}if((this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.EQUALS||this._flags.last_token.type===z.OPERATOR)&&!this.start_of_object_property()&&!($(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Se.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(x),L(x,"function")){($(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!($(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===z.OPERATOR))&&!this._output.just_added_blankline()&&!x.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===z.RESERVED||this._flags.last_token.type===z.WORD?D(this._flags.last_token,["get","set","new","export"])||D(this._flags.last_token,y)?this._output.space_before_token=!0:L(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===z.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(be(this._flags.mode)||W(this._flags.mode))||this.print_newline(),this.print_token(x),this._flags.last_word=x.text;return}var me="NONE";if(this._flags.last_token.type===z.END_BLOCK?this._previous_flags.inline_frame?me="SPACE":D(x,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&x.newlines?me="NEWLINE":(me="SPACE",this._output.space_before_token=!0):me="NEWLINE":this._flags.last_token.type===z.SEMICOLON&&this._flags.mode===Se.BlockStatement?me="NEWLINE":this._flags.last_token.type===z.SEMICOLON&&be(this._flags.mode)?me="SPACE":this._flags.last_token.type===z.STRING?me="NEWLINE":this._flags.last_token.type===z.RESERVED||this._flags.last_token.type===z.WORD||this._flags.last_token.text==="*"&&($(this._last_last_text,["function","yield"])||this._flags.mode===Se.ObjectLiteral&&$(this._last_last_text,["{",","]))?me="SPACE":this._flags.last_token.type===z.START_BLOCK?this._flags.inline_frame?me="SPACE":me="NEWLINE":this._flags.last_token.type===z.END_EXPR&&(this._output.space_before_token=!0,me="NEWLINE"),D(x,N)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?me="SPACE":me="NEWLINE"),D(x,["else","catch","finally"]))if((!(this._flags.last_token.type===z.END_BLOCK&&this._previous_flags.mode===Se.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&x.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Ne=this._output.current_line;Ne.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else me==="NEWLINE"?D(this._flags.last_token,Y)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&D(x,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==z.END_EXPR?(this._flags.last_token.type!==z.START_EXPR||!D(x,["var","let","const"]))&&this._flags.last_token.text!==":"&&(L(x,"if")&&L(x.previous,"else")?this._output.space_before_token=!0:this.print_newline()):D(x,N)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&W(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():me==="SPACE"&&(this._output.space_before_token=!0);x.previous&&(x.previous.type===z.WORD||x.previous.type===z.RESERVED)&&(this._output.space_before_token=!0),this.print_token(x),this._flags.last_word=x.text,x.type===z.RESERVED&&(x.text==="do"?this._flags.do_block=!0:x.text==="if"?this._flags.if_block=!0:x.text==="import"?this._flags.import_block=!0:this._flags.import_block&&L(x,"from")&&(this._flags.import_block=!1))},q.prototype.handle_semicolon=function(x){this.start_of_statement(x)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(x);for(var Z=this._tokens.peek();this._flags.mode===Se.Statement&&!(this._flags.if_block&&L(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(x)},q.prototype.handle_string=function(x){x.text.startsWith("`")&&x.newlines===0&&x.whitespace_before===""&&(x.previous.text===")"||this._flags.last_token.type===z.WORD)||(this.start_of_statement(x)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(x),this._flags.last_token.type===z.RESERVED||this._flags.last_token.type===z.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR||this._flags.last_token.type===z.EQUALS||this._flags.last_token.type===z.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(x):x.text.startsWith("`")&&this._flags.last_token.type===z.END_EXPR&&(x.previous.text==="]"||x.previous.text===")")&&x.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(x)},q.prototype.handle_equals=function(x){this.start_of_statement(x)||this.handle_whitespace_and_comments(x),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(x),this._output.space_before_token=!0},q.prototype.handle_comma=function(x){this.handle_whitespace_and_comments(x,!0),this.print_token(x),this._output.space_before_token=!0,this._flags.declaration_statement?(be(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(x)):this._flags.mode===Se.ObjectLiteral||this._flags.mode===Se.Statement&&this._flags.parent.mode===Se.ObjectLiteral?(this._flags.mode===Se.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(x)},q.prototype.handle_operator=function(x){var Z=x.text==="*"&&(D(this._flags.last_token,["function","yield"])||$(this._flags.last_token.type,[z.START_BLOCK,z.COMMA,z.END_BLOCK,z.SEMICOLON])),me=$(x.text,["-","+"])&&($(this._flags.last_token.type,[z.START_BLOCK,z.START_EXPR,z.EQUALS,z.OPERATOR])||$(this._flags.last_token.text,N)||this._flags.last_token.text===",");if(!this.start_of_statement(x)){var Ne=!Z;this.handle_whitespace_and_comments(x,Ne)}if(x.text==="*"&&this._flags.last_token.type===z.DOT){this.print_token(x);return}if(x.text==="::"){this.print_token(x);return}if($(x.text,["-","+"])&&this.start_of_object_property()){this.print_token(x);return}if(this._flags.last_token.type===z.OPERATOR&&$(this._options.operator_position,Ce)&&this.allow_wrap_or_preserved_newline(x),x.text===":"&&this._flags.in_case){this.print_token(x),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==z.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 Ue=!0,ze=!0,et=!1;if(x.text===":"?this._flags.ternary_depth===0?Ue=!1:(this._flags.ternary_depth-=1,et=!0):x.text==="?"&&(this._flags.ternary_depth+=1),!me&&!Z&&this._options.preserve_newlines&&$(x.text,ie)){var pt=x.text===":",gt=pt&&et,at=pt&&!et;switch(this._options.operator_position){case xe.before_newline:this._output.space_before_token=!at,this.print_token(x),(!pt||gt)&&this.allow_wrap_or_preserved_newline(x),this._output.space_before_token=!0;return;case xe.after_newline:this._output.space_before_token=!0,!pt||gt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(x):this._output.space_before_token=!1,this.print_token(x),this._output.space_before_token=!0;return;case xe.preserve_newline:at||this.allow_wrap_or_preserved_newline(x),Ue=!(this._output.just_added_newline()||at),this._output.space_before_token=Ue,this.print_token(x),this._output.space_before_token=!0;return}}if(Z){this.allow_wrap_or_preserved_newline(x),Ue=!1;var Ot=this._tokens.peek();ze=Ot&&$(Ot.type,[z.WORD,z.RESERVED])}else if(x.text==="...")this.allow_wrap_or_preserved_newline(x),Ue=this._flags.last_token.type===z.START_BLOCK,ze=!1;else if($(x.text,["--","++","!","~"])||me){if((this._flags.last_token.type===z.COMMA||this._flags.last_token.type===z.START_EXPR)&&this.allow_wrap_or_preserved_newline(x),Ue=!1,ze=!1,x.newlines&&(x.text==="--"||x.text==="++"||x.text==="~")){var en=D(this._flags.last_token,Y)&&x.newlines;en&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(en,!0)}this._flags.last_token.text===";"&&be(this._flags.mode)&&(Ue=!0),this._flags.last_token.type===z.RESERVED?Ue=!0:this._flags.last_token.type===z.END_EXPR?Ue=!(this._flags.last_token.text==="]"&&(x.text==="--"||x.text==="++")):this._flags.last_token.type===z.OPERATOR&&(Ue=$(x.text,["--","-","++","+"])&&$(this._flags.last_token.text,["--","-","++","+"]),$(x.text,["+","-"])&&$(this._flags.last_token.text,["--","++"])&&(ze=!0)),(this._flags.mode===Se.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Se.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ue,this.print_token(x),this._output.space_before_token=ze},q.prototype.handle_block_comment=function(x,Z){if(this._output.raw){this._output.add_raw_token(x),x.directives&&x.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(x.directives){this.print_newline(!1,Z),this.print_token(x),x.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!_.newline.test(x.text)&&!x.newlines){this._output.space_before_token=!0,this.print_token(x),this._output.space_before_token=!0;return}else this.print_block_commment(x,Z)},q.prototype.print_block_commment=function(x,Z){var me=de(x.text),Ne,Ue=!1,ze=!1,et=x.whitespace_before,pt=et.length;if(this.print_newline(!1,Z),this.print_token_line_indentation(x),this._output.add_token(me[0]),this.print_newline(!1,Z),me.length>1){for(me=me.slice(1),Ue=F(me,"*"),ze=ce(me,et),Ue&&(this._flags.alignment=1),Ne=0;Ne<me.length;Ne++)Ue?(this.print_token_line_indentation(x),this._output.add_token(G(me[Ne]))):ze&&me[Ne]?(this.print_token_line_indentation(x),this._output.add_token(me[Ne].substring(pt))):(this._output.current_line.set_indent(-1),this._output.add_token(me[Ne])),this.print_newline(!1,Z);this._flags.alignment=0}},q.prototype.handle_comment=function(x,Z){x.newlines?this.print_newline(!1,Z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(x),this.print_newline(!1,Z)},q.prototype.handle_dot=function(x){this.start_of_statement(x)||this.handle_whitespace_and_comments(x,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),D(this._flags.last_token,Y)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(x,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(x)},q.prototype.handle_unknown=function(x,Z){this.print_token(x),x.text[x.text.length-1]===`
|
|
|
`&&this.print_newline(!1,Z)},q.prototype.handle_eof=function(x){for(;this._flags.mode===Se.Statement;)this.restore_mode();this.handle_whitespace_and_comments(x)},ne.exports.Beautifier=q},function(ne){function o(g){this.__parent=g,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=[]}o.prototype.clone_empty=function(){var g=new o(this.__parent);return g.set_indent(this.__indent_count,this.__alignment_count),g},o.prototype.item=function(g){return g<0?this.__items[this.__items.length+g]:this.__items[g]},o.prototype.has_match=function(g){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(g))return!0;return!1},o.prototype.set_indent=function(g,_){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=_||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.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)},o.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},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var g=this.__parent.current_line;return g.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),g.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),g.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,g.__items[0]===" "&&(g.__items.splice(0,1),g.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(g){this.__items.push(g);var _=g.lastIndexOf(`
|
|
|
`);_!==-1?this.__character_count=g.length-_:this.__character_count+=g.length},o.prototype.pop=function(){var g=null;return this.is_empty()||(g=this.__items.pop(),this.__character_count-=g.length),g},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var g="";return this.is_empty()?this.__parent.indent_empty_lines&&(g=this.__parent.get_indent_string(this.__indent_count)):(g=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),g+=this.__items.join("")),g};function I(g,_){this.__cache=[""],this.__indent_size=g.indent_size,this.__indent_string=g.indent_char,g.indent_with_tabs||(this.__indent_string=new Array(g.indent_size+1).join(g.indent_char)),_=_||"",g.indent_level>0&&(_=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}I.prototype.get_indent_size=function(g,_){var S=this.__base_string_length;return _=_||0,g<0&&(S=0),S+=g*this.__indent_size,S+=_,S},I.prototype.get_indent_string=function(g,_){var S=this.__base_string;return _=_||0,g<0&&(g=0,S=""),_+=g*this.__indent_size,this.__ensure_cache(_),S+=this.__cache[_],S},I.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},I.prototype.__add_column=function(){var g=this.__cache.length,_=0,S="";this.__indent_size&&g>=this.__indent_size&&(_=Math.floor(g/this.__indent_size),g-=_*this.__indent_size,S=new Array(_+1).join(this.__indent_string)),g&&(S+=new Array(g+1).join(" ")),this.__cache.push(S)};function k(g,_){this.__indent_cache=new I(g,_),this.raw=!1,this._end_with_newline=g.end_with_newline,this.indent_size=g.indent_size,this.wrap_line_length=g.wrap_line_length,this.indent_empty_lines=g.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}k.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},k.prototype.get_line_number=function(){return this.__lines.length},k.prototype.get_indent_string=function(g,_){return this.__indent_cache.get_indent_string(g,_)},k.prototype.get_indent_size=function(g,_){return this.__indent_cache.get_indent_size(g,_)},k.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},k.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},k.prototype.get_code=function(g){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
|
|
|
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var S=this.__lines.join(`
|
|
|
`);return g!==`
|
|
|
`&&(S=S.replace(/[\n]/g,g)),S},k.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},k.prototype.set_indent=function(g,_){return g=g||0,_=_||0,this.next_line.set_indent(g,_),this.__lines.length>1?(this.current_line.set_indent(g,_),!0):(this.current_line.set_indent(),!1)},k.prototype.add_raw_token=function(g){for(var _=0;_<g.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(g.whitespace_before),this.current_line.push(g.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},k.prototype.add_token=function(g){this.__add_space_before_token(),this.current_line.push(g),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},k.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(" "))},k.prototype.remove_indent=function(g){for(var _=this.__lines.length;g<_;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},k.prototype.trim=function(g){for(g=g===void 0?!1:g,this.current_line.trim();g&&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},k.prototype.just_added_newline=function(){return this.current_line.is_empty()},k.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},k.prototype.ensure_empty_line_above=function(g,_){for(var S=this.__lines.length-2;S>=0;){var T=this.__lines[S];if(T.is_empty())break;if(T.item(0).indexOf(g)!==0&&T.item(-1)!==_){this.__lines.splice(S+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}S--}},ne.exports.Output=k},function(ne){function o(I,k,g,_){this.type=I,this.text=k,this.comments_before=null,this.newlines=g||0,this.whitespace_before=_||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}ne.exports.Token=o},function(ne,o){var I="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",k="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",g="\\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",_="\\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",S="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",T="(?:"+S+"|["+I+g+"])",N="(?:"+S+"|["+k+g+_+"])*";o.identifier=new RegExp(T+N,"g"),o.identifierStart=new RegExp(T),o.identifierMatch=new RegExp("(?:"+S+"|["+k+g+_+"])+");var ie=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|
|
|
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(ne,o,I){var k=I(6).Options,g=["before-newline","after-newline","preserve-newline"];function _(S){k.call(this,S,"js");var T=this.raw_options.brace_style||null;T==="expand-strict"?this.raw_options.brace_style="expand":T==="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 N=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var ie=0;ie<N.length;ie++)N[ie]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=N[ie];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",g),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}_.prototype=new k,ne.exports.Options=_},function(ne){function o(g,_){this.raw_options=I(g,_),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"])}o.prototype._get_array=function(g,_){var S=this.raw_options[g],T=_||[];return typeof S=="object"?S!==null&&typeof S.concat=="function"&&(T=S.concat()):typeof S=="string"&&(T=S.split(/[^a-zA-Z0-9_\/\-]+/)),T},o.prototype._get_boolean=function(g,_){var S=this.raw_options[g],T=S===void 0?!!_:!!S;return T},o.prototype._get_characters=function(g,_){var S=this.raw_options[g],T=_||"";return typeof S=="string"&&(T=S.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),T},o.prototype._get_number=function(g,_){var S=this.raw_options[g];_=parseInt(_,10),isNaN(_)&&(_=0);var T=parseInt(S,10);return isNaN(T)&&(T=_),T},o.prototype._get_selection=function(g,_,S){var T=this._get_selection_list(g,_,S);if(T.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T[0]},o.prototype._get_selection_list=function(g,_,S){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(S=S||[_[0]],!this._is_valid_selection(S,_))throw new Error("Invalid Default Value!");var T=this._get_array(g,S);if(!this._is_valid_selection(T,_))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
|
|
|
`+_+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return T},o.prototype._is_valid_selection=function(g,_){return g.length&&_.length&&!g.some(function(S){return _.indexOf(S)===-1})};function I(g,_){var S={};g=k(g);var T;for(T in g)T!==_&&(S[T]=g[T]);if(_&&g[_])for(T in g[_])S[T]=g[_][T];return S}function k(g){var _={},S;for(S in g){var T=S.replace(/-/g,"_");_[T]=g[S]}return _}ne.exports.Options=o,ne.exports.normalizeOpts=k,ne.exports.mergeOpts=I},function(ne,o,I){var k=I(8).InputScanner,g=I(9).Tokenizer,_=I(9).TOKEN,S=I(13).Directives,T=I(4),N=I(12).Pattern,ie=I(14).TemplatablePattern;function z(F,ce){return ce.indexOf(F)!==-1}var $={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:_.START,RAW:_.RAW,EOF:_.EOF},G=new S(/\/\*/,/\*\//),Q=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,L=/[0-9]/,D=/[^\d\.]/,Y=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),j=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";j=j.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),j="\\?\\.(?!\\d) "+j,j=j.replace(/ /g,"|");var xe=new RegExp(j),Ce="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Se=Ce.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ge=new RegExp("^(?:"+Se.join("|")+")$"),de,W=function(F,ce){g.call(this,F,ce),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var q=new N(this._input),y=new ie(this._input).read_options(this._options);this.__patterns={template:y,identifier:y.starting_with(T.identifier).matching(T.identifierMatch),number:q.matching(Q),punct:q.matching(xe),comment:q.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:q.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:q.matching(/<!--/),html_comment_end:q.matching(/-->/),include:q.starting_with(/#include/).until_after(T.lineBreak),shebang:q.starting_with(/#!/).until_after(T.lineBreak),xml:q.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:y.until(/['\\\n\r\u2028\u2029]/),double_quote:y.until(/["\\\n\r\u2028\u2029]/),template_text:y.until(/[`\\$]/),template_expression:y.until(/[`}\\]/)}};W.prototype=new g,W.prototype._is_comment=function(F){return F.type===$.COMMENT||F.type===$.BLOCK_COMMENT||F.type===$.UNKNOWN},W.prototype._is_opening=function(F){return F.type===$.START_BLOCK||F.type===$.START_EXPR},W.prototype._is_closing=function(F,ce){return(F.type===$.END_BLOCK||F.type===$.END_EXPR)&&ce&&(F.text==="]"&&ce.text==="["||F.text===")"&&ce.text==="("||F.text==="}"&&ce.text==="{")},W.prototype._reset=function(){de=!1},W.prototype._get_next_token=function(F,ce){var q=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token($.EOF,""):(q=q||this._read_non_javascript(y),q=q||this._read_string(y),q=q||this._read_pair(y,this._input.peek(1)),q=q||this._read_word(F),q=q||this._read_singles(y),q=q||this._read_comment(y),q=q||this._read_regexp(y,F),q=q||this._read_xml(y,F),q=q||this._read_punctuation(),q=q||this._create_token($.UNKNOWN,this._input.next()),q)},W.prototype._read_word=function(F){var ce;if(ce=this.__patterns.identifier.read(),ce!=="")return ce=ce.replace(T.allLineBreaks,`
|
|
|
`),!(F.type===$.DOT||F.type===$.RESERVED&&(F.text==="set"||F.text==="get"))&&ge.test(ce)?(ce==="in"||ce==="of")&&(F.type===$.WORD||F.type===$.STRING)?this._create_token($.OPERATOR,ce):this._create_token($.RESERVED,ce):this._create_token($.WORD,ce);if(ce=this.__patterns.number.read(),ce!=="")return this._create_token($.WORD,ce)},W.prototype._read_singles=function(F){var ce=null;return F==="("||F==="["?ce=this._create_token($.START_EXPR,F):F===")"||F==="]"?ce=this._create_token($.END_EXPR,F):F==="{"?ce=this._create_token($.START_BLOCK,F):F==="}"?ce=this._create_token($.END_BLOCK,F):F===";"?ce=this._create_token($.SEMICOLON,F):F==="."&&D.test(this._input.peek(1))?ce=this._create_token($.DOT,F):F===","&&(ce=this._create_token($.COMMA,F)),ce&&this._input.next(),ce},W.prototype._read_pair=function(F,ce){var q=null;return F==="#"&&ce==="{"&&(q=this._create_token($.START_BLOCK,F+ce)),q&&(this._input.next(),this._input.next()),q},W.prototype._read_punctuation=function(){var F=this.__patterns.punct.read();if(F!=="")return F==="="?this._create_token($.EQUALS,F):F==="?."?this._create_token($.DOT,F):this._create_token($.OPERATOR,F)},W.prototype._read_non_javascript=function(F){var ce="";if(F==="#"){if(this._is_first_token()&&(ce=this.__patterns.shebang.read(),ce))return this._create_token($.UNKNOWN,ce.trim()+`
|
|
|
`);if(ce=this.__patterns.include.read(),ce)return this._create_token($.UNKNOWN,ce.trim()+`
|
|
|
`);F=this._input.next();var q="#";if(this._input.hasNext()&&this._input.testChar(L)){do F=this._input.next(),q+=F;while(this._input.hasNext()&&F!=="#"&&F!=="=");return F==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(q+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(q+="{}",this._input.next(),this._input.next())),this._create_token($.WORD,q)}this._input.back()}else if(F==="<"&&this._is_first_token()){if(ce=this.__patterns.html_comment_start.read(),ce){for(;this._input.hasNext()&&!this._input.testChar(T.newline);)ce+=this._input.next();return de=!0,this._create_token($.COMMENT,ce)}}else if(de&&F==="-"&&(ce=this.__patterns.html_comment_end.read(),ce))return de=!1,this._create_token($.COMMENT,ce);return null},W.prototype._read_comment=function(F){var ce=null;if(F==="/"){var q="";if(this._input.peek(1)==="*"){q=this.__patterns.block_comment.read();var y=G.get_directives(q);y&&y.ignore==="start"&&(q+=G.readIgnored(this._input)),q=q.replace(T.allLineBreaks,`
|
|
|
`),ce=this._create_token($.BLOCK_COMMENT,q),ce.directives=y}else this._input.peek(1)==="/"&&(q=this.__patterns.comment.read(),ce=this._create_token($.COMMENT,q))}return ce},W.prototype._read_string=function(F){if(F==="`"||F==="'"||F==='"'){var ce=this._input.next();return this.has_char_escapes=!1,F==="`"?ce+=this._read_string_recursive("`",!0,"${"):ce+=this._read_string_recursive(F),this.has_char_escapes&&this._options.unescape_strings&&(ce=be(ce)),this._input.peek()===F&&(ce+=this._input.next()),ce=ce.replace(T.allLineBreaks,`
|
|
|
`),this._create_token($.STRING,ce)}return null},W.prototype._allow_regexp_or_xml=function(F){return F.type===$.RESERVED&&z(F.text,["return","case","throw","else","do","typeof","yield"])||F.type===$.END_EXPR&&F.text===")"&&F.opened.previous.type===$.RESERVED&&z(F.opened.previous.text,["if","while","for"])||z(F.type,[$.COMMENT,$.START_EXPR,$.START_BLOCK,$.START,$.END_BLOCK,$.OPERATOR,$.EQUALS,$.EOF,$.SEMICOLON,$.COMMA])},W.prototype._read_regexp=function(F,ce){if(F==="/"&&this._allow_regexp_or_xml(ce)){for(var q=this._input.next(),y=!1,x=!1;this._input.hasNext()&&(y||x||this._input.peek()!==F)&&!this._input.testChar(T.newline);)q+=this._input.peek(),y?y=!1:(y=this._input.peek()==="\\",this._input.peek()==="["?x=!0:this._input.peek()==="]"&&(x=!1)),this._input.next();return this._input.peek()===F&&(q+=this._input.next(),q+=this._input.read(T.identifier)),this._create_token($.STRING,q)}return null},W.prototype._read_xml=function(F,ce){if(this._options.e4x&&F==="<"&&this._allow_regexp_or_xml(ce)){var q="",y=this.__patterns.xml.read_match();if(y){for(var x=y[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Z=x.indexOf("{")===0,me=0;y;){var Ne=!!y[1],Ue=y[2],ze=!!y[y.length-1]||Ue.slice(0,8)==="![CDATA[";if(!ze&&(Ue===x||Z&&Ue.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Ne?--me:++me),q+=y[0],me<=0)break;y=this.__patterns.xml.read_match()}return y||(q+=this._input.match(/[\s\S]*/g)[0]),q=q.replace(T.allLineBreaks,`
|
|
|
`),this._create_token($.STRING,q)}}return null};function be(F){for(var ce="",q=0,y=new k(F),x=null;y.hasNext();)if(x=y.match(/([\s]|[^\\]|\\\\)+/g),x&&(ce+=x[0]),y.peek()==="\\"){if(y.next(),y.peek()==="x")x=y.match(/x([0-9A-Fa-f]{2})/g);else if(y.peek()==="u")x=y.match(/u([0-9A-Fa-f]{4})/g),x||(x=y.match(/u\{([0-9A-Fa-f]+)\}/g));else{ce+="\\",y.hasNext()&&(ce+=y.next());continue}if(!x||(q=parseInt(x[1],16),q>126&&q<=255&&x[0].indexOf("x")===0))return F;q>=0&&q<32||q>1114111?ce+="\\"+x[0]:q===34||q===39||q===92?ce+="\\"+String.fromCharCode(q):ce+=String.fromCharCode(q)}return ce}W.prototype._read_string_recursive=function(F,ce,q){var y,x;F==="'"?x=this.__patterns.single_quote:F==='"'?x=this.__patterns.double_quote:F==="`"?x=this.__patterns.template_text:F==="}"&&(x=this.__patterns.template_expression);for(var Z=x.read(),me="";this._input.hasNext();){if(me=this._input.next(),me===F||!ce&&T.newline.test(me)){this._input.back();break}else me==="\\"&&this._input.hasNext()?(y=this._input.peek(),y==="x"||y==="u"?this.has_char_escapes=!0:y==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),me+=this._input.next()):q&&(q==="${"&&me==="$"&&this._input.peek()==="{"&&(me+=this._input.next()),q===me&&(F==="`"?me+=this._read_string_recursive("}",ce,"`"):me+=this._read_string_recursive("`",ce,"${"),this._input.hasNext()&&(me+=this._input.next())));me+=x.read(),Z+=me}return Z},ne.exports.Tokenizer=W,ne.exports.TOKEN=$,ne.exports.positionable_operators=Y.slice(),ne.exports.line_starters=Ce.slice()},function(ne){var o=RegExp.prototype.hasOwnProperty("sticky");function I(k){this.__input=k||"",this.__input_length=this.__input.length,this.__position=0}I.prototype.restart=function(){this.__position=0},I.prototype.back=function(){this.__position>0&&(this.__position-=1)},I.prototype.hasNext=function(){return this.__position<this.__input_length},I.prototype.next=function(){var k=null;return this.hasNext()&&(k=this.__input.charAt(this.__position),this.__position+=1),k},I.prototype.peek=function(k){var g=null;return k=k||0,k+=this.__position,k>=0&&k<this.__input_length&&(g=this.__input.charAt(k)),g},I.prototype.__match=function(k,g){k.lastIndex=g;var _=k.exec(this.__input);return _&&!(o&&k.sticky)&&_.index!==g&&(_=null),_},I.prototype.test=function(k,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(k,g):!1},I.prototype.testChar=function(k,g){var _=this.peek(g);return k.lastIndex=0,_!==null&&k.test(_)},I.prototype.match=function(k){var g=this.__match(k,this.__position);return g?this.__position+=g[0].length:g=null,g},I.prototype.read=function(k,g,_){var S="",T;return k&&(T=this.match(k),T&&(S+=T[0])),g&&(T||!k)&&(S+=this.readUntil(g,_)),S},I.prototype.readUntil=function(k,g){var _="",S=this.__position;k.lastIndex=this.__position;var T=k.exec(this.__input);return T?(S=T.index,g&&(S+=T[0].length)):S=this.__input_length,_=this.__input.substring(this.__position,S),this.__position=S,_},I.prototype.readUntilAfter=function(k){return this.readUntil(k,!0)},I.prototype.get_regexp=function(k,g){var _=null,S="g";return g&&o&&(S="y"),typeof k=="string"&&k!==""?_=new RegExp(k,S):k&&(_=new RegExp(k.source,S)),_},I.prototype.get_literal_regexp=function(k){return RegExp(k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},I.prototype.peekUntilAfter=function(k){var g=this.__position,_=this.readUntilAfter(k);return this.__position=g,_},I.prototype.lookBack=function(k){var g=this.__position-1;return g>=k.length&&this.__input.substring(g-k.length,g).toLowerCase()===k},ne.exports.InputScanner=I},function(ne,o,I){var k=I(8).InputScanner,g=I(3).Token,_=I(10).TokenStream,S=I(11).WhitespacePattern,T={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},N=function(ie,z){this._input=new k(ie),this._options=z||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new S(this._input)};N.prototype.tokenize=function(){this._input.restart(),this.__tokens=new _,this._reset();for(var ie,z=new g(T.START,""),$=null,G=[],Q=new _;z.type!==T.EOF;){for(ie=this._get_next_token(z,$);this._is_comment(ie);)Q.add(ie),ie=this._get_next_token(z,$);Q.isEmpty()||(ie.comments_before=Q,Q=new _),ie.parent=$,this._is_opening(ie)?(G.push($),$=ie):$&&this._is_closing(ie,$)&&(ie.opened=$,$.closed=ie,$=G.pop(),ie.parent=$),ie.previous=z,z.next=ie,this.__tokens.add(ie),z=ie}return this.__tokens},N.prototype._is_first_token=function(){return this.__tokens.isEmpty()},N.prototype._reset=function(){},N.prototype._get_next_token=function(ie,z){this._readWhitespace();var $=this._input.read(/.+/g);return $?this._create_token(T.RAW,$):this._create_token(T.EOF,"")},N.prototype._is_comment=function(ie){return!1},N.prototype._is_opening=function(ie){return!1},N.prototype._is_closing=function(ie,z){return!1},N.prototype._create_token=function(ie,z){var $=new g(ie,z,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return $},N.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},ne.exports.Tokenizer=N,ne.exports.TOKEN=T},function(ne){function o(I){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=I}o.prototype.restart=function(){this.__position=0},o.prototype.isEmpty=function(){return this.__tokens_length===0},o.prototype.hasNext=function(){return this.__position<this.__tokens_length},o.prototype.next=function(){var I=null;return this.hasNext()&&(I=this.__tokens[this.__position],this.__position+=1),I},o.prototype.peek=function(I){var k=null;return I=I||0,I+=this.__position,I>=0&&I<this.__tokens_length&&(k=this.__tokens[I]),k},o.prototype.add=function(I){this.__parent_token&&(I.parent=this.__parent_token),this.__tokens.push(I),this.__tokens_length+=1},ne.exports.TokenStream=o},function(ne,o,I){var k=I(12).Pattern;function g(_,S){k.call(this,_,S),S?this._line_regexp=this._input.get_regexp(S._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}g.prototype=new k,g.prototype.__set_whitespace_patterns=function(_,S){_+="\\t ",S+="\\n\\r",this._match_pattern=this._input.get_regexp("["+_+S+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+S+"]")},g.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var _=this._input.read(this._match_pattern);if(_===" ")this.whitespace_before_token=" ";else if(_){var S=this.__split(this._newline_regexp,_);this.newline_count=S.length-1,this.whitespace_before_token=S[this.newline_count]}return _},g.prototype.matching=function(_,S){var T=this._create();return T.__set_whitespace_patterns(_,S),T._update(),T},g.prototype._create=function(){return new g(this._input,this)},g.prototype.__split=function(_,S){_.lastIndex=0;for(var T=0,N=[],ie=_.exec(S);ie;)N.push(S.substring(T,ie.index)),T=ie.index+ie[0].length,ie=_.exec(S);return T<S.length?N.push(S.substring(T,S.length)):N.push(""),N},ne.exports.WhitespacePattern=g},function(ne){function o(I,k){this._input=I,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,k&&(this._starting_pattern=this._input.get_regexp(k._starting_pattern,!0),this._match_pattern=this._input.get_regexp(k._match_pattern,!0),this._until_pattern=this._input.get_regexp(k._until_pattern),this._until_after=k._until_after)}o.prototype.read=function(){var I=this._input.read(this._starting_pattern);return(!this._starting_pattern||I)&&(I+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),I},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(I){var k=this._create();return k._until_after=!0,k._until_pattern=this._input.get_regexp(I),k._update(),k},o.prototype.until=function(I){var k=this._create();return k._until_after=!1,k._until_pattern=this._input.get_regexp(I),k._update(),k},o.prototype.starting_with=function(I){var k=this._create();return k._starting_pattern=this._input.get_regexp(I,!0),k._update(),k},o.prototype.matching=function(I){var k=this._create();return k._match_pattern=this._input.get_regexp(I,!0),k._update(),k},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},ne.exports.Pattern=o},function(ne){function o(I,k){I=typeof I=="string"?I:I.source,k=typeof k=="string"?k:k.source,this.__directives_block_pattern=new RegExp(I+/ beautify( \w+[:]\w+)+ /.source+k,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(I+/\sbeautify\signore:end\s/.source+k,"g")}o.prototype.get_directives=function(I){if(!I.match(this.__directives_block_pattern))return null;var k={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(I);g;)k[g[1]]=g[2],g=this.__directive_pattern.exec(I);return k},o.prototype.readIgnored=function(I){return I.readUntilAfter(this.__directives_end_ignore_pattern)},ne.exports.Directives=o},function(ne,o,I){var k=I(12).Pattern,g={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function _(S,T){k.call(this,S,T),this.__template_pattern=null,this._disabled=Object.assign({},g),this._excluded=Object.assign({},g),T&&(this.__template_pattern=this._input.get_regexp(T.__template_pattern),this._excluded=Object.assign(this._excluded,T._excluded),this._disabled=Object.assign(this._disabled,T._disabled));var N=new k(S);this.__patterns={handlebars_comment:N.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:N.starting_with(/{{{/).until_after(/}}}/),handlebars:N.starting_with(/{{/).until_after(/}}/),php:N.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:N.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:N.starting_with(/{%/).until_after(/%}/),django_value:N.starting_with(/{{/).until_after(/}}/),django_comment:N.starting_with(/{#/).until_after(/#}/),smarty:N.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:N.starting_with(/{\*/).until_after(/\*}/),smarty_literal:N.starting_with(/{literal}/).until_after(/{\/literal}/)}}_.prototype=new k,_.prototype._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(S){var T=this._create();return T._disabled[S]=!0,T._update(),T},_.prototype.read_options=function(S){var T=this._create();for(var N in g)T._disabled[N]=S.templating.indexOf(N)===-1;return T._update(),T},_.prototype.exclude=function(S){var T=this._create();return T._excluded[S]=!0,T._update(),T},_.prototype.read=function(){var S="";this._match_pattern?S=this._input.read(this._starting_pattern):S=this._input.read(this._starting_pattern,this.__template_pattern);for(var T=this._read_template();T;)this._match_pattern?T+=this._input.read(this._match_pattern):T+=this._input.readUntil(this.__template_pattern),S+=T,T=this._read_template();return this._until_after&&(S+=this._input.readUntilAfter(this._until_pattern)),S},_.prototype.__set_templated_pattern=function(){var S=[];this._disabled.php||S.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||S.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||S.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||S.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(S.push(this.__patterns.django._starting_pattern.source),S.push(this.__patterns.django_value._starting_pattern.source),S.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||S.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&S.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+S.join("|")+")")},_.prototype._read_template=function(){var S="",T=this._input.peek();if(T==="<"){var N=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&N==="?"&&(S=S||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&N==="%"&&(S=S||this.__patterns.erb.read())}else T==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(S=S||this.__patterns.handlebars_comment.read(),S=S||this.__patterns.handlebars_unescaped.read(),S=S||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(S=S||this.__patterns.django_value.read()),this._excluded.django||(S=S||this.__patterns.django_comment.read(),S=S||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(S=S||this.__patterns.smarty_comment.read(),S=S||this.__patterns.smarty_literal.read(),S=S||this.__patterns.smarty.read()));return S},ne.exports.TemplatablePattern=_}],A={};function m(ne){var o=A[ne];if(o!==void 0)return o.exports;var I=A[ne]={exports:{}};return ue[ne](I,I.exports,m),I.exports}var w=m(0);U=w})();var ee=U;p=[],O=function(){return{js_beautify:ee}}.apply(He,p),O!==void 0&&(Qt.exports=O)})()},15342:function(Qt){(function(p,O){Qt.exports=O()})(typeof self!="undefined"?self:this,function(){return function(He){var p={};function O(U){if(p[U])return p[U].exports;var ee=p[U]={i:U,l:!1,exports:{}};return He[U].call(ee.exports,ee,ee.exports,O),ee.l=!0,ee.exports}return O.m=He,O.c=p,O.d=function(U,ee,ue){O.o(U,ee)||Object.defineProperty(U,ee,{enumerable:!0,get:ue})},O.r=function(U){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},O.t=function(U,ee){if(ee&1&&(U=O(U)),ee&8||ee&4&&typeof U=="object"&&U&&U.__esModule)return U;var ue=Object.create(null);if(O.r(ue),Object.defineProperty(ue,"default",{enumerable:!0,value:U}),ee&2&&typeof U!="string")for(var A in U)O.d(ue,A,function(m){return U[m]}.bind(null,A));return ue},O.n=function(U){var ee=U&&U.__esModule?function(){return U.default}:function(){return U};return O.d(ee,"a",ee),ee},O.o=function(U,ee){return Object.prototype.hasOwnProperty.call(U,ee)},O.p="",O(O.s=1)}([function(He,p,O){},function(He,p,O){"use strict";O.r(p);var U=O(0),ee=function(){function re(l,d,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=h}return re.range=function(d,h){return h?!d||!d.loc||!h.loc||d.loc.lexer!==h.loc.lexer?null:new re(d.loc.lexer,d.loc.start,h.loc.end):d&&d.loc},re}(),ue=function(){function re(d,h){this.text=void 0,this.loc=void 0,this.text=d,this.loc=h}var l=re.prototype;return l.range=function(h,b){return new re(b,ee.range(this,h))},re}(),A=function re(l,d){this.position=void 0;var h="KaTeX parse error: "+l,b,M=d&&d.loc;if(M&&M.start<=M.end){var se=M.lexer.input;b=M.start;var Re=M.end;b===se.length?h+=" at end of input: ":h+=" at position "+(b+1)+": ";var Pe=se.slice(b,Re).replace(/[^]/g,"$&\u0332"),Je;b>15?Je="\u2026"+se.slice(b-15,b):Je=se.slice(0,b);var ft;Re+15<se.length?ft=se.slice(Re,Re+15)+"\u2026":ft=se.slice(Re),h+=Je+Pe+ft}var Tt=new Error(h);return Tt.name="ParseError",Tt.__proto__=re.prototype,Tt.position=b,Tt};A.prototype.__proto__=Error.prototype;var m=A,w=function(l,d){return l.indexOf(d)!==-1},ne=function(l,d){return l===void 0?d:l},o=/([A-Z])/g,I=function(l){return l.replace(o,"-$1").toLowerCase()},k={"&":"&",">":">","<":"<",'"':""","'":"'"},g=/[&><"']/g;function _(re){return String(re).replace(g,function(l){return k[l]})}var S=function re(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?re(l.body[0]):l:l.type==="font"?re(l.body):l},T=function(l){var d=S(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},N=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},ie=function(l){var d=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(l);return d!=null?d[1]:"_relative"},z={contains:w,deflt:ne,escape:_,hyphenate:I,getBaseElem:S,isCharacterBox:T,protocolFromUrl:ie},$=function(){function re(d){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,d=d||{},this.displayMode=z.deflt(d.displayMode,!1),this.output=z.deflt(d.output,"htmlAndMathml"),this.leqno=z.deflt(d.leqno,!1),this.fleqn=z.deflt(d.fleqn,!1),this.throwOnError=z.deflt(d.throwOnError,!0),this.errorColor=z.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,z.deflt(d.minRuleThickness,0)),this.colorIsTextColor=z.deflt(d.colorIsTextColor,!1),this.strict=z.deflt(d.strict,"warn"),this.trust=z.deflt(d.trust,!1),this.maxSize=Math.max(0,z.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,z.deflt(d.maxExpand,1e3))}var l=re.prototype;return l.reportNonstrict=function(h,b,M){var se=this.strict;if(typeof se=="function"&&(se=se(h,b,M)),!(!se||se==="ignore")){if(se===!0||se==="error")throw new m("LaTeX-incompatible input and strict mode is set to 'error': "+(b+" ["+h+"]"),M);se==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+se+"': "+b+" ["+h+"]"))}},l.useStrictBehavior=function(h,b,M){var se=this.strict;if(typeof se=="function")try{se=se(h,b,M)}catch(Re){se="error"}return!se||se==="ignore"?!1:se===!0||se==="error"?!0:se==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(b+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+se+"': "+b+" ["+h+"]")),!1)},l.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=z.protocolFromUrl(h.url));var b=typeof this.trust=="function"?this.trust(h):this.trust;return!!b},re}(),G=function(){function re(d,h,b){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=h,this.cramped=b}var l=re.prototype;return l.sup=function(){return ge[de[this.id]]},l.sub=function(){return ge[W[this.id]]},l.fracNum=function(){return ge[be[this.id]]},l.fracDen=function(){return ge[F[this.id]]},l.cramp=function(){return ge[ce[this.id]]},l.text=function(){return ge[q[this.id]]},l.isTight=function(){return this.size>=2},re}(),Q=0,L=1,D=2,Y=3,j=4,xe=5,Ce=6,Se=7,ge=[new G(Q,0,!1),new G(L,0,!0),new G(D,1,!1),new G(Y,1,!0),new G(j,2,!1),new G(xe,2,!0),new G(Ce,3,!1),new G(Se,3,!0)],de=[j,xe,j,xe,Ce,Se,Ce,Se],W=[xe,xe,xe,xe,Se,Se,Se,Se],be=[D,Y,j,xe,Ce,Se,Ce,Se],F=[Y,Y,xe,xe,Se,Se,Se,Se],ce=[L,L,Y,Y,xe,xe,Se,Se],q=[Q,L,D,Y,D,Y,D,Y],y={DISPLAY:ge[Q],TEXT:ge[D],SCRIPT:ge[j],SCRIPTSCRIPT:ge[Ce]},x=[{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 Z(re){for(var l=0;l<x.length;l++)for(var d=x[l],h=0;h<d.blocks.length;h++){var b=d.blocks[h];if(re>=b[0]&&re<=b[1])return d.name}return null}var me=[];x.forEach(function(re){return re.blocks.forEach(function(l){return me.push.apply(me,l)})});function Ne(re){for(var l=0;l<me.length;l+=2)if(re>=me[l]&&re<=me[l+1])return!0;return!1}var Ue=80,ze=function(l,d){return"M95,"+(622+l+d)+`
|
|
|
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`+l/2.075+" -"+l+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+l)+`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+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},et=function(l,d){return"M263,"+(601+l+d)+`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`+l/2.084+" -"+l+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+l)+`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+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},pt=function(l,d){return"M983 "+(10+l+d)+`
|
|
|
l`+l/3.13+" -"+l+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
|
|
|
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+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},gt=function(l,d){return"M424,"+(2398+l+d)+`
|
|
|
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`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+l)+`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+l)+" "+d+`
|
|
|
h400000v`+(40+l)+"h-400000z"},at=function(l,d){return"M473,"+(2713+l+d)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`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+l)+" "+d+"h400000v"+(40+l)+"H1017.7z"},Ot=function(l,d,h){var b=h-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
|
|
|
H742v`+b+`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 `+d+"H400000v"+(40+l)+"H742z"},en=function(l,d,h){d=1e3*d;var b="";switch(l){case"sqrtMain":b=ze(d,Ue);break;case"sqrtSize1":b=et(d,Ue);break;case"sqrtSize2":b=pt(d,Ue);break;case"sqrtSize3":b=gt(d,Ue);break;case"sqrtSize4":b=at(d,Ue);break;case"sqrtTall":b=Ot(d,Ue,h)}return b},Rt={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`},Zt=function(){function re(d){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=d,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=re.prototype;return l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){for(var h=document.createDocumentFragment(),b=0;b<this.children.length;b++)h.appendChild(this.children[b].toNode());return h},l.toMarkup=function(){for(var h="",b=0;b<this.children.length;b++)h+=this.children[b].toMarkup();return h},l.toText=function(){var h=function(M){return M.toText()};return this.children.map(h).join("")},re}(),ut=function(l){return l.filter(function(d){return d}).join(" ")},Ct=function(l,d,h){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},d){d.style.isTight()&&this.classes.push("mtight");var b=d.getColor();b&&(this.style.color=b)}},he=function(l){var d=document.createElement(l);d.className=ut(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(d.style[h]=this.style[h]);for(var b in this.attributes)this.attributes.hasOwnProperty(b)&&d.setAttribute(b,this.attributes[b]);for(var M=0;M<this.children.length;M++)d.appendChild(this.children[M].toNode());return d},pe=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+z.escape(ut(this.classes))+'"');var h="";for(var b in this.style)this.style.hasOwnProperty(b)&&(h+=z.hyphenate(b)+":"+this.style[b]+";");h&&(d+=' style="'+z.escape(h)+'"');for(var M in this.attributes)this.attributes.hasOwnProperty(M)&&(d+=" "+M+'="'+z.escape(this.attributes[M])+'"');d+=">";for(var se=0;se<this.children.length;se++)d+=this.children[se].toMarkup();return d+="</"+l+">",d},le=function(){function re(d,h,b,M){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,Ct.call(this,d,b,M),this.children=h||[]}var l=re.prototype;return l.setAttribute=function(h,b){this.attributes[h]=b},l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){return he.call(this,"span")},l.toMarkup=function(){return pe.call(this,"span")},re}(),J=function(){function re(d,h,b,M){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,Ct.call(this,h,M),this.children=b||[],this.setAttribute("href",d)}var l=re.prototype;return l.setAttribute=function(h,b){this.attributes[h]=b},l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){return he.call(this,"a")},l.toMarkup=function(){return pe.call(this,"a")},re}(),Ie=function(){function re(d,h,b){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=h,this.src=d,this.classes=["mord"],this.style=b}var l=re.prototype;return l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var b in this.style)this.style.hasOwnProperty(b)&&(h.style[b]=this.style[b]);return h},l.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",b="";for(var M in this.style)this.style.hasOwnProperty(M)&&(b+=z.hyphenate(M)+":"+this.style[M]+";");return b&&(h+=' style="'+z.escape(b)+'"'),h+="'/>",h},re}(),H={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},R=function(){function re(d,h,b,M,se,Re,Pe,Je){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=d,this.height=h||0,this.depth=b||0,this.italic=M||0,this.skew=se||0,this.width=Re||0,this.classes=Pe||[],this.style=Je||{},this.maxFontSize=0;var ft=Z(this.text.charCodeAt(0));ft&&this.classes.push(ft+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=H[this.text])}var l=re.prototype;return l.hasClass=function(h){return z.contains(this.classes,h)},l.toNode=function(){var h=document.createTextNode(this.text),b=null;this.italic>0&&(b=document.createElement("span"),b.style.marginRight=this.italic+"em"),this.classes.length>0&&(b=b||document.createElement("span"),b.className=ut(this.classes));for(var M in this.style)this.style.hasOwnProperty(M)&&(b=b||document.createElement("span"),b.style[M]=this.style[M]);return b?(b.appendChild(h),b):h},l.toMarkup=function(){var h=!1,b="<span";this.classes.length&&(h=!0,b+=' class="',b+=z.escape(ut(this.classes)),b+='"');var M="";this.italic>0&&(M+="margin-right:"+this.italic+"em;");for(var se in this.style)this.style.hasOwnProperty(se)&&(M+=z.hyphenate(se)+":"+this.style[se]+";");M&&(h=!0,b+=' style="'+z.escape(M)+'"');var Re=z.escape(this.text);return h?(b+=">",b+=Re,b+="</span>",b):Re},re}(),P=function(){function re(d,h){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=h||{}}var l=re.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"svg");for(var M in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,M)&&b.setAttribute(M,this.attributes[M]);for(var se=0;se<this.children.length;se++)b.appendChild(this.children[se].toNode());return b},l.toMarkup=function(){var h="<svg";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");h+=">";for(var M=0;M<this.children.length;M++)h+=this.children[M].toMarkup();return h+="</svg>",h},re}(),fe=function(){function re(d,h){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=h}var l=re.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"path");return this.alternate?b.setAttribute("d",this.alternate):b.setAttribute("d",Rt[this.pathName]),b},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Rt[this.pathName]+"'/>"},re}(),oe=function(){function re(d){this.attributes=void 0,this.attributes=d||{}}var l=re.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",b=document.createElementNS(h,"line");for(var M in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,M)&&b.setAttribute(M,this.attributes[M]);return b},l.toMarkup=function(){var h="<line";for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+"='"+this.attributes[b]+"'");return h+="/>",h},re}();function te(re){if(re instanceof R)return re;throw new Error("Expected symbolNode but got "+String(re)+".")}function Ae(re){if(re instanceof le)return re;throw new Error("Expected span<HtmlDomNode> but got "+String(re)+".")}var je={"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]},Be={\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 qe(re,l){je[re]=l}function Qe(re,l,d){if(!je[l])throw new Error("Font metrics not found for font: "+l+".");var h=re.charCodeAt(0),b=je[l][h];if(!b&&re[0]in Be&&(h=Be[re[0]].charCodeAt(0),b=je[l][h]),!b&&d==="text"&&Ne(h)&&(b=je[l][77]),b)return{depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]}}var Ve={};function xt(re){var l;if(re>=5?l=0:re>=3?l=1:l=2,!Ve[l]){var d=Ve[l]={cssEmPerMu:ke.quad[l]/18};for(var h in ke)ke.hasOwnProperty(h)&&(d[h]=ke[h][l])}return Ve[l]}var Dt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},vt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Bt={math:{},text:{}},jt=Bt;function C(re,l,d,h,b,M){Bt[re][b]={font:l,group:d,replace:h},M&&h&&(Bt[re][h]=Bt[re][b])}var B="math",yt="text",ye="main",Me="ams",Sn="accent-token",it="bin",nt="close",rt="inner",Ee="mathord",De="op-token",Fe="open",tt="punct",_e="rel",Jt="spacing",Ze="textord";C(B,ye,_e,"\u2261","\\equiv",!0),C(B,ye,_e,"\u227A","\\prec",!0),C(B,ye,_e,"\u227B","\\succ",!0),C(B,ye,_e,"\u223C","\\sim",!0),C(B,ye,_e,"\u22A5","\\perp"),C(B,ye,_e,"\u2AAF","\\preceq",!0),C(B,ye,_e,"\u2AB0","\\succeq",!0),C(B,ye,_e,"\u2243","\\simeq",!0),C(B,ye,_e,"\u2223","\\mid",!0),C(B,ye,_e,"\u226A","\\ll",!0),C(B,ye,_e,"\u226B","\\gg",!0),C(B,ye,_e,"\u224D","\\asymp",!0),C(B,ye,_e,"\u2225","\\parallel"),C(B,ye,_e,"\u22C8","\\bowtie",!0),C(B,ye,_e,"\u2323","\\smile",!0),C(B,ye,_e,"\u2291","\\sqsubseteq",!0),C(B,ye,_e,"\u2292","\\sqsupseteq",!0),C(B,ye,_e,"\u2250","\\doteq",!0),C(B,ye,_e,"\u2322","\\frown",!0),C(B,ye,_e,"\u220B","\\ni",!0),C(B,ye,_e,"\u221D","\\propto",!0),C(B,ye,_e,"\u22A2","\\vdash",!0),C(B,ye,_e,"\u22A3","\\dashv",!0),C(B,ye,_e,"\u220B","\\owns"),C(B,ye,tt,".","\\ldotp"),C(B,ye,tt,"\u22C5","\\cdotp"),C(B,ye,Ze,"#","\\#"),C(yt,ye,Ze,"#","\\#"),C(B,ye,Ze,"&","\\&"),C(yt,ye,Ze,"&","\\&"),C(B,ye,Ze,"\u2135","\\aleph",!0),C(B,ye,Ze,"\u2200","\\forall",!0),C(B,ye,Ze,"\u210F","\\hbar",!0),C(B,ye,Ze,"\u2203","\\exists",!0),C(B,ye,Ze,"\u2207","\\nabla",!0),C(B,ye,Ze,"\u266D","\\flat",!0),C(B,ye,Ze,"\u2113","\\ell",!0),C(B,ye,Ze,"\u266E","\\natural",!0),C(B,ye,Ze,"\u2663","\\clubsuit",!0),C(B,ye,Ze,"\u2118","\\wp",!0),C(B,ye,Ze,"\u266F","\\sharp",!0),C(B,ye,Ze,"\u2662","\\diamondsuit",!0),C(B,ye,Ze,"\u211C","\\Re",!0),C(B,ye,Ze,"\u2661","\\heartsuit",!0),C(B,ye,Ze,"\u2111","\\Im",!0),C(B,ye,Ze,"\u2660","\\spadesuit",!0),C(yt,ye,Ze,"\xA7","\\S",!0),C(yt,ye,Ze,"\xB6","\\P",!0),C(B,ye,Ze,"\u2020","\\dag"),C(yt,ye,Ze,"\u2020","\\dag"),C(yt,ye,Ze,"\u2020","\\textdagger"),C(B,ye,Ze,"\u2021","\\ddag"),C(yt,ye,Ze,"\u2021","\\ddag"),C(yt,ye,Ze,"\u2021","\\textdaggerdbl"),C(B,ye,nt,"\u23B1","\\rmoustache",!0),C(B,ye,Fe,"\u23B0","\\lmoustache",!0),C(B,ye,nt,"\u27EF","\\rgroup",!0),C(B,ye,Fe,"\u27EE","\\lgroup",!0),C(B,ye,it,"\u2213","\\mp",!0),C(B,ye,it,"\u2296","\\ominus",!0),C(B,ye,it,"\u228E","\\uplus",!0),C(B,ye,it,"\u2293","\\sqcap",!0),C(B,ye,it,"\u2217","\\ast"),C(B,ye,it,"\u2294","\\sqcup",!0),C(B,ye,it,"\u25EF","\\bigcirc"),C(B,ye,it,"\u2219","\\bullet"),C(B,ye,it,"\u2021","\\ddagger"),C(B,ye,it,"\u2240","\\wr",!0),C(B,ye,it,"\u2A3F","\\amalg"),C(B,ye,it,"&","\\And"),C(B,ye,_e,"\u27F5","\\longleftarrow",!0),C(B,ye,_e,"\u21D0","\\Leftarrow",!0),C(B,ye,_e,"\u27F8","\\Longleftarrow",!0),C(B,ye,_e,"\u27F6","\\longrightarrow",!0),C(B,ye,_e,"\u21D2","\\Rightarrow",!0),C(B,ye,_e,"\u27F9","\\Longrightarrow",!0),C(B,ye,_e,"\u2194","\\leftrightarrow",!0),C(B,ye,_e,"\u27F7","\\longleftrightarrow",!0),C(B,ye,_e,"\u21D4","\\Leftrightarrow",!0),C(B,ye,_e,"\u27FA","\\Longleftrightarrow",!0),C(B,ye,_e,"\u21A6","\\mapsto",!0),C(B,ye,_e,"\u27FC","\\longmapsto",!0),C(B,ye,_e,"\u2197","\\nearrow",!0),C(B,ye,_e,"\u21A9","\\hookleftarrow",!0),C(B,ye,_e,"\u21AA","\\hookrightarrow",!0),C(B,ye,_e,"\u2198","\\searrow",!0),C(B,ye,_e,"\u21BC","\\leftharpoonup",!0),C(B,ye,_e,"\u21C0","\\rightharpoonup",!0),C(B,ye,_e,"\u2199","\\swarrow",!0),C(B,ye,_e,"\u21BD","\\leftharpoondown",!0),C(B,ye,_e,"\u21C1","\\rightharpoondown",!0),C(B,ye,_e,"\u2196","\\nwarrow",!0),C(B,ye,_e,"\u21CC","\\rightleftharpoons",!0),C(B,Me,_e,"\u226E","\\nless",!0),C(B,Me,_e,"\uE010","\\@nleqslant"),C(B,Me,_e,"\uE011","\\@nleqq"),C(B,Me,_e,"\u2A87","\\lneq",!0),C(B,Me,_e,"\u2268","\\lneqq",!0),C(B,Me,_e,"\uE00C","\\@lvertneqq"),C(B,Me,_e,"\u22E6","\\lnsim",!0),C(B,Me,_e,"\u2A89","\\lnapprox",!0),C(B,Me,_e,"\u2280","\\nprec",!0),C(B,Me,_e,"\u22E0","\\npreceq",!0),C(B,Me,_e,"\u22E8","\\precnsim",!0),C(B,Me,_e,"\u2AB9","\\precnapprox",!0),C(B,Me,_e,"\u2241","\\nsim",!0),C(B,Me,_e,"\uE006","\\@nshortmid"),C(B,Me,_e,"\u2224","\\nmid",!0),C(B,Me,_e,"\u22AC","\\nvdash",!0),C(B,Me,_e,"\u22AD","\\nvDash",!0),C(B,Me,_e,"\u22EA","\\ntriangleleft"),C(B,Me,_e,"\u22EC","\\ntrianglelefteq",!0),C(B,Me,_e,"\u228A","\\subsetneq",!0),C(B,Me,_e,"\uE01A","\\@varsubsetneq"),C(B,Me,_e,"\u2ACB","\\subsetneqq",!0),C(B,Me,_e,"\uE017","\\@varsubsetneqq"),C(B,Me,_e,"\u226F","\\ngtr",!0),C(B,Me,_e,"\uE00F","\\@ngeqslant"),C(B,Me,_e,"\uE00E","\\@ngeqq"),C(B,Me,_e,"\u2A88","\\gneq",!0),C(B,Me,_e,"\u2269","\\gneqq",!0),C(B,Me,_e,"\uE00D","\\@gvertneqq"),C(B,Me,_e,"\u22E7","\\gnsim",!0),C(B,Me,_e,"\u2A8A","\\gnapprox",!0),C(B,Me,_e,"\u2281","\\nsucc",!0),C(B,Me,_e,"\u22E1","\\nsucceq",!0),C(B,Me,_e,"\u22E9","\\succnsim",!0),C(B,Me,_e,"\u2ABA","\\succnapprox",!0),C(B,Me,_e,"\u2246","\\ncong",!0),C(B,Me,_e,"\uE007","\\@nshortparallel"),C(B,Me,_e,"\u2226","\\nparallel",!0),C(B,Me,_e,"\u22AF","\\nVDash",!0),C(B,Me,_e,"\u22EB","\\ntriangleright"),C(B,Me,_e,"\u22ED","\\ntrianglerighteq",!0),C(B,Me,_e,"\uE018","\\@nsupseteqq"),C(B,Me,_e,"\u228B","\\supsetneq",!0),C(B,Me,_e,"\uE01B","\\@varsupsetneq"),C(B,Me,_e,"\u2ACC","\\supsetneqq",!0),C(B,Me,_e,"\uE019","\\@varsupsetneqq"),C(B,Me,_e,"\u22AE","\\nVdash",!0),C(B,Me,_e,"\u2AB5","\\precneqq",!0),C(B,Me,_e,"\u2AB6","\\succneqq",!0),C(B,Me,_e,"\uE016","\\@nsubseteqq"),C(B,Me,it,"\u22B4","\\unlhd"),C(B,Me,it,"\u22B5","\\unrhd"),C(B,Me,_e,"\u219A","\\nleftarrow",!0),C(B,Me,_e,"\u219B","\\nrightarrow",!0),C(B,Me,_e,"\u21CD","\\nLeftarrow",!0),C(B,Me,_e,"\u21CF","\\nRightarrow",!0),C(B,Me,_e,"\u21AE","\\nleftrightarrow",!0),C(B,Me,_e,"\u21CE","\\nLeftrightarrow",!0),C(B,Me,_e,"\u25B3","\\vartriangle"),C(B,Me,Ze,"\u210F","\\hslash"),C(B,Me,Ze,"\u25BD","\\triangledown"),C(B,Me,Ze,"\u25CA","\\lozenge"),C(B,Me,Ze,"\u24C8","\\circledS"),C(B,Me,Ze,"\xAE","\\circledR"),C(yt,Me,Ze,"\xAE","\\circledR"),C(B,Me,Ze,"\u2221","\\measuredangle",!0),C(B,Me,Ze,"\u2204","\\nexists"),C(B,Me,Ze,"\u2127","\\mho"),C(B,Me,Ze,"\u2132","\\Finv",!0),C(B,Me,Ze,"\u2141","\\Game",!0),C(B,Me,Ze,"\u2035","\\backprime"),C(B,Me,Ze,"\u25B2","\\blacktriangle"),C(B,Me,Ze,"\u25BC","\\blacktriangledown"),C(B,Me,Ze,"\u25A0","\\blacksquare"),C(B,Me,Ze,"\u29EB","\\blacklozenge"),C(B,Me,Ze,"\u2605","\\bigstar"),C(B,Me,Ze,"\u2222","\\sphericalangle",!0),C(B,Me,Ze,"\u2201","\\complement",!0),C(B,Me,Ze,"\xF0","\\eth",!0),C(B,Me,Ze,"\u2571","\\diagup"),C(B,Me,Ze,"\u2572","\\diagdown"),C(B,Me,Ze,"\u25A1","\\square"),C(B,Me,Ze,"\u25A1","\\Box"),C(B,Me,Ze,"\u25CA","\\Diamond"),C(B,Me,Ze,"\xA5","\\yen",!0),C(yt,Me,Ze,"\xA5","\\yen",!0),C(B,Me,Ze,"\u2713","\\checkmark",!0),C(yt,Me,Ze,"\u2713","\\checkmark"),C(B,Me,Ze,"\u2136","\\beth",!0),C(B,Me,Ze,"\u2138","\\daleth",!0),C(B,Me,Ze,"\u2137","\\gimel",!0),C(B,Me,Ze,"\u03DD","\\digamma",!0),C(B,Me,Ze,"\u03F0","\\varkappa"),C(B,Me,Fe,"\u250C","\\ulcorner",!0),C(B,Me,nt,"\u2510","\\urcorner",!0),C(B,Me,Fe,"\u2514","\\llcorner",!0),C(B,Me,nt,"\u2518","\\lrcorner",!0),C(B,Me,_e,"\u2266","\\leqq",!0),C(B,Me,_e,"\u2A7D","\\leqslant",!0),C(B,Me,_e,"\u2A95","\\eqslantless",!0),C(B,Me,_e,"\u2272","\\lesssim",!0),C(B,Me,_e,"\u2A85","\\lessapprox",!0),C(B,Me,_e,"\u224A","\\approxeq",!0),C(B,Me,it,"\u22D6","\\lessdot"),C(B,Me,_e,"\u22D8","\\lll",!0),C(B,Me,_e,"\u2276","\\lessgtr",!0),C(B,Me,_e,"\u22DA","\\lesseqgtr",!0),C(B,Me,_e,"\u2A8B","\\lesseqqgtr",!0),C(B,Me,_e,"\u2251","\\doteqdot"),C(B,Me,_e,"\u2253","\\risingdotseq",!0),C(B,Me,_e,"\u2252","\\fallingdotseq",!0),C(B,Me,_e,"\u223D","\\backsim",!0),C(B,Me,_e,"\u22CD","\\backsimeq",!0),C(B,Me,_e,"\u2AC5","\\subseteqq",!0),C(B,Me,_e,"\u22D0","\\Subset",!0),C(B,Me,_e,"\u228F","\\sqsubset",!0),C(B,Me,_e,"\u227C","\\preccurlyeq",!0),C(B,Me,_e,"\u22DE","\\curlyeqprec",!0),C(B,Me,_e,"\u227E","\\precsim",!0),C(B,Me,_e,"\u2AB7","\\precapprox",!0),C(B,Me,_e,"\u22B2","\\vartriangleleft"),C(B,Me,_e,"\u22B4","\\trianglelefteq"),C(B,Me,_e,"\u22A8","\\vDash",!0),C(B,Me,_e,"\u22AA","\\Vvdash",!0),C(B,Me,_e,"\u2323","\\smallsmile"),C(B,Me,_e,"\u2322","\\smallfrown"),C(B,Me,_e,"\u224F","\\bumpeq",!0),C(B,Me,_e,"\u224E","\\Bumpeq",!0),C(B,Me,_e,"\u2267","\\geqq",!0),C(B,Me,_e,"\u2A7E","\\geqslant",!0),C(B,Me,_e,"\u2A96","\\eqslantgtr",!0),C(B,Me,_e,"\u2273","\\gtrsim",!0),C(B,Me,_e,"\u2A86","\\gtrapprox",!0),C(B,Me,it,"\u22D7","\\gtrdot"),C(B,Me,_e,"\u22D9","\\ggg",!0),C(B,Me,_e,"\u2277","\\gtrless",!0),C(B,Me,_e,"\u22DB","\\gtreqless",!0),C(B,Me,_e,"\u2A8C","\\gtreqqless",!0),C(B,Me,_e,"\u2256","\\eqcirc",!0),C(B,Me,_e,"\u2257","\\circeq",!0),C(B,Me,_e,"\u225C","\\triangleq",!0),C(B,Me,_e,"\u223C","\\thicksim"),C(B,Me,_e,"\u2248","\\thickapprox"),C(B,Me,_e,"\u2AC6","\\supseteqq",!0),C(B,Me,_e,"\u22D1","\\Supset",!0),C(B,Me,_e,"\u2290","\\sqsupset",!0),C(B,Me,_e,"\u227D","\\succcurlyeq",!0),C(B,Me,_e,"\u22DF","\\curlyeqsucc",!0),C(B,Me,_e,"\u227F","\\succsim",!0),C(B,Me,_e,"\u2AB8","\\succapprox",!0),C(B,Me,_e,"\u22B3","\\vartriangleright"),C(B,Me,_e,"\u22B5","\\trianglerighteq"),C(B,Me,_e,"\u22A9","\\Vdash",!0),C(B,Me,_e,"\u2223","\\shortmid"),C(B,Me,_e,"\u2225","\\shortparallel"),C(B,Me,_e,"\u226C","\\between",!0),C(B,Me,_e,"\u22D4","\\pitchfork",!0),C(B,Me,_e,"\u221D","\\varpropto"),C(B,Me,_e,"\u25C0","\\blacktriangleleft"),C(B,Me,_e,"\u2234","\\therefore",!0),C(B,Me,_e,"\u220D","\\backepsilon"),C(B,Me,_e,"\u25B6","\\blacktriangleright"),C(B,Me,_e,"\u2235","\\because",!0),C(B,Me,_e,"\u22D8","\\llless"),C(B,Me,_e,"\u22D9","\\gggtr"),C(B,Me,it,"\u22B2","\\lhd"),C(B,Me,it,"\u22B3","\\rhd"),C(B,Me,_e,"\u2242","\\eqsim",!0),C(B,ye,_e,"\u22C8","\\Join"),C(B,Me,_e,"\u2251","\\Doteq",!0),C(B,Me,it,"\u2214","\\dotplus",!0),C(B,Me,it,"\u2216","\\smallsetminus"),C(B,Me,it,"\u22D2","\\Cap",!0),C(B,Me,it,"\u22D3","\\Cup",!0),C(B,Me,it,"\u2A5E","\\doublebarwedge",!0),C(B,Me,it,"\u229F","\\boxminus",!0),C(B,Me,it,"\u229E","\\boxplus",!0),C(B,Me,it,"\u22C7","\\divideontimes",!0),C(B,Me,it,"\u22C9","\\ltimes",!0),C(B,Me,it,"\u22CA","\\rtimes",!0),C(B,Me,it,"\u22CB","\\leftthreetimes",!0),C(B,Me,it,"\u22CC","\\rightthreetimes",!0),C(B,Me,it,"\u22CF","\\curlywedge",!0),C(B,Me,it,"\u22CE","\\curlyvee",!0),C(B,Me,it,"\u229D","\\circleddash",!0),C(B,Me,it,"\u229B","\\circledast",!0),C(B,Me,it,"\u22C5","\\centerdot"),C(B,Me,it,"\u22BA","\\intercal",!0),C(B,Me,it,"\u22D2","\\doublecap"),C(B,Me,it,"\u22D3","\\doublecup"),C(B,Me,it,"\u22A0","\\boxtimes",!0),C(B,Me,_e,"\u21E2","\\dashrightarrow",!0),C(B,Me,_e,"\u21E0","\\dashleftarrow",!0),C(B,Me,_e,"\u21C7","\\leftleftarrows",!0),C(B,Me,_e,"\u21C6","\\leftrightarrows",!0),C(B,Me,_e,"\u21DA","\\Lleftarrow",!0),C(B,Me,_e,"\u219E","\\twoheadleftarrow",!0),C(B,Me,_e,"\u21A2","\\leftarrowtail",!0),C(B,Me,_e,"\u21AB","\\looparrowleft",!0),C(B,Me,_e,"\u21CB","\\leftrightharpoons",!0),C(B,Me,_e,"\u21B6","\\curvearrowleft",!0),C(B,Me,_e,"\u21BA","\\circlearrowleft",!0),C(B,Me,_e,"\u21B0","\\Lsh",!0),C(B,Me,_e,"\u21C8","\\upuparrows",!0),C(B,Me,_e,"\u21BF","\\upharpoonleft",!0),C(B,Me,_e,"\u21C3","\\downharpoonleft",!0),C(B,Me,_e,"\u22B8","\\multimap",!0),C(B,Me,_e,"\u21AD","\\leftrightsquigarrow",!0),C(B,Me,_e,"\u21C9","\\rightrightarrows",!0),C(B,Me,_e,"\u21C4","\\rightleftarrows",!0),C(B,Me,_e,"\u21A0","\\twoheadrightarrow",!0),C(B,Me,_e,"\u21A3","\\rightarrowtail",!0),C(B,Me,_e,"\u21AC","\\looparrowright",!0),C(B,Me,_e,"\u21B7","\\curvearrowright",!0),C(B,Me,_e,"\u21BB","\\circlearrowright",!0),C(B,Me,_e,"\u21B1","\\Rsh",!0),C(B,Me,_e,"\u21CA","\\downdownarrows",!0),C(B,Me,_e,"\u21BE","\\upharpoonright",!0),C(B,Me,_e,"\u21C2","\\downharpoonright",!0),C(B,Me,_e,"\u21DD","\\rightsquigarrow",!0),C(B,Me,_e,"\u21DD","\\leadsto"),C(B,Me,_e,"\u21DB","\\Rrightarrow",!0),C(B,Me,_e,"\u21BE","\\restriction"),C(B,ye,Ze,"\u2018","`"),C(B,ye,Ze,"$","\\$"),C(yt,ye,Ze,"$","\\$"),C(yt,ye,Ze,"$","\\textdollar"),C(B,ye,Ze,"%","\\%"),C(yt,ye,Ze,"%","\\%"),C(B,ye,Ze,"_","\\_"),C(yt,ye,Ze,"_","\\_"),C(yt,ye,Ze,"_","\\textunderscore"),C(B,ye,Ze,"\u2220","\\angle",!0),C(B,ye,Ze,"\u221E","\\infty",!0),C(B,ye,Ze,"\u2032","\\prime"),C(B,ye,Ze,"\u25B3","\\triangle"),C(B,ye,Ze,"\u0393","\\Gamma",!0),C(B,ye,Ze,"\u0394","\\Delta",!0),C(B,ye,Ze,"\u0398","\\Theta",!0),C(B,ye,Ze,"\u039B","\\Lambda",!0),C(B,ye,Ze,"\u039E","\\Xi",!0),C(B,ye,Ze,"\u03A0","\\Pi",!0),C(B,ye,Ze,"\u03A3","\\Sigma",!0),C(B,ye,Ze,"\u03A5","\\Upsilon",!0),C(B,ye,Ze,"\u03A6","\\Phi",!0),C(B,ye,Ze,"\u03A8","\\Psi",!0),C(B,ye,Ze,"\u03A9","\\Omega",!0),C(B,ye,Ze,"A","\u0391"),C(B,ye,Ze,"B","\u0392"),C(B,ye,Ze,"E","\u0395"),C(B,ye,Ze,"Z","\u0396"),C(B,ye,Ze,"H","\u0397"),C(B,ye,Ze,"I","\u0399"),C(B,ye,Ze,"K","\u039A"),C(B,ye,Ze,"M","\u039C"),C(B,ye,Ze,"N","\u039D"),C(B,ye,Ze,"O","\u039F"),C(B,ye,Ze,"P","\u03A1"),C(B,ye,Ze,"T","\u03A4"),C(B,ye,Ze,"X","\u03A7"),C(B,ye,Ze,"\xAC","\\neg",!0),C(B,ye,Ze,"\xAC","\\lnot"),C(B,ye,Ze,"\u22A4","\\top"),C(B,ye,Ze,"\u22A5","\\bot"),C(B,ye,Ze,"\u2205","\\emptyset"),C(B,Me,Ze,"\u2205","\\varnothing"),C(B,ye,Ee,"\u03B1","\\alpha",!0),C(B,ye,Ee,"\u03B2","\\beta",!0),C(B,ye,Ee,"\u03B3","\\gamma",!0),C(B,ye,Ee,"\u03B4","\\delta",!0),C(B,ye,Ee,"\u03F5","\\epsilon",!0),C(B,ye,Ee,"\u03B6","\\zeta",!0),C(B,ye,Ee,"\u03B7","\\eta",!0),C(B,ye,Ee,"\u03B8","\\theta",!0),C(B,ye,Ee,"\u03B9","\\iota",!0),C(B,ye,Ee,"\u03BA","\\kappa",!0),C(B,ye,Ee,"\u03BB","\\lambda",!0),C(B,ye,Ee,"\u03BC","\\mu",!0),C(B,ye,Ee,"\u03BD","\\nu",!0),C(B,ye,Ee,"\u03BE","\\xi",!0),C(B,ye,Ee,"\u03BF","\\omicron",!0),C(B,ye,Ee,"\u03C0","\\pi",!0),C(B,ye,Ee,"\u03C1","\\rho",!0),C(B,ye,Ee,"\u03C3","\\sigma",!0),C(B,ye,Ee,"\u03C4","\\tau",!0),C(B,ye,Ee,"\u03C5","\\upsilon",!0),C(B,ye,Ee,"\u03D5","\\phi",!0),C(B,ye,Ee,"\u03C7","\\chi",!0),C(B,ye,Ee,"\u03C8","\\psi",!0),C(B,ye,Ee,"\u03C9","\\omega",!0),C(B,ye,Ee,"\u03B5","\\varepsilon",!0),C(B,ye,Ee,"\u03D1","\\vartheta",!0),C(B,ye,Ee,"\u03D6","\\varpi",!0),C(B,ye,Ee,"\u03F1","\\varrho",!0),C(B,ye,Ee,"\u03C2","\\varsigma",!0),C(B,ye,Ee,"\u03C6","\\varphi",!0),C(B,ye,it,"\u2217","*"),C(B,ye,it,"+","+"),C(B,ye,it,"\u2212","-"),C(B,ye,it,"\u22C5","\\cdot",!0),C(B,ye,it,"\u2218","\\circ"),C(B,ye,it,"\xF7","\\div",!0),C(B,ye,it,"\xB1","\\pm",!0),C(B,ye,it,"\xD7","\\times",!0),C(B,ye,it,"\u2229","\\cap",!0),C(B,ye,it,"\u222A","\\cup",!0),C(B,ye,it,"\u2216","\\setminus"),C(B,ye,it,"\u2227","\\land"),C(B,ye,it,"\u2228","\\lor"),C(B,ye,it,"\u2227","\\wedge",!0),C(B,ye,it,"\u2228","\\vee",!0),C(B,ye,Ze,"\u221A","\\surd"),C(B,ye,Fe,"(","("),C(B,ye,Fe,"[","["),C(B,ye,Fe,"\u27E8","\\langle",!0),C(B,ye,Fe,"\u2223","\\lvert"),C(B,ye,Fe,"\u2225","\\lVert"),C(B,ye,nt,")",")"),C(B,ye,nt,"]","]"),C(B,ye,nt,"?","?"),C(B,ye,nt,"!","!"),C(B,ye,nt,"\u27E9","\\rangle",!0),C(B,ye,nt,"\u2223","\\rvert"),C(B,ye,nt,"\u2225","\\rVert"),C(B,ye,_e,"=","="),C(B,ye,_e,"<","<"),C(B,ye,_e,">",">"),C(B,ye,_e,":",":"),C(B,ye,_e,"\u2248","\\approx",!0),C(B,ye,_e,"\u2245","\\cong",!0),C(B,ye,_e,"\u2265","\\ge"),C(B,ye,_e,"\u2265","\\geq",!0),C(B,ye,_e,"\u2190","\\gets"),C(B,ye,_e,">","\\gt"),C(B,ye,_e,"\u2208","\\in",!0),C(B,ye,_e,"\uE020","\\@not"),C(B,ye,_e,"\u2282","\\subset",!0),C(B,ye,_e,"\u2283","\\supset",!0),C(B,ye,_e,"\u2286","\\subseteq",!0),C(B,ye,_e,"\u2287","\\supseteq",!0),C(B,Me,_e,"\u2288","\\nsubseteq",!0),C(B,Me,_e,"\u2289","\\nsupseteq",!0),C(B,ye,_e,"\u22A8","\\models"),C(B,ye,_e,"\u2190","\\leftarrow",!0),C(B,ye,_e,"\u2264","\\le"),C(B,ye,_e,"\u2264","\\leq",!0),C(B,ye,_e,"<","\\lt"),C(B,ye,_e,"\u2192","\\rightarrow",!0),C(B,ye,_e,"\u2192","\\to"),C(B,Me,_e,"\u2271","\\ngeq",!0),C(B,Me,_e,"\u2270","\\nleq",!0),C(B,ye,Jt,"\xA0","\\ "),C(B,ye,Jt,"\xA0","~"),C(B,ye,Jt,"\xA0","\\space"),C(B,ye,Jt,"\xA0","\\nobreakspace"),C(yt,ye,Jt,"\xA0","\\ "),C(yt,ye,Jt,"\xA0","~"),C(yt,ye,Jt,"\xA0","\\space"),C(yt,ye,Jt,"\xA0","\\nobreakspace"),C(B,ye,Jt,null,"\\nobreak"),C(B,ye,Jt,null,"\\allowbreak"),C(B,ye,tt,",",","),C(B,ye,tt,";",";"),C(B,Me,it,"\u22BC","\\barwedge",!0),C(B,Me,it,"\u22BB","\\veebar",!0),C(B,ye,it,"\u2299","\\odot",!0),C(B,ye,it,"\u2295","\\oplus",!0),C(B,ye,it,"\u2297","\\otimes",!0),C(B,ye,Ze,"\u2202","\\partial",!0),C(B,ye,it,"\u2298","\\oslash",!0),C(B,Me,it,"\u229A","\\circledcirc",!0),C(B,Me,it,"\u22A1","\\boxdot",!0),C(B,ye,it,"\u25B3","\\bigtriangleup"),C(B,ye,it,"\u25BD","\\bigtriangledown"),C(B,ye,it,"\u2020","\\dagger"),C(B,ye,it,"\u22C4","\\diamond"),C(B,ye,it,"\u22C6","\\star"),C(B,ye,it,"\u25C3","\\triangleleft"),C(B,ye,it,"\u25B9","\\triangleright"),C(B,ye,Fe,"{","\\{"),C(yt,ye,Ze,"{","\\{"),C(yt,ye,Ze,"{","\\textbraceleft"),C(B,ye,nt,"}","\\}"),C(yt,ye,Ze,"}","\\}"),C(yt,ye,Ze,"}","\\textbraceright"),C(B,ye,Fe,"{","\\lbrace"),C(B,ye,nt,"}","\\rbrace"),C(B,ye,Fe,"[","\\lbrack"),C(yt,ye,Ze,"[","\\lbrack"),C(B,ye,nt,"]","\\rbrack"),C(yt,ye,Ze,"]","\\rbrack"),C(B,ye,Fe,"(","\\lparen"),C(B,ye,nt,")","\\rparen"),C(yt,ye,Ze,"<","\\textless"),C(yt,ye,Ze,">","\\textgreater"),C(B,ye,Fe,"\u230A","\\lfloor",!0),C(B,ye,nt,"\u230B","\\rfloor",!0),C(B,ye,Fe,"\u2308","\\lceil",!0),C(B,ye,nt,"\u2309","\\rceil",!0),C(B,ye,Ze,"\\","\\backslash"),C(B,ye,Ze,"\u2223","|"),C(B,ye,Ze,"\u2223","\\vert"),C(yt,ye,Ze,"|","\\textbar"),C(B,ye,Ze,"\u2225","\\|"),C(B,ye,Ze,"\u2225","\\Vert"),C(yt,ye,Ze,"\u2225","\\textbardbl"),C(yt,ye,Ze,"~","\\textasciitilde"),C(yt,ye,Ze,"\\","\\textbackslash"),C(yt,ye,Ze,"^","\\textasciicircum"),C(B,ye,_e,"\u2191","\\uparrow",!0),C(B,ye,_e,"\u21D1","\\Uparrow",!0),C(B,ye,_e,"\u2193","\\downarrow",!0),C(B,ye,_e,"\u21D3","\\Downarrow",!0),C(B,ye,_e,"\u2195","\\updownarrow",!0),C(B,ye,_e,"\u21D5","\\Updownarrow",!0),C(B,ye,De,"\u2210","\\coprod"),C(B,ye,De,"\u22C1","\\bigvee"),C(B,ye,De,"\u22C0","\\bigwedge"),C(B,ye,De,"\u2A04","\\biguplus"),C(B,ye,De,"\u22C2","\\bigcap"),C(B,ye,De,"\u22C3","\\bigcup"),C(B,ye,De,"\u222B","\\int"),C(B,ye,De,"\u222B","\\intop"),C(B,ye,De,"\u222C","\\iint"),C(B,ye,De,"\u222D","\\iiint"),C(B,ye,De,"\u220F","\\prod"),C(B,ye,De,"\u2211","\\sum"),C(B,ye,De,"\u2A02","\\bigotimes"),C(B,ye,De,"\u2A01","\\bigoplus"),C(B,ye,De,"\u2A00","\\bigodot"),C(B,ye,De,"\u222E","\\oint"),C(B,ye,De,"\u222F","\\oiint"),C(B,ye,De,"\u2230","\\oiiint"),C(B,ye,De,"\u2A06","\\bigsqcup"),C(B,ye,De,"\u222B","\\smallint"),C(yt,ye,rt,"\u2026","\\textellipsis"),C(B,ye,rt,"\u2026","\\mathellipsis"),C(yt,ye,rt,"\u2026","\\ldots",!0),C(B,ye,rt,"\u2026","\\ldots",!0),C(B,ye,rt,"\u22EF","\\@cdots",!0),C(B,ye,rt,"\u22F1","\\ddots",!0),C(B,ye,Ze,"\u22EE","\\varvdots"),C(B,ye,Sn,"\u02CA","\\acute"),C(B,ye,Sn,"\u02CB","\\grave"),C(B,ye,Sn,"\xA8","\\ddot"),C(B,ye,Sn,"~","\\tilde"),C(B,ye,Sn,"\u02C9","\\bar"),C(B,ye,Sn,"\u02D8","\\breve"),C(B,ye,Sn,"\u02C7","\\check"),C(B,ye,Sn,"^","\\hat"),C(B,ye,Sn,"\u20D7","\\vec"),C(B,ye,Sn,"\u02D9","\\dot"),C(B,ye,Sn,"\u02DA","\\mathring"),C(B,ye,Ee,"\u0131","\\imath",!0),C(B,ye,Ee,"\u0237","\\jmath",!0),C(yt,ye,Ze,"\u0131","\\i",!0),C(yt,ye,Ze,"\u0237","\\j",!0),C(yt,ye,Ze,"\xDF","\\ss",!0),C(yt,ye,Ze,"\xE6","\\ae",!0),C(yt,ye,Ze,"\xE6","\\ae",!0),C(yt,ye,Ze,"\u0153","\\oe",!0),C(yt,ye,Ze,"\xF8","\\o",!0),C(yt,ye,Ze,"\xC6","\\AE",!0),C(yt,ye,Ze,"\u0152","\\OE",!0),C(yt,ye,Ze,"\xD8","\\O",!0),C(yt,ye,Sn,"\u02CA","\\'"),C(yt,ye,Sn,"\u02CB","\\`"),C(yt,ye,Sn,"\u02C6","\\^"),C(yt,ye,Sn,"\u02DC","\\~"),C(yt,ye,Sn,"\u02C9","\\="),C(yt,ye,Sn,"\u02D8","\\u"),C(yt,ye,Sn,"\u02D9","\\."),C(yt,ye,Sn,"\u02DA","\\r"),C(yt,ye,Sn,"\u02C7","\\v"),C(yt,ye,Sn,"\xA8",'\\"'),C(yt,ye,Sn,"\u02DD","\\H"),C(yt,ye,Sn,"\u25EF","\\textcircled");var xn={"--":!0,"---":!0,"``":!0,"''":!0};C(yt,ye,Ze,"\u2013","--"),C(yt,ye,Ze,"\u2013","\\textendash"),C(yt,ye,Ze,"\u2014","---"),C(yt,ye,Ze,"\u2014","\\textemdash"),C(yt,ye,Ze,"\u2018","`"),C(yt,ye,Ze,"\u2018","\\textquoteleft"),C(yt,ye,Ze,"\u2019","'"),C(yt,ye,Ze,"\u2019","\\textquoteright"),C(yt,ye,Ze,"\u201C","``"),C(yt,ye,Ze,"\u201C","\\textquotedblleft"),C(yt,ye,Ze,"\u201D","''"),C(yt,ye,Ze,"\u201D","\\textquotedblright"),C(B,ye,Ze,"\xB0","\\degree",!0),C(yt,ye,Ze,"\xB0","\\degree"),C(yt,ye,Ze,"\xB0","\\textdegree",!0),C(B,ye,Ee,"\xA3","\\pounds"),C(B,ye,Ee,"\xA3","\\mathsterling",!0),C(yt,ye,Ee,"\xA3","\\pounds"),C(yt,ye,Ee,"\xA3","\\textsterling",!0),C(B,Me,Ze,"\u2720","\\maltese"),C(yt,Me,Ze,"\u2720","\\maltese"),C(yt,ye,Jt,"\xA0","\\ "),C(yt,ye,Jt,"\xA0"," "),C(yt,ye,Jt,"\xA0","~");for(var Rn='0123456789/@."',Wn=0;Wn<Rn.length;Wn++){var yr=Rn.charAt(Wn);C(B,ye,Ze,yr,yr)}for(var vn='0123456789!@*()-=+[]<>|";:?/.,',wn=0;wn<vn.length;wn++){var Xe=vn.charAt(wn);C(yt,ye,Ze,Xe,Xe)}for(var Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Wt=0;Wt<Lt.length;Wt++){var Ke=Lt.charAt(Wt);C(B,ye,Ee,Ke,Ke),C(yt,ye,Ze,Ke,Ke)}C(B,Me,Ze,"C","\u2102"),C(yt,Me,Ze,"C","\u2102"),C(B,Me,Ze,"H","\u210D"),C(yt,Me,Ze,"H","\u210D"),C(B,Me,Ze,"N","\u2115"),C(yt,Me,Ze,"N","\u2115"),C(B,Me,Ze,"P","\u2119"),C(yt,Me,Ze,"P","\u2119"),C(B,Me,Ze,"Q","\u211A"),C(yt,Me,Ze,"Q","\u211A"),C(B,Me,Ze,"R","\u211D"),C(yt,Me,Ze,"R","\u211D"),C(B,Me,Ze,"Z","\u2124"),C(yt,Me,Ze,"Z","\u2124"),C(B,ye,Ee,"h","\u210E"),C(yt,ye,Ee,"h","\u210E");for(var Oe="",_t=0;_t<Lt.length;_t++){var wt=Lt.charAt(_t);Oe=String.fromCharCode(55349,56320+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56372+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56424+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56580+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56736+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56788+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56840+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56944+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),_t<26&&(Oe=String.fromCharCode(55349,56632+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe),Oe=String.fromCharCode(55349,56476+_t),C(B,ye,Ee,wt,Oe),C(yt,ye,Ze,wt,Oe))}Oe="\u{1D55C}",C(B,ye,Ee,"k",Oe),C(yt,ye,Ze,"k",Oe);for(var rn=0;rn<10;rn++){var Xt=rn.toString();Oe=String.fromCharCode(55349,57294+rn),C(B,ye,Ee,Xt,Oe),C(yt,ye,Ze,Xt,Oe),Oe=String.fromCharCode(55349,57314+rn),C(B,ye,Ee,Xt,Oe),C(yt,ye,Ze,Xt,Oe),Oe=String.fromCharCode(55349,57324+rn),C(B,ye,Ee,Xt,Oe),C(yt,ye,Ze,Xt,Oe),Oe=String.fromCharCode(55349,57334+rn),C(B,ye,Ee,Xt,Oe),C(yt,ye,Ze,Xt,Oe)}for(var cn="\xC7\xD0\xDE\xE7\xFE",nn=0;nn<cn.length;nn++){var pn=cn.charAt(nn);C(B,ye,Ee,pn,pn),C(yt,ye,Ze,pn,pn)}C(yt,ye,Ze,"\xF0","\xF0"),C(yt,ye,Ze,"\u2013","\u2013"),C(yt,ye,Ze,"\u2014","\u2014"),C(yt,ye,Ze,"\u2018","\u2018"),C(yt,ye,Ze,"\u2019","\u2019"),C(yt,ye,Ze,"\u201C","\u201C"),C(yt,ye,Ze,"\u201D","\u201D");var Ln=[["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"]],Kt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],zt=function(l,d){var h=l.charCodeAt(0),b=l.charCodeAt(1),M=(h-55296)*1024+(b-56320)+65536,se=d==="math"?0:1;if(119808<=M&&M<120484){var Re=Math.floor((M-119808)/26);return[Ln[Re][2],Ln[Re][se]]}else if(120782<=M&&M<=120831){var Pe=Math.floor((M-120782)/10);return[Kt[Pe][2],Kt[Pe][se]]}else{if(M===120485||M===120486)return[Ln[0][2],Ln[0][se]];if(120486<M&&M<120782)return["",""];throw new m("Unsupported character: "+l)}},ln=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],sn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mn=function(l,d){return d.size<2?l:ln[l-1][d.size-1]},un=function(){function re(d){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=d.style,this.color=d.color,this.size=d.size||re.BASESIZE,this.textSize=d.textSize||this.size,this.phantom=!!d.phantom,this.font=d.font||"",this.fontFamily=d.fontFamily||"",this.fontWeight=d.fontWeight||"",this.fontShape=d.fontShape||"",this.sizeMultiplier=sn[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=re.prototype;return l.extend=function(h){var b={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 M in h)h.hasOwnProperty(M)&&(b[M]=h[M]);return new re(b)},l.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:mn(this.textSize,h)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:sn[h-1]})},l.havingBaseStyle=function(h){h=h||this.style.text();var b=mn(re.BASESIZE,h);return this.size===b&&this.textSize===re.BASESIZE&&this.style===h?this:this.extend({style:h,size:b})},l.havingBaseSizing=function(){var h;switch(this.style.id){case 4:case 5:h=3;break;case 6:case 7:h=1;break;default:h=6}return this.extend({style:this.style.text(),size:h})},l.withColor=function(h){return this.extend({color:h})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(h){return this.extend({font:h})},l.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},l.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},l.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},l.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==re.BASESIZE?["sizing","reset-size"+this.size,"size"+re.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=xt(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},re}();un.BASESIZE=6;var ar=un,On={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},tn={ex:!0,em:!0,mu:!0},ct=function(l){return typeof l!="string"&&(l=l.unit),l in On||l in tn||l==="ex"},ht=function(l,d){var h;if(l.unit in On)h=On[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")h=d.fontMetrics().cssEmPerMu;else{var b;if(d.style.isTight()?b=d.havingStyle(d.style.text()):b=d,l.unit==="ex")h=b.fontMetrics().xHeight;else if(l.unit==="em")h=b.fontMetrics().quad;else throw new m("Invalid unit: '"+l.unit+"'");b!==d&&(h*=b.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*h,d.maxSize)},At=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Ft=function(l,d,h){return jt[h][l]&&jt[h][l].replace&&(l=jt[h][l].replace),{value:l,metrics:Qe(l,d,h)}},Pt=function(l,d,h,b,M){var se=Ft(l,d,h),Re=se.metrics;l=se.value;var Pe;if(Re){var Je=Re.italic;(h==="text"||b&&b.font==="mathit")&&(Je=0),Pe=new R(l,Re.height,Re.depth,Je,Re.skew,Re.width,M)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+h+"'")),Pe=new R(l,0,0,0,0,0,M);if(b){Pe.maxFontSize=b.sizeMultiplier,b.style.isTight()&&Pe.classes.push("mtight");var ft=b.getColor();ft&&(Pe.style.color=ft)}return Pe},Yt=function(l,d,h,b){return b===void 0&&(b=[]),h.font==="boldsymbol"&&Ft(l,"Main-Bold",d).metrics?Pt(l,"Main-Bold",d,h,b.concat(["mathbf"])):l==="\\"||jt[d][l].font==="main"?Pt(l,"Main-Regular",d,h,b):Pt(l,"AMS-Regular",d,h,b.concat(["amsrm"]))},Mt=function(l,d,h,b){return/[0-9]/.test(l.charAt(0))||z.contains(At,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},gn=function(l,d,h,b){return z.contains(At,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},An=function(l,d,h,b){return Ft(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Dn=function(l,d,h){var b=l.mode,M=l.text,se=["mord"],Re=b==="math"||b==="text"&&d.font,Pe=Re?d.font:d.fontFamily;if(M.charCodeAt(0)===55349){var Je=zt(M,b),ft=Je[0],Tt=Je[1];return Pt(M,ft,b,d,se.concat(Tt))}else if(Pe){var Ht,_n;if(Pe==="boldsymbol"||Pe==="mathnormal"){var Vt=Pe==="boldsymbol"?An(M,b,d,se):gn(M,b,d,se);Ht=Vt.fontName,_n=[Vt.fontClass]}else z.contains(At,M)?(Ht="Main-Italic",_n=["mathit"]):Re?(Ht=ei[Pe].fontName,_n=[Pe]):(Ht=Pr(Pe,d.fontWeight,d.fontShape),_n=[Pe,d.fontWeight,d.fontShape]);if(Ft(M,Ht,b).metrics)return Pt(M,Ht,b,d,se.concat(_n));if(xn.hasOwnProperty(M)&&Ht.substr(0,10)==="Typewriter"){for(var Ge=[],hn=0;hn<M.length;hn++)Ge.push(Pt(M[hn],Ht,b,d,se.concat(_n)));return Ir(Ge)}}if(h==="mathord"){var Tn=Mt(M,b,d,se);return Pt(M,Tn.fontName,b,d,se.concat([Tn.fontClass]))}else if(h==="textord"){var ur=jt[b][M]&&jt[b][M].font;if(ur==="ams"){var In=Pr("amsrm",d.fontWeight,d.fontShape);return Pt(M,In,b,d,se.concat("amsrm",d.fontWeight,d.fontShape))}else if(ur==="main"||!ur){var cr=Pr("textrm",d.fontWeight,d.fontShape);return Pt(M,cr,b,d,se.concat(d.fontWeight,d.fontShape))}else{var Ar=Pr(ur,d.fontWeight,d.fontShape);return Pt(M,Ar,b,d,se.concat(Ar,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},Xn=function(l,d){if(ut(l.classes)!==ut(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var h in l.style)if(l.style.hasOwnProperty(h)&&l.style[h]!==d.style[h])return!1;for(var b in d.style)if(d.style.hasOwnProperty(b)&&l.style[b]!==d.style[b])return!1;return!0},nr=function(l){for(var d=0;d<l.length-1;d++){var h=l[d],b=l[d+1];h instanceof R&&b instanceof R&&Xn(h,b)&&(h.text+=b.text,h.height=Math.max(h.height,b.height),h.depth=Math.max(h.depth,b.depth),h.italic=b.italic,l.splice(d+1,1),d--)}return l},dr=function(l){for(var d=0,h=0,b=0,M=0;M<l.children.length;M++){var se=l.children[M];se.height>d&&(d=se.height),se.depth>h&&(h=se.depth),se.maxFontSize>b&&(b=se.maxFontSize)}l.height=d,l.depth=h,l.maxFontSize=b},En=function(l,d,h,b){var M=new le(l,d,h,b);return dr(M),M},Cn=function(l,d,h,b){return new le(l,d,h,b)},pr=function(l,d,h){var b=En([l],[],d);return b.height=Math.max(h||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),b.style.borderBottomWidth=b.height+"em",b.maxFontSize=1,b},mr=function(l,d,h,b){var M=new J(l,d,h,b);return dr(M),M},Ir=function(l){var d=new Zt(l);return dr(d),d},rr=function(l,d){return l instanceof Zt?En([],[l],d):l},ir=function(l){if(l.positionType==="individualShift"){for(var d=l.children,h=[d[0]],b=-d[0].shift-d[0].elem.depth,M=b,se=1;se<d.length;se++){var Re=-d[se].shift-M-d[se].elem.depth,Pe=Re-(d[se-1].elem.height+d[se-1].elem.depth);M=M+Re,h.push({type:"kern",size:Pe}),h.push(d[se])}return{children:h,depth:b}}var Je;if(l.positionType==="top"){for(var ft=l.positionData,Tt=0;Tt<l.children.length;Tt++){var Ht=l.children[Tt];ft-=Ht.type==="kern"?Ht.size:Ht.elem.height+Ht.elem.depth}Je=ft}else if(l.positionType==="bottom")Je=-l.positionData;else{var _n=l.children[0];if(_n.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Je=-_n.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Je=-_n.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Je}},Cr=function(l,d){for(var h=ir(l),b=h.children,M=h.depth,se=0,Re=0;Re<b.length;Re++){var Pe=b[Re];if(Pe.type==="elem"){var Je=Pe.elem;se=Math.max(se,Je.maxFontSize,Je.height)}}se+=2;var ft=En(["pstrut"],[]);ft.style.height=se+"em";for(var Tt=[],Ht=M,_n=M,Vt=M,Ge=0;Ge<b.length;Ge++){var hn=b[Ge];if(hn.type==="kern")Vt+=hn.size;else{var Tn=hn.elem,ur=hn.wrapperClasses||[],In=hn.wrapperStyle||{},cr=En(ur,[ft,Tn],void 0,In);cr.style.top=-se-Vt-Tn.depth+"em",hn.marginLeft&&(cr.style.marginLeft=hn.marginLeft),hn.marginRight&&(cr.style.marginRight=hn.marginRight),Tt.push(cr),Vt+=Tn.height+Tn.depth}Ht=Math.min(Ht,Vt),_n=Math.max(_n,Vt)}var Ar=En(["vlist"],Tt);Ar.style.height=_n+"em";var Dr;if(Ht<0){var fi=En([],[]),hi=En(["vlist"],[fi]);hi.style.height=-Ht+"em";var ki=En(["vlist-s"],[new R("\u200B")]);Dr=[En(["vlist-r"],[Ar,ki]),En(["vlist-r"],[hi])]}else Dr=[En(["vlist-r"],[Ar])];var ci=En(["vlist-t"],Dr);return Dr.length===2&&ci.classes.push("vlist-t2"),ci.height=_n,ci.depth=-Ht,ci},tr=function(l,d){var h=En(["mspace"],[],d),b=ht(l,d);return h.style.marginRight=b+"em",h},Pr=function(l,d,h){var b="";switch(l){case"amsrm":b="AMS";break;case"textrm":b="Main";break;case"textsf":b="SansSerif";break;case"texttt":b="Typewriter";break;default:b=l}var M;return d==="textbf"&&h==="textit"?M="BoldItalic":d==="textbf"?M="Bold":d==="textit"?M="Italic":M="Regular",b+"-"+M},ei={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"}},Qn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},zn=function(l,d){var h=Qn[l],b=h[0],M=h[1],se=h[2],Re=new fe(b),Pe=new P([Re],{width:M+"em",height:se+"em",style:"width:"+M+"em",viewBox:"0 0 "+1e3*M+" "+1e3*se,preserveAspectRatio:"xMinYMin"}),Je=Cn(["overlay"],[Pe],d);return Je.height=se,Je.style.height=se+"em",Je.style.width=M+"em",Je},dt={fontMap:ei,makeSymbol:Pt,mathsym:Yt,makeSpan:En,makeSvgSpan:Cn,makeLineSpan:pr,makeAnchor:mr,makeFragment:Ir,wrapFragment:rr,makeVList:Cr,makeOrd:Dn,makeGlue:tr,staticSvg:zn,svgData:Qn,tryCombineChars:nr};function Bn(re,l){var d=or(re,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(re?"node of type "+re.type:String(re)));return d}function or(re,l){return re&&re.type===l?re:null}function qn(re,l){var d=Lr(re,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(re?re.type==="atom"?"atom of family "+re.family:"node of type "+re.type:String(re)));return d}function Lr(re,l){return re&&re.type==="atom"&&re.family===l?re:null}function Ur(re){var l=Vr(re);if(!l)throw new Error("Expected node of symbol group type, but got "+(re?"node of type "+re.type:String(re)));return l}function Vr(re){return re&&(re.type==="atom"||vt.hasOwnProperty(re.type))?re:null}var fr={number:3,unit:"mu"},Yr={number:4,unit:"mu"},Un={number:5,unit:"mu"},Pn={mord:{mop:fr,mbin:Yr,mrel:Un,minner:fr},mop:{mord:fr,mop:fr,mrel:Un,minner:fr},mbin:{mord:Yr,mop:Yr,mopen:Yr,minner:Yr},mrel:{mord:Un,mop:Un,mopen:Un,minner:Un},mopen:{},mclose:{mop:fr,mbin:Yr,mrel:Un,minner:fr},mpunct:{mord:fr,mop:fr,mrel:Un,mopen:fr,mclose:fr,mpunct:fr,minner:fr},minner:{mord:fr,mop:fr,mbin:Yr,mrel:Un,mopen:fr,mpunct:fr,minner:fr}},Er={mord:{mop:fr},mop:{mord:fr,mop:fr},mbin:{},mrel:{},mopen:{},mclose:{mop:fr},mpunct:{},minner:{mop:fr}},Mr={},ti={},Ri={};function Hn(re){for(var l=re.type,d=re.names,h=re.props,b=re.handler,M=re.htmlBuilder,se=re.mathmlBuilder,Re={type:l,numArgs:h.numArgs,argTypes:h.argTypes,greediness:h.greediness===void 0?1:h.greediness,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,handler:b},Pe=0;Pe<d.length;++Pe)Mr[d[Pe]]=Re;l&&(M&&(ti[l]=M),se&&(Ri[l]=se))}function ri(re){var l=re.type,d=re.htmlBuilder,h=re.mathmlBuilder;Hn({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:h})}var Xr=function(l){var d=or(l,"ordgroup");return d?d.body:[l]},di=dt.makeSpan,Mi=["leftmost","mbin","mopen","mrel","mop","mpunct"],bi=["rightmost","mrel","mclose","mpunct"],ii={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT},Ti={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},oi=function(l,d,h,b){b===void 0&&(b=[null,null]);for(var M=[],se=0;se<l.length;se++){var Re=Gr(l[se],d);if(Re instanceof Zt){var Pe=Re.children;M.push.apply(M,Pe)}else M.push(Re)}if(!h)return M;var Je=d;if(l.length===1){var ft=or(l[0],"sizing")||or(l[0],"styling");ft&&(ft.type==="sizing"?Je=d.havingSize(ft.size):ft.type==="styling"&&(Je=d.havingStyle(ii[ft.style])))}var Tt=di([b[0]||"leftmost"],[],d),Ht=di([b[1]||"rightmost"],[],d);return $i(M,function(_n,Vt){var Ge=Vt.classes[0],hn=_n.classes[0];Ge==="mbin"&&z.contains(bi,hn)?Vt.classes[0]="mord":hn==="mbin"&&z.contains(Mi,Ge)&&(_n.classes[0]="mord")},{node:Tt},Ht),$i(M,function(_n,Vt){var Ge=Ki(Vt),hn=Ki(_n),Tn=Ge&&hn?_n.hasClass("mtight")?Er[Ge][hn]:Pn[Ge][hn]:null;if(Tn)return dt.makeGlue(Tn,Je)},{node:Tt},Ht),M},$i=function re(l,d,h,b){b&&l.push(b);for(var M=0;M<l.length;M++){var se=l[M],Re=Tr(se);if(Re){re(Re.children,d,h);continue}if(se.classes[0]!=="mspace"){var Pe=d(se,h.node);Pe&&(h.insertAfter?h.insertAfter(Pe):(l.unshift(Pe),M++)),h.node=se,h.insertAfter=function(Je){return function(ft){l.splice(Je+1,0,ft),M++}}(M)}}b&&l.pop()},Tr=function(l){return l instanceof Zt||l instanceof J?l:null},Yi=function re(l,d){var h=Tr(l);if(h){var b=h.children;if(b.length){if(d==="right")return re(b[b.length-1],"right");if(d==="left")return re(b[0],"left")}}return l},Ki=function(l,d){return l?(d&&(l=Yi(l,d)),Ti[l.classes[0]]||null):null},Xi=function(l,d){var h=["nulldelimiter"].concat(l.baseSizingClasses());return di(d.concat(h))},Gr=function(l,d,h){if(!l)return di();if(ti[l.type]){var b=ti[l.type](l,d);if(h&&d.size!==h.size){b=di(d.sizingClasses(h),[b],d);var M=d.sizeMultiplier/h.sizeMultiplier;b.height*=M,b.depth*=M}return b}else throw new m("Got group of unknown type: '"+l.type+"'")};function cs(re,l){var d=di(["base"],re,l),h=di(["strut"]);return h.style.height=d.height+d.depth+"em",h.style.verticalAlign=-d.depth+"em",d.children.unshift(h),d}function ms(re,l){var d=null;re.length===1&&re[0].type==="tag"&&(d=re[0].tag,re=re[0].body);for(var h=oi(re,l,!0),b=[],M=[],se=0;se<h.length;se++)if(M.push(h[se]),h[se].hasClass("mbin")||h[se].hasClass("mrel")||h[se].hasClass("allowbreak")){for(var Re=!1;se<h.length-1&&h[se+1].hasClass("mspace")&&!h[se+1].hasClass("newline");)se++,M.push(h[se]),h[se].hasClass("nobreak")&&(Re=!0);Re||(b.push(cs(M,l)),M=[])}else h[se].hasClass("newline")&&(M.pop(),M.length>0&&(b.push(cs(M,l)),M=[]),b.push(h[se]));M.length>0&&b.push(cs(M,l));var Pe;d&&(Pe=cs(oi(d,l,!0)),Pe.classes=["tag"],b.push(Pe));var Je=di(["katex-html"],b);if(Je.setAttribute("aria-hidden","true"),Pe){var ft=Pe.children[0];ft.style.height=Je.height+Je.depth+"em",ft.style.verticalAlign=-Je.depth+"em"}return Je}function us(re){return new Zt(re)}var Fr=function(){function re(d,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=h||[]}var l=re.prototype;return l.setAttribute=function(h,b){this.attributes[h]=b},l.getAttribute=function(h){return this.attributes[h]},l.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&h.setAttribute(b,this.attributes[b]);for(var M=0;M<this.children.length;M++)h.appendChild(this.children[M].toNode());return h},l.toMarkup=function(){var h="<"+this.type;for(var b in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,b)&&(h+=" "+b+'="',h+=z.escape(this.attributes[b]),h+='"');h+=">";for(var M=0;M<this.children.length;M++)h+=this.children[M].toMarkup();return h+="</"+this.type+">",h},l.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},re}(),ds=function(){function re(d){this.text=void 0,this.text=d}var l=re.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return z.escape(this.toText())},l.toText=function(){return this.text},re}(),Cs=function(){function re(d){this.width=void 0,this.character=void 0,this.width=d,d>=.05555&&d<=.05556?this.character="\u200A":d>=.1666&&d<=.1667?this.character="\u2009":d>=.2222&&d<=.2223?this.character="\u2005":d>=.2777&&d<=.2778?this.character="\u2005\u200A":d>=-.05556&&d<=-.05555?this.character="\u200A\u2063":d>=-.1667&&d<=-.1666?this.character="\u2009\u2063":d>=-.2223&&d<=-.2222?this.character="\u205F\u2063":d>=-.2778&&d<=-.2777?this.character="\u2005\u2063":this.character=null}var l=re.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var h=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return h.setAttribute("width",this.width+"em"),h},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},re}(),Nn={MathNode:Fr,TextNode:ds,SpaceNode:Cs,newDocumentFragment:us},Bi=function(l,d,h){return jt[d][l]&&jt[d][l].replace&&l.charCodeAt(0)!==55349&&!(xn.hasOwnProperty(l)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(l=jt[d][l].replace),new Nn.TextNode(l)},is=function(l){return l.length===1?l[0]:new Nn.MathNode("mrow",l)},gr=function(l,d){if(d.fontFamily==="texttt")return"monospace";if(d.fontFamily==="textsf")return d.fontShape==="textit"&&d.fontWeight==="textbf"?"sans-serif-bold-italic":d.fontShape==="textit"?"sans-serif-italic":d.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(d.fontShape==="textit"&&d.fontWeight==="textbf")return"bold-italic";if(d.fontShape==="textit")return"italic";if(d.fontWeight==="textbf")return"bold";var h=d.font;if(!h||h==="mathnormal")return null;var b=l.mode;if(h==="mathit")return"italic";if(h==="boldsymbol")return"bold-italic";if(h==="mathbf")return"bold";if(h==="mathbb")return"double-struck";if(h==="mathfrak")return"fraktur";if(h==="mathscr"||h==="mathcal")return"script";if(h==="mathsf")return"sans-serif";if(h==="mathtt")return"monospace";var M=l.text;if(z.contains(["\\imath","\\jmath"],M))return null;jt[b][M]&&jt[b][M].replace&&(M=jt[b][M].replace);var se=dt.fontMap[h].fontName;return Qe(M,se,b)?dt.fontMap[h].variant:null},xr=function(l,d,h){if(l.length===1){var b=Vn(l[0],d);return h&&b instanceof Fr&&b.type==="mo"&&(b.setAttribute("lspace","0em"),b.setAttribute("rspace","0em")),[b]}for(var M=[],se,Re=0;Re<l.length;Re++){var Pe=Vn(l[Re],d);if(Pe instanceof Fr&&se instanceof Fr){if(Pe.type==="mtext"&&se.type==="mtext"&&Pe.getAttribute("mathvariant")===se.getAttribute("mathvariant")){var Je;(Je=se.children).push.apply(Je,Pe.children);continue}else if(Pe.type==="mn"&&se.type==="mn"){var ft;(ft=se.children).push.apply(ft,Pe.children);continue}else if(Pe.type==="mi"&&Pe.children.length===1&&se.type==="mn"){var Tt=Pe.children[0];if(Tt instanceof ds&&Tt.text==="."){var Ht;(Ht=se.children).push.apply(Ht,Pe.children);continue}}else if(se.type==="mi"&&se.children.length===1){var _n=se.children[0];if(_n instanceof ds&&_n.text==="\u0338"&&(Pe.type==="mo"||Pe.type==="mi"||Pe.type==="mn")){var Vt=Pe.children[0];Vt instanceof ds&&Vt.text.length>0&&(Vt.text=Vt.text.slice(0,1)+"\u0338"+Vt.text.slice(1),M.pop())}}}M.push(Pe),se=Pe}return M},lr=function(l,d,h){return is(xr(l,d,h))},Vn=function(l,d){if(!l)return new Nn.MathNode("mrow");if(Ri[l.type]){var h=Ri[l.type](l,d);return h}else throw new m("Got group of unknown type: '"+l.type+"'")};function Kr(re,l,d,h){var b=xr(re,d),M;b.length===1&&b[0]instanceof Fr&&z.contains(["mrow","mtable"],b[0].type)?M=b[0]:M=new Nn.MathNode("mrow",b);var se=new Nn.MathNode("annotation",[new Nn.TextNode(l)]);se.setAttribute("encoding","application/x-tex");var Re=new Nn.MathNode("semantics",[M,se]),Pe=new Nn.MathNode("math",[Re]);Pe.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Je=h?"katex":"katex-mathml";return dt.makeSpan([Je],[Pe])}var si=function(l){return new ar({style:l.displayMode?y.DISPLAY:y.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Hi=function(l,d){if(d.displayMode){var h=["katex-display"];d.leqno&&h.push("leqno"),d.fleqn&&h.push("fleqn"),l=dt.makeSpan(h,[l])}return l},Pi=function(l,d,h){var b=si(h),M;if(h.output==="mathml")return Kr(l,d,b,!0);if(h.output==="html"){var se=ms(l,b);M=dt.makeSpan(["katex"],[se])}else{var Re=Kr(l,d,b,!1),Pe=ms(l,b);M=dt.makeSpan(["katex"],[Re,Pe])}return Hi(M,h)},Ai=function(l,d,h){var b=si(h),M=ms(l,b),se=dt.makeSpan(["katex"],[M]);return Hi(se,h)},$r=Pi,Ni={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"},Ts=function(l){var d=new Nn.MathNode("mo",[new Nn.TextNode(Ni[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},Ns={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]},fs=function(l){return l.type==="ordgroup"?l.body.length:1},as=function(l,d){function h(){var Pe=4e5,Je=l.label.substr(1);if(z.contains(["widehat","widecheck","widetilde","utilde"],Je)){var ft=l,Tt=fs(ft.base),Ht,_n,Vt;if(Tt>5)Je==="widehat"||Je==="widecheck"?(Ht=420,Pe=2364,Vt=.42,_n=Je+"4"):(Ht=312,Pe=2340,Vt=.34,_n="tilde4");else{var Ge=[1,1,2,2,3,3][Tt];Je==="widehat"||Je==="widecheck"?(Pe=[0,1062,2364,2364,2364][Ge],Ht=[0,239,300,360,420][Ge],Vt=[0,.24,.3,.3,.36,.42][Ge],_n=Je+Ge):(Pe=[0,600,1033,2339,2340][Ge],Ht=[0,260,286,306,312][Ge],Vt=[0,.26,.286,.3,.306,.34][Ge],_n="tilde"+Ge)}var hn=new fe(_n),Tn=new P([hn],{width:"100%",height:Vt+"em",viewBox:"0 0 "+Pe+" "+Ht,preserveAspectRatio:"none"});return{span:dt.makeSvgSpan([],[Tn],d),minWidth:0,height:Vt}}else{var ur=[],In=Ns[Je],cr=In[0],Ar=In[1],Dr=In[2],fi=Dr/1e3,hi=cr.length,ki,ci;if(hi===1){var pi=In[3];ki=["hide-tail"],ci=[pi]}else if(hi===2)ki=["halfarrow-left","halfarrow-right"],ci=["xMinYMin","xMaxYMin"];else if(hi===3)ki=["brace-left","brace-center","brace-right"],ci=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+hi+" children.");for(var yi=0;yi<hi;yi++){var Ii=new fe(cr[yi]),ys=new P([Ii],{width:"400em",height:fi+"em",viewBox:"0 0 "+Pe+" "+Dr,preserveAspectRatio:ci[yi]+" slice"}),Wr=dt.makeSvgSpan([ki[yi]],[ys],d);if(hi===1)return{span:Wr,minWidth:Ar,height:fi};Wr.style.height=fi+"em",ur.push(Wr)}return{span:dt.makeSpan(["stretchy"],ur,d),minWidth:Ar,height:fi}}}var b=h(),M=b.span,se=b.minWidth,Re=b.height;return M.height=Re,M.style.height=Re+"em",se>0&&(M.style.minWidth=se+"em"),M},sr=function(l,d,h,b){var M,se=l.height+l.depth+2*h;if(/fbox|color/.test(d)){if(M=dt.makeSpan(["stretchy",d],[],b),d==="fbox"){var Re=b.color&&b.getColor();Re&&(M.style.borderColor=Re)}}else{var Pe=[];/^[bx]cancel$/.test(d)&&Pe.push(new oe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&Pe.push(new oe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Je=new P(Pe,{width:"100%",height:se+"em"});M=dt.makeSvgSpan([],[Je],b)}return M.height=se,M.style.height=se+"em",M},Or={encloseSpan:sr,mathMLnode:Ts,svgSpan:as},_i=function(l,d){var h,b,M=or(l,"supsub"),se;M?(b=Bn(M.base,"accent"),h=b.base,M.base=h,se=Ae(Gr(M,d)),M.base=b):(b=Bn(l,"accent"),h=b.base);var Re=Gr(h,d.havingCrampedStyle()),Pe=b.isShifty&&z.isCharacterBox(h),Je=0;if(Pe){var ft=z.getBaseElem(h),Tt=Gr(ft,d.havingCrampedStyle());Je=te(Tt).skew}var Ht=Math.min(Re.height,d.fontMetrics().xHeight),_n;if(b.isStretchy)_n=Or.svgSpan(b,d),_n=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"elem",elem:_n,wrapperClasses:["svg-align"],wrapperStyle:Je>0?{width:"calc(100% - "+2*Je+"em)",marginLeft:2*Je+"em"}:void 0}]},d);else{var Vt,Ge;b.label==="\\vec"?(Vt=dt.staticSvg("vec",d),Ge=dt.svgData.vec[1]):(Vt=dt.makeOrd({mode:b.mode,text:b.label},d,"textord"),Vt=te(Vt),Vt.italic=0,Ge=Vt.width),_n=dt.makeSpan(["accent-body"],[Vt]);var hn=b.label==="\\textcircled";hn&&(_n.classes.push("accent-full"),Ht=Re.height);var Tn=Je;hn||(Tn-=Ge/2),_n.style.left=Tn+"em",b.label==="\\textcircled"&&(_n.style.top=".2em"),_n=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"kern",size:-Ht},{type:"elem",elem:_n}]},d)}var ur=dt.makeSpan(["mord","accent"],[_n],d);return se?(se.children[0]=ur,se.height=Math.max(ur.height,se.height),se.classes[0]="mord",se):ur},Zi=function(l,d){var h=l.isStretchy?Or.mathMLnode(l.label):new Nn.MathNode("mo",[Bi(l.label,l.mode)]),b=new Nn.MathNode("mover",[Vn(l.base,d),h]);return b.setAttribute("accent","true"),b},gi=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(re){return"\\"+re}).join("|"));Hn({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(l,d){var h=d[0],b=!gi.test(l.funcName),M=!b||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:b,isShifty:M,base:h}},htmlBuilder:_i,mathmlBuilder:Zi}),Hn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:_i,mathmlBuilder:Zi}),Hn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0];return{type:"accentUnder",mode:h.mode,label:b,base:M}},htmlBuilder:function(l,d){var h=Gr(l.base,d),b=Or.svgSpan(l,d),M=l.label==="\\utilde"?.12:0,se=dt.makeVList({positionType:"bottom",positionData:b.height+M,children:[{type:"elem",elem:b,wrapperClasses:["svg-align"]},{type:"kern",size:M},{type:"elem",elem:h}]},d);return dt.makeSpan(["mord","accentunder"],[se],d)},mathmlBuilder:function(l,d){var h=Or.mathMLnode(l.label),b=new Nn.MathNode("munder",[Vn(l.base,d),h]);return b.setAttribute("accentunder","true"),b}});var gs=function(l){var d=new Nn.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};Hn({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(l,d,h){var b=l.parser,M=l.funcName;return{type:"xArrow",mode:b.mode,label:M,body:d[0],below:h[0]}},htmlBuilder:function(l,d){var h=d.style,b=d.havingStyle(h.sup()),M=dt.wrapFragment(Gr(l.body,b,d),d);M.classes.push("x-arrow-pad");var se;l.below&&(b=d.havingStyle(h.sub()),se=dt.wrapFragment(Gr(l.below,b,d),d),se.classes.push("x-arrow-pad"));var Re=Or.svgSpan(l,d),Pe=-d.fontMetrics().axisHeight+.5*Re.height,Je=-d.fontMetrics().axisHeight-.5*Re.height-.111;(M.depth>.25||l.label==="\\xleftequilibrium")&&(Je-=M.depth);var ft;if(se){var Tt=-d.fontMetrics().axisHeight+se.height+.5*Re.height+.111;ft=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:M,shift:Je},{type:"elem",elem:Re,shift:Pe},{type:"elem",elem:se,shift:Tt}]},d)}else ft=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:M,shift:Je},{type:"elem",elem:Re,shift:Pe}]},d);return ft.children[0].children[0].children[1].classes.push("svg-align"),dt.makeSpan(["mrel","x-arrow"],[ft],d)},mathmlBuilder:function(l,d){var h=Or.mathMLnode(l.label),b;if(l.body){var M=gs(Vn(l.body,d));if(l.below){var se=gs(Vn(l.below,d));b=new Nn.MathNode("munderover",[h,se,M])}else b=new Nn.MathNode("mover",[h,M])}else if(l.below){var Re=gs(Vn(l.below,d));b=new Nn.MathNode("munder",[h,Re])}else b=gs(),b=new Nn.MathNode("mover",[h,b]);return b}}),Hn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var h=l.parser,b=Bn(d[0],"ordgroup"),M=b.body,se="",Re=0;Re<M.length;Re++){var Pe=Bn(M[Re],"textord");se+=Pe.text}var Je=parseInt(se);if(isNaN(Je))throw new m("\\@char has non-numeric argument "+se);return{type:"textord",mode:h.mode,text:String.fromCharCode(Je)}}});var As=function(l,d){var h=oi(l.body,d.withColor(l.color),!1);return dt.makeFragment(h)},Hs=function(l,d){var h=xr(l.body,d.withColor(l.color)),b=new Nn.MathNode("mstyle",h);return b.setAttribute("mathcolor",l.color),b};Hn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var h=l.parser,b=Bn(d[0],"color-token").color,M=d[1];return{type:"color",mode:h.mode,color:b,body:Xr(M)}},htmlBuilder:As,mathmlBuilder:Hs}),Hn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var h=l.parser,b=l.breakOnTokenText,M=Bn(d[0],"color-token").color;h.gullet.macros.set("\\current@color",M);var se=h.parseExpression(!0,b);return{type:"color",mode:h.mode,color:M,body:se}},htmlBuilder:As,mathmlBuilder:Hs}),Hn({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,h){var b=l.parser,M=l.funcName,se=h[0],Re=M==="\\cr",Pe=!1;return Re||(b.settings.displayMode&&b.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Pe=!1:Pe=!0),{type:"cr",mode:b.mode,newLine:Pe,newRow:Re,size:se&&Bn(se,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new m("\\cr valid only within a tabular/array environment");var h=dt.makeSpan(["mspace"],[],d);return l.newLine&&(h.classes.push("newline"),l.size&&(h.style.marginTop=ht(l.size,d)+"em")),h},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mspace");return l.newLine&&(h.setAttribute("linebreak","newline"),l.size&&h.setAttribute("height",ht(l.size,d)+"em")),h}});var vs=function(l,d,h){var b=jt.math[l]&&jt.math[l].replace,M=Qe(b||l,d,h);if(!M)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return M},oa=function(l,d,h,b){var M=h.havingBaseStyle(d),se=dt.makeSpan(b.concat(M.sizingClasses(h)),[l],h),Re=M.sizeMultiplier/h.sizeMultiplier;return se.height*=Re,se.depth*=Re,se.maxFontSize=M.sizeMultiplier,se},ya=function(l,d,h){var b=d.havingBaseStyle(h),M=(1-d.sizeMultiplier/b.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=M+"em",l.height-=M,l.depth+=M},Ys=function(l,d,h,b,M,se){var Re=dt.makeSymbol(l,"Main-Regular",M,b),Pe=oa(Re,d,b,se);return h&&ya(Pe,b,d),Pe},la=function(l,d,h,b){return dt.makeSymbol(l,"Size"+d+"-Regular",h,b)},xs=function(l,d,h,b,M,se){var Re=la(l,d,M,b),Pe=oa(dt.makeSpan(["delimsizing","size"+d],[Re],b),y.TEXT,b,se);return h&&ya(Pe,b,y.TEXT),Pe},Es=function(l,d,h){var b;d==="Size1-Regular"?b="delim-size1":b="delim-size4";var M=dt.makeSpan(["delimsizinginner",b],[dt.makeSpan([],[dt.makeSymbol(l,d,h)])]);return{type:"elem",elem:M}},Ds={type:"kern",size:-.005},ua=function(l,d,h,b,M,se){var Re,Pe,Je,ft;Re=Je=ft=l,Pe=null;var Tt="Size1-Regular";l==="\\uparrow"?Je=ft="\u23D0":l==="\\Uparrow"?Je=ft="\u2016":l==="\\downarrow"?Re=Je="\u23D0":l==="\\Downarrow"?Re=Je="\u2016":l==="\\updownarrow"?(Re="\\uparrow",Je="\u23D0",ft="\\downarrow"):l==="\\Updownarrow"?(Re="\\Uparrow",Je="\u2016",ft="\\Downarrow"):l==="["||l==="\\lbrack"?(Re="\u23A1",Je="\u23A2",ft="\u23A3",Tt="Size4-Regular"):l==="]"||l==="\\rbrack"?(Re="\u23A4",Je="\u23A5",ft="\u23A6",Tt="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Je=Re="\u23A2",ft="\u23A3",Tt="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(Re="\u23A1",Je=ft="\u23A2",Tt="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Je=Re="\u23A5",ft="\u23A6",Tt="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(Re="\u23A4",Je=ft="\u23A5",Tt="Size4-Regular"):l==="("||l==="\\lparen"?(Re="\u239B",Je="\u239C",ft="\u239D",Tt="Size4-Regular"):l===")"||l==="\\rparen"?(Re="\u239E",Je="\u239F",ft="\u23A0",Tt="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(Re="\u23A7",Pe="\u23A8",ft="\u23A9",Je="\u23AA",Tt="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(Re="\u23AB",Pe="\u23AC",ft="\u23AD",Je="\u23AA",Tt="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(Re="\u23A7",ft="\u23A9",Je="\u23AA",Tt="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(Re="\u23AB",ft="\u23AD",Je="\u23AA",Tt="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(Re="\u23A7",ft="\u23AD",Je="\u23AA",Tt="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(Re="\u23AB",ft="\u23A9",Je="\u23AA",Tt="Size4-Regular");var Ht=vs(Re,Tt,M),_n=Ht.height+Ht.depth,Vt=vs(Je,Tt,M),Ge=Vt.height+Vt.depth,hn=vs(ft,Tt,M),Tn=hn.height+hn.depth,ur=0,In=1;if(Pe!==null){var cr=vs(Pe,Tt,M);ur=cr.height+cr.depth,In=2}var Ar=_n+Tn+ur,Dr=Math.max(0,Math.ceil((d-Ar)/(In*Ge))),fi=Ar+Dr*In*Ge,hi=b.fontMetrics().axisHeight;h&&(hi*=b.sizeMultiplier);var ki=fi/2-hi,ci=(Dr+1)*.005-Ge,pi=[];if(pi.push(Es(ft,Tt,M)),Pe===null)for(var yi=0;yi<Dr;yi++)pi.push(Ds),pi.push(Es(Je,Tt,M));else{for(var Ii=0;Ii<Dr;Ii++)pi.push(Ds),pi.push(Es(Je,Tt,M));pi.push({type:"kern",size:ci}),pi.push(Es(Je,Tt,M)),pi.push(Ds),pi.push(Es(Pe,Tt,M));for(var ys=0;ys<Dr;ys++)pi.push(Ds),pi.push(Es(Je,Tt,M))}pi.push({type:"kern",size:ci}),pi.push(Es(Je,Tt,M)),pi.push(Ds),pi.push(Es(Re,Tt,M));var Wr=b.havingBaseStyle(y.TEXT),ai=dt.makeVList({positionType:"bottom",positionData:ki,children:pi},Wr);return oa(dt.makeSpan(["delimsizing","mult"],[ai],Wr),y.TEXT,b,se)},Xs=80,Qs=.08,Us=function(l,d,h,b,M){var se=en(l,b,h),Re=new fe(l,se),Pe=new P([Re],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return dt.makeSvgSpan(["hide-tail"],[Pe],M)},li=function(l,d){var h=d.havingBaseSizing(),b=Fs("\\surd",l*h.sizeMultiplier,Ss,h),M=h.sizeMultiplier,se=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),Re,Pe=0,Je=0,ft=0,Tt;return b.type==="small"?(ft=1e3+1e3*se+Xs,l<1?M=1:l<1.4&&(M=.7),Pe=(1+se+Qs)/M,Je=(1+se)/M,Re=Us("sqrtMain",Pe,ft,se,d),Re.style.minWidth="0.853em",Tt=.833/M):b.type==="large"?(ft=(1e3+Xs)*vi[b.size],Je=(vi[b.size]+se)/M,Pe=(vi[b.size]+se+Qs)/M,Re=Us("sqrtSize"+b.size,Pe,ft,se,d),Re.style.minWidth="1.02em",Tt=1/M):(Pe=l+se+Qs,Je=l+se,ft=Math.floor(1e3*l+se)+Xs,Re=Us("sqrtTall",Pe,ft,se,d),Re.style.minWidth="0.742em",Tt=1.056),Re.height=Je,Re.style.height=Pe+"em",{span:Re,advanceWidth:Tt,ruleWidth:(d.fontMetrics().sqrtRuleThickness+se)*M}},Qr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],ss=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ji=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],vi=[0,1.2,1.8,2.4,3],os=function(l,d,h,b,M){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),z.contains(Qr,l)||z.contains(ji,l))return xs(l,d,!1,h,b,M);if(z.contains(ss,l))return ua(l,vi[d],!1,h,b,M);throw new m("Illegal delimiter: '"+l+"'")},ls=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Is=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"stack"}],Ss=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Js=function(l){if(l.type==="small")return"Main-Regular";if(l.type==="large")return"Size"+l.size+"-Regular";if(l.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+l.type+"' here.")},Fs=function(l,d,h,b){for(var M=Math.min(2,3-b.style.size),se=M;se<h.length&&h[se].type!=="stack";se++){var Re=vs(l,Js(h[se]),"math"),Pe=Re.height+Re.depth;if(h[se].type==="small"){var Je=b.havingBaseStyle(h[se].style);Pe*=Je.sizeMultiplier}if(Pe>d)return h[se]}return h[h.length-1]},ba=function(l,d,h,b,M,se){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var Re;z.contains(ji,l)?Re=ls:z.contains(Qr,l)?Re=Ss:Re=Is;var Pe=Fs(l,d,Re,b);return Pe.type==="small"?Ys(l,Pe.style,h,b,M,se):Pe.type==="large"?xs(l,Pe.size,h,b,M,se):ua(l,d,h,b,M,se)},Pa=function(l,d,h,b,M,se){var Re=b.fontMetrics().axisHeight*b.sizeMultiplier,Pe=901,Je=5/b.fontMetrics().ptPerEm,ft=Math.max(d-Re,h+Re),Tt=Math.max(ft/500*Pe,2*ft-Je);return ba(l,Tt,!0,b,M,se)},Bs={sqrtImage:li,sizedDelim:os,customSizedDelim:ba,leftRightDelim:Pa},qs={"\\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}},wa=["(","\\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 ea(re,l){var d=Vr(re);if(d&&z.contains(wa,d.text))return d;throw new m("Invalid delimiter: '"+(d?d.text:JSON.stringify(re))+"' after '"+l.funcName+"'",re)}Hn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(l,d){var h=ea(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:qs[l.funcName].size,mclass:qs[l.funcName].mclass,delim:h.text}},htmlBuilder:function(l,d){return l.delim==="."?dt.makeSpan([l.mclass]):Bs.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(Bi(l.delim,l.mode));var h=new Nn.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function _a(re){if(!re.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Hn({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var h=l.parser.gullet.macros.get("\\current@color");if(h&&typeof h!="string")throw new m("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:ea(d[0],l).text,color:h}}}),Hn({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var h=ea(d[0],l),b=l.parser;++b.leftrightDepth;var M=b.parseExpression(!1);--b.leftrightDepth,b.expect("\\right",!1);var se=Bn(b.parseFunction(),"leftright-right");return{type:"leftright",mode:b.mode,body:M,left:h.text,right:se.delim,rightColor:se.color}},htmlBuilder:function(l,d){_a(l);for(var h=oi(l.body,d,!0,["mopen","mclose"]),b=0,M=0,se=!1,Re=0;Re<h.length;Re++)h[Re].isMiddle?se=!0:(b=Math.max(h[Re].height,b),M=Math.max(h[Re].depth,M));b*=d.sizeMultiplier,M*=d.sizeMultiplier;var Pe;if(l.left==="."?Pe=Xi(d,["mopen"]):Pe=Bs.leftRightDelim(l.left,b,M,d,l.mode,["mopen"]),h.unshift(Pe),se)for(var Je=1;Je<h.length;Je++){var ft=h[Je],Tt=ft.isMiddle;Tt&&(h[Je]=Bs.leftRightDelim(Tt.delim,b,M,Tt.options,l.mode,[]))}var Ht;if(l.right===".")Ht=Xi(d,["mclose"]);else{var _n=l.rightColor?d.withColor(l.rightColor):d;Ht=Bs.leftRightDelim(l.right,b,M,_n,l.mode,["mclose"])}return h.push(Ht),dt.makeSpan(["minner"],h,d)},mathmlBuilder:function(l,d){_a(l);var h=xr(l.body,d);if(l.left!=="."){var b=new Nn.MathNode("mo",[Bi(l.left,l.mode)]);b.setAttribute("fence","true"),h.unshift(b)}if(l.right!=="."){var M=new Nn.MathNode("mo",[Bi(l.right,l.mode)]);M.setAttribute("fence","true"),l.rightColor&&M.setAttribute("mathcolor",l.rightColor),h.push(M)}return is(h)}}),Hn({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var h=ea(d[0],l);if(!l.parser.leftrightDepth)throw new m("\\middle without preceding \\left",h);return{type:"middle",mode:l.parser.mode,delim:h.text}},htmlBuilder:function(l,d){var h;if(l.delim===".")h=Xi(d,[]);else{h=Bs.sizedDelim(l.delim,1,d,l.mode,[]);var b={delim:l.delim,options:d};h.isMiddle=b}return h},mathmlBuilder:function(l,d){var h=l.delim==="\\vert"||l.delim==="|"?Bi("|","text"):Bi(l.delim,l.mode),b=new Nn.MathNode("mo",[h]);return b.setAttribute("fence","true"),b.setAttribute("lspace","0.05em"),b.setAttribute("rspace","0.05em"),b}});var Ca=function(l,d){var h=dt.wrapFragment(Gr(l.body,d),d),b=l.label.substr(1),M=d.sizeMultiplier,se,Re=0,Pe=z.isCharacterBox(l.body);if(b==="sout")se=dt.makeSpan(["stretchy","sout"]),se.height=d.fontMetrics().defaultRuleThickness/M,Re=-.5*d.fontMetrics().xHeight;else{/cancel/.test(b)?Pe||h.classes.push("cancel-pad"):h.classes.push("boxpad");var Je=0,ft=0;/box/.test(b)?(ft=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),Je=d.fontMetrics().fboxsep+(b==="colorbox"?0:ft)):Je=Pe?.2:0,se=Or.encloseSpan(h,b,Je,d),/fbox|boxed|fcolorbox/.test(b)&&(se.style.borderStyle="solid",se.style.borderWidth=ft+"em"),Re=h.depth+Je,l.backgroundColor&&(se.style.backgroundColor=l.backgroundColor,l.borderColor&&(se.style.borderColor=l.borderColor))}var Tt;return l.backgroundColor?Tt=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:se,shift:Re},{type:"elem",elem:h,shift:0}]},d):Tt=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:se,shift:Re,wrapperClasses:/cancel/.test(b)?["svg-align"]:[]}]},d),/cancel/.test(b)&&(Tt.height=h.height,Tt.depth=h.depth),/cancel/.test(b)&&!Pe?dt.makeSpan(["mord","cancel-lap"],[Tt],d):dt.makeSpan(["mord"],[Tt],d)},ca=function(l,d){var h=0,b=new Nn.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Vn(l.body,d)]);switch(l.label){case"\\cancel":b.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":b.setAttribute("notation","downdiagonalstrike");break;case"\\sout":b.setAttribute("notation","horizontalstrike");break;case"\\fbox":b.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,b.setAttribute("width","+"+2*h+"pt"),b.setAttribute("height","+"+2*h+"pt"),b.setAttribute("lspace",h+"pt"),b.setAttribute("voffset",h+"pt"),l.label==="\\fcolorbox"){var M=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);b.setAttribute("style","border: "+M+"em solid "+String(l.borderColor))}break;case"\\xcancel":b.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&b.setAttribute("mathbackground",l.backgroundColor),b};Hn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,h){var b=l.parser,M=l.funcName,se=Bn(d[0],"color-token").color,Re=d[1];return{type:"enclose",mode:b.mode,label:M,backgroundColor:se,body:Re}},htmlBuilder:Ca,mathmlBuilder:ca}),Hn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,h){var b=l.parser,M=l.funcName,se=Bn(d[0],"color-token").color,Re=Bn(d[1],"color-token").color,Pe=d[2];return{type:"enclose",mode:b.mode,label:M,backgroundColor:Re,borderColor:se,body:Pe}},htmlBuilder:Ca,mathmlBuilder:ca}),Hn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:d[0]}}}),Hn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,h){var b=l.parser,M=l.funcName,se=d[0];return{type:"enclose",mode:b.mode,label:M,body:se}},htmlBuilder:Ca,mathmlBuilder:ca});var ta={};function Zs(re){for(var l=re.type,d=re.names,h=re.props,b=re.handler,M=re.htmlBuilder,se=re.mathmlBuilder,Re={type:l,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:b},Pe=0;Pe<d.length;++Pe)ta[d[Pe]]=Re;M&&(ti[l]=M),se&&(Ri[l]=se)}function Ta(re){var l=[];re.consumeSpaces();for(var d=re.fetch().text;d==="\\hline"||d==="\\hdashline";)re.consume(),l.push(d==="\\hdashline"),re.consumeSpaces(),d=re.fetch().text;return l}function Di(re,l,d){var h=l.hskipBeforeAndAfter,b=l.addJot,M=l.cols,se=l.arraystretch,Re=l.colSeparationType;if(re.gullet.beginGroup(),re.gullet.macros.set("\\\\","\\cr"),!se){var Pe=re.gullet.expandMacroAsText("\\arraystretch");if(Pe==null)se=1;else if(se=parseFloat(Pe),!se||se<0)throw new m("Invalid \\arraystretch: "+Pe)}re.gullet.beginGroup();var Je=[],ft=[Je],Tt=[],Ht=[];for(Ht.push(Ta(re));;){var _n=re.parseExpression(!1,"\\cr");re.gullet.endGroup(),re.gullet.beginGroup(),_n={type:"ordgroup",mode:re.mode,body:_n},d&&(_n={type:"styling",mode:re.mode,style:d,body:[_n]}),Je.push(_n);var Vt=re.fetch().text;if(Vt==="&")re.consume();else if(Vt==="\\end"){Je.length===1&&_n.type==="styling"&&_n.body[0].body.length===0&&ft.pop(),Ht.length<ft.length+1&&Ht.push([]);break}else if(Vt==="\\cr"){var Ge=Bn(re.parseFunction(),"cr");Tt.push(Ge.size),Ht.push(Ta(re)),Je=[],ft.push(Je)}else throw new m("Expected & or \\\\ or \\cr or \\end",re.nextToken)}return re.gullet.endGroup(),re.gullet.endGroup(),{type:"array",mode:re.mode,addJot:b,arraystretch:se,body:ft,cols:M,rowGaps:Tt,hskipBeforeAndAfter:h,hLinesBeforeRow:Ht,colSeparationType:Re}}function Li(re){return re.substr(0,1)==="d"?"display":"text"}var xi=function(l,d){var h,b,M=l.body.length,se=l.hLinesBeforeRow,Re=0,Pe=new Array(M),Je=[],ft=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),Tt=1/d.fontMetrics().ptPerEm,Ht=5*Tt;if(l.colSeparationType&&l.colSeparationType==="small"){var _n=d.havingStyle(y.SCRIPT).sizeMultiplier;Ht=.2778*(_n/d.sizeMultiplier)}var Vt=12*Tt,Ge=3*Tt,hn=l.arraystretch*Vt,Tn=.7*hn,ur=.3*hn,In=0;function cr(ts){for(var Oi=0;Oi<ts.length;++Oi)Oi>0&&(In+=.25),Je.push({pos:In,isDashed:ts[Oi]})}for(cr(se[0]),h=0;h<l.body.length;++h){var Ar=l.body[h],Dr=Tn,fi=ur;Re<Ar.length&&(Re=Ar.length);var hi=new Array(Ar.length);for(b=0;b<Ar.length;++b){var ki=Gr(Ar[b],d);fi<ki.depth&&(fi=ki.depth),Dr<ki.height&&(Dr=ki.height),hi[b]=ki}var ci=l.rowGaps[h],pi=0;ci&&(pi=ht(ci,d),pi>0&&(pi+=ur,fi<pi&&(fi=pi),pi=0)),l.addJot&&(fi+=Ge),hi.height=Dr,hi.depth=fi,In+=Dr,hi.pos=In,In+=fi+pi,Pe[h]=hi,cr(se[h+1])}var yi=In/2+d.fontMetrics().axisHeight,Ii=l.cols||[],ys=[],Wr,ai;for(b=0,ai=0;b<Re||ai<Ii.length;++b,++ai){for(var Ei=Ii[ai]||{},Ji=!0;Ei.type==="separator";){if(Ji||(Wr=dt.makeSpan(["arraycolsep"],[]),Wr.style.width=d.fontMetrics().doubleRuleSep+"em",ys.push(Wr)),Ei.separator==="|"||Ei.separator===":"){var qi=Ei.separator==="|"?"solid":"dashed",Br=dt.makeSpan(["vertical-separator"],[],d);Br.style.height=In+"em",Br.style.borderRightWidth=ft+"em",Br.style.borderRightStyle=qi,Br.style.margin="0 -"+ft/2+"em",Br.style.verticalAlign=-(In-yi)+"em",ys.push(Br)}else throw new m("Invalid separator type: "+Ei.separator);ai++,Ei=Ii[ai]||{},Ji=!1}if(!(b>=Re)){var Qi=void 0;(b>0||l.hskipBeforeAndAfter)&&(Qi=z.deflt(Ei.pregap,Ht),Qi!==0&&(Wr=dt.makeSpan(["arraycolsep"],[]),Wr.style.width=Qi+"em",ys.push(Wr)));var es=[];for(h=0;h<M;++h){var bs=Pe[h],Rs=bs[b];if(Rs){var Ls=bs.pos-yi;Rs.depth=bs.depth,Rs.height=bs.height,es.push({type:"elem",elem:Rs,shift:Ls})}}es=dt.makeVList({positionType:"individualShift",children:es},d),es=dt.makeSpan(["col-align-"+(Ei.align||"c")],[es]),ys.push(es),(b<Re-1||l.hskipBeforeAndAfter)&&(Qi=z.deflt(Ei.postgap,Ht),Qi!==0&&(Wr=dt.makeSpan(["arraycolsep"],[]),Wr.style.width=Qi+"em",ys.push(Wr)))}}if(Pe=dt.makeSpan(["mtable"],ys),Je.length>0){for(var $a=dt.makeLineSpan("hline",d,ft),ra=dt.makeLineSpan("hdashline",d,ft),Os=[{type:"elem",elem:Pe,shift:0}];Je.length>0;){var _s=Je.pop(),ps=_s.pos-yi;_s.isDashed?Os.push({type:"elem",elem:ra,shift:ps}):Os.push({type:"elem",elem:$a,shift:ps})}Pe=dt.makeVList({positionType:"individualShift",children:Os},d)}return dt.makeSpan(["mord"],[Pe],d)},hs={c:"center ",l:"left ",r:"right "},rs=function(l,d){var h=new Nn.MathNode("mtable",l.body.map(function(In){return new Nn.MathNode("mtr",In.map(function(cr){return new Nn.MathNode("mtd",[Vn(cr,d)])}))})),b=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);h.setAttribute("rowspacing",b+"em");var M="",se="";if(l.cols){var Re=l.cols,Pe="",Je=!1,ft=0,Tt=Re.length;Re[0].type==="separator"&&(M+="top ",ft=1),Re[Re.length-1].type==="separator"&&(M+="bottom ",Tt-=1);for(var Ht=ft;Ht<Tt;Ht++)Re[Ht].type==="align"?(se+=hs[Re[Ht].align],Je&&(Pe+="none "),Je=!0):Re[Ht].type==="separator"&&Je&&(Pe+=Re[Ht].separator==="|"?"solid ":"dashed ",Je=!1);h.setAttribute("columnalign",se.trim()),/[sd]/.test(Pe)&&h.setAttribute("columnlines",Pe.trim())}if(l.colSeparationType==="align"){for(var _n=l.cols||[],Vt="",Ge=1;Ge<_n.length;Ge++)Vt+=Ge%2?"0em ":"1em ";h.setAttribute("columnspacing",Vt.trim())}else l.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var hn="",Tn=l.hLinesBeforeRow;M+=Tn[0].length>0?"left ":"",M+=Tn[Tn.length-1].length>0?"right ":"";for(var ur=1;ur<Tn.length-1;ur++)hn+=Tn[ur].length===0?"none ":Tn[ur][0]?"dashed ":"solid ";return/[sd]/.test(hn)&&h.setAttribute("rowlines",hn.trim()),M!==""&&(h=new Nn.MathNode("menclose",[h]),h.setAttribute("notation",M.trim())),l.arraystretch&&l.arraystretch<1&&(h=new Nn.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},yn=function(l,d){var h=[],b=Di(l.parser,{cols:h,addJot:!0},"display"),M,se=0,Re={type:"ordgroup",mode:l.mode,body:[]},Pe=or(d[0],"ordgroup");if(Pe){for(var Je="",ft=0;ft<Pe.body.length;ft++){var Tt=Bn(Pe.body[ft],"textord");Je+=Tt.text}M=Number(Je),se=M*2}var Ht=!se;b.body.forEach(function(hn){for(var Tn=1;Tn<hn.length;Tn+=2){var ur=Bn(hn[Tn],"styling"),In=Bn(ur.body[0],"ordgroup");In.body.unshift(Re)}if(Ht)se<hn.length&&(se=hn.length);else{var cr=hn.length/2;if(M<cr)throw new m("Too many math in a row: "+("expected "+M+", but got "+cr),hn[0])}});for(var _n=0;_n<se;++_n){var Vt="r",Ge=0;_n%2===1?Vt="l":_n>0&&Ht&&(Ge=1),h[_n]={type:"align",align:Vt,pregap:Ge,postgap:0}}return b.colSeparationType=Ht?"align":"alignat",b};Zs({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var h=Vr(d[0]),b=h?[d[0]]:Bn(d[0],"ordgroup").body,M=b.map(function(Re){var Pe=Ur(Re),Je=Pe.text;if("lcr".indexOf(Je)!==-1)return{type:"align",align:Je};if(Je==="|")return{type:"separator",separator:"|"};if(Je===":")return{type:"separator",separator:":"};throw new m("Unknown column alignment: "+Je,Re)}),se={cols:M,hskipBeforeAndAfter:!0};return Di(l.parser,se,Li(l.envName))},htmlBuilder:xi,mathmlBuilder:rs}),Zs({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var d={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],h={hskipBeforeAndAfter:!1},b=Di(l.parser,h,Li(l.envName));return d?{type:"leftright",mode:l.mode,body:[b],left:d[0],right:d[1],rightColor:void 0}:b},htmlBuilder:xi,mathmlBuilder:rs}),Zs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},h=Di(l.parser,d,"script");return h.colSeparationType="small",h},htmlBuilder:xi,mathmlBuilder:rs}),Zs({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var h=Vr(d[0]),b=h?[d[0]]:Bn(d[0],"ordgroup").body,M=b.map(function(Re){var Pe=Ur(Re),Je=Pe.text;if("lc".indexOf(Je)!==-1)return{type:"align",align:Je};throw new m("Unknown column alignment: "+Je,Re)});if(M.length>1)throw new m("{subarray} can contain only one column");var se={cols:M,hskipBeforeAndAfter:!1,arraystretch:.5};if(se=Di(l.parser,se,"script"),se.body[0].length>1)throw new m("{subarray} can contain only one column");return se},htmlBuilder:xi,mathmlBuilder:rs}),Zs({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var d={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=Di(l.parser,d,Li(l.envName));return{type:"leftright",mode:l.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:xi,mathmlBuilder:rs}),Zs({type:"array",names:["aligned"],props:{numArgs:0},handler:yn,htmlBuilder:xi,mathmlBuilder:rs}),Zs({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return Di(l.parser,d,"display")},htmlBuilder:xi,mathmlBuilder:rs}),Zs({type:"array",names:["alignedat"],props:{numArgs:1},handler:yn,htmlBuilder:xi,mathmlBuilder:rs}),Hn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new m(l.funcName+" valid only within array environment")}});var js=ta,da=js;Hn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0];if(M.type!=="ordgroup")throw new m("Invalid environment name",M);for(var se="",Re=0;Re<M.body.length;++Re)se+=Bn(M.body[Re],"textord").text;if(b==="\\begin"){if(!da.hasOwnProperty(se))throw new m("No such environment: "+se,M);var Pe=da[se],Je=h.parseArguments("\\begin{"+se+"}",Pe),ft=Je.args,Tt=Je.optArgs,Ht={mode:h.mode,envName:se,parser:h},_n=Pe.handler(Ht,ft,Tt);h.expect("\\end",!1);var Vt=h.nextToken,Ge=Bn(h.parseFunction(),"environment");if(Ge.name!==se)throw new m("Mismatch: \\begin{"+se+"} matched by \\end{"+Ge.name+"}",Vt);return _n}return{type:"environment",mode:h.mode,name:se,nameGroup:M}}});var ka=dt.makeSpan;function Ma(re,l){var d=oi(re.body,l,!0);return ka([re.mclass],d,l)}function na(re,l){var d,h=xr(re.body,l);return re.mclass==="minner"?Nn.newDocumentFragment(h):(re.mclass==="mord"?re.isCharacterBox?(d=h[0],d.type="mi"):d=new Nn.MathNode("mi",h):(re.isCharacterBox?(d=h[0],d.type="mo"):d=new Nn.MathNode("mo",h),re.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):re.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(re.mclass==="mopen"||re.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}Hn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0];return{type:"mclass",mode:h.mode,mclass:"m"+b.substr(5),body:Xr(M),isCharacterBox:z.isCharacterBox(M)}},htmlBuilder:Ma,mathmlBuilder:na});var fa=function(l){var d=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return d.type==="atom"&&(d.family==="bin"||d.family==="rel")?"m"+d.family:"mord"};Hn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var h=l.parser;return{type:"mclass",mode:h.mode,mclass:fa(d[0]),body:[d[1]],isCharacterBox:z.isCharacterBox(d[1])}}}),Hn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[1],se=d[0],Re;b!=="\\stackrel"?Re=fa(M):Re="mrel";var Pe={type:"op",mode:M.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:b!=="\\stackrel",body:Xr(M)},Je={type:"supsub",mode:se.mode,base:Pe,sup:b==="\\underset"?null:se,sub:b==="\\underset"?se:null};return{type:"mclass",mode:h.mode,mclass:Re,body:[Je],isCharacterBox:z.isCharacterBox(Je)}},htmlBuilder:Ma,mathmlBuilder:na});var Qa=function(l,d){var h=l.font,b=d.withFont(h);return Gr(l.body,b)},lo=function(l,d){var h=l.font,b=d.withFont(h);return Vn(l.body,b)},Ja={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Hn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0],se=b;return se in Ja&&(se=Ja[se]),{type:"font",mode:h.mode,font:se.slice(1),body:M}},htmlBuilder:Qa,mathmlBuilder:lo}),Hn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,b=d[0],M=z.isCharacterBox(b);return{type:"mclass",mode:h.mode,mclass:fa(b),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:b}],isCharacterBox:M}}}),Hn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,M=l.breakOnTokenText,se=h.mode,Re=h.parseExpression(!0,M),Pe="math"+b.slice(1);return{type:"font",mode:se,font:Pe,body:{type:"ordgroup",mode:h.mode,body:Re}}},htmlBuilder:Qa,mathmlBuilder:lo});var Aa=function(l,d){var h=d;return l==="display"?h=h.id>=y.SCRIPT.id?h.text():y.DISPLAY:l==="text"&&h.size===y.DISPLAY.size?h=y.TEXT:l==="script"?h=y.SCRIPT:l==="scriptscript"&&(h=y.SCRIPTSCRIPT),h},ha=function(l,d){var h=Aa(l.size,d.style),b=h.fracNum(),M=h.fracDen(),se;se=d.havingStyle(b);var Re=Gr(l.numer,se,d);if(l.continued){var Pe=8.5/d.fontMetrics().ptPerEm,Je=3.5/d.fontMetrics().ptPerEm;Re.height=Re.height<Pe?Pe:Re.height,Re.depth=Re.depth<Je?Je:Re.depth}se=d.havingStyle(M);var ft=Gr(l.denom,se,d),Tt,Ht,_n;l.hasBarLine?(l.barSize?(Ht=ht(l.barSize,d),Tt=dt.makeLineSpan("frac-line",d,Ht)):Tt=dt.makeLineSpan("frac-line",d),Ht=Tt.height,_n=Tt.height):(Tt=null,Ht=0,_n=d.fontMetrics().defaultRuleThickness);var Vt,Ge,hn;h.size===y.DISPLAY.size||l.size==="display"?(Vt=d.fontMetrics().num1,Ht>0?Ge=3*_n:Ge=7*_n,hn=d.fontMetrics().denom1):(Ht>0?(Vt=d.fontMetrics().num2,Ge=_n):(Vt=d.fontMetrics().num3,Ge=3*_n),hn=d.fontMetrics().denom2);var Tn;if(Tt){var In=d.fontMetrics().axisHeight;Vt-Re.depth-(In+.5*Ht)<Ge&&(Vt+=Ge-(Vt-Re.depth-(In+.5*Ht))),In-.5*Ht-(ft.height-hn)<Ge&&(hn+=Ge-(In-.5*Ht-(ft.height-hn)));var cr=-(In-.5*Ht);Tn=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ft,shift:hn},{type:"elem",elem:Tt,shift:cr},{type:"elem",elem:Re,shift:-Vt}]},d)}else{var ur=Vt-Re.depth-(ft.height-hn);ur<Ge&&(Vt+=.5*(Ge-ur),hn+=.5*(Ge-ur)),Tn=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ft,shift:hn},{type:"elem",elem:Re,shift:-Vt}]},d)}se=d.havingStyle(h),Tn.height*=se.sizeMultiplier/d.sizeMultiplier,Tn.depth*=se.sizeMultiplier/d.sizeMultiplier;var Ar;h.size===y.DISPLAY.size?Ar=d.fontMetrics().delim1:Ar=d.fontMetrics().delim2;var Dr,fi;return l.leftDelim==null?Dr=Xi(d,["mopen"]):Dr=Bs.customSizedDelim(l.leftDelim,Ar,!0,d.havingStyle(h),l.mode,["mopen"]),l.continued?fi=dt.makeSpan([]):l.rightDelim==null?fi=Xi(d,["mclose"]):fi=Bs.customSizedDelim(l.rightDelim,Ar,!0,d.havingStyle(h),l.mode,["mclose"]),dt.makeSpan(["mord"].concat(se.sizingClasses(d)),[Dr,dt.makeSpan(["mfrac"],[Tn]),fi],d)},uo=function(l,d){var h=new Nn.MathNode("mfrac",[Vn(l.numer,d),Vn(l.denom,d)]);if(!l.hasBarLine)h.setAttribute("linethickness","0px");else if(l.barSize){var b=ht(l.barSize,d);h.setAttribute("linethickness",b+"em")}var M=Aa(l.size,d.style);if(M.size!==d.style.size){h=new Nn.MathNode("mstyle",[h]);var se=M.size===y.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",se),h.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var Re=[];if(l.leftDelim!=null){var Pe=new Nn.MathNode("mo",[new Nn.TextNode(l.leftDelim.replace("\\",""))]);Pe.setAttribute("fence","true"),Re.push(Pe)}if(Re.push(h),l.rightDelim!=null){var Je=new Nn.MathNode("mo",[new Nn.TextNode(l.rightDelim.replace("\\",""))]);Je.setAttribute("fence","true"),Re.push(Je)}return is(Re)}return h};Hn({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0],se=d[1],Re,Pe=null,Je=null,ft="auto";switch(b){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Re=!0;break;case"\\\\atopfrac":Re=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Re=!1,Pe="(",Je=")";break;case"\\\\bracefrac":Re=!1,Pe="\\{",Je="\\}";break;case"\\\\brackfrac":Re=!1,Pe="[",Je="]";break;default:throw new Error("Unrecognized genfrac command")}switch(b){case"\\cfrac":case"\\dfrac":case"\\dbinom":ft="display";break;case"\\tfrac":case"\\tbinom":ft="text";break}return{type:"genfrac",mode:h.mode,continued:b==="\\cfrac",numer:M,denom:se,hasBarLine:Re,leftDelim:Pe,rightDelim:Je,size:ft,barSize:null}},htmlBuilder:ha,mathmlBuilder:uo}),Hn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,h=l.funcName,b=l.token,M;switch(h){case"\\over":M="\\frac";break;case"\\choose":M="\\binom";break;case"\\atop":M="\\\\atopfrac";break;case"\\brace":M="\\\\bracefrac";break;case"\\brack":M="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:M,token:b}}});var co=["display","text","script","scriptscript"],Oo=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};Hn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var h=l.parser,b=d[4],M=d[5],se=or(d[0],"atom");se&&(se=qn(d[0],"open"));var Re=se?Oo(se.text):null,Pe=or(d[1],"atom");Pe&&(Pe=qn(d[1],"close"));var Je=Pe?Oo(Pe.text):null,ft=Bn(d[2],"size"),Tt,Ht=null;ft.isBlank?Tt=!0:(Ht=ft.value,Tt=Ht.number>0);var _n="auto",Vt=or(d[3],"ordgroup");if(Vt){if(Vt.body.length>0){var Ge=Bn(Vt.body[0],"textord");_n=co[Number(Ge.text)]}}else Vt=Bn(d[3],"textord"),_n=co[Number(Vt.text)];return{type:"genfrac",mode:h.mode,numer:b,denom:M,continued:!1,hasBarLine:Tt,barSize:Ht,leftDelim:Re,rightDelim:Je,size:_n}},htmlBuilder:ha,mathmlBuilder:uo}),Hn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var h=l.parser,b=l.funcName,M=l.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:Bn(d[0],"size").value,token:M}}}),Hn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0],se=N(Bn(d[1],"infix").size),Re=d[2],Pe=se.number>0;return{type:"genfrac",mode:h.mode,numer:M,denom:Re,continued:!1,hasBarLine:Pe,barSize:se,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ha,mathmlBuilder:uo});var fo=function(l,d){var h=d.style,b,M,se=or(l,"supsub");se?(b=se.sup?Gr(se.sup,d.havingStyle(h.sup()),d):Gr(se.sub,d.havingStyle(h.sub()),d),M=Bn(se.base,"horizBrace")):M=Bn(l,"horizBrace");var Re=Gr(M.base,d.havingBaseStyle(y.DISPLAY)),Pe=Or.svgSpan(M,d),Je;if(M.isOver?(Je=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Re},{type:"kern",size:.1},{type:"elem",elem:Pe}]},d),Je.children[0].children[0].children[1].classes.push("svg-align")):(Je=dt.makeVList({positionType:"bottom",positionData:Re.depth+.1+Pe.height,children:[{type:"elem",elem:Pe},{type:"kern",size:.1},{type:"elem",elem:Re}]},d),Je.children[0].children[0].children[0].classes.push("svg-align")),b){var ft=dt.makeSpan(["mord",M.isOver?"mover":"munder"],[Je],d);M.isOver?Je=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ft},{type:"kern",size:.2},{type:"elem",elem:b}]},d):Je=dt.makeVList({positionType:"bottom",positionData:ft.depth+.2+b.height+b.depth,children:[{type:"elem",elem:b},{type:"kern",size:.2},{type:"elem",elem:ft}]},d)}return dt.makeSpan(["mord",M.isOver?"mover":"munder"],[Je],d)},Po=function(l,d){var h=Or.mathMLnode(l.label);return new Nn.MathNode(l.isOver?"mover":"munder",[Vn(l.base,d),h])};Hn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName;return{type:"horizBrace",mode:h.mode,label:b,isOver:/^\\over/.test(b),base:d[0]}},htmlBuilder:fo,mathmlBuilder:Po}),Hn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[1],M=Bn(d[0],"url").url;return h.settings.isTrusted({command:"\\href",url:M})?{type:"href",mode:h.mode,href:M,body:Xr(b)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var h=oi(l.body,d,!1);return dt.makeAnchor(l.href,[],h,d)},mathmlBuilder:function(l,d){var h=lr(l.body,d);return h instanceof Fr||(h=new Fr("mrow",[h])),h.setAttribute("href",l.href),h}}),Hn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=Bn(d[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:b}))return h.formatUnsupportedCmd("\\url");for(var M=[],se=0;se<b.length;se++){var Re=b[se];Re==="~"&&(Re="\\textasciitilde"),M.push({type:"textord",mode:"text",text:Re})}var Pe={type:"text",mode:h.mode,font:"\\texttt",body:M};return{type:"href",mode:h.mode,href:b,body:Xr(Pe)}}}),Hn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"htmlmathml",mode:h.mode,html:Xr(d[0]),mathml:Xr(d[1])}},htmlBuilder:function(l,d){var h=oi(l.html,d,!1);return dt.makeFragment(h)},mathmlBuilder:function(l,d){return lr(l.mathml,d)}});var Na=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var d=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!d)throw new m("Invalid size: '"+l+"' in \\includegraphics");var h={number:+(d[1]+d[2]),unit:d[3]};if(!ct(h))throw new m("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};Hn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,h){var b=l.parser,M={number:0,unit:"em"},se={number:.9,unit:"em"},Re={number:0,unit:"em"},Pe="";if(h[0])for(var Je=Bn(h[0],"raw").string,ft=Je.split(","),Tt=0;Tt<ft.length;Tt++){var Ht=ft[Tt].split("=");if(Ht.length===2){var _n=Ht[1].trim();switch(Ht[0].trim()){case"alt":Pe=_n;break;case"width":M=Na(_n);break;case"height":se=Na(_n);break;case"totalheight":Re=Na(_n);break;default:throw new m("Invalid key: '"+Ht[0]+"' in \\includegraphics.")}}}var Vt=Bn(d[0],"url").url;return Pe===""&&(Pe=Vt,Pe=Pe.replace(/^.*[\\/]/,""),Pe=Pe.substring(0,Pe.lastIndexOf("."))),b.settings.isTrusted({command:"\\includegraphics",url:Vt})?{type:"includegraphics",mode:b.mode,alt:Pe,width:M,height:se,totalheight:Re,src:Vt}:b.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var h=ht(l.height,d),b=0;l.totalheight.number>0&&(b=ht(l.totalheight,d)-h,b=Number(b.toFixed(2)));var M=0;l.width.number>0&&(M=ht(l.width,d));var se={height:h+b+"em"};M>0&&(se.width=M+"em"),b>0&&(se.verticalAlign=-b+"em");var Re=new Ie(l.src,l.alt,se);return Re.height=h,Re.depth=b,Re},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mglyph",[]);h.setAttribute("alt",l.alt);var b=ht(l.height,d),M=0;if(l.totalheight.number>0&&(M=ht(l.totalheight,d)-b,M=M.toFixed(2),h.setAttribute("valign","-"+M+"em")),h.setAttribute("height",b+M+"em"),l.width.number>0){var se=ht(l.width,d);h.setAttribute("width",se+"em")}return h.setAttribute("src",l.src),h}}),Hn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,M=Bn(d[0],"size");if(h.settings.strict){var se=b[1]==="m",Re=M.value.unit==="mu";se?(Re||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" supports only mu units, "+("not "+M.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" works only in math mode")):Re&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+b+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:M.value}},htmlBuilder:function(l,d){return dt.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var h=ht(l.dimension,d);return new Nn.SpaceNode(h)}}),Hn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0];return{type:"lap",mode:h.mode,alignment:b.slice(5),body:M}},htmlBuilder:function(l,d){var h;l.alignment==="clap"?(h=dt.makeSpan([],[Gr(l.body,d)]),h=dt.makeSpan(["inner"],[h],d)):h=dt.makeSpan(["inner"],[Gr(l.body,d)]);var b=dt.makeSpan(["fix"],[]),M=dt.makeSpan([l.alignment],[h,b],d),se=dt.makeSpan(["strut"]);return se.style.height=M.height+M.depth+"em",se.style.verticalAlign=-M.depth+"em",M.children.unshift(se),M=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:M}]},d),dt.makeSpan(["mord"],[M],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mpadded",[Vn(l.body,d)]);if(l.alignment!=="rlap"){var b=l.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",b+"width")}return h.setAttribute("width","0px"),h}}),Hn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=l.funcName,b=l.parser,M=b.mode;b.switchMode("math");var se=h==="\\("?"\\)":"$",Re=b.parseExpression(!1,se);return b.expect(se),b.switchMode(M),{type:"styling",mode:b.mode,style:"text",body:Re}}}),Hn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new m("Mismatched "+l.funcName)}});var Ha=function(l,d){switch(d.style.size){case y.DISPLAY.size:return l.display;case y.TEXT.size:return l.text;case y.SCRIPT.size:return l.script;case y.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};Hn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var h=l.parser;return{type:"mathchoice",mode:h.mode,display:Xr(d[0]),text:Xr(d[1]),script:Xr(d[2]),scriptscript:Xr(d[3])}},htmlBuilder:function(l,d){var h=Ha(l,d),b=oi(h,d,!1);return dt.makeFragment(b)},mathmlBuilder:function(l,d){var h=Ha(l,d);return lr(h,d)}});var Da=function(l,d,h,b,M,se,Re){l=dt.makeSpan([],[l]);var Pe,Je;if(d){var ft=Gr(d,b.havingStyle(M.sup()),b);Je={elem:ft,kern:Math.max(b.fontMetrics().bigOpSpacing1,b.fontMetrics().bigOpSpacing3-ft.depth)}}if(h){var Tt=Gr(h,b.havingStyle(M.sub()),b);Pe={elem:Tt,kern:Math.max(b.fontMetrics().bigOpSpacing2,b.fontMetrics().bigOpSpacing4-Tt.height)}}var Ht;if(Je&&Pe){var _n=b.fontMetrics().bigOpSpacing5+Pe.elem.height+Pe.elem.depth+Pe.kern+l.depth+Re;Ht=dt.makeVList({positionType:"bottom",positionData:_n,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:Pe.elem,marginLeft:-se+"em"},{type:"kern",size:Pe.kern},{type:"elem",elem:l},{type:"kern",size:Je.kern},{type:"elem",elem:Je.elem,marginLeft:se+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else if(Pe){var Vt=l.height-Re;Ht=dt.makeVList({positionType:"top",positionData:Vt,children:[{type:"kern",size:b.fontMetrics().bigOpSpacing5},{type:"elem",elem:Pe.elem,marginLeft:-se+"em"},{type:"kern",size:Pe.kern},{type:"elem",elem:l}]},b)}else if(Je){var Ge=l.depth+Re;Ht=dt.makeVList({positionType:"bottom",positionData:Ge,children:[{type:"elem",elem:l},{type:"kern",size:Je.kern},{type:"elem",elem:Je.elem,marginLeft:se+"em"},{type:"kern",size:b.fontMetrics().bigOpSpacing5}]},b)}else return l;return dt.makeSpan(["mop","op-limits"],[Ht],b)},ko=["\\smallint"],xa=function(l,d){var h,b,M=!1,se,Re=or(l,"supsub");Re?(h=Re.sup,b=Re.sub,se=Bn(Re.base,"op"),M=!0):se=Bn(l,"op");var Pe=d.style,Je=!1;Pe.size===y.DISPLAY.size&&se.symbol&&!z.contains(ko,se.name)&&(Je=!0);var ft;if(se.symbol){var Tt=Je?"Size2-Regular":"Size1-Regular",Ht="";if((se.name==="\\oiint"||se.name==="\\oiiint")&&(Ht=se.name.substr(1),se.name=Ht==="oiint"?"\\iint":"\\iiint"),ft=dt.makeSymbol(se.name,Tt,"math",d,["mop","op-symbol",Je?"large-op":"small-op"]),Ht.length>0){var _n=ft.italic,Vt=dt.staticSvg(Ht+"Size"+(Je?"2":"1"),d);ft=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ft,shift:0},{type:"elem",elem:Vt,shift:Je?.08:0}]},d),se.name="\\"+Ht,ft.classes.unshift("mop"),ft.italic=_n}}else if(se.body){var Ge=oi(se.body,d,!0);Ge.length===1&&Ge[0]instanceof R?(ft=Ge[0],ft.classes[0]="mop"):ft=dt.makeSpan(["mop"],dt.tryCombineChars(Ge),d)}else{for(var hn=[],Tn=1;Tn<se.name.length;Tn++)hn.push(dt.mathsym(se.name[Tn],se.mode,d));ft=dt.makeSpan(["mop"],hn,d)}var ur=0,In=0;return(ft instanceof R||se.name==="\\oiint"||se.name==="\\oiiint")&&!se.suppressBaseShift&&(ur=(ft.height-ft.depth)/2-d.fontMetrics().axisHeight,In=ft.italic),M?Da(ft,h,b,d,Pe,In,ur):(ur&&(ft.style.position="relative",ft.style.top=ur+"em"),ft)},Ba=function(l,d){var h;if(l.symbol)h=new Fr("mo",[Bi(l.name,l.mode)]),z.contains(ko,l.name)&&h.setAttribute("largeop","false");else if(l.body)h=new Fr("mo",xr(l.body,d));else{h=new Fr("mi",[new ds(l.name.slice(1))]);var b=new Fr("mo",[Bi("\u2061","text")]);l.parentIsSupSub?h=new Fr("mo",[h,b]):h=us([h,b])}return h},qa={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Hn({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(l,d){var h=l.parser,b=l.funcName,M=b;return M.length===1&&(M=qa[M]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:M}},htmlBuilder:xa,mathmlBuilder:Ba}),Hn({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=d[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Xr(b)}},htmlBuilder:xa,mathmlBuilder:Ba});var Yo={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Hn({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(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:xa,mathmlBuilder:Ba}),Hn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:xa,mathmlBuilder:Ba}),Hn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName,b=h;return b.length===1&&(b=Yo[b]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:b}},htmlBuilder:xa,mathmlBuilder:Ba});var Fa=function(l,d){var h,b,M=!1,se,Re=or(l,"supsub");Re?(h=Re.sup,b=Re.sub,se=Bn(Re.base,"operatorname"),M=!0):se=Bn(l,"operatorname");var Pe;if(se.body.length>0){for(var Je=se.body.map(function(_n){var Vt=_n.text;return typeof Vt=="string"?{type:"textord",mode:_n.mode,text:Vt}:_n}),ft=oi(Je,d.withFont("mathrm"),!0),Tt=0;Tt<ft.length;Tt++){var Ht=ft[Tt];Ht instanceof R&&(Ht.text=Ht.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Pe=dt.makeSpan(["mop"],ft,d)}else Pe=dt.makeSpan(["mop"],[],d);return M?Da(Pe,h,b,d,d.style,0,0):Pe},Xo=function(l,d){for(var h=xr(l.body,d.withFont("mathrm")),b=!0,M=0;M<h.length;M++){var se=h[M];if(!(se instanceof Nn.SpaceNode))if(se instanceof Nn.MathNode)switch(se.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Re=se.children[0];se.children.length===1&&Re instanceof Nn.TextNode?Re.text=Re.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):b=!1;break}default:b=!1}else b=!1}if(b){var Pe=h.map(function(Tt){return Tt.toText()}).join("");h=[new Nn.TextNode(Pe)]}var Je=new Nn.MathNode("mi",h);Je.setAttribute("mathvariant","normal");var ft=new Nn.MathNode("mo",[Bi("\u2061","text")]);return l.parentIsSupSub?new Nn.MathNode("mo",[Je,ft]):Nn.newDocumentFragment([Je,ft])};Hn({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0];return{type:"operatorname",mode:h.mode,body:Xr(M),alwaysHandleSupSub:b==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Fa,mathmlBuilder:Xo}),ri({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?dt.makeFragment(oi(l.body,d,!1)):dt.makeSpan(["mord"],oi(l.body,d,!0),d)},mathmlBuilder:function(l,d){return lr(l.body,d,!0)}}),Hn({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var h=l.parser,b=d[0];return{type:"overline",mode:h.mode,body:b}},htmlBuilder:function(l,d){var h=Gr(l.body,d.havingCrampedStyle()),b=dt.makeLineSpan("overline-line",d),M=d.fontMetrics().defaultRuleThickness,se=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*M},{type:"elem",elem:b},{type:"kern",size:M}]},d);return dt.makeSpan(["mord","overline"],[se],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mo",[new Nn.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new Nn.MathNode("mover",[Vn(l.body,d),h]);return b.setAttribute("accent","true"),b}}),Hn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[0];return{type:"phantom",mode:h.mode,body:Xr(b)}},htmlBuilder:function(l,d){var h=oi(l.body,d.withPhantom(),!1);return dt.makeFragment(h)},mathmlBuilder:function(l,d){var h=xr(l.body,d);return new Nn.MathNode("mphantom",h)}}),Hn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[0];return{type:"hphantom",mode:h.mode,body:b}},htmlBuilder:function(l,d){var h=dt.makeSpan([],[Gr(l.body,d.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var b=0;b<h.children.length;b++)h.children[b].height=0,h.children[b].depth=0;return h=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d),dt.makeSpan(["mord"],[h],d)},mathmlBuilder:function(l,d){var h=xr(Xr(l.body),d),b=new Nn.MathNode("mphantom",h),M=new Nn.MathNode("mpadded",[b]);return M.setAttribute("height","0px"),M.setAttribute("depth","0px"),M}}),Hn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,b=d[0];return{type:"vphantom",mode:h.mode,body:b}},htmlBuilder:function(l,d){var h=dt.makeSpan(["inner"],[Gr(l.body,d.withPhantom())]),b=dt.makeSpan(["fix"],[]);return dt.makeSpan(["mord","rlap"],[h,b],d)},mathmlBuilder:function(l,d){var h=xr(Xr(l.body),d),b=new Nn.MathNode("mphantom",h),M=new Nn.MathNode("mpadded",[b]);return M.setAttribute("width","0px"),M}}),Hn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser,b=Bn(d[0],"size").value,M=d[1];return{type:"raisebox",mode:h.mode,dy:b,body:M}},htmlBuilder:function(l,d){var h=Gr(l.body,d),b=ht(l.dy,d);return dt.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:h}]},d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mpadded",[Vn(l.body,d)]),b=l.dy.number+l.dy.unit;return h.setAttribute("voffset",b),h}}),Hn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,h){var b=l.parser,M=h[0],se=Bn(d[0],"size"),Re=Bn(d[1],"size");return{type:"rule",mode:b.mode,shift:M&&Bn(M,"size").value,width:se.value,height:Re.value}},htmlBuilder:function(l,d){var h=dt.makeSpan(["mord","rule"],[],d),b=ht(l.width,d),M=ht(l.height,d),se=l.shift?ht(l.shift,d):0;return h.style.borderRightWidth=b+"em",h.style.borderTopWidth=M+"em",h.style.bottom=se+"em",h.width=b,h.height=M+se,h.depth=-se,h.maxFontSize=M*1.125*d.sizeMultiplier,h},mathmlBuilder:function(l,d){var h=ht(l.width,d),b=ht(l.height,d),M=l.shift?ht(l.shift,d):0,se=d.color&&d.getColor()||"black",Re=new Nn.MathNode("mspace");Re.setAttribute("mathbackground",se),Re.setAttribute("width",h+"em"),Re.setAttribute("height",b+"em");var Pe=new Nn.MathNode("mpadded",[Re]);return M>=0?Pe.setAttribute("height","+"+M+"em"):(Pe.setAttribute("height",M+"em"),Pe.setAttribute("depth","+"+-M+"em")),Pe.setAttribute("voffset",M+"em"),Pe}});function ho(re,l,d){for(var h=oi(re,l,!1),b=l.sizeMultiplier/d.sizeMultiplier,M=0;M<h.length;M++){var se=h[M].classes.indexOf("sizing");se<0?Array.prototype.push.apply(h[M].classes,l.sizingClasses(d)):h[M].classes[se+1]==="reset-size"+l.size&&(h[M].classes[se+1]="reset-size"+d.size),h[M].height*=b,h[M].depth*=b}return dt.makeFragment(h)}var po=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],mo=function(l,d){var h=d.havingSize(l.size);return ho(l.body,h,d)};Hn({type:"sizing",names:po,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,b=l.funcName,M=l.parser,se=M.parseExpression(!1,h);return{type:"sizing",mode:M.mode,size:po.indexOf(b)+1,body:se}},htmlBuilder:mo,mathmlBuilder:function(l,d){var h=d.havingSize(l.size),b=xr(l.body,h),M=new Nn.MathNode("mstyle",b);return M.setAttribute("mathsize",h.sizeMultiplier+"em"),M}}),Hn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,h){var b=l.parser,M=!1,se=!1,Re=h[0]&&Bn(h[0],"ordgroup");if(Re)for(var Pe="",Je=0;Je<Re.body.length;++Je){var ft=Re.body[Je];if(Pe=ft.text,Pe==="t")M=!0;else if(Pe==="b")se=!0;else{M=!1,se=!1;break}}else M=!0,se=!0;var Tt=d[0];return{type:"smash",mode:b.mode,body:Tt,smashHeight:M,smashDepth:se}},htmlBuilder:function(l,d){var h=dt.makeSpan([],[Gr(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return h;if(l.smashHeight&&(h.height=0,h.children))for(var b=0;b<h.children.length;b++)h.children[b].height=0;if(l.smashDepth&&(h.depth=0,h.children))for(var M=0;M<h.children.length;M++)h.children[M].depth=0;var se=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d);return dt.makeSpan(["mord"],[se],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mpadded",[Vn(l.body,d)]);return l.smashHeight&&h.setAttribute("height","0px"),l.smashDepth&&h.setAttribute("depth","0px"),h}}),Hn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,h){var b=l.parser,M=h[0],se=d[0];return{type:"sqrt",mode:b.mode,body:se,index:M}},htmlBuilder:function(l,d){var h=Gr(l.body,d.havingCrampedStyle());h.height===0&&(h.height=d.fontMetrics().xHeight),h=dt.wrapFragment(h,d);var b=d.fontMetrics(),M=b.defaultRuleThickness,se=M;d.style.id<y.TEXT.id&&(se=d.fontMetrics().xHeight);var Re=M+se/4,Pe=h.height+h.depth+Re+M,Je=Bs.sqrtImage(Pe,d),ft=Je.span,Tt=Je.ruleWidth,Ht=Je.advanceWidth,_n=ft.height-Tt;_n>h.height+h.depth+Re&&(Re=(Re+_n-h.height-h.depth)/2);var Vt=ft.height-h.height-Re-Tt;h.style.paddingLeft=Ht+"em";var Ge=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+Vt)},{type:"elem",elem:ft},{type:"kern",size:Tt}]},d);if(l.index){var hn=d.havingStyle(y.SCRIPTSCRIPT),Tn=Gr(l.index,hn,d),ur=.6*(Ge.height-Ge.depth),In=dt.makeVList({positionType:"shift",positionData:-ur,children:[{type:"elem",elem:Tn}]},d),cr=dt.makeSpan(["root"],[In]);return dt.makeSpan(["mord","sqrt"],[cr,Ge],d)}else return dt.makeSpan(["mord","sqrt"],[Ge],d)},mathmlBuilder:function(l,d){var h=l.body,b=l.index;return b?new Nn.MathNode("mroot",[Vn(h,d),Vn(b,d)]):new Nn.MathNode("msqrt",[Vn(h,d)])}});var Mo={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT};Hn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,b=l.funcName,M=l.parser,se=M.parseExpression(!0,h),Re=b.slice(1,b.length-5);return{type:"styling",mode:M.mode,style:Re,body:se}},htmlBuilder:function(l,d){var h=Mo[l.style],b=d.havingStyle(h).withFont("");return ho(l.body,b,d)},mathmlBuilder:function(l,d){var h=Mo[l.style],b=d.havingStyle(h),M=xr(l.body,b),se=new Nn.MathNode("mstyle",M),Re={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Pe=Re[l.style];return se.setAttribute("scriptlevel",Pe[0]),se.setAttribute("displaystyle",Pe[1]),se}});var go=function(l,d){var h=l.base;if(h)if(h.type==="op"){var b=h.limits&&(d.style.size===y.DISPLAY.size||h.alwaysHandleSupSub);return b?xa:null}else if(h.type==="operatorname"){var M=h.alwaysHandleSupSub&&(d.style.size===y.DISPLAY.size||h.limits);return M?Fa:null}else{if(h.type==="accent")return z.isCharacterBox(h.base)?_i:null;if(h.type==="horizBrace"){var se=!l.sub;return se===h.isOver?fo:null}else return null}else return null};ri({type:"supsub",htmlBuilder:function(l,d){var h=go(l,d);if(h)return h(l,d);var b=l.base,M=l.sup,se=l.sub,Re=Gr(b,d),Pe,Je,ft=d.fontMetrics(),Tt=0,Ht=0,_n=b&&z.isCharacterBox(b);if(M){var Vt=d.havingStyle(d.style.sup());Pe=Gr(M,Vt,d),_n||(Tt=Re.height-Vt.fontMetrics().supDrop*Vt.sizeMultiplier/d.sizeMultiplier)}if(se){var Ge=d.havingStyle(d.style.sub());Je=Gr(se,Ge,d),_n||(Ht=Re.depth+Ge.fontMetrics().subDrop*Ge.sizeMultiplier/d.sizeMultiplier)}var hn;d.style===y.DISPLAY?hn=ft.sup1:d.style.cramped?hn=ft.sup3:hn=ft.sup2;var Tn=d.sizeMultiplier,ur=.5/ft.ptPerEm/Tn+"em",In=null;if(Je){var cr=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(Re instanceof R||cr)&&(In=-Re.italic+"em")}var Ar;if(Pe&&Je){Tt=Math.max(Tt,hn,Pe.depth+.25*ft.xHeight),Ht=Math.max(Ht,ft.sub2);var Dr=ft.defaultRuleThickness,fi=4*Dr;if(Tt-Pe.depth-(Je.height-Ht)<fi){Ht=fi-(Tt-Pe.depth)+Je.height;var hi=.8*ft.xHeight-(Tt-Pe.depth);hi>0&&(Tt+=hi,Ht-=hi)}var ki=[{type:"elem",elem:Je,shift:Ht,marginRight:ur,marginLeft:In},{type:"elem",elem:Pe,shift:-Tt,marginRight:ur}];Ar=dt.makeVList({positionType:"individualShift",children:ki},d)}else if(Je){Ht=Math.max(Ht,ft.sub1,Je.height-.8*ft.xHeight);var ci=[{type:"elem",elem:Je,marginLeft:In,marginRight:ur}];Ar=dt.makeVList({positionType:"shift",positionData:Ht,children:ci},d)}else if(Pe)Tt=Math.max(Tt,hn,Pe.depth+.25*ft.xHeight),Ar=dt.makeVList({positionType:"shift",positionData:-Tt,children:[{type:"elem",elem:Pe,marginRight:ur}]},d);else throw new Error("supsub must have either sup or sub.");var pi=Ki(Re,"right")||"mord";return dt.makeSpan([pi],[Re,dt.makeSpan(["msupsub"],[Ar])],d)},mathmlBuilder:function(l,d){var h=!1,b,M,se=or(l.base,"horizBrace");se&&(M=!!l.sup,M===se.isOver&&(h=!0,b=se.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var Re=[Vn(l.base,d)];l.sub&&Re.push(Vn(l.sub,d)),l.sup&&Re.push(Vn(l.sup,d));var Pe;if(h)Pe=b?"mover":"munder";else if(l.sub)if(l.sup){var Tt=l.base;Tt&&Tt.type==="op"&&Tt.limits&&d.style===y.DISPLAY||Tt&&Tt.type==="operatorname"&&Tt.alwaysHandleSupSub&&(d.style===y.DISPLAY||Tt.limits)?Pe="munderover":Pe="msubsup"}else{var ft=l.base;ft&&ft.type==="op"&&ft.limits&&(d.style===y.DISPLAY||ft.alwaysHandleSupSub)||ft&&ft.type==="operatorname"&&ft.alwaysHandleSupSub&&(ft.limits||d.style===y.DISPLAY)?Pe="munder":Pe="msub"}else{var Je=l.base;Je&&Je.type==="op"&&Je.limits&&(d.style===y.DISPLAY||Je.alwaysHandleSupSub)||Je&&Je.type==="operatorname"&&Je.alwaysHandleSupSub&&(Je.limits||d.style===y.DISPLAY)?Pe="mover":Pe="msup"}var Ht=new Nn.MathNode(Pe,Re);return Ht}}),ri({type:"atom",htmlBuilder:function(l,d){return dt.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mo",[Bi(l.text,l.mode)]);if(l.family==="bin"){var b=gr(l,d);b==="bold-italic"&&h.setAttribute("mathvariant",b)}else l.family==="punct"?h.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&h.setAttribute("stretchy","false");return h}});var No={mi:"italic",mn:"normal",mtext:"normal"};ri({type:"mathord",htmlBuilder:function(l,d){return dt.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mi",[Bi(l.text,l.mode,d)]),b=gr(l,d)||"italic";return b!==No[h.type]&&h.setAttribute("mathvariant",b),h}}),ri({type:"textord",htmlBuilder:function(l,d){return dt.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var h=Bi(l.text,l.mode,d),b=gr(l,d)||"normal",M;return l.mode==="text"?M=new Nn.MathNode("mtext",[h]):/[0-9]/.test(l.text)?M=new Nn.MathNode("mn",[h]):l.text==="\\prime"?M=new Nn.MathNode("mo",[h]):M=new Nn.MathNode("mi",[h]),b!==No[M.type]&&M.setAttribute("mathvariant",b),M}});var Za={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},vo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ri({type:"spacing",htmlBuilder:function(l,d){if(vo.hasOwnProperty(l.text)){var h=vo[l.text].className||"";if(l.mode==="text"){var b=dt.makeOrd(l,d,"textord");return b.classes.push(h),b}else return dt.makeSpan(["mspace",h],[dt.mathsym(l.text,l.mode,d)],d)}else{if(Za.hasOwnProperty(l.text))return dt.makeSpan(["mspace",Za[l.text]],[],d);throw new m('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var h;if(vo.hasOwnProperty(l.text))h=new Nn.MathNode("mtext",[new Nn.TextNode("\xA0")]);else{if(Za.hasOwnProperty(l.text))return new Nn.MathNode("mspace");throw new m('Unknown type of space "'+l.text+'"')}return h}});var yo=function(){var l=new Nn.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};ri({type:"tag",mathmlBuilder:function(l,d){var h=new Nn.MathNode("mtable",[new Nn.MathNode("mtr",[yo(),new Nn.MathNode("mtd",[lr(l.body,d)]),yo(),new Nn.MathNode("mtd",[lr(l.tag,d)])])]);return h.setAttribute("width","100%"),h}});var bo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eo={"\\textbf":"textbf","\\textmd":"textmd"},Bo={"\\textit":"textit","\\textup":"textup"},_o=function(l,d){var h=l.font;return h?bo[h]?d.withTextFontFamily(bo[h]):eo[h]?d.withTextFontWeight(eo[h]):d.withTextFontShape(Bo[h]):d};Hn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,d){var h=l.parser,b=l.funcName,M=d[0];return{type:"text",mode:h.mode,body:Xr(M),font:b}},htmlBuilder:function(l,d){var h=_o(l,d),b=oi(l.body,h,!0);return dt.makeSpan(["mord","text"],dt.tryCombineChars(b),h)},mathmlBuilder:function(l,d){var h=_o(l,d);return lr(l.body,h)}}),Hn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"underline",mode:h.mode,body:d[0]}},htmlBuilder:function(l,d){var h=Gr(l.body,d),b=dt.makeLineSpan("underline-line",d),M=d.fontMetrics().defaultRuleThickness,se=dt.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:M},{type:"elem",elem:b},{type:"kern",size:3*M},{type:"elem",elem:h}]},d);return dt.makeSpan(["mord","underline"],[se],d)},mathmlBuilder:function(l,d){var h=new Nn.MathNode("mo",[new Nn.TextNode("\u203E")]);h.setAttribute("stretchy","true");var b=new Nn.MathNode("munder",[Vn(l.body,d),h]);return b.setAttribute("accentunder","true"),b}}),Hn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,h){throw new m("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var h=xo(l),b=[],M=d.havingStyle(d.style.text()),se=0;se<h.length;se++){var Re=h[se];Re==="~"&&(Re="\\textasciitilde"),b.push(dt.makeSymbol(Re,"Typewriter-Regular",l.mode,M,["mord","texttt"]))}return dt.makeSpan(["mord","text"].concat(M.sizingClasses(d)),dt.tryCombineChars(b),M)},mathmlBuilder:function(l,d){var h=new Nn.TextNode(xo(l)),b=new Nn.MathNode("mtext",[h]);return b.setAttribute("mathvariant","monospace"),b}});var xo=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},to=Mr,$s=to,no=`[ \r
|
|
|
]`,Eo="\\\\[a-zA-Z@]+",ae="\\\\[^\uD800-\uDFFF]",ve=""+Eo+no+"*",$e=new RegExp("^("+Eo+")"+no+"*$"),We="[\u0300-\u036F]",st=new RegExp(We+"+$"),ot="("+no+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(We+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(We+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ve)+("|"+ae+")"),Et=function(){function re(d,h){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=h,this.tokenRegex=new RegExp(ot,"g"),this.catcodes={"%":14}}var l=re.prototype;return l.setCatcode=function(h,b){this.catcodes[h]=b},l.lex=function(){var h=this.input,b=this.tokenRegex.lastIndex;if(b===h.length)return new ue("EOF",new ee(this,b,b));var M=this.tokenRegex.exec(h);if(M===null||M.index!==b)throw new m("Unexpected character: '"+h[b]+"'",new ue(h[b],new ee(this,b,b+1)));var se=M[2]||" ";if(this.catcodes[se]===14){var Re=h.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Re===-1?(this.tokenRegex.lastIndex=h.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=Re+1,this.lex()}var Pe=se.match($e);return Pe&&(se=Pe[1]),new ue(se,new ee(this,b,this.tokenRegex.lastIndex))},re}(),St=function(){function re(d,h){d===void 0&&(d={}),h===void 0&&(h={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=h,this.builtins=d,this.undefStack=[]}var l=re.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new m("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var h=this.undefStack.pop();for(var b in h)h.hasOwnProperty(b)&&(h[b]===void 0?delete this.current[b]:this.current[b]=h[b])},l.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},l.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},l.set=function(h,b,M){if(M===void 0&&(M=!1),M){for(var se=0;se<this.undefStack.length;se++)delete this.undefStack[se][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=b)}else{var Re=this.undefStack[this.undefStack.length-1];Re&&!Re.hasOwnProperty(h)&&(Re[h]=this.current[h])}this.current[h]=b},re}(),bt={},It=bt;function we(re,l){bt[re]=l}we("\\@firstoftwo",function(re){var l=re.consumeArgs(2);return{tokens:l[0],numArgs:0}}),we("\\@secondoftwo",function(re){var l=re.consumeArgs(2);return{tokens:l[1],numArgs:0}}),we("\\@ifnextchar",function(re){var l=re.consumeArgs(3),d=re.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),we("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),we("\\TextOrMath",function(re){var l=re.consumeArgs(2);return re.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var Ut={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};we("\\char",function(re){var l=re.popToken(),d,h="";if(l.text==="'")d=8,l=re.popToken();else if(l.text==='"')d=16,l=re.popToken();else if(l.text==="`")if(l=re.popToken(),l.text[0]==="\\")h=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new m("\\char` missing argument");h=l.text.charCodeAt(0)}else d=10;if(d){if(h=Ut[l.text],h==null||h>=d)throw new m("Invalid base-"+d+" digit "+l.text);for(var b;(b=Ut[re.future().text])!=null&&b<d;)h*=d,h+=b,re.popToken()}return"\\@char{"+h+"}"});var fn=function(l,d){var h=l.consumeArgs(1)[0];if(h.length!==1)throw new m("\\gdef's first argument must be a macro name");var b=h[0].text,M=0;for(h=l.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=l.consumeArgs(1)[0],h.length!==1)throw new m('Invalid argument number length "'+h.length+'"');if(!/^[1-9]$/.test(h[0].text))throw new m('Invalid argument number "'+h[0].text+'"');if(M++,parseInt(h[0].text)!==M)throw new m('Argument number "'+h[0].text+'" out of order');h=l.consumeArgs(1)[0]}return l.macros.set(b,{tokens:h,numArgs:M},d),""};we("\\gdef",function(re){return fn(re,!0)}),we("\\def",function(re){return fn(re,!1)}),we("\\global",function(re){var l=re.consumeArgs(1)[0];if(l.length!==1)throw new m("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return fn(re,!0);throw new m("Invalid command '"+d+"' after \\global")});var an=function(l,d,h){var b=l.consumeArgs(1)[0];if(b.length!==1)throw new m("\\newcommand's first argument must be a macro name");var M=b[0].text,se=l.isDefined(M);if(se&&!d)throw new m("\\newcommand{"+M+"} attempting to redefine "+(M+"; use \\renewcommand"));if(!se&&!h)throw new m("\\renewcommand{"+M+"} when command "+M+" does not yet exist; use \\newcommand");var Re=0;if(b=l.consumeArgs(1)[0],b.length===1&&b[0].text==="["){for(var Pe="",Je=l.expandNextToken();Je.text!=="]"&&Je.text!=="EOF";)Pe+=Je.text,Je=l.expandNextToken();if(!Pe.match(/^\s*[0-9]+\s*$/))throw new m("Invalid number of arguments: "+Pe);Re=parseInt(Pe),b=l.consumeArgs(1)[0]}return l.macros.set(M,{tokens:b,numArgs:Re}),""};we("\\newcommand",function(re){return an(re,!1,!0)}),we("\\renewcommand",function(re){return an(re,!0,!1)}),we("\\providecommand",function(re){return an(re,!0,!0)}),we("\\bgroup","{"),we("\\egroup","}"),we("\\lq","`"),we("\\rq","'"),we("\\aa","\\r a"),we("\\AA","\\r A"),we("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),we("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),we("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),we("\u212C","\\mathscr{B}"),we("\u2130","\\mathscr{E}"),we("\u2131","\\mathscr{F}"),we("\u210B","\\mathscr{H}"),we("\u2110","\\mathscr{I}"),we("\u2112","\\mathscr{L}"),we("\u2133","\\mathscr{M}"),we("\u211B","\\mathscr{R}"),we("\u212D","\\mathfrak{C}"),we("\u210C","\\mathfrak{H}"),we("\u2128","\\mathfrak{Z}"),we("\\Bbbk","\\Bbb{k}"),we("\xB7","\\cdotp"),we("\\llap","\\mathllap{\\textrm{#1}}"),we("\\rlap","\\mathrlap{\\textrm{#1}}"),we("\\clap","\\mathclap{\\textrm{#1}}"),we("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),we("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),we("\\ne","\\neq"),we("\u2260","\\neq"),we("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),we("\u2209","\\notin"),we("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),we("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),we("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),we("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),we("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),we("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),we("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),we("\u27C2","\\perp"),we("\u203C","\\mathclose{!\\mkern-0.8mu!}"),we("\u220C","\\notni"),we("\u231C","\\ulcorner"),we("\u231D","\\urcorner"),we("\u231E","\\llcorner"),we("\u231F","\\lrcorner"),we("\xA9","\\copyright"),we("\xAE","\\textregistered"),we("\uFE0F","\\textregistered"),we("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),we("\u22EE","\\vdots"),we("\\varGamma","\\mathit{\\Gamma}"),we("\\varDelta","\\mathit{\\Delta}"),we("\\varTheta","\\mathit{\\Theta}"),we("\\varLambda","\\mathit{\\Lambda}"),we("\\varXi","\\mathit{\\Xi}"),we("\\varPi","\\mathit{\\Pi}"),we("\\varSigma","\\mathit{\\Sigma}"),we("\\varUpsilon","\\mathit{\\Upsilon}"),we("\\varPhi","\\mathit{\\Phi}"),we("\\varPsi","\\mathit{\\Psi}"),we("\\varOmega","\\mathit{\\Omega}"),we("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),we("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),we("\\boxed","\\fbox{$\\displaystyle{#1}$}"),we("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),we("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),we("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var dn={",":"\\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"};we("\\dots",function(re){var l="\\dotso",d=re.expandAfterFuture().text;return d in dn?l=dn[d]:(d.substr(0,4)==="\\not"||d in jt.math&&z.contains(["bin","rel"],jt.math[d].group))&&(l="\\dotsb"),l});var Fn={")":!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};we("\\dotso",function(re){var l=re.future().text;return l in Fn?"\\ldots\\,":"\\ldots"}),we("\\dotsc",function(re){var l=re.future().text;return l in Fn&&l!==","?"\\ldots\\,":"\\ldots"}),we("\\cdots",function(re){var l=re.future().text;return l in Fn?"\\@cdots\\,":"\\@cdots"}),we("\\dotsb","\\cdots"),we("\\dotsm","\\cdots"),we("\\dotsi","\\!\\cdots"),we("\\dotsx","\\ldots\\,"),we("\\DOTSI","\\relax"),we("\\DOTSB","\\relax"),we("\\DOTSX","\\relax"),we("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),we("\\,","\\tmspace+{3mu}{.1667em}"),we("\\thinspace","\\,"),we("\\>","\\mskip{4mu}"),we("\\:","\\tmspace+{4mu}{.2222em}"),we("\\medspace","\\:"),we("\\;","\\tmspace+{5mu}{.2777em}"),we("\\thickspace","\\;"),we("\\!","\\tmspace-{3mu}{.1667em}"),we("\\negthinspace","\\!"),we("\\negmedspace","\\tmspace-{4mu}{.2222em}"),we("\\negthickspace","\\tmspace-{5mu}{.277em}"),we("\\enspace","\\kern.5em "),we("\\enskip","\\hskip.5em\\relax"),we("\\quad","\\hskip1em\\relax"),we("\\qquad","\\hskip2em\\relax"),we("\\tag","\\@ifstar\\tag@literal\\tag@paren"),we("\\tag@paren","\\tag@literal{({#1})}"),we("\\tag@literal",function(re){if(re.macros.get("\\df@tag"))throw new m("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),we("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),we("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),we("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),we("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),we("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),we("\\\\","\\newline"),we("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var kn=je["Main-Regular"][84][1]-.7*je["Main-Regular"][65][1]+"em";we("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+kn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),we("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+kn+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),we("\\hspace","\\@ifstar\\@hspacer\\@hspace"),we("\\@hspace","\\hskip #1\\relax"),we("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),we("\\ordinarycolon",":"),we("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),we("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),we("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),we("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),we("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),we("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),we("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),we("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),we("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),we("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),we("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),we("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),we("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),we("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),we("\u2237","\\dblcolon"),we("\u2239","\\eqcolon"),we("\u2254","\\coloneqq"),we("\u2255","\\eqqcolon"),we("\u2A74","\\Coloneqq"),we("\\ratio","\\vcentcolon"),we("\\coloncolon","\\dblcolon"),we("\\colonequals","\\coloneqq"),we("\\coloncolonequals","\\Coloneqq"),we("\\equalscolon","\\eqqcolon"),we("\\equalscoloncolon","\\Eqqcolon"),we("\\colonminus","\\coloneq"),we("\\coloncolonminus","\\Coloneq"),we("\\minuscolon","\\eqcolon"),we("\\minuscoloncolon","\\Eqcolon"),we("\\coloncolonapprox","\\Colonapprox"),we("\\coloncolonsim","\\Colonsim"),we("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),we("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),we("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),we("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),we("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),we("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),we("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),we("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),we("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),we("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),we("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),we("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),we("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),we("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),we("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),we("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),we("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),we("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),we("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),we("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),we("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),we("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),we("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),we("\u27E6","\\llbracket"),we("\u27E7","\\rrbracket"),we("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),we("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),we("\u2983","\\lBrace"),we("\u2984","\\rBrace"),we("\\darr","\\downarrow"),we("\\dArr","\\Downarrow"),we("\\Darr","\\Downarrow"),we("\\lang","\\langle"),we("\\rang","\\rangle"),we("\\uarr","\\uparrow"),we("\\uArr","\\Uparrow"),we("\\Uarr","\\Uparrow"),we("\\N","\\mathbb{N}"),we("\\R","\\mathbb{R}"),we("\\Z","\\mathbb{Z}"),we("\\alef","\\aleph"),we("\\alefsym","\\aleph"),we("\\Alpha","\\mathrm{A}"),we("\\Beta","\\mathrm{B}"),we("\\bull","\\bullet"),we("\\Chi","\\mathrm{X}"),we("\\clubs","\\clubsuit"),we("\\cnums","\\mathbb{C}"),we("\\Complex","\\mathbb{C}"),we("\\Dagger","\\ddagger"),we("\\diamonds","\\diamondsuit"),we("\\empty","\\emptyset"),we("\\Epsilon","\\mathrm{E}"),we("\\Eta","\\mathrm{H}"),we("\\exist","\\exists"),we("\\harr","\\leftrightarrow"),we("\\hArr","\\Leftrightarrow"),we("\\Harr","\\Leftrightarrow"),we("\\hearts","\\heartsuit"),we("\\image","\\Im"),we("\\infin","\\infty"),we("\\Iota","\\mathrm{I}"),we("\\isin","\\in"),we("\\Kappa","\\mathrm{K}"),we("\\larr","\\leftarrow"),we("\\lArr","\\Leftarrow"),we("\\Larr","\\Leftarrow"),we("\\lrarr","\\leftrightarrow"),we("\\lrArr","\\Leftrightarrow"),we("\\Lrarr","\\Leftrightarrow"),we("\\Mu","\\mathrm{M}"),we("\\natnums","\\mathbb{N}"),we("\\Nu","\\mathrm{N}"),we("\\Omicron","\\mathrm{O}"),we("\\plusmn","\\pm"),we("\\rarr","\\rightarrow"),we("\\rArr","\\Rightarrow"),we("\\Rarr","\\Rightarrow"),we("\\real","\\Re"),we("\\reals","\\mathbb{R}"),we("\\Reals","\\mathbb{R}"),we("\\Rho","\\mathrm{P}"),we("\\sdot","\\cdot"),we("\\sect","\\S"),we("\\spades","\\spadesuit"),we("\\sub","\\subset"),we("\\sube","\\subseteq"),we("\\supe","\\supseteq"),we("\\Tau","\\mathrm{T}"),we("\\thetasym","\\vartheta"),we("\\weierp","\\wp"),we("\\Zeta","\\mathrm{Z}"),we("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),we("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),we("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),we("\\blue","\\textcolor{##6495ed}{#1}"),we("\\orange","\\textcolor{##ffa500}{#1}"),we("\\pink","\\textcolor{##ff00af}{#1}"),we("\\red","\\textcolor{##df0030}{#1}"),we("\\green","\\textcolor{##28ae7b}{#1}"),we("\\gray","\\textcolor{gray}{#1}"),we("\\purple","\\textcolor{##9d38bd}{#1}"),we("\\blueA","\\textcolor{##ccfaff}{#1}"),we("\\blueB","\\textcolor{##80f6ff}{#1}"),we("\\blueC","\\textcolor{##63d9ea}{#1}"),we("\\blueD","\\textcolor{##11accd}{#1}"),we("\\blueE","\\textcolor{##0c7f99}{#1}"),we("\\tealA","\\textcolor{##94fff5}{#1}"),we("\\tealB","\\textcolor{##26edd5}{#1}"),we("\\tealC","\\textcolor{##01d1c1}{#1}"),we("\\tealD","\\textcolor{##01a995}{#1}"),we("\\tealE","\\textcolor{##208170}{#1}"),we("\\greenA","\\textcolor{##b6ffb0}{#1}"),we("\\greenB","\\textcolor{##8af281}{#1}"),we("\\greenC","\\textcolor{##74cf70}{#1}"),we("\\greenD","\\textcolor{##1fab54}{#1}"),we("\\greenE","\\textcolor{##0d923f}{#1}"),we("\\goldA","\\textcolor{##ffd0a9}{#1}"),we("\\goldB","\\textcolor{##ffbb71}{#1}"),we("\\goldC","\\textcolor{##ff9c39}{#1}"),we("\\goldD","\\textcolor{##e07d10}{#1}"),we("\\goldE","\\textcolor{##a75a05}{#1}"),we("\\redA","\\textcolor{##fca9a9}{#1}"),we("\\redB","\\textcolor{##ff8482}{#1}"),we("\\redC","\\textcolor{##f9685d}{#1}"),we("\\redD","\\textcolor{##e84d39}{#1}"),we("\\redE","\\textcolor{##bc2612}{#1}"),we("\\maroonA","\\textcolor{##ffbde0}{#1}"),we("\\maroonB","\\textcolor{##ff92c6}{#1}"),we("\\maroonC","\\textcolor{##ed5fa6}{#1}"),we("\\maroonD","\\textcolor{##ca337c}{#1}"),we("\\maroonE","\\textcolor{##9e034e}{#1}"),we("\\purpleA","\\textcolor{##ddd7ff}{#1}"),we("\\purpleB","\\textcolor{##c6b9fc}{#1}"),we("\\purpleC","\\textcolor{##aa87ff}{#1}"),we("\\purpleD","\\textcolor{##7854ab}{#1}"),we("\\purpleE","\\textcolor{##543b78}{#1}"),we("\\mintA","\\textcolor{##f5f9e8}{#1}"),we("\\mintB","\\textcolor{##edf2df}{#1}"),we("\\mintC","\\textcolor{##e0e5cc}{#1}"),we("\\grayA","\\textcolor{##f6f7f7}{#1}"),we("\\grayB","\\textcolor{##f0f1f2}{#1}"),we("\\grayC","\\textcolor{##e3e5e6}{#1}"),we("\\grayD","\\textcolor{##d6d8da}{#1}"),we("\\grayE","\\textcolor{##babec2}{#1}"),we("\\grayF","\\textcolor{##888d93}{#1}"),we("\\grayG","\\textcolor{##626569}{#1}"),we("\\grayH","\\textcolor{##3b3e40}{#1}"),we("\\grayI","\\textcolor{##21242c}{#1}"),we("\\kaBlue","\\textcolor{##314453}{#1}"),we("\\kaGreen","\\textcolor{##71B307}{#1}");var $n={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Mn=function(){function re(d,h,b){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=h,this.expansionCount=0,this.feed(d),this.macros=new St(It,h.macros),this.mode=b,this.stack=[]}var l=re.prototype;return l.feed=function(h){this.lexer=new Et(h,this.settings)},l.switchMode=function(h){this.mode=h},l.beginGroup=function(){this.macros.beginGroup()},l.endGroup=function(){this.macros.endGroup()},l.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},l.popToken=function(){return this.future(),this.stack.pop()},l.pushToken=function(h){this.stack.push(h)},l.pushTokens=function(h){var b;(b=this.stack).push.apply(b,h)},l.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},l.consumeArgs=function(h){for(var b=[],M=0;M<h;++M){this.consumeSpaces();var se=this.popToken();if(se.text==="{"){for(var Re=[],Pe=1;Pe!==0;){var Je=this.popToken();if(Re.push(Je),Je.text==="{")++Pe;else if(Je.text==="}")--Pe;else if(Je.text==="EOF")throw new m("End of input in macro argument",se)}Re.pop(),Re.reverse(),b[M]=Re}else{if(se.text==="EOF")throw new m("End of input expecting macro argument");b[M]=[se]}}return b},l.expandOnce=function(){var h=this.popToken(),b=h.text,M=this._getExpansion(b);if(M==null)return this.pushToken(h),h;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new m("Too many expansions: infinite loop or need to increase maxExpand setting");var se=M.tokens;if(M.numArgs){var Re=this.consumeArgs(M.numArgs);se=se.slice();for(var Pe=se.length-1;Pe>=0;--Pe){var Je=se[Pe];if(Je.text==="#"){if(Pe===0)throw new m("Incomplete placeholder at end of macro body",Je);if(Je=se[--Pe],Je.text==="#")se.splice(Pe+1,1);else if(/^[1-9]$/.test(Je.text)){var ft;(ft=se).splice.apply(ft,[Pe,2].concat(Re[+Je.text-1]))}else throw new m("Not a valid argument number",Je)}}}return this.pushTokens(se),se},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof ue)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(h){if(this.macros.get(h)){var b=[],M=this.stack.length;for(this.pushToken(new ue(h));this.stack.length>M;){var se=this.expandOnce();se instanceof ue&&b.push(this.stack.pop())}return b}},l.expandMacroAsText=function(h){var b=this.expandMacro(h);return b&&b.map(function(M){return M.text}).join("")},l._getExpansion=function(h){var b=this.macros.get(h);if(b==null)return b;var M=typeof b=="function"?b(this):b;if(typeof M=="string"){var se=0;if(M.indexOf("#")!==-1)for(var Re=M.replace(/##/g,"");Re.indexOf("#"+(se+1))!==-1;)++se;for(var Pe=new Et(M,this.settings),Je=[],ft=Pe.lex();ft.text!=="EOF";)Je.push(ft),ft=Pe.lex();Je.reverse();var Tt={tokens:Je,numArgs:se};return Tt}return M},l.isDefined=function(h){return this.macros.has(h)||$s.hasOwnProperty(h)||jt.math.hasOwnProperty(h)||jt.text.hasOwnProperty(h)||$n.hasOwnProperty(h)},re}(),Gn={"\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"}},Sr={\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"},wr=function(){function re(d,h){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 Mn(d,h,this.mode),this.settings=h,this.leftrightDepth=0}var l=re.prototype;return l.expect=function(h,b){if(b===void 0&&(b=!0),this.fetch().text!==h)throw new m("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());b&&this.consume()},l.consume=function(){this.nextToken=null},l.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},l.switchMode=function(h){this.mode=h,this.gullet.switchMode(h)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var h=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),h},l.parseExpression=function(h,b){for(var M=[];;){this.mode==="math"&&this.consumeSpaces();var se=this.fetch();if(re.endOfExpression.indexOf(se.text)!==-1||b&&se.text===b||h&&$s[se.text]&&$s[se.text].infix)break;var Re=this.parseAtom(b);if(!Re)break;M.push(Re)}return this.mode==="text"&&this.formLigatures(M),this.handleInfixNodes(M)},l.handleInfixNodes=function(h){for(var b=-1,M,se=0;se<h.length;se++){var Re=or(h[se],"infix");if(Re){if(b!==-1)throw new m("only one infix operator per group",Re.token);b=se,M=Re.replaceWith}}if(b!==-1&&M){var Pe,Je,ft=h.slice(0,b),Tt=h.slice(b+1);ft.length===1&&ft[0].type==="ordgroup"?Pe=ft[0]:Pe={type:"ordgroup",mode:this.mode,body:ft},Tt.length===1&&Tt[0].type==="ordgroup"?Je=Tt[0]:Je={type:"ordgroup",mode:this.mode,body:Tt};var Ht;return M==="\\\\abovefrac"?Ht=this.callFunction(M,[Pe,h[b],Je],[]):Ht=this.callFunction(M,[Pe,Je],[]),[Ht]}else return h},l.handleSupSubscript=function(h){var b=this.fetch(),M=b.text;this.consume();var se=this.parseGroup(h,!1,re.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!se)throw new m("Expected group after '"+M+"'",b);return se},l.formatUnsupportedCmd=function(h){for(var b=[],M=0;M<h.length;M++)b.push({type:"textord",mode:"text",text:h[M]});var se={type:"text",mode:this.mode,body:b},Re={type:"color",mode:this.mode,color:this.settings.errorColor,body:[se]};return Re},l.parseAtom=function(h){var b=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return b;for(var M,se;;){this.consumeSpaces();var Re=this.fetch();if(Re.text==="\\limits"||Re.text==="\\nolimits"){var Pe=or(b,"op");if(Pe){var Je=Re.text==="\\limits";Pe.limits=Je,Pe.alwaysHandleSupSub=!0}else if(Pe=or(b,"operatorname"),Pe&&Pe.alwaysHandleSupSub){var ft=Re.text==="\\limits";Pe.limits=ft}else throw new m("Limit controls must follow a math operator",Re);this.consume()}else if(Re.text==="^"){if(M)throw new m("Double superscript",Re);M=this.handleSupSubscript("superscript")}else if(Re.text==="_"){if(se)throw new m("Double subscript",Re);se=this.handleSupSubscript("subscript")}else if(Re.text==="'"){if(M)throw new m("Double superscript",Re);var Tt={type:"textord",mode:this.mode,text:"\\prime"},Ht=[Tt];for(this.consume();this.fetch().text==="'";)Ht.push(Tt),this.consume();this.fetch().text==="^"&&Ht.push(this.handleSupSubscript("superscript")),M={type:"ordgroup",mode:this.mode,body:Ht}}else break}return M||se?{type:"supsub",mode:this.mode,base:b,sup:M,sub:se}:b},l.parseFunction=function(h,b,M){var se=this.fetch(),Re=se.text,Pe=$s[Re];if(!Pe)return null;if(this.consume(),M!=null&&Pe.greediness<=M)throw new m("Got function '"+Re+"' with no arguments"+(b?" as "+b:""),se);if(this.mode==="text"&&!Pe.allowedInText)throw new m("Can't use function '"+Re+"' in text mode",se);if(this.mode==="math"&&Pe.allowedInMath===!1)throw new m("Can't use function '"+Re+"' in math mode",se);var Je=this.parseArguments(Re,Pe),ft=Je.args,Tt=Je.optArgs;return this.callFunction(Re,ft,Tt,se,h)},l.callFunction=function(h,b,M,se,Re){var Pe={funcName:h,parser:this,token:se,breakOnTokenText:Re},Je=$s[h];if(Je&&Je.handler)return Je.handler(Pe,b,M);throw new m("No function handler for "+h)},l.parseArguments=function(h,b){var M=b.numArgs+b.numOptionalArgs;if(M===0)return{args:[],optArgs:[]};for(var se=b.greediness,Re=[],Pe=[],Je=0;Je<M;Je++){var ft=b.argTypes&&b.argTypes[Je],Tt=Je<b.numOptionalArgs,Ht=Je>0&&!Tt||Je===0&&!Tt&&this.mode==="math",_n=this.parseGroupOfType("argument to '"+h+"'",ft,Tt,se,Ht);if(!_n){if(Tt){Pe.push(null);continue}throw new m("Expected group after '"+h+"'",this.fetch())}(Tt?Pe:Re).push(_n)}return{args:Re,optArgs:Pe}},l.parseGroupOfType=function(h,b,M,se,Re){switch(b){case"color":return Re&&this.consumeSpaces(),this.parseColorGroup(M);case"size":return Re&&this.consumeSpaces(),this.parseSizeGroup(M);case"url":return this.parseUrlGroup(M,Re);case"math":case"text":return this.parseGroup(h,M,se,void 0,b,Re);case"hbox":{var Pe=this.parseGroup(h,M,se,void 0,"text",Re);if(!Pe)return Pe;var Je={type:"styling",mode:Pe.mode,body:[Pe],style:"text"};return Je}case"raw":{if(Re&&this.consumeSpaces(),M&&this.fetch().text==="{")return null;var ft=this.parseStringGroup("raw",M,!0);if(ft)return{type:"raw",mode:"text",string:ft.text};throw new m("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,M,se,void 0,void 0,Re);default:throw new m("Unknown group type as "+h,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(h,b,M){var se=b?"[":"{",Re=b?"]":"}",Pe=this.fetch();if(Pe.text!==se){if(b)return null;if(M&&Pe.text!=="EOF"&&/[^{}[\]]/.test(Pe.text))return this.consume(),Pe}var Je=this.mode;this.mode="text",this.expect(se);for(var ft="",Tt=this.fetch(),Ht=0,_n=Tt,Vt;(Vt=this.fetch()).text!==Re||M&&Ht>0;){switch(Vt.text){case"EOF":throw new m("Unexpected end of input in "+h,Tt.range(_n,ft));case se:Ht++;break;case Re:Ht--;break}_n=Vt,ft+=_n.text,this.consume()}return this.expect(Re),this.mode=Je,Tt.range(_n,ft)},l.parseRegexGroup=function(h,b){var M=this.mode;this.mode="text";for(var se=this.fetch(),Re=se,Pe="",Je;(Je=this.fetch()).text!=="EOF"&&h.test(Pe+Je.text);)Re=Je,Pe+=Re.text,this.consume();if(Pe==="")throw new m("Invalid "+b+": '"+se.text+"'",se);return this.mode=M,se.range(Re,Pe)},l.parseColorGroup=function(h){var b=this.parseStringGroup("color",h);if(!b)return null;var M=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(b.text);if(!M)throw new m("Invalid color: '"+b.text+"'",b);var se=M[0];return/^[0-9a-f]{6}$/i.test(se)&&(se="#"+se),{type:"color-token",mode:this.mode,color:se}},l.parseSizeGroup=function(h){var b,M=!1;if(!h&&this.fetch().text!=="{"?b=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):b=this.parseStringGroup("size",h),!b)return null;!h&&b.text.length===0&&(b.text="0pt",M=!0);var se=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(b.text);if(!se)throw new m("Invalid size: '"+b.text+"'",b);var Re={number:+(se[1]+se[2]),unit:se[3]};if(!ct(Re))throw new m("Invalid unit: '"+Re.unit+"'",b);return{type:"size",mode:this.mode,value:Re,isBlank:M}},l.parseUrlGroup=function(h,b){this.gullet.lexer.setCatcode("%",13);var M=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!M)return null;var se=M.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:se}},l.parseGroup=function(h,b,M,se,Re,Pe){var Je=this.mode;Re&&this.switchMode(Re),Pe&&this.consumeSpaces();var ft=this.fetch(),Tt=ft.text,Ht;if(b?Tt==="[":Tt==="{"||Tt==="\\begingroup"){this.consume();var _n=re.endOfGroup[Tt];this.gullet.beginGroup();var Vt=this.parseExpression(!1,_n),Ge=this.fetch();this.expect(_n),this.gullet.endGroup(),Ht={type:"ordgroup",mode:this.mode,loc:ee.range(ft,Ge),body:Vt,semisimple:Tt==="\\begingroup"||void 0}}else if(b)Ht=null;else if(Ht=this.parseFunction(se,h,M)||this.parseSymbol(),Ht==null&&Tt[0]==="\\"&&!$n.hasOwnProperty(Tt)){if(this.settings.throwOnError)throw new m("Undefined control sequence: "+Tt,ft);Ht=this.formatUnsupportedCmd(Tt),this.consume()}return Re&&this.switchMode(Je),Ht},l.formLigatures=function(h){for(var b=h.length-1,M=0;M<b;++M){var se=h[M],Re=se.text;Re==="-"&&h[M+1].text==="-"&&(M+1<b&&h[M+2].text==="-"?(h.splice(M,3,{type:"textord",mode:"text",loc:ee.range(se,h[M+2]),text:"---"}),b-=2):(h.splice(M,2,{type:"textord",mode:"text",loc:ee.range(se,h[M+1]),text:"--"}),b-=1)),(Re==="'"||Re==="`")&&h[M+1].text===Re&&(h.splice(M,2,{type:"textord",mode:"text",loc:ee.range(se,h[M+1]),text:Re+Re}),b-=1)}},l.parseSymbol=function(){var h=this.fetch(),b=h.text;if(/^\\verb[^a-zA-Z]/.test(b)){this.consume();var M=b.slice(5),se=M.charAt(0)==="*";if(se&&(M=M.slice(1)),M.length<2||M.charAt(0)!==M.slice(-1))throw new m(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return M=M.slice(1,-1),{type:"verb",mode:"text",body:M,star:se}}Sr.hasOwnProperty(b[0])&&!jt[this.mode][b[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+b[0]+'" used in math mode',h),b=Sr[b[0]]+b.substr(1));var Re=st.exec(b);Re&&(b=b.substring(0,Re.index),b==="i"?b="\u0131":b==="j"&&(b="\u0237"));var Pe;if(jt[this.mode][b]){this.settings.strict&&this.mode==="math"&&cn.indexOf(b)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+b[0]+'" used in math mode',h);var Je=jt[this.mode][b].group,ft=ee.range(h),Tt;if(Dt.hasOwnProperty(Je)){var Ht=Je;Tt={type:"atom",mode:this.mode,family:Ht,loc:ft,text:b}}else Tt={type:Je,mode:this.mode,loc:ft,text:b};Pe=Tt}else if(b.charCodeAt(0)>=128)this.settings.strict&&(Ne(b.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+b[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+b[0]+'"'+(" ("+b.charCodeAt(0)+")"),h)),Pe={type:"textord",mode:"text",loc:ee.range(h),text:b};else return null;if(this.consume(),Re)for(var _n=0;_n<Re[0].length;_n++){var Vt=Re[0][_n];if(!Gn[Vt])throw new m("Unknown accent ' "+Vt+"'",h);var Ge=Gn[Vt][this.mode];if(!Ge)throw new m("Accent "+Vt+" unsupported in "+this.mode+" mode",h);Pe={type:"accent",mode:this.mode,loc:ee.range(h),label:Ge,isStretchy:!1,isShifty:!0,base:Pe}}return Pe},re}();wr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],wr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},wr.SUPSUB_GREEDINESS=1;var br=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new wr(l,d);delete h.gullet.macros.current["\\df@tag"];var b=h.parse();if(h.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new m("\\tag works only in display equations");h.gullet.feed("\\df@tag"),b=[{type:"tag",mode:"text",body:b,tag:h.parse()}]}return b},kr=br,jr=function(l,d,h){d.textContent="";var b=Kn(l,h).toNode();d.appendChild(b)};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."),jr=function(){throw new m("KaTeX doesn't work in quirks mode.")});var er=function(l,d){var h=Kn(l,d).toMarkup();return h},_r=function(l,d){var h=new $(d);return kr(l,h)},Jn=function(l,d,h){if(h.throwOnError||!(l instanceof m))throw l;var b=dt.makeSpan(["katex-error"],[new R(d)]);return b.setAttribute("title",l.toString()),b.setAttribute("style","color:"+h.errorColor),b},Kn=function(l,d){var h=new $(d);try{var b=kr(l,h);return Pi(b,l,h)}catch(M){return Jn(M,l,h)}},hr=function(l,d){var h=new $(d);try{var b=kr(l,h);return Ai(b,l,h)}catch(M){return Jn(M,l,h)}},Nr={version:"0.11.1",render:jr,renderToString:er,ParseError:m,__parse:_r,__renderToDomTree:Kn,__renderToHTMLTree:hr,__setFontMetrics:qe,__defineSymbol:C,__defineMacro:we,__domTree:{Span:le,Anchor:J,SymbolNode:R,SvgNode:P,PathNode:fe,LineNode:oe}},Jr=p.default=Nr}]).default})},32834:function(Qt){(function(He,p){Qt.exports=p()})(this,function(){"use strict";function He(it,nt){for(var rt=0;rt<nt.length;rt++){var Ee=nt[rt];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(it,Ee.key,Ee)}}function p(it,nt,rt){return nt&&He(it.prototype,nt),rt&&He(it,rt),it}function O(it,nt){if(it){if(typeof it=="string")return U(it,nt);var rt=Object.prototype.toString.call(it).slice(8,-1);if(rt==="Object"&&it.constructor&&(rt=it.constructor.name),rt==="Map"||rt==="Set")return Array.from(it);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return U(it,nt)}}function U(it,nt){(nt==null||nt>it.length)&&(nt=it.length);for(var rt=0,Ee=new Array(nt);rt<nt;rt++)Ee[rt]=it[rt];return Ee}function ee(it,nt){var rt=typeof Symbol!="undefined"&&it[Symbol.iterator]||it["@@iterator"];if(rt)return(rt=rt.call(it)).next.bind(rt);if(Array.isArray(it)||(rt=O(it))||nt&&it&&typeof it.length=="number"){rt&&(it=rt);var Ee=0;return function(){return Ee>=it.length?{done:!0}:{done:!1,value:it[Ee++]}}}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 ue={exports:{}};function A(){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 m(it){ue.exports.defaults=it}ue.exports={defaults:A(),getDefaults:A,changeDefaults:m};var w=/[&<>"']/,ne=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,k={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(nt){return k[nt]};function _(it,nt){if(nt){if(w.test(it))return it.replace(ne,g)}else if(o.test(it))return it.replace(I,g);return it}var S=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function T(it){return it.replace(S,function(nt,rt){return rt=rt.toLowerCase(),rt==="colon"?":":rt.charAt(0)==="#"?rt.charAt(1)==="x"?String.fromCharCode(parseInt(rt.substring(2),16)):String.fromCharCode(+rt.substring(1)):""})}var N=/(^|[^\[])\^/g;function ie(it,nt){it=it.source||it,nt=nt||"";var rt={replace:function(De,Fe){return Fe=Fe.source||Fe,Fe=Fe.replace(N,"$1"),it=it.replace(De,Fe),rt},getRegex:function(){return new RegExp(it,nt)}};return rt}var z=/[^\w:]/g,$=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function G(it,nt,rt){if(it){var Ee;try{Ee=decodeURIComponent(T(rt)).replace(z,"").toLowerCase()}catch(De){return null}if(Ee.indexOf("javascript:")===0||Ee.indexOf("vbscript:")===0||Ee.indexOf("data:")===0)return null}nt&&!$.test(rt)&&(rt=j(nt,rt));try{rt=encodeURI(rt).replace(/%25/g,"%")}catch(De){return null}return rt}var Q={},L=/^[^:]+:\/*[^/]*$/,D=/^([^:]+:)[\s\S]*$/,Y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(it,nt){Q[" "+it]||(L.test(it)?Q[" "+it]=it+"/":Q[" "+it]=ge(it,"/",!0)),it=Q[" "+it];var rt=it.indexOf(":")===-1;return nt.substring(0,2)==="//"?rt?nt:it.replace(D,"$1")+nt:nt.charAt(0)==="/"?rt?nt:it.replace(Y,"$1")+nt:it+nt}var xe={exec:function(){}};function Ce(it){for(var nt=1,rt,Ee;nt<arguments.length;nt++){rt=arguments[nt];for(Ee in rt)Object.prototype.hasOwnProperty.call(rt,Ee)&&(it[Ee]=rt[Ee])}return it}function Se(it,nt){var rt=it.replace(/\|/g,function(Fe,tt,_e){for(var Jt=!1,Ze=tt;--Ze>=0&&_e[Ze]==="\\";)Jt=!Jt;return Jt?"|":" |"}),Ee=rt.split(/ \|/),De=0;if(Ee.length>nt)Ee.splice(nt);else for(;Ee.length<nt;)Ee.push("");for(;De<Ee.length;De++)Ee[De]=Ee[De].trim().replace(/\\\|/g,"|");return Ee}function ge(it,nt,rt){var Ee=it.length;if(Ee===0)return"";for(var De=0;De<Ee;){var Fe=it.charAt(Ee-De-1);if(Fe===nt&&!rt)De++;else if(Fe!==nt&&rt)De++;else break}return it.substr(0,Ee-De)}function de(it,nt){if(it.indexOf(nt[1])===-1)return-1;for(var rt=it.length,Ee=0,De=0;De<rt;De++)if(it[De]==="\\")De++;else if(it[De]===nt[0])Ee++;else if(it[De]===nt[1]&&(Ee--,Ee<0))return De;return-1}function W(it){it&&it.sanitize&&!it.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function be(it,nt){if(nt<1)return"";for(var rt="";nt>1;)nt&1&&(rt+=it),nt>>=1,it+=it;return rt+it}var F={escape:_,unescape:T,edit:ie,cleanUrl:G,resolveUrl:j,noopTest:xe,merge:Ce,splitCells:Se,rtrim:ge,findClosingBracket:de,checkSanitizeDeprecation:W,repeatString:be},ce=ue.exports.defaults,q=F.rtrim,y=F.splitCells,x=F.escape,Z=F.findClosingBracket;function me(it,nt,rt){var Ee=nt.href,De=nt.title?x(nt.title):null,Fe=it[1].replace(/\\([\[\]])/g,"$1");return it[0].charAt(0)!=="!"?{type:"link",raw:rt,href:Ee,title:De,text:Fe}:{type:"image",raw:rt,href:Ee,title:De,text:x(Fe)}}function Ne(it,nt){var rt=it.match(/^(\s+)(?:```)/);if(rt===null)return nt;var Ee=rt[1];return nt.split(`
|
|
|
`).map(function(De){var Fe=De.match(/^\s+/);if(Fe===null)return De;var tt=Fe[0];return tt.length>=Ee.length?De.slice(Ee.length):De}).join(`
|
|
|
`)}var Ue=function(){function it(rt){this.options=rt||ce}var nt=it.prototype;return nt.space=function(Ee){var De=this.rules.block.newline.exec(Ee);if(De)return De[0].length>1?{type:"space",raw:De[0]}:{raw:`
|
|
|
`}},nt.code=function(Ee){var De=this.rules.block.code.exec(Ee);if(De){var Fe=De[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:De[0],codeBlockStyle:"indented",text:this.options.pedantic?Fe:q(Fe,`
|
|
|
`)}}},nt.fences=function(Ee){var De=this.rules.block.fences.exec(Ee);if(De){var Fe=De[0],tt=Ne(Fe,De[3]||"");return{type:"code",raw:Fe,lang:De[2]?De[2].trim():De[2],text:tt}}},nt.heading=function(Ee){var De=this.rules.block.heading.exec(Ee);if(De){var Fe=De[2].trim();if(/#$/.test(Fe)){var tt=q(Fe,"#");(this.options.pedantic||!tt||/ $/.test(tt))&&(Fe=tt.trim())}return{type:"heading",raw:De[0],depth:De[1].length,text:Fe}}},nt.nptable=function(Ee){var De=this.rules.block.nptable.exec(Ee);if(De){var Fe={type:"table",header:y(De[1].replace(/^ *| *\| *$/g,"")),align:De[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:De[3]?De[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:De[0]};if(Fe.header.length===Fe.align.length){var tt=Fe.align.length,_e;for(_e=0;_e<tt;_e++)/^ *-+: *$/.test(Fe.align[_e])?Fe.align[_e]="right":/^ *:-+: *$/.test(Fe.align[_e])?Fe.align[_e]="center":/^ *:-+ *$/.test(Fe.align[_e])?Fe.align[_e]="left":Fe.align[_e]=null;for(tt=Fe.cells.length,_e=0;_e<tt;_e++)Fe.cells[_e]=y(Fe.cells[_e],Fe.header.length);return Fe}}},nt.hr=function(Ee){var De=this.rules.block.hr.exec(Ee);if(De)return{type:"hr",raw:De[0]}},nt.blockquote=function(Ee){var De=this.rules.block.blockquote.exec(Ee);if(De){var Fe=De[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:De[0],text:Fe}}},nt.list=function(Ee){var De=this.rules.block.list.exec(Ee);if(De){var Fe=De[0],tt=De[2],_e=tt.length>1,Jt={type:"list",raw:Fe,ordered:_e,start:_e?+tt.slice(0,-1):"",loose:!1,items:[]},Ze=De[0].match(this.rules.block.item),xn=!1,Rn,Wn,yr,vn,wn,Xe,Lt,Wt,Ke,Oe=Ze.length;yr=this.rules.block.listItemStart.exec(Ze[0]);for(var _t=0;_t<Oe;_t++){if(Rn=Ze[_t],Fe=Rn,this.options.pedantic||(Ke=Rn.match(new RegExp("\\n\\s*\\n {0,"+(yr[0].length-1)+"}\\S")),Ke&&(wn=Rn.length-Ke.index+Ze.slice(_t+1).join(`
|
|
|
`).length,Jt.raw=Jt.raw.substring(0,Jt.raw.length-wn),Rn=Rn.substring(0,Ke.index),Fe=Rn,Oe=_t+1)),_t!==Oe-1){if(vn=this.rules.block.listItemStart.exec(Ze[_t+1]),this.options.pedantic?vn[1].length>yr[1].length:vn[1].length>=yr[0].length||vn[1].length>3){Ze.splice(_t,2,Ze[_t]+(!this.options.pedantic&&vn[1].length<yr[0].length&&!Ze[_t].match(/\n$/)?"":`
|
|
|
`)+Ze[_t+1]),_t--,Oe--;continue}else(!this.options.pedantic||this.options.smartLists?vn[2][vn[2].length-1]!==tt[tt.length-1]:_e===(vn[2].length===1))&&(wn=Ze.slice(_t+1).join(`
|
|
|
`).length,Jt.raw=Jt.raw.substring(0,Jt.raw.length-wn),_t=Oe-1);yr=vn}Wn=Rn.length,Rn=Rn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Rn.indexOf(`
|
|
|
`)&&(Wn-=Rn.length,Rn=this.options.pedantic?Rn.replace(/^ {1,4}/gm,""):Rn.replace(new RegExp("^ {1,"+Wn+"}","gm"),"")),Rn=q(Rn,`
|
|
|
`),_t!==Oe-1&&(Fe=Fe+`
|
|
|
`),Xe=xn||/\n\n(?!\s*$)/.test(Fe),_t!==Oe-1&&(xn=Fe.slice(-2)===`
|
|
|
|
|
|
`,Xe||(Xe=xn)),Xe&&(Jt.loose=!0),this.options.gfm&&(Lt=/^\[[ xX]\] /.test(Rn),Wt=void 0,Lt&&(Wt=Rn[1]!==" ",Rn=Rn.replace(/^\[[ xX]\] +/,""))),Jt.items.push({type:"list_item",raw:Fe,task:Lt,checked:Wt,loose:Xe,text:Rn})}return Jt}},nt.html=function(Ee){var De=this.rules.block.html.exec(Ee);if(De)return{type:this.options.sanitize?"paragraph":"html",raw:De[0],pre:!this.options.sanitizer&&(De[1]==="pre"||De[1]==="script"||De[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(De[0]):x(De[0]):De[0]}},nt.def=function(Ee){var De=this.rules.block.def.exec(Ee);if(De){De[3]&&(De[3]=De[3].substring(1,De[3].length-1));var Fe=De[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Fe,raw:De[0],href:De[2],title:De[3]}}},nt.table=function(Ee){var De=this.rules.block.table.exec(Ee);if(De){var Fe={type:"table",header:y(De[1].replace(/^ *| *\| *$/g,"")),align:De[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:De[3]?De[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(Fe.header.length===Fe.align.length){Fe.raw=De[0];var tt=Fe.align.length,_e;for(_e=0;_e<tt;_e++)/^ *-+: *$/.test(Fe.align[_e])?Fe.align[_e]="right":/^ *:-+: *$/.test(Fe.align[_e])?Fe.align[_e]="center":/^ *:-+ *$/.test(Fe.align[_e])?Fe.align[_e]="left":Fe.align[_e]=null;for(tt=Fe.cells.length,_e=0;_e<tt;_e++)Fe.cells[_e]=y(Fe.cells[_e].replace(/^ *\| *| *\| *$/g,""),Fe.header.length);return Fe}}},nt.lheading=function(Ee){var De=this.rules.block.lheading.exec(Ee);if(De)return{type:"heading",raw:De[0],depth:De[2].charAt(0)==="="?1:2,text:De[1]}},nt.paragraph=function(Ee){var De=this.rules.block.paragraph.exec(Ee);if(De)return{type:"paragraph",raw:De[0],text:De[1].charAt(De[1].length-1)===`
|
|
|
`?De[1].slice(0,-1):De[1]}},nt.text=function(Ee){var De=this.rules.block.text.exec(Ee);if(De)return{type:"text",raw:De[0],text:De[0]}},nt.escape=function(Ee){var De=this.rules.inline.escape.exec(Ee);if(De)return{type:"escape",raw:De[0],text:x(De[1])}},nt.tag=function(Ee,De,Fe){var tt=this.rules.inline.tag.exec(Ee);if(tt)return!De&&/^<a /i.test(tt[0])?De=!0:De&&/^<\/a>/i.test(tt[0])&&(De=!1),!Fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(tt[0])?Fe=!0:Fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(tt[0])&&(Fe=!1),{type:this.options.sanitize?"text":"html",raw:tt[0],inLink:De,inRawBlock:Fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(tt[0]):x(tt[0]):tt[0]}},nt.link=function(Ee){var De=this.rules.inline.link.exec(Ee);if(De){var Fe=De[2].trim();if(!this.options.pedantic&&/^</.test(Fe)){if(!/>$/.test(Fe))return;var tt=q(Fe.slice(0,-1),"\\");if((Fe.length-tt.length)%2===0)return}else{var _e=Z(De[2],"()");if(_e>-1){var Jt=De[0].indexOf("!")===0?5:4,Ze=Jt+De[1].length+_e;De[2]=De[2].substring(0,_e),De[0]=De[0].substring(0,Ze).trim(),De[3]=""}}var xn=De[2],Rn="";if(this.options.pedantic){var Wn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(xn);Wn&&(xn=Wn[1],Rn=Wn[3])}else Rn=De[3]?De[3].slice(1,-1):"";return xn=xn.trim(),/^</.test(xn)&&(this.options.pedantic&&!/>$/.test(Fe)?xn=xn.slice(1):xn=xn.slice(1,-1)),me(De,{href:xn&&xn.replace(this.rules.inline._escapes,"$1"),title:Rn&&Rn.replace(this.rules.inline._escapes,"$1")},De[0])}},nt.reflink=function(Ee,De){var Fe;if((Fe=this.rules.inline.reflink.exec(Ee))||(Fe=this.rules.inline.nolink.exec(Ee))){var tt=(Fe[2]||Fe[1]).replace(/\s+/g," ");if(tt=De[tt.toLowerCase()],!tt||!tt.href){var _e=Fe[0].charAt(0);return{type:"text",raw:_e,text:_e}}return me(Fe,tt,Fe[0])}},nt.emStrong=function(Ee,De,Fe){Fe===void 0&&(Fe="");var tt=this.rules.inline.emStrong.lDelim.exec(Ee);if(tt&&!(tt[3]&&Fe.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 _e=tt[1]||tt[2]||"";if(!_e||_e&&(Fe===""||this.rules.inline.punctuation.exec(Fe))){var Jt=tt[0].length-1,Ze,xn,Rn=Jt,Wn=0,yr=tt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(yr.lastIndex=0,De=De.slice(-1*Ee.length+Jt);(tt=yr.exec(De))!=null;)if(Ze=tt[1]||tt[2]||tt[3]||tt[4]||tt[5]||tt[6],!!Ze){if(xn=Ze.length,tt[3]||tt[4]){Rn+=xn;continue}else if((tt[5]||tt[6])&&Jt%3&&!((Jt+xn)%3)){Wn+=xn;continue}if(Rn-=xn,!(Rn>0))return xn=Math.min(xn,xn+Rn+Wn),Math.min(Jt,xn)%2?{type:"em",raw:Ee.slice(0,Jt+tt.index+xn+1),text:Ee.slice(1,Jt+tt.index+xn)}:{type:"strong",raw:Ee.slice(0,Jt+tt.index+xn+1),text:Ee.slice(2,Jt+tt.index+xn-1)}}}}},nt.codespan=function(Ee){var De=this.rules.inline.code.exec(Ee);if(De){var Fe=De[2].replace(/\n/g," "),tt=/[^ ]/.test(Fe),_e=/^ /.test(Fe)&&/ $/.test(Fe);return tt&&_e&&(Fe=Fe.substring(1,Fe.length-1)),Fe=x(Fe,!0),{type:"codespan",raw:De[0],text:Fe}}},nt.br=function(Ee){var De=this.rules.inline.br.exec(Ee);if(De)return{type:"br",raw:De[0]}},nt.del=function(Ee){var De=this.rules.inline.del.exec(Ee);if(De)return{type:"del",raw:De[0],text:De[2]}},nt.autolink=function(Ee,De){var Fe=this.rules.inline.autolink.exec(Ee);if(Fe){var tt,_e;return Fe[2]==="@"?(tt=x(this.options.mangle?De(Fe[1]):Fe[1]),_e="mailto:"+tt):(tt=x(Fe[1]),_e=tt),{type:"link",raw:Fe[0],text:tt,href:_e,tokens:[{type:"text",raw:tt,text:tt}]}}},nt.url=function(Ee,De){var Fe;if(Fe=this.rules.inline.url.exec(Ee)){var tt,_e;if(Fe[2]==="@")tt=x(this.options.mangle?De(Fe[0]):Fe[0]),_e="mailto:"+tt;else{var Jt;do Jt=Fe[0],Fe[0]=this.rules.inline._backpedal.exec(Fe[0])[0];while(Jt!==Fe[0]);tt=x(Fe[0]),Fe[1]==="www."?_e="http://"+tt:_e=tt}return{type:"link",raw:Fe[0],text:tt,href:_e,tokens:[{type:"text",raw:tt,text:tt}]}}},nt.inlineText=function(Ee,De,Fe){var tt=this.rules.inline.text.exec(Ee);if(tt){var _e;return De?_e=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(tt[0]):x(tt[0]):tt[0]:_e=x(this.options.smartypants?Fe(tt[0]):tt[0]),{type:"text",raw:tt[0],text:_e}}},it}(),ze=F.noopTest,et=F.edit,pt=F.merge,gt={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:ze,table:ze,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};gt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,gt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,gt.def=et(gt.def).replace("label",gt._label).replace("title",gt._title).getRegex(),gt.bullet=/(?:[*+-]|\d{1,9}[.)])/,gt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,gt.item=et(gt.item,"gm").replace(/bull/g,gt.bullet).getRegex(),gt.listItemStart=et(/^( *)(bull) */).replace("bull",gt.bullet).getRegex(),gt.list=et(gt.list).replace(/bull/g,gt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+gt.def.source+")").getRegex(),gt._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",gt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,gt.html=et(gt.html,"i").replace("comment",gt._comment).replace("tag",gt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gt.paragraph=et(gt._paragraph).replace("hr",gt.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",gt._tag).getRegex(),gt.blockquote=et(gt.blockquote).replace("paragraph",gt.paragraph).getRegex(),gt.normal=pt({},gt),gt.gfm=pt({},gt.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*|$)"}),gt.gfm.nptable=et(gt.gfm.nptable).replace("hr",gt.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",gt._tag).getRegex(),gt.gfm.table=et(gt.gfm.table).replace("hr",gt.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",gt._tag).getRegex(),gt.pedantic=pt({},gt.normal,{html:et(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gt._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:ze,paragraph:et(gt.normal._paragraph).replace("hr",gt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",gt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var at={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ze,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:ze,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};at._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",at.punctuation=et(at.punctuation).replace(/punctuation/g,at._punctuation).getRegex(),at.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,at.escapedEmSt=/\\\*|\\_/g,at._comment=et(gt._comment).replace("(?:-->|$)","-->").getRegex(),at.emStrong.lDelim=et(at.emStrong.lDelim).replace(/punct/g,at._punctuation).getRegex(),at.emStrong.rDelimAst=et(at.emStrong.rDelimAst,"g").replace(/punct/g,at._punctuation).getRegex(),at.emStrong.rDelimUnd=et(at.emStrong.rDelimUnd,"g").replace(/punct/g,at._punctuation).getRegex(),at._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,at._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,at._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])?)+(?![-_])/,at.autolink=et(at.autolink).replace("scheme",at._scheme).replace("email",at._email).getRegex(),at._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,at.tag=et(at.tag).replace("comment",at._comment).replace("attribute",at._attribute).getRegex(),at._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,at._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,at._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,at.link=et(at.link).replace("label",at._label).replace("href",at._href).replace("title",at._title).getRegex(),at.reflink=et(at.reflink).replace("label",at._label).getRegex(),at.reflinkSearch=et(at.reflinkSearch,"g").replace("reflink",at.reflink).replace("nolink",at.nolink).getRegex(),at.normal=pt({},at),at.pedantic=pt({},at.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:et(/^!?\[(label)\]\((.*?)\)/).replace("label",at._label).getRegex(),reflink:et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",at._label).getRegex()}),at.gfm=pt({},at.normal,{escape:et(at.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),at.gfm.url=et(at.gfm.url,"i").replace("email",at.gfm._extended_email).getRegex(),at.breaks=pt({},at.gfm,{br:et(at.br).replace("{2,}","*").getRegex(),text:et(at.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ot={block:gt,inline:at},en=Ue,Rt=ue.exports.defaults,Zt=Ot.block,ut=Ot.inline,Ct=F.repeatString;function he(it){return it.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function pe(it){var nt="",rt,Ee,De=it.length;for(rt=0;rt<De;rt++)Ee=it.charCodeAt(rt),Math.random()>.5&&(Ee="x"+Ee.toString(16)),nt+="&#"+Ee+";";return nt}var le=function(){function it(rt){this.tokens=[],this.tokens.links=Object.create(null),this.options=rt||Rt,this.options.tokenizer=this.options.tokenizer||new en,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ee={block:Zt.normal,inline:ut.normal};this.options.pedantic?(Ee.block=Zt.pedantic,Ee.inline=ut.pedantic):this.options.gfm&&(Ee.block=Zt.gfm,this.options.breaks?Ee.inline=ut.breaks:Ee.inline=ut.gfm),this.tokenizer.rules=Ee}it.lex=function(Ee,De){var Fe=new it(De);return Fe.lex(Ee)},it.lexInline=function(Ee,De){var Fe=new it(De);return Fe.inlineTokens(Ee)};var nt=it.prototype;return nt.lex=function(Ee){return Ee=Ee.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Ee,this.tokens,!0),this.inline(this.tokens),this.tokens},nt.blockTokens=function(Ee,De,Fe){De===void 0&&(De=[]),Fe===void 0&&(Fe=!0),this.options.pedantic&&(Ee=Ee.replace(/^ +$/gm,""));for(var tt,_e,Jt,Ze;Ee;){if(tt=this.tokenizer.space(Ee)){Ee=Ee.substring(tt.raw.length),tt.type&&De.push(tt);continue}if(tt=this.tokenizer.code(Ee)){Ee=Ee.substring(tt.raw.length),Ze=De[De.length-1],Ze&&Ze.type==="paragraph"?(Ze.raw+=`
|
|
|
`+tt.raw,Ze.text+=`
|
|
|
`+tt.text):De.push(tt);continue}if(tt=this.tokenizer.fences(Ee)){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(tt=this.tokenizer.heading(Ee)){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(tt=this.tokenizer.nptable(Ee)){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(tt=this.tokenizer.hr(Ee)){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(tt=this.tokenizer.blockquote(Ee)){Ee=Ee.substring(tt.raw.length),tt.tokens=this.blockTokens(tt.text,[],Fe),De.push(tt);continue}if(tt=this.tokenizer.list(Ee)){for(Ee=Ee.substring(tt.raw.length),Jt=tt.items.length,_e=0;_e<Jt;_e++)tt.items[_e].tokens=this.blockTokens(tt.items[_e].text,[],!1);De.push(tt);continue}if(tt=this.tokenizer.html(Ee)){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(Fe&&(tt=this.tokenizer.def(Ee))){Ee=Ee.substring(tt.raw.length),this.tokens.links[tt.tag]||(this.tokens.links[tt.tag]={href:tt.href,title:tt.title});continue}if(tt=this.tokenizer.table(Ee)){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(tt=this.tokenizer.lheading(Ee)){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(Fe&&(tt=this.tokenizer.paragraph(Ee))){Ee=Ee.substring(tt.raw.length),De.push(tt);continue}if(tt=this.tokenizer.text(Ee)){Ee=Ee.substring(tt.raw.length),Ze=De[De.length-1],Ze&&Ze.type==="text"?(Ze.raw+=`
|
|
|
`+tt.raw,Ze.text+=`
|
|
|
`+tt.text):De.push(tt);continue}if(Ee){var xn="Infinite loop on byte: "+Ee.charCodeAt(0);if(this.options.silent){console.error(xn);break}else throw new Error(xn)}}return De},nt.inline=function(Ee){var De,Fe,tt,_e,Jt,Ze,xn=Ee.length;for(De=0;De<xn;De++)switch(Ze=Ee[De],Ze.type){case"paragraph":case"text":case"heading":{Ze.tokens=[],this.inlineTokens(Ze.text,Ze.tokens);break}case"table":{for(Ze.tokens={header:[],cells:[]},_e=Ze.header.length,Fe=0;Fe<_e;Fe++)Ze.tokens.header[Fe]=[],this.inlineTokens(Ze.header[Fe],Ze.tokens.header[Fe]);for(_e=Ze.cells.length,Fe=0;Fe<_e;Fe++)for(Jt=Ze.cells[Fe],Ze.tokens.cells[Fe]=[],tt=0;tt<Jt.length;tt++)Ze.tokens.cells[Fe][tt]=[],this.inlineTokens(Jt[tt],Ze.tokens.cells[Fe][tt]);break}case"blockquote":{this.inline(Ze.tokens);break}case"list":{for(_e=Ze.items.length,Fe=0;Fe<_e;Fe++)this.inline(Ze.items[Fe].tokens);break}}return Ee},nt.inlineTokens=function(Ee,De,Fe,tt){De===void 0&&(De=[]),Fe===void 0&&(Fe=!1),tt===void 0&&(tt=!1);var _e,Jt,Ze=Ee,xn,Rn,Wn;if(this.tokens.links){var yr=Object.keys(this.tokens.links);if(yr.length>0)for(;(xn=this.tokenizer.rules.inline.reflinkSearch.exec(Ze))!=null;)yr.includes(xn[0].slice(xn[0].lastIndexOf("[")+1,-1))&&(Ze=Ze.slice(0,xn.index)+"["+Ct("a",xn[0].length-2)+"]"+Ze.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(xn=this.tokenizer.rules.inline.blockSkip.exec(Ze))!=null;)Ze=Ze.slice(0,xn.index)+"["+Ct("a",xn[0].length-2)+"]"+Ze.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(xn=this.tokenizer.rules.inline.escapedEmSt.exec(Ze))!=null;)Ze=Ze.slice(0,xn.index)+"++"+Ze.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;Ee;){if(Rn||(Wn=""),Rn=!1,_e=this.tokenizer.escape(Ee)){Ee=Ee.substring(_e.raw.length),De.push(_e);continue}if(_e=this.tokenizer.tag(Ee,Fe,tt)){Ee=Ee.substring(_e.raw.length),Fe=_e.inLink,tt=_e.inRawBlock;var vn=De[De.length-1];vn&&_e.type==="text"&&vn.type==="text"?(vn.raw+=_e.raw,vn.text+=_e.text):De.push(_e);continue}if(_e=this.tokenizer.link(Ee)){Ee=Ee.substring(_e.raw.length),_e.type==="link"&&(_e.tokens=this.inlineTokens(_e.text,[],!0,tt)),De.push(_e);continue}if(_e=this.tokenizer.reflink(Ee,this.tokens.links)){Ee=Ee.substring(_e.raw.length);var wn=De[De.length-1];_e.type==="link"?(_e.tokens=this.inlineTokens(_e.text,[],!0,tt),De.push(_e)):wn&&_e.type==="text"&&wn.type==="text"?(wn.raw+=_e.raw,wn.text+=_e.text):De.push(_e);continue}if(_e=this.tokenizer.emStrong(Ee,Ze,Wn)){Ee=Ee.substring(_e.raw.length),_e.tokens=this.inlineTokens(_e.text,[],Fe,tt),De.push(_e);continue}if(_e=this.tokenizer.codespan(Ee)){Ee=Ee.substring(_e.raw.length),De.push(_e);continue}if(_e=this.tokenizer.br(Ee)){Ee=Ee.substring(_e.raw.length),De.push(_e);continue}if(_e=this.tokenizer.del(Ee)){Ee=Ee.substring(_e.raw.length),_e.tokens=this.inlineTokens(_e.text,[],Fe,tt),De.push(_e);continue}if(_e=this.tokenizer.autolink(Ee,pe)){Ee=Ee.substring(_e.raw.length),De.push(_e);continue}if(!Fe&&(_e=this.tokenizer.url(Ee,pe))){Ee=Ee.substring(_e.raw.length),De.push(_e);continue}if(_e=this.tokenizer.inlineText(Ee,tt,he)){Ee=Ee.substring(_e.raw.length),_e.raw.slice(-1)!=="_"&&(Wn=_e.raw.slice(-1)),Rn=!0,Jt=De[De.length-1],Jt&&Jt.type==="text"?(Jt.raw+=_e.raw,Jt.text+=_e.text):De.push(_e);continue}if(Ee){var Xe="Infinite loop on byte: "+Ee.charCodeAt(0);if(this.options.silent){console.error(Xe);break}else throw new Error(Xe)}}return De},p(it,null,[{key:"rules",get:function(){return{block:Zt,inline:ut}}}]),it}(),J=ue.exports.defaults,Ie=F.cleanUrl,H=F.escape,R=function(){function it(rt){this.options=rt||J}var nt=it.prototype;return nt.code=function(Ee,De,Fe){var tt=(De||"").match(/\S*/)[0];if(this.options.highlight){var _e=this.options.highlight(Ee,tt);_e!=null&&_e!==Ee&&(Fe=!0,Ee=_e)}return Ee=Ee.replace(/\n$/,"")+`
|
|
|
`,tt?'<pre><code class="'+this.options.langPrefix+H(tt,!0)+'">'+(Fe?Ee:H(Ee,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(Fe?Ee:H(Ee,!0))+`</code></pre>
|
|
|
`},nt.blockquote=function(Ee){return`<blockquote>
|
|
|
`+Ee+`</blockquote>
|
|
|
`},nt.html=function(Ee){return Ee},nt.heading=function(Ee,De,Fe,tt){return this.options.headerIds?"<h"+De+' id="'+this.options.headerPrefix+tt.slug(Fe)+'">'+Ee+"</h"+De+`>
|
|
|
`:"<h"+De+">"+Ee+"</h"+De+`>
|
|
|
`},nt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},nt.list=function(Ee,De,Fe){var tt=De?"ol":"ul",_e=De&&Fe!==1?' start="'+Fe+'"':"";return"<"+tt+_e+`>
|
|
|
`+Ee+"</"+tt+`>
|
|
|
`},nt.listitem=function(Ee){return"<li>"+Ee+`</li>
|
|
|
`},nt.checkbox=function(Ee){return"<input "+(Ee?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},nt.paragraph=function(Ee){return"<p>"+Ee+`</p>
|
|
|
`},nt.table=function(Ee,De){return De&&(De="<tbody>"+De+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Ee+`</thead>
|
|
|
`+De+`</table>
|
|
|
`},nt.tablerow=function(Ee){return`<tr>
|
|
|
`+Ee+`</tr>
|
|
|
`},nt.tablecell=function(Ee,De){var Fe=De.header?"th":"td",tt=De.align?"<"+Fe+' align="'+De.align+'">':"<"+Fe+">";return tt+Ee+"</"+Fe+`>
|
|
|
`},nt.strong=function(Ee){return"<strong>"+Ee+"</strong>"},nt.em=function(Ee){return"<em>"+Ee+"</em>"},nt.codespan=function(Ee){return"<code>"+Ee+"</code>"},nt.br=function(){return this.options.xhtml?"<br/>":"<br>"},nt.del=function(Ee){return"<del>"+Ee+"</del>"},nt.link=function(Ee,De,Fe){if(Ee=Ie(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return Fe;var tt='<a href="'+H(Ee)+'"';return De&&(tt+=' title="'+De+'"'),tt+=">"+Fe+"</a>",tt},nt.image=function(Ee,De,Fe){if(Ee=Ie(this.options.sanitize,this.options.baseUrl,Ee),Ee===null)return Fe;var tt='<img src="'+Ee+'" alt="'+Fe+'"';return De&&(tt+=' title="'+De+'"'),tt+=this.options.xhtml?"/>":">",tt},nt.text=function(Ee){return Ee},it}(),P=function(){function it(){}var nt=it.prototype;return nt.strong=function(Ee){return Ee},nt.em=function(Ee){return Ee},nt.codespan=function(Ee){return Ee},nt.del=function(Ee){return Ee},nt.html=function(Ee){return Ee},nt.text=function(Ee){return Ee},nt.link=function(Ee,De,Fe){return""+Fe},nt.image=function(Ee,De,Fe){return""+Fe},nt.br=function(){return""},it}(),fe=function(){function it(){this.seen={}}var nt=it.prototype;return nt.serialize=function(Ee){return Ee.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},nt.getNextSafeSlug=function(Ee,De){var Fe=Ee,tt=0;if(this.seen.hasOwnProperty(Fe)){tt=this.seen[Ee];do tt++,Fe=Ee+"-"+tt;while(this.seen.hasOwnProperty(Fe))}return De||(this.seen[Ee]=tt,this.seen[Fe]=0),Fe},nt.slug=function(Ee,De){De===void 0&&(De={});var Fe=this.serialize(Ee);return this.getNextSafeSlug(Fe,De.dryrun)},it}(),oe=R,te=P,Ae=fe,je=ue.exports.defaults,ke=F.unescape,Be=function(){function it(rt){this.options=rt||je,this.options.renderer=this.options.renderer||new oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new te,this.slugger=new Ae}it.parse=function(Ee,De){var Fe=new it(De);return Fe.parse(Ee)},it.parseInline=function(Ee,De){var Fe=new it(De);return Fe.parseInline(Ee)};var nt=it.prototype;return nt.parse=function(Ee,De){De===void 0&&(De=!0);var Fe="",tt,_e,Jt,Ze,xn,Rn,Wn,yr,vn,wn,Xe,Lt,Wt,Ke,Oe,_t,wt,rn,Xt=Ee.length;for(tt=0;tt<Xt;tt++)switch(wn=Ee[tt],wn.type){case"space":continue;case"hr":{Fe+=this.renderer.hr();continue}case"heading":{Fe+=this.renderer.heading(this.parseInline(wn.tokens),wn.depth,ke(this.parseInline(wn.tokens,this.textRenderer)),this.slugger);continue}case"code":{Fe+=this.renderer.code(wn.text,wn.lang,wn.escaped);continue}case"table":{for(yr="",Wn="",Ze=wn.header.length,_e=0;_e<Ze;_e++)Wn+=this.renderer.tablecell(this.parseInline(wn.tokens.header[_e]),{header:!0,align:wn.align[_e]});for(yr+=this.renderer.tablerow(Wn),vn="",Ze=wn.cells.length,_e=0;_e<Ze;_e++){for(Rn=wn.tokens.cells[_e],Wn="",xn=Rn.length,Jt=0;Jt<xn;Jt++)Wn+=this.renderer.tablecell(this.parseInline(Rn[Jt]),{header:!1,align:wn.align[Jt]});vn+=this.renderer.tablerow(Wn)}Fe+=this.renderer.table(yr,vn);continue}case"blockquote":{vn=this.parse(wn.tokens),Fe+=this.renderer.blockquote(vn);continue}case"list":{for(Xe=wn.ordered,Lt=wn.start,Wt=wn.loose,Ze=wn.items.length,vn="",_e=0;_e<Ze;_e++)Oe=wn.items[_e],_t=Oe.checked,wt=Oe.task,Ke="",Oe.task&&(rn=this.renderer.checkbox(_t),Wt?Oe.tokens.length>0&&Oe.tokens[0].type==="text"?(Oe.tokens[0].text=rn+" "+Oe.tokens[0].text,Oe.tokens[0].tokens&&Oe.tokens[0].tokens.length>0&&Oe.tokens[0].tokens[0].type==="text"&&(Oe.tokens[0].tokens[0].text=rn+" "+Oe.tokens[0].tokens[0].text)):Oe.tokens.unshift({type:"text",text:rn}):Ke+=rn),Ke+=this.parse(Oe.tokens,Wt),vn+=this.renderer.listitem(Ke,wt,_t);Fe+=this.renderer.list(vn,Xe,Lt);continue}case"html":{Fe+=this.renderer.html(wn.text);continue}case"paragraph":{Fe+=this.renderer.paragraph(this.parseInline(wn.tokens));continue}case"text":{for(vn=wn.tokens?this.parseInline(wn.tokens):wn.text;tt+1<Xt&&Ee[tt+1].type==="text";)wn=Ee[++tt],vn+=`
|
|
|
`+(wn.tokens?this.parseInline(wn.tokens):wn.text);Fe+=De?this.renderer.paragraph(vn):vn;continue}default:{var cn='Token with "'+wn.type+'" type was not found.';if(this.options.silent){console.error(cn);return}else throw new Error(cn)}}return Fe},nt.parseInline=function(Ee,De){De=De||this.renderer;var Fe="",tt,_e,Jt=Ee.length;for(tt=0;tt<Jt;tt++)switch(_e=Ee[tt],_e.type){case"escape":{Fe+=De.text(_e.text);break}case"html":{Fe+=De.html(_e.text);break}case"link":{Fe+=De.link(_e.href,_e.title,this.parseInline(_e.tokens,De));break}case"image":{Fe+=De.image(_e.href,_e.title,_e.text);break}case"strong":{Fe+=De.strong(this.parseInline(_e.tokens,De));break}case"em":{Fe+=De.em(this.parseInline(_e.tokens,De));break}case"codespan":{Fe+=De.codespan(_e.text);break}case"br":{Fe+=De.br();break}case"del":{Fe+=De.del(this.parseInline(_e.tokens,De));break}case"text":{Fe+=De.text(_e.text);break}default:{var Ze='Token with "'+_e.type+'" type was not found.';if(this.options.silent){console.error(Ze);return}else throw new Error(Ze)}}return Fe},it}(),qe=le,Qe=Be,Ve=Ue,xt=R,Dt=P,vt=fe,Bt=F.merge,jt=F.checkSanitizeDeprecation,C=F.escape,B=ue.exports.getDefaults,yt=ue.exports.changeDefaults,ye=ue.exports.defaults;function Me(it,nt,rt){if(typeof it=="undefined"||it===null)throw new Error("marked(): input parameter is undefined or null");if(typeof it!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(it)+", string expected");if(typeof nt=="function"&&(rt=nt,nt=null),nt=Bt({},Me.defaults,nt||{}),jt(nt),rt){var Ee=nt.highlight,De;try{De=qe.lex(it,nt)}catch(Jt){return rt(Jt)}var Fe=function(Ze){var xn;if(!Ze)try{nt.walkTokens&&Me.walkTokens(De,nt.walkTokens),xn=Qe.parse(De,nt)}catch(Rn){Ze=Rn}return nt.highlight=Ee,Ze?rt(Ze):rt(null,xn)};if(!Ee||Ee.length<3||(delete nt.highlight,!De.length))return Fe();var tt=0;Me.walkTokens(De,function(Jt){Jt.type==="code"&&(tt++,setTimeout(function(){Ee(Jt.text,Jt.lang,function(Ze,xn){if(Ze)return Fe(Ze);xn!=null&&xn!==Jt.text&&(Jt.text=xn,Jt.escaped=!0),tt--,tt===0&&Fe()})},0))}),tt===0&&Fe();return}try{var _e=qe.lex(it,nt);return nt.walkTokens&&Me.walkTokens(_e,nt.walkTokens),Qe.parse(_e,nt)}catch(Jt){if(Jt.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,nt.silent)return"<p>An error occurred:</p><pre>"+C(Jt.message+"",!0)+"</pre>";throw Jt}}Me.options=Me.setOptions=function(it){return Bt(Me.defaults,it),yt(Me.defaults),Me},Me.getDefaults=B,Me.defaults=ye,Me.use=function(it){var nt=Bt({},it);if(it.renderer&&function(){var Ee=Me.defaults.renderer||new xt,De=function(_e){var Jt=Ee[_e];Ee[_e]=function(){for(var Ze=arguments.length,xn=new Array(Ze),Rn=0;Rn<Ze;Rn++)xn[Rn]=arguments[Rn];var Wn=it.renderer[_e].apply(Ee,xn);return Wn===!1&&(Wn=Jt.apply(Ee,xn)),Wn}};for(var Fe in it.renderer)De(Fe);nt.renderer=Ee}(),it.tokenizer&&function(){var Ee=Me.defaults.tokenizer||new Ve,De=function(_e){var Jt=Ee[_e];Ee[_e]=function(){for(var Ze=arguments.length,xn=new Array(Ze),Rn=0;Rn<Ze;Rn++)xn[Rn]=arguments[Rn];var Wn=it.tokenizer[_e].apply(Ee,xn);return Wn===!1&&(Wn=Jt.apply(Ee,xn)),Wn}};for(var Fe in it.tokenizer)De(Fe);nt.tokenizer=Ee}(),it.walkTokens){var rt=Me.defaults.walkTokens;nt.walkTokens=function(Ee){it.walkTokens(Ee),rt&&rt(Ee)}}Me.setOptions(nt)},Me.walkTokens=function(it,nt){for(var rt=ee(it),Ee;!(Ee=rt()).done;){var De=Ee.value;switch(nt(De),De.type){case"table":{for(var Fe=ee(De.tokens.header),tt;!(tt=Fe()).done;){var _e=tt.value;Me.walkTokens(_e,nt)}for(var Jt=ee(De.tokens.cells),Ze;!(Ze=Jt()).done;)for(var xn=Ze.value,Rn=ee(xn),Wn;!(Wn=Rn()).done;){var yr=Wn.value;Me.walkTokens(yr,nt)}break}case"list":{Me.walkTokens(De.items,nt);break}default:De.tokens&&Me.walkTokens(De.tokens,nt)}}},Me.parseInline=function(it,nt){if(typeof it=="undefined"||it===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof it!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(it)+", string expected");nt=Bt({},Me.defaults,nt||{}),jt(nt);try{var rt=qe.lexInline(it,nt);return nt.walkTokens&&Me.walkTokens(rt,nt.walkTokens),Qe.parseInline(rt,nt)}catch(Ee){if(Ee.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,nt.silent)return"<p>An error occurred:</p><pre>"+C(Ee.message+"",!0)+"</pre>";throw Ee}},Me.Parser=Qe,Me.parser=Qe.parse,Me.Renderer=xt,Me.TextRenderer=Dt,Me.Lexer=qe,Me.lexer=qe.lex,Me.Tokenizer=Ve,Me.Slugger=vt,Me.parse=Me;var Sn=Me;return Sn})},11690:function(Qt){const He=/[&<>"']/,p=/[&<>"']/g,O=/[<>"']|&(?!#?\w+;)/,U=/[<>"']|&(?!#?\w+;)/g,ee={"&":"&","<":"<",">":">",'"':""","'":"'"},ue=j=>ee[j];function A(j,xe){if(xe){if(He.test(j))return j.replace(p,ue)}else if(O.test(j))return j.replace(U,ue);return j}const m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function w(j){return j.replace(m,(xe,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 ne=/(^|[^\[])\^/g;function o(j,xe){j=j.source||j,xe=xe||"";const Ce={replace:(Se,ge)=>(ge=ge.source||ge,ge=ge.replace(ne,"$1"),j=j.replace(Se,ge),Ce),getRegex:()=>new RegExp(j,xe)};return Ce}const I=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(j,xe,Ce){if(j){let Se;try{Se=decodeURIComponent(w(Ce)).replace(I,"").toLowerCase()}catch(ge){return null}if(Se.indexOf("javascript:")===0||Se.indexOf("vbscript:")===0||Se.indexOf("data:")===0)return null}xe&&!k.test(Ce)&&(Ce=ie(xe,Ce));try{Ce=encodeURI(Ce).replace(/%25/g,"%")}catch(Se){return null}return Ce}const _={},S=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,N=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ie(j,xe){_[" "+j]||(S.test(j)?_[" "+j]=j+"/":_[" "+j]=Q(j,"/",!0)),j=_[" "+j];const Ce=j.indexOf(":")===-1;return xe.substring(0,2)==="//"?Ce?xe:j.replace(T,"$1")+xe:xe.charAt(0)==="/"?Ce?xe:j.replace(N,"$1")+xe:j+xe}const z={exec:function(){}};function $(j){let xe=1,Ce,Se;for(;xe<arguments.length;xe++){Ce=arguments[xe];for(Se in Ce)Object.prototype.hasOwnProperty.call(Ce,Se)&&(j[Se]=Ce[Se])}return j}function G(j,xe){const Ce=j.replace(/\|/g,(de,W,be)=>{let F=!1,ce=W;for(;--ce>=0&&be[ce]==="\\";)F=!F;return F?"|":" |"}),Se=Ce.split(/ \|/);let ge=0;if(Se.length>xe)Se.splice(xe);else for(;Se.length<xe;)Se.push("");for(;ge<Se.length;ge++)Se[ge]=Se[ge].trim().replace(/\\\|/g,"|");return Se}function Q(j,xe,Ce){const Se=j.length;if(Se===0)return"";let ge=0;for(;ge<Se;){const de=j.charAt(Se-ge-1);if(de===xe&&!Ce)ge++;else if(de!==xe&&Ce)ge++;else break}return j.substr(0,Se-ge)}function L(j,xe){if(j.indexOf(xe[1])===-1)return-1;const Ce=j.length;let Se=0,ge=0;for(;ge<Ce;ge++)if(j[ge]==="\\")ge++;else if(j[ge]===xe[0])Se++;else if(j[ge]===xe[1]&&(Se--,Se<0))return ge;return-1}function D(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 Y(j,xe){if(xe<1)return"";let Ce="";for(;xe>1;)xe&1&&(Ce+=j),xe>>=1,j+=j;return Ce+j}Qt.exports={escape:A,unescape:w,edit:o,cleanUrl:g,resolveUrl:ie,noopTest:z,merge:$,splitCells:G,rtrim:Q,findClosingBracket:L,checkSanitizeDeprecation:D,repeatString:Y}},75918:function(Qt,He,p){"use strict";p.d(He,{Wi:function(){return m},Z0:function(){return w},aU:function(){return A},eZ:function(){return o},wY:function(){return ne}});var O=p(4348),U=p(69323),ee=p(13268),ue=function(I,k,g,_){function S(T){return T instanceof g?T:new g(function(N){N(T)})}return new(g||(g=Promise))(function(T,N){function ie(G){try{$(_.next(G))}catch(Q){N(Q)}}function z(G){try{$(_.throw(G))}catch(Q){N(Q)}}function $(G){G.done?T(G.value):S(G.value).then(ie,z)}$((_=_.apply(I,k||[])).next())})};class A extends U.JT{constructor(k,g="",_="",S=!0,T){super(),this._onDidChange=this._register(new O.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=k,this._label=g,this._cssClass=_,this._enabled=S,this._actionCallback=T}get id(){return this._id}get label(){return this._label}set label(k){this._setLabel(k)}_setLabel(k){this._label!==k&&(this._label=k,this._onDidChange.fire({label:k}))}get tooltip(){return this._tooltip||""}set tooltip(k){this._setTooltip(k)}_setTooltip(k){this._tooltip!==k&&(this._tooltip=k,this._onDidChange.fire({tooltip:k}))}get class(){return this._cssClass}set class(k){this._setClass(k)}_setClass(k){this._cssClass!==k&&(this._cssClass=k,this._onDidChange.fire({class:k}))}get enabled(){return this._enabled}set enabled(k){this._setEnabled(k)}_setEnabled(k){this._enabled!==k&&(this._enabled=k,this._onDidChange.fire({enabled:k}))}get checked(){return this._checked}set checked(k){this._setChecked(k)}_setChecked(k){this._checked!==k&&(this._checked=k,this._onDidChange.fire({checked:k}))}run(k,g){return ue(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(k))})}}class m extends U.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new O.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new O.Q5),this.onDidRun=this._onDidRun.event}run(k,g){return ue(this,void 0,void 0,function*(){if(!k.enabled)return;this._onBeforeRun.fire({action:k});let _;try{yield this.runAction(k,g)}catch(S){_=S}this._onDidRun.fire({action:k,error:_})})}runAction(k,g){return ue(this,void 0,void 0,function*(){yield k.run(g)})}}class w extends A{constructor(k){super(w.ID,k,k?"separator text":"separator"),this.checked=!1,this.enabled=!1}}w.ID="vs.actions.separator";class ne{constructor(k,g,_,S){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=k,this.label=g,this.class=S,this._actions=_}get actions(){return this._actions}dispose(){}run(){return ue(this,void 0,void 0,function*(){})}}class o extends A{constructor(){super(o.ID,ee.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Qt,He,p){"use strict";p.d(He,{ok:function(){return O}});function O(U,ee){if(!U)throw new Error(ee?`Assertion failed (${ee})`:"Assertion Failed")}},52615:function(Qt,He,p){"use strict";p.d(He,{CM:function(){return A},JL:function(){return m},dT:function(){return ne},fK:function(){return ue},lA:function(){return w}});var O=p(4348);class U{constructor(){this._icons=new Map,this._onDidRegister=new O.Q5}add(I){const k=this._icons.get(I.id);k?I.description?k.description=I.description:console.error(`Duplicate registration of codicon ${I.id}`):(this._icons.set(I.id,I),this._onDidRegister.fire(I))}get(I){return this._icons.get(I)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ee=new U,ue=ee;function A(o,I){return new w(o,I)}function m(o){return o?o.replace(/\$\((.*?)\)/g,(I,k)=>` ${k} `).trim():""}class w{constructor(I,k,g){this.id=I,this.definition=k,this.description=g,ee.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var ne;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const I=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function k(S){if(S instanceof w)return["codicon","codicon-"+S.id];const T=I.exec(S.id);if(!T)return k(w.error);let[,N,ie]=T;const z=["codicon","codicon-"+N];return ie&&z.push("codicon-modifier-"+ie.substr(1)),z}o.asClassNameArray=k;function g(S){return k(S).join(" ")}o.asClassName=g;function _(S){return"."+k(S).join(".")}o.asCSSSelector=_})(ne||(ne={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(w||(w={}))},79881:function(Qt,He,p){"use strict";p.d(He,{B8:function(){return k},Cp:function(){return ue},F0:function(){return ne},L6:function(){return I},VV:function(){return w},b1:function(){return o},dL:function(){return ee},ri:function(){return A}});class O{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(()=>{throw _.stack?new Error(_.message+`
|
|
|
|
|
|
`+_.stack):_},0)}}emit(_){this.listeners.forEach(S=>{S(_)})}onUnexpectedError(_){this.unexpectedErrorHandler(_),this.emit(_)}onUnexpectedExternalError(_){this.unexpectedErrorHandler(_)}}const U=new O;function ee(g){w(g)||U.onUnexpectedError(g)}function ue(g){w(g)||U.onUnexpectedExternalError(g)}function A(g){if(g instanceof Error){let{name:_,message:S}=g;const T=g.stacktrace||g.stack;return{$isError:!0,name:_,message:S,stack:T}}return g}const m="Canceled";function w(g){return g instanceof Error&&g.name===m&&g.message===m}function ne(){const g=new Error(m);return g.name=g.message,g}function o(g){return g?new Error(`Illegal argument: ${g}`):new Error("Illegal argument")}function I(g){return g?new Error(`Illegal state: ${g}`):new Error("Illegal state")}class k extends Error{constructor(_){super("NotSupported"),_&&(this.message=_)}}},4348:function(Qt,He,p){"use strict";p.d(He,{D0:function(){return k},E7:function(){return g},K3:function(){return I},Q5:function(){return o},ZD:function(){return _},ju:function(){return A}});var O=p(79881),U=p(69323),ee=p(34502),ue=p(95830),A;(function(S){S.None=()=>U.JT.None;function T(be){return(F,ce=null,q)=>{let y=!1,x;return x=be(Z=>{if(!y)return x?x.dispose():y=!0,F.call(ce,Z)},null,q),y&&x.dispose(),x}}S.once=T;function N(be,F){return L((ce,q=null,y)=>be(x=>ce.call(q,F(x)),null,y))}S.map=N;function ie(be,F){return L((ce,q=null,y)=>be(x=>{F(x),ce.call(q,x)},null,y))}S.forEach=ie;function z(be,F){return L((ce,q=null,y)=>be(x=>F(x)&&ce.call(q,x),null,y))}S.filter=z;function $(be){return be}S.signal=$;function G(...be){return(F,ce=null,q)=>(0,U.F8)(...be.map(y=>y(x=>F.call(ce,x),null,q)))}S.any=G;function Q(be,F,ce){let q=ce;return N(be,y=>(q=F(q,y),q))}S.reduce=Q;function L(be){let F;const ce=new o({onFirstListenerAdd(){F=be(ce.fire,ce)},onLastListenerRemove(){F.dispose()}});return ce.event}function D(be,F,ce=100,q=!1,y){let x,Z,me,Ne=0;const Ue=new o({leakWarningThreshold:y,onFirstListenerAdd(){x=be(ze=>{Ne++,Z=F(Z,ze),q&&!me&&(Ue.fire(Z),Z=void 0),clearTimeout(me),me=setTimeout(()=>{const et=Z;Z=void 0,me=void 0,(!q||Ne>1)&&Ue.fire(et),Ne=0},ce)})},onLastListenerRemove(){x.dispose()}});return Ue.event}S.debounce=D;function Y(be,F=(ce,q)=>ce===q){let ce=!0,q;return z(be,y=>{const x=ce||!F(y,q);return ce=!1,q=y,x})}S.latch=Y;function j(be,F){return[S.filter(be,F),S.filter(be,ce=>!F(ce))]}S.split=j;function xe(be,F=!1,ce=[]){let q=ce.slice(),y=be(me=>{q?q.push(me):Z.fire(me)});const x=()=>{q&&q.forEach(me=>Z.fire(me)),q=null},Z=new o({onFirstListenerAdd(){y||(y=be(me=>Z.fire(me)))},onFirstListenerDidAdd(){q&&(F?setTimeout(x):x())},onLastListenerRemove(){y&&y.dispose(),y=null}});return Z.event}S.buffer=xe;class Ce{constructor(F){this.event=F}map(F){return new Ce(N(this.event,F))}forEach(F){return new Ce(ie(this.event,F))}filter(F){return new Ce(z(this.event,F))}reduce(F,ce){return new Ce(Q(this.event,F,ce))}latch(){return new Ce(Y(this.event))}debounce(F,ce=100,q=!1,y){return new Ce(D(this.event,F,ce,q,y))}on(F,ce,q){return this.event(F,ce,q)}once(F,ce,q){return T(this.event)(F,ce,q)}}function Se(be){return new Ce(be)}S.chain=Se;function ge(be,F,ce=q=>q){const q=(...me)=>Z.fire(ce(...me)),y=()=>be.on(F,q),x=()=>be.removeListener(F,q),Z=new o({onFirstListenerAdd:y,onLastListenerRemove:x});return Z.event}S.fromNodeEventEmitter=ge;function de(be,F,ce=q=>q){const q=(...me)=>Z.fire(ce(...me)),y=()=>be.addEventListener(F,q),x=()=>be.removeEventListener(F,q),Z=new o({onFirstListenerAdd:y,onLastListenerRemove:x});return Z.event}S.fromDOMEventEmitter=de;function W(be){return new Promise(F=>T(be)(F))}S.toPromise=W})(A||(A={}));class m{constructor(T){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${T}_${m._idPool++}`}start(T){this._stopWatch=new ue.G(!0),this._listenerCount=T}stop(){if(this._stopWatch){const T=this._stopWatch.elapsed();this._elapsedOverall+=T,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${T.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}m._idPool=0;let w=-1;class ne{constructor(T,N=Math.random().toString(18).slice(2,5)){this.customThreshold=T,this.name=N,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(T){let N=w;if(typeof this.customThreshold=="number"&&(N=this.customThreshold),N<=0||T<N)return;this._stacks||(this._stacks=new Map);const ie=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),z=this._stacks.get(ie)||0;if(this._stacks.set(ie,z+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=N*.5;let $,G=0;for(const[Q,L]of this._stacks)(!$||G<L)&&($=Q,G=L);console.warn(`[${this.name}] potential listener LEAK detected, having ${T} listeners already. MOST frequent listener (${G}):`),console.warn($)}return()=>{const $=this._stacks.get(ie)||0;this._stacks.set(ie,$-1)}}}class o{constructor(T){var N;this._disposed=!1,this._options=T,this._leakageMon=w>0?new ne(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((N=this._options)===null||N===void 0)&&N._profName?new m(this._options._profName):void 0}get event(){return this._event||(this._event=(T,N,ie)=>{var z;this._listeners||(this._listeners=new ee.S);const $=this._listeners.isEmpty();$&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const G=this._listeners.push(N?[T,N]:T);$&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,T,N);const Q=(z=this._leakageMon)===null||z===void 0?void 0:z.check(this._listeners.size),L=(0,U.OF)(()=>{Q&&Q(),this._disposed||(G(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return ie instanceof U.SL?ie.add(L):Array.isArray(ie)&&ie.push(L),L}),this._event}fire(T){var N,ie;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ee.S);for(let z of this._listeners)this._deliveryQueue.push([z,T]);for((N=this._perfMon)===null||N===void 0||N.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[z,$]=this._deliveryQueue.shift();try{typeof z=="function"?z.call(void 0,$):z[0].call(z[1],$)}catch(G){(0,O.dL)(G)}}(ie=this._perfMon)===null||ie===void 0||ie.stop()}}dispose(){var T,N,ie,z,$;this._disposed||(this._disposed=!0,(T=this._listeners)===null||T===void 0||T.clear(),(N=this._deliveryQueue)===null||N===void 0||N.clear(),(z=(ie=this._options)===null||ie===void 0?void 0:ie.onLastListenerRemove)===null||z===void 0||z.call(ie),($=this._leakageMon)===null||$===void 0||$.dispose())}}class I extends o{constructor(T){super(T),this._isPaused=0,this._eventQueue=new ee.S,this._mergeFn=T==null?void 0:T.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const T=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(T))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(T){this._listeners&&(this._isPaused!==0?this._eventQueue.push(T):super.fire(T))}}class k extends I{constructor(T){var N;super(T),this._delay=(N=T.delay)!==null&&N!==void 0?N:100}fire(T){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(T)}}class g{constructor(){this.buffers=[]}wrapEvent(T){return(N,ie,z)=>T($=>{const G=this.buffers[this.buffers.length-1];G?G.push(()=>N.call(ie,$)):N.call(ie,$)},void 0,z)}bufferEvents(T){const N=[];this.buffers.push(N);const ie=T();return this.buffers.pop(),N.forEach(z=>z()),ie}}class _{constructor(){this.listening=!1,this.inputEvent=A.None,this.inputEventListener=U.JT.None,this.emitter=new o({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(T){this.inputEvent=T,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=T(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Qt,He,p){"use strict";p.d(He,{I:function(){return O}});function O(U){const ee=this;let ue=!1,A;return function(){return ue||(ue=!0,A=U.apply(ee,arguments)),A}}},88226:function(Qt,He,p){"use strict";p.d(He,{$:function(){return O}});var O;(function(U){function ee(G){return G&&typeof G=="object"&&typeof G[Symbol.iterator]=="function"}U.is=ee;const ue=Object.freeze([]);function A(){return ue}U.empty=A;function*m(G){yield G}U.single=m;function w(G){return G||ue}U.from=w;function ne(G){return!G||G[Symbol.iterator]().next().done===!0}U.isEmpty=ne;function o(G){return G[Symbol.iterator]().next().value}U.first=o;function I(G,Q){for(const L of G)if(Q(L))return!0;return!1}U.some=I;function k(G,Q){for(const L of G)if(Q(L))return L}U.find=k;function*g(G,Q){for(const L of G)Q(L)&&(yield L)}U.filter=g;function*_(G,Q){let L=0;for(const D of G)yield Q(D,L++)}U.map=_;function*S(...G){for(const Q of G)for(const L of Q)yield L}U.concat=S;function*T(G){for(const Q of G)for(const L of Q)yield L}U.concatNested=T;function N(G,Q,L){let D=L;for(const Y of G)D=Q(D,Y);return D}U.reduce=N;function*ie(G,Q,L=G.length){for(Q<0&&(Q+=G.length),L<0?L+=G.length:L>G.length&&(L=G.length);Q<L;Q++)yield G[Q]}U.slice=ie;function z(G,Q=Number.POSITIVE_INFINITY){const L=[];if(Q===0)return[L,G];const D=G[Symbol.iterator]();for(let Y=0;Y<Q;Y++){const j=D.next();if(j.done)return[L,U.empty()];L.push(j.value)}return[L,{[Symbol.iterator](){return D}}]}U.consume=z;function $(G,Q,L=(D,Y)=>D===Y){const D=G[Symbol.iterator](),Y=Q[Symbol.iterator]();for(;;){const j=D.next(),xe=Y.next();if(j.done!==xe.done)return!1;if(j.done)return!0;if(!L(j.value,xe.value))return!1}}U.equals=$})(O||(O={}))},69323:function(Qt,He,p){"use strict";p.d(He,{B9:function(){return _},F8:function(){return S},JT:function(){return ie},Jz:function(){return $},OF:function(){return T},SL:function(){return N},Wf:function(){return g},XK:function(){return z},dk:function(){return I}});var O=p(17845),U=p(88226);const ee=!1;let ue=null;function A(G){ue=G}if(ee){const G="__is_disposable_tracked__";A(new class{trackDisposable(Q){const L=new Error("Potentially leaked disposable").stack;setTimeout(()=>{Q[G]||console.log(L)},3e3)}setParent(Q,L){if(Q&&Q!==ie.None)try{Q[G]=!0}catch(D){}}markAsDisposed(Q){if(Q&&Q!==ie.None)try{Q[G]=!0}catch(L){}}markAsSingleton(Q){}})}function m(G){return ue==null||ue.trackDisposable(G),G}function w(G){ue==null||ue.markAsDisposed(G)}function ne(G,Q){ue==null||ue.setParent(G,Q)}function o(G,Q){if(ue)for(const L of G)ue.setParent(L,Q)}function I(G){return ue==null||ue.markAsSingleton(G),G}class k extends Error{constructor(Q){super(`Encountered errors while disposing of store. Errors: [${Q.join(", ")}]`),this.errors=Q}}function g(G){return typeof G.dispose=="function"&&G.dispose.length===0}function _(G){if(U.$.is(G)){let Q=[];for(const L of G)if(L)try{L.dispose()}catch(D){Q.push(D)}if(Q.length===1)throw Q[0];if(Q.length>1)throw new k(Q);return Array.isArray(G)?[]:G}else if(G)return G.dispose(),G}function S(...G){const Q=T(()=>_(G));return o(G,Q),Q}function T(G){const Q=m({dispose:(0,O.I)(()=>{w(Q),G()})});return Q}class N{constructor(){this._toDispose=new Set,this._isDisposed=!1,m(this)}dispose(){this._isDisposed||(w(this),this._isDisposed=!0,this.clear())}clear(){try{_(this._toDispose.values())}finally{this._toDispose.clear()}}add(Q){if(!Q)return Q;if(Q===this)throw new Error("Cannot register a disposable on itself!");return ne(Q,this),this._isDisposed?N.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(Q),Q}}N.DISABLE_DISPOSED_WARNING=!1;class ie{constructor(){this._store=new N,m(this),ne(this._store,this)}dispose(){w(this),this._store.dispose()}_register(Q){if(Q===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(Q)}}ie.None=Object.freeze({dispose(){}});class z{constructor(){this._isDisposed=!1,m(this)}get value(){return this._isDisposed?void 0:this._value}set value(Q){var L;this._isDisposed||Q===this._value||((L=this._value)===null||L===void 0||L.dispose(),Q&&ne(Q,this),this._value=Q)}clear(){this.value=void 0}dispose(){var Q;this._isDisposed=!0,w(this),(Q=this._value)===null||Q===void 0||Q.dispose(),this._value=void 0}clearAndLeak(){const Q=this._value;return this._value=void 0,Q&&ne(Q,null),Q}}class ${constructor(Q){this.object=Q}dispose(){}}},34502:function(Qt,He,p){"use strict";p.d(He,{S:function(){return U}});class O{constructor(ue){this.element=ue,this.next=O.Undefined,this.prev=O.Undefined}}O.Undefined=new O(void 0);class U{constructor(){this._first=O.Undefined,this._last=O.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===O.Undefined}clear(){let ue=this._first;for(;ue!==O.Undefined;){const A=ue.next;ue.prev=O.Undefined,ue.next=O.Undefined,ue=A}this._first=O.Undefined,this._last=O.Undefined,this._size=0}unshift(ue){return this._insert(ue,!1)}push(ue){return this._insert(ue,!0)}_insert(ue,A){const m=new O(ue);if(this._first===O.Undefined)this._first=m,this._last=m;else if(A){const ne=this._last;this._last=m,m.prev=ne,ne.next=m}else{const ne=this._first;this._first=m,m.next=ne,ne.prev=m}this._size+=1;let w=!1;return()=>{w||(w=!0,this._remove(m))}}shift(){if(this._first!==O.Undefined){const ue=this._first.element;return this._remove(this._first),ue}}pop(){if(this._last!==O.Undefined){const ue=this._last.element;return this._remove(this._last),ue}}_remove(ue){if(ue.prev!==O.Undefined&&ue.next!==O.Undefined){const A=ue.prev;A.next=ue.next,ue.next.prev=A}else ue.prev===O.Undefined&&ue.next===O.Undefined?(this._first=O.Undefined,this._last=O.Undefined):ue.next===O.Undefined?(this._last=this._last.prev,this._last.next=O.Undefined):ue.prev===O.Undefined&&(this._first=this._first.next,this._first.prev=O.Undefined);this._size-=1}*[Symbol.iterator](){let ue=this._first;for(;ue!==O.Undefined;)yield ue.element,ue=ue.next}}},23345:function(Qt,He,p){"use strict";p.d(He,{$L:function(){return D},ED:function(){return $},IJ:function(){return Q},OS:function(){return Ce},WE:function(){return j},dz:function(){return G},gn:function(){return Y},li:function(){return T},r:function(){return de},tY:function(){return L},xS:function(){return xe}});var O=p(97671),U;const ee="en";let ue=!1,A=!1,m=!1,w=!1,ne=!1,o=!1,I=!1,k,g=null,_=null,S;const T=typeof self=="object"?self:typeof p.g=="object"?p.g:{};let N;typeof T.vscode!="undefined"&&typeof T.vscode.process!="undefined"?N=T.vscode.process:typeof O!="undefined"&&(N=O);const ie=typeof((U=N==null?void 0:N.versions)===null||U===void 0?void 0:U.electron)=="string"&&N.type==="renderer";if(typeof navigator=="object"&&!ie)S=navigator.userAgent,ue=S.indexOf("Windows")>=0,A=S.indexOf("Macintosh")>=0,I=(S.indexOf("Macintosh")>=0||S.indexOf("iPad")>=0||S.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,m=S.indexOf("Linux")>=0,o=!0,k=navigator.language,g=k;else if(typeof N=="object"){ue=N.platform==="win32",A=N.platform==="darwin",m=N.platform==="linux",w=m&&!!N.env.SNAP&&!!N.env.SNAP_REVISION,k=ee,g=ee;const W=N.env.VSCODE_NLS_CONFIG;if(W)try{const be=JSON.parse(W),F=be.availableLanguages["*"];k=be.locale,g=F||ee,_=be._translationsConfigFile}catch(be){}ne=!0}else console.error("Unable to resolve platform.");let z=0;A?z=1:ue?z=3:m&&(z=2);const $=ue,G=A,Q=m,L=ne,D=o,Y=I,j=S,xe=function(){if(T.setImmediate)return T.setImmediate.bind(T);if(typeof T.postMessage=="function"&&!T.importScripts){let F=[];T.addEventListener("message",q=>{if(q.data&&q.data.vscodeSetImmediateId)for(let y=0,x=F.length;y<x;y++){const Z=F[y];if(Z.id===q.data.vscodeSetImmediateId){F.splice(y,1),Z.callback();return}}});let ce=0;return q=>{const y=++ce;F.push({id:y,callback:q}),T.postMessage({vscodeSetImmediateId:y},"*")}}if(typeof(N==null?void 0:N.nextTick)=="function")return N.nextTick.bind(N);const be=Promise.resolve();return F=>be.then(F)}(),Ce=A||I?2:ue?1:3;let Se=!0,ge=!1;function de(){if(!ge){ge=!0;const W=new Uint8Array(2);W[0]=1,W[1]=2,Se=new Uint16Array(W.buffer)[0]===513}return Se}},95830:function(Qt,He,p){"use strict";p.d(He,{G:function(){return ee}});var O=p(23345);const U=O.li.performance&&typeof O.li.performance.now=="function";class ee{constructor(A){this._highResolution=U&&A,this._startTime=this._now(),this._stopTime=-1}static create(A=!0){return new ee(A)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?O.li.performance.now():Date.now()}}},82983:function(Qt,He,p){"use strict";p.d(He,{$i:function(){return Ne},C8:function(){return gt},GF:function(){return k},HO:function(){return ce},IO:function(){return g},K7:function(){return pt},Kw:function(){return en},LC:function(){return T},Mh:function(){return xe},P1:function(){return Ce},PJ:function(){return Rt},Qe:function(){return Ue},R1:function(){return I},RP:function(){return Z},S6:function(){return Zt},TT:function(){return $},Ut:function(){return y},V8:function(){return N},WU:function(){return ee},YK:function(){return ge},YU:function(){return ue},ZG:function(){return Se},ZH:function(){return W},ab:function(){return ze},c1:function(){return at},df:function(){return D},ec:function(){return A},fi:function(){return ut},fy:function(){return m},j3:function(){return w},j_:function(){return Q},m5:function(){return O},mK:function(){return L},mr:function(){return _},oH:function(){return pe},oL:function(){return ne},ok:function(){return j},ow:function(){return ie},qq:function(){return Y},qu:function(){return z},rL:function(){return de},uS:function(){return Ot},un:function(){return o},uq:function(){return S},vH:function(){return F},xe:function(){return et},zY:function(){return G}});function O(H){return!H||typeof H!="string"?!0:H.trim().length===0}const U=/{(\d+)}/g;function ee(H,...R){return R.length===0?H:H.replace(U,function(P,fe){const oe=parseInt(fe,10);return isNaN(oe)||oe<0||oe>=R.length?P:R[oe]})}function ue(H){return H.replace(/[<>&]/g,function(R){switch(R){case"<":return"<";case">":return">";case"&":return"&";default:return R}})}function A(H){return H.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function m(H,R=" "){const P=w(H,R);return ne(P,R)}function w(H,R){if(!H||!R)return H;const P=R.length;if(P===0||H.length===0)return H;let fe=0;for(;H.indexOf(R,fe)===fe;)fe=fe+P;return H.substring(fe)}function ne(H,R){if(!H||!R)return H;const P=R.length,fe=H.length;if(P===0||fe===0)return H;let oe=fe,te=-1;for(;te=H.lastIndexOf(R,oe-1),!(te===-1||te+P!==oe);){if(te===0)return"";oe=te}return H.substring(0,oe)}function o(H){return H.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function I(H){return H.replace(/\*/g,"")}function k(H,R,P={}){if(!H)throw new Error("Cannot create regex from empty string");R||(H=A(H)),P.wholeWord&&(/\B/.test(H.charAt(0))||(H="\\b"+H),/\B/.test(H.charAt(H.length-1))||(H=H+"\\b"));let fe="";return P.global&&(fe+="g"),P.matchCase||(fe+="i"),P.multiline&&(fe+="m"),P.unicode&&(fe+="u"),new RegExp(H,fe)}function g(H){return H.source==="^"||H.source==="^$"||H.source==="$"||H.source==="^\\s*$"?!1:!!(H.exec("")&&H.lastIndex===0)}function _(H){return(H.global?"g":"")+(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")}function S(H){return H.split(/\r\n|\r|\n/)}function T(H){for(let R=0,P=H.length;R<P;R++){const fe=H.charCodeAt(R);if(fe!==32&&fe!==9)return R}return-1}function N(H,R=0,P=H.length){for(let fe=R;fe<P;fe++){const oe=H.charCodeAt(fe);if(oe!==32&&oe!==9)return H.substring(R,fe)}return H.substring(R,P)}function ie(H,R=H.length-1){for(let P=R;P>=0;P--){const fe=H.charCodeAt(P);if(fe!==32&&fe!==9)return P}return-1}function z(H,R){return H<R?-1:H>R?1:0}function $(H,R,P=0,fe=H.length,oe=0,te=R.length){for(;P<fe&&oe<te;P++,oe++){let ke=H.charCodeAt(P),Be=R.charCodeAt(oe);if(ke<Be)return-1;if(ke>Be)return 1}const Ae=fe-P,je=te-oe;return Ae<je?-1:Ae>je?1:0}function G(H,R){return Q(H,R,0,H.length,0,R.length)}function Q(H,R,P=0,fe=H.length,oe=0,te=R.length){for(;P<fe&&oe<te;P++,oe++){let ke=H.charCodeAt(P),Be=R.charCodeAt(oe);if(ke===Be)continue;if(ke>=128||Be>=128)return $(H.toLowerCase(),R.toLowerCase(),P,fe,oe,te);L(ke)&&(ke-=32),L(Be)&&(Be-=32);const qe=ke-Be;if(qe!==0)return qe}const Ae=fe-P,je=te-oe;return Ae<je?-1:Ae>je?1:0}function L(H){return H>=97&&H<=122}function D(H){return H>=65&&H<=90}function Y(H,R){return H.length===R.length&&Q(H,R)===0}function j(H,R){const P=R.length;return R.length>H.length?!1:Q(H,R,0,P)===0}function xe(H,R){let P,fe=Math.min(H.length,R.length);for(P=0;P<fe;P++)if(H.charCodeAt(P)!==R.charCodeAt(P))return P;return fe}function Ce(H,R){let P,fe=Math.min(H.length,R.length);const oe=H.length-1,te=R.length-1;for(P=0;P<fe;P++)if(H.charCodeAt(oe-P)!==R.charCodeAt(te-P))return P;return fe}function Se(H){return 55296<=H&&H<=56319}function ge(H){return 56320<=H&&H<=57343}function de(H,R){return(H-55296<<10)+(R-56320)+65536}function W(H,R,P){const fe=H.charCodeAt(P);if(Se(fe)&&P+1<R){const oe=H.charCodeAt(P+1);if(ge(oe))return de(fe,oe)}return fe}function be(H,R){const P=H.charCodeAt(R-1);if(ge(P)&&R>1){const fe=H.charCodeAt(R-2);if(Se(fe))return de(fe,P)}return P}function F(H,R){const P=Ct.getInstance(),fe=R,oe=H.length,te=W(H,oe,R);R+=te>=65536?2:1;let Ae=P.getGraphemeBreakType(te);for(;R<oe;){const je=W(H,oe,R),ke=P.getGraphemeBreakType(je);if(ut(Ae,ke))break;R+=je>=65536?2:1,Ae=ke}return R-fe}function ce(H,R){const P=Ct.getInstance(),fe=R,oe=be(H,R);R-=oe>=65536?2:1;let te=P.getGraphemeBreakType(oe);for(;R>0;){const Ae=be(H,R),je=P.getGraphemeBreakType(Ae);if(ut(je,te))break;R-=Ae>=65536?2:1,te=je}return fe-R}const q=/(?:[\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 y(H){return q.test(H)}const x=/(?:[\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 Z(H){return x.test(H)}const me=/^[\t\n\r\x20-\x7E]*$/;function Ne(H){return me.test(H)}const Ue=/[\u2028\u2029]/;function ze(H){return Ue.test(H)}function et(H){for(let R=0,P=H.length;R<P;R++)if(pt(H.charCodeAt(R)))return!0;return!1}function pt(H){return H=+H,H>=11904&&H<=55215||H>=63744&&H<=64255||H>=65281&&H<=65374}function gt(H){return H>=127462&&H<=127487||H===8986||H===8987||H===9200||H===9203||H>=9728&&H<=10175||H===11088||H===11093||H>=127744&&H<=128591||H>=128640&&H<=128764||H>=128992&&H<=129003||H>=129280&&H<=129535||H>=129648&&H<=129750}const at="\uFEFF";function Ot(H){return!!(H&&H.length>0&&H.charCodeAt(0)===65279)}function en(H,R=!1){return H?(R&&(H=H.replace(/\\./g,"")),H.toLowerCase()!==H):!1}function Rt(H){return H=H%(2*26),H<26?String.fromCharCode(97+H):String.fromCharCode(65+H-26)}function Zt(H){return Ct.getInstance().getGraphemeBreakType(H)}function ut(H,R){return H===0?R!==5&&R!==7:H===2&&R===3?!1:H===4||H===2||H===3||R===4||R===2||R===3?!0:!(H===8&&(R===8||R===9||R===11||R===12)||(H===11||H===9)&&(R===9||R===10)||(H===12||H===10)&&R===10||R===5||R===13||R===7||H===1||H===13&&R===14||H===6&&R===6)}class Ct{constructor(){this._data=he()}static getInstance(){return Ct._INSTANCE||(Ct._INSTANCE=new Ct),Ct._INSTANCE}getGraphemeBreakType(R){if(R<32)return R===10?3:R===13?2:4;if(R<127)return 0;const P=this._data,fe=P.length/3;let oe=1;for(;oe<=fe;)if(R<P[3*oe])oe=2*oe;else if(R>P[3*oe+1])oe=2*oe+1;else return P[3*oe+2];return 0}}Ct._INSTANCE=null;function he(){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 pe(H,R){if(H===0)return 0;const P=le(H,R);if(P!==void 0)return P;const fe=be(R,H);return H-=J(fe),H}function le(H,R){let P=be(R,H);for(H-=J(P);Ie(P)||P===65039||P===8419;){if(H===0)return;P=be(R,H),H-=J(P)}if(gt(P)){if(H>=0){const fe=be(R,H);fe===8205&&(H-=J(fe))}return H}}function J(H){return H>=65536?2:1}function Ie(H){return 127995<=H&&H<=127999}},72999:function(Qt,He,p){"use strict";p.d(He,{$E:function(){return T},$K:function(){return w},D8:function(){return g},HD:function(){return U},IU:function(){return N},Jp:function(){return ne},Kn:function(){return ee},cW:function(){return I},f6:function(){return ie},hj:function(){return ue},jn:function(){return A},kJ:function(){return O},mf:function(){return k},o8:function(){return m},p_:function(){return o},vE:function(){return z}});function O($){return Array.isArray($)}function U($){return typeof $=="string"}function ee($){return typeof $=="object"&&$!==null&&!Array.isArray($)&&!($ instanceof RegExp)&&!($ instanceof Date)}function ue($){return typeof $=="number"&&!isNaN($)}function A($){return $===!0||$===!1}function m($){return typeof $=="undefined"}function w($){return!ne($)}function ne($){return m($)||$===null}function o($,G){if(!$)throw new Error(G?`Unexpected type, expected '${G}'`:"Unexpected type")}function I($){if(ne($))throw new Error("Assertion Failed: argument is undefined or null");return $}function k($){return typeof $=="function"}function g($,G){const Q=Math.min($.length,G.length);for(let L=0;L<Q;L++)_($[L],G[L])}function _($,G){if(U(G)){if(typeof $!==G)throw new Error(`argument does not match constraint: typeof ${G}`)}else if(k(G)){try{if($ instanceof G)return}catch(Q){}if(!ne($)&&$.constructor===G||G.length===1&&G.call(void 0,$)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function S($){let G=[],Q=Object.getPrototypeOf($);for(;Object.prototype!==Q;)G=G.concat(Object.getOwnPropertyNames(Q)),Q=Object.getPrototypeOf(Q);return G}function T($){const G=[];for(const Q of S($))typeof $[Q]=="function"&&G.push(Q);return G}function N($,G){const Q=D=>function(){const Y=Array.prototype.slice.call(arguments,0);return G(D,Y)};let L={};for(const D of $)L[D]=Q(D);return L}function ie($){return $===null?void 0:$}function z($,G="Unreachable"){throw new Error(G)}},13268:function(Qt,He,p){"use strict";p.d(He,{N:function(){return U}});function O(ee,ue){let A;return ue.length===0?A=ee:A=ee.replace(/\{(\d+)\}/g,function(m,w){const ne=w[0];return typeof ue[ne]!="undefined"?ue[ne]:m}),A}function U(ee,ue,...A){return O(ue,A)}},96236:function(Qt,He,p){"use strict";p.d(He,{BH:function(){return N},NZ:function(){return ie},U8:function(){return z},co:function(){return T},eH:function(){return S},vr:function(){return _}});var O=p(75918),U=p(52615),ee=p(4348),ue=p(88226),A=p(69323),m=p(34502),w=p(35884),ne=p(90689),o=p(16925),I=p(49055),k=function($,G,Q,L){var D=arguments.length,Y=D<3?G:L===null?L=Object.getOwnPropertyDescriptor(G,Q):L,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate($,G,Q,L);else for(var xe=$.length-1;xe>=0;xe--)(j=$[xe])&&(Y=(D<3?j(Y):D>3?j(G,Q,Y):j(G,Q))||Y);return D>3&&Y&&Object.defineProperty(G,Q,Y),Y},g=function($,G){return function(Q,L){G(Q,L,$)}};function _($){return $.command!==void 0}class S{constructor(G){this.id=S._idPool++,this._debugName=G}}S._idPool=0,S.CommandPalette=new S("CommandPalette"),S.EditorContext=new S("EditorContext"),S.SimpleEditorContext=new S("SimpleEditorContext"),S.EditorContextCopy=new S("EditorContextCopy"),S.EditorContextPeek=new S("EditorContextPeek"),S.MenubarEditMenu=new S("MenubarEditMenu"),S.MenubarCopy=new S("MenubarCopy"),S.MenubarGoMenu=new S("MenubarGoMenu"),S.MenubarSelectionMenu=new S("MenubarSelectionMenu"),S.InlineCompletionsActions=new S("InlineCompletionsActions");const T=(0,o.yh)("menuService"),N=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ee.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:$=>$===S.CommandPalette}}addCommand($){return this.addCommands(ue.$.single($))}addCommands($){for(const G of $)this._commands.set(G.id,G);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,A.OF)(()=>{let G=!1;for(const Q of $)G=this._commands.delete(Q.id)||G;G&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand($){return this._commands.get($)}getCommands(){const $=new Map;return this._commands.forEach((G,Q)=>$.set(Q,G)),$}appendMenuItem($,G){return this.appendMenuItems(ue.$.single({id:$,item:G}))}appendMenuItems($){const G=new Set,Q=new m.S;for(const{id:L,item:D}of $){let Y=this._menuItems.get(L);Y||(Y=new m.S,this._menuItems.set(L,Y)),Q.push(Y.push(D)),G.add(L)}return this._onDidChangeMenu.fire(G),(0,A.OF)(()=>{if(Q.size>0){for(let L of Q)L();this._onDidChangeMenu.fire(G),Q.clear()}})}getMenuItems($){let G;return this._menuItems.has($)?G=[...this._menuItems.get($)]:G=[],$===S.CommandPalette&&this._appendImplicitItems(G),G}_appendImplicitItems($){const G=new Set;for(const Q of $)_(Q)&&(G.add(Q.command.id),Q.alt&&G.add(Q.alt.id));this._commands.forEach((Q,L)=>{G.has(L)||$.push({command:Q})})}};class ie extends O.wY{constructor(G,Q,L,D){super(`submenuitem.${G.submenu.id}`,typeof G.title=="string"?G.title:G.title.value,[],"submenu"),this.item=G,this._menuService=Q,this._contextKeyService=L,this._options=D}get actions(){const G=[],Q=this._menuService.createMenu(this.item.submenu,this._contextKeyService),L=Q.getActions(this._options);Q.dispose();for(const[,D]of L)D.length>0&&(G.push(...D),G.push(new O.Z0));return G.length&&G.pop(),G}}let z=class Ou{constructor(G,Q,L,D,Y){var j,xe;if(this._commandService=Y,this.id=G.id,this.label=L!=null&&L.renderShortTitle&&G.shortTitle?typeof G.shortTitle=="string"?G.shortTitle:G.shortTitle.value:typeof G.title=="string"?G.title:G.title.value,this.tooltip=(xe=typeof G.tooltip=="string"?G.tooltip:(j=G.tooltip)===null||j===void 0?void 0:j.value)!==null&&xe!==void 0?xe:"",this.enabled=!G.precondition||D.contextMatchesRules(G.precondition),this.checked=void 0,G.toggled){const Ce=G.toggled.condition?G.toggled:{condition:G.toggled};this.checked=D.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=G,this.alt=Q?new Ou(Q,void 0,L,D,Y):void 0,this._options=L,I.kS.isThemeIcon(G.icon)&&(this.class=U.dT.asClassName(G.icon))}dispose(){}run(...G){var Q,L;let D=[];return!((Q=this._options)===null||Q===void 0)&&Q.arg&&(D=[...D,this._options.arg]),!((L=this._options)===null||L===void 0)&&L.shouldForwardArgs&&(D=[...D,...G]),this._commandService.executeCommand(this.id,...D)}};z=k([g(3,ne.i6),g(4,w.H)],z)},35884:function(Qt,He,p){"use strict";p.d(He,{H:function(){return w},P:function(){return ne}});var O=p(4348),U=p(88226),ee=p(69323),ue=p(34502),A=p(72999),m=p(16925);const w=(0,m.yh)("commandService"),ne=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new O.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,I){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!I)throw new Error("invalid command");return this.registerCommand({id:o,handler:I})}if(o.description){const T=[];for(let ie of o.description.args)T.push(ie.constraint);const N=o.handler;o.handler=function(ie,...z){return(0,A.D8)(z,T),N(ie,...z)}}const{id:k}=o;let g=this._commands.get(k);g||(g=new ue.S,this._commands.set(k,g));let _=g.unshift(o),S=(0,ee.OF)(()=>{_();const T=this._commands.get(k);T!=null&&T.isEmpty()&&this._commands.delete(k)});return this._onDidRegisterCommand.fire(k),S}registerCommandAlias(o,I){return ne.registerCommand(o,(k,...g)=>k.get(w).executeCommand(I,...g))}getCommand(o){const I=this._commands.get(o);if(!(!I||I.isEmpty()))return U.$.first(I)}getCommands(){const o=new Map;for(const I of this._commands.keys()){const k=this.getCommand(I);k&&o.set(I,k)}return o}};ne.registerCommand("noop",()=>{})},90689:function(Qt,He,p){"use strict";p.d(He,{Ao:function(){return w},Eq:function(){return de},Fb:function(){return ne},K8:function(){return F},i6:function(){return ge},uy:function(){return Se}});var O=p(23345),U=p(82983),ee=p(16925);let ue=O.WE||"";const A=new Map;A.set("false",!1),A.set("true",!0),A.set("isMac",O.dz),A.set("isLinux",O.IJ),A.set("isWindows",O.ED),A.set("isWeb",O.$L),A.set("isMacNative",O.dz&&!O.$L),A.set("isEdge",ue.indexOf("Edg/")>=0),A.set("isFirefox",ue.indexOf("Firefox")>=0),A.set("isChrome",ue.indexOf("Chrome")>=0),A.set("isSafari",ue.indexOf("Safari")>=0);const m=Object.prototype.hasOwnProperty;class w{static has(y){return g.create(y)}static equals(y,x){return _.create(y,x)}static regex(y,x){return D.create(y,x)}static not(y){return ie.create(y)}static and(...y){return xe.create(y,null)}static or(...y){return Ce.create(y,null,!0)}static deserialize(y,x=!1){if(y)return this._deserializeOrExpression(y,x)}static _deserializeOrExpression(y,x){let Z=y.split("||");return Ce.create(Z.map(me=>this._deserializeAndExpression(me,x)),null,!0)}static _deserializeAndExpression(y,x){let Z=y.split("&&");return xe.create(Z.map(me=>this._deserializeOne(me,x)),null)}static _deserializeOne(y,x){if(y=y.trim(),y.indexOf("!=")>=0){let Z=y.split("!=");return N.create(Z[0].trim(),this._deserializeValue(Z[1],x))}if(y.indexOf("==")>=0){let Z=y.split("==");return _.create(Z[0].trim(),this._deserializeValue(Z[1],x))}if(y.indexOf("=~")>=0){let Z=y.split("=~");return D.create(Z[0].trim(),this._deserializeRegexValue(Z[1],x))}if(y.indexOf(" in ")>=0){let Z=y.split(" in ");return S.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(y)){const Z=y.split(">=");return G.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(y)){const Z=y.split(">");return $.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(y)){const Z=y.split("<=");return L.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(y)){const Z=y.split("<");return Q.create(Z[0].trim(),Z[1].trim())}return/^\!\s*/.test(y)?ie.create(y.substr(1).trim()):g.create(y)}static _deserializeValue(y,x){if(y=y.trim(),y==="true")return!0;if(y==="false")return!1;let Z=/^'([^']*)'$/.exec(y);return Z?Z[1].trim():y}static _deserializeRegexValue(y,x){if((0,U.m5)(y)){if(x)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Z=y.indexOf("/"),me=y.lastIndexOf("/");if(Z===me||Z<0){if(x)throw new Error(`bad regexp-value '${y}', missing /-enclosure`);return console.warn(`bad regexp-value '${y}', missing /-enclosure`),null}let Ne=y.slice(Z+1,me),Ue=y[me+1]==="i"?"i":"";try{return new RegExp(Ne,Ue)}catch(ze){if(x)throw new Error(`bad regexp-value '${y}', parse error: ${ze}`);return console.warn(`bad regexp-value '${y}', parse error: ${ze}`),null}}}function ne(q,y){const x=q?q.substituteConstants():void 0,Z=y?y.substituteConstants():void 0;return!x&&!Z?!0:!x||!Z?!1:x.equals(Z)}function o(q,y){return q.cmp(y)}class I{constructor(){this.type=0}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!1}serialize(){return"false"}keys(){return[]}negate(){return k.INSTANCE}}I.INSTANCE=new I;class k{constructor(){this.type=1}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!0}serialize(){return"true"}keys(){return[]}negate(){return I.INSTANCE}}k.INSTANCE=new k;class g{constructor(y,x){this.key=y,this.negated=x,this.type=2}static create(y,x=null){const Z=A.get(y);return typeof Z=="boolean"?Z?k.INSTANCE:I.INSTANCE:new g(y,x)}cmp(y){return y.type!==this.type?this.type-y.type:W(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=A.get(this.key);return typeof y=="boolean"?y?k.INSTANCE:I.INSTANCE:this}evaluate(y){return!!y.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=ie.create(this.key,this)),this.negated}}class _{constructor(y,x,Z){this.key=y,this.value=x,this.negated=Z,this.type=4}static create(y,x,Z=null){if(typeof x=="boolean")return x?g.create(y,Z):ie.create(y,Z);const me=A.get(y);return typeof me=="boolean"?x===(me?"true":"false")?k.INSTANCE:I.INSTANCE:new _(y,x,Z)}cmp(y){return y.type!==this.type?this.type-y.type:be(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=A.get(this.key);if(typeof y=="boolean"){const x=y?"true":"false";return this.value===x?k.INSTANCE:I.INSTANCE}return this}evaluate(y){return y.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class S{constructor(y,x){this.key=y,this.valueKey=x,this.type=10,this.negated=null}static create(y,x){return new S(y,x)}cmp(y){return y.type!==this.type?this.type-y.type:be(this.key,this.valueKey,y.key,y.valueKey)}equals(y){return y.type===this.type?this.key===y.key&&this.valueKey===y.valueKey:!1}substituteConstants(){return this}evaluate(y){const x=y.getValue(this.valueKey),Z=y.getValue(this.key);return Array.isArray(x)?x.indexOf(Z)>=0:typeof Z=="string"&&typeof x=="object"&&x!==null?m.call(x,Z):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=T.create(this)),this.negated}}class T{constructor(y){this._actual=y,this.type=11}static create(y){return new T(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class N{constructor(y,x,Z){this.key=y,this.value=x,this.negated=Z,this.type=5}static create(y,x,Z=null){if(typeof x=="boolean")return x?ie.create(y,Z):g.create(y,Z);const me=A.get(y);return typeof me=="boolean"?x===(me?"true":"false")?I.INSTANCE:k.INSTANCE:new N(y,x,Z)}cmp(y){return y.type!==this.type?this.type-y.type:be(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=A.get(this.key);if(typeof y=="boolean"){const x=y?"true":"false";return this.value===x?I.INSTANCE:k.INSTANCE}return this}evaluate(y){return y.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class ie{constructor(y,x){this.key=y,this.negated=x,this.type=3}static create(y,x=null){const Z=A.get(y);return typeof Z=="boolean"?Z?I.INSTANCE:k.INSTANCE:new ie(y,x)}cmp(y){return y.type!==this.type?this.type-y.type:W(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=A.get(this.key);return typeof y=="boolean"?y?I.INSTANCE:k.INSTANCE:this}evaluate(y){return!y.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}function z(q,y){if(typeof q=="string"){const x=parseFloat(q);isNaN(x)||(q=x)}return typeof q=="string"||typeof q=="number"?y(q):I.INSTANCE}class ${constructor(y,x,Z){this.key=y,this.value=x,this.negated=Z,this.type=12}static create(y,x,Z=null){return z(x,me=>new $(y,me,Z))}cmp(y){return y.type!==this.type?this.type-y.type:be(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}class G{constructor(y,x,Z){this.key=y,this.value=x,this.negated=Z,this.type=13}static create(y,x,Z=null){return z(x,me=>new G(y,me,Z))}cmp(y){return y.type!==this.type?this.type-y.type:be(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Q.create(this.key,this.value,this)),this.negated}}class Q{constructor(y,x,Z){this.key=y,this.value=x,this.negated=Z,this.type=14}static create(y,x,Z=null){return z(x,me=>new Q(y,me,Z))}cmp(y){return y.type!==this.type?this.type-y.type:be(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this.key,this.value,this)),this.negated}}class L{constructor(y,x,Z){this.key=y,this.value=x,this.negated=Z,this.type=15}static create(y,x,Z=null){return z(x,me=>new L(y,me,Z))}cmp(y){return y.type!==this.type?this.type-y.type:be(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this.value,this)),this.negated}}class D{constructor(y,x){this.key=y,this.regexp=x,this.type=7,this.negated=null}static create(y,x){return new D(y,x)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.key<y.key)return-1;if(this.key>y.key)return 1;const x=this.regexp?this.regexp.source:"",Z=y.regexp?y.regexp.source:"";return x<Z?-1:x>Z?1:0}equals(y){if(y.type===this.type){const x=this.regexp?this.regexp.source:"",Z=y.regexp?y.regexp.source:"";return this.key===y.key&&x===Z}return!1}substituteConstants(){return this}evaluate(y){let x=y.getValue(this.key);return this.regexp?this.regexp.test(x):!1}serialize(){const y=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${y}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Y.create(this)),this.negated}}class Y{constructor(y){this._actual=y,this.type=8}static create(y){return new Y(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function j(q){let y=null;for(let x=0,Z=q.length;x<Z;x++){const me=q[x].substituteConstants();if(q[x]!==me&&y===null){y=[];for(let Ne=0;Ne<x;Ne++)y[Ne]=q[Ne]}y!==null&&(y[x]=me)}return y===null?q:y}class xe{constructor(y,x){this.expr=y,this.negated=x,this.type=6}static create(y,x){return xe._normalizeArr(y,x)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let x=0,Z=this.expr.length;x<Z;x++){const me=o(this.expr[x],y.expr[x]);if(me!==0)return me}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let x=0,Z=this.expr.length;x<Z;x++)if(!this.expr[x].equals(y.expr[x]))return!1;return!0}return!1}substituteConstants(){const y=j(this.expr);return y===this.expr?this:xe.create(y,this.negated)}evaluate(y){for(let x=0,Z=this.expr.length;x<Z;x++)if(!this.expr[x].evaluate(y))return!1;return!0}static _normalizeArr(y,x){const Z=[];let me=!1;for(const Ne of y)if(Ne){if(Ne.type===1){me=!0;continue}if(Ne.type===0)return I.INSTANCE;if(Ne.type===6){Z.push(...Ne.expr);continue}Z.push(Ne)}if(Z.length===0&&me)return k.INSTANCE;if(Z.length!==0){if(Z.length===1)return Z[0];Z.sort(o);for(let Ne=1;Ne<Z.length;Ne++)Z[Ne-1].equals(Z[Ne])&&(Z.splice(Ne,1),Ne--);if(Z.length===1)return Z[0];for(;Z.length>1;){const Ne=Z[Z.length-1];if(Ne.type!==9)break;Z.pop();const Ue=Z.pop(),ze=Z.length===0,et=Ce.create(Ne.expr.map(pt=>xe.create([pt,Ue],null)),null,ze);et&&(Z.push(et),Z.sort(o))}return Z.length===1?Z[0]:new xe(Z,x)}}serialize(){return this.expr.map(y=>y.serialize()).join(" && ")}keys(){const y=[];for(let x of this.expr)y.push(...x.keys());return y}negate(){if(!this.negated){const y=[];for(let x of this.expr)y.push(x.negate());this.negated=Ce.create(y,this,!0)}return this.negated}}class Ce{constructor(y,x){this.expr=y,this.negated=x,this.type=9}static create(y,x,Z){return Ce._normalizeArr(y,x,Z)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let x=0,Z=this.expr.length;x<Z;x++){const me=o(this.expr[x],y.expr[x]);if(me!==0)return me}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let x=0,Z=this.expr.length;x<Z;x++)if(!this.expr[x].equals(y.expr[x]))return!1;return!0}return!1}substituteConstants(){const y=j(this.expr);return y===this.expr?this:Ce.create(y,this.negated,!1)}evaluate(y){for(let x=0,Z=this.expr.length;x<Z;x++)if(this.expr[x].evaluate(y))return!0;return!1}static _normalizeArr(y,x,Z){let me=[],Ne=!1;if(y){for(let Ue=0,ze=y.length;Ue<ze;Ue++){const et=y[Ue];if(et){if(et.type===0){Ne=!0;continue}if(et.type===1)return k.INSTANCE;if(et.type===9){me=me.concat(et.expr);continue}me.push(et)}}if(me.length===0&&Ne)return I.INSTANCE;me.sort(o)}if(me.length!==0){if(me.length===1)return me[0];for(let Ue=1;Ue<me.length;Ue++)me[Ue-1].equals(me[Ue])&&(me.splice(Ue,1),Ue--);if(me.length===1)return me[0];if(Z){for(let Ue=0;Ue<me.length;Ue++)for(let ze=Ue+1;ze<me.length;ze++)F(me[Ue],me[ze])&&(me.splice(ze,1),ze--);if(me.length===1)return me[0]}return new Ce(me,x)}}serialize(){return this.expr.map(y=>y.serialize()).join(" || ")}keys(){const y=[];for(let x of this.expr)y.push(...x.keys());return y}negate(){if(!this.negated){let y=[];for(let x of this.expr)y.push(x.negate());for(;y.length>1;){const x=y.shift(),Z=y.shift(),me=[];for(const Ue of ce(x))for(const ze of ce(Z))me.push(xe.create([Ue,ze],null));const Ne=y.length===0;y.unshift(Ce.create(me,null,Ne))}this.negated=y[0]}return this.negated}}class Se extends g{constructor(y,x,Z){super(y,null),this._defaultValue=x,typeof Z=="object"?Se._info.push(Object.assign(Object.assign({},Z),{key:y})):Z!==!0&&Se._info.push({key:y,description:Z,type:x!=null?typeof x:void 0})}static all(){return Se._info.values()}bindTo(y){return y.createKey(this.key,this._defaultValue)}getValue(y){return y.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(y){return _.create(this.key,y)}}Se._info=[];const ge=(0,ee.yh)("contextKeyService"),de="setContext";function W(q,y){return q<y?-1:q>y?1:0}function be(q,y,x,Z){return q<x?-1:q>x?1:y<Z?-1:y>Z?1:0}function F(q,y){if(y.type===6&&q.type!==9&&q.type!==6){for(const me of y.expr)if(q.equals(me))return!0}const x=q.negate(),Z=ce(x).concat(ce(y));Z.sort(o);for(let me=0;me<Z.length;me++){const Ue=Z[me].negate();for(let ze=me+1;ze<Z.length;ze++){const et=Z[ze];if(Ue.equals(et))return!0}}return!1}function ce(q){return q.type===9?q.expr:[q]}},16925:function(Qt,He,p){"use strict";p.d(He,{I8:function(){return O},TG:function(){return U},jt:function(){return A},yh:function(){return ue}});var O;(function(m){m.serviceIds=new Map,m.DI_TARGET="$di$target",m.DI_DEPENDENCIES="$di$dependencies";function w(ne){return ne[m.DI_DEPENDENCIES]||[]}m.getServiceDependencies=w})(O||(O={}));const U=ue("instantiationService");function ee(m,w,ne,o){w[O.DI_TARGET]===w?w[O.DI_DEPENDENCIES].push({id:m,index:ne,optional:o}):(w[O.DI_DEPENDENCIES]=[{id:m,index:ne,optional:o}],w[O.DI_TARGET]=w)}function ue(m){if(O.serviceIds.has(m))return O.serviceIds.get(m);const w=function(ne,o,I){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ee(w,ne,I,!1)};return w.toString=()=>m,O.serviceIds.set(m,w),w}function A(m){return function(w,ne,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ee(m,w,o,!0)}}},44650:function(Qt,He,p){"use strict";p.d(He,{B:function(){return ue}});var O=p(76068),U=p(72999);class ee{constructor(){this.data=new Map}add(m,w){O.ok(U.HD(m)),O.ok(U.Kn(w)),O.ok(!this.data.has(m),"There is already an extension with this id"),this.data.set(m,w)}as(m){return this.data.get(m)||null}}const ue=new ee},66213:function(Qt,He,p){"use strict";p.d(He,{e:function(){return O}});var O;(function(U){U.DARK="dark",U.LIGHT="light",U.HIGH_CONTRAST="hc"})(O||(O={}))},49055:function(Qt,He,p){"use strict";p.d(He,{EN:function(){return o},IP:function(){return g},Ic:function(){return T},XE:function(){return w},bB:function(){return N},kS:function(){return I},m6:function(){return k}});var O=p(52615),U=p(4348),ee=p(69323),ue=p(16925),A=p(44650),m=p(66213);const w=(0,ue.yh)("themeService");var ne;(function(ie){function z($){return $&&typeof $=="object"&&typeof $.id=="string"}ie.isThemeColor=z})(ne||(ne={}));function o(ie){return{id:ie}}var I;(function(ie){function z(Y){return Y&&typeof Y=="object"&&typeof Y.id=="string"&&(typeof Y.color=="undefined"||ne.isThemeColor(Y.color))}ie.isThemeIcon=z;const $=new RegExp(`^\\$\\((${O.dT.iconNameExpression}(?:${O.dT.iconModifierExpression})?)\\)$`);function G(Y){const j=$.exec(Y);if(!j)return;let[,xe]=j;return{id:xe}}ie.fromString=G;function Q(Y,j){let xe=Y.id;const Ce=xe.lastIndexOf("~");return Ce!==-1&&(xe=xe.substring(0,Ce)),j&&(xe=`${xe}~${j}`),{id:xe}}ie.modify=Q;function L(Y,j){var xe,Ce;return Y.id===j.id&&((xe=Y.color)===null||xe===void 0?void 0:xe.id)===((Ce=j.color)===null||Ce===void 0?void 0:Ce.id)}ie.isEqual=L;function D(Y,j){return{id:Y.id,color:j?o(j):void 0}}ie.asThemeIcon=D,ie.asClassNameArray=O.dT.asClassNameArray,ie.asClassName=O.dT.asClassName,ie.asCSSSelector=O.dT.asCSSSelector})(I||(I={}));function k(ie){switch(ie){case m.e.DARK:return"vs-dark";case m.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const g={ThemingContribution:"base.contributions.theming"};class _{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new U.Q5}onColorThemeChange(z){return this.themingParticipants.push(z),this.onThemingParticipantAddedEmitter.fire(z),(0,ee.OF)(()=>{const $=this.themingParticipants.indexOf(z);this.themingParticipants.splice($,1)})}getThemingParticipants(){return this.themingParticipants}}let S=new _;A.B.add(g.ThemingContribution,S);function T(ie){return S.onColorThemeChange(ie)}class N extends ee.JT{constructor(z){super(),this.themeService=z,this.theme=z.getColorTheme(),this._register(this.themeService.onDidColorThemeChange($=>this.onThemeChange($)))}onThemeChange(z){this.theme=z,this.updateStyles()}updateStyles(){}}},5630:function(Qt,He,p){"use strict";var O=p(72308),U=p(77321),ee=p(49618),ue=p(52487),A=p(74416),m=p(92310),w=p.n(m),ne=p(18929),o=p(59301),I=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],k=(0,o.forwardRef)(function(g,_){var S,T=g.prefixCls,N=T===void 0?"rc-checkbox":T,ie=g.className,z=g.style,$=g.checked,G=g.disabled,Q=g.defaultChecked,L=Q===void 0?!1:Q,D=g.type,Y=D===void 0?"checkbox":D,j=g.title,xe=g.onChange,Ce=(0,A.Z)(g,I),Se=(0,o.useRef)(null),ge=(0,ne.Z)(L,{value:$}),de=(0,ue.Z)(ge,2),W=de[0],be=de[1];(0,o.useImperativeHandle)(_,function(){return{focus:function(){var y;(y=Se.current)===null||y===void 0||y.focus()},blur:function(){var y;(y=Se.current)===null||y===void 0||y.blur()},input:Se.current}});var F=w()(N,ie,(S={},(0,ee.Z)(S,"".concat(N,"-checked"),W),(0,ee.Z)(S,"".concat(N,"-disabled"),G),S)),ce=function(y){G||("checked"in g||be(y.target.checked),xe==null||xe({target:(0,U.Z)((0,U.Z)({},g),{},{type:Y,checked:y.target.checked}),stopPropagation:function(){y.stopPropagation()},preventDefault:function(){y.preventDefault()},nativeEvent:y.nativeEvent}))};return o.createElement("span",{className:F,title:j,style:z},o.createElement("input",(0,O.Z)({},Ce,{className:"".concat(N,"-input"),ref:Se,onChange:ce,disabled:G,checked:!!W,type:Y})),o.createElement("span",{className:"".concat(N,"-inner")}))});He.Z=k},31561:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return Y}});var O=p(72308),U=p(49618),ee=p(52487),ue=p(74416),A=p(35593),m=p(92310),w=p.n(m),ne=p(8654),o=p(59301),I=p(10228),k=p(16089),g=I.Z.ESC,_=I.Z.TAB;function S(j){var xe=j.visible,Ce=j.triggerRef,Se=j.onVisibleChange,ge=j.autoFocus,de=j.overlayRef,W=o.useRef(!1),be=function(){if(xe){var y,x;(y=Ce.current)===null||y===void 0||(x=y.focus)===null||x===void 0||x.call(y),Se==null||Se(!1)}},F=function(){var y;return(y=de.current)!==null&&y!==void 0&&y.focus?(de.current.focus(),W.current=!0,!0):!1},ce=function(y){switch(y.keyCode){case g:be();break;case _:{var x=!1;W.current||(x=F()),x?y.preventDefault():be();break}}};o.useEffect(function(){return xe?(window.addEventListener("keydown",ce),ge&&(0,k.Z)(F,3),function(){window.removeEventListener("keydown",ce),W.current=!1}):function(){W.current=!1}},[xe])}var T=(0,o.forwardRef)(function(j,xe){var Ce=j.overlay,Se=j.arrow,ge=j.prefixCls,de=(0,o.useMemo)(function(){var be;return typeof Ce=="function"?be=Ce():be=Ce,be},[Ce]),W=(0,ne.sQ)(xe,de==null?void 0:de.ref);return o.createElement(o.Fragment,null,Se&&o.createElement("div",{className:"".concat(ge,"-arrow")}),o.cloneElement(de,{ref:(0,ne.Yr)(de)?W:void 0}))}),N=T,ie={adjustX:1,adjustY:1},z=[0,0],$={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-4],targetOffset:z},top:{points:["bc","tc"],overflow:ie,offset:[0,-4],targetOffset:z},topRight:{points:["br","tr"],overflow:ie,offset:[0,-4],targetOffset:z},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,4],targetOffset:z},bottom:{points:["tc","bc"],overflow:ie,offset:[0,4],targetOffset:z},bottomRight:{points:["tr","br"],overflow:ie,offset:[0,4],targetOffset:z}},G=$,Q=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function L(j,xe){var Ce,Se=j.arrow,ge=Se===void 0?!1:Se,de=j.prefixCls,W=de===void 0?"rc-dropdown":de,be=j.transitionName,F=j.animation,ce=j.align,q=j.placement,y=q===void 0?"bottomLeft":q,x=j.placements,Z=x===void 0?G:x,me=j.getPopupContainer,Ne=j.showAction,Ue=j.hideAction,ze=j.overlayClassName,et=j.overlayStyle,pt=j.visible,gt=j.trigger,at=gt===void 0?["hover"]:gt,Ot=j.autoFocus,en=j.overlay,Rt=j.children,Zt=j.onVisibleChange,ut=(0,ue.Z)(j,Q),Ct=o.useState(),he=(0,ee.Z)(Ct,2),pe=he[0],le=he[1],J="visible"in j?pt:pe,Ie=o.useRef(null),H=o.useRef(null),R=o.useRef(null);o.useImperativeHandle(xe,function(){return Ie.current});var P=function(Qe){le(Qe),Zt==null||Zt(Qe)};S({visible:J,triggerRef:R,onVisibleChange:P,autoFocus:Ot,overlayRef:H});var fe=function(Qe){var Ve=j.onOverlayClick;le(!1),Ve&&Ve(Qe)},oe=function(){return o.createElement(N,{ref:H,overlay:en,prefixCls:W,arrow:ge})},te=function(){return typeof en=="function"?oe:oe()},Ae=function(){var Qe=j.minOverlayWidthMatchTrigger,Ve=j.alignPoint;return"minOverlayWidthMatchTrigger"in j?Qe:!Ve},je=function(){var Qe=j.openClassName;return Qe!==void 0?Qe:"".concat(W,"-open")},ke=o.cloneElement(Rt,{className:w()((Ce=Rt.props)===null||Ce===void 0?void 0:Ce.className,J&&je()),ref:(0,ne.Yr)(Rt)?(0,ne.sQ)(R,Rt.ref):void 0}),Be=Ue;return!Be&&at.indexOf("contextMenu")!==-1&&(Be=["click"]),o.createElement(A.Z,(0,O.Z)({builtinPlacements:Z},ut,{prefixCls:W,ref:Ie,popupClassName:w()(ze,(0,U.Z)({},"".concat(W,"-show-arrow"),ge)),popupStyle:et,action:at,showAction:Ne,hideAction:Be,popupPlacement:y,popupAlign:ce,popupTransitionName:be,popupAnimation:F,popupVisible:J,stretch:Ae()?"minWidth":"",popup:te(),onPopupVisibleChange:P,onPopupClick:fe,getPopupContainer:me}),ke)}var D=o.forwardRef(L),Y=D},93681:function(Qt,He,p){"use strict";p.r(He),p.d(He,{BaseInput:function(){return I},default:function(){return $}});var O=p(72308),U=p(77321),ee=p(49618),ue=p(62853),A=p(92310),m=p.n(A),w=p(59301),ne=p(5643),o=function(Q){var L,D,Y=Q.inputElement,j=Q.prefixCls,xe=Q.prefix,Ce=Q.suffix,Se=Q.addonBefore,ge=Q.addonAfter,de=Q.className,W=Q.style,be=Q.disabled,F=Q.readOnly,ce=Q.focused,q=Q.triggerFocus,y=Q.allowClear,x=Q.value,Z=Q.handleReset,me=Q.hidden,Ne=Q.classes,Ue=Q.classNames,ze=Q.dataAttrs,et=Q.styles,pt=Q.components,gt=(pt==null?void 0:pt.affixWrapper)||"span",at=(pt==null?void 0:pt.groupWrapper)||"span",Ot=(pt==null?void 0:pt.wrapper)||"span",en=(pt==null?void 0:pt.groupAddon)||"span",Rt=(0,w.useRef)(null),Zt=function(oe){var te;(te=Rt.current)!==null&&te!==void 0&&te.contains(oe.target)&&(q==null||q())},ut=function(){var oe;if(!y)return null;var te=!be&&!F&&x,Ae="".concat(j,"-clear-icon"),je=(0,ue.Z)(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";return w.createElement("span",{onClick:Z,onMouseDown:function(Be){return Be.preventDefault()},className:m()(Ae,(oe={},(0,ee.Z)(oe,"".concat(Ae,"-hidden"),!te),(0,ee.Z)(oe,"".concat(Ae,"-has-suffix"),!!Ce),oe)),role:"button",tabIndex:-1},je)},Ct=(0,w.cloneElement)(Y,{value:x,hidden:me,className:m()((L=Y.props)===null||L===void 0?void 0:L.className,!(0,ne.X3)(Q)&&!(0,ne.He)(Q)&&de)||null,style:(0,U.Z)((0,U.Z)({},(D=Y.props)===null||D===void 0?void 0:D.style),!(0,ne.X3)(Q)&&!(0,ne.He)(Q)?W:{})});if((0,ne.X3)(Q)){var he,pe="".concat(j,"-affix-wrapper"),le=m()(pe,(he={},(0,ee.Z)(he,"".concat(pe,"-disabled"),be),(0,ee.Z)(he,"".concat(pe,"-focused"),ce),(0,ee.Z)(he,"".concat(pe,"-readonly"),F),(0,ee.Z)(he,"".concat(pe,"-input-with-clear-btn"),Ce&&y&&x),he),!(0,ne.He)(Q)&&de,Ne==null?void 0:Ne.affixWrapper,Ue==null?void 0:Ue.affixWrapper),J=(Ce||y)&&w.createElement("span",{className:m()("".concat(j,"-suffix"),Ue==null?void 0:Ue.suffix),style:et==null?void 0:et.suffix},ut(),Ce);Ct=w.createElement(gt,(0,O.Z)({className:le,style:(0,U.Z)((0,U.Z)({},(0,ne.He)(Q)?void 0:W),et==null?void 0:et.affixWrapper),hidden:!(0,ne.He)(Q)&&me,onClick:Zt},ze==null?void 0:ze.affixWrapper,{ref:Rt}),xe&&w.createElement("span",{className:m()("".concat(j,"-prefix"),Ue==null?void 0:Ue.prefix),style:et==null?void 0:et.prefix},xe),(0,w.cloneElement)(Y,{value:x,hidden:null}),J)}if((0,ne.He)(Q)){var Ie="".concat(j,"-group"),H="".concat(Ie,"-addon"),R=m()("".concat(j,"-wrapper"),Ie,Ne==null?void 0:Ne.wrapper),P=m()("".concat(j,"-group-wrapper"),de,Ne==null?void 0:Ne.group);return w.createElement(at,{className:P,style:W,hidden:me},w.createElement(Ot,{className:R},Se&&w.createElement(en,{className:H},Se),(0,w.cloneElement)(Ct,{hidden:null}),ge&&w.createElement(en,{className:H},ge)))}return Ct},I=o,k=p(80702),g=p(52487),_=p(74416),S=p(18929),T=p(2738),N=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ie=(0,w.forwardRef)(function(G,Q){var L=G.autoComplete,D=G.onChange,Y=G.onFocus,j=G.onBlur,xe=G.onPressEnter,Ce=G.onKeyDown,Se=G.prefixCls,ge=Se===void 0?"rc-input":Se,de=G.disabled,W=G.htmlSize,be=G.className,F=G.maxLength,ce=G.suffix,q=G.showCount,y=G.type,x=y===void 0?"text":y,Z=G.classes,me=G.classNames,Ne=G.styles,Ue=(0,_.Z)(G,N),ze=(0,S.Z)(G.defaultValue,{value:G.value}),et=(0,g.Z)(ze,2),pt=et[0],gt=et[1],at=(0,w.useState)(!1),Ot=(0,g.Z)(at,2),en=Ot[0],Rt=Ot[1],Zt=(0,w.useRef)(null),ut=function(P){Zt.current&&(0,ne.nH)(Zt.current,P)};(0,w.useImperativeHandle)(Q,function(){return{focus:ut,blur:function(){var P;(P=Zt.current)===null||P===void 0||P.blur()},setSelectionRange:function(P,fe,oe){var te;(te=Zt.current)===null||te===void 0||te.setSelectionRange(P,fe,oe)},select:function(){var P;(P=Zt.current)===null||P===void 0||P.select()},input:Zt.current}}),(0,w.useEffect)(function(){Rt(function(R){return R&&de?!1:R})},[de]);var Ct=function(P){G.value===void 0&>(P.target.value),Zt.current&&(0,ne.rJ)(Zt.current,P,D)},he=function(P){xe&&P.key==="Enter"&&xe(P),Ce==null||Ce(P)},pe=function(P){Rt(!0),Y==null||Y(P)},le=function(P){Rt(!1),j==null||j(P)},J=function(P){gt(""),ut(),Zt.current&&(0,ne.rJ)(Zt.current,P,D)},Ie=function(){var P=(0,T.Z)(G,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return w.createElement("input",(0,O.Z)({autoComplete:L},P,{onChange:Ct,onFocus:pe,onBlur:le,onKeyDown:he,className:m()(ge,(0,ee.Z)({},"".concat(ge,"-disabled"),de),me==null?void 0:me.input),style:Ne==null?void 0:Ne.input,ref:Zt,size:W,type:x}))},H=function(){var P=Number(F)>0;if(ce||q){var fe=(0,ne.D7)(pt),oe=(0,k.Z)(fe).length,te=(0,ue.Z)(q)==="object"?q.formatter({value:fe,count:oe,maxLength:F}):"".concat(oe).concat(P?" / ".concat(F):"");return w.createElement(w.Fragment,null,!!q&&w.createElement("span",{className:m()("".concat(ge,"-show-count-suffix"),(0,ee.Z)({},"".concat(ge,"-show-count-has-suffix"),!!ce),me==null?void 0:me.count),style:(0,U.Z)({},Ne==null?void 0:Ne.count)},te),ce)}return null};return w.createElement(I,(0,O.Z)({},Ue,{prefixCls:ge,className:be,inputElement:Ie(),handleReset:J,value:(0,ne.D7)(pt),focused:en,triggerFocus:ut,suffix:H(),disabled:de,classes:Z,classNames:me,styles:Ne}))}),z=ie,$=z},5643:function(Qt,He,p){"use strict";p.d(He,{D7:function(){return A},He:function(){return O},X3:function(){return U},nH:function(){return ue},rJ:function(){return ee}});function O(m){return!!(m.addonBefore||m.addonAfter)}function U(m){return!!(m.prefix||m.suffix||m.allowClear)}function ee(m,w,ne,o){if(ne){var I=w;if(w.type==="click"){var k=m.cloneNode(!0);I=Object.create(w,{target:{value:k},currentTarget:{value:k}}),k.value="",ne(I);return}if(o!==void 0){I=Object.create(w,{target:{value:m},currentTarget:{value:m}}),m.value=o,ne(I);return}ne(I)}}function ue(m,w){if(m){m.focus(w);var ne=w||{},o=ne.cursor;if(o){var I=m.value.length;switch(o){case"start":m.setSelectionRange(0,0);break;case"end":m.setSelectionRange(I,I);break;default:m.setSelectionRange(0,I)}}}}function A(m){return typeof m=="undefined"||m===null?"":String(m)}},15285:function(Qt,He,p){"use strict";p.d(He,{iz:function(){return Ln},ck:function(){return rt},BW:function(){return pn},sN:function(){return rt},Wd:function(){return wt},ZP:function(){return tn},Xl:function(){return Ce}});var O=p(72308),U=p(49618),ee=p(77321),ue=p(80702),A=p(52487),m=p(74416),w=p(92310),ne=p.n(w),o=p(11780),I=p(18929),k=p(13697),g=p(48736),_=p(59301),S=p(4676),T=_.createContext(null);function N(ct,ht){return ct===void 0?null:"".concat(ct,"-").concat(ht)}function ie(ct){var ht=_.useContext(T);return N(ht,ct)}var z=p(80547),$=["children","locked"],G=_.createContext(null);function Q(ct,ht){var At=(0,ee.Z)({},ct);return Object.keys(ht).forEach(function(Ft){var Pt=ht[Ft];Pt!==void 0&&(At[Ft]=Pt)}),At}function L(ct){var ht=ct.children,At=ct.locked,Ft=(0,m.Z)(ct,$),Pt=_.useContext(G),Yt=(0,z.Z)(function(){return Q(Pt,Ft)},[Pt,Ft],function(Mt,gn){return!At&&(Mt[0]!==gn[0]||!(0,k.Z)(Mt[1],gn[1],!0))});return _.createElement(G.Provider,{value:Yt},ht)}var D=[],Y=_.createContext(null);function j(){return _.useContext(Y)}var xe=_.createContext(D);function Ce(ct){var ht=_.useContext(xe);return _.useMemo(function(){return ct!==void 0?[].concat((0,ue.Z)(ht),[ct]):ht},[ht,ct])}var Se=_.createContext(null),ge=_.createContext({}),de=ge,W=p(29194);function be(ct){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,W.Z)(ct)){var At=ct.nodeName.toLowerCase(),Ft=["input","select","textarea","button"].includes(At)||ct.isContentEditable||At==="a"&&!!ct.getAttribute("href"),Pt=ct.getAttribute("tabindex"),Yt=Number(Pt),Mt=null;return Pt&&!Number.isNaN(Yt)?Mt=Yt:Ft&&Mt===null&&(Mt=0),Ft&&ct.disabled&&(Mt=null),Mt!==null&&(Mt>=0||ht&&Mt<0)}return!1}function F(ct){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=(0,ue.Z)(ct.querySelectorAll("*")).filter(function(Ft){return be(Ft,ht)});return be(ct,ht)&&At.unshift(ct),At}var ce=null;function q(){ce=document.activeElement}function y(){ce=null}function x(){if(ce)try{ce.focus()}catch(ct){}}function Z(ct,ht){if(ht.keyCode===9){var At=F(ct),Ft=At[ht.shiftKey?0:At.length-1],Pt=Ft===document.activeElement||ct===document.activeElement;if(Pt){var Yt=At[ht.shiftKey?At.length-1:0];Yt.focus(),ht.preventDefault()}}}var me=p(10228),Ne=p(16089),Ue=me.Z.LEFT,ze=me.Z.RIGHT,et=me.Z.UP,pt=me.Z.DOWN,gt=me.Z.ENTER,at=me.Z.ESC,Ot=me.Z.HOME,en=me.Z.END,Rt=[et,pt,Ue,ze];function Zt(ct,ht,At,Ft){var Pt,Yt,Mt,gn,An="prev",Dn="next",Xn="children",nr="parent";if(ct==="inline"&&Ft===gt)return{inlineTrigger:!0};var dr=(Pt={},(0,U.Z)(Pt,et,An),(0,U.Z)(Pt,pt,Dn),Pt),En=(Yt={},(0,U.Z)(Yt,Ue,At?Dn:An),(0,U.Z)(Yt,ze,At?An:Dn),(0,U.Z)(Yt,pt,Xn),(0,U.Z)(Yt,gt,Xn),Yt),Cn=(Mt={},(0,U.Z)(Mt,et,An),(0,U.Z)(Mt,pt,Dn),(0,U.Z)(Mt,gt,Xn),(0,U.Z)(Mt,at,nr),(0,U.Z)(Mt,Ue,At?Xn:nr),(0,U.Z)(Mt,ze,At?nr:Xn),Mt),pr={inline:dr,horizontal:En,vertical:Cn,inlineSub:dr,horizontalSub:Cn,verticalSub:Cn},mr=(gn=pr["".concat(ct).concat(ht?"":"Sub")])===null||gn===void 0?void 0:gn[Ft];switch(mr){case An:return{offset:-1,sibling:!0};case Dn:return{offset:1,sibling:!0};case nr:return{offset:-1,sibling:!1};case Xn:return{offset:1,sibling:!1};default:return null}}function ut(ct){for(var ht=ct;ht;){if(ht.getAttribute("data-menu-list"))return ht;ht=ht.parentElement}return null}function Ct(ct,ht){for(var At=ct||document.activeElement;At;){if(ht.has(At))return At;At=At.parentElement}return null}function he(ct,ht){var At=F(ct,!0);return At.filter(function(Ft){return ht.has(Ft)})}function pe(ct,ht,At){var Ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ct)return null;var Pt=he(ct,ht),Yt=Pt.length,Mt=Pt.findIndex(function(gn){return At===gn});return Ft<0?Mt===-1?Mt=Yt-1:Mt-=1:Ft>0&&(Mt+=1),Mt=(Mt+Yt)%Yt,Pt[Mt]}var le=function(ht,At){var Ft=new Set,Pt=new Map,Yt=new Map;return ht.forEach(function(Mt){var gn=document.querySelector("[data-menu-id='".concat(N(At,Mt),"']"));gn&&(Ft.add(gn),Yt.set(gn,Mt),Pt.set(Mt,gn))}),{elements:Ft,key2element:Pt,element2key:Yt}};function J(ct,ht,At,Ft,Pt,Yt,Mt,gn,An,Dn){var Xn=_.useRef(),nr=_.useRef();nr.current=ht;var dr=function(){Ne.Z.cancel(Xn.current)};return _.useEffect(function(){return function(){dr()}},[]),function(En){var Cn=En.which;if([].concat(Rt,[gt,at,Ot,en]).includes(Cn)){var pr=Yt(),mr=le(pr,Ft),Ir=mr,rr=Ir.elements,ir=Ir.key2element,Cr=Ir.element2key,tr=ir.get(ht),Pr=Ct(tr,rr),ei=Cr.get(Pr),Qn=Zt(ct,Mt(ei,!0).length===1,At,Cn);if(!Qn&&Cn!==Ot&&Cn!==en)return;(Rt.includes(Cn)||[Ot,en].includes(Cn))&&En.preventDefault();var zn=function(fr){if(fr){var Yr=fr,Un=fr.querySelector("a");Un!=null&&Un.getAttribute("href")&&(Yr=Un);var Pn=Cr.get(fr);gn(Pn),dr(),Xn.current=(0,Ne.Z)(function(){nr.current===Pn&&Yr.focus()})}};if([Ot,en].includes(Cn)||Qn.sibling||!Pr){var dt;!Pr||ct==="inline"?dt=Pt.current:dt=ut(Pr);var Bn,or=he(dt,rr);Cn===Ot?Bn=or[0]:Cn===en?Bn=or[or.length-1]:Bn=pe(dt,rr,Pr,Qn.offset),zn(Bn)}else if(Qn.inlineTrigger)An(ei);else if(Qn.offset>0)An(ei,!0),dr(),Xn.current=(0,Ne.Z)(function(){mr=le(pr,Ft);var Vr=Pr.getAttribute("aria-controls"),fr=document.getElementById(Vr),Yr=pe(fr,mr.elements);zn(Yr)},5);else if(Qn.offset<0){var qn=Mt(ei,!0),Lr=qn[qn.length-2],Ur=ir.get(Lr);An(Lr,!1),zn(Ur)}}Dn==null||Dn(En)}}function Ie(ct){Promise.resolve().then(ct)}var H="__RC_UTIL_PATH_SPLIT__",R=function(ht){return ht.join(H)},P=function(ht){return ht.split(H)},fe="rc-menu-more";function oe(){var ct=_.useState({}),ht=(0,A.Z)(ct,2),At=ht[1],Ft=(0,_.useRef)(new Map),Pt=(0,_.useRef)(new Map),Yt=_.useState([]),Mt=(0,A.Z)(Yt,2),gn=Mt[0],An=Mt[1],Dn=(0,_.useRef)(0),Xn=(0,_.useRef)(!1),nr=function(){Xn.current||At({})},dr=(0,_.useCallback)(function(ir,Cr){var tr=R(Cr);Pt.current.set(tr,ir),Ft.current.set(ir,tr),Dn.current+=1;var Pr=Dn.current;Ie(function(){Pr===Dn.current&&nr()})},[]),En=(0,_.useCallback)(function(ir,Cr){var tr=R(Cr);Pt.current.delete(tr),Ft.current.delete(ir)},[]),Cn=(0,_.useCallback)(function(ir){An(ir)},[]),pr=(0,_.useCallback)(function(ir,Cr){var tr=Ft.current.get(ir)||"",Pr=P(tr);return Cr&&gn.includes(Pr[0])&&Pr.unshift(fe),Pr},[gn]),mr=(0,_.useCallback)(function(ir,Cr){return ir.some(function(tr){var Pr=pr(tr,!0);return Pr.includes(Cr)})},[pr]),Ir=function(){var Cr=(0,ue.Z)(Ft.current.keys());return gn.length&&Cr.push(fe),Cr},rr=(0,_.useCallback)(function(ir){var Cr="".concat(Ft.current.get(ir)).concat(H),tr=new Set;return(0,ue.Z)(Pt.current.keys()).forEach(function(Pr){Pr.startsWith(Cr)&&tr.add(Pt.current.get(Pr))}),tr},[]);return _.useEffect(function(){return function(){Xn.current=!0}},[]),{registerPath:dr,unregisterPath:En,refreshOverflowKeys:Cn,isSubPathKey:mr,getKeyPath:pr,getKeys:Ir,getSubPathKeys:rr}}function te(ct){var ht=_.useRef(ct);ht.current=ct;var At=_.useCallback(function(){for(var Ft,Pt=arguments.length,Yt=new Array(Pt),Mt=0;Mt<Pt;Mt++)Yt[Mt]=arguments[Mt];return(Ft=ht.current)===null||Ft===void 0?void 0:Ft.call.apply(Ft,[ht].concat(Yt))},[]);return ct?At:void 0}var Ae=Math.random().toFixed(5).toString().slice(2),je=0;function ke(ct){var ht=(0,I.Z)(ct,{value:ct}),At=(0,A.Z)(ht,2),Ft=At[0],Pt=At[1];return _.useEffect(function(){je+=1;var Yt="".concat(Ae,"-").concat(je);Pt("rc-menu-uuid-".concat(Yt))},[]),Ft}var Be=p(96949),qe=p(55090),Qe=p(77205),Ve=p(38793),xt=p(2738),Dt=p(8654);function vt(ct,ht,At,Ft){var Pt=_.useContext(G),Yt=Pt.activeKey,Mt=Pt.onActive,gn=Pt.onInactive,An={active:Yt===ct};return ht||(An.onMouseEnter=function(Dn){At==null||At({key:ct,domEvent:Dn}),Mt(ct)},An.onMouseLeave=function(Dn){Ft==null||Ft({key:ct,domEvent:Dn}),gn(ct)}),An}function Bt(ct){var ht=_.useContext(G),At=ht.mode,Ft=ht.rtl,Pt=ht.inlineIndent;if(At!=="inline")return null;var Yt=ct;return Ft?{paddingRight:Yt*Pt}:{paddingLeft:Yt*Pt}}function jt(ct){var ht=ct.icon,At=ct.props,Ft=ct.children,Pt;return ht===null||ht===!1?null:(typeof ht=="function"?Pt=_.createElement(ht,(0,ee.Z)({},At)):typeof ht!="boolean"&&(Pt=ht),Pt||Ft||null)}var C=["item"];function B(ct){var ht=ct.item,At=(0,m.Z)(ct,C);return Object.defineProperty(At,"item",{get:function(){return(0,g.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ht}}),At}var yt=["title","attribute","elementRef"],ye=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Me=["active"],Sn=function(ct){(0,Qe.Z)(At,ct);var ht=(0,Ve.Z)(At);function At(){return(0,Be.Z)(this,At),ht.apply(this,arguments)}return(0,qe.Z)(At,[{key:"render",value:function(){var Pt=this.props,Yt=Pt.title,Mt=Pt.attribute,gn=Pt.elementRef,An=(0,m.Z)(Pt,yt),Dn=(0,xt.Z)(An,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,g.ZP)(!Mt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),_.createElement(o.Z.Item,(0,O.Z)({},Mt,{title:typeof Yt=="string"?Yt:void 0},Dn,{ref:gn}))}}]),At}(_.Component),it=_.forwardRef(function(ct,ht){var At,Ft=ct.style,Pt=ct.className,Yt=ct.eventKey,Mt=ct.warnKey,gn=ct.disabled,An=ct.itemIcon,Dn=ct.children,Xn=ct.role,nr=ct.onMouseEnter,dr=ct.onMouseLeave,En=ct.onClick,Cn=ct.onKeyDown,pr=ct.onFocus,mr=(0,m.Z)(ct,ye),Ir=ie(Yt),rr=_.useContext(G),ir=rr.prefixCls,Cr=rr.onItemClick,tr=rr.disabled,Pr=rr.overflowDisabled,ei=rr.itemIcon,Qn=rr.selectedKeys,zn=rr.onActive,dt=_.useContext(de),Bn=dt._internalRenderMenuItem,or="".concat(ir,"-item"),qn=_.useRef(),Lr=_.useRef(),Ur=tr||gn,Vr=(0,Dt.x1)(ht,Lr),fr=Ce(Yt),Yr=function(ii){return{key:Yt,keyPath:(0,ue.Z)(fr).reverse(),item:qn.current,domEvent:ii}},Un=An||ei,Pn=vt(Yt,Ur,nr,dr),Er=Pn.active,Mr=(0,m.Z)(Pn,Me),ti=Qn.includes(Yt),Ri=Bt(fr.length),Hn=function(ii){if(!Ur){var Ti=Yr(ii);En==null||En(B(Ti)),Cr(Ti)}},ri=function(ii){if(Cn==null||Cn(ii),ii.which===me.Z.ENTER){var Ti=Yr(ii);En==null||En(B(Ti)),Cr(Ti)}},Xr=function(ii){zn(Yt),pr==null||pr(ii)},di={};ct.role==="option"&&(di["aria-selected"]=ti);var Mi=_.createElement(Sn,(0,O.Z)({ref:qn,elementRef:Vr,role:Xn===null?"none":Xn||"menuitem",tabIndex:gn?null:-1,"data-menu-id":Pr&&Ir?null:Ir},mr,Mr,di,{component:"li","aria-disabled":gn,style:(0,ee.Z)((0,ee.Z)({},Ri),Ft),className:ne()(or,(At={},(0,U.Z)(At,"".concat(or,"-active"),Er),(0,U.Z)(At,"".concat(or,"-selected"),ti),(0,U.Z)(At,"".concat(or,"-disabled"),Ur),At),Pt),onClick:Hn,onKeyDown:ri,onFocus:Xr}),Dn,_.createElement(jt,{props:(0,ee.Z)((0,ee.Z)({},ct),{},{isSelected:ti}),icon:Un}));return Bn&&(Mi=Bn(Mi,ct,{selected:ti})),Mi});function nt(ct,ht){var At=ct.eventKey,Ft=j(),Pt=Ce(At);return _.useEffect(function(){if(Ft)return Ft.registerPath(At,Pt),function(){Ft.unregisterPath(At,Pt)}},[Pt]),Ft?null:_.createElement(it,(0,O.Z)({},ct,{ref:ht}))}var rt=_.forwardRef(nt),Ee=["className","children"],De=function(ht,At){var Ft=ht.className,Pt=ht.children,Yt=(0,m.Z)(ht,Ee),Mt=_.useContext(G),gn=Mt.prefixCls,An=Mt.mode,Dn=Mt.rtl;return _.createElement("ul",(0,O.Z)({className:ne()(gn,Dn&&"".concat(gn,"-rtl"),"".concat(gn,"-sub"),"".concat(gn,"-").concat(An==="inline"?"inline":"vertical"),Ft),role:"menu"},Yt,{"data-menu-list":!0,ref:At}),Pt)},Fe=_.forwardRef(De);Fe.displayName="SubMenuList";var tt=Fe,_e=p(11592);function Jt(ct,ht){return(0,_e.Z)(ct).map(function(At,Ft){if(_.isValidElement(At)){var Pt,Yt,Mt=At.key,gn=(Pt=(Yt=At.props)===null||Yt===void 0?void 0:Yt.eventKey)!==null&&Pt!==void 0?Pt:Mt,An=gn==null;An&&(gn="tmp_key-".concat([].concat((0,ue.Z)(ht),[Ft]).join("-")));var Dn={key:gn,eventKey:gn};return _.cloneElement(At,Dn)}return At})}var Ze=p(35593),xn={adjustX:1,adjustY:1},Rn={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},leftTop:{points:["tr","tl"],overflow:xn},leftBottom:{points:["br","bl"],overflow:xn},rightTop:{points:["tl","tr"],overflow:xn},rightBottom:{points:["bl","br"],overflow:xn}},Wn={topLeft:{points:["bl","tl"],overflow:xn},topRight:{points:["br","tr"],overflow:xn},bottomLeft:{points:["tl","bl"],overflow:xn},bottomRight:{points:["tr","br"],overflow:xn},rightTop:{points:["tr","tl"],overflow:xn},rightBottom:{points:["br","bl"],overflow:xn},leftTop:{points:["tl","tr"],overflow:xn},leftBottom:{points:["bl","br"],overflow:xn}},yr=null;function vn(ct,ht,At){if(ht)return ht;if(At)return At[ct]||At.other}var wn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Xe(ct){var ht=ct.prefixCls,At=ct.visible,Ft=ct.children,Pt=ct.popup,Yt=ct.popupStyle,Mt=ct.popupClassName,gn=ct.popupOffset,An=ct.disabled,Dn=ct.mode,Xn=ct.onVisibleChange,nr=_.useContext(G),dr=nr.getPopupContainer,En=nr.rtl,Cn=nr.subMenuOpenDelay,pr=nr.subMenuCloseDelay,mr=nr.builtinPlacements,Ir=nr.triggerSubMenuAction,rr=nr.forceSubMenuRender,ir=nr.rootClassName,Cr=nr.motion,tr=nr.defaultMotions,Pr=_.useState(!1),ei=(0,A.Z)(Pr,2),Qn=ei[0],zn=ei[1],dt=En?(0,ee.Z)((0,ee.Z)({},Wn),mr):(0,ee.Z)((0,ee.Z)({},Rn),mr),Bn=wn[Dn],or=vn(Dn,Cr,tr),qn=_.useRef(or);Dn!=="inline"&&(qn.current=or);var Lr=(0,ee.Z)((0,ee.Z)({},qn.current),{},{leavedClassName:"".concat(ht,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Ur=_.useRef();return _.useEffect(function(){return Ur.current=(0,Ne.Z)(function(){zn(At)}),function(){Ne.Z.cancel(Ur.current)}},[At]),_.createElement(Ze.Z,{prefixCls:ht,popupClassName:ne()("".concat(ht,"-popup"),(0,U.Z)({},"".concat(ht,"-rtl"),En),Mt,ir),stretch:Dn==="horizontal"?"minWidth":null,getPopupContainer:dr,builtinPlacements:dt,popupPlacement:Bn,popupVisible:Qn,popup:Pt,popupStyle:Yt,popupAlign:gn&&{offset:gn},action:An?[]:[Ir],mouseEnterDelay:Cn,mouseLeaveDelay:pr,onPopupVisibleChange:Xn,forceRender:rr,popupMotion:Lr,fresh:!0},Ft)}var Lt=p(77900);function Wt(ct){var ht=ct.id,At=ct.open,Ft=ct.keyPath,Pt=ct.children,Yt="inline",Mt=_.useContext(G),gn=Mt.prefixCls,An=Mt.forceSubMenuRender,Dn=Mt.motion,Xn=Mt.defaultMotions,nr=Mt.mode,dr=_.useRef(!1);dr.current=nr===Yt;var En=_.useState(!dr.current),Cn=(0,A.Z)(En,2),pr=Cn[0],mr=Cn[1],Ir=dr.current?At:!1;_.useEffect(function(){dr.current&&mr(!1)},[nr]);var rr=(0,ee.Z)({},vn(Yt,Dn,Xn));Ft.length>1&&(rr.motionAppear=!1);var ir=rr.onVisibleChanged;return rr.onVisibleChanged=function(Cr){return!dr.current&&!Cr&&mr(!0),ir==null?void 0:ir(Cr)},pr?null:_.createElement(L,{mode:Yt,locked:!dr.current},_.createElement(Lt.default,(0,O.Z)({visible:Ir},rr,{forceRender:An,removeOnLeave:!1,leavedClassName:"".concat(gn,"-hidden")}),function(Cr){var tr=Cr.className,Pr=Cr.style;return _.createElement(tt,{id:ht,className:tr,style:Pr},Pt)}))}var Ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Oe=["active"],_t=function(ht){var At,Ft=ht.style,Pt=ht.className,Yt=ht.title,Mt=ht.eventKey,gn=ht.warnKey,An=ht.disabled,Dn=ht.internalPopupClose,Xn=ht.children,nr=ht.itemIcon,dr=ht.expandIcon,En=ht.popupClassName,Cn=ht.popupOffset,pr=ht.popupStyle,mr=ht.onClick,Ir=ht.onMouseEnter,rr=ht.onMouseLeave,ir=ht.onTitleClick,Cr=ht.onTitleMouseEnter,tr=ht.onTitleMouseLeave,Pr=(0,m.Z)(ht,Ke),ei=ie(Mt),Qn=_.useContext(G),zn=Qn.prefixCls,dt=Qn.mode,Bn=Qn.openKeys,or=Qn.disabled,qn=Qn.overflowDisabled,Lr=Qn.activeKey,Ur=Qn.selectedKeys,Vr=Qn.itemIcon,fr=Qn.expandIcon,Yr=Qn.onItemClick,Un=Qn.onOpenChange,Pn=Qn.onActive,Er=_.useContext(de),Mr=Er._internalRenderSubMenuItem,ti=_.useContext(Se),Ri=ti.isSubPathKey,Hn=Ce(),ri="".concat(zn,"-submenu"),Xr=or||An,di=_.useRef(),Mi=_.useRef(),bi=nr!=null?nr:Vr,ii=dr!=null?dr:fr,Ti=Bn.includes(Mt),oi=!qn&&Ti,$i=Ri(Ur,Mt),Tr=vt(Mt,Xr,Cr,tr),Yi=Tr.active,Ki=(0,m.Z)(Tr,Oe),Xi=_.useState(!1),Gr=(0,A.Z)(Xi,2),cs=Gr[0],ms=Gr[1],us=function(Ai){Xr||ms(Ai)},Fr=function(Ai){us(!0),Ir==null||Ir({key:Mt,domEvent:Ai})},ds=function(Ai){us(!1),rr==null||rr({key:Mt,domEvent:Ai})},Cs=_.useMemo(function(){return Yi||(dt!=="inline"?cs||Ri([Lr],Mt):!1)},[dt,Yi,Lr,cs,Mt,Ri]),Nn=Bt(Hn.length),Bi=function(Ai){Xr||(ir==null||ir({key:Mt,domEvent:Ai}),dt==="inline"&&Un(Mt,!Ti))},is=te(function(Pi){mr==null||mr(B(Pi)),Yr(Pi)}),gr=function(Ai){dt!=="inline"&&Un(Mt,Ai)},xr=function(){Pn(Mt)},lr=ei&&"".concat(ei,"-popup"),Vn=_.createElement("div",(0,O.Z)({role:"menuitem",style:Nn,className:"".concat(ri,"-title"),tabIndex:Xr?null:-1,ref:di,title:typeof Yt=="string"?Yt:null,"data-menu-id":qn&&ei?null:ei,"aria-expanded":oi,"aria-haspopup":!0,"aria-controls":lr,"aria-disabled":Xr,onClick:Bi,onFocus:xr},Ki),Yt,_.createElement(jt,{icon:dt!=="horizontal"?ii:void 0,props:(0,ee.Z)((0,ee.Z)({},ht),{},{isOpen:oi,isSubMenu:!0})},_.createElement("i",{className:"".concat(ri,"-arrow")}))),Kr=_.useRef(dt);if(dt!=="inline"&&Hn.length>1?Kr.current="vertical":Kr.current=dt,!qn){var si=Kr.current;Vn=_.createElement(Xe,{mode:si,prefixCls:ri,visible:!Dn&&oi&&dt!=="inline",popupClassName:En,popupOffset:Cn,popupStyle:pr,popup:_.createElement(L,{mode:si==="horizontal"?"vertical":si},_.createElement(tt,{id:lr,ref:Mi},Xn)),disabled:Xr,onVisibleChange:gr},Vn)}var Hi=_.createElement(o.Z.Item,(0,O.Z)({role:"none"},Pr,{component:"li",style:Ft,className:ne()(ri,"".concat(ri,"-").concat(dt),Pt,(At={},(0,U.Z)(At,"".concat(ri,"-open"),oi),(0,U.Z)(At,"".concat(ri,"-active"),Cs),(0,U.Z)(At,"".concat(ri,"-selected"),$i),(0,U.Z)(At,"".concat(ri,"-disabled"),Xr),At)),onMouseEnter:Fr,onMouseLeave:ds}),Vn,!qn&&_.createElement(Wt,{id:lr,open:oi,keyPath:Hn},Xn));return Mr&&(Hi=Mr(Hi,ht,{selected:$i,active:Cs,open:oi,disabled:Xr})),_.createElement(L,{onItemClick:is,mode:dt==="horizontal"?"vertical":dt,itemIcon:bi,expandIcon:ii},Hi)};function wt(ct){var ht=ct.eventKey,At=ct.children,Ft=Ce(ht),Pt=Jt(At,Ft),Yt=j();_.useEffect(function(){if(Yt)return Yt.registerPath(ht,Ft),function(){Yt.unregisterPath(ht,Ft)}},[Ft]);var Mt;return Yt?Mt=Pt:Mt=_.createElement(_t,ct,Pt),_.createElement(xe.Provider,{value:Ft},Mt)}var rn=p(62853),Xt=["className","title","eventKey","children"],cn=["children"],nn=function(ht){var At=ht.className,Ft=ht.title,Pt=ht.eventKey,Yt=ht.children,Mt=(0,m.Z)(ht,Xt),gn=_.useContext(G),An=gn.prefixCls,Dn="".concat(An,"-item-group");return _.createElement("li",(0,O.Z)({role:"presentation"},Mt,{onClick:function(nr){return nr.stopPropagation()},className:ne()(Dn,At)}),_.createElement("div",{role:"presentation",className:"".concat(Dn,"-title"),title:typeof Ft=="string"?Ft:void 0},Ft),_.createElement("ul",{role:"group",className:"".concat(Dn,"-list")},Yt))};function pn(ct){var ht=ct.children,At=(0,m.Z)(ct,cn),Ft=Ce(At.eventKey),Pt=Jt(ht,Ft),Yt=j();return Yt?Pt:_.createElement(nn,(0,xt.Z)(At,["warnKey"]),Pt)}function Ln(ct){var ht=ct.className,At=ct.style,Ft=_.useContext(G),Pt=Ft.prefixCls,Yt=j();return Yt?null:_.createElement("li",{role:"separator",className:ne()("".concat(Pt,"-item-divider"),ht),style:At})}var Kt=["label","children","key","type"];function zt(ct){return(ct||[]).map(function(ht,At){if(ht&&(0,rn.Z)(ht)==="object"){var Ft=ht,Pt=Ft.label,Yt=Ft.children,Mt=Ft.key,gn=Ft.type,An=(0,m.Z)(Ft,Kt),Dn=Mt!=null?Mt:"tmp-".concat(At);return Yt||gn==="group"?gn==="group"?_.createElement(pn,(0,O.Z)({key:Dn},An,{title:Pt}),zt(Yt)):_.createElement(wt,(0,O.Z)({key:Dn},An,{title:Pt}),zt(Yt)):gn==="divider"?_.createElement(Ln,(0,O.Z)({key:Dn},An)):_.createElement(rt,(0,O.Z)({key:Dn},An),Pt)}return null}).filter(function(ht){return ht})}function ln(ct,ht,At){var Ft=ct;return ht&&(Ft=zt(ht)),Jt(Ft,At)}var sn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],mn=[],un=_.forwardRef(function(ct,ht){var At,Ft,Pt=ct,Yt=Pt.prefixCls,Mt=Yt===void 0?"rc-menu":Yt,gn=Pt.rootClassName,An=Pt.style,Dn=Pt.className,Xn=Pt.tabIndex,nr=Xn===void 0?0:Xn,dr=Pt.items,En=Pt.children,Cn=Pt.direction,pr=Pt.id,mr=Pt.mode,Ir=mr===void 0?"vertical":mr,rr=Pt.inlineCollapsed,ir=Pt.disabled,Cr=Pt.disabledOverflow,tr=Pt.subMenuOpenDelay,Pr=tr===void 0?.1:tr,ei=Pt.subMenuCloseDelay,Qn=ei===void 0?.1:ei,zn=Pt.forceSubMenuRender,dt=Pt.defaultOpenKeys,Bn=Pt.openKeys,or=Pt.activeKey,qn=Pt.defaultActiveFirst,Lr=Pt.selectable,Ur=Lr===void 0?!0:Lr,Vr=Pt.multiple,fr=Vr===void 0?!1:Vr,Yr=Pt.defaultSelectedKeys,Un=Pt.selectedKeys,Pn=Pt.onSelect,Er=Pt.onDeselect,Mr=Pt.inlineIndent,ti=Mr===void 0?24:Mr,Ri=Pt.motion,Hn=Pt.defaultMotions,ri=Pt.triggerSubMenuAction,Xr=ri===void 0?"hover":ri,di=Pt.builtinPlacements,Mi=Pt.itemIcon,bi=Pt.expandIcon,ii=Pt.overflowedIndicator,Ti=ii===void 0?"...":ii,oi=Pt.overflowedIndicatorPopupClassName,$i=Pt.getPopupContainer,Tr=Pt.onClick,Yi=Pt.onOpenChange,Ki=Pt.onKeyDown,Xi=Pt.openAnimation,Gr=Pt.openTransitionName,cs=Pt._internalRenderMenuItem,ms=Pt._internalRenderSubMenuItem,us=(0,m.Z)(Pt,sn),Fr=_.useMemo(function(){return ln(En,dr,mn)},[En,dr]),ds=_.useState(!1),Cs=(0,A.Z)(ds,2),Nn=Cs[0],Bi=Cs[1],is=_.useRef(),gr=ke(pr),xr=Cn==="rtl",lr=(0,I.Z)(dt,{value:Bn,postState:function(Li){return Li||mn}}),Vn=(0,A.Z)(lr,2),Kr=Vn[0],si=Vn[1],Hi=function(Li){var xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function hs(){si(Li),Yi==null||Yi(Li)}xi?(0,S.flushSync)(hs):hs()},Pi=_.useState(Kr),Ai=(0,A.Z)(Pi,2),$r=Ai[0],Ni=Ai[1],Ts=_.useRef(!1),Ns=_.useMemo(function(){return(Ir==="inline"||Ir==="vertical")&&rr?["vertical",rr]:[Ir,!1]},[Ir,rr]),fs=(0,A.Z)(Ns,2),as=fs[0],sr=fs[1],Or=as==="inline",_i=_.useState(as),Zi=(0,A.Z)(_i,2),gi=Zi[0],gs=Zi[1],As=_.useState(sr),Hs=(0,A.Z)(As,2),vs=Hs[0],oa=Hs[1];_.useEffect(function(){gs(as),oa(sr),Ts.current&&(Or?si($r):Hi(mn))},[as,sr]);var ya=_.useState(0),Ys=(0,A.Z)(ya,2),la=Ys[0],xs=Ys[1],Es=la>=Fr.length-1||gi!=="horizontal"||Cr;_.useEffect(function(){Or&&Ni(Kr)},[Kr]),_.useEffect(function(){return Ts.current=!0,function(){Ts.current=!1}},[]);var Ds=oe(),ua=Ds.registerPath,Xs=Ds.unregisterPath,Qs=Ds.refreshOverflowKeys,Us=Ds.isSubPathKey,li=Ds.getKeyPath,Qr=Ds.getKeys,ss=Ds.getSubPathKeys,ji=_.useMemo(function(){return{registerPath:ua,unregisterPath:Xs}},[ua,Xs]),vi=_.useMemo(function(){return{isSubPathKey:Us}},[Us]);_.useEffect(function(){Qs(Es?mn:Fr.slice(la+1).map(function(Di){return Di.key}))},[la,Es]);var os=(0,I.Z)(or||qn&&((At=Fr[0])===null||At===void 0?void 0:At.key),{value:or}),ls=(0,A.Z)(os,2),Is=ls[0],Ss=ls[1],Js=te(function(Di){Ss(Di)}),Fs=te(function(){Ss(void 0)});(0,_.useImperativeHandle)(ht,function(){return{list:is.current,focus:function(Li){var xi,hs=Qr(),rs=le(hs,gr),yn=rs.elements,js=rs.key2element,da=rs.element2key,ka=he(is.current,yn),Ma=Is!=null?Is:ka[0]?da.get(ka[0]):(xi=Fr.find(function(Qa){return!Qa.props.disabled}))===null||xi===void 0?void 0:xi.key,na=js.get(Ma);if(Ma&&na){var fa;na==null||(fa=na.focus)===null||fa===void 0||fa.call(na,Li)}}}});var ba=(0,I.Z)(Yr||[],{value:Un,postState:function(Li){return Array.isArray(Li)?Li:Li==null?mn:[Li]}}),Pa=(0,A.Z)(ba,2),Bs=Pa[0],qs=Pa[1],wa=function(Li){if(Ur){var xi=Li.key,hs=Bs.includes(xi),rs;fr?hs?rs=Bs.filter(function(js){return js!==xi}):rs=[].concat((0,ue.Z)(Bs),[xi]):rs=[xi],qs(rs);var yn=(0,ee.Z)((0,ee.Z)({},Li),{},{selectedKeys:rs});hs?Er==null||Er(yn):Pn==null||Pn(yn)}!fr&&Kr.length&&gi!=="inline"&&Hi(mn)},ea=te(function(Di){Tr==null||Tr(B(Di)),wa(Di)}),_a=te(function(Di,Li){var xi=Kr.filter(function(rs){return rs!==Di});if(Li)xi.push(Di);else if(gi!=="inline"){var hs=ss(Di);xi=xi.filter(function(rs){return!hs.has(rs)})}(0,k.Z)(Kr,xi,!0)||Hi(xi,!0)}),Ca=function(Li,xi){var hs=xi!=null?xi:!Kr.includes(Li);_a(Li,hs)},ca=J(gi,Is,xr,gr,is,Qr,li,Ss,Ca,Ki);_.useEffect(function(){Bi(!0)},[]);var ta=_.useMemo(function(){return{_internalRenderMenuItem:cs,_internalRenderSubMenuItem:ms}},[cs,ms]),Zs=gi!=="horizontal"||Cr?Fr:Fr.map(function(Di,Li){return _.createElement(L,{key:Di.key,overflowDisabled:Li>la},Di)}),Ta=_.createElement(o.Z,(0,O.Z)({id:pr,ref:is,prefixCls:"".concat(Mt,"-overflow"),component:"ul",itemComponent:rt,className:ne()(Mt,"".concat(Mt,"-root"),"".concat(Mt,"-").concat(gi),Dn,(Ft={},(0,U.Z)(Ft,"".concat(Mt,"-inline-collapsed"),vs),(0,U.Z)(Ft,"".concat(Mt,"-rtl"),xr),Ft),gn),dir:Cn,style:An,role:"menu",tabIndex:nr,data:Zs,renderRawItem:function(Li){return Li},renderRawRest:function(Li){var xi=Li.length,hs=xi?Fr.slice(-xi):null;return _.createElement(wt,{eventKey:fe,title:Ti,disabled:Es,internalPopupClose:xi===0,popupClassName:oi},hs)},maxCount:gi!=="horizontal"||Cr?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Li){xs(Li)},onKeyDown:ca},us));return _.createElement(de.Provider,{value:ta},_.createElement(T.Provider,{value:gr},_.createElement(L,{prefixCls:Mt,rootClassName:gn,mode:gi,openKeys:Kr,rtl:xr,disabled:ir,motion:Nn?Ri:null,defaultMotions:Nn?Hn:null,activeKey:Is,onActive:Js,onInactive:Fs,selectedKeys:Bs,inlineIndent:ti,subMenuOpenDelay:Pr,subMenuCloseDelay:Qn,forceSubMenuRender:zn,builtinPlacements:di,triggerSubMenuAction:Xr,getPopupContainer:$i,itemIcon:Mi,expandIcon:bi,onItemClick:ea,onOpenChange:_a},_.createElement(Se.Provider,{value:vi},Ta),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(Y.Provider,{value:ji},Fr)))))}),ar=un,On=ar;On.Item=rt,On.SubMenu=wt,On.ItemGroup=pn,On.Divider=Ln;var tn=On},11780:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return q}});var O=p(72308),U=p(77321),ee=p(52487),ue=p(74416),A=p(59301),m=p(92310),w=p.n(m),ne=p(29301),o=p(34280),I=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],k=void 0;function g(y,x){var Z=y.prefixCls,me=y.invalidate,Ne=y.item,Ue=y.renderItem,ze=y.responsive,et=y.responsiveDisabled,pt=y.registerSize,gt=y.itemKey,at=y.className,Ot=y.style,en=y.children,Rt=y.display,Zt=y.order,ut=y.component,Ct=ut===void 0?"div":ut,he=(0,ue.Z)(y,I),pe=ze&&!Rt;function le(P){pt(gt,P)}A.useEffect(function(){return function(){le(null)}},[]);var J=Ue&&Ne!==k?Ue(Ne,{index:Zt}):en,Ie;me||(Ie={opacity:pe?0:1,height:pe?0:k,overflowY:pe?"hidden":k,order:ze?Zt:k,pointerEvents:pe?"none":k,position:pe?"absolute":k});var H={};pe&&(H["aria-hidden"]=!0);var R=A.createElement(Ct,(0,O.Z)({className:w()(!me&&Z,at),style:(0,U.Z)((0,U.Z)({},Ie),Ot)},H,he,{ref:x}),J);return ze&&(R=A.createElement(ne.Z,{onResize:function(fe){var oe=fe.offsetWidth;le(oe)},disabled:et},R)),R}var _=A.forwardRef(g);_.displayName="Item";var S=_,T=p(6089),N=p(4676),ie=p(16089);function z(y){if(typeof MessageChannel=="undefined")(0,ie.Z)(y);else{var x=new MessageChannel;x.port1.onmessage=function(){return y()},x.port2.postMessage(void 0)}}function $(){var y=A.useRef(null),x=function(me){y.current||(y.current=[],z(function(){(0,N.unstable_batchedUpdates)(function(){y.current.forEach(function(Ne){Ne()}),y.current=null})})),y.current.push(me)};return x}function G(y,x){var Z=A.useState(x),me=(0,ee.Z)(Z,2),Ne=me[0],Ue=me[1],ze=(0,T.Z)(function(et){y(function(){Ue(et)})});return[Ne,ze]}var Q=A.createContext(null),L=["component"],D=["className"],Y=["className"],j=function(x,Z){var me=A.useContext(Q);if(!me){var Ne=x.component,Ue=Ne===void 0?"div":Ne,ze=(0,ue.Z)(x,L);return A.createElement(Ue,(0,O.Z)({},ze,{ref:Z}))}var et=me.className,pt=(0,ue.Z)(me,D),gt=x.className,at=(0,ue.Z)(x,Y);return A.createElement(Q.Provider,{value:null},A.createElement(S,(0,O.Z)({ref:Z,className:w()(et,gt)},pt,at)))},xe=A.forwardRef(j);xe.displayName="RawItem";var Ce=xe,Se=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ge="responsive",de="invalidate";function W(y){return"+ ".concat(y.length," ...")}function be(y,x){var Z=y.prefixCls,me=Z===void 0?"rc-overflow":Z,Ne=y.data,Ue=Ne===void 0?[]:Ne,ze=y.renderItem,et=y.renderRawItem,pt=y.itemKey,gt=y.itemWidth,at=gt===void 0?10:gt,Ot=y.ssr,en=y.style,Rt=y.className,Zt=y.maxCount,ut=y.renderRest,Ct=y.renderRawRest,he=y.suffix,pe=y.component,le=pe===void 0?"div":pe,J=y.itemComponent,Ie=y.onVisibleChange,H=(0,ue.Z)(y,Se),R=Ot==="full",P=$(),fe=G(P,null),oe=(0,ee.Z)(fe,2),te=oe[0],Ae=oe[1],je=te||0,ke=G(P,new Map),Be=(0,ee.Z)(ke,2),qe=Be[0],Qe=Be[1],Ve=G(P,0),xt=(0,ee.Z)(Ve,2),Dt=xt[0],vt=xt[1],Bt=G(P,0),jt=(0,ee.Z)(Bt,2),C=jt[0],B=jt[1],yt=G(P,0),ye=(0,ee.Z)(yt,2),Me=ye[0],Sn=ye[1],it=(0,A.useState)(null),nt=(0,ee.Z)(it,2),rt=nt[0],Ee=nt[1],De=(0,A.useState)(null),Fe=(0,ee.Z)(De,2),tt=Fe[0],_e=Fe[1],Jt=A.useMemo(function(){return tt===null&&R?Number.MAX_SAFE_INTEGER:tt||0},[tt,te]),Ze=(0,A.useState)(!1),xn=(0,ee.Z)(Ze,2),Rn=xn[0],Wn=xn[1],yr="".concat(me,"-item"),vn=Math.max(Dt,C),wn=Zt===ge,Xe=Ue.length&&wn,Lt=Zt===de,Wt=Xe||typeof Zt=="number"&&Ue.length>Zt,Ke=(0,A.useMemo)(function(){var tn=Ue;return Xe?te===null&&R?tn=Ue:tn=Ue.slice(0,Math.min(Ue.length,je/at)):typeof Zt=="number"&&(tn=Ue.slice(0,Zt)),tn},[Ue,at,te,Zt,Xe]),Oe=(0,A.useMemo)(function(){return Xe?Ue.slice(Jt+1):Ue.slice(Ke.length)},[Ue,Ke,Xe,Jt]),_t=(0,A.useCallback)(function(tn,ct){var ht;return typeof pt=="function"?pt(tn):(ht=pt&&(tn==null?void 0:tn[pt]))!==null&&ht!==void 0?ht:ct},[pt]),wt=(0,A.useCallback)(ze||function(tn){return tn},[ze]);function rn(tn,ct,ht){tt===tn&&(ct===void 0||ct===rt)||(_e(tn),ht||(Wn(tn<Ue.length-1),Ie==null||Ie(tn)),ct!==void 0&&Ee(ct))}function Xt(tn,ct){Ae(ct.clientWidth)}function cn(tn,ct){Qe(function(ht){var At=new Map(ht);return ct===null?At.delete(tn):At.set(tn,ct),At})}function nn(tn,ct){B(ct),vt(C)}function pn(tn,ct){Sn(ct)}function Ln(tn){return qe.get(_t(Ke[tn],tn))}(0,o.Z)(function(){if(je&&typeof vn=="number"&&Ke){var tn=Me,ct=Ke.length,ht=ct-1;if(!ct){rn(0,null);return}for(var At=0;At<ct;At+=1){var Ft=Ln(At);if(R&&(Ft=Ft||0),Ft===void 0){rn(At-1,void 0,!0);break}if(tn+=Ft,ht===0&&tn<=je||At===ht-1&&tn+Ln(ht)<=je){rn(ht,null);break}else if(tn+vn>je){rn(At-1,tn-Ft-Me+C);break}}he&&Ln(0)+Me>je&&Ee(null)}},[je,qe,C,Me,_t,Ke]);var Kt=Rn&&!!Oe.length,zt={};rt!==null&&Xe&&(zt={position:"absolute",left:rt,top:0});var ln={prefixCls:yr,responsive:Xe,component:J,invalidate:Lt},sn=et?function(tn,ct){var ht=_t(tn,ct);return A.createElement(Q.Provider,{key:ht,value:(0,U.Z)((0,U.Z)({},ln),{},{order:ct,item:tn,itemKey:ht,registerSize:cn,display:ct<=Jt})},et(tn,ct))}:function(tn,ct){var ht=_t(tn,ct);return A.createElement(S,(0,O.Z)({},ln,{order:ct,key:ht,item:tn,renderItem:wt,itemKey:ht,registerSize:cn,display:ct<=Jt}))},mn={order:Kt?Jt:Number.MAX_SAFE_INTEGER,className:"".concat(yr,"-rest"),registerSize:nn,display:Kt},un=ut||W,ar=Ct?A.createElement(Q.Provider,{value:(0,U.Z)((0,U.Z)({},ln),mn)},Ct(Oe)):A.createElement(S,(0,O.Z)({},ln,mn),typeof un=="function"?un(Oe):un),On=A.createElement(le,(0,O.Z)({className:w()(!Lt&&me,Rt),style:en,ref:x},H),Ke.map(sn),Wt?ar:null,he&&A.createElement(S,(0,O.Z)({},ln,{responsive:wn,responsiveDisabled:!Xe,order:Jt,className:"".concat(yr,"-suffix"),registerSize:pn,display:!0,style:zt}),he));return wn?A.createElement(ne.Z,{onResize:Xt,disabled:!Xe},On):On}var F=A.forwardRef(be);F.displayName="Overflow",F.Item=Ce,F.RESPONSIVE=ge,F.INVALIDATE=de;var ce=F,q=ce},29301:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return de}});var O=p(72308),U=p(59301),ee=p(11592),ue=p(48736),A=p(77321),m=p(62853),w=p(76846),ne=p(8654),o=U.createContext(null);function I(W){var be=W.children,F=W.onBatchResize,ce=U.useRef(0),q=U.useRef([]),y=U.useContext(o),x=U.useCallback(function(Z,me,Ne){ce.current+=1;var Ue=ce.current;q.current.push({size:Z,element:me,data:Ne}),Promise.resolve().then(function(){Ue===ce.current&&(F==null||F(q.current),q.current=[])}),y==null||y(Z,me,Ne)},[F,y]);return U.createElement(o.Provider,{value:x},be)}var k=p(76374),g=new Map;function _(W){W.forEach(function(be){var F,ce=be.target;(F=g.get(ce))===null||F===void 0||F.forEach(function(q){return q(ce)})})}var S=new k.Z(_),T=null,N=null;function ie(W,be){g.has(W)||(g.set(W,new Set),S.observe(W)),g.get(W).add(be)}function z(W,be){g.has(W)&&(g.get(W).delete(be),g.get(W).size||(S.unobserve(W),g.delete(W)))}var $=p(96949),G=p(55090),Q=p(77205),L=p(38793),D=function(W){(0,Q.Z)(F,W);var be=(0,L.Z)(F);function F(){return(0,$.Z)(this,F),be.apply(this,arguments)}return(0,G.Z)(F,[{key:"render",value:function(){return this.props.children}}]),F}(U.Component);function Y(W,be){var F=W.children,ce=W.disabled,q=U.useRef(null),y=U.useRef(null),x=U.useContext(o),Z=typeof F=="function",me=Z?F(q):F,Ne=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ue=!Z&&U.isValidElement(me)&&(0,ne.Yr)(me),ze=Ue?(0,ne.C4)(me):null,et=(0,ne.x1)(ze,q),pt=function(){var en;return(0,w.ZP)(q.current)||(q.current&&(0,m.Z)(q.current)==="object"?(0,w.ZP)((en=q.current)===null||en===void 0?void 0:en.nativeElement):null)||(0,w.ZP)(y.current)};U.useImperativeHandle(be,function(){return pt()});var gt=U.useRef(W);gt.current=W;var at=U.useCallback(function(Ot){var en=gt.current,Rt=en.onResize,Zt=en.data,ut=Ot.getBoundingClientRect(),Ct=ut.width,he=ut.height,pe=Ot.offsetWidth,le=Ot.offsetHeight,J=Math.floor(Ct),Ie=Math.floor(he);if(Ne.current.width!==J||Ne.current.height!==Ie||Ne.current.offsetWidth!==pe||Ne.current.offsetHeight!==le){var H={width:J,height:Ie,offsetWidth:pe,offsetHeight:le};Ne.current=H;var R=pe===Math.round(Ct)?Ct:pe,P=le===Math.round(he)?he:le,fe=(0,A.Z)((0,A.Z)({},H),{},{offsetWidth:R,offsetHeight:P});x==null||x(fe,Ot,Zt),Rt&&Promise.resolve().then(function(){Rt(fe,Ot)})}},[]);return U.useEffect(function(){var Ot=pt();return Ot&&!ce&&ie(Ot,at),function(){return z(Ot,at)}},[q.current,ce]),U.createElement(D,{ref:y},Ue?U.cloneElement(me,{ref:et}):me)}var j=U.forwardRef(Y),xe=j,Ce="rc-observer-key";function Se(W,be){var F=W.children,ce=typeof F=="function"?[F]:(0,ee.Z)(F);return ce.map(function(q,y){var x=(q==null?void 0:q.key)||"".concat(Ce,"-").concat(y);return U.createElement(xe,(0,O.Z)({},W,{key:x,ref:y===0?be:void 0}),q)})}var ge=U.forwardRef(Se);ge.Collection=I;var de=ge},17115:function(Qt,He,p){"use strict";p.d(He,{ZP:function(){return w}});var O=p(52487),U=p(59301),ee=p(47273),ue=0,A=(0,ee.Z)();function m(){var ne;return A?(ne=ue,ue+=1):ne="TEST_OR_SSR",ne}function w(ne){var o=U.useState(),I=(0,O.Z)(o,2),k=I[0],g=I[1];return U.useEffect(function(){g("rc_select_".concat(m()))},[]),ne||k}},77861:function(Qt,He,p){"use strict";p.d(He,{Ac:function(){return Ae},Xo:function(){return B},Wx:function(){return ye},ZP:function(){return Wt},lk:function(){return Q}});var O=p(72308),U=p(80702),ee=p(49618),ue=p(77321),A=p(52487),m=p(74416),w=p(62853),ne=p(18929),o=p(48736),I=p(59301),k=p(92310),g=p.n(k),_=p(34280),S=p(49658),T=p(10228),N=p(8654),ie=function(Oe){var _t=Oe.className,wt=Oe.customizeIcon,rn=Oe.customizeIconProps,Xt=Oe.onMouseDown,cn=Oe.onClick,nn=Oe.children,pn;return typeof wt=="function"?pn=wt(rn):pn=wt,I.createElement("span",{className:_t,onMouseDown:function(Kt){Kt.preventDefault(),Xt&&Xt(Kt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:cn,"aria-hidden":!0},pn!==void 0?pn:I.createElement("span",{className:g()(_t.split(/\s+/).map(function(Ln){return"".concat(Ln,"-icon")}))},nn))},z=ie;function $(Ke,Oe,_t,wt,rn){var Xt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,cn=arguments.length>6?arguments[6]:void 0,nn=arguments.length>7?arguments[7]:void 0,pn=I.useMemo(function(){if((0,w.Z)(wt)==="object")return wt.clearIcon;if(rn)return rn},[wt,rn]),Ln=I.useMemo(function(){return!!(!Xt&&wt&&(_t.length||cn)&&!(nn==="combobox"&&cn===""))},[wt,Xt,_t.length,cn,nn]);return{allowClear:Ln,clearIcon:I.createElement(z,{className:"".concat(Ke,"-clear"),onMouseDown:Oe,customizeIcon:pn},"\xD7")}}var G=I.createContext(null);function Q(){return I.useContext(G)}function L(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Oe=I.useState(!1),_t=(0,A.Z)(Oe,2),wt=_t[0],rn=_t[1],Xt=I.useRef(null),cn=function(){window.clearTimeout(Xt.current)};I.useEffect(function(){return cn},[]);var nn=function(Ln,Kt){cn(),Xt.current=window.setTimeout(function(){rn(Ln),Kt&&Kt()},Ke)};return[wt,nn,cn]}function D(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Oe=I.useRef(null),_t=I.useRef(null);I.useEffect(function(){return function(){window.clearTimeout(_t.current)}},[]);function wt(rn){(rn||Oe.current===null)&&(Oe.current=rn),window.clearTimeout(_t.current),_t.current=window.setTimeout(function(){Oe.current=null},Ke)}return[function(){return Oe.current},wt]}function Y(Ke,Oe,_t,wt){var rn=I.useRef(null);rn.current={open:Oe,triggerOpen:_t,customizedTrigger:wt},I.useEffect(function(){function Xt(cn){var nn;if(!((nn=rn.current)!==null&&nn!==void 0&&nn.customizedTrigger)){var pn=cn.target;pn.shadowRoot&&cn.composed&&(pn=cn.composedPath()[0]||pn),rn.current.open&&Ke().filter(function(Ln){return Ln}).every(function(Ln){return!Ln.contains(pn)&&Ln!==pn})&&rn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Xt),function(){return window.removeEventListener("mousedown",Xt)}},[])}var j=p(26112),xe=p(11780),Ce=function(Oe,_t){var wt,rn,Xt=Oe.prefixCls,cn=Oe.id,nn=Oe.inputElement,pn=Oe.disabled,Ln=Oe.tabIndex,Kt=Oe.autoFocus,zt=Oe.autoComplete,ln=Oe.editable,sn=Oe.activeDescendantId,mn=Oe.value,un=Oe.maxLength,ar=Oe.onKeyDown,On=Oe.onMouseDown,tn=Oe.onChange,ct=Oe.onPaste,ht=Oe.onCompositionStart,At=Oe.onCompositionEnd,Ft=Oe.open,Pt=Oe.attrs,Yt=nn||I.createElement("input",null),Mt=Yt,gn=Mt.ref,An=Mt.props,Dn=An.onKeyDown,Xn=An.onChange,nr=An.onMouseDown,dr=An.onCompositionStart,En=An.onCompositionEnd,Cn=An.style;return(0,o.Kp)(!("maxLength"in Yt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Yt=I.cloneElement(Yt,(0,ue.Z)((0,ue.Z)((0,ue.Z)({type:"search"},An),{},{id:cn,ref:(0,N.sQ)(_t,gn),disabled:pn,tabIndex:Ln,autoComplete:zt||"off",autoFocus:Kt,className:g()("".concat(Xt,"-selection-search-input"),(wt=Yt)===null||wt===void 0||(rn=wt.props)===null||rn===void 0?void 0:rn.className),role:"combobox","aria-label":"Search","aria-expanded":Ft||!1,"aria-haspopup":"listbox","aria-owns":"".concat(cn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(cn,"_list"),"aria-activedescendant":Ft?sn:void 0},Pt),{},{value:ln?mn:"",maxLength:un,readOnly:!ln,unselectable:ln?null:"on",style:(0,ue.Z)((0,ue.Z)({},Cn),{},{opacity:ln?null:0}),onKeyDown:function(mr){ar(mr),Dn&&Dn(mr)},onMouseDown:function(mr){On(mr),nr&&nr(mr)},onChange:function(mr){tn(mr),Xn&&Xn(mr)},onCompositionStart:function(mr){ht(mr),dr&&dr(mr)},onCompositionEnd:function(mr){At(mr),En&&En(mr)},onPaste:ct})),Yt},Se=I.forwardRef(Ce);Se.displayName="Input";var ge=Se;function de(Ke){return Array.isArray(Ke)?Ke:Ke!==void 0?[Ke]:[]}var W=typeof window!="undefined"&&window.document&&window.document.documentElement,be=W;function F(Ke){return Ke!=null}function ce(Ke){return!Ke&&Ke!==0}function q(Ke){return["string","number"].includes((0,w.Z)(Ke))}function y(Ke){var Oe=void 0;return Ke&&(q(Ke.title)?Oe=Ke.title.toString():q(Ke.label)&&(Oe=Ke.label.toString())),Oe}function x(Ke,Oe){be?I.useLayoutEffect(Ke,Oe):I.useEffect(Ke,Oe)}function Z(Ke){var Oe;return(Oe=Ke.key)!==null&&Oe!==void 0?Oe:Ke.value}var me=function(Oe){Oe.preventDefault(),Oe.stopPropagation()},Ne=function(Oe){var _t=Oe.id,wt=Oe.prefixCls,rn=Oe.values,Xt=Oe.open,cn=Oe.searchValue,nn=Oe.autoClearSearchValue,pn=Oe.inputRef,Ln=Oe.placeholder,Kt=Oe.disabled,zt=Oe.mode,ln=Oe.showSearch,sn=Oe.autoFocus,mn=Oe.autoComplete,un=Oe.activeDescendantId,ar=Oe.tabIndex,On=Oe.removeIcon,tn=Oe.maxTagCount,ct=Oe.maxTagTextLength,ht=Oe.maxTagPlaceholder,At=ht===void 0?function(Lr){return"+ ".concat(Lr.length," ...")}:ht,Ft=Oe.tagRender,Pt=Oe.onToggleOpen,Yt=Oe.onRemove,Mt=Oe.onInputChange,gn=Oe.onInputPaste,An=Oe.onInputKeyDown,Dn=Oe.onInputMouseDown,Xn=Oe.onInputCompositionStart,nr=Oe.onInputCompositionEnd,dr=I.useRef(null),En=(0,I.useState)(0),Cn=(0,A.Z)(En,2),pr=Cn[0],mr=Cn[1],Ir=(0,I.useState)(!1),rr=(0,A.Z)(Ir,2),ir=rr[0],Cr=rr[1],tr="".concat(wt,"-selection"),Pr=Xt||zt==="multiple"&&nn===!1||zt==="tags"?cn:"",ei=zt==="tags"||zt==="multiple"&&nn===!1||ln&&(Xt||ir);x(function(){mr(dr.current.scrollWidth)},[Pr]);function Qn(Lr,Ur,Vr,fr,Yr){return I.createElement("span",{className:g()("".concat(tr,"-item"),(0,ee.Z)({},"".concat(tr,"-item-disabled"),Vr)),title:y(Lr)},I.createElement("span",{className:"".concat(tr,"-item-content")},Ur),fr&&I.createElement(z,{className:"".concat(tr,"-item-remove"),onMouseDown:me,onClick:Yr,customizeIcon:On},"\xD7"))}function zn(Lr,Ur,Vr,fr,Yr){var Un=function(Er){me(Er),Pt(!Xt)};return I.createElement("span",{onMouseDown:Un},Ft({label:Ur,value:Lr,disabled:Vr,closable:fr,onClose:Yr}))}function dt(Lr){var Ur=Lr.disabled,Vr=Lr.label,fr=Lr.value,Yr=!Kt&&!Ur,Un=Vr;if(typeof ct=="number"&&(typeof Vr=="string"||typeof Vr=="number")){var Pn=String(Un);Pn.length>ct&&(Un="".concat(Pn.slice(0,ct),"..."))}var Er=function(ti){ti&&ti.stopPropagation(),Yt(Lr)};return typeof Ft=="function"?zn(fr,Un,Ur,Yr,Er):Qn(Lr,Un,Ur,Yr,Er)}function Bn(Lr){var Ur=typeof At=="function"?At(Lr):At;return Qn({title:Ur},Ur,!1)}var or=I.createElement("div",{className:"".concat(tr,"-search"),style:{width:pr},onFocus:function(){Cr(!0)},onBlur:function(){Cr(!1)}},I.createElement(ge,{ref:pn,open:Xt,prefixCls:wt,id:_t,inputElement:null,disabled:Kt,autoFocus:sn,autoComplete:mn,editable:ei,activeDescendantId:un,value:Pr,onKeyDown:An,onMouseDown:Dn,onChange:Mt,onPaste:gn,onCompositionStart:Xn,onCompositionEnd:nr,tabIndex:ar,attrs:(0,j.Z)(Oe,!0)}),I.createElement("span",{ref:dr,className:"".concat(tr,"-search-mirror"),"aria-hidden":!0},Pr,"\xA0")),qn=I.createElement(xe.Z,{prefixCls:"".concat(tr,"-overflow"),data:rn,renderItem:dt,renderRest:Bn,suffix:or,itemKey:Z,maxCount:tn});return I.createElement(I.Fragment,null,qn,!rn.length&&!Pr&&I.createElement("span",{className:"".concat(tr,"-placeholder")},Ln))},Ue=Ne,ze=function(Oe){var _t=Oe.inputElement,wt=Oe.prefixCls,rn=Oe.id,Xt=Oe.inputRef,cn=Oe.disabled,nn=Oe.autoFocus,pn=Oe.autoComplete,Ln=Oe.activeDescendantId,Kt=Oe.mode,zt=Oe.open,ln=Oe.values,sn=Oe.placeholder,mn=Oe.tabIndex,un=Oe.showSearch,ar=Oe.searchValue,On=Oe.activeValue,tn=Oe.maxLength,ct=Oe.onInputKeyDown,ht=Oe.onInputMouseDown,At=Oe.onInputChange,Ft=Oe.onInputPaste,Pt=Oe.onInputCompositionStart,Yt=Oe.onInputCompositionEnd,Mt=Oe.title,gn=I.useState(!1),An=(0,A.Z)(gn,2),Dn=An[0],Xn=An[1],nr=Kt==="combobox",dr=nr||un,En=ln[0],Cn=ar||"";nr&&On&&!Dn&&(Cn=On),I.useEffect(function(){nr&&Xn(!1)},[nr,On]);var pr=Kt!=="combobox"&&!zt&&!un?!1:!!Cn,mr=Mt===void 0?y(En):Mt,Ir=function(){if(En)return null;var ir=pr?{visibility:"hidden"}:void 0;return I.createElement("span",{className:"".concat(wt,"-selection-placeholder"),style:ir},sn)};return I.createElement(I.Fragment,null,I.createElement("span",{className:"".concat(wt,"-selection-search")},I.createElement(ge,{ref:Xt,prefixCls:wt,id:rn,open:zt,inputElement:_t,disabled:cn,autoFocus:nn,autoComplete:pn,editable:dr,activeDescendantId:Ln,value:Cn,onKeyDown:ct,onMouseDown:ht,onChange:function(ir){Xn(!0),At(ir)},onPaste:Ft,onCompositionStart:Pt,onCompositionEnd:Yt,tabIndex:mn,attrs:(0,j.Z)(Oe,!0),maxLength:nr?tn:void 0})),!nr&&En?I.createElement("span",{className:"".concat(wt,"-selection-item"),title:mr,style:pr?{visibility:"hidden"}:void 0},En.label):null,Ir())},et=ze;function pt(Ke){return![T.Z.ESC,T.Z.SHIFT,T.Z.BACKSPACE,T.Z.TAB,T.Z.WIN_KEY,T.Z.ALT,T.Z.META,T.Z.WIN_KEY_RIGHT,T.Z.CTRL,T.Z.SEMICOLON,T.Z.EQUALS,T.Z.CAPS_LOCK,T.Z.CONTEXT_MENU,T.Z.F1,T.Z.F2,T.Z.F3,T.Z.F4,T.Z.F5,T.Z.F6,T.Z.F7,T.Z.F8,T.Z.F9,T.Z.F10,T.Z.F11,T.Z.F12].includes(Ke)}var gt=function(Oe,_t){var wt=(0,I.useRef)(null),rn=(0,I.useRef)(!1),Xt=Oe.prefixCls,cn=Oe.open,nn=Oe.mode,pn=Oe.showSearch,Ln=Oe.tokenWithEnter,Kt=Oe.autoClearSearchValue,zt=Oe.onSearch,ln=Oe.onSearchSubmit,sn=Oe.onToggleOpen,mn=Oe.onInputKeyDown,un=Oe.domRef;I.useImperativeHandle(_t,function(){return{focus:function(){wt.current.focus()},blur:function(){wt.current.blur()}}});var ar=D(0),On=(0,A.Z)(ar,2),tn=On[0],ct=On[1],ht=function(Cn){var pr=Cn.which;(pr===T.Z.UP||pr===T.Z.DOWN)&&Cn.preventDefault(),mn&&mn(Cn),pr===T.Z.ENTER&&nn==="tags"&&!rn.current&&!cn&&(ln==null||ln(Cn.target.value)),pt(pr)&&sn(!0)},At=function(){ct(!0)},Ft=(0,I.useRef)(null),Pt=function(Cn){zt(Cn,!0,rn.current)!==!1&&sn(!0)},Yt=function(){rn.current=!0},Mt=function(Cn){rn.current=!1,nn!=="combobox"&&Pt(Cn.target.value)},gn=function(Cn){var pr=Cn.target.value;if(Ln&&Ft.current&&/[\r\n]/.test(Ft.current)){var mr=Ft.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");pr=pr.replace(mr,Ft.current)}Ft.current=null,Pt(pr)},An=function(Cn){var pr=Cn.clipboardData,mr=pr.getData("text");Ft.current=mr},Dn=function(Cn){var pr=Cn.target;if(pr!==wt.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){wt.current.focus()}):wt.current.focus()}},Xn=function(Cn){var pr=tn();Cn.target!==wt.current&&!pr&&nn!=="combobox"&&Cn.preventDefault(),(nn!=="combobox"&&(!pn||!pr)||!cn)&&(cn&&Kt!==!1&&zt("",!0,!1),sn())},nr={inputRef:wt,onInputKeyDown:ht,onInputMouseDown:At,onInputChange:gn,onInputPaste:An,onInputCompositionStart:Yt,onInputCompositionEnd:Mt},dr=nn==="multiple"||nn==="tags"?I.createElement(Ue,(0,O.Z)({},Oe,nr)):I.createElement(et,(0,O.Z)({},Oe,nr));return I.createElement("div",{ref:un,className:"".concat(Xt,"-selector"),onClick:Dn,onMouseDown:Xn},dr)},at=I.forwardRef(gt);at.displayName="Selector";var Ot=at,en=p(35593),Rt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Zt=function(Oe){var _t=Oe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:_t,adjustY:1},htmlRegion:"scroll"}}},ut=function(Oe,_t){var wt=Oe.prefixCls,rn=Oe.disabled,Xt=Oe.visible,cn=Oe.children,nn=Oe.popupElement,pn=Oe.animation,Ln=Oe.transitionName,Kt=Oe.dropdownStyle,zt=Oe.dropdownClassName,ln=Oe.direction,sn=ln===void 0?"ltr":ln,mn=Oe.placement,un=Oe.builtinPlacements,ar=Oe.dropdownMatchSelectWidth,On=Oe.dropdownRender,tn=Oe.dropdownAlign,ct=Oe.getPopupContainer,ht=Oe.empty,At=Oe.getTriggerDOMNode,Ft=Oe.onPopupVisibleChange,Pt=Oe.onPopupMouseEnter,Yt=(0,m.Z)(Oe,Rt),Mt="".concat(wt,"-dropdown"),gn=nn;On&&(gn=On(nn));var An=I.useMemo(function(){return un||Zt(ar)},[un,ar]),Dn=pn?"".concat(Mt,"-").concat(pn):Ln,Xn=typeof ar=="number",nr=I.useMemo(function(){return Xn?null:ar===!1?"minWidth":"width"},[ar,Xn]),dr=Kt;Xn&&(dr=(0,ue.Z)((0,ue.Z)({},dr),{},{width:ar}));var En=I.useRef(null);return I.useImperativeHandle(_t,function(){return{getPopupElement:function(){return En.current}}}),I.createElement(en.Z,(0,O.Z)({},Yt,{showAction:Ft?["click"]:[],hideAction:Ft?["click"]:[],popupPlacement:mn||(sn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:An,prefixCls:Mt,popupTransitionName:Dn,popup:I.createElement("div",{ref:En,onMouseEnter:Pt},gn),stretch:nr,popupAlign:tn,popupVisible:Xt,getPopupContainer:ct,popupClassName:g()(zt,(0,ee.Z)({},"".concat(Mt,"-empty"),ht)),popupStyle:dr,getTriggerDOMNode:At,onPopupVisibleChange:Ft}),cn)},Ct=I.forwardRef(ut);Ct.displayName="SelectTrigger";var he=Ct,pe=p(68413);function le(Ke,Oe){var _t=Ke.key,wt;return"value"in Ke&&(wt=Ke.value),_t!=null?_t:wt!==void 0?wt:"rc-index-key-".concat(Oe)}function J(Ke,Oe){var _t=Ke||{},wt=_t.label,rn=_t.value,Xt=_t.options,cn=_t.groupLabel,nn=wt||(Oe?"children":"label");return{label:nn,value:rn||"value",options:Xt||"options",groupLabel:cn||nn}}function Ie(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_t=Oe.fieldNames,wt=Oe.childrenAsData,rn=[],Xt=J(_t,!1),cn=Xt.label,nn=Xt.value,pn=Xt.options,Ln=Xt.groupLabel;function Kt(zt,ln){zt.forEach(function(sn){if(ln||!(pn in sn)){var mn=sn[nn];rn.push({key:le(sn,rn.length),groupOption:ln,data:sn,label:sn[cn],value:mn})}else{var un=sn[Ln];un===void 0&&wt&&(un=sn.label),rn.push({key:le(sn,rn.length),group:!0,data:sn,label:un}),Kt(sn[pn],!0)}})}return Kt(Ke,!1),rn}function H(Ke){var Oe=(0,ue.Z)({},Ke);return"props"in Oe||Object.defineProperty(Oe,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Oe}}),Oe}function R(Ke,Oe){if(!Oe||!Oe.length)return null;var _t=!1;function wt(Xt,cn){var nn=(0,pe.Z)(cn),pn=nn[0],Ln=nn.slice(1);if(!pn)return[Xt];var Kt=Xt.split(pn);return _t=_t||Kt.length>1,Kt.reduce(function(zt,ln){return[].concat((0,U.Z)(zt),(0,U.Z)(wt(ln,Ln)))},[]).filter(function(zt){return zt})}var rn=wt(Ke,Oe);return _t?rn:null}var P=["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"],fe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function oe(Ke){return Ke==="tags"||Ke==="multiple"}var te=I.forwardRef(function(Ke,Oe){var _t,wt,rn=Ke.id,Xt=Ke.prefixCls,cn=Ke.className,nn=Ke.showSearch,pn=Ke.tagRender,Ln=Ke.direction,Kt=Ke.omitDomProps,zt=Ke.displayValues,ln=Ke.onDisplayValuesChange,sn=Ke.emptyOptions,mn=Ke.notFoundContent,un=mn===void 0?"Not Found":mn,ar=Ke.onClear,On=Ke.mode,tn=Ke.disabled,ct=Ke.loading,ht=Ke.getInputElement,At=Ke.getRawInputElement,Ft=Ke.open,Pt=Ke.defaultOpen,Yt=Ke.onDropdownVisibleChange,Mt=Ke.activeValue,gn=Ke.onActiveValueChange,An=Ke.activeDescendantId,Dn=Ke.searchValue,Xn=Ke.autoClearSearchValue,nr=Ke.onSearch,dr=Ke.onSearchSplit,En=Ke.tokenSeparators,Cn=Ke.allowClear,pr=Ke.suffixIcon,mr=Ke.clearIcon,Ir=Ke.OptionList,rr=Ke.animation,ir=Ke.transitionName,Cr=Ke.dropdownStyle,tr=Ke.dropdownClassName,Pr=Ke.dropdownMatchSelectWidth,ei=Ke.dropdownRender,Qn=Ke.dropdownAlign,zn=Ke.placement,dt=Ke.builtinPlacements,Bn=Ke.getPopupContainer,or=Ke.showAction,qn=or===void 0?[]:or,Lr=Ke.onFocus,Ur=Ke.onBlur,Vr=Ke.onKeyUp,fr=Ke.onKeyDown,Yr=Ke.onMouseDown,Un=(0,m.Z)(Ke,P),Pn=oe(On),Er=(nn!==void 0?nn:Pn)||On==="combobox",Mr=(0,ue.Z)({},Un);fe.forEach(function(li){delete Mr[li]}),Kt==null||Kt.forEach(function(li){delete Mr[li]});var ti=I.useState(!1),Ri=(0,A.Z)(ti,2),Hn=Ri[0],ri=Ri[1];I.useEffect(function(){ri((0,S.Z)())},[]);var Xr=I.useRef(null),di=I.useRef(null),Mi=I.useRef(null),bi=I.useRef(null),ii=I.useRef(null),Ti=L(),oi=(0,A.Z)(Ti,3),$i=oi[0],Tr=oi[1],Yi=oi[2];I.useImperativeHandle(Oe,function(){var li,Qr;return{focus:(li=bi.current)===null||li===void 0?void 0:li.focus,blur:(Qr=bi.current)===null||Qr===void 0?void 0:Qr.blur,scrollTo:function(ji){var vi;return(vi=ii.current)===null||vi===void 0?void 0:vi.scrollTo(ji)}}});var Ki=I.useMemo(function(){var li;if(On!=="combobox")return Dn;var Qr=(li=zt[0])===null||li===void 0?void 0:li.value;return typeof Qr=="string"||typeof Qr=="number"?String(Qr):""},[Dn,On,zt]),Xi=On==="combobox"&&typeof ht=="function"&&ht()||null,Gr=typeof At=="function"&&At(),cs=(0,N.x1)(di,Gr==null||(_t=Gr.props)===null||_t===void 0?void 0:_t.ref),ms=I.useState(!1),us=(0,A.Z)(ms,2),Fr=us[0],ds=us[1];(0,_.Z)(function(){ds(!0)},[]);var Cs=(0,ne.Z)(!1,{defaultValue:Pt,value:Ft}),Nn=(0,A.Z)(Cs,2),Bi=Nn[0],is=Nn[1],gr=Fr?Bi:!1,xr=!un&&sn;(tn||xr&&gr&&On==="combobox")&&(gr=!1);var lr=xr?!1:gr,Vn=I.useCallback(function(li){var Qr=li!==void 0?li:!gr;tn||(is(Qr),gr!==Qr&&(Yt==null||Yt(Qr)))},[tn,gr,is,Yt]),Kr=I.useMemo(function(){return(En||[]).some(function(li){return[`
|
|
|
`,`\r
|
|
|
`].includes(li)})},[En]),si=function(Qr,ss,ji){var vi=!0,os=Qr;gn==null||gn(null);var ls=ji?null:R(Qr,En);return On!=="combobox"&&ls&&(os="",dr==null||dr(ls),Vn(!1),vi=!1),nr&&Ki!==os&&nr(os,{source:ss?"typing":"effect"}),vi},Hi=function(Qr){!Qr||!Qr.trim()||nr(Qr,{source:"submit"})};I.useEffect(function(){!gr&&!Pn&&On!=="combobox"&&si("",!1,!1)},[gr]),I.useEffect(function(){Bi&&tn&&is(!1),tn&&Tr(!1)},[tn]);var Pi=D(),Ai=(0,A.Z)(Pi,2),$r=Ai[0],Ni=Ai[1],Ts=function(Qr){var ss=$r(),ji=Qr.which;if(ji===T.Z.ENTER&&(On!=="combobox"&&Qr.preventDefault(),gr||Vn(!0)),Ni(!!Ki),ji===T.Z.BACKSPACE&&!ss&&Pn&&!Ki&&zt.length){for(var vi=(0,U.Z)(zt),os=null,ls=vi.length-1;ls>=0;ls-=1){var Is=vi[ls];if(!Is.disabled){vi.splice(ls,1),os=Is;break}}os&&ln(vi,{type:"remove",values:[os]})}for(var Ss=arguments.length,Js=new Array(Ss>1?Ss-1:0),Fs=1;Fs<Ss;Fs++)Js[Fs-1]=arguments[Fs];if(gr&&ii.current){var ba;(ba=ii.current).onKeyDown.apply(ba,[Qr].concat(Js))}fr==null||fr.apply(void 0,[Qr].concat(Js))},Ns=function(Qr){for(var ss=arguments.length,ji=new Array(ss>1?ss-1:0),vi=1;vi<ss;vi++)ji[vi-1]=arguments[vi];if(gr&&ii.current){var os;(os=ii.current).onKeyUp.apply(os,[Qr].concat(ji))}Vr==null||Vr.apply(void 0,[Qr].concat(ji))},fs=function(Qr){var ss=zt.filter(function(ji){return ji!==Qr});ln(ss,{type:"remove",values:[Qr]})},as=I.useRef(!1),sr=function(){Tr(!0),tn||(Lr&&!as.current&&Lr.apply(void 0,arguments),qn.includes("focus")&&Vn(!0)),as.current=!0},Or=function(){Tr(!1,function(){as.current=!1,Vn(!1)}),!tn&&(Ki&&(On==="tags"?nr(Ki,{source:"submit"}):On==="multiple"&&nr("",{source:"blur"})),Ur&&Ur.apply(void 0,arguments))},_i=[];I.useEffect(function(){return function(){_i.forEach(function(li){return clearTimeout(li)}),_i.splice(0,_i.length)}},[]);var Zi=function(Qr){var ss,ji=Qr.target,vi=(ss=Mi.current)===null||ss===void 0?void 0:ss.getPopupElement();if(vi&&vi.contains(ji)){var os=setTimeout(function(){var Js=_i.indexOf(os);if(Js!==-1&&_i.splice(Js,1),Yi(),!Hn&&!vi.contains(document.activeElement)){var Fs;(Fs=bi.current)===null||Fs===void 0||Fs.focus()}});_i.push(os)}for(var ls=arguments.length,Is=new Array(ls>1?ls-1:0),Ss=1;Ss<ls;Ss++)Is[Ss-1]=arguments[Ss];Yr==null||Yr.apply(void 0,[Qr].concat(Is))},gi=I.useState({}),gs=(0,A.Z)(gi,2),As=gs[1];function Hs(){As({})}var vs;Gr&&(vs=function(Qr){Vn(Qr)}),Y(function(){var li;return[Xr.current,(li=Mi.current)===null||li===void 0?void 0:li.getPopupElement()]},lr,Vn,!!Gr);var oa=I.useMemo(function(){return(0,ue.Z)((0,ue.Z)({},Ke),{},{notFoundContent:un,open:gr,triggerOpen:lr,id:rn,showSearch:Er,multiple:Pn,toggleOpen:Vn})},[Ke,un,lr,gr,rn,Er,Pn,Vn]),ya=!!pr||ct,Ys;ya&&(Ys=I.createElement(z,{className:g()("".concat(Xt,"-arrow"),(0,ee.Z)({},"".concat(Xt,"-arrow-loading"),ct)),customizeIcon:pr,customizeIconProps:{loading:ct,searchValue:Ki,open:gr,focused:$i,showSearch:Er}}));var la=function(){var Qr;ar==null||ar(),(Qr=bi.current)===null||Qr===void 0||Qr.focus(),ln([],{type:"clear",values:zt}),si("",!1,!1)},xs=$(Xt,la,zt,Cn,mr,tn,Ki,On),Es=xs.allowClear,Ds=xs.clearIcon,ua=I.createElement(Ir,{ref:ii}),Xs=g()(Xt,cn,(wt={},(0,ee.Z)(wt,"".concat(Xt,"-focused"),$i),(0,ee.Z)(wt,"".concat(Xt,"-multiple"),Pn),(0,ee.Z)(wt,"".concat(Xt,"-single"),!Pn),(0,ee.Z)(wt,"".concat(Xt,"-allow-clear"),Cn),(0,ee.Z)(wt,"".concat(Xt,"-show-arrow"),ya),(0,ee.Z)(wt,"".concat(Xt,"-disabled"),tn),(0,ee.Z)(wt,"".concat(Xt,"-loading"),ct),(0,ee.Z)(wt,"".concat(Xt,"-open"),gr),(0,ee.Z)(wt,"".concat(Xt,"-customize-input"),Xi),(0,ee.Z)(wt,"".concat(Xt,"-show-search"),Er),wt)),Qs=I.createElement(he,{ref:Mi,disabled:tn,prefixCls:Xt,visible:lr,popupElement:ua,animation:rr,transitionName:ir,dropdownStyle:Cr,dropdownClassName:tr,direction:Ln,dropdownMatchSelectWidth:Pr,dropdownRender:ei,dropdownAlign:Qn,placement:zn,builtinPlacements:dt,getPopupContainer:Bn,empty:sn,getTriggerDOMNode:function(){return di.current},onPopupVisibleChange:vs,onPopupMouseEnter:Hs},Gr?I.cloneElement(Gr,{ref:cs}):I.createElement(Ot,(0,O.Z)({},Ke,{domRef:di,prefixCls:Xt,inputElement:Xi,ref:bi,id:rn,showSearch:Er,autoClearSearchValue:Xn,mode:On,activeDescendantId:An,tagRender:pn,values:zt,open:gr,onToggleOpen:Vn,activeValue:Mt,searchValue:Ki,onSearch:si,onSearchSubmit:Hi,onRemove:fs,tokenWithEnter:Kr}))),Us;return Gr?Us=Qs:Us=I.createElement("div",(0,O.Z)({className:Xs},Mr,{ref:Xr,onMouseDown:Zi,onKeyDown:Ts,onKeyUp:Ns,onFocus:sr,onBlur:Or}),$i&&!gr&&I.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(zt.map(function(li){var Qr=li.label,ss=li.value;return["number","string"].includes((0,w.Z)(Qr))?Qr:ss}).join(", "))),Qs,Ys,Es&&Ds),I.createElement(G.Provider,{value:oa},Us)}),Ae=te,je=function(Ke,Oe){var _t=I.useRef({values:new Map,options:new Map}),wt=I.useMemo(function(){var Xt=_t.current,cn=Xt.values,nn=Xt.options,pn=Ke.map(function(zt){if(zt.label===void 0){var ln;return(0,ue.Z)((0,ue.Z)({},zt),{},{label:(ln=cn.get(zt.value))===null||ln===void 0?void 0:ln.label})}return zt}),Ln=new Map,Kt=new Map;return pn.forEach(function(zt){Ln.set(zt.value,zt),Kt.set(zt.value,Oe.get(zt.value)||nn.get(zt.value))}),_t.current.values=Ln,_t.current.options=Kt,pn},[Ke,Oe]),rn=I.useCallback(function(Xt){return Oe.get(Xt)||_t.current.options.get(Xt)},[Oe]);return[wt,rn]};function ke(Ke,Oe){return de(Ke).join("").toUpperCase().includes(Oe)}var Be=function(Ke,Oe,_t,wt,rn){return I.useMemo(function(){if(!_t||wt===!1)return Ke;var Xt=Oe.options,cn=Oe.label,nn=Oe.value,pn=[],Ln=typeof wt=="function",Kt=_t.toUpperCase(),zt=Ln?wt:function(sn,mn){return rn?ke(mn[rn],Kt):mn[Xt]?ke(mn[cn!=="children"?cn:"label"],Kt):ke(mn[nn],Kt)},ln=Ln?function(sn){return H(sn)}:function(sn){return sn};return Ke.forEach(function(sn){if(sn[Xt]){var mn=zt(_t,ln(sn));if(mn)pn.push(sn);else{var un=sn[Xt].filter(function(ar){return zt(_t,ln(ar))});un.length&&pn.push((0,ue.Z)((0,ue.Z)({},sn),{},(0,ee.Z)({},Xt,un)))}return}zt(_t,ln(sn))&&pn.push(sn)}),pn},[Ke,wt,rn,_t,Oe])},qe=p(17115),Qe=p(11592),Ve=["children","value"],xt=["children"];function Dt(Ke){var Oe=Ke,_t=Oe.key,wt=Oe.props,rn=wt.children,Xt=wt.value,cn=(0,m.Z)(wt,Ve);return(0,ue.Z)({key:_t,value:Xt!==void 0?Xt:_t,children:rn},cn)}function vt(Ke){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qe.Z)(Ke).map(function(_t,wt){if(!I.isValidElement(_t)||!_t.type)return null;var rn=_t,Xt=rn.type.isSelectOptGroup,cn=rn.key,nn=rn.props,pn=nn.children,Ln=(0,m.Z)(nn,xt);return Oe||!Xt?Dt(_t):(0,ue.Z)((0,ue.Z)({key:"__RC_SELECT_GRP__".concat(cn===null?wt:cn,"__"),label:cn},Ln),{},{options:vt(pn)})}).filter(function(_t){return _t})}function Bt(Ke,Oe,_t,wt,rn){return I.useMemo(function(){var Xt=Ke,cn=!Ke;cn&&(Xt=vt(Oe));var nn=new Map,pn=new Map,Ln=function(ln,sn,mn){mn&&typeof mn=="string"&&ln.set(sn[mn],sn)};function Kt(zt){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=0;sn<zt.length;sn+=1){var mn=zt[sn];!mn[_t.options]||ln?(nn.set(mn[_t.value],mn),Ln(pn,mn,_t.label),Ln(pn,mn,wt),Ln(pn,mn,rn)):Kt(mn[_t.options],!0)}}return Kt(Xt),{options:Xt,valueOptions:nn,labelOptions:pn}},[Ke,Oe,_t,wt,rn])}function jt(Ke){var Oe=I.useRef();Oe.current=Ke;var _t=I.useCallback(function(){return Oe.current.apply(Oe,arguments)},[]);return _t}var C=function(){return null};C.isSelectOptGroup=!0;var B=C,yt=function(){return null};yt.isSelectOption=!0;var ye=yt,Me=p(80547),Sn=p(2738),it=p(45680),nt=I.createContext(null),rt=nt;function Ee(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var De=["disabled","title","children","style","className"];function Fe(Ke){return typeof Ke=="string"||typeof Ke=="number"}var tt=function(Oe,_t){var wt=Q(),rn=wt.prefixCls,Xt=wt.id,cn=wt.open,nn=wt.multiple,pn=wt.mode,Ln=wt.searchValue,Kt=wt.toggleOpen,zt=wt.notFoundContent,ln=wt.onPopupScroll,sn=I.useContext(rt),mn=sn.flattenOptions,un=sn.onActiveValue,ar=sn.defaultActiveFirstOption,On=sn.onSelect,tn=sn.menuItemSelectedIcon,ct=sn.rawValues,ht=sn.fieldNames,At=sn.virtual,Ft=sn.direction,Pt=sn.listHeight,Yt=sn.listItemHeight,Mt="".concat(rn,"-item"),gn=(0,Me.Z)(function(){return mn},[cn,mn],function(Qn,zn){return zn[0]&&Qn[1]!==zn[1]}),An=I.useRef(null),Dn=function(zn){zn.preventDefault()},Xn=function(zn){An.current&&An.current.scrollTo(typeof zn=="number"?{index:zn}:zn)},nr=function(zn){for(var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Bn=gn.length,or=0;or<Bn;or+=1){var qn=(zn+or*dt+Bn)%Bn,Lr=gn[qn],Ur=Lr.group,Vr=Lr.data;if(!Ur&&!Vr.disabled)return qn}return-1},dr=I.useState(function(){return nr(0)}),En=(0,A.Z)(dr,2),Cn=En[0],pr=En[1],mr=function(zn){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;pr(zn);var Bn={source:dt?"keyboard":"mouse"},or=gn[zn];if(!or){un(null,-1,Bn);return}un(or.value,zn,Bn)};(0,I.useEffect)(function(){mr(ar!==!1?nr(0):-1)},[gn.length,Ln]);var Ir=I.useCallback(function(Qn){return ct.has(Qn)&&pn!=="combobox"},[pn,(0,U.Z)(ct).toString(),ct.size]);(0,I.useEffect)(function(){var Qn=setTimeout(function(){if(!nn&&cn&&ct.size===1){var dt=Array.from(ct)[0],Bn=gn.findIndex(function(or){var qn=or.data;return qn.value===dt});Bn!==-1&&(mr(Bn),Xn(Bn))}});if(cn){var zn;(zn=An.current)===null||zn===void 0||zn.scrollTo(void 0)}return function(){return clearTimeout(Qn)}},[cn,Ln,mn.length]);var rr=function(zn){zn!==void 0&&On(zn,{selected:!ct.has(zn)}),nn||Kt(!1)};if(I.useImperativeHandle(_t,function(){return{onKeyDown:function(zn){var dt=zn.which,Bn=zn.ctrlKey;switch(dt){case T.Z.N:case T.Z.P:case T.Z.UP:case T.Z.DOWN:{var or=0;if(dt===T.Z.UP?or=-1:dt===T.Z.DOWN?or=1:Ee()&&Bn&&(dt===T.Z.N?or=1:dt===T.Z.P&&(or=-1)),or!==0){var qn=nr(Cn+or,or);Xn(qn),mr(qn,!0)}break}case T.Z.ENTER:{var Lr=gn[Cn];Lr&&!Lr.data.disabled?rr(Lr.value):rr(void 0),cn&&zn.preventDefault();break}case T.Z.ESC:Kt(!1),cn&&zn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(zn){Xn(zn)}}}),gn.length===0)return I.createElement("div",{role:"listbox",id:"".concat(Xt,"_list"),className:"".concat(Mt,"-empty"),onMouseDown:Dn},zt);var ir=Object.keys(ht).map(function(Qn){return ht[Qn]}),Cr=function(zn){return zn.label};function tr(Qn,zn){var dt=Qn.group;return{role:dt?"presentation":"option",id:"".concat(Xt,"_list_").concat(zn)}}var Pr=function(zn){var dt=gn[zn];if(!dt)return null;var Bn=dt.data||{},or=Bn.value,qn=dt.group,Lr=(0,j.Z)(Bn,!0),Ur=Cr(dt);return dt?I.createElement("div",(0,O.Z)({"aria-label":typeof Ur=="string"&&!qn?Ur:null},Lr,{key:zn},tr(dt,zn),{"aria-selected":Ir(or)}),or):null},ei={role:"listbox",id:"".concat(Xt,"_list")};return I.createElement(I.Fragment,null,At&&I.createElement("div",(0,O.Z)({},ei,{style:{height:0,width:0,overflow:"hidden"}}),Pr(Cn-1),Pr(Cn),Pr(Cn+1)),I.createElement(it.Z,{itemKey:"key",ref:An,data:gn,height:Pt,itemHeight:Yt,fullHeight:!1,onMouseDown:Dn,onScroll:ln,virtual:At,direction:Ft,innerProps:At?null:ei},function(Qn,zn){var dt,Bn=Qn.group,or=Qn.groupOption,qn=Qn.data,Lr=Qn.label,Ur=Qn.value,Vr=qn.key;if(Bn){var fr,Yr=(fr=qn.title)!==null&&fr!==void 0?fr:Fe(Lr)?Lr.toString():void 0;return I.createElement("div",{className:g()(Mt,"".concat(Mt,"-group")),title:Yr},Lr!==void 0?Lr:Vr)}var Un=qn.disabled,Pn=qn.title,Er=qn.children,Mr=qn.style,ti=qn.className,Ri=(0,m.Z)(qn,De),Hn=(0,Sn.Z)(Ri,ir),ri=Ir(Ur),Xr="".concat(Mt,"-option"),di=g()(Mt,Xr,ti,(dt={},(0,ee.Z)(dt,"".concat(Xr,"-grouped"),or),(0,ee.Z)(dt,"".concat(Xr,"-active"),Cn===zn&&!Un),(0,ee.Z)(dt,"".concat(Xr,"-disabled"),Un),(0,ee.Z)(dt,"".concat(Xr,"-selected"),ri),dt)),Mi=Cr(Qn),bi=!tn||typeof tn=="function"||ri,ii=typeof Mi=="number"?Mi:Mi||Ur,Ti=Fe(ii)?ii.toString():void 0;return Pn!==void 0&&(Ti=Pn),I.createElement("div",(0,O.Z)({},(0,j.Z)(Hn),At?{}:tr(Qn,zn),{"aria-selected":ri,className:di,title:Ti,onMouseMove:function(){Cn===zn||Un||mr(zn)},onClick:function(){Un||rr(Ur)},style:Mr}),I.createElement("div",{className:"".concat(Xr,"-content")},ii),I.isValidElement(tn)||ri,bi&&I.createElement(z,{className:"".concat(Mt,"-option-state"),customizeIcon:tn,customizeIconProps:{isSelected:ri}},ri?"\u2713":null))}))},_e=I.forwardRef(tt);_e.displayName="OptionList";var Jt=_e;function Ze(Ke){var Oe=Ke.mode,_t=Ke.options,wt=Ke.children,rn=Ke.backfill,Xt=Ke.allowClear,cn=Ke.placeholder,nn=Ke.getInputElement,pn=Ke.showSearch,Ln=Ke.onSearch,Kt=Ke.defaultOpen,zt=Ke.autoFocus,ln=Ke.labelInValue,sn=Ke.value,mn=Ke.inputValue,un=Ke.optionLabelProp,ar=isMultiple(Oe),On=pn!==void 0?pn:ar||Oe==="combobox",tn=_t||convertChildrenToData(wt);if(warning(Oe!=="tags"||tn.every(function(Ft){return!Ft.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Oe==="tags"||Oe==="combobox"){var ct=tn.some(function(Ft){return Ft.options?Ft.options.some(function(Pt){return typeof("value"in Pt?Pt.value:Pt.key)=="number"}):typeof("value"in Ft?Ft.value:Ft.key)=="number"});warning(!ct,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Oe!=="combobox"||!un,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Oe==="combobox"||!rn,"`backfill` only works with `combobox` mode."),warning(Oe==="combobox"||!nn,"`getInputElement` only work with `combobox` mode."),noteOnce(Oe!=="combobox"||!nn||!Xt||!cn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ln&&!On&&Oe!=="combobox"&&Oe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Kt||zt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),sn!=null){var ht=toArray(sn);warning(!ln||ht.every(function(Ft){return _typeof(Ft)==="object"&&("key"in Ft||"value"in Ft)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ar||Array.isArray(sn),"`value` should be array when `mode` is `multiple` or `tags`")}if(wt){var At=null;toNodeArray(wt).some(function(Ft){if(!React.isValidElement(Ft)||!Ft.type)return!1;var Pt=Ft,Yt=Pt.type;if(Yt.isSelectOption)return!1;if(Yt.isSelectOptGroup){var Mt=toNodeArray(Ft.props.children).every(function(gn){return!React.isValidElement(gn)||!Ft.type||gn.type.isSelectOption?!0:(At=gn.type,!1)});return!Mt}return At=Yt,!0}),At&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(At.displayName||At.name||At,"`.")),warning(mn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function xn(Ke,Oe){if(Ke){var _t=function wt(rn){for(var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn=0;cn<rn.length;cn++){var nn=rn[cn];if(nn[Oe==null?void 0:Oe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Xt&&Array.isArray(nn[Oe==null?void 0:Oe.options])&&wt(nn[Oe==null?void 0:Oe.options],!0))break}};_t(Ke)}}var Rn=null,Wn=["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"],yr=["inputValue"];function vn(Ke){return!Ke||(0,w.Z)(Ke)!=="object"}var wn=I.forwardRef(function(Ke,Oe){var _t=Ke.id,wt=Ke.mode,rn=Ke.prefixCls,Xt=rn===void 0?"rc-select":rn,cn=Ke.backfill,nn=Ke.fieldNames,pn=Ke.inputValue,Ln=Ke.searchValue,Kt=Ke.onSearch,zt=Ke.autoClearSearchValue,ln=zt===void 0?!0:zt,sn=Ke.onSelect,mn=Ke.onDeselect,un=Ke.dropdownMatchSelectWidth,ar=un===void 0?!0:un,On=Ke.filterOption,tn=Ke.filterSort,ct=Ke.optionFilterProp,ht=Ke.optionLabelProp,At=Ke.options,Ft=Ke.children,Pt=Ke.defaultActiveFirstOption,Yt=Ke.menuItemSelectedIcon,Mt=Ke.virtual,gn=Ke.direction,An=Ke.listHeight,Dn=An===void 0?200:An,Xn=Ke.listItemHeight,nr=Xn===void 0?20:Xn,dr=Ke.value,En=Ke.defaultValue,Cn=Ke.labelInValue,pr=Ke.onChange,mr=(0,m.Z)(Ke,Wn),Ir=(0,qe.ZP)(_t),rr=oe(wt),ir=!!(!At&&Ft),Cr=I.useMemo(function(){return On===void 0&&wt==="combobox"?!1:On},[On,wt]),tr=I.useMemo(function(){return J(nn,ir)},[JSON.stringify(nn),ir]),Pr=(0,ne.Z)("",{value:Ln!==void 0?Ln:pn,postState:function(xr){return xr||""}}),ei=(0,A.Z)(Pr,2),Qn=ei[0],zn=ei[1],dt=Bt(At,Ft,tr,ct,ht),Bn=dt.valueOptions,or=dt.labelOptions,qn=dt.options,Lr=I.useCallback(function(gr){var xr=de(gr);return xr.map(function(lr){var Vn,Kr,si,Hi,Pi;if(vn(lr))Vn=lr;else{var Ai;si=lr.key,Kr=lr.label,Vn=(Ai=lr.value)!==null&&Ai!==void 0?Ai:si}var $r=Bn.get(Vn);if($r){var Ni;if(Kr===void 0&&(Kr=$r==null?void 0:$r[ht||tr.label]),si===void 0&&(si=(Ni=$r==null?void 0:$r.key)!==null&&Ni!==void 0?Ni:Vn),Hi=$r==null?void 0:$r.disabled,Pi=$r==null?void 0:$r.title,0)var Ts}return{label:Kr,value:Vn,key:si,disabled:Hi,title:Pi}})},[tr,ht,Bn]),Ur=(0,ne.Z)(En,{value:dr}),Vr=(0,A.Z)(Ur,2),fr=Vr[0],Yr=Vr[1],Un=I.useMemo(function(){var gr,xr=Lr(fr);return wt==="combobox"&&ce((gr=xr[0])===null||gr===void 0?void 0:gr.value)?[]:xr},[fr,Lr,wt]),Pn=je(Un,Bn),Er=(0,A.Z)(Pn,2),Mr=Er[0],ti=Er[1],Ri=I.useMemo(function(){if(!wt&&Mr.length===1){var gr=Mr[0];if(gr.value===null&&(gr.label===null||gr.label===void 0))return[]}return Mr.map(function(xr){var lr;return(0,ue.Z)((0,ue.Z)({},xr),{},{label:(lr=xr.label)!==null&&lr!==void 0?lr:xr.value})})},[wt,Mr]),Hn=I.useMemo(function(){return new Set(Mr.map(function(gr){return gr.value}))},[Mr]);I.useEffect(function(){if(wt==="combobox"){var gr,xr=(gr=Mr[0])===null||gr===void 0?void 0:gr.value;zn(F(xr)?String(xr):"")}},[Mr]);var ri=jt(function(gr,xr){var lr,Vn=xr!=null?xr:gr;return lr={},(0,ee.Z)(lr,tr.value,gr),(0,ee.Z)(lr,tr.label,Vn),lr}),Xr=I.useMemo(function(){if(wt!=="tags")return qn;var gr=(0,U.Z)(qn),xr=function(Vn){return Bn.has(Vn)};return(0,U.Z)(Mr).sort(function(lr,Vn){return lr.value<Vn.value?-1:1}).forEach(function(lr){var Vn=lr.value;xr(Vn)||gr.push(ri(Vn,lr.label))}),gr},[ri,qn,Bn,Mr,wt]),di=Be(Xr,tr,Qn,Cr,ct),Mi=I.useMemo(function(){return wt!=="tags"||!Qn||di.some(function(gr){return gr[ct||"value"]===Qn})||di.some(function(gr){return gr[tr.value]===Qn})?di:[ri(Qn)].concat((0,U.Z)(di))},[ri,ct,wt,di,Qn,tr]),bi=I.useMemo(function(){return tn?(0,U.Z)(Mi).sort(function(gr,xr){return tn(gr,xr)}):Mi},[Mi,tn]),ii=I.useMemo(function(){return Ie(bi,{fieldNames:tr,childrenAsData:ir})},[bi,tr,ir]),Ti=function(xr){var lr=Lr(xr);if(Yr(lr),pr&&(lr.length!==Mr.length||lr.some(function(si,Hi){var Pi;return((Pi=Mr[Hi])===null||Pi===void 0?void 0:Pi.value)!==(si==null?void 0:si.value)}))){var Vn=Cn?lr:lr.map(function(si){return si.value}),Kr=lr.map(function(si){return H(ti(si.value))});pr(rr?Vn:Vn[0],rr?Kr:Kr[0])}},oi=I.useState(null),$i=(0,A.Z)(oi,2),Tr=$i[0],Yi=$i[1],Ki=I.useState(0),Xi=(0,A.Z)(Ki,2),Gr=Xi[0],cs=Xi[1],ms=Pt!==void 0?Pt:wt!=="combobox",us=I.useCallback(function(gr,xr){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Vn=lr.source,Kr=Vn===void 0?"keyboard":Vn;cs(xr),cn&&wt==="combobox"&&gr!==null&&Kr==="keyboard"&&Yi(String(gr))},[cn,wt]),Fr=function(xr,lr,Vn){var Kr=function(){var as,sr=ti(xr);return[Cn?{label:sr==null?void 0:sr[tr.label],value:xr,key:(as=sr==null?void 0:sr.key)!==null&&as!==void 0?as:xr}:xr,H(sr)]};if(lr&&sn){var si=Kr(),Hi=(0,A.Z)(si,2),Pi=Hi[0],Ai=Hi[1];sn(Pi,Ai)}else if(!lr&&mn&&Vn!=="clear"){var $r=Kr(),Ni=(0,A.Z)($r,2),Ts=Ni[0],Ns=Ni[1];mn(Ts,Ns)}},ds=jt(function(gr,xr){var lr,Vn=rr?xr.selected:!0;Vn?lr=rr?[].concat((0,U.Z)(Mr),[gr]):[gr]:lr=Mr.filter(function(Kr){return Kr.value!==gr}),Ti(lr),Fr(gr,Vn),wt==="combobox"?Yi(""):(!oe||ln)&&(zn(""),Yi(""))}),Cs=function(xr,lr){Ti(xr);var Vn=lr.type,Kr=lr.values;(Vn==="remove"||Vn==="clear")&&Kr.forEach(function(si){Fr(si.value,!1,Vn)})},Nn=function(xr,lr){if(zn(xr),Yi(null),lr.source==="submit"){var Vn=(xr||"").trim();if(Vn){var Kr=Array.from(new Set([].concat((0,U.Z)(Hn),[Vn])));Ti(Kr),Fr(Vn,!0),zn("")}return}lr.source!=="blur"&&(wt==="combobox"&&Ti(xr),Kt==null||Kt(xr))},Bi=function(xr){var lr=xr;wt!=="tags"&&(lr=xr.map(function(Kr){var si=or.get(Kr);return si==null?void 0:si.value}).filter(function(Kr){return Kr!==void 0}));var Vn=Array.from(new Set([].concat((0,U.Z)(Hn),(0,U.Z)(lr))));Ti(Vn),Vn.forEach(function(Kr){Fr(Kr,!0)})},is=I.useMemo(function(){var gr=Mt!==!1&&ar!==!1;return(0,ue.Z)((0,ue.Z)({},dt),{},{flattenOptions:ii,onActiveValue:us,defaultActiveFirstOption:ms,onSelect:ds,menuItemSelectedIcon:Yt,rawValues:Hn,fieldNames:tr,virtual:gr,direction:gn,listHeight:Dn,listItemHeight:nr,childrenAsData:ir})},[dt,ii,us,ms,ds,Yt,Hn,tr,Mt,ar,Dn,nr,ir]);return I.createElement(rt.Provider,{value:is},I.createElement(Ae,(0,O.Z)({},mr,{id:Ir,prefixCls:Xt,ref:Oe,omitDomProps:yr,mode:wt,displayValues:Ri,onDisplayValuesChange:Cs,direction:gn,searchValue:Qn,onSearch:Nn,autoClearSearchValue:ln,onSearchSplit:Bi,dropdownMatchSelectWidth:ar,OptionList:Jt,emptyOptions:!ii.length,activeValue:Tr,activeDescendantId:"".concat(Ir,"_list_").concat(Gr)})))}),Xe=wn;Xe.Option=ye,Xe.OptGroup=B;var Lt=Xe,Wt=Lt},9296:function(Qt,He,p){"use strict";p.r(He),p.d(He,{ResizableTextArea:function(){return Se},default:function(){return ce}});var O=p(72308),U=p(77321),ee=p(49618),ue=p(62853),A=p(52487),m=p(74416),w=p(80702),ne=p(92310),o=p.n(ne),I=p(93681),k=p(5643),g=p(18929),_=p(59301),S=p(29301),T=p(34280),N=p(16089),ie=`
|
|
|
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;
|
|
|
`,z=["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"],$={},G;function Q(q){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=q.getAttribute("id")||q.getAttribute("data-reactid")||q.getAttribute("name");if(y&&$[x])return $[x];var Z=window.getComputedStyle(q),me=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),Ne=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),Ue=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),ze=z.map(function(pt){return"".concat(pt,":").concat(Z.getPropertyValue(pt))}).join(";"),et={sizingStyle:ze,paddingSize:Ne,borderSize:Ue,boxSizing:me};return y&&x&&($[x]=et),et}function L(q){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;G||(G=document.createElement("textarea"),G.setAttribute("tab-index","-1"),G.setAttribute("aria-hidden","true"),document.body.appendChild(G)),q.getAttribute("wrap")?G.setAttribute("wrap",q.getAttribute("wrap")):G.removeAttribute("wrap");var me=Q(q,y),Ne=me.paddingSize,Ue=me.borderSize,ze=me.boxSizing,et=me.sizingStyle;G.setAttribute("style","".concat(et,";").concat(ie)),G.value=q.value||q.placeholder||"";var pt=void 0,gt=void 0,at,Ot=G.scrollHeight;if(ze==="border-box"?Ot+=Ue:ze==="content-box"&&(Ot-=Ne),x!==null||Z!==null){G.value=" ";var en=G.scrollHeight-Ne;x!==null&&(pt=en*x,ze==="border-box"&&(pt=pt+Ne+Ue),Ot=Math.max(pt,Ot)),Z!==null&&(gt=en*Z,ze==="border-box"&&(gt=gt+Ne+Ue),at=Ot>gt?"":"hidden",Ot=Math.min(gt,Ot))}var Rt={height:Ot,overflowY:at,resize:"none"};return pt&&(Rt.minHeight=pt),gt&&(Rt.maxHeight=gt),Rt}var D=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Y=0,j=1,xe=2,Ce=_.forwardRef(function(q,y){var x=q,Z=x.prefixCls,me=x.onPressEnter,Ne=x.defaultValue,Ue=x.value,ze=x.autoSize,et=x.onResize,pt=x.className,gt=x.style,at=x.disabled,Ot=x.onChange,en=x.onInternalAutoSize,Rt=(0,m.Z)(x,D),Zt=(0,g.Z)(Ne,{value:Ue,postState:function(B){return B!=null?B:""}}),ut=(0,A.Z)(Zt,2),Ct=ut[0],he=ut[1],pe=function(B){he(B.target.value),Ot==null||Ot(B)},le=_.useRef();_.useImperativeHandle(y,function(){return{textArea:le.current}});var J=_.useMemo(function(){return ze&&(0,ue.Z)(ze)==="object"?[ze.minRows,ze.maxRows]:[]},[ze]),Ie=(0,A.Z)(J,2),H=Ie[0],R=Ie[1],P=!!ze,fe=function(){try{if(document.activeElement===le.current){var B=le.current,yt=B.selectionStart,ye=B.selectionEnd,Me=B.scrollTop;le.current.setSelectionRange(yt,ye),le.current.scrollTop=Me}}catch(Sn){}},oe=_.useState(xe),te=(0,A.Z)(oe,2),Ae=te[0],je=te[1],ke=_.useState(),Be=(0,A.Z)(ke,2),qe=Be[0],Qe=Be[1],Ve=function(){je(Y)};(0,T.Z)(function(){P&&Ve()},[Ue,H,R,P]),(0,T.Z)(function(){if(Ae===Y)je(j);else if(Ae===j){var C=L(le.current,!1,H,R);je(xe),Qe(C)}else fe()},[Ae]);var xt=_.useRef(),Dt=function(){N.Z.cancel(xt.current)},vt=function(B){Ae===xe&&(et==null||et(B),ze&&(Dt(),xt.current=(0,N.Z)(function(){Ve()})))};_.useEffect(function(){return Dt},[]);var Bt=P?qe:null,jt=(0,U.Z)((0,U.Z)({},gt),Bt);return(Ae===Y||Ae===j)&&(jt.overflowY="hidden",jt.overflowX="hidden"),_.createElement(S.Z,{onResize:vt,disabled:!(ze||et)},_.createElement("textarea",(0,O.Z)({},Rt,{ref:le,style:jt,className:o()(Z,pt,(0,ee.Z)({},"".concat(Z,"-disabled"),at)),disabled:at,value:Ct,onChange:pe})))}),Se=Ce,ge=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function de(q,y){return(0,w.Z)(q||"").slice(0,y).join("")}function W(q,y,x,Z){var me=x;return q?me=de(x,Z):(0,w.Z)(y||"").length<x.length&&(0,w.Z)(x||"").length>Z&&(me=y),me}var be=_.forwardRef(function(q,y){var x,Z=q.defaultValue,me=q.value,Ne=q.onFocus,Ue=q.onBlur,ze=q.onChange,et=q.allowClear,pt=q.maxLength,gt=q.onCompositionStart,at=q.onCompositionEnd,Ot=q.suffix,en=q.prefixCls,Rt=en===void 0?"rc-textarea":en,Zt=q.classes,ut=q.showCount,Ct=q.className,he=q.style,pe=q.disabled,le=q.hidden,J=q.classNames,Ie=q.styles,H=q.onResize,R=(0,m.Z)(q,ge),P=(0,g.Z)(Z,{value:me,defaultValue:Z}),fe=(0,A.Z)(P,2),oe=fe[0],te=fe[1],Ae=(0,_.useRef)(null),je=_.useState(!1),ke=(0,A.Z)(je,2),Be=ke[0],qe=ke[1],Qe=_.useState(!1),Ve=(0,A.Z)(Qe,2),xt=Ve[0],Dt=Ve[1],vt=_.useRef(),Bt=_.useRef(0),jt=_.useState(null),C=(0,A.Z)(jt,2),B=C[0],yt=C[1],ye=function(){var vn;(vn=Ae.current)===null||vn===void 0||vn.textArea.focus()};(0,_.useImperativeHandle)(y,function(){return{resizableTextArea:Ae.current,focus:ye,blur:function(){var vn;(vn=Ae.current)===null||vn===void 0||vn.textArea.blur()}}}),(0,_.useEffect)(function(){qe(function(yr){return!pe&&yr})},[pe]);var Me=Number(pt)>0,Sn=function(vn){Dt(!0),vt.current=oe,Bt.current=vn.currentTarget.selectionStart,gt==null||gt(vn)},it=function(vn){Dt(!1);var wn=vn.currentTarget.value;if(Me){var Xe,Lt=Bt.current>=pt+1||Bt.current===((Xe=vt.current)===null||Xe===void 0?void 0:Xe.length);wn=W(Lt,vt.current,wn,pt)}wn!==oe&&(te(wn),(0,k.rJ)(vn.currentTarget,vn,ze,wn)),at==null||at(vn)},nt=function(vn){var wn=vn.target.value;if(!xt&&Me){var Xe=vn.target.selectionStart>=pt+1||vn.target.selectionStart===wn.length||!vn.target.selectionStart;wn=W(Xe,oe,wn,pt)}te(wn),(0,k.rJ)(vn.currentTarget,vn,ze,wn)},rt=function(vn){var wn=R.onPressEnter,Xe=R.onKeyDown;vn.key==="Enter"&&wn&&wn(vn),Xe==null||Xe(vn)},Ee=function(vn){qe(!0),Ne==null||Ne(vn)},De=function(vn){qe(!1),Ue==null||Ue(vn)},Fe=function(vn){var wn;te(""),ye(),(0,k.rJ)((wn=Ae.current)===null||wn===void 0?void 0:wn.textArea,vn,ze)},tt=(0,k.D7)(oe);!xt&&Me&&me==null&&(tt=de(tt,pt));var _e=Ot,Jt;if(ut){var Ze=(0,w.Z)(tt).length;(0,ue.Z)(ut)==="object"?Jt=ut.formatter({value:tt,count:Ze,maxLength:pt}):Jt="".concat(Ze).concat(Me?" / ".concat(pt):""),_e=_.createElement(_.Fragment,null,_e,_.createElement("span",{className:o()("".concat(Rt,"-data-count"),J==null?void 0:J.count),style:Ie==null?void 0:Ie.count},Jt))}var xn=function(vn){var wn;H==null||H(vn),(wn=Ae.current)!==null&&wn!==void 0&&wn.textArea.style.height&&yt(!0)},Rn=!R.autoSize&&!ut&&!et,Wn=_.createElement(I.BaseInput,{value:tt,allowClear:et,handleReset:Fe,suffix:_e,prefixCls:Rt,classes:{affixWrapper:o()(Zt==null?void 0:Zt.affixWrapper,(x={},(0,ee.Z)(x,"".concat(Rt,"-show-count"),ut),(0,ee.Z)(x,"".concat(Rt,"-textarea-allow-clear"),et),x))},disabled:pe,focused:Be,className:Ct,style:(0,U.Z)((0,U.Z)({},he),B&&!Rn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Jt=="string"?Jt:void 0}},hidden:le,inputElement:_.createElement(Se,(0,O.Z)({},R,{onKeyDown:rt,onChange:nt,onFocus:Ee,onBlur:De,onCompositionStart:Sn,onCompositionEnd:it,className:J==null?void 0:J.textarea,style:(0,U.Z)((0,U.Z)({},Ie==null?void 0:Ie.textarea),{},{resize:he==null?void 0:he.resize}),disabled:pe,prefixCls:Rt,onResize:xn,ref:Ae}))});return Wn}),F=be,ce=F},55477:function(Qt,He,p){"use strict";p.d(He,{G:function(){return _},Z:function(){return ie}});var O=p(72308),U=p(77321),ee=p(74416),ue=p(35593),A=p(59301),m={shiftX:64,adjustY:1},w={adjustX:1,shiftY:!0},ne=[0,0],o={left:{points:["cr","cl"],overflow:w,offset:[-4,0],targetOffset:ne},right:{points:["cl","cr"],overflow:w,offset:[4,0],targetOffset:ne},top:{points:["bc","tc"],overflow:m,offset:[0,-4],targetOffset:ne},bottom:{points:["tc","bc"],overflow:m,offset:[0,4],targetOffset:ne},topLeft:{points:["bl","tl"],overflow:m,offset:[0,-4],targetOffset:ne},leftTop:{points:["tr","tl"],overflow:w,offset:[-4,0],targetOffset:ne},topRight:{points:["br","tr"],overflow:m,offset:[0,-4],targetOffset:ne},rightTop:{points:["tl","tr"],overflow:w,offset:[4,0],targetOffset:ne},bottomRight:{points:["tr","br"],overflow:m,offset:[0,4],targetOffset:ne},rightBottom:{points:["bl","br"],overflow:w,offset:[4,0],targetOffset:ne},bottomLeft:{points:["tl","bl"],overflow:m,offset:[0,4],targetOffset:ne},leftBottom:{points:["br","bl"],overflow:w,offset:[-4,0],targetOffset:ne}},I=null,k=p(92310),g=p.n(k);function _(z){var $=z.children,G=z.prefixCls,Q=z.id,L=z.overlayInnerStyle,D=z.className,Y=z.style;return A.createElement("div",{className:g()("".concat(G,"-content"),D),style:Y},A.createElement("div",{className:"".concat(G,"-inner"),id:Q,role:"tooltip",style:L},typeof $=="function"?$():$))}var S=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],T=function($,G){var Q=$.overlayClassName,L=$.trigger,D=L===void 0?["hover"]:L,Y=$.mouseEnterDelay,j=Y===void 0?0:Y,xe=$.mouseLeaveDelay,Ce=xe===void 0?.1:xe,Se=$.overlayStyle,ge=$.prefixCls,de=ge===void 0?"rc-tooltip":ge,W=$.children,be=$.onVisibleChange,F=$.afterVisibleChange,ce=$.transitionName,q=$.animation,y=$.motion,x=$.placement,Z=x===void 0?"right":x,me=$.align,Ne=me===void 0?{}:me,Ue=$.destroyTooltipOnHide,ze=Ue===void 0?!1:Ue,et=$.defaultVisible,pt=$.getTooltipContainer,gt=$.overlayInnerStyle,at=$.arrowContent,Ot=$.overlay,en=$.id,Rt=$.showArrow,Zt=Rt===void 0?!0:Rt,ut=(0,ee.Z)($,S),Ct=(0,A.useRef)(null);(0,A.useImperativeHandle)(G,function(){return Ct.current});var he=(0,U.Z)({},ut);"visible"in $&&(he.popupVisible=$.visible);var pe=function(){return A.createElement(_,{key:"content",prefixCls:de,id:en,overlayInnerStyle:gt},Ot)};return A.createElement(ue.Z,(0,O.Z)({popupClassName:Q,prefixCls:de,popup:pe,action:D,builtinPlacements:o,popupPlacement:Z,ref:Ct,popupAlign:Ne,getPopupContainer:pt,onPopupVisibleChange:be,afterPopupVisibleChange:F,popupTransitionName:ce,popupAnimation:q,popupMotion:y,defaultPopupVisible:et,autoDestroy:ze,mouseLeaveDelay:Ce,popupStyle:Se,mouseEnterDelay:j,arrow:Zt},he),W)},N=(0,A.forwardRef)(T),ie=N},39417:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return j}});var O=p(72308),U=p(49618),ee=p(74416),ue=p(77321),A=p(96949),m=p(55090),w=p(80237),ne=p(77205),o=p(38793),I=p(92310),k=p.n(I),g=p(26112),_=p(59301),S=p(39378),T=function(Ce){for(var Se=Ce.prefixCls,ge=Ce.level,de=Ce.isStart,W=Ce.isEnd,be="".concat(Se,"-indent-unit"),F=[],ce=0;ce<ge;ce+=1){var q;F.push(_.createElement("span",{key:ce,className:k()(be,(q={},(0,U.Z)(q,"".concat(be,"-start"),de[ce]),(0,U.Z)(q,"".concat(be,"-end"),W[ce]),q))}))}return _.createElement("span",{"aria-hidden":"true",className:"".concat(Se,"-indent")},F)},N=_.memo(T),ie=p(67841),z=p(71430),$=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],G="open",Q="close",L="---",D=function(xe){(0,ne.Z)(Se,xe);var Ce=(0,o.Z)(Se);function Se(){var ge;(0,A.Z)(this,Se);for(var de=arguments.length,W=new Array(de),be=0;be<de;be++)W[be]=arguments[be];return ge=Ce.call.apply(Ce,[this].concat(W)),ge.state={dragNodeHighlight:!1},ge.selectHandle=void 0,ge.cacheIndent=void 0,ge.onSelectorClick=function(F){var ce=ge.props.context.onNodeClick;ce(F,(0,z.F)(ge.props)),ge.isSelectable()?ge.onSelect(F):ge.onCheck(F)},ge.onSelectorDoubleClick=function(F){var ce=ge.props.context.onNodeDoubleClick;ce(F,(0,z.F)(ge.props))},ge.onSelect=function(F){if(!ge.isDisabled()){var ce=ge.props.context.onNodeSelect;ce(F,(0,z.F)(ge.props))}},ge.onCheck=function(F){if(!ge.isDisabled()){var ce=ge.props,q=ce.disableCheckbox,y=ce.checked,x=ge.props.context.onNodeCheck;if(!(!ge.isCheckable()||q)){var Z=!y;x(F,(0,z.F)(ge.props),Z)}}},ge.onMouseEnter=function(F){var ce=ge.props.context.onNodeMouseEnter;ce(F,(0,z.F)(ge.props))},ge.onMouseLeave=function(F){var ce=ge.props.context.onNodeMouseLeave;ce(F,(0,z.F)(ge.props))},ge.onContextMenu=function(F){var ce=ge.props.context.onNodeContextMenu;ce(F,(0,z.F)(ge.props))},ge.onDragStart=function(F){var ce=ge.props.context.onNodeDragStart;F.stopPropagation(),ge.setState({dragNodeHighlight:!0}),ce(F,(0,w.Z)(ge));try{F.dataTransfer.setData("text/plain","")}catch(q){}},ge.onDragEnter=function(F){var ce=ge.props.context.onNodeDragEnter;F.preventDefault(),F.stopPropagation(),ce(F,(0,w.Z)(ge))},ge.onDragOver=function(F){var ce=ge.props.context.onNodeDragOver;F.preventDefault(),F.stopPropagation(),ce(F,(0,w.Z)(ge))},ge.onDragLeave=function(F){var ce=ge.props.context.onNodeDragLeave;F.stopPropagation(),ce(F,(0,w.Z)(ge))},ge.onDragEnd=function(F){var ce=ge.props.context.onNodeDragEnd;F.stopPropagation(),ge.setState({dragNodeHighlight:!1}),ce(F,(0,w.Z)(ge))},ge.onDrop=function(F){var ce=ge.props.context.onNodeDrop;F.preventDefault(),F.stopPropagation(),ge.setState({dragNodeHighlight:!1}),ce(F,(0,w.Z)(ge))},ge.onExpand=function(F){var ce=ge.props,q=ce.loading,y=ce.context.onNodeExpand;q||y(F,(0,z.F)(ge.props))},ge.setSelectHandle=function(F){ge.selectHandle=F},ge.getNodeState=function(){var F=ge.props.expanded;return ge.isLeaf()?null:F?G:Q},ge.hasChildren=function(){var F=ge.props.eventKey,ce=ge.props.context.keyEntities,q=(0,ie.Z)(ce,F)||{},y=q.children;return!!(y||[]).length},ge.isLeaf=function(){var F=ge.props,ce=F.isLeaf,q=F.loaded,y=ge.props.context.loadData,x=ge.hasChildren();return ce===!1?!1:ce||!y&&!x||y&&q&&!x},ge.isDisabled=function(){var F=ge.props.disabled,ce=ge.props.context.disabled;return!!(ce||F)},ge.isCheckable=function(){var F=ge.props.checkable,ce=ge.props.context.checkable;return!ce||F===!1?!1:ce},ge.syncLoadData=function(F){var ce=F.expanded,q=F.loading,y=F.loaded,x=ge.props.context,Z=x.loadData,me=x.onNodeLoad;q||Z&&ce&&!ge.isLeaf()&&!ge.hasChildren()&&!y&&me((0,z.F)(ge.props))},ge.isDraggable=function(){var F=ge.props,ce=F.data,q=F.context.draggable;return!!(q&&(!q.nodeDraggable||q.nodeDraggable(ce)))},ge.renderDragHandler=function(){var F=ge.props.context,ce=F.draggable,q=F.prefixCls;return ce!=null&&ce.icon?_.createElement("span",{className:"".concat(q,"-draggable-icon")},ce.icon):null},ge.renderSwitcherIconDom=function(F){var ce=ge.props.switcherIcon,q=ge.props.context.switcherIcon,y=ce||q;return typeof y=="function"?y((0,ue.Z)((0,ue.Z)({},ge.props),{},{isLeaf:F})):y},ge.renderSwitcher=function(){var F=ge.props.expanded,ce=ge.props.context.prefixCls;if(ge.isLeaf()){var q=ge.renderSwitcherIconDom(!0);return q!==!1?_.createElement("span",{className:k()("".concat(ce,"-switcher"),"".concat(ce,"-switcher-noop"))},q):null}var y=k()("".concat(ce,"-switcher"),"".concat(ce,"-switcher_").concat(F?G:Q)),x=ge.renderSwitcherIconDom(!1);return x!==!1?_.createElement("span",{onClick:ge.onExpand,className:y},x):null},ge.renderCheckbox=function(){var F=ge.props,ce=F.checked,q=F.halfChecked,y=F.disableCheckbox,x=ge.props.context.prefixCls,Z=ge.isDisabled(),me=ge.isCheckable();if(!me)return null;var Ne=typeof me!="boolean"?me:null;return _.createElement("span",{className:k()("".concat(x,"-checkbox"),ce&&"".concat(x,"-checkbox-checked"),!ce&&q&&"".concat(x,"-checkbox-indeterminate"),(Z||y)&&"".concat(x,"-checkbox-disabled")),onClick:ge.onCheck},Ne)},ge.renderIcon=function(){var F=ge.props.loading,ce=ge.props.context.prefixCls;return _.createElement("span",{className:k()("".concat(ce,"-iconEle"),"".concat(ce,"-icon__").concat(ge.getNodeState()||"docu"),F&&"".concat(ce,"-icon_loading"))})},ge.renderSelector=function(){var F=ge.state.dragNodeHighlight,ce=ge.props,q=ce.title,y=q===void 0?L:q,x=ce.selected,Z=ce.icon,me=ce.loading,Ne=ce.data,Ue=ge.props.context,ze=Ue.prefixCls,et=Ue.showIcon,pt=Ue.icon,gt=Ue.loadData,at=Ue.titleRender,Ot=ge.isDisabled(),en="".concat(ze,"-node-content-wrapper"),Rt;if(et){var Zt=Z||pt;Rt=Zt?_.createElement("span",{className:k()("".concat(ze,"-iconEle"),"".concat(ze,"-icon__customize"))},typeof Zt=="function"?Zt(ge.props):Zt):ge.renderIcon()}else gt&&me&&(Rt=ge.renderIcon());var ut;typeof y=="function"?ut=y(Ne):at?ut=at(Ne):ut=y;var Ct=_.createElement("span",{className:"".concat(ze,"-title")},ut);return _.createElement("span",{ref:ge.setSelectHandle,title:typeof y=="string"?y:"",className:k()("".concat(en),"".concat(en,"-").concat(ge.getNodeState()||"normal"),!Ot&&(x||F)&&"".concat(ze,"-node-selected")),onMouseEnter:ge.onMouseEnter,onMouseLeave:ge.onMouseLeave,onContextMenu:ge.onContextMenu,onClick:ge.onSelectorClick,onDoubleClick:ge.onSelectorDoubleClick},Rt,Ct,ge.renderDropIndicator())},ge.renderDropIndicator=function(){var F=ge.props,ce=F.disabled,q=F.eventKey,y=ge.props.context,x=y.draggable,Z=y.dropLevelOffset,me=y.dropPosition,Ne=y.prefixCls,Ue=y.indent,ze=y.dropIndicatorRender,et=y.dragOverNodeKey,pt=y.direction,gt=!!x,at=!ce&>&&et===q,Ot=Ue!=null?Ue:ge.cacheIndent;return ge.cacheIndent=Ue,at?ze({dropPosition:me,dropLevelOffset:Z,indent:Ot,prefixCls:Ne,direction:pt}):null},ge}return(0,m.Z)(Se,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var de=this.props.selectable,W=this.props.context.selectable;return typeof de=="boolean"?de:W}},{key:"render",value:function(){var de,W=this.props,be=W.eventKey,F=W.className,ce=W.style,q=W.dragOver,y=W.dragOverGapTop,x=W.dragOverGapBottom,Z=W.isLeaf,me=W.isStart,Ne=W.isEnd,Ue=W.expanded,ze=W.selected,et=W.checked,pt=W.halfChecked,gt=W.loading,at=W.domRef,Ot=W.active,en=W.data,Rt=W.onMouseMove,Zt=W.selectable,ut=(0,ee.Z)(W,$),Ct=this.props.context,he=Ct.prefixCls,pe=Ct.filterTreeNode,le=Ct.keyEntities,J=Ct.dropContainerKey,Ie=Ct.dropTargetKey,H=Ct.draggingNodeKey,R=this.isDisabled(),P=(0,g.Z)(ut,{aria:!0,data:!0}),fe=(0,ie.Z)(le,be)||{},oe=fe.level,te=Ne[Ne.length-1],Ae=this.isDraggable(),je=!R&&Ae,ke=H===be,Be=Zt!==void 0?{"aria-selected":!!Zt}:void 0;return _.createElement("div",(0,O.Z)({ref:at,className:k()(F,"".concat(he,"-treenode"),(de={},(0,U.Z)(de,"".concat(he,"-treenode-disabled"),R),(0,U.Z)(de,"".concat(he,"-treenode-switcher-").concat(Ue?"open":"close"),!Z),(0,U.Z)(de,"".concat(he,"-treenode-checkbox-checked"),et),(0,U.Z)(de,"".concat(he,"-treenode-checkbox-indeterminate"),pt),(0,U.Z)(de,"".concat(he,"-treenode-selected"),ze),(0,U.Z)(de,"".concat(he,"-treenode-loading"),gt),(0,U.Z)(de,"".concat(he,"-treenode-active"),Ot),(0,U.Z)(de,"".concat(he,"-treenode-leaf-last"),te),(0,U.Z)(de,"".concat(he,"-treenode-draggable"),Ae),(0,U.Z)(de,"dragging",ke),(0,U.Z)(de,"drop-target",Ie===be),(0,U.Z)(de,"drop-container",J===be),(0,U.Z)(de,"drag-over",!R&&q),(0,U.Z)(de,"drag-over-gap-top",!R&&y),(0,U.Z)(de,"drag-over-gap-bottom",!R&&x),(0,U.Z)(de,"filter-node",pe&&pe((0,z.F)(this.props))),de)),style:ce,draggable:je,"aria-grabbed":ke,onDragStart:je?this.onDragStart:void 0,onDragEnter:Ae?this.onDragEnter:void 0,onDragOver:Ae?this.onDragOver:void 0,onDragLeave:Ae?this.onDragLeave:void 0,onDrop:Ae?this.onDrop:void 0,onDragEnd:Ae?this.onDragEnd:void 0,onMouseMove:Rt},Be,P),_.createElement(N,{prefixCls:he,level:oe,isStart:me,isEnd:Ne}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Se}(_.Component),Y=function(Ce){return _.createElement(S.k.Consumer,null,function(Se){return _.createElement(D,(0,O.Z)({},Ce,{context:Se}))})};Y.displayName="TreeNode",Y.isTreeNode=1;var j=Y},39378:function(Qt,He,p){"use strict";p.d(He,{k:function(){return U}});var O=p(59301),U=O.createContext(null)},54844:function(Qt,He,p){"use strict";p.d(He,{O:function(){return j.Z},Z:function(){return Ct}});var O=p(72308),U=p(49618),ee=p(62853),ue=p(77321),A=p(80702),m=p(96949),w=p(55090),ne=p(80237),o=p(77205),I=p(38793),k=p(92310),g=p.n(k),_=p(10228),S=p(26112),T=p(48736),N=p(59301),ie=p(39378);function z(he){var pe=he.dropPosition,le=he.dropLevelOffset,J=he.indent,Ie={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(pe){case-1:Ie.top=0,Ie.left=-le*J;break;case 1:Ie.bottom=0,Ie.left=-le*J;break;case 0:Ie.bottom=0,Ie.left=J;break}return N.createElement("div",{style:Ie})}function $(he){if(he==null)throw new TypeError("Cannot destructure "+he)}var G=p(52487),Q=p(74416),L=p(34280),D=p(45680),Y=p(77900),j=p(39417);function xe(he,pe){var le=N.useState(!1),J=(0,G.Z)(le,2),Ie=J[0],H=J[1];N.useLayoutEffect(function(){if(Ie)return he(),function(){pe()}},[Ie]),N.useLayoutEffect(function(){return H(!0),function(){H(!1)}},[])}var Ce=p(71430),Se=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ge=function(pe,le){var J=pe.className,Ie=pe.style,H=pe.motion,R=pe.motionNodes,P=pe.motionType,fe=pe.onMotionStart,oe=pe.onMotionEnd,te=pe.active,Ae=pe.treeNodeRequiredProps,je=(0,Q.Z)(pe,Se),ke=N.useState(!0),Be=(0,G.Z)(ke,2),qe=Be[0],Qe=Be[1],Ve=N.useContext(ie.k),xt=Ve.prefixCls,Dt=R&&P!=="hide";(0,L.Z)(function(){R&&Dt!==qe&&Qe(Dt)},[R]);var vt=function(){R&&fe()},Bt=N.useRef(!1),jt=function(){R&&!Bt.current&&(Bt.current=!0,oe())};xe(vt,jt);var C=function(yt){Dt===yt&&jt()};return R?N.createElement(Y.default,(0,O.Z)({ref:le,visible:qe},H,{motionAppear:P==="show",onVisibleChanged:C}),function(B,yt){var ye=B.className,Me=B.style;return N.createElement("div",{ref:yt,className:g()("".concat(xt,"-treenode-motion"),ye),style:Me},R.map(function(Sn){var it=(0,O.Z)({},($(Sn.data),Sn.data)),nt=Sn.title,rt=Sn.key,Ee=Sn.isStart,De=Sn.isEnd;delete it.children;var Fe=(0,Ce.H8)(rt,Ae);return N.createElement(j.Z,(0,O.Z)({},it,Fe,{title:nt,active:te,data:Sn.data,key:rt,isStart:Ee,isEnd:De}))}))}):N.createElement(j.Z,(0,O.Z)({domRef:le,className:J,style:Ie},je,{active:te}))};ge.displayName="MotionTreeNode";var de=N.forwardRef(ge),W=de;function be(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=he.length,J=pe.length;if(Math.abs(le-J)!==1)return{add:!1,key:null};function Ie(H,R){var P=new Map;H.forEach(function(oe){P.set(oe,!0)});var fe=R.filter(function(oe){return!P.has(oe)});return fe.length===1?fe[0]:null}return le<J?{add:!0,key:Ie(he,pe)}:{add:!1,key:Ie(pe,he)}}function F(he,pe,le){var J=he.findIndex(function(P){return P.key===le}),Ie=he[J+1],H=pe.findIndex(function(P){return P.key===le});if(Ie){var R=pe.findIndex(function(P){return P.key===Ie.key});return pe.slice(H+1,R)}return pe.slice(H+1)}var ce=["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"],q={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},y=function(){},x="RC_TREE_MOTION_".concat(Math.random()),Z={key:x},me={key:x,level:0,index:0,pos:"0",node:Z,nodes:[Z]},Ne={parent:null,children:[],pos:me.pos,data:Z,title:null,key:x,isStart:[],isEnd:[]};function Ue(he,pe,le,J){return pe===!1||!le?he:he.slice(0,Math.ceil(le/J)+1)}function ze(he){var pe=he.key,le=he.pos;return(0,Ce.km)(pe,le)}function et(he){for(var pe=String(he.data.key),le=he;le.parent;)le=le.parent,pe="".concat(le.data.key," > ").concat(pe);return pe}var pt=N.forwardRef(function(he,pe){var le=he.prefixCls,J=he.data,Ie=he.selectable,H=he.checkable,R=he.expandedKeys,P=he.selectedKeys,fe=he.checkedKeys,oe=he.loadedKeys,te=he.loadingKeys,Ae=he.halfCheckedKeys,je=he.keyEntities,ke=he.disabled,Be=he.dragging,qe=he.dragOverNodeKey,Qe=he.dropPosition,Ve=he.motion,xt=he.height,Dt=he.itemHeight,vt=he.virtual,Bt=he.focusable,jt=he.activeItem,C=he.focused,B=he.tabIndex,yt=he.onKeyDown,ye=he.onFocus,Me=he.onBlur,Sn=he.onActiveChange,it=he.onListChangeStart,nt=he.onListChangeEnd,rt=(0,Q.Z)(he,ce),Ee=N.useRef(null),De=N.useRef(null);N.useImperativeHandle(pe,function(){return{scrollTo:function(zt){Ee.current.scrollTo(zt)},getIndentWidth:function(){return De.current.offsetWidth}}});var Fe=N.useState(R),tt=(0,G.Z)(Fe,2),_e=tt[0],Jt=tt[1],Ze=N.useState(J),xn=(0,G.Z)(Ze,2),Rn=xn[0],Wn=xn[1],yr=N.useState(J),vn=(0,G.Z)(yr,2),wn=vn[0],Xe=vn[1],Lt=N.useState([]),Wt=(0,G.Z)(Lt,2),Ke=Wt[0],Oe=Wt[1],_t=N.useState(null),wt=(0,G.Z)(_t,2),rn=wt[0],Xt=wt[1],cn=N.useRef(J);cn.current=J;function nn(){var Kt=cn.current;Wn(Kt),Xe(Kt),Oe([]),Xt(null),nt()}(0,L.Z)(function(){Jt(R);var Kt=be(_e,R);if(Kt.key!==null)if(Kt.add){var zt=Rn.findIndex(function(On){var tn=On.key;return tn===Kt.key}),ln=Ue(F(Rn,J,Kt.key),vt,xt,Dt),sn=Rn.slice();sn.splice(zt+1,0,Ne),Xe(sn),Oe(ln),Xt("show")}else{var mn=J.findIndex(function(On){var tn=On.key;return tn===Kt.key}),un=Ue(F(J,Rn,Kt.key),vt,xt,Dt),ar=J.slice();ar.splice(mn+1,0,Ne),Xe(ar),Oe(un),Xt("hide")}else Rn!==J&&(Wn(J),Xe(J))},[R,J]),N.useEffect(function(){Be||nn()},[Be]);var pn=Ve?wn:J,Ln={expandedKeys:R,selectedKeys:P,loadedKeys:oe,loadingKeys:te,checkedKeys:fe,halfCheckedKeys:Ae,dragOverNodeKey:qe,dropPosition:Qe,keyEntities:je};return N.createElement(N.Fragment,null,C&&jt&&N.createElement("span",{style:q,"aria-live":"assertive"},et(jt)),N.createElement("div",null,N.createElement("input",{style:q,disabled:Bt===!1||ke,tabIndex:Bt!==!1?B:null,onKeyDown:yt,onFocus:ye,onBlur:Me,value:"",onChange:y,"aria-label":"for screen reader"})),N.createElement("div",{className:"".concat(le,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},N.createElement("div",{className:"".concat(le,"-indent")},N.createElement("div",{ref:De,className:"".concat(le,"-indent-unit")}))),N.createElement(D.Z,(0,O.Z)({},rt,{data:pn,itemKey:ze,height:xt,fullHeight:!1,virtual:vt,itemHeight:Dt,prefixCls:"".concat(le,"-list"),ref:Ee,onVisibleChange:function(zt,ln){var sn=new Set(zt),mn=ln.filter(function(un){return!sn.has(un)});mn.some(function(un){return ze(un)===x})&&nn()}}),function(Kt){var zt=Kt.pos,ln=(0,O.Z)({},($(Kt.data),Kt.data)),sn=Kt.title,mn=Kt.key,un=Kt.isStart,ar=Kt.isEnd,On=(0,Ce.km)(mn,zt);delete ln.key,delete ln.children;var tn=(0,Ce.H8)(On,Ln);return N.createElement(W,(0,O.Z)({},ln,tn,{title:sn,active:!!jt&&mn===jt.key,pos:zt,data:Kt.data,isStart:un,isEnd:ar,motion:Ve,motionNodes:mn===x?Ke:null,motionType:rn,onMotionStart:it,onMotionEnd:nn,treeNodeRequiredProps:Ln,onMouseMove:function(){Sn(null)}}))}))});pt.displayName="NodeList";var gt=pt,at=p(35654),Ot=p(90782),en=p(67841),Rt=10,Zt=function(he){(0,o.Z)(le,he);var pe=(0,I.Z)(le);function le(){var J;(0,m.Z)(this,le);for(var Ie=arguments.length,H=new Array(Ie),R=0;R<Ie;R++)H[R]=arguments[R];return J=pe.call.apply(pe,[this].concat(H)),J.destroyed=!1,J.delayedDragEnterLogic=void 0,J.loadingRetryTimes={},J.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$)()},J.dragStartMousePosition=null,J.dragNode=void 0,J.currentMouseOverDroppableNodeKey=null,J.listRef=N.createRef(),J.onNodeDragStart=function(P,fe){var oe=J.state,te=oe.expandedKeys,Ae=oe.keyEntities,je=J.props.onDragStart,ke=fe.props.eventKey;J.dragNode=fe,J.dragStartMousePosition={x:P.clientX,y:P.clientY};var Be=(0,at._5)(te,ke);J.setState({draggingNodeKey:ke,dragChildrenKeys:(0,at.wA)(ke,Ae),indent:J.listRef.current.getIndentWidth()}),J.setExpandedKeys(Be),window.addEventListener("dragend",J.onWindowDragEnd),je==null||je({event:P,node:(0,Ce.F)(fe.props)})},J.onNodeDragEnter=function(P,fe){var oe=J.state,te=oe.expandedKeys,Ae=oe.keyEntities,je=oe.dragChildrenKeys,ke=oe.flattenNodes,Be=oe.indent,qe=J.props,Qe=qe.onDragEnter,Ve=qe.onExpand,xt=qe.allowDrop,Dt=qe.direction,vt=fe.props,Bt=vt.pos,jt=vt.eventKey,C=(0,ne.Z)(J),B=C.dragNode;if(J.currentMouseOverDroppableNodeKey!==jt&&(J.currentMouseOverDroppableNodeKey=jt),!B){J.resetDragState();return}var yt=(0,at.OM)(P,B,fe,Be,J.dragStartMousePosition,xt,ke,Ae,te,Dt),ye=yt.dropPosition,Me=yt.dropLevelOffset,Sn=yt.dropTargetKey,it=yt.dropContainerKey,nt=yt.dropTargetPos,rt=yt.dropAllowed,Ee=yt.dragOverNodeKey;if(je.indexOf(Sn)!==-1||!rt){J.resetDragState();return}if(J.delayedDragEnterLogic||(J.delayedDragEnterLogic={}),Object.keys(J.delayedDragEnterLogic).forEach(function(De){clearTimeout(J.delayedDragEnterLogic[De])}),B.props.eventKey!==fe.props.eventKey&&(P.persist(),J.delayedDragEnterLogic[Bt]=window.setTimeout(function(){if(J.state.draggingNodeKey!==null){var De=(0,A.Z)(te),Fe=(0,en.Z)(Ae,fe.props.eventKey);Fe&&(Fe.children||[]).length&&(De=(0,at.L0)(te,fe.props.eventKey)),"expandedKeys"in J.props||J.setExpandedKeys(De),Ve==null||Ve(De,{node:(0,Ce.F)(fe.props),expanded:!0,nativeEvent:P.nativeEvent})}},800)),B.props.eventKey===Sn&&Me===0){J.resetDragState();return}J.setState({dragOverNodeKey:Ee,dropPosition:ye,dropLevelOffset:Me,dropTargetKey:Sn,dropContainerKey:it,dropTargetPos:nt,dropAllowed:rt}),Qe==null||Qe({event:P,node:(0,Ce.F)(fe.props),expandedKeys:te})},J.onNodeDragOver=function(P,fe){var oe=J.state,te=oe.dragChildrenKeys,Ae=oe.flattenNodes,je=oe.keyEntities,ke=oe.expandedKeys,Be=oe.indent,qe=J.props,Qe=qe.onDragOver,Ve=qe.allowDrop,xt=qe.direction,Dt=(0,ne.Z)(J),vt=Dt.dragNode;if(vt){var Bt=(0,at.OM)(P,vt,fe,Be,J.dragStartMousePosition,Ve,Ae,je,ke,xt),jt=Bt.dropPosition,C=Bt.dropLevelOffset,B=Bt.dropTargetKey,yt=Bt.dropContainerKey,ye=Bt.dropAllowed,Me=Bt.dropTargetPos,Sn=Bt.dragOverNodeKey;te.indexOf(B)!==-1||!ye||(vt.props.eventKey===B&&C===0?J.state.dropPosition===null&&J.state.dropLevelOffset===null&&J.state.dropTargetKey===null&&J.state.dropContainerKey===null&&J.state.dropTargetPos===null&&J.state.dropAllowed===!1&&J.state.dragOverNodeKey===null||J.resetDragState():jt===J.state.dropPosition&&C===J.state.dropLevelOffset&&B===J.state.dropTargetKey&&yt===J.state.dropContainerKey&&Me===J.state.dropTargetPos&&ye===J.state.dropAllowed&&Sn===J.state.dragOverNodeKey||J.setState({dropPosition:jt,dropLevelOffset:C,dropTargetKey:B,dropContainerKey:yt,dropTargetPos:Me,dropAllowed:ye,dragOverNodeKey:Sn}),Qe==null||Qe({event:P,node:(0,Ce.F)(fe.props)}))}},J.onNodeDragLeave=function(P,fe){J.currentMouseOverDroppableNodeKey===fe.props.eventKey&&!P.currentTarget.contains(P.relatedTarget)&&(J.resetDragState(),J.currentMouseOverDroppableNodeKey=null);var oe=J.props.onDragLeave;oe==null||oe({event:P,node:(0,Ce.F)(fe.props)})},J.onWindowDragEnd=function(P){J.onNodeDragEnd(P,null,!0),window.removeEventListener("dragend",J.onWindowDragEnd)},J.onNodeDragEnd=function(P,fe){var oe=J.props.onDragEnd;J.setState({dragOverNodeKey:null}),J.cleanDragState(),oe==null||oe({event:P,node:(0,Ce.F)(fe.props)}),J.dragNode=null,window.removeEventListener("dragend",J.onWindowDragEnd)},J.onNodeDrop=function(P,fe){var oe,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ae=J.state,je=Ae.dragChildrenKeys,ke=Ae.dropPosition,Be=Ae.dropTargetKey,qe=Ae.dropTargetPos,Qe=Ae.dropAllowed;if(Qe){var Ve=J.props.onDrop;if(J.setState({dragOverNodeKey:null}),J.cleanDragState(),Be!==null){var xt=(0,ue.Z)((0,ue.Z)({},(0,Ce.H8)(Be,J.getTreeNodeRequiredProps())),{},{active:((oe=J.getActiveItem())===null||oe===void 0?void 0:oe.key)===Be,data:(0,en.Z)(J.state.keyEntities,Be).node}),Dt=je.indexOf(Be)!==-1;(0,T.ZP)(!Dt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var vt=(0,at.yx)(qe),Bt={event:P,node:(0,Ce.F)(xt),dragNode:J.dragNode?(0,Ce.F)(J.dragNode.props):null,dragNodesKeys:[J.dragNode.props.eventKey].concat(je),dropToGap:ke!==0,dropPosition:ke+Number(vt[vt.length-1])};te||Ve==null||Ve(Bt),J.dragNode=null}}},J.cleanDragState=function(){var P=J.state.draggingNodeKey;P!==null&&J.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),J.dragStartMousePosition=null,J.currentMouseOverDroppableNodeKey=null},J.triggerExpandActionExpand=function(P,fe){var oe=J.state,te=oe.expandedKeys,Ae=oe.flattenNodes,je=fe.expanded,ke=fe.key,Be=fe.isLeaf;if(!(Be||P.shiftKey||P.metaKey||P.ctrlKey)){var qe=Ae.filter(function(Ve){return Ve.key===ke})[0],Qe=(0,Ce.F)((0,ue.Z)((0,ue.Z)({},(0,Ce.H8)(ke,J.getTreeNodeRequiredProps())),{},{data:qe.data}));J.setExpandedKeys(je?(0,at._5)(te,ke):(0,at.L0)(te,ke)),J.onNodeExpand(P,Qe)}},J.onNodeClick=function(P,fe){var oe=J.props,te=oe.onClick,Ae=oe.expandAction;Ae==="click"&&J.triggerExpandActionExpand(P,fe),te==null||te(P,fe)},J.onNodeDoubleClick=function(P,fe){var oe=J.props,te=oe.onDoubleClick,Ae=oe.expandAction;Ae==="doubleClick"&&J.triggerExpandActionExpand(P,fe),te==null||te(P,fe)},J.onNodeSelect=function(P,fe){var oe=J.state.selectedKeys,te=J.state,Ae=te.keyEntities,je=te.fieldNames,ke=J.props,Be=ke.onSelect,qe=ke.multiple,Qe=fe.selected,Ve=fe[je.key],xt=!Qe;xt?qe?oe=(0,at.L0)(oe,Ve):oe=[Ve]:oe=(0,at._5)(oe,Ve);var Dt=oe.map(function(vt){var Bt=(0,en.Z)(Ae,vt);return Bt?Bt.node:null}).filter(function(vt){return vt});J.setUncontrolledState({selectedKeys:oe}),Be==null||Be(oe,{event:"select",selected:xt,node:fe,selectedNodes:Dt,nativeEvent:P.nativeEvent})},J.onNodeCheck=function(P,fe,oe){var te=J.state,Ae=te.keyEntities,je=te.checkedKeys,ke=te.halfCheckedKeys,Be=J.props,qe=Be.checkStrictly,Qe=Be.onCheck,Ve=fe.key,xt,Dt={event:"check",node:fe,checked:oe,nativeEvent:P.nativeEvent};if(qe){var vt=oe?(0,at.L0)(je,Ve):(0,at._5)(je,Ve),Bt=(0,at._5)(ke,Ve);xt={checked:vt,halfChecked:Bt},Dt.checkedNodes=vt.map(function(Me){return(0,en.Z)(Ae,Me)}).filter(function(Me){return Me}).map(function(Me){return Me.node}),J.setUncontrolledState({checkedKeys:vt})}else{var jt=(0,Ot.S)([].concat((0,A.Z)(je),[Ve]),!0,Ae),C=jt.checkedKeys,B=jt.halfCheckedKeys;if(!oe){var yt=new Set(C);yt.delete(Ve);var ye=(0,Ot.S)(Array.from(yt),{checked:!1,halfCheckedKeys:B},Ae);C=ye.checkedKeys,B=ye.halfCheckedKeys}xt=C,Dt.checkedNodes=[],Dt.checkedNodesPositions=[],Dt.halfCheckedKeys=B,C.forEach(function(Me){var Sn=(0,en.Z)(Ae,Me);if(Sn){var it=Sn.node,nt=Sn.pos;Dt.checkedNodes.push(it),Dt.checkedNodesPositions.push({node:it,pos:nt})}}),J.setUncontrolledState({checkedKeys:C},!1,{halfCheckedKeys:B})}Qe==null||Qe(xt,Dt)},J.onNodeLoad=function(P){var fe=P.key,oe=new Promise(function(te,Ae){J.setState(function(je){var ke=je.loadedKeys,Be=ke===void 0?[]:ke,qe=je.loadingKeys,Qe=qe===void 0?[]:qe,Ve=J.props,xt=Ve.loadData,Dt=Ve.onLoad;if(!xt||Be.indexOf(fe)!==-1||Qe.indexOf(fe)!==-1)return null;var vt=xt(P);return vt.then(function(){var Bt=J.state.loadedKeys,jt=(0,at.L0)(Bt,fe);Dt==null||Dt(jt,{event:"load",node:P}),J.setUncontrolledState({loadedKeys:jt}),J.setState(function(C){return{loadingKeys:(0,at._5)(C.loadingKeys,fe)}}),te()}).catch(function(Bt){if(J.setState(function(C){return{loadingKeys:(0,at._5)(C.loadingKeys,fe)}}),J.loadingRetryTimes[fe]=(J.loadingRetryTimes[fe]||0)+1,J.loadingRetryTimes[fe]>=Rt){var jt=J.state.loadedKeys;(0,T.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),J.setUncontrolledState({loadedKeys:(0,at.L0)(jt,fe)}),te()}Ae(Bt)}),{loadingKeys:(0,at.L0)(Qe,fe)}})});return oe.catch(function(){}),oe},J.onNodeMouseEnter=function(P,fe){var oe=J.props.onMouseEnter;oe==null||oe({event:P,node:fe})},J.onNodeMouseLeave=function(P,fe){var oe=J.props.onMouseLeave;oe==null||oe({event:P,node:fe})},J.onNodeContextMenu=function(P,fe){var oe=J.props.onRightClick;oe&&(P.preventDefault(),oe({event:P,node:fe}))},J.onFocus=function(){var P=J.props.onFocus;J.setState({focused:!0});for(var fe=arguments.length,oe=new Array(fe),te=0;te<fe;te++)oe[te]=arguments[te];P==null||P.apply(void 0,oe)},J.onBlur=function(){var P=J.props.onBlur;J.setState({focused:!1}),J.onActiveChange(null);for(var fe=arguments.length,oe=new Array(fe),te=0;te<fe;te++)oe[te]=arguments[te];P==null||P.apply(void 0,oe)},J.getTreeNodeRequiredProps=function(){var P=J.state,fe=P.expandedKeys,oe=P.selectedKeys,te=P.loadedKeys,Ae=P.loadingKeys,je=P.checkedKeys,ke=P.halfCheckedKeys,Be=P.dragOverNodeKey,qe=P.dropPosition,Qe=P.keyEntities;return{expandedKeys:fe||[],selectedKeys:oe||[],loadedKeys:te||[],loadingKeys:Ae||[],checkedKeys:je||[],halfCheckedKeys:ke||[],dragOverNodeKey:Be,dropPosition:qe,keyEntities:Qe}},J.setExpandedKeys=function(P){var fe=J.state,oe=fe.treeData,te=fe.fieldNames,Ae=(0,Ce.oH)(oe,P,te);J.setUncontrolledState({expandedKeys:P,flattenNodes:Ae},!0)},J.onNodeExpand=function(P,fe){var oe=J.state.expandedKeys,te=J.state,Ae=te.listChanging,je=te.fieldNames,ke=J.props,Be=ke.onExpand,qe=ke.loadData,Qe=fe.expanded,Ve=fe[je.key];if(!Ae){var xt=oe.indexOf(Ve),Dt=!Qe;if((0,T.ZP)(Qe&&xt!==-1||!Qe&&xt===-1,"Expand state not sync with index check"),Dt?oe=(0,at.L0)(oe,Ve):oe=(0,at._5)(oe,Ve),J.setExpandedKeys(oe),Be==null||Be(oe,{node:fe,expanded:Dt,nativeEvent:P.nativeEvent}),Dt&&qe){var vt=J.onNodeLoad(fe);vt&&vt.then(function(){var Bt=(0,Ce.oH)(J.state.treeData,oe,je);J.setUncontrolledState({flattenNodes:Bt})}).catch(function(){var Bt=J.state.expandedKeys,jt=(0,at._5)(Bt,Ve);J.setExpandedKeys(jt)})}}},J.onListChangeStart=function(){J.setUncontrolledState({listChanging:!0})},J.onListChangeEnd=function(){setTimeout(function(){J.setUncontrolledState({listChanging:!1})})},J.onActiveChange=function(P){var fe=J.state.activeKey,oe=J.props.onActiveChange;fe!==P&&(J.setState({activeKey:P}),P!==null&&J.scrollTo({key:P}),oe==null||oe(P))},J.getActiveItem=function(){var P=J.state,fe=P.activeKey,oe=P.flattenNodes;return fe===null?null:oe.find(function(te){var Ae=te.key;return Ae===fe})||null},J.offsetActiveKey=function(P){var fe=J.state,oe=fe.flattenNodes,te=fe.activeKey,Ae=oe.findIndex(function(Be){var qe=Be.key;return qe===te});Ae===-1&&P<0&&(Ae=oe.length),Ae=(Ae+P+oe.length)%oe.length;var je=oe[Ae];if(je){var ke=je.key;J.onActiveChange(ke)}else J.onActiveChange(null)},J.onKeyDown=function(P){var fe=J.state,oe=fe.activeKey,te=fe.expandedKeys,Ae=fe.checkedKeys,je=fe.fieldNames,ke=J.props,Be=ke.onKeyDown,qe=ke.checkable,Qe=ke.selectable;switch(P.which){case _.Z.UP:{J.offsetActiveKey(-1),P.preventDefault();break}case _.Z.DOWN:{J.offsetActiveKey(1),P.preventDefault();break}}var Ve=J.getActiveItem();if(Ve&&Ve.data){var xt=J.getTreeNodeRequiredProps(),Dt=Ve.data.isLeaf===!1||!!(Ve.data[je.children]||[]).length,vt=(0,Ce.F)((0,ue.Z)((0,ue.Z)({},(0,Ce.H8)(oe,xt)),{},{data:Ve.data,active:!0}));switch(P.which){case _.Z.LEFT:{Dt&&te.includes(oe)?J.onNodeExpand({},vt):Ve.parent&&J.onActiveChange(Ve.parent.key),P.preventDefault();break}case _.Z.RIGHT:{Dt&&!te.includes(oe)?J.onNodeExpand({},vt):Ve.children&&Ve.children.length&&J.onActiveChange(Ve.children[0].key),P.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{qe&&!vt.disabled&&vt.checkable!==!1&&!vt.disableCheckbox?J.onNodeCheck({},vt,!Ae.includes(oe)):!qe&&Qe&&!vt.disabled&&vt.selectable!==!1&&J.onNodeSelect({},vt);break}}}Be==null||Be(P)},J.setUncontrolledState=function(P){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!J.destroyed){var te=!1,Ae=!0,je={};Object.keys(P).forEach(function(ke){if(ke in J.props){Ae=!1;return}te=!0,je[ke]=P[ke]}),te&&(!fe||Ae)&&J.setState((0,ue.Z)((0,ue.Z)({},je),oe))}},J.scrollTo=function(P){J.listRef.current.scrollTo(P)},J}return(0,w.Z)(le,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ie=this.props.activeKey;Ie!==void 0&&Ie!==this.state.activeKey&&(this.setState({activeKey:Ie}),Ie!==null&&this.scrollTo({key:Ie}))}},{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 Ie,H=this.state,R=H.focused,P=H.flattenNodes,fe=H.keyEntities,oe=H.draggingNodeKey,te=H.activeKey,Ae=H.dropLevelOffset,je=H.dropContainerKey,ke=H.dropTargetKey,Be=H.dropPosition,qe=H.dragOverNodeKey,Qe=H.indent,Ve=this.props,xt=Ve.prefixCls,Dt=Ve.className,vt=Ve.style,Bt=Ve.showLine,jt=Ve.focusable,C=Ve.tabIndex,B=C===void 0?0:C,yt=Ve.selectable,ye=Ve.showIcon,Me=Ve.icon,Sn=Ve.switcherIcon,it=Ve.draggable,nt=Ve.checkable,rt=Ve.checkStrictly,Ee=Ve.disabled,De=Ve.motion,Fe=Ve.loadData,tt=Ve.filterTreeNode,_e=Ve.height,Jt=Ve.itemHeight,Ze=Ve.virtual,xn=Ve.titleRender,Rn=Ve.dropIndicatorRender,Wn=Ve.onContextMenu,yr=Ve.onScroll,vn=Ve.direction,wn=Ve.rootClassName,Xe=Ve.rootStyle,Lt=(0,S.Z)(this.props,{aria:!0,data:!0}),Wt;return it&&((0,ee.Z)(it)==="object"?Wt=it:typeof it=="function"?Wt={nodeDraggable:it}:Wt={}),N.createElement(ie.k.Provider,{value:{prefixCls:xt,selectable:yt,showIcon:ye,icon:Me,switcherIcon:Sn,draggable:Wt,draggingNodeKey:oe,checkable:nt,checkStrictly:rt,disabled:Ee,keyEntities:fe,dropLevelOffset:Ae,dropContainerKey:je,dropTargetKey:ke,dropPosition:Be,dragOverNodeKey:qe,indent:Qe,direction:vn,dropIndicatorRender:Rn,loadData:Fe,filterTreeNode:tt,titleRender:xn,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}},N.createElement("div",{role:"tree",className:g()(xt,Dt,wn,(Ie={},(0,U.Z)(Ie,"".concat(xt,"-show-line"),Bt),(0,U.Z)(Ie,"".concat(xt,"-focused"),R),(0,U.Z)(Ie,"".concat(xt,"-active-focused"),te!==null),Ie)),style:Xe},N.createElement(gt,(0,O.Z)({ref:this.listRef,prefixCls:xt,style:vt,data:P,disabled:Ee,selectable:yt,checkable:!!nt,motion:De,dragging:oe!==null,height:_e,itemHeight:Jt,virtual:Ze,focusable:jt,focused:R,tabIndex:B,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Wn,onScroll:yr},this.getTreeNodeRequiredProps(),Lt))))}}],[{key:"getDerivedStateFromProps",value:function(Ie,H){var R=H.prevProps,P={prevProps:Ie};function fe(jt){return!R&&jt in Ie||R&&R[jt]!==Ie[jt]}var oe,te=H.fieldNames;if(fe("fieldNames")&&(te=(0,Ce.w$)(Ie.fieldNames),P.fieldNames=te),fe("treeData")?oe=Ie.treeData:fe("children")&&((0,T.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),oe=(0,Ce.zn)(Ie.children)),oe){P.treeData=oe;var Ae=(0,Ce.I8)(oe,{fieldNames:te});P.keyEntities=(0,ue.Z)((0,U.Z)({},x,me),Ae.keyEntities)}var je=P.keyEntities||H.keyEntities;if(fe("expandedKeys")||R&&fe("autoExpandParent"))P.expandedKeys=Ie.autoExpandParent||!R&&Ie.defaultExpandParent?(0,at.r7)(Ie.expandedKeys,je):Ie.expandedKeys;else if(!R&&Ie.defaultExpandAll){var ke=(0,ue.Z)({},je);delete ke[x],P.expandedKeys=Object.keys(ke).map(function(jt){return ke[jt].key})}else!R&&Ie.defaultExpandedKeys&&(P.expandedKeys=Ie.autoExpandParent||Ie.defaultExpandParent?(0,at.r7)(Ie.defaultExpandedKeys,je):Ie.defaultExpandedKeys);if(P.expandedKeys||delete P.expandedKeys,oe||P.expandedKeys){var Be=(0,Ce.oH)(oe||H.treeData,P.expandedKeys||H.expandedKeys,te);P.flattenNodes=Be}if(Ie.selectable&&(fe("selectedKeys")?P.selectedKeys=(0,at.BT)(Ie.selectedKeys,Ie):!R&&Ie.defaultSelectedKeys&&(P.selectedKeys=(0,at.BT)(Ie.defaultSelectedKeys,Ie))),Ie.checkable){var qe;if(fe("checkedKeys")?qe=(0,at.E6)(Ie.checkedKeys)||{}:!R&&Ie.defaultCheckedKeys?qe=(0,at.E6)(Ie.defaultCheckedKeys)||{}:oe&&(qe=(0,at.E6)(Ie.checkedKeys)||{checkedKeys:H.checkedKeys,halfCheckedKeys:H.halfCheckedKeys}),qe){var Qe=qe,Ve=Qe.checkedKeys,xt=Ve===void 0?[]:Ve,Dt=Qe.halfCheckedKeys,vt=Dt===void 0?[]:Dt;if(!Ie.checkStrictly){var Bt=(0,Ot.S)(xt,!0,je);xt=Bt.checkedKeys,vt=Bt.halfCheckedKeys}P.checkedKeys=xt,P.halfCheckedKeys=vt}}return fe("loadedKeys")&&(P.loadedKeys=Ie.loadedKeys),P}}]),le}(N.Component);Zt.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:z,allowDrop:function(){return!0},expandAction:!1},Zt.TreeNode=j.Z;var ut=Zt,Ct=ut},35654:function(Qt,He,p){"use strict";p.d(He,{BT:function(){return N},E6:function(){return $},L0:function(){return I},OM:function(){return T},_5:function(){return o},r7:function(){return G},wA:function(){return g},yx:function(){return k}});var O=p(80702),U=p(62853),ee=p(48736),ue=p(59301),A=p(39417),m=p(67841),w=p(71430),ne=null;function o(Q,L){if(!Q)return[];var D=Q.slice(),Y=D.indexOf(L);return Y>=0&&D.splice(Y,1),D}function I(Q,L){var D=(Q||[]).slice();return D.indexOf(L)===-1&&D.push(L),D}function k(Q){return Q.split("-")}function g(Q,L){var D=[],Y=(0,m.Z)(L,Q);function j(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xe.forEach(function(Ce){var Se=Ce.key,ge=Ce.children;D.push(Se),j(ge)})}return j(Y.children),D}function _(Q){if(Q.parent){var L=k(Q.pos);return Number(L[L.length-1])===Q.parent.children.length-1}return!1}function S(Q){var L=k(Q.pos);return Number(L[L.length-1])===0}function T(Q,L,D,Y,j,xe,Ce,Se,ge,de){var W,be=Q.clientX,F=Q.clientY,ce=Q.target.getBoundingClientRect(),q=ce.top,y=ce.height,x=(de==="rtl"?-1:1)*(((j==null?void 0:j.x)||0)-be),Z=(x-12)/Y,me=(0,m.Z)(Se,D.props.eventKey);if(F<q+y/2){var Ne=Ce.findIndex(function(Ct){return Ct.key===me.key}),Ue=Ne<=0?0:Ne-1,ze=Ce[Ue].key;me=(0,m.Z)(Se,ze)}var et=me.key,pt=me,gt=me.key,at=0,Ot=0;if(!ge.includes(et))for(var en=0;en<Z&&_(me);en+=1)me=me.parent,Ot+=1;var Rt=L.props.data,Zt=me.node,ut=!0;return S(me)&&me.level===0&&F<q+y/2&&xe({dragNode:Rt,dropNode:Zt,dropPosition:-1})&&me.key===D.props.eventKey?at=-1:(pt.children||[]).length&&ge.includes(gt)?xe({dragNode:Rt,dropNode:Zt,dropPosition:0})?at=0:ut=!1:Ot===0?Z>-1.5?xe({dragNode:Rt,dropNode:Zt,dropPosition:1})?at=1:ut=!1:xe({dragNode:Rt,dropNode:Zt,dropPosition:0})?at=0:xe({dragNode:Rt,dropNode:Zt,dropPosition:1})?at=1:ut=!1:xe({dragNode:Rt,dropNode:Zt,dropPosition:1})?at=1:ut=!1,{dropPosition:at,dropLevelOffset:Ot,dropTargetKey:me.key,dropTargetPos:me.pos,dragOverNodeKey:gt,dropContainerKey:at===0?null:((W=me.parent)===null||W===void 0?void 0:W.key)||null,dropAllowed:ut}}function N(Q,L){if(Q){var D=L.multiple;return D?Q.slice():Q.length?[Q[0]]:Q}}var ie=function(L){return L};function z(Q,L){if(!Q)return[];var D=L||{},Y=D.processProps,j=Y===void 0?ie:Y,xe=Array.isArray(Q)?Q:[Q];return xe.map(function(Ce){var Se=Ce.children,ge=_objectWithoutProperties(Ce,ne),de=z(Se,L);return React.createElement(TreeNode,_extends({key:ge.key},j(ge)),de)})}function $(Q){if(!Q)return null;var L;if(Array.isArray(Q))L={checkedKeys:Q,halfCheckedKeys:void 0};else if((0,U.Z)(Q)==="object")L={checkedKeys:Q.checked||void 0,halfCheckedKeys:Q.halfChecked||void 0};else return(0,ee.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return L}function G(Q,L){var D=new Set;function Y(j){if(!D.has(j)){var xe=(0,m.Z)(L,j);if(xe){D.add(j);var Ce=xe.parent,Se=xe.node;Se.disabled||Ce&&Y(Ce.key)}}}return(Q||[]).forEach(function(j){Y(j)}),(0,O.Z)(D)}},90782:function(Qt,He,p){"use strict";p.d(He,{S:function(){return w}});var O=p(48736),U=p(67841);function ee(ne,o){var I=new Set;return ne.forEach(function(k){o.has(k)||I.add(k)}),I}function ue(ne){var o=ne||{},I=o.disabled,k=o.disableCheckbox,g=o.checkable;return!!(I||k)||g===!1}function A(ne,o,I,k){for(var g=new Set(ne),_=new Set,S=0;S<=I;S+=1){var T=o.get(S)||new Set;T.forEach(function($){var G=$.key,Q=$.node,L=$.children,D=L===void 0?[]:L;g.has(G)&&!k(Q)&&D.filter(function(Y){return!k(Y.node)}).forEach(function(Y){g.add(Y.key)})})}for(var N=new Set,ie=I;ie>=0;ie-=1){var z=o.get(ie)||new Set;z.forEach(function($){var G=$.parent,Q=$.node;if(!(k(Q)||!$.parent||N.has($.parent.key))){if(k($.parent.node)){N.add(G.key);return}var L=!0,D=!1;(G.children||[]).filter(function(Y){return!k(Y.node)}).forEach(function(Y){var j=Y.key,xe=g.has(j);L&&!xe&&(L=!1),!D&&(xe||_.has(j))&&(D=!0)}),L&&g.add(G.key),D&&_.add(G.key),N.add(G.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(ee(_,g))}}function m(ne,o,I,k,g){for(var _=new Set(ne),S=new Set(o),T=0;T<=k;T+=1){var N=I.get(T)||new Set;N.forEach(function(G){var Q=G.key,L=G.node,D=G.children,Y=D===void 0?[]:D;!_.has(Q)&&!S.has(Q)&&!g(L)&&Y.filter(function(j){return!g(j.node)}).forEach(function(j){_.delete(j.key)})})}S=new Set;for(var ie=new Set,z=k;z>=0;z-=1){var $=I.get(z)||new Set;$.forEach(function(G){var Q=G.parent,L=G.node;if(!(g(L)||!G.parent||ie.has(G.parent.key))){if(g(G.parent.node)){ie.add(Q.key);return}var D=!0,Y=!1;(Q.children||[]).filter(function(j){return!g(j.node)}).forEach(function(j){var xe=j.key,Ce=_.has(xe);D&&!Ce&&(D=!1),!Y&&(Ce||S.has(xe))&&(Y=!0)}),D||_.delete(Q.key),Y&&S.add(Q.key),ie.add(Q.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(ee(S,_))}}function w(ne,o,I,k){var g=[],_;k?_=k:_=ue;var S=new Set(ne.filter(function(z){var $=!!(0,U.Z)(I,z);return $||g.push(z),$})),T=new Map,N=0;Object.keys(I).forEach(function(z){var $=I[z],G=$.level,Q=T.get(G);Q||(Q=new Set,T.set(G,Q)),Q.add($),N=Math.max(N,G)}),(0,O.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(z){return"'".concat(z,"'")}).join(", ")));var ie;return o===!0?ie=A(S,T,N,_):ie=m(S,o.halfCheckedKeys,T,N,_),ie}},67841:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return O}});function O(U,ee){return U[ee]}},71430:function(Qt,He,p){"use strict";p.d(He,{F:function(){return G},H8:function(){return $},I8:function(){return z},km:function(){return g},oH:function(){return N},w$:function(){return _},zn:function(){return T}});var O=p(62853),U=p(80702),ee=p(77321),ue=p(74416),A=p(11592),m=p(2738),w=p(48736),ne=p(67841),o=["children"];function I(Q,L){return"".concat(Q,"-").concat(L)}function k(Q){return Q&&Q.type&&Q.type.isTreeNode}function g(Q,L){return Q!=null?Q:L}function _(Q){var L=Q||{},D=L.title,Y=L._title,j=L.key,xe=L.children,Ce=D||"title";return{title:Ce,_title:Y||[Ce],key:j||"key",children:xe||"children"}}function S(Q,L){var D=new Map;function Y(j){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(j||[]).forEach(function(Ce){var Se=Ce[L.key],ge=Ce[L.children];warning(Se!=null,"Tree node must have a certain key: [".concat(xe).concat(Se,"]"));var de=String(Se);warning(!D.has(de)||Se===null||Se===void 0,"Same 'key' exist in the Tree: ".concat(de)),D.set(de,!0),Y(ge,"".concat(xe).concat(de," > "))})}Y(Q)}function T(Q){function L(D){var Y=(0,A.Z)(D);return Y.map(function(j){if(!k(j))return(0,w.ZP)(!j,"Tree/TreeNode can only accept TreeNode as children."),null;var xe=j.key,Ce=j.props,Se=Ce.children,ge=(0,ue.Z)(Ce,o),de=(0,ee.Z)({key:xe},ge),W=L(Se);return W.length&&(de.children=W),de}).filter(function(j){return j})}return L(Q)}function N(Q,L,D){var Y=_(D),j=Y._title,xe=Y.key,Ce=Y.children,Se=new Set(L===!0?[]:L),ge=[];function de(W){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return W.map(function(F,ce){for(var q=I(be?be.pos:"0",ce),y=g(F[xe],q),x,Z=0;Z<j.length;Z+=1){var me=j[Z];if(F[me]!==void 0){x=F[me];break}}var Ne=(0,ee.Z)((0,ee.Z)({},(0,m.Z)(F,[].concat((0,U.Z)(j),[xe,Ce]))),{},{title:x,key:y,parent:be,pos:q,children:null,data:F,isStart:[].concat((0,U.Z)(be?be.isStart:[]),[ce===0]),isEnd:[].concat((0,U.Z)(be?be.isEnd:[]),[ce===W.length-1])});return ge.push(Ne),L===!0||Se.has(y)?Ne.children=de(F[Ce]||[],Ne):Ne.children=[],Ne})}return de(Q),ge}function ie(Q,L,D){var Y={};(0,O.Z)(D)==="object"?Y=D:Y={externalGetKey:D},Y=Y||{};var j=Y,xe=j.childrenPropName,Ce=j.externalGetKey,Se=j.fieldNames,ge=_(Se),de=ge.key,W=ge.children,be=xe||W,F;Ce?typeof Ce=="string"?F=function(y){return y[Ce]}:typeof Ce=="function"&&(F=function(y){return Ce(y)}):F=function(y,x){return g(y[de],x)};function ce(q,y,x,Z){var me=q?q[be]:Q,Ne=q?I(x.pos,y):"0",Ue=q?[].concat((0,U.Z)(Z),[q]):[];if(q){var ze=F(q,Ne),et={node:q,index:y,pos:Ne,key:ze,parentPos:x.node?x.pos:null,level:x.level+1,nodes:Ue};L(et)}me&&me.forEach(function(pt,gt){ce(pt,gt,{node:q,pos:Ne,level:x?x.level+1:-1},Ue)})}ce(null)}function z(Q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=L.initWrapper,Y=L.processEntity,j=L.onProcessFinished,xe=L.externalGetKey,Ce=L.childrenPropName,Se=L.fieldNames,ge=arguments.length>2?arguments[2]:void 0,de=xe||ge,W={},be={},F={posEntities:W,keyEntities:be};return D&&(F=D(F)||F),ie(Q,function(ce){var q=ce.node,y=ce.index,x=ce.pos,Z=ce.key,me=ce.parentPos,Ne=ce.level,Ue=ce.nodes,ze={node:q,nodes:Ue,index:y,key:Z,pos:x,level:Ne},et=g(Z,x);W[x]=ze,be[et]=ze,ze.parent=W[me],ze.parent&&(ze.parent.children=ze.parent.children||[],ze.parent.children.push(ze)),Y&&Y(ze,F)},{externalGetKey:de,childrenPropName:Ce,fieldNames:Se}),j&&j(F),F}function $(Q,L){var D=L.expandedKeys,Y=L.selectedKeys,j=L.loadedKeys,xe=L.loadingKeys,Ce=L.checkedKeys,Se=L.halfCheckedKeys,ge=L.dragOverNodeKey,de=L.dropPosition,W=L.keyEntities,be=(0,ne.Z)(W,Q),F={eventKey:Q,expanded:D.indexOf(Q)!==-1,selected:Y.indexOf(Q)!==-1,loaded:j.indexOf(Q)!==-1,loading:xe.indexOf(Q)!==-1,checked:Ce.indexOf(Q)!==-1,halfChecked:Se.indexOf(Q)!==-1,pos:String(be?be.pos:""),dragOver:ge===Q&&de===0,dragOverGapTop:ge===Q&&de===-1,dragOverGapBottom:ge===Q&&de===1};return F}function G(Q){var L=Q.data,D=Q.expanded,Y=Q.selected,j=Q.checked,xe=Q.loaded,Ce=Q.loading,Se=Q.halfChecked,ge=Q.dragOver,de=Q.dragOverGapTop,W=Q.dragOverGapBottom,be=Q.pos,F=Q.active,ce=Q.eventKey,q=(0,ee.Z)((0,ee.Z)({},L),{},{expanded:D,selected:Y,checked:j,loaded:xe,loading:Ce,halfChecked:Se,dragOver:ge,dragOverGapTop:de,dragOverGapBottom:W,pos:be,active:F,key:ce});return"props"in q||Object.defineProperty(q,"props",{get:function(){return(0,w.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Q}}),q}},8224:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return U}});var O=p(4676);function U(ee,ue,A,m){var w=O.unstable_batchedUpdates?function(o){O.unstable_batchedUpdates(A,o)}:A;return ee!=null&&ee.addEventListener&&ee.addEventListener(ue,w,m),{remove:function(){ee!=null&&ee.removeEventListener&&ee.removeEventListener(ue,w,m)}}}},55468:function(Qt,He,p){"use strict";p.d(He,{g1:function(){return k},os:function(){return _}});var O=/margin|padding|width|height|max|min|offset/,U={left:!0,top:!0},ee={cssFloat:1,styleFloat:1,float:1};function ue(S){return S.nodeType===1?S.ownerDocument.defaultView.getComputedStyle(S,null):{}}function A(S,T,N){if(T=T.toLowerCase(),N==="auto"){if(T==="height")return S.offsetHeight;if(T==="width")return S.offsetWidth}return T in U||(U[T]=O.test(T)),U[T]?parseFloat(N)||0:N}function m(S,T){var N=arguments.length,ie=ue(S);return T=ee[T]?"cssFloat"in S.style?"cssFloat":"styleFloat":T,N===1?ie:A(S,T,ie[T]||S.style[T])}function w(S,T,N){var ie=arguments.length;if(T=ee[T]?"cssFloat"in S.style?"cssFloat":"styleFloat":T,ie===3)return typeof N=="number"&&O.test(T)&&(N="".concat(N,"px")),S.style[T]=N,N;for(var z in T)T.hasOwnProperty(z)&&w(S,z,T[z]);return ue(S)}function ne(S){return S===document.body?document.documentElement.clientWidth:S.offsetWidth}function o(S){return S===document.body?window.innerHeight||document.documentElement.clientHeight:S.offsetHeight}function I(){var S=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:S,height:T}}function k(){var S=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:S,height:T}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(S){var T=S.getBoundingClientRect(),N=document.documentElement;return{left:T.left+(window.pageXOffset||N.scrollLeft)-(N.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||N.scrollTop)-(N.clientTop||document.body.clientTop||0)}}},24514:function(Qt,He,p){"use strict";p.d(He,{G:function(){return ue}});var O=p(47273),U=function(m){if((0,O.Z)()&&window.document.documentElement){var w=Array.isArray(m)?m:[m],ne=window.document.documentElement;return w.some(function(o){return o in ne.style})}return!1},ee=function(m,w){if(!U(m))return!1;var ne=document.createElement("div"),o=ne.style[m];return ne.style[m]=w,ne.style[m]!==o};function ue(A,m){return!Array.isArray(A)&&m!==void 0?ee(A,m):U(A)}},49658:function(Qt,He){"use strict";He.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var p=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(p)||/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(p==null?void 0:p.substr(0,4))}},45680:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return Zt}});var O=p(72308),U=p(62853),ee=p(77321),ue=p(49618),A=p(52487),m=p(74416),w=p(92310),ne=p.n(w),o=p(29301),I=p(70425),k=p(34280),g=p(59301),_=p(4676),S=g.forwardRef(function(ut,Ct){var he=ut.height,pe=ut.offsetY,le=ut.offsetX,J=ut.children,Ie=ut.prefixCls,H=ut.onInnerResize,R=ut.innerProps,P=ut.rtl,fe=ut.extra,oe={},te={display:"flex",flexDirection:"column"};return pe!==void 0&&(oe={height:he,position:"relative",overflow:"hidden"},te=(0,ee.Z)((0,ee.Z)({},te),{},(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({transform:"translateY(".concat(pe,"px)")},P?"marginRight":"marginLeft",-le),"position","absolute"),"left",0),"right",0),"top",0))),g.createElement("div",{style:oe},g.createElement(o.Z,{onResize:function(je){var ke=je.offsetHeight;ke&&H&&H()}},g.createElement("div",(0,O.Z)({style:te,className:ne()((0,ue.Z)({},"".concat(Ie,"-holder-inner"),Ie)),ref:Ct},R),J,fe)))});S.displayName="Filler";var T=S;function N(ut){var Ct=ut.children,he=ut.setRef,pe=g.useCallback(function(le){he(le)},[]);return g.cloneElement(Ct,{ref:pe})}function ie(ut,Ct,he,pe,le,J,Ie,H){var R=H.getKey;return ut.slice(Ct,he+1).map(function(P,fe){var oe=Ct+fe,te=Ie(P,oe,{style:{width:pe},offsetX:le}),Ae=R(P);return g.createElement(N,{key:Ae,setRef:function(ke){return J(P,ke)}},te)})}function z(ut,Ct,he,pe){var le=he-ut,J=Ct-he,Ie=Math.min(le,J)*2;if(pe<=Ie){var H=Math.floor(pe/2);return pe%2?he+H+1:he-H}return le>J?he-(pe-J):he+(pe-le)}function $(ut,Ct,he){var pe=ut.length,le=Ct.length,J,Ie;if(pe===0&&le===0)return null;pe<le?(J=ut,Ie=Ct):(J=Ct,Ie=ut);var H={__EMPTY_ITEM__:!0};function R(je){return je!==void 0?he(je):H}for(var P=null,fe=Math.abs(pe-le)!==1,oe=0;oe<Ie.length;oe+=1){var te=R(J[oe]),Ae=R(Ie[oe]);if(te!==Ae){P=oe,fe=fe||te!==R(Ie[oe+1]);break}}return P===null?null:{index:P,multiple:fe}}function G(ut,Ct,he){var pe=g.useState(ut),le=(0,A.Z)(pe,2),J=le[0],Ie=le[1],H=g.useState(null),R=(0,A.Z)(H,2),P=R[0],fe=R[1];return g.useEffect(function(){var oe=$(J||[],ut||[],Ct);(oe==null?void 0:oe.index)!==void 0&&(he==null||he(oe.index),fe(ut[oe.index])),Ie(ut)},[ut]),[P]}var Q=p(16089),L=(typeof navigator=="undefined"?"undefined":(0,U.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),D=L,Y=function(ut,Ct,he,pe){var le=(0,g.useRef)(!1),J=(0,g.useRef)(null);function Ie(){clearTimeout(J.current),le.current=!0,J.current=setTimeout(function(){le.current=!1},50)}var H=(0,g.useRef)({top:ut,bottom:Ct,left:he,right:pe});return H.current.top=ut,H.current.bottom=Ct,H.current.left=he,H.current.right=pe,function(R,P){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=R?P<0&&H.current.left||P>0&&H.current.right:P<0&&H.current.top||P>0&&H.current.bottom;return fe&&oe?(clearTimeout(J.current),le.current=!1):(!oe||le.current)&&Ie(),!le.current&&oe}};function j(ut,Ct,he,pe,le,J,Ie){var H=(0,g.useRef)(0),R=(0,g.useRef)(null),P=(0,g.useRef)(null),fe=(0,g.useRef)(!1),oe=Y(Ct,he,pe,le);function te(Qe,Ve){if(Q.Z.cancel(R.current),!oe(!1,Ve)){var xt=Qe;if(!xt._virtualHandled)xt._virtualHandled=!0;else return;H.current+=Ve,P.current=Ve,D||xt.preventDefault(),R.current=(0,Q.Z)(function(){var Dt=fe.current?10:1;Ie(H.current*Dt,!1),H.current=0})}}function Ae(Qe,Ve){Ie(Ve,!0),D||Qe.preventDefault()}var je=(0,g.useRef)(null),ke=(0,g.useRef)(null);function Be(Qe){if(ut){Q.Z.cancel(ke.current),ke.current=(0,Q.Z)(function(){je.current=null},2);var Ve=Qe.deltaX,xt=Qe.deltaY,Dt=Qe.shiftKey,vt=Ve,Bt=xt;(je.current==="sx"||!je.current&&Dt&&xt&&!Ve)&&(vt=xt,Bt=0,je.current="sx");var jt=Math.abs(vt),C=Math.abs(Bt);je.current===null&&(je.current=J&&jt>C?"x":"y"),je.current==="y"?te(Qe,Bt):Ae(Qe,vt)}}function qe(Qe){ut&&(fe.current=Qe.detail===P.current)}return[Be,qe]}function xe(ut,Ct,he,pe){var le=g.useMemo(function(){return[new Map,[]]},[ut,he.id,pe]),J=(0,A.Z)(le,2),Ie=J[0],H=J[1],R=function(fe){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fe,te=Ie.get(fe),Ae=Ie.get(oe);if(te===void 0||Ae===void 0)for(var je=ut.length,ke=H.length;ke<je;ke+=1){var Be,qe=ut[ke],Qe=Ct(qe);Ie.set(Qe,ke);var Ve=(Be=he.get(Qe))!==null&&Be!==void 0?Be:pe;if(H[ke]=(H[ke-1]||0)+Ve,Qe===fe&&(te=ke),Qe===oe&&(Ae=ke),te!==void 0&&Ae!==void 0)break}return{top:H[te-1]||0,bottom:H[Ae]}};return R}var Ce=p(96949),Se=p(55090),ge=function(){function ut(){(0,Ce.Z)(this,ut),(0,ue.Z)(this,"maps",void 0),(0,ue.Z)(this,"id",0),(0,ue.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Se.Z)(ut,[{key:"set",value:function(he,pe){this.maps[he]=pe,this.id+=1,this.diffKeys.add(he)}},{key:"get",value:function(he){return this.maps[he]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ut}(),de=ge;function W(ut){var Ct=parseFloat(ut);return isNaN(Ct)?0:Ct}function be(ut,Ct,he){var pe=g.useState(0),le=(0,A.Z)(pe,2),J=le[0],Ie=le[1],H=(0,g.useRef)(new Map),R=(0,g.useRef)(new de),P=(0,g.useRef)(0);function fe(){P.current+=1}function oe(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;fe();var je=function(){var qe=!1;H.current.forEach(function(Qe,Ve){if(Qe&&Qe.offsetParent){var xt=Qe.offsetHeight,Dt=getComputedStyle(Qe),vt=Dt.marginTop,Bt=Dt.marginBottom,jt=W(vt),C=W(Bt),B=xt+jt+C;R.current.get(Ve)!==B&&(R.current.set(Ve,B),qe=!0)}}),qe&&Ie(function(Qe){return Qe+1})};if(Ae)je();else{P.current+=1;var ke=P.current;Promise.resolve().then(function(){ke===P.current&&je()})}}function te(Ae,je){var ke=ut(Ae),Be=H.current.get(ke);je?(H.current.set(ke,je),oe()):H.current.delete(ke),!Be!=!je&&(je?Ct==null||Ct(Ae):he==null||he(Ae))}return(0,g.useEffect)(function(){return fe},[]),[te,oe,R.current,J]}var F=14/15;function ce(ut,Ct,he){var pe=(0,g.useRef)(!1),le=(0,g.useRef)(0),J=(0,g.useRef)(0),Ie=(0,g.useRef)(null),H=(0,g.useRef)(null),R,P=function(Ae){if(pe.current){var je=Math.ceil(Ae.touches[0].pageX),ke=Math.ceil(Ae.touches[0].pageY),Be=le.current-je,qe=J.current-ke,Qe=Math.abs(Be)>Math.abs(qe);Qe?le.current=je:J.current=ke;var Ve=he(Qe,Qe?Be:qe,!1,Ae);Ve&&Ae.preventDefault(),clearInterval(H.current),Ve&&(H.current=setInterval(function(){Qe?Be*=F:qe*=F;var xt=Math.floor(Qe?Be:qe);(!he(Qe,xt,!0)||Math.abs(xt)<=.1)&&clearInterval(H.current)},16))}},fe=function(){pe.current=!1,R()},oe=function(Ae){R(),Ae.touches.length===1&&!pe.current&&(pe.current=!0,le.current=Math.ceil(Ae.touches[0].pageX),J.current=Math.ceil(Ae.touches[0].pageY),Ie.current=Ae.target,Ie.current.addEventListener("touchmove",P,{passive:!1}),Ie.current.addEventListener("touchend",fe,{passive:!0}))};R=function(){Ie.current&&(Ie.current.removeEventListener("touchmove",P),Ie.current.removeEventListener("touchend",fe))},(0,k.Z)(function(){return ut&&Ct.current.addEventListener("touchstart",oe,{passive:!0}),function(){var te;(te=Ct.current)===null||te===void 0||te.removeEventListener("touchstart",oe),R(),clearInterval(H.current)}},[ut])}function q(ut){return Math.floor(Math.pow(ut,.5))}function y(ut,Ct){var he="touches"in ut?ut.touches[0]:ut;return he[Ct?"pageX":"pageY"]-window[Ct?"scrollX":"scrollY"]}function x(ut,Ct,he){g.useEffect(function(){var pe=Ct.current;if(ut&&pe){var le=!1,J,Ie,H=function(){Q.Z.cancel(J)},R=function te(){H(),J=(0,Q.Z)(function(){he(Ie),te()})},P=function(Ae){if(!(Ae.target.draggable||Ae.button!==0)){var je=Ae;je._virtualHandled||(je._virtualHandled=!0,le=!0)}},fe=function(){le=!1,H()},oe=function(Ae){if(le){var je=y(Ae,!1),ke=pe.getBoundingClientRect(),Be=ke.top,qe=ke.bottom;if(je<=Be){var Qe=Be-je;Ie=-q(Qe),R()}else if(je>=qe){var Ve=je-qe;Ie=q(Ve),R()}else H()}};return pe.addEventListener("mousedown",P),pe.ownerDocument.addEventListener("mouseup",fe),pe.ownerDocument.addEventListener("mousemove",oe),function(){pe.removeEventListener("mousedown",P),pe.ownerDocument.removeEventListener("mouseup",fe),pe.ownerDocument.removeEventListener("mousemove",oe),H()}}},[ut])}var Z=10;function me(ut,Ct,he,pe,le,J,Ie,H){var R=g.useRef(),P=g.useState(null),fe=(0,A.Z)(P,2),oe=fe[0],te=fe[1];return(0,k.Z)(function(){if(oe&&oe.times<Z){if(!ut.current){te(function(De){return(0,ee.Z)({},De)});return}J();var Ae=oe.targetAlign,je=oe.originAlign,ke=oe.index,Be=oe.offset,qe=ut.current.clientHeight,Qe=!1,Ve=Ae,xt=null;if(qe){for(var Dt=Ae||je,vt=0,Bt=0,jt=0,C=Math.min(Ct.length-1,ke),B=0;B<=C;B+=1){var yt=le(Ct[B]);Bt=vt;var ye=he.get(yt);jt=Bt+(ye===void 0?pe:ye),vt=jt}for(var Me=Dt==="top"?Be:qe-Be,Sn=C;Sn>=0;Sn-=1){var it=le(Ct[Sn]),nt=he.get(it);if(nt===void 0){Qe=!0;break}if(Me-=nt,Me<=0)break}switch(Dt){case"top":xt=Bt-Be;break;case"bottom":xt=jt-qe+Be;break;default:{var rt=ut.current.scrollTop,Ee=rt+qe;Bt<rt?Ve="top":jt>Ee&&(Ve="bottom")}}xt!==null&&Ie(xt),xt!==oe.lastTop&&(Qe=!0)}Qe&&te((0,ee.Z)((0,ee.Z)({},oe),{},{times:oe.times+1,targetAlign:Ve,lastTop:xt}))}},[oe,ut.current]),function(Ae){if(Ae==null){H();return}if(Q.Z.cancel(R.current),typeof Ae=="number")Ie(Ae);else if(Ae&&(0,U.Z)(Ae)==="object"){var je,ke=Ae.align;"index"in Ae?je=Ae.index:je=Ct.findIndex(function(Qe){return le(Qe)===Ae.key});var Be=Ae.offset,qe=Be===void 0?0:Be;te({times:0,index:je,offset:qe,originAlign:ke})}}}var Ne=g.forwardRef(function(ut,Ct){var he=ut.prefixCls,pe=ut.rtl,le=ut.scrollOffset,J=ut.scrollRange,Ie=ut.onStartMove,H=ut.onStopMove,R=ut.onScroll,P=ut.horizontal,fe=ut.spinSize,oe=ut.containerSize,te=ut.style,Ae=ut.thumbStyle,je=ut.showScrollBar,ke=g.useState(!1),Be=(0,A.Z)(ke,2),qe=Be[0],Qe=Be[1],Ve=g.useState(null),xt=(0,A.Z)(Ve,2),Dt=xt[0],vt=xt[1],Bt=g.useState(null),jt=(0,A.Z)(Bt,2),C=jt[0],B=jt[1],yt=!pe,ye=g.useRef(),Me=g.useRef(),Sn=g.useState(je),it=(0,A.Z)(Sn,2),nt=it[0],rt=it[1],Ee=g.useRef(),De=function(){je===!0||je===!1||(clearTimeout(Ee.current),rt(!0),Ee.current=setTimeout(function(){rt(!1)},3e3))},Fe=J-oe||0,tt=oe-fe||0,_e=g.useMemo(function(){if(le===0||Fe===0)return 0;var Xe=le/Fe;return Xe*tt},[le,Fe,tt]),Jt=function(Lt){Lt.stopPropagation(),Lt.preventDefault()},Ze=g.useRef({top:_e,dragging:qe,pageY:Dt,startTop:C});Ze.current={top:_e,dragging:qe,pageY:Dt,startTop:C};var xn=function(Lt){Qe(!0),vt(y(Lt,P)),B(Ze.current.top),Ie(),Lt.stopPropagation(),Lt.preventDefault()};g.useEffect(function(){var Xe=function(Oe){Oe.preventDefault()},Lt=ye.current,Wt=Me.current;return Lt.addEventListener("touchstart",Xe,{passive:!1}),Wt.addEventListener("touchstart",xn,{passive:!1}),function(){Lt.removeEventListener("touchstart",Xe),Wt.removeEventListener("touchstart",xn)}},[]);var Rn=g.useRef();Rn.current=Fe;var Wn=g.useRef();Wn.current=tt,g.useEffect(function(){if(qe){var Xe,Lt=function(Oe){var _t=Ze.current,wt=_t.dragging,rn=_t.pageY,Xt=_t.startTop;Q.Z.cancel(Xe);var cn=ye.current.getBoundingClientRect(),nn=oe/(P?cn.width:cn.height);if(wt){var pn=(y(Oe,P)-rn)*nn,Ln=Xt;!yt&&P?Ln-=pn:Ln+=pn;var Kt=Rn.current,zt=Wn.current,ln=zt?Ln/zt:0,sn=Math.ceil(ln*Kt);sn=Math.max(sn,0),sn=Math.min(sn,Kt),Xe=(0,Q.Z)(function(){R(sn,P)})}},Wt=function(){Qe(!1),H()};return window.addEventListener("mousemove",Lt,{passive:!0}),window.addEventListener("touchmove",Lt,{passive:!0}),window.addEventListener("mouseup",Wt,{passive:!0}),window.addEventListener("touchend",Wt,{passive:!0}),function(){window.removeEventListener("mousemove",Lt),window.removeEventListener("touchmove",Lt),window.removeEventListener("mouseup",Wt),window.removeEventListener("touchend",Wt),Q.Z.cancel(Xe)}}},[qe]),g.useEffect(function(){return De(),function(){clearTimeout(Ee.current)}},[le]),g.useImperativeHandle(Ct,function(){return{delayHidden:De}});var yr="".concat(he,"-scrollbar"),vn={position:"absolute",visibility:nt?null:"hidden"},wn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return P?(vn.height=8,vn.left=0,vn.right=0,vn.bottom=0,wn.height="100%",wn.width=fe,yt?wn.left=_e:wn.right=_e):(vn.width=8,vn.top=0,vn.bottom=0,yt?vn.right=0:vn.left=0,wn.width="100%",wn.height=fe,wn.top=_e),g.createElement("div",{ref:ye,className:ne()(yr,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(yr,"-horizontal"),P),"".concat(yr,"-vertical"),!P),"".concat(yr,"-visible"),nt)),style:(0,ee.Z)((0,ee.Z)({},vn),te),onMouseDown:Jt,onMouseMove:De},g.createElement("div",{ref:Me,className:ne()("".concat(yr,"-thumb"),(0,ue.Z)({},"".concat(yr,"-thumb-moving"),qe)),style:(0,ee.Z)((0,ee.Z)({},wn),Ae),onMouseDown:xn}))}),Ue=Ne,ze=20;function et(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,he=ut/Ct*ut;return isNaN(he)&&(he=0),he=Math.max(he,ze),Math.floor(he)}var pt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],gt=[],at={overflowY:"auto",overflowAnchor:"none"};function Ot(ut,Ct){var he=ut.prefixCls,pe=he===void 0?"rc-virtual-list":he,le=ut.className,J=ut.height,Ie=ut.itemHeight,H=ut.fullHeight,R=H===void 0?!0:H,P=ut.style,fe=ut.data,oe=ut.children,te=ut.itemKey,Ae=ut.virtual,je=ut.direction,ke=ut.scrollWidth,Be=ut.component,qe=Be===void 0?"div":Be,Qe=ut.onScroll,Ve=ut.onVirtualScroll,xt=ut.onVisibleChange,Dt=ut.innerProps,vt=ut.extraRender,Bt=ut.styles,jt=ut.showScrollBar,C=jt===void 0?"optional":jt,B=(0,m.Z)(ut,pt),yt=g.useCallback(function(Un){return typeof te=="function"?te(Un):Un==null?void 0:Un[te]},[te]),ye=be(yt,null,null),Me=(0,A.Z)(ye,4),Sn=Me[0],it=Me[1],nt=Me[2],rt=Me[3],Ee=!!(Ae!==!1&&J&&Ie),De=g.useMemo(function(){return Object.values(nt.maps).reduce(function(Un,Pn){return Un+Pn},0)},[nt.id,nt.maps]),Fe=Ee&&fe&&(Math.max(Ie*fe.length,De)>J||!!ke),tt=je==="rtl",_e=ne()(pe,(0,ue.Z)({},"".concat(pe,"-rtl"),tt),le),Jt=fe||gt,Ze=(0,g.useRef)(),xn=(0,g.useRef)(),Rn=(0,g.useRef)(),Wn=(0,g.useState)(0),yr=(0,A.Z)(Wn,2),vn=yr[0],wn=yr[1],Xe=(0,g.useState)(0),Lt=(0,A.Z)(Xe,2),Wt=Lt[0],Ke=Lt[1],Oe=(0,g.useState)(!1),_t=(0,A.Z)(Oe,2),wt=_t[0],rn=_t[1],Xt=function(){rn(!0)},cn=function(){rn(!1)},nn={getKey:yt};function pn(Un){wn(function(Pn){var Er;typeof Un=="function"?Er=Un(Pn):Er=Un;var Mr=nr(Er);return Ze.current.scrollTop=Mr,Mr})}var Ln=(0,g.useRef)({start:0,end:Jt.length}),Kt=(0,g.useRef)(),zt=G(Jt,yt),ln=(0,A.Z)(zt,1),sn=ln[0];Kt.current=sn;var mn=g.useMemo(function(){if(!Ee)return{scrollHeight:void 0,start:0,end:Jt.length-1,offset:void 0};if(!Fe){var Un;return{scrollHeight:((Un=xn.current)===null||Un===void 0?void 0:Un.offsetHeight)||0,start:0,end:Jt.length-1,offset:void 0}}for(var Pn=0,Er,Mr,ti,Ri=Jt.length,Hn=0;Hn<Ri;Hn+=1){var ri=Jt[Hn],Xr=yt(ri),di=nt.get(Xr),Mi=Pn+(di===void 0?Ie:di);Mi>=vn&&Er===void 0&&(Er=Hn,Mr=Pn),Mi>vn+J&&ti===void 0&&(ti=Hn),Pn=Mi}return Er===void 0&&(Er=0,Mr=0,ti=Math.ceil(J/Ie)),ti===void 0&&(ti=Jt.length-1),ti=Math.min(ti+1,Jt.length-1),{scrollHeight:Pn,start:Er,end:ti,offset:Mr}},[Fe,Ee,vn,Jt,rt,J]),un=mn.scrollHeight,ar=mn.start,On=mn.end,tn=mn.offset;Ln.current.start=ar,Ln.current.end=On,g.useLayoutEffect(function(){var Un=nt.getRecord();if(Un.size===1){var Pn=Array.from(Un)[0],Er=Jt[ar];if(Er){var Mr=yt(Er);if(Mr===Pn){var ti=nt.get(Pn),Ri=ti-Ie;pn(function(Hn){return Hn+Ri})}}}nt.resetRecord()},[un]);var ct=g.useState({width:0,height:J}),ht=(0,A.Z)(ct,2),At=ht[0],Ft=ht[1],Pt=function(Pn){Ft({width:Pn.offsetWidth,height:Pn.offsetHeight})},Yt=(0,g.useRef)(),Mt=(0,g.useRef)(),gn=g.useMemo(function(){return et(At.width,ke)},[At.width,ke]),An=g.useMemo(function(){return et(At.height,un)},[At.height,un]),Dn=un-J,Xn=(0,g.useRef)(Dn);Xn.current=Dn;function nr(Un){var Pn=Un;return Number.isNaN(Xn.current)||(Pn=Math.min(Pn,Xn.current)),Pn=Math.max(Pn,0),Pn}var dr=vn<=0,En=vn>=Dn,Cn=Wt<=0,pr=Wt>=ke,mr=Y(dr,En,Cn,pr),Ir=function(){return{x:tt?-Wt:Wt,y:vn}},rr=(0,g.useRef)(Ir()),ir=(0,I.useEvent)(function(Un){if(Ve){var Pn=(0,ee.Z)((0,ee.Z)({},Ir()),Un);(rr.current.x!==Pn.x||rr.current.y!==Pn.y)&&(Ve(Pn),rr.current=Pn)}});function Cr(Un,Pn){var Er=Un;Pn?((0,_.flushSync)(function(){Ke(Er)}),ir()):pn(Er)}function tr(Un){var Pn=Un.currentTarget.scrollTop;Pn!==vn&&pn(Pn),Qe==null||Qe(Un),ir()}var Pr=function(Pn){var Er=Pn,Mr=ke?ke-At.width:0;return Er=Math.max(Er,0),Er=Math.min(Er,Mr),Er},ei=(0,I.useEvent)(function(Un,Pn){Pn?((0,_.flushSync)(function(){Ke(function(Er){var Mr=Er+(tt?-Un:Un);return Pr(Mr)})}),ir()):pn(function(Er){var Mr=Er+Un;return Mr})}),Qn=j(Ee,dr,En,Cn,pr,!!ke,ei),zn=(0,A.Z)(Qn,2),dt=zn[0],Bn=zn[1];ce(Ee,Ze,function(Un,Pn,Er,Mr){var ti=Mr;return mr(Un,Pn,Er)?!1:!ti||!ti._virtualHandled?(ti&&(ti._virtualHandled=!0),dt({preventDefault:function(){},deltaX:Un?Pn:0,deltaY:Un?0:Pn}),!0):!1}),x(Fe,Ze,function(Un){pn(function(Pn){return Pn+Un})}),(0,k.Z)(function(){function Un(Er){var Mr=dr&&Er.detail<0,ti=En&&Er.detail>0;Ee&&!Mr&&!ti&&Er.preventDefault()}var Pn=Ze.current;return Pn.addEventListener("wheel",dt,{passive:!1}),Pn.addEventListener("DOMMouseScroll",Bn,{passive:!0}),Pn.addEventListener("MozMousePixelScroll",Un,{passive:!1}),function(){Pn.removeEventListener("wheel",dt),Pn.removeEventListener("DOMMouseScroll",Bn),Pn.removeEventListener("MozMousePixelScroll",Un)}},[Ee,dr,En]),(0,k.Z)(function(){if(ke){var Un=Pr(Wt);Ke(Un),ir({x:Un})}},[At.width,ke]);var or=function(){var Pn,Er;(Pn=Yt.current)===null||Pn===void 0||Pn.delayHidden(),(Er=Mt.current)===null||Er===void 0||Er.delayHidden()},qn=me(Ze,Jt,nt,Ie,yt,function(){return it(!0)},pn,or);g.useImperativeHandle(Ct,function(){return{nativeElement:Rn.current,getScrollInfo:Ir,scrollTo:function(Pn){function Er(Mr){return Mr&&(0,U.Z)(Mr)==="object"&&("left"in Mr||"top"in Mr)}Er(Pn)?(Pn.left!==void 0&&Ke(Pr(Pn.left)),qn(Pn.top)):qn(Pn)}}}),(0,k.Z)(function(){if(xt){var Un=Jt.slice(ar,On+1);xt(Un,Jt)}},[ar,On,Jt]);var Lr=xe(Jt,yt,nt,Ie),Ur=vt==null?void 0:vt({start:ar,end:On,virtual:Fe,offsetX:Wt,offsetY:tn,rtl:tt,getSize:Lr}),Vr=ie(Jt,ar,On,ke,Wt,Sn,oe,nn),fr=null;J&&(fr=(0,ee.Z)((0,ue.Z)({},R?"height":"maxHeight",J),at),Ee&&(fr.overflowY="hidden",ke&&(fr.overflowX="hidden"),wt&&(fr.pointerEvents="none")));var Yr={};return tt&&(Yr.dir="rtl"),g.createElement("div",(0,O.Z)({ref:Rn,style:(0,ee.Z)((0,ee.Z)({},P),{},{position:"relative"}),className:_e},Yr,B),g.createElement(o.Z,{onResize:Pt},g.createElement(qe,{className:"".concat(pe,"-holder"),style:fr,ref:Ze,onScroll:tr,onMouseEnter:or},g.createElement(T,{prefixCls:pe,height:un,offsetX:Wt,offsetY:tn,scrollWidth:ke,onInnerResize:it,ref:xn,innerProps:Dt,rtl:tt,extra:Ur},Vr))),Fe&&un>J&&g.createElement(Ue,{ref:Yt,prefixCls:pe,scrollOffset:vn,scrollRange:un,rtl:tt,onScroll:Cr,onStartMove:Xt,onStopMove:cn,spinSize:An,containerSize:At.height,style:Bt==null?void 0:Bt.verticalScrollBar,thumbStyle:Bt==null?void 0:Bt.verticalScrollBarThumb,showScrollBar:C}),Fe&&ke>At.width&&g.createElement(Ue,{ref:Mt,prefixCls:pe,scrollOffset:Wt,scrollRange:ke,rtl:tt,onScroll:Cr,onStartMove:Xt,onStopMove:cn,spinSize:gn,containerSize:At.width,horizontal:!0,style:Bt==null?void 0:Bt.horizontalScrollBar,thumbStyle:Bt==null?void 0:Bt.horizontalScrollBarThumb,showScrollBar:C}))}var en=g.forwardRef(Ot);en.displayName="List";var Rt=en,Zt=Rt},83145:function(Qt,He,p){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.CopyToClipboard=void 0;var O=ee(p(59301)),U=ee(p(25769));function ee($){return $&&$.__esModule?$:{default:$}}function ue($){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ue=function(Q){return typeof Q}:ue=function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},ue($)}function A($,G){var Q=Object.keys($);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols($);G&&(L=L.filter(function(D){return Object.getOwnPropertyDescriptor($,D).enumerable})),Q.push.apply(Q,L)}return Q}function m($){for(var G=1;G<arguments.length;G++){var Q=arguments[G]!=null?arguments[G]:{};G%2?A(Q,!0).forEach(function(L){ie($,L,Q[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(Q)):A(Q).forEach(function(L){Object.defineProperty($,L,Object.getOwnPropertyDescriptor(Q,L))})}return $}function w($,G){if($==null)return{};var Q=ne($,G),L,D;if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols($);for(D=0;D<Y.length;D++)L=Y[D],!(G.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call($,L)&&(Q[L]=$[L])}return Q}function ne($,G){if($==null)return{};var Q={},L=Object.keys($),D,Y;for(Y=0;Y<L.length;Y++)D=L[Y],!(G.indexOf(D)>=0)&&(Q[D]=$[D]);return Q}function o($,G){if(!($ instanceof G))throw new TypeError("Cannot call a class as a function")}function I($,G){for(var Q=0;Q<G.length;Q++){var L=G[Q];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty($,L.key,L)}}function k($,G,Q){return G&&I($.prototype,G),Q&&I($,Q),$}function g($,G){return G&&(ue(G)==="object"||typeof G=="function")?G:S($)}function _($){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(Q){return Q.__proto__||Object.getPrototypeOf(Q)},_($)}function S($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function T($,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(G&&G.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),G&&N($,G)}function N($,G){return N=Object.setPrototypeOf||function(L,D){return L.__proto__=D,L},N($,G)}function ie($,G,Q){return G in $?Object.defineProperty($,G,{value:Q,enumerable:!0,configurable:!0,writable:!0}):$[G]=Q,$}var z=function($){T(G,$);function G(){var Q,L;o(this,G);for(var D=arguments.length,Y=new Array(D),j=0;j<D;j++)Y[j]=arguments[j];return L=g(this,(Q=_(G)).call.apply(Q,[this].concat(Y))),ie(S(L),"onClick",function(xe){var Ce=L.props,Se=Ce.text,ge=Ce.onCopy,de=Ce.children,W=Ce.options,be=O.default.Children.only(de),F=(0,U.default)(Se,W);ge&&ge(Se,F),be&&be.props&&typeof be.props.onClick=="function"&&be.props.onClick(xe)}),L}return k(G,[{key:"render",value:function(){var L=this.props,D=L.text,Y=L.onCopy,j=L.options,xe=L.children,Ce=w(L,["text","onCopy","options","children"]),Se=O.default.Children.only(xe);return O.default.cloneElement(Se,m({},Ce,{onClick:this.onClick}))}}]),G}(O.default.PureComponent);He.CopyToClipboard=z,ie(z,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Qt,He,p){"use strict";var O=p(83145),U=O.CopyToClipboard;U.CopyToClipboard=U,Qt.exports=U},76374:function(Qt,He,p){"use strict";var O=function(){if(typeof Map!="undefined")return Map;function de(W,be){var F=-1;return W.some(function(ce,q){return ce[0]===be?(F=q,!0):!1}),F}return function(){function W(){this.__entries__=[]}return Object.defineProperty(W.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),W.prototype.get=function(be){var F=de(this.__entries__,be),ce=this.__entries__[F];return ce&&ce[1]},W.prototype.set=function(be,F){var ce=de(this.__entries__,be);~ce?this.__entries__[ce][1]=F:this.__entries__.push([be,F])},W.prototype.delete=function(be){var F=this.__entries__,ce=de(F,be);~ce&&F.splice(ce,1)},W.prototype.has=function(be){return!!~de(this.__entries__,be)},W.prototype.clear=function(){this.__entries__.splice(0)},W.prototype.forEach=function(be,F){F===void 0&&(F=null);for(var ce=0,q=this.__entries__;ce<q.length;ce++){var y=q[ce];be.call(F,y[1],y[0])}},W}()}(),U=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ee=function(){return typeof p.g!="undefined"&&p.g.Math===Math?p.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ue=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ee):function(de){return setTimeout(function(){return de(Date.now())},1e3/60)}}(),A=2;function m(de,W){var be=!1,F=!1,ce=0;function q(){be&&(be=!1,de()),F&&x()}function y(){ue(q)}function x(){var Z=Date.now();if(be){if(Z-ce<A)return;F=!0}else be=!0,F=!1,setTimeout(y,W);ce=Z}return x}var w=20,ne=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",I=function(){function de(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m(this.refresh.bind(this),w)}return de.prototype.addObserver=function(W){~this.observers_.indexOf(W)||this.observers_.push(W),this.connected_||this.connect_()},de.prototype.removeObserver=function(W){var be=this.observers_,F=be.indexOf(W);~F&&be.splice(F,1),!be.length&&this.connected_&&this.disconnect_()},de.prototype.refresh=function(){var W=this.updateObservers_();W&&this.refresh()},de.prototype.updateObservers_=function(){var W=this.observers_.filter(function(be){return be.gatherActive(),be.hasActive()});return W.forEach(function(be){return be.broadcastActive()}),W.length>0},de.prototype.connect_=function(){!U||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(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)},de.prototype.disconnect_=function(){!U||!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)},de.prototype.onTransitionEnd_=function(W){var be=W.propertyName,F=be===void 0?"":be,ce=ne.some(function(q){return!!~F.indexOf(q)});ce&&this.refresh()},de.getInstance=function(){return this.instance_||(this.instance_=new de),this.instance_},de.instance_=null,de}(),k=function(de,W){for(var be=0,F=Object.keys(W);be<F.length;be++){var ce=F[be];Object.defineProperty(de,ce,{value:W[ce],enumerable:!1,writable:!1,configurable:!0})}return de},g=function(de){var W=de&&de.ownerDocument&&de.ownerDocument.defaultView;return W||ee},_=D(0,0,0,0);function S(de){return parseFloat(de)||0}function T(de){for(var W=[],be=1;be<arguments.length;be++)W[be-1]=arguments[be];return W.reduce(function(F,ce){var q=de["border-"+ce+"-width"];return F+S(q)},0)}function N(de){for(var W=["top","right","bottom","left"],be={},F=0,ce=W;F<ce.length;F++){var q=ce[F],y=de["padding-"+q];be[q]=S(y)}return be}function ie(de){var W=de.getBBox();return D(0,0,W.width,W.height)}function z(de){var W=de.clientWidth,be=de.clientHeight;if(!W&&!be)return _;var F=g(de).getComputedStyle(de),ce=N(F),q=ce.left+ce.right,y=ce.top+ce.bottom,x=S(F.width),Z=S(F.height);if(F.boxSizing==="border-box"&&(Math.round(x+q)!==W&&(x-=T(F,"left","right")+q),Math.round(Z+y)!==be&&(Z-=T(F,"top","bottom")+y)),!G(de)){var me=Math.round(x+q)-W,Ne=Math.round(Z+y)-be;Math.abs(me)!==1&&(x-=me),Math.abs(Ne)!==1&&(Z-=Ne)}return D(ce.left,ce.top,x,Z)}var $=function(){return typeof SVGGraphicsElement!="undefined"?function(de){return de instanceof g(de).SVGGraphicsElement}:function(de){return de instanceof g(de).SVGElement&&typeof de.getBBox=="function"}}();function G(de){return de===g(de).document.documentElement}function Q(de){return U?$(de)?ie(de):z(de):_}function L(de){var W=de.x,be=de.y,F=de.width,ce=de.height,q=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,y=Object.create(q.prototype);return k(y,{x:W,y:be,width:F,height:ce,top:be,right:W+F,bottom:ce+be,left:W}),y}function D(de,W,be,F){return{x:de,y:W,width:be,height:F}}var Y=function(){function de(W){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=D(0,0,0,0),this.target=W}return de.prototype.isActive=function(){var W=Q(this.target);return this.contentRect_=W,W.width!==this.broadcastWidth||W.height!==this.broadcastHeight},de.prototype.broadcastRect=function(){var W=this.contentRect_;return this.broadcastWidth=W.width,this.broadcastHeight=W.height,W},de}(),j=function(){function de(W,be){var F=L(be);k(this,{target:W,contentRect:F})}return de}(),xe=function(){function de(W,be,F){if(this.activeObservations_=[],this.observations_=new O,typeof W!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=W,this.controller_=be,this.callbackCtx_=F}return de.prototype.observe=function(W){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(W instanceof g(W).Element))throw new TypeError('parameter 1 is not of type "Element".');var be=this.observations_;be.has(W)||(be.set(W,new Y(W)),this.controller_.addObserver(this),this.controller_.refresh())}},de.prototype.unobserve=function(W){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(W instanceof g(W).Element))throw new TypeError('parameter 1 is not of type "Element".');var be=this.observations_;be.has(W)&&(be.delete(W),be.size||this.controller_.removeObserver(this))}},de.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},de.prototype.gatherActive=function(){var W=this;this.clearActive(),this.observations_.forEach(function(be){be.isActive()&&W.activeObservations_.push(be)})},de.prototype.broadcastActive=function(){if(this.hasActive()){var W=this.callbackCtx_,be=this.activeObservations_.map(function(F){return new j(F.target,F.broadcastRect())});this.callback_.call(W,be,W),this.clearActive()}},de.prototype.clearActive=function(){this.activeObservations_.splice(0)},de.prototype.hasActive=function(){return this.activeObservations_.length>0},de}(),Ce=typeof WeakMap!="undefined"?new WeakMap:new O,Se=function(){function de(W){if(!(this instanceof de))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var be=I.getInstance(),F=new xe(W,be,this);Ce.set(this,F)}return de}();["observe","unobserve","disconnect"].forEach(function(de){Se.prototype[de]=function(){var W;return(W=Ce.get(this))[de].apply(W,arguments)}});var ge=function(){return typeof ee.ResizeObserver!="undefined"?ee.ResizeObserver:Se}();He.Z=ge},27774:function(Qt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.SizeSensorId=He.SensorTabIndex=He.SensorClassName=void 0;var p="size-sensor-id";He.SizeSensorId=p;var O="size-sensor-object";He.SensorClassName=O;var U="-1";He.SensorTabIndex=U},79301:function(Qt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var p=function(U){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,ue=null;return function(){for(var A=this,m=arguments.length,w=new Array(m),ne=0;ne<m;ne++)w[ne]=arguments[ne];clearTimeout(ue),ue=setTimeout(function(){U.apply(A,w)},ee)}};He.default=p},79789:function(Qt,He){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var p=1,O=function(){return"".concat(p++)};He.default=O},47242:function(Qt,He,p){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.ver=He.clear=He.bind=void 0;var O=p(95270),U=function(m,w){var ne=(0,O.getSensor)(m);return ne.bind(w),function(){ne.unbind(w)}};He.bind=U;var ee=function(m){var w=(0,O.getSensor)(m);(0,O.removeSensor)(w)};He.clear=ee;var ue="1.0.2";He.ver=ue},95270:function(Qt,He,p){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.removeSensor=He.getSensor=He.Sensors=void 0;var O=ue(p(79789)),U=p(57829),ee=p(27774);function ue(o){return o&&o.__esModule?o:{default:o}}var A={};He.Sensors=A;function m(o){o&&A[o]&&delete A[o]}var w=function(I){var k=I.getAttribute(ee.SizeSensorId);if(k&&A[k])return A[k];var g=(0,O.default)();I.setAttribute(ee.SizeSensorId,g);var _=(0,U.createSensor)(I,function(){return m(g)});return A[g]=_,_};He.getSensor=w;var ne=function(I){var k=I.element.getAttribute(ee.SizeSensorId);I.destroy(),m(k)};He.removeSensor=ne},57829:function(Qt,He,p){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.createSensor=void 0;var O=p(20953),U=p(55202),ee=typeof ResizeObserver!="undefined"?U.createSensor:O.createSensor;He.createSensor=ee},20953:function(Qt,He,p){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.createSensor=void 0;var O=ee(p(79301)),U=p(27774);function ee(A){return A&&A.__esModule?A:{default:A}}var ue=function(m,w){var ne=void 0,o=[],I=function(){getComputedStyle(m).position==="static"&&(m.style.position="relative");var N=document.createElement("object");return N.onload=function(){N.contentDocument.defaultView.addEventListener("resize",k),k()},N.style.display="block",N.style.position="absolute",N.style.top="0",N.style.left="0",N.style.height="100%",N.style.width="100%",N.style.overflow="hidden",N.style.pointerEvents="none",N.style.zIndex="-1",N.style.opacity="0",N.setAttribute("class",U.SensorClassName),N.setAttribute("tabindex",U.SensorTabIndex),N.type="text/html",m.appendChild(N),N.data="about:blank",N},k=(0,O.default)(function(){o.forEach(function(T){T(m)})}),g=function(N){ne||(ne=I()),o.indexOf(N)===-1&&o.push(N)},_=function(){ne&&ne.parentNode&&(ne.contentDocument&&ne.contentDocument.defaultView.removeEventListener("resize",k),ne.parentNode.removeChild(ne),m.removeAttribute(U.SizeSensorId),ne=void 0,o=[],w&&w())},S=function(N){var ie=o.indexOf(N);ie!==-1&&o.splice(ie,1),o.length===0&&ne&&_()};return{element:m,bind:g,destroy:_,unbind:S}};He.createSensor=ue},55202:function(Qt,He,p){"use strict";Object.defineProperty(He,"__esModule",{value:!0}),He.createSensor=void 0;var O=p(27774),U=ee(p(79301));function ee(A){return A&&A.__esModule?A:{default:A}}var ue=function(m,w){var ne=void 0,o=[],I=(0,U.default)(function(){o.forEach(function(T){T(m)})}),k=function(){var N=new ResizeObserver(I);return N.observe(m),I(),N},g=function(N){ne||(ne=k()),o.indexOf(N)===-1&&o.push(N)},_=function(){ne.disconnect(),o=[],ne=void 0,m.removeAttribute(O.SizeSensorId),w&&w()},S=function(N){var ie=o.indexOf(N);ie!==-1&&o.splice(ie,1),o.length===0&&ne&&_()};return{element:m,bind:g,destroy:_,unbind:S}};He.createSensor=ue},98040:function(Qt){Qt.exports=function(){var He=document.getSelection();if(!He.rangeCount)return function(){};for(var p=document.activeElement,O=[],U=0;U<He.rangeCount;U++)O.push(He.getRangeAt(U));switch(p.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":p.blur();break;default:p=null;break}return He.removeAllRanges(),function(){He.type==="Caret"&&He.removeAllRanges(),He.rangeCount||O.forEach(function(ee){He.addRange(ee)}),p&&p.focus()}}},1012:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return g}});var O=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),U=new Uint8Array(16);function ee(){if(!O)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(U)}var ue=/^(?:[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 A(_){return typeof _=="string"&&ue.test(_)}for(var m=A,w=[],ne=0;ne<256;++ne)w.push((ne+256).toString(16).substr(1));function o(_){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,T=(w[_[S+0]]+w[_[S+1]]+w[_[S+2]]+w[_[S+3]]+"-"+w[_[S+4]]+w[_[S+5]]+"-"+w[_[S+6]]+w[_[S+7]]+"-"+w[_[S+8]]+w[_[S+9]]+"-"+w[_[S+10]]+w[_[S+11]]+w[_[S+12]]+w[_[S+13]]+w[_[S+14]]+w[_[S+15]]).toLowerCase();if(!m(T))throw TypeError("Stringified UUID is invalid");return T}var I=o;function k(_,S,T){_=_||{};var N=_.random||(_.rng||ee)();if(N[6]=N[6]&15|64,N[8]=N[8]&63|128,S){T=T||0;for(var ie=0;ie<16;++ie)S[T+ie]=N[ie];return S}return I(N)}var g=k},93314:function(Qt){"use strict";Qt.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=="},65157:function(Qt,He,p){"use strict";p.d(He,{ZP:function(){return Ya}});const O=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},U=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=ee},ee=Number.MAX_SAFE_INTEGER||9007199254740991;let ue=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),A=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),m=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var w={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},ne={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{constructor(e,t=0,n=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_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*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 I{constructor(e,t,n,r=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_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=r,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new o(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,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_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function k(a,e,t){return(e=N(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function g(){return g=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},g.apply(null,arguments)}function _(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function S(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_(Object(t),!0).forEach(function(n){k(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function T(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function N(a){var e=T(a,"string");return typeof e=="symbol"?e:e+""}class ie{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=z,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const z=function(){},$={trace:z,debug:z,log:z,warn:z,info:z,error:z};function G(){return g({},$)}function Q(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):z}function L(a,e,t){return e[a]?e[a].bind(e):Q(a,t)}const D=G();function Y(a,e,t){const n=G();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=L(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.0`)}catch(i){return G()}r.forEach(i=>{D[i]=L(i,a)})}else g(D,n);return n}const j=D;function xe(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ce(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function Se(a,e){const t=Object.keys(a),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(s=>n.indexOf(s)===-1)}function ge(a,e=!1){if(typeof TextDecoder!="undefined"){const c=new TextDecoder("utf-8").decode(a);if(e){const v=c.indexOf("\0");return v!==-1?c.substring(0,v):c}return c.replace(/\0/g,"")}const t=a.length;let n,r,i,s="",u=0;for(;u<t;){if(n=a[u++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=a[u++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=a[u++],i=a[u++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return s}const de={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}};function W(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var be={exports:{}},F;function ce(){return F||(F=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(f,c,v){if(v=v||{},f=f.trim(),c=c.trim(),!c){if(!v.alwaysNormalize)return f;var E=u.parseURL(f);if(!E)throw new Error("Error trying to parse base URL.");return E.path=u.normalizePath(E.path),u.buildURLFromParts(E)}var K=u.parseURL(c);if(!K)throw new Error("Error trying to parse relative URL.");if(K.scheme)return v.alwaysNormalize?(K.path=u.normalizePath(K.path),u.buildURLFromParts(K)):c;var X=u.parseURL(f);if(!X)throw new Error("Error trying to parse base URL.");if(!X.netLoc&&X.path&&X.path[0]!=="/"){var V=r.exec(X.path);X.netLoc=V[1],X.path=V[2]}X.netLoc&&!X.path&&(X.path="/");var Te={scheme:X.scheme,netLoc:K.netLoc,path:null,params:K.params,query:K.query,fragment:K.fragment};if(!K.netLoc&&(Te.netLoc=X.netLoc,K.path[0]!=="/"))if(!K.path)Te.path=X.path,K.params||(Te.params=X.params,K.query||(Te.query=X.query));else{var Le=X.path,Ye=Le.substring(0,Le.lastIndexOf("/")+1)+K.path;Te.path=u.normalizePath(Ye)}return Te.path===null&&(Te.path=v.alwaysNormalize?u.normalizePath(K.path):K.path),u.buildURLFromParts(Te)},parseURL:function(f){var c=n.exec(f);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(i,"");f.length!==(f=f.replace(s,"")).length;);return f.split("").reverse().join("")},buildURLFromParts:function(f){return f.scheme+f.netLoc+f.path+f.params+f.query+f.fragment}};a.exports=u})()}(be)),be.exports}var q=ce();class y{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 x={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class Z{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,et(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[x.AUDIO]:null,[x.VIDEO]:null,[x.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new y),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=q.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[x.AUDIO]=null,e[x.VIDEO]=null,e[x.AUDIOVIDEO]=null}}function me(a){return a.sn!=="initSegment"}class Ne extends Z{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=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.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,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 byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(O(e)&&O(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=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 n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)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),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!O(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return me(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}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,n,r,i,s=!1){const{elementaryStreams:u}=this,f=u[e];if(!f){u[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}f.startPTS=Math.min(f.startPTS,t),f.endPTS=Math.max(f.endPTS,n),f.startDTS=Math.min(f.startDTS,r),f.endDTS=Math.max(f.endDTS,i)}}class Ue extends Z{constructor(e,t,n,r,i){super(n),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.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.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)}}function ze(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||ze(t,e)}}function et(a,e){const t=ze(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const pt=Math.pow(2,32)-1,gt=[].push,at={video:1,audio:2,id3:3,text:4};function Ot(a){return String.fromCharCode.apply(null,a)}function en(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function Rt(a,e){const t=ut(a,e);return t<0?4294967296+t:t}function Zt(a,e){let t=Rt(a,e);return t*=Math.pow(2,32),t+=Rt(a,e+4),t}function ut(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Ct(a,e,t){a[e]=t>>24,a[e+1]=t>>16&255,a[e+2]=t>>8&255,a[e+3]=t&255}function he(a){const e=a.byteLength;for(let t=0;t<e;){const n=Rt(a,t);if(n>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=n>1?t+n:e}return!1}function pe(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=Rt(a,r),s=Ot(a.subarray(r+4,r+8)),u=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,u));else{const f=pe(a.subarray(r+8,u),e.slice(1));f.length&>.apply(t,f)}r=u}return t}function le(a){const e=[],t=a[0];let n=8;const r=Rt(a,n);n+=4;let i=0,s=0;t===0?(i=Rt(a,n),s=Rt(a,n+4),n+=8):(i=Zt(a,n),s=Zt(a,n+8),n+=16),n+=2;let u=a.length+s;const f=en(a,n);n+=2;for(let c=0;c<f;c++){let v=n;const E=Rt(a,v);v+=4;const K=E&2147483647;if((E&2147483648)>>>31===1)return j.warn("SIDX has hierarchical references (not supported)"),null;const V=Rt(a,v);v+=4,e.push({referenceSize:K,subsegmentDuration:V,info:{duration:V/r,start:u,end:u+K-1}}),u+=K,v+=4,n=v}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:f,references:e}}function J(a){const e=[],t=pe(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=pe(i,["tkhd"])[0];if(s){let u=s[0];const f=Rt(s,u===0?12:20),c=pe(i,["mdia","mdhd"])[0];if(c){u=c[0];const v=Rt(c,u===0?12:20),E=pe(i,["mdia","hdlr"])[0];if(E){const K=Ot(E.subarray(8,12)),X={soun:x.AUDIO,vide:x.VIDEO}[K],V=pe(i,["mdia","minf","stbl","stsd"])[0],Te=Ie(V);X?(e[f]={timescale:v,type:X,stsd:Te},e[X]=S({timescale:v,id:f},Te)):e[f]={timescale:v,type:K,stsd:Te}}}}}return pe(a,["moov","mvex","trex"]).forEach(r=>{const i=Rt(r,4),s=e[i];s&&(s.default={duration:Rt(r,12),flags:Rt(r,20)})}),e}function Ie(a){const e=a.subarray(8),t=e.subarray(86),n=Ot(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const c=pe(e,[n])[0].subarray(n==="enca"?28:78);pe(c,["sinf"]).forEach(E=>{const K=pe(E,["schm"])[0];if(K){const X=Ot(K.subarray(4,8));if(X==="cbcs"||X==="cenc"){const V=pe(E,["frma"])[0];V&&(r=Ot(V))}}})}const u=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const f=pe(t,["avcC"])[0];r+="."+P(f[1])+P(f[2])+P(f[3]),i=H(u==="avc1"?"dva1":"dvav",t);break}case"mp4a":{const f=pe(e,[n])[0],c=pe(f.subarray(28),["esds"])[0];if(c&&c.length>7){let v=4;if(c[v++]!==3)break;v=R(c,v),v+=2;const E=c[v++];if(E&128&&(v+=2),E&64&&(v+=c[v++]),c[v++]!==4)break;v=R(c,v);const K=c[v++];if(K===64)r+="."+P(K);else break;if(v+=12,c[v++]!==5)break;v=R(c,v);const X=c[v++];let V=(X&248)>>3;V===31&&(V+=1+((X&7)<<3)+((c[v]&224)>>5)),r+="."+V}break}case"hvc1":case"hev1":{const f=pe(t,["hvcC"]);if(f){const c=f[0],v=c[1],E=["","A","B","C"][v>>6],K=v&31,X=Rt(c,2),V=(v&32)>>5?"H":"L",Te=c[12],Le=c.subarray(6,12);r+="."+E+K,r+="."+X.toString(16).toUpperCase(),r+="."+V+Te;let Ye="";for(let mt=Le.length;mt--;){const lt=Le[mt];(lt||Ye)&&(Ye="."+lt.toString(16).toUpperCase()+Ye)}r+=Ye}i=H(u=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=H(r,t)||r;break}case"vp09":{const f=pe(t,["vpcC"])[0],c=f[4],v=f[5],E=f[6]>>4&15;r+="."+fe(c)+"."+fe(v)+"."+fe(E);break}case"av01":{const f=pe(t,["av1C"])[0],c=f[1]>>>5,v=f[1]&31,E=f[2]>>>7?"H":"M",K=(f[2]&64)>>6,X=(f[2]&32)>>5,V=c===2&&K?X?12:10:K?10:8,Te=(f[2]&16)>>4,Le=(f[2]&8)>>3,Ye=(f[2]&4)>>2,mt=f[2]&3;r+="."+c+"."+fe(v)+E+"."+fe(V)+"."+Te+"."+Le+Ye+mt+"."+fe(1)+"."+fe(1)+"."+fe(1)+"."+0,i=H("dav1",t);break}}return{codec:r,encrypted:s,supplemental:i}}function H(a,e){const t=pe(e,["dvvC"]),n=t.length?t[0]:pe(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+fe(r)+"."+fe(i)}}function R(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function P(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function fe(a){return(a<10?"0":"")+a}function oe(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&pe(a,["moov","trak"]).forEach(r=>{const s=pe(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=pe(s,["enca"]);const f=u.length>0;f||(u=pe(s,["encv"])),u.forEach(c=>{const v=f?c.subarray(28):c.subarray(78);pe(v,["sinf"]).forEach(K=>{const X=te(K);if(X){const V=X.subarray(8,24);V.some(Te=>Te!==0)||(j.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${de.hexDump(V)} -> ${de.hexDump(t)}`),X.set(t,8))}})})}),a}function te(a){const e=pe(a,["schm"])[0];if(e){const t=Ot(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return pe(a,["schi","tenc"])[0]}return null}function Ae(a,e){return pe(e,["moof","traf"]).reduce((t,n)=>{const r=pe(n,["tfdt"])[0],i=r[0],s=pe(n,["tfhd"]).reduce((u,f)=>{const c=Rt(f,4),v=a[c];if(v){let E=Rt(r,4);if(i===1){if(E===pt)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;E*=pt+1,E+=Rt(r,8)}const K=v.timescale||9e4,X=E/K;if(O(X)&&(u===null||X<u))return X}return u},null);return s!==null&&O(s)&&(t===null||s<t)?s:t},null)}function je(a,e){let t=0,n=0,r=0;const i=pe(a,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=pe(u,["tfhd"])[0],c=Rt(f,4),v=e[c];if(!v)continue;const E=v.default,K=Rt(f,0)|(E==null?void 0:E.flags);let X=E==null?void 0:E.duration;K&8&&(K&2?X=Rt(f,12):X=Rt(f,8));const V=v.timescale||9e4,Te=pe(u,["trun"]);for(let Le=0;Le<Te.length;Le++){if(t=ke(Te[Le]),!t&&X){const Ye=Rt(Te[Le],4);t=X*Ye}v.type===x.VIDEO?n+=t/V:v.type===x.AUDIO&&(r+=t/V)}}if(n===0&&r===0){let s=1/0,u=0,f=0;const c=pe(a,["sidx"]);for(let v=0;v<c.length;v++){const E=le(c[v]);if(E!=null&&E.references){s=Math.min(s,E.earliestPresentationTime/E.timescale);const K=E.references.reduce((X,V)=>X+V.info.duration||0,0);u=Math.max(u,K+E.earliestPresentationTime/E.timescale),f=u-s}}if(f&&O(f))return f}return n||r}function ke(a){const e=Rt(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=Rt(a,4);for(let i=0;i<r;i++){if(e&256){const s=Rt(a,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function Be(a,e,t){pe(e,["moof","traf"]).forEach(n=>{pe(n,["tfhd"]).forEach(r=>{const i=Rt(r,4),s=a[i];if(!s)return;const u=s.timescale||9e4;pe(n,["tfdt"]).forEach(f=>{const c=f[0],v=t*u;if(v){let E=Rt(f,4);if(c===0)E-=v,E=Math.max(E,0),Ct(f,4,E);else{E*=Math.pow(2,32),E+=Rt(f,8),E-=v,E=Math.max(E,0);const K=Math.floor(E/(pt+1)),X=Math.floor(E%(pt+1));Ct(f,4,K),Ct(f,8,X)}}})})})}function qe(a){const e={valid:null,remainder:null},t=pe(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=a.slice(0,n.byteOffset-8),e.remainder=a.slice(n.byteOffset-8),e}function Qe(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function Ve(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return pe(n,["moof"]).map(f=>{const c=f.byteOffset-8;pe(f,["traf"]).map(E=>{const K=pe(E,["tfdt"]).map(X=>{const V=X[0];let Te=Rt(X,4);return V===1&&(Te*=Math.pow(2,32),Te+=Rt(X,8)),Te/r})[0];return K!==void 0&&(a=K),pe(E,["tfhd"]).map(X=>{const V=Rt(X,4),Te=Rt(X,0)&16777215,Le=(Te&1)!==0,Ye=(Te&2)!==0,mt=(Te&8)!==0;let lt=0;const kt=(Te&16)!==0;let Nt=0;const on=(Te&32)!==0;let $t=8;V===i&&(Le&&($t+=8),Ye&&($t+=4),mt&&(lt=Rt(X,$t),$t+=4),kt&&(Nt=Rt(X,$t),$t+=4),on&&($t+=4),e.type==="video"&&(s=xt(e.codec)),pe(E,["trun"]).map(qt=>{const bn=qt[0],Gt=Rt(qt,0)&16777215,Zn=(Gt&1)!==0;let vr=0;const Ci=(Gt&4)!==0,qr=(Gt&256)!==0;let Hr=0;const Rr=(Gt&512)!==0;let Zr=0;const zr=(Gt&1024)!==0,jn=(Gt&2048)!==0;let Yn=0;const ui=Rt(qt,4);let ni=8;Zn&&(vr=Rt(qt,ni),ni+=4),Ci&&(ni+=4);let wi=vr+c;for(let Fi=0;Fi<ui;Fi++){if(qr?(Hr=Rt(qt,ni),ni+=4):Hr=lt,Rr?(Zr=Rt(qt,ni),ni+=4):Zr=Nt,zr&&(ni+=4),jn&&(bn===0?Yn=Rt(qt,ni):Yn=ut(qt,ni),ni+=4),e.type===x.VIDEO){let Vi=0;for(;Vi<Zr;){const ns=Rt(n,wi);if(wi+=4,Dt(s,n[wi])){const Ws=n.subarray(wi,wi+ns);vt(Ws,s?2:1,a+Yn/r,t)}wi+=ns,Vi+=ns+4}}a+=Hr/r}}))})})}),t}function xt(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Dt(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function vt(a,e,t,n){const r=Bt(a);let i=0;i+=e;let s=0,u=0,f=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;f=r[i++],s+=f}while(f===255);u=0;do{if(i>=r.length)break;f=r[i++],u+=f}while(f===255);const c=r.length-i;let v=i;if(u<c)i+=u;else if(u>c){j.error(`Malformed SEI payload. ${u} is too small, only ${c} bytes left to parse.`);break}if(s===4){if(r[v++]===181){const K=en(r,v);if(v+=2,K===49){const X=Rt(r,v);if(v+=4,X===1195456820){const V=r[v++];if(V===3){const Te=r[v++],Le=31&Te,Ye=64&Te,mt=Ye?2+Le*3:0,lt=new Uint8Array(mt);if(Ye){lt[0]=Te;for(let kt=1;kt<mt;kt++)lt[kt]=r[v++]}n.push({type:V,payloadType:s,pts:t,bytes:lt})}}}}}else if(s===5&&u>16){const E=[];for(let V=0;V<16;V++){const Te=r[v++].toString(16);E.push(Te.length==1?"0"+Te:Te),(V===3||V===5||V===7||V===9)&&E.push("-")}const K=u-16,X=new Uint8Array(K);for(let V=0;V<K;V++)X[V]=r[v++];n.push({payloadType:s,pts:t,uuid:E.join(""),userData:ge(X),userDataBytes:X})}}}function Bt(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function jt(a){const e=a[0];let t="",n="",r=0,i=0,s=0,u=0,f=0,c=0;if(e===0){for(;Ot(a.subarray(c,c+1))!=="\0";)t+=Ot(a.subarray(c,c+1)),c+=1;for(t+=Ot(a.subarray(c,c+1)),c+=1;Ot(a.subarray(c,c+1))!=="\0";)n+=Ot(a.subarray(c,c+1)),c+=1;n+=Ot(a.subarray(c,c+1)),c+=1,r=Rt(a,12),i=Rt(a,16),u=Rt(a,20),f=Rt(a,24),c=28}else if(e===1){c+=4,r=Rt(a,c),c+=4;const E=Rt(a,c);c+=4;const K=Rt(a,c);for(c+=4,s=Ru(2,32)*E+K,U(s)||(s=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=Rt(a,c),c+=4,f=Rt(a,c),c+=4;Ot(a.subarray(c,c+1))!=="\0";)t+=Ot(a.subarray(c,c+1)),c+=1;for(t+=Ot(a.subarray(c,c+1)),c+=1;Ot(a.subarray(c,c+1))!=="\0";)n+=Ot(a.subarray(c,c+1)),c+=1;n+=Ot(a.subarray(c,c+1)),c+=1}const v=a.subarray(c,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:v}}function C(a,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(a,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function B(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),C([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}function yt(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let n=0;for(;n+32<t;){const r=new DataView(a,n),i=ye(r);e.push(i),n+=i.size}}return e}function ye(a){const e=a.getUint32(0),t=a.byteOffset,n=a.byteLength;if(n<e)return{offset:t,size:n};if(a.getUint32(4)!==1886614376)return{offset:t,size:e};const i=a.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=a.buffer,u=de.hexDump(new Uint8Array(s,t+12,16)),f=a.getUint32(28);let c=null,v=null;if(i===0){if(e-32<f||f<22)return{offset:t,size:e};v=new Uint8Array(s,t+32,f)}else if(i===1){if(!f||n<t+32+f*16+16)return{offset:t,size:e};c=[];for(let E=0;E<f;E++)c.push(new Uint8Array(s,t+32+E*16,16))}return{version:i,systemId:u,kids:c,data:v,offset:t,size:e}}const Me=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Sn={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,dav1:.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 it(a,e){const t=Sn[e];return!!t&&!!t[a.slice(0,4)]}function nt(a,e,t=!0){return!a.split(",").some(n=>!rt(n,e,t))}function rt(a,e,t=!0){var n;const r=xe(t);return(n=r==null?void 0:r.isTypeSupported(Ee(a,e)))!=null?n:!1}function Ee(a,e){return`${e}/mp4;codecs=${a}`}function De(a){if(a){const e=a.substring(0,4);return Sn.video[e]}return 2}function Fe(a){const e=Me();return a.split(",").reduce((t,n)=>{const i=e&&xt(n)?9:Sn.video[n];return i?(i*2+t)/(t?3:2):(Sn.audio[n]+t)/(t?2:1)},0)}const tt={};function _e(a,e=!0){if(tt[a])return tt[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let r=0;r<t.length;r++){var n;if(rt(t[r],"audio",e))return tt[a]=t[r],t[r];if(t[r]==="mp3"&&(n=xe(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Jt=/flac|opus|mp4a\.40\.34/i;function Ze(a,e=!0){return a.replace(Jt,t=>_e(t.toLowerCase(),e))}function xn(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)it(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function Rn(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let n=t.length;n--;)if(t[n].substring(0,4)===a.substring(0,4))return t[n]}return t[0]}}return e||a}function Wn(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}function yr(a){if(a.startsWith("av01.")){const e=a.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return a}function vn(a){const e=xe(a)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function wn(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Xe={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Lt(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}const Wt={};function Ke(a,e,t,n,r,i){const s=a.audioCodec?a.audioGroups:null,u=i==null?void 0:i.audioCodec,f=i==null?void 0:i.channels,c=f?parseInt(f):u?1/0:2;let v=null;if(s!=null&&s.length)try{s.length===1&&s[0]?v=e.groups[s[0]].channels:v=s.reduce((E,K)=>{if(K){const X=e.groups[K];if(!X)throw new Error(`Audio track group ${K} not found`);Object.keys(X.channels).forEach(V=>{E[V]=(E[V]||0)+X.channels[V]})}return E},{2:0})}catch(E){return!0}return a.videoCodec!==void 0&&(a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(n,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(r,8e6))||!!v&&O(c)&&Object.keys(v).some(E=>parseInt(E)>c)}function Oe(a,e,t){const n=a.videoCodec,r=a.audioCodec;if(!n&&!r||!t)return Promise.resolve(Xe);const i=[];if(n){const s={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},u=a.videoRange;u!=="SDR"&&(s.transferFunction=u.toLowerCase());const f=n.split(","),c=navigator.userAgent;if(f.some(v=>xt(v))&&Me())return Promise.resolve(Lt(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${c})`),i));i.push.apply(i,f.map(v=>({type:"media-source",video:S(S({},s),{},{contentType:Ee(yr(v),"video")})})))}return r&&a.audioGroups&&a.audioGroups.forEach(s=>{var u;s&&((u=e.groups[s])==null||u.tracks.forEach(f=>{if(f.groupId===s){const c=f.channels||"",v=parseFloat(c);O(v)&&v>2&&i.push.apply(i,r.split(",").map(E=>({type:"media-source",audio:{contentType:Ee(E,"audio"),channels:""+v}})))}}))}),Promise.all(i.map(s=>{const u=_t(s);return Wt[u]||(Wt[u]=t.decodingInfo(s))})).then(s=>({supported:!s.some(u=>!u.supported),configurations:i,decodingInfoResults:s})).catch(s=>({supported:!1,configurations:i,decodingInfoResults:[],error:s}))}function _t(a){const{audio:e,video:t}=a,n=t||e;if(n){const r=wn(n.contentType);if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}const wt=["NONE","TYPE-0","TYPE-1",null];function rn(a){return wt.indexOf(a)>-1}const Xt=["SDR","PQ","HLG"];function cn(a){return!!a&&Xt.indexOf(a)>-1}var nn={No:"",Yes:"YES",v2:"v2"};function pn(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?nn.v2:nn.Yes:nn.No}class Ln{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}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 Kt{constructor(e){if(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.supplemental=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(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}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 zt(this._audioGroups,e)}hasSubtitleGroup(e){return zt(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.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 zt(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function ln(){if(typeof matchMedia=="function"){const a=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(a.media!==e.media)return a.matches===!0}return!1}function sn(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||Xt.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&ln(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const mn=a=>{const e=new WeakSet;return(t,n)=>{if(a&&(n=a(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},un=(a,e)=>JSON.stringify(a,mn(e));function ar(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,u=n==null?void 0:n.audioCodec,f=r==null?void 0:r.videoCodec,c=s&&parseInt(s)===2;let v=!1,E=!1,K=1/0,X=1/0,V=1/0,Te=1/0,Le=0,Ye=[];const{preferHDR:mt,allowedVideoRanges:lt}=sn(e,r);for(let qt=i.length;qt--;){const bn=a[i[qt]];v||(v=bn.channels[2]>0),K=Math.min(K,bn.minHeight),X=Math.min(X,bn.minFramerate),V=Math.min(V,bn.minBitrate),lt.filter(Zn=>bn.videoRanges[Zn]>0).length>0&&(E=!0)}K=O(K)?K:0,X=O(X)?X:0;const kt=Math.max(1080,K),Nt=Math.max(30,X);V=O(V)?V:t,t=Math.max(V,t),E||(e=void 0);const on=i.length>1;return{codecSet:i.reduce((qt,bn)=>{const Gt=a[bn];if(bn===qt)return qt;if(Ye=E?lt.filter(Zn=>Gt.videoRanges[Zn]>0):[],on){if(Gt.minBitrate>t)return On(bn,`min bitrate of ${Gt.minBitrate} > current estimate of ${t}`),qt;if(!Gt.hasDefaultAudio)return On(bn,"no renditions with default or auto-select sound found"),qt;if(u&&bn.indexOf(u.substring(0,4))%5!==0)return On(bn,`audio codec preference "${u}" not found`),qt;if(s&&!c){if(!Gt.channels[s])return On(bn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Gt.channels)})`),qt}else if((!u||c)&&v&&Gt.channels[2]===0)return On(bn,"no renditions with stereo sound found"),qt;if(Gt.minHeight>kt)return On(bn,`min resolution of ${Gt.minHeight} > maximum of ${kt}`),qt;if(Gt.minFramerate>Nt)return On(bn,`min framerate of ${Gt.minFramerate} > maximum of ${Nt}`),qt;if(!Ye.some(Zn=>Gt.videoRanges[Zn]>0))return On(bn,`no variants with VIDEO-RANGE of ${un(Ye)} found`),qt;if(f&&bn.indexOf(f.substring(0,4))%5!==0)return On(bn,`video codec preference "${f}" not found`),qt;if(Gt.maxScore<Le)return On(bn,`max score of ${Gt.maxScore} < selected max of ${Le}`),qt}return qt&&(Fe(bn)>=Fe(qt)||Gt.fragmentError>a[qt].fragmentError)?qt:(Te=Gt.minIndex,Le=Gt.maxScore,bn)},void 0),videoRanges:Ye,preferHDR:mt,minFramerate:X,minBitrate:V,minIndex:Te}}function On(a,e){j.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function tn(a){return a.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ct(a,e,t,n){return a.slice(t,n+1).reduce((r,i,s)=>{if(!i.codecSet)return r;const u=i.audioGroups;let f=r[i.codecSet];f||(r[i.codecSet]=f={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!u,fragmentError:0}),f.minBitrate=Math.min(f.minBitrate,i.bitrate);const c=Math.min(i.height,i.width);return f.minHeight=Math.min(f.minHeight,c),f.minFramerate=Math.min(f.minFramerate,i.frameRate),f.minIndex=Math.min(f.minIndex,s),f.maxScore=Math.max(f.maxScore,i.score),f.fragmentError+=i.fragmentError,f.videoRanges[i.videoRange]=(f.videoRanges[i.videoRange]||0)+1,u&&u.forEach(v=>{if(!v)return;const E=e.groups[v];E&&(f.hasDefaultAudio=f.hasDefaultAudio||e.hasDefaultAudio?E.hasDefault:E.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(E.channels).forEach(K=>{f.channels[K]=(f.channels[K]||0)+E.channels[K]}))}),r},{})}function ht(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function At(a,e,t){if("attrs"in a){const n=e.indexOf(a);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Ft(a,r,t))return n}return-1}function Ft(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:u}=a,f=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||Pt(i,e.lang))&&(i===void 0||e.assocLang===s)&&(u===void 0||e.default===u)&&(f===void 0||e.forced===f)&&(!("characteristics"in a)||Yt(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function Pt(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function Yt(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function Mt(a,e){const{audioCodec:t,channels:n}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function gn(a,e,t,n,r){const i=e[n],u=e.reduce((K,X,V)=>{const Te=X.uri;return(K[Te]||(K[Te]=[])).push(V),K},{})[i.uri];u.length>1&&(n=Math.max.apply(Math,u));const f=i.videoRange,c=i.frameRate,v=i.codecSet.substring(0,4),E=An(e,n,K=>{if(K.videoRange!==f||K.frameRate!==c||K.codecSet.substring(0,4)!==v)return!1;const X=K.audioGroups,V=t.filter(Te=>!X||X.indexOf(Te.groupId)!==-1);return At(a,V,r)>-1});return E>-1?E:An(e,n,K=>{const X=K.audioGroups,V=t.filter(Te=>!X||X.indexOf(Te.groupId)!==-1);return At(a,V,r)>-1})}function An(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}function Dn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Xn extends ie{constructor(e){super("abr",e.logger),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.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:i,hls:s}=this,{autoLevelEnabled:u,media:f}=s;if(!r||!f)return;const c=performance.now(),v=i?i.stats:r.stats,E=i?i.duration:r.duration,K=c-v.loading.start,X=s.minAutoLevel,V=r.level,Te=this._nextAutoLevel;if(v.aborted||v.loaded&&v.loaded===v.total||V<=X){this.clearTimer(),this._nextAutoLevel=-1;return}if(!u)return;const Le=Te>-1&&Te!==V,Ye=!!t||Le;if(!Ye&&(f.paused||!f.playbackRate||!f.readyState))return;const mt=s.mainForwardBufferInfo;if(!Ye&&mt===null)return;const lt=this.bwEstimator.getEstimateTTFB(),kt=Math.abs(f.playbackRate);if(K<=Math.max(lt,1e3*(E/(kt*2))))return;const Nt=mt?mt.len/kt:0,on=v.loading.first?v.loading.first-v.loading.start:-1,$t=v.loaded&&on>-1,qt=this.getBwEstimate(),bn=s.levels,Gt=bn[V],Zn=Math.max(v.loaded,Math.round(E*(r.bitrate||Gt.averageBitrate)/8));let vr=$t?K-on:K;vr<1&&$t&&(vr=Math.min(K,v.loaded*8/qt));const Ci=$t?v.loaded*1e3/vr:0,qr=lt/1e3,Hr=Ci?(Zn-v.loaded)/Ci:Zn*8/qt+qr;if(Hr<=Nt)return;const Rr=Ci?Ci*8:qt,Zr=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,zr=this.hls.config.abrBandWidthUpFactor;let jn=Number.POSITIVE_INFINITY,Yn;for(Yn=V-1;Yn>X;Yn--){const Fi=bn[Yn].maxBitrate,Vi=!bn[Yn].details||Zr;if(jn=this.getTimeToLoadFrag(qr,Rr,E*Fi,Vi),jn<Math.min(Nt,E+qr))break}if(jn>=Hr||jn>E*10)return;$t?this.bwEstimator.sample(K-Math.min(lt,on),v.loaded):this.bwEstimator.sampleTTFB(K);const ui=bn[Yn].maxBitrate;this.getBwEstimate()*zr>ui&&this.resetEstimator(ui);const ni=this.findBestLevel(ui,X,Yn,0,Nt,1,1);ni>-1&&(Yn=ni),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${V} is loading too slowly;
|
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
|
Time to underbuffer: ${Nt.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${Hr.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${jn.toFixed(3)} s
|
|
|
TTFB estimate: ${on|0} ms
|
|
|
Current BW estimate: ${O(qt)?qt|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Yn} @ ${ui|0} bps`),s.nextLoadLevel=s.nextAutoLevel=Yn,this.clearTimer();const wi=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===Yn&&Yn>0){const Fi=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Yn>0?"and switching down":""}
|
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
|
Time to underbuffer: ${Fi.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,Yn>X){let Vi=this.findBestLevel(this.hls.levels[X].bitrate,X,Yn,0,Fi,1,1);Vi===-1&&(Vi=X),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Vi,this.resetEstimator(this.hls.levels[Vi].bitrate)}}};Le||Hr>jn*2?wi():this.timer=self.setInterval(wi,jn*1e3),s.trigger(m.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:v})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.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 I(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(m.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 n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r: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 A.BUFFER_ADD_CODEC_ERROR:case A.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case A.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),u=i?i.stats:n.stats,f=s-u.loading.start,c=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&c>-1){const E=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(E,c),u.loaded)}else this.bwEstimator.sampleTTFB(f)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;O(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===ne.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],u=(s.loaded?s.loaded.bytes:0)+r.loaded,f=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:u,duration:f},s.realBitrate=Math.round(8*u/f)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(m.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==ne.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,u=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${u}`),u}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,u=t?t.duration:e?e.duration:0,f=this.getBwEstimate(),c=this.getStarvationDelay();let v=i.abrBandWidthFactor,E=i.abrBandWidthUpFactor;if(c){const Le=this.findBestLevel(f,s,r,c,0,v,E);if(Le>=0)return this.rebufferNotice=-1,Le}let K=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!c){const Le=this.bitrateTestDelay;Le&&(K=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-Le,this.info(`bitrate test took ${Math.round(1e3*Le)}ms, set first fragment max fetchDuration to ${Math.round(1e3*K)} ms`),v=E=1)}const X=this.findBestLevel(f,s,r,c,K,v,E);if(this.rebufferNotice!==X&&(this.rebufferNotice=X,this.info(`${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${X}`)),X>-1)return X;const V=n.levels[s],Te=n.loadLevelObj;return Te&&(V==null?void 0:V.bitrate)<Te.bitrate?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,s,u){var f;const c=r+i,v=this.lastLoadedFragLevel,E=v===-1?this.hls.firstLevel:v,{fragCurrent:K,partCurrent:X}=this,{levels:V,allAudioTracks:Te,loadLevel:Le,config:Ye}=this.hls;if(V.length===1)return 0;const mt=V[E],lt=!!((f=this.hls.latestLevelDetails)!=null&&f.live),kt=Le===-1||v===-1;let Nt,on="SDR",$t=(mt==null?void 0:mt.frameRate)||0;const{audioPreference:qt,videoPreference:bn}=Ye,Gt=this.audioTracksByGroup||(this.audioTracksByGroup=tn(Te));let Zn=-1;if(kt){if(this.firstSelection!==-1)return this.firstSelection;const Rr=this.codecTiers||(this.codecTiers=ct(V,Gt,t,n)),Zr=ar(Rr,on,e,qt,bn),{codecSet:zr,videoRanges:jn,minFramerate:Yn,minBitrate:ui,minIndex:ni,preferHDR:wi}=Zr;Zn=ni,Nt=zr,on=wi?jn[jn.length-1]:jn[0],$t=Yn,e=Math.max(e,ui),this.log(`picked start tier ${un(Zr)}`)}else Nt=mt==null?void 0:mt.codecSet,on=mt==null?void 0:mt.videoRange;const vr=X?X.duration:K?K.duration:0,Ci=this.bwEstimator.getEstimateTTFB()/1e3,qr=[];for(let Rr=n;Rr>=t;Rr--){var Hr;const Zr=V[Rr],zr=Rr>E;if(!Zr)continue;if(Ye.useMediaCapabilities&&!Zr.supportedResult&&!Zr.supportedPromise){const Vi=navigator.mediaCapabilities;typeof(Vi==null?void 0:Vi.decodingInfo)=="function"&&(Ke(Zr,Gt,on,$t,e,qt)||xt(Zr.videoCodec))?(Zr.supportedPromise=Oe(Zr,Gt,Vi),Zr.supportedPromise.then(ns=>{if(!this.hls)return;Zr.supportedResult=ns;const Ws=this.hls.levels,Vs=Ws.indexOf(Zr);ns.error?this.warn(`MediaCapabilities decodingInfo error: "${ns.error}" for level ${Vs} ${un(ns)}`):ns.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Vs} ${un(ns)}`),Vs>-1&&Ws.length>1&&(this.log(`Removing unsupported level ${Vs}`),this.hls.removeLevel(Vs),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):Zr.supportedResult=Xe}if((Nt&&Zr.codecSet!==Nt||on&&Zr.videoRange!==on||zr&&$t>Zr.frameRate||!zr&&$t>0&&$t<Zr.frameRate||Zr.supportedResult&&!((Hr=Zr.supportedResult.decodingInfoResults)!=null&&Hr[0].smooth))&&(!kt||Rr!==Zn)){qr.push(Rr);continue}const jn=Zr.details,Yn=(X?jn==null?void 0:jn.partTarget:jn==null?void 0:jn.averagetargetduration)||vr;let ui;zr?ui=u*e:ui=s*e;const ni=vr&&r>=vr*2&&i===0?Zr.averageBitrate:Zr.maxBitrate,wi=this.getTimeToLoadFrag(Ci,ui,ni*Yn,jn===void 0);if(ui>=ni&&(Rr===v||Zr.loadError===0&&Zr.fragmentError===0)&&(wi<=Ci||!O(wi)||lt&&!this.bitrateTestDelay||wi<c)){const Vi=this.forcedAutoLevel;return Rr!==Le&&(Vi===-1||Vi!==Le)&&(qr.length&&this.trace(`Skipped level(s) ${qr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${V[qr[0]].codecs}" ${V[qr[0]].videoRange}; not compatible with "${Nt}" ${on}`),this.info(`switch candidate:${E}->${Rr} adjustedbw(${Math.round(ui)})-bitrate=${Math.round(ui-ni)} ttfb:${Ci.toFixed(1)} avgDuration:${Yn.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${wi.toFixed(1)} firstSelection:${kt} codecSet:${Zr.codecSet} videoRange:${Zr.videoRange} hls.loadLevel:${Le}`)),kt&&(this.firstSelection=Rr),Rr}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const nr={search:function(a,e){let t=0,n=a.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=a[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function dr(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!O(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const r=a[a.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<a.length;++i){const s=a[i];if(mr(e,t,s))return s}return null}function En(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[1+a.sn-e[0].sn]||null;const u=a.endDTS-t;u>0&&u<15e-7&&(t+=15e-7),i&&a.level!==i.level&&i.end<=a.end&&(i=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&pr(t,n,i)===0||Cn(i,a,Math.min(r,n))))return i;const s=nr.search(e,pr.bind(null,t,n));return s&&(s!==a||!i)?s:i}function Cn(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return a.start<=n}return!1}function pr(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=a?1:t.start-n>a&&t.start?-1:0}function mr(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function Ir(a,e){return nr.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}function rr(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){const n=t.start,r=t.end;let i=a.fragments;if(!t.relurl){const{fragmentHint:s}=a;s&&(i=i.concat(s))}return nr.search(i,s=>s.cc<e||s.end<=n?1:s.cc>e||s.start>=r?-1:0)}return null}function ir(a){switch(a.details){case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_TIMEOUT:case A.LEVEL_LOAD_TIMEOUT:case A.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Cr(a,e){const t=ir(e);return a.default[`${t?"timeout":"error"}Retry`]}function tr(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Pr(a){return S(S({},a),{errorRetry:null,timeoutRetry:null})}function ei(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(Qn(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function Qn(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var zn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},dt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Bn extends ie{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(m.ERROR,this.onError,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.ERROR,this.onError,this),e.off(m.ERROR,this.onErrorOut,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.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)===ne.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case A.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=or();return}case A.FRAG_GAP:case A.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=zn.SendAlternateToPenaltyBox;return}case A.LEVEL_EMPTY_ERROR:case A.LEVEL_PARSING_ERROR:{var s,u;const c=t.parent===ne.MAIN?t.level:r.loadLevel;t.details===A.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(u=s.levelDetails)!=null&&u.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case A.LEVEL_LOAD_ERROR:case A.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case A.AUDIO_TRACK_LOAD_ERROR:case A.AUDIO_TRACK_LOAD_TIMEOUT:case A.SUBTITLE_LOAD_ERROR:case A.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const c=r.loadLevelObj;if(c&&(i.type===w.AUDIO_TRACK&&c.hasAudioGroup(i.groupId)||i.type===w.SUBTITLE_TRACK&&c.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=zn.SendAlternateToPenaltyBox,t.errorAction.flags=dt.MoveAllAlternatesMatchingHost;return}}return;case A.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=r.loadLevelObj,v=c==null?void 0:c.attrs["HDCP-LEVEL"];v?t.errorAction={action:zn.SendAlternateToPenaltyBox,flags:dt.MoveAllAlternatesMatchingHDCP,hdcpLevel:v}:this.keySystemError(t)}return;case A.BUFFER_ADD_CODEC_ERROR:case A.REMUX_ALLOC_ERROR:case A.BUFFER_APPEND_ERROR:if(!t.errorAction){var f;t.errorAction=this.getLevelSwitchAction(t,(f=t.level)!=null?f:r.loadLevel)}return;case A.INTERNAL_EXCEPTION:case A.BUFFER_APPENDING_ERROR:case A.BUFFER_FULL_ERROR:case A.LEVEL_SWITCH_ERROR:case A.BUFFER_STALLED_ERROR:case A.BUFFER_SEEK_OVER_HOLE:case A.BUFFER_NUDGE_ON_STALL:t.errorAction=or();return}t.type===ue.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 n=this.hls,r=Cr(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(ei(r,i,ir(e),e.response))return{action:zn.RetryRequest,flags:dt.None,retryConfig:r,retryCount:i};const u=this.getLevelSwitchAction(e,t);return r&&(u.retryConfig=r,u.retryCount=i),u}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,u=Cr(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((v,E)=>v+E.fragmentError,0);if(r&&(e.details!==A.FRAG_GAP&&r.fragmentError++,ei(u,f,ir(e),e.response)))return{action:zn.RetryRequest,flags:dt.None,retryConfig:u,retryCount:f};const c=this.getLevelSwitchAction(e,n);return u&&(c.retryConfig=u,c.retryCount=f),c}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const c=e.details;r.loadError++,c===A.BUFFER_APPEND_ERROR&&r.fragmentError++;let v=-1;const{levels:E,loadLevel:K,minAutoLevel:X,maxAutoLevel:V}=n;n.autoLevelEnabled||(n.loadLevel=-1);const Te=(i=e.frag)==null?void 0:i.type,Ye=(Te===ne.AUDIO&&c===A.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===A.BUFFER_ADD_CODEC_ERROR||c===A.BUFFER_APPEND_ERROR))&&E.some(({audioCodec:on})=>r.audioCodec!==on),lt=e.sourceBufferName==="video"&&(c===A.BUFFER_ADD_CODEC_ERROR||c===A.BUFFER_APPEND_ERROR)&&E.some(({codecSet:on,audioCodec:$t})=>r.codecSet!==on&&r.audioCodec===$t),{type:kt,groupId:Nt}=(s=e.context)!=null?s:{};for(let on=E.length;on--;){const $t=(on+K)%E.length;if($t!==K&&$t>=X&&$t<=V&&E[$t].loadError===0){var u,f;const qt=E[$t];if(c===A.FRAG_GAP&&Te===ne.MAIN&&e.frag){const bn=E[$t].details;if(bn){const Gt=En(e.frag,bn.fragments,e.frag.start);if(Gt!=null&&Gt.gap)continue}}else{if(kt===w.AUDIO_TRACK&&qt.hasAudioGroup(Nt)||kt===w.SUBTITLE_TRACK&&qt.hasSubtitleGroup(Nt))continue;if(Te===ne.AUDIO&&(u=r.audioGroups)!=null&&u.some(bn=>qt.hasAudioGroup(bn))||Te===ne.SUBTITLE&&(f=r.subtitleGroups)!=null&&f.some(bn=>qt.hasSubtitleGroup(bn))||Ye&&r.audioCodec===qt.audioCodec||!Ye&&r.audioCodec!==qt.audioCodec||lt&&r.codecSet===qt.codecSet)continue}v=$t;break}}if(v>-1&&n.loadLevel!==v)return e.levelRetry=!0,this.playlistError=0,{action:zn.SendAlternateToPenaltyBox,flags:dt.None,nextAutoLevel:v}}return{action:zn.SendAlternateToPenaltyBox,flags:dt.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case zn.DoNothing:break;case zn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==A.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 zn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:s}=n;switch(r){case dt.None:this.switchLevel(e,s);break;case dt.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=wt[wt.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){if(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,e.details===A.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=wn(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&this.hls.removeLevel(i)}}}function or(a){const e={action:zn.DoNothing,flags:dt.None};return a&&(e.resolved=!0),e}var qn={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Lr{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(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const s=i.end;if(i.start<=e&&s!==null&&e<=s)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const u=r[i[s]];if((u==null?void 0:u.body.type)===t&&(!n||u.buffered)){const f=u.body;if(f.start<=e&&e<=f.end)return f}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(u=>{const f=this.fragments[u];if(!f||s>=f.body.sn)return;if(!f.buffered&&(!f.loaded||i)){f.body.type===n&&this.removeFragment(f.body);return}const c=f.range[e];if(c){if(c.time.length===0){this.removeFragment(f.body);return}c.time.some(v=>{const E=!this.isTimeBuffered(v.startPTS,v.endPTS,t);return E&&this.removeFragment(f.body),E})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Vr(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(u=>{const f=n.elementaryStreams[u];if(!f)return;const c=t[u],v=s||f.partial===!0;i.range[u]=this.getBufferedTimes(n,e.part,v,c)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),Ur(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Vr(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,u=e.end,f=e.minEndPTS||u,c=e.maxStartPTS||s;for(let v=0;v<r.length;v++){const E=r.start(v)-this.bufferPadding,K=r.end(v)+this.bufferPadding;if(c>=E&&f<=K){i.time.push({startPTS:Math.max(s,r.start(v)),endPTS:Math.min(u,r.end(v))});break}else if(s<K&&u>E){const X=Math.max(s,r.start(v)),V=Math.min(u,r.end(v));V>X&&(i.partial=!0,i.time.push({startPTS:X,endPTS:V}))}else if(u<=E)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(c=>{const v=f[c];v&&Ur(v)&&(r=v.body.start-u,i=v.body.end+u,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=v.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||Ur(t))}getState(e){const t=Vr(e),n=this.fragments[t];return n?n.buffered?Ur(n)?qn.PARTIAL:qn.OK:qn.APPENDING:qn.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=Vr(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if(n.sn==="initSegment")return;const u=n.type;if(r){let c=this.activePartLists[u];c||(this.activePartLists[u]=c=[]),c.push(r)}this.timeRanges=i;const f=i[s];this.detectEvictedFragments(s,f,u,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Vr(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u)return;const f=u.body;f.type!==n||r&&!f.gap||f.start<t&&f.end>e&&(u.buffered||i)&&this.removeFragment(f)})}removeFragment(e){const t=Vr(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=n.filter(i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function Ur(a){var e,t,n;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((n=a.range.audiovideo)==null?void 0:n.partial))}function Vr(a){return`${a.type}_${a.level}_${a.sn}`}var fr={cbc:0,ctr:1};class Yr{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case fr.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case fr.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function Un(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class Pn{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),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],u=n[3],f=this.invSubMix,c=f[0],v=f[1],E=f[2],K=f[3],X=new Uint32Array(256);let V=0,Te=0,Le=0;for(Le=0;Le<256;Le++)Le<128?X[Le]=Le<<1:X[Le]=Le<<1^283;for(Le=0;Le<256;Le++){let Ye=Te^Te<<1^Te<<2^Te<<3^Te<<4;Ye=Ye>>>8^Ye&255^99,e[V]=Ye,t[Ye]=V;const mt=X[V],lt=X[mt],kt=X[lt];let Nt=X[Ye]*257^Ye*16843008;r[V]=Nt<<24|Nt>>>8,i[V]=Nt<<16|Nt>>>16,s[V]=Nt<<8|Nt>>>24,u[V]=Nt,Nt=kt*16843009^lt*65537^mt*257^V*16843008,c[Ye]=Nt<<24|Nt>>>8,v[Ye]=Nt<<16|Nt>>>16,E[Ye]=Nt<<8|Nt>>>24,K[Ye]=Nt,V?(V=mt^X[X[X[kt^mt]]],Te^=X[X[Te]]):V=Te=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let u,f;const c=this.keySchedule=new Uint32Array(s),v=this.invKeySchedule=new Uint32Array(s),E=this.sBox,K=this.rcon,X=this.invSubMix,V=X[0],Te=X[1],Le=X[2],Ye=X[3];let mt,lt;for(u=0;u<s;u++){if(u<i){mt=c[u]=t[u];continue}lt=mt,u%i===0?(lt=lt<<8|lt>>>24,lt=E[lt>>>24]<<24|E[lt>>>16&255]<<16|E[lt>>>8&255]<<8|E[lt&255],lt^=K[u/i|0]<<24):i>6&&u%i===4&&(lt=E[lt>>>24]<<24|E[lt>>>16&255]<<16|E[lt>>>8&255]<<8|E[lt&255]),c[u]=mt=(c[u-i]^lt)>>>0}for(f=0;f<s;f++)u=s-f,f&3?lt=c[u]:lt=c[u-4],f<4||u<=4?v[f]=lt:v[f]=V[E[lt>>>24]]^Te[E[lt>>>16&255]]^Le[E[lt>>>8&255]]^Ye[E[lt&255]],v[f]=v[f]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,u=this.invSubMix,f=u[0],c=u[1],v=u[2],E=u[3],K=this.uint8ArrayToUint32Array_(n);let X=K[0],V=K[1],Te=K[2],Le=K[3];const Ye=new Int32Array(e),mt=new Int32Array(Ye.length);let lt,kt,Nt,on,$t,qt,bn,Gt,Zn,vr,Ci,qr,Hr,Rr;const Zr=this.networkToHostOrderSwap;for(;t<Ye.length;){for(Zn=Zr(Ye[t]),vr=Zr(Ye[t+1]),Ci=Zr(Ye[t+2]),qr=Zr(Ye[t+3]),$t=Zn^i[0],qt=qr^i[1],bn=Ci^i[2],Gt=vr^i[3],Hr=4,Rr=1;Rr<r;Rr++)lt=f[$t>>>24]^c[qt>>16&255]^v[bn>>8&255]^E[Gt&255]^i[Hr],kt=f[qt>>>24]^c[bn>>16&255]^v[Gt>>8&255]^E[$t&255]^i[Hr+1],Nt=f[bn>>>24]^c[Gt>>16&255]^v[$t>>8&255]^E[qt&255]^i[Hr+2],on=f[Gt>>>24]^c[$t>>16&255]^v[qt>>8&255]^E[bn&255]^i[Hr+3],$t=lt,qt=kt,bn=Nt,Gt=on,Hr=Hr+4;lt=s[$t>>>24]<<24^s[qt>>16&255]<<16^s[bn>>8&255]<<8^s[Gt&255]^i[Hr],kt=s[qt>>>24]<<24^s[bn>>16&255]<<16^s[Gt>>8&255]<<8^s[$t&255]^i[Hr+1],Nt=s[bn>>>24]<<24^s[Gt>>16&255]<<16^s[$t>>8&255]<<8^s[qt&255]^i[Hr+2],on=s[Gt>>>24]<<24^s[$t>>16&255]<<16^s[qt>>8&255]<<8^s[bn&255]^i[Hr+3],mt[t]=Zr(lt^X),mt[t+1]=Zr(on^V),mt[t+2]=Zr(Nt^Te),mt[t+3]=Zr(kt^Le),X=Zn,V=vr,Te=Ci,Le=qr,t=t+4}return mt.buffer}}class Er{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=Mr(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Mr(a){switch(a){case fr.cbc:return"AES-CBC";case fr.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const ti=16;class Ri{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.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}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 n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Un(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((i,s)=>{const u=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(u,t,n,r);const f=this.flush();f?i(f.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:s,remainderData:u}=this;if(r!==fr.cbc||t.byteLength!==16)return j.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),u&&(e=Qe(u,e),this.remainderData=null);const f=this.getValidChunk(e);if(!f.length)return null;i&&(n=i);let c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new Pn),c.expandKey(t);const v=s;return this.currentResult=c.decrypt(f.buffer,0,n),this.currentIV=f.slice(-16).buffer,v||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new Er(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Yr(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(j.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%ti;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(j.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Hn=Math.pow(2,17);class ri{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 n=e.url;if(!n)return Promise.reject(new bi({type:ue.NETWORK_ERROR,details:A.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(V=>V[0]==="GAP")){f(di(e));return}else e.gap=!1;const c=this.loader=i?new i(r):new s(r),v=Xr(e);e.loader=c;const E=Pr(r.fragLoadPolicy.default),K={loadPolicy:E,timeout:E.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Hn};e.stats=c.stats;const X={onSuccess:(V,Te,Le,Ye)=>{this.resetLoader(e,c);let mt=V.data;Le.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(mt.slice(0,16)),mt=mt.slice(16)),u({frag:e,part:null,payload:mt,networkDetails:Ye})},onError:(V,Te,Le,Ye)=>{this.resetLoader(e,c),f(new bi({type:ue.NETWORK_ERROR,details:A.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:S({url:n,data:void 0},V),error:new Error(`HTTP Error ${V.code} ${V.text}`),networkDetails:Le,stats:Ye}))},onAbort:(V,Te,Le)=>{this.resetLoader(e,c),f(new bi({type:ue.NETWORK_ERROR,details:A.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Le,stats:V}))},onTimeout:(V,Te,Le)=>{this.resetLoader(e,c),f(new bi({type:ue.NETWORK_ERROR,details:A.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${K.timeout}ms`),networkDetails:Le,stats:V}))}};t&&(X.onProgress=(V,Te,Le,Ye)=>t({frag:e,part:null,payload:Le,networkDetails:Ye})),c.load(v,K,X)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){f(di(e,t));return}const c=this.loader=i?new i(r):new s(r),v=Xr(e,t);e.loader=c;const E=Pr(r.fragLoadPolicy.default),K={loadPolicy:E,timeout:E.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Hn};t.stats=c.stats,c.load(v,K,{onSuccess:(X,V,Te,Le)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);const Ye={frag:e,part:t,payload:X.data,networkDetails:Le};n(Ye),u(Ye)},onError:(X,V,Te,Le)=>{this.resetLoader(e,c),f(new bi({type:ue.NETWORK_ERROR,details:A.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:S({url:v.url,data:void 0},X),error:new Error(`HTTP Error ${X.code} ${X.text}`),networkDetails:Te,stats:Le}))},onAbort:(X,V,Te)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,c),f(new bi({type:ue.NETWORK_ERROR,details:A.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Te,stats:X}))},onTimeout:(X,V,Te)=>{this.resetLoader(e,c),f(new bi({type:ue.NETWORK_ERROR,details:A.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${K.timeout}ms`),networkDetails:Te,stats:X}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const f=Math.round(e.duration/t.duration),c=Math.min(Math.round(n.loaded/i),f),E=(f-c)*Math.round(n.loaded/c);n.total=n.loaded+E}else n.total=Math.max(n.loaded,n.total);const s=n.loading,u=r.loading;s.start?s.first+=u.first-u.start:(s.start=u.start,s.first=u.first),s.end=u.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Xr(a,e=null){const t=e||a,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(O(r)&&O(i)){var s;let u=r,f=i;if(a.sn==="initSegment"&&Mi((s=a.decryptdata)==null?void 0:s.method)){const c=i-r;c%16&&(f=i+(16-c%16)),r!==0&&(n.resetIV=!0,u=r-16)}n.rangeStart=u,n.rangeEnd=f}return n}function di(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ue.MEDIA_ERROR,details:A.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new bi(n)}function Mi(a){return a==="AES-128"||a==="AES-256"}class bi extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ii extends ie{constructor(e,t){super(e,t),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(){}}class Ti{constructor(e,t,n,r=0,i=-1,s=!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=oi(),this.buffering={audio:oi(),video:oi(),audiovideo:oi()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function oi(){return{start:0,executeStart:0,executeEnd:0,end:0}}const $i={length:0,start:()=>0,end:()=>0};class Tr{static isBuffered(e,t){if(e){const n=Tr.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=Tr.getBuffered(e);return Tr.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=Tr.bufferedRanges(e);if(r.length)return Tr.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((v,E)=>v.start-E.start||E.end-v.end);let r=-1,i=[];if(n)for(let v=0;v<e.length;v++){t>=e[v].start&&t<=e[v].end&&(r=v);const E=i.length;if(E){const K=i[E-1].end;e[v].start-K<n?e[v].end>K&&(i[E-1].end=e[v].end):i.push(e[v])}else i.push(e[v])}else i=e;let s=0,u,f=t,c=t;for(let v=0;v<i.length;v++){const E=i[v].start,K=i[v].end;if(r===-1&&t>=E&&t<=K&&(r=v),t+n>=E&&t<K)f=E,c=K,s=c-t;else if(t+n<E){u=E;break}}return{len:s,start:f||0,end:c||0,nextStart:u,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||$i}catch(t){return j.log("failed to get media.buffered",t),$i}}}const Yi=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ki(a){return Yi.test(a)}function Xi(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(Yi,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function Gr(a,e,t){let n=a.variableList;n||(a.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function cs(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const ms=/^(\d+)x(\d+)$/,us=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Fr{constructor(e,t){typeof e=="string"&&(e=Fr.parseAttrList(e,t)),g(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 n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}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 n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,i)=>(r[i.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=ms.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},i='"';for(us.lastIndex=0;(n=us.exec(e))!==null;){const s=n[1].trim();let u=n[2];const f=u.indexOf(i)===0&&u.lastIndexOf(i)===u.length-1;let c=!1;if(f)u=u.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":c=!0}if(t&&(f||c))u=Xi(t,u);else if(!c&&!f)switch(s){case"CLOSED-CAPTIONS":if(u==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":j.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=u}return r}}const ds="com.apple.hls.interstitial";function Cs(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Nn(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class Bi{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){j.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=g(new Fr({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const i=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);O(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(j.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*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 isInterstitial(){return this.class===ds}get isValid(){return!!this.id&&!this._badValueForSameId&&O(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const is=10;class gr{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.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!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.appliedTimelineOffset=void 0,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,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?O(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||is}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 fragmentStart(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[0].start: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 maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function xr(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function lr(a){switch(a){case"AES-128":case"AES-256":return fr.cbc;case"AES-256-CTR":return fr.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function Vn(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function Kr(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function si(a){const e=Kr(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Hi(a){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function Pi(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=Vn(s)):t=si(s)}}return t}const Ai=typeof self!="undefined"?self:void 0;var $r={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ni={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Ts(a){switch(a){case Ni.FAIRPLAY:return $r.FAIRPLAY;case Ni.PLAYREADY:return $r.PLAYREADY;case Ni.WIDEVINE:return $r.WIDEVINE;case Ni.CLEARKEY:return $r.CLEARKEY}}var Ns={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function fs(a){if(a===Ns.WIDEVINE)return $r.WIDEVINE;if(a===Ns.PLAYREADY)return $r.PLAYREADY;if(a===Ns.CENC||a===Ns.CLEARKEY)return $r.CLEARKEY}function as(a){switch(a){case $r.FAIRPLAY:return Ni.FAIRPLAY;case $r.PLAYREADY:return Ni.PLAYREADY;case $r.WIDEVINE:return Ni.WIDEVINE;case $r.CLEARKEY:return Ni.CLEARKEY}}function sr(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[$r.FAIRPLAY,$r.WIDEVINE,$r.PLAYREADY,$r.CLEARKEY].filter(r=>!!e[r]):[];return!n[$r.WIDEVINE]&&t&&n.push($r.WIDEVINE),n}const Or=function(a){return Ai!=null&&(a=Ai.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function _i(a,e,t,n){let r;switch(a){case $r.FAIRPLAY:r=["cenc","sinf"];break;case $r.WIDEVINE:case $r.PLAYREADY:r=["cenc"];break;case $r.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return Zi(r,e,t,n)}function Zi(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function gi(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const u=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(u){const f=Vn(u).subarray(0,16);return Hi(f),f}}return null}let gs={};class As{static clearKeyUriToKeyIdMap(){gs={}}constructor(e,t,n,r=[1],i=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=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!xr(e)}isSupported(){if(this.method){if(xr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Ni.FAIRPLAY:case Ni.WIDEVINE:case Ni.PLAYREADY:case Ni.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(xr(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(j.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=Hs(e);return new As(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=Pi(this.uri);if(t)switch(this.keyFormat){case Ni.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Ni.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=B(n,null,t),this.keyId=gi(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=gs[this.uri];if(!n){const r=Object.keys(gs).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),gs[this.uri]=n}this.keyId=n}return this}}function Hs(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const vs=/#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,oa=/#EXT-X-MEDIA:(.*)/g,ya=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ys=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),la=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|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 xs{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return q.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return ya.test(e)}static parseMasterPlaylist(e,t){const n=Ki(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];vs.lastIndex=0;let s;for(;(s=vs.exec(e))!=null;)if(s[1]){var u;const c=new Fr(s[1],r),v=Xi(r,s[2]),E={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:xs.resolve(v,t)},K=c.decimalResolution("RESOLUTION");K&&(E.width=K.width,E.height=K.height),Qs(c.CODECS,E);const X=c["SUPPLEMENTAL-CODECS"];X&&(E.supplemental={},Qs(X,E.supplemental)),(u=E.unknownCodecs)!=null&&u.length||i.push(E),r.levels.push(E)}else if(s[3]){const c=s[3],v=s[4];switch(c){case"SESSION-DATA":{const E=new Fr(v,r),K=E["DATA-ID"];K&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[K]=E);break}case"SESSION-KEY":{const E=ua(v,t,r);E.encrypted&&E.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(E)):j.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${v}"`);break}case"DEFINE":{{const E=new Fr(v,r);Gr(r,E,t)}break}case"CONTENT-STEERING":{const E=new Fr(v,r);r.contentSteering={uri:xs.resolve(E["SERVER-URI"],t),pathwayId:E["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Xs(v);break}}}const f=i.length>0&&i.length<r.levels.length;return r.levels=f?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,u={AUDIO:s.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:s.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(oa.lastIndex=0;(r=oa.exec(e))!==null;){const c=new Fr(r[1],n),v=c.TYPE;if(v){const E=u[v],K=i[v]||[];i[v]=K;const X=c.LANGUAGE,V=c["ASSOC-LANGUAGE"],Te=c.CHANNELS,Le=c.CHARACTERISTICS,Ye=c["INSTREAM-ID"],mt={attrs:c,bitrate:0,id:f++,groupId:c["GROUP-ID"]||"",name:c.NAME||X||"",type:v,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:X,url:c.URI?xs.resolve(c.URI,t):""};if(V&&(mt.assocLang=V),Te&&(mt.channels=Te),Le&&(mt.characteristics=Le),Ye&&(mt.instreamId=Ye),E!=null&&E.length){const lt=xs.findGroup(E,mt.groupId)||E[0];Us(mt,lt,"audioCodec"),Us(mt,lt,"textCodec")}K.push(mt)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var u;const f={url:t},c=new gr(t),v=c.fragments,E=[];let K=null,X=0,V=0,Te=0,Le=0,Ye=0,mt=null,lt=new Ne(r,f),kt,Nt,on,$t=-1,qt=!1,bn=null,Gt;if(Ys.lastIndex=0,c.m3u8=e,c.hasVariableRefs=Ki(e),((u=Ys.exec(e))==null?void 0:u[0])!=="#EXTM3U")return c.playlistParsingError=new Error("Missing format identifier #EXTM3U"),c;for(;(kt=Ys.exec(e))!==null;){qt&&(qt=!1,lt=new Ne(r,f),lt.playlistOffset=Te,lt.start=Te,lt.sn=X,lt.cc=Le,Ye&&(lt.bitrate=Ye),lt.level=n,K&&(lt.initSegment=K,K.rawProgramDateTime&&(lt.rawProgramDateTime=K.rawProgramDateTime,K.rawProgramDateTime=null),bn&&(lt.setByteRange(bn),bn=null)));const qr=kt[1];if(qr){lt.duration=parseFloat(qr);const Hr=(" "+kt[2]).slice(1);lt.title=Hr||null,lt.tagList.push(Hr?["INF",qr,Hr]:["INF",qr])}else if(kt[3]){if(O(lt.duration)){lt.playlistOffset=Te,lt.start=Te,on&&ji(lt,on,c),lt.sn=X,lt.level=n,lt.cc=Le,v.push(lt);const Hr=(" "+kt[3]).slice(1);lt.relurl=Xi(c,Hr),Qr(lt,mt,E),mt=lt,Te+=lt.duration,X++,V=0,qt=!0}}else{if(kt=kt[0].match(la),!kt){j.warn("No matches on slow regex match for level playlist!");continue}for(Nt=1;Nt<kt.length&&kt[Nt]===void 0;Nt++);const Hr=(" "+kt[Nt]).slice(1),Rr=(" "+kt[Nt+1]).slice(1),Zr=kt[Nt+2]?(" "+kt[Nt+2]).slice(1):null;switch(Hr){case"BYTERANGE":mt?lt.setByteRange(Rr,mt):lt.setByteRange(Rr);break;case"PROGRAM-DATE-TIME":lt.rawProgramDateTime=Rr,lt.tagList.push(["PROGRAM-DATE-TIME",Rr]),$t===-1&&($t=v.length);break;case"PLAYLIST-TYPE":c.type&&vi(c,Hr,kt),c.type=Rr.toUpperCase();break;case"MEDIA-SEQUENCE":c.startSN!==0?vi(c,Hr,kt):v.length>0&&os(c,Hr,kt),X=c.startSN=parseInt(Rr);break;case"SKIP":{c.skippedSegments&&vi(c,Hr,kt);const zr=new Fr(Rr,c),jn=zr.decimalInteger("SKIPPED-SEGMENTS");if(O(jn)){c.skippedSegments+=jn;for(let ui=jn;ui--;)v.push(null);X+=jn}const Yn=zr.enumeratedString("RECENTLY-REMOVED-DATERANGES");Yn&&(c.recentlyRemovedDateranges=(c.recentlyRemovedDateranges||[]).concat(Yn.split(" ")));break}case"TARGETDURATION":c.targetduration!==0&&vi(c,Hr,kt),c.targetduration=Math.max(parseInt(Rr),1);break;case"VERSION":c.version!==null&&vi(c,Hr,kt),c.version=parseInt(Rr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":c.live||vi(c,Hr,kt),c.live=!1;break;case"#":(Rr||Zr)&<.tagList.push(Zr?[Rr,Zr]:[Rr]);break;case"DISCONTINUITY":Le++,lt.tagList.push(["DIS"]);break;case"GAP":lt.gap=!0,lt.tagList.push([Hr]);break;case"BITRATE":lt.tagList.push([Hr,Rr]),Ye=parseInt(Rr)*1e3,O(Ye)?lt.bitrate=Ye:Ye=0;break;case"DATERANGE":{const zr=new Fr(Rr,c),jn=new Bi(zr,c.dateRanges[zr.ID],c.dateRangeTagCount);c.dateRangeTagCount++,jn.isValid||c.skippedSegments?c.dateRanges[jn.id]=jn:j.warn(`Ignoring invalid DATERANGE tag: "${Rr}"`),lt.tagList.push(["EXT-X-DATERANGE",Rr]);break}case"DEFINE":{{const zr=new Fr(Rr,c);"IMPORT"in zr?cs(c,zr,s):Gr(c,zr,t)}break}case"DISCONTINUITY-SEQUENCE":c.startCC!==0?vi(c,Hr,kt):v.length>0&&os(c,Hr,kt),c.startCC=Le=parseInt(Rr);break;case"KEY":{const zr=ua(Rr,t,c);if(zr.isSupported()){if(zr.method==="NONE"){on=void 0;break}on||(on={}),on[zr.keyFormat]&&(on=g({},on)),on[zr.keyFormat]=zr}else j.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Rr}"`);break}case"START":c.startTimeOffset=Xs(Rr);break;case"MAP":{const zr=new Fr(Rr,c);if(lt.duration){const jn=new Ne(r,f);ss(jn,zr,n,on),K=jn,lt.initSegment=K,K.rawProgramDateTime&&!lt.rawProgramDateTime&&(lt.rawProgramDateTime=K.rawProgramDateTime)}else{const jn=lt.byteRangeEndOffset;if(jn){const Yn=lt.byteRangeStartOffset;bn=`${jn-Yn}@${Yn}`}else bn=null;ss(lt,zr,n,on),K=lt,qt=!0}K.cc=Le;break}case"SERVER-CONTROL":{Gt&&vi(c,Hr,kt),Gt=new Fr(Rr),c.canBlockReload=Gt.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=Gt.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&Gt.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=Gt.optionalFloat("PART-HOLD-BACK",0),c.holdBack=Gt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{c.partTarget&&vi(c,Hr,kt);const zr=new Fr(Rr);c.partTarget=zr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let zr=c.partList;zr||(zr=c.partList=[]);const jn=V>0?zr[zr.length-1]:void 0,Yn=V++,ui=new Fr(Rr,c),ni=new Ue(ui,lt,f,Yn,jn);zr.push(ni),lt.duration+=ni.duration;break}case"PRELOAD-HINT":{const zr=new Fr(Rr,c);c.preloadHint=zr;break}case"RENDITION-REPORT":{const zr=new Fr(Rr,c);c.renditionReports=c.renditionReports||[],c.renditionReports.push(zr);break}default:j.warn(`line parsed but not handled: ${kt}`);break}}}mt&&!mt.relurl?(v.pop(),Te-=mt.duration,c.partList&&(c.fragmentHint=mt)):c.partList&&(Qr(lt,mt,E),lt.cc=Le,c.fragmentHint=lt,on&&ji(lt,on,c)),c.targetduration||(c.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const Zn=v.length,vr=v[0],Ci=v[Zn-1];if(Te+=c.skippedSegments*c.targetduration,Te>0&&Zn&&Ci){c.averagetargetduration=Te/Zn;const qr=Ci.sn;c.endSN=qr!=="initSegment"?qr:0,c.live||(Ci.endList=!0),vr&&c.startCC===void 0&&(c.startCC=vr.cc),$t>0&&(li(v,$t),vr&&E.unshift(vr))}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(Te+=c.fragmentHint.duration),c.totalduration=Te,E.length&&c.dateRangeTagCount&&vr&&Es(E,c),c.endCC=Le,c}}function Es(a,e){const t=a.length,n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let s=i.length;s--;){const u=e.dateRanges[i[s]],f=u.startDate.getTime();u.tagAnchor=n.ref;for(let c=t;c--;){const v=Ds(e,f,a,c,r);if(v!==-1){u.tagAnchor=e.fragments[v].ref;break}}}}function Ds(a,e,t,n,r){const i=t[n];if(i){const u=i.programDateTime;if(e>=u||n===0){var s;const f=(((s=t[n+1])==null?void 0:s.start)||r)-i.start;if(e<=u+f*1e3){const c=t[n].sn-a.startSN,v=a.fragments;if(v.length>t.length){const K=(t[n+1]||v[v.length-1]).sn-a.startSN;for(let X=K;X>c;X--){const V=v[X].programDateTime;if(e>=V&&e<V+v[X].duration*1e3)return X}}return c}}}return-1}function ua(a,e,t){var n,r;const i=new Fr(a,t),s=(n=i.METHOD)!=null?n:"",u=i.URI,f=i.hexadecimalInteger("IV"),c=i.KEYFORMATVERSIONS,v=(r=i.KEYFORMAT)!=null?r:"identity";u&&i.IV&&!f&&j.error(`Invalid IV: ${i.IV}`);const E=u?xs.resolve(u,e):"",K=(c||"1").split("/").map(Number).filter(Number.isFinite);return new As(s,E,v,K,f)}function Xs(a){const t=new Fr(a).decimalFloatingPoint("TIME-OFFSET");return O(t)?t:null}function Qs(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>it(i,n));r.length&&(e[`${n}Codec`]=r.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function Us(a,e,t){const n=e[t];n&&(a[t]=n)}function li(a,e){let t=a[e];for(let n=e;n--;){const r=a[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Qr(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function ss(a,e,t,n){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",n&&(a.levelkeys=n),a.initSegment=null}function ji(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}function vi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function os(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function ls(a,e){const t=e.startPTS;if(O(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.setStart(a.start+(a.minEndPTS-a.start)):e.setStart(a.start+a.duration):e.setStart(Math.max(a.start-e.duration,0))}function Is(a,e,t,n,r,i){n-t<=0&&(j.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let u=t,f=n;const c=e.startPTS,v=e.endPTS;if(O(c)){const Le=Math.abs(c-t);O(e.deltaPTS)?e.deltaPTS=Math.max(Le,e.deltaPTS):e.deltaPTS=Le,u=Math.max(t,c),t=Math.min(t,c),r=Math.min(r,e.startDTS),f=Math.min(n,v),n=Math.max(n,v),i=Math.max(i,e.endDTS)}const E=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=u,e.startDTS=r,e.endPTS=n,e.minEndPTS=f,e.endDTS=i;const K=e.sn;if(!a||K<a.startSN||K>a.endSN)return 0;let X;const V=K-a.startSN,Te=a.fragments;for(Te[V]=e,X=V;X>0;X--)ls(Te[X],Te[X-1]);for(X=V;X<Te.length-1;X++)ls(Te[X],Te[X+1]);return a.fragmentHint&&ls(Te[Te.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,E}function Ss(a,e){if(a===e)return;let t=null;const n=a.fragments;for(let f=n.length-1;f>=0;f--){const c=n[f].initSegment;if(c){t=c;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;ba(a,e,(f,c,v,E)=>{if(e.skippedSegments&&c.cc!==f.cc){const K=f.cc-c.cc;for(let X=v;X<E.length;X++)E[X].cc+=K}O(f.startPTS)&&O(f.endPTS)&&(c.setStart(c.startPTS=f.startPTS),c.startDTS=f.startDTS,c.maxStartPTS=f.maxStartPTS,c.endPTS=f.endPTS,c.endDTS=f.endDTS,c.minEndPTS=f.minEndPTS,c.setDuration(f.endPTS-f.startPTS),c.duration&&(r=c),e.PTSKnown=e.alignedSliding=!0),f.hasStreams&&(c.elementaryStreams=f.elementaryStreams),c.loader=f.loader,f.hasStats&&(c.stats=f.stats),f.initSegment&&(c.initSegment=f.initSegment,t=f.initSegment)});const i=e.fragments,s=e.fragmentHint?i.concat(e.fragmentHint):i;if(t&&s.forEach(f=>{var c;f&&(!f.initSegment||f.initSegment.relurl===((c=t)==null?void 0:c.relurl))&&(f.initSegment=t)}),e.skippedSegments)if(e.deltaUpdateFailed=i.some(f=>!f),e.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let f=e.skippedSegments;f--;)i.shift();e.startSN=i[0].sn}else{e.endCC=i[i.length-1].cc,e.canSkipDateRanges&&(e.dateRanges=Js(a.dateRanges,e));const f=a.fragments.filter(c=>c.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let c=1;c<s.length;c++)s[c].programDateTime===null&&Qr(s[c],s[c-1],f);Es(f,e)}Fs(a.partList,e.partList,(f,c)=>{c.elementaryStreams=f.elementaryStreams,c.stats=f.stats}),r?Is(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Bs(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const u=e.advancedDateTime;if(e.advanced&&u){const f=e.edge;e.driftStart||(e.driftStartTime=u,e.driftStart=f),e.driftEndTime=u,e.driftEnd=f}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function Js(a,e){const{dateRanges:t,recentlyRemovedDateranges:n}=e,r=g({},a);n&&n.forEach(u=>{delete r[u]});const s=Object.keys(r).length;return s&&Object.keys(t).forEach(u=>{const f=r[u],c=new Bi(t[u].attr,f);c.isValid?(r[u]=c,f||(c.tagOrder+=s)):j.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${un(t[u].attr)}"`)}),r}function Fs(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],u=e[r+n];s&&u&&s.index===u.index&&s.fragment.sn===u.fragment.sn?t(s,u):n--}}}function ba(a,e,t){const n=e.skippedSegments,r=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(n?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,f=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let c=r;c<=i;c++){const v=f[s+c];let E=u[c];if(n&&!E&&v&&(E=e.fragments[c]=v),v&&E){if(t(v,E,c,u),v.url&&v.url!==E.url){e.playlistParsingError=Pa(`media sequence mismatch ${E.sn}:`,a,e,v,E);return}else if(v.cc!==E.cc){e.playlistParsingError=Pa(`discontinuity sequence mismatch (${v.cc}!=${E.cc})`,a,e,v,E);return}}}}function Pa(a,e,t,n,r){return new Error(`${a} ${r.url}
|
|
|
Playlist starting @${e.startSN}
|
|
|
${e.m3u8}
|
|
|
|
|
|
Playlist starting @${t.startSN}
|
|
|
${t.m3u8}`)}function Bs(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,r=a.fragments,i=n>=0;let s=0;if(i&&n<r.length)s=r[n].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;qs(e,s)}function qs(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function wa(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function ea(a,e,t){if(!a)return null;let n=a.fragments[e-a.startSN];return n||(n=a.fragmentHint,n&&n.sn===e)?n:e<a.startSN&&t&&t.sn===e?t:null}function _a(a,e,t){return a?Ca(a.partList,e,t):null}function Ca(a,e,t){if(a)for(let n=a.length;n--;){const r=a[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function ca(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function ta(a,e){for(let n=0,r=a.length;n<r;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function Zs(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function Ta(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function Di(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Ta(t[n],a);e.fragmentHint&&Ta(e.fragmentHint,a),e.alignedSliding=!0}function Li(a,e){a&&(xi(e,a),!e.alignedSliding&&a&&hs(e,a),!e.alignedSliding&&a&&!e.skippedSegments&&Bs(a,e,!1))}function xi(a,e){if(!Zs(e,a))return;const t=Math.min(e.endCC,a.endCC),n=ta(e.fragments,t),r=ta(a.fragments,t);if(!n||!r)return;j.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;Di(i,a)}function hs(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(r=ta(n,s),i=ta(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=ta(t,r.cc)||t[Math.floor(t.length/2)]);const u=r.programDateTime,f=i.programDateTime;if(!u||!f)return;const c=(f-u)/1e3-(i.start-r.start);Di(c,a)}const rs={toString:function(a){let e="";const t=a.length;for(let n=0;n<t;n++)e+=`[${a.start(n).toFixed(3)}-${a.end(n).toFixed(3)}]`;return e}},yn={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 js extends ii{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=yn.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.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.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:u,media:f,mediaBuffer:c,state:v}=this,E=f?f.currentTime:0,K=Tr.bufferInfo(c||f,E,s.maxBufferHole);if(this.log(`media seeking to ${O(E)?E.toFixed(3):E}, state: ${v}`),this.state===yn.ENDED)this.resetLoadingState();else if(u){const X=s.maxFragLookUpTolerance,V=u.start-X,Te=u.start+u.duration+X;if(!K.len||Te<K.start||V>K.end){const Le=E>Te;(E<V||Le)&&(Le&&u.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),u.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(f){this.fragmentTracker.removeFragmentsInRange(E,1/0,this.playlistType,!0);const X=this.lastCurrentTime;if(E>X&&(this.lastCurrentTime=E),!this.loadingParts){const V=Math.max(K.end,E),Te=this.shouldLoadParts(this.getLevelDetails(),V);Te&&(this.log(`LL-Part loading ON after seeking to ${E.toFixed(2)} with buffer @${V.toFixed(2)}`),this.loadingParts=Te)}}!this.hls.hasEnoughToStart&&!K.len&&(this.log(`setting startPosition to ${E} because of seek before start`),this.nextLoadPosition=this.startPosition=E),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new ri(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ri(e.config)}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===yn.STOPPED)return;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=yn.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.nextStart;if(i&&i>r&&i<t.edge||this.media.currentTime<e.start)return!1;const u=t.partList;if(u!=null&&u.length){const c=u[u.length-1];return Tr.isBuffered(this.media,c.start+c.duration/2)}const f=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(f)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===yn.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=yn.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,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{const s=i.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(s,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state,u=i.frag;if(this.fragContextChanged(u)){(s===yn.FRAG_LOADING||!this.fragCurrent&&s===yn.PARSING)&&(this.fragmentTracker.removeFragment(u),this.state=yn.IDLE);return}"payload"in i&&(this.log(`Loaded ${u.type} sn: ${u.sn} of ${this.playlistLabel()} ${u.level}`),this.hls.trigger(m.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===yn.STOPPED||this.state===yn.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===qn.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),u=Math.max(e.duration,s?s.len:this.config.maxBufferLength),f=this.backtrackFragment;((f?e.sn-f.sn:0)===1||this.reduceMaxBufferLength(u,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===qn.PARTIAL&&n.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)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(m.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:i,payload:s}=n,u=i.decryptdata;if(s&&s.byteLength>0&&u!=null&&u.key&&u.iv&&xr(u.method)){const f=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),u.key.buffer,u.iv.buffer,lr(u.method)).catch(c=>{throw r.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:i}),c}).then(c=>{const v=self.performance.now();return r.trigger(m.FRAG_DECRYPTED,{frag:i,payload:c,stats:{tstart:f,tdecrypt:v}}),n.payload=c,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===yn.STOPPED||this.state===yn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==yn.STOPPED&&(this.state=yn.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.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){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?rs.toString(Tr.getBuffered(n)):"(detached)"})`),me(e)){var r;if(e.type!==ne.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(u=>!!s[u])){this.state=yn.IDLE;return}}const i=(r=this.levels)==null?void 0:r[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=yn.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(f=>!f),u=new Ti(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(u)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let u=null;e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=yn.KEY_LOADING,this.fragCurrent=e,u=this.keyLoader.load(e).then(E=>{if(!this.fragContextChanged(E.frag))return this.hls.trigger(m.KEY_LOADED,E),this.state===yn.KEY_LOADING&&(this.state=yn.IDLE),E}),this.hls.trigger(m.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(u=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments);const f=this.fragPrevious;if(me(e)&&(!f||e.sn!==f.sn)){const E=this.shouldLoadParts(t.details,e.end);E!==this.loadingParts&&(this.log(`LL-Part loading ${E?"ON":"OFF"} loading sn ${f==null?void 0:f.sn}->${e.sn}`),this.loadingParts=E)}if(n=Math.max(e.start,n||0),this.loadingParts&&me(e)){const E=s.partList;if(E&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const K=this.getNextPart(E,e,n);if(K>-1){const X=E[K];e=this.fragCurrent=X.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${X.index} (${K}/${E.length-1}) of ${this.fragInfo(e,!1,X)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=X.start+X.duration,this.state=yn.FRAG_LOADING;let V;return u?V=u.then(Te=>!Te||this.fragContextChanged(Te.frag)?null:this.doFragPartsLoad(e,X,t,r)).catch(Te=>this.handleFragLoadError(Te)):V=this.doFragPartsLoad(e,X,t,r).catch(Te=>this.handleFragLoadError(Te)),this.hls.trigger(m.FRAG_LOADING,{frag:e,part:X,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):V}else if(!e.url||this.loadedEndOfParts(E,n))return Promise.resolve(null)}}if(me(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${s?"["+s.startSN+"-"+s.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),O(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=yn.FRAG_LOADING;const c=this.config.progressive;let v;return c&&u?v=u.then(E=>!E||this.fragContextChanged(E==null?void 0:E.frag)?null:this.fragmentLoader.load(e,r)).catch(E=>this.handleFragLoadError(E)):v=Promise.all([this.fragmentLoader.load(e,c?r:void 0),u]).then(([E])=>(!c&&E&&r&&r(E),E)).catch(E=>this.handleFragLoadError(E)),this.hls.trigger(m.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):v}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var u;const f=[],c=(u=n.details)==null?void 0:u.partList,v=E=>{this.fragmentLoader.loadPart(e,E,r).then(K=>{f[E.index]=K;const X=K.part;this.hls.trigger(m.FRAG_LOADED,K);const V=_a(n.details,e.sn,E.index+1)||Ca(c,e.sn,E.index+1);if(V)v(V);else return i({frag:e,part:X,partsLoaded:f})}).catch(s)};v(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===A.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(m.ERROR,t)}else this.hls.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==yn.PARSING){!this.fragCurrent&&this.state!==yn.STOPPED&&this.state!==yn.ERROR&&(this.state=yn.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const u=this.getLevelDetails(),c=u&&n.sn>u.endSN||this.shouldLoadParts(u,n.end);c!==this.loadingParts&&(this.log(`LL-Part loading ${c?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=c),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e!=null&&e.partList){var n;const i=e.partList[0],s=i.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const u=t[r],f=u.details,c=s>-1?_a(f,i,s):null,v=c?c.fragment:ea(f,i,n);return v?(n&&n!==v&&(v.stats=n.stats),{frag:v,part:c,level:u}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==yn.PARSING)return;const{data1:u,data2:f}=e;let c=u;if(u&&f&&(c=Qe(u,f)),!((s=c)!=null&&s.length))return;const v={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:c};if(this.hls.trigger(m.BUFFER_APPENDING,v),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Tr.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Tr.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),u=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-u>s&&this.flushMainBuffer(u,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!O(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const i=Tr.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const u=Math.max(Math.min(i.nextStart,s.end)-t,r);return Tr.bufferInfo(e,t,u)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=ne.MAIN){var n;const r=(n=this.fragmentTracker)==null?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,u=i.lowLatencyMode&&!!t.partList;let f=null;if(t.live){const E=i.initialLiveManifestSize;if(r<E)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${E})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var c;u&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),f=this.getInitialLiveFragment(t,n);const K=this.hls.startPosition,X=this.hls.liveSyncPosition,V=f?(K!==-1&&K>=s?K:X)||f.start:e;this.log(`Setting startPosition to ${V} to match start frag at live edge. mainStart: ${K} liveSyncPosition: ${X} frag.start: ${(c=f)==null?void 0:c.start}`),this.startPosition=this.nextLoadPosition=V}}else e<=s&&(f=n[0]);if(!f){const E=this.loadingParts?t.partEnd:t.fragmentEnd;f=this.getFragmentAtPosition(e,E,t)}let v=this.filterReplacedPrimary(f,t);if(!v&&f){const E=f.sn-t.startSN;v=this.filterReplacedPrimary(n[E+1]||null,t)}return this.mapToInitFragWhenRequired(v)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===qn.OK||n===qn.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const u=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(u!==null&&n.len+u.len>=i){const f=s.sn;return this.loopSn!==f&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${f}`),this.loopSn=f),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(da(this.hls.config)){var e,t;if((e=this.hls.interstitialsManager)==null||(t=e.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(da(this.hls.config)&&e.type!==ne.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const i=n==null?void 0:n.playerQueue;if(i)for(let s=i.length;s--;){const u=i[s].interstitial;if(u.appendInPlace&&e.start>=u.startTime&&e.end<=u.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let u=0,f=e.length;u<f;u++){const c=e[u];if(s=s&&!c.independent,r>-1&&n<c.start)break;const v=c.loaded;v?r=-1:(i||c.independent||s)&&c.fragment===t&&(r=u),i=v}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){const n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=dr(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=Ir(t,n.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:u}=n;const{fragmentHint:f}=n,{maxFragLookUpTolerance:c}=r,v=n.partList,E=!!(this.loadingParts&&v!=null&&v.length&&f);E&&f&&!this.bitrateTest&&v[v.length-1].fragment.sn===f.sn&&(s=s.concat(f),u=f.sn);let K;if(e<t){var X;const Te=e<this.lastCurrentTime||e>t-c||(X=this.media)!=null&&X.paused||!this.startFragRequested?0:c;K=En(i,s,e,Te)}else K=s[s.length-1];if(K){const V=K.sn-n.startSN,Te=this.fragmentTracker.getState(K);if((Te===qn.OK||Te===qn.PARTIAL&&K.gap)&&(i=K),i&&K.sn===i.sn&&(!E||v[0].fragment.sn>K.sn||!n.live&&!E)&&i&&K.level===i.level){const Ye=s[V+1];K.sn<u&&this.fragmentTracker.getState(Ye)!==qn.OK?K=Ye:K=null}}return K}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,u=e.alignedSliding&&O(i);if(s||!u&&!i){Li(n,e);const f=e.fragmentStart;return this.log(`Live playlist sliding: ${f.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),f}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&O(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&me(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==yn.FRAG_LOADING_WAITING_RETRY)&&(this.state=yn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const V=this.getCurrentContext(t.chunkMeta);V&&(t.frag=V.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===A.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:u,flags:f,retryCount:c=0,retryConfig:v}=s||{},E=!!s&&!!v,K=E&&u===zn.RetryRequest,X=E&&!s.resolved&&f===dt.MoveAllAlternatesMatchingHost;if(!K&&X&&me(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),s.resolved=!0;else if((K||X)&&c<v.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const V=tr(v,c);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${c+1}/${v.maxNumRetry} in ${V}ms`),s.resolved=!0,this.retryDate=self.performance.now()+V,this.state=yn.FRAG_LOADING_WAITING_RETRY}else if(v&&s)if(this.resetFragmentErrors(e),c<v.maxNumRetry)!i&&u!==zn.RemoveAlternatePermanently&&(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${c})`);return}else u===zn.SendAlternateToPenaltyBox?this.state=yn.WAITING_LEVEL:this.state=yn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===yn.PARSING||this.state===yn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===ne.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==yn.STOPPED&&(this.state=yn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Tr.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===yn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==yn.STOPPED&&(this.state=yn.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${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,n,r){const i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((f,c)=>{const v=e.elementaryStreams[c];if(v){const E=v.endPTS-v.startPTS;if(E<=0)return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${E})`),f||!1;const K=r?0:Is(i,e,v.startPTS,v.endPTS,v.startDTS,v.endDTS);return this.hls.trigger(m.LEVEL_PTS_UPDATED,{details:i,level:n,drift:K,type:c,frag:e,start:v.startPTS,end:v.endPTS}),!0}return f},!1)){var u;if(n.fragmentError===0&&this.treatAsGap(e,n),((u=this.transmuxer)==null?void 0:u.error)===null){const f=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(f.message),this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,error:f,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=yn.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(m.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===ne.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((i=t&&!n?e.endPTS:(n||e).end)!=null?i:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),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}}function da(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class ka{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=Ma(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Ma(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}var na={exports:{}},fa;function Qa(){return fa||(fa=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(f,c,v){this.fn=f,this.context=c,this.once=v||!1}function i(f,c,v,E,K){if(typeof v!="function")throw new TypeError("The listener must be a function");var X=new r(v,E||f,K),V=t?t+c:c;return f._events[V]?f._events[V].fn?f._events[V]=[f._events[V],X]:f._events[V].push(X):(f._events[V]=X,f._eventsCount++),f}function s(f,c){--f._eventsCount===0?f._events=new n:delete f._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],v,E;if(this._eventsCount===0)return c;for(E in v=this._events)e.call(v,E)&&c.push(t?E.slice(1):E);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(v)):c},u.prototype.listeners=function(c){var v=t?t+c:c,E=this._events[v];if(!E)return[];if(E.fn)return[E.fn];for(var K=0,X=E.length,V=new Array(X);K<X;K++)V[K]=E[K].fn;return V},u.prototype.listenerCount=function(c){var v=t?t+c:c,E=this._events[v];return E?E.fn?1:E.length:0},u.prototype.emit=function(c,v,E,K,X,V){var Te=t?t+c:c;if(!this._events[Te])return!1;var Le=this._events[Te],Ye=arguments.length,mt,lt;if(Le.fn){switch(Le.once&&this.removeListener(c,Le.fn,void 0,!0),Ye){case 1:return Le.fn.call(Le.context),!0;case 2:return Le.fn.call(Le.context,v),!0;case 3:return Le.fn.call(Le.context,v,E),!0;case 4:return Le.fn.call(Le.context,v,E,K),!0;case 5:return Le.fn.call(Le.context,v,E,K,X),!0;case 6:return Le.fn.call(Le.context,v,E,K,X,V),!0}for(lt=1,mt=new Array(Ye-1);lt<Ye;lt++)mt[lt-1]=arguments[lt];Le.fn.apply(Le.context,mt)}else{var kt=Le.length,Nt;for(lt=0;lt<kt;lt++)switch(Le[lt].once&&this.removeListener(c,Le[lt].fn,void 0,!0),Ye){case 1:Le[lt].fn.call(Le[lt].context);break;case 2:Le[lt].fn.call(Le[lt].context,v);break;case 3:Le[lt].fn.call(Le[lt].context,v,E);break;case 4:Le[lt].fn.call(Le[lt].context,v,E,K);break;default:if(!mt)for(Nt=1,mt=new Array(Ye-1);Nt<Ye;Nt++)mt[Nt-1]=arguments[Nt];Le[lt].fn.apply(Le[lt].context,mt)}}return!0},u.prototype.on=function(c,v,E){return i(this,c,v,E,!1)},u.prototype.once=function(c,v,E){return i(this,c,v,E,!0)},u.prototype.removeListener=function(c,v,E,K){var X=t?t+c:c;if(!this._events[X])return this;if(!v)return s(this,X),this;var V=this._events[X];if(V.fn)V.fn===v&&(!K||V.once)&&(!E||V.context===E)&&s(this,X);else{for(var Te=0,Le=[],Ye=V.length;Te<Ye;Te++)(V[Te].fn!==v||K&&!V[Te].once||E&&V[Te].context!==E)&&Le.push(V[Te]);Le.length?this._events[X]=Le.length===1?Le[0]:Le:s(this,X)}return this},u.prototype.removeAllListeners=function(c){var v;return c?(v=t?t+c:c,this._events[v]&&s(this,v)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=t,u.EventEmitter=u,a.exports=u}(na)),na.exports}var lo=Qa(),Ja=W(lo);const Aa="1.6.0",ha={};function uo(){return typeof __HLS_WORKER_BUNDLE__=="function"}function co(){const a=ha[Aa];if(a)return a.clientCount++,a;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return ha[Aa]=r,r}function Oo(a){const e=ha[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return ha[a]=r,r}function fo(a){const e=ha[a||Aa];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete ha[a||Aa],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Po(a,e){return e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Na(a,e){return e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Ha(a,e){let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t}function Da(a,e){const t=e;let n=0;for(;Na(a,e);){n+=10;const r=Ha(a,e+6);n+=r,Po(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function ko(a,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],s=i>>2&15;if(s>12){const X=new Error(`invalid ADTS sampling index:${s}`);a.emit(m.ERROR,m.ERROR,{type:ue.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!0,error:X,reason:X.message});return}const u=(i>>6&3)+1,f=e[t+3]>>6&3|(i&1)<<2,c="mp4a.40."+u,v=r[s];let E=s;(u===5||u===29)&&(E-=3);const K=[u<<3|(E&14)>>1,(E&1)<<7|f<<3];return j.log(`manifest codec:${n}, parsed codec:${c}, channels:${f}, rate:${v} (ADTS object type:${u} sampling index:${s})`),{config:K,samplerate:v,channelCount:f,codec:c,parsedCodec:c,manifestCodec:n}}function xa(a,e){return a[e]===255&&(a[e+1]&246)===240}function Ba(a,e){return a[e+1]&1?7:9}function qa(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function Yo(a,e){return e+5<a.length}function Fa(a,e){return e+1<a.length&&xa(a,e)}function Xo(a,e){return Yo(a,e)&&xa(a,e)&&qa(a,e)<=a.length-e}function ho(a,e){if(Fa(a,e)){const t=Ba(a,e);if(e+t>=a.length)return!1;const n=qa(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||Fa(a,r)}return!1}function po(a,e,t,n,r){if(!a.samplerate){const i=ko(e,t,n,r);if(!i)return;g(a,i)}}function mo(a){return 1024*9e4/a}function Mo(a,e){const t=Ba(a,e);if(e+t<=a.length){const n=qa(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function go(a,e,t,n,r){const i=mo(a.samplerate),s=n+r*i,u=Mo(e,t);let f;if(u){const{frameLength:E,headerLength:K}=u,X=K+E,V=Math.max(0,t+X-e.length);V?(f=new Uint8Array(X-K),f.set(e.subarray(t+K,e.length),0)):f=e.subarray(t+K,t+X);const Te={unit:f,pts:s};return V||a.samples.push(Te),{sample:Te,length:X,missing:V}}const c=e.length-t;return f=new Uint8Array(c),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:c,missing:-1}}function No(a,e){return Na(a,e)&&Ha(a,e+6)+10<=a.length-e}function Za(a){if(a.size<2)return;const e=ge(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function vo(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=ge(a.data.subarray(t),!0);t+=n.length+1;const r=ge(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ge(a.data.subarray(1));return{key:a.type,info:"",data:e}}function yo(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=ge(a.data.subarray(t),!0);t+=n.length+1;const r=ge(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ge(a.data);return{key:a.type,info:"",data:e}}function bo(a){return btoa(String.fromCharCode(...a))}function eo(a,e){if(a<0)return-eo(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}function Bo(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")}function _o(){try{return crypto.randomUUID()}catch(a){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,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}function xo(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function to(a,e=0,t=1/0){return $s(a,e,t,Uint8Array)}function $s(a,e,t,n){const r=no(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=Eo(a)?a.byteOffset:0,u=(s+a.byteLength)/i,f=(s+e)/i,c=Math.floor(Math.max(0,Math.min(f,u))),v=Math.floor(Math.min(c+Math.max(t,0),u));return new n(r,c,v-c)}function no(a){return a instanceof ArrayBuffer?a:a.buffer}function Eo(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function ae(a){const e={key:a.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(a.size<2)return;if(a.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=a.data.subarray(1).indexOf(0);if(n===-1)return;const r=ge(to(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const u=ge(to(a.data,3+n,s));let f;return r==="-->"?f=ge(to(a.data,4+n+s)):f=xo(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=u,e.data=f,e}function ve(a){return a.type==="PRIV"?Za(a):a.type[0]==="W"?yo(a):a.type==="APIC"?ae(a):vo(a)}function $e(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Ha(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const We=10,st=10;function ot(a){let e=0;const t=[];for(;Na(a,e);){const n=Ha(a,e+6);a[e+5]>>6&1&&(e+=We),e+=We;const r=e+n;for(;e+st<r;){const i=$e(a.subarray(e)),s=ve(i);s&&t.push(s),e+=i.size+We}Po(a,e)&&(e+=We)}return t}function Et(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function St(a){if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}}function bt(a){const e=ot(a);for(let t=0;t<e.length;t++){const n=e[t];if(Et(n))return St(n)}}let It=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function we(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ut{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,n,r){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,n){}demux(e,t){this.cachedData&&(e=Qe(this.cachedData,e),this.cachedData=null);let n=Da(e,0),r=n?n.length:0,i;const s=this._audioTrack,u=this._id3Track,f=n?bt(n):void 0,c=e.length;for((this.basePTS===null||this.frameIndex===0&&O(f))&&(this.basePTS=fn(f,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:It.audioId3,duration:Number.POSITIVE_INFINITY});r<c;){if(this.canParse(e,r)){const v=this.appendFrame(s,e,r);v?(this.frameIndex++,this.lastPTS=v.sample.pts,r+=v.length,i=r):r=c}else No(e,r)?(n=Da(e,r),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:It.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===c&&i!==c){const v=e.slice(i);this.cachedData?this.cachedData=Qe(this.cachedData,v):this.cachedData=v}}return{audioTrack:s,videoTrack:we(),id3Track:u,textTrack:we()}}demuxSampleAes(e,t,n){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:we(),id3Track:this._id3Track,textTrack:we()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const fn=(a,e,t)=>{if(O(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let an=null;const dn=[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],Fn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],kn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],$n=[0,1,1,4];function Mn(a,e,t,n,r){if(t+24>e.length)return;const i=Gn(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,u=n+r*s,f={unit:e.subarray(t,t+i.frameLength),pts:u,dts:u};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(f),{sample:f,length:i.frameLength,missing:0}}}function Gn(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,r=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=a[e+2]>>1&1,u=a[e+3]>>6,f=t===3?3-n:n===3?3:4,c=dn[f*14+r-1]*1e3,E=Fn[(t===3?0:t===2?1:2)*3+i],K=u===3?1:2,X=kn[t][n],V=$n[n],Te=X*8*V,Le=Math.floor(X*c/E+s)*V;if(an===null){const lt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);an=lt?parseInt(lt[1]):0}return!!an&&an<=87&&n===2&&c>=224e3&&u===0&&(a[e+3]=a[e+3]|128),{sampleRate:E,channelCount:K,frameLength:Le,samplesPerFrame:Te}}}function Sr(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function wr(a,e){return e+1<a.length&&Sr(a,e)}function br(a,e){return Sr(a,e)&&4<=a.length-e}function kr(a,e){if(e+1<a.length&&Sr(a,e)){const n=Gn(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||wr(a,i)}return!1}class jr extends Ut{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Da(e,0);let r=(n==null?void 0:n.length)||0;if(kr(e,r))return!1;for(let i=e.length;r<i;r++)if(ho(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Xo(e,t)}appendFrame(e,t,n){po(e,this.observer,t,n,e.manifestCodec);const r=go(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const er=(a,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const u=Math.min(n,8),f=8-u;i[0]=4278190080>>>24+f<<f,r[0]=(s[0]&i[0])>>f,t=t?t<<u|r[0]:r[0],e+=1,n-=u}return t};class _r extends Ut{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=Jn(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=Da(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&bt(t)!==void 0&&er(e,n)<16}}function Jn(a,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const u=[48e3,44100,32e3][i],f=e[t+4]&63,v=[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][f*3+i]*2;if(t+v>e.length)return-1;const E=e[t+6]>>5;let K=0;E===2?K+=2:(E&1&&E!==1&&(K+=2),E&4&&(K+=2));const X=(e[t+6]<<8|e[t+7])>>12-K&1,Te=[2,1,2,3,3,4,4,5][E]+X,Le=e[t+5]>>3,Ye=e[t+5]&7,mt=new Uint8Array([i<<6|Le<<1|Ye>>2,(Ye&3)<<6|E<<3|X<<2|f>>4,f<<4&224]),lt=1536/u*9e4,kt=n+r*lt,Nt=e.subarray(t,t+v);return a.config=mt,a.channelCount=Te,a.samplerate=u,a.samples.push({unit:Nt,pts:kt}),v}class Kn extends Ut{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Da(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&bt(t)!==void 0&&er(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(kr(e,n))return j.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return br(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Mn(e,t,n,this.basePTS,this.frameIndex)}}const hr=/\/emsg[-/]ID3/i;class Nr{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,n,r){const i=this.videoTrack=we("video",1),s=this.audioTrack=we("audio",1),u=this.txtTrack=we("text",1);if(this.id3Track=we("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const f=J(e);if(f.video){const{id:c,timescale:v,codec:E,supplemental:K}=f.video;i.id=c,i.timescale=u.timescale=v,i.codec=E,i.supplemental=K}if(f.audio){const{id:c,timescale:v,codec:E}=f.audio;s.id=c,s.timescale=v,s.codec=E}u.id=at.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return he(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Qe(this.remainderData,e));const u=qe(n);this.remainderData=u.remainder,r.samples=u.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=Ve(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=Ve(e,t),{videoTrack:t,audioTrack:we(),id3Track:r,textTrack:we()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=pe(e.samples,["emsg"]);r&&r.forEach(i=>{const s=jt(i);if(hr.test(s.schemeIdUri)){const u=Jr(s,t);let f=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;f<=.001&&(f=Number.POSITIVE_INFINITY);const c=s.payload;n.samples.push({data:c,len:c.byteLength,dts:u,pts:u,type:It.emsg,duration:f})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const u=Jr(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:u,pts:u,type:It.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function Jr(a,e){return O(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class re{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Ri(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,fr.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(u=>{const f=new Uint8Array(u);r.set(f,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=Bt(i.data),u=this.getAvcEncryptedData(s);this.decryptBuffer(u.buffer).then(f=>{i.data=this.getAvcDecryptedUnit(s,f),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class l{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,u=[];let f=0,c,v,E,K=-1,X=0;for(i===-1&&(K=0,X=this.getNALuType(t,0),i=0,f=1);f<r;){if(c=t[f++],!i){i=c?0:1;continue}if(i===1){i=c?0:2;continue}if(!c)i=3;else if(c===1){if(v=f-i-1,K>=0){const V={data:t.subarray(K,v),type:X};u.push(V)}else{const V=this.getLastNalUnit(e.samples);V&&(s&&f<=4-s&&V.state&&(V.data=V.data.subarray(0,V.data.byteLength-s)),v>0&&(V.data=Qe(V.data,t.subarray(0,v)),V.state=0))}f<r?(E=this.getNALuType(t,f),K=f,X=E,i=0):i=-1}else i=0}if(K>=0&&i>=0){const V={data:t.subarray(K,r),type:X,state:i};u.push(V)}if(u.length===0){const V=this.getLastNalUnit(e.samples);V&&(V.data=Qe(V.data,t))}return e.naluState=i,u}}class d{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,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}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 n=this.word>>>32-t;if(e>32&&j.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?n<<t|this.readBits(t):n}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)}}class h extends l{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,u,f=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(c=>{var v,E;switch(c.type){case 1:{let Te=!1;u=!0;const Le=c.data;if(f&&Le.length>4){const Ye=this.readSliceType(Le);(Ye===2||Ye===4||Ye===7||Ye===9)&&(Te=!0)}if(Te){var K;(K=s)!=null&&K.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=Te;break}case 5:u=!0,(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{u=!0,vt(c.data,1,n.pts,t.samples);break}case 7:{var X,V;u=!0,f=!0;const Te=c.data,Le=this.readSPS(Te);if(!e.sps||e.width!==Le.width||e.height!==Le.height||((X=e.pixelRatio)==null?void 0:X[0])!==Le.pixelRatio[0]||((V=e.pixelRatio)==null?void 0:V[1])!==Le.pixelRatio[1]){e.width=Le.width,e.height=Le.height,e.pixelRatio=Le.pixelRatio,e.sps=[Te];const Ye=Te.subarray(1,4);let mt="avc1.";for(let lt=0;lt<3;lt++){let kt=Ye[lt].toString(16);kt.length<2&&(kt="0"+kt),mt+=kt}e.codec=mt}break}case 8:u=!0,e.pps=[c.data];break;case 9:u=!0,e.audFound=!0,(E=s)!=null&&E.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:u=!0;break;default:u=!1;break}s&&u&&s.units.push(c)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new d(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new d(e);let n=0,r=0,i=0,s=0,u,f,c;const v=t.readUByte.bind(t),E=t.readBits.bind(t),K=t.readUEG.bind(t),X=t.readBoolean.bind(t),V=t.skipBits.bind(t),Te=t.skipEG.bind(t),Le=t.skipUEG.bind(t),Ye=this.skipScalingList.bind(this);v();const mt=v();if(E(5),V(3),v(),Le(),mt===100||mt===110||mt===122||mt===244||mt===44||mt===83||mt===86||mt===118||mt===128){const qt=K();if(qt===3&&V(1),Le(),Le(),V(1),X())for(f=qt!==3?8:12,c=0;c<f;c++)X()&&(c<6?Ye(16,t):Ye(64,t))}Le();const lt=K();if(lt===0)K();else if(lt===1)for(V(1),Te(),Te(),u=K(),c=0;c<u;c++)Te();Le(),V(1);const kt=K(),Nt=K(),on=E(1);on===0&&V(1),V(1),X()&&(n=K(),r=K(),i=K(),s=K());let $t=[1,1];if(X()&&X())switch(v()){case 1:$t=[1,1];break;case 2:$t=[12,11];break;case 3:$t=[10,11];break;case 4:$t=[16,11];break;case 5:$t=[40,33];break;case 6:$t=[24,11];break;case 7:$t=[20,11];break;case 8:$t=[32,11];break;case 9:$t=[80,33];break;case 10:$t=[18,11];break;case 11:$t=[15,11];break;case 12:$t=[64,33];break;case 13:$t=[160,99];break;case 14:$t=[4,3];break;case 15:$t=[3,2];break;case 16:$t=[2,1];break;case 255:{$t=[v()<<8|v(),v()<<8|v()];break}}return{width:Math.ceil((kt+1)*16-n*2-r*2),height:(2-on)*(Nt+1)*16-(on?2:4)*(i+s),pixelRatio:$t}}}class b extends l{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,u,f=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(c=>{var v,E;switch(c.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,u=!0;break;case 16:case 17:case 18:case 21:if(u=!0,f){var K;(K=s)!=null&&K.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:u=!0,(v=s)!=null&&v.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:u=!0,vt(c.data,2,n.pts,t.samples);break;case 32:u=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=g(e.params,this.readVPS(c.data)),this.initVPS=c.data),e.vps=[c.data];break;case 33:if(u=!0,f=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],c.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const X=this.readSPS(c.data);e.width=X.width,e.height=X.height,e.pixelRatio=X.pixelRatio,e.codec=X.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const V in X.params)e.params[V]=X.params[V]}this.pushParameterSet(e.sps,c.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(u=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const X=this.readPPS(c.data);for(const V in X)e.params[V]=X[V]}this.pushParameterSet(e.pps,c.data,e.vps)}break;case 35:u=!0,e.audFound=!0,(E=s)!=null&&E.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:u=!1;break}s&&u&&s.units.push(c)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new d(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new d(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),u=t.readUByte(),f=t.readUByte(),c=t.readUByte(),v=t.readUByte(),E=t.readUByte(),K=t.readUByte(),X=t.readUByte(),V=t.readUByte(),Te=t.readUByte(),Le=t.readUByte(),Ye=t.readUByte(),mt=[],lt=[];for(let Ui=0;Ui<n;Ui++)mt.push(t.readBoolean()),lt.push(t.readBoolean());if(n>0)for(let Ui=n;Ui<8;Ui++)t.readBits(2);for(let Ui=0;Ui<n;Ui++)mt[Ui]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),lt[Ui]&&t.readUByte();t.readUEG();const kt=t.readUEG();kt==3&&t.skipBits(1);const Nt=t.readUEG(),on=t.readUEG(),$t=t.readBoolean();let qt=0,bn=0,Gt=0,Zn=0;$t&&(qt+=t.readUEG(),bn+=t.readUEG(),Gt+=t.readUEG(),Zn+=t.readUEG());const vr=t.readUEG(),Ci=t.readUEG(),qr=t.readUEG(),Hr=t.readBoolean();for(let Ui=Hr?0:n;Ui<=n;Ui++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let Ks=0;Ks<4;Ks++)for(let va=0;va<(Ks===3?2:6);va++)if(!t.readBoolean())t.readUEG();else{const Sa=Math.min(64,1<<4+(Ks<<1));Ks>1&&t.readEG();for(let Lo=0;Lo<Sa;Lo++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const zr=t.readUEG();let jn=0;for(let Ui=0;Ui<zr;Ui++){let Ks=!1;if(Ui!==0&&(Ks=t.readBoolean()),Ks){Ui===zr&&t.readUEG(),t.readBoolean(),t.readUEG();let va=0;for(let ao=0;ao<=jn;ao++){const Sa=t.readBoolean();let Lo=!1;Sa||(Lo=t.readBoolean()),(Sa||Lo)&&va++}jn=va}else{const va=t.readUEG(),ao=t.readUEG();jn=va+ao;for(let Sa=0;Sa<va;Sa++)t.readUEG(),t.readBoolean();for(let Sa=0;Sa<ao;Sa++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Ui=t.readUEG();for(let Ks=0;Ks<Ui;Ks++){for(let va=0;va<qr+4;va++)t.readBits(1);t.readBits(1)}}let ui=0,ni=1,wi=1,Fi=!0,Vi=1,ns=0;t.readBoolean(),t.readBoolean();let Ws=!1;if(t.readBoolean()){if(t.readBoolean()){const oo=t.readUByte(),Cu=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],gl=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];oo>0&&oo<16?(ni=Cu[oo-1],wi=gl[oo-1]):oo===255&&(ni=t.readBits(16),wi=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),Ws=t.readBoolean(),Ws&&(qt+=t.readUEG(),bn+=t.readUEG(),Gt+=t.readUEG(),Zn+=t.readUEG()),t.readBoolean()&&(Vi=t.readBits(32),ns=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const gl=t.readBoolean(),Tu=t.readBoolean();let Go=!1;(gl||Tu)&&(Go=t.readBoolean(),Go&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Go&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let Au=0;Au<=n;Au++){Fi=t.readBoolean();const a0=Fi||t.readBoolean();let Du=!1;a0?t.readEG():Du=t.readBoolean();const Iu=Du?1:t.readUEG()+1;if(gl)for(let Vo=0;Vo<Iu;Vo++)t.readUEG(),t.readUEG(),Go&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Tu)for(let Vo=0;Vo<Iu;Vo++)t.readUEG(),t.readUEG(),Go&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),ui=t.readUEG())}let Xa=Nt,wu=on;if($t||Ws){let Ui=1,Ks=1;kt===1?Ui=Ks=2:kt==2&&(Ui=2),Xa=Nt-Ui*bn-Ui*qt,wu=on-Ks*Zn-Ks*Gt}const i0=r?["A","B","C"][r]:"",s0=u<<24|f<<16|c<<8|v;let $l=0;for(let Ui=0;Ui<32;Ui++)$l=($l|(s0>>Ui&1)<<31-Ui)>>>0;let zl=$l.toString(16);return s===1&&zl==="2"&&(zl="6"),{codecString:`hvc1.${i0}${s}.${zl}.${i?"H":"L"}${Ye}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[u,f,c,v],general_constraint_indicator_flags:[E,K,X,V,Te,Le],general_level_idc:Ye,bit_depth:vr+8,bit_depth_luma_minus8:vr,bit_depth_chroma_minus8:Ci,min_spatial_segmentation_idc:ui,chroma_format_idc:kt,frame_rate:{fixed:Fi,fps:ns/Vi}},width:Xa,height:wu,pixelRatio:[ni,wi]}}readPPS(e){const t=new d(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),i=t.readBoolean();let s=1;return i&&r?s=0:i?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const M=188;class se{constructor(e,t,n,r){this.logger=void 0,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._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=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=se.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(M*5,t-M)+1,r=0;for(;r<n;){let i=!1,s=-1,u=0;for(let f=r;f<t;f+=M)if(e[f]===71&&(t-f===M||e[f+M]===71)){if(u++,s===-1&&(s=f,s!==0&&(n=Math.min(s+M*99,e.length-M)+1)),i||(i=Re(e,f)===0),i&&u>1&&(s===0&&u>2||f+M>n))return s}else{if(u)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:at[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=se.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=se.createTrack("audio",r),this._id3Track=se.createTrack("id3"),this._txtTrack=se.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,u=this._audioTrack,f=this._id3Track,c=this._txtTrack;let v=s.pid,E=s.pesData,K=u.pid,X=f.pid,V=u.pesData,Te=f.pesData,Le=null,Ye=this.pmtParsed,mt=this._pmtId,lt=e.length;if(this.remainderData&&(e=Qe(this.remainderData,e),lt=e.length,this.remainderData=null),lt<M&&!r)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:c};const kt=Math.max(0,se.syncOffset(e));lt-=(lt-kt)%M,lt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,lt,e.buffer.byteLength-lt));let Nt=0;for(let $t=kt;$t<lt;$t+=M)if(e[$t]===71){const qt=!!(e[$t+1]&64),bn=Re(e,$t),Gt=(e[$t+3]&48)>>4;let Zn;if(Gt>1){if(Zn=$t+5+e[$t+4],Zn===$t+M)continue}else Zn=$t+4;switch(bn){case v:if(qt){if(E&&(i=Ht(E,this.logger))){if(this.videoParser===null)switch(s.segmentCodec){case"avc":this.videoParser=new h;break;case"hevc":this.videoParser=new b;break}this.videoParser!==null&&this.videoParser.parsePES(s,c,i,!1)}E={data:[],size:0}}E&&(E.data.push(e.subarray(Zn,$t+M)),E.size+=$t+M-Zn);break;case K:if(qt){if(V&&(i=Ht(V,this.logger)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}V={data:[],size:0}}V&&(V.data.push(e.subarray(Zn,$t+M)),V.size+=$t+M-Zn);break;case X:qt&&(Te&&(i=Ht(Te,this.logger))&&this.parseID3PES(f,i),Te={data:[],size:0}),Te&&(Te.data.push(e.subarray(Zn,$t+M)),Te.size+=$t+M-Zn);break;case 0:qt&&(Zn+=e[Zn]+1),mt=this._pmtId=Pe(e,Zn);break;case mt:{qt&&(Zn+=e[Zn]+1);const vr=Je(e,Zn,this.typeSupported,n,this.observer,this.logger);v=vr.videoPid,v>0&&(s.pid=v,s.segmentCodec=vr.segmentVideoCodec),K=vr.audioPid,K>0&&(u.pid=K,u.segmentCodec=vr.segmentAudioCodec),X=vr.id3Pid,X>0&&(f.pid=X),Le!==null&&!Ye&&(this.logger.warn(`MPEG-TS PMT found at ${$t} after unknown PID '${Le}'. Backtracking to sync byte @${kt} to parse all TS packets.`),Le=null,$t=kt-188),Ye=this.pmtParsed=!0;break}case 17:case 8191:break;default:Le=bn;break}}else Nt++;Nt>0&&ft(this.observer,new Error(`Found ${Nt} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=E,u.pesData=V,f.pesData=Te;const on={audioTrack:u,videoTrack:s,id3Track:f,textTrack:c};return r&&this.extractRemainingSamples(on),on}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:n,id3Track:r,textTrack:i}=e,s=n.pesData,u=t.pesData,f=r.pesData;let c;if(s&&(c=Ht(s,this.logger))){if(this.videoParser===null)switch(n.segmentCodec){case"avc":this.videoParser=new h;break;case"hevc":this.videoParser=new b;break}this.videoParser!==null&&(this.videoParser.parsePES(n,i,c,!0),n.pesData=null)}else n.pesData=s;if(u&&(c=Ht(u,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,c);break;case"mp3":this.parseMPEGPES(t,c);break;case"ac3":this.parseAC3PES(t,c);break}t.pesData=null}else u!=null&&u.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(c=Ht(f,this.logger))?(this.parseID3PES(r,c),r.pesData=null):r.pesData=f}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new re(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const E=r.missing,K=r.sample.unit.byteLength;if(E===-1)i=Qe(r.sample.unit,i);else{const X=K-E;r.sample.unit.set(i.subarray(0,E),X),e.samples.push(r.sample),n=r.missing}}let s,u;for(s=n,u=i.length;s<u-1&&!Fa(i,s);s++);if(s!==n){let E;const K=s<u-1;if(K?E=`AAC PES did not start with ADTS header,offset:${s}`:E="No ADTS header found in AAC PES",ft(this.observer,new Error(E),K,this.logger),!K)return}po(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(r){const E=mo(e.samplerate);f=r.sample.pts+E}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let c=0,v;for(;s<u;)if(v=go(e,i,s,f,c),s+=v.length,v.missing){this.aacOverFlow=v;break}else for(c++;s<u-1&&!Fa(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const u=t.pts;if(u===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(wr(n,s)){const f=Mn(e,n,s,u,i);if(f)s+=f.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,u=0,f;for(;u<i&&(f=Jn(e,n,u,r,s++))>0;)u+=f}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=g({},t,{type:this._videoTrack?It.emsg:It.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Re(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Pe(a,e){return(a[e+10]&31)<<8|a[e+11]}function Je(a,e,t,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},u=(a[e+1]&15)<<8|a[e+2],f=e+3+u-4,c=(a[e+10]&15)<<8|a[e+11];for(e+=12+c;e<f;){const v=Re(a,e),E=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Tt("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=v);break;case 21:s.id3Pid===-1&&(s.id3Pid=v);break;case 219:if(!n){Tt("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=v);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="mp3");break;case 193:if(!n){Tt("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=v,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&E>0){let K=e+5,X=E;for(;X>2;){switch(a[K]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=v,s.segmentAudioCodec="ac3");break}const Te=a[K+1]+2;K+=Te,X-=Te}}break;case 194:case 135:return ft(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=v,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=E+5}return s}function ft(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(m.ERROR,m.ERROR,{type:ue.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Tt(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Ht(a,e){let t=0,n,r,i,s,u;const f=a.data;if(!a||a.size===0)return null;for(;f[0].length<19&&f.length>1;)f[0]=Qe(f[0],f[1]),f.splice(1,1);if(n=f[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>a.size-6)return null;const v=n[7];v&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,v&64?(u=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-u>60*9e4&&(e.warn(`${Math.round((s-u)/9e4)}s delta between PTS and DTS, align them`),s=u)):u=s),i=n[8];let E=i+9;if(a.size<=E)return null;a.size-=E;const K=new Uint8Array(a.size);for(let X=0,V=f.length;X<V;X++){n=f[X];let Te=n.byteLength;if(E)if(E>Te){E-=Te;continue}else n=n.subarray(E),Te-=E,E=0;K.set(n,t),t+=Te}return r&&(r-=i+3),{data:K,pts:s,dts:u,len:r}}return null}class _n{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 Vt=Math.pow(2,32)-1;class Ge{static init(){Ge.types={avc1:[],avcC:[],hvc1:[],hvcC:[],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 Ge.types)Ge.types.hasOwnProperty(e)&&(Ge.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]),n=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]);Ge.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);Ge.STTS=Ge.STSC=Ge.STCO=i,Ge.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ge.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ge.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ge.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);Ge.FTYP=Ge.box(Ge.types.ftyp,s,f,s,u),Ge.DINF=Ge.box(Ge.types.dinf,Ge.box(Ge.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return Ge.box(Ge.types.hdlr,Ge.HDLR_TYPES[e])}static mdat(e){return Ge.box(Ge.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(Vt+1)),r=Math.floor(t%(Vt+1));return Ge.box(Ge.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,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return Ge.box(Ge.types.mdia,Ge.mdhd(e.timescale||0,e.duration||0),Ge.hdlr(e.type),Ge.minf(e))}static mfhd(e){return Ge.box(Ge.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"?Ge.box(Ge.types.minf,Ge.box(Ge.types.smhd,Ge.SMHD),Ge.DINF,Ge.stbl(e)):Ge.box(Ge.types.minf,Ge.box(Ge.types.vmhd,Ge.VMHD),Ge.DINF,Ge.stbl(e))}static moof(e,t,n){return Ge.box(Ge.types.moof,Ge.mfhd(e),Ge.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Ge.trak(e[t]);return Ge.box.apply(null,[Ge.types.moov,Ge.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(Ge.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Ge.trex(e[t]);return Ge.box.apply(null,[Ge.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(Vt+1)),r=Math.floor(t%(Vt+1)),i=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,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&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 Ge.box(Ge.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return Ge.box(Ge.types.sdtp,n)}static stbl(e){return Ge.box(Ge.types.stbl,Ge.stsd(e),Ge.box(Ge.types.stts,Ge.STTS),Ge.box(Ge.types.stsc,Ge.STSC),Ge.box(Ge.types.stsz,Ge.STSZ),Ge.box(Ge.types.stco,Ge.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const u=Ge.box(Ge.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),f=e.width,c=e.height,v=e.pixelRatio[0],E=e.pixelRatio[1];return Ge.box(Ge.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,f>>8&255,f&255,c>>8&255,c&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]),u,Ge.box(Ge.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ge.box(Ge.types.pasp,new Uint8Array([v>>24,v>>16&255,v>>8&255,v&255,E>>24,E>>16&255,E>>8&255,E&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return Ge.box(Ge.types.mp4a,Ge.audioStsd(e),Ge.box(Ge.types.esds,Ge.esds(e)))}static mp3(e){return Ge.box(Ge.types[".mp3"],Ge.audioStsd(e))}static ac3(e){return Ge.box(Ge.types["ac-3"],Ge.audioStsd(e),Ge.box(Ge.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return Ge.box(Ge.types.stsd,Ge.STSD,Ge.mp4a(e));if(t==="ac3"&&e.config)return Ge.box(Ge.types.stsd,Ge.STSD,Ge.ac3(e));if(t==="mp3"&&e.codec==="mp3")return Ge.box(Ge.types.stsd,Ge.STSD,Ge.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return Ge.box(Ge.types.stsd,Ge.STSD,Ge.avc1(e));if(t==="hevc"&&e.vps)return Ge.box(Ge.types.stsd,Ge.STSD,Ge.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,s=Math.floor(n/(Vt+1)),u=Math.floor(n%(Vt+1));return Ge.box(Ge.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,s>>24,s>>16&255,s>>8&255,s&255,u>>24,u>>16&255,u>>8&255,u&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,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=Ge.sdtp(e),r=e.id,i=Math.floor(t/(Vt+1)),s=Math.floor(t%(Vt+1));return Ge.box(Ge.types.traf,Ge.box(Ge.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Ge.box(Ge.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),Ge.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Ge.box(Ge.types.trak,Ge.tkhd(e),Ge.mdia(e))}static trex(e){const t=e.id;return Ge.box(Ge.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 n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let u,f,c,v,E,K;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),u=0;u<r;u++)f=n[u],c=f.duration,v=f.size,E=f.flags,K=f.cts,s.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,E.isLeading<<2|E.dependsOn,E.isDependedOn<<6|E.hasRedundancy<<4|E.paddingValue<<1|E.isNonSync,E.degradPrio&61440,E.degradPrio&15,K>>>24&255,K>>>16&255,K>>>8&255,K&255],12+16*u);return Ge.box(Ge.types.trun,s)}static initSegment(e){Ge.types||Ge.init();const t=Ge.moov(e);return Qe(Ge.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=i.length;for(let V=0;V<n.length;V+=1){s+=3;for(let Te=0;Te<n[V].length;Te+=1)s+=2+n[V][Te].length}const u=new Uint8Array(s);u.set(i,0),s=i.length;const f=n.length-1;for(let V=0;V<n.length;V+=1){u.set(new Uint8Array([32+V|(V===f?128:0),0,n[V].length]),s),s+=3;for(let Te=0;Te<n[V].length;Te+=1)u.set(new Uint8Array([n[V][Te].length>>8,n[V][Te].length&255]),s),s+=2,u.set(n[V][Te],s),s+=n[V][Te].length}const c=Ge.box(Ge.types.hvcC,u),v=e.width,E=e.height,K=e.pixelRatio[0],X=e.pixelRatio[1];return Ge.box(Ge.types.hvc1,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,v>>8&255,v&255,E>>8&255,E&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]),c,Ge.box(Ge.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ge.box(Ge.types.pasp,new Uint8Array([K>>24,K>>16&255,K>>8&255,K&255,X>>24,X>>16&255,X>>8&255,X&255])))}}Ge.types=void 0,Ge.HDLR_TYPES=void 0,Ge.STTS=void 0,Ge.STSC=void 0,Ge.STCO=void 0,Ge.STSZ=void 0,Ge.VMHD=void 0,Ge.SMHD=void 0,Ge.STSD=void 0,Ge.FTYP=void 0,Ge.DINF=void 0;const hn=9e4;function Tn(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function ur(a,e,t=1,n=!1){return Tn(a,e,1/t,n)}function In(a,e=!1){return Tn(a,1e3,1/hn,e)}function cr(a,e=1){return Tn(a,hn,1/e)}const Ar=10*1e3,Dr=1024,fi=1152,hi=1536;let ki=null,ci=null;function pi(a,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class yi{constructor(e,t,n,r){if(this.logger=void 0,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=n,this.logger=r,this.ISGenerated=!1,ki===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ki=s?parseInt(s[1]):0}if(ci===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ci=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let u=s.pts,f=u-i;return f<-4294967296&&(t=!0,u=Ii(u,n),f=u-i),f>0?i:u},n);return t&&this.logger.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,u,f){let c,v,E,K,X,V,Te=i,Le=i;const Ye=e.pid>-1,mt=t.pid>-1,lt=t.samples.length,kt=e.samples.length>0,Nt=u&<>0||lt>1;if((!Ye||kt)&&(!mt||Nt)||this.ISGenerated||u){if(this.ISGenerated){var $t,qt,bn,Gt;const qr=this.videoTrackConfig;(qr&&(t.width!==qr.width||t.height!==qr.height||(($t=t.pixelRatio)==null?void 0:$t[0])!==((qt=qr.pixelRatio)==null?void 0:qt[0])||((bn=t.pixelRatio)==null?void 0:bn[1])!==((Gt=qr.pixelRatio)==null?void 0:Gt[1]))||!qr&&Nt||this.nextAudioPts===null&&kt)&&this.resetInitSegment()}this.ISGenerated||(E=this.generateIS(e,t,i,s));const Zn=this.isVideoContiguous;let vr=-1,Ci;if(Nt&&(vr=ys(t.samples),!Zn&&this.config.forceKeyFrameOnDiscontinuity))if(V=!0,vr>0){this.logger.warn(`[mp4-remuxer]: Dropped ${vr} out of ${lt} video samples due to a missing keyframe`);const qr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(vr),t.dropped+=vr,Le+=(t.samples[0].pts-qr)/t.inputTimeScale,Ci=Le}else vr===-1&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${lt} video samples`),V=!1);if(this.ISGenerated){if(kt&&Nt){const qr=this.getVideoStartPts(t.samples),Rr=(Ii(e.samples[0].pts,qr)-qr)/t.inputTimeScale;Te+=Math.max(0,Rr),Le+=Math.max(0,-Rr)}if(kt){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),E=this.generateIS(e,t,i,s)),v=this.remuxAudio(e,Te,this.isAudioContiguous,s,mt||Nt||f===ne.AUDIO?Le:void 0),Nt){const qr=v?v.endPTS-v.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),E=this.generateIS(e,t,i,s)),c=this.remuxVideo(t,Le,Zn,qr)}}else Nt&&(c=this.remuxVideo(t,Le,Zn,0));c&&(c.firstKeyFrame=vr,c.independent=vr!==-1,c.firstKeyFramePTS=Ci)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(X=Wr(n,i,this._initPTS,this._initDTS)),r.samples.length&&(K=ai(r,i,this._initPTS))),{audio:v,video:c,initSegment:E,independent:V,text:K,id3:X}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,u=this.typeSupported,f={},c=this._initPTS;let v=!c||r,E="audio/mp4",K,X,V;if(v&&(K=X=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(E="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:E,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):Ge.initSegment([e]),metadata:{channelCount:e.channelCount}},v&&(V=e.inputTimeScale,!c||V!==c.timescale?K=X=i[0].pts-Math.round(V*n):v=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Ge.initSegment([t]),metadata:{width:t.width,height:t.height}},v)if(V=t.inputTimeScale,!c||V!==c.timescale){const Te=this.getVideoStartPts(s),Le=Math.round(V*n);X=Math.min(X,Ii(s[0].dts,Te)-Le),K=Math.min(K,Te-Le)}else v=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(f).length)return this.ISGenerated=!0,v?(this._initPTS={baseTime:K,timescale:V},this._initDTS={baseTime:X,timescale:V}):K=V=void 0,{tracks:f,initPTS:K,timescale:V}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,c=this._initPTS;let v=this.nextAvcDts,E=8,K=this.videoSampleDuration,X,V,Te=Number.POSITIVE_INFINITY,Le=Number.NEGATIVE_INFINITY,Ye=!1;if(!n||v===null){const jn=t*i,Yn=s[0].pts-Ii(s[0].dts,s[0].pts);ki&&v!==null&&Math.abs(jn-Yn-v)<15e3?n=!0:v=jn-Yn}const mt=c.baseTime*i/c.timescale;for(let jn=0;jn<f;jn++){const Yn=s[jn];Yn.pts=Ii(Yn.pts-mt,v),Yn.dts=Ii(Yn.dts-mt,v),Yn.dts<s[jn>0?jn-1:jn].dts&&(Ye=!0)}Ye&&s.sort(function(jn,Yn){const ui=jn.dts-Yn.dts,ni=jn.pts-Yn.pts;return ui||ni}),X=s[0].dts,V=s[s.length-1].dts;const lt=V-X,kt=lt?Math.round(lt/(f-1)):K||e.inputTimeScale/30;if(n){const jn=X-v,Yn=jn>kt,ui=jn<-1;if((Yn||ui)&&(Yn?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${In(jn,!0)} ms (${jn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${In(-jn,!0)} ms (${jn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!ui||v>=s[0].pts||ki)){X=v;const ni=s[0].pts-jn;if(Yn)s[0].dts=X,s[0].pts=ni;else{let wi=!0;for(let Fi=0;Fi<s.length&&!(s[Fi].dts>ni&&wi);Fi++){const Vi=s[Fi].pts;if(s[Fi].dts-=jn,s[Fi].pts-=jn,Fi<s.length-1){const ns=s[Fi+1].pts,Ws=s[Fi].pts,Vs=ns<=Ws,Xa=ns<=Vi;wi=Vs==Xa}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${In(ni,!0)}/${In(X,!0)}, delta: ${In(jn,!0)} ms`)}}X=Math.max(0,X);let Nt=0,on=0,$t=X;for(let jn=0;jn<f;jn++){const Yn=s[jn],ui=Yn.units,ni=ui.length;let wi=0;for(let Fi=0;Fi<ni;Fi++)wi+=ui[Fi].data.length;on+=wi,Nt+=ni,Yn.length=wi,Yn.dts<$t?(Yn.dts=$t,$t+=kt/4|0||1):$t=Yn.dts,Te=Math.min(Yn.pts,Te),Le=Math.max(Yn.pts,Le)}V=s[f-1].dts;const qt=on+4*Nt+8;let bn;try{bn=new Uint8Array(qt)}catch(jn){this.observer.emit(m.ERROR,m.ERROR,{type:ue.MUX_ERROR,details:A.REMUX_ALLOC_ERROR,fatal:!1,error:jn,bytes:qt,reason:`fail allocating video mdat ${qt}`});return}const Gt=new DataView(bn.buffer);Gt.setUint32(0,qt),bn.set(Ge.types.mdat,4);let Zn=!1,vr=Number.POSITIVE_INFINITY,Ci=Number.POSITIVE_INFINITY,qr=Number.NEGATIVE_INFINITY,Hr=Number.NEGATIVE_INFINITY;for(let jn=0;jn<f;jn++){const Yn=s[jn],ui=Yn.units;let ni=0;for(let Vi=0,ns=ui.length;Vi<ns;Vi++){const Ws=ui[Vi],Vs=Ws.data,Xa=Ws.data.byteLength;Gt.setUint32(E,Xa),E+=4,bn.set(Vs,E),E+=Xa,ni+=4+Xa}let wi;if(jn<f-1)K=s[jn+1].dts-Yn.dts,wi=s[jn+1].pts-Yn.pts;else{const Vi=this.config,ns=jn>0?Yn.dts-s[jn-1].dts:kt;if(wi=jn>0?Yn.pts-s[jn-1].pts:kt,Vi.stretchShortVideoTrack&&this.nextAudioPts!==null){const Ws=Math.floor(Vi.maxBufferHole*i),Vs=(r?Te+r*i:this.nextAudioPts)-Yn.pts;Vs>Ws?(K=Vs-ns,K<0?K=ns:Zn=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${Vs/90} ms to the next segment; using duration ${K/90} ms for the last video frame.`)):K=ns}else K=ns}const Fi=Math.round(Yn.pts-Yn.dts);vr=Math.min(vr,K),qr=Math.max(qr,K),Ci=Math.min(Ci,wi),Hr=Math.max(Hr,wi),u.push(pi(Yn.key,K,ni,Fi))}if(u.length){if(ki){if(ki<70){const jn=u[0].flags;jn.dependsOn=2,jn.isNonSync=0}}else if(ci&&Hr-Ci<qr-vr&&kt/qr<.025&&u[0].cts===0){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let jn=X;for(let Yn=0,ui=u.length;Yn<ui;Yn++){const ni=jn+u[Yn].duration,wi=jn+u[Yn].cts;if(Yn<ui-1){const Fi=ni+u[Yn+1].cts;u[Yn].duration=Fi-wi}else u[Yn].duration=Yn?u[Yn-1].duration:kt;u[Yn].cts=0,jn=ni}}}K=Zn||!K?kt:K,this.nextAvcDts=v=V+K,this.videoSampleDuration=K,this.isVideoContiguous=!0;const zr={data1:Ge.moof(e.sequenceNumber++,X,g(e,{samples:u})),data2:bn,startPTS:Te/i,endPTS:(Le+K)/i,startDTS:X/i,endDTS:v/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,zr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return fi;case"ac3":return hi;default:return Dr}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,u=e.samplerate?e.samplerate:s,f=s/u,c=this.getSamplesPerFrame(e),v=c*f,E=this._initPTS,K=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,X=[],V=i!==void 0;let Te=e.samples,Le=K?0:8,Ye=this.nextAudioPts||-1;const mt=t*s,lt=E.baseTime*s/E.timescale;if(this.isAudioContiguous=n=n||Te.length&&Ye>0&&(r&&Math.abs(mt-Ye)<9e3||Math.abs(Ii(Te[0].pts-lt,mt)-Ye)<20*v),Te.forEach(function(Rr){Rr.pts=Ii(Rr.pts-lt,mt)}),!n||Ye<0){if(Te=Te.filter(Rr=>Rr.pts>=0),!Te.length)return;i===0?Ye=0:r&&!V?Ye=Math.max(0,mt):Ye=Te[0].pts}if(e.segmentCodec==="aac"){const Rr=this.config.maxAudioFramesDrift;for(let Zr=0,zr=Ye;Zr<Te.length;Zr++){const jn=Te[Zr],Yn=jn.pts,ui=Yn-zr,ni=Math.abs(1e3*ui/s);if(ui<=-Rr*v&&V)Zr===0&&(this.logger.warn(`Audio frame @ ${(Yn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*ui/s)} ms.`),this.nextAudioPts=Ye=zr=Yn);else if(ui>=Rr*v&&ni<Ar&&V){let wi=Math.round(ui/v);zr=Yn-wi*v,zr<0&&(wi--,zr+=v),Zr===0&&(this.nextAudioPts=Ye=zr),this.logger.warn(`[mp4-remuxer]: Injecting ${wi} audio frame @ ${(zr/s).toFixed(3)}s due to ${Math.round(1e3*ui/s)} ms gap.`);for(let Fi=0;Fi<wi;Fi++){const Vi=Math.max(zr,0);let ns=_n.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);ns||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ns=jn.unit.subarray()),Te.splice(Zr,0,{unit:ns,pts:Vi}),zr+=v,Zr++}}jn.pts=zr,zr+=v}}let kt=null,Nt=null,on,$t=0,qt=Te.length;for(;qt--;)$t+=Te[qt].unit.byteLength;for(let Rr=0,Zr=Te.length;Rr<Zr;Rr++){const zr=Te[Rr],jn=zr.unit;let Yn=zr.pts;if(Nt!==null){const ni=X[Rr-1];ni.duration=Math.round((Yn-Nt)/f)}else if(n&&e.segmentCodec==="aac"&&(Yn=Ye),kt=Yn,$t>0){$t+=Le;try{on=new Uint8Array($t)}catch(ni){this.observer.emit(m.ERROR,m.ERROR,{type:ue.MUX_ERROR,details:A.REMUX_ALLOC_ERROR,fatal:!1,error:ni,bytes:$t,reason:`fail allocating audio mdat ${$t}`});return}K||(new DataView(on.buffer).setUint32(0,$t),on.set(Ge.types.mdat,4))}else return;on.set(jn,Le);const ui=jn.byteLength;Le+=ui,X.push(pi(!0,c,ui,0)),Nt=Yn}const bn=X.length;if(!bn)return;const Gt=X[X.length-1];this.nextAudioPts=Ye=Nt+f*Gt.duration;const Zn=K?new Uint8Array(0):Ge.moof(e.sequenceNumber++,kt/f,g({},e,{samples:X}));e.samples=[];const vr=kt/s,Ci=Ye/s,Hr={data1:Zn,data2:on,startPTS:vr,endPTS:Ci,startDTS:vr,endDTS:Ci,type:"audio",hasAudio:!0,hasVideo:!1,nb:bn};return this.isAudioContiguous=!0,Hr}}function Ii(a,e){let t;if(e===null)return a;for(e<a?t=-8589934592:t=8589934592;Math.abs(a-e)>4294967296;)a+=t;return a}function ys(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Wr(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let u=0;u<r;u++){const f=a.samples[u];f.pts=Ii(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=Ii(f.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function ai(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const u=a.samples[s];u.pts=Ii(u.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,u)=>s.pts-u.pts);const i=a.samples;return a.samples=[],{samples:i}}class Ei{constructor(e,t,n,r){this.logger=void 0,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,this.logger=r}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(oe(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=J(e);r.audio&&(t=qi(r.audio,x.AUDIO)),r.video&&(n=qi(r.video,x.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var u,f;let{initPTS:c,lastEndTime:v}=this;const E={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};O(v)||(v=this.lastEndTime=i||0);const K=t.samples;if(!(K!=null&&K.length))return E;const X={initPTS:void 0,timescale:1};let V=this.initData;if((u=V)!=null&&u.length||(this.generateInitSegment(K),V=this.initData),!((f=V)!=null&&f.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),E;this.emitInitSegment&&(X.tracks=this.initTracks,this.emitInitSegment=!1);const Te=je(K,V),Le=Ae(V,K),Ye=Le===null?i:Le;(s||!c)&&(Ji(c,Ye,i,Te)||X.timescale!==c.timescale)&&(X.initPTS=Ye-i,c&&c.timescale===1&&this.logger.warn(`Adjusting initPTS @${i} from ${c.baseTime/c.timescale} to ${X.initPTS}`),this.initPTS=c={baseTime:X.initPTS,timescale:1});const mt=e?Ye-c.baseTime/c.timescale:v,lt=mt+Te;Be(V,K,c.baseTime/c.timescale),Te>0?this.lastEndTime=lt:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const kt=!!V.audio,Nt=!!V.video;let on="";kt&&(on+="audio"),Nt&&(on+="video");const $t={data1:K,startPTS:mt,startDTS:mt,endPTS:lt,endDTS:lt,type:on,hasAudio:kt,hasVideo:Nt,nb:1,dropped:0};return E.audio=$t.type==="audio"?$t:void 0,E.video=$t.type!=="audio"?$t:void 0,E.initSegment=X,E.id3=Wr(n,i,c,c),r.samples.length&&(E.text=ai(r,i,c)),E}}function Ji(a,e,t,n){if(a===null)return!0;const r=Math.max(n,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>r}function qi(a,e){const t=a==null?void 0:a.codec;return t&&t.length>4?t:e===x.AUDIO?t==="ec-3"||t==="ac-3"||t==="alac"?t:t==="fLaC"||t==="Opus"?Ze(t,!1):(j.warn(`Unhandled audio codec "${t}" in mp4 MAP`),t||"mp4a"):(j.warn(`Unhandled video codec "${t}" in mp4 MAP`),t||"avc1")}let Br;try{Br=self.performance.now.bind(self.performance)}catch(a){Br=Date.now}const Qi=[{demux:Nr,remux:Ei},{demux:se,remux:yi},{demux:jr,remux:yi},{demux:Kn,remux:yi}];Qi.splice(2,0,{demux:_r,remux:yi});class es{constructor(e,t,n,r,i,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=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=n,this.id=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=Br();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:f}=this;r&&(this.currentTransmuxState=r);const{contiguous:c,discontinuity:v,trackSwitch:E,accurateTimeOffset:K,timeOffset:X,initSegmentChange:V}=r||u,{audioCodec:Te,videoCodec:Le,defaultInitPts:Ye,duration:mt,initSegmentData:lt}=f,kt=bs(s,t);if(kt&&xr(kt.method)){const qt=this.getDecrypter(),bn=lr(kt.method);if(qt.isSync()){let Gt=qt.softwareDecrypt(s,kt.key.buffer,kt.iv.buffer,bn);if(n.part>-1){const vr=qt.flush();Gt=vr&&vr.buffer}if(!Gt)return i.executeEnd=Br(),Rs(n);s=new Uint8Array(Gt)}else return this.asyncResult=!0,this.decryptionPromise=qt.webCryptoDecrypt(s,kt.key.buffer,kt.iv.buffer,bn).then(Gt=>{const Zn=this.push(Gt,null,n);return this.decryptionPromise=null,Zn}),this.decryptionPromise}const Nt=this.needsProbing(v,E);if(Nt){const qt=this.configureTransmuxer(s);if(qt)return this.logger.warn(`[transmuxer] ${qt.message}`),this.observer.emit(m.ERROR,m.ERROR,{type:ue.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,fatal:!1,error:qt,reason:qt.message}),i.executeEnd=Br(),Rs(n)}(v||E||V||Nt)&&this.resetInitSegment(lt,Te,Le,mt,t),(v||V||Nt)&&this.resetInitialTimestamp(Ye),c||this.resetContiguity();const on=this.transmux(s,kt,X,K,n);this.asyncResult=Ls(on);const $t=this.currentTransmuxState;return $t.contiguous=!0,$t.discontinuity=!1,$t.trackSwitch=!1,i.executeEnd=Br(),on}flush(e){const t=e.transmuxing;t.executeStart=Br();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:u}=r;if(n){const E=n.flush();E&&s.push(this.push(E.buffer,null,e))}const{demuxer:f,remuxer:c}=this;if(!f||!c){t.executeEnd=Br();const E=[Rs(e)];return this.asyncResult?Promise.resolve(E):E}const v=f.flush(u);return Ls(v)?(this.asyncResult=!0,v.then(E=>(this.flushRemux(s,E,e),s))):(this.flushRemux(s,v,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:u}=t,{accurateTimeOffset:f,timeOffset:c}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===ne.MAIN?"level":"track"} ${n.level}`);const v=this.remuxer.remux(r,i,s,u,c,f,!0,this.id);e.push({remuxResult:v,chunkMeta:n}),n.transmuxing.executeEnd=Br()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:u}=this;!s||!u||(s.resetInitSegment(e,t,n,r),u.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:u,textTrack:f}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,u,f,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let E=0,K=Qi.length;E<K;E++){var s;if((s=Qi[E].demux)!=null&&s.probe(e,this.logger)){i=Qi[E];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const u=this.demuxer,f=this.remuxer,c=i.remux,v=i.demux;(!f||!(f instanceof c))&&(this.remuxer=new c(n,t,r,this.logger)),(!u||!(u instanceof v))&&(this.demuxer=new v(n,t,r,this.logger),this.probe=v.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Ri(this.config)),e}}function bs(a,e){let t=null;return a.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Rs=a=>({remuxResult:{},chunkMeta:a});function Ls(a){return"then"in a&&a.then instanceof Function}class $a{constructor(e,t,n,r,i){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=n,this.duration=r,this.defaultInitPts=i||null}}class ra{constructor(e,t,n,r,i,s){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=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}let Os=0;class _s{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Os++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=f=>{const c=f.data,v=this.hls;if(!(!v||!(c!=null&&c.event)||c.instanceNo!==this.instanceNo))switch(c.event){case"init":{var E;const K=(E=this.workerContext)==null?void 0:E.objectURL;K&&self.URL.revokeObjectURL(K);break}case"transmuxComplete":{this.handleTransmuxComplete(c.data);break}case"flush":{this.onFlush(c.data);break}case"workerLog":{v.logger[c.data.logType]&&v.logger[c.data.logType](c.data.message);break}default:{c.data=c.data||{},c.data.frag=this.frag,c.data.part=this.part,c.data.id=this.id,v.trigger(c.event,c.data);break}}},this.onWorkerError=f=>{if(!this.hls)return;const c=new Error(`${f.message} (${f.filename}:${f.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:c})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(f,c)=>{c=c||{},c.frag=this.frag||void 0,f===m.ERROR&&(c=c,c.parent=this.id,c.part=this.part,this.error=c.error),this.hls.trigger(f,c)};this.observer=new Ja,this.observer.on(m.FRAG_DECRYPTED,s),this.observer.on(m.ERROR,s);const u=vn(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const f=this.hls.logger;if(i.workerPath||uo()){try{i.workerPath?(f.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=Oo(i.workerPath)):(f.log(`injecting Web Worker for "${t}"`),this.workerContext=co());const{worker:v}=this.workerContext;v.addEventListener("message",this.onWorkerMessage),v.addEventListener("error",this.onWorkerError),v.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:u,id:t,config:un(i)})}catch(v){f.warn(`Error setting up "${t}" Web Worker, fallback to inline`,v),this.terminateWorker(),this.error=null,this.transmuxer=new es(this.observer,u,i,"",t,e.logger)}return}}this.transmuxer=new es(this.observer,u,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Os++;const t=this.hls.config,n=vn(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:un(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),fo(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,u,f,c,v){var E,K;c.transmuxing.start=self.performance.now();const{instanceNo:X,transmuxer:V}=this,Te=s?s.start:i.start,Le=i.decryptdata,Ye=this.frag,mt=!(Ye&&i.cc===Ye.cc),lt=!(Ye&&c.level===Ye.level),kt=Ye?c.sn-Ye.sn:-1,Nt=this.part?c.part-this.part.index:-1,on=kt===0&&c.id>1&&c.id===(Ye==null?void 0:Ye.stats.chunkCount),$t=!lt&&(kt===1||kt===0&&(Nt===1||on&&Nt<=0)),qt=self.performance.now();(lt||kt||i.stats.parsing.start===0)&&(i.stats.parsing.start=qt),s&&(Nt||!$t)&&(s.stats.parsing.start=qt);const bn=!(Ye&&((E=i.initSegment)==null?void 0:E.url)===((K=Ye.initSegment)==null?void 0:K.url)),Gt=new ra(mt,$t,f,lt,Te,bn);if(!$t||mt||bn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${c.sn}${c.part>-1?" part: "+c.part:""} ${this.id===ne.MAIN?"level":"track"}: ${c.level} id: ${c.id}
|
|
|
discontinuity: ${mt}
|
|
|
trackSwitch: ${lt}
|
|
|
contiguous: ${$t}
|
|
|
accurateTimeOffset: ${f}
|
|
|
timeOffset: ${Te}
|
|
|
initSegmentChange: ${bn}`);const Zn=new $a(n,r,t,u,v);this.configureTransmuxer(Zn)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:X,cmd:"demux",data:e,decryptdata:Le,chunkMeta:c,state:Gt},e instanceof ArrayBuffer?[e]:[]);else if(V){const Zn=V.push(e,Le,c,Gt);Ls(Zn)?Zn.then(vr=>{this.handleTransmuxComplete(vr)}).catch(vr=>{this.transmuxerError(vr,c,"transmuxer-interface push error")}):this.handleTransmuxComplete(Zn)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);Ls(r)?r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const ps=100;class ts extends js{constructor(e,t,n){super(e,t,n,"audio-stream-controller",ne.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!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.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n===ne.MAIN){const s=t.cc,u=this.fragCurrent;if(this.initPTS[s]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}/${i}`),this.mainAnchor=t,this.state===yn.WAITING_INIT_PTS){const f=this.waitingData;(!f&&!this.loadingParts||f&&f.frag.cc!==s)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&u&&u.cc!==s?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,u.abortRequests(),this.resetLoadingState()):this.state===yn.IDLE&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),n=e.cc;return rr(t,n,e)||t&&Ir(t.fragments,n)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=yn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(ps),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=yn.IDLE):this.state=yn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case yn.IDLE:this.doTickIdle();break;case yn.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=yn.WAITING_INIT_PTS}break}case yn.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,trackId:i}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((r==null?void 0:r[i])||null),this.state=yn.IDLE}break}case yn.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:s}=t,u=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=yn.FRAG_LOADING;const f=i.flush().buffer,c={frag:n,part:r,payload:f,networkDetails:null};this._handleFragmentLoadProgress(c),s&&super._handleFragmentLoadComplete(c)}else u&&u.cc!==t.frag.cc&&(this.log(`Waiting fragment cc (${n.cc}) cancelled because video is at cc ${u.cc}`),this.nextLoadPosition=this.findSyncFrag(u).start,this.clearWaitingFragment())}else this.state=yn.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==yn.STOPPED&&(this.state=yn.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const u=n[i],f=u.details;if(!f||this.waitForLive(u)||this.waitForCdnTuneIn(f)){this.state=yn.WAITING_TRACK,this.startFragRequested=!1;return}const c=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&c&&(this.bufferFlushed=!1,this.afterBufferFlushed(c,x.AUDIO,ne.AUDIO));const v=this.getFwdBufferInfo(c,ne.AUDIO);if(v===null)return;if(!this.switchingTrack&&this._streamEnded(v,f)){t.trigger(m.BUFFER_EOS,{type:"audio"}),this.state=yn.ENDED;return}const E=v.len,K=t.maxBufferLength,X=f.fragments,V=X[0].start,Te=this.getLoadPosition(),Le=this.flushing?Te:v.end;if(this.switchingTrack&&r){const lt=Te;f.PTSKnown&<<V&&(v.end>V||v.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=V+.05)}if(E>=K&&!this.switchingTrack&&Le<X[X.length-1].start)return;let Ye=this.getNextFragment(Le,f);if(Ye&&this.isLoopLoading(Ye,Le)&&(Ye=this.getNextFragmentLoopLoading(Ye,f,v,ne.MAIN,K)),!Ye){this.bufferFlushed=!0;return}let mt=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&mt&&me(Ye)&&!Ye.endList&&(!f.live||!this.loadingParts&&Le<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(mt)===qn.OK&&(this.mainFragLoading=mt=null),mt&&me(mt))){if(Ye.start>mt.end){const kt=this.fragmentTracker.getFragAtPos(Le,ne.MAIN);kt&&kt.end>mt.end&&(mt=kt,this.mainFragLoading={frag:kt,targetBufferTime:null})}if(Ye.start>mt.end)return}this.loadFragment(Ye,u,Le)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Kt(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==yn.STOPPED&&(this.setInterval(ps),this.state=yn.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(m.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:s,groupId:u,track:f}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${f.name}" of "${u}"`);return}const c=this.mainDetails;if(!c||i.endCC>c.endCC||c.expired){this.cachedTrackLoadedData=t,this.state!==yn.STOPPED&&(this.state=yn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${f.name}" of "${u}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const v=r[s];let E=0;if(i.live||(n=v.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(v.details){var K;E=this.alignPlaylists(i,v.details,(K=this.levelLastLoaded)==null?void 0:K.details)}i.alignedSliding||(xi(i,c),i.alignedSliding||hs(i,c),E=i.fragmentStart)}v.details=i,this.levelLastLoaded=v,this.startFragRequested||this.setStartPosition(c,E),this.hls.trigger(m.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===yn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=yn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:s,trackId:u,levels:f}=this;if(!f){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const c=f[u];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const v=c.details;if(!v){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const E=s.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let K=this.transmuxer;K||(K=this.transmuxer=new _s(this.hls,ne.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const X=this.initPTS[n.cc],V=(t=n.initSegment)==null?void 0:t.data;if(X!==void 0){const Le=r?r.index:-1,Ye=Le!==-1,mt=new Ti(n.level,n.sn,n.stats.chunkCount,i.byteLength,Le,Ye);K.push(i,V,E,"",n,r,v.totalduration,!1,mt,X)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${v.startSN} ,${v.endSN}],track ${u}`);const{cache:Te}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new ka,complete:!1};Te.push(new Uint8Array(i)),this.state!==yn.STOPPED&&(this.state=yn.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===ne.MAIN&&me(t.frag)&&(this.mainFragLoading=t,this.state===yn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==ne.AUDIO){!this.audioOnly&&n.type===ne.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(me(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(m.AUDIO_TRACK_SWITCHED,S({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=yn.ERROR;return}switch(t.details){case A.FRAG_GAP:case A.FRAG_PARSING_ERROR:case A.FRAG_DECRYPT_ERROR:case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ne.AUDIO,t);break;case A.AUDIO_TRACK_LOAD_ERROR:case A.AUDIO_TRACK_LOAD_TIMEOUT:case A.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===yn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===w.AUDIO_TRACK&&(this.state=yn.IDLE);break;case A.BUFFER_ADD_CODEC_ERROR:case A.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.resetLoadingState();break;case A.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case A.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==x.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==x.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===yn.ENDED&&(this.state=yn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,ne.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:c,level:v}=u,{details:E}=v,{audio:K,text:X,id3:V,initSegment:Te}=i;if(this.fragContextChanged(f)||!E){this.fragmentTracker.removeFragment(f);return}if(this.state=yn.PARSING,this.switchingTrack&&K&&this.completeAudioSwitch(this.switchingTrack),Te!=null&&Te.tracks){const Le=f.initSegment||f;this._bufferInitSegment(v,Te.tracks,Le,s),r.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:Le,id:n,tracks:Te.tracks})}if(K){const{startPTS:Le,endPTS:Ye,startDTS:mt,endDTS:lt}=K;c&&(c.elementaryStreams[x.AUDIO]={startPTS:Le,endPTS:Ye,startDTS:mt,endDTS:lt}),f.setElementaryStreamInfo(x.AUDIO,Le,Ye,mt,lt),this.bufferFragmentData(K,f,c,s)}if(V!=null&&(t=V.samples)!=null&&t.length){const Le=g({id:n,frag:f,details:E},V);r.trigger(m.FRAG_PARSING_METADATA,Le)}if(X){const Le=g({id:n,frag:f,details:E},X);r.trigger(m.FRAG_PARSING_USERDATA,Le)}}_bufferInitSegment(e,t,n,r){if(this.state!==yn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=ne.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(m.BUFFER_CODECS,t);const u=i.initSegment;if(u!=null&&u.byteLength){const f={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:u};this.hls.trigger(m.BUFFER_APPENDING,f)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===qn.NOT_LOADED||r===qn.PARTIAL){var i;if(!me(e))this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.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=yn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&hs(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:u}=this.bufferedTrack;Ft({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:u},e,Mt)||(Dn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(m.AUDIO_TRACK_SWITCHED,S({},e))}}class Oi extends ie{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,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.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const u=r[s];let f;try{f=new self.URL(u.URI,t.url).href}catch(c){this.warn(`Could not construct new URL for Rendition Report: ${c}`),f=u.URI||""}if(f===e){i=s;break}else f===e.substring(0,f.length)&&(i=s)}if(i!==-1){const s=r[i],u=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let f=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const v=Math.min(t.age-t.partTarget,t.targetduration);f>=0&&v>t.partTarget&&(f+=1)}const c=n&&pn(n);return new Ln(u,f>=0?f:void 0,c)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),u=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-u;const f=this.hls.config.timelineOffset;if(f!==r.appliedTimelineOffset){const v=Math.max(f||0,0);r.appliedTimelineOffset=v,r.fragments.forEach(E=>{E.start=E.playlistOffset+v})}if(r.live||n!=null&&n.live){const v="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){Ss(n,r);const mt=r.playlistParsingError;if(mt){this.warn(mt);const lt=this.hls;if(!lt.config.ignorePlaylistParsingErrors){var c;const{networkDetails:kt}=t;lt.trigger(m.ERROR,{type:ue.NETWORK_ERROR,details:A.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:mt,reason:mt.message,level:t.level||void 0,parent:(c=r.fragments[0])==null?void 0:c.type,networkDetails:kt,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const E=this.hls.mainForwardBufferInfo,K=E?E.end-E.len:0,X=(r.edge-K)*1e3,V=wa(r,X);if(r.requestScheduled+V<s?r.requestScheduled=s:r.requestScheduled+=V,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let Te,Le,Ye;if(r.canBlockReload&&r.endSN&&r.advanced){const mt=this.hls.config.lowLatencyMode,lt=r.lastPartSn,kt=r.endSN,Nt=r.lastPartIndex,on=Nt!==-1,$t=lt===kt;on?$t?(Le=kt+1,Ye=mt?0:Nt):(Le=lt,Ye=mt?Nt+1:r.maxPartIndex):Le=kt+1;const qt=r.age,bn=qt+r.ageHeader;let Gt=Math.min(bn-r.partTarget,r.targetduration*1.5);if(Gt>0){if(bn>r.targetduration*3)this.log(`Playlist last advanced ${qt.toFixed(2)}s ago. Omitting segment and part directives.`),Le=void 0,Ye=void 0;else if(n!=null&&n.tuneInGoal&&bn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Gt} with playlist age: ${r.age}`),Gt=0;else{const Zn=Math.floor(Gt/r.targetduration);if(Le+=Zn,Ye!==void 0){const vr=Math.round(Gt%r.targetduration/r.partTarget);Ye+=vr}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${qt.toFixed(2)}s goal: ${Gt} skip sn ${Zn} to part ${Ye}`)}r.tuneInGoal=Gt}if(Te=this.getDeliveryDirectives(r,t.deliveryDirectives,Le,Ye),mt||!$t){r.requestScheduled=s,this.loadingPlaylist(v,Te);return}}else(r.canBlockReload||r.canSkipUntil)&&(Te=this.getDeliveryDirectives(r,t.deliveryDirectives,Le,Ye));Te&&Le!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(V-u*2,V/2)),this.scheduleLoading(v,Te,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=r.requestScheduled;if(i>=s){this.loadingPlaylist(e,t);return}const u=s-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(u)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),u)}getDeliveryDirectives(e,t,n,r){let i=pn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=nn.No),new Ln(n,r,i)}checkRetry(e){const t=e.details,n=ir(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=r||{},f=!!r&&!!u&&(i===zn.RetryRequest||!r.resolved&&i===zn.SendAlternateToPenaltyBox);if(f){var c;if(s>=u.maxNumRetry)return!1;if(n&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const v=tr(u,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),v),this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" in ${v}ms`)}e.levelRetry=!0,r.resolved=!0}return f}}function ia(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!sa(a[t].attrs,e[t].attrs))return!1;return!0}function sa(a,e,t){const n=a["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>a[r]!==e[r])}function pa(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class ma extends Oi{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(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.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:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,u)}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 n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(u=>(r==null?void 0:r.indexOf(u))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const u=this.tracks.filter(K=>!n||n.indexOf(K.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(K=>K.default)&&(this.selectDefaultTrack=!1),u.forEach((K,X)=>{K.id=X});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const K=At(f,u,Mt);if(K>-1)i=u[K];else{const X=At(f,this.tracks);i=this.tracks[X]}}let c=this.findTrackId(i);c===-1&&i&&(c=this.findTrackId(null));const v={audioTracks:u};this.log(`Updating audio tracks, ${u.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(m.AUDIO_TRACKS_UPDATED,v);const E=this.trackId;if(c!==-1&&E===-1)this.setAudioTrack(c);else if(u.length&&E===-1){var s;const K=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${u.length}`);this.warn(K.message),this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:K})}}}onError(e,t){t.fatal||!t.context||t.context.type===w.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-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 n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Ft(e,r,Mt))return r;const i=At(e,this.tracksInGroup,Mt);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const u=gn(e,t.levels,n,s,Mt);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=At(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(m.AUDIO_TRACK_SWITCHING,S({},r)),i))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||Ft(e,r,Mt)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let c=0;c<t.length;c++){const v=t[c];if(Ft({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f},v,Mt))return c}for(let c=0;c<t.length;c++){const v=t[c];if(sa(e.attrs,v.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(let c=0;c<t.length;c++){const v=t[c];if(sa(e.attrs,v.attrs,["LANGUAGE"]))return c}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Dn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,u=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${u&&s.live?" age "+u.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(m.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class So{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){var n;if(r.onError(i),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
|
|
|
${this.list("video")}
|
|
|
${this.list("audio")}
|
|
|
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const wo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,mi="HlsJsTrackRemovedError";class zi extends Error{constructor(e){super(e),this.name=mi}}class ws extends ie{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:i}=this;n&&this.log("Media source opened"),!(!r||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(m.MEDIA_ATTACHED,{media:r,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=Ce(xe(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_APPENDING,this.onBufferAppending,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.BUFFER_EOS,this.onBufferEos,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.FRAG_PARSED,this.onFragParsed,this),e.on(m.FRAG_CHANGED,this.onFragChanged,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_APPENDING,this.onBufferAppending,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.BUFFER_EOS,this.onBufferEos,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.FRAG_PARSED,this.onFragParsed,this),e.off(m.FRAG_CHANGED,this.onFragChanged,this),e.off(m.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const s=this.isQueued();(i||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?g(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=g({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,r=xe(this.appendSource);if(this.transferData=this.overrides=void 0,n&&r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),i)this._objectUrl=n.src,this.attachTransferred();else{const u=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const f=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||f&&s instanceof f,Gi(n),Ps(n,u),n.load()}catch(f){n.src=u}else n.src=u}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,s=i?i.length:0,u=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(r&&i&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
|
required tracks: ${un(n,(f,c)=>f==="initSegment"?void 0:c)};
|
|
|
transfer tracks: ${un(r,(f,c)=>f==="initSegment"?void 0:c)}}`),!Se(r,n)){t.mediaSource=null,t.tracks=void 0;const f=e.currentTime,c=this.details,v=Math.max(f,(c==null?void 0:c.fragments[0].start)||0);if(v-f>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${f} -> ${v}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${v} currentTime: ${f}`),this.onMediaDetaching(m.MEDIA_DETACHING,{}),this.onMediaAttaching(m.MEDIA_ATTACHING,t),e.currentTime=v;return}this.transferData=void 0,i.forEach(f=>{const c=f,v=r[c];if(v){const E=v.buffer;if(E){const K=this.fragmentTracker,X=v.id;if(K.hasFragments(X)||K.hasParts(X)){const Le=Tr.getBuffered(E);K.detectEvictedFragments(c,Le,X,null,!0)}const V=ks(c),Te=[c,E];this.sourceBuffers[V]=Te,E.updating&&this.operationQueue&&this.operationQueue.prependBlocker(c),this.trackSourceBuffer(c,v)}}}),u(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),u()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([u])=>{u&&this.removeBuffer(u)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const u=i.readyState==="open";try{const f=i.sourceBuffers;for(let c=f.length;c--;)u&&f[c].abort(),i.removeSourceBuffer(f[c]);u&&i.endOfStream()}catch(f){this.warn(`onMediaDetaching: ${f.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&Gi(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(m.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[ks(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new So(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),s=!i&&this.sourceBufferCount&&this.media&&r.some(u=>!n[u]);if(i||s){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${r}" SourceBuffers`);return}r.forEach(u=>{var f,c,v;const E=t[u],{id:K,codec:X,levelCodec:V,container:Te,metadata:Le,supplemental:Ye}=E;let mt=n[u];const lt=(f=this.transferData)==null||(c=f.tracks)==null?void 0:c[u],kt=lt!=null&<.buffer?lt:mt,Nt=(kt==null?void 0:kt.pendingCodec)||(kt==null?void 0:kt.codec),on=kt==null?void 0:kt.levelCodec;mt||(mt=n[u]={buffer:void 0,listeners:[],codec:X,supplemental:Ye,container:Te,levelCodec:V,metadata:Le,id:K});const $t=Rn(Nt,on),qt=$t==null?void 0:$t.replace(wo,"$1");let bn=Rn(X,V);const Gt=(v=bn)==null?void 0:v.replace(wo,"$1");bn&&$t&&qt!==Gt&&(u.slice(0,5)==="audio"&&(bn=Ze(bn,this.appendSource)),this.log(`switching codec ${Nt} to ${bn}`),bn!==(mt.pendingCodec||mt.codec)&&(mt.pendingCodec=bn),mt.container=Te,this.appendChangeType(u,Te,bn))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const u=s.buffer;u!=null&&u.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),u.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,ne.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var u;const f=this.tracks.video;(this.lastVideoAppendEnd>r||f!=null&&f.buffer&&Tr.isBuffered(f.buffer,r)||((u=this.fragmentTracker.getAppendedFrag(r,ne.MAIN))==null?void 0:u.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:u=>{this.warn("Error executing block-audio operation",u)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:s,frag:u,part:f,chunkMeta:c}=t,v=c.buffering[i],E=u.sn,K=self.performance.now();v.start=K;const X=u.stats.buffering,V=f?f.stats.buffering:null;X.start===0&&(X.start=K),V&&V.start===0&&(V.start=K);const Te=n.audio;let Le=!1;i==="audio"&&(Te==null?void 0:Te.container)==="audio/mpeg"&&(Le=!this.lastMpegAudioChunk||c.id===1||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const Ye=this.tracks.video,mt=Ye==null?void 0:Ye.buffer;if(mt&&E!=="initSegment"){const Nt=f||u,on=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend){const qt=Nt.start+Nt.duration*.05,bn=mt.buffered,Gt=this.currentOp("video");!bn.length&&!Gt?this.blockAudio(Nt):!Gt&&!Tr.isBuffered(mt,qt)&&this.lastVideoAppendEnd<qt&&this.blockAudio(Nt)}else if(i==="video"){const $t=Nt.end;if(on){const qt=on.frag.start;($t>qt||$t<this.lastVideoAppendEnd||Tr.isBuffered(mt,qt))&&this.unblockAudio()}this.lastVideoAppendEnd=$t}}const lt=(f||u).start,kt={label:`append-${i}`,execute:()=>{if(v.executeStart=self.performance.now(),Le){const Nt=this.tracks[i];if(Nt){const on=Nt.buffer;if(on){const $t=lt-on.timestampOffset;Math.abs($t)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${lt} (delta: ${$t}) sn: ${E})`),on.timestampOffset=lt)}}}this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const Nt=self.performance.now();v.executeEnd=v.end=Nt,X.first===0&&(X.first=Nt),V&&V.first===0&&(V.first=Nt);const on={};this.sourceBuffers.forEach(([$t,qt])=>{$t&&(on[$t]=Tr.getBuffered(qt))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(m.BUFFER_APPENDED,{type:i,frag:u,part:f,chunkMeta:c,parent:u.type,timeRanges:on})},onError:Nt=>{var on;const $t={type:ue.MEDIA_ERROR,parent:u.type,details:A.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:u,part:f,chunkMeta:c,error:Nt,err:Nt,fatal:!1};if(Nt.code===DOMException.QUOTA_EXCEEDED_ERR)$t.details=A.BUFFER_FULL_ERROR;else if(Nt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!((on=this.media)!=null&&on.error))$t.errorAction=or(!0);else if(Nt.name===mi)this.sourceBufferCount===0?$t.errorAction=or(!0):++this.appendErrors[i];else{const qt=++this.appendErrors[i];this.warn(`Failed ${qt}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer`),qt>=this.hls.config.appendErrorMaxRetry&&($t.fatal=!0)}this.hls.trigger(m.ERROR,$t)}};this.append(kt,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(m.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,i),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[x.AUDIOVIDEO]?i.push("audiovideo"):(s[x.AUDIO]&&i.push("audio"),s[x.VIDEO]&&i.push("video"));const u=()=>{const f=self.performance.now();n.stats.buffering.end=f,r&&(r.stats.buffering.end=f);const c=r?r.stats:n.stats;this.hls.trigger(m.FRAG_BUFFERED,{frag:n,part:r,stats:c,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(u,i)}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,n;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((n=this.tracks[e])==null?void 0:n.ending))})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const u=this.tracks[s];(!t.type||t.type===s)&&(u.ending=!0,u.ended||(u.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var u;return s&&!((u=this.tracks[s])!=null&&u.ended)})&&(r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(m.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(m.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===A.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;O(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,i=n.currentTime,s=t.levelTargetDuration,u=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(O(u)&&u>=0){const f=Math.max(u,s),c=Math.floor(i/s)*s-f;this.flushBackBuffer(i,s,c)}if(O(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const f=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),c=Math.max(f,s),v=Math.floor(i/s)*s+c;this.flushFrontBuffer(i,s,v)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const u=Tr.getBuffered(i);if(u.length>0&&n>u.start(0)){var s;this.hls.trigger(m.BACK_BUFFER_REACHED,{bufferEnd:n});const f=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(m.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(f!=null&&f.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const s=Tr.getBuffered(i),u=s.length;if(u<2)return;const f=s.start(u-1),c=s.end(u-1);if(n>f||e>=f&&e<=c)return;this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:f,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const c=Math.max(0,t.fragmentStart),v=Math.max(c,r);return{duration:1/0,start:c,end:v}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return O(i)?{duration:i}:null;const s=this.media.duration,u=O(n.duration)?n.duration:0;return r>u&&r>s||!O(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(O(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${un(n)}`),this.tracksReady){var r;const i=(r=this.transferData)==null?void 0:r.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(m.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const s=i,u=e[s];if(this.isPending(u)){const f=this.getTrackCodec(u,s),c=`${u.container};codecs=${f}`;u.codec=f,this.log(`creating sourceBuffer(${c})${this.currentOp(s)?" Queued":""} ${un(u)}`);try{const v=n.addSourceBuffer(c),E=ks(s),K=[s,v];t[E]=K,u.buffer=v}catch(v){var r;this.error(`error while trying to add sourceBuffer: ${v.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:v,sourceBufferName:s,mimeType:c,parent:u.id});return}this.trackSourceBuffer(s,u)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&nt(n,"video")&&(r=xn(r,n));const i=Rn(r,e.levelCodec);return i?t.slice(0,5)==="audio"?Ze(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(i,s)=>{const u=s.removedRanges;u!=null&&u.length&&this.hls.trigger(m.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,s=this.tracks[e],u=s==null?void 0:s.buffer;if(!r||!i||!u){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const f=O(r.duration)?r.duration:1/0,c=O(i.duration)?i.duration:1/0,v=Math.max(0,t),E=Math.min(n,f,c);E>v&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${v},${E}] from the ${e} SourceBuffer`),u.remove(v,E)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new zi(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){this.isUpdating()||this.isQueued()?this.blockBuffers(e):e()}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(t))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function Gi(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function Ps(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function ks(a){return a==="audio"?1:0}class Ms{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(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.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 n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.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(),this.media=null}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,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&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 n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,Ms.getMaxLevelByMediaSize(n,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 n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.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 Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(u,f)=>f?u.width!==f.width||u.height!==f.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let u=0;u<e.length;u+=1){const f=e[u];if((f.width>=s||f.height>=s)&&r(f,e[u+1])){i=u;break}}return i}}const zs={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Qo={HLS:"h"},ja={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},yl={[ja.OBJECT]:["br","d","ot","tb"],[ja.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[ja.SESSION]:["cid","pr","sf","sid","st","v"],[ja.STATUS]:["bs","rtp"]};class za{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof za?n:new za(n))),this.value=e,this.params=t}}const bl="Dict";function Jo(a){return Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":typeof a=="object"?JSON.stringify(a):String(a)}function Co(a,e,t,n){return new Error(`failed to ${a} "${Jo(e)}" as ${t}`,{cause:n})}function aa(a,e,t){return Co("serialize",a,e,t)}class qo{constructor(e){this.description=e}}const $o="Bare Item",el="Boolean";function _l(a){if(typeof a!="boolean")throw aa(a,el);return a?"?1":"?0"}const xl="Byte Sequence";function El(a){if(ArrayBuffer.isView(a)===!1)throw aa(a,xl);return`:${bo(a)}:`}const tl="Integer";function To(a){return a<-999999999999999||999999999999999<a}function Ao(a){if(To(a))throw aa(a,tl);return a.toString()}function zo(a){return`@${Ao(a.getTime()/1e3)}`}const nl="Decimal";function rl(a){const e=eo(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw aa(a,nl);const t=e.toString();return t.includes(".")?t:`${t}.0`}const il="String",sl=/[\x00-\x1f\x7f]+/;function Sl(a){if(sl.test(a))throw aa(a,il);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function al(a){return a.description||a.toString().slice(7,-1)}const Uo="Token";function Ko(a){const e=al(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw aa(e,Uo);return e}function io(a){switch(typeof a){case"number":if(!O(a))throw aa(a,$o);return Number.isInteger(a)?Ao(a):rl(a);case"string":return Sl(a);case"symbol":return Ko(a);case"boolean":return _l(a);case"object":if(a instanceof Date)return zo(a);if(a instanceof Uint8Array)return El(a);if(a instanceof qo)return Ko(a);default:throw aa(a,$o)}}const ol="Key";function Ho(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw aa(a,ol);return a}function Si(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${Ho(e)}`:`;${Ho(e)}=${io(t)}`).join("")}function Wi(a){return a instanceof za?`${io(a.value)}${Si(a.params)}`:io(a)}function Gs(a){return`(${a.value.map(Wi).join(" ")})${Si(a.params)}`}function Ra(a,e={whitespace:!0}){if(typeof a!="object")throw aa(a,bl);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof za||(i=new za(i));let s=Ho(r);return i.value===!0?s+=Si(i.params):(s+="=",Array.isArray(i.value)?s+=Gs(i):s+=Wi(i)),s}).join(`,${n}`)}function La(a,e){return Ra(a,e)}function ll(a){return a==="ot"||a==="sf"||a==="st"}function Zo(a){return typeof a=="number"?O(a):a!=null&&a!==""&&a!==!1}const Wa=a=>Math.round(a),jo=(a,e)=>(e!=null&&e.baseUrl&&(a=Bo(a,e.baseUrl)),encodeURIComponent(a)),Ga=a=>Wa(a/100)*100,Pu={br:Wa,d:Wa,bl:Ga,dl:Ga,mtp:Ga,nor:jo,rtp:Ga,tb:Wa};function ku(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=g({},Pu,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let u=a[s];const f=r[s];f&&(u=f(u,e)),!(s==="v"&&u===1)&&(s=="pr"&&u===1||Zo(u)&&(ll(s)&&typeof u=="string"&&(u=new qo(u)),t[s]=u))}),t}function Hl(a,e={}){return a?La(ku(a,e),g({whitespace:!1},e)):""}function Mu(a,e={}){const t={};if(!a)return t;const n=Object.entries(a),r=Object.entries(yl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=n.reduce((s,u)=>{var f,c;const[v,E]=u,K=((f=r.find(X=>X[1].includes(v)))===null||f===void 0?void 0:f[0])||ja.REQUEST;return(c=s[K])!==null&&c!==void 0||(s[K]={}),s[K][v]=E,s},{});return Object.entries(i).reduce((s,[u,f])=>(s[u]=Hl(f,e),s),t)}function Nu(a,e,t){return g(a,Mu(e,t))}const Bu="CMCD";function Fu(a,e={}){if(!a)return"";const t=Hl(a,e);return`${Bu}=${encodeURIComponent(t)}`}const Zl=/CMCD=[^&#]+/;function $u(a,e,t){const n=Fu(e,t);if(!n)return a;if(Zl.test(a))return a.replace(Zl,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class zu{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=r=>{try{this.apply(r,{ot:zs.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const{frag:i,part:s}=r,u=this.hls.levels[i.level],f=this.getObjectType(i),c={d:(s||i).duration*1e3,ot:f};(f===zs.VIDEO||f===zs.AUDIO||f==zs.MUXED)&&(c.br=u.bitrate/1e3,c.tb=this.getTopBandwidth(f)/1e3,c.bl=this.getBufferLength(f));const v=s?this.getNextPart(s):this.getNextFrag(i);v!=null&&v.url&&v.url!==i.url&&(c.nor=v.url),this.apply(r,c)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHED,this.onMediaDetached,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHED,this.onMediaDetached,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=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 n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:Qo.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){g(t,this.createData());const n=t.ot===zs.INIT||t.ot===zs.VIDEO||t.ot===zs.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,u)=>(r.includes(u)&&(s[u]=t[u]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Nu(e.headers,t,i)):e.url=$u(e.url,t,i)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t,n;const{index:r,fragment:i}=e,s=(t=this.hls.levels[i.level])==null||(n=t.details)==null?void 0:n.partList;if(s){const{sn:u}=i;for(let f=s.length-1;f>=0;f--){const c=s[f];if(c.index===r&&c.fragment.sn===u)return s[f+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return zs.TIMED_TEXT;if(e.sn==="initSegment")return zs.INIT;if(t==="audio")return zs.AUDIO;if(t==="main")return this.hls.audioTracks.length?zs.VIDEO:zs.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===zs.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===zs.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Tr.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}}const Uu=3e5;class Ku extends ie{constructor(e){super("content-steering",e.logger),this.hls=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.registerListeners()}registerListeners(){const e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}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(n=>n!==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:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===zn.SendAlternateToPenaltyBox&&n.flags===dt.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:c}=t.context;u&&r?s=this.getPathwayForGroupId(u,c,s):f&&(s=f)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${un(i)} penalized: ${un(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}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 n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Uu&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const u=this.hls.nextLoadLevel,f=this.hls.levels[u];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,ca(t),this.hls.trigger(m.LEVELS_UPDATED,{levels:t});const c=this.hls.levels[u];f&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=u);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===w.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===w.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":u,"URI-REPLACEMENT":f}=i;if(t.some(v=>v.pathwayId===s))return;const c=this.getLevelsForPathway(u).map(v=>{const E=new Fr(v.attrs);E["PATHWAY-ID"]=s;const K=E.AUDIO&&`${E.AUDIO}_clone_${s}`,X=E.SUBTITLES&&`${E.SUBTITLES}_clone_${s}`;K&&(n[E.AUDIO]=K,E.AUDIO=K),X&&(r[E.SUBTITLES]=X,E.SUBTITLES=X);const V=Wl(v.uri,E["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),Te=new Kt({attrs:E,audioCodec:v.audioCodec,bitrate:v.bitrate,height:v.height,name:v.name,url:V,videoCodec:v.videoCodec,width:v.width});if(v.audioGroups)for(let Le=1;Le<v.audioGroups.length;Le++)Te.addGroupId("audio",`${v.audioGroups[Le]}_clone_${s}`);if(v.subtitleGroups)for(let Le=1;Le<v.subtitleGroups.length;Le++)Te.addGroupId("text",`${v.subtitleGroups[Le]}_clone_${s}`);return Te});t.push(...c),jl(this.audioTracks,n,f,s),jl(this.subtitleTracks,r,f,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(v){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const v=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+v)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,u=s.errorRetry||s.timeoutRetry||{},f={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:u.maxNumRetry||0,retryDelay:u.retryDelayMs||0,maxRetryDelay:u.maxRetryDelayMs||0},c={onSuccess:(v,E,K,X)=>{this.log(`Loaded steering manifest: "${r}"`);const V=v.data;if((V==null?void 0:V.VERSION)!==1){this.log(`Steering VERSION ${V.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=V.TTL;const{"RELOAD-URI":Te,"PATHWAY-CLONES":Le,"PATHWAY-PRIORITY":Ye}=V;if(Te)try{this.uri=new self.URL(Te,r).href}catch(lt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Te}`);return}this.scheduleRefresh(this.uri||K.url),Le&&this.clonePathways(Le);const mt={steeringManifest:V,url:r.toString()};this.hls.trigger(m.STEERING_MANIFEST_LOADED,mt),Ye&&this.updatePathwayPriority(Ye)},onError:(v,E,K,X)=>{if(this.log(`Error loading steering manifest: ${v.code} ${v.text} (${E.url})`),this.stopLoad(),v.code===410){this.enabled=!1,this.log(`Steering manifest ${E.url} no longer available`);return}let V=this.timeToLoad*1e3;if(v.code===429){const Te=this.loader;if(typeof(Te==null?void 0:Te.getResponseHeader)=="function"){const Le=Te.getResponseHeader("Retry-After");Le&&(V=parseFloat(Le)*1e3)}this.log(`Steering manifest ${E.url} rate limited`);return}this.scheduleRefresh(this.uri||E.url,V)},onTimeout:(v,E,K)=>{this.log(`Timeout loading steering manifest (${E.url})`),this.scheduleRefresh(this.uri||E.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,f,c)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function jl(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const u=g({},s);return u.details=void 0,u.attrs=new Fr(u.attrs),u.url=u.attrs.URI=Wl(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),u.groupId=u.attrs["GROUP-ID"]=e[r],u.attrs["PATHWAY-ID"]=n,u});a.push(...i)})}function Wl(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let u;e&&(u=s==null?void 0:s[e],u&&(a=u));const f=new self.URL(a);return r&&!u&&(f.host=r),i&&Object.keys(i).sort().forEach(c=>{c&&f.searchParams.set(c,i[c])}),f.href}class Do extends ie{constructor(e){super("eme",e.logger),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=Do.CDMCleanupPromise?[Do.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=sr(this.config));const u=s.map(as).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=Ts(s);let f,c;if(n==="sinf"){if(u!==$r.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const V=Ot(new Uint8Array(r));try{const Te=Vn(JSON.parse(V).sinf),Le=te(Te);if(!Le)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=new Uint8Array(Le.subarray(8,24)),c=$r.FAIRPLAY}catch(Te){this.warn(`${i} Failed to parse sinf: ${Te}`);return}}else{if(u!==$r.WIDEVINE&&u!==$r.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const V=yt(r),Te=V.filter(Ye=>!!Ye.systemId&&fs(Ye.systemId)===u);Te.length>1&&this.warn(`${i} Using first of ${Te.length} pssh found for selected key-system ${u}`);const Le=Te[0];if(!Le){V.length===0||V.some(Ye=>!Ye.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${V.map(Ye=>fs(Ye.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(c=fs(Le.systemId),Le.version===0&&Le.data)if(c===$r.WIDEVINE){const Ye=Le.data.length-22;f=new Uint8Array(Le.data.subarray(Ye,Ye+16))}else c===$r.PLAYREADY&&(f=gi(Le.data))}if(!c||!f)return;const v=de.hexDump(f),{keyIdToKeySessionPromise:E,mediaKeySessions:K}=this;let X=E[v];for(let V=0;V<K.length;V++){const Te=K[V],Le=Te.decryptdata;if(!Le.keyId)continue;const Ye=de.hexDump(Le.keyId);if(v===Ye||Le.uri.replace(/-/g,"").indexOf(v)!==-1){if(X=E[Ye],Le.pssh)break;delete E[Ye],Le.pssh=new Uint8Array(r),Le.keyId=f,X=E[v]=X.then(()=>this.generateRequestWithPreferredKeySession(Te,n,r,"encrypted-event-key-match")),X.catch(mt=>this.handleError(mt));break}}if(!X){if(c!==u){this.log(`Ignoring "${t.type}" event with ${c} init data for selected key-system ${u}`);return}X=E[v]=this.getKeySystemSelectionPromise([c]).then(({keySystem:V,mediaKeys:Te})=>{var Le;this.throwIfDestroyed();const Ye=new As("ISO-23001-7",v,(Le=as(V))!=null?Le:"");return Ye.pssh=new Uint8Array(r),Ye.keyId=f,this.attemptSetMediaKeys(V,Te).then(()=>{this.throwIfDestroyed();const mt=this.createMediaKeySessionContext({decryptdata:Ye,keySystem:V,mediaKeys:Te});return this.generateRequestWithPreferredKeySession(mt,n,r,"encrypted-event-no-match")})}),X.catch(V=>this.handleError(V))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(m.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===$r.WIDEVINE&&n)return n}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,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,u,f)=>!!s&&f.indexOf(s)===u,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,u)=>{const f=c=>{const v=c.shift();this.getMediaKeysPromise(v,r,i).then(E=>s({keySystem:v,mediaKeys:E})).catch(E=>{c.length?f(c):E instanceof ga?u(E):u(new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_ACCESS,error:E,fatal:!0},E.message))})};f(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return Or===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=_i(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let s=i==null?void 0:i.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${un(r)}`),s=this.requestMediaKeySystemAccess(e,r);const u=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(f=>{this.log(`Failed to obtain access to key-system "${e}": ${f}`)}),s.then(f=>{this.log(`Access for key-system "${f.keySystem}" obtained`);const c=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(v=>(this.log(`Media-keys created for "${e}"`),c.then(E=>E?this.setMediaKeysServerCertificate(v,e,E):v))),u.mediaKeys.catch(v=>{this.error(`Failed to create media-keys for "${e}"}: ${v}`)}),u.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${de.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"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 de.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${de.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
|
|
|
} (data length: ${t&&t.byteLength})`),r.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,n)=>{const r=sr(this.config),i=e.map(Ts).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=as(s);u?t(u):n(new Error(`Unable to find format for key-system "${s}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:u,mediaKeys:f})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(u,f).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:u,mediaKeys:f,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=i.then(u=>{const f="cenc",c=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(u,f,c,"playlist-key")})).catch(u=>this.handleError(u))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof ga?this.hls.trigger(m.ERROR,e.data):this.hls.trigger(m.ERROR,{type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=Ts(e.keyFormat),i=r?[r]:sr(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=sr(this.config)),e.length===0)throw new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${un({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i,s;const u=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(u)try{const V=u.call(this.hls,t,n,e);if(!V)throw new Error("Invalid response from configured generateRequest filter");t=V.initDataType,n=V.initData?V.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(V){var f;if(this.warn(V.message),(f=this.hls)!=null&&f.config.debug)throw V}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const c=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${c} (init data type: ${t} length: ${n?n.byteLength:null})`);const v=new Ja,E=e._onmessage=V=>{const Te=e.mediaKeysSession;if(!Te){v.emit("error",new Error("invalid state"));return}const{messageType:Le,message:Ye}=V;this.log(`"${Le}" message event for session "${Te.sessionId}" message size: ${Ye.byteLength}`),Le==="license-request"||Le==="license-renewal"?this.renewLicense(e,Ye).catch(mt=>{v.eventNames().length?v.emit("error",mt):this.handleError(mt)}):Le==="license-release"?e.keySystem===$r.FAIRPLAY&&(this.updateKeySession(e,Kr("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Le}"`)},K=e._onkeystatuseschange=V=>{if(!e.mediaKeysSession){v.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Le=e.keyStatus;v.emit("keyStatus",Le),Le==="expired"&&(this.warn(`${e.keySystem} expired for key ${c}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",E),e.mediaKeysSession.addEventListener("keystatuseschange",K);const X=new Promise((V,Te)=>{v.on("error",Te),v.on("keyStatus",Le=>{Le.startsWith("usable")?V():Le==="output-restricted"?Te(new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Le==="internal-error"?Te(new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Le}"`)):Le==="expired"?Te(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Le}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var V;this.log(`Request generated for key-session "${(V=e.mediaKeysSession)==null?void 0:V.sessionId}" keyId: ${c}`)}).catch(V=>{throw new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_NO_SESSION,error:V,fatal:!1},`Error generating key-session request: ${V}`)}).then(()=>X).catch(V=>{throw v.removeAllListeners(),this.removeSession(e),V}).then(()=>(v.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${de.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${de.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,u)=>{const f={responseType:"arraybuffer",url:i},c=t.certLoadPolicy.default,v={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(K,X,V,Te)=>{s(K.data)},onError:(K,X,V,Te)=>{u(new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:V,response:S({url:f.url,data:void 0},K)},`"${e}" certificate request failed (${i}). Status: ${K.code} (${K.text})`))},onTimeout:(K,X,V)=>{u(new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:V,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(K,X,V)=>{u(new Error("aborted"))}};r.load(f,v,E)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let v;for(let E=0,K=i.length;E<K;E++){var s,u;v=i[E];const X=(s=v.querySelector("name"))==null?void 0:s.textContent,V=(u=v.querySelector("value"))==null?void 0:u.textContent;X&&V&&e.setRequestHeader(X,V)}}const f=r.querySelector("Challenge"),c=f==null?void 0:f.textContent;if(!c)throw new Error("Cannot find <Challenge> in key message");return Kr(atob(c))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(u.readyState===4)if(u.status===200){this._requestLicenseFailureCount=0;let f=u.response;this.log(`License received ${f instanceof ArrayBuffer?f.byteLength:f}`);const c=this.config.licenseResponseCallback;if(c)try{f=c.call(this.hls,u,s,e)}catch(v){this.error(v)}r(f)}else{const f=n.errorRetry,c=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||u.status>=400&&u.status<500)i(new ga({type:ue.KEY_SYSTEM_ERROR,details:A.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:u,response:{url:s,data:void 0,code:u.status,text:u.statusText}},`License Request XHR failed (${s}). Status: ${u.status} (${u.statusText})`));else{const v=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${v} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=u,this.setupLicenseXHR(u,s,e,t).then(({xhr:f,licenseChallenge:c})=>{e.keySystem==$r.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(f,c)),f.send(c)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const n=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},As.clearKeyUriToKeyIdMap();const r=n.length;Do.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(e==null||(t=e.setMediaKeys(null))==null?void 0:t.catch(i=>{var s;this.log(`Could not clear media keys: ${i}`),(s=this.hls)==null||s.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(i=>{var s;this.log(`Could not close sessions and clear media keys: ${i}`),(s=this.hls)==null||s.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`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 n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=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),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);return r>-1&&this.mediaKeySessions.splice(r,1),t.remove().catch(i=>{var s;this.log(`Could not remove session: ${i}`),(s=this.hls)==null||s.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${i}`)})}).then(()=>t.close()).catch(i=>{var s;this.log(`Could not close session: ${i}`),(s=this.hls)==null||s.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${i}`)})})}}}Do.CDMCleanupPromise=void 0;class ga 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}}class Hu{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(m.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(m.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(m.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,u=t-this.lastDecodedFrames,f=1e3*s/i,c=this.hls;if(c.trigger(m.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:n}),f>0&&s>c.config.fpsDroppedMonitoringThreshold*u){let v=c.currentLevel;c.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+v),v>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=v)&&(v=v-1,c.trigger(m.FPS_DROP_LEVEL_CAPPING,{level:v,droppedLevel:c.currentLevel}),c.autoLevelCapping=v,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,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)}}function Gl(a,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function Vl(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){j.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){j.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Io(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let n=a.cues.length;n--;)e&&a.cues[n].removeEventListener("enter",e),a.removeCue(a.cues[n]);t==="disabled"&&(a.mode=t)}function wl(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=ju(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function Zu(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i;return a[n].startTime-e<e-a[r].startTime?n:r}function ju(a,e,t){const n=[],r=Zu(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const u=a[i];if(u.startTime>=e&&u.endTime<=t)n.push(u);else if(u.startTime>t)return n}return n}function ul(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}class Wu extends Oi{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.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=ul(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},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(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.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(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;ul(n.textTracks).forEach(s=>{Io(s)})}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:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,u)}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 n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(v=>!n||n.indexOf(v.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(v=>v.default)&&(this.selectDefaultTrack=!1),s.forEach((v,E)=>{v.id=E});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const v=At(u,s);if(v>-1)i=s[v];else{const E=At(u,this.tracks);i=this.tracks[E]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const c={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(m.SUBTITLE_TRACKS_UPDATED,c),f!==-1&&this.trackId===-1&&this.setSubtitleTrack(f)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||Ft(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(sa(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(sa(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(pa(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===w.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){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&Ft(e,n))return n;const r=At(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=At(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,u=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${u&&s.live?" age "+u.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(m.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=ul(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>pa(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}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.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:u="",name:f,type:c,url:v}=r;this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:c,url:v});const E=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(E)}}function Wo(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const Ro=.025;let cl=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function Gu(a,e,t){return`${a.identifier}-${t+1}-${Wo(e)}`}class Vu{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;return e<=0||isNaN(t)?!1:this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Cl(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=Cl(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=O(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Cl(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<Ro))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?cl.Range:cl.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Yu(this)}}function Cl(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<Ro)?e.start:e.start+e.duration}function Yl(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Yu(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Tl(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Xu{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{const c=this.interstitial.playoutLimit,v=this.currentTime;this.startOffset+v>=c&&this.hls.trigger(m.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let s=r.uri;try{s=Yl(s,i.sessionId).href}catch(f){}i.loadSource(s);const u=()=>{this.hasDetails=!0};i.once(m.LEVEL_LOADED,u),i.once(m.AUDIO_TRACK_LOADED,u),i.once(m.SUBTITLE_TRACK_LOADED,u),i.on(m.MEDIA_ATTACHING,(f,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&c.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,r=Tr.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=Tr.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Tl(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${(t=this.interstitial)!=null&&t.appendInPlace?"append-in-place":""}`}}const Xl=.033;class Qu extends ie{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(i=r[n])!=null&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const i=n[r].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let i=0;i<r;i++){const s=n[i];if(!s.error){const u=s.timelineStart;if(t===u||t>u&&t<u+(s.duration||0))return i}}return 0}get assetIdAtEnd(){var e,t;const n=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(n){const r=n.assetList,i=r[r.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),u=Object.keys(r),f=i?i.filter(c=>!u.includes(c.identifier)):[];s.length&&s.sort((c,v)=>{const E=c.cue.pre,K=c.cue.post,X=v.cue.pre,V=v.cue.post;if(E&&!X)return-1;if(X&&!E||K&&!V)return 1;if(V&&!K)return-1;if(!E&&!X&&!K&&!V){const Te=c.startTime,Le=v.startTime;if(Te!==Le)return Te-Le}return c.dateRange.tagOrder-v.dateRange.tagOrder}),this.events=s,f.forEach(c=>{this.removeEvent(c)}),this.updateSchedule(e,f)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const r=this.items,i=this.parseSchedule(n,e);(t.length||(r==null?void 0:r.length)!==i.length||i.some((u,f)=>Math.abs(u.playout.start-r[f].playout.start)>.005||Math.abs(u.playout.end-r[f].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const u=i[s],f=e[u];if(f.isInterstitial){let c=this.eventMap[u];c?c.setDateRange(f):(c=new Vu(f,t),this.eventMap[u]=c,n===!1&&(c.appendInPlace=n)),r.push(c)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let s=0;if(e=e.filter(f=>!f.error&&!(f.cue.once&&f.hasPlayed)),e.length){this.resolveOffsets(e,t);let f=0,c=0;if(e.forEach((v,E)=>{const K=v.cue.pre,X=v.cue.post,V=e[E-1]||null,Te=v.appendInPlace,Le=X?i:v.startOffset,Ye=v.duration,mt=v.timelineOccupancy===cl.Range?Ye:0,lt=v.resumptionOffset,kt=(V==null?void 0:V.startTime)===Le,Nt=Le+v.cumulativeDuration;let on=Te?Nt+Ye:Le+lt;if(K||!X&&Le<=0){const qt=c;c+=mt,v.timelineStart=Nt;const bn=s;s+=Ye,n.push({event:v,start:Nt,end:on,playout:{start:bn,end:s},integrated:{start:qt,end:c}})}else if(Le<=i){if(!kt){const Gt=Le-f;if(Gt>Xl){const Zn=f,vr=c;c+=Gt;const Ci=s;s+=Gt;const qr={previousEvent:e[E-1]||null,nextEvent:v,start:Zn,end:Zn+Gt,playout:{start:Ci,end:s},integrated:{start:vr,end:c}};n.push(qr)}else Gt>0&&V&&(V.cumulativeDuration+=Gt,n[n.length-1].end=Le)}X&&(on=Nt),v.timelineStart=Nt;const qt=c;c+=mt;const bn=s;s+=Ye,n.push({event:v,start:Nt,end:on,playout:{start:bn,end:s},integrated:{start:qt,end:c}})}else return;const $t=v.resumeTime;X||$t>i?f=i:f=$t}),f<i){var u;const v=f,E=c,K=i-f;c+=K;const X=s;s+=K,n.push({previousEvent:((u=n[n.length-1])==null?void 0:u.event)||null,nextEvent:null,start:f,end:v+K,playout:{start:X,end:s},integrated:{start:E,end:c}})}this.setDurations(i,s,c)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,s=-1;e.forEach((u,f)=>{const c=u.cue.pre,v=u.cue.post,E=c?0:v?r:u.startTime;this.updateAssetDurations(u),s===E?u.cumulativeDuration=i:(i=0,s=E),!v&&u.snapOptions.in&&(u.resumeAnchor=En(null,n.fragments,u.startOffset+u.resumptionOffset,0,0)||void 0),u.appendInPlace&&!u.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(u,t)||(u.appendInPlace=!1)),!u.appendInPlace&&f+1<e.length&&e[f+1].startTime-e[f].resumeTime<Xl&&(e[f+1].appendInPlace=!1,e[f+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${u}`));const X=O(u.resumeOffset)?u.resumeOffset:u.duration;i+=X})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>Ro?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):t?!Object.keys(t).some(s=>{const u=t[s].details,f=u.edge;if(n>=f)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${f}`),!1;const c=En(null,u.fragments,n);if(!c)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${u.fragStart}-${u.fragmentEnd})`),!0;const v=s==="audio"?.175:0;return Math.abs(c.start-n)<Ro+v||Math.abs(c.end-n)<Ro+v?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${c.start}-${c.end} sn: ${c.sn} cc: ${c.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;e.assetList.forEach((s,u)=>{const f=t+n;s.startOffset=n,s.timelineStart=f,r||(r=s.duration===null),i||(i=!!s.error);const c=s.error?0:s.duration||0;n+=c}),r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Va(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Ju{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Yl(n,this.hls.sessionId,e.baseUrl)}catch(K){const X=this.assignAssetListError(e,A.ASSET_LIST_LOAD_ERROR,K,n);this.hls.trigger(m.ERROR,X);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,u=new s(i),f={responseType:"json",url:r.href},c=i.interstitialAssetListLoadPolicy.default,v={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(K,X,V,Te)=>{const Le=K.data,Ye=Le==null?void 0:Le.ASSETS;if(!Array.isArray(Ye)){const mt=this.assignAssetListError(e,A.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),V.url,X,Te);this.hls.trigger(m.ERROR,mt);return}e.assetListResponse=Le,this.hls.trigger(m.ASSET_LIST_LOADED,{event:e,assetListResponse:Le,networkDetails:Te})},onError:(K,X,V,Te)=>{const Le=this.assignAssetListError(e,A.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${K.code} ${K.text} (${X.url})`),X.url,Te,V);this.hls.trigger(m.ERROR,Le)},onTimeout:(K,X,V)=>{const Te=this.assignAssetListError(e,A.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${X.url})`),X.url,K,V);this.hls.trigger(m.ERROR,Te)}};return u.load(f,v,E),this.hls.trigger(m.ASSET_LIST_LOADING,{event:e}),u}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:ue.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Ua(a,e,t){Oa(a,e,t),a.addEventListener(e,t)}function Oa(a,e,t){a.removeEventListener(e,t)}function Ql(a){a==null||a.play().catch(()=>{})}class qu extends ie{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const u=this.playingItem;if(!u){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(),this.checkBuffer(),s&&n<u.start||n>=u.end){var f;const K=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(u)&&(f=this.media)!=null&&f.paused&&(this.shouldPlay=!1),!s){const X=this.findItemIndex(u);if(K>X){const V=this.schedule.findJumpRestrictedIndex(X+1,K);if(V>X){this.setSchedulePosition(V);return}}}this.setSchedulePosition(K);return}const c=this.playingAsset;if(!c){if(this.playingLastItem&&this.isInterstitial(u)){const K=u.event.assetList[0];K&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,K))}return}const v=c.timelineStart,E=c.duration||0;(s&&n<v||n>=v+E)&&this.setScheduleToAssetAtTime(n,c)},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const u=this.findItemIndex(r);this.setSchedulePosition(u+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule,s=this.playingItem,u=i.events||[],f=i.items||[],c=i.durations,v=n.map(X=>X.identifier),E=!!(u.length||v.length);if(E&&this.log(`INTERSTITIALS_UPDATED (${u.length}): ${u}
|
|
|
Schedule: ${f.map(X=>Va(X))}`),v.length&&this.log(`Removed events ${v}`),this.playerQueue.forEach(X=>{if(X.interstitial.appendInPlace){const V=X.assetItem.timelineStart,Te=X.timelineOffset-V;if(Te)try{X.timelineOffset=V}catch(Le){Math.abs(Te)>Ro&&this.warn(`${Le} ("${X.assetId}" ${X.timelineOffset}->${V})`)}}}),s){const X=this.updateItem(s,this.timelinePos);this.itemsMatch(s,X)&&(this.playingItem=X,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const K=this.bufferingItem;if(K){const X=this.updateItem(K,this.bufferedPos);this.itemsMatch(K,X)?this.bufferingItem=X:K.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(K.event,null))}if(n.forEach(X=>{X.assetList.forEach(V=>{this.clearAssetPlayer(V.identifier,null)})}),E||r){if(this.hls.trigger(m.INTERSTITIALS_UPDATED,{events:u.slice(0),schedule:f.slice(0),durations:c,removedIds:v}),this.isInterstitial(s)&&v.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Ju(e),this.schedule=new Qu(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(m.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(m.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(m.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(m.MEDIA_ENDED,this.onMediaEnded,this),e.on(m.ERROR,this.onError,this),e.on(m.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(m.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(m.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(m.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(m.MEDIA_ENDED,this.onMediaEnded,this),e.off(m.ERROR,this.onError,this),e.off(m.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Oa(e,"play",this.onPlay),Oa(e,"pause",this.onPause),Oa(e,"seeking",this.onSeeking),Oa(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ua(n,"seeking",this.onSeeking),Ua(n,"timeupdate",this.onTimeupdate),Ua(n,"play",this.onPlay),Ua(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const i=this.findItemIndex(n);this.setSchedulePosition(i)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=E=>E&&e.getAssetPlayer(E.identifier),r=(E,K,X,V,Te)=>{if(E){let Le=E[K].start;const Ye=E.event;if(Ye){if(K==="playout"||Ye.timelineOccupancy!==cl.Point){const mt=n(X);(mt==null?void 0:mt.interstitial)===Ye&&(Le+=mt.assetItem.startOffset+mt[Te])}}else{const mt=V==="bufferedPos"?s():e[V];Le+=mt-E.start}return Le}return 0},i=(E,K)=>{if(E!==0&&K!=="primary"&&e.schedule.length){var X;const V=e.schedule.findItemIndexAtTime(E),Te=(X=e.schedule.items)==null?void 0:X[V];if(Te){const Le=Te[K].start-Te.start;return E+Le}}return E},s=()=>{const E=e.bufferedPos;return E===Number.MAX_VALUE?u("primary"):Math.max(E,0)},u=E=>{var K;return(K=e.primaryDetails)!=null&&K.live?e.primaryDetails.edge:e.schedule.durations[E]},f=(E,K)=>{var X,V;const Te=e.effectivePlayingItem;if(Te!=null&&(X=Te.event)!=null&&X.restrictions.skip)return;e.log(`seek to ${E} "${K}"`);const Le=e.effectivePlayingItem,Ye=e.schedule.findItemIndexAtTime(E,K),mt=(V=e.schedule.items)==null?void 0:V[Ye],lt=e.getBufferingPlayer(),kt=lt==null?void 0:lt.interstitial,Nt=kt==null?void 0:kt.appendInPlace,on=Le&&e.itemsMatch(Le,mt);if(Le&&(Nt||on)){const qt=n(e.playingAsset),bn=(qt==null?void 0:qt.media)||e.primaryMedia;if(bn){const Gt=K==="primary"?bn.currentTime:r(Le,K,e.playingAsset,"timelinePos","currentTime"),Zn=E-Gt,vr=(Nt?Gt:bn.currentTime)+Zn;if(vr>=0&&(!qt||Nt||vr<=qt.duration)){bn.currentTime=vr;return}}}if(mt){let qt=E;if(K!=="primary"){const Gt=mt[K].start,Zn=E-Gt;qt=mt.start+Zn}const bn=!e.isInterstitial(mt);if((!e.isInterstitial(Le)||Le.event.appendInPlace)&&(bn||mt.event.appendInPlace)){const Gt=e.media||(Nt?lt==null?void 0:lt.media:null);Gt&&(Gt.currentTime=qt)}else if(Le){const Gt=e.findItemIndex(Le);if(Ye>Gt){const vr=e.schedule.findJumpRestrictedIndex(Gt+1,Ye);if(vr>Gt){e.setSchedulePosition(vr);return}}let Zn=0;if(bn)e.timelinePos=qt,e.checkBuffer();else{var $t;const vr=mt==null||($t=mt.event)==null?void 0:$t.assetList;if(vr){const Ci=E-(mt[K]||mt).start;for(let qr=vr.length;qr--;){const Hr=vr[qr];if(Hr.duration&&Ci>=Hr.startOffset&&Ci<Hr.startOffset+Hr.duration){Zn=qr;break}}}}e.setSchedulePosition(Ye,Zn)}}},c=()=>{const E=e.effectivePlayingItem;if(e.isInterstitial(E))return E;const K=t();return e.isInterstitial(K)?K:null},v={get currentTime(){const E=c(),K=e.effectivePlayingItem;return K&&K===E?r(K,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-K.playout.start:0},set currentTime(E){const K=c(),X=e.effectivePlayingItem;X&&X===K&&f(E+X.playout.start,"playout")},get duration(){const E=c();return E?E.playout.end-E.playout.start:0},get assetPlayers(){var E;const K=(E=c())==null?void 0:E.event.assetList;return K?K.map(X=>e.getAssetPlayer(X.identifier)):[]},get playingIndex(){var E;const K=(E=c())==null?void 0:E.event;return K&&e.effectivePlayingAsset?K.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return c()}};this.manager={get events(){var E,K;return((E=e.schedule)==null||(K=E.events)==null?void 0:K.slice(0))||[]},get schedule(){var E,K;return((E=e.schedule)==null||(K=E.items)==null?void 0:K.slice(0))||[]},get interstitialPlayer(){return c()?v:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const E=t();return e.findItemIndex(E)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const E=e.effectivePlayingItem;return e.findItemIndex(E)},primary:{get bufferedEnd(){return s()},get currentTime(){const E=e.timelinePos;return E>0?E:0},set currentTime(E){f(E,"primary")},get duration(){return u("primary")},get seekableStart(){var E;return((E=e.primaryDetails)==null?void 0:E.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(E){f(E,"integrated")},get duration(){return u("integrated")},get seekableStart(){var E;return i(((E=e.primaryDetails)==null?void 0:E.fragmentStart)||0,"integrated")}},skip:()=>{const E=e.effectivePlayingItem,K=E==null?void 0:E.event;if(K&&!K.restrictions.skip){const X=e.findItemIndex(E);if(K.appendInPlace){const V=E.playout.start+E.event.duration;f(V+.001,"playout")}else e.advanceAfterAssetEnded(K,X,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const s=(n=i)==null?void 0:n.currentTime;if(!(s===void 0||!O(s)))return s}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${un(i)}`),this.detachedData=i}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,u=e!==s,f=u&&e.interstitial.appendInPlace,c=(n=this.detachedData)==null?void 0:n.mediaSource;let v;if(s.media)f&&(i=s.transferMedia(),this.detachedData=i),v="Primary";else if(c){const X=this.getBufferingPlayer();X?(i=X.transferMedia(),v=`${X}`):v="detached MediaSource"}else v="detached media";if(!i){if(c)i=this.detachedData,this.log(`using detachedData: MediaSource ${un(i)}`);else if(!this.detachedData||s.media===t){const X=this.playerQueue;X.length>1&&X.forEach(V=>{if(u&&V.interstitial.appendInPlace!==f){const Te=V.interstitial;this.clearInterstitial(V.interstitial,null),Te.appendInPlace=!1,Te.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${Te}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const E=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",K=E&&i?i:t;if(this.log(`${E?"transfering MediaSource":"attaching media"} to ${u?e:"Primary"} from ${v}`),K===i){const X=u&&e.assetId===this.schedule.assetIdAtEnd;K.overrides={duration:this.schedule.duration,endOfStream:!u||X,cueRemoval:!u}}e.attachMedia(K)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const i=this.hls.startPosition;if(this.timelinePos=i,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(i>=0||!this.primaryLive){const s=this.timelinePos=i>0?i:0,u=e.findItemIndexAtTime(s);this.setSchedulePosition(u)}}else if(r&&!this.playingItem){const i=e.findItemIndex(r);this.setSchedulePosition(i)}}advanceAfterAssetEnded(e,t,n){const r=n+1;if(!e.isAssetPastPlayoutLimit(r)&&!e.assetList[r].error)this.setSchedulePosition(t,r);else{const i=this.schedule.items;if(i){const s=t+1,u=i.length;if(s>=u){this.setSchedulePosition(-1);return}const f=e.resumeTime;this.timelinePos<f&&(this.timelinePos=f,this.checkBuffer()),this.setSchedulePosition(s)}}}setScheduleToAssetAtTime(e,t){const n=this.schedule,r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),u=n.findAssetIndex(i,e);this.setSchedulePosition(s,u)}}setSchedulePosition(e,t){const n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const r=e>=0?n[e]:null,i=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(i)){var u;const c=i.event,v=this.playingAsset,E=v==null?void 0:v.identifier,K=E?this.getAssetPlayer(E):null;if(K&&E&&(!this.eventItemsMatch(i,r)||t!==void 0&&E!==((u=c.assetList)==null?void 0:u[t].identifier))){var f;const X=c.findAssetIndex(v);this.log(`INTERSTITIAL_ASSET_ENDED ${X+1}/${c.assetList.length} ${Tl(v)}`),this.endedAsset=v,this.playingAsset=null,this.hls.trigger(m.INTERSTITIAL_ASSET_ENDED,{asset:v,assetListIndex:X,event:c,schedule:n.slice(0),scheduleIndex:e,player:K}),this.retreiveMediaSource(E,r),K.media&&!((f=this.detachedData)!=null&&f.mediaSource)&&K.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${c} ${Va(i)}`),c.hasPlayed=!0,this.hls.trigger(m.INTERSTITIAL_ENDED,{event:c,schedule:n.slice(0),scheduleIndex:e}),c.cue.once)){this.updateSchedule();const X=this.schedule.items;if(r&&X){const V=this.schedule.findItemIndex(r);this.advanceSchedule(V,X,t,i,s)}return}}this.advanceSchedule(e,n,t,i,s)}advanceSchedule(e,t,n,r,i){const s=e>=0?t[e]:null,u=this.primaryMedia,f=this.playerQueue;if(f.length&&f.forEach(c=>{const v=c.interstitial,E=this.schedule.findEventIndex(v.identifier);(E<e||E>e+1)&&this.clearInterstitial(v,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const c=s.event;n===void 0&&(n=this.schedule.findAssetIndex(c,this.timelinePos));const v=this.waitingItem;this.assetsBuffered(s,u)||this.setBufferingItem(s);let E=this.preloadAssets(c,n);if(this.eventItemsMatch(s,v||r)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${Va(s)} ${c.appendInPlace?"append in place":""}`),this.hls.trigger(m.INTERSTITIAL_STARTED,{event:c,schedule:t.slice(0),scheduleIndex:e})),!c.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${c}`);return}if(c.assetListLoader&&(c.assetListLoader.destroy(),c.assetListLoader=void 0),!u){this.log(`Waiting for attachMedia to start Interstitial ${c}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;const K=c.assetList[n];if(!K){const X=t[e+1],V=this.media;X&&V&&!this.isInterstitial(X)&&V.currentTime<X.start&&(V.currentTime=this.timelinePos=X.start),this.advanceAfterAssetEnded(c,e,n||0);return}if(E||(E=this.getAssetPlayer(K.identifier)),E===null||E.destroyed){const X=c.assetList.length;this.warn(`asset ${n+1}/${X} player destroyed ${c}`),E=this.createAssetPlayer(c,K,n)}if(!this.eventItemsMatch(s,this.bufferingItem)&&c.appendInPlace&&this.isAssetBuffered(K))return;this.startAssetPlayer(E,n,t,e,u),this.shouldPlay&&Ql(E.media)}else s!==null?(this.resumePrimary(s,e,r),this.shouldPlay&&Ql(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e,t;return(e=this.mediaSelection)==null||(t=e.main)==null?void 0:t.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Va(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let s=this.timelinePos;(s<e.start||s>=e.end)&&(s=this.getPrimaryResumption(e,t),this.timelinePos=s),this.attachPrimary(s,e)}if(!n)return;const i=this.schedule.items;i&&(this.log(`resumed ${Va(e)}`),this.hls.trigger(m.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:Tr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(m.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(m.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1)return;const n=this.hls.levels[t.level],r=S(S({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=S(S({},this.altSelection),{},{audio:n});return}const i=S(S({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=S(S({},this.altSelection),{},{subtitles:n});return}const i=S(S({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=ht(t);this.playerQueue.forEach(r=>r.hls.setAudioOption(t)||r.hls.setAudioOption(n))}onSubtitleTrackSwitch(e,t){const n=ht(t);this.playerQueue.forEach(r=>r.hls.setSubtitleOption(t)||t.id!==-1&&r.hls.setSubtitleOption(n))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const i=t[r];if(i.cue.post){var n;const s=this.schedule.findEventIndex(i.identifier),u=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(u)&&this.eventItemsMatch(u,this.bufferingItem)&&this.bufferedToItem(u,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){const n=this.schedule.items;if(e&&n){const r=this.findItemIndex(e,t);return n[r]||null}return null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=Tr.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const s=this.playingItem,u=this.findItemIndex(s);let f=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var c,v;const E=this.findItemIndex(i),K=Math.min(E+1,t.length-1),X=t[K];if((f===-1&&i&&e>=i.end||(c=X.event)!=null&&c.appendInPlace&&e+.01>=X.start)&&(f=K),K-u>1&&(i==null||(v=i.event)==null?void 0:v.appendInPlace)===!1)return;if(this.bufferedPos=e,f>E&&f>u)this.bufferedToItem(X);else{const V=this.primaryDetails;this.primaryLive&&V&&e>V.edge-V.targetduration&&X.start<V.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(X)&&this.preloadAssets(X.event,0)}}else n&&s&&!this.itemsMatch(s,i)&&(f===u?this.bufferedToItem(s):f===u+1&&this.bufferedToItem(t[f]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const i=this.getAssetPlayer(r.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),u=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const f=u?u.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${Va(e)}`+(t?` (${f.toFixed(2)} remaining)`:"")),s?e.event.assetList.forEach(c=>{const v=this.getAssetPlayer(c.identifier);v&&v.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(c=>c.pauseBuffering()))}this.hls.trigger(m.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,i=n.cue.once;if(r||!i){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const u=n.assetList[t],f=this.primaryMedia;u&&f&&this.bufferAssetPlayer(s,f)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,s=e.cue.once;if(i){const f=e.timelineStart;if(e.appendInPlace){var u;const K=this.playingItem;!this.isInterstitial(K)&&(K==null||(u=K.nextEvent)==null?void 0:u.identifier)===e.identifier&&this.flushFrontBuffer(f+.25)}let c,v=0;if(!this.playingItem&&this.primaryLive&&(v=this.hls.startPosition,v===-1&&(v=this.hls.liveSyncPosition||0)),v&&!(e.cue.pre||e.cue.post)){const K=v-f;K>0&&(c=Math.round(K*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${c?` live-start: ${v} start-offset: ${c}`:""}`),n)return this.createAsset(e,0,0,f,e.duration,n);const E=this.assetListLoader.loadAssetList(e,c);E&&(e.assetListLoader=E)}else if(!s&&r){for(let f=t;f<r;f++){const c=e.assetList[f],v=this.getAssetPlayerQueueIndex(c.identifier);(v===-1||this.playerQueue[v].destroyed)&&!c.error&&this.createAssetPlayer(e,c,f)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,i,s){const u={parentIdentifier:e.identifier,identifier:Gu(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,u,t)}createAssetPlayer(e,t,n){this.log(`create HLSAssetPlayer for ${Tl(t)}`);const r=this.hls,i=r.userConfig;let s=i.videoPreference;const u=r.loadLevelObj||r.levels[r.currentLevel];(s||u)&&(s=g({},s),u.videoCodec&&(s.videoCodec=u.videoCodec),u.videoRange&&(s.allowedVideoRanges=[u.videoRange]));const f=r.audioTracks[r.audioTrack],c=r.subtitleTracks[r.subtitleTrack];let v=0;if(this.primaryLive||e.appendInPlace){const lt=this.timelinePos-t.timelineStart;if(lt>1){const kt=t.duration;kt&<<kt&&(v=lt)}}const E=t.identifier,K=S(S({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:E,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:v,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:f||i.audioPreference,subtitlePreference:c||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(K.timelineOffset=t.timelineStart));const X=K.cmcd;X!=null&&X.sessionId&&X.contentId&&(K.cmcd=g({},X,{contentId:Wo(t.uri)})),this.getAssetPlayer(E)&&this.warn(`Duplicate date range identifier ${e} and asset ${E}`);const V=new Xu(this.HlsPlayerClass,K,e,t);this.playerQueue.push(V),e.assetList[n]=t;const Te=lt=>{if(lt.live){const on=new Error(`Interstitials MUST be VOD assets ${e}`),$t={fatal:!0,type:ue.OTHER_ERROR,details:A.INTERSTITIAL_ASSET_ITEM_ERROR,error:on};this.handleAssetItemError($t,e,this.schedule.findEventIndex(e.identifier),n,on.message);return}const kt=lt.edge-lt.fragmentStart,Nt=t.duration;(Nt===null||kt>Nt)&&(this.log(`Interstitial asset "${E}" duration change ${Nt} > ${kt}`),t.duration=kt,this.updateSchedule())};V.on(m.LEVEL_UPDATED,(lt,{details:kt})=>Te(kt)),V.on(m.LEVEL_PTS_UPDATED,(lt,{details:kt})=>Te(kt));const Le=(lt,kt)=>{const Nt=this.getAssetPlayer(E);if(Nt&&kt.tracks){Nt.off(m.BUFFER_CODECS,Le),Nt.tracks=kt.tracks;const on=this.primaryMedia;this.bufferingAsset===Nt.assetItem&&on&&!Nt.media&&this.bufferAssetPlayer(Nt,on)}};V.on(m.BUFFER_CODECS,Le);const Ye=()=>{var lt;const kt=this.getAssetPlayer(E);if(this.log(`buffered to end of asset ${kt}`),!kt)return;const Nt=this.schedule.findEventIndex(e.identifier),on=e.findAssetIndex(t),$t=on+1,qt=(lt=this.schedule.items)==null?void 0:lt[Nt];if(this.isInterstitial(qt))if(on!==-1&&!e.isAssetPastPlayoutLimit($t)&&!e.assetList[$t].error)this.bufferedToItem(qt,$t);else{var bn;const Gt=(bn=this.schedule.items)==null?void 0:bn[Nt+1];Gt&&this.bufferedToItem(Gt)}};V.on(m.BUFFERED_TO_END,Ye);const mt=lt=>()=>{if(!this.getAssetPlayer(E))return;this.shouldPlay=!0;const Nt=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,Nt,lt)};return V.once(m.MEDIA_ENDED,mt(n)),V.once(m.PLAYOUT_LIMIT_REACHED,mt(1/0)),V.on(m.ERROR,(lt,kt)=>{const Nt=this.getAssetPlayer(E);if(kt.details===A.BUFFER_STALLED_ERROR){if(Nt!=null&&Nt.media){const on=Nt.currentTime,$t=Nt.duration-on;on&&e.appendInPlace&&$t/Nt.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${E} ${e} at ${Nt.media.currentTime}`),Ye()):(this.warn(`Stalled at ${on} of ${on+$t} in asset ${E} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(kt,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${kt.error} ${e}`)}),V.on(m.DESTROYING,()=>{if(!this.getAssetPlayer(E))return;const kt=new Error(`Asset player destroyed unexpectedly ${E}`),Nt={fatal:!0,type:ue.OTHER_ERROR,details:A.INTERSTITIAL_ASSET_ITEM_ERROR,error:kt};this.handleAssetItemError(Nt,e,this.schedule.findEventIndex(e.identifier),n,kt.message)}),this.hls.trigger(m.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:V}),V}clearInterstitial(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)}),e.reset()}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){this.log(`clearAssetPlayer "${e}" toSegment: ${t&&Va(t)}`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:s,assetItem:u,assetId:f}=e,c=s.assetList.length,v=this.playingAsset;this.endedAsset=null,this.playingAsset=u,(!v||v.identifier!==f)&&(v&&(this.clearAssetPlayer(v.identifier,n[r]),delete v.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${c} ${e}`),this.hls.trigger(m.INTERSTITIAL_ASSET_STARTED,{asset:u,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;const{interstitial:i,assetItem:s,assetId:u}=e,f=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[f];if(!c)return;this.setBufferingItem(c),this.bufferingAsset=s;const v=this.getBufferingPlayer();if(v===e)return;const E=i.appendInPlace;if(E&&(v==null?void 0:v.interstitial.appendInPlace)===!1)return;const K=(v==null?void 0:v.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(E&&s!==this.playingAsset){if(!e.tracks)return;if(K&&!Se(K,e.tracks)){const X=new Error(`Asset "${u}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(K)}')`),V={fatal:!0,type:ue.OTHER_ERROR,details:A.INTERSTITIAL_ASSET_ITEM_ERROR,error:X},Te=i.findAssetIndex(s);this.handleAssetItemError(V,i,f,Te,X.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===A.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;let u=null;if(s){const E=this.getAssetPlayerQueueIndex(s.identifier);u=this.playerQueue[E]||null}const f=this.schedule.items,c=g({},e,{fatal:!1,errorAction:or(!0),asset:s,assetListIndex:r,event:t,schedule:f,scheduleIndex:n,player:u});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(m.INTERSTITIAL_ASSET_ERROR,c),!e.fatal)return;const v=new Error(i);s&&(this.playingAsset!==s&&this.clearAssetPlayer(s.identifier,null),s.error=v),t.assetList.some(E=>!E.error)?t.appendInPlace&&(t.error=v):t.error=v,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${n?Va(n):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let r=this.timelinePos;r===-1&&(r=this.hls.startPosition);const i=this.updateItem(n,r);if(this.itemsMatch(n,i))this.clearInterstitial(e,null);else{const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}}else this.checkStart()}onAssetListLoaded(e,t){var n;const r=t.event,i=r.identifier,s=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const u=r.timelineStart,f=r.duration;let c=0;s.forEach((V,Te)=>{const Le=parseFloat(V.DURATION);this.createAsset(r,Te,c,u+c,Le,V.URI),c+=Le}),r.duration=c,this.log(`Loaded asset-list with duration: ${c} (was: ${f}) ${r}`);const v=this.waitingItem,E=(v==null?void 0:v.event.identifier)===i;this.updateSchedule();const K=(n=this.bufferingItem)==null?void 0:n.event;if(E){var X;const V=this.schedule.findEventIndex(i),Te=(X=this.schedule.items)==null?void 0:X[V];if(Te){if(!this.playingItem&&this.timelinePos>Te.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==V){r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.primaryFallback(r);return}this.setBufferingItem(Te)}this.setSchedulePosition(V)}else if((K==null?void 0:K.identifier)===i&&K.appendInPlace){const V=r.assetList[0],Te=this.getAssetPlayer(V.identifier),Le=this.primaryMedia;V&&Te&&Le&&this.bufferAssetPlayer(Te,Le)}}onError(e,t){switch(t.details){case A.ASSET_LIST_PARSING_ERROR:case A.ASSET_LIST_LOAD_ERROR:case A.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&this.primaryFallback(n);break}case A.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Jl=500;class ec extends js{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",ne.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=yn.IDLE,this.setInterval(Jl),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(me(n)&&(this.fragPrevious=n),this.state=yn.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=n.start;for(let c=0;c<i.length;c++)if(u>=i[c].start&&u<=i[c].end){s=i[c];break}const f=n.start+n.duration;s?s.end=f:(s={start:u,end:f},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let u=0;u<s.length;){if(s[u].end<=i){s.shift();continue}else if(s[u].start<i)s[u].start=i;else break;u++}}),this.fragmentTracker.removeFragmentsInRange(n,i,ne.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===ne.SUBTITLE&&(t.details===A.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==yn.STOPPED&&(this.state=yn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&ia(this.levels,t)){this.levels=t.map(n=>new Kt(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Kt(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ne.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==yn.STOPPED&&this.setInterval(Jl)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:u}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${u}`);return}const f=i[u];if(u>=i.length||!f)return;this.log(`Subtitle track ${u} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let c=0;if(s.live||(n=f.details)!=null&&n.live){const E=this.mainDetails;if(s.deltaUpdateFailed||!E)return;const K=E.fragments[0];if(!f.details)s.hasProgramDateTime&&E.hasProgramDateTime?(hs(s,E),c=s.fragmentStart):K&&(c=K.start,qs(s,c));else{var v;c=this.alignPlaylists(s,f.details,(v=this.levelLastLoaded)==null?void 0:v.details),c===0&&K&&(c=K.start,qs(s,c))}}f.details=s,this.levelLastLoaded=f,u===r&&(this.hls.trigger(m.SUBTITLE_TRACK_UPDATED,{details:s,id:u,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===yn.IDLE&&(En(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),f.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&xr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,lr(r.method)).catch(u=>{throw i.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:t}),u}).then(u=>{const f=performance.now();i.trigger(m.FRAG_DECRYPTED,{frag:t,payload:u,stats:{tstart:s,tdecrypt:f}})}).catch(u=>{this.warn(`${u.name}: ${u.message}`),this.state=yn.IDLE})}}doTick(){if(!this.media){this.state=yn.IDLE;return}if(this.state===yn.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,i=this.getLoadPosition(),s=Tr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:u,len:f}=s,c=n.details,v=this.hls.maxBufferLength+c.levelTargetDuration;if(f>v)return;const E=c.fragments,K=E.length,X=c.edge;let V=null;const Te=this.fragPrevious;if(u<X){const mt=r.maxFragLookUpTolerance,lt=u>X-mt?0:mt;V=En(Te,E,Math.max(E[0].start,u),lt),!V&&Te&&Te.start<E[0].start&&(V=E[0])}else V=E[K-1];if(V=this.filterReplacedPrimary(V,n.details),!V)return;const Le=V.sn-c.startSN,Ye=E[Le-1];if(Ye&&Ye.cc===V.cc&&this.fragmentTracker.getState(Ye)===qn.NOT_LOADED&&(V=Ye),this.fragmentTracker.getState(V)===qn.NOT_LOADED){const mt=this.mapToInitFragWhenRequired(V);mt&&this.loadFragment(mt,n,u)}}}loadFragment(e,t,n){me(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new tc(this.tracksBuffered[this.currentTrackId]||[])}}class tc{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const nc={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},ql=a=>String.fromCharCode(nc[a]||a),Ea=15,Ka=100,rc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ic={17:2,18:4,21:6,22:8,23:10,19:13,20:15},sc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ac={25:2,26:4,29:6,30:8,31:10,27:13,28:15},oc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class lc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;j.log(`${this.time} [${e}] ${n}`)}}}const so=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class eu{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 n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}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 uc{constructor(){this.uchar=" ",this.penState=new eu}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 cc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new eu,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Ka;t++)this.chars.push(new uc);this.logger=e}equals(e){for(let t=0;t<Ka;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Ka;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Ka;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>Ka&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ka)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].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=ql(e);if(this.pos>=Ka){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<Ka;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 n=0;n<Ka;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Al{constructor(e){this.rows=[],this.currRow=Ea-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ea;t++)this.rows.push(new cc(e));this.logger=e}reset(){for(let e=0;e<Ea;e++)this.rows[e].clear();this.currRow=Ea-1}equals(e){let t=!0;for(let n=0;n<Ea;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ea;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ea;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 = "+un(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let u=0;u<Ea;u++)this.rows[u].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const u=s.rows[i].cueStartTime,f=this.logger.time;if(u!==null&&f!==null&&u<f)for(let c=0;c<this.nrRollUpRows;c++)this.rows[t-this.nrRollUpRows+c+1].copy(s.rows[i+c])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+un(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 n="",r=-1;for(let i=0;i<Ea;i++){const s=this.rows[i].getTextString();s&&(r=i+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
|
|
|
`)),n}getTextAndFormat(){return this.rows}}class tu{constructor(e,t,n){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 Al(n),this.nonDisplayedMemory=new Al(n),this.lastOutputScreen=new Al(n),this.currRollUpRow=this.displayedMemory.rows[Ea-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Ea-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 n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);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 n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+un(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 nu{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=fc(),this.logger=void 0;const r=this.logger=new lc;this.channels=[null,new tu(e,t,r),new tu(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,u=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+so([t[n],t[n+1]])+"] -> ("+so([r,i])+")");const f=this.cmdHistory;if(r>=16&&r<=31){if(dc(r,i,f)){dl(null,null,f),this.logger.log(3,()=>"Repeated command ("+so([r,i])+") is dropped");continue}dl(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else dl(null,null,f);if(!s&&(u=this.parseChars(r,i),u)){const v=this.currentChannel;v&&v>0?this.channels[v].insertChars(u):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!u&&this.logger.log(2,()=>"Couldn't parse cleaned data "+so([r,i])+" orig: "+so([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+so([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?rc[e]:sc[e]:n=s===1?ic[e]:ac[e];const u=this.channels[s];return u?(u.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+ql(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+so(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=oc[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const u=e<=23?1:2;return this.channels[u].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}dl(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function dl(a,e,t){t.a=a,t.b=e}function dc(a,e,t){return t.a===a&&t.b===e}function fc(){return{a:null,b:null}}var Dl=function(){if(Ai!=null&&Ai.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(u,f){if(typeof f!="string"||!Array.isArray(u))return!1;const c=f.toLowerCase();return~u.indexOf(c)?c:!1}function n(u){return t(a,u)}function r(u){return t(e,u)}function i(u,...f){let c=1;for(;c<arguments.length;c++){const v=arguments[c];for(const E in v)u[E]=v[E]}return u}function s(u,f,c){const v=this,E={enumerable:!0};v.hasBeenReset=!1;let K="",X=!1,V=u,Te=f,Le=c,Ye=null,mt="",lt=!0,kt="auto",Nt="start",on=50,$t="middle",qt=50,bn="middle";Object.defineProperty(v,"id",i({},E,{get:function(){return K},set:function(Gt){K=""+Gt}})),Object.defineProperty(v,"pauseOnExit",i({},E,{get:function(){return X},set:function(Gt){X=!!Gt}})),Object.defineProperty(v,"startTime",i({},E,{get:function(){return V},set:function(Gt){if(typeof Gt!="number")throw new TypeError("Start time must be set to a number.");V=Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"endTime",i({},E,{get:function(){return Te},set:function(Gt){if(typeof Gt!="number")throw new TypeError("End time must be set to a number.");Te=Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"text",i({},E,{get:function(){return Le},set:function(Gt){Le=""+Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"region",i({},E,{get:function(){return Ye},set:function(Gt){Ye=Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"vertical",i({},E,{get:function(){return mt},set:function(Gt){const Zn=n(Gt);if(Zn===!1)throw new SyntaxError("An invalid or illegal string was specified.");mt=Zn,this.hasBeenReset=!0}})),Object.defineProperty(v,"snapToLines",i({},E,{get:function(){return lt},set:function(Gt){lt=!!Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"line",i({},E,{get:function(){return kt},set:function(Gt){if(typeof Gt!="number"&&Gt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");kt=Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"lineAlign",i({},E,{get:function(){return Nt},set:function(Gt){const Zn=r(Gt);if(!Zn)throw new SyntaxError("An invalid or illegal string was specified.");Nt=Zn,this.hasBeenReset=!0}})),Object.defineProperty(v,"position",i({},E,{get:function(){return on},set:function(Gt){if(Gt<0||Gt>100)throw new Error("Position must be between 0 and 100.");on=Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"positionAlign",i({},E,{get:function(){return $t},set:function(Gt){const Zn=r(Gt);if(!Zn)throw new SyntaxError("An invalid or illegal string was specified.");$t=Zn,this.hasBeenReset=!0}})),Object.defineProperty(v,"size",i({},E,{get:function(){return qt},set:function(Gt){if(Gt<0||Gt>100)throw new Error("Size must be between 0 and 100.");qt=Gt,this.hasBeenReset=!0}})),Object.defineProperty(v,"align",i({},E,{get:function(){return bn},set:function(Gt){const Zn=r(Gt);if(!Zn)throw new SyntaxError("An invalid or illegal string was specified.");bn=Zn,this.hasBeenReset=!0}})),v.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class hc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function ru(a){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=a.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 pc{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){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 n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function iu(a,e,t,n){const r=n?a.split(n):[a];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const u=s[0],f=s[1];e(u,f)}}const Il=new Dl(0,0,""),fl=Il.align==="middle"?"middle":"center";function mc(a,e,t){const n=a;function r(){const u=ru(a);if(u===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),u}function i(u,f){const c=new pc;iu(u,function(K,X){let V;switch(K){case"region":for(let Te=t.length-1;Te>=0;Te--)if(t[Te].id===X){c.set(K,t[Te].region);break}break;case"vertical":c.alt(K,X,["rl","lr"]);break;case"line":V=X.split(","),c.integer(K,V[0]),c.percent(K,V[0])&&c.set("snapToLines",!1),c.alt(K,V[0],["auto"]),V.length===2&&c.alt("lineAlign",V[1],["start",fl,"end"]);break;case"position":V=X.split(","),c.percent(K,V[0]),V.length===2&&c.alt("positionAlign",V[1],["start",fl,"end","line-left","line-right","auto"]);break;case"size":c.percent(K,X);break;case"align":c.alt(K,X,["start",fl,"end","left","right"]);break}},/:/,/\s/),f.region=c.get("region",null),f.vertical=c.get("vertical","");let v=c.get("line","auto");v==="auto"&&Il.line===-1&&(v=-1),f.line=v,f.lineAlign=c.get("lineAlign","start"),f.snapToLines=c.get("snapToLines",!0),f.size=c.get("size",100),f.align=c.get("align",fl);let E=c.get("position","auto");E==="auto"&&Il.position===50&&(E=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=E}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);a=a.slice(3),s(),e.endTime=r(),s(),i(a,e)}function su(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class gc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new hc,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 n(){let i=t.buffer,s=0;for(i=su(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
|
|
|
`;)++s;const u=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
|
|
|
`&&++s,t.buffer=i.slice(s),u}function r(i){iu(i,function(s,u){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const u=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(u!=null&&u[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new Dl(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{mc(i,t.cue,t.regionList)}catch(u){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const u=i.indexOf("-->")!==-1;if(!i||u&&(s=!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+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){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 vc=/\r\n|\n\r|\n|\r/g,Rl=function(e,t,n=0){return e.slice(n,n+t.length)===t},yc=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!O(t)||!O(n)||!O(r)||!O(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function Ll(a,e,t){return Wo(a.toString())+Wo(e.toString())+Wo(t)}const bc=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function _c(a,e,t,n,r,i,s){const u=new gc,f=ge(new Uint8Array(a)).trim().replace(vc,`
|
|
|
`).split(`
|
|
|
`),c=[],v=e?cr(e.baseTime,e.timescale):0;let E="00:00.000",K=0,X=0,V,Te=!0;u.oncue=function(Le){const Ye=t[n];let mt=t.ccOffset;const lt=(K-v)/9e4;if(Ye!=null&&Ye.new&&(X!==void 0?mt=t.ccOffset=Ye.start:bc(t,n,lt)),lt){if(!e){V=new Error("Missing initPTS for VTT MPEGTS");return}mt=lt-t.presentationOffset}const kt=Le.endTime-Le.startTime,Nt=Ii((Le.startTime+mt-X)*9e4,r*9e4)/9e4;Le.startTime=Math.max(Nt,0),Le.endTime=Math.max(Nt+kt,0);const on=Le.text.trim();Le.text=decodeURIComponent(encodeURIComponent(on)),Le.id||(Le.id=Ll(Le.startTime,Le.endTime,on)),Le.endTime>0&&c.push(Le)},u.onparsingerror=function(Le){V=Le},u.onflush=function(){if(V){s(V);return}i(c)},f.forEach(Le=>{if(Te)if(Rl(Le,"X-TIMESTAMP-MAP=")){Te=!1,Le.slice(16).split(",").forEach(Ye=>{Rl(Ye,"LOCAL:")?E=Ye.slice(6):Rl(Ye,"MPEGTS:")&&(K=parseInt(Ye.slice(7)))});try{X=yc(E)/1e3}catch(Ye){V=Ye}return}else Le===""&&(Te=!1);u.parse(Le+`
|
|
|
`)}),u.flush()}const Ol="stpp.ttml.im1t",au=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ou=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,xc={left:"start",center:"center",right:"end",start:"start",end:"end"};function lu(a,e,t,n){const r=pe(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(u=>ge(u)),s=ur(e.baseTime,1,e.timescale);try{i.forEach(u=>t(Ec(u,s)))}catch(u){n(u)}}function Ec(a,e){const r=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((E,K)=>(E[K]=r.getAttribute(`ttp:${K}`)||i[K],E),{}),u=r.getAttribute("xml:space")!=="preserve",f=uu(Pl(r,"styling","style")),c=uu(Pl(r,"layout","region")),v=Pl(r,"body","[begin]");return[].map.call(v,E=>{const K=cu(E,u);if(!K||!E.hasAttribute("begin"))return null;const X=Ml(E.getAttribute("begin"),s),V=Ml(E.getAttribute("dur"),s);let Te=Ml(E.getAttribute("end"),s);if(X===null)throw du(E);if(Te===null){if(V===null)throw du(E);Te=X+V}const Le=new Dl(X-e,Te-e,K);Le.id=Ll(Le.startTime,Le.endTime,Le.text);const Ye=c[E.getAttribute("region")],mt=f[E.getAttribute("style")],lt=Sc(Ye,mt,f),{textAlign:kt}=lt;if(kt){const Nt=xc[kt];Nt&&(Le.lineAlign=Nt),Le.align=kt}return g(Le,lt),Le}).filter(E=>E!==null)}function Pl(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function uu(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function cu(a,e){return[].slice.call(a.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
|
|
|
`:(i=n.childNodes)!=null&&i.length?cu(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function Sc(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((u,f)=>{const c=kl(e,n,f)||kl(a,n,f)||kl(r,n,f);return c&&(u[f]=c),u},{})}function kl(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function du(a){return new Error(`Could not parse ttml timestamp ${a}`)}function Ml(a,e){if(!a)return null;let t=ru(a);return t===null&&(au.test(a)?t=wc(a,e):ou.test(a)&&(t=Cc(a,e))),t}function wc(a,e){const t=au.exec(a),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function Cc(a,e){const t=ou.exec(a),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class hl{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,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class Tc{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=pu(),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(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this),e.on(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(m.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(m.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new hl(this,"textTrack1"),t=new hl(this,"textTrack2"),n=new hl(this,"textTrack3"),r=new hl(this,"textTrack4");this.cea608Parser1=new nu(1,e,t),this.cea608Parser2=new nu(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let u=i.length;u--;){const f=i[u],c=Ac(f[0],f[1],t,n);if(c>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],n),s=!0,c/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const u=this.captionsTracks[e];this.Cues.newCue(u,t,n,r)}else{const u=this.Cues.newCue(null,t,n,r);this.hls.trigger(m.CUES_PARSED,{type:"captions",cues:u,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n===ne.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(u=>{this.onFragLoaded(m.FRAG_LOADED,u)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(hu(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],u=this.getExistingTrack(i,s);if(u)n[e]=u,Io(n[e]),Gl(n[e],r);else{const f=this.createTextTrack("captions",i,s);f&&(f[e]=!0,n[e]=f)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(i=>{Io(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),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 n=0;n<t.length;n++)Io(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===Ol);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(ia(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,u=s?ul(s.textTracks):null;if(this.tracks.forEach((f,c)=>{let v;if(u){let E=null;for(let K=0;K<u.length;K++)if(u[K]&&hu(u[K],f)){E=u[K],u[K]=null;break}E&&(v=E)}if(v)Io(v);else{const E=fu(f);v=this.createTextTrack(E,f.name,f.lang),v&&(v.mode="disabled")}v&&this.textTracks.push(v)}),u!=null&&u.length){const f=u.filter(c=>c!==null).map(c=>c.label);f.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${f.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(u=>({label:u.name,kind:u.type.toLowerCase(),default:u.default,subtitleTrack:u}));this.hls.trigger(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,s=this.captionsProperties[i];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}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===ne.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:c}=t.frag,v=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(c!==u+1||c===u&&v!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=c,this.lastPartIndex=v}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===ne.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const u=this.tracks[n.level],f=this.vttCCs;f[n.cc]||(f[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),u&&u.textCodec===Ol?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;lu(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,u=i.length-1;if(!i[n.cc]&&u===-1){s.push(e);return}const f=this.hls,c=(t=n.initSegment)!=null&&t.data?Qe(n.initSegment.data,new Uint8Array(r)).buffer:r;_c(c,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,v=>{this._appendCues(v,n.level),f.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},v=>{const E=v.message==="Missing initPTS for VTT MPEGTS";E?s.push(e):this._fallbackToIMSC1(n,r),f.logger.log(`Failed to parse VTT cue: ${v}`),!(E&&u>n.cc)&&f.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:v})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||lu(t,this.initPTS[e.cc],()=>{n.textCodec=Ol,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>Vl(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(m.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===ne.SUBTITLE&&this.onFragLoaded(m.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(!(n.type===ne.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const s=r[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const u=this.extractCea608Data(s);this.cea608Parser1.addData(r[i].pts,u[0]),this.cea608Parser2.addData(r[i].pts,u[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:u}=this;Object.keys(u).forEach(f=>wl(u[f],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>wl(u[f],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],u=127&e[r++],f=127&e[r++];if(u===0&&f===0)continue;if((4&s)!==0){const v=3&s;(v===0||v===1)&&(t[v].push(u),t[v].push(f))}}return t}}function fu(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function hu(a,e){return!!a&&a.kind===fu(e)&&pa(e,a)}function Ac(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Dc=/\s/,Ic={newCue(a,e,t,n){const r=[];let i,s,u,f,c;const v=self.VTTCue||self.TextTrackCue;for(let K=0;K<n.rows.length;K++)if(i=n.rows[K],u=!0,f=0,c="",!i.isEmpty()){var E;for(let Te=0;Te<i.chars.length;Te++)Dc.test(i.chars[Te].uchar)&&u?f++:(c+=i.chars[Te].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const X=su(c.trim()),V=Ll(e,t,X);a!=null&&(E=a.cues)!=null&&E.getCueById(V)||(s=new v(e,t,X),s.id=V,s.line=K+1,s.align="left",s.position=10+Math.min(80,Math.floor(f*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((K,X)=>K.line==="auto"||X.line==="auto"?0:K.line>8&&X.line>8?X.line-K.line:K.line-X.line),r.forEach(K=>Vl(a,K))),r}};function Rc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const Lc=/(\d+)-(\d+)\/(\d+)/;class mu{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||Mc,this.controller=new self.AbortController,this.stats=new y}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,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=Oc(e,this.controller.signal),s=e.responseType==="arraybuffer",u=s?"byteLength":"length",{maxTimeToFirstByteMs:f,maxLoadTimeMs:c}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=f&&O(f)?f:c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Ls(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(E=>{var K;this.response=this.loader=E;const X=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},c-(X-r.loading.start)),!E.ok){const{status:Te,statusText:Le}=E;throw new Nc(Le||"fetch, bad network response",Te,E)}r.loading.first=X,r.total=kc(E.headers)||r.total;const V=(K=this.callbacks)==null?void 0:K.onProgress;return V&&O(t.highWaterMark)?this.loadProgressively(E,r,e,t.highWaterMark,V):s?E.arrayBuffer():e.responseType==="json"?E.json():E.text()}).then(E=>{var K,X;const V=this.response;if(!V)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const Te=E[u];Te&&(r.loaded=r.total=Te);const Le={url:V.url,data:E,code:V.status},Ye=(K=this.callbacks)==null?void 0:K.onProgress;Ye&&!O(t.highWaterMark)&&Ye(r,e,E,V),(X=this.callbacks)==null||X.onSuccess(Le,r,e,V)}).catch(E=>{var K;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const X=E&&E.code||0,V=E?E.message:null;(K=this.callbacks)==null||K.onError({code:X,text:V},e,E?E.details:null,r)})}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,n,r=0,i){const s=new ka,u=e.body.getReader(),f=()=>u.read().then(c=>{if(c.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const v=c.value,E=v.length;return t.loaded+=E,E<r||s.dataLength?(s.push(v),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,v.buffer,e),f()}).catch(()=>Promise.reject());return f()}}function Oc(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(g({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function Pc(a){const e=Lc.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function kc(a){const e=a.get("Content-Range");if(e){const n=Pc(e);if(O(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function Mc(a,e){return new self.Request(a.url,e)}class Nc extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Bc=/^age:\s*[\d.]+\s*$/im;class gu{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 y,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,n){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=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var u;(u=this.callbacks)==null||u.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const u in r)e.setRequestHeader(u,r[u]);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),n.timeout=i&&O(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const c=t.status,v=t.responseType==="text"?t.responseText:null;if(c>=200&&c<300){const V=v!=null?v:t.response;if(V!=null){var s,u;n.loading.end=Math.max(self.performance.now(),n.loading.first);const Te=t.responseType==="arraybuffer"?V.byteLength:V.length;n.loaded=n.total=Te,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const Le=(s=this.callbacks)==null?void 0:s.onProgress;Le&&Le(n,e,V,t);const Ye={url:t.responseURL,data:V,code:c};(u=this.callbacks)==null||u.onSuccess(Ye,n,e,t);return}}const E=i.loadPolicy.errorRetry,K=n.retry,X={url:e.url,data:void 0,code:c};if(ei(E,K,!1,X))this.retry(E);else{var f;j.error(`${c} while loading ${e.url}`),(f=this.callbacks)==null||f.onError({code:c,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(ei(e,t,!0))this.retry(e);else{var n;j.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=tr(e,n.retry),n.retry++,j.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.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&&Bc.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}}const Fc={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},$c=S(S({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncDurationCount:3,liveSyncOnStallIncrease:1,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,ignorePlaylistParsingErrors:!1,loader:gu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Xn,bufferController:ws,capLevelController:Ms,errorController:Bn,fpsController:Hu,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:Or,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:Fc},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}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,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},zc()),{},{subtitleStreamController:ec,subtitleTrackController:Wu,timelineController:Tc,audioStreamController:ts,audioTrackController:ma,emeController:Do,cmcdController:zu,contentSteeringController:Ku,interstitialsController:qu});function zc(){return{cueHandler:Ic,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 Uc(a,e,t){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 n=Nl(a),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const u=`${s==="level"?"playlist":s}LoadPolicy`,f=e[u]===void 0,c=[];i.forEach(v=>{const E=`${s}Loading${v}`,K=e[E];if(K!==void 0&&f){c.push(E);const X=n[u].default;switch(e[u]={default:X},v){case"TimeOut":X.maxLoadTimeMs=K,X.maxTimeToFirstByteMs=K;break;case"MaxRetry":X.errorRetry.maxNumRetry=K,X.timeoutRetry.maxNumRetry=K;break;case"RetryDelay":X.errorRetry.retryDelayMs=K,X.timeoutRetry.retryDelayMs=K;break;case"MaxRetryTimeout":X.errorRetry.maxRetryDelayMs=K,X.timeoutRetry.maxRetryDelayMs=K;break}}}),c.length&&t.warn(`hls.js config: "${c.join('", "')}" setting(s) are deprecated, use "${u}": ${un(e[u])}`)}),S(S({},n),e)}function Nl(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(Nl):Object.keys(a).reduce((e,t)=>(e[t]=Nl(a[t]),e),{}):a}function Kc(a,e){const t=a.loader;t!==mu&&t!==gu?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):Rc()&&(a.loader=mu,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const pl=2,Hc=.1,Zc=.05,jc=100;class Wc extends ii{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(m.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(jc),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ua(n,"playing",this.onMediaPlaying),Ua(n,"waiting",this.onMediaWaiting),Ua(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Oa(n,"playing",this.onMediaPlaying),Oa(n,"waiting",this.onMediaWaiting),Oa(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const i=(n=this.hls)==null?void 0:n.config;if(!i)return;const{media:s,stalled:u}=this;if(!s)return;const{seeking:f}=s,c=this.seeking&&!f,v=!this.seeking&&f,E=s.paused&&!f||s.ended||s.playbackRate===0;if(this.seeking=f,e!==t){t&&(this.ended=0),this.moved=!0,f||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!E&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(v||c){c&&this.stallResolved(e);return}if(E){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(m.MEDIA_ENDED,{stalled:!1}));return}if(!Tr.getBuffered(s).length){this.nudgeRetry=0;return}const K=Tr.bufferInfo(s,e,0),X=K.nextStart||0,V=this.fragmentTracker;if(f&&V&&this.hls){const on=vu(this.hls.inFlightFragments,e),$t=K.len>pl,qt=!X||on||X-e>pl&&!V.getPartialFragment(e);if($t||qt)return;this.moved=!1}const Te=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&V){if(!(K.len>0)&&!X)return;const $t=Math.max(X,K.start||0)-e,bn=!!(Te!=null&&Te.live)?Te.targetduration*2:pl,Gt=V.getPartialFragment(e);if($t>0&&($t<=bn||Gt)){s.paused||this._trySkipBufferHole(Gt);return}}const Le=i.detectStallWithCurrentTimeMs,Ye=self.performance.now(),mt=this.waiting;if(u===null){mt>0&&Ye-mt<Le?this.stalled=mt:this.stalled=Ye;return}const lt=Ye-u;if(!f&&(lt>=Le||mt)&&this.hls){var kt;if(((kt=this.mediaSource)==null?void 0:kt.readyState)==="ended"&&!(Te!=null&&Te.live)&&Math.abs(e-((Te==null?void 0:Te.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(m.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(K),!this.media||!this.hls)return}const Nt=Tr.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(Nt,lt)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(m.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const i=Tr.bufferedInfo(Tr.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=Tr.timeRangesToArray(r),u=Tr.bufferedInfo(s,t,0).bufferedIndex;if(u>-1&&u<s.length-1){const f=Tr.bufferedInfo(s,e,0).bufferedIndex,c=s[u].end,v=s[u+1].start;if((f===-1||f>u)&&v-c<1&&e-c<2){const E=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${c} -> ${v} buffered index: ${f}`);this.warn(E.message),this.media.currentTime+=1e-6;const K=this.fragmentTracker.getPartialFragment(e)||void 0,X=Tr.bufferInfo(this.media,e,0);this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:E,reason:E.message,frag:K,buffer:X.len,bufferInfo:X})}}}}}_tryFixBufferStall(e,t){var n,r;const{fragmentTracker:i,media:s}=this,u=(n=this.hls)==null?void 0:n.config;if(!s||!i||!u)return;const f=s.currentTime,c=(r=this.hls)==null?void 0:r.latestLevelDetails,v=i.getPartialFragment(f);if((v||c!=null&&c.live&&f<c.fragmentStart)&&(this._trySkipBufferHole(v)||!this.media))return;const E=e.buffered;(E&&E.length>1&&e.len>u.maxBufferHole||e.nextStart&&e.nextStart-f<u.maxBufferHole)&&(t>u.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&i!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${un(e)})`);this.warn(s.message),t.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=(t=this.hls)==null?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,u=Tr.bufferInfo(r,s,0),f=s<u.start?u.start:u.nextStart;if(f&&this.hls){const v=u.len<=i.maxBufferHole,E=u.len>0&&u.len<1&&r.readyState<3,K=f-s;if(K>0&&(v||E)){if(K>i.maxBufferHole){let V=!1;if(s===0){const Te=n.getAppendedFrag(0,ne.MAIN);Te&&f<Te.end&&(V=!0)}if(!V){const Te=e||n.getAppendedFrag(s,ne.MAIN);if(Te){var c;if(!((c=this.hls.loadLevelObj)!=null&&c.details)||vu(this.hls.inFlightFragments,f))return 0;let Ye=!1,mt=Te.end;for(;mt<f;){const lt=n.getPartialFragment(mt);if(lt)mt+=lt.duration;else{Ye=!0;break}}if(Ye)return 0}}}const X=Math.max(f+Zc,s+Hc);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${X}`),this.moved=!0,r.currentTime=X,!(e!=null&&e.gap)){const V=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${X}`);this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:V,reason:V.message,frag:e||void 0,buffer:u.len,bufferInfo:u})}return X}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=t==null?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const u=s+(r+1)*i.nudgeOffset,f=new Error(`Nudging 'currentTime' from ${s} to ${u}`);this.warn(f.message),n.currentTime=u,t.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_NUDGE_ON_STALL,error:f,fatal:!1,buffer:e.len,bufferInfo:e})}else{const u=new Error(`Playhead still not moving while enough data buffered @${s} after ${i.nudgeMaxRetry} nudges`);this.error(u.message),t.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.BUFFER_STALLED_ERROR,error:u,fatal:!0,buffer:e.len,bufferInfo:e})}}}function vu(a,e){const t=yu(a.main);if(t&&t.start<=e)return t;const n=yu(a.audio);return n&&n.start<=e?n:null}function yu(a){if(!a)return null;switch(a.state){case yn.IDLE:case yn.STOPPED:case yn.ENDED:case yn.ERROR:return null}return a.frag}const Gc=.25;function Bl(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function bu(a,e,t,n,r){let i=new a(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new a(e,t,un(r?S({type:r},n):n))}return i}const ml=(()=>{const a=Bl();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Vc(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Yc{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(m.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Io(this.id3Track,this.onEventCueEnter),this.id3Track=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 n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Gl(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Bl();if(s)for(let u=0;u<i.length;u++){const f=i[u].type;if(f===It.emsg&&!n||!r)continue;const c=ot(i[u].data);if(c){const v=i[u].pts;let E=v+i[u].duration;E>ml&&(E=ml),E-v<=0&&(E=v+Gc);for(let X=0;X<c.length;X++){const V=c[X];if(!Et(V)){this.updateId3CueEnds(v,f);const Te=bu(s,v,E,V,f);Te&&this.id3Track.addCue(Te)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===ml&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:u,enableID3MetadataCues:f}}=s;if(i&&(u||f)){let c;r==="audio"?c=v=>v.type===It.audioId3&&f:r==="video"?c=v=>v.type===It.emsg&&u:c=v=>v.type===It.audioId3&&f||v.type===It.emsg&&u,wl(i,t,n,c)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=e,i=Object.keys(r);let s=this.dateRangeCuesAppended;if(n&&t){var u;if((u=n.cues)!=null&&u.length){const v=Object.keys(s).filter(E=>!i.includes(E));for(let E=v.length;E--;){const K=v[E],X=s[K].cues;delete s[K],Object.keys(X).forEach(V=>{try{const Te=X[V];Te.removeEventListener("enter",this.onEventCueEnter),n.removeCue(Te)}catch(Te){}})}}else s=this.dateRangeCuesAppended={}}const f=e.fragments[e.fragments.length-1];if(i.length===0||!O(f==null?void 0:f.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const c=Bl();for(let v=0;v<i.length;v++){const E=i[v],K=r[E],X=K.startTime,V=s[E],Te=(V==null?void 0:V.cues)||{};let Le=(V==null?void 0:V.durationKnown)||!1,Ye=ml;const{duration:mt,endDate:lt}=K;if(lt&&mt!==null)Ye=X+mt,Le=!0;else if(K.endOnNext&&!Le){const Nt=i.reduce((on,$t)=>{if($t!==K.id){const qt=r[$t];if(qt.class===K.class&&qt.startDate>K.startDate&&(!on||K.startDate<on.startDate))return qt}return on},null);Nt&&(Ye=Nt.startTime,Le=!0)}const kt=Object.keys(K.attr);for(let Nt=0;Nt<kt.length;Nt++){const on=kt[Nt];if(!Cs(on))continue;const $t=Te[on];if($t)Le&&!V.durationKnown?$t.endTime=Ye:Math.abs($t.startTime-X)>.01&&($t.startTime=X,$t.endTime=Ye);else if(c){let qt=K.attr[on];Nn(on)&&(qt=Vc(qt));const Gt=bu(c,X,Ye,{key:on,data:qt},It.dateRange);Gt&&(Gt.id=E,this.id3Track.addCue(Gt),Te[on]=Gt,this.hls.config.interstitialsController&&(on==="X-ASSET-LIST"||on==="X-ASSET-URL")&&Gt.addEventListener("enter",this.onEventCueEnter))}}s[E]={cues:Te,dateRange:K,durationKnown:Le}}}}class Xc{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const u=this.targetLatency;if(u===null)return;const f=r-u,c=Math.min(this.maxLatency,u+n.targetduration);if(f<c&&f>.05&&this.forwardBufferLength>1){const E=Math.min(2,Math.max(1,s)),K=Math.round(2/(1+Math.exp(-.75*f-this.edgeStalled))*20)/20,X=Math.min(E,Math.max(1,K));this.changeMediaPlaybackRate(t,X)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:u}=this.config,f=this.hls.userConfig;let c=u&&n||t;(this._targetLatencyUpdated||f.liveSyncDuration||f.liveSyncDurationCount||c===0)&&(c=i!==void 0?i:s*r);const v=r;return c+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,v)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,u=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),u)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;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}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===A.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class Qc extends Oi{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(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.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 n=this.hls.config.preferManagedMediaSource,r=[],i={},s={};let u=!1,f=!1,c=!1;t.levels.forEach(v=>{var E;const K=v.attrs;let{audioCodec:X,videoCodec:V}=v;X&&(v.audioCodec=X=Ze(X,n)||void 0),((E=V)==null?void 0:E.indexOf("avc1"))===0&&(V=v.videoCodec=Wn(V));const{width:Te,height:Le,unknownCodecs:Ye}=v;let mt=Ye?Ye.length:0;if(Ye)for(let Zn=mt;Zn--;){const vr=Ye[Zn];this.isAudioSupported(vr)?(v.audioCodec=X=X?`${X},${vr}`:vr,mt--,Sn.audio[X.substring(0,4)]=2):this.isVideoSupported(vr)&&(v.videoCodec=V=V?`${V},${vr}`:vr,mt--,Sn.video[V.substring(0,4)]=2)}if(u||(u=!!(Te&&Le)),f||(f=!!V),c||(c=!!X),mt||X&&!this.isAudioSupported(X)||V&&!this.isVideoSupported(V)){this.log(`Some or all CODECS not supported "${K.CODECS}"`);return}const{CODECS:lt,"FRAME-RATE":kt,"HDCP-LEVEL":Nt,"PATHWAY-ID":on,RESOLUTION:$t,"VIDEO-RANGE":qt}=K,Gt=`${`${on||"."}-`}${v.bitrate}-${$t}-${kt}-${lt}-${qt}-${Nt}`;if(i[Gt])if(i[Gt].uri!==v.url&&!v.attrs["PATHWAY-ID"]){const Zn=s[Gt]+=1;v.attrs["PATHWAY-ID"]=new Array(Zn+1).join(".");const vr=this.createLevel(v);i[Gt]=vr,r.push(vr)}else i[Gt].addGroupId("audio",K.AUDIO),i[Gt].addGroupId("text",K.SUBTITLES);else{const Zn=this.createLevel(v);i[Gt]=Zn,s[Gt]=1,r.push(Zn)}}),this.filterAndSortMediaOptions(r,t,u,f,c)}createLevel(e){const t=new Kt(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=Lt(r,[])}return t}isAudioSupported(e){return nt(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return nt(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],u=[],f=e;if((n||r)&&i&&(f=f.filter(({videoCodec:V,videoRange:Te,width:Le,height:Ye})=>(!!V||!!(Le&&Ye))&&cn(Te))),f.length===0){Promise.resolve().then(()=>{if(this.hls){let V="no level with compatible codecs found in manifest",Te=V;t.levels.length&&(Te=`one or more CODECS in variant not supported: ${un(t.levels.map(Ye=>Ye.attrs.CODECS).filter((Ye,mt,lt)=>lt.indexOf(Ye)===mt))}`,this.warn(Te),V+=` (${Te})`);const Le=new Error(V);this.hls.trigger(m.ERROR,{type:ue.MEDIA_ERROR,details:A.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Le,reason:Te})}});return}t.audioTracks&&(s=t.audioTracks.filter(V=>!V.audioCodec||this.isAudioSupported(V.audioCodec)),_u(s)),t.subtitles&&(u=t.subtitles,_u(u));const c=f.slice(0);f.sort((V,Te)=>{if(V.attrs["HDCP-LEVEL"]!==Te.attrs["HDCP-LEVEL"])return(V.attrs["HDCP-LEVEL"]||"")>(Te.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&V.height!==Te.height)return V.height-Te.height;if(V.frameRate!==Te.frameRate)return V.frameRate-Te.frameRate;if(V.videoRange!==Te.videoRange)return Xt.indexOf(V.videoRange)-Xt.indexOf(Te.videoRange);if(V.videoCodec!==Te.videoCodec){const Le=De(V.videoCodec),Ye=De(Te.videoCodec);if(Le!==Ye)return Ye-Le}if(V.uri===Te.uri&&V.codecSet!==Te.codecSet){const Le=Fe(V.codecSet),Ye=Fe(Te.codecSet);if(Le!==Ye)return Ye-Le}return V.averageBitrate!==Te.averageBitrate?V.averageBitrate-Te.averageBitrate:0});let v=c[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==c.length)){for(let V=0;V<c.length;V++)if(c[V].pathwayId===f[0].pathwayId){v=c[V];break}}this._levels=f;for(let V=0;V<f.length;V++)if(f[V]===v){var E;this._firstLevel=V;const Te=v.bitrate,Le=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${Te}`),((E=this.hls.userConfig)==null?void 0:E.abrEwmaDefaultEstimate)===void 0){const Ye=Math.min(Te,this.hls.config.abrEwmaDefaultEstimateMax);Ye>Le&&Le===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ye)}break}const K=i&&!r,X={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!K&&s.some(V=>!!V.url)};this.hls.trigger(m.MANIFEST_PARSED,X)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const v=new Error("invalid level idx"),E=e<0;if(this.hls.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.LEVEL_SWITCH_ERROR,level:e,fatal:E,error:v,reason:v.message}),E)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&i===u)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${n}${i?" with Pathway "+i:""}`);const f={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(m.LEVEL_SWITCHING,f);const c=s.details;if(!c||c.live){const v=this.switchParams(s.uri,r==null?void 0:r.details,c);this.loadPlaylist(v)}}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}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===w.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===ne.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=t.levelInfo;if(!s){var u;this.warn(`Invalid level index ${r}`),(u=t.deliveryDirectives)!=null&&u.skip&&(i.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let f=s.details;f===t.details&&f.advanced&&(f=void 0),this.playlistLoaded(r,t,f)}else(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,u=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${u&&s.live?" age "+u.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(m.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||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;if(this._levels.length===1)return;const n=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(u=>u.level=-1)),!1));ca(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(m.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(m.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function _u(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function xu(){return self.SourceBuffer||self.WebKitSourceBuffer}function Eu(){if(!xe())return!1;const e=xu();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Jc(){if(!Eu())return!1;const a=xe();return typeof(a==null?void 0:a.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>a.isTypeSupported(Ee(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(Ee(e,"audio"))))}function qc(){var a;const e=xu();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const e0=100;class t0 extends js{constructor(e,t,n){super(e,t,n,"stream-controller",ne.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,i=r?r.currentTime:null;if(i===null||!O(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,ne.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(e0),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._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=yn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=yn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case yn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=yn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=yn.IDLE;break}break}case yn.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=yn.IDLE}}break}this.state===yn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],u=this.getMainFwdBufferInfo();if(u===null)return;const f=this.getLevelDetails();if(f&&this._streamEnded(u,f)){const Te={};this.altAudio===2&&(Te.type="video"),this.hls.trigger(m.BUFFER_EOS,Te),this.state=yn.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const c=s.details;if(!c||this.state===yn.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=yn.WAITING_LEVEL,this.startFragRequested=!1;return}const v=u.len,E=this.getMaxBufferLength(s.maxBitrate);if(v>=E)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const K=this.backtrackFragment?this.backtrackFragment.start:u.end;let X=this.getNextFragment(K,c);if(this.couldBacktrack&&!this.fragPrevious&&X&&me(X)&&this.fragmentTracker.getState(X)!==qn.OK){var V;const Le=((V=this.backtrackFragment)!=null?V:X).sn-c.startSN,Ye=c.fragments[Le-1];Ye&&X.cc===Ye.cc&&(X=Ye,this.fragmentTracker.removeFragment(Ye))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(X&&this.isLoopLoading(X,K)){if(!X.gap){const Le=this.audioOnly&&!this.altAudio?x.AUDIO:x.VIDEO,Ye=(Le===x.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ye&&this.afterBufferFlushed(Ye,Le,ne.MAIN)}X=this.getNextFragmentLoopLoading(X,c,u,ne.MAIN,E)}X&&(X.initSegment&&!X.initSegment.data&&!this.bitrateTest&&(X=X.initSegment),this.loadFragment(X,s,K))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===qn.NOT_LOADED||r===qn.PARTIAL?me(e)?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)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,ne.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 n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const u=this.getMainFwdBufferInfo();if(!u||u.len<i.targetduration*2)return}if(!t.paused&&e){const u=this.hls.nextLoadLevel,f=e[u],c=this.fragLastKbps;c&&this.fragCurrent?n=this.fragCurrent.duration*f.maxBitrate/(1e3*c)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const u=this.followingBufferedFrag(s);if(u){this.abortCurrentFrag();const f=u.maxStartPTS?u.maxStartPTS:u.start,c=u.duration,v=Math.max(s.end,f+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,c*(this.couldBacktrack?.5:.125)),c*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(v,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 yn.KEY_LOADING:case yn.FRAG_LOADING:case yn.FRAG_LOADING_WAITING_RETRY:case yn.PARSING:case yn.PARSED:this.state=yn.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Ua(n,"playing",this.onMediaPlaying),Ua(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Oa(n,"playing",this.onMediaPlaying),Oa(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(m.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!qc(),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:n}=this;if(!n||this.state!==yn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=yn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,u=t.details,f=u.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${u.startSN},${u.endSN}]${u.lastPartSn?`[part-${u.lastPartSn}-${u.lastPartIndex}]`:""}, cc [${u.startCC}, ${u.endCC}] duration:${f}`);const c=t.levelInfo,v=this.fragCurrent;v&&(this.state===yn.FRAG_LOADING||this.state===yn.FRAG_LOADING_WAITING_RETRY)&&v.level!==t.level&&v.loader&&this.abortCurrentFrag();let E=0;if(u.live||(n=c.details)!=null&&n.live){var K;if(this.checkLiveUpdate(u),u.deltaUpdateFailed)return;E=this.alignPlaylists(u,c.details,(K=this.levelLastLoaded)==null?void 0:K.details)}if(c.details=u,this.levelLastLoaded=c,i||this.setStartPosition(u,E),this.hls.trigger(m.LEVEL_UPDATED,{details:u,level:s}),this.state===yn.WAITING_LEVEL){if(this.waitForCdnTuneIn(u))return;this.state=yn.IDLE}i&&u.live&&this.synchronizeToLiveEdge(u),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,u=e.edge,f=i>=s-t.maxFragLookUpTolerance&&i<=u;if(r!==null&&n.duration>r&&(i<r||!f)){const c=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&n.readyState<4||i<u-c)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${u}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const u=s[n.level];if(!u){this.warn(`Level ${n.level} not found on progress`);return}const f=u.details;if(!f){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const c=u.videoCodec,v=f.PTSKnown||!f.live,E=(t=n.initSegment)==null?void 0:t.data,K=this._getAudioCodec(u),X=this.transmuxer=this.transmuxer||new _s(this.hls,ne.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),V=r?r.index:-1,Te=V!==-1,Le=new Ti(n.level,n.sn,n.stats.chunkCount,i.byteLength,V,Te),Ye=this.initPTS[n.cc];X.push(i,E,K,c,n,r,f.totalduration,v,Le,Ye)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(Dn(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.fragmentTracker.removeAllFragments(),n.once(m.BUFFER_FLUSHED,()=>{var s;(s=this.hls)==null||s.trigger(m.AUDIO_TRACK_SWITCHED,t)}),n.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(m.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=Dn(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const u in n){const f=n[u];if(f.id==="main"){if(i=u,r=f,u==="video"){const c=n[u];c&&(this.videoBuffer=c.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===ne.MAIN;if(i){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===yn.PARSED&&(this.state=yn.IDLE);return}const u=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*u.total/(u.buffering.end-u.loading.first)),me(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&Tr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=yn.ERROR;return}switch(t.details){case A.FRAG_GAP:case A.FRAG_PARSING_ERROR:case A.FRAG_DECRYPT_ERROR:case A.FRAG_LOAD_ERROR:case A.FRAG_LOAD_TIMEOUT:case A.KEY_LOAD_ERROR:case A.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ne.MAIN,t);break;case A.LEVEL_LOAD_ERROR:case A.LEVEL_LOAD_TIMEOUT:case A.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===yn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===w.LEVEL&&(this.state=yn.IDLE);break;case A.BUFFER_ADD_CODEC_ERROR:case A.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.resetLoadingState();break;case A.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case A.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=yn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==x.AUDIO||!this.altAudio){const n=(t===x.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,ne.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),s=Tr.getBuffered(e),u=s.length?s.start(0):0,f=u-n,c=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);f>0&&(f<c||this.loadingParts&&f<2*((i==null?void 0:i.partTarget)||0))&&(this.log(`adjusting start position by ${f} to match buffer start`),n+=f,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${u}`),e.currentTime=n)}}_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(n=>{const{hls:r}=this,i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=yn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=i.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(m.FRAG_LOADED,n),i.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:c,level:v}=u,{video:E,text:K,id3:X,initSegment:V}=i,{details:Te}=v,Le=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=yn.PARSING,V){if(V!=null&&V.tracks){const lt=f.initSegment||f;this._bufferInitSegment(v,V.tracks,lt,s),r.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:lt,id:n,tracks:V.tracks})}const Ye=V.initPTS,mt=V.timescale;O(Ye)&&(this.initPTS[f.cc]={baseTime:Ye,timescale:mt},r.trigger(m.INIT_PTS_FOUND,{frag:f,id:n,initPTS:Ye,timescale:mt}))}if(E&&Te){const Ye=Te.fragments[f.sn-1-Te.startSN],mt=f.sn===Te.startSN,lt=!Ye||f.cc>Ye.cc;if(i.independent!==!1){const{startPTS:kt,endPTS:Nt,startDTS:on,endDTS:$t}=E;if(c)c.elementaryStreams[E.type]={startPTS:kt,endPTS:Nt,startDTS:on,endDTS:$t};else if(E.firstKeyFrame&&E.independent&&s.id===1&&!lt&&(this.couldBacktrack=!0),E.dropped&&E.independent){const qt=this.getMainFwdBufferInfo(),bn=(qt?qt.end:this.getLoadPosition())+this.config.maxBufferHole,Gt=E.firstKeyFramePTS?E.firstKeyFramePTS:kt;if(!mt&&bn<Gt-this.config.maxBufferHole&&!lt){this.backtrack(f);return}else lt&&(f.gap=!0);f.setElementaryStreamInfo(E.type,f.start,Nt,f.start,$t,!0)}else mt&&kt-(Te.appliedTimelineOffset||0)>pl&&(f.gap=!0);f.setElementaryStreamInfo(E.type,kt,Nt,on,$t),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(E,f,c,s,mt||lt)}else if(mt||lt)f.gap=!0;else{this.backtrack(f);return}}if(Le){const{startPTS:Ye,endPTS:mt,startDTS:lt,endDTS:kt}=Le;c&&(c.elementaryStreams[x.AUDIO]={startPTS:Ye,endPTS:mt,startDTS:lt,endDTS:kt}),f.setElementaryStreamInfo(x.AUDIO,Ye,mt,lt,kt),this.bufferFragmentData(Le,f,c,s)}if(Te&&X!=null&&(t=X.samples)!=null&&t.length){const Ye={id:n,frag:f,details:Te,samples:X.samples};r.trigger(m.FRAG_PARSING_METADATA,Ye)}if(Te&&K){const Ye={id:n,frag:f,details:Te,samples:K.samples};r.trigger(m.FRAG_PARSING_USERDATA,Ye)}}_bufferInitSegment(e,t,n,r){if(this.state!==yn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:s,audiovideo:u}=t;if(i){let c=Rn(i.codec,e.audioCodec);c==="mp4a"&&(c="mp4a.40.5");const v=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){c&&(c.indexOf("mp4a.40.5")!==-1?c="mp4a.40.2":c="mp4a.40.5");const E=i.metadata;E&&"channelCount"in E&&(E.channelCount||1)!==1&&v.indexOf("firefox")===-1&&(c="mp4a.40.5")}c&&c.indexOf("mp4a.40.5")!==-1&&v.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(c="mp4a.40.2",this.log(`Android: force audio codec to ${c}`)),e.audioCodec&&e.audioCodec!==c&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${c}"`),i.levelCodec=c,i.id=ne.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${c||""}/${e.audioCodec||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=ne.MAIN;const c=s.codec;if((c==null?void 0:c.length)===4)switch(c){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${c}]${s.codec!==c?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}u&&(this.log(`Init audiovideo buffer, container:${u.container}, codecs[level/parsed]=[${e.codecs}/${u.codec}]`),delete t.video,delete t.audio);const f=Object.keys(t);if(f.length){if(this.hls.trigger(m.BUFFER_CODECS,t),!this.hls)return;f.forEach(c=>{const E=t[c].initSegment;E!=null&&E.byteLength&&this.hls.trigger(m.BUFFER_APPENDING,{type:c,data:E,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,ne.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}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=yn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Tr.isBuffered(e,n)?t=this.getAppendedFrag(n):Tr.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(m.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(m.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return O(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(O(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?En(null,n.fragments,t):null);if(r){const i=r.programDateTime;if(i!==null){const s=i+(t-r.start)*1e3;return new Date(s)}}}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 n0{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.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=A.KEY_LOAD_ERROR,n,r,i){return new bi({type:ue.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:r}=e;for(let i=0;i<t.length;i++){const s=t[i];if(r<=s.cc&&(n==="initSegment"||s.sn==="initSegment"||n<s.sn)){this.emeController.selectKeySystemFormat(s).then(u=>{s.setKeyFormat(u)});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 n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const c=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,A.KEY_LOAD_ERROR,c))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,A.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let u=this.keyUriToKeyInfo[s];if((n=u)!=null&&n.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if((r=u)!=null&&r.keyLoadPromise){var f;switch((f=u.mediaKeySessionContext)==null?void 0:f.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then(c=>(i.key=c.keyInfo.decryptdata.key,{frag:e,keyInfo:u}))}}switch(u=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(u,e):this.loadKeyEME(u,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,A.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,u)=>{const f={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},c=n.keyLoadPolicy.default,v={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},E={onSuccess:(K,X,V,Te)=>{const{frag:Le,keyInfo:Ye,url:mt}=V;if(!Le.decryptdata||Ye!==this.keyUriToKeyInfo[mt])return u(this.createKeyLoadError(Le,A.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Te));Ye.decryptdata.key=Le.decryptdata.key=new Uint8Array(K.data),Le.keyLoader=null,Ye.loader=null,s({frag:Le,keyInfo:Ye})},onError:(K,X,V,Te)=>{this.resetLoader(X),u(this.createKeyLoadError(t,A.KEY_LOAD_ERROR,new Error(`HTTP Error ${K.code} loading key ${K.text}`),V,S({url:f.url,data:void 0},K)))},onTimeout:(K,X,V)=>{this.resetLoader(X),u(this.createKeyLoadError(t,A.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),V))},onAbort:(K,X,V)=>{this.resetLoader(X),u(this.createKeyLoadError(t,A.INTERNAL_ABORTED,new Error("key loading aborted"),V))}};i.load(f,v,E)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function Su(a){const{type:e}=a;switch(e){case w.AUDIO_TRACK:return ne.AUDIO;case w.SUBTITLE_TRACK:return ne.SUBTITLE;default:return ne.MAIN}}function Fl(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class r0{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}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:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:w.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:u,levelInfo:f}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:w.LEVEL,url:s,deliveryDirectives:u,levelOrTrack:f})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:u}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:w.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:u})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:u}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:w.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:u})}onLevelsUpdated(e,t){const n=this.loaders[w.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[w.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const c=this.hls.logger,v=r.context;if(v&&v.levelOrTrack===e.levelOrTrack&&(v.url===e.url||v.deliveryDirectives&&!e.deliveryDirectives)){v.url===e.url?c.log(`[playlist-loader]: ignore ${e.url} ongoing request`):c.log(`[playlist-loader]: ignore ${e.url} in favor of ${v.url}`);return}c.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===w.MANIFEST?i=n.manifestLoadPolicy.default:i=g({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),O((t=e.deliveryDirectives)==null?void 0:t.part)){let c;if(e.type===w.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===w.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===w.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const v=c.partTarget,E=c.targetduration;if(v&&E){const K=Math.max(v*3,E*.8)*1e3;i=g({},i,{maxTimeToFirstByteMs:Math.min(K,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(K,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},u={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},f={onSuccess:(c,v,E,K)=>{const X=this.getInternalLoader(E);this.resetInternalLoader(E.type);const V=c.data;if(V.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,E,new Error("no EXTM3U delimiter"),K||null,v);return}v.parsing.start=performance.now(),xs.isMediaPlaylist(V)||E.type!==w.MANIFEST?this.handleTrackOrLevelPlaylist(c,v,E,K||null,X):this.handleMasterPlaylist(c,v,E,K)},onError:(c,v,E,K)=>{this.handleNetworkError(v,E,!1,c,K)},onTimeout:(c,v,E)=>{this.handleNetworkError(v,E,!0,void 0,c)}};r.load(e,u,f)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,u=Fl(e,n),f=xs.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,n,f.playlistParsingError,r,t);return}const{contentSteering:c,levels:v,sessionData:E,sessionKeys:K,startTimeOffset:X,variableList:V}=f;this.variableList=V;const{AUDIO:Te=[],SUBTITLES:Le,"CLOSED-CAPTIONS":Ye}=xs.parseMasterPlaylistMedia(s,u,f);Te.length&&!Te.some(lt=>!lt.url)&&v[0].audioCodec&&!v[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Te.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Fr({}),bitrate:0,url:""})),i.trigger(m.MANIFEST_LOADED,{levels:v,audioTracks:Te,subtitles:Le,captions:Ye,contentSteering:c,url:u,stats:t,networkDetails:r,sessionData:E,sessionKeys:K,startTimeOffset:X,variableList:V})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:u,level:f,type:c}=n,v=Fl(e,n),E=O(f)?f:O(u)?u:0,K=Su(n),X=xs.parseLevelPlaylist(e.data,v,E,K,0,this.variableList);if(c===w.MANIFEST){const V={attrs:new Fr({}),bitrate:0,details:X,name:"",url:v};X.requestScheduled=t.loading.start+wa(X,0),s.trigger(m.MANIFEST_LOADED,{levels:[V],audioTracks:[],url:v,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=X,this.handlePlaylistLoaded(X,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(m.ERROR,{type:ue.NETWORK_ERROR,details:A.MANIFEST_PARSING_ERROR,fatal:t.type===w.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===w.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===w.AUDIO_TRACK||e.type===w.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let f=A.UNKNOWN,c=!1;const v=this.getInternalLoader(e);switch(e.type){case w.MANIFEST:f=n?A.MANIFEST_LOAD_TIMEOUT:A.MANIFEST_LOAD_ERROR,c=!0;break;case w.LEVEL:f=n?A.LEVEL_LOAD_TIMEOUT:A.LEVEL_LOAD_ERROR,c=!1;break;case w.AUDIO_TRACK:f=n?A.AUDIO_TRACK_LOAD_TIMEOUT:A.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case w.SUBTITLE_TRACK:f=n?A.SUBTITLE_TRACK_LOAD_TIMEOUT:A.SUBTITLE_LOAD_ERROR,c=!1;break}v&&this.resetInternalLoader(e.type);const E={type:ue.NETWORK_ERROR,details:f,fatal:c,url:e.url,loader:v,context:e,error:u,networkDetails:t,stats:i};if(r){const K=(t==null?void 0:t.url)||e.url;E.response=S({url:K,data:void 0},r)}this.hls.trigger(m.ERROR,E)}handlePlaylistLoaded(e,t,n,r,i,s){const u=this.hls,{type:f,level:c,id:v,groupId:E,deliveryDirectives:K}=r,X=Fl(t,r),V=Su(r),Te=typeof r.level=="number"&&V===ne.MAIN?c:void 0;if(!e.fragments.length){const Ye=e.playlistParsingError=new Error("No Segments found in Playlist");u.trigger(m.ERROR,{type:ue.NETWORK_ERROR,details:A.LEVEL_EMPTY_ERROR,fatal:!1,url:X,error:Ye,reason:Ye.message,response:t,context:r,level:Te,parent:V,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Le=e.playlistParsingError;if(Le){if(this.hls.logger.warn(Le),!u.config.ignorePlaylistParsingErrors){u.trigger(m.ERROR,{type:ue.NETWORK_ERROR,details:A.LEVEL_PARSING_ERROR,fatal:!1,url:X,error:Le,reason:Le.message,response:t,context:r,level:Te,parent:V,networkDetails:i,stats:n});return}e.playlistParsingError=null}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),f){case w.MANIFEST:case w.LEVEL:u.trigger(m.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||u.levels[0],level:Te||0,id:v||0,stats:n,networkDetails:i,deliveryDirectives:K,withoutMultiVariant:f===w.MANIFEST});break;case w.AUDIO_TRACK:u.trigger(m.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:v||0,groupId:E||"",stats:n,networkDetails:i,deliveryDirectives:K});break;case w.SUBTITLE_TRACK:u.trigger(m.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:v||0,groupId:E||"",stats:n,networkDetails:i,deliveryDirectives:K});break}}}class Ya{static get version(){return Aa}static isMSESupported(){return Eu()}static isSupported(){return Jc()}static getMediaSource(){return xe()}static get Events(){return m}static get MetadataSchema(){return It}static get ErrorTypes(){return ue}static get ErrorDetails(){return A}static get DefaultConfig(){return Ya.defaultConfig?Ya.defaultConfig:$c}static set DefaultConfig(e){Ya.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Ja,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.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=Y(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Uc(Ya.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Kc(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:u,fpsController:f}=n,c=new u(this),v=this.abrController=new r(this),E=new Lr(this),K=n.interstitialsController,X=K?this.interstitialsController=new K(this,Ya):null,V=this.bufferController=new i(this,E),Te=this.capLevelController=new s(this),Le=new f(this),Ye=new r0(this),mt=n.contentSteeringController,lt=mt?new mt(this):null,kt=this.levelController=new Qc(this,lt),Nt=new Yc(this),on=new n0(this.config),$t=this.streamController=new t0(this,E,on),qt=this.gapController=new Wc(this,E);Te.setStreamController($t),Le.setStreamController($t);const bn=[Ye,kt,$t];X&&bn.splice(1,0,X),lt&&bn.splice(1,0,lt),this.networkControllers=bn;const Gt=[v,V,qt,Te,Le,Nt,E];this.audioTrackController=this.createController(n.audioTrackController,bn);const Zn=n.audioStreamController;Zn&&bn.push(this.audioStreamController=new Zn(this,E,on)),this.subtitleTrackController=this.createController(n.subtitleTrackController,bn);const vr=n.subtitleStreamController;vr&&bn.push(this.subtititleStreamController=new vr(this,E,on)),this.createController(n.timelineController,Gt),on.emeController=this.emeController=this.createController(n.emeController,Gt),this.cmcdController=this.createController(n.cmcdController,Gt),this.latencyController=this.createController(Xc,Gt),this.coreComponents=Gt,bn.push(c);const Ci=c.onErrorOut;typeof Ci=="function"&&this.on(m.ERROR,Ci,c),this.on(m.MANIFEST_LOADED,Ye.onManifestLoaded,Ye)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===m.ERROR;this.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(m.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){if(!e||"media"in e&&!e.media){const i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(m.ERROR,{type:ue.OTHER_ERROR,details:A.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(m.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(m.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(m.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=q.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(m.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[ne.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[ne.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[ne.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=_o()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.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){this.logger.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){this.logger.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 abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){rn(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 n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}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()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0: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}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=tn(t);return Oe(e,n,navigator.mediaCapabilities)}}Ya.defaultConfig=void 0},16722:function(Qt,He,p){"use strict";p.d(He,{Z:function(){return ne}});const O=o=>typeof o=="object"&&o!=null&&o.nodeType===1,U=(o,I)=>(!I||o!=="hidden")&&o!=="visible"&&o!=="clip",ee=(o,I)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const k=getComputedStyle(o,null);return U(k.overflowY,I)||U(k.overflowX,I)||(g=>{const _=(S=>{if(!S.ownerDocument||!S.ownerDocument.defaultView)return null;try{return S.ownerDocument.defaultView.frameElement}catch(T){return null}})(g);return!!_&&(_.clientHeight<g.scrollHeight||_.clientWidth<g.scrollWidth)})(o)}return!1},ue=(o,I,k,g,_,S,T,N)=>S<o&&T>I||S>o&&T<I?0:S<=o&&N<=k||T>=I&&N>=k?S-o-g:T>I&&N<k||S<o&&N>k?T-I+_:0,A=o=>{const I=o.parentElement;return I==null?o.getRootNode().host||null:I},m=(o,I)=>{var k,g,_,S;if(typeof document=="undefined")return[];const{scrollMode:T,block:N,inline:ie,boundary:z,skipOverflowHiddenElements:$}=I,G=typeof z=="function"?z:Ue=>Ue!==z;if(!O(o))throw new TypeError("Invalid target");const Q=document.scrollingElement||document.documentElement,L=[];let D=o;for(;O(D)&&G(D);){if(D=A(D),D===Q){L.push(D);break}D!=null&&D===document.body&&ee(D)&&!ee(document.documentElement)||D!=null&&ee(D,$)&&L.push(D)}const Y=(g=(k=window.visualViewport)==null?void 0:k.width)!=null?g:innerWidth,j=(S=(_=window.visualViewport)==null?void 0:_.height)!=null?S:innerHeight,{scrollX:xe,scrollY:Ce}=window,{height:Se,width:ge,top:de,right:W,bottom:be,left:F}=o.getBoundingClientRect(),{top:ce,right:q,bottom:y,left:x}=(Ue=>{const ze=window.getComputedStyle(Ue);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(o);let Z=N==="start"||N==="nearest"?de-ce:N==="end"?be+y:de+Se/2-ce+y,me=ie==="center"?F+ge/2-x+q:ie==="end"?W+q:F-x;const Ne=[];for(let Ue=0;Ue<L.length;Ue++){const ze=L[Ue],{height:et,width:pt,top:gt,right:at,bottom:Ot,left:en}=ze.getBoundingClientRect();if(T==="if-needed"&&de>=0&&F>=0&&be<=j&&W<=Y&&(ze===Q&&!ee(ze)||de>=gt&&be<=Ot&&F>=en&&W<=at))return Ne;const Rt=getComputedStyle(ze),Zt=parseInt(Rt.borderLeftWidth,10),ut=parseInt(Rt.borderTopWidth,10),Ct=parseInt(Rt.borderRightWidth,10),he=parseInt(Rt.borderBottomWidth,10);let pe=0,le=0;const J="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-Zt-Ct:0,Ie="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-ut-he:0,H="offsetWidth"in ze?ze.offsetWidth===0?0:pt/ze.offsetWidth:0,R="offsetHeight"in ze?ze.offsetHeight===0?0:et/ze.offsetHeight:0;if(Q===ze)pe=N==="start"?Z:N==="end"?Z-j:N==="nearest"?ue(Ce,Ce+j,j,ut,he,Ce+Z,Ce+Z+Se,Se):Z-j/2,le=ie==="start"?me:ie==="center"?me-Y/2:ie==="end"?me-Y:ue(xe,xe+Y,Y,Zt,Ct,xe+me,xe+me+ge,ge),pe=Math.max(0,pe+Ce),le=Math.max(0,le+xe);else{pe=N==="start"?Z-gt-ut:N==="end"?Z-Ot+he+Ie:N==="nearest"?ue(gt,Ot,et,ut,he+Ie,Z,Z+Se,Se):Z-(gt+et/2)+Ie/2,le=ie==="start"?me-en-Zt:ie==="center"?me-(en+pt/2)+J/2:ie==="end"?me-at+Ct+J:ue(en,at,pt,Zt,Ct+J,me,me+ge,ge);const{scrollLeft:P,scrollTop:fe}=ze;pe=R===0?0:Math.max(0,Math.min(fe+pe/R,ze.scrollHeight-et/R+Ie)),le=H===0?0:Math.max(0,Math.min(P+le/H,ze.scrollWidth-pt/H+J)),Z+=fe-pe,me+=P-le}Ne.push({el:ze,top:pe,left:le})}return Ne},w=o=>o===!1?{block:"end",inline:"nearest"}:(I=>I===Object(I)&&Object.keys(I).length!==0)(o)?o:{block:"start",inline:"nearest"};function ne(o,I){if(!o.isConnected||!(_=>{let S=_;for(;S&&S.parentNode;){if(S.parentNode===document)return!0;S=S.parentNode instanceof ShadowRoot?S.parentNode.host:S.parentNode}return!1})(o))return;const k=(_=>{const S=window.getComputedStyle(_);return{top:parseFloat(S.scrollMarginTop)||0,right:parseFloat(S.scrollMarginRight)||0,bottom:parseFloat(S.scrollMarginBottom)||0,left:parseFloat(S.scrollMarginLeft)||0}})(o);if((_=>typeof _=="object"&&typeof _.behavior=="function")(I))return I.behavior(m(o,I));const g=typeof I=="boolean"||I==null?void 0:I.behavior;for(const{el:_,top:S,left:T}of m(o,w(I))){const N=S-k.top+k.bottom,ie=T-k.left+k.right;_.scroll({top:N,left:ie,behavior:g})}}}}]);
|
|
|
}()); |