|
|
!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2829],{70557:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={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"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},40001:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},49198:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},84105:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},18785:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},73331:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},15277:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},33853:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},61485:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},38819:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},47472:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Re=te,V=_(7657),ce=function(R,M){return N.createElement(V.Z,(0,P.Z)({},R,{ref:M,icon:Re}))},_e=N.forwardRef(ce),Ee=_e},35593:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return At}});var P=_(44127),N=_(72071),te=_(6620),Re=_(43403),V=_(92310),ce=_.n(V),_e=_(29301),Ee=_(76846),o=_(96452),R=_(6089),M=_(80402),g=_(34280),c=_(49658),w=_(59301),v=_(96663),Y=_(77900),se=_(8654);function K(oe){var me=oe.prefixCls,k=oe.align,de=oe.arrow,we=oe.arrowPos,L=de||{},T=L.className,O=L.content,ue=we.x,he=ue===void 0?0:ue,Z=we.y,De=Z===void 0?0:Z,Ue=w.useRef();if(!k||!k.points)return null;var Ae={position:"absolute"};if(k.autoArrow!==!1){var Ne=k.points[0],We=k.points[1],Xe=Ne[0],qe=Ne[1],ht=We[0],St=We[1];Xe===ht||!["t","b"].includes(Xe)?Ae.top=De:Xe==="t"?Ae.top=0:Ae.bottom=0,qe===St||!["l","r"].includes(qe)?Ae.left=he:qe==="l"?Ae.left=0:Ae.right=0}return w.createElement("div",{ref:Ue,className:ce()("".concat(me,"-arrow"),T),style:Ae},O)}function F(oe){var me=oe.prefixCls,k=oe.open,de=oe.zIndex,we=oe.mask,L=oe.motion;return we?w.createElement(Y.default,(0,v.Z)({},L,{motionAppear:!0,visible:k,removeOnLeave:!0}),function(T){var O=T.className;return w.createElement("div",{style:{zIndex:de},className:ce()("".concat(me,"-mask"),O)})}):null}var H=w.memo(function(oe){var me=oe.children;return me},function(oe,me){return me.cache}),ne=H,b=w.forwardRef(function(oe,me){var k=oe.popup,de=oe.className,we=oe.prefixCls,L=oe.style,T=oe.target,O=oe.onVisibleChanged,ue=oe.open,he=oe.keepDom,Z=oe.fresh,De=oe.onClick,Ue=oe.mask,Ae=oe.arrow,Ne=oe.arrowPos,We=oe.align,Xe=oe.motion,qe=oe.maskMotion,ht=oe.forceRender,St=oe.getPopupContainer,_t=oe.autoDestroy,It=oe.portal,Ct=oe.zIndex,y=oe.onMouseEnter,C=oe.onMouseLeave,ot=oe.onPointerEnter,W=oe.ready,Ce=oe.offsetX,yn=oe.offsetY,Me=oe.offsetR,Ke=oe.offsetB,Ze=oe.onAlign,J=oe.onPrepare,fe=oe.stretch,Te=oe.targetWidth,Be=oe.targetHeight,G=typeof k=="function"?k():k,Ot=ue||he,Pe=(St==null?void 0:St.length)>0,Yt=w.useState(!St||!Pe),mn=(0,N.Z)(Yt,2),wn=mn[0],Hn=mn[1];if((0,g.Z)(function(){!wn&&Pe&&T&&Hn(!0)},[wn,Pe,T]),!wn)return null;var $t="auto",qt={left:"-1000vw",top:"-1000vh",right:$t,bottom:$t};if(W||!ue){var $e,dt=We.points,Tt=We.dynamicInset||(($e=We._experimental)===null||$e===void 0?void 0:$e.dynamicInset),Le=Tt&&dt[0][1]==="r",ve=Tt&&dt[0][0]==="b";Le?(qt.right=Me,qt.left=$t):(qt.left=Ce,qt.right=$t),ve?(qt.bottom=Ke,qt.top=$t):(qt.top=yn,qt.bottom=$t)}var rt={};return fe&&(fe.includes("height")&&Be?rt.height=Be:fe.includes("minHeight")&&Be&&(rt.minHeight=Be),fe.includes("width")&&Te?rt.width=Te:fe.includes("minWidth")&&Te&&(rt.minWidth=Te)),ue||(rt.pointerEvents="none"),w.createElement(It,{open:ht||Ot,getContainer:St&&function(){return St(T)},autoDestroy:_t},w.createElement(F,{prefixCls:we,open:ue,zIndex:Ct,mask:Ue,motion:qe}),w.createElement(_e.Z,{onResize:Ze,disabled:!ue},function(lt){return w.createElement(Y.default,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ht,leavedClassName:"".concat(we,"-hidden")},Xe,{onAppearPrepare:J,onEnterPrepare:J,visible:ue,onVisibleChanged:function(Rt){var zt;Xe==null||(zt=Xe.onVisibleChanged)===null||zt===void 0||zt.call(Xe,Rt),O(Rt)}}),function(Nt,Rt){var zt=Nt.className,Pt=Nt.style,Wt=ce()(we,zt,de);return w.createElement("div",{ref:(0,se.sQ)(lt,me,Rt),className:Wt,style:(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({"--arrow-x":"".concat(Ne.x||0,"px"),"--arrow-y":"".concat(Ne.y||0,"px")},qt),rt),Pt),{},{boxSizing:"border-box",zIndex:Ct},L),onMouseEnter:y,onMouseLeave:C,onPointerEnter:ot,onClick:De},Ae&&w.createElement(K,{prefixCls:we,arrow:Ae,arrowPos:Ne,align:We}),w.createElement(ne,{cache:!ue&&!Z},G))})}))}),A=b,B=w.forwardRef(function(oe,me){var k=oe.children,de=oe.getTriggerDOMNode,we=(0,se.Yr)(k),L=w.useCallback(function(O){(0,se.mH)(me,de?de(O):O)},[de]),T=(0,se.x1)(L,k.ref);return we?w.cloneElement(k,{ref:T}):k}),X=B,ge=w.createContext(null),Ie=ge;function Oe(oe){return oe?Array.isArray(oe)?oe:[oe]:[]}function He(oe,me,k,de){return w.useMemo(function(){var we=Oe(k!=null?k:me),L=Oe(de!=null?de:me),T=new Set(we),O=new Set(L);return oe&&(T.has("hover")&&(T.delete("hover"),T.add("click")),O.has("hover")&&(O.delete("hover"),O.add("click"))),[T,O]},[oe,me,k,de])}var q=_(29194);function $(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],k=arguments.length>2?arguments[2]:void 0;return k?oe[0]===me[0]:oe[0]===me[0]&&oe[1]===me[1]}function ae(oe,me,k,de){for(var we=k.points,L=Object.keys(oe),T=0;T<L.length;T+=1){var O,ue=L[T];if($((O=oe[ue])===null||O===void 0?void 0:O.points,we,de))return"".concat(me,"-placement-").concat(ue)}return""}function ee(oe,me,k,de){return me||(k?{motionName:"".concat(oe,"-").concat(k)}:de?{motionName:de}:null)}function ye(oe){return oe.ownerDocument.defaultView}function re(oe){for(var me=[],k=oe==null?void 0:oe.parentElement,de=["hidden","scroll","clip","auto"];k;){var we=ye(k).getComputedStyle(k),L=we.overflowX,T=we.overflowY,O=we.overflow;[L,T,O].some(function(ue){return de.includes(ue)})&&me.push(k),k=k.parentElement}return me}function x(oe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(oe)?me:oe}function S(oe){return x(parseFloat(oe),0)}function Q(oe,me){var k=(0,P.Z)({},oe);return(me||[]).forEach(function(de){if(!(de instanceof HTMLBodyElement||de instanceof HTMLHtmlElement)){var we=ye(de).getComputedStyle(de),L=we.overflow,T=we.overflowClipMargin,O=we.borderTopWidth,ue=we.borderBottomWidth,he=we.borderLeftWidth,Z=we.borderRightWidth,De=de.getBoundingClientRect(),Ue=de.offsetHeight,Ae=de.clientHeight,Ne=de.offsetWidth,We=de.clientWidth,Xe=S(O),qe=S(ue),ht=S(he),St=S(Z),_t=x(Math.round(De.width/Ne*1e3)/1e3),It=x(Math.round(De.height/Ue*1e3)/1e3),Ct=(Ne-We-ht-St)*_t,y=(Ue-Ae-Xe-qe)*It,C=Xe*It,ot=qe*It,W=ht*_t,Ce=St*_t,yn=0,Me=0;if(L==="clip"){var Ke=S(T);yn=Ke*_t,Me=Ke*It}var Ze=De.x+W-yn,J=De.y+C-Me,fe=Ze+De.width+2*yn-W-Ce-Ct,Te=J+De.height+2*Me-C-ot-y;k.left=Math.max(k.left,Ze),k.top=Math.max(k.top,J),k.right=Math.min(k.right,fe),k.bottom=Math.min(k.bottom,Te)}}),k}function be(oe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k="".concat(me),de=k.match(/^(.*)\%$/);return de?oe*(parseFloat(de[1])/100):parseFloat(k)}function Ve(oe,me){var k=me||[],de=(0,N.Z)(k,2),we=de[0],L=de[1];return[be(oe.width,we),be(oe.height,L)]}function tt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[oe[0],oe[1]]}function Je(oe,me){var k=me[0],de=me[1],we,L;return k==="t"?L=oe.y:k==="b"?L=oe.y+oe.height:L=oe.y+oe.height/2,de==="l"?we=oe.x:de==="r"?we=oe.x+oe.width:we=oe.x+oe.width/2,{x:we,y:L}}function et(oe,me){var k={t:"b",b:"t",l:"r",r:"l"};return oe.map(function(de,we){return we===me?k[de]||"c":de}).join("")}function xt(oe,me,k,de,we,L,T){var O=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:we[de]||{}}),ue=(0,N.Z)(O,2),he=ue[0],Z=ue[1],De=w.useRef(0),Ue=w.useMemo(function(){return me?re(me):[]},[me]),Ae=w.useRef({}),Ne=function(){Ae.current={}};oe||Ne();var We=(0,R.Z)(function(){if(me&&k&&oe){let Mn=function(tr,hr){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wt,Dr=G.x+tr,$r=G.y+hr,Gr=Dr+$e,bi=$r+qt,xi=Math.max(Dr,Hr.left),Hi=Math.max($r,Hr.top),Fi=Math.min(Gr,Hr.right),mi=Math.min(bi,Hr.bottom);return Math.max(0,(Fi-xi)*(mi-Hi))},En=function(){fn=G.y+Xt,Pn=fn+qt,Vn=G.x+on,Yn=Vn+$e};var ht,St,_t=me,It=_t.ownerDocument,Ct=ye(_t),y=Ct.getComputedStyle(_t),C=y.width,ot=y.height,W=y.position,Ce=_t.style.left,yn=_t.style.top,Me=_t.style.right,Ke=_t.style.bottom,Ze=_t.style.overflow,J=(0,P.Z)((0,P.Z)({},we[de]),L),fe=It.createElement("div");(ht=_t.parentElement)===null||ht===void 0||ht.appendChild(fe),fe.style.left="".concat(_t.offsetLeft,"px"),fe.style.top="".concat(_t.offsetTop,"px"),fe.style.position=W,fe.style.height="".concat(_t.offsetHeight,"px"),fe.style.width="".concat(_t.offsetWidth,"px"),_t.style.left="0",_t.style.top="0",_t.style.right="auto",_t.style.bottom="auto",_t.style.overflow="hidden";var Te;if(Array.isArray(k))Te={x:k[0],y:k[1],width:0,height:0};else{var Be=k.getBoundingClientRect();Te={x:Be.x,y:Be.y,width:Be.width,height:Be.height}}var G=_t.getBoundingClientRect(),Ot=It.documentElement,Pe=Ot.clientWidth,Yt=Ot.clientHeight,mn=Ot.scrollWidth,wn=Ot.scrollHeight,Hn=Ot.scrollTop,$t=Ot.scrollLeft,qt=G.height,$e=G.width,dt=Te.height,Tt=Te.width,Le={left:0,top:0,right:Pe,bottom:Yt},ve={left:-$t,top:-Hn,right:mn-$t,bottom:wn-Hn},rt=J.htmlRegion,lt="visible",Nt="visibleFirst";rt!=="scroll"&&rt!==Nt&&(rt=lt);var Rt=rt===Nt,zt=Q(ve,Ue),Pt=Q(Le,Ue),Wt=rt===lt?Pt:zt,ln=Rt?Pt:Wt;_t.style.left="auto",_t.style.top="auto",_t.style.right="0",_t.style.bottom="0";var Lt=_t.getBoundingClientRect();_t.style.left=Ce,_t.style.top=yn,_t.style.right=Me,_t.style.bottom=Ke,_t.style.overflow=Ze,(St=_t.parentElement)===null||St===void 0||St.removeChild(fe);var ft=x(Math.round($e/parseFloat(C)*1e3)/1e3),jt=x(Math.round(qt/parseFloat(ot)*1e3)/1e3);if(ft===0||jt===0||(0,Ee.Sh)(k)&&!(0,q.Z)(k))return;var Ut=J.offset,Zt=J.targetOffset,un=Ve(G,Ut),zn=(0,N.Z)(un,2),gn=zn[0],Bt=zn[1],Ye=Ve(Te,Zt),Qe=(0,N.Z)(Ye,2),ut=Qe[0],yt=Qe[1];Te.x-=ut,Te.y-=yt;var ct=J.points||[],Et=(0,N.Z)(ct,2),bt=Et[0],Kt=Et[1],Qt=tt(Kt),nn=tt(bt),Cn=Je(Te,Qt),Rn=Je(G,nn),On=(0,P.Z)({},J),on=Cn.x-Rn.x+gn,Xt=Cn.y-Rn.y+Bt,$n=Mn(on,Xt),Sn=Mn(on,Xt,Pt),Qn=Je(Te,["t","l"]),An=Je(G,["t","l"]),kn=Je(Te,["b","r"]),Kn=Je(G,["b","r"]),In=J.overflow||{},qn=In.adjustX,fr=In.adjustY,Tn=In.shiftX,Jt=In.shiftY,ze=function(hr){return typeof hr=="boolean"?hr:hr>=0},fn,Pn,Vn,Yn;En();var rr=ze(fr),sr=nn[0]===Qt[0];if(rr&&nn[0]==="t"&&(Pn>ln.bottom||Ae.current.bt)){var Un=Xt;sr?Un-=qt-dt:Un=Qn.y-Kn.y-Bt;var ar=Mn(on,Un),vn=Mn(on,Un,Pt);ar>$n||ar===$n&&(!Rt||vn>=Sn)?(Ae.current.bt=!0,Xt=Un,Bt=-Bt,On.points=[et(nn,0),et(Qt,0)]):Ae.current.bt=!1}if(rr&&nn[0]==="b"&&(fn<ln.top||Ae.current.tb)){var en=Xt;sr?en+=qt-dt:en=kn.y-An.y-Bt;var Dn=Mn(on,en),Jn=Mn(on,en,Pt);Dn>$n||Dn===$n&&(!Rt||Jn>=Sn)?(Ae.current.tb=!0,Xt=en,Bt=-Bt,On.points=[et(nn,0),et(Qt,0)]):Ae.current.tb=!1}var or=ze(qn),Pr=nn[1]===Qt[1];if(or&&nn[1]==="l"&&(Yn>ln.right||Ae.current.rl)){var _n=on;Pr?_n-=$e-Tt:_n=Qn.x-Kn.x-gn;var cr=Mn(_n,Xt),lr=Mn(_n,Xt,Pt);cr>$n||cr===$n&&(!Rt||lr>=Sn)?(Ae.current.rl=!0,on=_n,gn=-gn,On.points=[et(nn,1),et(Qt,1)]):Ae.current.rl=!1}if(or&&nn[1]==="r"&&(Vn<ln.left||Ae.current.lr)){var Er=on;Pr?Er+=$e-Tt:Er=kn.x-An.x-gn;var Mr=Mn(Er,Xt),Br=Mn(Er,Xt,Pt);Mr>$n||Mr===$n&&(!Rt||Br>=Sn)?(Ae.current.lr=!0,on=Er,gn=-gn,On.points=[et(nn,1),et(Qt,1)]):Ae.current.lr=!1}En();var _r=Tn===!0?0:Tn;typeof _r=="number"&&(Vn<Pt.left&&(on-=Vn-Pt.left-gn,Te.x+Tt<Pt.left+_r&&(on+=Te.x-Pt.left+Tt-_r)),Yn>Pt.right&&(on-=Yn-Pt.right-gn,Te.x>Pt.right-_r&&(on+=Te.x-Pt.right+_r)));var Tr=Jt===!0?0:Jt;typeof Tr=="number"&&(fn<Pt.top&&(Xt-=fn-Pt.top-Bt,Te.y+dt<Pt.top+Tr&&(Xt+=Te.y-Pt.top+dt-Tr)),Pn>Pt.bottom&&(Xt-=Pn-Pt.bottom-Bt,Te.y>Pt.bottom-Tr&&(Xt+=Te.y-Pt.bottom+Tr)));var wr=G.x+on,Jr=wr+$e,Yr=G.y+Xt,ii=Yr+qt,kr=Te.x,ei=kr+Tt,ir=Te.y,ci=ir+dt,yi=Math.max(wr,kr),di=Math.min(Jr,ei),Ar=(yi+di)/2,fi=Ar-wr,Ci=Math.max(Yr,ir),dn=Math.min(ii,ci),Qr=(Ci+dn)/2,oi=Qr-Yr;T==null||T(me,On);var Fn=Lt.right-G.x-(on+G.width),Gn=Lt.bottom-G.y-(Xt+G.height);Z({ready:!0,offsetX:on/ft,offsetY:Xt/jt,offsetR:Fn/ft,offsetB:Gn/jt,arrowX:fi/ft,arrowY:oi/jt,scaleX:ft,scaleY:jt,align:On})}}),Xe=function(){De.current+=1;var St=De.current;Promise.resolve().then(function(){De.current===St&&We()})},qe=function(){Z(function(St){return(0,P.Z)((0,P.Z)({},St),{},{ready:!1})})};return(0,g.Z)(qe,[de]),(0,g.Z)(function(){oe||qe()},[oe]),[he.ready,he.offsetX,he.offsetY,he.offsetR,he.offsetB,he.arrowX,he.arrowY,he.scaleX,he.scaleY,he.align,Xe]}var gt=_(19127);function st(oe,me,k,de,we){(0,g.Z)(function(){if(oe&&me&&k){let De=function(){de(),we()};var L=me,T=k,O=re(L),ue=re(T),he=ye(T),Z=new Set([he].concat((0,gt.Z)(O),(0,gt.Z)(ue)));return Z.forEach(function(Ue){Ue.addEventListener("scroll",De,{passive:!0})}),he.addEventListener("resize",De,{passive:!0}),de(),function(){Z.forEach(function(Ue){Ue.removeEventListener("scroll",De),he.removeEventListener("resize",De)})}}},[oe,me,k])}var kt=_(48736),Ft=_(16089);function cn(oe,me,k,de,we,L,T,O){var ue=w.useRef(oe),he=w.useRef(!1);ue.current!==oe&&(he.current=!0,ue.current=oe),w.useEffect(function(){var Z=(0,Ft.Z)(function(){he.current=!1});return function(){Ft.Z.cancel(Z)}},[oe]),w.useEffect(function(){if(me&&de&&(!we||L)){var Z=function(){var W=!1,Ce=function(Ke){var Ze=Ke.target;W=T(Ze)},yn=function(Ke){var Ze=Ke.target;!he.current&&ue.current&&!W&&!T(Ze)&&O(!1)};return[Ce,yn]},De=Z(),Ue=(0,N.Z)(De,2),Ae=Ue[0],Ne=Ue[1],We=Z(),Xe=(0,N.Z)(We,2),qe=Xe[0],ht=Xe[1],St=ye(de);St.addEventListener("mousedown",Ae,!0),St.addEventListener("click",Ne,!0),St.addEventListener("contextmenu",Ne,!0);var _t=(0,o.A)(k);if(_t&&(_t.addEventListener("mousedown",qe,!0),_t.addEventListener("click",ht,!0),_t.addEventListener("contextmenu",ht,!0)),0)var It,Ct,y,C;return function(){St.removeEventListener("mousedown",Ae,!0),St.removeEventListener("click",Ne,!0),St.removeEventListener("contextmenu",Ne,!0),_t&&(_t.removeEventListener("mousedown",qe,!0),_t.removeEventListener("click",ht,!0),_t.removeEventListener("contextmenu",ht,!0))}}},[me,k,de,we,L])}var Vt=["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 it(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re.Z,me=w.forwardRef(function(k,de){var we=k.prefixCls,L=we===void 0?"rc-trigger-popup":we,T=k.children,O=k.action,ue=O===void 0?"hover":O,he=k.showAction,Z=k.hideAction,De=k.popupVisible,Ue=k.defaultPopupVisible,Ae=k.onPopupVisibleChange,Ne=k.afterPopupVisibleChange,We=k.mouseEnterDelay,Xe=k.mouseLeaveDelay,qe=Xe===void 0?.1:Xe,ht=k.focusDelay,St=k.blurDelay,_t=k.mask,It=k.maskClosable,Ct=It===void 0?!0:It,y=k.getPopupContainer,C=k.forceRender,ot=k.autoDestroy,W=k.destroyPopupOnHide,Ce=k.popup,yn=k.popupClassName,Me=k.popupStyle,Ke=k.popupPlacement,Ze=k.builtinPlacements,J=Ze===void 0?{}:Ze,fe=k.popupAlign,Te=k.zIndex,Be=k.stretch,G=k.getPopupClassNameFromAlign,Ot=k.fresh,Pe=k.alignPoint,Yt=k.onPopupClick,mn=k.onPopupAlign,wn=k.arrow,Hn=k.popupMotion,$t=k.maskMotion,qt=k.popupTransitionName,$e=k.popupAnimation,dt=k.maskTransitionName,Tt=k.maskAnimation,Le=k.className,ve=k.getTriggerDOMNode,rt=(0,te.Z)(k,Vt),lt=ot||W||!1,Nt=w.useState(!1),Rt=(0,N.Z)(Nt,2),zt=Rt[0],Pt=Rt[1];(0,g.Z)(function(){Pt((0,c.Z)())},[]);var Wt=w.useRef({}),ln=w.useContext(Ie),Lt=w.useMemo(function(){return{registerSubPopup:function(Nn,dr){Wt.current[Nn]=dr,ln==null||ln.registerSubPopup(Nn,dr)}}},[ln]),ft=(0,M.Z)(),jt=w.useState(null),Ut=(0,N.Z)(jt,2),Zt=Ut[0],un=Ut[1],zn=(0,R.Z)(function(Bn){(0,Ee.Sh)(Bn)&&Zt!==Bn&&un(Bn),ln==null||ln.registerSubPopup(ft,Bn)}),gn=w.useState(null),Bt=(0,N.Z)(gn,2),Ye=Bt[0],Qe=Bt[1],ut=w.useRef(null),yt=(0,R.Z)(function(Bn){(0,Ee.Sh)(Bn)&&Ye!==Bn&&(Qe(Bn),ut.current=Bn)}),ct=w.Children.only(T),Et=(ct==null?void 0:ct.props)||{},bt={},Kt=(0,R.Z)(function(Bn){var Nn,dr,Wr=Ye;return(Wr==null?void 0:Wr.contains(Bn))||((Nn=(0,o.A)(Wr))===null||Nn===void 0?void 0:Nn.host)===Bn||Bn===Wr||(Zt==null?void 0:Zt.contains(Bn))||((dr=(0,o.A)(Zt))===null||dr===void 0?void 0:dr.host)===Bn||Bn===Zt||Object.values(Wt.current).some(function(Sr){return(Sr==null?void 0:Sr.contains(Bn))||Bn===Sr})}),Qt=ee(L,Hn,$e,qt),nn=ee(L,$t,Tt,dt),Cn=w.useState(Ue||!1),Rn=(0,N.Z)(Cn,2),On=Rn[0],on=Rn[1],Xt=De!=null?De:On,$n=(0,R.Z)(function(Bn){De===void 0&&on(Bn)});(0,g.Z)(function(){on(De||!1)},[De]);var Sn=w.useRef(Xt);Sn.current=Xt;var Qn=w.useRef([]);Qn.current=[];var An=(0,R.Z)(function(Bn){var Nn;$n(Bn),((Nn=Qn.current[Qn.current.length-1])!==null&&Nn!==void 0?Nn:Xt)!==Bn&&(Qn.current.push(Bn),Ae==null||Ae(Bn))}),kn=w.useRef(),Kn=function(){clearTimeout(kn.current)},In=function(Nn){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Kn(),dr===0?An(Nn):kn.current=setTimeout(function(){An(Nn)},dr*1e3)};w.useEffect(function(){return Kn},[]);var qn=w.useState(!1),fr=(0,N.Z)(qn,2),Tn=fr[0],Jt=fr[1];(0,g.Z)(function(Bn){(!Bn||Xt)&&Jt(!0)},[Xt]);var ze=w.useState(null),fn=(0,N.Z)(ze,2),Pn=fn[0],Vn=fn[1],Yn=w.useState([0,0]),rr=(0,N.Z)(Yn,2),sr=rr[0],Un=rr[1],ar=function(Nn){Un([Nn.clientX,Nn.clientY])},vn=xt(Xt,Zt,Pe?sr:Ye,Ke,J,fe,mn),en=(0,N.Z)(vn,11),Dn=en[0],Jn=en[1],or=en[2],Pr=en[3],_n=en[4],cr=en[5],lr=en[6],Er=en[7],Mr=en[8],Br=en[9],_r=en[10],Tr=He(zt,ue,he,Z),wr=(0,N.Z)(Tr,2),Jr=wr[0],Yr=wr[1],ii=Jr.has("click"),kr=Yr.has("click")||Yr.has("contextMenu"),ei=(0,R.Z)(function(){Tn||_r()}),ir=function(){Sn.current&&Pe&&kr&&In(!1)};st(Xt,Ye,Zt,ei,ir),(0,g.Z)(function(){ei()},[sr,Ke]),(0,g.Z)(function(){Xt&&!(J!=null&&J[Ke])&&ei()},[JSON.stringify(fe)]);var ci=w.useMemo(function(){var Bn=ae(J,L,Br,Pe);return ce()(Bn,G==null?void 0:G(Br))},[Br,G,J,L,Pe]);w.useImperativeHandle(de,function(){return{nativeElement:ut.current,forceAlign:ei}});var yi=w.useState(0),di=(0,N.Z)(yi,2),Ar=di[0],fi=di[1],Ci=w.useState(0),dn=(0,N.Z)(Ci,2),Qr=dn[0],oi=dn[1],Fn=function(){if(Be&&Ye){var Nn=Ye.getBoundingClientRect();fi(Nn.width),oi(Nn.height)}},Gn=function(){Fn(),ei()},Mn=function(Nn){Jt(!1),_r(),Ne==null||Ne(Nn)},En=function(){return new Promise(function(Nn){Fn(),Vn(function(){return Nn})})};(0,g.Z)(function(){Pn&&(_r(),Pn(),Vn(null))},[Pn]);function tr(Bn,Nn,dr,Wr){bt[Bn]=function(Sr){var pi;Wr==null||Wr(Sr),In(Nn,dr);for(var Wi=arguments.length,ji=new Array(Wi>1?Wi-1:0),Ti=1;Ti<Wi;Ti++)ji[Ti-1]=arguments[Ti];(pi=Et[Bn])===null||pi===void 0||pi.call.apply(pi,[Et,Sr].concat(ji))}}(ii||kr)&&(bt.onClick=function(Bn){var Nn;Sn.current&&kr?In(!1):!Sn.current&&ii&&(ar(Bn),In(!0));for(var dr=arguments.length,Wr=new Array(dr>1?dr-1:0),Sr=1;Sr<dr;Sr++)Wr[Sr-1]=arguments[Sr];(Nn=Et.onClick)===null||Nn===void 0||Nn.call.apply(Nn,[Et,Bn].concat(Wr))}),cn(Xt,kr,Ye,Zt,_t,Ct,Kt,In);var hr=Jr.has("hover"),Hr=Yr.has("hover"),Dr,$r;hr&&(tr("onMouseEnter",!0,We,function(Bn){ar(Bn)}),tr("onPointerEnter",!0,We,function(Bn){ar(Bn)}),Dr=function(Nn){(Xt||Tn)&&Zt!==null&&Zt!==void 0&&Zt.contains(Nn.target)&&In(!0,We)},Pe&&(bt.onMouseMove=function(Bn){var Nn;(Nn=Et.onMouseMove)===null||Nn===void 0||Nn.call(Et,Bn)})),Hr&&(tr("onMouseLeave",!1,qe),tr("onPointerLeave",!1,qe),$r=function(){In(!1,qe)}),Jr.has("focus")&&tr("onFocus",!0,ht),Yr.has("focus")&&tr("onBlur",!1,St),Jr.has("contextMenu")&&(bt.onContextMenu=function(Bn){var Nn;Sn.current&&Yr.has("contextMenu")?In(!1):(ar(Bn),In(!0)),Bn.preventDefault();for(var dr=arguments.length,Wr=new Array(dr>1?dr-1:0),Sr=1;Sr<dr;Sr++)Wr[Sr-1]=arguments[Sr];(Nn=Et.onContextMenu)===null||Nn===void 0||Nn.call.apply(Nn,[Et,Bn].concat(Wr))}),Le&&(bt.className=ce()(Et.className,Le));var Gr=(0,P.Z)((0,P.Z)({},Et),bt),bi={},xi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];xi.forEach(function(Bn){rt[Bn]&&(bi[Bn]=function(){for(var Nn,dr=arguments.length,Wr=new Array(dr),Sr=0;Sr<dr;Sr++)Wr[Sr]=arguments[Sr];(Nn=Gr[Bn])===null||Nn===void 0||Nn.call.apply(Nn,[Gr].concat(Wr)),rt[Bn].apply(rt,Wr)})});var Hi=w.cloneElement(ct,(0,P.Z)((0,P.Z)({},Gr),bi)),Fi={x:cr,y:lr},mi=wn?(0,P.Z)({},wn!==!0?wn:{}):null;return w.createElement(w.Fragment,null,w.createElement(_e.Z,{disabled:!Xt,ref:yt,onResize:Gn},w.createElement(X,{getTriggerDOMNode:ve},Hi)),w.createElement(Ie.Provider,{value:Lt},w.createElement(A,{portal:oe,ref:zn,prefixCls:L,popup:Ce,className:ce()(yn,ci),style:Me,target:Ye,onMouseEnter:Dr,onMouseLeave:$r,onPointerEnter:Dr,zIndex:Te,open:Xt,keepDom:Tn,fresh:Ot,onClick:Yt,mask:_t,motion:Qt,maskMotion:nn,onVisibleChanged:Mn,onPrepare:En,forceRender:C,autoDestroy:lt,getPopupContainer:y,align:Br,arrow:mi,arrowPos:Fi,ready:Dn,offsetX:Jn,offsetY:or,offsetR:Pr,offsetB:_n,onAlign:ei,stretch:Be,targetWidth:Ar/Er,targetHeight:Qr/Mr})))});return me}var At=it(Re.Z)},50304:function(){"use strict"},8797:function(rn,nt,_){"use strict";var P=_(59301),N=_(93314),te=_(3113),Re=Object.defineProperty,V=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,R=(w,v,Y)=>v in w?Re(w,v,{enumerable:!0,configurable:!0,writable:!0,value:Y}):w[v]=Y,M=(w,v)=>{for(var Y in v||(v={}))Ee.call(v,Y)&&R(w,Y,v[Y]);if(_e)for(var Y of _e(v))o.call(v,Y)&&R(w,Y,v[Y]);return w},g=(w,v)=>V(w,ce(v));const c=({img:w,buttonProps:v={},styles:Y={},customText:se,ButtonText:K,ButtonClick:F,Buttonclass:H,ButtonTwo:ne,imgStyles:b,loading:A=!1})=>P.createElement("section",{className:"tc animated fadeIn",style:M(M({},{color:"#999",margin:"100px auto",visibility:A?"hidden":"visible"}),Y)},P.createElement("img",{src:w||N,style:g(M({},b),{pointerEvents:"none",userSelect:"none"})}),P.createElement("p",{className:"mt20 font14"},se||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),K&&P.createElement(te.ZP,M({className:H,onClick:F},v),K),ne&&ne);nt.Z=c},23210:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return H}});var P=_(59301),N={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},te=_(3113),Re=_(70557),V=_(23954),ce=_(6848),_e=_(955),Ee=_(94941),o=_(8797),R=_(3294),M=_(19381),g=_(59301),c=Object.defineProperty,w=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,se=(ne,b,A)=>b in ne?c(ne,b,{enumerable:!0,configurable:!0,writable:!0,value:A}):ne[b]=A,K=(ne,b)=>{for(var A in b||(b={}))v.call(b,A)&&se(ne,A,b[A]);if(w)for(var A of w(b))Y.call(b,A)&&se(ne,A,b[A]);return ne},F=(ne,b,A)=>new Promise((B,X)=>{var ge=He=>{try{Oe(A.next(He))}catch(q){X(q)}},Ie=He=>{try{Oe(A.throw(He))}catch(q){X(q)}},Oe=He=>He.done?B(He.value):Promise.resolve(He.value).then(ge,Ie);Oe((A=A.apply(ne,b)).next())}),H=({editOffice:ne="view",data:b,theme:A,type:B,filename:X,monacoEditor:ge,className:Ie,style:Oe,close:He,onClose:q,hasMask:$,disabledDownload:ae,onImgDimensions:ee,showNodata:ye,recordInfo:re})=>{const[x,S]=(0,P.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Q,be]=(0,P.useState)(""),[Ve,tt]=(0,P.useState)(),Je=window.ENV==="build"?"/react/build":"",et=location.host.startsWith("localhost")?R.Z.PROXY_SERVER:R.Z.API_SERVER,gt=10*(1024*1024),st=(0,P.useRef)();b!=null&&b.startsWith("/api")&&B!=="txt"&&(b=R.Z.API_SERVER+b);const kt=it=>it.substring(it.lastIndexOf("/")+1).split(".").pop();X&&ge&&(ge.filename=X),(0,P.useEffect)(()=>{var it,At;const oe=(At=(it=document.cookie)==null?void 0:it.replace(/\s/g,""))==null?void 0:At.split(";");oe==null||oe.map(me=>{let k=me.split("=");k[0]==="_educoder_session"&&be(k[1])})},[]),(0,P.useEffect)(()=>{B==="office"&&(b.indexOf("bigfilescdn.")>-1||b.indexOf("bigfiles1")>-1?tt({url:b,fileType:kt(b),model:b.indexOf("model=edit")?"edit":"view"}):Ft())},[B,b]);const Ft=()=>F(void 0,null,function*(){console.log("data:",b);let it=b;b.startsWith("http")||(it=location.origin+it);let At=new URL(it).pathname.split("/").pop();const oe=yield(0,Ee.gJ)({attachment_id:At});oe.url=et+oe.url,tt(oe)}),cn=()=>{if(b.startsWith("http")||b.startsWith("blob:")){Vt();return}(0,_e.Sv)(X||"educoder",b,X)},Vt=()=>{re&&(0,M.fc)({id:re==null?void 0:re.id,watch_type:1,course_id:re==null?void 0:re.course_id}),(0,_e.Nd)(X||"educoder",decodeURIComponent(b))};return g.createElement("div",{style:K({},Oe||{}),className:`${$&&N.bgBlack} ${B?N.wrp:"hide"}`},He&&g.createElement("div",{className:N.close,ref:st},!!ee&&g.createElement(ce.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},g.createElement("span",{onClick:()=>{q(),ee()}},g.createElement("i",{className:"icon-yulanpizhu"}))),!ae&&g.createElement(ce.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},g.createElement("span",{onClick:Vt},g.createElement("i",{className:"icon-quxiaozhiding"}))),g.createElement(ce.Z,{title:"\u5173\u95ED",getPopupContainer:()=>st.current},g.createElement("span",{className:"",onClick:q},g.createElement("i",{className:"icon-guanbi1"})))),g.createElement("div",{className:`${N[Ie]} ${Ie} ${N.monaco} ${B==="txt"?"show":"hide"}`},B==="txt"&&g.createElement(g.Fragment,null,g.createElement(V.ZP,K({},ge)))),B==="audio"&&g.createElement("audio",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${b}`,autoPlay:!0}),B==="video"&&g.createElement(g.Fragment,null,(b==null?void 0:b.indexOf("http"))>-1?g.createElement("video",{controls:!0,src:`${b}`,autoPlay:!0}):g.createElement("video",{controls:!0,src:`data:video/mp4;base64,${b}`,autoPlay:!0})),B==="office"&&Ve&&g.createElement("iframe",{src:`${Je}/office.html?key=${Ve.key}&url=${btoa(Ve.url)}&callbackUrl=${et+(Ve.callbackUrl||"")}&fileType=${Ve.fileType}&title=${Ve.title||""}&model=${ne}&officeServer=${R.Z.ONLYOFFICE}&disabledDownload=${!!ae}`}),B==="html"&&g.createElement("iframe",{src:b+"&disposition=inline"}),B==="pdf"&&g.createElement("iframe",{src:`${Je}/js/pdfview/index.html?filename=${X||"educoder.pdf"}&url=${encodeURIComponent(b)}&disabledDownload=${!!ae}`}),B==="image"&&g.createElement("img",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:image/png;base64,"}${b}`}),(B==="other"||B==="download")&&g.createElement(g.Fragment,null,ye?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(te.ZP,{icon:g.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:cn,disabled:ae},"\u4E0B\u8F7D")}):g.createElement(te.ZP,{type:"primary",size:"middle",onClick:cn,disabled:ae},g.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(rn,nt,_){"use strict";_.d(nt,{z:function(){return B},Z:function(){return X}});var P=_(59301),N=_(50304),te=_(24768),Re=_(64018),V=_(40846),ce=_(3294),_e=_(955),Ee=_(15342),o=_(1012),R=_(23210),M=_(59301),c=({html:ge})=>{const Ie=(0,P.useRef)(null),Oe=(0,P.useRef)(null),He=`.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,P.useEffect)(()=>{const q=Ie.current.attachShadow({mode:"open"});Oe.current=document.createElement("div"),Oe.current.className="markdown-body",Oe.current.innerHTML=ge,q.appendChild(Oe.current);const $=document.createElement("style");return $.textContent=He,q.appendChild($),()=>{q.innerHTML=""}},[]),(0,P.useEffect)(()=>{Oe.current&&(Oe.current.innerHTML=ge)},[ge]),M.createElement("div",{ref:Ie})},w=Object.defineProperty,v=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,K=(ge,Ie,Oe)=>Ie in ge?w(ge,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ge[Ie]=Oe,F=(ge,Ie)=>{for(var Oe in Ie||(Ie={}))Y.call(Ie,Oe)&&K(ge,Oe,Ie[Oe]);if(v)for(var Oe of v(Ie))se.call(Ie,Oe)&&K(ge,Oe,Ie[Oe]);return ge};const H="@\u2581\u2581@",ne="@\u2581@",b=/<pre[^>]*>/g;function A(ge){let Ie=document.createElement("div");return Ie.innerHTML=ge,Ie.childNodes.length===0?"":Ie.childNodes[0].nodeValue}const B=(ge,Ie)=>{ge=ge||"";const Oe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,q=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ie?ge.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Oe,(ae,ee,ye,re,x,S,Q)=>{const be=ee||re||S,Ve=ye||x||Q||"?";return ce.Z.API_SERVER+"/api/attachments/"+be+Ve+"&t="+(0,_e.Jn)(be,Date.now())+(ae.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ge=ge.replace($,(ae,ee,ye,re,x,S,Q)=>{const be=ee||re||S,Ve=ye||x||Q||"?";return ce.Z.API_SERVER+"/attachments/download/"+be+Ve+"&t="+(0,_e.Jn)(be,Date.now())+(ae.indexOf(")")>-1?")":"&")}).replace(Oe,(ae,ee,ye,re,x,S,Q)=>{const be=ee||re||S,Ve=ye||x||Q||"?";return ce.Z.API_SERVER+"/api/attachments/"+be+Ve+"&t="+(0,_e.Jn)(be,Date.now())+(ae.indexOf(")")>-1?")":"&")}).replace(He,(ae,ee,ye,re,x)=>{const S=ee||re,Q=ye||x||"";return'"'+ce.Z.API_SERVER+"/api/attachments/"+S+Q+S+Q+"&t="+(0,_e.Jn)(S,Date.now())}).replace(q,(ae,ee,ye,re,x)=>{const S=ee||re,Q=ye||x||"";return"("+ce.Z.API_SERVER+"/files/uploads/"+S+Q+S+Q+"&t="+(0,_e.Jn)(S,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,`
|
|
|
`),ge)};var X=({value:ge="",className:Ie,showTextOnly:Oe,showLines:He,style:q={},stylesPrev:$={},highlightKeywords:ae,showProgramFill:ee,isProgramFill:ye,disabledFill:re=!1,programFillValue:x,onFillChange:S=Ve=>{},onFillBlur:Q=()=>{},onFillFocus:be=()=>{}})=>{let Ve=String(ge);const[tt,Je]=(0,P.useState)(""),[et,xt]=(0,P.useState)("office"),[gt,st]=(0,P.useState)([]),kt=(0,P.useRef)("a"+(0,o.Z)()),Ft={},cn=(ue,he,Z)=>{const De=document.createElement(ue===ne?"input":"textarea");De.style.width="100%",De.style.height=ue===ne?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=he;const Ue=Object.keys(Ft).length;return Ft[Ue]=De,`<span class="edu-program-fill-wrap ${ue===ne?"":"show"}" style="width:${ue===ne?"400px":"100%"}" title=${Z||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Vt(ue){return ue=ue.replace(/!\[.*?\]\(.*?\)/g,""),ue=ue.replace(/\[.*?\]\(.*?\)/g,""),ue=ue.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ue=ue.replace(/<embed.*?>/g,""),ue=ue.replace(/<img.*?>/g,""),ue=ue.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ue=ue.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ue=ue.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ue=ue.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ue}const it=ue=>ue.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(he,Z){let De=Z.replace(/(\n|\r)/g,"").split("}"),Ue=[];return De.map(Ae=>{Ae!=""&&Ue.push(`.${kt.current} ${Ae}`)}),`<style>${Ue.join("}")}</style>`}),At=(0,P.useMemo)(()=>{try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ue=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ae=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ne=/\(\/attachments\/download\//g;Ve=Ve.replace(Ne,"("+ce.Z.API_SERVER+"/attachments/download/").replace(De,"("+ce.Z.API_SERVER+"/api/attachments/").replace(Ue,'"'+ce.Z.API_SERVER+"/api/attachments/").replace(Ae,'"'+ce.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(De){}if(ee){let De=-1;return Ve=Ve.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ue,Ae,Ne){var We;return++De,cn(Ue,De,(We=x==null?void 0:x[De])==null?void 0:We.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${it(Ve||"")}</pre>`}let ue=it(Ve);ue=(0,te.ZP)(ue);const he=(0,te.ez)();Ve.match(/\[TOC\]/)&&(ue=ue.replace("<p>[TOC]</p>",(0,te.Qv)()),(0,te.Iy)()),ue=ue.replace(/(__special_katext_id_\d+__)/g,(De,Ue)=>{const{type:Ae,expression:Ne}=he[Ue];return(0,Ee.renderToString)(A(Ne)||"",{displayMode:Ae==="block",throwOnError:!1,output:"html"})}),ue=ue.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,te.AL)();const Z=document.createElement("div");if(Z.innerHTML=ue,Oe)return Z.innerText;if(ae){const De=ae.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return de(Z,De),Z.innerHTML}return setTimeout(()=>T(),500),Z.innerHTML},[Ve,ae]);(0,P.useEffect)(()=>{we.current&&we.current.querySelectorAll(["input","textarea"]).forEach(he=>{he.oninput=oe,he.onblur=me,he.onfocus=k})},[gt]),(0,P.useEffect)(()=>{var ue,he,Z,De,Ue;if(x!=null&&x.length)try{const Ae=we.current.querySelectorAll(".edu-program-fill-score"),Ne=we.current.querySelectorAll('[name="edu-program-fill"]');for(const[We,Xe]of Ne.entries())Xe.value=((ue=x==null?void 0:x[We])==null?void 0:ue.value)||"",((he=x==null?void 0:x[We])==null?void 0:he.type)==="warning"?Xe.className="program-fill-warning":((Z=x==null?void 0:x[We])==null?void 0:Z.type)==="success"?Xe.className="program-fill-success":Xe.className="";for(const[We,Xe]of Ae.entries())Xe.innerHTML=(De=x==null?void 0:x[We])!=null&&De.score?`${(Ue=x==null?void 0:x[We])==null?void 0:Ue.score}\u5206`:"";st(x)}catch(Ae){console.log(Ae,"error")}},[x]);const oe=ue=>{gt[ue.target.dataset.id]=gt[ue.target.dataset.id]||{},gt[ue.target.dataset.id].value=ue.target.value,st([...gt]),S(gt,ue.target.dataset.id)},me=ue=>{gt[ue.target.dataset.id]=gt[ue.target.dataset.id]||{},gt[ue.target.dataset.id].value=ue.target.value,st([...gt]),Q(gt,ue.target.dataset.id)},k=ue=>{gt[ue.target.dataset.id]=gt[ue.target.dataset.id]||{},gt[ue.target.dataset.id].value=ue.target.value,st([...gt]),be(gt,ue.target.dataset.id)};function de(ue,he){return ue.childNodes.forEach(Z=>{var De;if(Z.childNodes.length>0)de(Z,he);else if(Z.nodeName!=="IMG")if(Z.innerHTML)Z.innerHTML=(De=Z.innerHTML)==null?void 0:De.replace(new RegExp(he,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ue=document.createElement("span");Ue.innerHTML=Z.textContent.replace(new RegExp(he,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Z.replaceWith(Ue)}})}const we=(0,P.useRef)();te.jb.WebkitLineClamp=He,He&&(q=F(F({},q),te.jb));function L(ue){let he=ue.target;if(he.tagName.toUpperCase()==="A"){let Z=he.getAttribute("href");if(Z.indexOf("office")>-1)ue.preventDefault(),Je(Z),xt("office");else if(Z.indexOf("application/pdf")>-1)ue.preventDefault(),Je(Z),xt("pdf");else if(Z.indexOf("text/html")>-1)ue.preventDefault(),Je(Z),xt("html");else if(Z.startsWith("#")){ue.preventDefault();let De=document.getElementById(Z.replace("#",""));De&&De.scrollIntoView(!0)}}}const T=()=>{var ue;const he=(ue=we.current)==null?void 0:ue.querySelectorAll("video");he==null||he.forEach(Z=>{if(Z.oncontextmenu=()=>!1,Z.src.indexOf(".m3u8")>-1&&!Z.canPlayType("application/vnd.apple.mpegurl")){if(V.ZP.isSupported()){var De=new V.ZP;De.loadSource(Z.src),De.attachMedia(Z)}}})};(0,P.useEffect)(()=>{if(we.current&&At&&At.match(b)&&window.PR.prettyPrint(),we.current)return we.current.addEventListener("click",L),()=>{var ue;(ue=we.current)==null||ue.removeEventListener("click",L),(0,te.AL)(),(0,te.Iy)()}},[At,we.current,L]),(0,P.useEffect)(()=>{var ue;const he=Z=>{Z.preventDefault(),Z.clipboardData.setData("text",window.getSelection().toString())};return(ue=we.current)==null||ue.addEventListener("copy",he),()=>{var Z;(Z=we.current)==null||Z.removeEventListener("copy",he)}},[we.current]);const O=ue=>/<style[\s\S]*?>/i.test(ue||"");return P.createElement(P.Fragment,null,Oe&&P.createElement("div",{ref:we},At),!Oe&&!O(At)&&P.createElement("div",{ref:we,style:F({},q),className:`${Ie||""} ${re?"disabled-fill":""} markdown-body ${kt.current}`,dangerouslySetInnerHTML:{__html:At}}),!Oe&&O(At)&&P.createElement(c,{html:At}),P.createElement(R.Z,{close:!0,data:tt,type:tt!=null&&tt.length?et:"",style:F({},$),onClose:()=>Je("")}))}},23954:function(rn,nt,_){"use strict";_.d(nt,{SV:function(){return we},ZP:function(){return de}});var P=_(59301),N=_(76374);const te={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"]},Re={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"]},V={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(`
|
|
|
`)}]},ce={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(`
|
|
|
`)}]},_e={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 Ee=_(53184),o=_.n(Ee),R=Object.defineProperty,M=Object.defineProperties,g=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,Y=(L,T,O)=>T in L?R(L,T,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[T]=O,se=(L,T)=>{for(var O in T||(T={}))w.call(T,O)&&Y(L,O,T[O]);if(c)for(var O of c(T))v.call(T,O)&&Y(L,O,T[O]);return L},K=(L,T)=>M(L,g(T)),F=(L,T,O)=>new Promise((ue,he)=>{var Z=Ae=>{try{Ue(O.next(Ae))}catch(Ne){he(Ne)}},De=Ae=>{try{Ue(O.throw(Ae))}catch(Ne){he(Ne)}},Ue=Ae=>Ae.done?ue(Ae.value):Promise.resolve(Ae.value).then(Z,De);Ue((O=O.apply(L,T)).next())});const H={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"]}},ne=(L,T)=>T.map(O=>({label:O,kind:L.languages.CompletionItemKind.Keyword,insertText:O})),b=L=>Object.keys(H.tables).map(T=>({label:T,kind:L.languages.CompletionItemKind.Variable,insertText:T})),A=(L,T)=>{const O=H.tables[L];return O?O.map(ue=>({label:ue,kind:T.languages.CompletionItemKind.Field,insertText:ue})):[]};function B(L,T,O,ue,he){let Z=T.getWordUntilPosition(O),De={startLineNumber:O.lineNumber,endLineNumber:O.lineNumber,startColumn:Z.startColumn,endColumn:Z.endColumn},Ue=ue.map(Ae=>({label:Ae,kind:L.languages.CompletionItemKind.Keyword,insertText:Ae,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}));return he.map(Ae=>{Ue.push(K(se({},Ae),{range:De}))}),Ue}var X=L=>{H.languages.map(he=>(L.languages.registerDocumentFormattingEditProvider(he,{provideDocumentFormattingEdits(Z,De,Ue){return F(this,null,function*(){const Ae=o()(Z.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:Z.getFullModelRange(),text:Ae}]})}}),he));const T=V.quickKey.map(he=>({label:he.label,kind:L.languages.CompletionItemKind.Method,insertText:he.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet})),O=ce.quickKey.map(he=>({label:he.label,kind:L.languages.CompletionItemKind.Method,insertText:he.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ue=Re.quickKey.map(he=>({label:he.label,kind:L.languages.CompletionItemKind.Method,insertText:he.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}));L.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...V.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...V.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn};return{suggestions:[...te.keywords.map(Ae=>({label:Ae,kind:L.languages.CompletionItemKind.Function,documentation:Ae,insertText:Ae,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...Re.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...Re.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[..._e.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),..._e.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),L.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(he,Z){var De=he.getWordUntilPosition(Z),Ue={startLineNumber:Z.lineNumber,endLineNumber:Z.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ae=he.getLineContent(Z.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...ce.keywords.map(Ne=>({label:Ne,kind:L.languages.CompletionItemKind.Function,documentation:Ne,insertText:Ne,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...ce.quickKey.map(Ne=>({label:Ne.label,kind:L.languages.CompletionItemKind.Function,documentation:Ne.content,insertText:Ae.startsWith("#")?Ne.content.replace(/#/,""):Ne.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}})};const ge="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ie=Object.defineProperty,Oe=(L,T,O)=>T in L?Ie(L,T,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[T]=O,He=(L,T,O)=>Oe(L,typeof T!="symbol"?T+"":T,O);const q=class Xo{constructor(T,O,ue){this.placeholder=T,this.editor=O,this.monaco=ue,O.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Xo.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)}};He(q,"ID","editor.widget.placeholderHint");var ae=q,ee=_(96236),ye=_(8591),re=_(6848),x=_(89392),S=_(34604),Q=_(56102),be=Object.defineProperty,Ve=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,gt=(L,T,O)=>T in L?be(L,T,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[T]=O,st=(L,T)=>{for(var O in T||(T={}))et.call(T,O)&>(L,O,T[O]);if(Je)for(var O of Je(T))xt.call(T,O)&>(L,O,T[O]);return L},kt=(L,T)=>Ve(L,tt(T)),Ft=(L,T)=>{var O={};for(var ue in L)et.call(L,ue)&&T.indexOf(ue)<0&&(O[ue]=L[ue]);if(L!=null&&Je)for(var ue of Je(L))T.indexOf(ue)<0&&xt.call(L,ue)&&(O[ue]=L[ue]);return O},cn=(L,T,O)=>new Promise((ue,he)=>{var Z=Ae=>{try{Ue(O.next(Ae))}catch(Ne){he(Ne)}},De=Ae=>{try{Ue(O.throw(Ae))}catch(Ne){he(Ne)}},Ue=Ae=>Ae.done?ue(Ae.value):Promise.resolve(Ae.value).then(Z,De);Ue((O=O.apply(L,T)).next())});function Vt(L){return/^\d+$/.test(L)?`${L}px`:L}function it(){}let At=!1;const oe={"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 me(L=[]){let T=L;if(Array.isArray(L)){for(let O=0;O<L.length;O++){let ue=oe[L[O]];if(ue)return ue}return T[0]}return oe[T]||T}let k=null;var de=L=>{var T=L,{width:O="100%",height:ue="100%",value:he,language:Z="javascript",style:De={},options:Ue={},overrideServices:Ae={},theme:Ne="vs-dark",onEditBlur:We,isCopy:Xe=!1,onSave:qe,autoHeight:ht=!1,forbidCopy:St=!1,onChange:_t=it,editorDidMount:It=it,onFocus:Ct=it,onBreakPoint:y=it,breakPointValue:C=[],filename:ot="educoder.txt",errorLine:W,errorContent:Ce="",highlightLine:yn,openBreakPoint:Me=!1,placeholder:Ke=""}=T,Ze=Ft(T,["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 J=(0,P.useRef)(),fe=(0,P.useRef)({}),Te=(0,P.useRef)(),Be=(0,P.useRef)(),G=(0,P.useRef)([]),Ot=(0,P.useRef)(!1),Pe=(0,P.useRef)(),Yt=(0,P.useRef)(),mn=(0,P.useRef)(!1),[wn,Hn]=(0,P.useState)(!1);function $t(){let Lt;return J.current&&(Lt=new N.Z(ft=>{for(let jt of ft)(jt.target.offsetHeight>0||jt.target.offsetWidth>0)&&fe.current.instance.layout()}),Lt.observe(J.current)),Lt}function qt(){ye.ZP.warning({content:decodeURIComponent(ge),key:"monaco-editor-tip"})}const $e=()=>{let Lt=fe.current.instance;if(he!=null&&Lt&&wn){const ft=Lt.getModel();ft&&he!==ft.getValue()&&(At=!0,ft.setValue(he),Lt.layout(),At=!1)}};(0,P.useEffect)(()=>{const Lt=S.Z.subscribe("formatDocument",ft=>{var jt;let Ut=fe.current.instance;(jt=Ut==null?void 0:Ut.getAction)==null||jt.call(Ut,"editor.action.formatDocument").run()});return window.updateMonacoValue=ft=>{_t(ft)},Lt},[]),(0,P.useEffect)(()=>{var Lt;let ft=fe.current.instance;Be.current&&clearTimeout(Be.current),Be.current=setTimeout(()=>{$e()},500),he&&(he!=null&&he.length)&&((Lt=ft==null?void 0:ft.updateOptions)==null||Lt.call(ft,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(he.split(/\r\n|\r|\n/g).length))+3,5)}))},[he,wn,fe.current]),(0,P.useEffect)(()=>{if(W&&fe.current&&fe.current.instance){let ft=fe.current.instance;ft.changeViewZones(function(jt){var Ut=document.createElement("div");Ut.style.padding="10px 20px",Ut.style.width="calc(100% - 20px)",Ut.className="my-error-line-wrp",Ut.innerHTML=Ce,jt.addZone({afterLineNumber:W||11,heightInLines:3,domNode:Ut})});var Lt={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}};ft.addOverlayWidget(Lt),ft.revealPositionInCenter({lineNumber:20,column:1})}},[W,fe.current,wn]);const dt=(Lt="",ft)=>{if(!Lt||Lt.trim()==="")return!0;const Ut=fe.current.instance.getModel().getLineTokens(ft);let Zt=!1;for(let un=0;un<2;un++)Ut.getStandardTokenType(un)===1&&(Zt=!0);return Zt};(0,P.useEffect)(()=>{var Lt;const ft=(Lt=fe.current)==null?void 0:Lt.instance;if(ft&&wn&&St){const jt=ft.onDidBlurEditorWidget(()=>{mn.current=!1}),Ut=ft.onDidFocusEditorText(()=>{mn.current=!0});return()=>{jt.dispose(),Ut.dispose()}}},[fe.current,wn,St]),(0,P.useEffect)(()=>{var Lt;if((Lt=fe.current)!=null&&Lt.instance&&wn&&Me){let ft=fe.current.instance,jt=ft.getModel();if(!jt)return;(()=>{var Et;let bt=[],Kt=[];const Qt=jt.getAllDecorations();for(let Cn of Qt)Cn.options.className==="highlighted-line"&&(bt.push((Et=Cn==null?void 0:Cn.range)==null?void 0:Et.startLineNumber),Kt.push(Cn==null?void 0:Cn.id));if(yn===bt[0])return;jt.deltaDecorations(Kt,[]);const nn=jt.getLineCount();yn&&yn<=nn&&(ft.deltaDecorations([],[{range:new k.Range(yn,1,yn,jt.getLineMaxColumn(yn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ft.revealLineInCenter(yn))})();const Zt=(Et=!1)=>{var bt;let Kt=[],Qt=[];const nn=jt.getAllDecorations();for(let Cn of nn)Cn.options.linesDecorationsClassName==="breakpoints-select"&&(Kt.push((bt=Cn==null?void 0:Cn.range)==null?void 0:bt.startLineNumber),Qt.push(Cn==null?void 0:Cn.id));if(Et)return{lines:Kt,ids:Qt};y(Kt)},un=Et=>cn(void 0,null,function*(){let bt={range:new k.Range(Et,1,Et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield jt.deltaDecorations([],[bt]),Zt()}),zn=Et=>cn(void 0,null,function*(){let bt=[];const Kt=ft.getLineDecorations(Et);for(let Qt of Kt)Qt.options.linesDecorationsClassName==="breakpoints-select"&&bt.push(Qt.id);yield jt.deltaDecorations(bt,[]),Zt()}),gn=Et=>{let bt=ft.getLineDecorations(Et);for(let Kt of bt)if(Kt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,x.isEqual)(C,Zt(!0).lines)){jt.deltaDecorations(Zt(!0).ids,[]);const Et=C.map(bt=>({range:new k.Range(bt,1,bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));jt.deltaDecorations([],Et)}const Bt=ft.onDidChangeModelContent(Et=>{let bt=ft.getPosition();if(bt){let Kt=bt.lineNumber;clearTimeout(Yt.current),Yt.current=setTimeout(()=>{dt(jt.getLineContent(Kt),Kt)?zn(Kt):gn(Kt)?(zn(Kt),un(Kt)):Zt()},100)}}),Ye=ft.onMouseDown(Et=>{var bt,Kt,Qt;if(Et.target.detail&&((Qt=(Kt=(bt=Et.target)==null?void 0:bt.element)==null?void 0:Kt.className)!=null&&Qt.includes("line-numbers"))){let nn=Et.target.position.lineNumber;if(dt(jt.getLineContent(nn),nn))return;gn(nn)?zn(nn):un(nn)}}),Qe=Et=>{let bt={range:new k.Range(Et,1,Et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};G.current=ft.deltaDecorations(G.current,[bt])},ut=()=>{G.current=ft.deltaDecorations(G.current,[])},yt=ft.onMouseMove(Et=>{var bt,Kt,Qt;if(ut(),Et.target.detail&&((Qt=(Kt=(bt=Et.target)==null?void 0:bt.element)==null?void 0:Kt.className)!=null&&Qt.includes("line-numbers"))){let nn=Et.target.position.lineNumber;if(dt(jt.getLineContent(nn),nn))return;Qe(nn)}}),ct=ft.onMouseLeave(()=>{ut()});return()=>{Bt.dispose(),Ye.dispose(),yt.dispose(),ct.dispose()}}},[fe.current,wn,C,yn,Me,Z]),(0,P.useEffect)(()=>{var Lt;(Lt=fe.current)!=null&&Lt.instance&&Me&&fe.current.instance.setPosition({lineNumber:0,column:0})},[yn]);function Tt(){let Lt=fe.current.instance;if(Lt){const ft=Lt.getSelection(),jt=fe.current.pastePos||{},Ut=new k.Range(jt.startLineNumber||ft.endLineNumber,jt.startColumn||ft.endColumn,jt.endLineNumber||ft.endLineNumber,jt.endColumn||ft.endColumn);setTimeout(()=>{Lt.executeEdits("",[{range:Ut,text:""}])},300)}}function Le(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),qe())}const ve=()=>{if(ht&&fe.current.instance){const Lt=fe.current.instance.getContentHeight();Wt(Lt<ue?ue:Lt)}else Wt(ue)};function rt(Lt){var ft=document.createEvent("MouseEvents");ft.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Lt.dispatchEvent(ft)}const lt=Lt=>{if(!mn.current)return;const{keyCode:ft,ctrlKey:jt,metaKey:Ut,target:Zt,type:un}=Lt;return(un==="paste"||(ft===67||ft===86)&&(Ut||jt))&&Zt.nodeName==="TEXTAREA"&&(qt(),Lt.preventDefault()),!1};function Nt(Lt,ft){var jt=window.URL||window.webkitURL||window,Ut=new Blob([ft]),Zt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Zt.href=jt.createObjectURL(Ut),Zt.download=Lt,rt(Zt)}(0,P.useEffect)(()=>{ve()},[ve]),(0,P.useEffect)(()=>{J.current&&!wn&&Promise.all([_.e(8909),_.e(3267)]).then(_.bind(_,71448)).then(Lt=>{try{k=Lt,fe.current.instance=k.editor.create(J.current,{value:he,language:me(Z),theme:Ne,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ae);const ft=fe.current.instance;let Zt=[...ee.BH._menuItems].find(Bt=>Bt[0]._debugName=="EditorContext")[1],un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],zn=(Bt,Ye)=>{var Qe,ut;let yt=Bt._first;do Ye.includes((ut=(Qe=yt.element)==null?void 0:Qe.command)==null?void 0:ut.id)&&Bt._remove(yt);while(yt=yt.next)};if(It(ft,k),setTimeout(()=>{ve(),fe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Nt(ot||"educoder.txt",ft.getValue())}})},500),fe.current.subscription=ft.onDidChangeModelContent(Bt=>{Ot.current?clearTimeout(Pe.current):(ve(),_t(ft.getValue(),Bt)),Pe.current=setTimeout(()=>{Ot.current=!1},500)}),window.Monaco||X(k,me(Z)),St&&(zn(Zt,un),J.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",lt),window.removeEventListener("paste",lt),window.addEventListener("keydown",lt),window.addEventListener("paste",lt)),window.Monaco=k,We&&ft.onDidBlurEditorWidget(()=>{We(ft.getValue())}),Ct&&ft.onDidFocusEditorText(()=>{Ct(ft.getValue())}),St)try{ft.onDidPaste(Bt=>{const Ye=ft.getSelection(),Qe=fe.current.pastePos||{},ut=new k.Range(Qe.startLineNumber||Ye.endLineNumber,Qe.startColumn||Ye.endColumn,Qe.endLineNumber||Ye.endLineNumber,Qe.endColumn||Ye.endColumn);ft.executeEdits("",[{range:Bt.range,text:""}])})}catch(Bt){}let gn=$t();return Ke&&typeof Ke=="string"&&new ae(Ke,ft,k),Hn(!0),()=>{const Bt=fe.current.instance;Bt.dispose();const Ye=Bt.getModel();Ye&&Ye.dispose(),fe.current.subscription&&fe.current.subscription.dispose(),gn.unobserve(J.current)}}catch(ft){}})},[]),(0,P.useEffect)(()=>{if(fe.current.instance&&wn)return document.addEventListener("keydown",Le,!1),()=>{document.removeEventListener("keydown",Le)}},[qe,wn]),(0,P.useEffect)(()=>{let Lt=fe.current.instance;if(Lt&&wn){let ft=me(Z);k.editor.setModelLanguage(Lt.getModel(),ft)}},[Z,wn]),(0,P.useEffect)(()=>{fe.current.instance&&wn&&k.editor.setTheme(Ne)},[Ne,wn]),(0,P.useEffect)(()=>{let Lt=fe.current.instance;Te.current=Ue,Lt&&wn&&(Lt.updateOptions(st({},Ue)),setTimeout(()=>{Lt.getModel().updateOptions(st({},Ue))},200))},[JSON.stringify(Ue),wn]),(0,P.useEffect)(()=>{let Lt=fe.current.instance;Lt&&wn&&Lt.layout()},[O,ue,wn]);const[Rt,zt]=(0,P.useState)(Vt(O)),[Pt,Wt]=(0,P.useState)(Vt(ue)),ln=kt(st({},De),{width:Rt,height:Pt,position:"relative"});return P.createElement("div",{className:"my-monaco-editor",ref:J,style:ln},Xe&&P.createElement(Q.CopyToClipboard,{text:he,onCopy:()=>ye.ZP.success("\u590D\u5236\u6210\u529F")},P.createElement(re.Z,{title:"\u590D\u5236\u4EE3\u7801"},P.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},P.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function we({width:L="100%",height:T="100%",original:O,modified:ue,language:he,options:Z={}}){const De=(0,P.useRef)(),[Ue,Ae]=(0,P.useState)(null);function Ne(ht){let St;return De.current&&(St=new N.Z(_t=>{for(let It of _t)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&ht.layout()}),St.observe(De.current)),St}(0,P.useEffect)(()=>(De.current&&Promise.all([_.e(8909),_.e(9404)]).then(_.bind(_,2550)).then(ht=>{k=ht;const St=k.editor.createDiffEditor(De.current,kt(st({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},Z),{wordWrap:!0}));Ae(St);let _t=Ne(St);return()=>{St.dispose();const It=St.getModel();It&&It.dispose(),_t.unobserve(De.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,P.useEffect)(()=>{Ue&&Ue.setModel({original:k.editor.createModel(O,he),modified:k.editor.createModel(ue,he)})},[O,ue,he,Ue]);const We=Vt(L),Xe=Vt(T),qe={width:We,height:Xe};return P.createElement("div",{className:"my-diff-editor",ref:De,style:qe})}},7121:function(rn,nt,_){"use strict";_.r(nt),_.d(nt,{default:function(){return gt}});var P=_(59301),N=_(89070),te=_(61186),Re=_.n(te),V=_(20834),ce=_(44e3),_e=_(95237),Ee=_(43604),o=_(28103),R=_(61621),M=_(58421),g=_(3294),c=_(8797),w=_(78241),v=_(43418),Y=_(8591),se=_(92832),K=_(10656),F={flex_box_center:"flex_box_center___N_gPw",flex_space_between:"flex_space_between___f_LaO",flex_box_vertical_center:"flex_box_vertical_center___silBX",flex_box_center_end:"flex_box_center_end___Nt5TD",flex_box_column:"flex_box_column___xc67X",tabs:"tabs___JYWDM",active:"active___siUX9",list:"list___IZLen",tags:"tags___V_Bdb",searchWrp:"searchWrp___MhTxO",newlight:"newlight___pybQh"},H=Object.defineProperty,ne=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,B=(st,kt,Ft)=>kt in st?H(st,kt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):st[kt]=Ft,X=(st,kt)=>{for(var Ft in kt||(kt={}))b.call(kt,Ft)&&B(st,Ft,kt[Ft]);if(ne)for(var Ft of ne(kt))A.call(kt,Ft)&&B(st,Ft,kt[Ft]);return st},ge=(st,kt,Ft)=>new Promise((cn,Vt)=>{var it=me=>{try{oe(Ft.next(me))}catch(k){Vt(k)}},At=me=>{try{oe(Ft.throw(me))}catch(k){Vt(k)}},oe=me=>me.done?cn(me.value):Promise.resolve(me.value).then(it,At);oe((Ft=Ft.apply(st,kt)).next())});const Ie=({messages:st,loading:kt,user:Ft,dispatch:cn})=>{var Vt;const it=(0,N.useParams)(),At=(0,N.useLocation)(),{actionTabs:oe}=st,[me]=w.default.useForm(),{recentContacts:k}=st,[de,we]=(0,P.useState)(""),[L,T]=(0,P.useState)([]),[O,ue]=(0,P.useState)(!1),[he,Z]=(0,P.useState)();(0,P.useEffect)(()=>{st.actionTabs.key==="\u5199\u79C1\u4FE1"&&De()},[st.actionTabs.key]);const De=()=>ge(void 0,null,function*(){var Ae;const Ne=yield cn({type:"messages/getRecentContacts",payload:{id:(Ae=Ft==null?void 0:Ft.userInfo)==null?void 0:Ae.user_id,keyword:de}});T(X({},Ne))}),Ue=()=>ge(void 0,null,function*(){if(de!==""){const Ae=yield cn({type:"messages/getUsersForPrivateMessages",payload:{keyword:de}});T(X({},Ae))}});return(0,P.useEffect)(()=>{Ue()},[de]),P.createElement(v.default,{centered:!0,title:"\u5199\u79C1\u4FE1",open:st.actionTabs.key==="\u5199\u79C1\u4FE1",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{height:320},onOk:()=>ge(void 0,null,function*(){var Ae,Ne,We;yield me.validateFields();const Xe=me.getFieldValue(),qe=`/api/course_modules/${it.categoryId}/add_second_category.json`,ht=yield(0,K.w0)({content:Xe.content,target_id:he,userId:(Ae=Ft==null?void 0:Ft.userInfo)==null?void 0:Ae.user_id});ht.status===0&&(Y.ZP.success("\u6DFB\u52A0\u6210\u529F"),cn({type:"messages/setActionTabs",payload:{}}),N.history.push(`/messages/${(Ne=Ft==null?void 0:Ft.userInfo)==null?void 0:Ne.login}/message_detail?target_ids=${(We=ht==null?void 0:ht.private_message)==null?void 0:We.receiver_id}`))}),onCancel:()=>{cn({type:"messages/setActionTabs",payload:{}})}},P.createElement(w.default,{form:me,initialValues:{name:""}},P.createElement(w.default.Item,{name:"users",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u9001\u5BF9\u8C61"}]},P.createElement(se.default.Search,{onFocus:()=>ue(!0),onSearch:Ae=>{we(Ae)},placeholder:"\u53D1\u9001\u7ED9..."})),O&&P.createElement(R.Z,{loading:kt["messages/getUsersForPrivateMessages"]},P.createElement("aside",{className:F.searchWrp,style:{maxHeight:260,overflow:"auto"}},P.createElement("p",{className:"c-light-black mt10"},de===""?"\u6700\u8FD1\u8054\u7CFB\u4EBA":"\u641C\u7D22\u7ED3\u679C"),(Vt=L==null?void 0:L.users)==null?void 0:Vt.map(function(Ae,Ne){return P.createElement(_e.Z,{key:Ne,align:"middle",className:"mt15 current",onClick:()=>{Z(Ae.id),me.setFieldsValue({users:Ae.name}),ue(!1)}},P.createElement(Ee.Z,{flex:"58px"},P.createElement("img",{style:{width:48,borderRadius:48},src:g.Z.IMG_SERVER+"/images/"+(Ae==null?void 0:Ae.image_url),alt:""})),P.createElement(Ee.Z,null,Ae.name))}))),P.createElement(w.default.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u9001\u5185\u5BB9"}],className:O&&"hide",name:"content"},P.createElement(se.default.TextArea,{rows:10,maxLength:200}))))};var Oe=(0,N.connect)(({messages:st,loading:kt,user:Ft})=>({messages:st,user:Ft,loading:kt.effects}))(Ie),He=_(85149),q=_(6066),$=Object.defineProperty,ae=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,S=(st,kt,Ft)=>kt in st?$(st,kt,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):st[kt]=Ft,Q=(st,kt)=>{for(var Ft in kt||(kt={}))re.call(kt,Ft)&&S(st,Ft,kt[Ft]);if(ye)for(var Ft of ye(kt))x.call(kt,Ft)&&S(st,Ft,kt[Ft]);return st},be=(st,kt)=>ae(st,ee(kt)),Ve=(st,kt)=>{var Ft={};for(var cn in st)re.call(st,cn)&&kt.indexOf(cn)<0&&(Ft[cn]=st[cn]);if(st!=null&&ye)for(var cn of ye(st))kt.indexOf(cn)<0&&x.call(st,cn)&&(Ft[cn]=st[cn]);return Ft};const{SubMenu:tt}=V.default,{Sider:Je,Content:et}=ce.default,xt=st=>{var kt=st,{messages:Ft,globalSetting:cn,loading:Vt,user:it,dispatch:At}=kt,oe=Ve(kt,["messages","globalSetting","loading","user","dispatch"]),me,k;const de=(0,N.useParams)(),{userInfo:we}=it,{tidingsList:L,privateMessage:T}=Ft,[O,ue]=(0,P.useState)({per_page:10,page:1});(0,P.useEffect)(()=>{O.page=1,he()},[de.userId]);const he=()=>{At({type:"messages/getPrivateMessages",payload:Q(Q({},O),de)})},Z=Ae=>{var Ne,We;oe.history.push(`/messages/${(Ne=it==null?void 0:it.userInfo)==null?void 0:Ne.login}/message_detail?target_ids=${(We=Ae==null?void 0:Ae.target)==null?void 0:We.id}`)},De=Ae=>{var Ne;oe.history.push(`/users/${(Ne=Ae==null?void 0:Ae.target)==null?void 0:Ne.login}`)},Ue=(0,P.useMemo)(()=>(we==null?void 0:we.is_teacher)&&(we==null?void 0:we.professional_certification),[we]);return P.createElement("section",{className:F.bg},P.createElement("section",{className:"edu-container mt20"},P.createElement(_e.Z,{gutter:[20,20]},P.createElement(q.Z,null),P.createElement(Ee.Z,{flex:"1"},P.createElement("aside",{className:"bg-white"},P.createElement("aside",{className:"pt30 pl30 pr30 font16"},P.createElement(_e.Z,null,P.createElement(Ee.Z,{flex:"1"},"\u5168\u90E8\u79C1\u4FE1"),Ue&&P.createElement(Ee.Z,null,P.createElement("span",{className:"c-blue current",onClick:()=>{var Ae;At({type:"messages/setActionTabs",payload:{key:"\u5199\u79C1\u4FE1",bodyParams:be(Q({},O),{user_id:(Ae=it==null?void 0:it.userInfo)==null?void 0:Ae.user_id})}})}},"\u5199\u79C1\u4FE1")))),P.createElement(o.Z,null),P.createElement("aside",{className:F.list},P.createElement(R.Z,{active:!0,avatar:{size:40},paragraph:{rows:5},loading:Vt["messages/getPrivateMessages"]},!((me=T==null?void 0:T.private_messages)!=null&&me.length)&&P.createElement(c.Z,null),(k=T==null?void 0:T.private_messages)==null?void 0:k.map(function(Ae,Ne){var We,Xe;return P.createElement("aside",null,P.createElement(_e.Z,null,P.createElement(Ee.Z,{flex:"58px",onClick:()=>De(Ae)},P.createElement("img",{src:g.Z.IMG_SERVER+"/images/"+((We=Ae==null?void 0:Ae.target)==null?void 0:We.image_url),alt:""})),P.createElement(Ee.Z,{flex:1},P.createElement(_e.Z,null,P.createElement(Ee.Z,{span:24},P.createElement(_e.Z,null,P.createElement(Ee.Z,{flex:"1"},P.createElement("span",{onClick:()=>De(Ae)},(Xe=Ae==null?void 0:Ae.target)==null?void 0:Xe.name),P.createElement("span",{className:"ml15"},"\u4E0E\u4F60\u7684\u79C1\u4FE1"),P.createElement("span",{className:"c-light-black mr15"},"[",Ae==null?void 0:Ae.message_count,"\u6761]"),P.createElement("span",{className:"ml15 c-light-black"},Re()(Ae.send_time).fromNow())),P.createElement(Ee.Z,null,(Ae==null?void 0:Ae.unread)&&P.createElement("span",{className:F.newlight})))),P.createElement(Ee.Z,{span:24,onClick:()=>Z(Ae)},P.createElement("div",{className:"mt15"},P.createElement(He.Z,{value:Ae.content||""})))))))})))),P.createElement("aside",{className:"tc mt20"},!Vt["messages/getTidings"]&&P.createElement(M.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:Ae=>{O.page=Ae,ue(Q({},O)),he()},current:O.page||1,total:T==null?void 0:T.count}))))),P.createElement(Oe,null))};var gt=(0,N.connect)(({messages:st,loading:kt,user:Ft,globalSetting:cn})=>({messages:st,globalSetting:cn,user:Ft,loading:kt.effects}))(xt)},6066:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return F}});var P=_(59301),N=_(89070),te=_(20834),Re=_(44e3),V=_(43604),ce=_(3294),_e={flex_box_center:"flex_box_center___cQVhO",flex_space_between:"flex_space_between___L36a6",flex_box_vertical_center:"flex_box_vertical_center___sIHwG",flex_box_center_end:"flex_box_center_end___OqNyE",flex_box_column:"flex_box_column___Ct7XG",userInfo:"userInfo____uyMZ",navInfo:"navInfo___acXs6",actived:"actived___WhZza",newTip:"newTip___Jdd6B"},Ee=Object.defineProperty,o=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,g=(H,ne,b)=>ne in H?Ee(H,ne,{enumerable:!0,configurable:!0,writable:!0,value:b}):H[ne]=b,c=(H,ne)=>{for(var b in ne||(ne={}))R.call(ne,b)&&g(H,b,ne[b]);if(o)for(var b of o(ne))M.call(ne,b)&&g(H,b,ne[b]);return H},w=(H,ne)=>{var b={};for(var A in H)R.call(H,A)&&ne.indexOf(A)<0&&(b[A]=H[A]);if(H!=null&&o)for(var A of o(H))ne.indexOf(A)<0&&M.call(H,A)&&(b[A]=H[A]);return b};const{SubMenu:v}=te.default,{Sider:Y,Content:se}=Re.default,K=H=>{var ne=H,{messages:b,globalSetting:A,loading:B,user:X,dispatch:ge}=ne,Ie=w(ne,["messages","globalSetting","loading","user","dispatch"]);const Oe=(0,N.useParams)(),{userInfo:He}=X,q=(0,N.useLocation)(),{tidingsList:$,privateMessage:ae,unreadInfo:ee}=b,[ye,re]=(0,P.useState)({per_page:10,page:1});(0,P.useEffect)(()=>{x()},[Oe.userId]);const x=()=>{ge({type:"messages/unreadMessageInfo",payload:c(c({},ye),Oe)})};return P.createElement(V.Z,{flex:"264px"},P.createElement("aside",{className:_e.userInfo},P.createElement("img",{className:"mt40",src:ce.Z.IMG_SERVER+"/images/"+(He==null?void 0:He.image_url)}),P.createElement("p",{className:"font24 mt10"},He==null?void 0:He.username),P.createElement("p",{className:"mt20"},He==null?void 0:He.user_identity)),P.createElement("ul",{className:_e.navInfo},P.createElement(N.Link,{to:`/messages/${He==null?void 0:He.login}/user_tidings`},P.createElement("li",{className:q.pathname.indexOf("user_tidings")>-1&&_e.actived},"\u6D88\u606F",!!(ee!=null&&ee.unread_tiding_count)&&P.createElement("span",{className:_e.newTip},ee==null?void 0:ee.unread_tiding_count))),P.createElement(N.Link,{to:`/messages/${He==null?void 0:He.login}/private_messages`},P.createElement("li",{className:(q.pathname.indexOf("private_messages")>-1||q.pathname.indexOf("message_detail")>-1)&&_e.actived},"\u79C1\u4FE1",!!(ee!=null&&ee.unread_message_count)&&P.createElement("span",{className:_e.newTip},ee==null?void 0:ee.unread_message_count)))))};var F=(0,N.connect)(({messages:H,loading:ne,user:b,globalSetting:A})=>({messages:H,globalSetting:A,user:b,loading:ne.effects}))(K)},24768:function(rn,nt,_){"use strict";_.d(nt,{AL:function(){return ne},Iy:function(){return M},Qv:function(){return w},ez:function(){return H},jb:function(){return g}});var P=_(32834),N=_.n(P),te=_(11690),Re=_.n(te);let V=1;function ce(ge,Ie){const Oe=ge.match(/^(\s+)(?:```)/);if(Oe===null)return Ie;const He=Oe[1];return Ie.split(`
|
|
|
`).map(q=>{const $=q.match(/^\s+/);if($===null)return q;const[ae]=$;return ae.length>=He.length?q.slice(He.length):q}).join(`
|
|
|
`)}let _e=[],Ee=["<ul>"];const o=new(N()).Renderer,R=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function M(){_e.length=0,Ee=["<ul>"]}const g={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function c(ge,Ie,Oe,He){if(Ie>=ge.length||ge[Ie].level<=Oe)return Ie;var q=ge[Ie];He.push("<li><a href='#"+V+q.anchor+"'>"+q.text+"</a>"),Ie++;var $=[];return Ie=c(ge,Ie,q.level,$),$.length>0&&(He.push("<ul>"),$.forEach(function(ae){He.push(ae)}),He.push("</ul>")),He.push("</li>"),Ie=c(ge,Ie,Oe,He),Ie}function w(){return c(_e,0,0,Ee),Ee.push("</ul>"),Ee.join("")}const v={heading(ge){const Ie=R.exec(ge);if(V+=1,Ie)return{type:"heading",raw:Ie[0],depth:Ie[1].length,text:Ie[2]}},fences(ge){const Ie=this.rules.block.fences.exec(ge);if(Ie){const Oe=Ie[0];let He=ce(Oe,Ie[3]||"");const q=Ie[2]?Ie[2].trim():Ie[2];if(["latex","katex","math"].indexOf(q)>=0){const $=K(),ae=He;He=$,F[$]={type:"block",expression:ae}}return{type:"code",raw:Oe,lang:q,text:He}}}},Y=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let se=0;const K=()=>`__special_katext_id_${se++}__`;let F={};function H(){return F}function ne(){se=0,F={}}function b(ge){return ge=ge.replace(Y,(Ie,Oe)=>{const He=K();return F[He]={type:"inline",expression:Oe},He}),ge}const A=o.listitem;o.listitem=function(ge){return A(b(ge))};const B=o.paragraph;o.paragraph=function(ge){return B(b(ge))};const X=o.tablecell;o.tablecell=function(ge,Ie){return X(b(ge),Ie)},o.code=function(ge,Ie,Oe){const He=(Ie||"").match(/\S*/)[0];return He?["latex","katex","math"].indexOf(He)>=0?`<p class='editormd-tex'>${ge}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ie}">${Oe?ge:(0,te.escape)(ge,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Oe?ge:(0,te.escape)(ge,!0))+"</code></pre>"},o.heading=function(ge,Ie,Oe){let He=this.options.headerPrefix+Oe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return _e.push({anchor:He,level:Ie,text:ge}),"<h"+Ie+' id="'+V+He+'">'+ge+"</h"+Ie+">"},N().setOptions({silent:!0,gfm:!0,pedantic:!1}),N().use({tokenizer:v,renderer:o}),nt.ZP=N()},36785:function(rn,nt,_){"use strict";_.d(nt,{o2:function(){return V},yT:function(){return ce}});var P=_(19127),N=_(33166);const te=N.i.map(_e=>`${_e}-inverse`),Re=["success","processing","error","default","warning"];function V(_e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,P.Z)(te),(0,P.Z)(N.i)).includes(_e):N.i.includes(_e)}function ce(_e){return Re.includes(_e)}},56762:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return N}});var P=_(59301);function N(){const[,te]=P.useReducer(Re=>Re+1,0);return te}},79676:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return ce}});var P=_(19447);function N(_e,Ee,o,R){if(R===!1)return{adjustX:!1,adjustY:!1};const M=R&&typeof R=="object"?R:{},g={};switch(_e){case"top":case"bottom":g.shiftX=Ee.dropdownArrowOffset*2+o;break;case"left":case"right":g.shiftY=Ee.dropdownArrowOffsetVertical*2+o;break}const c=Object.assign(Object.assign({},g),M);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const te={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"]}},Re={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"]}},V=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ce(_e){const{arrowWidth:Ee,autoAdjustOverflow:o,arrowPointAtCenter:R,offset:M,borderRadius:g,visibleFirst:c}=_e,w=Ee/2,v={};return Object.keys(te).forEach(Y=>{const se=R&&Re[Y]||te[Y],K=Object.assign(Object.assign({},se),{offset:[0,0]});switch(v[Y]=K,V.has(Y)&&(K.autoArrow=!1),Y){case"top":case"topLeft":case"topRight":K.offset[1]=-w-M;break;case"bottom":case"bottomLeft":case"bottomRight":K.offset[1]=w+M;break;case"left":case"leftTop":case"leftBottom":K.offset[0]=-w-M;break;case"right":case"rightTop":case"rightBottom":K.offset[0]=w+M;break}const F=(0,P.fS)({contentRadius:g,limitVerticalRadius:!0});if(R)switch(Y){case"topLeft":case"bottomLeft":K.offset[0]=-F.dropdownArrowOffset-w;break;case"topRight":case"bottomRight":K.offset[0]=F.dropdownArrowOffset+w;break;case"leftTop":case"rightTop":K.offset[1]=-F.dropdownArrowOffset-w;break;case"leftBottom":case"rightBottom":K.offset[1]=F.dropdownArrowOffset+w;break}K.overflow=N(Y,F,Ee,o),c&&(K.htmlRegion="visibleFirst")}),v}},19080:function(rn,nt,_){"use strict";_.d(nt,{F:function(){return V},Z:function(){return Re}});var P=_(92310),N=_.n(P);const te=null;function Re(ce,_e,Ee){return N()({[`${ce}-status-success`]:_e==="success",[`${ce}-status-warning`]:_e==="warning",[`${ce}-status-error`]:_e==="error",[`${ce}-status-validating`]:_e==="validating",[`${ce}-has-feedback`]:Ee})}const V=(ce,_e)=>_e||ce},93891:function(rn,nt,_){"use strict";var P=_(59301),N=_(36355),te=_(64165);const Re=V=>{const{componentName:ce}=V,{getPrefixCls:_e}=(0,P.useContext)(N.E_),Ee=_e("empty");switch(ce){case"Table":case"List":return P.createElement(te.Z,{image:te.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return P.createElement(te.Z,{image:te.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ee}-small`});default:return P.createElement(te.Z,null)}};nt.Z=Re},28103:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return g}});var P=_(92310),N=_.n(P),te=_(59301),Re=_(36355),V=_(17313),ce=_(83116),_e=_(37613);const Ee=c=>{const{componentCls:w,sizePaddingEdgeHorizontal:v,colorSplit:Y,lineWidth:se,textPaddingInline:K,orientationMargin:F,verticalMarginInline:H}=c;return{[w]:Object.assign(Object.assign({},(0,V.Wf)(c)),{borderBlockStart:`${se}px solid ${Y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:H,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${se}px solid ${Y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${c.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${w}-with-text`]:{display:"flex",alignItems:"center",margin:`${c.dividerHorizontalWithTextGutterMargin}px 0`,color:c.colorTextHeading,fontWeight:500,fontSize:c.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${se}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${w}-with-text-left`]:{"&::before":{width:`${F*100}%`},"&::after":{width:`${100-F*100}%`}},[`&-horizontal${w}-with-text-right`]:{"&::before":{width:`${100-F*100}%`},"&::after":{width:`${F*100}%`}},[`${w}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:K},"&-dashed":{background:"none",borderColor:Y,borderStyle:"dashed",borderWidth:`${se}px 0 0`},[`&-horizontal${w}-with-text${w}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${w}-dashed`]:{borderInlineStartWidth:se,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${w}-with-text`]:{color:c.colorText,fontWeight:"normal",fontSize:c.fontSize},[`&-horizontal${w}-with-text-left${w}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${w}-inner-text`]:{paddingInlineStart:v}},[`&-horizontal${w}-with-text-right${w}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${w}-inner-text`]:{paddingInlineEnd:v}}})}};var o=(0,ce.Z)("Divider",c=>{const w=(0,_e.TS)(c,{dividerHorizontalWithTextGutterMargin:c.margin,dividerHorizontalGutterMargin:c.marginLG,sizePaddingEdgeHorizontal:0});return[Ee(w)]},c=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:c.marginXS})),R=function(c,w){var v={};for(var Y in c)Object.prototype.hasOwnProperty.call(c,Y)&&w.indexOf(Y)<0&&(v[Y]=c[Y]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Y=Object.getOwnPropertySymbols(c);se<Y.length;se++)w.indexOf(Y[se])<0&&Object.prototype.propertyIsEnumerable.call(c,Y[se])&&(v[Y[se]]=c[Y[se]]);return v},g=c=>{const{getPrefixCls:w,direction:v,divider:Y}=te.useContext(Re.E_),{prefixCls:se,type:K="horizontal",orientation:F="center",orientationMargin:H,className:ne,rootClassName:b,children:A,dashed:B,plain:X,style:ge}=c,Ie=R(c,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Oe=w("divider",se),[He,q]=o(Oe),$=F.length>0?`-${F}`:F,ae=!!A,ee=F==="left"&&H!=null,ye=F==="right"&&H!=null,re=N()(Oe,Y==null?void 0:Y.className,q,`${Oe}-${K}`,{[`${Oe}-with-text`]:ae,[`${Oe}-with-text${$}`]:ae,[`${Oe}-dashed`]:!!B,[`${Oe}-plain`]:!!X,[`${Oe}-rtl`]:v==="rtl",[`${Oe}-no-default-orientation-margin-left`]:ee,[`${Oe}-no-default-orientation-margin-right`]:ye},ne,b),x=te.useMemo(()=>typeof H=="number"?H:/^\d+$/.test(H)?Number(H):H,[H]),S=Object.assign(Object.assign({},ee&&{marginLeft:x}),ye&&{marginRight:x});return He(te.createElement("div",Object.assign({className:re,style:Object.assign(Object.assign({},Y==null?void 0:Y.style),ge)},Ie,{role:"separator"}),A&&K!=="vertical"&&te.createElement("span",{className:`${Oe}-inner-text`,style:S},A)))}},64165:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return H}});var P=_(92310),N=_.n(P),te=_(59301),Re=_(36355),V=_(9763),ce=_(64993),_e=_(88088),o=()=>{const[,ne]=(0,_e.Z)(),A=new ce.C(ne.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return te.createElement("svg",{style:A,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},te.createElement("g",{fill:"none",fillRule:"evenodd"},te.createElement("g",{transform:"translate(24 31.67)"},te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),te.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),te.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),te.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),te.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),te.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},M=()=>{const[,ne]=(0,_e.Z)(),{colorFill:b,colorFillTertiary:A,colorFillQuaternary:B,colorBgContainer:X}=ne,{borderColor:ge,shadowColor:Ie,contentColor:Oe}=(0,te.useMemo)(()=>({borderColor:new ce.C(b).onBackground(X).toHexShortString(),shadowColor:new ce.C(A).onBackground(X).toHexShortString(),contentColor:new ce.C(B).onBackground(X).toHexShortString()}),[b,A,B,X]);return te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},te.createElement("ellipse",{fill:Ie,cx:"32",cy:"33",rx:"32",ry:"7"}),te.createElement("g",{fillRule:"nonzero",stroke:ge},te.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),te.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Oe}))))},g=_(83116),c=_(37613);const w=ne=>{const{componentCls:b,margin:A,marginXS:B,marginXL:X,fontSize:ge,lineHeight:Ie}=ne;return{[b]:{marginInline:B,fontSize:ge,lineHeight:Ie,textAlign:"center",[`${b}-image`]:{height:ne.emptyImgHeight,marginBottom:B,opacity:ne.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${b}-description`]:{color:ne.colorText},[`${b}-footer`]:{marginTop:A},"&-normal":{marginBlock:X,color:ne.colorTextDisabled,[`${b}-description`]:{color:ne.colorTextDisabled},[`${b}-image`]:{height:ne.emptyImgHeightMD}},"&-small":{marginBlock:B,color:ne.colorTextDisabled,[`${b}-image`]:{height:ne.emptyImgHeightSM}}}}};var v=(0,g.Z)("Empty",ne=>{const{componentCls:b,controlHeightLG:A}=ne,B=(0,c.TS)(ne,{emptyImgCls:`${b}-img`,emptyImgHeight:A*2.5,emptyImgHeightMD:A,emptyImgHeightSM:A*.875});return[w(B)]}),Y=function(ne,b){var A={};for(var B in ne)Object.prototype.hasOwnProperty.call(ne,B)&&b.indexOf(B)<0&&(A[B]=ne[B]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,B=Object.getOwnPropertySymbols(ne);X<B.length;X++)b.indexOf(B[X])<0&&Object.prototype.propertyIsEnumerable.call(ne,B[X])&&(A[B[X]]=ne[B[X]]);return A};const se=te.createElement(o,null),K=te.createElement(M,null),F=ne=>{var{className:b,rootClassName:A,prefixCls:B,image:X=se,description:ge,children:Ie,imageStyle:Oe,style:He}=ne,q=Y(ne,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:$,direction:ae,empty:ee}=te.useContext(Re.E_),ye=$("empty",B),[re,x]=v(ye),[S]=(0,V.Z)("Empty"),Q=typeof ge!="undefined"?ge:S==null?void 0:S.description,be=typeof Q=="string"?Q:"empty";let Ve=null;return typeof X=="string"?Ve=te.createElement("img",{alt:be,src:X}):Ve=X,re(te.createElement("div",Object.assign({className:N()(x,ye,ee==null?void 0:ee.className,{[`${ye}-normal`]:X===K,[`${ye}-rtl`]:ae==="rtl"},b,A),style:Object.assign(Object.assign({},ee==null?void 0:ee.style),He)},q),te.createElement("div",{className:`${ye}-image`,style:Oe},Ve),Q&&te.createElement("div",{className:`${ye}-description`},Q),Ie&&te.createElement("div",{className:`${ye}-footer`},Ie)))};F.PRESENTED_IMAGE_DEFAULT=se,F.PRESENTED_IMAGE_SIMPLE=K;var H=F},78241:function(rn,nt,_){"use strict";_.d(nt,{default:function(){return qt}});var P=_(19127),N=_(92310),te=_.n(N),Re=_(77900),V=_(59301),ce=_(62892),_e=_(32441);function Ee($e){const[dt,Tt]=V.useState($e);return V.useEffect(()=>{const Le=setTimeout(()=>{Tt($e)},$e.length?0:10);return()=>{clearTimeout(Le)}},[$e]),dt}var o=_(17313),R=_(29878),M=_(8378),g=_(37613),c=_(83116),v=$e=>{const{componentCls:dt}=$e,Tt=`${dt}-show-help`,Le=`${dt}-show-help-item`;return{[Tt]:{transition:`opacity ${$e.motionDurationSlow} ${$e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Le]:{overflow:"hidden",transition:`height ${$e.motionDurationSlow} ${$e.motionEaseInOut},
|
|
|
opacity ${$e.motionDurationSlow} ${$e.motionEaseInOut},
|
|
|
transform ${$e.motionDurationSlow} ${$e.motionEaseInOut} !important`,[`&${Le}-appear, &${Le}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Le}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Y=$e=>({legend:{display:"block",width:"100%",marginBottom:$e.marginLG,padding:0,color:$e.colorTextDescription,fontSize:$e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`},label:{fontSize:$e.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 ${$e.controlOutlineWidth}px ${$e.controlOutline}`},output:{display:"block",paddingTop:15,color:$e.colorText,fontSize:$e.fontSize,lineHeight:$e.lineHeight}}),se=($e,dt)=>{const{formItemCls:Tt}=$e;return{[Tt]:{[`${Tt}-label > label`]:{height:dt},[`${Tt}-control-input`]:{minHeight:dt}}}},K=$e=>{const{componentCls:dt}=$e;return{[$e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)($e)),Y($e)),{[`${dt}-text`]:{display:"inline-block",paddingInlineEnd:$e.paddingSM},"&-small":Object.assign({},se($e,$e.controlHeightSM)),"&-large":Object.assign({},se($e,$e.controlHeightLG))})}},F=$e=>{const{formItemCls:dt,iconCls:Tt,componentCls:Le,rootPrefixCls:ve,labelRequiredMarkColor:rt,labelColor:lt,labelFontSize:Nt,labelHeight:Rt,labelColonMarginInlineStart:zt,labelColonMarginInlineEnd:Pt,itemMarginBottom:Wt}=$e;return{[dt]:Object.assign(Object.assign({},(0,o.Wf)($e)),{marginBottom:Wt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${ve}-row`]:{display:"none"},"&-has-warning":{[`${dt}-split`]:{color:$e.colorError}},"&-has-error":{[`${dt}-split`]:{color:$e.colorWarning}},[`${dt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${$e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Rt,color:lt,fontSize:Nt,[`> ${Tt}`]:{fontSize:$e.fontSize,verticalAlign:"top"},[`&${dt}-required:not(${dt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:$e.marginXXS,color:rt,fontSize:$e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Le}-hide-required-mark &`]:{display:"none"}},[`${dt}-optional`]:{display:"inline-block",marginInlineStart:$e.marginXXS,color:$e.colorTextDescription,[`${Le}-hide-required-mark &`]:{display:"none"}},[`${dt}-tooltip`]:{color:$e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:$e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:zt,marginInlineEnd:Pt},[`&${dt}-no-colon::after`]:{content:'"\\a0"'}}},[`${dt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ve}-col-'"]):not([class*="' ${ve}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:$e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[dt]:{"&-explain, &-extra":{clear:"both",color:$e.colorTextDescription,fontSize:$e.fontSize,lineHeight:$e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:$e.controlHeightSM,transition:`color ${$e.motionDurationMid} ${$e.motionEaseOut}`},"&-explain":{"&-error":{color:$e.colorError},"&-warning":{color:$e.colorWarning}}},[`&-with-help ${dt}-explain`]:{height:"auto",opacity:1},[`${dt}-feedback-icon`]:{fontSize:$e.fontSize,textAlign:"center",visibility:"visible",animationName:R.kr,animationDuration:$e.motionDurationMid,animationTimingFunction:$e.motionEaseOutBack,pointerEvents:"none","&-success":{color:$e.colorSuccess},"&-error":{color:$e.colorError},"&-warning":{color:$e.colorWarning},"&-validating":{color:$e.colorPrimary}}})}},H=$e=>{const{componentCls:dt,formItemCls:Tt}=$e;return{[`${dt}-horizontal`]:{[`${Tt}-label`]:{flexGrow:0},[`${Tt}-control`]:{flex:"1 1 0",minWidth:0},[`${Tt}-label[class$='-24'], ${Tt}-label[class*='-24 ']`]:{[`& + ${Tt}-control`]:{minWidth:"unset"}}}}},ne=$e=>{const{componentCls:dt,formItemCls:Tt}=$e;return{[`${dt}-inline`]:{display:"flex",flexWrap:"wrap",[Tt]:{flex:"none",marginInlineEnd:$e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Tt}-label,
|
|
|
> ${Tt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Tt}-label`]:{flex:"none"},[`${dt}-text`]:{display:"inline-block"},[`${Tt}-has-feedback`]:{display:"inline-block"}}}}},b=$e=>({padding:$e.verticalLabelPadding,margin:$e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),A=$e=>{const{componentCls:dt,formItemCls:Tt,rootPrefixCls:Le}=$e;return{[`${Tt} ${Tt}-label`]:b($e),[dt]:{[Tt]:{flexWrap:"wrap",[`${Tt}-label, ${Tt}-control`]:{[`&:not([class*=" ${Le}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},B=$e=>{const{componentCls:dt,formItemCls:Tt,rootPrefixCls:Le}=$e;return{[`${dt}-vertical`]:{[Tt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${dt}-item-control`]:{width:"100%"}}},[`${dt}-vertical ${Tt}-label,
|
|
|
.${Le}-col-24${Tt}-label,
|
|
|
.${Le}-col-xl-24${Tt}-label`]:b($e),[`@media (max-width: ${$e.screenXSMax}px)`]:[A($e),{[dt]:{[`.${Le}-col-xs-24${Tt}-label`]:b($e)}}],[`@media (max-width: ${$e.screenSMMax}px)`]:{[dt]:{[`.${Le}-col-sm-24${Tt}-label`]:b($e)}},[`@media (max-width: ${$e.screenMDMax}px)`]:{[dt]:{[`.${Le}-col-md-24${Tt}-label`]:b($e)}},[`@media (max-width: ${$e.screenLGMax}px)`]:{[dt]:{[`.${Le}-col-lg-24${Tt}-label`]:b($e)}}}},X=($e,dt)=>(0,g.TS)($e,{formItemCls:`${$e.componentCls}-item`,rootPrefixCls:dt});var ge=(0,c.Z)("Form",($e,dt)=>{let{rootPrefixCls:Tt}=dt;const Le=X($e,Tt);return[K(Le),F(Le),v(Le),H(Le),ne(Le),B(Le),(0,M.Z)(Le),R.kr]},$e=>({labelRequiredMarkColor:$e.colorError,labelColor:$e.colorTextHeading,labelFontSize:$e.fontSize,labelHeight:$e.controlHeight,labelColonMarginInlineStart:$e.marginXXS/2,labelColonMarginInlineEnd:$e.marginXS,itemMarginBottom:$e.marginLG,verticalLabelPadding:`0 0 ${$e.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ie=[];function Oe($e,dt,Tt){let Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof $e=="string"?$e:`${dt}-${Le}`,error:$e,errorStatus:Tt}}var q=$e=>{let{help:dt,helpStatus:Tt,errors:Le=Ie,warnings:ve=Ie,className:rt,fieldId:lt,onVisibleChanged:Nt}=$e;const{prefixCls:Rt}=V.useContext(_e.Rk),zt=`${Rt}-item-explain`,[,Pt]=ge(Rt),Wt=(0,V.useMemo)(()=>(0,ce.Z)(Rt),[Rt]),ln=Ee(Le),Lt=Ee(ve),ft=V.useMemo(()=>dt!=null?[Oe(dt,"help",Tt)]:[].concat((0,P.Z)(ln.map((Ut,Zt)=>Oe(Ut,"error","error",Zt))),(0,P.Z)(Lt.map((Ut,Zt)=>Oe(Ut,"warning","warning",Zt)))),[dt,Tt,ln,Lt]),jt={};return lt&&(jt.id=`${lt}_help`),V.createElement(Re.default,{motionDeadline:Wt.motionDeadline,motionName:`${Rt}-show-help`,visible:!!ft.length,onVisibleChanged:Nt},Ut=>{const{className:Zt,style:un}=Ut;return V.createElement("div",Object.assign({},jt,{className:te()(zt,Zt,rt,Pt),style:un,role:"alert"}),V.createElement(Re.CSSMotionList,Object.assign({keys:ft},(0,ce.Z)(Rt),{motionName:`${Rt}-show-help-item`,component:!1}),zn=>{const{key:gn,error:Bt,errorStatus:Ye,className:Qe,style:ut}=zn;return V.createElement("div",{key:gn,className:te()(Qe,{[`${zt}-${Ye}`]:Ye}),style:ut},Bt)}))})},$=_(95013),ae=_(36355),ee=_(1684),ye=_(52946),re=_(19716),x=_(16722);const S=["parentNode"],Q="form_item";function be($e){return $e===void 0||$e===!1?[]:Array.isArray($e)?$e:[$e]}function Ve($e,dt){if(!$e.length)return;const Tt=$e.join("_");return dt?`${dt}_${Tt}`:S.includes(Tt)?`${Q}_${Tt}`:Tt}function tt($e,dt,Tt,Le,ve,rt){let lt=Le;return rt!==void 0?lt=rt:Tt.validating?lt="validating":$e.length?lt="error":dt.length?lt="warning":(Tt.touched||ve&&Tt.validated)&&(lt="success"),lt}function Je($e){return be($e).join("_")}function et($e){const[dt]=(0,$.useForm)(),Tt=V.useRef({}),Le=V.useMemo(()=>$e!=null?$e:Object.assign(Object.assign({},dt),{__INTERNAL__:{itemRef:ve=>rt=>{const lt=Je(ve);rt?Tt.current[lt]=rt:delete Tt.current[lt]}},scrollToField:function(ve){let rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const lt=be(ve),Nt=Ve(lt,Le.__INTERNAL__.name),Rt=Nt?document.getElementById(Nt):null;Rt&&(0,x.Z)(Rt,Object.assign({scrollMode:"if-needed",block:"nearest"},rt))},getFieldInstance:ve=>{const rt=Je(ve);return Tt.current[rt]}}),[$e,dt]);return[Le]}var xt=_(28726),gt=function($e,dt){var Tt={};for(var Le in $e)Object.prototype.hasOwnProperty.call($e,Le)&&dt.indexOf(Le)<0&&(Tt[Le]=$e[Le]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Le=Object.getOwnPropertySymbols($e);ve<Le.length;ve++)dt.indexOf(Le[ve])<0&&Object.prototype.propertyIsEnumerable.call($e,Le[ve])&&(Tt[Le[ve]]=$e[Le[ve]]);return Tt};const st=($e,dt)=>{const Tt=V.useContext(ee.Z),{getPrefixCls:Le,direction:ve,form:rt}=V.useContext(ae.E_),{prefixCls:lt,className:Nt,rootClassName:Rt,size:zt,disabled:Pt=Tt,form:Wt,colon:ln,labelAlign:Lt,labelWrap:ft,labelCol:jt,wrapperCol:Ut,hideRequiredMark:Zt,layout:un="horizontal",scrollToFirstError:zn,requiredMark:gn,onFinishFailed:Bt,name:Ye,style:Qe,feedbackIcons:ut}=$e,yt=gt($e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ct=(0,re.Z)(zt),Et=V.useContext(xt.Z),bt=(0,V.useMemo)(()=>gn!==void 0?gn:rt&&rt.requiredMark!==void 0?rt.requiredMark:!Zt,[Zt,gn,rt]),Kt=ln!=null?ln:rt==null?void 0:rt.colon,Qt=Le("form",lt),[nn,Cn]=ge(Qt),Rn=te()(Qt,`${Qt}-${un}`,{[`${Qt}-hide-required-mark`]:bt===!1,[`${Qt}-rtl`]:ve==="rtl",[`${Qt}-${ct}`]:ct},Cn,rt==null?void 0:rt.className,Nt,Rt),[On]=et(Wt),{__INTERNAL__:on}=On;on.name=Ye;const Xt=(0,V.useMemo)(()=>({name:Ye,labelAlign:Lt,labelCol:jt,labelWrap:ft,wrapperCol:Ut,vertical:un==="vertical",colon:Kt,requiredMark:bt,itemRef:on.itemRef,form:On,feedbackIcons:ut}),[Ye,Lt,jt,Ut,un,Kt,bt,On,ut]);V.useImperativeHandle(dt,()=>On);const $n=(Qn,An)=>{if(Qn){let kn={block:"nearest"};typeof Qn=="object"&&(kn=Qn),On.scrollToField(An,kn)}},Sn=Qn=>{if(Bt==null||Bt(Qn),Qn.errorFields.length){const An=Qn.errorFields[0].name;if(zn!==void 0){$n(zn,An);return}rt&&rt.scrollToFirstError!==void 0&&$n(rt.scrollToFirstError,An)}};return nn(V.createElement(ee.n,{disabled:Pt},V.createElement(ye.q,{size:ct},V.createElement(_e.RV,Object.assign({},{validateMessages:Et}),V.createElement(_e.q3.Provider,{value:Xt},V.createElement($.default,Object.assign({id:Ye},yt,{name:Ye,onFinishFailed:Sn,form:On,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Qe),className:Rn})))))))};var Ft=V.forwardRef(st),cn=_(41799),Vt=_(8654),it=_(92343),At=_(11592);function oe($e){if(typeof $e=="function")return $e;const dt=(0,At.Z)($e);return dt.length<=1?dt[0]:dt}const me=()=>{const{status:$e,errors:dt=[],warnings:Tt=[]}=(0,V.useContext)(_e.aM);return{status:$e,errors:dt,warnings:Tt}};me.Context=_e.aM;var k=me,de=_(16089);function we($e){const[dt,Tt]=V.useState($e),Le=(0,V.useRef)(null),ve=(0,V.useRef)([]),rt=(0,V.useRef)(!1);V.useEffect(()=>(rt.current=!1,()=>{rt.current=!0,de.Z.cancel(Le.current),Le.current=null}),[]);function lt(Nt){rt.current||(Le.current===null&&(ve.current=[],Le.current=(0,de.Z)(()=>{Le.current=null,Tt(Rt=>{let zt=Rt;return ve.current.forEach(Pt=>{zt=Pt(zt)}),zt})})),ve.current.push(Nt))}return[dt,lt]}function L(){const{itemRef:$e}=V.useContext(_e.q3),dt=V.useRef({});function Tt(Le,ve){const rt=ve&&typeof ve=="object"&&ve.ref,lt=Le.join("_");return(dt.current.name!==lt||dt.current.originRef!==rt)&&(dt.current.name=lt,dt.current.originRef=rt,dt.current.ref=(0,Vt.sQ)($e(Le),rt)),dt.current.ref}return Tt}var T=_(29194),O=_(34280),ue=_(2738),he=_(27382),Z=_(37028);const De=$e=>{const{formItemCls:dt}=$e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${dt}-control`]:{display:"flex"}}}};var Ue=(0,c.b)(["Form","item-item"],($e,dt)=>{let{rootPrefixCls:Tt}=dt;const Le=X($e,Tt);return[De(Le)]}),Ne=$e=>{const{prefixCls:dt,status:Tt,wrapperCol:Le,children:ve,errors:rt,warnings:lt,_internalItemRender:Nt,extra:Rt,help:zt,fieldId:Pt,marginBottom:Wt,onErrorVisibleChanged:ln}=$e,Lt=`${dt}-item`,ft=V.useContext(_e.q3),jt=Le||ft.wrapperCol||{},Ut=te()(`${Lt}-control`,jt.className),Zt=V.useMemo(()=>Object.assign({},ft),[ft]);delete Zt.labelCol,delete Zt.wrapperCol;const un=V.createElement("div",{className:`${Lt}-control-input`},V.createElement("div",{className:`${Lt}-control-input-content`},ve)),zn=V.useMemo(()=>({prefixCls:dt,status:Tt}),[dt,Tt]),gn=Wt!==null||rt.length||lt.length?V.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},V.createElement(_e.Rk.Provider,{value:zn},V.createElement(q,{fieldId:Pt,errors:rt,warnings:lt,help:zt,helpStatus:Tt,className:`${Lt}-explain-connected`,onVisibleChanged:ln})),!!Wt&&V.createElement("div",{style:{width:0,height:Wt}})):null,Bt={};Pt&&(Bt.id=`${Pt}_extra`);const Ye=Rt?V.createElement("div",Object.assign({},Bt,{className:`${Lt}-extra`}),Rt):null,Qe=Nt&&Nt.mark==="pro_table_render"&&Nt.render?Nt.render($e,{input:un,errorList:gn,extra:Ye}):V.createElement(V.Fragment,null,un,gn,Ye);return V.createElement(_e.q3.Provider,{value:Zt},V.createElement(Z.Z,Object.assign({},jt,{className:Ut}),Qe),V.createElement(Ue,{prefixCls:dt}))},We=_(61485),Xe=_(31724),qe=_(9763),ht=_(6848),St=function($e,dt){var Tt={};for(var Le in $e)Object.prototype.hasOwnProperty.call($e,Le)&&dt.indexOf(Le)<0&&(Tt[Le]=$e[Le]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Le=Object.getOwnPropertySymbols($e);ve<Le.length;ve++)dt.indexOf(Le[ve])<0&&Object.prototype.propertyIsEnumerable.call($e,Le[ve])&&(Tt[Le[ve]]=$e[Le[ve]]);return Tt};function _t($e){return $e?typeof $e=="object"&&!V.isValidElement($e)?$e:{title:$e}:null}var Ct=$e=>{let{prefixCls:dt,label:Tt,htmlFor:Le,labelCol:ve,labelAlign:rt,colon:lt,required:Nt,requiredMark:Rt,tooltip:zt}=$e;var Pt;const[Wt]=(0,qe.Z)("Form"),{vertical:ln,labelAlign:Lt,labelCol:ft,labelWrap:jt,colon:Ut}=V.useContext(_e.q3);if(!Tt)return null;const Zt=ve||ft||{},un=rt||Lt,zn=`${dt}-item-label`,gn=te()(zn,un==="left"&&`${zn}-left`,Zt.className,{[`${zn}-wrap`]:!!jt});let Bt=Tt;const Ye=lt===!0||Ut!==!1&<!==!1;Ye&&!ln&&typeof Tt=="string"&&Tt.trim()!==""&&(Bt=Tt.replace(/[:|:]\s*$/,""));const ut=_t(zt);if(ut){const{icon:bt=V.createElement(We.Z,null)}=ut,Kt=St(ut,["icon"]),Qt=V.createElement(ht.Z,Object.assign({},Kt),V.cloneElement(bt,{className:`${dt}-item-tooltip`,title:""}));Bt=V.createElement(V.Fragment,null,Bt,Qt)}const yt=Rt==="optional",ct=typeof Rt=="function";ct?Bt=Rt(Bt,{required:!!Nt}):yt&&!Nt&&(Bt=V.createElement(V.Fragment,null,Bt,V.createElement("span",{className:`${dt}-item-optional`,title:""},(Wt==null?void 0:Wt.optional)||((Pt=Xe.Z.Form)===null||Pt===void 0?void 0:Pt.optional))));const Et=te()({[`${dt}-item-required`]:Nt,[`${dt}-item-required-mark-optional`]:yt||ct,[`${dt}-item-no-colon`]:!Ye});return V.createElement(Z.Z,Object.assign({},Zt,{className:gn}),V.createElement("label",{htmlFor:Le,className:Et,title:typeof Tt=="string"?Tt:""},Bt))},y=_(29679),C=_(19248),ot=_(96512),W=_(58617);const Ce={success:y.Z,warning:ot.Z,error:C.Z,validating:W.Z};function yn($e){let{children:dt,errors:Tt,warnings:Le,hasFeedback:ve,validateStatus:rt,prefixCls:lt,meta:Nt,noStyle:Rt}=$e;const zt=`${lt}-item`,{feedbackIcons:Pt}=V.useContext(_e.q3),Wt=tt(Tt,Le,Nt,null,!!ve,rt),{isFormItemInput:ln,status:Lt}=V.useContext(_e.aM),ft=V.useMemo(()=>{var jt;let Ut;if(ve){const zn=ve!==!0&&ve.icons||Pt,gn=Wt&&((jt=zn==null?void 0:zn({status:Wt,errors:Tt,warnings:Le}))===null||jt===void 0?void 0:jt[Wt]),Bt=Wt&&Ce[Wt];Ut=gn!==!1&&Bt?V.createElement("span",{className:te()(`${zt}-feedback-icon`,`${zt}-feedback-icon-${Wt}`)},gn||V.createElement(Bt,null)):null}let Zt=!0,un=Wt||"";return Rt&&(Zt=ln,un=(Wt!=null?Wt:Lt)||""),{status:un,errors:Tt,warnings:Le,hasFeedback:!!ve,feedbackIcon:Ut,isFormItemInput:Zt}},[Wt,ve,Rt,ln,Lt]);return V.createElement(_e.aM.Provider,{value:ft},dt)}var Me=function($e,dt){var Tt={};for(var Le in $e)Object.prototype.hasOwnProperty.call($e,Le)&&dt.indexOf(Le)<0&&(Tt[Le]=$e[Le]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Le=Object.getOwnPropertySymbols($e);ve<Le.length;ve++)dt.indexOf(Le[ve])<0&&Object.prototype.propertyIsEnumerable.call($e,Le[ve])&&(Tt[Le[ve]]=$e[Le[ve]]);return Tt};function Ke($e){const{prefixCls:dt,className:Tt,rootClassName:Le,style:ve,help:rt,errors:lt,warnings:Nt,validateStatus:Rt,meta:zt,hasFeedback:Pt,hidden:Wt,children:ln,fieldId:Lt,required:ft,isRequired:jt,onSubItemMetaChange:Ut}=$e,Zt=Me($e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),un=`${dt}-item`,{requiredMark:zn}=V.useContext(_e.q3),gn=V.useRef(null),Bt=Ee(lt),Ye=Ee(Nt),Qe=rt!=null,ut=!!(Qe||lt.length||Nt.length),yt=!!gn.current&&(0,T.Z)(gn.current),[ct,Et]=V.useState(null);(0,O.Z)(()=>{if(ut&&gn.current){const Cn=getComputedStyle(gn.current);Et(parseInt(Cn.marginBottom,10))}},[ut,yt]);const bt=Cn=>{Cn||Et(null)},Qt=function(){let Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Rn=Cn?Bt:zt.errors,On=Cn?Ye:zt.warnings;return tt(Rn,On,zt,"",!!Pt,Rt)}(),nn=te()(un,Tt,Le,{[`${un}-with-help`]:Qe||Bt.length||Ye.length,[`${un}-has-feedback`]:Qt&&Pt,[`${un}-has-success`]:Qt==="success",[`${un}-has-warning`]:Qt==="warning",[`${un}-has-error`]:Qt==="error",[`${un}-is-validating`]:Qt==="validating",[`${un}-hidden`]:Wt});return V.createElement("div",{className:nn,style:ve,ref:gn},V.createElement(he.Z,Object.assign({className:`${un}-row`},(0,ue.Z)(Zt,["_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"])),V.createElement(Ct,Object.assign({htmlFor:Lt},$e,{requiredMark:zn,required:ft!=null?ft:jt,prefixCls:dt})),V.createElement(Ne,Object.assign({},$e,zt,{errors:Bt,warnings:Ye,prefixCls:dt,status:Qt,help:rt,marginBottom:ct,onErrorVisibleChanged:bt}),V.createElement(_e.qI.Provider,{value:Ut},V.createElement(yn,{prefixCls:dt,meta:zt,errors:zt.errors,warnings:zt.warnings,hasFeedback:Pt,validateStatus:Qt},ln)))),!!ct&&V.createElement("div",{className:`${un}-margin-offset`,style:{marginBottom:-ct}}))}const Ze="__SPLIT__",J=null,fe=V.memo($e=>{let{children:dt}=$e;return dt},($e,dt)=>$e.value===dt.value&&$e.update===dt.update&&$e.childProps.length===dt.childProps.length&&$e.childProps.every((Tt,Le)=>Tt===dt.childProps[Le]));function Te($e){return $e!=null}function Be(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function G($e){const{name:dt,noStyle:Tt,className:Le,dependencies:ve,prefixCls:rt,shouldUpdate:lt,rules:Nt,children:Rt,required:zt,label:Pt,messageVariables:Wt,trigger:ln="onChange",validateTrigger:Lt,hidden:ft,help:jt}=$e,{getPrefixCls:Ut}=V.useContext(ae.E_),{name:Zt}=V.useContext(_e.q3),un=oe(Rt),zn=typeof un=="function",gn=V.useContext(_e.qI),{validateTrigger:Bt}=V.useContext($.FieldContext),Ye=Lt!==void 0?Lt:Bt,Qe=Te(dt),ut=Ut("form",rt),[yt,ct]=ge(ut),Et=V.useContext($.ListContext),bt=V.useRef(),[Kt,Qt]=we({}),[nn,Cn]=(0,cn.Z)(()=>Be()),Rn=An=>{const kn=Et==null?void 0:Et.getKey(An.name);if(Cn(An.destroy?Be():An,!0),Tt&&jt!==!1&&gn){let Kn=An.name;if(An.destroy)Kn=bt.current||Kn;else if(kn!==void 0){const[In,qn]=kn;Kn=[In].concat((0,P.Z)(qn)),bt.current=Kn}gn(An,Kn)}},On=(An,kn)=>{Qt(Kn=>{const In=Object.assign({},Kn),fr=[].concat((0,P.Z)(An.name.slice(0,-1)),(0,P.Z)(kn)).join(Ze);return An.destroy?delete In[fr]:In[fr]=An,In})},[on,Xt]=V.useMemo(()=>{const An=(0,P.Z)(nn.errors),kn=(0,P.Z)(nn.warnings);return Object.values(Kt).forEach(Kn=>{An.push.apply(An,(0,P.Z)(Kn.errors||[])),kn.push.apply(kn,(0,P.Z)(Kn.warnings||[]))}),[An,kn]},[Kt,nn.errors,nn.warnings]),$n=L();function Sn(An,kn,Kn){return Tt&&!ft?V.createElement(yn,{prefixCls:ut,hasFeedback:$e.hasFeedback,validateStatus:$e.validateStatus,meta:nn,errors:on,warnings:Xt,noStyle:!0},An):V.createElement(Ke,Object.assign({key:"row"},$e,{className:te()(Le,ct),prefixCls:ut,fieldId:kn,isRequired:Kn,errors:on,warnings:Xt,meta:nn,onSubItemMetaChange:On}),An)}if(!Qe&&!zn&&!ve)return yt(Sn(un));let Qn={};return typeof Pt=="string"?Qn.label=Pt:dt&&(Qn.label=String(dt)),Wt&&(Qn=Object.assign(Object.assign({},Qn),Wt)),yt(V.createElement($.Field,Object.assign({},$e,{messageVariables:Qn,trigger:ln,validateTrigger:Ye,onMetaChange:Rn}),(An,kn,Kn)=>{const In=be(dt).length&&kn?kn.name:[],qn=Ve(In,Zt),fr=zt!==void 0?zt:!!(Nt&&Nt.some(ze=>{if(ze&&typeof ze=="object"&&ze.required&&!ze.warningOnly)return!0;if(typeof ze=="function"){const fn=ze(Kn);return fn&&fn.required&&!fn.warningOnly}return!1})),Tn=Object.assign({},An);let Jt=null;if(Array.isArray(un)&&Qe)Jt=un;else if(!(zn&&(!(lt||ve)||Qe))){if(!(ve&&!zn&&!Qe))if((0,it.l$)(un)){const ze=Object.assign(Object.assign({},un.props),Tn);if(ze.id||(ze.id=qn),jt||on.length>0||Xt.length>0||$e.extra){const Vn=[];(jt||on.length>0)&&Vn.push(`${qn}_help`),$e.extra&&Vn.push(`${qn}_extra`),ze["aria-describedby"]=Vn.join(" ")}on.length>0&&(ze["aria-invalid"]="true"),fr&&(ze["aria-required"]="true"),(0,Vt.Yr)(un)&&(ze.ref=$n(In,un)),new Set([].concat((0,P.Z)(be(ln)),(0,P.Z)(be(Ye)))).forEach(Vn=>{ze[Vn]=function(){for(var Yn,rr,sr,Un,ar,vn=arguments.length,en=new Array(vn),Dn=0;Dn<vn;Dn++)en[Dn]=arguments[Dn];(sr=Tn[Vn])===null||sr===void 0||(Yn=sr).call.apply(Yn,[Tn].concat(en)),(ar=(Un=un.props)[Vn])===null||ar===void 0||(rr=ar).call.apply(rr,[Un].concat(en))}});const Pn=[ze["aria-required"],ze["aria-invalid"],ze["aria-describedby"]];Jt=V.createElement(fe,{value:Tn[$e.valuePropName||"value"],update:un,childProps:Pn},(0,it.Tm)(un,ze))}else zn&&(lt||ve)&&!Qe?Jt=un(Kn):Jt=un}return Sn(Jt,qn,fr)}))}const Ot=G;Ot.useStatus=k;var Pe=Ot,Yt=function($e,dt){var Tt={};for(var Le in $e)Object.prototype.hasOwnProperty.call($e,Le)&&dt.indexOf(Le)<0&&(Tt[Le]=$e[Le]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Le=Object.getOwnPropertySymbols($e);ve<Le.length;ve++)dt.indexOf(Le[ve])<0&&Object.prototype.propertyIsEnumerable.call($e,Le[ve])&&(Tt[Le[ve]]=$e[Le[ve]]);return Tt},wn=$e=>{var{prefixCls:dt,children:Tt}=$e,Le=Yt($e,["prefixCls","children"]);const{getPrefixCls:ve}=V.useContext(ae.E_),rt=ve("form",dt),lt=V.useMemo(()=>({prefixCls:rt,status:"error"}),[rt]);return V.createElement($.List,Object.assign({},Le),(Nt,Rt,zt)=>V.createElement(_e.Rk.Provider,{value:lt},Tt(Nt.map(Pt=>Object.assign(Object.assign({},Pt),{fieldKey:Pt.key})),Rt,{errors:zt.errors,warnings:zt.warnings})))};function Hn(){const{form:$e}=(0,V.useContext)(_e.q3);return $e}const $t=Ft;$t.Item=Pe,$t.List=wn,$t.ErrorList=q,$t.useForm=et,$t.useFormInstance=Hn,$t.useWatch=$.useWatch,$t.Provider=_e.RV,$t.create=()=>{};var qt=$t},8628:function(rn,nt,_){"use strict";var P=_(59301),N=_(34280),te=_(56762),Re=_(69507);function V(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const _e=(0,P.useRef)({}),Ee=(0,te.Z)(),o=(0,Re.ZP)();return(0,N.Z)(()=>{const R=o.subscribe(M=>{_e.current=M,ce&&Ee()});return()=>o.unsubscribe(R)},[]),_e.current}nt.Z=V},9432:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return F},n:function(){return se}});var P=_(19248),N=_(92310),te=_.n(N),Re=_(93681),V=_(8654),ce=_(59301),_e=_(19080),Ee=_(36355),o=_(1684),R=_(19716),M=_(32441),g=_(33234),c=_(59412),w=_(9937);function v(H){return!!(H.prefix||H.suffix||H.allowClear)}var Y=function(H,ne){var b={};for(var A in H)Object.prototype.hasOwnProperty.call(H,A)&&ne.indexOf(A)<0&&(b[A]=H[A]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,A=Object.getOwnPropertySymbols(H);B<A.length;B++)ne.indexOf(A[B])<0&&Object.prototype.propertyIsEnumerable.call(H,A[B])&&(b[A[B]]=H[A[B]]);return b};function se(H,ne){if(!H)return;H.focus(ne);const{cursor:b}=ne||{};if(b){const A=H.value.length;switch(b){case"start":H.setSelectionRange(0,0);break;case"end":H.setSelectionRange(A,A);break;default:H.setSelectionRange(0,A);break}}}var F=(0,ce.forwardRef)((H,ne)=>{var b;const{prefixCls:A,bordered:B=!0,status:X,size:ge,disabled:Ie,onBlur:Oe,onFocus:He,suffix:q,allowClear:$,addonAfter:ae,addonBefore:ee,className:ye,style:re,styles:x,rootClassName:S,onChange:Q,classNames:be}=H,Ve=Y(H,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:tt,direction:Je,input:et}=ce.useContext(Ee.E_),xt=tt("input",A),gt=(0,ce.useRef)(null),[st,kt]=(0,w.ZP)(xt),{compactSize:Ft,compactItemClassnames:cn}=(0,g.ri)(xt,Je),Vt=(0,R.Z)(Ue=>{var Ae;return(Ae=ge!=null?ge:Ft)!==null&&Ae!==void 0?Ae:Ue}),it=ce.useContext(o.Z),At=Ie!=null?Ie:it,{status:oe,hasFeedback:me,feedbackIcon:k}=(0,ce.useContext)(M.aM),de=(0,_e.F)(oe,X),we=v(H)||!!me,L=(0,ce.useRef)(we);(0,ce.useEffect)(()=>{var Ue;we&&L.current,L.current=we},[we]);const T=(0,c.Z)(gt,!0),O=Ue=>{T(),Oe==null||Oe(Ue)},ue=Ue=>{T(),He==null||He(Ue)},he=Ue=>{T(),Q==null||Q(Ue)},Z=(me||q)&&ce.createElement(ce.Fragment,null,q,me&&k);let De;return typeof $=="object"&&($!=null&&$.clearIcon)?De=$:$&&(De={clearIcon:ce.createElement(P.Z,null)}),st(ce.createElement(Re.default,Object.assign({ref:(0,V.sQ)(ne,gt),prefixCls:xt,autoComplete:et==null?void 0:et.autoComplete},Ve,{disabled:At,onBlur:O,onFocus:ue,style:Object.assign(Object.assign({},et==null?void 0:et.style),re),styles:Object.assign(Object.assign({},et==null?void 0:et.styles),x),suffix:Z,allowClear:De,className:te()(ye,S,cn,et==null?void 0:et.className),onChange:he,addonAfter:ae&&ce.createElement(g.BR,null,ce.createElement(M.Ux,{override:!0,status:!0},ae)),addonBefore:ee&&ce.createElement(g.BR,null,ce.createElement(M.Ux,{override:!0,status:!0},ee)),classNames:Object.assign(Object.assign(Object.assign({},be),et==null?void 0:et.classNames),{input:te()({[`${xt}-sm`]:Vt==="small",[`${xt}-lg`]:Vt==="large",[`${xt}-rtl`]:Je==="rtl",[`${xt}-borderless`]:!B},!we&&(0,_e.Z)(xt,de),be==null?void 0:be.input,(b=et==null?void 0:et.classNames)===null||b===void 0?void 0:b.input,kt)}),classes:{affixWrapper:te()({[`${xt}-affix-wrapper-sm`]:Vt==="small",[`${xt}-affix-wrapper-lg`]:Vt==="large",[`${xt}-affix-wrapper-rtl`]:Je==="rtl",[`${xt}-affix-wrapper-borderless`]:!B},(0,_e.Z)(`${xt}-affix-wrapper`,de,me),kt),wrapper:te()({[`${xt}-group-rtl`]:Je==="rtl"},kt),group:te()({[`${xt}-group-wrapper-sm`]:Vt==="small",[`${xt}-group-wrapper-lg`]:Vt==="large",[`${xt}-group-wrapper-rtl`]:Je==="rtl",[`${xt}-group-wrapper-disabled`]:At},(0,_e.Z)(`${xt}-group-wrapper`,de,me),kt)}})))})},1643:function(rn,nt,_){"use strict";var P=_(19248),N=_(92310),te=_.n(N),Re=_(9296),V=_(59301),ce=_(19080),_e=_(36355),Ee=_(1684),o=_(19716),R=_(32441),M=_(9432),g=_(9937),c=function(v,Y){var se={};for(var K in v)Object.prototype.hasOwnProperty.call(v,K)&&Y.indexOf(K)<0&&(se[K]=v[K]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,K=Object.getOwnPropertySymbols(v);F<K.length;F++)Y.indexOf(K[F])<0&&Object.prototype.propertyIsEnumerable.call(v,K[F])&&(se[K[F]]=v[K[F]]);return se};const w=(0,V.forwardRef)((v,Y)=>{const{prefixCls:se,bordered:K=!0,size:F,disabled:H,status:ne,allowClear:b,showCount:A,classNames:B,rootClassName:X,className:ge}=v,Ie=c(v,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Oe,direction:He}=V.useContext(_e.E_),q=(0,o.Z)(F),$=V.useContext(Ee.Z),ae=H!=null?H:$,{status:ee,hasFeedback:ye,feedbackIcon:re}=V.useContext(R.aM),x=(0,ce.F)(ee,ne),S=V.useRef(null);V.useImperativeHandle(Y,()=>{var Je;return{resizableTextArea:(Je=S.current)===null||Je===void 0?void 0:Je.resizableTextArea,focus:et=>{var xt,gt;(0,M.n)((gt=(xt=S.current)===null||xt===void 0?void 0:xt.resizableTextArea)===null||gt===void 0?void 0:gt.textArea,et)},blur:()=>{var et;return(et=S.current)===null||et===void 0?void 0:et.blur()}}});const Q=Oe("input",se);let be;typeof b=="object"&&(b!=null&&b.clearIcon)?be=b:b&&(be={clearIcon:V.createElement(P.Z,null)});const[Ve,tt]=(0,g.ZP)(Q);return Ve(V.createElement(Re.default,Object.assign({},Ie,{disabled:ae,allowClear:be,className:te()(ge,X),classes:{affixWrapper:te()(`${Q}-textarea-affix-wrapper`,{[`${Q}-affix-wrapper-rtl`]:He==="rtl",[`${Q}-affix-wrapper-borderless`]:!K,[`${Q}-affix-wrapper-sm`]:q==="small",[`${Q}-affix-wrapper-lg`]:q==="large",[`${Q}-textarea-show-count`]:A},(0,ce.Z)(`${Q}-affix-wrapper`,x),tt)},classNames:Object.assign(Object.assign({},B),{textarea:te()({[`${Q}-borderless`]:!K,[`${Q}-sm`]:q==="small",[`${Q}-lg`]:q==="large"},(0,ce.Z)(Q,x),tt,B==null?void 0:B.textarea)}),prefixCls:Q,suffix:ye&&V.createElement("span",{className:`${Q}-textarea-suffix`},re),showCount:A,ref:S})))});nt.Z=w},59412:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return N}});var P=_(59301);function N(te,Re){const V=(0,P.useRef)([]),ce=()=>{V.current.push(setTimeout(()=>{var _e,Ee,o,R;!((_e=te.current)===null||_e===void 0)&&_e.input&&((Ee=te.current)===null||Ee===void 0?void 0:Ee.input.getAttribute("type"))==="password"&&(!((o=te.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((R=te.current)===null||R===void 0||R.input.removeAttribute("value"))}))};return(0,P.useEffect)(()=>(Re&&ce(),()=>V.current.forEach(_e=>{_e&&clearTimeout(_e)})),[]),ce}},92832:function(rn,nt,_){"use strict";_.d(nt,{default:function(){return q}});var P=_(92310),N=_.n(P),te=_(59301),Re=_(36355),V=_(32441),ce=_(9937),Ee=$=>{const{getPrefixCls:ae,direction:ee}=(0,te.useContext)(Re.E_),{prefixCls:ye,className:re}=$,x=ae("input-group",ye),S=ae("input"),[Q,be]=(0,ce.ZP)(S),Ve=N()(x,{[`${x}-lg`]:$.size==="large",[`${x}-sm`]:$.size==="small",[`${x}-compact`]:$.compact,[`${x}-rtl`]:ee==="rtl"},be,re),tt=(0,te.useContext)(V.aM),Je=(0,te.useMemo)(()=>Object.assign(Object.assign({},tt),{isFormItemInput:!1}),[tt]);return Q(te.createElement("span",{className:Ve,style:$.style,onMouseEnter:$.onMouseEnter,onMouseLeave:$.onMouseLeave,onFocus:$.onFocus,onBlur:$.onBlur},te.createElement(V.aM.Provider,{value:Je},$.children)))},o=_(9432),R=_(73331),M=_(15277),g=_(2738),c=_(8654),w=_(59412),v=function($,ae){var ee={};for(var ye in $)Object.prototype.hasOwnProperty.call($,ye)&&ae.indexOf(ye)<0&&(ee[ye]=$[ye]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,ye=Object.getOwnPropertySymbols($);re<ye.length;re++)ae.indexOf(ye[re])<0&&Object.prototype.propertyIsEnumerable.call($,ye[re])&&(ee[ye[re]]=$[ye[re]]);return ee};const Y=$=>$?te.createElement(M.Z,null):te.createElement(R.Z,null),se={click:"onClick",hover:"onMouseOver"};var F=te.forwardRef(($,ae)=>{const{visibilityToggle:ee=!0}=$,ye=typeof ee=="object"&&ee.visible!==void 0,[re,x]=(0,te.useState)(()=>ye?ee.visible:!1),S=(0,te.useRef)(null);te.useEffect(()=>{ye&&x(ee.visible)},[ye,ee]);const Q=(0,w.Z)(S),be=()=>{const{disabled:At}=$;At||(re&&Q(),x(oe=>{var me;const k=!oe;return typeof ee=="object"&&((me=ee.onVisibleChange)===null||me===void 0||me.call(ee,k)),k}))},Ve=At=>{const{action:oe="click",iconRender:me=Y}=$,k=se[oe]||"",de=me(re),we={[k]:be,className:`${At}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault()},onMouseUp:L=>{L.preventDefault()}};return te.cloneElement(te.isValidElement(de)?de:te.createElement("span",null,de),we)},{className:tt,prefixCls:Je,inputPrefixCls:et,size:xt}=$,gt=v($,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:st}=te.useContext(Re.E_),kt=st("input",et),Ft=st("input-password",Je),cn=ee&&Ve(Ft),Vt=N()(Ft,tt,{[`${Ft}-${xt}`]:!!xt}),it=Object.assign(Object.assign({},(0,g.Z)(gt,["suffix","iconRender","visibilityToggle"])),{type:re?"text":"password",className:Vt,prefixCls:kt,suffix:cn});return xt&&(it.size=xt),te.createElement(o.Z,Object.assign({ref:(0,c.sQ)(ae,S)},it))}),H=_(47472),ne=_(92343),b=_(3113),A=_(19716),B=_(33234),X=function($,ae){var ee={};for(var ye in $)Object.prototype.hasOwnProperty.call($,ye)&&ae.indexOf(ye)<0&&(ee[ye]=$[ye]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,ye=Object.getOwnPropertySymbols($);re<ye.length;re++)ae.indexOf(ye[re])<0&&Object.prototype.propertyIsEnumerable.call($,ye[re])&&(ee[ye[re]]=$[ye[re]]);return ee},Ie=te.forwardRef(($,ae)=>{const{prefixCls:ee,inputPrefixCls:ye,className:re,size:x,suffix:S,enterButton:Q=!1,addonAfter:be,loading:Ve,disabled:tt,onSearch:Je,onChange:et,onCompositionStart:xt,onCompositionEnd:gt}=$,st=X($,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:kt,direction:Ft}=te.useContext(Re.E_),cn=te.useRef(!1),Vt=kt("input-search",ee),it=kt("input",ye),{compactSize:At}=(0,B.ri)(Vt,Ft),oe=(0,A.Z)(Ne=>{var We;return(We=x!=null?x:At)!==null&&We!==void 0?We:Ne}),me=te.useRef(null),k=Ne=>{Ne&&Ne.target&&Ne.type==="click"&&Je&&Je(Ne.target.value,Ne,{source:"clear"}),et&&et(Ne)},de=Ne=>{var We;document.activeElement===((We=me.current)===null||We===void 0?void 0:We.input)&&Ne.preventDefault()},we=Ne=>{var We,Xe;Je&&Je((Xe=(We=me.current)===null||We===void 0?void 0:We.input)===null||Xe===void 0?void 0:Xe.value,Ne,{source:"input"})},L=Ne=>{cn.current||Ve||we(Ne)},T=typeof Q=="boolean"?te.createElement(H.Z,null):null,O=`${Vt}-button`;let ue;const he=Q||{},Z=he.type&&he.type.__ANT_BUTTON===!0;Z||he.type==="button"?ue=(0,ne.Tm)(he,Object.assign({onMouseDown:de,onClick:Ne=>{var We,Xe;(Xe=(We=he==null?void 0:he.props)===null||We===void 0?void 0:We.onClick)===null||Xe===void 0||Xe.call(We,Ne),we(Ne)},key:"enterButton"},Z?{className:O,size:oe}:{})):ue=te.createElement(b.ZP,{className:O,type:Q?"primary":void 0,size:oe,disabled:tt,key:"enterButton",onMouseDown:de,onClick:we,loading:Ve,icon:T},Q),be&&(ue=[ue,(0,ne.Tm)(be,{key:"addonAfter"})]);const De=N()(Vt,{[`${Vt}-rtl`]:Ft==="rtl",[`${Vt}-${oe}`]:!!oe,[`${Vt}-with-button`]:!!Q},re),Ue=Ne=>{cn.current=!0,xt==null||xt(Ne)},Ae=Ne=>{cn.current=!1,gt==null||gt(Ne)};return te.createElement(o.Z,Object.assign({ref:(0,c.sQ)(me,ae),onPressEnter:L},st,{size:oe,onCompositionStart:Ue,onCompositionEnd:Ae,prefixCls:it,addonAfter:ue,suffix:S,onChange:k,className:De,disabled:tt}))}),Oe=_(1643);const He=o.Z;He.Group=Ee,He.Search=Ie,He.TextArea=Oe.Z,He.Password=F;var q=He},9937:function(rn,nt,_){"use strict";_.d(nt,{M1:function(){return _e},TM:function(){return ne},Xy:function(){return Ee},bi:function(){return M},e5:function(){return H},ik:function(){return g},nz:function(){return V},pU:function(){return ce},s7:function(){return c},x0:function(){return R}});var P=_(17313),N=_(74207),te=_(37613),Re=_(83116);const V=b=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:b,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ce=b=>({borderColor:b.hoverBorderColor}),_e=b=>({borderColor:b.activeBorderColor,boxShadow:b.activeShadow,outline:0}),Ee=b=>({color:b.colorTextDisabled,backgroundColor:b.colorBgContainerDisabled,borderColor:b.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ce((0,te.TS)(b,{hoverBorderColor:b.colorBorder})))}),o=b=>{const{paddingBlockLG:A,fontSizeLG:B,lineHeightLG:X,borderRadiusLG:ge,paddingInlineLG:Ie}=b;return{padding:`${A}px ${Ie}px`,fontSize:B,lineHeight:X,borderRadius:ge}},R=b=>({padding:`${b.paddingBlockSM}px ${b.paddingInlineSM}px`,borderRadius:b.borderRadiusSM}),M=(b,A)=>{const{componentCls:B,colorError:X,colorWarning:ge,errorActiveShadow:Ie,warningActiveShadow:Oe,colorErrorBorderHover:He,colorWarningBorderHover:q}=b;return{[`&-status-error:not(${A}-disabled):not(${A}-borderless)${A}`]:{borderColor:X,"&:hover":{borderColor:He},"&:focus, &-focused":Object.assign({},_e((0,te.TS)(b,{activeBorderColor:X,activeShadow:Ie}))),[`${B}-prefix, ${B}-suffix`]:{color:X}},[`&-status-warning:not(${A}-disabled):not(${A}-borderless)${A}`]:{borderColor:ge,"&:hover":{borderColor:q},"&:focus, &-focused":Object.assign({},_e((0,te.TS)(b,{activeBorderColor:ge,activeShadow:Oe}))),[`${B}-prefix, ${B}-suffix`]:{color:ge}}}},g=b=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${b.paddingBlock}px ${b.paddingInline}px`,color:b.colorText,fontSize:b.fontSize,lineHeight:b.lineHeight,backgroundColor:b.colorBgContainer,backgroundImage:"none",borderWidth:b.lineWidth,borderStyle:b.lineType,borderColor:b.colorBorder,borderRadius:b.borderRadius,transition:`all ${b.motionDurationMid}`},V(b.colorTextPlaceholder)),{"&:hover":Object.assign({},ce(b)),"&:focus, &-focused":Object.assign({},_e(b)),"&-disabled, &[disabled]":Object.assign({},Ee(b)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:b.controlHeight,lineHeight:b.lineHeight,verticalAlign:"bottom",transition:`all ${b.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(b)),"&-sm":Object.assign({},R(b)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),c=b=>{const{componentCls:A,antCls:B}=b;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:b.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${A}, &-lg > ${A}-group-addon`]:Object.assign({},o(b)),[`&-sm ${A}, &-sm > ${A}-group-addon`]:Object.assign({},R(b)),[`&-lg ${B}-select-single ${B}-select-selector`]:{height:b.controlHeightLG},[`&-sm ${B}-select-single ${B}-select-selector`]:{height:b.controlHeightSM},[`> ${A}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${A}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${b.paddingInline}px`,color:b.colorText,fontWeight:"normal",fontSize:b.fontSize,textAlign:"center",backgroundColor:b.colorFillAlter,border:`${b.lineWidth}px ${b.lineType} ${b.colorBorder}`,borderRadius:b.borderRadius,transition:`all ${b.motionDurationSlow}`,lineHeight:1,[`${B}-select`]:{margin:`-${b.paddingBlock+1}px -${b.paddingInline}px`,[`&${B}-select-single:not(${B}-select-customize-input)`]:{[`${B}-select-selector`]:{backgroundColor:"inherit",border:`${b.lineWidth}px ${b.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${B}-select-selector`]:{color:b.colorPrimary}}},[`${B}-cascader-picker`]:{margin:`-9px -${b.paddingInline}px`,backgroundColor:"transparent",[`${B}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${A}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${A}-search-with-button &`]:{zIndex:0}}},[`> ${A}:first-child, ${A}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${B}-select ${B}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${A}-affix-wrapper`]:{[`&:not(:first-child) ${A}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${A}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${A}:last-child, ${A}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${B}-select ${B}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${A}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${A}-search &`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius}},[`&:not(:first-child), ${A}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${A}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,P.dF)()),{[`${A}-group-addon, ${A}-group-wrap, > ${A}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:b.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${A}-affix-wrapper,
|
|
|
& > ${A}-number-affix-wrapper,
|
|
|
& > ${B}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-b.lineWidth,borderInlineEndWidth:b.lineWidth},[`${A}`]:{float:"none"},[`& > ${B}-select > ${B}-select-selector,
|
|
|
& > ${B}-select-auto-complete ${A},
|
|
|
& > ${B}-cascader-picker ${A},
|
|
|
& > ${A}-group-wrapper ${A}`]:{borderInlineEndWidth:b.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${B}-select-focused`]:{zIndex:1},[`& > ${B}-select > ${B}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${B}-select:first-child > ${B}-select-selector,
|
|
|
& > ${B}-select-auto-complete:first-child ${A},
|
|
|
& > ${B}-cascader-picker:first-child ${A}`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius},[`& > *:last-child,
|
|
|
& > ${B}-select:last-child > ${B}-select-selector,
|
|
|
& > ${B}-cascader-picker:last-child ${A},
|
|
|
& > ${B}-cascader-picker-focused:last-child ${A}`]:{borderInlineEndWidth:b.lineWidth,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius},[`& > ${B}-select-auto-complete ${A}`]:{verticalAlign:"top"},[`${A}-group-wrapper + ${A}-group-wrapper`]:{marginInlineStart:-b.lineWidth,[`${A}-affix-wrapper`]:{borderRadius:0}},[`${A}-group-wrapper:not(:last-child)`]:{[`&${A}-search > ${A}-group`]:{[`& > ${A}-group-addon > ${A}-search-button`]:{borderRadius:0},[`& > ${A}`]:{borderStartStartRadius:b.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b.borderRadius}}}})}},w=b=>{const{componentCls:A,controlHeightSM:B,lineWidth:X}=b,Ie=(B-X*2-16)/2;return{[A]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,P.Wf)(b)),g(b)),M(b,A)),{'&[type="color"]':{height:b.controlHeight,[`&${A}-lg`]:{height:b.controlHeightLG},[`&${A}-sm`]:{height:B,paddingTop:Ie,paddingBottom:Ie}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},v=b=>{const{componentCls:A}=b;return{[`${A}-clear-icon`]:{margin:0,color:b.colorTextQuaternary,fontSize:b.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${b.motionDurationSlow}`,"&:hover":{color:b.colorTextTertiary},"&:active":{color:b.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${b.inputAffixPadding}px`}}}},Y=b=>{const{componentCls:A,inputAffixPadding:B,colorTextDescription:X,motionDurationSlow:ge,colorIcon:Ie,colorIconHover:Oe,iconCls:He}=b;return{[`${A}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g(b)),{display:"inline-flex",[`&:not(${A}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ce(b)),{zIndex:1,[`${A}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${A}[disabled]`]:{background:"transparent"}},[`> input${A}`]:{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"'},[`${A}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:b.paddingXS}},"&-show-count-suffix":{color:X},"&-show-count-has-suffix":{marginInlineEnd:b.paddingXXS},"&-prefix":{marginInlineEnd:B},"&-suffix":{marginInlineStart:B}}}),v(b)),{[`${He}${A}-password-icon`]:{color:Ie,cursor:"pointer",transition:`all ${ge}`,"&:hover":{color:Oe}}}),M(b,`${A}-affix-wrapper`))}},se=b=>{const{componentCls:A,colorError:B,colorWarning:X,borderRadiusLG:ge,borderRadiusSM:Ie}=b;return{[`${A}-group`]:Object.assign(Object.assign(Object.assign({},(0,P.Wf)(b)),c(b)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${A}-group-addon`]:{borderRadius:ge,fontSize:b.fontSizeLG}},"&-sm":{[`${A}-group-addon`]:{borderRadius:Ie}},"&-status-error":{[`${A}-group-addon`]:{color:B,borderColor:B}},"&-status-warning":{[`${A}-group-addon`]:{color:X,borderColor:X}},"&-disabled":{[`${A}-group-addon`]:Object.assign({},Ee(b))},[`&:not(${A}-compact-first-item):not(${A}-compact-last-item)${A}-compact-item`]:{[`${A}, ${A}-group-addon`]:{borderRadius:0}},[`&:not(${A}-compact-last-item)${A}-compact-first-item`]:{[`${A}, ${A}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${A}-compact-first-item)${A}-compact-last-item`]:{[`${A}, ${A}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},K=b=>{const{componentCls:A,antCls:B}=b,X=`${A}-search`;return{[X]:{[`${A}`]:{"&:hover, &:focus":{borderColor:b.colorPrimaryHover,[`+ ${A}-group-addon ${X}-button:not(${B}-btn-primary)`]:{borderInlineStartColor:b.colorPrimaryHover}}},[`${A}-affix-wrapper`]:{borderRadius:0},[`${A}-lg`]:{lineHeight:b.lineHeightLG-2e-4},[`> ${A}-group`]:{[`> ${A}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${X}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${X}-button:not(${B}-btn-primary)`]:{color:b.colorTextDescription,"&:hover":{color:b.colorPrimaryHover},"&:active":{color:b.colorPrimaryActive},[`&${B}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${X}-button`]:{height:b.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${X}-button`]:{height:b.controlHeightLG},[`&-small ${X}-button`]:{height:b.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${A}-compact-item`]:{[`&:not(${A}-compact-last-item)`]:{[`${A}-group-addon`]:{[`${A}-search-button`]:{marginInlineEnd:-b.lineWidth,borderRadius:0}}},[`&:not(${A}-compact-first-item)`]:{[`${A},${A}-affix-wrapper`]:{borderRadius:0}},[`> ${A}-group-addon ${A}-search-button,
|
|
|
> ${A},
|
|
|
${A}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${A}-affix-wrapper-focused`]:{zIndex:2}}}}},F=b=>{const{componentCls:A,paddingLG:B}=b,X=`${A}-textarea`;return{[X]:{position:"relative","&-show-count":{[`> ${A}`]:{height:"100%"},[`${A}-data-count`]:{position:"absolute",bottom:-b.fontSize*b.lineHeight,insetInlineEnd:0,color:b.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${A}`]:{paddingInlineEnd:B}},[`&-affix-wrapper${X}-has-feedback`]:{[`${A}`]:{paddingInlineEnd:B}},[`&-affix-wrapper${A}-affix-wrapper`]:{padding:0,[`> textarea${A}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${A}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${A}-clear-icon`]:{position:"absolute",insetInlineEnd:b.paddingXS,insetBlockStart:b.paddingXS},[`${X}-suffix`]:{position:"absolute",top:0,insetInlineEnd:b.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function H(b){return(0,te.TS)(b,{inputAffixPadding:b.paddingXXS})}const ne=b=>{const{controlHeight:A,fontSize:B,lineHeight:X,lineWidth:ge,controlHeightSM:Ie,controlHeightLG:Oe,fontSizeLG:He,lineHeightLG:q,paddingSM:$,controlPaddingHorizontalSM:ae,controlPaddingHorizontal:ee,colorFillAlter:ye,colorPrimaryHover:re,controlOutlineWidth:x,controlOutline:S,colorErrorOutline:Q,colorWarningOutline:be}=b;return{paddingBlock:Math.max(Math.round((A-B*X)/2*10)/10-ge,3),paddingBlockSM:Math.max(Math.round((Ie-B*X)/2*10)/10-ge,0),paddingBlockLG:Math.ceil((Oe-He*q)/2*10)/10-ge,paddingInline:$-ge,paddingInlineSM:ae-ge,paddingInlineLG:ee-ge,addonBg:ye,activeBorderColor:re,hoverBorderColor:re,activeShadow:`0 0 0 ${x}px ${S}`,errorActiveShadow:`0 0 0 ${x}px ${Q}`,warningActiveShadow:`0 0 0 ${x}px ${be}`}};nt.ZP=(0,Re.Z)("Input",b=>{const A=(0,te.TS)(b,H(b));return[w(A),F(A),Y(A),se(A),K(A),(0,N.c)(A)]},ne)},45818:function(rn,nt,_){"use strict";_.d(nt,{D:function(){return H},Z:function(){return A}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Re=te,V=_(7657),ce=function(X,ge){return N.createElement(V.Z,(0,P.Z)({},X,{ref:ge,icon:Re}))},_e=N.forwardRef(ce),Ee=_e,o=_(33853),R=_(38819),M=_(92310),g=_.n(M),c=_(2738),v=B=>!isNaN(parseFloat(B))&&isFinite(B),Y=_(36355),se=_(84966),K=function(B,X){var ge={};for(var Ie in B)Object.prototype.hasOwnProperty.call(B,Ie)&&X.indexOf(Ie)<0&&(ge[Ie]=B[Ie]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ie=Object.getOwnPropertySymbols(B);Oe<Ie.length;Oe++)X.indexOf(Ie[Oe])<0&&Object.prototype.propertyIsEnumerable.call(B,Ie[Oe])&&(ge[Ie[Oe]]=B[Ie[Oe]]);return ge};const F={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},H=N.createContext({}),ne=(()=>{let B=0;return function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return B+=1,`${X}${B}`}})();var A=N.forwardRef((B,X)=>{const{prefixCls:ge,className:Ie,trigger:Oe,children:He,defaultCollapsed:q=!1,theme:$="dark",style:ae={},collapsible:ee=!1,reverseArrow:ye=!1,width:re=200,collapsedWidth:x=80,zeroWidthTriggerStyle:S,breakpoint:Q,onCollapse:be,onBreakpoint:Ve}=B,tt=K(B,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Je}=(0,N.useContext)(se.Gs),[et,xt]=(0,N.useState)("collapsed"in B?B.collapsed:q),[gt,st]=(0,N.useState)(!1);(0,N.useEffect)(()=>{"collapsed"in B&&xt(B.collapsed)},[B.collapsed]);const kt=(oe,me)=>{"collapsed"in B||xt(oe),be==null||be(oe,me)},Ft=(0,N.useRef)();Ft.current=oe=>{st(oe.matches),Ve==null||Ve(oe.matches),et!==oe.matches&&kt(oe.matches,"responsive")},(0,N.useEffect)(()=>{function oe(k){return Ft.current(k)}let me;if(typeof window!="undefined"){const{matchMedia:k}=window;if(k&&Q&&Q in F){me=k(`(max-width: ${F[Q]})`);try{me.addEventListener("change",oe)}catch(de){me.addListener(oe)}oe(me)}}return()=>{try{me==null||me.removeEventListener("change",oe)}catch(k){me==null||me.removeListener(oe)}}},[Q]),(0,N.useEffect)(()=>{const oe=ne("ant-sider-");return Je.addSider(oe),()=>Je.removeSider(oe)},[]);const cn=()=>{kt(!et,"clickTrigger")},{getPrefixCls:Vt}=(0,N.useContext)(Y.E_),it=()=>{const oe=Vt("layout-sider",ge),me=(0,c.Z)(tt,["collapsed"]),k=et?x:re,de=v(k)?`${k}px`:String(k),we=parseFloat(String(x||0))===0?N.createElement("span",{onClick:cn,className:g()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ye?"right":"left"}`),style:S},Oe||N.createElement(Ee,null)):null,O={expanded:ye?N.createElement(R.Z,null):N.createElement(o.Z,null),collapsed:ye?N.createElement(o.Z,null):N.createElement(R.Z,null)}[et?"collapsed":"expanded"],ue=Oe!==null?we||N.createElement("div",{className:`${oe}-trigger`,onClick:cn,style:{width:de}},Oe||O):null,he=Object.assign(Object.assign({},ae),{flex:`0 0 ${de}`,maxWidth:de,minWidth:de,width:de}),Z=g()(oe,`${oe}-${$}`,{[`${oe}-collapsed`]:!!et,[`${oe}-has-trigger`]:ee&&Oe!==null&&!we,[`${oe}-below`]:!!gt,[`${oe}-zero-width`]:parseFloat(de)===0},Ie);return N.createElement("aside",Object.assign({className:Z},me,{style:he,ref:X}),N.createElement("div",{className:`${oe}-children`},He),ee||gt&&we?ue:null)},At=N.useMemo(()=>({siderCollapsed:et}),[et]);return N.createElement(H.Provider,{value:At},it())})},44e3:function(rn,nt,_){"use strict";var P=_(84966),N=_(45818);const te=P.ZP;te.Header=P.h4,te.Footer=P.$_,te.Content=P.VY,te.Sider=N.Z,nt.default=te},84966:function(rn,nt,_){"use strict";_.d(nt,{VY:function(){return H},$_:function(){return F},h4:function(){return K},Gs:function(){return c},ZP:function(){return ne}});var P=_(19127),N=_(92310),te=_.n(N),Re=_(2738),V=_(59301),ce=_(36355),_e=_(83116),o=b=>{const{componentCls:A,bodyBg:B,lightSiderBg:X,lightTriggerBg:ge,lightTriggerColor:Ie}=b;return{[`${A}-sider-light`]:{background:X,[`${A}-sider-trigger`]:{color:Ie,background:ge},[`${A}-sider-zero-width-trigger`]:{color:Ie,background:ge,border:`1px solid ${B}`,borderInlineStart:0}}}};const R=b=>{const{antCls:A,componentCls:B,colorText:X,triggerColor:ge,footerBg:Ie,triggerBg:Oe,headerHeight:He,headerPadding:q,headerColor:$,footerPadding:ae,triggerHeight:ee,zeroTriggerHeight:ye,zeroTriggerWidth:re,motionDurationMid:x,motionDurationSlow:S,fontSize:Q,borderRadius:be,bodyBg:Ve,headerBg:tt,siderBg:Je}=b;return{[B]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{boxSizing:"border-box"},[`&${B}-has-sider`]:{flexDirection:"row",[`> ${B}, > ${B}-content`]:{width:0}},[`${B}-header, &${B}-footer`]:{flex:"0 0 auto"},[`${B}-sider`]:{position:"relative",minWidth:0,background:Je,transition:`all ${x}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${A}-menu${A}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ee},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ee,color:ge,lineHeight:`${ee}px`,textAlign:"center",background:Oe,cursor:"pointer",transition:`all ${x}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:He,insetInlineEnd:-re,zIndex:1,width:re,height:ye,color:ge,fontSize:b.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Je,borderStartStartRadius:0,borderStartEndRadius:be,borderEndEndRadius:be,borderEndStartRadius:0,cursor:"pointer",transition:`background ${S} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${S}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-re,borderStartStartRadius:be,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:be}}}}},o(b)),{"&-rtl":{direction:"rtl"}}),[`${B}-header`]:{height:He,padding:q,color:$,lineHeight:`${He}px`,background:tt,[`${A}-menu`]:{lineHeight:"inherit"}},[`${B}-footer`]:{padding:ae,color:X,fontSize:Q,background:Ie},[`${B}-content`]:{flex:"auto",minHeight:0}}};var M=(0,_e.Z)("Layout",b=>[R(b)],b=>{const{colorBgLayout:A,controlHeight:B,controlHeightLG:X,colorText:ge,controlHeightSM:Ie,marginXXS:Oe,colorTextLightSolid:He,colorBgContainer:q}=b,$=X*1.25;return{colorBgHeader:"#001529",colorBgBody:A,colorBgTrigger:"#002140",bodyBg:A,headerBg:"#001529",headerHeight:B*2,headerPadding:`0 ${$}px`,headerColor:ge,footerPadding:`${Ie}px ${$}px`,footerBg:A,siderBg:"#001529",triggerHeight:X+Oe*2,triggerBg:"#002140",triggerColor:He,zeroTriggerWidth:X,zeroTriggerHeight:X,lightSiderBg:q,lightTriggerBg:q,lightTriggerColor:ge}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),g=function(b,A){var B={};for(var X in b)Object.prototype.hasOwnProperty.call(b,X)&&A.indexOf(X)<0&&(B[X]=b[X]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,X=Object.getOwnPropertySymbols(b);ge<X.length;ge++)A.indexOf(X[ge])<0&&Object.prototype.propertyIsEnumerable.call(b,X[ge])&&(B[X[ge]]=b[X[ge]]);return B};const c=V.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function w(b){let{suffixCls:A,tagName:B,displayName:X}=b;return ge=>V.forwardRef((Oe,He)=>V.createElement(ge,Object.assign({ref:He,suffixCls:A,tagName:B},Oe)))}const v=V.forwardRef((b,A)=>{const{prefixCls:B,suffixCls:X,className:ge,tagName:Ie}=b,Oe=g(b,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:He}=V.useContext(ce.E_),q=He("layout",B),[$,ae]=M(q),ee=X?`${q}-${X}`:q;return $(V.createElement(Ie,Object.assign({className:te()(B||ee,ge,ae),ref:A},Oe)))}),Y=V.forwardRef((b,A)=>{const{direction:B}=V.useContext(ce.E_),[X,ge]=V.useState([]),{prefixCls:Ie,className:Oe,rootClassName:He,children:q,hasSider:$,tagName:ae,style:ee}=b,ye=g(b,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),re=(0,Re.Z)(ye,["suffixCls"]),{getPrefixCls:x,layout:S}=V.useContext(ce.E_),Q=x("layout",Ie),[be,Ve]=M(Q),tt=te()(Q,{[`${Q}-has-sider`]:typeof $=="boolean"?$:X.length>0,[`${Q}-rtl`]:B==="rtl"},S==null?void 0:S.className,Oe,He,Ve),Je=V.useMemo(()=>({siderHook:{addSider:et=>{ge(xt=>[].concat((0,P.Z)(xt),[et]))},removeSider:et=>{ge(xt=>xt.filter(gt=>gt!==et))}}}),[]);return be(V.createElement(c.Provider,{value:Je},V.createElement(ae,Object.assign({ref:A,className:tt,style:Object.assign(Object.assign({},S==null?void 0:S.style),ee)},re),q)))}),se=w({tagName:"div",displayName:"Layout"})(Y),K=w({suffixCls:"header",tagName:"header",displayName:"Header"})(v),F=w({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(v),H=w({suffixCls:"content",tagName:"main",displayName:"Content"})(v);var ne=se},40875:function(rn,nt,_){"use strict";_.d(nt,{J:function(){return ce}});var P=_(59301),N=_(33234),te=_(70425),Re=function(_e,Ee){var o={};for(var R in _e)Object.prototype.hasOwnProperty.call(_e,R)&&Ee.indexOf(R)<0&&(o[R]=_e[R]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,R=Object.getOwnPropertySymbols(_e);M<R.length;M++)Ee.indexOf(R[M])<0&&Object.prototype.propertyIsEnumerable.call(_e,R[M])&&(o[R[M]]=_e[R[M]]);return o};const V=P.createContext(null),ce=P.forwardRef((_e,Ee)=>{const{children:o}=_e,R=Re(_e,["children"]),M=P.useContext(V),g=P.useMemo(()=>Object.assign(Object.assign({},M),R),[M,R.prefixCls,R.mode,R.selectable]);return P.createElement(V.Provider,{value:g},P.createElement(N.BR,null,(0,te.supportNodeRef)(o)?P.cloneElement(o,{ref:Ee}):o))});nt.Z=V},20834:function(rn,nt,_){"use strict";_.d(nt,{default:function(){return At}});var P=_(15285),N=_(59301),te=_(45818),Re=_(92310),V=_.n(Re),ce=_(36355),_e=function(oe,me){var k={};for(var de in oe)Object.prototype.hasOwnProperty.call(oe,de)&&me.indexOf(de)<0&&(k[de]=oe[de]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,de=Object.getOwnPropertySymbols(oe);we<de.length;we++)me.indexOf(de[we])<0&&Object.prototype.propertyIsEnumerable.call(oe,de[we])&&(k[de[we]]=oe[de[we]]);return k},o=oe=>{const{prefixCls:me,className:k,dashed:de}=oe,we=_e(oe,["prefixCls","className","dashed"]),{getPrefixCls:L}=N.useContext(ce.E_),T=L("menu",me),O=V()({[`${T}-item-divider-dashed`]:!!de},k);return N.createElement(P.iz,Object.assign({className:O},we))},R=_(11592),M=_(2738),g=_(6848),c=_(92343),v=(0,N.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),se=oe=>{var me;const{className:k,children:de,icon:we,title:L,danger:T}=oe,{prefixCls:O,firstLevel:ue,direction:he,disableMenuItemTitleTooltip:Z,inlineCollapsed:De}=N.useContext(v),Ue=ht=>{const St=N.createElement("span",{className:`${O}-title-content`},de);return(!we||(0,c.l$)(de)&&de.type==="span")&&de&&ht&&ue&&typeof de=="string"?N.createElement("div",{className:`${O}-inline-collapsed-noicon`},de.charAt(0)):St},{siderCollapsed:Ae}=N.useContext(te.D);let Ne=L;typeof L=="undefined"?Ne=ue?de:"":L===!1&&(Ne="");const We={title:Ne};!Ae&&!De&&(We.title=null,We.open=!1);const Xe=(0,R.Z)(de).length;let qe=N.createElement(P.ck,Object.assign({},(0,M.Z)(oe,["title","icon","danger"]),{className:V()({[`${O}-item-danger`]:T,[`${O}-item-only-child`]:(we?Xe+1:Xe)===1},k),title:typeof L=="string"?L:void 0}),(0,c.Tm)(we,{className:V()((0,c.l$)(we)?(me=we.props)===null||me===void 0?void 0:me.className:"",`${O}-item-icon`)}),Ue(De));return Z||(qe=N.createElement(g.Z,Object.assign({},We,{placement:he==="rtl"?"left":"right",overlayClassName:`${O}-inline-collapsed-tooltip`}),qe)),qe},F=oe=>{var me;const{popupClassName:k,icon:de,title:we,theme:L}=oe,T=N.useContext(v),{prefixCls:O,inlineCollapsed:ue,theme:he}=T,Z=(0,P.Xl)();let De;if(!de)De=ue&&!Z.length&&we&&typeof we=="string"?N.createElement("div",{className:`${O}-inline-collapsed-noicon`},we.charAt(0)):N.createElement("span",{className:`${O}-title-content`},we);else{const Ae=(0,c.l$)(we)&&we.type==="span";De=N.createElement(N.Fragment,null,(0,c.Tm)(de,{className:V()((0,c.l$)(de)?(me=de.props)===null||me===void 0?void 0:me.className:"",`${O}-item-icon`)}),Ae?we:N.createElement("span",{className:`${O}-title-content`},we))}const Ue=N.useMemo(()=>Object.assign(Object.assign({},T),{firstLevel:!1}),[T]);return N.createElement(v.Provider,{value:Ue},N.createElement(P.Wd,Object.assign({},(0,M.Z)(oe,["icon"]),{title:De,popupClassName:V()(O,k,`${O}-${L||he}`)})))},H=_(18785),ne=_(70425),b=_(62892),A=_(40875),B=function(oe,me){var k={};for(var de in oe)Object.prototype.hasOwnProperty.call(oe,de)&&me.indexOf(de)<0&&(k[de]=oe[de]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,de=Object.getOwnPropertySymbols(oe);we<de.length;we++)me.indexOf(de[we])<0&&Object.prototype.propertyIsEnumerable.call(oe,de[we])&&(k[de[we]]=oe[de[we]]);return k};function X(oe){return(oe||[]).map((me,k)=>{if(me&&typeof me=="object"){const de=me,{label:we,children:L,key:T,type:O}=de,ue=B(de,["label","children","key","type"]),he=T!=null?T:`tmp-${k}`;return L||O==="group"?O==="group"?N.createElement(P.BW,Object.assign({key:he},ue,{title:we}),X(L)):N.createElement(F,Object.assign({key:he},ue,{title:we}),X(L)):O==="divider"?N.createElement(o,Object.assign({key:he},ue)):N.createElement(se,Object.assign({key:he},ue),we)}return null}).filter(me=>me)}function ge(oe){return N.useMemo(()=>oe&&X(oe),[oe])}var Ie=_(64993),Oe=_(17313),He=_(8378),q=_(13826),$=_(29878),ae=_(83116),ee=_(37613),re=oe=>{const{componentCls:me,motionDurationSlow:k,horizontalLineHeight:de,colorSplit:we,lineWidth:L,lineType:T,itemPaddingInline:O}=oe;return{[`${me}-horizontal`]:{lineHeight:de,border:0,borderBottom:`${L}px ${T} ${we}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${me}-item, ${me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:O},[`> ${me}-item:hover,
|
|
|
> ${me}-item-active,
|
|
|
> ${me}-submenu ${me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${me}-item, ${me}-submenu-title`]:{transition:[`border-color ${k}`,`background ${k}`].join(",")},[`${me}-submenu-arrow`]:{display:"none"}}}},S=oe=>{let{componentCls:me,menuArrowOffset:k}=oe;return{[`${me}-rtl`]:{direction:"rtl"},[`${me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${me}-rtl${me}-vertical,
|
|
|
${me}-submenu-rtl ${me}-vertical`]:{[`${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${k})`},"&::after":{transform:`rotate(45deg) translateY(${k})`}}}}};const Q=oe=>Object.assign({},(0,Oe.oN)(oe));var Ve=(oe,me)=>{const{componentCls:k,itemColor:de,itemSelectedColor:we,groupTitleColor:L,itemBg:T,subMenuItemBg:O,itemSelectedBg:ue,activeBarHeight:he,activeBarWidth:Z,activeBarBorderWidth:De,motionDurationSlow:Ue,motionEaseInOut:Ae,motionEaseOut:Ne,itemPaddingInline:We,motionDurationMid:Xe,itemHoverColor:qe,lineType:ht,colorSplit:St,itemDisabledColor:_t,dangerItemColor:It,dangerItemHoverColor:Ct,dangerItemSelectedColor:y,dangerItemActiveBg:C,dangerItemSelectedBg:ot,itemHoverBg:W,itemActiveBg:Ce,menuSubMenuBg:yn,horizontalItemSelectedColor:Me,horizontalItemSelectedBg:Ke,horizontalItemBorderRadius:Ze,horizontalItemHoverBg:J,popupBg:fe}=oe;return{[`${k}-${me}, ${k}-${me} > ${k}`]:{color:de,background:T,[`&${k}-root:focus-visible`]:Object.assign({},Q(oe)),[`${k}-item-group-title`]:{color:L},[`${k}-submenu-selected`]:{[`> ${k}-submenu-title`]:{color:we}},[`${k}-item-disabled, ${k}-submenu-disabled`]:{color:`${_t} !important`},[`${k}-item:not(${k}-item-selected):not(${k}-submenu-selected)`]:{[`&:hover, > ${k}-submenu-title:hover`]:{color:qe}},[`&:not(${k}-horizontal)`]:{[`${k}-item:not(${k}-item-selected)`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:Ce}},[`${k}-submenu-title`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:Ce}}},[`${k}-item-danger`]:{color:It,[`&${k}-item:hover`]:{[`&:not(${k}-item-selected):not(${k}-submenu-selected)`]:{color:Ct}},[`&${k}-item:active`]:{background:C}},[`${k}-item a`]:{"&, &:hover":{color:"inherit"}},[`${k}-item-selected`]:{color:we,[`&${k}-item-danger`]:{color:y},"a, a:hover":{color:"inherit"}},[`& ${k}-item-selected`]:{backgroundColor:ue,[`&${k}-item-danger`]:{backgroundColor:ot}},[`${k}-item, ${k}-submenu-title`]:{[`&:not(${k}-item-disabled):focus-visible`]:Object.assign({},Q(oe))},[`&${k}-submenu > ${k}`]:{backgroundColor:yn},[`&${k}-popup > ${k}`]:{backgroundColor:fe},[`&${k}-horizontal`]:Object.assign(Object.assign({},me==="dark"?{borderBottom:0}:{}),{[`> ${k}-item, > ${k}-submenu`]:{top:De,marginTop:-De,marginBottom:0,borderRadius:Ze,"&::after":{position:"absolute",insetInline:We,bottom:0,borderBottom:`${he}px solid transparent`,transition:`border-color ${Ue} ${Ae}`,content:'""'},"&:hover, &-active, &-open":{background:J,"&::after":{borderBottomWidth:he,borderBottomColor:Me}},"&-selected":{color:Me,backgroundColor:Ke,"&:hover":{backgroundColor:Ke},"&::after":{borderBottomWidth:he,borderBottomColor:Me}}}}),[`&${k}-root`]:{[`&${k}-inline, &${k}-vertical`]:{borderInlineEnd:`${De}px ${ht} ${St}`}},[`&${k}-inline`]:{[`${k}-sub${k}-inline`]:{background:O},[`${k}-item, ${k}-submenu-title`]:De&&Z?{width:`calc(100% + ${De}px)`}:{},[`${k}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Z}px solid ${we}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Xe} ${Ne}`,`opacity ${Xe} ${Ne}`].join(","),content:'""'},[`&${k}-item-danger`]:{"&::after":{borderInlineEndColor:y}}},[`${k}-selected, ${k}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Xe} ${Ae}`,`opacity ${Xe} ${Ae}`].join(",")}}}}}};const tt=oe=>{const{componentCls:me,itemHeight:k,itemMarginInline:de,padding:we,menuArrowSize:L,marginXS:T,itemMarginBlock:O}=oe,ue=we+L+T;return{[`${me}-item`]:{position:"relative",overflow:"hidden"},[`${me}-item, ${me}-submenu-title`]:{height:k,lineHeight:`${k}px`,paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:de,marginBlock:O,width:`calc(100% - ${de*2}px)`},[`> ${me}-item,
|
|
|
> ${me}-submenu > ${me}-submenu-title`]:{height:k,lineHeight:`${k}px`},[`${me}-item-group-list ${me}-submenu-title,
|
|
|
${me}-submenu-title`]:{paddingInlineEnd:ue}}};var et=oe=>{const{componentCls:me,iconCls:k,itemHeight:de,colorTextLightSolid:we,dropdownWidth:L,controlHeightLG:T,motionDurationMid:O,motionEaseOut:ue,paddingXL:he,itemMarginInline:Z,fontSizeLG:De,motionDurationSlow:Ue,paddingXS:Ae,boxShadowSecondary:Ne,collapsedWidth:We,collapsedIconSize:Xe}=oe,qe={height:de,lineHeight:`${de}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[me]:{"&-inline, &-vertical":Object.assign({[`&${me}-root`]:{boxShadow:"none"}},tt(oe))},[`${me}-submenu-popup`]:{[`${me}-vertical`]:Object.assign(Object.assign({},tt(oe)),{boxShadow:Ne})}},{[`${me}-submenu-popup ${me}-vertical${me}-sub`]:{minWidth:L,maxHeight:`calc(100vh - ${T*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${me}-inline`]:{width:"100%",[`&${me}-root`]:{[`${me}-item, ${me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ue}`,`background ${Ue}`,`padding ${O} ${ue}`].join(","),[`> ${me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${me}-sub${me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${me}-submenu > ${me}-submenu-title`]:qe,[`& ${me}-item-group-title`]:{paddingInlineStart:he}},[`${me}-item`]:qe}},{[`${me}-inline-collapsed`]:{width:We,[`&${me}-root`]:{[`${me}-item, ${me}-submenu ${me}-submenu-title`]:{[`> ${me}-inline-collapsed-noicon`]:{fontSize:De,textAlign:"center"}}},[`> ${me}-item,
|
|
|
> ${me}-item-group > ${me}-item-group-list > ${me}-item,
|
|
|
> ${me}-item-group > ${me}-item-group-list > ${me}-submenu > ${me}-submenu-title,
|
|
|
> ${me}-submenu > ${me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${De/2}px - ${Z}px)`,textOverflow:"clip",[`
|
|
|
${me}-submenu-arrow,
|
|
|
${me}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${me}-item-icon, ${k}`]:{margin:0,fontSize:Xe,lineHeight:`${de}px`,"+ span":{display:"inline-block",opacity:0}}},[`${me}-item-icon, ${k}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${me}-item-icon, ${k}`]:{display:"none"},"a, a:hover":{color:we}},[`${me}-item-group-title`]:Object.assign(Object.assign({},Oe.vS),{paddingInline:Ae})}}]};const xt=oe=>{const{componentCls:me,motionDurationSlow:k,motionDurationMid:de,motionEaseInOut:we,motionEaseOut:L,iconCls:T,iconSize:O,iconMarginInlineEnd:ue}=oe;return{[`${me}-item, ${me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${k}`,`background ${k}`,`padding ${k} ${we}`].join(","),[`${me}-item-icon, ${T}`]:{minWidth:O,fontSize:O,transition:[`font-size ${de} ${L}`,`margin ${k} ${we}`,`color ${k}`].join(","),"+ span":{marginInlineStart:ue,opacity:1,transition:[`opacity ${k} ${we}`,`margin ${k}`,`color ${k}`].join(",")}},[`${me}-item-icon`]:Object.assign({},(0,Oe.Ro)()),[`&${me}-item-only-child`]:{[`> ${T}, > ${me}-item-icon`]:{marginInlineEnd:0}}},[`${me}-item-disabled, ${me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gt=oe=>{const{componentCls:me,motionDurationSlow:k,motionEaseInOut:de,borderRadius:we,menuArrowSize:L,menuArrowOffset:T}=oe;return{[`${me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:oe.margin,width:L,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${k} ${de}, opacity ${k}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:L*.6,height:L*.15,backgroundColor:"currentcolor",borderRadius:we,transition:[`background ${k} ${de}`,`transform ${k} ${de}`,`top ${k} ${de}`,`color ${k} ${de}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${T})`},"&::after":{transform:`rotate(-45deg) translateY(${T})`}}}}},st=oe=>{const{antCls:me,componentCls:k,fontSize:de,motionDurationSlow:we,motionDurationMid:L,motionEaseInOut:T,paddingXS:O,padding:ue,colorSplit:he,lineWidth:Z,zIndexPopup:De,borderRadiusLG:Ue,subMenuItemBorderRadius:Ae,menuArrowSize:Ne,menuArrowOffset:We,lineType:Xe,menuPanelMaskInset:qe,groupTitleLineHeight:ht,groupTitleFontSize:St}=oe;return[{"":{[`${k}`]:Object.assign(Object.assign({},(0,Oe.dF)()),{"&-hidden":{display:"none"}})},[`${k}-submenu-hidden`]:{display:"none"}},{[k]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(oe)),(0,Oe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:de,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${we} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${k}-item`]:{flex:"none"}},[`${k}-item, ${k}-submenu, ${k}-submenu-title`]:{borderRadius:oe.itemBorderRadius},[`${k}-item-group-title`]:{padding:`${O}px ${ue}px`,fontSize:St,lineHeight:ht,transition:`all ${we}`},[`&-horizontal ${k}-submenu`]:{transition:[`border-color ${we} ${T}`,`background ${we} ${T}`].join(",")},[`${k}-submenu, ${k}-submenu-inline`]:{transition:[`border-color ${we} ${T}`,`background ${we} ${T}`,`padding ${L} ${T}`].join(",")},[`${k}-submenu ${k}-sub`]:{cursor:"initial",transition:[`background ${we} ${T}`,`padding ${we} ${T}`].join(",")},[`${k}-title-content`]:{transition:`color ${we}`},[`${k}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${k}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:he,borderStyle:Xe,borderWidth:0,borderTopWidth:Z,marginBlock:Z,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xt(oe)),{[`${k}-item-group`]:{[`${k}-item-group-list`]:{margin:0,padding:0,[`${k}-item, ${k}-submenu-title`]:{paddingInline:`${de*2}px ${ue}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:De,borderRadius:Ue,boxShadow:"none",transformOrigin:"0 0",[`&${k}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${qe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:qe},"\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:oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:oe.paddingXS},[`> ${k}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ue},xt(oe)),gt(oe)),{[`${k}-item, ${k}-submenu > ${k}-submenu-title`]:{borderRadius:Ae},[`${k}-submenu-title::after`]:{transition:`transform ${we} ${T}`}})}}),gt(oe)),{[`&-inline-collapsed ${k}-submenu-arrow,
|
|
|
&-inline ${k}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${We})`},"&::after":{transform:`rotate(45deg) translateX(-${We})`}},[`${k}-submenu-open${k}-submenu-inline > ${k}-submenu-title > ${k}-submenu-arrow`]:{transform:`translateY(-${Ne*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${We})`},"&::before":{transform:`rotate(45deg) translateX(${We})`}}})},{[`${me}-layout-header`]:{[k]:{lineHeight:"inherit"}}}]};var kt=(oe,me)=>(0,ae.Z)("Menu",de=>{if(me===!1)return[];const{colorBgElevated:we,colorPrimary:L,colorTextLightSolid:T,controlHeightLG:O,fontSize:ue,darkItemColor:he,darkDangerItemColor:Z,darkItemBg:De,darkSubMenuItemBg:Ue,darkItemSelectedColor:Ae,darkItemSelectedBg:Ne,darkDangerItemSelectedBg:We,darkItemHoverBg:Xe,darkGroupTitleColor:qe,darkItemHoverColor:ht,darkItemDisabledColor:St,darkDangerItemHoverColor:_t,darkDangerItemSelectedColor:It,darkDangerItemActiveBg:Ct}=de,y=ue/7*5,C=(0,ee.TS)(de,{menuArrowSize:y,menuHorizontalHeight:O*1.15,menuArrowOffset:`${y*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:we}),ot=(0,ee.TS)(C,{itemColor:he,itemHoverColor:ht,groupTitleColor:qe,itemSelectedColor:Ae,itemBg:De,popupBg:De,subMenuItemBg:Ue,itemActiveBg:"transparent",itemSelectedBg:Ne,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Xe,itemDisabledColor:St,dangerItemColor:Z,dangerItemHoverColor:_t,dangerItemSelectedColor:It,dangerItemActiveBg:Ct,dangerItemSelectedBg:We,menuSubMenuBg:Ue,horizontalItemSelectedColor:T,horizontalItemSelectedBg:L});return[st(C),re(C),et(C),Ve(C,"light"),Ve(ot,"dark"),S(C),(0,He.Z)(C),(0,q.oN)(C,"slide-up"),(0,q.oN)(C,"slide-down"),(0,$._y)(C,"zoom-big")]},de=>{const{colorPrimary:we,colorError:L,colorTextDisabled:T,colorErrorBg:O,colorText:ue,colorTextDescription:he,colorBgContainer:Z,colorFillAlter:De,colorFillContent:Ue,lineWidth:Ae,lineWidthBold:Ne,controlItemBgActive:We,colorBgTextHover:Xe,controlHeightLG:qe,lineHeight:ht,colorBgElevated:St,marginXXS:_t,padding:It,fontSize:Ct,controlHeightSM:y,fontSizeLG:C,colorTextLightSolid:ot,colorErrorHover:W}=de,Ce=new Ie.C(ot).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:de.zIndexPopupBase+50,radiusItem:de.borderRadiusLG,itemBorderRadius:de.borderRadiusLG,radiusSubMenuItem:de.borderRadiusSM,subMenuItemBorderRadius:de.borderRadiusSM,colorItemText:ue,itemColor:ue,colorItemTextHover:ue,itemHoverColor:ue,colorItemTextHoverHorizontal:we,horizontalItemHoverColor:we,colorGroupTitle:he,groupTitleColor:he,colorItemTextSelected:we,itemSelectedColor:we,colorItemTextSelectedHorizontal:we,horizontalItemSelectedColor:we,colorItemBg:Z,itemBg:Z,colorItemBgHover:Xe,itemHoverBg:Xe,colorItemBgActive:Ue,itemActiveBg:We,colorSubItemBg:De,subMenuItemBg:De,colorItemBgSelected:We,itemSelectedBg:We,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ne,activeBarHeight:Ne,colorActiveBarBorderSize:Ae,activeBarBorderWidth:Ae,colorItemTextDisabled:T,itemDisabledColor:T,colorDangerItemText:L,dangerItemColor:L,colorDangerItemTextHover:L,dangerItemHoverColor:L,colorDangerItemTextSelected:L,dangerItemSelectedColor:L,colorDangerItemBgActive:O,dangerItemActiveBg:O,colorDangerItemBgSelected:O,dangerItemSelectedBg:O,itemMarginInline:de.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:qe,groupTitleLineHeight:ht,collapsedWidth:qe*2,popupBg:St,itemMarginBlock:_t,itemPaddingInline:It,horizontalLineHeight:`${qe*1.15}px`,iconSize:Ct,iconMarginInlineEnd:y-Ct,collapsedIconSize:C,groupTitleFontSize:Ct,darkItemDisabledColor:new Ie.C(ot).setAlpha(.25).toRgbString(),darkItemColor:Ce,darkDangerItemColor:L,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ot,darkItemSelectedBg:we,darkDangerItemSelectedBg:L,darkItemHoverBg:"transparent",darkGroupTitleColor:Ce,darkItemHoverColor:ot,darkDangerItemHoverColor:W,darkDangerItemSelectedColor:ot,darkDangerItemActiveBg:L}},{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"]]})(oe),Ft=function(oe,me){var k={};for(var de in oe)Object.prototype.hasOwnProperty.call(oe,de)&&me.indexOf(de)<0&&(k[de]=oe[de]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,de=Object.getOwnPropertySymbols(oe);we<de.length;we++)me.indexOf(de[we])<0&&Object.prototype.propertyIsEnumerable.call(oe,de[we])&&(k[de[we]]=oe[de[we]]);return k},Vt=(0,N.forwardRef)((oe,me)=>{var k,de;const we=N.useContext(A.Z),L=we||{},{getPrefixCls:T,getPopupContainer:O,direction:ue,menu:he}=N.useContext(ce.E_),Z=T(),{prefixCls:De,className:Ue,style:Ae,theme:Ne="light",expandIcon:We,_internalDisableMenuItemTitleTooltip:Xe,inlineCollapsed:qe,siderCollapsed:ht,items:St,children:_t,rootClassName:It,mode:Ct,selectable:y,onClick:C,overflowedIndicatorPopupClassName:ot}=oe,W=Ft(oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ce=(0,M.Z)(W,["collapsedWidth"]),yn=ge(St)||_t;(k=L.validator)===null||k===void 0||k.call(L,{mode:Ct});const Me=(0,ne.useEvent)(function(){var mn;C==null||C.apply(void 0,arguments),(mn=L.onClick)===null||mn===void 0||mn.call(L)}),Ke=L.mode||Ct,Ze=y!=null?y:L.selectable,J=N.useMemo(()=>ht!==void 0?ht:qe,[qe,ht]),fe={horizontal:{motionName:`${Z}-slide-up`},inline:(0,b.Z)(Z),other:{motionName:`${Z}-zoom-big`}},Te=T("menu",De||L.prefixCls),[Be,G]=kt(Te,!we),Ot=V()(`${Te}-${Ne}`,he==null?void 0:he.className,Ue);let Pe;if(typeof We=="function")Pe=We;else if(We===null||We===!1)Pe=null;else if(L.expandIcon===null||L.expandIcon===!1)Pe=null;else{const mn=We!=null?We:L.expandIcon;Pe=(0,c.Tm)(mn,{className:V()(`${Te}-submenu-expand-icon`,(0,c.l$)(mn)?(de=mn.props)===null||de===void 0?void 0:de.className:"")})}const Yt=N.useMemo(()=>({prefixCls:Te,inlineCollapsed:J||!1,direction:ue,firstLevel:!0,theme:Ne,mode:Ke,disableMenuItemTitleTooltip:Xe}),[Te,J,ue,Xe,Ne]);return Be(N.createElement(A.Z.Provider,{value:null},N.createElement(v.Provider,{value:Yt},N.createElement(P.ZP,Object.assign({getPopupContainer:O,overflowedIndicator:N.createElement(H.Z,null),overflowedIndicatorPopupClassName:V()(Te,`${Te}-${Ne}`,ot),mode:Ke,selectable:Ze,onClick:Me},Ce,{inlineCollapsed:J,style:Object.assign(Object.assign({},he==null?void 0:he.style),Ae),className:Ot,prefixCls:Te,direction:ue,defaultMotions:fe,expandIcon:Pe,ref:me,rootClassName:V()(It,G)}),yn))))});const it=(0,N.forwardRef)((oe,me)=>{const k=(0,N.useRef)(null),de=N.useContext(te.D);return(0,N.useImperativeHandle)(me,()=>({menu:k.current,focus:we=>{var L;(L=k.current)===null||L===void 0||L.focus(we)}})),N.createElement(Vt,Object.assign({ref:k},oe,de))});it.Item=se,it.SubMenu=F,it.Divider=o,it.ItemGroup=P.BW;var At=it},58421:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return L}});var P=_(96663),N=_(59301),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Re=te,V=_(7657),ce=function(O,ue){return N.createElement(V.Z,(0,P.Z)({},O,{ref:ue,icon:Re}))},_e=N.forwardRef(ce),Ee=_e,o=_(49198),R=_(33853),M=_(38819),g=_(92310),c=_.n(g),w=_(90493),v=_(44127),Y=_(52884),se=_(95727),K=_(65711),F=_(85745),H=_(26112),ne={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},b=ne,A=_(91735),B=function(T){(0,K.Z)(ue,T);var O=(0,F.Z)(ue);function ue(){var he;(0,Y.Z)(this,ue);for(var Z=arguments.length,De=new Array(Z),Ue=0;Ue<Z;Ue++)De[Ue]=arguments[Ue];return he=O.call.apply(O,[this].concat(De)),he.state={goInputText:""},he.getValidValue=function(){var Ae=he.state.goInputText;return!Ae||Number.isNaN(Ae)?void 0:Number(Ae)},he.buildOptionText=function(Ae){return"".concat(Ae," ").concat(he.props.locale.items_per_page)},he.changeSize=function(Ae){he.props.changeSize(Number(Ae))},he.handleChange=function(Ae){he.setState({goInputText:Ae.target.value})},he.handleBlur=function(Ae){var Ne=he.props,We=Ne.goButton,Xe=Ne.quickGo,qe=Ne.rootPrefixCls,ht=he.state.goInputText;We||ht===""||(he.setState({goInputText:""}),!(Ae.relatedTarget&&(Ae.relatedTarget.className.indexOf("".concat(qe,"-item-link"))>=0||Ae.relatedTarget.className.indexOf("".concat(qe,"-item"))>=0))&&Xe(he.getValidValue()))},he.go=function(Ae){var Ne=he.state.goInputText;Ne!==""&&(Ae.keyCode===b.ENTER||Ae.type==="click")&&(he.setState({goInputText:""}),he.props.quickGo(he.getValidValue()))},he}return(0,se.Z)(ue,[{key:"getPageSizeOptions",value:function(){var Z=this.props,De=Z.pageSize,Ue=Z.pageSizeOptions;return Ue.some(function(Ae){return Ae.toString()===De.toString()})?Ue:Ue.concat([De.toString()]).sort(function(Ae,Ne){var We=Number.isNaN(Number(Ae))?0:Number(Ae),Xe=Number.isNaN(Number(Ne))?0:Number(Ne);return We-Xe})}},{key:"render",value:function(){var Z=this,De=this.props,Ue=De.pageSize,Ae=De.locale,Ne=De.rootPrefixCls,We=De.changeSize,Xe=De.quickGo,qe=De.goButton,ht=De.selectComponentClass,St=De.buildOptionText,_t=De.selectPrefixCls,It=De.disabled,Ct=this.state.goInputText,y="".concat(Ne,"-options"),C=ht,ot=null,W=null,Ce=null;if(!We&&!Xe)return null;var yn=this.getPageSizeOptions();if(We&&C){var Me=yn.map(function(Ke,Ze){return N.createElement(C.Option,{key:Ze,value:Ke.toString()},(St||Z.buildOptionText)(Ke))});ot=N.createElement(C,{disabled:It,prefixCls:_t,showSearch:!1,className:"".concat(y,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ue||yn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ze){return Ze.parentNode},"aria-label":Ae.page_size,defaultOpen:!1},Me)}return Xe&&(qe&&(Ce=typeof qe=="boolean"?N.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:It,className:"".concat(y,"-quick-jumper-button")},Ae.jump_to_confirm):N.createElement("span",{onClick:this.go,onKeyUp:this.go},qe)),W=N.createElement("div",{className:"".concat(y,"-quick-jumper")},Ae.jump_to,N.createElement("input",{disabled:It,type:"text",value:Ct,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ae.page}),Ae.page,Ce)),N.createElement("li",{className:"".concat(y)},ot,W)}}]),ue}(N.Component);B.defaultProps={pageSizeOptions:["10","20","50","100"]};var X=B,ge=function(O){var ue,he=O.rootPrefixCls,Z=O.page,De=O.active,Ue=O.className,Ae=O.showTitle,Ne=O.onClick,We=O.onKeyPress,Xe=O.itemRender,qe="".concat(he,"-item"),ht=c()(qe,"".concat(qe,"-").concat(Z),(ue={},(0,w.Z)(ue,"".concat(qe,"-active"),De),(0,w.Z)(ue,"".concat(qe,"-disabled"),!Z),(0,w.Z)(ue,O.className,Ue),ue)),St=function(){Ne(Z)},_t=function(y){We(y,Ne,Z)},It=Xe(Z,"page",N.createElement("a",{rel:"nofollow"},Z));return It?N.createElement("li",{title:Ae?Z.toString():null,className:ht,onClick:St,onKeyPress:_t,tabIndex:0},It):null},Ie=ge;function Oe(){}function He(T){var O=Number(T);return typeof O=="number"&&!Number.isNaN(O)&&isFinite(O)&&Math.floor(O)===O}var q=function(O,ue,he){return he};function $(T,O,ue){var he=typeof T=="undefined"?O.pageSize:T;return Math.floor((ue.total-1)/he)+1}var ae=function(T){(0,K.Z)(ue,T);var O=(0,F.Z)(ue);function ue(he){var Z;(0,Y.Z)(this,ue),Z=O.call(this,he),Z.paginationNode=N.createRef(),Z.getJumpPrevPage=function(){return Math.max(1,Z.state.current-(Z.props.showLessItems?3:5))},Z.getJumpNextPage=function(){return Math.min($(void 0,Z.state,Z.props),Z.state.current+(Z.props.showLessItems?3:5))},Z.getItemIcon=function(We,Xe){var qe=Z.props.prefixCls,ht=We||N.createElement("button",{type:"button","aria-label":Xe,className:"".concat(qe,"-item-link")});return typeof We=="function"&&(ht=N.createElement(We,(0,v.Z)({},Z.props))),ht},Z.isValid=function(We){var Xe=Z.props.total;return He(We)&&We!==Z.state.current&&He(Xe)&&Xe>0},Z.shouldDisplayQuickJumper=function(){var We=Z.props,Xe=We.showQuickJumper,qe=We.total,ht=Z.state.pageSize;return qe<=ht?!1:Xe},Z.handleKeyDown=function(We){(We.keyCode===b.ARROW_UP||We.keyCode===b.ARROW_DOWN)&&We.preventDefault()},Z.handleKeyUp=function(We){var Xe=Z.getValidValue(We),qe=Z.state.currentInputValue;Xe!==qe&&Z.setState({currentInputValue:Xe}),We.keyCode===b.ENTER?Z.handleChange(Xe):We.keyCode===b.ARROW_UP?Z.handleChange(Xe-1):We.keyCode===b.ARROW_DOWN&&Z.handleChange(Xe+1)},Z.handleBlur=function(We){var Xe=Z.getValidValue(We);Z.handleChange(Xe)},Z.changePageSize=function(We){var Xe=Z.state.current,qe=$(We,Z.state,Z.props);Xe=Xe>qe?qe:Xe,qe===0&&(Xe=Z.state.current),typeof We=="number"&&("pageSize"in Z.props||Z.setState({pageSize:We}),"current"in Z.props||Z.setState({current:Xe,currentInputValue:Xe})),Z.props.onShowSizeChange(Xe,We),"onChange"in Z.props&&Z.props.onChange&&Z.props.onChange(Xe,We)},Z.handleChange=function(We){var Xe=Z.props,qe=Xe.disabled,ht=Xe.onChange,St=Z.state,_t=St.pageSize,It=St.current,Ct=St.currentInputValue;if(Z.isValid(We)&&!qe){var y=$(void 0,Z.state,Z.props),C=We;return We>y?C=y:We<1&&(C=1),"current"in Z.props||Z.setState({current:C}),C!==Ct&&Z.setState({currentInputValue:C}),ht(C,_t),C}return It},Z.prev=function(){Z.hasPrev()&&Z.handleChange(Z.state.current-1)},Z.next=function(){Z.hasNext()&&Z.handleChange(Z.state.current+1)},Z.jumpPrev=function(){Z.handleChange(Z.getJumpPrevPage())},Z.jumpNext=function(){Z.handleChange(Z.getJumpNextPage())},Z.hasPrev=function(){return Z.state.current>1},Z.hasNext=function(){return Z.state.current<$(void 0,Z.state,Z.props)},Z.runIfEnter=function(We,Xe){if(We.key==="Enter"||We.charCode===13){for(var qe=arguments.length,ht=new Array(qe>2?qe-2:0),St=2;St<qe;St++)ht[St-2]=arguments[St];Xe.apply(void 0,ht)}},Z.runIfEnterPrev=function(We){Z.runIfEnter(We,Z.prev)},Z.runIfEnterNext=function(We){Z.runIfEnter(We,Z.next)},Z.runIfEnterJumpPrev=function(We){Z.runIfEnter(We,Z.jumpPrev)},Z.runIfEnterJumpNext=function(We){Z.runIfEnter(We,Z.jumpNext)},Z.handleGoTO=function(We){(We.keyCode===b.ENTER||We.type==="click")&&Z.handleChange(Z.state.currentInputValue)},Z.renderPrev=function(We){var Xe=Z.props,qe=Xe.prevIcon,ht=Xe.itemRender,St=ht(We,"prev",Z.getItemIcon(qe,"prev page")),_t=!Z.hasPrev();return(0,N.isValidElement)(St)?(0,N.cloneElement)(St,{disabled:_t}):St},Z.renderNext=function(We){var Xe=Z.props,qe=Xe.nextIcon,ht=Xe.itemRender,St=ht(We,"next",Z.getItemIcon(qe,"next page")),_t=!Z.hasNext();return(0,N.isValidElement)(St)?(0,N.cloneElement)(St,{disabled:_t}):St};var De=he.onChange!==Oe,Ue="current"in he;Ue&&!De&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ae=he.defaultCurrent;"current"in he&&(Ae=he.current);var Ne=he.defaultPageSize;return"pageSize"in he&&(Ne=he.pageSize),Ae=Math.min(Ae,$(Ne,void 0,he)),Z.state={current:Ae,currentInputValue:Ae,pageSize:Ne},Z}return(0,se.Z)(ue,[{key:"componentDidUpdate",value:function(Z,De){var Ue=this.props.prefixCls;if(De.current!==this.state.current&&this.paginationNode.current){var Ae=this.paginationNode.current.querySelector(".".concat(Ue,"-item-").concat(De.current));if(Ae&&document.activeElement===Ae){var Ne;Ae==null||(Ne=Ae.blur)===null||Ne===void 0||Ne.call(Ae)}}}},{key:"getValidValue",value:function(Z){var De=Z.target.value,Ue=$(void 0,this.state,this.props),Ae=this.state.currentInputValue,Ne;return De===""?Ne=De:Number.isNaN(Number(De))?Ne=Ae:De>=Ue?Ne=Ue:Ne=Number(De),Ne}},{key:"getShowSizeChanger",value:function(){var Z=this.props,De=Z.showSizeChanger,Ue=Z.total,Ae=Z.totalBoundaryShowSizeChanger;return typeof De!="undefined"?De:Ue>Ae}},{key:"render",value:function(){var Z=this.props,De=Z.prefixCls,Ue=Z.className,Ae=Z.style,Ne=Z.disabled,We=Z.hideOnSinglePage,Xe=Z.total,qe=Z.locale,ht=Z.showQuickJumper,St=Z.showLessItems,_t=Z.showTitle,It=Z.showTotal,Ct=Z.simple,y=Z.itemRender,C=Z.showPrevNextJumpers,ot=Z.jumpPrevIcon,W=Z.jumpNextIcon,Ce=Z.selectComponentClass,yn=Z.selectPrefixCls,Me=Z.pageSizeOptions,Ke=this.state,Ze=Ke.current,J=Ke.pageSize,fe=Ke.currentInputValue;if(We===!0&&Xe<=J)return null;var Te=$(void 0,this.state,this.props),Be=[],G=null,Ot=null,Pe=null,Yt=null,mn=null,wn=ht&&ht.goButton,Hn=St?1:2,$t=Ze-1>0?Ze-1:0,qt=Ze+1<Te?Ze+1:Te,$e=(0,H.Z)(this.props,{aria:!0,data:!0}),dt=It&&N.createElement("li",{className:"".concat(De,"-total-text")},It(Xe,[Xe===0?0:(Ze-1)*J+1,Ze*J>Xe?Xe:Ze*J]));if(Ct){wn&&(typeof wn=="boolean"?mn=N.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},qe.jump_to_confirm):mn=N.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},wn),mn=N.createElement("li",{title:_t?"".concat(qe.jump_to).concat(Ze,"/").concat(Te):null,className:"".concat(De,"-simple-pager")},mn));var Tt=this.renderPrev($t);return N.createElement("ul",(0,P.Z)({className:c()(De,"".concat(De,"-simple"),(0,w.Z)({},"".concat(De,"-disabled"),Ne),Ue),style:Ae,ref:this.paginationNode},$e),dt,Tt?N.createElement("li",{title:_t?qe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:c()("".concat(De,"-prev"),(0,w.Z)({},"".concat(De,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Tt):null,N.createElement("li",{title:_t?"".concat(Ze,"/").concat(Te):null,className:"".concat(De,"-simple-pager")},N.createElement("input",{type:"text",value:fe,disabled:Ne,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),N.createElement("span",{className:"".concat(De,"-slash")},"/"),Te),N.createElement("li",{title:_t?qe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:c()("".concat(De,"-next"),(0,w.Z)({},"".concat(De,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(qt)),mn)}if(Te<=3+Hn*2){var Le={locale:qe,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:_t,itemRender:y};Te||Be.push(N.createElement(Ie,(0,P.Z)({},Le,{key:"noPager",page:1,className:"".concat(De,"-item-disabled")})));for(var ve=1;ve<=Te;ve+=1){var rt=Ze===ve;Be.push(N.createElement(Ie,(0,P.Z)({},Le,{key:ve,page:ve,active:rt})))}}else{var lt=St?qe.prev_3:qe.prev_5,Nt=St?qe.next_3:qe.next_5,Rt=y(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ot,"prev page")),zt=y(this.getJumpNextPage(),"jump-next",this.getItemIcon(W,"next page"));C&&(G=Rt?N.createElement("li",{title:_t?lt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:c()("".concat(De,"-jump-prev"),(0,w.Z)({},"".concat(De,"-jump-prev-custom-icon"),!!ot))},Rt):null,Ot=zt?N.createElement("li",{title:_t?Nt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:c()("".concat(De,"-jump-next"),(0,w.Z)({},"".concat(De,"-jump-next-custom-icon"),!!W))},zt):null),Yt=N.createElement(Ie,{locale:qe,last:!0,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Te,page:Te,active:!1,showTitle:_t,itemRender:y}),Pe=N.createElement(Ie,{locale:qe,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:_t,itemRender:y});var Pt=Math.max(1,Ze-Hn),Wt=Math.min(Ze+Hn,Te);Ze-1<=Hn&&(Wt=1+Hn*2),Te-Ze<=Hn&&(Pt=Te-Hn*2);for(var ln=Pt;ln<=Wt;ln+=1){var Lt=Ze===ln;Be.push(N.createElement(Ie,{locale:qe,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ln,page:ln,active:Lt,showTitle:_t,itemRender:y}))}Ze-1>=Hn*2&&Ze!==3&&(Be[0]=(0,N.cloneElement)(Be[0],{className:"".concat(De,"-item-after-jump-prev")}),Be.unshift(G)),Te-Ze>=Hn*2&&Ze!==Te-2&&(Be[Be.length-1]=(0,N.cloneElement)(Be[Be.length-1],{className:"".concat(De,"-item-before-jump-next")}),Be.push(Ot)),Pt!==1&&Be.unshift(Pe),Wt!==Te&&Be.push(Yt)}var ft=!this.hasPrev()||!Te,jt=!this.hasNext()||!Te,Ut=this.renderPrev($t),Zt=this.renderNext(qt);return N.createElement("ul",(0,P.Z)({className:c()(De,Ue,(0,w.Z)({},"".concat(De,"-disabled"),Ne)),style:Ae,ref:this.paginationNode},$e),dt,Ut?N.createElement("li",{title:_t?qe.prev_page:null,onClick:this.prev,tabIndex:ft?null:0,onKeyPress:this.runIfEnterPrev,className:c()("".concat(De,"-prev"),(0,w.Z)({},"".concat(De,"-disabled"),ft)),"aria-disabled":ft},Ut):null,Be,Zt?N.createElement("li",{title:_t?qe.next_page:null,onClick:this.next,tabIndex:jt?null:0,onKeyPress:this.runIfEnterNext,className:c()("".concat(De,"-next"),(0,w.Z)({},"".concat(De,"-disabled"),jt)),"aria-disabled":jt},Zt):null,N.createElement(X,{disabled:Ne,locale:qe,rootPrefixCls:De,selectComponentClass:Ce,selectPrefixCls:yn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ze,pageSize:J,pageSizeOptions:Me,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:wn}))}}],[{key:"getDerivedStateFromProps",value:function(Z,De){var Ue={};if("current"in Z&&(Ue.current=Z.current,Z.current!==De.current&&(Ue.currentInputValue=Ue.current)),"pageSize"in Z&&Z.pageSize!==De.pageSize){var Ae=De.current,Ne=$(Z.pageSize,De,Z);Ae=Ae>Ne?Ne:Ae,"current"in Z||(Ue.current=Ae,Ue.currentInputValue=Ae),Ue.pageSize=Z.pageSize}return Ue}}]),ue}(N.Component);ae.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Oe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Oe,locale:A.Z,style:{},itemRender:q,totalBoundaryShowSizeChanger:50};var ee=ae,ye=_(22075),re=_(36355),x=_(19716),S=_(8628),Q=_(9763),be=_(57809);const Ve=T=>N.createElement(be.default,Object.assign({},T,{showSearch:!0,size:"small"})),tt=T=>N.createElement(be.default,Object.assign({},T,{showSearch:!0,size:"middle"}));Ve.Option=be.default.Option,tt.Option=be.default.Option;var Je=_(9937),et=_(17313),xt=_(83116),gt=_(37613);const st=T=>{const{componentCls:O}=T;return{[`${O}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${O}-item-link`]:{color:T.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${O}-item-link`]:{color:T.colorTextDisabled,cursor:"not-allowed"}}},[`&${O}-disabled`]:{cursor:"not-allowed",[`${O}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:T.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:T.colorBorder,backgroundColor:T.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:T.itemActiveBgDisabled},a:{color:T.itemActiveColorDisabled}}},[`${O}-item-link`]:{color:T.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${O}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${O}-simple-pager`]:{color:T.colorTextDisabled},[`${O}-jump-prev, ${O}-jump-next`]:{[`${O}-item-link-icon`]:{opacity:0},[`${O}-item-ellipsis`]:{opacity:1}}},[`&${O}-simple`]:{[`${O}-prev, ${O}-next`]:{[`&${O}-disabled ${O}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},kt=T=>{const{componentCls:O}=T;return{[`&${O}-mini ${O}-total-text, &${O}-mini ${O}-simple-pager`]:{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`},[`&${O}-mini ${O}-item`]:{minWidth:T.itemSizeSM,height:T.itemSizeSM,margin:0,lineHeight:`${T.itemSizeSM-2}px`},[`&${O}-mini:not(${O}-disabled) ${O}-item:not(${O}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:T.colorBgTextHover},"&:active":{backgroundColor:T.colorBgTextActive}},[`&${O}-mini ${O}-prev, &${O}-mini ${O}-next`]:{minWidth:T.itemSizeSM,height:T.itemSizeSM,margin:0,lineHeight:`${T.itemSizeSM}px`},[`&${O}-mini:not(${O}-disabled)`]:{[`${O}-prev, ${O}-next`]:{[`&:hover ${O}-item-link`]:{backgroundColor:T.colorBgTextHover},[`&:active ${O}-item-link`]:{backgroundColor:T.colorBgTextActive},[`&${O}-disabled:hover ${O}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${O}-mini ${O}-prev ${O}-item-link,
|
|
|
&${O}-mini ${O}-next ${O}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`}},[`&${O}-mini ${O}-jump-prev, &${O}-mini ${O}-jump-next`]:{height:T.itemSizeSM,marginInlineEnd:0,lineHeight:`${T.itemSizeSM}px`},[`&${O}-mini ${O}-options`]:{marginInlineStart:T.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:T.miniOptionsSizeChangerTop},"&-quick-jumper":{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Je.x0)(T)),{width:T.paginationMiniQuickJumperInputWidth,height:T.controlHeightSM})}}}},Ft=T=>{const{componentCls:O}=T;return{[`
|
|
|
&${O}-simple ${O}-prev,
|
|
|
&${O}-simple ${O}-next
|
|
|
`]:{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`,verticalAlign:"top",[`${O}-item-link`]:{height:T.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:T.colorBgTextHover},"&:active":{backgroundColor:T.colorBgTextActive},"&::after":{height:T.itemSizeSM,lineHeight:`${T.itemSizeSM}px`}}},[`&${O}-simple ${O}-simple-pager`]:{display:"inline-block",height:T.itemSizeSM,marginInlineEnd:T.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:T.marginXS,padding:`0 ${T.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:T.itemInputBg,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,borderRadius:T.borderRadius,outline:"none",transition:`border-color ${T.motionDurationMid}`,color:"inherit","&:hover":{borderColor:T.colorPrimary},"&:focus":{borderColor:T.colorPrimaryHover,boxShadow:`${T.inputOutlineOffset}px 0 ${T.controlOutlineWidth}px ${T.controlOutline}`},"&[disabled]":{color:T.colorTextDisabled,backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,cursor:"not-allowed"}}}}},cn=T=>{const{componentCls:O}=T;return{[`${O}-jump-prev, ${O}-jump-next`]:{outline:0,[`${O}-item-container`]:{position:"relative",[`${O}-item-link-icon`]:{color:T.colorPrimary,fontSize:T.fontSizeSM,opacity:0,transition:`all ${T.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${O}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:T.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:T.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:T.paginationEllipsisTextIndent,opacity:1,transition:`all ${T.motionDurationMid}`}},"&:hover":{[`${O}-item-link-icon`]:{opacity:1},[`${O}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${O}-prev,
|
|
|
${O}-jump-prev,
|
|
|
${O}-jump-next
|
|
|
`]:{marginInlineEnd:T.marginXS},[`
|
|
|
${O}-prev,
|
|
|
${O}-next,
|
|
|
${O}-jump-prev,
|
|
|
${O}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:T.itemSize,height:T.itemSize,color:T.colorText,fontFamily:T.fontFamily,lineHeight:`${T.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}`},[`${O}-prev, ${O}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:T.colorText,cursor:"pointer",userSelect:"none"},[`${O}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:T.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${T.lineWidth}px ${T.lineType} transparent`,borderRadius:T.borderRadius,outline:"none",transition:`all ${T.motionDurationMid}`},[`&:hover ${O}-item-link`]:{backgroundColor:T.colorBgTextHover},[`&:active ${O}-item-link`]:{backgroundColor:T.colorBgTextActive},[`&${O}-disabled:hover`]:{[`${O}-item-link`]:{backgroundColor:"transparent"}}},[`${O}-slash`]:{marginInlineEnd:T.paginationSlashMarginInlineEnd,marginInlineStart:T.paginationSlashMarginInlineStart},[`${O}-options`]:{display:"inline-block",marginInlineStart:T.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:T.controlHeight,marginInlineStart:T.marginXS,lineHeight:`${T.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Je.ik)(T)),{width:T.controlHeightLG*1.25,height:T.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:T.marginXS,marginInlineEnd:T.marginXS})}}}},Vt=T=>{const{componentCls:O}=T;return{[`${O}-item`]:{display:"inline-block",minWidth:T.itemSize,height:T.itemSize,marginInlineEnd:T.marginXS,fontFamily:T.fontFamily,lineHeight:`${T.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${T.lineWidth}px ${T.lineType} transparent`,borderRadius:T.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${T.paginationItemPaddingInline}px`,color:T.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${O}-item-active)`]:{"&:hover":{transition:`all ${T.motionDurationMid}`,backgroundColor:T.colorBgTextHover},"&:active":{backgroundColor:T.colorBgTextActive}},"&-active":{fontWeight:T.fontWeightStrong,backgroundColor:T.itemActiveBg,borderColor:T.colorPrimary,a:{color:T.colorPrimary},"&:hover":{borderColor:T.colorPrimaryHover},"&:hover a":{color:T.colorPrimaryHover}}}}},it=T=>{const{componentCls:O}=T;return{[O]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(T)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${O}-total-text`]:{display:"inline-block",height:T.itemSize,marginInlineEnd:T.marginXS,lineHeight:`${T.itemSize-2}px`,verticalAlign:"middle"}}),Vt(T)),cn(T)),Ft(T)),kt(T)),st(T)),{[`@media only screen and (max-width: ${T.screenLG}px)`]:{[`${O}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${T.screenSM}px)`]:{[`${O}-options`]:{display:"none"}}}),[`&${T.componentCls}-rtl`]:{direction:"rtl"}}},At=T=>{const{componentCls:O}=T;return{[`${O}${O}-disabled:not(${O}-mini)`]:{"&, &:hover":{[`${O}-item-link`]:{borderColor:T.colorBorder}},"&:focus-visible":{[`${O}-item-link`]:{borderColor:T.colorBorder}},[`${O}-item, ${O}-item-link`]:{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,[`&:hover:not(${O}-item-active)`]:{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,a:{color:T.colorTextDisabled}},[`&${O}-item-active`]:{backgroundColor:T.itemActiveBgDisabled}},[`${O}-prev, ${O}-next`]:{"&:hover button":{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder,color:T.colorTextDisabled},[`${O}-item-link`]:{backgroundColor:T.colorBgContainerDisabled,borderColor:T.colorBorder}}},[`${O}:not(${O}-mini)`]:{[`${O}-prev, ${O}-next`]:{"&:hover button":{borderColor:T.colorPrimaryHover,backgroundColor:T.itemBg},[`${O}-item-link`]:{backgroundColor:T.itemLinkBg,borderColor:T.colorBorder},[`&:hover ${O}-item-link`]:{borderColor:T.colorPrimary,backgroundColor:T.itemBg,color:T.colorPrimary},[`&${O}-disabled`]:{[`${O}-item-link`]:{borderColor:T.colorBorder,color:T.colorTextDisabled}}},[`${O}-item`]:{backgroundColor:T.itemBg,border:`${T.lineWidth}px ${T.lineType} ${T.colorBorder}`,[`&:hover:not(${O}-item-active)`]:{borderColor:T.colorPrimary,backgroundColor:T.itemBg,a:{color:T.colorPrimary}},"&-active":{borderColor:T.colorPrimary}}}}},oe=T=>{const{componentCls:O}=T;return{[`${O}:not(${O}-disabled)`]:{[`${O}-item`]:Object.assign({},(0,et.Qy)(T)),[`${O}-jump-prev, ${O}-jump-next`]:{"&:focus-visible":Object.assign({[`${O}-item-link-icon`]:{opacity:1},[`${O}-item-ellipsis`]:{opacity:0}},(0,et.oN)(T))},[`${O}-prev, ${O}-next`]:{[`&:focus-visible ${O}-item-link`]:Object.assign({},(0,et.oN)(T))}}}};var me=(0,xt.Z)("Pagination",T=>{const O=(0,gt.TS)(T,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:T.marginXXS/2,paginationMiniQuickJumperInputWidth:T.controlHeightLG*1.1,paginationItemPaddingInline:T.marginXXS*1.5,paginationEllipsisLetterSpacing:T.marginXXS/2,paginationSlashMarginInlineStart:T.marginXXS,paginationSlashMarginInlineEnd:T.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Je.e5)(T),(0,Je.TM)(T));return[it(O),oe(O),T.wireframe&&At(O)]},T=>({itemBg:T.colorBgContainer,itemSize:T.controlHeight,itemSizeSM:T.controlHeightSM,itemActiveBg:T.colorBgContainer,itemLinkBg:T.colorBgContainer,itemActiveColorDisabled:T.colorTextDisabled,itemActiveBgDisabled:T.controlItemBgActiveDisabled,itemInputBg:T.colorBgContainer,miniOptionsSizeChangerTop:0})),k=function(T,O){var ue={};for(var he in T)Object.prototype.hasOwnProperty.call(T,he)&&O.indexOf(he)<0&&(ue[he]=T[he]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,he=Object.getOwnPropertySymbols(T);Z<he.length;Z++)O.indexOf(he[Z])<0&&Object.prototype.propertyIsEnumerable.call(T,he[Z])&&(ue[he[Z]]=T[he[Z]]);return ue},we=T=>{const{prefixCls:O,selectPrefixCls:ue,className:he,rootClassName:Z,style:De,size:Ue,locale:Ae,selectComponentClass:Ne,responsive:We,showSizeChanger:Xe}=T,qe=k(T,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ht}=(0,S.Z)(We),{getPrefixCls:St,direction:_t,pagination:It={}}=N.useContext(re.E_),Ct=St("pagination",O),[y,C]=me(Ct),ot=Xe!=null?Xe:It.showSizeChanger,W=N.useMemo(()=>{const Te=N.createElement("span",{className:`${Ct}-item-ellipsis`},"\u2022\u2022\u2022"),Be=N.createElement("button",{className:`${Ct}-item-link`,type:"button",tabIndex:-1},_t==="rtl"?N.createElement(M.Z,null):N.createElement(R.Z,null)),G=N.createElement("button",{className:`${Ct}-item-link`,type:"button",tabIndex:-1},_t==="rtl"?N.createElement(R.Z,null):N.createElement(M.Z,null)),Ot=N.createElement("a",{className:`${Ct}-item-link`},N.createElement("div",{className:`${Ct}-item-container`},_t==="rtl"?N.createElement(o.Z,{className:`${Ct}-item-link-icon`}):N.createElement(Ee,{className:`${Ct}-item-link-icon`}),Te)),Pe=N.createElement("a",{className:`${Ct}-item-link`},N.createElement("div",{className:`${Ct}-item-container`},_t==="rtl"?N.createElement(Ee,{className:`${Ct}-item-link-icon`}):N.createElement(o.Z,{className:`${Ct}-item-link-icon`}),Te));return{prevIcon:Be,nextIcon:G,jumpPrevIcon:Ot,jumpNextIcon:Pe}},[_t,Ct]),[Ce]=(0,Q.Z)("Pagination",ye.Z),yn=Object.assign(Object.assign({},Ce),Ae),Me=(0,x.Z)(Ue),Ke=Me==="small"||!!(ht&&!Me&&We),Ze=St("select",ue),J=c()({[`${Ct}-mini`]:Ke,[`${Ct}-rtl`]:_t==="rtl"},It==null?void 0:It.className,he,Z,C),fe=Object.assign(Object.assign({},It==null?void 0:It.style),De);return y(N.createElement(ee,Object.assign({},W,qe,{style:fe,prefixCls:Ct,selectPrefixCls:Ze,className:J,selectComponentClass:Ne||(Ke?Ve:tt),locale:yn,showSizeChanger:ot})))},L=we},57809:function(rn,nt,_){"use strict";var P=_(92310),N=_.n(P),te=_(77861),Re=_(2738),V=_(59301),ce=_(53487),_e=_(62892),Ee=_(19080),o=_(36355),R=_(1684),M=_(93891),g=_(19716),c=_(32441),w=_(33234),v=_(14154),Y=_(58582),se=_(84443),K=_(66339),F=function(B,X){var ge={};for(var Ie in B)Object.prototype.hasOwnProperty.call(B,Ie)&&X.indexOf(Ie)<0&&(ge[Ie]=B[Ie]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ie=Object.getOwnPropertySymbols(B);Oe<Ie.length;Oe++)X.indexOf(Ie[Oe])<0&&Object.prototype.propertyIsEnumerable.call(B,Ie[Oe])&&(ge[Ie[Oe]]=B[Ie[Oe]]);return ge};const H="SECRET_COMBOBOX_MODE_DO_NOT_USE",ne=(B,X)=>{var ge,{prefixCls:Ie,bordered:Oe=!0,className:He,rootClassName:q,getPopupContainer:$,popupClassName:ae,dropdownClassName:ee,listHeight:ye=256,placement:re,listItemHeight:x=24,size:S,disabled:Q,notFoundContent:be,status:Ve,builtinPlacements:tt,dropdownMatchSelectWidth:Je,popupMatchSelectWidth:et,direction:xt,style:gt,allowClear:st}=B,kt=F(B,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ft,getPrefixCls:cn,renderEmpty:Vt,direction:it,virtual:At,popupMatchSelectWidth:oe,popupOverflow:me,select:k}=V.useContext(o.E_),de=cn("select",Ie),we=cn(),L=xt!=null?xt:it,{compactSize:T,compactItemClassnames:O}=(0,w.ri)(de,L),[ue,he]=(0,v.Z)(de),Z=V.useMemo(()=>{const{mode:fe}=kt;if(fe!=="combobox")return fe===H?"combobox":fe},[kt.mode]),De=Z==="multiple"||Z==="tags",Ue=(0,se.Z)(kt.suffixIcon,kt.showArrow),Ae=(ge=et!=null?et:Je)!==null&&ge!==void 0?ge:oe,{status:Ne,hasFeedback:We,isFormItemInput:Xe,feedbackIcon:qe}=V.useContext(c.aM),ht=(0,Ee.F)(Ne,Ve);let St;be!==void 0?St=be:Z==="combobox"?St=null:St=(Vt==null?void 0:Vt("Select"))||V.createElement(M.Z,{componentName:"Select"});const{suffixIcon:_t,itemIcon:It,removeIcon:Ct,clearIcon:y}=(0,K.Z)(Object.assign(Object.assign({},kt),{multiple:De,hasFeedback:We,feedbackIcon:qe,showSuffixIcon:Ue,prefixCls:de,showArrow:kt.showArrow,componentName:"Select"})),C=st===!0?{clearIcon:y}:st,ot=(0,Re.Z)(kt,["suffixIcon","itemIcon"]),W=N()(ae||ee,{[`${de}-dropdown-${L}`]:L==="rtl"},q,he),Ce=(0,g.Z)(fe=>{var Te;return(Te=S!=null?S:T)!==null&&Te!==void 0?Te:fe}),yn=V.useContext(R.Z),Me=Q!=null?Q:yn,Ke=N()({[`${de}-lg`]:Ce==="large",[`${de}-sm`]:Ce==="small",[`${de}-rtl`]:L==="rtl",[`${de}-borderless`]:!Oe,[`${de}-in-form-item`]:Xe},(0,Ee.Z)(de,ht,We),O,k==null?void 0:k.className,He,q,he),Ze=V.useMemo(()=>re!==void 0?re:L==="rtl"?"bottomRight":"bottomLeft",[re,L]),J=(0,Y.Z)(tt,me);return ue(V.createElement(te.ZP,Object.assign({ref:X,virtual:At,showSearch:k==null?void 0:k.showSearch},ot,{style:Object.assign(Object.assign({},k==null?void 0:k.style),gt),dropdownMatchSelectWidth:Ae,builtinPlacements:J,transitionName:(0,_e.m)(we,"slide-up",kt.transitionName),listHeight:ye,listItemHeight:x,mode:Z,prefixCls:de,placement:Ze,direction:L,suffixIcon:_t,menuItemSelectedIcon:It,removeIcon:Ct,allowClear:C,notFoundContent:St,className:Ke,getPopupContainer:$||Ft,dropdownClassName:W,disabled:Me})))},b=V.forwardRef(ne),A=(0,ce.Z)(b);b.SECRET_COMBOBOX_MODE_DO_NOT_USE=H,b.Option=te.Wx,b.OptGroup=te.Xo,b._InternalPanelDoNotUseOrYouWillBeFired=A,nt.default=b},14154:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return b}});var P=_(17313),N=_(74207),te=_(37613),Re=_(83116),V=_(13826),ce=_(92899);const _e=A=>{const{optionHeight:B,optionFontSize:X,optionLineHeight:ge,optionPadding:Ie}=A;return{position:"relative",display:"block",minHeight:B,padding:Ie,color:A.colorText,fontWeight:"normal",fontSize:X,lineHeight:ge,boxSizing:"border-box"}};var o=A=>{const{antCls:B,componentCls:X}=A,ge=`${X}-item`,Ie=`&${B}-slide-up-enter${B}-slide-up-enter-active`,Oe=`&${B}-slide-up-appear${B}-slide-up-appear-active`,He=`&${B}-slide-up-leave${B}-slide-up-leave-active`,q=`${X}-dropdown-placement-`;return[{[`${X}-dropdown`]:Object.assign(Object.assign({},(0,P.Wf)(A)),{position:"absolute",top:-9999,zIndex:A.zIndexPopup,boxSizing:"border-box",padding:A.paddingXXS,overflow:"hidden",fontSize:A.fontSize,fontVariant:"initial",backgroundColor:A.colorBgElevated,borderRadius:A.borderRadiusLG,outline:"none",boxShadow:A.boxShadowSecondary,[`
|
|
|
${Ie}${q}bottomLeft,
|
|
|
${Oe}${q}bottomLeft
|
|
|
`]:{animationName:V.fJ},[`
|
|
|
${Ie}${q}topLeft,
|
|
|
${Oe}${q}topLeft,
|
|
|
${Ie}${q}topRight,
|
|
|
${Oe}${q}topRight
|
|
|
`]:{animationName:V.Qt},[`${He}${q}bottomLeft`]:{animationName:V.Uw},[`
|
|
|
${He}${q}topLeft,
|
|
|
${He}${q}topRight
|
|
|
`]:{animationName:V.ly},"&-hidden":{display:"none"},[`${ge}`]:Object.assign(Object.assign({},_e(A)),{cursor:"pointer",transition:`background ${A.motionDurationSlow} ease`,borderRadius:A.borderRadiusSM,"&-group":{color:A.colorTextDescription,fontSize:A.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},P.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ge}-option-disabled)`]:{backgroundColor:A.optionActiveBg},[`&-selected:not(${ge}-option-disabled)`]:{color:A.optionSelectedColor,fontWeight:A.optionSelectedFontWeight,backgroundColor:A.optionSelectedBg,[`${ge}-option-state`]:{color:A.colorPrimary}},"&-disabled":{[`&${ge}-option-selected`]:{backgroundColor:A.colorBgContainerDisabled},color:A.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:A.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,V.oN)(A,"slide-up"),(0,V.oN)(A,"slide-down"),(0,ce.Fm)(A,"move-up"),(0,ce.Fm)(A,"move-down")]};const R=2,M=A=>{let{controlHeightSM:B,controlHeight:X,lineWidth:ge}=A;const Ie=(X-B)/2-ge,Oe=Math.ceil(Ie/2);return[Ie,Oe]};function g(A,B){const{componentCls:X,iconCls:ge}=A,Ie=`${X}-selection-overflow`,Oe=A.multipleSelectItemHeight,[He]=M(A),q=B?`${X}-${B}`:"";return{[`${X}-multiple${q}`]:{fontSize:A.fontSize,[Ie]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${X}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${He-R}px ${R*2}px`,borderRadius:A.borderRadius,[`${X}-show-search&`]:{cursor:"text"},[`${X}-disabled&`]:{background:A.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${R}px 0`,lineHeight:`${Oe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${X}-show-arrow ${X}-selector,
|
|
|
&${X}-allow-clear ${X}-selector
|
|
|
`]:{paddingInlineEnd:A.fontSizeIcon+A.controlPaddingHorizontal},[`${X}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Oe,marginTop:R,marginBottom:R,lineHeight:`${Oe-A.lineWidth*2}px`,background:A.multipleItemBg,border:`${A.lineWidth}px ${A.lineType} ${A.multipleItemBorderColor}`,borderRadius:A.borderRadiusSM,cursor:"default",transition:`font-size ${A.motionDurationSlow}, line-height ${A.motionDurationSlow}, height ${A.motionDurationSlow}`,userSelect:"none",marginInlineEnd:R*2,paddingInlineStart:A.paddingXS,paddingInlineEnd:A.paddingXS/2,[`${X}-disabled&`]:{color:A.multipleItemColorDisabled,borderColor:A.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:A.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,P.Ro)()),{display:"inline-flex",alignItems:"center",color:A.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ge}`]:{verticalAlign:"-0.2em"},"&:hover":{color:A.colorIconHover}})},[`${Ie}-item + ${Ie}-item`]:{[`${X}-selection-search`]:{marginInlineStart:0}},[`${X}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:A.inputPaddingHorizontalBase-He,"\n &-input,\n &-mirror\n ":{height:Oe,fontFamily:A.fontFamily,lineHeight:`${Oe}px`,transition:`all ${A.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${X}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:A.inputPaddingHorizontalBase,insetInlineEnd:A.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${A.motionDurationSlow}`}}}}var w=A=>{const{componentCls:B}=A,X=(0,te.TS)(A,{controlHeight:A.controlHeightSM,multipleSelectItemHeight:A.controlHeightXS,borderRadius:A.borderRadiusSM,borderRadiusSM:A.borderRadiusXS}),ge=(0,te.TS)(A,{fontSize:A.fontSizeLG,controlHeight:A.controlHeightLG,multipleSelectItemHeight:A.multipleItemHeightLG,borderRadius:A.borderRadiusLG,borderRadiusSM:A.borderRadius}),[,Ie]=M(A);return[g(A),g(X,"sm"),{[`${B}-multiple${B}-sm`]:{[`${B}-selection-placeholder`]:{insetInline:A.controlPaddingHorizontalSM-A.lineWidth},[`${B}-selection-search`]:{marginInlineStart:Ie}}},g(ge,"lg")]};function v(A,B){const{componentCls:X,inputPaddingHorizontalBase:ge,borderRadius:Ie}=A,Oe=A.controlHeight-A.lineWidth*2,He=Math.ceil(A.fontSize*1.25),q=B?`${X}-${B}`:"";return{[`${X}-single${q}`]:{fontSize:A.fontSize,[`${X}-selector`]:Object.assign(Object.assign({},(0,P.Wf)(A)),{display:"flex",borderRadius:Ie,[`${X}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ge,insetInlineEnd:ge,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${X}-selection-item,
|
|
|
${X}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Oe}px`,transition:`all ${A.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Oe}px`}},[`${X}-selection-item`]:{position:"relative",userSelect:"none"},[`${X}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${X}-selection-item:after`,`${X}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${X}-show-arrow ${X}-selection-item,
|
|
|
&${X}-show-arrow ${X}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:He},[`&${X}-open ${X}-selection-item`]:{color:A.colorTextPlaceholder},[`&:not(${X}-customize-input)`]:{[`${X}-selector`]:{width:"100%",height:A.controlHeight,padding:`0 ${ge}px`,[`${X}-selection-search-input`]:{height:Oe},"&:after":{lineHeight:`${Oe}px`}}},[`&${X}-customize-input`]:{[`${X}-selector`]:{"&:after":{display:"none"},[`${X}-selection-search`]:{position:"static",width:"100%"},[`${X}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ge}px`,"&:after":{display:"none"}}}}}}}function Y(A){const{componentCls:B}=A,X=A.controlPaddingHorizontalSM-A.lineWidth;return[v(A),v((0,te.TS)(A,{controlHeight:A.controlHeightSM,borderRadius:A.borderRadiusSM}),"sm"),{[`${B}-single${B}-sm`]:{[`&:not(${B}-customize-input)`]:{[`${B}-selection-search`]:{insetInlineStart:X,insetInlineEnd:X},[`${B}-selector`]:{padding:`0 ${X}px`},[`&${B}-show-arrow ${B}-selection-search`]:{insetInlineEnd:X+A.fontSize*1.5},[`
|
|
|
&${B}-show-arrow ${B}-selection-item,
|
|
|
&${B}-show-arrow ${B}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:A.fontSize*1.5}}}},v((0,te.TS)(A,{controlHeight:A.singleItemHeightLG,fontSize:A.fontSizeLG,borderRadius:A.borderRadiusLG}),"lg")]}const se=A=>{const{componentCls:B,selectorBg:X}=A;return{position:"relative",backgroundColor:X,border:`${A.lineWidth}px ${A.lineType} ${A.colorBorder}`,transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,input:{cursor:"pointer"},[`${B}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${B}-disabled&`]:{color:A.colorTextDisabled,background:A.colorBgContainerDisabled,cursor:"not-allowed",[`${B}-multiple&`]:{background:A.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},K=function(A,B){let X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ge,borderHoverColor:Ie,outlineColor:Oe,antCls:He}=B,q=X?{[`${ge}-selector`]:{borderColor:Ie}}:{};return{[A]:{[`&:not(${ge}-disabled):not(${ge}-customize-input):not(${He}-pagination-size-changer)`]:Object.assign(Object.assign({},q),{[`${ge}-focused& ${ge}-selector`]:{borderColor:Ie,boxShadow:`0 0 0 ${B.controlOutlineWidth}px ${Oe}`,outline:0},[`&:hover ${ge}-selector`]:{borderColor:Ie}})}}},F=A=>{const{componentCls:B}=A;return{[`${B}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},H=A=>{const{componentCls:B,inputPaddingHorizontalBase:X,iconCls:ge}=A;return{[B]:Object.assign(Object.assign({},(0,P.Wf)(A)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${B}-customize-input) ${B}-selector`]:Object.assign(Object.assign({},se(A)),F(A)),[`${B}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},P.vS),[`${B}-selection-placeholder`]:Object.assign(Object.assign({},P.vS),{flex:1,color:A.colorTextPlaceholder,pointerEvents:"none"}),[`${B}-arrow`]:Object.assign(Object.assign({},(0,P.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:X,height:A.fontSizeIcon,marginTop:-A.fontSizeIcon/2,color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ge]:{verticalAlign:"top",transition:`transform ${A.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${B}-suffix)`]:{pointerEvents:"auto"}},[`${B}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${B}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:X,zIndex:1,display:"inline-block",width:A.fontSizeIcon,height:A.fontSizeIcon,marginTop:-A.fontSizeIcon/2,color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:A.clearBg,cursor:"pointer",opacity:0,transition:`color ${A.motionDurationMid} ease, opacity ${A.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:A.colorTextTertiary}},"&:hover":{[`${B}-clear`]:{opacity:1}}}),[`${B}-has-feedback`]:{[`${B}-clear`]:{insetInlineEnd:X+A.fontSize+A.paddingXS}}}},ne=A=>{const{componentCls:B}=A;return[{[B]:{[`&-borderless ${B}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${B}-in-form-item`]:{width:"100%"}}},H(A),Y(A),w(A),o(A),{[`${B}-rtl`]:{direction:"rtl"}},K(B,(0,te.TS)(A,{borderHoverColor:A.colorPrimaryHover,outlineColor:A.controlOutline})),K(`${B}-status-error`,(0,te.TS)(A,{borderHoverColor:A.colorErrorHover,outlineColor:A.colorErrorOutline}),!0),K(`${B}-status-warning`,(0,te.TS)(A,{borderHoverColor:A.colorWarningHover,outlineColor:A.colorWarningOutline}),!0),(0,N.c)(A,{borderElCls:`${B}-selector`,focusElCls:`${B}-focused`})]};var b=(0,Re.Z)("Select",(A,B)=>{let{rootPrefixCls:X}=B;const ge=(0,te.TS)(A,{rootPrefixCls:X,inputPaddingHorizontalBase:A.paddingSM-1,multipleSelectItemHeight:A.multipleItemHeight});return[ne(ge)]},A=>{const{fontSize:B,lineHeight:X,controlHeight:ge,controlPaddingHorizontal:Ie,zIndexPopupBase:Oe,colorText:He,fontWeightStrong:q,controlItemBgActive:$,controlItemBgHover:ae,colorBgContainer:ee,colorFillSecondary:ye,controlHeightLG:re,controlHeightSM:x,colorBgContainerDisabled:S,colorTextDisabled:Q}=A;return{zIndexPopup:Oe+50,optionSelectedColor:He,optionSelectedFontWeight:q,optionSelectedBg:$,optionActiveBg:ae,optionPadding:`${(ge-B*X)/2}px ${Ie}px`,optionFontSize:B,optionLineHeight:X,optionHeight:ge,selectorBg:ee,clearBg:ee,singleItemHeightLG:re,multipleItemBg:ye,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightLG:ge,multipleSelectorBgDisabled:S,multipleItemColorDisabled:Q,multipleItemBorderColorDisabled:"transparent"}})},58582:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return N}});const P=te=>{const V={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:te==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},V),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},V),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},V),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},V),{points:["br","tr"],offset:[0,-4]})}};function N(te,Re){return te||P(Re)}},84443:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return P}});function P(N,te){return te!==void 0?te:N!==null}},66339:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});var P=_(40001),N=_(19248),te=_(99267),Re=_(84105),V=_(58617),ce=_(47472),_e=_(59301);function Ee(o){let{suffixIcon:R,clearIcon:M,menuItemSelectedIcon:g,removeIcon:c,loading:w,multiple:v,hasFeedback:Y,prefixCls:se,showSuffixIcon:K,feedbackIcon:F,showArrow:H,componentName:ne}=o;const b=M!=null?M:_e.createElement(N.Z,null),A=Ie=>R===null&&!Y&&!H?null:_e.createElement(_e.Fragment,null,K!==!1&&Ie,Y&&F);let B=null;if(R!==void 0)B=A(R);else if(w)B=A(_e.createElement(V.Z,{spin:!0}));else{const Ie=`${se}-suffix`;B=Oe=>{let{open:He,showSearch:q}=Oe;return A(He&&q?_e.createElement(ce.Z,{className:Ie}):_e.createElement(Re.Z,{className:Ie}))}}let X=null;g!==void 0?X=g:v?X=_e.createElement(P.Z,null):X=null;let ge=null;return c!==void 0?ge=c:ge=_e.createElement(te.Z,null),{clearIcon:b,suffixIcon:B,itemIcon:X,removeIcon:ge}}},61621:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return me}});var P=_(92310),N=_.n(P),te=_(59301),Re=_(36355),V=_(2738),_e=k=>{const{prefixCls:de,className:we,style:L,size:T,shape:O}=k,ue=N()({[`${de}-lg`]:T==="large",[`${de}-sm`]:T==="small"}),he=N()({[`${de}-circle`]:O==="circle",[`${de}-square`]:O==="square",[`${de}-round`]:O==="round"}),Z=te.useMemo(()=>typeof T=="number"?{width:T,height:T,lineHeight:`${T}px`}:{},[T]);return te.createElement("span",{className:N()(de,ue,he,we),style:Object.assign(Object.assign({},Z),L)})},Ee=_(93083),o=_(83116),R=_(37613);const M=new Ee.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g=k=>({height:k,lineHeight:`${k}px`}),c=k=>Object.assign({width:k},g(k)),w=k=>({background:k.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:M,animationDuration:k.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),v=k=>Object.assign({width:k*5,minWidth:k*5},g(k)),Y=k=>{const{skeletonAvatarCls:de,gradientFromColor:we,controlHeight:L,controlHeightLG:T,controlHeightSM:O}=k;return{[`${de}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:we},c(L)),[`${de}${de}-circle`]:{borderRadius:"50%"},[`${de}${de}-lg`]:Object.assign({},c(T)),[`${de}${de}-sm`]:Object.assign({},c(O))}},se=k=>{const{controlHeight:de,borderRadiusSM:we,skeletonInputCls:L,controlHeightLG:T,controlHeightSM:O,gradientFromColor:ue}=k;return{[`${L}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ue,borderRadius:we},v(de)),[`${L}-lg`]:Object.assign({},v(T)),[`${L}-sm`]:Object.assign({},v(O))}},K=k=>Object.assign({width:k},g(k)),F=k=>{const{skeletonImageCls:de,imageSizeBase:we,gradientFromColor:L,borderRadiusSM:T}=k;return{[`${de}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:L,borderRadius:T},K(we*2)),{[`${de}-path`]:{fill:"#bfbfbf"},[`${de}-svg`]:Object.assign(Object.assign({},K(we)),{maxWidth:we*4,maxHeight:we*4}),[`${de}-svg${de}-svg-circle`]:{borderRadius:"50%"}}),[`${de}${de}-circle`]:{borderRadius:"50%"}}},H=(k,de,we)=>{const{skeletonButtonCls:L}=k;return{[`${we}${L}-circle`]:{width:de,minWidth:de,borderRadius:"50%"},[`${we}${L}-round`]:{borderRadius:de}}},ne=k=>Object.assign({width:k*2,minWidth:k*2},g(k)),b=k=>{const{borderRadiusSM:de,skeletonButtonCls:we,controlHeight:L,controlHeightLG:T,controlHeightSM:O,gradientFromColor:ue}=k;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${we}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ue,borderRadius:de,width:L*2,minWidth:L*2},ne(L))},H(k,L,we)),{[`${we}-lg`]:Object.assign({},ne(T))}),H(k,T,`${we}-lg`)),{[`${we}-sm`]:Object.assign({},ne(O))}),H(k,O,`${we}-sm`))},A=k=>{const{componentCls:de,skeletonAvatarCls:we,skeletonTitleCls:L,skeletonParagraphCls:T,skeletonButtonCls:O,skeletonInputCls:ue,skeletonImageCls:he,controlHeight:Z,controlHeightLG:De,controlHeightSM:Ue,gradientFromColor:Ae,padding:Ne,marginSM:We,borderRadius:Xe,titleHeight:qe,blockRadius:ht,paragraphLiHeight:St,controlHeightXS:_t,paragraphMarginTop:It}=k;return{[`${de}`]:{display:"table",width:"100%",[`${de}-header`]:{display:"table-cell",paddingInlineEnd:Ne,verticalAlign:"top",[`${we}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ae},c(Z)),[`${we}-circle`]:{borderRadius:"50%"},[`${we}-lg`]:Object.assign({},c(De)),[`${we}-sm`]:Object.assign({},c(Ue))},[`${de}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${L}`]:{width:"100%",height:qe,background:Ae,borderRadius:ht,[`+ ${T}`]:{marginBlockStart:Ue}},[`${T}`]:{padding:0,"> li":{width:"100%",height:St,listStyle:"none",background:Ae,borderRadius:ht,"+ li":{marginBlockStart:_t}}},[`${T}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${de}-content`]:{[`${L}, ${T} > li`]:{borderRadius:Xe}}},[`${de}-with-avatar ${de}-content`]:{[`${L}`]:{marginBlockStart:We,[`+ ${T}`]:{marginBlockStart:It}}},[`${de}${de}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},b(k)),Y(k)),se(k)),F(k)),[`${de}${de}-block`]:{width:"100%",[`${O}`]:{width:"100%"},[`${ue}`]:{width:"100%"}},[`${de}${de}-active`]:{[`
|
|
|
${L},
|
|
|
${T} > li,
|
|
|
${we},
|
|
|
${O},
|
|
|
${ue},
|
|
|
${he}
|
|
|
`]:Object.assign({},w(k))}}};var B=(0,o.Z)("Skeleton",k=>{const{componentCls:de}=k,we=(0,R.TS)(k,{skeletonAvatarCls:`${de}-avatar`,skeletonTitleCls:`${de}-title`,skeletonParagraphCls:`${de}-paragraph`,skeletonButtonCls:`${de}-button`,skeletonInputCls:`${de}-input`,skeletonImageCls:`${de}-image`,imageSizeBase:k.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${k.gradientFromColor} 25%, ${k.gradientToColor} 37%, ${k.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[A(we)]},k=>{const{colorFillContent:de,colorFill:we}=k,L=de,T=we;return{color:L,colorGradientEnd:T,gradientFromColor:L,gradientToColor:T,titleHeight:k.controlHeight/2,blockRadius:k.borderRadiusSM,paragraphMarginTop:k.marginLG+k.marginXXS,paragraphLiHeight:k.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ge=k=>{const{prefixCls:de,className:we,rootClassName:L,active:T,shape:O="circle",size:ue="default"}=k,{getPrefixCls:he}=te.useContext(Re.E_),Z=he("skeleton",de),[De,Ue]=B(Z),Ae=(0,V.Z)(k,["prefixCls","className"]),Ne=N()(Z,`${Z}-element`,{[`${Z}-active`]:T},we,L,Ue);return De(te.createElement("div",{className:Ne},te.createElement(_e,Object.assign({prefixCls:`${Z}-avatar`,shape:O,size:ue},Ae))))},Oe=k=>{const{prefixCls:de,className:we,rootClassName:L,active:T,block:O=!1,size:ue="default"}=k,{getPrefixCls:he}=te.useContext(Re.E_),Z=he("skeleton",de),[De,Ue]=B(Z),Ae=(0,V.Z)(k,["prefixCls"]),Ne=N()(Z,`${Z}-element`,{[`${Z}-active`]:T,[`${Z}-block`]:O},we,L,Ue);return De(te.createElement("div",{className:Ne},te.createElement(_e,Object.assign({prefixCls:`${Z}-button`,size:ue},Ae))))};const He="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var $=k=>{const{prefixCls:de,className:we,rootClassName:L,style:T,active:O}=k,{getPrefixCls:ue}=te.useContext(Re.E_),he=ue("skeleton",de),[Z,De]=B(he),Ue=N()(he,`${he}-element`,{[`${he}-active`]:O},we,L,De);return Z(te.createElement("div",{className:Ue},te.createElement("div",{className:N()(`${he}-image`,we),style:T},te.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${he}-image-svg`},te.createElement("path",{d:He,className:`${he}-image-path`})))))},ee=k=>{const{prefixCls:de,className:we,rootClassName:L,active:T,block:O,size:ue="default"}=k,{getPrefixCls:he}=te.useContext(Re.E_),Z=he("skeleton",de),[De,Ue]=B(Z),Ae=(0,V.Z)(k,["prefixCls"]),Ne=N()(Z,`${Z}-element`,{[`${Z}-active`]:T,[`${Z}-block`]:O},we,L,Ue);return De(te.createElement("div",{className:Ne},te.createElement(_e,Object.assign({prefixCls:`${Z}-input`,size:ue},Ae))))},ye=_(96663),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},x=re,S=_(7657),Q=function(de,we){return te.createElement(S.Z,(0,ye.Z)({},de,{ref:we,icon:x}))},be=te.forwardRef(Q),Ve=be,Je=k=>{const{prefixCls:de,className:we,rootClassName:L,style:T,active:O,children:ue}=k,{getPrefixCls:he}=te.useContext(Re.E_),Z=he("skeleton",de),[De,Ue]=B(Z),Ae=N()(Z,`${Z}-element`,{[`${Z}-active`]:O},Ue,we,L),Ne=ue!=null?ue:te.createElement(Ve,null);return De(te.createElement("div",{className:Ae},te.createElement("div",{className:N()(`${Z}-image`,we),style:T},Ne)))},et=_(19127),gt=k=>{const de=he=>{const{width:Z,rows:De=2}=k;if(Array.isArray(Z))return Z[he];if(De-1===he)return Z},{prefixCls:we,className:L,style:T,rows:O}=k,ue=(0,et.Z)(Array(O)).map((he,Z)=>te.createElement("li",{key:Z,style:{width:de(Z)}}));return te.createElement("ul",{className:N()(we,L),style:T},ue)},kt=k=>{let{prefixCls:de,className:we,width:L,style:T}=k;return te.createElement("h3",{className:N()(de,we),style:Object.assign({width:L},T)})};function Ft(k){return k&&typeof k=="object"?k:{}}function cn(k,de){return k&&!de?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Vt(k,de){return!k&&de?{width:"38%"}:k&&de?{width:"50%"}:{}}function it(k,de){const we={};return(!k||!de)&&(we.width="61%"),!k&&de?we.rows=3:we.rows=2,we}const At=k=>{const{prefixCls:de,loading:we,className:L,rootClassName:T,style:O,children:ue,avatar:he=!1,title:Z=!0,paragraph:De=!0,active:Ue,round:Ae}=k,{getPrefixCls:Ne,direction:We,skeleton:Xe}=te.useContext(Re.E_),qe=Ne("skeleton",de),[ht,St]=B(qe);if(we||!("loading"in k)){const _t=!!he,It=!!Z,Ct=!!De;let y;if(_t){const W=Object.assign(Object.assign({prefixCls:`${qe}-avatar`},cn(It,Ct)),Ft(he));y=te.createElement("div",{className:`${qe}-header`},te.createElement(_e,Object.assign({},W)))}let C;if(It||Ct){let W;if(It){const yn=Object.assign(Object.assign({prefixCls:`${qe}-title`},Vt(_t,Ct)),Ft(Z));W=te.createElement(kt,Object.assign({},yn))}let Ce;if(Ct){const yn=Object.assign(Object.assign({prefixCls:`${qe}-paragraph`},it(_t,It)),Ft(De));Ce=te.createElement(gt,Object.assign({},yn))}C=te.createElement("div",{className:`${qe}-content`},W,Ce)}const ot=N()(qe,{[`${qe}-with-avatar`]:_t,[`${qe}-active`]:Ue,[`${qe}-rtl`]:We==="rtl",[`${qe}-round`]:Ae},Xe==null?void 0:Xe.className,L,T,St);return ht(te.createElement("div",{className:ot,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),O)},y,C))}return typeof ue!="undefined"?ue:null};At.Button=Oe,At.Avatar=ge,At.Input=ee,At.Image=$,At.Node=Je;var oe=At,me=oe},8378:function(rn,nt){"use strict";const _=P=>({[P.componentCls]:{[`${P.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${P.motionDurationMid} ${P.motionEaseInOut},
|
|
|
opacity ${P.motionDurationMid} ${P.motionEaseInOut} !important`}},[`${P.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${P.motionDurationMid} ${P.motionEaseInOut},
|
|
|
opacity ${P.motionDurationMid} ${P.motionEaseInOut} !important`}}});nt.Z=_},92899:function(rn,nt,_){"use strict";_.d(nt,{Fm:function(){return g}});var P=_(93083),N=_(95406);const te=new P.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Re=new P.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),V=new P.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ce=new P.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_e=new P.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ee=new P.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 P.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R=new P.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),M={"move-up":{inKeyframes:o,outKeyframes:R},"move-down":{inKeyframes:te,outKeyframes:Re},"move-left":{inKeyframes:V,outKeyframes:ce},"move-right":{inKeyframes:_e,outKeyframes:Ee}},g=(c,w)=>{const{antCls:v}=c,Y=`${v}-${w}`,{inKeyframes:se,outKeyframes:K}=M[w];return[(0,N.R)(Y,se,K,c.motionDurationMid),{[`
|
|
|
${Y}-enter,
|
|
|
${Y}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:c.motionEaseOutCirc},[`${Y}-leave`]:{animationTimingFunction:c.motionEaseInOutCirc}}]}},13826:function(rn,nt,_){"use strict";_.d(nt,{Qt:function(){return V},Uw:function(){return Re},fJ:function(){return te},ly:function(){return ce},oN:function(){return g}});var P=_(93083),N=_(95406);const te=new P.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Re=new P.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),V=new P.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ce=new P.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_e=new P.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ee=new P.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new P.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),R=new P.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),M={"slide-up":{inKeyframes:te,outKeyframes:Re},"slide-down":{inKeyframes:V,outKeyframes:ce},"slide-left":{inKeyframes:_e,outKeyframes:Ee},"slide-right":{inKeyframes:o,outKeyframes:R}},g=(c,w)=>{const{antCls:v}=c,Y=`${v}-${w}`,{inKeyframes:se,outKeyframes:K}=M[w];return[(0,N.R)(Y,se,K,c.motionDurationMid),{[`
|
|
|
${Y}-enter,
|
|
|
${Y}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:c.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Y}-leave`]:{animationTimingFunction:c.motionEaseInQuint}}]}},19447:function(rn,nt,_){"use strict";_.d(nt,{ZP:function(){return V},fS:function(){return te},qN:function(){return N}});var P=_(47585);const N=8;function te(ce){const _e=N,{contentRadius:Ee,limitVerticalRadius:o}=ce,R=Ee>12?Ee+2:12;return{dropdownArrowOffset:R,dropdownArrowOffsetVertical:o?_e:R}}function Re(ce,_e){return ce?_e:{}}function V(ce,_e){const{componentCls:Ee,sizePopupArrow:o,borderRadiusXS:R,borderRadiusOuter:M,boxShadowPopoverArrow:g}=ce,{colorBg:c,contentRadius:w=ce.borderRadiusLG,limitVerticalRadius:v,arrowDistance:Y=0,arrowPlacement:se={left:!0,right:!0,top:!0,bottom:!0}}=_e,{dropdownArrowOffsetVertical:K,dropdownArrowOffset:F}=te({contentRadius:w,limitVerticalRadius:v});return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign({[`${Ee}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,P.r)(o,R,M,c,g)),{"&:before":{background:c}})]},Re(!!se.top,{[[`&-placement-top ${Ee}-arrow`,`&-placement-topLeft ${Ee}-arrow`,`&-placement-topRight ${Ee}-arrow`].join(",")]:{bottom:Y,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${Ee}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${Ee}-arrow`]:{left:{_skip_check_:!0,value:F}},[`&-placement-topRight ${Ee}-arrow`]:{right:{_skip_check_:!0,value:F}}})),Re(!!se.bottom,{[[`&-placement-bottom ${Ee}-arrow`,`&-placement-bottomLeft ${Ee}-arrow`,`&-placement-bottomRight ${Ee}-arrow`].join(",")]:{top:Y,transform:"translateY(-100%)"},[`&-placement-bottom ${Ee}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${Ee}-arrow`]:{left:{_skip_check_:!0,value:F}},[`&-placement-bottomRight ${Ee}-arrow`]:{right:{_skip_check_:!0,value:F}}})),Re(!!se.left,{[[`&-placement-left ${Ee}-arrow`,`&-placement-leftTop ${Ee}-arrow`,`&-placement-leftBottom ${Ee}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Y},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${Ee}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${Ee}-arrow`]:{top:K},[`&-placement-leftBottom ${Ee}-arrow`]:{bottom:K}})),Re(!!se.right,{[[`&-placement-right ${Ee}-arrow`,`&-placement-rightTop ${Ee}-arrow`,`&-placement-rightBottom ${Ee}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Y},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${Ee}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${Ee}-arrow`]:{top:K},[`&-placement-rightBottom ${Ee}-arrow`]:{bottom:K}}))}}},47585:function(rn,nt,_){"use strict";_.d(nt,{r:function(){return P}});const P=(N,te,Re,V,ce)=>{const _e=N/2,Ee=0,o=_e,R=Re*1/Math.sqrt(2),M=_e-Re*(1-1/Math.sqrt(2)),g=_e-te*(1/Math.sqrt(2)),c=Re*(Math.sqrt(2)-1)+te*(1/Math.sqrt(2)),w=2*_e-g,v=c,Y=2*_e-R,se=M,K=2*_e-Ee,F=o,H=_e*Math.sqrt(2)+Re*(Math.sqrt(2)-2),ne=Re*(Math.sqrt(2)-1);return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:N/2,background:V,clipPath:{_multi_value_:!0,value:[`polygon(${ne}px 100%, 50% ${ne}px, ${2*_e-ne}px 100%, ${ne}px 100%)`,`path('M ${Ee} ${o} A ${Re} ${Re} 0 0 0 ${R} ${M} L ${g} ${c} A ${te} ${te} 0 0 1 ${w} ${v} L ${Y} ${se} A ${Re} ${Re} 0 0 0 ${K} ${F} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:H,height:H,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:ce,zIndex:0,background:"transparent"}}}},33166:function(rn,nt,_){"use strict";_.d(nt,{i:function(){return P}});const P=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return N}});var P=_(33166);function N(te,Re){return P.i.reduce((V,ce)=>{const _e=te[`${ce}1`],Ee=te[`${ce}3`],o=te[`${ce}6`],R=te[`${ce}7`];return Object.assign(Object.assign({},V),Re(ce,{lightColor:_e,lightBorderColor:Ee,darkColor:o,textColor:R}))},{})}},6848:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Oe}});var P=_(59301),N=_(92310),te=_.n(N),Re=_(55477),V=_(18929),ce=_(62892),_e=_(79676),Ee=_(92343),o=_(36355),R=_(33234),M=_(88088),g=_(17313),c=_(29878),w=_(19447),v=_(45157),Y=_(37613),se=_(83116);const K=He=>{const{componentCls:q,tooltipMaxWidth:$,tooltipColor:ae,tooltipBg:ee,tooltipBorderRadius:ye,zIndexPopup:re,controlHeight:x,boxShadowSecondary:S,paddingSM:Q,paddingXS:be,tooltipRadiusOuter:Ve}=He;return[{[q]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,g.Wf)(He)),{position:"absolute",zIndex:re,display:"block",width:"max-content",maxWidth:$,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":ee,[`${q}-inner`]:{minWidth:x,minHeight:x,padding:`${Q/2}px ${be}px`,color:ae,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ee,borderRadius:ye,boxShadow:S,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${q}-inner`]:{borderRadius:Math.min(ye,w.qN)}},[`${q}-content`]:{position:"relative"}}),(0,v.Z)(He,(tt,Je)=>{let{darkColor:et}=Je;return{[`&${q}-${tt}`]:{[`${q}-inner`]:{backgroundColor:et},[`${q}-arrow`]:{"--antd-arrow-background-color":et}}}})),{"&-rtl":{direction:"rtl"}})},(0,w.ZP)((0,Y.TS)(He,{borderRadiusOuter:Ve}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:ye,limitVerticalRadius:!0}),{[`${q}-pure`]:{position:"relative",maxWidth:"none",margin:He.sizePopupArrow}}]};var F=(He,q)=>(0,se.Z)("Tooltip",ae=>{if(q===!1)return[];const{borderRadius:ee,colorTextLightSolid:ye,colorBgDefault:re,borderRadiusOuter:x}=ae,S=(0,Y.TS)(ae,{tooltipMaxWidth:250,tooltipColor:ye,tooltipBorderRadius:ee,tooltipBg:re,tooltipRadiusOuter:x>4?4:x});return[K(S),(0,c._y)(ae,"zoom-big-fast")]},ae=>{let{zIndexPopupBase:ee,colorBgSpotlight:ye}=ae;return{zIndexPopup:ee+70,colorBgDefault:ye}},{resetStyle:!1})(He),H=_(36785);function ne(He,q){const $=(0,H.o2)(q),ae=te()({[`${He}-${q}`]:q&&$}),ee={},ye={};return q&&!$&&(ee.background=q,ye["--antd-arrow-background-color"]=q),{className:ae,overlayStyle:ee,arrowStyle:ye}}var A=He=>{const{prefixCls:q,className:$,placement:ae="top",title:ee,color:ye,overlayInnerStyle:re}=He,{getPrefixCls:x}=P.useContext(o.E_),S=x("tooltip",q),[Q,be]=F(S,!0),Ve=ne(S,ye),tt=Ve.arrowStyle,Je=Object.assign(Object.assign({},re),Ve.overlayStyle),et=te()(be,S,`${S}-pure`,`${S}-placement-${ae}`,$,Ve.className);return Q(P.createElement("div",{className:et,style:tt},P.createElement("div",{className:`${S}-arrow`}),P.createElement(Re.G,Object.assign({},He,{className:be,prefixCls:S,overlayInnerStyle:Je}),ee)))},B=function(He,q){var $={};for(var ae in He)Object.prototype.hasOwnProperty.call(He,ae)&&q.indexOf(ae)<0&&($[ae]=He[ae]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ae=Object.getOwnPropertySymbols(He);ee<ae.length;ee++)q.indexOf(ae[ee])<0&&Object.prototype.propertyIsEnumerable.call(He,ae[ee])&&($[ae[ee]]=He[ae[ee]]);return $};const X=(He,q)=>{const $={},ae=Object.assign({},He);return q.forEach(ee=>{He&&ee in He&&($[ee]=He[ee],delete ae[ee])}),{picked:$,omitted:ae}};function ge(He,q){const $=He.type;if(($.__ANT_BUTTON===!0||He.type==="button")&&He.props.disabled||$.__ANT_SWITCH===!0&&(He.props.disabled||He.props.loading)||$.__ANT_RADIO===!0&&He.props.disabled){const{picked:ae,omitted:ee}=X(He.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ye=Object.assign(Object.assign({display:"inline-block"},ae),{cursor:"not-allowed",width:He.props.block?"100%":void 0}),re=Object.assign(Object.assign({},ee),{pointerEvents:"none"}),x=(0,Ee.Tm)(He,{style:re,className:null});return P.createElement("span",{style:ye,className:te()(He.props.className,`${q}-disabled-compatible-wrapper`)},x)}return He}const Ie=P.forwardRef((He,q)=>{var $,ae;const{prefixCls:ee,openClassName:ye,getTooltipContainer:re,overlayClassName:x,color:S,overlayInnerStyle:Q,children:be,afterOpenChange:Ve,afterVisibleChange:tt,destroyTooltipOnHide:Je,arrow:et=!0,title:xt,overlay:gt,builtinPlacements:st,arrowPointAtCenter:kt=!1,autoAdjustOverflow:Ft=!0}=He,cn=!!et,[,Vt]=(0,M.Z)(),{getPopupContainer:it,getPrefixCls:At,direction:oe}=P.useContext(o.E_),me=P.useRef(null),k=()=>{var Ke;(Ke=me.current)===null||Ke===void 0||Ke.forceAlign()};P.useImperativeHandle(q,()=>({forceAlign:k,forcePopupAlign:()=>{k()}}));const[de,we]=(0,V.Z)(!1,{value:($=He.open)!==null&&$!==void 0?$:He.visible,defaultValue:(ae=He.defaultOpen)!==null&&ae!==void 0?ae:He.defaultVisible}),L=!xt&&!gt&&xt!==0,T=Ke=>{var Ze,J;we(L?!1:Ke),L||((Ze=He.onOpenChange)===null||Ze===void 0||Ze.call(He,Ke),(J=He.onVisibleChange)===null||J===void 0||J.call(He,Ke))},O=P.useMemo(()=>{var Ke,Ze;let J=kt;return typeof et=="object"&&(J=(Ze=(Ke=et.pointAtCenter)!==null&&Ke!==void 0?Ke:et.arrowPointAtCenter)!==null&&Ze!==void 0?Ze:kt),st||(0,_e.Z)({arrowPointAtCenter:J,autoAdjustOverflow:Ft,arrowWidth:cn?Vt.sizePopupArrow:0,borderRadius:Vt.borderRadius,offset:Vt.marginXXS,visibleFirst:!0})},[kt,et,st,Vt]),ue=P.useMemo(()=>xt===0?xt:gt||xt||"",[gt,xt]),he=P.createElement(R.BR,null,typeof ue=="function"?ue():ue),{getPopupContainer:Z,placement:De="top",mouseEnterDelay:Ue=.1,mouseLeaveDelay:Ae=.1,overlayStyle:Ne,rootClassName:We}=He,Xe=B(He,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),qe=At("tooltip",ee),ht=At(),St=He["data-popover-inject"];let _t=de;!("open"in He)&&!("visible"in He)&&L&&(_t=!1);const It=ge((0,Ee.l$)(be)&&!(0,Ee.M2)(be)?be:P.createElement("span",null,be),qe),Ct=It.props,y=!Ct.className||typeof Ct.className=="string"?te()(Ct.className,ye||`${qe}-open`):Ct.className,[C,ot]=F(qe,!St),W=ne(qe,S),Ce=W.arrowStyle,yn=Object.assign(Object.assign({},Q),W.overlayStyle),Me=te()(x,{[`${qe}-rtl`]:oe==="rtl"},W.className,We,ot);return C(P.createElement(Re.Z,Object.assign({},Xe,{showArrow:cn,placement:De,mouseEnterDelay:Ue,mouseLeaveDelay:Ae,prefixCls:qe,overlayClassName:Me,overlayStyle:Object.assign(Object.assign({},Ce),Ne),getTooltipContainer:Z||re||it,ref:me,builtinPlacements:O,overlay:he,visible:_t,onVisibleChange:T,afterVisibleChange:Ve!=null?Ve:tt,overlayInnerStyle:yn,arrowContent:P.createElement("span",{className:`${qe}-arrow-content`}),motion:{motionName:(0,ce.m)(ht,"zoom-big-fast",He.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Je}),_t?(0,Ee.Tm)(It,{className:y}):It))});Ie._InternalPanelDoNotUseOrYouWillBeFired=A;var Oe=Ie},64018:function(){var rn,nt,_,P=!1,N,te;window.PR_SHOULD_USE_CONTINUATION=!0;var Re,V;(function(){var ce=window,_e=["break,continue,do,else,for,if,return,while"],Ee=[_e,"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=[Ee,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],R=[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"],M=[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"],c="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",w=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],v="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",Y=[_e,"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"],se=[_e,"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"],K=[_e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],F=[R,g,M,w,v,Y,se,K],H=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ne="str",b="kwd",A="com",B="typ",X="lit",ge="pun",Ie="pln",Oe="tag",He="dec",q="src",$="atn",ae="atv",ee="nocode",ye="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function re(oe){for(var me=0,k=!1,de=!1,we=0,L=oe.length;we<L;++we){var T=oe[we];if(T.ignoreCase)de=!0;else if(/[a-z]/i.test(T.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){k=!0,de=!1;break}}var O={b:8,t:9,n:10,v:11,f:12,r:13};function ue(Ae){var Ne=Ae.charCodeAt(0);if(Ne!==92)return Ne;var We=Ae.charAt(1);return Ne=O[We],Ne||("0"<=We&&We<="7"?parseInt(Ae.substring(1),8):We==="u"||We==="x"?parseInt(Ae.substring(2),16):Ae.charCodeAt(1))}function he(Ae){if(Ae<32)return(Ae<16?"\\x0":"\\x")+Ae.toString(16);var Ne=String.fromCharCode(Ae);return Ne==="\\"||Ne==="-"||Ne==="]"||Ne==="^"?"\\"+Ne:Ne}function Z(Ae){var Ne=Ae.substring(1,Ae.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")),We=[],Xe=Ne[0]==="^",qe=["["];Xe&&qe.push("^");for(var ht=Xe?1:0,St=Ne.length;ht<St;++ht){var _t=Ne[ht];if(/\\[bdsw]/i.test(_t))qe.push(_t);else{var It=ue(_t),Ct;ht+2<St&&Ne[ht+1]==="-"?(Ct=ue(Ne[ht+2]),ht+=2):Ct=It,We.push([It,Ct]),Ct<65||It>122||(Ct<65||It>90||We.push([Math.max(65,It)|32,Math.min(Ct,90)|32]),Ct<97||It>122||We.push([Math.max(97,It)&-33,Math.min(Ct,122)&-33]))}}We.sort(function(W,Ce){return W[0]-Ce[0]||Ce[1]-W[1]});for(var y=[],C=[],ht=0;ht<We.length;++ht){var ot=We[ht];ot[0]<=C[1]+1?C[1]=Math.max(C[1],ot[1]):y.push(C=ot)}for(var ht=0;ht<y.length;++ht){var ot=y[ht];qe.push(he(ot[0])),ot[1]>ot[0]&&(ot[1]+1>ot[0]&&qe.push("-"),qe.push(he(ot[1])))}return qe.push("]"),qe.join("")}function De(Ae){for(var Ne=Ae.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")),We=Ne.length,Xe=[],qe=0,ht=0;qe<We;++qe){var St=Ne[qe];if(St==="(")++ht;else if(St.charAt(0)==="\\"){var _t=+St.substring(1);_t&&(_t<=ht?Xe[_t]=-1:Ne[qe]=he(_t))}}for(var qe=1;qe<Xe.length;++qe)Xe[qe]===-1&&(Xe[qe]=++me);for(var qe=0,ht=0;qe<We;++qe){var St=Ne[qe];if(St==="(")++ht,Xe[ht]||(Ne[qe]="(?:");else if(St.charAt(0)==="\\"){var _t=+St.substring(1);_t&&_t<=ht&&(Ne[qe]="\\"+Xe[_t])}}for(var qe=0;qe<We;++qe)Ne[qe]==="^"&&Ne[qe+1]!=="^"&&(Ne[qe]="");if(Ae.ignoreCase&&k)for(var qe=0;qe<We;++qe){var St=Ne[qe],It=St.charAt(0);St.length>=2&&It==="["?Ne[qe]=Z(St):It!=="\\"&&(Ne[qe]=St.replace(/[a-zA-Z]/g,function(C){var ot=C.charCodeAt(0);return"["+String.fromCharCode(ot&-33,ot|32)+"]"}))}return Ne.join("")}for(var Ue=[],we=0,L=oe.length;we<L;++we){var T=oe[we];if(T.global||T.multiline)throw new Error(""+T);Ue.push("(?:"+De(T)+")")}return new RegExp(Ue.join("|"),de?"gi":"g")}function x(oe,me){var k=/(?:^|\s)nocode(?:\s|$)/,de=[],we=0,L=[],T=0;function O(ue){var he=ue.nodeType;if(he==1){if(k.test(ue.className))return;for(var Z=ue.firstChild;Z;Z=Z.nextSibling)O(Z);var De=ue.nodeName.toLowerCase();(De==="br"||De==="li")&&(de[T]=`
|
|
|
`,L[T<<1]=we++,L[T++<<1|1]=ue)}else if(he==3||he==4){var Ue=ue.nodeValue;Ue.length&&(me?Ue=Ue.replace(/\r\n?/g,`
|
|
|
`):Ue=Ue.replace(/[ \t\r\n]+/g," "),de[T]=Ue,L[T<<1]=we,we+=Ue.length,L[T++<<1|1]=ue)}}return O(oe),{sourceCode:de.join("").replace(/\n$/,""),spans:L}}function S(oe,me,k,de,we){if(k){var L={sourceNode:oe,pre:1,langExtension:null,numberLines:null,sourceCode:k,spans:null,basePos:me,decorations:null};de(L),we.push.apply(we,L.decorations)}}var Q=/\S/;function be(oe){for(var me=void 0,k=oe.firstChild;k;k=k.nextSibling){var de=k.nodeType;me=de===1?me?oe:k:de===3&&Q.test(k.nodeValue)?oe:me}return me===oe?void 0:me}function Ve(oe,me){var k={},de;(function(){for(var T=oe.concat(me),O=[],ue={},he=0,Z=T.length;he<Z;++he){var De=T[he],Ue=De[3];if(Ue)for(var Ae=Ue.length;--Ae>=0;)k[Ue.charAt(Ae)]=De;var Ne=De[1],We=""+Ne;ue.hasOwnProperty(We)||(O.push(Ne),ue[We]=null)}O.push(/[\0-\uffff]/),de=re(O)})();var we=me.length,L=function(T){for(var O=T.sourceCode,ue=T.basePos,he=T.sourceNode,Z=[ue,Ie],De=0,Ue=O.match(de)||[],Ae={},Ne=0,We=Ue.length;Ne<We;++Ne){var Xe=Ue[Ne],qe=Ae[Xe],ht=void 0,St;if(typeof qe=="string")St=!1;else{var _t=k[Xe.charAt(0)];if(_t)ht=Xe.match(_t[1]),qe=_t[0];else{for(var It=0;It<we;++It)if(_t=me[It],ht=Xe.match(_t[1]),ht){qe=_t[0];break}ht||(qe=Ie)}St=qe.length>=5&&qe.substring(0,5)==="lang-",St&&!(ht&&typeof ht[1]=="string")&&(St=!1,qe=q),St||(Ae[Xe]=qe)}var Ct=De;if(De+=Xe.length,!St)Z.push(ue+Ct,qe);else{var y=ht[1],C=Xe.indexOf(y),ot=C+y.length;ht[2]&&(ot=Xe.length-ht[2].length,C=ot-y.length);var W=qe.substring(5);S(he,ue+Ct,Xe.substring(0,C),L,Z),S(he,ue+Ct+C,y,kt(W,y),Z),S(he,ue+Ct+ot,Xe.substring(ot),L,Z)}}T.decorations=Z};return L}function tt(oe){var me=[],k=[];oe.tripleQuotedStrings?me.push([ne,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?me.push([ne,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):me.push([ne,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&k.push([ne,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var de=oe.hashComments;de&&(oe.cStyleComments?(de>1?me.push([A,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):me.push([A,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),k.push([ne,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):me.push([A,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(k.push([A,/^\/\/[^\r\n]*/,null]),k.push([A,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var we=oe.regexLiterals;if(we){var L=we>1?"":`
|
|
|
\r`,T=L?".":"[\\S\\s]",O="/(?=[^/*"+L+"])(?:[^/\\x5B\\x5C"+L+"]|\\x5C"+T+"|\\x5B(?:[^\\x5C\\x5D"+L+"]|\\x5C"+T+")*(?:\\x5D|$))+/";k.push(["lang-regex",RegExp("^"+ye+"("+O+")")])}var ue=oe.types;ue&&k.push([B,ue]);var he=(""+oe.keywords).replace(/^ | $/g,"");he.length&&k.push([b,new RegExp("^(?:"+he.replace(/[\s,]+/g,"|")+")\\b"),null]),me.push([Ie,/^\s+/,null,` \r
|
|
|
\xA0`]);var Z="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(Z+="(?!s*/)"),k.push([X,/^@[a-z_$][a-z_$@0-9]*/i,null],[B,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Ie,/^[a-z_$][a-z_$@0-9]*/i,null],[X,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Ie,/^\\[\s\S]?/,null],[ge,new RegExp(Z),null]),Ve(me,k)}var Je=tt({keywords:F,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function et(oe,me,k){for(var de=/(?:^|\s)nocode(?:\s|$)/,we=/\r\n?|\n/,L=oe.ownerDocument,T=L.createElement("li");oe.firstChild;)T.appendChild(oe.firstChild);var O=[T];function ue(Ne){var We=Ne.nodeType;if(We==1&&!de.test(Ne.className))if(Ne.nodeName==="br")he(Ne),Ne.parentNode&&Ne.parentNode.removeChild(Ne);else for(var Xe=Ne.firstChild;Xe;Xe=Xe.nextSibling)ue(Xe);else if((We==3||We==4)&&k){var qe=Ne.nodeValue,ht=qe.match(we);if(ht){var St=qe.substring(0,ht.index);Ne.nodeValue=St;var _t=qe.substring(ht.index+ht[0].length);if(_t){var It=Ne.parentNode;It.insertBefore(L.createTextNode(_t),Ne.nextSibling)}he(Ne),St||Ne.parentNode.removeChild(Ne)}}}function he(Ne){for(;!Ne.nextSibling;)if(Ne=Ne.parentNode,!Ne)return;function We(ht,St){var _t=St?ht.cloneNode(!1):ht,It=ht.parentNode;if(It){var Ct=We(It,1),y=ht.nextSibling;Ct.appendChild(_t);for(var C=y;C;C=y)y=C.nextSibling,Ct.appendChild(C)}return _t}for(var Xe=We(Ne.nextSibling,0),qe;(qe=Xe.parentNode)&&qe.nodeType===1;)Xe=qe;O.push(Xe)}for(var Z=0;Z<O.length;++Z)ue(O[Z]);me===(me|0)&&O[0].setAttribute("value",me);var De=L.createElement("ol");De.className="linenums";for(var Ue=Math.max(0,me-1|0)||0,Z=0,Ae=O.length;Z<Ae;++Z)T=O[Z],T.className="L"+(Z+Ue)%10,T.firstChild||T.appendChild(L.createTextNode("\xA0")),De.appendChild(T);oe.appendChild(De)}function xt(oe){var me=/\bMSIE\s(\d+)/.exec(navigator.userAgent);me=me&&+me[1]<=8;var k=/\n/g,de=oe.sourceCode,we=de.length,L=0,T=oe.spans,O=T.length,ue=0,he=oe.decorations,Z=he.length,De=0;he[Z]=we;var Ue,Ae;for(Ae=Ue=0;Ae<Z;)he[Ae]!==he[Ae+2]?(he[Ue++]=he[Ae++],he[Ue++]=he[Ae++]):Ae+=2;for(Z=Ue,Ae=Ue=0;Ae<Z;){for(var Ne=he[Ae],We=he[Ae+1],Xe=Ae+2;Xe+2<=Z&&he[Xe+1]===We;)Xe+=2;he[Ue++]=Ne,he[Ue++]=We,Ae=Xe}Z=he.length=Ue;var qe=oe.sourceNode,ht="";qe&&(ht=qe.style.display,qe.style.display="none");try{for(var St=null;ue<O;){var _t=T[ue],It=T[ue+2]||we,Ct=he[De+2]||we,Xe=Math.min(It,Ct),y=T[ue+1],C;if(y.nodeType!==1&&(C=de.substring(L,Xe))){me&&(C=C.replace(k,"\r")),y.nodeValue=C;var ot=y.ownerDocument,W=ot.createElement("span");W.className=he[De+1];var Ce=y.parentNode;Ce.replaceChild(W,y),W.appendChild(y),L<It&&(T[ue+1]=y=ot.createTextNode(de.substring(Xe,It)),Ce.insertBefore(y,W.nextSibling))}L=Xe,L>=It&&(ue+=2),L>=Ct&&(De+=2)}}finally{qe&&(qe.style.display=ht)}}var gt={};function st(oe,me){for(var k=me.length;--k>=0;){var de=me[k];gt.hasOwnProperty(de)?ce.console&&console.warn("cannot override language handler %s",de):gt[de]=oe}}function kt(oe,me){return oe&>.hasOwnProperty(oe)||(oe=/^\s*</.test(me)?"default-markup":"default-code"),gt[oe]}st(Je,["default-code"]),st(Ve([],[[Ie,/^[^<?]+/],[He,/^<!\w[^>]*(?:>|$)/],[A,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ge,/^(?:<[%?]|[%?]>)/],["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"]),st(Ve([[Ie,/^[\s]+/,null,` \r
|
|
|
`],[ae,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Oe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[$,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[ge,/^[=<>\/]+/],["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"]),st(Ve([],[[ae,/^[\s\S]+/]]),["uq.val"]),st(tt({keywords:R,hashComments:!0,cStyleComments:!0,types:H}),["c","cc","cpp","cxx","cyc","m"]),st(tt({keywords:"null,true,false"}),["json"]),st(tt({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:H}),["cs"]),st(tt({keywords:M,cStyleComments:!0}),["java"]),st(tt({keywords:K,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),st(tt({keywords:Y,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),st(tt({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),st(tt({keywords:se,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),st(tt({keywords:w,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),st(tt({keywords:c,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),st(Ve([],[[ne,/^[\s\S]+/]]),["regex"]);function Ft(oe){var me=oe.langExtension;try{var k=x(oe.sourceNode,oe.pre),de=k.sourceCode;oe.sourceCode=de,oe.spans=k.spans,oe.basePos=0,kt(me,de)(oe),xt(oe)}catch(we){ce.console&&console.log(we&&we.stack||we)}}function cn(oe,me,k){var de=k||!1,we=me||null,L=document.createElement("div");L.innerHTML="<pre>"+oe+"</pre>",L=L.firstChild,de&&et(L,de,!0);var T={langExtension:we,numberLines:de,sourceNode:L,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ft(T),L.innerHTML}function Vt(oe,me){var k=me||document.body,de=k.ownerDocument||document;function we(_t){return k.getElementsByTagName(_t)}for(var L=[we("pre"),we("code"),we("xmp")],T=[],O=0;O<L.length;++O)for(var ue=0,he=L[O].length;ue<he;++ue)T.push(L[O][ue]);L=null;var Z=Date;Z.now||(Z={now:function(){return+new Date}});var De=0,Ue=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ae=/\bprettyprint\b/,Ne=/\bprettyprinted\b/,We=/pre|xmp/i,Xe=/^code$/i,qe=/^(?:pre|code|xmp)$/i,ht={};function St(){for(var _t=ce.PR_SHOULD_USE_CONTINUATION?Z.now()+250:1/0;De<T.length&&Z.now()<_t;De++){for(var It=T[De],Ct=ht,y=It;y=y.previousSibling;){var C=y.nodeType,ot=(C===7||C===8)&&y.nodeValue;if(ot?!/^\??prettify\b/.test(ot):C!==3||/\S/.test(y.nodeValue))break;if(ot){Ct={},ot.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Pe,Yt,mn){Ct[Yt]=mn});break}}var W=It.className;if((Ct!==ht||Ae.test(W))&&!Ne.test(W)){for(var Ce=!1,yn=It.parentNode;yn;yn=yn.parentNode){var Me=yn.tagName;if(qe.test(Me)&&yn.className&&Ae.test(yn.className)){Ce=!0;break}}if(!Ce){It.className+=" prettyprinted";var Ke=Ct.lang;if(!Ke){Ke=W.match(Ue);var Ze;!Ke&&(Ze=be(It))&&Xe.test(Ze.tagName)&&(Ke=Ze.className.match(Ue)),Ke&&(Ke=Ke[1])}var J;if(We.test(It.tagName))J=1;else{var fe=It.currentStyle,Te=de.defaultView,Be=fe?fe.whiteSpace:Te&&Te.getComputedStyle?Te.getComputedStyle(It,null).getPropertyValue("white-space"):0;J=Be&&Be.substring(0,3)==="pre"}var G=Ct.linenums;(G=G==="true"||+G)||(G=W.match(/\blinenums\b(?::(\d+))?/),G=G?G[1]&&G[1].length?+G[1]:!0:!1),G&&et(It,G,J);var Ot={langExtension:Ke,sourceNode:It,numberLines:G,pre:J,sourceCode:null,basePos:null,spans:null,decorations:null};Ft(Ot)}}}De<T.length?ce.setTimeout(St,250):typeof oe=="function"&&oe()}St()}var it=ce.PR={createSimpleLexer:Ve,registerLangHandler:st,sourceDecorator:tt,PR_ATTRIB_NAME:$,PR_ATTRIB_VALUE:ae,PR_COMMENT:A,PR_DECLARATION:He,PR_KEYWORD:b,PR_LITERAL:X,PR_NOCODE:ee,PR_PLAIN:Ie,PR_PUNCTUATION:ge,PR_SOURCE:q,PR_STRING:ne,PR_TAG:Oe,PR_TYPE:B,prettyPrintOne:P?ce.prettyPrintOne=cn:Re=cn,prettyPrint:V=P?ce.prettyPrint=Vt:V=Vt},At=ce.define;typeof At=="function"&&At.amd&&At("google-code-prettify",[],function(){return it})})()},25769:function(rn,nt,_){"use strict";var P=_(98040),N={"text/plain":"Text","text/html":"Url",default:"Text"},te="Copy to clipboard: #{key}, Enter";function Re(ce){var _e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return ce.replace(/#{\s*key\s*}/g,_e)}function V(ce,_e){var Ee,o,R,M,g,c,w=!1;_e||(_e={}),Ee=_e.debug||!1;try{R=P(),M=document.createRange(),g=document.getSelection(),c=document.createElement("span"),c.textContent=ce,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(Y){if(Y.stopPropagation(),_e.format)if(Y.preventDefault(),typeof Y.clipboardData=="undefined"){Ee&&console.warn("unable to use e.clipboardData"),Ee&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var se=N[_e.format]||N.default;window.clipboardData.setData(se,ce)}else Y.clipboardData.clearData(),Y.clipboardData.setData(_e.format,ce);_e.onCopy&&(Y.preventDefault(),_e.onCopy(Y.clipboardData))}),document.body.appendChild(c),M.selectNodeContents(c),g.addRange(M);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");w=!0}catch(Y){Ee&&console.error("unable to copy using execCommand: ",Y),Ee&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(_e.format||"text",ce),_e.onCopy&&_e.onCopy(window.clipboardData),w=!0}catch(se){Ee&&console.error("unable to copy using clipboardData: ",se),Ee&&console.error("falling back to prompt"),o=Re("message"in _e?_e.message:te),window.prompt(o,ce)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(M):g.removeAllRanges()),c&&document.body.removeChild(c),R()}return w}rn.exports=V},53184:function(rn,nt,_){"use strict";var P,N;function te(Re,V,ce){var _e=function(Ee,o){return Re.js_beautify(Ee,o)};return _e.js=Re.js_beautify,_e.css=V.css_beautify,_e.html=ce.html_beautify,_e.js_beautify=Re.js_beautify,_e.css_beautify=V.css_beautify,_e.html_beautify=ce.html_beautify,_e}P=[_(58553),_(87804),_(40998)],N=function(Re,V,ce){return te(Re,V,ce)}.apply(nt,P),N!==void 0&&(rn.exports=N)},87804:function(rn,nt){var _,P;(function(){var N;(function(){"use strict";var Re=[,,function(Ee){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 c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(g))return!0;return!1},o.prototype.set_indent=function(g,c){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=c||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 c=g.lastIndexOf(`
|
|
|
`);c!==-1?this.__character_count=g.length-c: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 R(g,c){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)),c=c||"",g.indent_level>0&&(c=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}R.prototype.get_indent_size=function(g,c){var w=this.__base_string_length;return c=c||0,g<0&&(w=0),w+=g*this.__indent_size,w+=c,w},R.prototype.get_indent_string=function(g,c){var w=this.__base_string;return c=c||0,g<0&&(g=0,w=""),c+=g*this.__indent_size,this.__ensure_cache(c),w+=this.__cache[c],w},R.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},R.prototype.__add_column=function(){var g=this.__cache.length,c=0,w="";this.__indent_size&&g>=this.__indent_size&&(c=Math.floor(g/this.__indent_size),g-=c*this.__indent_size,w=new Array(c+1).join(this.__indent_string)),g&&(w+=new Array(g+1).join(" ")),this.__cache.push(w)};function M(g,c){this.__indent_cache=new R(g,c),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()}M.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},M.prototype.get_line_number=function(){return this.__lines.length},M.prototype.get_indent_string=function(g,c){return this.__indent_cache.get_indent_string(g,c)},M.prototype.get_indent_size=function(g,c){return this.__indent_cache.get_indent_size(g,c)},M.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},M.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},M.prototype.get_code=function(g){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
|
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var w=this.__lines.join(`
|
|
|
`);return g!==`
|
|
|
`&&(w=w.replace(/[\n]/g,g)),w},M.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},M.prototype.set_indent=function(g,c){return g=g||0,c=c||0,this.next_line.set_indent(g,c),this.__lines.length>1?(this.current_line.set_indent(g,c),!0):(this.current_line.set_indent(),!1)},M.prototype.add_raw_token=function(g){for(var c=0;c<g.newlines;c++)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},M.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()},M.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(" "))},M.prototype.remove_indent=function(g){for(var c=this.__lines.length;g<c;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},M.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},M.prototype.just_added_newline=function(){return this.current_line.is_empty()},M.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},M.prototype.ensure_empty_line_above=function(g,c){for(var w=this.__lines.length-2;w>=0;){var v=this.__lines[w];if(v.is_empty())break;if(v.item(0).indexOf(g)!==0&&v.item(-1)!==c){this.__lines.splice(w+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}w--}},Ee.exports.Output=M},,,,function(Ee){function o(g,c){this.raw_options=R(g,c),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,c){var w=this.raw_options[g],v=c||[];return typeof w=="object"?w!==null&&typeof w.concat=="function"&&(v=w.concat()):typeof w=="string"&&(v=w.split(/[^a-zA-Z0-9_\/\-]+/)),v},o.prototype._get_boolean=function(g,c){var w=this.raw_options[g],v=w===void 0?!!c:!!w;return v},o.prototype._get_characters=function(g,c){var w=this.raw_options[g],v=c||"";return typeof w=="string"&&(v=w.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),v},o.prototype._get_number=function(g,c){var w=this.raw_options[g];c=parseInt(c,10),isNaN(c)&&(c=0);var v=parseInt(w,10);return isNaN(v)&&(v=c),v},o.prototype._get_selection=function(g,c,w){var v=this._get_selection_list(g,c,w);if(v.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return v[0]},o.prototype._get_selection_list=function(g,c,w){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(w=w||[c[0]],!this._is_valid_selection(w,c))throw new Error("Invalid Default Value!");var v=this._get_array(g,w);if(!this._is_valid_selection(v,c))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return v},o.prototype._is_valid_selection=function(g,c){return g.length&&c.length&&!g.some(function(w){return c.indexOf(w)===-1})};function R(g,c){var w={};g=M(g);var v;for(v in g)v!==c&&(w[v]=g[v]);if(c&&g[c])for(v in g[c])w[v]=g[c][v];return w}function M(g){var c={},w;for(w in g){var v=w.replace(/-/g,"_");c[v]=g[w]}return c}Ee.exports.Options=o,Ee.exports.normalizeOpts=M,Ee.exports.mergeOpts=R},,function(Ee){var o=RegExp.prototype.hasOwnProperty("sticky");function R(M){this.__input=M||"",this.__input_length=this.__input.length,this.__position=0}R.prototype.restart=function(){this.__position=0},R.prototype.back=function(){this.__position>0&&(this.__position-=1)},R.prototype.hasNext=function(){return this.__position<this.__input_length},R.prototype.next=function(){var M=null;return this.hasNext()&&(M=this.__input.charAt(this.__position),this.__position+=1),M},R.prototype.peek=function(M){var g=null;return M=M||0,M+=this.__position,M>=0&&M<this.__input_length&&(g=this.__input.charAt(M)),g},R.prototype.__match=function(M,g){M.lastIndex=g;var c=M.exec(this.__input);return c&&!(o&&M.sticky)&&c.index!==g&&(c=null),c},R.prototype.test=function(M,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(M,g):!1},R.prototype.testChar=function(M,g){var c=this.peek(g);return M.lastIndex=0,c!==null&&M.test(c)},R.prototype.match=function(M){var g=this.__match(M,this.__position);return g?this.__position+=g[0].length:g=null,g},R.prototype.read=function(M,g,c){var w="",v;return M&&(v=this.match(M),v&&(w+=v[0])),g&&(v||!M)&&(w+=this.readUntil(g,c)),w},R.prototype.readUntil=function(M,g){var c="",w=this.__position;M.lastIndex=this.__position;var v=M.exec(this.__input);return v?(w=v.index,g&&(w+=v[0].length)):w=this.__input_length,c=this.__input.substring(this.__position,w),this.__position=w,c},R.prototype.readUntilAfter=function(M){return this.readUntil(M,!0)},R.prototype.get_regexp=function(M,g){var c=null,w="g";return g&&o&&(w="y"),typeof M=="string"&&M!==""?c=new RegExp(M,w):M&&(c=new RegExp(M.source,w)),c},R.prototype.get_literal_regexp=function(M){return RegExp(M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},R.prototype.peekUntilAfter=function(M){var g=this.__position,c=this.readUntilAfter(M);return this.__position=g,c},R.prototype.lookBack=function(M){var g=this.__position-1;return g>=M.length&&this.__input.substring(g-M.length,g).toLowerCase()===M},Ee.exports.InputScanner=R},,,,,function(Ee){function o(R,M){R=typeof R=="string"?R:R.source,M=typeof M=="string"?M:M.source,this.__directives_block_pattern=new RegExp(R+/ beautify( \w+[:]\w+)+ /.source+M,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(R+/\sbeautify\signore:end\s/.source+M,"g")}o.prototype.get_directives=function(R){if(!R.match(this.__directives_block_pattern))return null;var M={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(R);g;)M[g[1]]=g[2],g=this.__directive_pattern.exec(R);return M},o.prototype.readIgnored=function(R){return R.readUntilAfter(this.__directives_end_ignore_pattern)},Ee.exports.Directives=o},,function(Ee,o,R){var M=R(16).Beautifier,g=R(17).Options;function c(w,v){var Y=new M(w,v);return Y.beautify()}Ee.exports=c,Ee.exports.defaultOptions=function(){return new g}},function(Ee,o,R){var M=R(17).Options,g=R(2).Output,c=R(8).InputScanner,w=R(13).Directives,v=new w(/\/\*/,/\*\//),Y=/\r\n|[\r\n]/,se=/\r\n|[\r\n]/g,K=/\s/,F=/(?:\s|\n)+/g,H=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ne=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function b(A,B){this._source_text=A||"",this._options=new M(B),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}b.prototype.eatString=function(A){var B="";for(this._ch=this._input.next();this._ch;){if(B+=this._ch,this._ch==="\\")B+=this._input.next();else if(A.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return B},b.prototype.eatWhitespace=function(A){for(var B=K.test(this._input.peek()),X=0;K.test(this._input.peek());)this._ch=this._input.next(),A&&this._ch===`
|
|
|
`&&(X===0||X<this._options.max_preserve_newlines)&&(X++,this._output.add_new_line(!0));return B},b.prototype.foundNestedPseudoClass=function(){for(var A=0,B=1,X=this._input.peek(B);X;){if(X==="{")return!0;if(X==="(")A+=1;else if(X===")"){if(A===0)return!1;A-=1}else if(X===";"||X==="}")return!1;B++,X=this._input.peek(B)}return!1},b.prototype.print_string=function(A){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(A)},b.prototype.preserveSingleSpace=function(A){A&&(this._output.space_before_token=!0)},b.prototype.indent=function(){this._indentLevel++},b.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var A=this._source_text,B=this._options.eol;B==="auto"&&(B=`
|
|
|
`,A&&Y.test(A||"")&&(B=A.match(Y)[0])),A=A.replace(se,`
|
|
|
`);var X=A.match(/^[\t ]*/)[0];this._output=new g(this._options,X),this._input=new c(A),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var ge=0,Ie=!1,Oe=!1,He=!1,q=!1,$=!1,ae=this._ch,ee=!1,ye,re,x;ye=this._input.read(F),re=ye!=="",x=ae,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),ae=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var S=this._input.read(H),Q=v.get_directives(S);Q&&Q.ignore==="start"&&(S+=v.readIgnored(this._input)),this.print_string(S),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(ne)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(re),this.print_string(this._ch);var be=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);be.match(/[ :]$/)&&(be=this.eatString(": ").replace(/\s+$/,""),this.print_string(be),this._output.space_before_token=!0),ge===0&&be.indexOf(":")!==-1&&(Oe=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(re),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Ve=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Ve.match(/[ :]$/)&&(Ve=this.eatString(": ").replace(/\s+$/,""),this.print_string(Ve),this._output.space_before_token=!0),ge===0&&Ve.indexOf(":")!==-1?(Oe=!0,this.indent()):Ve in this.NESTED_AT_RULE?(this._nestedLevel+=1,Ve in this.CONDITIONAL_GROUP_RULE&&(He=!0)):ge===0&&!Oe&&(q=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(re),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Oe&&(Oe=!1,this.outdent()),q=!1,He?(He=!1,Ie=this._indentLevel>=this._nestedLevel):Ie=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Ie&&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)):(x==="("?this._output.space_before_token=!1:x!==","&&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(),x==="{"&&this._output.trim(!0),Oe&&(this.outdent(),Oe=!1),this.print_string(this._ch),Ie=!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 tt=0;tt<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;tt++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[tt])){ee=!0;break}(Ie||He)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!q&&ge===0?(this.print_string(":"),Oe||(Oe=!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 Je=x==='"'||x==="'";this.preserveSingleSpace(Je||re),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")ee=!1,ge===0?(Oe&&(this.outdent(),Oe=!1),q=!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(),ge++,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(")")),ge&&(ge--,this.outdent()));else{var et=!1;this._input.lookBack("with")&&(et=!0),this.preserveSingleSpace(re||et),this.print_string(this._ch),Oe&&x==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),$=!0):(this.eatWhitespace(),ge++,this.indent())}else if(this._ch===")")ge&&(ge--,this.outdent()),$&&this._input.peek()===";"&&this._options.selector_separator_newline&&($=!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&&(!Oe||$)&&ge===0&&!q?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Oe&&ge===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&&K.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(re),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),K.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 xt=x==='"'||x==="'";this.preserveSingleSpace(xt||re),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&ee&&this._output.add_new_line()}var gt=this._output.get_code(B);return gt},Ee.exports.Beautifier=b},function(Ee,o,R){var M=R(6).Options;function g(c){M.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var w=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||w;var v=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var Y=0;Y<v.length;Y++)v[Y]!=="expand"?this.brace_style="collapse":this.brace_style=v[Y]}g.prototype=new M,Ee.exports.Options=g}],V={};function ce(Ee){var o=V[Ee];if(o!==void 0)return o.exports;var R=V[Ee]={exports:{}};return Re[Ee](R,R.exports,ce),R.exports}var _e=ce(15);N=_e})();var te=N;_=[],P=function(){return{css_beautify:te}}.apply(nt,_),P!==void 0&&(rn.exports=P)})()},40998:function(rn,nt,_){var P,N;(function(){var te;(function(){"use strict";var _e=[,,function(M){function g(v){this.__parent=v,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 v=new g(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},g.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},g.prototype.has_match=function(v){for(var Y=this.__items.length-1;Y>=0;Y--)if(this.__items[Y].match(v))return!0;return!1},g.prototype.set_indent=function(v,Y){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=Y||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 v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__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(v){this.__items.push(v);var Y=v.lastIndexOf(`
|
|
|
`);Y!==-1?this.__character_count=v.length-Y:this.__character_count+=v.length},g.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},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 v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function c(v,Y){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),Y=Y||"",v.indent_level>0&&(Y=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=Y,this.__base_string_length=Y.length}c.prototype.get_indent_size=function(v,Y){var se=this.__base_string_length;return Y=Y||0,v<0&&(se=0),se+=v*this.__indent_size,se+=Y,se},c.prototype.get_indent_string=function(v,Y){var se=this.__base_string;return Y=Y||0,v<0&&(v=0,se=""),Y+=v*this.__indent_size,this.__ensure_cache(Y),se+=this.__cache[Y],se},c.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var v=this.__cache.length,Y=0,se="";this.__indent_size&&v>=this.__indent_size&&(Y=Math.floor(v/this.__indent_size),v-=Y*this.__indent_size,se=new Array(Y+1).join(this.__indent_string)),v&&(se+=new Array(v+1).join(" ")),this.__cache.push(se)};function w(v,Y){this.__indent_cache=new c(v,Y),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.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()}w.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},w.prototype.get_line_number=function(){return this.__lines.length},w.prototype.get_indent_string=function(v,Y){return this.__indent_cache.get_indent_string(v,Y)},w.prototype.get_indent_size=function(v,Y){return this.__indent_cache.get_indent_size(v,Y)},w.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},w.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},w.prototype.get_code=function(v){this.trim(!0);var Y=this.current_line.pop();Y&&(Y[Y.length-1]===`
|
|
|
`&&(Y=Y.replace(/\n+$/g,"")),this.current_line.push(Y)),this._end_with_newline&&this.__add_outputline();var se=this.__lines.join(`
|
|
|
`);return v!==`
|
|
|
`&&(se=se.replace(/[\n]/g,v)),se},w.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},w.prototype.set_indent=function(v,Y){return v=v||0,Y=Y||0,this.next_line.set_indent(v,Y),this.__lines.length>1?(this.current_line.set_indent(v,Y),!0):(this.current_line.set_indent(),!1)},w.prototype.add_raw_token=function(v){for(var Y=0;Y<v.newlines;Y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},w.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},w.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(" "))},w.prototype.remove_indent=function(v){for(var Y=this.__lines.length;v<Y;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},w.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&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},w.prototype.just_added_newline=function(){return this.current_line.is_empty()},w.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},w.prototype.ensure_empty_line_above=function(v,Y){for(var se=this.__lines.length-2;se>=0;){var K=this.__lines[se];if(K.is_empty())break;if(K.item(0).indexOf(v)!==0&&K.item(-1)!==Y){this.__lines.splice(se+1,0,new g(this)),this.previous_line=this.__lines[this.__lines.length-2];break}se--}},M.exports.Output=w},function(M){function g(c,w,v,Y){this.type=c,this.text=w,this.comments_before=null,this.newlines=v||0,this.whitespace_before=Y||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}M.exports.Token=g},,,function(M){function g(v,Y){this.raw_options=c(v,Y),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(v,Y){var se=this.raw_options[v],K=Y||[];return typeof se=="object"?se!==null&&typeof se.concat=="function"&&(K=se.concat()):typeof se=="string"&&(K=se.split(/[^a-zA-Z0-9_\/\-]+/)),K},g.prototype._get_boolean=function(v,Y){var se=this.raw_options[v],K=se===void 0?!!Y:!!se;return K},g.prototype._get_characters=function(v,Y){var se=this.raw_options[v],K=Y||"";return typeof se=="string"&&(K=se.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),K},g.prototype._get_number=function(v,Y){var se=this.raw_options[v];Y=parseInt(Y,10),isNaN(Y)&&(Y=0);var K=parseInt(se,10);return isNaN(K)&&(K=Y),K},g.prototype._get_selection=function(v,Y,se){var K=this._get_selection_list(v,Y,se);if(K.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
|
|
|
`+Y+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return K[0]},g.prototype._get_selection_list=function(v,Y,se){if(!Y||Y.length===0)throw new Error("Selection list cannot be empty.");if(se=se||[Y[0]],!this._is_valid_selection(se,Y))throw new Error("Invalid Default Value!");var K=this._get_array(v,se);if(!this._is_valid_selection(K,Y))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
|
|
|
`+Y+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return K},g.prototype._is_valid_selection=function(v,Y){return v.length&&Y.length&&!v.some(function(se){return Y.indexOf(se)===-1})};function c(v,Y){var se={};v=w(v);var K;for(K in v)K!==Y&&(se[K]=v[K]);if(Y&&v[Y])for(K in v[Y])se[K]=v[Y][K];return se}function w(v){var Y={},se;for(se in v){var K=se.replace(/-/g,"_");Y[K]=v[se]}return Y}M.exports.Options=g,M.exports.normalizeOpts=w,M.exports.mergeOpts=c},,function(M){var g=RegExp.prototype.hasOwnProperty("sticky");function c(w){this.__input=w||"",this.__input_length=this.__input.length,this.__position=0}c.prototype.restart=function(){this.__position=0},c.prototype.back=function(){this.__position>0&&(this.__position-=1)},c.prototype.hasNext=function(){return this.__position<this.__input_length},c.prototype.next=function(){var w=null;return this.hasNext()&&(w=this.__input.charAt(this.__position),this.__position+=1),w},c.prototype.peek=function(w){var v=null;return w=w||0,w+=this.__position,w>=0&&w<this.__input_length&&(v=this.__input.charAt(w)),v},c.prototype.__match=function(w,v){w.lastIndex=v;var Y=w.exec(this.__input);return Y&&!(g&&w.sticky)&&Y.index!==v&&(Y=null),Y},c.prototype.test=function(w,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(w,v):!1},c.prototype.testChar=function(w,v){var Y=this.peek(v);return w.lastIndex=0,Y!==null&&w.test(Y)},c.prototype.match=function(w){var v=this.__match(w,this.__position);return v?this.__position+=v[0].length:v=null,v},c.prototype.read=function(w,v,Y){var se="",K;return w&&(K=this.match(w),K&&(se+=K[0])),v&&(K||!w)&&(se+=this.readUntil(v,Y)),se},c.prototype.readUntil=function(w,v){var Y="",se=this.__position;w.lastIndex=this.__position;var K=w.exec(this.__input);return K?(se=K.index,v&&(se+=K[0].length)):se=this.__input_length,Y=this.__input.substring(this.__position,se),this.__position=se,Y},c.prototype.readUntilAfter=function(w){return this.readUntil(w,!0)},c.prototype.get_regexp=function(w,v){var Y=null,se="g";return v&&g&&(se="y"),typeof w=="string"&&w!==""?Y=new RegExp(w,se):w&&(Y=new RegExp(w.source,se)),Y},c.prototype.get_literal_regexp=function(w){return RegExp(w.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(w){var v=this.__position,Y=this.readUntilAfter(w);return this.__position=v,Y},c.prototype.lookBack=function(w){var v=this.__position-1;return v>=w.length&&this.__input.substring(v-w.length,v).toLowerCase()===w},M.exports.InputScanner=c},function(M,g,c){var w=c(8).InputScanner,v=c(3).Token,Y=c(10).TokenStream,se=c(11).WhitespacePattern,K={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},F=function(H,ne){this._input=new w(H),this._options=ne||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new se(this._input)};F.prototype.tokenize=function(){this._input.restart(),this.__tokens=new Y,this._reset();for(var H,ne=new v(K.START,""),b=null,A=[],B=new Y;ne.type!==K.EOF;){for(H=this._get_next_token(ne,b);this._is_comment(H);)B.add(H),H=this._get_next_token(ne,b);B.isEmpty()||(H.comments_before=B,B=new Y),H.parent=b,this._is_opening(H)?(A.push(b),b=H):b&&this._is_closing(H,b)&&(H.opened=b,b.closed=H,b=A.pop(),H.parent=b),H.previous=ne,ne.next=H,this.__tokens.add(H),ne=H}return this.__tokens},F.prototype._is_first_token=function(){return this.__tokens.isEmpty()},F.prototype._reset=function(){},F.prototype._get_next_token=function(H,ne){this._readWhitespace();var b=this._input.read(/.+/g);return b?this._create_token(K.RAW,b):this._create_token(K.EOF,"")},F.prototype._is_comment=function(H){return!1},F.prototype._is_opening=function(H){return!1},F.prototype._is_closing=function(H,ne){return!1},F.prototype._create_token=function(H,ne){var b=new v(H,ne,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return b},F.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},M.exports.Tokenizer=F,M.exports.TOKEN=K},function(M){function g(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}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 c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},g.prototype.peek=function(c){var w=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(w=this.__tokens[c]),w},g.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},M.exports.TokenStream=g},function(M,g,c){var w=c(12).Pattern;function v(Y,se){w.call(this,Y,se),se?this._line_regexp=this._input.get_regexp(se._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}v.prototype=new w,v.prototype.__set_whitespace_patterns=function(Y,se){Y+="\\t ",se+="\\n\\r",this._match_pattern=this._input.get_regexp("["+Y+se+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+se+"]")},v.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var Y=this._input.read(this._match_pattern);if(Y===" ")this.whitespace_before_token=" ";else if(Y){var se=this.__split(this._newline_regexp,Y);this.newline_count=se.length-1,this.whitespace_before_token=se[this.newline_count]}return Y},v.prototype.matching=function(Y,se){var K=this._create();return K.__set_whitespace_patterns(Y,se),K._update(),K},v.prototype._create=function(){return new v(this._input,this)},v.prototype.__split=function(Y,se){Y.lastIndex=0;for(var K=0,F=[],H=Y.exec(se);H;)F.push(se.substring(K,H.index)),K=H.index+H[0].length,H=Y.exec(se);return K<se.length?F.push(se.substring(K,se.length)):F.push(""),F},M.exports.WhitespacePattern=v},function(M){function g(c,w){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,w&&(this._starting_pattern=this._input.get_regexp(w._starting_pattern,!0),this._match_pattern=this._input.get_regexp(w._match_pattern,!0),this._until_pattern=this._input.get_regexp(w._until_pattern),this._until_after=w._until_after)}g.prototype.read=function(){var c=this._input.read(this._starting_pattern);return(!this._starting_pattern||c)&&(c+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),c},g.prototype.read_match=function(){return this._input.match(this._match_pattern)},g.prototype.until_after=function(c){var w=this._create();return w._until_after=!0,w._until_pattern=this._input.get_regexp(c),w._update(),w},g.prototype.until=function(c){var w=this._create();return w._until_after=!1,w._until_pattern=this._input.get_regexp(c),w._update(),w},g.prototype.starting_with=function(c){var w=this._create();return w._starting_pattern=this._input.get_regexp(c,!0),w._update(),w},g.prototype.matching=function(c){var w=this._create();return w._match_pattern=this._input.get_regexp(c,!0),w._update(),w},g.prototype._create=function(){return new g(this._input,this)},g.prototype._update=function(){},M.exports.Pattern=g},function(M){function g(c,w){c=typeof c=="string"?c:c.source,w=typeof w=="string"?w:w.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+w,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+w,"g")}g.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var w={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(c);v;)w[v[1]]=v[2],v=this.__directive_pattern.exec(c);return w},g.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},M.exports.Directives=g},function(M,g,c){var w=c(12).Pattern,v={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function Y(se,K){w.call(this,se,K),this.__template_pattern=null,this._disabled=Object.assign({},v),this._excluded=Object.assign({},v),K&&(this.__template_pattern=this._input.get_regexp(K.__template_pattern),this._excluded=Object.assign(this._excluded,K._excluded),this._disabled=Object.assign(this._disabled,K._disabled));var F=new w(se);this.__patterns={handlebars_comment:F.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:F.starting_with(/{{{/).until_after(/}}}/),handlebars:F.starting_with(/{{/).until_after(/}}/),php:F.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:F.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:F.starting_with(/{%/).until_after(/%}/),django_value:F.starting_with(/{{/).until_after(/}}/),django_comment:F.starting_with(/{#/).until_after(/#}/),smarty:F.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:F.starting_with(/{\*/).until_after(/\*}/),smarty_literal:F.starting_with(/{literal}/).until_after(/{\/literal}/)}}Y.prototype=new w,Y.prototype._create=function(){return new Y(this._input,this)},Y.prototype._update=function(){this.__set_templated_pattern()},Y.prototype.disable=function(se){var K=this._create();return K._disabled[se]=!0,K._update(),K},Y.prototype.read_options=function(se){var K=this._create();for(var F in v)K._disabled[F]=se.templating.indexOf(F)===-1;return K._update(),K},Y.prototype.exclude=function(se){var K=this._create();return K._excluded[se]=!0,K._update(),K},Y.prototype.read=function(){var se="";this._match_pattern?se=this._input.read(this._starting_pattern):se=this._input.read(this._starting_pattern,this.__template_pattern);for(var K=this._read_template();K;)this._match_pattern?K+=this._input.read(this._match_pattern):K+=this._input.readUntil(this.__template_pattern),se+=K,K=this._read_template();return this._until_after&&(se+=this._input.readUntilAfter(this._until_pattern)),se},Y.prototype.__set_templated_pattern=function(){var se=[];this._disabled.php||se.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||se.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||se.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||se.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(se.push(this.__patterns.django._starting_pattern.source),se.push(this.__patterns.django_value._starting_pattern.source),se.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||se.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&se.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+se.join("|")+")")},Y.prototype._read_template=function(){var se="",K=this._input.peek();if(K==="<"){var F=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&F==="?"&&(se=se||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&F==="%"&&(se=se||this.__patterns.erb.read())}else K==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(se=se||this.__patterns.handlebars_comment.read(),se=se||this.__patterns.handlebars_unescaped.read(),se=se||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(se=se||this.__patterns.django_value.read()),this._excluded.django||(se=se||this.__patterns.django_comment.read(),se=se||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(se=se||this.__patterns.smarty_comment.read(),se=se||this.__patterns.smarty_literal.read(),se=se||this.__patterns.smarty.read()));return se},M.exports.TemplatablePattern=Y},,,,function(M,g,c){var w=c(19).Beautifier,v=c(20).Options;function Y(se,K,F,H){var ne=new w(se,K,F,H);return ne.beautify()}M.exports=Y,M.exports.defaultOptions=function(){return new v}},function(M,g,c){var w=c(20).Options,v=c(2).Output,Y=c(21).Tokenizer,se=c(21).TOKEN,K=/\r\n|[\r\n]/,F=/\r\n|[\r\n]/g,H=function(q,$){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=q.max_preserve_newlines,this.preserve_newlines=q.preserve_newlines,this._output=new v(q,$)};H.prototype.current_line_has_match=function(q){return this._output.current_line.has_match(q)},H.prototype.set_space_before_token=function(q,$){this._output.space_before_token=q,this._output.non_breaking_space=$},H.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},H.prototype.add_raw_token=function(q){this._output.add_raw_token(q)},H.prototype.print_preserved_newlines=function(q){var $=0;q.type!==se.TEXT&&q.previous.type!==se.TEXT&&($=q.newlines?1:0),this.preserve_newlines&&($=q.newlines<this.max_preserve_newlines+1?q.newlines:this.max_preserve_newlines+1);for(var ae=0;ae<$;ae++)this.print_newline(ae>0);return $!==0},H.prototype.traverse_whitespace=function(q){return q.whitespace_before||q.newlines?(this.print_preserved_newlines(q)||(this._output.space_before_token=!0),!0):!1},H.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},H.prototype.print_newline=function(q){this._output.add_new_line(q)},H.prototype.print_token=function(q){q.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(q.text))},H.prototype.indent=function(){this.indent_level++},H.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},H.prototype.get_full_indent=function(q){return q=this.indent_level+(q||0),q<1?"":this._output.get_indent_string(q)};var ne=function(q){for(var $=null,ae=q.next;ae.type!==se.EOF&&q.closed!==ae;){if(ae.type===se.ATTRIBUTE&&ae.text==="type"){ae.next&&ae.next.type===se.EQUALS&&ae.next.next&&ae.next.next.type===se.VALUE&&($=ae.next.next.text);break}ae=ae.next}return $},b=function(q,$){var ae=null,ee=null;return $.closed?(q==="script"?ae="text/javascript":q==="style"&&(ae="text/css"),ae=ne($)||ae,ae.search("text/css")>-1?ee="css":ae.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?ee="javascript":ae.search(/(text|application|dojo)\/(x-)?(html)/)>-1?ee="html":ae.search(/test\/null/)>-1&&(ee="null"),ee):null};function A(q,$){return $.indexOf(q)!==-1}function B(q,$,ae){this.parent=q||null,this.tag=$?$.tag_name:"",this.indent_level=ae||0,this.parser_token=$||null}function X(q){this._printer=q,this._current_frame=null}X.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},X.prototype.record_tag=function(q){var $=new B(this._current_frame,q,this._printer.indent_level);this._current_frame=$},X.prototype._try_pop_frame=function(q){var $=null;return q&&($=q.parser_token,this._printer.indent_level=q.indent_level,this._current_frame=q.parent),$},X.prototype._get_frame=function(q,$){for(var ae=this._current_frame;ae&&q.indexOf(ae.tag)===-1;){if($&&$.indexOf(ae.tag)!==-1){ae=null;break}ae=ae.parent}return ae},X.prototype.try_pop=function(q,$){var ae=this._get_frame([q],$);return this._try_pop_frame(ae)},X.prototype.indent_to_tag=function(q){var $=this._get_frame(q);$&&(this._printer.indent_level=$.indent_level)};function ge(q,$,ae,ee){this._source_text=q||"",$=$||{},this._js_beautify=ae,this._css_beautify=ee,this._tag_stack=null;var ye=new w($,"html");this._options=ye,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"}ge.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var q=this._source_text,$=this._options.eol;this._options.eol==="auto"&&($=`
|
|
|
`,q&&K.test(q)&&($=q.match(K)[0])),q=q.replace(F,`
|
|
|
`);var ae=q.match(/^[\t ]*/)[0],ee={text:"",type:""},ye=new Ie(this._options),re=new H(this._options,ae),x=new Y(q,this._options).tokenize();this._tag_stack=new X(re);for(var S=null,Q=x.next();Q.type!==se.EOF;)Q.type===se.TAG_OPEN||Q.type===se.COMMENT?(S=this._handle_tag_open(re,Q,ye,ee,x),ye=S):Q.type===se.ATTRIBUTE||Q.type===se.EQUALS||Q.type===se.VALUE||Q.type===se.TEXT&&!ye.tag_complete?S=this._handle_inside_tag(re,Q,ye,ee):Q.type===se.TAG_CLOSE?S=this._handle_tag_close(re,Q,ye):Q.type===se.TEXT?S=this._handle_text(re,Q,ye):Q.type===se.CONTROL_FLOW_OPEN?S=this._handle_control_flow_open(re,Q):Q.type===se.CONTROL_FLOW_CLOSE?S=this._handle_control_flow_close(re,Q):re.add_raw_token(Q),ee=S,Q=x.next();var be=re._output.get_code($);return be},ge.prototype._handle_control_flow_open=function(q,$){var ae={text:$.text,type:$.type};return q.set_space_before_token($.newlines||$.whitespace_before!=="",!0),$.newlines?q.print_preserved_newlines($):q.set_space_before_token($.newlines||$.whitespace_before!=="",!0),q.print_token($),q.indent(),ae},ge.prototype._handle_control_flow_close=function(q,$){var ae={text:$.text,type:$.type};return q.deindent(),$.newlines?q.print_preserved_newlines($):q.set_space_before_token($.newlines||$.whitespace_before!=="",!0),q.print_token($),ae},ge.prototype._handle_tag_close=function(q,$,ae){var ee={text:$.text,type:$.type};return q.alignment_size=0,ae.tag_complete=!0,q.set_space_before_token($.newlines||$.whitespace_before!=="",!0),ae.is_unformatted?q.add_raw_token($):(ae.tag_start_char==="<"&&(q.set_space_before_token($.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&ae.has_wrapped_attrs&&q.print_newline(!1)),q.print_token($)),ae.indent_content&&!(ae.is_unformatted||ae.is_content_unformatted)&&(q.indent(),ae.indent_content=!1),!ae.is_inline_element&&!(ae.is_unformatted||ae.is_content_unformatted)&&q.set_wrap_point(),ee},ge.prototype._handle_inside_tag=function(q,$,ae,ee){var ye=ae.has_wrapped_attrs,re={text:$.text,type:$.type};return q.set_space_before_token($.newlines||$.whitespace_before!=="",!0),ae.is_unformatted?q.add_raw_token($):ae.tag_start_char==="{"&&$.type===se.TEXT?q.print_preserved_newlines($)?($.newlines=0,q.add_raw_token($)):q.print_token($):($.type===se.ATTRIBUTE?q.set_space_before_token(!0):($.type===se.EQUALS||$.type===se.VALUE&&$.previous.type===se.EQUALS)&&q.set_space_before_token(!1),$.type===se.ATTRIBUTE&&ae.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(q.traverse_whitespace($),ye=ye||$.newlines!==0),this._is_wrap_attributes_force&&ae.attr_count>=this._options.wrap_attributes_min_attrs&&(ee.type!==se.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(q.print_newline(!1),ye=!0)),q.print_token($),ye=ye||q.previous_token_wrapped(),ae.has_wrapped_attrs=ye),re},ge.prototype._handle_text=function(q,$,ae){var ee={text:$.text,type:"TK_CONTENT"};return ae.custom_beautifier_name?this._print_custom_beatifier_text(q,$,ae):ae.is_unformatted||ae.is_content_unformatted?q.add_raw_token($):(q.traverse_whitespace($),q.print_token($)),ee},ge.prototype._print_custom_beatifier_text=function(q,$,ae){var ee=this;if($.text!==""){var ye=$.text,re,x=1,S="",Q="";ae.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?re=this._js_beautify:ae.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?re=this._css_beautify:ae.custom_beautifier_name==="html"&&(re=function(xt,gt){var st=new ge(xt,gt,ee._js_beautify,ee._css_beautify);return st.beautify()}),this._options.indent_scripts==="keep"?x=0:this._options.indent_scripts==="separate"&&(x=-q.indent_level);var be=q.get_full_indent(x);if(ye=ye.replace(/\n[ \t]*$/,""),ae.custom_beautifier_name!=="html"&&ye[0]==="<"&&ye.match(/^(<!--|<!\[CDATA\[)/)){var Ve=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ye);if(!Ve){q.add_raw_token($);return}S=be+Ve[1]+`
|
|
|
`,ye=Ve[4],Ve[5]&&(Q=be+Ve[5]),ye=ye.replace(/\n[ \t]*$/,""),(Ve[2]||Ve[3].indexOf(`
|
|
|
`)!==-1)&&(Ve=Ve[3].match(/[ \t]+$/),Ve&&($.whitespace_before=Ve[0]))}if(ye)if(re){var tt=function(){this.eol=`
|
|
|
`};tt.prototype=this._options.raw_options;var Je=new tt;ye=re(be+ye,Je)}else{var et=$.whitespace_before;et&&(ye=ye.replace(new RegExp(`
|
|
|
(`+et+")?","g"),`
|
|
|
`)),ye=be+ye.replace(/\n/g,`
|
|
|
`+be)}S&&(ye?ye=S+ye+`
|
|
|
`+Q:ye=S+Q),q.print_newline(!1),ye&&($.text=ye,$.whitespace_before="",$.newlines=0,q.add_raw_token($),q.print_newline(!0))}},ge.prototype._handle_tag_open=function(q,$,ae,ee,ye){var re=this._get_tag_open_token($);if((ae.is_unformatted||ae.is_content_unformatted)&&!ae.is_empty_element&&$.type===se.TAG_OPEN&&!re.is_start_tag?(q.add_raw_token($),re.start_tag_token=this._tag_stack.try_pop(re.tag_name)):(q.traverse_whitespace($),this._set_tag_position(q,$,re,ae,ee),re.is_inline_element||q.set_wrap_point(),q.print_token($)),re.is_start_tag&&this._is_wrap_attributes_force){var x=0,S;do S=ye.peek(x),S.type===se.ATTRIBUTE&&(re.attr_count+=1),x+=1;while(S.type!==se.EOF&&S.type!==se.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(re.alignment_size=$.text.length+1),!re.tag_complete&&!re.is_unformatted&&(q.alignment_size=re.alignment_size),re};var Ie=function(q,$,ae){if(this.parent=$||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="",!ae)this.tag_complete=!0;else{var ee;this.tag_start_char=ae.text[0],this.text=ae.text,this.tag_start_char==="<"?(ee=ae.text.match(/^<([^\s>]*)/),this.tag_check=ee?ee[1]:""):(ee=ae.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=ee?ee[1]:"",(ae.text.startsWith("{{#>")||ae.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&ae.next!==null?this.tag_check=ae.next.text.split(" ")[0]:this.tag_check=ae.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),ae.type===se.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||ae.closed&&ae.closed.text==="/>";var ye=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ye=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!q.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ye)))}};ge.prototype._get_tag_open_token=function(q){var $=new Ie(this._options,this._tag_stack.get_parser_token(),q);return $.alignment_size=this._options.wrap_attributes_indent_size,$.is_end_tag=$.is_end_tag||A($.tag_check,this._options.void_elements),$.is_empty_element=$.tag_complete||$.is_start_tag&&$.is_end_tag,$.is_unformatted=!$.tag_complete&&A($.tag_check,this._options.unformatted),$.is_content_unformatted=!$.is_empty_element&&A($.tag_check,this._options.content_unformatted),$.is_inline_element=A($.tag_name,this._options.inline)||this._options.inline_custom_elements&&$.tag_name.includes("-")||$.tag_start_char==="{",$},ge.prototype._set_tag_position=function(q,$,ae,ee,ye){if(ae.is_empty_element||(ae.is_end_tag?ae.start_tag_token=this._tag_stack.try_pop(ae.tag_name):(this._do_optional_end_element(ae)&&(ae.is_inline_element||q.print_newline(!1)),this._tag_stack.record_tag(ae),(ae.tag_name==="script"||ae.tag_name==="style")&&!(ae.is_unformatted||ae.is_content_unformatted)&&(ae.custom_beautifier_name=b(ae.tag_check,$)))),A(ae.tag_check,this._options.extra_liners)&&(q.print_newline(!1),q._output.just_added_blankline()||q.print_newline(!0)),ae.is_empty_element){if(ae.tag_start_char==="{"&&ae.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),ae.indent_content=!0;var re=q.current_line_has_match(/{{#if/);re||q.print_newline(!1)}ae.tag_name==="!--"&&ye.type===se.TAG_CLOSE&&ee.is_end_tag&&ae.text.indexOf(`
|
|
|
`)===-1||(ae.is_inline_element||ae.is_unformatted||q.print_newline(!1),this._calcluate_parent_multiline(q,ae))}else if(ae.is_end_tag){var x=!1;x=ae.start_tag_token&&ae.start_tag_token.multiline_content,x=x||!ae.is_inline_element&&!(ee.is_inline_element||ee.is_unformatted)&&!(ye.type===se.TAG_CLOSE&&ae.start_tag_token===ee)&&ye.type!=="TK_CONTENT",(ae.is_content_unformatted||ae.is_unformatted)&&(x=!1),x&&q.print_newline(!1)}else ae.indent_content=!ae.custom_beautifier_name,ae.tag_start_char==="<"&&(ae.tag_name==="html"?ae.indent_content=this._options.indent_inner_html:ae.tag_name==="head"?ae.indent_content=this._options.indent_head_inner_html:ae.tag_name==="body"&&(ae.indent_content=this._options.indent_body_inner_html)),!(ae.is_inline_element||ae.is_unformatted)&&(ye.type!=="TK_CONTENT"||ae.is_content_unformatted)&&q.print_newline(!1),this._calcluate_parent_multiline(q,ae)},ge.prototype._calcluate_parent_multiline=function(q,$){$.parent&&q._output.just_added_newline()&&!(($.is_inline_element||$.is_unformatted)&&$.parent.is_inline_element)&&($.parent.multiline_content=!0)};var Oe=["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"],He=["a","audio","del","ins","map","noscript","video"];ge.prototype._do_optional_end_element=function(q){var $=null;if(!(q.is_empty_element||!q.is_start_tag||!q.parent)){if(q.tag_name==="body")$=$||this._tag_stack.try_pop("head");else if(q.tag_name==="li")$=$||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(q.tag_name==="dd"||q.tag_name==="dt")$=$||this._tag_stack.try_pop("dt",["dl"]),$=$||this._tag_stack.try_pop("dd",["dl"]);else if(q.parent.tag_name==="p"&&Oe.indexOf(q.tag_name)!==-1){var ae=q.parent.parent;(!ae||He.indexOf(ae.tag_name)===-1)&&($=$||this._tag_stack.try_pop("p"))}else q.tag_name==="rp"||q.tag_name==="rt"?($=$||this._tag_stack.try_pop("rt",["ruby","rtc"]),$=$||this._tag_stack.try_pop("rp",["ruby","rtc"])):q.tag_name==="optgroup"?$=$||this._tag_stack.try_pop("optgroup",["select"]):q.tag_name==="option"?$=$||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):q.tag_name==="colgroup"?$=$||this._tag_stack.try_pop("caption",["table"]):q.tag_name==="thead"?($=$||this._tag_stack.try_pop("caption",["table"]),$=$||this._tag_stack.try_pop("colgroup",["table"])):q.tag_name==="tbody"||q.tag_name==="tfoot"?($=$||this._tag_stack.try_pop("caption",["table"]),$=$||this._tag_stack.try_pop("colgroup",["table"]),$=$||this._tag_stack.try_pop("thead",["table"]),$=$||this._tag_stack.try_pop("tbody",["table"])):q.tag_name==="tr"?($=$||this._tag_stack.try_pop("caption",["table"]),$=$||this._tag_stack.try_pop("colgroup",["table"]),$=$||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(q.tag_name==="th"||q.tag_name==="td")&&($=$||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),$=$||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return q.parent=this._tag_stack.get_parser_token(),$}},M.exports.Beautifier=ge},function(M,g,c){var w=c(6).Options;function v(Y){w.call(this,Y,"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"])}v.prototype=new w,M.exports.Options=v},function(M,g,c){var w=c(9).Tokenizer,v=c(9).TOKEN,Y=c(13).Directives,se=c(14).TemplatablePattern,K=c(12).Pattern,F={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:v.START,RAW:v.RAW,EOF:v.EOF},H=new Y(/<\!--/,/-->/),ne=function(b,A){w.call(this,b,A),this._current_tag_name="";var B=new se(this._input).read_options(this._options),X=new K(this._input);if(this.__patterns={word:B.until(/[\n\r\t <]/),word_control_flow_close_excluded:B.until(/[\n\r\t <}]/),single_quote:B.until_after(/'/),double_quote:B.until_after(/"/),attribute:B.until(/[\n\r\t =>]|\/>/),element_name:B.until(/[\n\r\t >\/]/),angular_control_flow_start:X.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:X.starting_with(/{{!--/).until_after(/--}}/),handlebars:X.starting_with(/{{/).until_after(/}}/),handlebars_open:X.until(/[\n\r\t }]/),handlebars_raw_close:X.until(/}}/),comment:X.starting_with(/<!--/).until_after(/-->/),cdata:X.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:X.starting_with(/<!\[/).until_after(/]>/),processing:X.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 ge=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=X.matching(ge).until_after(ge)}};ne.prototype=new w,ne.prototype._is_comment=function(b){return!1},ne.prototype._is_opening=function(b){return b.type===F.TAG_OPEN||b.type===F.CONTROL_FLOW_OPEN},ne.prototype._is_closing=function(b,A){return b.type===F.TAG_CLOSE&&A&&((b.text===">"||b.text==="/>")&&A.text[0]==="<"||b.text==="}}"&&A.text[0]==="{"&&A.text[1]==="{")||b.type===F.CONTROL_FLOW_CLOSE&&b.text==="}"&&A.text.endsWith("{")},ne.prototype._reset=function(){this._current_tag_name=""},ne.prototype._get_next_token=function(b,A){var B=null;this._readWhitespace();var X=this._input.peek();return X===null?this._create_token(F.EOF,""):(B=B||this._read_open_handlebars(X,A),B=B||this._read_attribute(X,b,A),B=B||this._read_close(X,A),B=B||this._read_script_and_style(X,b),B=B||this._read_control_flows(X,A),B=B||this._read_raw_content(X,b,A),B=B||this._read_content_word(X,A),B=B||this._read_comment_or_cdata(X),B=B||this._read_processing(X),B=B||this._read_open(X,A),B=B||this._create_token(F.UNKNOWN,this._input.next()),B)},ne.prototype._read_comment_or_cdata=function(b){var A=null,B=null,X=null;if(b==="<"){var ge=this._input.peek(1);ge==="!"&&(B=this.__patterns.comment.read(),B?(X=H.get_directives(B),X&&X.ignore==="start"&&(B+=H.readIgnored(this._input))):B=this.__patterns.cdata.read()),B&&(A=this._create_token(F.COMMENT,B),A.directives=X)}return A},ne.prototype._read_processing=function(b){var A=null,B=null,X=null;if(b==="<"){var ge=this._input.peek(1);(ge==="!"||ge==="?")&&(B=this.__patterns.conditional_comment.read(),B=B||this.__patterns.processing.read()),B&&(A=this._create_token(F.COMMENT,B),A.directives=X)}return A},ne.prototype._read_open=function(b,A){var B=null,X=null;return(!A||A.type===F.CONTROL_FLOW_OPEN)&&b==="<"&&(B=this._input.next(),this._input.peek()==="/"&&(B+=this._input.next()),B+=this.__patterns.element_name.read(),X=this._create_token(F.TAG_OPEN,B)),X},ne.prototype._read_open_handlebars=function(b,A){var B=null,X=null;return(!A||A.type===F.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&b==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(B=this.__patterns.handlebars_comment.read(),B=B||this.__patterns.handlebars.read(),X=this._create_token(F.COMMENT,B)):(B=this.__patterns.handlebars_open.read(),X=this._create_token(F.TAG_OPEN,B))),X},ne.prototype._read_control_flows=function(b,A){var B="",X=null;if(!this._options.templating.includes("angular"))return X;if(b==="@"){if(B=this.__patterns.angular_control_flow_start.read(),B==="")return X;for(var ge=B.endsWith("(")?1:0,Ie=0;!(B.endsWith("{")&&ge===Ie);){var Oe=this._input.next();if(Oe===null)break;Oe==="("?ge++:Oe===")"&&Ie++,B+=Oe}X=this._create_token(F.CONTROL_FLOW_OPEN,B)}else b==="}"&&A&&A.type===F.CONTROL_FLOW_OPEN&&(B=this._input.next(),X=this._create_token(F.CONTROL_FLOW_CLOSE,B));return X},ne.prototype._read_close=function(b,A){var B=null,X=null;return A&&A.type===F.TAG_OPEN&&(A.text[0]==="<"&&(b===">"||b==="/"&&this._input.peek(1)===">")?(B=this._input.next(),b==="/"&&(B+=this._input.next()),X=this._create_token(F.TAG_CLOSE,B)):A.text[0]==="{"&&b==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),X=this._create_token(F.TAG_CLOSE,"}}"))),X},ne.prototype._read_attribute=function(b,A,B){var X=null,ge="";if(B&&B.text[0]==="<")if(b==="=")X=this._create_token(F.EQUALS,this._input.next());else if(b==='"'||b==="'"){var Ie=this._input.next();b==='"'?Ie+=this.__patterns.double_quote.read():Ie+=this.__patterns.single_quote.read(),X=this._create_token(F.VALUE,Ie)}else ge=this.__patterns.attribute.read(),ge&&(A.type===F.EQUALS?X=this._create_token(F.VALUE,ge):X=this._create_token(F.ATTRIBUTE,ge));return X},ne.prototype._is_content_unformatted=function(b){return this._options.void_elements.indexOf(b)===-1&&(this._options.content_unformatted.indexOf(b)!==-1||this._options.unformatted.indexOf(b)!==-1)},ne.prototype._read_raw_content=function(b,A,B){var X="";if(B&&B.text[0]==="{")X=this.__patterns.handlebars_raw_close.read();else if(A.type===F.TAG_CLOSE&&A.opened.text[0]==="<"&&A.text[0]!=="/"){var ge=A.opened.text.substr(1).toLowerCase();this._is_content_unformatted(ge)&&(X=this._input.readUntil(new RegExp("</"+ge+"[\\n\\r\\t ]*?>","ig")))}return X?this._create_token(F.TEXT,X):null},ne.prototype._read_script_and_style=function(b,A){if(A.type===F.TAG_CLOSE&&A.opened.text[0]==="<"&&A.text[0]!=="/"){var B=A.opened.text.substr(1).toLowerCase();if(B==="script"||B==="style"){var X=this._read_comment_or_cdata(b);if(X)return X.type=F.TEXT,X;var ge=this._input.readUntil(new RegExp("</"+B+"[\\n\\r\\t ]*?>","ig"));if(ge)return this._create_token(F.TEXT,ge)}}return null},ne.prototype._read_content_word=function(b,A){var B="";return this._options.unformatted_content_delimiter&&b===this._options.unformatted_content_delimiter[0]&&(B=this.__patterns.unformatted_content_delimiter.read()),B||(B=A&&A.type===F.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),B?this._create_token(F.TEXT,B):null},M.exports.Tokenizer=ne,M.exports.TOKEN=F}],Ee={};function o(M){var g=Ee[M];if(g!==void 0)return g.exports;var c=Ee[M]={exports:{}};return _e[M](c,c.exports,o),c.exports}var R=o(18);te=R})();var Re=te;if(1)P=[_,_(58553),_(87804)],N=function(_e){var Ee=_(58553),o=_(87804);return{html_beautify:function(R,M){return Re(R,M,Ee.js_beautify,o.css_beautify)}}}.apply(nt,P),N!==void 0&&(rn.exports=N);else var V,ce})()},58553:function(rn,nt){var _,P;(function(){var N;(function(){"use strict";var Re=[function(Ee,o,R){var M=R(1).Beautifier,g=R(5).Options;function c(w,v){var Y=new M(w,v);return Y.beautify()}Ee.exports=c,Ee.exports.defaultOptions=function(){return new g}},function(Ee,o,R){var M=R(2).Output,g=R(3).Token,c=R(4),w=R(5).Options,v=R(7).Tokenizer,Y=R(7).line_starters,se=R(7).positionable_operators,K=R(7).TOKEN;function F(S,Q){return Q.indexOf(S)!==-1}function H(S){return S.replace(/^\s+/g,"")}function ne(S){for(var Q={},be=0;be<S.length;be++)Q[S[be].replace(/-/g,"_")]=S[be];return Q}function b(S,Q){return S&&S.type===K.RESERVED&&S.text===Q}function A(S,Q){return S&&S.type===K.RESERVED&&F(S.text,Q)}var B=["case","return","do","if","throw","else","await","break","continue","async"],X=["before-newline","after-newline","preserve-newline"],ge=ne(X),Ie=[ge.before_newline,ge.preserve_newline],Oe={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function He(S,Q){Q.multiline_frame||Q.mode===Oe.ForInitializer||Q.mode===Oe.Conditional||S.remove_indent(Q.start_line_index)}function q(S){S=S.replace(c.allLineBreaks,`
|
|
|
`);for(var Q=[],be=S.indexOf(`
|
|
|
`);be!==-1;)Q.push(S.substring(0,be)),S=S.substring(be+1),be=S.indexOf(`
|
|
|
`);return S.length&&Q.push(S),Q}function $(S){return S===Oe.ArrayLiteral}function ae(S){return F(S,[Oe.Expression,Oe.ForInitializer,Oe.Conditional])}function ee(S,Q){for(var be=0;be<S.length;be++){var Ve=S[be].trim();if(Ve.charAt(0)!==Q)return!1}return!0}function ye(S,Q){for(var be=0,Ve=S.length,tt;be<Ve;be++)if(tt=S[be],tt&&tt.indexOf(Q)!==0)return!1;return!0}function re(S,Q){Q=Q||{},this._source_text=S||"",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 w(Q)}re.prototype.create_flags=function(S,Q){var be=0;S&&(be=S.indentation_level,!this._output.just_added_newline()&&S.line_indent_level>be&&(be=S.line_indent_level));var Ve={mode:Q,parent:S,last_token:S?S.last_token:new g(K.START_BLOCK,""),last_word:S?S.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:be,alignment:0,line_indent_level:S?S.line_indent_level:be,start_line_index:this._output.get_line_number(),ternary_depth:0};return Ve},re.prototype._reset=function(S){var Q=S.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new M(this._options,Q),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Oe.BlockStatement);var be=new v(S,this._options);return this._tokens=be.tokenize(),S},re.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var S,Q=this._reset(this._source_text),be=this._options.eol;this._options.eol==="auto"&&(be=`
|
|
|
`,Q&&c.lineBreak.test(Q||"")&&(be=Q.match(c.lineBreak)[0]));for(var Ve=this._tokens.next();Ve;)this.handle_token(Ve),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Ve,Ve=this._tokens.next();return S=this._output.get_code(be),S},re.prototype.handle_token=function(S,Q){S.type===K.START_EXPR?this.handle_start_expr(S):S.type===K.END_EXPR?this.handle_end_expr(S):S.type===K.START_BLOCK?this.handle_start_block(S):S.type===K.END_BLOCK?this.handle_end_block(S):S.type===K.WORD?this.handle_word(S):S.type===K.RESERVED?this.handle_word(S):S.type===K.SEMICOLON?this.handle_semicolon(S):S.type===K.STRING?this.handle_string(S):S.type===K.EQUALS?this.handle_equals(S):S.type===K.OPERATOR?this.handle_operator(S):S.type===K.COMMA?this.handle_comma(S):S.type===K.BLOCK_COMMENT?this.handle_block_comment(S,Q):S.type===K.COMMENT?this.handle_comment(S,Q):S.type===K.DOT?this.handle_dot(S):S.type===K.EOF?this.handle_eof(S):S.type===K.UNKNOWN?this.handle_unknown(S,Q):this.handle_unknown(S,Q)},re.prototype.handle_whitespace_and_comments=function(S,Q){var be=S.newlines,Ve=this._options.keep_array_indentation&&$(this._flags.mode);if(S.comments_before)for(var tt=S.comments_before.next();tt;)this.handle_whitespace_and_comments(tt,Q),this.handle_token(tt,Q),tt=S.comments_before.next();if(Ve)for(var Je=0;Je<be;Je+=1)this.print_newline(Je>0,Q);else if(this._options.max_preserve_newlines&&be>this._options.max_preserve_newlines&&(be=this._options.max_preserve_newlines),this._options.preserve_newlines&&be>1){this.print_newline(!1,Q);for(var et=1;et<be;et+=1)this.print_newline(!0,Q)}};var x=["async","break","continue","return","throw","yield"];re.prototype.allow_wrap_or_preserved_newline=function(S,Q){if(Q=Q===void 0?!1:Q,!this._output.just_added_newline()){var be=this._options.preserve_newlines&&S.newlines||Q,Ve=F(this._flags.last_token.text,se)||F(S.text,se);if(Ve){var tt=F(this._flags.last_token.text,se)&&F(this._options.operator_position,Ie)||F(S.text,se);be=be&&tt}if(be)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(A(this._flags.last_token,x))return;this._output.set_wrap_point()}}},re.prototype.print_newline=function(S,Q){if(!Q&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==K.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var be=this._tokens.peek();this._flags.mode===Oe.Statement&&!(this._flags.if_block&&b(be,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(S)&&(this._flags.multiline_frame=!0)},re.prototype.print_token_line_indentation=function(S){this._output.just_added_newline()&&(this._options.keep_array_indentation&&S.newlines&&(S.text==="["||$(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(S.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))},re.prototype.print_token=function(S){if(this._output.raw){this._output.add_raw_token(S);return}if(this._options.comma_first&&S.previous&&S.previous.type===K.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Q=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Q),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(S),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(S),this._output.non_breaking_space=!0,this._output.add_token(S.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},re.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},re.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))},re.prototype.set_mode=function(S){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,S),this._flags=this.create_flags(this._previous_flags,S),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},re.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Oe.Statement&&He(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},re.prototype.start_of_object_property=function(){return this._flags.parent.mode===Oe.ObjectLiteral&&this._flags.mode===Oe.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"]))},re.prototype.start_of_statement=function(S){var Q=!1;return Q=Q||A(this._flags.last_token,["var","let","const"])&&S.type===K.WORD,Q=Q||b(this._flags.last_token,"do"),Q=Q||!(this._flags.parent.mode===Oe.ObjectLiteral&&this._flags.mode===Oe.Statement)&&A(this._flags.last_token,x)&&!S.newlines,Q=Q||b(this._flags.last_token,"else")&&!(b(S,"if")&&!S.comments_before),Q=Q||this._flags.last_token.type===K.END_EXPR&&(this._previous_flags.mode===Oe.ForInitializer||this._previous_flags.mode===Oe.Conditional),Q=Q||this._flags.last_token.type===K.WORD&&this._flags.mode===Oe.BlockStatement&&!this._flags.in_case&&!(S.text==="--"||S.text==="++")&&this._last_last_text!=="function"&&S.type!==K.WORD&&S.type!==K.RESERVED,Q=Q||this._flags.mode===Oe.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||A(this._flags.last_token,["get","set"])),Q?(this.set_mode(Oe.Statement),this.indent(),this.handle_whitespace_and_comments(S,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(S,A(S,["do","for","if","while"])),!0):!1},re.prototype.handle_start_expr=function(S){this.start_of_statement(S)||this.handle_whitespace_and_comments(S);var Q=Oe.Expression;if(S.text==="["){if(this._flags.last_token.type===K.WORD||this._flags.last_token.text===")"){A(this._flags.last_token,Y)&&(this._output.space_before_token=!0),this.print_token(S),this.set_mode(Q),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Q=Oe.ArrayLiteral,$(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()),F(this._flags.last_token.type,[K.START_EXPR,K.END_EXPR,K.WORD,K.OPERATOR,K.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===K.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,Q=Oe.ForInitializer):F(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Q=Oe.Conditional):F(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&S.whitespace_before===""?this._output.space_before_token=!1:(F(this._flags.last_token.text,Y)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===K.EQUALS||this._flags.last_token.type===K.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(S);else if(this._flags.last_token.type===K.WORD){this._output.space_before_token=!1;var be=this._tokens.peek(-3);if(this._options.space_after_named_function&&be){var Ve=this._tokens.peek(-4);A(be,["async","function"])||be.text==="*"&&A(Ve,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Oe.ObjectLiteral?(be.text==="{"||be.text===","||be.text==="*"&&(Ve.text==="{"||Ve.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(S);(this._flags.last_token.type===K.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===Oe.ObjectLiteral&&F(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===K.START_BLOCK?this.print_newline():(this._flags.last_token.type===K.END_EXPR||this._flags.last_token.type===K.START_EXPR||this._flags.last_token.type===K.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===K.COMMA)&&this.allow_wrap_or_preserved_newline(S,S.newlines),this.print_token(S),this.set_mode(Q),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},re.prototype.handle_end_expr=function(S){for(;this._flags.mode===Oe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(S),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(S,S.text==="]"&&$(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===K.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(S),this.restore_mode(),He(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Oe.Conditional&&(this._previous_flags.mode=Oe.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},re.prototype.handle_start_block=function(S){this.handle_whitespace_and_comments(S);var Q=this._tokens.peek(),be=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===K.END_EXPR?(this.set_mode(Oe.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Oe.BlockStatement):be&&(F(be.text,[":",","])&&F(Q.type,[K.STRING,K.WORD,K.RESERVED])||F(Q.text,["get","set","..."])&&F(be.type,[K.WORD,K.RESERVED]))?F(this._last_last_text,["class","interface"])&&!F(be.text,[":",","])?this.set_mode(Oe.BlockStatement):this.set_mode(Oe.ObjectLiteral):this._flags.last_token.type===K.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Oe.BlockStatement):F(this._flags.last_token.type,[K.EQUALS,K.START_EXPR,K.COMMA,K.OPERATOR])||A(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Oe.ObjectLiteral):this.set_mode(Oe.BlockStatement),this._flags.last_token&&A(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Ve=!Q.comments_before&&Q.text==="}",tt=Ve&&this._flags.last_word==="function"&&this._flags.last_token.type===K.END_EXPR;if(this._options.brace_preserve_inline){var Je=0,et=null;this._flags.inline_frame=!0;do if(Je+=1,et=this._tokens.peek(Je-1),et.newlines){this._flags.inline_frame=!1;break}while(et.type!==K.EOF&&!(et.type===K.END_BLOCK&&et.opened===S))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&S.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==K.OPERATOR&&(tt||this._flags.last_token.type===K.EQUALS||A(this._flags.last_token,B)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):($(this._previous_flags.mode)&&(this._flags.last_token.type===K.START_EXPR||this._flags.last_token.type===K.COMMA)&&((this._flags.last_token.type===K.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===K.COMMA||this._flags.last_token.type===K.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(S),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==K.OPERATOR&&this._flags.last_token.type!==K.START_EXPR&&(F(this._flags.last_token.type,[K.START_BLOCK,K.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(S),this.indent(),!Ve&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},re.prototype.handle_end_block=function(S){for(this.handle_whitespace_and_comments(S);this._flags.mode===Oe.Statement;)this.restore_mode();var Q=this._flags.last_token.type===K.START_BLOCK;this._flags.inline_frame&&!Q?this._output.space_before_token=!0:this._options.brace_style==="expand"?Q||this.print_newline():Q||($(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(S)},re.prototype.handle_word=function(S){if(S.type===K.RESERVED){if(F(S.text,["set","get"])&&this._flags.mode!==Oe.ObjectLiteral)S.type=K.WORD;else if(S.text==="import"&&F(this._tokens.peek().text,["(","."]))S.type=K.WORD;else if(F(S.text,["as","from"])&&!this._flags.import_block)S.type=K.WORD;else if(this._flags.mode===Oe.ObjectLiteral){var Q=this._tokens.peek();Q.text===":"&&(S.type=K.WORD)}}if(this.start_of_statement(S)?A(this._flags.last_token,["var","let","const"])&&S.type===K.WORD&&(this._flags.declaration_statement=!0):S.newlines&&!ae(this._flags.mode)&&(this._flags.last_token.type!==K.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==K.EQUALS&&(this._options.preserve_newlines||!A(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(S),this.print_newline()):this.handle_whitespace_and_comments(S),this._flags.do_block&&!this._flags.do_while)if(b(S,"while")){this._output.space_before_token=!0,this.print_token(S),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&b(S,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Oe.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&A(S,["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(S),this._flags.in_case=!0;return}if((this._flags.last_token.type===K.COMMA||this._flags.last_token.type===K.START_EXPR||this._flags.last_token.type===K.EQUALS||this._flags.last_token.type===K.OPERATOR)&&!this.start_of_object_property()&&!(F(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Oe.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(S),b(S,"function")){(F(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(F(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===K.OPERATOR))&&!this._output.just_added_blankline()&&!S.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===K.RESERVED||this._flags.last_token.type===K.WORD?A(this._flags.last_token,["get","set","new","export"])||A(this._flags.last_token,x)?this._output.space_before_token=!0:b(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===K.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(ae(this._flags.mode)||$(this._flags.mode))||this.print_newline(),this.print_token(S),this._flags.last_word=S.text;return}var be="NONE";if(this._flags.last_token.type===K.END_BLOCK?this._previous_flags.inline_frame?be="SPACE":A(S,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&S.newlines?be="NEWLINE":(be="SPACE",this._output.space_before_token=!0):be="NEWLINE":this._flags.last_token.type===K.SEMICOLON&&this._flags.mode===Oe.BlockStatement?be="NEWLINE":this._flags.last_token.type===K.SEMICOLON&&ae(this._flags.mode)?be="SPACE":this._flags.last_token.type===K.STRING?be="NEWLINE":this._flags.last_token.type===K.RESERVED||this._flags.last_token.type===K.WORD||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===Oe.ObjectLiteral&&F(this._last_last_text,["{",","]))?be="SPACE":this._flags.last_token.type===K.START_BLOCK?this._flags.inline_frame?be="SPACE":be="NEWLINE":this._flags.last_token.type===K.END_EXPR&&(this._output.space_before_token=!0,be="NEWLINE"),A(S,Y)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?be="SPACE":be="NEWLINE"),A(S,["else","catch","finally"]))if((!(this._flags.last_token.type===K.END_BLOCK&&this._previous_flags.mode===Oe.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&S.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Ve=this._output.current_line;Ve.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else be==="NEWLINE"?A(this._flags.last_token,B)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&A(S,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==K.END_EXPR?(this._flags.last_token.type!==K.START_EXPR||!A(S,["var","let","const"]))&&this._flags.last_token.text!==":"&&(b(S,"if")&&b(S.previous,"else")?this._output.space_before_token=!0:this.print_newline()):A(S,Y)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&$(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():be==="SPACE"&&(this._output.space_before_token=!0);S.previous&&(S.previous.type===K.WORD||S.previous.type===K.RESERVED)&&(this._output.space_before_token=!0),this.print_token(S),this._flags.last_word=S.text,S.type===K.RESERVED&&(S.text==="do"?this._flags.do_block=!0:S.text==="if"?this._flags.if_block=!0:S.text==="import"?this._flags.import_block=!0:this._flags.import_block&&b(S,"from")&&(this._flags.import_block=!1))},re.prototype.handle_semicolon=function(S){this.start_of_statement(S)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(S);for(var Q=this._tokens.peek();this._flags.mode===Oe.Statement&&!(this._flags.if_block&&b(Q,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(S)},re.prototype.handle_string=function(S){S.text.startsWith("`")&&S.newlines===0&&S.whitespace_before===""&&(S.previous.text===")"||this._flags.last_token.type===K.WORD)||(this.start_of_statement(S)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(S),this._flags.last_token.type===K.RESERVED||this._flags.last_token.type===K.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===K.COMMA||this._flags.last_token.type===K.START_EXPR||this._flags.last_token.type===K.EQUALS||this._flags.last_token.type===K.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(S):S.text.startsWith("`")&&this._flags.last_token.type===K.END_EXPR&&(S.previous.text==="]"||S.previous.text===")")&&S.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(S)},re.prototype.handle_equals=function(S){this.start_of_statement(S)||this.handle_whitespace_and_comments(S),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(S),this._output.space_before_token=!0},re.prototype.handle_comma=function(S){this.handle_whitespace_and_comments(S,!0),this.print_token(S),this._output.space_before_token=!0,this._flags.declaration_statement?(ae(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(S)):this._flags.mode===Oe.ObjectLiteral||this._flags.mode===Oe.Statement&&this._flags.parent.mode===Oe.ObjectLiteral?(this._flags.mode===Oe.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(S)},re.prototype.handle_operator=function(S){var Q=S.text==="*"&&(A(this._flags.last_token,["function","yield"])||F(this._flags.last_token.type,[K.START_BLOCK,K.COMMA,K.END_BLOCK,K.SEMICOLON])),be=F(S.text,["-","+"])&&(F(this._flags.last_token.type,[K.START_BLOCK,K.START_EXPR,K.EQUALS,K.OPERATOR])||F(this._flags.last_token.text,Y)||this._flags.last_token.text===",");if(!this.start_of_statement(S)){var Ve=!Q;this.handle_whitespace_and_comments(S,Ve)}if(S.text==="*"&&this._flags.last_token.type===K.DOT){this.print_token(S);return}if(S.text==="::"){this.print_token(S);return}if(F(S.text,["-","+"])&&this.start_of_object_property()){this.print_token(S);return}if(this._flags.last_token.type===K.OPERATOR&&F(this._options.operator_position,Ie)&&this.allow_wrap_or_preserved_newline(S),S.text===":"&&this._flags.in_case){this.print_token(S),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==K.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 tt=!0,Je=!0,et=!1;if(S.text===":"?this._flags.ternary_depth===0?tt=!1:(this._flags.ternary_depth-=1,et=!0):S.text==="?"&&(this._flags.ternary_depth+=1),!be&&!Q&&this._options.preserve_newlines&&F(S.text,se)){var xt=S.text===":",gt=xt&&et,st=xt&&!et;switch(this._options.operator_position){case ge.before_newline:this._output.space_before_token=!st,this.print_token(S),(!xt||gt)&&this.allow_wrap_or_preserved_newline(S),this._output.space_before_token=!0;return;case ge.after_newline:this._output.space_before_token=!0,!xt||gt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(S):this._output.space_before_token=!1,this.print_token(S),this._output.space_before_token=!0;return;case ge.preserve_newline:st||this.allow_wrap_or_preserved_newline(S),tt=!(this._output.just_added_newline()||st),this._output.space_before_token=tt,this.print_token(S),this._output.space_before_token=!0;return}}if(Q){this.allow_wrap_or_preserved_newline(S),tt=!1;var kt=this._tokens.peek();Je=kt&&F(kt.type,[K.WORD,K.RESERVED])}else if(S.text==="...")this.allow_wrap_or_preserved_newline(S),tt=this._flags.last_token.type===K.START_BLOCK,Je=!1;else if(F(S.text,["--","++","!","~"])||be){if((this._flags.last_token.type===K.COMMA||this._flags.last_token.type===K.START_EXPR)&&this.allow_wrap_or_preserved_newline(S),tt=!1,Je=!1,S.newlines&&(S.text==="--"||S.text==="++"||S.text==="~")){var Ft=A(this._flags.last_token,B)&&S.newlines;Ft&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Ft,!0)}this._flags.last_token.text===";"&&ae(this._flags.mode)&&(tt=!0),this._flags.last_token.type===K.RESERVED?tt=!0:this._flags.last_token.type===K.END_EXPR?tt=!(this._flags.last_token.text==="]"&&(S.text==="--"||S.text==="++")):this._flags.last_token.type===K.OPERATOR&&(tt=F(S.text,["--","-","++","+"])&&F(this._flags.last_token.text,["--","-","++","+"]),F(S.text,["+","-"])&&F(this._flags.last_token.text,["--","++"])&&(Je=!0)),(this._flags.mode===Oe.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Oe.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||tt,this.print_token(S),this._output.space_before_token=Je},re.prototype.handle_block_comment=function(S,Q){if(this._output.raw){this._output.add_raw_token(S),S.directives&&S.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(S.directives){this.print_newline(!1,Q),this.print_token(S),S.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!c.newline.test(S.text)&&!S.newlines){this._output.space_before_token=!0,this.print_token(S),this._output.space_before_token=!0;return}else this.print_block_commment(S,Q)},re.prototype.print_block_commment=function(S,Q){var be=q(S.text),Ve,tt=!1,Je=!1,et=S.whitespace_before,xt=et.length;if(this.print_newline(!1,Q),this.print_token_line_indentation(S),this._output.add_token(be[0]),this.print_newline(!1,Q),be.length>1){for(be=be.slice(1),tt=ee(be,"*"),Je=ye(be,et),tt&&(this._flags.alignment=1),Ve=0;Ve<be.length;Ve++)tt?(this.print_token_line_indentation(S),this._output.add_token(H(be[Ve]))):Je&&be[Ve]?(this.print_token_line_indentation(S),this._output.add_token(be[Ve].substring(xt))):(this._output.current_line.set_indent(-1),this._output.add_token(be[Ve])),this.print_newline(!1,Q);this._flags.alignment=0}},re.prototype.handle_comment=function(S,Q){S.newlines?this.print_newline(!1,Q):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(S),this.print_newline(!1,Q)},re.prototype.handle_dot=function(S){this.start_of_statement(S)||this.handle_whitespace_and_comments(S,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),A(this._flags.last_token,B)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(S,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(S)},re.prototype.handle_unknown=function(S,Q){this.print_token(S),S.text[S.text.length-1]===`
|
|
|
`&&this.print_newline(!1,Q)},re.prototype.handle_eof=function(S){for(;this._flags.mode===Oe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(S)},Ee.exports.Beautifier=re},function(Ee){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 c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(g))return!0;return!1},o.prototype.set_indent=function(g,c){this.is_empty()&&(this.__indent_count=g||0,this.__alignment_count=c||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 c=g.lastIndexOf(`
|
|
|
`);c!==-1?this.__character_count=g.length-c: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 R(g,c){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)),c=c||"",g.indent_level>0&&(c=new Array(g.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}R.prototype.get_indent_size=function(g,c){var w=this.__base_string_length;return c=c||0,g<0&&(w=0),w+=g*this.__indent_size,w+=c,w},R.prototype.get_indent_string=function(g,c){var w=this.__base_string;return c=c||0,g<0&&(g=0,w=""),c+=g*this.__indent_size,this.__ensure_cache(c),w+=this.__cache[c],w},R.prototype.__ensure_cache=function(g){for(;g>=this.__cache.length;)this.__add_column()},R.prototype.__add_column=function(){var g=this.__cache.length,c=0,w="";this.__indent_size&&g>=this.__indent_size&&(c=Math.floor(g/this.__indent_size),g-=c*this.__indent_size,w=new Array(c+1).join(this.__indent_string)),g&&(w+=new Array(g+1).join(" ")),this.__cache.push(w)};function M(g,c){this.__indent_cache=new R(g,c),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()}M.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},M.prototype.get_line_number=function(){return this.__lines.length},M.prototype.get_indent_string=function(g,c){return this.__indent_cache.get_indent_string(g,c)},M.prototype.get_indent_size=function(g,c){return this.__indent_cache.get_indent_size(g,c)},M.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},M.prototype.add_new_line=function(g){return this.is_empty()||!g&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},M.prototype.get_code=function(g){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
|
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var w=this.__lines.join(`
|
|
|
`);return g!==`
|
|
|
`&&(w=w.replace(/[\n]/g,g)),w},M.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},M.prototype.set_indent=function(g,c){return g=g||0,c=c||0,this.next_line.set_indent(g,c),this.__lines.length>1?(this.current_line.set_indent(g,c),!0):(this.current_line.set_indent(),!1)},M.prototype.add_raw_token=function(g){for(var c=0;c<g.newlines;c++)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},M.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()},M.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(" "))},M.prototype.remove_indent=function(g){for(var c=this.__lines.length;g<c;)this.__lines[g]._remove_indent(),g++;this.current_line._remove_wrap_indent()},M.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},M.prototype.just_added_newline=function(){return this.current_line.is_empty()},M.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},M.prototype.ensure_empty_line_above=function(g,c){for(var w=this.__lines.length-2;w>=0;){var v=this.__lines[w];if(v.is_empty())break;if(v.item(0).indexOf(g)!==0&&v.item(-1)!==c){this.__lines.splice(w+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}w--}},Ee.exports.Output=M},function(Ee){function o(R,M,g,c){this.type=R,this.text=M,this.comments_before=null,this.newlines=g||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}Ee.exports.Token=o},function(Ee,o){var R="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",M="\\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",c="\\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",w="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",v="(?:"+w+"|["+R+g+"])",Y="(?:"+w+"|["+M+g+c+"])*";o.identifier=new RegExp(v+Y,"g"),o.identifierStart=new RegExp(v),o.identifierMatch=new RegExp("(?:"+w+"|["+M+g+c+"])+");var se=/[\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(Ee,o,R){var M=R(6).Options,g=["before-newline","after-newline","preserve-newline"];function c(w){M.call(this,w,"js");var v=this.raw_options.brace_style||null;v==="expand-strict"?this.raw_options.brace_style="expand":v==="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 Y=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var se=0;se<Y.length;se++)Y[se]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=Y[se];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)}c.prototype=new M,Ee.exports.Options=c},function(Ee){function o(g,c){this.raw_options=R(g,c),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,c){var w=this.raw_options[g],v=c||[];return typeof w=="object"?w!==null&&typeof w.concat=="function"&&(v=w.concat()):typeof w=="string"&&(v=w.split(/[^a-zA-Z0-9_\/\-]+/)),v},o.prototype._get_boolean=function(g,c){var w=this.raw_options[g],v=w===void 0?!!c:!!w;return v},o.prototype._get_characters=function(g,c){var w=this.raw_options[g],v=c||"";return typeof w=="string"&&(v=w.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),v},o.prototype._get_number=function(g,c){var w=this.raw_options[g];c=parseInt(c,10),isNaN(c)&&(c=0);var v=parseInt(w,10);return isNaN(v)&&(v=c),v},o.prototype._get_selection=function(g,c,w){var v=this._get_selection_list(g,c,w);if(v.length!==1)throw new Error("Invalid Option Value: The option '"+g+`' can only be one of the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return v[0]},o.prototype._get_selection_list=function(g,c,w){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(w=w||[c[0]],!this._is_valid_selection(w,c))throw new Error("Invalid Default Value!");var v=this._get_array(g,w);if(!this._is_valid_selection(v,c))throw new Error("Invalid Option Value: The option '"+g+`' can contain only the following values:
|
|
|
`+c+`
|
|
|
You passed in: '`+this.raw_options[g]+"'");return v},o.prototype._is_valid_selection=function(g,c){return g.length&&c.length&&!g.some(function(w){return c.indexOf(w)===-1})};function R(g,c){var w={};g=M(g);var v;for(v in g)v!==c&&(w[v]=g[v]);if(c&&g[c])for(v in g[c])w[v]=g[c][v];return w}function M(g){var c={},w;for(w in g){var v=w.replace(/-/g,"_");c[v]=g[w]}return c}Ee.exports.Options=o,Ee.exports.normalizeOpts=M,Ee.exports.mergeOpts=R},function(Ee,o,R){var M=R(8).InputScanner,g=R(9).Tokenizer,c=R(9).TOKEN,w=R(13).Directives,v=R(4),Y=R(12).Pattern,se=R(14).TemplatablePattern;function K(ee,ye){return ye.indexOf(ee)!==-1}var F={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:c.START,RAW:c.RAW,EOF:c.EOF},H=new w(/\/\*/,/\*\//),ne=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,b=/[0-9]/,A=/[^\d\.]/,B=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),X=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";X=X.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),X="\\?\\.(?!\\d) "+X,X=X.replace(/ /g,"|");var ge=new RegExp(X),Ie="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Oe=Ie.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),He=new RegExp("^(?:"+Oe.join("|")+")$"),q,$=function(ee,ye){g.call(this,ee,ye),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var re=new Y(this._input),x=new se(this._input).read_options(this._options);this.__patterns={template:x,identifier:x.starting_with(v.identifier).matching(v.identifierMatch),number:re.matching(ne),punct:re.matching(ge),comment:re.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:re.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:re.matching(/<!--/),html_comment_end:re.matching(/-->/),include:re.starting_with(/#include/).until_after(v.lineBreak),shebang:re.starting_with(/#!/).until_after(v.lineBreak),xml:re.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:x.until(/['\\\n\r\u2028\u2029]/),double_quote:x.until(/["\\\n\r\u2028\u2029]/),template_text:x.until(/[`\\$]/),template_expression:x.until(/[`}\\]/)}};$.prototype=new g,$.prototype._is_comment=function(ee){return ee.type===F.COMMENT||ee.type===F.BLOCK_COMMENT||ee.type===F.UNKNOWN},$.prototype._is_opening=function(ee){return ee.type===F.START_BLOCK||ee.type===F.START_EXPR},$.prototype._is_closing=function(ee,ye){return(ee.type===F.END_BLOCK||ee.type===F.END_EXPR)&&ye&&(ee.text==="]"&&ye.text==="["||ee.text===")"&&ye.text==="("||ee.text==="}"&&ye.text==="{")},$.prototype._reset=function(){q=!1},$.prototype._get_next_token=function(ee,ye){var re=null;this._readWhitespace();var x=this._input.peek();return x===null?this._create_token(F.EOF,""):(re=re||this._read_non_javascript(x),re=re||this._read_string(x),re=re||this._read_pair(x,this._input.peek(1)),re=re||this._read_word(ee),re=re||this._read_singles(x),re=re||this._read_comment(x),re=re||this._read_regexp(x,ee),re=re||this._read_xml(x,ee),re=re||this._read_punctuation(),re=re||this._create_token(F.UNKNOWN,this._input.next()),re)},$.prototype._read_word=function(ee){var ye;if(ye=this.__patterns.identifier.read(),ye!=="")return ye=ye.replace(v.allLineBreaks,`
|
|
|
`),!(ee.type===F.DOT||ee.type===F.RESERVED&&(ee.text==="set"||ee.text==="get"))&&He.test(ye)?(ye==="in"||ye==="of")&&(ee.type===F.WORD||ee.type===F.STRING)?this._create_token(F.OPERATOR,ye):this._create_token(F.RESERVED,ye):this._create_token(F.WORD,ye);if(ye=this.__patterns.number.read(),ye!=="")return this._create_token(F.WORD,ye)},$.prototype._read_singles=function(ee){var ye=null;return ee==="("||ee==="["?ye=this._create_token(F.START_EXPR,ee):ee===")"||ee==="]"?ye=this._create_token(F.END_EXPR,ee):ee==="{"?ye=this._create_token(F.START_BLOCK,ee):ee==="}"?ye=this._create_token(F.END_BLOCK,ee):ee===";"?ye=this._create_token(F.SEMICOLON,ee):ee==="."&&A.test(this._input.peek(1))?ye=this._create_token(F.DOT,ee):ee===","&&(ye=this._create_token(F.COMMA,ee)),ye&&this._input.next(),ye},$.prototype._read_pair=function(ee,ye){var re=null;return ee==="#"&&ye==="{"&&(re=this._create_token(F.START_BLOCK,ee+ye)),re&&(this._input.next(),this._input.next()),re},$.prototype._read_punctuation=function(){var ee=this.__patterns.punct.read();if(ee!=="")return ee==="="?this._create_token(F.EQUALS,ee):ee==="?."?this._create_token(F.DOT,ee):this._create_token(F.OPERATOR,ee)},$.prototype._read_non_javascript=function(ee){var ye="";if(ee==="#"){if(this._is_first_token()&&(ye=this.__patterns.shebang.read(),ye))return this._create_token(F.UNKNOWN,ye.trim()+`
|
|
|
`);if(ye=this.__patterns.include.read(),ye)return this._create_token(F.UNKNOWN,ye.trim()+`
|
|
|
`);ee=this._input.next();var re="#";if(this._input.hasNext()&&this._input.testChar(b)){do ee=this._input.next(),re+=ee;while(this._input.hasNext()&&ee!=="#"&&ee!=="=");return ee==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(re+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(re+="{}",this._input.next(),this._input.next())),this._create_token(F.WORD,re)}this._input.back()}else if(ee==="<"&&this._is_first_token()){if(ye=this.__patterns.html_comment_start.read(),ye){for(;this._input.hasNext()&&!this._input.testChar(v.newline);)ye+=this._input.next();return q=!0,this._create_token(F.COMMENT,ye)}}else if(q&&ee==="-"&&(ye=this.__patterns.html_comment_end.read(),ye))return q=!1,this._create_token(F.COMMENT,ye);return null},$.prototype._read_comment=function(ee){var ye=null;if(ee==="/"){var re="";if(this._input.peek(1)==="*"){re=this.__patterns.block_comment.read();var x=H.get_directives(re);x&&x.ignore==="start"&&(re+=H.readIgnored(this._input)),re=re.replace(v.allLineBreaks,`
|
|
|
`),ye=this._create_token(F.BLOCK_COMMENT,re),ye.directives=x}else this._input.peek(1)==="/"&&(re=this.__patterns.comment.read(),ye=this._create_token(F.COMMENT,re))}return ye},$.prototype._read_string=function(ee){if(ee==="`"||ee==="'"||ee==='"'){var ye=this._input.next();return this.has_char_escapes=!1,ee==="`"?ye+=this._read_string_recursive("`",!0,"${"):ye+=this._read_string_recursive(ee),this.has_char_escapes&&this._options.unescape_strings&&(ye=ae(ye)),this._input.peek()===ee&&(ye+=this._input.next()),ye=ye.replace(v.allLineBreaks,`
|
|
|
`),this._create_token(F.STRING,ye)}return null},$.prototype._allow_regexp_or_xml=function(ee){return ee.type===F.RESERVED&&K(ee.text,["return","case","throw","else","do","typeof","yield"])||ee.type===F.END_EXPR&&ee.text===")"&&ee.opened.previous.type===F.RESERVED&&K(ee.opened.previous.text,["if","while","for"])||K(ee.type,[F.COMMENT,F.START_EXPR,F.START_BLOCK,F.START,F.END_BLOCK,F.OPERATOR,F.EQUALS,F.EOF,F.SEMICOLON,F.COMMA])},$.prototype._read_regexp=function(ee,ye){if(ee==="/"&&this._allow_regexp_or_xml(ye)){for(var re=this._input.next(),x=!1,S=!1;this._input.hasNext()&&(x||S||this._input.peek()!==ee)&&!this._input.testChar(v.newline);)re+=this._input.peek(),x?x=!1:(x=this._input.peek()==="\\",this._input.peek()==="["?S=!0:this._input.peek()==="]"&&(S=!1)),this._input.next();return this._input.peek()===ee&&(re+=this._input.next(),re+=this._input.read(v.identifier)),this._create_token(F.STRING,re)}return null},$.prototype._read_xml=function(ee,ye){if(this._options.e4x&&ee==="<"&&this._allow_regexp_or_xml(ye)){var re="",x=this.__patterns.xml.read_match();if(x){for(var S=x[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Q=S.indexOf("{")===0,be=0;x;){var Ve=!!x[1],tt=x[2],Je=!!x[x.length-1]||tt.slice(0,8)==="![CDATA[";if(!Je&&(tt===S||Q&&tt.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Ve?--be:++be),re+=x[0],be<=0)break;x=this.__patterns.xml.read_match()}return x||(re+=this._input.match(/[\s\S]*/g)[0]),re=re.replace(v.allLineBreaks,`
|
|
|
`),this._create_token(F.STRING,re)}}return null};function ae(ee){for(var ye="",re=0,x=new M(ee),S=null;x.hasNext();)if(S=x.match(/([\s]|[^\\]|\\\\)+/g),S&&(ye+=S[0]),x.peek()==="\\"){if(x.next(),x.peek()==="x")S=x.match(/x([0-9A-Fa-f]{2})/g);else if(x.peek()==="u")S=x.match(/u([0-9A-Fa-f]{4})/g),S||(S=x.match(/u\{([0-9A-Fa-f]+)\}/g));else{ye+="\\",x.hasNext()&&(ye+=x.next());continue}if(!S||(re=parseInt(S[1],16),re>126&&re<=255&&S[0].indexOf("x")===0))return ee;re>=0&&re<32||re>1114111?ye+="\\"+S[0]:re===34||re===39||re===92?ye+="\\"+String.fromCharCode(re):ye+=String.fromCharCode(re)}return ye}$.prototype._read_string_recursive=function(ee,ye,re){var x,S;ee==="'"?S=this.__patterns.single_quote:ee==='"'?S=this.__patterns.double_quote:ee==="`"?S=this.__patterns.template_text:ee==="}"&&(S=this.__patterns.template_expression);for(var Q=S.read(),be="";this._input.hasNext();){if(be=this._input.next(),be===ee||!ye&&v.newline.test(be)){this._input.back();break}else be==="\\"&&this._input.hasNext()?(x=this._input.peek(),x==="x"||x==="u"?this.has_char_escapes=!0:x==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),be+=this._input.next()):re&&(re==="${"&&be==="$"&&this._input.peek()==="{"&&(be+=this._input.next()),re===be&&(ee==="`"?be+=this._read_string_recursive("}",ye,"`"):be+=this._read_string_recursive("`",ye,"${"),this._input.hasNext()&&(be+=this._input.next())));be+=S.read(),Q+=be}return Q},Ee.exports.Tokenizer=$,Ee.exports.TOKEN=F,Ee.exports.positionable_operators=B.slice(),Ee.exports.line_starters=Ie.slice()},function(Ee){var o=RegExp.prototype.hasOwnProperty("sticky");function R(M){this.__input=M||"",this.__input_length=this.__input.length,this.__position=0}R.prototype.restart=function(){this.__position=0},R.prototype.back=function(){this.__position>0&&(this.__position-=1)},R.prototype.hasNext=function(){return this.__position<this.__input_length},R.prototype.next=function(){var M=null;return this.hasNext()&&(M=this.__input.charAt(this.__position),this.__position+=1),M},R.prototype.peek=function(M){var g=null;return M=M||0,M+=this.__position,M>=0&&M<this.__input_length&&(g=this.__input.charAt(M)),g},R.prototype.__match=function(M,g){M.lastIndex=g;var c=M.exec(this.__input);return c&&!(o&&M.sticky)&&c.index!==g&&(c=null),c},R.prototype.test=function(M,g){return g=g||0,g+=this.__position,g>=0&&g<this.__input_length?!!this.__match(M,g):!1},R.prototype.testChar=function(M,g){var c=this.peek(g);return M.lastIndex=0,c!==null&&M.test(c)},R.prototype.match=function(M){var g=this.__match(M,this.__position);return g?this.__position+=g[0].length:g=null,g},R.prototype.read=function(M,g,c){var w="",v;return M&&(v=this.match(M),v&&(w+=v[0])),g&&(v||!M)&&(w+=this.readUntil(g,c)),w},R.prototype.readUntil=function(M,g){var c="",w=this.__position;M.lastIndex=this.__position;var v=M.exec(this.__input);return v?(w=v.index,g&&(w+=v[0].length)):w=this.__input_length,c=this.__input.substring(this.__position,w),this.__position=w,c},R.prototype.readUntilAfter=function(M){return this.readUntil(M,!0)},R.prototype.get_regexp=function(M,g){var c=null,w="g";return g&&o&&(w="y"),typeof M=="string"&&M!==""?c=new RegExp(M,w):M&&(c=new RegExp(M.source,w)),c},R.prototype.get_literal_regexp=function(M){return RegExp(M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},R.prototype.peekUntilAfter=function(M){var g=this.__position,c=this.readUntilAfter(M);return this.__position=g,c},R.prototype.lookBack=function(M){var g=this.__position-1;return g>=M.length&&this.__input.substring(g-M.length,g).toLowerCase()===M},Ee.exports.InputScanner=R},function(Ee,o,R){var M=R(8).InputScanner,g=R(3).Token,c=R(10).TokenStream,w=R(11).WhitespacePattern,v={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},Y=function(se,K){this._input=new M(se),this._options=K||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new w(this._input)};Y.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var se,K=new g(v.START,""),F=null,H=[],ne=new c;K.type!==v.EOF;){for(se=this._get_next_token(K,F);this._is_comment(se);)ne.add(se),se=this._get_next_token(K,F);ne.isEmpty()||(se.comments_before=ne,ne=new c),se.parent=F,this._is_opening(se)?(H.push(F),F=se):F&&this._is_closing(se,F)&&(se.opened=F,F.closed=se,F=H.pop(),se.parent=F),se.previous=K,K.next=se,this.__tokens.add(se),K=se}return this.__tokens},Y.prototype._is_first_token=function(){return this.__tokens.isEmpty()},Y.prototype._reset=function(){},Y.prototype._get_next_token=function(se,K){this._readWhitespace();var F=this._input.read(/.+/g);return F?this._create_token(v.RAW,F):this._create_token(v.EOF,"")},Y.prototype._is_comment=function(se){return!1},Y.prototype._is_opening=function(se){return!1},Y.prototype._is_closing=function(se,K){return!1},Y.prototype._create_token=function(se,K){var F=new g(se,K,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return F},Y.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Ee.exports.Tokenizer=Y,Ee.exports.TOKEN=v},function(Ee){function o(R){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=R}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 R=null;return this.hasNext()&&(R=this.__tokens[this.__position],this.__position+=1),R},o.prototype.peek=function(R){var M=null;return R=R||0,R+=this.__position,R>=0&&R<this.__tokens_length&&(M=this.__tokens[R]),M},o.prototype.add=function(R){this.__parent_token&&(R.parent=this.__parent_token),this.__tokens.push(R),this.__tokens_length+=1},Ee.exports.TokenStream=o},function(Ee,o,R){var M=R(12).Pattern;function g(c,w){M.call(this,c,w),w?this._line_regexp=this._input.get_regexp(w._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}g.prototype=new M,g.prototype.__set_whitespace_patterns=function(c,w){c+="\\t ",w+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+w+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+w+"]")},g.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var w=this.__split(this._newline_regexp,c);this.newline_count=w.length-1,this.whitespace_before_token=w[this.newline_count]}return c},g.prototype.matching=function(c,w){var v=this._create();return v.__set_whitespace_patterns(c,w),v._update(),v},g.prototype._create=function(){return new g(this._input,this)},g.prototype.__split=function(c,w){c.lastIndex=0;for(var v=0,Y=[],se=c.exec(w);se;)Y.push(w.substring(v,se.index)),v=se.index+se[0].length,se=c.exec(w);return v<w.length?Y.push(w.substring(v,w.length)):Y.push(""),Y},Ee.exports.WhitespacePattern=g},function(Ee){function o(R,M){this._input=R,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,M&&(this._starting_pattern=this._input.get_regexp(M._starting_pattern,!0),this._match_pattern=this._input.get_regexp(M._match_pattern,!0),this._until_pattern=this._input.get_regexp(M._until_pattern),this._until_after=M._until_after)}o.prototype.read=function(){var R=this._input.read(this._starting_pattern);return(!this._starting_pattern||R)&&(R+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),R},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(R){var M=this._create();return M._until_after=!0,M._until_pattern=this._input.get_regexp(R),M._update(),M},o.prototype.until=function(R){var M=this._create();return M._until_after=!1,M._until_pattern=this._input.get_regexp(R),M._update(),M},o.prototype.starting_with=function(R){var M=this._create();return M._starting_pattern=this._input.get_regexp(R,!0),M._update(),M},o.prototype.matching=function(R){var M=this._create();return M._match_pattern=this._input.get_regexp(R,!0),M._update(),M},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},Ee.exports.Pattern=o},function(Ee){function o(R,M){R=typeof R=="string"?R:R.source,M=typeof M=="string"?M:M.source,this.__directives_block_pattern=new RegExp(R+/ beautify( \w+[:]\w+)+ /.source+M,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(R+/\sbeautify\signore:end\s/.source+M,"g")}o.prototype.get_directives=function(R){if(!R.match(this.__directives_block_pattern))return null;var M={};this.__directive_pattern.lastIndex=0;for(var g=this.__directive_pattern.exec(R);g;)M[g[1]]=g[2],g=this.__directive_pattern.exec(R);return M},o.prototype.readIgnored=function(R){return R.readUntilAfter(this.__directives_end_ignore_pattern)},Ee.exports.Directives=o},function(Ee,o,R){var M=R(12).Pattern,g={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function c(w,v){M.call(this,w,v),this.__template_pattern=null,this._disabled=Object.assign({},g),this._excluded=Object.assign({},g),v&&(this.__template_pattern=this._input.get_regexp(v.__template_pattern),this._excluded=Object.assign(this._excluded,v._excluded),this._disabled=Object.assign(this._disabled,v._disabled));var Y=new M(w);this.__patterns={handlebars_comment:Y.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:Y.starting_with(/{{{/).until_after(/}}}/),handlebars:Y.starting_with(/{{/).until_after(/}}/),php:Y.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:Y.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:Y.starting_with(/{%/).until_after(/%}/),django_value:Y.starting_with(/{{/).until_after(/}}/),django_comment:Y.starting_with(/{#/).until_after(/#}/),smarty:Y.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:Y.starting_with(/{\*/).until_after(/\*}/),smarty_literal:Y.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new M,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(w){var v=this._create();return v._disabled[w]=!0,v._update(),v},c.prototype.read_options=function(w){var v=this._create();for(var Y in g)v._disabled[Y]=w.templating.indexOf(Y)===-1;return v._update(),v},c.prototype.exclude=function(w){var v=this._create();return v._excluded[w]=!0,v._update(),v},c.prototype.read=function(){var w="";this._match_pattern?w=this._input.read(this._starting_pattern):w=this._input.read(this._starting_pattern,this.__template_pattern);for(var v=this._read_template();v;)this._match_pattern?v+=this._input.read(this._match_pattern):v+=this._input.readUntil(this.__template_pattern),w+=v,v=this._read_template();return this._until_after&&(w+=this._input.readUntilAfter(this._until_pattern)),w},c.prototype.__set_templated_pattern=function(){var w=[];this._disabled.php||w.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||w.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||w.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||w.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(w.push(this.__patterns.django._starting_pattern.source),w.push(this.__patterns.django_value._starting_pattern.source),w.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||w.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&w.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+w.join("|")+")")},c.prototype._read_template=function(){var w="",v=this._input.peek();if(v==="<"){var Y=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&Y==="?"&&(w=w||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&Y==="%"&&(w=w||this.__patterns.erb.read())}else v==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(w=w||this.__patterns.handlebars_comment.read(),w=w||this.__patterns.handlebars_unescaped.read(),w=w||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(w=w||this.__patterns.django_value.read()),this._excluded.django||(w=w||this.__patterns.django_comment.read(),w=w||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(w=w||this.__patterns.smarty_comment.read(),w=w||this.__patterns.smarty_literal.read(),w=w||this.__patterns.smarty.read()));return w},Ee.exports.TemplatablePattern=c}],V={};function ce(Ee){var o=V[Ee];if(o!==void 0)return o.exports;var R=V[Ee]={exports:{}};return Re[Ee](R,R.exports,ce),R.exports}var _e=ce(0);N=_e})();var te=N;_=[],P=function(){return{js_beautify:te}}.apply(nt,_),P!==void 0&&(rn.exports=P)})()},15342:function(rn){(function(_,P){rn.exports=P()})(typeof self!="undefined"?self:this,function(){return function(nt){var _={};function P(N){if(_[N])return _[N].exports;var te=_[N]={i:N,l:!1,exports:{}};return nt[N].call(te.exports,te,te.exports,P),te.l=!0,te.exports}return P.m=nt,P.c=_,P.d=function(N,te,Re){P.o(N,te)||Object.defineProperty(N,te,{enumerable:!0,get:Re})},P.r=function(N){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"__esModule",{value:!0})},P.t=function(N,te){if(te&1&&(N=P(N)),te&8||te&4&&typeof N=="object"&&N&&N.__esModule)return N;var Re=Object.create(null);if(P.r(Re),Object.defineProperty(Re,"default",{enumerable:!0,value:N}),te&2&&typeof N!="string")for(var V in N)P.d(Re,V,function(ce){return N[ce]}.bind(null,V));return Re},P.n=function(N){var te=N&&N.__esModule?function(){return N.default}:function(){return N};return P.d(te,"a",te),te},P.o=function(N,te){return Object.prototype.hasOwnProperty.call(N,te)},P.p="",P(P.s=1)}([function(nt,_,P){},function(nt,_,P){"use strict";P.r(_);var N=P(0),te=function(){function U(l,h,d){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=h,this.end=d}return U.range=function(h,d){return d?!h||!h.loc||!d.loc||h.loc.lexer!==d.loc.lexer?null:new U(h.loc.lexer,h.loc.start,d.loc.end):h&&h.loc},U}(),Re=function(){function U(h,d){this.text=void 0,this.loc=void 0,this.text=h,this.loc=d}var l=U.prototype;return l.range=function(d,m){return new U(m,te.range(this,d))},U}(),V=function U(l,h){this.position=void 0;var d="KaTeX parse error: "+l,m,I=h&&h.loc;if(I&&I.start<=I.end){var z=I.lexer.input;m=I.start;var xe=I.end;m===z.length?d+=" at end of input: ":d+=" at position "+(m+1)+": ";var ke=z.slice(m,xe).replace(/[^]/g,"$&\u0332"),je;m>15?je="\u2026"+z.slice(m-15,m):je=z.slice(0,m);var at;xe+15<z.length?at=z.slice(xe,xe+15)+"\u2026":at=z.slice(xe),d+=je+ke+at}var vt=new Error(d);return vt.name="ParseError",vt.__proto__=U.prototype,vt.position=m,vt};V.prototype.__proto__=Error.prototype;var ce=V,_e=function(l,h){return l.indexOf(h)!==-1},Ee=function(l,h){return l===void 0?h:l},o=/([A-Z])/g,R=function(l){return l.replace(o,"-$1").toLowerCase()},M={"&":"&",">":">","<":"<",'"':""","'":"'"},g=/[&><"']/g;function c(U){return String(U).replace(g,function(l){return M[l]})}var w=function U(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?U(l.body[0]):l:l.type==="font"?U(l.body):l},v=function(l){var h=w(l);return h.type==="mathord"||h.type==="textord"||h.type==="atom"},Y=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},se=function(l){var h=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(l);return h!=null?h[1]:"_relative"},K={contains:_e,deflt:Ee,escape:c,hyphenate:R,getBaseElem:w,isCharacterBox:v,protocolFromUrl:se},F=function(){function U(h){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,h=h||{},this.displayMode=K.deflt(h.displayMode,!1),this.output=K.deflt(h.output,"htmlAndMathml"),this.leqno=K.deflt(h.leqno,!1),this.fleqn=K.deflt(h.fleqn,!1),this.throwOnError=K.deflt(h.throwOnError,!0),this.errorColor=K.deflt(h.errorColor,"#cc0000"),this.macros=h.macros||{},this.minRuleThickness=Math.max(0,K.deflt(h.minRuleThickness,0)),this.colorIsTextColor=K.deflt(h.colorIsTextColor,!1),this.strict=K.deflt(h.strict,"warn"),this.trust=K.deflt(h.trust,!1),this.maxSize=Math.max(0,K.deflt(h.maxSize,1/0)),this.maxExpand=Math.max(0,K.deflt(h.maxExpand,1e3))}var l=U.prototype;return l.reportNonstrict=function(d,m,I){var z=this.strict;if(typeof z=="function"&&(z=z(d,m,I)),!(!z||z==="ignore")){if(z===!0||z==="error")throw new ce("LaTeX-incompatible input and strict mode is set to 'error': "+(m+" ["+d+"]"),I);z==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+d+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+z+"': "+m+" ["+d+"]"))}},l.useStrictBehavior=function(d,m,I){var z=this.strict;if(typeof z=="function")try{z=z(d,m,I)}catch(xe){z="error"}return!z||z==="ignore"?!1:z===!0||z==="error"?!0:z==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+d+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+z+"': "+m+" ["+d+"]")),!1)},l.isTrusted=function(d){d.url&&!d.protocol&&(d.protocol=K.protocolFromUrl(d.url));var m=typeof this.trust=="function"?this.trust(d):this.trust;return!!m},U}(),H=function(){function U(h,d,m){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=h,this.size=d,this.cramped=m}var l=U.prototype;return l.sup=function(){return He[q[this.id]]},l.sub=function(){return He[$[this.id]]},l.fracNum=function(){return He[ae[this.id]]},l.fracDen=function(){return He[ee[this.id]]},l.cramp=function(){return He[ye[this.id]]},l.text=function(){return He[re[this.id]]},l.isTight=function(){return this.size>=2},U}(),ne=0,b=1,A=2,B=3,X=4,ge=5,Ie=6,Oe=7,He=[new H(ne,0,!1),new H(b,0,!0),new H(A,1,!1),new H(B,1,!0),new H(X,2,!1),new H(ge,2,!0),new H(Ie,3,!1),new H(Oe,3,!0)],q=[X,ge,X,ge,Ie,Oe,Ie,Oe],$=[ge,ge,ge,ge,Oe,Oe,Oe,Oe],ae=[A,B,X,ge,Ie,Oe,Ie,Oe],ee=[B,B,ge,ge,Oe,Oe,Oe,Oe],ye=[b,b,B,B,ge,ge,Oe,Oe],re=[ne,b,A,B,A,B,A,B],x={DISPLAY:He[ne],TEXT:He[A],SCRIPT:He[X],SCRIPTSCRIPT:He[Ie]},S=[{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 Q(U){for(var l=0;l<S.length;l++)for(var h=S[l],d=0;d<h.blocks.length;d++){var m=h.blocks[d];if(U>=m[0]&&U<=m[1])return h.name}return null}var be=[];S.forEach(function(U){return U.blocks.forEach(function(l){return be.push.apply(be,l)})});function Ve(U){for(var l=0;l<be.length;l+=2)if(U>=be[l]&&U<=be[l+1])return!0;return!1}var tt=80,Je=function(l,h){return"M95,"+(622+l+h)+`
|
|
|
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)+" "+h+"h400000v"+(40+l)+"h-400000z"},et=function(l,h){return"M263,"+(601+l+h)+`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)+" "+h+"h400000v"+(40+l)+"h-400000z"},xt=function(l,h){return"M983 "+(10+l+h)+`
|
|
|
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)+" "+h+"h400000v"+(40+l)+"h-400000z"},gt=function(l,h){return"M424,"+(2398+l+h)+`
|
|
|
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)+" "+h+`
|
|
|
h400000v`+(40+l)+"h-400000z"},st=function(l,h){return"M473,"+(2713+l+h)+`
|
|
|
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)+" "+h+"h400000v"+(40+l)+"H1017.7z"},kt=function(l,h,d){var m=d-54-h-l;return"M702 "+(l+h)+"H400000"+(40+l)+`
|
|
|
H742v`+m+`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 `+h+"H400000v"+(40+l)+"H742z"},Ft=function(l,h,d){h=1e3*h;var m="";switch(l){case"sqrtMain":m=Je(h,tt);break;case"sqrtSize1":m=et(h,tt);break;case"sqrtSize2":m=xt(h,tt);break;case"sqrtSize3":m=gt(h,tt);break;case"sqrtSize4":m=st(h,tt);break;case"sqrtTall":m=kt(h,tt,d)}return m},cn={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`},Vt=function(){function U(h){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=h,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=U.prototype;return l.hasClass=function(d){return K.contains(this.classes,d)},l.toNode=function(){for(var d=document.createDocumentFragment(),m=0;m<this.children.length;m++)d.appendChild(this.children[m].toNode());return d},l.toMarkup=function(){for(var d="",m=0;m<this.children.length;m++)d+=this.children[m].toMarkup();return d},l.toText=function(){var d=function(I){return I.toText()};return this.children.map(d).join("")},U}(),it=function(l){return l.filter(function(h){return h}).join(" ")},At=function(l,h,d){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=d||{},h){h.style.isTight()&&this.classes.push("mtight");var m=h.getColor();m&&(this.style.color=m)}},oe=function(l){var h=document.createElement(l);h.className=it(this.classes);for(var d in this.style)this.style.hasOwnProperty(d)&&(h.style[d]=this.style[d]);for(var m in this.attributes)this.attributes.hasOwnProperty(m)&&h.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)h.appendChild(this.children[I].toNode());return h},me=function(l){var h="<"+l;this.classes.length&&(h+=' class="'+K.escape(it(this.classes))+'"');var d="";for(var m in this.style)this.style.hasOwnProperty(m)&&(d+=K.hyphenate(m)+":"+this.style[m]+";");d&&(h+=' style="'+K.escape(d)+'"');for(var I in this.attributes)this.attributes.hasOwnProperty(I)&&(h+=" "+I+'="'+K.escape(this.attributes[I])+'"');h+=">";for(var z=0;z<this.children.length;z++)h+=this.children[z].toMarkup();return h+="</"+l+">",h},k=function(){function U(h,d,m,I){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,At.call(this,h,m,I),this.children=d||[]}var l=U.prototype;return l.setAttribute=function(d,m){this.attributes[d]=m},l.hasClass=function(d){return K.contains(this.classes,d)},l.toNode=function(){return oe.call(this,"span")},l.toMarkup=function(){return me.call(this,"span")},U}(),de=function(){function U(h,d,m,I){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,At.call(this,d,I),this.children=m||[],this.setAttribute("href",h)}var l=U.prototype;return l.setAttribute=function(d,m){this.attributes[d]=m},l.hasClass=function(d){return K.contains(this.classes,d)},l.toNode=function(){return oe.call(this,"a")},l.toMarkup=function(){return me.call(this,"a")},U}(),we=function(){function U(h,d,m){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=d,this.src=h,this.classes=["mord"],this.style=m}var l=U.prototype;return l.hasClass=function(d){return K.contains(this.classes,d)},l.toNode=function(){var d=document.createElement("img");d.src=this.src,d.alt=this.alt,d.className="mord";for(var m in this.style)this.style.hasOwnProperty(m)&&(d.style[m]=this.style[m]);return d},l.toMarkup=function(){var d="<img src='"+this.src+" 'alt='"+this.alt+"' ",m="";for(var I in this.style)this.style.hasOwnProperty(I)&&(m+=K.hyphenate(I)+":"+this.style[I]+";");return m&&(d+=' style="'+K.escape(m)+'"'),d+="'/>",d},U}(),L={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},T=function(){function U(h,d,m,I,z,xe,ke,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=h,this.height=d||0,this.depth=m||0,this.italic=I||0,this.skew=z||0,this.width=xe||0,this.classes=ke||[],this.style=je||{},this.maxFontSize=0;var at=Q(this.text.charCodeAt(0));at&&this.classes.push(at+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=L[this.text])}var l=U.prototype;return l.hasClass=function(d){return K.contains(this.classes,d)},l.toNode=function(){var d=document.createTextNode(this.text),m=null;this.italic>0&&(m=document.createElement("span"),m.style.marginRight=this.italic+"em"),this.classes.length>0&&(m=m||document.createElement("span"),m.className=it(this.classes));for(var I in this.style)this.style.hasOwnProperty(I)&&(m=m||document.createElement("span"),m.style[I]=this.style[I]);return m?(m.appendChild(d),m):d},l.toMarkup=function(){var d=!1,m="<span";this.classes.length&&(d=!0,m+=' class="',m+=K.escape(it(this.classes)),m+='"');var I="";this.italic>0&&(I+="margin-right:"+this.italic+"em;");for(var z in this.style)this.style.hasOwnProperty(z)&&(I+=K.hyphenate(z)+":"+this.style[z]+";");I&&(d=!0,m+=' style="'+K.escape(I)+'"');var xe=K.escape(this.text);return d?(m+=">",m+=xe,m+="</span>",m):xe},U}(),O=function(){function U(h,d){this.children=void 0,this.attributes=void 0,this.children=h||[],this.attributes=d||{}}var l=U.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",m=document.createElementNS(d,"svg");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);for(var z=0;z<this.children.length;z++)m.appendChild(this.children[z].toNode());return m},l.toMarkup=function(){var d="<svg";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(d+=" "+m+"='"+this.attributes[m]+"'");d+=">";for(var I=0;I<this.children.length;I++)d+=this.children[I].toMarkup();return d+="</svg>",d},U}(),ue=function(){function U(h,d){this.pathName=void 0,this.alternate=void 0,this.pathName=h,this.alternate=d}var l=U.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",m=document.createElementNS(d,"path");return this.alternate?m.setAttribute("d",this.alternate):m.setAttribute("d",cn[this.pathName]),m},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+cn[this.pathName]+"'/>"},U}(),he=function(){function U(h){this.attributes=void 0,this.attributes=h||{}}var l=U.prototype;return l.toNode=function(){var d="http://www.w3.org/2000/svg",m=document.createElementNS(d,"line");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);return m},l.toMarkup=function(){var d="<line";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(d+=" "+m+"='"+this.attributes[m]+"'");return d+="/>",d},U}();function Z(U){if(U instanceof T)return U;throw new Error("Expected symbolNode but got "+String(U)+".")}function De(U){if(U instanceof k)return U;throw new Error("Expected span<HtmlDomNode> but got "+String(U)+".")}var Ue={"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]}},Ae={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]},Ne={\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 We(U,l){Ue[U]=l}function Xe(U,l,h){if(!Ue[l])throw new Error("Font metrics not found for font: "+l+".");var d=U.charCodeAt(0),m=Ue[l][d];if(!m&&U[0]in Ne&&(d=Ne[U[0]].charCodeAt(0),m=Ue[l][d]),!m&&h==="text"&&Ve(d)&&(m=Ue[l][77]),m)return{depth:m[0],height:m[1],italic:m[2],skew:m[3],width:m[4]}}var qe={};function ht(U){var l;if(U>=5?l=0:U>=3?l=1:l=2,!qe[l]){var h=qe[l]={cssEmPerMu:Ae.quad[l]/18};for(var d in Ae)Ae.hasOwnProperty(d)&&(h[d]=Ae[d][l])}return qe[l]}var St={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_t={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},It={math:{},text:{}},Ct=It;function y(U,l,h,d,m,I){It[U][m]={font:l,group:h,replace:d},I&&d&&(It[U][d]=It[U][m])}var C="math",ot="text",W="main",Ce="ams",yn="accent-token",Me="bin",Ke="close",Ze="inner",J="mathord",fe="op-token",Te="open",Be="punct",G="rel",Ot="spacing",Pe="textord";y(C,W,G,"\u2261","\\equiv",!0),y(C,W,G,"\u227A","\\prec",!0),y(C,W,G,"\u227B","\\succ",!0),y(C,W,G,"\u223C","\\sim",!0),y(C,W,G,"\u22A5","\\perp"),y(C,W,G,"\u2AAF","\\preceq",!0),y(C,W,G,"\u2AB0","\\succeq",!0),y(C,W,G,"\u2243","\\simeq",!0),y(C,W,G,"\u2223","\\mid",!0),y(C,W,G,"\u226A","\\ll",!0),y(C,W,G,"\u226B","\\gg",!0),y(C,W,G,"\u224D","\\asymp",!0),y(C,W,G,"\u2225","\\parallel"),y(C,W,G,"\u22C8","\\bowtie",!0),y(C,W,G,"\u2323","\\smile",!0),y(C,W,G,"\u2291","\\sqsubseteq",!0),y(C,W,G,"\u2292","\\sqsupseteq",!0),y(C,W,G,"\u2250","\\doteq",!0),y(C,W,G,"\u2322","\\frown",!0),y(C,W,G,"\u220B","\\ni",!0),y(C,W,G,"\u221D","\\propto",!0),y(C,W,G,"\u22A2","\\vdash",!0),y(C,W,G,"\u22A3","\\dashv",!0),y(C,W,G,"\u220B","\\owns"),y(C,W,Be,".","\\ldotp"),y(C,W,Be,"\u22C5","\\cdotp"),y(C,W,Pe,"#","\\#"),y(ot,W,Pe,"#","\\#"),y(C,W,Pe,"&","\\&"),y(ot,W,Pe,"&","\\&"),y(C,W,Pe,"\u2135","\\aleph",!0),y(C,W,Pe,"\u2200","\\forall",!0),y(C,W,Pe,"\u210F","\\hbar",!0),y(C,W,Pe,"\u2203","\\exists",!0),y(C,W,Pe,"\u2207","\\nabla",!0),y(C,W,Pe,"\u266D","\\flat",!0),y(C,W,Pe,"\u2113","\\ell",!0),y(C,W,Pe,"\u266E","\\natural",!0),y(C,W,Pe,"\u2663","\\clubsuit",!0),y(C,W,Pe,"\u2118","\\wp",!0),y(C,W,Pe,"\u266F","\\sharp",!0),y(C,W,Pe,"\u2662","\\diamondsuit",!0),y(C,W,Pe,"\u211C","\\Re",!0),y(C,W,Pe,"\u2661","\\heartsuit",!0),y(C,W,Pe,"\u2111","\\Im",!0),y(C,W,Pe,"\u2660","\\spadesuit",!0),y(ot,W,Pe,"\xA7","\\S",!0),y(ot,W,Pe,"\xB6","\\P",!0),y(C,W,Pe,"\u2020","\\dag"),y(ot,W,Pe,"\u2020","\\dag"),y(ot,W,Pe,"\u2020","\\textdagger"),y(C,W,Pe,"\u2021","\\ddag"),y(ot,W,Pe,"\u2021","\\ddag"),y(ot,W,Pe,"\u2021","\\textdaggerdbl"),y(C,W,Ke,"\u23B1","\\rmoustache",!0),y(C,W,Te,"\u23B0","\\lmoustache",!0),y(C,W,Ke,"\u27EF","\\rgroup",!0),y(C,W,Te,"\u27EE","\\lgroup",!0),y(C,W,Me,"\u2213","\\mp",!0),y(C,W,Me,"\u2296","\\ominus",!0),y(C,W,Me,"\u228E","\\uplus",!0),y(C,W,Me,"\u2293","\\sqcap",!0),y(C,W,Me,"\u2217","\\ast"),y(C,W,Me,"\u2294","\\sqcup",!0),y(C,W,Me,"\u25EF","\\bigcirc"),y(C,W,Me,"\u2219","\\bullet"),y(C,W,Me,"\u2021","\\ddagger"),y(C,W,Me,"\u2240","\\wr",!0),y(C,W,Me,"\u2A3F","\\amalg"),y(C,W,Me,"&","\\And"),y(C,W,G,"\u27F5","\\longleftarrow",!0),y(C,W,G,"\u21D0","\\Leftarrow",!0),y(C,W,G,"\u27F8","\\Longleftarrow",!0),y(C,W,G,"\u27F6","\\longrightarrow",!0),y(C,W,G,"\u21D2","\\Rightarrow",!0),y(C,W,G,"\u27F9","\\Longrightarrow",!0),y(C,W,G,"\u2194","\\leftrightarrow",!0),y(C,W,G,"\u27F7","\\longleftrightarrow",!0),y(C,W,G,"\u21D4","\\Leftrightarrow",!0),y(C,W,G,"\u27FA","\\Longleftrightarrow",!0),y(C,W,G,"\u21A6","\\mapsto",!0),y(C,W,G,"\u27FC","\\longmapsto",!0),y(C,W,G,"\u2197","\\nearrow",!0),y(C,W,G,"\u21A9","\\hookleftarrow",!0),y(C,W,G,"\u21AA","\\hookrightarrow",!0),y(C,W,G,"\u2198","\\searrow",!0),y(C,W,G,"\u21BC","\\leftharpoonup",!0),y(C,W,G,"\u21C0","\\rightharpoonup",!0),y(C,W,G,"\u2199","\\swarrow",!0),y(C,W,G,"\u21BD","\\leftharpoondown",!0),y(C,W,G,"\u21C1","\\rightharpoondown",!0),y(C,W,G,"\u2196","\\nwarrow",!0),y(C,W,G,"\u21CC","\\rightleftharpoons",!0),y(C,Ce,G,"\u226E","\\nless",!0),y(C,Ce,G,"\uE010","\\@nleqslant"),y(C,Ce,G,"\uE011","\\@nleqq"),y(C,Ce,G,"\u2A87","\\lneq",!0),y(C,Ce,G,"\u2268","\\lneqq",!0),y(C,Ce,G,"\uE00C","\\@lvertneqq"),y(C,Ce,G,"\u22E6","\\lnsim",!0),y(C,Ce,G,"\u2A89","\\lnapprox",!0),y(C,Ce,G,"\u2280","\\nprec",!0),y(C,Ce,G,"\u22E0","\\npreceq",!0),y(C,Ce,G,"\u22E8","\\precnsim",!0),y(C,Ce,G,"\u2AB9","\\precnapprox",!0),y(C,Ce,G,"\u2241","\\nsim",!0),y(C,Ce,G,"\uE006","\\@nshortmid"),y(C,Ce,G,"\u2224","\\nmid",!0),y(C,Ce,G,"\u22AC","\\nvdash",!0),y(C,Ce,G,"\u22AD","\\nvDash",!0),y(C,Ce,G,"\u22EA","\\ntriangleleft"),y(C,Ce,G,"\u22EC","\\ntrianglelefteq",!0),y(C,Ce,G,"\u228A","\\subsetneq",!0),y(C,Ce,G,"\uE01A","\\@varsubsetneq"),y(C,Ce,G,"\u2ACB","\\subsetneqq",!0),y(C,Ce,G,"\uE017","\\@varsubsetneqq"),y(C,Ce,G,"\u226F","\\ngtr",!0),y(C,Ce,G,"\uE00F","\\@ngeqslant"),y(C,Ce,G,"\uE00E","\\@ngeqq"),y(C,Ce,G,"\u2A88","\\gneq",!0),y(C,Ce,G,"\u2269","\\gneqq",!0),y(C,Ce,G,"\uE00D","\\@gvertneqq"),y(C,Ce,G,"\u22E7","\\gnsim",!0),y(C,Ce,G,"\u2A8A","\\gnapprox",!0),y(C,Ce,G,"\u2281","\\nsucc",!0),y(C,Ce,G,"\u22E1","\\nsucceq",!0),y(C,Ce,G,"\u22E9","\\succnsim",!0),y(C,Ce,G,"\u2ABA","\\succnapprox",!0),y(C,Ce,G,"\u2246","\\ncong",!0),y(C,Ce,G,"\uE007","\\@nshortparallel"),y(C,Ce,G,"\u2226","\\nparallel",!0),y(C,Ce,G,"\u22AF","\\nVDash",!0),y(C,Ce,G,"\u22EB","\\ntriangleright"),y(C,Ce,G,"\u22ED","\\ntrianglerighteq",!0),y(C,Ce,G,"\uE018","\\@nsupseteqq"),y(C,Ce,G,"\u228B","\\supsetneq",!0),y(C,Ce,G,"\uE01B","\\@varsupsetneq"),y(C,Ce,G,"\u2ACC","\\supsetneqq",!0),y(C,Ce,G,"\uE019","\\@varsupsetneqq"),y(C,Ce,G,"\u22AE","\\nVdash",!0),y(C,Ce,G,"\u2AB5","\\precneqq",!0),y(C,Ce,G,"\u2AB6","\\succneqq",!0),y(C,Ce,G,"\uE016","\\@nsubseteqq"),y(C,Ce,Me,"\u22B4","\\unlhd"),y(C,Ce,Me,"\u22B5","\\unrhd"),y(C,Ce,G,"\u219A","\\nleftarrow",!0),y(C,Ce,G,"\u219B","\\nrightarrow",!0),y(C,Ce,G,"\u21CD","\\nLeftarrow",!0),y(C,Ce,G,"\u21CF","\\nRightarrow",!0),y(C,Ce,G,"\u21AE","\\nleftrightarrow",!0),y(C,Ce,G,"\u21CE","\\nLeftrightarrow",!0),y(C,Ce,G,"\u25B3","\\vartriangle"),y(C,Ce,Pe,"\u210F","\\hslash"),y(C,Ce,Pe,"\u25BD","\\triangledown"),y(C,Ce,Pe,"\u25CA","\\lozenge"),y(C,Ce,Pe,"\u24C8","\\circledS"),y(C,Ce,Pe,"\xAE","\\circledR"),y(ot,Ce,Pe,"\xAE","\\circledR"),y(C,Ce,Pe,"\u2221","\\measuredangle",!0),y(C,Ce,Pe,"\u2204","\\nexists"),y(C,Ce,Pe,"\u2127","\\mho"),y(C,Ce,Pe,"\u2132","\\Finv",!0),y(C,Ce,Pe,"\u2141","\\Game",!0),y(C,Ce,Pe,"\u2035","\\backprime"),y(C,Ce,Pe,"\u25B2","\\blacktriangle"),y(C,Ce,Pe,"\u25BC","\\blacktriangledown"),y(C,Ce,Pe,"\u25A0","\\blacksquare"),y(C,Ce,Pe,"\u29EB","\\blacklozenge"),y(C,Ce,Pe,"\u2605","\\bigstar"),y(C,Ce,Pe,"\u2222","\\sphericalangle",!0),y(C,Ce,Pe,"\u2201","\\complement",!0),y(C,Ce,Pe,"\xF0","\\eth",!0),y(C,Ce,Pe,"\u2571","\\diagup"),y(C,Ce,Pe,"\u2572","\\diagdown"),y(C,Ce,Pe,"\u25A1","\\square"),y(C,Ce,Pe,"\u25A1","\\Box"),y(C,Ce,Pe,"\u25CA","\\Diamond"),y(C,Ce,Pe,"\xA5","\\yen",!0),y(ot,Ce,Pe,"\xA5","\\yen",!0),y(C,Ce,Pe,"\u2713","\\checkmark",!0),y(ot,Ce,Pe,"\u2713","\\checkmark"),y(C,Ce,Pe,"\u2136","\\beth",!0),y(C,Ce,Pe,"\u2138","\\daleth",!0),y(C,Ce,Pe,"\u2137","\\gimel",!0),y(C,Ce,Pe,"\u03DD","\\digamma",!0),y(C,Ce,Pe,"\u03F0","\\varkappa"),y(C,Ce,Te,"\u250C","\\ulcorner",!0),y(C,Ce,Ke,"\u2510","\\urcorner",!0),y(C,Ce,Te,"\u2514","\\llcorner",!0),y(C,Ce,Ke,"\u2518","\\lrcorner",!0),y(C,Ce,G,"\u2266","\\leqq",!0),y(C,Ce,G,"\u2A7D","\\leqslant",!0),y(C,Ce,G,"\u2A95","\\eqslantless",!0),y(C,Ce,G,"\u2272","\\lesssim",!0),y(C,Ce,G,"\u2A85","\\lessapprox",!0),y(C,Ce,G,"\u224A","\\approxeq",!0),y(C,Ce,Me,"\u22D6","\\lessdot"),y(C,Ce,G,"\u22D8","\\lll",!0),y(C,Ce,G,"\u2276","\\lessgtr",!0),y(C,Ce,G,"\u22DA","\\lesseqgtr",!0),y(C,Ce,G,"\u2A8B","\\lesseqqgtr",!0),y(C,Ce,G,"\u2251","\\doteqdot"),y(C,Ce,G,"\u2253","\\risingdotseq",!0),y(C,Ce,G,"\u2252","\\fallingdotseq",!0),y(C,Ce,G,"\u223D","\\backsim",!0),y(C,Ce,G,"\u22CD","\\backsimeq",!0),y(C,Ce,G,"\u2AC5","\\subseteqq",!0),y(C,Ce,G,"\u22D0","\\Subset",!0),y(C,Ce,G,"\u228F","\\sqsubset",!0),y(C,Ce,G,"\u227C","\\preccurlyeq",!0),y(C,Ce,G,"\u22DE","\\curlyeqprec",!0),y(C,Ce,G,"\u227E","\\precsim",!0),y(C,Ce,G,"\u2AB7","\\precapprox",!0),y(C,Ce,G,"\u22B2","\\vartriangleleft"),y(C,Ce,G,"\u22B4","\\trianglelefteq"),y(C,Ce,G,"\u22A8","\\vDash",!0),y(C,Ce,G,"\u22AA","\\Vvdash",!0),y(C,Ce,G,"\u2323","\\smallsmile"),y(C,Ce,G,"\u2322","\\smallfrown"),y(C,Ce,G,"\u224F","\\bumpeq",!0),y(C,Ce,G,"\u224E","\\Bumpeq",!0),y(C,Ce,G,"\u2267","\\geqq",!0),y(C,Ce,G,"\u2A7E","\\geqslant",!0),y(C,Ce,G,"\u2A96","\\eqslantgtr",!0),y(C,Ce,G,"\u2273","\\gtrsim",!0),y(C,Ce,G,"\u2A86","\\gtrapprox",!0),y(C,Ce,Me,"\u22D7","\\gtrdot"),y(C,Ce,G,"\u22D9","\\ggg",!0),y(C,Ce,G,"\u2277","\\gtrless",!0),y(C,Ce,G,"\u22DB","\\gtreqless",!0),y(C,Ce,G,"\u2A8C","\\gtreqqless",!0),y(C,Ce,G,"\u2256","\\eqcirc",!0),y(C,Ce,G,"\u2257","\\circeq",!0),y(C,Ce,G,"\u225C","\\triangleq",!0),y(C,Ce,G,"\u223C","\\thicksim"),y(C,Ce,G,"\u2248","\\thickapprox"),y(C,Ce,G,"\u2AC6","\\supseteqq",!0),y(C,Ce,G,"\u22D1","\\Supset",!0),y(C,Ce,G,"\u2290","\\sqsupset",!0),y(C,Ce,G,"\u227D","\\succcurlyeq",!0),y(C,Ce,G,"\u22DF","\\curlyeqsucc",!0),y(C,Ce,G,"\u227F","\\succsim",!0),y(C,Ce,G,"\u2AB8","\\succapprox",!0),y(C,Ce,G,"\u22B3","\\vartriangleright"),y(C,Ce,G,"\u22B5","\\trianglerighteq"),y(C,Ce,G,"\u22A9","\\Vdash",!0),y(C,Ce,G,"\u2223","\\shortmid"),y(C,Ce,G,"\u2225","\\shortparallel"),y(C,Ce,G,"\u226C","\\between",!0),y(C,Ce,G,"\u22D4","\\pitchfork",!0),y(C,Ce,G,"\u221D","\\varpropto"),y(C,Ce,G,"\u25C0","\\blacktriangleleft"),y(C,Ce,G,"\u2234","\\therefore",!0),y(C,Ce,G,"\u220D","\\backepsilon"),y(C,Ce,G,"\u25B6","\\blacktriangleright"),y(C,Ce,G,"\u2235","\\because",!0),y(C,Ce,G,"\u22D8","\\llless"),y(C,Ce,G,"\u22D9","\\gggtr"),y(C,Ce,Me,"\u22B2","\\lhd"),y(C,Ce,Me,"\u22B3","\\rhd"),y(C,Ce,G,"\u2242","\\eqsim",!0),y(C,W,G,"\u22C8","\\Join"),y(C,Ce,G,"\u2251","\\Doteq",!0),y(C,Ce,Me,"\u2214","\\dotplus",!0),y(C,Ce,Me,"\u2216","\\smallsetminus"),y(C,Ce,Me,"\u22D2","\\Cap",!0),y(C,Ce,Me,"\u22D3","\\Cup",!0),y(C,Ce,Me,"\u2A5E","\\doublebarwedge",!0),y(C,Ce,Me,"\u229F","\\boxminus",!0),y(C,Ce,Me,"\u229E","\\boxplus",!0),y(C,Ce,Me,"\u22C7","\\divideontimes",!0),y(C,Ce,Me,"\u22C9","\\ltimes",!0),y(C,Ce,Me,"\u22CA","\\rtimes",!0),y(C,Ce,Me,"\u22CB","\\leftthreetimes",!0),y(C,Ce,Me,"\u22CC","\\rightthreetimes",!0),y(C,Ce,Me,"\u22CF","\\curlywedge",!0),y(C,Ce,Me,"\u22CE","\\curlyvee",!0),y(C,Ce,Me,"\u229D","\\circleddash",!0),y(C,Ce,Me,"\u229B","\\circledast",!0),y(C,Ce,Me,"\u22C5","\\centerdot"),y(C,Ce,Me,"\u22BA","\\intercal",!0),y(C,Ce,Me,"\u22D2","\\doublecap"),y(C,Ce,Me,"\u22D3","\\doublecup"),y(C,Ce,Me,"\u22A0","\\boxtimes",!0),y(C,Ce,G,"\u21E2","\\dashrightarrow",!0),y(C,Ce,G,"\u21E0","\\dashleftarrow",!0),y(C,Ce,G,"\u21C7","\\leftleftarrows",!0),y(C,Ce,G,"\u21C6","\\leftrightarrows",!0),y(C,Ce,G,"\u21DA","\\Lleftarrow",!0),y(C,Ce,G,"\u219E","\\twoheadleftarrow",!0),y(C,Ce,G,"\u21A2","\\leftarrowtail",!0),y(C,Ce,G,"\u21AB","\\looparrowleft",!0),y(C,Ce,G,"\u21CB","\\leftrightharpoons",!0),y(C,Ce,G,"\u21B6","\\curvearrowleft",!0),y(C,Ce,G,"\u21BA","\\circlearrowleft",!0),y(C,Ce,G,"\u21B0","\\Lsh",!0),y(C,Ce,G,"\u21C8","\\upuparrows",!0),y(C,Ce,G,"\u21BF","\\upharpoonleft",!0),y(C,Ce,G,"\u21C3","\\downharpoonleft",!0),y(C,Ce,G,"\u22B8","\\multimap",!0),y(C,Ce,G,"\u21AD","\\leftrightsquigarrow",!0),y(C,Ce,G,"\u21C9","\\rightrightarrows",!0),y(C,Ce,G,"\u21C4","\\rightleftarrows",!0),y(C,Ce,G,"\u21A0","\\twoheadrightarrow",!0),y(C,Ce,G,"\u21A3","\\rightarrowtail",!0),y(C,Ce,G,"\u21AC","\\looparrowright",!0),y(C,Ce,G,"\u21B7","\\curvearrowright",!0),y(C,Ce,G,"\u21BB","\\circlearrowright",!0),y(C,Ce,G,"\u21B1","\\Rsh",!0),y(C,Ce,G,"\u21CA","\\downdownarrows",!0),y(C,Ce,G,"\u21BE","\\upharpoonright",!0),y(C,Ce,G,"\u21C2","\\downharpoonright",!0),y(C,Ce,G,"\u21DD","\\rightsquigarrow",!0),y(C,Ce,G,"\u21DD","\\leadsto"),y(C,Ce,G,"\u21DB","\\Rrightarrow",!0),y(C,Ce,G,"\u21BE","\\restriction"),y(C,W,Pe,"\u2018","`"),y(C,W,Pe,"$","\\$"),y(ot,W,Pe,"$","\\$"),y(ot,W,Pe,"$","\\textdollar"),y(C,W,Pe,"%","\\%"),y(ot,W,Pe,"%","\\%"),y(C,W,Pe,"_","\\_"),y(ot,W,Pe,"_","\\_"),y(ot,W,Pe,"_","\\textunderscore"),y(C,W,Pe,"\u2220","\\angle",!0),y(C,W,Pe,"\u221E","\\infty",!0),y(C,W,Pe,"\u2032","\\prime"),y(C,W,Pe,"\u25B3","\\triangle"),y(C,W,Pe,"\u0393","\\Gamma",!0),y(C,W,Pe,"\u0394","\\Delta",!0),y(C,W,Pe,"\u0398","\\Theta",!0),y(C,W,Pe,"\u039B","\\Lambda",!0),y(C,W,Pe,"\u039E","\\Xi",!0),y(C,W,Pe,"\u03A0","\\Pi",!0),y(C,W,Pe,"\u03A3","\\Sigma",!0),y(C,W,Pe,"\u03A5","\\Upsilon",!0),y(C,W,Pe,"\u03A6","\\Phi",!0),y(C,W,Pe,"\u03A8","\\Psi",!0),y(C,W,Pe,"\u03A9","\\Omega",!0),y(C,W,Pe,"A","\u0391"),y(C,W,Pe,"B","\u0392"),y(C,W,Pe,"E","\u0395"),y(C,W,Pe,"Z","\u0396"),y(C,W,Pe,"H","\u0397"),y(C,W,Pe,"I","\u0399"),y(C,W,Pe,"K","\u039A"),y(C,W,Pe,"M","\u039C"),y(C,W,Pe,"N","\u039D"),y(C,W,Pe,"O","\u039F"),y(C,W,Pe,"P","\u03A1"),y(C,W,Pe,"T","\u03A4"),y(C,W,Pe,"X","\u03A7"),y(C,W,Pe,"\xAC","\\neg",!0),y(C,W,Pe,"\xAC","\\lnot"),y(C,W,Pe,"\u22A4","\\top"),y(C,W,Pe,"\u22A5","\\bot"),y(C,W,Pe,"\u2205","\\emptyset"),y(C,Ce,Pe,"\u2205","\\varnothing"),y(C,W,J,"\u03B1","\\alpha",!0),y(C,W,J,"\u03B2","\\beta",!0),y(C,W,J,"\u03B3","\\gamma",!0),y(C,W,J,"\u03B4","\\delta",!0),y(C,W,J,"\u03F5","\\epsilon",!0),y(C,W,J,"\u03B6","\\zeta",!0),y(C,W,J,"\u03B7","\\eta",!0),y(C,W,J,"\u03B8","\\theta",!0),y(C,W,J,"\u03B9","\\iota",!0),y(C,W,J,"\u03BA","\\kappa",!0),y(C,W,J,"\u03BB","\\lambda",!0),y(C,W,J,"\u03BC","\\mu",!0),y(C,W,J,"\u03BD","\\nu",!0),y(C,W,J,"\u03BE","\\xi",!0),y(C,W,J,"\u03BF","\\omicron",!0),y(C,W,J,"\u03C0","\\pi",!0),y(C,W,J,"\u03C1","\\rho",!0),y(C,W,J,"\u03C3","\\sigma",!0),y(C,W,J,"\u03C4","\\tau",!0),y(C,W,J,"\u03C5","\\upsilon",!0),y(C,W,J,"\u03D5","\\phi",!0),y(C,W,J,"\u03C7","\\chi",!0),y(C,W,J,"\u03C8","\\psi",!0),y(C,W,J,"\u03C9","\\omega",!0),y(C,W,J,"\u03B5","\\varepsilon",!0),y(C,W,J,"\u03D1","\\vartheta",!0),y(C,W,J,"\u03D6","\\varpi",!0),y(C,W,J,"\u03F1","\\varrho",!0),y(C,W,J,"\u03C2","\\varsigma",!0),y(C,W,J,"\u03C6","\\varphi",!0),y(C,W,Me,"\u2217","*"),y(C,W,Me,"+","+"),y(C,W,Me,"\u2212","-"),y(C,W,Me,"\u22C5","\\cdot",!0),y(C,W,Me,"\u2218","\\circ"),y(C,W,Me,"\xF7","\\div",!0),y(C,W,Me,"\xB1","\\pm",!0),y(C,W,Me,"\xD7","\\times",!0),y(C,W,Me,"\u2229","\\cap",!0),y(C,W,Me,"\u222A","\\cup",!0),y(C,W,Me,"\u2216","\\setminus"),y(C,W,Me,"\u2227","\\land"),y(C,W,Me,"\u2228","\\lor"),y(C,W,Me,"\u2227","\\wedge",!0),y(C,W,Me,"\u2228","\\vee",!0),y(C,W,Pe,"\u221A","\\surd"),y(C,W,Te,"(","("),y(C,W,Te,"[","["),y(C,W,Te,"\u27E8","\\langle",!0),y(C,W,Te,"\u2223","\\lvert"),y(C,W,Te,"\u2225","\\lVert"),y(C,W,Ke,")",")"),y(C,W,Ke,"]","]"),y(C,W,Ke,"?","?"),y(C,W,Ke,"!","!"),y(C,W,Ke,"\u27E9","\\rangle",!0),y(C,W,Ke,"\u2223","\\rvert"),y(C,W,Ke,"\u2225","\\rVert"),y(C,W,G,"=","="),y(C,W,G,"<","<"),y(C,W,G,">",">"),y(C,W,G,":",":"),y(C,W,G,"\u2248","\\approx",!0),y(C,W,G,"\u2245","\\cong",!0),y(C,W,G,"\u2265","\\ge"),y(C,W,G,"\u2265","\\geq",!0),y(C,W,G,"\u2190","\\gets"),y(C,W,G,">","\\gt"),y(C,W,G,"\u2208","\\in",!0),y(C,W,G,"\uE020","\\@not"),y(C,W,G,"\u2282","\\subset",!0),y(C,W,G,"\u2283","\\supset",!0),y(C,W,G,"\u2286","\\subseteq",!0),y(C,W,G,"\u2287","\\supseteq",!0),y(C,Ce,G,"\u2288","\\nsubseteq",!0),y(C,Ce,G,"\u2289","\\nsupseteq",!0),y(C,W,G,"\u22A8","\\models"),y(C,W,G,"\u2190","\\leftarrow",!0),y(C,W,G,"\u2264","\\le"),y(C,W,G,"\u2264","\\leq",!0),y(C,W,G,"<","\\lt"),y(C,W,G,"\u2192","\\rightarrow",!0),y(C,W,G,"\u2192","\\to"),y(C,Ce,G,"\u2271","\\ngeq",!0),y(C,Ce,G,"\u2270","\\nleq",!0),y(C,W,Ot,"\xA0","\\ "),y(C,W,Ot,"\xA0","~"),y(C,W,Ot,"\xA0","\\space"),y(C,W,Ot,"\xA0","\\nobreakspace"),y(ot,W,Ot,"\xA0","\\ "),y(ot,W,Ot,"\xA0","~"),y(ot,W,Ot,"\xA0","\\space"),y(ot,W,Ot,"\xA0","\\nobreakspace"),y(C,W,Ot,null,"\\nobreak"),y(C,W,Ot,null,"\\allowbreak"),y(C,W,Be,",",","),y(C,W,Be,";",";"),y(C,Ce,Me,"\u22BC","\\barwedge",!0),y(C,Ce,Me,"\u22BB","\\veebar",!0),y(C,W,Me,"\u2299","\\odot",!0),y(C,W,Me,"\u2295","\\oplus",!0),y(C,W,Me,"\u2297","\\otimes",!0),y(C,W,Pe,"\u2202","\\partial",!0),y(C,W,Me,"\u2298","\\oslash",!0),y(C,Ce,Me,"\u229A","\\circledcirc",!0),y(C,Ce,Me,"\u22A1","\\boxdot",!0),y(C,W,Me,"\u25B3","\\bigtriangleup"),y(C,W,Me,"\u25BD","\\bigtriangledown"),y(C,W,Me,"\u2020","\\dagger"),y(C,W,Me,"\u22C4","\\diamond"),y(C,W,Me,"\u22C6","\\star"),y(C,W,Me,"\u25C3","\\triangleleft"),y(C,W,Me,"\u25B9","\\triangleright"),y(C,W,Te,"{","\\{"),y(ot,W,Pe,"{","\\{"),y(ot,W,Pe,"{","\\textbraceleft"),y(C,W,Ke,"}","\\}"),y(ot,W,Pe,"}","\\}"),y(ot,W,Pe,"}","\\textbraceright"),y(C,W,Te,"{","\\lbrace"),y(C,W,Ke,"}","\\rbrace"),y(C,W,Te,"[","\\lbrack"),y(ot,W,Pe,"[","\\lbrack"),y(C,W,Ke,"]","\\rbrack"),y(ot,W,Pe,"]","\\rbrack"),y(C,W,Te,"(","\\lparen"),y(C,W,Ke,")","\\rparen"),y(ot,W,Pe,"<","\\textless"),y(ot,W,Pe,">","\\textgreater"),y(C,W,Te,"\u230A","\\lfloor",!0),y(C,W,Ke,"\u230B","\\rfloor",!0),y(C,W,Te,"\u2308","\\lceil",!0),y(C,W,Ke,"\u2309","\\rceil",!0),y(C,W,Pe,"\\","\\backslash"),y(C,W,Pe,"\u2223","|"),y(C,W,Pe,"\u2223","\\vert"),y(ot,W,Pe,"|","\\textbar"),y(C,W,Pe,"\u2225","\\|"),y(C,W,Pe,"\u2225","\\Vert"),y(ot,W,Pe,"\u2225","\\textbardbl"),y(ot,W,Pe,"~","\\textasciitilde"),y(ot,W,Pe,"\\","\\textbackslash"),y(ot,W,Pe,"^","\\textasciicircum"),y(C,W,G,"\u2191","\\uparrow",!0),y(C,W,G,"\u21D1","\\Uparrow",!0),y(C,W,G,"\u2193","\\downarrow",!0),y(C,W,G,"\u21D3","\\Downarrow",!0),y(C,W,G,"\u2195","\\updownarrow",!0),y(C,W,G,"\u21D5","\\Updownarrow",!0),y(C,W,fe,"\u2210","\\coprod"),y(C,W,fe,"\u22C1","\\bigvee"),y(C,W,fe,"\u22C0","\\bigwedge"),y(C,W,fe,"\u2A04","\\biguplus"),y(C,W,fe,"\u22C2","\\bigcap"),y(C,W,fe,"\u22C3","\\bigcup"),y(C,W,fe,"\u222B","\\int"),y(C,W,fe,"\u222B","\\intop"),y(C,W,fe,"\u222C","\\iint"),y(C,W,fe,"\u222D","\\iiint"),y(C,W,fe,"\u220F","\\prod"),y(C,W,fe,"\u2211","\\sum"),y(C,W,fe,"\u2A02","\\bigotimes"),y(C,W,fe,"\u2A01","\\bigoplus"),y(C,W,fe,"\u2A00","\\bigodot"),y(C,W,fe,"\u222E","\\oint"),y(C,W,fe,"\u222F","\\oiint"),y(C,W,fe,"\u2230","\\oiiint"),y(C,W,fe,"\u2A06","\\bigsqcup"),y(C,W,fe,"\u222B","\\smallint"),y(ot,W,Ze,"\u2026","\\textellipsis"),y(C,W,Ze,"\u2026","\\mathellipsis"),y(ot,W,Ze,"\u2026","\\ldots",!0),y(C,W,Ze,"\u2026","\\ldots",!0),y(C,W,Ze,"\u22EF","\\@cdots",!0),y(C,W,Ze,"\u22F1","\\ddots",!0),y(C,W,Pe,"\u22EE","\\varvdots"),y(C,W,yn,"\u02CA","\\acute"),y(C,W,yn,"\u02CB","\\grave"),y(C,W,yn,"\xA8","\\ddot"),y(C,W,yn,"~","\\tilde"),y(C,W,yn,"\u02C9","\\bar"),y(C,W,yn,"\u02D8","\\breve"),y(C,W,yn,"\u02C7","\\check"),y(C,W,yn,"^","\\hat"),y(C,W,yn,"\u20D7","\\vec"),y(C,W,yn,"\u02D9","\\dot"),y(C,W,yn,"\u02DA","\\mathring"),y(C,W,J,"\u0131","\\imath",!0),y(C,W,J,"\u0237","\\jmath",!0),y(ot,W,Pe,"\u0131","\\i",!0),y(ot,W,Pe,"\u0237","\\j",!0),y(ot,W,Pe,"\xDF","\\ss",!0),y(ot,W,Pe,"\xE6","\\ae",!0),y(ot,W,Pe,"\xE6","\\ae",!0),y(ot,W,Pe,"\u0153","\\oe",!0),y(ot,W,Pe,"\xF8","\\o",!0),y(ot,W,Pe,"\xC6","\\AE",!0),y(ot,W,Pe,"\u0152","\\OE",!0),y(ot,W,Pe,"\xD8","\\O",!0),y(ot,W,yn,"\u02CA","\\'"),y(ot,W,yn,"\u02CB","\\`"),y(ot,W,yn,"\u02C6","\\^"),y(ot,W,yn,"\u02DC","\\~"),y(ot,W,yn,"\u02C9","\\="),y(ot,W,yn,"\u02D8","\\u"),y(ot,W,yn,"\u02D9","\\."),y(ot,W,yn,"\u02DA","\\r"),y(ot,W,yn,"\u02C7","\\v"),y(ot,W,yn,"\xA8",'\\"'),y(ot,W,yn,"\u02DD","\\H"),y(ot,W,yn,"\u25EF","\\textcircled");var Yt={"--":!0,"---":!0,"``":!0,"''":!0};y(ot,W,Pe,"\u2013","--"),y(ot,W,Pe,"\u2013","\\textendash"),y(ot,W,Pe,"\u2014","---"),y(ot,W,Pe,"\u2014","\\textemdash"),y(ot,W,Pe,"\u2018","`"),y(ot,W,Pe,"\u2018","\\textquoteleft"),y(ot,W,Pe,"\u2019","'"),y(ot,W,Pe,"\u2019","\\textquoteright"),y(ot,W,Pe,"\u201C","``"),y(ot,W,Pe,"\u201C","\\textquotedblleft"),y(ot,W,Pe,"\u201D","''"),y(ot,W,Pe,"\u201D","\\textquotedblright"),y(C,W,Pe,"\xB0","\\degree",!0),y(ot,W,Pe,"\xB0","\\degree"),y(ot,W,Pe,"\xB0","\\textdegree",!0),y(C,W,J,"\xA3","\\pounds"),y(C,W,J,"\xA3","\\mathsterling",!0),y(ot,W,J,"\xA3","\\pounds"),y(ot,W,J,"\xA3","\\textsterling",!0),y(C,Ce,Pe,"\u2720","\\maltese"),y(ot,Ce,Pe,"\u2720","\\maltese"),y(ot,W,Ot,"\xA0","\\ "),y(ot,W,Ot,"\xA0"," "),y(ot,W,Ot,"\xA0","~");for(var mn='0123456789/@."',wn=0;wn<mn.length;wn++){var Hn=mn.charAt(wn);y(C,W,Pe,Hn,Hn)}for(var $t='0123456789!@*()-=+[]<>|";:?/.,',qt=0;qt<$t.length;qt++){var $e=$t.charAt(qt);y(ot,W,Pe,$e,$e)}for(var dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Tt=0;Tt<dt.length;Tt++){var Le=dt.charAt(Tt);y(C,W,J,Le,Le),y(ot,W,Pe,Le,Le)}y(C,Ce,Pe,"C","\u2102"),y(ot,Ce,Pe,"C","\u2102"),y(C,Ce,Pe,"H","\u210D"),y(ot,Ce,Pe,"H","\u210D"),y(C,Ce,Pe,"N","\u2115"),y(ot,Ce,Pe,"N","\u2115"),y(C,Ce,Pe,"P","\u2119"),y(ot,Ce,Pe,"P","\u2119"),y(C,Ce,Pe,"Q","\u211A"),y(ot,Ce,Pe,"Q","\u211A"),y(C,Ce,Pe,"R","\u211D"),y(ot,Ce,Pe,"R","\u211D"),y(C,Ce,Pe,"Z","\u2124"),y(ot,Ce,Pe,"Z","\u2124"),y(C,W,J,"h","\u210E"),y(ot,W,J,"h","\u210E");for(var ve="",rt=0;rt<dt.length;rt++){var lt=dt.charAt(rt);ve=String.fromCharCode(55349,56320+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56372+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56424+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56580+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56736+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56788+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56840+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56944+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),rt<26&&(ve=String.fromCharCode(55349,56632+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve),ve=String.fromCharCode(55349,56476+rt),y(C,W,J,lt,ve),y(ot,W,Pe,lt,ve))}ve="\u{1D55C}",y(C,W,J,"k",ve),y(ot,W,Pe,"k",ve);for(var Nt=0;Nt<10;Nt++){var Rt=Nt.toString();ve=String.fromCharCode(55349,57294+Nt),y(C,W,J,Rt,ve),y(ot,W,Pe,Rt,ve),ve=String.fromCharCode(55349,57314+Nt),y(C,W,J,Rt,ve),y(ot,W,Pe,Rt,ve),ve=String.fromCharCode(55349,57324+Nt),y(C,W,J,Rt,ve),y(ot,W,Pe,Rt,ve),ve=String.fromCharCode(55349,57334+Nt),y(C,W,J,Rt,ve),y(ot,W,Pe,Rt,ve)}for(var zt="\xC7\xD0\xDE\xE7\xFE",Pt=0;Pt<zt.length;Pt++){var Wt=zt.charAt(Pt);y(C,W,J,Wt,Wt),y(ot,W,Pe,Wt,Wt)}y(ot,W,Pe,"\xF0","\xF0"),y(ot,W,Pe,"\u2013","\u2013"),y(ot,W,Pe,"\u2014","\u2014"),y(ot,W,Pe,"\u2018","\u2018"),y(ot,W,Pe,"\u2019","\u2019"),y(ot,W,Pe,"\u201C","\u201C"),y(ot,W,Pe,"\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"]],Lt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],ft=function(l,h){var d=l.charCodeAt(0),m=l.charCodeAt(1),I=(d-55296)*1024+(m-56320)+65536,z=h==="math"?0:1;if(119808<=I&&I<120484){var xe=Math.floor((I-119808)/26);return[ln[xe][2],ln[xe][z]]}else if(120782<=I&&I<=120831){var ke=Math.floor((I-120782)/10);return[Lt[ke][2],Lt[ke][z]]}else{if(I===120485||I===120486)return[ln[0][2],ln[0][z]];if(120486<I&&I<120782)return["",""];throw new ce("Unsupported character: "+l)}},jt=[[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]],Ut=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Zt=function(l,h){return h.size<2?l:jt[l-1][h.size-1]},un=function(){function U(h){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=h.style,this.color=h.color,this.size=h.size||U.BASESIZE,this.textSize=h.textSize||this.size,this.phantom=!!h.phantom,this.font=h.font||"",this.fontFamily=h.fontFamily||"",this.fontWeight=h.fontWeight||"",this.fontShape=h.fontShape||"",this.sizeMultiplier=Ut[this.size-1],this.maxSize=h.maxSize,this.minRuleThickness=h.minRuleThickness,this._fontMetrics=void 0}var l=U.prototype;return l.extend=function(d){var m={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 I in d)d.hasOwnProperty(I)&&(m[I]=d[I]);return new U(m)},l.havingStyle=function(d){return this.style===d?this:this.extend({style:d,size:Zt(this.textSize,d)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(d){return this.size===d&&this.textSize===d?this:this.extend({style:this.style.text(),size:d,textSize:d,sizeMultiplier:Ut[d-1]})},l.havingBaseStyle=function(d){d=d||this.style.text();var m=Zt(U.BASESIZE,d);return this.size===m&&this.textSize===U.BASESIZE&&this.style===d?this:this.extend({style:d,size:m})},l.havingBaseSizing=function(){var d;switch(this.style.id){case 4:case 5:d=3;break;case 6:case 7:d=1;break;default:d=6}return this.extend({style:this.style.text(),size:d})},l.withColor=function(d){return this.extend({color:d})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(d){return this.extend({font:d})},l.withTextFontFamily=function(d){return this.extend({fontFamily:d,font:""})},l.withTextFontWeight=function(d){return this.extend({fontWeight:d,font:""})},l.withTextFontShape=function(d){return this.extend({fontShape:d,font:""})},l.sizingClasses=function(d){return d.size!==this.size?["sizing","reset-size"+d.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==U.BASESIZE?["sizing","reset-size"+this.size,"size"+U.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=ht(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},U}();un.BASESIZE=6;var zn=un,gn={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},Bt={ex:!0,em:!0,mu:!0},Ye=function(l){return typeof l!="string"&&(l=l.unit),l in gn||l in Bt||l==="ex"},Qe=function(l,h){var d;if(l.unit in gn)d=gn[l.unit]/h.fontMetrics().ptPerEm/h.sizeMultiplier;else if(l.unit==="mu")d=h.fontMetrics().cssEmPerMu;else{var m;if(h.style.isTight()?m=h.havingStyle(h.style.text()):m=h,l.unit==="ex")d=m.fontMetrics().xHeight;else if(l.unit==="em")d=m.fontMetrics().quad;else throw new ce("Invalid unit: '"+l.unit+"'");m!==h&&(d*=m.sizeMultiplier/h.sizeMultiplier)}return Math.min(l.number*d,h.maxSize)},ut=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],yt=function(l,h,d){return Ct[d][l]&&Ct[d][l].replace&&(l=Ct[d][l].replace),{value:l,metrics:Xe(l,h,d)}},ct=function(l,h,d,m,I){var z=yt(l,h,d),xe=z.metrics;l=z.value;var ke;if(xe){var je=xe.italic;(d==="text"||m&&m.font==="mathit")&&(je=0),ke=new T(l,xe.height,xe.depth,je,xe.skew,xe.width,I)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+h+"' and mode '"+d+"'")),ke=new T(l,0,0,0,0,0,I);if(m){ke.maxFontSize=m.sizeMultiplier,m.style.isTight()&&ke.classes.push("mtight");var at=m.getColor();at&&(ke.style.color=at)}return ke},Et=function(l,h,d,m){return m===void 0&&(m=[]),d.font==="boldsymbol"&&yt(l,"Main-Bold",h).metrics?ct(l,"Main-Bold",h,d,m.concat(["mathbf"])):l==="\\"||Ct[h][l].font==="main"?ct(l,"Main-Regular",h,d,m):ct(l,"AMS-Regular",h,d,m.concat(["amsrm"]))},bt=function(l,h,d,m){return/[0-9]/.test(l.charAt(0))||K.contains(ut,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Kt=function(l,h,d,m){return K.contains(ut,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Qt=function(l,h,d,m){return yt(l,"Math-BoldItalic",h).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},nn=function(l,h,d){var m=l.mode,I=l.text,z=["mord"],xe=m==="math"||m==="text"&&h.font,ke=xe?h.font:h.fontFamily;if(I.charCodeAt(0)===55349){var je=ft(I,m),at=je[0],vt=je[1];return ct(I,at,m,h,z.concat(vt))}else if(ke){var Mt,sn;if(ke==="boldsymbol"||ke==="mathnormal"){var pn=ke==="boldsymbol"?Qt(I,m,h,z):Kt(I,m,h,z);Mt=pn.fontName,sn=[pn.fontClass]}else K.contains(ut,I)?(Mt="Main-Italic",sn=["mathit"]):xe?(Mt=fr[ke].fontName,sn=[ke]):(Mt=qn(ke,h.fontWeight,h.fontShape),sn=[ke,h.fontWeight,h.fontShape]);if(yt(I,Mt,m).metrics)return ct(I,Mt,m,h,z.concat(sn));if(Yt.hasOwnProperty(I)&&Mt.substr(0,10)==="Typewriter"){for(var Ln=[],Xn=0;Xn<I.length;Xn++)Ln.push(ct(I[Xn],Mt,m,h,z.concat(sn)));return Qn(Ln)}}if(d==="mathord"){var mr=bt(I,m,h,z);return ct(I,mr.fontName,m,h,z.concat([mr.fontClass]))}else if(d==="textord"){var gr=Ct[m][I]&&Ct[m][I].font;if(gr==="ams"){var pr=qn("amsrm",h.fontWeight,h.fontShape);return ct(I,pr,m,h,z.concat("amsrm",h.fontWeight,h.fontShape))}else if(gr==="main"||!gr){var jr=qn("textrm",h.fontWeight,h.fontShape);return ct(I,jr,m,h,z.concat(h.fontWeight,h.fontShape))}else{var Kr=qn(gr,h.fontWeight,h.fontShape);return ct(I,Kr,m,h,z.concat(Kr,h.fontWeight,h.fontShape))}}else throw new Error("unexpected type: "+d+" in makeOrd")},Cn=function(l,h){if(it(l.classes)!==it(h.classes)||l.skew!==h.skew||l.maxFontSize!==h.maxFontSize)return!1;for(var d in l.style)if(l.style.hasOwnProperty(d)&&l.style[d]!==h.style[d])return!1;for(var m in h.style)if(h.style.hasOwnProperty(m)&&l.style[m]!==h.style[m])return!1;return!0},Rn=function(l){for(var h=0;h<l.length-1;h++){var d=l[h],m=l[h+1];d instanceof T&&m instanceof T&&Cn(d,m)&&(d.text+=m.text,d.height=Math.max(d.height,m.height),d.depth=Math.max(d.depth,m.depth),d.italic=m.italic,l.splice(h+1,1),h--)}return l},On=function(l){for(var h=0,d=0,m=0,I=0;I<l.children.length;I++){var z=l.children[I];z.height>h&&(h=z.height),z.depth>d&&(d=z.depth),z.maxFontSize>m&&(m=z.maxFontSize)}l.height=h,l.depth=d,l.maxFontSize=m},on=function(l,h,d,m){var I=new k(l,h,d,m);return On(I),I},Xt=function(l,h,d,m){return new k(l,h,d,m)},$n=function(l,h,d){var m=on([l],[],h);return m.height=Math.max(d||h.fontMetrics().defaultRuleThickness,h.minRuleThickness),m.style.borderBottomWidth=m.height+"em",m.maxFontSize=1,m},Sn=function(l,h,d,m){var I=new de(l,h,d,m);return On(I),I},Qn=function(l){var h=new Vt(l);return On(h),h},An=function(l,h){return l instanceof Vt?on([],[l],h):l},kn=function(l){if(l.positionType==="individualShift"){for(var h=l.children,d=[h[0]],m=-h[0].shift-h[0].elem.depth,I=m,z=1;z<h.length;z++){var xe=-h[z].shift-I-h[z].elem.depth,ke=xe-(h[z-1].elem.height+h[z-1].elem.depth);I=I+xe,d.push({type:"kern",size:ke}),d.push(h[z])}return{children:d,depth:m}}var je;if(l.positionType==="top"){for(var at=l.positionData,vt=0;vt<l.children.length;vt++){var Mt=l.children[vt];at-=Mt.type==="kern"?Mt.size:Mt.elem.height+Mt.elem.depth}je=at}else if(l.positionType==="bottom")je=-l.positionData;else{var sn=l.children[0];if(sn.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")je=-sn.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")je=-sn.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:je}},Kn=function(l,h){for(var d=kn(l),m=d.children,I=d.depth,z=0,xe=0;xe<m.length;xe++){var ke=m[xe];if(ke.type==="elem"){var je=ke.elem;z=Math.max(z,je.maxFontSize,je.height)}}z+=2;var at=on(["pstrut"],[]);at.style.height=z+"em";for(var vt=[],Mt=I,sn=I,pn=I,Ln=0;Ln<m.length;Ln++){var Xn=m[Ln];if(Xn.type==="kern")pn+=Xn.size;else{var mr=Xn.elem,gr=Xn.wrapperClasses||[],pr=Xn.wrapperStyle||{},jr=on(gr,[at,mr],void 0,pr);jr.style.top=-z-pn-mr.depth+"em",Xn.marginLeft&&(jr.style.marginLeft=Xn.marginLeft),Xn.marginRight&&(jr.style.marginRight=Xn.marginRight),vt.push(jr),pn+=mr.height+mr.depth}Mt=Math.min(Mt,pn),sn=Math.max(sn,pn)}var Kr=on(["vlist"],vt);Kr.style.height=sn+"em";var qr;if(Mt<0){var ti=on([],[]),ai=on(["vlist"],[ti]);ai.style.height=-Mt+"em";var Ri=on(["vlist-s"],[new T("\u200B")]);qr=[on(["vlist-r"],[Kr,Ri]),on(["vlist-r"],[ai])]}else qr=[on(["vlist-r"],[Kr])];var Si=on(["vlist-t"],qr);return qr.length===2&&Si.classes.push("vlist-t2"),Si.height=sn,Si.depth=-Mt,Si},In=function(l,h){var d=on(["mspace"],[],h),m=Qe(l,h);return d.style.marginRight=m+"em",d},qn=function(l,h,d){var m="";switch(l){case"amsrm":m="AMS";break;case"textrm":m="Main";break;case"textsf":m="SansSerif";break;case"texttt":m="Typewriter";break;default:m=l}var I;return h==="textbf"&&d==="textit"?I="BoldItalic":h==="textbf"?I="Bold":h==="textit"?I="Italic":I="Regular",m+"-"+I},fr={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"}},Tn={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Jt=function(l,h){var d=Tn[l],m=d[0],I=d[1],z=d[2],xe=new ue(m),ke=new O([xe],{width:I+"em",height:z+"em",style:"width:"+I+"em",viewBox:"0 0 "+1e3*I+" "+1e3*z,preserveAspectRatio:"xMinYMin"}),je=Xt(["overlay"],[ke],h);return je.height=z,je.style.height=z+"em",je.style.width=I+"em",je},ze={fontMap:fr,makeSymbol:ct,mathsym:Et,makeSpan:on,makeSvgSpan:Xt,makeLineSpan:$n,makeAnchor:Sn,makeFragment:Qn,wrapFragment:An,makeVList:Kn,makeOrd:nn,makeGlue:In,staticSvg:Jt,svgData:Tn,tryCombineChars:Rn};function fn(U,l){var h=Pn(U,l);if(!h)throw new Error("Expected node of type "+l+", but got "+(U?"node of type "+U.type:String(U)));return h}function Pn(U,l){return U&&U.type===l?U:null}function Vn(U,l){var h=Yn(U,l);if(!h)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(U?U.type==="atom"?"atom of family "+U.family:"node of type "+U.type:String(U)));return h}function Yn(U,l){return U&&U.type==="atom"&&U.family===l?U:null}function rr(U){var l=sr(U);if(!l)throw new Error("Expected node of symbol group type, but got "+(U?"node of type "+U.type:String(U)));return l}function sr(U){return U&&(U.type==="atom"||_t.hasOwnProperty(U.type))?U:null}var Un={number:3,unit:"mu"},ar={number:4,unit:"mu"},vn={number:5,unit:"mu"},en={mord:{mop:Un,mbin:ar,mrel:vn,minner:Un},mop:{mord:Un,mop:Un,mrel:vn,minner:Un},mbin:{mord:ar,mop:ar,mopen:ar,minner:ar},mrel:{mord:vn,mop:vn,mopen:vn,minner:vn},mopen:{},mclose:{mop:Un,mbin:ar,mrel:vn,minner:Un},mpunct:{mord:Un,mop:Un,mrel:vn,mopen:Un,mclose:Un,mpunct:Un,minner:Un},minner:{mord:Un,mop:Un,mbin:ar,mrel:vn,mopen:Un,mpunct:Un,minner:Un}},Dn={mord:{mop:Un},mop:{mord:Un,mop:Un},mbin:{},mrel:{},mopen:{},mclose:{mop:Un},mpunct:{},minner:{mop:Un}},Jn={},or={},Pr={};function _n(U){for(var l=U.type,h=U.names,d=U.props,m=U.handler,I=U.htmlBuilder,z=U.mathmlBuilder,xe={type:l,numArgs:d.numArgs,argTypes:d.argTypes,greediness:d.greediness===void 0?1:d.greediness,allowedInText:!!d.allowedInText,allowedInMath:d.allowedInMath===void 0?!0:d.allowedInMath,numOptionalArgs:d.numOptionalArgs||0,infix:!!d.infix,handler:m},ke=0;ke<h.length;++ke)Jn[h[ke]]=xe;l&&(I&&(or[l]=I),z&&(Pr[l]=z))}function cr(U){var l=U.type,h=U.htmlBuilder,d=U.mathmlBuilder;_n({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:h,mathmlBuilder:d})}var lr=function(l){var h=Pn(l,"ordgroup");return h?h.body:[l]},Er=ze.makeSpan,Mr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Br=["rightmost","mrel","mclose","mpunct"],_r={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT},Tr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},wr=function(l,h,d,m){m===void 0&&(m=[null,null]);for(var I=[],z=0;z<l.length;z++){var xe=ir(l[z],h);if(xe instanceof Vt){var ke=xe.children;I.push.apply(I,ke)}else I.push(xe)}if(!d)return I;var je=h;if(l.length===1){var at=Pn(l[0],"sizing")||Pn(l[0],"styling");at&&(at.type==="sizing"?je=h.havingSize(at.size):at.type==="styling"&&(je=h.havingStyle(_r[at.style])))}var vt=Er([m[0]||"leftmost"],[],h),Mt=Er([m[1]||"rightmost"],[],h);return Jr(I,function(sn,pn){var Ln=pn.classes[0],Xn=sn.classes[0];Ln==="mbin"&&K.contains(Br,Xn)?pn.classes[0]="mord":Xn==="mbin"&&K.contains(Mr,Ln)&&(sn.classes[0]="mord")},{node:vt},Mt),Jr(I,function(sn,pn){var Ln=kr(pn),Xn=kr(sn),mr=Ln&&Xn?sn.hasClass("mtight")?Dn[Ln][Xn]:en[Ln][Xn]:null;if(mr)return ze.makeGlue(mr,je)},{node:vt},Mt),I},Jr=function U(l,h,d,m){m&&l.push(m);for(var I=0;I<l.length;I++){var z=l[I],xe=Yr(z);if(xe){U(xe.children,h,d);continue}if(z.classes[0]!=="mspace"){var ke=h(z,d.node);ke&&(d.insertAfter?d.insertAfter(ke):(l.unshift(ke),I++)),d.node=z,d.insertAfter=function(je){return function(at){l.splice(je+1,0,at),I++}}(I)}}m&&l.pop()},Yr=function(l){return l instanceof Vt||l instanceof de?l:null},ii=function U(l,h){var d=Yr(l);if(d){var m=d.children;if(m.length){if(h==="right")return U(m[m.length-1],"right");if(h==="left")return U(m[0],"left")}}return l},kr=function(l,h){return l?(h&&(l=ii(l,h)),Tr[l.classes[0]]||null):null},ei=function(l,h){var d=["nulldelimiter"].concat(l.baseSizingClasses());return Er(h.concat(d))},ir=function(l,h,d){if(!l)return Er();if(or[l.type]){var m=or[l.type](l,h);if(d&&h.size!==d.size){m=Er(h.sizingClasses(d),[m],h);var I=h.sizeMultiplier/d.sizeMultiplier;m.height*=I,m.depth*=I}return m}else throw new ce("Got group of unknown type: '"+l.type+"'")};function ci(U,l){var h=Er(["base"],U,l),d=Er(["strut"]);return d.style.height=h.height+h.depth+"em",d.style.verticalAlign=-h.depth+"em",h.children.unshift(d),h}function yi(U,l){var h=null;U.length===1&&U[0].type==="tag"&&(h=U[0].tag,U=U[0].body);for(var d=wr(U,l,!0),m=[],I=[],z=0;z<d.length;z++)if(I.push(d[z]),d[z].hasClass("mbin")||d[z].hasClass("mrel")||d[z].hasClass("allowbreak")){for(var xe=!1;z<d.length-1&&d[z+1].hasClass("mspace")&&!d[z+1].hasClass("newline");)z++,I.push(d[z]),d[z].hasClass("nobreak")&&(xe=!0);xe||(m.push(ci(I,l)),I=[])}else d[z].hasClass("newline")&&(I.pop(),I.length>0&&(m.push(ci(I,l)),I=[]),m.push(d[z]));I.length>0&&m.push(ci(I,l));var ke;h&&(ke=ci(wr(h,l,!0)),ke.classes=["tag"],m.push(ke));var je=Er(["katex-html"],m);if(je.setAttribute("aria-hidden","true"),ke){var at=ke.children[0];at.style.height=je.height+je.depth+"em",at.style.verticalAlign=-je.depth+"em"}return je}function di(U){return new Vt(U)}var Ar=function(){function U(h,d){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=h,this.attributes={},this.children=d||[]}var l=U.prototype;return l.setAttribute=function(d,m){this.attributes[d]=m},l.getAttribute=function(d){return this.attributes[d]},l.toNode=function(){var d=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&d.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)d.appendChild(this.children[I].toNode());return d},l.toMarkup=function(){var d="<"+this.type;for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(d+=" "+m+'="',d+=K.escape(this.attributes[m]),d+='"');d+=">";for(var I=0;I<this.children.length;I++)d+=this.children[I].toMarkup();return d+="</"+this.type+">",d},l.toText=function(){return this.children.map(function(d){return d.toText()}).join("")},U}(),fi=function(){function U(h){this.text=void 0,this.text=h}var l=U.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return K.escape(this.toText())},l.toText=function(){return this.text},U}(),Ci=function(){function U(h){this.width=void 0,this.character=void 0,this.width=h,h>=.05555&&h<=.05556?this.character="\u200A":h>=.1666&&h<=.1667?this.character="\u2009":h>=.2222&&h<=.2223?this.character="\u2005":h>=.2777&&h<=.2778?this.character="\u2005\u200A":h>=-.05556&&h<=-.05555?this.character="\u200A\u2063":h>=-.1667&&h<=-.1666?this.character="\u2009\u2063":h>=-.2223&&h<=-.2222?this.character="\u205F\u2063":h>=-.2778&&h<=-.2777?this.character="\u2005\u2063":this.character=null}var l=U.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var d=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return d.setAttribute("width",this.width+"em"),d},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},U}(),dn={MathNode:Ar,TextNode:fi,SpaceNode:Ci,newDocumentFragment:di},Qr=function(l,h,d){return Ct[h][l]&&Ct[h][l].replace&&l.charCodeAt(0)!==55349&&!(Yt.hasOwnProperty(l)&&d&&(d.fontFamily&&d.fontFamily.substr(4,2)==="tt"||d.font&&d.font.substr(4,2)==="tt"))&&(l=Ct[h][l].replace),new dn.TextNode(l)},oi=function(l){return l.length===1?l[0]:new dn.MathNode("mrow",l)},Fn=function(l,h){if(h.fontFamily==="texttt")return"monospace";if(h.fontFamily==="textsf")return h.fontShape==="textit"&&h.fontWeight==="textbf"?"sans-serif-bold-italic":h.fontShape==="textit"?"sans-serif-italic":h.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(h.fontShape==="textit"&&h.fontWeight==="textbf")return"bold-italic";if(h.fontShape==="textit")return"italic";if(h.fontWeight==="textbf")return"bold";var d=h.font;if(!d||d==="mathnormal")return null;var m=l.mode;if(d==="mathit")return"italic";if(d==="boldsymbol")return"bold-italic";if(d==="mathbf")return"bold";if(d==="mathbb")return"double-struck";if(d==="mathfrak")return"fraktur";if(d==="mathscr"||d==="mathcal")return"script";if(d==="mathsf")return"sans-serif";if(d==="mathtt")return"monospace";var I=l.text;if(K.contains(["\\imath","\\jmath"],I))return null;Ct[m][I]&&Ct[m][I].replace&&(I=Ct[m][I].replace);var z=ze.fontMap[d].fontName;return Xe(I,z,m)?ze.fontMap[d].variant:null},Gn=function(l,h,d){if(l.length===1){var m=En(l[0],h);return d&&m instanceof Ar&&m.type==="mo"&&(m.setAttribute("lspace","0em"),m.setAttribute("rspace","0em")),[m]}for(var I=[],z,xe=0;xe<l.length;xe++){var ke=En(l[xe],h);if(ke instanceof Ar&&z instanceof Ar){if(ke.type==="mtext"&&z.type==="mtext"&&ke.getAttribute("mathvariant")===z.getAttribute("mathvariant")){var je;(je=z.children).push.apply(je,ke.children);continue}else if(ke.type==="mn"&&z.type==="mn"){var at;(at=z.children).push.apply(at,ke.children);continue}else if(ke.type==="mi"&&ke.children.length===1&&z.type==="mn"){var vt=ke.children[0];if(vt instanceof fi&&vt.text==="."){var Mt;(Mt=z.children).push.apply(Mt,ke.children);continue}}else if(z.type==="mi"&&z.children.length===1){var sn=z.children[0];if(sn instanceof fi&&sn.text==="\u0338"&&(ke.type==="mo"||ke.type==="mi"||ke.type==="mn")){var pn=ke.children[0];pn instanceof fi&&pn.text.length>0&&(pn.text=pn.text.slice(0,1)+"\u0338"+pn.text.slice(1),I.pop())}}}I.push(ke),z=ke}return I},Mn=function(l,h,d){return oi(Gn(l,h,d))},En=function(l,h){if(!l)return new dn.MathNode("mrow");if(Pr[l.type]){var d=Pr[l.type](l,h);return d}else throw new ce("Got group of unknown type: '"+l.type+"'")};function tr(U,l,h,d){var m=Gn(U,h),I;m.length===1&&m[0]instanceof Ar&&K.contains(["mrow","mtable"],m[0].type)?I=m[0]:I=new dn.MathNode("mrow",m);var z=new dn.MathNode("annotation",[new dn.TextNode(l)]);z.setAttribute("encoding","application/x-tex");var xe=new dn.MathNode("semantics",[I,z]),ke=new dn.MathNode("math",[xe]);ke.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var je=d?"katex":"katex-mathml";return ze.makeSpan([je],[ke])}var hr=function(l){return new zn({style:l.displayMode?x.DISPLAY:x.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Hr=function(l,h){if(h.displayMode){var d=["katex-display"];h.leqno&&d.push("leqno"),h.fleqn&&d.push("fleqn"),l=ze.makeSpan(d,[l])}return l},Dr=function(l,h,d){var m=hr(d),I;if(d.output==="mathml")return tr(l,h,m,!0);if(d.output==="html"){var z=yi(l,m);I=ze.makeSpan(["katex"],[z])}else{var xe=tr(l,h,m,!1),ke=yi(l,m);I=ze.makeSpan(["katex"],[xe,ke])}return Hr(I,d)},$r=function(l,h,d){var m=hr(d),I=yi(l,m),z=ze.makeSpan(["katex"],[I]);return Hr(z,d)},Gr=Dr,bi={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"},xi=function(l){var h=new dn.MathNode("mo",[new dn.TextNode(bi[l.substr(1)])]);return h.setAttribute("stretchy","true"),h},Hi={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]},Fi=function(l){return l.type==="ordgroup"?l.body.length:1},mi=function(l,h){function d(){var ke=4e5,je=l.label.substr(1);if(K.contains(["widehat","widecheck","widetilde","utilde"],je)){var at=l,vt=Fi(at.base),Mt,sn,pn;if(vt>5)je==="widehat"||je==="widecheck"?(Mt=420,ke=2364,pn=.42,sn=je+"4"):(Mt=312,ke=2340,pn=.34,sn="tilde4");else{var Ln=[1,1,2,2,3,3][vt];je==="widehat"||je==="widecheck"?(ke=[0,1062,2364,2364,2364][Ln],Mt=[0,239,300,360,420][Ln],pn=[0,.24,.3,.3,.36,.42][Ln],sn=je+Ln):(ke=[0,600,1033,2339,2340][Ln],Mt=[0,260,286,306,312][Ln],pn=[0,.26,.286,.3,.306,.34][Ln],sn="tilde"+Ln)}var Xn=new ue(sn),mr=new O([Xn],{width:"100%",height:pn+"em",viewBox:"0 0 "+ke+" "+Mt,preserveAspectRatio:"none"});return{span:ze.makeSvgSpan([],[mr],h),minWidth:0,height:pn}}else{var gr=[],pr=Hi[je],jr=pr[0],Kr=pr[1],qr=pr[2],ti=qr/1e3,ai=jr.length,Ri,Si;if(ai===1){var zr=pr[3];Ri=["hide-tail"],Si=[zr]}else if(ai===2)Ri=["halfarrow-left","halfarrow-right"],Si=["xMinYMin","xMaxYMin"];else if(ai===3)Ri=["brace-left","brace-center","brace-right"],Si=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+ai+" children.");for(var Ui=0;Ui<ai;Ui++){var qi=new ue(jr[Ui]),Gi=new O([qi],{width:"400em",height:ti+"em",viewBox:"0 0 "+ke+" "+qr,preserveAspectRatio:Si[Ui]+" slice"}),Ii=ze.makeSvgSpan([Ri[Ui]],[Gi],h);if(ai===1)return{span:Ii,minWidth:Kr,height:ti};Ii.style.height=ti+"em",gr.push(Ii)}return{span:ze.makeSpan(["stretchy"],gr,h),minWidth:Kr,height:ti}}}var m=d(),I=m.span,z=m.minWidth,xe=m.height;return I.height=xe,I.style.height=xe+"em",z>0&&(I.style.minWidth=z+"em"),I},Bn=function(l,h,d,m){var I,z=l.height+l.depth+2*d;if(/fbox|color/.test(h)){if(I=ze.makeSpan(["stretchy",h],[],m),h==="fbox"){var xe=m.color&&m.getColor();xe&&(I.style.borderColor=xe)}}else{var ke=[];/^[bx]cancel$/.test(h)&&ke.push(new he({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(h)&&ke.push(new he({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var je=new O(ke,{width:"100%",height:z+"em"});I=ze.makeSvgSpan([],[je],m)}return I.height=z,I.style.height=z+"em",I},Nn={encloseSpan:Bn,mathMLnode:xi,svgSpan:mi},dr=function(l,h){var d,m,I=Pn(l,"supsub"),z;I?(m=fn(I.base,"accent"),d=m.base,I.base=d,z=De(ir(I,h)),I.base=m):(m=fn(l,"accent"),d=m.base);var xe=ir(d,h.havingCrampedStyle()),ke=m.isShifty&&K.isCharacterBox(d),je=0;if(ke){var at=K.getBaseElem(d),vt=ir(at,h.havingCrampedStyle());je=Z(vt).skew}var Mt=Math.min(xe.height,h.fontMetrics().xHeight),sn;if(m.isStretchy)sn=Nn.svgSpan(m,h),sn=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xe},{type:"elem",elem:sn,wrapperClasses:["svg-align"],wrapperStyle:je>0?{width:"calc(100% - "+2*je+"em)",marginLeft:2*je+"em"}:void 0}]},h);else{var pn,Ln;m.label==="\\vec"?(pn=ze.staticSvg("vec",h),Ln=ze.svgData.vec[1]):(pn=ze.makeOrd({mode:m.mode,text:m.label},h,"textord"),pn=Z(pn),pn.italic=0,Ln=pn.width),sn=ze.makeSpan(["accent-body"],[pn]);var Xn=m.label==="\\textcircled";Xn&&(sn.classes.push("accent-full"),Mt=xe.height);var mr=je;Xn||(mr-=Ln/2),sn.style.left=mr+"em",m.label==="\\textcircled"&&(sn.style.top=".2em"),sn=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xe},{type:"kern",size:-Mt},{type:"elem",elem:sn}]},h)}var gr=ze.makeSpan(["mord","accent"],[sn],h);return z?(z.children[0]=gr,z.height=Math.max(gr.height,z.height),z.classes[0]="mord",z):gr},Wr=function(l,h){var d=l.isStretchy?Nn.mathMLnode(l.label):new dn.MathNode("mo",[Qr(l.label,l.mode)]),m=new dn.MathNode("mover",[En(l.base,h),d]);return m.setAttribute("accent","true"),m},Sr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(U){return"\\"+U}).join("|"));_n({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,h){var d=h[0],m=!Sr.test(l.funcName),I=!m||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:m,isShifty:I,base:d}},htmlBuilder:dr,mathmlBuilder:Wr}),_n({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,h){var d=h[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:d}},htmlBuilder:dr,mathmlBuilder:Wr}),_n({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0];return{type:"accentUnder",mode:d.mode,label:m,base:I}},htmlBuilder:function(l,h){var d=ir(l.base,h),m=Nn.svgSpan(l,h),I=l.label==="\\utilde"?.12:0,z=ze.makeVList({positionType:"bottom",positionData:m.height+I,children:[{type:"elem",elem:m,wrapperClasses:["svg-align"]},{type:"kern",size:I},{type:"elem",elem:d}]},h);return ze.makeSpan(["mord","accentunder"],[z],h)},mathmlBuilder:function(l,h){var d=Nn.mathMLnode(l.label),m=new dn.MathNode("munder",[En(l.base,h),d]);return m.setAttribute("accentunder","true"),m}});var pi=function(l){var h=new dn.MathNode("mpadded",l?[l]:[]);return h.setAttribute("width","+0.6em"),h.setAttribute("lspace","0.3em"),h};_n({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,h,d){var m=l.parser,I=l.funcName;return{type:"xArrow",mode:m.mode,label:I,body:h[0],below:d[0]}},htmlBuilder:function(l,h){var d=h.style,m=h.havingStyle(d.sup()),I=ze.wrapFragment(ir(l.body,m,h),h);I.classes.push("x-arrow-pad");var z;l.below&&(m=h.havingStyle(d.sub()),z=ze.wrapFragment(ir(l.below,m,h),h),z.classes.push("x-arrow-pad"));var xe=Nn.svgSpan(l,h),ke=-h.fontMetrics().axisHeight+.5*xe.height,je=-h.fontMetrics().axisHeight-.5*xe.height-.111;(I.depth>.25||l.label==="\\xleftequilibrium")&&(je-=I.depth);var at;if(z){var vt=-h.fontMetrics().axisHeight+z.height+.5*xe.height+.111;at=ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:je},{type:"elem",elem:xe,shift:ke},{type:"elem",elem:z,shift:vt}]},h)}else at=ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:je},{type:"elem",elem:xe,shift:ke}]},h);return at.children[0].children[0].children[1].classes.push("svg-align"),ze.makeSpan(["mrel","x-arrow"],[at],h)},mathmlBuilder:function(l,h){var d=Nn.mathMLnode(l.label),m;if(l.body){var I=pi(En(l.body,h));if(l.below){var z=pi(En(l.below,h));m=new dn.MathNode("munderover",[d,z,I])}else m=new dn.MathNode("mover",[d,I])}else if(l.below){var xe=pi(En(l.below,h));m=new dn.MathNode("munder",[d,xe])}else m=pi(),m=new dn.MathNode("mover",[d,m]);return m}}),_n({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){for(var d=l.parser,m=fn(h[0],"ordgroup"),I=m.body,z="",xe=0;xe<I.length;xe++){var ke=fn(I[xe],"textord");z+=ke.text}var je=parseInt(z);if(isNaN(je))throw new ce("\\@char has non-numeric argument "+z);return{type:"textord",mode:d.mode,text:String.fromCharCode(je)}}});var Wi=function(l,h){var d=wr(l.body,h.withColor(l.color),!1);return ze.makeFragment(d)},ji=function(l,h){var d=Gn(l.body,h.withColor(l.color)),m=new dn.MathNode("mstyle",d);return m.setAttribute("mathcolor",l.color),m};_n({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,h){var d=l.parser,m=fn(h[0],"color-token").color,I=h[1];return{type:"color",mode:d.mode,color:m,body:lr(I)}},htmlBuilder:Wi,mathmlBuilder:ji}),_n({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,h){var d=l.parser,m=l.breakOnTokenText,I=fn(h[0],"color-token").color;d.gullet.macros.set("\\current@color",I);var z=d.parseExpression(!0,m);return{type:"color",mode:d.mode,color:I,body:z}},htmlBuilder:Wi,mathmlBuilder:ji}),_n({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,h,d){var m=l.parser,I=l.funcName,z=d[0],xe=I==="\\cr",ke=!1;return xe||(m.settings.displayMode&&m.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?ke=!1:ke=!0),{type:"cr",mode:m.mode,newLine:ke,newRow:xe,size:z&&fn(z,"size").value}},htmlBuilder:function(l,h){if(l.newRow)throw new ce("\\cr valid only within a tabular/array environment");var d=ze.makeSpan(["mspace"],[],h);return l.newLine&&(d.classes.push("newline"),l.size&&(d.style.marginTop=Qe(l.size,h)+"em")),d},mathmlBuilder:function(l,h){var d=new dn.MathNode("mspace");return l.newLine&&(d.setAttribute("linebreak","newline"),l.size&&d.setAttribute("height",Qe(l.size,h)+"em")),d}});var Ti=function(l,h,d){var m=Ct.math[l]&&Ct.math[l].replace,I=Xe(m||l,h,d);if(!I)throw new Error("Unsupported symbol "+l+" and font size "+h+".");return I},ss=function(l,h,d,m){var I=d.havingBaseStyle(h),z=ze.makeSpan(m.concat(I.sizingClasses(d)),[l],d),xe=I.sizeMultiplier/d.sizeMultiplier;return z.height*=xe,z.depth*=xe,z.maxFontSize=I.sizeMultiplier,z},as=function(l,h,d){var m=h.havingBaseStyle(d),I=(1-h.sizeMultiplier/m.sizeMultiplier)*h.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=I+"em",l.height-=I,l.depth+=I},os=function(l,h,d,m,I,z){var xe=ze.makeSymbol(l,"Main-Regular",I,m),ke=ss(xe,h,m,z);return d&&as(ke,m,h),ke},es=function(l,h,d,m){return ze.makeSymbol(l,"Size"+h+"-Regular",d,m)},ls=function(l,h,d,m,I,z){var xe=es(l,h,I,m),ke=ss(ze.makeSpan(["delimsizing","size"+h],[xe],m),x.TEXT,m,z);return d&&as(ke,m,x.TEXT),ke},Pi=function(l,h,d){var m;h==="Size1-Regular"?m="delim-size1":m="delim-size4";var I=ze.makeSpan(["delimsizinginner",m],[ze.makeSpan([],[ze.makeSymbol(l,h,d)])]);return{type:"elem",elem:I}},ni={type:"kern",size:-.005},us=function(l,h,d,m,I,z){var xe,ke,je,at;xe=je=at=l,ke=null;var vt="Size1-Regular";l==="\\uparrow"?je=at="\u23D0":l==="\\Uparrow"?je=at="\u2016":l==="\\downarrow"?xe=je="\u23D0":l==="\\Downarrow"?xe=je="\u2016":l==="\\updownarrow"?(xe="\\uparrow",je="\u23D0",at="\\downarrow"):l==="\\Updownarrow"?(xe="\\Uparrow",je="\u2016",at="\\Downarrow"):l==="["||l==="\\lbrack"?(xe="\u23A1",je="\u23A2",at="\u23A3",vt="Size4-Regular"):l==="]"||l==="\\rbrack"?(xe="\u23A4",je="\u23A5",at="\u23A6",vt="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(je=xe="\u23A2",at="\u23A3",vt="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(xe="\u23A1",je=at="\u23A2",vt="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(je=xe="\u23A5",at="\u23A6",vt="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(xe="\u23A4",je=at="\u23A5",vt="Size4-Regular"):l==="("||l==="\\lparen"?(xe="\u239B",je="\u239C",at="\u239D",vt="Size4-Regular"):l===")"||l==="\\rparen"?(xe="\u239E",je="\u239F",at="\u23A0",vt="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(xe="\u23A7",ke="\u23A8",at="\u23A9",je="\u23AA",vt="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(xe="\u23AB",ke="\u23AC",at="\u23AD",je="\u23AA",vt="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(xe="\u23A7",at="\u23A9",je="\u23AA",vt="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(xe="\u23AB",at="\u23AD",je="\u23AA",vt="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(xe="\u23A7",at="\u23AD",je="\u23AA",vt="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(xe="\u23AB",at="\u23A9",je="\u23AA",vt="Size4-Regular");var Mt=Ti(xe,vt,I),sn=Mt.height+Mt.depth,pn=Ti(je,vt,I),Ln=pn.height+pn.depth,Xn=Ti(at,vt,I),mr=Xn.height+Xn.depth,gr=0,pr=1;if(ke!==null){var jr=Ti(ke,vt,I);gr=jr.height+jr.depth,pr=2}var Kr=sn+mr+gr,qr=Math.max(0,Math.ceil((h-Kr)/(pr*Ln))),ti=Kr+qr*pr*Ln,ai=m.fontMetrics().axisHeight;d&&(ai*=m.sizeMultiplier);var Ri=ti/2-ai,Si=(qr+1)*.005-Ln,zr=[];if(zr.push(Pi(at,vt,I)),ke===null)for(var Ui=0;Ui<qr;Ui++)zr.push(ni),zr.push(Pi(je,vt,I));else{for(var qi=0;qi<qr;qi++)zr.push(ni),zr.push(Pi(je,vt,I));zr.push({type:"kern",size:Si}),zr.push(Pi(je,vt,I)),zr.push(ni),zr.push(Pi(ke,vt,I));for(var Gi=0;Gi<qr;Gi++)zr.push(ni),zr.push(Pi(je,vt,I))}zr.push({type:"kern",size:Si}),zr.push(Pi(je,vt,I)),zr.push(ni),zr.push(Pi(xe,vt,I));var Ii=m.havingBaseStyle(x.TEXT),Ji=ze.makeVList({positionType:"bottom",positionData:Ri,children:zr},Ii);return ss(ze.makeSpan(["delimsizing","mult"],[Ji],Ii),x.TEXT,m,z)},ts=80,Ei=.08,Ai=function(l,h,d,m,I){var z=Ft(l,m,d),xe=new ue(l,z),ke=new O([xe],{width:"400em",height:h+"em",viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});return ze.makeSvgSpan(["hide-tail"],[ke],I)},xr=function(l,h){var d=h.havingBaseSizing(),m=$i("\\surd",l*d.sizeMultiplier,gi,d),I=d.sizeMultiplier,z=Math.max(0,h.minRuleThickness-h.fontMetrics().sqrtRuleThickness),xe,ke=0,je=0,at=0,vt;return m.type==="small"?(at=1e3+1e3*z+ts,l<1?I=1:l<1.4&&(I=.7),ke=(1+z+Ei)/I,je=(1+z)/I,xe=Ai("sqrtMain",ke,at,z,h),xe.style.minWidth="0.853em",vt=.833/I):m.type==="large"?(at=(1e3+ts)*Zr[m.size],je=(Zr[m.size]+z)/I,ke=(Zr[m.size]+z+Ei)/I,xe=Ai("sqrtSize"+m.size,ke,at,z,h),xe.style.minWidth="1.02em",vt=1/I):(ke=l+z+Ei,je=l+z,at=Math.floor(1e3*l+z)+ts,xe=Ai("sqrtTall",ke,at,z,h),xe.style.minWidth="0.742em",vt=1.056),xe.height=je,xe.style.height=ke+"em",{span:xe,advanceWidth:vt,ruleWidth:(h.fontMetrics().sqrtRuleThickness+z)*I}},nr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],li=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ui=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Zr=[0,1.2,1.8,2.4,3],wi=function(l,h,d,m,I){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),K.contains(nr,l)||K.contains(ui,l))return ls(l,h,!1,d,m,I);if(K.contains(li,l))return us(l,Zr[h],!1,d,m,I);throw new ce("Illegal delimiter: '"+l+"'")},Ir=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bi=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"stack"}],gi=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Oi=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.")},$i=function(l,h,d,m){for(var I=Math.min(2,3-m.style.size),z=I;z<d.length&&d[z].type!=="stack";z++){var xe=Ti(l,Oi(d[z]),"math"),ke=xe.height+xe.depth;if(d[z].type==="small"){var je=m.havingBaseStyle(d[z].style);ke*=je.sizeMultiplier}if(ke>h)return d[z]}return d[d.length-1]},Or=function(l,h,d,m,I,z){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var xe;K.contains(ui,l)?xe=Ir:K.contains(nr,l)?xe=gi:xe=Bi;var ke=$i(l,h,xe,m);return ke.type==="small"?os(l,ke.style,d,m,I,z):ke.type==="large"?ls(l,ke.size,d,m,I,z):us(l,h,d,m,I,z)},gs=function(l,h,d,m,I,z){var xe=m.fontMetrics().axisHeight*m.sizeMultiplier,ke=901,je=5/m.fontMetrics().ptPerEm,at=Math.max(h-xe,d+xe),vt=Math.max(at/500*ke,2*at-je);return Or(l,vt,!0,m,I,z)},Di={sqrtImage:xr,sizedDelim:wi,customSizedDelim:Or,leftRightDelim:gs},cs={"\\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}},ea=["(","\\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 vs(U,l){var h=sr(U);if(h&&K.contains(ea,h.text))return h;throw new ce("Invalid delimiter: '"+(h?h.text:JSON.stringify(U))+"' after '"+l.funcName+"'",U)}_n({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,h){var d=vs(h[0],l);return{type:"delimsizing",mode:l.parser.mode,size:cs[l.funcName].size,mclass:cs[l.funcName].mclass,delim:d.text}},htmlBuilder:function(l,h){return l.delim==="."?ze.makeSpan([l.mclass]):Di.sizedDelim(l.delim,l.size,h,l.mode,[l.mclass])},mathmlBuilder:function(l){var h=[];l.delim!=="."&&h.push(Qr(l.delim,l.mode));var d=new dn.MathNode("mo",h);return l.mclass==="mopen"||l.mclass==="mclose"?d.setAttribute("fence","true"):d.setAttribute("fence","false"),d}});function _s(U){if(!U.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}_n({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,h){var d=l.parser.gullet.macros.get("\\current@color");if(d&&typeof d!="string")throw new ce("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:vs(h[0],l).text,color:d}}}),_n({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,h){var d=vs(h[0],l),m=l.parser;++m.leftrightDepth;var I=m.parseExpression(!1);--m.leftrightDepth,m.expect("\\right",!1);var z=fn(m.parseFunction(),"leftright-right");return{type:"leftright",mode:m.mode,body:I,left:d.text,right:z.delim,rightColor:z.color}},htmlBuilder:function(l,h){_s(l);for(var d=wr(l.body,h,!0,["mopen","mclose"]),m=0,I=0,z=!1,xe=0;xe<d.length;xe++)d[xe].isMiddle?z=!0:(m=Math.max(d[xe].height,m),I=Math.max(d[xe].depth,I));m*=h.sizeMultiplier,I*=h.sizeMultiplier;var ke;if(l.left==="."?ke=ei(h,["mopen"]):ke=Di.leftRightDelim(l.left,m,I,h,l.mode,["mopen"]),d.unshift(ke),z)for(var je=1;je<d.length;je++){var at=d[je],vt=at.isMiddle;vt&&(d[je]=Di.leftRightDelim(vt.delim,m,I,vt.options,l.mode,[]))}var Mt;if(l.right===".")Mt=ei(h,["mclose"]);else{var sn=l.rightColor?h.withColor(l.rightColor):h;Mt=Di.leftRightDelim(l.right,m,I,sn,l.mode,["mclose"])}return d.push(Mt),ze.makeSpan(["minner"],d,h)},mathmlBuilder:function(l,h){_s(l);var d=Gn(l.body,h);if(l.left!=="."){var m=new dn.MathNode("mo",[Qr(l.left,l.mode)]);m.setAttribute("fence","true"),d.unshift(m)}if(l.right!=="."){var I=new dn.MathNode("mo",[Qr(l.right,l.mode)]);I.setAttribute("fence","true"),l.rightColor&&I.setAttribute("mathcolor",l.rightColor),d.push(I)}return oi(d)}}),_n({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,h){var d=vs(h[0],l);if(!l.parser.leftrightDepth)throw new ce("\\middle without preceding \\left",d);return{type:"middle",mode:l.parser.mode,delim:d.text}},htmlBuilder:function(l,h){var d;if(l.delim===".")d=ei(h,[]);else{d=Di.sizedDelim(l.delim,1,h,l.mode,[]);var m={delim:l.delim,options:h};d.isMiddle=m}return d},mathmlBuilder:function(l,h){var d=l.delim==="\\vert"||l.delim==="|"?Qr("|","text"):Qr(l.delim,l.mode),m=new dn.MathNode("mo",[d]);return m.setAttribute("fence","true"),m.setAttribute("lspace","0.05em"),m.setAttribute("rspace","0.05em"),m}});var ys=function(l,h){var d=ze.wrapFragment(ir(l.body,h),h),m=l.label.substr(1),I=h.sizeMultiplier,z,xe=0,ke=K.isCharacterBox(l.body);if(m==="sout")z=ze.makeSpan(["stretchy","sout"]),z.height=h.fontMetrics().defaultRuleThickness/I,xe=-.5*h.fontMetrics().xHeight;else{/cancel/.test(m)?ke||d.classes.push("cancel-pad"):d.classes.push("boxpad");var je=0,at=0;/box/.test(m)?(at=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness),je=h.fontMetrics().fboxsep+(m==="colorbox"?0:at)):je=ke?.2:0,z=Nn.encloseSpan(d,m,je,h),/fbox|boxed|fcolorbox/.test(m)&&(z.style.borderStyle="solid",z.style.borderWidth=at+"em"),xe=d.depth+je,l.backgroundColor&&(z.style.backgroundColor=l.backgroundColor,l.borderColor&&(z.style.borderColor=l.borderColor))}var vt;return l.backgroundColor?vt=ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:z,shift:xe},{type:"elem",elem:d,shift:0}]},h):vt=ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:z,shift:xe,wrapperClasses:/cancel/.test(m)?["svg-align"]:[]}]},h),/cancel/.test(m)&&(vt.height=d.height,vt.depth=d.depth),/cancel/.test(m)&&!ke?ze.makeSpan(["mord","cancel-lap"],[vt],h):ze.makeSpan(["mord"],[vt],h)},As=function(l,h){var d=0,m=new dn.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[En(l.body,h)]);switch(l.label){case"\\cancel":m.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":m.setAttribute("notation","downdiagonalstrike");break;case"\\sout":m.setAttribute("notation","horizontalstrike");break;case"\\fbox":m.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(d=h.fontMetrics().fboxsep*h.fontMetrics().ptPerEm,m.setAttribute("width","+"+2*d+"pt"),m.setAttribute("height","+"+2*d+"pt"),m.setAttribute("lspace",d+"pt"),m.setAttribute("voffset",d+"pt"),l.label==="\\fcolorbox"){var I=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness);m.setAttribute("style","border: "+I+"em solid "+String(l.borderColor))}break;case"\\xcancel":m.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&m.setAttribute("mathbackground",l.backgroundColor),m};_n({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,h,d){var m=l.parser,I=l.funcName,z=fn(h[0],"color-token").color,xe=h[1];return{type:"enclose",mode:m.mode,label:I,backgroundColor:z,body:xe}},htmlBuilder:ys,mathmlBuilder:As}),_n({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,h,d){var m=l.parser,I=l.funcName,z=fn(h[0],"color-token").color,xe=fn(h[1],"color-token").color,ke=h[2];return{type:"enclose",mode:m.mode,label:I,backgroundColor:xe,borderColor:z,body:ke}},htmlBuilder:ys,mathmlBuilder:As}),_n({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,h){var d=l.parser;return{type:"enclose",mode:d.mode,label:"\\fbox",body:h[0]}}}),_n({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,h,d){var m=l.parser,I=l.funcName,z=h[0];return{type:"enclose",mode:m.mode,label:I,body:z}},htmlBuilder:ys,mathmlBuilder:As});var Ms={};function zi(U){for(var l=U.type,h=U.names,d=U.props,m=U.handler,I=U.htmlBuilder,z=U.mathmlBuilder,xe={type:l,numArgs:d.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:m},ke=0;ke<h.length;++ke)Ms[h[ke]]=xe;I&&(or[l]=I),z&&(Pr[l]=z)}function Ds(U){var l=[];U.consumeSpaces();for(var h=U.fetch().text;h==="\\hline"||h==="\\hdashline";)U.consume(),l.push(h==="\\hdashline"),U.consumeSpaces(),h=U.fetch().text;return l}function Nr(U,l,h){var d=l.hskipBeforeAndAfter,m=l.addJot,I=l.cols,z=l.arraystretch,xe=l.colSeparationType;if(U.gullet.beginGroup(),U.gullet.macros.set("\\\\","\\cr"),!z){var ke=U.gullet.expandMacroAsText("\\arraystretch");if(ke==null)z=1;else if(z=parseFloat(ke),!z||z<0)throw new ce("Invalid \\arraystretch: "+ke)}U.gullet.beginGroup();var je=[],at=[je],vt=[],Mt=[];for(Mt.push(Ds(U));;){var sn=U.parseExpression(!1,"\\cr");U.gullet.endGroup(),U.gullet.beginGroup(),sn={type:"ordgroup",mode:U.mode,body:sn},h&&(sn={type:"styling",mode:U.mode,style:h,body:[sn]}),je.push(sn);var pn=U.fetch().text;if(pn==="&")U.consume();else if(pn==="\\end"){je.length===1&&sn.type==="styling"&&sn.body[0].body.length===0&&at.pop(),Mt.length<at.length+1&&Mt.push([]);break}else if(pn==="\\cr"){var Ln=fn(U.parseFunction(),"cr");vt.push(Ln.size),Mt.push(Ds(U)),je=[],at.push(je)}else throw new ce("Expected & or \\\\ or \\cr or \\end",U.nextToken)}return U.gullet.endGroup(),U.gullet.endGroup(),{type:"array",mode:U.mode,addJot:m,arraystretch:z,body:at,cols:I,rowGaps:vt,hskipBeforeAndAfter:d,hLinesBeforeRow:Mt,colSeparationType:xe}}function Lr(U){return U.substr(0,1)==="d"?"display":"text"}var Rr=function(l,h){var d,m,I=l.body.length,z=l.hLinesBeforeRow,xe=0,ke=new Array(I),je=[],at=Math.max(h.fontMetrics().arrayRuleWidth,h.minRuleThickness),vt=1/h.fontMetrics().ptPerEm,Mt=5*vt;if(l.colSeparationType&&l.colSeparationType==="small"){var sn=h.havingStyle(x.SCRIPT).sizeMultiplier;Mt=.2778*(sn/h.sizeMultiplier)}var pn=12*vt,Ln=3*vt,Xn=l.arraystretch*pn,mr=.7*Xn,gr=.3*Xn,pr=0;function jr(va){for(var ps=0;ps<va.length;++ps)ps>0&&(pr+=.25),je.push({pos:pr,isDashed:va[ps]})}for(jr(z[0]),d=0;d<l.body.length;++d){var Kr=l.body[d],qr=mr,ti=gr;xe<Kr.length&&(xe=Kr.length);var ai=new Array(Kr.length);for(m=0;m<Kr.length;++m){var Ri=ir(Kr[m],h);ti<Ri.depth&&(ti=Ri.depth),qr<Ri.height&&(qr=Ri.height),ai[m]=Ri}var Si=l.rowGaps[d],zr=0;Si&&(zr=Qe(Si,h),zr>0&&(zr+=gr,ti<zr&&(ti=zr),zr=0)),l.addJot&&(ti+=Ln),ai.height=qr,ai.depth=ti,pr+=qr,ai.pos=pr,pr+=ti+zr,ke[d]=ai,jr(z[d+1])}var Ui=pr/2+h.fontMetrics().axisHeight,qi=l.cols||[],Gi=[],Ii,Ji;for(m=0,Ji=0;m<xe||Ji<qi.length;++m,++Ji){for(var hi=qi[Ji]||{},Zi=!0;hi.type==="separator";){if(Zi||(Ii=ze.makeSpan(["arraycolsep"],[]),Ii.style.width=h.fontMetrics().doubleRuleSep+"em",Gi.push(Ii)),hi.separator==="|"||hi.separator===":"){var to=hi.separator==="|"?"solid":"dashed",Ss=ze.makeSpan(["vertical-separator"],[],h);Ss.style.height=pr+"em",Ss.style.borderRightWidth=at+"em",Ss.style.borderRightStyle=to,Ss.style.margin="0 -"+at/2+"em",Ss.style.verticalAlign=-(pr-Ui)+"em",Gi.push(Ss)}else throw new ce("Invalid separator type: "+hi.separator);Ji++,hi=qi[Ji]||{},Zi=!1}if(!(m>=xe)){var Cs=void 0;(m>0||l.hskipBeforeAndAfter)&&(Cs=K.deflt(hi.pregap,Mt),Cs!==0&&(Ii=ze.makeSpan(["arraycolsep"],[]),Ii.style.width=Cs+"em",Gi.push(Ii)));var Ts=[];for(d=0;d<I;++d){var Ys=ke[d],Xs=Ys[m];if(Xs){var ms=Ys.pos-Ui;Xs.depth=Ys.depth,Xs.height=Ys.height,Ts.push({type:"elem",elem:Xs,shift:ms})}}Ts=ze.makeVList({positionType:"individualShift",children:Ts},h),Ts=ze.makeSpan(["col-align-"+(hi.align||"c")],[Ts]),Gi.push(Ts),(m<xe-1||l.hskipBeforeAndAfter)&&(Cs=K.deflt(hi.postgap,Mt),Cs!==0&&(Ii=ze.makeSpan(["arraycolsep"],[]),Ii.style.width=Cs+"em",Gi.push(Ii)))}}if(ke=ze.makeSpan(["mtable"],Gi),je.length>0){for(var Na=ze.makeLineSpan("hline",h,at),no=ze.makeLineSpan("hdashline",h,at),pa=[{type:"elem",elem:ke,shift:0}];je.length>0;){var Qs=je.pop(),ga=Qs.pos-Ui;Qs.isDashed?pa.push({type:"elem",elem:no,shift:ga}):pa.push({type:"elem",elem:Na,shift:ga})}ke=ze.makeVList({positionType:"individualShift",children:pa},h)}return ze.makeSpan(["mord"],[ke],h)},ri={c:"center ",l:"left ",r:"right "},si=function(l,h){var d=new dn.MathNode("mtable",l.body.map(function(pr){return new dn.MathNode("mtr",pr.map(function(jr){return new dn.MathNode("mtd",[En(jr,h)])}))})),m=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);d.setAttribute("rowspacing",m+"em");var I="",z="";if(l.cols){var xe=l.cols,ke="",je=!1,at=0,vt=xe.length;xe[0].type==="separator"&&(I+="top ",at=1),xe[xe.length-1].type==="separator"&&(I+="bottom ",vt-=1);for(var Mt=at;Mt<vt;Mt++)xe[Mt].type==="align"?(z+=ri[xe[Mt].align],je&&(ke+="none "),je=!0):xe[Mt].type==="separator"&&je&&(ke+=xe[Mt].separator==="|"?"solid ":"dashed ",je=!1);d.setAttribute("columnalign",z.trim()),/[sd]/.test(ke)&&d.setAttribute("columnlines",ke.trim())}if(l.colSeparationType==="align"){for(var sn=l.cols||[],pn="",Ln=1;Ln<sn.length;Ln++)pn+=Ln%2?"0em ":"1em ";d.setAttribute("columnspacing",pn.trim())}else l.colSeparationType==="alignat"?d.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):d.setAttribute("columnspacing","1em");var Xn="",mr=l.hLinesBeforeRow;I+=mr[0].length>0?"left ":"",I+=mr[mr.length-1].length>0?"right ":"";for(var gr=1;gr<mr.length-1;gr++)Xn+=mr[gr].length===0?"none ":mr[gr][0]?"dashed ":"solid ";return/[sd]/.test(Xn)&&d.setAttribute("rowlines",Xn.trim()),I!==""&&(d=new dn.MathNode("menclose",[d]),d.setAttribute("notation",I.trim())),l.arraystretch&&l.arraystretch<1&&(d=new dn.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},hs=function(l,h){var d=[],m=Nr(l.parser,{cols:d,addJot:!0},"display"),I,z=0,xe={type:"ordgroup",mode:l.mode,body:[]},ke=Pn(h[0],"ordgroup");if(ke){for(var je="",at=0;at<ke.body.length;at++){var vt=fn(ke.body[at],"textord");je+=vt.text}I=Number(je),z=I*2}var Mt=!z;m.body.forEach(function(Xn){for(var mr=1;mr<Xn.length;mr+=2){var gr=fn(Xn[mr],"styling"),pr=fn(gr.body[0],"ordgroup");pr.body.unshift(xe)}if(Mt)z<Xn.length&&(z=Xn.length);else{var jr=Xn.length/2;if(I<jr)throw new ce("Too many math in a row: "+("expected "+I+", but got "+jr),Xn[0])}});for(var sn=0;sn<z;++sn){var pn="r",Ln=0;sn%2===1?pn="l":sn>0&&Mt&&(Ln=1),d[sn]={type:"align",align:pn,pregap:Ln,postgap:0}}return m.colSeparationType=Mt?"align":"alignat",m};zi({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,h){var d=sr(h[0]),m=d?[h[0]]:fn(h[0],"ordgroup").body,I=m.map(function(xe){var ke=rr(xe),je=ke.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 ce("Unknown column alignment: "+je,xe)}),z={cols:I,hskipBeforeAndAfter:!0};return Nr(l.parser,z,Lr(l.envName))},htmlBuilder:Rr,mathmlBuilder:si}),zi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var h={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],d={hskipBeforeAndAfter:!1},m=Nr(l.parser,d,Lr(l.envName));return h?{type:"leftright",mode:l.mode,body:[m],left:h[0],right:h[1],rightColor:void 0}:m},htmlBuilder:Rr,mathmlBuilder:si}),zi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var h={arraystretch:.5},d=Nr(l.parser,h,"script");return d.colSeparationType="small",d},htmlBuilder:Rr,mathmlBuilder:si}),zi({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,h){var d=sr(h[0]),m=d?[h[0]]:fn(h[0],"ordgroup").body,I=m.map(function(xe){var ke=rr(xe),je=ke.text;if("lc".indexOf(je)!==-1)return{type:"align",align:je};throw new ce("Unknown column alignment: "+je,xe)});if(I.length>1)throw new ce("{subarray} can contain only one column");var z={cols:I,hskipBeforeAndAfter:!1,arraystretch:.5};if(z=Nr(l.parser,z,"script"),z.body[0].length>1)throw new ce("{subarray} can contain only one column");return z},htmlBuilder:Rr,mathmlBuilder:si}),zi({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var h={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},d=Nr(l.parser,h,Lr(l.envName));return{type:"leftright",mode:l.mode,body:[d],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Rr,mathmlBuilder:si}),zi({type:"array",names:["aligned"],props:{numArgs:0},handler:hs,htmlBuilder:Rr,mathmlBuilder:si}),zi({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var h={cols:[{type:"align",align:"c"}],addJot:!0};return Nr(l.parser,h,"display")},htmlBuilder:Rr,mathmlBuilder:si}),zi({type:"array",names:["alignedat"],props:{numArgs:1},handler:hs,htmlBuilder:Rr,mathmlBuilder:si}),_n({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,h){throw new ce(l.funcName+" valid only within array environment")}});var Rs=Ms,Ns=Rs;_n({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0];if(I.type!=="ordgroup")throw new ce("Invalid environment name",I);for(var z="",xe=0;xe<I.body.length;++xe)z+=fn(I.body[xe],"textord").text;if(m==="\\begin"){if(!Ns.hasOwnProperty(z))throw new ce("No such environment: "+z,I);var ke=Ns[z],je=d.parseArguments("\\begin{"+z+"}",ke),at=je.args,vt=je.optArgs,Mt={mode:d.mode,envName:z,parser:d},sn=ke.handler(Mt,at,vt);d.expect("\\end",!1);var pn=d.nextToken,Ln=fn(d.parseFunction(),"environment");if(Ln.name!==z)throw new ce("Mismatch: \\begin{"+z+"} matched by \\end{"+Ln.name+"}",pn);return sn}return{type:"environment",mode:d.mode,name:z,nameGroup:I}}});var Fs=ze.makeSpan;function ds(U,l){var h=wr(U.body,l,!0);return Fs([U.mclass],h,l)}function ns(U,l){var h,d=Gn(U.body,l);return U.mclass==="minner"?dn.newDocumentFragment(d):(U.mclass==="mord"?U.isCharacterBox?(h=d[0],h.type="mi"):h=new dn.MathNode("mi",d):(U.isCharacterBox?(h=d[0],h.type="mo"):h=new dn.MathNode("mo",d),U.mclass==="mbin"?(h.attributes.lspace="0.22em",h.attributes.rspace="0.22em"):U.mclass==="mpunct"?(h.attributes.lspace="0em",h.attributes.rspace="0.17em"):(U.mclass==="mopen"||U.mclass==="mclose")&&(h.attributes.lspace="0em",h.attributes.rspace="0em")),h)}_n({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0];return{type:"mclass",mode:d.mode,mclass:"m"+m.substr(5),body:lr(I),isCharacterBox:K.isCharacterBox(I)}},htmlBuilder:ds,mathmlBuilder:ns});var tn=function(l){var h=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return h.type==="atom"&&(h.family==="bin"||h.family==="rel")?"m"+h.family:"mord"};_n({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,h){var d=l.parser;return{type:"mclass",mode:d.mode,mclass:tn(h[0]),body:[h[1]],isCharacterBox:K.isCharacterBox(h[1])}}}),_n({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[1],z=h[0],xe;m!=="\\stackrel"?xe=tn(I):xe="mrel";var ke={type:"op",mode:I.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:m!=="\\stackrel",body:lr(I)},je={type:"supsub",mode:z.mode,base:ke,sup:m==="\\underset"?null:z,sub:m==="\\underset"?z:null};return{type:"mclass",mode:d.mode,mclass:xe,body:[je],isCharacterBox:K.isCharacterBox(je)}},htmlBuilder:ds,mathmlBuilder:ns});var bs=function(l,h){var d=l.font,m=h.withFont(d);return ir(l.body,m)},ta=function(l,h){var d=l.font,m=h.withFont(d);return En(l.body,m)},ya={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};_n({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0],z=m;return z in ya&&(z=ya[z]),{type:"font",mode:d.mode,font:z.slice(1),body:I}},htmlBuilder:bs,mathmlBuilder:ta}),_n({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,h){var d=l.parser,m=h[0],I=K.isCharacterBox(m);return{type:"mclass",mode:d.mode,mclass:tn(m),body:[{type:"font",mode:d.mode,font:"boldsymbol",body:m}],isCharacterBox:I}}}),_n({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,h){var d=l.parser,m=l.funcName,I=l.breakOnTokenText,z=d.mode,xe=d.parseExpression(!0,I),ke="math"+m.slice(1);return{type:"font",mode:z,font:ke,body:{type:"ordgroup",mode:d.mode,body:xe}}},htmlBuilder:bs,mathmlBuilder:ta});var ba=function(l,h){var d=h;return l==="display"?d=d.id>=x.SCRIPT.id?d.text():x.DISPLAY:l==="text"&&d.size===x.DISPLAY.size?d=x.TEXT:l==="script"?d=x.SCRIPT:l==="scriptscript"&&(d=x.SCRIPTSCRIPT),d},na=function(l,h){var d=ba(l.size,h.style),m=d.fracNum(),I=d.fracDen(),z;z=h.havingStyle(m);var xe=ir(l.numer,z,h);if(l.continued){var ke=8.5/h.fontMetrics().ptPerEm,je=3.5/h.fontMetrics().ptPerEm;xe.height=xe.height<ke?ke:xe.height,xe.depth=xe.depth<je?je:xe.depth}z=h.havingStyle(I);var at=ir(l.denom,z,h),vt,Mt,sn;l.hasBarLine?(l.barSize?(Mt=Qe(l.barSize,h),vt=ze.makeLineSpan("frac-line",h,Mt)):vt=ze.makeLineSpan("frac-line",h),Mt=vt.height,sn=vt.height):(vt=null,Mt=0,sn=h.fontMetrics().defaultRuleThickness);var pn,Ln,Xn;d.size===x.DISPLAY.size||l.size==="display"?(pn=h.fontMetrics().num1,Mt>0?Ln=3*sn:Ln=7*sn,Xn=h.fontMetrics().denom1):(Mt>0?(pn=h.fontMetrics().num2,Ln=sn):(pn=h.fontMetrics().num3,Ln=3*sn),Xn=h.fontMetrics().denom2);var mr;if(vt){var pr=h.fontMetrics().axisHeight;pn-xe.depth-(pr+.5*Mt)<Ln&&(pn+=Ln-(pn-xe.depth-(pr+.5*Mt))),pr-.5*Mt-(at.height-Xn)<Ln&&(Xn+=Ln-(pr-.5*Mt-(at.height-Xn)));var jr=-(pr-.5*Mt);mr=ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:at,shift:Xn},{type:"elem",elem:vt,shift:jr},{type:"elem",elem:xe,shift:-pn}]},h)}else{var gr=pn-xe.depth-(at.height-Xn);gr<Ln&&(pn+=.5*(Ln-gr),Xn+=.5*(Ln-gr)),mr=ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:at,shift:Xn},{type:"elem",elem:xe,shift:-pn}]},h)}z=h.havingStyle(d),mr.height*=z.sizeMultiplier/h.sizeMultiplier,mr.depth*=z.sizeMultiplier/h.sizeMultiplier;var Kr;d.size===x.DISPLAY.size?Kr=h.fontMetrics().delim1:Kr=h.fontMetrics().delim2;var qr,ti;return l.leftDelim==null?qr=ei(h,["mopen"]):qr=Di.customSizedDelim(l.leftDelim,Kr,!0,h.havingStyle(d),l.mode,["mopen"]),l.continued?ti=ze.makeSpan([]):l.rightDelim==null?ti=ei(h,["mclose"]):ti=Di.customSizedDelim(l.rightDelim,Kr,!0,h.havingStyle(d),l.mode,["mclose"]),ze.makeSpan(["mord"].concat(z.sizingClasses(h)),[qr,ze.makeSpan(["mfrac"],[mr]),ti],h)},ra=function(l,h){var d=new dn.MathNode("mfrac",[En(l.numer,h),En(l.denom,h)]);if(!l.hasBarLine)d.setAttribute("linethickness","0px");else if(l.barSize){var m=Qe(l.barSize,h);d.setAttribute("linethickness",m+"em")}var I=ba(l.size,h.style);if(I.size!==h.style.size){d=new dn.MathNode("mstyle",[d]);var z=I.size===x.DISPLAY.size?"true":"false";d.setAttribute("displaystyle",z),d.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var xe=[];if(l.leftDelim!=null){var ke=new dn.MathNode("mo",[new dn.TextNode(l.leftDelim.replace("\\",""))]);ke.setAttribute("fence","true"),xe.push(ke)}if(xe.push(d),l.rightDelim!=null){var je=new dn.MathNode("mo",[new dn.TextNode(l.rightDelim.replace("\\",""))]);je.setAttribute("fence","true"),xe.push(je)}return oi(xe)}return d};_n({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0],z=h[1],xe,ke=null,je=null,at="auto";switch(m){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":xe=!0;break;case"\\\\atopfrac":xe=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":xe=!1,ke="(",je=")";break;case"\\\\bracefrac":xe=!1,ke="\\{",je="\\}";break;case"\\\\brackfrac":xe=!1,ke="[",je="]";break;default:throw new Error("Unrecognized genfrac command")}switch(m){case"\\cfrac":case"\\dfrac":case"\\dbinom":at="display";break;case"\\tfrac":case"\\tbinom":at="text";break}return{type:"genfrac",mode:d.mode,continued:m==="\\cfrac",numer:I,denom:z,hasBarLine:xe,leftDelim:ke,rightDelim:je,size:at,barSize:null}},htmlBuilder:na,mathmlBuilder:ra}),_n({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var h=l.parser,d=l.funcName,m=l.token,I;switch(d){case"\\over":I="\\frac";break;case"\\choose":I="\\binom";break;case"\\atop":I="\\\\atopfrac";break;case"\\brace":I="\\\\bracefrac";break;case"\\brack":I="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:h.mode,replaceWith:I,token:m}}});var Ki=["display","text","script","scriptscript"],Bs=function(l){var h=null;return l.length>0&&(h=l,h=h==="."?null:h),h};_n({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,h){var d=l.parser,m=h[4],I=h[5],z=Pn(h[0],"atom");z&&(z=Vn(h[0],"open"));var xe=z?Bs(z.text):null,ke=Pn(h[1],"atom");ke&&(ke=Vn(h[1],"close"));var je=ke?Bs(ke.text):null,at=fn(h[2],"size"),vt,Mt=null;at.isBlank?vt=!0:(Mt=at.value,vt=Mt.number>0);var sn="auto",pn=Pn(h[3],"ordgroup");if(pn){if(pn.body.length>0){var Ln=fn(pn.body[0],"textord");sn=Ki[Number(Ln.text)]}}else pn=fn(h[3],"textord"),sn=Ki[Number(pn.text)];return{type:"genfrac",mode:d.mode,numer:m,denom:I,continued:!1,hasBarLine:vt,barSize:Mt,leftDelim:xe,rightDelim:je,size:sn}},htmlBuilder:na,mathmlBuilder:ra}),_n({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,h){var d=l.parser,m=l.funcName,I=l.token;return{type:"infix",mode:d.mode,replaceWith:"\\\\abovefrac",size:fn(h[0],"size").value,token:I}}}),_n({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0],z=Y(fn(h[1],"infix").size),xe=h[2],ke=z.number>0;return{type:"genfrac",mode:d.mode,numer:I,denom:xe,continued:!1,hasBarLine:ke,barSize:z,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:na,mathmlBuilder:ra});var xa=function(l,h){var d=h.style,m,I,z=Pn(l,"supsub");z?(m=z.sup?ir(z.sup,h.havingStyle(d.sup()),h):ir(z.sub,h.havingStyle(d.sub()),h),I=fn(z.base,"horizBrace")):I=fn(l,"horizBrace");var xe=ir(I.base,h.havingBaseStyle(x.DISPLAY)),ke=Nn.svgSpan(I,h),je;if(I.isOver?(je=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xe},{type:"kern",size:.1},{type:"elem",elem:ke}]},h),je.children[0].children[0].children[1].classes.push("svg-align")):(je=ze.makeVList({positionType:"bottom",positionData:xe.depth+.1+ke.height,children:[{type:"elem",elem:ke},{type:"kern",size:.1},{type:"elem",elem:xe}]},h),je.children[0].children[0].children[0].classes.push("svg-align")),m){var at=ze.makeSpan(["mord",I.isOver?"mover":"munder"],[je],h);I.isOver?je=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:at},{type:"kern",size:.2},{type:"elem",elem:m}]},h):je=ze.makeVList({positionType:"bottom",positionData:at.depth+.2+m.height+m.depth,children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:at}]},h)}return ze.makeSpan(["mord",I.isOver?"mover":"munder"],[je],h)},ja=function(l,h){var d=Nn.mathMLnode(l.label);return new dn.MathNode(l.isOver?"mover":"munder",[En(l.base,h),d])};_n({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,h){var d=l.parser,m=l.funcName;return{type:"horizBrace",mode:d.mode,label:m,isOver:/^\\over/.test(m),base:h[0]}},htmlBuilder:xa,mathmlBuilder:ja}),_n({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,h){var d=l.parser,m=h[1],I=fn(h[0],"url").url;return d.settings.isTrusted({command:"\\href",url:I})?{type:"href",mode:d.mode,href:I,body:lr(m)}:d.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,h){var d=wr(l.body,h,!1);return ze.makeAnchor(l.href,[],d,h)},mathmlBuilder:function(l,h){var d=Mn(l.body,h);return d instanceof Ar||(d=new Ar("mrow",[d])),d.setAttribute("href",l.href),d}}),_n({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,h){var d=l.parser,m=fn(h[0],"url").url;if(!d.settings.isTrusted({command:"\\url",url:m}))return d.formatUnsupportedCmd("\\url");for(var I=[],z=0;z<m.length;z++){var xe=m[z];xe==="~"&&(xe="\\textasciitilde"),I.push({type:"textord",mode:"text",text:xe})}var ke={type:"text",mode:d.mode,font:"\\texttt",body:I};return{type:"href",mode:d.mode,href:m,body:lr(ke)}}}),_n({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,h){var d=l.parser;return{type:"htmlmathml",mode:d.mode,html:lr(h[0]),mathml:lr(h[1])}},htmlBuilder:function(l,h){var d=wr(l.html,h,!1);return ze.makeFragment(d)},mathmlBuilder:function(l,h){return Mn(l.mathml,h)}});var $s=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var h=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!h)throw new ce("Invalid size: '"+l+"' in \\includegraphics");var d={number:+(h[1]+h[2]),unit:h[3]};if(!Ye(d))throw new ce("Invalid unit: '"+d.unit+"' in \\includegraphics.");return d};_n({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,h,d){var m=l.parser,I={number:0,unit:"em"},z={number:.9,unit:"em"},xe={number:0,unit:"em"},ke="";if(d[0])for(var je=fn(d[0],"raw").string,at=je.split(","),vt=0;vt<at.length;vt++){var Mt=at[vt].split("=");if(Mt.length===2){var sn=Mt[1].trim();switch(Mt[0].trim()){case"alt":ke=sn;break;case"width":I=$s(sn);break;case"height":z=$s(sn);break;case"totalheight":xe=$s(sn);break;default:throw new ce("Invalid key: '"+Mt[0]+"' in \\includegraphics.")}}}var pn=fn(h[0],"url").url;return ke===""&&(ke=pn,ke=ke.replace(/^.*[\\/]/,""),ke=ke.substring(0,ke.lastIndexOf("."))),m.settings.isTrusted({command:"\\includegraphics",url:pn})?{type:"includegraphics",mode:m.mode,alt:ke,width:I,height:z,totalheight:xe,src:pn}:m.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,h){var d=Qe(l.height,h),m=0;l.totalheight.number>0&&(m=Qe(l.totalheight,h)-d,m=Number(m.toFixed(2)));var I=0;l.width.number>0&&(I=Qe(l.width,h));var z={height:d+m+"em"};I>0&&(z.width=I+"em"),m>0&&(z.verticalAlign=-m+"em");var xe=new we(l.src,l.alt,z);return xe.height=d,xe.depth=m,xe},mathmlBuilder:function(l,h){var d=new dn.MathNode("mglyph",[]);d.setAttribute("alt",l.alt);var m=Qe(l.height,h),I=0;if(l.totalheight.number>0&&(I=Qe(l.totalheight,h)-m,I=I.toFixed(2),d.setAttribute("valign","-"+I+"em")),d.setAttribute("height",m+I+"em"),l.width.number>0){var z=Qe(l.width,h);d.setAttribute("width",z+"em")}return d.setAttribute("src",l.src),d}}),_n({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,h){var d=l.parser,m=l.funcName,I=fn(h[0],"size");if(d.settings.strict){var z=m[1]==="m",xe=I.value.unit==="mu";z?(xe||d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" supports only mu units, "+("not "+I.value.unit+" units")),d.mode!=="math"&&d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" works only in math mode")):xe&&d.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" doesn't support mu units")}return{type:"kern",mode:d.mode,dimension:I.value}},htmlBuilder:function(l,h){return ze.makeGlue(l.dimension,h)},mathmlBuilder:function(l,h){var d=Qe(l.dimension,h);return new dn.SpaceNode(d)}}),_n({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0];return{type:"lap",mode:d.mode,alignment:m.slice(5),body:I}},htmlBuilder:function(l,h){var d;l.alignment==="clap"?(d=ze.makeSpan([],[ir(l.body,h)]),d=ze.makeSpan(["inner"],[d],h)):d=ze.makeSpan(["inner"],[ir(l.body,h)]);var m=ze.makeSpan(["fix"],[]),I=ze.makeSpan([l.alignment],[d,m],h),z=ze.makeSpan(["strut"]);return z.style.height=I.height+I.depth+"em",z.style.verticalAlign=-I.depth+"em",I.children.unshift(z),I=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I}]},h),ze.makeSpan(["mord"],[I],h)},mathmlBuilder:function(l,h){var d=new dn.MathNode("mpadded",[En(l.body,h)]);if(l.alignment!=="rlap"){var m=l.alignment==="llap"?"-1":"-0.5";d.setAttribute("lspace",m+"width")}return d.setAttribute("width","0px"),d}}),_n({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,h){var d=l.funcName,m=l.parser,I=m.mode;m.switchMode("math");var z=d==="\\("?"\\)":"$",xe=m.parseExpression(!1,z);return m.expect(z),m.switchMode(I),{type:"styling",mode:m.mode,style:"text",body:xe}}}),_n({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,h){throw new ce("Mismatched "+l.funcName)}});var ia=function(l,h){switch(h.style.size){case x.DISPLAY.size:return l.display;case x.TEXT.size:return l.text;case x.SCRIPT.size:return l.script;case x.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};_n({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,h){var d=l.parser;return{type:"mathchoice",mode:d.mode,display:lr(h[0]),text:lr(h[1]),script:lr(h[2]),scriptscript:lr(h[3])}},htmlBuilder:function(l,h){var d=ia(l,h),m=wr(d,h,!1);return ze.makeFragment(m)},mathmlBuilder:function(l,h){var d=ia(l,h);return Mn(d,h)}});var zs=function(l,h,d,m,I,z,xe){l=ze.makeSpan([],[l]);var ke,je;if(h){var at=ir(h,m.havingStyle(I.sup()),m);je={elem:at,kern:Math.max(m.fontMetrics().bigOpSpacing1,m.fontMetrics().bigOpSpacing3-at.depth)}}if(d){var vt=ir(d,m.havingStyle(I.sub()),m);ke={elem:vt,kern:Math.max(m.fontMetrics().bigOpSpacing2,m.fontMetrics().bigOpSpacing4-vt.height)}}var Mt;if(je&&ke){var sn=m.fontMetrics().bigOpSpacing5+ke.elem.height+ke.elem.depth+ke.kern+l.depth+xe;Mt=ze.makeVList({positionType:"bottom",positionData:sn,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:ke.elem,marginLeft:-z+"em"},{type:"kern",size:ke.kern},{type:"elem",elem:l},{type:"kern",size:je.kern},{type:"elem",elem:je.elem,marginLeft:z+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else if(ke){var pn=l.height-xe;Mt=ze.makeVList({positionType:"top",positionData:pn,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:ke.elem,marginLeft:-z+"em"},{type:"kern",size:ke.kern},{type:"elem",elem:l}]},m)}else if(je){var Ln=l.depth+xe;Mt=ze.makeVList({positionType:"bottom",positionData:Ln,children:[{type:"elem",elem:l},{type:"kern",size:je.kern},{type:"elem",elem:je.elem,marginLeft:z+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else return l;return ze.makeSpan(["mop","op-limits"],[Mt],m)},Ea=["\\smallint"],Xi=function(l,h){var d,m,I=!1,z,xe=Pn(l,"supsub");xe?(d=xe.sup,m=xe.sub,z=fn(xe.base,"op"),I=!0):z=fn(l,"op");var ke=h.style,je=!1;ke.size===x.DISPLAY.size&&z.symbol&&!K.contains(Ea,z.name)&&(je=!0);var at;if(z.symbol){var vt=je?"Size2-Regular":"Size1-Regular",Mt="";if((z.name==="\\oiint"||z.name==="\\oiiint")&&(Mt=z.name.substr(1),z.name=Mt==="oiint"?"\\iint":"\\iiint"),at=ze.makeSymbol(z.name,vt,"math",h,["mop","op-symbol",je?"large-op":"small-op"]),Mt.length>0){var sn=at.italic,pn=ze.staticSvg(Mt+"Size"+(je?"2":"1"),h);at=ze.makeVList({positionType:"individualShift",children:[{type:"elem",elem:at,shift:0},{type:"elem",elem:pn,shift:je?.08:0}]},h),z.name="\\"+Mt,at.classes.unshift("mop"),at.italic=sn}}else if(z.body){var Ln=wr(z.body,h,!0);Ln.length===1&&Ln[0]instanceof T?(at=Ln[0],at.classes[0]="mop"):at=ze.makeSpan(["mop"],ze.tryCombineChars(Ln),h)}else{for(var Xn=[],mr=1;mr<z.name.length;mr++)Xn.push(ze.mathsym(z.name[mr],z.mode,h));at=ze.makeSpan(["mop"],Xn,h)}var gr=0,pr=0;return(at instanceof T||z.name==="\\oiint"||z.name==="\\oiiint")&&!z.suppressBaseShift&&(gr=(at.height-at.depth)/2-h.fontMetrics().axisHeight,pr=at.italic),I?zs(at,d,m,h,ke,pr,gr):(gr&&(at.style.position="relative",at.style.top=gr+"em"),at)},Is=function(l,h){var d;if(l.symbol)d=new Ar("mo",[Qr(l.name,l.mode)]),K.contains(Ea,l.name)&&d.setAttribute("largeop","false");else if(l.body)d=new Ar("mo",Gn(l.body,h));else{d=new Ar("mi",[new fi(l.name.slice(1))]);var m=new Ar("mo",[Qr("\u2061","text")]);l.parentIsSupSub?d=new Ar("mo",[d,m]):d=di([d,m])}return d},Ka={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};_n({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,h){var d=l.parser,m=l.funcName,I=m;return I.length===1&&(I=Ka[I]),{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:I}},htmlBuilder:Xi,mathmlBuilder:Is}),_n({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,h){var d=l.parser,m=h[0];return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:lr(m)}},htmlBuilder:Xi,mathmlBuilder:Is});var wa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};_n({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 h=l.parser,d=l.funcName;return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:d}},htmlBuilder:Xi,mathmlBuilder:Is}),_n({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var h=l.parser,d=l.funcName;return{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:d}},htmlBuilder:Xi,mathmlBuilder:Is}),_n({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var h=l.parser,d=l.funcName,m=d;return m.length===1&&(m=wa[m]),{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:m}},htmlBuilder:Xi,mathmlBuilder:Is});var sa=function(l,h){var d,m,I=!1,z,xe=Pn(l,"supsub");xe?(d=xe.sup,m=xe.sub,z=fn(xe.base,"operatorname"),I=!0):z=fn(l,"operatorname");var ke;if(z.body.length>0){for(var je=z.body.map(function(sn){var pn=sn.text;return typeof pn=="string"?{type:"textord",mode:sn.mode,text:pn}:sn}),at=wr(je,h.withFont("mathrm"),!0),vt=0;vt<at.length;vt++){var Mt=at[vt];Mt instanceof T&&(Mt.text=Mt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}ke=ze.makeSpan(["mop"],at,h)}else ke=ze.makeSpan(["mop"],[],h);return I?zs(ke,d,m,h,h.style,0,0):ke},Ga=function(l,h){for(var d=Gn(l.body,h.withFont("mathrm")),m=!0,I=0;I<d.length;I++){var z=d[I];if(!(z instanceof dn.SpaceNode))if(z instanceof dn.MathNode)switch(z.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var xe=z.children[0];z.children.length===1&&xe instanceof dn.TextNode?xe.text=xe.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):m=!1;break}default:m=!1}else m=!1}if(m){var ke=d.map(function(vt){return vt.toText()}).join("");d=[new dn.TextNode(ke)]}var je=new dn.MathNode("mi",d);je.setAttribute("mathvariant","normal");var at=new dn.MathNode("mo",[Qr("\u2061","text")]);return l.parentIsSupSub?new dn.MathNode("mo",[je,at]):dn.newDocumentFragment([je,at])};_n({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0];return{type:"operatorname",mode:d.mode,body:lr(I),alwaysHandleSupSub:m==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:sa,mathmlBuilder:Ga}),cr({type:"ordgroup",htmlBuilder:function(l,h){return l.semisimple?ze.makeFragment(wr(l.body,h,!1)):ze.makeSpan(["mord"],wr(l.body,h,!0),h)},mathmlBuilder:function(l,h){return Mn(l.body,h,!0)}}),_n({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,h){var d=l.parser,m=h[0];return{type:"overline",mode:d.mode,body:m}},htmlBuilder:function(l,h){var d=ir(l.body,h.havingCrampedStyle()),m=ze.makeLineSpan("overline-line",h),I=h.fontMetrics().defaultRuleThickness,z=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:3*I},{type:"elem",elem:m},{type:"kern",size:I}]},h);return ze.makeSpan(["mord","overline"],[z],h)},mathmlBuilder:function(l,h){var d=new dn.MathNode("mo",[new dn.TextNode("\u203E")]);d.setAttribute("stretchy","true");var m=new dn.MathNode("mover",[En(l.body,h),d]);return m.setAttribute("accent","true"),m}}),_n({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,m=h[0];return{type:"phantom",mode:d.mode,body:lr(m)}},htmlBuilder:function(l,h){var d=wr(l.body,h.withPhantom(),!1);return ze.makeFragment(d)},mathmlBuilder:function(l,h){var d=Gn(l.body,h);return new dn.MathNode("mphantom",d)}}),_n({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,m=h[0];return{type:"hphantom",mode:d.mode,body:m}},htmlBuilder:function(l,h){var d=ze.makeSpan([],[ir(l.body,h.withPhantom())]);if(d.height=0,d.depth=0,d.children)for(var m=0;m<d.children.length;m++)d.children[m].height=0,d.children[m].depth=0;return d=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d}]},h),ze.makeSpan(["mord"],[d],h)},mathmlBuilder:function(l,h){var d=Gn(lr(l.body),h),m=new dn.MathNode("mphantom",d),I=new dn.MathNode("mpadded",[m]);return I.setAttribute("height","0px"),I.setAttribute("depth","0px"),I}}),_n({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser,m=h[0];return{type:"vphantom",mode:d.mode,body:m}},htmlBuilder:function(l,h){var d=ze.makeSpan(["inner"],[ir(l.body,h.withPhantom())]),m=ze.makeSpan(["fix"],[]);return ze.makeSpan(["mord","rlap"],[d,m],h)},mathmlBuilder:function(l,h){var d=Gn(lr(l.body),h),m=new dn.MathNode("mphantom",d),I=new dn.MathNode("mpadded",[m]);return I.setAttribute("width","0px"),I}}),_n({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,h){var d=l.parser,m=fn(h[0],"size").value,I=h[1];return{type:"raisebox",mode:d.mode,dy:m,body:I}},htmlBuilder:function(l,h){var d=ir(l.body,h),m=Qe(l.dy,h);return ze.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:d}]},h)},mathmlBuilder:function(l,h){var d=new dn.MathNode("mpadded",[En(l.body,h)]),m=l.dy.number+l.dy.unit;return d.setAttribute("voffset",m),d}}),_n({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,h,d){var m=l.parser,I=d[0],z=fn(h[0],"size"),xe=fn(h[1],"size");return{type:"rule",mode:m.mode,shift:I&&fn(I,"size").value,width:z.value,height:xe.value}},htmlBuilder:function(l,h){var d=ze.makeSpan(["mord","rule"],[],h),m=Qe(l.width,h),I=Qe(l.height,h),z=l.shift?Qe(l.shift,h):0;return d.style.borderRightWidth=m+"em",d.style.borderTopWidth=I+"em",d.style.bottom=z+"em",d.width=m,d.height=I+z,d.depth=-z,d.maxFontSize=I*1.125*h.sizeMultiplier,d},mathmlBuilder:function(l,h){var d=Qe(l.width,h),m=Qe(l.height,h),I=l.shift?Qe(l.shift,h):0,z=h.color&&h.getColor()||"black",xe=new dn.MathNode("mspace");xe.setAttribute("mathbackground",z),xe.setAttribute("width",d+"em"),xe.setAttribute("height",m+"em");var ke=new dn.MathNode("mpadded",[xe]);return I>=0?ke.setAttribute("height","+"+I+"em"):(ke.setAttribute("height",I+"em"),ke.setAttribute("depth","+"+-I+"em")),ke.setAttribute("voffset",I+"em"),ke}});function aa(U,l,h){for(var d=wr(U,l,!1),m=l.sizeMultiplier/h.sizeMultiplier,I=0;I<d.length;I++){var z=d[I].classes.indexOf("sizing");z<0?Array.prototype.push.apply(d[I].classes,l.sizingClasses(h)):d[I].classes[z+1]==="reset-size"+l.size&&(d[I].classes[z+1]="reset-size"+h.size),d[I].height*=m,d[I].depth*=m}return ze.makeFragment(d)}var Ls=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Wa=function(l,h){var d=h.havingSize(l.size);return aa(l.body,d,h)};_n({type:"sizing",names:Ls,props:{numArgs:0,allowedInText:!0},handler:function(l,h){var d=l.breakOnTokenText,m=l.funcName,I=l.parser,z=I.parseExpression(!1,d);return{type:"sizing",mode:I.mode,size:Ls.indexOf(m)+1,body:z}},htmlBuilder:Wa,mathmlBuilder:function(l,h){var d=h.havingSize(l.size),m=Gn(l.body,d),I=new dn.MathNode("mstyle",m);return I.setAttribute("mathsize",d.sizeMultiplier+"em"),I}}),_n({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,h,d){var m=l.parser,I=!1,z=!1,xe=d[0]&&fn(d[0],"ordgroup");if(xe)for(var ke="",je=0;je<xe.body.length;++je){var at=xe.body[je];if(ke=at.text,ke==="t")I=!0;else if(ke==="b")z=!0;else{I=!1,z=!1;break}}else I=!0,z=!0;var vt=h[0];return{type:"smash",mode:m.mode,body:vt,smashHeight:I,smashDepth:z}},htmlBuilder:function(l,h){var d=ze.makeSpan([],[ir(l.body,h)]);if(!l.smashHeight&&!l.smashDepth)return d;if(l.smashHeight&&(d.height=0,d.children))for(var m=0;m<d.children.length;m++)d.children[m].height=0;if(l.smashDepth&&(d.depth=0,d.children))for(var I=0;I<d.children.length;I++)d.children[I].depth=0;var z=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d}]},h);return ze.makeSpan(["mord"],[z],h)},mathmlBuilder:function(l,h){var d=new dn.MathNode("mpadded",[En(l.body,h)]);return l.smashHeight&&d.setAttribute("height","0px"),l.smashDepth&&d.setAttribute("depth","0px"),d}}),_n({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,h,d){var m=l.parser,I=d[0],z=h[0];return{type:"sqrt",mode:m.mode,body:z,index:I}},htmlBuilder:function(l,h){var d=ir(l.body,h.havingCrampedStyle());d.height===0&&(d.height=h.fontMetrics().xHeight),d=ze.wrapFragment(d,h);var m=h.fontMetrics(),I=m.defaultRuleThickness,z=I;h.style.id<x.TEXT.id&&(z=h.fontMetrics().xHeight);var xe=I+z/4,ke=d.height+d.depth+xe+I,je=Di.sqrtImage(ke,h),at=je.span,vt=je.ruleWidth,Mt=je.advanceWidth,sn=at.height-vt;sn>d.height+d.depth+xe&&(xe=(xe+sn-d.height-d.depth)/2);var pn=at.height-d.height-xe-vt;d.style.paddingLeft=Mt+"em";var Ln=ze.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d,wrapperClasses:["svg-align"]},{type:"kern",size:-(d.height+pn)},{type:"elem",elem:at},{type:"kern",size:vt}]},h);if(l.index){var Xn=h.havingStyle(x.SCRIPTSCRIPT),mr=ir(l.index,Xn,h),gr=.6*(Ln.height-Ln.depth),pr=ze.makeVList({positionType:"shift",positionData:-gr,children:[{type:"elem",elem:mr}]},h),jr=ze.makeSpan(["root"],[pr]);return ze.makeSpan(["mord","sqrt"],[jr,Ln],h)}else return ze.makeSpan(["mord","sqrt"],[Ln],h)},mathmlBuilder:function(l,h){var d=l.body,m=l.index;return m?new dn.MathNode("mroot",[En(d,h),En(m,h)]):new dn.MathNode("msqrt",[En(d,h)])}});var Sa={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT};_n({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,h){var d=l.breakOnTokenText,m=l.funcName,I=l.parser,z=I.parseExpression(!0,d),xe=m.slice(1,m.length-5);return{type:"styling",mode:I.mode,style:xe,body:z}},htmlBuilder:function(l,h){var d=Sa[l.style],m=h.havingStyle(d).withFont("");return aa(l.body,m,h)},mathmlBuilder:function(l,h){var d=Sa[l.style],m=h.havingStyle(d),I=Gn(l.body,m),z=new dn.MathNode("mstyle",I),xe={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},ke=xe[l.style];return z.setAttribute("scriptlevel",ke[0]),z.setAttribute("displaystyle",ke[1]),z}});var Za=function(l,h){var d=l.base;if(d)if(d.type==="op"){var m=d.limits&&(h.style.size===x.DISPLAY.size||d.alwaysHandleSupSub);return m?Xi:null}else if(d.type==="operatorname"){var I=d.alwaysHandleSupSub&&(h.style.size===x.DISPLAY.size||d.limits);return I?sa:null}else{if(d.type==="accent")return K.isCharacterBox(d.base)?dr:null;if(d.type==="horizBrace"){var z=!l.sub;return z===d.isOver?xa:null}else return null}else return null};cr({type:"supsub",htmlBuilder:function(l,h){var d=Za(l,h);if(d)return d(l,h);var m=l.base,I=l.sup,z=l.sub,xe=ir(m,h),ke,je,at=h.fontMetrics(),vt=0,Mt=0,sn=m&&K.isCharacterBox(m);if(I){var pn=h.havingStyle(h.style.sup());ke=ir(I,pn,h),sn||(vt=xe.height-pn.fontMetrics().supDrop*pn.sizeMultiplier/h.sizeMultiplier)}if(z){var Ln=h.havingStyle(h.style.sub());je=ir(z,Ln,h),sn||(Mt=xe.depth+Ln.fontMetrics().subDrop*Ln.sizeMultiplier/h.sizeMultiplier)}var Xn;h.style===x.DISPLAY?Xn=at.sup1:h.style.cramped?Xn=at.sup3:Xn=at.sup2;var mr=h.sizeMultiplier,gr=.5/at.ptPerEm/mr+"em",pr=null;if(je){var jr=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(xe instanceof T||jr)&&(pr=-xe.italic+"em")}var Kr;if(ke&&je){vt=Math.max(vt,Xn,ke.depth+.25*at.xHeight),Mt=Math.max(Mt,at.sub2);var qr=at.defaultRuleThickness,ti=4*qr;if(vt-ke.depth-(je.height-Mt)<ti){Mt=ti-(vt-ke.depth)+je.height;var ai=.8*at.xHeight-(vt-ke.depth);ai>0&&(vt+=ai,Mt-=ai)}var Ri=[{type:"elem",elem:je,shift:Mt,marginRight:gr,marginLeft:pr},{type:"elem",elem:ke,shift:-vt,marginRight:gr}];Kr=ze.makeVList({positionType:"individualShift",children:Ri},h)}else if(je){Mt=Math.max(Mt,at.sub1,je.height-.8*at.xHeight);var Si=[{type:"elem",elem:je,marginLeft:pr,marginRight:gr}];Kr=ze.makeVList({positionType:"shift",positionData:Mt,children:Si},h)}else if(ke)vt=Math.max(vt,Xn,ke.depth+.25*at.xHeight),Kr=ze.makeVList({positionType:"shift",positionData:-vt,children:[{type:"elem",elem:ke,marginRight:gr}]},h);else throw new Error("supsub must have either sup or sub.");var zr=kr(xe,"right")||"mord";return ze.makeSpan([zr],[xe,ze.makeSpan(["msupsub"],[Kr])],h)},mathmlBuilder:function(l,h){var d=!1,m,I,z=Pn(l.base,"horizBrace");z&&(I=!!l.sup,I===z.isOver&&(d=!0,m=z.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var xe=[En(l.base,h)];l.sub&&xe.push(En(l.sub,h)),l.sup&&xe.push(En(l.sup,h));var ke;if(d)ke=m?"mover":"munder";else if(l.sub)if(l.sup){var vt=l.base;vt&&vt.type==="op"&&vt.limits&&h.style===x.DISPLAY||vt&&vt.type==="operatorname"&&vt.alwaysHandleSupSub&&(h.style===x.DISPLAY||vt.limits)?ke="munderover":ke="msubsup"}else{var at=l.base;at&&at.type==="op"&&at.limits&&(h.style===x.DISPLAY||at.alwaysHandleSupSub)||at&&at.type==="operatorname"&&at.alwaysHandleSupSub&&(at.limits||h.style===x.DISPLAY)?ke="munder":ke="msub"}else{var je=l.base;je&&je.type==="op"&&je.limits&&(h.style===x.DISPLAY||je.alwaysHandleSupSub)||je&&je.type==="operatorname"&&je.alwaysHandleSupSub&&(je.limits||h.style===x.DISPLAY)?ke="mover":ke="msup"}var Mt=new dn.MathNode(ke,xe);return Mt}}),cr({type:"atom",htmlBuilder:function(l,h){return ze.mathsym(l.text,l.mode,h,["m"+l.family])},mathmlBuilder:function(l,h){var d=new dn.MathNode("mo",[Qr(l.text,l.mode)]);if(l.family==="bin"){var m=Fn(l,h);m==="bold-italic"&&d.setAttribute("mathvariant",m)}else l.family==="punct"?d.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&d.setAttribute("stretchy","false");return d}});var Ca={mi:"italic",mn:"normal",mtext:"normal"};cr({type:"mathord",htmlBuilder:function(l,h){return ze.makeOrd(l,h,"mathord")},mathmlBuilder:function(l,h){var d=new dn.MathNode("mi",[Qr(l.text,l.mode,h)]),m=Fn(l,h)||"italic";return m!==Ca[d.type]&&d.setAttribute("mathvariant",m),d}}),cr({type:"textord",htmlBuilder:function(l,h){return ze.makeOrd(l,h,"textord")},mathmlBuilder:function(l,h){var d=Qr(l.text,l.mode,h),m=Fn(l,h)||"normal",I;return l.mode==="text"?I=new dn.MathNode("mtext",[d]):/[0-9]/.test(l.text)?I=new dn.MathNode("mn",[d]):l.text==="\\prime"?I=new dn.MathNode("mo",[d]):I=new dn.MathNode("mi",[d]),m!==Ca[I.type]&&I.setAttribute("mathvariant",m),I}});var Us={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Hs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cr({type:"spacing",htmlBuilder:function(l,h){if(Hs.hasOwnProperty(l.text)){var d=Hs[l.text].className||"";if(l.mode==="text"){var m=ze.makeOrd(l,h,"textord");return m.classes.push(d),m}else return ze.makeSpan(["mspace",d],[ze.mathsym(l.text,l.mode,h)],h)}else{if(Us.hasOwnProperty(l.text))return ze.makeSpan(["mspace",Us[l.text]],[],h);throw new ce('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,h){var d;if(Hs.hasOwnProperty(l.text))d=new dn.MathNode("mtext",[new dn.TextNode("\xA0")]);else{if(Us.hasOwnProperty(l.text))return new dn.MathNode("mspace");throw new ce('Unknown type of space "'+l.text+'"')}return d}});var js=function(){var l=new dn.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};cr({type:"tag",mathmlBuilder:function(l,h){var d=new dn.MathNode("mtable",[new dn.MathNode("mtr",[js(),new dn.MathNode("mtd",[Mn(l.body,h)]),js(),new dn.MathNode("mtd",[Mn(l.tag,h)])])]);return d.setAttribute("width","100%"),d}});var oa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ta={"\\textbf":"textbf","\\textmd":"textmd"},Aa={"\\textit":"textit","\\textup":"textup"},Da=function(l,h){var d=l.font;return d?oa[d]?h.withTextFontFamily(oa[d]):Ta[d]?h.withTextFontWeight(Ta[d]):h.withTextFontShape(Aa[d]):h};_n({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,h){var d=l.parser,m=l.funcName,I=h[0];return{type:"text",mode:d.mode,body:lr(I),font:m}},htmlBuilder:function(l,h){var d=Da(l,h),m=wr(l.body,d,!0);return ze.makeSpan(["mord","text"],ze.tryCombineChars(m),d)},mathmlBuilder:function(l,h){var d=Da(l,h);return Mn(l.body,d)}}),_n({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,h){var d=l.parser;return{type:"underline",mode:d.mode,body:h[0]}},htmlBuilder:function(l,h){var d=ir(l.body,h),m=ze.makeLineSpan("underline-line",h),I=h.fontMetrics().defaultRuleThickness,z=ze.makeVList({positionType:"top",positionData:d.height,children:[{type:"kern",size:I},{type:"elem",elem:m},{type:"kern",size:3*I},{type:"elem",elem:d}]},h);return ze.makeSpan(["mord","underline"],[z],h)},mathmlBuilder:function(l,h){var d=new dn.MathNode("mo",[new dn.TextNode("\u203E")]);d.setAttribute("stretchy","true");var m=new dn.MathNode("munder",[En(l.body,h),d]);return m.setAttribute("accentunder","true"),m}}),_n({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,h,d){throw new ce("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,h){for(var d=Ra(l),m=[],I=h.havingStyle(h.style.text()),z=0;z<d.length;z++){var xe=d[z];xe==="~"&&(xe="\\textasciitilde"),m.push(ze.makeSymbol(xe,"Typewriter-Regular",l.mode,I,["mord","texttt"]))}return ze.makeSpan(["mord","text"].concat(I.sizingClasses(h)),ze.tryCombineChars(m),I)},mathmlBuilder:function(l,h){var d=new dn.TextNode(Ra(l)),m=new dn.MathNode("mtext",[d]);return m.setAttribute("mathvariant","monospace"),m}});var Ra=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Va=Jn,xs=Va,la=`[ \r
|
|
|
]`,ua="\\\\[a-zA-Z@]+",Ya="\\\\[^\uD800-\uDFFF]",Ia=""+ua+la+"*",Xa=new RegExp("^("+ua+")"+la+"*$"),ca="[\u0300-\u036F]",vi=new RegExp(ca+"+$"),rs="("+la+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ca+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ca+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Ia)+("|"+Ya+")"),Ks=function(){function U(h,d){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=h,this.settings=d,this.tokenRegex=new RegExp(rs,"g"),this.catcodes={"%":14}}var l=U.prototype;return l.setCatcode=function(d,m){this.catcodes[d]=m},l.lex=function(){var d=this.input,m=this.tokenRegex.lastIndex;if(m===d.length)return new Re("EOF",new te(this,m,m));var I=this.tokenRegex.exec(d);if(I===null||I.index!==m)throw new ce("Unexpected character: '"+d[m]+"'",new Re(d[m],new te(this,m,m+1)));var z=I[2]||" ";if(this.catcodes[z]===14){var xe=d.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return xe===-1?(this.tokenRegex.lastIndex=d.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=xe+1,this.lex()}var ke=z.match(Xa);return ke&&(z=ke[1]),new Re(z,new te(this,m,this.tokenRegex.lastIndex))},U}(),Qa=function(){function U(h,d){h===void 0&&(h={}),d===void 0&&(d={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=d,this.builtins=h,this.undefStack=[]}var l=U.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new ce("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var d=this.undefStack.pop();for(var m in d)d.hasOwnProperty(m)&&(d[m]===void 0?delete this.current[m]:this.current[m]=d[m])},l.has=function(d){return this.current.hasOwnProperty(d)||this.builtins.hasOwnProperty(d)},l.get=function(d){return this.current.hasOwnProperty(d)?this.current[d]:this.builtins[d]},l.set=function(d,m,I){if(I===void 0&&(I=!1),I){for(var z=0;z<this.undefStack.length;z++)delete this.undefStack[z][d];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][d]=m)}else{var xe=this.undefStack[this.undefStack.length-1];xe&&!xe.hasOwnProperty(d)&&(xe[d]=this.current[d])}this.current[d]=m},U}(),La={},Gs=La;function Fe(U,l){La[U]=l}Fe("\\@firstoftwo",function(U){var l=U.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Fe("\\@secondoftwo",function(U){var l=U.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Fe("\\@ifnextchar",function(U){var l=U.consumeArgs(3),h=U.future();return l[0].length===1&&l[0][0].text===h.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Fe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Fe("\\TextOrMath",function(U){var l=U.consumeArgs(2);return U.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var fs={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};Fe("\\char",function(U){var l=U.popToken(),h,d="";if(l.text==="'")h=8,l=U.popToken();else if(l.text==='"')h=16,l=U.popToken();else if(l.text==="`")if(l=U.popToken(),l.text[0]==="\\")d=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new ce("\\char` missing argument");d=l.text.charCodeAt(0)}else h=10;if(h){if(d=fs[l.text],d==null||d>=h)throw new ce("Invalid base-"+h+" digit "+l.text);for(var m;(m=fs[U.future().text])!=null&&m<h;)d*=h,d+=m,U.popToken()}return"\\@char{"+d+"}"});var ha=function(l,h){var d=l.consumeArgs(1)[0];if(d.length!==1)throw new ce("\\gdef's first argument must be a macro name");var m=d[0].text,I=0;for(d=l.consumeArgs(1)[0];d.length===1&&d[0].text==="#";){if(d=l.consumeArgs(1)[0],d.length!==1)throw new ce('Invalid argument number length "'+d.length+'"');if(!/^[1-9]$/.test(d[0].text))throw new ce('Invalid argument number "'+d[0].text+'"');if(I++,parseInt(d[0].text)!==I)throw new ce('Argument number "'+d[0].text+'" out of order');d=l.consumeArgs(1)[0]}return l.macros.set(m,{tokens:d,numArgs:I},h),""};Fe("\\gdef",function(U){return ha(U,!0)}),Fe("\\def",function(U){return ha(U,!1)}),Fe("\\global",function(U){var l=U.consumeArgs(1)[0];if(l.length!==1)throw new ce("Invalid command after \\global");var h=l[0].text;if(h==="\\def")return ha(U,!0);throw new ce("Invalid command '"+h+"' after \\global")});var Ws=function(l,h,d){var m=l.consumeArgs(1)[0];if(m.length!==1)throw new ce("\\newcommand's first argument must be a macro name");var I=m[0].text,z=l.isDefined(I);if(z&&!h)throw new ce("\\newcommand{"+I+"} attempting to redefine "+(I+"; use \\renewcommand"));if(!z&&!d)throw new ce("\\renewcommand{"+I+"} when command "+I+" does not yet exist; use \\newcommand");var xe=0;if(m=l.consumeArgs(1)[0],m.length===1&&m[0].text==="["){for(var ke="",je=l.expandNextToken();je.text!=="]"&&je.text!=="EOF";)ke+=je.text,je=l.expandNextToken();if(!ke.match(/^\s*[0-9]+\s*$/))throw new ce("Invalid number of arguments: "+ke);xe=parseInt(ke),m=l.consumeArgs(1)[0]}return l.macros.set(I,{tokens:m,numArgs:xe}),""};Fe("\\newcommand",function(U){return Ws(U,!1,!0)}),Fe("\\renewcommand",function(U){return Ws(U,!0,!1)}),Fe("\\providecommand",function(U){return Ws(U,!0,!0)}),Fe("\\bgroup","{"),Fe("\\egroup","}"),Fe("\\lq","`"),Fe("\\rq","'"),Fe("\\aa","\\r a"),Fe("\\AA","\\r A"),Fe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Fe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Fe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Fe("\u212C","\\mathscr{B}"),Fe("\u2130","\\mathscr{E}"),Fe("\u2131","\\mathscr{F}"),Fe("\u210B","\\mathscr{H}"),Fe("\u2110","\\mathscr{I}"),Fe("\u2112","\\mathscr{L}"),Fe("\u2133","\\mathscr{M}"),Fe("\u211B","\\mathscr{R}"),Fe("\u212D","\\mathfrak{C}"),Fe("\u210C","\\mathfrak{H}"),Fe("\u2128","\\mathfrak{Z}"),Fe("\\Bbbk","\\Bbb{k}"),Fe("\xB7","\\cdotp"),Fe("\\llap","\\mathllap{\\textrm{#1}}"),Fe("\\rlap","\\mathrlap{\\textrm{#1}}"),Fe("\\clap","\\mathclap{\\textrm{#1}}"),Fe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Fe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Fe("\\ne","\\neq"),Fe("\u2260","\\neq"),Fe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Fe("\u2209","\\notin"),Fe("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Fe("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Fe("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Fe("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Fe("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Fe("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Fe("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Fe("\u27C2","\\perp"),Fe("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Fe("\u220C","\\notni"),Fe("\u231C","\\ulcorner"),Fe("\u231D","\\urcorner"),Fe("\u231E","\\llcorner"),Fe("\u231F","\\lrcorner"),Fe("\xA9","\\copyright"),Fe("\xAE","\\textregistered"),Fe("\uFE0F","\\textregistered"),Fe("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Fe("\u22EE","\\vdots"),Fe("\\varGamma","\\mathit{\\Gamma}"),Fe("\\varDelta","\\mathit{\\Delta}"),Fe("\\varTheta","\\mathit{\\Theta}"),Fe("\\varLambda","\\mathit{\\Lambda}"),Fe("\\varXi","\\mathit{\\Xi}"),Fe("\\varPi","\\mathit{\\Pi}"),Fe("\\varSigma","\\mathit{\\Sigma}"),Fe("\\varUpsilon","\\mathit{\\Upsilon}"),Fe("\\varPhi","\\mathit{\\Phi}"),Fe("\\varPsi","\\mathit{\\Psi}"),Fe("\\varOmega","\\mathit{\\Omega}"),Fe("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Fe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Fe("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Fe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Fe("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Fe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Qi={",":"\\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"};Fe("\\dots",function(U){var l="\\dotso",h=U.expandAfterFuture().text;return h in Qi?l=Qi[h]:(h.substr(0,4)==="\\not"||h in Ct.math&&K.contains(["bin","rel"],Ct.math[h].group))&&(l="\\dotsb"),l});var Dt={")":!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};Fe("\\dotso",function(U){var l=U.future().text;return l in Dt?"\\ldots\\,":"\\ldots"}),Fe("\\dotsc",function(U){var l=U.future().text;return l in Dt&&l!==","?"\\ldots\\,":"\\ldots"}),Fe("\\cdots",function(U){var l=U.future().text;return l in Dt?"\\@cdots\\,":"\\@cdots"}),Fe("\\dotsb","\\cdots"),Fe("\\dotsm","\\cdots"),Fe("\\dotsi","\\!\\cdots"),Fe("\\dotsx","\\ldots\\,"),Fe("\\DOTSI","\\relax"),Fe("\\DOTSB","\\relax"),Fe("\\DOTSX","\\relax"),Fe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Fe("\\,","\\tmspace+{3mu}{.1667em}"),Fe("\\thinspace","\\,"),Fe("\\>","\\mskip{4mu}"),Fe("\\:","\\tmspace+{4mu}{.2222em}"),Fe("\\medspace","\\:"),Fe("\\;","\\tmspace+{5mu}{.2777em}"),Fe("\\thickspace","\\;"),Fe("\\!","\\tmspace-{3mu}{.1667em}"),Fe("\\negthinspace","\\!"),Fe("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Fe("\\negthickspace","\\tmspace-{5mu}{.277em}"),Fe("\\enspace","\\kern.5em "),Fe("\\enskip","\\hskip.5em\\relax"),Fe("\\quad","\\hskip1em\\relax"),Fe("\\qquad","\\hskip2em\\relax"),Fe("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Fe("\\tag@paren","\\tag@literal{({#1})}"),Fe("\\tag@literal",function(U){if(U.macros.get("\\df@tag"))throw new ce("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Fe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Fe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Fe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Fe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Fe("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Fe("\\\\","\\newline"),Fe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var da=Ue["Main-Regular"][84][1]-.7*Ue["Main-Regular"][65][1]+"em";Fe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+da+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Fe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+da+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Fe("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Fe("\\@hspace","\\hskip #1\\relax"),Fe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Fe("\\ordinarycolon",":"),Fe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Fe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Fe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Fe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Fe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Fe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Fe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Fe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Fe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Fe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Fe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Fe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Fe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Fe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Fe("\u2237","\\dblcolon"),Fe("\u2239","\\eqcolon"),Fe("\u2254","\\coloneqq"),Fe("\u2255","\\eqqcolon"),Fe("\u2A74","\\Coloneqq"),Fe("\\ratio","\\vcentcolon"),Fe("\\coloncolon","\\dblcolon"),Fe("\\colonequals","\\coloneqq"),Fe("\\coloncolonequals","\\Coloneqq"),Fe("\\equalscolon","\\eqqcolon"),Fe("\\equalscoloncolon","\\Eqqcolon"),Fe("\\colonminus","\\coloneq"),Fe("\\coloncolonminus","\\Coloneq"),Fe("\\minuscolon","\\eqcolon"),Fe("\\minuscoloncolon","\\Eqcolon"),Fe("\\coloncolonapprox","\\Colonapprox"),Fe("\\coloncolonsim","\\Colonsim"),Fe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Fe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Fe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Fe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Fe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Fe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Fe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Fe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Fe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Fe("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Fe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Fe("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Fe("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Fe("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Fe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Fe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Fe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Fe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Fe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Fe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Fe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Fe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Fe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Fe("\u27E6","\\llbracket"),Fe("\u27E7","\\rrbracket"),Fe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Fe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Fe("\u2983","\\lBrace"),Fe("\u2984","\\rBrace"),Fe("\\darr","\\downarrow"),Fe("\\dArr","\\Downarrow"),Fe("\\Darr","\\Downarrow"),Fe("\\lang","\\langle"),Fe("\\rang","\\rangle"),Fe("\\uarr","\\uparrow"),Fe("\\uArr","\\Uparrow"),Fe("\\Uarr","\\Uparrow"),Fe("\\N","\\mathbb{N}"),Fe("\\R","\\mathbb{R}"),Fe("\\Z","\\mathbb{Z}"),Fe("\\alef","\\aleph"),Fe("\\alefsym","\\aleph"),Fe("\\Alpha","\\mathrm{A}"),Fe("\\Beta","\\mathrm{B}"),Fe("\\bull","\\bullet"),Fe("\\Chi","\\mathrm{X}"),Fe("\\clubs","\\clubsuit"),Fe("\\cnums","\\mathbb{C}"),Fe("\\Complex","\\mathbb{C}"),Fe("\\Dagger","\\ddagger"),Fe("\\diamonds","\\diamondsuit"),Fe("\\empty","\\emptyset"),Fe("\\Epsilon","\\mathrm{E}"),Fe("\\Eta","\\mathrm{H}"),Fe("\\exist","\\exists"),Fe("\\harr","\\leftrightarrow"),Fe("\\hArr","\\Leftrightarrow"),Fe("\\Harr","\\Leftrightarrow"),Fe("\\hearts","\\heartsuit"),Fe("\\image","\\Im"),Fe("\\infin","\\infty"),Fe("\\Iota","\\mathrm{I}"),Fe("\\isin","\\in"),Fe("\\Kappa","\\mathrm{K}"),Fe("\\larr","\\leftarrow"),Fe("\\lArr","\\Leftarrow"),Fe("\\Larr","\\Leftarrow"),Fe("\\lrarr","\\leftrightarrow"),Fe("\\lrArr","\\Leftrightarrow"),Fe("\\Lrarr","\\Leftrightarrow"),Fe("\\Mu","\\mathrm{M}"),Fe("\\natnums","\\mathbb{N}"),Fe("\\Nu","\\mathrm{N}"),Fe("\\Omicron","\\mathrm{O}"),Fe("\\plusmn","\\pm"),Fe("\\rarr","\\rightarrow"),Fe("\\rArr","\\Rightarrow"),Fe("\\Rarr","\\Rightarrow"),Fe("\\real","\\Re"),Fe("\\reals","\\mathbb{R}"),Fe("\\Reals","\\mathbb{R}"),Fe("\\Rho","\\mathrm{P}"),Fe("\\sdot","\\cdot"),Fe("\\sect","\\S"),Fe("\\spades","\\spadesuit"),Fe("\\sub","\\subset"),Fe("\\sube","\\subseteq"),Fe("\\supe","\\supseteq"),Fe("\\Tau","\\mathrm{T}"),Fe("\\thetasym","\\vartheta"),Fe("\\weierp","\\wp"),Fe("\\Zeta","\\mathrm{Z}"),Fe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Fe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Fe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Fe("\\blue","\\textcolor{##6495ed}{#1}"),Fe("\\orange","\\textcolor{##ffa500}{#1}"),Fe("\\pink","\\textcolor{##ff00af}{#1}"),Fe("\\red","\\textcolor{##df0030}{#1}"),Fe("\\green","\\textcolor{##28ae7b}{#1}"),Fe("\\gray","\\textcolor{gray}{#1}"),Fe("\\purple","\\textcolor{##9d38bd}{#1}"),Fe("\\blueA","\\textcolor{##ccfaff}{#1}"),Fe("\\blueB","\\textcolor{##80f6ff}{#1}"),Fe("\\blueC","\\textcolor{##63d9ea}{#1}"),Fe("\\blueD","\\textcolor{##11accd}{#1}"),Fe("\\blueE","\\textcolor{##0c7f99}{#1}"),Fe("\\tealA","\\textcolor{##94fff5}{#1}"),Fe("\\tealB","\\textcolor{##26edd5}{#1}"),Fe("\\tealC","\\textcolor{##01d1c1}{#1}"),Fe("\\tealD","\\textcolor{##01a995}{#1}"),Fe("\\tealE","\\textcolor{##208170}{#1}"),Fe("\\greenA","\\textcolor{##b6ffb0}{#1}"),Fe("\\greenB","\\textcolor{##8af281}{#1}"),Fe("\\greenC","\\textcolor{##74cf70}{#1}"),Fe("\\greenD","\\textcolor{##1fab54}{#1}"),Fe("\\greenE","\\textcolor{##0d923f}{#1}"),Fe("\\goldA","\\textcolor{##ffd0a9}{#1}"),Fe("\\goldB","\\textcolor{##ffbb71}{#1}"),Fe("\\goldC","\\textcolor{##ff9c39}{#1}"),Fe("\\goldD","\\textcolor{##e07d10}{#1}"),Fe("\\goldE","\\textcolor{##a75a05}{#1}"),Fe("\\redA","\\textcolor{##fca9a9}{#1}"),Fe("\\redB","\\textcolor{##ff8482}{#1}"),Fe("\\redC","\\textcolor{##f9685d}{#1}"),Fe("\\redD","\\textcolor{##e84d39}{#1}"),Fe("\\redE","\\textcolor{##bc2612}{#1}"),Fe("\\maroonA","\\textcolor{##ffbde0}{#1}"),Fe("\\maroonB","\\textcolor{##ff92c6}{#1}"),Fe("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Fe("\\maroonD","\\textcolor{##ca337c}{#1}"),Fe("\\maroonE","\\textcolor{##9e034e}{#1}"),Fe("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Fe("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Fe("\\purpleC","\\textcolor{##aa87ff}{#1}"),Fe("\\purpleD","\\textcolor{##7854ab}{#1}"),Fe("\\purpleE","\\textcolor{##543b78}{#1}"),Fe("\\mintA","\\textcolor{##f5f9e8}{#1}"),Fe("\\mintB","\\textcolor{##edf2df}{#1}"),Fe("\\mintC","\\textcolor{##e0e5cc}{#1}"),Fe("\\grayA","\\textcolor{##f6f7f7}{#1}"),Fe("\\grayB","\\textcolor{##f0f1f2}{#1}"),Fe("\\grayC","\\textcolor{##e3e5e6}{#1}"),Fe("\\grayD","\\textcolor{##d6d8da}{#1}"),Fe("\\grayE","\\textcolor{##babec2}{#1}"),Fe("\\grayF","\\textcolor{##888d93}{#1}"),Fe("\\grayG","\\textcolor{##626569}{#1}"),Fe("\\grayH","\\textcolor{##3b3e40}{#1}"),Fe("\\grayI","\\textcolor{##21242c}{#1}"),Fe("\\kaBlue","\\textcolor{##314453}{#1}"),Fe("\\kaGreen","\\textcolor{##71B307}{#1}");var Zs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},qa=function(){function U(h,d,m){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=d,this.expansionCount=0,this.feed(h),this.macros=new Qa(Gs,d.macros),this.mode=m,this.stack=[]}var l=U.prototype;return l.feed=function(d){this.lexer=new Ks(d,this.settings)},l.switchMode=function(d){this.mode=d},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(d){this.stack.push(d)},l.pushTokens=function(d){var m;(m=this.stack).push.apply(m,d)},l.consumeSpaces=function(){for(;;){var d=this.future();if(d.text===" ")this.stack.pop();else break}},l.consumeArgs=function(d){for(var m=[],I=0;I<d;++I){this.consumeSpaces();var z=this.popToken();if(z.text==="{"){for(var xe=[],ke=1;ke!==0;){var je=this.popToken();if(xe.push(je),je.text==="{")++ke;else if(je.text==="}")--ke;else if(je.text==="EOF")throw new ce("End of input in macro argument",z)}xe.pop(),xe.reverse(),m[I]=xe}else{if(z.text==="EOF")throw new ce("End of input expecting macro argument");m[I]=[z]}}return m},l.expandOnce=function(){var d=this.popToken(),m=d.text,I=this._getExpansion(m);if(I==null)return this.pushToken(d),d;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new ce("Too many expansions: infinite loop or need to increase maxExpand setting");var z=I.tokens;if(I.numArgs){var xe=this.consumeArgs(I.numArgs);z=z.slice();for(var ke=z.length-1;ke>=0;--ke){var je=z[ke];if(je.text==="#"){if(ke===0)throw new ce("Incomplete placeholder at end of macro body",je);if(je=z[--ke],je.text==="#")z.splice(ke+1,1);else if(/^[1-9]$/.test(je.text)){var at;(at=z).splice.apply(at,[ke,2].concat(xe[+je.text-1]))}else throw new ce("Not a valid argument number",je)}}}return this.pushTokens(z),z},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var d=this.expandOnce();if(d instanceof Re)if(d.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(d){if(this.macros.get(d)){var m=[],I=this.stack.length;for(this.pushToken(new Re(d));this.stack.length>I;){var z=this.expandOnce();z instanceof Re&&m.push(this.stack.pop())}return m}},l.expandMacroAsText=function(d){var m=this.expandMacro(d);return m&&m.map(function(I){return I.text}).join("")},l._getExpansion=function(d){var m=this.macros.get(d);if(m==null)return m;var I=typeof m=="function"?m(this):m;if(typeof I=="string"){var z=0;if(I.indexOf("#")!==-1)for(var xe=I.replace(/##/g,"");xe.indexOf("#"+(z+1))!==-1;)++z;for(var ke=new Ks(I,this.settings),je=[],at=ke.lex();at.text!=="EOF";)je.push(at),at=ke.lex();je.reverse();var vt={tokens:je,numArgs:z};return vt}return I},l.isDefined=function(d){return this.macros.has(d)||xs.hasOwnProperty(d)||Ct.math.hasOwnProperty(d)||Ct.text.hasOwnProperty(d)||Zs.hasOwnProperty(d)},U}(),Es={"\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"}},Oa={\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"},Vs=function(){function U(h,d){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 qa(h,d,this.mode),this.settings=d,this.leftrightDepth=0}var l=U.prototype;return l.expect=function(d,m){if(m===void 0&&(m=!0),this.fetch().text!==d)throw new ce("Expected '"+d+"', got '"+this.fetch().text+"'",this.fetch());m&&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(d){this.mode=d,this.gullet.switchMode(d)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var d=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),d},l.parseExpression=function(d,m){for(var I=[];;){this.mode==="math"&&this.consumeSpaces();var z=this.fetch();if(U.endOfExpression.indexOf(z.text)!==-1||m&&z.text===m||d&&xs[z.text]&&xs[z.text].infix)break;var xe=this.parseAtom(m);if(!xe)break;I.push(xe)}return this.mode==="text"&&this.formLigatures(I),this.handleInfixNodes(I)},l.handleInfixNodes=function(d){for(var m=-1,I,z=0;z<d.length;z++){var xe=Pn(d[z],"infix");if(xe){if(m!==-1)throw new ce("only one infix operator per group",xe.token);m=z,I=xe.replaceWith}}if(m!==-1&&I){var ke,je,at=d.slice(0,m),vt=d.slice(m+1);at.length===1&&at[0].type==="ordgroup"?ke=at[0]:ke={type:"ordgroup",mode:this.mode,body:at},vt.length===1&&vt[0].type==="ordgroup"?je=vt[0]:je={type:"ordgroup",mode:this.mode,body:vt};var Mt;return I==="\\\\abovefrac"?Mt=this.callFunction(I,[ke,d[m],je],[]):Mt=this.callFunction(I,[ke,je],[]),[Mt]}else return d},l.handleSupSubscript=function(d){var m=this.fetch(),I=m.text;this.consume();var z=this.parseGroup(d,!1,U.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!z)throw new ce("Expected group after '"+I+"'",m);return z},l.formatUnsupportedCmd=function(d){for(var m=[],I=0;I<d.length;I++)m.push({type:"textord",mode:"text",text:d[I]});var z={type:"text",mode:this.mode,body:m},xe={type:"color",mode:this.mode,color:this.settings.errorColor,body:[z]};return xe},l.parseAtom=function(d){var m=this.parseGroup("atom",!1,null,d);if(this.mode==="text")return m;for(var I,z;;){this.consumeSpaces();var xe=this.fetch();if(xe.text==="\\limits"||xe.text==="\\nolimits"){var ke=Pn(m,"op");if(ke){var je=xe.text==="\\limits";ke.limits=je,ke.alwaysHandleSupSub=!0}else if(ke=Pn(m,"operatorname"),ke&&ke.alwaysHandleSupSub){var at=xe.text==="\\limits";ke.limits=at}else throw new ce("Limit controls must follow a math operator",xe);this.consume()}else if(xe.text==="^"){if(I)throw new ce("Double superscript",xe);I=this.handleSupSubscript("superscript")}else if(xe.text==="_"){if(z)throw new ce("Double subscript",xe);z=this.handleSupSubscript("subscript")}else if(xe.text==="'"){if(I)throw new ce("Double superscript",xe);var vt={type:"textord",mode:this.mode,text:"\\prime"},Mt=[vt];for(this.consume();this.fetch().text==="'";)Mt.push(vt),this.consume();this.fetch().text==="^"&&Mt.push(this.handleSupSubscript("superscript")),I={type:"ordgroup",mode:this.mode,body:Mt}}else break}return I||z?{type:"supsub",mode:this.mode,base:m,sup:I,sub:z}:m},l.parseFunction=function(d,m,I){var z=this.fetch(),xe=z.text,ke=xs[xe];if(!ke)return null;if(this.consume(),I!=null&&ke.greediness<=I)throw new ce("Got function '"+xe+"' with no arguments"+(m?" as "+m:""),z);if(this.mode==="text"&&!ke.allowedInText)throw new ce("Can't use function '"+xe+"' in text mode",z);if(this.mode==="math"&&ke.allowedInMath===!1)throw new ce("Can't use function '"+xe+"' in math mode",z);var je=this.parseArguments(xe,ke),at=je.args,vt=je.optArgs;return this.callFunction(xe,at,vt,z,d)},l.callFunction=function(d,m,I,z,xe){var ke={funcName:d,parser:this,token:z,breakOnTokenText:xe},je=xs[d];if(je&&je.handler)return je.handler(ke,m,I);throw new ce("No function handler for "+d)},l.parseArguments=function(d,m){var I=m.numArgs+m.numOptionalArgs;if(I===0)return{args:[],optArgs:[]};for(var z=m.greediness,xe=[],ke=[],je=0;je<I;je++){var at=m.argTypes&&m.argTypes[je],vt=je<m.numOptionalArgs,Mt=je>0&&!vt||je===0&&!vt&&this.mode==="math",sn=this.parseGroupOfType("argument to '"+d+"'",at,vt,z,Mt);if(!sn){if(vt){ke.push(null);continue}throw new ce("Expected group after '"+d+"'",this.fetch())}(vt?ke:xe).push(sn)}return{args:xe,optArgs:ke}},l.parseGroupOfType=function(d,m,I,z,xe){switch(m){case"color":return xe&&this.consumeSpaces(),this.parseColorGroup(I);case"size":return xe&&this.consumeSpaces(),this.parseSizeGroup(I);case"url":return this.parseUrlGroup(I,xe);case"math":case"text":return this.parseGroup(d,I,z,void 0,m,xe);case"hbox":{var ke=this.parseGroup(d,I,z,void 0,"text",xe);if(!ke)return ke;var je={type:"styling",mode:ke.mode,body:[ke],style:"text"};return je}case"raw":{if(xe&&this.consumeSpaces(),I&&this.fetch().text==="{")return null;var at=this.parseStringGroup("raw",I,!0);if(at)return{type:"raw",mode:"text",string:at.text};throw new ce("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(d,I,z,void 0,void 0,xe);default:throw new ce("Unknown group type as "+d,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(d,m,I){var z=m?"[":"{",xe=m?"]":"}",ke=this.fetch();if(ke.text!==z){if(m)return null;if(I&&ke.text!=="EOF"&&/[^{}[\]]/.test(ke.text))return this.consume(),ke}var je=this.mode;this.mode="text",this.expect(z);for(var at="",vt=this.fetch(),Mt=0,sn=vt,pn;(pn=this.fetch()).text!==xe||I&&Mt>0;){switch(pn.text){case"EOF":throw new ce("Unexpected end of input in "+d,vt.range(sn,at));case z:Mt++;break;case xe:Mt--;break}sn=pn,at+=sn.text,this.consume()}return this.expect(xe),this.mode=je,vt.range(sn,at)},l.parseRegexGroup=function(d,m){var I=this.mode;this.mode="text";for(var z=this.fetch(),xe=z,ke="",je;(je=this.fetch()).text!=="EOF"&&d.test(ke+je.text);)xe=je,ke+=xe.text,this.consume();if(ke==="")throw new ce("Invalid "+m+": '"+z.text+"'",z);return this.mode=I,z.range(xe,ke)},l.parseColorGroup=function(d){var m=this.parseStringGroup("color",d);if(!m)return null;var I=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(m.text);if(!I)throw new ce("Invalid color: '"+m.text+"'",m);var z=I[0];return/^[0-9a-f]{6}$/i.test(z)&&(z="#"+z),{type:"color-token",mode:this.mode,color:z}},l.parseSizeGroup=function(d){var m,I=!1;if(!d&&this.fetch().text!=="{"?m=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):m=this.parseStringGroup("size",d),!m)return null;!d&&m.text.length===0&&(m.text="0pt",I=!0);var z=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(m.text);if(!z)throw new ce("Invalid size: '"+m.text+"'",m);var xe={number:+(z[1]+z[2]),unit:z[3]};if(!Ye(xe))throw new ce("Invalid unit: '"+xe.unit+"'",m);return{type:"size",mode:this.mode,value:xe,isBlank:I}},l.parseUrlGroup=function(d,m){this.gullet.lexer.setCatcode("%",13);var I=this.parseStringGroup("url",d,!0);if(this.gullet.lexer.setCatcode("%",14),!I)return null;var z=I.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:z}},l.parseGroup=function(d,m,I,z,xe,ke){var je=this.mode;xe&&this.switchMode(xe),ke&&this.consumeSpaces();var at=this.fetch(),vt=at.text,Mt;if(m?vt==="[":vt==="{"||vt==="\\begingroup"){this.consume();var sn=U.endOfGroup[vt];this.gullet.beginGroup();var pn=this.parseExpression(!1,sn),Ln=this.fetch();this.expect(sn),this.gullet.endGroup(),Mt={type:"ordgroup",mode:this.mode,loc:te.range(at,Ln),body:pn,semisimple:vt==="\\begingroup"||void 0}}else if(m)Mt=null;else if(Mt=this.parseFunction(z,d,I)||this.parseSymbol(),Mt==null&&vt[0]==="\\"&&!Zs.hasOwnProperty(vt)){if(this.settings.throwOnError)throw new ce("Undefined control sequence: "+vt,at);Mt=this.formatUnsupportedCmd(vt),this.consume()}return xe&&this.switchMode(je),Mt},l.formLigatures=function(d){for(var m=d.length-1,I=0;I<m;++I){var z=d[I],xe=z.text;xe==="-"&&d[I+1].text==="-"&&(I+1<m&&d[I+2].text==="-"?(d.splice(I,3,{type:"textord",mode:"text",loc:te.range(z,d[I+2]),text:"---"}),m-=2):(d.splice(I,2,{type:"textord",mode:"text",loc:te.range(z,d[I+1]),text:"--"}),m-=1)),(xe==="'"||xe==="`")&&d[I+1].text===xe&&(d.splice(I,2,{type:"textord",mode:"text",loc:te.range(z,d[I+1]),text:xe+xe}),m-=1)}},l.parseSymbol=function(){var d=this.fetch(),m=d.text;if(/^\\verb[^a-zA-Z]/.test(m)){this.consume();var I=m.slice(5),z=I.charAt(0)==="*";if(z&&(I=I.slice(1)),I.length<2||I.charAt(0)!==I.slice(-1))throw new ce(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return I=I.slice(1,-1),{type:"verb",mode:"text",body:I,star:z}}Oa.hasOwnProperty(m[0])&&!Ct[this.mode][m[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+m[0]+'" used in math mode',d),m=Oa[m[0]]+m.substr(1));var xe=vi.exec(m);xe&&(m=m.substring(0,xe.index),m==="i"?m="\u0131":m==="j"&&(m="\u0237"));var ke;if(Ct[this.mode][m]){this.settings.strict&&this.mode==="math"&&zt.indexOf(m)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+m[0]+'" used in math mode',d);var je=Ct[this.mode][m].group,at=te.range(d),vt;if(St.hasOwnProperty(je)){var Mt=je;vt={type:"atom",mode:this.mode,family:Mt,loc:at,text:m}}else vt={type:je,mode:this.mode,loc:at,text:m};ke=vt}else if(m.charCodeAt(0)>=128)this.settings.strict&&(Ve(m.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+m[0]+'" used in math mode',d):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+m[0]+'"'+(" ("+m.charCodeAt(0)+")"),d)),ke={type:"textord",mode:"text",loc:te.range(d),text:m};else return null;if(this.consume(),xe)for(var sn=0;sn<xe[0].length;sn++){var pn=xe[0][sn];if(!Es[pn])throw new ce("Unknown accent ' "+pn+"'",d);var Ln=Es[pn][this.mode];if(!Ln)throw new ce("Accent "+pn+" unsupported in "+this.mode+" mode",d);ke={type:"accent",mode:this.mode,loc:te.range(d),label:Ln,isStretchy:!1,isShifty:!0,base:ke}}return ke},U}();Vs.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Vs.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Vs.SUPSUB_GREEDINESS=1;var ka=function(l,h){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var d=new Vs(l,h);delete d.gullet.macros.current["\\df@tag"];var m=d.parse();if(d.gullet.macros.get("\\df@tag")){if(!h.displayMode)throw new ce("\\tag works only in display equations");d.gullet.feed("\\df@tag"),m=[{type:"tag",mode:"text",body:m,tag:d.parse()}]}return m},fa=ka,Pa=function(l,h,d){h.textContent="";var m=Mi(l,d).toNode();h.appendChild(m)};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."),Pa=function(){throw new ce("KaTeX doesn't work in quirks mode.")});var ws=function(l,h){var d=Mi(l,h).toMarkup();return d},ma=function(l,h){var d=new F(h);return fa(l,d)},Os=function(l,h,d){if(d.throwOnError||!(l instanceof ce))throw l;var m=ze.makeSpan(["katex-error"],[new T(h)]);return m.setAttribute("title",l.toString()),m.setAttribute("style","color:"+d.errorColor),m},Mi=function(l,h){var d=new F(h);try{var m=fa(l,d);return Dr(m,l,d)}catch(I){return Os(I,l,d)}},Ja=function(l,h){var d=new F(h);try{var m=fa(l,d);return $r(m,l,d)}catch(I){return Os(I,l,d)}},Ma={version:"0.11.1",render:Pa,renderToString:ws,ParseError:ce,__parse:ma,__renderToDomTree:Mi,__renderToHTMLTree:Ja,__setFontMetrics:We,__defineSymbol:y,__defineMacro:Fe,__domTree:{Span:k,Anchor:de,SymbolNode:T,SvgNode:O,PathNode:ue,LineNode:he}},eo=_.default=Ma}]).default})},32834:function(rn){(function(nt,_){rn.exports=_()})(this,function(){"use strict";function nt(Me,Ke){for(var Ze=0;Ze<Ke.length;Ze++){var J=Ke[Ze];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Me,J.key,J)}}function _(Me,Ke,Ze){return Ke&&nt(Me.prototype,Ke),Ze&&nt(Me,Ze),Me}function P(Me,Ke){if(Me){if(typeof Me=="string")return N(Me,Ke);var Ze=Object.prototype.toString.call(Me).slice(8,-1);if(Ze==="Object"&&Me.constructor&&(Ze=Me.constructor.name),Ze==="Map"||Ze==="Set")return Array.from(Me);if(Ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ze))return N(Me,Ke)}}function N(Me,Ke){(Ke==null||Ke>Me.length)&&(Ke=Me.length);for(var Ze=0,J=new Array(Ke);Ze<Ke;Ze++)J[Ze]=Me[Ze];return J}function te(Me,Ke){var Ze=typeof Symbol!="undefined"&&Me[Symbol.iterator]||Me["@@iterator"];if(Ze)return(Ze=Ze.call(Me)).next.bind(Ze);if(Array.isArray(Me)||(Ze=P(Me))||Ke&&Me&&typeof Me.length=="number"){Ze&&(Me=Ze);var J=0;return function(){return J>=Me.length?{done:!0}:{done:!1,value:Me[J++]}}}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 Re={exports:{}};function V(){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 ce(Me){Re.exports.defaults=Me}Re.exports={defaults:V(),getDefaults:V,changeDefaults:ce};var _e=/[&<>"']/,Ee=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,R=/[<>"']|&(?!#?\w+;)/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(Ke){return M[Ke]};function c(Me,Ke){if(Ke){if(_e.test(Me))return Me.replace(Ee,g)}else if(o.test(Me))return Me.replace(R,g);return Me}var w=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(Me){return Me.replace(w,function(Ke,Ze){return Ze=Ze.toLowerCase(),Ze==="colon"?":":Ze.charAt(0)==="#"?Ze.charAt(1)==="x"?String.fromCharCode(parseInt(Ze.substring(2),16)):String.fromCharCode(+Ze.substring(1)):""})}var Y=/(^|[^\[])\^/g;function se(Me,Ke){Me=Me.source||Me,Ke=Ke||"";var Ze={replace:function(fe,Te){return Te=Te.source||Te,Te=Te.replace(Y,"$1"),Me=Me.replace(fe,Te),Ze},getRegex:function(){return new RegExp(Me,Ke)}};return Ze}var K=/[^\w:]/g,F=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function H(Me,Ke,Ze){if(Me){var J;try{J=decodeURIComponent(v(Ze)).replace(K,"").toLowerCase()}catch(fe){return null}if(J.indexOf("javascript:")===0||J.indexOf("vbscript:")===0||J.indexOf("data:")===0)return null}Ke&&!F.test(Ze)&&(Ze=X(Ke,Ze));try{Ze=encodeURI(Ze).replace(/%25/g,"%")}catch(fe){return null}return Ze}var ne={},b=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,B=/^([^:]+:\/*[^/]*)[\s\S]*$/;function X(Me,Ke){ne[" "+Me]||(b.test(Me)?ne[" "+Me]=Me+"/":ne[" "+Me]=He(Me,"/",!0)),Me=ne[" "+Me];var Ze=Me.indexOf(":")===-1;return Ke.substring(0,2)==="//"?Ze?Ke:Me.replace(A,"$1")+Ke:Ke.charAt(0)==="/"?Ze?Ke:Me.replace(B,"$1")+Ke:Me+Ke}var ge={exec:function(){}};function Ie(Me){for(var Ke=1,Ze,J;Ke<arguments.length;Ke++){Ze=arguments[Ke];for(J in Ze)Object.prototype.hasOwnProperty.call(Ze,J)&&(Me[J]=Ze[J])}return Me}function Oe(Me,Ke){var Ze=Me.replace(/\|/g,function(Te,Be,G){for(var Ot=!1,Pe=Be;--Pe>=0&&G[Pe]==="\\";)Ot=!Ot;return Ot?"|":" |"}),J=Ze.split(/ \|/),fe=0;if(J.length>Ke)J.splice(Ke);else for(;J.length<Ke;)J.push("");for(;fe<J.length;fe++)J[fe]=J[fe].trim().replace(/\\\|/g,"|");return J}function He(Me,Ke,Ze){var J=Me.length;if(J===0)return"";for(var fe=0;fe<J;){var Te=Me.charAt(J-fe-1);if(Te===Ke&&!Ze)fe++;else if(Te!==Ke&&Ze)fe++;else break}return Me.substr(0,J-fe)}function q(Me,Ke){if(Me.indexOf(Ke[1])===-1)return-1;for(var Ze=Me.length,J=0,fe=0;fe<Ze;fe++)if(Me[fe]==="\\")fe++;else if(Me[fe]===Ke[0])J++;else if(Me[fe]===Ke[1]&&(J--,J<0))return fe;return-1}function $(Me){Me&&Me.sanitize&&!Me.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 ae(Me,Ke){if(Ke<1)return"";for(var Ze="";Ke>1;)Ke&1&&(Ze+=Me),Ke>>=1,Me+=Me;return Ze+Me}var ee={escape:c,unescape:v,edit:se,cleanUrl:H,resolveUrl:X,noopTest:ge,merge:Ie,splitCells:Oe,rtrim:He,findClosingBracket:q,checkSanitizeDeprecation:$,repeatString:ae},ye=Re.exports.defaults,re=ee.rtrim,x=ee.splitCells,S=ee.escape,Q=ee.findClosingBracket;function be(Me,Ke,Ze){var J=Ke.href,fe=Ke.title?S(Ke.title):null,Te=Me[1].replace(/\\([\[\]])/g,"$1");return Me[0].charAt(0)!=="!"?{type:"link",raw:Ze,href:J,title:fe,text:Te}:{type:"image",raw:Ze,href:J,title:fe,text:S(Te)}}function Ve(Me,Ke){var Ze=Me.match(/^(\s+)(?:```)/);if(Ze===null)return Ke;var J=Ze[1];return Ke.split(`
|
|
|
`).map(function(fe){var Te=fe.match(/^\s+/);if(Te===null)return fe;var Be=Te[0];return Be.length>=J.length?fe.slice(J.length):fe}).join(`
|
|
|
`)}var tt=function(){function Me(Ze){this.options=Ze||ye}var Ke=Me.prototype;return Ke.space=function(J){var fe=this.rules.block.newline.exec(J);if(fe)return fe[0].length>1?{type:"space",raw:fe[0]}:{raw:`
|
|
|
`}},Ke.code=function(J){var fe=this.rules.block.code.exec(J);if(fe){var Te=fe[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:fe[0],codeBlockStyle:"indented",text:this.options.pedantic?Te:re(Te,`
|
|
|
`)}}},Ke.fences=function(J){var fe=this.rules.block.fences.exec(J);if(fe){var Te=fe[0],Be=Ve(Te,fe[3]||"");return{type:"code",raw:Te,lang:fe[2]?fe[2].trim():fe[2],text:Be}}},Ke.heading=function(J){var fe=this.rules.block.heading.exec(J);if(fe){var Te=fe[2].trim();if(/#$/.test(Te)){var Be=re(Te,"#");(this.options.pedantic||!Be||/ $/.test(Be))&&(Te=Be.trim())}return{type:"heading",raw:fe[0],depth:fe[1].length,text:Te}}},Ke.nptable=function(J){var fe=this.rules.block.nptable.exec(J);if(fe){var Te={type:"table",header:x(fe[1].replace(/^ *| *\| *$/g,"")),align:fe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:fe[3]?fe[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:fe[0]};if(Te.header.length===Te.align.length){var Be=Te.align.length,G;for(G=0;G<Be;G++)/^ *-+: *$/.test(Te.align[G])?Te.align[G]="right":/^ *:-+: *$/.test(Te.align[G])?Te.align[G]="center":/^ *:-+ *$/.test(Te.align[G])?Te.align[G]="left":Te.align[G]=null;for(Be=Te.cells.length,G=0;G<Be;G++)Te.cells[G]=x(Te.cells[G],Te.header.length);return Te}}},Ke.hr=function(J){var fe=this.rules.block.hr.exec(J);if(fe)return{type:"hr",raw:fe[0]}},Ke.blockquote=function(J){var fe=this.rules.block.blockquote.exec(J);if(fe){var Te=fe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:fe[0],text:Te}}},Ke.list=function(J){var fe=this.rules.block.list.exec(J);if(fe){var Te=fe[0],Be=fe[2],G=Be.length>1,Ot={type:"list",raw:Te,ordered:G,start:G?+Be.slice(0,-1):"",loose:!1,items:[]},Pe=fe[0].match(this.rules.block.item),Yt=!1,mn,wn,Hn,$t,qt,$e,dt,Tt,Le,ve=Pe.length;Hn=this.rules.block.listItemStart.exec(Pe[0]);for(var rt=0;rt<ve;rt++){if(mn=Pe[rt],Te=mn,this.options.pedantic||(Le=mn.match(new RegExp("\\n\\s*\\n {0,"+(Hn[0].length-1)+"}\\S")),Le&&(qt=mn.length-Le.index+Pe.slice(rt+1).join(`
|
|
|
`).length,Ot.raw=Ot.raw.substring(0,Ot.raw.length-qt),mn=mn.substring(0,Le.index),Te=mn,ve=rt+1)),rt!==ve-1){if($t=this.rules.block.listItemStart.exec(Pe[rt+1]),this.options.pedantic?$t[1].length>Hn[1].length:$t[1].length>=Hn[0].length||$t[1].length>3){Pe.splice(rt,2,Pe[rt]+(!this.options.pedantic&&$t[1].length<Hn[0].length&&!Pe[rt].match(/\n$/)?"":`
|
|
|
`)+Pe[rt+1]),rt--,ve--;continue}else(!this.options.pedantic||this.options.smartLists?$t[2][$t[2].length-1]!==Be[Be.length-1]:G===($t[2].length===1))&&(qt=Pe.slice(rt+1).join(`
|
|
|
`).length,Ot.raw=Ot.raw.substring(0,Ot.raw.length-qt),rt=ve-1);Hn=$t}wn=mn.length,mn=mn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~mn.indexOf(`
|
|
|
`)&&(wn-=mn.length,mn=this.options.pedantic?mn.replace(/^ {1,4}/gm,""):mn.replace(new RegExp("^ {1,"+wn+"}","gm"),"")),mn=re(mn,`
|
|
|
`),rt!==ve-1&&(Te=Te+`
|
|
|
`),$e=Yt||/\n\n(?!\s*$)/.test(Te),rt!==ve-1&&(Yt=Te.slice(-2)===`
|
|
|
|
|
|
`,$e||($e=Yt)),$e&&(Ot.loose=!0),this.options.gfm&&(dt=/^\[[ xX]\] /.test(mn),Tt=void 0,dt&&(Tt=mn[1]!==" ",mn=mn.replace(/^\[[ xX]\] +/,""))),Ot.items.push({type:"list_item",raw:Te,task:dt,checked:Tt,loose:$e,text:mn})}return Ot}},Ke.html=function(J){var fe=this.rules.block.html.exec(J);if(fe)return{type:this.options.sanitize?"paragraph":"html",raw:fe[0],pre:!this.options.sanitizer&&(fe[1]==="pre"||fe[1]==="script"||fe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(fe[0]):S(fe[0]):fe[0]}},Ke.def=function(J){var fe=this.rules.block.def.exec(J);if(fe){fe[3]&&(fe[3]=fe[3].substring(1,fe[3].length-1));var Te=fe[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Te,raw:fe[0],href:fe[2],title:fe[3]}}},Ke.table=function(J){var fe=this.rules.block.table.exec(J);if(fe){var Te={type:"table",header:x(fe[1].replace(/^ *| *\| *$/g,"")),align:fe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:fe[3]?fe[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(Te.header.length===Te.align.length){Te.raw=fe[0];var Be=Te.align.length,G;for(G=0;G<Be;G++)/^ *-+: *$/.test(Te.align[G])?Te.align[G]="right":/^ *:-+: *$/.test(Te.align[G])?Te.align[G]="center":/^ *:-+ *$/.test(Te.align[G])?Te.align[G]="left":Te.align[G]=null;for(Be=Te.cells.length,G=0;G<Be;G++)Te.cells[G]=x(Te.cells[G].replace(/^ *\| *| *\| *$/g,""),Te.header.length);return Te}}},Ke.lheading=function(J){var fe=this.rules.block.lheading.exec(J);if(fe)return{type:"heading",raw:fe[0],depth:fe[2].charAt(0)==="="?1:2,text:fe[1]}},Ke.paragraph=function(J){var fe=this.rules.block.paragraph.exec(J);if(fe)return{type:"paragraph",raw:fe[0],text:fe[1].charAt(fe[1].length-1)===`
|
|
|
`?fe[1].slice(0,-1):fe[1]}},Ke.text=function(J){var fe=this.rules.block.text.exec(J);if(fe)return{type:"text",raw:fe[0],text:fe[0]}},Ke.escape=function(J){var fe=this.rules.inline.escape.exec(J);if(fe)return{type:"escape",raw:fe[0],text:S(fe[1])}},Ke.tag=function(J,fe,Te){var Be=this.rules.inline.tag.exec(J);if(Be)return!fe&&/^<a /i.test(Be[0])?fe=!0:fe&&/^<\/a>/i.test(Be[0])&&(fe=!1),!Te&&/^<(pre|code|kbd|script)(\s|>)/i.test(Be[0])?Te=!0:Te&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Be[0])&&(Te=!1),{type:this.options.sanitize?"text":"html",raw:Be[0],inLink:fe,inRawBlock:Te,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):S(Be[0]):Be[0]}},Ke.link=function(J){var fe=this.rules.inline.link.exec(J);if(fe){var Te=fe[2].trim();if(!this.options.pedantic&&/^</.test(Te)){if(!/>$/.test(Te))return;var Be=re(Te.slice(0,-1),"\\");if((Te.length-Be.length)%2===0)return}else{var G=Q(fe[2],"()");if(G>-1){var Ot=fe[0].indexOf("!")===0?5:4,Pe=Ot+fe[1].length+G;fe[2]=fe[2].substring(0,G),fe[0]=fe[0].substring(0,Pe).trim(),fe[3]=""}}var Yt=fe[2],mn="";if(this.options.pedantic){var wn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Yt);wn&&(Yt=wn[1],mn=wn[3])}else mn=fe[3]?fe[3].slice(1,-1):"";return Yt=Yt.trim(),/^</.test(Yt)&&(this.options.pedantic&&!/>$/.test(Te)?Yt=Yt.slice(1):Yt=Yt.slice(1,-1)),be(fe,{href:Yt&&Yt.replace(this.rules.inline._escapes,"$1"),title:mn&&mn.replace(this.rules.inline._escapes,"$1")},fe[0])}},Ke.reflink=function(J,fe){var Te;if((Te=this.rules.inline.reflink.exec(J))||(Te=this.rules.inline.nolink.exec(J))){var Be=(Te[2]||Te[1]).replace(/\s+/g," ");if(Be=fe[Be.toLowerCase()],!Be||!Be.href){var G=Te[0].charAt(0);return{type:"text",raw:G,text:G}}return be(Te,Be,Te[0])}},Ke.emStrong=function(J,fe,Te){Te===void 0&&(Te="");var Be=this.rules.inline.emStrong.lDelim.exec(J);if(Be&&!(Be[3]&&Te.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 G=Be[1]||Be[2]||"";if(!G||G&&(Te===""||this.rules.inline.punctuation.exec(Te))){var Ot=Be[0].length-1,Pe,Yt,mn=Ot,wn=0,Hn=Be[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Hn.lastIndex=0,fe=fe.slice(-1*J.length+Ot);(Be=Hn.exec(fe))!=null;)if(Pe=Be[1]||Be[2]||Be[3]||Be[4]||Be[5]||Be[6],!!Pe){if(Yt=Pe.length,Be[3]||Be[4]){mn+=Yt;continue}else if((Be[5]||Be[6])&&Ot%3&&!((Ot+Yt)%3)){wn+=Yt;continue}if(mn-=Yt,!(mn>0))return Yt=Math.min(Yt,Yt+mn+wn),Math.min(Ot,Yt)%2?{type:"em",raw:J.slice(0,Ot+Be.index+Yt+1),text:J.slice(1,Ot+Be.index+Yt)}:{type:"strong",raw:J.slice(0,Ot+Be.index+Yt+1),text:J.slice(2,Ot+Be.index+Yt-1)}}}}},Ke.codespan=function(J){var fe=this.rules.inline.code.exec(J);if(fe){var Te=fe[2].replace(/\n/g," "),Be=/[^ ]/.test(Te),G=/^ /.test(Te)&&/ $/.test(Te);return Be&&G&&(Te=Te.substring(1,Te.length-1)),Te=S(Te,!0),{type:"codespan",raw:fe[0],text:Te}}},Ke.br=function(J){var fe=this.rules.inline.br.exec(J);if(fe)return{type:"br",raw:fe[0]}},Ke.del=function(J){var fe=this.rules.inline.del.exec(J);if(fe)return{type:"del",raw:fe[0],text:fe[2]}},Ke.autolink=function(J,fe){var Te=this.rules.inline.autolink.exec(J);if(Te){var Be,G;return Te[2]==="@"?(Be=S(this.options.mangle?fe(Te[1]):Te[1]),G="mailto:"+Be):(Be=S(Te[1]),G=Be),{type:"link",raw:Te[0],text:Be,href:G,tokens:[{type:"text",raw:Be,text:Be}]}}},Ke.url=function(J,fe){var Te;if(Te=this.rules.inline.url.exec(J)){var Be,G;if(Te[2]==="@")Be=S(this.options.mangle?fe(Te[0]):Te[0]),G="mailto:"+Be;else{var Ot;do Ot=Te[0],Te[0]=this.rules.inline._backpedal.exec(Te[0])[0];while(Ot!==Te[0]);Be=S(Te[0]),Te[1]==="www."?G="http://"+Be:G=Be}return{type:"link",raw:Te[0],text:Be,href:G,tokens:[{type:"text",raw:Be,text:Be}]}}},Ke.inlineText=function(J,fe,Te){var Be=this.rules.inline.text.exec(J);if(Be){var G;return fe?G=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):S(Be[0]):Be[0]:G=S(this.options.smartypants?Te(Be[0]):Be[0]),{type:"text",raw:Be[0],text:G}}},Me}(),Je=ee.noopTest,et=ee.edit,xt=ee.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:Je,table:Je,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=xt({},gt),gt.gfm=xt({},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=xt({},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:Je,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 st={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Je,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:Je,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};st._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",st.punctuation=et(st.punctuation).replace(/punctuation/g,st._punctuation).getRegex(),st.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,st.escapedEmSt=/\\\*|\\_/g,st._comment=et(gt._comment).replace("(?:-->|$)","-->").getRegex(),st.emStrong.lDelim=et(st.emStrong.lDelim).replace(/punct/g,st._punctuation).getRegex(),st.emStrong.rDelimAst=et(st.emStrong.rDelimAst,"g").replace(/punct/g,st._punctuation).getRegex(),st.emStrong.rDelimUnd=et(st.emStrong.rDelimUnd,"g").replace(/punct/g,st._punctuation).getRegex(),st._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,st._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,st._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])?)+(?![-_])/,st.autolink=et(st.autolink).replace("scheme",st._scheme).replace("email",st._email).getRegex(),st._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,st.tag=et(st.tag).replace("comment",st._comment).replace("attribute",st._attribute).getRegex(),st._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,st._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,st._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,st.link=et(st.link).replace("label",st._label).replace("href",st._href).replace("title",st._title).getRegex(),st.reflink=et(st.reflink).replace("label",st._label).getRegex(),st.reflinkSearch=et(st.reflinkSearch,"g").replace("reflink",st.reflink).replace("nolink",st.nolink).getRegex(),st.normal=xt({},st),st.pedantic=xt({},st.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",st._label).getRegex(),reflink:et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",st._label).getRegex()}),st.gfm=xt({},st.normal,{escape:et(st.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),st.gfm.url=et(st.gfm.url,"i").replace("email",st.gfm._extended_email).getRegex(),st.breaks=xt({},st.gfm,{br:et(st.br).replace("{2,}","*").getRegex(),text:et(st.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var kt={block:gt,inline:st},Ft=tt,cn=Re.exports.defaults,Vt=kt.block,it=kt.inline,At=ee.repeatString;function oe(Me){return Me.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 me(Me){var Ke="",Ze,J,fe=Me.length;for(Ze=0;Ze<fe;Ze++)J=Me.charCodeAt(Ze),Math.random()>.5&&(J="x"+J.toString(16)),Ke+="&#"+J+";";return Ke}var k=function(){function Me(Ze){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ze||cn,this.options.tokenizer=this.options.tokenizer||new Ft,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var J={block:Vt.normal,inline:it.normal};this.options.pedantic?(J.block=Vt.pedantic,J.inline=it.pedantic):this.options.gfm&&(J.block=Vt.gfm,this.options.breaks?J.inline=it.breaks:J.inline=it.gfm),this.tokenizer.rules=J}Me.lex=function(J,fe){var Te=new Me(fe);return Te.lex(J)},Me.lexInline=function(J,fe){var Te=new Me(fe);return Te.inlineTokens(J)};var Ke=Me.prototype;return Ke.lex=function(J){return J=J.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(J,this.tokens,!0),this.inline(this.tokens),this.tokens},Ke.blockTokens=function(J,fe,Te){fe===void 0&&(fe=[]),Te===void 0&&(Te=!0),this.options.pedantic&&(J=J.replace(/^ +$/gm,""));for(var Be,G,Ot,Pe;J;){if(Be=this.tokenizer.space(J)){J=J.substring(Be.raw.length),Be.type&&fe.push(Be);continue}if(Be=this.tokenizer.code(J)){J=J.substring(Be.raw.length),Pe=fe[fe.length-1],Pe&&Pe.type==="paragraph"?(Pe.raw+=`
|
|
|
`+Be.raw,Pe.text+=`
|
|
|
`+Be.text):fe.push(Be);continue}if(Be=this.tokenizer.fences(J)){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Be=this.tokenizer.heading(J)){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Be=this.tokenizer.nptable(J)){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Be=this.tokenizer.hr(J)){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Be=this.tokenizer.blockquote(J)){J=J.substring(Be.raw.length),Be.tokens=this.blockTokens(Be.text,[],Te),fe.push(Be);continue}if(Be=this.tokenizer.list(J)){for(J=J.substring(Be.raw.length),Ot=Be.items.length,G=0;G<Ot;G++)Be.items[G].tokens=this.blockTokens(Be.items[G].text,[],!1);fe.push(Be);continue}if(Be=this.tokenizer.html(J)){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Te&&(Be=this.tokenizer.def(J))){J=J.substring(Be.raw.length),this.tokens.links[Be.tag]||(this.tokens.links[Be.tag]={href:Be.href,title:Be.title});continue}if(Be=this.tokenizer.table(J)){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Be=this.tokenizer.lheading(J)){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Te&&(Be=this.tokenizer.paragraph(J))){J=J.substring(Be.raw.length),fe.push(Be);continue}if(Be=this.tokenizer.text(J)){J=J.substring(Be.raw.length),Pe=fe[fe.length-1],Pe&&Pe.type==="text"?(Pe.raw+=`
|
|
|
`+Be.raw,Pe.text+=`
|
|
|
`+Be.text):fe.push(Be);continue}if(J){var Yt="Infinite loop on byte: "+J.charCodeAt(0);if(this.options.silent){console.error(Yt);break}else throw new Error(Yt)}}return fe},Ke.inline=function(J){var fe,Te,Be,G,Ot,Pe,Yt=J.length;for(fe=0;fe<Yt;fe++)switch(Pe=J[fe],Pe.type){case"paragraph":case"text":case"heading":{Pe.tokens=[],this.inlineTokens(Pe.text,Pe.tokens);break}case"table":{for(Pe.tokens={header:[],cells:[]},G=Pe.header.length,Te=0;Te<G;Te++)Pe.tokens.header[Te]=[],this.inlineTokens(Pe.header[Te],Pe.tokens.header[Te]);for(G=Pe.cells.length,Te=0;Te<G;Te++)for(Ot=Pe.cells[Te],Pe.tokens.cells[Te]=[],Be=0;Be<Ot.length;Be++)Pe.tokens.cells[Te][Be]=[],this.inlineTokens(Ot[Be],Pe.tokens.cells[Te][Be]);break}case"blockquote":{this.inline(Pe.tokens);break}case"list":{for(G=Pe.items.length,Te=0;Te<G;Te++)this.inline(Pe.items[Te].tokens);break}}return J},Ke.inlineTokens=function(J,fe,Te,Be){fe===void 0&&(fe=[]),Te===void 0&&(Te=!1),Be===void 0&&(Be=!1);var G,Ot,Pe=J,Yt,mn,wn;if(this.tokens.links){var Hn=Object.keys(this.tokens.links);if(Hn.length>0)for(;(Yt=this.tokenizer.rules.inline.reflinkSearch.exec(Pe))!=null;)Hn.includes(Yt[0].slice(Yt[0].lastIndexOf("[")+1,-1))&&(Pe=Pe.slice(0,Yt.index)+"["+At("a",Yt[0].length-2)+"]"+Pe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Yt=this.tokenizer.rules.inline.blockSkip.exec(Pe))!=null;)Pe=Pe.slice(0,Yt.index)+"["+At("a",Yt[0].length-2)+"]"+Pe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Yt=this.tokenizer.rules.inline.escapedEmSt.exec(Pe))!=null;)Pe=Pe.slice(0,Yt.index)+"++"+Pe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;J;){if(mn||(wn=""),mn=!1,G=this.tokenizer.escape(J)){J=J.substring(G.raw.length),fe.push(G);continue}if(G=this.tokenizer.tag(J,Te,Be)){J=J.substring(G.raw.length),Te=G.inLink,Be=G.inRawBlock;var $t=fe[fe.length-1];$t&&G.type==="text"&&$t.type==="text"?($t.raw+=G.raw,$t.text+=G.text):fe.push(G);continue}if(G=this.tokenizer.link(J)){J=J.substring(G.raw.length),G.type==="link"&&(G.tokens=this.inlineTokens(G.text,[],!0,Be)),fe.push(G);continue}if(G=this.tokenizer.reflink(J,this.tokens.links)){J=J.substring(G.raw.length);var qt=fe[fe.length-1];G.type==="link"?(G.tokens=this.inlineTokens(G.text,[],!0,Be),fe.push(G)):qt&&G.type==="text"&&qt.type==="text"?(qt.raw+=G.raw,qt.text+=G.text):fe.push(G);continue}if(G=this.tokenizer.emStrong(J,Pe,wn)){J=J.substring(G.raw.length),G.tokens=this.inlineTokens(G.text,[],Te,Be),fe.push(G);continue}if(G=this.tokenizer.codespan(J)){J=J.substring(G.raw.length),fe.push(G);continue}if(G=this.tokenizer.br(J)){J=J.substring(G.raw.length),fe.push(G);continue}if(G=this.tokenizer.del(J)){J=J.substring(G.raw.length),G.tokens=this.inlineTokens(G.text,[],Te,Be),fe.push(G);continue}if(G=this.tokenizer.autolink(J,me)){J=J.substring(G.raw.length),fe.push(G);continue}if(!Te&&(G=this.tokenizer.url(J,me))){J=J.substring(G.raw.length),fe.push(G);continue}if(G=this.tokenizer.inlineText(J,Be,oe)){J=J.substring(G.raw.length),G.raw.slice(-1)!=="_"&&(wn=G.raw.slice(-1)),mn=!0,Ot=fe[fe.length-1],Ot&&Ot.type==="text"?(Ot.raw+=G.raw,Ot.text+=G.text):fe.push(G);continue}if(J){var $e="Infinite loop on byte: "+J.charCodeAt(0);if(this.options.silent){console.error($e);break}else throw new Error($e)}}return fe},_(Me,null,[{key:"rules",get:function(){return{block:Vt,inline:it}}}]),Me}(),de=Re.exports.defaults,we=ee.cleanUrl,L=ee.escape,T=function(){function Me(Ze){this.options=Ze||de}var Ke=Me.prototype;return Ke.code=function(J,fe,Te){var Be=(fe||"").match(/\S*/)[0];if(this.options.highlight){var G=this.options.highlight(J,Be);G!=null&&G!==J&&(Te=!0,J=G)}return J=J.replace(/\n$/,"")+`
|
|
|
`,Be?'<pre><code class="'+this.options.langPrefix+L(Be,!0)+'">'+(Te?J:L(J,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(Te?J:L(J,!0))+`</code></pre>
|
|
|
`},Ke.blockquote=function(J){return`<blockquote>
|
|
|
`+J+`</blockquote>
|
|
|
`},Ke.html=function(J){return J},Ke.heading=function(J,fe,Te,Be){return this.options.headerIds?"<h"+fe+' id="'+this.options.headerPrefix+Be.slug(Te)+'">'+J+"</h"+fe+`>
|
|
|
`:"<h"+fe+">"+J+"</h"+fe+`>
|
|
|
`},Ke.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Ke.list=function(J,fe,Te){var Be=fe?"ol":"ul",G=fe&&Te!==1?' start="'+Te+'"':"";return"<"+Be+G+`>
|
|
|
`+J+"</"+Be+`>
|
|
|
`},Ke.listitem=function(J){return"<li>"+J+`</li>
|
|
|
`},Ke.checkbox=function(J){return"<input "+(J?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ke.paragraph=function(J){return"<p>"+J+`</p>
|
|
|
`},Ke.table=function(J,fe){return fe&&(fe="<tbody>"+fe+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+J+`</thead>
|
|
|
`+fe+`</table>
|
|
|
`},Ke.tablerow=function(J){return`<tr>
|
|
|
`+J+`</tr>
|
|
|
`},Ke.tablecell=function(J,fe){var Te=fe.header?"th":"td",Be=fe.align?"<"+Te+' align="'+fe.align+'">':"<"+Te+">";return Be+J+"</"+Te+`>
|
|
|
`},Ke.strong=function(J){return"<strong>"+J+"</strong>"},Ke.em=function(J){return"<em>"+J+"</em>"},Ke.codespan=function(J){return"<code>"+J+"</code>"},Ke.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ke.del=function(J){return"<del>"+J+"</del>"},Ke.link=function(J,fe,Te){if(J=we(this.options.sanitize,this.options.baseUrl,J),J===null)return Te;var Be='<a href="'+L(J)+'"';return fe&&(Be+=' title="'+fe+'"'),Be+=">"+Te+"</a>",Be},Ke.image=function(J,fe,Te){if(J=we(this.options.sanitize,this.options.baseUrl,J),J===null)return Te;var Be='<img src="'+J+'" alt="'+Te+'"';return fe&&(Be+=' title="'+fe+'"'),Be+=this.options.xhtml?"/>":">",Be},Ke.text=function(J){return J},Me}(),O=function(){function Me(){}var Ke=Me.prototype;return Ke.strong=function(J){return J},Ke.em=function(J){return J},Ke.codespan=function(J){return J},Ke.del=function(J){return J},Ke.html=function(J){return J},Ke.text=function(J){return J},Ke.link=function(J,fe,Te){return""+Te},Ke.image=function(J,fe,Te){return""+Te},Ke.br=function(){return""},Me}(),ue=function(){function Me(){this.seen={}}var Ke=Me.prototype;return Ke.serialize=function(J){return J.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Ke.getNextSafeSlug=function(J,fe){var Te=J,Be=0;if(this.seen.hasOwnProperty(Te)){Be=this.seen[J];do Be++,Te=J+"-"+Be;while(this.seen.hasOwnProperty(Te))}return fe||(this.seen[J]=Be,this.seen[Te]=0),Te},Ke.slug=function(J,fe){fe===void 0&&(fe={});var Te=this.serialize(J);return this.getNextSafeSlug(Te,fe.dryrun)},Me}(),he=T,Z=O,De=ue,Ue=Re.exports.defaults,Ae=ee.unescape,Ne=function(){function Me(Ze){this.options=Ze||Ue,this.options.renderer=this.options.renderer||new he,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Z,this.slugger=new De}Me.parse=function(J,fe){var Te=new Me(fe);return Te.parse(J)},Me.parseInline=function(J,fe){var Te=new Me(fe);return Te.parseInline(J)};var Ke=Me.prototype;return Ke.parse=function(J,fe){fe===void 0&&(fe=!0);var Te="",Be,G,Ot,Pe,Yt,mn,wn,Hn,$t,qt,$e,dt,Tt,Le,ve,rt,lt,Nt,Rt=J.length;for(Be=0;Be<Rt;Be++)switch(qt=J[Be],qt.type){case"space":continue;case"hr":{Te+=this.renderer.hr();continue}case"heading":{Te+=this.renderer.heading(this.parseInline(qt.tokens),qt.depth,Ae(this.parseInline(qt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Te+=this.renderer.code(qt.text,qt.lang,qt.escaped);continue}case"table":{for(Hn="",wn="",Pe=qt.header.length,G=0;G<Pe;G++)wn+=this.renderer.tablecell(this.parseInline(qt.tokens.header[G]),{header:!0,align:qt.align[G]});for(Hn+=this.renderer.tablerow(wn),$t="",Pe=qt.cells.length,G=0;G<Pe;G++){for(mn=qt.tokens.cells[G],wn="",Yt=mn.length,Ot=0;Ot<Yt;Ot++)wn+=this.renderer.tablecell(this.parseInline(mn[Ot]),{header:!1,align:qt.align[Ot]});$t+=this.renderer.tablerow(wn)}Te+=this.renderer.table(Hn,$t);continue}case"blockquote":{$t=this.parse(qt.tokens),Te+=this.renderer.blockquote($t);continue}case"list":{for($e=qt.ordered,dt=qt.start,Tt=qt.loose,Pe=qt.items.length,$t="",G=0;G<Pe;G++)ve=qt.items[G],rt=ve.checked,lt=ve.task,Le="",ve.task&&(Nt=this.renderer.checkbox(rt),Tt?ve.tokens.length>0&&ve.tokens[0].type==="text"?(ve.tokens[0].text=Nt+" "+ve.tokens[0].text,ve.tokens[0].tokens&&ve.tokens[0].tokens.length>0&&ve.tokens[0].tokens[0].type==="text"&&(ve.tokens[0].tokens[0].text=Nt+" "+ve.tokens[0].tokens[0].text)):ve.tokens.unshift({type:"text",text:Nt}):Le+=Nt),Le+=this.parse(ve.tokens,Tt),$t+=this.renderer.listitem(Le,lt,rt);Te+=this.renderer.list($t,$e,dt);continue}case"html":{Te+=this.renderer.html(qt.text);continue}case"paragraph":{Te+=this.renderer.paragraph(this.parseInline(qt.tokens));continue}case"text":{for($t=qt.tokens?this.parseInline(qt.tokens):qt.text;Be+1<Rt&&J[Be+1].type==="text";)qt=J[++Be],$t+=`
|
|
|
`+(qt.tokens?this.parseInline(qt.tokens):qt.text);Te+=fe?this.renderer.paragraph($t):$t;continue}default:{var zt='Token with "'+qt.type+'" type was not found.';if(this.options.silent){console.error(zt);return}else throw new Error(zt)}}return Te},Ke.parseInline=function(J,fe){fe=fe||this.renderer;var Te="",Be,G,Ot=J.length;for(Be=0;Be<Ot;Be++)switch(G=J[Be],G.type){case"escape":{Te+=fe.text(G.text);break}case"html":{Te+=fe.html(G.text);break}case"link":{Te+=fe.link(G.href,G.title,this.parseInline(G.tokens,fe));break}case"image":{Te+=fe.image(G.href,G.title,G.text);break}case"strong":{Te+=fe.strong(this.parseInline(G.tokens,fe));break}case"em":{Te+=fe.em(this.parseInline(G.tokens,fe));break}case"codespan":{Te+=fe.codespan(G.text);break}case"br":{Te+=fe.br();break}case"del":{Te+=fe.del(this.parseInline(G.tokens,fe));break}case"text":{Te+=fe.text(G.text);break}default:{var Pe='Token with "'+G.type+'" type was not found.';if(this.options.silent){console.error(Pe);return}else throw new Error(Pe)}}return Te},Me}(),We=k,Xe=Ne,qe=tt,ht=T,St=O,_t=ue,It=ee.merge,Ct=ee.checkSanitizeDeprecation,y=ee.escape,C=Re.exports.getDefaults,ot=Re.exports.changeDefaults,W=Re.exports.defaults;function Ce(Me,Ke,Ze){if(typeof Me=="undefined"||Me===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Me!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Me)+", string expected");if(typeof Ke=="function"&&(Ze=Ke,Ke=null),Ke=It({},Ce.defaults,Ke||{}),Ct(Ke),Ze){var J=Ke.highlight,fe;try{fe=We.lex(Me,Ke)}catch(Ot){return Ze(Ot)}var Te=function(Pe){var Yt;if(!Pe)try{Ke.walkTokens&&Ce.walkTokens(fe,Ke.walkTokens),Yt=Xe.parse(fe,Ke)}catch(mn){Pe=mn}return Ke.highlight=J,Pe?Ze(Pe):Ze(null,Yt)};if(!J||J.length<3||(delete Ke.highlight,!fe.length))return Te();var Be=0;Ce.walkTokens(fe,function(Ot){Ot.type==="code"&&(Be++,setTimeout(function(){J(Ot.text,Ot.lang,function(Pe,Yt){if(Pe)return Te(Pe);Yt!=null&&Yt!==Ot.text&&(Ot.text=Yt,Ot.escaped=!0),Be--,Be===0&&Te()})},0))}),Be===0&&Te();return}try{var G=We.lex(Me,Ke);return Ke.walkTokens&&Ce.walkTokens(G,Ke.walkTokens),Xe.parse(G,Ke)}catch(Ot){if(Ot.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Ke.silent)return"<p>An error occurred:</p><pre>"+y(Ot.message+"",!0)+"</pre>";throw Ot}}Ce.options=Ce.setOptions=function(Me){return It(Ce.defaults,Me),ot(Ce.defaults),Ce},Ce.getDefaults=C,Ce.defaults=W,Ce.use=function(Me){var Ke=It({},Me);if(Me.renderer&&function(){var J=Ce.defaults.renderer||new ht,fe=function(G){var Ot=J[G];J[G]=function(){for(var Pe=arguments.length,Yt=new Array(Pe),mn=0;mn<Pe;mn++)Yt[mn]=arguments[mn];var wn=Me.renderer[G].apply(J,Yt);return wn===!1&&(wn=Ot.apply(J,Yt)),wn}};for(var Te in Me.renderer)fe(Te);Ke.renderer=J}(),Me.tokenizer&&function(){var J=Ce.defaults.tokenizer||new qe,fe=function(G){var Ot=J[G];J[G]=function(){for(var Pe=arguments.length,Yt=new Array(Pe),mn=0;mn<Pe;mn++)Yt[mn]=arguments[mn];var wn=Me.tokenizer[G].apply(J,Yt);return wn===!1&&(wn=Ot.apply(J,Yt)),wn}};for(var Te in Me.tokenizer)fe(Te);Ke.tokenizer=J}(),Me.walkTokens){var Ze=Ce.defaults.walkTokens;Ke.walkTokens=function(J){Me.walkTokens(J),Ze&&Ze(J)}}Ce.setOptions(Ke)},Ce.walkTokens=function(Me,Ke){for(var Ze=te(Me),J;!(J=Ze()).done;){var fe=J.value;switch(Ke(fe),fe.type){case"table":{for(var Te=te(fe.tokens.header),Be;!(Be=Te()).done;){var G=Be.value;Ce.walkTokens(G,Ke)}for(var Ot=te(fe.tokens.cells),Pe;!(Pe=Ot()).done;)for(var Yt=Pe.value,mn=te(Yt),wn;!(wn=mn()).done;){var Hn=wn.value;Ce.walkTokens(Hn,Ke)}break}case"list":{Ce.walkTokens(fe.items,Ke);break}default:fe.tokens&&Ce.walkTokens(fe.tokens,Ke)}}},Ce.parseInline=function(Me,Ke){if(typeof Me=="undefined"||Me===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Me!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Me)+", string expected");Ke=It({},Ce.defaults,Ke||{}),Ct(Ke);try{var Ze=We.lexInline(Me,Ke);return Ke.walkTokens&&Ce.walkTokens(Ze,Ke.walkTokens),Xe.parseInline(Ze,Ke)}catch(J){if(J.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Ke.silent)return"<p>An error occurred:</p><pre>"+y(J.message+"",!0)+"</pre>";throw J}},Ce.Parser=Xe,Ce.parser=Xe.parse,Ce.Renderer=ht,Ce.TextRenderer=St,Ce.Lexer=We,Ce.lexer=We.lex,Ce.Tokenizer=qe,Ce.Slugger=_t,Ce.parse=Ce;var yn=Ce;return yn})},11690:function(rn){const nt=/[&<>"']/,_=/[&<>"']/g,P=/[<>"']|&(?!#?\w+;)/,N=/[<>"']|&(?!#?\w+;)/g,te={"&":"&","<":"<",">":">",'"':""","'":"'"},Re=X=>te[X];function V(X,ge){if(ge){if(nt.test(X))return X.replace(_,Re)}else if(P.test(X))return X.replace(N,Re);return X}const ce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function _e(X){return X.replace(ce,(ge,Ie)=>(Ie=Ie.toLowerCase(),Ie==="colon"?":":Ie.charAt(0)==="#"?Ie.charAt(1)==="x"?String.fromCharCode(parseInt(Ie.substring(2),16)):String.fromCharCode(+Ie.substring(1)):""))}const Ee=/(^|[^\[])\^/g;function o(X,ge){X=X.source||X,ge=ge||"";const Ie={replace:(Oe,He)=>(He=He.source||He,He=He.replace(Ee,"$1"),X=X.replace(Oe,He),Ie),getRegex:()=>new RegExp(X,ge)};return Ie}const R=/[^\w:]/g,M=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(X,ge,Ie){if(X){let Oe;try{Oe=decodeURIComponent(_e(Ie)).replace(R,"").toLowerCase()}catch(He){return null}if(Oe.indexOf("javascript:")===0||Oe.indexOf("vbscript:")===0||Oe.indexOf("data:")===0)return null}ge&&!M.test(Ie)&&(Ie=se(ge,Ie));try{Ie=encodeURI(Ie).replace(/%25/g,"%")}catch(Oe){return null}return Ie}const c={},w=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,Y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function se(X,ge){c[" "+X]||(w.test(X)?c[" "+X]=X+"/":c[" "+X]=ne(X,"/",!0)),X=c[" "+X];const Ie=X.indexOf(":")===-1;return ge.substring(0,2)==="//"?Ie?ge:X.replace(v,"$1")+ge:ge.charAt(0)==="/"?Ie?ge:X.replace(Y,"$1")+ge:X+ge}const K={exec:function(){}};function F(X){let ge=1,Ie,Oe;for(;ge<arguments.length;ge++){Ie=arguments[ge];for(Oe in Ie)Object.prototype.hasOwnProperty.call(Ie,Oe)&&(X[Oe]=Ie[Oe])}return X}function H(X,ge){const Ie=X.replace(/\|/g,(q,$,ae)=>{let ee=!1,ye=$;for(;--ye>=0&&ae[ye]==="\\";)ee=!ee;return ee?"|":" |"}),Oe=Ie.split(/ \|/);let He=0;if(Oe.length>ge)Oe.splice(ge);else for(;Oe.length<ge;)Oe.push("");for(;He<Oe.length;He++)Oe[He]=Oe[He].trim().replace(/\\\|/g,"|");return Oe}function ne(X,ge,Ie){const Oe=X.length;if(Oe===0)return"";let He=0;for(;He<Oe;){const q=X.charAt(Oe-He-1);if(q===ge&&!Ie)He++;else if(q!==ge&&Ie)He++;else break}return X.substr(0,Oe-He)}function b(X,ge){if(X.indexOf(ge[1])===-1)return-1;const Ie=X.length;let Oe=0,He=0;for(;He<Ie;He++)if(X[He]==="\\")He++;else if(X[He]===ge[0])Oe++;else if(X[He]===ge[1]&&(Oe--,Oe<0))return He;return-1}function A(X){X&&X.sanitize&&!X.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 B(X,ge){if(ge<1)return"";let Ie="";for(;ge>1;)ge&1&&(Ie+=X),ge>>=1,X+=X;return Ie+X}rn.exports={escape:V,unescape:_e,edit:o,cleanUrl:g,resolveUrl:se,noopTest:K,merge:F,splitCells:H,rtrim:ne,findClosingBracket:b,checkSanitizeDeprecation:A,repeatString:B}},75918:function(rn,nt,_){"use strict";_.d(nt,{Wi:function(){return ce},Z0:function(){return _e},aU:function(){return V},eZ:function(){return o},wY:function(){return Ee}});var P=_(4348),N=_(69323),te=_(13268),Re=function(R,M,g,c){function w(v){return v instanceof g?v:new g(function(Y){Y(v)})}return new(g||(g=Promise))(function(v,Y){function se(H){try{F(c.next(H))}catch(ne){Y(ne)}}function K(H){try{F(c.throw(H))}catch(ne){Y(ne)}}function F(H){H.done?v(H.value):w(H.value).then(se,K)}F((c=c.apply(R,M||[])).next())})};class V extends N.JT{constructor(M,g="",c="",w=!0,v){super(),this._onDidChange=this._register(new P.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=M,this._label=g,this._cssClass=c,this._enabled=w,this._actionCallback=v}get id(){return this._id}get label(){return this._label}set label(M){this._setLabel(M)}_setLabel(M){this._label!==M&&(this._label=M,this._onDidChange.fire({label:M}))}get tooltip(){return this._tooltip||""}set tooltip(M){this._setTooltip(M)}_setTooltip(M){this._tooltip!==M&&(this._tooltip=M,this._onDidChange.fire({tooltip:M}))}get class(){return this._cssClass}set class(M){this._setClass(M)}_setClass(M){this._cssClass!==M&&(this._cssClass=M,this._onDidChange.fire({class:M}))}get enabled(){return this._enabled}set enabled(M){this._setEnabled(M)}_setEnabled(M){this._enabled!==M&&(this._enabled=M,this._onDidChange.fire({enabled:M}))}get checked(){return this._checked}set checked(M){this._setChecked(M)}_setChecked(M){this._checked!==M&&(this._checked=M,this._onDidChange.fire({checked:M}))}run(M,g){return Re(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(M))})}}class ce extends N.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new P.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new P.Q5),this.onDidRun=this._onDidRun.event}run(M,g){return Re(this,void 0,void 0,function*(){if(!M.enabled)return;this._onBeforeRun.fire({action:M});let c;try{yield this.runAction(M,g)}catch(w){c=w}this._onDidRun.fire({action:M,error:c})})}runAction(M,g){return Re(this,void 0,void 0,function*(){yield M.run(g)})}}class _e extends V{constructor(M){super(_e.ID,M,M?"separator text":"separator"),this.checked=!1,this.enabled=!1}}_e.ID="vs.actions.separator";class Ee{constructor(M,g,c,w){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=M,this.label=g,this.class=w,this._actions=c}get actions(){return this._actions}dispose(){}run(){return Re(this,void 0,void 0,function*(){})}}class o extends V{constructor(){super(o.ID,te.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(rn,nt,_){"use strict";_.d(nt,{ok:function(){return P}});function P(N,te){if(!N)throw new Error(te?`Assertion failed (${te})`:"Assertion Failed")}},52615:function(rn,nt,_){"use strict";_.d(nt,{CM:function(){return V},JL:function(){return ce},dT:function(){return Ee},fK:function(){return Re},lA:function(){return _e}});var P=_(4348);class N{constructor(){this._icons=new Map,this._onDidRegister=new P.Q5}add(R){const M=this._icons.get(R.id);M?R.description?M.description=R.description:console.error(`Duplicate registration of codicon ${R.id}`):(this._icons.set(R.id,R),this._onDidRegister.fire(R))}get(R){return this._icons.get(R)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const te=new N,Re=te;function V(o,R){return new _e(o,R)}function ce(o){return o?o.replace(/\$\((.*?)\)/g,(R,M)=>` ${M} `).trim():""}class _e{constructor(R,M,g){this.id=R,this.definition=M,this.description=g,te.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var Ee;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const R=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function M(w){if(w instanceof _e)return["codicon","codicon-"+w.id];const v=R.exec(w.id);if(!v)return M(_e.error);let[,Y,se]=v;const K=["codicon","codicon-"+Y];return se&&K.push("codicon-modifier-"+se.substr(1)),K}o.asClassNameArray=M;function g(w){return M(w).join(" ")}o.asClassName=g;function c(w){return"."+M(w).join(".")}o.asCSSSelector=c})(Ee||(Ee={})),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"})}(_e||(_e={}))},79881:function(rn,nt,_){"use strict";_.d(nt,{B8:function(){return M},Cp:function(){return Re},F0:function(){return Ee},L6:function(){return R},VV:function(){return _e},b1:function(){return o},dL:function(){return te},ri:function(){return V}});class P{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?new Error(c.message+`
|
|
|
|
|
|
`+c.stack):c},0)}}emit(c){this.listeners.forEach(w=>{w(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const N=new P;function te(g){_e(g)||N.onUnexpectedError(g)}function Re(g){_e(g)||N.onUnexpectedExternalError(g)}function V(g){if(g instanceof Error){let{name:c,message:w}=g;const v=g.stacktrace||g.stack;return{$isError:!0,name:c,message:w,stack:v}}return g}const ce="Canceled";function _e(g){return g instanceof Error&&g.name===ce&&g.message===ce}function Ee(){const g=new Error(ce);return g.name=g.message,g}function o(g){return g?new Error(`Illegal argument: ${g}`):new Error("Illegal argument")}function R(g){return g?new Error(`Illegal state: ${g}`):new Error("Illegal state")}class M extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}},4348:function(rn,nt,_){"use strict";_.d(nt,{D0:function(){return M},E7:function(){return g},K3:function(){return R},Q5:function(){return o},ZD:function(){return c},ju:function(){return V}});var P=_(79881),N=_(69323),te=_(34502),Re=_(95830),V;(function(w){w.None=()=>N.JT.None;function v(ae){return(ee,ye=null,re)=>{let x=!1,S;return S=ae(Q=>{if(!x)return S?S.dispose():x=!0,ee.call(ye,Q)},null,re),x&&S.dispose(),S}}w.once=v;function Y(ae,ee){return b((ye,re=null,x)=>ae(S=>ye.call(re,ee(S)),null,x))}w.map=Y;function se(ae,ee){return b((ye,re=null,x)=>ae(S=>{ee(S),ye.call(re,S)},null,x))}w.forEach=se;function K(ae,ee){return b((ye,re=null,x)=>ae(S=>ee(S)&&ye.call(re,S),null,x))}w.filter=K;function F(ae){return ae}w.signal=F;function H(...ae){return(ee,ye=null,re)=>(0,N.F8)(...ae.map(x=>x(S=>ee.call(ye,S),null,re)))}w.any=H;function ne(ae,ee,ye){let re=ye;return Y(ae,x=>(re=ee(re,x),re))}w.reduce=ne;function b(ae){let ee;const ye=new o({onFirstListenerAdd(){ee=ae(ye.fire,ye)},onLastListenerRemove(){ee.dispose()}});return ye.event}function A(ae,ee,ye=100,re=!1,x){let S,Q,be,Ve=0;const tt=new o({leakWarningThreshold:x,onFirstListenerAdd(){S=ae(Je=>{Ve++,Q=ee(Q,Je),re&&!be&&(tt.fire(Q),Q=void 0),clearTimeout(be),be=setTimeout(()=>{const et=Q;Q=void 0,be=void 0,(!re||Ve>1)&&tt.fire(et),Ve=0},ye)})},onLastListenerRemove(){S.dispose()}});return tt.event}w.debounce=A;function B(ae,ee=(ye,re)=>ye===re){let ye=!0,re;return K(ae,x=>{const S=ye||!ee(x,re);return ye=!1,re=x,S})}w.latch=B;function X(ae,ee){return[w.filter(ae,ee),w.filter(ae,ye=>!ee(ye))]}w.split=X;function ge(ae,ee=!1,ye=[]){let re=ye.slice(),x=ae(be=>{re?re.push(be):Q.fire(be)});const S=()=>{re&&re.forEach(be=>Q.fire(be)),re=null},Q=new o({onFirstListenerAdd(){x||(x=ae(be=>Q.fire(be)))},onFirstListenerDidAdd(){re&&(ee?setTimeout(S):S())},onLastListenerRemove(){x&&x.dispose(),x=null}});return Q.event}w.buffer=ge;class Ie{constructor(ee){this.event=ee}map(ee){return new Ie(Y(this.event,ee))}forEach(ee){return new Ie(se(this.event,ee))}filter(ee){return new Ie(K(this.event,ee))}reduce(ee,ye){return new Ie(ne(this.event,ee,ye))}latch(){return new Ie(B(this.event))}debounce(ee,ye=100,re=!1,x){return new Ie(A(this.event,ee,ye,re,x))}on(ee,ye,re){return this.event(ee,ye,re)}once(ee,ye,re){return v(this.event)(ee,ye,re)}}function Oe(ae){return new Ie(ae)}w.chain=Oe;function He(ae,ee,ye=re=>re){const re=(...be)=>Q.fire(ye(...be)),x=()=>ae.on(ee,re),S=()=>ae.removeListener(ee,re),Q=new o({onFirstListenerAdd:x,onLastListenerRemove:S});return Q.event}w.fromNodeEventEmitter=He;function q(ae,ee,ye=re=>re){const re=(...be)=>Q.fire(ye(...be)),x=()=>ae.addEventListener(ee,re),S=()=>ae.removeEventListener(ee,re),Q=new o({onFirstListenerAdd:x,onLastListenerRemove:S});return Q.event}w.fromDOMEventEmitter=q;function $(ae){return new Promise(ee=>v(ae)(ee))}w.toPromise=$})(V||(V={}));class ce{constructor(v){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${v}_${ce._idPool++}`}start(v){this._stopWatch=new Re.G(!0),this._listenerCount=v}stop(){if(this._stopWatch){const v=this._stopWatch.elapsed();this._elapsedOverall+=v,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${v.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}ce._idPool=0;let _e=-1;class Ee{constructor(v,Y=Math.random().toString(18).slice(2,5)){this.customThreshold=v,this.name=Y,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(v){let Y=_e;if(typeof this.customThreshold=="number"&&(Y=this.customThreshold),Y<=0||v<Y)return;this._stacks||(this._stacks=new Map);const se=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),K=this._stacks.get(se)||0;if(this._stacks.set(se,K+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=Y*.5;let F,H=0;for(const[ne,b]of this._stacks)(!F||H<b)&&(F=ne,H=b);console.warn(`[${this.name}] potential listener LEAK detected, having ${v} listeners already. MOST frequent listener (${H}):`),console.warn(F)}return()=>{const F=this._stacks.get(se)||0;this._stacks.set(se,F-1)}}}class o{constructor(v){var Y;this._disposed=!1,this._options=v,this._leakageMon=_e>0?new Ee(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((Y=this._options)===null||Y===void 0)&&Y._profName?new ce(this._options._profName):void 0}get event(){return this._event||(this._event=(v,Y,se)=>{var K;this._listeners||(this._listeners=new te.S);const F=this._listeners.isEmpty();F&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const H=this._listeners.push(Y?[v,Y]:v);F&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,v,Y);const ne=(K=this._leakageMon)===null||K===void 0?void 0:K.check(this._listeners.size),b=(0,N.OF)(()=>{ne&&ne(),this._disposed||(H(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return se instanceof N.SL?se.add(b):Array.isArray(se)&&se.push(b),b}),this._event}fire(v){var Y,se;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new te.S);for(let K of this._listeners)this._deliveryQueue.push([K,v]);for((Y=this._perfMon)===null||Y===void 0||Y.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[K,F]=this._deliveryQueue.shift();try{typeof K=="function"?K.call(void 0,F):K[0].call(K[1],F)}catch(H){(0,P.dL)(H)}}(se=this._perfMon)===null||se===void 0||se.stop()}}dispose(){var v,Y,se,K,F;this._disposed||(this._disposed=!0,(v=this._listeners)===null||v===void 0||v.clear(),(Y=this._deliveryQueue)===null||Y===void 0||Y.clear(),(K=(se=this._options)===null||se===void 0?void 0:se.onLastListenerRemove)===null||K===void 0||K.call(se),(F=this._leakageMon)===null||F===void 0||F.dispose())}}class R extends o{constructor(v){super(v),this._isPaused=0,this._eventQueue=new te.S,this._mergeFn=v==null?void 0:v.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const v=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(v))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(v){this._listeners&&(this._isPaused!==0?this._eventQueue.push(v):super.fire(v))}}class M extends R{constructor(v){var Y;super(v),this._delay=(Y=v.delay)!==null&&Y!==void 0?Y:100}fire(v){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(v)}}class g{constructor(){this.buffers=[]}wrapEvent(v){return(Y,se,K)=>v(F=>{const H=this.buffers[this.buffers.length-1];H?H.push(()=>Y.call(se,F)):Y.call(se,F)},void 0,K)}bufferEvents(v){const Y=[];this.buffers.push(Y);const se=v();return this.buffers.pop(),Y.forEach(K=>K()),se}}class c{constructor(){this.listening=!1,this.inputEvent=V.None,this.inputEventListener=N.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(v){this.inputEvent=v,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=v(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(rn,nt,_){"use strict";_.d(nt,{I:function(){return P}});function P(N){const te=this;let Re=!1,V;return function(){return Re||(Re=!0,V=N.apply(te,arguments)),V}}},88226:function(rn,nt,_){"use strict";_.d(nt,{$:function(){return P}});var P;(function(N){function te(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"}N.is=te;const Re=Object.freeze([]);function V(){return Re}N.empty=V;function*ce(H){yield H}N.single=ce;function _e(H){return H||Re}N.from=_e;function Ee(H){return!H||H[Symbol.iterator]().next().done===!0}N.isEmpty=Ee;function o(H){return H[Symbol.iterator]().next().value}N.first=o;function R(H,ne){for(const b of H)if(ne(b))return!0;return!1}N.some=R;function M(H,ne){for(const b of H)if(ne(b))return b}N.find=M;function*g(H,ne){for(const b of H)ne(b)&&(yield b)}N.filter=g;function*c(H,ne){let b=0;for(const A of H)yield ne(A,b++)}N.map=c;function*w(...H){for(const ne of H)for(const b of ne)yield b}N.concat=w;function*v(H){for(const ne of H)for(const b of ne)yield b}N.concatNested=v;function Y(H,ne,b){let A=b;for(const B of H)A=ne(A,B);return A}N.reduce=Y;function*se(H,ne,b=H.length){for(ne<0&&(ne+=H.length),b<0?b+=H.length:b>H.length&&(b=H.length);ne<b;ne++)yield H[ne]}N.slice=se;function K(H,ne=Number.POSITIVE_INFINITY){const b=[];if(ne===0)return[b,H];const A=H[Symbol.iterator]();for(let B=0;B<ne;B++){const X=A.next();if(X.done)return[b,N.empty()];b.push(X.value)}return[b,{[Symbol.iterator](){return A}}]}N.consume=K;function F(H,ne,b=(A,B)=>A===B){const A=H[Symbol.iterator](),B=ne[Symbol.iterator]();for(;;){const X=A.next(),ge=B.next();if(X.done!==ge.done)return!1;if(X.done)return!0;if(!b(X.value,ge.value))return!1}}N.equals=F})(P||(P={}))},69323:function(rn,nt,_){"use strict";_.d(nt,{B9:function(){return c},F8:function(){return w},JT:function(){return se},Jz:function(){return F},OF:function(){return v},SL:function(){return Y},Wf:function(){return g},XK:function(){return K},dk:function(){return R}});var P=_(17845),N=_(88226);const te=!1;let Re=null;function V(H){Re=H}if(te){const H="__is_disposable_tracked__";V(new class{trackDisposable(ne){const b=new Error("Potentially leaked disposable").stack;setTimeout(()=>{ne[H]||console.log(b)},3e3)}setParent(ne,b){if(ne&&ne!==se.None)try{ne[H]=!0}catch(A){}}markAsDisposed(ne){if(ne&&ne!==se.None)try{ne[H]=!0}catch(b){}}markAsSingleton(ne){}})}function ce(H){return Re==null||Re.trackDisposable(H),H}function _e(H){Re==null||Re.markAsDisposed(H)}function Ee(H,ne){Re==null||Re.setParent(H,ne)}function o(H,ne){if(Re)for(const b of H)Re.setParent(b,ne)}function R(H){return Re==null||Re.markAsSingleton(H),H}class M extends Error{constructor(ne){super(`Encountered errors while disposing of store. Errors: [${ne.join(", ")}]`),this.errors=ne}}function g(H){return typeof H.dispose=="function"&&H.dispose.length===0}function c(H){if(N.$.is(H)){let ne=[];for(const b of H)if(b)try{b.dispose()}catch(A){ne.push(A)}if(ne.length===1)throw ne[0];if(ne.length>1)throw new M(ne);return Array.isArray(H)?[]:H}else if(H)return H.dispose(),H}function w(...H){const ne=v(()=>c(H));return o(H,ne),ne}function v(H){const ne=ce({dispose:(0,P.I)(()=>{_e(ne),H()})});return ne}class Y{constructor(){this._toDispose=new Set,this._isDisposed=!1,ce(this)}dispose(){this._isDisposed||(_e(this),this._isDisposed=!0,this.clear())}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(ne){if(!ne)return ne;if(ne===this)throw new Error("Cannot register a disposable on itself!");return Ee(ne,this),this._isDisposed?Y.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(ne),ne}}Y.DISABLE_DISPOSED_WARNING=!1;class se{constructor(){this._store=new Y,ce(this),Ee(this._store,this)}dispose(){_e(this),this._store.dispose()}_register(ne){if(ne===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(ne)}}se.None=Object.freeze({dispose(){}});class K{constructor(){this._isDisposed=!1,ce(this)}get value(){return this._isDisposed?void 0:this._value}set value(ne){var b;this._isDisposed||ne===this._value||((b=this._value)===null||b===void 0||b.dispose(),ne&&Ee(ne,this),this._value=ne)}clear(){this.value=void 0}dispose(){var ne;this._isDisposed=!0,_e(this),(ne=this._value)===null||ne===void 0||ne.dispose(),this._value=void 0}clearAndLeak(){const ne=this._value;return this._value=void 0,ne&&Ee(ne,null),ne}}class F{constructor(ne){this.object=ne}dispose(){}}},34502:function(rn,nt,_){"use strict";_.d(nt,{S:function(){return N}});class P{constructor(Re){this.element=Re,this.next=P.Undefined,this.prev=P.Undefined}}P.Undefined=new P(void 0);class N{constructor(){this._first=P.Undefined,this._last=P.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===P.Undefined}clear(){let Re=this._first;for(;Re!==P.Undefined;){const V=Re.next;Re.prev=P.Undefined,Re.next=P.Undefined,Re=V}this._first=P.Undefined,this._last=P.Undefined,this._size=0}unshift(Re){return this._insert(Re,!1)}push(Re){return this._insert(Re,!0)}_insert(Re,V){const ce=new P(Re);if(this._first===P.Undefined)this._first=ce,this._last=ce;else if(V){const Ee=this._last;this._last=ce,ce.prev=Ee,Ee.next=ce}else{const Ee=this._first;this._first=ce,ce.next=Ee,Ee.prev=ce}this._size+=1;let _e=!1;return()=>{_e||(_e=!0,this._remove(ce))}}shift(){if(this._first!==P.Undefined){const Re=this._first.element;return this._remove(this._first),Re}}pop(){if(this._last!==P.Undefined){const Re=this._last.element;return this._remove(this._last),Re}}_remove(Re){if(Re.prev!==P.Undefined&&Re.next!==P.Undefined){const V=Re.prev;V.next=Re.next,Re.next.prev=V}else Re.prev===P.Undefined&&Re.next===P.Undefined?(this._first=P.Undefined,this._last=P.Undefined):Re.next===P.Undefined?(this._last=this._last.prev,this._last.next=P.Undefined):Re.prev===P.Undefined&&(this._first=this._first.next,this._first.prev=P.Undefined);this._size-=1}*[Symbol.iterator](){let Re=this._first;for(;Re!==P.Undefined;)yield Re.element,Re=Re.next}}},23345:function(rn,nt,_){"use strict";_.d(nt,{$L:function(){return A},ED:function(){return F},IJ:function(){return ne},OS:function(){return Ie},WE:function(){return X},dz:function(){return H},gn:function(){return B},li:function(){return v},r:function(){return q},tY:function(){return b},xS:function(){return ge}});var P=_(97671),N;const te="en";let Re=!1,V=!1,ce=!1,_e=!1,Ee=!1,o=!1,R=!1,M,g=null,c=null,w;const v=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let Y;typeof v.vscode!="undefined"&&typeof v.vscode.process!="undefined"?Y=v.vscode.process:typeof P!="undefined"&&(Y=P);const se=typeof((N=Y==null?void 0:Y.versions)===null||N===void 0?void 0:N.electron)=="string"&&Y.type==="renderer";if(typeof navigator=="object"&&!se)w=navigator.userAgent,Re=w.indexOf("Windows")>=0,V=w.indexOf("Macintosh")>=0,R=(w.indexOf("Macintosh")>=0||w.indexOf("iPad")>=0||w.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ce=w.indexOf("Linux")>=0,o=!0,M=navigator.language,g=M;else if(typeof Y=="object"){Re=Y.platform==="win32",V=Y.platform==="darwin",ce=Y.platform==="linux",_e=ce&&!!Y.env.SNAP&&!!Y.env.SNAP_REVISION,M=te,g=te;const $=Y.env.VSCODE_NLS_CONFIG;if($)try{const ae=JSON.parse($),ee=ae.availableLanguages["*"];M=ae.locale,g=ee||te,c=ae._translationsConfigFile}catch(ae){}Ee=!0}else console.error("Unable to resolve platform.");let K=0;V?K=1:Re?K=3:ce&&(K=2);const F=Re,H=V,ne=ce,b=Ee,A=o,B=R,X=w,ge=function(){if(v.setImmediate)return v.setImmediate.bind(v);if(typeof v.postMessage=="function"&&!v.importScripts){let ee=[];v.addEventListener("message",re=>{if(re.data&&re.data.vscodeSetImmediateId)for(let x=0,S=ee.length;x<S;x++){const Q=ee[x];if(Q.id===re.data.vscodeSetImmediateId){ee.splice(x,1),Q.callback();return}}});let ye=0;return re=>{const x=++ye;ee.push({id:x,callback:re}),v.postMessage({vscodeSetImmediateId:x},"*")}}if(typeof(Y==null?void 0:Y.nextTick)=="function")return Y.nextTick.bind(Y);const ae=Promise.resolve();return ee=>ae.then(ee)}(),Ie=V||R?2:Re?1:3;let Oe=!0,He=!1;function q(){if(!He){He=!0;const $=new Uint8Array(2);$[0]=1,$[1]=2,Oe=new Uint16Array($.buffer)[0]===513}return Oe}},95830:function(rn,nt,_){"use strict";_.d(nt,{G:function(){return te}});var P=_(23345);const N=P.li.performance&&typeof P.li.performance.now=="function";class te{constructor(V){this._highResolution=N&&V,this._startTime=this._now(),this._stopTime=-1}static create(V=!0){return new te(V)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?P.li.performance.now():Date.now()}}},82983:function(rn,nt,_){"use strict";_.d(nt,{$i:function(){return Ve},C8:function(){return gt},GF:function(){return M},HO:function(){return ye},IO:function(){return g},K7:function(){return xt},Kw:function(){return Ft},LC:function(){return v},Mh:function(){return ge},P1:function(){return Ie},PJ:function(){return cn},Qe:function(){return tt},R1:function(){return R},RP:function(){return Q},S6:function(){return Vt},TT:function(){return F},Ut:function(){return x},V8:function(){return Y},WU:function(){return te},YK:function(){return He},YU:function(){return Re},ZG:function(){return Oe},ZH:function(){return $},ab:function(){return Je},c1:function(){return st},df:function(){return A},ec:function(){return V},fi:function(){return it},fy:function(){return ce},j3:function(){return _e},j_:function(){return ne},m5:function(){return P},mK:function(){return b},mr:function(){return c},oH:function(){return me},oL:function(){return Ee},ok:function(){return X},ow:function(){return se},qq:function(){return B},qu:function(){return K},rL:function(){return q},uS:function(){return kt},un:function(){return o},uq:function(){return w},vH:function(){return ee},xe:function(){return et},zY:function(){return H}});function P(L){return!L||typeof L!="string"?!0:L.trim().length===0}const N=/{(\d+)}/g;function te(L,...T){return T.length===0?L:L.replace(N,function(O,ue){const he=parseInt(ue,10);return isNaN(he)||he<0||he>=T.length?O:T[he]})}function Re(L){return L.replace(/[<>&]/g,function(T){switch(T){case"<":return"<";case">":return">";case"&":return"&";default:return T}})}function V(L){return L.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function ce(L,T=" "){const O=_e(L,T);return Ee(O,T)}function _e(L,T){if(!L||!T)return L;const O=T.length;if(O===0||L.length===0)return L;let ue=0;for(;L.indexOf(T,ue)===ue;)ue=ue+O;return L.substring(ue)}function Ee(L,T){if(!L||!T)return L;const O=T.length,ue=L.length;if(O===0||ue===0)return L;let he=ue,Z=-1;for(;Z=L.lastIndexOf(T,he-1),!(Z===-1||Z+O!==he);){if(Z===0)return"";he=Z}return L.substring(0,he)}function o(L){return L.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function R(L){return L.replace(/\*/g,"")}function M(L,T,O={}){if(!L)throw new Error("Cannot create regex from empty string");T||(L=V(L)),O.wholeWord&&(/\B/.test(L.charAt(0))||(L="\\b"+L),/\B/.test(L.charAt(L.length-1))||(L=L+"\\b"));let ue="";return O.global&&(ue+="g"),O.matchCase||(ue+="i"),O.multiline&&(ue+="m"),O.unicode&&(ue+="u"),new RegExp(L,ue)}function g(L){return L.source==="^"||L.source==="^$"||L.source==="$"||L.source==="^\\s*$"?!1:!!(L.exec("")&&L.lastIndex===0)}function c(L){return(L.global?"g":"")+(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")}function w(L){return L.split(/\r\n|\r|\n/)}function v(L){for(let T=0,O=L.length;T<O;T++){const ue=L.charCodeAt(T);if(ue!==32&&ue!==9)return T}return-1}function Y(L,T=0,O=L.length){for(let ue=T;ue<O;ue++){const he=L.charCodeAt(ue);if(he!==32&&he!==9)return L.substring(T,ue)}return L.substring(T,O)}function se(L,T=L.length-1){for(let O=T;O>=0;O--){const ue=L.charCodeAt(O);if(ue!==32&&ue!==9)return O}return-1}function K(L,T){return L<T?-1:L>T?1:0}function F(L,T,O=0,ue=L.length,he=0,Z=T.length){for(;O<ue&&he<Z;O++,he++){let Ae=L.charCodeAt(O),Ne=T.charCodeAt(he);if(Ae<Ne)return-1;if(Ae>Ne)return 1}const De=ue-O,Ue=Z-he;return De<Ue?-1:De>Ue?1:0}function H(L,T){return ne(L,T,0,L.length,0,T.length)}function ne(L,T,O=0,ue=L.length,he=0,Z=T.length){for(;O<ue&&he<Z;O++,he++){let Ae=L.charCodeAt(O),Ne=T.charCodeAt(he);if(Ae===Ne)continue;if(Ae>=128||Ne>=128)return F(L.toLowerCase(),T.toLowerCase(),O,ue,he,Z);b(Ae)&&(Ae-=32),b(Ne)&&(Ne-=32);const We=Ae-Ne;if(We!==0)return We}const De=ue-O,Ue=Z-he;return De<Ue?-1:De>Ue?1:0}function b(L){return L>=97&&L<=122}function A(L){return L>=65&&L<=90}function B(L,T){return L.length===T.length&&ne(L,T)===0}function X(L,T){const O=T.length;return T.length>L.length?!1:ne(L,T,0,O)===0}function ge(L,T){let O,ue=Math.min(L.length,T.length);for(O=0;O<ue;O++)if(L.charCodeAt(O)!==T.charCodeAt(O))return O;return ue}function Ie(L,T){let O,ue=Math.min(L.length,T.length);const he=L.length-1,Z=T.length-1;for(O=0;O<ue;O++)if(L.charCodeAt(he-O)!==T.charCodeAt(Z-O))return O;return ue}function Oe(L){return 55296<=L&&L<=56319}function He(L){return 56320<=L&&L<=57343}function q(L,T){return(L-55296<<10)+(T-56320)+65536}function $(L,T,O){const ue=L.charCodeAt(O);if(Oe(ue)&&O+1<T){const he=L.charCodeAt(O+1);if(He(he))return q(ue,he)}return ue}function ae(L,T){const O=L.charCodeAt(T-1);if(He(O)&&T>1){const ue=L.charCodeAt(T-2);if(Oe(ue))return q(ue,O)}return O}function ee(L,T){const O=At.getInstance(),ue=T,he=L.length,Z=$(L,he,T);T+=Z>=65536?2:1;let De=O.getGraphemeBreakType(Z);for(;T<he;){const Ue=$(L,he,T),Ae=O.getGraphemeBreakType(Ue);if(it(De,Ae))break;T+=Ue>=65536?2:1,De=Ae}return T-ue}function ye(L,T){const O=At.getInstance(),ue=T,he=ae(L,T);T-=he>=65536?2:1;let Z=O.getGraphemeBreakType(he);for(;T>0;){const De=ae(L,T),Ue=O.getGraphemeBreakType(De);if(it(Ue,Z))break;T-=De>=65536?2:1,Z=Ue}return ue-T}const re=/(?:[\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 x(L){return re.test(L)}const S=/(?:[\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 Q(L){return S.test(L)}const be=/^[\t\n\r\x20-\x7E]*$/;function Ve(L){return be.test(L)}const tt=/[\u2028\u2029]/;function Je(L){return tt.test(L)}function et(L){for(let T=0,O=L.length;T<O;T++)if(xt(L.charCodeAt(T)))return!0;return!1}function xt(L){return L=+L,L>=11904&&L<=55215||L>=63744&&L<=64255||L>=65281&&L<=65374}function gt(L){return L>=127462&&L<=127487||L===8986||L===8987||L===9200||L===9203||L>=9728&&L<=10175||L===11088||L===11093||L>=127744&&L<=128591||L>=128640&&L<=128764||L>=128992&&L<=129003||L>=129280&&L<=129535||L>=129648&&L<=129750}const st="\uFEFF";function kt(L){return!!(L&&L.length>0&&L.charCodeAt(0)===65279)}function Ft(L,T=!1){return L?(T&&(L=L.replace(/\\./g,"")),L.toLowerCase()!==L):!1}function cn(L){return L=L%(2*26),L<26?String.fromCharCode(97+L):String.fromCharCode(65+L-26)}function Vt(L){return At.getInstance().getGraphemeBreakType(L)}function it(L,T){return L===0?T!==5&&T!==7:L===2&&T===3?!1:L===4||L===2||L===3||T===4||T===2||T===3?!0:!(L===8&&(T===8||T===9||T===11||T===12)||(L===11||L===9)&&(T===9||T===10)||(L===12||L===10)&&T===10||T===5||T===13||T===7||L===1||L===13&&T===14||L===6&&T===6)}class At{constructor(){this._data=oe()}static getInstance(){return At._INSTANCE||(At._INSTANCE=new At),At._INSTANCE}getGraphemeBreakType(T){if(T<32)return T===10?3:T===13?2:4;if(T<127)return 0;const O=this._data,ue=O.length/3;let he=1;for(;he<=ue;)if(T<O[3*he])he=2*he;else if(T>O[3*he+1])he=2*he+1;else return O[3*he+2];return 0}}At._INSTANCE=null;function oe(){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 me(L,T){if(L===0)return 0;const O=k(L,T);if(O!==void 0)return O;const ue=ae(T,L);return L-=de(ue),L}function k(L,T){let O=ae(T,L);for(L-=de(O);we(O)||O===65039||O===8419;){if(L===0)return;O=ae(T,L),L-=de(O)}if(gt(O)){if(L>=0){const ue=ae(T,L);ue===8205&&(L-=de(ue))}return L}}function de(L){return L>=65536?2:1}function we(L){return 127995<=L&&L<=127999}},72999:function(rn,nt,_){"use strict";_.d(nt,{$E:function(){return v},$K:function(){return _e},D8:function(){return g},HD:function(){return N},IU:function(){return Y},Jp:function(){return Ee},Kn:function(){return te},cW:function(){return R},f6:function(){return se},hj:function(){return Re},jn:function(){return V},kJ:function(){return P},mf:function(){return M},o8:function(){return ce},p_:function(){return o},vE:function(){return K}});function P(F){return Array.isArray(F)}function N(F){return typeof F=="string"}function te(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)&&!(F instanceof RegExp)&&!(F instanceof Date)}function Re(F){return typeof F=="number"&&!isNaN(F)}function V(F){return F===!0||F===!1}function ce(F){return typeof F=="undefined"}function _e(F){return!Ee(F)}function Ee(F){return ce(F)||F===null}function o(F,H){if(!F)throw new Error(H?`Unexpected type, expected '${H}'`:"Unexpected type")}function R(F){if(Ee(F))throw new Error("Assertion Failed: argument is undefined or null");return F}function M(F){return typeof F=="function"}function g(F,H){const ne=Math.min(F.length,H.length);for(let b=0;b<ne;b++)c(F[b],H[b])}function c(F,H){if(N(H)){if(typeof F!==H)throw new Error(`argument does not match constraint: typeof ${H}`)}else if(M(H)){try{if(F instanceof H)return}catch(ne){}if(!Ee(F)&&F.constructor===H||H.length===1&&H.call(void 0,F)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function w(F){let H=[],ne=Object.getPrototypeOf(F);for(;Object.prototype!==ne;)H=H.concat(Object.getOwnPropertyNames(ne)),ne=Object.getPrototypeOf(ne);return H}function v(F){const H=[];for(const ne of w(F))typeof F[ne]=="function"&&H.push(ne);return H}function Y(F,H){const ne=A=>function(){const B=Array.prototype.slice.call(arguments,0);return H(A,B)};let b={};for(const A of F)b[A]=ne(A);return b}function se(F){return F===null?void 0:F}function K(F,H="Unreachable"){throw new Error(H)}},13268:function(rn,nt,_){"use strict";_.d(nt,{N:function(){return N}});function P(te,Re){let V;return Re.length===0?V=te:V=te.replace(/\{(\d+)\}/g,function(ce,_e){const Ee=_e[0];return typeof Re[Ee]!="undefined"?Re[Ee]:ce}),V}function N(te,Re,...V){return P(Re,V)}},96236:function(rn,nt,_){"use strict";_.d(nt,{BH:function(){return Y},NZ:function(){return se},U8:function(){return K},co:function(){return v},eH:function(){return w},vr:function(){return c}});var P=_(75918),N=_(52615),te=_(4348),Re=_(88226),V=_(69323),ce=_(34502),_e=_(35884),Ee=_(90689),o=_(16925),R=_(49055),M=function(F,H,ne,b){var A=arguments.length,B=A<3?H:b===null?b=Object.getOwnPropertyDescriptor(H,ne):b,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(F,H,ne,b);else for(var ge=F.length-1;ge>=0;ge--)(X=F[ge])&&(B=(A<3?X(B):A>3?X(H,ne,B):X(H,ne))||B);return A>3&&B&&Object.defineProperty(H,ne,B),B},g=function(F,H){return function(ne,b){H(ne,b,F)}};function c(F){return F.command!==void 0}class w{constructor(H){this.id=w._idPool++,this._debugName=H}}w._idPool=0,w.CommandPalette=new w("CommandPalette"),w.EditorContext=new w("EditorContext"),w.SimpleEditorContext=new w("SimpleEditorContext"),w.EditorContextCopy=new w("EditorContextCopy"),w.EditorContextPeek=new w("EditorContextPeek"),w.MenubarEditMenu=new w("MenubarEditMenu"),w.MenubarCopy=new w("MenubarCopy"),w.MenubarGoMenu=new w("MenubarGoMenu"),w.MenubarSelectionMenu=new w("MenubarSelectionMenu"),w.InlineCompletionsActions=new w("InlineCompletionsActions");const v=(0,o.yh)("menuService"),Y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new te.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:F=>F===w.CommandPalette}}addCommand(F){return this.addCommands(Re.$.single(F))}addCommands(F){for(const H of F)this._commands.set(H.id,H);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,V.OF)(()=>{let H=!1;for(const ne of F)H=this._commands.delete(ne.id)||H;H&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(F){return this._commands.get(F)}getCommands(){const F=new Map;return this._commands.forEach((H,ne)=>F.set(ne,H)),F}appendMenuItem(F,H){return this.appendMenuItems(Re.$.single({id:F,item:H}))}appendMenuItems(F){const H=new Set,ne=new ce.S;for(const{id:b,item:A}of F){let B=this._menuItems.get(b);B||(B=new ce.S,this._menuItems.set(b,B)),ne.push(B.push(A)),H.add(b)}return this._onDidChangeMenu.fire(H),(0,V.OF)(()=>{if(ne.size>0){for(let b of ne)b();this._onDidChangeMenu.fire(H),ne.clear()}})}getMenuItems(F){let H;return this._menuItems.has(F)?H=[...this._menuItems.get(F)]:H=[],F===w.CommandPalette&&this._appendImplicitItems(H),H}_appendImplicitItems(F){const H=new Set;for(const ne of F)c(ne)&&(H.add(ne.command.id),ne.alt&&H.add(ne.alt.id));this._commands.forEach((ne,b)=>{H.has(b)||F.push({command:ne})})}};class se extends P.wY{constructor(H,ne,b,A){super(`submenuitem.${H.submenu.id}`,typeof H.title=="string"?H.title:H.title.value,[],"submenu"),this.item=H,this._menuService=ne,this._contextKeyService=b,this._options=A}get actions(){const H=[],ne=this._menuService.createMenu(this.item.submenu,this._contextKeyService),b=ne.getActions(this._options);ne.dispose();for(const[,A]of b)A.length>0&&(H.push(...A),H.push(new P.Z0));return H.length&&H.pop(),H}}let K=class Qo{constructor(H,ne,b,A,B){var X,ge;if(this._commandService=B,this.id=H.id,this.label=b!=null&&b.renderShortTitle&&H.shortTitle?typeof H.shortTitle=="string"?H.shortTitle:H.shortTitle.value:typeof H.title=="string"?H.title:H.title.value,this.tooltip=(ge=typeof H.tooltip=="string"?H.tooltip:(X=H.tooltip)===null||X===void 0?void 0:X.value)!==null&&ge!==void 0?ge:"",this.enabled=!H.precondition||A.contextMatchesRules(H.precondition),this.checked=void 0,H.toggled){const Ie=H.toggled.condition?H.toggled:{condition:H.toggled};this.checked=A.contextMatchesRules(Ie.condition),this.checked&&Ie.tooltip&&(this.tooltip=typeof Ie.tooltip=="string"?Ie.tooltip:Ie.tooltip.value),Ie.title&&(this.label=typeof Ie.title=="string"?Ie.title:Ie.title.value)}this.item=H,this.alt=ne?new Qo(ne,void 0,b,A,B):void 0,this._options=b,R.kS.isThemeIcon(H.icon)&&(this.class=N.dT.asClassName(H.icon))}dispose(){}run(...H){var ne,b;let A=[];return!((ne=this._options)===null||ne===void 0)&&ne.arg&&(A=[...A,this._options.arg]),!((b=this._options)===null||b===void 0)&&b.shouldForwardArgs&&(A=[...A,...H]),this._commandService.executeCommand(this.id,...A)}};K=M([g(3,Ee.i6),g(4,_e.H)],K)},35884:function(rn,nt,_){"use strict";_.d(nt,{H:function(){return _e},P:function(){return Ee}});var P=_(4348),N=_(88226),te=_(69323),Re=_(34502),V=_(72999),ce=_(16925);const _e=(0,ce.yh)("commandService"),Ee=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new P.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,R){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!R)throw new Error("invalid command");return this.registerCommand({id:o,handler:R})}if(o.description){const v=[];for(let se of o.description.args)v.push(se.constraint);const Y=o.handler;o.handler=function(se,...K){return(0,V.D8)(K,v),Y(se,...K)}}const{id:M}=o;let g=this._commands.get(M);g||(g=new Re.S,this._commands.set(M,g));let c=g.unshift(o),w=(0,te.OF)(()=>{c();const v=this._commands.get(M);v!=null&&v.isEmpty()&&this._commands.delete(M)});return this._onDidRegisterCommand.fire(M),w}registerCommandAlias(o,R){return Ee.registerCommand(o,(M,...g)=>M.get(_e).executeCommand(R,...g))}getCommand(o){const R=this._commands.get(o);if(!(!R||R.isEmpty()))return N.$.first(R)}getCommands(){const o=new Map;for(const R of this._commands.keys()){const M=this.getCommand(R);M&&o.set(R,M)}return o}};Ee.registerCommand("noop",()=>{})},90689:function(rn,nt,_){"use strict";_.d(nt,{Ao:function(){return _e},Eq:function(){return q},Fb:function(){return Ee},K8:function(){return ee},i6:function(){return He},uy:function(){return Oe}});var P=_(23345),N=_(82983),te=_(16925);let Re=P.WE||"";const V=new Map;V.set("false",!1),V.set("true",!0),V.set("isMac",P.dz),V.set("isLinux",P.IJ),V.set("isWindows",P.ED),V.set("isWeb",P.$L),V.set("isMacNative",P.dz&&!P.$L),V.set("isEdge",Re.indexOf("Edg/")>=0),V.set("isFirefox",Re.indexOf("Firefox")>=0),V.set("isChrome",Re.indexOf("Chrome")>=0),V.set("isSafari",Re.indexOf("Safari")>=0);const ce=Object.prototype.hasOwnProperty;class _e{static has(x){return g.create(x)}static equals(x,S){return c.create(x,S)}static regex(x,S){return A.create(x,S)}static not(x){return se.create(x)}static and(...x){return ge.create(x,null)}static or(...x){return Ie.create(x,null,!0)}static deserialize(x,S=!1){if(x)return this._deserializeOrExpression(x,S)}static _deserializeOrExpression(x,S){let Q=x.split("||");return Ie.create(Q.map(be=>this._deserializeAndExpression(be,S)),null,!0)}static _deserializeAndExpression(x,S){let Q=x.split("&&");return ge.create(Q.map(be=>this._deserializeOne(be,S)),null)}static _deserializeOne(x,S){if(x=x.trim(),x.indexOf("!=")>=0){let Q=x.split("!=");return Y.create(Q[0].trim(),this._deserializeValue(Q[1],S))}if(x.indexOf("==")>=0){let Q=x.split("==");return c.create(Q[0].trim(),this._deserializeValue(Q[1],S))}if(x.indexOf("=~")>=0){let Q=x.split("=~");return A.create(Q[0].trim(),this._deserializeRegexValue(Q[1],S))}if(x.indexOf(" in ")>=0){let Q=x.split(" in ");return w.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(x)){const Q=x.split(">=");return H.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(x)){const Q=x.split(">");return F.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(x)){const Q=x.split("<=");return b.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(x)){const Q=x.split("<");return ne.create(Q[0].trim(),Q[1].trim())}return/^\!\s*/.test(x)?se.create(x.substr(1).trim()):g.create(x)}static _deserializeValue(x,S){if(x=x.trim(),x==="true")return!0;if(x==="false")return!1;let Q=/^'([^']*)'$/.exec(x);return Q?Q[1].trim():x}static _deserializeRegexValue(x,S){if((0,N.m5)(x)){if(S)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Q=x.indexOf("/"),be=x.lastIndexOf("/");if(Q===be||Q<0){if(S)throw new Error(`bad regexp-value '${x}', missing /-enclosure`);return console.warn(`bad regexp-value '${x}', missing /-enclosure`),null}let Ve=x.slice(Q+1,be),tt=x[be+1]==="i"?"i":"";try{return new RegExp(Ve,tt)}catch(Je){if(S)throw new Error(`bad regexp-value '${x}', parse error: ${Je}`);return console.warn(`bad regexp-value '${x}', parse error: ${Je}`),null}}}function Ee(re,x){const S=re?re.substituteConstants():void 0,Q=x?x.substituteConstants():void 0;return!S&&!Q?!0:!S||!Q?!1:S.equals(Q)}function o(re,x){return re.cmp(x)}class R{constructor(){this.type=0}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!1}serialize(){return"false"}keys(){return[]}negate(){return M.INSTANCE}}R.INSTANCE=new R;class M{constructor(){this.type=1}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!0}serialize(){return"true"}keys(){return[]}negate(){return R.INSTANCE}}M.INSTANCE=new M;class g{constructor(x,S){this.key=x,this.negated=S,this.type=2}static create(x,S=null){const Q=V.get(x);return typeof Q=="boolean"?Q?M.INSTANCE:R.INSTANCE:new g(x,S)}cmp(x){return x.type!==this.type?this.type-x.type:$(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=V.get(this.key);return typeof x=="boolean"?x?M.INSTANCE:R.INSTANCE:this}evaluate(x){return!!x.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=se.create(this.key,this)),this.negated}}class c{constructor(x,S,Q){this.key=x,this.value=S,this.negated=Q,this.type=4}static create(x,S,Q=null){if(typeof S=="boolean")return S?g.create(x,Q):se.create(x,Q);const be=V.get(x);return typeof be=="boolean"?S===(be?"true":"false")?M.INSTANCE:R.INSTANCE:new c(x,S,Q)}cmp(x){return x.type!==this.type?this.type-x.type:ae(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=V.get(this.key);if(typeof x=="boolean"){const S=x?"true":"false";return this.value===S?M.INSTANCE:R.INSTANCE}return this}evaluate(x){return x.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Y.create(this.key,this.value,this)),this.negated}}class w{constructor(x,S){this.key=x,this.valueKey=S,this.type=10,this.negated=null}static create(x,S){return new w(x,S)}cmp(x){return x.type!==this.type?this.type-x.type:ae(this.key,this.valueKey,x.key,x.valueKey)}equals(x){return x.type===this.type?this.key===x.key&&this.valueKey===x.valueKey:!1}substituteConstants(){return this}evaluate(x){const S=x.getValue(this.valueKey),Q=x.getValue(this.key);return Array.isArray(S)?S.indexOf(Q)>=0:typeof Q=="string"&&typeof S=="object"&&S!==null?ce.call(S,Q):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(x){this._actual=x,this.type=11}static create(x){return new v(x)}cmp(x){return x.type!==this.type?this.type-x.type:this._actual.cmp(x._actual)}equals(x){return x.type===this.type?this._actual.equals(x._actual):!1}substituteConstants(){return this}evaluate(x){return!this._actual.evaluate(x)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class Y{constructor(x,S,Q){this.key=x,this.value=S,this.negated=Q,this.type=5}static create(x,S,Q=null){if(typeof S=="boolean")return S?se.create(x,Q):g.create(x,Q);const be=V.get(x);return typeof be=="boolean"?S===(be?"true":"false")?R.INSTANCE:M.INSTANCE:new Y(x,S,Q)}cmp(x){return x.type!==this.type?this.type-x.type:ae(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=V.get(this.key);if(typeof x=="boolean"){const S=x?"true":"false";return this.value===S?R.INSTANCE:M.INSTANCE}return this}evaluate(x){return x.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class se{constructor(x,S){this.key=x,this.negated=S,this.type=3}static create(x,S=null){const Q=V.get(x);return typeof Q=="boolean"?Q?R.INSTANCE:M.INSTANCE:new se(x,S)}cmp(x){return x.type!==this.type?this.type-x.type:$(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=V.get(this.key);return typeof x=="boolean"?x?R.INSTANCE:M.INSTANCE:this}evaluate(x){return!x.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 K(re,x){if(typeof re=="string"){const S=parseFloat(re);isNaN(S)||(re=S)}return typeof re=="string"||typeof re=="number"?x(re):R.INSTANCE}class F{constructor(x,S,Q){this.key=x,this.value=S,this.negated=Q,this.type=12}static create(x,S,Q=null){return K(S,be=>new F(x,be,Q))}cmp(x){return x.type!==this.type?this.type-x.type:ae(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class H{constructor(x,S,Q){this.key=x,this.value=S,this.negated=Q,this.type=13}static create(x,S,Q=null){return K(S,be=>new H(x,be,Q))}cmp(x){return x.type!==this.type?this.type-x.type:ae(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ne.create(this.key,this.value,this)),this.negated}}class ne{constructor(x,S,Q){this.key=x,this.value=S,this.negated=Q,this.type=14}static create(x,S,Q=null){return K(S,be=>new ne(x,be,Q))}cmp(x){return x.type!==this.type?this.type-x.type:ae(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class b{constructor(x,S,Q){this.key=x,this.value=S,this.negated=Q,this.type=15}static create(x,S,Q=null){return K(S,be=>new b(x,be,Q))}cmp(x){return x.type!==this.type?this.type-x.type:ae(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class A{constructor(x,S){this.key=x,this.regexp=S,this.type=7,this.negated=null}static create(x,S){return new A(x,S)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.key<x.key)return-1;if(this.key>x.key)return 1;const S=this.regexp?this.regexp.source:"",Q=x.regexp?x.regexp.source:"";return S<Q?-1:S>Q?1:0}equals(x){if(x.type===this.type){const S=this.regexp?this.regexp.source:"",Q=x.regexp?x.regexp.source:"";return this.key===x.key&&S===Q}return!1}substituteConstants(){return this}evaluate(x){let S=x.getValue(this.key);return this.regexp?this.regexp.test(S):!1}serialize(){const x=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${x}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this)),this.negated}}class B{constructor(x){this._actual=x,this.type=8}static create(x){return new B(x)}cmp(x){return x.type!==this.type?this.type-x.type:this._actual.cmp(x._actual)}equals(x){return x.type===this.type?this._actual.equals(x._actual):!1}substituteConstants(){return this}evaluate(x){return!this._actual.evaluate(x)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function X(re){let x=null;for(let S=0,Q=re.length;S<Q;S++){const be=re[S].substituteConstants();if(re[S]!==be&&x===null){x=[];for(let Ve=0;Ve<S;Ve++)x[Ve]=re[Ve]}x!==null&&(x[S]=be)}return x===null?re:x}class ge{constructor(x,S){this.expr=x,this.negated=S,this.type=6}static create(x,S){return ge._normalizeArr(x,S)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let S=0,Q=this.expr.length;S<Q;S++){const be=o(this.expr[S],x.expr[S]);if(be!==0)return be}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let S=0,Q=this.expr.length;S<Q;S++)if(!this.expr[S].equals(x.expr[S]))return!1;return!0}return!1}substituteConstants(){const x=X(this.expr);return x===this.expr?this:ge.create(x,this.negated)}evaluate(x){for(let S=0,Q=this.expr.length;S<Q;S++)if(!this.expr[S].evaluate(x))return!1;return!0}static _normalizeArr(x,S){const Q=[];let be=!1;for(const Ve of x)if(Ve){if(Ve.type===1){be=!0;continue}if(Ve.type===0)return R.INSTANCE;if(Ve.type===6){Q.push(...Ve.expr);continue}Q.push(Ve)}if(Q.length===0&&be)return M.INSTANCE;if(Q.length!==0){if(Q.length===1)return Q[0];Q.sort(o);for(let Ve=1;Ve<Q.length;Ve++)Q[Ve-1].equals(Q[Ve])&&(Q.splice(Ve,1),Ve--);if(Q.length===1)return Q[0];for(;Q.length>1;){const Ve=Q[Q.length-1];if(Ve.type!==9)break;Q.pop();const tt=Q.pop(),Je=Q.length===0,et=Ie.create(Ve.expr.map(xt=>ge.create([xt,tt],null)),null,Je);et&&(Q.push(et),Q.sort(o))}return Q.length===1?Q[0]:new ge(Q,S)}}serialize(){return this.expr.map(x=>x.serialize()).join(" && ")}keys(){const x=[];for(let S of this.expr)x.push(...S.keys());return x}negate(){if(!this.negated){const x=[];for(let S of this.expr)x.push(S.negate());this.negated=Ie.create(x,this,!0)}return this.negated}}class Ie{constructor(x,S){this.expr=x,this.negated=S,this.type=9}static create(x,S,Q){return Ie._normalizeArr(x,S,Q)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let S=0,Q=this.expr.length;S<Q;S++){const be=o(this.expr[S],x.expr[S]);if(be!==0)return be}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let S=0,Q=this.expr.length;S<Q;S++)if(!this.expr[S].equals(x.expr[S]))return!1;return!0}return!1}substituteConstants(){const x=X(this.expr);return x===this.expr?this:Ie.create(x,this.negated,!1)}evaluate(x){for(let S=0,Q=this.expr.length;S<Q;S++)if(this.expr[S].evaluate(x))return!0;return!1}static _normalizeArr(x,S,Q){let be=[],Ve=!1;if(x){for(let tt=0,Je=x.length;tt<Je;tt++){const et=x[tt];if(et){if(et.type===0){Ve=!0;continue}if(et.type===1)return M.INSTANCE;if(et.type===9){be=be.concat(et.expr);continue}be.push(et)}}if(be.length===0&&Ve)return R.INSTANCE;be.sort(o)}if(be.length!==0){if(be.length===1)return be[0];for(let tt=1;tt<be.length;tt++)be[tt-1].equals(be[tt])&&(be.splice(tt,1),tt--);if(be.length===1)return be[0];if(Q){for(let tt=0;tt<be.length;tt++)for(let Je=tt+1;Je<be.length;Je++)ee(be[tt],be[Je])&&(be.splice(Je,1),Je--);if(be.length===1)return be[0]}return new Ie(be,S)}}serialize(){return this.expr.map(x=>x.serialize()).join(" || ")}keys(){const x=[];for(let S of this.expr)x.push(...S.keys());return x}negate(){if(!this.negated){let x=[];for(let S of this.expr)x.push(S.negate());for(;x.length>1;){const S=x.shift(),Q=x.shift(),be=[];for(const tt of ye(S))for(const Je of ye(Q))be.push(ge.create([tt,Je],null));const Ve=x.length===0;x.unshift(Ie.create(be,null,Ve))}this.negated=x[0]}return this.negated}}class Oe extends g{constructor(x,S,Q){super(x,null),this._defaultValue=S,typeof Q=="object"?Oe._info.push(Object.assign(Object.assign({},Q),{key:x})):Q!==!0&&Oe._info.push({key:x,description:Q,type:S!=null?typeof S:void 0})}static all(){return Oe._info.values()}bindTo(x){return x.createKey(this.key,this._defaultValue)}getValue(x){return x.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(x){return c.create(this.key,x)}}Oe._info=[];const He=(0,te.yh)("contextKeyService"),q="setContext";function $(re,x){return re<x?-1:re>x?1:0}function ae(re,x,S,Q){return re<S?-1:re>S?1:x<Q?-1:x>Q?1:0}function ee(re,x){if(x.type===6&&re.type!==9&&re.type!==6){for(const be of x.expr)if(re.equals(be))return!0}const S=re.negate(),Q=ye(S).concat(ye(x));Q.sort(o);for(let be=0;be<Q.length;be++){const tt=Q[be].negate();for(let Je=be+1;Je<Q.length;Je++){const et=Q[Je];if(tt.equals(et))return!0}}return!1}function ye(re){return re.type===9?re.expr:[re]}},16925:function(rn,nt,_){"use strict";_.d(nt,{I8:function(){return P},TG:function(){return N},jt:function(){return V},yh:function(){return Re}});var P;(function(ce){ce.serviceIds=new Map,ce.DI_TARGET="$di$target",ce.DI_DEPENDENCIES="$di$dependencies";function _e(Ee){return Ee[ce.DI_DEPENDENCIES]||[]}ce.getServiceDependencies=_e})(P||(P={}));const N=Re("instantiationService");function te(ce,_e,Ee,o){_e[P.DI_TARGET]===_e?_e[P.DI_DEPENDENCIES].push({id:ce,index:Ee,optional:o}):(_e[P.DI_DEPENDENCIES]=[{id:ce,index:Ee,optional:o}],_e[P.DI_TARGET]=_e)}function Re(ce){if(P.serviceIds.has(ce))return P.serviceIds.get(ce);const _e=function(Ee,o,R){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");te(_e,Ee,R,!1)};return _e.toString=()=>ce,P.serviceIds.set(ce,_e),_e}function V(ce){return function(_e,Ee,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");te(ce,_e,o,!0)}}},44650:function(rn,nt,_){"use strict";_.d(nt,{B:function(){return Re}});var P=_(76068),N=_(72999);class te{constructor(){this.data=new Map}add(ce,_e){P.ok(N.HD(ce)),P.ok(N.Kn(_e)),P.ok(!this.data.has(ce),"There is already an extension with this id"),this.data.set(ce,_e)}as(ce){return this.data.get(ce)||null}}const Re=new te},66213:function(rn,nt,_){"use strict";_.d(nt,{e:function(){return P}});var P;(function(N){N.DARK="dark",N.LIGHT="light",N.HIGH_CONTRAST="hc"})(P||(P={}))},49055:function(rn,nt,_){"use strict";_.d(nt,{EN:function(){return o},IP:function(){return g},Ic:function(){return v},XE:function(){return _e},bB:function(){return Y},kS:function(){return R},m6:function(){return M}});var P=_(52615),N=_(4348),te=_(69323),Re=_(16925),V=_(44650),ce=_(66213);const _e=(0,Re.yh)("themeService");var Ee;(function(se){function K(F){return F&&typeof F=="object"&&typeof F.id=="string"}se.isThemeColor=K})(Ee||(Ee={}));function o(se){return{id:se}}var R;(function(se){function K(B){return B&&typeof B=="object"&&typeof B.id=="string"&&(typeof B.color=="undefined"||Ee.isThemeColor(B.color))}se.isThemeIcon=K;const F=new RegExp(`^\\$\\((${P.dT.iconNameExpression}(?:${P.dT.iconModifierExpression})?)\\)$`);function H(B){const X=F.exec(B);if(!X)return;let[,ge]=X;return{id:ge}}se.fromString=H;function ne(B,X){let ge=B.id;const Ie=ge.lastIndexOf("~");return Ie!==-1&&(ge=ge.substring(0,Ie)),X&&(ge=`${ge}~${X}`),{id:ge}}se.modify=ne;function b(B,X){var ge,Ie;return B.id===X.id&&((ge=B.color)===null||ge===void 0?void 0:ge.id)===((Ie=X.color)===null||Ie===void 0?void 0:Ie.id)}se.isEqual=b;function A(B,X){return{id:B.id,color:X?o(X):void 0}}se.asThemeIcon=A,se.asClassNameArray=P.dT.asClassNameArray,se.asClassName=P.dT.asClassName,se.asCSSSelector=P.dT.asCSSSelector})(R||(R={}));function M(se){switch(se){case ce.e.DARK:return"vs-dark";case ce.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const g={ThemingContribution:"base.contributions.theming"};class c{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N.Q5}onColorThemeChange(K){return this.themingParticipants.push(K),this.onThemingParticipantAddedEmitter.fire(K),(0,te.OF)(()=>{const F=this.themingParticipants.indexOf(K);this.themingParticipants.splice(F,1)})}getThemingParticipants(){return this.themingParticipants}}let w=new c;V.B.add(g.ThemingContribution,w);function v(se){return w.onColorThemeChange(se)}class Y extends te.JT{constructor(K){super(),this.themeService=K,this.theme=K.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(F=>this.onThemeChange(F)))}onThemeChange(K){this.theme=K,this.updateStyles()}updateStyles(){}}},93681:function(rn,nt,_){"use strict";_.r(nt),_.d(nt,{BaseInput:function(){return R},default:function(){return F}});var P=_(96663),N=_(44127),te=_(90493),Re=_(20135),V=_(92310),ce=_.n(V),_e=_(59301),Ee=_(5643),o=function(ne){var b,A,B=ne.inputElement,X=ne.prefixCls,ge=ne.prefix,Ie=ne.suffix,Oe=ne.addonBefore,He=ne.addonAfter,q=ne.className,$=ne.style,ae=ne.disabled,ee=ne.readOnly,ye=ne.focused,re=ne.triggerFocus,x=ne.allowClear,S=ne.value,Q=ne.handleReset,be=ne.hidden,Ve=ne.classes,tt=ne.classNames,Je=ne.dataAttrs,et=ne.styles,xt=ne.components,gt=(xt==null?void 0:xt.affixWrapper)||"span",st=(xt==null?void 0:xt.groupWrapper)||"span",kt=(xt==null?void 0:xt.wrapper)||"span",Ft=(xt==null?void 0:xt.groupAddon)||"span",cn=(0,_e.useRef)(null),Vt=function(he){var Z;(Z=cn.current)!==null&&Z!==void 0&&Z.contains(he.target)&&(re==null||re())},it=function(){var he;if(!x)return null;var Z=!ae&&!ee&&S,De="".concat(X,"-clear-icon"),Ue=(0,Re.Z)(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"\u2716";return _e.createElement("span",{onClick:Q,onMouseDown:function(Ne){return Ne.preventDefault()},className:ce()(De,(he={},(0,te.Z)(he,"".concat(De,"-hidden"),!Z),(0,te.Z)(he,"".concat(De,"-has-suffix"),!!Ie),he)),role:"button",tabIndex:-1},Ue)},At=(0,_e.cloneElement)(B,{value:S,hidden:be,className:ce()((b=B.props)===null||b===void 0?void 0:b.className,!(0,Ee.X3)(ne)&&!(0,Ee.He)(ne)&&q)||null,style:(0,N.Z)((0,N.Z)({},(A=B.props)===null||A===void 0?void 0:A.style),!(0,Ee.X3)(ne)&&!(0,Ee.He)(ne)?$:{})});if((0,Ee.X3)(ne)){var oe,me="".concat(X,"-affix-wrapper"),k=ce()(me,(oe={},(0,te.Z)(oe,"".concat(me,"-disabled"),ae),(0,te.Z)(oe,"".concat(me,"-focused"),ye),(0,te.Z)(oe,"".concat(me,"-readonly"),ee),(0,te.Z)(oe,"".concat(me,"-input-with-clear-btn"),Ie&&x&&S),oe),!(0,Ee.He)(ne)&&q,Ve==null?void 0:Ve.affixWrapper,tt==null?void 0:tt.affixWrapper),de=(Ie||x)&&_e.createElement("span",{className:ce()("".concat(X,"-suffix"),tt==null?void 0:tt.suffix),style:et==null?void 0:et.suffix},it(),Ie);At=_e.createElement(gt,(0,P.Z)({className:k,style:(0,N.Z)((0,N.Z)({},(0,Ee.He)(ne)?void 0:$),et==null?void 0:et.affixWrapper),hidden:!(0,Ee.He)(ne)&&be,onClick:Vt},Je==null?void 0:Je.affixWrapper,{ref:cn}),ge&&_e.createElement("span",{className:ce()("".concat(X,"-prefix"),tt==null?void 0:tt.prefix),style:et==null?void 0:et.prefix},ge),(0,_e.cloneElement)(B,{value:S,hidden:null}),de)}if((0,Ee.He)(ne)){var we="".concat(X,"-group"),L="".concat(we,"-addon"),T=ce()("".concat(X,"-wrapper"),we,Ve==null?void 0:Ve.wrapper),O=ce()("".concat(X,"-group-wrapper"),q,Ve==null?void 0:Ve.group);return _e.createElement(st,{className:O,style:$,hidden:be},_e.createElement(kt,{className:T},Oe&&_e.createElement(Ft,{className:L},Oe),(0,_e.cloneElement)(At,{hidden:null}),He&&_e.createElement(Ft,{className:L},He)))}return At},R=o,M=_(19127),g=_(72071),c=_(6620),w=_(18929),v=_(2738),Y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],se=(0,_e.forwardRef)(function(H,ne){var b=H.autoComplete,A=H.onChange,B=H.onFocus,X=H.onBlur,ge=H.onPressEnter,Ie=H.onKeyDown,Oe=H.prefixCls,He=Oe===void 0?"rc-input":Oe,q=H.disabled,$=H.htmlSize,ae=H.className,ee=H.maxLength,ye=H.suffix,re=H.showCount,x=H.type,S=x===void 0?"text":x,Q=H.classes,be=H.classNames,Ve=H.styles,tt=(0,c.Z)(H,Y),Je=(0,w.Z)(H.defaultValue,{value:H.value}),et=(0,g.Z)(Je,2),xt=et[0],gt=et[1],st=(0,_e.useState)(!1),kt=(0,g.Z)(st,2),Ft=kt[0],cn=kt[1],Vt=(0,_e.useRef)(null),it=function(O){Vt.current&&(0,Ee.nH)(Vt.current,O)};(0,_e.useImperativeHandle)(ne,function(){return{focus:it,blur:function(){var O;(O=Vt.current)===null||O===void 0||O.blur()},setSelectionRange:function(O,ue,he){var Z;(Z=Vt.current)===null||Z===void 0||Z.setSelectionRange(O,ue,he)},select:function(){var O;(O=Vt.current)===null||O===void 0||O.select()},input:Vt.current}}),(0,_e.useEffect)(function(){cn(function(T){return T&&q?!1:T})},[q]);var At=function(O){H.value===void 0&>(O.target.value),Vt.current&&(0,Ee.rJ)(Vt.current,O,A)},oe=function(O){ge&&O.key==="Enter"&&ge(O),Ie==null||Ie(O)},me=function(O){cn(!0),B==null||B(O)},k=function(O){cn(!1),X==null||X(O)},de=function(O){gt(""),it(),Vt.current&&(0,Ee.rJ)(Vt.current,O,A)},we=function(){var O=(0,v.Z)(H,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return _e.createElement("input",(0,P.Z)({autoComplete:b},O,{onChange:At,onFocus:me,onBlur:k,onKeyDown:oe,className:ce()(He,(0,te.Z)({},"".concat(He,"-disabled"),q),be==null?void 0:be.input),style:Ve==null?void 0:Ve.input,ref:Vt,size:$,type:S}))},L=function(){var O=Number(ee)>0;if(ye||re){var ue=(0,Ee.D7)(xt),he=(0,M.Z)(ue).length,Z=(0,Re.Z)(re)==="object"?re.formatter({value:ue,count:he,maxLength:ee}):"".concat(he).concat(O?" / ".concat(ee):"");return _e.createElement(_e.Fragment,null,!!re&&_e.createElement("span",{className:ce()("".concat(He,"-show-count-suffix"),(0,te.Z)({},"".concat(He,"-show-count-has-suffix"),!!ye),be==null?void 0:be.count),style:(0,N.Z)({},Ve==null?void 0:Ve.count)},Z),ye)}return null};return _e.createElement(R,(0,P.Z)({},tt,{prefixCls:He,className:ae,inputElement:we(),handleReset:de,value:(0,Ee.D7)(xt),focused:Ft,triggerFocus:it,suffix:L(),disabled:q,classes:Q,classNames:be,styles:Ve}))}),K=se,F=K},5643:function(rn,nt,_){"use strict";_.d(nt,{D7:function(){return V},He:function(){return P},X3:function(){return N},nH:function(){return Re},rJ:function(){return te}});function P(ce){return!!(ce.addonBefore||ce.addonAfter)}function N(ce){return!!(ce.prefix||ce.suffix||ce.allowClear)}function te(ce,_e,Ee,o){if(Ee){var R=_e;if(_e.type==="click"){var M=ce.cloneNode(!0);R=Object.create(_e,{target:{value:M},currentTarget:{value:M}}),M.value="",Ee(R);return}if(o!==void 0){R=Object.create(_e,{target:{value:ce},currentTarget:{value:ce}}),ce.value=o,Ee(R);return}Ee(R)}}function Re(ce,_e){if(ce){ce.focus(_e);var Ee=_e||{},o=Ee.cursor;if(o){var R=ce.value.length;switch(o){case"start":ce.setSelectionRange(0,0);break;case"end":ce.setSelectionRange(R,R);break;default:ce.setSelectionRange(0,R)}}}}function V(ce){return typeof ce=="undefined"||ce===null?"":String(ce)}},15285:function(rn,nt,_){"use strict";_.d(nt,{iz:function(){return ln},ck:function(){return Ze},BW:function(){return Wt},sN:function(){return Ze},Wd:function(){return lt},ZP:function(){return Bt},Xl:function(){return Ie}});var P=_(96663),N=_(90493),te=_(44127),Re=_(19127),V=_(72071),ce=_(6620),_e=_(92310),Ee=_.n(_e),o=_(11780),R=_(18929),M=_(13697),g=_(48736),c=_(59301),w=_(4676),v=c.createContext(null);function Y(Ye,Qe){return Ye===void 0?null:"".concat(Ye,"-").concat(Qe)}function se(Ye){var Qe=c.useContext(v);return Y(Qe,Ye)}var K=_(80547),F=["children","locked"],H=c.createContext(null);function ne(Ye,Qe){var ut=(0,te.Z)({},Ye);return Object.keys(Qe).forEach(function(yt){var ct=Qe[yt];ct!==void 0&&(ut[yt]=ct)}),ut}function b(Ye){var Qe=Ye.children,ut=Ye.locked,yt=(0,ce.Z)(Ye,F),ct=c.useContext(H),Et=(0,K.Z)(function(){return ne(ct,yt)},[ct,yt],function(bt,Kt){return!ut&&(bt[0]!==Kt[0]||!(0,M.Z)(bt[1],Kt[1],!0))});return c.createElement(H.Provider,{value:Et},Qe)}var A=[],B=c.createContext(null);function X(){return c.useContext(B)}var ge=c.createContext(A);function Ie(Ye){var Qe=c.useContext(ge);return c.useMemo(function(){return Ye!==void 0?[].concat((0,Re.Z)(Qe),[Ye]):Qe},[Qe,Ye])}var Oe=c.createContext(null),He=c.createContext({}),q=He,$=_(29194);function ae(Ye){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,$.Z)(Ye)){var ut=Ye.nodeName.toLowerCase(),yt=["input","select","textarea","button"].includes(ut)||Ye.isContentEditable||ut==="a"&&!!Ye.getAttribute("href"),ct=Ye.getAttribute("tabindex"),Et=Number(ct),bt=null;return ct&&!Number.isNaN(Et)?bt=Et:yt&&bt===null&&(bt=0),yt&&Ye.disabled&&(bt=null),bt!==null&&(bt>=0||Qe&&bt<0)}return!1}function ee(Ye){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=(0,Re.Z)(Ye.querySelectorAll("*")).filter(function(yt){return ae(yt,Qe)});return ae(Ye,Qe)&&ut.unshift(Ye),ut}var ye=null;function re(){ye=document.activeElement}function x(){ye=null}function S(){if(ye)try{ye.focus()}catch(Ye){}}function Q(Ye,Qe){if(Qe.keyCode===9){var ut=ee(Ye),yt=ut[Qe.shiftKey?0:ut.length-1],ct=yt===document.activeElement||Ye===document.activeElement;if(ct){var Et=ut[Qe.shiftKey?ut.length-1:0];Et.focus(),Qe.preventDefault()}}}var be=_(10228),Ve=_(16089),tt=be.Z.LEFT,Je=be.Z.RIGHT,et=be.Z.UP,xt=be.Z.DOWN,gt=be.Z.ENTER,st=be.Z.ESC,kt=be.Z.HOME,Ft=be.Z.END,cn=[et,xt,tt,Je];function Vt(Ye,Qe,ut,yt){var ct,Et,bt,Kt,Qt="prev",nn="next",Cn="children",Rn="parent";if(Ye==="inline"&&yt===gt)return{inlineTrigger:!0};var On=(ct={},(0,N.Z)(ct,et,Qt),(0,N.Z)(ct,xt,nn),ct),on=(Et={},(0,N.Z)(Et,tt,ut?nn:Qt),(0,N.Z)(Et,Je,ut?Qt:nn),(0,N.Z)(Et,xt,Cn),(0,N.Z)(Et,gt,Cn),Et),Xt=(bt={},(0,N.Z)(bt,et,Qt),(0,N.Z)(bt,xt,nn),(0,N.Z)(bt,gt,Cn),(0,N.Z)(bt,st,Rn),(0,N.Z)(bt,tt,ut?Cn:Rn),(0,N.Z)(bt,Je,ut?Rn:Cn),bt),$n={inline:On,horizontal:on,vertical:Xt,inlineSub:On,horizontalSub:Xt,verticalSub:Xt},Sn=(Kt=$n["".concat(Ye).concat(Qe?"":"Sub")])===null||Kt===void 0?void 0:Kt[yt];switch(Sn){case Qt:return{offset:-1,sibling:!0};case nn:return{offset:1,sibling:!0};case Rn:return{offset:-1,sibling:!1};case Cn:return{offset:1,sibling:!1};default:return null}}function it(Ye){for(var Qe=Ye;Qe;){if(Qe.getAttribute("data-menu-list"))return Qe;Qe=Qe.parentElement}return null}function At(Ye,Qe){for(var ut=Ye||document.activeElement;ut;){if(Qe.has(ut))return ut;ut=ut.parentElement}return null}function oe(Ye,Qe){var ut=ee(Ye,!0);return ut.filter(function(yt){return Qe.has(yt)})}function me(Ye,Qe,ut){var yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ye)return null;var ct=oe(Ye,Qe),Et=ct.length,bt=ct.findIndex(function(Kt){return ut===Kt});return yt<0?bt===-1?bt=Et-1:bt-=1:yt>0&&(bt+=1),bt=(bt+Et)%Et,ct[bt]}var k=function(Qe,ut){var yt=new Set,ct=new Map,Et=new Map;return Qe.forEach(function(bt){var Kt=document.querySelector("[data-menu-id='".concat(Y(ut,bt),"']"));Kt&&(yt.add(Kt),Et.set(Kt,bt),ct.set(bt,Kt))}),{elements:yt,key2element:ct,element2key:Et}};function de(Ye,Qe,ut,yt,ct,Et,bt,Kt,Qt,nn){var Cn=c.useRef(),Rn=c.useRef();Rn.current=Qe;var On=function(){Ve.Z.cancel(Cn.current)};return c.useEffect(function(){return function(){On()}},[]),function(on){var Xt=on.which;if([].concat(cn,[gt,st,kt,Ft]).includes(Xt)){var $n=Et(),Sn=k($n,yt),Qn=Sn,An=Qn.elements,kn=Qn.key2element,Kn=Qn.element2key,In=kn.get(Qe),qn=At(In,An),fr=Kn.get(qn),Tn=Vt(Ye,bt(fr,!0).length===1,ut,Xt);if(!Tn&&Xt!==kt&&Xt!==Ft)return;(cn.includes(Xt)||[kt,Ft].includes(Xt))&&on.preventDefault();var Jt=function(Un){if(Un){var ar=Un,vn=Un.querySelector("a");vn!=null&&vn.getAttribute("href")&&(ar=vn);var en=Kn.get(Un);Kt(en),On(),Cn.current=(0,Ve.Z)(function(){Rn.current===en&&ar.focus()})}};if([kt,Ft].includes(Xt)||Tn.sibling||!qn){var ze;!qn||Ye==="inline"?ze=ct.current:ze=it(qn);var fn,Pn=oe(ze,An);Xt===kt?fn=Pn[0]:Xt===Ft?fn=Pn[Pn.length-1]:fn=me(ze,An,qn,Tn.offset),Jt(fn)}else if(Tn.inlineTrigger)Qt(fr);else if(Tn.offset>0)Qt(fr,!0),On(),Cn.current=(0,Ve.Z)(function(){Sn=k($n,yt);var sr=qn.getAttribute("aria-controls"),Un=document.getElementById(sr),ar=me(Un,Sn.elements);Jt(ar)},5);else if(Tn.offset<0){var Vn=bt(fr,!0),Yn=Vn[Vn.length-2],rr=kn.get(Yn);Qt(Yn,!1),Jt(rr)}}nn==null||nn(on)}}function we(Ye){Promise.resolve().then(Ye)}var L="__RC_UTIL_PATH_SPLIT__",T=function(Qe){return Qe.join(L)},O=function(Qe){return Qe.split(L)},ue="rc-menu-more";function he(){var Ye=c.useState({}),Qe=(0,V.Z)(Ye,2),ut=Qe[1],yt=(0,c.useRef)(new Map),ct=(0,c.useRef)(new Map),Et=c.useState([]),bt=(0,V.Z)(Et,2),Kt=bt[0],Qt=bt[1],nn=(0,c.useRef)(0),Cn=(0,c.useRef)(!1),Rn=function(){Cn.current||ut({})},On=(0,c.useCallback)(function(kn,Kn){var In=T(Kn);ct.current.set(In,kn),yt.current.set(kn,In),nn.current+=1;var qn=nn.current;we(function(){qn===nn.current&&Rn()})},[]),on=(0,c.useCallback)(function(kn,Kn){var In=T(Kn);ct.current.delete(In),yt.current.delete(kn)},[]),Xt=(0,c.useCallback)(function(kn){Qt(kn)},[]),$n=(0,c.useCallback)(function(kn,Kn){var In=yt.current.get(kn)||"",qn=O(In);return Kn&&Kt.includes(qn[0])&&qn.unshift(ue),qn},[Kt]),Sn=(0,c.useCallback)(function(kn,Kn){return kn.some(function(In){var qn=$n(In,!0);return qn.includes(Kn)})},[$n]),Qn=function(){var Kn=(0,Re.Z)(yt.current.keys());return Kt.length&&Kn.push(ue),Kn},An=(0,c.useCallback)(function(kn){var Kn="".concat(yt.current.get(kn)).concat(L),In=new Set;return(0,Re.Z)(ct.current.keys()).forEach(function(qn){qn.startsWith(Kn)&&In.add(ct.current.get(qn))}),In},[]);return c.useEffect(function(){return function(){Cn.current=!0}},[]),{registerPath:On,unregisterPath:on,refreshOverflowKeys:Xt,isSubPathKey:Sn,getKeyPath:$n,getKeys:Qn,getSubPathKeys:An}}function Z(Ye){var Qe=c.useRef(Ye);Qe.current=Ye;var ut=c.useCallback(function(){for(var yt,ct=arguments.length,Et=new Array(ct),bt=0;bt<ct;bt++)Et[bt]=arguments[bt];return(yt=Qe.current)===null||yt===void 0?void 0:yt.call.apply(yt,[Qe].concat(Et))},[]);return Ye?ut:void 0}var De=Math.random().toFixed(5).toString().slice(2),Ue=0;function Ae(Ye){var Qe=(0,R.Z)(Ye,{value:Ye}),ut=(0,V.Z)(Qe,2),yt=ut[0],ct=ut[1];return c.useEffect(function(){Ue+=1;var Et="".concat(De,"-").concat(Ue);ct("rc-menu-uuid-".concat(Et))},[]),yt}var Ne=_(52884),We=_(95727),Xe=_(65711),qe=_(85745),ht=_(2738),St=_(8654);function _t(Ye,Qe,ut,yt){var ct=c.useContext(H),Et=ct.activeKey,bt=ct.onActive,Kt=ct.onInactive,Qt={active:Et===Ye};return Qe||(Qt.onMouseEnter=function(nn){ut==null||ut({key:Ye,domEvent:nn}),bt(Ye)},Qt.onMouseLeave=function(nn){yt==null||yt({key:Ye,domEvent:nn}),Kt(Ye)}),Qt}function It(Ye){var Qe=c.useContext(H),ut=Qe.mode,yt=Qe.rtl,ct=Qe.inlineIndent;if(ut!=="inline")return null;var Et=Ye;return yt?{paddingRight:Et*ct}:{paddingLeft:Et*ct}}function Ct(Ye){var Qe=Ye.icon,ut=Ye.props,yt=Ye.children,ct;return Qe===null||Qe===!1?null:(typeof Qe=="function"?ct=c.createElement(Qe,(0,te.Z)({},ut)):typeof Qe!="boolean"&&(ct=Qe),ct||yt||null)}var y=["item"];function C(Ye){var Qe=Ye.item,ut=(0,ce.Z)(Ye,y);return Object.defineProperty(ut,"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."),Qe}}),ut}var ot=["title","attribute","elementRef"],W=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ce=["active"],yn=function(Ye){(0,Xe.Z)(ut,Ye);var Qe=(0,qe.Z)(ut);function ut(){return(0,Ne.Z)(this,ut),Qe.apply(this,arguments)}return(0,We.Z)(ut,[{key:"render",value:function(){var ct=this.props,Et=ct.title,bt=ct.attribute,Kt=ct.elementRef,Qt=(0,ce.Z)(ct,ot),nn=(0,ht.Z)(Qt,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,g.ZP)(!bt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(o.Z.Item,(0,P.Z)({},bt,{title:typeof Et=="string"?Et:void 0},nn,{ref:Kt}))}}]),ut}(c.Component),Me=c.forwardRef(function(Ye,Qe){var ut,yt=Ye.style,ct=Ye.className,Et=Ye.eventKey,bt=Ye.warnKey,Kt=Ye.disabled,Qt=Ye.itemIcon,nn=Ye.children,Cn=Ye.role,Rn=Ye.onMouseEnter,On=Ye.onMouseLeave,on=Ye.onClick,Xt=Ye.onKeyDown,$n=Ye.onFocus,Sn=(0,ce.Z)(Ye,W),Qn=se(Et),An=c.useContext(H),kn=An.prefixCls,Kn=An.onItemClick,In=An.disabled,qn=An.overflowDisabled,fr=An.itemIcon,Tn=An.selectedKeys,Jt=An.onActive,ze=c.useContext(q),fn=ze._internalRenderMenuItem,Pn="".concat(kn,"-item"),Vn=c.useRef(),Yn=c.useRef(),rr=In||Kt,sr=(0,St.x1)(Qe,Yn),Un=Ie(Et),ar=function(_r){return{key:Et,keyPath:(0,Re.Z)(Un).reverse(),item:Vn.current,domEvent:_r}},vn=Qt||fr,en=_t(Et,rr,Rn,On),Dn=en.active,Jn=(0,ce.Z)(en,Ce),or=Tn.includes(Et),Pr=It(Un.length),_n=function(_r){if(!rr){var Tr=ar(_r);on==null||on(C(Tr)),Kn(Tr)}},cr=function(_r){if(Xt==null||Xt(_r),_r.which===be.Z.ENTER){var Tr=ar(_r);on==null||on(C(Tr)),Kn(Tr)}},lr=function(_r){Jt(Et),$n==null||$n(_r)},Er={};Ye.role==="option"&&(Er["aria-selected"]=or);var Mr=c.createElement(yn,(0,P.Z)({ref:Vn,elementRef:sr,role:Cn===null?"none":Cn||"menuitem",tabIndex:Kt?null:-1,"data-menu-id":qn&&Qn?null:Qn},Sn,Jn,Er,{component:"li","aria-disabled":Kt,style:(0,te.Z)((0,te.Z)({},Pr),yt),className:Ee()(Pn,(ut={},(0,N.Z)(ut,"".concat(Pn,"-active"),Dn),(0,N.Z)(ut,"".concat(Pn,"-selected"),or),(0,N.Z)(ut,"".concat(Pn,"-disabled"),rr),ut),ct),onClick:_n,onKeyDown:cr,onFocus:lr}),nn,c.createElement(Ct,{props:(0,te.Z)((0,te.Z)({},Ye),{},{isSelected:or}),icon:vn}));return fn&&(Mr=fn(Mr,Ye,{selected:or})),Mr});function Ke(Ye,Qe){var ut=Ye.eventKey,yt=X(),ct=Ie(ut);return c.useEffect(function(){if(yt)return yt.registerPath(ut,ct),function(){yt.unregisterPath(ut,ct)}},[ct]),yt?null:c.createElement(Me,(0,P.Z)({},Ye,{ref:Qe}))}var Ze=c.forwardRef(Ke),J=["className","children"],fe=function(Qe,ut){var yt=Qe.className,ct=Qe.children,Et=(0,ce.Z)(Qe,J),bt=c.useContext(H),Kt=bt.prefixCls,Qt=bt.mode,nn=bt.rtl;return c.createElement("ul",(0,P.Z)({className:Ee()(Kt,nn&&"".concat(Kt,"-rtl"),"".concat(Kt,"-sub"),"".concat(Kt,"-").concat(Qt==="inline"?"inline":"vertical"),yt),role:"menu"},Et,{"data-menu-list":!0,ref:ut}),ct)},Te=c.forwardRef(fe);Te.displayName="SubMenuList";var Be=Te,G=_(11592);function Ot(Ye,Qe){return(0,G.Z)(Ye).map(function(ut,yt){if(c.isValidElement(ut)){var ct,Et,bt=ut.key,Kt=(ct=(Et=ut.props)===null||Et===void 0?void 0:Et.eventKey)!==null&&ct!==void 0?ct:bt,Qt=Kt==null;Qt&&(Kt="tmp_key-".concat([].concat((0,Re.Z)(Qe),[yt]).join("-")));var nn={key:Kt,eventKey:Kt};return c.cloneElement(ut,nn)}return ut})}var Pe=_(35593),Yt={adjustX:1,adjustY:1},mn={topLeft:{points:["bl","tl"],overflow:Yt},topRight:{points:["br","tr"],overflow:Yt},bottomLeft:{points:["tl","bl"],overflow:Yt},bottomRight:{points:["tr","br"],overflow:Yt},leftTop:{points:["tr","tl"],overflow:Yt},leftBottom:{points:["br","bl"],overflow:Yt},rightTop:{points:["tl","tr"],overflow:Yt},rightBottom:{points:["bl","br"],overflow:Yt}},wn={topLeft:{points:["bl","tl"],overflow:Yt},topRight:{points:["br","tr"],overflow:Yt},bottomLeft:{points:["tl","bl"],overflow:Yt},bottomRight:{points:["tr","br"],overflow:Yt},rightTop:{points:["tr","tl"],overflow:Yt},rightBottom:{points:["br","bl"],overflow:Yt},leftTop:{points:["tl","tr"],overflow:Yt},leftBottom:{points:["bl","br"],overflow:Yt}},Hn=null;function $t(Ye,Qe,ut){if(Qe)return Qe;if(ut)return ut[Ye]||ut.other}var qt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function $e(Ye){var Qe=Ye.prefixCls,ut=Ye.visible,yt=Ye.children,ct=Ye.popup,Et=Ye.popupStyle,bt=Ye.popupClassName,Kt=Ye.popupOffset,Qt=Ye.disabled,nn=Ye.mode,Cn=Ye.onVisibleChange,Rn=c.useContext(H),On=Rn.getPopupContainer,on=Rn.rtl,Xt=Rn.subMenuOpenDelay,$n=Rn.subMenuCloseDelay,Sn=Rn.builtinPlacements,Qn=Rn.triggerSubMenuAction,An=Rn.forceSubMenuRender,kn=Rn.rootClassName,Kn=Rn.motion,In=Rn.defaultMotions,qn=c.useState(!1),fr=(0,V.Z)(qn,2),Tn=fr[0],Jt=fr[1],ze=on?(0,te.Z)((0,te.Z)({},wn),Sn):(0,te.Z)((0,te.Z)({},mn),Sn),fn=qt[nn],Pn=$t(nn,Kn,In),Vn=c.useRef(Pn);nn!=="inline"&&(Vn.current=Pn);var Yn=(0,te.Z)((0,te.Z)({},Vn.current),{},{leavedClassName:"".concat(Qe,"-hidden"),removeOnLeave:!1,motionAppear:!0}),rr=c.useRef();return c.useEffect(function(){return rr.current=(0,Ve.Z)(function(){Jt(ut)}),function(){Ve.Z.cancel(rr.current)}},[ut]),c.createElement(Pe.Z,{prefixCls:Qe,popupClassName:Ee()("".concat(Qe,"-popup"),(0,N.Z)({},"".concat(Qe,"-rtl"),on),bt,kn),stretch:nn==="horizontal"?"minWidth":null,getPopupContainer:On,builtinPlacements:ze,popupPlacement:fn,popupVisible:Tn,popup:ct,popupStyle:Et,popupAlign:Kt&&{offset:Kt},action:Qt?[]:[Qn],mouseEnterDelay:Xt,mouseLeaveDelay:$n,onPopupVisibleChange:Cn,forceRender:An,popupMotion:Yn,fresh:!0},yt)}var dt=_(77900);function Tt(Ye){var Qe=Ye.id,ut=Ye.open,yt=Ye.keyPath,ct=Ye.children,Et="inline",bt=c.useContext(H),Kt=bt.prefixCls,Qt=bt.forceSubMenuRender,nn=bt.motion,Cn=bt.defaultMotions,Rn=bt.mode,On=c.useRef(!1);On.current=Rn===Et;var on=c.useState(!On.current),Xt=(0,V.Z)(on,2),$n=Xt[0],Sn=Xt[1],Qn=On.current?ut:!1;c.useEffect(function(){On.current&&Sn(!1)},[Rn]);var An=(0,te.Z)({},$t(Et,nn,Cn));yt.length>1&&(An.motionAppear=!1);var kn=An.onVisibleChanged;return An.onVisibleChanged=function(Kn){return!On.current&&!Kn&&Sn(!0),kn==null?void 0:kn(Kn)},$n?null:c.createElement(b,{mode:Et,locked:!On.current},c.createElement(dt.default,(0,P.Z)({visible:Qn},An,{forceRender:Qt,removeOnLeave:!1,leavedClassName:"".concat(Kt,"-hidden")}),function(Kn){var In=Kn.className,qn=Kn.style;return c.createElement(Be,{id:Qe,className:In,style:qn},ct)}))}var Le=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ve=["active"],rt=function(Qe){var ut,yt=Qe.style,ct=Qe.className,Et=Qe.title,bt=Qe.eventKey,Kt=Qe.warnKey,Qt=Qe.disabled,nn=Qe.internalPopupClose,Cn=Qe.children,Rn=Qe.itemIcon,On=Qe.expandIcon,on=Qe.popupClassName,Xt=Qe.popupOffset,$n=Qe.popupStyle,Sn=Qe.onClick,Qn=Qe.onMouseEnter,An=Qe.onMouseLeave,kn=Qe.onTitleClick,Kn=Qe.onTitleMouseEnter,In=Qe.onTitleMouseLeave,qn=(0,ce.Z)(Qe,Le),fr=se(bt),Tn=c.useContext(H),Jt=Tn.prefixCls,ze=Tn.mode,fn=Tn.openKeys,Pn=Tn.disabled,Vn=Tn.overflowDisabled,Yn=Tn.activeKey,rr=Tn.selectedKeys,sr=Tn.itemIcon,Un=Tn.expandIcon,ar=Tn.onItemClick,vn=Tn.onOpenChange,en=Tn.onActive,Dn=c.useContext(q),Jn=Dn._internalRenderSubMenuItem,or=c.useContext(Oe),Pr=or.isSubPathKey,_n=Ie(),cr="".concat(Jt,"-submenu"),lr=Pn||Qt,Er=c.useRef(),Mr=c.useRef(),Br=Rn!=null?Rn:sr,_r=On!=null?On:Un,Tr=fn.includes(bt),wr=!Vn&&Tr,Jr=Pr(rr,bt),Yr=_t(bt,lr,Kn,In),ii=Yr.active,kr=(0,ce.Z)(Yr,ve),ei=c.useState(!1),ir=(0,V.Z)(ei,2),ci=ir[0],yi=ir[1],di=function($r){lr||yi($r)},Ar=function($r){di(!0),Qn==null||Qn({key:bt,domEvent:$r})},fi=function($r){di(!1),An==null||An({key:bt,domEvent:$r})},Ci=c.useMemo(function(){return ii||(ze!=="inline"?ci||Pr([Yn],bt):!1)},[ze,ii,Yn,ci,bt,Pr]),dn=It(_n.length),Qr=function($r){lr||(kn==null||kn({key:bt,domEvent:$r}),ze==="inline"&&vn(bt,!Tr))},oi=Z(function(Dr){Sn==null||Sn(C(Dr)),ar(Dr)}),Fn=function($r){ze!=="inline"&&vn(bt,$r)},Gn=function(){en(bt)},Mn=fr&&"".concat(fr,"-popup"),En=c.createElement("div",(0,P.Z)({role:"menuitem",style:dn,className:"".concat(cr,"-title"),tabIndex:lr?null:-1,ref:Er,title:typeof Et=="string"?Et:null,"data-menu-id":Vn&&fr?null:fr,"aria-expanded":wr,"aria-haspopup":!0,"aria-controls":Mn,"aria-disabled":lr,onClick:Qr,onFocus:Gn},kr),Et,c.createElement(Ct,{icon:ze!=="horizontal"?_r:void 0,props:(0,te.Z)((0,te.Z)({},Qe),{},{isOpen:wr,isSubMenu:!0})},c.createElement("i",{className:"".concat(cr,"-arrow")}))),tr=c.useRef(ze);if(ze!=="inline"&&_n.length>1?tr.current="vertical":tr.current=ze,!Vn){var hr=tr.current;En=c.createElement($e,{mode:hr,prefixCls:cr,visible:!nn&&wr&&ze!=="inline",popupClassName:on,popupOffset:Xt,popupStyle:$n,popup:c.createElement(b,{mode:hr==="horizontal"?"vertical":hr},c.createElement(Be,{id:Mn,ref:Mr},Cn)),disabled:lr,onVisibleChange:Fn},En)}var Hr=c.createElement(o.Z.Item,(0,P.Z)({role:"none"},qn,{component:"li",style:yt,className:Ee()(cr,"".concat(cr,"-").concat(ze),ct,(ut={},(0,N.Z)(ut,"".concat(cr,"-open"),wr),(0,N.Z)(ut,"".concat(cr,"-active"),Ci),(0,N.Z)(ut,"".concat(cr,"-selected"),Jr),(0,N.Z)(ut,"".concat(cr,"-disabled"),lr),ut)),onMouseEnter:Ar,onMouseLeave:fi}),En,!Vn&&c.createElement(Tt,{id:Mn,open:wr,keyPath:_n},Cn));return Jn&&(Hr=Jn(Hr,Qe,{selected:Jr,active:Ci,open:wr,disabled:lr})),c.createElement(b,{onItemClick:oi,mode:ze==="horizontal"?"vertical":ze,itemIcon:Br,expandIcon:_r},Hr)};function lt(Ye){var Qe=Ye.eventKey,ut=Ye.children,yt=Ie(Qe),ct=Ot(ut,yt),Et=X();c.useEffect(function(){if(Et)return Et.registerPath(Qe,yt),function(){Et.unregisterPath(Qe,yt)}},[yt]);var bt;return Et?bt=ct:bt=c.createElement(rt,Ye,ct),c.createElement(ge.Provider,{value:yt},bt)}var Nt=_(20135),Rt=["className","title","eventKey","children"],zt=["children"],Pt=function(Qe){var ut=Qe.className,yt=Qe.title,ct=Qe.eventKey,Et=Qe.children,bt=(0,ce.Z)(Qe,Rt),Kt=c.useContext(H),Qt=Kt.prefixCls,nn="".concat(Qt,"-item-group");return c.createElement("li",(0,P.Z)({role:"presentation"},bt,{onClick:function(Rn){return Rn.stopPropagation()},className:Ee()(nn,ut)}),c.createElement("div",{role:"presentation",className:"".concat(nn,"-title"),title:typeof yt=="string"?yt:void 0},yt),c.createElement("ul",{role:"group",className:"".concat(nn,"-list")},Et))};function Wt(Ye){var Qe=Ye.children,ut=(0,ce.Z)(Ye,zt),yt=Ie(ut.eventKey),ct=Ot(Qe,yt),Et=X();return Et?ct:c.createElement(Pt,(0,ht.Z)(ut,["warnKey"]),ct)}function ln(Ye){var Qe=Ye.className,ut=Ye.style,yt=c.useContext(H),ct=yt.prefixCls,Et=X();return Et?null:c.createElement("li",{role:"separator",className:Ee()("".concat(ct,"-item-divider"),Qe),style:ut})}var Lt=["label","children","key","type"];function ft(Ye){return(Ye||[]).map(function(Qe,ut){if(Qe&&(0,Nt.Z)(Qe)==="object"){var yt=Qe,ct=yt.label,Et=yt.children,bt=yt.key,Kt=yt.type,Qt=(0,ce.Z)(yt,Lt),nn=bt!=null?bt:"tmp-".concat(ut);return Et||Kt==="group"?Kt==="group"?c.createElement(Wt,(0,P.Z)({key:nn},Qt,{title:ct}),ft(Et)):c.createElement(lt,(0,P.Z)({key:nn},Qt,{title:ct}),ft(Et)):Kt==="divider"?c.createElement(ln,(0,P.Z)({key:nn},Qt)):c.createElement(Ze,(0,P.Z)({key:nn},Qt),ct)}return null}).filter(function(Qe){return Qe})}function jt(Ye,Qe,ut){var yt=Ye;return Qe&&(yt=ft(Qe)),Ot(yt,ut)}var Ut=["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"],Zt=[],un=c.forwardRef(function(Ye,Qe){var ut,yt,ct=Ye,Et=ct.prefixCls,bt=Et===void 0?"rc-menu":Et,Kt=ct.rootClassName,Qt=ct.style,nn=ct.className,Cn=ct.tabIndex,Rn=Cn===void 0?0:Cn,On=ct.items,on=ct.children,Xt=ct.direction,$n=ct.id,Sn=ct.mode,Qn=Sn===void 0?"vertical":Sn,An=ct.inlineCollapsed,kn=ct.disabled,Kn=ct.disabledOverflow,In=ct.subMenuOpenDelay,qn=In===void 0?.1:In,fr=ct.subMenuCloseDelay,Tn=fr===void 0?.1:fr,Jt=ct.forceSubMenuRender,ze=ct.defaultOpenKeys,fn=ct.openKeys,Pn=ct.activeKey,Vn=ct.defaultActiveFirst,Yn=ct.selectable,rr=Yn===void 0?!0:Yn,sr=ct.multiple,Un=sr===void 0?!1:sr,ar=ct.defaultSelectedKeys,vn=ct.selectedKeys,en=ct.onSelect,Dn=ct.onDeselect,Jn=ct.inlineIndent,or=Jn===void 0?24:Jn,Pr=ct.motion,_n=ct.defaultMotions,cr=ct.triggerSubMenuAction,lr=cr===void 0?"hover":cr,Er=ct.builtinPlacements,Mr=ct.itemIcon,Br=ct.expandIcon,_r=ct.overflowedIndicator,Tr=_r===void 0?"...":_r,wr=ct.overflowedIndicatorPopupClassName,Jr=ct.getPopupContainer,Yr=ct.onClick,ii=ct.onOpenChange,kr=ct.onKeyDown,ei=ct.openAnimation,ir=ct.openTransitionName,ci=ct._internalRenderMenuItem,yi=ct._internalRenderSubMenuItem,di=(0,ce.Z)(ct,Ut),Ar=c.useMemo(function(){return jt(on,On,Zt)},[on,On]),fi=c.useState(!1),Ci=(0,V.Z)(fi,2),dn=Ci[0],Qr=Ci[1],oi=c.useRef(),Fn=Ae($n),Gn=Xt==="rtl",Mn=(0,R.Z)(ze,{value:fn,postState:function(Lr){return Lr||Zt}}),En=(0,V.Z)(Mn,2),tr=En[0],hr=En[1],Hr=function(Lr){var Rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ri(){hr(Lr),ii==null||ii(Lr)}Rr?(0,w.flushSync)(ri):ri()},Dr=c.useState(tr),$r=(0,V.Z)(Dr,2),Gr=$r[0],bi=$r[1],xi=c.useRef(!1),Hi=c.useMemo(function(){return(Qn==="inline"||Qn==="vertical")&&An?["vertical",An]:[Qn,!1]},[Qn,An]),Fi=(0,V.Z)(Hi,2),mi=Fi[0],Bn=Fi[1],Nn=mi==="inline",dr=c.useState(mi),Wr=(0,V.Z)(dr,2),Sr=Wr[0],pi=Wr[1],Wi=c.useState(Bn),ji=(0,V.Z)(Wi,2),Ti=ji[0],ss=ji[1];c.useEffect(function(){pi(mi),ss(Bn),xi.current&&(Nn?hr(Gr):Hr(Zt))},[mi,Bn]);var as=c.useState(0),os=(0,V.Z)(as,2),es=os[0],ls=os[1],Pi=es>=Ar.length-1||Sr!=="horizontal"||Kn;c.useEffect(function(){Nn&&bi(tr)},[tr]),c.useEffect(function(){return xi.current=!0,function(){xi.current=!1}},[]);var ni=he(),us=ni.registerPath,ts=ni.unregisterPath,Ei=ni.refreshOverflowKeys,Ai=ni.isSubPathKey,xr=ni.getKeyPath,nr=ni.getKeys,li=ni.getSubPathKeys,ui=c.useMemo(function(){return{registerPath:us,unregisterPath:ts}},[us,ts]),Zr=c.useMemo(function(){return{isSubPathKey:Ai}},[Ai]);c.useEffect(function(){Ei(Pi?Zt:Ar.slice(es+1).map(function(Nr){return Nr.key}))},[es,Pi]);var wi=(0,R.Z)(Pn||Vn&&((ut=Ar[0])===null||ut===void 0?void 0:ut.key),{value:Pn}),Ir=(0,V.Z)(wi,2),Bi=Ir[0],gi=Ir[1],Oi=Z(function(Nr){gi(Nr)}),$i=Z(function(){gi(void 0)});(0,c.useImperativeHandle)(Qe,function(){return{list:oi.current,focus:function(Lr){var Rr,ri=nr(),si=k(ri,Fn),hs=si.elements,Rs=si.key2element,Ns=si.element2key,Fs=oe(oi.current,hs),ds=Bi!=null?Bi:Fs[0]?Ns.get(Fs[0]):(Rr=Ar.find(function(bs){return!bs.props.disabled}))===null||Rr===void 0?void 0:Rr.key,ns=Rs.get(ds);if(ds&&ns){var tn;ns==null||(tn=ns.focus)===null||tn===void 0||tn.call(ns,Lr)}}}});var Or=(0,R.Z)(ar||[],{value:vn,postState:function(Lr){return Array.isArray(Lr)?Lr:Lr==null?Zt:[Lr]}}),gs=(0,V.Z)(Or,2),Di=gs[0],cs=gs[1],ea=function(Lr){if(rr){var Rr=Lr.key,ri=Di.includes(Rr),si;Un?ri?si=Di.filter(function(Rs){return Rs!==Rr}):si=[].concat((0,Re.Z)(Di),[Rr]):si=[Rr],cs(si);var hs=(0,te.Z)((0,te.Z)({},Lr),{},{selectedKeys:si});ri?Dn==null||Dn(hs):en==null||en(hs)}!Un&&tr.length&&Sr!=="inline"&&Hr(Zt)},vs=Z(function(Nr){Yr==null||Yr(C(Nr)),ea(Nr)}),_s=Z(function(Nr,Lr){var Rr=tr.filter(function(si){return si!==Nr});if(Lr)Rr.push(Nr);else if(Sr!=="inline"){var ri=li(Nr);Rr=Rr.filter(function(si){return!ri.has(si)})}(0,M.Z)(tr,Rr,!0)||Hr(Rr,!0)}),ys=function(Lr,Rr){var ri=Rr!=null?Rr:!tr.includes(Lr);_s(Lr,ri)},As=de(Sr,Bi,Gn,Fn,oi,nr,xr,gi,ys,kr);c.useEffect(function(){Qr(!0)},[]);var Ms=c.useMemo(function(){return{_internalRenderMenuItem:ci,_internalRenderSubMenuItem:yi}},[ci,yi]),zi=Sr!=="horizontal"||Kn?Ar:Ar.map(function(Nr,Lr){return c.createElement(b,{key:Nr.key,overflowDisabled:Lr>es},Nr)}),Ds=c.createElement(o.Z,(0,P.Z)({id:$n,ref:oi,prefixCls:"".concat(bt,"-overflow"),component:"ul",itemComponent:Ze,className:Ee()(bt,"".concat(bt,"-root"),"".concat(bt,"-").concat(Sr),nn,(yt={},(0,N.Z)(yt,"".concat(bt,"-inline-collapsed"),Ti),(0,N.Z)(yt,"".concat(bt,"-rtl"),Gn),yt),Kt),dir:Xt,style:Qt,role:"menu",tabIndex:Rn,data:zi,renderRawItem:function(Lr){return Lr},renderRawRest:function(Lr){var Rr=Lr.length,ri=Rr?Ar.slice(-Rr):null;return c.createElement(lt,{eventKey:ue,title:Tr,disabled:Pi,internalPopupClose:Rr===0,popupClassName:wr},ri)},maxCount:Sr!=="horizontal"||Kn?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Lr){ls(Lr)},onKeyDown:As},di));return c.createElement(q.Provider,{value:Ms},c.createElement(v.Provider,{value:Fn},c.createElement(b,{prefixCls:bt,rootClassName:Kt,mode:Sr,openKeys:tr,rtl:Gn,disabled:kn,motion:dn?Pr:null,defaultMotions:dn?_n:null,activeKey:Bi,onActive:Oi,onInactive:$i,selectedKeys:Di,inlineIndent:or,subMenuOpenDelay:qn,subMenuCloseDelay:Tn,forceSubMenuRender:Jt,builtinPlacements:Er,triggerSubMenuAction:lr,getPopupContainer:Jr,itemIcon:Mr,expandIcon:Br,onItemClick:vs,onOpenChange:_s},c.createElement(Oe.Provider,{value:Zr},Ds),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(B.Provider,{value:ui},Ar)))))}),zn=un,gn=zn;gn.Item=Ze,gn.SubMenu=lt,gn.ItemGroup=Wt,gn.Divider=ln;var Bt=gn},11780:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return re}});var P=_(96663),N=_(44127),te=_(72071),Re=_(6620),V=_(59301),ce=_(92310),_e=_.n(ce),Ee=_(29301),o=_(34280),R=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],M=void 0;function g(x,S){var Q=x.prefixCls,be=x.invalidate,Ve=x.item,tt=x.renderItem,Je=x.responsive,et=x.responsiveDisabled,xt=x.registerSize,gt=x.itemKey,st=x.className,kt=x.style,Ft=x.children,cn=x.display,Vt=x.order,it=x.component,At=it===void 0?"div":it,oe=(0,Re.Z)(x,R),me=Je&&!cn;function k(O){xt(gt,O)}V.useEffect(function(){return function(){k(null)}},[]);var de=tt&&Ve!==M?tt(Ve,{index:Vt}):Ft,we;be||(we={opacity:me?0:1,height:me?0:M,overflowY:me?"hidden":M,order:Je?Vt:M,pointerEvents:me?"none":M,position:me?"absolute":M});var L={};me&&(L["aria-hidden"]=!0);var T=V.createElement(At,(0,P.Z)({className:_e()(!be&&Q,st),style:(0,N.Z)((0,N.Z)({},we),kt)},L,oe,{ref:S}),de);return Je&&(T=V.createElement(Ee.Z,{onResize:function(ue){var he=ue.offsetWidth;k(he)},disabled:et},T)),T}var c=V.forwardRef(g);c.displayName="Item";var w=c,v=_(6089),Y=_(4676),se=_(16089);function K(x){if(typeof MessageChannel=="undefined")(0,se.Z)(x);else{var S=new MessageChannel;S.port1.onmessage=function(){return x()},S.port2.postMessage(void 0)}}function F(){var x=V.useRef(null),S=function(be){x.current||(x.current=[],K(function(){(0,Y.unstable_batchedUpdates)(function(){x.current.forEach(function(Ve){Ve()}),x.current=null})})),x.current.push(be)};return S}function H(x,S){var Q=V.useState(S),be=(0,te.Z)(Q,2),Ve=be[0],tt=be[1],Je=(0,v.Z)(function(et){x(function(){tt(et)})});return[Ve,Je]}var ne=V.createContext(null),b=["component"],A=["className"],B=["className"],X=function(S,Q){var be=V.useContext(ne);if(!be){var Ve=S.component,tt=Ve===void 0?"div":Ve,Je=(0,Re.Z)(S,b);return V.createElement(tt,(0,P.Z)({},Je,{ref:Q}))}var et=be.className,xt=(0,Re.Z)(be,A),gt=S.className,st=(0,Re.Z)(S,B);return V.createElement(ne.Provider,{value:null},V.createElement(w,(0,P.Z)({ref:Q,className:_e()(et,gt)},xt,st)))},ge=V.forwardRef(X);ge.displayName="RawItem";var Ie=ge,Oe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],He="responsive",q="invalidate";function $(x){return"+ ".concat(x.length," ...")}function ae(x,S){var Q=x.prefixCls,be=Q===void 0?"rc-overflow":Q,Ve=x.data,tt=Ve===void 0?[]:Ve,Je=x.renderItem,et=x.renderRawItem,xt=x.itemKey,gt=x.itemWidth,st=gt===void 0?10:gt,kt=x.ssr,Ft=x.style,cn=x.className,Vt=x.maxCount,it=x.renderRest,At=x.renderRawRest,oe=x.suffix,me=x.component,k=me===void 0?"div":me,de=x.itemComponent,we=x.onVisibleChange,L=(0,Re.Z)(x,Oe),T=kt==="full",O=F(),ue=H(O,null),he=(0,te.Z)(ue,2),Z=he[0],De=he[1],Ue=Z||0,Ae=H(O,new Map),Ne=(0,te.Z)(Ae,2),We=Ne[0],Xe=Ne[1],qe=H(O,0),ht=(0,te.Z)(qe,2),St=ht[0],_t=ht[1],It=H(O,0),Ct=(0,te.Z)(It,2),y=Ct[0],C=Ct[1],ot=H(O,0),W=(0,te.Z)(ot,2),Ce=W[0],yn=W[1],Me=(0,V.useState)(null),Ke=(0,te.Z)(Me,2),Ze=Ke[0],J=Ke[1],fe=(0,V.useState)(null),Te=(0,te.Z)(fe,2),Be=Te[0],G=Te[1],Ot=V.useMemo(function(){return Be===null&&T?Number.MAX_SAFE_INTEGER:Be||0},[Be,Z]),Pe=(0,V.useState)(!1),Yt=(0,te.Z)(Pe,2),mn=Yt[0],wn=Yt[1],Hn="".concat(be,"-item"),$t=Math.max(St,y),qt=Vt===He,$e=tt.length&&qt,dt=Vt===q,Tt=$e||typeof Vt=="number"&&tt.length>Vt,Le=(0,V.useMemo)(function(){var Bt=tt;return $e?Z===null&&T?Bt=tt:Bt=tt.slice(0,Math.min(tt.length,Ue/st)):typeof Vt=="number"&&(Bt=tt.slice(0,Vt)),Bt},[tt,st,Z,Vt,$e]),ve=(0,V.useMemo)(function(){return $e?tt.slice(Ot+1):tt.slice(Le.length)},[tt,Le,$e,Ot]),rt=(0,V.useCallback)(function(Bt,Ye){var Qe;return typeof xt=="function"?xt(Bt):(Qe=xt&&(Bt==null?void 0:Bt[xt]))!==null&&Qe!==void 0?Qe:Ye},[xt]),lt=(0,V.useCallback)(Je||function(Bt){return Bt},[Je]);function Nt(Bt,Ye,Qe){Be===Bt&&(Ye===void 0||Ye===Ze)||(G(Bt),Qe||(wn(Bt<tt.length-1),we==null||we(Bt)),Ye!==void 0&&J(Ye))}function Rt(Bt,Ye){De(Ye.clientWidth)}function zt(Bt,Ye){Xe(function(Qe){var ut=new Map(Qe);return Ye===null?ut.delete(Bt):ut.set(Bt,Ye),ut})}function Pt(Bt,Ye){C(Ye),_t(y)}function Wt(Bt,Ye){yn(Ye)}function ln(Bt){return We.get(rt(Le[Bt],Bt))}(0,o.Z)(function(){if(Ue&&typeof $t=="number"&&Le){var Bt=Ce,Ye=Le.length,Qe=Ye-1;if(!Ye){Nt(0,null);return}for(var ut=0;ut<Ye;ut+=1){var yt=ln(ut);if(T&&(yt=yt||0),yt===void 0){Nt(ut-1,void 0,!0);break}if(Bt+=yt,Qe===0&&Bt<=Ue||ut===Qe-1&&Bt+ln(Qe)<=Ue){Nt(Qe,null);break}else if(Bt+$t>Ue){Nt(ut-1,Bt-yt-Ce+y);break}}oe&&ln(0)+Ce>Ue&&J(null)}},[Ue,We,y,Ce,rt,Le]);var Lt=mn&&!!ve.length,ft={};Ze!==null&&$e&&(ft={position:"absolute",left:Ze,top:0});var jt={prefixCls:Hn,responsive:$e,component:de,invalidate:dt},Ut=et?function(Bt,Ye){var Qe=rt(Bt,Ye);return V.createElement(ne.Provider,{key:Qe,value:(0,N.Z)((0,N.Z)({},jt),{},{order:Ye,item:Bt,itemKey:Qe,registerSize:zt,display:Ye<=Ot})},et(Bt,Ye))}:function(Bt,Ye){var Qe=rt(Bt,Ye);return V.createElement(w,(0,P.Z)({},jt,{order:Ye,key:Qe,item:Bt,renderItem:lt,itemKey:Qe,registerSize:zt,display:Ye<=Ot}))},Zt={order:Lt?Ot:Number.MAX_SAFE_INTEGER,className:"".concat(Hn,"-rest"),registerSize:Pt,display:Lt},un=it||$,zn=At?V.createElement(ne.Provider,{value:(0,N.Z)((0,N.Z)({},jt),Zt)},At(ve)):V.createElement(w,(0,P.Z)({},jt,Zt),typeof un=="function"?un(ve):un),gn=V.createElement(k,(0,P.Z)({className:_e()(!dt&&be,cn),style:Ft,ref:S},L),Le.map(Ut),Tt?zn:null,oe&&V.createElement(w,(0,P.Z)({},jt,{responsive:qt,responsiveDisabled:!$e,order:Ot,className:"".concat(Hn,"-suffix"),registerSize:Wt,display:!0,style:ft}),oe));return qt?V.createElement(Ee.Z,{onResize:Rt,disabled:!$e},gn):gn}var ee=V.forwardRef(ae);ee.displayName="Overflow",ee.Item=Ie,ee.RESPONSIVE=He,ee.INVALIDATE=q;var ye=ee,re=ye},29301:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return q}});var P=_(96663),N=_(59301),te=_(11592),Re=_(48736),V=_(44127),ce=_(20135),_e=_(76846),Ee=_(8654),o=N.createContext(null);function R($){var ae=$.children,ee=$.onBatchResize,ye=N.useRef(0),re=N.useRef([]),x=N.useContext(o),S=N.useCallback(function(Q,be,Ve){ye.current+=1;var tt=ye.current;re.current.push({size:Q,element:be,data:Ve}),Promise.resolve().then(function(){tt===ye.current&&(ee==null||ee(re.current),re.current=[])}),x==null||x(Q,be,Ve)},[ee,x]);return N.createElement(o.Provider,{value:S},ae)}var M=_(76374),g=new Map;function c($){$.forEach(function(ae){var ee,ye=ae.target;(ee=g.get(ye))===null||ee===void 0||ee.forEach(function(re){return re(ye)})})}var w=new M.Z(c),v=null,Y=null;function se($,ae){g.has($)||(g.set($,new Set),w.observe($)),g.get($).add(ae)}function K($,ae){g.has($)&&(g.get($).delete(ae),g.get($).size||(w.unobserve($),g.delete($)))}var F=_(52884),H=_(95727),ne=_(65711),b=_(85745),A=function($){(0,ne.Z)(ee,$);var ae=(0,b.Z)(ee);function ee(){return(0,F.Z)(this,ee),ae.apply(this,arguments)}return(0,H.Z)(ee,[{key:"render",value:function(){return this.props.children}}]),ee}(N.Component);function B($,ae){var ee=$.children,ye=$.disabled,re=N.useRef(null),x=N.useRef(null),S=N.useContext(o),Q=typeof ee=="function",be=Q?ee(re):ee,Ve=N.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),tt=!Q&&N.isValidElement(be)&&(0,Ee.Yr)(be),Je=tt?(0,Ee.C4)(be):null,et=(0,Ee.x1)(Je,re),xt=function(){var Ft;return(0,_e.ZP)(re.current)||(re.current&&(0,ce.Z)(re.current)==="object"?(0,_e.ZP)((Ft=re.current)===null||Ft===void 0?void 0:Ft.nativeElement):null)||(0,_e.ZP)(x.current)};N.useImperativeHandle(ae,function(){return xt()});var gt=N.useRef($);gt.current=$;var st=N.useCallback(function(kt){var Ft=gt.current,cn=Ft.onResize,Vt=Ft.data,it=kt.getBoundingClientRect(),At=it.width,oe=it.height,me=kt.offsetWidth,k=kt.offsetHeight,de=Math.floor(At),we=Math.floor(oe);if(Ve.current.width!==de||Ve.current.height!==we||Ve.current.offsetWidth!==me||Ve.current.offsetHeight!==k){var L={width:de,height:we,offsetWidth:me,offsetHeight:k};Ve.current=L;var T=me===Math.round(At)?At:me,O=k===Math.round(oe)?oe:k,ue=(0,V.Z)((0,V.Z)({},L),{},{offsetWidth:T,offsetHeight:O});S==null||S(ue,kt,Vt),cn&&Promise.resolve().then(function(){cn(ue,kt)})}},[]);return N.useEffect(function(){var kt=xt();return kt&&!ye&&se(kt,st),function(){return K(kt,st)}},[re.current,ye]),N.createElement(A,{ref:x},tt?N.cloneElement(be,{ref:et}):be)}var X=N.forwardRef(B),ge=X,Ie="rc-observer-key";function Oe($,ae){var ee=$.children,ye=typeof ee=="function"?[ee]:(0,te.Z)(ee);return ye.map(function(re,x){var S=(re==null?void 0:re.key)||"".concat(Ie,"-").concat(x);return N.createElement(ge,(0,P.Z)({},$,{key:S,ref:x===0?ae:void 0}),re)})}var He=N.forwardRef(Oe);He.Collection=R;var q=He},17115:function(rn,nt,_){"use strict";_.d(nt,{ZP:function(){return _e}});var P=_(72071),N=_(59301),te=_(47273),Re=0,V=(0,te.Z)();function ce(){var Ee;return V?(Ee=Re,Re+=1):Ee="TEST_OR_SSR",Ee}function _e(Ee){var o=N.useState(),R=(0,P.Z)(o,2),M=R[0],g=R[1];return N.useEffect(function(){g("rc_select_".concat(ce()))},[]),Ee||M}},77861:function(rn,nt,_){"use strict";_.d(nt,{Ac:function(){return De},Xo:function(){return C},Wx:function(){return W},ZP:function(){return Tt},lk:function(){return ne}});var P=_(96663),N=_(19127),te=_(90493),Re=_(44127),V=_(72071),ce=_(6620),_e=_(20135),Ee=_(18929),o=_(48736),R=_(59301),M=_(92310),g=_.n(M),c=_(34280),w=_(49658),v=_(10228),Y=_(8654),se=function(ve){var rt=ve.className,lt=ve.customizeIcon,Nt=ve.customizeIconProps,Rt=ve.onMouseDown,zt=ve.onClick,Pt=ve.children,Wt;return typeof lt=="function"?Wt=lt(Nt):Wt=lt,R.createElement("span",{className:rt,onMouseDown:function(Lt){Lt.preventDefault(),Rt&&Rt(Lt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:zt,"aria-hidden":!0},Wt!==void 0?Wt:R.createElement("span",{className:g()(rt.split(/\s+/).map(function(ln){return"".concat(ln,"-icon")}))},Pt))},K=se;function F(Le,ve,rt,lt,Nt){var Rt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,zt=arguments.length>6?arguments[6]:void 0,Pt=arguments.length>7?arguments[7]:void 0,Wt=R.useMemo(function(){if((0,_e.Z)(lt)==="object")return lt.clearIcon;if(Nt)return Nt},[lt,Nt]),ln=R.useMemo(function(){return!!(!Rt&<&&(rt.length||zt)&&!(Pt==="combobox"&&zt===""))},[lt,Rt,rt.length,zt,Pt]);return{allowClear:ln,clearIcon:R.createElement(K,{className:"".concat(Le,"-clear"),onMouseDown:ve,customizeIcon:Wt},"\xD7")}}var H=R.createContext(null);function ne(){return R.useContext(H)}function b(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ve=R.useState(!1),rt=(0,V.Z)(ve,2),lt=rt[0],Nt=rt[1],Rt=R.useRef(null),zt=function(){window.clearTimeout(Rt.current)};R.useEffect(function(){return zt},[]);var Pt=function(ln,Lt){zt(),Rt.current=window.setTimeout(function(){Nt(ln),Lt&&Lt()},Le)};return[lt,Pt,zt]}function A(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ve=R.useRef(null),rt=R.useRef(null);R.useEffect(function(){return function(){window.clearTimeout(rt.current)}},[]);function lt(Nt){(Nt||ve.current===null)&&(ve.current=Nt),window.clearTimeout(rt.current),rt.current=window.setTimeout(function(){ve.current=null},Le)}return[function(){return ve.current},lt]}function B(Le,ve,rt,lt){var Nt=R.useRef(null);Nt.current={open:ve,triggerOpen:rt,customizedTrigger:lt},R.useEffect(function(){function Rt(zt){var Pt;if(!((Pt=Nt.current)!==null&&Pt!==void 0&&Pt.customizedTrigger)){var Wt=zt.target;Wt.shadowRoot&&zt.composed&&(Wt=zt.composedPath()[0]||Wt),Nt.current.open&&Le().filter(function(ln){return ln}).every(function(ln){return!ln.contains(Wt)&&ln!==Wt})&&Nt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Rt),function(){return window.removeEventListener("mousedown",Rt)}},[])}var X=_(26112),ge=_(11780),Ie=function(ve,rt){var lt,Nt,Rt=ve.prefixCls,zt=ve.id,Pt=ve.inputElement,Wt=ve.disabled,ln=ve.tabIndex,Lt=ve.autoFocus,ft=ve.autoComplete,jt=ve.editable,Ut=ve.activeDescendantId,Zt=ve.value,un=ve.maxLength,zn=ve.onKeyDown,gn=ve.onMouseDown,Bt=ve.onChange,Ye=ve.onPaste,Qe=ve.onCompositionStart,ut=ve.onCompositionEnd,yt=ve.open,ct=ve.attrs,Et=Pt||R.createElement("input",null),bt=Et,Kt=bt.ref,Qt=bt.props,nn=Qt.onKeyDown,Cn=Qt.onChange,Rn=Qt.onMouseDown,On=Qt.onCompositionStart,on=Qt.onCompositionEnd,Xt=Qt.style;return(0,o.Kp)(!("maxLength"in Et.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Et=R.cloneElement(Et,(0,Re.Z)((0,Re.Z)((0,Re.Z)({type:"search"},Qt),{},{id:zt,ref:(0,Y.sQ)(rt,Kt),disabled:Wt,tabIndex:ln,autoComplete:ft||"off",autoFocus:Lt,className:g()("".concat(Rt,"-selection-search-input"),(lt=Et)===null||lt===void 0||(Nt=lt.props)===null||Nt===void 0?void 0:Nt.className),role:"combobox","aria-label":"Search","aria-expanded":yt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(zt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(zt,"_list"),"aria-activedescendant":yt?Ut:void 0},ct),{},{value:jt?Zt:"",maxLength:un,readOnly:!jt,unselectable:jt?null:"on",style:(0,Re.Z)((0,Re.Z)({},Xt),{},{opacity:jt?null:0}),onKeyDown:function(Sn){zn(Sn),nn&&nn(Sn)},onMouseDown:function(Sn){gn(Sn),Rn&&Rn(Sn)},onChange:function(Sn){Bt(Sn),Cn&&Cn(Sn)},onCompositionStart:function(Sn){Qe(Sn),On&&On(Sn)},onCompositionEnd:function(Sn){ut(Sn),on&&on(Sn)},onPaste:Ye})),Et},Oe=R.forwardRef(Ie);Oe.displayName="Input";var He=Oe;function q(Le){return Array.isArray(Le)?Le:Le!==void 0?[Le]:[]}var $=typeof window!="undefined"&&window.document&&window.document.documentElement,ae=$;function ee(Le){return Le!=null}function ye(Le){return!Le&&Le!==0}function re(Le){return["string","number"].includes((0,_e.Z)(Le))}function x(Le){var ve=void 0;return Le&&(re(Le.title)?ve=Le.title.toString():re(Le.label)&&(ve=Le.label.toString())),ve}function S(Le,ve){ae?R.useLayoutEffect(Le,ve):R.useEffect(Le,ve)}function Q(Le){var ve;return(ve=Le.key)!==null&&ve!==void 0?ve:Le.value}var be=function(ve){ve.preventDefault(),ve.stopPropagation()},Ve=function(ve){var rt=ve.id,lt=ve.prefixCls,Nt=ve.values,Rt=ve.open,zt=ve.searchValue,Pt=ve.autoClearSearchValue,Wt=ve.inputRef,ln=ve.placeholder,Lt=ve.disabled,ft=ve.mode,jt=ve.showSearch,Ut=ve.autoFocus,Zt=ve.autoComplete,un=ve.activeDescendantId,zn=ve.tabIndex,gn=ve.removeIcon,Bt=ve.maxTagCount,Ye=ve.maxTagTextLength,Qe=ve.maxTagPlaceholder,ut=Qe===void 0?function(Yn){return"+ ".concat(Yn.length," ...")}:Qe,yt=ve.tagRender,ct=ve.onToggleOpen,Et=ve.onRemove,bt=ve.onInputChange,Kt=ve.onInputPaste,Qt=ve.onInputKeyDown,nn=ve.onInputMouseDown,Cn=ve.onInputCompositionStart,Rn=ve.onInputCompositionEnd,On=R.useRef(null),on=(0,R.useState)(0),Xt=(0,V.Z)(on,2),$n=Xt[0],Sn=Xt[1],Qn=(0,R.useState)(!1),An=(0,V.Z)(Qn,2),kn=An[0],Kn=An[1],In="".concat(lt,"-selection"),qn=Rt||ft==="multiple"&&Pt===!1||ft==="tags"?zt:"",fr=ft==="tags"||ft==="multiple"&&Pt===!1||jt&&(Rt||kn);S(function(){Sn(On.current.scrollWidth)},[qn]);function Tn(Yn,rr,sr,Un,ar){return R.createElement("span",{className:g()("".concat(In,"-item"),(0,te.Z)({},"".concat(In,"-item-disabled"),sr)),title:x(Yn)},R.createElement("span",{className:"".concat(In,"-item-content")},rr),Un&&R.createElement(K,{className:"".concat(In,"-item-remove"),onMouseDown:be,onClick:ar,customizeIcon:gn},"\xD7"))}function Jt(Yn,rr,sr,Un,ar){var vn=function(Dn){be(Dn),ct(!Rt)};return R.createElement("span",{onMouseDown:vn},yt({label:rr,value:Yn,disabled:sr,closable:Un,onClose:ar}))}function ze(Yn){var rr=Yn.disabled,sr=Yn.label,Un=Yn.value,ar=!Lt&&!rr,vn=sr;if(typeof Ye=="number"&&(typeof sr=="string"||typeof sr=="number")){var en=String(vn);en.length>Ye&&(vn="".concat(en.slice(0,Ye),"..."))}var Dn=function(or){or&&or.stopPropagation(),Et(Yn)};return typeof yt=="function"?Jt(Un,vn,rr,ar,Dn):Tn(Yn,vn,rr,ar,Dn)}function fn(Yn){var rr=typeof ut=="function"?ut(Yn):ut;return Tn({title:rr},rr,!1)}var Pn=R.createElement("div",{className:"".concat(In,"-search"),style:{width:$n},onFocus:function(){Kn(!0)},onBlur:function(){Kn(!1)}},R.createElement(He,{ref:Wt,open:Rt,prefixCls:lt,id:rt,inputElement:null,disabled:Lt,autoFocus:Ut,autoComplete:Zt,editable:fr,activeDescendantId:un,value:qn,onKeyDown:Qt,onMouseDown:nn,onChange:bt,onPaste:Kt,onCompositionStart:Cn,onCompositionEnd:Rn,tabIndex:zn,attrs:(0,X.Z)(ve,!0)}),R.createElement("span",{ref:On,className:"".concat(In,"-search-mirror"),"aria-hidden":!0},qn,"\xA0")),Vn=R.createElement(ge.Z,{prefixCls:"".concat(In,"-overflow"),data:Nt,renderItem:ze,renderRest:fn,suffix:Pn,itemKey:Q,maxCount:Bt});return R.createElement(R.Fragment,null,Vn,!Nt.length&&!qn&&R.createElement("span",{className:"".concat(In,"-placeholder")},ln))},tt=Ve,Je=function(ve){var rt=ve.inputElement,lt=ve.prefixCls,Nt=ve.id,Rt=ve.inputRef,zt=ve.disabled,Pt=ve.autoFocus,Wt=ve.autoComplete,ln=ve.activeDescendantId,Lt=ve.mode,ft=ve.open,jt=ve.values,Ut=ve.placeholder,Zt=ve.tabIndex,un=ve.showSearch,zn=ve.searchValue,gn=ve.activeValue,Bt=ve.maxLength,Ye=ve.onInputKeyDown,Qe=ve.onInputMouseDown,ut=ve.onInputChange,yt=ve.onInputPaste,ct=ve.onInputCompositionStart,Et=ve.onInputCompositionEnd,bt=ve.title,Kt=R.useState(!1),Qt=(0,V.Z)(Kt,2),nn=Qt[0],Cn=Qt[1],Rn=Lt==="combobox",On=Rn||un,on=jt[0],Xt=zn||"";Rn&&gn&&!nn&&(Xt=gn),R.useEffect(function(){Rn&&Cn(!1)},[Rn,gn]);var $n=Lt!=="combobox"&&!ft&&!un?!1:!!Xt,Sn=bt===void 0?x(on):bt,Qn=function(){if(on)return null;var kn=$n?{visibility:"hidden"}:void 0;return R.createElement("span",{className:"".concat(lt,"-selection-placeholder"),style:kn},Ut)};return R.createElement(R.Fragment,null,R.createElement("span",{className:"".concat(lt,"-selection-search")},R.createElement(He,{ref:Rt,prefixCls:lt,id:Nt,open:ft,inputElement:rt,disabled:zt,autoFocus:Pt,autoComplete:Wt,editable:On,activeDescendantId:ln,value:Xt,onKeyDown:Ye,onMouseDown:Qe,onChange:function(kn){Cn(!0),ut(kn)},onPaste:yt,onCompositionStart:ct,onCompositionEnd:Et,tabIndex:Zt,attrs:(0,X.Z)(ve,!0),maxLength:Rn?Bt:void 0})),!Rn&&on?R.createElement("span",{className:"".concat(lt,"-selection-item"),title:Sn,style:$n?{visibility:"hidden"}:void 0},on.label):null,Qn())},et=Je;function xt(Le){return![v.Z.ESC,v.Z.SHIFT,v.Z.BACKSPACE,v.Z.TAB,v.Z.WIN_KEY,v.Z.ALT,v.Z.META,v.Z.WIN_KEY_RIGHT,v.Z.CTRL,v.Z.SEMICOLON,v.Z.EQUALS,v.Z.CAPS_LOCK,v.Z.CONTEXT_MENU,v.Z.F1,v.Z.F2,v.Z.F3,v.Z.F4,v.Z.F5,v.Z.F6,v.Z.F7,v.Z.F8,v.Z.F9,v.Z.F10,v.Z.F11,v.Z.F12].includes(Le)}var gt=function(ve,rt){var lt=(0,R.useRef)(null),Nt=(0,R.useRef)(!1),Rt=ve.prefixCls,zt=ve.open,Pt=ve.mode,Wt=ve.showSearch,ln=ve.tokenWithEnter,Lt=ve.autoClearSearchValue,ft=ve.onSearch,jt=ve.onSearchSubmit,Ut=ve.onToggleOpen,Zt=ve.onInputKeyDown,un=ve.domRef;R.useImperativeHandle(rt,function(){return{focus:function(){lt.current.focus()},blur:function(){lt.current.blur()}}});var zn=A(0),gn=(0,V.Z)(zn,2),Bt=gn[0],Ye=gn[1],Qe=function(Xt){var $n=Xt.which;($n===v.Z.UP||$n===v.Z.DOWN)&&Xt.preventDefault(),Zt&&Zt(Xt),$n===v.Z.ENTER&&Pt==="tags"&&!Nt.current&&!zt&&(jt==null||jt(Xt.target.value)),xt($n)&&Ut(!0)},ut=function(){Ye(!0)},yt=(0,R.useRef)(null),ct=function(Xt){ft(Xt,!0,Nt.current)!==!1&&Ut(!0)},Et=function(){Nt.current=!0},bt=function(Xt){Nt.current=!1,Pt!=="combobox"&&ct(Xt.target.value)},Kt=function(Xt){var $n=Xt.target.value;if(ln&&yt.current&&/[\r\n]/.test(yt.current)){var Sn=yt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$n=$n.replace(Sn,yt.current)}yt.current=null,ct($n)},Qt=function(Xt){var $n=Xt.clipboardData,Sn=$n.getData("text");yt.current=Sn},nn=function(Xt){var $n=Xt.target;if($n!==lt.current){var Sn=document.body.style.msTouchAction!==void 0;Sn?setTimeout(function(){lt.current.focus()}):lt.current.focus()}},Cn=function(Xt){var $n=Bt();Xt.target!==lt.current&&!$n&&Pt!=="combobox"&&Xt.preventDefault(),(Pt!=="combobox"&&(!Wt||!$n)||!zt)&&(zt&&Lt!==!1&&ft("",!0,!1),Ut())},Rn={inputRef:lt,onInputKeyDown:Qe,onInputMouseDown:ut,onInputChange:Kt,onInputPaste:Qt,onInputCompositionStart:Et,onInputCompositionEnd:bt},On=Pt==="multiple"||Pt==="tags"?R.createElement(tt,(0,P.Z)({},ve,Rn)):R.createElement(et,(0,P.Z)({},ve,Rn));return R.createElement("div",{ref:un,className:"".concat(Rt,"-selector"),onClick:nn,onMouseDown:Cn},On)},st=R.forwardRef(gt);st.displayName="Selector";var kt=st,Ft=_(35593),cn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Vt=function(ve){var rt=ve===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:rt,adjustY:1},htmlRegion:"scroll"}}},it=function(ve,rt){var lt=ve.prefixCls,Nt=ve.disabled,Rt=ve.visible,zt=ve.children,Pt=ve.popupElement,Wt=ve.animation,ln=ve.transitionName,Lt=ve.dropdownStyle,ft=ve.dropdownClassName,jt=ve.direction,Ut=jt===void 0?"ltr":jt,Zt=ve.placement,un=ve.builtinPlacements,zn=ve.dropdownMatchSelectWidth,gn=ve.dropdownRender,Bt=ve.dropdownAlign,Ye=ve.getPopupContainer,Qe=ve.empty,ut=ve.getTriggerDOMNode,yt=ve.onPopupVisibleChange,ct=ve.onPopupMouseEnter,Et=(0,ce.Z)(ve,cn),bt="".concat(lt,"-dropdown"),Kt=Pt;gn&&(Kt=gn(Pt));var Qt=R.useMemo(function(){return un||Vt(zn)},[un,zn]),nn=Wt?"".concat(bt,"-").concat(Wt):ln,Cn=typeof zn=="number",Rn=R.useMemo(function(){return Cn?null:zn===!1?"minWidth":"width"},[zn,Cn]),On=Lt;Cn&&(On=(0,Re.Z)((0,Re.Z)({},On),{},{width:zn}));var on=R.useRef(null);return R.useImperativeHandle(rt,function(){return{getPopupElement:function(){return on.current}}}),R.createElement(Ft.Z,(0,P.Z)({},Et,{showAction:yt?["click"]:[],hideAction:yt?["click"]:[],popupPlacement:Zt||(Ut==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Qt,prefixCls:bt,popupTransitionName:nn,popup:R.createElement("div",{ref:on,onMouseEnter:ct},Kt),stretch:Rn,popupAlign:Bt,popupVisible:Rt,getPopupContainer:Ye,popupClassName:g()(ft,(0,te.Z)({},"".concat(bt,"-empty"),Qe)),popupStyle:On,getTriggerDOMNode:ut,onPopupVisibleChange:yt}),zt)},At=R.forwardRef(it);At.displayName="SelectTrigger";var oe=At,me=_(4537);function k(Le,ve){var rt=Le.key,lt;return"value"in Le&&(lt=Le.value),rt!=null?rt:lt!==void 0?lt:"rc-index-key-".concat(ve)}function de(Le,ve){var rt=Le||{},lt=rt.label,Nt=rt.value,Rt=rt.options,zt=rt.groupLabel,Pt=lt||(ve?"children":"label");return{label:Pt,value:Nt||"value",options:Rt||"options",groupLabel:zt||Pt}}function we(Le){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=ve.fieldNames,lt=ve.childrenAsData,Nt=[],Rt=de(rt,!1),zt=Rt.label,Pt=Rt.value,Wt=Rt.options,ln=Rt.groupLabel;function Lt(ft,jt){ft.forEach(function(Ut){if(jt||!(Wt in Ut)){var Zt=Ut[Pt];Nt.push({key:k(Ut,Nt.length),groupOption:jt,data:Ut,label:Ut[zt],value:Zt})}else{var un=Ut[ln];un===void 0&<&&(un=Ut.label),Nt.push({key:k(Ut,Nt.length),group:!0,data:Ut,label:un}),Lt(Ut[Wt],!0)}})}return Lt(Le,!1),Nt}function L(Le){var ve=(0,Re.Z)({},Le);return"props"in ve||Object.defineProperty(ve,"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`."),ve}}),ve}function T(Le,ve){if(!ve||!ve.length)return null;var rt=!1;function lt(Rt,zt){var Pt=(0,me.Z)(zt),Wt=Pt[0],ln=Pt.slice(1);if(!Wt)return[Rt];var Lt=Rt.split(Wt);return rt=rt||Lt.length>1,Lt.reduce(function(ft,jt){return[].concat((0,N.Z)(ft),(0,N.Z)(lt(jt,ln)))},[]).filter(function(ft){return ft})}var Nt=lt(Le,ve);return rt?Nt:null}var O=["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"],ue=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function he(Le){return Le==="tags"||Le==="multiple"}var Z=R.forwardRef(function(Le,ve){var rt,lt,Nt=Le.id,Rt=Le.prefixCls,zt=Le.className,Pt=Le.showSearch,Wt=Le.tagRender,ln=Le.direction,Lt=Le.omitDomProps,ft=Le.displayValues,jt=Le.onDisplayValuesChange,Ut=Le.emptyOptions,Zt=Le.notFoundContent,un=Zt===void 0?"Not Found":Zt,zn=Le.onClear,gn=Le.mode,Bt=Le.disabled,Ye=Le.loading,Qe=Le.getInputElement,ut=Le.getRawInputElement,yt=Le.open,ct=Le.defaultOpen,Et=Le.onDropdownVisibleChange,bt=Le.activeValue,Kt=Le.onActiveValueChange,Qt=Le.activeDescendantId,nn=Le.searchValue,Cn=Le.autoClearSearchValue,Rn=Le.onSearch,On=Le.onSearchSplit,on=Le.tokenSeparators,Xt=Le.allowClear,$n=Le.suffixIcon,Sn=Le.clearIcon,Qn=Le.OptionList,An=Le.animation,kn=Le.transitionName,Kn=Le.dropdownStyle,In=Le.dropdownClassName,qn=Le.dropdownMatchSelectWidth,fr=Le.dropdownRender,Tn=Le.dropdownAlign,Jt=Le.placement,ze=Le.builtinPlacements,fn=Le.getPopupContainer,Pn=Le.showAction,Vn=Pn===void 0?[]:Pn,Yn=Le.onFocus,rr=Le.onBlur,sr=Le.onKeyUp,Un=Le.onKeyDown,ar=Le.onMouseDown,vn=(0,ce.Z)(Le,O),en=he(gn),Dn=(Pt!==void 0?Pt:en)||gn==="combobox",Jn=(0,Re.Z)({},vn);ue.forEach(function(xr){delete Jn[xr]}),Lt==null||Lt.forEach(function(xr){delete Jn[xr]});var or=R.useState(!1),Pr=(0,V.Z)(or,2),_n=Pr[0],cr=Pr[1];R.useEffect(function(){cr((0,w.Z)())},[]);var lr=R.useRef(null),Er=R.useRef(null),Mr=R.useRef(null),Br=R.useRef(null),_r=R.useRef(null),Tr=b(),wr=(0,V.Z)(Tr,3),Jr=wr[0],Yr=wr[1],ii=wr[2];R.useImperativeHandle(ve,function(){var xr,nr;return{focus:(xr=Br.current)===null||xr===void 0?void 0:xr.focus,blur:(nr=Br.current)===null||nr===void 0?void 0:nr.blur,scrollTo:function(ui){var Zr;return(Zr=_r.current)===null||Zr===void 0?void 0:Zr.scrollTo(ui)}}});var kr=R.useMemo(function(){var xr;if(gn!=="combobox")return nn;var nr=(xr=ft[0])===null||xr===void 0?void 0:xr.value;return typeof nr=="string"||typeof nr=="number"?String(nr):""},[nn,gn,ft]),ei=gn==="combobox"&&typeof Qe=="function"&&Qe()||null,ir=typeof ut=="function"&&ut(),ci=(0,Y.x1)(Er,ir==null||(rt=ir.props)===null||rt===void 0?void 0:rt.ref),yi=R.useState(!1),di=(0,V.Z)(yi,2),Ar=di[0],fi=di[1];(0,c.Z)(function(){fi(!0)},[]);var Ci=(0,Ee.Z)(!1,{defaultValue:ct,value:yt}),dn=(0,V.Z)(Ci,2),Qr=dn[0],oi=dn[1],Fn=Ar?Qr:!1,Gn=!un&&Ut;(Bt||Gn&&Fn&&gn==="combobox")&&(Fn=!1);var Mn=Gn?!1:Fn,En=R.useCallback(function(xr){var nr=xr!==void 0?xr:!Fn;Bt||(oi(nr),Fn!==nr&&(Et==null||Et(nr)))},[Bt,Fn,oi,Et]),tr=R.useMemo(function(){return(on||[]).some(function(xr){return[`
|
|
|
`,`\r
|
|
|
`].includes(xr)})},[on]),hr=function(nr,li,ui){var Zr=!0,wi=nr;Kt==null||Kt(null);var Ir=ui?null:T(nr,on);return gn!=="combobox"&&Ir&&(wi="",On==null||On(Ir),En(!1),Zr=!1),Rn&&kr!==wi&&Rn(wi,{source:li?"typing":"effect"}),Zr},Hr=function(nr){!nr||!nr.trim()||Rn(nr,{source:"submit"})};R.useEffect(function(){!Fn&&!en&&gn!=="combobox"&&hr("",!1,!1)},[Fn]),R.useEffect(function(){Qr&&Bt&&oi(!1),Bt&&Yr(!1)},[Bt]);var Dr=A(),$r=(0,V.Z)(Dr,2),Gr=$r[0],bi=$r[1],xi=function(nr){var li=Gr(),ui=nr.which;if(ui===v.Z.ENTER&&(gn!=="combobox"&&nr.preventDefault(),Fn||En(!0)),bi(!!kr),ui===v.Z.BACKSPACE&&!li&&en&&!kr&&ft.length){for(var Zr=(0,N.Z)(ft),wi=null,Ir=Zr.length-1;Ir>=0;Ir-=1){var Bi=Zr[Ir];if(!Bi.disabled){Zr.splice(Ir,1),wi=Bi;break}}wi&&jt(Zr,{type:"remove",values:[wi]})}for(var gi=arguments.length,Oi=new Array(gi>1?gi-1:0),$i=1;$i<gi;$i++)Oi[$i-1]=arguments[$i];if(Fn&&_r.current){var Or;(Or=_r.current).onKeyDown.apply(Or,[nr].concat(Oi))}Un==null||Un.apply(void 0,[nr].concat(Oi))},Hi=function(nr){for(var li=arguments.length,ui=new Array(li>1?li-1:0),Zr=1;Zr<li;Zr++)ui[Zr-1]=arguments[Zr];if(Fn&&_r.current){var wi;(wi=_r.current).onKeyUp.apply(wi,[nr].concat(ui))}sr==null||sr.apply(void 0,[nr].concat(ui))},Fi=function(nr){var li=ft.filter(function(ui){return ui!==nr});jt(li,{type:"remove",values:[nr]})},mi=R.useRef(!1),Bn=function(){Yr(!0),Bt||(Yn&&!mi.current&&Yn.apply(void 0,arguments),Vn.includes("focus")&&En(!0)),mi.current=!0},Nn=function(){Yr(!1,function(){mi.current=!1,En(!1)}),!Bt&&(kr&&(gn==="tags"?Rn(kr,{source:"submit"}):gn==="multiple"&&Rn("",{source:"blur"})),rr&&rr.apply(void 0,arguments))},dr=[];R.useEffect(function(){return function(){dr.forEach(function(xr){return clearTimeout(xr)}),dr.splice(0,dr.length)}},[]);var Wr=function(nr){var li,ui=nr.target,Zr=(li=Mr.current)===null||li===void 0?void 0:li.getPopupElement();if(Zr&&Zr.contains(ui)){var wi=setTimeout(function(){var Oi=dr.indexOf(wi);if(Oi!==-1&&dr.splice(Oi,1),ii(),!_n&&!Zr.contains(document.activeElement)){var $i;($i=Br.current)===null||$i===void 0||$i.focus()}});dr.push(wi)}for(var Ir=arguments.length,Bi=new Array(Ir>1?Ir-1:0),gi=1;gi<Ir;gi++)Bi[gi-1]=arguments[gi];ar==null||ar.apply(void 0,[nr].concat(Bi))},Sr=R.useState({}),pi=(0,V.Z)(Sr,2),Wi=pi[1];function ji(){Wi({})}var Ti;ir&&(Ti=function(nr){En(nr)}),B(function(){var xr;return[lr.current,(xr=Mr.current)===null||xr===void 0?void 0:xr.getPopupElement()]},Mn,En,!!ir);var ss=R.useMemo(function(){return(0,Re.Z)((0,Re.Z)({},Le),{},{notFoundContent:un,open:Fn,triggerOpen:Mn,id:Nt,showSearch:Dn,multiple:en,toggleOpen:En})},[Le,un,Mn,Fn,Nt,Dn,en,En]),as=!!$n||Ye,os;as&&(os=R.createElement(K,{className:g()("".concat(Rt,"-arrow"),(0,te.Z)({},"".concat(Rt,"-arrow-loading"),Ye)),customizeIcon:$n,customizeIconProps:{loading:Ye,searchValue:kr,open:Fn,focused:Jr,showSearch:Dn}}));var es=function(){var nr;zn==null||zn(),(nr=Br.current)===null||nr===void 0||nr.focus(),jt([],{type:"clear",values:ft}),hr("",!1,!1)},ls=F(Rt,es,ft,Xt,Sn,Bt,kr,gn),Pi=ls.allowClear,ni=ls.clearIcon,us=R.createElement(Qn,{ref:_r}),ts=g()(Rt,zt,(lt={},(0,te.Z)(lt,"".concat(Rt,"-focused"),Jr),(0,te.Z)(lt,"".concat(Rt,"-multiple"),en),(0,te.Z)(lt,"".concat(Rt,"-single"),!en),(0,te.Z)(lt,"".concat(Rt,"-allow-clear"),Xt),(0,te.Z)(lt,"".concat(Rt,"-show-arrow"),as),(0,te.Z)(lt,"".concat(Rt,"-disabled"),Bt),(0,te.Z)(lt,"".concat(Rt,"-loading"),Ye),(0,te.Z)(lt,"".concat(Rt,"-open"),Fn),(0,te.Z)(lt,"".concat(Rt,"-customize-input"),ei),(0,te.Z)(lt,"".concat(Rt,"-show-search"),Dn),lt)),Ei=R.createElement(oe,{ref:Mr,disabled:Bt,prefixCls:Rt,visible:Mn,popupElement:us,animation:An,transitionName:kn,dropdownStyle:Kn,dropdownClassName:In,direction:ln,dropdownMatchSelectWidth:qn,dropdownRender:fr,dropdownAlign:Tn,placement:Jt,builtinPlacements:ze,getPopupContainer:fn,empty:Ut,getTriggerDOMNode:function(){return Er.current},onPopupVisibleChange:Ti,onPopupMouseEnter:ji},ir?R.cloneElement(ir,{ref:ci}):R.createElement(kt,(0,P.Z)({},Le,{domRef:Er,prefixCls:Rt,inputElement:ei,ref:Br,id:Nt,showSearch:Dn,autoClearSearchValue:Cn,mode:gn,activeDescendantId:Qt,tagRender:Wt,values:ft,open:Fn,onToggleOpen:En,activeValue:bt,searchValue:kr,onSearch:hr,onSearchSubmit:Hr,onRemove:Fi,tokenWithEnter:tr}))),Ai;return ir?Ai=Ei:Ai=R.createElement("div",(0,P.Z)({className:ts},Jn,{ref:lr,onMouseDown:Wr,onKeyDown:xi,onKeyUp:Hi,onFocus:Bn,onBlur:Nn}),Jr&&!Fn&&R.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ft.map(function(xr){var nr=xr.label,li=xr.value;return["number","string"].includes((0,_e.Z)(nr))?nr:li}).join(", "))),Ei,os,Pi&&ni),R.createElement(H.Provider,{value:ss},Ai)}),De=Z,Ue=function(Le,ve){var rt=R.useRef({values:new Map,options:new Map}),lt=R.useMemo(function(){var Rt=rt.current,zt=Rt.values,Pt=Rt.options,Wt=Le.map(function(ft){if(ft.label===void 0){var jt;return(0,Re.Z)((0,Re.Z)({},ft),{},{label:(jt=zt.get(ft.value))===null||jt===void 0?void 0:jt.label})}return ft}),ln=new Map,Lt=new Map;return Wt.forEach(function(ft){ln.set(ft.value,ft),Lt.set(ft.value,ve.get(ft.value)||Pt.get(ft.value))}),rt.current.values=ln,rt.current.options=Lt,Wt},[Le,ve]),Nt=R.useCallback(function(Rt){return ve.get(Rt)||rt.current.options.get(Rt)},[ve]);return[lt,Nt]};function Ae(Le,ve){return q(Le).join("").toUpperCase().includes(ve)}var Ne=function(Le,ve,rt,lt,Nt){return R.useMemo(function(){if(!rt||lt===!1)return Le;var Rt=ve.options,zt=ve.label,Pt=ve.value,Wt=[],ln=typeof lt=="function",Lt=rt.toUpperCase(),ft=ln?lt:function(Ut,Zt){return Nt?Ae(Zt[Nt],Lt):Zt[Rt]?Ae(Zt[zt!=="children"?zt:"label"],Lt):Ae(Zt[Pt],Lt)},jt=ln?function(Ut){return L(Ut)}:function(Ut){return Ut};return Le.forEach(function(Ut){if(Ut[Rt]){var Zt=ft(rt,jt(Ut));if(Zt)Wt.push(Ut);else{var un=Ut[Rt].filter(function(zn){return ft(rt,jt(zn))});un.length&&Wt.push((0,Re.Z)((0,Re.Z)({},Ut),{},(0,te.Z)({},Rt,un)))}return}ft(rt,jt(Ut))&&Wt.push(Ut)}),Wt},[Le,lt,Nt,rt,ve])},We=_(17115),Xe=_(11592),qe=["children","value"],ht=["children"];function St(Le){var ve=Le,rt=ve.key,lt=ve.props,Nt=lt.children,Rt=lt.value,zt=(0,ce.Z)(lt,qe);return(0,Re.Z)({key:rt,value:Rt!==void 0?Rt:rt,children:Nt},zt)}function _t(Le){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xe.Z)(Le).map(function(rt,lt){if(!R.isValidElement(rt)||!rt.type)return null;var Nt=rt,Rt=Nt.type.isSelectOptGroup,zt=Nt.key,Pt=Nt.props,Wt=Pt.children,ln=(0,ce.Z)(Pt,ht);return ve||!Rt?St(rt):(0,Re.Z)((0,Re.Z)({key:"__RC_SELECT_GRP__".concat(zt===null?lt:zt,"__"),label:zt},ln),{},{options:_t(Wt)})}).filter(function(rt){return rt})}function It(Le,ve,rt,lt,Nt){return R.useMemo(function(){var Rt=Le,zt=!Le;zt&&(Rt=_t(ve));var Pt=new Map,Wt=new Map,ln=function(jt,Ut,Zt){Zt&&typeof Zt=="string"&&jt.set(Ut[Zt],Ut)};function Lt(ft){for(var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=0;Ut<ft.length;Ut+=1){var Zt=ft[Ut];!Zt[rt.options]||jt?(Pt.set(Zt[rt.value],Zt),ln(Wt,Zt,rt.label),ln(Wt,Zt,lt),ln(Wt,Zt,Nt)):Lt(Zt[rt.options],!0)}}return Lt(Rt),{options:Rt,valueOptions:Pt,labelOptions:Wt}},[Le,ve,rt,lt,Nt])}function Ct(Le){var ve=R.useRef();ve.current=Le;var rt=R.useCallback(function(){return ve.current.apply(ve,arguments)},[]);return rt}var y=function(){return null};y.isSelectOptGroup=!0;var C=y,ot=function(){return null};ot.isSelectOption=!0;var W=ot,Ce=_(80547),yn=_(2738),Me=_(24916),Ke=R.createContext(null),Ze=Ke;function J(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var fe=["disabled","title","children","style","className"];function Te(Le){return typeof Le=="string"||typeof Le=="number"}var Be=function(ve,rt){var lt=ne(),Nt=lt.prefixCls,Rt=lt.id,zt=lt.open,Pt=lt.multiple,Wt=lt.mode,ln=lt.searchValue,Lt=lt.toggleOpen,ft=lt.notFoundContent,jt=lt.onPopupScroll,Ut=R.useContext(Ze),Zt=Ut.flattenOptions,un=Ut.onActiveValue,zn=Ut.defaultActiveFirstOption,gn=Ut.onSelect,Bt=Ut.menuItemSelectedIcon,Ye=Ut.rawValues,Qe=Ut.fieldNames,ut=Ut.virtual,yt=Ut.direction,ct=Ut.listHeight,Et=Ut.listItemHeight,bt="".concat(Nt,"-item"),Kt=(0,Ce.Z)(function(){return Zt},[zt,Zt],function(Tn,Jt){return Jt[0]&&Tn[1]!==Jt[1]}),Qt=R.useRef(null),nn=function(Jt){Jt.preventDefault()},Cn=function(Jt){Qt.current&&Qt.current.scrollTo(typeof Jt=="number"?{index:Jt}:Jt)},Rn=function(Jt){for(var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fn=Kt.length,Pn=0;Pn<fn;Pn+=1){var Vn=(Jt+Pn*ze+fn)%fn,Yn=Kt[Vn],rr=Yn.group,sr=Yn.data;if(!rr&&!sr.disabled)return Vn}return-1},On=R.useState(function(){return Rn(0)}),on=(0,V.Z)(On,2),Xt=on[0],$n=on[1],Sn=function(Jt){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$n(Jt);var fn={source:ze?"keyboard":"mouse"},Pn=Kt[Jt];if(!Pn){un(null,-1,fn);return}un(Pn.value,Jt,fn)};(0,R.useEffect)(function(){Sn(zn!==!1?Rn(0):-1)},[Kt.length,ln]);var Qn=R.useCallback(function(Tn){return Ye.has(Tn)&&Wt!=="combobox"},[Wt,(0,N.Z)(Ye).toString(),Ye.size]);(0,R.useEffect)(function(){var Tn=setTimeout(function(){if(!Pt&&zt&&Ye.size===1){var ze=Array.from(Ye)[0],fn=Kt.findIndex(function(Pn){var Vn=Pn.data;return Vn.value===ze});fn!==-1&&(Sn(fn),Cn(fn))}});if(zt){var Jt;(Jt=Qt.current)===null||Jt===void 0||Jt.scrollTo(void 0)}return function(){return clearTimeout(Tn)}},[zt,ln,Zt.length]);var An=function(Jt){Jt!==void 0&&gn(Jt,{selected:!Ye.has(Jt)}),Pt||Lt(!1)};if(R.useImperativeHandle(rt,function(){return{onKeyDown:function(Jt){var ze=Jt.which,fn=Jt.ctrlKey;switch(ze){case v.Z.N:case v.Z.P:case v.Z.UP:case v.Z.DOWN:{var Pn=0;if(ze===v.Z.UP?Pn=-1:ze===v.Z.DOWN?Pn=1:J()&&fn&&(ze===v.Z.N?Pn=1:ze===v.Z.P&&(Pn=-1)),Pn!==0){var Vn=Rn(Xt+Pn,Pn);Cn(Vn),Sn(Vn,!0)}break}case v.Z.ENTER:{var Yn=Kt[Xt];Yn&&!Yn.data.disabled?An(Yn.value):An(void 0),zt&&Jt.preventDefault();break}case v.Z.ESC:Lt(!1),zt&&Jt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Jt){Cn(Jt)}}}),Kt.length===0)return R.createElement("div",{role:"listbox",id:"".concat(Rt,"_list"),className:"".concat(bt,"-empty"),onMouseDown:nn},ft);var kn=Object.keys(Qe).map(function(Tn){return Qe[Tn]}),Kn=function(Jt){return Jt.label};function In(Tn,Jt){var ze=Tn.group;return{role:ze?"presentation":"option",id:"".concat(Rt,"_list_").concat(Jt)}}var qn=function(Jt){var ze=Kt[Jt];if(!ze)return null;var fn=ze.data||{},Pn=fn.value,Vn=ze.group,Yn=(0,X.Z)(fn,!0),rr=Kn(ze);return ze?R.createElement("div",(0,P.Z)({"aria-label":typeof rr=="string"&&!Vn?rr:null},Yn,{key:Jt},In(ze,Jt),{"aria-selected":Qn(Pn)}),Pn):null},fr={role:"listbox",id:"".concat(Rt,"_list")};return R.createElement(R.Fragment,null,ut&&R.createElement("div",(0,P.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),qn(Xt-1),qn(Xt),qn(Xt+1)),R.createElement(Me.Z,{itemKey:"key",ref:Qt,data:Kt,height:ct,itemHeight:Et,fullHeight:!1,onMouseDown:nn,onScroll:jt,virtual:ut,direction:yt,innerProps:ut?null:fr},function(Tn,Jt){var ze,fn=Tn.group,Pn=Tn.groupOption,Vn=Tn.data,Yn=Tn.label,rr=Tn.value,sr=Vn.key;if(fn){var Un,ar=(Un=Vn.title)!==null&&Un!==void 0?Un:Te(Yn)?Yn.toString():void 0;return R.createElement("div",{className:g()(bt,"".concat(bt,"-group")),title:ar},Yn!==void 0?Yn:sr)}var vn=Vn.disabled,en=Vn.title,Dn=Vn.children,Jn=Vn.style,or=Vn.className,Pr=(0,ce.Z)(Vn,fe),_n=(0,yn.Z)(Pr,kn),cr=Qn(rr),lr="".concat(bt,"-option"),Er=g()(bt,lr,or,(ze={},(0,te.Z)(ze,"".concat(lr,"-grouped"),Pn),(0,te.Z)(ze,"".concat(lr,"-active"),Xt===Jt&&!vn),(0,te.Z)(ze,"".concat(lr,"-disabled"),vn),(0,te.Z)(ze,"".concat(lr,"-selected"),cr),ze)),Mr=Kn(Tn),Br=!Bt||typeof Bt=="function"||cr,_r=typeof Mr=="number"?Mr:Mr||rr,Tr=Te(_r)?_r.toString():void 0;return en!==void 0&&(Tr=en),R.createElement("div",(0,P.Z)({},(0,X.Z)(_n),ut?{}:In(Tn,Jt),{"aria-selected":cr,className:Er,title:Tr,onMouseMove:function(){Xt===Jt||vn||Sn(Jt)},onClick:function(){vn||An(rr)},style:Jn}),R.createElement("div",{className:"".concat(lr,"-content")},_r),R.isValidElement(Bt)||cr,Br&&R.createElement(K,{className:"".concat(bt,"-option-state"),customizeIcon:Bt,customizeIconProps:{isSelected:cr}},cr?"\u2713":null))}))},G=R.forwardRef(Be);G.displayName="OptionList";var Ot=G;function Pe(Le){var ve=Le.mode,rt=Le.options,lt=Le.children,Nt=Le.backfill,Rt=Le.allowClear,zt=Le.placeholder,Pt=Le.getInputElement,Wt=Le.showSearch,ln=Le.onSearch,Lt=Le.defaultOpen,ft=Le.autoFocus,jt=Le.labelInValue,Ut=Le.value,Zt=Le.inputValue,un=Le.optionLabelProp,zn=isMultiple(ve),gn=Wt!==void 0?Wt:zn||ve==="combobox",Bt=rt||convertChildrenToData(lt);if(warning(ve!=="tags"||Bt.every(function(yt){return!yt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ve==="tags"||ve==="combobox"){var Ye=Bt.some(function(yt){return yt.options?yt.options.some(function(ct){return typeof("value"in ct?ct.value:ct.key)=="number"}):typeof("value"in yt?yt.value:yt.key)=="number"});warning(!Ye,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ve!=="combobox"||!un,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ve==="combobox"||!Nt,"`backfill` only works with `combobox` mode."),warning(ve==="combobox"||!Pt,"`getInputElement` only work with `combobox` mode."),noteOnce(ve!=="combobox"||!Pt||!Rt||!zt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ln&&!gn&&ve!=="combobox"&&ve!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Lt||ft,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ut!=null){var Qe=toArray(Ut);warning(!jt||Qe.every(function(yt){return _typeof(yt)==="object"&&("key"in yt||"value"in yt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!zn||Array.isArray(Ut),"`value` should be array when `mode` is `multiple` or `tags`")}if(lt){var ut=null;toNodeArray(lt).some(function(yt){if(!React.isValidElement(yt)||!yt.type)return!1;var ct=yt,Et=ct.type;if(Et.isSelectOption)return!1;if(Et.isSelectOptGroup){var bt=toNodeArray(yt.props.children).every(function(Kt){return!React.isValidElement(Kt)||!yt.type||Kt.type.isSelectOption?!0:(ut=Kt.type,!1)});return!bt}return ut=Et,!0}),ut&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ut.displayName||ut.name||ut,"`.")),warning(Zt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Yt(Le,ve){if(Le){var rt=function lt(Nt){for(var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=0;zt<Nt.length;zt++){var Pt=Nt[zt];if(Pt[ve==null?void 0:ve.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Rt&&Array.isArray(Pt[ve==null?void 0:ve.options])&<(Pt[ve==null?void 0:ve.options],!0))break}};rt(Le)}}var mn=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"],Hn=["inputValue"];function $t(Le){return!Le||(0,_e.Z)(Le)!=="object"}var qt=R.forwardRef(function(Le,ve){var rt=Le.id,lt=Le.mode,Nt=Le.prefixCls,Rt=Nt===void 0?"rc-select":Nt,zt=Le.backfill,Pt=Le.fieldNames,Wt=Le.inputValue,ln=Le.searchValue,Lt=Le.onSearch,ft=Le.autoClearSearchValue,jt=ft===void 0?!0:ft,Ut=Le.onSelect,Zt=Le.onDeselect,un=Le.dropdownMatchSelectWidth,zn=un===void 0?!0:un,gn=Le.filterOption,Bt=Le.filterSort,Ye=Le.optionFilterProp,Qe=Le.optionLabelProp,ut=Le.options,yt=Le.children,ct=Le.defaultActiveFirstOption,Et=Le.menuItemSelectedIcon,bt=Le.virtual,Kt=Le.direction,Qt=Le.listHeight,nn=Qt===void 0?200:Qt,Cn=Le.listItemHeight,Rn=Cn===void 0?20:Cn,On=Le.value,on=Le.defaultValue,Xt=Le.labelInValue,$n=Le.onChange,Sn=(0,ce.Z)(Le,wn),Qn=(0,We.ZP)(rt),An=he(lt),kn=!!(!ut&&yt),Kn=R.useMemo(function(){return gn===void 0&<==="combobox"?!1:gn},[gn,lt]),In=R.useMemo(function(){return de(Pt,kn)},[JSON.stringify(Pt),kn]),qn=(0,Ee.Z)("",{value:ln!==void 0?ln:Wt,postState:function(Gn){return Gn||""}}),fr=(0,V.Z)(qn,2),Tn=fr[0],Jt=fr[1],ze=It(ut,yt,In,Ye,Qe),fn=ze.valueOptions,Pn=ze.labelOptions,Vn=ze.options,Yn=R.useCallback(function(Fn){var Gn=q(Fn);return Gn.map(function(Mn){var En,tr,hr,Hr,Dr;if($t(Mn))En=Mn;else{var $r;hr=Mn.key,tr=Mn.label,En=($r=Mn.value)!==null&&$r!==void 0?$r:hr}var Gr=fn.get(En);if(Gr){var bi;if(tr===void 0&&(tr=Gr==null?void 0:Gr[Qe||In.label]),hr===void 0&&(hr=(bi=Gr==null?void 0:Gr.key)!==null&&bi!==void 0?bi:En),Hr=Gr==null?void 0:Gr.disabled,Dr=Gr==null?void 0:Gr.title,0)var xi}return{label:tr,value:En,key:hr,disabled:Hr,title:Dr}})},[In,Qe,fn]),rr=(0,Ee.Z)(on,{value:On}),sr=(0,V.Z)(rr,2),Un=sr[0],ar=sr[1],vn=R.useMemo(function(){var Fn,Gn=Yn(Un);return lt==="combobox"&&ye((Fn=Gn[0])===null||Fn===void 0?void 0:Fn.value)?[]:Gn},[Un,Yn,lt]),en=Ue(vn,fn),Dn=(0,V.Z)(en,2),Jn=Dn[0],or=Dn[1],Pr=R.useMemo(function(){if(!lt&&Jn.length===1){var Fn=Jn[0];if(Fn.value===null&&(Fn.label===null||Fn.label===void 0))return[]}return Jn.map(function(Gn){var Mn;return(0,Re.Z)((0,Re.Z)({},Gn),{},{label:(Mn=Gn.label)!==null&&Mn!==void 0?Mn:Gn.value})})},[lt,Jn]),_n=R.useMemo(function(){return new Set(Jn.map(function(Fn){return Fn.value}))},[Jn]);R.useEffect(function(){if(lt==="combobox"){var Fn,Gn=(Fn=Jn[0])===null||Fn===void 0?void 0:Fn.value;Jt(ee(Gn)?String(Gn):"")}},[Jn]);var cr=Ct(function(Fn,Gn){var Mn,En=Gn!=null?Gn:Fn;return Mn={},(0,te.Z)(Mn,In.value,Fn),(0,te.Z)(Mn,In.label,En),Mn}),lr=R.useMemo(function(){if(lt!=="tags")return Vn;var Fn=(0,N.Z)(Vn),Gn=function(En){return fn.has(En)};return(0,N.Z)(Jn).sort(function(Mn,En){return Mn.value<En.value?-1:1}).forEach(function(Mn){var En=Mn.value;Gn(En)||Fn.push(cr(En,Mn.label))}),Fn},[cr,Vn,fn,Jn,lt]),Er=Ne(lr,In,Tn,Kn,Ye),Mr=R.useMemo(function(){return lt!=="tags"||!Tn||Er.some(function(Fn){return Fn[Ye||"value"]===Tn})||Er.some(function(Fn){return Fn[In.value]===Tn})?Er:[cr(Tn)].concat((0,N.Z)(Er))},[cr,Ye,lt,Er,Tn,In]),Br=R.useMemo(function(){return Bt?(0,N.Z)(Mr).sort(function(Fn,Gn){return Bt(Fn,Gn)}):Mr},[Mr,Bt]),_r=R.useMemo(function(){return we(Br,{fieldNames:In,childrenAsData:kn})},[Br,In,kn]),Tr=function(Gn){var Mn=Yn(Gn);if(ar(Mn),$n&&(Mn.length!==Jn.length||Mn.some(function(hr,Hr){var Dr;return((Dr=Jn[Hr])===null||Dr===void 0?void 0:Dr.value)!==(hr==null?void 0:hr.value)}))){var En=Xt?Mn:Mn.map(function(hr){return hr.value}),tr=Mn.map(function(hr){return L(or(hr.value))});$n(An?En:En[0],An?tr:tr[0])}},wr=R.useState(null),Jr=(0,V.Z)(wr,2),Yr=Jr[0],ii=Jr[1],kr=R.useState(0),ei=(0,V.Z)(kr,2),ir=ei[0],ci=ei[1],yi=ct!==void 0?ct:lt!=="combobox",di=R.useCallback(function(Fn,Gn){var Mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},En=Mn.source,tr=En===void 0?"keyboard":En;ci(Gn),zt&<==="combobox"&&Fn!==null&&tr==="keyboard"&&ii(String(Fn))},[zt,lt]),Ar=function(Gn,Mn,En){var tr=function(){var mi,Bn=or(Gn);return[Xt?{label:Bn==null?void 0:Bn[In.label],value:Gn,key:(mi=Bn==null?void 0:Bn.key)!==null&&mi!==void 0?mi:Gn}:Gn,L(Bn)]};if(Mn&&Ut){var hr=tr(),Hr=(0,V.Z)(hr,2),Dr=Hr[0],$r=Hr[1];Ut(Dr,$r)}else if(!Mn&&Zt&&En!=="clear"){var Gr=tr(),bi=(0,V.Z)(Gr,2),xi=bi[0],Hi=bi[1];Zt(xi,Hi)}},fi=Ct(function(Fn,Gn){var Mn,En=An?Gn.selected:!0;En?Mn=An?[].concat((0,N.Z)(Jn),[Fn]):[Fn]:Mn=Jn.filter(function(tr){return tr.value!==Fn}),Tr(Mn),Ar(Fn,En),lt==="combobox"?ii(""):(!he||jt)&&(Jt(""),ii(""))}),Ci=function(Gn,Mn){Tr(Gn);var En=Mn.type,tr=Mn.values;(En==="remove"||En==="clear")&&tr.forEach(function(hr){Ar(hr.value,!1,En)})},dn=function(Gn,Mn){if(Jt(Gn),ii(null),Mn.source==="submit"){var En=(Gn||"").trim();if(En){var tr=Array.from(new Set([].concat((0,N.Z)(_n),[En])));Tr(tr),Ar(En,!0),Jt("")}return}Mn.source!=="blur"&&(lt==="combobox"&&Tr(Gn),Lt==null||Lt(Gn))},Qr=function(Gn){var Mn=Gn;lt!=="tags"&&(Mn=Gn.map(function(tr){var hr=Pn.get(tr);return hr==null?void 0:hr.value}).filter(function(tr){return tr!==void 0}));var En=Array.from(new Set([].concat((0,N.Z)(_n),(0,N.Z)(Mn))));Tr(En),En.forEach(function(tr){Ar(tr,!0)})},oi=R.useMemo(function(){var Fn=bt!==!1&&zn!==!1;return(0,Re.Z)((0,Re.Z)({},ze),{},{flattenOptions:_r,onActiveValue:di,defaultActiveFirstOption:yi,onSelect:fi,menuItemSelectedIcon:Et,rawValues:_n,fieldNames:In,virtual:Fn,direction:Kt,listHeight:nn,listItemHeight:Rn,childrenAsData:kn})},[ze,_r,di,yi,fi,Et,_n,In,bt,zn,nn,Rn,kn]);return R.createElement(Ze.Provider,{value:oi},R.createElement(De,(0,P.Z)({},Sn,{id:Qn,prefixCls:Rt,ref:ve,omitDomProps:Hn,mode:lt,displayValues:Pr,onDisplayValuesChange:Ci,direction:Kt,searchValue:Tn,onSearch:dn,autoClearSearchValue:jt,onSearchSplit:Qr,dropdownMatchSelectWidth:zn,OptionList:Ot,emptyOptions:!_r.length,activeValue:Yr,activeDescendantId:"".concat(Qn,"_list_").concat(ir)})))}),$e=qt;$e.Option=W,$e.OptGroup=C;var dt=$e,Tt=dt},9296:function(rn,nt,_){"use strict";_.r(nt),_.d(nt,{ResizableTextArea:function(){return Oe},default:function(){return ye}});var P=_(96663),N=_(44127),te=_(90493),Re=_(20135),V=_(72071),ce=_(6620),_e=_(19127),Ee=_(92310),o=_.n(Ee),R=_(93681),M=_(5643),g=_(18929),c=_(59301),w=_(29301),v=_(34280),Y=_(16089),se=`
|
|
|
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;
|
|
|
`,K=["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"],F={},H;function ne(re){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=re.getAttribute("id")||re.getAttribute("data-reactid")||re.getAttribute("name");if(x&&F[S])return F[S];var Q=window.getComputedStyle(re),be=Q.getPropertyValue("box-sizing")||Q.getPropertyValue("-moz-box-sizing")||Q.getPropertyValue("-webkit-box-sizing"),Ve=parseFloat(Q.getPropertyValue("padding-bottom"))+parseFloat(Q.getPropertyValue("padding-top")),tt=parseFloat(Q.getPropertyValue("border-bottom-width"))+parseFloat(Q.getPropertyValue("border-top-width")),Je=K.map(function(xt){return"".concat(xt,":").concat(Q.getPropertyValue(xt))}).join(";"),et={sizingStyle:Je,paddingSize:Ve,borderSize:tt,boxSizing:be};return x&&S&&(F[S]=et),et}function b(re){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),re.getAttribute("wrap")?H.setAttribute("wrap",re.getAttribute("wrap")):H.removeAttribute("wrap");var be=ne(re,x),Ve=be.paddingSize,tt=be.borderSize,Je=be.boxSizing,et=be.sizingStyle;H.setAttribute("style","".concat(et,";").concat(se)),H.value=re.value||re.placeholder||"";var xt=void 0,gt=void 0,st,kt=H.scrollHeight;if(Je==="border-box"?kt+=tt:Je==="content-box"&&(kt-=Ve),S!==null||Q!==null){H.value=" ";var Ft=H.scrollHeight-Ve;S!==null&&(xt=Ft*S,Je==="border-box"&&(xt=xt+Ve+tt),kt=Math.max(xt,kt)),Q!==null&&(gt=Ft*Q,Je==="border-box"&&(gt=gt+Ve+tt),st=kt>gt?"":"hidden",kt=Math.min(gt,kt))}var cn={height:kt,overflowY:st,resize:"none"};return xt&&(cn.minHeight=xt),gt&&(cn.maxHeight=gt),cn}var A=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],B=0,X=1,ge=2,Ie=c.forwardRef(function(re,x){var S=re,Q=S.prefixCls,be=S.onPressEnter,Ve=S.defaultValue,tt=S.value,Je=S.autoSize,et=S.onResize,xt=S.className,gt=S.style,st=S.disabled,kt=S.onChange,Ft=S.onInternalAutoSize,cn=(0,ce.Z)(S,A),Vt=(0,g.Z)(Ve,{value:tt,postState:function(C){return C!=null?C:""}}),it=(0,V.Z)(Vt,2),At=it[0],oe=it[1],me=function(C){oe(C.target.value),kt==null||kt(C)},k=c.useRef();c.useImperativeHandle(x,function(){return{textArea:k.current}});var de=c.useMemo(function(){return Je&&(0,Re.Z)(Je)==="object"?[Je.minRows,Je.maxRows]:[]},[Je]),we=(0,V.Z)(de,2),L=we[0],T=we[1],O=!!Je,ue=function(){try{if(document.activeElement===k.current){var C=k.current,ot=C.selectionStart,W=C.selectionEnd,Ce=C.scrollTop;k.current.setSelectionRange(ot,W),k.current.scrollTop=Ce}}catch(yn){}},he=c.useState(ge),Z=(0,V.Z)(he,2),De=Z[0],Ue=Z[1],Ae=c.useState(),Ne=(0,V.Z)(Ae,2),We=Ne[0],Xe=Ne[1],qe=function(){Ue(B)};(0,v.Z)(function(){O&&qe()},[tt,L,T,O]),(0,v.Z)(function(){if(De===B)Ue(X);else if(De===X){var y=b(k.current,!1,L,T);Ue(ge),Xe(y)}else ue()},[De]);var ht=c.useRef(),St=function(){Y.Z.cancel(ht.current)},_t=function(C){De===ge&&(et==null||et(C),Je&&(St(),ht.current=(0,Y.Z)(function(){qe()})))};c.useEffect(function(){return St},[]);var It=O?We:null,Ct=(0,N.Z)((0,N.Z)({},gt),It);return(De===B||De===X)&&(Ct.overflowY="hidden",Ct.overflowX="hidden"),c.createElement(w.Z,{onResize:_t,disabled:!(Je||et)},c.createElement("textarea",(0,P.Z)({},cn,{ref:k,style:Ct,className:o()(Q,xt,(0,te.Z)({},"".concat(Q,"-disabled"),st)),disabled:st,value:At,onChange:me})))}),Oe=Ie,He=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function q(re,x){return(0,_e.Z)(re||"").slice(0,x).join("")}function $(re,x,S,Q){var be=S;return re?be=q(S,Q):(0,_e.Z)(x||"").length<S.length&&(0,_e.Z)(S||"").length>Q&&(be=x),be}var ae=c.forwardRef(function(re,x){var S,Q=re.defaultValue,be=re.value,Ve=re.onFocus,tt=re.onBlur,Je=re.onChange,et=re.allowClear,xt=re.maxLength,gt=re.onCompositionStart,st=re.onCompositionEnd,kt=re.suffix,Ft=re.prefixCls,cn=Ft===void 0?"rc-textarea":Ft,Vt=re.classes,it=re.showCount,At=re.className,oe=re.style,me=re.disabled,k=re.hidden,de=re.classNames,we=re.styles,L=re.onResize,T=(0,ce.Z)(re,He),O=(0,g.Z)(Q,{value:be,defaultValue:Q}),ue=(0,V.Z)(O,2),he=ue[0],Z=ue[1],De=(0,c.useRef)(null),Ue=c.useState(!1),Ae=(0,V.Z)(Ue,2),Ne=Ae[0],We=Ae[1],Xe=c.useState(!1),qe=(0,V.Z)(Xe,2),ht=qe[0],St=qe[1],_t=c.useRef(),It=c.useRef(0),Ct=c.useState(null),y=(0,V.Z)(Ct,2),C=y[0],ot=y[1],W=function(){var $t;($t=De.current)===null||$t===void 0||$t.textArea.focus()};(0,c.useImperativeHandle)(x,function(){return{resizableTextArea:De.current,focus:W,blur:function(){var $t;($t=De.current)===null||$t===void 0||$t.textArea.blur()}}}),(0,c.useEffect)(function(){We(function(Hn){return!me&&Hn})},[me]);var Ce=Number(xt)>0,yn=function($t){St(!0),_t.current=he,It.current=$t.currentTarget.selectionStart,gt==null||gt($t)},Me=function($t){St(!1);var qt=$t.currentTarget.value;if(Ce){var $e,dt=It.current>=xt+1||It.current===(($e=_t.current)===null||$e===void 0?void 0:$e.length);qt=$(dt,_t.current,qt,xt)}qt!==he&&(Z(qt),(0,M.rJ)($t.currentTarget,$t,Je,qt)),st==null||st($t)},Ke=function($t){var qt=$t.target.value;if(!ht&&Ce){var $e=$t.target.selectionStart>=xt+1||$t.target.selectionStart===qt.length||!$t.target.selectionStart;qt=$($e,he,qt,xt)}Z(qt),(0,M.rJ)($t.currentTarget,$t,Je,qt)},Ze=function($t){var qt=T.onPressEnter,$e=T.onKeyDown;$t.key==="Enter"&&qt&&qt($t),$e==null||$e($t)},J=function($t){We(!0),Ve==null||Ve($t)},fe=function($t){We(!1),tt==null||tt($t)},Te=function($t){var qt;Z(""),W(),(0,M.rJ)((qt=De.current)===null||qt===void 0?void 0:qt.textArea,$t,Je)},Be=(0,M.D7)(he);!ht&&Ce&&be==null&&(Be=q(Be,xt));var G=kt,Ot;if(it){var Pe=(0,_e.Z)(Be).length;(0,Re.Z)(it)==="object"?Ot=it.formatter({value:Be,count:Pe,maxLength:xt}):Ot="".concat(Pe).concat(Ce?" / ".concat(xt):""),G=c.createElement(c.Fragment,null,G,c.createElement("span",{className:o()("".concat(cn,"-data-count"),de==null?void 0:de.count),style:we==null?void 0:we.count},Ot))}var Yt=function($t){var qt;L==null||L($t),(qt=De.current)!==null&&qt!==void 0&&qt.textArea.style.height&&ot(!0)},mn=!T.autoSize&&!it&&!et,wn=c.createElement(R.BaseInput,{value:Be,allowClear:et,handleReset:Te,suffix:G,prefixCls:cn,classes:{affixWrapper:o()(Vt==null?void 0:Vt.affixWrapper,(S={},(0,te.Z)(S,"".concat(cn,"-show-count"),it),(0,te.Z)(S,"".concat(cn,"-textarea-allow-clear"),et),S))},disabled:me,focused:Ne,className:At,style:(0,N.Z)((0,N.Z)({},oe),C&&!mn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ot=="string"?Ot:void 0}},hidden:k,inputElement:c.createElement(Oe,(0,P.Z)({},T,{onKeyDown:Ze,onChange:Ke,onFocus:J,onBlur:fe,onCompositionStart:yn,onCompositionEnd:Me,className:de==null?void 0:de.textarea,style:(0,N.Z)((0,N.Z)({},we==null?void 0:we.textarea),{},{resize:oe==null?void 0:oe.resize}),disabled:me,prefixCls:cn,onResize:Yt,ref:De}))});return wn}),ee=ae,ye=ee},55477:function(rn,nt,_){"use strict";_.d(nt,{G:function(){return c},Z:function(){return se}});var P=_(96663),N=_(44127),te=_(6620),Re=_(35593),V=_(59301),ce={shiftX:64,adjustY:1},_e={adjustX:1,shiftY:!0},Ee=[0,0],o={left:{points:["cr","cl"],overflow:_e,offset:[-4,0],targetOffset:Ee},right:{points:["cl","cr"],overflow:_e,offset:[4,0],targetOffset:Ee},top:{points:["bc","tc"],overflow:ce,offset:[0,-4],targetOffset:Ee},bottom:{points:["tc","bc"],overflow:ce,offset:[0,4],targetOffset:Ee},topLeft:{points:["bl","tl"],overflow:ce,offset:[0,-4],targetOffset:Ee},leftTop:{points:["tr","tl"],overflow:_e,offset:[-4,0],targetOffset:Ee},topRight:{points:["br","tr"],overflow:ce,offset:[0,-4],targetOffset:Ee},rightTop:{points:["tl","tr"],overflow:_e,offset:[4,0],targetOffset:Ee},bottomRight:{points:["tr","br"],overflow:ce,offset:[0,4],targetOffset:Ee},rightBottom:{points:["bl","br"],overflow:_e,offset:[4,0],targetOffset:Ee},bottomLeft:{points:["tl","bl"],overflow:ce,offset:[0,4],targetOffset:Ee},leftBottom:{points:["br","bl"],overflow:_e,offset:[-4,0],targetOffset:Ee}},R=null,M=_(92310),g=_.n(M);function c(K){var F=K.children,H=K.prefixCls,ne=K.id,b=K.overlayInnerStyle,A=K.className,B=K.style;return V.createElement("div",{className:g()("".concat(H,"-content"),A),style:B},V.createElement("div",{className:"".concat(H,"-inner"),id:ne,role:"tooltip",style:b},typeof F=="function"?F():F))}var w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],v=function(F,H){var ne=F.overlayClassName,b=F.trigger,A=b===void 0?["hover"]:b,B=F.mouseEnterDelay,X=B===void 0?0:B,ge=F.mouseLeaveDelay,Ie=ge===void 0?.1:ge,Oe=F.overlayStyle,He=F.prefixCls,q=He===void 0?"rc-tooltip":He,$=F.children,ae=F.onVisibleChange,ee=F.afterVisibleChange,ye=F.transitionName,re=F.animation,x=F.motion,S=F.placement,Q=S===void 0?"right":S,be=F.align,Ve=be===void 0?{}:be,tt=F.destroyTooltipOnHide,Je=tt===void 0?!1:tt,et=F.defaultVisible,xt=F.getTooltipContainer,gt=F.overlayInnerStyle,st=F.arrowContent,kt=F.overlay,Ft=F.id,cn=F.showArrow,Vt=cn===void 0?!0:cn,it=(0,te.Z)(F,w),At=(0,V.useRef)(null);(0,V.useImperativeHandle)(H,function(){return At.current});var oe=(0,N.Z)({},it);"visible"in F&&(oe.popupVisible=F.visible);var me=function(){return V.createElement(c,{key:"content",prefixCls:q,id:Ft,overlayInnerStyle:gt},kt)};return V.createElement(Re.Z,(0,P.Z)({popupClassName:ne,prefixCls:q,popup:me,action:A,builtinPlacements:o,popupPlacement:Q,ref:At,popupAlign:Ve,getPopupContainer:xt,onPopupVisibleChange:ae,afterPopupVisibleChange:ee,popupTransitionName:ye,popupAnimation:re,popupMotion:x,defaultPopupVisible:et,autoDestroy:Je,mouseLeaveDelay:Ie,popupStyle:Oe,mouseEnterDelay:X,arrow:Vt},oe),$)},Y=(0,V.forwardRef)(v),se=Y},49658:function(rn,nt){"use strict";nt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var _=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(_)||/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(_==null?void 0:_.substr(0,4))}},24916:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Vt}});var P=_(96663),N=_(20135),te=_(44127),Re=_(90493),V=_(72071),ce=_(6620),_e=_(92310),Ee=_.n(_e),o=_(29301),R=_(70425),M=_(34280),g=_(59301),c=_(4676),w=g.forwardRef(function(it,At){var oe=it.height,me=it.offsetY,k=it.offsetX,de=it.children,we=it.prefixCls,L=it.onInnerResize,T=it.innerProps,O=it.rtl,ue=it.extra,he={},Z={display:"flex",flexDirection:"column"};return me!==void 0&&(he={height:oe,position:"relative",overflow:"hidden"},Z=(0,te.Z)((0,te.Z)({},Z),{},(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({transform:"translateY(".concat(me,"px)")},O?"marginRight":"marginLeft",-k),"position","absolute"),"left",0),"right",0),"top",0))),g.createElement("div",{style:he},g.createElement(o.Z,{onResize:function(Ue){var Ae=Ue.offsetHeight;Ae&&L&&L()}},g.createElement("div",(0,P.Z)({style:Z,className:Ee()((0,Re.Z)({},"".concat(we,"-holder-inner"),we)),ref:At},T),de,ue)))});w.displayName="Filler";var v=w;function Y(it){var At=it.children,oe=it.setRef,me=g.useCallback(function(k){oe(k)},[]);return g.cloneElement(At,{ref:me})}function se(it,At,oe,me,k,de,we,L){var T=L.getKey;return it.slice(At,oe+1).map(function(O,ue){var he=At+ue,Z=we(O,he,{style:{width:me},offsetX:k}),De=T(O);return g.createElement(Y,{key:De,setRef:function(Ae){return de(O,Ae)}},Z)})}function K(it,At,oe,me){var k=oe-it,de=At-oe,we=Math.min(k,de)*2;if(me<=we){var L=Math.floor(me/2);return me%2?oe+L+1:oe-L}return k>de?oe-(me-de):oe+(me-k)}function F(it,At,oe){var me=it.length,k=At.length,de,we;if(me===0&&k===0)return null;me<k?(de=it,we=At):(de=At,we=it);var L={__EMPTY_ITEM__:!0};function T(Ue){return Ue!==void 0?oe(Ue):L}for(var O=null,ue=Math.abs(me-k)!==1,he=0;he<we.length;he+=1){var Z=T(de[he]),De=T(we[he]);if(Z!==De){O=he,ue=ue||Z!==T(we[he+1]);break}}return O===null?null:{index:O,multiple:ue}}function H(it,At,oe){var me=g.useState(it),k=(0,V.Z)(me,2),de=k[0],we=k[1],L=g.useState(null),T=(0,V.Z)(L,2),O=T[0],ue=T[1];return g.useEffect(function(){var he=F(de||[],it||[],At);(he==null?void 0:he.index)!==void 0&&(oe==null||oe(he.index),ue(it[he.index])),we(it)},[it]),[O]}var ne=_(16089),b=(typeof navigator=="undefined"?"undefined":(0,N.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),A=b,B=function(it,At,oe,me){var k=(0,g.useRef)(!1),de=(0,g.useRef)(null);function we(){clearTimeout(de.current),k.current=!0,de.current=setTimeout(function(){k.current=!1},50)}var L=(0,g.useRef)({top:it,bottom:At,left:oe,right:me});return L.current.top=it,L.current.bottom=At,L.current.left=oe,L.current.right=me,function(T,O){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,he=T?O<0&&L.current.left||O>0&&L.current.right:O<0&&L.current.top||O>0&&L.current.bottom;return ue&&he?(clearTimeout(de.current),k.current=!1):(!he||k.current)&&we(),!k.current&&he}};function X(it,At,oe,me,k,de,we){var L=(0,g.useRef)(0),T=(0,g.useRef)(null),O=(0,g.useRef)(null),ue=(0,g.useRef)(!1),he=B(At,oe,me,k);function Z(Xe,qe){if(ne.Z.cancel(T.current),!he(!1,qe)){var ht=Xe;if(!ht._virtualHandled)ht._virtualHandled=!0;else return;L.current+=qe,O.current=qe,A||ht.preventDefault(),T.current=(0,ne.Z)(function(){var St=ue.current?10:1;we(L.current*St,!1),L.current=0})}}function De(Xe,qe){we(qe,!0),A||Xe.preventDefault()}var Ue=(0,g.useRef)(null),Ae=(0,g.useRef)(null);function Ne(Xe){if(it){ne.Z.cancel(Ae.current),Ae.current=(0,ne.Z)(function(){Ue.current=null},2);var qe=Xe.deltaX,ht=Xe.deltaY,St=Xe.shiftKey,_t=qe,It=ht;(Ue.current==="sx"||!Ue.current&&St&&ht&&!qe)&&(_t=ht,It=0,Ue.current="sx");var Ct=Math.abs(_t),y=Math.abs(It);Ue.current===null&&(Ue.current=de&&Ct>y?"x":"y"),Ue.current==="y"?Z(Xe,It):De(Xe,_t)}}function We(Xe){it&&(ue.current=Xe.detail===O.current)}return[Ne,We]}function ge(it,At,oe,me){var k=g.useMemo(function(){return[new Map,[]]},[it,oe.id,me]),de=(0,V.Z)(k,2),we=de[0],L=de[1],T=function(ue){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue,Z=we.get(ue),De=we.get(he);if(Z===void 0||De===void 0)for(var Ue=it.length,Ae=L.length;Ae<Ue;Ae+=1){var Ne,We=it[Ae],Xe=At(We);we.set(Xe,Ae);var qe=(Ne=oe.get(Xe))!==null&&Ne!==void 0?Ne:me;if(L[Ae]=(L[Ae-1]||0)+qe,Xe===ue&&(Z=Ae),Xe===he&&(De=Ae),Z!==void 0&&De!==void 0)break}return{top:L[Z-1]||0,bottom:L[De]}};return T}var Ie=_(52884),Oe=_(95727),He=function(){function it(){(0,Ie.Z)(this,it),(0,Re.Z)(this,"maps",void 0),(0,Re.Z)(this,"id",0),(0,Re.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Oe.Z)(it,[{key:"set",value:function(oe,me){this.maps[oe]=me,this.id+=1,this.diffKeys.add(oe)}},{key:"get",value:function(oe){return this.maps[oe]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),it}(),q=He;function $(it){var At=parseFloat(it);return isNaN(At)?0:At}function ae(it,At,oe){var me=g.useState(0),k=(0,V.Z)(me,2),de=k[0],we=k[1],L=(0,g.useRef)(new Map),T=(0,g.useRef)(new q),O=(0,g.useRef)(0);function ue(){O.current+=1}function he(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ue();var Ue=function(){var We=!1;L.current.forEach(function(Xe,qe){if(Xe&&Xe.offsetParent){var ht=Xe.offsetHeight,St=getComputedStyle(Xe),_t=St.marginTop,It=St.marginBottom,Ct=$(_t),y=$(It),C=ht+Ct+y;T.current.get(qe)!==C&&(T.current.set(qe,C),We=!0)}}),We&&we(function(Xe){return Xe+1})};if(De)Ue();else{O.current+=1;var Ae=O.current;Promise.resolve().then(function(){Ae===O.current&&Ue()})}}function Z(De,Ue){var Ae=it(De),Ne=L.current.get(Ae);Ue?(L.current.set(Ae,Ue),he()):L.current.delete(Ae),!Ne!=!Ue&&(Ue?At==null||At(De):oe==null||oe(De))}return(0,g.useEffect)(function(){return ue},[]),[Z,he,T.current,de]}var ee=14/15;function ye(it,At,oe){var me=(0,g.useRef)(!1),k=(0,g.useRef)(0),de=(0,g.useRef)(0),we=(0,g.useRef)(null),L=(0,g.useRef)(null),T,O=function(De){if(me.current){var Ue=Math.ceil(De.touches[0].pageX),Ae=Math.ceil(De.touches[0].pageY),Ne=k.current-Ue,We=de.current-Ae,Xe=Math.abs(Ne)>Math.abs(We);Xe?k.current=Ue:de.current=Ae;var qe=oe(Xe,Xe?Ne:We,!1,De);qe&&De.preventDefault(),clearInterval(L.current),qe&&(L.current=setInterval(function(){Xe?Ne*=ee:We*=ee;var ht=Math.floor(Xe?Ne:We);(!oe(Xe,ht,!0)||Math.abs(ht)<=.1)&&clearInterval(L.current)},16))}},ue=function(){me.current=!1,T()},he=function(De){T(),De.touches.length===1&&!me.current&&(me.current=!0,k.current=Math.ceil(De.touches[0].pageX),de.current=Math.ceil(De.touches[0].pageY),we.current=De.target,we.current.addEventListener("touchmove",O,{passive:!1}),we.current.addEventListener("touchend",ue,{passive:!0}))};T=function(){we.current&&(we.current.removeEventListener("touchmove",O),we.current.removeEventListener("touchend",ue))},(0,M.Z)(function(){return it&&At.current.addEventListener("touchstart",he,{passive:!0}),function(){var Z;(Z=At.current)===null||Z===void 0||Z.removeEventListener("touchstart",he),T(),clearInterval(L.current)}},[it])}function re(it){return Math.floor(Math.pow(it,.5))}function x(it,At){var oe="touches"in it?it.touches[0]:it;return oe[At?"pageX":"pageY"]-window[At?"scrollX":"scrollY"]}function S(it,At,oe){g.useEffect(function(){var me=At.current;if(it&&me){var k=!1,de,we,L=function(){ne.Z.cancel(de)},T=function Z(){L(),de=(0,ne.Z)(function(){oe(we),Z()})},O=function(De){if(!De.target.draggable){var Ue=De;Ue._virtualHandled||(Ue._virtualHandled=!0,k=!0)}},ue=function(){k=!1,L()},he=function(De){if(k){var Ue=x(De,!1),Ae=me.getBoundingClientRect(),Ne=Ae.top,We=Ae.bottom;if(Ue<=Ne){var Xe=Ne-Ue;we=-re(Xe),T()}else if(Ue>=We){var qe=Ue-We;we=re(qe),T()}else L()}};return me.addEventListener("mousedown",O),me.ownerDocument.addEventListener("mouseup",ue),me.ownerDocument.addEventListener("mousemove",he),function(){me.removeEventListener("mousedown",O),me.ownerDocument.removeEventListener("mouseup",ue),me.ownerDocument.removeEventListener("mousemove",he),L()}}},[it])}var Q=10;function be(it,At,oe,me,k,de,we,L){var T=g.useRef(),O=g.useState(null),ue=(0,V.Z)(O,2),he=ue[0],Z=ue[1];return(0,M.Z)(function(){if(he&&he.times<Q){if(!it.current){Z(function(fe){return(0,te.Z)({},fe)});return}de();var De=he.targetAlign,Ue=he.originAlign,Ae=he.index,Ne=he.offset,We=it.current.clientHeight,Xe=!1,qe=De,ht=null;if(We){for(var St=De||Ue,_t=0,It=0,Ct=0,y=Math.min(At.length-1,Ae),C=0;C<=y;C+=1){var ot=k(At[C]);It=_t;var W=oe.get(ot);Ct=It+(W===void 0?me:W),_t=Ct}for(var Ce=St==="top"?Ne:We-Ne,yn=y;yn>=0;yn-=1){var Me=k(At[yn]),Ke=oe.get(Me);if(Ke===void 0){Xe=!0;break}if(Ce-=Ke,Ce<=0)break}switch(St){case"top":ht=It-Ne;break;case"bottom":ht=Ct-We+Ne;break;default:{var Ze=it.current.scrollTop,J=Ze+We;It<Ze?qe="top":Ct>J&&(qe="bottom")}}ht!==null&&we(ht),ht!==he.lastTop&&(Xe=!0)}Xe&&Z((0,te.Z)((0,te.Z)({},he),{},{times:he.times+1,targetAlign:qe,lastTop:ht}))}},[he,it.current]),function(De){if(De==null){L();return}if(ne.Z.cancel(T.current),typeof De=="number")we(De);else if(De&&(0,N.Z)(De)==="object"){var Ue,Ae=De.align;"index"in De?Ue=De.index:Ue=At.findIndex(function(Xe){return k(Xe)===De.key});var Ne=De.offset,We=Ne===void 0?0:Ne;Z({times:0,index:Ue,offset:We,originAlign:Ae})}}}var Ve=g.forwardRef(function(it,At){var oe=it.prefixCls,me=it.rtl,k=it.scrollOffset,de=it.scrollRange,we=it.onStartMove,L=it.onStopMove,T=it.onScroll,O=it.horizontal,ue=it.spinSize,he=it.containerSize,Z=it.style,De=it.thumbStyle,Ue=it.showScrollBar,Ae=g.useState(!1),Ne=(0,V.Z)(Ae,2),We=Ne[0],Xe=Ne[1],qe=g.useState(null),ht=(0,V.Z)(qe,2),St=ht[0],_t=ht[1],It=g.useState(null),Ct=(0,V.Z)(It,2),y=Ct[0],C=Ct[1],ot=!me,W=g.useRef(),Ce=g.useRef(),yn=g.useState(Ue),Me=(0,V.Z)(yn,2),Ke=Me[0],Ze=Me[1],J=g.useRef(),fe=function(){Ue===!0||Ue===!1||(clearTimeout(J.current),Ze(!0),J.current=setTimeout(function(){Ze(!1)},3e3))},Te=de-he||0,Be=he-ue||0,G=g.useMemo(function(){if(k===0||Te===0)return 0;var $e=k/Te;return $e*Be},[k,Te,Be]),Ot=function(dt){dt.stopPropagation(),dt.preventDefault()},Pe=g.useRef({top:G,dragging:We,pageY:St,startTop:y});Pe.current={top:G,dragging:We,pageY:St,startTop:y};var Yt=function(dt){Xe(!0),_t(x(dt,O)),C(Pe.current.top),we(),dt.stopPropagation(),dt.preventDefault()};g.useEffect(function(){var $e=function(ve){ve.preventDefault()},dt=W.current,Tt=Ce.current;return dt.addEventListener("touchstart",$e,{passive:!1}),Tt.addEventListener("touchstart",Yt,{passive:!1}),function(){dt.removeEventListener("touchstart",$e),Tt.removeEventListener("touchstart",Yt)}},[]);var mn=g.useRef();mn.current=Te;var wn=g.useRef();wn.current=Be,g.useEffect(function(){if(We){var $e,dt=function(ve){var rt=Pe.current,lt=rt.dragging,Nt=rt.pageY,Rt=rt.startTop;ne.Z.cancel($e);var zt=W.current.getBoundingClientRect(),Pt=he/(O?zt.width:zt.height);if(lt){var Wt=(x(ve,O)-Nt)*Pt,ln=Rt;!ot&&O?ln-=Wt:ln+=Wt;var Lt=mn.current,ft=wn.current,jt=ft?ln/ft:0,Ut=Math.ceil(jt*Lt);Ut=Math.max(Ut,0),Ut=Math.min(Ut,Lt),$e=(0,ne.Z)(function(){T(Ut,O)})}},Tt=function(){Xe(!1),L()};return window.addEventListener("mousemove",dt,{passive:!0}),window.addEventListener("touchmove",dt,{passive:!0}),window.addEventListener("mouseup",Tt,{passive:!0}),window.addEventListener("touchend",Tt,{passive:!0}),function(){window.removeEventListener("mousemove",dt),window.removeEventListener("touchmove",dt),window.removeEventListener("mouseup",Tt),window.removeEventListener("touchend",Tt),ne.Z.cancel($e)}}},[We]),g.useEffect(function(){return fe(),function(){clearTimeout(J.current)}},[k]),g.useImperativeHandle(At,function(){return{delayHidden:fe}});var Hn="".concat(oe,"-scrollbar"),$t={position:"absolute",visibility:Ke?null:"hidden"},qt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return O?($t.height=8,$t.left=0,$t.right=0,$t.bottom=0,qt.height="100%",qt.width=ue,ot?qt.left=G:qt.right=G):($t.width=8,$t.top=0,$t.bottom=0,ot?$t.right=0:$t.left=0,qt.width="100%",qt.height=ue,qt.top=G),g.createElement("div",{ref:W,className:Ee()(Hn,(0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(Hn,"-horizontal"),O),"".concat(Hn,"-vertical"),!O),"".concat(Hn,"-visible"),Ke)),style:(0,te.Z)((0,te.Z)({},$t),Z),onMouseDown:Ot,onMouseMove:fe},g.createElement("div",{ref:Ce,className:Ee()("".concat(Hn,"-thumb"),(0,Re.Z)({},"".concat(Hn,"-thumb-moving"),We)),style:(0,te.Z)((0,te.Z)({},qt),De),onMouseDown:Yt}))}),tt=Ve,Je=20;function et(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,oe=it/At*it;return isNaN(oe)&&(oe=0),oe=Math.max(oe,Je),Math.floor(oe)}var xt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],gt=[],st={overflowY:"auto",overflowAnchor:"none"};function kt(it,At){var oe=it.prefixCls,me=oe===void 0?"rc-virtual-list":oe,k=it.className,de=it.height,we=it.itemHeight,L=it.fullHeight,T=L===void 0?!0:L,O=it.style,ue=it.data,he=it.children,Z=it.itemKey,De=it.virtual,Ue=it.direction,Ae=it.scrollWidth,Ne=it.component,We=Ne===void 0?"div":Ne,Xe=it.onScroll,qe=it.onVirtualScroll,ht=it.onVisibleChange,St=it.innerProps,_t=it.extraRender,It=it.styles,Ct=it.showScrollBar,y=Ct===void 0?"optional":Ct,C=(0,ce.Z)(it,xt),ot=g.useCallback(function(vn){return typeof Z=="function"?Z(vn):vn==null?void 0:vn[Z]},[Z]),W=ae(ot,null,null),Ce=(0,V.Z)(W,4),yn=Ce[0],Me=Ce[1],Ke=Ce[2],Ze=Ce[3],J=!!(De!==!1&&de&&we),fe=g.useMemo(function(){return Object.values(Ke.maps).reduce(function(vn,en){return vn+en},0)},[Ke.id,Ke.maps]),Te=J&&ue&&(Math.max(we*ue.length,fe)>de||!!Ae),Be=Ue==="rtl",G=Ee()(me,(0,Re.Z)({},"".concat(me,"-rtl"),Be),k),Ot=ue||gt,Pe=(0,g.useRef)(),Yt=(0,g.useRef)(),mn=(0,g.useRef)(),wn=(0,g.useState)(0),Hn=(0,V.Z)(wn,2),$t=Hn[0],qt=Hn[1],$e=(0,g.useState)(0),dt=(0,V.Z)($e,2),Tt=dt[0],Le=dt[1],ve=(0,g.useState)(!1),rt=(0,V.Z)(ve,2),lt=rt[0],Nt=rt[1],Rt=function(){Nt(!0)},zt=function(){Nt(!1)},Pt={getKey:ot};function Wt(vn){qt(function(en){var Dn;typeof vn=="function"?Dn=vn(en):Dn=vn;var Jn=Rn(Dn);return Pe.current.scrollTop=Jn,Jn})}var ln=(0,g.useRef)({start:0,end:Ot.length}),Lt=(0,g.useRef)(),ft=H(Ot,ot),jt=(0,V.Z)(ft,1),Ut=jt[0];Lt.current=Ut;var Zt=g.useMemo(function(){if(!J)return{scrollHeight:void 0,start:0,end:Ot.length-1,offset:void 0};if(!Te){var vn;return{scrollHeight:((vn=Yt.current)===null||vn===void 0?void 0:vn.offsetHeight)||0,start:0,end:Ot.length-1,offset:void 0}}for(var en=0,Dn,Jn,or,Pr=Ot.length,_n=0;_n<Pr;_n+=1){var cr=Ot[_n],lr=ot(cr),Er=Ke.get(lr),Mr=en+(Er===void 0?we:Er);Mr>=$t&&Dn===void 0&&(Dn=_n,Jn=en),Mr>$t+de&&or===void 0&&(or=_n),en=Mr}return Dn===void 0&&(Dn=0,Jn=0,or=Math.ceil(de/we)),or===void 0&&(or=Ot.length-1),or=Math.min(or+1,Ot.length-1),{scrollHeight:en,start:Dn,end:or,offset:Jn}},[Te,J,$t,Ot,Ze,de]),un=Zt.scrollHeight,zn=Zt.start,gn=Zt.end,Bt=Zt.offset;ln.current.start=zn,ln.current.end=gn,g.useLayoutEffect(function(){var vn=Ke.getRecord();if(vn.size===1){var en=Array.from(vn)[0],Dn=Ot[zn];if(Dn){var Jn=ot(Dn);if(Jn===en){var or=Ke.get(en),Pr=or-we;Wt(function(_n){return _n+Pr})}}}Ke.resetRecord()},[un]);var Ye=g.useState({width:0,height:de}),Qe=(0,V.Z)(Ye,2),ut=Qe[0],yt=Qe[1],ct=function(en){yt({width:en.offsetWidth,height:en.offsetHeight})},Et=(0,g.useRef)(),bt=(0,g.useRef)(),Kt=g.useMemo(function(){return et(ut.width,Ae)},[ut.width,Ae]),Qt=g.useMemo(function(){return et(ut.height,un)},[ut.height,un]),nn=un-de,Cn=(0,g.useRef)(nn);Cn.current=nn;function Rn(vn){var en=vn;return Number.isNaN(Cn.current)||(en=Math.min(en,Cn.current)),en=Math.max(en,0),en}var On=$t<=0,on=$t>=nn,Xt=Tt<=0,$n=Tt>=Ae,Sn=B(On,on,Xt,$n),Qn=function(){return{x:Be?-Tt:Tt,y:$t}},An=(0,g.useRef)(Qn()),kn=(0,R.useEvent)(function(vn){if(qe){var en=(0,te.Z)((0,te.Z)({},Qn()),vn);(An.current.x!==en.x||An.current.y!==en.y)&&(qe(en),An.current=en)}});function Kn(vn,en){var Dn=vn;en?((0,c.flushSync)(function(){Le(Dn)}),kn()):Wt(Dn)}function In(vn){var en=vn.currentTarget.scrollTop;en!==$t&&Wt(en),Xe==null||Xe(vn),kn()}var qn=function(en){var Dn=en,Jn=Ae?Ae-ut.width:0;return Dn=Math.max(Dn,0),Dn=Math.min(Dn,Jn),Dn},fr=(0,R.useEvent)(function(vn,en){en?((0,c.flushSync)(function(){Le(function(Dn){var Jn=Dn+(Be?-vn:vn);return qn(Jn)})}),kn()):Wt(function(Dn){var Jn=Dn+vn;return Jn})}),Tn=X(J,On,on,Xt,$n,!!Ae,fr),Jt=(0,V.Z)(Tn,2),ze=Jt[0],fn=Jt[1];ye(J,Pe,function(vn,en,Dn,Jn){var or=Jn;return Sn(vn,en,Dn)?!1:!or||!or._virtualHandled?(or&&(or._virtualHandled=!0),ze({preventDefault:function(){},deltaX:vn?en:0,deltaY:vn?0:en}),!0):!1}),S(Te,Pe,function(vn){Wt(function(en){return en+vn})}),(0,M.Z)(function(){function vn(Dn){var Jn=On&&Dn.detail<0,or=on&&Dn.detail>0;J&&!Jn&&!or&&Dn.preventDefault()}var en=Pe.current;return en.addEventListener("wheel",ze,{passive:!1}),en.addEventListener("DOMMouseScroll",fn,{passive:!0}),en.addEventListener("MozMousePixelScroll",vn,{passive:!1}),function(){en.removeEventListener("wheel",ze),en.removeEventListener("DOMMouseScroll",fn),en.removeEventListener("MozMousePixelScroll",vn)}},[J,On,on]),(0,M.Z)(function(){if(Ae){var vn=qn(Tt);Le(vn),kn({x:vn})}},[ut.width,Ae]);var Pn=function(){var en,Dn;(en=Et.current)===null||en===void 0||en.delayHidden(),(Dn=bt.current)===null||Dn===void 0||Dn.delayHidden()},Vn=be(Pe,Ot,Ke,we,ot,function(){return Me(!0)},Wt,Pn);g.useImperativeHandle(At,function(){return{nativeElement:mn.current,getScrollInfo:Qn,scrollTo:function(en){function Dn(Jn){return Jn&&(0,N.Z)(Jn)==="object"&&("left"in Jn||"top"in Jn)}Dn(en)?(en.left!==void 0&&Le(qn(en.left)),Vn(en.top)):Vn(en)}}}),(0,M.Z)(function(){if(ht){var vn=Ot.slice(zn,gn+1);ht(vn,Ot)}},[zn,gn,Ot]);var Yn=ge(Ot,ot,Ke,we),rr=_t==null?void 0:_t({start:zn,end:gn,virtual:Te,offsetX:Tt,offsetY:Bt,rtl:Be,getSize:Yn}),sr=se(Ot,zn,gn,Ae,Tt,yn,he,Pt),Un=null;de&&(Un=(0,te.Z)((0,Re.Z)({},T?"height":"maxHeight",de),st),J&&(Un.overflowY="hidden",Ae&&(Un.overflowX="hidden"),lt&&(Un.pointerEvents="none")));var ar={};return Be&&(ar.dir="rtl"),g.createElement("div",(0,P.Z)({ref:mn,style:(0,te.Z)((0,te.Z)({},O),{},{position:"relative"}),className:G},ar,C),g.createElement(o.Z,{onResize:ct},g.createElement(We,{className:"".concat(me,"-holder"),style:Un,ref:Pe,onScroll:In,onMouseEnter:Pn},g.createElement(v,{prefixCls:me,height:un,offsetX:Tt,offsetY:Bt,scrollWidth:Ae,onInnerResize:Me,ref:Yt,innerProps:St,rtl:Be,extra:rr},sr))),Te&&un>de&&g.createElement(tt,{ref:Et,prefixCls:me,scrollOffset:$t,scrollRange:un,rtl:Be,onScroll:Kn,onStartMove:Rt,onStopMove:zt,spinSize:Qt,containerSize:ut.height,style:It==null?void 0:It.verticalScrollBar,thumbStyle:It==null?void 0:It.verticalScrollBarThumb,showScrollBar:y}),Te&&Ae>ut.width&&g.createElement(tt,{ref:bt,prefixCls:me,scrollOffset:Tt,scrollRange:Ae,rtl:Be,onScroll:Kn,onStartMove:Rt,onStopMove:zt,spinSize:Kt,containerSize:ut.width,horizontal:!0,style:It==null?void 0:It.horizontalScrollBar,thumbStyle:It==null?void 0:It.horizontalScrollBarThumb,showScrollBar:y}))}var Ft=g.forwardRef(kt);Ft.displayName="List";var cn=Ft,Vt=cn},83145:function(rn,nt,_){"use strict";Object.defineProperty(nt,"__esModule",{value:!0}),nt.CopyToClipboard=void 0;var P=te(_(59301)),N=te(_(25769));function te(F){return F&&F.__esModule?F:{default:F}}function Re(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(ne){return typeof ne}:Re=function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},Re(F)}function V(F,H){var ne=Object.keys(F);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(F);H&&(b=b.filter(function(A){return Object.getOwnPropertyDescriptor(F,A).enumerable})),ne.push.apply(ne,b)}return ne}function ce(F){for(var H=1;H<arguments.length;H++){var ne=arguments[H]!=null?arguments[H]:{};H%2?V(ne,!0).forEach(function(b){se(F,b,ne[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(ne)):V(ne).forEach(function(b){Object.defineProperty(F,b,Object.getOwnPropertyDescriptor(ne,b))})}return F}function _e(F,H){if(F==null)return{};var ne=Ee(F,H),b,A;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(F);for(A=0;A<B.length;A++)b=B[A],!(H.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(F,b)&&(ne[b]=F[b])}return ne}function Ee(F,H){if(F==null)return{};var ne={},b=Object.keys(F),A,B;for(B=0;B<b.length;B++)A=b[B],!(H.indexOf(A)>=0)&&(ne[A]=F[A]);return ne}function o(F,H){if(!(F instanceof H))throw new TypeError("Cannot call a class as a function")}function R(F,H){for(var ne=0;ne<H.length;ne++){var b=H[ne];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(F,b.key,b)}}function M(F,H,ne){return H&&R(F.prototype,H),ne&&R(F,ne),F}function g(F,H){return H&&(Re(H)==="object"||typeof H=="function")?H:w(F)}function c(F){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(ne){return ne.__proto__||Object.getPrototypeOf(ne)},c(F)}function w(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function v(F,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(H&&H.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),H&&Y(F,H)}function Y(F,H){return Y=Object.setPrototypeOf||function(b,A){return b.__proto__=A,b},Y(F,H)}function se(F,H,ne){return H in F?Object.defineProperty(F,H,{value:ne,enumerable:!0,configurable:!0,writable:!0}):F[H]=ne,F}var K=function(F){v(H,F);function H(){var ne,b;o(this,H);for(var A=arguments.length,B=new Array(A),X=0;X<A;X++)B[X]=arguments[X];return b=g(this,(ne=c(H)).call.apply(ne,[this].concat(B))),se(w(b),"onClick",function(ge){var Ie=b.props,Oe=Ie.text,He=Ie.onCopy,q=Ie.children,$=Ie.options,ae=P.default.Children.only(q),ee=(0,N.default)(Oe,$);He&&He(Oe,ee),ae&&ae.props&&typeof ae.props.onClick=="function"&&ae.props.onClick(ge)}),b}return M(H,[{key:"render",value:function(){var b=this.props,A=b.text,B=b.onCopy,X=b.options,ge=b.children,Ie=_e(b,["text","onCopy","options","children"]),Oe=P.default.Children.only(ge);return P.default.cloneElement(Oe,ce({},Ie,{onClick:this.onClick}))}}]),H}(P.default.PureComponent);nt.CopyToClipboard=K,se(K,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(rn,nt,_){"use strict";var P=_(83145),N=P.CopyToClipboard;N.CopyToClipboard=N,rn.exports=N},76374:function(rn,nt,_){"use strict";var P=function(){if(typeof Map!="undefined")return Map;function q($,ae){var ee=-1;return $.some(function(ye,re){return ye[0]===ae?(ee=re,!0):!1}),ee}return function(){function $(){this.__entries__=[]}return Object.defineProperty($.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),$.prototype.get=function(ae){var ee=q(this.__entries__,ae),ye=this.__entries__[ee];return ye&&ye[1]},$.prototype.set=function(ae,ee){var ye=q(this.__entries__,ae);~ye?this.__entries__[ye][1]=ee:this.__entries__.push([ae,ee])},$.prototype.delete=function(ae){var ee=this.__entries__,ye=q(ee,ae);~ye&&ee.splice(ye,1)},$.prototype.has=function(ae){return!!~q(this.__entries__,ae)},$.prototype.clear=function(){this.__entries__.splice(0)},$.prototype.forEach=function(ae,ee){ee===void 0&&(ee=null);for(var ye=0,re=this.__entries__;ye<re.length;ye++){var x=re[ye];ae.call(ee,x[1],x[0])}},$}()}(),N=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,te=function(){return typeof _.g!="undefined"&&_.g.Math===Math?_.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Re=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(te):function(q){return setTimeout(function(){return q(Date.now())},1e3/60)}}(),V=2;function ce(q,$){var ae=!1,ee=!1,ye=0;function re(){ae&&(ae=!1,q()),ee&&S()}function x(){Re(re)}function S(){var Q=Date.now();if(ae){if(Q-ye<V)return;ee=!0}else ae=!0,ee=!1,setTimeout(x,$);ye=Q}return S}var _e=20,Ee=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",R=function(){function q(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ce(this.refresh.bind(this),_e)}return q.prototype.addObserver=function($){~this.observers_.indexOf($)||this.observers_.push($),this.connected_||this.connect_()},q.prototype.removeObserver=function($){var ae=this.observers_,ee=ae.indexOf($);~ee&&ae.splice(ee,1),!ae.length&&this.connected_&&this.disconnect_()},q.prototype.refresh=function(){var $=this.updateObservers_();$&&this.refresh()},q.prototype.updateObservers_=function(){var $=this.observers_.filter(function(ae){return ae.gatherActive(),ae.hasActive()});return $.forEach(function(ae){return ae.broadcastActive()}),$.length>0},q.prototype.connect_=function(){!N||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)},q.prototype.disconnect_=function(){!N||!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)},q.prototype.onTransitionEnd_=function($){var ae=$.propertyName,ee=ae===void 0?"":ae,ye=Ee.some(function(re){return!!~ee.indexOf(re)});ye&&this.refresh()},q.getInstance=function(){return this.instance_||(this.instance_=new q),this.instance_},q.instance_=null,q}(),M=function(q,$){for(var ae=0,ee=Object.keys($);ae<ee.length;ae++){var ye=ee[ae];Object.defineProperty(q,ye,{value:$[ye],enumerable:!1,writable:!1,configurable:!0})}return q},g=function(q){var $=q&&q.ownerDocument&&q.ownerDocument.defaultView;return $||te},c=A(0,0,0,0);function w(q){return parseFloat(q)||0}function v(q){for(var $=[],ae=1;ae<arguments.length;ae++)$[ae-1]=arguments[ae];return $.reduce(function(ee,ye){var re=q["border-"+ye+"-width"];return ee+w(re)},0)}function Y(q){for(var $=["top","right","bottom","left"],ae={},ee=0,ye=$;ee<ye.length;ee++){var re=ye[ee],x=q["padding-"+re];ae[re]=w(x)}return ae}function se(q){var $=q.getBBox();return A(0,0,$.width,$.height)}function K(q){var $=q.clientWidth,ae=q.clientHeight;if(!$&&!ae)return c;var ee=g(q).getComputedStyle(q),ye=Y(ee),re=ye.left+ye.right,x=ye.top+ye.bottom,S=w(ee.width),Q=w(ee.height);if(ee.boxSizing==="border-box"&&(Math.round(S+re)!==$&&(S-=v(ee,"left","right")+re),Math.round(Q+x)!==ae&&(Q-=v(ee,"top","bottom")+x)),!H(q)){var be=Math.round(S+re)-$,Ve=Math.round(Q+x)-ae;Math.abs(be)!==1&&(S-=be),Math.abs(Ve)!==1&&(Q-=Ve)}return A(ye.left,ye.top,S,Q)}var F=function(){return typeof SVGGraphicsElement!="undefined"?function(q){return q instanceof g(q).SVGGraphicsElement}:function(q){return q instanceof g(q).SVGElement&&typeof q.getBBox=="function"}}();function H(q){return q===g(q).document.documentElement}function ne(q){return N?F(q)?se(q):K(q):c}function b(q){var $=q.x,ae=q.y,ee=q.width,ye=q.height,re=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,x=Object.create(re.prototype);return M(x,{x:$,y:ae,width:ee,height:ye,top:ae,right:$+ee,bottom:ye+ae,left:$}),x}function A(q,$,ae,ee){return{x:q,y:$,width:ae,height:ee}}var B=function(){function q($){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=A(0,0,0,0),this.target=$}return q.prototype.isActive=function(){var $=ne(this.target);return this.contentRect_=$,$.width!==this.broadcastWidth||$.height!==this.broadcastHeight},q.prototype.broadcastRect=function(){var $=this.contentRect_;return this.broadcastWidth=$.width,this.broadcastHeight=$.height,$},q}(),X=function(){function q($,ae){var ee=b(ae);M(this,{target:$,contentRect:ee})}return q}(),ge=function(){function q($,ae,ee){if(this.activeObservations_=[],this.observations_=new P,typeof $!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=$,this.controller_=ae,this.callbackCtx_=ee}return q.prototype.observe=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!($ instanceof g($).Element))throw new TypeError('parameter 1 is not of type "Element".');var ae=this.observations_;ae.has($)||(ae.set($,new B($)),this.controller_.addObserver(this),this.controller_.refresh())}},q.prototype.unobserve=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!($ instanceof g($).Element))throw new TypeError('parameter 1 is not of type "Element".');var ae=this.observations_;ae.has($)&&(ae.delete($),ae.size||this.controller_.removeObserver(this))}},q.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},q.prototype.gatherActive=function(){var $=this;this.clearActive(),this.observations_.forEach(function(ae){ae.isActive()&&$.activeObservations_.push(ae)})},q.prototype.broadcastActive=function(){if(this.hasActive()){var $=this.callbackCtx_,ae=this.activeObservations_.map(function(ee){return new X(ee.target,ee.broadcastRect())});this.callback_.call($,ae,$),this.clearActive()}},q.prototype.clearActive=function(){this.activeObservations_.splice(0)},q.prototype.hasActive=function(){return this.activeObservations_.length>0},q}(),Ie=typeof WeakMap!="undefined"?new WeakMap:new P,Oe=function(){function q($){if(!(this instanceof q))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ae=R.getInstance(),ee=new ge($,ae,this);Ie.set(this,ee)}return q}();["observe","unobserve","disconnect"].forEach(function(q){Oe.prototype[q]=function(){var $;return($=Ie.get(this))[q].apply($,arguments)}});var He=function(){return typeof te.ResizeObserver!="undefined"?te.ResizeObserver:Oe}();nt.Z=He},98040:function(rn){rn.exports=function(){var nt=document.getSelection();if(!nt.rangeCount)return function(){};for(var _=document.activeElement,P=[],N=0;N<nt.rangeCount;N++)P.push(nt.getRangeAt(N));switch(_.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":_.blur();break;default:_=null;break}return nt.removeAllRanges(),function(){nt.type==="Caret"&&nt.removeAllRanges(),nt.rangeCount||P.forEach(function(te){nt.addRange(te)}),_&&_.focus()}}},1012:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return g}});var P=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),N=new Uint8Array(16);function te(){if(!P)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return P(N)}var Re=/^(?:[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 V(c){return typeof c=="string"&&Re.test(c)}for(var ce=V,_e=[],Ee=0;Ee<256;++Ee)_e.push((Ee+256).toString(16).substr(1));function o(c){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=(_e[c[w+0]]+_e[c[w+1]]+_e[c[w+2]]+_e[c[w+3]]+"-"+_e[c[w+4]]+_e[c[w+5]]+"-"+_e[c[w+6]]+_e[c[w+7]]+"-"+_e[c[w+8]]+_e[c[w+9]]+"-"+_e[c[w+10]]+_e[c[w+11]]+_e[c[w+12]]+_e[c[w+13]]+_e[c[w+14]]+_e[c[w+15]]).toLowerCase();if(!ce(v))throw TypeError("Stringified UUID is invalid");return v}var R=o;function M(c,w,v){c=c||{};var Y=c.random||(c.rng||te)();if(Y[6]=Y[6]&15|64,Y[8]=Y[8]&63|128,w){v=v||0;for(var se=0;se<16;++se)w[v+se]=Y[se];return w}return R(Y)}var g=M},93314:function(rn){"use strict";rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},40846:function(rn,nt,_){"use strict";_.d(nt,{ZP:function(){return Ps}});function P(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var N={exports:{}};(function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(f,p,E){if(E=E||{},f=f.trim(),p=p.trim(),!p){if(!E.alwaysNormalize)return f;var D=u.parseURL(f);if(!D)throw new Error("Error trying to parse base URL.");return D.path=u.normalizePath(D.path),u.buildURLFromParts(D)}var j=u.parseURL(p);if(!j)throw new Error("Error trying to parse relative URL.");if(j.scheme)return E.alwaysNormalize?(j.path=u.normalizePath(j.path),u.buildURLFromParts(j)):p;var le=u.parseURL(f);if(!le)throw new Error("Error trying to parse base URL.");if(!le.netLoc&&le.path&&le.path[0]!=="/"){var ie=r.exec(le.path);le.netLoc=ie[1],le.path=ie[2]}le.netLoc&&!le.path&&(le.path="/");var pe={scheme:le.scheme,netLoc:j.netLoc,path:null,params:j.params,query:j.query,fragment:j.fragment};if(!j.netLoc&&(pe.netLoc=le.netLoc,j.path[0]!=="/"))if(!j.path)pe.path=le.path,j.params||(pe.params=le.params,j.query||(pe.query=le.query));else{var Se=le.path,Ge=Se.substring(0,Se.lastIndexOf("/")+1)+j.path;pe.path=u.normalizePath(Ge)}return pe.path===null&&(pe.path=E.alwaysNormalize?u.normalizePath(j.path):j.path),u.buildURLFromParts(pe)},parseURL:function(f){var p=n.exec(f);return p?{scheme:p[1]||"",netLoc:p[2]||"",path:p[3]||"",params:p[4]||"",query:p[5]||"",fragment:p[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})()})(N);var te=N.exports;function Re(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 V(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(t),!0).forEach(function(n){Ee(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Re(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function ce(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function _e(a){var e=ce(a,"string");return typeof e=="symbol"?e:String(e)}function Ee(a,e,t){return e=_e(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function o(){return o=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},o.apply(this,arguments)}const R=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},M=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=g},g=Number.MAX_SAFE_INTEGER||9007199254740991;let c=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",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.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.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_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}({}),w=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}({}),v=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.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.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.UNKNOWN="unknown",a}({});const Y=function(){},se={trace:Y,debug:Y,log:Y,warn:Y,info:Y,error:Y};let K=se;function F(a){const e=self.console[a];return e?e.bind(self.console,`[${a}] >`):Y}function H(a,...e){e.forEach(function(t){K[t]=a[t]?a[t].bind(a):F(t)})}function ne(a,e){if(typeof console=="object"&&a===!0||typeof a=="object"){H(a,"debug","log","info","warn","error");try{K.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){K=se}}else K=se}const b=K,A=/^(\d+)x(\d+)$/,B=/(.+?)=(".*?"|.*?)(?:,|$)/g;class X{constructor(e){typeof e=="string"&&(e=X.parseAttrList(e)),o(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}else return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=A.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const n={},r='"';for(B.lastIndex=0;(t=B.exec(e))!==null;){let i=t[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1));const s=t[1].trim();n[s]=i}return n}}function ge(a){return a!=="ID"&&a!=="CLASS"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Ie(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"}class Oe{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const n=t.attr;for(const r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){b.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=o(new X({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const n=new Date(this.attr["END-DATE"]);R(n.getTime())&&(this._endDate=n)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(R(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&R(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class He{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 q={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class ${constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[q.AUDIO]:null,[q.VIDEO]:null,[q.AUDIOVIDEO]:null},this.baseurl=e}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 byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=te.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class ae extends ${constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new He,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const 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||!R(this.programDateTime))return null;const e=R(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}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)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[q.AUDIO]=null,e[q.VIDEO]=null,e[q.AUDIOVIDEO]=null}}class ee extends ${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.stats=new He,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)}}const ye=10;class re{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,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,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?R(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||ye}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function x(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function S(a){const e=Ve(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Q(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 be(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=x(s)):t=S(s)}}return t}function Ve(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}const tt=typeof self!="undefined"?self:void 0;var Je={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},et={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function xt(a){switch(a){case et.FAIRPLAY:return Je.FAIRPLAY;case et.PLAYREADY:return Je.PLAYREADY;case et.WIDEVINE:return Je.WIDEVINE;case et.CLEARKEY:return Je.CLEARKEY}}var gt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function st(a){if(a===gt.WIDEVINE)return Je.WIDEVINE;if(a===gt.PLAYREADY)return Je.PLAYREADY;if(a===gt.CENC||a===gt.CLEARKEY)return Je.CLEARKEY}function kt(a){switch(a){case Je.FAIRPLAY:return et.FAIRPLAY;case Je.PLAYREADY:return et.PLAYREADY;case Je.WIDEVINE:return et.WIDEVINE;case Je.CLEARKEY:return et.CLEARKEY}}function Ft(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[Je.FAIRPLAY,Je.WIDEVINE,Je.PLAYREADY,Je.CLEARKEY].filter(r=>!!e[r]):[];return!n[Je.WIDEVINE]&&t&&n.push(Je.WIDEVINE),n}const cn=function(a){return tt!=null&&(a=tt.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Vt(a,e,t,n){let r;switch(a){case Je.FAIRPLAY:r=["cenc","sinf"];break;case Je.WIDEVINE:case Je.PLAYREADY:r=["cenc"];break;case Je.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return it(r,e,t,n)}function it(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 At(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=x(u).subarray(0,16);return Q(f),f}}return null}function oe(a,e,t){return Uint8Array.prototype.slice?a.slice(e,t):new Uint8Array(Array.prototype.slice.call(a,e,t))}const me=(a,e)=>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,k=(a,e)=>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,de=(a,e)=>{const t=e;let n=0;for(;me(a,e);){n+=10;const r=we(a,e+6);n+=r,k(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)},we=(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},L=(a,e)=>me(a,e)&&we(a,e+6)+10<=a.length-e,T=a=>{const e=he(a);for(let t=0;t<e.length;t++){const n=e[t];if(O(n))return Ne(n)}},O=a=>a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp",ue=a=>{const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=we(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}},he=a=>{let e=0;const t=[];for(;me(a,e);){const n=we(a,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=ue(a.subarray(e)),s=Z(i);s&&t.push(s),e+=i.size+10}k(a,e)&&(e+=10)}return t},Z=a=>a.type==="PRIV"?De(a):a.type[0]==="W"?Ae(a):Ue(a),De=a=>{if(a.size<2)return;const e=We(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}},Ue=a=>{if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=We(a.data.subarray(t),!0);t+=n.length+1;const r=We(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=We(a.data.subarray(1));return{key:a.type,data:e}},Ae=a=>{if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=We(a.data.subarray(t),!0);t+=n.length+1;const r=We(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=We(a.data);return{key:a.type,data:e}},Ne=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)}},We=(a,e=!1)=>{const t=qe();if(t){const p=t.decode(a);if(e){const E=p.indexOf("\0");return E!==-1?p.substring(0,E):p}return p.replace(/\0/g,"")}const n=a.length;let r,i,s,u="",f=0;for(;f<n;){if(r=a[f++],r===0&&e)return u;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(r);break;case 12:case 13:i=a[f++],u+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=a[f++],s=a[f++],u+=String.fromCharCode((r&15)<<12|(i&63)<<6|(s&63)<<0);break}}return u};let Xe;function qe(){if(!navigator.userAgent.includes("PlayStation 4"))return!Xe&&typeof self.TextDecoder!="undefined"&&(Xe=new self.TextDecoder("utf-8")),Xe}const ht={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}},St=Math.pow(2,32)-1,_t=[].push,It={video:1,audio:2,id3:3,text:4};function Ct(a){return String.fromCharCode.apply(null,a)}function y(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function C(a,e){const t=W(a,e);return t<0?4294967296+t:t}function ot(a,e){let t=C(a,e);return t*=Math.pow(2,32),t+=C(a,e+4),t}function W(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Ce(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 yn(a){const e=a.byteLength;for(let t=0;t<e;){const n=C(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 Me(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=C(a,r),s=Ct(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=Me(a.subarray(r+8,u),e.slice(1));f.length&&_t.apply(t,f)}r=u}return t}function Ke(a){const e=[],t=a[0];let n=8;const r=C(a,n);n+=4;let i=0,s=0;t===0?(i=C(a,n),s=C(a,n+4),n+=8):(i=ot(a,n),s=ot(a,n+8),n+=16),n+=2;let u=a.length+s;const f=y(a,n);n+=2;for(let p=0;p<f;p++){let E=n;const D=C(a,E);E+=4;const j=D&2147483647;if((D&2147483648)>>>31===1)return b.warn("SIDX has hierarchical references (not supported)"),null;const ie=C(a,E);E+=4,e.push({referenceSize:j,subsegmentDuration:ie,info:{duration:ie/r,start:u,end:u+j-1}}),u+=j,E+=4,n=E}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:f,references:e}}function Ze(a){const e=[],t=Me(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=Me(i,["tkhd"])[0];if(s){let u=s[0];const f=C(s,u===0?12:20),p=Me(i,["mdia","mdhd"])[0];if(p){u=p[0];const E=C(p,u===0?12:20),D=Me(i,["mdia","hdlr"])[0];if(D){const j=Ct(D.subarray(8,12)),le={soun:q.AUDIO,vide:q.VIDEO}[j];if(le){const ie=Me(i,["mdia","minf","stbl","stsd"])[0],pe=J(ie);e[f]={timescale:E,type:le},e[le]=V({timescale:E,id:f},pe)}}}}}return Me(a,["moov","mvex","trex"]).forEach(r=>{const i=C(r,4),s=e[i];s&&(s.default={duration:C(r,12),flags:C(r,20)})}),e}function J(a){const e=a.subarray(8),t=e.subarray(86),n=Ct(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const u=Me(e,[n])[0].subarray(n==="enca"?28:78);Me(u,["sinf"]).forEach(p=>{const E=Me(p,["schm"])[0];if(E){const D=Ct(E.subarray(4,8));if(D==="cbcs"||D==="cenc"){const j=Me(p,["frma"])[0];j&&(r=Ct(j))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const s=Me(t,["avcC"])[0];r+="."+Te(s[1])+Te(s[2])+Te(s[3]);break}case"mp4a":{const s=Me(e,[n])[0],u=Me(s.subarray(28),["esds"])[0];if(u&&u.length>12){let f=4;if(u[f++]!==3)break;f=fe(u,f),f+=2;const p=u[f++];if(p&128&&(f+=2),p&64&&(f+=u[f++]),u[f++]!==4)break;f=fe(u,f);const E=u[f++];if(E===64)r+="."+Te(E);else break;if(f+=12,u[f++]!==5)break;f=fe(u,f);const D=u[f++];let j=(D&248)>>3;j===31&&(j+=1+((D&7)<<3)+((u[f]&224)>>5)),r+="."+j}break}case"hvc1":case"hev1":{const s=Me(t,["hvcC"])[0],u=s[1],f=["","A","B","C"][u>>6],p=u&31,E=C(s,2),D=(u&32)>>5?"H":"L",j=s[12],le=s.subarray(6,12);r+="."+f+p,r+="."+E.toString(16).toUpperCase(),r+="."+D+j;let ie="";for(let pe=le.length;pe--;){const Se=le[pe];(Se||ie)&&(ie="."+Se.toString(16).toUpperCase()+ie)}r+=ie;break}case"dvh1":case"dvhe":{const s=Me(t,["dvcC"])[0],u=s[2]>>1&127,f=s[2]<<5&32|s[3]>>3&31;r+="."+Be(u)+"."+Be(f);break}case"vp09":{const s=Me(t,["vpcC"])[0],u=s[4],f=s[5],p=s[6]>>4&15;r+="."+Be(u)+"."+Be(f)+"."+Be(p);break}case"av01":{const s=Me(t,["av1C"])[0],u=s[1]>>>5,f=s[1]&31,p=s[2]>>>7?"H":"M",E=(s[2]&64)>>6,D=(s[2]&32)>>5,j=u===2&&E?D?12:10:E?10:8,le=(s[2]&16)>>4,ie=(s[2]&8)>>3,pe=(s[2]&4)>>2,Se=s[2]&3;r+="."+u+"."+Be(f)+p+"."+Be(j)+"."+le+"."+ie+pe+Se+"."+Be(1)+"."+Be(1)+"."+Be(1)+"."+0;break}}return{codec:r,encrypted:i}}function fe(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function Te(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function Be(a){return(a<10?"0":"")+a}function G(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&Me(a,["moov","trak"]).forEach(r=>{const s=Me(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=Me(s,["enca"]);const f=u.length>0;f||(u=Me(s,["encv"])),u.forEach(p=>{const E=f?p.subarray(28):p.subarray(78);Me(E,["sinf"]).forEach(j=>{const le=Ot(j);if(le){const ie=le.subarray(8,24);ie.some(pe=>pe!==0)||(b.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${ht.hexDump(ie)} -> ${ht.hexDump(t)}`),le.set(t,8))}})})}),a}function Ot(a){const e=Me(a,["schm"])[0];if(e){const t=Ct(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return Me(a,["schi","tenc"])[0]}return null}function Pe(a,e){return Me(e,["moof","traf"]).reduce((t,n)=>{const r=Me(n,["tfdt"])[0],i=r[0],s=Me(n,["tfhd"]).reduce((u,f)=>{const p=C(f,4),E=a[p];if(E){let D=C(r,4);if(i===1){if(D===St)return b.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;D*=St+1,D+=C(r,8)}const j=E.timescale||9e4,le=D/j;if(R(le)&&(u===null||le<u))return le}return u},null);return s!==null&&R(s)&&(t===null||s<t)?s:t},null)}function Yt(a,e){let t=0,n=0,r=0;const i=Me(a,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=Me(u,["tfhd"])[0],p=C(f,4),E=e[p];if(!E)continue;const D=E.default,j=C(f,0)|(D==null?void 0:D.flags);let le=D==null?void 0:D.duration;j&8&&(j&2?le=C(f,12):le=C(f,8));const ie=E.timescale||9e4,pe=Me(u,["trun"]);for(let Se=0;Se<pe.length;Se++){if(t=mn(pe[Se]),!t&&le){const Ge=C(pe[Se],4);t=le*Ge}E.type===q.VIDEO?n+=t/ie:E.type===q.AUDIO&&(r+=t/ie)}}if(n===0&&r===0){let s=1/0,u=0,f=0;const p=Me(a,["sidx"]);for(let E=0;E<p.length;E++){const D=Ke(p[E]);if(D!=null&&D.references){s=Math.min(s,D.earliestPresentationTime/D.timescale);const j=D.references.reduce((le,ie)=>le+ie.info.duration||0,0);u=Math.max(u,j+D.earliestPresentationTime/D.timescale),f=u-s}}if(f&&R(f))return f}return n||r}function mn(a){const e=C(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=C(a,4);for(let i=0;i<r;i++){if(e&256){const s=C(a,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function wn(a,e,t){Me(e,["moof","traf"]).forEach(n=>{Me(n,["tfhd"]).forEach(r=>{const i=C(r,4),s=a[i];if(!s)return;const u=s.timescale||9e4;Me(n,["tfdt"]).forEach(f=>{const p=f[0],E=t*u;if(E){let D=C(f,4);if(p===0)D-=E,D=Math.max(D,0),Ce(f,4,D);else{D*=Math.pow(2,32),D+=C(f,8),D-=E,D=Math.max(D,0);const j=Math.floor(D/(St+1)),le=Math.floor(D%(St+1));Ce(f,4,j),Ce(f,8,le)}}})})})}function Hn(a){const e={valid:null,remainder:null},t=Me(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=oe(a,0,n.byteOffset-8),e.remainder=oe(a,n.byteOffset-8),e}function $t(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function qt(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return Me(n,["moof"]).map(f=>{const p=f.byteOffset-8;Me(f,["traf"]).map(D=>{const j=Me(D,["tfdt"]).map(le=>{const ie=le[0];let pe=C(le,4);return ie===1&&(pe*=Math.pow(2,32),pe+=C(le,8)),pe/r})[0];return j!==void 0&&(a=j),Me(D,["tfhd"]).map(le=>{const ie=C(le,4),pe=C(le,0)&16777215,Se=(pe&1)!==0,Ge=(pe&2)!==0,pt=(pe&8)!==0;let mt=0;const Gt=(pe&16)!==0;let wt=0;const hn=(pe&32)!==0;let Ht=8;ie===i&&(Se&&(Ht+=8),Ge&&(Ht+=4),pt&&(mt=C(le,Ht),Ht+=4),Gt&&(wt=C(le,Ht),Ht+=4),hn&&(Ht+=4),e.type==="video"&&(s=$e(e.codec)),Me(D,["trun"]).map(bn=>{const jn=bn[0],an=C(bn,0)&16777215,xn=(an&1)!==0;let br=0;const Wn=(an&4)!==0,yr=(an&256)!==0;let vr=0;const ur=(an&512)!==0;let Fr=0;const Xr=(an&1024)!==0,er=(an&2048)!==0;let Zn=0;const Ur=C(bn,4);let Cr=8;xn&&(br=C(bn,Cr),Cr+=4),Wn&&(Cr+=4);let Vr=br+p;for(let _i=0;_i<Ur;_i++){if(yr?(vr=C(bn,Cr),Cr+=4):vr=mt,ur?(Fr=C(bn,Cr),Cr+=4):Fr=wt,Xr&&(Cr+=4),er&&(jn===0?Zn=C(bn,Cr):Zn=W(bn,Cr),Cr+=4),e.type===q.VIDEO){let Li=0;for(;Li<Fr;){const ki=C(n,Vr);if(Vr+=4,dt(s,n[Vr])){const Yi=n.subarray(Vr,Vr+ki);Tt(Yi,s?2:1,a+Zn/r,t)}Vr+=ki,Li+=ki+4}}a+=vr/r}}))})})}),t}function $e(a){if(!a)return!1;const e=a.indexOf("."),t=e<0?a:a.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function dt(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Tt(a,e,t,n){const r=Le(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 p=r.length-i;let E=i;if(u<p)i+=u;else if(u>p){b.error(`Malformed SEI payload. ${u} is too small, only ${p} bytes left to parse.`);break}if(s===4){if(r[E++]===181){const j=y(r,E);if(E+=2,j===49){const le=C(r,E);if(E+=4,le===1195456820){const ie=r[E++];if(ie===3){const pe=r[E++],Se=31&pe,Ge=64&pe,pt=Ge?2+Se*3:0,mt=new Uint8Array(pt);if(Ge){mt[0]=pe;for(let Gt=1;Gt<pt;Gt++)mt[Gt]=r[E++]}n.push({type:ie,payloadType:s,pts:t,bytes:mt})}}}}}else if(s===5&&u>16){const D=[];for(let ie=0;ie<16;ie++){const pe=r[E++].toString(16);D.push(pe.length==1?"0"+pe:pe),(ie===3||ie===5||ie===7||ie===9)&&D.push("-")}const j=u-16,le=new Uint8Array(j);for(let ie=0;ie<j;ie++)le[ie]=r[E++];n.push({payloadType:s,pts:t,uuid:D.join(""),userData:We(le),userDataBytes:le})}}}function Le(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 ve(a){const e=a[0];let t="",n="",r=0,i=0,s=0,u=0,f=0,p=0;if(e===0){for(;Ct(a.subarray(p,p+1))!=="\0";)t+=Ct(a.subarray(p,p+1)),p+=1;for(t+=Ct(a.subarray(p,p+1)),p+=1;Ct(a.subarray(p,p+1))!=="\0";)n+=Ct(a.subarray(p,p+1)),p+=1;n+=Ct(a.subarray(p,p+1)),p+=1,r=C(a,12),i=C(a,16),u=C(a,20),f=C(a,24),p=28}else if(e===1){p+=4,r=C(a,p),p+=4;const D=C(a,p);p+=4;const j=C(a,p);for(p+=4,s=Yo(2,32)*D+j,M(s)||(s=Number.MAX_SAFE_INTEGER,b.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=C(a,p),p+=4,f=C(a,p),p+=4;Ct(a.subarray(p,p+1))!=="\0";)t+=Ct(a.subarray(p,p+1)),p+=1;for(t+=Ct(a.subarray(p,p+1)),p+=1;Ct(a.subarray(p,p+1))!=="\0";)n+=Ct(a.subarray(p,p+1)),p+=1;n+=Ct(a.subarray(p,p+1)),p+=1}const E=a.subarray(p,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:E}}function rt(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 lt(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;if(e){n=1,r=new Uint8Array(e.length*16);for(let u=0;u<e.length;u++){const f=e[u];if(f.byteLength!==16)throw new RangeError("Invalid key");r.set(f,u*16)}}else 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),rt([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}function Nt(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=Rt(r);e.push(i),n+=i.size}}return e}function Rt(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=ht.hexDump(new Uint8Array(s,t+12,16)),f=a.getUint32(28);let p=null,E=null;if(i===0){if(e-32<f||f<22)return{offset:t,size:e};E=new Uint8Array(s,t+32,f)}else if(i===1){if(!f||n<t+32+f*16+16)return{offset:t,size:e};p=[];for(let D=0;D<f;D++)p.push(new Uint8Array(s,t+32+D*16,16))}return{version:i,systemId:u,kids:p,data:E,offset:t,size:e}}let zt={};class Pt{static clearKeyUriToKeyIdMap(){zt={}}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&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case et.FAIRPLAY:case et.WIDEVINE:case et.PLAYREADY:case et.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&b.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=Wt(e);return new Pt(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=be(this.uri);if(t)switch(this.keyFormat){case et.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case et.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=lt(n,null,t),this.keyId=At(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=zt[this.uri];if(!n){const r=Object.keys(zt).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),zt[this.uri]=n}this.keyId=n}return this}}function Wt(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const ln=/\{\$([a-zA-Z0-9-_]+)\}/g;function Lt(a){return ln.test(a)}function ft(a,e,t){if(a.variableList!==null||a.hasVariableRefs)for(let n=t.length;n--;){const r=t[n],i=e[r];i&&(e[r]=jt(a,i))}}function jt(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(ln,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 Ut(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 Zt(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}"`))}function un(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function zn(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}const gn={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Bt(a,e){const t=gn[e];return!!t&&!!t[a.slice(0,4)]}function Ye(a,e,t=!0){return!a.split(",").some(n=>!Qe(n,e,t))}function Qe(a,e,t=!0){var n;const r=un(t);return(n=r==null?void 0:r.isTypeSupported(ut(a,e)))!=null?n:!1}function ut(a,e){return`${e}/mp4;codecs="${a}"`}function yt(a){if(a){const e=a.substring(0,4);return gn.video[e]}return 2}function ct(a){return a.split(",").reduce((e,t)=>{const n=gn.video[t];return n?(n*2+e)/(e?3:2):(gn.audio[t]+e)/(e?2:1)},0)}const Et={};function bt(a,e=!0){if(Et[a])return Et[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[a];for(let n=0;n<t.length;n++)if(Qe(t[n],"audio",e))return Et[a]=t[n],t[n];return a}const Kt=/flac|opus/i;function Qt(a,e=!0){return a.replace(Kt,t=>bt(t.toLowerCase(),e))}function nn(a,e){return a&&a!=="mp4a"?a:e&&e.split(",")[0]}function Cn(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(",")}const Rn=/#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,On=/#EXT-X-MEDIA:(.*)/g,on=/^#EXT(?:INF|-X-TARGETDURATION):/m,Xt=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),$n=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class Sn{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 te.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return on.test(e)}static parseMasterPlaylist(e,t){const n=Lt(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];Rn.lastIndex=0;let s;for(;(s=Rn.exec(e))!=null;)if(s[1]){var u;const p=new X(s[1]);ft(r,p,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const E=jt(r,s[2]),D={attrs:p,bitrate:p.decimalInteger("BANDWIDTH")||p.decimalInteger("AVERAGE-BANDWIDTH"),name:p.NAME,url:Sn.resolve(E,t)},j=p.decimalResolution("RESOLUTION");j&&(D.width=j.width,D.height=j.height),kn(p.CODECS,D),(u=D.unknownCodecs)!=null&&u.length||i.push(D),r.levels.push(D)}else if(s[3]){const p=s[3],E=s[4];switch(p){case"SESSION-DATA":{const D=new X(E);ft(r,D,["DATA-ID","LANGUAGE","VALUE","URI"]);const j=D["DATA-ID"];j&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[j]=D);break}case"SESSION-KEY":{const D=Qn(E,t,r);D.encrypted&&D.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(D)):b.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${E}"`);break}case"DEFINE":{{const D=new X(E);ft(r,D,["NAME","VALUE","QUERYPARAM"]),Ut(r,D,t)}break}case"CONTENT-STEERING":{const D=new X(E);ft(r,D,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:Sn.resolve(D["SERVER-URI"],t),pathwayId:D["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=An(E);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(p=>({id:p.attrs.AUDIO,audioCodec:p.audioCodec})),SUBTITLES:s.map(p=>({id:p.attrs.SUBTITLES,textCodec:p.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(On.lastIndex=0;(r=On.exec(e))!==null;){const p=new X(r[1]),E=p.TYPE;if(E){const D=u[E],j=i[E]||[];i[E]=j,ft(n,p,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const le=p.LANGUAGE,ie=p["ASSOC-LANGUAGE"],pe=p.CHANNELS,Se=p.CHARACTERISTICS,Ge=p["INSTREAM-ID"],pt={attrs:p,bitrate:0,id:f++,groupId:p["GROUP-ID"]||"",name:p.NAME||le||"",type:E,default:p.bool("DEFAULT"),autoselect:p.bool("AUTOSELECT"),forced:p.bool("FORCED"),lang:le,url:p.URI?Sn.resolve(p.URI,t):""};if(ie&&(pt.assocLang=ie),pe&&(pt.channels=pe),Se&&(pt.characteristics=Se),Ge&&(pt.instreamId=Ge),D!=null&&D.length){const mt=Sn.findGroup(D,pt.groupId)||D[0];Kn(pt,mt,"audioCodec"),Kn(pt,mt,"textCodec")}j.push(pt)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){const u=new re(t),f=u.fragments;let p=null,E=0,D=0,j=0,le=0,ie=null,pe=new ae(r,t),Se,Ge,pt,mt=-1,Gt=!1,wt=null;for(Xt.lastIndex=0,u.m3u8=e,u.hasVariableRefs=Lt(e);(Se=Xt.exec(e))!==null;){Gt&&(Gt=!1,pe=new ae(r,t),pe.start=j,pe.sn=E,pe.cc=le,pe.level=n,p&&(pe.initSegment=p,pe.rawProgramDateTime=p.rawProgramDateTime,p.rawProgramDateTime=null,wt&&(pe.setByteRange(wt),wt=null)));const jn=Se[1];if(jn){pe.duration=parseFloat(jn);const an=(" "+Se[2]).slice(1);pe.title=an||null,pe.tagList.push(an?["INF",jn,an]:["INF",jn])}else if(Se[3]){if(R(pe.duration)){pe.start=j,pt&&Tn(pe,pt,u),pe.sn=E,pe.level=n,pe.cc=le,f.push(pe);const an=(" "+Se[3]).slice(1);pe.relurl=jt(u,an),qn(pe,ie),ie=pe,j+=pe.duration,E++,D=0,Gt=!0}}else if(Se[4]){const an=(" "+Se[4]).slice(1);ie?pe.setByteRange(an,ie):pe.setByteRange(an)}else if(Se[5])pe.rawProgramDateTime=(" "+Se[5]).slice(1),pe.tagList.push(["PROGRAM-DATE-TIME",pe.rawProgramDateTime]),mt===-1&&(mt=f.length);else{if(Se=Se[0].match($n),!Se){b.warn("No matches on slow regex match for level playlist!");continue}for(Ge=1;Ge<Se.length&&typeof Se[Ge]=="undefined";Ge++);const an=(" "+Se[Ge]).slice(1),xn=(" "+Se[Ge+1]).slice(1),br=Se[Ge+2]?(" "+Se[Ge+2]).slice(1):"";switch(an){case"PLAYLIST-TYPE":u.type=xn.toUpperCase();break;case"MEDIA-SEQUENCE":E=u.startSN=parseInt(xn);break;case"SKIP":{const Wn=new X(xn);ft(u,Wn,["RECENTLY-REMOVED-DATERANGES"]);const yr=Wn.decimalInteger("SKIPPED-SEGMENTS");if(R(yr)){u.skippedSegments=yr;for(let ur=yr;ur--;)f.unshift(null);E+=yr}const vr=Wn.enumeratedString("RECENTLY-REMOVED-DATERANGES");vr&&(u.recentlyRemovedDateranges=vr.split(" "));break}case"TARGETDURATION":u.targetduration=Math.max(parseInt(xn),1);break;case"VERSION":u.version=parseInt(xn);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":u.live=!1;break;case"#":(xn||br)&&pe.tagList.push(br?[xn,br]:[xn]);break;case"DISCONTINUITY":le++,pe.tagList.push(["DIS"]);break;case"GAP":pe.gap=!0,pe.tagList.push([an]);break;case"BITRATE":pe.tagList.push([an,xn]);break;case"DATERANGE":{const Wn=new X(xn);ft(u,Wn,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),ft(u,Wn,Wn.clientAttrs);const yr=new Oe(Wn,u.dateRanges[Wn.ID]);yr.isValid||u.skippedSegments?u.dateRanges[yr.id]=yr:b.warn(`Ignoring invalid DATERANGE tag: "${xn}"`),pe.tagList.push(["EXT-X-DATERANGE",xn]);break}case"DEFINE":{{const Wn=new X(xn);ft(u,Wn,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Wn?Zt(u,Wn,s):Ut(u,Wn,t)}break}case"DISCONTINUITY-SEQUENCE":le=parseInt(xn);break;case"KEY":{const Wn=Qn(xn,t,u);if(Wn.isSupported()){if(Wn.method==="NONE"){pt=void 0;break}pt||(pt={}),pt[Wn.keyFormat]&&(pt=o({},pt)),pt[Wn.keyFormat]=Wn}else b.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${xn}"`);break}case"START":u.startTimeOffset=An(xn);break;case"MAP":{const Wn=new X(xn);if(ft(u,Wn,["BYTERANGE","URI"]),pe.duration){const yr=new ae(r,t);fr(yr,Wn,n,pt),p=yr,pe.initSegment=p,p.rawProgramDateTime&&!pe.rawProgramDateTime&&(pe.rawProgramDateTime=p.rawProgramDateTime)}else{const yr=pe.byteRangeEndOffset;if(yr){const vr=pe.byteRangeStartOffset;wt=`${yr-vr}@${vr}`}else wt=null;fr(pe,Wn,n,pt),p=pe,Gt=!0}break}case"SERVER-CONTROL":{const Wn=new X(xn);u.canBlockReload=Wn.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Wn.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Wn.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Wn.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Wn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Wn=new X(xn);u.partTarget=Wn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Wn=u.partList;Wn||(Wn=u.partList=[]);const yr=D>0?Wn[Wn.length-1]:void 0,vr=D++,ur=new X(xn);ft(u,ur,["BYTERANGE","URI"]);const Fr=new ee(ur,pe,t,vr,yr);Wn.push(Fr),pe.duration+=Fr.duration;break}case"PRELOAD-HINT":{const Wn=new X(xn);ft(u,Wn,["URI"]),u.preloadHint=Wn;break}case"RENDITION-REPORT":{const Wn=new X(xn);ft(u,Wn,["URI"]),u.renditionReports=u.renditionReports||[],u.renditionReports.push(Wn);break}default:b.warn(`line parsed but not handled: ${Se}`);break}}}ie&&!ie.relurl?(f.pop(),j-=ie.duration,u.partList&&(u.fragmentHint=ie)):u.partList&&(qn(pe,ie),pe.cc=le,u.fragmentHint=pe,pt&&Tn(pe,pt,u));const hn=f.length,Ht=f[0],bn=f[hn-1];if(j+=u.skippedSegments*u.targetduration,j>0&&hn&&bn){u.averagetargetduration=j/hn;const jn=bn.sn;u.endSN=jn!=="initSegment"?jn:0,u.live||(bn.endList=!0),Ht&&(u.startCC=Ht.cc)}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(j+=u.fragmentHint.duration),u.totalduration=j,u.endCC=le,mt>0&&In(f,mt),u}}function Qn(a,e,t){var n,r;const i=new X(a);ft(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(n=i.METHOD)!=null?n:"",u=i.URI,f=i.hexadecimalInteger("IV"),p=i.KEYFORMATVERSIONS,E=(r=i.KEYFORMAT)!=null?r:"identity";u&&i.IV&&!f&&b.error(`Invalid IV: ${i.IV}`);const D=u?Sn.resolve(u,e):"",j=(p||"1").split("/").map(Number).filter(Number.isFinite);return new Pt(s,D,E,j,f)}function An(a){const t=new X(a).decimalFloatingPoint("TIME-OFFSET");return R(t)?t:null}function kn(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Bt(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function Kn(a,e,t){const n=e[t];n&&(a[t]=n)}function In(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 qn(a,e){a.rawProgramDateTime?a.programDateTime=Date.parse(a.rawProgramDateTime):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime),R(a.programDateTime)||(a.programDateTime=null,a.rawProgramDateTime=null)}function fr(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 Tn(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)}var Jt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},ze={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function fn(a){const{type:e}=a;switch(e){case Jt.AUDIO_TRACK:return ze.AUDIO;case Jt.SUBTITLE_TRACK:return ze.SUBTITLE;default:return ze.MAIN}}function Pn(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Vn{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(c.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(c.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,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:Jt.MANIFEST,url:n,deliveryDirectives:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:u}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:Jt.LEVEL,url:s,deliveryDirectives:u})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:Jt.AUDIO_TRACK,url:i,deliveryDirectives:s})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:Jt.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const p=r.context;if(p&&p.url===e.url&&p.level===e.level){b.trace("[playlist-loader]: playlist request ongoing");return}b.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===Jt.MANIFEST?i=n.manifestLoadPolicy.default:i=o({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),R((t=e.deliveryDirectives)==null?void 0:t.part)){let p;if(e.type===Jt.LEVEL&&e.level!==null?p=this.hls.levels[e.level].details:e.type===Jt.AUDIO_TRACK&&e.id!==null?p=this.hls.audioTracks[e.id].details:e.type===Jt.SUBTITLE_TRACK&&e.id!==null&&(p=this.hls.subtitleTracks[e.id].details),p){const E=p.partTarget,D=p.targetduration;if(E&&D){const j=Math.max(E*3,D*.8)*1e3;i=o({},i,{maxTimeToFirstByteMs:Math.min(j,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(j,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:(p,E,D,j)=>{const le=this.getInternalLoader(D);this.resetInternalLoader(D.type);const ie=p.data;if(ie.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(p,D,new Error("no EXTM3U delimiter"),j||null,E);return}E.parsing.start=performance.now(),Sn.isMediaPlaylist(ie)?this.handleTrackOrLevelPlaylist(p,E,D,j||null,le):this.handleMasterPlaylist(p,E,D,j)},onError:(p,E,D,j)=>{this.handleNetworkError(E,D,!1,p,j)},onTimeout:(p,E,D)=>{this.handleNetworkError(E,D,!0,void 0,p)}};r.load(e,u,f)}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,u=Pn(e,n),f=Sn.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,n,f.playlistParsingError,r,t);return}const{contentSteering:p,levels:E,sessionData:D,sessionKeys:j,startTimeOffset:le,variableList:ie}=f;this.variableList=ie;const{AUDIO:pe=[],SUBTITLES:Se,"CLOSED-CAPTIONS":Ge}=Sn.parseMasterPlaylistMedia(s,u,f);pe.length&&!pe.some(mt=>!mt.url)&&E[0].audioCodec&&!E[0].attrs.AUDIO&&(b.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),pe.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new X({}),bitrate:0,url:""})),i.trigger(c.MANIFEST_LOADED,{levels:E,audioTracks:pe,subtitles:Se,captions:Ge,contentSteering:p,url:u,stats:t,networkDetails:r,sessionData:D,sessionKeys:j,startTimeOffset:le,variableList:ie})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:u,level:f,type:p}=n,E=Pn(e,n),D=0,j=R(f)?f:R(u)?u:0,le=fn(n),ie=Sn.parseLevelPlaylist(e.data,E,j,le,D,this.variableList);if(p===Jt.MANIFEST){const pe={attrs:new X({}),bitrate:0,details:ie,name:"",url:E};s.trigger(c.MANIFEST_LOADED,{levels:[pe],audioTracks:[],url:E,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=ie,this.handlePlaylistLoaded(ie,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:v.MANIFEST_PARSING_ERROR,fatal:t.type===Jt.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===Jt.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===Jt.AUDIO_TRACK||e.type===Jt.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);b.warn(`[playlist-loader]: ${s}`);let f=v.UNKNOWN,p=!1;const E=this.getInternalLoader(e);switch(e.type){case Jt.MANIFEST:f=n?v.MANIFEST_LOAD_TIMEOUT:v.MANIFEST_LOAD_ERROR,p=!0;break;case Jt.LEVEL:f=n?v.LEVEL_LOAD_TIMEOUT:v.LEVEL_LOAD_ERROR,p=!1;break;case Jt.AUDIO_TRACK:f=n?v.AUDIO_TRACK_LOAD_TIMEOUT:v.AUDIO_TRACK_LOAD_ERROR,p=!1;break;case Jt.SUBTITLE_TRACK:f=n?v.SUBTITLE_TRACK_LOAD_TIMEOUT:v.SUBTITLE_LOAD_ERROR,p=!1;break}E&&this.resetInternalLoader(e.type);const D={type:w.NETWORK_ERROR,details:f,fatal:p,url:e.url,loader:E,context:e,error:u,networkDetails:t,stats:i};if(r){const j=(t==null?void 0:t.url)||e.url;D.response=V({url:j,data:void 0},r)}this.hls.trigger(c.ERROR,D)}handlePlaylistLoaded(e,t,n,r,i,s){const u=this.hls,{type:f,level:p,id:E,groupId:D,deliveryDirectives:j}=r,le=Pn(t,r),ie=fn(r),pe=typeof r.level=="number"&&ie===ze.MAIN?p:void 0;if(!e.fragments.length){const Ge=new Error("No Segments found in Playlist");u.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:v.LEVEL_EMPTY_ERROR,fatal:!1,url:le,error:Ge,reason:Ge.message,response:t,context:r,level:pe,parent:ie,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Se=e.playlistParsingError;if(Se){u.trigger(c.ERROR,{type:w.NETWORK_ERROR,details:v.LEVEL_PARSING_ERROR,fatal:!1,url:le,error:Se,reason:Se.message,response:t,context:r,level:pe,parent:ie,networkDetails:i,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),f){case Jt.MANIFEST:case Jt.LEVEL:u.trigger(c.LEVEL_LOADED,{details:e,level:pe||0,id:E||0,stats:n,networkDetails:i,deliveryDirectives:j});break;case Jt.AUDIO_TRACK:u.trigger(c.AUDIO_TRACK_LOADED,{details:e,id:E||0,groupId:D||"",stats:n,networkDetails:i,deliveryDirectives:j});break;case Jt.SUBTITLE_TRACK:u.trigger(c.SUBTITLE_TRACK_LOADED,{details:e,id:E||0,groupId:D||"",stats:n,networkDetails:i,deliveryDirectives:j});break}}}function Yn(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 rr(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){b.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){b.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function sr(a){const e=a.mode;if(e==="disabled"&&(a.mode="hidden"),a.cues)for(let t=a.cues.length;t--;)a.removeCue(a.cues[t]);e==="disabled"&&(a.mode=e)}function Un(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=vn(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 ar(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;for(;n<=r;){const i=Math.floor((r+n)/2);if(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 vn(a,e,t){const n=[],r=ar(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 en(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}var Dn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const Jn=.25;function or(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Pr(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,JSON.stringify(r?V({type:r},n):n))}return i}const _n=(()=>{const a=or();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function cr(a,e){return a.getTime()/1e3-e}function lr(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Er{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(sr(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Yn(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=or();if(s)for(let u=0;u<i.length;u++){const f=i[u].type;if(f===Dn.emsg&&!n||!r)continue;const p=he(i[u].data);if(p){const E=i[u].pts;let D=E+i[u].duration;D>_n&&(D=_n),D-E<=0&&(D=E+Jn);for(let le=0;le<p.length;le++){const ie=p[le];if(!O(ie)){this.updateId3CueEnds(E,f);const pe=Pr(s,E,D,ie,f);pe&&this.id3Track.addCue(pe)}}}}}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===_n&&(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 p;r==="audio"?p=E=>E.type===Dn.audioId3&&f:r==="video"?p=E=>E.type===Dn.emsg&&u:p=E=>E.type===Dn.audioId3&&f||E.type===Dn.emsg&&u,Un(i,t,n,p)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:r}=this,{dateRanges:i}=t,s=Object.keys(i);if(r){const E=Object.keys(n).filter(D=>!s.includes(D));for(let D=E.length;D--;){const j=E[D];Object.keys(n[j].cues).forEach(le=>{r.removeCue(n[j].cues[le])}),delete n[j]}}const u=t.fragments[t.fragments.length-1];if(s.length===0||!R(u==null?void 0:u.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const f=u.programDateTime/1e3-u.start,p=or();for(let E=0;E<s.length;E++){const D=s[E],j=i[D],le=cr(j.startDate,f),ie=n[D],pe=(ie==null?void 0:ie.cues)||{};let Se=(ie==null?void 0:ie.durationKnown)||!1,Ge=_n;const pt=j.endDate;if(pt)Ge=cr(pt,f),Se=!0;else if(j.endOnNext&&!Se){const Gt=s.reduce((wt,hn)=>{if(hn!==j.id){const Ht=i[hn];if(Ht.class===j.class&&Ht.startDate>j.startDate&&(!wt||j.startDate<wt.startDate))return Ht}return wt},null);Gt&&(Ge=cr(Gt.startDate,f),Se=!0)}const mt=Object.keys(j.attr);for(let Gt=0;Gt<mt.length;Gt++){const wt=mt[Gt];if(!ge(wt))continue;const hn=pe[wt];if(hn)Se&&!ie.durationKnown&&(hn.endTime=Ge);else if(p){let Ht=j.attr[wt];Ie(wt)&&(Ht=lr(Ht));const bn=Pr(p,le,Ge,{key:wt,data:Ht},Dn.dateRange);bn&&(bn.id=D,this.id3Track.addCue(bn),pe[wt]=bn)}}n[D]={cues:pe,dateRange:j,durationKnown:Se}}}}class Mr{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:u}=this.config,f=this.hls.userConfig;let p=u&&n||t;(f.liveSyncDuration||f.liveSyncDurationCount||p===0)&&(p=i!==void 0?i:s*r);const E=r;return p+Math.min(this.stallCount*1,E)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(e===null||t===null||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{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(c.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(c.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(c.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(c.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var n;t.details===v.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.live&&b.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||i===1||!t.live)return;const s=this.targetLatency;if(s===null)return;const u=n-s,f=Math.min(this.maxLatency,s+t.targetduration);if(u<f&&u>.05&&this.forwardBufferLength>1){const E=Math.min(2,Math.max(1,i)),D=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;e.playbackRate=Math.min(E,Math.max(1,D))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const Br=["NONE","TYPE-0","TYPE-1",null];function _r(a){return Br.indexOf(a)>-1}const Tr=["SDR","PQ","HLG"];function wr(a){return!!a&&Tr.indexOf(a)>-1}var Jr={No:"",Yes:"YES",v2:"v2"};function Yr(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?Jr.v2:Jr.Yes:Jr.No}class ii{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 kr{constructor(e){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return ei(this._audioGroups,e)}hasSubtitleGroup(e){return ei(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 ei(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function ir(a,e){const t=e.startPTS;if(R(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.duration=n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.start=a.start+(a.minEndPTS-a.start):e.start=a.start+a.duration:e.start=Math.max(a.start-e.duration,0)}function ci(a,e,t,n,r,i){n-t<=0&&(b.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let u=t,f=n;const p=e.startPTS,E=e.endPTS;if(R(p)){const Se=Math.abs(p-t);R(e.deltaPTS)?e.deltaPTS=Math.max(Se,e.deltaPTS):e.deltaPTS=Se,u=Math.max(t,p),t=Math.min(t,p),r=Math.min(r,e.startDTS),f=Math.min(n,E),n=Math.max(n,E),i=Math.max(i,e.endDTS)}const D=t-e.start;e.start!==0&&(e.start=t),e.duration=n-e.start,e.startPTS=t,e.maxStartPTS=u,e.startDTS=r,e.endPTS=n,e.minEndPTS=f,e.endDTS=i;const j=e.sn;if(!a||j<a.startSN||j>a.endSN)return 0;let le;const ie=j-a.startSN,pe=a.fragments;for(pe[ie]=e,le=ie;le>0;le--)ir(pe[le],pe[le-1]);for(le=ie;le<pe.length-1;le++)ir(pe[le],pe[le+1]);return a.fragmentHint&&ir(pe[pe.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,D}function yi(a,e){let t=null;const n=a.fragments;for(let u=n.length-1;u>=0;u--){const f=n[u].initSegment;if(f){t=f;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;fi(a,e,(u,f,p,E)=>{if(e.skippedSegments&&f.cc!==u.cc){const D=u.cc-f.cc;for(let j=p;j<E.length;j++)E[j].cc+=D}R(u.startPTS)&&R(u.endPTS)&&(f.start=f.startPTS=u.startPTS,f.startDTS=u.startDTS,f.maxStartPTS=u.maxStartPTS,f.endPTS=u.endPTS,f.endDTS=u.endDTS,f.minEndPTS=u.minEndPTS,f.duration=u.endPTS-u.startPTS,f.duration&&(r=f),e.PTSKnown=e.alignedSliding=!0),f.elementaryStreams=u.elementaryStreams,f.loader=u.loader,f.stats=u.stats,u.initSegment&&(f.initSegment=u.initSegment,t=u.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(f=>{var p;f&&(!f.initSegment||f.initSegment.relurl===((p=t)==null?void 0:p.relurl))&&(f.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(u=>!u),e.deltaUpdateFailed){b.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let u=e.skippedSegments;u--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=di(a.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}Ar(a.partList,e.partList,(u,f)=>{f.elementaryStreams=u.elementaryStreams,f.stats=u.stats}),r?ci(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Ci(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const s=e.advancedDateTime;if(e.advanced&&s){const u=e.edge;e.driftStart||(e.driftStartTime=s,e.driftStart=u),e.driftEndTime=s,e.driftEnd=u}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime}function di(a,e,t){const n=o({},a);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new Oe(e[r].attr,n[r]);i.isValid?n[r]=i:b.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function Ar(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 fi(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 p=r;p<=i;p++){const E=f[s+p];let D=u[p];n&&!D&&p<n&&(D=e.fragments[p]=E),E&&D&&t(E,D,p,u)}}function Ci(a,e){const t=e.startSN+e.skippedSegments-a.startSN,n=a.fragments;t<0||t>=n.length||dn(e,n[t].start)}function dn(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].start+=e;a.fragmentHint&&(a.fragmentHint.start+=e)}}function Qr(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 oi(a,e,t){if(!(a!=null&&a.details))return null;const n=a.details;let r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e)?r:e<n.startSN&&t&&t.sn===e?t:null}function Fn(a,e,t){var n;return a!=null&&a.details?Gn((n=a.details)==null?void 0:n.partList,e,t):null}function Gn(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 Mn(a){a.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function En(a){switch(a.details){case v.FRAG_LOAD_TIMEOUT:case v.KEY_LOAD_TIMEOUT:case v.LEVEL_LOAD_TIMEOUT:case v.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function tr(a,e){const t=En(e);return a.default[`${t?"timeout":"error"}Retry`]}function hr(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Hr(a){return V(V({},a),{errorRetry:null,timeoutRetry:null})}function Dr(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&($r(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function $r(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}const Gr={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 bi(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!R(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(mi(e,t,s))return s}return null}function xi(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[a.sn-e[0].sn+1]||null;const u=a.endDTS-t;u>0&&u<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&Fi(t,n,i)===0||Hi(i,a,Math.min(r,n))))return i;const s=Gr.search(e,Fi.bind(null,t,n));return s&&(s!==a||!i)?s:i}function Hi(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 Fi(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 mi(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function Bn(a,e){return Gr.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}var Nn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},dr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Wr{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=b.log.bind(b,"[info]:"),this.warn=b.warn.bind(b,"[warning]:"),this.error=b.error.bind(b,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(c.ERROR,this.onError,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(c.ERROR,this.onError,this),e.off(c.ERROR,this.onErrorOut,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.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)===ze.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r;if(t.fatal)return;const i=this.hls,s=t.context;switch(t.details){case v.FRAG_LOAD_ERROR:case v.FRAG_LOAD_TIMEOUT:case v.KEY_LOAD_ERROR:case v.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case v.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:Nn.DoNothing,flags:dr.None};return}case v.FRAG_GAP:case v.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Nn.SendAlternateToPenaltyBox;return}case v.LEVEL_EMPTY_ERROR:case v.LEVEL_PARSING_ERROR:{var u,f;const p=t.parent===ze.MAIN?t.level:i.loadLevel;t.details===v.LEVEL_EMPTY_ERROR&&((u=t.context)!=null&&(f=u.levelDetails)!=null&&f.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,p):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,p))}return;case v.LEVEL_LOAD_ERROR:case v.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case v.AUDIO_TRACK_LOAD_ERROR:case v.AUDIO_TRACK_LOAD_TIMEOUT:case v.SUBTITLE_LOAD_ERROR:case v.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const p=i.levels[i.loadLevel];if(p&&(s.type===Jt.AUDIO_TRACK&&p.hasAudioGroup(s.groupId)||s.type===Jt.SUBTITLE_TRACK&&p.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Nn.SendAlternateToPenaltyBox,t.errorAction.flags=dr.MoveAllAlternatesMatchingHost;return}}return;case v.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const p=i.levels[i.loadLevel],E=p==null?void 0:p.attrs["HDCP-LEVEL"];E?t.errorAction={action:Nn.SendAlternateToPenaltyBox,flags:dr.MoveAllAlternatesMatchingHDCP,hdcpLevel:E}:this.keySystemError(t)}return;case v.BUFFER_ADD_CODEC_ERROR:case v.REMUX_ALLOC_ERROR:case v.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case v.INTERNAL_EXCEPTION:case v.BUFFER_APPENDING_ERROR:case v.BUFFER_FULL_ERROR:case v.LEVEL_SWITCH_ERROR:case v.BUFFER_STALLED_ERROR:case v.BUFFER_SEEK_OVER_HOLE:case v.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Nn.DoNothing,flags:dr.None};return}t.type===w.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=tr(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Dr(r,i,En(e),e.response))return{action:Nn.RetryRequest,flags:dr.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=tr(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((E,D)=>E+D.fragmentError,0);if(r&&(e.details!==v.FRAG_GAP&&r.fragmentError++,Dr(u,f,En(e),e.response)))return{action:Nn.RetryRequest,flags:dr.None,retryConfig:u,retryCount:f};const p=this.getLevelSwitchAction(e,n);return u&&(p.retryConfig=u,p.retryCount=f),p}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const p=e.details;r.loadError++,p===v.BUFFER_APPEND_ERROR&&r.fragmentError++;let E=-1;const{levels:D,loadLevel:j,minAutoLevel:le,maxAutoLevel:ie}=n;n.autoLevelEnabled||(n.loadLevel=-1);const pe=(i=e.frag)==null?void 0:i.type,Ge=(pe===ze.AUDIO&&p===v.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(p===v.BUFFER_ADD_CODEC_ERROR||p===v.BUFFER_APPEND_ERROR))&&D.some(({audioCodec:hn})=>r.audioCodec!==hn),mt=e.sourceBufferName==="video"&&(p===v.BUFFER_ADD_CODEC_ERROR||p===v.BUFFER_APPEND_ERROR)&&D.some(({codecSet:hn,audioCodec:Ht})=>r.codecSet!==hn&&r.audioCodec===Ht),{type:Gt,groupId:wt}=(s=e.context)!=null?s:{};for(let hn=D.length;hn--;){const Ht=(hn+j)%D.length;if(Ht!==j&&Ht>=le&&Ht<=ie&&D[Ht].loadError===0){var u,f;const bn=D[Ht];if(p===v.FRAG_GAP&&pe===ze.MAIN&&e.frag){const jn=D[Ht].details;if(jn){const an=xi(e.frag,jn.fragments,e.frag.start);if(an!=null&&an.gap)continue}}else{if(Gt===Jt.AUDIO_TRACK&&bn.hasAudioGroup(wt)||Gt===Jt.SUBTITLE_TRACK&&bn.hasSubtitleGroup(wt))continue;if(pe===ze.AUDIO&&(u=r.audioGroups)!=null&&u.some(jn=>bn.hasAudioGroup(jn))||pe===ze.SUBTITLE&&(f=r.subtitleGroups)!=null&&f.some(jn=>bn.hasSubtitleGroup(jn))||Ge&&r.audioCodec===bn.audioCodec||!Ge&&r.audioCodec!==bn.audioCodec||mt&&r.codecSet===bn.codecSet)continue}E=Ht;break}}if(E>-1&&n.loadLevel!==E)return e.levelRetry=!0,this.playlistError=0,{action:Nn.SendAlternateToPenaltyBox,flags:dr.None,nextAutoLevel:E}}return{action:Nn.SendAlternateToPenaltyBox,flags:dr.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Nn.DoNothing:break;case Nn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==v.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 Nn.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 dr.None:this.switchLevel(e,s);break;case dr.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Br[Br.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){t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class Sr{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=b.log.bind(b,`${t}:`),this.warn=b.warn.bind(b,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,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(p){b.warn(`Could not construct new URL for Rendition Report: ${p}`),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 E=Math.min(t.age-t.partTarget,t.targetduration);f>=0&&E>t.partTarget&&(f+=1)}const p=n&&Yr(n);return new ii(u,f>=0?f:void 0,p)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),u=i.loading.first?Math.max(0,s-i.loading.first):0;if(r.advancedDateTime=Date.now()-u,r.live||n!=null&&n.live){if(r.reloaded(n),n&&this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),n&&r.fragments.length>0&&yi(n,r),!this.canLoad||!r.live)return;let f,p,E;if(r.canBlockReload&&r.endSN&&r.advanced){const Se=this.hls.config.lowLatencyMode,Ge=r.lastPartSn,pt=r.endSN,mt=r.lastPartIndex,Gt=mt!==-1,wt=Ge===pt,hn=Se?0:mt;Gt?(p=wt?pt+1:Ge,E=wt?hn:mt+1):p=pt+1;const Ht=r.age,bn=Ht+r.ageHeader;let jn=Math.min(bn-r.partTarget,r.targetduration*1.5);if(jn>0){if(n&&jn>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${jn} with playlist age: ${r.age}`),jn=0;else{const an=Math.floor(jn/r.targetduration);if(p+=an,E!==void 0){const xn=Math.round(jn%r.targetduration/r.partTarget);E+=xn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Ht.toFixed(2)}s goal: ${jn} skip sn ${an} to part ${E}`)}r.tuneInGoal=jn}if(f=this.getDeliveryDirectives(r,t.deliveryDirectives,p,E),Se||!wt){this.loadPlaylist(f);return}}else(r.canBlockReload||r.canSkipUntil)&&(f=this.getDeliveryDirectives(r,t.deliveryDirectives,p,E));const D=this.hls.mainForwardBufferInfo,j=D?D.end-D.len:0,le=(r.edge-j)*1e3,ie=Qr(r,le);r.updated&&s>this.requestScheduled+ie&&(this.requestScheduled=i.loading.start),p!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+ie-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+ie<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=ie);let pe=this.requestScheduled-s;pe=Math.max(0,pe),this.log(`reload live playlist ${e} in ${Math.round(pe)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(f),pe)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Yr(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Jr.No),new ii(n,r,i)}checkRetry(e){const t=e.details,n=En(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=r||{},f=!!r&&!!u&&(i===Nn.RetryRequest||!r.resolved&&i===Nn.SendAlternateToPenaltyBox);if(f){var p;if(this.requestScheduled=-1,s>=u.maxNumRetry)return!1;if(n&&(p=e.context)!=null&&p.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const E=hr(u,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),E),this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" in ${E}ms`)}e.levelRetry=!0,r.resolved=!0}return f}}class pi{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 Wi{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 pi(e),this.fast_=new pi(t),this.defaultTTFB_=r,this.ttfb_=new pi(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new pi(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new pi(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new pi(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_}destroy(){}}const ji={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Ti={};function ss(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,p=f?parseInt(f):u?1/0:2;let E=null;if(s!=null&&s.length)try{s.length===1&&s[0]?E=e.groups[s[0]].channels:E=s.reduce((D,j)=>{if(j){const le=e.groups[j];if(!le)throw new Error(`Audio track group ${j} not found`);Object.keys(le.channels).forEach(ie=>{D[ie]=(D[ie]||0)+le.channels[ie]})}return D},{2:0})}catch(D){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))||!!E&&R(p)&&Object.keys(E).some(D=>parseInt(D)>p)}function as(a,e,t){const n=a.videoCodec,r=a.audioCodec;if(!n||!r||!t)return Promise.resolve(ji);const i={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},s=a.videoRange;s!=="SDR"&&(i.transferFunction=s.toLowerCase());const u=n.split(",").map(f=>({type:"media-source",video:V(V({},i),{},{contentType:ut(f,"video")})}));return r&&a.audioGroups&&a.audioGroups.forEach(f=>{var p;f&&((p=e.groups[f])==null||p.tracks.forEach(E=>{if(E.groupId===f){const D=E.channels||"",j=parseFloat(D);R(j)&&j>2&&u.push.apply(u,r.split(",").map(le=>({type:"media-source",audio:{contentType:ut(le,"audio"),channels:""+j}})))}}))}),Promise.all(u.map(f=>{const p=os(f);return Ti[p]||(Ti[p]=t.decodingInfo(f))})).then(f=>({supported:!f.some(p=>!p.supported),configurations:u,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:u,decodingInfoResults:[],error:f}))}function os(a){const{audio:e,video:t}=a,n=t||e;if(n){const r=n.contentType.split('"')[1];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""}function es(){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 ls(a,e){let t=!1,n=[];return a&&(t=a!=="SDR",n=[a]),e&&(n=e.allowedVideoRanges||Tr.slice(0),t=e.preferHDR!==void 0?e.preferHDR:es(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function Pi(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=s&&parseInt(s)===2;let p=!0,E=!1,D=1/0,j=1/0,le=1/0,ie=0,pe=[];const{preferHDR:Se,allowedVideoRanges:Ge}=ls(e,r);for(let wt=i.length;wt--;){const hn=a[i[wt]];p=hn.channels[2]>0,D=Math.min(D,hn.minHeight),j=Math.min(j,hn.minFramerate),le=Math.min(le,hn.minBitrate);const Ht=Ge.filter(bn=>hn.videoRanges[bn]>0);Ht.length>0&&(E=!0,pe=Ht)}D=R(D)?D:0,j=R(j)?j:0;const pt=Math.max(1080,D),mt=Math.max(30,j);return le=R(le)?le:t,t=Math.max(le,t),E||(e=void 0,pe=[]),{codecSet:i.reduce((wt,hn)=>{const Ht=a[hn];if(hn===wt)return wt;if(Ht.minBitrate>t)return ni(hn,`min bitrate of ${Ht.minBitrate} > current estimate of ${t}`),wt;if(!Ht.hasDefaultAudio)return ni(hn,"no renditions with default or auto-select sound found"),wt;if(u&&hn.indexOf(u.substring(0,4))%5!==0)return ni(hn,`audio codec preference "${u}" not found`),wt;if(s&&!f){if(!Ht.channels[s])return ni(hn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Ht.channels)})`),wt}else if((!u||f)&&p&&Ht.channels[2]===0)return ni(hn,"no renditions with stereo sound found"),wt;return Ht.minHeight>pt?(ni(hn,`min resolution of ${Ht.minHeight} > maximum of ${pt}`),wt):Ht.minFramerate>mt?(ni(hn,`min framerate of ${Ht.minFramerate} > maximum of ${mt}`),wt):pe.some(bn=>Ht.videoRanges[bn]>0)?Ht.maxScore<ie?(ni(hn,`max score of ${Ht.maxScore} < selected max of ${ie}`),wt):wt&&(ct(hn)>=ct(wt)||Ht.fragmentError>a[wt].fragmentError)?wt:(ie=Ht.maxScore,hn):(ni(hn,`no variants with VIDEO-RANGE of ${JSON.stringify(pe)} found`),wt)},void 0),videoRanges:pe,preferHDR:Se,minFramerate:j,minBitrate:le}}function ni(a,e){b.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function us(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 ts(a,e,t,n){return a.slice(t,n+1).reduce((r,i)=>{if(!i.codecSet)return r;const s=i.audioGroups;let u=r[i.codecSet];u||(r[i.codecSet]=u={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!s,fragmentError:0}),u.minBitrate=Math.min(u.minBitrate,i.bitrate);const f=Math.min(i.height,i.width);return u.minHeight=Math.min(u.minHeight,f),u.minFramerate=Math.min(u.minFramerate,i.frameRate),u.maxScore=Math.max(u.maxScore,i.score),u.fragmentError+=i.fragmentError,u.videoRanges[i.videoRange]=(u.videoRanges[i.videoRange]||0)+1,s&&s.forEach(p=>{if(!p)return;const E=e.groups[p];E&&(u.hasDefaultAudio=u.hasDefaultAudio||e.hasDefaultAudio?E.hasDefault:E.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(E.channels).forEach(D=>{u.channels[D]=(u.channels[D]||0)+E.channels[D]}))}),r},{})}function Ei(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(Ai(a,r,t))return n}return-1}function Ai(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||e.lang===i)&&(i===void 0||e.assocLang===s)&&(u===void 0||e.default===u)&&(f===void 0||e.forced===f)&&(!("characteristics"in a)||xr(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function xr(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function nr(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 li(a,e,t,n,r){const i=e[n],u=e.reduce((j,le,ie)=>{const pe=le.uri;return(j[pe]||(j[pe]=[])).push(ie),j},{})[i.uri];u.length>1&&(n=Math.max.apply(Math,u));const f=i.videoRange,p=i.frameRate,E=i.codecSet.substring(0,4),D=ui(e,n,j=>{if(j.videoRange!==f||j.frameRate!==p||j.codecSet.substring(0,4)!==E)return!1;const le=j.audioGroups,ie=t.filter(pe=>!le||le.indexOf(pe.groupId)!==-1);return Ei(a,ie,r)>-1});return D>-1?D:ui(e,n,j=>{const le=j.audioGroups,ie=t.filter(pe=>!le||le.indexOf(pe.groupId)!==-1);return Ei(a,ie,r)>-1})}function ui(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}class Zr{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:n,hls:r}=this,{autoLevelEnabled:i,media:s}=r;if(!t||!s)return;const u=performance.now(),f=n?n.stats:t.stats,p=n?n.duration:t.duration,E=u-f.loading.start,D=r.minAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||t.level<=D){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const j=r.mainForwardBufferInfo;if(j===null)return;const le=this.bwEstimator.getEstimateTTFB(),ie=Math.abs(s.playbackRate);if(E<=Math.max(le,1e3*(p/(ie*2))))return;const pe=j.len/ie,Se=f.loading.first?f.loading.first-f.loading.start:-1,Ge=f.loaded&&Se>-1,pt=this.getBwEstimate(),mt=r.levels,Gt=mt[t.level],wt=f.total||Math.max(f.loaded,Math.round(p*Gt.averageBitrate/8));let hn=Ge?E-Se:E;hn<1&&Ge&&(hn=Math.min(E,f.loaded*8/pt));const Ht=Ge?f.loaded*1e3/hn:0,bn=Ht?(wt-f.loaded)/Ht:wt*8/pt+le/1e3;if(bn<=pe)return;const jn=Ht?Ht*8:pt;let an=Number.POSITIVE_INFINITY,xn;for(xn=t.level-1;xn>D;xn--){const Wn=mt[xn].maxBitrate;if(an=this.getTimeToLoadFrag(le/1e3,jn,p*Wn,!mt[xn].details),an<pe)break}if(an>=bn||an>p*10)return;r.nextLoadLevel=r.nextAutoLevel=xn,Ge?this.bwEstimator.sample(E-Math.min(le,Se),f.loaded):this.bwEstimator.sampleTTFB(E);const br=mt[xn].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>br&&this.resetEstimator(br),this.clearTimer(),b.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
|
|
|
Time to underbuffer: ${pe.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${bn.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${an.toFixed(3)} s
|
|
|
TTFB estimate: ${Se|0} ms
|
|
|
Current BW estimate: ${R(pt)?pt|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${xn} @ ${br|0} bps`),r.trigger(c.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:n,stats:f})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(b.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new Wi(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.FRAG_LOADING,this.onFragLoading,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.FRAG_LOADING,this.onFragLoading,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(c.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 v.BUFFER_ADD_CODEC_ERROR:case v.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case v.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,p=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&p>-1){const D=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(D,p),u.loaded)}else this.bwEstimator.sampleTTFB(f)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.start;R(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===ze.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(c.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!==ze.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 b.warn(`[abr] 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,{maxAutoLevel:r,config:i,minAutoLevel:s}=n,u=t?t.duration:e?e.duration:0,f=this.getBwEstimate(),p=this.getStarvationDelay();let E=i.abrBandWidthFactor,D=i.abrBandWidthUpFactor;if(p){const Se=this.findBestLevel(f,s,r,p,0,E,D);if(Se>=0)return Se}let j=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!p){const Se=this.bitrateTestDelay;Se&&(j=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-Se,b.info(`[abr] bitrate test took ${Math.round(1e3*Se)}ms, set first fragment max fetchDuration to ${Math.round(1e3*j)} ms`),E=D=1)}const le=this.findBestLevel(f,s,r,p,j,E,D);if(b.info(`[abr] ${p?"rebuffering expected":"buffer is empty"}, optimal quality level ${le}`),le>-1)return le;const ie=n.levels[s],pe=n.levels[n.loadLevel];return(ie==null?void 0:ie.bitrate)<(pe==null?void 0:pe.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 p=r+i,E=this.lastLoadedFragLevel,D=E===-1?this.hls.firstLevel:E,{fragCurrent:j,partCurrent:le}=this,{levels:ie,allAudioTracks:pe,loadLevel:Se,config:Ge}=this.hls;if(ie.length===1)return 0;const pt=ie[D],mt=!!(pt!=null&&(f=pt.details)!=null&&f.live),Gt=Se===-1||E===-1;let wt,hn="SDR",Ht=(pt==null?void 0:pt.frameRate)||0;const{audioPreference:bn,videoPreference:jn}=Ge,an=this.audioTracksByGroup||(this.audioTracksByGroup=us(pe));if(Gt){if(this.firstSelection!==-1)return this.firstSelection;const vr=this.codecTiers||(this.codecTiers=ts(ie,an,t,n)),ur=Pi(vr,hn,e,bn,jn),{codecSet:Fr,videoRanges:Xr,minFramerate:er,minBitrate:Zn,preferHDR:Ur}=ur;wt=Fr,hn=Ur?Xr[Xr.length-1]:Xr[0],Ht=er,e=Math.max(e,Zn),b.log(`[abr] picked start tier ${JSON.stringify(ur)}`)}else wt=pt==null?void 0:pt.codecSet,hn=pt==null?void 0:pt.videoRange;const xn=le?le.duration:j?j.duration:0,br=this.bwEstimator.getEstimateTTFB()/1e3,Wn=[];for(let vr=n;vr>=t;vr--){var yr;const ur=ie[vr],Fr=vr>D;if(!ur)continue;if(Ge.useMediaCapabilities&&!ur.supportedResult&&!ur.supportedPromise){const _i=navigator.mediaCapabilities;typeof(_i==null?void 0:_i.decodingInfo)=="function"&&ss(ur,an,hn,Ht,e,bn)?(ur.supportedPromise=as(ur,an,_i),ur.supportedPromise.then(Li=>{if(!this.hls)return;ur.supportedResult=Li;const ki=this.hls.levels,Yi=ki.indexOf(ur);Li.error?b.warn(`[abr] MediaCapabilities decodingInfo error: "${Li.error}" for level ${Yi} ${JSON.stringify(Li)}`):Li.supported||(b.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Yi} ${JSON.stringify(Li)}`),Yi>-1&&ki.length>1&&(b.log(`[abr] Removing unsupported level ${Yi}`),this.hls.removeLevel(Yi)))})):ur.supportedResult=ji}if(wt&&ur.codecSet!==wt||hn&&ur.videoRange!==hn||Fr&&Ht>ur.frameRate||!Fr&&Ht>0&&Ht<ur.frameRate||ur.supportedResult&&!((yr=ur.supportedResult.decodingInfoResults)!=null&&yr[0].smooth)){Wn.push(vr);continue}const Xr=ur.details,er=(le?Xr==null?void 0:Xr.partTarget:Xr==null?void 0:Xr.averagetargetduration)||xn;let Zn;Fr?Zn=u*e:Zn=s*e;const Ur=xn&&r>=xn*2&&i===0?ie[vr].averageBitrate:ie[vr].maxBitrate,Cr=this.getTimeToLoadFrag(br,Zn,Ur*er,Xr===void 0);if(Zn>=Ur&&(vr===E||ur.loadError===0&&ur.fragmentError===0)&&(Cr<=br||!R(Cr)||mt&&!this.bitrateTestDelay||Cr<p)){const _i=this.forcedAutoLevel;return vr!==Se&&(_i===-1||_i!==Se)&&(Wn.length&&b.trace(`[abr] Skipped level(s) ${Wn.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${ie[Wn[0]].codecs}" ${ie[Wn[0]].videoRange}; not compatible with "${pt.codecs}" ${hn}`),b.info(`[abr] switch candidate:${D}->${vr} adjustedbw(${Math.round(Zn)})-bitrate=${Math.round(Zn-Ur)} ttfb:${br.toFixed(1)} avgDuration:${er.toFixed(1)} maxFetchDuration:${p.toFixed(1)} fetchDuration:${Cr.toFixed(1)} firstSelection:${Gt} codecSet:${wt} videoRange:${hn} hls.loadLevel:${Se}`)),Gt&&(this.firstSelection=vr),vr}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=Math.min(Math.max(e,n),t);this._nextAutoLevel!==r&&(this.nextAutoLevelKey="",this._nextAutoLevel=r)}}class wi{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var Ir={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Bi{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(c.BUFFER_APPENDED,this.onBufferAppended,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.BUFFER_APPENDED,this.onBufferAppended,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.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){const{fragments:n}=this,r=Object.keys(n);for(let i=r.length;i--;){const s=n[r[i]];if((s==null?void 0:s.body.type)===t&&s.buffered){const u=s.body;if(u.start<=e&&e<=u.end)return u}}return null}detectEvictedFragments(e,t,n,r){this.timeRanges&&(this.timeRanges[e]=t);const i=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u||i>=u.body.sn)return;if(!u.buffered&&!u.loaded){u.body.type===n&&this.removeFragment(u.body);return}const f=u.range[e];f&&f.time.some(p=>{const E=!this.isTimeBuffered(p.startPTS,p.endPTS,t);return E&&this.removeFragment(u.body),E})})}detectPartialFragments(e){const t=this.timeRanges,{frag:n,part:r}=e;if(!t||n.sn==="initSegment")return;const i=Oi(n),s=this.fragments[i];if(!s||s.buffered&&n.gap)return;const u=!n.relurl;Object.keys(t).forEach(f=>{const p=n.elementaryStreams[f];if(!p)return;const E=t[f],D=u||p.partial===!0;s.range[f]=this.getBufferedTimes(n,r,D,E)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=n.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),gi(s)||this.removeParts(n.sn-1,n.type)):this.removeFragment(s.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=Oi(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,p=e.maxStartPTS||s;for(let E=0;E<r.length;E++){const D=r.start(E)-this.bufferPadding,j=r.end(E)+this.bufferPadding;if(p>=D&&f<=j){i.time.push({startPTS:Math.max(s,r.start(E)),endPTS:Math.min(u,r.end(E))});break}else if(s<j&&u>D){const le=Math.max(s,r.start(E)),ie=Math.min(u,r.end(E));ie>le&&(i.partial=!0,i.time.push({startPTS:le,endPTS:ie}))}else if(u<=D)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(p=>{const E=f[p];E&&gi(E)&&(r=E.body.start-u,i=E.body.end+u,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=E.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||gi(t))}getState(e){const t=Oi(e),n=this.fragments[t];return n?n.buffered?gi(n)?Ir.PARTIAL:Ir.OK:Ir.APPENDING:Ir.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}onFragLoaded(e,t){const{frag:n,part:r}=t;if(n.sn==="initSegment"||n.bitrateTest)return;const i=r?null:t,s=Oi(n);this.fragments[s]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i}=t;if(n.sn==="initSegment")return;const s=n.type;if(r){let u=this.activePartLists[s];u||(this.activePartLists[s]=u=[]),u.push(r)}this.timeRanges=i,Object.keys(i).forEach(u=>{const f=i[u];this.detectEvictedFragments(u,f,s,r)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Oi(e);return!!this.fragments[t]}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=Oi(e);e.stats.loaded=0,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(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function gi(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 Oi(a){return`${a.type}_${a.level}_${a.sn}`}const $i={length:0,start:()=>0,end:()=>0};class Or{static isBuffered(e,t){try{if(e){const n=Or.getBuffered(e);for(let r=0;r<n.length;r++)if(t>=n.start(r)&&t<=n.end(r))return!0}}catch(n){}return!1}static bufferInfo(e,t,n){try{if(e){const r=Or.getBuffered(e),i=[];let s;for(s=0;s<r.length;s++)i.push({start:r.start(s),end:r.end(s)});return this.bufferedInfo(i,t,n)}}catch(r){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.sort(function(p,E){const D=p.start-E.start;return D||E.end-p.end});let r=[];if(n)for(let p=0;p<e.length;p++){const E=r.length;if(E){const D=r[E-1].end;e[p].start-D<n?e[p].end>D&&(r[E-1].end=e[p].end):r.push(e[p])}else r.push(e[p])}else r=e;let i=0,s,u=t,f=t;for(let p=0;p<r.length;p++){const E=r[p].start,D=r[p].end;if(t+n>=E&&t<D)u=E,f=D,i=f-t;else if(t+n<E){s=E;break}}return{len:i,start:u||0,end:f||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return b.log("failed to get media.buffered",t),$i}}}class gs{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=Di(),this.buffering={audio:Di(),video:Di(),audiovideo:Di()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function Di(){return{start:0,executeStart:0,executeEnd:0,end:0}}function cs(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 ea(a,e,t){return!!(e&&(t.endCC>t.startCC||a&&a.cc<t.startCC))}function vs(a,e){const t=a.fragments,n=e.fragments;if(!n.length||!t.length){b.log("No fragments to align");return}const r=cs(t,n[0].cc);if(!r||r&&!r.startPTS){b.log("No frag in previous level to align on");return}return r}function _s(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function ys(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)_s(t[n],a);e.fragmentHint&&_s(e.fragmentHint,a),e.alignedSliding=!0}function As(a,e,t){e&&(Ms(a,t,e),!t.alignedSliding&&e&&zi(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&Ci(e,t))}function Ms(a,e,t){if(ea(a,t,e)){const n=vs(t,e);n&&R(n.start)&&(b.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),ys(n.start,e))}}function zi(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=cs(n,s),i=cs(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=cs(t,r.cc)||t[Math.floor(t.length/2)]);const u=r.programDateTime,f=i.programDateTime;if(!u||!f)return;const p=(f-u)/1e3-(i.start-r.start);ys(p,a)}const Ds=Math.pow(2,17);class Nr{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 ri({type:w.NETWORK_ERROR,details:v.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(le=>le[0]==="GAP")){f(Rr(e));return}else e.gap=!1;const p=this.loader=e.loader=i?new i(r):new s(r),E=Lr(e),D=Hr(r.fragLoadPolicy.default),j={loadPolicy:D,timeout:D.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Ds};e.stats=p.stats,p.load(E,j,{onSuccess:(le,ie,pe,Se)=>{this.resetLoader(e,p);let Ge=le.data;pe.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ge.slice(0,16)),Ge=Ge.slice(16)),u({frag:e,part:null,payload:Ge,networkDetails:Se})},onError:(le,ie,pe,Se)=>{this.resetLoader(e,p),f(new ri({type:w.NETWORK_ERROR,details:v.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:V({url:n,data:void 0},le),error:new Error(`HTTP Error ${le.code} ${le.text}`),networkDetails:pe,stats:Se}))},onAbort:(le,ie,pe)=>{this.resetLoader(e,p),f(new ri({type:w.NETWORK_ERROR,details:v.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:pe,stats:le}))},onTimeout:(le,ie,pe)=>{this.resetLoader(e,p),f(new ri({type:w.NETWORK_ERROR,details:v.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${j.timeout}ms`),networkDetails:pe,stats:le}))},onProgress:(le,ie,pe,Se)=>{t&&t({frag:e,part:null,payload:pe,networkDetails:Se})}})})}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(Rr(e,t));return}const p=this.loader=e.loader=i?new i(r):new s(r),E=Lr(e,t),D=Hr(r.fragLoadPolicy.default),j={loadPolicy:D,timeout:D.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Ds};t.stats=p.stats,p.load(E,j,{onSuccess:(le,ie,pe,Se)=>{this.resetLoader(e,p),this.updateStatsFromPart(e,t);const Ge={frag:e,part:t,payload:le.data,networkDetails:Se};n(Ge),u(Ge)},onError:(le,ie,pe,Se)=>{this.resetLoader(e,p),f(new ri({type:w.NETWORK_ERROR,details:v.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:V({url:E.url,data:void 0},le),error:new Error(`HTTP Error ${le.code} ${le.text}`),networkDetails:pe,stats:Se}))},onAbort:(le,ie,pe)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,p),f(new ri({type:w.NETWORK_ERROR,details:v.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:pe,stats:le}))},onTimeout:(le,ie,pe)=>{this.resetLoader(e,p),f(new ri({type:w.NETWORK_ERROR,details:v.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${j.timeout}ms`),networkDetails:pe,stats:le}))}})})}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),p=Math.min(Math.round(n.loaded/i),f),D=(f-p)*Math.round(n.loaded/p);n.total=n.loaded+D}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 Lr(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(R(r)&&R(i)){var s;let u=r,f=i;if(a.sn==="initSegment"&&((s=a.decryptdata)==null?void 0:s.method)==="AES-128"){const p=i-r;p%16&&(f=i+(16-p%16)),r!==0&&(n.resetIV=!0,u=r-16)}n.rangeStart=u,n.rangeEnd=f}return n}function Rr(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:w.MEDIA_ERROR,details:v.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new ri(n)}class ri extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class si{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class hs{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function Rs(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?oe(a,0,e-t):a}class Ns{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,p=f[0],E=f[1],D=f[2],j=f[3],le=new Uint32Array(256);let ie=0,pe=0,Se=0;for(Se=0;Se<256;Se++)Se<128?le[Se]=Se<<1:le[Se]=Se<<1^283;for(Se=0;Se<256;Se++){let Ge=pe^pe<<1^pe<<2^pe<<3^pe<<4;Ge=Ge>>>8^Ge&255^99,e[ie]=Ge,t[Ge]=ie;const pt=le[ie],mt=le[pt],Gt=le[mt];let wt=le[Ge]*257^Ge*16843008;r[ie]=wt<<24|wt>>>8,i[ie]=wt<<16|wt>>>16,s[ie]=wt<<8|wt>>>24,u[ie]=wt,wt=Gt*16843009^mt*65537^pt*257^ie*16843008,p[Ge]=wt<<24|wt>>>8,E[Ge]=wt<<16|wt>>>16,D[Ge]=wt<<8|wt>>>24,j[Ge]=wt,ie?(ie=pt^le[le[le[Gt^pt]]],pe^=le[le[pe]]):ie=pe=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 p=this.keySchedule=new Uint32Array(s),E=this.invKeySchedule=new Uint32Array(s),D=this.sBox,j=this.rcon,le=this.invSubMix,ie=le[0],pe=le[1],Se=le[2],Ge=le[3];let pt,mt;for(u=0;u<s;u++){if(u<i){pt=p[u]=t[u];continue}mt=pt,u%i===0?(mt=mt<<8|mt>>>24,mt=D[mt>>>24]<<24|D[mt>>>16&255]<<16|D[mt>>>8&255]<<8|D[mt&255],mt^=j[u/i|0]<<24):i>6&&u%i===4&&(mt=D[mt>>>24]<<24|D[mt>>>16&255]<<16|D[mt>>>8&255]<<8|D[mt&255]),p[u]=pt=(p[u-i]^mt)>>>0}for(f=0;f<s;f++)u=s-f,f&3?mt=p[u]:mt=p[u-4],f<4||u<=4?E[f]=mt:E[f]=ie[D[mt>>>24]]^pe[D[mt>>>16&255]]^Se[D[mt>>>8&255]]^Ge[D[mt&255]],E[f]=E[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],p=u[1],E=u[2],D=u[3],j=this.uint8ArrayToUint32Array_(n);let le=j[0],ie=j[1],pe=j[2],Se=j[3];const Ge=new Int32Array(e),pt=new Int32Array(Ge.length);let mt,Gt,wt,hn,Ht,bn,jn,an,xn,br,Wn,yr,vr,ur;const Fr=this.networkToHostOrderSwap;for(;t<Ge.length;){for(xn=Fr(Ge[t]),br=Fr(Ge[t+1]),Wn=Fr(Ge[t+2]),yr=Fr(Ge[t+3]),Ht=xn^i[0],bn=yr^i[1],jn=Wn^i[2],an=br^i[3],vr=4,ur=1;ur<r;ur++)mt=f[Ht>>>24]^p[bn>>16&255]^E[jn>>8&255]^D[an&255]^i[vr],Gt=f[bn>>>24]^p[jn>>16&255]^E[an>>8&255]^D[Ht&255]^i[vr+1],wt=f[jn>>>24]^p[an>>16&255]^E[Ht>>8&255]^D[bn&255]^i[vr+2],hn=f[an>>>24]^p[Ht>>16&255]^E[bn>>8&255]^D[jn&255]^i[vr+3],Ht=mt,bn=Gt,jn=wt,an=hn,vr=vr+4;mt=s[Ht>>>24]<<24^s[bn>>16&255]<<16^s[jn>>8&255]<<8^s[an&255]^i[vr],Gt=s[bn>>>24]<<24^s[jn>>16&255]<<16^s[an>>8&255]<<8^s[Ht&255]^i[vr+1],wt=s[jn>>>24]<<24^s[an>>16&255]<<16^s[Ht>>8&255]<<8^s[bn&255]^i[vr+2],hn=s[an>>>24]<<24^s[Ht>>16&255]<<16^s[bn>>8&255]<<8^s[jn&255]^i[vr+3],pt[t]=Fr(mt^le),pt[t+1]=Fr(hn^ie),pt[t+2]=Fr(wt^pe),pt[t+3]=Fr(Gt^Se),le=xn,ie=br,pe=Wn,Se=yr,t=t+4}return pt.buffer}}const Fs=16;class ds{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const 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?Rs(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n){return this.useSoftware?new Promise((r,i)=>{this.softwareDecrypt(new Uint8Array(e),t,n);const s=this.flush();s?r(s.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n)}softwareDecrypt(e,t,n){const{currentIV:r,currentResult:i,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(e=$t(s,e),this.remainderData=null);const u=this.getValidChunk(e);if(!u.length)return null;r&&(n=r);let f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new Ns),f.expandKey(t);const p=i;return this.currentResult=f.decrypt(u.buffer,0,n),this.currentIV=oe(u,-16).buffer,p||null}webCryptoDecrypt(e,t,n){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n));this.key=t,this.fastAesKey=new hs(this.subtle,t)}return this.fastAesKey.expandKey().then(r=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new si(this.subtle,new Uint8Array(n)).decrypt(e.buffer,r)):Promise.reject(new Error("web crypto not initialized"))).catch(r=>(b.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n)))}onWebCryptoError(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);const r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Fs;return n!==e.length&&(t=oe(e,0,n),this.remainderData=oe(e,n)),t}logOnce(e){this.logEnabled&&(b.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const ns={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}},tn={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 bs extends wi{constructor(e,t,n,r,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=tn.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=i,this.logPrefix=r,this.log=b.log.bind(b,`${r}:`),this.warn=b.warn.bind(b,`${r}:`),this.hls=e,this.fragmentLoader=new Nr(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new ds(e.config),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=tn.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const n=t.partList;if(n!=null&&n.length){const i=n[n.length-1];return Or.isBuffered(this.media,i.start+i.duration/2)}const r=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(r)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);const r=this.config;this.levels&&r.autoStartLoad&&this.state===tn.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:n,mediaBuffer:r,state:i}=this,s=n?n.currentTime:0,u=Or.bufferInfo(r||n,s,e.maxBufferHole);if(this.log(`media seeking to ${R(s)?s.toFixed(3):s}, state: ${i}`),this.state===tn.ENDED)this.resetLoadingState();else if(t){const f=e.maxFragLookUpTolerance,p=t.start-f,E=t.start+t.duration+f;if(!u.len||E<u.start||p>u.end){const D=s>E;(s<p||D)&&(D&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!u.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=tn.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._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${i.part?" p: "+i.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state;if(this.fragContextChanged(e)){(s===tn.FRAG_LOADING||!this.fragCurrent&&s===tn.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=tn.IDLE);return}"payload"in i&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(c.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===tn.STOPPED||this.state===tn.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)===Ir.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)===Ir.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)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(c.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{if(!n||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{payload:i}=n,s=e.decryptdata;if(i&&i.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const u=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer).catch(f=>{throw r.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:e}),f}).then(f=>{const p=self.performance.now();return r.trigger(c.FRAG_DECRYPTED,{frag:e,payload:f,stats:{tstart:u,tdecrypt:p}}),n.payload=f,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===tn.STOPPED||this.state===tn.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=tn.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){var n,r,i,s;const u=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===ze.MAIN?"level":"track"} ${e.level} (frag:[${((n=e.startPTS)!=null?n:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${u?ns.toString(Or.getBuffered(u)):"(detached)"})`),e.sn!=="initSegment"){var f;if(e.type!==ze.SUBTITLE){const E=e.elementaryStreams;if(!Object.keys(E).some(D=>!!E[D])){this.state=tn.IDLE;return}}const p=(f=this.levels)==null?void 0:f[e.level];p!=null&&p.fragmentError&&(this.log(`Resetting level fragment error count of ${p.fragmentError} on frag buffered`),p.fragmentError=0)}this.state=tn.IDLE,u&&(!this.loadedmetadata&&e.type==ze.MAIN&&u.buffered.length&&((i=this.fragCurrent)==null?void 0:i.sn)===((s=this.fragPrevious)==null?void 0:s.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_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 gs(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;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;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=tn.KEY_LOADING,this.fragCurrent=e,u=this.keyLoader.load(e).then(E=>{if(!this.fragContextChanged(E.frag))return this.hls.trigger(c.KEY_LOADED,E),this.state===tn.KEY_LOADING&&(this.state=tn.IDLE),E}),this.hls.trigger(c.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),n=Math.max(e.start,n||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const E=s.partList;if(E&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const D=this.getNextPart(E,e,n);if(D>-1){const j=E[D];this.log(`Loading part sn: ${e.sn} p: ${j.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${D}-${E.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=j.start+j.duration,this.state=tn.FRAG_LOADING;let le;return u?le=u.then(ie=>!ie||this.fragContextChanged(ie.frag)?null:this.doFragPartsLoad(e,j,t,r)).catch(ie=>this.handleFragLoadError(ie)):le=this.doFragPartsLoad(e,j,t,r).catch(ie=>this.handleFragLoadError(ie)),this.hls.trigger(c.FRAG_LOADING,{frag:e,part:j,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):le}else if(!e.url||this.loadedEndOfParts(E,n))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${s?"of ["+s.startSN+"-"+s.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),R(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=tn.FRAG_LOADING;const f=this.config.progressive;let p;return f&&u?p=u.then(E=>!E||this.fragContextChanged(E==null?void 0:E.frag)?null:this.fragmentLoader.load(e,r)).catch(E=>this.handleFragLoadError(E)):p=Promise.all([this.fragmentLoader.load(e,f?r:void 0),u]).then(([E])=>(!f&&E&&r&&r(E),E)).catch(E=>this.handleFragLoadError(E)),this.hls.trigger(c.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var u;const f=[],p=(u=n.details)==null?void 0:u.partList,E=D=>{this.fragmentLoader.loadPart(e,D,r).then(j=>{f[D.index]=j;const le=j.part;this.hls.trigger(c.FRAG_LOADED,j);const ie=Fn(n,e.sn,D.index+1)||Gn(p,e.sn,D.index+1);if(ie)E(ie);else return i({frag:e,part:le,partsLoaded:f})}).catch(s)};E(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===v.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(c.ERROR,t)}else this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:v.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==tn.PARSING){!this.fragCurrent&&this.state!==tn.STOPPED&&this.state!==tn.ERROR&&(this.state=tn.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),this.updateLevelTiming(n,r,i,e.partial)}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 level ${r}. The current chunk will not be buffered.`),null;const u=t[r],f=s>-1?Fn(u,i,s):null,p=f?f.fragment:oi(u,i,n);return p?(n&&n!==p&&(p.stats=n.stats),{frag:p,part:f,level:u}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==tn.PARSING)return;const{data1:u,data2:f}=e;let p=u;if(u&&f&&(p=$t(u,f)),!((s=p)!=null&&s.length))return;const E={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:p};if(this.hls.trigger(c.BUFFER_APPENDING,E),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Or.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Or.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){const n=this.getLoadPosition();return R(n)?this.getFwdBufferInfoAtPos(e,n,t):null}getFwdBufferInfoAtPos(e,t,n){const{config:{maxBufferHole:r}}=this,i=Or.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)return Or.bufferInfo(e,t,Math.max(i.nextStart,r))}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=ze.MAIN){const n=this.fragmentTracker.getAppendedFrag(e,ze.MAIN);return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start;let u;if(t.live){const f=i.initialLiveManifestSize;if(r<f)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${f})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s)&&(u=this.getInitialLiveFragment(t,n),this.startPosition=this.nextLoadPosition=u?this.hls.liveSyncPosition||u.start:e)}else e<=s&&(u=n[0]);if(!u){const f=i.lowLatencyMode?t.partEnd:t.fragmentEnd;u=this.getFragmentAtPosition(e,f,t)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Ir.OK||n===Ir.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){const s=e.gap,u=this.getNextFragment(this.nextLoadPosition,t);if(u===null)return u;if(e=u,s&&e&&!e.gap&&n.nextStart){const f=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(f!==null&&n.len+f.len>=i)return this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let u=0,f=e.length;u<f;u++){const p=e[u];if(s=s&&!p.independent,r>-1&&n<p.start)break;const E=p.loaded;E?r=-1:(i||p.independent||s)&&p.fragment===t&&(r=u),i=E}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=bi(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=Bn(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:p}=r,E=n.partList,D=!!(r.lowLatencyMode&&E!=null&&E.length&&f);D&&f&&!this.bitrateTest&&(s=s.concat(f),u=f.sn);let j;if(e<t){const le=e>t-p?0:p;j=xi(i,s,e,le)}else j=s[s.length-1];if(j){const le=j.sn-n.startSN,ie=this.fragmentTracker.getState(j);if((ie===Ir.OK||ie===Ir.PARTIAL&&j.gap)&&(i=j),i&&j.sn===i.sn&&(!D||E[0].fragment.sn>j.sn)&&i&&j.level===i.level){const Se=s[le+1];j.sn<u&&this.fragmentTracker.getState(Se)!==Ir.OK?j=Se:j=null}}return j}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=n.currentTime,s=e.fragments[0].start,u=e.edge,f=i>=s-t.maxFragLookUpTolerance&&i<=u;if(r!==null&&n.duration>r&&(i<r||!f)){const p=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&n.readyState<4||i<u-p)&&(this.loadedmetadata||(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))}}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragments[0].start,s=!t,u=e.alignedSliding&&R(i);if(s||!u&&!i){const{fragPrevious:f}=this;As(f,n,e);const p=e.fragments[0].start;return this.log(`Live playlist sliding: ${p.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${f?f.sn:"na"} fragments: ${r}`),p}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;if(n<t&&(n=-1),n===-1||this.lastCurrentTime===-1){const r=this.startTimeOffset!==null,i=r?this.startTimeOffset:e.startTimeOffset;i!==null&&R(i)?(n=t+i,i<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Start time offset ${i} found in ${r?"multivariant":"media"} playlist, adjust startPosition to ${n}`),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==tn.FRAG_LOADING_WAITING_RETRY)&&(this.state=tn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const E=this.getCurrentContext(t.chunkMeta);E&&(t.frag=E.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===v.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:u,retryCount:f=0,retryConfig:p}=s||{};if(s&&u===Nn.RetryRequest&&p){this.resetStartWhenNotLoaded(this.levelLastLoaded);const E=hr(p,f);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${f+1}/${p.maxNumRetry} in ${E}ms`),s.resolved=!0,this.retryDate=self.performance.now()+E,this.state=tn.FRAG_LOADING_WAITING_RETRY}else if(p&&s)if(this.resetFragmentErrors(e),f<p.maxNumRetry)!i&&u!==Nn.RemoveAlternatePermanently&&(s.resolved=!0);else{b.warn(`${t.details} reached or exceeded max retry (${f})`);return}else(s==null?void 0:s.action)===Nn.SendAlternateToPenaltyBox?this.state=tn.WAITING_LEVEL:this.state=tn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===tn.PARSING||this.state===tn.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===ze.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==tn.STOPPED&&(this.state=tn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Or.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===tn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=tn.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){var i;const s=n.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((f,p)=>{const E=e.elementaryStreams[p];if(E){const D=E.endPTS-E.startPTS;if(D<=0)return this.warn(`Could not parse fragment ${e.sn} ${p} duration reliably (${D})`),f||!1;const j=r?0:ci(s,e,E.startPTS,E.endPTS,E.startDTS,E.endDTS);return this.hls.trigger(c.LEVEL_PTS_UPDATED,{details:s,level:n,drift:j,type:p,frag:e,start:E.startPTS,end:E.endPTS}),!0}return f},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const f=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(n.fragmentError===0&&(n.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(f.message),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.FRAG_PARSING_ERROR,fatal:!1,error:f,frag:e,reason:`Found no media in msn ${e.sn} of level "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=tn.PARSED,this.hls.trigger(c.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class ta{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=ya(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function ya(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}function ba(){return typeof __HLS_WORKER_BUNDLE__=="function"}function na(){const a=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(a);return{worker:new self.Worker(e),objectURL:e}}function ra(a){const e=new self.URL(a,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Ki(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Bs{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=$t(this.cachedData,e),this.cachedData=null);let n=de(e,0),r=n?n.length:0,i;const s=this._audioTrack,u=this._id3Track,f=n?T(n):void 0,p=e.length;for((this.basePTS===null||this.frameIndex===0&&R(f))&&(this.basePTS=xa(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:Dn.audioId3,duration:Number.POSITIVE_INFINITY});r<p;){if(this.canParse(e,r)){const E=this.appendFrame(s,e,r);E?(this.frameIndex++,this.lastPTS=E.sample.pts,r+=E.length,i=r):r=p}else L(e,r)?(n=de(e,r),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Dn.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===p&&i!==p){const E=oe(e,i);this.cachedData?this.cachedData=$t(this.cachedData,E):this.cachedData=E}}return{audioTrack:s,videoTrack:Ki(),id3Track:u,textTrack:Ki()}}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:Ki(),id3Track:this._id3Track,textTrack:Ki()}}destroy(){}}const xa=(a,e,t)=>{if(R(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};function ja(a,e,t,n){let r,i,s,u;const f=navigator.userAgent.toLowerCase(),p=n,E=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const D=(e[t+2]&60)>>>2;if(D>E.length-1){const j=new Error(`invalid ADTS sampling index:${D}`);a.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:v.FRAG_PARSING_ERROR,fatal:!0,error:j,reason:j.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,b.log(`manifest codec:${n}, ADTS type:${r}, samplingIndex:${D}`),/firefox/i.test(f)?D>=6?(r=5,u=new Array(4),i=D-3):(r=2,u=new Array(2),i=D):f.indexOf("android")!==-1?(r=2,u=new Array(2),i=D):(r=5,u=new Array(4),n&&(n.indexOf("mp4a.40.29")!==-1||n.indexOf("mp4a.40.5")!==-1)||!n&&D>=6?i=D-3:((n&&n.indexOf("mp4a.40.2")!==-1&&(D>=6&&s===1||/vivaldi/i.test(f))||!n&&s===1)&&(r=2,u=new Array(2)),i=D)),u[0]=r<<3,u[0]|=(D&14)>>1,u[1]|=(D&1)<<7,u[1]|=s<<3,r===5&&(u[1]|=(i&14)>>1,u[2]=(i&1)<<7,u[2]|=8,u[3]=0),{config:u,samplerate:E[D],channelCount:s,codec:"mp4a.40."+r,manifestCodec:p}}function $s(a,e){return a[e]===255&&(a[e+1]&246)===240}function ia(a,e){return a[e+1]&1?7:9}function zs(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function Ea(a,e){return e+5<a.length}function Xi(a,e){return e+1<a.length&&$s(a,e)}function Is(a,e){return Ea(a,e)&&$s(a,e)&&zs(a,e)<=a.length-e}function Ka(a,e){if(Xi(a,e)){const t=ia(a,e);if(e+t>=a.length)return!1;const n=zs(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||Xi(a,r)}return!1}function wa(a,e,t,n,r){if(!a.samplerate){const i=ja(e,t,n,r);if(!i)return;a.config=i.config,a.samplerate=i.samplerate,a.channelCount=i.channelCount,a.codec=i.codec,a.manifestCodec=i.manifestCodec,b.log(`parsed codec:${a.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function sa(a){return 1024*9e4/a}function Ga(a,e){const t=ia(a,e);if(e+t<=a.length){const n=zs(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function aa(a,e,t,n,r){const i=sa(a.samplerate),s=n+r*i,u=Ga(e,t);let f;if(u){const{frameLength:D,headerLength:j}=u,le=j+D,ie=Math.max(0,t+le-e.length);ie?(f=new Uint8Array(le-j),f.set(e.subarray(t+j,e.length),0)):f=e.subarray(t+j,t+le);const pe={unit:f,pts:s};return ie||a.samples.push(pe),{sample:pe,length:le,missing:ie}}const p=e.length-t;return f=new Uint8Array(p),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:p,missing:-1}}let Ls=null;const Wa=[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],Sa=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Za=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Ca=[0,1,1,4];function Us(a,e,t,n,r){if(t+24>e.length)return;const i=Hs(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 Hs(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,p=Wa[f*14+r-1]*1e3,D=Sa[(t===3?0:t===2?1:2)*3+i],j=u===3?1:2,le=Za[t][n],ie=Ca[n],pe=le*8*ie,Se=Math.floor(le*p/D+s)*ie;if(Ls===null){const mt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ls=mt?parseInt(mt[1]):0}return!!Ls&&Ls<=87&&n===2&&p>=224e3&&u===0&&(a[e+3]=a[e+3]|128),{sampleRate:D,channelCount:j,frameLength:Se,samplesPerFrame:pe}}}function js(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function oa(a,e){return e+1<a.length&&js(a,e)}function Ta(a,e){return js(a,e)&&4<=a.length-e}function Aa(a,e){if(e+1<a.length&&js(a,e)){const n=Hs(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||oa(a,i)}return!1}class Da extends Bs{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){if(!e)return!1;const t=de(e,0);let n=(t==null?void 0:t.length)||0;if(Aa(e,n))return!1;for(let r=e.length;n<r;n++)if(Ka(e,n))return b.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Is(e,t)}appendFrame(e,t,n){wa(e,this.observer,t,n,e.manifestCodec);const r=aa(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const Ra=/\/emsg[-/]ID3/i;class Va{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=Ki("video",1),s=this.audioTrack=Ki("audio",1),u=this.txtTrack=Ki("text",1);if(this.id3Track=Ki("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const f=Ze(e);if(f.video){const{id:p,timescale:E,codec:D}=f.video;i.id=p,i.timescale=u.timescale=E,i.codec=D}if(f.audio){const{id:p,timescale:E,codec:D}=f.audio;s.id=p,s.timescale=E,s.codec=D}u.id=It.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return yn(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=$t(this.remainderData,e));const u=Hn(n);this.remainderData=u.remainder,r.samples=u.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=qt(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=qt(e,t),{videoTrack:t,audioTrack:Ki(),id3Track:r,textTrack:Ki()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=Me(e.samples,["emsg"]);r&&r.forEach(i=>{const s=ve(i);if(Ra.test(s.schemeIdUri)){const u=R(s.presentationTime)?s.presentationTime/s.timeScale:t+s.presentationTimeDelta/s.timeScale;let f=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;f<=.001&&(f=Number.POSITIVE_INFINITY);const p=s.payload;n.samples.push({data:p,len:p.byteLength,dts:u,pts:u,type:Dn.emsg,duration:f})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const xs=(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 la extends Bs{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=ua(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=de(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&T(t)!==void 0&&xs(e,n)<16}}function ua(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,E=[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+E>e.length)return-1;const D=e[t+6]>>5;let j=0;D===2?j+=2:(D&1&&D!==1&&(j+=2),D&4&&(j+=2));const le=(e[t+6]<<8|e[t+7])>>12-j&1,pe=[2,1,2,3,3,4,4,5][D]+le,Se=e[t+5]>>3,Ge=e[t+5]&7,pt=new Uint8Array([i<<6|Se<<1|Ge>>2,(Ge&3)<<6|D<<3|le<<2|f>>4,f<<4&224]),mt=1536/u*9e4,Gt=n+r*mt,wt=e.subarray(t,t+E);return a.config=pt,a.channelCount=pe,a.samplerate=u,a.samples.push({unit:wt,pts:Gt}),E}class Ya{constructor(){this.VideoSample=null}createVideoSample(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,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)}e.debug.length&&b.log(e.pts+"/"+e.dts+":"+e.debug)}}class Ia{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&&b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?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)}skipScalingList(e){let t=8,n=8,r;for(let i=0;i<e;i++)n!==0&&(r=this.readEG(),n=(t+r+256)%256),t=n===0?t:n}readSPS(){let e=0,t=0,n=0,r=0,i,s,u;const f=this.readUByte.bind(this),p=this.readBits.bind(this),E=this.readUEG.bind(this),D=this.readBoolean.bind(this),j=this.skipBits.bind(this),le=this.skipEG.bind(this),ie=this.skipUEG.bind(this),pe=this.skipScalingList.bind(this);f();const Se=f();if(p(5),j(3),f(),ie(),Se===100||Se===110||Se===122||Se===244||Se===44||Se===83||Se===86||Se===118||Se===128){const hn=E();if(hn===3&&j(1),ie(),ie(),j(1),D())for(s=hn!==3?8:12,u=0;u<s;u++)D()&&(u<6?pe(16):pe(64))}ie();const Ge=E();if(Ge===0)E();else if(Ge===1)for(j(1),le(),le(),i=E(),u=0;u<i;u++)le();ie(),j(1);const pt=E(),mt=E(),Gt=p(1);Gt===0&&j(1),j(1),D()&&(e=E(),t=E(),n=E(),r=E());let wt=[1,1];if(D()&&D())switch(f()){case 1:wt=[1,1];break;case 2:wt=[12,11];break;case 3:wt=[10,11];break;case 4:wt=[16,11];break;case 5:wt=[40,33];break;case 6:wt=[24,11];break;case 7:wt=[20,11];break;case 8:wt=[32,11];break;case 9:wt=[80,33];break;case 10:wt=[18,11];break;case 11:wt=[15,11];break;case 12:wt=[64,33];break;case 13:wt=[160,99];break;case 14:wt=[4,3];break;case 15:wt=[3,2];break;case 16:wt=[2,1];break;case 255:{wt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((pt+1)*16-e*2-t*2),height:(2-Gt)*(mt+1)*16-(Gt?2:4)*(n+r),pixelRatio:wt}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Xa extends Ya{parseAVCPES(e,t,n,r,i){const s=this.parseAVCNALu(e,n.data);let u=this.VideoSample,f,p=!1;n.data=null,u&&s.length&&!e.audFound&&(this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"")),s.forEach(E=>{var D;switch(E.type){case 1:{let pe=!1;f=!0;const Se=E.data;if(p&&Se.length>4){const Ge=new Ia(Se).readSliceType();(Ge===2||Ge===4||Ge===7||Ge===9)&&(pe=!0)}if(pe){var j;(j=u)!=null&&j.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null)}u||(u=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),u.frame=!0,u.key=pe;break}case 5:f=!0,(D=u)!=null&&D.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null),u||(u=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),u.key=!0,u.frame=!0;break;case 6:{f=!0,Tt(E.data,1,n.pts,t.samples);break}case 7:{var le,ie;f=!0,p=!0;const pe=E.data,Ge=new Ia(pe).readSPS();if(!e.sps||e.width!==Ge.width||e.height!==Ge.height||((le=e.pixelRatio)==null?void 0:le[0])!==Ge.pixelRatio[0]||((ie=e.pixelRatio)==null?void 0:ie[1])!==Ge.pixelRatio[1]){e.width=Ge.width,e.height=Ge.height,e.pixelRatio=Ge.pixelRatio,e.sps=[pe],e.duration=i;const pt=pe.subarray(1,4);let mt="avc1.";for(let Gt=0;Gt<3;Gt++){let wt=pt[Gt].toString(16);wt.length<2&&(wt="0"+wt),mt+=wt}e.codec=mt}break}case 8:f=!0,e.pps=[E.data];break;case 9:f=!0,e.audFound=!0,u&&this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"");break;case 12:f=!0;break;default:f=!1,u&&(u.debug+="unknown NAL "+E.type+" ");break}u&&f&&u.units.push(E)}),r&&u&&(this.pushAccessUnit(u,e),this.VideoSample=null)}parseAVCNALu(e,t){const n=t.byteLength;let r=e.naluState||0;const i=r,s=[];let u=0,f,p,E,D=-1,j=0;for(r===-1&&(D=0,j=t[0]&31,r=0,u=1);u<n;){if(f=t[u++],!r){r=f?0:1;continue}if(r===1){r=f?0:2;continue}if(!f)r=3;else if(f===1){if(p=u-r-1,D>=0){const le={data:t.subarray(D,p),type:j};s.push(le)}else{const le=this.getLastNalUnit(e.samples);le&&(i&&u<=4-i&&le.state&&(le.data=le.data.subarray(0,le.data.byteLength-i)),p>0&&(le.data=$t(le.data,t.subarray(0,p)),le.state=0))}u<n?(E=t[u]&31,D=u,j=E,r=0):r=-1}else r=0}if(D>=0&&r>=0){const le={data:t.subarray(D,n),type:j,state:r};s.push(le)}if(s.length===0){const le=this.getLastNalUnit(e.samples);le&&(le.data=$t(le.data,t))}return e.naluState=r,s}}class ca{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new ds(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}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=Le(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}}}}const vi=188;class rs{constructor(e,t,n){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.videoParser=new Xa}static probe(e){const t=rs.syncOffset(e);return t>0&&b.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let n=Math.min(vi*5,t-vi)+1,r=0;for(;r<n;){let i=!1,s=-1,u=0;for(let f=r;f<t;f+=vi)if(e[f]===71&&(t-f===vi||e[f+vi]===71)){if(u++,s===-1&&(s=f,s!==0&&(n=Math.min(s+vi*99,e.length-vi)+1)),i||(i=Ks(e,f)===0),i&&u>1&&(s===0&&u>2||f+vi>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:It[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=rs.createTrack("video"),this._audioTrack=rs.createTrack("audio",r),this._id3Track=rs.createTrack("id3"),this._txtTrack=rs.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n,this._duration=r}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,p=this._txtTrack;let E=s.pid,D=s.pesData,j=u.pid,le=f.pid,ie=u.pesData,pe=f.pesData,Se=null,Ge=this.pmtParsed,pt=this._pmtId,mt=e.length;if(this.remainderData&&(e=$t(this.remainderData,e),mt=e.length,this.remainderData=null),mt<vi&&!r)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:p};const Gt=Math.max(0,rs.syncOffset(e));mt-=(mt-Gt)%vi,mt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,mt,e.buffer.byteLength-mt));let wt=0;for(let Ht=Gt;Ht<mt;Ht+=vi)if(e[Ht]===71){const bn=!!(e[Ht+1]&64),jn=Ks(e,Ht),an=(e[Ht+3]&48)>>4;let xn;if(an>1){if(xn=Ht+5+e[Ht+4],xn===Ht+vi)continue}else xn=Ht+4;switch(jn){case E:bn&&(D&&(i=fs(D))&&this.videoParser.parseAVCPES(s,p,i,!1,this._duration),D={data:[],size:0}),D&&(D.data.push(e.subarray(xn,Ht+vi)),D.size+=Ht+vi-xn);break;case j:if(bn){if(ie&&(i=fs(ie)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}ie={data:[],size:0}}ie&&(ie.data.push(e.subarray(xn,Ht+vi)),ie.size+=Ht+vi-xn);break;case le:bn&&(pe&&(i=fs(pe))&&this.parseID3PES(f,i),pe={data:[],size:0}),pe&&(pe.data.push(e.subarray(xn,Ht+vi)),pe.size+=Ht+vi-xn);break;case 0:bn&&(xn+=e[xn]+1),pt=this._pmtId=Qa(e,xn);break;case pt:{bn&&(xn+=e[xn]+1);const br=La(e,xn,this.typeSupported,n,this.observer);E=br.videoPid,E>0&&(s.pid=E,s.segmentCodec=br.segmentVideoCodec),j=br.audioPid,j>0&&(u.pid=j,u.segmentCodec=br.segmentAudioCodec),le=br.id3Pid,le>0&&(f.pid=le),Se!==null&&!Ge&&(b.warn(`MPEG-TS PMT found at ${Ht} after unknown PID '${Se}'. Backtracking to sync byte @${Gt} to parse all TS packets.`),Se=null,Ht=Gt-188),Ge=this.pmtParsed=!0;break}case 17:case 8191:break;default:Se=jn;break}}else wt++;wt>0&&Gs(this.observer,new Error(`Found ${wt} TS packet/s that do not start with 0x47`)),s.pesData=D,u.pesData=ie,f.pesData=pe;const hn={audioTrack:u,videoTrack:s,id3Track:f,textTrack:p};return r&&this.extractRemainingSamples(hn),hn}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 p;if(s&&(p=fs(s))?(this.videoParser.parseAVCPES(n,i,p,!0,this._duration),n.pesData=null):n.pesData=s,u&&(p=fs(u))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,p);break;case"mp3":this.parseMPEGPES(t,p);break;case"ac3":this.parseAC3PES(t,p);break}t.pesData=null}else u!=null&&u.size&&b.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(p=fs(f))?(this.parseID3PES(r,p),r.pesData=null):r.pesData=f}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new ca(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._duration=0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const D=r.missing,j=r.sample.unit.byteLength;if(D===-1)i=$t(r.sample.unit,i);else{const le=j-D;r.sample.unit.set(i.subarray(0,D),le),e.samples.push(r.sample),n=r.missing}}let s,u;for(s=n,u=i.length;s<u-1&&!Xi(i,s);s++);if(s!==n){let D;const j=s<u-1;if(j?D=`AAC PES did not start with ADTS header,offset:${s}`:D="No ADTS header found in AAC PES",Gs(this.observer,new Error(D),j),!j)return}wa(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(r){const D=sa(e.samplerate);f=r.sample.pts+D}else{b.warn("[tsdemuxer]: AAC PES unknown PTS");return}let p=0,E;for(;s<u;)if(E=aa(e,i,s,f,p),s+=E.length,E.missing){this.aacOverFlow=E;break}else for(p++;s<u-1&&!Xi(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){b.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(oa(n,s)){const f=Us(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){b.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,u=0,f;for(;u<i&&(f=ua(e,n,u,r,s++))>0;)u+=f}}parseID3PES(e,t){if(t.pts===void 0){b.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=o({},t,{type:this._videoTrack?Dn.emsg:Dn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Ks(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Qa(a,e){return(a[e+10]&31)<<8|a[e+11]}function La(a,e,t,n,r){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(a[e+1]&15)<<8|a[e+2],u=e+3+s-4,f=(a[e+10]&15)<<8|a[e+11];for(e+=12+f;e<u;){const p=Ks(a,e),E=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Fe("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=p);break;case 21:i.id3Pid===-1&&(i.id3Pid=p);break;case 219:if(!n){Fe("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=p,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?b.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=p,i.segmentAudioCodec="mp3");break;case 193:if(!n){Fe("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=p,i.segmentAudioCodec="ac3"):b.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&E>0){let D=e+5,j=E;for(;j>2;){switch(a[D]){case 106:t.ac3!==!0?b.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=p,i.segmentAudioCodec="ac3");break}const ie=a[D+1]+2;D+=ie,j-=ie}}break;case 194:case 135:return Gs(r,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return Gs(r,new Error("Unsupported HEVC in M2TS found")),i}e+=E+5}return i}function Gs(a,e,t){b.warn(`parsing error: ${e.message}`),a.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:v.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Fe(a){b.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function fs(a){let e=0,t,n,r,i,s;const u=a.data;if(!a||a.size===0)return null;for(;u[0].length<19&&u.length>1;)u[0]=$t(u[0],u[1]),u.splice(1,1);if(t=u[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(n=(t[4]<<8)+t[5],n&&n>a.size-6)return null;const p=t[7];p&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,p&64?(s=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,i-s>60*9e4&&(b.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),r=t[8];let E=r+9;if(a.size<=E)return null;a.size-=E;const D=new Uint8Array(a.size);for(let j=0,le=u.length;j<le;j++){t=u[j];let ie=t.byteLength;if(E)if(E>ie){E-=ie;continue}else t=t.subarray(E),ie-=E,E=0;D.set(t,e),e+=ie}return n&&(n-=r+3),{data:D,pts:i,dts:s,len:n}}return null}class ha extends Bs{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=de(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&T(t)!==void 0&&xs(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(Aa(e,n))return b.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ta(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Us(e,t,n,this.basePTS,this.frameIndex)}}class Ws{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 Qi=Math.pow(2,32)-1;class Dt{static init(){Dt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in Dt.types)Dt.types.hasOwnProperty(e)&&(Dt.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]);Dt.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]);Dt.STTS=Dt.STSC=Dt.STCO=i,Dt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Dt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Dt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Dt.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]);Dt.FTYP=Dt.box(Dt.types.ftyp,s,f,s,u),Dt.DINF=Dt.box(Dt.types.dinf,Dt.box(Dt.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 Dt.box(Dt.types.hdlr,Dt.HDLR_TYPES[e])}static mdat(e){return Dt.box(Dt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+1));return Dt.box(Dt.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 Dt.box(Dt.types.mdia,Dt.mdhd(e.timescale,e.duration),Dt.hdlr(e.type),Dt.minf(e))}static mfhd(e){return Dt.box(Dt.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"?Dt.box(Dt.types.minf,Dt.box(Dt.types.smhd,Dt.SMHD),Dt.DINF,Dt.stbl(e)):Dt.box(Dt.types.minf,Dt.box(Dt.types.vmhd,Dt.VMHD),Dt.DINF,Dt.stbl(e))}static moof(e,t,n){return Dt.box(Dt.types.moof,Dt.mfhd(e),Dt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Dt.trak(e[t]);return Dt.box.apply(null,[Dt.types.moov,Dt.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(Dt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Dt.trex(e[t]);return Dt.box.apply(null,[Dt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+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 Dt.box(Dt.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 Dt.box(Dt.types.sdtp,n)}static stbl(e){return Dt.box(Dt.types.stbl,Dt.stsd(e),Dt.box(Dt.types.stts,Dt.STTS),Dt.box(Dt.types.stsc,Dt.STSC),Dt.box(Dt.types.stsz,Dt.STSZ),Dt.box(Dt.types.stco,Dt.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=Dt.box(Dt.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,p=e.height,E=e.pixelRatio[0],D=e.pixelRatio[1];return Dt.box(Dt.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,p>>8&255,p&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,Dt.box(Dt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Dt.box(Dt.types.pasp,new Uint8Array([E>>24,E>>16&255,E>>8&255,E&255,D>>24,D>>16&255,D>>8&255,D&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return Dt.box(Dt.types.mp4a,Dt.audioStsd(e),Dt.box(Dt.types.esds,Dt.esds(e)))}static mp3(e){return Dt.box(Dt.types[".mp3"],Dt.audioStsd(e))}static ac3(e){return Dt.box(Dt.types["ac-3"],Dt.audioStsd(e),Dt.box(Dt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?Dt.box(Dt.types.stsd,Dt.STSD,Dt.mp3(e)):e.segmentCodec==="ac3"?Dt.box(Dt.types.stsd,Dt.STSD,Dt.ac3(e)):Dt.box(Dt.types.stsd,Dt.STSD,Dt.mp4a(e)):Dt.box(Dt.types.stsd,Dt.STSD,Dt.avc1(e))}static tkhd(e){const t=e.id,n=e.duration*e.timescale,r=e.width,i=e.height,s=Math.floor(n/(Qi+1)),u=Math.floor(n%(Qi+1));return Dt.box(Dt.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=Dt.sdtp(e),r=e.id,i=Math.floor(t/(Qi+1)),s=Math.floor(t%(Qi+1));return Dt.box(Dt.types.traf,Dt.box(Dt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Dt.box(Dt.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])),Dt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Dt.box(Dt.types.trak,Dt.tkhd(e),Dt.mdia(e))}static trex(e){const t=e.id;return Dt.box(Dt.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,p,E,D,j;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],p=f.duration,E=f.size,D=f.flags,j=f.cts,s.set([p>>>24&255,p>>>16&255,p>>>8&255,p&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,D.isLeading<<2|D.dependsOn,D.isDependedOn<<6|D.hasRedundancy<<4|D.paddingValue<<1|D.isNonSync,D.degradPrio&61440,D.degradPrio&15,j>>>24&255,j>>>16&255,j>>>8&255,j&255],12+16*u);return Dt.box(Dt.types.trun,s)}static initSegment(e){Dt.types||Dt.init();const t=Dt.moov(e);return $t(Dt.FTYP,t)}}Dt.types=void 0,Dt.HDLR_TYPES=void 0,Dt.STTS=void 0,Dt.STSC=void 0,Dt.STCO=void 0,Dt.STSZ=void 0,Dt.VMHD=void 0,Dt.SMHD=void 0,Dt.STSD=void 0,Dt.FTYP=void 0,Dt.DINF=void 0;const da=9e4;function Zs(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function qa(a,e,t=1,n=!1){return Zs(a,e,1/t,n)}function Es(a,e=!1){return Zs(a,1e3,1/da,e)}function Oa(a,e=1){return Zs(a,da,1/e)}const Vs=10*1e3,ka=1024,fa=1152,Pa=1536;let ws=null,ma=null;class Os{constructor(e,t,n,r=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,ws===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ws=s?parseInt(s[1]):0}if(ma===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ma=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){b.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){b.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){b.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let u=s.pts,f=u-i;return f<-4294967296&&(t=!0,u=Mi(u,n),f=u-i),f>0?i:u},n);return t&&b.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,u,f){let p,E,D,j,le,ie,pe=i,Se=i;const Ge=e.pid>-1,pt=t.pid>-1,mt=t.samples.length,Gt=e.samples.length>0,wt=u&&mt>0||mt>1;if((!Ge||Gt)&&(!pt||wt)||this.ISGenerated||u){if(this.ISGenerated){var Ht,bn,jn,an;const yr=this.videoTrackConfig;yr&&(t.width!==yr.width||t.height!==yr.height||((Ht=t.pixelRatio)==null?void 0:Ht[0])!==((bn=yr.pixelRatio)==null?void 0:bn[0])||((jn=t.pixelRatio)==null?void 0:jn[1])!==((an=yr.pixelRatio)==null?void 0:an[1]))&&this.resetInitSegment()}else D=this.generateIS(e,t,i,s);const xn=this.isVideoContiguous;let br=-1,Wn;if(wt&&(br=Ja(t.samples),!xn&&this.config.forceKeyFrameOnDiscontinuity))if(ie=!0,br>0){b.warn(`[mp4-remuxer]: Dropped ${br} out of ${mt} video samples due to a missing keyframe`);const yr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(br),t.dropped+=br,Se+=(t.samples[0].pts-yr)/t.inputTimeScale,Wn=Se}else br===-1&&(b.warn(`[mp4-remuxer]: No keyframe found out of ${mt} video samples`),ie=!1);if(this.ISGenerated){if(Gt&&wt){const yr=this.getVideoStartPts(t.samples),ur=(Mi(e.samples[0].pts,yr)-yr)/t.inputTimeScale;pe+=Math.max(0,ur),Se+=Math.max(0,-ur)}if(Gt){if(e.samplerate||(b.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),D=this.generateIS(e,t,i,s)),E=this.remuxAudio(e,pe,this.isAudioContiguous,s,pt||wt||f===ze.AUDIO?Se:void 0),wt){const yr=E?E.endPTS-E.startPTS:0;t.inputTimeScale||(b.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),D=this.generateIS(e,t,i,s)),p=this.remuxVideo(t,Se,xn,yr)}}else wt&&(p=this.remuxVideo(t,Se,xn,0));p&&(p.firstKeyFrame=br,p.independent=br!==-1,p.firstKeyFramePTS=Wn)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(le=Ma(n,i,this._initPTS,this._initDTS)),r.samples.length&&(j=eo(r,i,this._initPTS))),{audio:E,video:p,initSegment:D,independent:ie,text:j,id3:le}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,u=this.typeSupported,f={},p=this._initPTS;let E=!p||r,D="audio/mp4",j,le,ie;if(E&&(j=le=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(D="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:D,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):Dt.initSegment([e]),metadata:{channelCount:e.channelCount}},E&&(ie=e.inputTimeScale,!p||ie!==p.timescale?j=le=i[0].pts-Math.round(ie*n):E=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Dt.initSegment([t]),metadata:{width:t.width,height:t.height}},E)if(ie=t.inputTimeScale,!p||ie!==p.timescale){const pe=this.getVideoStartPts(s),Se=Math.round(ie*n);le=Math.min(le,Mi(s[0].dts,pe)-Se),j=Math.min(j,pe-Se)}else E=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(f).length)return this.ISGenerated=!0,E?(this._initPTS={baseTime:j,timescale:ie},this._initDTS={baseTime:le,timescale:ie}):j=ie=void 0,{tracks:f,initPTS:j,timescale:ie}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,p=this._initPTS;let E=this.nextAvcDts,D=8,j=this.videoSampleDuration,le,ie,pe=Number.POSITIVE_INFINITY,Se=Number.NEGATIVE_INFINITY,Ge=!1;if(!n||E===null){const er=t*i,Zn=s[0].pts-Mi(s[0].dts,s[0].pts);ws&&E!==null&&Math.abs(er-Zn-E)<15e3?n=!0:E=er-Zn}const pt=p.baseTime*i/p.timescale;for(let er=0;er<f;er++){const Zn=s[er];Zn.pts=Mi(Zn.pts-pt,E),Zn.dts=Mi(Zn.dts-pt,E),Zn.dts<s[er>0?er-1:er].dts&&(Ge=!0)}Ge&&s.sort(function(er,Zn){const Ur=er.dts-Zn.dts,Cr=er.pts-Zn.pts;return Ur||Cr}),le=s[0].dts,ie=s[s.length-1].dts;const mt=ie-le,Gt=mt?Math.round(mt/(f-1)):j||e.inputTimeScale/30;if(n){const er=le-E,Zn=er>Gt,Ur=er<-1;if((Zn||Ur)&&(Zn?b.warn(`AVC: ${Es(er,!0)} ms (${er}dts) hole between fragments detected at ${t.toFixed(3)}`):b.warn(`AVC: ${Es(-er,!0)} ms (${er}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Ur||E>=s[0].pts||ws)){le=E;const Cr=s[0].pts-er;if(Zn)s[0].dts=le,s[0].pts=Cr;else for(let Vr=0;Vr<s.length&&!(s[Vr].dts>Cr);Vr++)s[Vr].dts-=er,s[Vr].pts-=er;b.log(`Video: Initial PTS/DTS adjusted: ${Es(Cr,!0)}/${Es(le,!0)}, delta: ${Es(er,!0)} ms`)}}le=Math.max(0,le);let wt=0,hn=0,Ht=le;for(let er=0;er<f;er++){const Zn=s[er],Ur=Zn.units,Cr=Ur.length;let Vr=0;for(let _i=0;_i<Cr;_i++)Vr+=Ur[_i].data.length;hn+=Vr,wt+=Cr,Zn.length=Vr,Zn.dts<Ht?(Zn.dts=Ht,Ht+=Gt/4|0||1):Ht=Zn.dts,pe=Math.min(Zn.pts,pe),Se=Math.max(Zn.pts,Se)}ie=s[f-1].dts;const bn=hn+4*wt+8;let jn;try{jn=new Uint8Array(bn)}catch(er){this.observer.emit(c.ERROR,c.ERROR,{type:w.MUX_ERROR,details:v.REMUX_ALLOC_ERROR,fatal:!1,error:er,bytes:bn,reason:`fail allocating video mdat ${bn}`});return}const an=new DataView(jn.buffer);an.setUint32(0,bn),jn.set(Dt.types.mdat,4);let xn=!1,br=Number.POSITIVE_INFINITY,Wn=Number.POSITIVE_INFINITY,yr=Number.NEGATIVE_INFINITY,vr=Number.NEGATIVE_INFINITY;for(let er=0;er<f;er++){const Zn=s[er],Ur=Zn.units;let Cr=0;for(let Li=0,ki=Ur.length;Li<ki;Li++){const Yi=Ur[Li],_a=Yi.data,bo=Yi.data.byteLength;an.setUint32(D,bo),D+=4,jn.set(_a,D),D+=bo,Cr+=4+bo}let Vr;if(er<f-1)j=s[er+1].dts-Zn.dts,Vr=s[er+1].pts-Zn.pts;else{const Li=this.config,ki=er>0?Zn.dts-s[er-1].dts:Gt;if(Vr=er>0?Zn.pts-s[er-1].pts:Gt,Li.stretchShortVideoTrack&&this.nextAudioPts!==null){const Yi=Math.floor(Li.maxBufferHole*i),_a=(r?pe+r*i:this.nextAudioPts)-Zn.pts;_a>Yi?(j=_a-ki,j<0?j=ki:xn=!0,b.log(`[mp4-remuxer]: It is approximately ${_a/90} ms to the next segment; using duration ${j/90} ms for the last video frame.`)):j=ki}else j=ki}const _i=Math.round(Zn.pts-Zn.dts);br=Math.min(br,j),yr=Math.max(yr,j),Wn=Math.min(Wn,Vr),vr=Math.max(vr,Vr),u.push(new U(Zn.key,j,Cr,_i))}if(u.length){if(ws){if(ws<70){const er=u[0].flags;er.dependsOn=2,er.isNonSync=0}}else if(ma&&vr-Wn<yr-br&&Gt/yr<.025&&u[0].cts===0){b.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let er=le;for(let Zn=0,Ur=u.length;Zn<Ur;Zn++){const Cr=er+u[Zn].duration,Vr=er+u[Zn].cts;if(Zn<Ur-1){const _i=Cr+u[Zn+1].cts;u[Zn].duration=_i-Vr}else u[Zn].duration=Zn?u[Zn-1].duration:Gt;u[Zn].cts=0,er=Cr}}}j=xn||!j?Gt:j,this.nextAvcDts=E=ie+j,this.videoSampleDuration=j,this.isVideoContiguous=!0;const Xr={data1:Dt.moof(e.sequenceNumber++,le,o({},e,{samples:u})),data2:jn,startPTS:pe/i,endPTS:(Se+j)/i,startDTS:le/i,endDTS:E/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Xr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return fa;case"ac3":return Pa;default:return ka}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,u=e.samplerate?e.samplerate:s,f=s/u,p=this.getSamplesPerFrame(e),E=p*f,D=this._initPTS,j=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,le=[],ie=i!==void 0;let pe=e.samples,Se=j?0:8,Ge=this.nextAudioPts||-1;const pt=t*s,mt=D.baseTime*s/D.timescale;if(this.isAudioContiguous=n=n||pe.length&&Ge>0&&(r&&Math.abs(pt-Ge)<9e3||Math.abs(Mi(pe[0].pts-mt,pt)-Ge)<20*E),pe.forEach(function(ur){ur.pts=Mi(ur.pts-mt,pt)}),!n||Ge<0){if(pe=pe.filter(ur=>ur.pts>=0),!pe.length)return;i===0?Ge=0:r&&!ie?Ge=Math.max(0,pt):Ge=pe[0].pts}if(e.segmentCodec==="aac"){const ur=this.config.maxAudioFramesDrift;for(let Fr=0,Xr=Ge;Fr<pe.length;Fr++){const er=pe[Fr],Zn=er.pts,Ur=Zn-Xr,Cr=Math.abs(1e3*Ur/s);if(Ur<=-ur*E&&ie)Fr===0&&(b.warn(`Audio frame @ ${(Zn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Ur/s)} ms.`),this.nextAudioPts=Ge=Xr=Zn);else if(Ur>=ur*E&&Cr<Vs&&ie){let Vr=Math.round(Ur/E);Xr=Zn-Vr*E,Xr<0&&(Vr--,Xr+=E),Fr===0&&(this.nextAudioPts=Ge=Xr),b.warn(`[mp4-remuxer]: Injecting ${Vr} audio frame @ ${(Xr/s).toFixed(3)}s due to ${Math.round(1e3*Ur/s)} ms gap.`);for(let _i=0;_i<Vr;_i++){const Li=Math.max(Xr,0);let ki=Ws.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);ki||(b.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ki=er.unit.subarray()),pe.splice(Fr,0,{unit:ki,pts:Li}),Xr+=E,Fr++}}er.pts=Xr,Xr+=E}}let Gt=null,wt=null,hn,Ht=0,bn=pe.length;for(;bn--;)Ht+=pe[bn].unit.byteLength;for(let ur=0,Fr=pe.length;ur<Fr;ur++){const Xr=pe[ur],er=Xr.unit;let Zn=Xr.pts;if(wt!==null){const Cr=le[ur-1];Cr.duration=Math.round((Zn-wt)/f)}else if(n&&e.segmentCodec==="aac"&&(Zn=Ge),Gt=Zn,Ht>0){Ht+=Se;try{hn=new Uint8Array(Ht)}catch(Cr){this.observer.emit(c.ERROR,c.ERROR,{type:w.MUX_ERROR,details:v.REMUX_ALLOC_ERROR,fatal:!1,error:Cr,bytes:Ht,reason:`fail allocating audio mdat ${Ht}`});return}j||(new DataView(hn.buffer).setUint32(0,Ht),hn.set(Dt.types.mdat,4))}else return;hn.set(er,Se);const Ur=er.byteLength;Se+=Ur,le.push(new U(!0,p,Ur,0)),wt=Zn}const jn=le.length;if(!jn)return;const an=le[le.length-1];this.nextAudioPts=Ge=wt+f*an.duration;const xn=j?new Uint8Array(0):Dt.moof(e.sequenceNumber++,Gt/f,o({},e,{samples:le}));e.samples=[];const br=Gt/s,Wn=Ge/s,vr={data1:xn,data2:hn,startPTS:br,endPTS:Wn,startDTS:br,endDTS:Wn,type:"audio",hasAudio:!0,hasVideo:!1,nb:jn};return this.isAudioContiguous=!0,vr}remuxEmptyAudio(e,t,n,r){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,u=i/s,f=this.nextAudioPts,p=this._initDTS,E=p.baseTime*9e4/p.timescale,D=(f!==null?f:r.startDTS*i)+E,j=r.endDTS*i+E,le=u*ka,ie=Math.ceil((j-D)/le),pe=Ws.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(b.warn("[mp4-remuxer]: remux empty Audio"),!pe){b.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const Se=[];for(let Ge=0;Ge<ie;Ge++){const pt=D+Ge*le;Se.push({unit:pe,pts:pt,dts:pt})}return e.samples=Se,this.remuxAudio(e,t,n,!1)}}function Mi(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 Ja(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Ma(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=Mi(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=Mi(f.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function eo(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=Mi(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 U{constructor(e,t,n,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=n,this.cts=r,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class l{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(G(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=Ze(e);r.audio&&(t=d(r.audio,q.AUDIO)),r.video&&(n=d(r.video,q.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,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,initSegment:e,id:"main"}:b.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:p,lastEndTime:E}=this;const D={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};R(E)||(E=this.lastEndTime=i||0);const j=t.samples;if(!(j!=null&&j.length))return D;const le={initPTS:void 0,timescale:1};let ie=this.initData;if((u=ie)!=null&&u.length||(this.generateInitSegment(j),ie=this.initData),!((f=ie)!=null&&f.length))return b.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),D;this.emitInitSegment&&(le.tracks=this.initTracks,this.emitInitSegment=!1);const pe=Yt(j,ie),Se=Pe(ie,j),Ge=Se===null?i:Se;(h(p,Ge,i,pe)||le.timescale!==p.timescale&&s)&&(le.initPTS=Ge-i,p&&p.timescale===1&&b.warn(`Adjusting initPTS by ${le.initPTS-p.baseTime}`),this.initPTS=p={baseTime:le.initPTS,timescale:1});const pt=e?Ge-p.baseTime/p.timescale:E,mt=pt+pe;wn(ie,j,p.baseTime/p.timescale),pe>0?this.lastEndTime=mt:(b.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Gt=!!ie.audio,wt=!!ie.video;let hn="";Gt&&(hn+="audio"),wt&&(hn+="video");const Ht={data1:j,startPTS:pt,startDTS:pt,endPTS:mt,endDTS:mt,type:hn,hasAudio:Gt,hasVideo:wt,nb:1,dropped:0};return D.audio=Ht.type==="audio"?Ht:void 0,D.video=Ht.type!=="audio"?Ht:void 0,D.initSegment=le,D.id3=Ma(n,i,p,p),r.samples.length&&(D.text=eo(r,i,p)),D}}function h(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 d(a,e){const t=a==null?void 0:a.codec;if(t&&t.length>4)return t;if(e===q.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return Qt(t,!1);const n="mp4a.40.5";return b.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${n}"`),n}return b.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let m;try{m=self.performance.now.bind(self.performance)}catch(a){b.debug("Unable to use Performance API on this environment"),m=tt==null?void 0:tt.Date.now}const I=[{demux:Va,remux:l},{demux:rs,remux:Os},{demux:Da,remux:Os},{demux:ha,remux:Os}];I.splice(2,0,{demux:la,remux:Os});class z{constructor(e,t,n,r,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.vendor=r,this.id=i}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=m();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:f}=this;r&&(this.currentTransmuxState=r);const{contiguous:p,discontinuity:E,trackSwitch:D,accurateTimeOffset:j,timeOffset:le,initSegmentChange:ie}=r||u,{audioCodec:pe,videoCodec:Se,defaultInitPts:Ge,duration:pt,initSegmentData:mt}=f,Gt=xe(s,t);if(Gt&&Gt.method==="AES-128"){const bn=this.getDecrypter();if(bn.isSync()){let jn=bn.softwareDecrypt(s,Gt.key.buffer,Gt.iv.buffer);if(n.part>-1&&(jn=bn.flush()),!jn)return i.executeEnd=m(),ke(n);s=new Uint8Array(jn)}else return this.decryptionPromise=bn.webCryptoDecrypt(s,Gt.key.buffer,Gt.iv.buffer).then(jn=>{const an=this.push(jn,null,n);return this.decryptionPromise=null,an}),this.decryptionPromise}const wt=this.needsProbing(E,D);if(wt){const bn=this.configureTransmuxer(s);if(bn)return b.warn(`[transmuxer] ${bn.message}`),this.observer.emit(c.ERROR,c.ERROR,{type:w.MEDIA_ERROR,details:v.FRAG_PARSING_ERROR,fatal:!1,error:bn,reason:bn.message}),i.executeEnd=m(),ke(n)}(E||D||ie||wt)&&this.resetInitSegment(mt,pe,Se,pt,t),(E||ie||wt)&&this.resetInitialTimestamp(Ge),p||this.resetContiguity();const hn=this.transmux(s,Gt,le,j,n),Ht=this.currentTransmuxState;return Ht.contiguous=!0,Ht.discontinuity=!1,Ht.trackSwitch=!1,i.executeEnd=m(),hn}flush(e){const t=e.transmuxing;t.executeStart=m();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:u}=r;if(n){const D=n.flush();D&&s.push(this.push(D,null,e))}const{demuxer:f,remuxer:p}=this;if(!f||!p)return t.executeEnd=m(),[ke(e)];const E=f.flush(u);return je(E)?E.then(D=>(this.flushRemux(s,D,e),s)):(this.flushRemux(s,E,e),s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:u}=t,{accurateTimeOffset:f,timeOffset:p}=this.currentTransmuxState;b.log(`[transmuxer.ts]: Flushed fragment ${n.sn}${n.part>-1?" p: "+n.part:""} of level ${n.level}`);const E=this.remuxer.remux(r,i,s,u,p,f,!0,this.id);e.push({remuxResult:E,chunkMeta:n}),n.transmuxing.executeEnd=m()}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,vendor:i}=this;let s;for(let j=0,le=I.length;j<le;j++){var u;if((u=I[j].demux)!=null&&u.probe(e)){s=I[j];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const f=this.demuxer,p=this.remuxer,E=s.remux,D=s.demux;(!p||!(p instanceof E))&&(this.remuxer=new E(n,t,r,i)),(!f||!(f instanceof D))&&(this.demuxer=new D(n,t,r),this.probe=D.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new ds(this.config)),e}}function xe(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 ke=a=>({remuxResult:{},chunkMeta:a});function je(a){return"then"in a&&a.then instanceof Function}class at{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 vt{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}}var Mt={exports:{}};(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,p,E){this.fn=f,this.context=p,this.once=E||!1}function i(f,p,E,D,j){if(typeof E!="function")throw new TypeError("The listener must be a function");var le=new r(E,D||f,j),ie=t?t+p:p;return f._events[ie]?f._events[ie].fn?f._events[ie]=[f._events[ie],le]:f._events[ie].push(le):(f._events[ie]=le,f._eventsCount++),f}function s(f,p){--f._eventsCount===0?f._events=new n:delete f._events[p]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var p=[],E,D;if(this._eventsCount===0)return p;for(D in E=this._events)e.call(E,D)&&p.push(t?D.slice(1):D);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(E)):p},u.prototype.listeners=function(p){var E=t?t+p:p,D=this._events[E];if(!D)return[];if(D.fn)return[D.fn];for(var j=0,le=D.length,ie=new Array(le);j<le;j++)ie[j]=D[j].fn;return ie},u.prototype.listenerCount=function(p){var E=t?t+p:p,D=this._events[E];return D?D.fn?1:D.length:0},u.prototype.emit=function(p,E,D,j,le,ie){var pe=t?t+p:p;if(!this._events[pe])return!1;var Se=this._events[pe],Ge=arguments.length,pt,mt;if(Se.fn){switch(Se.once&&this.removeListener(p,Se.fn,void 0,!0),Ge){case 1:return Se.fn.call(Se.context),!0;case 2:return Se.fn.call(Se.context,E),!0;case 3:return Se.fn.call(Se.context,E,D),!0;case 4:return Se.fn.call(Se.context,E,D,j),!0;case 5:return Se.fn.call(Se.context,E,D,j,le),!0;case 6:return Se.fn.call(Se.context,E,D,j,le,ie),!0}for(mt=1,pt=new Array(Ge-1);mt<Ge;mt++)pt[mt-1]=arguments[mt];Se.fn.apply(Se.context,pt)}else{var Gt=Se.length,wt;for(mt=0;mt<Gt;mt++)switch(Se[mt].once&&this.removeListener(p,Se[mt].fn,void 0,!0),Ge){case 1:Se[mt].fn.call(Se[mt].context);break;case 2:Se[mt].fn.call(Se[mt].context,E);break;case 3:Se[mt].fn.call(Se[mt].context,E,D);break;case 4:Se[mt].fn.call(Se[mt].context,E,D,j);break;default:if(!pt)for(wt=1,pt=new Array(Ge-1);wt<Ge;wt++)pt[wt-1]=arguments[wt];Se[mt].fn.apply(Se[mt].context,pt)}}return!0},u.prototype.on=function(p,E,D){return i(this,p,E,D,!1)},u.prototype.once=function(p,E,D){return i(this,p,E,D,!0)},u.prototype.removeListener=function(p,E,D,j){var le=t?t+p:p;if(!this._events[le])return this;if(!E)return s(this,le),this;var ie=this._events[le];if(ie.fn)ie.fn===E&&(!j||ie.once)&&(!D||ie.context===D)&&s(this,le);else{for(var pe=0,Se=[],Ge=ie.length;pe<Ge;pe++)(ie[pe].fn!==E||j&&!ie[pe].once||D&&ie[pe].context!==D)&&Se.push(ie[pe]);Se.length?this._events[le]=Se.length===1?Se[0]:Se:s(this,le)}return this},u.prototype.removeAllListeners=function(p){var E;return p?(E=t?t+p:p,this._events[E]&&s(this,E)):(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})(Mt);var sn=Mt.exports,pn=P(sn);class Ln{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(p,E)=>{E=E||{},E.frag=this.frag,E.id=this.id,p===c.ERROR&&(this.error=E.error),this.hls.trigger(p,E)};this.observer=new pn,this.observer.on(c.FRAG_DECRYPTED,s),this.observer.on(c.ERROR,s);const u=un(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},f={mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:u.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(i.workerPath||ba())){try{i.workerPath?(b.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=ra(i.workerPath)):(b.log(`injecting Web Worker for "${t}"`),this.workerContext=na()),this.onwmsg=D=>this.onWorkerMessage(D);const{worker:E}=this.workerContext;E.addEventListener("message",this.onwmsg),E.onerror=D=>{const j=new Error(`${D.message} (${D.filename}:${D.lineno})`);i.enableWorker=!1,b.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:v.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:j})},E.postMessage({cmd:"init",typeSupported:f,vendor:"",id:t,config:JSON.stringify(i)})}catch(E){b.warn(`Error setting up "${t}" Web Worker, fallback to inline`,E),this.resetWorker(),this.error=null,this.transmuxer=new z(this.observer,f,i,"",t)}return}this.transmuxer=new z(this.observer,f,i,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,u,f,p,E){var D,j;p.transmuxing.start=self.performance.now();const{transmuxer:le}=this,ie=s?s.start:i.start,pe=i.decryptdata,Se=this.frag,Ge=!(Se&&i.cc===Se.cc),pt=!(Se&&p.level===Se.level),mt=Se?p.sn-Se.sn:-1,Gt=this.part?p.part-this.part.index:-1,wt=mt===0&&p.id>1&&p.id===(Se==null?void 0:Se.stats.chunkCount),hn=!pt&&(mt===1||mt===0&&(Gt===1||wt&&Gt<=0)),Ht=self.performance.now();(pt||mt||i.stats.parsing.start===0)&&(i.stats.parsing.start=Ht),s&&(Gt||!hn)&&(s.stats.parsing.start=Ht);const bn=!(Se&&((D=i.initSegment)==null?void 0:D.url)===((j=Se.initSegment)==null?void 0:j.url)),jn=new vt(Ge,hn,f,pt,ie,bn);if(!hn||Ge||bn){b.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${p.sn} p: ${p.part} level: ${p.level} id: ${p.id}
|
|
|
discontinuity: ${Ge}
|
|
|
trackSwitch: ${pt}
|
|
|
contiguous: ${hn}
|
|
|
accurateTimeOffset: ${f}
|
|
|
timeOffset: ${ie}
|
|
|
initSegmentChange: ${bn}`);const an=new at(n,r,t,u,E);this.configureTransmuxer(an)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:pe,chunkMeta:p,state:jn},e instanceof ArrayBuffer?[e]:[]);else if(le){const an=le.push(e,pe,p,jn);je(an)?(le.async=!0,an.then(xn=>{this.handleTransmuxComplete(xn)}).catch(xn=>{this.transmuxerError(xn,p,"transmuxer-interface push error")})):(le.async=!1,this.handleTransmuxComplete(an))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let n=t.flush(e);je(n)||t.async?(je(n)||(n=Promise.resolve(n)),n.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")})):this.handleFlushResult(n,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){b.warn(`worker message received with no ${t?"event name":"data"}`);return}const n=this.hls;if(this.hls)switch(t.event){case"init":{var r;const i=(r=this.workerContext)==null?void 0:r.objectURL;i&&self.URL.revokeObjectURL(i);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":b[t.data.logType]&&b[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Xn=100;class mr extends bs{constructor(e,t,n){super(e,t,n,"[audio-stream-controller]",ze.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(c.ERROR,this.onError,this),e.on(c.BUFFER_RESET,this.onBufferReset,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(c.ERROR,this.onError,this),e.off(c.BUFFER_RESET,this.onBufferReset,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n==="main"){const s=t.cc;this.initPTS[t.cc]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}`),this.videoTrackCC=s,this.state===tn.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=tn.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(Xn),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=tn.IDLE):(this.loadedmetadata=!1,this.state=tn.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case tn.IDLE:this.doTickIdle();break;case tn.WAITING_TRACK:{var e;const{levels:n,trackId:r}=this,i=n==null||(e=n[r])==null?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=tn.WAITING_INIT_PTS}break}case tn.FRAG_LOADING_WAITING_RETRY:{var t;const n=performance.now(),r=this.retryDate;if(!r||n>=r||(t=this.media)!=null&&t.seeking){const{levels:i,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((i==null?void 0:i[s])||null),this.state=tn.IDLE}break}case tn.WAITING_INIT_PTS:{const n=this.waitingData;if(n){const{frag:r,part:i,cache:s,complete:u}=n;if(this.initPTS[r.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=tn.FRAG_LOADING;const f=s.flush(),p={frag:r,part:i,payload:f,networkDetails:null};this._handleFragmentLoadProgress(p),u&&super._handleFragmentLoadComplete(p)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${r.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const f=this.getLoadPosition(),p=Or.bufferInfo(this.mediaBuffer,f,this.config.maxBufferHole);Fi(p.end,this.config.maxFragLookUpTolerance,r)<0&&(this.log(`Waiting fragment cc (${r.cc}) @ ${r.start} cancelled because another fragment at ${p.end} is needed`),this.clearWaitingFragment())}}else this.state=tn.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=tn.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:n,trackId:r}=this,i=e.config;if(!this.buffering||!n&&(this.startFragRequested||!i.startFragPrefetch)||!(t!=null&&t[r]))return;const s=t[r],u=s.details;if(!u||u.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(u)){this.state=tn.WAITING_TRACK;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,q.AUDIO,ze.AUDIO));const p=this.getFwdBufferInfo(f,ze.AUDIO);if(p===null)return;if(!this.switchingTrack&&this._streamEnded(p,u)){e.trigger(c.BUFFER_EOS,{type:"audio"}),this.state=tn.ENDED;return}const E=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,ze.MAIN),D=p.len,j=this.getMaxBufferLength(E==null?void 0:E.len),le=u.fragments,ie=le[0].start,pe=this.getLoadPosition(),Se=this.flushing?pe:p.end;if(this.switchingTrack&&n){const Gt=pe;u.PTSKnown&&Gt<ie&&(p.end>ie||p.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=ie+.05)}if(D>=j&&!this.switchingTrack&&Se<le[le.length-1].start)return;let Ge=this.getNextFragment(Se,u),pt=!1;if(Ge&&this.isLoopLoading(Ge,Se)&&(pt=!!Ge.gap,Ge=this.getNextFragmentLoopLoading(Ge,u,p,ze.MAIN,j)),!Ge){this.bufferFlushed=!0;return}const mt=E&&Ge.start>E.end+u.targetduration;if(mt||!(E!=null&&E.len)&&p.len){const Gt=this.getAppendedFrag(Ge.start,ze.MAIN);if(Gt===null||(pt||(pt=!!Gt.gap||!!mt&&E.len===0),mt&&!pt||pt&&p.nextStart&&p.nextStart<Gt.end))return}this.loadFragment(Ge,s,Se)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new kr(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.setInterval(Xn):this.resetTransmuxer(),n?(this.switchingTrack=t,this.state=tn.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=tn.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(c.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var n;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:r}=this,{details:i,id:s}=t;if(!r){this.warn(`Audio tracks were reset while loading level ${s}`);return}this.log(`Audio track ${s} loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const u=r[s];let f=0;if(i.live||(n=u.details)!=null&&n.live){this.checkLiveUpdate(i);const E=this.mainDetails;if(i.deltaUpdateFailed||!E)return;if(!u.details&&i.hasProgramDateTime&&E.hasProgramDateTime)zi(i,E),f=i.fragments[0].start;else{var p;f=this.alignPlaylists(i,u.details,(p=this.levelLastLoaded)==null?void 0:p.details)}}u.details=i,this.levelLastLoaded=u,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,f),this.state===tn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=tn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,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 p=f[u];if(!p){this.warn("Audio track is undefined on fragment load progress");return}const E=p.details;if(!E){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const D=s.defaultAudioCodec||p.audioCodec||"mp4a.40.2";let j=this.transmuxer;j||(j=this.transmuxer=new Ln(this.hls,ze.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const le=this.initPTS[n.cc],ie=(t=n.initSegment)==null?void 0:t.data;if(le!==void 0){const Se=r?r.index:-1,Ge=Se!==-1,pt=new gs(n.level,n.sn,n.stats.chunkCount,i.byteLength,Se,Ge);j.push(i,ie,D,"",n,r,E.totalduration,!1,pt,le)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${E.startSN} ,${E.endSN}],track ${u}`);const{cache:pe}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new ta,complete:!1};pe.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=tn.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==ze.AUDIO){if(!this.loadedmetadata&&n.type===ze.MAIN){const i=this.videoBuffer||this.media;i&&Or.getBuffered(i).length&&(this.loadedmetadata=!0)}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(n.sn!=="initSegment"){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(c.AUDIO_TRACK_SWITCHED,V({},i)))}this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=tn.ERROR;return}switch(t.details){case v.FRAG_GAP:case v.FRAG_PARSING_ERROR:case v.FRAG_DECRYPT_ERROR:case v.FRAG_LOAD_ERROR:case v.FRAG_LOAD_TIMEOUT:case v.KEY_LOAD_ERROR:case v.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ze.AUDIO,t);break;case v.AUDIO_TRACK_LOAD_ERROR:case v.AUDIO_TRACK_LOAD_TIMEOUT:case v.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===tn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===Jt.AUDIO_TRACK&&(this.state=tn.IDLE);break;case v.BUFFER_APPEND_ERROR:case v.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===v.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case v.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==q.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==q.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===tn.ENDED&&(this.state=tn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,ze.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:p,level:E}=u,{details:D}=E,{audio:j,text:le,id3:ie,initSegment:pe}=i;if(this.fragContextChanged(f)||!D){this.fragmentTracker.removeFragment(f);return}if(this.state=tn.PARSING,this.switchingTrack&&j&&this.completeAudioSwitch(this.switchingTrack),pe!=null&&pe.tracks){const Se=f.initSegment||f;this._bufferInitSegment(E,pe.tracks,Se,s),r.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:Se,id:n,tracks:pe.tracks})}if(j){const{startPTS:Se,endPTS:Ge,startDTS:pt,endDTS:mt}=j;p&&(p.elementaryStreams[q.AUDIO]={startPTS:Se,endPTS:Ge,startDTS:pt,endDTS:mt}),f.setElementaryStreamInfo(q.AUDIO,Se,Ge,pt,mt),this.bufferFragmentData(j,f,p,s)}if(ie!=null&&(t=ie.samples)!=null&&t.length){const Se=o({id:n,frag:f,details:D},ie);r.trigger(c.FRAG_PARSING_METADATA,Se)}if(le){const Se=o({id:n,frag:f,details:D},le);r.trigger(c.FRAG_PARSING_USERDATA,Se)}}_bufferInitSegment(e,t,n,r){if(this.state!==tn.PARSING)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.id="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(c.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(c.BUFFER_APPENDING,f)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||r===Ir.NOT_LOADED||r===Ir.PARTIAL){var i;if(e.sn==="initSegment")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=tn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&zi(t.details,s)}else this.startFragRequested=!0,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;Ai({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:u},e,nr)||(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(c.AUDIO_TRACK_SWITCHED,V({},e))}}function gr(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!pr(a[t].attrs,e[t].attrs))return!1;return!0}function pr(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 jr(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Kr extends Sr{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(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(c.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(j=>!n||n.indexOf(j.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(j=>j.default)&&(this.selectDefaultTrack=!1),u.forEach((j,le)=>{j.id=le});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const j=Ei(f,u,nr);if(j>-1)i=u[j];else{const le=Ei(f,this.tracks);i=this.tracks[le]}}let p=this.findTrackId(i);p===-1&&i&&(p=this.findTrackId(null));const E={audioTracks:u};this.log(`Updating audio tracks, ${u.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(c.AUDIO_TRACKS_UPDATED,E);const D=this.trackId;if(p!==-1&&D===-1)this.setAudioTrack(p);else if(u.length&&D===-1){var s;const j=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(j.message),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:j})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===Jt.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Ai(e,r,nr))return r;const i=Ei(e,this.tracksInGroup,nr);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=li(e,t.levels,n,s,nr);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=Ei(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.clearTimer(),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(c.AUDIO_TRACK_SWITCHING,V({},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||Ai(e,r,nr)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let p=0;p<t.length;p++){const E=t[p];if(Ai({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f},E,nr))return p}for(let p=0;p<t.length;p++){const E=t[p];if(pr(e.attrs,E.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return p}for(let p=0;p<t.length;p++){const E=t[p];if(pr(e.attrs,E.attrs,["LANGUAGE"]))return p}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`loading audio-track playlist ${n} "${t.name}" lang:${t.lang} group:${r}`),this.clearTimer(),this.hls.trigger(c.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}}const qr=500;class ti extends bs{constructor(e,t,n){super(e,t,n,"[subtitle-stream-controller]",ze.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.ERROR,this.onError,this),e.on(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(c.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(c.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.ERROR,this.onError,this),e.off(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(c.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(c.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=tn.IDLE,this.setInterval(qr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragPrevious=n,this.state=tn.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=n.start;for(let p=0;p<i.length;p++)if(u>=i[p].start&&u<=i[p].end){s=i[p];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)}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,ze.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===ze.MAIN){var n;(n=this.media)!=null&&n.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===ze.SUBTITLE&&(t.details===v.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==tn.STOPPED&&(this.state=tn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&gr(this.levels,t)){this.levels=t.map(n=>new kr(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new kr(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ze.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.setInterval(qr)}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 p=0;if(s.live||(n=f.details)!=null&&n.live){const D=this.mainDetails;if(s.deltaUpdateFailed||!D)return;const j=D.fragments[0];if(!f.details)s.hasProgramDateTime&&D.hasProgramDateTime?(zi(s,D),p=s.fragments[0].start):j&&(p=j.start,dn(s,p));else{var E;p=this.alignPlaylists(s,f.details,(E=this.levelLastLoaded)==null?void 0:E.details),p===0&&j&&(p=j.start,dn(s,p))}}f.details=s,this.levelLastLoaded=f,u===r&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,p),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===tn.IDLE&&(xi(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&&r.method==="AES-128"){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer).catch(u=>{throw i.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:t}),u}).then(u=>{const f=performance.now();i.trigger(c.FRAG_DECRYPTED,{frag:t,payload:u,stats:{tstart:s,tdecrypt:f}})}).catch(u=>{this.warn(`${u.name}: ${u.message}`),this.state=tn.IDLE})}}doTick(){if(!this.media){this.state=tn.IDLE;return}if(this.state===tn.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details)return;const{config:r}=this,i=this.getLoadPosition(),s=Or.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:u,len:f}=s,p=this.getFwdBufferInfo(this.media,ze.MAIN),E=n.details,D=this.getMaxBufferLength(p==null?void 0:p.len)+E.levelTargetDuration;if(f>D)return;const j=E.fragments,le=j.length,ie=E.edge;let pe=null;const Se=this.fragPrevious;if(u<ie){const Ge=r.maxFragLookUpTolerance,pt=u>ie-Ge?0:Ge;pe=xi(Se,j,Math.max(j[0].start,u),pt),!pe&&Se&&Se.start<j[0].start&&(pe=j[0])}else pe=j[le-1];if(!pe)return;if(pe=this.mapToInitFragWhenRequired(pe),pe.sn!=="initSegment"){const Ge=pe.sn-E.startSN,pt=j[Ge-1];pt&&pt.cc===pe.cc&&this.fragmentTracker.getState(pt)===Ir.NOT_LOADED&&(pe=pt)}this.fragmentTracker.getState(pe)===Ir.NOT_LOADED&&this.loadFragment(pe,n,u)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,n){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,n))}get mediaBufferTimeRanges(){return new ai(this.tracksBuffered[this.currentTrackId]||[])}}class ai{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)}}}}class Ri extends Sr{constructor(e){super(e,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=en(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(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(c.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),en(this.media.textTracks).forEach(t=>{sr(t)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id: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(E=>!n||n.indexOf(E.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(E=>E.default)&&(this.selectDefaultTrack=!1),s.forEach((E,D)=>{E.id=D});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const E=Ei(u,s);if(E>-1)i=s[E];else{const D=Ei(u,this.tracks);i=this.tracks[D]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const p={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(c.SUBTITLE_TRACKS_UPDATED,p),f!==-1&&this.trackId===-1&&this.setSubtitleTrack(f)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}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||Ai(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(pr(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(pr(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(jr(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===Jt.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&Ai(e,n))return n;const r=Ei(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=Ei(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`Loading subtitle playlist for id ${n}`),this.hls.trigger(c.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=en(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>jr(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||!R(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(c.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:p,url:E}=r;this.hls.trigger(c.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:p,url:E});const D=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(D)}}class Si{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,n){const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const n=new Promise(i=>{t=i}),r={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(r,e),n}executeNext(e){const t=this.queues[e];if(t.length){const n=t[0];try{n.execute()}catch(r){b.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${r}`),n.onError(r);const i=this.buffers[e];i!=null&&i.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const zr=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class Ui{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=n=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:n,mediaSource:r}=this;this.log("Media source opened"),n&&(n.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(c.MEDIA_ATTACHED,{media:n,mediaSource:r})),r&&r.removeEventListener("sourceopen",this._onMediaSourceOpen),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&&b.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=zn(un(e.config.preferManagedMediaSource)),this.log=b.log.bind(b,t),this.warn=b.warn.bind(b,t),this.error=b.error.bind(b,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.BUFFER_RESET,this.onBufferReset,this),e.on(c.BUFFER_APPENDING,this.onBufferAppending,this),e.on(c.BUFFER_CODECS,this.onBufferCodecs,this),e.on(c.BUFFER_EOS,this.onBufferEos,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(c.FRAG_PARSED,this.onFragParsed,this),e.on(c.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.BUFFER_RESET,this.onBufferReset,this),e.off(c.BUFFER_APPENDING,this.onBufferAppending,this),e.off(c.BUFFER_CODECS,this.onBufferCodecs,this),e.off(c.BUFFER_EOS,this.onBufferEos,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(c.FRAG_PARSED,this.onFragParsed,this),e.off(c.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new Si(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const n=this.media=t.media,r=un(this.appendSource);if(n&&r){var i;const s=this.mediaSource=new r;this.log(`created media source: ${(i=s.constructor)==null?void 0:i.name}`),s.addEventListener("sourceopen",this._onMediaSourceOpen),s.addEventListener("sourceended",this._onMediaSourceEnded),s.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.addEventListener("startstreaming",this._onStartStreaming),s.addEventListener("endstreaming",this._onEndStreaming));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,qi(n),Gi(n,u),n.load()}catch(f){n.src=u}else n.src=u;n.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:n}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(r){this.warn(`onMediaDetaching: ${r.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),this.mediaSrc===n?(e.removeAttribute("src"),this.appendSource&&qi(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(c.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var n;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(n=this.mediaSource)!=null&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(r){this.warn(`onBufferReset ${e}`,r)}}onBufferCodecs(e,t){const n=this.getSourceBufferTypes().length,r=Object.keys(t);if(r.forEach(s=>{if(n){const f=this.tracks[s];if(f&&typeof f.buffer.changeType=="function"){var u;const{id:p,codec:E,levelCodec:D,container:j,metadata:le}=t[s],ie=nn(f.codec,f.levelCodec),pe=ie==null?void 0:ie.replace(zr,"$1");let Se=nn(E,D);const Ge=(u=Se)==null?void 0:u.replace(zr,"$1");if(Se&&pe!==Ge){s.slice(0,5)==="audio"&&(Se=Qt(Se,this.appendSource));const pt=`${j};codecs=${Se}`;this.appendChangeType(s,pt),this.log(`switching codec ${ie} to ${Se}`),this.tracks[s]={buffer:f.buffer,codec:E,container:j,levelCodec:D,metadata:le,id:p}}}}else this.pendingTracks[s]=t[s]}),n)return;const i=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==i&&(this.log(`${i} bufferCodec event(s) expected ${r.join(",")}`),this.bufferCodecEventsExpected=i),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:n}=this,r={execute:()=>{const i=this.sourceBuffer[e];i&&(this.log(`changing ${e} sourceBuffer type to ${t}`),i.changeType(t)),n.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:i=>{this.warn(`Failed to change ${e} SourceBuffer type`,i)}};n.append(r,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:n,operationQueue:r,tracks:i}=this,{data:s,type:u,frag:f,part:p,chunkMeta:E}=t,D=E.buffering[u],j=self.performance.now();D.start=j;const le=f.stats.buffering,ie=p?p.stats.buffering:null;le.start===0&&(le.start=j),ie&&ie.start===0&&(ie.start=j);const pe=i.audio;let Se=!1;u==="audio"&&(pe==null?void 0:pe.container)==="audio/mpeg"&&(Se=!this.lastMpegAudioChunk||E.id===1||this.lastMpegAudioChunk.sn!==E.sn,this.lastMpegAudioChunk=E);const Ge=f.start,pt={execute:()=>{if(D.executeStart=self.performance.now(),Se){const mt=this.sourceBuffer[u];if(mt){const Gt=Ge-mt.timestampOffset;Math.abs(Gt)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Ge} (delta: ${Gt}) sn: ${f.sn})`),mt.timestampOffset=Ge)}}this.appendExecutor(s,u)},onStart:()=>{},onComplete:()=>{const mt=self.performance.now();D.executeEnd=D.end=mt,le.first===0&&(le.first=mt),ie&&ie.first===0&&(ie.first=mt);const{sourceBuffer:Gt}=this,wt={};for(const hn in Gt)wt[hn]=Or.getBuffered(Gt[hn]);this.appendErrors[u]=0,u==="audio"||u==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(c.BUFFER_APPENDED,{type:u,frag:f,part:p,chunkMeta:E,parent:f.type,timeRanges:wt})},onError:mt=>{const Gt={type:w.MEDIA_ERROR,parent:f.type,details:v.BUFFER_APPEND_ERROR,sourceBufferName:u,frag:f,part:p,chunkMeta:E,error:mt,err:mt,fatal:!1};if(mt.code===DOMException.QUOTA_EXCEEDED_ERR)Gt.details=v.BUFFER_FULL_ERROR;else{const wt=++this.appendErrors[u];Gt.details=v.BUFFER_APPEND_ERROR,this.warn(`Failed ${wt}/${n.config.appendErrorMaxRetry} times to append segment in "${u}" sourceBuffer`),wt>=n.config.appendErrorMaxRetry&&(Gt.fatal=!0)}n.trigger(c.ERROR,Gt)}};r.append(pt,u,!!this.pendingTracks[u])}onBufferFlushing(e,t){const{operationQueue:n}=this,r=i=>({execute:this.removeExecutor.bind(this,i,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(c.BUFFER_FLUSHED,{type:i})},onError:s=>{this.warn(`Failed to remove from ${i} SourceBuffer`,s)}});t.type?n.append(r(t.type),t.type):this.getSourceBufferTypes().forEach(i=>{n.append(r(i),i)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[q.AUDIOVIDEO]?i.push("audiovideo"):(s[q.AUDIO]&&i.push("audio"),s[q.VIDEO]&&i.push("video"));const u=()=>{const f=self.performance.now();n.stats.buffering.end=f,r&&(r.stats.buffering.end=f);const p=r?r.stats:n.stats;this.hls.trigger(c.FRAG_BUFFERED,{frag:n,part:r,stats:p,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()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((r,i)=>{const s=this.sourceBuffer[i];return s&&(!t.type||t.type===i)&&(s.ending=!0,s.ended||(s.ended=!0,this.log(`${i} sourceBuffer now EOS`))),r&&!!(!s||s.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(i=>{const s=this.sourceBuffer[i];s&&(s.ending=!1)});const{mediaSource:r}=this;if(!r||r.readyState!=="open"){r&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${r.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),r.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.getSourceBufferTypes().length)return;const i=e.config,s=n.currentTime,u=t.levelTargetDuration,f=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(R(f)&&f>0){const p=Math.max(f,u),E=Math.floor(s/u)*u-p;this.flushBackBuffer(s,u,E)}if(R(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const p=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),E=Math.max(p,u),D=Math.floor(s/u)*u+E;this.flushFrontBuffer(s,u,D)}}flushBackBuffer(e,t,n){const{details:r,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(u=>{const f=i[u];if(f){const p=Or.getBuffered(f);if(p.length>0&&n>p.start(0)){if(this.hls.trigger(c.BACK_BUFFER_REACHED,{bufferEnd:n}),r!=null&&r.live)this.hls.trigger(c.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(f.ended&&p.end(p.length-1)-e<t*2){this.log(`Cannot flush ${u} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:u})}}})}flushFrontBuffer(e,t,n){const{sourceBuffer:r}=this;this.getSourceBufferTypes().forEach(s=>{const u=r[s];if(u){const f=Or.getBuffered(u),p=f.length;if(p<2)return;const E=f.start(p-1),D=f.end(p-1);if(n>E||e>=E&&e<=D)return;if(u.ended&&e-D<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset:E,endOffset:1/0,type:s})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:n,mediaSource:r}=this,i=e.fragments[0].start+e.totalduration,s=n.duration,u=R(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(r.duration=1/0,this.updateSeekableRange(e)):(i>u&&i>s||!R(s))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),r.duration=i)}updateSeekableRange(e){const t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,n[0].start),s=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${s}.`),t.setLiveSeekableRange(i,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:n}=this,r=Object.keys(n).length;if(r&&(!e||r===2||"audiovideo"in n)){this.createSourceBuffers(n),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(c.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(s=>{t.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:s,reason:s.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(const i in e)if(!t[i]){var r;const s=e[i];if(!s)throw Error(`source buffer exists for track ${i}, however track does not`);let u=((r=s.levelCodec)==null?void 0:r.indexOf(","))===-1?s.levelCodec:s.codec;u&&i.slice(0,5)==="audio"&&(u=Qt(u,this.appendSource));const f=`${s.container};codecs=${u}`;this.log(`creating sourceBuffer(${f})`);try{const p=t[i]=n.addSourceBuffer(f),E=i;this.addBufferListener(E,"updatestart",this._onSBUpdateStart),this.addBufferListener(E,"updateend",this._onSBUpdateEnd),this.addBufferListener(E,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(E,"bufferedchange",(D,j)=>{const le=j.removedRanges;le!=null&&le.length&&this.hls.trigger(c.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:p,codec:u,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(p){this.error(`error while trying to add sourceBuffer: ${p.message}`),this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:p,sourceBufferName:i,mimeType:f})}}}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{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:n}=this;n.current(e).onComplete(),n.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(c.ERROR,{type:w.MEDIA_ERROR,details:v.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.operationQueue.current(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i,operationQueue:s,sourceBuffer:u}=this,f=u[e];if(!r||!i||!f){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(e);return}const p=R(r.duration)?r.duration:1/0,E=R(i.duration)?i.duration:1/0,D=Math.max(0,t),j=Math.min(n,p,E);j>D&&(!f.ending||f.ended)?(f.ended=!1,this.log(`Removing [${D},${j}] from the ${e} SourceBuffer`),f.remove(D,j)):s.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.sourceBuffer[t];if(!n){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}n.ended=!1,n.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:n}=this,r=t.map(i=>n.appendBlocker(i));Promise.all(r).then(()=>{e(),t.forEach(i=>{const s=this.sourceBuffer[i];s!=null&&s.updating||n.shiftAndExecuteNext(i)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,n){const r=this.sourceBuffer[e];if(!r)return;const i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(n=>{t.removeEventListener(n.event,n.listener)})}}function qi(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function Gi(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}const Ii={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},Ji=a=>String.fromCharCode(Ii[a]||a),hi=15,Zi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Ss={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Cs={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Ts={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ys=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Xs{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;b.log(`${this.time} [${e}] ${n}`)}}}const ms=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Na{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 no{constructor(){this.uchar=" ",this.penState=new Na}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 pa{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Na,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Zi;t++)this.chars.push(new no);this.logger=e}equals(e){for(let t=0;t<Zi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Zi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Zi;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>Zi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Zi)}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=Ji(e);if(this.pos>=Zi){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<Zi;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<Zi;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 Qs{constructor(e){this.rows=[],this.currRow=hi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<hi;t++)this.rows.push(new pa(e));this.logger=e}reset(){for(let e=0;e<hi;e++)this.rows[e].clear();this.currRow=hi-1}equals(e){let t=!0;for(let n=0;n<hi;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<hi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<hi;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let u=0;u<hi;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 p=0;p<this.nrRollUpRows;p++)this.rows[t-this.nrRollUpRows+p+1].copy(s.rows[i+p])}}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 = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<hi;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 ga{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 Qs(n),this.nonDisplayedMemory=new Qs(n),this.lastOutputScreen=new Qs(n),this.currRollUpRow=this.displayedMemory.rows[hi-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[hi-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: "+JSON.stringify(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class va{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Jo(),this.logger=void 0;const r=this.logger=new Xs;this.channels=[null,new ga(e,t,r),new ga(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,()=>"["+ms([t[n],t[n+1]])+"] -> ("+ms([r,i])+")");const f=this.cmdHistory;if(r>=16&&r<=31){if(qo(r,i,f)){ps(null,null,f),this.logger.log(3,()=>"Repeated command ("+ms([r,i])+") is dropped");continue}ps(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 ps(null,null,f);if(!s&&(u=this.parseChars(r,i),u)){const E=this.currentChannel;E&&E>0?this.channels[E].insertChars(u):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!u&&this.logger.log(2,()=>"Couldn't parse cleaned data "+ms([r,i])+" orig: "+ms([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 ("+ms([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?to[e]:Cs[e]:n=s===1?Ss[e]:Ts[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 '"+Ji(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 = "+ms(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=Ys[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()}ps(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 ps(a,e,t){t.a=a,t.b=e}function qo(a,e,t){return t.a===a&&t.b===e}function Jo(){return{a:null,b:null}}class Fa{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}}var ro=function(){if(tt!=null&&tt.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 p=f.toLowerCase();return~u.indexOf(p)?p:!1}function n(u){return t(a,u)}function r(u){return t(e,u)}function i(u,...f){let p=1;for(;p<arguments.length;p++){const E=arguments[p];for(const D in E)u[D]=E[D]}return u}function s(u,f,p){const E=this,D={enumerable:!0};E.hasBeenReset=!1;let j="",le=!1,ie=u,pe=f,Se=p,Ge=null,pt="",mt=!0,Gt="auto",wt="start",hn=50,Ht="middle",bn=50,jn="middle";Object.defineProperty(E,"id",i({},D,{get:function(){return j},set:function(an){j=""+an}})),Object.defineProperty(E,"pauseOnExit",i({},D,{get:function(){return le},set:function(an){le=!!an}})),Object.defineProperty(E,"startTime",i({},D,{get:function(){return ie},set:function(an){if(typeof an!="number")throw new TypeError("Start time must be set to a number.");ie=an,this.hasBeenReset=!0}})),Object.defineProperty(E,"endTime",i({},D,{get:function(){return pe},set:function(an){if(typeof an!="number")throw new TypeError("End time must be set to a number.");pe=an,this.hasBeenReset=!0}})),Object.defineProperty(E,"text",i({},D,{get:function(){return Se},set:function(an){Se=""+an,this.hasBeenReset=!0}})),Object.defineProperty(E,"region",i({},D,{get:function(){return Ge},set:function(an){Ge=an,this.hasBeenReset=!0}})),Object.defineProperty(E,"vertical",i({},D,{get:function(){return pt},set:function(an){const xn=n(an);if(xn===!1)throw new SyntaxError("An invalid or illegal string was specified.");pt=xn,this.hasBeenReset=!0}})),Object.defineProperty(E,"snapToLines",i({},D,{get:function(){return mt},set:function(an){mt=!!an,this.hasBeenReset=!0}})),Object.defineProperty(E,"line",i({},D,{get:function(){return Gt},set:function(an){if(typeof an!="number"&&an!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Gt=an,this.hasBeenReset=!0}})),Object.defineProperty(E,"lineAlign",i({},D,{get:function(){return wt},set:function(an){const xn=r(an);if(!xn)throw new SyntaxError("An invalid or illegal string was specified.");wt=xn,this.hasBeenReset=!0}})),Object.defineProperty(E,"position",i({},D,{get:function(){return hn},set:function(an){if(an<0||an>100)throw new Error("Position must be between 0 and 100.");hn=an,this.hasBeenReset=!0}})),Object.defineProperty(E,"positionAlign",i({},D,{get:function(){return Ht},set:function(an){const xn=r(an);if(!xn)throw new SyntaxError("An invalid or illegal string was specified.");Ht=xn,this.hasBeenReset=!0}})),Object.defineProperty(E,"size",i({},D,{get:function(){return bn},set:function(an){if(an<0||an>100)throw new Error("Size must be between 0 and 100.");bn=an,this.hasBeenReset=!0}})),Object.defineProperty(E,"align",i({},D,{get:function(){return jn},set:function(an){const xn=r(an);if(!xn)throw new SyntaxError("An invalid or illegal string was specified.");jn=xn,this.hasBeenReset=!0}})),E.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class el{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function xo(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 tl{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 Eo(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 io=new ro(0,0,""),Ba=io.align==="middle"?"middle":"center";function nl(a,e,t){const n=a;function r(){const u=xo(a);if(u===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),u}function i(u,f){const p=new tl;Eo(u,function(j,le){let ie;switch(j){case"region":for(let pe=t.length-1;pe>=0;pe--)if(t[pe].id===le){p.set(j,t[pe].region);break}break;case"vertical":p.alt(j,le,["rl","lr"]);break;case"line":ie=le.split(","),p.integer(j,ie[0]),p.percent(j,ie[0])&&p.set("snapToLines",!1),p.alt(j,ie[0],["auto"]),ie.length===2&&p.alt("lineAlign",ie[1],["start",Ba,"end"]);break;case"position":ie=le.split(","),p.percent(j,ie[0]),ie.length===2&&p.alt("positionAlign",ie[1],["start",Ba,"end","line-left","line-right","auto"]);break;case"size":p.percent(j,le);break;case"align":p.alt(j,le,["start",Ba,"end","left","right"]);break}},/:/,/\s/),f.region=p.get("region",null),f.vertical=p.get("vertical","");let E=p.get("line","auto");E==="auto"&&io.line===-1&&(E=-1),f.line=E,f.lineAlign=p.get("lineAlign","start"),f.snapToLines=p.get("snapToLines",!0),f.size=p.get("size",100),f.align=p.get("align",Ba);let D=p.get("position","auto");D==="auto"&&io.position===50&&(D=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=D}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 wo(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class rl{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new el,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=wo(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){Eo(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 ro(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{nl(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 il=/\r\n|\n\r|\n|\r/g,so=function(e,t,n=0){return e.slice(n,n+t.length)===t},sl=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(!R(t)||!R(n)||!R(r)||!R(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t},ao=function(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()};function oo(a,e,t){return ao(a.toString())+ao(e.toString())+ao(t)}const al=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 ol(a,e,t,n,r,i,s){const u=new rl,f=We(new Uint8Array(a)).trim().replace(il,`
|
|
|
`).split(`
|
|
|
`),p=[],E=e?Oa(e.baseTime,e.timescale):0;let D="00:00.000",j=0,le=0,ie,pe=!0;u.oncue=function(Se){const Ge=t[n];let pt=t.ccOffset;const mt=(j-E)/9e4;if(Ge!=null&&Ge.new&&(le!==void 0?pt=t.ccOffset=Ge.start:al(t,n,mt)),mt){if(!e){ie=new Error("Missing initPTS for VTT MPEGTS");return}pt=mt-t.presentationOffset}const Gt=Se.endTime-Se.startTime,wt=Mi((Se.startTime+pt-le)*9e4,r*9e4)/9e4;Se.startTime=Math.max(wt,0),Se.endTime=Math.max(wt+Gt,0);const hn=Se.text.trim();Se.text=decodeURIComponent(encodeURIComponent(hn)),Se.id||(Se.id=oo(Se.startTime,Se.endTime,hn)),Se.endTime>0&&p.push(Se)},u.onparsingerror=function(Se){ie=Se},u.onflush=function(){if(ie){s(ie);return}i(p)},f.forEach(Se=>{if(pe)if(so(Se,"X-TIMESTAMP-MAP=")){pe=!1,Se.slice(16).split(",").forEach(Ge=>{so(Ge,"LOCAL:")?D=Ge.slice(6):so(Ge,"MPEGTS:")&&(j=parseInt(Ge.slice(7)))});try{le=sl(D)/1e3}catch(Ge){ie=Ge}return}else Se===""&&(pe=!1);u.parse(Se+`
|
|
|
`)}),u.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Co=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function To(a,e,t,n){const r=Me(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(u=>We(u)),s=qa(e.baseTime,1,e.timescale);try{i.forEach(u=>t(ul(u,s)))}catch(u){n(u)}}function ul(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((D,j)=>(D[j]=r.getAttribute(`ttp:${j}`)||i[j],D),{}),u=r.getAttribute("xml:space")!=="preserve",f=Ao(uo(r,"styling","style")),p=Ao(uo(r,"layout","region")),E=uo(r,"body","[begin]");return[].map.call(E,D=>{const j=Do(D,u);if(!j||!D.hasAttribute("begin"))return null;const le=ho(D.getAttribute("begin"),s),ie=ho(D.getAttribute("dur"),s);let pe=ho(D.getAttribute("end"),s);if(le===null)throw Ro(D);if(pe===null){if(ie===null)throw Ro(D);pe=le+ie}const Se=new ro(le-e,pe-e,j);Se.id=oo(Se.startTime,Se.endTime,Se.text);const Ge=p[D.getAttribute("region")],pt=f[D.getAttribute("style")],mt=cl(Ge,pt,f),{textAlign:Gt}=mt;if(Gt){const wt=ll[Gt];wt&&(Se.lineAlign=wt),Se.align=Gt}return o(Se,mt),Se}).filter(D=>D!==null)}function uo(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Ao(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Do(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?Do(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function cl(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 p=co(e,n,f)||co(a,n,f)||co(r,n,f);return p&&(u[f]=p),u},{})}function co(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Ro(a){return new Error(`Could not parse ttml timestamp ${a}`)}function ho(a,e){if(!a)return null;let t=xo(a);return t===null&&(So.test(a)?t=hl(a,e):Co.test(a)&&(t=dl(a,e))),t}function hl(a,e){const t=So.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 dl(a,e){const t=Co.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 fl{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=Oo(),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(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(c.FRAG_LOADING,this.onFragLoading,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this),e.on(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(c.FRAG_LOADING,this.onFragLoading,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this),e.off(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Fa(this,"textTrack1"),t=new Fa(this,"textTrack2"),n=new Fa(this,"textTrack3"),r=new Fa(this,"textTrack4");this.cea608Parser1=new va(1,e,t),this.cea608Parser2=new va(3,n,r)}}addCues(e,t,n,r,i){let s=!1;for(let u=i.length;u--;){const f=i[u],p=ml(f[0],f[1],t,n);if(p>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],n),s=!0,p/(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(c.CUES_PARSED,{type:"captions",cues:u,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n==="main"&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(u=>{this.onFragLoaded(c.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(Lo(i,{name:e,lang:t,attrs:{}}))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,sr(n[e]),Yn(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(c.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,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{sr(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Oo(),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++)sr(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===lo);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(gr(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,u=s?en(s.textTracks):null;if(this.tracks.forEach((f,p)=>{let E;if(u){let D=null;for(let j=0;j<u.length;j++)if(u[j]&&Lo(u[j],f)){D=u[j],u[j]=null;break}D&&(E=D)}if(E)sr(E);else{const D=Io(f);E=this.createTextTrack(D,f.name,f.lang),E&&(E.mode="disabled")}E&&this.textTracks.push(E)}),u!=null&&u.length){const f=u.filter(p=>p!==null).map(p=>p.label);f.length&&b.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(c.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===ze.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:p}=t.frag,E=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(p!==u+1||p===u&&E!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=p,this.lastPartIndex=E}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===ze.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===lo?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;To(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{b.log(`Failed to parse IMSC1: ${r}`),n.trigger(c.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,p=(t=n.initSegment)!=null&&t.data?$t(n.initSegment.data,new Uint8Array(r)):r;ol(p,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,E=>{this._appendCues(E,n.level),f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},E=>{const D=E.message==="Missing initPTS for VTT MPEGTS";D?s.push(e):this._fallbackToIMSC1(n,r),b.log(`Failed to parse VTT cue: ${E}`),!(D&&u>n.cc)&&f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:E})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||To(t,this.initPTS[e.cc],()=>{n.textCodec=lo,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=>rr(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(c.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===ze.SUBTITLE&&this.onFragLoaded(c.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:n,cea608Parser2:r}=this;if(!this.enabled||!n||!r)return;const{frag:i,samples:s}=t;if(!(i.type===ze.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let u=0;u<s.length;u++){const f=s[u].bytes;if(f){const p=this.extractCea608Data(f);n.addData(s[u].pts,p[0]),r.addData(s[u].pts,p[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=>Un(u[f],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>Un(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 E=3&s;(E===0||E===1)&&(t[E].push(u),t[E].push(f))}}return t}}function Io(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Lo(a,e){return!!a&&a.kind===Io(e)&&jr(e,a)}function ml(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function Oo(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class fo{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(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.BUFFER_CODECS,this.onBufferCodecs,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.BUFFER_CODECS,this.onBufferCodecs,this),e.off(c.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&&R(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&b.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,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,fo.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 e}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}}class pl{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(c.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHING,this.onMediaAttaching,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)}}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,p=this.hls;if(p.trigger(c.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:n}),f>0&&s>p.config.fpsDroppedMonitoringThreshold*u){let E=p.currentLevel;b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+E),E>0&&(p.autoLevelCapping===-1||p.autoLevelCapping>=E)&&(E=E-1,p.trigger(c.FPS_DROP_LEVEL_CAPPING,{level:E,droppedLevel:p.currentLevel}),p.autoLevelCapping=E,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)}}const $a="[eme]";class qs{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=qs.CDMCleanupPromise?[qs.CDMCleanupPromise]:[],this.debug=b.debug.bind(b,$a),this.log=b.log.bind(b,$a),this.warn=b.warn.bind(b,$a),this.error=b.error.bind(b,$a),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=Ft(this.config));const u=s.map(kt).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=xt(s);let f,p;if(n==="sinf"){if(u!==Je.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const ie=Ct(new Uint8Array(r));try{const pe=x(JSON.parse(ie).sinf),Se=Ot(pe);if(!Se)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=Se.subarray(8,24),p=Je.FAIRPLAY}catch(pe){this.warn(`${i} Failed to parse sinf: ${pe}`);return}}else{if(u!==Je.WIDEVINE&&u!==Je.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const ie=Nt(r),pe=ie.filter(Ge=>!!Ge.systemId&&st(Ge.systemId)===u);pe.length>1&&this.warn(`${i} Using first of ${pe.length} pssh found for selected key-system ${u}`);const Se=pe[0];if(!Se){ie.length===0||ie.some(Ge=>!Ge.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${ie.map(Ge=>st(Ge.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(p=st(Se.systemId),Se.version===0&&Se.data)if(p===Je.WIDEVINE){const Ge=Se.data.length-22;f=Se.data.subarray(Ge,Ge+16)}else p===Je.PLAYREADY&&(f=At(Se.data))}if(!p||!f){this.log(`Unable to handle ${i} with key-system ${u}`);return}const E=ht.hexDump(f),{keyIdToKeySessionPromise:D,mediaKeySessions:j}=this;let le=D[E];for(let ie=0;ie<j.length;ie++){const pe=j[ie],Se=pe.decryptdata;if(!Se.keyId)continue;const Ge=ht.hexDump(Se.keyId);if(E===Ge||Se.uri.replace(/-/g,"").indexOf(E)!==-1){if(le=D[Ge],Se.pssh)break;delete D[Ge],Se.pssh=new Uint8Array(r),Se.keyId=f,le=D[E]=le.then(()=>this.generateRequestWithPreferredKeySession(pe,n,r,"encrypted-event-key-match")),le.catch(pt=>this.handleError(pt));break}}if(!le){if(p!==u){this.log(`Ignoring "${i}" with ${p} init data for selected key-system ${u}`);return}le=D[E]=this.getKeySystemSelectionPromise([p]).then(({keySystem:ie,mediaKeys:pe})=>{var Se;this.throwIfDestroyed();const Ge=new Pt("ISO-23001-7",E,(Se=kt(ie))!=null?Se:"");return Ge.pssh=new Uint8Array(r),Ge.keyId=f,this.attemptSetMediaKeys(ie,pe).then(()=>{this.throwIfDestroyed();const pt=this.createMediaKeySessionContext({decryptdata:Ge,keySystem:ie,mediaKeys:pe});return this.generateRequestWithPreferredKeySession(pt,n,r,"encrypted-event-no-match")})}),le.catch(ie=>this.handleError(ie))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(c.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(c.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(c.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(c.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===Je.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=p=>{const E=p.shift();this.getMediaKeysPromise(E,r,i).then(D=>s({keySystem:E,mediaKeys:D})).catch(D=>{p.length?f(p):D instanceof Vi?u(D):u(new Vi({type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_NO_ACCESS,error:D,fatal:!0},D.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 cn===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=Vt(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: ${JSON.stringify(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 p=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(E=>(this.log(`Media-keys created for "${e}"`),p.then(D=>D?this.setMediaKeysServerCertificate(E,e,D):E))),u.mediaKeys.catch(E=>{this.error(`Failed to create media-keys for "${e}"}: ${E}`)}),u.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${ht.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,"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 ht.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${ht.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=Ft(this.config),i=e.map(xt).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=kt(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.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(t).then(({keySystem:s,mediaKeys:u})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(s,u).then(()=>{this.throwIfDestroyed();const f=this.createMediaKeySessionContext({keySystem:s,mediaKeys:u,decryptdata:t});return this.generateRequestWithPreferredKeySession(f,"cenc",t.pssh,"playlist-key")}))),i.catch(s=>this.handleError(s))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Vi?this.hls.trigger(c.ERROR,e.data):this.hls.trigger(c.ERROR,{type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=xt(e.keyFormat),i=r?[r]:Ft(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Ft(this.config)),e.length===0)throw new Vi({type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const 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 ie=u.call(this.hls,t,n,e);if(!ie)throw new Error("Invalid response from configured generateRequest filter");t=ie.initDataType,n=e.decryptdata.pssh=ie.initData?new Uint8Array(ie.initData):null}catch(ie){var f;if(this.warn(ie.message),(f=this.hls)!=null&&f.config.debug)throw ie}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const p=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${p} (init data type: ${t} length: ${n?n.byteLength:null})`);const E=new pn,D=e._onmessage=ie=>{const pe=e.mediaKeysSession;if(!pe){E.emit("error",new Error("invalid state"));return}const{messageType:Se,message:Ge}=ie;this.log(`"${Se}" message event for session "${pe.sessionId}" message size: ${Ge.byteLength}`),Se==="license-request"||Se==="license-renewal"?this.renewLicense(e,Ge).catch(pt=>{this.handleError(pt),E.emit("error",pt)}):Se==="license-release"?e.keySystem===Je.FAIRPLAY&&(this.updateKeySession(e,Ve("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Se}"`)},j=e._onkeystatuseschange=ie=>{if(!e.mediaKeysSession){E.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Se=e.keyStatus;E.emit("keyStatus",Se),Se==="expired"&&(this.warn(`${e.keySystem} expired for key ${p}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",D),e.mediaKeysSession.addEventListener("keystatuseschange",j);const le=new Promise((ie,pe)=>{E.on("error",pe),E.on("keyStatus",Se=>{Se.startsWith("usable")?ie():Se==="output-restricted"?pe(new Vi({type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Se==="internal-error"?pe(new Vi({type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Se}"`)):Se==="expired"?pe(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Se}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var ie;this.log(`Request generated for key-session "${(ie=e.mediaKeysSession)==null?void 0:ie.sessionId}" keyId: ${p}`)}).catch(ie=>{throw new Vi({type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_NO_SESSION,error:ie,fatal:!1},`Error generating key-session request: ${ie}`)}).then(()=>le).catch(ie=>{throw E.removeAllListeners(),this.removeSession(e),ie}).then(()=>(E.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${ht.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${ht.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},p=t.certLoadPolicy.default,E={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},D={onSuccess:(j,le,ie,pe)=>{s(j.data)},onError:(j,le,ie,pe)=>{u(new Vi({type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ie,response:V({url:f.url,data:void 0},j)},`"${e}" certificate request failed (${i}). Status: ${j.code} (${j.text})`))},onTimeout:(j,le,ie)=>{u(new Vi({type:w.KEY_SYSTEM_ERROR,details:v.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ie,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(j,le,ie)=>{u(new Error("aborted"))}};r.load(f,E,D)})):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 Vi({type:w.KEY_SYSTEM_ERROR,details:v.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 Vi({type:w.KEY_SYSTEM_ERROR,details:v.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 E;for(let D=0,j=i.length;D<j;D++){var s,u;E=i[D];const le=(s=E.querySelector("name"))==null?void 0:s.textContent,ie=(u=E.querySelector("value"))==null?void 0:u.textContent;le&&ie&&e.setRequestHeader(le,ie)}}const f=r.querySelector("Challenge"),p=f==null?void 0:f.textContent;if(!p)throw new Error("Cannot find <Challenge> in key message");return Ve(atob(p))}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 p=this.config.licenseResponseCallback;if(p)try{f=p.call(this.hls,u,s,e)}catch(E){this.error(E)}r(f)}else{const f=n.errorRetry,p=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>p||u.status>=400&&u.status<500)i(new Vi({type:w.KEY_SYSTEM_ERROR,details:v.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 E=p-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${E} 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:p})=>{e.keySystem==Je.PLAYREADY&&(p=this.unpackPlayReadyKeyMessage(f,p)),f.send(p)})})}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,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Pt.clearKeyUriToKeyIdMap();const n=t.length;qs.CDMCleanupPromise=Promise.all(t.map(r=>this.removeSession(r)).concat(e==null?void 0:e.setMediaKeys(null).catch(r=>{this.log(`Could not clear media keys: ${r}`)}))).then(()=>{n&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(r=>{this.log(`Could not close sessions and clear media keys: ${r}`)})}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=>{this.log(`Could not remove session: ${i}`)}).then(()=>t.close()).catch(i=>{this.log(`Could not close session: ${i}`)})}}}qs.CDMCleanupPromise=void 0;class Vi extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}var Ni;(function(a){a.MANIFEST="m",a.AUDIO="a",a.VIDEO="v",a.MUXED="av",a.INIT="i",a.CAPTION="c",a.TIMED_TEXT="tt",a.KEY="k",a.OTHER="o"})(Ni||(Ni={}));var mo;(function(a){a.DASH="d",a.HLS="h",a.SMOOTH="s",a.OTHER="o"})(mo||(mo={}));var ks;(function(a){a.OBJECT="CMCD-Object",a.REQUEST="CMCD-Request",a.SESSION="CMCD-Session",a.STATUS="CMCD-Status"})(ks||(ks={}));const gl={[ks.OBJECT]:["br","d","ot","tb"],[ks.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[ks.SESSION]:["cid","pr","sf","sid","st","v"],[ks.STATUS]:["bs","rtp"]};class Js{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(n=>n instanceof Js?n:new Js(n))),this.value=e,this.params=t}}class ko{constructor(e){this.description=void 0,this.description=e}}const vl="Dict";function _l(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 yl(a,e,t,n){return new Error(`failed to ${a} "${_l(e)}" as ${t}`,{cause:n})}const Po="Bare Item",bl="Boolean",xl="Byte Sequence",El="Decimal",wl="Integer";function Sl(a){return a<-999999999999999||999999999999999<a}const Cl=/[\x00-\x1f\x7f]+/,Tl="Token",Al="Key";function is(a,e,t){return yl("serialize",a,e,t)}function Dl(a){if(typeof a!="boolean")throw is(a,bl);return a?"?1":"?0"}function Rl(a){return btoa(String.fromCharCode(...a))}function Il(a){if(ArrayBuffer.isView(a)===!1)throw is(a,xl);return`:${Rl(a)}:`}function Mo(a){if(Sl(a))throw is(a,wl);return a.toString()}function Ll(a){return`@${Mo(a.getTime()/1e3)}`}function No(a,e){if(a<0)return-No(-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 Ol(a){const e=No(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw is(a,El);const t=e.toString();return t.includes(".")?t:`${t}.0`}const kl="String";function Pl(a){if(Cl.test(a))throw is(a,kl);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(a){return a.description||a.toString().slice(7,-1)}function Fo(a){const e=Ml(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw is(e,Tl);return e}function po(a){switch(typeof a){case"number":if(!R(a))throw is(a,Po);return Number.isInteger(a)?Mo(a):Ol(a);case"string":return Pl(a);case"symbol":return Fo(a);case"boolean":return Dl(a);case"object":if(a instanceof Date)return Ll(a);if(a instanceof Uint8Array)return Il(a);if(a instanceof ko)return Fo(a);default:throw is(a,Po)}}function go(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw is(a,Al);return a}function vo(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${po(t)}`).join("")}function Bo(a){return a instanceof Js?`${po(a.value)}${vo(a.params)}`:po(a)}function Nl(a){return`(${a.value.map(Bo).join(" ")})${vo(a.params)}`}function Fl(a,e={whitespace:!0}){if(typeof a!="object")throw is(a,vl);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof Js||(i=new Js(i));let s=go(r);return i.value===!0?s+=vo(i.params):(s+="=",Array.isArray(i.value)?s+=Nl(i):s+=Bo(i)),s}).join(`,${n}`)}function Bl(a,e){return Fl(a,e)}const $l=a=>a==="ot"||a==="sf"||a==="st",zl=a=>typeof a=="number"?R(a):a!=null&&a!==""&&a!==!1;function Ul(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 Hl(){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)})}}}const za=a=>Math.round(a),jl=(a,e)=>(e!=null&&e.baseUrl&&(a=Ul(a,e.baseUrl)),encodeURIComponent(a)),Ua=a=>za(a/100)*100,Kl={br:za,d:za,bl:Ua,dl:Ua,mtp:Ua,nor:jl,rtp:Ua,tb:za};function Gl(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=o({},Kl,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||zl(u)&&($l(s)&&typeof u=="string"&&(u=new ko(u)),t[s]=u))}),t}function $o(a,e={}){return a?Bl(Gl(a,e),o({whitespace:!1},e)):""}function Wl(a,e={}){if(!a)return{};const t=Object.entries(a),n=Object.entries(gl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),r=t.reduce((i,s)=>{var u,f;const[p,E]=s,D=((u=n.find(j=>j[1].includes(p)))==null?void 0:u[0])||ks.REQUEST;return(f=i[D])!=null||(i[D]={}),i[D][p]=E,i},{});return Object.entries(r).reduce((i,[s,u])=>(i[s]=$o(u,e),i),{})}function Zl(a,e,t){return o(a,Wl(e,t))}const Vl="CMCD";function Yl(a,e={}){if(!a)return"";const t=$o(a,e);return`${Vl}=${encodeURIComponent(t)}`}const zo=/CMCD=[^&#]+/;function Xl(a,e,t){const n=Yl(e,t);if(!n)return a;if(zo.test(a))return a.replace(zo,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class Ql{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:Ni.MANIFEST,su:!this.initialized})}catch(i){b.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const i=r.frag,s=this.hls.levels[i.level],u=this.getObjectType(i),f={d:i.duration*1e3,ot:u};(u===Ni.VIDEO||u===Ni.AUDIO||u==Ni.MUXED)&&(f.br=s.bitrate/1e3,f.tb=this.getTopBandwidth(u)/1e3,f.bl=this.getBufferLength(u)),this.apply(r,f)}catch(i){b.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||Hl(),this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHED,this.onMediaDetached,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHED,this.onMediaDetached,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var 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:mo.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){o(t,this.createData());const n=t.ot===Ni.INIT||t.ot===Ni.VIDEO||t.ot===Ni.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((i,s)=>(r.includes(s)&&(i[s]=t[s]),i),{})),this.useHeaders?(e.headers||(e.headers={}),Zl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Ni.TIMED_TEXT;if(e.sn==="initSegment")return Ni.INIT;if(t==="audio")return Ni.AUDIO;if(t==="main")return this.hls.audioTracks.length?Ni.VIDEO:Ni.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Ni.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.hls.media,n=e===Ni.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Or.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 ql=3e5;class Jl{constructor(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=b.log.bind(b,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(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)===Nn.SendAlternateToPenaltyBox&&n.flags===dr.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:p}=t.context;u&&r?s=this.getPathwayForGroupId(u,p,s):f&&(s=f)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=r.reduce((u,f)=>(u.indexOf(f.pathwayId)===-1&&u.push(f.pathwayId),u),[])),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||b.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(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]>ql&&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,Mn(t),this.hls.trigger(c.LEVELS_UPDATED,{levels:t});const p=this.hls.levels[u];f&&p&&this.levels&&(p.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&p.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${p.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===Jt.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===Jt.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(E=>E.pathwayId===s))return;const p=this.getLevelsForPathway(u).map(E=>{const D=new X(E.attrs);D["PATHWAY-ID"]=s;const j=D.AUDIO&&`${D.AUDIO}_clone_${s}`,le=D.SUBTITLES&&`${D.SUBTITLES}_clone_${s}`;j&&(n[D.AUDIO]=j,D.AUDIO=j),le&&(r[D.SUBTITLES]=le,D.SUBTITLES=le);const ie=Ho(E.uri,D["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),pe=new kr({attrs:D,audioCodec:E.audioCodec,bitrate:E.bitrate,height:E.height,name:E.name,url:ie,videoCodec:E.videoCodec,width:E.width});if(E.audioGroups)for(let Se=1;Se<E.audioGroups.length;Se++)pe.addGroupId("audio",`${E.audioGroups[Se]}_clone_${s}`);if(E.subtitleGroups)for(let Se=1;Se<E.subtitleGroups.length;Se++)pe.addGroupId("text",`${E.subtitleGroups[Se]}_clone_${s}`);return pe});t.push(...p),Uo(this.audioTracks,n,f,s),Uo(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(E){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const E=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+E)}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},p={onSuccess:(E,D,j,le)=>{this.log(`Loaded steering manifest: "${r}"`);const ie=E.data;if(ie.VERSION!==1){this.log(`Steering VERSION ${ie.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=ie.TTL;const{"RELOAD-URI":pe,"PATHWAY-CLONES":Se,"PATHWAY-PRIORITY":Ge}=ie;if(pe)try{this.uri=new self.URL(pe,r).href}catch(mt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${pe}`);return}this.scheduleRefresh(this.uri||j.url),Se&&this.clonePathways(Se);const pt={steeringManifest:ie,url:r.toString()};this.hls.trigger(c.STEERING_MANIFEST_LOADED,pt),Ge&&this.updatePathwayPriority(Ge)},onError:(E,D,j,le)=>{if(this.log(`Error loading steering manifest: ${E.code} ${E.text} (${D.url})`),this.stopLoad(),E.code===410){this.enabled=!1,this.log(`Steering manifest ${D.url} no longer available`);return}let ie=this.timeToLoad*1e3;if(E.code===429){const pe=this.loader;if(typeof(pe==null?void 0:pe.getResponseHeader)=="function"){const Se=pe.getResponseHeader("Retry-After");Se&&(ie=parseFloat(Se)*1e3)}this.log(`Steering manifest ${D.url} rate limited`);return}this.scheduleRefresh(this.uri||D.url,ie)},onTimeout:(E,D,j)=>{this.log(`Timeout loading steering manifest (${D.url})`),this.scheduleRefresh(this.uri||D.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,f,p)}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 Uo(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const u=o({},s);return u.details=void 0,u.attrs=new X(u.attrs),u.url=u.attrs.URI=Ho(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 Ho(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(p=>{p&&f.searchParams.set(p,i[p])}),f.href}const eu=/^age:\s*[\d.]+\s*$/im;class jo{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 He,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=>{this.callbacks.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&&R(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 s=t.status,u=t.responseType==="text"?t.responseText:null;if(s>=200&&s<300){const D=u!=null?u:t.response;if(D!=null){n.loading.end=Math.max(self.performance.now(),n.loading.first);const j=t.responseType==="arraybuffer"?D.byteLength:D.length;if(n.loaded=n.total=j,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first),!this.callbacks)return;const le=this.callbacks.onProgress;if(le&&le(n,e,D,t),!this.callbacks)return;const ie={url:t.responseURL,data:D,code:s};this.callbacks.onSuccess(ie,n,e,t);return}}const f=i.loadPolicy.errorRetry,p=n.retry,E={url:e.url,data:void 0,code:s};Dr(f,p,!1,E)?this.retry(f):(b.error(`${s} while loading ${e.url}`),this.callbacks.onError({code:s,text:t.statusText},e,t,n))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(Dr(e,t,!0))this.retry(e);else{var n;b.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=hr(e,n.retry),n.retry++,b.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&&eu.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}function tu(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const nu=/(\d+)-(\d+)\/(\d+)/;class Ko{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||au,this.controller=new self.AbortController,this.stats=new He}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=ru(e,this.controller.signal),s=n.onProgress,u=e.responseType==="arraybuffer",f=u?"byteLength":"length",{maxTimeToFirstByteMs:p,maxLoadTimeMs:E}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=p&&R(p)?p:E,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},t.timeout),self.fetch(this.request).then(D=>{this.response=this.loader=D;const j=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=E,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},E-(j-r.loading.start)),!D.ok){const{status:le,statusText:ie}=D;throw new ou(ie||"fetch, bad network response",le,D)}return r.loading.first=j,r.total=su(D.headers)||r.total,s&&R(t.highWaterMark)?this.loadProgressively(D,r,e,t.highWaterMark,s):u?D.arrayBuffer():e.responseType==="json"?D.json():D.text()}).then(D=>{const j=this.response;if(!j)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const le=D[f];le&&(r.loaded=r.total=le);const ie={url:j.url,data:D,code:j.status};s&&!R(t.highWaterMark)&&s(r,e,D,j),n.onSuccess(ie,r,e,j)}).catch(D=>{if(self.clearTimeout(this.requestTimeout),r.aborted)return;const j=D&&D.code||0,le=D?D.message:null;n.onError({code:j,text:le},e,D?D.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 ta,u=e.body.getReader(),f=()=>u.read().then(p=>{if(p.done)return s.dataLength&&i(t,n,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const E=p.value,D=E.length;return t.loaded+=D,D<r||s.dataLength?(s.push(E),s.dataLength>=r&&i(t,n,s.flush(),e)):i(t,n,E,e),f()}).catch(()=>Promise.reject());return f()}}function ru(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(o({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function iu(a){const e=nu.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function su(a){const e=a.get("Content-Range");if(e){const n=iu(e);if(R(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function au(a,e){return new self.Request(a.url,e)}class ou extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const lu=/\s/,uu={newCue(a,e,t,n){const r=[];let i,s,u,f,p;const E=self.VTTCue||self.TextTrackCue;for(let j=0;j<n.rows.length;j++)if(i=n.rows[j],u=!0,f=0,p="",!i.isEmpty()){var D;for(let pe=0;pe<i.chars.length;pe++)lu.test(i.chars[pe].uchar)&&u?f++:(p+=i.chars[pe].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const le=wo(p.trim()),ie=oo(e,t,le);a!=null&&(D=a.cues)!=null&&D.getCueById(ie)||(s=new E(e,t,le),s.id=ie,s.line=j+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((j,le)=>j.line==="auto"||le.line==="auto"?0:j.line>8&&le.line>8?le.line-j.line:j.line-le.line),r.forEach(j=>rr(a,j))),r}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Go=V(V({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:jo,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Zr,bufferController:Ui,capLevelController:fo,errorController:Wr,fpsController:pl,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:cn,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:cu},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},hu()),{},{subtitleStreamController:ti,subtitleTrackController:Ri,timelineController:fl,audioStreamController:mr,audioTrackController:Kr,emeController:qs,cmcdController:Ql,contentSteeringController:Jl});function hu(){return{cueHandler:uu,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 du(a,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const t=_o(a),n=["manifest","level","frag"],r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return n.forEach(i=>{const s=`${i==="level"?"playlist":i}LoadPolicy`,u=e[s]===void 0,f=[];r.forEach(p=>{const E=`${i}Loading${p}`,D=e[E];if(D!==void 0&&u){f.push(E);const j=t[s].default;switch(e[s]={default:j},p){case"TimeOut":j.maxLoadTimeMs=D,j.maxTimeToFirstByteMs=D;break;case"MaxRetry":j.errorRetry.maxNumRetry=D,j.timeoutRetry.maxNumRetry=D;break;case"RetryDelay":j.errorRetry.retryDelayMs=D,j.timeoutRetry.retryDelayMs=D;break;case"MaxRetryTimeout":j.errorRetry.maxRetryDelayMs=D,j.timeoutRetry.maxRetryDelayMs=D;break}}}),f.length&&b.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),V(V({},t),e)}function _o(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(_o):Object.keys(a).reduce((e,t)=>(e[t]=_o(a[t]),e),{}):a}function fu(a){const e=a.loader;e!==Ko&&e!==jo?(b.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):tu()&&(a.loader=Ko,a.progressive=!0,a.enableSoftwareAES=!0,b.log("[config]: Progressive streaming enabled, using FetchLoader"))}let yo;class mu extends Sr{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(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.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,p=!1;t.levels.forEach(E=>{var D,j;const le=E.attrs;let{audioCodec:ie,videoCodec:pe}=E;((D=ie)==null?void 0:D.indexOf("mp4a.40.34"))!==-1&&(yo||(yo=/chrome|firefox/i.test(navigator.userAgent)),yo&&(E.audioCodec=ie=void 0)),ie&&(E.audioCodec=ie=Qt(ie,n)),((j=pe)==null?void 0:j.indexOf("avc1"))===0&&(pe=E.videoCodec=Cn(pe));const{width:Se,height:Ge,unknownCodecs:pt}=E;if(u||(u=!!(Se&&Ge)),f||(f=!!pe),p||(p=!!ie),pt!=null&&pt.length||ie&&!Ye(ie,"audio",n)||pe&&!Ye(pe,"video",n))return;const{CODECS:mt,"FRAME-RATE":Gt,"HDCP-LEVEL":wt,"PATHWAY-ID":hn,RESOLUTION:Ht,"VIDEO-RANGE":bn}=le,an=`${`${hn||"."}-`}${E.bitrate}-${Ht}-${Gt}-${mt}-${bn}-${wt}`;if(i[an])if(i[an].uri!==E.url&&!E.attrs["PATHWAY-ID"]){const xn=s[an]+=1;E.attrs["PATHWAY-ID"]=new Array(xn+1).join(".");const br=new kr(E);i[an]=br,r.push(br)}else i[an].addGroupId("audio",le.AUDIO),i[an].addGroupId("text",le.SUBTITLES);else{const xn=new kr(E);i[an]=xn,s[an]=1,r.push(xn)}}),this.filterAndSortMediaOptions(r,t,u,f,p)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],u=[],f=e;if((n||r)&&i&&(f=f.filter(({videoCodec:ie,videoRange:pe,width:Se,height:Ge})=>(!!ie||!!(Se&&Ge))&&wr(pe))),f.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const ie=new Error("no level with compatible codecs found in manifest");this.hls.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:ie,reason:ie.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:ie}=this.hls.config;s=t.audioTracks.filter(pe=>!pe.audioCodec||Ye(pe.audioCodec,"audio",ie)),Wo(s)}t.subtitles&&(u=t.subtitles,Wo(u));const p=f.slice(0);f.sort((ie,pe)=>{if(ie.attrs["HDCP-LEVEL"]!==pe.attrs["HDCP-LEVEL"])return(ie.attrs["HDCP-LEVEL"]||"")>(pe.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&ie.height!==pe.height)return ie.height-pe.height;if(ie.frameRate!==pe.frameRate)return ie.frameRate-pe.frameRate;if(ie.videoRange!==pe.videoRange)return Tr.indexOf(ie.videoRange)-Tr.indexOf(pe.videoRange);if(ie.videoCodec!==pe.videoCodec){const Se=yt(ie.videoCodec),Ge=yt(pe.videoCodec);if(Se!==Ge)return Ge-Se}if(ie.uri===pe.uri&&ie.codecSet!==pe.codecSet){const Se=ct(ie.codecSet),Ge=ct(pe.codecSet);if(Se!==Ge)return Ge-Se}return ie.averageBitrate!==pe.averageBitrate?ie.averageBitrate-pe.averageBitrate:0});let E=p[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==p.length)){for(let ie=0;ie<p.length;ie++)if(p[ie].pathwayId===f[0].pathwayId){E=p[ie];break}}this._levels=f;for(let ie=0;ie<f.length;ie++)if(f[ie]===E){var D;this._firstLevel=ie;const pe=E.bitrate,Se=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${pe}`),((D=this.hls.userConfig)==null?void 0:D.abrEwmaDefaultEstimate)===void 0){const Ge=Math.min(pe,this.hls.config.abrEwmaDefaultEstimateMax);Ge>Se&&Se===Go.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ge)}break}const j=i&&!r,le={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!j&&s.some(ie=>!!ie.url)};this.hls.trigger(c.MANIFEST_PARSED,le),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const E=new Error("invalid level idx"),D=e<0;if(this.hls.trigger(c.ERROR,{type:w.OTHER_ERROR,details:v.LEVEL_SWITCH_ERROR,level:e,fatal:D,error:E,reason:E.message}),D)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&&s.details&&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(c.LEVEL_SWITCHING,f);const p=s.details;if(!p||p.live){const E=this.switchParams(s.uri,r==null?void 0:r.details,p);this.loadPlaylist(E)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}onError(e,t){t.fatal||!t.context||t.context.type===Jt.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===ze.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=this._levels[r];if(!s){var u;this.warn(`Invalid level index ${r}`),(u=t.deliveryDirectives)!=null&&u.skip&&(i.deltaUpdateFailed=!0);return}r===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0),this.playlistLoaded(r,t,s.details)):(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){let r=n.uri;if(e)try{r=e.addDirectives(r)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}const i=n.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${i?" Pathway "+i:""} ${r}`),this.clearTimer(),this.hls.trigger(c.LEVEL_LOADING,{url:r,level:t,pathwayId:n.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;const n=this._levels.filter((r,i)=>i!==e?!0:(this.steering&&this.steering.removeLevel(r),r===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,r.details&&r.details.fragments.forEach(s=>s.level=-1)),!1));Mn(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(c.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(c.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function Wo(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}class pu{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=v.KEY_LOAD_ERROR,n,r,i){return new ri({type:w.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 p=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,v.KEY_LOAD_ERROR,p))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,v.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(p=>(i.key=p.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":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,v.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},p=n.keyLoadPolicy.default,E={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},D={onSuccess:(j,le,ie,pe)=>{const{frag:Se,keyInfo:Ge,url:pt}=ie;if(!Se.decryptdata||Ge!==this.keyUriToKeyInfo[pt])return u(this.createKeyLoadError(Se,v.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),pe));Ge.decryptdata.key=Se.decryptdata.key=new Uint8Array(j.data),Se.keyLoader=null,Ge.loader=null,s({frag:Se,keyInfo:Ge})},onError:(j,le,ie,pe)=>{this.resetLoader(le),u(this.createKeyLoadError(t,v.KEY_LOAD_ERROR,new Error(`HTTP Error ${j.code} loading key ${j.text}`),ie,V({url:f.url,data:void 0},j)))},onTimeout:(j,le,ie)=>{this.resetLoader(le),u(this.createKeyLoadError(t,v.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),ie))},onAbort:(j,le,ie)=>{this.resetLoader(le),u(this.createKeyLoadError(t,v.INTERNAL_ABORTED,new Error("key loading aborted"),ie))}};i.load(f,E,D)})}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 Zo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Vo(){if(!un())return!1;const e=Zo();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!Vo())return!1;const a=un();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(ut(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(ut(e,"audio"))))}function vu(){var a;const e=Zo();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const _u=250,Ha=2,yu=.1,bu=.05;class xu{constructor(e,t,n,r){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=n,this.hls=r}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:n,media:r,stalled:i}=this;if(r===null)return;const{currentTime:s,seeking:u}=r,f=this.seeking&&!u,p=!this.seeking&&u;if(this.seeking=u,s!==e){if(this.moved=!0,u||(this.nudgeRetry=0),i!==null){if(this.stallReported){const Se=self.performance.now()-i;b.warn(`playback not stuck anymore @${s}, after ${Math.round(Se)}ms`),this.stallReported=!1}this.stalled=null}return}if(p||f){this.stalled=null;return}if(r.paused&&!u||r.ended||r.playbackRate===0||!Or.getBuffered(r).length){this.nudgeRetry=0;return}const E=Or.bufferInfo(r,s,0),D=E.nextStart||0;if(u){const Se=E.len>Ha,Ge=!D||t&&t.start<=s||D-s>Ha&&!this.fragmentTracker.getPartialFragment(s);if(Se||Ge)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var j;if(!(E.len>0)&&!D)return;const Ge=Math.max(D,E.start||0)-s,pt=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Gt=(pt==null||(j=pt.details)==null?void 0:j.live)?pt.details.targetduration*2:Ha,wt=this.fragmentTracker.getPartialFragment(s);if(Ge>0&&(Ge<=Gt||wt)){r.paused||this._trySkipBufferHole(wt);return}}const le=self.performance.now();if(i===null){this.stalled=le;return}const ie=le-i;if(!u&&ie>=_u&&(this._reportStall(E),!this.media))return;const pe=Or.bufferInfo(r,s,n.maxBufferHole);this._tryFixBufferStall(pe,ie)}_tryFixBufferStall(e,t){const{config:n,fragmentTracker:r,media:i}=this;if(i===null)return;const s=i.currentTime,u=r.getPartialFragment(s);u&&(this._trySkipBufferHole(u)||!this.media)||(e.len>n.maxBufferHole||e.nextStart&&e.nextStart-s<n.maxBufferHole)&&t>n.highBufferWatchdogPeriod*1e3&&(b.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:n,stallReported:r}=this;if(!r&&n){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${JSON.stringify(e)})`);b.warn(i.message),t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:n,media:r}=this;if(r===null)return 0;const i=r.currentTime,s=Or.bufferInfo(r,i,0),u=i<s.start?s.start:s.nextStart;if(u){const f=s.len<=t.maxBufferHole,p=s.len>0&&s.len<1&&r.readyState<3,E=u-i;if(E>0&&(f||p)){if(E>t.maxBufferHole){const{fragmentTracker:j}=this;let le=!1;if(i===0){const ie=j.getAppendedFrag(0,ze.MAIN);ie&&u<ie.end&&(le=!0)}if(!le){const ie=e||j.getAppendedFrag(i,ze.MAIN);if(ie){let pe=!1,Se=ie.end;for(;Se<u;){const Ge=j.getPartialFragment(Se);if(Ge)Se+=Ge.duration;else{pe=!0;break}}if(pe)return 0}}}const D=Math.max(u+bu,i+yu);if(b.warn(`skipping hole, adjusting currentTime from ${i} to ${D}`),this.moved=!0,this.stalled=null,r.currentTime=D,e&&!e.gap){const j=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${D}`);n.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:j,reason:j.message,frag:e})}return D}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:n,nudgeRetry:r}=this;if(n===null)return;const i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){const s=i+(r+1)*e.nudgeOffset,u=new Error(`Nudging 'currentTime' from ${i} to ${s}`);b.warn(u.message),n.currentTime=s,t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.BUFFER_NUDGE_ON_STALL,error:u,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${i} after ${e.nudgeMaxRetry} nudges`);b.error(s.message),t.trigger(c.ERROR,{type:w.MEDIA_ERROR,details:v.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class wu extends bs{constructor(e,t,n){super(e,t,n,"[stream-controller]",ze.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(c.ERROR,this.onError,this),e.on(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(c.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this),e.on(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(c.ERROR,this.onError,this),e.off(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(c.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this),e.off(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:n}=this;if(this.stopLoad(),this.setInterval(Eu),this.level=-1,!this.startFragRequested){let r=n.startLevel;r===-1&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.firstAutoLevel),n.nextLoadLevel=r,this.level=n.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=tn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=tn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case tn.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)){if(this.waitForCdnTuneIn(i))break;this.state=tn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=tn.IDLE;break}break}case tn.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=tn.IDLE}}break}this.state===tn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&(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 pe={};this.altAudio&&(pe.type="video"),this.hls.trigger(c.BUFFER_EOS,pe),this.state=tn.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 p=s.details;if(!p||this.state===tn.WAITING_LEVEL||p.live&&this.levelLastLoaded!==s){this.level=i,this.state=tn.WAITING_LEVEL;return}const E=u.len,D=this.getMaxBufferLength(s.maxBitrate);if(E>=D)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const j=this.backtrackFragment?this.backtrackFragment.start:u.end;let le=this.getNextFragment(j,p);if(this.couldBacktrack&&!this.fragPrevious&&le&&le.sn!=="initSegment"&&this.fragmentTracker.getState(le)!==Ir.OK){var ie;const Se=((ie=this.backtrackFragment)!=null?ie:le).sn-p.startSN,Ge=p.fragments[Se-1];Ge&&le.cc===Ge.cc&&(le=Ge,this.fragmentTracker.removeFragment(Ge))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(le&&this.isLoopLoading(le,j)){if(!le.gap){const Se=this.audioOnly&&!this.altAudio?q.AUDIO:q.VIDEO,Ge=(Se===q.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ge&&this.afterBufferFlushed(Ge,Se,ze.MAIN)}le=this.getNextFragmentLoopLoading(le,p,u,ze.MAIN,D)}le&&(le.initSegment&&!le.initSegment.data&&!this.bitrateTest&&(le=le.initSegment),this.loadFragment(le,s,j))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);this.fragCurrent=e,r===Ir.NOT_LOADED||r===Ir.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):(this.startFragRequested=!0,super.loadFragment(e,t,n)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,ze.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],p=this.fragLastKbps;p&&this.fragCurrent?n=this.fragCurrent.duration*f.maxBitrate/(1e3*p)+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,p=u.duration,E=Math.max(s.end,f+Math.min(Math.max(p-this.config.maxFragLookUpTolerance,p*(this.couldBacktrack?.5:.125)),p*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(E,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 tn.KEY_LOADING:case tn.FRAG_LOADING:case tn.FRAG_LOADING_WAITING_RETRY:case tn.PARSING:case tn.PARSED:this.state=tn.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new xu(this.config,n,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;R(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const n=this.getMainFwdBufferInfo();if(n===null||n.len===0){this.warn(`Main forward buffer length on "seeked" event ${n?n.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let 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&&!vu(),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!==tn.IDLE)return;const r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(r.details))&&(this.state=tn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r}=this,i=t.level,s=t.details,u=s.totalduration;if(!r){this.warn(`Levels were reset while loading level ${i}`);return}this.log(`Level ${i} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${u}`);const f=r[i],p=this.fragCurrent;p&&(this.state===tn.FRAG_LOADING||this.state===tn.FRAG_LOADING_WAITING_RETRY)&&p.level!==t.level&&p.loader&&this.abortCurrentFrag();let E=0;if(s.live||(n=f.details)!=null&&n.live){var D;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;E=this.alignPlaylists(s,f.details,(D=this.levelLastLoaded)==null?void 0:D.details)}if(f.details=s,this.levelLastLoaded=f,this.hls.trigger(c.LEVEL_UPDATED,{details:s,level:i}),this.state===tn.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=tn.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,E),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,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],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 p=u.videoCodec,E=f.PTSKnown||!f.live,D=(t=n.initSegment)==null?void 0:t.data,j=this._getAudioCodec(u),le=this.transmuxer=this.transmuxer||new Ln(this.hls,ze.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ie=r?r.index:-1,pe=ie!==-1,Se=new gs(n.level,n.sn,n.stats.chunkCount,i.byteLength,ie,pe),Ge=this.initPTS[n.cc];le.push(i,D,j,p,n,r,f.totalduration,E,Se,Ge)}onAudioTrackSwitching(e,t){const n=this.altAudio;if(!!!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const 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();const i=this.hls;n&&(i.trigger(c.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(c.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=t.id,r=!!this.hls.audioTracks[n].url;if(r){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,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 p=n[u];p&&(this.videoBuffer=p.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;if(n&&n.type!==ze.MAIN)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}`),this.state===tn.PARSED&&(this.state=tn.IDLE);return}const i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),n.sn!=="initSegment"&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=tn.ERROR;return}switch(t.details){case v.FRAG_GAP:case v.FRAG_PARSING_ERROR:case v.FRAG_DECRYPT_ERROR:case v.FRAG_LOAD_ERROR:case v.FRAG_LOAD_TIMEOUT:case v.KEY_LOAD_ERROR:case v.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ze.MAIN,t);break;case v.LEVEL_LOAD_ERROR:case v.LEVEL_LOAD_TIMEOUT:case v.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===tn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===Jt.LEVEL&&(this.state=tn.IDLE);break;case v.BUFFER_APPEND_ERROR:case v.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===v.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case v.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Or.getBuffered(e).length){const n=this.state!==tn.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=tn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==q.AUDIO||this.audioOnly&&!this.altAudio){const n=(t===q.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,t,ze.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let 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=Or.getBuffered(e),s=(r.length?r.start(0):0)-n;s>0&&(s<this.config.maxBufferHole||s<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${s} to match buffer start`),n+=s,this.startPosition=n),this.log(`seek to target start position ${n} from current time ${t}`),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;if(!n||this.fragContextChanged(e))return;t.fragmentError=0,this.state=tn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const i=e.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),r.trigger(c.FRAG_LOADED,n),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n="main",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:p,level:E}=u,{video:D,text:j,id3:le,initSegment:ie}=i,{details:pe}=E,Se=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=tn.PARSING,ie){if(ie!=null&&ie.tracks){const mt=f.initSegment||f;this._bufferInitSegment(E,ie.tracks,mt,s),r.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:mt,id:n,tracks:ie.tracks})}const Ge=ie.initPTS,pt=ie.timescale;R(Ge)&&(this.initPTS[f.cc]={baseTime:Ge,timescale:pt},r.trigger(c.INIT_PTS_FOUND,{frag:f,id:n,initPTS:Ge,timescale:pt}))}if(D&&pe&&f.sn!=="initSegment"){const Ge=pe.fragments[f.sn-1-pe.startSN],pt=f.sn===pe.startSN,mt=!Ge||f.cc>Ge.cc;if(i.independent!==!1){const{startPTS:Gt,endPTS:wt,startDTS:hn,endDTS:Ht}=D;if(p)p.elementaryStreams[D.type]={startPTS:Gt,endPTS:wt,startDTS:hn,endDTS:Ht};else if(D.firstKeyFrame&&D.independent&&s.id===1&&!mt&&(this.couldBacktrack=!0),D.dropped&&D.independent){const bn=this.getMainFwdBufferInfo(),jn=(bn?bn.end:this.getLoadPosition())+this.config.maxBufferHole,an=D.firstKeyFramePTS?D.firstKeyFramePTS:Gt;if(!pt&&jn<an-this.config.maxBufferHole&&!mt){this.backtrack(f);return}else mt&&(f.gap=!0);f.setElementaryStreamInfo(D.type,f.start,wt,f.start,Ht,!0)}else pt&&Gt>Ha&&(f.gap=!0);f.setElementaryStreamInfo(D.type,Gt,wt,hn,Ht),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(D,f,p,s,pt||mt)}else if(pt||mt)f.gap=!0;else{this.backtrack(f);return}}if(Se){const{startPTS:Ge,endPTS:pt,startDTS:mt,endDTS:Gt}=Se;p&&(p.elementaryStreams[q.AUDIO]={startPTS:Ge,endPTS:pt,startDTS:mt,endDTS:Gt}),f.setElementaryStreamInfo(q.AUDIO,Ge,pt,mt,Gt),this.bufferFragmentData(Se,f,p,s)}if(pe&&le!=null&&(t=le.samples)!=null&&t.length){const Ge={id:n,frag:f,details:pe,samples:le.samples};r.trigger(c.FRAG_PARSING_METADATA,Ge)}if(pe&&j){const Ge={id:n,frag:f,details:pe,samples:j.samples};r.trigger(c.FRAG_PARSING_USERDATA,Ge)}}_bufferInitSegment(e,t,n,r){if(this.state!==tn.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 f=e.audioCodec;const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const E=i.metadata;E&&"channelCount"in E&&(E.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),e.audioCodec&&e.audioCodec!==f&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${f}"`),i.levelCodec=f,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${e.audioCodec||""}/${i.codec}]`)}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${s.codec}]`)),u&&this.log(`Init audiovideo buffer, container:${u.container}, codecs[level/parsed]=[${e.codecs}/${u.codec}]`),this.hls.trigger(c.BUFFER_CODECS,t),Object.keys(t).forEach(f=>{const E=t[f].initSegment;E!=null&&E.byteLength&&this.hls.trigger(c.BUFFER_APPENDING,{type:f,data:E,frag:n,part:null,chunkMeta:r,parent:n.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,ze.MAIN)}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=tn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Or.isBuffered(e,n)?t=this.getAppendedFrag(n):Or.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(c.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(c.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,n=this.currentFrag;if(n&&R(t)&&R(n.programDateTime)){const r=n.programDateTime+(t-n.start)*1e3;return new Date(r)}}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 Ps{static get version(){return"1.5.20"}static isMSESupported(){return Vo()}static isSupported(){return gu()}static getMediaSource(){return un()}static get Events(){return c}static get ErrorTypes(){return w}static get ErrorDetails(){return v}static get DefaultConfig(){return Ps.defaultConfig?Ps.defaultConfig:Go}static set DefaultConfig(e){Ps.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new pn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ne(e.debug||!1,"Hls instance");const t=this.config=du(Ps.DefaultConfig,e);this.userConfig=e,t.progressive&&fu(t);const{abrController:n,bufferController:r,capLevelController:i,errorController:s,fpsController:u}=t,f=new s(this),p=this.abrController=new n(this),E=this.bufferController=new r(this),D=this.capLevelController=new i(this),j=new u(this),le=new Vn(this),ie=new Er(this),pe=t.contentSteeringController,Se=pe?new pe(this):null,Ge=this.levelController=new mu(this,Se),pt=new Bi(this),mt=new pu(this.config),Gt=this.streamController=new wu(this,pt,mt);D.setStreamController(Gt),j.setStreamController(Gt);const wt=[le,Ge,Gt];Se&&wt.splice(1,0,Se),this.networkControllers=wt;const hn=[p,E,D,j,ie,pt];this.audioTrackController=this.createController(t.audioTrackController,wt);const Ht=t.audioStreamController;Ht&&wt.push(new Ht(this,pt,mt)),this.subtitleTrackController=this.createController(t.subtitleTrackController,wt);const bn=t.subtitleStreamController;bn&&wt.push(new bn(this,pt,mt)),this.createController(t.timelineController,hn),mt.emeController=this.emeController=this.createController(t.emeController,hn),this.cmcdController=this.createController(t.cmcdController,hn),this.latencyController=this.createController(Mr,hn),this.coreComponents=hn,wt.push(f);const jn=f.onErrorOut;typeof jn=="function"&&this.on(c.ERROR,jn,f)}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(b.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===c.ERROR;this.trigger(c.ERROR,{type:w.OTHER_ERROR,details:v.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){b.log("destroy"),this.trigger(c.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){b.log("attachMedia"),this._media=e,this.trigger(c.MEDIA_ATTACHING,{media:e})}detachMedia(){b.log("detachMedia"),this.trigger(c.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,n=this.url,r=this.url=te.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,b.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(c.MANIFEST_LOADING,{url:e})}startLoad(e=-1){b.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){b.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){b.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){b.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){b.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){b.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){b.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){b.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){b.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){b.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){b.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(b.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){_r(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()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Ps.defaultConfig=void 0},16722:function(rn,nt,_){"use strict";_.d(nt,{Z:function(){return Ee}});const P=o=>typeof o=="object"&&o!=null&&o.nodeType===1,N=(o,R)=>(!R||o!=="hidden")&&o!=="visible"&&o!=="clip",te=(o,R)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const M=getComputedStyle(o,null);return N(M.overflowY,R)||N(M.overflowX,R)||(g=>{const c=(w=>{if(!w.ownerDocument||!w.ownerDocument.defaultView)return null;try{return w.ownerDocument.defaultView.frameElement}catch(v){return null}})(g);return!!c&&(c.clientHeight<g.scrollHeight||c.clientWidth<g.scrollWidth)})(o)}return!1},Re=(o,R,M,g,c,w,v,Y)=>w<o&&v>R||w>o&&v<R?0:w<=o&&Y<=M||v>=R&&Y>=M?w-o-g:v>R&&Y<M||w<o&&Y>M?v-R+c:0,V=o=>{const R=o.parentElement;return R==null?o.getRootNode().host||null:R},ce=(o,R)=>{var M,g,c,w;if(typeof document=="undefined")return[];const{scrollMode:v,block:Y,inline:se,boundary:K,skipOverflowHiddenElements:F}=R,H=typeof K=="function"?K:tt=>tt!==K;if(!P(o))throw new TypeError("Invalid target");const ne=document.scrollingElement||document.documentElement,b=[];let A=o;for(;P(A)&&H(A);){if(A=V(A),A===ne){b.push(A);break}A!=null&&A===document.body&&te(A)&&!te(document.documentElement)||A!=null&&te(A,F)&&b.push(A)}const B=(g=(M=window.visualViewport)==null?void 0:M.width)!=null?g:innerWidth,X=(w=(c=window.visualViewport)==null?void 0:c.height)!=null?w:innerHeight,{scrollX:ge,scrollY:Ie}=window,{height:Oe,width:He,top:q,right:$,bottom:ae,left:ee}=o.getBoundingClientRect(),{top:ye,right:re,bottom:x,left:S}=(tt=>{const Je=window.getComputedStyle(tt);return{top:parseFloat(Je.scrollMarginTop)||0,right:parseFloat(Je.scrollMarginRight)||0,bottom:parseFloat(Je.scrollMarginBottom)||0,left:parseFloat(Je.scrollMarginLeft)||0}})(o);let Q=Y==="start"||Y==="nearest"?q-ye:Y==="end"?ae+x:q+Oe/2-ye+x,be=se==="center"?ee+He/2-S+re:se==="end"?$+re:ee-S;const Ve=[];for(let tt=0;tt<b.length;tt++){const Je=b[tt],{height:et,width:xt,top:gt,right:st,bottom:kt,left:Ft}=Je.getBoundingClientRect();if(v==="if-needed"&&q>=0&&ee>=0&&ae<=X&&$<=B&&(Je===ne&&!te(Je)||q>=gt&&ae<=kt&&ee>=Ft&&$<=st))return Ve;const cn=getComputedStyle(Je),Vt=parseInt(cn.borderLeftWidth,10),it=parseInt(cn.borderTopWidth,10),At=parseInt(cn.borderRightWidth,10),oe=parseInt(cn.borderBottomWidth,10);let me=0,k=0;const de="offsetWidth"in Je?Je.offsetWidth-Je.clientWidth-Vt-At:0,we="offsetHeight"in Je?Je.offsetHeight-Je.clientHeight-it-oe:0,L="offsetWidth"in Je?Je.offsetWidth===0?0:xt/Je.offsetWidth:0,T="offsetHeight"in Je?Je.offsetHeight===0?0:et/Je.offsetHeight:0;if(ne===Je)me=Y==="start"?Q:Y==="end"?Q-X:Y==="nearest"?Re(Ie,Ie+X,X,it,oe,Ie+Q,Ie+Q+Oe,Oe):Q-X/2,k=se==="start"?be:se==="center"?be-B/2:se==="end"?be-B:Re(ge,ge+B,B,Vt,At,ge+be,ge+be+He,He),me=Math.max(0,me+Ie),k=Math.max(0,k+ge);else{me=Y==="start"?Q-gt-it:Y==="end"?Q-kt+oe+we:Y==="nearest"?Re(gt,kt,et,it,oe+we,Q,Q+Oe,Oe):Q-(gt+et/2)+we/2,k=se==="start"?be-Ft-Vt:se==="center"?be-(Ft+xt/2)+de/2:se==="end"?be-st+At+de:Re(Ft,st,xt,Vt,At+de,be,be+He,He);const{scrollLeft:O,scrollTop:ue}=Je;me=T===0?0:Math.max(0,Math.min(ue+me/T,Je.scrollHeight-et/T+we)),k=L===0?0:Math.max(0,Math.min(O+k/L,Je.scrollWidth-xt/L+de)),Q+=ue-me,be+=O-k}Ve.push({el:Je,top:me,left:k})}return Ve},_e=o=>o===!1?{block:"end",inline:"nearest"}:(R=>R===Object(R)&&Object.keys(R).length!==0)(o)?o:{block:"start",inline:"nearest"};function Ee(o,R){if(!o.isConnected||!(c=>{let w=c;for(;w&&w.parentNode;){if(w.parentNode===document)return!0;w=w.parentNode instanceof ShadowRoot?w.parentNode.host:w.parentNode}return!1})(o))return;const M=(c=>{const w=window.getComputedStyle(c);return{top:parseFloat(w.scrollMarginTop)||0,right:parseFloat(w.scrollMarginRight)||0,bottom:parseFloat(w.scrollMarginBottom)||0,left:parseFloat(w.scrollMarginLeft)||0}})(o);if((c=>typeof c=="object"&&typeof c.behavior=="function")(R))return R.behavior(ce(o,R));const g=typeof R=="boolean"||R==null?void 0:R.behavior;for(const{el:c,top:w,left:v}of ce(o,_e(R))){const Y=w-M.top+M.bottom,se=v-M.left+M.right;c.scroll({top:Y,left:se,behavior:g})}}}}]);
|
|
|
}()); |