You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1035 lines
1.4 MiB
1035 lines
1.4 MiB
!(function(){var hl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{65352:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return pt}});var p=w(77321),he=w(52487),se=w(74416),ge=w(43403),O=w(92310),d=w.n(O),ve=w(29301),oe=w(76846),o=w(96452),b=w(6089),T=w(80402),m=w(34280),y=w(49658),x=w(59301),L=w(72308),U=w(77900),Y=w(8654);function ne(Pe){var be=Pe.prefixCls,B=Pe.align,Ce=Pe.arrow,He=Pe.arrowPos,Z=Ce||{},P=Z.className,K=Z.content,me=He.x,I=me===void 0?0:me,de=He.y,ee=de===void 0?0:de,De=x.useRef();if(!B||!B.points)return null;var Te={position:"absolute"};if(B.autoArrow!==!1){var Ke=B.points[0],ze=B.points[1],Xe=Ke[0],ot=Ke[1],_e=ze[0],Re=ze[1];Xe===_e||!["t","b"].includes(Xe)?Te.top=ee:Xe==="t"?Te.top=0:Te.bottom=0,ot===Re||!["l","r"].includes(ot)?Te.left=I:ot==="l"?Te.left=0:Te.right=0}return x.createElement("div",{ref:De,className:d()("".concat(be,"-arrow"),P),style:Te},K)}function M(Pe){var be=Pe.prefixCls,B=Pe.open,Ce=Pe.zIndex,He=Pe.mask,Z=Pe.motion;return He?x.createElement(U.default,(0,L.Z)({},Z,{motionAppear:!0,visible:B,removeOnLeave:!0}),function(P){var K=P.className;return x.createElement("div",{style:{zIndex:Ce},className:d()("".concat(be,"-mask"),K)})}):null}var F=x.memo(function(Pe){var be=Pe.children;return be},function(Pe,be){return be.cache}),D=F,S=x.forwardRef(function(Pe,be){var B=Pe.popup,Ce=Pe.className,He=Pe.prefixCls,Z=Pe.style,P=Pe.target,K=Pe.onVisibleChanged,me=Pe.open,I=Pe.keepDom,de=Pe.fresh,ee=Pe.onClick,De=Pe.mask,Te=Pe.arrow,Ke=Pe.arrowPos,ze=Pe.align,Xe=Pe.motion,ot=Pe.maskMotion,_e=Pe.forceRender,Re=Pe.getPopupContainer,at=Pe.autoDestroy,Qe=Pe.portal,Ge=Pe.zIndex,_t=Pe.onMouseEnter,Dt=Pe.onMouseLeave,rt=Pe.onPointerEnter,Kt=Pe.onPointerDownCapture,fn=Pe.ready,Tt=Pe.offsetX,Qt=Pe.offsetY,Be=Pe.offsetR,ke=Pe.offsetB,Ne=Pe.onAlign,k=Pe.onPrepare,ae=Pe.stretch,fe=Pe.targetWidth,re=Pe.targetHeight,Se=typeof B=="function"?B():B,Mt=me||I,Rt=(Re==null?void 0:Re.length)>0,Ut=x.useState(!Re||!Rt),hn=(0,he.Z)(Ut,2),Le=hn[0],_=hn[1];if((0,m.Z)(function(){!Le&&Rt&&P&&_(!0)},[Le,Rt,P]),!Le)return null;var H="auto",E={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(fn||!me){var Ie,Ee=ze.points,we=ze.dynamicInset||((Ie=ze._experimental)===null||Ie===void 0?void 0:Ie.dynamicInset),Ze=we&&Ee[0][1]==="r",ut=we&&Ee[0][0]==="b";Ze?(E.right=Be,E.left=H):(E.left=Tt,E.right=H),ut?(E.bottom=ke,E.top=H):(E.top=Qt,E.bottom=H)}var kt={};return ae&&(ae.includes("height")&&re?kt.height=re:ae.includes("minHeight")&&re&&(kt.minHeight=re),ae.includes("width")&&fe?kt.width=fe:ae.includes("minWidth")&&fe&&(kt.minWidth=fe)),me||(kt.pointerEvents="none"),x.createElement(Qe,{open:_e||Mt,getContainer:Re&&function(){return Re(P)},autoDestroy:at},x.createElement(M,{prefixCls:He,open:me,zIndex:Ge,mask:De,motion:ot}),x.createElement(ve.Z,{onResize:Ne,disabled:!me},function(ye){return x.createElement(U.default,(0,L.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_e,leavedClassName:"".concat(He,"-hidden")},Xe,{onAppearPrepare:k,onEnterPrepare:k,visible:me,onVisibleChanged:function(ht){var st;Xe==null||(st=Xe.onVisibleChanged)===null||st===void 0||st.call(Xe,ht),K(ht)}}),function(le,ht){var st=le.className,dt=le.style,Je=d()(He,st,Ce);return x.createElement("div",{ref:(0,Y.sQ)(ye,be,ht),className:Je,style:(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({"--arrow-x":"".concat(Ke.x||0,"px"),"--arrow-y":"".concat(Ke.y||0,"px")},E),kt),dt),{},{boxSizing:"border-box",zIndex:Ge},Z),onMouseEnter:_t,onMouseLeave:Dt,onPointerEnter:rt,onClick:ee,onPointerDownCapture:Kt},Te&&x.createElement(ne,{prefixCls:He,arrow:Te,arrowPos:Ke,align:ze}),x.createElement(D,{cache:!me&&!de},Se))})}))}),te=S,X=x.forwardRef(function(Pe,be){var B=Pe.children,Ce=Pe.getTriggerDOMNode,He=(0,Y.Yr)(B),Z=x.useCallback(function(K){(0,Y.mH)(be,Ce?Ce(K):K)},[Ce]),P=(0,Y.x1)(Z,(0,Y.C4)(B));return He?x.cloneElement(B,{ref:P}):B}),j=X,q=x.createContext(null),ue=q;function pe(Pe){return Pe?Array.isArray(Pe)?Pe:[Pe]:[]}function We(Pe,be,B,Ce){return x.useMemo(function(){var He=pe(B!=null?B:be),Z=pe(Ce!=null?Ce:be),P=new Set(He),K=new Set(Z);return Pe&&(P.has("hover")&&(P.delete("hover"),P.add("click")),K.has("hover")&&(K.delete("hover"),K.add("click"))),[P,K]},[Pe,be,B,Ce])}var G=w(29194);function N(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B=arguments.length>2?arguments[2]:void 0;return B?Pe[0]===be[0]:Pe[0]===be[0]&&Pe[1]===be[1]}function W(Pe,be,B,Ce){for(var He=B.points,Z=Object.keys(Pe),P=0;P<Z.length;P+=1){var K,me=Z[P];if(N((K=Pe[me])===null||K===void 0?void 0:K.points,He,Ce))return"".concat(be,"-placement-").concat(me)}return""}function $(Pe,be,B,Ce){return be||(B?{motionName:"".concat(Pe,"-").concat(B)}:Ce?{motionName:Ce}:null)}function ie(Pe){return Pe.ownerDocument.defaultView}function Q(Pe){for(var be=[],B=Pe==null?void 0:Pe.parentElement,Ce=["hidden","scroll","clip","auto"];B;){var He=ie(B).getComputedStyle(B),Z=He.overflowX,P=He.overflowY,K=He.overflow;[Z,P,K].some(function(me){return Ce.includes(me)})&&be.push(B),B=B.parentElement}return be}function g(Pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Pe)?be:Pe}function v(Pe){return g(parseFloat(Pe),0)}function z(Pe,be){var B=(0,p.Z)({},Pe);return(be||[]).forEach(function(Ce){if(!(Ce instanceof HTMLBodyElement||Ce instanceof HTMLHtmlElement)){var He=ie(Ce).getComputedStyle(Ce),Z=He.overflow,P=He.overflowClipMargin,K=He.borderTopWidth,me=He.borderBottomWidth,I=He.borderLeftWidth,de=He.borderRightWidth,ee=Ce.getBoundingClientRect(),De=Ce.offsetHeight,Te=Ce.clientHeight,Ke=Ce.offsetWidth,ze=Ce.clientWidth,Xe=v(K),ot=v(me),_e=v(I),Re=v(de),at=g(Math.round(ee.width/Ke*1e3)/1e3),Qe=g(Math.round(ee.height/De*1e3)/1e3),Ge=(Ke-ze-_e-Re)*at,_t=(De-Te-Xe-ot)*Qe,Dt=Xe*Qe,rt=ot*Qe,Kt=_e*at,fn=Re*at,Tt=0,Qt=0;if(Z==="clip"){var Be=v(P);Tt=Be*at,Qt=Be*Qe}var ke=ee.x+Kt-Tt,Ne=ee.y+Dt-Qt,k=ke+ee.width+2*Tt-Kt-fn-Ge,ae=Ne+ee.height+2*Qt-Dt-rt-_t;B.left=Math.max(B.left,ke),B.top=Math.max(B.top,Ne),B.right=Math.min(B.right,k),B.bottom=Math.min(B.bottom,ae)}}),B}function ce(Pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B="".concat(be),Ce=B.match(/^(.*)\%$/);return Ce?Pe*(parseFloat(Ce[1])/100):parseFloat(B)}function je(Pe,be){var B=be||[],Ce=(0,he.Z)(B,2),He=Ce[0],Z=Ce[1];return[ce(Pe.width,He),ce(Pe.height,Z)]}function Ye(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Pe[0],Pe[1]]}function It(Pe,be){var B=be[0],Ce=be[1],He,Z;return B==="t"?Z=Pe.y:B==="b"?Z=Pe.y+Pe.height:Z=Pe.y+Pe.height/2,Ce==="l"?He=Pe.x:Ce==="r"?He=Pe.x+Pe.width:He=Pe.x+Pe.width/2,{x:He,y:Z}}function bt(Pe,be){var B={t:"b",b:"t",l:"r",r:"l"};return Pe.map(function(Ce,He){return He===be?B[Ce]||"c":Ce}).join("")}function $t(Pe,be,B,Ce,He,Z,P){var K=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:He[Ce]||{}}),me=(0,he.Z)(K,2),I=me[0],de=me[1],ee=x.useRef(0),De=x.useMemo(function(){return be?Q(be):[]},[be]),Te=x.useRef({}),Ke=function(){Te.current={}};Pe||Ke();var ze=(0,b.Z)(function(){if(be&&B&&Pe){let Lr=function(Un,Dn){var bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ot,ur=Ut.x+Un,wr=Ut.y+Dn,Hr=ur+Ze,zr=wr+we,Vr=Math.max(ur,bn.left),Pn=Math.max(wr,bn.top),er=Math.min(Hr,bn.right),Er=Math.min(zr,bn.bottom);return Math.max(0,(er-Vr)*(Er-Pn))},Qn=function(){Et=Ut.y+kn,ct=Et+we,vt=Ut.x+Fn,Nt=vt+Ze};var _e,Re,at,Qe,Ge=be,_t=Ge.ownerDocument,Dt=ie(Ge),rt=Dt.getComputedStyle(Ge),Kt=rt.width,fn=rt.height,Tt=rt.position,Qt=Ge.style.left,Be=Ge.style.top,ke=Ge.style.right,Ne=Ge.style.bottom,k=Ge.style.overflow,ae=(0,p.Z)((0,p.Z)({},He[Ce]),Z),fe=_t.createElement("div");(_e=Ge.parentElement)===null||_e===void 0||_e.appendChild(fe),fe.style.left="".concat(Ge.offsetLeft,"px"),fe.style.top="".concat(Ge.offsetTop,"px"),fe.style.position=Tt,fe.style.height="".concat(Ge.offsetHeight,"px"),fe.style.width="".concat(Ge.offsetWidth,"px"),Ge.style.left="0",Ge.style.top="0",Ge.style.right="auto",Ge.style.bottom="auto",Ge.style.overflow="hidden";var re;if(Array.isArray(B))re={x:B[0],y:B[1],width:0,height:0};else{var Se,Mt,Rt=B.getBoundingClientRect();Rt.x=(Se=Rt.x)!==null&&Se!==void 0?Se:Rt.left,Rt.y=(Mt=Rt.y)!==null&&Mt!==void 0?Mt:Rt.top,re={x:Rt.x,y:Rt.y,width:Rt.width,height:Rt.height}}var Ut=Ge.getBoundingClientRect();Ut.x=(Re=Ut.x)!==null&&Re!==void 0?Re:Ut.left,Ut.y=(at=Ut.y)!==null&&at!==void 0?at:Ut.top;var hn=_t.documentElement,Le=hn.clientWidth,_=hn.clientHeight,H=hn.scrollWidth,E=hn.scrollHeight,Ie=hn.scrollTop,Ee=hn.scrollLeft,we=Ut.height,Ze=Ut.width,ut=re.height,kt=re.width,ye={left:0,top:0,right:Le,bottom:_},le={left:-Ee,top:-Ie,right:H-Ee,bottom:E-Ie},ht=ae.htmlRegion,st="visible",dt="visibleFirst";ht!=="scroll"&&ht!==dt&&(ht=st);var Je=ht===dt,gt=z(le,De),Lt=z(ye,De),Ot=ht===st?Lt:gt,lt=Je?Lt:Ot;Ge.style.left="auto",Ge.style.top="auto",Ge.style.right="0",Ge.style.bottom="0";var tt=Ge.getBoundingClientRect();Ge.style.left=Qt,Ge.style.top=Be,Ge.style.right=ke,Ge.style.bottom=Ne,Ge.style.overflow=k,(Qe=Ge.parentElement)===null||Qe===void 0||Qe.removeChild(fe);var Ct=g(Math.round(Ze/parseFloat(Kt)*1e3)/1e3),Jt=g(Math.round(we/parseFloat(fn)*1e3)/1e3);if(Ct===0||Jt===0||(0,oe.Sh)(B)&&!(0,G.Z)(B))return;var un=ae.offset,xn=ae.targetOffset,nn=je(Ut,un),tn=(0,he.Z)(nn,2),Fe=tn[0],it=tn[1],St=je(re,xn),mt=(0,he.Z)(St,2),Zt=mt[0],Ht=mt[1];re.x-=Zt,re.y-=Ht;var en=ae.points||[],sn=(0,he.Z)(en,2),vn=sn[0],_n=sn[1],An=Ye(_n),yn=Ye(vn),Zn=It(re,An),On=It(Ut,yn),zn=(0,p.Z)({},ae),Fn=Zn.x-On.x+Fe,kn=Zn.y-On.y+it,qn=Lr(Fn,kn),pn=Lr(Fn,kn,Lt),ln=It(re,["t","l"]),Me=It(Ut,["t","l"]),Pt=It(re,["b","r"]),mn=It(Ut,["b","r"]),Rn=ae.overflow||{},Kn=Rn.adjustX,xe=Rn.adjustY,nt=Rn.shiftX,qe=Rn.shiftY,$e=function(Dn){return typeof Dn=="boolean"?Dn:Dn>=0},Et,ct,vt,Nt;Qn();var Gt=$e(xe),et=yn[0]===An[0];if(Gt&&yn[0]==="t"&&(ct>lt.bottom||Te.current.bt)){var ft=kn;et?ft-=we-ut:ft=ln.y-mn.y-it;var yt=Lr(Fn,ft),Xt=Lr(Fn,ft,Lt);yt>qn||yt===qn&&(!Je||Xt>=pn)?(Te.current.bt=!0,kn=ft,it=-it,zn.points=[bt(yn,0),bt(An,0)]):Te.current.bt=!1}if(Gt&&yn[0]==="b"&&(Et<lt.top||Te.current.tb)){var Vt=kn;et?Vt+=we-ut:Vt=Pt.y-Me.y-it;var gn=Lr(Fn,Vt),jn=Lr(Fn,Vt,Lt);gn>qn||gn===qn&&(!Je||jn>=pn)?(Te.current.tb=!0,kn=Vt,it=-it,zn.points=[bt(yn,0),bt(An,0)]):Te.current.tb=!1}var Bn=$e(Kn),Vn=yn[1]===An[1];if(Bn&&yn[1]==="l"&&(Nt>lt.right||Te.current.rl)){var Gn=Fn;Vn?Gn-=Ze-kt:Gn=ln.x-mn.x-Fe;var Xn=Lr(Gn,kn),sr=Lr(Gn,kn,Lt);Xn>qn||Xn===qn&&(!Je||sr>=pn)?(Te.current.rl=!0,Fn=Gn,Fe=-Fe,zn.points=[bt(yn,1),bt(An,1)]):Te.current.rl=!1}if(Bn&&yn[1]==="r"&&(vt<lt.left||Te.current.lr)){var Ln=Fn;Vn?Ln+=Ze-kt:Ln=Pt.x-Me.x-Fe;var ar=Lr(Ln,kn),tr=Lr(Ln,kn,Lt);ar>qn||ar===qn&&(!Je||tr>=pn)?(Te.current.lr=!0,Fn=Ln,Fe=-Fe,zn.points=[bt(yn,1),bt(An,1)]):Te.current.lr=!1}Qn();var Jn=nt===!0?0:nt;typeof Jn=="number"&&(vt<Lt.left&&(Fn-=vt-Lt.left-Fe,re.x+kt<Lt.left+Jn&&(Fn+=re.x-Lt.left+kt-Jn)),Nt>Lt.right&&(Fn-=Nt-Lt.right-Fe,re.x>Lt.right-Jn&&(Fn+=re.x-Lt.right+Jn)));var nr=qe===!0?0:qe;typeof nr=="number"&&(Et<Lt.top&&(kn-=Et-Lt.top-it,re.y+ut<Lt.top+nr&&(kn+=re.y-Lt.top+ut-nr)),ct>Lt.bottom&&(kn-=ct-Lt.bottom-it,re.y>Lt.bottom-nr&&(kn+=re.y-Lt.bottom+nr)));var wn=Ut.x+Fn,_r=wn+Ze,rr=Ut.y+kn,or=rr+we,Sn=re.x,an=Sn+kt,Tn=re.y,Cn=Tn+ut,Hn=Math.max(wn,Sn),$n=Math.min(_r,an),dr=(Hn+$n)/2,vr=dr-wn,Fr=Math.max(rr,Tn),kr=Math.min(or,Cn),jr=(Fr+kr)/2,Br=jr-rr;P==null||P(be,zn);var Nr=tt.right-Ut.x-(Fn+Ut.width),ir=tt.bottom-Ut.y-(kn+Ut.height);Ct===1&&(Fn=Math.round(Fn),Nr=Math.round(Nr)),Jt===1&&(kn=Math.round(kn),ir=Math.round(ir));var br={ready:!0,offsetX:Fn/Ct,offsetY:kn/Jt,offsetR:Nr/Ct,offsetB:ir/Jt,arrowX:vr/Ct,arrowY:Br/Jt,scaleX:Ct,scaleY:Jt,align:zn};de(br)}}),Xe=function(){ee.current+=1;var Re=ee.current;Promise.resolve().then(function(){ee.current===Re&&ze()})},ot=function(){de(function(Re){return(0,p.Z)((0,p.Z)({},Re),{},{ready:!1})})};return(0,m.Z)(ot,[Ce]),(0,m.Z)(function(){Pe||ot()},[Pe]),[I.ready,I.offsetX,I.offsetY,I.offsetR,I.offsetB,I.arrowX,I.arrowY,I.scaleX,I.scaleY,I.align,Xe]}var Bt=w(80702);function Oe(Pe,be,B,Ce,He){(0,m.Z)(function(){if(Pe&&be&&B){let ee=function(){Ce(),He()};var Z=be,P=B,K=Q(Z),me=Q(P),I=ie(P),de=new Set([I].concat((0,Bt.Z)(K),(0,Bt.Z)(me)));return de.forEach(function(De){De.addEventListener("scroll",ee,{passive:!0})}),I.addEventListener("resize",ee,{passive:!0}),Ce(),function(){de.forEach(function(De){De.removeEventListener("scroll",ee),I.removeEventListener("resize",ee)})}}},[Pe,be,B])}var jt=w(48736);function En(Pe,be,B,Ce,He,Z,P,K){var me=x.useRef(Pe);me.current=Pe;var I=x.useRef(!1);x.useEffect(function(){if(be&&Ce&&(!He||Z)){var ee=function(){I.current=!1},De=function(at){var Qe;me.current&&!P(((Qe=at.composedPath)===null||Qe===void 0||(Qe=Qe.call(at))===null||Qe===void 0?void 0:Qe[0])||at.target)&&!I.current&&K(!1)},Te=ie(Ce);Te.addEventListener("pointerdown",ee,!0),Te.addEventListener("mousedown",De,!0),Te.addEventListener("contextmenu",De,!0);var Ke=(0,o.A)(B);if(Ke&&(Ke.addEventListener("mousedown",De,!0),Ke.addEventListener("contextmenu",De,!0)),0)var ze,Xe,ot,_e;return function(){Te.removeEventListener("pointerdown",ee,!0),Te.removeEventListener("mousedown",De,!0),Te.removeEventListener("contextmenu",De,!0),Ke&&(Ke.removeEventListener("mousedown",De,!0),Ke.removeEventListener("contextmenu",De,!0))}}},[be,B,Ce,He,Z]);function de(){I.current=!0}return de}var Yt=["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 cn(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge.Z,be=x.forwardRef(function(B,Ce){var He=B.prefixCls,Z=He===void 0?"rc-trigger-popup":He,P=B.children,K=B.action,me=K===void 0?"hover":K,I=B.showAction,de=B.hideAction,ee=B.popupVisible,De=B.defaultPopupVisible,Te=B.onPopupVisibleChange,Ke=B.afterPopupVisibleChange,ze=B.mouseEnterDelay,Xe=B.mouseLeaveDelay,ot=Xe===void 0?.1:Xe,_e=B.focusDelay,Re=B.blurDelay,at=B.mask,Qe=B.maskClosable,Ge=Qe===void 0?!0:Qe,_t=B.getPopupContainer,Dt=B.forceRender,rt=B.autoDestroy,Kt=B.destroyPopupOnHide,fn=B.popup,Tt=B.popupClassName,Qt=B.popupStyle,Be=B.popupPlacement,ke=B.builtinPlacements,Ne=ke===void 0?{}:ke,k=B.popupAlign,ae=B.zIndex,fe=B.stretch,re=B.getPopupClassNameFromAlign,Se=B.fresh,Mt=B.alignPoint,Rt=B.onPopupClick,Ut=B.onPopupAlign,hn=B.arrow,Le=B.popupMotion,_=B.maskMotion,H=B.popupTransitionName,E=B.popupAnimation,Ie=B.maskTransitionName,Ee=B.maskAnimation,we=B.className,Ze=B.getTriggerDOMNode,ut=(0,se.Z)(B,Yt),kt=rt||Kt||!1,ye=x.useState(!1),le=(0,he.Z)(ye,2),ht=le[0],st=le[1];(0,m.Z)(function(){st((0,y.Z)())},[]);var dt=x.useRef({}),Je=x.useContext(ue),gt=x.useMemo(function(){return{registerSubPopup:function(er,Er){dt.current[er]=Er,Je==null||Je.registerSubPopup(er,Er)}}},[Je]),Lt=(0,T.Z)(),Ot=x.useState(null),lt=(0,he.Z)(Ot,2),tt=lt[0],Ct=lt[1],Jt=x.useRef(null),un=(0,b.Z)(function(Pn){Jt.current=Pn,(0,oe.Sh)(Pn)&&tt!==Pn&&Ct(Pn),Je==null||Je.registerSubPopup(Lt,Pn)}),xn=x.useState(null),nn=(0,he.Z)(xn,2),tn=nn[0],Fe=nn[1],it=x.useRef(null),St=(0,b.Z)(function(Pn){(0,oe.Sh)(Pn)&&tn!==Pn&&(Fe(Pn),it.current=Pn)}),mt=x.Children.only(P),Zt=(mt==null?void 0:mt.props)||{},Ht={},en=(0,b.Z)(function(Pn){var er,Er,mr=tn;return(mr==null?void 0:mr.contains(Pn))||((er=(0,o.A)(mr))===null||er===void 0?void 0:er.host)===Pn||Pn===mr||(tt==null?void 0:tt.contains(Pn))||((Er=(0,o.A)(tt))===null||Er===void 0?void 0:Er.host)===Pn||Pn===tt||Object.values(dt.current).some(function(Ar){return(Ar==null?void 0:Ar.contains(Pn))||Pn===Ar})}),sn=$(Z,Le,E,H),vn=$(Z,_,Ee,Ie),_n=x.useState(De||!1),An=(0,he.Z)(_n,2),yn=An[0],Zn=An[1],On=ee!=null?ee:yn,zn=(0,b.Z)(function(Pn){ee===void 0&&Zn(Pn)});(0,m.Z)(function(){Zn(ee||!1)},[ee]);var Fn=x.useRef(On);Fn.current=On;var kn=x.useRef([]);kn.current=[];var qn=(0,b.Z)(function(Pn){var er;zn(Pn),((er=kn.current[kn.current.length-1])!==null&&er!==void 0?er:On)!==Pn&&(kn.current.push(Pn),Te==null||Te(Pn))}),pn=x.useRef(),ln=function(){clearTimeout(pn.current)},Me=function(er){var Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ln(),Er===0?qn(er):pn.current=setTimeout(function(){qn(er)},Er*1e3)};x.useEffect(function(){return ln},[]);var Pt=x.useState(!1),mn=(0,he.Z)(Pt,2),Rn=mn[0],Kn=mn[1];(0,m.Z)(function(Pn){(!Pn||On)&&Kn(!0)},[On]);var xe=x.useState(null),nt=(0,he.Z)(xe,2),qe=nt[0],$e=nt[1],Et=x.useState(null),ct=(0,he.Z)(Et,2),vt=ct[0],Nt=ct[1],Gt=function(er){Nt([er.clientX,er.clientY])},et=$t(On,tt,Mt&&vt!==null?vt:tn,Be,Ne,k,Ut),ft=(0,he.Z)(et,11),yt=ft[0],Xt=ft[1],Vt=ft[2],gn=ft[3],jn=ft[4],Bn=ft[5],Vn=ft[6],Gn=ft[7],Xn=ft[8],sr=ft[9],Ln=ft[10],ar=We(ht,me,I,de),tr=(0,he.Z)(ar,2),Jn=tr[0],nr=tr[1],wn=Jn.has("click"),_r=nr.has("click")||nr.has("contextMenu"),rr=(0,b.Z)(function(){Rn||Ln()}),or=function(){Fn.current&&Mt&&_r&&Me(!1)};Oe(On,tn,tt,rr,or),(0,m.Z)(function(){rr()},[vt,Be]),(0,m.Z)(function(){On&&!(Ne!=null&&Ne[Be])&&rr()},[JSON.stringify(k)]);var Sn=x.useMemo(function(){var Pn=W(Ne,Z,sr,Mt);return d()(Pn,re==null?void 0:re(sr))},[sr,re,Ne,Z,Mt]);x.useImperativeHandle(Ce,function(){return{nativeElement:it.current,popupElement:Jt.current,forceAlign:rr}});var an=x.useState(0),Tn=(0,he.Z)(an,2),Cn=Tn[0],Hn=Tn[1],$n=x.useState(0),dr=(0,he.Z)($n,2),vr=dr[0],Fr=dr[1],kr=function(){if(fe&&tn){var er=tn.getBoundingClientRect();Hn(er.width),Fr(er.height)}},jr=function(){kr(),rr()},Br=function(er){Kn(!1),Ln(),Ke==null||Ke(er)},Nr=function(){return new Promise(function(er){kr(),$e(function(){return er})})};(0,m.Z)(function(){qe&&(Ln(),qe(),$e(null))},[qe]);function ir(Pn,er,Er,mr){Ht[Pn]=function(Ar){var ni;mr==null||mr(Ar),Me(er,Er);for(var Cr=arguments.length,qr=new Array(Cr>1?Cr-1:0),ai=1;ai<Cr;ai++)qr[ai-1]=arguments[ai];(ni=Zt[Pn])===null||ni===void 0||ni.call.apply(ni,[Zt,Ar].concat(qr))}}(wn||_r)&&(Ht.onClick=function(Pn){var er;Fn.current&&_r?Me(!1):!Fn.current&&wn&&(Gt(Pn),Me(!0));for(var Er=arguments.length,mr=new Array(Er>1?Er-1:0),Ar=1;Ar<Er;Ar++)mr[Ar-1]=arguments[Ar];(er=Zt.onClick)===null||er===void 0||er.call.apply(er,[Zt,Pn].concat(mr))});var br=En(On,_r,tn,tt,at,Ge,en,Me),Lr=Jn.has("hover"),Qn=nr.has("hover"),Un,Dn;Lr&&(ir("onMouseEnter",!0,ze,function(Pn){Gt(Pn)}),ir("onPointerEnter",!0,ze,function(Pn){Gt(Pn)}),Un=function(er){(On||Rn)&&tt!==null&&tt!==void 0&&tt.contains(er.target)&&Me(!0,ze)},Mt&&(Ht.onMouseMove=function(Pn){var er;(er=Zt.onMouseMove)===null||er===void 0||er.call(Zt,Pn)})),Qn&&(ir("onMouseLeave",!1,ot),ir("onPointerLeave",!1,ot),Dn=function(){Me(!1,ot)}),Jn.has("focus")&&ir("onFocus",!0,_e),nr.has("focus")&&ir("onBlur",!1,Re),Jn.has("contextMenu")&&(Ht.onContextMenu=function(Pn){var er;Fn.current&&nr.has("contextMenu")?Me(!1):(Gt(Pn),Me(!0)),Pn.preventDefault();for(var Er=arguments.length,mr=new Array(Er>1?Er-1:0),Ar=1;Ar<Er;Ar++)mr[Ar-1]=arguments[Ar];(er=Zt.onContextMenu)===null||er===void 0||er.call.apply(er,[Zt,Pn].concat(mr))}),we&&(Ht.className=d()(Zt.className,we));var bn=(0,p.Z)((0,p.Z)({},Zt),Ht),ur={},wr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];wr.forEach(function(Pn){ut[Pn]&&(ur[Pn]=function(){for(var er,Er=arguments.length,mr=new Array(Er),Ar=0;Ar<Er;Ar++)mr[Ar]=arguments[Ar];(er=bn[Pn])===null||er===void 0||er.call.apply(er,[bn].concat(mr)),ut[Pn].apply(ut,mr)})});var Hr=x.cloneElement(mt,(0,p.Z)((0,p.Z)({},bn),ur)),zr={x:Bn,y:Vn},Vr=hn?(0,p.Z)({},hn!==!0?hn:{}):null;return x.createElement(x.Fragment,null,x.createElement(ve.Z,{disabled:!On,ref:St,onResize:jr},x.createElement(j,{getTriggerDOMNode:Ze},Hr)),x.createElement(ue.Provider,{value:gt},x.createElement(te,{portal:Pe,ref:un,prefixCls:Z,popup:fn,className:d()(Tt,Sn),style:Qt,target:tn,onMouseEnter:Un,onMouseLeave:Dn,onPointerEnter:Un,zIndex:ae,open:On,keepDom:Rn,fresh:Se,onClick:Rt,onPointerDownCapture:br,mask:at,motion:sn,maskMotion:vn,onVisibleChanged:Br,onPrepare:Nr,forceRender:Dt,autoDestroy:kt,getPopupContainer:_t,align:sr,arrow:Vr,arrowPos:zr,ready:yt,offsetX:Xt,offsetY:Vt,offsetR:gn,offsetB:jn,onAlign:rr,stretch:fe,targetWidth:Cn/Gn,targetHeight:vr/Xn})))});return be}var pt=cn(ge.Z)},25114:function(In,Wt,w){"use strict";var p=w(59301),he=Object.defineProperty,se=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,d=(o,b,T)=>b in o?he(o,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[b]=T,ve=(o,b)=>{for(var T in b||(b={}))ge.call(b,T)&&d(o,T,b[T]);if(se)for(var T of se(b))O.call(b,T)&&d(o,T,b[T]);return o};const oe=o=>React.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#F7B500",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm1 3H6.395a3.501 3.501 0 0 1-.857 1.245c-.32.294-.752.551-1.297.772L4 9.109V10.9c.448-.154.82-.315 1.117-.483.222-.126.45-.282.685-.466l.236-.194V15H8V7ZM4.812 0c.175 0 .35.16.438.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.663 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));Wt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},73666:function(In,Wt,w){"use strict";var p=w(59301),he=Object.defineProperty,se=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,d=(o,b,T)=>b in o?he(o,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[b]=T,ve=(o,b)=>{for(var T in b||(b={}))ge.call(b,T)&&d(o,T,b[T]);if(se)for(var T of se(b))O.call(b,T)&&d(o,T,b[T]);return o};const oe=o=>React.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#B9C4CF",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm.05 3c-.675 0-1.203.092-1.584.276a2.056 2.056 0 0 0-.887.794c-.18.296-.31.691-.394 1.186l-.038.255 2.004.177c.055-.443.164-.753.326-.928a.814.814 0 0 1 .626-.263.81.81 0 0 1 .611.255c.162.17.243.375.243.614 0 .222-.081.456-.245.703-.164.247-.539.608-1.124 1.084-.96.776-1.613 1.45-1.962 2.02a4.363 4.363 0 0 0-.588 1.552L4 15h6v-1.781H6.877c.184-.197.343-.356.479-.478.136-.122.405-.334.808-.638.677-.523 1.145-1.002 1.401-1.438.257-.437.386-.895.386-1.374 0-.45-.112-.858-.336-1.22a2.043 2.043 0 0 0-.924-.808C8.301 7.088 7.753 7 7.05 7ZM4.812 0c.175 0 .35.16.437.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.662 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));Wt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},60874:function(In,Wt,w){"use strict";var p=w(59301),he=Object.defineProperty,se=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,d=(o,b,T)=>b in o?he(o,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[b]=T,ve=(o,b)=>{for(var T in b||(b={}))ge.call(b,T)&&d(o,T,b[T]);if(se)for(var T of se(b))O.call(b,T)&&d(o,T,b[T]);return o};const oe=o=>React.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#D09F18",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm-.062 3c-.826 0-1.464.172-1.915.517-.4.307-.686.733-.856 1.278l-.058.21 1.908.364c.052-.383.153-.651.302-.804a.772.772 0 0 1 .58-.23c.23 0 .412.07.544.211.133.14.199.33.199.565a.88.88 0 0 1-.265.638.89.89 0 0 1-.662.27 1.35 1.35 0 0 1-.158-.012l-.104-.015-.105 1.536c.278-.085.496-.127.654-.127.298 0 .533.099.707.296.173.197.26.475.26.833 0 .352-.09.634-.27.845a.852.852 0 0 1-.677.316.862.862 0 0 1-.636-.25c-.143-.144-.254-.384-.333-.723l-.036-.177L4 12.826c.132.482.321.882.567 1.2.246.319.56.56.942.726.381.165.902.248 1.563.248.677 0 1.224-.112 1.64-.335.416-.223.735-.542.956-.955.221-.414.332-.845.332-1.296 0-.359-.067-.667-.2-.926a1.633 1.633 0 0 0-.563-.625c-.149-.099-.363-.185-.644-.259.347-.204.606-.441.778-.712a1.66 1.66 0 0 0 .257-.908 1.82 1.82 0 0 0-.634-1.42C8.571 7.189 7.886 7 6.938 7ZM4.813 0c.175 0 .35.17.437.338l1.313 2.453s-2.8.17-4.463 1.776L.088.761C0 .677 0 .592 0 .507 0 .17.263 0 .525 0Zm8.662 0c.263 0 .525.254.525.507 0 .085 0 .17-.088.254L11.9 4.483C10.238 2.96 7.437 2.79 7.437 2.79L8.75.338C8.75.17 8.925 0 9.188 0Z"}));Wt.Z="data:image/svg+xml;base64,PHN2Z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YzMyAxLjYzMyAwIDAgMC0uNTYzLS42MjVjLS4xNDktLjA5OS0uMzYzLS4xODUtLjY0NC0uMjU5LjM0Ny0uMjA0LjYwNi0uNDQxLjc3OC0uNzEyYTEuNjYgMS42NiAwIDAgMCAuMjU3LS45MDggMS44MiAxLjgyIDAgMCAwLS42MzQtMS40MkM4LjU3MSA3LjE4OSA3Ljg4NiA3IDYuOTM4IDdaTTQuODEzIDBjLjE3NSAwIC4zNS4xNy40MzcuMzM4bDEuMzEzIDIuNDUzcy0yLjguMTctNC40NjMgMS43NzZMLjA4OC43NjFDMCAuNjc3IDAgLjU5MiAwIC41MDcgMCAuMTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},63604:function(In,Wt,w){"use strict";var p=w(59301),he=w(93314),se=w(99571),ge=Object.defineProperty,O=Object.defineProperties,d=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,b=(x,L,U)=>L in x?ge(x,L,{enumerable:!0,configurable:!0,writable:!0,value:U}):x[L]=U,T=(x,L)=>{for(var U in L||(L={}))oe.call(L,U)&&b(x,U,L[U]);if(ve)for(var U of ve(L))o.call(L,U)&&b(x,U,L[U]);return x},m=(x,L)=>O(x,d(L));const y=({img:x,buttonProps:L={},styles:U={},customText:Y,ButtonText:ne,ButtonClick:M,Buttonclass:F,ButtonTwo:D,imgStyles:S,loading:te=!1,className:X=""})=>p.createElement("section",{className:`tc animated fadeIn ${X}`,style:T({color:"#999",margin:"100px auto",visibility:te?"hidden":"visible"},U)},p.createElement("img",{src:x||he,style:m(T({},S),{pointerEvents:"none",userSelect:"none"})}),p.createElement("p",{className:"mt20 font14"},Y||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ne&&p.createElement(se.ZP,T({className:F,onClick:M},L),ne),D&&D);Wt.Z=y},23416:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return F}});var p=w(59301),he={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=w(99571),ge=w(70557),O=w(58531),d=w(25399),ve=w(89299),oe=w(68606),o=w(63604),b=w(13952),T=w(59669),m=w(59301),y=Object.defineProperty,x=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,Y=(D,S,te)=>S in D?y(D,S,{enumerable:!0,configurable:!0,writable:!0,value:te}):D[S]=te,ne=(D,S)=>{for(var te in S||(S={}))L.call(S,te)&&Y(D,te,S[te]);if(x)for(var te of x(S))U.call(S,te)&&Y(D,te,S[te]);return D},M=(D,S,te)=>new Promise((X,j)=>{var q=We=>{try{pe(te.next(We))}catch(G){j(G)}},ue=We=>{try{pe(te.throw(We))}catch(G){j(G)}},pe=We=>We.done?X(We.value):Promise.resolve(We.value).then(q,ue);pe((te=te.apply(D,S)).next())}),F=({editOffice:D="view",data:S,theme:te,type:X,filename:j,monacoEditor:q,className:ue,style:pe,close:We,onClose:G,hasMask:N,disabledDownload:W,onImgDimensions:$,showNodata:ie,recordInfo:Q})=>{const[g,v]=(0,p.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[z,ce]=(0,p.useState)(""),[je,Ye]=(0,p.useState)(),It=window.ENV==="build"?"/react/build":"",bt=location.host.startsWith("localhost")?b.Z.PROXY_SERVER:b.Z.API_SERVER,Bt=10*(1024*1024),Oe=(0,p.useRef)();S!=null&&S.startsWith("/api")&&X!=="txt"&&(S=b.Z.API_SERVER+S);const jt=pt=>pt.substring(pt.lastIndexOf("/")+1).split(".").pop();j&&q&&(q.filename=j),(0,p.useEffect)(()=>{var pt,Pe;const be=(Pe=(pt=document.cookie)==null?void 0:pt.replace(/\s/g,""))==null?void 0:Pe.split(";");be==null||be.map(B=>{let Ce=B.split("=");Ce[0]==="_educoder_session"&&ce(Ce[1])})},[]),(0,p.useEffect)(()=>{X==="office"&&(S.indexOf("bigfilescdn.")>-1||S.indexOf("bigfiles1")>-1?Ye({url:S,fileType:jt(S),model:S.indexOf("model=edit")?"edit":"view"}):En())},[X,S]);const En=()=>M(void 0,null,function*(){console.log("data:",S);let pt=S;S.startsWith("http")||(pt=location.origin+pt);let Pe=new URL(pt).pathname.split("/").pop();const be=yield(0,oe.gJ)({attachment_id:Pe});be.url=bt+be.url,Ye(be)}),Yt=()=>{if(S.startsWith("http")||S.startsWith("blob:")){cn();return}(0,ve.Sv)(j||"educoder",S,j)},cn=()=>{Q&&(0,T.fc)({id:Q==null?void 0:Q.id,watch_type:1,course_id:Q==null?void 0:Q.course_id}),(0,ve.Nd)(j||"educoder",decodeURIComponent(S))};return m.createElement("div",{style:ne({},pe||{}),className:`${N&&he.bgBlack} ${X?he.wrp:"hide"}`},We&&m.createElement("div",{className:he.close,ref:Oe},!!$&&m.createElement(d.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Oe.current},m.createElement("span",{onClick:()=>{G(),$()}},m.createElement("i",{className:"icon-yulanpizhu"}))),!W&&m.createElement(d.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Oe.current},m.createElement("span",{onClick:cn},m.createElement("i",{className:"icon-quxiaozhiding"}))),m.createElement(d.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Oe.current},m.createElement("span",{className:"",onClick:G},m.createElement("i",{className:"icon-guanbi1"})))),m.createElement("div",{className:`${he[ue]} ${ue} ${he.monaco} ${X==="txt"?"show":"hide"}`},X==="txt"&&m.createElement(m.Fragment,null,m.createElement(O.ZP,ne({},q)))),X==="audio"&&m.createElement("audio",{src:`${(S==null?void 0:S.indexOf("http://"))>-1||(S==null?void 0:S.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${S}`,autoPlay:!0}),X==="video"&&m.createElement(m.Fragment,null,(S==null?void 0:S.indexOf("http"))>-1?m.createElement("video",{controls:!0,src:`${S}`,autoPlay:!0}):m.createElement("video",{controls:!0,src:`data:video/mp4;base64,${S}`,autoPlay:!0})),X==="office"&&je&&m.createElement("iframe",{src:`${It}/office.html?key=${je.key}&url=${btoa(je.url)}&callbackUrl=${bt+(je.callbackUrl||"")}&fileType=${je.fileType}&title=${je.title||""}&model=${D}&officeServer=${b.Z.ONLYOFFICE}&disabledDownload=${!!W}`}),X==="html"&&m.createElement("iframe",{src:S+"&disposition=inline"}),X==="pdf"&&m.createElement("iframe",{src:`${It}/js/pdfview/index.html?filename=${j||"educoder.pdf"}&url=${encodeURIComponent(S)}&disabledDownload=${!!W}`}),X==="image"&&m.createElement("img",{src:`${(S==null?void 0:S.indexOf("http://"))>-1||(S==null?void 0:S.indexOf("https://"))>-1?"":"data:image/png;base64,"}${S}`}),(X==="other"||X==="download")&&m.createElement(m.Fragment,null,ie?m.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:m.createElement(se.ZP,{icon:m.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Yt,disabled:W},"\u4E0B\u8F7D")}):m.createElement(se.ZP,{type:"primary",size:"middle",onClick:Yt,disabled:W},m.createElement(ge.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},98573:function(In,Wt,w){"use strict";w.d(Wt,{z:function(){return X},Z:function(){return j}});var p=w(59301),he=w(14752),se=w(48421),ge=w(64018),O=w(79710),d=w(13952),ve=w(89299),oe=w(15342),o=w(1012),b=w(23416),T=w(59301),y=({html:q})=>{const ue=(0,p.useRef)(null),pe=(0,p.useRef)(null),We=`.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 G=ue.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=q,G.appendChild(pe.current);const N=document.createElement("style");return N.textContent=We,G.appendChild(N),()=>{G.innerHTML=""}},[]),(0,p.useEffect)(()=>{pe.current&&(pe.current.innerHTML=q)},[q]),T.createElement("div",{ref:ue})},x=Object.defineProperty,L=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,ne=(q,ue,pe)=>ue in q?x(q,ue,{enumerable:!0,configurable:!0,writable:!0,value:pe}):q[ue]=pe,M=(q,ue)=>{for(var pe in ue||(ue={}))U.call(ue,pe)&&ne(q,pe,ue[pe]);if(L)for(var pe of L(ue))Y.call(ue,pe)&&ne(q,pe,ue[pe]);return q};const F="@\u2581\u2581@",D="@\u2581@",S=/<pre[^>]*>/g;function te(q){let ue=document.createElement("div");return ue.innerHTML=q,ue.childNodes.length===0?"":ue.childNodes[0].nodeValue}const X=(q,ue)=>{q=q||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,We=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,G=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,N=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ue?q.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(W,$,ie,Q,g,v,z)=>{const ce=$||Q||v,je=ie||g||z||"?";return d.Z.API_SERVER+"/api/attachments/"+ce+je+"&t="+(0,ve.Jn)(ce,Date.now())+(W.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(q=q.replace(N,(W,$,ie,Q,g,v,z)=>{const ce=$||Q||v,je=ie||g||z||"?";return d.Z.API_SERVER+"/attachments/download/"+ce+je+"&t="+(0,ve.Jn)(ce,Date.now())+(W.indexOf(")")>-1?")":"&")}).replace(pe,(W,$,ie,Q,g,v,z)=>{const ce=$||Q||v,je=ie||g||z||"?";return d.Z.API_SERVER+"/api/attachments/"+ce+je+"&t="+(0,ve.Jn)(ce,Date.now())+(W.indexOf(")")>-1?")":"&")}).replace(We,(W,$,ie,Q,g)=>{const v=$||Q,z=ie||g||"";return'"'+d.Z.API_SERVER+"/api/attachments/"+v+z+v+z+"&t="+(0,ve.Jn)(v,Date.now())}).replace(G,(W,$,ie,Q,g)=>{const v=$||Q,z=ie||g||"";return"("+d.Z.API_SERVER+"/files/uploads/"+v+z+v+z+"&t="+(0,ve.Jn)(v,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,`
|
|
`),q)};var j=({value:q="",className:ue,showTextOnly:pe,showLines:We,style:G={},stylesPrev:N={},highlightKeywords:W,showProgramFill:$,isProgramFill:ie,disabledFill:Q=!1,programFillValue:g,onFillChange:v=je=>{},onFillBlur:z=()=>{},onFillFocus:ce=()=>{}})=>{let je=String(q);const[Ye,It]=(0,p.useState)(""),[bt,$t]=(0,p.useState)("office"),[Bt,Oe]=(0,p.useState)([]),jt=(0,p.useRef)("a"+(0,o.Z)()),En={},Yt=(I,de,ee)=>{const De=document.createElement(I===D?"input":"textarea");De.style.width="100%",De.style.height=I===D?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=de;const Te=Object.keys(En).length;return En[Te]=De,`<span class="edu-program-fill-wrap ${I===D?"":"show"}" style="width:${I===D?"400px":"100%"}" title=${ee||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function cn(I){return I=I.replace(/!\[.*?\]\(.*?\)/g,""),I=I.replace(/\[.*?\]\(.*?\)/g,""),I=I.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),I=I.replace(/<embed.*?>/g,""),I=I.replace(/<img.*?>/g,""),I=I.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),I=I.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),I=I.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),I=I.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),I}const pt=I=>I.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(de,ee){let De=ee.replace(/(\n|\r)/g,"").split("}"),Te=[];return De.map(Ke=>{Ke!=""&&Te.push(`.${jt.current} ${Ke}`)}),`<style>${Te.join("}")}</style>`}),Pe=(0,p.useMemo)(()=>{try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Te=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ke=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ze=/\(\/attachments\/download\//g;je=je.replace(ze,"("+d.Z.API_SERVER+"/attachments/download/").replace(De,"("+d.Z.API_SERVER+"/api/attachments/").replace(Te,'"'+d.Z.API_SERVER+"/api/attachments/").replace(Ke,'"'+d.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($){let De=-1;return je=je.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Te,Ke,ze){var Xe;return++De,Yt(Te,De,(Xe=g==null?void 0:g[De])==null?void 0:Xe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${pt(je||"")}</pre>`}let I=pt(je);I=(0,se.ZP)(I);const de=(0,se.ez)();je.match(/\[TOC\]/)&&(I=I.replace("<p>[TOC]</p>",(0,se.Qv)()),(0,se.Iy)()),I=I.replace(/(__special_katext_id_\d+__)/g,(De,Te)=>{const{type:Ke,expression:ze}=de[Te];return(0,oe.renderToString)(te(ze)||"",{displayMode:Ke==="block",throwOnError:!1,output:"html"})}),I=I.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const ee=document.createElement("div");if(ee.innerHTML=I,pe)return ee.innerText;if(W){const De=W.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return He(ee,De),ee.innerHTML}return setTimeout(()=>K(),500),ee.innerHTML},[je,W]);(0,p.useEffect)(()=>{Z.current&&Z.current.querySelectorAll(["input","textarea"]).forEach(de=>{de.oninput=be,de.onblur=B,de.onfocus=Ce})},[Bt]),(0,p.useEffect)(()=>{var I,de,ee,De,Te;if(g!=null&&g.length)try{const Ke=Z.current.querySelectorAll(".edu-program-fill-score"),ze=Z.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xe,ot]of ze.entries())ot.value=((I=g==null?void 0:g[Xe])==null?void 0:I.value)||"",((de=g==null?void 0:g[Xe])==null?void 0:de.type)==="warning"?ot.className="program-fill-warning":((ee=g==null?void 0:g[Xe])==null?void 0:ee.type)==="success"?ot.className="program-fill-success":ot.className="";for(const[Xe,ot]of Ke.entries())ot.innerHTML=(De=g==null?void 0:g[Xe])!=null&&De.score?`${(Te=g==null?void 0:g[Xe])==null?void 0:Te.score}\u5206`:"";Oe(g)}catch(Ke){console.log(Ke,"error")}},[g]);const be=I=>{Bt[I.target.dataset.id]=Bt[I.target.dataset.id]||{},Bt[I.target.dataset.id].value=I.target.value,Oe([...Bt]),v(Bt,I.target.dataset.id)},B=I=>{Bt[I.target.dataset.id]=Bt[I.target.dataset.id]||{},Bt[I.target.dataset.id].value=I.target.value,Oe([...Bt]),z(Bt,I.target.dataset.id)},Ce=I=>{Bt[I.target.dataset.id]=Bt[I.target.dataset.id]||{},Bt[I.target.dataset.id].value=I.target.value,Oe([...Bt]),ce(Bt,I.target.dataset.id)};function He(I,de){return I.childNodes.forEach(ee=>{var De;if(ee.childNodes.length>0)He(ee,de);else if(ee.nodeName!=="IMG")if(ee.innerHTML)ee.innerHTML=(De=ee.innerHTML)==null?void 0:De.replace(new RegExp(de,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Te=document.createElement("span");Te.innerHTML=ee.textContent.replace(new RegExp(de,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ee.replaceWith(Te)}})}const Z=(0,p.useRef)();se.jb.WebkitLineClamp=We,We&&(G=M(M({},G),se.jb));function P(I){let de=I.target;if(de.tagName.toUpperCase()==="A"){let ee=de.getAttribute("href");if(ee.indexOf("office")>-1)I.preventDefault(),It(ee),$t("office");else if(ee.indexOf("application/pdf")>-1)I.preventDefault(),It(ee),$t("pdf");else if(ee.indexOf("text/html")>-1)I.preventDefault(),It(ee),$t("html");else if(ee.startsWith("#")){I.preventDefault();let De=document.getElementById(ee.replace("#",""));De&&De.scrollIntoView(!0)}}}const K=()=>{var I;const de=(I=Z.current)==null?void 0:I.querySelectorAll("video");de==null||de.forEach(ee=>{if(ee.oncontextmenu=()=>!1,ee.src.indexOf(".m3u8")>-1&&!ee.canPlayType("application/vnd.apple.mpegurl")){if(O.ZP.isSupported()){var De=new O.ZP;De.loadSource(ee.src),De.attachMedia(ee)}}})};(0,p.useEffect)(()=>{if(Z.current&&Pe&&Pe.match(S)&&window.PR.prettyPrint(),Z.current)return Z.current.addEventListener("click",P),()=>{var I;(I=Z.current)==null||I.removeEventListener("click",P),(0,se.AL)(),(0,se.Iy)()}},[Pe,Z.current,P]),(0,p.useEffect)(()=>{var I;const de=ee=>{ee.preventDefault(),ee.clipboardData.setData("text",window.getSelection().toString())};return(I=Z.current)==null||I.addEventListener("copy",de),()=>{var ee;(ee=Z.current)==null||ee.removeEventListener("copy",de)}},[Z.current]);const me=I=>/<style[\s\S]*?>/i.test(I||"");return p.createElement(p.Fragment,null,pe&&p.createElement("div",{ref:Z},Pe),!pe&&!me(Pe)&&p.createElement("div",{ref:Z,style:M({},G),className:`${ue||""} ${Q?"disabled-fill":""} markdown-body ${jt.current}`,dangerouslySetInnerHTML:{__html:Pe}}),!pe&&me(Pe)&&p.createElement(y,{html:Pe}),p.createElement(b.Z,{close:!0,data:Ye,type:Ye!=null&&Ye.length?bt:"",style:M({},N),onClose:()=>It("")}))}},58531:function(In,Wt,w){"use strict";w.d(Wt,{SV:function(){return P},ZP:function(){return Z}});var p=w(59301),he=w(76374);const se={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},ge={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"]},O={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(`
|
|
`)}]},d={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(`
|
|
`)}]},ve={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 oe=w(53184),o=w.n(oe),b=Object.defineProperty,T=Object.defineProperties,m=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,U=(K,me,I)=>me in K?b(K,me,{enumerable:!0,configurable:!0,writable:!0,value:I}):K[me]=I,Y=(K,me)=>{for(var I in me||(me={}))x.call(me,I)&&U(K,I,me[I]);if(y)for(var I of y(me))L.call(me,I)&&U(K,I,me[I]);return K},ne=(K,me)=>T(K,m(me)),M=(K,me,I)=>new Promise((de,ee)=>{var De=ze=>{try{Ke(I.next(ze))}catch(Xe){ee(Xe)}},Te=ze=>{try{Ke(I.throw(ze))}catch(Xe){ee(Xe)}},Ke=ze=>ze.done?de(ze.value):Promise.resolve(ze.value).then(De,Te);Ke((I=I.apply(K,me)).next())});const F={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"]}},D=(K,me)=>me.map(I=>({label:I,kind:K.languages.CompletionItemKind.Keyword,insertText:I})),S=K=>Object.keys(F.tables).map(me=>({label:me,kind:K.languages.CompletionItemKind.Variable,insertText:me})),te=(K,me)=>{const I=F.tables[K];return I?I.map(de=>({label:de,kind:me.languages.CompletionItemKind.Field,insertText:de})):[]};function X(K,me,I,de,ee){let De=me.getWordUntilPosition(I),Te={startLineNumber:I.lineNumber,endLineNumber:I.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Ke=de.map(ze=>({label:ze,kind:K.languages.CompletionItemKind.Keyword,insertText:ze,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}));return ee.map(ze=>{Ke.push(ne(Y({},ze),{range:Te}))}),Ke}var j=K=>{F.languages.map(ee=>(K.languages.registerDocumentFormattingEditProvider(ee,{provideDocumentFormattingEdits(De,Te,Ke){return M(this,null,function*(){const ze=o()(De.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:De.getFullModelRange(),text:ze}]})}}),ee));const me=O.quickKey.map(ee=>({label:ee.label,kind:K.languages.CompletionItemKind.Method,insertText:ee.content,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet})),I=d.quickKey.map(ee=>({label:ee.label,kind:K.languages.CompletionItemKind.Method,insertText:ee.content,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet})),de=ge.quickKey.map(ee=>({label:ee.label,kind:K.languages.CompletionItemKind.Method,insertText:ee.content,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet}));K.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ee,De){var Te=ee.getWordUntilPosition(De),Ke={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},ze=ee.getLineContent(De.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...O.keywords.map(Xe=>({label:Xe,kind:K.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...O.quickKey.map(Xe=>({label:Xe.label,kind:K.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ze.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),K.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ee,De){var Te=ee.getWordUntilPosition(De),Ke={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn};return{suggestions:[...se.keywords.map(ze=>({label:ze,kind:K.languages.CompletionItemKind.Function,documentation:ze,insertText:ze,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),K.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ee,De){var Te=ee.getWordUntilPosition(De),Ke={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},ze=ee.getLineContent(De.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...ge.keywords.map(Xe=>({label:Xe,kind:K.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...ge.quickKey.map(Xe=>({label:Xe.label,kind:K.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ze.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),K.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ee,De){var Te=ee.getWordUntilPosition(De),Ke={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},ze=ee.getLineContent(De.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...ve.keywords.map(Xe=>({label:Xe,kind:K.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...ve.quickKey.map(Xe=>({label:Xe.label,kind:K.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ze.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}}),K.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ee,De){var Te=ee.getWordUntilPosition(De),Ke={startLineNumber:De.lineNumber,endLineNumber:De.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},ze=ee.getLineContent(De.lineNumber).substring(Te.startColumn-2,Te.endColumn);return{suggestions:[...d.keywords.map(Xe=>({label:Xe,kind:K.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke})),...d.quickKey.map(Xe=>({label:Xe.label,kind:K.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:ze.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:K.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}))]}}})};const q="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ue=Object.defineProperty,pe=(K,me,I)=>me in K?ue(K,me,{enumerable:!0,configurable:!0,writable:!0,value:I}):K[me]=I,We=(K,me,I)=>pe(K,typeof me!="symbol"?me+"":me,I);const G=class pl{constructor(me,I,de){this.placeholder=me,this.editor=I,this.monaco=de,I.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return pl.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)}};We(G,"ID","editor.widget.placeholderHint");var W=G,$=w(96236),ie=w(6767),Q=w(25399),g=w(89392),v=w(41312),z=w(56102),ce=Object.defineProperty,je=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Bt=(K,me,I)=>me in K?ce(K,me,{enumerable:!0,configurable:!0,writable:!0,value:I}):K[me]=I,Oe=(K,me)=>{for(var I in me||(me={}))bt.call(me,I)&&Bt(K,I,me[I]);if(It)for(var I of It(me))$t.call(me,I)&&Bt(K,I,me[I]);return K},jt=(K,me)=>je(K,Ye(me)),En=(K,me)=>{var I={};for(var de in K)bt.call(K,de)&&me.indexOf(de)<0&&(I[de]=K[de]);if(K!=null&&It)for(var de of It(K))me.indexOf(de)<0&&$t.call(K,de)&&(I[de]=K[de]);return I},Yt=(K,me,I)=>new Promise((de,ee)=>{var De=ze=>{try{Ke(I.next(ze))}catch(Xe){ee(Xe)}},Te=ze=>{try{Ke(I.throw(ze))}catch(Xe){ee(Xe)}},Ke=ze=>ze.done?de(ze.value):Promise.resolve(ze.value).then(De,Te);Ke((I=I.apply(K,me)).next())});function cn(K){return/^\d+$/.test(K)?`${K}px`:K}function pt(){}let Pe=!1;const be={"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 B(K=[]){let me=K;if(Array.isArray(K)){for(let I=0;I<K.length;I++){let de=be[K[I]];if(de)return de}return me[0]}return be[me]||me}let Ce=null;const He=()=>Yt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(K){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",K)}});var Z=K=>{var me=K,{width:I="100%",height:de="100%",value:ee,language:De="javascript",style:Te={},options:Ke={},overrideServices:ze={},theme:Xe="vs-dark",onEditBlur:ot,isCopy:_e=!1,onSave:Re,autoHeight:at=!1,forbidCopy:Qe=!1,onChange:Ge=pt,editorDidMount:_t=pt,onFocus:Dt=pt,onBreakPoint:rt=pt,breakPointValue:Kt=[],filename:fn="educoder.txt",errorLine:Tt,errorContent:Qt="",highlightLine:Be,openBreakPoint:ke=!1,placeholder:Ne="",showMiniMap:k=!0}=me,ae=En(me,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const fe=(0,p.useRef)(),re=(0,p.useRef)({}),Se=(0,p.useRef)(),Mt=(0,p.useRef)(),Rt=(0,p.useRef)([]),Ut=(0,p.useRef)(!1),hn=(0,p.useRef)(),Le=(0,p.useRef)(),_=(0,p.useRef)(!1),[H,E]=(0,p.useState)(!1);function Ie(){let lt;return fe.current&&(lt=new he.Z(tt=>{for(let Ct of tt)(Ct.target.offsetHeight>0||Ct.target.offsetWidth>0)&&re.current.instance.layout()}),lt.observe(fe.current)),lt}function Ee(){ie.ZP.warning({content:decodeURIComponent(q),key:"monaco-editor-tip"})}const we=()=>{let lt=re.current.instance;if(ee!=null&<&&H){const tt=lt.getModel();tt&&ee!==tt.getValue()&&(Pe=!0,tt.setValue(ee),lt.layout(),Pe=!1)}};(0,p.useEffect)(()=>{const lt=v.Z.subscribe("formatDocument",tt=>{var Ct;let Jt=re.current.instance;(Ct=Jt==null?void 0:Jt.getAction)==null||Ct.call(Jt,"editor.action.formatDocument").run()});return window.updateMonacoValue=tt=>{Ge(tt)},lt},[]),(0,p.useEffect)(()=>{var lt;let tt=re.current.instance;Mt.current&&clearTimeout(Mt.current),Mt.current=setTimeout(()=>{we()},500),ee&&(ee!=null&&ee.length)&&((lt=tt==null?void 0:tt.updateOptions)==null||lt.call(tt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ee.split(/\r\n|\r|\n/g).length))+3,5)}))},[ee,H,re.current]),(0,p.useEffect)(()=>{if(Tt&&re.current&&re.current.instance){let tt=re.current.instance;tt.changeViewZones(function(Ct){var Jt=document.createElement("div");Jt.style.padding="10px 20px",Jt.style.width="calc(100% - 20px)",Jt.className="my-error-line-wrp",Jt.innerHTML=Qt,Ct.addZone({afterLineNumber:Tt||11,heightInLines:3,domNode:Jt})});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}};tt.addOverlayWidget(lt),tt.revealPositionInCenter({lineNumber:20,column:1})}},[Tt,re.current,H]);const Ze=(lt="",tt)=>{if(!lt||lt.trim()==="")return!0;const Jt=re.current.instance.getModel().getLineTokens(tt);let un=!1;for(let xn=0;xn<2;xn++)Jt.getStandardTokenType(xn)===1&&(un=!0);return un};(0,p.useEffect)(()=>{var lt;const tt=(lt=re.current)==null?void 0:lt.instance;if(tt&&H&&Qe){const Ct=tt.onDidBlurEditorWidget(()=>{_.current=!1}),Jt=tt.onDidFocusEditorText(()=>{_.current=!0});return()=>{Ct.dispose(),Jt.dispose()}}},[re.current,H,Qe]),(0,p.useEffect)(()=>{var lt;if((lt=re.current)!=null&<.instance&&H&&ke){let tt=re.current.instance,Ct=tt.getModel();if(!Ct)return;(()=>{var en;let sn=[],vn=[];const _n=Ct.getAllDecorations();for(let yn of _n)yn.options.className==="highlighted-line"&&(sn.push((en=yn==null?void 0:yn.range)==null?void 0:en.startLineNumber),vn.push(yn==null?void 0:yn.id));if(Be===sn[0])return;Ct.deltaDecorations(vn,[]);const An=Ct.getLineCount();Be&&Be<=An&&(tt.deltaDecorations([],[{range:new Ce.Range(Be,1,Be,Ct.getLineMaxColumn(Be)),options:{isWholeLine:!0,className:"highlighted-line"}}]),tt.revealLineInCenter(Be))})();const un=(en=!1)=>{var sn;let vn=[],_n=[];const An=Ct.getAllDecorations();for(let yn of An)yn.options.linesDecorationsClassName==="breakpoints-select"&&(vn.push((sn=yn==null?void 0:yn.range)==null?void 0:sn.startLineNumber),_n.push(yn==null?void 0:yn.id));if(en)return{lines:vn,ids:_n};rt(vn)},xn=en=>Yt(void 0,null,function*(){let sn={range:new Ce.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ct.deltaDecorations([],[sn]),un()}),nn=en=>Yt(void 0,null,function*(){let sn=[];const vn=tt.getLineDecorations(en);for(let _n of vn)_n.options.linesDecorationsClassName==="breakpoints-select"&&sn.push(_n.id);yield Ct.deltaDecorations(sn,[]),un()}),tn=en=>{let sn=tt.getLineDecorations(en);for(let vn of sn)if(vn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(Kt,un(!0).lines)){Ct.deltaDecorations(un(!0).ids,[]);const en=Kt.map(sn=>({range:new Ce.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ct.deltaDecorations([],en)}const Fe=tt.onDidChangeModelContent(en=>{let sn=tt.getPosition();if(sn){let vn=sn.lineNumber;clearTimeout(Le.current),Le.current=setTimeout(()=>{Ze(Ct.getLineContent(vn),vn)?nn(vn):tn(vn)?(nn(vn),xn(vn)):un()},100)}}),it=tt.onMouseDown(en=>{var sn,vn,_n;if(en.target.detail&&((_n=(vn=(sn=en.target)==null?void 0:sn.element)==null?void 0:vn.className)!=null&&_n.includes("line-numbers"))){let An=en.target.position.lineNumber;if(Ze(Ct.getLineContent(An),An))return;tn(An)?nn(An):xn(An)}}),St=en=>{let sn={range:new Ce.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Rt.current=tt.deltaDecorations(Rt.current,[sn])},mt=()=>{Rt.current=tt.deltaDecorations(Rt.current,[])},Zt=tt.onMouseMove(en=>{var sn,vn,_n;if(mt(),en.target.detail&&((_n=(vn=(sn=en.target)==null?void 0:sn.element)==null?void 0:vn.className)!=null&&_n.includes("line-numbers"))){let An=en.target.position.lineNumber;if(Ze(Ct.getLineContent(An),An))return;St(An)}}),Ht=tt.onMouseLeave(()=>{mt()});return()=>{Fe.dispose(),it.dispose(),Zt.dispose(),Ht.dispose()}}},[re.current,H,Kt,Be,ke,De]),(0,p.useEffect)(()=>{var lt;(lt=re.current)!=null&<.instance&&ke&&re.current.instance.setPosition({lineNumber:0,column:0})},[Be]);function ut(){let lt=re.current.instance;if(lt){const tt=lt.getSelection(),Ct=re.current.pastePos||{},Jt=new Ce.Range(Ct.startLineNumber||tt.endLineNumber,Ct.startColumn||tt.endColumn,Ct.endLineNumber||tt.endLineNumber,Ct.endColumn||tt.endColumn);setTimeout(()=>{lt.executeEdits("",[{range:Jt,text:""}])},300)}}function kt(lt){(window.navigator.platform.match("Mac")?lt.metaKey:lt.ctrlKey)&<.keyCode==83&&(lt.preventDefault(),Re())}const ye=()=>{if(at&&re.current.instance){const lt=re.current.instance.getContentHeight();Lt(lt<de?de:lt)}else Lt(de)};function le(lt){var tt=document.createEvent("MouseEvents");tt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),lt.dispatchEvent(tt)}const ht=lt=>{if(!_.current)return;const{keyCode:tt,ctrlKey:Ct,metaKey:Jt,target:un,type:xn}=lt;return(xn==="paste"||(tt===67||tt===86)&&(Jt||Ct))&&un.nodeName==="TEXTAREA"&&(Ee(),lt.preventDefault()),!1};function st(lt,tt){var Ct=window.URL||window.webkitURL||window,Jt=new Blob([tt]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=Ct.createObjectURL(Jt),un.download=lt,le(un)}(0,p.useEffect)(()=>{ye()},[ye]),(0,p.useEffect)(()=>{fe.current&&!H&&Promise.all([w.e(8909),w.e(503)]).then(w.bind(w,71448)).then(lt=>{try{Ce=lt,re.current.instance=Ce.editor.create(fe.current,{value:ee,language:B(De),theme:Xe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:k||!1}},ze);const tt=re.current.instance;let un=[...$.BH._menuItems].find(Fe=>Fe[0]._debugName=="EditorContext")[1],xn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],nn=(Fe,it)=>{var St,mt;let Zt=Fe._first;do it.includes((mt=(St=Zt.element)==null?void 0:St.command)==null?void 0:mt.id)&&Fe._remove(Zt);while(Zt=Zt.next)};if(_t(tt,Ce),setTimeout(()=>{ye(),re.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{st(fn||"educoder.txt",tt.getValue())}})},500),re.current.subscription=tt.onDidChangeModelContent(Fe=>{Ut.current?clearTimeout(hn.current):(ye(),Ge(tt.getValue(),Fe)),hn.current=setTimeout(()=>{Ut.current=!1},500)}),window.Monaco||j(Ce,B(De)),Qe&&(nn(un,xn),fe.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ht),window.removeEventListener("paste",ht),window.addEventListener("keydown",ht),window.addEventListener("paste",ht)),window.Monaco=Ce,ot&&tt.onDidBlurEditorWidget(()=>{ot(tt.getValue())}),Dt&&tt.onDidFocusEditorText(()=>{Qe&&He(),Dt(tt.getValue())}),Qe){He();try{tt.onDidPaste(Fe=>{const it=tt.getSelection(),St=re.current.pastePos||{},mt=new Ce.Range(St.startLineNumber||it.endLineNumber,St.startColumn||it.endColumn,St.endLineNumber||it.endLineNumber,St.endColumn||it.endColumn);tt.executeEdits("",[{range:Fe.range,text:""}])})}catch(Fe){}}let tn=Ie();return Ne&&typeof Ne=="string"&&new W(Ne,tt,Ce),E(!0),()=>{const Fe=re.current.instance;Fe.dispose();const it=Fe.getModel();it&&it.dispose(),re.current.subscription&&re.current.subscription.dispose(),tn.unobserve(fe.current)}}catch(tt){}})},[]),(0,p.useEffect)(()=>{if(re.current.instance&&H)return document.addEventListener("keydown",kt,!1),()=>{document.removeEventListener("keydown",kt)}},[Re,H]),(0,p.useEffect)(()=>{let lt=re.current.instance;if(lt&&H){let tt=B(De);Ce.editor.setModelLanguage(lt.getModel(),tt)}},[De,H]),(0,p.useEffect)(()=>{re.current.instance&&H&&Ce.editor.setTheme(Xe)},[Xe,H]),(0,p.useEffect)(()=>{let lt=re.current.instance;Se.current=Ke,lt&&H&&(lt.updateOptions(Oe({},Ke)),setTimeout(()=>{lt.getModel().updateOptions(Oe({},Ke))},200))},[JSON.stringify(Ke),H]),(0,p.useEffect)(()=>{let lt=re.current.instance;lt&&H&<.layout()},[I,de,H]);const[dt,Je]=(0,p.useState)(cn(I)),[gt,Lt]=(0,p.useState)(cn(de)),Ot=jt(Oe({},Te),{width:dt,height:gt,position:"relative"});return p.createElement("div",{className:"my-monaco-editor",ref:fe,style:Ot},_e&&p.createElement(z.CopyToClipboard,{text:ee,onCopy:()=>ie.ZP.success("\u590D\u5236\u6210\u529F")},p.createElement(Q.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 P({width:K="100%",height:me="100%",original:I,modified:de,language:ee,options:De={}}){const Te=(0,p.useRef)(),[Ke,ze]=(0,p.useState)(null);function Xe(at){let Qe;return Te.current&&(Qe=new he.Z(Ge=>{for(let _t of Ge)(_t.target.offsetHeight>0||_t.target.offsetWidth>0)&&at.layout()}),Qe.observe(Te.current)),Qe}(0,p.useEffect)(()=>(Te.current&&Promise.all([w.e(8909),w.e(9404)]).then(w.bind(w,2550)).then(at=>{Ce=at;const Qe=Ce.editor.createDiffEditor(Te.current,jt(Oe({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},De),{wordWrap:!0}));ze(Qe);let Ge=Xe(Qe);return()=>{Qe.dispose();const _t=Qe.getModel();_t&&_t.dispose(),Ge.unobserve(Te.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,p.useEffect)(()=>{Ke&&Ke.setModel({original:Ce.editor.createModel(I,ee),modified:Ce.editor.createModel(de,ee)})},[I,de,ee,Ke]);const ot=cn(K),_e=cn(me),Re={width:ot,height:_e};return p.createElement("div",{className:"my-diff-editor",ref:Te,style:Re})}},38776:function(In,Wt,w){"use strict";w.d(Wt,{jL:function(){return O},w9:function(){return bt},QD:function(){return Qe},cQ:function(){return z},op:function(){return ze},O5:function(){return hn},_b:function(){return fn},t7:function(){return ne},Gi:function(){return Yt},YG:function(){return jt},qp:function(){return T},vr:function(){return Dt},qE:function(){return _e},Je:function(){return D},wb:function(){return $},cq:function(){return Ce},tp:function(){return x}});var p=w(59301),he={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6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39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",O=({dataSource:Le=[],img:_,imgWidth:H=346,title:E,sunTitle:Ie,bannerExtraContent:Ee})=>p.createElement("div",{className:he.banner},p.createElement("div",{className:he.content},p.createElement("aside",null,p.createElement("p",null,p.createElement("b",null,E),p.createElement("span",null,Ie)),Le.length>0&&p.createElement("div",{className:he.btns},Le.map((we,Ze)=>p.createElement("div",{key:Ze,onClick:we.click},we.name,we.sign?p.createElement("img",{src:se,width:39}):null))),Ee),_&&p.createElement("img",{style:{marginTop:33,marginRight:38},src:_,width:H}))),d={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ve=w(92310),oe=w.n(ve),o=w(89392),T=({dataSource:Le=[],value:_,onChange:H,onTitleChange:E,className:Ie,title:Ee,titleWidth:we=41,style:Ze={},fontColor:ut="#6A7283",showCount:kt})=>{const[ye,le]=(0,p.useState)(0),[ht,st]=(0,p.useState)(!1),dt=(0,p.useRef)(null),Je=(0,p.useRef)(null);return(0,p.useEffect)(()=>{var gt;Le.length!==0&&(((gt=dt==null?void 0:dt.current)==null?void 0:gt.clientHeight)>97?le(1):le(0)),Le.length===0&&le(0),st(!1)},[Le]),p.createElement("div",{className:oe()(d.row,Ie),style:Ze},p.createElement("div",{onClick:(0,o.throttle)(()=>E==null?void 0:E(),2e3),style:{width:we,marginTop:ht?12:4},className:`${d.title} ${E?"current":""}`},Ee),p.createElement("div",{className:ht?`${d.tagsWrap} ${d.tagsBorderWrap}`:d.tagsWrap},p.createElement("div",{className:d.bar,ref:Je,style:ye>0?{height:ye===1?97:"auto",overflow:ye===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},p.createElement("div",{className:d.tag,ref:dt},Le==null?void 0:Le.map(gt=>p.createElement("span",{onClick:()=>H(gt.id),key:gt.id,style:{color:ut},className:_===gt.id?d.active:""},p.createElement("span",{title:gt.name,className:d.name},gt.name),!!kt&&p.createElement("span",{className:d.num},gt.count))))),!!ye&&p.createElement(p.Fragment,null,ye===1?p.createElement("div",{onClick:()=>{var gt;le(2),((gt=dt==null?void 0:dt.current)==null?void 0:gt.clientHeight)>245?st(!0):st(!1)},className:d.action},"\u5C55\u5F00",p.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):p.createElement("div",{onClick:()=>{Je.current.scrollTop=0,le(1),st(!1)},className:d.action},"\u6536\u8D77",p.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},m={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},x=({dataSource:Le=[],value:_,onChange:H,className:E,style:Ie={}})=>p.createElement("div",{style:Ie,className:oe()(m.tabs,E)},Le.map(Ee=>p.createElement("span",{onClick:()=>H(Ee.id),className:_===Ee.id?m.active:"",key:Ee.id},Ee.name))),L={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},U=w(37568),ne=({dataSource:Le=[],value:_="",onChange:H,onInputChange:E=()=>{},className:Ie,style:Ee={},placeholder:we,allowClear:Ze=!1})=>{var ut;const[kt,ye]=(0,p.useState)(""),[le,ht]=(0,p.useState)("");(0,p.useEffect)(()=>{var Je;let gt=_;(Je=JSON.stringify(_))!=null&&Je.includes("{")&&(ye(_.id),gt=_.value||"");try{ht(decodeURIComponent(gt||""))}catch(Lt){ht(decodeURIComponent(gt||""))}},[_]);const st=()=>{H(encodeURIComponent(le),kt||null)},dt=Je=>{Je!==kt&&(ye(Je),H(encodeURIComponent(le),Je))};return p.createElement("div",{className:oe()(L.input,Ie),style:Ee},!!Le.length&&p.createElement("div",{className:L.dropdown},p.createElement("div",{className:L.text},(ut=Le.find(Je=>Je.id===kt))==null?void 0:ut.name,p.createElement("i",{className:"iconfont icon-zhankai4"}),p.createElement("b",{className:L.b1}),p.createElement("b",{className:L.b2})),p.createElement("div",{className:L.menu},Le.map((Je,gt)=>p.createElement("div",{key:gt,onClick:()=>dt(Je.id)},Je.name)))),p.createElement(U.default,{onPressEnter:st,value:le,onChange:Je=>{ht(Je.target.value),E(encodeURIComponent(Je.target.value),kt||null)},bordered:!1,placeholder:we}),p.createElement("i",{onClick:st,className:"iconfont icon-sousuo9 font14 pl10 current"}))},M={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},D=({value:Le,onChange:_,className:H,total:E,pageSize:Ie,style:Ee={}})=>{const we=Le<2,Ze=Le>=Math.ceil(E/Ie);return E<=Ie?p.createElement(p.Fragment,null):p.createElement("div",{className:oe()(M.quickPager,H),style:Ee},p.createElement("div",{onClick:()=>{we||_(Le-1,"prev")},className:we?M.disabled:""},"\u4E0A\u4E00\u9875"),p.createElement("div",{onClick:()=>{Ze||_(Le+1,"next")},className:Ze?M.disabled:""},"\u4E0B\u4E00\u9875"))},S={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},te=w(29787),X=w(25399),j=w(58018),q=w(13952),ue=w(89299),pe=w(96908),We=w(57177),G=w(81378),N=w(63604),$=({className:Le,dataSource:_=[],col:H=4,right:E,bottom:Ie=23,precision:Ee=0,wrapWidth:we=1200,trackEventItems:Ze,loading:ut})=>{const kt=Math.floor((we-(H-1)*E)/H);return p.createElement(te.Z,{spinning:ut},p.createElement("div",{className:oe()(S.list,Le)},!!_.length&&_.map((ye,le)=>{const{name:ht,id:st,identifier:dt,power:Je,cover_image_id:gt,pic:Lt}=ye;return p.createElement("div",{className:S.wrap,key:st,style:{width:kt,marginRight:(1+le)%H===0?0:E+Ee,marginBottom:Ie}},p.createElement("a",{target:"_blank",href:`/shixuns/${dt}/challenges`,className:S.li,onClick:Ot=>{Ot.preventDefault(),Ze&&(0,ue.L9)([Ze]),Je&&(0,ue.xg)(`/shixuns/${dt}/challenges`)}},p.createElement("div",{className:S.img},p.createElement("img",{className:S.cover,src:`${Lt}`}),ye.is_jupyter&&p.createElement("img",{className:S.sign,src:pe}),ye.is_jupyter_lab&&p.createElement("img",{className:S.sign,src:We}),ye.is_unity_3d&&p.createElement("img",{className:S.sign,src:G})),p.createElement("div",{className:S.name},p.createElement(X.Z,{title:ht||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},p.createElement("span",{className:S.e},ht||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),p.createElement("div",{className:S.tags},p.createElement(X.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),p.createElement("span",null,ye.challenges_count))),!!ye.myshixuns_count&&p.createElement(X.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),p.createElement("span",null,ye.myshixuns_count))),p.createElement(X.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},p.createElement("span",null,p.createElement("span",null,ye.level))),p.createElement("div",{className:S.rate},p.createElement(j.Z,{allowHalf:!0,disabled:!0,defaultValue:ye.score_info}),p.createElement("span",null,"\xA0",ye.score_info?`${ye.score_info}\u5206`:"5\u5206")))),!Je&&p.createElement("div",{className:S.lockWrap},p.createElement("img",{src:`${q.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),p.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!_.length&&p.createElement(N.Z,null)))},ie={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},Q=w(64681),g=w(59301),z=({className:Le,dataSource:_=[],col:H=4,right:E,bottom:Ie=23,precision:Ee=0,wrapWidth:we=1200,trackEventItems:Ze,loading:ut,onRemove:kt=()=>{},isCurrent:ye=!0,showAlias:le=!1})=>{const ht=Math.floor((we-(H-1)*E)/H),st=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return g.createElement(te.Z,{spinning:ut},g.createElement("div",{className:oe()(ie.list,Le)},!!(_!=null&&_.length)&&(_==null?void 0:_.map((dt,Je)=>{var gt;const{name:Lt,id:Ot,identifier:lt,featured:tt,school_name:Ct,image_url:Jt,excellent:un,is_plan:xn}=dt;return g.createElement("div",{key:Ot,className:ie.wrap,style:{width:ht,marginRight:(1+Je)%H===0?0:E+Ee,marginBottom:Ie}},g.createElement("a",{className:ie.li,onClick:nn=>{nn.preventDefault(),nn.stopPropagation(),Ze&&(0,ue.L9)([Ze]),(0,ue.xg)(`/paths/${lt}`)}},g.createElement("div",{className:ie.img},g.createElement("img",{className:ie.cover,src:`${Jt}`}),ye&&(0,Q.bg)()&&(dt==null?void 0:dt.studying)&&g.createElement("div",{className:`${ie.movebq} user-path-items`,onClick:nn=>{nn.stopPropagation(),kt(dt)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(gt=dt==null?void 0:dt.subject_tags)==null?void 0:gt.map((nn,tn)=>{var Fe,it;if(tn===0){const mt=(Fe=st.find(Zt=>Zt.name==nn))==null?void 0:Fe.swimg;return g.createElement("img",{className:ie.sign,src:mt,style:{left:"-4px"}})}const St=(it=st.find(mt=>mt.name==nn))==null?void 0:it.ptimg;return g.createElement("img",{className:ie.sign,src:St,style:{left:`${48+52*(tn-1)+2*tn}px`}})}),g.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(dt==null?void 0:dt.excellent)&&g.createElement("div",{className:ie.bq},"\u5F00\u653E\u8BFE\u7A0B"))),g.createElement("div",{className:ie.name},g.createElement(X.Z,{title:le&&(dt!=null&&dt.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Lt}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${dt==null?void 0:dt.excellent_alias_name}`)):Lt},g.createElement("span",{className:ie.e},le&&(dt==null?void 0:dt.excellent_alias_name)||Lt))),g.createElement(X.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ct}`},g.createElement("div",{className:ie.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ct)),g.createElement("div",{className:ie.tags},g.createElement("div",null,g.createElement(X.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,dt.stages_count))),g.createElement(X.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.createElement("span",null,dt.members_count)))))))})),!_.length&&g.createElement(N.Z,null)))},ce={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RK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XAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ye=w(59301),bt=({className:Le,dataSource:_=[],col:H=4,right:E,bottom:Ie=23,precision:Ee=0,wrapWidth:we=1200,trackEventItems:Ze,loading:ut,handleVery:kt=()=>!0})=>{const ye=Math.floor((we-(H-1)*E)/H);return Ye.createElement(te.Z,{spinning:ut},Ye.createElement("div",{className:oe()(ce.list,Le)},!!_.length&&_.map((le,ht)=>{const{subject_identifier:st,id:dt,identifier:Je,power:gt}=le,Lt=le.is_public!=0&&le.is_public;return Ye.createElement("div",{className:ce.wrap,key:dt,style:{width:ye,marginRight:(1+ht)%H===0?0:E+Ee,marginBottom:Ie}},Ye.createElement("a",{className:ce.li,onClick:Ot=>{Ot.preventDefault(),kt(le==null?void 0:le.first_category_url)&&(Ze&&(0,ue.L9)([Ze]),(0,ue.xg)(le.first_category_url))}},Ye.createElement("div",{className:ce.top},Ye.createElement(X.Z,{title:le.name},Ye.createElement("div",{className:ce.name},le.name)),Ye.createElement("img",{className:ce.img,src:q.Z.IMG_SERVER+"/images/"+le.avatar_url}),Ye.createElement("div",{className:ce.text,title:le.creator},le.creator),st&&Ye.createElement("div",{className:ce.btns},Ye.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ye.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Lt&&Ye.createElement("div",{className:ce.sign},"\u516C\u5F00")),Ye.createElement("div",{className:ce.bottom},le.visits>0&&Ye.createElement(X.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-liulanyan"}),Ye.createElement("span",null,le.visits))),le.course_members_count>0&&Ye.createElement(X.Z,{title:"\u6210\u5458",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-chengyuan"}),le.course_members_count)),le.tasks_count>0&&Ye.createElement(X.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-zuoye"}),le.tasks_count)),le.is_end?Ye.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ye.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!le.is_accessible&&Ye.createElement("div",{className:ce.lockWrap},Ye.createElement("img",{src:`${q.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ye.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!_.length&&Ye.createElement(N.Z,null)))},$t={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Bt=w(44993),jt=({dataSource:Le=[],value:_,onChange:H,className:E,style:Ie={},tabBarExtraContent:Ee})=>p.createElement("div",{className:oe()($t.tabs,E),style:Ie},p.createElement("div",{className:$t.tabsWrap},Le.map((we,Ze)=>!(we!=null&&we.hide)&&p.createElement("aside",{className:$t.tab,onClick:()=>{H(we.id),we.link&&Bt.history.push(we.link)},key:Ze},p.createElement("div",{className:_===we.id?$t.active:""},we.name),(we==null?void 0:we.resetCount)==null&&(we==null?void 0:we.total)!==void 0&&p.createElement("span",null,"\uFF08",we==null?void 0:we.total,"\uFF09"),(we==null?void 0:we.resetCount)!==void 0&&(we==null?void 0:we.total)!==void 0&&p.createElement(X.Z,{title:(we==null?void 0:we.tip)!=null?we==null?void 0:we.tip:""},p.createElement("span",{style:{color:"#9096A3"}},"\uFF08",p.createElement("span",{style:{color:"#000"}},we==null?void 0:we.resetCount),"/",p.createElement("span",null,we==null?void 0:we.total),"\uFF09"))))),p.createElement("div",{className:$t.tabBar},Ee)),Yt=({className:Le,style:_={},children:H})=>p.createElement("div",{className:oe()(Le),style:_},H),cn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},pt=w(75727),Pe=w(93041);const be=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ce=({sortValue:Le,dropValue:_,className:H,onSort:E,onDrop:Ie,dataSource:Ee=be})=>{var we;return p.createElement("div",{className:oe()(cn.orderWrap,H)},p.createElement(pt.Z,{dropdownRender:()=>p.createElement(Pe.default,null,Ee.map((Ze,ut)=>p.createElement(Pe.default.Item,{key:ut,onClick:()=>Ie(Ze.id)},Ze.name)))},p.createElement("span",{className:cn.orderTextWrap},(we=Ee.find(Ze=>_===Ze.id))==null?void 0:we.name)),p.createElement("span",{className:cn.orderIconWrap},p.createElement("span",{className:cn.orderAsc},p.createElement("i",{className:Le==="asc"?`iconfont icon-sanjiaoxing-up font12 ${cn.cursorPointer} ${cn.active}`:`iconfont icon-sanjiaoxing-up font12 ${cn.cursorPointer}`,onClick:()=>E(Le==="asc"?"desc":"asc")})),p.createElement("span",{className:cn.orderDesc},p.createElement("i",{className:Le==="desc"?`iconfont icon-sanjiaoxing-down font12 ${cn.cursorPointer} ${cn.active}`:`iconfont icon-sanjiaoxing-down font12 ${cn.cursorPointer}`,onClick:()=>E(Le==="asc"?"desc":"asc")}))))},He={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Z=w(99571),P=Object.defineProperty,K=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,de=(Le,_,H)=>_ in Le?P(Le,_,{enumerable:!0,configurable:!0,writable:!0,value:H}):Le[_]=H,ee=(Le,_)=>{for(var H in _||(_={}))me.call(_,H)&&de(Le,H,_[H]);if(K)for(var H of K(_))I.call(_,H)&&de(Le,H,_[H]);return Le},De=(Le,_)=>{var H={};for(var E in Le)me.call(Le,E)&&_.indexOf(E)<0&&(H[E]=Le[E]);if(Le!=null&&K)for(var E of K(Le))_.indexOf(E)<0&&I.call(Le,E)&&(H[E]=Le[E]);return H},Te=(Le,_,H)=>new Promise((E,Ie)=>{var Ee=ut=>{try{Ze(H.next(ut))}catch(kt){Ie(kt)}},we=ut=>{try{Ze(H.throw(ut))}catch(kt){Ie(kt)}},Ze=ut=>ut.done?E(ut.value):Promise.resolve(ut.value).then(Ee,we);Ze((H=H.apply(Le,_)).next())}),ze=Le=>{var _=Le,{className:H,style:E,children:Ie,loading:Ee=!1,openLoading:we,onClick:Ze=()=>{},size:ut="middle",shape:kt="round"}=_,ye=De(_,["className","style","children","loading","openLoading","onClick","size","shape"]);const[le,ht]=(0,p.useState)(!1);return p.createElement(Z.ZP,ee({onClick:(0,o.throttle)(st=>Te(void 0,null,function*(){we&&ht(!0);try{yield Ze(st)}catch(dt){console.log("error",dt)}we&&ht(!1)}),2e3,{leading:!0,trailing:!1}),className:oe()(He.btn,He[`${ut}-${kt}`],H),style:E,size:ut,shape:kt,loading:le||Ee},ye),Ie)},Xe={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},_e=({className:Le,style:_,children:H=null,onClick:E,title:Ie})=>p.createElement("div",{className:oe()(Xe.head,Le),style:_},p.createElement("span",{className:"primary-hover",onClick:E},p.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),p.createElement("b",{title:Ie},Ie),p.createElement("div",{className:Xe.node},H)),Re={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Qe=({confirmShow:Le=!0,confirmTitle:_,confirmClick:H,cancelShow:E=!0,cancelTitle:Ie,cancelClick:Ee,className:we,style:Ze,confirmLoading:ut=!1})=>p.createElement("div",{className:oe()(Re.btns,we),style:Ze},Le&&p.createElement(Z.ZP,{loading:ut,onClick:H,type:"primary",className:Re.confirm},_),E&&p.createElement(Z.ZP,{onClick:Ee,className:Re.cancel},Ie)),Ge={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Dt=({className:Le,style:_={},LeftContent:H,children:E,RightContent:Ie})=>p.createElement("div",{className:oe()(Ge.fixedBottom,Le),style:_},p.createElement("div",{className:Ge.wrap},p.createElement("div",{className:Ge.left},H),p.createElement("div",{className:Ge.center},E),p.createElement("div",{className:Ge.right},Ie))),rt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},fn=({className:Le,style:_={},dataSource:H=[]})=>p.createElement("div",{className:oe()(rt.crumbs,Le),style:_},H.map((E,Ie)=>Ie<H.length-1?p.createElement(p.Fragment,{key:Ie},E.path||E.onClick?p.createElement("span",{className:rt.hover,onClick:E!=null&&E.onClick?E.onClick:()=>Bt.history.push(E.path)},E.name):p.createElement("span",null,E.name),p.createElement("span",null,"\xA0",">","\xA0")):p.createElement("span",{key:Ie,style:{color:"#5F6368"}},E.name))),Tt=w(11938),Qt=Object.defineProperty,Be=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,fe=(Le,_,H)=>_ in Le?Qt(Le,_,{enumerable:!0,configurable:!0,writable:!0,value:H}):Le[_]=H,re=(Le,_)=>{for(var H in _||(_={}))k.call(_,H)&&fe(Le,H,_[H]);if(Ne)for(var H of Ne(_))ae.call(_,H)&&fe(Le,H,_[H]);return Le},Se=(Le,_)=>Be(Le,ke(_)),Mt=(Le,_)=>{var H={};for(var E in Le)k.call(Le,E)&&_.indexOf(E)<0&&(H[E]=Le[E]);if(Le!=null&&Ne)for(var E of Ne(Le))_.indexOf(E)<0&&ae.call(Le,E)&&(H[E]=Le[E]);return H};const{Countdown:Rt}=Tt.default;var hn=Le=>{var _=Le,{onChange:H}=_,E=Mt(_,["onChange"]);const[Ie,Ee]=(0,p.useState)(null);(0,p.useEffect)(()=>{typeof Ie=="number"&&Ie>=0&&H(Ie)},[Ie]);const we=Ze=>{const ut=Math.floor(Ze/1e3);Ee(ut)};return p.createElement(Rt,Se(re({},E),{onChange:we}))}},31288:function(In,Wt,w){"use strict";w.r(Wt),w.d(Wt,{default:function(){return Pe}});var p=w(59301),he=w(44993),se=w(98573),ge=w(61186),O=w.n(ge),d=w(75727),ve=w(99571),oe=w(6767),o=w(62957),b=w(93041),T=w(62673),m=w(77019),y=w(5269),x=w(82326),L=w(37568),U=w(20554),Y=w(54172),ne=w(84022),M=w(25399),F=w(13952),D=w(52430),S={flex_box_center:"flex_box_center___OrR9_",flex_space_between:"flex_space_between___MJLUJ",flex_box_vertical_center:"flex_box_vertical_center___nb0jX",flex_box_center_end:"flex_box_center_end___SMTBe",flex_box_column:"flex_box_column___Utap_",wrap:"wrap___Pp5cX",addQuestion:"addQuestion___LsICJ",content:"content___pWPew",left:"left___axtqk",filterPoint:"filterPoint___rCDO_",filterType:"filterType___NeU0D",btnWarp:"btnWarp___dKZiG",btn:"btn___TqjCT",count:"count___OntqW",btnActive:"btnActive___l_zfx",fold:"fold___KAWcj",action:"action___zMEjv",filterOrigin:"filterOrigin___DneuH",control:"control___qchb1",search:"search___Yb8rf",searchIcon:"searchIcon___ybtbn",table:"table___uHpVy",tabWarp:"tabWarp___Pi38U",customTable:"customTable___WYwKK","btn-style-1":"btn-style-1___Knznb","btn-style-2":"btn-style-2___fEs_r","btn-style-3":"btn-style-3___CeM25",right:"right___ZJhZN",statistics:"statistics___cjSkW",title:"title___P79dp",statisticItem:"statisticItem___qmDRE",rate:"rate___H3sZf",dataName:"dataName___N7Uqb",sort:"sort___N1oiD",rankHeader:"rankHeader___LGNPx",rankIcon:"rankIcon___hbm2T",li:"li___vVOqz",myRecord:"myRecord___qv6iJ",recordPrefix:"recordPrefix____bO3_",mine:"mine___fhCrG",avatar:"avatar___vwT8k",nickname:"nickname___QA_sN",myRank:"myRank___QUd2y",questionNumber:"questionNumber___j4tJF",titleWarp:"titleWarp___Hhoy_",hov:"hov___L_H5a",statusText:"statusText___okgdj",hovBtn:"hovBtn___reyI4",tag:"tag___zifqR",problemsclose:"problemsclose___cfp5y",imgsrc:"imgsrc___E905q",sendModal:"sendModal___jrx6y",bottom:"bottom___pKnLQ",line:"line___kNxnj",del:"del___kXkXv"},te=w(64681),X=Object.defineProperty,j=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(be,B,Ce)=>B in be?X(be,B,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[B]=Ce,We=(be,B)=>{for(var Ce in B||(B={}))q.call(B,Ce)&&pe(be,Ce,B[Ce]);if(j)for(var Ce of j(B))ue.call(B,Ce)&&pe(be,Ce,B[Ce]);return be};const G=be=>React.createElement("svg",We({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},be),React.createElement("title",null,"\u89C6\u9891"),React.createElement("g",{fill:"#C1E2FF",fillRule:"nonzero"},React.createElement("path",{d:"M7.836 9.913H2.297c-.593.072-1.185-.145-1.624-.596a2.444 2.444 0 0 1-.666-1.759v-5.17A2.47 2.47 0 0 1 .679.636c.437-.45 1.025-.671 1.617-.608h5.592c.589-.072 1.176.148 1.607.603.43.454.661 1.096.63 1.757v5.17a2.443 2.443 0 0 1-.664 1.759c-.44.451-1.032.668-1.625.596ZM2.297 1.44c-.468 0-1.026.165-1.026.948v5.17c0 .258 0 .942 1.026.942h5.54c1.024 0 1.024-.684 1.024-.942v-5.17c0-.47-.116-.948-.973-.948h-5.59Z"}),React.createElement("path",{d:"M12.476 9.207a1.781 1.781 0 0 1-1.043-.382L8.86 6.93V3.003l2.575-1.891a1.78 1.78 0 0 1 1.04-.379c.367-.034.73.102 1.003.377.274.275.433.664.44 1.075v5.57c-.007.411-.166.8-.44 1.075a1.248 1.248 0 0 1-1.003.377Zm-2.35-3.036 2.01 1.48c.1.082.218.131.34.143a.29.29 0 0 0 .186-.045l-.007-5.564a.315.315 0 0 0-.179-.04.64.64 0 0 0-.339.144l-2.012 1.475v2.407Zm-5.06.212c-.698 0-1.264-.633-1.264-1.412 0-.78.566-1.411 1.265-1.412.698 0 1.264.632 1.264 1.411 0 .78-.567 1.411-1.265 1.412Z"})));var N="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy44MzYgOS45MTNIMi4yOTdjLS41OTMuMDcyLTEuMTg1LS4xNDUtMS42MjQtLjU5NmEyLjQ0NCAyLjQ0NCAwIDAgMS0uNjY2LTEuNzU5di01LjE3QTIuNDcgMi40NyAwIDAgMSAuNjc5LjYzNmMuNDM3LS40NSAxLjAyNS0uNjcxIDEuNjE3LS42MDhoNS41OTJjLjU4OS0uMDcyIDEuMTc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6eI4Cgve+lCwgwdBbqdqGhLeLz2UYntnLll00OXNA2unrWHdYLWeogezdjK5Fa6J3Vhu6stxJJfHc3OpSbuV6A7mFmKLfTqzYa1gPNqbIwVEfKLkBa09Z6KA/164p5dcgwVGOV9VlIj4dusHUqiNSZhma02J0uDPVwt3dEMrTj9V6IXlt1nx+aPzjWg5wK5lTv6X2u38iw3+e7r/edjQ76RZv1vosAmxX5ixba7Mj/bTLwJ/OqjXyXcOSkAAAAAElFTkSuQmCC",bt=w(9050),$t=Object.defineProperty,Bt=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,En=(be,B,Ce)=>B in be?$t(be,B,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[B]=Ce,Yt=(be,B)=>{for(var Ce in B||(B={}))Oe.call(B,Ce)&&En(be,Ce,B[Ce]);if(Bt)for(var Ce of Bt(B))jt.call(B,Ce)&&En(be,Ce,B[Ce]);return be},cn=(be,B,Ce)=>new Promise((He,Z)=>{var P=I=>{try{me(Ce.next(I))}catch(de){Z(de)}},K=I=>{try{me(Ce.throw(I))}catch(de){Z(de)}},me=I=>I.done?He(I.value):Promise.resolve(I.value).then(P,K);me((Ce=Ce.apply(be,B)).next())});const pt=({globalSetting:be,user:B,dispatch:Ce})=>{var He,Z,P,K,me,I,de,ee,De,Te,Ke,ze,Xe,ot,_e,Re;const[at]=(0,he.useSearchParams)(),Qe=(0,he.useLocation)(),Ge={page:1,per_page:30,tag_discipline_id:[-1],source_discipline_id:[-1],status:null,difficulty:null,search:"",save_search:"",sort_by:null,sort_direction:null,filter:at.get("tab")||"public"},[_t,Dt]=(0,p.useState)(0),[rt,Kt]=(0,p.useState)(0),[fn,Tt]=(0,p.useState)(0),[Qt,Be]=(0,p.useState)([]),[ke,Ne]=(0,p.useState)([]),[k,ae]=(0,p.useState)({}),[fe,re]=(0,p.useState)(!1),[Se,Mt]=(0,p.useState)([]),[Rt,Ut]=(0,p.useState)(!0),[hn,Le]=(0,p.useState)(null);let[_,H]=(0,p.useState)(Ge);const E=(0,p.useRef)(null),Ie=(0,p.useRef)(null),[Ee,we]=(0,p.useState)([]),Ze=(0,p.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(_.filter),[_.filter]),[ut,kt]=(0,p.useState)(!1),[ye,le]=(0,p.useState)(!1),[ht,st]=(0,p.useState)(""),[dt,Je]=(0,p.useState)([]),[gt,Lt]=(0,p.useState)(!1),[Ot,lt]=(0,p.useState)([]),[tt,Ct]=(0,p.useState)(!1),[Jt,un]=(0,p.useState)(!1),xn=B.userInfo.identity==="teacher",nn=(Me,Pt,mn)=>cn(void 0,null,function*(){var Rn,Kn,xe,nt;Me.persist(),(Kn=(Rn=Me==null?void 0:Me.target)==null?void 0:Rn.style)!=null&&Kn.pointerEvents&&(Me.target.style.pointerEvents="none");const qe=yield(0,D.ZP)(`/api/practices/${Pt.identifier}/start`,{method:"get"});if((qe==null?void 0:qe.status)===0){if(mn){(0,Ye.xg)(`/problems/${qe==null?void 0:qe.identifier}/oj/${Pt==null?void 0:Pt.identifier}?tab=3`);return}(0,Ye.xg)(`/problems/${qe==null?void 0:qe.identifier}/oj/${Pt==null?void 0:Pt.identifier}`)}(nt=(xe=Me==null?void 0:Me.target)==null?void 0:xe.style)!=null&&nt.pointerEvents&&(Me.target.style.pointerEvents="auto")});(0,p.useEffect)(()=>{let Me=O()().add(0,"days").unix(),Pt=localStorage.getItem("problemsclose");if(!Pt){Lt(!0);return}Me>parseInt(Pt)&&Lt(!0)},[]);const tn=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],Fe=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(Me,Pt)=>p.createElement("div",{className:S.titleWarp},(_==null?void 0:_.filter)==="mine"?p.createElement("span",{className:S.tag},tn[Pt.practice_status]):null,p.createElement("span",{title:Me,className:S.hov,onClick:mn=>nn(mn,Pt)},Me))},(_==null?void 0:_.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(Me,Pt)=>p.createElement("span",{style:{display:"flex"}},p.createElement("span",{onClick:mn=>nn(mn,Pt,!0),className:"current"},Me),(Pt==null?void 0:Pt.has_video_solution)&&p.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:N}))}:null,(_==null?void 0:_.filter)==="public"?{title:"\u901A\u8FC7\u7387",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:Me=>p.createElement(p.Fragment,null,Me===1&&p.createElement("span",{className:S["btn-style-1"]},"\u7B80\u5355"),Me===2&&p.createElement("span",{className:S["btn-style-2"]},"\u9002\u4E2D"),Me===3&&p.createElement("span",{className:S["btn-style-3"]},"\u56F0\u96BE"))},(_==null?void 0:_.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(_==null?void 0:_.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(Me,Pt)=>(0,te.bg)()?p.createElement(p.Fragment,null,hn===(Pt==null?void 0:Pt.identifier)?p.createElement("span",{className:S.hovBtn,onClick:mn=>nn(mn,Pt)},"\u5F00\u542F\u5237\u9898"):p.createElement(p.Fragment,null,Me===0&&p.createElement("span",{className:S.statusText},"\u672A\u5F00\u542F"),Me===1&&p.createElement("span",{className:S.statusText},"\u8FDB\u884C\u4E2D"),Me===2&&p.createElement("span",{className:S.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(_==null?void 0:_.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:Me=>p.createElement("span",null,Me==null?void 0:Me.join("\u3001"))}:null,(_==null?void 0:_.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(_==null?void 0:_.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,te.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(Me,Pt)=>p.createElement(d.Z,{className:"ml10",dropdownRender:()=>Fn(Pt==null?void 0:Pt.identifier,Pt)},p.createElement("span",{style:{cursor:"default"},onClick:mn=>mn.preventDefault()},p.createElement("span",null,"\u66F4\u591A"),p.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:fe&&(_==null?void 0:_.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(Me,Pt)=>Pt!=null&&Pt.is_self&&(Pt==null?void 0:Pt.practice_status)!==1?p.createElement(d.Z,{className:"ml10",dropdownRender:()=>kn(Pt==null?void 0:Pt.identifier,Pt)},p.createElement("span",{style:{cursor:"default"},onClick:mn=>mn.preventDefault()},p.createElement("span",null,"\u66F4\u591A"),p.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(Me=>!!Me),it=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(Me,Pt)=>p.createElement("span",{className:S.hov,onClick:mn=>nn(mn,Pt)},Me)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:Me=>p.createElement(p.Fragment,null,Me===1&&p.createElement("span",{className:S["btn-style-1"]},"\u7B80\u5355"),Me===2&&p.createElement("span",{className:S["btn-style-2"]},"\u9002\u4E2D"),Me===3&&p.createElement("span",{className:S["btn-style-3"]},"\u56F0\u96BE"))},(_==null?void 0:_.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(_==null?void 0:_.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(_==null?void 0:_.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(_==null?void 0:_.filter)==="review_finished"?{title:"\u6700\u540E\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",width:180}:null,{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"center",width:120,render:(Me,Pt)=>{let mn;switch(_==null?void 0:_.filter){case"under_review":mn=p.createElement("div",{style:{display:"flex"}},p.createElement(ve.ZP,{type:"link",size:"small",onClick:Rn=>nn(Rn,Pt)},"\u5BA1\u6838"),p.createElement(ve.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:Rn=>Ht({e:Rn,record:Pt,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":mn=p.createElement(ve.ZP,{type:"link",size:"small",onClick:Rn=>{kt(!0),St(Pt)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:mn=p.createElement(ve.ZP,{type:"link",block:!0,onClick:Rn=>Ht({e:Rn,record:Pt,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return mn}}].filter(Me=>!!Me),St=Me=>cn(void 0,null,function*(){Je([]);const Pt=yield(0,D.ZP)(`/api/practices/${Me.identifier}/review_list`,{method:"get"});Je(Pt==null?void 0:Pt.reviews_list)}),mt=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(Me,Pt)=>p.createElement("span",null,O()(Me).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",key:"reviewer"},{title:"\u5BA1\u6838\u7ED3\u679C",dataIndex:"status",width:120,key:"status",render:(Me,Pt)=>Me==="5"||Me===5?p.createElement("div",{style:{display:"flex",alignItems:"center"}},p.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),p.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{st(Pt.description),le(!0)}},"\u67E5\u770B\u539F\u56E0")):p.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,p.useEffect)(()=>{sn(),Zt(_)},[]),(0,p.useEffect)(()=>{var Me;Qt.length!==0&&((Me=E==null?void 0:E.current)==null?void 0:Me.clientHeight)>98&&Dt(1)},[Qt]),(0,p.useEffect)(()=>{var Me;ke.length!==0&&((Me=Ie==null?void 0:Ie.current)==null?void 0:Me.clientHeight)>98&&Kt(1)},[ke]),(0,p.useEffect)(()=>(Ce({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{Ce({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,p.useEffect)(()=>{var Me;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(Me=document.title)!=null&&Me.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[be]),(0,p.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const Zt=Me=>cn(void 0,null,function*(){var Pt,mn;Me.search=encodeURIComponent(Me.search);const Rn=je().cloneDeep(Me);Rn.tag_discipline_id=(Pt=Rn.tag_discipline_id)!=null&&Pt.includes(-1)?[]:Rn.tag_discipline_id,Rn.source_discipline_id=(mn=Rn.source_discipline_id)!=null&&mn.includes(-1)?[]:Rn.source_discipline_id,console.log(Rn,"sendData"),Ut(!0),Mt([]);const Kn=yield(0,D.ZP)("/api/practices.json",{method:"get",params:Rn});we([]),Ut(!1),Tt(Kn==null?void 0:Kn.practices_count),Mt(Kn==null?void 0:Kn.practices_list),lt((Kn==null?void 0:Kn.recommend_subjects)||[])}),Ht=Me=>cn(void 0,[Me],function*({op:Pt,description:mn,record:Rn,e:Kn}){const xe={op:Pt,description:mn};Ut(!0);const nt=yield(0,D.ZP)(`/api/practices/${Rn.identifier}/review`,{method:"post",body:xe});Ut(!1),Pt==="claim"&&(nt.status===0||nt.status==="0")&&nn(Kn,Rn),Zt(_)}),en=Me=>cn(void 0,null,function*(){Ut(!0);const Pt=yield(0,D.ZP)(`/api/practices/${Me.identifier}/publish`,{method:"post"});Ut(!1),Zt(_)}),sn=()=>cn(void 0,null,function*(){var Me;const Pt=yield(0,D.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),mn=yield(0,D.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),Rn=yield(0,D.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(Pt!=null&&Pt.tag_disciplines){const Kn=[{id:-1,name:"\u5168\u90E8",count:Pt==null?void 0:Pt.totalCount},...Pt==null?void 0:Pt.tag_disciplines];Be(Kn)}if(mn!=null&&mn.tag_disciplines){const Kn=[{id:-1,name:"\u5168\u90E8",count:mn==null?void 0:mn.totalCount},...mn==null?void 0:mn.tag_disciplines];Ne(Kn)}ae(Rn||{}),re((Me=Rn==null?void 0:Rn.my_record)==null?void 0:Me.outsource)}),vn=(Me,Pt)=>{var mn;_.page=1;let Rn=_[`${Pt}_discipline_id`];(mn=_[`${Pt}_discipline_id`])!=null&&mn.includes(Me)?Rn=Rn.filter(Kn=>Kn!==Me):Rn.push(Me),Me===-1?Rn=[-1]:(Rn=Rn.filter(Kn=>Kn!==-1),Rn.length||(Rn=[-1])),_[`${Pt}_discipline_id`]=Rn,H(Yt({},_)),Zt(_)},_n=(Me,Pt)=>{_.page=1,_[Pt]=typeof Me=="number"?Me:null,H(Yt({},_)),Zt(_)},An=Me=>{_.page=1,_.save_search=Me,H(Yt({},_))},yn=(Me,Pt,mn)=>{_.page=Me==null?void 0:Me.current,_.per_page=Me==null?void 0:Me.pageSize,mn!=null&&mn.order?(_.sort_by=mn==null?void 0:mn.field,_.sort_direction=(mn==null?void 0:mn.order)==="ascend"?"asc":"desc"):(_.sort_by=null,_.sort_direction=null),H(Yt({},_)),Zt(_)},Zn=Me=>{_.page=1,_.filter=Me,_.status=null,_.practice_status=null,H(Yt({},_)),Zt(_)},On=(Me,Pt)=>{if((Pt==null?void 0:Pt.length)===0){oe.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const mn=()=>cn(void 0,null,function*(){const Rn=yield(0,D.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:Pt,op:Me}});if((Rn==null?void 0:Rn.status)===0){const Kn=Se.length===1&&_.page!==1?_.page-1:_.page;_.page=Kn,H(Yt({},_)),Zt(_)}});if(Me===-1){o.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u786E\u8BA4",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u9898\u76EE\u5C06\u4E0D\u53EF\u518D\u627E\u56DE\u3002",onOk:mn});return}mn()},zn=p.createElement(b.default,null,(_==null?void 0:_.filter)==="public"?p.createElement(b.default.Item,{onClick:()=>On(0,Ee)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[p.createElement(b.default.Item,{key:2,onClick:()=>On(1,Ee)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),p.createElement(b.default.Item,{key:1,onClick:()=>On(0,Ee)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,te.Ny)()&&p.createElement(b.default.Item,{onClick:()=>pn()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(_==null?void 0:_.filter)!=="public"&&p.createElement(b.default.Item,{onClick:()=>On(-1,Ee)},"\u6279\u91CF\u5220\u9664")),Fn=(Me,Pt)=>p.createElement(b.default,null,(Pt==null?void 0:Pt.practice_status)===1?p.createElement(b.default.Item,{onClick:()=>On(0,[Me])},"\u79FB\u51FA\u516C\u5171"):p.createElement(b.default.Item,{onClick:()=>On(1,[Me])},"\u79FB\u5165\u516C\u5171"),(_==null?void 0:_.filter)==="mine"?p.createElement(b.default.Item,{onClick:()=>en(Pt),disabled:![0,4,5].includes(Pt.practice_status)},[0,4,5].includes(Pt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,p.createElement(b.default.Item,{onClick:()=>(0,Ye.xg)(`/problems/${Me}/ojedit`)},"\u7F16\u8F91"),(_==null?void 0:_.filter)!=="public"&&p.createElement(b.default.Item,{onClick:()=>On(-1,[Me])},"\u5220\u9664")),kn=(Me,Pt)=>p.createElement(b.default,null,p.createElement(b.default.Item,{onClick:()=>en(Pt),disabled:![0,4,5].includes(Pt.practice_status)},[0,4,5].includes(Pt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),p.createElement(b.default.Item,{onClick:()=>(0,Ye.xg)(`/problems/${Me}/ojedit`)},"\u7F16\u8F91"),p.createElement(b.default.Item,{onClick:()=>On(-1,[Me])},"\u5220\u9664")),qn=Me=>{we(Me)},pn=()=>{if(!Ee.length){oe.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let Me=null;o.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93",icon:null,className:"custom-modal-divider",content:p.createElement("div",null,p.createElement("p",{className:"mt20"},"\u5DF2\u9009",p.createElement("span",{className:"c-light-primary"},Ee.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),p.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),p.createElement(T.default.Group,{className:"mt3",onChange:Pt=>{Me=Pt,document.getElementById("send-to-modal").style.display="none"}},p.createElement(T.default,{value:"c"},"C\u8BED\u8A00"),p.createElement(T.default,{value:"c++"},"C++\u8BED\u8A00"),p.createElement(T.default,{value:"java"},"Java\u8BED\u8A00"),p.createElement(T.default,{value:"python"},"Python\u8BED\u8A00")),p.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>cn(void 0,null,function*(){if(!(Me!=null&&Me.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const Pt=yield(0,D.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:Ee,language:Me}});(Pt==null?void 0:Pt.status)===0&&oe.ZP.success("\u53D1\u9001\u6210\u529F")})})},ln={selectedRowKeys:Ee,columnWidth:40,onChange:qn};return p.createElement("section",{className:S.wrap},p.createElement(z.jL,{img:Q,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:p.createElement(d.Z,{dropdownRender:()=>p.createElement(b.default,null,p.createElement(b.default.Item,{key:1,onClick:()=>{he.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),p.createElement(b.default.Item,{key:2,onClick:()=>{he.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"))},p.createElement("div",{className:S.addQuestion,style:{visibility:(0,te.Ny)()||fe?"visible":"hidden"}},p.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),p.createElement("div",{className:S.content},p.createElement("div",{className:S.left},p.createElement(m.Z,{className:`${S.filterPoint} mb10`,align:"top"},p.createElement(y.Z,{className:S.filterType},"\u77E5\u8BC6\u70B9"),p.createElement(y.Z,{className:S.btnWarp,ref:E,style:_t>0?{height:_t===1?76:"auto"}:{}},Qt==null?void 0:Qt.map(Me=>{var Pt;return p.createElement("div",{onClick:()=>vn(Me.id,"tag"),key:Me.id,className:(Pt=_==null?void 0:_.tag_discipline_id)!=null&&Pt.includes(Me.id)?`${S.btn} ${S.btnActive}`:S.btn},p.createElement("span",{title:Me.name},Me.name),p.createElement("span",{className:S.count,style:{display:Me.count?"block":"none"}},Me.count))})),!!_t&&p.createElement(y.Z,{className:S.fold},_t===1?p.createElement("div",{onClick:()=>Dt(2),className:S.action},"\u5C55\u5F00",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):p.createElement("div",{onClick:()=>Dt(1),className:S.action},"\u6536\u8D77",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!ke.length&&p.createElement(m.Z,{className:S.filterPoint,align:"top",style:{marginBottom:22}},p.createElement(y.Z,{className:S.filterType},"\u6765\u6E90"),p.createElement(y.Z,{className:S.btnWarp,ref:Ie,style:rt>0?{height:rt===1?76:"auto"}:{}},ke==null?void 0:ke.map(Me=>{var Pt;return p.createElement("div",{onClick:()=>vn(Me.id,"source"),key:Me.id,className:(Pt=_==null?void 0:_.source_discipline_id)!=null&&Pt.includes(Me.id)?`${S.btn} ${S.btnActive}`:S.btn},p.createElement("span",{title:Me.name},Me.name),p.createElement("span",{className:S.count},Me.count))}),!!rt&&p.createElement(y.Z,{className:S.fold},rt===1?p.createElement("div",{onClick:()=>Kt(2),className:S.action},"\u5C55\u5F00",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):p.createElement("div",{onClick:()=>Kt(1),className:S.action},"\u6536\u8D77",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),p.createElement("div",{className:S.control},p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:_==null?void 0:_.difficulty,onChange:Me=>_n(Me,"difficulty")},p.createElement(x.default.Option,{value:1},"\u7B80\u5355"),p.createElement(x.default.Option,{value:2},"\u9002\u4E2D"),p.createElement(x.default.Option,{value:3},"\u56F0\u96BE")),(0,te.bg)()&&_.filter==="public"&&p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:_==null?void 0:_.status,onChange:Me=>_n(Me,"status")},p.createElement(x.default.Option,{value:0},"\u672A\u5F00\u542F"),p.createElement(x.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),p.createElement(x.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,te.bg)()&&_.filter==="mine"&&p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:_==null?void 0:_.practice_status,onChange:Me=>_n(Me,"practice_status")},p.createElement(x.default.Option,{value:0},"\u672A\u53D1\u5E03"),p.createElement(x.default.Option,{value:1},"\u5DF2\u516C\u5F00"),p.createElement(x.default.Option,{value:2},"\u672A\u5BA1\u6838"),p.createElement(x.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),p.createElement(x.default.Option,{value:4},"\u672A\u516C\u5F00"),p.createElement(x.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,te.bg)()&&_.filter==="all"&&p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:_==null?void 0:_.practice_status,onChange:Me=>_n(Me,"practice_status")},p.createElement(x.default.Option,{value:0},"\u672A\u53D1\u5E03"),p.createElement(x.default.Option,{value:1},"\u5DF2\u516C\u5F00"),p.createElement(x.default.Option,{value:2},"\u672A\u5BA1\u6838"),p.createElement(x.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),p.createElement(x.default.Option,{value:4},"\u672A\u516C\u5F00"),p.createElement(x.default.Option,{value:5},"\u672A\u901A\u8FC7")),p.createElement(L.default.Search,{className:S.search,size:"large",suffix:p.createElement("i",{className:`iconfont icon-sousuo9 font14 ${S.searchIcon}`,onClick:()=>{_.page=1,_.search=_.save_search,H(Yt({},_)),_.save_search&&(0,bt.tk)({name:_.save_search,copywriting:_.save_search,position:"Practice"}),Zt(_)}}),placeholder:(0,te.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:_==null?void 0:_.save_search,onChange:Me=>An(Me.target.value),onSearch:Me=>{_.page=1,_.search=_.save_search,H(Yt({},_)),Me&&(0,bt.tk)({name:Me,copywriting:Me,position:"Practice"}),Zt(_)}})),p.createElement("div",{className:S.table},p.createElement("div",{className:S.tabWarp,style:(0,te.Ny)()||fe?{}:{height:10,border:0}},(0,te.Ny)()?p.createElement(U.default,{className:S.tab,activeKey:Ze?"not_reviewed":_.filter,onChange:Zn,tabBarExtraContent:!Ze&&p.createElement(d.Z,{dropdownRender:()=>zn},p.createElement("span",{className:"ant-dropdown-link font14 current",onClick:Me=>Me.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",p.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},p.createElement(U.default.TabPane,{tab:"\u516C\u5171",key:"public"}),p.createElement(U.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),p.createElement(U.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),p.createElement(U.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):fe?p.createElement(U.default,{className:S.tab,activeKey:Ze?"not_reviewed":_.filter,onChange:Zn},p.createElement(U.default.TabPane,{tab:"\u516C\u5171",key:"public"}),p.createElement(U.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),p.createElement(U.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),Ze?p.createElement("div",{className:S.tabWarp,style:(0,te.Ny)()||fe?{}:{height:10,border:0}},p.createElement(U.default,{className:S.tab,activeKey:_.filter,onChange:Zn},p.createElement(U.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),p.createElement(U.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),p.createElement(U.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,te.Ny)()||fe)&&xn&&p.createElement("div",{className:S.tabWarp2,style:{justifyContent:"end"}},tt?p.createElement(m.Z,{align:"middle"},p.createElement(m.Z,{onClick:()=>un(!0),align:"middle",className:"current"},p.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),p.createElement("span",null,"\u5DF2\u9009",p.createElement("span",{className:"c-light-primary"},Ee.length),"\u4E2A")),p.createElement(ve.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{Ct(!1),we([])},type:"primary"},"\u53D6\u6D88"),p.createElement(ve.ZP,{onClick:pn,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):p.createElement(ve.ZP,{onClick:()=>Ct(!0),type:"primary"},p.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),p.createElement(Y.default,{rowSelection:(0,te.Ny)()||tt?ln:void 0,className:S.customTable,dataSource:Se,bordered:!1,rowKey:Me=>Me.identifier,columns:Ze?it:Fe,rowClassName:S.row,loading:Rt,onRow:Me=>({onMouseEnter:Pt=>{Le(Me==null?void 0:Me.identifier)},onMouseLeave:Pt=>{Le(null)}}),onChange:yn,pagination:{pageSize:_.per_page,total:fn,current:_.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:Me=>p.createElement("span",{className:"mr10"},"\u5171",p.createElement("span",{className:"c-orange"},Me),"\u6761\u6570\u636E")}}))),p.createElement("div",{className:S.right},p.createElement("div",{className:S.statistics},p.createElement("img",{src:g,alt:""}),p.createElement("div",{className:S.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),p.createElement(m.Z,{justify:"space-between"},p.createElement(y.Z,{className:S.statisticItem},p.createElement("div",{className:S.rate},(0,te.bg)()?((He=k==null?void 0:k.my_record)==null?void 0:He.passed_ratio)||0:"-"),p.createElement("div",{className:S.dataName},"\u901A\u8FC7\u7387(%)")),p.createElement(y.Z,{className:S.statisticItem},p.createElement("div",{className:S.rate},(0,te.bg)()?((Z=k==null?void 0:k.my_record)==null?void 0:Z.passed_count)||0:"-"),p.createElement("div",{className:S.dataName},"\u5237\u9898\u6570")),p.createElement(y.Z,{className:S.statisticItem},p.createElement("div",{className:S.rate},(0,te.bg)()?(K=(P=k==null?void 0:k.my_record)==null?void 0:P.time_count)==null?void 0:K.toFixed(2):"-"),p.createElement("div",{className:S.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((me=k==null?void 0:k.rank_list)!=null&&me.length)&&p.createElement(p.Fragment,null,((I=B.userInfo)==null?void 0:I.user_id)!=2&&(0,te.JA)()&&((de=be==null?void 0:be.setting)==null?void 0:de.main_site)&>&&(Ot==null?void 0:Ot.length)>0&&p.createElement("div",{className:S.problemsclose,style:{position:"relative"}},p.createElement(ne.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},Ot==null?void 0:Ot.map((Me,Pt)=>p.createElement("div",{style:{display:"flex"},key:Pt},p.createElement("a",{href:`/paths/${Me.identifier}`},p.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:F.Z.IMG_SERVER+"/"+Me.image_url}))))),p.createElement("img",{className:S.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",O()().add(1,"days").unix()+""),Lt(!1)},src:It})),p.createElement("div",{className:S.sort},p.createElement("div",{className:S.rankHeader},p.createElement("img",{src:v,className:S.rankIcon})),!!((ee=k==null?void 0:k.my_record)!=null&&ee.rank)&&p.createElement("div",{className:`${S.myRecord} ${S.li}`},p.createElement("span",{className:`${S.recordPrefix} ${S.mine}`},"\u6211\u7684"),p.createElement("img",{className:S.avatar,src:F.Z.IMG_SERVER+"/images/"+((De=k==null?void 0:k.my_record)==null?void 0:De.image_url)}),p.createElement("span",{title:(Te=k==null?void 0:k.my_record)==null?void 0:Te.nickname,className:S.nickname},(Ke=k==null?void 0:k.my_record)==null?void 0:Ke.nickname),p.createElement("span",{className:S.myRank},((ze=k==null?void 0:k.my_record)==null?void 0:ze.rank)>999?"\u7B2C999+\u540D":`\u7B2C${(Xe=k==null?void 0:k.my_record)==null?void 0:Xe.rank}\u540D`),p.createElement("span",{className:S.questionNumber},(ot=k==null?void 0:k.my_record)==null?void 0:ot.passed_count,"\u9898")),(_e=k==null?void 0:k.rank_list)==null?void 0:_e.map((Me,Pt)=>{let mn=Pt+1;return Pt===0&&(mn=W.Z),Pt===1&&(mn=$.Z),Pt===2&&(mn=ie.Z),p.createElement("div",{className:S.li,key:Pt},typeof mn=="number"?p.createElement("span",{className:S.recordPrefix},mn):p.createElement("span",{className:S.recordPrefix},p.createElement("img",{src:mn})),p.createElement("img",{className:S.avatar,src:F.Z.IMG_SERVER+"/images/"+(Me==null?void 0:Me.image_url)}),p.createElement("span",{title:Me==null?void 0:Me.nickname,className:S.nickname},Me==null?void 0:Me.nickname),p.createElement("span",{className:S.questionNumber},Me.passed_count,"\u9898"))}))))),p.createElement(o.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:ut,onOk:()=>{},onCancel:()=>{kt(!1)},footer:null,closable:!0},p.createElement(Y.default,{dataSource:dt,columns:mt})),p.createElement(o.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:ye,onOk:()=>{},onCancel:()=>{le(!1)},footer:null,closable:!0},p.createElement(se.Z,{value:ht})),p.createElement(o.default,{open:Jt,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>un(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>cn(void 0,null,function*(){un(!1),pn()}),title:"\u67E5\u770B\u5DF2\u9009"},p.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",Ee==null?void 0:Ee.length,"\u4E2A"),p.createElement("div",{style:{height:400,overflow:"auto"}},(Re=Se==null?void 0:Se.filter(Me=>Ee.includes(Me.identifier)))==null?void 0:Re.map((Me,Pt)=>{var mn,Rn;return p.createElement("div",{key:Pt,className:S.sendModal},p.createElement("div",{className:S.li},p.createElement("p",null,Me==null?void 0:Me.name),p.createElement("div",{className:S.bottom},p.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),p.createElement("i",{className:S.line}),p.createElement("span",{className:"c-grey-333"},Me.difficulty===1&&"\u7B80\u5355",Me.difficulty===2&&"\u9002\u4E2D",Me.difficulty===3&&"\u56F0\u96BE"),p.createElement("i",{className:S.line}),p.createElement("span",null,"\u521B\u5EFA\u8005\xA0",p.createElement(M.Z,{title:Me==null?void 0:Me.creator},p.createElement("span",{className:"c-grey-333"},((mn=Me==null?void 0:Me.creator)==null?void 0:mn.length)>6?((Rn=Me==null?void 0:Me.creator)==null?void 0:Rn.substr(0,3))+"...":Me==null?void 0:Me.creator))),p.createElement("i",{className:S.line}),p.createElement("span",{className:S.des},"\u66F4\u65B0\xA0",p.createElement("span",{className:"c-grey-333"},Me==null?void 0:Me.updated_at)))),p.createElement("div",{className:S.del,onClick:()=>{we(Ee.filter(Kn=>Kn!==Me.identifier))}},"\u5220\u9664"))}))))};var Pe=(0,he.connect)(({user:be,globalSetting:B})=>({user:be,globalSetting:B}))(pt)},48421:function(In,Wt,w){"use strict";w.d(Wt,{AL:function(){return D},Iy:function(){return T},Qv:function(){return x},ez:function(){return F},jb:function(){return m}});var p=w(32834),he=w.n(p),se=w(11690),ge=w.n(se);let O=1;function d(q,ue){const pe=q.match(/^(\s+)(?:```)/);if(pe===null)return ue;const We=pe[1];return ue.split(`
|
|
`).map(G=>{const N=G.match(/^\s+/);if(N===null)return G;const[W]=N;return W.length>=We.length?G.slice(We.length):G}).join(`
|
|
`)}let ve=[],oe=["<ul>"];const o=new(he()).Renderer,b=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function T(){ve.length=0,oe=["<ul>"]}const m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function y(q,ue,pe,We){if(ue>=q.length||q[ue].level<=pe)return ue;var G=q[ue];We.push("<li><a href='#"+O+G.anchor+"'>"+G.text+"</a>"),ue++;var N=[];return ue=y(q,ue,G.level,N),N.length>0&&(We.push("<ul>"),N.forEach(function(W){We.push(W)}),We.push("</ul>")),We.push("</li>"),ue=y(q,ue,pe,We),ue}function x(){return y(ve,0,0,oe),oe.push("</ul>"),oe.join("")}const L={heading(q){const ue=b.exec(q);if(O+=1,ue)return{type:"heading",raw:ue[0],depth:ue[1].length,text:ue[2]}},fences(q){const ue=this.rules.block.fences.exec(q);if(ue){const pe=ue[0];let We=d(pe,ue[3]||"");const G=ue[2]?ue[2].trim():ue[2];if(["latex","katex","math"].indexOf(G)>=0){const N=ne(),W=We;We=N,M[N]={type:"block",expression:W}}return{type:"code",raw:pe,lang:G,text:We}}}},U=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Y=0;const ne=()=>`__special_katext_id_${Y++}__`;let M={};function F(){return M}function D(){Y=0,M={}}function S(q){return q=q.replace(U,(ue,pe)=>{const We=ne();return M[We]={type:"inline",expression:pe},We}),q}const te=o.listitem;o.listitem=function(q){return te(S(q))};const X=o.paragraph;o.paragraph=function(q){return X(S(q))};const j=o.tablecell;o.tablecell=function(q,ue){return j(S(q),ue)},o.code=function(q,ue,pe){const We=(ue||"").match(/\S*/)[0];return We?["latex","katex","math"].indexOf(We)>=0?`<p class='editormd-tex'>${q}</p>`:`<pre class="prettyprint linenums"><code class="language-${ue}">${pe?q:(0,se.escape)(q,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(pe?q:(0,se.escape)(q,!0))+"</code></pre>"},o.heading=function(q,ue,pe){let We=this.options.headerPrefix+pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ve.push({anchor:We,level:ue,text:q}),"<h"+ue+' id="'+O+We+'">'+q+"</h"+ue+">"},he().setOptions({silent:!0,gfm:!0,pedantic:!1}),he().use({tokenizer:L,renderer:o}),Wt.ZP=he()},84022:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return hn}});var p=w(59301),he=w(72308),se=w(77321),ge=w(96949),O=w(55090),d=w(73447),ve=w(47123),oe=w(75841),o=w(77205),b=w(49618),T=w(62853),m=w(74416),y={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},x=y,L=w(53280),U=w(92310),Y=w.n(U),ne={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(_){return p.createElement("ul",{style:{display:"block"}},_)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(_){return p.createElement("button",null,_+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null},M=ne;function F(Le,_,H){return Math.max(_,Math.min(Le,H))}var D=function(_){var H=["onTouchStart","onTouchMove","onWheel"];H.includes(_._reactName)||_.preventDefault()},S=function(_){for(var H=[],E=X(_),Ie=j(_),Ee=E;Ee<Ie;Ee++)_.lazyLoadedList.indexOf(Ee)<0&&H.push(Ee);return H},te=function(_){for(var H=[],E=X(_),Ie=j(_),Ee=E;Ee<Ie;Ee++)H.push(Ee);return H},X=function(_){return _.currentSlide-q(_)},j=function(_){return _.currentSlide+ue(_)},q=function(_){return _.centerMode?Math.floor(_.slidesToShow/2)+(parseInt(_.centerPadding)>0?1:0):0},ue=function(_){return _.centerMode?Math.floor((_.slidesToShow-1)/2)+1+(parseInt(_.centerPadding)>0?1:0):_.slidesToShow},pe=function(_){return _&&_.offsetWidth||0},We=function(_){return _&&_.offsetHeight||0},G=function(_){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E,Ie,Ee,we;return E=_.startX-_.curX,Ie=_.startY-_.curY,Ee=Math.atan2(Ie,E),we=Math.round(Ee*180/Math.PI),we<0&&(we=360-Math.abs(we)),we<=45&&we>=0||we<=360&&we>=315?"left":we>=135&&we<=225?"right":H===!0?we>=35&&we<=135?"up":"down":"vertical"},N=function(_){var H=!0;return _.infinite||(_.centerMode&&_.currentSlide>=_.slideCount-1||_.slideCount<=_.slidesToShow||_.currentSlide>=_.slideCount-_.slidesToShow)&&(H=!1),H},W=function(_,H){var E={};return H.forEach(function(Ie){return E[Ie]=_[Ie]}),E},$=function(_){var H=p.Children.count(_.children),E=_.listRef,Ie=Math.ceil(pe(E)),Ee=_.trackRef&&_.trackRef.node,we=Math.ceil(pe(Ee)),Ze;if(_.vertical)Ze=Ie;else{var ut=_.centerMode&&parseInt(_.centerPadding)*2;typeof _.centerPadding=="string"&&_.centerPadding.slice(-1)==="%"&&(ut*=Ie/100),Ze=Math.ceil((Ie-ut)/_.slidesToShow)}var kt=E&&We(E.querySelector('[data-index="0"]')),ye=kt*_.slidesToShow,le=_.currentSlide===void 0?_.initialSlide:_.currentSlide;_.rtl&&_.currentSlide===void 0&&(le=H-1-_.initialSlide);var ht=_.lazyLoadedList||[],st=S((0,se.Z)((0,se.Z)({},_),{},{currentSlide:le,lazyLoadedList:ht}));ht=ht.concat(st);var dt={slideCount:H,slideWidth:Ze,listWidth:Ie,trackWidth:we,currentSlide:le,slideHeight:kt,listHeight:ye,lazyLoadedList:ht};return _.autoplaying===null&&_.autoplay&&(dt.autoplaying="playing"),dt},ie=function(_){var H=_.waitForAnimate,E=_.animating,Ie=_.fade,Ee=_.infinite,we=_.index,Ze=_.slideCount,ut=_.lazyLoad,kt=_.currentSlide,ye=_.centerMode,le=_.slidesToScroll,ht=_.slidesToShow,st=_.useCSS,dt=_.lazyLoadedList;if(H&&E)return{};var Je=we,gt,Lt,Ot,lt={},tt={},Ct=Ee?we:F(we,0,Ze-1);if(Ie){if(!Ee&&(we<0||we>=Ze))return{};we<0?Je=we+Ze:we>=Ze&&(Je=we-Ze),ut&&dt.indexOf(Je)<0&&(dt=dt.concat(Je)),lt={animating:!0,currentSlide:Je,lazyLoadedList:dt,targetSlide:Je},tt={animating:!1,targetSlide:Je}}else gt=Je,Je<0?(gt=Je+Ze,Ee?Ze%le!==0&&(gt=Ze-Ze%le):gt=0):!N(_)&&Je>kt?Je=gt=kt:ye&&Je>=Ze?(Je=Ee?Ze:Ze-1,gt=Ee?0:Ze-1):Je>=Ze&&(gt=Je-Ze,Ee?Ze%le!==0&&(gt=0):gt=Ze-ht),!Ee&&Je+ht>=Ze&&(gt=Ze-ht),Lt=Oe((0,se.Z)((0,se.Z)({},_),{},{slideIndex:Je})),Ot=Oe((0,se.Z)((0,se.Z)({},_),{},{slideIndex:gt})),Ee||(Lt===Ot&&(Je=gt),Lt=Ot),ut&&(dt=dt.concat(S((0,se.Z)((0,se.Z)({},_),{},{currentSlide:Je})))),st?(lt={animating:!0,currentSlide:gt,trackStyle:Bt((0,se.Z)((0,se.Z)({},_),{},{left:Lt})),lazyLoadedList:dt,targetSlide:Ct},tt={animating:!1,currentSlide:gt,trackStyle:$t((0,se.Z)((0,se.Z)({},_),{},{left:Ot})),swipeLeft:null,targetSlide:Ct}):lt={currentSlide:gt,trackStyle:$t((0,se.Z)((0,se.Z)({},_),{},{left:Ot})),lazyLoadedList:dt,targetSlide:Ct};return{state:lt,nextState:tt}},Q=function(_,H){var E,Ie,Ee,we,Ze,ut=_.slidesToScroll,kt=_.slidesToShow,ye=_.slideCount,le=_.currentSlide,ht=_.targetSlide,st=_.lazyLoad,dt=_.infinite;if(we=ye%ut!==0,E=we?0:(ye-le)%ut,H.message==="previous")Ee=E===0?ut:kt-E,Ze=le-Ee,st&&!dt&&(Ie=le-Ee,Ze=Ie===-1?ye-1:Ie),dt||(Ze=ht-ut);else if(H.message==="next")Ee=E===0?ut:E,Ze=le+Ee,st&&!dt&&(Ze=(le+ut)%ye+E),dt||(Ze=ht+ut);else if(H.message==="dots")Ze=H.index*H.slidesToScroll;else if(H.message==="children"){if(Ze=H.index,dt){var Je=cn((0,se.Z)((0,se.Z)({},_),{},{targetSlide:Ze}));Ze>H.currentSlide&&Je==="left"?Ze=Ze-ye:Ze<H.currentSlide&&Je==="right"&&(Ze=Ze+ye)}}else H.message==="index"&&(Ze=Number(H.index));return Ze},g=function(_,H,E){return _.target.tagName.match("TEXTAREA|INPUT|SELECT")||!H?"":_.keyCode===37?E?"next":"previous":_.keyCode===39?E?"previous":"next":""},v=function(_,H,E){return _.target.tagName==="IMG"&&D(_),!H||!E&&_.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:_.touches?_.touches[0].pageX:_.clientX,startY:_.touches?_.touches[0].pageY:_.clientY,curX:_.touches?_.touches[0].pageX:_.clientX,curY:_.touches?_.touches[0].pageY:_.clientY}}},z=function(_,H){var E=H.scrolling,Ie=H.animating,Ee=H.vertical,we=H.swipeToSlide,Ze=H.verticalSwiping,ut=H.rtl,kt=H.currentSlide,ye=H.edgeFriction,le=H.edgeDragged,ht=H.onEdge,st=H.swiped,dt=H.swiping,Je=H.slideCount,gt=H.slidesToScroll,Lt=H.infinite,Ot=H.touchObject,lt=H.swipeEvent,tt=H.listHeight,Ct=H.listWidth;if(!E){if(Ie)return D(_);Ee&&we&&Ze&&D(_);var Jt,un={},xn=Oe(H);Ot.curX=_.touches?_.touches[0].pageX:_.clientX,Ot.curY=_.touches?_.touches[0].pageY:_.clientY,Ot.swipeLength=Math.round(Math.sqrt(Math.pow(Ot.curX-Ot.startX,2)));var nn=Math.round(Math.sqrt(Math.pow(Ot.curY-Ot.startY,2)));if(!Ze&&!dt&&nn>10)return{scrolling:!0};Ze&&(Ot.swipeLength=nn);var tn=(ut?-1:1)*(Ot.curX>Ot.startX?1:-1);Ze&&(tn=Ot.curY>Ot.startY?1:-1);var Fe=Math.ceil(Je/gt),it=G(H.touchObject,Ze),St=Ot.swipeLength;return Lt||(kt===0&&(it==="right"||it==="down")||kt+1>=Fe&&(it==="left"||it==="up")||!N(H)&&(it==="left"||it==="up"))&&(St=Ot.swipeLength*ye,le===!1&&ht&&(ht(it),un.edgeDragged=!0)),!st&<&&(lt(it),un.swiped=!0),Ee?Jt=xn+St*(tt/Ct)*tn:ut?Jt=xn-St*tn:Jt=xn+St*tn,Ze&&(Jt=xn+St*tn),un=(0,se.Z)((0,se.Z)({},un),{},{touchObject:Ot,swipeLeft:Jt,trackStyle:$t((0,se.Z)((0,se.Z)({},H),{},{left:Jt}))}),Math.abs(Ot.curX-Ot.startX)<Math.abs(Ot.curY-Ot.startY)*.8||Ot.swipeLength>10&&(un.swiping=!0,D(_)),un}},ce=function(_,H){var E=H.dragging,Ie=H.swipe,Ee=H.touchObject,we=H.listWidth,Ze=H.touchThreshold,ut=H.verticalSwiping,kt=H.listHeight,ye=H.swipeToSlide,le=H.scrolling,ht=H.onSwipe,st=H.targetSlide,dt=H.currentSlide,Je=H.infinite;if(!E)return Ie&&D(_),{};var gt=ut?kt/Ze:we/Ze,Lt=G(Ee,ut),Ot={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(le||!Ee.swipeLength)return Ot;if(Ee.swipeLength>gt){D(_),ht&&ht(Lt);var lt,tt,Ct=Je?dt:st;switch(Lt){case"left":case"up":tt=Ct+It(H),lt=ye?Ye(H,tt):tt,Ot.currentDirection=0;break;case"right":case"down":tt=Ct-It(H),lt=ye?Ye(H,tt):tt,Ot.currentDirection=1;break;default:lt=Ct}Ot.triggerSlideHandler=lt}else{var Jt=Oe(H);Ot.trackStyle=Bt((0,se.Z)((0,se.Z)({},H),{},{left:Jt}))}return Ot},je=function(_){for(var H=_.infinite?_.slideCount*2:_.slideCount,E=_.infinite?_.slidesToShow*-1:0,Ie=_.infinite?_.slidesToShow*-1:0,Ee=[];E<H;)Ee.push(E),E=Ie+_.slidesToScroll,Ie+=Math.min(_.slidesToScroll,_.slidesToShow);return Ee},Ye=function(_,H){var E=je(_),Ie=0;if(H>E[E.length-1])H=E[E.length-1];else for(var Ee in E){if(H<E[Ee]){H=Ie;break}Ie=E[Ee]}return H},It=function(_){var H=_.centerMode?_.slideWidth*Math.floor(_.slidesToShow/2):0;if(_.swipeToSlide){var E,Ie=_.listRef,Ee=Ie.querySelectorAll&&Ie.querySelectorAll(".slick-slide")||[];if(Array.from(Ee).every(function(ut){if(_.vertical){if(ut.offsetTop+We(ut)/2>_.swipeLeft*-1)return E=ut,!1}else if(ut.offsetLeft-H+pe(ut)/2>_.swipeLeft*-1)return E=ut,!1;return!0}),!E)return 0;var we=_.rtl===!0?_.slideCount-_.currentSlide:_.currentSlide,Ze=Math.abs(E.dataset.index-we)||1;return Ze}else return _.slidesToScroll},bt=function(_,H){return H.reduce(function(E,Ie){return E&&_.hasOwnProperty(Ie)},!0)?null:console.error("Keys Missing:",_)},$t=function(_){bt(_,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var H,E;if(!_.vertical)H=Yt(_)*_.slideWidth;else{var Ie=_.unslick?_.slideCount:_.slideCount+2*_.slidesToShow;E=Ie*_.slideHeight}var Ee={opacity:1,transition:"",WebkitTransition:""};if(_.useTransform){var we=_.vertical?"translate3d(0px, "+_.left+"px, 0px)":"translate3d("+_.left+"px, 0px, 0px)",Ze=_.vertical?"translate3d(0px, "+_.left+"px, 0px)":"translate3d("+_.left+"px, 0px, 0px)",ut=_.vertical?"translateY("+_.left+"px)":"translateX("+_.left+"px)";Ee=(0,se.Z)((0,se.Z)({},Ee),{},{WebkitTransform:we,transform:Ze,msTransform:ut})}else _.vertical?Ee.top=_.left:Ee.left=_.left;return _.fade&&(Ee={opacity:1}),H&&(Ee.width=H),E&&(Ee.height=E),window&&!window.addEventListener&&window.attachEvent&&(_.vertical?Ee.marginTop=_.left+"px":Ee.marginLeft=_.left+"px"),Ee},Bt=function(_){bt(_,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var H=$t(_);return _.useTransform?(H.WebkitTransition="-webkit-transform "+_.speed+"ms "+_.cssEase,H.transition="transform "+_.speed+"ms "+_.cssEase):_.vertical?H.transition="top "+_.speed+"ms "+_.cssEase:H.transition="left "+_.speed+"ms "+_.cssEase,H},Oe=function(_){if(_.unslick)return 0;bt(_,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var H=_.slideIndex,E=_.trackRef,Ie=_.infinite,Ee=_.centerMode,we=_.slideCount,Ze=_.slidesToShow,ut=_.slidesToScroll,kt=_.slideWidth,ye=_.listWidth,le=_.variableWidth,ht=_.slideHeight,st=_.fade,dt=_.vertical,Je=0,gt,Lt,Ot=0;if(st||_.slideCount===1)return 0;var lt=0;if(Ie?(lt=-jt(_),we%ut!==0&&H+ut>we&&(lt=-(H>we?Ze-(H-we):we%ut)),Ee&&(lt+=parseInt(Ze/2))):(we%ut!==0&&H+ut>we&&(lt=Ze-we%ut),Ee&&(lt=parseInt(Ze/2))),Je=lt*kt,Ot=lt*ht,dt?gt=H*ht*-1+Ot:gt=H*kt*-1+Je,le===!0){var tt,Ct=E&&E.node;if(tt=H+jt(_),Lt=Ct&&Ct.childNodes[tt],gt=Lt?Lt.offsetLeft*-1:0,Ee===!0){tt=Ie?H+jt(_):H,Lt=Ct&&Ct.children[tt],gt=0;for(var Jt=0;Jt<tt;Jt++)gt-=Ct&&Ct.children[Jt]&&Ct.children[Jt].offsetWidth;gt-=parseInt(_.centerPadding),gt+=Lt&&(ye-Lt.offsetWidth)/2}}return gt},jt=function(_){return _.unslick||!_.infinite?0:_.variableWidth?_.slideCount:_.slidesToShow+(_.centerMode?1:0)},En=function(_){return _.unslick||!_.infinite?0:_.slideCount},Yt=function(_){return _.slideCount===1?1:jt(_)+_.slideCount+En(_)},cn=function(_){return _.targetSlide>_.currentSlide?_.targetSlide>_.currentSlide+pt(_)?"left":"right":_.targetSlide<_.currentSlide-Pe(_)?"right":"left"},pt=function(_){var H=_.slidesToShow,E=_.centerMode,Ie=_.rtl,Ee=_.centerPadding;if(E){var we=(H-1)/2+1;return parseInt(Ee)>0&&(we+=1),Ie&&H%2===0&&(we+=1),we}return Ie?0:H-1},Pe=function(_){var H=_.slidesToShow,E=_.centerMode,Ie=_.rtl,Ee=_.centerPadding;if(E){var we=(H-1)/2+1;return parseInt(Ee)>0&&(we+=1),!Ie&&H%2===0&&(we+=1),we}return Ie?H-1:0},be=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},B=Object.keys(M);function Ce(Le){return B.reduce(function(_,H){return Le.hasOwnProperty(H)&&(_[H]=Le[H]),_},{})}function He(Le,_,H){return _=(0,oe.Z)(_),(0,d.Z)(Le,(0,ve.Z)()?Reflect.construct(_,H||[],(0,oe.Z)(Le).constructor):_.apply(Le,H))}var Z=function(_){var H,E,Ie,Ee,we;_.rtl?we=_.slideCount-1-_.index:we=_.index,Ie=we<0||we>=_.slideCount,_.centerMode?(Ee=Math.floor(_.slidesToShow/2),E=(we-_.currentSlide)%_.slideCount===0,we>_.currentSlide-Ee-1&&we<=_.currentSlide+Ee&&(H=!0)):H=_.currentSlide<=we&&we<_.currentSlide+_.slidesToShow;var Ze;_.targetSlide<0?Ze=_.targetSlide+_.slideCount:_.targetSlide>=_.slideCount?Ze=_.targetSlide-_.slideCount:Ze=_.targetSlide;var ut=we===Ze;return{"slick-slide":!0,"slick-active":H,"slick-center":E,"slick-cloned":Ie,"slick-current":ut}},P=function(_){var H={};return(_.variableWidth===void 0||_.variableWidth===!1)&&(H.width=_.slideWidth),_.fade&&(H.position="relative",_.vertical&&_.slideHeight?H.top=-_.index*parseInt(_.slideHeight):H.left=-_.index*parseInt(_.slideWidth),H.opacity=_.currentSlide===_.index?1:0,H.zIndex=_.currentSlide===_.index?999:998,_.useCSS&&(H.transition="opacity "+_.speed+"ms "+_.cssEase+", visibility "+_.speed+"ms "+_.cssEase)),H},K=function(_,H){return _.key+"-"+H},me=function(_){var H,E=[],Ie=[],Ee=[],we=p.Children.count(_.children),Ze=X(_),ut=j(_);return p.Children.forEach(_.children,function(kt,ye){var le,ht={message:"children",index:ye,slidesToScroll:_.slidesToScroll,currentSlide:_.currentSlide};!_.lazyLoad||_.lazyLoad&&_.lazyLoadedList.indexOf(ye)>=0?le=kt:le=p.createElement("div",null);var st=P((0,se.Z)((0,se.Z)({},_),{},{index:ye})),dt=le.props.className||"",Je=Z((0,se.Z)((0,se.Z)({},_),{},{index:ye}));if(E.push(p.cloneElement(le,{key:"original"+K(le,ye),"data-index":ye,className:Y()(Je,dt),tabIndex:"-1","aria-hidden":!Je["slick-active"],style:(0,se.Z)((0,se.Z)({outline:"none"},le.props.style||{}),st),onClick:function(Ot){le.props&&le.props.onClick&&le.props.onClick(Ot),_.focusOnSelect&&_.focusOnSelect(ht)}})),_.infinite&&we>1&&_.fade===!1&&!_.unslick){var gt=we-ye;gt<=jt(_)&&(H=-gt,H>=Ze&&(le=kt),Je=Z((0,se.Z)((0,se.Z)({},_),{},{index:H})),Ie.push(p.cloneElement(le,{key:"precloned"+K(le,H),"data-index":H,tabIndex:"-1",className:Y()(Je,dt),"aria-hidden":!Je["slick-active"],style:(0,se.Z)((0,se.Z)({},le.props.style||{}),st),onClick:function(Ot){le.props&&le.props.onClick&&le.props.onClick(Ot),_.focusOnSelect&&_.focusOnSelect(ht)}}))),H=we+ye,H<ut&&(le=kt),Je=Z((0,se.Z)((0,se.Z)({},_),{},{index:H})),Ee.push(p.cloneElement(le,{key:"postcloned"+K(le,H),"data-index":H,tabIndex:"-1",className:Y()(Je,dt),"aria-hidden":!Je["slick-active"],style:(0,se.Z)((0,se.Z)({},le.props.style||{}),st),onClick:function(Ot){le.props&&le.props.onClick&&le.props.onClick(Ot),_.focusOnSelect&&_.focusOnSelect(ht)}}))}}),_.rtl?Ie.concat(E,Ee).reverse():Ie.concat(E,Ee)},I=function(Le){function _(){var H;(0,ge.Z)(this,_);for(var E=arguments.length,Ie=new Array(E),Ee=0;Ee<E;Ee++)Ie[Ee]=arguments[Ee];return H=He(this,_,[].concat(Ie)),(0,b.Z)(H,"node",null),(0,b.Z)(H,"handleRef",function(we){H.node=we}),H}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"render",value:function(){var E=me(this.props),Ie=this.props,Ee=Ie.onMouseEnter,we=Ie.onMouseOver,Ze=Ie.onMouseLeave,ut={onMouseEnter:Ee,onMouseOver:we,onMouseLeave:Ze};return p.createElement("div",(0,he.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ut),E)}}])}(p.PureComponent);function de(Le,_,H){return _=(0,oe.Z)(_),(0,d.Z)(Le,(0,ve.Z)()?Reflect.construct(_,H||[],(0,oe.Z)(Le).constructor):_.apply(Le,H))}var ee=function(_){var H;return _.infinite?H=Math.ceil(_.slideCount/_.slidesToScroll):H=Math.ceil((_.slideCount-_.slidesToShow)/_.slidesToScroll)+1,H},De=function(Le){function _(){return(0,ge.Z)(this,_),de(this,_,arguments)}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"clickHandler",value:function(E,Ie){Ie.preventDefault(),this.props.clickHandler(E)}},{key:"render",value:function(){for(var E=this.props,Ie=E.onMouseEnter,Ee=E.onMouseOver,we=E.onMouseLeave,Ze=E.infinite,ut=E.slidesToScroll,kt=E.slidesToShow,ye=E.slideCount,le=E.currentSlide,ht=ee({slideCount:ye,slidesToScroll:ut,slidesToShow:kt,infinite:Ze}),st={onMouseEnter:Ie,onMouseOver:Ee,onMouseLeave:we},dt=[],Je=0;Je<ht;Je++){var gt=(Je+1)*ut-1,Lt=Ze?gt:F(gt,0,ye-1),Ot=Lt-(ut-1),lt=Ze?Ot:F(Ot,0,ye-1),tt=Y()({"slick-active":Ze?le>=lt&&le<=Lt:le===lt}),Ct={message:"dots",index:Je,slidesToScroll:ut,currentSlide:le},Jt=this.clickHandler.bind(this,Ct);dt=dt.concat(p.createElement("li",{key:Je,className:tt},p.cloneElement(this.props.customPaging(Je),{onClick:Jt})))}return p.cloneElement(this.props.appendDots(dt),(0,se.Z)({className:this.props.dotsClass},st))}}])}(p.PureComponent);function Te(Le,_,H){return _=(0,oe.Z)(_),(0,d.Z)(Le,(0,ve.Z)()?Reflect.construct(_,H||[],(0,oe.Z)(Le).constructor):_.apply(Le,H))}var Ke=function(Le){function _(){return(0,ge.Z)(this,_),Te(this,_,arguments)}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"clickHandler",value:function(E,Ie){Ie&&Ie.preventDefault(),this.props.clickHandler(E,Ie)}},{key:"render",value:function(){var E={"slick-arrow":!0,"slick-prev":!0},Ie=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(E["slick-disabled"]=!0,Ie=null);var Ee={key:"0","data-role":"none",className:Y()(E),style:{display:"block"},onClick:Ie},we={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Ze;return this.props.prevArrow?Ze=p.cloneElement(this.props.prevArrow,(0,se.Z)((0,se.Z)({},Ee),we)):Ze=p.createElement("button",(0,he.Z)({key:"0",type:"button"},Ee)," ","Previous"),Ze}}])}(p.PureComponent),ze=function(Le){function _(){return(0,ge.Z)(this,_),Te(this,_,arguments)}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"clickHandler",value:function(E,Ie){Ie&&Ie.preventDefault(),this.props.clickHandler(E,Ie)}},{key:"render",value:function(){var E={"slick-arrow":!0,"slick-next":!0},Ie=this.clickHandler.bind(this,{message:"next"});N(this.props)||(E["slick-disabled"]=!0,Ie=null);var Ee={key:"1","data-role":"none",className:Y()(E),style:{display:"block"},onClick:Ie},we={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Ze;return this.props.nextArrow?Ze=p.cloneElement(this.props.nextArrow,(0,se.Z)((0,se.Z)({},Ee),we)):Ze=p.createElement("button",(0,he.Z)({key:"1",type:"button"},Ee)," ","Next"),Ze}}])}(p.PureComponent),Xe=w(76374),ot=["animating"];function _e(Le,_,H){return _=(0,oe.Z)(_),(0,d.Z)(Le,(0,ve.Z)()?Reflect.construct(_,H||[],(0,oe.Z)(Le).constructor):_.apply(Le,H))}var Re=function(Le){function _(H){var E;(0,ge.Z)(this,_),E=_e(this,_,[H]),(0,b.Z)(E,"listRefHandler",function(Ee){return E.list=Ee}),(0,b.Z)(E,"trackRefHandler",function(Ee){return E.track=Ee}),(0,b.Z)(E,"adaptHeight",function(){if(E.props.adaptiveHeight&&E.list){var Ee=E.list.querySelector('[data-index="'.concat(E.state.currentSlide,'"]'));E.list.style.height=We(Ee)+"px"}}),(0,b.Z)(E,"componentDidMount",function(){if(E.props.onInit&&E.props.onInit(),E.props.lazyLoad){var Ee=S((0,se.Z)((0,se.Z)({},E.props),E.state));Ee.length>0&&(E.setState(function(Ze){return{lazyLoadedList:Ze.lazyLoadedList.concat(Ee)}}),E.props.onLazyLoad&&E.props.onLazyLoad(Ee))}var we=(0,se.Z)({listRef:E.list,trackRef:E.track},E.props);E.updateState(we,!0,function(){E.adaptHeight(),E.props.autoplay&&E.autoPlay("playing")}),E.props.lazyLoad==="progressive"&&(E.lazyLoadTimer=setInterval(E.progressiveLazyLoad,1e3)),E.ro=new Xe.Z(function(){E.state.animating?(E.onWindowResized(!1),E.callbackTimers.push(setTimeout(function(){return E.onWindowResized()},E.props.speed))):E.onWindowResized()}),E.ro.observe(E.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(Ze){Ze.onfocus=E.props.pauseOnFocus?E.onSlideFocus:null,Ze.onblur=E.props.pauseOnFocus?E.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",E.onWindowResized):window.attachEvent("onresize",E.onWindowResized)}),(0,b.Z)(E,"componentWillUnmount",function(){E.animationEndCallback&&clearTimeout(E.animationEndCallback),E.lazyLoadTimer&&clearInterval(E.lazyLoadTimer),E.callbackTimers.length&&(E.callbackTimers.forEach(function(Ee){return clearTimeout(Ee)}),E.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",E.onWindowResized):window.detachEvent("onresize",E.onWindowResized),E.autoplayTimer&&clearInterval(E.autoplayTimer),E.ro.disconnect()}),(0,b.Z)(E,"componentDidUpdate",function(Ee){if(E.checkImagesLoad(),E.props.onReInit&&E.props.onReInit(),E.props.lazyLoad){var we=S((0,se.Z)((0,se.Z)({},E.props),E.state));we.length>0&&(E.setState(function(kt){return{lazyLoadedList:kt.lazyLoadedList.concat(we)}}),E.props.onLazyLoad&&E.props.onLazyLoad(we))}E.adaptHeight();var Ze=(0,se.Z)((0,se.Z)({listRef:E.list,trackRef:E.track},E.props),E.state),ut=E.didPropsChange(Ee);ut&&E.updateState(Ze,ut,function(){E.state.currentSlide>=p.Children.count(E.props.children)&&E.changeSlide({message:"index",index:p.Children.count(E.props.children)-E.props.slidesToShow,currentSlide:E.state.currentSlide}),(Ee.autoplay!==E.props.autoplay||Ee.autoplaySpeed!==E.props.autoplaySpeed)&&(!Ee.autoplay&&E.props.autoplay?E.autoPlay("playing"):E.props.autoplay?E.autoPlay("update"):E.pause("paused"))})}),(0,b.Z)(E,"onWindowResized",function(Ee){E.debouncedResize&&E.debouncedResize.cancel(),E.debouncedResize=(0,L.D)(50,function(){return E.resizeWindow(Ee)}),E.debouncedResize()}),(0,b.Z)(E,"resizeWindow",function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,we=!!(E.track&&E.track.node);if(we){var Ze=(0,se.Z)((0,se.Z)({listRef:E.list,trackRef:E.track},E.props),E.state);E.updateState(Ze,Ee,function(){E.props.autoplay?E.autoPlay("update"):E.pause("paused")}),E.setState({animating:!1}),clearTimeout(E.animationEndCallback),delete E.animationEndCallback}}),(0,b.Z)(E,"updateState",function(Ee,we,Ze){var ut=$(Ee);Ee=(0,se.Z)((0,se.Z)((0,se.Z)({},Ee),ut),{},{slideIndex:ut.currentSlide});var kt=Oe(Ee);Ee=(0,se.Z)((0,se.Z)({},Ee),{},{left:kt});var ye=$t(Ee);(we||p.Children.count(E.props.children)!==p.Children.count(Ee.children))&&(ut.trackStyle=ye),E.setState(ut,Ze)}),(0,b.Z)(E,"ssrInit",function(){if(E.props.variableWidth){var Ee=0,we=0,Ze=[],ut=jt((0,se.Z)((0,se.Z)((0,se.Z)({},E.props),E.state),{},{slideCount:E.props.children.length})),kt=En((0,se.Z)((0,se.Z)((0,se.Z)({},E.props),E.state),{},{slideCount:E.props.children.length}));E.props.children.forEach(function(Jt){Ze.push(Jt.props.style.width),Ee+=Jt.props.style.width});for(var ye=0;ye<ut;ye++)we+=Ze[Ze.length-1-ye],Ee+=Ze[Ze.length-1-ye];for(var le=0;le<kt;le++)Ee+=Ze[le];for(var ht=0;ht<E.state.currentSlide;ht++)we+=Ze[ht];var st={width:Ee+"px",left:-we+"px"};if(E.props.centerMode){var dt="".concat(Ze[E.state.currentSlide],"px");st.left="calc(".concat(st.left," + (100% - ").concat(dt,") / 2 ) ")}return{trackStyle:st}}var Je=p.Children.count(E.props.children),gt=(0,se.Z)((0,se.Z)((0,se.Z)({},E.props),E.state),{},{slideCount:Je}),Lt=jt(gt)+En(gt)+Je,Ot=100/E.props.slidesToShow*Lt,lt=100/Lt,tt=-lt*(jt(gt)+E.state.currentSlide)*Ot/100;E.props.centerMode&&(tt+=(100-lt*Ot/100)/2);var Ct={width:Ot+"%",left:tt+"%"};return{slideWidth:lt+"%",trackStyle:Ct}}),(0,b.Z)(E,"checkImagesLoad",function(){var Ee=E.list&&E.list.querySelectorAll&&E.list.querySelectorAll(".slick-slide img")||[],we=Ee.length,Ze=0;Array.prototype.forEach.call(Ee,function(ut){var kt=function(){return++Ze&&Ze>=we&&E.onWindowResized()};if(!ut.onclick)ut.onclick=function(){return ut.parentNode.focus()};else{var ye=ut.onclick;ut.onclick=function(le){ye(le),ut.parentNode.focus()}}ut.onload||(E.props.lazyLoad?ut.onload=function(){E.adaptHeight(),E.callbackTimers.push(setTimeout(E.onWindowResized,E.props.speed))}:(ut.onload=kt,ut.onerror=function(){kt(),E.props.onLazyLoadError&&E.props.onLazyLoadError()}))})}),(0,b.Z)(E,"progressiveLazyLoad",function(){for(var Ee=[],we=(0,se.Z)((0,se.Z)({},E.props),E.state),Ze=E.state.currentSlide;Ze<E.state.slideCount+En(we);Ze++)if(E.state.lazyLoadedList.indexOf(Ze)<0){Ee.push(Ze);break}for(var ut=E.state.currentSlide-1;ut>=-jt(we);ut--)if(E.state.lazyLoadedList.indexOf(ut)<0){Ee.push(ut);break}Ee.length>0?(E.setState(function(kt){return{lazyLoadedList:kt.lazyLoadedList.concat(Ee)}}),E.props.onLazyLoad&&E.props.onLazyLoad(Ee)):E.lazyLoadTimer&&(clearInterval(E.lazyLoadTimer),delete E.lazyLoadTimer)}),(0,b.Z)(E,"slideHandler",function(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=E.props,ut=Ze.asNavFor,kt=Ze.beforeChange,ye=Ze.onLazyLoad,le=Ze.speed,ht=Ze.afterChange,st=E.state.currentSlide,dt=ie((0,se.Z)((0,se.Z)((0,se.Z)({index:Ee},E.props),E.state),{},{trackRef:E.track,useCSS:E.props.useCSS&&!we})),Je=dt.state,gt=dt.nextState;if(Je){kt&&kt(st,Je.currentSlide);var Lt=Je.lazyLoadedList.filter(function(Ot){return E.state.lazyLoadedList.indexOf(Ot)<0});ye&&Lt.length>0&&ye(Lt),!E.props.waitForAnimate&&E.animationEndCallback&&(clearTimeout(E.animationEndCallback),ht&&ht(st),delete E.animationEndCallback),E.setState(Je,function(){ut&&E.asNavForIndex!==Ee&&(E.asNavForIndex=Ee,ut.innerSlider.slideHandler(Ee)),gt&&(E.animationEndCallback=setTimeout(function(){var Ot=gt.animating,lt=(0,m.Z)(gt,ot);E.setState(lt,function(){E.callbackTimers.push(setTimeout(function(){return E.setState({animating:Ot})},10)),ht&&ht(Je.currentSlide),delete E.animationEndCallback})},le))})}}),(0,b.Z)(E,"changeSlide",function(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=(0,se.Z)((0,se.Z)({},E.props),E.state),ut=Q(Ze,Ee);if(!(ut!==0&&!ut)&&(we===!0?E.slideHandler(ut,we):E.slideHandler(ut),E.props.autoplay&&E.autoPlay("update"),E.props.focusOnSelect)){var kt=E.list.querySelectorAll(".slick-current");kt[0]&&kt[0].focus()}}),(0,b.Z)(E,"clickHandler",function(Ee){E.clickable===!1&&(Ee.stopPropagation(),Ee.preventDefault()),E.clickable=!0}),(0,b.Z)(E,"keyHandler",function(Ee){var we=g(Ee,E.props.accessibility,E.props.rtl);we!==""&&E.changeSlide({message:we})}),(0,b.Z)(E,"selectHandler",function(Ee){E.changeSlide(Ee)}),(0,b.Z)(E,"disableBodyScroll",function(){var Ee=function(Ze){Ze=Ze||window.event,Ze.preventDefault&&Ze.preventDefault(),Ze.returnValue=!1};window.ontouchmove=Ee}),(0,b.Z)(E,"enableBodyScroll",function(){window.ontouchmove=null}),(0,b.Z)(E,"swipeStart",function(Ee){E.props.verticalSwiping&&E.disableBodyScroll();var we=v(Ee,E.props.swipe,E.props.draggable);we!==""&&E.setState(we)}),(0,b.Z)(E,"swipeMove",function(Ee){var we=z(Ee,(0,se.Z)((0,se.Z)((0,se.Z)({},E.props),E.state),{},{trackRef:E.track,listRef:E.list,slideIndex:E.state.currentSlide}));we&&(we.swiping&&(E.clickable=!1),E.setState(we))}),(0,b.Z)(E,"swipeEnd",function(Ee){var we=ce(Ee,(0,se.Z)((0,se.Z)((0,se.Z)({},E.props),E.state),{},{trackRef:E.track,listRef:E.list,slideIndex:E.state.currentSlide}));if(we){var Ze=we.triggerSlideHandler;delete we.triggerSlideHandler,E.setState(we),Ze!==void 0&&(E.slideHandler(Ze),E.props.verticalSwiping&&E.enableBodyScroll())}}),(0,b.Z)(E,"touchEnd",function(Ee){E.swipeEnd(Ee),E.clickable=!0}),(0,b.Z)(E,"slickPrev",function(){E.callbackTimers.push(setTimeout(function(){return E.changeSlide({message:"previous"})},0))}),(0,b.Z)(E,"slickNext",function(){E.callbackTimers.push(setTimeout(function(){return E.changeSlide({message:"next"})},0))}),(0,b.Z)(E,"slickGoTo",function(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ee=Number(Ee),isNaN(Ee))return"";E.callbackTimers.push(setTimeout(function(){return E.changeSlide({message:"index",index:Ee,currentSlide:E.state.currentSlide},we)},0))}),(0,b.Z)(E,"play",function(){var Ee;if(E.props.rtl)Ee=E.state.currentSlide-E.props.slidesToScroll;else if(N((0,se.Z)((0,se.Z)({},E.props),E.state)))Ee=E.state.currentSlide+E.props.slidesToScroll;else return!1;E.slideHandler(Ee)}),(0,b.Z)(E,"autoPlay",function(Ee){E.autoplayTimer&&clearInterval(E.autoplayTimer);var we=E.state.autoplaying;if(Ee==="update"){if(we==="hovered"||we==="focused"||we==="paused")return}else if(Ee==="leave"){if(we==="paused"||we==="focused")return}else if(Ee==="blur"&&(we==="paused"||we==="hovered"))return;E.autoplayTimer=setInterval(E.play,E.props.autoplaySpeed+50),E.setState({autoplaying:"playing"})}),(0,b.Z)(E,"pause",function(Ee){E.autoplayTimer&&(clearInterval(E.autoplayTimer),E.autoplayTimer=null);var we=E.state.autoplaying;Ee==="paused"?E.setState({autoplaying:"paused"}):Ee==="focused"?(we==="hovered"||we==="playing")&&E.setState({autoplaying:"focused"}):we==="playing"&&E.setState({autoplaying:"hovered"})}),(0,b.Z)(E,"onDotsOver",function(){return E.props.autoplay&&E.pause("hovered")}),(0,b.Z)(E,"onDotsLeave",function(){return E.props.autoplay&&E.state.autoplaying==="hovered"&&E.autoPlay("leave")}),(0,b.Z)(E,"onTrackOver",function(){return E.props.autoplay&&E.pause("hovered")}),(0,b.Z)(E,"onTrackLeave",function(){return E.props.autoplay&&E.state.autoplaying==="hovered"&&E.autoPlay("leave")}),(0,b.Z)(E,"onSlideFocus",function(){return E.props.autoplay&&E.pause("focused")}),(0,b.Z)(E,"onSlideBlur",function(){return E.props.autoplay&&E.state.autoplaying==="focused"&&E.autoPlay("blur")}),(0,b.Z)(E,"render",function(){var Ee=Y()("slick-slider",E.props.className,{"slick-vertical":E.props.vertical,"slick-initialized":!0}),we=(0,se.Z)((0,se.Z)({},E.props),E.state),Ze=W(we,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),ut=E.props.pauseOnHover;Ze=(0,se.Z)((0,se.Z)({},Ze),{},{onMouseEnter:ut?E.onTrackOver:null,onMouseLeave:ut?E.onTrackLeave:null,onMouseOver:ut?E.onTrackOver:null,focusOnSelect:E.props.focusOnSelect&&E.clickable?E.selectHandler:null});var kt;if(E.props.dots===!0&&E.state.slideCount>=E.props.slidesToShow){var ye=W(we,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),le=E.props.pauseOnDotsHover;ye=(0,se.Z)((0,se.Z)({},ye),{},{clickHandler:E.changeSlide,onMouseEnter:le?E.onDotsLeave:null,onMouseOver:le?E.onDotsOver:null,onMouseLeave:le?E.onDotsLeave:null}),kt=p.createElement(De,ye)}var ht,st,dt=W(we,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);dt.clickHandler=E.changeSlide,E.props.arrows&&(ht=p.createElement(Ke,dt),st=p.createElement(ze,dt));var Je=null;E.props.vertical&&(Je={height:E.state.listHeight});var gt=null;E.props.vertical===!1?E.props.centerMode===!0&&(gt={padding:"0px "+E.props.centerPadding}):E.props.centerMode===!0&&(gt={padding:E.props.centerPadding+" 0px"});var Lt=(0,se.Z)((0,se.Z)({},Je),gt),Ot=E.props.touchMove,lt={className:"slick-list",style:Lt,onClick:E.clickHandler,onMouseDown:Ot?E.swipeStart:null,onMouseMove:E.state.dragging&&Ot?E.swipeMove:null,onMouseUp:Ot?E.swipeEnd:null,onMouseLeave:E.state.dragging&&Ot?E.swipeEnd:null,onTouchStart:Ot?E.swipeStart:null,onTouchMove:E.state.dragging&&Ot?E.swipeMove:null,onTouchEnd:Ot?E.touchEnd:null,onTouchCancel:E.state.dragging&&Ot?E.swipeEnd:null,onKeyDown:E.props.accessibility?E.keyHandler:null},tt={className:Ee,dir:"ltr",style:E.props.style};return E.props.unslick&&(lt={className:"slick-list"},tt={className:Ee,style:E.props.style}),p.createElement("div",tt,E.props.unslick?"":ht,p.createElement("div",(0,he.Z)({ref:E.listRefHandler},lt),p.createElement(I,(0,he.Z)({ref:E.trackRefHandler},Ze),E.props.children)),E.props.unslick?"":st,E.props.unslick?"":kt)}),E.list=null,E.track=null,E.state=(0,se.Z)((0,se.Z)({},x),{},{currentSlide:E.props.initialSlide,targetSlide:E.props.initialSlide?E.props.initialSlide:0,slideCount:p.Children.count(E.props.children)}),E.callbackTimers=[],E.clickable=!0,E.debouncedResize=null;var Ie=E.ssrInit();return E.state=(0,se.Z)((0,se.Z)({},E.state),Ie),E}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"didPropsChange",value:function(E){for(var Ie=!1,Ee=0,we=Object.keys(this.props);Ee<we.length;Ee++){var Ze=we[Ee];if(!E.hasOwnProperty(Ze)){Ie=!0;break}if(!((0,T.Z)(E[Ze])==="object"||typeof E[Ze]=="function"||isNaN(E[Ze]))&&E[Ze]!==this.props[Ze]){Ie=!0;break}}return Ie||p.Children.count(this.props.children)!==p.Children.count(E.children)}}])}(p.Component),at=w(7861),Qe=w.n(at);function Ge(Le,_,H){return _=(0,oe.Z)(_),(0,d.Z)(Le,(0,ve.Z)()?Reflect.construct(_,H||[],(0,oe.Z)(Le).constructor):_.apply(Le,H))}var _t=function(Le){function _(H){var E;return(0,ge.Z)(this,_),E=Ge(this,_,[H]),(0,b.Z)(E,"innerSliderRefHandler",function(Ie){return E.innerSlider=Ie}),(0,b.Z)(E,"slickPrev",function(){return E.innerSlider.slickPrev()}),(0,b.Z)(E,"slickNext",function(){return E.innerSlider.slickNext()}),(0,b.Z)(E,"slickGoTo",function(Ie){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return E.innerSlider.slickGoTo(Ie,Ee)}),(0,b.Z)(E,"slickPause",function(){return E.innerSlider.pause("paused")}),(0,b.Z)(E,"slickPlay",function(){return E.innerSlider.autoPlay("play")}),E.state={breakpoint:null},E._responsiveMediaHandlers=[],E}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"media",value:function(E,Ie){var Ee=window.matchMedia(E),we=function(ut){var kt=ut.matches;kt&&Ie()};Ee.addListener(we),we(Ee),this._responsiveMediaHandlers.push({mql:Ee,query:E,listener:we})}},{key:"componentDidMount",value:function(){var E=this;if(this.props.responsive){var Ie=this.props.responsive.map(function(we){return we.breakpoint});Ie.sort(function(we,Ze){return we-Ze}),Ie.forEach(function(we,Ze){var ut;Ze===0?ut=Qe()({minWidth:0,maxWidth:we}):ut=Qe()({minWidth:Ie[Ze-1]+1,maxWidth:we}),be()&&E.media(ut,function(){E.setState({breakpoint:we})})});var Ee=Qe()({minWidth:Ie.slice(-1)[0]});be()&&this.media(Ee,function(){E.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(E){E.mql.removeListener(E.listener)})}},{key:"render",value:function(){var E=this,Ie,Ee;this.state.breakpoint?(Ee=this.props.responsive.filter(function(Je){return Je.breakpoint===E.state.breakpoint}),Ie=Ee[0].settings==="unslick"?"unslick":(0,se.Z)((0,se.Z)((0,se.Z)({},M),this.props),Ee[0].settings)):Ie=(0,se.Z)((0,se.Z)({},M),this.props),Ie.centerMode&&(Ie.slidesToScroll>1,Ie.slidesToScroll=1),Ie.fade&&(Ie.slidesToShow>1,Ie.slidesToScroll>1,Ie.slidesToShow=1,Ie.slidesToScroll=1);var we=p.Children.toArray(this.props.children);we=we.filter(function(Je){return typeof Je=="string"?!!Je.trim():!!Je}),Ie.variableWidth&&(Ie.rows>1||Ie.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),Ie.variableWidth=!1);for(var Ze=[],ut=null,kt=0;kt<we.length;kt+=Ie.rows*Ie.slidesPerRow){for(var ye=[],le=kt;le<kt+Ie.rows*Ie.slidesPerRow;le+=Ie.slidesPerRow){for(var ht=[],st=le;st<le+Ie.slidesPerRow&&(Ie.variableWidth&&we[st].props.style&&(ut=we[st].props.style.width),!(st>=we.length));st+=1)ht.push(p.cloneElement(we[st],{key:100*kt+10*le+st,tabIndex:-1,style:{width:"".concat(100/Ie.slidesPerRow,"%"),display:"inline-block"}}));ye.push(p.createElement("div",{key:10*kt+le},ht))}Ie.variableWidth?Ze.push(p.createElement("div",{key:kt,style:{width:ut}},ye)):Ze.push(p.createElement("div",{key:kt},ye))}if(Ie==="unslick"){var dt="regular slider "+(this.props.className||"");return p.createElement("div",{className:dt},we)}else Ze.length<=Ie.slidesToShow&&!Ie.infinite&&(Ie.unslick=!0);return p.createElement(Re,(0,he.Z)({style:this.props.style,ref:this.innerSliderRefHandler},Ce(Ie)),Ze)}}])}(p.Component),Dt=_t,rt=w(48755),Kt=w(93083),fn=w(63356),Tt=w(16931);const Qt="--dot-duration",Be=Le=>{const{componentCls:_,antCls:H}=Le;return{[_]:Object.assign(Object.assign({},(0,fn.Wf)(Le)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${H}-radio-input, input${H}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${H}-radio-input, input${H}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},ke=Le=>{const{componentCls:_,motionDurationSlow:H,arrowSize:E,arrowOffset:Ie}=Le,Ee=Le.calc(E).div(Math.SQRT2).equal();return{[_]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:E,height:E,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${H}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:Le.calc(E).sub(Ee).div(2).equal(),insetInlineStart:Le.calc(E).sub(Ee).div(2).equal(),display:"inline-block",width:Ee,height:Ee,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:Ie,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:Ie,"&::after":{transform:"rotate(135deg)"}}}}},Ne=Le=>{const{componentCls:_,dotOffset:H,dotWidth:E,dotHeight:Ie,dotGap:Ee,colorBgContainer:we,motionDurationSlow:Ze}=Le;return{[_]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:H},"&-top":{top:H,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:E,height:Ie,marginInline:Ee,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${Ze}`,borderRadius:Ie,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:Ie,content:'""',background:we,borderRadius:Ie,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:Ie,padding:0,color:"transparent",fontSize:0,background:we,border:0,borderRadius:Ie,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${Ze}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:Le.calc(Ee).mul(-1).equal(),content:'""'}},"&.slick-active":{width:Le.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${Qt}) ease-out`}}}}}}},k=Le=>{const{componentCls:_,dotOffset:H,arrowOffset:E,marginXXS:Ie}=Le,Ee={width:Le.dotHeight,height:Le.dotWidth};return{[`${_}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:E,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:E,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:Le.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:H},"&-right":{insetInlineEnd:H,insetInlineStart:"auto"},li:Object.assign(Object.assign({},Ee),{margin:`${(0,Kt.unit)(Ie)} 0`,verticalAlign:"baseline",button:Ee,"&::after":Object.assign(Object.assign({},Ee),{height:0}),"&.slick-active":Object.assign(Object.assign({},Ee),{button:Ee,"&::after":Object.assign(Object.assign({},Ee),{transition:`height var(${Qt}) ease-out`})})})}}}},ae=Le=>{const{componentCls:_}=Le;return[{[`${_}-rtl`]:{direction:"rtl",".slick-dots":{[`${_}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${_}-vertical`]:{".slick-dots":{[`${_}-rtl&`]:{flexDirection:"column"}}}}]},fe=Le=>({arrowSize:16,arrowOffset:Le.marginXS,dotWidth:16,dotHeight:3,dotGap:Le.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var re=(0,Tt.I$)("Carousel",Le=>[Be(Le),ke(Le),Ne(Le),k(Le),ae(Le)],fe,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),Se=function(Le,_){var H={};for(var E in Le)Object.prototype.hasOwnProperty.call(Le,E)&&_.indexOf(E)<0&&(H[E]=Le[E]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,E=Object.getOwnPropertySymbols(Le);Ie<E.length;Ie++)_.indexOf(E[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Le,E[Ie])&&(H[E[Ie]]=Le[E[Ie]]);return H};const Mt="slick-dots",Rt=Le=>{var{currentSlide:_,slideCount:H}=Le,E=Se(Le,["currentSlide","slideCount"]);return p.createElement("button",Object.assign({type:"button"},E))};var hn=p.forwardRef((Le,_)=>{const{dots:H=!0,arrows:E=!1,prevArrow:Ie=p.createElement(Rt,{"aria-label":"prev"}),nextArrow:Ee=p.createElement(Rt,{"aria-label":"next"}),draggable:we=!1,waitForAnimate:Ze=!1,dotPosition:ut="bottom",vertical:kt=ut==="left"||ut==="right",rootClassName:ye,className:le,style:ht,id:st,autoplay:dt=!1,autoplaySpeed:Je=3e3}=Le,gt=Se(Le,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:Lt,direction:Ot,className:lt,style:tt}=(0,rt.dj)("carousel"),Ct=p.useRef(null),Jt=function(sn){let vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ct.current.slickGoTo(sn,vn)};p.useImperativeHandle(_,()=>({goTo:Jt,autoPlay:Ct.current.innerSlider.autoPlay,innerSlider:Ct.current.innerSlider,prev:Ct.current.slickPrev,next:Ct.current.slickNext}),[Ct.current]);const un=p.useRef(p.Children.count(Le.children));p.useEffect(()=>{un.current!==p.Children.count(Le.children)&&(Jt(Le.initialSlide||0,!1),un.current=p.Children.count(Le.children))},[Le.children]);const xn=Object.assign({vertical:kt,className:Y()(le,lt),style:Object.assign(Object.assign({},tt),ht),autoplay:!!dt},gt);xn.effect==="fade"&&(xn.fade=!0);const nn=Lt("carousel",xn.prefixCls),tn=!!H,Fe=Y()(Mt,`${Mt}-${ut}`,typeof H=="boolean"?!1:H==null?void 0:H.className),[it,St,mt]=re(nn),Zt=Y()(nn,{[`${nn}-rtl`]:Ot==="rtl",[`${nn}-vertical`]:xn.vertical},St,mt,ye),en=dt&&(typeof dt=="object"?dt.dotDuration:!1)?{[Qt]:`${Je}ms`}:{};return it(p.createElement("div",{className:Zt,id:st,style:en},p.createElement(Dt,Object.assign({ref:Ct},xn,{dots:tn,dotsClass:Fe,arrows:E,prevArrow:Ie,nextArrow:Ee,draggable:we,verticalSwiping:kt,autoplaySpeed:Je,waitForAnimate:Ze}))))})},64018:function(){var In,Wt,w,p=!1,he,se;window.PR_SHOULD_USE_CONTINUATION=!0;var ge,O;(function(){var d=window,ve=["break,continue,do,else,for,if,return,while"],oe=[ve,"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=[oe,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],b=[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"],T=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[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"],y="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",x=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],L="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",U=[ve,"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"],Y=[ve,"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"],ne=[ve,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],M=[b,m,T,x,L,U,Y,ne],F=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,D="str",S="kwd",te="com",X="typ",j="lit",q="pun",ue="pln",pe="tag",We="dec",G="src",N="atn",W="atv",$="nocode",ie="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function Q(be){for(var B=0,Ce=!1,He=!1,Z=0,P=be.length;Z<P;++Z){var K=be[Z];if(K.ignoreCase)He=!0;else if(/[a-z]/i.test(K.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Ce=!0,He=!1;break}}var me={b:8,t:9,n:10,v:11,f:12,r:13};function I(Ke){var ze=Ke.charCodeAt(0);if(ze!==92)return ze;var Xe=Ke.charAt(1);return ze=me[Xe],ze||("0"<=Xe&&Xe<="7"?parseInt(Ke.substring(1),8):Xe==="u"||Xe==="x"?parseInt(Ke.substring(2),16):Ke.charCodeAt(1))}function de(Ke){if(Ke<32)return(Ke<16?"\\x0":"\\x")+Ke.toString(16);var ze=String.fromCharCode(Ke);return ze==="\\"||ze==="-"||ze==="]"||ze==="^"?"\\"+ze:ze}function ee(Ke){var ze=Ke.substring(1,Ke.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Xe=[],ot=ze[0]==="^",_e=["["];ot&&_e.push("^");for(var Re=ot?1:0,at=ze.length;Re<at;++Re){var Qe=ze[Re];if(/\\[bdsw]/i.test(Qe))_e.push(Qe);else{var Ge=I(Qe),_t;Re+2<at&&ze[Re+1]==="-"?(_t=I(ze[Re+2]),Re+=2):_t=Ge,Xe.push([Ge,_t]),_t<65||Ge>122||(_t<65||Ge>90||Xe.push([Math.max(65,Ge)|32,Math.min(_t,90)|32]),_t<97||Ge>122||Xe.push([Math.max(97,Ge)&-33,Math.min(_t,122)&-33]))}}Xe.sort(function(fn,Tt){return fn[0]-Tt[0]||Tt[1]-fn[1]});for(var Dt=[],rt=[],Re=0;Re<Xe.length;++Re){var Kt=Xe[Re];Kt[0]<=rt[1]+1?rt[1]=Math.max(rt[1],Kt[1]):Dt.push(rt=Kt)}for(var Re=0;Re<Dt.length;++Re){var Kt=Dt[Re];_e.push(de(Kt[0])),Kt[1]>Kt[0]&&(Kt[1]+1>Kt[0]&&_e.push("-"),_e.push(de(Kt[1])))}return _e.push("]"),_e.join("")}function De(Ke){for(var ze=Ke.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Xe=ze.length,ot=[],_e=0,Re=0;_e<Xe;++_e){var at=ze[_e];if(at==="(")++Re;else if(at.charAt(0)==="\\"){var Qe=+at.substring(1);Qe&&(Qe<=Re?ot[Qe]=-1:ze[_e]=de(Qe))}}for(var _e=1;_e<ot.length;++_e)ot[_e]===-1&&(ot[_e]=++B);for(var _e=0,Re=0;_e<Xe;++_e){var at=ze[_e];if(at==="(")++Re,ot[Re]||(ze[_e]="(?:");else if(at.charAt(0)==="\\"){var Qe=+at.substring(1);Qe&&Qe<=Re&&(ze[_e]="\\"+ot[Qe])}}for(var _e=0;_e<Xe;++_e)ze[_e]==="^"&&ze[_e+1]!=="^"&&(ze[_e]="");if(Ke.ignoreCase&&Ce)for(var _e=0;_e<Xe;++_e){var at=ze[_e],Ge=at.charAt(0);at.length>=2&&Ge==="["?ze[_e]=ee(at):Ge!=="\\"&&(ze[_e]=at.replace(/[a-zA-Z]/g,function(rt){var Kt=rt.charCodeAt(0);return"["+String.fromCharCode(Kt&-33,Kt|32)+"]"}))}return ze.join("")}for(var Te=[],Z=0,P=be.length;Z<P;++Z){var K=be[Z];if(K.global||K.multiline)throw new Error(""+K);Te.push("(?:"+De(K)+")")}return new RegExp(Te.join("|"),He?"gi":"g")}function g(be,B){var Ce=/(?:^|\s)nocode(?:\s|$)/,He=[],Z=0,P=[],K=0;function me(I){var de=I.nodeType;if(de==1){if(Ce.test(I.className))return;for(var ee=I.firstChild;ee;ee=ee.nextSibling)me(ee);var De=I.nodeName.toLowerCase();(De==="br"||De==="li")&&(He[K]=`
|
|
`,P[K<<1]=Z++,P[K++<<1|1]=I)}else if(de==3||de==4){var Te=I.nodeValue;Te.length&&(B?Te=Te.replace(/\r\n?/g,`
|
|
`):Te=Te.replace(/[ \t\r\n]+/g," "),He[K]=Te,P[K<<1]=Z,Z+=Te.length,P[K++<<1|1]=I)}}return me(be),{sourceCode:He.join("").replace(/\n$/,""),spans:P}}function v(be,B,Ce,He,Z){if(Ce){var P={sourceNode:be,pre:1,langExtension:null,numberLines:null,sourceCode:Ce,spans:null,basePos:B,decorations:null};He(P),Z.push.apply(Z,P.decorations)}}var z=/\S/;function ce(be){for(var B=void 0,Ce=be.firstChild;Ce;Ce=Ce.nextSibling){var He=Ce.nodeType;B=He===1?B?be:Ce:He===3&&z.test(Ce.nodeValue)?be:B}return B===be?void 0:B}function je(be,B){var Ce={},He;(function(){for(var K=be.concat(B),me=[],I={},de=0,ee=K.length;de<ee;++de){var De=K[de],Te=De[3];if(Te)for(var Ke=Te.length;--Ke>=0;)Ce[Te.charAt(Ke)]=De;var ze=De[1],Xe=""+ze;I.hasOwnProperty(Xe)||(me.push(ze),I[Xe]=null)}me.push(/[\0-\uffff]/),He=Q(me)})();var Z=B.length,P=function(K){for(var me=K.sourceCode,I=K.basePos,de=K.sourceNode,ee=[I,ue],De=0,Te=me.match(He)||[],Ke={},ze=0,Xe=Te.length;ze<Xe;++ze){var ot=Te[ze],_e=Ke[ot],Re=void 0,at;if(typeof _e=="string")at=!1;else{var Qe=Ce[ot.charAt(0)];if(Qe)Re=ot.match(Qe[1]),_e=Qe[0];else{for(var Ge=0;Ge<Z;++Ge)if(Qe=B[Ge],Re=ot.match(Qe[1]),Re){_e=Qe[0];break}Re||(_e=ue)}at=_e.length>=5&&_e.substring(0,5)==="lang-",at&&!(Re&&typeof Re[1]=="string")&&(at=!1,_e=G),at||(Ke[ot]=_e)}var _t=De;if(De+=ot.length,!at)ee.push(I+_t,_e);else{var Dt=Re[1],rt=ot.indexOf(Dt),Kt=rt+Dt.length;Re[2]&&(Kt=ot.length-Re[2].length,rt=Kt-Dt.length);var fn=_e.substring(5);v(de,I+_t,ot.substring(0,rt),P,ee),v(de,I+_t+rt,Dt,jt(fn,Dt),ee),v(de,I+_t+Kt,ot.substring(Kt),P,ee)}}K.decorations=ee};return P}function Ye(be){var B=[],Ce=[];be.tripleQuotedStrings?B.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):be.multiLineStrings?B.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):B.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),be.verbatimStrings&&Ce.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var He=be.hashComments;He&&(be.cStyleComments?(He>1?B.push([te,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):B.push([te,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ce.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):B.push([te,/^#[^\r\n]*/,null,"#"])),be.cStyleComments&&(Ce.push([te,/^\/\/[^\r\n]*/,null]),Ce.push([te,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Z=be.regexLiterals;if(Z){var P=Z>1?"":`
|
|
\r`,K=P?".":"[\\S\\s]",me="/(?=[^/*"+P+"])(?:[^/\\x5B\\x5C"+P+"]|\\x5C"+K+"|\\x5B(?:[^\\x5C\\x5D"+P+"]|\\x5C"+K+")*(?:\\x5D|$))+/";Ce.push(["lang-regex",RegExp("^"+ie+"("+me+")")])}var I=be.types;I&&Ce.push([X,I]);var de=(""+be.keywords).replace(/^ | $/g,"");de.length&&Ce.push([S,new RegExp("^(?:"+de.replace(/[\s,]+/g,"|")+")\\b"),null]),B.push([ue,/^\s+/,null,` \r
|
|
\xA0`]);var ee="^.[^\\s\\w.$@'\"`/\\\\]*";return be.regexLiterals&&(ee+="(?!s*/)"),Ce.push([j,/^@[a-z_$][a-z_$@0-9]*/i,null],[X,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ue,/^[a-z_$][a-z_$@0-9]*/i,null],[j,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ue,/^\\[\s\S]?/,null],[q,new RegExp(ee),null]),je(B,Ce)}var It=Ye({keywords:M,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function bt(be,B,Ce){for(var He=/(?:^|\s)nocode(?:\s|$)/,Z=/\r\n?|\n/,P=be.ownerDocument,K=P.createElement("li");be.firstChild;)K.appendChild(be.firstChild);var me=[K];function I(ze){var Xe=ze.nodeType;if(Xe==1&&!He.test(ze.className))if(ze.nodeName==="br")de(ze),ze.parentNode&&ze.parentNode.removeChild(ze);else for(var ot=ze.firstChild;ot;ot=ot.nextSibling)I(ot);else if((Xe==3||Xe==4)&&Ce){var _e=ze.nodeValue,Re=_e.match(Z);if(Re){var at=_e.substring(0,Re.index);ze.nodeValue=at;var Qe=_e.substring(Re.index+Re[0].length);if(Qe){var Ge=ze.parentNode;Ge.insertBefore(P.createTextNode(Qe),ze.nextSibling)}de(ze),at||ze.parentNode.removeChild(ze)}}}function de(ze){for(;!ze.nextSibling;)if(ze=ze.parentNode,!ze)return;function Xe(Re,at){var Qe=at?Re.cloneNode(!1):Re,Ge=Re.parentNode;if(Ge){var _t=Xe(Ge,1),Dt=Re.nextSibling;_t.appendChild(Qe);for(var rt=Dt;rt;rt=Dt)Dt=rt.nextSibling,_t.appendChild(rt)}return Qe}for(var ot=Xe(ze.nextSibling,0),_e;(_e=ot.parentNode)&&_e.nodeType===1;)ot=_e;me.push(ot)}for(var ee=0;ee<me.length;++ee)I(me[ee]);B===(B|0)&&me[0].setAttribute("value",B);var De=P.createElement("ol");De.className="linenums";for(var Te=Math.max(0,B-1|0)||0,ee=0,Ke=me.length;ee<Ke;++ee)K=me[ee],K.className="L"+(ee+Te)%10,K.firstChild||K.appendChild(P.createTextNode("\xA0")),De.appendChild(K);be.appendChild(De)}function $t(be){var B=/\bMSIE\s(\d+)/.exec(navigator.userAgent);B=B&&+B[1]<=8;var Ce=/\n/g,He=be.sourceCode,Z=He.length,P=0,K=be.spans,me=K.length,I=0,de=be.decorations,ee=de.length,De=0;de[ee]=Z;var Te,Ke;for(Ke=Te=0;Ke<ee;)de[Ke]!==de[Ke+2]?(de[Te++]=de[Ke++],de[Te++]=de[Ke++]):Ke+=2;for(ee=Te,Ke=Te=0;Ke<ee;){for(var ze=de[Ke],Xe=de[Ke+1],ot=Ke+2;ot+2<=ee&&de[ot+1]===Xe;)ot+=2;de[Te++]=ze,de[Te++]=Xe,Ke=ot}ee=de.length=Te;var _e=be.sourceNode,Re="";_e&&(Re=_e.style.display,_e.style.display="none");try{for(var at=null;I<me;){var Qe=K[I],Ge=K[I+2]||Z,_t=de[De+2]||Z,ot=Math.min(Ge,_t),Dt=K[I+1],rt;if(Dt.nodeType!==1&&(rt=He.substring(P,ot))){B&&(rt=rt.replace(Ce,"\r")),Dt.nodeValue=rt;var Kt=Dt.ownerDocument,fn=Kt.createElement("span");fn.className=de[De+1];var Tt=Dt.parentNode;Tt.replaceChild(fn,Dt),fn.appendChild(Dt),P<Ge&&(K[I+1]=Dt=Kt.createTextNode(He.substring(ot,Ge)),Tt.insertBefore(Dt,fn.nextSibling))}P=ot,P>=Ge&&(I+=2),P>=_t&&(De+=2)}}finally{_e&&(_e.style.display=Re)}}var Bt={};function Oe(be,B){for(var Ce=B.length;--Ce>=0;){var He=B[Ce];Bt.hasOwnProperty(He)?d.console&&console.warn("cannot override language handler %s",He):Bt[He]=be}}function jt(be,B){return be&&Bt.hasOwnProperty(be)||(be=/^\s*</.test(B)?"default-markup":"default-code"),Bt[be]}Oe(It,["default-code"]),Oe(je([],[[ue,/^[^<?]+/],[We,/^<!\w[^>]*(?:>|$)/],[te,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[q,/^(?:<[%?]|[%?]>)/],["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"]),Oe(je([[ue,/^[\s]+/,null,` \r
|
|
`],[W,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[pe,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[N,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[q,/^[=<>\/]+/],["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"]),Oe(je([],[[W,/^[\s\S]+/]]),["uq.val"]),Oe(Ye({keywords:b,hashComments:!0,cStyleComments:!0,types:F}),["c","cc","cpp","cxx","cyc","m"]),Oe(Ye({keywords:"null,true,false"}),["json"]),Oe(Ye({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:F}),["cs"]),Oe(Ye({keywords:T,cStyleComments:!0}),["java"]),Oe(Ye({keywords:ne,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Oe(Ye({keywords:U,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Oe(Ye({keywords:L,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Oe(Ye({keywords:Y,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Oe(Ye({keywords:x,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Oe(Ye({keywords:y,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Oe(je([],[[D,/^[\s\S]+/]]),["regex"]);function En(be){var B=be.langExtension;try{var Ce=g(be.sourceNode,be.pre),He=Ce.sourceCode;be.sourceCode=He,be.spans=Ce.spans,be.basePos=0,jt(B,He)(be),$t(be)}catch(Z){d.console&&console.log(Z&&Z.stack||Z)}}function Yt(be,B,Ce){var He=Ce||!1,Z=B||null,P=document.createElement("div");P.innerHTML="<pre>"+be+"</pre>",P=P.firstChild,He&&bt(P,He,!0);var K={langExtension:Z,numberLines:He,sourceNode:P,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return En(K),P.innerHTML}function cn(be,B){var Ce=B||document.body,He=Ce.ownerDocument||document;function Z(Qe){return Ce.getElementsByTagName(Qe)}for(var P=[Z("pre"),Z("code"),Z("xmp")],K=[],me=0;me<P.length;++me)for(var I=0,de=P[me].length;I<de;++I)K.push(P[me][I]);P=null;var ee=Date;ee.now||(ee={now:function(){return+new Date}});var De=0,Te=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ke=/\bprettyprint\b/,ze=/\bprettyprinted\b/,Xe=/pre|xmp/i,ot=/^code$/i,_e=/^(?:pre|code|xmp)$/i,Re={};function at(){for(var Qe=d.PR_SHOULD_USE_CONTINUATION?ee.now()+250:1/0;De<K.length&&ee.now()<Qe;De++){for(var Ge=K[De],_t=Re,Dt=Ge;Dt=Dt.previousSibling;){var rt=Dt.nodeType,Kt=(rt===7||rt===8)&&Dt.nodeValue;if(Kt?!/^\??prettify\b/.test(Kt):rt!==3||/\S/.test(Dt.nodeValue))break;if(Kt){_t={},Kt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Rt,Ut,hn){_t[Ut]=hn});break}}var fn=Ge.className;if((_t!==Re||Ke.test(fn))&&!ze.test(fn)){for(var Tt=!1,Qt=Ge.parentNode;Qt;Qt=Qt.parentNode){var Be=Qt.tagName;if(_e.test(Be)&&Qt.className&&Ke.test(Qt.className)){Tt=!0;break}}if(!Tt){Ge.className+=" prettyprinted";var ke=_t.lang;if(!ke){ke=fn.match(Te);var Ne;!ke&&(Ne=ce(Ge))&&ot.test(Ne.tagName)&&(ke=Ne.className.match(Te)),ke&&(ke=ke[1])}var k;if(Xe.test(Ge.tagName))k=1;else{var ae=Ge.currentStyle,fe=He.defaultView,re=ae?ae.whiteSpace:fe&&fe.getComputedStyle?fe.getComputedStyle(Ge,null).getPropertyValue("white-space"):0;k=re&&re.substring(0,3)==="pre"}var Se=_t.linenums;(Se=Se==="true"||+Se)||(Se=fn.match(/\blinenums\b(?::(\d+))?/),Se=Se?Se[1]&&Se[1].length?+Se[1]:!0:!1),Se&&bt(Ge,Se,k);var Mt={langExtension:ke,sourceNode:Ge,numberLines:Se,pre:k,sourceCode:null,basePos:null,spans:null,decorations:null};En(Mt)}}}De<K.length?d.setTimeout(at,250):typeof be=="function"&&be()}at()}var pt=d.PR={createSimpleLexer:je,registerLangHandler:Oe,sourceDecorator:Ye,PR_ATTRIB_NAME:N,PR_ATTRIB_VALUE:W,PR_COMMENT:te,PR_DECLARATION:We,PR_KEYWORD:S,PR_LITERAL:j,PR_NOCODE:$,PR_PLAIN:ue,PR_PUNCTUATION:q,PR_SOURCE:G,PR_STRING:D,PR_TAG:pe,PR_TYPE:X,prettyPrintOne:p?d.prettyPrintOne=Yt:ge=Yt,prettyPrint:O=p?d.prettyPrint=cn:O=cn},Pe=d.define;typeof Pe=="function"&&Pe.amd&&Pe("google-code-prettify",[],function(){return pt})})()},25769:function(In,Wt,w){"use strict";var p=w(98040),he={"text/plain":"Text","text/html":"Url",default:"Text"},se="Copy to clipboard: #{key}, Enter";function ge(d){var ve=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return d.replace(/#{\s*key\s*}/g,ve)}function O(d,ve){var oe,o,b,T,m,y,x=!1;ve||(ve={}),oe=ve.debug||!1;try{b=p(),T=document.createRange(),m=document.getSelection(),y=document.createElement("span"),y.textContent=d,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(U){if(U.stopPropagation(),ve.format)if(U.preventDefault(),typeof U.clipboardData=="undefined"){oe&&console.warn("unable to use e.clipboardData"),oe&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Y=he[ve.format]||he.default;window.clipboardData.setData(Y,d)}else U.clipboardData.clearData(),U.clipboardData.setData(ve.format,d);ve.onCopy&&(U.preventDefault(),ve.onCopy(U.clipboardData))}),document.body.appendChild(y),T.selectNodeContents(y),m.addRange(T);var L=document.execCommand("copy");if(!L)throw new Error("copy command was unsuccessful");x=!0}catch(U){oe&&console.error("unable to copy using execCommand: ",U),oe&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ve.format||"text",d),ve.onCopy&&ve.onCopy(window.clipboardData),x=!0}catch(Y){oe&&console.error("unable to copy using clipboardData: ",Y),oe&&console.error("falling back to prompt"),o=ge("message"in ve?ve.message:se),window.prompt(o,d)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(T):m.removeAllRanges()),y&&document.body.removeChild(y),b()}return x}In.exports=O},53184:function(In,Wt,w){"use strict";var p,he;function se(ge,O,d){var ve=function(oe,o){return ge.js_beautify(oe,o)};return ve.js=ge.js_beautify,ve.css=O.css_beautify,ve.html=d.html_beautify,ve.js_beautify=ge.js_beautify,ve.css_beautify=O.css_beautify,ve.html_beautify=d.html_beautify,ve}p=[w(58553),w(87804),w(40998)],he=function(ge,O,d){return se(ge,O,d)}.apply(Wt,p),he!==void 0&&(In.exports=he)},87804:function(In,Wt){var w,p;(function(){var he;(function(){"use strict";var ge=[,,function(oe){function o(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var m=new o(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},o.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},o.prototype.has_match=function(m){for(var y=this.__items.length-1;y>=0;y--)if(this.__items[y].match(m))return!0;return!1},o.prototype.set_indent=function(m,y){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=y||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 m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},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(m){this.__items.push(m);var y=m.lastIndexOf(`
|
|
`);y!==-1?this.__character_count=m.length-y:this.__character_count+=m.length},o.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},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 m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function b(m,y){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),y=y||"",m.indent_level>0&&(y=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=y,this.__base_string_length=y.length}b.prototype.get_indent_size=function(m,y){var x=this.__base_string_length;return y=y||0,m<0&&(x=0),x+=m*this.__indent_size,x+=y,x},b.prototype.get_indent_string=function(m,y){var x=this.__base_string;return y=y||0,m<0&&(m=0,x=""),y+=m*this.__indent_size,this.__ensure_cache(y),x+=this.__cache[y],x},b.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},b.prototype.__add_column=function(){var m=this.__cache.length,y=0,x="";this.__indent_size&&m>=this.__indent_size&&(y=Math.floor(m/this.__indent_size),m-=y*this.__indent_size,x=new Array(y+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function T(m,y){this.__indent_cache=new b(m,y),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(m,y){return this.__indent_cache.get_indent_string(m,y)},T.prototype.get_indent_size=function(m,y){return this.__indent_cache.get_indent_size(m,y)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(m){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 x=this.__lines.join(`
|
|
`);return m!==`
|
|
`&&(x=x.replace(/[\n]/g,m)),x},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(m,y){return m=m||0,y=y||0,this.next_line.set_indent(m,y),this.__lines.length>1?(this.current_line.set_indent(m,y),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(m){for(var y=0;y<m.newlines;y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.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(" "))},T.prototype.remove_indent=function(m){for(var y=this.__lines.length;m<y;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},T.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(m,y){for(var x=this.__lines.length-2;x>=0;){var L=this.__lines[x];if(L.is_empty())break;if(L.item(0).indexOf(m)!==0&&L.item(-1)!==y){this.__lines.splice(x+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},oe.exports.Output=T},,,,function(oe){function o(m,y){this.raw_options=b(m,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"])}o.prototype._get_array=function(m,y){var x=this.raw_options[m],L=y||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(L=x.concat()):typeof x=="string"&&(L=x.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(m,y){var x=this.raw_options[m],L=x===void 0?!!y:!!x;return L},o.prototype._get_characters=function(m,y){var x=this.raw_options[m],L=y||"";return typeof x=="string"&&(L=x.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),L},o.prototype._get_number=function(m,y){var x=this.raw_options[m];y=parseInt(y,10),isNaN(y)&&(y=0);var L=parseInt(x,10);return isNaN(L)&&(L=y),L},o.prototype._get_selection=function(m,y,x){var L=this._get_selection_list(m,y,x);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L[0]},o.prototype._get_selection_list=function(m,y,x){if(!y||y.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[y[0]],!this._is_valid_selection(x,y))throw new Error("Invalid Default Value!");var L=this._get_array(m,x);if(!this._is_valid_selection(L,y))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L},o.prototype._is_valid_selection=function(m,y){return m.length&&y.length&&!m.some(function(x){return y.indexOf(x)===-1})};function b(m,y){var x={};m=T(m);var L;for(L in m)L!==y&&(x[L]=m[L]);if(y&&m[y])for(L in m[y])x[L]=m[y][L];return x}function T(m){var y={},x;for(x in m){var L=x.replace(/-/g,"_");y[L]=m[x]}return y}oe.exports.Options=o,oe.exports.normalizeOpts=T,oe.exports.mergeOpts=b},,function(oe){var o=RegExp.prototype.hasOwnProperty("sticky");function b(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}b.prototype.restart=function(){this.__position=0},b.prototype.back=function(){this.__position>0&&(this.__position-=1)},b.prototype.hasNext=function(){return this.__position<this.__input_length},b.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},b.prototype.peek=function(T){var m=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(m=this.__input.charAt(T)),m},b.prototype.__match=function(T,m){T.lastIndex=m;var y=T.exec(this.__input);return y&&!(o&&T.sticky)&&y.index!==m&&(y=null),y},b.prototype.test=function(T,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(T,m):!1},b.prototype.testChar=function(T,m){var y=this.peek(m);return T.lastIndex=0,y!==null&&T.test(y)},b.prototype.match=function(T){var m=this.__match(T,this.__position);return m?this.__position+=m[0].length:m=null,m},b.prototype.read=function(T,m,y){var x="",L;return T&&(L=this.match(T),L&&(x+=L[0])),m&&(L||!T)&&(x+=this.readUntil(m,y)),x},b.prototype.readUntil=function(T,m){var y="",x=this.__position;T.lastIndex=this.__position;var L=T.exec(this.__input);return L?(x=L.index,m&&(x+=L[0].length)):x=this.__input_length,y=this.__input.substring(this.__position,x),this.__position=x,y},b.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},b.prototype.get_regexp=function(T,m){var y=null,x="g";return m&&o&&(x="y"),typeof T=="string"&&T!==""?y=new RegExp(T,x):T&&(y=new RegExp(T.source,x)),y},b.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},b.prototype.peekUntilAfter=function(T){var m=this.__position,y=this.readUntilAfter(T);return this.__position=m,y},b.prototype.lookBack=function(T){var m=this.__position-1;return m>=T.length&&this.__input.substring(m-T.length,m).toLowerCase()===T},oe.exports.InputScanner=b},,,,,function(oe){function o(b,T){b=typeof b=="string"?b:b.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(b+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(b+/\sbeautify\signore:end\s/.source+T,"g")}o.prototype.get_directives=function(b){if(!b.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(b);m;)T[m[1]]=m[2],m=this.__directive_pattern.exec(b);return T},o.prototype.readIgnored=function(b){return b.readUntilAfter(this.__directives_end_ignore_pattern)},oe.exports.Directives=o},,function(oe,o,b){var T=b(16).Beautifier,m=b(17).Options;function y(x,L){var U=new T(x,L);return U.beautify()}oe.exports=y,oe.exports.defaultOptions=function(){return new m}},function(oe,o,b){var T=b(17).Options,m=b(2).Output,y=b(8).InputScanner,x=b(13).Directives,L=new x(/\/\*/,/\*\//),U=/\r\n|[\r\n]/,Y=/\r\n|[\r\n]/g,ne=/\s/,M=/(?:\s|\n)+/g,F=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,D=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function S(te,X){this._source_text=te||"",this._options=new T(X),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"]}S.prototype.eatString=function(te){var X="";for(this._ch=this._input.next();this._ch;){if(X+=this._ch,this._ch==="\\")X+=this._input.next();else if(te.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return X},S.prototype.eatWhitespace=function(te){for(var X=ne.test(this._input.peek()),j=0;ne.test(this._input.peek());)this._ch=this._input.next(),te&&this._ch===`
|
|
`&&(j===0||j<this._options.max_preserve_newlines)&&(j++,this._output.add_new_line(!0));return X},S.prototype.foundNestedPseudoClass=function(){for(var te=0,X=1,j=this._input.peek(X);j;){if(j==="{")return!0;if(j==="(")te+=1;else if(j===")"){if(te===0)return!1;te-=1}else if(j===";"||j==="}")return!1;X++,j=this._input.peek(X)}return!1},S.prototype.print_string=function(te){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(te)},S.prototype.preserveSingleSpace=function(te){te&&(this._output.space_before_token=!0)},S.prototype.indent=function(){this._indentLevel++},S.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var te=this._source_text,X=this._options.eol;X==="auto"&&(X=`
|
|
`,te&&U.test(te||"")&&(X=te.match(U)[0])),te=te.replace(Y,`
|
|
`);var j=te.match(/^[\t ]*/)[0];this._output=new m(this._options,j),this._input=new y(te),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var q=0,ue=!1,pe=!1,We=!1,G=!1,N=!1,W=this._ch,$=!1,ie,Q,g;ie=this._input.read(M),Q=ie!=="",g=W,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),W=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var v=this._input.read(F),z=L.get_directives(v);z&&z.ignore==="start"&&(v+=L.readIgnored(this._input)),this.print_string(v),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(D)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(Q),this.print_string(this._ch);var ce=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ce.match(/[ :]$/)&&(ce=this.eatString(": ").replace(/\s+$/,""),this.print_string(ce),this._output.space_before_token=!0),q===0&&ce.indexOf(":")!==-1&&(pe=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(Q),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var je=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);je.match(/[ :]$/)&&(je=this.eatString(": ").replace(/\s+$/,""),this.print_string(je),this._output.space_before_token=!0),q===0&&je.indexOf(":")!==-1?(pe=!0,this.indent()):je in this.NESTED_AT_RULE?(this._nestedLevel+=1,je in this.CONDITIONAL_GROUP_RULE&&(We=!0)):q===0&&!pe&&(G=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(Q),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")pe&&(pe=!1,this.outdent()),G=!1,We?(We=!1,ue=this._indentLevel>=this._nestedLevel):ue=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ue&&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)):(g==="("?this._output.space_before_token=!1:g!==","&&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(),g==="{"&&this._output.trim(!0),pe&&(this.outdent(),pe=!1),this.print_string(this._ch),ue=!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 Ye=0;Ye<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ye++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ye])){$=!0;break}(ue||We)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!G&&q===0?(this.print_string(":"),pe||(pe=!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 It=g==='"'||g==="'";this.preserveSingleSpace(It||Q),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")$=!1,q===0?(pe&&(this.outdent(),pe=!1),G=!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(),q++,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(")")),q&&(q--,this.outdent()));else{var bt=!1;this._input.lookBack("with")&&(bt=!0),this.preserveSingleSpace(Q||bt),this.print_string(this._ch),pe&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),N=!0):(this.eatWhitespace(),q++,this.indent())}else if(this._ch===")")q&&(q--,this.outdent()),N&&this._input.peek()===";"&&this._options.selector_separator_newline&&(N=!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&&(!pe||N)&&q===0&&!G?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!pe&&q===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&&ne.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(Q),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),ne.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 $t=g==='"'||g==="'";this.preserveSingleSpace($t||Q),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&$&&this._output.add_new_line()}var Bt=this._output.get_code(X);return Bt},oe.exports.Beautifier=S},function(oe,o,b){var T=b(6).Options;function m(y){T.call(this,y,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var x=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||x;var L=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var U=0;U<L.length;U++)L[U]!=="expand"?this.brace_style="collapse":this.brace_style=L[U]}m.prototype=new T,oe.exports.Options=m}],O={};function d(oe){var o=O[oe];if(o!==void 0)return o.exports;var b=O[oe]={exports:{}};return ge[oe](b,b.exports,d),b.exports}var ve=d(15);he=ve})();var se=he;w=[],p=function(){return{css_beautify:se}}.apply(Wt,w),p!==void 0&&(In.exports=p)})()},40998:function(In,Wt,w){var p,he;(function(){var se;(function(){"use strict";var ve=[,,function(T){function m(L){this.__parent=L,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=[]}m.prototype.clone_empty=function(){var L=new m(this.__parent);return L.set_indent(this.__indent_count,this.__alignment_count),L},m.prototype.item=function(L){return L<0?this.__items[this.__items.length+L]:this.__items[L]},m.prototype.has_match=function(L){for(var U=this.__items.length-1;U>=0;U--)if(this.__items[U].match(L))return!0;return!1},m.prototype.set_indent=function(L,U){this.is_empty()&&(this.__indent_count=L||0,this.__alignment_count=U||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var L=this.__parent.current_line;return L.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),L.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),L.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,L.__items[0]===" "&&(L.__items.splice(0,1),L.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(L){this.__items.push(L);var U=L.lastIndexOf(`
|
|
`);U!==-1?this.__character_count=L.length-U:this.__character_count+=L.length},m.prototype.pop=function(){var L=null;return this.is_empty()||(L=this.__items.pop(),this.__character_count-=L.length),L},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var L="";return this.is_empty()?this.__parent.indent_empty_lines&&(L=this.__parent.get_indent_string(this.__indent_count)):(L=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),L+=this.__items.join("")),L};function y(L,U){this.__cache=[""],this.__indent_size=L.indent_size,this.__indent_string=L.indent_char,L.indent_with_tabs||(this.__indent_string=new Array(L.indent_size+1).join(L.indent_char)),U=U||"",L.indent_level>0&&(U=new Array(L.indent_level+1).join(this.__indent_string)),this.__base_string=U,this.__base_string_length=U.length}y.prototype.get_indent_size=function(L,U){var Y=this.__base_string_length;return U=U||0,L<0&&(Y=0),Y+=L*this.__indent_size,Y+=U,Y},y.prototype.get_indent_string=function(L,U){var Y=this.__base_string;return U=U||0,L<0&&(L=0,Y=""),U+=L*this.__indent_size,this.__ensure_cache(U),Y+=this.__cache[U],Y},y.prototype.__ensure_cache=function(L){for(;L>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var L=this.__cache.length,U=0,Y="";this.__indent_size&&L>=this.__indent_size&&(U=Math.floor(L/this.__indent_size),L-=U*this.__indent_size,Y=new Array(U+1).join(this.__indent_string)),L&&(Y+=new Array(L+1).join(" ")),this.__cache.push(Y)};function x(L,U){this.__indent_cache=new y(L,U),this.raw=!1,this._end_with_newline=L.end_with_newline,this.indent_size=L.indent_size,this.wrap_line_length=L.wrap_line_length,this.indent_empty_lines=L.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}x.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},x.prototype.get_line_number=function(){return this.__lines.length},x.prototype.get_indent_string=function(L,U){return this.__indent_cache.get_indent_string(L,U)},x.prototype.get_indent_size=function(L,U){return this.__indent_cache.get_indent_size(L,U)},x.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},x.prototype.add_new_line=function(L){return this.is_empty()||!L&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},x.prototype.get_code=function(L){this.trim(!0);var U=this.current_line.pop();U&&(U[U.length-1]===`
|
|
`&&(U=U.replace(/\n+$/g,"")),this.current_line.push(U)),this._end_with_newline&&this.__add_outputline();var Y=this.__lines.join(`
|
|
`);return L!==`
|
|
`&&(Y=Y.replace(/[\n]/g,L)),Y},x.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},x.prototype.set_indent=function(L,U){return L=L||0,U=U||0,this.next_line.set_indent(L,U),this.__lines.length>1?(this.current_line.set_indent(L,U),!0):(this.current_line.set_indent(),!1)},x.prototype.add_raw_token=function(L){for(var U=0;U<L.newlines;U++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(L.whitespace_before),this.current_line.push(L.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},x.prototype.add_token=function(L){this.__add_space_before_token(),this.current_line.push(L),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},x.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(" "))},x.prototype.remove_indent=function(L){for(var U=this.__lines.length;L<U;)this.__lines[L]._remove_indent(),L++;this.current_line._remove_wrap_indent()},x.prototype.trim=function(L){for(L=L===void 0?!1:L,this.current_line.trim();L&&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},x.prototype.just_added_newline=function(){return this.current_line.is_empty()},x.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},x.prototype.ensure_empty_line_above=function(L,U){for(var Y=this.__lines.length-2;Y>=0;){var ne=this.__lines[Y];if(ne.is_empty())break;if(ne.item(0).indexOf(L)!==0&&ne.item(-1)!==U){this.__lines.splice(Y+1,0,new m(this)),this.previous_line=this.__lines[this.__lines.length-2];break}Y--}},T.exports.Output=x},function(T){function m(y,x,L,U){this.type=y,this.text=x,this.comments_before=null,this.newlines=L||0,this.whitespace_before=U||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}T.exports.Token=m},,,function(T){function m(L,U){this.raw_options=y(L,U),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"])}m.prototype._get_array=function(L,U){var Y=this.raw_options[L],ne=U||[];return typeof Y=="object"?Y!==null&&typeof Y.concat=="function"&&(ne=Y.concat()):typeof Y=="string"&&(ne=Y.split(/[^a-zA-Z0-9_\/\-]+/)),ne},m.prototype._get_boolean=function(L,U){var Y=this.raw_options[L],ne=Y===void 0?!!U:!!Y;return ne},m.prototype._get_characters=function(L,U){var Y=this.raw_options[L],ne=U||"";return typeof Y=="string"&&(ne=Y.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),ne},m.prototype._get_number=function(L,U){var Y=this.raw_options[L];U=parseInt(U,10),isNaN(U)&&(U=0);var ne=parseInt(Y,10);return isNaN(ne)&&(ne=U),ne},m.prototype._get_selection=function(L,U,Y){var ne=this._get_selection_list(L,U,Y);if(ne.length!==1)throw new Error("Invalid Option Value: The option '"+L+`' can only be one of the following values:
|
|
`+U+`
|
|
You passed in: '`+this.raw_options[L]+"'");return ne[0]},m.prototype._get_selection_list=function(L,U,Y){if(!U||U.length===0)throw new Error("Selection list cannot be empty.");if(Y=Y||[U[0]],!this._is_valid_selection(Y,U))throw new Error("Invalid Default Value!");var ne=this._get_array(L,Y);if(!this._is_valid_selection(ne,U))throw new Error("Invalid Option Value: The option '"+L+`' can contain only the following values:
|
|
`+U+`
|
|
You passed in: '`+this.raw_options[L]+"'");return ne},m.prototype._is_valid_selection=function(L,U){return L.length&&U.length&&!L.some(function(Y){return U.indexOf(Y)===-1})};function y(L,U){var Y={};L=x(L);var ne;for(ne in L)ne!==U&&(Y[ne]=L[ne]);if(U&&L[U])for(ne in L[U])Y[ne]=L[U][ne];return Y}function x(L){var U={},Y;for(Y in L){var ne=Y.replace(/-/g,"_");U[ne]=L[Y]}return U}T.exports.Options=m,T.exports.normalizeOpts=x,T.exports.mergeOpts=y},,function(T){var m=RegExp.prototype.hasOwnProperty("sticky");function y(x){this.__input=x||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var x=null;return this.hasNext()&&(x=this.__input.charAt(this.__position),this.__position+=1),x},y.prototype.peek=function(x){var L=null;return x=x||0,x+=this.__position,x>=0&&x<this.__input_length&&(L=this.__input.charAt(x)),L},y.prototype.__match=function(x,L){x.lastIndex=L;var U=x.exec(this.__input);return U&&!(m&&x.sticky)&&U.index!==L&&(U=null),U},y.prototype.test=function(x,L){return L=L||0,L+=this.__position,L>=0&&L<this.__input_length?!!this.__match(x,L):!1},y.prototype.testChar=function(x,L){var U=this.peek(L);return x.lastIndex=0,U!==null&&x.test(U)},y.prototype.match=function(x){var L=this.__match(x,this.__position);return L?this.__position+=L[0].length:L=null,L},y.prototype.read=function(x,L,U){var Y="",ne;return x&&(ne=this.match(x),ne&&(Y+=ne[0])),L&&(ne||!x)&&(Y+=this.readUntil(L,U)),Y},y.prototype.readUntil=function(x,L){var U="",Y=this.__position;x.lastIndex=this.__position;var ne=x.exec(this.__input);return ne?(Y=ne.index,L&&(Y+=ne[0].length)):Y=this.__input_length,U=this.__input.substring(this.__position,Y),this.__position=Y,U},y.prototype.readUntilAfter=function(x){return this.readUntil(x,!0)},y.prototype.get_regexp=function(x,L){var U=null,Y="g";return L&&m&&(Y="y"),typeof x=="string"&&x!==""?U=new RegExp(x,Y):x&&(U=new RegExp(x.source,Y)),U},y.prototype.get_literal_regexp=function(x){return RegExp(x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(x){var L=this.__position,U=this.readUntilAfter(x);return this.__position=L,U},y.prototype.lookBack=function(x){var L=this.__position-1;return L>=x.length&&this.__input.substring(L-x.length,L).toLowerCase()===x},T.exports.InputScanner=y},function(T,m,y){var x=y(8).InputScanner,L=y(3).Token,U=y(10).TokenStream,Y=y(11).WhitespacePattern,ne={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},M=function(F,D){this._input=new x(F),this._options=D||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new Y(this._input)};M.prototype.tokenize=function(){this._input.restart(),this.__tokens=new U,this._reset();for(var F,D=new L(ne.START,""),S=null,te=[],X=new U;D.type!==ne.EOF;){for(F=this._get_next_token(D,S);this._is_comment(F);)X.add(F),F=this._get_next_token(D,S);X.isEmpty()||(F.comments_before=X,X=new U),F.parent=S,this._is_opening(F)?(te.push(S),S=F):S&&this._is_closing(F,S)&&(F.opened=S,S.closed=F,S=te.pop(),F.parent=S),F.previous=D,D.next=F,this.__tokens.add(F),D=F}return this.__tokens},M.prototype._is_first_token=function(){return this.__tokens.isEmpty()},M.prototype._reset=function(){},M.prototype._get_next_token=function(F,D){this._readWhitespace();var S=this._input.read(/.+/g);return S?this._create_token(ne.RAW,S):this._create_token(ne.EOF,"")},M.prototype._is_comment=function(F){return!1},M.prototype._is_opening=function(F){return!1},M.prototype._is_closing=function(F,D){return!1},M.prototype._create_token=function(F,D){var S=new L(F,D,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return S},M.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},T.exports.Tokenizer=M,T.exports.TOKEN=ne},function(T){function m(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}m.prototype.restart=function(){this.__position=0},m.prototype.isEmpty=function(){return this.__tokens_length===0},m.prototype.hasNext=function(){return this.__position<this.__tokens_length},m.prototype.next=function(){var y=null;return this.hasNext()&&(y=this.__tokens[this.__position],this.__position+=1),y},m.prototype.peek=function(y){var x=null;return y=y||0,y+=this.__position,y>=0&&y<this.__tokens_length&&(x=this.__tokens[y]),x},m.prototype.add=function(y){this.__parent_token&&(y.parent=this.__parent_token),this.__tokens.push(y),this.__tokens_length+=1},T.exports.TokenStream=m},function(T,m,y){var x=y(12).Pattern;function L(U,Y){x.call(this,U,Y),Y?this._line_regexp=this._input.get_regexp(Y._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}L.prototype=new x,L.prototype.__set_whitespace_patterns=function(U,Y){U+="\\t ",Y+="\\n\\r",this._match_pattern=this._input.get_regexp("["+U+Y+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+Y+"]")},L.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var U=this._input.read(this._match_pattern);if(U===" ")this.whitespace_before_token=" ";else if(U){var Y=this.__split(this._newline_regexp,U);this.newline_count=Y.length-1,this.whitespace_before_token=Y[this.newline_count]}return U},L.prototype.matching=function(U,Y){var ne=this._create();return ne.__set_whitespace_patterns(U,Y),ne._update(),ne},L.prototype._create=function(){return new L(this._input,this)},L.prototype.__split=function(U,Y){U.lastIndex=0;for(var ne=0,M=[],F=U.exec(Y);F;)M.push(Y.substring(ne,F.index)),ne=F.index+F[0].length,F=U.exec(Y);return ne<Y.length?M.push(Y.substring(ne,Y.length)):M.push(""),M},T.exports.WhitespacePattern=L},function(T){function m(y,x){this._input=y,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,x&&(this._starting_pattern=this._input.get_regexp(x._starting_pattern,!0),this._match_pattern=this._input.get_regexp(x._match_pattern,!0),this._until_pattern=this._input.get_regexp(x._until_pattern),this._until_after=x._until_after)}m.prototype.read=function(){var y=this._input.read(this._starting_pattern);return(!this._starting_pattern||y)&&(y+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),y},m.prototype.read_match=function(){return this._input.match(this._match_pattern)},m.prototype.until_after=function(y){var x=this._create();return x._until_after=!0,x._until_pattern=this._input.get_regexp(y),x._update(),x},m.prototype.until=function(y){var x=this._create();return x._until_after=!1,x._until_pattern=this._input.get_regexp(y),x._update(),x},m.prototype.starting_with=function(y){var x=this._create();return x._starting_pattern=this._input.get_regexp(y,!0),x._update(),x},m.prototype.matching=function(y){var x=this._create();return x._match_pattern=this._input.get_regexp(y,!0),x._update(),x},m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){},T.exports.Pattern=m},function(T){function m(y,x){y=typeof y=="string"?y:y.source,x=typeof x=="string"?x:x.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+x,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+x,"g")}m.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var x={};this.__directive_pattern.lastIndex=0;for(var L=this.__directive_pattern.exec(y);L;)x[L[1]]=L[2],L=this.__directive_pattern.exec(y);return x},m.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},T.exports.Directives=m},function(T,m,y){var x=y(12).Pattern,L={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function U(Y,ne){x.call(this,Y,ne),this.__template_pattern=null,this._disabled=Object.assign({},L),this._excluded=Object.assign({},L),ne&&(this.__template_pattern=this._input.get_regexp(ne.__template_pattern),this._excluded=Object.assign(this._excluded,ne._excluded),this._disabled=Object.assign(this._disabled,ne._disabled));var M=new x(Y);this.__patterns={handlebars_comment:M.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:M.starting_with(/{{{/).until_after(/}}}/),handlebars:M.starting_with(/{{/).until_after(/}}/),php:M.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:M.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:M.starting_with(/{%/).until_after(/%}/),django_value:M.starting_with(/{{/).until_after(/}}/),django_comment:M.starting_with(/{#/).until_after(/#}/),smarty:M.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:M.starting_with(/{\*/).until_after(/\*}/),smarty_literal:M.starting_with(/{literal}/).until_after(/{\/literal}/)}}U.prototype=new x,U.prototype._create=function(){return new U(this._input,this)},U.prototype._update=function(){this.__set_templated_pattern()},U.prototype.disable=function(Y){var ne=this._create();return ne._disabled[Y]=!0,ne._update(),ne},U.prototype.read_options=function(Y){var ne=this._create();for(var M in L)ne._disabled[M]=Y.templating.indexOf(M)===-1;return ne._update(),ne},U.prototype.exclude=function(Y){var ne=this._create();return ne._excluded[Y]=!0,ne._update(),ne},U.prototype.read=function(){var Y="";this._match_pattern?Y=this._input.read(this._starting_pattern):Y=this._input.read(this._starting_pattern,this.__template_pattern);for(var ne=this._read_template();ne;)this._match_pattern?ne+=this._input.read(this._match_pattern):ne+=this._input.readUntil(this.__template_pattern),Y+=ne,ne=this._read_template();return this._until_after&&(Y+=this._input.readUntilAfter(this._until_pattern)),Y},U.prototype.__set_templated_pattern=function(){var Y=[];this._disabled.php||Y.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||Y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||Y.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||Y.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(Y.push(this.__patterns.django._starting_pattern.source),Y.push(this.__patterns.django_value._starting_pattern.source),Y.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||Y.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&Y.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+Y.join("|")+")")},U.prototype._read_template=function(){var Y="",ne=this._input.peek();if(ne==="<"){var M=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&M==="?"&&(Y=Y||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&M==="%"&&(Y=Y||this.__patterns.erb.read())}else ne==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(Y=Y||this.__patterns.handlebars_comment.read(),Y=Y||this.__patterns.handlebars_unescaped.read(),Y=Y||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(Y=Y||this.__patterns.django_value.read()),this._excluded.django||(Y=Y||this.__patterns.django_comment.read(),Y=Y||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(Y=Y||this.__patterns.smarty_comment.read(),Y=Y||this.__patterns.smarty_literal.read(),Y=Y||this.__patterns.smarty.read()));return Y},T.exports.TemplatablePattern=U},,,,function(T,m,y){var x=y(19).Beautifier,L=y(20).Options;function U(Y,ne,M,F){var D=new x(Y,ne,M,F);return D.beautify()}T.exports=U,T.exports.defaultOptions=function(){return new L}},function(T,m,y){var x=y(20).Options,L=y(2).Output,U=y(21).Tokenizer,Y=y(21).TOKEN,ne=/\r\n|[\r\n]/,M=/\r\n|[\r\n]/g,F=function(G,N){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=G.max_preserve_newlines,this.preserve_newlines=G.preserve_newlines,this._output=new L(G,N)};F.prototype.current_line_has_match=function(G){return this._output.current_line.has_match(G)},F.prototype.set_space_before_token=function(G,N){this._output.space_before_token=G,this._output.non_breaking_space=N},F.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},F.prototype.add_raw_token=function(G){this._output.add_raw_token(G)},F.prototype.print_preserved_newlines=function(G){var N=0;G.type!==Y.TEXT&&G.previous.type!==Y.TEXT&&(N=G.newlines?1:0),this.preserve_newlines&&(N=G.newlines<this.max_preserve_newlines+1?G.newlines:this.max_preserve_newlines+1);for(var W=0;W<N;W++)this.print_newline(W>0);return N!==0},F.prototype.traverse_whitespace=function(G){return G.whitespace_before||G.newlines?(this.print_preserved_newlines(G)||(this._output.space_before_token=!0),!0):!1},F.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},F.prototype.print_newline=function(G){this._output.add_new_line(G)},F.prototype.print_token=function(G){G.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(G.text))},F.prototype.indent=function(){this.indent_level++},F.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},F.prototype.get_full_indent=function(G){return G=this.indent_level+(G||0),G<1?"":this._output.get_indent_string(G)};var D=function(G){for(var N=null,W=G.next;W.type!==Y.EOF&&G.closed!==W;){if(W.type===Y.ATTRIBUTE&&W.text==="type"){W.next&&W.next.type===Y.EQUALS&&W.next.next&&W.next.next.type===Y.VALUE&&(N=W.next.next.text);break}W=W.next}return N},S=function(G,N){var W=null,$=null;return N.closed?(G==="script"?W="text/javascript":G==="style"&&(W="text/css"),W=D(N)||W,W.search("text/css")>-1?$="css":W.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?$="javascript":W.search(/(text|application|dojo)\/(x-)?(html)/)>-1?$="html":W.search(/test\/null/)>-1&&($="null"),$):null};function te(G,N){return N.indexOf(G)!==-1}function X(G,N,W){this.parent=G||null,this.tag=N?N.tag_name:"",this.indent_level=W||0,this.parser_token=N||null}function j(G){this._printer=G,this._current_frame=null}j.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},j.prototype.record_tag=function(G){var N=new X(this._current_frame,G,this._printer.indent_level);this._current_frame=N},j.prototype._try_pop_frame=function(G){var N=null;return G&&(N=G.parser_token,this._printer.indent_level=G.indent_level,this._current_frame=G.parent),N},j.prototype._get_frame=function(G,N){for(var W=this._current_frame;W&&G.indexOf(W.tag)===-1;){if(N&&N.indexOf(W.tag)!==-1){W=null;break}W=W.parent}return W},j.prototype.try_pop=function(G,N){var W=this._get_frame([G],N);return this._try_pop_frame(W)},j.prototype.indent_to_tag=function(G){var N=this._get_frame(G);N&&(this._printer.indent_level=N.indent_level)};function q(G,N,W,$){this._source_text=G||"",N=N||{},this._js_beautify=W,this._css_beautify=$,this._tag_stack=null;var ie=new x(N,"html");this._options=ie,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"}q.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var G=this._source_text,N=this._options.eol;this._options.eol==="auto"&&(N=`
|
|
`,G&&ne.test(G)&&(N=G.match(ne)[0])),G=G.replace(M,`
|
|
`);var W=G.match(/^[\t ]*/)[0],$={text:"",type:""},ie=new ue(this._options),Q=new F(this._options,W),g=new U(G,this._options).tokenize();this._tag_stack=new j(Q);for(var v=null,z=g.next();z.type!==Y.EOF;)z.type===Y.TAG_OPEN||z.type===Y.COMMENT?(v=this._handle_tag_open(Q,z,ie,$,g),ie=v):z.type===Y.ATTRIBUTE||z.type===Y.EQUALS||z.type===Y.VALUE||z.type===Y.TEXT&&!ie.tag_complete?v=this._handle_inside_tag(Q,z,ie,$):z.type===Y.TAG_CLOSE?v=this._handle_tag_close(Q,z,ie):z.type===Y.TEXT?v=this._handle_text(Q,z,ie):z.type===Y.CONTROL_FLOW_OPEN?v=this._handle_control_flow_open(Q,z):z.type===Y.CONTROL_FLOW_CLOSE?v=this._handle_control_flow_close(Q,z):Q.add_raw_token(z),$=v,z=g.next();var ce=Q._output.get_code(N);return ce},q.prototype._handle_control_flow_open=function(G,N){var W={text:N.text,type:N.type};return G.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),N.newlines?G.print_preserved_newlines(N):G.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),G.print_token(N),G.indent(),W},q.prototype._handle_control_flow_close=function(G,N){var W={text:N.text,type:N.type};return G.deindent(),N.newlines?G.print_preserved_newlines(N):G.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),G.print_token(N),W},q.prototype._handle_tag_close=function(G,N,W){var $={text:N.text,type:N.type};return G.alignment_size=0,W.tag_complete=!0,G.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),W.is_unformatted?G.add_raw_token(N):(W.tag_start_char==="<"&&(G.set_space_before_token(N.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&W.has_wrapped_attrs&&G.print_newline(!1)),G.print_token(N)),W.indent_content&&!(W.is_unformatted||W.is_content_unformatted)&&(G.indent(),W.indent_content=!1),!W.is_inline_element&&!(W.is_unformatted||W.is_content_unformatted)&&G.set_wrap_point(),$},q.prototype._handle_inside_tag=function(G,N,W,$){var ie=W.has_wrapped_attrs,Q={text:N.text,type:N.type};return G.set_space_before_token(N.newlines||N.whitespace_before!=="",!0),W.is_unformatted?G.add_raw_token(N):W.tag_start_char==="{"&&N.type===Y.TEXT?G.print_preserved_newlines(N)?(N.newlines=0,G.add_raw_token(N)):G.print_token(N):(N.type===Y.ATTRIBUTE?G.set_space_before_token(!0):(N.type===Y.EQUALS||N.type===Y.VALUE&&N.previous.type===Y.EQUALS)&&G.set_space_before_token(!1),N.type===Y.ATTRIBUTE&&W.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(G.traverse_whitespace(N),ie=ie||N.newlines!==0),this._is_wrap_attributes_force&&W.attr_count>=this._options.wrap_attributes_min_attrs&&($.type!==Y.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(G.print_newline(!1),ie=!0)),G.print_token(N),ie=ie||G.previous_token_wrapped(),W.has_wrapped_attrs=ie),Q},q.prototype._handle_text=function(G,N,W){var $={text:N.text,type:"TK_CONTENT"};return W.custom_beautifier_name?this._print_custom_beatifier_text(G,N,W):W.is_unformatted||W.is_content_unformatted?G.add_raw_token(N):(G.traverse_whitespace(N),G.print_token(N)),$},q.prototype._print_custom_beatifier_text=function(G,N,W){var $=this;if(N.text!==""){var ie=N.text,Q,g=1,v="",z="";W.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?Q=this._js_beautify:W.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?Q=this._css_beautify:W.custom_beautifier_name==="html"&&(Q=function($t,Bt){var Oe=new q($t,Bt,$._js_beautify,$._css_beautify);return Oe.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-G.indent_level);var ce=G.get_full_indent(g);if(ie=ie.replace(/\n[ \t]*$/,""),W.custom_beautifier_name!=="html"&&ie[0]==="<"&&ie.match(/^(<!--|<!\[CDATA\[)/)){var je=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ie);if(!je){G.add_raw_token(N);return}v=ce+je[1]+`
|
|
`,ie=je[4],je[5]&&(z=ce+je[5]),ie=ie.replace(/\n[ \t]*$/,""),(je[2]||je[3].indexOf(`
|
|
`)!==-1)&&(je=je[3].match(/[ \t]+$/),je&&(N.whitespace_before=je[0]))}if(ie)if(Q){var Ye=function(){this.eol=`
|
|
`};Ye.prototype=this._options.raw_options;var It=new Ye;ie=Q(ce+ie,It)}else{var bt=N.whitespace_before;bt&&(ie=ie.replace(new RegExp(`
|
|
(`+bt+")?","g"),`
|
|
`)),ie=ce+ie.replace(/\n/g,`
|
|
`+ce)}v&&(ie?ie=v+ie+`
|
|
`+z:ie=v+z),G.print_newline(!1),ie&&(N.text=ie,N.whitespace_before="",N.newlines=0,G.add_raw_token(N),G.print_newline(!0))}},q.prototype._handle_tag_open=function(G,N,W,$,ie){var Q=this._get_tag_open_token(N);if((W.is_unformatted||W.is_content_unformatted)&&!W.is_empty_element&&N.type===Y.TAG_OPEN&&!Q.is_start_tag?(G.add_raw_token(N),Q.start_tag_token=this._tag_stack.try_pop(Q.tag_name)):(G.traverse_whitespace(N),this._set_tag_position(G,N,Q,W,$),Q.is_inline_element||G.set_wrap_point(),G.print_token(N)),Q.is_start_tag&&this._is_wrap_attributes_force){var g=0,v;do v=ie.peek(g),v.type===Y.ATTRIBUTE&&(Q.attr_count+=1),g+=1;while(v.type!==Y.EOF&&v.type!==Y.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(Q.alignment_size=N.text.length+1),!Q.tag_complete&&!Q.is_unformatted&&(G.alignment_size=Q.alignment_size),Q};var ue=function(G,N,W){if(this.parent=N||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="",!W)this.tag_complete=!0;else{var $;this.tag_start_char=W.text[0],this.text=W.text,this.tag_start_char==="<"?($=W.text.match(/^<([^\s>]*)/),this.tag_check=$?$[1]:""):($=W.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=$?$[1]:"",(W.text.startsWith("{{#>")||W.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&W.next!==null?this.tag_check=W.next.text.split(" ")[0]:this.tag_check=W.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),W.type===Y.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||W.closed&&W.closed.text==="/>";var ie=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ie=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!G.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ie)))}};q.prototype._get_tag_open_token=function(G){var N=new ue(this._options,this._tag_stack.get_parser_token(),G);return N.alignment_size=this._options.wrap_attributes_indent_size,N.is_end_tag=N.is_end_tag||te(N.tag_check,this._options.void_elements),N.is_empty_element=N.tag_complete||N.is_start_tag&&N.is_end_tag,N.is_unformatted=!N.tag_complete&&te(N.tag_check,this._options.unformatted),N.is_content_unformatted=!N.is_empty_element&&te(N.tag_check,this._options.content_unformatted),N.is_inline_element=te(N.tag_name,this._options.inline)||this._options.inline_custom_elements&&N.tag_name.includes("-")||N.tag_start_char==="{",N},q.prototype._set_tag_position=function(G,N,W,$,ie){if(W.is_empty_element||(W.is_end_tag?W.start_tag_token=this._tag_stack.try_pop(W.tag_name):(this._do_optional_end_element(W)&&(W.is_inline_element||G.print_newline(!1)),this._tag_stack.record_tag(W),(W.tag_name==="script"||W.tag_name==="style")&&!(W.is_unformatted||W.is_content_unformatted)&&(W.custom_beautifier_name=S(W.tag_check,N)))),te(W.tag_check,this._options.extra_liners)&&(G.print_newline(!1),G._output.just_added_blankline()||G.print_newline(!0)),W.is_empty_element){if(W.tag_start_char==="{"&&W.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),W.indent_content=!0;var Q=G.current_line_has_match(/{{#if/);Q||G.print_newline(!1)}W.tag_name==="!--"&&ie.type===Y.TAG_CLOSE&&$.is_end_tag&&W.text.indexOf(`
|
|
`)===-1||(W.is_inline_element||W.is_unformatted||G.print_newline(!1),this._calcluate_parent_multiline(G,W))}else if(W.is_end_tag){var g=!1;g=W.start_tag_token&&W.start_tag_token.multiline_content,g=g||!W.is_inline_element&&!($.is_inline_element||$.is_unformatted)&&!(ie.type===Y.TAG_CLOSE&&W.start_tag_token===$)&&ie.type!=="TK_CONTENT",(W.is_content_unformatted||W.is_unformatted)&&(g=!1),g&&G.print_newline(!1)}else W.indent_content=!W.custom_beautifier_name,W.tag_start_char==="<"&&(W.tag_name==="html"?W.indent_content=this._options.indent_inner_html:W.tag_name==="head"?W.indent_content=this._options.indent_head_inner_html:W.tag_name==="body"&&(W.indent_content=this._options.indent_body_inner_html)),!(W.is_inline_element||W.is_unformatted)&&(ie.type!=="TK_CONTENT"||W.is_content_unformatted)&&G.print_newline(!1),this._calcluate_parent_multiline(G,W)},q.prototype._calcluate_parent_multiline=function(G,N){N.parent&&G._output.just_added_newline()&&!((N.is_inline_element||N.is_unformatted)&&N.parent.is_inline_element)&&(N.parent.multiline_content=!0)};var pe=["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"],We=["a","audio","del","ins","map","noscript","video"];q.prototype._do_optional_end_element=function(G){var N=null;if(!(G.is_empty_element||!G.is_start_tag||!G.parent)){if(G.tag_name==="body")N=N||this._tag_stack.try_pop("head");else if(G.tag_name==="li")N=N||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(G.tag_name==="dd"||G.tag_name==="dt")N=N||this._tag_stack.try_pop("dt",["dl"]),N=N||this._tag_stack.try_pop("dd",["dl"]);else if(G.parent.tag_name==="p"&&pe.indexOf(G.tag_name)!==-1){var W=G.parent.parent;(!W||We.indexOf(W.tag_name)===-1)&&(N=N||this._tag_stack.try_pop("p"))}else G.tag_name==="rp"||G.tag_name==="rt"?(N=N||this._tag_stack.try_pop("rt",["ruby","rtc"]),N=N||this._tag_stack.try_pop("rp",["ruby","rtc"])):G.tag_name==="optgroup"?N=N||this._tag_stack.try_pop("optgroup",["select"]):G.tag_name==="option"?N=N||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):G.tag_name==="colgroup"?N=N||this._tag_stack.try_pop("caption",["table"]):G.tag_name==="thead"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"])):G.tag_name==="tbody"||G.tag_name==="tfoot"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"]),N=N||this._tag_stack.try_pop("thead",["table"]),N=N||this._tag_stack.try_pop("tbody",["table"])):G.tag_name==="tr"?(N=N||this._tag_stack.try_pop("caption",["table"]),N=N||this._tag_stack.try_pop("colgroup",["table"]),N=N||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(G.tag_name==="th"||G.tag_name==="td")&&(N=N||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),N=N||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return G.parent=this._tag_stack.get_parser_token(),N}},T.exports.Beautifier=q},function(T,m,y){var x=y(6).Options;function L(U){x.call(this,U,"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"])}L.prototype=new x,T.exports.Options=L},function(T,m,y){var x=y(9).Tokenizer,L=y(9).TOKEN,U=y(13).Directives,Y=y(14).TemplatablePattern,ne=y(12).Pattern,M={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:L.START,RAW:L.RAW,EOF:L.EOF},F=new U(/<\!--/,/-->/),D=function(S,te){x.call(this,S,te),this._current_tag_name="";var X=new Y(this._input).read_options(this._options),j=new ne(this._input);if(this.__patterns={word:X.until(/[\n\r\t <]/),word_control_flow_close_excluded:X.until(/[\n\r\t <}]/),single_quote:X.until_after(/'/),double_quote:X.until_after(/"/),attribute:X.until(/[\n\r\t =>]|\/>/),element_name:X.until(/[\n\r\t >\/]/),angular_control_flow_start:j.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),handlebars_open:j.until(/[\n\r\t }]/),handlebars_raw_close:j.until(/}}/),comment:j.starting_with(/<!--/).until_after(/-->/),cdata:j.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:j.starting_with(/<!\[/).until_after(/]>/),processing:j.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var q=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=j.matching(q).until_after(q)}};D.prototype=new x,D.prototype._is_comment=function(S){return!1},D.prototype._is_opening=function(S){return S.type===M.TAG_OPEN||S.type===M.CONTROL_FLOW_OPEN},D.prototype._is_closing=function(S,te){return S.type===M.TAG_CLOSE&&te&&((S.text===">"||S.text==="/>")&&te.text[0]==="<"||S.text==="}}"&&te.text[0]==="{"&&te.text[1]==="{")||S.type===M.CONTROL_FLOW_CLOSE&&S.text==="}"&&te.text.endsWith("{")},D.prototype._reset=function(){this._current_tag_name=""},D.prototype._get_next_token=function(S,te){var X=null;this._readWhitespace();var j=this._input.peek();return j===null?this._create_token(M.EOF,""):(X=X||this._read_open_handlebars(j,te),X=X||this._read_attribute(j,S,te),X=X||this._read_close(j,te),X=X||this._read_script_and_style(j,S),X=X||this._read_control_flows(j,te),X=X||this._read_raw_content(j,S,te),X=X||this._read_content_word(j,te),X=X||this._read_comment_or_cdata(j),X=X||this._read_processing(j),X=X||this._read_open(j,te),X=X||this._create_token(M.UNKNOWN,this._input.next()),X)},D.prototype._read_comment_or_cdata=function(S){var te=null,X=null,j=null;if(S==="<"){var q=this._input.peek(1);q==="!"&&(X=this.__patterns.comment.read(),X?(j=F.get_directives(X),j&&j.ignore==="start"&&(X+=F.readIgnored(this._input))):X=this.__patterns.cdata.read()),X&&(te=this._create_token(M.COMMENT,X),te.directives=j)}return te},D.prototype._read_processing=function(S){var te=null,X=null,j=null;if(S==="<"){var q=this._input.peek(1);(q==="!"||q==="?")&&(X=this.__patterns.conditional_comment.read(),X=X||this.__patterns.processing.read()),X&&(te=this._create_token(M.COMMENT,X),te.directives=j)}return te},D.prototype._read_open=function(S,te){var X=null,j=null;return(!te||te.type===M.CONTROL_FLOW_OPEN)&&S==="<"&&(X=this._input.next(),this._input.peek()==="/"&&(X+=this._input.next()),X+=this.__patterns.element_name.read(),j=this._create_token(M.TAG_OPEN,X)),j},D.prototype._read_open_handlebars=function(S,te){var X=null,j=null;return(!te||te.type===M.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&S==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(X=this.__patterns.handlebars_comment.read(),X=X||this.__patterns.handlebars.read(),j=this._create_token(M.COMMENT,X)):(X=this.__patterns.handlebars_open.read(),j=this._create_token(M.TAG_OPEN,X))),j},D.prototype._read_control_flows=function(S,te){var X="",j=null;if(!this._options.templating.includes("angular"))return j;if(S==="@"){if(X=this.__patterns.angular_control_flow_start.read(),X==="")return j;for(var q=X.endsWith("(")?1:0,ue=0;!(X.endsWith("{")&&q===ue);){var pe=this._input.next();if(pe===null)break;pe==="("?q++:pe===")"&&ue++,X+=pe}j=this._create_token(M.CONTROL_FLOW_OPEN,X)}else S==="}"&&te&&te.type===M.CONTROL_FLOW_OPEN&&(X=this._input.next(),j=this._create_token(M.CONTROL_FLOW_CLOSE,X));return j},D.prototype._read_close=function(S,te){var X=null,j=null;return te&&te.type===M.TAG_OPEN&&(te.text[0]==="<"&&(S===">"||S==="/"&&this._input.peek(1)===">")?(X=this._input.next(),S==="/"&&(X+=this._input.next()),j=this._create_token(M.TAG_CLOSE,X)):te.text[0]==="{"&&S==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),j=this._create_token(M.TAG_CLOSE,"}}"))),j},D.prototype._read_attribute=function(S,te,X){var j=null,q="";if(X&&X.text[0]==="<")if(S==="=")j=this._create_token(M.EQUALS,this._input.next());else if(S==='"'||S==="'"){var ue=this._input.next();S==='"'?ue+=this.__patterns.double_quote.read():ue+=this.__patterns.single_quote.read(),j=this._create_token(M.VALUE,ue)}else q=this.__patterns.attribute.read(),q&&(te.type===M.EQUALS?j=this._create_token(M.VALUE,q):j=this._create_token(M.ATTRIBUTE,q));return j},D.prototype._is_content_unformatted=function(S){return this._options.void_elements.indexOf(S)===-1&&(this._options.content_unformatted.indexOf(S)!==-1||this._options.unformatted.indexOf(S)!==-1)},D.prototype._read_raw_content=function(S,te,X){var j="";if(X&&X.text[0]==="{")j=this.__patterns.handlebars_raw_close.read();else if(te.type===M.TAG_CLOSE&&te.opened.text[0]==="<"&&te.text[0]!=="/"){var q=te.opened.text.substr(1).toLowerCase();this._is_content_unformatted(q)&&(j=this._input.readUntil(new RegExp("</"+q+"[\\n\\r\\t ]*?>","ig")))}return j?this._create_token(M.TEXT,j):null},D.prototype._read_script_and_style=function(S,te){if(te.type===M.TAG_CLOSE&&te.opened.text[0]==="<"&&te.text[0]!=="/"){var X=te.opened.text.substr(1).toLowerCase();if(X==="script"||X==="style"){var j=this._read_comment_or_cdata(S);if(j)return j.type=M.TEXT,j;var q=this._input.readUntil(new RegExp("</"+X+"[\\n\\r\\t ]*?>","ig"));if(q)return this._create_token(M.TEXT,q)}}return null},D.prototype._read_content_word=function(S,te){var X="";return this._options.unformatted_content_delimiter&&S===this._options.unformatted_content_delimiter[0]&&(X=this.__patterns.unformatted_content_delimiter.read()),X||(X=te&&te.type===M.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),X?this._create_token(M.TEXT,X):null},T.exports.Tokenizer=D,T.exports.TOKEN=M}],oe={};function o(T){var m=oe[T];if(m!==void 0)return m.exports;var y=oe[T]={exports:{}};return ve[T](y,y.exports,o),y.exports}var b=o(18);se=b})();var ge=se;if(1)p=[w,w(58553),w(87804)],he=function(ve){var oe=w(58553),o=w(87804);return{html_beautify:function(b,T){return ge(b,T,oe.js_beautify,o.css_beautify)}}}.apply(Wt,p),he!==void 0&&(In.exports=he);else var O,d})()},58553:function(In,Wt){var w,p;(function(){var he;(function(){"use strict";var ge=[function(oe,o,b){var T=b(1).Beautifier,m=b(5).Options;function y(x,L){var U=new T(x,L);return U.beautify()}oe.exports=y,oe.exports.defaultOptions=function(){return new m}},function(oe,o,b){var T=b(2).Output,m=b(3).Token,y=b(4),x=b(5).Options,L=b(7).Tokenizer,U=b(7).line_starters,Y=b(7).positionable_operators,ne=b(7).TOKEN;function M(v,z){return z.indexOf(v)!==-1}function F(v){return v.replace(/^\s+/g,"")}function D(v){for(var z={},ce=0;ce<v.length;ce++)z[v[ce].replace(/-/g,"_")]=v[ce];return z}function S(v,z){return v&&v.type===ne.RESERVED&&v.text===z}function te(v,z){return v&&v.type===ne.RESERVED&&M(v.text,z)}var X=["case","return","do","if","throw","else","await","break","continue","async"],j=["before-newline","after-newline","preserve-newline"],q=D(j),ue=[q.before_newline,q.preserve_newline],pe={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function We(v,z){z.multiline_frame||z.mode===pe.ForInitializer||z.mode===pe.Conditional||v.remove_indent(z.start_line_index)}function G(v){v=v.replace(y.allLineBreaks,`
|
|
`);for(var z=[],ce=v.indexOf(`
|
|
`);ce!==-1;)z.push(v.substring(0,ce)),v=v.substring(ce+1),ce=v.indexOf(`
|
|
`);return v.length&&z.push(v),z}function N(v){return v===pe.ArrayLiteral}function W(v){return M(v,[pe.Expression,pe.ForInitializer,pe.Conditional])}function $(v,z){for(var ce=0;ce<v.length;ce++){var je=v[ce].trim();if(je.charAt(0)!==z)return!1}return!0}function ie(v,z){for(var ce=0,je=v.length,Ye;ce<je;ce++)if(Ye=v[ce],Ye&&Ye.indexOf(z)!==0)return!1;return!0}function Q(v,z){z=z||{},this._source_text=v||"",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 x(z)}Q.prototype.create_flags=function(v,z){var ce=0;v&&(ce=v.indentation_level,!this._output.just_added_newline()&&v.line_indent_level>ce&&(ce=v.line_indent_level));var je={mode:z,parent:v,last_token:v?v.last_token:new m(ne.START_BLOCK,""),last_word:v?v.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:ce,alignment:0,line_indent_level:v?v.line_indent_level:ce,start_line_index:this._output.get_line_number(),ternary_depth:0};return je},Q.prototype._reset=function(v){var z=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new T(this._options,z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(pe.BlockStatement);var ce=new L(v,this._options);return this._tokens=ce.tokenize(),v},Q.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,z=this._reset(this._source_text),ce=this._options.eol;this._options.eol==="auto"&&(ce=`
|
|
`,z&&y.lineBreak.test(z||"")&&(ce=z.match(y.lineBreak)[0]));for(var je=this._tokens.next();je;)this.handle_token(je),this._last_last_text=this._flags.last_token.text,this._flags.last_token=je,je=this._tokens.next();return v=this._output.get_code(ce),v},Q.prototype.handle_token=function(v,z){v.type===ne.START_EXPR?this.handle_start_expr(v):v.type===ne.END_EXPR?this.handle_end_expr(v):v.type===ne.START_BLOCK?this.handle_start_block(v):v.type===ne.END_BLOCK?this.handle_end_block(v):v.type===ne.WORD?this.handle_word(v):v.type===ne.RESERVED?this.handle_word(v):v.type===ne.SEMICOLON?this.handle_semicolon(v):v.type===ne.STRING?this.handle_string(v):v.type===ne.EQUALS?this.handle_equals(v):v.type===ne.OPERATOR?this.handle_operator(v):v.type===ne.COMMA?this.handle_comma(v):v.type===ne.BLOCK_COMMENT?this.handle_block_comment(v,z):v.type===ne.COMMENT?this.handle_comment(v,z):v.type===ne.DOT?this.handle_dot(v):v.type===ne.EOF?this.handle_eof(v):v.type===ne.UNKNOWN?this.handle_unknown(v,z):this.handle_unknown(v,z)},Q.prototype.handle_whitespace_and_comments=function(v,z){var ce=v.newlines,je=this._options.keep_array_indentation&&N(this._flags.mode);if(v.comments_before)for(var Ye=v.comments_before.next();Ye;)this.handle_whitespace_and_comments(Ye,z),this.handle_token(Ye,z),Ye=v.comments_before.next();if(je)for(var It=0;It<ce;It+=1)this.print_newline(It>0,z);else if(this._options.max_preserve_newlines&&ce>this._options.max_preserve_newlines&&(ce=this._options.max_preserve_newlines),this._options.preserve_newlines&&ce>1){this.print_newline(!1,z);for(var bt=1;bt<ce;bt+=1)this.print_newline(!0,z)}};var g=["async","break","continue","return","throw","yield"];Q.prototype.allow_wrap_or_preserved_newline=function(v,z){if(z=z===void 0?!1:z,!this._output.just_added_newline()){var ce=this._options.preserve_newlines&&v.newlines||z,je=M(this._flags.last_token.text,Y)||M(v.text,Y);if(je){var Ye=M(this._flags.last_token.text,Y)&&M(this._options.operator_position,ue)||M(v.text,Y);ce=ce&&Ye}if(ce)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(te(this._flags.last_token,g))return;this._output.set_wrap_point()}}},Q.prototype.print_newline=function(v,z){if(!z&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==ne.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var ce=this._tokens.peek();this._flags.mode===pe.Statement&&!(this._flags.if_block&&S(ce,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(v)&&(this._flags.multiline_frame=!0)},Q.prototype.print_token_line_indentation=function(v){this._output.just_added_newline()&&(this._options.keep_array_indentation&&v.newlines&&(v.text==="["||N(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(v.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},Q.prototype.print_token=function(v){if(this._output.raw){this._output.add_raw_token(v);return}if(this._options.comma_first&&v.previous&&v.previous.type===ne.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(v),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(v),this._output.non_breaking_space=!0,this._output.add_token(v.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},Q.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Q.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Q.prototype.set_mode=function(v){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,v),this._flags=this.create_flags(this._previous_flags,v),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Q.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===pe.Statement&&We(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Q.prototype.start_of_object_property=function(){return this._flags.parent.mode===pe.ObjectLiteral&&this._flags.mode===pe.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||te(this._flags.last_token,["get","set"]))},Q.prototype.start_of_statement=function(v){var z=!1;return z=z||te(this._flags.last_token,["var","let","const"])&&v.type===ne.WORD,z=z||S(this._flags.last_token,"do"),z=z||!(this._flags.parent.mode===pe.ObjectLiteral&&this._flags.mode===pe.Statement)&&te(this._flags.last_token,g)&&!v.newlines,z=z||S(this._flags.last_token,"else")&&!(S(v,"if")&&!v.comments_before),z=z||this._flags.last_token.type===ne.END_EXPR&&(this._previous_flags.mode===pe.ForInitializer||this._previous_flags.mode===pe.Conditional),z=z||this._flags.last_token.type===ne.WORD&&this._flags.mode===pe.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==ne.WORD&&v.type!==ne.RESERVED,z=z||this._flags.mode===pe.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||te(this._flags.last_token,["get","set"])),z?(this.set_mode(pe.Statement),this.indent(),this.handle_whitespace_and_comments(v,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v,te(v,["do","for","if","while"])),!0):!1},Q.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var z=pe.Expression;if(v.text==="["){if(this._flags.last_token.type===ne.WORD||this._flags.last_token.text===")"){te(this._flags.last_token,U)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}z=pe.ArrayLiteral,N(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()),M(this._flags.last_token.type,[ne.START_EXPR,ne.END_EXPR,ne.WORD,ne.OPERATOR,ne.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===ne.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,z=pe.ForInitializer):M(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,z=pe.Conditional):M(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&v.whitespace_before===""?this._output.space_before_token=!1:(M(this._flags.last_token.text,U)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===ne.EQUALS||this._flags.last_token.type===ne.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v);else if(this._flags.last_token.type===ne.WORD){this._output.space_before_token=!1;var ce=this._tokens.peek(-3);if(this._options.space_after_named_function&&ce){var je=this._tokens.peek(-4);te(ce,["async","function"])||ce.text==="*"&&te(je,["async","function"])?this._output.space_before_token=!0:this._flags.mode===pe.ObjectLiteral?(ce.text==="{"||ce.text===","||ce.text==="*"&&(je.text==="{"||je.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(v);(this._flags.last_token.type===ne.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(M(this._last_last_text,["function","yield"])||this._flags.mode===pe.ObjectLiteral&&M(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===ne.START_BLOCK?this.print_newline():(this._flags.last_token.type===ne.END_EXPR||this._flags.last_token.type===ne.START_EXPR||this._flags.last_token.type===ne.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===ne.COMMA)&&this.allow_wrap_or_preserved_newline(v,v.newlines),this.print_token(v),this.set_mode(z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},Q.prototype.handle_end_expr=function(v){for(;this._flags.mode===pe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(v,v.text==="]"&&N(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===ne.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(v),this.restore_mode(),We(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===pe.Conditional&&(this._previous_flags.mode=pe.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},Q.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var z=this._tokens.peek(),ce=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===ne.END_EXPR?(this.set_mode(pe.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(pe.BlockStatement):ce&&(M(ce.text,[":",","])&&M(z.type,[ne.STRING,ne.WORD,ne.RESERVED])||M(z.text,["get","set","..."])&&M(ce.type,[ne.WORD,ne.RESERVED]))?M(this._last_last_text,["class","interface"])&&!M(ce.text,[":",","])?this.set_mode(pe.BlockStatement):this.set_mode(pe.ObjectLiteral):this._flags.last_token.type===ne.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(pe.BlockStatement):M(this._flags.last_token.type,[ne.EQUALS,ne.START_EXPR,ne.COMMA,ne.OPERATOR])||te(this._flags.last_token,["return","throw","import","default"])?this.set_mode(pe.ObjectLiteral):this.set_mode(pe.BlockStatement),this._flags.last_token&&te(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var je=!z.comments_before&&z.text==="}",Ye=je&&this._flags.last_word==="function"&&this._flags.last_token.type===ne.END_EXPR;if(this._options.brace_preserve_inline){var It=0,bt=null;this._flags.inline_frame=!0;do if(It+=1,bt=this._tokens.peek(It-1),bt.newlines){this._flags.inline_frame=!1;break}while(bt.type!==ne.EOF&&!(bt.type===ne.END_BLOCK&&bt.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==ne.OPERATOR&&(Ye||this._flags.last_token.type===ne.EQUALS||te(this._flags.last_token,X)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(N(this._previous_flags.mode)&&(this._flags.last_token.type===ne.START_EXPR||this._flags.last_token.type===ne.COMMA)&&((this._flags.last_token.type===ne.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===ne.COMMA||this._flags.last_token.type===ne.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(v),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==ne.OPERATOR&&this._flags.last_token.type!==ne.START_EXPR&&(M(this._flags.last_token.type,[ne.START_BLOCK,ne.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(v),this.indent(),!je&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},Q.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===pe.Statement;)this.restore_mode();var z=this._flags.last_token.type===ne.START_BLOCK;this._flags.inline_frame&&!z?this._output.space_before_token=!0:this._options.brace_style==="expand"?z||this.print_newline():z||(N(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(v)},Q.prototype.handle_word=function(v){if(v.type===ne.RESERVED){if(M(v.text,["set","get"])&&this._flags.mode!==pe.ObjectLiteral)v.type=ne.WORD;else if(v.text==="import"&&M(this._tokens.peek().text,["(","."]))v.type=ne.WORD;else if(M(v.text,["as","from"])&&!this._flags.import_block)v.type=ne.WORD;else if(this._flags.mode===pe.ObjectLiteral){var z=this._tokens.peek();z.text===":"&&(v.type=ne.WORD)}}if(this.start_of_statement(v)?te(this._flags.last_token,["var","let","const"])&&v.type===ne.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!W(this._flags.mode)&&(this._flags.last_token.type!==ne.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==ne.EQUALS&&(this._options.preserve_newlines||!te(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(v),this.print_newline()):this.handle_whitespace_and_comments(v),this._flags.do_block&&!this._flags.do_while)if(S(v,"while")){this._output.space_before_token=!0,this.print_token(v),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&&S(v,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===pe.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&te(v,["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(v),this._flags.in_case=!0;return}if((this._flags.last_token.type===ne.COMMA||this._flags.last_token.type===ne.START_EXPR||this._flags.last_token.type===ne.EQUALS||this._flags.last_token.type===ne.OPERATOR)&&!this.start_of_object_property()&&!(M(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===pe.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(v),S(v,"function")){(M(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(M(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===ne.OPERATOR))&&!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===ne.RESERVED||this._flags.last_token.type===ne.WORD?te(this._flags.last_token,["get","set","new","export"])||te(this._flags.last_token,g)?this._output.space_before_token=!0:S(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===ne.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(W(this._flags.mode)||N(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var ce="NONE";if(this._flags.last_token.type===ne.END_BLOCK?this._previous_flags.inline_frame?ce="SPACE":te(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?ce="NEWLINE":(ce="SPACE",this._output.space_before_token=!0):ce="NEWLINE":this._flags.last_token.type===ne.SEMICOLON&&this._flags.mode===pe.BlockStatement?ce="NEWLINE":this._flags.last_token.type===ne.SEMICOLON&&W(this._flags.mode)?ce="SPACE":this._flags.last_token.type===ne.STRING?ce="NEWLINE":this._flags.last_token.type===ne.RESERVED||this._flags.last_token.type===ne.WORD||this._flags.last_token.text==="*"&&(M(this._last_last_text,["function","yield"])||this._flags.mode===pe.ObjectLiteral&&M(this._last_last_text,["{",","]))?ce="SPACE":this._flags.last_token.type===ne.START_BLOCK?this._flags.inline_frame?ce="SPACE":ce="NEWLINE":this._flags.last_token.type===ne.END_EXPR&&(this._output.space_before_token=!0,ce="NEWLINE"),te(v,U)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ce="SPACE":ce="NEWLINE"),te(v,["else","catch","finally"]))if((!(this._flags.last_token.type===ne.END_BLOCK&&this._previous_flags.mode===pe.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var je=this._output.current_line;je.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ce==="NEWLINE"?te(this._flags.last_token,X)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&te(v,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==ne.END_EXPR?(this._flags.last_token.type!==ne.START_EXPR||!te(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(S(v,"if")&&S(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):te(v,U)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&N(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ce==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===ne.WORD||v.previous.type===ne.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===ne.RESERVED&&(v.text==="do"?this._flags.do_block=!0:v.text==="if"?this._flags.if_block=!0:v.text==="import"?this._flags.import_block=!0:this._flags.import_block&&S(v,"from")&&(this._flags.import_block=!1))},Q.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var z=this._tokens.peek();this._flags.mode===pe.Statement&&!(this._flags.if_block&&S(z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},Q.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===ne.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),this._flags.last_token.type===ne.RESERVED||this._flags.last_token.type===ne.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===ne.COMMA||this._flags.last_token.type===ne.START_EXPR||this._flags.last_token.type===ne.EQUALS||this._flags.last_token.type===ne.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v):v.text.startsWith("`")&&this._flags.last_token.type===ne.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},Q.prototype.handle_equals=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0},Q.prototype.handle_comma=function(v){this.handle_whitespace_and_comments(v,!0),this.print_token(v),this._output.space_before_token=!0,this._flags.declaration_statement?(W(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(v)):this._flags.mode===pe.ObjectLiteral||this._flags.mode===pe.Statement&&this._flags.parent.mode===pe.ObjectLiteral?(this._flags.mode===pe.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)},Q.prototype.handle_operator=function(v){var z=v.text==="*"&&(te(this._flags.last_token,["function","yield"])||M(this._flags.last_token.type,[ne.START_BLOCK,ne.COMMA,ne.END_BLOCK,ne.SEMICOLON])),ce=M(v.text,["-","+"])&&(M(this._flags.last_token.type,[ne.START_BLOCK,ne.START_EXPR,ne.EQUALS,ne.OPERATOR])||M(this._flags.last_token.text,U)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var je=!z;this.handle_whitespace_and_comments(v,je)}if(v.text==="*"&&this._flags.last_token.type===ne.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(M(v.text,["-","+"])&&this.start_of_object_property()){this.print_token(v);return}if(this._flags.last_token.type===ne.OPERATOR&&M(this._options.operator_position,ue)&&this.allow_wrap_or_preserved_newline(v),v.text===":"&&this._flags.in_case){this.print_token(v),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==ne.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 Ye=!0,It=!0,bt=!1;if(v.text===":"?this._flags.ternary_depth===0?Ye=!1:(this._flags.ternary_depth-=1,bt=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!ce&&!z&&this._options.preserve_newlines&&M(v.text,Y)){var $t=v.text===":",Bt=$t&&bt,Oe=$t&&!bt;switch(this._options.operator_position){case q.before_newline:this._output.space_before_token=!Oe,this.print_token(v),(!$t||Bt)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case q.after_newline:this._output.space_before_token=!0,!$t||Bt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(v):this._output.space_before_token=!1,this.print_token(v),this._output.space_before_token=!0;return;case q.preserve_newline:Oe||this.allow_wrap_or_preserved_newline(v),Ye=!(this._output.just_added_newline()||Oe),this._output.space_before_token=Ye,this.print_token(v),this._output.space_before_token=!0;return}}if(z){this.allow_wrap_or_preserved_newline(v),Ye=!1;var jt=this._tokens.peek();It=jt&&M(jt.type,[ne.WORD,ne.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),Ye=this._flags.last_token.type===ne.START_BLOCK,It=!1;else if(M(v.text,["--","++","!","~"])||ce){if((this._flags.last_token.type===ne.COMMA||this._flags.last_token.type===ne.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),Ye=!1,It=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var En=te(this._flags.last_token,X)&&v.newlines;En&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(En,!0)}this._flags.last_token.text===";"&&W(this._flags.mode)&&(Ye=!0),this._flags.last_token.type===ne.RESERVED?Ye=!0:this._flags.last_token.type===ne.END_EXPR?Ye=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===ne.OPERATOR&&(Ye=M(v.text,["--","-","++","+"])&&M(this._flags.last_token.text,["--","-","++","+"]),M(v.text,["+","-"])&&M(this._flags.last_token.text,["--","++"])&&(It=!0)),(this._flags.mode===pe.BlockStatement&&!this._flags.inline_frame||this._flags.mode===pe.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ye,this.print_token(v),this._output.space_before_token=It},Q.prototype.handle_block_comment=function(v,z){if(this._output.raw){this._output.add_raw_token(v),v.directives&&v.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(v.directives){this.print_newline(!1,z),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!y.newline.test(v.text)&&!v.newlines){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0;return}else this.print_block_commment(v,z)},Q.prototype.print_block_commment=function(v,z){var ce=G(v.text),je,Ye=!1,It=!1,bt=v.whitespace_before,$t=bt.length;if(this.print_newline(!1,z),this.print_token_line_indentation(v),this._output.add_token(ce[0]),this.print_newline(!1,z),ce.length>1){for(ce=ce.slice(1),Ye=$(ce,"*"),It=ie(ce,bt),Ye&&(this._flags.alignment=1),je=0;je<ce.length;je++)Ye?(this.print_token_line_indentation(v),this._output.add_token(F(ce[je]))):It&&ce[je]?(this.print_token_line_indentation(v),this._output.add_token(ce[je].substring($t))):(this._output.current_line.set_indent(-1),this._output.add_token(ce[je])),this.print_newline(!1,z);this._flags.alignment=0}},Q.prototype.handle_comment=function(v,z){v.newlines?this.print_newline(!1,z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(v),this.print_newline(!1,z)},Q.prototype.handle_dot=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),te(this._flags.last_token,X)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(v,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(v)},Q.prototype.handle_unknown=function(v,z){this.print_token(v),v.text[v.text.length-1]===`
|
|
`&&this.print_newline(!1,z)},Q.prototype.handle_eof=function(v){for(;this._flags.mode===pe.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v)},oe.exports.Beautifier=Q},function(oe){function o(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var m=new o(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},o.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},o.prototype.has_match=function(m){for(var y=this.__items.length-1;y>=0;y--)if(this.__items[y].match(m))return!0;return!1},o.prototype.set_indent=function(m,y){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=y||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 m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},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(m){this.__items.push(m);var y=m.lastIndexOf(`
|
|
`);y!==-1?this.__character_count=m.length-y:this.__character_count+=m.length},o.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},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 m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function b(m,y){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),y=y||"",m.indent_level>0&&(y=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=y,this.__base_string_length=y.length}b.prototype.get_indent_size=function(m,y){var x=this.__base_string_length;return y=y||0,m<0&&(x=0),x+=m*this.__indent_size,x+=y,x},b.prototype.get_indent_string=function(m,y){var x=this.__base_string;return y=y||0,m<0&&(m=0,x=""),y+=m*this.__indent_size,this.__ensure_cache(y),x+=this.__cache[y],x},b.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},b.prototype.__add_column=function(){var m=this.__cache.length,y=0,x="";this.__indent_size&&m>=this.__indent_size&&(y=Math.floor(m/this.__indent_size),m-=y*this.__indent_size,x=new Array(y+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function T(m,y){this.__indent_cache=new b(m,y),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(m,y){return this.__indent_cache.get_indent_string(m,y)},T.prototype.get_indent_size=function(m,y){return this.__indent_cache.get_indent_size(m,y)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(m){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 x=this.__lines.join(`
|
|
`);return m!==`
|
|
`&&(x=x.replace(/[\n]/g,m)),x},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(m,y){return m=m||0,y=y||0,this.next_line.set_indent(m,y),this.__lines.length>1?(this.current_line.set_indent(m,y),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(m){for(var y=0;y<m.newlines;y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.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(" "))},T.prototype.remove_indent=function(m){for(var y=this.__lines.length;m<y;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},T.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(m,y){for(var x=this.__lines.length-2;x>=0;){var L=this.__lines[x];if(L.is_empty())break;if(L.item(0).indexOf(m)!==0&&L.item(-1)!==y){this.__lines.splice(x+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},oe.exports.Output=T},function(oe){function o(b,T,m,y){this.type=b,this.text=T,this.comments_before=null,this.newlines=m||0,this.whitespace_before=y||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}oe.exports.Token=o},function(oe,o){var b="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",T="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",m="\\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\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-\\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",y="\\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",x="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",L="(?:"+x+"|["+b+m+"])",U="(?:"+x+"|["+T+m+y+"])*";o.identifier=new RegExp(L+U,"g"),o.identifierStart=new RegExp(L),o.identifierMatch=new RegExp("(?:"+x+"|["+T+m+y+"])+");var Y=/[\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(oe,o,b){var T=b(6).Options,m=["before-newline","after-newline","preserve-newline"];function y(x){T.call(this,x,"js");var L=this.raw_options.brace_style||null;L==="expand-strict"?this.raw_options.brace_style="expand":L==="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 U=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var Y=0;Y<U.length;Y++)U[Y]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=U[Y];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",m),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}y.prototype=new T,oe.exports.Options=y},function(oe){function o(m,y){this.raw_options=b(m,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"])}o.prototype._get_array=function(m,y){var x=this.raw_options[m],L=y||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(L=x.concat()):typeof x=="string"&&(L=x.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(m,y){var x=this.raw_options[m],L=x===void 0?!!y:!!x;return L},o.prototype._get_characters=function(m,y){var x=this.raw_options[m],L=y||"";return typeof x=="string"&&(L=x.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),L},o.prototype._get_number=function(m,y){var x=this.raw_options[m];y=parseInt(y,10),isNaN(y)&&(y=0);var L=parseInt(x,10);return isNaN(L)&&(L=y),L},o.prototype._get_selection=function(m,y,x){var L=this._get_selection_list(m,y,x);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L[0]},o.prototype._get_selection_list=function(m,y,x){if(!y||y.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[y[0]],!this._is_valid_selection(x,y))throw new Error("Invalid Default Value!");var L=this._get_array(m,x);if(!this._is_valid_selection(L,y))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L},o.prototype._is_valid_selection=function(m,y){return m.length&&y.length&&!m.some(function(x){return y.indexOf(x)===-1})};function b(m,y){var x={};m=T(m);var L;for(L in m)L!==y&&(x[L]=m[L]);if(y&&m[y])for(L in m[y])x[L]=m[y][L];return x}function T(m){var y={},x;for(x in m){var L=x.replace(/-/g,"_");y[L]=m[x]}return y}oe.exports.Options=o,oe.exports.normalizeOpts=T,oe.exports.mergeOpts=b},function(oe,o,b){var T=b(8).InputScanner,m=b(9).Tokenizer,y=b(9).TOKEN,x=b(13).Directives,L=b(4),U=b(12).Pattern,Y=b(14).TemplatablePattern;function ne($,ie){return ie.indexOf($)!==-1}var M={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:y.START,RAW:y.RAW,EOF:y.EOF},F=new x(/\/\*/,/\*\//),D=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,S=/[0-9]/,te=/[^\d\.]/,X=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),j=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";j=j.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),j="\\?\\.(?!\\d) "+j,j=j.replace(/ /g,"|");var q=new RegExp(j),ue="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),pe=ue.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),We=new RegExp("^(?:"+pe.join("|")+")$"),G,N=function($,ie){m.call(this,$,ie),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var Q=new U(this._input),g=new Y(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(L.identifier).matching(L.identifierMatch),number:Q.matching(D),punct:Q.matching(q),comment:Q.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:Q.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:Q.matching(/<!--/),html_comment_end:Q.matching(/-->/),include:Q.starting_with(/#include/).until_after(L.lineBreak),shebang:Q.starting_with(/#!/).until_after(L.lineBreak),xml:Q.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:g.until(/['\\\n\r\u2028\u2029]/),double_quote:g.until(/["\\\n\r\u2028\u2029]/),template_text:g.until(/[`\\$]/),template_expression:g.until(/[`}\\]/)}};N.prototype=new m,N.prototype._is_comment=function($){return $.type===M.COMMENT||$.type===M.BLOCK_COMMENT||$.type===M.UNKNOWN},N.prototype._is_opening=function($){return $.type===M.START_BLOCK||$.type===M.START_EXPR},N.prototype._is_closing=function($,ie){return($.type===M.END_BLOCK||$.type===M.END_EXPR)&&ie&&($.text==="]"&&ie.text==="["||$.text===")"&&ie.text==="("||$.text==="}"&&ie.text==="{")},N.prototype._reset=function(){G=!1},N.prototype._get_next_token=function($,ie){var Q=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(M.EOF,""):(Q=Q||this._read_non_javascript(g),Q=Q||this._read_string(g),Q=Q||this._read_pair(g,this._input.peek(1)),Q=Q||this._read_word($),Q=Q||this._read_singles(g),Q=Q||this._read_comment(g),Q=Q||this._read_regexp(g,$),Q=Q||this._read_xml(g,$),Q=Q||this._read_punctuation(),Q=Q||this._create_token(M.UNKNOWN,this._input.next()),Q)},N.prototype._read_word=function($){var ie;if(ie=this.__patterns.identifier.read(),ie!=="")return ie=ie.replace(L.allLineBreaks,`
|
|
`),!($.type===M.DOT||$.type===M.RESERVED&&($.text==="set"||$.text==="get"))&&We.test(ie)?(ie==="in"||ie==="of")&&($.type===M.WORD||$.type===M.STRING)?this._create_token(M.OPERATOR,ie):this._create_token(M.RESERVED,ie):this._create_token(M.WORD,ie);if(ie=this.__patterns.number.read(),ie!=="")return this._create_token(M.WORD,ie)},N.prototype._read_singles=function($){var ie=null;return $==="("||$==="["?ie=this._create_token(M.START_EXPR,$):$===")"||$==="]"?ie=this._create_token(M.END_EXPR,$):$==="{"?ie=this._create_token(M.START_BLOCK,$):$==="}"?ie=this._create_token(M.END_BLOCK,$):$===";"?ie=this._create_token(M.SEMICOLON,$):$==="."&&te.test(this._input.peek(1))?ie=this._create_token(M.DOT,$):$===","&&(ie=this._create_token(M.COMMA,$)),ie&&this._input.next(),ie},N.prototype._read_pair=function($,ie){var Q=null;return $==="#"&&ie==="{"&&(Q=this._create_token(M.START_BLOCK,$+ie)),Q&&(this._input.next(),this._input.next()),Q},N.prototype._read_punctuation=function(){var $=this.__patterns.punct.read();if($!=="")return $==="="?this._create_token(M.EQUALS,$):$==="?."?this._create_token(M.DOT,$):this._create_token(M.OPERATOR,$)},N.prototype._read_non_javascript=function($){var ie="";if($==="#"){if(this._is_first_token()&&(ie=this.__patterns.shebang.read(),ie))return this._create_token(M.UNKNOWN,ie.trim()+`
|
|
`);if(ie=this.__patterns.include.read(),ie)return this._create_token(M.UNKNOWN,ie.trim()+`
|
|
`);$=this._input.next();var Q="#";if(this._input.hasNext()&&this._input.testChar(S)){do $=this._input.next(),Q+=$;while(this._input.hasNext()&&$!=="#"&&$!=="=");return $==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(Q+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(Q+="{}",this._input.next(),this._input.next())),this._create_token(M.WORD,Q)}this._input.back()}else if($==="<"&&this._is_first_token()){if(ie=this.__patterns.html_comment_start.read(),ie){for(;this._input.hasNext()&&!this._input.testChar(L.newline);)ie+=this._input.next();return G=!0,this._create_token(M.COMMENT,ie)}}else if(G&&$==="-"&&(ie=this.__patterns.html_comment_end.read(),ie))return G=!1,this._create_token(M.COMMENT,ie);return null},N.prototype._read_comment=function($){var ie=null;if($==="/"){var Q="";if(this._input.peek(1)==="*"){Q=this.__patterns.block_comment.read();var g=F.get_directives(Q);g&&g.ignore==="start"&&(Q+=F.readIgnored(this._input)),Q=Q.replace(L.allLineBreaks,`
|
|
`),ie=this._create_token(M.BLOCK_COMMENT,Q),ie.directives=g}else this._input.peek(1)==="/"&&(Q=this.__patterns.comment.read(),ie=this._create_token(M.COMMENT,Q))}return ie},N.prototype._read_string=function($){if($==="`"||$==="'"||$==='"'){var ie=this._input.next();return this.has_char_escapes=!1,$==="`"?ie+=this._read_string_recursive("`",!0,"${"):ie+=this._read_string_recursive($),this.has_char_escapes&&this._options.unescape_strings&&(ie=W(ie)),this._input.peek()===$&&(ie+=this._input.next()),ie=ie.replace(L.allLineBreaks,`
|
|
`),this._create_token(M.STRING,ie)}return null},N.prototype._allow_regexp_or_xml=function($){return $.type===M.RESERVED&&ne($.text,["return","case","throw","else","do","typeof","yield"])||$.type===M.END_EXPR&&$.text===")"&&$.opened.previous.type===M.RESERVED&&ne($.opened.previous.text,["if","while","for"])||ne($.type,[M.COMMENT,M.START_EXPR,M.START_BLOCK,M.START,M.END_BLOCK,M.OPERATOR,M.EQUALS,M.EOF,M.SEMICOLON,M.COMMA])},N.prototype._read_regexp=function($,ie){if($==="/"&&this._allow_regexp_or_xml(ie)){for(var Q=this._input.next(),g=!1,v=!1;this._input.hasNext()&&(g||v||this._input.peek()!==$)&&!this._input.testChar(L.newline);)Q+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===$&&(Q+=this._input.next(),Q+=this._input.read(L.identifier)),this._create_token(M.STRING,Q)}return null},N.prototype._read_xml=function($,ie){if(this._options.e4x&&$==="<"&&this._allow_regexp_or_xml(ie)){var Q="",g=this.__patterns.xml.read_match();if(g){for(var v=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),z=v.indexOf("{")===0,ce=0;g;){var je=!!g[1],Ye=g[2],It=!!g[g.length-1]||Ye.slice(0,8)==="![CDATA[";if(!It&&(Ye===v||z&&Ye.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(je?--ce:++ce),Q+=g[0],ce<=0)break;g=this.__patterns.xml.read_match()}return g||(Q+=this._input.match(/[\s\S]*/g)[0]),Q=Q.replace(L.allLineBreaks,`
|
|
`),this._create_token(M.STRING,Q)}}return null};function W($){for(var ie="",Q=0,g=new T($),v=null;g.hasNext();)if(v=g.match(/([\s]|[^\\]|\\\\)+/g),v&&(ie+=v[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")v=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")v=g.match(/u([0-9A-Fa-f]{4})/g),v||(v=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{ie+="\\",g.hasNext()&&(ie+=g.next());continue}if(!v||(Q=parseInt(v[1],16),Q>126&&Q<=255&&v[0].indexOf("x")===0))return $;Q>=0&&Q<32||Q>1114111?ie+="\\"+v[0]:Q===34||Q===39||Q===92?ie+="\\"+String.fromCharCode(Q):ie+=String.fromCharCode(Q)}return ie}N.prototype._read_string_recursive=function($,ie,Q){var g,v;$==="'"?v=this.__patterns.single_quote:$==='"'?v=this.__patterns.double_quote:$==="`"?v=this.__patterns.template_text:$==="}"&&(v=this.__patterns.template_expression);for(var z=v.read(),ce="";this._input.hasNext();){if(ce=this._input.next(),ce===$||!ie&&L.newline.test(ce)){this._input.back();break}else ce==="\\"&&this._input.hasNext()?(g=this._input.peek(),g==="x"||g==="u"?this.has_char_escapes=!0:g==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),ce+=this._input.next()):Q&&(Q==="${"&&ce==="$"&&this._input.peek()==="{"&&(ce+=this._input.next()),Q===ce&&($==="`"?ce+=this._read_string_recursive("}",ie,"`"):ce+=this._read_string_recursive("`",ie,"${"),this._input.hasNext()&&(ce+=this._input.next())));ce+=v.read(),z+=ce}return z},oe.exports.Tokenizer=N,oe.exports.TOKEN=M,oe.exports.positionable_operators=X.slice(),oe.exports.line_starters=ue.slice()},function(oe){var o=RegExp.prototype.hasOwnProperty("sticky");function b(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}b.prototype.restart=function(){this.__position=0},b.prototype.back=function(){this.__position>0&&(this.__position-=1)},b.prototype.hasNext=function(){return this.__position<this.__input_length},b.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},b.prototype.peek=function(T){var m=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(m=this.__input.charAt(T)),m},b.prototype.__match=function(T,m){T.lastIndex=m;var y=T.exec(this.__input);return y&&!(o&&T.sticky)&&y.index!==m&&(y=null),y},b.prototype.test=function(T,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(T,m):!1},b.prototype.testChar=function(T,m){var y=this.peek(m);return T.lastIndex=0,y!==null&&T.test(y)},b.prototype.match=function(T){var m=this.__match(T,this.__position);return m?this.__position+=m[0].length:m=null,m},b.prototype.read=function(T,m,y){var x="",L;return T&&(L=this.match(T),L&&(x+=L[0])),m&&(L||!T)&&(x+=this.readUntil(m,y)),x},b.prototype.readUntil=function(T,m){var y="",x=this.__position;T.lastIndex=this.__position;var L=T.exec(this.__input);return L?(x=L.index,m&&(x+=L[0].length)):x=this.__input_length,y=this.__input.substring(this.__position,x),this.__position=x,y},b.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},b.prototype.get_regexp=function(T,m){var y=null,x="g";return m&&o&&(x="y"),typeof T=="string"&&T!==""?y=new RegExp(T,x):T&&(y=new RegExp(T.source,x)),y},b.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},b.prototype.peekUntilAfter=function(T){var m=this.__position,y=this.readUntilAfter(T);return this.__position=m,y},b.prototype.lookBack=function(T){var m=this.__position-1;return m>=T.length&&this.__input.substring(m-T.length,m).toLowerCase()===T},oe.exports.InputScanner=b},function(oe,o,b){var T=b(8).InputScanner,m=b(3).Token,y=b(10).TokenStream,x=b(11).WhitespacePattern,L={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},U=function(Y,ne){this._input=new T(Y),this._options=ne||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new x(this._input)};U.prototype.tokenize=function(){this._input.restart(),this.__tokens=new y,this._reset();for(var Y,ne=new m(L.START,""),M=null,F=[],D=new y;ne.type!==L.EOF;){for(Y=this._get_next_token(ne,M);this._is_comment(Y);)D.add(Y),Y=this._get_next_token(ne,M);D.isEmpty()||(Y.comments_before=D,D=new y),Y.parent=M,this._is_opening(Y)?(F.push(M),M=Y):M&&this._is_closing(Y,M)&&(Y.opened=M,M.closed=Y,M=F.pop(),Y.parent=M),Y.previous=ne,ne.next=Y,this.__tokens.add(Y),ne=Y}return this.__tokens},U.prototype._is_first_token=function(){return this.__tokens.isEmpty()},U.prototype._reset=function(){},U.prototype._get_next_token=function(Y,ne){this._readWhitespace();var M=this._input.read(/.+/g);return M?this._create_token(L.RAW,M):this._create_token(L.EOF,"")},U.prototype._is_comment=function(Y){return!1},U.prototype._is_opening=function(Y){return!1},U.prototype._is_closing=function(Y,ne){return!1},U.prototype._create_token=function(Y,ne){var M=new m(Y,ne,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return M},U.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},oe.exports.Tokenizer=U,oe.exports.TOKEN=L},function(oe){function o(b){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=b}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 b=null;return this.hasNext()&&(b=this.__tokens[this.__position],this.__position+=1),b},o.prototype.peek=function(b){var T=null;return b=b||0,b+=this.__position,b>=0&&b<this.__tokens_length&&(T=this.__tokens[b]),T},o.prototype.add=function(b){this.__parent_token&&(b.parent=this.__parent_token),this.__tokens.push(b),this.__tokens_length+=1},oe.exports.TokenStream=o},function(oe,o,b){var T=b(12).Pattern;function m(y,x){T.call(this,y,x),x?this._line_regexp=this._input.get_regexp(x._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new T,m.prototype.__set_whitespace_patterns=function(y,x){y+="\\t ",x+="\\n\\r",this._match_pattern=this._input.get_regexp("["+y+x+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+x+"]")},m.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 x=this.__split(this._newline_regexp,y);this.newline_count=x.length-1,this.whitespace_before_token=x[this.newline_count]}return y},m.prototype.matching=function(y,x){var L=this._create();return L.__set_whitespace_patterns(y,x),L._update(),L},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(y,x){y.lastIndex=0;for(var L=0,U=[],Y=y.exec(x);Y;)U.push(x.substring(L,Y.index)),L=Y.index+Y[0].length,Y=y.exec(x);return L<x.length?U.push(x.substring(L,x.length)):U.push(""),U},oe.exports.WhitespacePattern=m},function(oe){function o(b,T){this._input=b,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,T&&(this._starting_pattern=this._input.get_regexp(T._starting_pattern,!0),this._match_pattern=this._input.get_regexp(T._match_pattern,!0),this._until_pattern=this._input.get_regexp(T._until_pattern),this._until_after=T._until_after)}o.prototype.read=function(){var b=this._input.read(this._starting_pattern);return(!this._starting_pattern||b)&&(b+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),b},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(b){var T=this._create();return T._until_after=!0,T._until_pattern=this._input.get_regexp(b),T._update(),T},o.prototype.until=function(b){var T=this._create();return T._until_after=!1,T._until_pattern=this._input.get_regexp(b),T._update(),T},o.prototype.starting_with=function(b){var T=this._create();return T._starting_pattern=this._input.get_regexp(b,!0),T._update(),T},o.prototype.matching=function(b){var T=this._create();return T._match_pattern=this._input.get_regexp(b,!0),T._update(),T},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},oe.exports.Pattern=o},function(oe){function o(b,T){b=typeof b=="string"?b:b.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(b+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(b+/\sbeautify\signore:end\s/.source+T,"g")}o.prototype.get_directives=function(b){if(!b.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(b);m;)T[m[1]]=m[2],m=this.__directive_pattern.exec(b);return T},o.prototype.readIgnored=function(b){return b.readUntilAfter(this.__directives_end_ignore_pattern)},oe.exports.Directives=o},function(oe,o,b){var T=b(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function y(x,L){T.call(this,x,L),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),L&&(this.__template_pattern=this._input.get_regexp(L.__template_pattern),this._excluded=Object.assign(this._excluded,L._excluded),this._disabled=Object.assign(this._disabled,L._disabled));var U=new T(x);this.__patterns={handlebars_comment:U.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:U.starting_with(/{{{/).until_after(/}}}/),handlebars:U.starting_with(/{{/).until_after(/}}/),php:U.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:U.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:U.starting_with(/{%/).until_after(/%}/),django_value:U.starting_with(/{{/).until_after(/}}/),django_comment:U.starting_with(/{#/).until_after(/#}/),smarty:U.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:U.starting_with(/{\*/).until_after(/\*}/),smarty_literal:U.starting_with(/{literal}/).until_after(/{\/literal}/)}}y.prototype=new T,y.prototype._create=function(){return new y(this._input,this)},y.prototype._update=function(){this.__set_templated_pattern()},y.prototype.disable=function(x){var L=this._create();return L._disabled[x]=!0,L._update(),L},y.prototype.read_options=function(x){var L=this._create();for(var U in m)L._disabled[U]=x.templating.indexOf(U)===-1;return L._update(),L},y.prototype.exclude=function(x){var L=this._create();return L._excluded[x]=!0,L._update(),L},y.prototype.read=function(){var x="";this._match_pattern?x=this._input.read(this._starting_pattern):x=this._input.read(this._starting_pattern,this.__template_pattern);for(var L=this._read_template();L;)this._match_pattern?L+=this._input.read(this._match_pattern):L+=this._input.readUntil(this.__template_pattern),x+=L,L=this._read_template();return this._until_after&&(x+=this._input.readUntilAfter(this._until_pattern)),x},y.prototype.__set_templated_pattern=function(){var x=[];this._disabled.php||x.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||x.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(x.push(this.__patterns.django._starting_pattern.source),x.push(this.__patterns.django_value._starting_pattern.source),x.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||x.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&x.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+x.join("|")+")")},y.prototype._read_template=function(){var x="",L=this._input.peek();if(L==="<"){var U=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&U==="?"&&(x=x||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&U==="%"&&(x=x||this.__patterns.erb.read())}else L==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(x=x||this.__patterns.handlebars_comment.read(),x=x||this.__patterns.handlebars_unescaped.read(),x=x||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(x=x||this.__patterns.django_value.read()),this._excluded.django||(x=x||this.__patterns.django_comment.read(),x=x||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(x=x||this.__patterns.smarty_comment.read(),x=x||this.__patterns.smarty_literal.read(),x=x||this.__patterns.smarty.read()));return x},oe.exports.TemplatablePattern=y}],O={};function d(oe){var o=O[oe];if(o!==void 0)return o.exports;var b=O[oe]={exports:{}};return ge[oe](b,b.exports,d),b.exports}var ve=d(0);he=ve})();var se=he;w=[],p=function(){return{js_beautify:se}}.apply(Wt,w),p!==void 0&&(In.exports=p)})()},7861:function(In,Wt,w){var p=w(38710),he=function(O){var d=/[height|width]$/;return d.test(O)},se=function(O){var d="",ve=Object.keys(O);return ve.forEach(function(oe,o){var b=O[oe];oe=p(oe),he(oe)&&typeof b=="number"&&(b=b+"px"),b===!0?d+=oe:b===!1?d+="not "+oe:d+="("+oe+": "+b+")",o<ve.length-1&&(d+=" and ")}),d},ge=function(O){var d="";return typeof O=="string"?O:O instanceof Array?(O.forEach(function(ve,oe){d+=se(ve),oe<O.length-1&&(d+=", ")}),d):se(O)};In.exports=ge},32834:function(In){(function(Wt,w){In.exports=w()})(this,function(){"use strict";function Wt(Be,ke){for(var Ne=0;Ne<ke.length;Ne++){var k=ke[Ne];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(Be,k.key,k)}}function w(Be,ke,Ne){return ke&&Wt(Be.prototype,ke),Ne&&Wt(Be,Ne),Be}function p(Be,ke){if(Be){if(typeof Be=="string")return he(Be,ke);var Ne=Object.prototype.toString.call(Be).slice(8,-1);if(Ne==="Object"&&Be.constructor&&(Ne=Be.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(Be);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return he(Be,ke)}}function he(Be,ke){(ke==null||ke>Be.length)&&(ke=Be.length);for(var Ne=0,k=new Array(ke);Ne<ke;Ne++)k[Ne]=Be[Ne];return k}function se(Be,ke){var Ne=typeof Symbol!="undefined"&&Be[Symbol.iterator]||Be["@@iterator"];if(Ne)return(Ne=Ne.call(Be)).next.bind(Ne);if(Array.isArray(Be)||(Ne=p(Be))||ke&&Be&&typeof Be.length=="number"){Ne&&(Be=Ne);var k=0;return function(){return k>=Be.length?{done:!0}:{done:!1,value:Be[k++]}}}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 ge={exports:{}};function O(){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 d(Be){ge.exports.defaults=Be}ge.exports={defaults:O(),getDefaults:O,changeDefaults:d};var ve=/[&<>"']/,oe=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,b=/[<>"']|&(?!#?\w+;)/g,T={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(ke){return T[ke]};function y(Be,ke){if(ke){if(ve.test(Be))return Be.replace(oe,m)}else if(o.test(Be))return Be.replace(b,m);return Be}var x=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function L(Be){return Be.replace(x,function(ke,Ne){return Ne=Ne.toLowerCase(),Ne==="colon"?":":Ne.charAt(0)==="#"?Ne.charAt(1)==="x"?String.fromCharCode(parseInt(Ne.substring(2),16)):String.fromCharCode(+Ne.substring(1)):""})}var U=/(^|[^\[])\^/g;function Y(Be,ke){Be=Be.source||Be,ke=ke||"";var Ne={replace:function(ae,fe){return fe=fe.source||fe,fe=fe.replace(U,"$1"),Be=Be.replace(ae,fe),Ne},getRegex:function(){return new RegExp(Be,ke)}};return Ne}var ne=/[^\w:]/g,M=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function F(Be,ke,Ne){if(Be){var k;try{k=decodeURIComponent(L(Ne)).replace(ne,"").toLowerCase()}catch(ae){return null}if(k.indexOf("javascript:")===0||k.indexOf("vbscript:")===0||k.indexOf("data:")===0)return null}ke&&!M.test(Ne)&&(Ne=j(ke,Ne));try{Ne=encodeURI(Ne).replace(/%25/g,"%")}catch(ae){return null}return Ne}var D={},S=/^[^:]+:\/*[^/]*$/,te=/^([^:]+:)[\s\S]*$/,X=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(Be,ke){D[" "+Be]||(S.test(Be)?D[" "+Be]=Be+"/":D[" "+Be]=We(Be,"/",!0)),Be=D[" "+Be];var Ne=Be.indexOf(":")===-1;return ke.substring(0,2)==="//"?Ne?ke:Be.replace(te,"$1")+ke:ke.charAt(0)==="/"?Ne?ke:Be.replace(X,"$1")+ke:Be+ke}var q={exec:function(){}};function ue(Be){for(var ke=1,Ne,k;ke<arguments.length;ke++){Ne=arguments[ke];for(k in Ne)Object.prototype.hasOwnProperty.call(Ne,k)&&(Be[k]=Ne[k])}return Be}function pe(Be,ke){var Ne=Be.replace(/\|/g,function(fe,re,Se){for(var Mt=!1,Rt=re;--Rt>=0&&Se[Rt]==="\\";)Mt=!Mt;return Mt?"|":" |"}),k=Ne.split(/ \|/),ae=0;if(k.length>ke)k.splice(ke);else for(;k.length<ke;)k.push("");for(;ae<k.length;ae++)k[ae]=k[ae].trim().replace(/\\\|/g,"|");return k}function We(Be,ke,Ne){var k=Be.length;if(k===0)return"";for(var ae=0;ae<k;){var fe=Be.charAt(k-ae-1);if(fe===ke&&!Ne)ae++;else if(fe!==ke&&Ne)ae++;else break}return Be.substr(0,k-ae)}function G(Be,ke){if(Be.indexOf(ke[1])===-1)return-1;for(var Ne=Be.length,k=0,ae=0;ae<Ne;ae++)if(Be[ae]==="\\")ae++;else if(Be[ae]===ke[0])k++;else if(Be[ae]===ke[1]&&(k--,k<0))return ae;return-1}function N(Be){Be&&Be.sanitize&&!Be.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 W(Be,ke){if(ke<1)return"";for(var Ne="";ke>1;)ke&1&&(Ne+=Be),ke>>=1,Be+=Be;return Ne+Be}var $={escape:y,unescape:L,edit:Y,cleanUrl:F,resolveUrl:j,noopTest:q,merge:ue,splitCells:pe,rtrim:We,findClosingBracket:G,checkSanitizeDeprecation:N,repeatString:W},ie=ge.exports.defaults,Q=$.rtrim,g=$.splitCells,v=$.escape,z=$.findClosingBracket;function ce(Be,ke,Ne){var k=ke.href,ae=ke.title?v(ke.title):null,fe=Be[1].replace(/\\([\[\]])/g,"$1");return Be[0].charAt(0)!=="!"?{type:"link",raw:Ne,href:k,title:ae,text:fe}:{type:"image",raw:Ne,href:k,title:ae,text:v(fe)}}function je(Be,ke){var Ne=Be.match(/^(\s+)(?:```)/);if(Ne===null)return ke;var k=Ne[1];return ke.split(`
|
|
`).map(function(ae){var fe=ae.match(/^\s+/);if(fe===null)return ae;var re=fe[0];return re.length>=k.length?ae.slice(k.length):ae}).join(`
|
|
`)}var Ye=function(){function Be(Ne){this.options=Ne||ie}var ke=Be.prototype;return ke.space=function(k){var ae=this.rules.block.newline.exec(k);if(ae)return ae[0].length>1?{type:"space",raw:ae[0]}:{raw:`
|
|
`}},ke.code=function(k){var ae=this.rules.block.code.exec(k);if(ae){var fe=ae[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ae[0],codeBlockStyle:"indented",text:this.options.pedantic?fe:Q(fe,`
|
|
`)}}},ke.fences=function(k){var ae=this.rules.block.fences.exec(k);if(ae){var fe=ae[0],re=je(fe,ae[3]||"");return{type:"code",raw:fe,lang:ae[2]?ae[2].trim():ae[2],text:re}}},ke.heading=function(k){var ae=this.rules.block.heading.exec(k);if(ae){var fe=ae[2].trim();if(/#$/.test(fe)){var re=Q(fe,"#");(this.options.pedantic||!re||/ $/.test(re))&&(fe=re.trim())}return{type:"heading",raw:ae[0],depth:ae[1].length,text:fe}}},ke.nptable=function(k){var ae=this.rules.block.nptable.exec(k);if(ae){var fe={type:"table",header:g(ae[1].replace(/^ *| *\| *$/g,"")),align:ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ae[3]?ae[3].replace(/\n$/,"").split(`
|
|
`):[],raw:ae[0]};if(fe.header.length===fe.align.length){var re=fe.align.length,Se;for(Se=0;Se<re;Se++)/^ *-+: *$/.test(fe.align[Se])?fe.align[Se]="right":/^ *:-+: *$/.test(fe.align[Se])?fe.align[Se]="center":/^ *:-+ *$/.test(fe.align[Se])?fe.align[Se]="left":fe.align[Se]=null;for(re=fe.cells.length,Se=0;Se<re;Se++)fe.cells[Se]=g(fe.cells[Se],fe.header.length);return fe}}},ke.hr=function(k){var ae=this.rules.block.hr.exec(k);if(ae)return{type:"hr",raw:ae[0]}},ke.blockquote=function(k){var ae=this.rules.block.blockquote.exec(k);if(ae){var fe=ae[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ae[0],text:fe}}},ke.list=function(k){var ae=this.rules.block.list.exec(k);if(ae){var fe=ae[0],re=ae[2],Se=re.length>1,Mt={type:"list",raw:fe,ordered:Se,start:Se?+re.slice(0,-1):"",loose:!1,items:[]},Rt=ae[0].match(this.rules.block.item),Ut=!1,hn,Le,_,H,E,Ie,Ee,we,Ze,ut=Rt.length;_=this.rules.block.listItemStart.exec(Rt[0]);for(var kt=0;kt<ut;kt++){if(hn=Rt[kt],fe=hn,this.options.pedantic||(Ze=hn.match(new RegExp("\\n\\s*\\n {0,"+(_[0].length-1)+"}\\S")),Ze&&(E=hn.length-Ze.index+Rt.slice(kt+1).join(`
|
|
`).length,Mt.raw=Mt.raw.substring(0,Mt.raw.length-E),hn=hn.substring(0,Ze.index),fe=hn,ut=kt+1)),kt!==ut-1){if(H=this.rules.block.listItemStart.exec(Rt[kt+1]),this.options.pedantic?H[1].length>_[1].length:H[1].length>=_[0].length||H[1].length>3){Rt.splice(kt,2,Rt[kt]+(!this.options.pedantic&&H[1].length<_[0].length&&!Rt[kt].match(/\n$/)?"":`
|
|
`)+Rt[kt+1]),kt--,ut--;continue}else(!this.options.pedantic||this.options.smartLists?H[2][H[2].length-1]!==re[re.length-1]:Se===(H[2].length===1))&&(E=Rt.slice(kt+1).join(`
|
|
`).length,Mt.raw=Mt.raw.substring(0,Mt.raw.length-E),kt=ut-1);_=H}Le=hn.length,hn=hn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~hn.indexOf(`
|
|
`)&&(Le-=hn.length,hn=this.options.pedantic?hn.replace(/^ {1,4}/gm,""):hn.replace(new RegExp("^ {1,"+Le+"}","gm"),"")),hn=Q(hn,`
|
|
`),kt!==ut-1&&(fe=fe+`
|
|
`),Ie=Ut||/\n\n(?!\s*$)/.test(fe),kt!==ut-1&&(Ut=fe.slice(-2)===`
|
|
|
|
`,Ie||(Ie=Ut)),Ie&&(Mt.loose=!0),this.options.gfm&&(Ee=/^\[[ xX]\] /.test(hn),we=void 0,Ee&&(we=hn[1]!==" ",hn=hn.replace(/^\[[ xX]\] +/,""))),Mt.items.push({type:"list_item",raw:fe,task:Ee,checked:we,loose:Ie,text:hn})}return Mt}},ke.html=function(k){var ae=this.rules.block.html.exec(k);if(ae)return{type:this.options.sanitize?"paragraph":"html",raw:ae[0],pre:!this.options.sanitizer&&(ae[1]==="pre"||ae[1]==="script"||ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):v(ae[0]):ae[0]}},ke.def=function(k){var ae=this.rules.block.def.exec(k);if(ae){ae[3]&&(ae[3]=ae[3].substring(1,ae[3].length-1));var fe=ae[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:fe,raw:ae[0],href:ae[2],title:ae[3]}}},ke.table=function(k){var ae=this.rules.block.table.exec(k);if(ae){var fe={type:"table",header:g(ae[1].replace(/^ *| *\| *$/g,"")),align:ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ae[3]?ae[3].replace(/\n$/,"").split(`
|
|
`):[]};if(fe.header.length===fe.align.length){fe.raw=ae[0];var re=fe.align.length,Se;for(Se=0;Se<re;Se++)/^ *-+: *$/.test(fe.align[Se])?fe.align[Se]="right":/^ *:-+: *$/.test(fe.align[Se])?fe.align[Se]="center":/^ *:-+ *$/.test(fe.align[Se])?fe.align[Se]="left":fe.align[Se]=null;for(re=fe.cells.length,Se=0;Se<re;Se++)fe.cells[Se]=g(fe.cells[Se].replace(/^ *\| *| *\| *$/g,""),fe.header.length);return fe}}},ke.lheading=function(k){var ae=this.rules.block.lheading.exec(k);if(ae)return{type:"heading",raw:ae[0],depth:ae[2].charAt(0)==="="?1:2,text:ae[1]}},ke.paragraph=function(k){var ae=this.rules.block.paragraph.exec(k);if(ae)return{type:"paragraph",raw:ae[0],text:ae[1].charAt(ae[1].length-1)===`
|
|
`?ae[1].slice(0,-1):ae[1]}},ke.text=function(k){var ae=this.rules.block.text.exec(k);if(ae)return{type:"text",raw:ae[0],text:ae[0]}},ke.escape=function(k){var ae=this.rules.inline.escape.exec(k);if(ae)return{type:"escape",raw:ae[0],text:v(ae[1])}},ke.tag=function(k,ae,fe){var re=this.rules.inline.tag.exec(k);if(re)return!ae&&/^<a /i.test(re[0])?ae=!0:ae&&/^<\/a>/i.test(re[0])&&(ae=!1),!fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(re[0])?fe=!0:fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(re[0])&&(fe=!1),{type:this.options.sanitize?"text":"html",raw:re[0],inLink:ae,inRawBlock:fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(re[0]):v(re[0]):re[0]}},ke.link=function(k){var ae=this.rules.inline.link.exec(k);if(ae){var fe=ae[2].trim();if(!this.options.pedantic&&/^</.test(fe)){if(!/>$/.test(fe))return;var re=Q(fe.slice(0,-1),"\\");if((fe.length-re.length)%2===0)return}else{var Se=z(ae[2],"()");if(Se>-1){var Mt=ae[0].indexOf("!")===0?5:4,Rt=Mt+ae[1].length+Se;ae[2]=ae[2].substring(0,Se),ae[0]=ae[0].substring(0,Rt).trim(),ae[3]=""}}var Ut=ae[2],hn="";if(this.options.pedantic){var Le=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ut);Le&&(Ut=Le[1],hn=Le[3])}else hn=ae[3]?ae[3].slice(1,-1):"";return Ut=Ut.trim(),/^</.test(Ut)&&(this.options.pedantic&&!/>$/.test(fe)?Ut=Ut.slice(1):Ut=Ut.slice(1,-1)),ce(ae,{href:Ut&&Ut.replace(this.rules.inline._escapes,"$1"),title:hn&&hn.replace(this.rules.inline._escapes,"$1")},ae[0])}},ke.reflink=function(k,ae){var fe;if((fe=this.rules.inline.reflink.exec(k))||(fe=this.rules.inline.nolink.exec(k))){var re=(fe[2]||fe[1]).replace(/\s+/g," ");if(re=ae[re.toLowerCase()],!re||!re.href){var Se=fe[0].charAt(0);return{type:"text",raw:Se,text:Se}}return ce(fe,re,fe[0])}},ke.emStrong=function(k,ae,fe){fe===void 0&&(fe="");var re=this.rules.inline.emStrong.lDelim.exec(k);if(re&&!(re[3]&&fe.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0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30-\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\uD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||"";if(!Se||Se&&(fe===""||this.rules.inline.punctuation.exec(fe))){var Mt=re[0].length-1,Rt,Ut,hn=Mt,Le=0,_=re[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(_.lastIndex=0,ae=ae.slice(-1*k.length+Mt);(re=_.exec(ae))!=null;)if(Rt=re[1]||re[2]||re[3]||re[4]||re[5]||re[6],!!Rt){if(Ut=Rt.length,re[3]||re[4]){hn+=Ut;continue}else if((re[5]||re[6])&&Mt%3&&!((Mt+Ut)%3)){Le+=Ut;continue}if(hn-=Ut,!(hn>0))return Ut=Math.min(Ut,Ut+hn+Le),Math.min(Mt,Ut)%2?{type:"em",raw:k.slice(0,Mt+re.index+Ut+1),text:k.slice(1,Mt+re.index+Ut)}:{type:"strong",raw:k.slice(0,Mt+re.index+Ut+1),text:k.slice(2,Mt+re.index+Ut-1)}}}}},ke.codespan=function(k){var ae=this.rules.inline.code.exec(k);if(ae){var fe=ae[2].replace(/\n/g," "),re=/[^ ]/.test(fe),Se=/^ /.test(fe)&&/ $/.test(fe);return re&&Se&&(fe=fe.substring(1,fe.length-1)),fe=v(fe,!0),{type:"codespan",raw:ae[0],text:fe}}},ke.br=function(k){var ae=this.rules.inline.br.exec(k);if(ae)return{type:"br",raw:ae[0]}},ke.del=function(k){var ae=this.rules.inline.del.exec(k);if(ae)return{type:"del",raw:ae[0],text:ae[2]}},ke.autolink=function(k,ae){var fe=this.rules.inline.autolink.exec(k);if(fe){var re,Se;return fe[2]==="@"?(re=v(this.options.mangle?ae(fe[1]):fe[1]),Se="mailto:"+re):(re=v(fe[1]),Se=re),{type:"link",raw:fe[0],text:re,href:Se,tokens:[{type:"text",raw:re,text:re}]}}},ke.url=function(k,ae){var fe;if(fe=this.rules.inline.url.exec(k)){var re,Se;if(fe[2]==="@")re=v(this.options.mangle?ae(fe[0]):fe[0]),Se="mailto:"+re;else{var Mt;do Mt=fe[0],fe[0]=this.rules.inline._backpedal.exec(fe[0])[0];while(Mt!==fe[0]);re=v(fe[0]),fe[1]==="www."?Se="http://"+re:Se=re}return{type:"link",raw:fe[0],text:re,href:Se,tokens:[{type:"text",raw:re,text:re}]}}},ke.inlineText=function(k,ae,fe){var re=this.rules.inline.text.exec(k);if(re){var Se;return ae?Se=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(re[0]):v(re[0]):re[0]:Se=v(this.options.smartypants?fe(re[0]):re[0]),{type:"text",raw:re[0],text:Se}}},Be}(),It=$.noopTest,bt=$.edit,$t=$.merge,Bt={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:It,table:It,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Bt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Bt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Bt.def=bt(Bt.def).replace("label",Bt._label).replace("title",Bt._title).getRegex(),Bt.bullet=/(?:[*+-]|\d{1,9}[.)])/,Bt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Bt.item=bt(Bt.item,"gm").replace(/bull/g,Bt.bullet).getRegex(),Bt.listItemStart=bt(/^( *)(bull) */).replace("bull",Bt.bullet).getRegex(),Bt.list=bt(Bt.list).replace(/bull/g,Bt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Bt.def.source+")").getRegex(),Bt._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",Bt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Bt.html=bt(Bt.html,"i").replace("comment",Bt._comment).replace("tag",Bt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bt.paragraph=bt(Bt._paragraph).replace("hr",Bt.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",Bt._tag).getRegex(),Bt.blockquote=bt(Bt.blockquote).replace("paragraph",Bt.paragraph).getRegex(),Bt.normal=$t({},Bt),Bt.gfm=$t({},Bt.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*|$)"}),Bt.gfm.nptable=bt(Bt.gfm.nptable).replace("hr",Bt.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",Bt._tag).getRegex(),Bt.gfm.table=bt(Bt.gfm.table).replace("hr",Bt.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",Bt._tag).getRegex(),Bt.pedantic=$t({},Bt.normal,{html:bt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Bt._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:It,paragraph:bt(Bt.normal._paragraph).replace("hr",Bt.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",Bt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Oe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:It,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:It,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Oe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Oe.punctuation=bt(Oe.punctuation).replace(/punctuation/g,Oe._punctuation).getRegex(),Oe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Oe.escapedEmSt=/\\\*|\\_/g,Oe._comment=bt(Bt._comment).replace("(?:-->|$)","-->").getRegex(),Oe.emStrong.lDelim=bt(Oe.emStrong.lDelim).replace(/punct/g,Oe._punctuation).getRegex(),Oe.emStrong.rDelimAst=bt(Oe.emStrong.rDelimAst,"g").replace(/punct/g,Oe._punctuation).getRegex(),Oe.emStrong.rDelimUnd=bt(Oe.emStrong.rDelimUnd,"g").replace(/punct/g,Oe._punctuation).getRegex(),Oe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Oe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Oe._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])?)+(?![-_])/,Oe.autolink=bt(Oe.autolink).replace("scheme",Oe._scheme).replace("email",Oe._email).getRegex(),Oe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Oe.tag=bt(Oe.tag).replace("comment",Oe._comment).replace("attribute",Oe._attribute).getRegex(),Oe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Oe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Oe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Oe.link=bt(Oe.link).replace("label",Oe._label).replace("href",Oe._href).replace("title",Oe._title).getRegex(),Oe.reflink=bt(Oe.reflink).replace("label",Oe._label).getRegex(),Oe.reflinkSearch=bt(Oe.reflinkSearch,"g").replace("reflink",Oe.reflink).replace("nolink",Oe.nolink).getRegex(),Oe.normal=$t({},Oe),Oe.pedantic=$t({},Oe.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:bt(/^!?\[(label)\]\((.*?)\)/).replace("label",Oe._label).getRegex(),reflink:bt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oe._label).getRegex()}),Oe.gfm=$t({},Oe.normal,{escape:bt(Oe.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Oe.gfm.url=bt(Oe.gfm.url,"i").replace("email",Oe.gfm._extended_email).getRegex(),Oe.breaks=$t({},Oe.gfm,{br:bt(Oe.br).replace("{2,}","*").getRegex(),text:bt(Oe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var jt={block:Bt,inline:Oe},En=Ye,Yt=ge.exports.defaults,cn=jt.block,pt=jt.inline,Pe=$.repeatString;function be(Be){return Be.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 B(Be){var ke="",Ne,k,ae=Be.length;for(Ne=0;Ne<ae;Ne++)k=Be.charCodeAt(Ne),Math.random()>.5&&(k="x"+k.toString(16)),ke+="&#"+k+";";return ke}var Ce=function(){function Be(Ne){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ne||Yt,this.options.tokenizer=this.options.tokenizer||new En,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var k={block:cn.normal,inline:pt.normal};this.options.pedantic?(k.block=cn.pedantic,k.inline=pt.pedantic):this.options.gfm&&(k.block=cn.gfm,this.options.breaks?k.inline=pt.breaks:k.inline=pt.gfm),this.tokenizer.rules=k}Be.lex=function(k,ae){var fe=new Be(ae);return fe.lex(k)},Be.lexInline=function(k,ae){var fe=new Be(ae);return fe.inlineTokens(k)};var ke=Be.prototype;return ke.lex=function(k){return k=k.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(k,this.tokens,!0),this.inline(this.tokens),this.tokens},ke.blockTokens=function(k,ae,fe){ae===void 0&&(ae=[]),fe===void 0&&(fe=!0),this.options.pedantic&&(k=k.replace(/^ +$/gm,""));for(var re,Se,Mt,Rt;k;){if(re=this.tokenizer.space(k)){k=k.substring(re.raw.length),re.type&&ae.push(re);continue}if(re=this.tokenizer.code(k)){k=k.substring(re.raw.length),Rt=ae[ae.length-1],Rt&&Rt.type==="paragraph"?(Rt.raw+=`
|
|
`+re.raw,Rt.text+=`
|
|
`+re.text):ae.push(re);continue}if(re=this.tokenizer.fences(k)){k=k.substring(re.raw.length),ae.push(re);continue}if(re=this.tokenizer.heading(k)){k=k.substring(re.raw.length),ae.push(re);continue}if(re=this.tokenizer.nptable(k)){k=k.substring(re.raw.length),ae.push(re);continue}if(re=this.tokenizer.hr(k)){k=k.substring(re.raw.length),ae.push(re);continue}if(re=this.tokenizer.blockquote(k)){k=k.substring(re.raw.length),re.tokens=this.blockTokens(re.text,[],fe),ae.push(re);continue}if(re=this.tokenizer.list(k)){for(k=k.substring(re.raw.length),Mt=re.items.length,Se=0;Se<Mt;Se++)re.items[Se].tokens=this.blockTokens(re.items[Se].text,[],!1);ae.push(re);continue}if(re=this.tokenizer.html(k)){k=k.substring(re.raw.length),ae.push(re);continue}if(fe&&(re=this.tokenizer.def(k))){k=k.substring(re.raw.length),this.tokens.links[re.tag]||(this.tokens.links[re.tag]={href:re.href,title:re.title});continue}if(re=this.tokenizer.table(k)){k=k.substring(re.raw.length),ae.push(re);continue}if(re=this.tokenizer.lheading(k)){k=k.substring(re.raw.length),ae.push(re);continue}if(fe&&(re=this.tokenizer.paragraph(k))){k=k.substring(re.raw.length),ae.push(re);continue}if(re=this.tokenizer.text(k)){k=k.substring(re.raw.length),Rt=ae[ae.length-1],Rt&&Rt.type==="text"?(Rt.raw+=`
|
|
`+re.raw,Rt.text+=`
|
|
`+re.text):ae.push(re);continue}if(k){var Ut="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(Ut);break}else throw new Error(Ut)}}return ae},ke.inline=function(k){var ae,fe,re,Se,Mt,Rt,Ut=k.length;for(ae=0;ae<Ut;ae++)switch(Rt=k[ae],Rt.type){case"paragraph":case"text":case"heading":{Rt.tokens=[],this.inlineTokens(Rt.text,Rt.tokens);break}case"table":{for(Rt.tokens={header:[],cells:[]},Se=Rt.header.length,fe=0;fe<Se;fe++)Rt.tokens.header[fe]=[],this.inlineTokens(Rt.header[fe],Rt.tokens.header[fe]);for(Se=Rt.cells.length,fe=0;fe<Se;fe++)for(Mt=Rt.cells[fe],Rt.tokens.cells[fe]=[],re=0;re<Mt.length;re++)Rt.tokens.cells[fe][re]=[],this.inlineTokens(Mt[re],Rt.tokens.cells[fe][re]);break}case"blockquote":{this.inline(Rt.tokens);break}case"list":{for(Se=Rt.items.length,fe=0;fe<Se;fe++)this.inline(Rt.items[fe].tokens);break}}return k},ke.inlineTokens=function(k,ae,fe,re){ae===void 0&&(ae=[]),fe===void 0&&(fe=!1),re===void 0&&(re=!1);var Se,Mt,Rt=k,Ut,hn,Le;if(this.tokens.links){var _=Object.keys(this.tokens.links);if(_.length>0)for(;(Ut=this.tokenizer.rules.inline.reflinkSearch.exec(Rt))!=null;)_.includes(Ut[0].slice(Ut[0].lastIndexOf("[")+1,-1))&&(Rt=Rt.slice(0,Ut.index)+"["+Pe("a",Ut[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ut=this.tokenizer.rules.inline.blockSkip.exec(Rt))!=null;)Rt=Rt.slice(0,Ut.index)+"["+Pe("a",Ut[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Ut=this.tokenizer.rules.inline.escapedEmSt.exec(Rt))!=null;)Rt=Rt.slice(0,Ut.index)+"++"+Rt.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;k;){if(hn||(Le=""),hn=!1,Se=this.tokenizer.escape(k)){k=k.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.tag(k,fe,re)){k=k.substring(Se.raw.length),fe=Se.inLink,re=Se.inRawBlock;var H=ae[ae.length-1];H&&Se.type==="text"&&H.type==="text"?(H.raw+=Se.raw,H.text+=Se.text):ae.push(Se);continue}if(Se=this.tokenizer.link(k)){k=k.substring(Se.raw.length),Se.type==="link"&&(Se.tokens=this.inlineTokens(Se.text,[],!0,re)),ae.push(Se);continue}if(Se=this.tokenizer.reflink(k,this.tokens.links)){k=k.substring(Se.raw.length);var E=ae[ae.length-1];Se.type==="link"?(Se.tokens=this.inlineTokens(Se.text,[],!0,re),ae.push(Se)):E&&Se.type==="text"&&E.type==="text"?(E.raw+=Se.raw,E.text+=Se.text):ae.push(Se);continue}if(Se=this.tokenizer.emStrong(k,Rt,Le)){k=k.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],fe,re),ae.push(Se);continue}if(Se=this.tokenizer.codespan(k)){k=k.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.br(k)){k=k.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.del(k)){k=k.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],fe,re),ae.push(Se);continue}if(Se=this.tokenizer.autolink(k,B)){k=k.substring(Se.raw.length),ae.push(Se);continue}if(!fe&&(Se=this.tokenizer.url(k,B))){k=k.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.inlineText(k,re,be)){k=k.substring(Se.raw.length),Se.raw.slice(-1)!=="_"&&(Le=Se.raw.slice(-1)),hn=!0,Mt=ae[ae.length-1],Mt&&Mt.type==="text"?(Mt.raw+=Se.raw,Mt.text+=Se.text):ae.push(Se);continue}if(k){var Ie="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(Ie);break}else throw new Error(Ie)}}return ae},w(Be,null,[{key:"rules",get:function(){return{block:cn,inline:pt}}}]),Be}(),He=ge.exports.defaults,Z=$.cleanUrl,P=$.escape,K=function(){function Be(Ne){this.options=Ne||He}var ke=Be.prototype;return ke.code=function(k,ae,fe){var re=(ae||"").match(/\S*/)[0];if(this.options.highlight){var Se=this.options.highlight(k,re);Se!=null&&Se!==k&&(fe=!0,k=Se)}return k=k.replace(/\n$/,"")+`
|
|
`,re?'<pre><code class="'+this.options.langPrefix+P(re,!0)+'">'+(fe?k:P(k,!0))+`</code></pre>
|
|
`:"<pre><code>"+(fe?k:P(k,!0))+`</code></pre>
|
|
`},ke.blockquote=function(k){return`<blockquote>
|
|
`+k+`</blockquote>
|
|
`},ke.html=function(k){return k},ke.heading=function(k,ae,fe,re){return this.options.headerIds?"<h"+ae+' id="'+this.options.headerPrefix+re.slug(fe)+'">'+k+"</h"+ae+`>
|
|
`:"<h"+ae+">"+k+"</h"+ae+`>
|
|
`},ke.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},ke.list=function(k,ae,fe){var re=ae?"ol":"ul",Se=ae&&fe!==1?' start="'+fe+'"':"";return"<"+re+Se+`>
|
|
`+k+"</"+re+`>
|
|
`},ke.listitem=function(k){return"<li>"+k+`</li>
|
|
`},ke.checkbox=function(k){return"<input "+(k?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ke.paragraph=function(k){return"<p>"+k+`</p>
|
|
`},ke.table=function(k,ae){return ae&&(ae="<tbody>"+ae+"</tbody>"),`<table>
|
|
<thead>
|
|
`+k+`</thead>
|
|
`+ae+`</table>
|
|
`},ke.tablerow=function(k){return`<tr>
|
|
`+k+`</tr>
|
|
`},ke.tablecell=function(k,ae){var fe=ae.header?"th":"td",re=ae.align?"<"+fe+' align="'+ae.align+'">':"<"+fe+">";return re+k+"</"+fe+`>
|
|
`},ke.strong=function(k){return"<strong>"+k+"</strong>"},ke.em=function(k){return"<em>"+k+"</em>"},ke.codespan=function(k){return"<code>"+k+"</code>"},ke.br=function(){return this.options.xhtml?"<br/>":"<br>"},ke.del=function(k){return"<del>"+k+"</del>"},ke.link=function(k,ae,fe){if(k=Z(this.options.sanitize,this.options.baseUrl,k),k===null)return fe;var re='<a href="'+P(k)+'"';return ae&&(re+=' title="'+ae+'"'),re+=">"+fe+"</a>",re},ke.image=function(k,ae,fe){if(k=Z(this.options.sanitize,this.options.baseUrl,k),k===null)return fe;var re='<img src="'+k+'" alt="'+fe+'"';return ae&&(re+=' title="'+ae+'"'),re+=this.options.xhtml?"/>":">",re},ke.text=function(k){return k},Be}(),me=function(){function Be(){}var ke=Be.prototype;return ke.strong=function(k){return k},ke.em=function(k){return k},ke.codespan=function(k){return k},ke.del=function(k){return k},ke.html=function(k){return k},ke.text=function(k){return k},ke.link=function(k,ae,fe){return""+fe},ke.image=function(k,ae,fe){return""+fe},ke.br=function(){return""},Be}(),I=function(){function Be(){this.seen={}}var ke=Be.prototype;return ke.serialize=function(k){return k.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ke.getNextSafeSlug=function(k,ae){var fe=k,re=0;if(this.seen.hasOwnProperty(fe)){re=this.seen[k];do re++,fe=k+"-"+re;while(this.seen.hasOwnProperty(fe))}return ae||(this.seen[k]=re,this.seen[fe]=0),fe},ke.slug=function(k,ae){ae===void 0&&(ae={});var fe=this.serialize(k);return this.getNextSafeSlug(fe,ae.dryrun)},Be}(),de=K,ee=me,De=I,Te=ge.exports.defaults,Ke=$.unescape,ze=function(){function Be(Ne){this.options=Ne||Te,this.options.renderer=this.options.renderer||new de,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ee,this.slugger=new De}Be.parse=function(k,ae){var fe=new Be(ae);return fe.parse(k)},Be.parseInline=function(k,ae){var fe=new Be(ae);return fe.parseInline(k)};var ke=Be.prototype;return ke.parse=function(k,ae){ae===void 0&&(ae=!0);var fe="",re,Se,Mt,Rt,Ut,hn,Le,_,H,E,Ie,Ee,we,Ze,ut,kt,ye,le,ht=k.length;for(re=0;re<ht;re++)switch(E=k[re],E.type){case"space":continue;case"hr":{fe+=this.renderer.hr();continue}case"heading":{fe+=this.renderer.heading(this.parseInline(E.tokens),E.depth,Ke(this.parseInline(E.tokens,this.textRenderer)),this.slugger);continue}case"code":{fe+=this.renderer.code(E.text,E.lang,E.escaped);continue}case"table":{for(_="",Le="",Rt=E.header.length,Se=0;Se<Rt;Se++)Le+=this.renderer.tablecell(this.parseInline(E.tokens.header[Se]),{header:!0,align:E.align[Se]});for(_+=this.renderer.tablerow(Le),H="",Rt=E.cells.length,Se=0;Se<Rt;Se++){for(hn=E.tokens.cells[Se],Le="",Ut=hn.length,Mt=0;Mt<Ut;Mt++)Le+=this.renderer.tablecell(this.parseInline(hn[Mt]),{header:!1,align:E.align[Mt]});H+=this.renderer.tablerow(Le)}fe+=this.renderer.table(_,H);continue}case"blockquote":{H=this.parse(E.tokens),fe+=this.renderer.blockquote(H);continue}case"list":{for(Ie=E.ordered,Ee=E.start,we=E.loose,Rt=E.items.length,H="",Se=0;Se<Rt;Se++)ut=E.items[Se],kt=ut.checked,ye=ut.task,Ze="",ut.task&&(le=this.renderer.checkbox(kt),we?ut.tokens.length>0&&ut.tokens[0].type==="text"?(ut.tokens[0].text=le+" "+ut.tokens[0].text,ut.tokens[0].tokens&&ut.tokens[0].tokens.length>0&&ut.tokens[0].tokens[0].type==="text"&&(ut.tokens[0].tokens[0].text=le+" "+ut.tokens[0].tokens[0].text)):ut.tokens.unshift({type:"text",text:le}):Ze+=le),Ze+=this.parse(ut.tokens,we),H+=this.renderer.listitem(Ze,ye,kt);fe+=this.renderer.list(H,Ie,Ee);continue}case"html":{fe+=this.renderer.html(E.text);continue}case"paragraph":{fe+=this.renderer.paragraph(this.parseInline(E.tokens));continue}case"text":{for(H=E.tokens?this.parseInline(E.tokens):E.text;re+1<ht&&k[re+1].type==="text";)E=k[++re],H+=`
|
|
`+(E.tokens?this.parseInline(E.tokens):E.text);fe+=ae?this.renderer.paragraph(H):H;continue}default:{var st='Token with "'+E.type+'" type was not found.';if(this.options.silent){console.error(st);return}else throw new Error(st)}}return fe},ke.parseInline=function(k,ae){ae=ae||this.renderer;var fe="",re,Se,Mt=k.length;for(re=0;re<Mt;re++)switch(Se=k[re],Se.type){case"escape":{fe+=ae.text(Se.text);break}case"html":{fe+=ae.html(Se.text);break}case"link":{fe+=ae.link(Se.href,Se.title,this.parseInline(Se.tokens,ae));break}case"image":{fe+=ae.image(Se.href,Se.title,Se.text);break}case"strong":{fe+=ae.strong(this.parseInline(Se.tokens,ae));break}case"em":{fe+=ae.em(this.parseInline(Se.tokens,ae));break}case"codespan":{fe+=ae.codespan(Se.text);break}case"br":{fe+=ae.br();break}case"del":{fe+=ae.del(this.parseInline(Se.tokens,ae));break}case"text":{fe+=ae.text(Se.text);break}default:{var Rt='Token with "'+Se.type+'" type was not found.';if(this.options.silent){console.error(Rt);return}else throw new Error(Rt)}}return fe},Be}(),Xe=Ce,ot=ze,_e=Ye,Re=K,at=me,Qe=I,Ge=$.merge,_t=$.checkSanitizeDeprecation,Dt=$.escape,rt=ge.exports.getDefaults,Kt=ge.exports.changeDefaults,fn=ge.exports.defaults;function Tt(Be,ke,Ne){if(typeof Be=="undefined"||Be===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Be!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Be)+", string expected");if(typeof ke=="function"&&(Ne=ke,ke=null),ke=Ge({},Tt.defaults,ke||{}),_t(ke),Ne){var k=ke.highlight,ae;try{ae=Xe.lex(Be,ke)}catch(Mt){return Ne(Mt)}var fe=function(Rt){var Ut;if(!Rt)try{ke.walkTokens&&Tt.walkTokens(ae,ke.walkTokens),Ut=ot.parse(ae,ke)}catch(hn){Rt=hn}return ke.highlight=k,Rt?Ne(Rt):Ne(null,Ut)};if(!k||k.length<3||(delete ke.highlight,!ae.length))return fe();var re=0;Tt.walkTokens(ae,function(Mt){Mt.type==="code"&&(re++,setTimeout(function(){k(Mt.text,Mt.lang,function(Rt,Ut){if(Rt)return fe(Rt);Ut!=null&&Ut!==Mt.text&&(Mt.text=Ut,Mt.escaped=!0),re--,re===0&&fe()})},0))}),re===0&&fe();return}try{var Se=Xe.lex(Be,ke);return ke.walkTokens&&Tt.walkTokens(Se,ke.walkTokens),ot.parse(Se,ke)}catch(Mt){if(Mt.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,ke.silent)return"<p>An error occurred:</p><pre>"+Dt(Mt.message+"",!0)+"</pre>";throw Mt}}Tt.options=Tt.setOptions=function(Be){return Ge(Tt.defaults,Be),Kt(Tt.defaults),Tt},Tt.getDefaults=rt,Tt.defaults=fn,Tt.use=function(Be){var ke=Ge({},Be);if(Be.renderer&&function(){var k=Tt.defaults.renderer||new Re,ae=function(Se){var Mt=k[Se];k[Se]=function(){for(var Rt=arguments.length,Ut=new Array(Rt),hn=0;hn<Rt;hn++)Ut[hn]=arguments[hn];var Le=Be.renderer[Se].apply(k,Ut);return Le===!1&&(Le=Mt.apply(k,Ut)),Le}};for(var fe in Be.renderer)ae(fe);ke.renderer=k}(),Be.tokenizer&&function(){var k=Tt.defaults.tokenizer||new _e,ae=function(Se){var Mt=k[Se];k[Se]=function(){for(var Rt=arguments.length,Ut=new Array(Rt),hn=0;hn<Rt;hn++)Ut[hn]=arguments[hn];var Le=Be.tokenizer[Se].apply(k,Ut);return Le===!1&&(Le=Mt.apply(k,Ut)),Le}};for(var fe in Be.tokenizer)ae(fe);ke.tokenizer=k}(),Be.walkTokens){var Ne=Tt.defaults.walkTokens;ke.walkTokens=function(k){Be.walkTokens(k),Ne&&Ne(k)}}Tt.setOptions(ke)},Tt.walkTokens=function(Be,ke){for(var Ne=se(Be),k;!(k=Ne()).done;){var ae=k.value;switch(ke(ae),ae.type){case"table":{for(var fe=se(ae.tokens.header),re;!(re=fe()).done;){var Se=re.value;Tt.walkTokens(Se,ke)}for(var Mt=se(ae.tokens.cells),Rt;!(Rt=Mt()).done;)for(var Ut=Rt.value,hn=se(Ut),Le;!(Le=hn()).done;){var _=Le.value;Tt.walkTokens(_,ke)}break}case"list":{Tt.walkTokens(ae.items,ke);break}default:ae.tokens&&Tt.walkTokens(ae.tokens,ke)}}},Tt.parseInline=function(Be,ke){if(typeof Be=="undefined"||Be===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Be!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Be)+", string expected");ke=Ge({},Tt.defaults,ke||{}),_t(ke);try{var Ne=Xe.lexInline(Be,ke);return ke.walkTokens&&Tt.walkTokens(Ne,ke.walkTokens),ot.parseInline(Ne,ke)}catch(k){if(k.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,ke.silent)return"<p>An error occurred:</p><pre>"+Dt(k.message+"",!0)+"</pre>";throw k}},Tt.Parser=ot,Tt.parser=ot.parse,Tt.Renderer=Re,Tt.TextRenderer=at,Tt.Lexer=Xe,Tt.lexer=Xe.lex,Tt.Tokenizer=_e,Tt.Slugger=Qe,Tt.parse=Tt;var Qt=Tt;return Qt})},11690:function(In){const Wt=/[&<>"']/,w=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,he=/[<>"']|&(?!#?\w+;)/g,se={"&":"&","<":"<",">":">",'"':""","'":"'"},ge=j=>se[j];function O(j,q){if(q){if(Wt.test(j))return j.replace(w,ge)}else if(p.test(j))return j.replace(he,ge);return j}const d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ve(j){return j.replace(d,(q,ue)=>(ue=ue.toLowerCase(),ue==="colon"?":":ue.charAt(0)==="#"?ue.charAt(1)==="x"?String.fromCharCode(parseInt(ue.substring(2),16)):String.fromCharCode(+ue.substring(1)):""))}const oe=/(^|[^\[])\^/g;function o(j,q){j=j.source||j,q=q||"";const ue={replace:(pe,We)=>(We=We.source||We,We=We.replace(oe,"$1"),j=j.replace(pe,We),ue),getRegex:()=>new RegExp(j,q)};return ue}const b=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(j,q,ue){if(j){let pe;try{pe=decodeURIComponent(ve(ue)).replace(b,"").toLowerCase()}catch(We){return null}if(pe.indexOf("javascript:")===0||pe.indexOf("vbscript:")===0||pe.indexOf("data:")===0)return null}q&&!T.test(ue)&&(ue=Y(q,ue));try{ue=encodeURI(ue).replace(/%25/g,"%")}catch(pe){return null}return ue}const y={},x=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,U=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Y(j,q){y[" "+j]||(x.test(j)?y[" "+j]=j+"/":y[" "+j]=D(j,"/",!0)),j=y[" "+j];const ue=j.indexOf(":")===-1;return q.substring(0,2)==="//"?ue?q:j.replace(L,"$1")+q:q.charAt(0)==="/"?ue?q:j.replace(U,"$1")+q:j+q}const ne={exec:function(){}};function M(j){let q=1,ue,pe;for(;q<arguments.length;q++){ue=arguments[q];for(pe in ue)Object.prototype.hasOwnProperty.call(ue,pe)&&(j[pe]=ue[pe])}return j}function F(j,q){const ue=j.replace(/\|/g,(G,N,W)=>{let $=!1,ie=N;for(;--ie>=0&&W[ie]==="\\";)$=!$;return $?"|":" |"}),pe=ue.split(/ \|/);let We=0;if(pe.length>q)pe.splice(q);else for(;pe.length<q;)pe.push("");for(;We<pe.length;We++)pe[We]=pe[We].trim().replace(/\\\|/g,"|");return pe}function D(j,q,ue){const pe=j.length;if(pe===0)return"";let We=0;for(;We<pe;){const G=j.charAt(pe-We-1);if(G===q&&!ue)We++;else if(G!==q&&ue)We++;else break}return j.substr(0,pe-We)}function S(j,q){if(j.indexOf(q[1])===-1)return-1;const ue=j.length;let pe=0,We=0;for(;We<ue;We++)if(j[We]==="\\")We++;else if(j[We]===q[0])pe++;else if(j[We]===q[1]&&(pe--,pe<0))return We;return-1}function te(j){j&&j.sanitize&&!j.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function X(j,q){if(q<1)return"";let ue="";for(;q>1;)q&1&&(ue+=j),q>>=1,j+=j;return ue+j}In.exports={escape:O,unescape:ve,edit:o,cleanUrl:m,resolveUrl:Y,noopTest:ne,merge:M,splitCells:F,rtrim:D,findClosingBracket:S,checkSanitizeDeprecation:te,repeatString:X}},75918:function(In,Wt,w){"use strict";w.d(Wt,{Wi:function(){return d},Z0:function(){return ve},aU:function(){return O},eZ:function(){return o},wY:function(){return oe}});var p=w(4348),he=w(69323),se=w(13268),ge=function(b,T,m,y){function x(L){return L instanceof m?L:new m(function(U){U(L)})}return new(m||(m=Promise))(function(L,U){function Y(F){try{M(y.next(F))}catch(D){U(D)}}function ne(F){try{M(y.throw(F))}catch(D){U(D)}}function M(F){F.done?L(F.value):x(F.value).then(Y,ne)}M((y=y.apply(b,T||[])).next())})};class O extends he.JT{constructor(T,m="",y="",x=!0,L){super(),this._onDidChange=this._register(new p.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=T,this._label=m,this._cssClass=y,this._enabled=x,this._actionCallback=L}get id(){return this._id}get label(){return this._label}set label(T){this._setLabel(T)}_setLabel(T){this._label!==T&&(this._label=T,this._onDidChange.fire({label:T}))}get tooltip(){return this._tooltip||""}set tooltip(T){this._setTooltip(T)}_setTooltip(T){this._tooltip!==T&&(this._tooltip=T,this._onDidChange.fire({tooltip:T}))}get class(){return this._cssClass}set class(T){this._setClass(T)}_setClass(T){this._cssClass!==T&&(this._cssClass=T,this._onDidChange.fire({class:T}))}get enabled(){return this._enabled}set enabled(T){this._setEnabled(T)}_setEnabled(T){this._enabled!==T&&(this._enabled=T,this._onDidChange.fire({enabled:T}))}get checked(){return this._checked}set checked(T){this._setChecked(T)}_setChecked(T){this._checked!==T&&(this._checked=T,this._onDidChange.fire({checked:T}))}run(T,m){return ge(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(T))})}}class d extends he.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(T,m){return ge(this,void 0,void 0,function*(){if(!T.enabled)return;this._onBeforeRun.fire({action:T});let y;try{yield this.runAction(T,m)}catch(x){y=x}this._onDidRun.fire({action:T,error:y})})}runAction(T,m){return ge(this,void 0,void 0,function*(){yield T.run(m)})}}class ve extends O{constructor(T){super(ve.ID,T,T?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ve.ID="vs.actions.separator";class oe{constructor(T,m,y,x){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=T,this.label=m,this.class=x,this._actions=y}get actions(){return this._actions}dispose(){}run(){return ge(this,void 0,void 0,function*(){})}}class o extends O{constructor(){super(o.ID,se.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(In,Wt,w){"use strict";w.d(Wt,{ok:function(){return p}});function p(he,se){if(!he)throw new Error(se?`Assertion failed (${se})`:"Assertion Failed")}},52615:function(In,Wt,w){"use strict";w.d(Wt,{CM:function(){return O},JL:function(){return d},dT:function(){return oe},fK:function(){return ge},lA:function(){return ve}});var p=w(4348);class he{constructor(){this._icons=new Map,this._onDidRegister=new p.Q5}add(b){const T=this._icons.get(b.id);T?b.description?T.description=b.description:console.error(`Duplicate registration of codicon ${b.id}`):(this._icons.set(b.id,b),this._onDidRegister.fire(b))}get(b){return this._icons.get(b)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const se=new he,ge=se;function O(o,b){return new ve(o,b)}function d(o){return o?o.replace(/\$\((.*?)\)/g,(b,T)=>` ${T} `).trim():""}class ve{constructor(b,T,m){this.id=b,this.definition=T,this.description=m,se.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var oe;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const b=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function T(x){if(x instanceof ve)return["codicon","codicon-"+x.id];const L=b.exec(x.id);if(!L)return T(ve.error);let[,U,Y]=L;const ne=["codicon","codicon-"+U];return Y&&ne.push("codicon-modifier-"+Y.substr(1)),ne}o.asClassNameArray=T;function m(x){return T(x).join(" ")}o.asClassName=m;function y(x){return"."+T(x).join(".")}o.asCSSSelector=y})(oe||(oe={})),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"})}(ve||(ve={}))},79881:function(In,Wt,w){"use strict";w.d(Wt,{B8:function(){return T},Cp:function(){return ge},F0:function(){return oe},L6:function(){return b},VV:function(){return ve},b1:function(){return o},dL:function(){return se},ri:function(){return O}});class p{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(y){setTimeout(()=>{throw y.stack?new Error(y.message+`
|
|
|
|
`+y.stack):y},0)}}emit(y){this.listeners.forEach(x=>{x(y)})}onUnexpectedError(y){this.unexpectedErrorHandler(y),this.emit(y)}onUnexpectedExternalError(y){this.unexpectedErrorHandler(y)}}const he=new p;function se(m){ve(m)||he.onUnexpectedError(m)}function ge(m){ve(m)||he.onUnexpectedExternalError(m)}function O(m){if(m instanceof Error){let{name:y,message:x}=m;const L=m.stacktrace||m.stack;return{$isError:!0,name:y,message:x,stack:L}}return m}const d="Canceled";function ve(m){return m instanceof Error&&m.name===d&&m.message===d}function oe(){const m=new Error(d);return m.name=m.message,m}function o(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function b(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class T extends Error{constructor(y){super("NotSupported"),y&&(this.message=y)}}},4348:function(In,Wt,w){"use strict";w.d(Wt,{D0:function(){return T},E7:function(){return m},K3:function(){return b},Q5:function(){return o},ZD:function(){return y},ju:function(){return O}});var p=w(79881),he=w(69323),se=w(34502),ge=w(95830),O;(function(x){x.None=()=>he.JT.None;function L(W){return($,ie=null,Q)=>{let g=!1,v;return v=W(z=>{if(!g)return v?v.dispose():g=!0,$.call(ie,z)},null,Q),g&&v.dispose(),v}}x.once=L;function U(W,$){return S((ie,Q=null,g)=>W(v=>ie.call(Q,$(v)),null,g))}x.map=U;function Y(W,$){return S((ie,Q=null,g)=>W(v=>{$(v),ie.call(Q,v)},null,g))}x.forEach=Y;function ne(W,$){return S((ie,Q=null,g)=>W(v=>$(v)&&ie.call(Q,v),null,g))}x.filter=ne;function M(W){return W}x.signal=M;function F(...W){return($,ie=null,Q)=>(0,he.F8)(...W.map(g=>g(v=>$.call(ie,v),null,Q)))}x.any=F;function D(W,$,ie){let Q=ie;return U(W,g=>(Q=$(Q,g),Q))}x.reduce=D;function S(W){let $;const ie=new o({onFirstListenerAdd(){$=W(ie.fire,ie)},onLastListenerRemove(){$.dispose()}});return ie.event}function te(W,$,ie=100,Q=!1,g){let v,z,ce,je=0;const Ye=new o({leakWarningThreshold:g,onFirstListenerAdd(){v=W(It=>{je++,z=$(z,It),Q&&!ce&&(Ye.fire(z),z=void 0),clearTimeout(ce),ce=setTimeout(()=>{const bt=z;z=void 0,ce=void 0,(!Q||je>1)&&Ye.fire(bt),je=0},ie)})},onLastListenerRemove(){v.dispose()}});return Ye.event}x.debounce=te;function X(W,$=(ie,Q)=>ie===Q){let ie=!0,Q;return ne(W,g=>{const v=ie||!$(g,Q);return ie=!1,Q=g,v})}x.latch=X;function j(W,$){return[x.filter(W,$),x.filter(W,ie=>!$(ie))]}x.split=j;function q(W,$=!1,ie=[]){let Q=ie.slice(),g=W(ce=>{Q?Q.push(ce):z.fire(ce)});const v=()=>{Q&&Q.forEach(ce=>z.fire(ce)),Q=null},z=new o({onFirstListenerAdd(){g||(g=W(ce=>z.fire(ce)))},onFirstListenerDidAdd(){Q&&($?setTimeout(v):v())},onLastListenerRemove(){g&&g.dispose(),g=null}});return z.event}x.buffer=q;class ue{constructor($){this.event=$}map($){return new ue(U(this.event,$))}forEach($){return new ue(Y(this.event,$))}filter($){return new ue(ne(this.event,$))}reduce($,ie){return new ue(D(this.event,$,ie))}latch(){return new ue(X(this.event))}debounce($,ie=100,Q=!1,g){return new ue(te(this.event,$,ie,Q,g))}on($,ie,Q){return this.event($,ie,Q)}once($,ie,Q){return L(this.event)($,ie,Q)}}function pe(W){return new ue(W)}x.chain=pe;function We(W,$,ie=Q=>Q){const Q=(...ce)=>z.fire(ie(...ce)),g=()=>W.on($,Q),v=()=>W.removeListener($,Q),z=new o({onFirstListenerAdd:g,onLastListenerRemove:v});return z.event}x.fromNodeEventEmitter=We;function G(W,$,ie=Q=>Q){const Q=(...ce)=>z.fire(ie(...ce)),g=()=>W.addEventListener($,Q),v=()=>W.removeEventListener($,Q),z=new o({onFirstListenerAdd:g,onLastListenerRemove:v});return z.event}x.fromDOMEventEmitter=G;function N(W){return new Promise($=>L(W)($))}x.toPromise=N})(O||(O={}));class d{constructor(L){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${L}_${d._idPool++}`}start(L){this._stopWatch=new ge.G(!0),this._listenerCount=L}stop(){if(this._stopWatch){const L=this._stopWatch.elapsed();this._elapsedOverall+=L,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${L.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}d._idPool=0;let ve=-1;class oe{constructor(L,U=Math.random().toString(18).slice(2,5)){this.customThreshold=L,this.name=U,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(L){let U=ve;if(typeof this.customThreshold=="number"&&(U=this.customThreshold),U<=0||L<U)return;this._stacks||(this._stacks=new Map);const Y=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),ne=this._stacks.get(Y)||0;if(this._stacks.set(Y,ne+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=U*.5;let M,F=0;for(const[D,S]of this._stacks)(!M||F<S)&&(M=D,F=S);console.warn(`[${this.name}] potential listener LEAK detected, having ${L} listeners already. MOST frequent listener (${F}):`),console.warn(M)}return()=>{const M=this._stacks.get(Y)||0;this._stacks.set(Y,M-1)}}}class o{constructor(L){var U;this._disposed=!1,this._options=L,this._leakageMon=ve>0?new oe(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((U=this._options)===null||U===void 0)&&U._profName?new d(this._options._profName):void 0}get event(){return this._event||(this._event=(L,U,Y)=>{var ne;this._listeners||(this._listeners=new se.S);const M=this._listeners.isEmpty();M&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const F=this._listeners.push(U?[L,U]:L);M&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,L,U);const D=(ne=this._leakageMon)===null||ne===void 0?void 0:ne.check(this._listeners.size),S=(0,he.OF)(()=>{D&&D(),this._disposed||(F(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return Y instanceof he.SL?Y.add(S):Array.isArray(Y)&&Y.push(S),S}),this._event}fire(L){var U,Y;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new se.S);for(let ne of this._listeners)this._deliveryQueue.push([ne,L]);for((U=this._perfMon)===null||U===void 0||U.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[ne,M]=this._deliveryQueue.shift();try{typeof ne=="function"?ne.call(void 0,M):ne[0].call(ne[1],M)}catch(F){(0,p.dL)(F)}}(Y=this._perfMon)===null||Y===void 0||Y.stop()}}dispose(){var L,U,Y,ne,M;this._disposed||(this._disposed=!0,(L=this._listeners)===null||L===void 0||L.clear(),(U=this._deliveryQueue)===null||U===void 0||U.clear(),(ne=(Y=this._options)===null||Y===void 0?void 0:Y.onLastListenerRemove)===null||ne===void 0||ne.call(Y),(M=this._leakageMon)===null||M===void 0||M.dispose())}}class b extends o{constructor(L){super(L),this._isPaused=0,this._eventQueue=new se.S,this._mergeFn=L==null?void 0:L.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const L=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(L))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(L){this._listeners&&(this._isPaused!==0?this._eventQueue.push(L):super.fire(L))}}class T extends b{constructor(L){var U;super(L),this._delay=(U=L.delay)!==null&&U!==void 0?U:100}fire(L){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(L)}}class m{constructor(){this.buffers=[]}wrapEvent(L){return(U,Y,ne)=>L(M=>{const F=this.buffers[this.buffers.length-1];F?F.push(()=>U.call(Y,M)):U.call(Y,M)},void 0,ne)}bufferEvents(L){const U=[];this.buffers.push(U);const Y=L();return this.buffers.pop(),U.forEach(ne=>ne()),Y}}class y{constructor(){this.listening=!1,this.inputEvent=O.None,this.inputEventListener=he.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(L){this.inputEvent=L,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=L(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(In,Wt,w){"use strict";w.d(Wt,{I:function(){return p}});function p(he){const se=this;let ge=!1,O;return function(){return ge||(ge=!0,O=he.apply(se,arguments)),O}}},88226:function(In,Wt,w){"use strict";w.d(Wt,{$:function(){return p}});var p;(function(he){function se(F){return F&&typeof F=="object"&&typeof F[Symbol.iterator]=="function"}he.is=se;const ge=Object.freeze([]);function O(){return ge}he.empty=O;function*d(F){yield F}he.single=d;function ve(F){return F||ge}he.from=ve;function oe(F){return!F||F[Symbol.iterator]().next().done===!0}he.isEmpty=oe;function o(F){return F[Symbol.iterator]().next().value}he.first=o;function b(F,D){for(const S of F)if(D(S))return!0;return!1}he.some=b;function T(F,D){for(const S of F)if(D(S))return S}he.find=T;function*m(F,D){for(const S of F)D(S)&&(yield S)}he.filter=m;function*y(F,D){let S=0;for(const te of F)yield D(te,S++)}he.map=y;function*x(...F){for(const D of F)for(const S of D)yield S}he.concat=x;function*L(F){for(const D of F)for(const S of D)yield S}he.concatNested=L;function U(F,D,S){let te=S;for(const X of F)te=D(te,X);return te}he.reduce=U;function*Y(F,D,S=F.length){for(D<0&&(D+=F.length),S<0?S+=F.length:S>F.length&&(S=F.length);D<S;D++)yield F[D]}he.slice=Y;function ne(F,D=Number.POSITIVE_INFINITY){const S=[];if(D===0)return[S,F];const te=F[Symbol.iterator]();for(let X=0;X<D;X++){const j=te.next();if(j.done)return[S,he.empty()];S.push(j.value)}return[S,{[Symbol.iterator](){return te}}]}he.consume=ne;function M(F,D,S=(te,X)=>te===X){const te=F[Symbol.iterator](),X=D[Symbol.iterator]();for(;;){const j=te.next(),q=X.next();if(j.done!==q.done)return!1;if(j.done)return!0;if(!S(j.value,q.value))return!1}}he.equals=M})(p||(p={}))},69323:function(In,Wt,w){"use strict";w.d(Wt,{B9:function(){return y},F8:function(){return x},JT:function(){return Y},Jz:function(){return M},OF:function(){return L},SL:function(){return U},Wf:function(){return m},XK:function(){return ne},dk:function(){return b}});var p=w(17845),he=w(88226);const se=!1;let ge=null;function O(F){ge=F}if(se){const F="__is_disposable_tracked__";O(new class{trackDisposable(D){const S=new Error("Potentially leaked disposable").stack;setTimeout(()=>{D[F]||console.log(S)},3e3)}setParent(D,S){if(D&&D!==Y.None)try{D[F]=!0}catch(te){}}markAsDisposed(D){if(D&&D!==Y.None)try{D[F]=!0}catch(S){}}markAsSingleton(D){}})}function d(F){return ge==null||ge.trackDisposable(F),F}function ve(F){ge==null||ge.markAsDisposed(F)}function oe(F,D){ge==null||ge.setParent(F,D)}function o(F,D){if(ge)for(const S of F)ge.setParent(S,D)}function b(F){return ge==null||ge.markAsSingleton(F),F}class T extends Error{constructor(D){super(`Encountered errors while disposing of store. Errors: [${D.join(", ")}]`),this.errors=D}}function m(F){return typeof F.dispose=="function"&&F.dispose.length===0}function y(F){if(he.$.is(F)){let D=[];for(const S of F)if(S)try{S.dispose()}catch(te){D.push(te)}if(D.length===1)throw D[0];if(D.length>1)throw new T(D);return Array.isArray(F)?[]:F}else if(F)return F.dispose(),F}function x(...F){const D=L(()=>y(F));return o(F,D),D}function L(F){const D=d({dispose:(0,p.I)(()=>{ve(D),F()})});return D}class U{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(ve(this),this._isDisposed=!0,this.clear())}clear(){try{y(this._toDispose.values())}finally{this._toDispose.clear()}}add(D){if(!D)return D;if(D===this)throw new Error("Cannot register a disposable on itself!");return oe(D,this),this._isDisposed?U.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(D),D}}U.DISABLE_DISPOSED_WARNING=!1;class Y{constructor(){this._store=new U,d(this),oe(this._store,this)}dispose(){ve(this),this._store.dispose()}_register(D){if(D===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(D)}}Y.None=Object.freeze({dispose(){}});class ne{constructor(){this._isDisposed=!1,d(this)}get value(){return this._isDisposed?void 0:this._value}set value(D){var S;this._isDisposed||D===this._value||((S=this._value)===null||S===void 0||S.dispose(),D&&oe(D,this),this._value=D)}clear(){this.value=void 0}dispose(){var D;this._isDisposed=!0,ve(this),(D=this._value)===null||D===void 0||D.dispose(),this._value=void 0}clearAndLeak(){const D=this._value;return this._value=void 0,D&&oe(D,null),D}}class M{constructor(D){this.object=D}dispose(){}}},34502:function(In,Wt,w){"use strict";w.d(Wt,{S:function(){return he}});class p{constructor(ge){this.element=ge,this.next=p.Undefined,this.prev=p.Undefined}}p.Undefined=new p(void 0);class he{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 ge=this._first;for(;ge!==p.Undefined;){const O=ge.next;ge.prev=p.Undefined,ge.next=p.Undefined,ge=O}this._first=p.Undefined,this._last=p.Undefined,this._size=0}unshift(ge){return this._insert(ge,!1)}push(ge){return this._insert(ge,!0)}_insert(ge,O){const d=new p(ge);if(this._first===p.Undefined)this._first=d,this._last=d;else if(O){const oe=this._last;this._last=d,d.prev=oe,oe.next=d}else{const oe=this._first;this._first=d,d.next=oe,oe.prev=d}this._size+=1;let ve=!1;return()=>{ve||(ve=!0,this._remove(d))}}shift(){if(this._first!==p.Undefined){const ge=this._first.element;return this._remove(this._first),ge}}pop(){if(this._last!==p.Undefined){const ge=this._last.element;return this._remove(this._last),ge}}_remove(ge){if(ge.prev!==p.Undefined&&ge.next!==p.Undefined){const O=ge.prev;O.next=ge.next,ge.next.prev=O}else ge.prev===p.Undefined&&ge.next===p.Undefined?(this._first=p.Undefined,this._last=p.Undefined):ge.next===p.Undefined?(this._last=this._last.prev,this._last.next=p.Undefined):ge.prev===p.Undefined&&(this._first=this._first.next,this._first.prev=p.Undefined);this._size-=1}*[Symbol.iterator](){let ge=this._first;for(;ge!==p.Undefined;)yield ge.element,ge=ge.next}}},23345:function(In,Wt,w){"use strict";w.d(Wt,{$L:function(){return te},ED:function(){return M},IJ:function(){return D},OS:function(){return ue},WE:function(){return j},dz:function(){return F},gn:function(){return X},li:function(){return L},r:function(){return G},tY:function(){return S},xS:function(){return q}});var p=w(97671),he;const se="en";let ge=!1,O=!1,d=!1,ve=!1,oe=!1,o=!1,b=!1,T,m=null,y=null,x;const L=typeof self=="object"?self:typeof w.g=="object"?w.g:{};let U;typeof L.vscode!="undefined"&&typeof L.vscode.process!="undefined"?U=L.vscode.process:typeof p!="undefined"&&(U=p);const Y=typeof((he=U==null?void 0:U.versions)===null||he===void 0?void 0:he.electron)=="string"&&U.type==="renderer";if(typeof navigator=="object"&&!Y)x=navigator.userAgent,ge=x.indexOf("Windows")>=0,O=x.indexOf("Macintosh")>=0,b=(x.indexOf("Macintosh")>=0||x.indexOf("iPad")>=0||x.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=x.indexOf("Linux")>=0,o=!0,T=navigator.language,m=T;else if(typeof U=="object"){ge=U.platform==="win32",O=U.platform==="darwin",d=U.platform==="linux",ve=d&&!!U.env.SNAP&&!!U.env.SNAP_REVISION,T=se,m=se;const N=U.env.VSCODE_NLS_CONFIG;if(N)try{const W=JSON.parse(N),$=W.availableLanguages["*"];T=W.locale,m=$||se,y=W._translationsConfigFile}catch(W){}oe=!0}else console.error("Unable to resolve platform.");let ne=0;O?ne=1:ge?ne=3:d&&(ne=2);const M=ge,F=O,D=d,S=oe,te=o,X=b,j=x,q=function(){if(L.setImmediate)return L.setImmediate.bind(L);if(typeof L.postMessage=="function"&&!L.importScripts){let $=[];L.addEventListener("message",Q=>{if(Q.data&&Q.data.vscodeSetImmediateId)for(let g=0,v=$.length;g<v;g++){const z=$[g];if(z.id===Q.data.vscodeSetImmediateId){$.splice(g,1),z.callback();return}}});let ie=0;return Q=>{const g=++ie;$.push({id:g,callback:Q}),L.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(U==null?void 0:U.nextTick)=="function")return U.nextTick.bind(U);const W=Promise.resolve();return $=>W.then($)}(),ue=O||b?2:ge?1:3;let pe=!0,We=!1;function G(){if(!We){We=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2,pe=new Uint16Array(N.buffer)[0]===513}return pe}},95830:function(In,Wt,w){"use strict";w.d(Wt,{G:function(){return se}});var p=w(23345);const he=p.li.performance&&typeof p.li.performance.now=="function";class se{constructor(O){this._highResolution=he&&O,this._startTime=this._now(),this._stopTime=-1}static create(O=!0){return new se(O)}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(In,Wt,w){"use strict";w.d(Wt,{$i:function(){return je},C8:function(){return Bt},GF:function(){return T},HO:function(){return ie},IO:function(){return m},K7:function(){return $t},Kw:function(){return En},LC:function(){return L},Mh:function(){return q},P1:function(){return ue},PJ:function(){return Yt},Qe:function(){return Ye},R1:function(){return b},RP:function(){return z},S6:function(){return cn},TT:function(){return M},Ut:function(){return g},V8:function(){return U},WU:function(){return se},YK:function(){return We},YU:function(){return ge},ZG:function(){return pe},ZH:function(){return N},ab:function(){return It},c1:function(){return Oe},df:function(){return te},ec:function(){return O},fi:function(){return pt},fy:function(){return d},j3:function(){return ve},j_:function(){return D},m5:function(){return p},mK:function(){return S},mr:function(){return y},oH:function(){return B},oL:function(){return oe},ok:function(){return j},ow:function(){return Y},qq:function(){return X},qu:function(){return ne},rL:function(){return G},uS:function(){return jt},un:function(){return o},uq:function(){return x},vH:function(){return $},xe:function(){return bt},zY:function(){return F}});function p(P){return!P||typeof P!="string"?!0:P.trim().length===0}const he=/{(\d+)}/g;function se(P,...K){return K.length===0?P:P.replace(he,function(me,I){const de=parseInt(I,10);return isNaN(de)||de<0||de>=K.length?me:K[de]})}function ge(P){return P.replace(/[<>&]/g,function(K){switch(K){case"<":return"<";case">":return">";case"&":return"&";default:return K}})}function O(P){return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(P,K=" "){const me=ve(P,K);return oe(me,K)}function ve(P,K){if(!P||!K)return P;const me=K.length;if(me===0||P.length===0)return P;let I=0;for(;P.indexOf(K,I)===I;)I=I+me;return P.substring(I)}function oe(P,K){if(!P||!K)return P;const me=K.length,I=P.length;if(me===0||I===0)return P;let de=I,ee=-1;for(;ee=P.lastIndexOf(K,de-1),!(ee===-1||ee+me!==de);){if(ee===0)return"";de=ee}return P.substring(0,de)}function o(P){return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function b(P){return P.replace(/\*/g,"")}function T(P,K,me={}){if(!P)throw new Error("Cannot create regex from empty string");K||(P=O(P)),me.wholeWord&&(/\B/.test(P.charAt(0))||(P="\\b"+P),/\B/.test(P.charAt(P.length-1))||(P=P+"\\b"));let I="";return me.global&&(I+="g"),me.matchCase||(I+="i"),me.multiline&&(I+="m"),me.unicode&&(I+="u"),new RegExp(P,I)}function m(P){return P.source==="^"||P.source==="^$"||P.source==="$"||P.source==="^\\s*$"?!1:!!(P.exec("")&&P.lastIndex===0)}function y(P){return(P.global?"g":"")+(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")}function x(P){return P.split(/\r\n|\r|\n/)}function L(P){for(let K=0,me=P.length;K<me;K++){const I=P.charCodeAt(K);if(I!==32&&I!==9)return K}return-1}function U(P,K=0,me=P.length){for(let I=K;I<me;I++){const de=P.charCodeAt(I);if(de!==32&&de!==9)return P.substring(K,I)}return P.substring(K,me)}function Y(P,K=P.length-1){for(let me=K;me>=0;me--){const I=P.charCodeAt(me);if(I!==32&&I!==9)return me}return-1}function ne(P,K){return P<K?-1:P>K?1:0}function M(P,K,me=0,I=P.length,de=0,ee=K.length){for(;me<I&&de<ee;me++,de++){let Ke=P.charCodeAt(me),ze=K.charCodeAt(de);if(Ke<ze)return-1;if(Ke>ze)return 1}const De=I-me,Te=ee-de;return De<Te?-1:De>Te?1:0}function F(P,K){return D(P,K,0,P.length,0,K.length)}function D(P,K,me=0,I=P.length,de=0,ee=K.length){for(;me<I&&de<ee;me++,de++){let Ke=P.charCodeAt(me),ze=K.charCodeAt(de);if(Ke===ze)continue;if(Ke>=128||ze>=128)return M(P.toLowerCase(),K.toLowerCase(),me,I,de,ee);S(Ke)&&(Ke-=32),S(ze)&&(ze-=32);const Xe=Ke-ze;if(Xe!==0)return Xe}const De=I-me,Te=ee-de;return De<Te?-1:De>Te?1:0}function S(P){return P>=97&&P<=122}function te(P){return P>=65&&P<=90}function X(P,K){return P.length===K.length&&D(P,K)===0}function j(P,K){const me=K.length;return K.length>P.length?!1:D(P,K,0,me)===0}function q(P,K){let me,I=Math.min(P.length,K.length);for(me=0;me<I;me++)if(P.charCodeAt(me)!==K.charCodeAt(me))return me;return I}function ue(P,K){let me,I=Math.min(P.length,K.length);const de=P.length-1,ee=K.length-1;for(me=0;me<I;me++)if(P.charCodeAt(de-me)!==K.charCodeAt(ee-me))return me;return I}function pe(P){return 55296<=P&&P<=56319}function We(P){return 56320<=P&&P<=57343}function G(P,K){return(P-55296<<10)+(K-56320)+65536}function N(P,K,me){const I=P.charCodeAt(me);if(pe(I)&&me+1<K){const de=P.charCodeAt(me+1);if(We(de))return G(I,de)}return I}function W(P,K){const me=P.charCodeAt(K-1);if(We(me)&&K>1){const I=P.charCodeAt(K-2);if(pe(I))return G(I,me)}return me}function $(P,K){const me=Pe.getInstance(),I=K,de=P.length,ee=N(P,de,K);K+=ee>=65536?2:1;let De=me.getGraphemeBreakType(ee);for(;K<de;){const Te=N(P,de,K),Ke=me.getGraphemeBreakType(Te);if(pt(De,Ke))break;K+=Te>=65536?2:1,De=Ke}return K-I}function ie(P,K){const me=Pe.getInstance(),I=K,de=W(P,K);K-=de>=65536?2:1;let ee=me.getGraphemeBreakType(de);for(;K>0;){const De=W(P,K),Te=me.getGraphemeBreakType(De);if(pt(Te,ee))break;K-=De>=65536?2:1,ee=Te}return I-K}const Q=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function g(P){return Q.test(P)}const v=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function z(P){return v.test(P)}const ce=/^[\t\n\r\x20-\x7E]*$/;function je(P){return ce.test(P)}const Ye=/[\u2028\u2029]/;function It(P){return Ye.test(P)}function bt(P){for(let K=0,me=P.length;K<me;K++)if($t(P.charCodeAt(K)))return!0;return!1}function $t(P){return P=+P,P>=11904&&P<=55215||P>=63744&&P<=64255||P>=65281&&P<=65374}function Bt(P){return P>=127462&&P<=127487||P===8986||P===8987||P===9200||P===9203||P>=9728&&P<=10175||P===11088||P===11093||P>=127744&&P<=128591||P>=128640&&P<=128764||P>=128992&&P<=129003||P>=129280&&P<=129535||P>=129648&&P<=129750}const Oe="\uFEFF";function jt(P){return!!(P&&P.length>0&&P.charCodeAt(0)===65279)}function En(P,K=!1){return P?(K&&(P=P.replace(/\\./g,"")),P.toLowerCase()!==P):!1}function Yt(P){return P=P%(2*26),P<26?String.fromCharCode(97+P):String.fromCharCode(65+P-26)}function cn(P){return Pe.getInstance().getGraphemeBreakType(P)}function pt(P,K){return P===0?K!==5&&K!==7:P===2&&K===3?!1:P===4||P===2||P===3||K===4||K===2||K===3?!0:!(P===8&&(K===8||K===9||K===11||K===12)||(P===11||P===9)&&(K===9||K===10)||(P===12||P===10)&&K===10||K===5||K===13||K===7||P===1||P===13&&K===14||P===6&&K===6)}class Pe{constructor(){this._data=be()}static getInstance(){return Pe._INSTANCE||(Pe._INSTANCE=new Pe),Pe._INSTANCE}getGraphemeBreakType(K){if(K<32)return K===10?3:K===13?2:4;if(K<127)return 0;const me=this._data,I=me.length/3;let de=1;for(;de<=I;)if(K<me[3*de])de=2*de;else if(K>me[3*de+1])de=2*de+1;else return me[3*de+2];return 0}}Pe._INSTANCE=null;function be(){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 B(P,K){if(P===0)return 0;const me=Ce(P,K);if(me!==void 0)return me;const I=W(K,P);return P-=He(I),P}function Ce(P,K){let me=W(K,P);for(P-=He(me);Z(me)||me===65039||me===8419;){if(P===0)return;me=W(K,P),P-=He(me)}if(Bt(me)){if(P>=0){const I=W(K,P);I===8205&&(P-=He(I))}return P}}function He(P){return P>=65536?2:1}function Z(P){return 127995<=P&&P<=127999}},72999:function(In,Wt,w){"use strict";w.d(Wt,{$E:function(){return L},$K:function(){return ve},D8:function(){return m},HD:function(){return he},IU:function(){return U},Jp:function(){return oe},Kn:function(){return se},cW:function(){return b},f6:function(){return Y},hj:function(){return ge},jn:function(){return O},kJ:function(){return p},mf:function(){return T},o8:function(){return d},p_:function(){return o},vE:function(){return ne}});function p(M){return Array.isArray(M)}function he(M){return typeof M=="string"}function se(M){return typeof M=="object"&&M!==null&&!Array.isArray(M)&&!(M instanceof RegExp)&&!(M instanceof Date)}function ge(M){return typeof M=="number"&&!isNaN(M)}function O(M){return M===!0||M===!1}function d(M){return typeof M=="undefined"}function ve(M){return!oe(M)}function oe(M){return d(M)||M===null}function o(M,F){if(!M)throw new Error(F?`Unexpected type, expected '${F}'`:"Unexpected type")}function b(M){if(oe(M))throw new Error("Assertion Failed: argument is undefined or null");return M}function T(M){return typeof M=="function"}function m(M,F){const D=Math.min(M.length,F.length);for(let S=0;S<D;S++)y(M[S],F[S])}function y(M,F){if(he(F)){if(typeof M!==F)throw new Error(`argument does not match constraint: typeof ${F}`)}else if(T(F)){try{if(M instanceof F)return}catch(D){}if(!oe(M)&&M.constructor===F||F.length===1&&F.call(void 0,M)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function x(M){let F=[],D=Object.getPrototypeOf(M);for(;Object.prototype!==D;)F=F.concat(Object.getOwnPropertyNames(D)),D=Object.getPrototypeOf(D);return F}function L(M){const F=[];for(const D of x(M))typeof M[D]=="function"&&F.push(D);return F}function U(M,F){const D=te=>function(){const X=Array.prototype.slice.call(arguments,0);return F(te,X)};let S={};for(const te of M)S[te]=D(te);return S}function Y(M){return M===null?void 0:M}function ne(M,F="Unreachable"){throw new Error(F)}},13268:function(In,Wt,w){"use strict";w.d(Wt,{N:function(){return he}});function p(se,ge){let O;return ge.length===0?O=se:O=se.replace(/\{(\d+)\}/g,function(d,ve){const oe=ve[0];return typeof ge[oe]!="undefined"?ge[oe]:d}),O}function he(se,ge,...O){return p(ge,O)}},96236:function(In,Wt,w){"use strict";w.d(Wt,{BH:function(){return U},NZ:function(){return Y},U8:function(){return ne},co:function(){return L},eH:function(){return x},vr:function(){return y}});var p=w(75918),he=w(52615),se=w(4348),ge=w(88226),O=w(69323),d=w(34502),ve=w(35884),oe=w(90689),o=w(16925),b=w(49055),T=function(M,F,D,S){var te=arguments.length,X=te<3?F:S===null?S=Object.getOwnPropertyDescriptor(F,D):S,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(M,F,D,S);else for(var q=M.length-1;q>=0;q--)(j=M[q])&&(X=(te<3?j(X):te>3?j(F,D,X):j(F,D))||X);return te>3&&X&&Object.defineProperty(F,D,X),X},m=function(M,F){return function(D,S){F(D,S,M)}};function y(M){return M.command!==void 0}class x{constructor(F){this.id=x._idPool++,this._debugName=F}}x._idPool=0,x.CommandPalette=new x("CommandPalette"),x.EditorContext=new x("EditorContext"),x.SimpleEditorContext=new x("SimpleEditorContext"),x.EditorContextCopy=new x("EditorContextCopy"),x.EditorContextPeek=new x("EditorContextPeek"),x.MenubarEditMenu=new x("MenubarEditMenu"),x.MenubarCopy=new x("MenubarCopy"),x.MenubarGoMenu=new x("MenubarGoMenu"),x.MenubarSelectionMenu=new x("MenubarSelectionMenu"),x.InlineCompletionsActions=new x("InlineCompletionsActions");const L=(0,o.yh)("menuService"),U=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new se.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:M=>M===x.CommandPalette}}addCommand(M){return this.addCommands(ge.$.single(M))}addCommands(M){for(const F of M)this._commands.set(F.id,F);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,O.OF)(()=>{let F=!1;for(const D of M)F=this._commands.delete(D.id)||F;F&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(M){return this._commands.get(M)}getCommands(){const M=new Map;return this._commands.forEach((F,D)=>M.set(D,F)),M}appendMenuItem(M,F){return this.appendMenuItems(ge.$.single({id:M,item:F}))}appendMenuItems(M){const F=new Set,D=new d.S;for(const{id:S,item:te}of M){let X=this._menuItems.get(S);X||(X=new d.S,this._menuItems.set(S,X)),D.push(X.push(te)),F.add(S)}return this._onDidChangeMenu.fire(F),(0,O.OF)(()=>{if(D.size>0){for(let S of D)S();this._onDidChangeMenu.fire(F),D.clear()}})}getMenuItems(M){let F;return this._menuItems.has(M)?F=[...this._menuItems.get(M)]:F=[],M===x.CommandPalette&&this._appendImplicitItems(F),F}_appendImplicitItems(M){const F=new Set;for(const D of M)y(D)&&(F.add(D.command.id),D.alt&&F.add(D.alt.id));this._commands.forEach((D,S)=>{F.has(S)||M.push({command:D})})}};class Y extends p.wY{constructor(F,D,S,te){super(`submenuitem.${F.submenu.id}`,typeof F.title=="string"?F.title:F.title.value,[],"submenu"),this.item=F,this._menuService=D,this._contextKeyService=S,this._options=te}get actions(){const F=[],D=this._menuService.createMenu(this.item.submenu,this._contextKeyService),S=D.getActions(this._options);D.dispose();for(const[,te]of S)te.length>0&&(F.push(...te),F.push(new p.Z0));return F.length&&F.pop(),F}}let ne=class ml{constructor(F,D,S,te,X){var j,q;if(this._commandService=X,this.id=F.id,this.label=S!=null&&S.renderShortTitle&&F.shortTitle?typeof F.shortTitle=="string"?F.shortTitle:F.shortTitle.value:typeof F.title=="string"?F.title:F.title.value,this.tooltip=(q=typeof F.tooltip=="string"?F.tooltip:(j=F.tooltip)===null||j===void 0?void 0:j.value)!==null&&q!==void 0?q:"",this.enabled=!F.precondition||te.contextMatchesRules(F.precondition),this.checked=void 0,F.toggled){const ue=F.toggled.condition?F.toggled:{condition:F.toggled};this.checked=te.contextMatchesRules(ue.condition),this.checked&&ue.tooltip&&(this.tooltip=typeof ue.tooltip=="string"?ue.tooltip:ue.tooltip.value),ue.title&&(this.label=typeof ue.title=="string"?ue.title:ue.title.value)}this.item=F,this.alt=D?new ml(D,void 0,S,te,X):void 0,this._options=S,b.kS.isThemeIcon(F.icon)&&(this.class=he.dT.asClassName(F.icon))}dispose(){}run(...F){var D,S;let te=[];return!((D=this._options)===null||D===void 0)&&D.arg&&(te=[...te,this._options.arg]),!((S=this._options)===null||S===void 0)&&S.shouldForwardArgs&&(te=[...te,...F]),this._commandService.executeCommand(this.id,...te)}};ne=T([m(3,oe.i6),m(4,ve.H)],ne)},35884:function(In,Wt,w){"use strict";w.d(Wt,{H:function(){return ve},P:function(){return oe}});var p=w(4348),he=w(88226),se=w(69323),ge=w(34502),O=w(72999),d=w(16925);const ve=(0,d.yh)("commandService"),oe=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new p.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,b){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!b)throw new Error("invalid command");return this.registerCommand({id:o,handler:b})}if(o.description){const L=[];for(let Y of o.description.args)L.push(Y.constraint);const U=o.handler;o.handler=function(Y,...ne){return(0,O.D8)(ne,L),U(Y,...ne)}}const{id:T}=o;let m=this._commands.get(T);m||(m=new ge.S,this._commands.set(T,m));let y=m.unshift(o),x=(0,se.OF)(()=>{y();const L=this._commands.get(T);L!=null&&L.isEmpty()&&this._commands.delete(T)});return this._onDidRegisterCommand.fire(T),x}registerCommandAlias(o,b){return oe.registerCommand(o,(T,...m)=>T.get(ve).executeCommand(b,...m))}getCommand(o){const b=this._commands.get(o);if(!(!b||b.isEmpty()))return he.$.first(b)}getCommands(){const o=new Map;for(const b of this._commands.keys()){const T=this.getCommand(b);T&&o.set(b,T)}return o}};oe.registerCommand("noop",()=>{})},90689:function(In,Wt,w){"use strict";w.d(Wt,{Ao:function(){return ve},Eq:function(){return G},Fb:function(){return oe},K8:function(){return $},i6:function(){return We},uy:function(){return pe}});var p=w(23345),he=w(82983),se=w(16925);let ge=p.WE||"";const O=new Map;O.set("false",!1),O.set("true",!0),O.set("isMac",p.dz),O.set("isLinux",p.IJ),O.set("isWindows",p.ED),O.set("isWeb",p.$L),O.set("isMacNative",p.dz&&!p.$L),O.set("isEdge",ge.indexOf("Edg/")>=0),O.set("isFirefox",ge.indexOf("Firefox")>=0),O.set("isChrome",ge.indexOf("Chrome")>=0),O.set("isSafari",ge.indexOf("Safari")>=0);const d=Object.prototype.hasOwnProperty;class ve{static has(g){return m.create(g)}static equals(g,v){return y.create(g,v)}static regex(g,v){return te.create(g,v)}static not(g){return Y.create(g)}static and(...g){return q.create(g,null)}static or(...g){return ue.create(g,null,!0)}static deserialize(g,v=!1){if(g)return this._deserializeOrExpression(g,v)}static _deserializeOrExpression(g,v){let z=g.split("||");return ue.create(z.map(ce=>this._deserializeAndExpression(ce,v)),null,!0)}static _deserializeAndExpression(g,v){let z=g.split("&&");return q.create(z.map(ce=>this._deserializeOne(ce,v)),null)}static _deserializeOne(g,v){if(g=g.trim(),g.indexOf("!=")>=0){let z=g.split("!=");return U.create(z[0].trim(),this._deserializeValue(z[1],v))}if(g.indexOf("==")>=0){let z=g.split("==");return y.create(z[0].trim(),this._deserializeValue(z[1],v))}if(g.indexOf("=~")>=0){let z=g.split("=~");return te.create(z[0].trim(),this._deserializeRegexValue(z[1],v))}if(g.indexOf(" in ")>=0){let z=g.split(" in ");return x.create(z[0].trim(),z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const z=g.split(">=");return F.create(z[0].trim(),z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const z=g.split(">");return M.create(z[0].trim(),z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const z=g.split("<=");return S.create(z[0].trim(),z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const z=g.split("<");return D.create(z[0].trim(),z[1].trim())}return/^\!\s*/.test(g)?Y.create(g.substr(1).trim()):m.create(g)}static _deserializeValue(g,v){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let z=/^'([^']*)'$/.exec(g);return z?z[1].trim():g}static _deserializeRegexValue(g,v){if((0,he.m5)(g)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let z=g.indexOf("/"),ce=g.lastIndexOf("/");if(z===ce||z<0){if(v)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let je=g.slice(z+1,ce),Ye=g[ce+1]==="i"?"i":"";try{return new RegExp(je,Ye)}catch(It){if(v)throw new Error(`bad regexp-value '${g}', parse error: ${It}`);return console.warn(`bad regexp-value '${g}', parse error: ${It}`),null}}}function oe(Q,g){const v=Q?Q.substituteConstants():void 0,z=g?g.substituteConstants():void 0;return!v&&!z?!0:!v||!z?!1:v.equals(z)}function o(Q,g){return Q.cmp(g)}class b{constructor(){this.type=0}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!1}serialize(){return"false"}keys(){return[]}negate(){return T.INSTANCE}}b.INSTANCE=new b;class T{constructor(){this.type=1}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!0}serialize(){return"true"}keys(){return[]}negate(){return b.INSTANCE}}T.INSTANCE=new T;class m{constructor(g,v){this.key=g,this.negated=v,this.type=2}static create(g,v=null){const z=O.get(g);return typeof z=="boolean"?z?T.INSTANCE:b.INSTANCE:new m(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:N(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=O.get(this.key);return typeof g=="boolean"?g?T.INSTANCE:b.INSTANCE:this}evaluate(g){return!!g.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Y.create(this.key,this)),this.negated}}class y{constructor(g,v,z){this.key=g,this.value=v,this.negated=z,this.type=4}static create(g,v,z=null){if(typeof v=="boolean")return v?m.create(g,z):Y.create(g,z);const ce=O.get(g);return typeof ce=="boolean"?v===(ce?"true":"false")?T.INSTANCE:b.INSTANCE:new y(g,v,z)}cmp(g){return g.type!==this.type?this.type-g.type:W(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=O.get(this.key);if(typeof g=="boolean"){const v=g?"true":"false";return this.value===v?T.INSTANCE:b.INSTANCE}return this}evaluate(g){return g.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class x{constructor(g,v){this.key=g,this.valueKey=v,this.type=10,this.negated=null}static create(g,v){return new x(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:W(this.key,this.valueKey,g.key,g.valueKey)}equals(g){return g.type===this.type?this.key===g.key&&this.valueKey===g.valueKey:!1}substituteConstants(){return this}evaluate(g){const v=g.getValue(this.valueKey),z=g.getValue(this.key);return Array.isArray(v)?v.indexOf(z)>=0:typeof z=="string"&&typeof v=="object"&&v!==null?d.call(v,z):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=L.create(this)),this.negated}}class L{constructor(g){this._actual=g,this.type=11}static create(g){return new L(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class U{constructor(g,v,z){this.key=g,this.value=v,this.negated=z,this.type=5}static create(g,v,z=null){if(typeof v=="boolean")return v?Y.create(g,z):m.create(g,z);const ce=O.get(g);return typeof ce=="boolean"?v===(ce?"true":"false")?b.INSTANCE:T.INSTANCE:new U(g,v,z)}cmp(g){return g.type!==this.type?this.type-g.type:W(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=O.get(this.key);if(typeof g=="boolean"){const v=g?"true":"false";return this.value===v?b.INSTANCE:T.INSTANCE}return this}evaluate(g){return g.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 Y{constructor(g,v){this.key=g,this.negated=v,this.type=3}static create(g,v=null){const z=O.get(g);return typeof z=="boolean"?z?b.INSTANCE:T.INSTANCE:new Y(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:N(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=O.get(this.key);return typeof g=="boolean"?g?b.INSTANCE:T.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function ne(Q,g){if(typeof Q=="string"){const v=parseFloat(Q);isNaN(v)||(Q=v)}return typeof Q=="string"||typeof Q=="number"?g(Q):b.INSTANCE}class M{constructor(g,v,z){this.key=g,this.value=v,this.negated=z,this.type=12}static create(g,v,z=null){return ne(v,ce=>new M(g,ce,z))}cmp(g){return g.type!==this.type?this.type-g.type:W(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this.value,this)),this.negated}}class F{constructor(g,v,z){this.key=g,this.value=v,this.negated=z,this.type=13}static create(g,v,z=null){return ne(v,ce=>new F(g,ce,z))}cmp(g){return g.type!==this.type?this.type-g.type:W(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class D{constructor(g,v,z){this.key=g,this.value=v,this.negated=z,this.type=14}static create(g,v,z=null){return ne(v,ce=>new D(g,ce,z))}cmp(g){return g.type!==this.type?this.type-g.type:W(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.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 S{constructor(g,v,z){this.key=g,this.value=v,this.negated=z,this.type=15}static create(g,v,z=null){return ne(v,ce=>new S(g,ce,z))}cmp(g){return g.type!==this.type?this.type-g.type:W(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=M.create(this.key,this.value,this)),this.negated}}class te{constructor(g,v){this.key=g,this.regexp=v,this.type=7,this.negated=null}static create(g,v){return new te(g,v)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.key<g.key)return-1;if(this.key>g.key)return 1;const v=this.regexp?this.regexp.source:"",z=g.regexp?g.regexp.source:"";return v<z?-1:v>z?1:0}equals(g){if(g.type===this.type){const v=this.regexp?this.regexp.source:"",z=g.regexp?g.regexp.source:"";return this.key===g.key&&v===z}return!1}substituteConstants(){return this}evaluate(g){let v=g.getValue(this.key);return this.regexp?this.regexp.test(v):!1}serialize(){const g=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${g}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=X.create(this)),this.negated}}class X{constructor(g){this._actual=g,this.type=8}static create(g){return new X(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function j(Q){let g=null;for(let v=0,z=Q.length;v<z;v++){const ce=Q[v].substituteConstants();if(Q[v]!==ce&&g===null){g=[];for(let je=0;je<v;je++)g[je]=Q[je]}g!==null&&(g[v]=ce)}return g===null?Q:g}class q{constructor(g,v){this.expr=g,this.negated=v,this.type=6}static create(g,v){return q._normalizeArr(g,v)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let v=0,z=this.expr.length;v<z;v++){const ce=o(this.expr[v],g.expr[v]);if(ce!==0)return ce}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let v=0,z=this.expr.length;v<z;v++)if(!this.expr[v].equals(g.expr[v]))return!1;return!0}return!1}substituteConstants(){const g=j(this.expr);return g===this.expr?this:q.create(g,this.negated)}evaluate(g){for(let v=0,z=this.expr.length;v<z;v++)if(!this.expr[v].evaluate(g))return!1;return!0}static _normalizeArr(g,v){const z=[];let ce=!1;for(const je of g)if(je){if(je.type===1){ce=!0;continue}if(je.type===0)return b.INSTANCE;if(je.type===6){z.push(...je.expr);continue}z.push(je)}if(z.length===0&&ce)return T.INSTANCE;if(z.length!==0){if(z.length===1)return z[0];z.sort(o);for(let je=1;je<z.length;je++)z[je-1].equals(z[je])&&(z.splice(je,1),je--);if(z.length===1)return z[0];for(;z.length>1;){const je=z[z.length-1];if(je.type!==9)break;z.pop();const Ye=z.pop(),It=z.length===0,bt=ue.create(je.expr.map($t=>q.create([$t,Ye],null)),null,It);bt&&(z.push(bt),z.sort(o))}return z.length===1?z[0]:new q(z,v)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let v of this.expr)g.push(...v.keys());return g}negate(){if(!this.negated){const g=[];for(let v of this.expr)g.push(v.negate());this.negated=ue.create(g,this,!0)}return this.negated}}class ue{constructor(g,v){this.expr=g,this.negated=v,this.type=9}static create(g,v,z){return ue._normalizeArr(g,v,z)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let v=0,z=this.expr.length;v<z;v++){const ce=o(this.expr[v],g.expr[v]);if(ce!==0)return ce}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let v=0,z=this.expr.length;v<z;v++)if(!this.expr[v].equals(g.expr[v]))return!1;return!0}return!1}substituteConstants(){const g=j(this.expr);return g===this.expr?this:ue.create(g,this.negated,!1)}evaluate(g){for(let v=0,z=this.expr.length;v<z;v++)if(this.expr[v].evaluate(g))return!0;return!1}static _normalizeArr(g,v,z){let ce=[],je=!1;if(g){for(let Ye=0,It=g.length;Ye<It;Ye++){const bt=g[Ye];if(bt){if(bt.type===0){je=!0;continue}if(bt.type===1)return T.INSTANCE;if(bt.type===9){ce=ce.concat(bt.expr);continue}ce.push(bt)}}if(ce.length===0&&je)return b.INSTANCE;ce.sort(o)}if(ce.length!==0){if(ce.length===1)return ce[0];for(let Ye=1;Ye<ce.length;Ye++)ce[Ye-1].equals(ce[Ye])&&(ce.splice(Ye,1),Ye--);if(ce.length===1)return ce[0];if(z){for(let Ye=0;Ye<ce.length;Ye++)for(let It=Ye+1;It<ce.length;It++)$(ce[Ye],ce[It])&&(ce.splice(It,1),It--);if(ce.length===1)return ce[0]}return new ue(ce,v)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let v of this.expr)g.push(...v.keys());return g}negate(){if(!this.negated){let g=[];for(let v of this.expr)g.push(v.negate());for(;g.length>1;){const v=g.shift(),z=g.shift(),ce=[];for(const Ye of ie(v))for(const It of ie(z))ce.push(q.create([Ye,It],null));const je=g.length===0;g.unshift(ue.create(ce,null,je))}this.negated=g[0]}return this.negated}}class pe extends m{constructor(g,v,z){super(g,null),this._defaultValue=v,typeof z=="object"?pe._info.push(Object.assign(Object.assign({},z),{key:g})):z!==!0&&pe._info.push({key:g,description:z,type:v!=null?typeof v:void 0})}static all(){return pe._info.values()}bindTo(g){return g.createKey(this.key,this._defaultValue)}getValue(g){return g.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(g){return y.create(this.key,g)}}pe._info=[];const We=(0,se.yh)("contextKeyService"),G="setContext";function N(Q,g){return Q<g?-1:Q>g?1:0}function W(Q,g,v,z){return Q<v?-1:Q>v?1:g<z?-1:g>z?1:0}function $(Q,g){if(g.type===6&&Q.type!==9&&Q.type!==6){for(const ce of g.expr)if(Q.equals(ce))return!0}const v=Q.negate(),z=ie(v).concat(ie(g));z.sort(o);for(let ce=0;ce<z.length;ce++){const Ye=z[ce].negate();for(let It=ce+1;It<z.length;It++){const bt=z[It];if(Ye.equals(bt))return!0}}return!1}function ie(Q){return Q.type===9?Q.expr:[Q]}},16925:function(In,Wt,w){"use strict";w.d(Wt,{I8:function(){return p},TG:function(){return he},jt:function(){return O},yh:function(){return ge}});var p;(function(d){d.serviceIds=new Map,d.DI_TARGET="$di$target",d.DI_DEPENDENCIES="$di$dependencies";function ve(oe){return oe[d.DI_DEPENDENCIES]||[]}d.getServiceDependencies=ve})(p||(p={}));const he=ge("instantiationService");function se(d,ve,oe,o){ve[p.DI_TARGET]===ve?ve[p.DI_DEPENDENCIES].push({id:d,index:oe,optional:o}):(ve[p.DI_DEPENDENCIES]=[{id:d,index:oe,optional:o}],ve[p.DI_TARGET]=ve)}function ge(d){if(p.serviceIds.has(d))return p.serviceIds.get(d);const ve=function(oe,o,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");se(ve,oe,b,!1)};return ve.toString=()=>d,p.serviceIds.set(d,ve),ve}function O(d){return function(ve,oe,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");se(d,ve,o,!0)}}},44650:function(In,Wt,w){"use strict";w.d(Wt,{B:function(){return ge}});var p=w(76068),he=w(72999);class se{constructor(){this.data=new Map}add(d,ve){p.ok(he.HD(d)),p.ok(he.Kn(ve)),p.ok(!this.data.has(d),"There is already an extension with this id"),this.data.set(d,ve)}as(d){return this.data.get(d)||null}}const ge=new se},66213:function(In,Wt,w){"use strict";w.d(Wt,{e:function(){return p}});var p;(function(he){he.DARK="dark",he.LIGHT="light",he.HIGH_CONTRAST="hc"})(p||(p={}))},49055:function(In,Wt,w){"use strict";w.d(Wt,{EN:function(){return o},IP:function(){return m},Ic:function(){return L},XE:function(){return ve},bB:function(){return U},kS:function(){return b},m6:function(){return T}});var p=w(52615),he=w(4348),se=w(69323),ge=w(16925),O=w(44650),d=w(66213);const ve=(0,ge.yh)("themeService");var oe;(function(Y){function ne(M){return M&&typeof M=="object"&&typeof M.id=="string"}Y.isThemeColor=ne})(oe||(oe={}));function o(Y){return{id:Y}}var b;(function(Y){function ne(X){return X&&typeof X=="object"&&typeof X.id=="string"&&(typeof X.color=="undefined"||oe.isThemeColor(X.color))}Y.isThemeIcon=ne;const M=new RegExp(`^\\$\\((${p.dT.iconNameExpression}(?:${p.dT.iconModifierExpression})?)\\)$`);function F(X){const j=M.exec(X);if(!j)return;let[,q]=j;return{id:q}}Y.fromString=F;function D(X,j){let q=X.id;const ue=q.lastIndexOf("~");return ue!==-1&&(q=q.substring(0,ue)),j&&(q=`${q}~${j}`),{id:q}}Y.modify=D;function S(X,j){var q,ue;return X.id===j.id&&((q=X.color)===null||q===void 0?void 0:q.id)===((ue=j.color)===null||ue===void 0?void 0:ue.id)}Y.isEqual=S;function te(X,j){return{id:X.id,color:j?o(j):void 0}}Y.asThemeIcon=te,Y.asClassNameArray=p.dT.asClassNameArray,Y.asClassName=p.dT.asClassName,Y.asCSSSelector=p.dT.asCSSSelector})(b||(b={}));function T(Y){switch(Y){case d.e.DARK:return"vs-dark";case d.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const m={ThemingContribution:"base.contributions.theming"};class y{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new he.Q5}onColorThemeChange(ne){return this.themingParticipants.push(ne),this.onThemingParticipantAddedEmitter.fire(ne),(0,se.OF)(()=>{const M=this.themingParticipants.indexOf(ne);this.themingParticipants.splice(M,1)})}getThemingParticipants(){return this.themingParticipants}}let x=new y;O.B.add(m.ThemingContribution,x);function L(Y){return x.onColorThemeChange(Y)}class U extends se.JT{constructor(ne){super(),this.themeService=ne,this.theme=ne.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(M=>this.onThemeChange(M)))}onThemeChange(ne){this.theme=ne,this.updateStyles()}updateStyles(){}}},16632:function(In,Wt,w){"use strict";var p=w(72308),he=w(77321),se=w(49618),ge=w(52487),O=w(74416),d=w(92310),ve=w.n(d),oe=w(18929),o=w(59301),b=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],T=(0,o.forwardRef)(function(m,y){var x=m.prefixCls,L=x===void 0?"rc-checkbox":x,U=m.className,Y=m.style,ne=m.checked,M=m.disabled,F=m.defaultChecked,D=F===void 0?!1:F,S=m.type,te=S===void 0?"checkbox":S,X=m.title,j=m.onChange,q=(0,O.Z)(m,b),ue=(0,o.useRef)(null),pe=(0,o.useRef)(null),We=(0,oe.Z)(D,{value:ne}),G=(0,ge.Z)(We,2),N=G[0],W=G[1];(0,o.useImperativeHandle)(y,function(){return{focus:function(g){var v;(v=ue.current)===null||v===void 0||v.focus(g)},blur:function(){var g;(g=ue.current)===null||g===void 0||g.blur()},input:ue.current,nativeElement:pe.current}});var $=ve()(L,U,(0,se.Z)((0,se.Z)({},"".concat(L,"-checked"),N),"".concat(L,"-disabled"),M)),ie=function(g){M||("checked"in m||W(g.target.checked),j==null||j({target:(0,he.Z)((0,he.Z)({},m),{},{type:te,checked:g.target.checked}),stopPropagation:function(){g.stopPropagation()},preventDefault:function(){g.preventDefault()},nativeEvent:g.nativeEvent}))};return o.createElement("span",{className:$,title:X,style:Y,ref:pe},o.createElement("input",(0,p.Z)({},q,{className:"".concat(L,"-input"),ref:ue,onChange:ie,disabled:M,checked:!!N,type:te})),o.createElement("span",{className:"".concat(L,"-inner")}))});Wt.Z=T},96478:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return X}});var p=w(72308),he=w(49618),se=w(52487),ge=w(74416),O=w(65352),d=w(92310),ve=w.n(d),oe=w(8654),o=w(59301),b=w(10228),T=w(16089),m=b.Z.ESC,y=b.Z.TAB;function x(j){var q=j.visible,ue=j.triggerRef,pe=j.onVisibleChange,We=j.autoFocus,G=j.overlayRef,N=o.useRef(!1),W=function(){if(q){var g,v;(g=ue.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),pe==null||pe(!1)}},$=function(){var g;return(g=G.current)!==null&&g!==void 0&&g.focus?(G.current.focus(),N.current=!0,!0):!1},ie=function(g){switch(g.keyCode){case m:W();break;case y:{var v=!1;N.current||(v=$()),v?g.preventDefault():W();break}}};o.useEffect(function(){return q?(window.addEventListener("keydown",ie),We&&(0,T.Z)($,3),function(){window.removeEventListener("keydown",ie),N.current=!1}):function(){N.current=!1}},[q])}var L=(0,o.forwardRef)(function(j,q){var ue=j.overlay,pe=j.arrow,We=j.prefixCls,G=(0,o.useMemo)(function(){var W;return typeof ue=="function"?W=ue():W=ue,W},[ue]),N=(0,oe.sQ)(q,(0,oe.C4)(G));return o.createElement(o.Fragment,null,pe&&o.createElement("div",{className:"".concat(We,"-arrow")}),o.cloneElement(G,{ref:(0,oe.Yr)(G)?N:void 0}))}),U=L,Y={adjustX:1,adjustY:1},ne=[0,0],M={topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:ne},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:ne},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:ne},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:ne},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:ne},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:ne}},F=M,D=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function S(j,q){var ue,pe=j.arrow,We=pe===void 0?!1:pe,G=j.prefixCls,N=G===void 0?"rc-dropdown":G,W=j.transitionName,$=j.animation,ie=j.align,Q=j.placement,g=Q===void 0?"bottomLeft":Q,v=j.placements,z=v===void 0?F:v,ce=j.getPopupContainer,je=j.showAction,Ye=j.hideAction,It=j.overlayClassName,bt=j.overlayStyle,$t=j.visible,Bt=j.trigger,Oe=Bt===void 0?["hover"]:Bt,jt=j.autoFocus,En=j.overlay,Yt=j.children,cn=j.onVisibleChange,pt=(0,ge.Z)(j,D),Pe=o.useState(),be=(0,se.Z)(Pe,2),B=be[0],Ce=be[1],He="visible"in j?$t:B,Z=o.useRef(null),P=o.useRef(null),K=o.useRef(null);o.useImperativeHandle(q,function(){return Z.current});var me=function(ot){Ce(ot),cn==null||cn(ot)};x({visible:He,triggerRef:K,onVisibleChange:me,autoFocus:jt,overlayRef:P});var I=function(ot){var _e=j.onOverlayClick;Ce(!1),_e&&_e(ot)},de=function(){return o.createElement(U,{ref:P,overlay:En,prefixCls:N,arrow:We})},ee=function(){return typeof En=="function"?de:de()},De=function(){var ot=j.minOverlayWidthMatchTrigger,_e=j.alignPoint;return"minOverlayWidthMatchTrigger"in j?ot:!_e},Te=function(){var ot=j.openClassName;return ot!==void 0?ot:"".concat(N,"-open")},Ke=o.cloneElement(Yt,{className:ve()((ue=Yt.props)===null||ue===void 0?void 0:ue.className,He&&Te()),ref:(0,oe.Yr)(Yt)?(0,oe.sQ)(K,(0,oe.C4)(Yt)):void 0}),ze=Ye;return!ze&&Oe.indexOf("contextMenu")!==-1&&(ze=["click"]),o.createElement(O.Z,(0,p.Z)({builtinPlacements:z},pt,{prefixCls:N,ref:Z,popupClassName:ve()(It,(0,he.Z)({},"".concat(N,"-show-arrow"),We)),popupStyle:bt,action:Oe,showAction:je,hideAction:ze,popupPlacement:g,popupAlign:ie,popupTransitionName:W,popupAnimation:$,popupVisible:He,stretch:De()?"minWidth":"",popup:ee(),onPopupVisibleChange:me,onPopupClick:I,getPopupContainer:ce}),Ke)}var te=o.forwardRef(S),X=te},66003:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return ve}});var p=w(74416),he=w(77321),se=w(62853),ge=w(59301),O=["show"];function d(oe,o){if(!o.max)return!0;var b=o.strategy(oe);return b<=o.max}function ve(oe,o){return ge.useMemo(function(){var b={};o&&(b.show=(0,se.Z)(o)==="object"&&o.formatter?o.formatter:!!o),b=(0,he.Z)((0,he.Z)({},b),oe);var T=b,m=T.show,y=(0,p.Z)(T,O);return(0,he.Z)((0,he.Z)({},y),{},{show:!!m,showFormatter:typeof m=="function"?m:void 0,strategy:y.strategy||function(x){return x.length}})},[oe,o])}},36901:function(In,Wt,w){"use strict";w.r(Wt),w.d(Wt,{BaseInput:function(){return b},default:function(){return F}});var p=w(77321),he=w(72308),se=w(49618),ge=w(62853),O=w(92310),d=w.n(O),ve=w(59301),oe=w(30292),o=ve.forwardRef(function(D,S){var te,X,j,q=D.inputElement,ue=D.children,pe=D.prefixCls,We=D.prefix,G=D.suffix,N=D.addonBefore,W=D.addonAfter,$=D.className,ie=D.style,Q=D.disabled,g=D.readOnly,v=D.focused,z=D.triggerFocus,ce=D.allowClear,je=D.value,Ye=D.handleReset,It=D.hidden,bt=D.classes,$t=D.classNames,Bt=D.dataAttrs,Oe=D.styles,jt=D.components,En=D.onClear,Yt=ue!=null?ue:q,cn=(jt==null?void 0:jt.affixWrapper)||"span",pt=(jt==null?void 0:jt.groupWrapper)||"span",Pe=(jt==null?void 0:jt.wrapper)||"span",be=(jt==null?void 0:jt.groupAddon)||"span",B=(0,ve.useRef)(null),Ce=function(at){var Qe;(Qe=B.current)!==null&&Qe!==void 0&&Qe.contains(at.target)&&(z==null||z())},He=(0,oe.X3)(D),Z=(0,ve.cloneElement)(Yt,{value:je,className:d()((te=Yt.props)===null||te===void 0?void 0:te.className,!He&&($t==null?void 0:$t.variant))||null}),P=(0,ve.useRef)(null);if(ve.useImperativeHandle(S,function(){return{nativeElement:P.current||B.current}}),He){var K=null;if(ce){var me=!Q&&!g&&je,I="".concat(pe,"-clear-icon"),de=(0,ge.Z)(ce)==="object"&&ce!==null&&ce!==void 0&&ce.clearIcon?ce.clearIcon:"\u2716";K=ve.createElement("button",{type:"button",tabIndex:-1,onClick:function(at){Ye==null||Ye(at),En==null||En()},onMouseDown:function(at){return at.preventDefault()},className:d()(I,(0,se.Z)((0,se.Z)({},"".concat(I,"-hidden"),!me),"".concat(I,"-has-suffix"),!!G))},de)}var ee="".concat(pe,"-affix-wrapper"),De=d()(ee,(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)({},"".concat(pe,"-disabled"),Q),"".concat(ee,"-disabled"),Q),"".concat(ee,"-focused"),v),"".concat(ee,"-readonly"),g),"".concat(ee,"-input-with-clear-btn"),G&&ce&&je),bt==null?void 0:bt.affixWrapper,$t==null?void 0:$t.affixWrapper,$t==null?void 0:$t.variant),Te=(G||ce)&&ve.createElement("span",{className:d()("".concat(pe,"-suffix"),$t==null?void 0:$t.suffix),style:Oe==null?void 0:Oe.suffix},K,G);Z=ve.createElement(cn,(0,he.Z)({className:De,style:Oe==null?void 0:Oe.affixWrapper,onClick:Ce},Bt==null?void 0:Bt.affixWrapper,{ref:B}),We&&ve.createElement("span",{className:d()("".concat(pe,"-prefix"),$t==null?void 0:$t.prefix),style:Oe==null?void 0:Oe.prefix},We),Z,Te)}if((0,oe.He)(D)){var Ke="".concat(pe,"-group"),ze="".concat(Ke,"-addon"),Xe="".concat(Ke,"-wrapper"),ot=d()("".concat(pe,"-wrapper"),Ke,bt==null?void 0:bt.wrapper,$t==null?void 0:$t.wrapper),_e=d()(Xe,(0,se.Z)({},"".concat(Xe,"-disabled"),Q),bt==null?void 0:bt.group,$t==null?void 0:$t.groupWrapper);Z=ve.createElement(pt,{className:_e,ref:P},ve.createElement(Pe,{className:ot},N&&ve.createElement(be,{className:ze},N),Z,W&&ve.createElement(be,{className:ze},W)))}return ve.cloneElement(Z,{className:d()((X=Z.props)===null||X===void 0?void 0:X.className,$)||null,style:(0,p.Z)((0,p.Z)({},(j=Z.props)===null||j===void 0?void 0:j.style),ie),hidden:It})}),b=o,T=w(80702),m=w(52487),y=w(74416),x=w(18929),L=w(2738),U=w(66003),Y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ne=(0,ve.forwardRef)(function(D,S){var te=D.autoComplete,X=D.onChange,j=D.onFocus,q=D.onBlur,ue=D.onPressEnter,pe=D.onKeyDown,We=D.onKeyUp,G=D.prefixCls,N=G===void 0?"rc-input":G,W=D.disabled,$=D.htmlSize,ie=D.className,Q=D.maxLength,g=D.suffix,v=D.showCount,z=D.count,ce=D.type,je=ce===void 0?"text":ce,Ye=D.classes,It=D.classNames,bt=D.styles,$t=D.onCompositionStart,Bt=D.onCompositionEnd,Oe=(0,y.Z)(D,Y),jt=(0,ve.useState)(!1),En=(0,m.Z)(jt,2),Yt=En[0],cn=En[1],pt=(0,ve.useRef)(!1),Pe=(0,ve.useRef)(!1),be=(0,ve.useRef)(null),B=(0,ve.useRef)(null),Ce=function(Qt){be.current&&(0,oe.nH)(be.current,Qt)},He=(0,x.Z)(D.defaultValue,{value:D.value}),Z=(0,m.Z)(He,2),P=Z[0],K=Z[1],me=P==null?"":String(P),I=(0,ve.useState)(null),de=(0,m.Z)(I,2),ee=de[0],De=de[1],Te=(0,U.Z)(z,v),Ke=Te.max||Q,ze=Te.strategy(me),Xe=!!Ke&&ze>Ke;(0,ve.useImperativeHandle)(S,function(){var Tt;return{focus:Ce,blur:function(){var Be;(Be=be.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,ke,Ne){var k;(k=be.current)===null||k===void 0||k.setSelectionRange(Be,ke,Ne)},select:function(){var Be;(Be=be.current)===null||Be===void 0||Be.select()},input:be.current,nativeElement:((Tt=B.current)===null||Tt===void 0?void 0:Tt.nativeElement)||be.current}}),(0,ve.useEffect)(function(){Pe.current&&(Pe.current=!1),cn(function(Tt){return Tt&&W?!1:Tt})},[W]);var ot=function(Qt,Be,ke){var Ne=Be;if(!pt.current&&Te.exceedFormatter&&Te.max&&Te.strategy(Be)>Te.max){if(Ne=Te.exceedFormatter(Be,{max:Te.max}),Be!==Ne){var k,ae;De([((k=be.current)===null||k===void 0?void 0:k.selectionStart)||0,((ae=be.current)===null||ae===void 0?void 0:ae.selectionEnd)||0])}}else if(ke.source==="compositionEnd")return;K(Ne),be.current&&(0,oe.rJ)(be.current,Qt,X,Ne)};(0,ve.useEffect)(function(){if(ee){var Tt;(Tt=be.current)===null||Tt===void 0||Tt.setSelectionRange.apply(Tt,(0,T.Z)(ee))}},[ee]);var _e=function(Qt){ot(Qt,Qt.target.value,{source:"change"})},Re=function(Qt){pt.current=!1,ot(Qt,Qt.currentTarget.value,{source:"compositionEnd"}),Bt==null||Bt(Qt)},at=function(Qt){ue&&Qt.key==="Enter"&&!Pe.current&&(Pe.current=!0,ue(Qt)),pe==null||pe(Qt)},Qe=function(Qt){Qt.key==="Enter"&&(Pe.current=!1),We==null||We(Qt)},Ge=function(Qt){cn(!0),j==null||j(Qt)},_t=function(Qt){Pe.current&&(Pe.current=!1),cn(!1),q==null||q(Qt)},Dt=function(Qt){K(""),Ce(),be.current&&(0,oe.rJ)(be.current,Qt,X)},rt=Xe&&"".concat(N,"-out-of-range"),Kt=function(){var Qt=(0,L.Z)(D,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",(0,he.Z)({autoComplete:te},Qt,{onChange:_e,onFocus:Ge,onBlur:_t,onKeyDown:at,onKeyUp:Qe,className:d()(N,(0,se.Z)({},"".concat(N,"-disabled"),W),It==null?void 0:It.input),style:bt==null?void 0:bt.input,ref:be,size:$,type:je,onCompositionStart:function(ke){pt.current=!0,$t==null||$t(ke)},onCompositionEnd:Re}))},fn=function(){var Qt=Number(Ke)>0;if(g||Te.show){var Be=Te.showFormatter?Te.showFormatter({value:me,count:ze,maxLength:Ke}):"".concat(ze).concat(Qt?" / ".concat(Ke):"");return ve.createElement(ve.Fragment,null,Te.show&&ve.createElement("span",{className:d()("".concat(N,"-show-count-suffix"),(0,se.Z)({},"".concat(N,"-show-count-has-suffix"),!!g),It==null?void 0:It.count),style:(0,p.Z)({},bt==null?void 0:bt.count)},Be),g)}return null};return ve.createElement(b,(0,he.Z)({},Oe,{prefixCls:N,className:d()(ie,rt),handleReset:Dt,value:me,focused:Yt,triggerFocus:Ce,suffix:fn(),disabled:W,classes:Ye,classNames:It,styles:bt}),Kt())}),M=ne,F=M},30292:function(In,Wt,w){"use strict";w.d(Wt,{He:function(){return p},X3:function(){return he},nH:function(){return O},rJ:function(){return ge}});function p(d){return!!(d.addonBefore||d.addonAfter)}function he(d){return!!(d.prefix||d.suffix||d.allowClear)}function se(d,ve,oe){var o=ve.cloneNode(!0),b=Object.create(d,{target:{value:o},currentTarget:{value:o}});return o.value=oe,typeof ve.selectionStart=="number"&&typeof ve.selectionEnd=="number"&&(o.selectionStart=ve.selectionStart,o.selectionEnd=ve.selectionEnd),o.setSelectionRange=function(){ve.setSelectionRange.apply(ve,arguments)},b}function ge(d,ve,oe,o){if(oe){var b=ve;if(ve.type==="click"){b=se(ve,d,""),oe(b);return}if(d.type!=="file"&&o!==void 0){b=se(ve,d,o),oe(b);return}oe(b)}}function O(d,ve){if(d){d.focus(ve);var oe=ve||{},o=oe.cursor;if(o){var b=d.value.length;switch(o){case"start":d.setSelectionRange(0,0);break;case"end":d.setSelectionRange(b,b);break;default:d.setSelectionRange(0,b)}}}}},28321:function(In,Wt,w){"use strict";w.d(Wt,{iz:function(){return st},ck:function(){return Ne},BW:function(){return Lt},sN:function(){return Ne},Wd:function(){return le},ZP:function(){return tn},Xl:function(){return ue}});var p=w(72308),he=w(49618),se=w(77321),ge=w(80702),O=w(52487),d=w(74416),ve=w(92310),oe=w.n(ve),o=w(11780),b=w(18929),T=w(13697),m=w(48736),y=w(59301),x=w(4676),L=y.createContext(null);function U(Fe,it){return Fe===void 0?null:"".concat(Fe,"-").concat(it)}function Y(Fe){var it=y.useContext(L);return U(it,Fe)}var ne=w(80547),M=["children","locked"],F=y.createContext(null);function D(Fe,it){var St=(0,se.Z)({},Fe);return Object.keys(it).forEach(function(mt){var Zt=it[mt];Zt!==void 0&&(St[mt]=Zt)}),St}function S(Fe){var it=Fe.children,St=Fe.locked,mt=(0,d.Z)(Fe,M),Zt=y.useContext(F),Ht=(0,ne.Z)(function(){return D(Zt,mt)},[Zt,mt],function(en,sn){return!St&&(en[0]!==sn[0]||!(0,T.Z)(en[1],sn[1],!0))});return y.createElement(F.Provider,{value:Ht},it)}var te=[],X=y.createContext(null);function j(){return y.useContext(X)}var q=y.createContext(te);function ue(Fe){var it=y.useContext(q);return y.useMemo(function(){return Fe!==void 0?[].concat((0,ge.Z)(it),[Fe]):it},[it,Fe])}var pe=y.createContext(null),We=y.createContext({}),G=We,N=w(29194);function W(Fe){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,N.Z)(Fe)){var St=Fe.nodeName.toLowerCase(),mt=["input","select","textarea","button"].includes(St)||Fe.isContentEditable||St==="a"&&!!Fe.getAttribute("href"),Zt=Fe.getAttribute("tabindex"),Ht=Number(Zt),en=null;return Zt&&!Number.isNaN(Ht)?en=Ht:mt&&en===null&&(en=0),mt&&Fe.disabled&&(en=null),en!==null&&(en>=0||it&&en<0)}return!1}function $(Fe){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St=(0,ge.Z)(Fe.querySelectorAll("*")).filter(function(mt){return W(mt,it)});return W(Fe,it)&&St.unshift(Fe),St}var ie=null;function Q(){ie=document.activeElement}function g(){ie=null}function v(){if(ie)try{ie.focus()}catch(Fe){}}function z(Fe,it){if(it.keyCode===9){var St=$(Fe),mt=St[it.shiftKey?0:St.length-1],Zt=mt===document.activeElement||Fe===document.activeElement;if(Zt){var Ht=St[it.shiftKey?St.length-1:0];Ht.focus(),it.preventDefault()}}}var ce=w(10228),je=w(16089),Ye=ce.Z.LEFT,It=ce.Z.RIGHT,bt=ce.Z.UP,$t=ce.Z.DOWN,Bt=ce.Z.ENTER,Oe=ce.Z.ESC,jt=ce.Z.HOME,En=ce.Z.END,Yt=[bt,$t,Ye,It];function cn(Fe,it,St,mt){var Zt,Ht="prev",en="next",sn="children",vn="parent";if(Fe==="inline"&&mt===Bt)return{inlineTrigger:!0};var _n=(0,he.Z)((0,he.Z)({},bt,Ht),$t,en),An=(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},Ye,St?en:Ht),It,St?Ht:en),$t,sn),Bt,sn),yn=(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},bt,Ht),$t,en),Bt,sn),Oe,vn),Ye,St?sn:vn),It,St?vn:sn),Zn={inline:_n,horizontal:An,vertical:yn,inlineSub:_n,horizontalSub:yn,verticalSub:yn},On=(Zt=Zn["".concat(Fe).concat(it?"":"Sub")])===null||Zt===void 0?void 0:Zt[mt];switch(On){case Ht:return{offset:-1,sibling:!0};case en:return{offset:1,sibling:!0};case vn:return{offset:-1,sibling:!1};case sn:return{offset:1,sibling:!1};default:return null}}function pt(Fe){for(var it=Fe;it;){if(it.getAttribute("data-menu-list"))return it;it=it.parentElement}return null}function Pe(Fe,it){for(var St=Fe||document.activeElement;St;){if(it.has(St))return St;St=St.parentElement}return null}function be(Fe,it){var St=$(Fe,!0);return St.filter(function(mt){return it.has(mt)})}function B(Fe,it,St){var mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Fe)return null;var Zt=be(Fe,it),Ht=Zt.length,en=Zt.findIndex(function(sn){return St===sn});return mt<0?en===-1?en=Ht-1:en-=1:mt>0&&(en+=1),en=(en+Ht)%Ht,Zt[en]}var Ce=function(it,St){var mt=new Set,Zt=new Map,Ht=new Map;return it.forEach(function(en){var sn=document.querySelector("[data-menu-id='".concat(U(St,en),"']"));sn&&(mt.add(sn),Ht.set(sn,en),Zt.set(en,sn))}),{elements:mt,key2element:Zt,element2key:Ht}};function He(Fe,it,St,mt,Zt,Ht,en,sn,vn,_n){var An=y.useRef(),yn=y.useRef();yn.current=it;var Zn=function(){je.Z.cancel(An.current)};return y.useEffect(function(){return function(){Zn()}},[]),function(On){var zn=On.which;if([].concat(Yt,[Bt,Oe,jt,En]).includes(zn)){var Fn=Ht(),kn=Ce(Fn,mt),qn=kn,pn=qn.elements,ln=qn.key2element,Me=qn.element2key,Pt=ln.get(it),mn=Pe(Pt,pn),Rn=Me.get(mn),Kn=cn(Fe,en(Rn,!0).length===1,St,zn);if(!Kn&&zn!==jt&&zn!==En)return;(Yt.includes(zn)||[jt,En].includes(zn))&&On.preventDefault();var xe=function(Gt){if(Gt){var et=Gt,ft=Gt.querySelector("a");ft!=null&&ft.getAttribute("href")&&(et=ft);var yt=Me.get(Gt);sn(yt),Zn(),An.current=(0,je.Z)(function(){yn.current===yt&&et.focus()})}};if([jt,En].includes(zn)||Kn.sibling||!mn){var nt;!mn||Fe==="inline"?nt=Zt.current:nt=pt(mn);var qe,$e=be(nt,pn);zn===jt?qe=$e[0]:zn===En?qe=$e[$e.length-1]:qe=B(nt,pn,mn,Kn.offset),xe(qe)}else if(Kn.inlineTrigger)vn(Rn);else if(Kn.offset>0)vn(Rn,!0),Zn(),An.current=(0,je.Z)(function(){kn=Ce(Fn,mt);var Nt=mn.getAttribute("aria-controls"),Gt=document.getElementById(Nt),et=B(Gt,kn.elements);xe(et)},5);else if(Kn.offset<0){var Et=en(Rn,!0),ct=Et[Et.length-2],vt=ln.get(ct);vn(ct,!1),xe(vt)}}_n==null||_n(On)}}function Z(Fe){Promise.resolve().then(Fe)}var P="__RC_UTIL_PATH_SPLIT__",K=function(it){return it.join(P)},me=function(it){return it.split(P)},I="rc-menu-more";function de(){var Fe=y.useState({}),it=(0,O.Z)(Fe,2),St=it[1],mt=(0,y.useRef)(new Map),Zt=(0,y.useRef)(new Map),Ht=y.useState([]),en=(0,O.Z)(Ht,2),sn=en[0],vn=en[1],_n=(0,y.useRef)(0),An=(0,y.useRef)(!1),yn=function(){An.current||St({})},Zn=(0,y.useCallback)(function(ln,Me){var Pt=K(Me);Zt.current.set(Pt,ln),mt.current.set(ln,Pt),_n.current+=1;var mn=_n.current;Z(function(){mn===_n.current&&yn()})},[]),On=(0,y.useCallback)(function(ln,Me){var Pt=K(Me);Zt.current.delete(Pt),mt.current.delete(ln)},[]),zn=(0,y.useCallback)(function(ln){vn(ln)},[]),Fn=(0,y.useCallback)(function(ln,Me){var Pt=mt.current.get(ln)||"",mn=me(Pt);return Me&&sn.includes(mn[0])&&mn.unshift(I),mn},[sn]),kn=(0,y.useCallback)(function(ln,Me){return ln.filter(function(Pt){return Pt!==void 0}).some(function(Pt){var mn=Fn(Pt,!0);return mn.includes(Me)})},[Fn]),qn=function(){var Me=(0,ge.Z)(mt.current.keys());return sn.length&&Me.push(I),Me},pn=(0,y.useCallback)(function(ln){var Me="".concat(mt.current.get(ln)).concat(P),Pt=new Set;return(0,ge.Z)(Zt.current.keys()).forEach(function(mn){mn.startsWith(Me)&&Pt.add(Zt.current.get(mn))}),Pt},[]);return y.useEffect(function(){return function(){An.current=!0}},[]),{registerPath:Zn,unregisterPath:On,refreshOverflowKeys:zn,isSubPathKey:kn,getKeyPath:Fn,getKeys:qn,getSubPathKeys:pn}}function ee(Fe){var it=y.useRef(Fe);it.current=Fe;var St=y.useCallback(function(){for(var mt,Zt=arguments.length,Ht=new Array(Zt),en=0;en<Zt;en++)Ht[en]=arguments[en];return(mt=it.current)===null||mt===void 0?void 0:mt.call.apply(mt,[it].concat(Ht))},[]);return Fe?St:void 0}var De=Math.random().toFixed(5).toString().slice(2),Te=0;function Ke(Fe){var it=(0,b.Z)(Fe,{value:Fe}),St=(0,O.Z)(it,2),mt=St[0],Zt=St[1];return y.useEffect(function(){Te+=1;var Ht="".concat(De,"-").concat(Te);Zt("rc-menu-uuid-".concat(Ht))},[]),mt}var ze=w(96949),Xe=w(55090),ot=w(77205),_e=w(38793),Re=w(2738),at=w(8654);function Qe(Fe,it,St,mt){var Zt=y.useContext(F),Ht=Zt.activeKey,en=Zt.onActive,sn=Zt.onInactive,vn={active:Ht===Fe};return it||(vn.onMouseEnter=function(_n){St==null||St({key:Fe,domEvent:_n}),en(Fe)},vn.onMouseLeave=function(_n){mt==null||mt({key:Fe,domEvent:_n}),sn(Fe)}),vn}function Ge(Fe){var it=y.useContext(F),St=it.mode,mt=it.rtl,Zt=it.inlineIndent;if(St!=="inline")return null;var Ht=Fe;return mt?{paddingRight:Ht*Zt}:{paddingLeft:Ht*Zt}}function _t(Fe){var it=Fe.icon,St=Fe.props,mt=Fe.children,Zt;return it===null||it===!1?null:(typeof it=="function"?Zt=y.createElement(it,(0,se.Z)({},St)):typeof it!="boolean"&&(Zt=it),Zt||mt||null)}var Dt=["item"];function rt(Fe){var it=Fe.item,St=(0,d.Z)(Fe,Dt);return Object.defineProperty(St,"item",{get:function(){return(0,m.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),it}}),St}var Kt=["title","attribute","elementRef"],fn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Tt=["active"],Qt=function(Fe){(0,ot.Z)(St,Fe);var it=(0,_e.Z)(St);function St(){return(0,ze.Z)(this,St),it.apply(this,arguments)}return(0,Xe.Z)(St,[{key:"render",value:function(){var Zt=this.props,Ht=Zt.title,en=Zt.attribute,sn=Zt.elementRef,vn=(0,d.Z)(Zt,Kt),_n=(0,Re.Z)(vn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,m.ZP)(!en,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),y.createElement(o.Z.Item,(0,p.Z)({},en,{title:typeof Ht=="string"?Ht:void 0},_n,{ref:sn}))}}]),St}(y.Component),Be=y.forwardRef(function(Fe,it){var St=Fe.style,mt=Fe.className,Zt=Fe.eventKey,Ht=Fe.warnKey,en=Fe.disabled,sn=Fe.itemIcon,vn=Fe.children,_n=Fe.role,An=Fe.onMouseEnter,yn=Fe.onMouseLeave,Zn=Fe.onClick,On=Fe.onKeyDown,zn=Fe.onFocus,Fn=(0,d.Z)(Fe,fn),kn=Y(Zt),qn=y.useContext(F),pn=qn.prefixCls,ln=qn.onItemClick,Me=qn.disabled,Pt=qn.overflowDisabled,mn=qn.itemIcon,Rn=qn.selectedKeys,Kn=qn.onActive,xe=y.useContext(G),nt=xe._internalRenderMenuItem,qe="".concat(pn,"-item"),$e=y.useRef(),Et=y.useRef(),ct=Me||en,vt=(0,at.x1)(it,Et),Nt=ue(Zt),Gt=function(Ln){return{key:Zt,keyPath:(0,ge.Z)(Nt).reverse(),item:$e.current,domEvent:Ln}},et=sn||mn,ft=Qe(Zt,ct,An,yn),yt=ft.active,Xt=(0,d.Z)(ft,Tt),Vt=Rn.includes(Zt),gn=Ge(Nt.length),jn=function(Ln){if(!ct){var ar=Gt(Ln);Zn==null||Zn(rt(ar)),ln(ar)}},Bn=function(Ln){if(On==null||On(Ln),Ln.which===ce.Z.ENTER){var ar=Gt(Ln);Zn==null||Zn(rt(ar)),ln(ar)}},Vn=function(Ln){Kn(Zt),zn==null||zn(Ln)},Gn={};Fe.role==="option"&&(Gn["aria-selected"]=Vt);var Xn=y.createElement(Qt,(0,p.Z)({ref:$e,elementRef:vt,role:_n===null?"none":_n||"menuitem",tabIndex:en?null:-1,"data-menu-id":Pt&&kn?null:kn},(0,Re.Z)(Fn,["extra"]),Xt,Gn,{component:"li","aria-disabled":en,style:(0,se.Z)((0,se.Z)({},gn),St),className:oe()(qe,(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(qe,"-active"),yt),"".concat(qe,"-selected"),Vt),"".concat(qe,"-disabled"),ct),mt),onClick:jn,onKeyDown:Bn,onFocus:Vn}),vn,y.createElement(_t,{props:(0,se.Z)((0,se.Z)({},Fe),{},{isSelected:Vt}),icon:et}));return nt&&(Xn=nt(Xn,Fe,{selected:Vt})),Xn});function ke(Fe,it){var St=Fe.eventKey,mt=j(),Zt=ue(St);return y.useEffect(function(){if(mt)return mt.registerPath(St,Zt),function(){mt.unregisterPath(St,Zt)}},[Zt]),mt?null:y.createElement(Be,(0,p.Z)({},Fe,{ref:it}))}var Ne=y.forwardRef(ke),k=["className","children"],ae=function(it,St){var mt=it.className,Zt=it.children,Ht=(0,d.Z)(it,k),en=y.useContext(F),sn=en.prefixCls,vn=en.mode,_n=en.rtl;return y.createElement("ul",(0,p.Z)({className:oe()(sn,_n&&"".concat(sn,"-rtl"),"".concat(sn,"-sub"),"".concat(sn,"-").concat(vn==="inline"?"inline":"vertical"),mt),role:"menu"},Ht,{"data-menu-list":!0,ref:St}),Zt)},fe=y.forwardRef(ae);fe.displayName="SubMenuList";var re=fe,Se=w(11592);function Mt(Fe,it){return(0,Se.Z)(Fe).map(function(St,mt){if(y.isValidElement(St)){var Zt,Ht,en=St.key,sn=(Zt=(Ht=St.props)===null||Ht===void 0?void 0:Ht.eventKey)!==null&&Zt!==void 0?Zt:en,vn=sn==null;vn&&(sn="tmp_key-".concat([].concat((0,ge.Z)(it),[mt]).join("-")));var _n={key:sn,eventKey:sn};return y.cloneElement(St,_n)}return St})}var Rt=w(65352),Ut={adjustX:1,adjustY:1},hn={topLeft:{points:["bl","tl"],overflow:Ut},topRight:{points:["br","tr"],overflow:Ut},bottomLeft:{points:["tl","bl"],overflow:Ut},bottomRight:{points:["tr","br"],overflow:Ut},leftTop:{points:["tr","tl"],overflow:Ut},leftBottom:{points:["br","bl"],overflow:Ut},rightTop:{points:["tl","tr"],overflow:Ut},rightBottom:{points:["bl","br"],overflow:Ut}},Le={topLeft:{points:["bl","tl"],overflow:Ut},topRight:{points:["br","tr"],overflow:Ut},bottomLeft:{points:["tl","bl"],overflow:Ut},bottomRight:{points:["tr","br"],overflow:Ut},rightTop:{points:["tr","tl"],overflow:Ut},rightBottom:{points:["br","bl"],overflow:Ut},leftTop:{points:["tl","tr"],overflow:Ut},leftBottom:{points:["bl","br"],overflow:Ut}},_=null;function H(Fe,it,St){if(it)return it;if(St)return St[Fe]||St.other}var E={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ie(Fe){var it=Fe.prefixCls,St=Fe.visible,mt=Fe.children,Zt=Fe.popup,Ht=Fe.popupStyle,en=Fe.popupClassName,sn=Fe.popupOffset,vn=Fe.disabled,_n=Fe.mode,An=Fe.onVisibleChange,yn=y.useContext(F),Zn=yn.getPopupContainer,On=yn.rtl,zn=yn.subMenuOpenDelay,Fn=yn.subMenuCloseDelay,kn=yn.builtinPlacements,qn=yn.triggerSubMenuAction,pn=yn.forceSubMenuRender,ln=yn.rootClassName,Me=yn.motion,Pt=yn.defaultMotions,mn=y.useState(!1),Rn=(0,O.Z)(mn,2),Kn=Rn[0],xe=Rn[1],nt=On?(0,se.Z)((0,se.Z)({},Le),kn):(0,se.Z)((0,se.Z)({},hn),kn),qe=E[_n],$e=H(_n,Me,Pt),Et=y.useRef($e);_n!=="inline"&&(Et.current=$e);var ct=(0,se.Z)((0,se.Z)({},Et.current),{},{leavedClassName:"".concat(it,"-hidden"),removeOnLeave:!1,motionAppear:!0}),vt=y.useRef();return y.useEffect(function(){return vt.current=(0,je.Z)(function(){xe(St)}),function(){je.Z.cancel(vt.current)}},[St]),y.createElement(Rt.Z,{prefixCls:it,popupClassName:oe()("".concat(it,"-popup"),(0,he.Z)({},"".concat(it,"-rtl"),On),en,ln),stretch:_n==="horizontal"?"minWidth":null,getPopupContainer:Zn,builtinPlacements:nt,popupPlacement:qe,popupVisible:Kn,popup:Zt,popupStyle:Ht,popupAlign:sn&&{offset:sn},action:vn?[]:[qn],mouseEnterDelay:zn,mouseLeaveDelay:Fn,onPopupVisibleChange:An,forceRender:pn,popupMotion:ct,fresh:!0},mt)}var Ee=w(77900);function we(Fe){var it=Fe.id,St=Fe.open,mt=Fe.keyPath,Zt=Fe.children,Ht="inline",en=y.useContext(F),sn=en.prefixCls,vn=en.forceSubMenuRender,_n=en.motion,An=en.defaultMotions,yn=en.mode,Zn=y.useRef(!1);Zn.current=yn===Ht;var On=y.useState(!Zn.current),zn=(0,O.Z)(On,2),Fn=zn[0],kn=zn[1],qn=Zn.current?St:!1;y.useEffect(function(){Zn.current&&kn(!1)},[yn]);var pn=(0,se.Z)({},H(Ht,_n,An));mt.length>1&&(pn.motionAppear=!1);var ln=pn.onVisibleChanged;return pn.onVisibleChanged=function(Me){return!Zn.current&&!Me&&kn(!0),ln==null?void 0:ln(Me)},Fn?null:y.createElement(S,{mode:Ht,locked:!Zn.current},y.createElement(Ee.default,(0,p.Z)({visible:qn},pn,{forceRender:vn,removeOnLeave:!1,leavedClassName:"".concat(sn,"-hidden")}),function(Me){var Pt=Me.className,mn=Me.style;return y.createElement(re,{id:it,className:Pt,style:mn},Zt)}))}var Ze=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ut=["active"],kt=y.forwardRef(function(Fe,it){var St=Fe.style,mt=Fe.className,Zt=Fe.title,Ht=Fe.eventKey,en=Fe.warnKey,sn=Fe.disabled,vn=Fe.internalPopupClose,_n=Fe.children,An=Fe.itemIcon,yn=Fe.expandIcon,Zn=Fe.popupClassName,On=Fe.popupOffset,zn=Fe.popupStyle,Fn=Fe.onClick,kn=Fe.onMouseEnter,qn=Fe.onMouseLeave,pn=Fe.onTitleClick,ln=Fe.onTitleMouseEnter,Me=Fe.onTitleMouseLeave,Pt=(0,d.Z)(Fe,Ze),mn=Y(Ht),Rn=y.useContext(F),Kn=Rn.prefixCls,xe=Rn.mode,nt=Rn.openKeys,qe=Rn.disabled,$e=Rn.overflowDisabled,Et=Rn.activeKey,ct=Rn.selectedKeys,vt=Rn.itemIcon,Nt=Rn.expandIcon,Gt=Rn.onItemClick,et=Rn.onOpenChange,ft=Rn.onActive,yt=y.useContext(G),Xt=yt._internalRenderSubMenuItem,Vt=y.useContext(pe),gn=Vt.isSubPathKey,jn=ue(),Bn="".concat(Kn,"-submenu"),Vn=qe||sn,Gn=y.useRef(),Xn=y.useRef(),sr=An!=null?An:vt,Ln=yn!=null?yn:Nt,ar=nt.includes(Ht),tr=!$e&&ar,Jn=gn(ct,Ht),nr=Qe(Ht,Vn,ln,Me),wn=nr.active,_r=(0,d.Z)(nr,ut),rr=y.useState(!1),or=(0,O.Z)(rr,2),Sn=or[0],an=or[1],Tn=function(Dn){Vn||an(Dn)},Cn=function(Dn){Tn(!0),kn==null||kn({key:Ht,domEvent:Dn})},Hn=function(Dn){Tn(!1),qn==null||qn({key:Ht,domEvent:Dn})},$n=y.useMemo(function(){return wn||(xe!=="inline"?Sn||gn([Et],Ht):!1)},[xe,wn,Et,Sn,Ht,gn]),dr=Ge(jn.length),vr=function(Dn){Vn||(pn==null||pn({key:Ht,domEvent:Dn}),xe==="inline"&&et(Ht,!ar))},Fr=ee(function(Un){Fn==null||Fn(rt(Un)),Gt(Un)}),kr=function(Dn){xe!=="inline"&&et(Ht,Dn)},jr=function(){ft(Ht)},Br=mn&&"".concat(mn,"-popup"),Nr=y.useMemo(function(){return y.createElement(_t,{icon:xe!=="horizontal"?Ln:void 0,props:(0,se.Z)((0,se.Z)({},Fe),{},{isOpen:tr,isSubMenu:!0})},y.createElement("i",{className:"".concat(Bn,"-arrow")}))},[xe,Ln,Fe,tr,Bn]),ir=y.createElement("div",(0,p.Z)({role:"menuitem",style:dr,className:"".concat(Bn,"-title"),tabIndex:Vn?null:-1,ref:Gn,title:typeof Zt=="string"?Zt:null,"data-menu-id":$e&&mn?null:mn,"aria-expanded":tr,"aria-haspopup":!0,"aria-controls":Br,"aria-disabled":Vn,onClick:vr,onFocus:jr},_r),Zt,Nr),br=y.useRef(xe);if(xe!=="inline"&&jn.length>1?br.current="vertical":br.current=xe,!$e){var Lr=br.current;ir=y.createElement(Ie,{mode:Lr,prefixCls:Bn,visible:!vn&&tr&&xe!=="inline",popupClassName:Zn,popupOffset:On,popupStyle:zn,popup:y.createElement(S,{mode:Lr==="horizontal"?"vertical":Lr},y.createElement(re,{id:Br,ref:Xn},_n)),disabled:Vn,onVisibleChange:kr},ir)}var Qn=y.createElement(o.Z.Item,(0,p.Z)({ref:it,role:"none"},Pt,{component:"li",style:St,className:oe()(Bn,"".concat(Bn,"-").concat(xe),mt,(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(Bn,"-open"),tr),"".concat(Bn,"-active"),$n),"".concat(Bn,"-selected"),Jn),"".concat(Bn,"-disabled"),Vn)),onMouseEnter:Cn,onMouseLeave:Hn}),ir,!$e&&y.createElement(we,{id:Br,open:tr,keyPath:jn},_n));return Xt&&(Qn=Xt(Qn,Fe,{selected:Jn,active:$n,open:tr,disabled:Vn})),y.createElement(S,{onItemClick:Fr,mode:xe==="horizontal"?"vertical":xe,itemIcon:sr,expandIcon:Ln},Qn)}),ye=y.forwardRef(function(Fe,it){var St=Fe.eventKey,mt=Fe.children,Zt=ue(St),Ht=Mt(mt,Zt),en=j();y.useEffect(function(){if(en)return en.registerPath(St,Zt),function(){en.unregisterPath(St,Zt)}},[Zt]);var sn;return en?sn=Ht:sn=y.createElement(kt,(0,p.Z)({ref:it},Fe),Ht),y.createElement(q.Provider,{value:Zt},sn)}),le=ye,ht=w(62853);function st(Fe){var it=Fe.className,St=Fe.style,mt=y.useContext(F),Zt=mt.prefixCls,Ht=j();return Ht?null:y.createElement("li",{role:"separator",className:oe()("".concat(Zt,"-item-divider"),it),style:St})}var dt=["className","title","eventKey","children"],Je=y.forwardRef(function(Fe,it){var St=Fe.className,mt=Fe.title,Zt=Fe.eventKey,Ht=Fe.children,en=(0,d.Z)(Fe,dt),sn=y.useContext(F),vn=sn.prefixCls,_n="".concat(vn,"-item-group");return y.createElement("li",(0,p.Z)({ref:it,role:"presentation"},en,{onClick:function(yn){return yn.stopPropagation()},className:oe()(_n,St)}),y.createElement("div",{role:"presentation",className:"".concat(_n,"-title"),title:typeof mt=="string"?mt:void 0},mt),y.createElement("ul",{role:"group",className:"".concat(_n,"-list")},Ht))}),gt=y.forwardRef(function(Fe,it){var St=Fe.eventKey,mt=Fe.children,Zt=ue(St),Ht=Mt(mt,Zt),en=j();return en?Ht:y.createElement(Je,(0,p.Z)({ref:it},(0,Re.Z)(Fe,["warnKey"])),Ht)}),Lt=gt,Ot=["label","children","key","type","extra"];function lt(Fe,it,St){var mt=it.item,Zt=it.group,Ht=it.submenu,en=it.divider;return(Fe||[]).map(function(sn,vn){if(sn&&(0,ht.Z)(sn)==="object"){var _n=sn,An=_n.label,yn=_n.children,Zn=_n.key,On=_n.type,zn=_n.extra,Fn=(0,d.Z)(_n,Ot),kn=Zn!=null?Zn:"tmp-".concat(vn);return yn||On==="group"?On==="group"?y.createElement(Zt,(0,p.Z)({key:kn},Fn,{title:An}),lt(yn,it,St)):y.createElement(Ht,(0,p.Z)({key:kn},Fn,{title:An}),lt(yn,it,St)):On==="divider"?y.createElement(en,(0,p.Z)({key:kn},Fn)):y.createElement(mt,(0,p.Z)({key:kn},Fn,{extra:zn}),An,(!!zn||zn===0)&&y.createElement("span",{className:"".concat(St,"-item-extra")},zn))}return null}).filter(function(sn){return sn})}function tt(Fe,it,St,mt,Zt){var Ht=Fe,en=(0,se.Z)({divider:st,item:Ne,group:Lt,submenu:le},mt);return it&&(Ht=lt(it,en,Zt)),Mt(Ht,St)}var Ct=["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","_internalComponents"],Jt=[],un=y.forwardRef(function(Fe,it){var St,mt=Fe,Zt=mt.prefixCls,Ht=Zt===void 0?"rc-menu":Zt,en=mt.rootClassName,sn=mt.style,vn=mt.className,_n=mt.tabIndex,An=_n===void 0?0:_n,yn=mt.items,Zn=mt.children,On=mt.direction,zn=mt.id,Fn=mt.mode,kn=Fn===void 0?"vertical":Fn,qn=mt.inlineCollapsed,pn=mt.disabled,ln=mt.disabledOverflow,Me=mt.subMenuOpenDelay,Pt=Me===void 0?.1:Me,mn=mt.subMenuCloseDelay,Rn=mn===void 0?.1:mn,Kn=mt.forceSubMenuRender,xe=mt.defaultOpenKeys,nt=mt.openKeys,qe=mt.activeKey,$e=mt.defaultActiveFirst,Et=mt.selectable,ct=Et===void 0?!0:Et,vt=mt.multiple,Nt=vt===void 0?!1:vt,Gt=mt.defaultSelectedKeys,et=mt.selectedKeys,ft=mt.onSelect,yt=mt.onDeselect,Xt=mt.inlineIndent,Vt=Xt===void 0?24:Xt,gn=mt.motion,jn=mt.defaultMotions,Bn=mt.triggerSubMenuAction,Vn=Bn===void 0?"hover":Bn,Gn=mt.builtinPlacements,Xn=mt.itemIcon,sr=mt.expandIcon,Ln=mt.overflowedIndicator,ar=Ln===void 0?"...":Ln,tr=mt.overflowedIndicatorPopupClassName,Jn=mt.getPopupContainer,nr=mt.onClick,wn=mt.onOpenChange,_r=mt.onKeyDown,rr=mt.openAnimation,or=mt.openTransitionName,Sn=mt._internalRenderMenuItem,an=mt._internalRenderSubMenuItem,Tn=mt._internalComponents,Cn=(0,d.Z)(mt,Ct),Hn=y.useMemo(function(){return[tt(Zn,yn,Jt,Tn,Ht),tt(Zn,yn,Jt,{},Ht)]},[Zn,yn,Tn]),$n=(0,O.Z)(Hn,2),dr=$n[0],vr=$n[1],Fr=y.useState(!1),kr=(0,O.Z)(Fr,2),jr=kr[0],Br=kr[1],Nr=y.useRef(),ir=Ke(zn),br=On==="rtl",Lr=(0,b.Z)(xe,{value:nt,postState:function(Pr){return Pr||Jt}}),Qn=(0,O.Z)(Lr,2),Un=Qn[0],Dn=Qn[1],bn=function(Pr){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function on(){Dn(Pr),wn==null||wn(Pr)}Wr?(0,x.flushSync)(on):on()},ur=y.useState(Un),wr=(0,O.Z)(ur,2),Hr=wr[0],zr=wr[1],Vr=y.useRef(!1),Pn=y.useMemo(function(){return(kn==="inline"||kn==="vertical")&&qn?["vertical",qn]:[kn,!1]},[kn,qn]),er=(0,O.Z)(Pn,2),Er=er[0],mr=er[1],Ar=Er==="inline",ni=y.useState(Er),Cr=(0,O.Z)(ni,2),qr=Cr[0],ai=Cr[1],Pi=y.useState(mr),Zr=(0,O.Z)(Pi,2),$i=Zr[0],Ni=Zr[1];y.useEffect(function(){ai(Er),Ni(mr),Vr.current&&(Ar?Dn(Hr):bn(Jt))},[Er,mr]);var ps=y.useState(0),oi=(0,O.Z)(ps,2),Ci=oi[0],Di=oi[1],Mi=Ci>=dr.length-1||qr!=="horizontal"||ln;y.useEffect(function(){Ar&&zr(Un)},[Un]),y.useEffect(function(){return Vr.current=!0,function(){Vr.current=!1}},[]);var ci=de(),Oi=ci.registerPath,xi=ci.unregisterPath,es=ci.refreshOverflowKeys,Ri=ci.isSubPathKey,ts=ci.getKeyPath,zi=ci.getKeys,fi=ci.getSubPathKeys,Fi=y.useMemo(function(){return{registerPath:Oi,unregisterPath:xi}},[Oi,xi]),Si=y.useMemo(function(){return{isSubPathKey:Ri}},[Ri]);y.useEffect(function(){es(Mi?Jt:dr.slice(Ci+1).map(function(Qr){return Qr.key}))},[Ci,Mi]);var Sr=(0,b.Z)(qe||$e&&((St=dr[0])===null||St===void 0?void 0:St.key),{value:qe}),fr=(0,O.Z)(Sr,2),Mr=fr[0],Yr=fr[1],Xr=ee(function(Qr){Yr(Qr)}),Gr=ee(function(){Yr(void 0)});(0,y.useImperativeHandle)(it,function(){return{list:Nr.current,focus:function(Pr){var Wr,on=zi(),ti=Ce(on,ir),mi=ti.elements,rs=ti.key2element,xs=ti.element2key,is=be(Nr.current,mi),ss=Mr!=null?Mr:is[0]?xs.get(is[0]):(Wr=dr.find(function(Bi){return!Bi.props.disabled}))===null||Wr===void 0?void 0:Wr.key,Gi=rs.get(ss);if(ss&&Gi){var as;Gi==null||(as=Gi.focus)===null||as===void 0||as.call(Gi,Pr)}}}});var $r=(0,b.Z)(Gt||[],{value:et,postState:function(Pr){return Array.isArray(Pr)?Pr:Pr==null?Jt:[Pr]}}),ri=(0,O.Z)($r,2),ui=ri[0],_i=ri[1],pi=function(Pr){if(ct){var Wr=Pr.key,on=ui.includes(Wr),ti;Nt?on?ti=ui.filter(function(rs){return rs!==Wr}):ti=[].concat((0,ge.Z)(ui),[Wr]):ti=[Wr],_i(ti);var mi=(0,se.Z)((0,se.Z)({},Pr),{},{selectedKeys:ti});on?yt==null||yt(mi):ft==null||ft(mi)}!Nt&&Un.length&&qr!=="inline"&&bn(Jt)},Li=ee(function(Qr){nr==null||nr(rt(Qr)),pi(Qr)}),ei=ee(function(Qr,Pr){var Wr=Un.filter(function(ti){return ti!==Qr});if(Pr)Wr.push(Qr);else if(qr!=="inline"){var on=fi(Qr);Wr=Wr.filter(function(ti){return!on.has(ti)})}(0,T.Z)(Un,Wr,!0)||bn(Wr,!0)}),Ei=function(Pr,Wr){var on=Wr!=null?Wr:!Un.includes(Pr);ei(Pr,on)},ms=He(qr,Mr,br,ir,Nr,zi,ts,Yr,Ei,_r);y.useEffect(function(){Br(!0)},[]);var ji=y.useMemo(function(){return{_internalRenderMenuItem:Sn,_internalRenderSubMenuItem:an}},[Sn,an]),ns=qr!=="horizontal"||ln?dr:dr.map(function(Qr,Pr){return y.createElement(S,{key:Qr.key,overflowDisabled:Pr>Ci},Qr)}),bs=y.createElement(o.Z,(0,p.Z)({id:zn,ref:Nr,prefixCls:"".concat(Ht,"-overflow"),component:"ul",itemComponent:Ne,className:oe()(Ht,"".concat(Ht,"-root"),"".concat(Ht,"-").concat(qr),vn,(0,he.Z)((0,he.Z)({},"".concat(Ht,"-inline-collapsed"),$i),"".concat(Ht,"-rtl"),br),en),dir:On,style:sn,role:"menu",tabIndex:An,data:ns,renderRawItem:function(Pr){return Pr},renderRawRest:function(Pr){var Wr=Pr.length,on=Wr?dr.slice(-Wr):null;return y.createElement(le,{eventKey:I,title:ar,disabled:Mi,internalPopupClose:Wr===0,popupClassName:tr},on)},maxCount:qr!=="horizontal"||ln?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Pr){Di(Pr)},onKeyDown:ms},Cn));return y.createElement(G.Provider,{value:ji},y.createElement(L.Provider,{value:ir},y.createElement(S,{prefixCls:Ht,rootClassName:en,mode:qr,openKeys:Un,rtl:br,disabled:pn,motion:jr?gn:null,defaultMotions:jr?jn:null,activeKey:Mr,onActive:Xr,onInactive:Gr,selectedKeys:ui,inlineIndent:Vt,subMenuOpenDelay:Pt,subMenuCloseDelay:Rn,forceSubMenuRender:Kn,builtinPlacements:Gn,triggerSubMenuAction:Vn,getPopupContainer:Jn,itemIcon:Xn,expandIcon:sr,onItemClick:Li,onOpenChange:ei},y.createElement(pe.Provider,{value:Si},bs),y.createElement("div",{style:{display:"none"},"aria-hidden":!0},y.createElement(X.Provider,{value:Fi},vr)))))}),xn=un,nn=xn;nn.Item=Ne,nn.SubMenu=le,nn.ItemGroup=Lt,nn.Divider=st;var tn=nn},11780:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return Q}});var p=w(72308),he=w(77321),se=w(52487),ge=w(74416),O=w(59301),d=w(92310),ve=w.n(d),oe=w(29301),o=w(34280),b=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],T=void 0;function m(g,v){var z=g.prefixCls,ce=g.invalidate,je=g.item,Ye=g.renderItem,It=g.responsive,bt=g.responsiveDisabled,$t=g.registerSize,Bt=g.itemKey,Oe=g.className,jt=g.style,En=g.children,Yt=g.display,cn=g.order,pt=g.component,Pe=pt===void 0?"div":pt,be=(0,ge.Z)(g,b),B=It&&!Yt;function Ce(me){$t(Bt,me)}O.useEffect(function(){return function(){Ce(null)}},[]);var He=Ye&&je!==T?Ye(je,{index:cn}):En,Z;ce||(Z={opacity:B?0:1,height:B?0:T,overflowY:B?"hidden":T,order:It?cn:T,pointerEvents:B?"none":T,position:B?"absolute":T});var P={};B&&(P["aria-hidden"]=!0);var K=O.createElement(Pe,(0,p.Z)({className:ve()(!ce&&z,Oe),style:(0,he.Z)((0,he.Z)({},Z),jt)},P,be,{ref:v}),He);return It&&(K=O.createElement(oe.Z,{onResize:function(I){var de=I.offsetWidth;Ce(de)},disabled:bt},K)),K}var y=O.forwardRef(m);y.displayName="Item";var x=y,L=w(6089),U=w(4676),Y=w(16089);function ne(g){if(typeof MessageChannel=="undefined")(0,Y.Z)(g);else{var v=new MessageChannel;v.port1.onmessage=function(){return g()},v.port2.postMessage(void 0)}}function M(){var g=O.useRef(null),v=function(ce){g.current||(g.current=[],ne(function(){(0,U.unstable_batchedUpdates)(function(){g.current.forEach(function(je){je()}),g.current=null})})),g.current.push(ce)};return v}function F(g,v){var z=O.useState(v),ce=(0,se.Z)(z,2),je=ce[0],Ye=ce[1],It=(0,L.Z)(function(bt){g(function(){Ye(bt)})});return[je,It]}var D=O.createContext(null),S=["component"],te=["className"],X=["className"],j=function(v,z){var ce=O.useContext(D);if(!ce){var je=v.component,Ye=je===void 0?"div":je,It=(0,ge.Z)(v,S);return O.createElement(Ye,(0,p.Z)({},It,{ref:z}))}var bt=ce.className,$t=(0,ge.Z)(ce,te),Bt=v.className,Oe=(0,ge.Z)(v,X);return O.createElement(D.Provider,{value:null},O.createElement(x,(0,p.Z)({ref:z,className:ve()(bt,Bt)},$t,Oe)))},q=O.forwardRef(j);q.displayName="RawItem";var ue=q,pe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],We="responsive",G="invalidate";function N(g){return"+ ".concat(g.length," ...")}function W(g,v){var z=g.prefixCls,ce=z===void 0?"rc-overflow":z,je=g.data,Ye=je===void 0?[]:je,It=g.renderItem,bt=g.renderRawItem,$t=g.itemKey,Bt=g.itemWidth,Oe=Bt===void 0?10:Bt,jt=g.ssr,En=g.style,Yt=g.className,cn=g.maxCount,pt=g.renderRest,Pe=g.renderRawRest,be=g.suffix,B=g.component,Ce=B===void 0?"div":B,He=g.itemComponent,Z=g.onVisibleChange,P=(0,ge.Z)(g,pe),K=jt==="full",me=M(),I=F(me,null),de=(0,se.Z)(I,2),ee=de[0],De=de[1],Te=ee||0,Ke=F(me,new Map),ze=(0,se.Z)(Ke,2),Xe=ze[0],ot=ze[1],_e=F(me,0),Re=(0,se.Z)(_e,2),at=Re[0],Qe=Re[1],Ge=F(me,0),_t=(0,se.Z)(Ge,2),Dt=_t[0],rt=_t[1],Kt=F(me,0),fn=(0,se.Z)(Kt,2),Tt=fn[0],Qt=fn[1],Be=(0,O.useState)(null),ke=(0,se.Z)(Be,2),Ne=ke[0],k=ke[1],ae=(0,O.useState)(null),fe=(0,se.Z)(ae,2),re=fe[0],Se=fe[1],Mt=O.useMemo(function(){return re===null&&K?Number.MAX_SAFE_INTEGER:re||0},[re,ee]),Rt=(0,O.useState)(!1),Ut=(0,se.Z)(Rt,2),hn=Ut[0],Le=Ut[1],_="".concat(ce,"-item"),H=Math.max(at,Dt),E=cn===We,Ie=Ye.length&&E,Ee=cn===G,we=Ie||typeof cn=="number"&&Ye.length>cn,Ze=(0,O.useMemo)(function(){var nn=Ye;return Ie?ee===null&&K?nn=Ye:nn=Ye.slice(0,Math.min(Ye.length,Te/Oe)):typeof cn=="number"&&(nn=Ye.slice(0,cn)),nn},[Ye,Oe,ee,cn,Ie]),ut=(0,O.useMemo)(function(){return Ie?Ye.slice(Mt+1):Ye.slice(Ze.length)},[Ye,Ze,Ie,Mt]),kt=(0,O.useCallback)(function(nn,tn){var Fe;return typeof $t=="function"?$t(nn):(Fe=$t&&(nn==null?void 0:nn[$t]))!==null&&Fe!==void 0?Fe:tn},[$t]),ye=(0,O.useCallback)(It||function(nn){return nn},[It]);function le(nn,tn,Fe){re===nn&&(tn===void 0||tn===Ne)||(Se(nn),Fe||(Le(nn<Ye.length-1),Z==null||Z(nn)),tn!==void 0&&k(tn))}function ht(nn,tn){De(tn.clientWidth)}function st(nn,tn){ot(function(Fe){var it=new Map(Fe);return tn===null?it.delete(nn):it.set(nn,tn),it})}function dt(nn,tn){rt(tn),Qe(Dt)}function Je(nn,tn){Qt(tn)}function gt(nn){return Xe.get(kt(Ze[nn],nn))}(0,o.Z)(function(){if(Te&&typeof H=="number"&&Ze){var nn=Tt,tn=Ze.length,Fe=tn-1;if(!tn){le(0,null);return}for(var it=0;it<tn;it+=1){var St=gt(it);if(K&&(St=St||0),St===void 0){le(it-1,void 0,!0);break}if(nn+=St,Fe===0&&nn<=Te||it===Fe-1&&nn+gt(Fe)<=Te){le(Fe,null);break}else if(nn+H>Te){le(it-1,nn-St-Tt+Dt);break}}be&>(0)+Tt>Te&&k(null)}},[Te,Xe,Dt,Tt,kt,Ze]);var Lt=hn&&!!ut.length,Ot={};Ne!==null&&Ie&&(Ot={position:"absolute",left:Ne,top:0});var lt={prefixCls:_,responsive:Ie,component:He,invalidate:Ee},tt=bt?function(nn,tn){var Fe=kt(nn,tn);return O.createElement(D.Provider,{key:Fe,value:(0,he.Z)((0,he.Z)({},lt),{},{order:tn,item:nn,itemKey:Fe,registerSize:st,display:tn<=Mt})},bt(nn,tn))}:function(nn,tn){var Fe=kt(nn,tn);return O.createElement(x,(0,p.Z)({},lt,{order:tn,key:Fe,item:nn,renderItem:ye,itemKey:Fe,registerSize:st,display:tn<=Mt}))},Ct={order:Lt?Mt:Number.MAX_SAFE_INTEGER,className:"".concat(_,"-rest"),registerSize:dt,display:Lt},Jt=pt||N,un=Pe?O.createElement(D.Provider,{value:(0,he.Z)((0,he.Z)({},lt),Ct)},Pe(ut)):O.createElement(x,(0,p.Z)({},lt,Ct),typeof Jt=="function"?Jt(ut):Jt),xn=O.createElement(Ce,(0,p.Z)({className:ve()(!Ee&&ce,Yt),style:En,ref:v},P),Ze.map(tt),we?un:null,be&&O.createElement(x,(0,p.Z)({},lt,{responsive:E,responsiveDisabled:!Ie,order:Mt,className:"".concat(_,"-suffix"),registerSize:Je,display:!0,style:Ot}),be));return E?O.createElement(oe.Z,{onResize:ht,disabled:!Ie},xn):xn}var $=O.forwardRef(W);$.displayName="Overflow",$.Item=ue,$.RESPONSIVE=We,$.INVALIDATE=G;var ie=$,Q=ie},23425:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return X}});var p=w(49618),he=w(72308),se=w(62853),ge=w(77321),O=w(52487),d=w(92310),ve=w.n(d),oe=w(18929),o=w(10228),b=w(26112),T=w(48736),m=w(59301),y=w(17119),x=[10,20,50,100],L=function(q){var ue=q.pageSizeOptions,pe=ue===void 0?x:ue,We=q.locale,G=q.changeSize,N=q.pageSize,W=q.goButton,$=q.quickGo,ie=q.rootPrefixCls,Q=q.disabled,g=q.buildOptionText,v=q.showSizeChanger,z=q.sizeChangerRender,ce=m.useState(""),je=(0,O.Z)(ce,2),Ye=je[0],It=je[1],bt=function(){return!Ye||Number.isNaN(Ye)?void 0:Number(Ye)},$t=typeof g=="function"?g:function(be){return"".concat(be," ").concat(We.items_per_page)},Bt=function(B){It(B.target.value)},Oe=function(B){W||Ye===""||(It(""),!(B.relatedTarget&&(B.relatedTarget.className.indexOf("".concat(ie,"-item-link"))>=0||B.relatedTarget.className.indexOf("".concat(ie,"-item"))>=0))&&($==null||$(bt())))},jt=function(B){Ye!==""&&(B.keyCode===o.Z.ENTER||B.type==="click")&&(It(""),$==null||$(bt()))},En=function(){return pe.some(function(B){return B.toString()===N.toString()})?pe:pe.concat([N]).sort(function(B,Ce){var He=Number.isNaN(Number(B))?0:Number(B),Z=Number.isNaN(Number(Ce))?0:Number(Ce);return He-Z})},Yt="".concat(ie,"-options");if(!v&&!$)return null;var cn=null,pt=null,Pe=null;return v&&z&&(cn=z({disabled:Q,size:N,onSizeChange:function(B){G==null||G(Number(B))},"aria-label":We.page_size,className:"".concat(Yt,"-size-changer"),options:En().map(function(be){return{label:$t(be),value:be}})})),$&&(W&&(Pe=typeof W=="boolean"?m.createElement("button",{type:"button",onClick:jt,onKeyUp:jt,disabled:Q,className:"".concat(Yt,"-quick-jumper-button")},We.jump_to_confirm):m.createElement("span",{onClick:jt,onKeyUp:jt},W)),pt=m.createElement("div",{className:"".concat(Yt,"-quick-jumper")},We.jump_to,m.createElement("input",{disabled:Q,type:"text",value:Ye,onChange:Bt,onKeyUp:jt,onBlur:Oe,"aria-label":We.page}),We.page,Pe)),m.createElement("li",{className:Yt},cn,pt)},U=L,Y=function(q){var ue=q.rootPrefixCls,pe=q.page,We=q.active,G=q.className,N=q.showTitle,W=q.onClick,$=q.onKeyPress,ie=q.itemRender,Q="".concat(ue,"-item"),g=ve()(Q,"".concat(Q,"-").concat(pe),(0,p.Z)((0,p.Z)({},"".concat(Q,"-active"),We),"".concat(Q,"-disabled"),!pe),G),v=function(){W(pe)},z=function(Ye){$(Ye,W,pe)},ce=ie(pe,"page",m.createElement("a",{rel:"nofollow"},pe));return ce?m.createElement("li",{title:N?String(pe):null,className:g,onClick:v,onKeyDown:z,tabIndex:0},ce):null},ne=Y,M=function(q,ue,pe){return pe};function F(){}function D(j){var q=Number(j);return typeof q=="number"&&!Number.isNaN(q)&&isFinite(q)&&Math.floor(q)===q}function S(j,q,ue){var pe=typeof j=="undefined"?q:j;return Math.floor((ue-1)/pe)+1}var te=function(q){var ue=q.prefixCls,pe=ue===void 0?"rc-pagination":ue,We=q.selectPrefixCls,G=We===void 0?"rc-select":We,N=q.className,W=q.current,$=q.defaultCurrent,ie=$===void 0?1:$,Q=q.total,g=Q===void 0?0:Q,v=q.pageSize,z=q.defaultPageSize,ce=z===void 0?10:z,je=q.onChange,Ye=je===void 0?F:je,It=q.hideOnSinglePage,bt=q.align,$t=q.showPrevNextJumpers,Bt=$t===void 0?!0:$t,Oe=q.showQuickJumper,jt=q.showLessItems,En=q.showTitle,Yt=En===void 0?!0:En,cn=q.onShowSizeChange,pt=cn===void 0?F:cn,Pe=q.locale,be=Pe===void 0?y.Z:Pe,B=q.style,Ce=q.totalBoundaryShowSizeChanger,He=Ce===void 0?50:Ce,Z=q.disabled,P=q.simple,K=q.showTotal,me=q.showSizeChanger,I=me===void 0?g>He:me,de=q.sizeChangerRender,ee=q.pageSizeOptions,De=q.itemRender,Te=De===void 0?M:De,Ke=q.jumpPrevIcon,ze=q.jumpNextIcon,Xe=q.prevIcon,ot=q.nextIcon,_e=m.useRef(null),Re=(0,oe.Z)(10,{value:v,defaultValue:ce}),at=(0,O.Z)(Re,2),Qe=at[0],Ge=at[1],_t=(0,oe.Z)(1,{value:W,defaultValue:ie,postState:function(ln){return Math.max(1,Math.min(ln,S(void 0,Qe,g)))}}),Dt=(0,O.Z)(_t,2),rt=Dt[0],Kt=Dt[1],fn=m.useState(rt),Tt=(0,O.Z)(fn,2),Qt=Tt[0],Be=Tt[1];(0,m.useEffect)(function(){Be(rt)},[rt]);var ke=Ye!==F,Ne="current"in q,k=Math.max(1,rt-(jt?3:5)),ae=Math.min(S(void 0,Qe,g),rt+(jt?3:5));function fe(pn,ln){var Me=pn||m.createElement("button",{type:"button","aria-label":ln,className:"".concat(pe,"-item-link")});return typeof pn=="function"&&(Me=m.createElement(pn,(0,ge.Z)({},q))),Me}function re(pn){var ln=pn.target.value,Me=S(void 0,Qe,g),Pt;return ln===""?Pt=ln:Number.isNaN(Number(ln))?Pt=Qt:ln>=Me?Pt=Me:Pt=Number(ln),Pt}function Se(pn){return D(pn)&&pn!==rt&&D(g)&&g>0}var Mt=g>Qe?Oe:!1;function Rt(pn){(pn.keyCode===o.Z.UP||pn.keyCode===o.Z.DOWN)&&pn.preventDefault()}function Ut(pn){var ln=re(pn);switch(ln!==Qt&&Be(ln),pn.keyCode){case o.Z.ENTER:_(ln);break;case o.Z.UP:_(ln-1);break;case o.Z.DOWN:_(ln+1);break;default:break}}function hn(pn){_(re(pn))}function Le(pn){var ln=S(pn,Qe,g),Me=rt>ln&&ln!==0?ln:rt;Ge(pn),Be(Me),pt==null||pt(rt,pn),Kt(Me),Ye==null||Ye(Me,pn)}function _(pn){if(Se(pn)&&!Z){var ln=S(void 0,Qe,g),Me=pn;return pn>ln?Me=ln:pn<1&&(Me=1),Me!==Qt&&Be(Me),Kt(Me),Ye==null||Ye(Me,Qe),Me}return rt}var H=rt>1,E=rt<S(void 0,Qe,g);function Ie(){H&&_(rt-1)}function Ee(){E&&_(rt+1)}function we(){_(k)}function Ze(){_(ae)}function ut(pn,ln){if(pn.key==="Enter"||pn.charCode===o.Z.ENTER||pn.keyCode===o.Z.ENTER){for(var Me=arguments.length,Pt=new Array(Me>2?Me-2:0),mn=2;mn<Me;mn++)Pt[mn-2]=arguments[mn];ln.apply(void 0,Pt)}}function kt(pn){ut(pn,Ie)}function ye(pn){ut(pn,Ee)}function le(pn){ut(pn,we)}function ht(pn){ut(pn,Ze)}function st(pn){var ln=Te(pn,"prev",fe(Xe,"prev page"));return m.isValidElement(ln)?m.cloneElement(ln,{disabled:!H}):ln}function dt(pn){var ln=Te(pn,"next",fe(ot,"next page"));return m.isValidElement(ln)?m.cloneElement(ln,{disabled:!E}):ln}function Je(pn){(pn.type==="click"||pn.keyCode===o.Z.ENTER)&&_(Qt)}var gt=null,Lt=(0,b.Z)(q,{aria:!0,data:!0}),Ot=K&&m.createElement("li",{className:"".concat(pe,"-total-text")},K(g,[g===0?0:(rt-1)*Qe+1,rt*Qe>g?g:rt*Qe])),lt=null,tt=S(void 0,Qe,g);if(It&&g<=Qe)return null;var Ct=[],Jt={rootPrefixCls:pe,onClick:_,onKeyPress:ut,showTitle:Yt,itemRender:Te,page:-1},un=rt-1>0?rt-1:0,xn=rt+1<tt?rt+1:tt,nn=Oe&&Oe.goButton,tn=(0,se.Z)(P)==="object"?P.readOnly:!P,Fe=nn,it=null;P&&(nn&&(typeof nn=="boolean"?Fe=m.createElement("button",{type:"button",onClick:Je,onKeyUp:Je},be.jump_to_confirm):Fe=m.createElement("span",{onClick:Je,onKeyUp:Je},nn),Fe=m.createElement("li",{title:Yt?"".concat(be.jump_to).concat(rt,"/").concat(tt):null,className:"".concat(pe,"-simple-pager")},Fe)),it=m.createElement("li",{title:Yt?"".concat(rt,"/").concat(tt):null,className:"".concat(pe,"-simple-pager")},tn?Qt:m.createElement("input",{type:"text","aria-label":be.jump_to,value:Qt,disabled:Z,onKeyDown:Rt,onKeyUp:Ut,onChange:Ut,onBlur:hn,size:3}),m.createElement("span",{className:"".concat(pe,"-slash")},"/"),tt));var St=jt?1:2;if(tt<=3+St*2){tt||Ct.push(m.createElement(ne,(0,he.Z)({},Jt,{key:"noPager",page:1,className:"".concat(pe,"-item-disabled")})));for(var mt=1;mt<=tt;mt+=1)Ct.push(m.createElement(ne,(0,he.Z)({},Jt,{key:mt,page:mt,active:rt===mt})))}else{var Zt=jt?be.prev_3:be.prev_5,Ht=jt?be.next_3:be.next_5,en=Te(k,"jump-prev",fe(Ke,"prev page")),sn=Te(ae,"jump-next",fe(ze,"next page"));Bt&&(gt=en?m.createElement("li",{title:Yt?Zt:null,key:"prev",onClick:we,tabIndex:0,onKeyDown:le,className:ve()("".concat(pe,"-jump-prev"),(0,p.Z)({},"".concat(pe,"-jump-prev-custom-icon"),!!Ke))},en):null,lt=sn?m.createElement("li",{title:Yt?Ht:null,key:"next",onClick:Ze,tabIndex:0,onKeyDown:ht,className:ve()("".concat(pe,"-jump-next"),(0,p.Z)({},"".concat(pe,"-jump-next-custom-icon"),!!ze))},sn):null);var vn=Math.max(1,rt-St),_n=Math.min(rt+St,tt);rt-1<=St&&(_n=1+St*2),tt-rt<=St&&(vn=tt-St*2);for(var An=vn;An<=_n;An+=1)Ct.push(m.createElement(ne,(0,he.Z)({},Jt,{key:An,page:An,active:rt===An})));if(rt-1>=St*2&&rt!==3&&(Ct[0]=m.cloneElement(Ct[0],{className:ve()("".concat(pe,"-item-after-jump-prev"),Ct[0].props.className)}),Ct.unshift(gt)),tt-rt>=St*2&&rt!==tt-2){var yn=Ct[Ct.length-1];Ct[Ct.length-1]=m.cloneElement(yn,{className:ve()("".concat(pe,"-item-before-jump-next"),yn.props.className)}),Ct.push(lt)}vn!==1&&Ct.unshift(m.createElement(ne,(0,he.Z)({},Jt,{key:1,page:1}))),_n!==tt&&Ct.push(m.createElement(ne,(0,he.Z)({},Jt,{key:tt,page:tt})))}var Zn=st(un);if(Zn){var On=!H||!tt;Zn=m.createElement("li",{title:Yt?be.prev_page:null,onClick:Ie,tabIndex:On?null:0,onKeyDown:kt,className:ve()("".concat(pe,"-prev"),(0,p.Z)({},"".concat(pe,"-disabled"),On)),"aria-disabled":On},Zn)}var zn=dt(xn);if(zn){var Fn,kn;P?(Fn=!E,kn=H?0:null):(Fn=!E||!tt,kn=Fn?null:0),zn=m.createElement("li",{title:Yt?be.next_page:null,onClick:Ee,tabIndex:kn,onKeyDown:ye,className:ve()("".concat(pe,"-next"),(0,p.Z)({},"".concat(pe,"-disabled"),Fn)),"aria-disabled":Fn},zn)}var qn=ve()(pe,N,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(pe,"-start"),bt==="start"),"".concat(pe,"-center"),bt==="center"),"".concat(pe,"-end"),bt==="end"),"".concat(pe,"-simple"),P),"".concat(pe,"-disabled"),Z));return m.createElement("ul",(0,he.Z)({className:qn,style:B,ref:_e},Lt),Ot,Zn,P?it:Ct,zn,m.createElement(U,{locale:be,rootPrefixCls:pe,disabled:Z,selectPrefixCls:G,changeSize:Le,pageSize:Qe,pageSizeOptions:ee,quickGo:Mt?_:null,goButton:Fe,showSizeChanger:I,sizeChangerRender:de}))},X=te},738:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return F}});var p=w(72308),he=w(49618),se=w(52487),ge=w(74416),O=w(92310),d=w.n(O),ve=w(18929),oe=w(10228),o=w(26112),b=w(59301);function T(D,S){var te=D.disabled,X=D.prefixCls,j=D.character,q=D.characterRender,ue=D.index,pe=D.count,We=D.value,G=D.allowHalf,N=D.focused,W=D.onHover,$=D.onClick,ie=function(It){W(It,ue)},Q=function(It){$(It,ue)},g=function(It){It.keyCode===oe.Z.ENTER&&$(It,ue)},v=ue+1,z=new Set([X]);We===0&&ue===0&&N?z.add("".concat(X,"-focused")):G&&We+.5>=v&&We<v?(z.add("".concat(X,"-half")),z.add("".concat(X,"-active")),N&&z.add("".concat(X,"-focused"))):(v<=We?z.add("".concat(X,"-full")):z.add("".concat(X,"-zero")),v===We&&N&&z.add("".concat(X,"-focused")));var ce=typeof j=="function"?j(D):j,je=b.createElement("li",{className:d()(Array.from(z)),ref:S},b.createElement("div",{onClick:te?null:Q,onKeyDown:te?null:g,onMouseMove:te?null:ie,role:"radio","aria-checked":We>ue?"true":"false","aria-posinset":ue+1,"aria-setsize":pe,tabIndex:te?-1:0},b.createElement("div",{className:"".concat(X,"-first")},ce),b.createElement("div",{className:"".concat(X,"-second")},ce)));return q&&(je=q(je,D)),je}var m=b.forwardRef(T);function y(){var D=b.useRef({});function S(X){return D.current[X]}function te(X){return function(j){D.current[X]=j}}return[S,te]}function x(D){var S=D.pageXOffset,te="scrollLeft";if(typeof S!="number"){var X=D.document;S=X.documentElement[te],typeof S!="number"&&(S=X.body[te])}return S}function L(D){var S,te,X=D.ownerDocument,j=X.body,q=X&&X.documentElement,ue=D.getBoundingClientRect();return S=ue.left,te=ue.top,S-=q.clientLeft||j.clientLeft||0,te-=q.clientTop||j.clientTop||0,{left:S,top:te}}function U(D){var S=L(D),te=D.ownerDocument,X=te.defaultView||te.parentWindow;return S.left+=x(X),S.left}var Y=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ne(D,S){var te=D.prefixCls,X=te===void 0?"rc-rate":te,j=D.className,q=D.defaultValue,ue=D.value,pe=D.count,We=pe===void 0?5:pe,G=D.allowHalf,N=G===void 0?!1:G,W=D.allowClear,$=W===void 0?!0:W,ie=D.keyboard,Q=ie===void 0?!0:ie,g=D.character,v=g===void 0?"\u2605":g,z=D.characterRender,ce=D.disabled,je=D.direction,Ye=je===void 0?"ltr":je,It=D.tabIndex,bt=It===void 0?0:It,$t=D.autoFocus,Bt=D.onHoverChange,Oe=D.onChange,jt=D.onFocus,En=D.onBlur,Yt=D.onKeyDown,cn=D.onMouseLeave,pt=(0,ge.Z)(D,Y),Pe=y(),be=(0,se.Z)(Pe,2),B=be[0],Ce=be[1],He=b.useRef(null),Z=function(){if(!ce){var k;(k=He.current)===null||k===void 0||k.focus()}};b.useImperativeHandle(S,function(){return{focus:Z,blur:function(){if(!ce){var k;(k=He.current)===null||k===void 0||k.blur()}}}});var P=(0,ve.Z)(q||0,{value:ue}),K=(0,se.Z)(P,2),me=K[0],I=K[1],de=(0,ve.Z)(null),ee=(0,se.Z)(de,2),De=ee[0],Te=ee[1],Ke=function(k,ae){var fe=Ye==="rtl",re=k+1;if(N){var Se=B(k),Mt=U(Se),Rt=Se.clientWidth;(fe&&ae-Mt>Rt/2||!fe&&ae-Mt<Rt/2)&&(re-=.5)}return re},ze=function(k){I(k),Oe==null||Oe(k)},Xe=b.useState(!1),ot=(0,se.Z)(Xe,2),_e=ot[0],Re=ot[1],at=function(){Re(!0),jt==null||jt()},Qe=function(){Re(!1),En==null||En()},Ge=b.useState(null),_t=(0,se.Z)(Ge,2),Dt=_t[0],rt=_t[1],Kt=function(k,ae){var fe=Ke(ae,k.pageX);fe!==De&&(rt(fe),Te(null)),Bt==null||Bt(fe)},fn=function(k){ce||(rt(null),Te(null),Bt==null||Bt(void 0)),k&&(cn==null||cn(k))},Tt=function(k,ae){var fe=Ke(ae,k.pageX),re=!1;$&&(re=fe===me),fn(),ze(re?0:fe),Te(re?fe:null)},Qt=function(k){var ae=k.keyCode,fe=Ye==="rtl",re=N?.5:1;Q&&(ae===oe.Z.RIGHT&&me<We&&!fe?(ze(me+re),k.preventDefault()):ae===oe.Z.LEFT&&me>0&&!fe||ae===oe.Z.RIGHT&&me>0&&fe?(ze(me-re),k.preventDefault()):ae===oe.Z.LEFT&&me<We&&fe&&(ze(me+re),k.preventDefault())),Yt==null||Yt(k)};b.useEffect(function(){$t&&!ce&&Z()},[]);var Be=new Array(We).fill(0).map(function(Ne,k){return b.createElement(m,{ref:Ce(k),index:k,count:We,disabled:ce,prefixCls:"".concat(X,"-star"),allowHalf:N,value:Dt===null?me:Dt,onClick:Tt,onHover:Kt,key:Ne||k,character:v,characterRender:z,focused:_e})}),ke=d()(X,j,(0,he.Z)((0,he.Z)({},"".concat(X,"-disabled"),ce),"".concat(X,"-rtl"),Ye==="rtl"));return b.createElement("ul",(0,p.Z)({className:ke,onMouseLeave:fn,tabIndex:ce?-1:bt,onFocus:ce?null:at,onBlur:ce?null:Qe,onKeyDown:ce?null:Qt,ref:He},(0,o.Z)(pt,{aria:!0,data:!0,attr:!0})),Be)}var M=b.forwardRef(ne),F=M},29301:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return G}});var p=w(72308),he=w(59301),se=w(11592),ge=w(48736),O=w(77321),d=w(62853),ve=w(76846),oe=w(8654),o=he.createContext(null);function b(N){var W=N.children,$=N.onBatchResize,ie=he.useRef(0),Q=he.useRef([]),g=he.useContext(o),v=he.useCallback(function(z,ce,je){ie.current+=1;var Ye=ie.current;Q.current.push({size:z,element:ce,data:je}),Promise.resolve().then(function(){Ye===ie.current&&($==null||$(Q.current),Q.current=[])}),g==null||g(z,ce,je)},[$,g]);return he.createElement(o.Provider,{value:v},W)}var T=w(76374),m=new Map;function y(N){N.forEach(function(W){var $,ie=W.target;($=m.get(ie))===null||$===void 0||$.forEach(function(Q){return Q(ie)})})}var x=new T.Z(y),L=null,U=null;function Y(N,W){m.has(N)||(m.set(N,new Set),x.observe(N)),m.get(N).add(W)}function ne(N,W){m.has(N)&&(m.get(N).delete(W),m.get(N).size||(x.unobserve(N),m.delete(N)))}var M=w(96949),F=w(55090),D=w(77205),S=w(38793),te=function(N){(0,D.Z)($,N);var W=(0,S.Z)($);function $(){return(0,M.Z)(this,$),W.apply(this,arguments)}return(0,F.Z)($,[{key:"render",value:function(){return this.props.children}}]),$}(he.Component);function X(N,W){var $=N.children,ie=N.disabled,Q=he.useRef(null),g=he.useRef(null),v=he.useContext(o),z=typeof $=="function",ce=z?$(Q):$,je=he.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ye=!z&&he.isValidElement(ce)&&(0,oe.Yr)(ce),It=Ye?(0,oe.C4)(ce):null,bt=(0,oe.x1)(It,Q),$t=function(){var En;return(0,ve.ZP)(Q.current)||(Q.current&&(0,d.Z)(Q.current)==="object"?(0,ve.ZP)((En=Q.current)===null||En===void 0?void 0:En.nativeElement):null)||(0,ve.ZP)(g.current)};he.useImperativeHandle(W,function(){return $t()});var Bt=he.useRef(N);Bt.current=N;var Oe=he.useCallback(function(jt){var En=Bt.current,Yt=En.onResize,cn=En.data,pt=jt.getBoundingClientRect(),Pe=pt.width,be=pt.height,B=jt.offsetWidth,Ce=jt.offsetHeight,He=Math.floor(Pe),Z=Math.floor(be);if(je.current.width!==He||je.current.height!==Z||je.current.offsetWidth!==B||je.current.offsetHeight!==Ce){var P={width:He,height:Z,offsetWidth:B,offsetHeight:Ce};je.current=P;var K=B===Math.round(Pe)?Pe:B,me=Ce===Math.round(be)?be:Ce,I=(0,O.Z)((0,O.Z)({},P),{},{offsetWidth:K,offsetHeight:me});v==null||v(I,jt,cn),Yt&&Promise.resolve().then(function(){Yt(I,jt)})}},[]);return he.useEffect(function(){var jt=$t();return jt&&!ie&&Y(jt,Oe),function(){return ne(jt,Oe)}},[Q.current,ie]),he.createElement(te,{ref:g},Ye?he.cloneElement(ce,{ref:bt}):ce)}var j=he.forwardRef(X),q=j,ue="rc-observer-key";function pe(N,W){var $=N.children,ie=typeof $=="function"?[$]:(0,se.Z)($);return ie.map(function(Q,g){var v=(Q==null?void 0:Q.key)||"".concat(ue,"-").concat(g);return he.createElement(q,(0,p.Z)({},N,{key:v,ref:g===0?W:void 0}),Q)})}var We=he.forwardRef(pe);We.Collection=b;var G=We},69582:function(In,Wt,w){"use strict";w.d(Wt,{ZP:function(){return ve}});var p=w(52487),he=w(59301),se=w(47273),ge=0,O=(0,se.Z)();function d(){var oe;return O?(oe=ge,ge+=1):oe="TEST_OR_SSR",oe}function ve(oe){var o=he.useState(),b=(0,p.Z)(o,2),T=b[0],m=b[1];return he.useEffect(function(){m("rc_select_".concat(d()))},[]),oe||T}},45560:function(In,Wt,w){"use strict";w.d(Wt,{Ac:function(){return Xe},Xo:function(){return _e},Wx:function(){return at},ZP:function(){return kt},lk:function(){return F}});var p=w(72308),he=w(80702),se=w(49618),ge=w(77321),O=w(52487),d=w(74416),ve=w(62853),oe=w(18929),o=w(48736),b=w(59301),T=w(92310),m=w.n(T),y=w(34280),x=w(49658),L=w(8654),U=function(le){var ht=le.className,st=le.customizeIcon,dt=le.customizeIconProps,Je=le.children,gt=le.onMouseDown,Lt=le.onClick,Ot=typeof st=="function"?st(dt):st;return b.createElement("span",{className:ht,onMouseDown:function(tt){tt.preventDefault(),gt==null||gt(tt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Lt,"aria-hidden":!0},Ot!==void 0?Ot:b.createElement("span",{className:m()(ht.split(/\s+/).map(function(lt){return"".concat(lt,"-icon")}))},Je))},Y=U,ne=function(le,ht,st,dt,Je){var gt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Lt=arguments.length>6?arguments[6]:void 0,Ot=arguments.length>7?arguments[7]:void 0,lt=b.useMemo(function(){if((0,ve.Z)(dt)==="object")return dt.clearIcon;if(Je)return Je},[dt,Je]),tt=b.useMemo(function(){return!!(!gt&&dt&&(st.length||Lt)&&!(Ot==="combobox"&&Lt===""))},[dt,gt,st.length,Lt,Ot]);return{allowClear:tt,clearIcon:b.createElement(Y,{className:"".concat(le,"-clear"),onMouseDown:ht,customizeIcon:lt},"\xD7")}},M=b.createContext(null);function F(){return b.useContext(M)}function D(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,le=b.useState(!1),ht=(0,O.Z)(le,2),st=ht[0],dt=ht[1],Je=b.useRef(null),gt=function(){window.clearTimeout(Je.current)};b.useEffect(function(){return gt},[]);var Lt=function(lt,tt){gt(),Je.current=window.setTimeout(function(){dt(lt),tt&&tt()},ye)};return[st,Lt,gt]}function S(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,le=b.useRef(null),ht=b.useRef(null);b.useEffect(function(){return function(){window.clearTimeout(ht.current)}},[]);function st(dt){(dt||le.current===null)&&(le.current=dt),window.clearTimeout(ht.current),ht.current=window.setTimeout(function(){le.current=null},ye)}return[function(){return le.current},st]}function te(ye,le,ht,st){var dt=b.useRef(null);dt.current={open:le,triggerOpen:ht,customizedTrigger:st},b.useEffect(function(){function Je(gt){var Lt;if(!((Lt=dt.current)!==null&&Lt!==void 0&&Lt.customizedTrigger)){var Ot=gt.target;Ot.shadowRoot&>.composed&&(Ot=gt.composedPath()[0]||Ot),dt.current.open&&ye().filter(function(lt){return lt}).every(function(lt){return!lt.contains(Ot)&<!==Ot})&&dt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Je),function(){return window.removeEventListener("mousedown",Je)}},[])}var X=w(10228);function j(ye){return ye&&![X.Z.ESC,X.Z.SHIFT,X.Z.BACKSPACE,X.Z.TAB,X.Z.WIN_KEY,X.Z.ALT,X.Z.META,X.Z.WIN_KEY_RIGHT,X.Z.CTRL,X.Z.SEMICOLON,X.Z.EQUALS,X.Z.CAPS_LOCK,X.Z.CONTEXT_MENU,X.Z.F1,X.Z.F2,X.Z.F3,X.Z.F4,X.Z.F5,X.Z.F6,X.Z.F7,X.Z.F8,X.Z.F9,X.Z.F10,X.Z.F11,X.Z.F12].includes(ye)}var q=w(26112),ue=w(11780),pe=function(le,ht){var st,dt=le.prefixCls,Je=le.id,gt=le.inputElement,Lt=le.disabled,Ot=le.tabIndex,lt=le.autoFocus,tt=le.autoComplete,Ct=le.editable,Jt=le.activeDescendantId,un=le.value,xn=le.maxLength,nn=le.onKeyDown,tn=le.onMouseDown,Fe=le.onChange,it=le.onPaste,St=le.onCompositionStart,mt=le.onCompositionEnd,Zt=le.onBlur,Ht=le.open,en=le.attrs,sn=gt||b.createElement("input",null),vn=sn,_n=vn.ref,An=vn.props,yn=An.onKeyDown,Zn=An.onChange,On=An.onMouseDown,zn=An.onCompositionStart,Fn=An.onCompositionEnd,kn=An.onBlur,qn=An.style;return(0,o.Kp)(!("maxLength"in sn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),sn=b.cloneElement(sn,(0,ge.Z)((0,ge.Z)((0,ge.Z)({type:"search"},An),{},{id:Je,ref:(0,L.sQ)(ht,_n),disabled:Lt,tabIndex:Ot,autoComplete:tt||"off",autoFocus:lt,className:m()("".concat(dt,"-selection-search-input"),(st=sn)===null||st===void 0||(st=st.props)===null||st===void 0?void 0:st.className),role:"combobox","aria-expanded":Ht||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Je,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Je,"_list"),"aria-activedescendant":Ht?Jt:void 0},en),{},{value:Ct?un:"",maxLength:xn,readOnly:!Ct,unselectable:Ct?null:"on",style:(0,ge.Z)((0,ge.Z)({},qn),{},{opacity:Ct?null:0}),onKeyDown:function(ln){nn(ln),yn&&yn(ln)},onMouseDown:function(ln){tn(ln),On&&On(ln)},onChange:function(ln){Fe(ln),Zn&&Zn(ln)},onCompositionStart:function(ln){St(ln),zn&&zn(ln)},onCompositionEnd:function(ln){mt(ln),Fn&&Fn(ln)},onPaste:it,onBlur:function(ln){Zt(ln),kn&&kn(ln)}})),sn},We=b.forwardRef(pe),G=We;function N(ye){return Array.isArray(ye)?ye:ye!==void 0?[ye]:[]}var W=typeof window!="undefined"&&window.document&&window.document.documentElement,$=W;function ie(ye){return ye!=null}function Q(ye){return!ye&&ye!==0}function g(ye){return["string","number"].includes((0,ve.Z)(ye))}function v(ye){var le=void 0;return ye&&(g(ye.title)?le=ye.title.toString():g(ye.label)&&(le=ye.label.toString())),le}function z(ye,le){$?b.useLayoutEffect(ye,le):b.useEffect(ye,le)}function ce(ye){var le;return(le=ye.key)!==null&&le!==void 0?le:ye.value}var je=function(le){le.preventDefault(),le.stopPropagation()},Ye=function(le){var ht=le.id,st=le.prefixCls,dt=le.values,Je=le.open,gt=le.searchValue,Lt=le.autoClearSearchValue,Ot=le.inputRef,lt=le.placeholder,tt=le.disabled,Ct=le.mode,Jt=le.showSearch,un=le.autoFocus,xn=le.autoComplete,nn=le.activeDescendantId,tn=le.tabIndex,Fe=le.removeIcon,it=le.maxTagCount,St=le.maxTagTextLength,mt=le.maxTagPlaceholder,Zt=mt===void 0?function(Gt){return"+ ".concat(Gt.length," ...")}:mt,Ht=le.tagRender,en=le.onToggleOpen,sn=le.onRemove,vn=le.onInputChange,_n=le.onInputPaste,An=le.onInputKeyDown,yn=le.onInputMouseDown,Zn=le.onInputCompositionStart,On=le.onInputCompositionEnd,zn=le.onInputBlur,Fn=b.useRef(null),kn=(0,b.useState)(0),qn=(0,O.Z)(kn,2),pn=qn[0],ln=qn[1],Me=(0,b.useState)(!1),Pt=(0,O.Z)(Me,2),mn=Pt[0],Rn=Pt[1],Kn="".concat(st,"-selection"),xe=Je||Ct==="multiple"&&Lt===!1||Ct==="tags"?gt:"",nt=Ct==="tags"||Ct==="multiple"&&Lt===!1||Jt&&(Je||mn);z(function(){ln(Fn.current.scrollWidth)},[xe]);var qe=function(et,ft,yt,Xt,Vt){return b.createElement("span",{title:v(et),className:m()("".concat(Kn,"-item"),(0,se.Z)({},"".concat(Kn,"-item-disabled"),yt))},b.createElement("span",{className:"".concat(Kn,"-item-content")},ft),Xt&&b.createElement(Y,{className:"".concat(Kn,"-item-remove"),onMouseDown:je,onClick:Vt,customizeIcon:Fe},"\xD7"))},$e=function(et,ft,yt,Xt,Vt,gn){var jn=function(Vn){je(Vn),en(!Je)};return b.createElement("span",{onMouseDown:jn},Ht({label:ft,value:et,disabled:yt,closable:Xt,onClose:Vt,isMaxTag:!!gn}))},Et=function(et){var ft=et.disabled,yt=et.label,Xt=et.value,Vt=!tt&&!ft,gn=yt;if(typeof St=="number"&&(typeof yt=="string"||typeof yt=="number")){var jn=String(gn);jn.length>St&&(gn="".concat(jn.slice(0,St),"..."))}var Bn=function(Gn){Gn&&Gn.stopPropagation(),sn(et)};return typeof Ht=="function"?$e(Xt,gn,ft,Vt,Bn):qe(et,gn,ft,Vt,Bn)},ct=function(et){if(!dt.length)return null;var ft=typeof Zt=="function"?Zt(et):Zt;return typeof Ht=="function"?$e(void 0,ft,!1,!1,void 0,!0):qe({title:ft},ft,!1)},vt=b.createElement("div",{className:"".concat(Kn,"-search"),style:{width:pn},onFocus:function(){Rn(!0)},onBlur:function(){Rn(!1)}},b.createElement(G,{ref:Ot,open:Je,prefixCls:st,id:ht,inputElement:null,disabled:tt,autoFocus:un,autoComplete:xn,editable:nt,activeDescendantId:nn,value:xe,onKeyDown:An,onMouseDown:yn,onChange:vn,onPaste:_n,onCompositionStart:Zn,onCompositionEnd:On,onBlur:zn,tabIndex:tn,attrs:(0,q.Z)(le,!0)}),b.createElement("span",{ref:Fn,className:"".concat(Kn,"-search-mirror"),"aria-hidden":!0},xe,"\xA0")),Nt=b.createElement(ue.Z,{prefixCls:"".concat(Kn,"-overflow"),data:dt,renderItem:Et,renderRest:ct,suffix:vt,itemKey:ce,maxCount:it});return b.createElement("span",{className:"".concat(Kn,"-wrap")},Nt,!dt.length&&!xe&&b.createElement("span",{className:"".concat(Kn,"-placeholder")},lt))},It=Ye,bt=function(le){var ht=le.inputElement,st=le.prefixCls,dt=le.id,Je=le.inputRef,gt=le.disabled,Lt=le.autoFocus,Ot=le.autoComplete,lt=le.activeDescendantId,tt=le.mode,Ct=le.open,Jt=le.values,un=le.placeholder,xn=le.tabIndex,nn=le.showSearch,tn=le.searchValue,Fe=le.activeValue,it=le.maxLength,St=le.onInputKeyDown,mt=le.onInputMouseDown,Zt=le.onInputChange,Ht=le.onInputPaste,en=le.onInputCompositionStart,sn=le.onInputCompositionEnd,vn=le.onInputBlur,_n=le.title,An=b.useState(!1),yn=(0,O.Z)(An,2),Zn=yn[0],On=yn[1],zn=tt==="combobox",Fn=zn||nn,kn=Jt[0],qn=tn||"";zn&&Fe&&!Zn&&(qn=Fe),b.useEffect(function(){zn&&On(!1)},[zn,Fe]);var pn=tt!=="combobox"&&!Ct&&!nn?!1:!!qn,ln=_n===void 0?v(kn):_n,Me=b.useMemo(function(){return kn?null:b.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:pn?{visibility:"hidden"}:void 0},un)},[kn,pn,un,st]);return b.createElement("span",{className:"".concat(st,"-selection-wrap")},b.createElement("span",{className:"".concat(st,"-selection-search")},b.createElement(G,{ref:Je,prefixCls:st,id:dt,open:Ct,inputElement:ht,disabled:gt,autoFocus:Lt,autoComplete:Ot,editable:Fn,activeDescendantId:lt,value:qn,onKeyDown:St,onMouseDown:mt,onChange:function(mn){On(!0),Zt(mn)},onPaste:Ht,onCompositionStart:en,onCompositionEnd:sn,onBlur:vn,tabIndex:xn,attrs:(0,q.Z)(le,!0),maxLength:zn?it:void 0})),!zn&&kn?b.createElement("span",{className:"".concat(st,"-selection-item"),title:ln,style:pn?{visibility:"hidden"}:void 0},kn.label):null,Me)},$t=bt,Bt=function(le,ht){var st=(0,b.useRef)(null),dt=(0,b.useRef)(!1),Je=le.prefixCls,gt=le.open,Lt=le.mode,Ot=le.showSearch,lt=le.tokenWithEnter,tt=le.disabled,Ct=le.prefix,Jt=le.autoClearSearchValue,un=le.onSearch,xn=le.onSearchSubmit,nn=le.onToggleOpen,tn=le.onInputKeyDown,Fe=le.onInputBlur,it=le.domRef;b.useImperativeHandle(ht,function(){return{focus:function(ln){st.current.focus(ln)},blur:function(){st.current.blur()}}});var St=S(0),mt=(0,O.Z)(St,2),Zt=mt[0],Ht=mt[1],en=function(ln){var Me=ln.which,Pt=st.current instanceof HTMLTextAreaElement;!Pt&>&&(Me===X.Z.UP||Me===X.Z.DOWN)&&ln.preventDefault(),tn&&tn(ln),Me===X.Z.ENTER&&Lt==="tags"&&!dt.current&&!gt&&(xn==null||xn(ln.target.value)),!(Pt&&!gt&&~[X.Z.UP,X.Z.DOWN,X.Z.LEFT,X.Z.RIGHT].indexOf(Me))&&j(Me)&&nn(!0)},sn=function(){Ht(!0)},vn=(0,b.useRef)(null),_n=function(ln){un(ln,!0,dt.current)!==!1&&nn(!0)},An=function(){dt.current=!0},yn=function(ln){dt.current=!1,Lt!=="combobox"&&_n(ln.target.value)},Zn=function(ln){var Me=ln.target.value;if(lt&&vn.current&&/[\r\n]/.test(vn.current)){var Pt=vn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Me=Me.replace(Pt,vn.current)}vn.current=null,_n(Me)},On=function(ln){var Me=ln.clipboardData,Pt=Me==null?void 0:Me.getData("text");vn.current=Pt||""},zn=function(ln){var Me=ln.target;if(Me!==st.current){var Pt=document.body.style.msTouchAction!==void 0;Pt?setTimeout(function(){st.current.focus()}):st.current.focus()}},Fn=function(ln){var Me=Zt();ln.target!==st.current&&!Me&&!(Lt==="combobox"&&tt)&&ln.preventDefault(),(Lt!=="combobox"&&(!Ot||!Me)||!gt)&&(gt&&Jt!==!1&&un("",!0,!1),nn())},kn={inputRef:st,onInputKeyDown:en,onInputMouseDown:sn,onInputChange:Zn,onInputPaste:On,onInputCompositionStart:An,onInputCompositionEnd:yn,onInputBlur:Fe},qn=Lt==="multiple"||Lt==="tags"?b.createElement(It,(0,p.Z)({},le,kn)):b.createElement($t,(0,p.Z)({},le,kn));return b.createElement("div",{ref:it,className:"".concat(Je,"-selector"),onClick:zn,onMouseDown:Fn},Ct&&b.createElement("div",{className:"".concat(Je,"-prefix")},Ct),qn)},Oe=b.forwardRef(Bt),jt=Oe,En=w(65352),Yt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],cn=function(le){var ht=le===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ht,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ht,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ht,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ht,adjustY:1},htmlRegion:"scroll"}}},pt=function(le,ht){var st=le.prefixCls,dt=le.disabled,Je=le.visible,gt=le.children,Lt=le.popupElement,Ot=le.animation,lt=le.transitionName,tt=le.dropdownStyle,Ct=le.dropdownClassName,Jt=le.direction,un=Jt===void 0?"ltr":Jt,xn=le.placement,nn=le.builtinPlacements,tn=le.dropdownMatchSelectWidth,Fe=le.dropdownRender,it=le.dropdownAlign,St=le.getPopupContainer,mt=le.empty,Zt=le.getTriggerDOMNode,Ht=le.onPopupVisibleChange,en=le.onPopupMouseEnter,sn=(0,d.Z)(le,Yt),vn="".concat(st,"-dropdown"),_n=Lt;Fe&&(_n=Fe(Lt));var An=b.useMemo(function(){return nn||cn(tn)},[nn,tn]),yn=Ot?"".concat(vn,"-").concat(Ot):lt,Zn=typeof tn=="number",On=b.useMemo(function(){return Zn?null:tn===!1?"minWidth":"width"},[tn,Zn]),zn=tt;Zn&&(zn=(0,ge.Z)((0,ge.Z)({},zn),{},{width:tn}));var Fn=b.useRef(null);return b.useImperativeHandle(ht,function(){return{getPopupElement:function(){var qn;return(qn=Fn.current)===null||qn===void 0?void 0:qn.popupElement}}}),b.createElement(En.Z,(0,p.Z)({},sn,{showAction:Ht?["click"]:[],hideAction:Ht?["click"]:[],popupPlacement:xn||(un==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:An,prefixCls:vn,popupTransitionName:yn,popup:b.createElement("div",{onMouseEnter:en},_n),ref:Fn,stretch:On,popupAlign:it,popupVisible:Je,getPopupContainer:St,popupClassName:m()(Ct,(0,se.Z)({},"".concat(vn,"-empty"),mt)),popupStyle:zn,getTriggerDOMNode:Zt,onPopupVisibleChange:Ht}),gt)},Pe=b.forwardRef(pt),be=Pe,B=w(68413);function Ce(ye,le){var ht=ye.key,st;return"value"in ye&&(st=ye.value),ht!=null?ht:st!==void 0?st:"rc-index-key-".concat(le)}function He(ye){return typeof ye!="undefined"&&!Number.isNaN(ye)}function Z(ye,le){var ht=ye||{},st=ht.label,dt=ht.value,Je=ht.options,gt=ht.groupLabel,Lt=st||(le?"children":"label");return{label:Lt,value:dt||"value",options:Je||"options",groupLabel:gt||Lt}}function P(ye){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ht=le.fieldNames,st=le.childrenAsData,dt=[],Je=Z(ht,!1),gt=Je.label,Lt=Je.value,Ot=Je.options,lt=Je.groupLabel;function tt(Ct,Jt){Array.isArray(Ct)&&Ct.forEach(function(un){if(Jt||!(Ot in un)){var xn=un[Lt];dt.push({key:Ce(un,dt.length),groupOption:Jt,data:un,label:un[gt],value:xn})}else{var nn=un[lt];nn===void 0&&st&&(nn=un.label),dt.push({key:Ce(un,dt.length),group:!0,data:un,label:nn}),tt(un[Ot],!0)}})}return tt(ye,!1),dt}function K(ye){var le=(0,ge.Z)({},ye);return"props"in le||Object.defineProperty(le,"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`."),le}}),le}var me=function(le,ht,st){if(!ht||!ht.length)return null;var dt=!1,Je=function Lt(Ot,lt){var tt=(0,B.Z)(lt),Ct=tt[0],Jt=tt.slice(1);if(!Ct)return[Ot];var un=Ot.split(Ct);return dt=dt||un.length>1,un.reduce(function(xn,nn){return[].concat((0,he.Z)(xn),(0,he.Z)(Lt(nn,Jt)))},[]).filter(Boolean)},gt=Je(le,ht);return dt?typeof st!="undefined"?gt.slice(0,st):gt:null},I=b.createContext(null),de=I;function ee(ye){var le=ye.visible,ht=ye.values;if(!le)return null;var st=50;return b.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ht.slice(0,st).map(function(dt){var Je=dt.label,gt=dt.value;return["number","string"].includes((0,ve.Z)(Je))?Je:gt}).join(", ")),ht.length>st?", ...":null)}var De=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Te=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ke=function(le){return le==="tags"||le==="multiple"},ze=b.forwardRef(function(ye,le){var ht,st=ye.id,dt=ye.prefixCls,Je=ye.className,gt=ye.showSearch,Lt=ye.tagRender,Ot=ye.direction,lt=ye.omitDomProps,tt=ye.displayValues,Ct=ye.onDisplayValuesChange,Jt=ye.emptyOptions,un=ye.notFoundContent,xn=un===void 0?"Not Found":un,nn=ye.onClear,tn=ye.mode,Fe=ye.disabled,it=ye.loading,St=ye.getInputElement,mt=ye.getRawInputElement,Zt=ye.open,Ht=ye.defaultOpen,en=ye.onDropdownVisibleChange,sn=ye.activeValue,vn=ye.onActiveValueChange,_n=ye.activeDescendantId,An=ye.searchValue,yn=ye.autoClearSearchValue,Zn=ye.onSearch,On=ye.onSearchSplit,zn=ye.tokenSeparators,Fn=ye.allowClear,kn=ye.prefix,qn=ye.suffixIcon,pn=ye.clearIcon,ln=ye.OptionList,Me=ye.animation,Pt=ye.transitionName,mn=ye.dropdownStyle,Rn=ye.dropdownClassName,Kn=ye.dropdownMatchSelectWidth,xe=ye.dropdownRender,nt=ye.dropdownAlign,qe=ye.placement,$e=ye.builtinPlacements,Et=ye.getPopupContainer,ct=ye.showAction,vt=ct===void 0?[]:ct,Nt=ye.onFocus,Gt=ye.onBlur,et=ye.onKeyUp,ft=ye.onKeyDown,yt=ye.onMouseDown,Xt=(0,d.Z)(ye,De),Vt=Ke(tn),gn=(gt!==void 0?gt:Vt)||tn==="combobox",jn=(0,ge.Z)({},Xt);Te.forEach(function(Sr){delete jn[Sr]}),lt==null||lt.forEach(function(Sr){delete jn[Sr]});var Bn=b.useState(!1),Vn=(0,O.Z)(Bn,2),Gn=Vn[0],Xn=Vn[1];b.useEffect(function(){Xn((0,x.Z)())},[]);var sr=b.useRef(null),Ln=b.useRef(null),ar=b.useRef(null),tr=b.useRef(null),Jn=b.useRef(null),nr=b.useRef(!1),wn=D(),_r=(0,O.Z)(wn,3),rr=_r[0],or=_r[1],Sn=_r[2];b.useImperativeHandle(le,function(){var Sr,fr;return{focus:(Sr=tr.current)===null||Sr===void 0?void 0:Sr.focus,blur:(fr=tr.current)===null||fr===void 0?void 0:fr.blur,scrollTo:function(Yr){var Xr;return(Xr=Jn.current)===null||Xr===void 0?void 0:Xr.scrollTo(Yr)},nativeElement:sr.current||Ln.current}});var an=b.useMemo(function(){var Sr;if(tn!=="combobox")return An;var fr=(Sr=tt[0])===null||Sr===void 0?void 0:Sr.value;return typeof fr=="string"||typeof fr=="number"?String(fr):""},[An,tn,tt]),Tn=tn==="combobox"&&typeof St=="function"&&St()||null,Cn=typeof mt=="function"&&mt(),Hn=(0,L.x1)(Ln,Cn==null||(ht=Cn.props)===null||ht===void 0?void 0:ht.ref),$n=b.useState(!1),dr=(0,O.Z)($n,2),vr=dr[0],Fr=dr[1];(0,y.Z)(function(){Fr(!0)},[]);var kr=(0,oe.Z)(!1,{defaultValue:Ht,value:Zt}),jr=(0,O.Z)(kr,2),Br=jr[0],Nr=jr[1],ir=vr?Br:!1,br=!xn&&Jt;(Fe||br&&ir&&tn==="combobox")&&(ir=!1);var Lr=br?!1:ir,Qn=b.useCallback(function(Sr){var fr=Sr!==void 0?Sr:!ir;Fe||(Nr(fr),ir!==fr&&(en==null||en(fr)))},[Fe,ir,Nr,en]),Un=b.useMemo(function(){return(zn||[]).some(function(Sr){return[`
|
|
`,`\r
|
|
`].includes(Sr)})},[zn]),Dn=b.useContext(de)||{},bn=Dn.maxCount,ur=Dn.rawValues,wr=function(fr,Mr,Yr){if(!(Vt&&He(bn)&&(ur==null?void 0:ur.size)>=bn)){var Xr=!0,Gr=fr;vn==null||vn(null);var $r=me(fr,zn,He(bn)?bn-ur.size:void 0),ri=Yr?null:$r;return tn!=="combobox"&&ri&&(Gr="",On==null||On(ri),Qn(!1),Xr=!1),Zn&&an!==Gr&&Zn(Gr,{source:Mr?"typing":"effect"}),Xr}},Hr=function(fr){!fr||!fr.trim()||Zn(fr,{source:"submit"})};b.useEffect(function(){!ir&&!Vt&&tn!=="combobox"&&wr("",!1,!1)},[ir]),b.useEffect(function(){Br&&Fe&&Nr(!1),Fe&&!nr.current&&or(!1)},[Fe]);var zr=S(),Vr=(0,O.Z)(zr,2),Pn=Vr[0],er=Vr[1],Er=b.useRef(!1),mr=function(fr){var Mr=Pn(),Yr=fr.key,Xr=Yr==="Enter";if(Xr&&(tn!=="combobox"&&fr.preventDefault(),ir||Qn(!0)),er(!!an),Yr==="Backspace"&&!Mr&&Vt&&!an&&tt.length){for(var Gr=(0,he.Z)(tt),$r=null,ri=Gr.length-1;ri>=0;ri-=1){var ui=Gr[ri];if(!ui.disabled){Gr.splice(ri,1),$r=ui;break}}$r&&Ct(Gr,{type:"remove",values:[$r]})}for(var _i=arguments.length,pi=new Array(_i>1?_i-1:0),Li=1;Li<_i;Li++)pi[Li-1]=arguments[Li];if(ir&&(!Xr||!Er.current)){var ei;Xr&&(Er.current=!0),(ei=Jn.current)===null||ei===void 0||ei.onKeyDown.apply(ei,[fr].concat(pi))}ft==null||ft.apply(void 0,[fr].concat(pi))},Ar=function(fr){for(var Mr=arguments.length,Yr=new Array(Mr>1?Mr-1:0),Xr=1;Xr<Mr;Xr++)Yr[Xr-1]=arguments[Xr];if(ir){var Gr;(Gr=Jn.current)===null||Gr===void 0||Gr.onKeyUp.apply(Gr,[fr].concat(Yr))}fr.key==="Enter"&&(Er.current=!1),et==null||et.apply(void 0,[fr].concat(Yr))},ni=function(fr){var Mr=tt.filter(function(Yr){return Yr!==fr});Ct(Mr,{type:"remove",values:[fr]})},Cr=function(){Er.current=!1},qr=b.useRef(!1),ai=function(){or(!0),Fe||(Nt&&!qr.current&&Nt.apply(void 0,arguments),vt.includes("focus")&&Qn(!0)),qr.current=!0},Pi=function(){nr.current=!0,or(!1,function(){qr.current=!1,nr.current=!1,Qn(!1)}),!Fe&&(an&&(tn==="tags"?Zn(an,{source:"submit"}):tn==="multiple"&&Zn("",{source:"blur"})),Gt&&Gt.apply(void 0,arguments))},Zr=[];b.useEffect(function(){return function(){Zr.forEach(function(Sr){return clearTimeout(Sr)}),Zr.splice(0,Zr.length)}},[]);var $i=function(fr){var Mr,Yr=fr.target,Xr=(Mr=ar.current)===null||Mr===void 0?void 0:Mr.getPopupElement();if(Xr&&Xr.contains(Yr)){var Gr=setTimeout(function(){var _i=Zr.indexOf(Gr);if(_i!==-1&&Zr.splice(_i,1),Sn(),!Gn&&!Xr.contains(document.activeElement)){var pi;(pi=tr.current)===null||pi===void 0||pi.focus()}});Zr.push(Gr)}for(var $r=arguments.length,ri=new Array($r>1?$r-1:0),ui=1;ui<$r;ui++)ri[ui-1]=arguments[ui];yt==null||yt.apply(void 0,[fr].concat(ri))},Ni=b.useState({}),ps=(0,O.Z)(Ni,2),oi=ps[1];function Ci(){oi({})}var Di;Cn&&(Di=function(fr){Qn(fr)}),te(function(){var Sr;return[sr.current,(Sr=ar.current)===null||Sr===void 0?void 0:Sr.getPopupElement()]},Lr,Qn,!!Cn);var Mi=b.useMemo(function(){return(0,ge.Z)((0,ge.Z)({},ye),{},{notFoundContent:xn,open:ir,triggerOpen:Lr,id:st,showSearch:gn,multiple:Vt,toggleOpen:Qn})},[ye,xn,Lr,ir,st,gn,Vt,Qn]),ci=!!qn||it,Oi;ci&&(Oi=b.createElement(Y,{className:m()("".concat(dt,"-arrow"),(0,se.Z)({},"".concat(dt,"-arrow-loading"),it)),customizeIcon:qn,customizeIconProps:{loading:it,searchValue:an,open:ir,focused:rr,showSearch:gn}}));var xi=function(){var fr;nn==null||nn(),(fr=tr.current)===null||fr===void 0||fr.focus(),Ct([],{type:"clear",values:tt}),wr("",!1,!1)},es=ne(dt,xi,tt,Fn,pn,Fe,an,tn),Ri=es.allowClear,ts=es.clearIcon,zi=b.createElement(ln,{ref:Jn}),fi=m()(dt,Je,(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)({},"".concat(dt,"-focused"),rr),"".concat(dt,"-multiple"),Vt),"".concat(dt,"-single"),!Vt),"".concat(dt,"-allow-clear"),Fn),"".concat(dt,"-show-arrow"),ci),"".concat(dt,"-disabled"),Fe),"".concat(dt,"-loading"),it),"".concat(dt,"-open"),ir),"".concat(dt,"-customize-input"),Tn),"".concat(dt,"-show-search"),gn)),Fi=b.createElement(be,{ref:ar,disabled:Fe,prefixCls:dt,visible:Lr,popupElement:zi,animation:Me,transitionName:Pt,dropdownStyle:mn,dropdownClassName:Rn,direction:Ot,dropdownMatchSelectWidth:Kn,dropdownRender:xe,dropdownAlign:nt,placement:qe,builtinPlacements:$e,getPopupContainer:Et,empty:Jt,getTriggerDOMNode:function(fr){return Ln.current||fr},onPopupVisibleChange:Di,onPopupMouseEnter:Ci},Cn?b.cloneElement(Cn,{ref:Hn}):b.createElement(jt,(0,p.Z)({},ye,{domRef:Ln,prefixCls:dt,inputElement:Tn,ref:tr,id:st,prefix:kn,showSearch:gn,autoClearSearchValue:yn,mode:tn,activeDescendantId:_n,tagRender:Lt,values:tt,open:ir,onToggleOpen:Qn,activeValue:sn,searchValue:an,onSearch:wr,onSearchSubmit:Hr,onRemove:ni,tokenWithEnter:Un,onInputBlur:Cr}))),Si;return Cn?Si=Fi:Si=b.createElement("div",(0,p.Z)({className:fi},jn,{ref:sr,onMouseDown:$i,onKeyDown:mr,onKeyUp:Ar,onFocus:ai,onBlur:Pi}),b.createElement(ee,{visible:rr&&!ir,values:tt}),Fi,Oi,Ri&&ts),b.createElement(M.Provider,{value:Mi},Si)}),Xe=ze,ot=function(){return null};ot.isSelectOptGroup=!0;var _e=ot,Re=function(){return null};Re.isSelectOption=!0;var at=Re,Qe=w(80547),Ge=w(2738),_t=w(45680);function Dt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var rt=["disabled","title","children","style","className"];function Kt(ye){return typeof ye=="string"||typeof ye=="number"}var fn=function(le,ht){var st=F(),dt=st.prefixCls,Je=st.id,gt=st.open,Lt=st.multiple,Ot=st.mode,lt=st.searchValue,tt=st.toggleOpen,Ct=st.notFoundContent,Jt=st.onPopupScroll,un=b.useContext(de),xn=un.maxCount,nn=un.flattenOptions,tn=un.onActiveValue,Fe=un.defaultActiveFirstOption,it=un.onSelect,St=un.menuItemSelectedIcon,mt=un.rawValues,Zt=un.fieldNames,Ht=un.virtual,en=un.direction,sn=un.listHeight,vn=un.listItemHeight,_n=un.optionRender,An="".concat(dt,"-item"),yn=(0,Qe.Z)(function(){return nn},[gt,nn],function(ct,vt){return vt[0]&&ct[1]!==vt[1]}),Zn=b.useRef(null),On=b.useMemo(function(){return Lt&&He(xn)&&(mt==null?void 0:mt.size)>=xn},[Lt,xn,mt==null?void 0:mt.size]),zn=function(vt){vt.preventDefault()},Fn=function(vt){var Nt;(Nt=Zn.current)===null||Nt===void 0||Nt.scrollTo(typeof vt=="number"?{index:vt}:vt)},kn=b.useCallback(function(ct){return Ot==="combobox"?!1:mt.has(ct)},[Ot,(0,he.Z)(mt).toString(),mt.size]),qn=function(vt){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Gt=yn.length,et=0;et<Gt;et+=1){var ft=(vt+et*Nt+Gt)%Gt,yt=yn[ft]||{},Xt=yt.group,Vt=yt.data;if(!Xt&&!(Vt!=null&&Vt.disabled)&&(kn(Vt.value)||!On))return ft}return-1},pn=b.useState(function(){return qn(0)}),ln=(0,O.Z)(pn,2),Me=ln[0],Pt=ln[1],mn=function(vt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Pt(vt);var Gt={source:Nt?"keyboard":"mouse"},et=yn[vt];if(!et){tn(null,-1,Gt);return}tn(et.value,vt,Gt)};(0,b.useEffect)(function(){mn(Fe!==!1?qn(0):-1)},[yn.length,lt]);var Rn=b.useCallback(function(ct){return Ot==="combobox"?String(ct).toLowerCase()===lt.toLowerCase():mt.has(ct)},[Ot,lt,(0,he.Z)(mt).toString(),mt.size]);(0,b.useEffect)(function(){var ct=setTimeout(function(){if(!Lt&>&&mt.size===1){var Nt=Array.from(mt)[0],Gt=yn.findIndex(function(et){var ft=et.data;return ft.value===Nt});Gt!==-1&&(mn(Gt),Fn(Gt))}});if(gt){var vt;(vt=Zn.current)===null||vt===void 0||vt.scrollTo(void 0)}return function(){return clearTimeout(ct)}},[gt,lt]);var Kn=function(vt){vt!==void 0&&it(vt,{selected:!mt.has(vt)}),Lt||tt(!1)};if(b.useImperativeHandle(ht,function(){return{onKeyDown:function(vt){var Nt=vt.which,Gt=vt.ctrlKey;switch(Nt){case X.Z.N:case X.Z.P:case X.Z.UP:case X.Z.DOWN:{var et=0;if(Nt===X.Z.UP?et=-1:Nt===X.Z.DOWN?et=1:Dt()&&Gt&&(Nt===X.Z.N?et=1:Nt===X.Z.P&&(et=-1)),et!==0){var ft=qn(Me+et,et);Fn(ft),mn(ft,!0)}break}case X.Z.TAB:case X.Z.ENTER:{var yt,Xt=yn[Me];Xt&&!(Xt!=null&&(yt=Xt.data)!==null&&yt!==void 0&&yt.disabled)&&!On?Kn(Xt.value):Kn(void 0),gt&&vt.preventDefault();break}case X.Z.ESC:tt(!1),gt&&vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vt){Fn(vt)}}}),yn.length===0)return b.createElement("div",{role:"listbox",id:"".concat(Je,"_list"),className:"".concat(An,"-empty"),onMouseDown:zn},Ct);var xe=Object.keys(Zt).map(function(ct){return Zt[ct]}),nt=function(vt){return vt.label};function qe(ct,vt){var Nt=ct.group;return{role:Nt?"presentation":"option",id:"".concat(Je,"_list_").concat(vt)}}var $e=function(vt){var Nt=yn[vt];if(!Nt)return null;var Gt=Nt.data||{},et=Gt.value,ft=Nt.group,yt=(0,q.Z)(Gt,!0),Xt=nt(Nt);return Nt?b.createElement("div",(0,p.Z)({"aria-label":typeof Xt=="string"&&!ft?Xt:null},yt,{key:vt},qe(Nt,vt),{"aria-selected":Rn(et)}),et):null},Et={role:"listbox",id:"".concat(Je,"_list")};return b.createElement(b.Fragment,null,Ht&&b.createElement("div",(0,p.Z)({},Et,{style:{height:0,width:0,overflow:"hidden"}}),$e(Me-1),$e(Me),$e(Me+1)),b.createElement(_t.Z,{itemKey:"key",ref:Zn,data:yn,height:sn,itemHeight:vn,fullHeight:!1,onMouseDown:zn,onScroll:Jt,virtual:Ht,direction:en,innerProps:Ht?null:Et},function(ct,vt){var Nt=ct.group,Gt=ct.groupOption,et=ct.data,ft=ct.label,yt=ct.value,Xt=et.key;if(Nt){var Vt,gn=(Vt=et.title)!==null&&Vt!==void 0?Vt:Kt(ft)?ft.toString():void 0;return b.createElement("div",{className:m()(An,"".concat(An,"-group"),et.className),title:gn},ft!==void 0?ft:Xt)}var jn=et.disabled,Bn=et.title,Vn=et.children,Gn=et.style,Xn=et.className,sr=(0,d.Z)(et,rt),Ln=(0,Ge.Z)(sr,xe),ar=kn(yt),tr=jn||!ar&&On,Jn="".concat(An,"-option"),nr=m()(An,Jn,Xn,(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)({},"".concat(Jn,"-grouped"),Gt),"".concat(Jn,"-active"),Me===vt&&!tr),"".concat(Jn,"-disabled"),tr),"".concat(Jn,"-selected"),ar)),wn=nt(ct),_r=!St||typeof St=="function"||ar,rr=typeof wn=="number"?wn:wn||yt,or=Kt(rr)?rr.toString():void 0;return Bn!==void 0&&(or=Bn),b.createElement("div",(0,p.Z)({},(0,q.Z)(Ln),Ht?{}:qe(ct,vt),{"aria-selected":Rn(yt),className:nr,title:or,onMouseMove:function(){Me===vt||tr||mn(vt)},onClick:function(){tr||Kn(yt)},style:Gn}),b.createElement("div",{className:"".concat(Jn,"-content")},typeof _n=="function"?_n(ct,{index:vt}):rr),b.isValidElement(St)||ar,_r&&b.createElement(Y,{className:"".concat(An,"-option-state"),customizeIcon:St,customizeIconProps:{value:yt,disabled:tr,isSelected:ar}},ar?"\u2713":null))}))},Tt=b.forwardRef(fn),Qt=Tt,Be=function(ye,le){var ht=b.useRef({values:new Map,options:new Map}),st=b.useMemo(function(){var Je=ht.current,gt=Je.values,Lt=Je.options,Ot=ye.map(function(Ct){if(Ct.label===void 0){var Jt;return(0,ge.Z)((0,ge.Z)({},Ct),{},{label:(Jt=gt.get(Ct.value))===null||Jt===void 0?void 0:Jt.label})}return Ct}),lt=new Map,tt=new Map;return Ot.forEach(function(Ct){lt.set(Ct.value,Ct),tt.set(Ct.value,le.get(Ct.value)||Lt.get(Ct.value))}),ht.current.values=lt,ht.current.options=tt,Ot},[ye,le]),dt=b.useCallback(function(Je){return le.get(Je)||ht.current.options.get(Je)},[le]);return[st,dt]};function ke(ye,le){return N(ye).join("").toUpperCase().includes(le)}var Ne=function(ye,le,ht,st,dt){return b.useMemo(function(){if(!ht||st===!1)return ye;var Je=le.options,gt=le.label,Lt=le.value,Ot=[],lt=typeof st=="function",tt=ht.toUpperCase(),Ct=lt?st:function(un,xn){return dt?ke(xn[dt],tt):xn[Je]?ke(xn[gt!=="children"?gt:"label"],tt):ke(xn[Lt],tt)},Jt=lt?function(un){return K(un)}:function(un){return un};return ye.forEach(function(un){if(un[Je]){var xn=Ct(ht,Jt(un));if(xn)Ot.push(un);else{var nn=un[Je].filter(function(tn){return Ct(ht,Jt(tn))});nn.length&&Ot.push((0,ge.Z)((0,ge.Z)({},un),{},(0,se.Z)({},Je,nn)))}return}Ct(ht,Jt(un))&&Ot.push(un)}),Ot},[ye,st,dt,ht,le])},k=w(69582),ae=w(11592),fe=["children","value"],re=["children"];function Se(ye){var le=ye,ht=le.key,st=le.props,dt=st.children,Je=st.value,gt=(0,d.Z)(st,fe);return(0,ge.Z)({key:ht,value:Je!==void 0?Je:ht,children:dt},gt)}function Mt(ye){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ae.Z)(ye).map(function(ht,st){if(!b.isValidElement(ht)||!ht.type)return null;var dt=ht,Je=dt.type.isSelectOptGroup,gt=dt.key,Lt=dt.props,Ot=Lt.children,lt=(0,d.Z)(Lt,re);return le||!Je?Se(ht):(0,ge.Z)((0,ge.Z)({key:"__RC_SELECT_GRP__".concat(gt===null?st:gt,"__"),label:gt},lt),{},{options:Mt(Ot)})}).filter(function(ht){return ht})}var Rt=function(le,ht,st,dt,Je){return b.useMemo(function(){var gt=le,Lt=!le;Lt&&(gt=Mt(ht));var Ot=new Map,lt=new Map,tt=function(un,xn,nn){nn&&typeof nn=="string"&&un.set(xn[nn],xn)},Ct=function Jt(un){for(var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=0;nn<un.length;nn+=1){var tn=un[nn];!tn[st.options]||xn?(Ot.set(tn[st.value],tn),tt(lt,tn,st.label),tt(lt,tn,dt),tt(lt,tn,Je)):Jt(tn[st.options],!0)}};return Ct(gt),{options:gt,valueOptions:Ot,labelOptions:lt}},[le,ht,st,dt,Je])},Ut=Rt;function hn(ye){var le=b.useRef();le.current=ye;var ht=b.useCallback(function(){return le.current.apply(le,arguments)},[]);return ht}function Le(ye){var le=ye.mode,ht=ye.options,st=ye.children,dt=ye.backfill,Je=ye.allowClear,gt=ye.placeholder,Lt=ye.getInputElement,Ot=ye.showSearch,lt=ye.onSearch,tt=ye.defaultOpen,Ct=ye.autoFocus,Jt=ye.labelInValue,un=ye.value,xn=ye.inputValue,nn=ye.optionLabelProp,tn=isMultiple(le),Fe=Ot!==void 0?Ot:tn||le==="combobox",it=ht||convertChildrenToData(st);if(warning(le!=="tags"||it.every(function(Ht){return!Ht.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),le==="tags"||le==="combobox"){var St=it.some(function(Ht){return Ht.options?Ht.options.some(function(en){return typeof("value"in en?en.value:en.key)=="number"}):typeof("value"in Ht?Ht.value:Ht.key)=="number"});warning(!St,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(le!=="combobox"||!nn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(le==="combobox"||!dt,"`backfill` only works with `combobox` mode."),warning(le==="combobox"||!Lt,"`getInputElement` only work with `combobox` mode."),noteOnce(le!=="combobox"||!Lt||!Je||!gt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),lt&&!Fe&&le!=="combobox"&&le!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!tt||Ct,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),un!=null){var mt=toArray(un);warning(!Jt||mt.every(function(Ht){return _typeof(Ht)==="object"&&("key"in Ht||"value"in Ht)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!tn||Array.isArray(un),"`value` should be array when `mode` is `multiple` or `tags`")}if(st){var Zt=null;toNodeArray(st).some(function(Ht){if(!React.isValidElement(Ht)||!Ht.type)return!1;var en=Ht,sn=en.type;if(sn.isSelectOption)return!1;if(sn.isSelectOptGroup){var vn=toNodeArray(Ht.props.children).every(function(_n){return!React.isValidElement(_n)||!Ht.type||_n.type.isSelectOption?!0:(Zt=_n.type,!1)});return!vn}return Zt=sn,!0}),Zt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Zt.displayName||Zt.name||Zt,"`.")),warning(xn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _(ye,le){if(ye){var ht=function st(dt){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=0;gt<dt.length;gt++){var Lt=dt[gt];if(Lt[le==null?void 0:le.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Je&&Array.isArray(Lt[le==null?void 0:le.options])&&st(Lt[le==null?void 0:le.options],!0))break}};ht(ye)}}var H=null,E=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ie=["inputValue"];function Ee(ye){return!ye||(0,ve.Z)(ye)!=="object"}var we=b.forwardRef(function(ye,le){var ht=ye.id,st=ye.mode,dt=ye.prefixCls,Je=dt===void 0?"rc-select":dt,gt=ye.backfill,Lt=ye.fieldNames,Ot=ye.inputValue,lt=ye.searchValue,tt=ye.onSearch,Ct=ye.autoClearSearchValue,Jt=Ct===void 0?!0:Ct,un=ye.onSelect,xn=ye.onDeselect,nn=ye.dropdownMatchSelectWidth,tn=nn===void 0?!0:nn,Fe=ye.filterOption,it=ye.filterSort,St=ye.optionFilterProp,mt=ye.optionLabelProp,Zt=ye.options,Ht=ye.optionRender,en=ye.children,sn=ye.defaultActiveFirstOption,vn=ye.menuItemSelectedIcon,_n=ye.virtual,An=ye.direction,yn=ye.listHeight,Zn=yn===void 0?200:yn,On=ye.listItemHeight,zn=On===void 0?20:On,Fn=ye.labelRender,kn=ye.value,qn=ye.defaultValue,pn=ye.labelInValue,ln=ye.onChange,Me=ye.maxCount,Pt=(0,d.Z)(ye,E),mn=(0,k.ZP)(ht),Rn=Ke(st),Kn=!!(!Zt&&en),xe=b.useMemo(function(){return Fe===void 0&&st==="combobox"?!1:Fe},[Fe,st]),nt=b.useMemo(function(){return Z(Lt,Kn)},[JSON.stringify(Lt),Kn]),qe=(0,oe.Z)("",{value:lt!==void 0?lt:Ot,postState:function(Un){return Un||""}}),$e=(0,O.Z)(qe,2),Et=$e[0],ct=$e[1],vt=Ut(Zt,en,nt,St,mt),Nt=vt.valueOptions,Gt=vt.labelOptions,et=vt.options,ft=b.useCallback(function(Qn){var Un=N(Qn);return Un.map(function(Dn){var bn,ur,wr,Hr,zr;if(Ee(Dn))bn=Dn;else{var Vr;wr=Dn.key,ur=Dn.label,bn=(Vr=Dn.value)!==null&&Vr!==void 0?Vr:wr}var Pn=Nt.get(bn);if(Pn){var er;if(ur===void 0&&(ur=Pn==null?void 0:Pn[mt||nt.label]),wr===void 0&&(wr=(er=Pn==null?void 0:Pn.key)!==null&&er!==void 0?er:bn),Hr=Pn==null?void 0:Pn.disabled,zr=Pn==null?void 0:Pn.title,0)var Er}return{label:ur,value:bn,key:wr,disabled:Hr,title:zr}})},[nt,mt,Nt]),yt=(0,oe.Z)(qn,{value:kn}),Xt=(0,O.Z)(yt,2),Vt=Xt[0],gn=Xt[1],jn=b.useMemo(function(){var Qn,Un=Rn&&Vt===null?[]:Vt,Dn=ft(Un);return st==="combobox"&&Q((Qn=Dn[0])===null||Qn===void 0?void 0:Qn.value)?[]:Dn},[Vt,ft,st,Rn]),Bn=Be(jn,Nt),Vn=(0,O.Z)(Bn,2),Gn=Vn[0],Xn=Vn[1],sr=b.useMemo(function(){if(!st&&Gn.length===1){var Qn=Gn[0];if(Qn.value===null&&(Qn.label===null||Qn.label===void 0))return[]}return Gn.map(function(Un){var Dn;return(0,ge.Z)((0,ge.Z)({},Un),{},{label:(Dn=typeof Fn=="function"?Fn(Un):Un.label)!==null&&Dn!==void 0?Dn:Un.value})})},[st,Gn,Fn]),Ln=b.useMemo(function(){return new Set(Gn.map(function(Qn){return Qn.value}))},[Gn]);b.useEffect(function(){if(st==="combobox"){var Qn,Un=(Qn=Gn[0])===null||Qn===void 0?void 0:Qn.value;ct(ie(Un)?String(Un):"")}},[Gn]);var ar=hn(function(Qn,Un){var Dn=Un!=null?Un:Qn;return(0,se.Z)((0,se.Z)({},nt.value,Qn),nt.label,Dn)}),tr=b.useMemo(function(){if(st!=="tags")return et;var Qn=(0,he.Z)(et),Un=function(bn){return Nt.has(bn)};return(0,he.Z)(Gn).sort(function(Dn,bn){return Dn.value<bn.value?-1:1}).forEach(function(Dn){var bn=Dn.value;Un(bn)||Qn.push(ar(bn,Dn.label))}),Qn},[ar,et,Nt,Gn,st]),Jn=Ne(tr,nt,Et,xe,St),nr=b.useMemo(function(){return st!=="tags"||!Et||Jn.some(function(Qn){return Qn[St||"value"]===Et})||Jn.some(function(Qn){return Qn[nt.value]===Et})?Jn:[ar(Et)].concat((0,he.Z)(Jn))},[ar,St,st,Jn,Et,nt]),wn=function Qn(Un){var Dn=(0,he.Z)(Un).sort(function(bn,ur){return it(bn,ur,{searchValue:Et})});return Dn.map(function(bn){return Array.isArray(bn.options)?(0,ge.Z)((0,ge.Z)({},bn),{},{options:bn.options.length>0?Qn(bn.options):bn.options}):bn})},_r=b.useMemo(function(){return it?wn(nr):nr},[nr,it,Et]),rr=b.useMemo(function(){return P(_r,{fieldNames:nt,childrenAsData:Kn})},[_r,nt,Kn]),or=function(Un){var Dn=ft(Un);if(gn(Dn),ln&&(Dn.length!==Gn.length||Dn.some(function(wr,Hr){var zr;return((zr=Gn[Hr])===null||zr===void 0?void 0:zr.value)!==(wr==null?void 0:wr.value)}))){var bn=pn?Dn:Dn.map(function(wr){return wr.value}),ur=Dn.map(function(wr){return K(Xn(wr.value))});ln(Rn?bn:bn[0],Rn?ur:ur[0])}},Sn=b.useState(null),an=(0,O.Z)(Sn,2),Tn=an[0],Cn=an[1],Hn=b.useState(0),$n=(0,O.Z)(Hn,2),dr=$n[0],vr=$n[1],Fr=sn!==void 0?sn:st!=="combobox",kr=b.useCallback(function(Qn,Un){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},bn=Dn.source,ur=bn===void 0?"keyboard":bn;vr(Un),gt&&st==="combobox"&&Qn!==null&&ur==="keyboard"&&Cn(String(Qn))},[gt,st]),jr=function(Un,Dn,bn){var ur=function(){var ni,Cr=Xn(Un);return[pn?{label:Cr==null?void 0:Cr[nt.label],value:Un,key:(ni=Cr==null?void 0:Cr.key)!==null&&ni!==void 0?ni:Un}:Un,K(Cr)]};if(Dn&&un){var wr=ur(),Hr=(0,O.Z)(wr,2),zr=Hr[0],Vr=Hr[1];un(zr,Vr)}else if(!Dn&&xn&&bn!=="clear"){var Pn=ur(),er=(0,O.Z)(Pn,2),Er=er[0],mr=er[1];xn(Er,mr)}},Br=hn(function(Qn,Un){var Dn,bn=Rn?Un.selected:!0;bn?Dn=Rn?[].concat((0,he.Z)(Gn),[Qn]):[Qn]:Dn=Gn.filter(function(ur){return ur.value!==Qn}),or(Dn),jr(Qn,bn),st==="combobox"?Cn(""):(!Ke||Jt)&&(ct(""),Cn(""))}),Nr=function(Un,Dn){or(Un);var bn=Dn.type,ur=Dn.values;(bn==="remove"||bn==="clear")&&ur.forEach(function(wr){jr(wr.value,!1,bn)})},ir=function(Un,Dn){if(ct(Un),Cn(null),Dn.source==="submit"){var bn=(Un||"").trim();if(bn){var ur=Array.from(new Set([].concat((0,he.Z)(Ln),[bn])));or(ur),jr(bn,!0),ct("")}return}Dn.source!=="blur"&&(st==="combobox"&&or(Un),tt==null||tt(Un))},br=function(Un){var Dn=Un;st!=="tags"&&(Dn=Un.map(function(ur){var wr=Gt.get(ur);return wr==null?void 0:wr.value}).filter(function(ur){return ur!==void 0}));var bn=Array.from(new Set([].concat((0,he.Z)(Ln),(0,he.Z)(Dn))));or(bn),bn.forEach(function(ur){jr(ur,!0)})},Lr=b.useMemo(function(){var Qn=_n!==!1&&tn!==!1;return(0,ge.Z)((0,ge.Z)({},vt),{},{flattenOptions:rr,onActiveValue:kr,defaultActiveFirstOption:Fr,onSelect:Br,menuItemSelectedIcon:vn,rawValues:Ln,fieldNames:nt,virtual:Qn,direction:An,listHeight:Zn,listItemHeight:zn,childrenAsData:Kn,maxCount:Me,optionRender:Ht})},[Me,vt,rr,kr,Fr,Br,vn,Ln,nt,_n,tn,An,Zn,zn,Kn,Ht]);return b.createElement(de.Provider,{value:Lr},b.createElement(Xe,(0,p.Z)({},Pt,{id:mn,prefixCls:Je,ref:le,omitDomProps:Ie,mode:st,displayValues:sr,onDisplayValuesChange:Nr,direction:An,searchValue:Et,onSearch:ir,autoClearSearchValue:Jt,onSearchSplit:br,dropdownMatchSelectWidth:tn,OptionList:Qt,emptyOptions:!rr.length,activeValue:Tn,activeDescendantId:"".concat(mn,"_list_").concat(dr)})))}),Ze=we;Ze.Option=at,Ze.OptGroup=_e;var ut=Ze,kt=ut},67204:function(In,Wt,w){"use strict";w.d(Wt,{R:function(){return he},w:function(){return p}});var p={},he="rc-table-internal-hook"},78612:function(In,Wt,w){"use strict";w.d(Wt,{L:function(){return U},Z:function(){return D}});var p=w(52487),he=w(49618),se=w(80702),ge=w(62853),O=w(77321),d=w(74416),ve=w(11592),oe=w(48736),o=w(59301),b=w(67204),T=w(90494);function m(S){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof te=="number"?te:te.endsWith("%")?S*parseFloat(te)/100:null}function y(S,te,X){return o.useMemo(function(){if(te&&te>0){var j=0,q=0;S.forEach(function(ie){var Q=m(te,ie.width);Q?j+=Q:q+=1});var ue=Math.max(te,X),pe=Math.max(ue-j,q),We=q,G=pe/q,N=0,W=S.map(function(ie){var Q=(0,O.Z)({},ie),g=m(te,Q.width);if(g)Q.width=g;else{var v=Math.floor(G);Q.width=We===1?pe:v,pe-=v,We-=1}return N+=Q.width,Q});if(N<ue){var $=ue/N;pe=ue,W.forEach(function(ie,Q){var g=Math.floor(ie.width*$);ie.width=Q===W.length-1?pe:g,pe-=g})}return[W,Math.max(N,ue)]}return[S,te]},[S,te,X])}var x=["children"],L=["fixed"];function U(S){return(0,ve.Z)(S).filter(function(te){return o.isValidElement(te)}).map(function(te){var X=te.key,j=te.props,q=j.children,ue=(0,d.Z)(j,x),pe=(0,O.Z)({key:X},ue);return q&&(pe.children=U(q)),pe})}function Y(S){return S.filter(function(te){return te&&(0,ge.Z)(te)==="object"&&!te.hidden}).map(function(te){var X=te.children;return X&&X.length>0?(0,O.Z)((0,O.Z)({},te),{},{children:Y(X)}):te})}function ne(S){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return S.filter(function(X){return X&&(0,ge.Z)(X)==="object"}).reduce(function(X,j,q){var ue=j.fixed,pe=ue===!0?"left":ue,We="".concat(te,"-").concat(q),G=j.children;return G&&G.length>0?[].concat((0,se.Z)(X),(0,se.Z)(ne(G,We).map(function(N){return(0,O.Z)({fixed:pe},N)}))):[].concat((0,se.Z)(X),[(0,O.Z)((0,O.Z)({key:We},j),{},{fixed:pe})])},[])}function M(S){return S.map(function(te){var X=te.fixed,j=(0,d.Z)(te,L),q=X;return X==="left"?q="right":X==="right"&&(q="left"),(0,O.Z)({fixed:q},j)})}function F(S,te){var X=S.prefixCls,j=S.columns,q=S.children,ue=S.expandable,pe=S.expandedKeys,We=S.columnTitle,G=S.getRowKey,N=S.onTriggerExpand,W=S.expandIcon,$=S.rowExpandable,ie=S.expandIconColumnIndex,Q=S.direction,g=S.expandRowByClick,v=S.columnWidth,z=S.fixed,ce=S.scrollWidth,je=S.clientWidth,Ye=o.useMemo(function(){var cn=j||U(q)||[];return Y(cn.slice())},[j,q]),It=o.useMemo(function(){if(ue){var cn=Ye.slice();if(!cn.includes(b.w)){var pt=ie||0;pt>=0&&(pt||z==="left"||!z)&&cn.splice(pt,0,b.w),z==="right"&&cn.splice(Ye.length,0,b.w)}var Pe=cn.indexOf(b.w);cn=cn.filter(function(He,Z){return He!==b.w||Z===Pe});var be=Ye[Pe],B;z?B=z:B=be?be.fixed:null;var Ce=(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},T.v,{className:"".concat(X,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",We),"fixed",B),"className","".concat(X,"-row-expand-icon-cell")),"width",v),"render",function(Z,P,K){var me=G(P,K),I=pe.has(me),de=$?$(P):!0,ee=W({prefixCls:X,expanded:I,expandable:de,record:P,onExpand:N});return g?o.createElement("span",{onClick:function(Te){return Te.stopPropagation()}},ee):ee});return cn.map(function(He){return He===b.w?Ce:He})}return Ye.filter(function(He){return He!==b.w})},[ue,Ye,G,pe,W,Q]),bt=o.useMemo(function(){var cn=It;return te&&(cn=te(cn)),cn.length||(cn=[{render:function(){return null}}]),cn},[te,It,Q]),$t=o.useMemo(function(){return Q==="rtl"?M(ne(bt)):ne(bt)},[bt,Q,ce]),Bt=o.useMemo(function(){for(var cn=-1,pt=$t.length-1;pt>=0;pt-=1){var Pe=$t[pt].fixed;if(Pe==="left"||Pe===!0){cn=pt;break}}if(cn>=0)for(var be=0;be<=cn;be+=1){var B=$t[be].fixed;if(B!=="left"&&B!==!0)return!0}var Ce=$t.findIndex(function(P){var K=P.fixed;return K==="right"});if(Ce>=0)for(var He=Ce;He<$t.length;He+=1){var Z=$t[He].fixed;if(Z!=="right")return!0}return!1},[$t]),Oe=y($t,ce,je),jt=(0,p.Z)(Oe,2),En=jt[0],Yt=jt[1];return[bt,En,Yt,Bt]}var D=F},16596:function(In,Wt,w){"use strict";w.d(Wt,{w2:function(){return p.w},vP:function(){return Qt.v},RQ:function(){return p.R},ER:function(){return me},Q$:function(){return mt},TN:function(){return mn}});var p=w(67204),he=w(52487),se=w(6089),ge=w(34280),O=w(13697),d=w(59301),ve=w(4676);function oe(xe){var nt=d.createContext(void 0),qe=function(Et){var ct=Et.value,vt=Et.children,Nt=d.useRef(ct);Nt.current=ct;var Gt=d.useState(function(){return{getValue:function(){return Nt.current},listeners:new Set}}),et=(0,he.Z)(Gt,1),ft=et[0];return(0,ge.Z)(function(){(0,ve.unstable_batchedUpdates)(function(){ft.listeners.forEach(function(yt){yt(ct)})})},[ct]),d.createElement(nt.Provider,{value:ft},vt)};return{Context:nt,Provider:qe,defaultValue:xe}}function o(xe,nt){var qe=(0,se.Z)(typeof nt=="function"?nt:function(yt){if(nt===void 0)return yt;if(!Array.isArray(nt))return yt[nt];var Xt={};return nt.forEach(function(Vt){Xt[Vt]=yt[Vt]}),Xt}),$e=d.useContext(xe==null?void 0:xe.Context),Et=$e||{},ct=Et.listeners,vt=Et.getValue,Nt=d.useRef();Nt.current=qe($e?vt():xe==null?void 0:xe.defaultValue);var Gt=d.useState({}),et=(0,he.Z)(Gt,2),ft=et[1];return(0,ge.Z)(function(){if(!$e)return;function yt(Xt){var Vt=qe(Xt);(0,O.Z)(Nt.current,Vt,!0)||ft({})}return ct.add(yt),function(){ct.delete(yt)}},[$e]),Nt.current}var b=w(72308),T=w(8654);function m(){var xe=d.createContext(null);function nt(){return d.useContext(xe)}function qe(Et,ct){var vt=(0,T.Yr)(Et),Nt=function(et,ft){var yt=vt?{ref:ft}:{},Xt=d.useRef(0),Vt=d.useRef(et),gn=nt();return gn!==null?d.createElement(Et,(0,b.Z)({},et,yt)):((!ct||ct(Vt.current,et))&&(Xt.current+=1),Vt.current=et,d.createElement(xe.Provider,{value:Xt.current},d.createElement(Et,(0,b.Z)({},et,yt))))};return vt?d.forwardRef(Nt):Nt}function $e(Et,ct){var vt=(0,T.Yr)(Et),Nt=function(et,ft){var yt=vt?{ref:ft}:{};return nt(),d.createElement(Et,(0,b.Z)({},et,yt))};return vt?d.memo(d.forwardRef(Nt),ct):d.memo(Nt,ct)}return{makeImmutable:qe,responseImmutable:$e,useImmutableMark:nt}}var y=m(),x=y.makeImmutable,L=y.responseImmutable,U=y.useImmutableMark,Y=m(),ne=Y.makeImmutable,M=Y.responseImmutable,F=Y.useImmutableMark,D=oe(),S=D;function te(xe,nt){var qe=React.useRef(0);qe.current+=1;var $e=React.useRef(xe),Et=[];Object.keys(xe||{}).map(function(vt){var Nt;(xe==null?void 0:xe[vt])!==((Nt=$e.current)===null||Nt===void 0?void 0:Nt[vt])&&Et.push(vt)}),$e.current=xe;var ct=React.useRef([]);return Et.length&&(ct.current=Et),React.useDebugValue(qe.current),React.useDebugValue(ct.current.join(", ")),nt&&console.log("".concat(nt,":"),qe.current,ct.current),qe.current}var X=null,j=null,q=w(62853),ue=w(77321),pe=w(49618),We=w(92310),G=w.n(We),N=w(80547),W=w(97938),$=w(48736),ie=d.createContext({renderWithProps:!1}),Q=ie,g="RC_TABLE_KEY";function v(xe){return xe==null?[]:Array.isArray(xe)?xe:[xe]}function z(xe){var nt=[],qe={};return xe.forEach(function($e){for(var Et=$e||{},ct=Et.key,vt=Et.dataIndex,Nt=ct||v(vt).join("-")||g;qe[Nt];)Nt="".concat(Nt,"_next");qe[Nt]=!0,nt.push(Nt)}),nt}function ce(xe){return xe!=null}function je(xe){return typeof xe=="number"&&!Number.isNaN(xe)}function Ye(xe){return xe&&(0,q.Z)(xe)==="object"&&!Array.isArray(xe)&&!d.isValidElement(xe)}function It(xe,nt,qe,$e,Et,ct){var vt=d.useContext(Q),Nt=F(),Gt=(0,N.Z)(function(){if(ce($e))return[$e];var et=nt==null||nt===""?[]:Array.isArray(nt)?nt:[nt],ft=(0,W.Z)(xe,et),yt=ft,Xt=void 0;if(Et){var Vt=Et(ft,xe,qe);Ye(Vt)?(yt=Vt.children,Xt=Vt.props,vt.renderWithProps=!0):yt=Vt}return[yt,Xt]},[Nt,xe,$e,nt,Et,qe],function(et,ft){if(ct){var yt=(0,he.Z)(et,2),Xt=yt[1],Vt=(0,he.Z)(ft,2),gn=Vt[1];return ct(gn,Xt)}return vt.renderWithProps?!0:!(0,O.Z)(et,ft,!0)});return Gt}function bt(xe,nt,qe,$e){var Et=xe+nt-1;return xe<=$e&&Et>=qe}function $t(xe,nt){return o(S,function(qe){var $e=bt(xe,nt||1,qe.hoverStartRow,qe.hoverEndRow);return[$e,qe.onHover]})}var Bt=w(70425),Oe=function(nt){var qe=nt.ellipsis,$e=nt.rowType,Et=nt.children,ct,vt=qe===!0?{showTitle:!0}:qe;return vt&&(vt.showTitle||$e==="header")&&(typeof Et=="string"||typeof Et=="number"?ct=Et.toString():d.isValidElement(Et)&&typeof Et.props.children=="string"&&(ct=Et.props.children)),ct};function jt(xe){var nt,qe,$e,Et,ct,vt,Nt,Gt,et=xe.component,ft=xe.children,yt=xe.ellipsis,Xt=xe.scope,Vt=xe.prefixCls,gn=xe.className,jn=xe.align,Bn=xe.record,Vn=xe.render,Gn=xe.dataIndex,Xn=xe.renderIndex,sr=xe.shouldCellUpdate,Ln=xe.index,ar=xe.rowType,tr=xe.colSpan,Jn=xe.rowSpan,nr=xe.fixLeft,wn=xe.fixRight,_r=xe.firstFixLeft,rr=xe.lastFixLeft,or=xe.firstFixRight,Sn=xe.lastFixRight,an=xe.appendNode,Tn=xe.additionalProps,Cn=Tn===void 0?{}:Tn,Hn=xe.isSticky,$n="".concat(Vt,"-cell"),dr=o(S,["supportSticky","allColumnsFixedLeft","rowHoverable"]),vr=dr.supportSticky,Fr=dr.allColumnsFixedLeft,kr=dr.rowHoverable,jr=It(Bn,Gn,Xn,ft,Vn,sr),Br=(0,he.Z)(jr,2),Nr=Br[0],ir=Br[1],br={},Lr=typeof nr=="number"&&vr,Qn=typeof wn=="number"&&vr;Lr&&(br.position="sticky",br.left=nr),Qn&&(br.position="sticky",br.right=wn);var Un=(nt=(qe=($e=ir==null?void 0:ir.colSpan)!==null&&$e!==void 0?$e:Cn.colSpan)!==null&&qe!==void 0?qe:tr)!==null&&nt!==void 0?nt:1,Dn=(Et=(ct=(vt=ir==null?void 0:ir.rowSpan)!==null&&vt!==void 0?vt:Cn.rowSpan)!==null&&ct!==void 0?ct:Jn)!==null&&Et!==void 0?Et:1,bn=$t(Ln,Dn),ur=(0,he.Z)(bn,2),wr=ur[0],Hr=ur[1],zr=(0,Bt.zX)(function(ni){var Cr;Bn&&Hr(Ln,Ln+Dn-1),Cn==null||(Cr=Cn.onMouseEnter)===null||Cr===void 0||Cr.call(Cn,ni)}),Vr=(0,Bt.zX)(function(ni){var Cr;Bn&&Hr(-1,-1),Cn==null||(Cr=Cn.onMouseLeave)===null||Cr===void 0||Cr.call(Cn,ni)});if(Un===0||Dn===0)return null;var Pn=(Nt=Cn.title)!==null&&Nt!==void 0?Nt:Oe({rowType:ar,ellipsis:yt,children:Nr}),er=G()($n,gn,(Gt={},(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)(Gt,"".concat($n,"-fix-left"),Lr&&vr),"".concat($n,"-fix-left-first"),_r&&vr),"".concat($n,"-fix-left-last"),rr&&vr),"".concat($n,"-fix-left-all"),rr&&Fr&&vr),"".concat($n,"-fix-right"),Qn&&vr),"".concat($n,"-fix-right-first"),or&&vr),"".concat($n,"-fix-right-last"),Sn&&vr),"".concat($n,"-ellipsis"),yt),"".concat($n,"-with-append"),an),"".concat($n,"-fix-sticky"),(Lr||Qn)&&Hn&&vr),(0,pe.Z)(Gt,"".concat($n,"-row-hover"),!ir&&wr)),Cn.className,ir==null?void 0:ir.className),Er={};jn&&(Er.textAlign=jn);var mr=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},ir==null?void 0:ir.style),br),Er),Cn.style),Ar=Nr;return(0,q.Z)(Ar)==="object"&&!Array.isArray(Ar)&&!d.isValidElement(Ar)&&(Ar=null),yt&&(rr||or)&&(Ar=d.createElement("span",{className:"".concat($n,"-content")},Ar)),d.createElement(et,(0,b.Z)({},ir,Cn,{className:er,style:mr,title:Pn,scope:Xt,onMouseEnter:kr?zr:void 0,onMouseLeave:kr?Vr:void 0,colSpan:Un!==1?Un:null,rowSpan:Dn!==1?Dn:null}),an,Ar)}var En=d.memo(jt);function Yt(xe,nt,qe,$e,Et){var ct=qe[xe]||{},vt=qe[nt]||{},Nt,Gt;ct.fixed==="left"?Nt=$e.left[Et==="rtl"?nt:xe]:vt.fixed==="right"&&(Gt=$e.right[Et==="rtl"?xe:nt]);var et=!1,ft=!1,yt=!1,Xt=!1,Vt=qe[nt+1],gn=qe[xe-1],jn=Vt&&!Vt.fixed||gn&&!gn.fixed||qe.every(function(sr){return sr.fixed==="left"});if(Et==="rtl"){if(Nt!==void 0){var Bn=gn&&gn.fixed==="left";Xt=!Bn&&jn}else if(Gt!==void 0){var Vn=Vt&&Vt.fixed==="right";yt=!Vn&&jn}}else if(Nt!==void 0){var Gn=Vt&&Vt.fixed==="left";et=!Gn&&jn}else if(Gt!==void 0){var Xn=gn&&gn.fixed==="right";ft=!Xn&&jn}return{fixLeft:Nt,fixRight:Gt,lastFixLeft:et,firstFixRight:ft,lastFixRight:yt,firstFixLeft:Xt,isSticky:$e.isSticky}}var cn=d.createContext({}),pt=cn;function Pe(xe){var nt=xe.className,qe=xe.index,$e=xe.children,Et=xe.colSpan,ct=Et===void 0?1:Et,vt=xe.rowSpan,Nt=xe.align,Gt=o(S,["prefixCls","direction"]),et=Gt.prefixCls,ft=Gt.direction,yt=d.useContext(pt),Xt=yt.scrollColumnIndex,Vt=yt.stickyOffsets,gn=yt.flattenColumns,jn=qe+ct-1,Bn=jn+1===Xt?ct+1:ct,Vn=Yt(qe,qe+Bn-1,gn,Vt,ft);return d.createElement(En,(0,b.Z)({className:nt,index:qe,component:"td",prefixCls:et,record:null,dataIndex:null,align:Nt,colSpan:Bn,rowSpan:vt,render:function(){return $e}},Vn))}var be=w(74416),B=["children"];function Ce(xe){var nt=xe.children,qe=(0,be.Z)(xe,B);return d.createElement("tr",qe,nt)}function He(xe){var nt=xe.children;return nt}He.Row=Ce,He.Cell=Pe;var Z=He;function P(xe){var nt=xe.children,qe=xe.stickyOffsets,$e=xe.flattenColumns,Et=o(S,"prefixCls"),ct=$e.length-1,vt=$e[ct],Nt=d.useMemo(function(){return{stickyOffsets:qe,flattenColumns:$e,scrollColumnIndex:vt!=null&&vt.scrollbar?ct:null}},[vt,$e,ct,qe]);return d.createElement(pt.Provider,{value:Nt},d.createElement("tfoot",{className:"".concat(Et,"-summary")},nt))}var K=M(P),me=Z,I=w(29301),de=w(29194),ee=w(24514),De=w(75152),Te=w(26112);function Ke(xe,nt,qe,$e,Et,ct,vt){xe.push({record:nt,indent:qe,index:vt});var Nt=ct(nt),Gt=Et==null?void 0:Et.has(Nt);if(nt&&Array.isArray(nt[$e])&&Gt)for(var et=0;et<nt[$e].length;et+=1)Ke(xe,nt[$e][et],qe+1,$e,Et,ct,et)}function ze(xe,nt,qe,$e){var Et=d.useMemo(function(){if(qe!=null&&qe.size){for(var ct=[],vt=0;vt<(xe==null?void 0:xe.length);vt+=1){var Nt=xe[vt];Ke(ct,Nt,0,nt,qe,$e,vt)}return ct}return xe==null?void 0:xe.map(function(Gt,et){return{record:Gt,indent:0,index:et}})},[xe,nt,qe,$e]);return Et}function Xe(xe,nt,qe,$e){var Et=o(S,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ct=Et.flattenColumns,vt=Et.expandableType,Nt=Et.expandedKeys,Gt=Et.childrenColumnName,et=Et.onTriggerExpand,ft=Et.rowExpandable,yt=Et.onRow,Xt=Et.expandRowByClick,Vt=Et.rowClassName,gn=vt==="nest",jn=vt==="row"&&(!ft||ft(xe)),Bn=jn||gn,Vn=Nt&&Nt.has(nt),Gn=Gt&&xe&&xe[Gt],Xn=(0,Bt.zX)(et),sr=yt==null?void 0:yt(xe,qe),Ln=sr==null?void 0:sr.onClick,ar=function(wn){Xt&&Bn&&et(xe,wn);for(var _r=arguments.length,rr=new Array(_r>1?_r-1:0),or=1;or<_r;or++)rr[or-1]=arguments[or];Ln==null||Ln.apply(void 0,[wn].concat(rr))},tr;typeof Vt=="string"?tr=Vt:typeof Vt=="function"&&(tr=Vt(xe,qe,$e));var Jn=z(ct);return(0,ue.Z)((0,ue.Z)({},Et),{},{columnsKey:Jn,nestExpandable:gn,expanded:Vn,hasNestChildren:Gn,record:xe,onTriggerExpand:Xn,rowSupportExpand:jn,expandable:Bn,rowProps:(0,ue.Z)((0,ue.Z)({},sr),{},{className:G()(tr,sr==null?void 0:sr.className),onClick:ar})})}function ot(xe){var nt=xe.prefixCls,qe=xe.children,$e=xe.component,Et=xe.cellComponent,ct=xe.className,vt=xe.expanded,Nt=xe.colSpan,Gt=xe.isEmpty,et=o(S,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ft=et.scrollbarSize,yt=et.fixHeader,Xt=et.fixColumn,Vt=et.componentWidth,gn=et.horizonScroll,jn=qe;return(Gt?gn&&Vt:Xt)&&(jn=d.createElement("div",{style:{width:Vt-(yt&&!Gt?ft:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(nt,"-expanded-row-fixed")},jn)),d.createElement($e,{className:ct,style:{display:vt?null:"none"}},d.createElement(En,{component:Et,prefixCls:nt,colSpan:Nt},jn))}var _e=ot;function Re(xe){var nt=xe.prefixCls,qe=xe.record,$e=xe.onExpand,Et=xe.expanded,ct=xe.expandable,vt="".concat(nt,"-row-expand-icon");if(!ct)return d.createElement("span",{className:G()(vt,"".concat(nt,"-row-spaced"))});var Nt=function(et){$e(qe,et),et.stopPropagation()};return d.createElement("span",{className:G()(vt,(0,pe.Z)((0,pe.Z)({},"".concat(nt,"-row-expanded"),Et),"".concat(nt,"-row-collapsed"),!Et)),onClick:Nt})}function at(xe,nt,qe){var $e=[];function Et(ct){(ct||[]).forEach(function(vt,Nt){$e.push(nt(vt,Nt)),Et(vt[qe])})}return Et(xe),$e}function Qe(xe,nt,qe,$e){return typeof xe=="string"?xe:typeof xe=="function"?xe(nt,qe,$e):""}function Ge(xe,nt,qe,$e,Et){var ct=xe.record,vt=xe.prefixCls,Nt=xe.columnsKey,Gt=xe.fixedInfoList,et=xe.expandIconColumnIndex,ft=xe.nestExpandable,yt=xe.indentSize,Xt=xe.expandIcon,Vt=xe.expanded,gn=xe.hasNestChildren,jn=xe.onTriggerExpand,Bn=Nt[qe],Vn=Gt[qe],Gn;qe===(et||0)&&ft&&(Gn=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(yt*$e,"px")},className:"".concat(vt,"-row-indent indent-level-").concat($e)}),Xt({prefixCls:vt,expanded:Vt,expandable:gn,record:ct,onExpand:jn})));var Xn;return nt.onCell&&(Xn=nt.onCell(ct,Et)),{key:Bn,fixedInfo:Vn,appendCellNode:Gn,additionalCellProps:Xn||{}}}function _t(xe){var nt=xe.className,qe=xe.style,$e=xe.record,Et=xe.index,ct=xe.renderIndex,vt=xe.rowKey,Nt=xe.indent,Gt=Nt===void 0?0:Nt,et=xe.rowComponent,ft=xe.cellComponent,yt=xe.scopeCellComponent,Xt=Xe($e,vt,Et,Gt),Vt=Xt.prefixCls,gn=Xt.flattenColumns,jn=Xt.expandedRowClassName,Bn=Xt.expandedRowRender,Vn=Xt.rowProps,Gn=Xt.expanded,Xn=Xt.rowSupportExpand,sr=d.useRef(!1);sr.current||(sr.current=Gn);var Ln=Qe(jn,$e,Et,Gt),ar=d.createElement(et,(0,b.Z)({},Vn,{"data-row-key":vt,className:G()(nt,"".concat(Vt,"-row"),"".concat(Vt,"-row-level-").concat(Gt),Vn==null?void 0:Vn.className,(0,pe.Z)({},Ln,Gt>=1)),style:(0,ue.Z)((0,ue.Z)({},qe),Vn==null?void 0:Vn.style)}),gn.map(function(nr,wn){var _r=nr.render,rr=nr.dataIndex,or=nr.className,Sn=Ge(Xt,nr,wn,Gt,Et),an=Sn.key,Tn=Sn.fixedInfo,Cn=Sn.appendCellNode,Hn=Sn.additionalCellProps;return d.createElement(En,(0,b.Z)({className:or,ellipsis:nr.ellipsis,align:nr.align,scope:nr.rowScope,component:nr.rowScope?yt:ft,prefixCls:Vt,key:an,record:$e,index:Et,renderIndex:ct,dataIndex:rr,render:_r,shouldCellUpdate:nr.shouldCellUpdate},Tn,{appendNode:Cn,additionalProps:Hn}))})),tr;if(Xn&&(sr.current||Gn)){var Jn=Bn($e,Et,Gt+1,Gn);tr=d.createElement(_e,{expanded:Gn,className:G()("".concat(Vt,"-expanded-row"),"".concat(Vt,"-expanded-row-level-").concat(Gt+1),Ln),prefixCls:Vt,component:et,cellComponent:ft,colSpan:gn.length,isEmpty:!1},Jn)}return d.createElement(d.Fragment,null,ar,tr)}var Dt=M(_t);function rt(xe){var nt=xe.columnKey,qe=xe.onColumnResize,$e=d.useRef();return d.useEffect(function(){$e.current&&qe(nt,$e.current.offsetWidth)},[]),d.createElement(I.Z,{data:nt},d.createElement("td",{ref:$e,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Kt(xe){var nt=xe.prefixCls,qe=xe.columnsKey,$e=xe.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(nt,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(I.Z.Collection,{onBatchResize:function(ct){ct.forEach(function(vt){var Nt=vt.data,Gt=vt.size;$e(Nt,Gt.offsetWidth)})}},qe.map(function(Et){return d.createElement(rt,{key:Et,columnKey:Et,onColumnResize:$e})})))}function fn(xe){var nt=xe.data,qe=xe.measureColumnWidth,$e=o(S,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Et=$e.prefixCls,ct=$e.getComponent,vt=$e.onColumnResize,Nt=$e.flattenColumns,Gt=$e.getRowKey,et=$e.expandedKeys,ft=$e.childrenColumnName,yt=$e.emptyNode,Xt=ze(nt,ft,et,Gt),Vt=d.useRef({renderWithProps:!1}),gn=ct(["body","wrapper"],"tbody"),jn=ct(["body","row"],"tr"),Bn=ct(["body","cell"],"td"),Vn=ct(["body","cell"],"th"),Gn;nt.length?Gn=Xt.map(function(sr,Ln){var ar=sr.record,tr=sr.indent,Jn=sr.index,nr=Gt(ar,Ln);return d.createElement(Dt,{key:nr,rowKey:nr,record:ar,index:Ln,renderIndex:Jn,rowComponent:jn,cellComponent:Bn,scopeCellComponent:Vn,indent:tr})}):Gn=d.createElement(_e,{expanded:!0,className:"".concat(Et,"-placeholder"),prefixCls:Et,component:jn,cellComponent:Bn,colSpan:Nt.length,isEmpty:!0},yt);var Xn=z(Nt);return d.createElement(Q.Provider,{value:Vt.current},d.createElement(gn,{className:"".concat(Et,"-tbody")},qe&&d.createElement(Kt,{prefixCls:Et,columnsKey:Xn,onColumnResize:vt}),Gn))}var Tt=M(fn),Qt=w(90494),Be=["columnType"];function ke(xe){for(var nt=xe.colWidths,qe=xe.columns,$e=xe.columCount,Et=o(S,["tableLayout"]),ct=Et.tableLayout,vt=[],Nt=$e||qe.length,Gt=!1,et=Nt-1;et>=0;et-=1){var ft=nt[et],yt=qe&&qe[et],Xt=void 0,Vt=void 0;if(yt&&(Xt=yt[Qt.v],ct==="auto"&&(Vt=yt.minWidth)),ft||Vt||Xt||Gt){var gn=Xt||{},jn=gn.columnType,Bn=(0,be.Z)(gn,Be);vt.unshift(d.createElement("col",(0,b.Z)({key:et,style:{width:ft,minWidth:Vt}},Bn))),Gt=!0}}return d.createElement("colgroup",null,vt)}var Ne=ke,k=w(80702),ae=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function fe(xe,nt){return(0,d.useMemo)(function(){for(var qe=[],$e=0;$e<nt;$e+=1){var Et=xe[$e];if(Et!==void 0)qe[$e]=Et;else return null}return qe},[xe.join("_"),nt])}var re=d.forwardRef(function(xe,nt){var qe=xe.className,$e=xe.noData,Et=xe.columns,ct=xe.flattenColumns,vt=xe.colWidths,Nt=xe.columCount,Gt=xe.stickyOffsets,et=xe.direction,ft=xe.fixHeader,yt=xe.stickyTopOffset,Xt=xe.stickyBottomOffset,Vt=xe.stickyClassName,gn=xe.onScroll,jn=xe.maxContentScroll,Bn=xe.children,Vn=(0,be.Z)(xe,ae),Gn=o(S,["prefixCls","scrollbarSize","isSticky","getComponent"]),Xn=Gn.prefixCls,sr=Gn.scrollbarSize,Ln=Gn.isSticky,ar=Gn.getComponent,tr=ar(["header","table"],"table"),Jn=Ln&&!ft?0:sr,nr=d.useRef(null),wn=d.useCallback(function(Hn){(0,T.mH)(nt,Hn),(0,T.mH)(nr,Hn)},[]);d.useEffect(function(){var Hn;function $n(dr){var vr=dr,Fr=vr.currentTarget,kr=vr.deltaX;kr&&(gn({currentTarget:Fr,scrollLeft:Fr.scrollLeft+kr}),dr.preventDefault())}return(Hn=nr.current)===null||Hn===void 0||Hn.addEventListener("wheel",$n,{passive:!1}),function(){var dr;(dr=nr.current)===null||dr===void 0||dr.removeEventListener("wheel",$n)}},[]);var _r=d.useMemo(function(){return ct.every(function(Hn){return Hn.width})},[ct]),rr=ct[ct.length-1],or={fixed:rr?rr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Xn,"-cell-scrollbar")}}},Sn=(0,d.useMemo)(function(){return Jn?[].concat((0,k.Z)(Et),[or]):Et},[Jn,Et]),an=(0,d.useMemo)(function(){return Jn?[].concat((0,k.Z)(ct),[or]):ct},[Jn,ct]),Tn=(0,d.useMemo)(function(){var Hn=Gt.right,$n=Gt.left;return(0,ue.Z)((0,ue.Z)({},Gt),{},{left:et==="rtl"?[].concat((0,k.Z)($n.map(function(dr){return dr+Jn})),[0]):$n,right:et==="rtl"?Hn:[].concat((0,k.Z)(Hn.map(function(dr){return dr+Jn})),[0]),isSticky:Ln})},[Jn,Gt,Ln]),Cn=fe(vt,Nt);return d.createElement("div",{style:(0,ue.Z)({overflow:"hidden"},Ln?{top:yt,bottom:Xt}:{}),ref:wn,className:G()(qe,(0,pe.Z)({},Vt,!!Vt))},d.createElement(tr,{style:{tableLayout:"fixed",visibility:$e||Cn?null:"hidden"}},(!$e||!jn||_r)&&d.createElement(Ne,{colWidths:Cn?[].concat((0,k.Z)(Cn),[Jn]):[],columCount:Nt+1,columns:an}),Bn((0,ue.Z)((0,ue.Z)({},Vn),{},{stickyOffsets:Tn,columns:Sn,flattenColumns:an}))))}),Se=d.memo(re),Mt=function(nt){var qe=nt.cells,$e=nt.stickyOffsets,Et=nt.flattenColumns,ct=nt.rowComponent,vt=nt.cellComponent,Nt=nt.onHeaderRow,Gt=nt.index,et=o(S,["prefixCls","direction"]),ft=et.prefixCls,yt=et.direction,Xt;Nt&&(Xt=Nt(qe.map(function(gn){return gn.column}),Gt));var Vt=z(qe.map(function(gn){return gn.column}));return d.createElement(ct,Xt,qe.map(function(gn,jn){var Bn=gn.column,Vn=Yt(gn.colStart,gn.colEnd,Et,$e,yt),Gn;return Bn&&Bn.onHeaderCell&&(Gn=gn.column.onHeaderCell(Bn)),d.createElement(En,(0,b.Z)({},gn,{scope:Bn.title?gn.colSpan>1?"colgroup":"col":null,ellipsis:Bn.ellipsis,align:Bn.align,component:vt,prefixCls:ft,key:Vt[jn]},Vn,{additionalProps:Gn,rowType:"header"}))}))},Rt=Mt;function Ut(xe){var nt=[];function qe(vt,Nt){var Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;nt[Gt]=nt[Gt]||[];var et=Nt,ft=vt.filter(Boolean).map(function(yt){var Xt={key:yt.key,className:yt.className||"",children:yt.title,column:yt,colStart:et},Vt=1,gn=yt.children;return gn&&gn.length>0&&(Vt=qe(gn,et,Gt+1).reduce(function(jn,Bn){return jn+Bn},0),Xt.hasSubColumns=!0),"colSpan"in yt&&(Vt=yt.colSpan),"rowSpan"in yt&&(Xt.rowSpan=yt.rowSpan),Xt.colSpan=Vt,Xt.colEnd=Xt.colStart+Vt-1,nt[Gt].push(Xt),et+=Vt,Vt});return ft}qe(xe,0);for(var $e=nt.length,Et=function(Nt){nt[Nt].forEach(function(Gt){!("rowSpan"in Gt)&&!Gt.hasSubColumns&&(Gt.rowSpan=$e-Nt)})},ct=0;ct<$e;ct+=1)Et(ct);return nt}var hn=function(nt){var qe=nt.stickyOffsets,$e=nt.columns,Et=nt.flattenColumns,ct=nt.onHeaderRow,vt=o(S,["prefixCls","getComponent"]),Nt=vt.prefixCls,Gt=vt.getComponent,et=d.useMemo(function(){return Ut($e)},[$e]),ft=Gt(["header","wrapper"],"thead"),yt=Gt(["header","row"],"tr"),Xt=Gt(["header","cell"],"th");return d.createElement(ft,{className:"".concat(Nt,"-thead")},et.map(function(Vt,gn){var jn=d.createElement(Rt,{key:gn,flattenColumns:Et,cells:Vt,stickyOffsets:qe,rowComponent:yt,cellComponent:Xt,onHeaderRow:ct,index:gn});return jn}))},Le=M(hn),_=w(78612);function H(xe,nt,qe){var $e=(0,Qt.g)(xe),Et=$e.expandIcon,ct=$e.expandedRowKeys,vt=$e.defaultExpandedRowKeys,Nt=$e.defaultExpandAllRows,Gt=$e.expandedRowRender,et=$e.onExpand,ft=$e.onExpandedRowsChange,yt=$e.childrenColumnName,Xt=Et||Re,Vt=yt||"children",gn=d.useMemo(function(){return Gt?"row":xe.expandable&&xe.internalHooks===p.R&&xe.expandable.__PARENT_RENDER_ICON__||nt.some(function(Ln){return Ln&&(0,q.Z)(Ln)==="object"&&Ln[Vt]})?"nest":!1},[!!Gt,nt]),jn=d.useState(function(){return vt||(Nt?at(nt,qe,Vt):[])}),Bn=(0,he.Z)(jn,2),Vn=Bn[0],Gn=Bn[1],Xn=d.useMemo(function(){return new Set(ct||Vn||[])},[ct,Vn]),sr=d.useCallback(function(Ln){var ar=qe(Ln,nt.indexOf(Ln)),tr,Jn=Xn.has(ar);Jn?(Xn.delete(ar),tr=(0,k.Z)(Xn)):tr=[].concat((0,k.Z)(Xn),[ar]),Gn(tr),et&&et(!Jn,Ln),ft&&ft(tr)},[qe,Xn,nt,et,ft]);return[$e,gn,Xn,Xt,Vt,sr]}function E(xe,nt,qe){var $e=xe.map(function(Et,ct){return Yt(ct,ct,xe,nt,qe)});return(0,N.Z)(function(){return $e},[$e],function(Et,ct){return!(0,O.Z)(Et,ct)})}function Ie(xe){var nt=(0,d.useRef)(xe),qe=(0,d.useState)({}),$e=(0,he.Z)(qe,2),Et=$e[1],ct=(0,d.useRef)(null),vt=(0,d.useRef)([]);function Nt(Gt){vt.current.push(Gt);var et=Promise.resolve();ct.current=et,et.then(function(){if(ct.current===et){var ft=vt.current,yt=nt.current;vt.current=[],ft.forEach(function(Xt){nt.current=Xt(nt.current)}),ct.current=null,yt!==nt.current&&Et({})}})}return(0,d.useEffect)(function(){return function(){ct.current=null}},[]),[nt.current,Nt]}function Ee(xe){var nt=(0,d.useRef)(xe||null),qe=(0,d.useRef)();function $e(){window.clearTimeout(qe.current)}function Et(vt){nt.current=vt,$e(),qe.current=window.setTimeout(function(){nt.current=null,qe.current=void 0},100)}function ct(){return nt.current}return(0,d.useEffect)(function(){return $e},[]),[Et,ct]}function we(){var xe=d.useState(-1),nt=(0,he.Z)(xe,2),qe=nt[0],$e=nt[1],Et=d.useState(-1),ct=(0,he.Z)(Et,2),vt=ct[0],Nt=ct[1],Gt=d.useCallback(function(et,ft){$e(et),Nt(ft)},[]);return[qe,vt,Gt]}var Ze=w(47273),ut=(0,Ze.Z)()?window:null;function kt(xe,nt){var qe=(0,q.Z)(xe)==="object"?xe:{},$e=qe.offsetHeader,Et=$e===void 0?0:$e,ct=qe.offsetSummary,vt=ct===void 0?0:ct,Nt=qe.offsetScroll,Gt=Nt===void 0?0:Nt,et=qe.getContainer,ft=et===void 0?function(){return ut}:et,yt=ft()||ut,Xt=!!xe;return d.useMemo(function(){return{isSticky:Xt,stickyClassName:Xt?"".concat(nt,"-sticky-holder"):"",offsetHeader:Et,offsetSummary:vt,offsetScroll:Gt,container:yt}},[Xt,Gt,Et,vt,nt,yt])}function ye(xe,nt,qe){var $e=(0,d.useMemo)(function(){var Et=nt.length,ct=function(et,ft,yt){for(var Xt=[],Vt=0,gn=et;gn!==ft;gn+=yt)Xt.push(Vt),nt[gn].fixed&&(Vt+=xe[gn]||0);return Xt},vt=ct(0,Et,1),Nt=ct(Et-1,-1,-1).reverse();return qe==="rtl"?{left:Nt,right:vt}:{left:vt,right:Nt}},[xe,nt,qe]);return $e}var le=ye;function ht(xe){var nt=xe.className,qe=xe.children;return d.createElement("div",{className:nt},qe)}var st=ht,dt=w(8224),Je=w(16089),gt=w(76846);function Lt(xe){var nt=(0,gt.bn)(xe),qe=nt.getBoundingClientRect(),$e=document.documentElement;return{left:qe.left+(window.pageXOffset||$e.scrollLeft)-($e.clientLeft||document.body.clientLeft||0),top:qe.top+(window.pageYOffset||$e.scrollTop)-($e.clientTop||document.body.clientTop||0)}}var Ot=function(nt,qe){var $e,Et,ct=nt.scrollBodyRef,vt=nt.onScroll,Nt=nt.offsetScroll,Gt=nt.container,et=nt.direction,ft=o(S,"prefixCls"),yt=(($e=ct.current)===null||$e===void 0?void 0:$e.scrollWidth)||0,Xt=((Et=ct.current)===null||Et===void 0?void 0:Et.clientWidth)||0,Vt=yt&&Xt*(Xt/yt),gn=d.useRef(),jn=Ie({scrollLeft:0,isHiddenScrollBar:!0}),Bn=(0,he.Z)(jn,2),Vn=Bn[0],Gn=Bn[1],Xn=d.useRef({delta:0,x:0}),sr=d.useState(!1),Ln=(0,he.Z)(sr,2),ar=Ln[0],tr=Ln[1],Jn=d.useRef(null);d.useEffect(function(){return function(){Je.Z.cancel(Jn.current)}},[]);var nr=function(){tr(!1)},wn=function(an){an.persist(),Xn.current.delta=an.pageX-Vn.scrollLeft,Xn.current.x=0,tr(!0),an.preventDefault()},_r=function(an){var Tn,Cn=an||((Tn=window)===null||Tn===void 0?void 0:Tn.event),Hn=Cn.buttons;if(!ar||Hn===0){ar&&tr(!1);return}var $n=Xn.current.x+an.pageX-Xn.current.x-Xn.current.delta,dr=et==="rtl";$n=Math.max(dr?Vt-Xt:0,Math.min(dr?0:Xt-Vt,$n));var vr=!dr||Math.abs($n)+Math.abs(Vt)<Xt;vr&&(vt({scrollLeft:$n/Xt*(yt+2)}),Xn.current.x=an.pageX)},rr=function(){Je.Z.cancel(Jn.current),Jn.current=(0,Je.Z)(function(){if(ct.current){var an=Lt(ct.current).top,Tn=an+ct.current.offsetHeight,Cn=Gt===window?document.documentElement.scrollTop+window.innerHeight:Lt(Gt).top+Gt.clientHeight;Tn-(0,De.Z)()<=Cn||an>=Cn-Nt?Gn(function(Hn){return(0,ue.Z)((0,ue.Z)({},Hn),{},{isHiddenScrollBar:!0})}):Gn(function(Hn){return(0,ue.Z)((0,ue.Z)({},Hn),{},{isHiddenScrollBar:!1})})}})},or=function(an){Gn(function(Tn){return(0,ue.Z)((0,ue.Z)({},Tn),{},{scrollLeft:an/yt*Xt||0})})};return d.useImperativeHandle(qe,function(){return{setScrollLeft:or,checkScrollBarVisible:rr}}),d.useEffect(function(){var Sn=(0,dt.Z)(document.body,"mouseup",nr,!1),an=(0,dt.Z)(document.body,"mousemove",_r,!1);return rr(),function(){Sn.remove(),an.remove()}},[Vt,ar]),d.useEffect(function(){if(ct.current){for(var Sn=[],an=(0,gt.bn)(ct.current);an;)Sn.push(an),an=an.parentElement;return Sn.forEach(function(Tn){return Tn.addEventListener("scroll",rr,!1)}),window.addEventListener("resize",rr,!1),window.addEventListener("scroll",rr,!1),Gt.addEventListener("scroll",rr,!1),function(){Sn.forEach(function(Tn){return Tn.removeEventListener("scroll",rr)}),window.removeEventListener("resize",rr),window.removeEventListener("scroll",rr),Gt.removeEventListener("scroll",rr)}}},[Gt]),d.useEffect(function(){Vn.isHiddenScrollBar||Gn(function(Sn){var an=ct.current;return an?(0,ue.Z)((0,ue.Z)({},Sn),{},{scrollLeft:an.scrollLeft/an.scrollWidth*an.clientWidth}):Sn})},[Vn.isHiddenScrollBar]),yt<=Xt||!Vt||Vn.isHiddenScrollBar?null:d.createElement("div",{style:{height:(0,De.Z)(),width:Xt,bottom:Nt},className:"".concat(ft,"-sticky-scroll")},d.createElement("div",{onMouseDown:wn,ref:gn,className:G()("".concat(ft,"-sticky-scroll-bar"),(0,pe.Z)({},"".concat(ft,"-sticky-scroll-bar-active"),ar)),style:{width:"".concat(Vt,"px"),transform:"translate3d(".concat(Vn.scrollLeft,"px, 0, 0)")}}))},lt=d.forwardRef(Ot);function tt(xe){return null}var Ct=tt;function Jt(xe){return null}var un=Jt,xn="rc-table",nn=[],tn={};function Fe(){return"No Data"}function it(xe,nt){var qe=(0,ue.Z)({rowKey:"key",prefixCls:xn,emptyText:Fe},xe),$e=qe.prefixCls,Et=qe.className,ct=qe.rowClassName,vt=qe.style,Nt=qe.data,Gt=qe.rowKey,et=qe.scroll,ft=qe.tableLayout,yt=qe.direction,Xt=qe.title,Vt=qe.footer,gn=qe.summary,jn=qe.caption,Bn=qe.id,Vn=qe.showHeader,Gn=qe.components,Xn=qe.emptyText,sr=qe.onRow,Ln=qe.onHeaderRow,ar=qe.onScroll,tr=qe.internalHooks,Jn=qe.transformColumns,nr=qe.internalRefs,wn=qe.tailor,_r=qe.getContainerWidth,rr=qe.sticky,or=qe.rowHoverable,Sn=or===void 0?!0:or,an=Nt||nn,Tn=!!an.length,Cn=tr===p.R,Hn=d.useCallback(function(Tr,Dr){return(0,W.Z)(Gn,Tr)||Dr},[Gn]),$n=d.useMemo(function(){return typeof Gt=="function"?Gt:function(Tr){var Dr=Tr&&Tr[Gt];return Dr}},[Gt]),dr=Hn(["body"]),vr=we(),Fr=(0,he.Z)(vr,3),kr=Fr[0],jr=Fr[1],Br=Fr[2],Nr=H(qe,an,$n),ir=(0,he.Z)(Nr,6),br=ir[0],Lr=ir[1],Qn=ir[2],Un=ir[3],Dn=ir[4],bn=ir[5],ur=et==null?void 0:et.x,wr=d.useState(0),Hr=(0,he.Z)(wr,2),zr=Hr[0],Vr=Hr[1],Pn=(0,_.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},qe),br),{},{expandable:!!br.expandedRowRender,columnTitle:br.columnTitle,expandedKeys:Qn,getRowKey:$n,onTriggerExpand:bn,expandIcon:Un,expandIconColumnIndex:br.expandIconColumnIndex,direction:yt,scrollWidth:Cn&&wn&&typeof ur=="number"?ur:null,clientWidth:zr}),Cn?Jn:null),er=(0,he.Z)(Pn,4),Er=er[0],mr=er[1],Ar=er[2],ni=er[3],Cr=Ar!=null?Ar:ur,qr=d.useMemo(function(){return{columns:Er,flattenColumns:mr}},[Er,mr]),ai=d.useRef(),Pi=d.useRef(),Zr=d.useRef(),$i=d.useRef();d.useImperativeHandle(nt,function(){return{nativeElement:ai.current,scrollTo:function(Dr){var ii;if(Zr.current instanceof HTMLElement){var gi=Dr.index,si=Dr.top,Vi=Dr.key;if(je(si)){var Yi;(Yi=Zr.current)===null||Yi===void 0||Yi.scrollTo({top:si})}else{var Xi,gs=Vi!=null?Vi:$n(an[gi]);(Xi=Zr.current.querySelector('[data-row-key="'.concat(gs,'"]')))===null||Xi===void 0||Xi.scrollIntoView()}}else(ii=Zr.current)!==null&&ii!==void 0&&ii.scrollTo&&Zr.current.scrollTo(Dr)}}});var Ni=d.useRef(),ps=d.useState(!1),oi=(0,he.Z)(ps,2),Ci=oi[0],Di=oi[1],Mi=d.useState(!1),ci=(0,he.Z)(Mi,2),Oi=ci[0],xi=ci[1],es=Ie(new Map),Ri=(0,he.Z)(es,2),ts=Ri[0],zi=Ri[1],fi=z(mr),Fi=fi.map(function(Tr){return ts.get(Tr)}),Si=d.useMemo(function(){return Fi},[Fi.join("_")]),Sr=le(Si,mr,yt),fr=et&&ce(et.y),Mr=et&&ce(Cr)||!!br.fixed,Yr=Mr&&mr.some(function(Tr){var Dr=Tr.fixed;return Dr}),Xr=d.useRef(),Gr=kt(rr,$e),$r=Gr.isSticky,ri=Gr.offsetHeader,ui=Gr.offsetSummary,_i=Gr.offsetScroll,pi=Gr.stickyClassName,Li=Gr.container,ei=d.useMemo(function(){return gn==null?void 0:gn(an)},[gn,an]),Ei=(fr||$r)&&d.isValidElement(ei)&&ei.type===Z&&ei.props.fixed,ms,ji,ns;fr&&(ji={overflowY:Tn?"scroll":"auto",maxHeight:et.y}),Mr&&(ms={overflowX:"auto"},fr||(ji={overflowY:"hidden"}),ns={width:Cr===!0?"auto":Cr,minWidth:"100%"});var bs=d.useCallback(function(Tr,Dr){(0,de.Z)(ai.current)&&zi(function(ii){if(ii.get(Tr)!==Dr){var gi=new Map(ii);return gi.set(Tr,Dr),gi}return ii})},[]),Qr=Ee(null),Pr=(0,he.Z)(Qr,2),Wr=Pr[0],on=Pr[1];function ti(Tr,Dr){Dr&&(typeof Dr=="function"?Dr(Tr):Dr.scrollLeft!==Tr&&(Dr.scrollLeft=Tr,Dr.scrollLeft!==Tr&&setTimeout(function(){Dr.scrollLeft=Tr},0)))}var mi=(0,se.Z)(function(Tr){var Dr=Tr.currentTarget,ii=Tr.scrollLeft,gi=yt==="rtl",si=typeof ii=="number"?ii:Dr.scrollLeft,Vi=Dr||tn;if(!on()||on()===Vi){var Yi;Wr(Vi),ti(si,Pi.current),ti(si,Zr.current),ti(si,Ni.current),ti(si,(Yi=Xr.current)===null||Yi===void 0?void 0:Yi.setScrollLeft)}var Xi=Dr||Pi.current;if(Xi){var gs=Cn&&wn&&typeof Cr=="number"?Cr:Xi.scrollWidth,vs=Xi.clientWidth;if(gs===vs){Di(!1),xi(!1);return}gi?(Di(-si<gs-vs),xi(-si>0)):(Di(si>0),xi(si<gs-vs))}}),rs=(0,se.Z)(function(Tr){mi(Tr),ar==null||ar(Tr)}),xs=function(){if(Mr&&Zr.current){var Dr;mi({currentTarget:(0,gt.bn)(Zr.current),scrollLeft:(Dr=Zr.current)===null||Dr===void 0?void 0:Dr.scrollLeft})}else Di(!1),xi(!1)},is=function(Dr){var ii,gi=Dr.width;(ii=Xr.current)===null||ii===void 0||ii.checkScrollBarVisible();var si=ai.current?ai.current.offsetWidth:gi;Cn&&_r&&ai.current&&(si=_r(ai.current,si)||si),si!==zr&&(xs(),Vr(si))},ss=d.useRef(!1);d.useEffect(function(){ss.current&&xs()},[Mr,Nt,Er.length]),d.useEffect(function(){ss.current=!0},[]);var Gi=d.useState(0),as=(0,he.Z)(Gi,2),Bi=as[0],os=as[1],ls=d.useState(!0),Vs=(0,he.Z)(ls,2),Ys=Vs[0],pa=Vs[1];d.useEffect(function(){(!wn||!Cn)&&(Zr.current instanceof Element?os((0,De.o)(Zr.current).width):os((0,De.o)($i.current).width)),pa((0,ee.G)("position","sticky"))},[]),d.useEffect(function(){Cn&&nr&&(nr.body.current=Zr.current)});var ma=d.useCallback(function(Tr){return d.createElement(d.Fragment,null,d.createElement(Le,Tr),Ei==="top"&&d.createElement(K,Tr,ei))},[Ei,ei]),Xs=d.useCallback(function(Tr){return d.createElement(K,Tr,ei)},[ei]),Ss=Hn(["table"],"table"),Wi=d.useMemo(function(){return ft||(Yr?Cr==="max-content"?"auto":"fixed":fr||$r||mr.some(function(Tr){var Dr=Tr.ellipsis;return Dr})?"fixed":"auto")},[fr,Yr,mr,ft,$r]),Hi,Ns={colWidths:Si,columCount:mr.length,stickyOffsets:Sr,onHeaderRow:Ln,fixHeader:fr,scroll:et},Ms=d.useMemo(function(){return Tn?null:typeof Xn=="function"?Xn():Xn},[Tn,Xn]),Os=d.createElement(Tt,{data:an,measureColumnWidth:fr||Mr||$r}),ws=d.createElement(Ne,{colWidths:mr.map(function(Tr){var Dr=Tr.width;return Dr}),columns:mr}),Qs=jn!=null?d.createElement("caption",{className:"".concat($e,"-caption")},jn):void 0,As=(0,Te.Z)(qe,{data:!0}),Js=(0,Te.Z)(qe,{aria:!0});if(fr||$r){var Fs;typeof dr=="function"?(Fs=dr(an,{scrollbarSize:Bi,ref:Zr,onScroll:mi}),Ns.colWidths=mr.map(function(Tr,Dr){var ii=Tr.width,gi=Dr===mr.length-1?ii-Bi:ii;return typeof gi=="number"&&!Number.isNaN(gi)?gi:0})):Fs=d.createElement("div",{style:(0,ue.Z)((0,ue.Z)({},ms),ji),onScroll:rs,ref:Zr,className:G()("".concat($e,"-body"))},d.createElement(Ss,(0,b.Z)({style:(0,ue.Z)((0,ue.Z)({},ns),{},{tableLayout:Wi})},Js),Qs,ws,Os,!Ei&&ei&&d.createElement(K,{stickyOffsets:Sr,flattenColumns:mr},ei)));var Bs=(0,ue.Z)((0,ue.Z)((0,ue.Z)({noData:!an.length,maxContentScroll:Mr&&Cr==="max-content"},Ns),qr),{},{direction:yt,stickyClassName:pi,onScroll:mi});Hi=d.createElement(d.Fragment,null,Vn!==!1&&d.createElement(Se,(0,b.Z)({},Bs,{stickyTopOffset:ri,className:"".concat($e,"-header"),ref:Pi}),ma),Fs,Ei&&Ei!=="top"&&d.createElement(Se,(0,b.Z)({},Bs,{stickyBottomOffset:ui,className:"".concat($e,"-summary"),ref:Ni}),Xs),$r&&Zr.current&&Zr.current instanceof Element&&d.createElement(lt,{ref:Xr,offsetScroll:_i,scrollBodyRef:Zr,onScroll:mi,container:Li,direction:yt}))}else Hi=d.createElement("div",{style:(0,ue.Z)((0,ue.Z)({},ms),ji),className:G()("".concat($e,"-content")),onScroll:mi,ref:Zr},d.createElement(Ss,(0,b.Z)({style:(0,ue.Z)((0,ue.Z)({},ns),{},{tableLayout:Wi})},Js),Qs,ws,Vn!==!1&&d.createElement(Le,(0,b.Z)({},Ns,qr)),Os,ei&&d.createElement(K,{stickyOffsets:Sr,flattenColumns:mr},ei)));var Ts=d.createElement("div",(0,b.Z)({className:G()($e,Et,(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat($e,"-rtl"),yt==="rtl"),"".concat($e,"-ping-left"),Ci),"".concat($e,"-ping-right"),Oi),"".concat($e,"-layout-fixed"),ft==="fixed"),"".concat($e,"-fixed-header"),fr),"".concat($e,"-fixed-column"),Yr),"".concat($e,"-fixed-column-gapped"),Yr&&ni),"".concat($e,"-scroll-horizontal"),Mr),"".concat($e,"-has-fix-left"),mr[0]&&mr[0].fixed),"".concat($e,"-has-fix-right"),mr[mr.length-1]&&mr[mr.length-1].fixed==="right")),style:vt,id:Bn,ref:ai},As),Xt&&d.createElement(st,{className:"".concat($e,"-title")},Xt(an)),d.createElement("div",{ref:$i,className:"".concat($e,"-container")},Hi),Vt&&d.createElement(st,{className:"".concat($e,"-footer")},Vt(an)));Mr&&(Ts=d.createElement(I.Z,{onResize:is},Ts));var qs=E(mr,Sr,yt),$s=d.useMemo(function(){return{scrollX:Cr,prefixCls:$e,getComponent:Hn,scrollbarSize:Bi,direction:yt,fixedInfoList:qs,isSticky:$r,supportSticky:Ys,componentWidth:zr,fixHeader:fr,fixColumn:Yr,horizonScroll:Mr,tableLayout:Wi,rowClassName:ct,expandedRowClassName:br.expandedRowClassName,expandIcon:Un,expandableType:Lr,expandRowByClick:br.expandRowByClick,expandedRowRender:br.expandedRowRender,onTriggerExpand:bn,expandIconColumnIndex:br.expandIconColumnIndex,indentSize:br.indentSize,allColumnsFixedLeft:mr.every(function(Tr){return Tr.fixed==="left"}),emptyNode:Ms,columns:Er,flattenColumns:mr,onColumnResize:bs,hoverStartRow:kr,hoverEndRow:jr,onHover:Br,rowExpandable:br.rowExpandable,onRow:sr,getRowKey:$n,expandedKeys:Qn,childrenColumnName:Dn,rowHoverable:Sn}},[Cr,$e,Hn,Bi,yt,qs,$r,Ys,zr,fr,Yr,Mr,Wi,ct,br.expandedRowClassName,Un,Lr,br.expandRowByClick,br.expandedRowRender,bn,br.expandIconColumnIndex,br.indentSize,Ms,Er,mr,bs,kr,jr,Br,br.rowExpandable,sr,$n,Qn,Dn,Sn]);return d.createElement(S.Provider,{value:$s},Ts)}var St=d.forwardRef(it);function mt(xe){return ne(St,xe)}var Zt=mt();Zt.EXPAND_COLUMN=p.w,Zt.INTERNAL_HOOKS=p.R,Zt.Column=Ct,Zt.ColumnGroup=un,Zt.Summary=me;var Ht=Zt,en=w(45680),sn=oe(null),vn=oe(null);function _n(xe,nt,qe){var $e=nt||1;return qe[xe+$e]-(qe[xe]||0)}function An(xe){var nt=xe.rowInfo,qe=xe.column,$e=xe.colIndex,Et=xe.indent,ct=xe.index,vt=xe.component,Nt=xe.renderIndex,Gt=xe.record,et=xe.style,ft=xe.className,yt=xe.inverse,Xt=xe.getHeight,Vt=qe.render,gn=qe.dataIndex,jn=qe.className,Bn=qe.width,Vn=o(vn,["columnsOffset"]),Gn=Vn.columnsOffset,Xn=Ge(nt,qe,$e,Et,ct),sr=Xn.key,Ln=Xn.fixedInfo,ar=Xn.appendCellNode,tr=Xn.additionalCellProps,Jn=tr.style,nr=tr.colSpan,wn=nr===void 0?1:nr,_r=tr.rowSpan,rr=_r===void 0?1:_r,or=$e-1,Sn=_n(or,wn,Gn),an=wn>1?Bn-Sn:0,Tn=(0,ue.Z)((0,ue.Z)((0,ue.Z)({},Jn),et),{},{flex:"0 0 ".concat(Sn,"px"),width:"".concat(Sn,"px"),marginRight:an,pointerEvents:"auto"}),Cn=d.useMemo(function(){return yt?rr<=1:wn===0||rr===0||rr>1},[rr,wn,yt]);Cn?Tn.visibility="hidden":yt&&(Tn.height=Xt==null?void 0:Xt(rr));var Hn=Cn?function(){return null}:Vt,$n={};return(rr===0||wn===0)&&($n.rowSpan=1,$n.colSpan=1),d.createElement(En,(0,b.Z)({className:G()(jn,ft),ellipsis:qe.ellipsis,align:qe.align,scope:qe.rowScope,component:vt,prefixCls:nt.prefixCls,key:sr,record:Gt,index:ct,renderIndex:Nt,dataIndex:gn,render:Hn,shouldCellUpdate:qe.shouldCellUpdate},Ln,{appendNode:ar,additionalProps:(0,ue.Z)((0,ue.Z)({},tr),{},{style:Tn},$n)}))}var yn=An,Zn=["data","index","className","rowKey","style","extra","getHeight"],On=d.forwardRef(function(xe,nt){var qe=xe.data,$e=xe.index,Et=xe.className,ct=xe.rowKey,vt=xe.style,Nt=xe.extra,Gt=xe.getHeight,et=(0,be.Z)(xe,Zn),ft=qe.record,yt=qe.indent,Xt=qe.index,Vt=o(S,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),gn=Vt.scrollX,jn=Vt.flattenColumns,Bn=Vt.prefixCls,Vn=Vt.fixColumn,Gn=Vt.componentWidth,Xn=o(sn,["getComponent"]),sr=Xn.getComponent,Ln=Xe(ft,ct,$e,yt),ar=sr(["body","row"],"div"),tr=sr(["body","cell"],"div"),Jn=Ln.rowSupportExpand,nr=Ln.expanded,wn=Ln.rowProps,_r=Ln.expandedRowRender,rr=Ln.expandedRowClassName,or;if(Jn&&nr){var Sn=_r(ft,$e,yt+1,nr),an=Qe(rr,ft,$e,yt),Tn={};Vn&&(Tn={style:(0,pe.Z)({},"--virtual-width","".concat(Gn,"px"))});var Cn="".concat(Bn,"-expanded-row-cell");or=d.createElement(ar,{className:G()("".concat(Bn,"-expanded-row"),"".concat(Bn,"-expanded-row-level-").concat(yt+1),an)},d.createElement(En,{component:tr,prefixCls:Bn,className:G()(Cn,(0,pe.Z)({},"".concat(Cn,"-fixed"),Vn)),additionalProps:Tn},Sn))}var Hn=(0,ue.Z)((0,ue.Z)({},vt),{},{width:gn});Nt&&(Hn.position="absolute",Hn.pointerEvents="none");var $n=d.createElement(ar,(0,b.Z)({},wn,et,{"data-row-key":ct,ref:Jn?null:nt,className:G()(Et,"".concat(Bn,"-row"),wn==null?void 0:wn.className,(0,pe.Z)({},"".concat(Bn,"-row-extra"),Nt)),style:(0,ue.Z)((0,ue.Z)({},Hn),wn==null?void 0:wn.style)}),jn.map(function(dr,vr){return d.createElement(yn,{key:vr,component:tr,rowInfo:Ln,column:dr,colIndex:vr,indent:yt,index:$e,renderIndex:Xt,record:ft,inverse:Nt,getHeight:Gt})}));return Jn?d.createElement("div",{ref:nt},$n,or):$n}),zn=M(On),Fn=zn,kn=d.forwardRef(function(xe,nt){var qe=xe.data,$e=xe.onScroll,Et=o(S,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),ct=Et.flattenColumns,vt=Et.onColumnResize,Nt=Et.getRowKey,Gt=Et.expandedKeys,et=Et.prefixCls,ft=Et.childrenColumnName,yt=Et.scrollX,Xt=Et.direction,Vt=o(sn),gn=Vt.sticky,jn=Vt.scrollY,Bn=Vt.listItemHeight,Vn=Vt.getComponent,Gn=Vt.onScroll,Xn=d.useRef(),sr=ze(qe,ft,Gt,Nt),Ln=d.useMemo(function(){var or=0;return ct.map(function(Sn){var an=Sn.width,Tn=Sn.key;return or+=an,[Tn,an,or]})},[ct]),ar=d.useMemo(function(){return Ln.map(function(or){return or[2]})},[Ln]);d.useEffect(function(){Ln.forEach(function(or){var Sn=(0,he.Z)(or,2),an=Sn[0],Tn=Sn[1];vt(an,Tn)})},[Ln]),d.useImperativeHandle(nt,function(){var or,Sn={scrollTo:function(Tn){var Cn;(Cn=Xn.current)===null||Cn===void 0||Cn.scrollTo(Tn)},nativeElement:(or=Xn.current)===null||or===void 0?void 0:or.nativeElement};return Object.defineProperty(Sn,"scrollLeft",{get:function(){var Tn;return((Tn=Xn.current)===null||Tn===void 0?void 0:Tn.getScrollInfo().x)||0},set:function(Tn){var Cn;(Cn=Xn.current)===null||Cn===void 0||Cn.scrollTo({left:Tn})}}),Sn});var tr=function(Sn,an){var Tn,Cn=(Tn=sr[an])===null||Tn===void 0?void 0:Tn.record,Hn=Sn.onCell;if(Hn){var $n,dr=Hn(Cn,an);return($n=dr==null?void 0:dr.rowSpan)!==null&&$n!==void 0?$n:1}return 1},Jn=function(Sn){var an=Sn.start,Tn=Sn.end,Cn=Sn.getSize,Hn=Sn.offsetY;if(Tn<0)return null;for(var $n=ct.filter(function(Un){return tr(Un,an)===0}),dr=an,vr=function(Dn){if($n=$n.filter(function(bn){return tr(bn,Dn)===0}),!$n.length)return dr=Dn,1},Fr=an;Fr>=0&&!vr(Fr);Fr-=1);for(var kr=ct.filter(function(Un){return tr(Un,Tn)!==1}),jr=Tn,Br=function(Dn){if(kr=kr.filter(function(bn){return tr(bn,Dn)!==1}),!kr.length)return jr=Math.max(Dn-1,Tn),1},Nr=Tn;Nr<sr.length&&!Br(Nr);Nr+=1);for(var ir=[],br=function(Dn){var bn=sr[Dn];if(!bn)return 1;ct.some(function(ur){return tr(ur,Dn)>1})&&ir.push(Dn)},Lr=dr;Lr<=jr;Lr+=1)br(Lr);var Qn=ir.map(function(Un){var Dn=sr[Un],bn=Nt(Dn.record,Un),ur=function(zr){var Vr=Un+zr-1,Pn=Nt(sr[Vr].record,Vr),er=Cn(bn,Pn);return er.bottom-er.top},wr=Cn(bn);return d.createElement(Fn,{key:Un,data:Dn,rowKey:bn,index:Un,style:{top:-Hn+wr.top},extra:!0,getHeight:ur})});return Qn},nr=d.useMemo(function(){return{columnsOffset:ar}},[ar]),wn="".concat(et,"-tbody"),_r=Vn(["body","wrapper"]),rr={};return gn&&(rr.position="sticky",rr.bottom=0,(0,q.Z)(gn)==="object"&&gn.offsetScroll&&(rr.bottom=gn.offsetScroll)),d.createElement(vn.Provider,{value:nr},d.createElement(en.Z,{fullHeight:!1,ref:Xn,prefixCls:"".concat(wn,"-virtual"),styles:{horizontalScrollBar:rr},className:wn,height:jn,itemHeight:Bn||24,data:sr,itemKey:function(Sn){return Nt(Sn.record)},component:_r,scrollWidth:yt,direction:Xt,onVirtualScroll:function(Sn){var an,Tn=Sn.x;$e({currentTarget:(an=Xn.current)===null||an===void 0?void 0:an.nativeElement,scrollLeft:Tn})},onScroll:Gn,extraRender:Jn},function(or,Sn,an){var Tn=Nt(or.record,Sn);return d.createElement(Fn,{data:or,rowKey:Tn,index:Sn,style:an.style})}))}),qn=M(kn),pn=qn,ln=function(nt,qe){var $e=qe.ref,Et=qe.onScroll;return d.createElement(pn,{ref:$e,data:nt,onScroll:Et})};function Me(xe,nt){var qe=xe.data,$e=xe.columns,Et=xe.scroll,ct=xe.sticky,vt=xe.prefixCls,Nt=vt===void 0?xn:vt,Gt=xe.className,et=xe.listItemHeight,ft=xe.components,yt=xe.onScroll,Xt=Et||{},Vt=Xt.x,gn=Xt.y;typeof Vt!="number"&&(Vt=1),typeof gn!="number"&&(gn=500);var jn=(0,Bt.zX)(function(Gn,Xn){return(0,W.Z)(ft,Gn)||Xn}),Bn=(0,Bt.zX)(yt),Vn=d.useMemo(function(){return{sticky:ct,scrollY:gn,listItemHeight:et,getComponent:jn,onScroll:Bn}},[ct,gn,et,jn,Bn]);return d.createElement(sn.Provider,{value:Vn},d.createElement(Ht,(0,b.Z)({},xe,{className:G()(Gt,"".concat(Nt,"-virtual")),scroll:(0,ue.Z)((0,ue.Z)({},Et),{},{x:Vt}),components:(0,ue.Z)((0,ue.Z)({},ft),{},{body:qe!=null&&qe.length?ln:void 0}),columns:$e,internalHooks:p.R,tailor:!0,ref:nt})))}var Pt=d.forwardRef(Me);function mn(xe){return ne(Pt,xe)}var Rn=mn(),Kn=null},90494:function(In,Wt,w){"use strict";w.d(Wt,{g:function(){return d},v:function(){return O}});var p=w(77321),he=w(74416),se=w(48736),ge=["expandable"],O="RC_TABLE_INTERNAL_COL_DEFINE";function d(ve){var oe=ve.expandable,o=(0,he.Z)(ve,ge),b;return"expandable"in ve?b=(0,p.Z)((0,p.Z)({},o),oe):b=o,b.showExpandColumn===!1&&(b.expandIconColumnIndex=-1),b}},29443:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return ot}});var p=w(72308),he=w(49618),se=w(77321),ge=w(52487),O=w(62853),d=w(74416),ve=w(92310),oe=w.n(ve),o=w(18929),b=w(49658),T=w(59301),m=(0,T.createContext)(null),y=w(80702),x=w(29301),L=w(6089),U=w(8654),Y=w(16089),ne=function(Re){var at=Re.activeTabOffset,Qe=Re.horizontal,Ge=Re.rtl,_t=Re.indicator,Dt=_t===void 0?{}:_t,rt=Dt.size,Kt=Dt.align,fn=Kt===void 0?"center":Kt,Tt=(0,T.useState)(),Qt=(0,ge.Z)(Tt,2),Be=Qt[0],ke=Qt[1],Ne=(0,T.useRef)(),k=T.useCallback(function(fe){return typeof rt=="function"?rt(fe):typeof rt=="number"?rt:fe},[rt]);function ae(){Y.Z.cancel(Ne.current)}return(0,T.useEffect)(function(){var fe={};if(at)if(Qe){fe.width=k(at.width);var re=Ge?"right":"left";fn==="start"&&(fe[re]=at[re]),fn==="center"&&(fe[re]=at[re]+at.width/2,fe.transform=Ge?"translateX(50%)":"translateX(-50%)"),fn==="end"&&(fe[re]=at[re]+at.width,fe.transform="translateX(-100%)")}else fe.height=k(at.height),fn==="start"&&(fe.top=at.top),fn==="center"&&(fe.top=at.top+at.height/2,fe.transform="translateY(-50%)"),fn==="end"&&(fe.top=at.top+at.height,fe.transform="translateY(-100%)");return ae(),Ne.current=(0,Y.Z)(function(){ke(fe)}),ae},[at,Qe,Ge,fn,k]),{style:Be}},M=ne,F={width:0,height:0,left:0,top:0};function D(_e,Re,at){return(0,T.useMemo)(function(){for(var Qe,Ge=new Map,_t=Re.get((Qe=_e[0])===null||Qe===void 0?void 0:Qe.key)||F,Dt=_t.left+_t.width,rt=0;rt<_e.length;rt+=1){var Kt=_e[rt].key,fn=Re.get(Kt);if(!fn){var Tt;fn=Re.get((Tt=_e[rt-1])===null||Tt===void 0?void 0:Tt.key)||F}var Qt=Ge.get(Kt)||(0,se.Z)({},fn);Qt.right=Dt-Qt.left-Qt.width,Ge.set(Kt,Qt)}return Ge},[_e.map(function(Qe){return Qe.key}).join("_"),Re,at])}function S(_e,Re){var at=T.useRef(_e),Qe=T.useState({}),Ge=(0,ge.Z)(Qe,2),_t=Ge[1];function Dt(rt){var Kt=typeof rt=="function"?rt(at.current):rt;Kt!==at.current&&Re(Kt,at.current),at.current=Kt,_t({})}return[at.current,Dt]}var te=.1,X=.01,j=20,q=Math.pow(.995,j);function ue(_e,Re){var at=(0,T.useState)(),Qe=(0,ge.Z)(at,2),Ge=Qe[0],_t=Qe[1],Dt=(0,T.useState)(0),rt=(0,ge.Z)(Dt,2),Kt=rt[0],fn=rt[1],Tt=(0,T.useState)(0),Qt=(0,ge.Z)(Tt,2),Be=Qt[0],ke=Qt[1],Ne=(0,T.useState)(),k=(0,ge.Z)(Ne,2),ae=k[0],fe=k[1],re=(0,T.useRef)();function Se(_){var H=_.touches[0],E=H.screenX,Ie=H.screenY;_t({x:E,y:Ie}),window.clearInterval(re.current)}function Mt(_){if(Ge){var H=_.touches[0],E=H.screenX,Ie=H.screenY;_t({x:E,y:Ie});var Ee=E-Ge.x,we=Ie-Ge.y;Re(Ee,we);var Ze=Date.now();fn(Ze),ke(Ze-Kt),fe({x:Ee,y:we})}}function Rt(){if(Ge&&(_t(null),fe(null),ae)){var _=ae.x/Be,H=ae.y/Be,E=Math.abs(_),Ie=Math.abs(H);if(Math.max(E,Ie)<te)return;var Ee=_,we=H;re.current=window.setInterval(function(){if(Math.abs(Ee)<X&&Math.abs(we)<X){window.clearInterval(re.current);return}Ee*=q,we*=q,Re(Ee*j,we*j)},j)}}var Ut=(0,T.useRef)();function hn(_){var H=_.deltaX,E=_.deltaY,Ie=0,Ee=Math.abs(H),we=Math.abs(E);Ee===we?Ie=Ut.current==="x"?H:E:Ee>we?(Ie=H,Ut.current="x"):(Ie=E,Ut.current="y"),Re(-Ie,-Ie)&&_.preventDefault()}var Le=(0,T.useRef)(null);Le.current={onTouchStart:Se,onTouchMove:Mt,onTouchEnd:Rt,onWheel:hn},T.useEffect(function(){function _(Ee){Le.current.onTouchStart(Ee)}function H(Ee){Le.current.onTouchMove(Ee)}function E(Ee){Le.current.onTouchEnd(Ee)}function Ie(Ee){Le.current.onWheel(Ee)}return document.addEventListener("touchmove",H,{passive:!1}),document.addEventListener("touchend",E,{passive:!0}),_e.current.addEventListener("touchstart",_,{passive:!0}),_e.current.addEventListener("wheel",Ie,{passive:!1}),function(){document.removeEventListener("touchmove",H),document.removeEventListener("touchend",E)}},[])}var pe=w(34280);function We(_e){var Re=(0,T.useState)(0),at=(0,ge.Z)(Re,2),Qe=at[0],Ge=at[1],_t=(0,T.useRef)(0),Dt=(0,T.useRef)();return Dt.current=_e,(0,pe.o)(function(){var rt;(rt=Dt.current)===null||rt===void 0||rt.call(Dt)},[Qe]),function(){_t.current===Qe&&(_t.current+=1,Ge(_t.current))}}function G(_e){var Re=(0,T.useRef)([]),at=(0,T.useState)({}),Qe=(0,ge.Z)(at,2),Ge=Qe[1],_t=(0,T.useRef)(typeof _e=="function"?_e():_e),Dt=We(function(){var Kt=_t.current;Re.current.forEach(function(fn){Kt=fn(Kt)}),Re.current=[],_t.current=Kt,Ge({})});function rt(Kt){Re.current.push(Kt),Dt()}return[_t.current,rt]}var N={width:0,height:0,left:0,top:0,right:0};function W(_e,Re,at,Qe,Ge,_t,Dt){var rt=Dt.tabs,Kt=Dt.tabPosition,fn=Dt.rtl,Tt,Qt,Be;return["top","bottom"].includes(Kt)?(Tt="width",Qt=fn?"right":"left",Be=Math.abs(at)):(Tt="height",Qt="top",Be=-at),(0,T.useMemo)(function(){if(!rt.length)return[0,0];for(var ke=rt.length,Ne=ke,k=0;k<ke;k+=1){var ae=_e.get(rt[k].key)||N;if(Math.floor(ae[Qt]+ae[Tt])>Math.floor(Be+Re)){Ne=k-1;break}}for(var fe=0,re=ke-1;re>=0;re-=1){var Se=_e.get(rt[re].key)||N;if(Se[Qt]<Be){fe=re+1;break}}return fe>=Ne?[0,0]:[fe,Ne]},[_e,Re,Qe,Ge,_t,Be,Kt,rt.map(function(ke){return ke.key}).join("_"),fn])}function $(_e){var Re;return _e instanceof Map?(Re={},_e.forEach(function(at,Qe){Re[Qe]=at})):Re=_e,JSON.stringify(Re)}var ie="TABS_DQ";function Q(_e){return String(_e).replace(/"/g,ie)}function g(_e,Re,at,Qe){return!(!at||Qe||_e===!1||_e===void 0&&(Re===!1||Re===null))}var v=T.forwardRef(function(_e,Re){var at=_e.prefixCls,Qe=_e.editable,Ge=_e.locale,_t=_e.style;return!Qe||Qe.showAdd===!1?null:T.createElement("button",{ref:Re,type:"button",className:"".concat(at,"-nav-add"),style:_t,"aria-label":(Ge==null?void 0:Ge.addAriaLabel)||"Add tab",onClick:function(rt){Qe.onEdit("add",{event:rt})}},Qe.addIcon||"+")}),z=v,ce=T.forwardRef(function(_e,Re){var at=_e.position,Qe=_e.prefixCls,Ge=_e.extra;if(!Ge)return null;var _t,Dt={};return(0,O.Z)(Ge)==="object"&&!T.isValidElement(Ge)?Dt=Ge:Dt.right=Ge,at==="right"&&(_t=Dt.right),at==="left"&&(_t=Dt.left),_t?T.createElement("div",{className:"".concat(Qe,"-extra-content"),ref:Re},_t):null}),je=ce,Ye=w(96478),It=w(28321),bt=w(10228),$t=T.forwardRef(function(_e,Re){var at=_e.prefixCls,Qe=_e.id,Ge=_e.tabs,_t=_e.locale,Dt=_e.mobile,rt=_e.more,Kt=rt===void 0?{}:rt,fn=_e.style,Tt=_e.className,Qt=_e.editable,Be=_e.tabBarGutter,ke=_e.rtl,Ne=_e.removeAriaLabel,k=_e.onTabClick,ae=_e.getPopupContainer,fe=_e.popupClassName,re=(0,T.useState)(!1),Se=(0,ge.Z)(re,2),Mt=Se[0],Rt=Se[1],Ut=(0,T.useState)(null),hn=(0,ge.Z)(Ut,2),Le=hn[0],_=hn[1],H=Kt.icon,E=H===void 0?"More":H,Ie="".concat(Qe,"-more-popup"),Ee="".concat(at,"-dropdown"),we=Le!==null?"".concat(Ie,"-").concat(Le):null,Ze=_t==null?void 0:_t.dropdownAriaLabel;function ut(Je,gt){Je.preventDefault(),Je.stopPropagation(),Qt.onEdit("remove",{key:gt,event:Je})}var kt=T.createElement(It.ZP,{onClick:function(gt){var Lt=gt.key,Ot=gt.domEvent;k(Lt,Ot),Rt(!1)},prefixCls:"".concat(Ee,"-menu"),id:Ie,tabIndex:-1,role:"listbox","aria-activedescendant":we,selectedKeys:[Le],"aria-label":Ze!==void 0?Ze:"expanded dropdown"},Ge.map(function(Je){var gt=Je.closable,Lt=Je.disabled,Ot=Je.closeIcon,lt=Je.key,tt=Je.label,Ct=g(gt,Ot,Qt,Lt);return T.createElement(It.sN,{key:lt,id:"".concat(Ie,"-").concat(lt),role:"option","aria-controls":Qe&&"".concat(Qe,"-panel-").concat(lt),disabled:Lt},T.createElement("span",null,tt),Ct&&T.createElement("button",{type:"button","aria-label":Ne||"remove",tabIndex:0,className:"".concat(Ee,"-menu-item-remove"),onClick:function(un){un.stopPropagation(),ut(un,lt)}},Ot||Qt.removeIcon||"\xD7"))}));function ye(Je){for(var gt=Ge.filter(function(Ct){return!Ct.disabled}),Lt=gt.findIndex(function(Ct){return Ct.key===Le})||0,Ot=gt.length,lt=0;lt<Ot;lt+=1){Lt=(Lt+Je+Ot)%Ot;var tt=gt[Lt];if(!tt.disabled){_(tt.key);return}}}function le(Je){var gt=Je.which;if(!Mt){[bt.Z.DOWN,bt.Z.SPACE,bt.Z.ENTER].includes(gt)&&(Rt(!0),Je.preventDefault());return}switch(gt){case bt.Z.UP:ye(-1),Je.preventDefault();break;case bt.Z.DOWN:ye(1),Je.preventDefault();break;case bt.Z.ESC:Rt(!1);break;case bt.Z.SPACE:case bt.Z.ENTER:Le!==null&&k(Le,Je);break}}(0,T.useEffect)(function(){var Je=document.getElementById(we);Je&&Je.scrollIntoView&&Je.scrollIntoView(!1)},[Le]),(0,T.useEffect)(function(){Mt||_(null)},[Mt]);var ht=(0,he.Z)({},ke?"marginRight":"marginLeft",Be);Ge.length||(ht.visibility="hidden",ht.order=1);var st=oe()((0,he.Z)({},"".concat(Ee,"-rtl"),ke)),dt=Dt?null:T.createElement(Ye.Z,(0,p.Z)({prefixCls:Ee,overlay:kt,visible:Ge.length?Mt:!1,onVisibleChange:Rt,overlayClassName:oe()(st,fe),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ae},Kt),T.createElement("button",{type:"button",className:"".concat(at,"-nav-more"),style:ht,"aria-haspopup":"listbox","aria-controls":Ie,id:"".concat(Qe,"-more"),"aria-expanded":Mt,onKeyDown:le},E));return T.createElement("div",{className:oe()("".concat(at,"-nav-operations"),Tt),style:fn,ref:Re},dt,T.createElement(z,{prefixCls:at,locale:_t,editable:Qt}))}),Bt=T.memo($t,function(_e,Re){return Re.tabMoving}),Oe=function(Re){var at=Re.prefixCls,Qe=Re.id,Ge=Re.active,_t=Re.focus,Dt=Re.tab,rt=Dt.key,Kt=Dt.label,fn=Dt.disabled,Tt=Dt.closeIcon,Qt=Dt.icon,Be=Re.closable,ke=Re.renderWrapper,Ne=Re.removeAriaLabel,k=Re.editable,ae=Re.onClick,fe=Re.onFocus,re=Re.onBlur,Se=Re.onKeyDown,Mt=Re.onMouseDown,Rt=Re.onMouseUp,Ut=Re.style,hn=Re.tabCount,Le=Re.currentPosition,_="".concat(at,"-tab"),H=g(Be,Tt,k,fn);function E(ut){fn||ae(ut)}function Ie(ut){ut.preventDefault(),ut.stopPropagation(),k.onEdit("remove",{key:rt,event:ut})}var Ee=T.useMemo(function(){return Qt&&typeof Kt=="string"?T.createElement("span",null,Kt):Kt},[Kt,Qt]),we=T.useRef(null);T.useEffect(function(){_t&&we.current&&we.current.focus()},[_t]);var Ze=T.createElement("div",{key:rt,"data-node-key":Q(rt),className:oe()(_,(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(_,"-with-remove"),H),"".concat(_,"-active"),Ge),"".concat(_,"-disabled"),fn),"".concat(_,"-focus"),_t)),style:Ut,onClick:E},T.createElement("div",{ref:we,role:"tab","aria-selected":Ge,id:Qe&&"".concat(Qe,"-tab-").concat(rt),className:"".concat(_,"-btn"),"aria-controls":Qe&&"".concat(Qe,"-panel-").concat(rt),"aria-disabled":fn,tabIndex:fn?null:Ge?0:-1,onClick:function(kt){kt.stopPropagation(),E(kt)},onKeyDown:Se,onMouseDown:Mt,onMouseUp:Rt,onFocus:fe,onBlur:re},_t&&T.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(Le," of ").concat(hn)),Qt&&T.createElement("span",{className:"".concat(_,"-icon")},Qt),Kt&&Ee),H&&T.createElement("button",{type:"button",role:"tab","aria-label":Ne||"remove",tabIndex:Ge?0:-1,className:"".concat(_,"-remove"),onClick:function(kt){kt.stopPropagation(),Ie(kt)}},Tt||k.removeIcon||"\xD7"));return ke?ke(Ze):Ze},jt=Oe,En=function(Re,at){var Qe=Re.offsetWidth,Ge=Re.offsetHeight,_t=Re.offsetTop,Dt=Re.offsetLeft,rt=Re.getBoundingClientRect(),Kt=rt.width,fn=rt.height,Tt=rt.left,Qt=rt.top;return Math.abs(Kt-Qe)<1?[Kt,fn,Tt-at.left,Qt-at.top]:[Qe,Ge,Dt,_t]},Yt=function(Re){var at=Re.current||{},Qe=at.offsetWidth,Ge=Qe===void 0?0:Qe,_t=at.offsetHeight,Dt=_t===void 0?0:_t;if(Re.current){var rt=Re.current.getBoundingClientRect(),Kt=rt.width,fn=rt.height;if(Math.abs(Kt-Ge)<1)return[Kt,fn]}return[Ge,Dt]},cn=function(Re,at){return Re[at?0:1]},pt=T.forwardRef(function(_e,Re){var at=_e.className,Qe=_e.style,Ge=_e.id,_t=_e.animated,Dt=_e.activeKey,rt=_e.rtl,Kt=_e.extra,fn=_e.editable,Tt=_e.locale,Qt=_e.tabPosition,Be=_e.tabBarGutter,ke=_e.children,Ne=_e.onTabClick,k=_e.onTabScroll,ae=_e.indicator,fe=T.useContext(m),re=fe.prefixCls,Se=fe.tabs,Mt=(0,T.useRef)(null),Rt=(0,T.useRef)(null),Ut=(0,T.useRef)(null),hn=(0,T.useRef)(null),Le=(0,T.useRef)(null),_=(0,T.useRef)(null),H=(0,T.useRef)(null),E=Qt==="top"||Qt==="bottom",Ie=S(0,function(Sn,an){E&&k&&k({direction:Sn>an?"left":"right"})}),Ee=(0,ge.Z)(Ie,2),we=Ee[0],Ze=Ee[1],ut=S(0,function(Sn,an){!E&&k&&k({direction:Sn>an?"top":"bottom"})}),kt=(0,ge.Z)(ut,2),ye=kt[0],le=kt[1],ht=(0,T.useState)([0,0]),st=(0,ge.Z)(ht,2),dt=st[0],Je=st[1],gt=(0,T.useState)([0,0]),Lt=(0,ge.Z)(gt,2),Ot=Lt[0],lt=Lt[1],tt=(0,T.useState)([0,0]),Ct=(0,ge.Z)(tt,2),Jt=Ct[0],un=Ct[1],xn=(0,T.useState)([0,0]),nn=(0,ge.Z)(xn,2),tn=nn[0],Fe=nn[1],it=G(new Map),St=(0,ge.Z)(it,2),mt=St[0],Zt=St[1],Ht=D(Se,mt,Ot[0]),en=cn(dt,E),sn=cn(Ot,E),vn=cn(Jt,E),_n=cn(tn,E),An=Math.floor(en)<Math.floor(sn+vn),yn=An?en-_n:en-vn,Zn="".concat(re,"-nav-operations-hidden"),On=0,zn=0;E&&rt?(On=0,zn=Math.max(0,sn-yn)):(On=Math.min(0,yn-sn),zn=0);function Fn(Sn){return Sn<On?On:Sn>zn?zn:Sn}var kn=(0,T.useRef)(null),qn=(0,T.useState)(),pn=(0,ge.Z)(qn,2),ln=pn[0],Me=pn[1];function Pt(){Me(Date.now())}function mn(){kn.current&&clearTimeout(kn.current)}ue(hn,function(Sn,an){function Tn(Cn,Hn){Cn(function($n){var dr=Fn($n+Hn);return dr})}return An?(E?Tn(Ze,Sn):Tn(le,an),mn(),Pt(),!0):!1}),(0,T.useEffect)(function(){return mn(),ln&&(kn.current=setTimeout(function(){Me(0)},100)),mn},[ln]);var Rn=W(Ht,yn,E?we:ye,sn,vn,_n,(0,se.Z)((0,se.Z)({},_e),{},{tabs:Se})),Kn=(0,ge.Z)(Rn,2),xe=Kn[0],nt=Kn[1],qe=(0,L.Z)(function(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dt,an=Ht.get(Sn)||{width:0,height:0,left:0,right:0,top:0};if(E){var Tn=we;rt?an.right<we?Tn=an.right:an.right+an.width>we+yn&&(Tn=an.right+an.width-yn):an.left<-we?Tn=-an.left:an.left+an.width>-we+yn&&(Tn=-(an.left+an.width-yn)),le(0),Ze(Fn(Tn))}else{var Cn=ye;an.top<-ye?Cn=-an.top:an.top+an.height>-ye+yn&&(Cn=-(an.top+an.height-yn)),Ze(0),le(Fn(Cn))}}),$e=(0,T.useState)(),Et=(0,ge.Z)($e,2),ct=Et[0],vt=Et[1],Nt=(0,T.useState)(!1),Gt=(0,ge.Z)(Nt,2),et=Gt[0],ft=Gt[1],yt=Se.filter(function(Sn){return!Sn.disabled}).map(function(Sn){return Sn.key}),Xt=function(an){var Tn=yt.indexOf(ct||Dt),Cn=yt.length,Hn=(Tn+an+Cn)%Cn,$n=yt[Hn];vt($n)},Vt=function(an){var Tn=an.code,Cn=rt&&E,Hn=yt[0],$n=yt[yt.length-1];switch(Tn){case"ArrowLeft":{E&&Xt(Cn?1:-1);break}case"ArrowRight":{E&&Xt(Cn?-1:1);break}case"ArrowUp":{an.preventDefault(),E||Xt(-1);break}case"ArrowDown":{an.preventDefault(),E||Xt(1);break}case"Home":{an.preventDefault(),vt(Hn);break}case"End":{an.preventDefault(),vt($n);break}case"Enter":case"Space":{an.preventDefault(),Ne(Dt,an);break}case"Backspace":case"Delete":{var dr=yt.indexOf(ct),vr=Se.find(function(kr){return kr.key===ct}),Fr=g(vr==null?void 0:vr.closable,vr==null?void 0:vr.closeIcon,fn,vr==null?void 0:vr.disabled);Fr&&(an.preventDefault(),an.stopPropagation(),fn.onEdit("remove",{key:ct,event:an}),dr===yt.length-1?Xt(-1):Xt(1));break}}},gn={};E?gn[rt?"marginRight":"marginLeft"]=Be:gn.marginTop=Be;var jn=Se.map(function(Sn,an){var Tn=Sn.key;return T.createElement(jt,{id:Ge,prefixCls:re,key:Tn,tab:Sn,style:an===0?void 0:gn,closable:Sn.closable,editable:fn,active:Tn===Dt,focus:Tn===ct,renderWrapper:ke,removeAriaLabel:Tt==null?void 0:Tt.removeAriaLabel,tabCount:yt.length,currentPosition:an+1,onClick:function(Hn){Ne(Tn,Hn)},onKeyDown:Vt,onFocus:function(){et||vt(Tn),qe(Tn),Pt(),hn.current&&(rt||(hn.current.scrollLeft=0),hn.current.scrollTop=0)},onBlur:function(){vt(void 0)},onMouseDown:function(){ft(!0)},onMouseUp:function(){ft(!1)}})}),Bn=function(){return Zt(function(){var an,Tn=new Map,Cn=(an=Le.current)===null||an===void 0?void 0:an.getBoundingClientRect();return Se.forEach(function(Hn){var $n,dr=Hn.key,vr=($n=Le.current)===null||$n===void 0?void 0:$n.querySelector('[data-node-key="'.concat(Q(dr),'"]'));if(vr){var Fr=En(vr,Cn),kr=(0,ge.Z)(Fr,4),jr=kr[0],Br=kr[1],Nr=kr[2],ir=kr[3];Tn.set(dr,{width:jr,height:Br,left:Nr,top:ir})}}),Tn})};(0,T.useEffect)(function(){Bn()},[Se.map(function(Sn){return Sn.key}).join("_")]);var Vn=We(function(){var Sn=Yt(Mt),an=Yt(Rt),Tn=Yt(Ut);Je([Sn[0]-an[0]-Tn[0],Sn[1]-an[1]-Tn[1]]);var Cn=Yt(H);un(Cn);var Hn=Yt(_);Fe(Hn);var $n=Yt(Le);lt([$n[0]-Cn[0],$n[1]-Cn[1]]),Bn()}),Gn=Se.slice(0,xe),Xn=Se.slice(nt+1),sr=[].concat((0,y.Z)(Gn),(0,y.Z)(Xn)),Ln=Ht.get(Dt),ar=M({activeTabOffset:Ln,horizontal:E,indicator:ae,rtl:rt}),tr=ar.style;(0,T.useEffect)(function(){qe()},[Dt,On,zn,$(Ln),$(Ht),E]),(0,T.useEffect)(function(){Vn()},[rt]);var Jn=!!sr.length,nr="".concat(re,"-nav-wrap"),wn,_r,rr,or;return E?rt?(_r=we>0,wn=we!==zn):(wn=we<0,_r=we!==On):(rr=ye<0,or=ye!==On),T.createElement(x.Z,{onResize:Vn},T.createElement("div",{ref:(0,U.x1)(Re,Mt),role:"tablist","aria-orientation":E?"horizontal":"vertical",className:oe()("".concat(re,"-nav"),at),style:Qe,onKeyDown:function(){Pt()}},T.createElement(je,{ref:Rt,position:"left",extra:Kt,prefixCls:re}),T.createElement(x.Z,{onResize:Vn},T.createElement("div",{className:oe()(nr,(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(nr,"-ping-left"),wn),"".concat(nr,"-ping-right"),_r),"".concat(nr,"-ping-top"),rr),"".concat(nr,"-ping-bottom"),or)),ref:hn},T.createElement(x.Z,{onResize:Vn},T.createElement("div",{ref:Le,className:"".concat(re,"-nav-list"),style:{transform:"translate(".concat(we,"px, ").concat(ye,"px)"),transition:ln?"none":void 0}},jn,T.createElement(z,{ref:H,prefixCls:re,locale:Tt,editable:fn,style:(0,se.Z)((0,se.Z)({},jn.length===0?void 0:gn),{},{visibility:Jn?"hidden":null})}),T.createElement("div",{className:oe()("".concat(re,"-ink-bar"),(0,he.Z)({},"".concat(re,"-ink-bar-animated"),_t.inkBar)),style:tr}))))),T.createElement(Bt,(0,p.Z)({},_e,{removeAriaLabel:Tt==null?void 0:Tt.removeAriaLabel,ref:_,prefixCls:re,tabs:sr,className:!Jn&&Zn,tabMoving:!!ln})),T.createElement(je,{ref:Ut,position:"right",extra:Kt,prefixCls:re})))}),Pe=pt,be=T.forwardRef(function(_e,Re){var at=_e.prefixCls,Qe=_e.className,Ge=_e.style,_t=_e.id,Dt=_e.active,rt=_e.tabKey,Kt=_e.children;return T.createElement("div",{id:_t&&"".concat(_t,"-panel-").concat(rt),role:"tabpanel",tabIndex:Dt?0:-1,"aria-labelledby":_t&&"".concat(_t,"-tab-").concat(rt),"aria-hidden":!Dt,style:Ge,className:oe()(at,Dt&&"".concat(at,"-active"),Qe),ref:Re},Kt)}),B=be,Ce=["renderTabBar"],He=["label","key"],Z=function(Re){var at=Re.renderTabBar,Qe=(0,d.Z)(Re,Ce),Ge=T.useContext(m),_t=Ge.tabs;if(at){var Dt=(0,se.Z)((0,se.Z)({},Qe),{},{panes:_t.map(function(rt){var Kt=rt.label,fn=rt.key,Tt=(0,d.Z)(rt,He);return T.createElement(B,(0,p.Z)({tab:Kt,key:fn,tabKey:fn},Tt))})});return at(Dt,Pe)}return T.createElement(Pe,Qe)},P=Z,K=w(77900),me=["key","forceRender","style","className","destroyInactiveTabPane"],I=function(Re){var at=Re.id,Qe=Re.activeKey,Ge=Re.animated,_t=Re.tabPosition,Dt=Re.destroyInactiveTabPane,rt=T.useContext(m),Kt=rt.prefixCls,fn=rt.tabs,Tt=Ge.tabPane,Qt="".concat(Kt,"-tabpane");return T.createElement("div",{className:oe()("".concat(Kt,"-content-holder"))},T.createElement("div",{className:oe()("".concat(Kt,"-content"),"".concat(Kt,"-content-").concat(_t),(0,he.Z)({},"".concat(Kt,"-content-animated"),Tt))},fn.map(function(Be){var ke=Be.key,Ne=Be.forceRender,k=Be.style,ae=Be.className,fe=Be.destroyInactiveTabPane,re=(0,d.Z)(Be,me),Se=ke===Qe;return T.createElement(K.default,(0,p.Z)({key:ke,visible:Se,forceRender:Ne,removeOnLeave:!!(Dt||fe),leavedClassName:"".concat(Qt,"-hidden")},Ge.tabPaneMotion),function(Mt,Rt){var Ut=Mt.style,hn=Mt.className;return T.createElement(B,(0,p.Z)({},re,{prefixCls:Qt,id:at,tabKey:ke,animated:Tt,active:Se,style:(0,se.Z)((0,se.Z)({},k),Ut),className:oe()(ae,hn),ref:Rt}))})})))},de=I,ee=w(48736);function De(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Re;return _e===!1?Re={inkBar:!1,tabPane:!1}:_e===!0?Re={inkBar:!0,tabPane:!1}:Re=(0,se.Z)({inkBar:!0},(0,O.Z)(_e)==="object"?_e:{}),Re.tabPaneMotion&&Re.tabPane===void 0&&(Re.tabPane=!0),!Re.tabPaneMotion&&Re.tabPane&&(Re.tabPane=!1),Re}var Te=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ke=0,ze=T.forwardRef(function(_e,Re){var at=_e.id,Qe=_e.prefixCls,Ge=Qe===void 0?"rc-tabs":Qe,_t=_e.className,Dt=_e.items,rt=_e.direction,Kt=_e.activeKey,fn=_e.defaultActiveKey,Tt=_e.editable,Qt=_e.animated,Be=_e.tabPosition,ke=Be===void 0?"top":Be,Ne=_e.tabBarGutter,k=_e.tabBarStyle,ae=_e.tabBarExtraContent,fe=_e.locale,re=_e.more,Se=_e.destroyInactiveTabPane,Mt=_e.renderTabBar,Rt=_e.onChange,Ut=_e.onTabClick,hn=_e.onTabScroll,Le=_e.getPopupContainer,_=_e.popupClassName,H=_e.indicator,E=(0,d.Z)(_e,Te),Ie=T.useMemo(function(){return(Dt||[]).filter(function(tn){return tn&&(0,O.Z)(tn)==="object"&&"key"in tn})},[Dt]),Ee=rt==="rtl",we=De(Qt),Ze=(0,T.useState)(!1),ut=(0,ge.Z)(Ze,2),kt=ut[0],ye=ut[1];(0,T.useEffect)(function(){ye((0,b.Z)())},[]);var le=(0,o.Z)(function(){var tn;return(tn=Ie[0])===null||tn===void 0?void 0:tn.key},{value:Kt,defaultValue:fn}),ht=(0,ge.Z)(le,2),st=ht[0],dt=ht[1],Je=(0,T.useState)(function(){return Ie.findIndex(function(tn){return tn.key===st})}),gt=(0,ge.Z)(Je,2),Lt=gt[0],Ot=gt[1];(0,T.useEffect)(function(){var tn=Ie.findIndex(function(it){return it.key===st});if(tn===-1){var Fe;tn=Math.max(0,Math.min(Lt,Ie.length-1)),dt((Fe=Ie[tn])===null||Fe===void 0?void 0:Fe.key)}Ot(tn)},[Ie.map(function(tn){return tn.key}).join("_"),st,Lt]);var lt=(0,o.Z)(null,{value:at}),tt=(0,ge.Z)(lt,2),Ct=tt[0],Jt=tt[1];(0,T.useEffect)(function(){at||(Jt("rc-tabs-".concat(Ke)),Ke+=1)},[]);function un(tn,Fe){Ut==null||Ut(tn,Fe);var it=tn!==st;dt(tn),it&&(Rt==null||Rt(tn))}var xn={id:Ct,activeKey:st,animated:we,tabPosition:ke,rtl:Ee,mobile:kt},nn=(0,se.Z)((0,se.Z)({},xn),{},{editable:Tt,locale:fe,more:re,tabBarGutter:Ne,onTabClick:un,onTabScroll:hn,extra:ae,style:k,panes:null,getPopupContainer:Le,popupClassName:_,indicator:H});return T.createElement(m.Provider,{value:{tabs:Ie,prefixCls:Ge}},T.createElement("div",(0,p.Z)({ref:Re,id:at,className:oe()(Ge,"".concat(Ge,"-").concat(ke),(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(Ge,"-mobile"),kt),"".concat(Ge,"-editable"),Tt),"".concat(Ge,"-rtl"),Ee),_t)},E),T.createElement(P,(0,p.Z)({},nn,{renderTabBar:Mt})),T.createElement(de,(0,p.Z)({destroyInactiveTabPane:Se},xn,{animated:we}))))}),Xe=ze,ot=Xe},22711:function(In,Wt,w){"use strict";w.r(Wt),w.d(Wt,{ResizableTextArea:function(){return We},default:function(){return $}});var p=w(72308),he=w(49618),se=w(77321),ge=w(80702),O=w(52487),d=w(74416),ve=w(92310),oe=w.n(ve),o=w(36901),b=w(66003),T=w(30292),m=w(18929),y=w(59301),x=w(62853),L=w(29301),U=w(34280),Y=w(16089),ne=`
|
|
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;
|
|
`,M=["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={},D;function S(ie){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=ie.getAttribute("id")||ie.getAttribute("data-reactid")||ie.getAttribute("name");if(Q&&F[g])return F[g];var v=window.getComputedStyle(ie),z=v.getPropertyValue("box-sizing")||v.getPropertyValue("-moz-box-sizing")||v.getPropertyValue("-webkit-box-sizing"),ce=parseFloat(v.getPropertyValue("padding-bottom"))+parseFloat(v.getPropertyValue("padding-top")),je=parseFloat(v.getPropertyValue("border-bottom-width"))+parseFloat(v.getPropertyValue("border-top-width")),Ye=M.map(function(bt){return"".concat(bt,":").concat(v.getPropertyValue(bt))}).join(";"),It={sizingStyle:Ye,paddingSize:ce,borderSize:je,boxSizing:z};return Q&&g&&(F[g]=It),It}function te(ie){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;D||(D=document.createElement("textarea"),D.setAttribute("tab-index","-1"),D.setAttribute("aria-hidden","true"),D.setAttribute("name","hiddenTextarea"),document.body.appendChild(D)),ie.getAttribute("wrap")?D.setAttribute("wrap",ie.getAttribute("wrap")):D.removeAttribute("wrap");var z=S(ie,Q),ce=z.paddingSize,je=z.borderSize,Ye=z.boxSizing,It=z.sizingStyle;D.setAttribute("style","".concat(It,";").concat(ne)),D.value=ie.value||ie.placeholder||"";var bt=void 0,$t=void 0,Bt,Oe=D.scrollHeight;if(Ye==="border-box"?Oe+=je:Ye==="content-box"&&(Oe-=ce),g!==null||v!==null){D.value=" ";var jt=D.scrollHeight-ce;g!==null&&(bt=jt*g,Ye==="border-box"&&(bt=bt+ce+je),Oe=Math.max(bt,Oe)),v!==null&&($t=jt*v,Ye==="border-box"&&($t=$t+ce+je),Bt=Oe>$t?"":"hidden",Oe=Math.min($t,Oe))}var En={height:Oe,overflowY:Bt,resize:"none"};return bt&&(En.minHeight=bt),$t&&(En.maxHeight=$t),En}var X=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],j=0,q=1,ue=2,pe=y.forwardRef(function(ie,Q){var g=ie,v=g.prefixCls,z=g.defaultValue,ce=g.value,je=g.autoSize,Ye=g.onResize,It=g.className,bt=g.style,$t=g.disabled,Bt=g.onChange,Oe=g.onInternalAutoSize,jt=(0,d.Z)(g,X),En=(0,m.Z)(z,{value:ce,postState:function(_t){return _t!=null?_t:""}}),Yt=(0,O.Z)(En,2),cn=Yt[0],pt=Yt[1],Pe=function(_t){pt(_t.target.value),Bt==null||Bt(_t)},be=y.useRef();y.useImperativeHandle(Q,function(){return{textArea:be.current}});var B=y.useMemo(function(){return je&&(0,x.Z)(je)==="object"?[je.minRows,je.maxRows]:[]},[je]),Ce=(0,O.Z)(B,2),He=Ce[0],Z=Ce[1],P=!!je,K=function(){try{if(document.activeElement===be.current){var _t=be.current,Dt=_t.selectionStart,rt=_t.selectionEnd,Kt=_t.scrollTop;be.current.setSelectionRange(Dt,rt),be.current.scrollTop=Kt}}catch(fn){}},me=y.useState(ue),I=(0,O.Z)(me,2),de=I[0],ee=I[1],De=y.useState(),Te=(0,O.Z)(De,2),Ke=Te[0],ze=Te[1],Xe=function(){ee(j)};(0,U.Z)(function(){P&&Xe()},[ce,He,Z,P]),(0,U.Z)(function(){if(de===j)ee(q);else if(de===q){var Ge=te(be.current,!1,He,Z);ee(ue),ze(Ge)}else K()},[de]);var ot=y.useRef(),_e=function(){Y.Z.cancel(ot.current)},Re=function(_t){de===ue&&(Ye==null||Ye(_t),je&&(_e(),ot.current=(0,Y.Z)(function(){Xe()})))};y.useEffect(function(){return _e},[]);var at=P?Ke:null,Qe=(0,se.Z)((0,se.Z)({},bt),at);return(de===j||de===q)&&(Qe.overflowY="hidden",Qe.overflowX="hidden"),y.createElement(L.Z,{onResize:Re,disabled:!(je||Ye)},y.createElement("textarea",(0,p.Z)({},jt,{ref:be,style:Qe,className:oe()(v,It,(0,he.Z)({},"".concat(v,"-disabled"),$t)),disabled:$t,value:cn,onChange:Pe})))}),We=pe,G=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],N=y.forwardRef(function(ie,Q){var g,v=ie.defaultValue,z=ie.value,ce=ie.onFocus,je=ie.onBlur,Ye=ie.onChange,It=ie.allowClear,bt=ie.maxLength,$t=ie.onCompositionStart,Bt=ie.onCompositionEnd,Oe=ie.suffix,jt=ie.prefixCls,En=jt===void 0?"rc-textarea":jt,Yt=ie.showCount,cn=ie.count,pt=ie.className,Pe=ie.style,be=ie.disabled,B=ie.hidden,Ce=ie.classNames,He=ie.styles,Z=ie.onResize,P=ie.onClear,K=ie.onPressEnter,me=ie.readOnly,I=ie.autoSize,de=ie.onKeyDown,ee=(0,d.Z)(ie,G),De=(0,m.Z)(v,{value:z,defaultValue:v}),Te=(0,O.Z)(De,2),Ke=Te[0],ze=Te[1],Xe=Ke==null?"":String(Ke),ot=y.useState(!1),_e=(0,O.Z)(ot,2),Re=_e[0],at=_e[1],Qe=y.useRef(!1),Ge=y.useState(null),_t=(0,O.Z)(Ge,2),Dt=_t[0],rt=_t[1],Kt=(0,y.useRef)(null),fn=(0,y.useRef)(null),Tt=function(){var ye;return(ye=fn.current)===null||ye===void 0?void 0:ye.textArea},Qt=function(){Tt().focus()};(0,y.useImperativeHandle)(Q,function(){var kt;return{resizableTextArea:fn.current,focus:Qt,blur:function(){Tt().blur()},nativeElement:((kt=Kt.current)===null||kt===void 0?void 0:kt.nativeElement)||Tt()}}),(0,y.useEffect)(function(){at(function(kt){return!be&&kt})},[be]);var Be=y.useState(null),ke=(0,O.Z)(Be,2),Ne=ke[0],k=ke[1];y.useEffect(function(){if(Ne){var kt;(kt=Tt()).setSelectionRange.apply(kt,(0,ge.Z)(Ne))}},[Ne]);var ae=(0,b.Z)(cn,Yt),fe=(g=ae.max)!==null&&g!==void 0?g:bt,re=Number(fe)>0,Se=ae.strategy(Xe),Mt=!!fe&&Se>fe,Rt=function(ye,le){var ht=le;!Qe.current&&ae.exceedFormatter&&ae.max&&ae.strategy(le)>ae.max&&(ht=ae.exceedFormatter(le,{max:ae.max}),le!==ht&&k([Tt().selectionStart||0,Tt().selectionEnd||0])),ze(ht),(0,T.rJ)(ye.currentTarget,ye,Ye,ht)},Ut=function(ye){Qe.current=!0,$t==null||$t(ye)},hn=function(ye){Qe.current=!1,Rt(ye,ye.currentTarget.value),Bt==null||Bt(ye)},Le=function(ye){Rt(ye,ye.target.value)},_=function(ye){ye.key==="Enter"&&K&&K(ye),de==null||de(ye)},H=function(ye){at(!0),ce==null||ce(ye)},E=function(ye){at(!1),je==null||je(ye)},Ie=function(ye){ze(""),Qt(),(0,T.rJ)(Tt(),ye,Ye)},Ee=Oe,we;ae.show&&(ae.showFormatter?we=ae.showFormatter({value:Xe,count:Se,maxLength:fe}):we="".concat(Se).concat(re?" / ".concat(fe):""),Ee=y.createElement(y.Fragment,null,Ee,y.createElement("span",{className:oe()("".concat(En,"-data-count"),Ce==null?void 0:Ce.count),style:He==null?void 0:He.count},we)));var Ze=function(ye){var le;Z==null||Z(ye),(le=Tt())!==null&&le!==void 0&&le.style.height&&rt(!0)},ut=!I&&!Yt&&!It;return y.createElement(o.BaseInput,{ref:Kt,value:Xe,allowClear:It,handleReset:Ie,suffix:Ee,prefixCls:En,classNames:(0,se.Z)((0,se.Z)({},Ce),{},{affixWrapper:oe()(Ce==null?void 0:Ce.affixWrapper,(0,he.Z)((0,he.Z)({},"".concat(En,"-show-count"),Yt),"".concat(En,"-textarea-allow-clear"),It))}),disabled:be,focused:Re,className:oe()(pt,Mt&&"".concat(En,"-out-of-range")),style:(0,se.Z)((0,se.Z)({},Pe),Dt&&!ut?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof we=="string"?we:void 0}},hidden:B,readOnly:me,onClear:P},y.createElement(We,(0,p.Z)({},ee,{autoSize:I,maxLength:bt,onKeyDown:_,onChange:Le,onFocus:H,onBlur:E,onCompositionStart:Ut,onCompositionEnd:hn,className:oe()(Ce==null?void 0:Ce.textarea),style:(0,se.Z)((0,se.Z)({},He==null?void 0:He.textarea),{},{resize:Pe==null?void 0:Pe.resize}),disabled:be,prefixCls:En,onResize:Ze,ref:fn,readOnly:me})))}),W=N,$=W},29125:function(In,Wt,w){"use strict";w.d(Wt,{G:function(){return ge},Z:function(){return ne}});var p=w(92310),he=w.n(p),se=w(59301);function ge(M){var F=M.children,D=M.prefixCls,S=M.id,te=M.overlayInnerStyle,X=M.bodyClassName,j=M.className,q=M.style;return se.createElement("div",{className:he()("".concat(D,"-content"),j),style:q},se.createElement("div",{className:he()("".concat(D,"-inner"),X),id:S,role:"tooltip",style:te},typeof F=="function"?F():F))}var O=w(72308),d=w(77321),ve=w(74416),oe=w(65352),o={shiftX:64,adjustY:1},b={adjustX:1,shiftY:!0},T=[0,0],m={left:{points:["cr","cl"],overflow:b,offset:[-4,0],targetOffset:T},right:{points:["cl","cr"],overflow:b,offset:[4,0],targetOffset:T},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:T},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:T},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:T},leftTop:{points:["tr","tl"],overflow:b,offset:[-4,0],targetOffset:T},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:T},rightTop:{points:["tl","tr"],overflow:b,offset:[4,0],targetOffset:T},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:T},rightBottom:{points:["bl","br"],overflow:b,offset:[4,0],targetOffset:T},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:T},leftBottom:{points:["br","bl"],overflow:b,offset:[-4,0],targetOffset:T}},y=null,x=w(80402),L=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],U=function(F,D){var S=F.overlayClassName,te=F.trigger,X=te===void 0?["hover"]:te,j=F.mouseEnterDelay,q=j===void 0?0:j,ue=F.mouseLeaveDelay,pe=ue===void 0?.1:ue,We=F.overlayStyle,G=F.prefixCls,N=G===void 0?"rc-tooltip":G,W=F.children,$=F.onVisibleChange,ie=F.afterVisibleChange,Q=F.transitionName,g=F.animation,v=F.motion,z=F.placement,ce=z===void 0?"right":z,je=F.align,Ye=je===void 0?{}:je,It=F.destroyTooltipOnHide,bt=It===void 0?!1:It,$t=F.defaultVisible,Bt=F.getTooltipContainer,Oe=F.overlayInnerStyle,jt=F.arrowContent,En=F.overlay,Yt=F.id,cn=F.showArrow,pt=cn===void 0?!0:cn,Pe=F.classNames,be=F.styles,B=(0,ve.Z)(F,L),Ce=(0,x.Z)(Yt),He=(0,se.useRef)(null);(0,se.useImperativeHandle)(D,function(){return He.current});var Z=(0,d.Z)({},B);"visible"in F&&(Z.popupVisible=F.visible);var P=function(){return se.createElement(ge,{key:"content",prefixCls:N,id:Ce,bodyClassName:Pe==null?void 0:Pe.body,overlayInnerStyle:(0,d.Z)((0,d.Z)({},Oe),be==null?void 0:be.body)},En)},K=function(){var I=se.Children.only(W),de=(I==null?void 0:I.props)||{},ee=(0,d.Z)((0,d.Z)({},de),{},{"aria-describedby":En?Ce:null});return se.cloneElement(W,ee)};return se.createElement(oe.Z,(0,O.Z)({popupClassName:he()(S,Pe==null?void 0:Pe.root),prefixCls:N,popup:P,action:X,builtinPlacements:m,popupPlacement:ce,ref:He,popupAlign:Ye,getPopupContainer:Bt,onPopupVisibleChange:$,afterPopupVisibleChange:ie,popupTransitionName:Q,popupAnimation:g,popupMotion:v,defaultPopupVisible:$t,autoDestroy:bt,mouseLeaveDelay:pe,popupStyle:(0,d.Z)((0,d.Z)({},We),be==null?void 0:be.root),mouseEnterDelay:q,arrow:pt},Z),K())},Y=(0,se.forwardRef)(U),ne=Y},639:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return F}});var p=w(72308),he=w(49618),se=w(77321),ge=w(52487),O=w(74416),d=w(59301),ve=w(92310),oe=w.n(ve),o=w(26112),b=w(30699),T=function(S){for(var te=S.prefixCls,X=S.level,j=S.isStart,q=S.isEnd,ue="".concat(te,"-indent-unit"),pe=[],We=0;We<X;We+=1)pe.push(d.createElement("span",{key:We,className:oe()(ue,(0,he.Z)((0,he.Z)({},"".concat(ue,"-start"),j[We]),"".concat(ue,"-end"),q[We]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(te,"-indent")},pe)},m=d.memo(T),y=w(65065),x=w(34061),L=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],U="open",Y="close",ne="---",M=function(S){var te,X,j,q=S.eventKey,ue=S.className,pe=S.style,We=S.dragOver,G=S.dragOverGapTop,N=S.dragOverGapBottom,W=S.isLeaf,$=S.isStart,ie=S.isEnd,Q=S.expanded,g=S.selected,v=S.checked,z=S.halfChecked,ce=S.loading,je=S.domRef,Ye=S.active,It=S.data,bt=S.onMouseMove,$t=S.selectable,Bt=(0,O.Z)(S,L),Oe=d.useContext(b.k),jt=d.useContext(b.y),En=d.useRef(null),Yt=d.useState(!1),cn=(0,ge.Z)(Yt,2),pt=cn[0],Pe=cn[1],be=!!(Oe.disabled||S.disabled||(te=jt.nodeDisabled)!==null&&te!==void 0&&te.call(jt,It)),B=d.useMemo(function(){return!Oe.checkable||S.checkable===!1?!1:Oe.checkable},[Oe.checkable,S.checkable]),Ce=function(Se){be||Oe.onNodeSelect(Se,(0,x.F)(S))},He=function(Se){be||!B||S.disableCheckbox||Oe.onNodeCheck(Se,(0,x.F)(S),!v)},Z=d.useMemo(function(){return typeof $t=="boolean"?$t:Oe.selectable},[$t,Oe.selectable]),P=function(Se){Oe.onNodeClick(Se,(0,x.F)(S)),Z?Ce(Se):He(Se)},K=function(Se){Oe.onNodeDoubleClick(Se,(0,x.F)(S))},me=function(Se){Oe.onNodeMouseEnter(Se,(0,x.F)(S))},I=function(Se){Oe.onNodeMouseLeave(Se,(0,x.F)(S))},de=function(Se){Oe.onNodeContextMenu(Se,(0,x.F)(S))},ee=d.useMemo(function(){return!!(Oe.draggable&&(!Oe.draggable.nodeDraggable||Oe.draggable.nodeDraggable(It)))},[Oe.draggable,It]),De=function(Se){Se.stopPropagation(),Pe(!0),Oe.onNodeDragStart(Se,S);try{Se.dataTransfer.setData("text/plain","")}catch(Mt){}},Te=function(Se){Se.preventDefault(),Se.stopPropagation(),Oe.onNodeDragEnter(Se,S)},Ke=function(Se){Se.preventDefault(),Se.stopPropagation(),Oe.onNodeDragOver(Se,S)},ze=function(Se){Se.stopPropagation(),Oe.onNodeDragLeave(Se,S)},Xe=function(Se){Se.stopPropagation(),Pe(!1),Oe.onNodeDragEnd(Se,S)},ot=function(Se){Se.preventDefault(),Se.stopPropagation(),Pe(!1),Oe.onNodeDrop(Se,S)},_e=function(Se){ce||Oe.onNodeExpand(Se,(0,x.F)(S))},Re=d.useMemo(function(){var re=(0,y.Z)(Oe.keyEntities,q)||{},Se=re.children;return!!(Se||[]).length},[Oe.keyEntities,q]),at=d.useMemo(function(){return W===!1?!1:W||!Oe.loadData&&!Re||Oe.loadData&&S.loaded&&!Re},[W,Oe.loadData,Re,S.loaded]);d.useEffect(function(){ce||typeof Oe.loadData=="function"&&Q&&!at&&!S.loaded&&Oe.onNodeLoad((0,x.F)(S))},[ce,Oe.loadData,Oe.onNodeLoad,Q,at,S]);var Qe=d.useMemo(function(){var re;return(re=Oe.draggable)!==null&&re!==void 0&&re.icon?d.createElement("span",{className:"".concat(Oe.prefixCls,"-draggable-icon")},Oe.draggable.icon):null},[Oe.draggable]),Ge=function(Se){var Mt=S.switcherIcon||Oe.switcherIcon;return typeof Mt=="function"?Mt((0,se.Z)((0,se.Z)({},S),{},{isLeaf:Se})):Mt},_t=function(){if(at){var Se=Ge(!0);return Se!==!1?d.createElement("span",{className:oe()("".concat(Oe.prefixCls,"-switcher"),"".concat(Oe.prefixCls,"-switcher-noop"))},Se):null}var Mt=Ge(!1);return Mt!==!1?d.createElement("span",{onClick:_e,className:oe()("".concat(Oe.prefixCls,"-switcher"),"".concat(Oe.prefixCls,"-switcher_").concat(Q?U:Y))},Mt):null},Dt=d.useMemo(function(){if(!B)return null;var re=typeof B!="boolean"?B:null;return d.createElement("span",{className:oe()("".concat(Oe.prefixCls,"-checkbox"),(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(Oe.prefixCls,"-checkbox-checked"),v),"".concat(Oe.prefixCls,"-checkbox-indeterminate"),!v&&z),"".concat(Oe.prefixCls,"-checkbox-disabled"),be||S.disableCheckbox)),onClick:He,role:"checkbox","aria-checked":z?"mixed":v,"aria-disabled":be||S.disableCheckbox,"aria-label":"Select ".concat(typeof S.title=="string"?S.title:"tree node")},re)},[B,v,z,be,S.disableCheckbox,S.title]),rt=d.useMemo(function(){return at?null:Q?U:Y},[at,Q]),Kt=d.useMemo(function(){return d.createElement("span",{className:oe()("".concat(Oe.prefixCls,"-iconEle"),"".concat(Oe.prefixCls,"-icon__").concat(rt||"docu"),(0,he.Z)({},"".concat(Oe.prefixCls,"-icon_loading"),ce))})},[Oe.prefixCls,rt,ce]),fn=d.useMemo(function(){var re=!!Oe.draggable,Se=!S.disabled&&re&&Oe.dragOverNodeKey===q;return Se?Oe.dropIndicatorRender({dropPosition:Oe.dropPosition,dropLevelOffset:Oe.dropLevelOffset,indent:Oe.indent,prefixCls:Oe.prefixCls,direction:Oe.direction}):null},[Oe.dropPosition,Oe.dropLevelOffset,Oe.indent,Oe.prefixCls,Oe.direction,Oe.draggable,Oe.dragOverNodeKey,Oe.dropIndicatorRender]),Tt=d.useMemo(function(){var re=S.title,Se=re===void 0?ne:re,Mt="".concat(Oe.prefixCls,"-node-content-wrapper"),Rt;if(Oe.showIcon){var Ut=S.icon||Oe.icon;Rt=Ut?d.createElement("span",{className:oe()("".concat(Oe.prefixCls,"-iconEle"),"".concat(Oe.prefixCls,"-icon__customize"))},typeof Ut=="function"?Ut(S):Ut):Kt}else Oe.loadData&&ce&&(Rt=Kt);var hn;return typeof Se=="function"?hn=Se(It):Oe.titleRender?hn=Oe.titleRender(It):hn=Se,d.createElement("span",{ref:En,title:typeof Se=="string"?Se:"",className:oe()(Mt,"".concat(Mt,"-").concat(rt||"normal"),(0,he.Z)({},"".concat(Oe.prefixCls,"-node-selected"),!be&&(g||pt))),onMouseEnter:me,onMouseLeave:I,onContextMenu:de,onClick:P,onDoubleClick:K},Rt,d.createElement("span",{className:"".concat(Oe.prefixCls,"-title")},hn),fn)},[Oe.prefixCls,Oe.showIcon,S,Oe.icon,Kt,Oe.titleRender,It,rt,me,I,de,P,K]),Qt=(0,o.Z)(Bt,{aria:!0,data:!0}),Be=(0,y.Z)(Oe.keyEntities,q)||{},ke=Be.level,Ne=ie[ie.length-1],k=!be&&ee,ae=Oe.draggingNodeKey===q,fe=$t!==void 0?{"aria-selected":!!$t}:void 0;return d.createElement("div",(0,p.Z)({ref:je,role:"treeitem","aria-expanded":W?void 0:Q,className:oe()(ue,"".concat(Oe.prefixCls,"-treenode"),(j={},(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(j,"".concat(Oe.prefixCls,"-treenode-disabled"),be),"".concat(Oe.prefixCls,"-treenode-switcher-").concat(Q?"open":"close"),!W),"".concat(Oe.prefixCls,"-treenode-checkbox-checked"),v),"".concat(Oe.prefixCls,"-treenode-checkbox-indeterminate"),z),"".concat(Oe.prefixCls,"-treenode-selected"),g),"".concat(Oe.prefixCls,"-treenode-loading"),ce),"".concat(Oe.prefixCls,"-treenode-active"),Ye),"".concat(Oe.prefixCls,"-treenode-leaf-last"),Ne),"".concat(Oe.prefixCls,"-treenode-draggable"),ee),"dragging",ae),(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(j,"drop-target",Oe.dropTargetKey===q),"drop-container",Oe.dropContainerKey===q),"drag-over",!be&&We),"drag-over-gap-top",!be&&G),"drag-over-gap-bottom",!be&&N),"filter-node",(X=Oe.filterTreeNode)===null||X===void 0?void 0:X.call(Oe,(0,x.F)(S))),"".concat(Oe.prefixCls,"-treenode-leaf"),at))),style:pe,draggable:k,onDragStart:k?De:void 0,onDragEnter:ee?Te:void 0,onDragOver:ee?Ke:void 0,onDragLeave:ee?ze:void 0,onDrop:ee?ot:void 0,onDragEnd:ee?Xe:void 0,onMouseMove:bt},fe,Qt),d.createElement(m,{prefixCls:Oe.prefixCls,level:ke,isStart:$,isEnd:ie}),Qe,_t(),Dt,Tt)};M.isTreeNode=1;var F=M},30699:function(In,Wt,w){"use strict";w.d(Wt,{k:function(){return he},y:function(){return se}});var p=w(59301),he=p.createContext(null),se=p.createContext({})},15018:function(In,Wt,w){"use strict";w.d(Wt,{OF:function(){return q.Z},y6:function(){return Y.y},ZP:function(){return be}});var p=w(72308),he=w(62853),se=w(77321),ge=w(80702),O=w(96949),d=w(55090),ve=w(80237),oe=w(77205),o=w(38793),b=w(49618),T=w(92310),m=w.n(T),y=w(10228),x=w(26112),L=w(48736),U=w(59301),Y=w(30699),ne=function(Ce){var He=Ce.dropPosition,Z=Ce.dropLevelOffset,P=Ce.indent,K={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(He){case-1:K.top=0,K.left=-Z*P;break;case 1:K.bottom=0,K.left=-Z*P;break;case 0:K.bottom=0,K.left=P;break}return U.createElement("div",{style:K})},M=ne;function F(B){if(B==null)throw new TypeError("Cannot destructure "+B)}var D=w(52487),S=w(74416),te=w(34280),X=w(45680),j=w(77900),q=w(639);function ue(B,Ce){var He=U.useState(!1),Z=(0,D.Z)(He,2),P=Z[0],K=Z[1];(0,te.Z)(function(){if(P)return B(),function(){Ce()}},[P]),(0,te.Z)(function(){return K(!0),function(){K(!1)}},[])}var pe=ue,We=w(34061),G=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],N=U.forwardRef(function(B,Ce){var He=B.className,Z=B.style,P=B.motion,K=B.motionNodes,me=B.motionType,I=B.onMotionStart,de=B.onMotionEnd,ee=B.active,De=B.treeNodeRequiredProps,Te=(0,S.Z)(B,G),Ke=U.useState(!0),ze=(0,D.Z)(Ke,2),Xe=ze[0],ot=ze[1],_e=U.useContext(Y.k),Re=_e.prefixCls,at=K&&me!=="hide";(0,te.Z)(function(){K&&at!==Xe&&ot(at)},[K]);var Qe=function(){K&&I()},Ge=U.useRef(!1),_t=function(){K&&!Ge.current&&(Ge.current=!0,de())};pe(Qe,_t);var Dt=function(Kt){at===Kt&&_t()};return K?U.createElement(j.default,(0,p.Z)({ref:Ce,visible:Xe},P,{motionAppear:me==="show",onVisibleChanged:Dt}),function(rt,Kt){var fn=rt.className,Tt=rt.style;return U.createElement("div",{ref:Kt,className:m()("".concat(Re,"-treenode-motion"),fn),style:Tt},K.map(function(Qt){var Be=Object.assign({},(F(Qt.data),Qt.data)),ke=Qt.title,Ne=Qt.key,k=Qt.isStart,ae=Qt.isEnd;delete Be.children;var fe=(0,We.H8)(Ne,De);return U.createElement(q.Z,(0,p.Z)({},Be,fe,{title:ke,active:ee,data:Qt.data,key:Ne,isStart:k,isEnd:ae}))}))}):U.createElement(q.Z,(0,p.Z)({domRef:Ce,className:He,style:Z},Te,{active:ee}))}),W=N;function $(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],He=B.length,Z=Ce.length;if(Math.abs(He-Z)!==1)return{add:!1,key:null};function P(K,me){var I=new Map;K.forEach(function(ee){I.set(ee,!0)});var de=me.filter(function(ee){return!I.has(ee)});return de.length===1?de[0]:null}return He<Z?{add:!0,key:P(B,Ce)}:{add:!1,key:P(Ce,B)}}function ie(B,Ce,He){var Z=B.findIndex(function(I){return I.key===He}),P=B[Z+1],K=Ce.findIndex(function(I){return I.key===He});if(P){var me=Ce.findIndex(function(I){return I.key===P.key});return Ce.slice(K+1,me)}return Ce.slice(K+1)}var Q=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],g={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},z="RC_TREE_MOTION_".concat(Math.random()),ce={key:z},je={key:z,level:0,index:0,pos:"0",node:ce,nodes:[ce]},Ye={parent:null,children:[],pos:je.pos,data:ce,title:null,key:z,isStart:[],isEnd:[]};function It(B,Ce,He,Z){return Ce===!1||!He?B:B.slice(0,Math.ceil(He/Z)+1)}function bt(B){var Ce=B.key,He=B.pos;return(0,We.km)(Ce,He)}function $t(B){for(var Ce=String(B.data.key),He=B;He.parent;)He=He.parent,Ce="".concat(He.data.key," > ").concat(Ce);return Ce}var Bt=U.forwardRef(function(B,Ce){var He=B.prefixCls,Z=B.data,P=B.selectable,K=B.checkable,me=B.expandedKeys,I=B.selectedKeys,de=B.checkedKeys,ee=B.loadedKeys,De=B.loadingKeys,Te=B.halfCheckedKeys,Ke=B.keyEntities,ze=B.disabled,Xe=B.dragging,ot=B.dragOverNodeKey,_e=B.dropPosition,Re=B.motion,at=B.height,Qe=B.itemHeight,Ge=B.virtual,_t=B.scrollWidth,Dt=B.focusable,rt=B.activeItem,Kt=B.focused,fn=B.tabIndex,Tt=B.onKeyDown,Qt=B.onFocus,Be=B.onBlur,ke=B.onActiveChange,Ne=B.onListChangeStart,k=B.onListChangeEnd,ae=(0,S.Z)(B,Q),fe=U.useRef(null),re=U.useRef(null);U.useImperativeHandle(Ce,function(){return{scrollTo:function(tt){fe.current.scrollTo(tt)},getIndentWidth:function(){return re.current.offsetWidth}}});var Se=U.useState(me),Mt=(0,D.Z)(Se,2),Rt=Mt[0],Ut=Mt[1],hn=U.useState(Z),Le=(0,D.Z)(hn,2),_=Le[0],H=Le[1],E=U.useState(Z),Ie=(0,D.Z)(E,2),Ee=Ie[0],we=Ie[1],Ze=U.useState([]),ut=(0,D.Z)(Ze,2),kt=ut[0],ye=ut[1],le=U.useState(null),ht=(0,D.Z)(le,2),st=ht[0],dt=ht[1],Je=U.useRef(Z);Je.current=Z;function gt(){var lt=Je.current;H(lt),we(lt),ye([]),dt(null),k()}(0,te.Z)(function(){Ut(me);var lt=$(Rt,me);if(lt.key!==null)if(lt.add){var tt=_.findIndex(function(tn){var Fe=tn.key;return Fe===lt.key}),Ct=It(ie(_,Z,lt.key),Ge,at,Qe),Jt=_.slice();Jt.splice(tt+1,0,Ye),we(Jt),ye(Ct),dt("show")}else{var un=Z.findIndex(function(tn){var Fe=tn.key;return Fe===lt.key}),xn=It(ie(Z,_,lt.key),Ge,at,Qe),nn=Z.slice();nn.splice(un+1,0,Ye),we(nn),ye(xn),dt("hide")}else _!==Z&&(H(Z),we(Z))},[me,Z]),U.useEffect(function(){Xe||gt()},[Xe]);var Lt=Re?Ee:Z,Ot={expandedKeys:me,selectedKeys:I,loadedKeys:ee,loadingKeys:De,checkedKeys:de,halfCheckedKeys:Te,dragOverNodeKey:ot,dropPosition:_e,keyEntities:Ke};return U.createElement(U.Fragment,null,Kt&&rt&&U.createElement("span",{style:g,"aria-live":"assertive"},$t(rt)),U.createElement("div",null,U.createElement("input",{style:g,disabled:Dt===!1||ze,tabIndex:Dt!==!1?fn:null,onKeyDown:Tt,onFocus:Qt,onBlur:Be,value:"",onChange:v,"aria-label":"for screen reader"})),U.createElement("div",{className:"".concat(He,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},U.createElement("div",{className:"".concat(He,"-indent")},U.createElement("div",{ref:re,className:"".concat(He,"-indent-unit")}))),U.createElement(X.Z,(0,p.Z)({},ae,{data:Lt,itemKey:bt,height:at,fullHeight:!1,virtual:Ge,itemHeight:Qe,scrollWidth:_t,prefixCls:"".concat(He,"-list"),ref:fe,role:"tree",onVisibleChange:function(tt){tt.every(function(Ct){return bt(Ct)!==z})&>()}}),function(lt){var tt=lt.pos,Ct=Object.assign({},(F(lt.data),lt.data)),Jt=lt.title,un=lt.key,xn=lt.isStart,nn=lt.isEnd,tn=(0,We.km)(un,tt);delete Ct.key,delete Ct.children;var Fe=(0,We.H8)(tn,Ot);return U.createElement(W,(0,p.Z)({},Ct,Fe,{title:Jt,active:!!rt&&un===rt.key,pos:tt,data:lt.data,isStart:xn,isEnd:nn,motion:Re,motionNodes:un===z?kt:null,motionType:st,onMotionStart:Ne,onMotionEnd:gt,treeNodeRequiredProps:Ot,onMouseMove:function(){ke(null)}}))}))}),Oe=Bt,jt=w(82661),En=w(34643),Yt=w(65065),cn=10,pt=function(B){(0,oe.Z)(He,B);var Ce=(0,o.Z)(He);function He(){var Z;(0,O.Z)(this,He);for(var P=arguments.length,K=new Array(P),me=0;me<P;me++)K[me]=arguments[me];return Z=Ce.call.apply(Ce,[this].concat(K)),(0,b.Z)((0,ve.Z)(Z),"destroyed",!1),(0,b.Z)((0,ve.Z)(Z),"delayedDragEnterLogic",void 0),(0,b.Z)((0,ve.Z)(Z),"loadingRetryTimes",{}),(0,b.Z)((0,ve.Z)(Z),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,We.w$)()}),(0,b.Z)((0,ve.Z)(Z),"dragStartMousePosition",null),(0,b.Z)((0,ve.Z)(Z),"dragNodeProps",null),(0,b.Z)((0,ve.Z)(Z),"currentMouseOverDroppableNodeKey",null),(0,b.Z)((0,ve.Z)(Z),"listRef",U.createRef()),(0,b.Z)((0,ve.Z)(Z),"onNodeDragStart",function(I,de){var ee=Z.state,De=ee.expandedKeys,Te=ee.keyEntities,Ke=Z.props.onDragStart,ze=de.eventKey;Z.dragNodeProps=de,Z.dragStartMousePosition={x:I.clientX,y:I.clientY};var Xe=(0,jt._5)(De,ze);Z.setState({draggingNodeKey:ze,dragChildrenKeys:(0,jt.wA)(ze,Te),indent:Z.listRef.current.getIndentWidth()}),Z.setExpandedKeys(Xe),window.addEventListener("dragend",Z.onWindowDragEnd),Ke==null||Ke({event:I,node:(0,We.F)(de)})}),(0,b.Z)((0,ve.Z)(Z),"onNodeDragEnter",function(I,de){var ee=Z.state,De=ee.expandedKeys,Te=ee.keyEntities,Ke=ee.dragChildrenKeys,ze=ee.flattenNodes,Xe=ee.indent,ot=Z.props,_e=ot.onDragEnter,Re=ot.onExpand,at=ot.allowDrop,Qe=ot.direction,Ge=de.pos,_t=de.eventKey;if(Z.currentMouseOverDroppableNodeKey!==_t&&(Z.currentMouseOverDroppableNodeKey=_t),!Z.dragNodeProps){Z.resetDragState();return}var Dt=(0,jt.OM)(I,Z.dragNodeProps,de,Xe,Z.dragStartMousePosition,at,ze,Te,De,Qe),rt=Dt.dropPosition,Kt=Dt.dropLevelOffset,fn=Dt.dropTargetKey,Tt=Dt.dropContainerKey,Qt=Dt.dropTargetPos,Be=Dt.dropAllowed,ke=Dt.dragOverNodeKey;if(Ke.includes(fn)||!Be){Z.resetDragState();return}if(Z.delayedDragEnterLogic||(Z.delayedDragEnterLogic={}),Object.keys(Z.delayedDragEnterLogic).forEach(function(Ne){clearTimeout(Z.delayedDragEnterLogic[Ne])}),Z.dragNodeProps.eventKey!==de.eventKey&&(I.persist(),Z.delayedDragEnterLogic[Ge]=window.setTimeout(function(){if(Z.state.draggingNodeKey!==null){var Ne=(0,ge.Z)(De),k=(0,Yt.Z)(Te,de.eventKey);k&&(k.children||[]).length&&(Ne=(0,jt.L0)(De,de.eventKey)),Z.props.hasOwnProperty("expandedKeys")||Z.setExpandedKeys(Ne),Re==null||Re(Ne,{node:(0,We.F)(de),expanded:!0,nativeEvent:I.nativeEvent})}},800)),Z.dragNodeProps.eventKey===fn&&Kt===0){Z.resetDragState();return}Z.setState({dragOverNodeKey:ke,dropPosition:rt,dropLevelOffset:Kt,dropTargetKey:fn,dropContainerKey:Tt,dropTargetPos:Qt,dropAllowed:Be}),_e==null||_e({event:I,node:(0,We.F)(de),expandedKeys:De})}),(0,b.Z)((0,ve.Z)(Z),"onNodeDragOver",function(I,de){var ee=Z.state,De=ee.dragChildrenKeys,Te=ee.flattenNodes,Ke=ee.keyEntities,ze=ee.expandedKeys,Xe=ee.indent,ot=Z.props,_e=ot.onDragOver,Re=ot.allowDrop,at=ot.direction;if(Z.dragNodeProps){var Qe=(0,jt.OM)(I,Z.dragNodeProps,de,Xe,Z.dragStartMousePosition,Re,Te,Ke,ze,at),Ge=Qe.dropPosition,_t=Qe.dropLevelOffset,Dt=Qe.dropTargetKey,rt=Qe.dropContainerKey,Kt=Qe.dropTargetPos,fn=Qe.dropAllowed,Tt=Qe.dragOverNodeKey;De.includes(Dt)||!fn||(Z.dragNodeProps.eventKey===Dt&&_t===0?Z.state.dropPosition===null&&Z.state.dropLevelOffset===null&&Z.state.dropTargetKey===null&&Z.state.dropContainerKey===null&&Z.state.dropTargetPos===null&&Z.state.dropAllowed===!1&&Z.state.dragOverNodeKey===null||Z.resetDragState():Ge===Z.state.dropPosition&&_t===Z.state.dropLevelOffset&&Dt===Z.state.dropTargetKey&&rt===Z.state.dropContainerKey&&Kt===Z.state.dropTargetPos&&fn===Z.state.dropAllowed&&Tt===Z.state.dragOverNodeKey||Z.setState({dropPosition:Ge,dropLevelOffset:_t,dropTargetKey:Dt,dropContainerKey:rt,dropTargetPos:Kt,dropAllowed:fn,dragOverNodeKey:Tt}),_e==null||_e({event:I,node:(0,We.F)(de)}))}}),(0,b.Z)((0,ve.Z)(Z),"onNodeDragLeave",function(I,de){Z.currentMouseOverDroppableNodeKey===de.eventKey&&!I.currentTarget.contains(I.relatedTarget)&&(Z.resetDragState(),Z.currentMouseOverDroppableNodeKey=null);var ee=Z.props.onDragLeave;ee==null||ee({event:I,node:(0,We.F)(de)})}),(0,b.Z)((0,ve.Z)(Z),"onWindowDragEnd",function(I){Z.onNodeDragEnd(I,null,!0),window.removeEventListener("dragend",Z.onWindowDragEnd)}),(0,b.Z)((0,ve.Z)(Z),"onNodeDragEnd",function(I,de){var ee=Z.props.onDragEnd;Z.setState({dragOverNodeKey:null}),Z.cleanDragState(),ee==null||ee({event:I,node:(0,We.F)(de)}),Z.dragNodeProps=null,window.removeEventListener("dragend",Z.onWindowDragEnd)}),(0,b.Z)((0,ve.Z)(Z),"onNodeDrop",function(I,de){var ee,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Te=Z.state,Ke=Te.dragChildrenKeys,ze=Te.dropPosition,Xe=Te.dropTargetKey,ot=Te.dropTargetPos,_e=Te.dropAllowed;if(_e){var Re=Z.props.onDrop;if(Z.setState({dragOverNodeKey:null}),Z.cleanDragState(),Xe!==null){var at=(0,se.Z)((0,se.Z)({},(0,We.H8)(Xe,Z.getTreeNodeRequiredProps())),{},{active:((ee=Z.getActiveItem())===null||ee===void 0?void 0:ee.key)===Xe,data:(0,Yt.Z)(Z.state.keyEntities,Xe).node}),Qe=Ke.includes(Xe);(0,L.ZP)(!Qe,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ge=(0,jt.yx)(ot),_t={event:I,node:(0,We.F)(at),dragNode:Z.dragNodeProps?(0,We.F)(Z.dragNodeProps):null,dragNodesKeys:[Z.dragNodeProps.eventKey].concat(Ke),dropToGap:ze!==0,dropPosition:ze+Number(Ge[Ge.length-1])};De||Re==null||Re(_t),Z.dragNodeProps=null}}}),(0,b.Z)((0,ve.Z)(Z),"cleanDragState",function(){var I=Z.state.draggingNodeKey;I!==null&&Z.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Z.dragStartMousePosition=null,Z.currentMouseOverDroppableNodeKey=null}),(0,b.Z)((0,ve.Z)(Z),"triggerExpandActionExpand",function(I,de){var ee=Z.state,De=ee.expandedKeys,Te=ee.flattenNodes,Ke=de.expanded,ze=de.key,Xe=de.isLeaf;if(!(Xe||I.shiftKey||I.metaKey||I.ctrlKey)){var ot=Te.filter(function(Re){return Re.key===ze})[0],_e=(0,We.F)((0,se.Z)((0,se.Z)({},(0,We.H8)(ze,Z.getTreeNodeRequiredProps())),{},{data:ot.data}));Z.setExpandedKeys(Ke?(0,jt._5)(De,ze):(0,jt.L0)(De,ze)),Z.onNodeExpand(I,_e)}}),(0,b.Z)((0,ve.Z)(Z),"onNodeClick",function(I,de){var ee=Z.props,De=ee.onClick,Te=ee.expandAction;Te==="click"&&Z.triggerExpandActionExpand(I,de),De==null||De(I,de)}),(0,b.Z)((0,ve.Z)(Z),"onNodeDoubleClick",function(I,de){var ee=Z.props,De=ee.onDoubleClick,Te=ee.expandAction;Te==="doubleClick"&&Z.triggerExpandActionExpand(I,de),De==null||De(I,de)}),(0,b.Z)((0,ve.Z)(Z),"onNodeSelect",function(I,de){var ee=Z.state.selectedKeys,De=Z.state,Te=De.keyEntities,Ke=De.fieldNames,ze=Z.props,Xe=ze.onSelect,ot=ze.multiple,_e=de.selected,Re=de[Ke.key],at=!_e;at?ot?ee=(0,jt.L0)(ee,Re):ee=[Re]:ee=(0,jt._5)(ee,Re);var Qe=ee.map(function(Ge){var _t=(0,Yt.Z)(Te,Ge);return _t?_t.node:null}).filter(Boolean);Z.setUncontrolledState({selectedKeys:ee}),Xe==null||Xe(ee,{event:"select",selected:at,node:de,selectedNodes:Qe,nativeEvent:I.nativeEvent})}),(0,b.Z)((0,ve.Z)(Z),"onNodeCheck",function(I,de,ee){var De=Z.state,Te=De.keyEntities,Ke=De.checkedKeys,ze=De.halfCheckedKeys,Xe=Z.props,ot=Xe.checkStrictly,_e=Xe.onCheck,Re=de.key,at,Qe={event:"check",node:de,checked:ee,nativeEvent:I.nativeEvent};if(ot){var Ge=ee?(0,jt.L0)(Ke,Re):(0,jt._5)(Ke,Re),_t=(0,jt._5)(ze,Re);at={checked:Ge,halfChecked:_t},Qe.checkedNodes=Ge.map(function(Qt){return(0,Yt.Z)(Te,Qt)}).filter(Boolean).map(function(Qt){return Qt.node}),Z.setUncontrolledState({checkedKeys:Ge})}else{var Dt=(0,En.S)([].concat((0,ge.Z)(Ke),[Re]),!0,Te),rt=Dt.checkedKeys,Kt=Dt.halfCheckedKeys;if(!ee){var fn=new Set(rt);fn.delete(Re);var Tt=(0,En.S)(Array.from(fn),{checked:!1,halfCheckedKeys:Kt},Te);rt=Tt.checkedKeys,Kt=Tt.halfCheckedKeys}at=rt,Qe.checkedNodes=[],Qe.checkedNodesPositions=[],Qe.halfCheckedKeys=Kt,rt.forEach(function(Qt){var Be=(0,Yt.Z)(Te,Qt);if(Be){var ke=Be.node,Ne=Be.pos;Qe.checkedNodes.push(ke),Qe.checkedNodesPositions.push({node:ke,pos:Ne})}}),Z.setUncontrolledState({checkedKeys:rt},!1,{halfCheckedKeys:Kt})}_e==null||_e(at,Qe)}),(0,b.Z)((0,ve.Z)(Z),"onNodeLoad",function(I){var de,ee=I.key,De=Z.state.keyEntities,Te=(0,Yt.Z)(De,ee);if(!(Te!=null&&(de=Te.children)!==null&&de!==void 0&&de.length)){var Ke=new Promise(function(ze,Xe){Z.setState(function(ot){var _e=ot.loadedKeys,Re=_e===void 0?[]:_e,at=ot.loadingKeys,Qe=at===void 0?[]:at,Ge=Z.props,_t=Ge.loadData,Dt=Ge.onLoad;if(!_t||Re.includes(ee)||Qe.includes(ee))return null;var rt=_t(I);return rt.then(function(){var Kt=Z.state.loadedKeys,fn=(0,jt.L0)(Kt,ee);Dt==null||Dt(fn,{event:"load",node:I}),Z.setUncontrolledState({loadedKeys:fn}),Z.setState(function(Tt){return{loadingKeys:(0,jt._5)(Tt.loadingKeys,ee)}}),ze()}).catch(function(Kt){if(Z.setState(function(Tt){return{loadingKeys:(0,jt._5)(Tt.loadingKeys,ee)}}),Z.loadingRetryTimes[ee]=(Z.loadingRetryTimes[ee]||0)+1,Z.loadingRetryTimes[ee]>=cn){var fn=Z.state.loadedKeys;(0,L.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Z.setUncontrolledState({loadedKeys:(0,jt.L0)(fn,ee)}),ze()}Xe(Kt)}),{loadingKeys:(0,jt.L0)(Qe,ee)}})});return Ke.catch(function(){}),Ke}}),(0,b.Z)((0,ve.Z)(Z),"onNodeMouseEnter",function(I,de){var ee=Z.props.onMouseEnter;ee==null||ee({event:I,node:de})}),(0,b.Z)((0,ve.Z)(Z),"onNodeMouseLeave",function(I,de){var ee=Z.props.onMouseLeave;ee==null||ee({event:I,node:de})}),(0,b.Z)((0,ve.Z)(Z),"onNodeContextMenu",function(I,de){var ee=Z.props.onRightClick;ee&&(I.preventDefault(),ee({event:I,node:de}))}),(0,b.Z)((0,ve.Z)(Z),"onFocus",function(){var I=Z.props.onFocus;Z.setState({focused:!0});for(var de=arguments.length,ee=new Array(de),De=0;De<de;De++)ee[De]=arguments[De];I==null||I.apply(void 0,ee)}),(0,b.Z)((0,ve.Z)(Z),"onBlur",function(){var I=Z.props.onBlur;Z.setState({focused:!1}),Z.onActiveChange(null);for(var de=arguments.length,ee=new Array(de),De=0;De<de;De++)ee[De]=arguments[De];I==null||I.apply(void 0,ee)}),(0,b.Z)((0,ve.Z)(Z),"getTreeNodeRequiredProps",function(){var I=Z.state,de=I.expandedKeys,ee=I.selectedKeys,De=I.loadedKeys,Te=I.loadingKeys,Ke=I.checkedKeys,ze=I.halfCheckedKeys,Xe=I.dragOverNodeKey,ot=I.dropPosition,_e=I.keyEntities;return{expandedKeys:de||[],selectedKeys:ee||[],loadedKeys:De||[],loadingKeys:Te||[],checkedKeys:Ke||[],halfCheckedKeys:ze||[],dragOverNodeKey:Xe,dropPosition:ot,keyEntities:_e}}),(0,b.Z)((0,ve.Z)(Z),"setExpandedKeys",function(I){var de=Z.state,ee=de.treeData,De=de.fieldNames,Te=(0,We.oH)(ee,I,De);Z.setUncontrolledState({expandedKeys:I,flattenNodes:Te},!0)}),(0,b.Z)((0,ve.Z)(Z),"onNodeExpand",function(I,de){var ee=Z.state.expandedKeys,De=Z.state,Te=De.listChanging,Ke=De.fieldNames,ze=Z.props,Xe=ze.onExpand,ot=ze.loadData,_e=de.expanded,Re=de[Ke.key];if(!Te){var at=ee.includes(Re),Qe=!_e;if((0,L.ZP)(_e&&at||!_e&&!at,"Expand state not sync with index check"),ee=Qe?(0,jt.L0)(ee,Re):(0,jt._5)(ee,Re),Z.setExpandedKeys(ee),Xe==null||Xe(ee,{node:de,expanded:Qe,nativeEvent:I.nativeEvent}),Qe&&ot){var Ge=Z.onNodeLoad(de);Ge&&Ge.then(function(){var _t=(0,We.oH)(Z.state.treeData,ee,Ke);Z.setUncontrolledState({flattenNodes:_t})}).catch(function(){var _t=Z.state.expandedKeys,Dt=(0,jt._5)(_t,Re);Z.setExpandedKeys(Dt)})}}}),(0,b.Z)((0,ve.Z)(Z),"onListChangeStart",function(){Z.setUncontrolledState({listChanging:!0})}),(0,b.Z)((0,ve.Z)(Z),"onListChangeEnd",function(){setTimeout(function(){Z.setUncontrolledState({listChanging:!1})})}),(0,b.Z)((0,ve.Z)(Z),"onActiveChange",function(I){var de=Z.state.activeKey,ee=Z.props,De=ee.onActiveChange,Te=ee.itemScrollOffset,Ke=Te===void 0?0:Te;de!==I&&(Z.setState({activeKey:I}),I!==null&&Z.scrollTo({key:I,offset:Ke}),De==null||De(I))}),(0,b.Z)((0,ve.Z)(Z),"getActiveItem",function(){var I=Z.state,de=I.activeKey,ee=I.flattenNodes;return de===null?null:ee.find(function(De){var Te=De.key;return Te===de})||null}),(0,b.Z)((0,ve.Z)(Z),"offsetActiveKey",function(I){var de=Z.state,ee=de.flattenNodes,De=de.activeKey,Te=ee.findIndex(function(Xe){var ot=Xe.key;return ot===De});Te===-1&&I<0&&(Te=ee.length),Te=(Te+I+ee.length)%ee.length;var Ke=ee[Te];if(Ke){var ze=Ke.key;Z.onActiveChange(ze)}else Z.onActiveChange(null)}),(0,b.Z)((0,ve.Z)(Z),"onKeyDown",function(I){var de=Z.state,ee=de.activeKey,De=de.expandedKeys,Te=de.checkedKeys,Ke=de.fieldNames,ze=Z.props,Xe=ze.onKeyDown,ot=ze.checkable,_e=ze.selectable;switch(I.which){case y.Z.UP:{Z.offsetActiveKey(-1),I.preventDefault();break}case y.Z.DOWN:{Z.offsetActiveKey(1),I.preventDefault();break}}var Re=Z.getActiveItem();if(Re&&Re.data){var at=Z.getTreeNodeRequiredProps(),Qe=Re.data.isLeaf===!1||!!(Re.data[Ke.children]||[]).length,Ge=(0,We.F)((0,se.Z)((0,se.Z)({},(0,We.H8)(ee,at)),{},{data:Re.data,active:!0}));switch(I.which){case y.Z.LEFT:{Qe&&De.includes(ee)?Z.onNodeExpand({},Ge):Re.parent&&Z.onActiveChange(Re.parent.key),I.preventDefault();break}case y.Z.RIGHT:{Qe&&!De.includes(ee)?Z.onNodeExpand({},Ge):Re.children&&Re.children.length&&Z.onActiveChange(Re.children[0].key),I.preventDefault();break}case y.Z.ENTER:case y.Z.SPACE:{ot&&!Ge.disabled&&Ge.checkable!==!1&&!Ge.disableCheckbox?Z.onNodeCheck({},Ge,!Te.includes(ee)):!ot&&_e&&!Ge.disabled&&Ge.selectable!==!1&&Z.onNodeSelect({},Ge);break}}}Xe==null||Xe(I)}),(0,b.Z)((0,ve.Z)(Z),"setUncontrolledState",function(I){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Z.destroyed){var De=!1,Te=!0,Ke={};Object.keys(I).forEach(function(ze){if(Z.props.hasOwnProperty(ze)){Te=!1;return}De=!0,Ke[ze]=I[ze]}),De&&(!de||Te)&&Z.setState((0,se.Z)((0,se.Z)({},Ke),ee))}}),(0,b.Z)((0,ve.Z)(Z),"scrollTo",function(I){Z.listRef.current.scrollTo(I)}),Z}return(0,d.Z)(He,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var P=this.props,K=P.activeKey,me=P.itemScrollOffset,I=me===void 0?0:me;K!==void 0&&K!==this.state.activeKey&&(this.setState({activeKey:K}),K!==null&&this.scrollTo({key:K,offset:I}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var P=this.state,K=P.focused,me=P.flattenNodes,I=P.keyEntities,de=P.draggingNodeKey,ee=P.activeKey,De=P.dropLevelOffset,Te=P.dropContainerKey,Ke=P.dropTargetKey,ze=P.dropPosition,Xe=P.dragOverNodeKey,ot=P.indent,_e=this.props,Re=_e.prefixCls,at=_e.className,Qe=_e.style,Ge=_e.showLine,_t=_e.focusable,Dt=_e.tabIndex,rt=Dt===void 0?0:Dt,Kt=_e.selectable,fn=_e.showIcon,Tt=_e.icon,Qt=_e.switcherIcon,Be=_e.draggable,ke=_e.checkable,Ne=_e.checkStrictly,k=_e.disabled,ae=_e.motion,fe=_e.loadData,re=_e.filterTreeNode,Se=_e.height,Mt=_e.itemHeight,Rt=_e.scrollWidth,Ut=_e.virtual,hn=_e.titleRender,Le=_e.dropIndicatorRender,_=_e.onContextMenu,H=_e.onScroll,E=_e.direction,Ie=_e.rootClassName,Ee=_e.rootStyle,we=(0,x.Z)(this.props,{aria:!0,data:!0}),Ze;Be&&((0,he.Z)(Be)==="object"?Ze=Be:typeof Be=="function"?Ze={nodeDraggable:Be}:Ze={});var ut={prefixCls:Re,selectable:Kt,showIcon:fn,icon:Tt,switcherIcon:Qt,draggable:Ze,draggingNodeKey:de,checkable:ke,checkStrictly:Ne,disabled:k,keyEntities:I,dropLevelOffset:De,dropContainerKey:Te,dropTargetKey:Ke,dropPosition:ze,dragOverNodeKey:Xe,indent:ot,direction:E,dropIndicatorRender:Le,loadData:fe,filterTreeNode:re,titleRender:hn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return U.createElement(Y.k.Provider,{value:ut},U.createElement("div",{className:m()(Re,at,Ie,(0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(Re,"-show-line"),Ge),"".concat(Re,"-focused"),K),"".concat(Re,"-active-focused"),ee!==null)),style:Ee},U.createElement(Oe,(0,p.Z)({ref:this.listRef,prefixCls:Re,style:Qe,data:me,disabled:k,selectable:Kt,checkable:!!ke,motion:ae,dragging:de!==null,height:Se,itemHeight:Mt,virtual:Ut,focusable:_t,focused:K,tabIndex:rt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_,onScroll:H,scrollWidth:Rt},this.getTreeNodeRequiredProps(),we))))}}],[{key:"getDerivedStateFromProps",value:function(P,K){var me=K.prevProps,I={prevProps:P};function de(rt){return!me&&P.hasOwnProperty(rt)||me&&me[rt]!==P[rt]}var ee,De=K.fieldNames;if(de("fieldNames")&&(De=(0,We.w$)(P.fieldNames),I.fieldNames=De),de("treeData")?ee=P.treeData:de("children")&&((0,L.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ee=(0,We.zn)(P.children)),ee){I.treeData=ee;var Te=(0,We.I8)(ee,{fieldNames:De});I.keyEntities=(0,se.Z)((0,b.Z)({},z,je),Te.keyEntities)}var Ke=I.keyEntities||K.keyEntities;if(de("expandedKeys")||me&&de("autoExpandParent"))I.expandedKeys=P.autoExpandParent||!me&&P.defaultExpandParent?(0,jt.r7)(P.expandedKeys,Ke):P.expandedKeys;else if(!me&&P.defaultExpandAll){var ze=(0,se.Z)({},Ke);delete ze[z];var Xe=[];Object.keys(ze).forEach(function(rt){var Kt=ze[rt];Kt.children&&Kt.children.length&&Xe.push(Kt.key)}),I.expandedKeys=Xe}else!me&&P.defaultExpandedKeys&&(I.expandedKeys=P.autoExpandParent||P.defaultExpandParent?(0,jt.r7)(P.defaultExpandedKeys,Ke):P.defaultExpandedKeys);if(I.expandedKeys||delete I.expandedKeys,ee||I.expandedKeys){var ot=(0,We.oH)(ee||K.treeData,I.expandedKeys||K.expandedKeys,De);I.flattenNodes=ot}if(P.selectable&&(de("selectedKeys")?I.selectedKeys=(0,jt.BT)(P.selectedKeys,P):!me&&P.defaultSelectedKeys&&(I.selectedKeys=(0,jt.BT)(P.defaultSelectedKeys,P))),P.checkable){var _e;if(de("checkedKeys")?_e=(0,jt.E6)(P.checkedKeys)||{}:!me&&P.defaultCheckedKeys?_e=(0,jt.E6)(P.defaultCheckedKeys)||{}:ee&&(_e=(0,jt.E6)(P.checkedKeys)||{checkedKeys:K.checkedKeys,halfCheckedKeys:K.halfCheckedKeys}),_e){var Re=_e,at=Re.checkedKeys,Qe=at===void 0?[]:at,Ge=Re.halfCheckedKeys,_t=Ge===void 0?[]:Ge;if(!P.checkStrictly){var Dt=(0,En.S)(Qe,!0,Ke);Qe=Dt.checkedKeys,_t=Dt.halfCheckedKeys}I.checkedKeys=Qe,I.halfCheckedKeys=_t}}return de("loadedKeys")&&(I.loadedKeys=P.loadedKeys),I}}]),He}(U.Component);(0,b.Z)(pt,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:M,allowDrop:function(){return!0},expandAction:!1}),(0,b.Z)(pt,"TreeNode",q.Z);var Pe=pt,be=Pe},82661:function(In,Wt,w){"use strict";w.d(Wt,{BT:function(){return U},E6:function(){return M},L0:function(){return b},OM:function(){return L},_5:function(){return o},r7:function(){return F},wA:function(){return m},yx:function(){return T}});var p=w(80702),he=w(62853),se=w(48736),ge=w(59301),O=w(639),d=w(65065),ve=w(34061),oe=null;function o(D,S){if(!D)return[];var te=D.slice(),X=te.indexOf(S);return X>=0&&te.splice(X,1),te}function b(D,S){var te=(D||[]).slice();return te.indexOf(S)===-1&&te.push(S),te}function T(D){return D.split("-")}function m(D,S){var te=[],X=(0,d.Z)(S,D);function j(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];q.forEach(function(ue){var pe=ue.key,We=ue.children;te.push(pe),j(We)})}return j(X.children),te}function y(D){if(D.parent){var S=T(D.pos);return Number(S[S.length-1])===D.parent.children.length-1}return!1}function x(D){var S=T(D.pos);return Number(S[S.length-1])===0}function L(D,S,te,X,j,q,ue,pe,We,G){var N,W=D.clientX,$=D.clientY,ie=D.target.getBoundingClientRect(),Q=ie.top,g=ie.height,v=(G==="rtl"?-1:1)*(((j==null?void 0:j.x)||0)-W),z=(v-12)/X,ce=We.filter(function(be){var B;return(B=pe[be])===null||B===void 0||(B=B.children)===null||B===void 0?void 0:B.length}),je=(0,d.Z)(pe,te.eventKey);if($<Q+g/2){var Ye=ue.findIndex(function(be){return be.key===je.key}),It=Ye<=0?0:Ye-1,bt=ue[It].key;je=(0,d.Z)(pe,bt)}var $t=je.key,Bt=je,Oe=je.key,jt=0,En=0;if(!ce.includes($t))for(var Yt=0;Yt<z&&y(je);Yt+=1)je=je.parent,En+=1;var cn=S.data,pt=je.node,Pe=!0;return x(je)&&je.level===0&&$<Q+g/2&&q({dragNode:cn,dropNode:pt,dropPosition:-1})&&je.key===te.eventKey?jt=-1:(Bt.children||[]).length&&ce.includes(Oe)?q({dragNode:cn,dropNode:pt,dropPosition:0})?jt=0:Pe=!1:En===0?z>-1.5?q({dragNode:cn,dropNode:pt,dropPosition:1})?jt=1:Pe=!1:q({dragNode:cn,dropNode:pt,dropPosition:0})?jt=0:q({dragNode:cn,dropNode:pt,dropPosition:1})?jt=1:Pe=!1:q({dragNode:cn,dropNode:pt,dropPosition:1})?jt=1:Pe=!1,{dropPosition:jt,dropLevelOffset:En,dropTargetKey:je.key,dropTargetPos:je.pos,dragOverNodeKey:Oe,dropContainerKey:jt===0?null:((N=je.parent)===null||N===void 0?void 0:N.key)||null,dropAllowed:Pe}}function U(D,S){if(D){var te=S.multiple;return te?D.slice():D.length?[D[0]]:D}}var Y=function(S){return S};function ne(D,S){if(!D)return[];var te=S||{},X=te.processProps,j=X===void 0?Y:X,q=Array.isArray(D)?D:[D];return q.map(function(ue){var pe=ue.children,We=_objectWithoutProperties(ue,oe),G=ne(pe,S);return React.createElement(TreeNode,_extends({key:We.key},j(We)),G)})}function M(D){if(!D)return null;var S;if(Array.isArray(D))S={checkedKeys:D,halfCheckedKeys:void 0};else if((0,he.Z)(D)==="object")S={checkedKeys:D.checked||void 0,halfCheckedKeys:D.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return S}function F(D,S){var te=new Set;function X(j){if(!te.has(j)){var q=(0,d.Z)(S,j);if(q){te.add(j);var ue=q.parent,pe=q.node;pe.disabled||ue&&X(ue.key)}}}return(D||[]).forEach(function(j){X(j)}),(0,p.Z)(te)}},34643:function(In,Wt,w){"use strict";w.d(Wt,{S:function(){return ve}});var p=w(48736),he=w(65065);function se(oe,o){var b=new Set;return oe.forEach(function(T){o.has(T)||b.add(T)}),b}function ge(oe){var o=oe||{},b=o.disabled,T=o.disableCheckbox,m=o.checkable;return!!(b||T)||m===!1}function O(oe,o,b,T){for(var m=new Set(oe),y=new Set,x=0;x<=b;x+=1){var L=o.get(x)||new Set;L.forEach(function(M){var F=M.key,D=M.node,S=M.children,te=S===void 0?[]:S;m.has(F)&&!T(D)&&te.filter(function(X){return!T(X.node)}).forEach(function(X){m.add(X.key)})})}for(var U=new Set,Y=b;Y>=0;Y-=1){var ne=o.get(Y)||new Set;ne.forEach(function(M){var F=M.parent,D=M.node;if(!(T(D)||!M.parent||U.has(M.parent.key))){if(T(M.parent.node)){U.add(F.key);return}var S=!0,te=!1;(F.children||[]).filter(function(X){return!T(X.node)}).forEach(function(X){var j=X.key,q=m.has(j);S&&!q&&(S=!1),!te&&(q||y.has(j))&&(te=!0)}),S&&m.add(F.key),te&&y.add(F.key),U.add(F.key)}})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(se(y,m))}}function d(oe,o,b,T,m){for(var y=new Set(oe),x=new Set(o),L=0;L<=T;L+=1){var U=b.get(L)||new Set;U.forEach(function(F){var D=F.key,S=F.node,te=F.children,X=te===void 0?[]:te;!y.has(D)&&!x.has(D)&&!m(S)&&X.filter(function(j){return!m(j.node)}).forEach(function(j){y.delete(j.key)})})}x=new Set;for(var Y=new Set,ne=T;ne>=0;ne-=1){var M=b.get(ne)||new Set;M.forEach(function(F){var D=F.parent,S=F.node;if(!(m(S)||!F.parent||Y.has(F.parent.key))){if(m(F.parent.node)){Y.add(D.key);return}var te=!0,X=!1;(D.children||[]).filter(function(j){return!m(j.node)}).forEach(function(j){var q=j.key,ue=y.has(q);te&&!ue&&(te=!1),!X&&(ue||x.has(q))&&(X=!0)}),te||y.delete(D.key),X&&x.add(D.key),Y.add(D.key)}})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(se(x,y))}}function ve(oe,o,b,T){var m=[],y;T?y=T:y=ge;var x=new Set(oe.filter(function(ne){var M=!!(0,he.Z)(b,ne);return M||m.push(ne),M})),L=new Map,U=0;Object.keys(b).forEach(function(ne){var M=b[ne],F=M.level,D=L.get(F);D||(D=new Set,L.set(F,D)),D.add(M),U=Math.max(U,F)}),(0,p.ZP)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(ne){return"'".concat(ne,"'")}).join(", ")));var Y;return o===!0?Y=O(x,L,U,y):Y=d(x,o.halfCheckedKeys,L,U,y),Y}},65065:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return p}});function p(he,se){return he[se]}},34061:function(In,Wt,w){"use strict";w.d(Wt,{F:function(){return F},H8:function(){return M},I8:function(){return ne},km:function(){return m},oH:function(){return U},w$:function(){return y},zn:function(){return L}});var p=w(62853),he=w(80702),se=w(77321),ge=w(74416),O=w(11592),d=w(2738),ve=w(48736),oe=w(65065),o=["children"];function b(D,S){return"".concat(D,"-").concat(S)}function T(D){return D&&D.type&&D.type.isTreeNode}function m(D,S){return D!=null?D:S}function y(D){var S=D||{},te=S.title,X=S._title,j=S.key,q=S.children,ue=te||"title";return{title:ue,_title:X||[ue],key:j||"key",children:q||"children"}}function x(D,S){var te=new Map;function X(j){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(j||[]).forEach(function(ue){var pe=ue[S.key],We=ue[S.children];warning(pe!=null,"Tree node must have a certain key: [".concat(q).concat(pe,"]"));var G=String(pe);warning(!te.has(G)||pe===null||pe===void 0,"Same 'key' exist in the Tree: ".concat(G)),te.set(G,!0),X(We,"".concat(q).concat(G," > "))})}X(D)}function L(D){function S(te){var X=(0,O.Z)(te);return X.map(function(j){if(!T(j))return(0,ve.ZP)(!j,"Tree/TreeNode can only accept TreeNode as children."),null;var q=j.key,ue=j.props,pe=ue.children,We=(0,ge.Z)(ue,o),G=(0,se.Z)({key:q},We),N=S(pe);return N.length&&(G.children=N),G}).filter(function(j){return j})}return S(D)}function U(D,S,te){var X=y(te),j=X._title,q=X.key,ue=X.children,pe=new Set(S===!0?[]:S),We=[];function G(N){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return N.map(function($,ie){for(var Q=b(W?W.pos:"0",ie),g=m($[q],Q),v,z=0;z<j.length;z+=1){var ce=j[z];if($[ce]!==void 0){v=$[ce];break}}var je=Object.assign((0,d.Z)($,[].concat((0,he.Z)(j),[q,ue])),{title:v,key:g,parent:W,pos:Q,children:null,data:$,isStart:[].concat((0,he.Z)(W?W.isStart:[]),[ie===0]),isEnd:[].concat((0,he.Z)(W?W.isEnd:[]),[ie===N.length-1])});return We.push(je),S===!0||pe.has(g)?je.children=G($[ue]||[],je):je.children=[],je})}return G(D),We}function Y(D,S,te){var X={};(0,p.Z)(te)==="object"?X=te:X={externalGetKey:te},X=X||{};var j=X,q=j.childrenPropName,ue=j.externalGetKey,pe=j.fieldNames,We=y(pe),G=We.key,N=We.children,W=q||N,$;ue?typeof ue=="string"?$=function(g){return g[ue]}:typeof ue=="function"&&($=function(g){return ue(g)}):$=function(g,v){return m(g[G],v)};function ie(Q,g,v,z){var ce=Q?Q[W]:D,je=Q?b(v.pos,g):"0",Ye=Q?[].concat((0,he.Z)(z),[Q]):[];if(Q){var It=$(Q,je),bt={node:Q,index:g,pos:je,key:It,parentPos:v.node?v.pos:null,level:v.level+1,nodes:Ye};S(bt)}ce&&ce.forEach(function($t,Bt){ie($t,Bt,{node:Q,pos:je,level:v?v.level+1:-1},Ye)})}ie(null)}function ne(D){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=S.initWrapper,X=S.processEntity,j=S.onProcessFinished,q=S.externalGetKey,ue=S.childrenPropName,pe=S.fieldNames,We=arguments.length>2?arguments[2]:void 0,G=q||We,N={},W={},$={posEntities:N,keyEntities:W};return te&&($=te($)||$),Y(D,function(ie){var Q=ie.node,g=ie.index,v=ie.pos,z=ie.key,ce=ie.parentPos,je=ie.level,Ye=ie.nodes,It={node:Q,nodes:Ye,index:g,key:z,pos:v,level:je},bt=m(z,v);N[v]=It,W[bt]=It,It.parent=N[ce],It.parent&&(It.parent.children=It.parent.children||[],It.parent.children.push(It)),X&&X(It,$)},{externalGetKey:G,childrenPropName:ue,fieldNames:pe}),j&&j($),$}function M(D,S){var te=S.expandedKeys,X=S.selectedKeys,j=S.loadedKeys,q=S.loadingKeys,ue=S.checkedKeys,pe=S.halfCheckedKeys,We=S.dragOverNodeKey,G=S.dropPosition,N=S.keyEntities,W=(0,oe.Z)(N,D),$={eventKey:D,expanded:te.indexOf(D)!==-1,selected:X.indexOf(D)!==-1,loaded:j.indexOf(D)!==-1,loading:q.indexOf(D)!==-1,checked:ue.indexOf(D)!==-1,halfChecked:pe.indexOf(D)!==-1,pos:String(W?W.pos:""),dragOver:We===D&&G===0,dragOverGapTop:We===D&&G===-1,dragOverGapBottom:We===D&&G===1};return $}function F(D){var S=D.data,te=D.expanded,X=D.selected,j=D.checked,q=D.loaded,ue=D.loading,pe=D.halfChecked,We=D.dragOver,G=D.dragOverGapTop,N=D.dragOverGapBottom,W=D.pos,$=D.active,ie=D.eventKey,Q=(0,se.Z)((0,se.Z)({},S),{},{expanded:te,selected:X,checked:j,loaded:q,loading:ue,halfChecked:pe,dragOver:We,dragOverGapTop:G,dragOverGapBottom:N,pos:W,active:$,key:ie});return"props"in Q||Object.defineProperty(Q,"props",{get:function(){return(0,ve.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),D}}),Q}},8224:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return he}});var p=w(4676);function he(se,ge,O,d){var ve=p.unstable_batchedUpdates?function(o){p.unstable_batchedUpdates(O,o)}:O;return se!=null&&se.addEventListener&&se.addEventListener(ge,ve,d),{remove:function(){se!=null&&se.removeEventListener&&se.removeEventListener(ge,ve,d)}}}},24514:function(In,Wt,w){"use strict";w.d(Wt,{G:function(){return ge}});var p=w(47273),he=function(d){if((0,p.Z)()&&window.document.documentElement){var ve=Array.isArray(d)?d:[d],oe=window.document.documentElement;return ve.some(function(o){return o in oe.style})}return!1},se=function(d,ve){if(!he(d))return!1;var oe=document.createElement("div"),o=oe.style[d];return oe.style[d]=ve,oe.style[d]!==o};function ge(O,d){return!Array.isArray(O)&&d!==void 0?se(O,d):he(O)}},49658:function(In,Wt){"use strict";Wt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var w=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(w)||/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(w==null?void 0:w.substr(0,4))}},45680:function(In,Wt,w){"use strict";w.d(Wt,{Z:function(){return cn}});var p=w(72308),he=w(62853),se=w(77321),ge=w(49618),O=w(52487),d=w(74416),ve=w(92310),oe=w.n(ve),o=w(29301),b=w(70425),T=w(34280),m=w(59301),y=w(4676),x=m.forwardRef(function(pt,Pe){var be=pt.height,B=pt.offsetY,Ce=pt.offsetX,He=pt.children,Z=pt.prefixCls,P=pt.onInnerResize,K=pt.innerProps,me=pt.rtl,I=pt.extra,de={},ee={display:"flex",flexDirection:"column"};return B!==void 0&&(de={height:be,position:"relative",overflow:"hidden"},ee=(0,se.Z)((0,se.Z)({},ee),{},(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({transform:"translateY(".concat(B,"px)")},me?"marginRight":"marginLeft",-Ce),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:de},m.createElement(o.Z,{onResize:function(Te){var Ke=Te.offsetHeight;Ke&&P&&P()}},m.createElement("div",(0,p.Z)({style:ee,className:oe()((0,ge.Z)({},"".concat(Z,"-holder-inner"),Z)),ref:Pe},K),He,I)))});x.displayName="Filler";var L=x;function U(pt){var Pe=pt.children,be=pt.setRef,B=m.useCallback(function(Ce){be(Ce)},[]);return m.cloneElement(Pe,{ref:B})}function Y(pt,Pe,be,B,Ce,He,Z,P){var K=P.getKey;return pt.slice(Pe,be+1).map(function(me,I){var de=Pe+I,ee=Z(me,de,{style:{width:B},offsetX:Ce}),De=K(me);return m.createElement(U,{key:De,setRef:function(Ke){return He(me,Ke)}},ee)})}function ne(pt,Pe,be,B){var Ce=be-pt,He=Pe-be,Z=Math.min(Ce,He)*2;if(B<=Z){var P=Math.floor(B/2);return B%2?be+P+1:be-P}return Ce>He?be-(B-He):be+(B-Ce)}function M(pt,Pe,be){var B=pt.length,Ce=Pe.length,He,Z;if(B===0&&Ce===0)return null;B<Ce?(He=pt,Z=Pe):(He=Pe,Z=pt);var P={__EMPTY_ITEM__:!0};function K(Te){return Te!==void 0?be(Te):P}for(var me=null,I=Math.abs(B-Ce)!==1,de=0;de<Z.length;de+=1){var ee=K(He[de]),De=K(Z[de]);if(ee!==De){me=de,I=I||ee!==K(Z[de+1]);break}}return me===null?null:{index:me,multiple:I}}function F(pt,Pe,be){var B=m.useState(pt),Ce=(0,O.Z)(B,2),He=Ce[0],Z=Ce[1],P=m.useState(null),K=(0,O.Z)(P,2),me=K[0],I=K[1];return m.useEffect(function(){var de=M(He||[],pt||[],Pe);(de==null?void 0:de.index)!==void 0&&(be==null||be(de.index),I(pt[de.index])),Z(pt)},[pt]),[me]}var D=w(16089),S=(typeof navigator=="undefined"?"undefined":(0,he.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),te=S,X=function(pt,Pe,be,B){var Ce=(0,m.useRef)(!1),He=(0,m.useRef)(null);function Z(){clearTimeout(He.current),Ce.current=!0,He.current=setTimeout(function(){Ce.current=!1},50)}var P=(0,m.useRef)({top:pt,bottom:Pe,left:be,right:B});return P.current.top=pt,P.current.bottom=Pe,P.current.left=be,P.current.right=B,function(K,me){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=K?me<0&&P.current.left||me>0&&P.current.right:me<0&&P.current.top||me>0&&P.current.bottom;return I&&de?(clearTimeout(He.current),Ce.current=!1):(!de||Ce.current)&&Z(),!Ce.current&&de}};function j(pt,Pe,be,B,Ce,He,Z){var P=(0,m.useRef)(0),K=(0,m.useRef)(null),me=(0,m.useRef)(null),I=(0,m.useRef)(!1),de=X(Pe,be,B,Ce);function ee(ot,_e){if(D.Z.cancel(K.current),!de(!1,_e)){var Re=ot;if(!Re._virtualHandled)Re._virtualHandled=!0;else return;P.current+=_e,me.current=_e,te||Re.preventDefault(),K.current=(0,D.Z)(function(){var at=I.current?10:1;Z(P.current*at,!1),P.current=0})}}function De(ot,_e){Z(_e,!0),te||ot.preventDefault()}var Te=(0,m.useRef)(null),Ke=(0,m.useRef)(null);function ze(ot){if(pt){D.Z.cancel(Ke.current),Ke.current=(0,D.Z)(function(){Te.current=null},2);var _e=ot.deltaX,Re=ot.deltaY,at=ot.shiftKey,Qe=_e,Ge=Re;(Te.current==="sx"||!Te.current&&at&&Re&&!_e)&&(Qe=Re,Ge=0,Te.current="sx");var _t=Math.abs(Qe),Dt=Math.abs(Ge);Te.current===null&&(Te.current=He&&_t>Dt?"x":"y"),Te.current==="y"?ee(ot,Ge):De(ot,Qe)}}function Xe(ot){pt&&(I.current=ot.detail===me.current)}return[ze,Xe]}function q(pt,Pe,be,B){var Ce=m.useMemo(function(){return[new Map,[]]},[pt,be.id,B]),He=(0,O.Z)(Ce,2),Z=He[0],P=He[1],K=function(I){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,ee=Z.get(I),De=Z.get(de);if(ee===void 0||De===void 0)for(var Te=pt.length,Ke=P.length;Ke<Te;Ke+=1){var ze,Xe=pt[Ke],ot=Pe(Xe);Z.set(ot,Ke);var _e=(ze=be.get(ot))!==null&&ze!==void 0?ze:B;if(P[Ke]=(P[Ke-1]||0)+_e,ot===I&&(ee=Ke),ot===de&&(De=Ke),ee!==void 0&&De!==void 0)break}return{top:P[ee-1]||0,bottom:P[De]}};return K}var ue=w(96949),pe=w(55090),We=function(){function pt(){(0,ue.Z)(this,pt),(0,ge.Z)(this,"maps",void 0),(0,ge.Z)(this,"id",0),(0,ge.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,pe.Z)(pt,[{key:"set",value:function(be,B){this.maps[be]=B,this.id+=1,this.diffKeys.add(be)}},{key:"get",value:function(be){return this.maps[be]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),pt}(),G=We;function N(pt){var Pe=parseFloat(pt);return isNaN(Pe)?0:Pe}function W(pt,Pe,be){var B=m.useState(0),Ce=(0,O.Z)(B,2),He=Ce[0],Z=Ce[1],P=(0,m.useRef)(new Map),K=(0,m.useRef)(new G),me=(0,m.useRef)(0);function I(){me.current+=1}function de(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;I();var Te=function(){var Xe=!1;P.current.forEach(function(ot,_e){if(ot&&ot.offsetParent){var Re=ot.offsetHeight,at=getComputedStyle(ot),Qe=at.marginTop,Ge=at.marginBottom,_t=N(Qe),Dt=N(Ge),rt=Re+_t+Dt;K.current.get(_e)!==rt&&(K.current.set(_e,rt),Xe=!0)}}),Xe&&Z(function(ot){return ot+1})};if(De)Te();else{me.current+=1;var Ke=me.current;Promise.resolve().then(function(){Ke===me.current&&Te()})}}function ee(De,Te){var Ke=pt(De),ze=P.current.get(Ke);Te?(P.current.set(Ke,Te),de()):P.current.delete(Ke),!ze!=!Te&&(Te?Pe==null||Pe(De):be==null||be(De))}return(0,m.useEffect)(function(){return I},[]),[ee,de,K.current,He]}var $=14/15;function ie(pt,Pe,be){var B=(0,m.useRef)(!1),Ce=(0,m.useRef)(0),He=(0,m.useRef)(0),Z=(0,m.useRef)(null),P=(0,m.useRef)(null),K,me=function(De){if(B.current){var Te=Math.ceil(De.touches[0].pageX),Ke=Math.ceil(De.touches[0].pageY),ze=Ce.current-Te,Xe=He.current-Ke,ot=Math.abs(ze)>Math.abs(Xe);ot?Ce.current=Te:He.current=Ke;var _e=be(ot,ot?ze:Xe,!1,De);_e&&De.preventDefault(),clearInterval(P.current),_e&&(P.current=setInterval(function(){ot?ze*=$:Xe*=$;var Re=Math.floor(ot?ze:Xe);(!be(ot,Re,!0)||Math.abs(Re)<=.1)&&clearInterval(P.current)},16))}},I=function(){B.current=!1,K()},de=function(De){K(),De.touches.length===1&&!B.current&&(B.current=!0,Ce.current=Math.ceil(De.touches[0].pageX),He.current=Math.ceil(De.touches[0].pageY),Z.current=De.target,Z.current.addEventListener("touchmove",me,{passive:!1}),Z.current.addEventListener("touchend",I,{passive:!0}))};K=function(){Z.current&&(Z.current.removeEventListener("touchmove",me),Z.current.removeEventListener("touchend",I))},(0,T.Z)(function(){return pt&&Pe.current.addEventListener("touchstart",de,{passive:!0}),function(){var ee;(ee=Pe.current)===null||ee===void 0||ee.removeEventListener("touchstart",de),K(),clearInterval(P.current)}},[pt])}function Q(pt){return Math.floor(Math.pow(pt,.5))}function g(pt,Pe){var be="touches"in pt?pt.touches[0]:pt;return be[Pe?"pageX":"pageY"]-window[Pe?"scrollX":"scrollY"]}function v(pt,Pe,be){m.useEffect(function(){var B=Pe.current;if(pt&&B){var Ce=!1,He,Z,P=function(){D.Z.cancel(He)},K=function ee(){P(),He=(0,D.Z)(function(){be(Z),ee()})},me=function(De){if(!(De.target.draggable||De.button!==0)){var Te=De;Te._virtualHandled||(Te._virtualHandled=!0,Ce=!0)}},I=function(){Ce=!1,P()},de=function(De){if(Ce){var Te=g(De,!1),Ke=B.getBoundingClientRect(),ze=Ke.top,Xe=Ke.bottom;if(Te<=ze){var ot=ze-Te;Z=-Q(ot),K()}else if(Te>=Xe){var _e=Te-Xe;Z=Q(_e),K()}else P()}};return B.addEventListener("mousedown",me),B.ownerDocument.addEventListener("mouseup",I),B.ownerDocument.addEventListener("mousemove",de),function(){B.removeEventListener("mousedown",me),B.ownerDocument.removeEventListener("mouseup",I),B.ownerDocument.removeEventListener("mousemove",de),P()}}},[pt])}var z=10;function ce(pt,Pe,be,B,Ce,He,Z,P){var K=m.useRef(),me=m.useState(null),I=(0,O.Z)(me,2),de=I[0],ee=I[1];return(0,T.Z)(function(){if(de&&de.times<z){if(!pt.current){ee(function(ae){return(0,se.Z)({},ae)});return}He();var De=de.targetAlign,Te=de.originAlign,Ke=de.index,ze=de.offset,Xe=pt.current.clientHeight,ot=!1,_e=De,Re=null;if(Xe){for(var at=De||Te,Qe=0,Ge=0,_t=0,Dt=Math.min(Pe.length-1,Ke),rt=0;rt<=Dt;rt+=1){var Kt=Ce(Pe[rt]);Ge=Qe;var fn=be.get(Kt);_t=Ge+(fn===void 0?B:fn),Qe=_t}for(var Tt=at==="top"?ze:Xe-ze,Qt=Dt;Qt>=0;Qt-=1){var Be=Ce(Pe[Qt]),ke=be.get(Be);if(ke===void 0){ot=!0;break}if(Tt-=ke,Tt<=0)break}switch(at){case"top":Re=Ge-ze;break;case"bottom":Re=_t-Xe+ze;break;default:{var Ne=pt.current.scrollTop,k=Ne+Xe;Ge<Ne?_e="top":_t>k&&(_e="bottom")}}Re!==null&&Z(Re),Re!==de.lastTop&&(ot=!0)}ot&&ee((0,se.Z)((0,se.Z)({},de),{},{times:de.times+1,targetAlign:_e,lastTop:Re}))}},[de,pt.current]),function(De){if(De==null){P();return}if(D.Z.cancel(K.current),typeof De=="number")Z(De);else if(De&&(0,he.Z)(De)==="object"){var Te,Ke=De.align;"index"in De?Te=De.index:Te=Pe.findIndex(function(ot){return Ce(ot)===De.key});var ze=De.offset,Xe=ze===void 0?0:ze;ee({times:0,index:Te,offset:Xe,originAlign:Ke})}}}var je=m.forwardRef(function(pt,Pe){var be=pt.prefixCls,B=pt.rtl,Ce=pt.scrollOffset,He=pt.scrollRange,Z=pt.onStartMove,P=pt.onStopMove,K=pt.onScroll,me=pt.horizontal,I=pt.spinSize,de=pt.containerSize,ee=pt.style,De=pt.thumbStyle,Te=pt.showScrollBar,Ke=m.useState(!1),ze=(0,O.Z)(Ke,2),Xe=ze[0],ot=ze[1],_e=m.useState(null),Re=(0,O.Z)(_e,2),at=Re[0],Qe=Re[1],Ge=m.useState(null),_t=(0,O.Z)(Ge,2),Dt=_t[0],rt=_t[1],Kt=!B,fn=m.useRef(),Tt=m.useRef(),Qt=m.useState(Te),Be=(0,O.Z)(Qt,2),ke=Be[0],Ne=Be[1],k=m.useRef(),ae=function(){Te===!0||Te===!1||(clearTimeout(k.current),Ne(!0),k.current=setTimeout(function(){Ne(!1)},3e3))},fe=He-de||0,re=de-I||0,Se=m.useMemo(function(){if(Ce===0||fe===0)return 0;var Ie=Ce/fe;return Ie*re},[Ce,fe,re]),Mt=function(Ee){Ee.stopPropagation(),Ee.preventDefault()},Rt=m.useRef({top:Se,dragging:Xe,pageY:at,startTop:Dt});Rt.current={top:Se,dragging:Xe,pageY:at,startTop:Dt};var Ut=function(Ee){ot(!0),Qe(g(Ee,me)),rt(Rt.current.top),Z(),Ee.stopPropagation(),Ee.preventDefault()};m.useEffect(function(){var Ie=function(ut){ut.preventDefault()},Ee=fn.current,we=Tt.current;return Ee.addEventListener("touchstart",Ie,{passive:!1}),we.addEventListener("touchstart",Ut,{passive:!1}),function(){Ee.removeEventListener("touchstart",Ie),we.removeEventListener("touchstart",Ut)}},[]);var hn=m.useRef();hn.current=fe;var Le=m.useRef();Le.current=re,m.useEffect(function(){if(Xe){var Ie,Ee=function(ut){var kt=Rt.current,ye=kt.dragging,le=kt.pageY,ht=kt.startTop;D.Z.cancel(Ie);var st=fn.current.getBoundingClientRect(),dt=de/(me?st.width:st.height);if(ye){var Je=(g(ut,me)-le)*dt,gt=ht;!Kt&&me?gt-=Je:gt+=Je;var Lt=hn.current,Ot=Le.current,lt=Ot?gt/Ot:0,tt=Math.ceil(lt*Lt);tt=Math.max(tt,0),tt=Math.min(tt,Lt),Ie=(0,D.Z)(function(){K(tt,me)})}},we=function(){ot(!1),P()};return window.addEventListener("mousemove",Ee,{passive:!0}),window.addEventListener("touchmove",Ee,{passive:!0}),window.addEventListener("mouseup",we,{passive:!0}),window.addEventListener("touchend",we,{passive:!0}),function(){window.removeEventListener("mousemove",Ee),window.removeEventListener("touchmove",Ee),window.removeEventListener("mouseup",we),window.removeEventListener("touchend",we),D.Z.cancel(Ie)}}},[Xe]),m.useEffect(function(){return ae(),function(){clearTimeout(k.current)}},[Ce]),m.useImperativeHandle(Pe,function(){return{delayHidden:ae}});var _="".concat(be,"-scrollbar"),H={position:"absolute",visibility:ke?null:"hidden"},E={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return me?(H.height=8,H.left=0,H.right=0,H.bottom=0,E.height="100%",E.width=I,Kt?E.left=Se:E.right=Se):(H.width=8,H.top=0,H.bottom=0,Kt?H.right=0:H.left=0,E.width="100%",E.height=I,E.top=Se),m.createElement("div",{ref:fn,className:oe()(_,(0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(_,"-horizontal"),me),"".concat(_,"-vertical"),!me),"".concat(_,"-visible"),ke)),style:(0,se.Z)((0,se.Z)({},H),ee),onMouseDown:Mt,onMouseMove:ae},m.createElement("div",{ref:Tt,className:oe()("".concat(_,"-thumb"),(0,ge.Z)({},"".concat(_,"-thumb-moving"),Xe)),style:(0,se.Z)((0,se.Z)({},E),De),onMouseDown:Ut}))}),Ye=je,It=20;function bt(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,be=pt/Pe*pt;return isNaN(be)&&(be=0),be=Math.max(be,It),Math.floor(be)}var $t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Bt=[],Oe={overflowY:"auto",overflowAnchor:"none"};function jt(pt,Pe){var be=pt.prefixCls,B=be===void 0?"rc-virtual-list":be,Ce=pt.className,He=pt.height,Z=pt.itemHeight,P=pt.fullHeight,K=P===void 0?!0:P,me=pt.style,I=pt.data,de=pt.children,ee=pt.itemKey,De=pt.virtual,Te=pt.direction,Ke=pt.scrollWidth,ze=pt.component,Xe=ze===void 0?"div":ze,ot=pt.onScroll,_e=pt.onVirtualScroll,Re=pt.onVisibleChange,at=pt.innerProps,Qe=pt.extraRender,Ge=pt.styles,_t=pt.showScrollBar,Dt=_t===void 0?"optional":_t,rt=(0,d.Z)(pt,$t),Kt=m.useCallback(function(et){return typeof ee=="function"?ee(et):et==null?void 0:et[ee]},[ee]),fn=W(Kt,null,null),Tt=(0,O.Z)(fn,4),Qt=Tt[0],Be=Tt[1],ke=Tt[2],Ne=Tt[3],k=!!(De!==!1&&He&&Z),ae=m.useMemo(function(){return Object.values(ke.maps).reduce(function(et,ft){return et+ft},0)},[ke.id,ke.maps]),fe=k&&I&&(Math.max(Z*I.length,ae)>He||!!Ke),re=Te==="rtl",Se=oe()(B,(0,ge.Z)({},"".concat(B,"-rtl"),re),Ce),Mt=I||Bt,Rt=(0,m.useRef)(),Ut=(0,m.useRef)(),hn=(0,m.useRef)(),Le=(0,m.useState)(0),_=(0,O.Z)(Le,2),H=_[0],E=_[1],Ie=(0,m.useState)(0),Ee=(0,O.Z)(Ie,2),we=Ee[0],Ze=Ee[1],ut=(0,m.useState)(!1),kt=(0,O.Z)(ut,2),ye=kt[0],le=kt[1],ht=function(){le(!0)},st=function(){le(!1)},dt={getKey:Kt};function Je(et){E(function(ft){var yt;typeof et=="function"?yt=et(ft):yt=et;var Xt=An(yt);return Rt.current.scrollTop=Xt,Xt})}var gt=(0,m.useRef)({start:0,end:Mt.length}),Lt=(0,m.useRef)(),Ot=F(Mt,Kt),lt=(0,O.Z)(Ot,1),tt=lt[0];Lt.current=tt;var Ct=m.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:Mt.length-1,offset:void 0};if(!fe){var et;return{scrollHeight:((et=Ut.current)===null||et===void 0?void 0:et.offsetHeight)||0,start:0,end:Mt.length-1,offset:void 0}}for(var ft=0,yt,Xt,Vt,gn=Mt.length,jn=0;jn<gn;jn+=1){var Bn=Mt[jn],Vn=Kt(Bn),Gn=ke.get(Vn),Xn=ft+(Gn===void 0?Z:Gn);Xn>=H&&yt===void 0&&(yt=jn,Xt=ft),Xn>H+He&&Vt===void 0&&(Vt=jn),ft=Xn}return yt===void 0&&(yt=0,Xt=0,Vt=Math.ceil(He/Z)),Vt===void 0&&(Vt=Mt.length-1),Vt=Math.min(Vt+1,Mt.length-1),{scrollHeight:ft,start:yt,end:Vt,offset:Xt}},[fe,k,H,Mt,Ne,He]),Jt=Ct.scrollHeight,un=Ct.start,xn=Ct.end,nn=Ct.offset;gt.current.start=un,gt.current.end=xn,m.useLayoutEffect(function(){var et=ke.getRecord();if(et.size===1){var ft=Array.from(et)[0],yt=Mt[un];if(yt){var Xt=Kt(yt);if(Xt===ft){var Vt=ke.get(ft),gn=Vt-Z;Je(function(jn){return jn+gn})}}}ke.resetRecord()},[Jt]);var tn=m.useState({width:0,height:He}),Fe=(0,O.Z)(tn,2),it=Fe[0],St=Fe[1],mt=function(ft){St({width:ft.offsetWidth,height:ft.offsetHeight})},Zt=(0,m.useRef)(),Ht=(0,m.useRef)(),en=m.useMemo(function(){return bt(it.width,Ke)},[it.width,Ke]),sn=m.useMemo(function(){return bt(it.height,Jt)},[it.height,Jt]),vn=Jt-He,_n=(0,m.useRef)(vn);_n.current=vn;function An(et){var ft=et;return Number.isNaN(_n.current)||(ft=Math.min(ft,_n.current)),ft=Math.max(ft,0),ft}var yn=H<=0,Zn=H>=vn,On=we<=0,zn=we>=Ke,Fn=X(yn,Zn,On,zn),kn=function(){return{x:re?-we:we,y:H}},qn=(0,m.useRef)(kn()),pn=(0,b.zX)(function(et){if(_e){var ft=(0,se.Z)((0,se.Z)({},kn()),et);(qn.current.x!==ft.x||qn.current.y!==ft.y)&&(_e(ft),qn.current=ft)}});function ln(et,ft){var yt=et;ft?((0,y.flushSync)(function(){Ze(yt)}),pn()):Je(yt)}function Me(et){var ft=et.currentTarget.scrollTop;ft!==H&&Je(ft),ot==null||ot(et),pn()}var Pt=function(ft){var yt=ft,Xt=Ke?Ke-it.width:0;return yt=Math.max(yt,0),yt=Math.min(yt,Xt),yt},mn=(0,b.zX)(function(et,ft){ft?((0,y.flushSync)(function(){Ze(function(yt){var Xt=yt+(re?-et:et);return Pt(Xt)})}),pn()):Je(function(yt){var Xt=yt+et;return Xt})}),Rn=j(k,yn,Zn,On,zn,!!Ke,mn),Kn=(0,O.Z)(Rn,2),xe=Kn[0],nt=Kn[1];ie(k,Rt,function(et,ft,yt,Xt){var Vt=Xt;return Fn(et,ft,yt)?!1:!Vt||!Vt._virtualHandled?(Vt&&(Vt._virtualHandled=!0),xe({preventDefault:function(){},deltaX:et?ft:0,deltaY:et?0:ft}),!0):!1}),v(fe,Rt,function(et){Je(function(ft){return ft+et})}),(0,T.Z)(function(){function et(yt){var Xt=yn&&yt.detail<0,Vt=Zn&&yt.detail>0;k&&!Xt&&!Vt&&yt.preventDefault()}var ft=Rt.current;return ft.addEventListener("wheel",xe,{passive:!1}),ft.addEventListener("DOMMouseScroll",nt,{passive:!0}),ft.addEventListener("MozMousePixelScroll",et,{passive:!1}),function(){ft.removeEventListener("wheel",xe),ft.removeEventListener("DOMMouseScroll",nt),ft.removeEventListener("MozMousePixelScroll",et)}},[k,yn,Zn]),(0,T.Z)(function(){if(Ke){var et=Pt(we);Ze(et),pn({x:et})}},[it.width,Ke]);var qe=function(){var ft,yt;(ft=Zt.current)===null||ft===void 0||ft.delayHidden(),(yt=Ht.current)===null||yt===void 0||yt.delayHidden()},$e=ce(Rt,Mt,ke,Z,Kt,function(){return Be(!0)},Je,qe);m.useImperativeHandle(Pe,function(){return{nativeElement:hn.current,getScrollInfo:kn,scrollTo:function(ft){function yt(Xt){return Xt&&(0,he.Z)(Xt)==="object"&&("left"in Xt||"top"in Xt)}yt(ft)?(ft.left!==void 0&&Ze(Pt(ft.left)),$e(ft.top)):$e(ft)}}}),(0,T.Z)(function(){if(Re){var et=Mt.slice(un,xn+1);Re(et,Mt)}},[un,xn,Mt]);var Et=q(Mt,Kt,ke,Z),ct=Qe==null?void 0:Qe({start:un,end:xn,virtual:fe,offsetX:we,offsetY:nn,rtl:re,getSize:Et}),vt=Y(Mt,un,xn,Ke,we,Qt,de,dt),Nt=null;He&&(Nt=(0,se.Z)((0,ge.Z)({},K?"height":"maxHeight",He),Oe),k&&(Nt.overflowY="hidden",Ke&&(Nt.overflowX="hidden"),ye&&(Nt.pointerEvents="none")));var Gt={};return re&&(Gt.dir="rtl"),m.createElement("div",(0,p.Z)({ref:hn,style:(0,se.Z)((0,se.Z)({},me),{},{position:"relative"}),className:Se},Gt,rt),m.createElement(o.Z,{onResize:mt},m.createElement(Xe,{className:"".concat(B,"-holder"),style:Nt,ref:Rt,onScroll:Me,onMouseEnter:qe},m.createElement(L,{prefixCls:B,height:Jt,offsetX:we,offsetY:nn,scrollWidth:Ke,onInnerResize:Be,ref:Ut,innerProps:at,rtl:re,extra:ct},vt))),fe&&Jt>He&&m.createElement(Ye,{ref:Zt,prefixCls:B,scrollOffset:H,scrollRange:Jt,rtl:re,onScroll:ln,onStartMove:ht,onStopMove:st,spinSize:sn,containerSize:it.height,style:Ge==null?void 0:Ge.verticalScrollBar,thumbStyle:Ge==null?void 0:Ge.verticalScrollBarThumb,showScrollBar:Dt}),fe&&Ke>it.width&&m.createElement(Ye,{ref:Ht,prefixCls:B,scrollOffset:we,scrollRange:Ke,rtl:re,onScroll:ln,onStartMove:ht,onStopMove:st,spinSize:en,containerSize:it.width,horizontal:!0,style:Ge==null?void 0:Ge.horizontalScrollBar,thumbStyle:Ge==null?void 0:Ge.horizontalScrollBarThumb,showScrollBar:Dt}))}var En=m.forwardRef(jt);En.displayName="List";var Yt=En,cn=Yt},83145:function(In,Wt,w){"use strict";Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.CopyToClipboard=void 0;var p=se(w(59301)),he=se(w(25769));function se(M){return M&&M.__esModule?M:{default:M}}function ge(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ge=function(D){return typeof D}:ge=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},ge(M)}function O(M,F){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(M);F&&(S=S.filter(function(te){return Object.getOwnPropertyDescriptor(M,te).enumerable})),D.push.apply(D,S)}return D}function d(M){for(var F=1;F<arguments.length;F++){var D=arguments[F]!=null?arguments[F]:{};F%2?O(D,!0).forEach(function(S){Y(M,S,D[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(D)):O(D).forEach(function(S){Object.defineProperty(M,S,Object.getOwnPropertyDescriptor(D,S))})}return M}function ve(M,F){if(M==null)return{};var D=oe(M,F),S,te;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(M);for(te=0;te<X.length;te++)S=X[te],!(F.indexOf(S)>=0)&&Object.prototype.propertyIsEnumerable.call(M,S)&&(D[S]=M[S])}return D}function oe(M,F){if(M==null)return{};var D={},S=Object.keys(M),te,X;for(X=0;X<S.length;X++)te=S[X],!(F.indexOf(te)>=0)&&(D[te]=M[te]);return D}function o(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function b(M,F){for(var D=0;D<F.length;D++){var S=F[D];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(M,S.key,S)}}function T(M,F,D){return F&&b(M.prototype,F),D&&b(M,D),M}function m(M,F){return F&&(ge(F)==="object"||typeof F=="function")?F:x(M)}function y(M){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},y(M)}function x(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function L(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),F&&U(M,F)}function U(M,F){return U=Object.setPrototypeOf||function(S,te){return S.__proto__=te,S},U(M,F)}function Y(M,F,D){return F in M?Object.defineProperty(M,F,{value:D,enumerable:!0,configurable:!0,writable:!0}):M[F]=D,M}var ne=function(M){L(F,M);function F(){var D,S;o(this,F);for(var te=arguments.length,X=new Array(te),j=0;j<te;j++)X[j]=arguments[j];return S=m(this,(D=y(F)).call.apply(D,[this].concat(X))),Y(x(S),"onClick",function(q){var ue=S.props,pe=ue.text,We=ue.onCopy,G=ue.children,N=ue.options,W=p.default.Children.only(G),$=(0,he.default)(pe,N);We&&We(pe,$),W&&W.props&&typeof W.props.onClick=="function"&&W.props.onClick(q)}),S}return T(F,[{key:"render",value:function(){var S=this.props,te=S.text,X=S.onCopy,j=S.options,q=S.children,ue=ve(S,["text","onCopy","options","children"]),pe=p.default.Children.only(q);return p.default.cloneElement(pe,d({},ue,{onClick:this.onClick}))}}]),F}(p.default.PureComponent);Wt.CopyToClipboard=ne,Y(ne,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(In,Wt,w){"use strict";var p=w(83145),he=p.CopyToClipboard;he.CopyToClipboard=he,In.exports=he},76374:function(In,Wt,w){"use strict";var p=function(){if(typeof Map!="undefined")return Map;function G(N,W){var $=-1;return N.some(function(ie,Q){return ie[0]===W?($=Q,!0):!1}),$}return function(){function N(){this.__entries__=[]}return Object.defineProperty(N.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),N.prototype.get=function(W){var $=G(this.__entries__,W),ie=this.__entries__[$];return ie&&ie[1]},N.prototype.set=function(W,$){var ie=G(this.__entries__,W);~ie?this.__entries__[ie][1]=$:this.__entries__.push([W,$])},N.prototype.delete=function(W){var $=this.__entries__,ie=G($,W);~ie&&$.splice(ie,1)},N.prototype.has=function(W){return!!~G(this.__entries__,W)},N.prototype.clear=function(){this.__entries__.splice(0)},N.prototype.forEach=function(W,$){$===void 0&&($=null);for(var ie=0,Q=this.__entries__;ie<Q.length;ie++){var g=Q[ie];W.call($,g[1],g[0])}},N}()}(),he=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,se=function(){return typeof w.g!="undefined"&&w.g.Math===Math?w.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ge=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(se):function(G){return setTimeout(function(){return G(Date.now())},1e3/60)}}(),O=2;function d(G,N){var W=!1,$=!1,ie=0;function Q(){W&&(W=!1,G()),$&&v()}function g(){ge(Q)}function v(){var z=Date.now();if(W){if(z-ie<O)return;$=!0}else W=!0,$=!1,setTimeout(g,N);ie=z}return v}var ve=20,oe=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",b=function(){function G(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=d(this.refresh.bind(this),ve)}return G.prototype.addObserver=function(N){~this.observers_.indexOf(N)||this.observers_.push(N),this.connected_||this.connect_()},G.prototype.removeObserver=function(N){var W=this.observers_,$=W.indexOf(N);~$&&W.splice($,1),!W.length&&this.connected_&&this.disconnect_()},G.prototype.refresh=function(){var N=this.updateObservers_();N&&this.refresh()},G.prototype.updateObservers_=function(){var N=this.observers_.filter(function(W){return W.gatherActive(),W.hasActive()});return N.forEach(function(W){return W.broadcastActive()}),N.length>0},G.prototype.connect_=function(){!he||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)},G.prototype.disconnect_=function(){!he||!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)},G.prototype.onTransitionEnd_=function(N){var W=N.propertyName,$=W===void 0?"":W,ie=oe.some(function(Q){return!!~$.indexOf(Q)});ie&&this.refresh()},G.getInstance=function(){return this.instance_||(this.instance_=new G),this.instance_},G.instance_=null,G}(),T=function(G,N){for(var W=0,$=Object.keys(N);W<$.length;W++){var ie=$[W];Object.defineProperty(G,ie,{value:N[ie],enumerable:!1,writable:!1,configurable:!0})}return G},m=function(G){var N=G&&G.ownerDocument&&G.ownerDocument.defaultView;return N||se},y=te(0,0,0,0);function x(G){return parseFloat(G)||0}function L(G){for(var N=[],W=1;W<arguments.length;W++)N[W-1]=arguments[W];return N.reduce(function($,ie){var Q=G["border-"+ie+"-width"];return $+x(Q)},0)}function U(G){for(var N=["top","right","bottom","left"],W={},$=0,ie=N;$<ie.length;$++){var Q=ie[$],g=G["padding-"+Q];W[Q]=x(g)}return W}function Y(G){var N=G.getBBox();return te(0,0,N.width,N.height)}function ne(G){var N=G.clientWidth,W=G.clientHeight;if(!N&&!W)return y;var $=m(G).getComputedStyle(G),ie=U($),Q=ie.left+ie.right,g=ie.top+ie.bottom,v=x($.width),z=x($.height);if($.boxSizing==="border-box"&&(Math.round(v+Q)!==N&&(v-=L($,"left","right")+Q),Math.round(z+g)!==W&&(z-=L($,"top","bottom")+g)),!F(G)){var ce=Math.round(v+Q)-N,je=Math.round(z+g)-W;Math.abs(ce)!==1&&(v-=ce),Math.abs(je)!==1&&(z-=je)}return te(ie.left,ie.top,v,z)}var M=function(){return typeof SVGGraphicsElement!="undefined"?function(G){return G instanceof m(G).SVGGraphicsElement}:function(G){return G instanceof m(G).SVGElement&&typeof G.getBBox=="function"}}();function F(G){return G===m(G).document.documentElement}function D(G){return he?M(G)?Y(G):ne(G):y}function S(G){var N=G.x,W=G.y,$=G.width,ie=G.height,Q=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(Q.prototype);return T(g,{x:N,y:W,width:$,height:ie,top:W,right:N+$,bottom:ie+W,left:N}),g}function te(G,N,W,$){return{x:G,y:N,width:W,height:$}}var X=function(){function G(N){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=te(0,0,0,0),this.target=N}return G.prototype.isActive=function(){var N=D(this.target);return this.contentRect_=N,N.width!==this.broadcastWidth||N.height!==this.broadcastHeight},G.prototype.broadcastRect=function(){var N=this.contentRect_;return this.broadcastWidth=N.width,this.broadcastHeight=N.height,N},G}(),j=function(){function G(N,W){var $=S(W);T(this,{target:N,contentRect:$})}return G}(),q=function(){function G(N,W,$){if(this.activeObservations_=[],this.observations_=new p,typeof N!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=N,this.controller_=W,this.callbackCtx_=$}return G.prototype.observe=function(N){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(N instanceof m(N).Element))throw new TypeError('parameter 1 is not of type "Element".');var W=this.observations_;W.has(N)||(W.set(N,new X(N)),this.controller_.addObserver(this),this.controller_.refresh())}},G.prototype.unobserve=function(N){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(N instanceof m(N).Element))throw new TypeError('parameter 1 is not of type "Element".');var W=this.observations_;W.has(N)&&(W.delete(N),W.size||this.controller_.removeObserver(this))}},G.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},G.prototype.gatherActive=function(){var N=this;this.clearActive(),this.observations_.forEach(function(W){W.isActive()&&N.activeObservations_.push(W)})},G.prototype.broadcastActive=function(){if(this.hasActive()){var N=this.callbackCtx_,W=this.activeObservations_.map(function($){return new j($.target,$.broadcastRect())});this.callback_.call(N,W,N),this.clearActive()}},G.prototype.clearActive=function(){this.activeObservations_.splice(0)},G.prototype.hasActive=function(){return this.activeObservations_.length>0},G}(),ue=typeof WeakMap!="undefined"?new WeakMap:new p,pe=function(){function G(N){if(!(this instanceof G))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var W=b.getInstance(),$=new q(N,W,this);ue.set(this,$)}return G}();["observe","unobserve","disconnect"].forEach(function(G){pe.prototype[G]=function(){var N;return(N=ue.get(this))[G].apply(N,arguments)}});var We=function(){return typeof se.ResizeObserver!="undefined"?se.ResizeObserver:pe}();Wt.Z=We},38710:function(In){var Wt=function(w){return w.replace(/[A-Z]/g,function(p){return"-"+p.toLowerCase()}).toLowerCase()};In.exports=Wt},98040:function(In){In.exports=function(){var Wt=document.getSelection();if(!Wt.rangeCount)return function(){};for(var w=document.activeElement,p=[],he=0;he<Wt.rangeCount;he++)p.push(Wt.getRangeAt(he));switch(w.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":w.blur();break;default:w=null;break}return Wt.removeAllRanges(),function(){Wt.type==="Caret"&&Wt.removeAllRanges(),Wt.rangeCount||p.forEach(function(se){Wt.addRange(se)}),w&&w.focus()}}},93314:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGT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zPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79710:function(In,Wt,w){"use strict";w.d(Wt,{ZP:function(){return fs}});const p=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},he=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=se},se=Number.MAX_SAFE_INTEGER||9007199254740991;let ge=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}({}),O=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),d=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var ve={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},oe={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class b{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=r,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new o(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function T(a,e,t){return(e=U(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(){return m=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},m.apply(null,arguments)}function y(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 x(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?y(Object(t),!0).forEach(function(n){T(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function L(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function U(a){var e=L(a,"string");return typeof e=="symbol"?e:e+""}class Y{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=ne,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const ne=function(){},M={trace:ne,debug:ne,log:ne,warn:ne,info:ne,error:ne};function F(){return m({},M)}function D(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):ne}function S(a,e,t){return e[a]?e[a].bind(e):D(a,t)}const te=F();function X(a,e,t){const n=F();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=S(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.2`)}catch(i){return F()}r.forEach(i=>{te[i]=S(i,a)})}else m(te,n);return n}const j=te;function q(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ue(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function pe(a,e){const t=Object.keys(a),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(s=>n.indexOf(s)===-1)}function We(a,e=!1){if(typeof TextDecoder!="undefined"){const u=new TextDecoder("utf-8").decode(a);if(e){const f=u.indexOf("\0");return f!==-1?u.substring(0,f):u}return u.replace(/\0/g,"")}const t=a.length;let n,r,i,s="",l=0;for(;l<t;){if(n=a[l++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=a[l++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=a[l++],i=a[l++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return s}const G={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}};function N(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var W={exports:{}},$;function ie(){return $||($=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(c,u,f){if(f=f||{},c=c.trim(),u=u.trim(),!u){if(!f.alwaysNormalize)return c;var h=l.parseURL(c);if(!h)throw new Error("Error trying to parse base URL.");return h.path=l.normalizePath(h.path),l.buildURLFromParts(h)}var A=l.parseURL(u);if(!A)throw new Error("Error trying to parse relative URL.");if(A.scheme)return f.alwaysNormalize?(A.path=l.normalizePath(A.path),l.buildURLFromParts(A)):u;var C=l.parseURL(c);if(!C)throw new Error("Error trying to parse base URL.");if(!C.netLoc&&C.path&&C.path[0]!=="/"){var R=r.exec(C.path);C.netLoc=R[1],C.path=R[2]}C.netLoc&&!C.path&&(C.path="/");var J={scheme:C.scheme,netLoc:A.netLoc,path:null,params:A.params,query:A.query,fragment:A.fragment};if(!A.netLoc&&(J.netLoc=C.netLoc,A.path[0]!=="/"))if(!A.path)J.path=C.path,A.params||(J.params=C.params,A.query||(J.query=C.query));else{var V=C.path,Ae=V.substring(0,V.lastIndexOf("/")+1)+A.path;J.path=l.normalizePath(Ae)}return J.path===null&&(J.path=f.alwaysNormalize?l.normalizePath(A.path):A.path),l.buildURLFromParts(J)},parseURL:function(c){var u=n.exec(c);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(c){for(c=c.split("").reverse().join("").replace(i,"");c.length!==(c=c.replace(s,"")).length;);return c.split("").reverse().join("")},buildURLFromParts:function(c){return c.scheme+c.netLoc+c.path+c.params+c.query+c.fragment}};a.exports=l})()}(W)),W.exports}var Q=ie();class g{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 v={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class z{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,bt(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[v.AUDIO]:null,[v.VIDEO]:null,[v.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new g),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Q.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[v.AUDIO]=null,e[v.VIDEO]=null,e[v.AUDIOVIDEO]=null}}function ce(a){return a.sn!=="initSegment"}class je extends z{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(p(e)&&p(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=p(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!p(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return ce(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,s=!1){const{elementaryStreams:l}=this,c=l[e];if(!c){l[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}c.startPTS=Math.min(c.startPTS,t),c.endPTS=Math.max(c.endPTS,n),c.startDTS=Math.min(c.startDTS,r),c.endDTS=Math.max(c.endDTS,i)}}class Ye extends z{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function It(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||It(t,e)}}function bt(a,e){const t=It(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const $t=Math.pow(2,32)-1,Bt=[].push,Oe={video:1,audio:2,id3:3,text:4};function jt(a){return String.fromCharCode.apply(null,a)}function En(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function Yt(a,e){const t=pt(a,e);return t<0?4294967296+t:t}function cn(a,e){let t=Yt(a,e);return t*=Math.pow(2,32),t+=Yt(a,e+4),t}function pt(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Pe(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 be(a){const e=a.byteLength;for(let t=0;t<e;){const n=Yt(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 B(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=Yt(a,r),s=jt(a.subarray(r+4,r+8)),l=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,l));else{const c=B(a.subarray(r+8,l),e.slice(1));c.length&&Bt.apply(t,c)}r=l}return t}function Ce(a){const e=[],t=a[0];let n=8;const r=Yt(a,n);n+=4;let i=0,s=0;t===0?(i=Yt(a,n),s=Yt(a,n+4),n+=8):(i=cn(a,n),s=cn(a,n+8),n+=16),n+=2;let l=a.length+s;const c=En(a,n);n+=2;for(let u=0;u<c;u++){let f=n;const h=Yt(a,f);f+=4;const A=h&2147483647;if((h&2147483648)>>>31===1)return j.warn("SIDX has hierarchical references (not supported)"),null;const R=Yt(a,f);f+=4,e.push({referenceSize:A,subsegmentDuration:R,info:{duration:R/r,start:l,end:l+A-1}}),l+=A,f+=4,n=f}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:c,references:e}}function He(a){const e=[],t=B(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=B(i,["tkhd"])[0];if(s){let l=s[0];const c=Yt(s,l===0?12:20),u=B(i,["mdia","mdhd"])[0];if(u){l=u[0];const f=Yt(u,l===0?12:20),h=B(i,["mdia","hdlr"])[0];if(h){const A=jt(h.subarray(8,12)),C={soun:v.AUDIO,vide:v.VIDEO}[A],R=B(i,["mdia","minf","stbl","stsd"])[0],J=Z(R);C?(e[c]={timescale:f,type:C,stsd:J},e[C]=x({timescale:f,id:c},J)):e[c]={timescale:f,type:A,stsd:J}}}}}return B(a,["moov","mvex","trex"]).forEach(r=>{const i=Yt(r,4),s=e[i];s&&(s.default={duration:Yt(r,12),flags:Yt(r,20)})}),e}function Z(a){const e=a.subarray(8),t=e.subarray(86),n=jt(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const u=B(e,[n])[0].subarray(n==="enca"?28:78);B(u,["sinf"]).forEach(h=>{const A=B(h,["schm"])[0];if(A){const C=jt(A.subarray(4,8));if(C==="cbcs"||C==="cenc"){const R=B(h,["frma"])[0];R&&(r=jt(R))}}})}const l=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const c=B(t,["avcC"])[0];c&&c.length>3&&(r+="."+me(c[1])+me(c[2])+me(c[3]),i=P(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const c=B(e,[n])[0],u=B(c.subarray(28),["esds"])[0];if(u&&u.length>7){let f=4;if(u[f++]!==3)break;f=K(u,f),f+=2;const h=u[f++];if(h&128&&(f+=2),h&64&&(f+=u[f++]),u[f++]!==4)break;f=K(u,f);const A=u[f++];if(A===64)r+="."+me(A);else break;if(f+=12,u[f++]!==5)break;f=K(u,f);const C=u[f++];let R=(C&248)>>3;R===31&&(R+=1+((C&7)<<3)+((u[f]&224)>>5)),r+="."+R}break}case"hvc1":case"hev1":{const c=B(t,["hvcC"])[0];if(c&&c.length>12){const u=c[1],f=["","A","B","C"][u>>6],h=u&31,A=Yt(c,2),C=(u&32)>>5?"H":"L",R=c[12],J=c.subarray(6,12);r+="."+f+h,r+="."+A.toString(16).toUpperCase(),r+="."+C+R;let V="";for(let Ae=J.length;Ae--;){const Ve=J[Ae];(Ve||V)&&(V="."+Ve.toString(16).toUpperCase()+V)}r+=V}i=P(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=P(r,t)||r;break}case"vp09":{const c=B(t,["vpcC"])[0];if(c&&c.length>6){const u=c[4],f=c[5],h=c[6]>>4&15;r+="."+I(u)+"."+I(f)+"."+I(h)}break}case"av01":{const c=B(t,["av1C"])[0];if(c&&c.length>2){const u=c[1]>>>5,f=c[1]&31,h=c[2]>>>7?"H":"M",A=(c[2]&64)>>6,C=(c[2]&32)>>5,R=u===2&&A?C?12:10:A?10:8,J=(c[2]&16)>>4,V=(c[2]&8)>>3,Ae=(c[2]&4)>>2,Ve=c[2]&3;r+="."+u+"."+I(f)+h+"."+I(R)+"."+J+"."+V+Ae+Ve+"."+I(1)+"."+I(1)+"."+I(1)+"."+0,i=P("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function P(a,e){const t=B(e,["dvvC"]),n=t.length?t[0]:B(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+I(r)+"."+I(i)}}function K(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function me(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function I(a){return(a<10?"0":"")+a}function de(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&B(a,["moov","trak"]).forEach(r=>{const s=B(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let l=B(s,["enca"]);const c=l.length>0;c||(l=B(s,["encv"])),l.forEach(u=>{const f=c?u.subarray(28):u.subarray(78);B(f,["sinf"]).forEach(A=>{const C=ee(A);if(C){const R=C.subarray(8,24);R.some(J=>J!==0)||(j.log(`[eme] Patching keyId in 'enc${c?"a":"v"}>sinf>>tenc' box: ${G.hexDump(R)} -> ${G.hexDump(t)}`),C.set(t,8))}})})}),a}function ee(a){const e=B(a,["schm"])[0];if(e){const t=jt(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return B(a,["schi","tenc"])[0]}return null}function De(a,e){return B(e,["moof","traf"]).reduce((t,n)=>{const r=B(n,["tfdt"])[0],i=r[0],s=B(n,["tfhd"]).reduce((l,c)=>{const u=Yt(c,4),f=a[u];if(f){let h=Yt(r,4);if(i===1){if(h===$t)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),l;h*=$t+1,h+=Yt(r,8)}const A=f.timescale||9e4,C=h/A;if(p(C)&&(l===null||C<l))return C}return l},null);return s!==null&&p(s)&&(t===null||s<t)?s:t},null)}function Te(a,e){let t=0,n=0,r=0;const i=B(a,["moof","traf"]);for(let s=0;s<i.length;s++){const l=i[s],c=B(l,["tfhd"])[0],u=Yt(c,4),f=e[u];if(!f)continue;const h=f.default,A=Yt(c,0)|(h==null?void 0:h.flags);let C=h==null?void 0:h.duration;A&8&&(A&2?C=Yt(c,12):C=Yt(c,8));const R=f.timescale||9e4,J=B(l,["trun"]);for(let V=0;V<J.length;V++){if(t=Ke(J[V]),!t&&C){const Ae=Yt(J[V],4);t=C*Ae}f.type===v.VIDEO?n+=t/R:f.type===v.AUDIO&&(r+=t/R)}}if(n===0&&r===0){let s=1/0,l=0,c=0;const u=B(a,["sidx"]);for(let f=0;f<u.length;f++){const h=Ce(u[f]);if(h!=null&&h.references){s=Math.min(s,h.earliestPresentationTime/h.timescale);const A=h.references.reduce((C,R)=>C+R.info.duration||0,0);l=Math.max(l,A+h.earliestPresentationTime/h.timescale),c=l-s}}if(c&&p(c))return c}return n||r}function Ke(a){const e=Yt(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=Yt(a,4);for(let i=0;i<r;i++){if(e&256){const s=Yt(a,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function ze(a,e,t){B(e,["moof","traf"]).forEach(n=>{B(n,["tfhd"]).forEach(r=>{const i=Yt(r,4),s=a[i];if(!s)return;const l=s.timescale||9e4;B(n,["tfdt"]).forEach(c=>{const u=c[0],f=t*l;if(f){let h=Yt(c,4);if(u===0)h-=f,h=Math.max(h,0),Pe(c,4,h);else{h*=Math.pow(2,32),h+=Yt(c,8),h-=f,h=Math.max(h,0);const A=Math.floor(h/($t+1)),C=Math.floor(h%($t+1));Pe(c,4,A),Pe(c,8,C)}}})})})}function Xe(a){const e={valid:null,remainder:null},t=B(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=a.slice(0,n.byteOffset-8),e.remainder=a.slice(n.byteOffset-8),e}function ot(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function _e(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return B(n,["moof"]).map(c=>{const u=c.byteOffset-8;B(c,["traf"]).map(h=>{const A=B(h,["tfdt"]).map(C=>{const R=C[0];let J=Yt(C,4);return R===1&&(J*=Math.pow(2,32),J+=Yt(C,8)),J/r})[0];return A!==void 0&&(a=A),B(h,["tfhd"]).map(C=>{const R=Yt(C,4),J=Yt(C,0)&16777215,V=(J&1)!==0,Ae=(J&2)!==0,Ve=(J&8)!==0;let Ue=0;const xt=(J&16)!==0;let wt=0;const rn=(J&32)!==0;let At=8;R===i&&(V&&(At+=8),Ae&&(At+=4),Ve&&(Ue=Yt(C,At),At+=4),xt&&(wt=Yt(C,At),At+=4),rn&&(At+=4),e.type==="video"&&(s=Re(e.codec)),B(h,["trun"]).map(qt=>{const dn=qt[0],Ft=Yt(qt,0)&16777215,Nn=(Ft&1)!==0;let Yn=0;const Ir=(Ft&4)!==0,gr=(Ft&256)!==0;let hr=0;const lr=(Ft&512)!==0;let pr=0;const cr=(Ft&1024)!==0,Mn=(Ft&2048)!==0;let Wn=0;const xr=Yt(qt,4);let yr=8;Nn&&(Yn=Yt(qt,yr),yr+=4),Ir&&(yr+=4);let Rr=Yn+u;for(let Or=0;Or<xr;Or++){if(gr?(hr=Yt(qt,yr),yr+=4):hr=Ue,lr?(pr=Yt(qt,yr),yr+=4):pr=wt,cr&&(yr+=4),Mn&&(dn===0?Wn=Yt(qt,yr):Wn=pt(qt,yr),yr+=4),e.type===v.VIDEO){let Kr=0;for(;Kr<pr;){const Jr=Yt(n,Rr);if(Rr+=4,at(s,n[Rr])){const hi=n.subarray(Rr,Rr+Jr);Qe(hi,s?2:1,a+Wn/r,t)}Rr+=Jr,Kr+=Jr+4}}a+=hr/r}}))})})}),t}function Re(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function at(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Qe(a,e,t,n){const r=Ge(a);let i=0;i+=e;let s=0,l=0,c=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;c=r[i++],s+=c}while(c===255);l=0;do{if(i>=r.length)break;c=r[i++],l+=c}while(c===255);const u=r.length-i;let f=i;if(l<u)i+=l;else if(l>u){j.error(`Malformed SEI payload. ${l} is too small, only ${u} bytes left to parse.`);break}if(s===4){if(r[f++]===181){const A=En(r,f);if(f+=2,A===49){const C=Yt(r,f);if(f+=4,C===1195456820){const R=r[f++];if(R===3){const J=r[f++],V=31&J,Ae=64&J,Ve=Ae?2+V*3:0,Ue=new Uint8Array(Ve);if(Ae){Ue[0]=J;for(let xt=1;xt<Ve;xt++)Ue[xt]=r[f++]}n.push({type:R,payloadType:s,pts:t,bytes:Ue})}}}}}else if(s===5&&l>16){const h=[];for(let R=0;R<16;R++){const J=r[f++].toString(16);h.push(J.length==1?"0"+J:J),(R===3||R===5||R===7||R===9)&&h.push("-")}const A=l-16,C=new Uint8Array(A);for(let R=0;R<A;R++)C[R]=r[f++];n.push({payloadType:s,pts:t,uuid:h.join(""),userData:We(C),userDataBytes:C})}}}function Ge(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 _t(a){const e=a[0];let t="",n="",r=0,i=0,s=0,l=0,c=0,u=0;if(e===0){for(;jt(a.subarray(u,u+1))!=="\0";)t+=jt(a.subarray(u,u+1)),u+=1;for(t+=jt(a.subarray(u,u+1)),u+=1;jt(a.subarray(u,u+1))!=="\0";)n+=jt(a.subarray(u,u+1)),u+=1;n+=jt(a.subarray(u,u+1)),u+=1,r=Yt(a,12),i=Yt(a,16),l=Yt(a,20),c=Yt(a,24),u=28}else if(e===1){u+=4,r=Yt(a,u),u+=4;const h=Yt(a,u);u+=4;const A=Yt(a,u);for(u+=4,s=hl(2,32)*h+A,he(s)||(s=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=Yt(a,u),u+=4,c=Yt(a,u),u+=4;jt(a.subarray(u,u+1))!=="\0";)t+=jt(a.subarray(u,u+1)),u+=1;for(t+=jt(a.subarray(u,u+1)),u+=1;jt(a.subarray(u,u+1))!=="\0";)n+=jt(a.subarray(u,u+1)),u+=1;n+=jt(a.subarray(u,u+1)),u+=1}const f=a.subarray(u,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:l,id:c,payload:f}}function Dt(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 rt(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),Dt([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}function Kt(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=fn(r);e.push(i),n+=i.size}}return e}function fn(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,l=G.hexDump(new Uint8Array(s,t+12,16)),c=a.getUint32(28);let u=null,f=null;if(i===0){if(e-32<c||c<22)return{offset:t,size:e};f=new Uint8Array(s,t+32,c)}else if(i===1){if(!c||n<t+32+c*16+16)return{offset:t,size:e};u=[];for(let h=0;h<c;h++)u.push(new Uint8Array(s,t+32+h*16,16))}return{version:i,systemId:l,kids:u,data:f,offset:t,size:e}}const Tt=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Qt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Be(a,e){const t=Qt[e];return!!t&&!!t[a.slice(0,4)]}function ke(a,e,t=!0){return!a.split(",").some(n=>!Ne(n,e,t))}function Ne(a,e,t=!0){var n;const r=q(t);return(n=r==null?void 0:r.isTypeSupported(k(a,e)))!=null?n:!1}function k(a,e){return`${e}/mp4;codecs=${a}`}function ae(a){if(a){const e=a.substring(0,4);return Qt.video[e]}return 2}function fe(a){const e=Tt();return a.split(",").reduce((t,n)=>{const i=e&&Re(n)?9:Qt.video[n];return i?(i*2+t)/(t?3:2):(Qt.audio[n]+t)/(t?2:1)},0)}const re={};function Se(a,e=!0){if(re[a])return re[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let r=0;r<t.length;r++){var n;if(Ne(t[r],"audio",e))return re[a]=t[r],t[r];if(t[r]==="mp3"&&(n=q(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Mt=/flac|opus|mp4a\.40\.34/i;function Rt(a,e=!0){return a.replace(Mt,t=>Se(t.toLowerCase(),e))}function Ut(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)Be(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function hn(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let n=t.length;n--;)if(t[n].substring(0,4)===a.substring(0,4))return t[n]}return t[0]}}return e||a}function Le(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}function _(a){if(a.startsWith("av01.")){const e=a.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return a}function H(a){const e=q(a)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function E(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Ie={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Ee(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}const we={};function Ze(a,e,t,n,r,i){const s=a.audioCodec?a.audioGroups:null,l=i==null?void 0:i.audioCodec,c=i==null?void 0:i.channels,u=c?parseInt(c):l?1/0:2;let f=null;if(s!=null&&s.length)try{s.length===1&&s[0]?f=e.groups[s[0]].channels:f=s.reduce((h,A)=>{if(A){const C=e.groups[A];if(!C)throw new Error(`Audio track group ${A} not found`);Object.keys(C.channels).forEach(R=>{h[R]=(h[R]||0)+C.channels[R]})}return h},{2:0})}catch(h){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))||!!f&&p(u)&&Object.keys(f).some(h=>parseInt(h)>u)}function ut(a,e,t){const n=a.videoCodec,r=a.audioCodec;if(!n&&!r||!t)return Promise.resolve(Ie);const i=[];if(n){const s={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},l=a.videoRange;l!=="SDR"&&(s.transferFunction=l.toLowerCase());const c=n.split(","),u=navigator.userAgent;if(c.some(f=>Re(f))&&Tt())return Promise.resolve(Ee(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${u})`),i));i.push.apply(i,c.map(f=>({type:"media-source",video:x(x({},s),{},{contentType:k(_(f),"video")})})))}return r&&a.audioGroups&&a.audioGroups.forEach(s=>{var l;s&&((l=e.groups[s])==null||l.tracks.forEach(c=>{if(c.groupId===s){const u=c.channels||"",f=parseFloat(u);p(f)&&f>2&&i.push.apply(i,r.split(",").map(h=>({type:"media-source",audio:{contentType:k(h,"audio"),channels:""+f}})))}}))}),Promise.all(i.map(s=>{const l=kt(s);return we[l]||(we[l]=t.decodingInfo(s))})).then(s=>({supported:!s.some(l=>!l.supported),configurations:i,decodingInfoResults:s})).catch(s=>({supported:!1,configurations:i,decodingInfoResults:[],error:s}))}function kt(a){const{audio:e,video:t}=a,n=t||e;if(n){const r=E(n.contentType);if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}const ye=["NONE","TYPE-0","TYPE-1",null];function le(a){return ye.indexOf(a)>-1}const ht=["SDR","PQ","HLG"];function st(a){return!!a&&ht.indexOf(a)>-1}var dt={No:"",Yes:"YES",v2:"v2"};function Je(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?dt.v2:dt.Yes:dt.No}class gt{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 Lt{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return Ot(this._audioGroups,e)}hasSubtitleGroup(e){return Ot(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 Ot(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function lt(){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 tt(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||ht.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&<(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const Ct=a=>{const e=new WeakSet;return(t,n)=>{if(a&&(n=a(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},Jt=(a,e)=>JSON.stringify(a,Ct(e));function un(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,l=n==null?void 0:n.audioCodec,c=r==null?void 0:r.videoCodec,u=s&&parseInt(s)===2;let f=!1,h=!1,A=1/0,C=1/0,R=1/0,J=1/0,V=0,Ae=[];const{preferHDR:Ve,allowedVideoRanges:Ue}=tt(e,r);for(let qt=i.length;qt--;){const dn=a[i[qt]];f||(f=dn.channels[2]>0),A=Math.min(A,dn.minHeight),C=Math.min(C,dn.minFramerate),R=Math.min(R,dn.minBitrate),Ue.filter(Nn=>dn.videoRanges[Nn]>0).length>0&&(h=!0)}A=p(A)?A:0,C=p(C)?C:0;const xt=Math.max(1080,A),wt=Math.max(30,C);R=p(R)?R:t,t=Math.max(R,t),h||(e=void 0);const rn=i.length>1;return{codecSet:i.reduce((qt,dn)=>{const Ft=a[dn];if(dn===qt)return qt;if(Ae=h?Ue.filter(Nn=>Ft.videoRanges[Nn]>0):[],rn){if(Ft.minBitrate>t)return xn(dn,`min bitrate of ${Ft.minBitrate} > current estimate of ${t}`),qt;if(!Ft.hasDefaultAudio)return xn(dn,"no renditions with default or auto-select sound found"),qt;if(l&&dn.indexOf(l.substring(0,4))%5!==0)return xn(dn,`audio codec preference "${l}" not found`),qt;if(s&&!u){if(!Ft.channels[s])return xn(dn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Ft.channels)})`),qt}else if((!l||u)&&f&&Ft.channels[2]===0)return xn(dn,"no renditions with stereo sound found"),qt;if(Ft.minHeight>xt)return xn(dn,`min resolution of ${Ft.minHeight} > maximum of ${xt}`),qt;if(Ft.minFramerate>wt)return xn(dn,`min framerate of ${Ft.minFramerate} > maximum of ${wt}`),qt;if(!Ae.some(Nn=>Ft.videoRanges[Nn]>0))return xn(dn,`no variants with VIDEO-RANGE of ${Jt(Ae)} found`),qt;if(c&&dn.indexOf(c.substring(0,4))%5!==0)return xn(dn,`video codec preference "${c}" not found`),qt;if(Ft.maxScore<V)return xn(dn,`max score of ${Ft.maxScore} < selected max of ${V}`),qt}return qt&&(fe(dn)>=fe(qt)||Ft.fragmentError>a[qt].fragmentError)?qt:(J=Ft.minIndex,V=Ft.maxScore,dn)},void 0),videoRanges:Ae,preferHDR:Ve,minFramerate:C,minBitrate:R,minIndex:J}}function xn(a,e){j.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function nn(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 tn(a,e,t,n){return a.slice(t,n+1).reduce((r,i,s)=>{if(!i.codecSet)return r;const l=i.audioGroups;let c=r[i.codecSet];c||(r[i.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,i.bitrate);const u=Math.min(i.height,i.width);return c.minHeight=Math.min(c.minHeight,u),c.minFramerate=Math.min(c.minFramerate,i.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,i.score),c.fragmentError+=i.fragmentError,c.videoRanges[i.videoRange]=(c.videoRanges[i.videoRange]||0)+1,l&&l.forEach(f=>{if(!f)return;const h=e.groups[f];h&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?h.hasDefault:h.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(h.channels).forEach(A=>{c.channels[A]=(c.channels[A]||0)+h.channels[A]}))}),r},{})}function Fe(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function it(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(St(a,r,t))return n}return-1}function St(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:l}=a,c=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||mt(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(c===void 0||e.forced===c)&&(!("characteristics"in a)||Zt(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function mt(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function Zt(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function Ht(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 en(a,e,t,n,r){const i=e[n],l=e.reduce((A,C,R)=>{const J=C.uri;return(A[J]||(A[J]=[])).push(R),A},{})[i.uri];l.length>1&&(n=Math.max.apply(Math,l));const c=i.videoRange,u=i.frameRate,f=i.codecSet.substring(0,4),h=sn(e,n,A=>{if(A.videoRange!==c||A.frameRate!==u||A.codecSet.substring(0,4)!==f)return!1;const C=A.audioGroups,R=t.filter(J=>!C||C.indexOf(J.groupId)!==-1);return it(a,R,r)>-1});return h>-1?h:sn(e,n,A=>{const C=A.audioGroups,R=t.filter(J=>!C||C.indexOf(J.groupId)!==-1);return it(a,R,r)>-1})}function sn(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}function vn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class _n extends Y{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:i,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!r||!c)return;const u=performance.now(),f=i?i.stats:r.stats,h=i?i.duration:r.duration,A=u-f.loading.start,C=s.minAutoLevel,R=r.level,J=this._nextAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||R<=C){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const V=J>-1&&J!==R,Ae=!!t||V;if(!Ae&&(c.paused||!c.playbackRate||!c.readyState))return;const Ve=s.mainForwardBufferInfo;if(!Ae&&Ve===null)return;const Ue=this.bwEstimator.getEstimateTTFB(),xt=Math.abs(c.playbackRate);if(A<=Math.max(Ue,1e3*(h/(xt*2))))return;const wt=Ve?Ve.len/xt:0,rn=f.loading.first?f.loading.first-f.loading.start:-1,At=f.loaded&&rn>-1,qt=this.getBwEstimate(),dn=s.levels,Ft=dn[R],Nn=Math.max(f.loaded,Math.round(h*(r.bitrate||Ft.averageBitrate)/8));let Yn=At?A-rn:A;Yn<1&&At&&(Yn=Math.min(A,f.loaded*8/qt));const Ir=At?f.loaded*1e3/Yn:0,gr=Ue/1e3,hr=Ir?(Nn-f.loaded)/Ir:Nn*8/qt+gr;if(hr<=wt)return;const lr=Ir?Ir*8:qt,pr=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,cr=this.hls.config.abrBandWidthUpFactor;let Mn=Number.POSITIVE_INFINITY,Wn;for(Wn=R-1;Wn>C;Wn--){const Or=dn[Wn].maxBitrate,Kr=!dn[Wn].details||pr;if(Mn=this.getTimeToLoadFrag(gr,lr,h*Or,Kr),Mn<Math.min(wt,h+gr))break}if(Mn>=hr||Mn>h*10)return;At?this.bwEstimator.sample(A-Math.min(Ue,rn),f.loaded):this.bwEstimator.sampleTTFB(A);const xr=dn[Wn].maxBitrate;this.getBwEstimate()*cr>xr&&this.resetEstimator(xr);const yr=this.findBestLevel(xr,C,Wn,0,wt,1,1);yr>-1&&(Wn=yr),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${R} is loading too slowly;
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
Time to underbuffer: ${wt.toFixed(3)} s
|
|
Estimated load time for current fragment: ${hr.toFixed(3)} s
|
|
Estimated load time for down switch fragment: ${Mn.toFixed(3)} s
|
|
TTFB estimate: ${rn|0} ms
|
|
Current BW estimate: ${p(qt)?qt|0:"Unknown"} bps
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
Switching to level ${Wn} @ ${xr|0} bps`),s.nextLoadLevel=s.nextAutoLevel=Wn,this.clearTimer();const Rr=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===Wn&&Wn>0){const Or=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Wn>0?"and switching down":""}
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
Time to underbuffer: ${Or.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,Wn>C){let Kr=this.findBestLevel(this.hls.levels[C].bitrate,C,Wn,0,Or,1,1);Kr===-1&&(Kr=C),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Kr,this.resetEstimator(this.hls.levels[Kr].bitrate)}}};V||hr>Mn*2?Rr():this.timer=self.setInterval(Rr,Mn*1e3),s.trigger(d.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:f})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new b(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(d.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 O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case O.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(),l=i?i.stats:n.stats,c=s-l.loading.start,u=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&u>-1){const h=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(h,u),l.loaded)}else this.bwEstimator.sampleTTFB(c)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;p(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===oe.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],l=(s.loaded?s.loaded.bytes:0)+r.loaded,c=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:l,duration:c},s.realBitrate=Math.round(8*l/c)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(d.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!==oe.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,l=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,l=t?t.duration:e?e.duration:0,c=this.getBwEstimate(),u=this.getStarvationDelay();let f=i.abrBandWidthFactor,h=i.abrBandWidthUpFactor;if(u){const V=this.findBestLevel(c,s,r,u,0,f,h);if(V>=0)return this.rebufferNotice=-1,V}let A=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){const V=this.bitrateTestDelay;V&&(A=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-V,this.info(`bitrate test took ${Math.round(1e3*V)}ms, set first fragment max fetchDuration to ${Math.round(1e3*A)} ms`),f=h=1)}const C=this.findBestLevel(c,s,r,u,A,f,h);if(this.rebufferNotice!==C&&(this.rebufferNotice=C,this.info(`${u?"rebuffering expected":"buffer is empty"}, optimal quality level ${C}`)),C>-1)return C;const R=n.levels[s],J=n.loadLevelObj;return J&&(R==null?void 0:R.bitrate)<J.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,l){var c;const u=r+i,f=this.lastLoadedFragLevel,h=f===-1?this.hls.firstLevel:f,{fragCurrent:A,partCurrent:C}=this,{levels:R,allAudioTracks:J,loadLevel:V,config:Ae}=this.hls;if(R.length===1)return 0;const Ve=R[h],Ue=!!((c=this.hls.latestLevelDetails)!=null&&c.live),xt=V===-1||f===-1;let wt,rn="SDR",At=(Ve==null?void 0:Ve.frameRate)||0;const{audioPreference:qt,videoPreference:dn}=Ae,Ft=this.audioTracksByGroup||(this.audioTracksByGroup=nn(J));let Nn=-1;if(xt){if(this.firstSelection!==-1)return this.firstSelection;const lr=this.codecTiers||(this.codecTiers=tn(R,Ft,t,n)),pr=un(lr,rn,e,qt,dn),{codecSet:cr,videoRanges:Mn,minFramerate:Wn,minBitrate:xr,minIndex:yr,preferHDR:Rr}=pr;Nn=yr,wt=cr,rn=Rr?Mn[Mn.length-1]:Mn[0],At=Wn,e=Math.max(e,xr),this.log(`picked start tier ${Jt(pr)}`)}else wt=Ve==null?void 0:Ve.codecSet,rn=Ve==null?void 0:Ve.videoRange;const Yn=C?C.duration:A?A.duration:0,Ir=this.bwEstimator.getEstimateTTFB()/1e3,gr=[];for(let lr=n;lr>=t;lr--){var hr;const pr=R[lr],cr=lr>h;if(!pr)continue;if(Ae.useMediaCapabilities&&!pr.supportedResult&&!pr.supportedPromise){const Kr=navigator.mediaCapabilities;typeof(Kr==null?void 0:Kr.decodingInfo)=="function"&&(Ze(pr,Ft,rn,At,e,qt)||Re(pr.videoCodec))?(pr.supportedPromise=ut(pr,Ft,Kr),pr.supportedPromise.then(Jr=>{if(!this.hls)return;pr.supportedResult=Jr;const hi=this.hls.levels,yi=hi.indexOf(pr);Jr.error?this.warn(`MediaCapabilities decodingInfo error: "${Jr.error}" for level ${yi} ${Jt(Jr)}`):Jr.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${yi} ${Jt(Jr)}`),yi>-1&&hi.length>1&&(this.log(`Removing unsupported level ${yi}`),this.hls.removeLevel(yi),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):pr.supportedResult=Ie}if((wt&&pr.codecSet!==wt||rn&&pr.videoRange!==rn||cr&&At>pr.frameRate||!cr&&At>0&&At<pr.frameRate||pr.supportedResult&&!((hr=pr.supportedResult.decodingInfoResults)!=null&&hr[0].smooth))&&(!xt||lr!==Nn)){gr.push(lr);continue}const Mn=pr.details,Wn=(C?Mn==null?void 0:Mn.partTarget:Mn==null?void 0:Mn.averagetargetduration)||Yn;let xr;cr?xr=l*e:xr=s*e;const yr=Yn&&r>=Yn*2&&i===0?pr.averageBitrate:pr.maxBitrate,Rr=this.getTimeToLoadFrag(Ir,xr,yr*Wn,Mn===void 0);if(xr>=yr&&(lr===f||pr.loadError===0&&pr.fragmentError===0)&&(Rr<=Ir||!p(Rr)||Ue&&!this.bitrateTestDelay||Rr<u)){const Kr=this.forcedAutoLevel;return lr!==V&&(Kr===-1||Kr!==V)&&(gr.length&&this.trace(`Skipped level(s) ${gr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${R[gr[0]].codecs}" ${R[gr[0]].videoRange}; not compatible with "${wt}" ${rn}`),this.info(`switch candidate:${h}->${lr} adjustedbw(${Math.round(xr)})-bitrate=${Math.round(xr-yr)} ttfb:${Ir.toFixed(1)} avgDuration:${Wn.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${Rr.toFixed(1)} firstSelection:${xt} codecSet:${pr.codecSet} videoRange:${pr.videoRange} hls.loadLevel:${V}`)),xt&&(this.firstSelection=lr),lr}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const An={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 yn(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!p(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(Fn(e,t,s))return s}return null}function Zn(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[1+a.sn-e[0].sn]||null;const l=a.endDTS-t;l>0&&l<15e-7&&(t+=15e-7),i&&a.level!==i.level&&i.end<=a.end&&(i=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&zn(t,n,i)===0||On(i,a,Math.min(r,n))))return i;const s=An.search(e,zn.bind(null,t,n));return s&&(s!==a||!i)?s:i}function On(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 zn(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 Fn(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function kn(a,e){return An.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}function qn(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){const n=t.start,r=t.end;let i=a.fragments;if(!t.relurl){const{fragmentHint:s}=a;s&&(i=i.concat(s))}return An.search(i,s=>s.cc<e||s.end<=n?1:s.cc>e||s.start>=r?-1:0)}return null}function pn(a){switch(a.details){case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_TIMEOUT:case O.LEVEL_LOAD_TIMEOUT:case O.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function ln(a,e){const t=pn(e);return a.default[`${t?"timeout":"error"}Retry`]}function Me(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Pt(a){return x(x({},a),{errorRetry:null,timeoutRetry:null})}function mn(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(Rn(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function Rn(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var Kn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},xe={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class nt extends Y{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.ERROR,this.onError,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.ERROR,this.onError,this),e.off(d.ERROR,this.onErrorOut,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.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)===oe.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case O.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=qe();return}case O.FRAG_GAP:case O.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Kn.SendAlternateToPenaltyBox;return}case O.LEVEL_EMPTY_ERROR:case O.LEVEL_PARSING_ERROR:{var s,l;const u=t.parent===oe.MAIN?t.level:r.loadLevel;t.details===O.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(l=s.levelDetails)!=null&&l.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,u):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,u))}return;case O.LEVEL_LOAD_ERROR:case O.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case O.AUDIO_TRACK_LOAD_ERROR:case O.AUDIO_TRACK_LOAD_TIMEOUT:case O.SUBTITLE_LOAD_ERROR:case O.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const u=r.loadLevelObj;if(u&&(i.type===ve.AUDIO_TRACK&&u.hasAudioGroup(i.groupId)||i.type===ve.SUBTITLE_TRACK&&u.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Kn.SendAlternateToPenaltyBox,t.errorAction.flags=xe.MoveAllAlternatesMatchingHost;return}}return;case O.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const u=r.loadLevelObj,f=u==null?void 0:u.attrs["HDCP-LEVEL"];f?t.errorAction={action:Kn.SendAlternateToPenaltyBox,flags:xe.MoveAllAlternatesMatchingHDCP,hdcpLevel:f}:this.keySystemError(t)}return;case O.BUFFER_ADD_CODEC_ERROR:case O.REMUX_ALLOC_ERROR:case O.BUFFER_APPEND_ERROR:if(!t.errorAction){var c;t.errorAction=this.getLevelSwitchAction(t,(c=t.level)!=null?c:r.loadLevel)}return;case O.INTERNAL_EXCEPTION:case O.BUFFER_APPENDING_ERROR:case O.BUFFER_FULL_ERROR:case O.LEVEL_SWITCH_ERROR:case O.BUFFER_STALLED_ERROR:case O.BUFFER_SEEK_OVER_HOLE:case O.BUFFER_NUDGE_ON_STALL:t.errorAction=qe();return}t.type===ge.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=ln(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(mn(r,i,pn(e),e.response))return{action:Kn.RetryRequest,flags:xe.None,retryConfig:r,retryCount:i};const l=this.getLevelSwitchAction(e,t);return r&&(l.retryConfig=r,l.retryCount=i),l}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,l=ln(e.details.startsWith("key")?s:i,e),c=t.levels.reduce((f,h)=>f+h.fragmentError,0);if(r&&(e.details!==O.FRAG_GAP&&r.fragmentError++,mn(l,c,pn(e),e.response)))return{action:Kn.RetryRequest,flags:xe.None,retryConfig:l,retryCount:c};const u=this.getLevelSwitchAction(e,n);return l&&(u.retryConfig=l,u.retryCount=c),u}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const u=e.details;r.loadError++,u===O.BUFFER_APPEND_ERROR&&r.fragmentError++;let f=-1;const{levels:h,loadLevel:A,minAutoLevel:C,maxAutoLevel:R}=n;n.autoLevelEnabled||(n.loadLevel=-1);const J=(i=e.frag)==null?void 0:i.type,Ae=(J===oe.AUDIO&&u===O.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(u===O.BUFFER_ADD_CODEC_ERROR||u===O.BUFFER_APPEND_ERROR))&&h.some(({audioCodec:rn})=>r.audioCodec!==rn),Ue=e.sourceBufferName==="video"&&(u===O.BUFFER_ADD_CODEC_ERROR||u===O.BUFFER_APPEND_ERROR)&&h.some(({codecSet:rn,audioCodec:At})=>r.codecSet!==rn&&r.audioCodec===At),{type:xt,groupId:wt}=(s=e.context)!=null?s:{};for(let rn=h.length;rn--;){const At=(rn+A)%h.length;if(At!==A&&At>=C&&At<=R&&h[At].loadError===0){var l,c;const qt=h[At];if(u===O.FRAG_GAP&&J===oe.MAIN&&e.frag){const dn=h[At].details;if(dn){const Ft=Zn(e.frag,dn.fragments,e.frag.start);if(Ft!=null&&Ft.gap)continue}}else{if(xt===ve.AUDIO_TRACK&&qt.hasAudioGroup(wt)||xt===ve.SUBTITLE_TRACK&&qt.hasSubtitleGroup(wt))continue;if(J===oe.AUDIO&&(l=r.audioGroups)!=null&&l.some(dn=>qt.hasAudioGroup(dn))||J===oe.SUBTITLE&&(c=r.subtitleGroups)!=null&&c.some(dn=>qt.hasSubtitleGroup(dn))||Ae&&r.audioCodec===qt.audioCodec||!Ae&&r.audioCodec!==qt.audioCodec||Ue&&r.codecSet===qt.codecSet)continue}f=At;break}}if(f>-1&&n.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:Kn.SendAlternateToPenaltyBox,flags:xe.None,nextAutoLevel:f}}return{action:Kn.SendAlternateToPenaltyBox,flags:xe.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Kn.DoNothing:break;case Kn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==O.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 Kn.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 xe.None:this.switchLevel(e,s);break;case xe.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=ye[ye.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===O.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=E(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&this.hls.removeLevel(i)}}}function qe(a){const e={action:Kn.DoNothing,flags:xe.None};return a&&(e.resolved=!0),e}var $e={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Et{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(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const s=i.end;if(i.start<=e&&s!==null&&e<=s)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const l=r[i[s]];if((l==null?void 0:l.body.type)===t&&(!n||l.buffered)){const c=l.body;if(c.start<=e&&e<=c.end)return c}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||i)){c.body.type===n&&this.removeFragment(c.body);return}const u=c.range[e];if(u){if(u.time.length===0){this.removeFragment(c.body);return}u.time.some(f=>{const h=!this.isTimeBuffered(f.startPTS,f.endPTS,t);return h&&this.removeFragment(c.body),h})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=vt(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(l=>{const c=n.elementaryStreams[l];if(!c)return;const u=t[l],f=s||c.partial===!0;i.range[l]=this.getBufferedTimes(n,e.part,f,u)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),ct(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=Nt(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=vt(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,l=e.end,c=e.minEndPTS||l,u=e.maxStartPTS||s;for(let f=0;f<r.length;f++){const h=r.start(f)-this.bufferPadding,A=r.end(f)+this.bufferPadding;if(u>=h&&c<=A){i.time.push({startPTS:Math.max(s,r.start(f)),endPTS:Math.min(l,r.end(f))});break}else if(s<A&&l>h){const C=Math.max(s,r.start(f)),R=Math.min(l,r.end(f));R>C&&(i.partial=!0,i.time.push({startPTS:C,endPTS:R}))}else if(l<=h)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(u=>{const f=c[u];f&&ct(f)&&(r=f.body.start-l,i=f.body.end+l,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=f.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||ct(t))}getState(e){const t=vt(e),n=this.fragments[t];return n?n.buffered?ct(n)?$e.PARTIAL:$e.OK:$e.APPENDING:$e.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=vt(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if(n.sn==="initSegment")return;const l=n.type;if(r){let u=this.activePartLists[l];u||(this.activePartLists[l]=u=[]),u.push(r)}this.timeRanges=i;const c=i[s];this.detectEvictedFragments(s,c,l,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=vt(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const c=l.body;c.type!==n||r&&!c.gap||c.start<t&&c.end>e&&(l.buffered||i)&&this.removeFragment(c)})}removeFragment(e){const t=vt(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=Nt(n,i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function ct(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 vt(a){return`${a.type}_${a.level}_${a.sn}`}function Nt(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var Gt={cbc:0,ctr:1};class et{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case Gt.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Gt.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function ft(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class yt{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],l=n[3],c=this.invSubMix,u=c[0],f=c[1],h=c[2],A=c[3],C=new Uint32Array(256);let R=0,J=0,V=0;for(V=0;V<256;V++)V<128?C[V]=V<<1:C[V]=V<<1^283;for(V=0;V<256;V++){let Ae=J^J<<1^J<<2^J<<3^J<<4;Ae=Ae>>>8^Ae&255^99,e[R]=Ae,t[Ae]=R;const Ve=C[R],Ue=C[Ve],xt=C[Ue];let wt=C[Ae]*257^Ae*16843008;r[R]=wt<<24|wt>>>8,i[R]=wt<<16|wt>>>16,s[R]=wt<<8|wt>>>24,l[R]=wt,wt=xt*16843009^Ue*65537^Ve*257^R*16843008,u[Ae]=wt<<24|wt>>>8,f[Ae]=wt<<16|wt>>>16,h[Ae]=wt<<8|wt>>>24,A[Ae]=wt,R?(R=Ve^C[C[C[xt^Ve]]],J^=C[C[J]]):R=J=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 l,c;const u=this.keySchedule=new Uint32Array(s),f=this.invKeySchedule=new Uint32Array(s),h=this.sBox,A=this.rcon,C=this.invSubMix,R=C[0],J=C[1],V=C[2],Ae=C[3];let Ve,Ue;for(l=0;l<s;l++){if(l<i){Ve=u[l]=t[l];continue}Ue=Ve,l%i===0?(Ue=Ue<<8|Ue>>>24,Ue=h[Ue>>>24]<<24|h[Ue>>>16&255]<<16|h[Ue>>>8&255]<<8|h[Ue&255],Ue^=A[l/i|0]<<24):i>6&&l%i===4&&(Ue=h[Ue>>>24]<<24|h[Ue>>>16&255]<<16|h[Ue>>>8&255]<<8|h[Ue&255]),u[l]=Ve=(u[l-i]^Ue)>>>0}for(c=0;c<s;c++)l=s-c,c&3?Ue=u[l]:Ue=u[l-4],c<4||l<=4?f[c]=Ue:f[c]=R[h[Ue>>>24]]^J[h[Ue>>>16&255]]^V[h[Ue>>>8&255]]^Ae[h[Ue&255]],f[c]=f[c]>>>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,l=this.invSubMix,c=l[0],u=l[1],f=l[2],h=l[3],A=this.uint8ArrayToUint32Array_(n);let C=A[0],R=A[1],J=A[2],V=A[3];const Ae=new Int32Array(e),Ve=new Int32Array(Ae.length);let Ue,xt,wt,rn,At,qt,dn,Ft,Nn,Yn,Ir,gr,hr,lr;const pr=this.networkToHostOrderSwap;for(;t<Ae.length;){for(Nn=pr(Ae[t]),Yn=pr(Ae[t+1]),Ir=pr(Ae[t+2]),gr=pr(Ae[t+3]),At=Nn^i[0],qt=gr^i[1],dn=Ir^i[2],Ft=Yn^i[3],hr=4,lr=1;lr<r;lr++)Ue=c[At>>>24]^u[qt>>16&255]^f[dn>>8&255]^h[Ft&255]^i[hr],xt=c[qt>>>24]^u[dn>>16&255]^f[Ft>>8&255]^h[At&255]^i[hr+1],wt=c[dn>>>24]^u[Ft>>16&255]^f[At>>8&255]^h[qt&255]^i[hr+2],rn=c[Ft>>>24]^u[At>>16&255]^f[qt>>8&255]^h[dn&255]^i[hr+3],At=Ue,qt=xt,dn=wt,Ft=rn,hr=hr+4;Ue=s[At>>>24]<<24^s[qt>>16&255]<<16^s[dn>>8&255]<<8^s[Ft&255]^i[hr],xt=s[qt>>>24]<<24^s[dn>>16&255]<<16^s[Ft>>8&255]<<8^s[At&255]^i[hr+1],wt=s[dn>>>24]<<24^s[Ft>>16&255]<<16^s[At>>8&255]<<8^s[qt&255]^i[hr+2],rn=s[Ft>>>24]<<24^s[At>>16&255]<<16^s[qt>>8&255]<<8^s[dn&255]^i[hr+3],Ve[t]=pr(Ue^C),Ve[t+1]=pr(rn^R),Ve[t+2]=pr(wt^J),Ve[t+3]=pr(xt^V),C=Nn,R=Yn,J=Ir,V=gr,t=t+4}return Ve.buffer}}class Xt{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=Vt(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Vt(a){switch(a){case Gt.cbc:return"AES-CBC";case Gt.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const gn=16;class jn{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?ft(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((i,s)=>{const l=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(l,t,n,r);const c=this.flush();c?i(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:s,remainderData:l}=this;if(r!==Gt.cbc||t.byteLength!==16)return j.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=ot(l,e),this.remainderData=null);const c=this.getValidChunk(e);if(!c.length)return null;i&&(n=i);let u=this.softwareDecrypter;u||(u=this.softwareDecrypter=new yt),u.expandKey(t);const f=s;return this.currentResult=u.decrypt(c.buffer,0,n),this.currentIV=c.slice(-16).buffer,f||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new Xt(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new et(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(j.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%gn;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(j.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Bn=Math.pow(2,17);class Vn{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 Ln({type:ge.NETWORK_ERROR,details:O.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((l,c)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(R=>R[0]==="GAP")){c(Xn(e));return}else e.gap=!1;const u=this.loader=i?new i(r):new s(r),f=Gn(e);e.loader=u;const h=Pt(r.fragLoadPolicy.default),A={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Bn};e.stats=u.stats;const C={onSuccess:(R,J,V,Ae)=>{this.resetLoader(e,u);let Ve=R.data;V.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ve.slice(0,16)),Ve=Ve.slice(16)),l({frag:e,part:null,payload:Ve,networkDetails:Ae})},onError:(R,J,V,Ae)=>{this.resetLoader(e,u),c(new Ln({type:ge.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:x({url:n,data:void 0},R),error:new Error(`HTTP Error ${R.code} ${R.text}`),networkDetails:V,stats:Ae}))},onAbort:(R,J,V)=>{this.resetLoader(e,u),c(new Ln({type:ge.NETWORK_ERROR,details:O.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:V,stats:R}))},onTimeout:(R,J,V)=>{this.resetLoader(e,u),c(new Ln({type:ge.NETWORK_ERROR,details:O.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${A.timeout}ms`),networkDetails:V,stats:R}))}};t&&(C.onProgress=(R,J,V,Ae)=>t({frag:e,part:null,payload:V,networkDetails:Ae})),u.load(f,A,C)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){c(Xn(e,t));return}const u=this.loader=i?new i(r):new s(r),f=Gn(e,t);e.loader=u;const h=Pt(r.fragLoadPolicy.default),A={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Bn};t.stats=u.stats,u.load(f,A,{onSuccess:(C,R,J,V)=>{this.resetLoader(e,u),this.updateStatsFromPart(e,t);const Ae={frag:e,part:t,payload:C.data,networkDetails:V};n(Ae),l(Ae)},onError:(C,R,J,V)=>{this.resetLoader(e,u),c(new Ln({type:ge.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:x({url:f.url,data:void 0},C),error:new Error(`HTTP Error ${C.code} ${C.text}`),networkDetails:J,stats:V}))},onAbort:(C,R,J)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,u),c(new Ln({type:ge.NETWORK_ERROR,details:O.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:J,stats:C}))},onTimeout:(C,R,J)=>{this.resetLoader(e,u),c(new Ln({type:ge.NETWORK_ERROR,details:O.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${A.timeout}ms`),networkDetails:J,stats:C}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const c=Math.round(e.duration/t.duration),u=Math.min(Math.round(n.loaded/i),c),h=(c-u)*Math.round(n.loaded/u);n.total=n.loaded+h}else n.total=Math.max(n.loaded,n.total);const s=n.loading,l=r.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Gn(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(p(r)&&p(i)){var s;let l=r,c=i;if(a.sn==="initSegment"&&sr((s=a.decryptdata)==null?void 0:s.method)){const u=i-r;u%16&&(c=i+(16-u%16)),r!==0&&(n.resetIV=!0,l=r-16)}n.rangeStart=l,n.rangeEnd=c}return n}function Xn(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ge.MEDIA_ERROR,details:O.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new Ln(n)}function sr(a){return a==="AES-128"||a==="AES-256"}class Ln extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ar extends Y{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class tr{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=Jn(),this.buffering={audio:Jn(),video:Jn(),audiovideo:Jn()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function Jn(){return{start:0,executeStart:0,executeEnd:0,end:0}}const nr={length:0,start:()=>0,end:()=>0};class wn{static isBuffered(e,t){if(e){const n=wn.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=wn.getBuffered(e);return wn.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=wn.bufferedRanges(e);if(r.length)return wn.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((f,h)=>f.start-h.start||h.end-f.end);let r=-1,i=[];if(n)for(let f=0;f<e.length;f++){t>=e[f].start&&t<=e[f].end&&(r=f);const h=i.length;if(h){const A=i[h-1].end;e[f].start-A<n?e[f].end>A&&(i[h-1].end=e[f].end):i.push(e[f])}else i.push(e[f])}else i=e;let s=0,l,c=t,u=t;for(let f=0;f<i.length;f++){const h=i[f].start,A=i[f].end;if(r===-1&&t>=h&&t<=A&&(r=f),t+n>=h&&t<A)c=h,u=A,s=u-t;else if(t+n<h){l=h;break}}return{len:s,start:c||0,end:u||0,nextStart:l,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||nr}catch(t){return j.log("failed to get media.buffered",t),nr}}}const _r=/\{\$([a-zA-Z0-9-_]+)\}/g;function rr(a){return _r.test(a)}function or(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(_r,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 Sn(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 an(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const Tn=/^(\d+)x(\d+)$/,Cn=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Hn{constructor(e,t){typeof e=="string"&&(e=Hn.parseAttrList(e,t)),m(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,i)=>(r[i.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Tn.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},i='"';for(Cn.lastIndex=0;(n=Cn.exec(e))!==null;){const s=n[1].trim();let l=n[2];const c=l.indexOf(i)===0&&l.lastIndexOf(i)===l.length-1;let u=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":u=!0}if(t&&(c||u))l=or(t,l);else if(!u&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":j.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=l}return r}}const $n="com.apple.hls.interstitial";function dr(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function vr(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class Fr{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){j.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=m(new Hn({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const i=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);p(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(j.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(p(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===$n}get isValid(){return!!this.id&&!this._badValueForSameId&&p(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const kr=10;class jr{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?p(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||kr}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function Br(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function Nr(a){switch(a){case"AES-128":case"AES-256":return Gt.cbc;case"AES-256-CTR":return Gt.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function ir(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function br(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function Lr(a){const e=br(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Qn(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 Un(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=ir(s)):t=Lr(s)}}return t}const Dn=typeof self!="undefined"?self:void 0;var bn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ur={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function wr(a){switch(a){case ur.FAIRPLAY:return bn.FAIRPLAY;case ur.PLAYREADY:return bn.PLAYREADY;case ur.WIDEVINE:return bn.WIDEVINE;case ur.CLEARKEY:return bn.CLEARKEY}}var Hr={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function zr(a){if(a===Hr.WIDEVINE)return bn.WIDEVINE;if(a===Hr.PLAYREADY)return bn.PLAYREADY;if(a===Hr.CENC||a===Hr.CLEARKEY)return bn.CLEARKEY}function Vr(a){switch(a){case bn.FAIRPLAY:return ur.FAIRPLAY;case bn.PLAYREADY:return ur.PLAYREADY;case bn.WIDEVINE:return ur.WIDEVINE;case bn.CLEARKEY:return ur.CLEARKEY}}function Pn(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[bn.FAIRPLAY,bn.WIDEVINE,bn.PLAYREADY,bn.CLEARKEY].filter(r=>!!e[r]):[];return!n[bn.WIDEVINE]&&t&&n.push(bn.WIDEVINE),n}const er=function(a){return Dn!=null&&(a=Dn.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Er(a,e,t,n){let r;switch(a){case bn.FAIRPLAY:r=["cenc","sinf"];break;case bn.WIDEVINE:case bn.PLAYREADY:r=["cenc"];break;case bn.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return mr(r,e,t,n)}function mr(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 Ar(a){var e;return a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license"))}function ni(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 l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const c=ir(l).subarray(0,16);return Qn(c),c}}return null}let Cr={};class qr{static clearKeyUriToKeyIdMap(){Cr={}}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&&!Br(e)}isSupported(){if(this.method){if(Br(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case ur.FAIRPLAY:case ur.WIDEVINE:case ur.PLAYREADY:case ur.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(Br(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(j.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=ai(e);return new qr(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=Un(this.uri);if(t)switch(this.keyFormat){case ur.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case ur.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=rt(n,null,t),this.keyId=ni(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=Cr[this.uri];if(!n){const r=Object.keys(Cr).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),Cr[this.uri]=n}this.keyId=n}return this}}function ai(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const Pi=/#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,Zr=/#EXT-X-MEDIA:(.*)/g,$i=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ni=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),ps=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class oi{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return Q.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return $i.test(e)}static parseMasterPlaylist(e,t){const n=rr(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];Pi.lastIndex=0;let s;for(;(s=Pi.exec(e))!=null;)if(s[1]){var l;const u=new Hn(s[1],r),f=or(r,s[2]),h={attrs:u,bitrate:u.decimalInteger("BANDWIDTH")||u.decimalInteger("AVERAGE-BANDWIDTH"),name:u.NAME,url:oi.resolve(f,t)},A=u.decimalResolution("RESOLUTION");A&&(h.width=A.width,h.height=A.height),Oi(u.CODECS,h);const C=u["SUPPLEMENTAL-CODECS"];C&&(h.supplemental={},Oi(C,h.supplemental)),(l=h.unknownCodecs)!=null&&l.length||i.push(h),r.levels.push(h)}else if(s[3]){const u=s[3],f=s[4];switch(u){case"SESSION-DATA":{const h=new Hn(f,r),A=h["DATA-ID"];A&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[A]=h);break}case"SESSION-KEY":{const h=Mi(f,t,r);h.encrypted&&h.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(h)):j.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${f}"`);break}case"DEFINE":{{const h=new Hn(f,r);Sn(r,h,t)}break}case"CONTENT-STEERING":{const h=new Hn(f,r);r.contentSteering={uri:oi.resolve(h["SERVER-URI"],t),pathwayId:h["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=ci(f);break}}}const c=i.length>0&&i.length<r.levels.length;return r.levels=c?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,l={AUDIO:s.map(u=>({id:u.attrs.AUDIO,audioCodec:u.audioCodec})),SUBTITLES:s.map(u=>({id:u.attrs.SUBTITLES,textCodec:u.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(Zr.lastIndex=0;(r=Zr.exec(e))!==null;){const u=new Hn(r[1],n),f=u.TYPE;if(f){const h=l[f],A=i[f]||[];i[f]=A;const C=u.LANGUAGE,R=u["ASSOC-LANGUAGE"],J=u.CHANNELS,V=u.CHARACTERISTICS,Ae=u["INSTREAM-ID"],Ve={attrs:u,bitrate:0,id:c++,groupId:u["GROUP-ID"]||"",name:u.NAME||C||"",type:f,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:C,url:u.URI?oi.resolve(u.URI,t):""};if(R&&(Ve.assocLang=R),J&&(Ve.channels=J),V&&(Ve.characteristics=V),Ae&&(Ve.instreamId=Ae),h!=null&&h.length){const Ue=oi.findGroup(h,Ve.groupId)||h[0];xi(Ve,Ue,"audioCodec"),xi(Ve,Ue,"textCodec")}A.push(Ve)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var l;const c={url:t},u=new jr(t),f=u.fragments,h=[];let A=null,C=0,R=0,J=0,V=0,Ae=0,Ve=null,Ue=new je(r,c),xt,wt,rn,At=-1,qt=!1,dn=null,Ft;if(Ni.lastIndex=0,u.m3u8=e,u.hasVariableRefs=rr(e),((l=Ni.exec(e))==null?void 0:l[0])!=="#EXTM3U")return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;(xt=Ni.exec(e))!==null;){qt&&(qt=!1,Ue=new je(r,c),Ue.playlistOffset=J,Ue.start=J,Ue.sn=C,Ue.cc=V,Ae&&(Ue.bitrate=Ae),Ue.level=n,A&&(Ue.initSegment=A,A.rawProgramDateTime&&(Ue.rawProgramDateTime=A.rawProgramDateTime,A.rawProgramDateTime=null),dn&&(Ue.setByteRange(dn),dn=null)));const gr=xt[1];if(gr){Ue.duration=parseFloat(gr);const hr=(" "+xt[2]).slice(1);Ue.title=hr||null,Ue.tagList.push(hr?["INF",gr,hr]:["INF",gr])}else if(xt[3]){if(p(Ue.duration)){Ue.playlistOffset=J,Ue.start=J,rn&&zi(Ue,rn,u),Ue.sn=C,Ue.level=n,Ue.cc=V,f.push(Ue);const hr=(" "+xt[3]).slice(1);Ue.relurl=or(u,hr),Ri(Ue,Ve,h),Ve=Ue,J+=Ue.duration,C++,R=0,qt=!0}}else{if(xt=xt[0].match(ps),!xt){j.warn("No matches on slow regex match for level playlist!");continue}for(wt=1;wt<xt.length&&xt[wt]===void 0;wt++);const hr=(" "+xt[wt]).slice(1),lr=(" "+xt[wt+1]).slice(1),pr=xt[wt+2]?(" "+xt[wt+2]).slice(1):null;switch(hr){case"BYTERANGE":Ve?Ue.setByteRange(lr,Ve):Ue.setByteRange(lr);break;case"PROGRAM-DATE-TIME":Ue.rawProgramDateTime=lr,Ue.tagList.push(["PROGRAM-DATE-TIME",lr]),At===-1&&(At=f.length);break;case"PLAYLIST-TYPE":u.type&&fi(u,hr,xt),u.type=lr.toUpperCase();break;case"MEDIA-SEQUENCE":u.startSN!==0?fi(u,hr,xt):f.length>0&&Fi(u,hr,xt),C=u.startSN=parseInt(lr);break;case"SKIP":{u.skippedSegments&&fi(u,hr,xt);const cr=new Hn(lr,u),Mn=cr.decimalInteger("SKIPPED-SEGMENTS");if(p(Mn)){u.skippedSegments+=Mn;for(let xr=Mn;xr--;)f.push(null);C+=Mn}const Wn=cr.enumeratedString("RECENTLY-REMOVED-DATERANGES");Wn&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(Wn.split(" ")));break}case"TARGETDURATION":u.targetduration!==0&&fi(u,hr,xt),u.targetduration=Math.max(parseInt(lr),1);break;case"VERSION":u.version!==null&&fi(u,hr,xt),u.version=parseInt(lr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||fi(u,hr,xt),u.live=!1;break;case"#":(lr||pr)&&Ue.tagList.push(pr?[lr,pr]:[lr]);break;case"DISCONTINUITY":V++,Ue.tagList.push(["DIS"]);break;case"GAP":Ue.gap=!0,Ue.tagList.push([hr]);break;case"BITRATE":Ue.tagList.push([hr,lr]),Ae=parseInt(lr)*1e3,p(Ae)?Ue.bitrate=Ae:Ae=0;break;case"DATERANGE":{const cr=new Hn(lr,u),Mn=new Fr(cr,u.dateRanges[cr.ID],u.dateRangeTagCount);u.dateRangeTagCount++,Mn.isValid||u.skippedSegments?u.dateRanges[Mn.id]=Mn:j.warn(`Ignoring invalid DATERANGE tag: "${lr}"`),Ue.tagList.push(["EXT-X-DATERANGE",lr]);break}case"DEFINE":{{const cr=new Hn(lr,u);"IMPORT"in cr?an(u,cr,s):Sn(u,cr,t)}break}case"DISCONTINUITY-SEQUENCE":u.startCC!==0?fi(u,hr,xt):f.length>0&&Fi(u,hr,xt),u.startCC=V=parseInt(lr);break;case"KEY":{const cr=Mi(lr,t,u);if(cr.isSupported()){if(cr.method==="NONE"){rn=void 0;break}rn||(rn={}),rn[cr.keyFormat]&&(rn=m({},rn)),rn[cr.keyFormat]=cr}else j.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${lr}"`);break}case"START":u.startTimeOffset=ci(lr);break;case"MAP":{const cr=new Hn(lr,u);if(Ue.duration){const Mn=new je(r,c);ts(Mn,cr,n,rn),A=Mn,Ue.initSegment=A,A.rawProgramDateTime&&!Ue.rawProgramDateTime&&(Ue.rawProgramDateTime=A.rawProgramDateTime)}else{const Mn=Ue.byteRangeEndOffset;if(Mn){const Wn=Ue.byteRangeStartOffset;dn=`${Mn-Wn}@${Wn}`}else dn=null;ts(Ue,cr,n,rn),A=Ue,qt=!0}A.cc=V;break}case"SERVER-CONTROL":{Ft&&fi(u,hr,xt),Ft=new Hn(lr),u.canBlockReload=Ft.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Ft.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Ft.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Ft.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Ft.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{u.partTarget&&fi(u,hr,xt);const cr=new Hn(lr);u.partTarget=cr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let cr=u.partList;cr||(cr=u.partList=[]);const Mn=R>0?cr[cr.length-1]:void 0,Wn=R++,xr=new Hn(lr,u),yr=new Ye(xr,Ue,c,Wn,Mn);cr.push(yr),Ue.duration+=yr.duration;break}case"PRELOAD-HINT":{const cr=new Hn(lr,u);u.preloadHint=cr;break}case"RENDITION-REPORT":{const cr=new Hn(lr,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(cr);break}default:j.warn(`line parsed but not handled: ${xt}`);break}}}Ve&&!Ve.relurl?(f.pop(),J-=Ve.duration,u.partList&&(u.fragmentHint=Ve)):u.partList&&(Ri(Ue,Ve,h),Ue.cc=V,u.fragmentHint=Ue,rn&&zi(Ue,rn,u)),u.targetduration||(u.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const Nn=f.length,Yn=f[0],Ir=f[Nn-1];if(J+=u.skippedSegments*u.targetduration,J>0&&Nn&&Ir){u.averagetargetduration=J/Nn;const gr=Ir.sn;u.endSN=gr!=="initSegment"?gr:0,u.live||(Ir.endList=!0),Yn&&u.startCC===void 0&&(u.startCC=Yn.cc),At>0&&(es(f,At),Yn&&h.unshift(Yn))}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(J+=u.fragmentHint.duration),u.totalduration=J,h.length&&u.dateRangeTagCount&&Yn&&Ci(h,u),u.endCC=V,u}}function Ci(a,e){const t=a.length,n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let s=i.length;s--;){const l=e.dateRanges[i[s]],c=l.startDate.getTime();l.tagAnchor=n.ref;for(let u=t;u--;){const f=Di(e,c,a,u,r);if(f!==-1){l.tagAnchor=e.fragments[f].ref;break}}}}function Di(a,e,t,n,r){const i=t[n];if(i){const l=i.programDateTime;if(e>=l||n===0){var s;const c=(((s=t[n+1])==null?void 0:s.start)||r)-i.start;if(e<=l+c*1e3){const u=t[n].sn-a.startSN,f=a.fragments;if(f.length>t.length){const A=(t[n+1]||f[f.length-1]).sn-a.startSN;for(let C=A;C>u;C--){const R=f[C].programDateTime;if(e>=R&&e<R+f[C].duration*1e3)return C}}return u}}}return-1}function Mi(a,e,t){var n,r;const i=new Hn(a,t),s=(n=i.METHOD)!=null?n:"",l=i.URI,c=i.hexadecimalInteger("IV"),u=i.KEYFORMATVERSIONS,f=(r=i.KEYFORMAT)!=null?r:"identity";l&&i.IV&&!c&&j.error(`Invalid IV: ${i.IV}`);const h=l?oi.resolve(l,e):"",A=(u||"1").split("/").map(Number).filter(Number.isFinite);return new qr(s,h,f,A,c)}function ci(a){const t=new Hn(a).decimalFloatingPoint("TIME-OFFSET");return p(t)?t:null}function Oi(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Be(i,n));r.length&&(e[`${n}Codec`]=r.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function xi(a,e,t){const n=e[t];n&&(a[t]=n)}function es(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 Ri(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function ts(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 zi(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}function fi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function Fi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Si(a,e){const t=e.startPTS;if(p(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.setStart(a.start+(a.minEndPTS-a.start)):e.setStart(a.start+a.duration):e.setStart(Math.max(a.start-e.duration,0))}function Sr(a,e,t,n,r,i){n-t<=0&&(j.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let l=t,c=n;const u=e.startPTS,f=e.endPTS;if(p(u)){const V=Math.abs(u-t);p(e.deltaPTS)?e.deltaPTS=Math.max(V,e.deltaPTS):e.deltaPTS=V,l=Math.max(t,u),t=Math.min(t,u),r=Math.min(r,e.startDTS),c=Math.min(n,f),n=Math.max(n,f),i=Math.max(i,e.endDTS)}const h=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=l,e.startDTS=r,e.endPTS=n,e.minEndPTS=c,e.endDTS=i;const A=e.sn;if(!a||A<a.startSN||A>a.endSN)return 0;let C;const R=A-a.startSN,J=a.fragments;for(J[R]=e,C=R;C>0;C--)Si(J[C],J[C-1]);for(C=R;C<J.length-1;C++)Si(J[C],J[C+1]);return a.fragmentHint&&Si(J[J.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,h}function fr(a,e){if(a===e)return;let t=null;const n=a.fragments;for(let c=n.length-1;c>=0;c--){const u=n[c].initSegment;if(u){t=u;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;Xr(a,e,(c,u,f,h)=>{if(!e.startCC&&u.cc!==c.cc){var A,C;const R=c.cc-u.cc;for(let J=f;J<h.length;J++)h[J].cc+=R;e.startCC=(A=(C=_i(a,e.startSN-1))==null?void 0:C.cc)!=null?A:h[0].cc,e.endCC=h[h.length-1].cc}p(c.startPTS)&&p(c.endPTS)&&(u.setStart(u.startPTS=c.startPTS),u.startDTS=c.startDTS,u.maxStartPTS=c.maxStartPTS,u.endPTS=c.endPTS,u.endDTS=c.endDTS,u.minEndPTS=c.minEndPTS,u.setDuration(c.endPTS-c.startPTS),u.duration&&(r=u),e.PTSKnown=e.alignedSliding=!0),c.hasStreams&&(u.elementaryStreams=c.elementaryStreams),u.loader=c.loader,c.hasStats&&(u.stats=c.stats),c.initSegment&&(u.initSegment=c.initSegment,t=c.initSegment)});const i=e.fragments,s=e.fragmentHint?i.concat(e.fragmentHint):i;if(t&&s.forEach(c=>{var u;c&&(!c.initSegment||c.initSegment.relurl===((u=t)==null?void 0:u.relurl))&&(c.initSegment=t)}),e.skippedSegments)if(e.deltaUpdateFailed=i.some(c=>!c),e.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let c=e.skippedSegments;c--;)i.shift();e.startSN=i[0].sn}else{e.endCC=i[i.length-1].cc,e.canSkipDateRanges&&(e.dateRanges=Mr(a.dateRanges,e));const c=a.fragments.filter(u=>u.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let u=1;u<s.length;u++)s[u].programDateTime===null&&Ri(s[u],s[u-1],c);Ci(c,e)}Yr(a.partList,e.partList,(c,u)=>{u.elementaryStreams=c.elementaryStreams,u.stats=c.stats}),r?Sr(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):$r(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const l=e.advancedDateTime;if(e.advanced&&l){const c=e.edge;e.driftStart||(e.driftStartTime=l,e.driftStart=c),e.driftEndTime=l,e.driftEnd=c}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function Mr(a,e){const{dateRanges:t,recentlyRemovedDateranges:n}=e,r=m({},a);n&&n.forEach(l=>{delete r[l]});const s=Object.keys(r).length;return s&&Object.keys(t).forEach(l=>{const c=r[l],u=new Fr(t[l].attr,c);u.isValid?(r[l]=u,c||(u.tagOrder+=s)):j.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Jt(t[l].attr)}"`)}),r}function Yr(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],l=e[r+n];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?t(s,l):n--}}}function Xr(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,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,c=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let u=r;u<=i;u++){const f=c[s+u];let h=l[u];if(n&&!h&&f&&(h=e.fragments[u]=f),f&&h){if(t(f,h,u,l),f.url&&f.url!==h.url){e.playlistParsingError=Gr(`media sequence mismatch ${h.sn}:`,a,e,f,h);return}else if(f.cc!==h.cc){e.playlistParsingError=Gr(`discontinuity sequence mismatch (${f.cc}!=${h.cc})`,a,e,f,h);return}}}}function Gr(a,e,t,n,r){return new Error(`${a} ${r.url}
|
|
Playlist starting @${e.startSN}
|
|
${e.m3u8}
|
|
|
|
Playlist starting @${t.startSN}
|
|
${t.m3u8}`)}function $r(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,r=a.fragments,i=n>=0;let s=0;if(i&&n<r.length)s=r[n].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;ri(e,s)}function ri(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function ui(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 _i(a,e,t){if(!a)return null;let n=a.fragments[e-a.startSN];return n||(n=a.fragmentHint,n&&n.sn===e)?n:e<a.startSN&&t&&t.sn===e?t:null}function pi(a,e,t){return a?Li(a.partList,e,t):null}function Li(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 ei(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function Ei(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 ms(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function ji(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function ns(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)ji(t[n],a);e.fragmentHint&&ji(e.fragmentHint,a),e.alignedSliding=!0}function bs(a,e){a&&(Qr(e,a),!e.alignedSliding&&a&&Pr(e,a),!e.alignedSliding&&a&&!e.skippedSegments&&$r(a,e,!1))}function Qr(a,e){if(!ms(e,a))return;const t=Math.min(e.endCC,a.endCC),n=Ei(e.fragments,t),r=Ei(a.fragments,t);if(!n||!r)return;j.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;ns(i,a)}function Pr(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=Ei(n,s),i=Ei(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Ei(t,r.cc)||t[Math.floor(t.length/2)]);const l=r.programDateTime,c=i.programDateTime;if(!l||!c)return;const u=(c-l)/1e3-(i.start-r.start);ns(u,a)}const Wr={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}},on={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 ti extends ar{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=on.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:l,media:c,mediaBuffer:u,state:f}=this,h=c?c.currentTime:0,A=wn.bufferInfo(u||c,h,s.maxBufferHole);if(this.log(`media seeking to ${p(h)?h.toFixed(3):h}, state: ${f}`),this.state===on.ENDED)this.resetLoadingState();else if(l){const C=s.maxFragLookUpTolerance,R=l.start-C,J=l.start+l.duration+C;if(!A.len||J<A.start||R>A.end){const V=h>J;(h<R||V)&&(V&&l.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(c){this.fragmentTracker.removeFragmentsInRange(h,1/0,this.playlistType,!0);const C=this.lastCurrentTime;if(h>C&&(this.lastCurrentTime=h),!this.loadingParts){const R=Math.max(A.end,h),J=this.shouldLoadParts(this.getLevelDetails(),R);J&&(this.log(`LL-Part loading ON after seeking to ${h.toFixed(2)} with buffer @${R.toFixed(2)}`),this.loadingParts=J)}}!this.hls.hasEnoughToStart&&!A.len&&(this.log(`setting startPosition to ${h} because of seek before start`),this.nextLoadPosition=this.startPosition=h),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new Vn(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new jn(e.config)}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===on.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=on.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.nextStart;if(i&&i>r&&i<t.edge||this.media.currentTime<e.start)return!1;const l=t.partList;if(l!=null&&l.length){const u=l[l.length-1];return wn.isBuffered(this.media,u.start+u.duration/2)}const c=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(c)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===on.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=on.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{const s=i.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(s,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state,l=i.frag;if(this.fragContextChanged(l)){(s===on.FRAG_LOADING||!this.fragCurrent&&s===on.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=on.IDLE);return}"payload"in i&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(d.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===on.STOPPED||this.state===on.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)===$e.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),l=Math.max(e.duration,s?s.len:this.config.maxBufferLength),c=this.backtrackFragment;((c?e.sn-c.sn:0)===1||this.reduceMaxBufferLength(l,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)===$e.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(d.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:i,payload:s}=n,l=i.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&Br(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,Nr(l.method)).catch(u=>{throw r.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:i}),u}).then(u=>{const f=self.performance.now();return r.trigger(d.FRAG_DECRYPTED,{frag:i,payload:u,stats:{tstart:c,tdecrypt:f}}),n.payload=u,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===on.STOPPED||this.state===on.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!==on.STOPPED&&(this.state=on.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Wr.toString(wn.getBuffered(n)):"(detached)"})`),ce(e)){var r;if(e.type!==oe.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=on.IDLE;return}}const i=(r=this.levels)==null?void 0:r[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=on.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(c=>!c),l=new tr(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(l)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=on.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(h=>{if(!this.fragContextChanged(h.frag))return this.hls.trigger(d.KEY_LOADED,h),this.state===on.KEY_LOADING&&(this.state=on.IDLE),h}),this.hls.trigger(d.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(l=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments);const c=this.fragPrevious;if(ce(e)&&(!c||e.sn!==c.sn)){const h=this.shouldLoadParts(t.details,e.end);h!==this.loadingParts&&(this.log(`LL-Part loading ${h?"ON":"OFF"} loading sn ${c==null?void 0:c.sn}->${e.sn}`),this.loadingParts=h)}if(n=Math.max(e.start,n||0),this.loadingParts&&ce(e)){const h=s.partList;if(h&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const A=this.getNextPart(h,e,n);if(A>-1){const C=h[A];e=this.fragCurrent=C.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${C.index} (${A}/${h.length-1}) of ${this.fragInfo(e,!1,C)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=C.start+C.duration,this.state=on.FRAG_LOADING;let R;return l?R=l.then(J=>!J||this.fragContextChanged(J.frag)?null:this.doFragPartsLoad(e,C,t,r)).catch(J=>this.handleFragLoadError(J)):R=this.doFragPartsLoad(e,C,t,r).catch(J=>this.handleFragLoadError(J)),this.hls.trigger(d.FRAG_LOADING,{frag:e,part:C,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):R}else if(!e.url||this.loadedEndOfParts(h,n))return Promise.resolve(null)}}if(ce(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${s?"["+s.startSN+"-"+s.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),p(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=on.FRAG_LOADING;const u=this.config.progressive;let f;return u&&l?f=l.then(h=>!h||this.fragContextChanged(h==null?void 0:h.frag)?null:this.fragmentLoader.load(e,r)).catch(h=>this.handleFragLoadError(h)):f=Promise.all([this.fragmentLoader.load(e,u?r:void 0),l]).then(([h])=>(!u&&h&&r&&r(h),h)).catch(h=>this.handleFragLoadError(h)),this.hls.trigger(d.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):f}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var l;const c=[],u=(l=n.details)==null?void 0:l.partList,f=h=>{this.fragmentLoader.loadPart(e,h,r).then(A=>{c[h.index]=A;const C=A.part;this.hls.trigger(d.FRAG_LOADED,A);const R=pi(n.details,e.sn,h.index+1)||Li(u,e.sn,h.index+1);if(R)f(R);else return i({frag:e,part:C,partsLoaded:c})}).catch(s)};f(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===O.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(d.ERROR,t)}else this.hls.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==on.PARSING){!this.fragCurrent&&this.state!==on.STOPPED&&this.state!==on.ERROR&&(this.state=on.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const l=this.getLevelDetails(),u=l&&n.sn>l.endSN||this.shouldLoadParts(l,n.end);u!==this.loadingParts&&(this.log(`LL-Part loading ${u?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=u),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e!=null&&e.partList){var n;const i=e.partList[0],s=i.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const l=t[r],c=l.details,u=s>-1?pi(c,i,s):null,f=u?u.fragment:_i(c,i,n);return f?(n&&n!==f&&(f.stats=n.stats),{frag:f,part:u,level:l}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==on.PARSING)return;const{data1:l,data2:c}=e;let u=l;if(l&&c&&(u=ot(l,c)),!((s=u)!=null&&s.length))return;const f={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:u};if(this.hls.trigger(d.BUFFER_APPENDING,f),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!wn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=wn.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),l=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-l>s&&this.flushMainBuffer(l,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!p(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const i=wn.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(i.nextStart,s.end)-t,r);return wn.bufferInfo(e,t,l)}}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=oe.MAIN){var n;const r=(n=this.fragmentTracker)==null?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,l=i.lowLatencyMode&&!!t.partList;let c=null;if(t.live){const h=i.initialLiveManifestSize;if(r<h)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${h})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var u;l&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),c=this.getInitialLiveFragment(t,n);const A=this.hls.startPosition,C=this.hls.liveSyncPosition,R=c?(A!==-1&&A>=s?A:C)||c.start:e;this.log(`Setting startPosition to ${R} to match start frag at live edge. mainStart: ${A} liveSyncPosition: ${C} frag.start: ${(u=c)==null?void 0:u.start}`),this.startPosition=this.nextLoadPosition=R}}else e<=s&&(c=n[0]);if(!c){const h=this.loadingParts?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,h,t)}let f=this.filterReplacedPrimary(c,t);if(!f&&c){const h=c.sn-t.startSN;f=this.filterReplacedPrimary(n[h+1]||null,t)}return this.mapToInitFragWhenRequired(f)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===$e.OK||n===$e.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(l!==null&&n.len+l.len>=i){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(mi(this.hls.config)){var e,t;if((e=this.hls.interstitialsManager)==null||(t=e.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(mi(this.hls.config)&&e.type!==oe.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const i=n==null?void 0:n.playerQueue;if(i)for(let s=i.length;s--;){const l=i[s].interstitial;if(l.appendInPlace&&e.start>=l.startTime&&e.end<=l.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let l=0,c=e.length;l<c;l++){const u=e[l];if(s=s&&!u.independent,r>-1&&n<u.start)break;const f=u.loaded;f?r=-1:(i||u.independent||s)&&u.fragment===t&&(r=l),i=f}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=yn(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=kn(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:l}=n;const{fragmentHint:c}=n,{maxFragLookUpTolerance:u}=r,f=n.partList,h=!!(this.loadingParts&&f!=null&&f.length&&c);h&&c&&!this.bitrateTest&&f[f.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let A;if(e<t){var C;const J=e<this.lastCurrentTime||e>t-u||(C=this.media)!=null&&C.paused||!this.startFragRequested?0:u;A=Zn(i,s,e,J)}else A=s[s.length-1];if(A){const R=A.sn-n.startSN,J=this.fragmentTracker.getState(A);if((J===$e.OK||J===$e.PARTIAL&&A.gap)&&(i=A),i&&A.sn===i.sn&&(!h||f[0].fragment.sn>A.sn||!n.live&&!h)&&i&&A.level===i.level){const Ae=s[R+1];A.sn<l&&this.fragmentTracker.getState(Ae)!==$e.OK?A=Ae:A=null}}return A}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,l=e.alignedSliding&&p(i);if(s||!l&&!i){bs(n,e);const c=e.fragmentStart;return this.log(`Live playlist sliding: ${c.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),c}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&p(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&ce(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==on.FRAG_LOADING_WAITING_RETRY)&&(this.state=on.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const R=this.getCurrentContext(t.chunkMeta);R&&(t.frag=R.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===O.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:l,flags:c,retryCount:u=0,retryConfig:f}=s||{},h=!!s&&!!f,A=h&&l===Kn.RetryRequest,C=h&&!s.resolved&&c===xe.MoveAllAlternatesMatchingHost;if(!A&&C&&ce(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),s.resolved=!0;else if((A||C)&&u<f.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const R=Me(f,u);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${u+1}/${f.maxNumRetry} in ${R}ms`),s.resolved=!0,this.retryDate=self.performance.now()+R,this.state=on.FRAG_LOADING_WAITING_RETRY}else if(f&&s)if(this.resetFragmentErrors(e),u<f.maxNumRetry)!i&&l!==Kn.RemoveAlternatePermanently&&(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${u})`);return}else l===Kn.SendAlternateToPenaltyBox?this.state=on.WAITING_LEVEL:this.state=on.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===on.PARSING||this.state===on.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===oe.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==on.STOPPED&&(this.state=on.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=wn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===on.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==on.STOPPED&&(this.state=on.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((c,u)=>{const f=e.elementaryStreams[u];if(f){const h=f.endPTS-f.startPTS;if(h<=0)return this.warn(`Could not parse fragment ${e.sn} ${u} duration reliably (${h})`),c||!1;const A=r?0:Sr(i,e,f.startPTS,f.endPTS,f.startDTS,f.endDTS);return this.hls.trigger(d.LEVEL_PTS_UPDATED,{details:i,level:n,drift:A,type:u,frag:e,start:f.startPTS,end:f.endPTS}),!0}return c},!1)){var l;if(n.fragmentError===0&&this.treatAsGap(e,n),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,error:c,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=on.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(d.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===oe.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((i=t&&!n?e.endPTS:(n||e).end)!=null?i:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function mi(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class rs{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=xs(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function xs(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}var is={exports:{}},ss;function Gi(){return ss||(ss=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,h,A){if(typeof f!="function")throw new TypeError("The listener must be a function");var C=new r(f,h||c,A),R=t?t+u:u;return c._events[R]?c._events[R].fn?c._events[R]=[c._events[R],C]:c._events[R].push(C):(c._events[R]=C,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,h;if(this._eventsCount===0)return u;for(h in f=this._events)e.call(f,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=t?t+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var A=0,C=h.length,R=new Array(C);A<C;A++)R[A]=h[A].fn;return R},l.prototype.listenerCount=function(u){var f=t?t+u:u,h=this._events[f];return h?h.fn?1:h.length:0},l.prototype.emit=function(u,f,h,A,C,R){var J=t?t+u:u;if(!this._events[J])return!1;var V=this._events[J],Ae=arguments.length,Ve,Ue;if(V.fn){switch(V.once&&this.removeListener(u,V.fn,void 0,!0),Ae){case 1:return V.fn.call(V.context),!0;case 2:return V.fn.call(V.context,f),!0;case 3:return V.fn.call(V.context,f,h),!0;case 4:return V.fn.call(V.context,f,h,A),!0;case 5:return V.fn.call(V.context,f,h,A,C),!0;case 6:return V.fn.call(V.context,f,h,A,C,R),!0}for(Ue=1,Ve=new Array(Ae-1);Ue<Ae;Ue++)Ve[Ue-1]=arguments[Ue];V.fn.apply(V.context,Ve)}else{var xt=V.length,wt;for(Ue=0;Ue<xt;Ue++)switch(V[Ue].once&&this.removeListener(u,V[Ue].fn,void 0,!0),Ae){case 1:V[Ue].fn.call(V[Ue].context);break;case 2:V[Ue].fn.call(V[Ue].context,f);break;case 3:V[Ue].fn.call(V[Ue].context,f,h);break;case 4:V[Ue].fn.call(V[Ue].context,f,h,A);break;default:if(!Ve)for(wt=1,Ve=new Array(Ae-1);wt<Ae;wt++)Ve[wt-1]=arguments[wt];V[Ue].fn.apply(V[Ue].context,Ve)}}return!0},l.prototype.on=function(u,f,h){return i(this,u,f,h,!1)},l.prototype.once=function(u,f,h){return i(this,u,f,h,!0)},l.prototype.removeListener=function(u,f,h,A){var C=t?t+u:u;if(!this._events[C])return this;if(!f)return s(this,C),this;var R=this._events[C];if(R.fn)R.fn===f&&(!A||R.once)&&(!h||R.context===h)&&s(this,C);else{for(var J=0,V=[],Ae=R.length;J<Ae;J++)(R[J].fn!==f||A&&!R[J].once||h&&R[J].context!==h)&&V.push(R[J]);V.length?this._events[C]=V.length===1?V[0]:V:s(this,C)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=t?t+u:u,this._events[f]&&s(this,f)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=t,l.EventEmitter=l,a.exports=l}(is)),is.exports}var as=Gi(),Bi=N(as);const os="1.6.2",ls={};function Vs(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Ys(){const a=ls[os];if(a)return a.clientCount++,a;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return ls[os]=r,r}function pa(a){const e=ls[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return ls[a]=r,r}function ma(a){const e=ls[a||os];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete ls[a||os],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Xs(a,e){return e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Ss(a,e){return e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Wi(a,e){let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t}function Hi(a,e){const t=e;let n=0;for(;Ss(a,e);){n+=10;const r=Wi(a,e+6);n+=r,Xs(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function Ns(a,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],s=i>>2&15;if(s>12){const C=new Error(`invalid ADTS sampling index:${s}`);a.emit(d.ERROR,d.ERROR,{type:ge.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!0,error:C,reason:C.message});return}const l=(i>>6&3)+1,c=e[t+3]>>6&3|(i&1)<<2,u="mp4a.40."+l,f=r[s];let h=s;(l===5||l===29)&&(h-=3);const A=[l<<3|(h&14)>>1,(h&1)<<7|c<<3];return j.log(`manifest codec:${n}, parsed codec:${u}, channels:${c}, rate:${f} (ADTS object type:${l} sampling index:${s})`),{config:A,samplerate:f,channelCount:c,codec:u,parsedCodec:u,manifestCodec:n}}function Ms(a,e){return a[e]===255&&(a[e+1]&246)===240}function Os(a,e){return a[e+1]&1?7:9}function ws(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function Qs(a,e){return e+5<a.length}function As(a,e){return e+1<a.length&&Ms(a,e)}function Js(a,e){return Qs(a,e)&&Ms(a,e)&&ws(a,e)<=a.length-e}function Fs(a,e){if(As(a,e)){const t=Os(a,e);if(e+t>=a.length)return!1;const n=ws(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||As(a,r)}return!1}function Bs(a,e,t,n,r){if(!a.samplerate){const i=Ns(e,t,n,r);if(!i)return;m(a,i)}}function Ts(a){return 1024*9e4/a}function qs(a,e){const t=Os(a,e);if(e+t<=a.length){const n=ws(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function $s(a,e,t,n,r){const i=Ts(a.samplerate),s=n+r*i,l=qs(e,t);let c;if(l){const{frameLength:h,headerLength:A}=l,C=A+h,R=Math.max(0,t+C-e.length);R?(c=new Uint8Array(C-A),c.set(e.subarray(t+A,e.length),0)):c=e.subarray(t+A,t+C);const J={unit:c,pts:s};return R||a.samples.push(J),{sample:J,length:C,missing:R}}const u=e.length-t;return c=new Uint8Array(u),c.set(e.subarray(t,e.length),0),{sample:{unit:c,pts:s},length:u,missing:-1}}function Tr(a,e){return Ss(a,e)&&Wi(a,e+6)+10<=a.length-e}function Dr(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}}function ii(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,info:"",data:e}}function gi(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,info:"",data:e}}function si(a){return btoa(String.fromCharCode(...a))}function Vi(a,e){if(a<0)return-Vi(-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 Yi(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 Xi(){try{return crypto.randomUUID()}catch(a){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}function gs(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function vs(a,e=0,t=1/0){return gl(a,e,t,Uint8Array)}function gl(a,e,t,n){const r=vl(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=yl(a)?a.byteOffset:0,l=(s+a.byteLength)/i,c=(s+e)/i,u=Math.floor(Math.max(0,Math.min(c,l))),f=Math.floor(Math.min(u+Math.max(t,0),l));return new n(r,u,f-u)}function vl(a){return a instanceof ArrayBuffer?a:a.buffer}function yl(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function _l(a){const e={key:a.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(a.size<2)return;if(a.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=a.data.subarray(1).indexOf(0);if(n===-1)return;const r=We(vs(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=We(vs(a.data,3+n,s));let c;return r==="-->"?c=We(vs(a.data,4+n+s)):c=gs(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=l,e.data=c,e}function El(a){return a.type==="PRIV"?Dr(a):a.type[0]==="W"?gi(a):a.type==="APIC"?_l(a):ii(a)}function bl(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Wi(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const ea=10,xl=10;function Xa(a){let e=0;const t=[];for(;Ss(a,e);){const n=Wi(a,e+6);a[e+5]>>6&1&&(e+=ea),e+=ea;const r=e+n;for(;e+xl<r;){const i=bl(a.subarray(e)),s=El(i);s&&t.push(s),e+=i.size+ea}Xs(a,e)&&(e+=ea)}return t}function Qa(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function Sl(a){if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}}function ga(a){const e=Xa(a);for(let t=0;t<e.length;t++){const n=e[t];if(Qa(n))return Sl(n)}}let bi=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function Ui(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class va{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=ot(this.cachedData,e),this.cachedData=null);let n=Hi(e,0),r=n?n.length:0,i;const s=this._audioTrack,l=this._id3Track,c=n?ga(n):void 0,u=e.length;for((this.basePTS===null||this.frameIndex===0&&p(c))&&(this.basePTS=wl(c,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:bi.audioId3,duration:Number.POSITIVE_INFINITY});r<u;){if(this.canParse(e,r)){const f=this.appendFrame(s,e,r);f?(this.frameIndex++,this.lastPTS=f.sample.pts,r+=f.length,i=r):r=u}else Tr(e,r)?(n=Hi(e,r),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:bi.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===u&&i!==u){const f=e.slice(i);this.cachedData?this.cachedData=ot(this.cachedData,f):this.cachedData=f}}return{audioTrack:s,videoTrack:Ui(),id3Track:l,textTrack:Ui()}}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:Ui(),id3Track:this._id3Track,textTrack:Ui()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const wl=(a,e,t)=>{if(p(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let ta=null;const Al=[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],Tl=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Cl=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Dl=[0,1,1,4];function Ja(a,e,t,n,r){if(t+24>e.length)return;const i=qa(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,l=n+r*s,c={unit:e.subarray(t,t+i.frameLength),pts:l,dts:l};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(c),{sample:c,length:i.frameLength,missing:0}}}function qa(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,l=a[e+3]>>6,c=t===3?3-n:n===3?3:4,u=Al[c*14+r-1]*1e3,h=Tl[(t===3?0:t===2?1:2)*3+i],A=l===3?1:2,C=Cl[t][n],R=Dl[n],J=C*8*R,V=Math.floor(C*u/h+s)*R;if(ta===null){const Ue=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ta=Ue?parseInt(Ue[1]):0}return!!ta&&ta<=87&&n===2&&u>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:h,channelCount:A,frameLength:V,samplesPerFrame:J}}}function ya(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function $a(a,e){return e+1<a.length&&ya(a,e)}function Rl(a,e){return ya(a,e)&&4<=a.length-e}function eo(a,e){if(e+1<a.length&&ya(a,e)){const n=qa(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||$a(a,i)}return!1}class Ll extends va{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Hi(e,0);let r=(n==null?void 0:n.length)||0;if(eo(e,r))return!1;for(let i=e.length;r<i;r++)if(Fs(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Js(e,t)}appendFrame(e,t,n){Bs(e,this.observer,t,n,e.manifestCodec);const r=$s(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const to=(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 l=Math.min(n,8),c=8-l;i[0]=4278190080>>>24+c<<c,r[0]=(s[0]&i[0])>>c,t=t?t<<l|r[0]:r[0],e+=1,n-=l}return t};class Il extends va{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=no(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=Hi(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&ga(t)!==void 0&&to(e,n)<16}}function no(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 l=[48e3,44100,32e3][i],c=e[t+4]&63,f=[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][c*3+i]*2;if(t+f>e.length)return-1;const h=e[t+6]>>5;let A=0;h===2?A+=2:(h&1&&h!==1&&(A+=2),h&4&&(A+=2));const C=(e[t+6]<<8|e[t+7])>>12-A&1,J=[2,1,2,3,3,4,4,5][h]+C,V=e[t+5]>>3,Ae=e[t+5]&7,Ve=new Uint8Array([i<<6|V<<1|Ae>>2,(Ae&3)<<6|h<<3|C<<2|c>>4,c<<4&224]),Ue=1536/l*9e4,xt=n+r*Ue,wt=e.subarray(t,t+f);return a.config=Ve,a.channelCount=J,a.samplerate=l,a.samples.push({unit:wt,pts:xt}),f}class kl extends va{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=Hi(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&ga(t)!==void 0&&to(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(eo(e,n))return j.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Rl(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Ja(e,t,n,this.basePTS,this.frameIndex)}}const Pl=/\/emsg[-/]ID3/i;class Nl{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=Ui("video",1),s=this.audioTrack=Ui("audio",1),l=this.txtTrack=Ui("text",1);if(this.id3Track=Ui("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const c=He(e);if(c.video){const{id:u,timescale:f,codec:h,supplemental:A}=c.video;i.id=u,i.timescale=l.timescale=f,i.codec=h,i.supplemental=A}if(c.audio){const{id:u,timescale:f,codec:h}=c.audio;s.id=u,s.timescale=f,s.codec=h}l.id=Oe.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return be(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=ot(this.remainderData,e));const l=Xe(n);this.remainderData=l.remainder,r.samples=l.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=_e(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=_e(e,t),{videoTrack:t,audioTrack:Ui(),id3Track:r,textTrack:Ui()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=B(e.samples,["emsg"]);r&&r.forEach(i=>{const s=_t(i);if(Pl.test(s.schemeIdUri)){const l=ro(s,t);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const u=s.payload;n.samples.push({data:u,len:u.byteLength,dts:l,pts:l,type:bi.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=ro(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:bi.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function ro(a,e){return p(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class Ml{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new jn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Gt.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(l=>{const c=new Uint8Array(l);r.set(c,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=Ge(i.data),l=this.getAvcEncryptedData(s);this.decryptBuffer(l.buffer).then(c=>{i.data=this.getAvcDecryptedUnit(s,c),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class io{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,l=[];let c=0,u,f,h,A=-1,C=0;for(i===-1&&(A=0,C=this.getNALuType(t,0),i=0,c=1);c<r;){if(u=t[c++],!i){i=u?0:1;continue}if(i===1){i=u?0:2;continue}if(!u)i=3;else if(u===1){if(f=c-i-1,A>=0){const R={data:t.subarray(A,f),type:C};l.push(R)}else{const R=this.getLastNalUnit(e.samples);R&&(s&&c<=4-s&&R.state&&(R.data=R.data.subarray(0,R.data.byteLength-s)),f>0&&(R.data=ot(R.data,t.subarray(0,f)),R.state=0))}c<r?(h=this.getNALuType(t,c),A=c,C=h,i=0):i=-1}else i=0}if(A>=0&&i>=0){const R={data:t.subarray(A,r),type:C,state:i};l.push(R)}if(l.length===0){const R=this.getLastNalUnit(e.samples);R&&(R.data=ot(R.data,t))}return e.naluState=i,l}}class Us{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&j.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class so extends io{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,c=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(u=>{var f,h;switch(u.type){case 1:{let J=!1;l=!0;const V=u.data;if(c&&V.length>4){const Ae=this.readSliceType(V);(Ae===2||Ae===4||Ae===7||Ae===9)&&(J=!0)}if(J){var A;(A=s)!=null&&A.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=J;break}case 5:l=!0,(f=s)!=null&&f.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,Qe(u.data,1,n.pts,t.samples);break}case 7:{var C,R;l=!0,c=!0;const J=u.data,V=this.readSPS(J);if(!e.sps||e.width!==V.width||e.height!==V.height||((C=e.pixelRatio)==null?void 0:C[0])!==V.pixelRatio[0]||((R=e.pixelRatio)==null?void 0:R[1])!==V.pixelRatio[1]){e.width=V.width,e.height=V.height,e.pixelRatio=V.pixelRatio,e.sps=[J];const Ae=J.subarray(1,4);let Ve="avc1.";for(let Ue=0;Ue<3;Ue++){let xt=Ae[Ue].toString(16);xt.length<2&&(xt="0"+xt),Ve+=xt}e.codec=Ve}break}case 8:l=!0,e.pps=[u.data];break;case 9:l=!0,e.audFound=!0,(h=s)!=null&&h.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(u)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new Us(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new Us(e);let n=0,r=0,i=0,s=0,l,c,u;const f=t.readUByte.bind(t),h=t.readBits.bind(t),A=t.readUEG.bind(t),C=t.readBoolean.bind(t),R=t.skipBits.bind(t),J=t.skipEG.bind(t),V=t.skipUEG.bind(t),Ae=this.skipScalingList.bind(this);f();const Ve=f();if(h(5),R(3),f(),V(),Ve===100||Ve===110||Ve===122||Ve===244||Ve===44||Ve===83||Ve===86||Ve===118||Ve===128){const qt=A();if(qt===3&&R(1),V(),V(),R(1),C())for(c=qt!==3?8:12,u=0;u<c;u++)C()&&(u<6?Ae(16,t):Ae(64,t))}V();const Ue=A();if(Ue===0)A();else if(Ue===1)for(R(1),J(),J(),l=A(),u=0;u<l;u++)J();V(),R(1);const xt=A(),wt=A(),rn=h(1);rn===0&&R(1),R(1),C()&&(n=A(),r=A(),i=A(),s=A());let At=[1,1];if(C()&&C())switch(f()){case 1:At=[1,1];break;case 2:At=[12,11];break;case 3:At=[10,11];break;case 4:At=[16,11];break;case 5:At=[40,33];break;case 6:At=[24,11];break;case 7:At=[20,11];break;case 8:At=[32,11];break;case 9:At=[80,33];break;case 10:At=[18,11];break;case 11:At=[15,11];break;case 12:At=[64,33];break;case 13:At=[160,99];break;case 14:At=[4,3];break;case 15:At=[3,2];break;case 16:At=[2,1];break;case 255:{At=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((xt+1)*16-n*2-r*2),height:(2-rn)*(wt+1)*16-(rn?2:4)*(i+s),pixelRatio:At}}}class ao extends io{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,c=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(u=>{var f,h;switch(u.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var A;(A=s)!=null&&A.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(f=s)!=null&&f.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,Qe(u.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=m(e.params,this.readVPS(u.data)),this.initVPS=u.data),e.vps=[u.data];break;case 33:if(l=!0,c=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],u.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const C=this.readSPS(u.data);e.width=C.width,e.height=C.height,e.pixelRatio=C.pixelRatio,e.codec=C.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const R in C.params)e.params[R]=C.params[R]}this.pushParameterSet(e.sps,u.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(l=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const C=this.readPPS(u.data);for(const R in C)e.params[R]=C[R]}this.pushParameterSet(e.pps,u.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(h=s)!=null&&h.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:l=!1;break}s&&l&&s.units.push(u)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new Us(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new Us(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),l=t.readUByte(),c=t.readUByte(),u=t.readUByte(),f=t.readUByte(),h=t.readUByte(),A=t.readUByte(),C=t.readUByte(),R=t.readUByte(),J=t.readUByte(),V=t.readUByte(),Ae=t.readUByte(),Ve=[],Ue=[];for(let Ur=0;Ur<n;Ur++)Ve.push(t.readBoolean()),Ue.push(t.readBoolean());if(n>0)for(let Ur=n;Ur<8;Ur++)t.readBits(2);for(let Ur=0;Ur<n;Ur++)Ve[Ur]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Ue[Ur]&&t.readUByte();t.readUEG();const xt=t.readUEG();xt==3&&t.skipBits(1);const wt=t.readUEG(),rn=t.readUEG(),At=t.readBoolean();let qt=0,dn=0,Ft=0,Nn=0;At&&(qt+=t.readUEG(),dn+=t.readUEG(),Ft+=t.readUEG(),Nn+=t.readUEG());const Yn=t.readUEG(),Ir=t.readUEG(),gr=t.readUEG(),hr=t.readBoolean();for(let Ur=hr?0:n;Ur<=n;Ur++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let di=0;di<4;di++)for(let Ti=0;Ti<(di===3?2:6);Ti++)if(!t.readBoolean())t.readUEG();else{const ki=Math.min(64,1<<4+(di<<1));di>1&&t.readEG();for(let Ps=0;Ps<ki;Ps++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const cr=t.readUEG();let Mn=0;for(let Ur=0;Ur<cr;Ur++){let di=!1;if(Ur!==0&&(di=t.readBoolean()),di){Ur===cr&&t.readUEG(),t.readBoolean(),t.readUEG();let Ti=0;for(let _s=0;_s<=Mn;_s++){const ki=t.readBoolean();let Ps=!1;ki||(Ps=t.readBoolean()),(ki||Ps)&&Ti++}Mn=Ti}else{const Ti=t.readUEG(),_s=t.readUEG();Mn=Ti+_s;for(let ki=0;ki<Ti;ki++)t.readUEG(),t.readBoolean();for(let ki=0;ki<_s;ki++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Ur=t.readUEG();for(let di=0;di<Ur;di++){for(let Ti=0;Ti<gr+4;Ti++)t.readBits(1);t.readBits(1)}}let xr=0,yr=1,Rr=1,Or=!0,Kr=1,Jr=0;t.readBoolean(),t.readBoolean();let hi=!1;if(t.readBoolean()){if(t.readBoolean()){const Es=t.readUByte(),ll=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ha=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Es>0&&Es<16?(yr=ll[Es-1],Rr=ha[Es-1]):Es===255&&(yr=t.readBits(16),Rr=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),hi=t.readBoolean(),hi&&(qt+=t.readUEG(),dn+=t.readUEG(),Ft+=t.readUEG(),Nn+=t.readUEG()),t.readBoolean()&&(Kr=t.readBits(32),Jr=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const ha=t.readBoolean(),ul=t.readBoolean();let Ws=!1;(ha||ul)&&(Ws=t.readBoolean(),Ws&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Ws&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let cl=0;cl<=n;cl++){Or=t.readBoolean();const nd=Or||t.readBoolean();let dl=!1;nd?t.readEG():dl=t.readBoolean();const fl=dl?1:t.readUEG()+1;if(ha)for(let Hs=0;Hs<fl;Hs++)t.readUEG(),t.readUEG(),Ws&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(ul)for(let Hs=0;Hs<fl;Hs++)t.readUEG(),t.readUEG(),Ws&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),xr=t.readUEG())}let hs=wt,ol=rn;if(At||hi){let Ur=1,di=1;xt===1?Ur=di=2:xt==2&&(Ur=2),hs=wt-Ur*dn-Ur*qt,ol=rn-di*Nn-di*Ft}const ed=r?["A","B","C"][r]:"",td=l<<24|c<<16|u<<8|f;let Va=0;for(let Ur=0;Ur<32;Ur++)Va=(Va|(td>>Ur&1)<<31-Ur)>>>0;let Ya=Va.toString(16);return s===1&&Ya==="2"&&(Ya="6"),{codecString:`hvc1.${ed}${s}.${Ya}.${i?"H":"L"}${Ae}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[l,c,u,f],general_constraint_indicator_flags:[h,A,C,R,J,V],general_level_idc:Ae,bit_depth:Yn+8,bit_depth_luma_minus8:Yn,bit_depth_chroma_minus8:Ir,min_spatial_segmentation_idc:xr,chroma_format_idc:xt,frame_rate:{fixed:Or,fps:Jr/Kr}},width:hs,height:ol,pixelRatio:[yr,Rr]}}readPPS(e){const t=new Us(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),i=t.readBoolean();let s=1;return i&&r?s=0:i?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const li=188;class us{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=us.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(li*5,t-li)+1,r=0;for(;r<n;){let i=!1,s=-1,l=0;for(let c=r;c<t;c+=li)if(e[c]===71&&(t-c===li||e[c+li]===71)){if(l++,s===-1&&(s=c,s!==0&&(n=Math.min(s+li*99,e.length-li)+1)),i||(i=_a(e,c)===0),i&&l>1&&(s===0&&l>2||c+li>n))return s}else{if(l)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Oe[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=us.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=us.createTrack("audio",r),this._id3Track=us.createTrack("id3"),this._txtTrack=us.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,u=this._txtTrack;let f=s.pid,h=s.pesData,A=l.pid,C=c.pid,R=l.pesData,J=c.pesData,V=null,Ae=this.pmtParsed,Ve=this._pmtId,Ue=e.length;if(this.remainderData&&(e=ot(this.remainderData,e),Ue=e.length,this.remainderData=null),Ue<li&&!r)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};const xt=Math.max(0,us.syncOffset(e));Ue-=(Ue-xt)%li,Ue<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Ue,e.buffer.byteLength-Ue));let wt=0;for(let At=xt;At<Ue;At+=li)if(e[At]===71){const qt=!!(e[At+1]&64),dn=_a(e,At),Ft=(e[At+3]&48)>>4;let Nn;if(Ft>1){if(Nn=At+5+e[At+4],Nn===At+li)continue}else Nn=At+4;switch(dn){case f:if(qt){if(h&&(i=Cs(h,this.logger))){if(this.videoParser===null)switch(s.segmentCodec){case"avc":this.videoParser=new so;break;case"hevc":this.videoParser=new ao;break}this.videoParser!==null&&this.videoParser.parsePES(s,u,i,!1)}h={data:[],size:0}}h&&(h.data.push(e.subarray(Nn,At+li)),h.size+=At+li-Nn);break;case A:if(qt){if(R&&(i=Cs(R,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,i);break;case"mp3":this.parseMPEGPES(l,i);break;case"ac3":this.parseAC3PES(l,i);break}R={data:[],size:0}}R&&(R.data.push(e.subarray(Nn,At+li)),R.size+=At+li-Nn);break;case C:qt&&(J&&(i=Cs(J,this.logger))&&this.parseID3PES(c,i),J={data:[],size:0}),J&&(J.data.push(e.subarray(Nn,At+li)),J.size+=At+li-Nn);break;case 0:qt&&(Nn+=e[Nn]+1),Ve=this._pmtId=Ol(e,Nn);break;case Ve:{qt&&(Nn+=e[Nn]+1);const Yn=Fl(e,Nn,this.typeSupported,n,this.observer,this.logger);f=Yn.videoPid,f>0&&(s.pid=f,s.segmentCodec=Yn.segmentVideoCodec),A=Yn.audioPid,A>0&&(l.pid=A,l.segmentCodec=Yn.segmentAudioCodec),C=Yn.id3Pid,C>0&&(c.pid=C),V!==null&&!Ae&&(this.logger.warn(`MPEG-TS PMT found at ${At} after unknown PID '${V}'. Backtracking to sync byte @${xt} to parse all TS packets.`),V=null,At=xt-188),Ae=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=dn;break}}else wt++;wt>0&&Ea(this.observer,new Error(`Found ${wt} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=h,l.pesData=R,c.pesData=J;const rn={audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};return r&&this.extractRemainingSamples(rn),rn}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,l=t.pesData,c=r.pesData;let u;if(s&&(u=Cs(s,this.logger))){if(this.videoParser===null)switch(n.segmentCodec){case"avc":this.videoParser=new so;break;case"hevc":this.videoParser=new ao;break}this.videoParser!==null&&(this.videoParser.parsePES(n,i,u,!0),n.pesData=null)}else n.pesData=s;if(l&&(u=Cs(l,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,u);break;case"mp3":this.parseMPEGPES(t,u);break;case"ac3":this.parseAC3PES(t,u);break}t.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=l;c&&(u=Cs(c,this.logger))?(this.parseID3PES(r,u),r.pesData=null):r.pesData=c}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Ml(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const h=r.missing,A=r.sample.unit.byteLength;if(h===-1)i=ot(r.sample.unit,i);else{const C=A-h;r.sample.unit.set(i.subarray(0,h),C),e.samples.push(r.sample),n=r.missing}}let s,l;for(s=n,l=i.length;s<l-1&&!As(i,s);s++);if(s!==n){let h;const A=s<l-1;if(A?h=`AAC PES did not start with ADTS header,offset:${s}`:h="No ADTS header found in AAC PES",Ea(this.observer,new Error(h),A,this.logger),!A)return}Bs(e,this.observer,i,s,this.audioCodec);let c;if(t.pts!==void 0)c=t.pts;else if(r){const h=Ts(e.samplerate);c=r.sample.pts+h}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0,f;for(;s<l;)if(f=$s(e,i,s,c,u),s+=f.length,f.missing){this.aacOverFlow=f;break}else for(u++;s<l-1&&!As(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const l=t.pts;if(l===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if($a(n,s)){const c=Ja(e,n,s,l,i);if(c)s+=c.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,l=0,c;for(;l<i&&(c=no(e,n,l,r,s++))>0;)l+=c}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=m({},t,{type:this._videoTrack?bi.emsg:bi.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function _a(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Ol(a,e){return(a[e+10]&31)<<8|a[e+11]}function Fl(a,e,t,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(a[e+1]&15)<<8|a[e+2],c=e+3+l-4,u=(a[e+10]&15)<<8|a[e+11];for(e+=12+u;e<c;){const f=_a(a,e),h=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){ba("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=f);break;case 21:s.id3Pid===-1&&(s.id3Pid=f);break;case 219:if(!n){ba("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=f);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="mp3");break;case 193:if(!n){ba("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&h>0){let A=e+5,C=h;for(;C>2;){switch(a[A]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=f,s.segmentAudioCodec="ac3");break}const J=a[A+1]+2;A+=J,C-=J}}break;case 194:case 135:return Ea(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=f,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=h+5}return s}function Ea(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(d.ERROR,d.ERROR,{type:ge.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function ba(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Cs(a,e){let t=0,n,r,i,s,l;const c=a.data;if(!a||a.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=ot(c[0],c[1]),c.splice(1,1);if(n=c[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>a.size-6)return null;const f=n[7];f&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,f&64?(l=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-l>60*9e4&&(e.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),i=n[8];let h=i+9;if(a.size<=h)return null;a.size-=h;const A=new Uint8Array(a.size);for(let C=0,R=c.length;C<R;C++){n=c[C];let J=n.byteLength;if(h)if(h>J){h-=J;continue}else n=n.subarray(h),J-=h,h=0;A.set(n,t),t+=J}return r&&(r-=i+3),{data:A,pts:s,dts:l,len:r}}return null}class Bl{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 cs=Math.pow(2,32)-1;class zt{static init(){zt.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in zt.types)zt.types.hasOwnProperty(e)&&(zt.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]);zt.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]);zt.STTS=zt.STSC=zt.STCO=i,zt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),zt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),zt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),zt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);zt.FTYP=zt.box(zt.types.ftyp,s,c,s,l),zt.DINF=zt.box(zt.types.dinf,zt.box(zt.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 zt.box(zt.types.hdlr,zt.HDLR_TYPES[e])}static mdat(e){return zt.box(zt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(cs+1)),r=Math.floor(t%(cs+1));return zt.box(zt.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 zt.box(zt.types.mdia,zt.mdhd(e.timescale||0,e.duration||0),zt.hdlr(e.type),zt.minf(e))}static mfhd(e){return zt.box(zt.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"?zt.box(zt.types.minf,zt.box(zt.types.smhd,zt.SMHD),zt.DINF,zt.stbl(e)):zt.box(zt.types.minf,zt.box(zt.types.vmhd,zt.VMHD),zt.DINF,zt.stbl(e))}static moof(e,t,n){return zt.box(zt.types.moof,zt.mfhd(e),zt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=zt.trak(e[t]);return zt.box.apply(null,[zt.types.moov,zt.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(zt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=zt.trex(e[t]);return zt.box.apply(null,[zt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(cs+1)),r=Math.floor(t%(cs+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 zt.box(zt.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 zt.box(zt.types.sdtp,n)}static stbl(e){return zt.box(zt.types.stbl,zt.stsd(e),zt.box(zt.types.stts,zt.STTS),zt.box(zt.types.stsc,zt.STSC),zt.box(zt.types.stsz,zt.STSZ),zt.box(zt.types.stco,zt.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 l=zt.box(zt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),c=e.width,u=e.height,f=e.pixelRatio[0],h=e.pixelRatio[1];return zt.box(zt.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,c>>8&255,c&255,u>>8&255,u&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]),l,zt.box(zt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),zt.box(zt.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,h>>24,h>>16&255,h>>8&255,h&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return zt.box(zt.types.mp4a,zt.audioStsd(e),zt.box(zt.types.esds,zt.esds(e)))}static mp3(e){return zt.box(zt.types[".mp3"],zt.audioStsd(e))}static ac3(e){return zt.box(zt.types["ac-3"],zt.audioStsd(e),zt.box(zt.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return zt.box(zt.types.stsd,zt.STSD,zt.mp4a(e));if(t==="ac3"&&e.config)return zt.box(zt.types.stsd,zt.STSD,zt.ac3(e));if(t==="mp3"&&e.codec==="mp3")return zt.box(zt.types.stsd,zt.STSD,zt.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return zt.box(zt.types.stsd,zt.STSD,zt.avc1(e));if(t==="hevc"&&e.vps)return zt.box(zt.types.stsd,zt.STSD,zt.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,s=Math.floor(n/(cs+1)),l=Math.floor(n%(cs+1));return zt.box(zt.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,l>>24,l>>16&255,l>>8&255,l&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=zt.sdtp(e),r=e.id,i=Math.floor(t/(cs+1)),s=Math.floor(t%(cs+1));return zt.box(zt.types.traf,zt.box(zt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),zt.box(zt.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])),zt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,zt.box(zt.types.trak,zt.tkhd(e),zt.mdia(e))}static trex(e){const t=e.id;return zt.box(zt.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 l,c,u,f,h,A;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),l=0;l<r;l++)c=n[l],u=c.duration,f=c.size,h=c.flags,A=c.cts,s.set([u>>>24&255,u>>>16&255,u>>>8&255,u&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&61440,h.degradPrio&15,A>>>24&255,A>>>16&255,A>>>8&255,A&255],12+16*l);return zt.box(zt.types.trun,s)}static initSegment(e){zt.types||zt.init();const t=zt.moov(e);return ot(zt.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=i.length;for(let R=0;R<n.length;R+=1){s+=3;for(let J=0;J<n[R].length;J+=1)s+=2+n[R][J].length}const l=new Uint8Array(s);l.set(i,0),s=i.length;const c=n.length-1;for(let R=0;R<n.length;R+=1){l.set(new Uint8Array([32+R|(R===c?128:0),0,n[R].length]),s),s+=3;for(let J=0;J<n[R].length;J+=1)l.set(new Uint8Array([n[R][J].length>>8,n[R][J].length&255]),s),s+=2,l.set(n[R][J],s),s+=n[R][J].length}const u=zt.box(zt.types.hvcC,l),f=e.width,h=e.height,A=e.pixelRatio[0],C=e.pixelRatio[1];return zt.box(zt.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,f>>8&255,f&255,h>>8&255,h&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,zt.box(zt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),zt.box(zt.types.pasp,new Uint8Array([A>>24,A>>16&255,A>>8&255,A&255,C>>24,C>>16&255,C>>8&255,C&255])))}}zt.types=void 0,zt.HDLR_TYPES=void 0,zt.STTS=void 0,zt.STSC=void 0,zt.STCO=void 0,zt.STSZ=void 0,zt.VMHD=void 0,zt.SMHD=void 0,zt.STSD=void 0,zt.FTYP=void 0,zt.DINF=void 0;const oo=9e4;function xa(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function Ul(a,e,t=1,n=!1){return xa(a,e,1/t,n)}function Zs(a,e=!1){return xa(a,1e3,1/oo,e)}function Zl(a,e=1){return xa(a,oo,1/e)}const Kl=10*1e3,zl=1024,jl=1152,Gl=1536;let Ds=null,Sa=null;function lo(a,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class na{constructor(e,t,n,r){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.ISGenerated=!1,Ds===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ds=s?parseInt(s[1]):0}if(Sa===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);Sa=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let l=s.pts,c=l-i;return c<-4294967296&&(t=!0,l=wi(l,n),c=l-i),c>0?i:l},n);return t&&this.logger.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,l,c){let u,f,h,A,C,R,J=i,V=i;const Ae=e.pid>-1,Ve=t.pid>-1,Ue=t.samples.length,xt=e.samples.length>0,wt=l&&Ue>0||Ue>1;if((!Ae||xt)&&(!Ve||wt)||this.ISGenerated||l){if(this.ISGenerated){var At,qt,dn,Ft;const gr=this.videoTrackConfig;(gr&&(t.width!==gr.width||t.height!==gr.height||((At=t.pixelRatio)==null?void 0:At[0])!==((qt=gr.pixelRatio)==null?void 0:qt[0])||((dn=t.pixelRatio)==null?void 0:dn[1])!==((Ft=gr.pixelRatio)==null?void 0:Ft[1]))||!gr&&wt||this.nextAudioPts===null&&xt)&&this.resetInitSegment()}this.ISGenerated||(h=this.generateIS(e,t,i,s));const Nn=this.isVideoContiguous;let Yn=-1,Ir;if(wt&&(Yn=Wl(t.samples),!Nn&&this.config.forceKeyFrameOnDiscontinuity))if(R=!0,Yn>0){this.logger.warn(`[mp4-remuxer]: Dropped ${Yn} out of ${Ue} video samples due to a missing keyframe`);const gr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Yn),t.dropped+=Yn,V+=(t.samples[0].pts-gr)/t.inputTimeScale,Ir=V}else Yn===-1&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${Ue} video samples`),R=!1);if(this.ISGenerated){if(xt&&wt){const gr=this.getVideoStartPts(t.samples),lr=(wi(e.samples[0].pts,gr)-gr)/t.inputTimeScale;J+=Math.max(0,lr),V+=Math.max(0,-lr)}if(xt){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(e,t,i,s)),f=this.remuxAudio(e,J,this.isAudioContiguous,s,Ve||wt||c===oe.AUDIO?V:void 0),wt){const gr=f?f.endPTS-f.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(e,t,i,s)),u=this.remuxVideo(t,V,Nn,gr)}}else wt&&(u=this.remuxVideo(t,V,Nn,0));u&&(u.firstKeyFrame=Yn,u.independent=Yn!==-1,u.firstKeyFramePTS=Ir)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(C=uo(n,i,this._initPTS,this._initDTS)),r.samples.length&&(A=co(r,i,this._initPTS))),{audio:f,video:u,initSegment:h,independent:R,text:A,id3:C}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,l=this.typeSupported,c={},u=this._initPTS;let f=!u||r,h="audio/mp4",A,C,R;if(f&&(A=C=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(h="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}c.audio={id:"audio",container:h,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):zt.initSegment([e]),metadata:{channelCount:e.channelCount}},f&&(R=e.inputTimeScale,!u||R!==u.timescale?A=C=i[0].pts-Math.round(R*n):f=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:zt.initSegment([t]),metadata:{width:t.width,height:t.height}},f)if(R=t.inputTimeScale,!u||R!==u.timescale){const J=this.getVideoStartPts(s),V=Math.round(R*n);C=Math.min(C,wi(s[0].dts,J)-V),A=Math.min(A,J-V)}else f=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,f?(this._initPTS={baseTime:A,timescale:R},this._initDTS={baseTime:C,timescale:R}):A=R=void 0,{tracks:c,initPTS:A,timescale:R}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,l=[],c=s.length,u=this._initPTS;let f=this.nextAvcDts,h=8,A=this.videoSampleDuration,C,R,J=Number.POSITIVE_INFINITY,V=Number.NEGATIVE_INFINITY,Ae=!1;if(!n||f===null){const Mn=t*i,Wn=s[0].pts-wi(s[0].dts,s[0].pts);Ds&&f!==null&&Math.abs(Mn-Wn-f)<15e3?n=!0:f=Mn-Wn}const Ve=u.baseTime*i/u.timescale;for(let Mn=0;Mn<c;Mn++){const Wn=s[Mn];Wn.pts=wi(Wn.pts-Ve,f),Wn.dts=wi(Wn.dts-Ve,f),Wn.dts<s[Mn>0?Mn-1:Mn].dts&&(Ae=!0)}Ae&&s.sort(function(Mn,Wn){const xr=Mn.dts-Wn.dts,yr=Mn.pts-Wn.pts;return xr||yr}),C=s[0].dts,R=s[s.length-1].dts;const Ue=R-C,xt=Ue?Math.round(Ue/(c-1)):A||e.inputTimeScale/30;if(n){const Mn=C-f,Wn=Mn>xt,xr=Mn<-1;if((Wn||xr)&&(Wn?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Zs(Mn,!0)} ms (${Mn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Zs(-Mn,!0)} ms (${Mn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!xr||f>=s[0].pts||Ds)){C=f;const yr=s[0].pts-Mn;if(Wn)s[0].dts=C,s[0].pts=yr;else{let Rr=!0;for(let Or=0;Or<s.length&&!(s[Or].dts>yr&&Rr);Or++){const Kr=s[Or].pts;if(s[Or].dts-=Mn,s[Or].pts-=Mn,Or<s.length-1){const Jr=s[Or+1].pts,hi=s[Or].pts,yi=Jr<=hi,hs=Jr<=Kr;Rr=yi==hs}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${Zs(yr,!0)}/${Zs(C,!0)}, delta: ${Zs(Mn,!0)} ms`)}}C=Math.max(0,C);let wt=0,rn=0,At=C;for(let Mn=0;Mn<c;Mn++){const Wn=s[Mn],xr=Wn.units,yr=xr.length;let Rr=0;for(let Or=0;Or<yr;Or++)Rr+=xr[Or].data.length;rn+=Rr,wt+=yr,Wn.length=Rr,Wn.dts<At?(Wn.dts=At,At+=xt/4|0||1):At=Wn.dts,J=Math.min(Wn.pts,J),V=Math.max(Wn.pts,V)}R=s[c-1].dts;const qt=rn+4*wt+8;let dn;try{dn=new Uint8Array(qt)}catch(Mn){this.observer.emit(d.ERROR,d.ERROR,{type:ge.MUX_ERROR,details:O.REMUX_ALLOC_ERROR,fatal:!1,error:Mn,bytes:qt,reason:`fail allocating video mdat ${qt}`});return}const Ft=new DataView(dn.buffer);Ft.setUint32(0,qt),dn.set(zt.types.mdat,4);let Nn=!1,Yn=Number.POSITIVE_INFINITY,Ir=Number.POSITIVE_INFINITY,gr=Number.NEGATIVE_INFINITY,hr=Number.NEGATIVE_INFINITY;for(let Mn=0;Mn<c;Mn++){const Wn=s[Mn],xr=Wn.units;let yr=0;for(let Kr=0,Jr=xr.length;Kr<Jr;Kr++){const hi=xr[Kr],yi=hi.data,hs=hi.data.byteLength;Ft.setUint32(h,hs),h+=4,dn.set(yi,h),h+=hs,yr+=4+hs}let Rr;if(Mn<c-1)A=s[Mn+1].dts-Wn.dts,Rr=s[Mn+1].pts-Wn.pts;else{const Kr=this.config,Jr=Mn>0?Wn.dts-s[Mn-1].dts:xt;if(Rr=Mn>0?Wn.pts-s[Mn-1].pts:xt,Kr.stretchShortVideoTrack&&this.nextAudioPts!==null){const hi=Math.floor(Kr.maxBufferHole*i),yi=(r?J+r*i:this.nextAudioPts)-Wn.pts;yi>hi?(A=yi-Jr,A<0?A=Jr:Nn=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${yi/90} ms to the next segment; using duration ${A/90} ms for the last video frame.`)):A=Jr}else A=Jr}const Or=Math.round(Wn.pts-Wn.dts);Yn=Math.min(Yn,A),gr=Math.max(gr,A),Ir=Math.min(Ir,Rr),hr=Math.max(hr,Rr),l.push(lo(Wn.key,A,yr,Or))}if(l.length){if(Ds){if(Ds<70){const Mn=l[0].flags;Mn.dependsOn=2,Mn.isNonSync=0}}else if(Sa&&hr-Ir<gr-Yn&&xt/gr<.025&&l[0].cts===0){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Mn=C;for(let Wn=0,xr=l.length;Wn<xr;Wn++){const yr=Mn+l[Wn].duration,Rr=Mn+l[Wn].cts;if(Wn<xr-1){const Or=yr+l[Wn+1].cts;l[Wn].duration=Or-Rr}else l[Wn].duration=Wn?l[Wn-1].duration:xt;l[Wn].cts=0,Mn=yr}}}A=Nn||!A?xt:A,this.nextAvcDts=f=R+A,this.videoSampleDuration=A,this.isVideoContiguous=!0;const cr={data1:zt.moof(e.sequenceNumber++,C,m(e,{samples:l})),data2:dn,startPTS:J/i,endPTS:(V+A)/i,startDTS:C/i,endDTS:f/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,cr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return jl;case"ac3":return Gl;default:return zl}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,c=s/l,u=this.getSamplesPerFrame(e),f=u*c,h=this._initPTS,A=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,C=[],R=i!==void 0;let J=e.samples,V=A?0:8,Ae=this.nextAudioPts||-1;const Ve=t*s,Ue=h.baseTime*s/h.timescale;if(this.isAudioContiguous=n=n||J.length&&Ae>0&&(r&&Math.abs(Ve-Ae)<9e3||Math.abs(wi(J[0].pts-Ue,Ve)-Ae)<20*f),J.forEach(function(lr){lr.pts=wi(lr.pts-Ue,Ve)}),!n||Ae<0){if(J=J.filter(lr=>lr.pts>=0),!J.length)return;i===0?Ae=0:r&&!R?Ae=Math.max(0,Ve):Ae=J[0].pts}if(e.segmentCodec==="aac"){const lr=this.config.maxAudioFramesDrift;for(let pr=0,cr=Ae;pr<J.length;pr++){const Mn=J[pr],Wn=Mn.pts,xr=Wn-cr,yr=Math.abs(1e3*xr/s);if(xr<=-lr*f&&R)pr===0&&(this.logger.warn(`Audio frame @ ${(Wn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*xr/s)} ms.`),this.nextAudioPts=Ae=cr=Wn);else if(xr>=lr*f&&yr<Kl&&R){let Rr=Math.round(xr/f);cr=Wn-Rr*f,cr<0&&(Rr--,cr+=f),pr===0&&(this.nextAudioPts=Ae=cr),this.logger.warn(`[mp4-remuxer]: Injecting ${Rr} audio frame @ ${(cr/s).toFixed(3)}s due to ${Math.round(1e3*xr/s)} ms gap.`);for(let Or=0;Or<Rr;Or++){const Kr=Math.max(cr,0);let Jr=Bl.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Jr||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Jr=Mn.unit.subarray()),J.splice(pr,0,{unit:Jr,pts:Kr}),cr+=f,pr++}}Mn.pts=cr,cr+=f}}let xt=null,wt=null,rn,At=0,qt=J.length;for(;qt--;)At+=J[qt].unit.byteLength;for(let lr=0,pr=J.length;lr<pr;lr++){const cr=J[lr],Mn=cr.unit;let Wn=cr.pts;if(wt!==null){const yr=C[lr-1];yr.duration=Math.round((Wn-wt)/c)}else if(n&&e.segmentCodec==="aac"&&(Wn=Ae),xt=Wn,At>0){At+=V;try{rn=new Uint8Array(At)}catch(yr){this.observer.emit(d.ERROR,d.ERROR,{type:ge.MUX_ERROR,details:O.REMUX_ALLOC_ERROR,fatal:!1,error:yr,bytes:At,reason:`fail allocating audio mdat ${At}`});return}A||(new DataView(rn.buffer).setUint32(0,At),rn.set(zt.types.mdat,4))}else return;rn.set(Mn,V);const xr=Mn.byteLength;V+=xr,C.push(lo(!0,u,xr,0)),wt=Wn}const dn=C.length;if(!dn)return;const Ft=C[C.length-1];this.nextAudioPts=Ae=wt+c*Ft.duration;const Nn=A?new Uint8Array(0):zt.moof(e.sequenceNumber++,xt/c,m({},e,{samples:C}));e.samples=[];const Yn=xt/s,Ir=Ae/s,hr={data1:Nn,data2:rn,startPTS:Yn,endPTS:Ir,startDTS:Yn,endDTS:Ir,type:"audio",hasAudio:!0,hasVideo:!1,nb:dn};return this.isAudioContiguous=!0,hr}}function wi(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 Wl(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function uo(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let l=0;l<r;l++){const c=a.samples[l];c.pts=wi(c.pts-t.baseTime*i/t.timescale,e*i)/i,c.dts=wi(c.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function co(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const l=a.samples[s];l.pts=wi(l.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,l)=>s.pts-l.pts);const i=a.samples;return a.samples=[],{samples:i}}class Hl{constructor(e,t,n,r){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.logger=r}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(de(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=He(e);r.audio&&(t=fo(r.audio,v.AUDIO)),r.video&&(n=fo(r.video,v.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var l,c;let{initPTS:u,lastEndTime:f}=this;const h={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};p(f)||(f=this.lastEndTime=i||0);const A=t.samples;if(!(A!=null&&A.length))return h;const C={initPTS:void 0,timescale:1};let R=this.initData;if((l=R)!=null&&l.length||(this.generateInitSegment(A),R=this.initData),!((c=R)!=null&&c.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(C.tracks=this.initTracks,this.emitInitSegment=!1);const J=Te(A,R),V=De(R,A),Ae=V===null?i:V;(s||!u)&&(Vl(u,Ae,i,J)||C.timescale!==u.timescale)&&(C.initPTS=Ae-i,u&&u.timescale===1&&this.logger.warn(`Adjusting initPTS @${i} from ${u.baseTime/u.timescale} to ${C.initPTS}`),this.initPTS=u={baseTime:C.initPTS,timescale:1});const Ve=e?Ae-u.baseTime/u.timescale:f,Ue=Ve+J;ze(R,A,u.baseTime/u.timescale),J>0?this.lastEndTime=Ue:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const xt=!!R.audio,wt=!!R.video;let rn="";xt&&(rn+="audio"),wt&&(rn+="video");const At={data1:A,startPTS:Ve,startDTS:Ve,endPTS:Ue,endDTS:Ue,type:rn,hasAudio:xt,hasVideo:wt,nb:1,dropped:0};return h.audio=At.type==="audio"?At:void 0,h.video=At.type!=="audio"?At:void 0,h.initSegment=C,h.id3=uo(n,i,u,u),r.samples.length&&(h.text=co(r,i,u)),h}}function Vl(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 fo(a,e){const t=a==null?void 0:a.codec;return t&&t.length>4?t:e===v.AUDIO?t==="ec-3"||t==="ac-3"||t==="alac"?t:t==="fLaC"||t==="Opus"?Rt(t,!1):(j.warn(`Unhandled audio codec "${t}" in mp4 MAP`),t||"mp4a"):(j.warn(`Unhandled video codec "${t}" in mp4 MAP`),t||"avc1")}let Qi;try{Qi=self.performance.now.bind(self.performance)}catch(a){Qi=Date.now}const ra=[{demux:Nl,remux:Hl},{demux:us,remux:na},{demux:Ll,remux:na},{demux:kl,remux:na}];ra.splice(2,0,{demux:Il,remux:na});class ho{constructor(e,t,n,r,i,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=Qi();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:c}=this;r&&(this.currentTransmuxState=r);const{contiguous:u,discontinuity:f,trackSwitch:h,accurateTimeOffset:A,timeOffset:C,initSegmentChange:R}=r||l,{audioCodec:J,videoCodec:V,defaultInitPts:Ae,duration:Ve,initSegmentData:Ue}=c,xt=Yl(s,t);if(xt&&Br(xt.method)){const qt=this.getDecrypter(),dn=Nr(xt.method);if(qt.isSync()){let Ft=qt.softwareDecrypt(s,xt.key.buffer,xt.iv.buffer,dn);if(n.part>-1){const Yn=qt.flush();Ft=Yn&&Yn.buffer}if(!Ft)return i.executeEnd=Qi(),wa(n);s=new Uint8Array(Ft)}else return this.asyncResult=!0,this.decryptionPromise=qt.webCryptoDecrypt(s,xt.key.buffer,xt.iv.buffer,dn).then(Ft=>{const Nn=this.push(Ft,null,n);return this.decryptionPromise=null,Nn}),this.decryptionPromise}const wt=this.needsProbing(f,h);if(wt){const qt=this.configureTransmuxer(s);if(qt)return this.logger.warn(`[transmuxer] ${qt.message}`),this.observer.emit(d.ERROR,d.ERROR,{type:ge.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,error:qt,reason:qt.message}),i.executeEnd=Qi(),wa(n)}(f||h||R||wt)&&this.resetInitSegment(Ue,J,V,Ve,t),(f||R||wt)&&this.resetInitialTimestamp(Ae),u||this.resetContiguity();const rn=this.transmux(s,xt,C,A,n);this.asyncResult=Ks(rn);const At=this.currentTransmuxState;return At.contiguous=!0,At.discontinuity=!1,At.trackSwitch=!1,i.executeEnd=Qi(),rn}flush(e){const t=e.transmuxing;t.executeStart=Qi();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:l}=r;if(n){const h=n.flush();h&&s.push(this.push(h.buffer,null,e))}const{demuxer:c,remuxer:u}=this;if(!c||!u){t.executeEnd=Qi();const h=[wa(e)];return this.asyncResult?Promise.resolve(h):h}const f=c.flush(l);return Ks(f)?(this.asyncResult=!0,f.then(h=>(this.flushRemux(s,h,e),s))):(this.flushRemux(s,f,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:l}=t,{accurateTimeOffset:c,timeOffset:u}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===oe.MAIN?"level":"track"} ${n.level}`);const f=this.remuxer.remux(r,i,s,l,u,c,!0,this.id);e.push({remuxResult:f,chunkMeta:n}),n.transmuxing.executeEnd=Qi()}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:l}=this;!s||!l||(s.resetInitSegment(e,t,n,r),l.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:l,textTrack:c}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,l,c,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let h=0,A=ra.length;h<A;h++){var s;if((s=ra[h].demux)!=null&&s.probe(e,this.logger)){i=ra[h];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,c=this.remuxer,u=i.remux,f=i.demux;(!c||!(c instanceof u))&&(this.remuxer=new u(n,t,r,this.logger)),(!l||!(l instanceof f))&&(this.demuxer=new f(n,t,r,this.logger),this.probe=f.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new jn(this.config)),e}}function Yl(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 wa=a=>({remuxResult:{},chunkMeta:a});function Ks(a){return"then"in a&&a.then instanceof Function}class Xl{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 Ql{constructor(e,t,n,r,i,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}let po=0;class mo{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=po++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const u=c.data,f=this.hls;if(!(!f||!(u!=null&&u.event)||u.instanceNo!==this.instanceNo))switch(u.event){case"init":{var h;const A=(h=this.workerContext)==null?void 0:h.objectURL;A&&self.URL.revokeObjectURL(A);break}case"transmuxComplete":{this.handleTransmuxComplete(u.data);break}case"flush":{this.onFlush(u.data);break}case"workerLog":{f.logger[u.data.logType]&&f.logger[u.data.logType](u.data.message);break}default:{u.data=u.data||{},u.data.frag=this.frag,u.data.part=this.part,u.data.id=this.id,f.trigger(u.event,u.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const u=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:u})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(c,u)=>{u=u||{},u.frag=this.frag||void 0,c===d.ERROR&&(u=u,u.parent=this.id,u.part=this.part,this.error=u.error),this.hls.trigger(c,u)};this.observer=new Bi,this.observer.on(d.FRAG_DECRYPTED,s),this.observer.on(d.ERROR,s);const l=H(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const c=this.hls.logger;if(i.workerPath||Vs()){try{i.workerPath?(c.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=pa(i.workerPath)):(c.log(`injecting Web Worker for "${t}"`),this.workerContext=Ys());const{worker:f}=this.workerContext;f.addEventListener("message",this.onWorkerMessage),f.addEventListener("error",this.onWorkerError),f.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:t,config:Jt(i)})}catch(f){c.warn(`Error setting up "${t}" Web Worker, fallback to inline`,f),this.terminateWorker(),this.error=null,this.transmuxer=new ho(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new ho(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=po++;const t=this.hls.config,n=H(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:Jt(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),ma(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,l,c,u,f){var h,A;u.transmuxing.start=self.performance.now();const{instanceNo:C,transmuxer:R}=this,J=s?s.start:i.start,V=i.decryptdata,Ae=this.frag,Ve=!(Ae&&i.cc===Ae.cc),Ue=!(Ae&&u.level===Ae.level),xt=Ae?u.sn-Ae.sn:-1,wt=this.part?u.part-this.part.index:-1,rn=xt===0&&u.id>1&&u.id===(Ae==null?void 0:Ae.stats.chunkCount),At=!Ue&&(xt===1||xt===0&&(wt===1||rn&&wt<=0)),qt=self.performance.now();(Ue||xt||i.stats.parsing.start===0)&&(i.stats.parsing.start=qt),s&&(wt||!At)&&(s.stats.parsing.start=qt);const dn=!(Ae&&((h=i.initSegment)==null?void 0:h.url)===((A=Ae.initSegment)==null?void 0:A.url)),Ft=new Ql(Ve,At,c,Ue,J,dn);if(!At||Ve||dn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${u.sn}${u.part>-1?" part: "+u.part:""} ${this.id===oe.MAIN?"level":"track"}: ${u.level} id: ${u.id}
|
|
discontinuity: ${Ve}
|
|
trackSwitch: ${Ue}
|
|
contiguous: ${At}
|
|
accurateTimeOffset: ${c}
|
|
timeOffset: ${J}
|
|
initSegmentChange: ${dn}`);const Nn=new Xl(n,r,t,l,f);this.configureTransmuxer(Nn)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:C,cmd:"demux",data:e,decryptdata:V,chunkMeta:u,state:Ft},e instanceof ArrayBuffer?[e]:[]);else if(R){const Nn=R.push(e,V,u,Ft);Ks(Nn)?Nn.then(Yn=>{this.handleTransmuxComplete(Yn)}).catch(Yn=>{this.transmuxerError(Yn,u,"transmuxer-interface push error")}):this.handleTransmuxComplete(Nn)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);Ks(r)?r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const go=100;class Jl extends ti{constructor(e,t,n){super(e,t,n,"audio-stream-controller",oe.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(d.BUFFER_RESET,this.onBufferReset,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(d.BUFFER_RESET,this.onBufferReset,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n===oe.MAIN){const s=t.cc,l=this.fragCurrent;if(this.initPTS[s]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}/${i}`),this.mainAnchor=t,this.state===on.WAITING_INIT_PTS){const c=this.waitingData;(!c&&!this.loadingParts||c&&c.frag.cc!==s)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&l&&l.cc!==s?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,l.abortRequests(),this.resetLoadingState()):this.state===on.IDLE&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),n=e.cc;return qn(t,n,e)||t&&kn(t.fragments,n)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=on.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(go),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=on.IDLE):this.state=on.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case on.IDLE:this.doTickIdle();break;case on.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=on.WAITING_INIT_PTS}break}case on.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,trackId:i}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((r==null?void 0:r[i])||null),this.state=on.IDLE}break}case on.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:s}=t,l=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=on.FRAG_LOADING;const c=i.flush().buffer,u={frag:n,part:r,payload:c,networkDetails:null};this._handleFragmentLoadProgress(u),s&&super._handleFragmentLoadComplete(u)}else l&&l.cc!==t.frag.cc&&(this.log(`Waiting fragment cc (${n.cc}) cancelled because video is at cc ${l.cc}`),this.nextLoadPosition=this.findSyncFrag(l).start,this.clearWaitingFragment())}else this.state=on.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==on.STOPPED&&(this.state=on.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const l=n[i],c=l.details;if(!c||this.waitForLive(l)||this.waitForCdnTuneIn(c)){this.state=on.WAITING_TRACK,this.startFragRequested=!1;return}const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,v.AUDIO,oe.AUDIO));const f=this.getFwdBufferInfo(u,oe.AUDIO);if(f===null)return;if(!this.switchingTrack&&this._streamEnded(f,c)){t.trigger(d.BUFFER_EOS,{type:"audio"}),this.state=on.ENDED;return}const h=f.len,A=t.maxBufferLength,C=c.fragments,R=C[0].start,J=this.getLoadPosition(),V=this.flushing?J:f.end;if(this.switchingTrack&&r){const Ue=J;c.PTSKnown&&Ue<R&&(f.end>R||f.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=R+.05)}if(h>=A&&!this.switchingTrack&&V<C[C.length-1].start)return;let Ae=this.getNextFragment(V,c);if(Ae&&this.isLoopLoading(Ae,V)&&(Ae=this.getNextFragmentLoopLoading(Ae,c,f,oe.MAIN,A)),!Ae){this.bufferFlushed=!0;return}let Ve=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Ve&&ce(Ae)&&!Ae.endList&&(!c.live||!this.loadingParts&&V<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Ve)===$e.OK&&(this.mainFragLoading=Ve=null),Ve&&ce(Ve))){if(Ae.start>Ve.end){const xt=this.fragmentTracker.getFragAtPos(V,oe.MAIN);xt&&xt.end>Ve.end&&(Ve=xt,this.mainFragLoading={frag:xt,targetBufferTime:null})}if(Ae.start>Ve.end)return}this.loadFragment(Ae,l,V)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Lt(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==on.STOPPED&&(this.setInterval(go),this.state=on.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(d.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:s,groupId:l,track:c}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${c.name}" of "${l}"`);return}const u=this.mainDetails;if(!u||i.endCC>u.endCC||u.expired){this.cachedTrackLoadedData=t,this.state!==on.STOPPED&&(this.state=on.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const f=r[s];let h=0;if(i.live||(n=f.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(f.details){var A;h=this.alignPlaylists(i,f.details,(A=this.levelLastLoaded)==null?void 0:A.details)}i.alignedSliding||(Qr(i,u),i.alignedSliding||Pr(i,u),h=i.fragmentStart)}f.details=i,this.levelLastLoaded=f,this.startFragRequested||this.setStartPosition(u,h),this.hls.trigger(d.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===on.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=on.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:s,trackId:l,levels:c}=this;if(!c){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 u=c[l];if(!u){this.warn("Audio track is undefined on fragment load progress");return}const f=u.details;if(!f){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const h=s.defaultAudioCodec||u.audioCodec||"mp4a.40.2";let A=this.transmuxer;A||(A=this.transmuxer=new mo(this.hls,oe.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const C=this.initPTS[n.cc],R=(t=n.initSegment)==null?void 0:t.data;if(C!==void 0){const V=r?r.index:-1,Ae=V!==-1,Ve=new tr(n.level,n.sn,n.stats.chunkCount,i.byteLength,V,Ae);A.push(i,R,h,"",n,r,f.totalduration,!1,Ve,C)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${f.startSN} ,${f.endSN}],track ${l}`);const{cache:J}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new rs,complete:!1};J.push(new Uint8Array(i)),this.state!==on.STOPPED&&(this.state=on.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===oe.MAIN&&ce(t.frag)&&(this.mainFragLoading=t,this.state===on.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==oe.AUDIO){!this.audioOnly&&n.type===oe.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(ce(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(d.AUDIO_TRACK_SWITCHED,x({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=on.ERROR;return}switch(t.details){case O.FRAG_GAP:case O.FRAG_PARSING_ERROR:case O.FRAG_DECRYPT_ERROR:case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(oe.AUDIO,t);break;case O.AUDIO_TRACK_LOAD_ERROR:case O.AUDIO_TRACK_LOAD_TIMEOUT:case O.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===on.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===ve.AUDIO_TRACK&&(this.state=on.IDLE);break;case O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.resetLoadingState();break;case O.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case O.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==v.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==v.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===on.ENDED&&(this.state=on.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,oe.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:u,level:f}=l,{details:h}=f,{audio:A,text:C,id3:R,initSegment:J}=i;if(this.fragContextChanged(c)||!h){this.fragmentTracker.removeFragment(c);return}if(this.state=on.PARSING,this.switchingTrack&&A&&this.completeAudioSwitch(this.switchingTrack),J!=null&&J.tracks){const V=c.initSegment||c;this._bufferInitSegment(f,J.tracks,V,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:V,id:n,tracks:J.tracks})}if(A){const{startPTS:V,endPTS:Ae,startDTS:Ve,endDTS:Ue}=A;u&&(u.elementaryStreams[v.AUDIO]={startPTS:V,endPTS:Ae,startDTS:Ve,endDTS:Ue}),c.setElementaryStreamInfo(v.AUDIO,V,Ae,Ve,Ue),this.bufferFragmentData(A,c,u,s)}if(R!=null&&(t=R.samples)!=null&&t.length){const V=m({id:n,frag:c,details:h},R);r.trigger(d.FRAG_PARSING_METADATA,V)}if(C){const V=m({id:n,frag:c,details:h},C);r.trigger(d.FRAG_PARSING_USERDATA,V)}}_bufferInitSegment(e,t,n,r){if(this.state!==on.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=oe.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(d.BUFFER_CODECS,t);const l=i.initSegment;if(l!=null&&l.byteLength){const c={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:l};this.hls.trigger(d.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===$e.NOT_LOADED||r===$e.PARTIAL){var i;if(!ce(e))this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=on.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&Pr(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l}=this.bufferedTrack;St({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l},e,Ht)||(vn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(d.AUDIO_TRACK_SWITCHED,x({},e))}}class Aa extends Y{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const l=r[s];let c;try{c=new self.URL(l.URI,t.url).href}catch(u){this.warn(`Could not construct new URL for Rendition Report: ${u}`),c=l.URI||""}if(c===e){i=s;break}else c===e.substring(0,c.length)&&(i=s)}if(i!==-1){const s=r[i],l=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let c=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const f=Math.min(t.age-t.partTarget,t.targetduration);c>=0&&f>t.partTarget&&(c+=1)}const u=n&&Je(n);return new gt(l,c>=0?c:void 0,u)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),l=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-l;const c=this.hls.config.timelineOffset;if(c!==r.appliedTimelineOffset){const f=Math.max(c||0,0);r.appliedTimelineOffset=f,r.fragments.forEach(h=>{h.start=h.playlistOffset+f})}if(r.live||n!=null&&n.live){const f="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){fr(n,r);const Ve=r.playlistParsingError;if(Ve){this.warn(Ve);const Ue=this.hls;if(!Ue.config.ignorePlaylistParsingErrors){var u;const{networkDetails:xt}=t;Ue.trigger(d.ERROR,{type:ge.NETWORK_ERROR,details:O.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:Ve,reason:Ve.message,level:t.level||void 0,parent:(u=r.fragments[0])==null?void 0:u.type,networkDetails:xt,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const h=this.hls.mainForwardBufferInfo,A=h?h.end-h.len:0,C=(r.edge-A)*1e3,R=ui(r,C);if(r.requestScheduled+R<s?r.requestScheduled=s:r.requestScheduled+=R,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let J,V,Ae;if(r.canBlockReload&&r.endSN&&r.advanced){const Ve=this.hls.config.lowLatencyMode,Ue=r.lastPartSn,xt=r.endSN,wt=r.lastPartIndex,rn=wt!==-1,At=Ue===xt;rn?At?(V=xt+1,Ae=Ve?0:wt):(V=Ue,Ae=Ve?wt+1:r.maxPartIndex):V=xt+1;const qt=r.age,dn=qt+r.ageHeader;let Ft=Math.min(dn-r.partTarget,r.targetduration*1.5);if(Ft>0){if(dn>r.targetduration*3)this.log(`Playlist last advanced ${qt.toFixed(2)}s ago. Omitting segment and part directives.`),V=void 0,Ae=void 0;else if(n!=null&&n.tuneInGoal&&dn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Ft} with playlist age: ${r.age}`),Ft=0;else{const Nn=Math.floor(Ft/r.targetduration);if(V+=Nn,Ae!==void 0){const Yn=Math.round(Ft%r.targetduration/r.partTarget);Ae+=Yn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${qt.toFixed(2)}s goal: ${Ft} skip sn ${Nn} to part ${Ae}`)}r.tuneInGoal=Ft}if(J=this.getDeliveryDirectives(r,t.deliveryDirectives,V,Ae),Ve||!At){r.requestScheduled=s,this.loadingPlaylist(f,J);return}}else(r.canBlockReload||r.canSkipUntil)&&(J=this.getDeliveryDirectives(r,t.deliveryDirectives,V,Ae));J&&V!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(R-l*2,R/2)),this.scheduleLoading(f,J,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=r.requestScheduled;if(i>=s){this.loadingPlaylist(e,t);return}const l=s-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),l)}getDeliveryDirectives(e,t,n,r){let i=Je(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=dt.No),new gt(n,r,i)}checkRetry(e){const t=e.details,n=pn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=r||{},c=!!r&&!!l&&(i===Kn.RetryRequest||!r.resolved&&i===Kn.SendAlternateToPenaltyBox);if(c){var u;if(s>=l.maxNumRetry)return!1;if(n&&(u=e.context)!=null&&u.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const f=Me(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),f),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" in ${f}ms`)}e.levelRetry=!0,r.resolved=!0}return c}}function vo(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!zs(a[t].attrs,e[t].attrs))return!1;return!0}function zs(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 Ta(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class ql extends Aa{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(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(d.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 l=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,l)}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(l=>(r==null?void 0:r.indexOf(l))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(A=>!n||n.indexOf(A.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(A=>A.default)&&(this.selectDefaultTrack=!1),l.forEach((A,C)=>{A.id=C});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!i&&c){const A=it(c,l,Ht);if(A>-1)i=l[A];else{const C=it(c,this.tracks);i=this.tracks[C]}}let u=this.findTrackId(i);u===-1&&i&&(u=this.findTrackId(null));const f={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(d.AUDIO_TRACKS_UPDATED,f);const h=this.trackId;if(u!==-1&&h===-1)this.setAudioTrack(u);else if(l.length&&h===-1){var s;const A=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(A.message),this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:A})}}}onError(e,t){t.fatal||!t.context||t.context.type===ve.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&St(e,r,Ht))return r;const i=it(e,this.tracksInGroup,Ht);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 l=en(e,t.levels,n,s,Ht);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=it(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(d.AUDIO_TRACK_SWITCHING,x({},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||St(e,r,Ht)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c}=e;for(let u=0;u<t.length;u++){const f=t[u];if(St({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c},f,Ht))return u}for(let u=0;u<t.length;u++){const f=t[u];if(zs(e.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(let u=0;u<t.length;u++){const f=t[u];if(zs(e.attrs,f.attrs,["LANGUAGE"]))return u}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&vn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(d.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class $l{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){var n;if(r.onError(i),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
|
|
${this.list("video")}
|
|
${this.list("audio")}
|
|
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const yo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,_o="HlsJsTrackRemovedError";class eu extends Error{constructor(e){super(e),this.name=_o}}class tu extends Y{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:i}=this;n&&this.log("Media source opened"),!(!r||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(d.MEDIA_ATTACHED,{media:r,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=ue(q(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.BUFFER_RESET,this.onBufferReset,this),e.on(d.BUFFER_APPENDING,this.onBufferAppending,this),e.on(d.BUFFER_CODECS,this.onBufferCodecs,this),e.on(d.BUFFER_EOS,this.onBufferEos,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.FRAG_PARSED,this.onFragParsed,this),e.on(d.FRAG_CHANGED,this.onFragChanged,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.BUFFER_RESET,this.onBufferReset,this),e.off(d.BUFFER_APPENDING,this.onBufferAppending,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.BUFFER_EOS,this.onBufferEos,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.FRAG_PARSED,this.onFragParsed,this),e.off(d.FRAG_CHANGED,this.onFragChanged,this),e.off(d.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const s=this.isQueued();(i||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?m(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=m({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,r=q(this.appendSource);if(this.transferData=this.overrides=void 0,n&&r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),i)this._objectUrl=n.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const c=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||c&&s instanceof c,Eo(n),nu(n,l),n.load()}catch(c){n.src=l}else n.src=l}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,s=i?i.length:0,l=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(r&&i&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
required tracks: ${Jt(n,(c,u)=>c==="initSegment"?void 0:u)};
|
|
transfer tracks: ${Jt(r,(c,u)=>c==="initSegment"?void 0:u)}}`),!pe(r,n)){t.mediaSource=null,t.tracks=void 0;const c=e.currentTime,u=this.details,f=Math.max(c,(u==null?void 0:u.fragments[0].start)||0);if(f-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${f}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${f} currentTime: ${c}`),this.onMediaDetaching(d.MEDIA_DETACHING,{}),this.onMediaAttaching(d.MEDIA_ATTACHING,t),e.currentTime=f;return}this.transferData=void 0,i.forEach(c=>{const u=c,f=r[u];if(f){const h=f.buffer;if(h){const A=this.fragmentTracker,C=f.id;if(A.hasFragments(C)||A.hasParts(C)){const V=wn.getBuffered(h);A.detectEvictedFragments(u,V,C,null,!0)}const R=Ca(u),J=[u,h];this.sourceBuffers[R]=J,h.updating&&this.operationQueue&&this.operationQueue.prependBlocker(u),this.trackSourceBuffer(u,f)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=i.readyState==="open";try{const c=i.sourceBuffers;for(let u=c.length;u--;)l&&c[u].abort(),i.removeSourceBuffer(c[u]);l&&i.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&Eo(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(d.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Ca(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new $l(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),s=!i&&this.sourceBufferCount&&this.media&&r.some(l=>!n[l]);if(i||s){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${r}" SourceBuffers`);return}r.forEach(l=>{var c,u,f;const h=t[l],{id:A,codec:C,levelCodec:R,container:J,metadata:V,supplemental:Ae}=h;let Ve=n[l];const Ue=(c=this.transferData)==null||(u=c.tracks)==null?void 0:u[l],xt=Ue!=null&&Ue.buffer?Ue:Ve,wt=(xt==null?void 0:xt.pendingCodec)||(xt==null?void 0:xt.codec),rn=xt==null?void 0:xt.levelCodec;Ve||(Ve=n[l]={buffer:void 0,listeners:[],codec:C,supplemental:Ae,container:J,levelCodec:R,metadata:V,id:A});const At=hn(wt,rn),qt=At==null?void 0:At.replace(yo,"$1");let dn=hn(C,R);const Ft=(f=dn)==null?void 0:f.replace(yo,"$1");dn&&At&&qt!==Ft&&(l.slice(0,5)==="audio"&&(dn=Rt(dn,this.appendSource)),this.log(`switching codec ${wt} to ${dn}`),dn!==(Ve.pendingCodec||Ve.codec)&&(Ve.pendingCodec=dn),Ve.container=J,this.appendChangeType(l,J,dn))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),l.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,oe.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>r||c!=null&&c.buffer&&wn.isBuffered(c.buffer,r)||((l=this.fragmentTracker.getAppendedFrag(r,oe.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:s,frag:l,part:c,chunkMeta:u}=t,f=u.buffering[i],h=l.sn,A=self.performance.now();f.start=A;const C=l.stats.buffering,R=c?c.stats.buffering:null;C.start===0&&(C.start=A),R&&R.start===0&&(R.start=A);const J=n.audio;let V=!1;i==="audio"&&(J==null?void 0:J.container)==="audio/mpeg"&&(V=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const Ae=this.tracks.video,Ve=Ae==null?void 0:Ae.buffer;if(Ve&&h!=="initSegment"){const wt=c||l,rn=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend){const qt=wt.start+wt.duration*.05,dn=Ve.buffered,Ft=this.currentOp("video");!dn.length&&!Ft?this.blockAudio(wt):!Ft&&!wn.isBuffered(Ve,qt)&&this.lastVideoAppendEnd<qt&&this.blockAudio(wt)}else if(i==="video"){const At=wt.end;if(rn){const qt=rn.frag.start;(At>qt||At<this.lastVideoAppendEnd||wn.isBuffered(Ve,qt))&&this.unblockAudio()}this.lastVideoAppendEnd=At}}const Ue=(c||l).start,xt={label:`append-${i}`,execute:()=>{if(f.executeStart=self.performance.now(),V){const wt=this.tracks[i];if(wt){const rn=wt.buffer;if(rn){const At=Ue-rn.timestampOffset;Math.abs(At)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Ue} (delta: ${At}) sn: ${h})`),rn.timestampOffset=Ue)}}}this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const wt=self.performance.now();f.executeEnd=f.end=wt,C.first===0&&(C.first=wt),R&&R.first===0&&(R.first=wt);const rn={};this.sourceBuffers.forEach(([At,qt])=>{At&&(rn[At]=wn.getBuffered(qt))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(d.BUFFER_APPENDED,{type:i,frag:l,part:c,chunkMeta:u,parent:l.type,timeRanges:rn})},onError:wt=>{var rn;const At={type:ge.MEDIA_ERROR,parent:l.type,details:O.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:c,chunkMeta:u,error:wt,err:wt,fatal:!1},qt=(rn=this.media)==null?void 0:rn.error;if(wt.code===DOMException.QUOTA_EXCEEDED_ERR)At.details=O.BUFFER_FULL_ERROR;else if(wt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!qt)At.errorAction=qe(!0);else if(wt.name===_o&&this.sourceBufferCount===0)At.errorAction=qe(!0);else{const dn=++this.appendErrors[i];this.warn(`Failed ${dn}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${qt||"no media error"})`),(dn>=this.hls.config.appendErrorMaxRetry||qt)&&(At.fatal=!0)}this.hls.trigger(d.ERROR,At)}};this.append(xt,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(d.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,i),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[v.AUDIOVIDEO]?i.push("audiovideo"):(s[v.AUDIO]&&i.push("audio"),s[v.VIDEO]&&i.push("video"));const l=()=>{const c=self.performance.now();n.stats.buffering.end=c,r&&(r.stats.buffering.end=c);const u=r?r.stats:n.stats;this.hls.trigger(d.FRAG_BUFFERED,{frag:n,part:r,stats:u,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(l,i).catch(c=>{this.warn(`Fragment buffered callback ${c}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,n;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((n=this.tracks[e])==null?void 0:n.ending))})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!t.type||t.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})&&(r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(d.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(d.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===O.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;p(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,i=n.currentTime,s=t.levelTargetDuration,l=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(p(l)&&l>=0){const c=Math.max(l,s),u=Math.floor(i/s)*s-c;this.flushBackBuffer(i,s,u)}if(p(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const c=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),u=Math.max(c,s),f=Math.floor(i/s)*s+u;this.flushFrontBuffer(i,s,f)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const l=wn.getBuffered(i);if(l.length>0&&n>l.start(0)){var s;this.hls.trigger(d.BACK_BUFFER_REACHED,{bufferEnd:n});const c=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(d.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(c!=null&&c.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const s=wn.getBuffered(i),l=s.length;if(l<2)return;const c=s.start(l-1),u=s.end(l-1);if(n>c||e>=c&&e<=u)return;this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const u=Math.max(0,t.fragmentStart),f=Math.max(u,r);return{duration:1/0,start:u,end:f}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return p(i)?{duration:i}:null;const s=this.media.duration,l=p(n.duration)?n.duration:0;return r>l&&r>s||!p(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(p(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${Jt(n)}`),this.tracksReady){var r;const i=(r=this.transferData)==null?void 0:r.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(d.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const s=i,l=e[s];if(this.isPending(l)){const c=this.getTrackCodec(l,s),u=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${u})${this.currentOp(s)?" Queued":""} ${Jt(l)}`);try{const f=n.addSourceBuffer(u),h=Ca(s),A=[s,f];t[h]=A,l.buffer=f}catch(f){var r;this.error(`error while trying to add sourceBuffer: ${f.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:f,sourceBufferName:s,mimeType:u,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&ke(n,"video")&&(r=Ut(r,n));const i=hn(r,e.levelCodec);return i?t.slice(0,5)==="audio"?Rt(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(i,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(d.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,s=this.tracks[e],l=s==null?void 0:s.buffer;if(!r||!i||!l){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const c=p(r.duration)?r.duration:1/0,u=p(i.duration)?i.duration:1/0,f=Math.max(0,t),h=Math.min(n,c,u);h>f&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${f},${h}] from the ${e} SourceBuffer`),l.remove(f,h)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new eu(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function Eo(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function nu(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Ca(a){return a==="audio"?1:0}class Da{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(d.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.BUFFER_CODECS,this.onBufferCodecs,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(d.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.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&&p(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,Da.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(l,c)=>c?l.width!==c.width||l.height!==c.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let l=0;l<e.length;l+=1){const c=e[l];if((c.width>=s||c.height>=s)&&r(c,e[l+1])){i=l;break}}return i}}const vi={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},ru={HLS:"h"},js={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},iu={[js.OBJECT]:["br","d","ot","tb"],[js.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[js.SESSION]:["cid","pr","sf","sid","st","v"],[js.STATUS]:["bs","rtp"]};class Rs{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof Rs?n:new Rs(n))),this.value=e,this.params=t}}const su="Dict";function au(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 ou(a,e,t,n){return new Error(`failed to ${a} "${au(e)}" as ${t}`,{cause:n})}function Zi(a,e,t){return ou("serialize",a,e,t)}class bo{constructor(e){this.description=e}}const xo="Bare Item",lu="Boolean";function uu(a){if(typeof a!="boolean")throw Zi(a,lu);return a?"?1":"?0"}const cu="Byte Sequence";function du(a){if(ArrayBuffer.isView(a)===!1)throw Zi(a,cu);return`:${si(a)}:`}const fu="Integer";function hu(a){return a<-999999999999999||999999999999999<a}function So(a){if(hu(a))throw Zi(a,fu);return a.toString()}function pu(a){return`@${So(a.getTime()/1e3)}`}const mu="Decimal";function gu(a){const e=Vi(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Zi(a,mu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const vu="String",yu=/[\x00-\x1f\x7f]+/;function _u(a){if(yu.test(a))throw Zi(a,vu);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Eu(a){return a.description||a.toString().slice(7,-1)}const bu="Token";function wo(a){const e=Eu(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Zi(e,bu);return e}function Ra(a){switch(typeof a){case"number":if(!p(a))throw Zi(a,xo);return Number.isInteger(a)?So(a):gu(a);case"string":return _u(a);case"symbol":return wo(a);case"boolean":return uu(a);case"object":if(a instanceof Date)return pu(a);if(a instanceof Uint8Array)return du(a);if(a instanceof bo)return wo(a);default:throw Zi(a,xo)}}const xu="Key";function La(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Zi(a,xu);return a}function Ia(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${La(e)}`:`;${La(e)}=${Ra(t)}`).join("")}function Ao(a){return a instanceof Rs?`${Ra(a.value)}${Ia(a.params)}`:Ra(a)}function Su(a){return`(${a.value.map(Ao).join(" ")})${Ia(a.params)}`}function wu(a,e={whitespace:!0}){if(typeof a!="object")throw Zi(a,su);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof Rs||(i=new Rs(i));let s=La(r);return i.value===!0?s+=Ia(i.params):(s+="=",Array.isArray(i.value)?s+=Su(i):s+=Ao(i)),s}).join(`,${n}`)}function Au(a,e){return wu(a,e)}function Tu(a){return a==="ot"||a==="sf"||a==="st"}function Cu(a){return typeof a=="number"?p(a):a!=null&&a!==""&&a!==!1}const ia=a=>Math.round(a),Du=(a,e)=>(e!=null&&e.baseUrl&&(a=Yi(a,e.baseUrl)),encodeURIComponent(a)),sa=a=>ia(a/100)*100,Ru={br:ia,d:ia,bl:sa,dl:sa,mtp:sa,nor:Du,rtp:sa,tb:ia};function Lu(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=m({},Ru,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let l=a[s];const c=r[s];c&&(l=c(l,e)),!(s==="v"&&l===1)&&(s=="pr"&&l===1||Cu(l)&&(Tu(s)&&typeof l=="string"&&(l=new bo(l)),t[s]=l))}),t}function To(a,e={}){return a?Au(Lu(a,e),m({whitespace:!1},e)):""}function Iu(a,e={}){const t={};if(!a)return t;const n=Object.entries(a),r=Object.entries(iu).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=n.reduce((s,l)=>{var c,u;const[f,h]=l,A=((c=r.find(C=>C[1].includes(f)))===null||c===void 0?void 0:c[0])||js.REQUEST;return(u=s[A])!==null&&u!==void 0||(s[A]={}),s[A][f]=h,s},{});return Object.entries(i).reduce((s,[l,c])=>(s[l]=To(c,e),s),t)}function ku(a,e,t){return m(a,Iu(e,t))}const Pu="CMCD";function Nu(a,e={}){if(!a)return"";const t=To(a,e);return`${Pu}=${encodeURIComponent(t)}`}const Co=/CMCD=[^&#]+/;function Mu(a,e,t){const n=Nu(e,t);if(!n)return a;if(Co.test(a))return a.replace(Co,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class Ou{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:vi.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const{frag:i,part:s}=r,l=this.hls.levels[i.level],c=this.getObjectType(i),u={d:(s||i).duration*1e3,ot:c};(c===vi.VIDEO||c===vi.AUDIO||c==vi.MUXED)&&(u.br=l.bitrate/1e3,u.tb=this.getTopBandwidth(c)/1e3,u.bl=this.getBufferLength(c));const f=s?this.getNextPart(s):this.getNextFrag(i);f!=null&&f.url&&f.url!==i.url&&(u.nor=f.url),this.apply(r,u)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHED,this.onMediaDetached,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHED,this.onMediaDetached,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:ru.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){m(t,this.createData());const n=t.ot===vi.INIT||t.ot===vi.VIDEO||t.ot===vi.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,l)=>(r.includes(l)&&(s[l]=t[l]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),ku(e.headers,t,i)):e.url=Mu(e.url,t,i)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t,n;const{index:r,fragment:i}=e,s=(t=this.hls.levels[i.level])==null||(n=t.details)==null?void 0:n.partList;if(s){const{sn:l}=i;for(let c=s.length-1;c>=0;c--){const u=s[c];if(u.index===r&&u.fragment.sn===l)return s[c+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return vi.TIMED_TEXT;if(e.sn==="initSegment")return vi.INIT;if(t==="audio")return vi.AUDIO;if(t==="main")return this.hls.audioTracks.length?vi.VIDEO:vi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===vi.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===vi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:wn.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,l){t(i),this.loader.load(i,s,l)}}}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,l){t(i),this.loader.load(i,s,l)}}}}const Fu=3e5;class Bu extends Y{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===Kn.SendAlternateToPenaltyBox&&n.flags===xe.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:l,pathwayId:c,type:u}=t.context;l&&r?s=this.getPathwayForGroupId(l,u,s):c&&(s=c)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${Jt(i)} penalized: ${Jt(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]>Fu&&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 l=this.hls.nextLoadLevel,c=this.hls.levels[l];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,ei(t),this.hls.trigger(d.LEVELS_UPDATED,{levels:t});const u=this.hls.levels[l];c&&u&&this.levels&&(u.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&u.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${u.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===ve.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===ve.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":l,"URI-REPLACEMENT":c}=i;if(t.some(f=>f.pathwayId===s))return;const u=this.getLevelsForPathway(l).map(f=>{const h=new Hn(f.attrs);h["PATHWAY-ID"]=s;const A=h.AUDIO&&`${h.AUDIO}_clone_${s}`,C=h.SUBTITLES&&`${h.SUBTITLES}_clone_${s}`;A&&(n[h.AUDIO]=A,h.AUDIO=A),C&&(r[h.SUBTITLES]=C,h.SUBTITLES=C);const R=Ro(f.uri,h["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),J=new Lt({attrs:h,audioCodec:f.audioCodec,bitrate:f.bitrate,height:f.height,name:f.name,url:R,videoCodec:f.videoCodec,width:f.width});if(f.audioGroups)for(let V=1;V<f.audioGroups.length;V++)J.addGroupId("audio",`${f.audioGroups[V]}_clone_${s}`);if(f.subtitleGroups)for(let V=1;V<f.subtitleGroups.length;V++)J.addGroupId("text",`${f.subtitleGroups[V]}_clone_${s}`);return J});t.push(...u),Do(this.audioTracks,n,c,s),Do(this.subtitleTracks,r,c,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(f){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const f=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+f)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,l=s.errorRetry||s.timeoutRetry||{},c={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},u={onSuccess:(f,h,A,C)=>{this.log(`Loaded steering manifest: "${r}"`);const R=f.data;if((R==null?void 0:R.VERSION)!==1){this.log(`Steering VERSION ${R.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=R.TTL;const{"RELOAD-URI":J,"PATHWAY-CLONES":V,"PATHWAY-PRIORITY":Ae}=R;if(J)try{this.uri=new self.URL(J,r).href}catch(Ue){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${J}`);return}this.scheduleRefresh(this.uri||A.url),V&&this.clonePathways(V);const Ve={steeringManifest:R,url:r.toString()};this.hls.trigger(d.STEERING_MANIFEST_LOADED,Ve),Ae&&this.updatePathwayPriority(Ae)},onError:(f,h,A,C)=>{if(this.log(`Error loading steering manifest: ${f.code} ${f.text} (${h.url})`),this.stopLoad(),f.code===410){this.enabled=!1,this.log(`Steering manifest ${h.url} no longer available`);return}let R=this.timeToLoad*1e3;if(f.code===429){const J=this.loader;if(typeof(J==null?void 0:J.getResponseHeader)=="function"){const V=J.getResponseHeader("Retry-After");V&&(R=parseFloat(V)*1e3)}this.log(`Steering manifest ${h.url} rate limited`);return}this.scheduleRefresh(this.uri||h.url,R)},onTimeout:(f,h,A)=>{this.log(`Timeout loading steering manifest (${h.url})`),this.scheduleRefresh(this.uri||h.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,c,u)}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 Do(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const l=m({},s);return l.details=void 0,l.attrs=new Hn(l.attrs),l.url=l.attrs.URI=Ro(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),l.groupId=l.attrs["GROUP-ID"]=e[r],l.attrs["PATHWAY-ID"]=n,l});a.push(...i)})}function Ro(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let l;e&&(l=s==null?void 0:s[e],l&&(a=l));const c=new self.URL(a);return r&&!l&&(c.host=r),i&&Object.keys(i).sort().forEach(u=>{u&&c.searchParams.set(u,i[u])}),c.href}class Ls extends Y{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ls.CDMCleanupPromise?[Ls.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Pn(this.config));const l=s.map(Vr).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=wr(s);let c,u;if(n==="sinf"){if(l!==bn.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}const R=jt(new Uint8Array(r));try{const J=ir(JSON.parse(R).sinf),V=ee(J);if(!V)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(V.subarray(8,24)),u=bn.FAIRPLAY}catch(J){this.warn(`${i} Failed to parse sinf: ${J}`);return}}else{if(l!==bn.WIDEVINE&&l!==bn.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}const R=Kt(r),J=R.filter(Ae=>!!Ae.systemId&&zr(Ae.systemId)===l);J.length>1&&this.warn(`${i} Using first of ${J.length} pssh found for selected key-system ${l}`);const V=J[0];if(!V){R.length===0||R.some(Ae=>!Ae.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${R.map(Ae=>zr(Ae.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(u=zr(V.systemId),V.version===0&&V.data)if(u===bn.WIDEVINE){const Ae=V.data.length-22;c=new Uint8Array(V.data.subarray(Ae,Ae+16))}else u===bn.PLAYREADY&&(c=ni(V.data))}if(!u||!c)return;const f=G.hexDump(c),{keyIdToKeySessionPromise:h,mediaKeySessions:A}=this;let C=h[f];for(let R=0;R<A.length;R++){const J=A[R],V=J.decryptdata;if(!V.keyId)continue;const Ae=G.hexDump(V.keyId);if(f===Ae||V.uri.replace(/-/g,"").indexOf(f)!==-1){if(C=h[Ae],V.pssh)break;delete h[Ae],V.pssh=new Uint8Array(r),V.keyId=c,C=h[f]=C.then(()=>this.generateRequestWithPreferredKeySession(J,n,r,"encrypted-event-key-match")),C.catch(Ve=>this.handleError(Ve));break}}if(!C){if(u!==l){this.log(`Ignoring "${t.type}" event with ${u} init data for selected key-system ${l}`);return}C=h[f]=this.getKeySystemSelectionPromise([u]).then(({keySystem:R,mediaKeys:J})=>{var V;this.throwIfDestroyed();const Ae=new qr("ISO-23001-7",f,(V=Vr(R))!=null?V:"");return Ae.pssh=new Uint8Array(r),Ae.keyId=c,this.attemptSetMediaKeys(R,J).then(()=>{this.throwIfDestroyed();const Ve=this.createMediaKeySessionContext({decryptdata:Ae,keySystem:R,mediaKeys:J});return this.generateRequestWithPreferredKeySession(Ve,n,r,"encrypted-event-no-match")})}),C.catch(R=>this.handleError(R))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(d.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(d.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(d.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(d.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(d.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(d.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===bn.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,l,c)=>!!s&&c.indexOf(s)===l,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,l)=>{const c=u=>{const f=u.shift();this.getMediaKeysPromise(f,r,i).then(h=>s({keySystem:f,mediaKeys:h})).catch(h=>{u.length?c(u):h instanceof Ai?l(h):l(new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_ACCESS,error:h,fatal:!0},h.message))})};c(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return er===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=Er(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: ${Jt(r)}`),s=this.requestMediaKeySystemAccess(e,r);const l=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(c=>{this.log(`Failed to obtain access to key-system "${e}": ${c}`)}),s.then(c=>{this.log(`Access for key-system "${c.keySystem}" obtained`);const u=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),l.mediaKeys=c.createMediaKeys().then(f=>(this.log(`Media-keys created for "${e}"`),u.then(h=>h?this.setMediaKeysServerCertificate(f,e,h):f))),l.mediaKeys.catch(f=>{this.error(`Failed to create media-keys for "${e}"}: ${f}`)}),l.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${G.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return G.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${G.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=Pn(this.config),i=e.map(wr).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const l=Vr(s);l?t(l):n(new Error(`Unable to find format for key-system "${s}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:c})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(l,c).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:l,mediaKeys:c,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=i.then(l=>{const c="cenc",u=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(l,c,u,"playlist-key")})).catch(l=>this.handleError(l))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ai?this.hls.trigger(d.ERROR,e.data):this.hls.trigger(d.ERROR,{type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=wr(e.keyFormat),i=r?[r]:Pn(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Pn(this.config)),e.length===0)throw new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Jt({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 l=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(l)try{const R=l.call(this.hls,t,n,e);if(!R)throw new Error("Invalid response from configured generateRequest filter");t=R.initDataType,n=R.initData?R.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(R){var c;if(this.warn(R.message),(c=this.hls)!=null&&c.config.debug)throw R}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const u=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${u} (init data type: ${t} length: ${n?n.byteLength:null})`);const f=new Bi,h=e._onmessage=R=>{const J=e.mediaKeysSession;if(!J){f.emit("error",new Error("invalid state"));return}const{messageType:V,message:Ae}=R;this.log(`"${V}" message event for session "${J.sessionId}" message size: ${Ae.byteLength}`),V==="license-request"||V==="license-renewal"?this.renewLicense(e,Ae).catch(Ve=>{f.eventNames().length?f.emit("error",Ve):this.handleError(Ve)}):V==="license-release"?e.keySystem===bn.FAIRPLAY&&(this.updateKeySession(e,br("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${V}"`)},A=e._onkeystatuseschange=R=>{if(!e.mediaKeysSession){f.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const V=e.keyStatus;f.emit("keyStatus",V),V==="expired"&&(this.warn(`${e.keySystem} expired for key ${u}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",h),e.mediaKeysSession.addEventListener("keystatuseschange",A);const C=new Promise((R,J)=>{f.on("error",J),f.on("keyStatus",V=>{V.startsWith("usable")?R():V==="output-restricted"?J(new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):V==="internal-error"?J(new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${V}"`)):V==="expired"?J(new Error("key expired while generating request")):this.warn(`unhandled key status change "${V}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var R;this.log(`Request generated for key-session "${(R=e.mediaKeysSession)==null?void 0:R.sessionId}" keyId: ${u}`)}).catch(R=>{throw new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_SESSION,error:R,fatal:!1},`Error generating key-session request: ${R}`)}).then(()=>C).catch(R=>{throw f.removeAllListeners(),this.removeSession(e),R}).then(()=>(f.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{if(typeof n=="string"&&typeof t=="object"){const r=n;n=t,t=r}this.log(`key status change "${t}" for keyStatuses keyId: ${G.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${G.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,l)=>{const c={responseType:"arraybuffer",url:i},u=t.certLoadPolicy.default,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(A,C,R,J)=>{s(A.data)},onError:(A,C,R,J)=>{l(new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:R,response:x({url:c.url,data:void 0},A)},`"${e}" certificate request failed (${i}). Status: ${A.code} (${A.text})`))},onTimeout:(A,C,R)=>{l(new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:R,response:{url:c.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(A,C,R)=>{l(new Error("aborted"))}};r.load(c,f,h)})):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 Ai({type:ge.KEY_SYSTEM_ERROR,details:O.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 Ai({type:ge.KEY_SYSTEM_ERROR,details:O.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 f;for(let h=0,A=i.length;h<A;h++){var s,l;f=i[h];const C=(s=f.querySelector("name"))==null?void 0:s.textContent,R=(l=f.querySelector("value"))==null?void 0:l.textContent;C&&R&&e.setRequestHeader(C,R)}}const c=r.querySelector("Challenge"),u=c==null?void 0:c.textContent;if(!u)throw new Error("Cannot find <Challenge> in key message");return br(atob(u))}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 l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const u=this.config.licenseResponseCallback;if(u)try{c=u.call(this.hls,l,s,e)}catch(f){this.error(f)}r(c)}else{const c=n.errorRetry,u=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>u||l.status>=400&&l.status<500)i(new Ai({type:ge.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const f=u-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${f} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=l,this.setupLicenseXHR(l,s,e,t).then(({xhr:c,licenseChallenge:u})=>{e.keySystem==bn.PLAYREADY&&(u=this.unpackPlayReadyKeyMessage(c,u)),c.send(u)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const n=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},qr.clearKeyUriToKeyIdMap();const r=n.length;Ls.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(e==null||(t=e.setMediaKeys(null))==null?void 0:t.catch(i=>{var s;this.log(`Could not clear media keys: ${i}`),(s=this.hls)==null||s.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(i=>{var s;this.log(`Could not close sessions and clear media keys: ${i}`),(s=this.hls)==null||s.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{drmSystemOptions:i}=this.config;return(Ar(i)?new Promise((l,c)=>{self.setTimeout(()=>c(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(l)}):Promise.resolve()).catch(l=>{var c;this.log(`Could not remove session: ${l}`),(c=this.hls)==null||c.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${l}`)})}).then(()=>t.close()).catch(l=>{var c;this.log(`Could not close session: ${l}`),(c=this.hls)==null||c.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${l}`)})})}}}Ls.CDMCleanupPromise=void 0;class Ai extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class Uu{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(d.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(d.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(d.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,l=t-this.lastDecodedFrames,c=1e3*s/i,u=this.hls;if(u.trigger(d.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:n}),c>0&&s>u.config.fpsDroppedMonitoringThreshold*l){let f=u.currentLevel;u.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(u.autoLevelCapping===-1||u.autoLevelCapping>=f)&&(f=f-1,u.trigger(d.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:u.currentLevel}),u.autoLevelCapping=f,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function Lo(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 Io(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){j.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){j.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Is(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let n=a.cues.length;n--;)e&&a.cues[n].removeEventListener("enter",e),a.removeCue(a.cues[n]);t==="disabled"&&(a.mode=t)}function ka(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Ku(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function Zu(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i;return a[n].startTime-e<e-a[r].startTime?n:r}function Ku(a,e,t){const n=[],r=Zu(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const l=a[i];if(l.startTime>=e&&l.endTime<=t)n.push(l);else if(l.startTime>t)return n}return n}function aa(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}class zu extends Aa{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=aa(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(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(d.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;aa(n.textTracks).forEach(s=>{Is(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const l=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,l)}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(f=>!n||n.indexOf(f.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(f=>f.default)&&(this.selectDefaultTrack=!1),s.forEach((f,h)=>{f.id=h});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const f=it(l,s);if(f>-1)i=s[f];else{const h=it(l,this.tracks);i=this.tracks[h]}}let c=this.findTrackId(i);c===-1&&i&&(c=this.findTrackId(null));const u={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(d.SUBTITLE_TRACKS_UPDATED,u),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}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||St(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(zs(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(zs(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(Ta(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===ve.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&St(e,n))return n;const r=it(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=it(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(d.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=aa(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Ta(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||!p(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(d.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:l="",name:c,type:u,url:f}=r;this.hls.trigger(d.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:u,url:f});const h=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(h)}}function Gs(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const ks=.025;let oa=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function ju(a,e,t){return`${a.identifier}-${t+1}-${Gs(e)}`}class Gu{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;return e<=0||isNaN(t)?!1:this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Pa(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=Pa(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=p(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Pa(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<ks))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?oa.Range:oa.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Wu(this)}}function Pa(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<ks)?e.start:e.start+e.duration}function ko(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Wu(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Na(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Hu{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{const u=this.interstitial.playoutLimit,f=this.currentTime;this.startOffset+f>=u&&this.hls.trigger(d.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let s=r.uri;try{s=ko(s,i.sessionId).href}catch(c){}i.loadSource(s);const l=()=>{this.hasDetails=!0};i.once(d.LEVEL_LOADED,l),i.once(d.AUDIO_TRACK_LOADED,l),i.once(d.SUBTITLE_TRACK_LOADED,l),i.on(d.MEDIA_ATTACHING,(c,{media:u})=>{this.removeMediaListeners(),this.mediaAttached=u,this.interstitial.playoutLimit&&u.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,r=wn.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=wn.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Na(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${(t=this.interstitial)!=null&&t.appendInPlace?"append-in-place":""}`}}const Po=.033;class Vu extends Y{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(i=r[n])!=null&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const i=n[r].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let i=0;i<r;i++){const s=n[i];if(!s.error){const l=s.timelineStart;if(t===l||t>l&&t<l+(s.duration||0))return i}}return 0}get assetIdAtEnd(){var e,t;const n=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(n){const r=n.assetList,i=r[r.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),l=Object.keys(r),c=i?i.filter(u=>!l.includes(u.identifier)):[];s.length&&s.sort((u,f)=>{const h=u.cue.pre,A=u.cue.post,C=f.cue.pre,R=f.cue.post;if(h&&!C)return-1;if(C&&!h||A&&!R)return 1;if(R&&!A)return-1;if(!h&&!C&&!A&&!R){const J=u.startTime,V=f.startTime;if(J!==V)return J-V}return u.dateRange.tagOrder-f.dateRange.tagOrder}),this.events=s,c.forEach(u=>{this.removeEvent(u)}),this.updateSchedule(e,c)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const r=this.items,i=this.parseSchedule(n,e);(t.length||(r==null?void 0:r.length)!==i.length||i.some((l,c)=>Math.abs(l.playout.start-r[c].playout.start)>.005||Math.abs(l.playout.end-r[c].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const l=i[s],c=e[l];if(c.isInterstitial){let u=this.eventMap[l];u?u.setDateRange(c):(u=new Gu(c,t),this.eventMap[l]=u,n===!1&&(u.appendInPlace=n)),r.push(u)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let s=0;if(e=e.filter(c=>!c.error&&!(c.cue.once&&c.hasPlayed)),e.length){this.resolveOffsets(e,t);let c=0,u=0;if(e.forEach((f,h)=>{const A=f.cue.pre,C=f.cue.post,R=e[h-1]||null,J=f.appendInPlace,V=C?i:f.startOffset,Ae=f.duration,Ve=f.timelineOccupancy===oa.Range?Ae:0,Ue=f.resumptionOffset,xt=(R==null?void 0:R.startTime)===V,wt=V+f.cumulativeDuration;let rn=J?wt+Ae:V+Ue;if(A||!C&&V<=0){const qt=u;u+=Ve,f.timelineStart=wt;const dn=s;s+=Ae,n.push({event:f,start:wt,end:rn,playout:{start:dn,end:s},integrated:{start:qt,end:u}})}else if(V<=i){if(!xt){const Ft=V-c;if(Ft>Po){const Nn=c,Yn=u;u+=Ft;const Ir=s;s+=Ft;const gr={previousEvent:e[h-1]||null,nextEvent:f,start:Nn,end:Nn+Ft,playout:{start:Ir,end:s},integrated:{start:Yn,end:u}};n.push(gr)}else Ft>0&&R&&(R.cumulativeDuration+=Ft,n[n.length-1].end=V)}C&&(rn=wt),f.timelineStart=wt;const qt=u;u+=Ve;const dn=s;s+=Ae,n.push({event:f,start:wt,end:rn,playout:{start:dn,end:s},integrated:{start:qt,end:u}})}else return;const At=f.resumeTime;C||At>i?c=i:c=At}),c<i){var l;const f=c,h=u,A=i-c;u+=A;const C=s;s+=A,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:c,end:f+A,playout:{start:C,end:s},integrated:{start:h,end:u}})}this.setDurations(i,s,u)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,s=-1;e.forEach((l,c)=>{const u=l.cue.pre,f=l.cue.post,h=u?0:f?r:l.startTime;this.updateAssetDurations(l),s===h?l.cumulativeDuration=i:(i=0,s=h),!f&&l.snapOptions.in&&(l.resumeAnchor=Zn(null,n.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,t)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1<e.length&&e[c+1].startTime-e[c].resumeTime<Po&&(e[c+1].appendInPlace=!1,e[c+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const C=p(l.resumeOffset)?l.resumeOffset:l.duration;i+=C})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>ks?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):t?!Object.keys(t).some(s=>{const l=t[s].details,c=l.edge;if(n>=c)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${c}`),!1;const u=Zn(null,l.fragments,n);if(!u)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const f=s==="audio"?.175:0;return Math.abs(u.start-n)<ks+f||Math.abs(u.end-n)<ks+f?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${u.start}-${u.end} sn: ${u.sn} cc: ${u.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;e.assetList.forEach((s,l)=>{const c=t+n;s.startOffset=n,s.timelineStart=c,r||(r=s.duration===null),i||(i=!!s.error);const u=s.error?0:s.duration||0;n+=u}),r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function ds(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Yu{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=ko(n,this.hls.sessionId,e.baseUrl)}catch(A){const C=this.assignAssetListError(e,O.ASSET_LIST_LOAD_ERROR,A,n);this.hls.trigger(d.ERROR,C);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,l=new s(i),c={responseType:"json",url:r.href},u=i.interstitialAssetListLoadPolicy.default,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(A,C,R,J)=>{const V=A.data,Ae=V==null?void 0:V.ASSETS;if(!Array.isArray(Ae)){const Ve=this.assignAssetListError(e,O.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),R.url,C,J);this.hls.trigger(d.ERROR,Ve);return}e.assetListResponse=V,this.hls.trigger(d.ASSET_LIST_LOADED,{event:e,assetListResponse:V,networkDetails:J})},onError:(A,C,R,J)=>{const V=this.assignAssetListError(e,O.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${A.code} ${A.text} (${C.url})`),C.url,J,R);this.hls.trigger(d.ERROR,V)},onTimeout:(A,C,R)=>{const J=this.assignAssetListError(e,O.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${C.url})`),C.url,A,R);this.hls.trigger(d.ERROR,J)}};return l.load(c,f,h),this.hls.trigger(d.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:ge.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Ji(a,e,t){Ki(a,e,t),a.addEventListener(e,t)}function Ki(a,e,t){a.removeEventListener(e,t)}function No(a){a==null||a.play().catch(()=>{})}class Xu extends Y{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(),this.checkBuffer(),s&&n<l.start||n>=l.end){var c;const A=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s){const C=this.findItemIndex(l);if(A>C){const R=this.schedule.findJumpRestrictedIndex(C+1,A);if(R>C){this.setSchedulePosition(R);return}}}this.setSchedulePosition(A);return}const u=this.playingAsset;if(!u){if(this.playingLastItem&&this.isInterstitial(l)){const A=l.event.assetList[0];A&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,A))}return}const f=u.timelineStart,h=u.duration||0;(s&&n<f||n>=f+h)&&this.setScheduleToAssetAtTime(n,u)},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const l=this.findItemIndex(r);this.setSchedulePosition(l+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule,s=this.playingItem,l=i.events||[],c=i.items||[],u=i.durations,f=n.map(C=>C.identifier),h=!!(l.length||f.length);if(h&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
|
|
Schedule: ${c.map(C=>ds(C))}`),f.length&&this.log(`Removed events ${f}`),this.playerQueue.forEach(C=>{if(C.interstitial.appendInPlace){const R=C.assetItem.timelineStart,J=C.timelineOffset-R;if(J)try{C.timelineOffset=R}catch(V){Math.abs(J)>ks&&this.warn(`${V} ("${C.assetId}" ${C.timelineOffset}->${R})`)}}}),s){const C=this.updateItem(s,this.timelinePos);this.itemsMatch(s,C)&&(this.playingItem=C,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const A=this.bufferingItem;if(A){const C=this.updateItem(A,this.bufferedPos);this.itemsMatch(A,C)?this.bufferingItem=C:A.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(A.event,null))}if(n.forEach(C=>{C.assetList.forEach(R=>{this.clearAssetPlayer(R.identifier,null)})}),h||r){if(this.hls.trigger(d.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:u,removedIds:f}),this.isInterstitial(s)&&f.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Yu(e),this.schedule=new Vu(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(d.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(d.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(d.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(d.MEDIA_ENDED,this.onMediaEnded,this),e.on(d.ERROR,this.onError,this),e.on(d.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(d.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(d.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(d.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(d.MEDIA_ENDED,this.onMediaEnded,this),e.off(d.ERROR,this.onError,this),e.off(d.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Ki(e,"play",this.onPlay),Ki(e,"pause",this.onPause),Ki(e,"seeking",this.onSeeking),Ki(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ji(n,"seeking",this.onSeeking),Ji(n,"timeupdate",this.onTimeupdate),Ji(n,"play",this.onPlay),Ji(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const i=this.findItemIndex(n);this.setSchedulePosition(i)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=h=>h&&e.getAssetPlayer(h.identifier),r=(h,A,C,R,J)=>{if(h){let V=h[A].start;const Ae=h.event;if(Ae){if(A==="playout"||Ae.timelineOccupancy!==oa.Point){const Ve=n(C);(Ve==null?void 0:Ve.interstitial)===Ae&&(V+=Ve.assetItem.startOffset+Ve[J])}}else{const Ve=R==="bufferedPos"?s():e[R];V+=Ve-h.start}return V}return 0},i=(h,A)=>{if(h!==0&&A!=="primary"&&e.schedule.length){var C;const R=e.schedule.findItemIndexAtTime(h),J=(C=e.schedule.items)==null?void 0:C[R];if(J){const V=J[A].start-J.start;return h+V}}return h},s=()=>{const h=e.bufferedPos;return h===Number.MAX_VALUE?l("primary"):Math.max(h,0)},l=h=>{var A;return(A=e.primaryDetails)!=null&&A.live?e.primaryDetails.edge:e.schedule.durations[h]},c=(h,A)=>{var C,R;const J=e.effectivePlayingItem;if(J!=null&&(C=J.event)!=null&&C.restrictions.skip)return;e.log(`seek to ${h} "${A}"`);const V=e.effectivePlayingItem,Ae=e.schedule.findItemIndexAtTime(h,A),Ve=(R=e.schedule.items)==null?void 0:R[Ae],Ue=e.getBufferingPlayer(),xt=Ue==null?void 0:Ue.interstitial,wt=xt==null?void 0:xt.appendInPlace,rn=V&&e.itemsMatch(V,Ve);if(V&&(wt||rn)){const qt=n(e.playingAsset),dn=(qt==null?void 0:qt.media)||e.primaryMedia;if(dn){const Ft=A==="primary"?dn.currentTime:r(V,A,e.playingAsset,"timelinePos","currentTime"),Nn=h-Ft,Yn=(wt?Ft:dn.currentTime)+Nn;if(Yn>=0&&(!qt||wt||Yn<=qt.duration)){dn.currentTime=Yn;return}}}if(Ve){let qt=h;if(A!=="primary"){const Ft=Ve[A].start,Nn=h-Ft;qt=Ve.start+Nn}const dn=!e.isInterstitial(Ve);if((!e.isInterstitial(V)||V.event.appendInPlace)&&(dn||Ve.event.appendInPlace)){const Ft=e.media||(wt?Ue==null?void 0:Ue.media:null);Ft&&(Ft.currentTime=qt)}else if(V){const Ft=e.findItemIndex(V);if(Ae>Ft){const Yn=e.schedule.findJumpRestrictedIndex(Ft+1,Ae);if(Yn>Ft){e.setSchedulePosition(Yn);return}}let Nn=0;if(dn)e.timelinePos=qt,e.checkBuffer();else{var At;const Yn=Ve==null||(At=Ve.event)==null?void 0:At.assetList;if(Yn){const Ir=h-(Ve[A]||Ve).start;for(let gr=Yn.length;gr--;){const hr=Yn[gr];if(hr.duration&&Ir>=hr.startOffset&&Ir<hr.startOffset+hr.duration){Nn=gr;break}}}}e.setSchedulePosition(Ae,Nn)}}},u=()=>{const h=e.effectivePlayingItem;if(e.isInterstitial(h))return h;const A=t();return e.isInterstitial(A)?A:null},f={get currentTime(){const h=u(),A=e.effectivePlayingItem;return A&&A===h?r(A,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-A.playout.start:0},set currentTime(h){const A=u(),C=e.effectivePlayingItem;C&&C===A&&c(h+C.playout.start,"playout")},get duration(){const h=u();return h?h.playout.end-h.playout.start:0},get assetPlayers(){var h;const A=(h=u())==null?void 0:h.event.assetList;return A?A.map(C=>e.getAssetPlayer(C.identifier)):[]},get playingIndex(){var h;const A=(h=u())==null?void 0:h.event;return A&&e.effectivePlayingAsset?A.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return u()}};this.manager={get events(){var h,A;return((h=e.schedule)==null||(A=h.events)==null?void 0:A.slice(0))||[]},get schedule(){var h,A;return((h=e.schedule)==null||(A=h.items)==null?void 0:A.slice(0))||[]},get interstitialPlayer(){return u()?f:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const h=t();return e.findItemIndex(h)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const h=e.effectivePlayingItem;return e.findItemIndex(h)},primary:{get bufferedEnd(){return s()},get currentTime(){const h=e.timelinePos;return h>0?h:0},set currentTime(h){c(h,"primary")},get duration(){return l("primary")},get seekableStart(){var h;return((h=e.primaryDetails)==null?void 0:h.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(h){c(h,"integrated")},get duration(){return l("integrated")},get seekableStart(){var h;return i(((h=e.primaryDetails)==null?void 0:h.fragmentStart)||0,"integrated")}},skip:()=>{const h=e.effectivePlayingItem,A=h==null?void 0:h.event;if(A&&!A.restrictions.skip){const C=e.findItemIndex(h);if(A.appendInPlace){const R=h.playout.start+h.event.duration;c(R+.001,"playout")}else e.advanceAfterAssetEnded(A,C,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const s=(n=i)==null?void 0:n.currentTime;if(!(s===void 0||!p(s)))return s}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${Jt(i)}`),this.detachedData=i}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,l=e!==s,c=l&&e.interstitial.appendInPlace,u=(n=this.detachedData)==null?void 0:n.mediaSource;let f;if(s.media)c&&(i=s.transferMedia(),this.detachedData=i),f="Primary";else if(u){const C=this.getBufferingPlayer();C?(i=C.transferMedia(),f=`${C}`):f="detached MediaSource"}else f="detached media";if(!i){if(u)i=this.detachedData,this.log(`using detachedData: MediaSource ${Jt(i)}`);else if(!this.detachedData||s.media===t){const C=this.playerQueue;C.length>1&&C.forEach(R=>{if(l&&R.interstitial.appendInPlace!==c){const J=R.interstitial;this.clearInterstitial(R.interstitial,null),J.appendInPlace=!1,J.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${J}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const h=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",A=h&&i?i:t;if(this.log(`${h?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${f}`),A===i){const C=l&&e.assetId===this.schedule.assetIdAtEnd;A.overrides={duration:this.schedule.duration,endOfStream:!l||C,cueRemoval:!l}}e.attachMedia(A)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const i=this.hls.startPosition;if(this.timelinePos=i,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(i>=0||!this.primaryLive){const s=this.timelinePos=i>0?i:0,l=e.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(r&&!this.playingItem){const i=e.findItemIndex(r);this.setSchedulePosition(i)}}advanceAfterAssetEnded(e,t,n){const r=n+1;if(!e.isAssetPastPlayoutLimit(r)&&!e.assetList[r].error)this.setSchedulePosition(t,r);else{const i=this.schedule.items;if(i){const s=t+1,l=i.length;if(s>=l){this.setSchedulePosition(-1);return}const c=e.resumeTime;this.timelinePos<c&&(this.timelinePos=c,this.checkBuffer()),this.setSchedulePosition(s)}}}setScheduleToAssetAtTime(e,t){const n=this.schedule,r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),l=n.findAssetIndex(i,e);this.setSchedulePosition(s,l)}}setSchedulePosition(e,t){const n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const r=e>=0?n[e]:null,i=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(i)){var l;const u=i.event,f=this.playingAsset,h=f==null?void 0:f.identifier,A=h?this.getAssetPlayer(h):null;if(A&&h&&(!this.eventItemsMatch(i,r)||t!==void 0&&h!==((l=u.assetList)==null?void 0:l[t].identifier))){var c;const C=u.findAssetIndex(f);this.log(`INTERSTITIAL_ASSET_ENDED ${C+1}/${u.assetList.length} ${Na(f)}`),this.endedAsset=f,this.playingAsset=null,this.hls.trigger(d.INTERSTITIAL_ASSET_ENDED,{asset:f,assetListIndex:C,event:u,schedule:n.slice(0),scheduleIndex:e,player:A}),this.retreiveMediaSource(h,r),A.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&A.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${u} ${ds(i)}`),u.hasPlayed=!0,this.hls.trigger(d.INTERSTITIAL_ENDED,{event:u,schedule:n.slice(0),scheduleIndex:e}),u.cue.once)){this.updateSchedule();const C=this.schedule.items;if(r&&C){const R=this.schedule.findItemIndex(r);this.advanceSchedule(R,C,t,i,s)}return}}this.advanceSchedule(e,n,t,i,s)}advanceSchedule(e,t,n,r,i){const s=e>=0?t[e]:null,l=this.primaryMedia,c=this.playerQueue;if(c.length&&c.forEach(u=>{const f=u.interstitial,h=this.schedule.findEventIndex(f.identifier);(h<e||h>e+1)&&this.clearInterstitial(f,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const u=s.event;n===void 0&&(n=this.schedule.findAssetIndex(u,this.timelinePos));const f=this.waitingItem;this.assetsBuffered(s,l)||this.setBufferingItem(s);let h=this.preloadAssets(u,n);if(this.eventItemsMatch(s,f||r)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${ds(s)} ${u.appendInPlace?"append in place":""}`),this.hls.trigger(d.INTERSTITIAL_STARTED,{event:u,schedule:t.slice(0),scheduleIndex:e})),!u.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${u}`);return}if(u.assetListLoader&&(u.assetListLoader.destroy(),u.assetListLoader=void 0),!l){this.log(`Waiting for attachMedia to start Interstitial ${u}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;const A=u.assetList[n];if(!A){const C=t[e+1],R=this.media;C&&R&&!this.isInterstitial(C)&&R.currentTime<C.start&&(R.currentTime=this.timelinePos=C.start),this.advanceAfterAssetEnded(u,e,n||0);return}if(h||(h=this.getAssetPlayer(A.identifier)),h===null||h.destroyed){const C=u.assetList.length;this.warn(`asset ${n+1}/${C} player destroyed ${u}`),h=this.createAssetPlayer(u,A,n)}if(!this.eventItemsMatch(s,this.bufferingItem)&&u.appendInPlace&&this.isAssetBuffered(A))return;this.startAssetPlayer(h,n,t,e,l),this.shouldPlay&&No(h.media)}else s!==null?(this.resumePrimary(s,e,r),this.shouldPlay&&No(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e,t;return(e=this.mediaSelection)==null||(t=e.main)==null?void 0:t.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${ds(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let s=this.timelinePos;(s<e.start||s>=e.end)&&(s=this.getPrimaryResumption(e,t),this.timelinePos=s),this.attachPrimary(s,e)}if(!n)return;const i=this.schedule.items;i&&(this.log(`resumed ${ds(e)}`),this.hls.trigger(d.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:wn.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(d.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(d.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1)return;const n=this.hls.levels[t.level],r=x(x({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=x(x({},this.altSelection),{},{audio:n});return}const i=x(x({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=x(x({},this.altSelection),{},{subtitles:n});return}const i=x(x({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=Fe(t);this.playerQueue.forEach(r=>r.hls.setAudioOption(t)||r.hls.setAudioOption(n))}onSubtitleTrackSwitch(e,t){const n=Fe(t);this.playerQueue.forEach(r=>r.hls.setSubtitleOption(t)||t.id!==-1&&r.hls.setSubtitleOption(n))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const i=t[r];if(i.cue.post){var n;const s=this.schedule.findEventIndex(i.identifier),l=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(l)&&this.eventItemsMatch(l,this.bufferingItem)&&this.bufferedToItem(l,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){const n=this.schedule.items;if(e&&n){const r=this.findItemIndex(e,t);return n[r]||null}return null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=wn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const s=this.playingItem,l=this.findItemIndex(s);let c=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var u,f;const h=this.findItemIndex(i),A=Math.min(h+1,t.length-1),C=t[A];if((c===-1&&i&&e>=i.end||(u=C.event)!=null&&u.appendInPlace&&e+.01>=C.start)&&(c=A),A-l>1&&(i==null||(f=i.event)==null?void 0:f.appendInPlace)===!1)return;if(this.bufferedPos=e,c>h&&c>l)this.bufferedToItem(C);else{const R=this.primaryDetails;this.primaryLive&&R&&e>R.edge-R.targetduration&&C.start<R.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(C)&&this.preloadAssets(C.event,0)}}else n&&s&&!this.itemsMatch(s,i)&&(c===l?this.bufferedToItem(s):c===l+1&&this.bufferedToItem(t[c]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const i=this.getAssetPlayer(r.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),l=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const c=l?l.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${ds(e)}`+(t?` (${c.toFixed(2)} remaining)`:"")),s?e.event.assetList.forEach(u=>{const f=this.getAssetPlayer(u.identifier);f&&f.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(u=>u.pauseBuffering()))}this.hls.trigger(d.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,i=n.cue.once;if(r||!i){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const l=n.assetList[t],c=this.primaryMedia;l&&c&&this.bufferAssetPlayer(s,c)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,s=e.cue.once;if(i){const c=e.timelineStart;if(e.appendInPlace){var l;const A=this.playingItem;!this.isInterstitial(A)&&(A==null||(l=A.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(c+.25)}let u,f=0;if(!this.playingItem&&this.primaryLive&&(f=this.hls.startPosition,f===-1&&(f=this.hls.liveSyncPosition||0)),f&&!(e.cue.pre||e.cue.post)){const A=f-c;A>0&&(u=Math.round(A*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${u?` live-start: ${f} start-offset: ${u}`:""}`),n)return this.createAsset(e,0,0,c,e.duration,n);const h=this.assetListLoader.loadAssetList(e,u);h&&(e.assetListLoader=h)}else if(!s&&r){for(let c=t;c<r;c++){const u=e.assetList[c],f=this.getAssetPlayerQueueIndex(u.identifier);(f===-1||this.playerQueue[f].destroyed)&&!u.error&&this.createAssetPlayer(e,u,c)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,i,s){const l={parentIdentifier:e.identifier,identifier:ju(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,n){this.log(`create HLSAssetPlayer for ${Na(t)}`);const r=this.hls,i=r.userConfig;let s=i.videoPreference;const l=r.loadLevelObj||r.levels[r.currentLevel];(s||l)&&(s=m({},s),l.videoCodec&&(s.videoCodec=l.videoCodec),l.videoRange&&(s.allowedVideoRanges=[l.videoRange]));const c=r.audioTracks[r.audioTrack],u=r.subtitleTracks[r.subtitleTrack];let f=0;if(this.primaryLive||e.appendInPlace){const Ue=this.timelinePos-t.timelineStart;if(Ue>1){const xt=t.duration;xt&&Ue<xt&&(f=Ue)}}const h=t.identifier,A=x(x({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:h,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:f,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:c||i.audioPreference,subtitlePreference:u||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(A.timelineOffset=t.timelineStart));const C=A.cmcd;C!=null&&C.sessionId&&C.contentId&&(A.cmcd=m({},C,{contentId:Gs(t.uri)})),this.getAssetPlayer(h)&&this.warn(`Duplicate date range identifier ${e} and asset ${h}`);const R=new Hu(this.HlsPlayerClass,A,e,t);this.playerQueue.push(R),e.assetList[n]=t;const J=Ue=>{if(Ue.live){const rn=new Error(`Interstitials MUST be VOD assets ${e}`),At={fatal:!0,type:ge.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:rn};this.handleAssetItemError(At,e,this.schedule.findEventIndex(e.identifier),n,rn.message);return}const xt=Ue.edge-Ue.fragmentStart,wt=t.duration;(wt===null||xt>wt)&&(this.log(`Interstitial asset "${h}" duration change ${wt} > ${xt}`),t.duration=xt,this.updateSchedule())};R.on(d.LEVEL_UPDATED,(Ue,{details:xt})=>J(xt)),R.on(d.LEVEL_PTS_UPDATED,(Ue,{details:xt})=>J(xt));const V=(Ue,xt)=>{const wt=this.getAssetPlayer(h);if(wt&&xt.tracks){wt.off(d.BUFFER_CODECS,V),wt.tracks=xt.tracks;const rn=this.primaryMedia;this.bufferingAsset===wt.assetItem&&rn&&!wt.media&&this.bufferAssetPlayer(wt,rn)}};R.on(d.BUFFER_CODECS,V);const Ae=()=>{var Ue;const xt=this.getAssetPlayer(h);if(this.log(`buffered to end of asset ${xt}`),!xt)return;const wt=this.schedule.findEventIndex(e.identifier),rn=e.findAssetIndex(t),At=rn+1,qt=(Ue=this.schedule.items)==null?void 0:Ue[wt];if(this.isInterstitial(qt))if(rn!==-1&&!e.isAssetPastPlayoutLimit(At)&&!e.assetList[At].error)this.bufferedToItem(qt,At);else{var dn;const Ft=(dn=this.schedule.items)==null?void 0:dn[wt+1];Ft&&this.bufferedToItem(Ft)}};R.on(d.BUFFERED_TO_END,Ae);const Ve=Ue=>()=>{if(!this.getAssetPlayer(h))return;this.shouldPlay=!0;const wt=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,wt,Ue)};return R.once(d.MEDIA_ENDED,Ve(n)),R.once(d.PLAYOUT_LIMIT_REACHED,Ve(1/0)),R.on(d.ERROR,(Ue,xt)=>{const wt=this.getAssetPlayer(h);if(xt.details===O.BUFFER_STALLED_ERROR){if(wt!=null&&wt.media){const rn=wt.currentTime,At=wt.duration-rn;rn&&e.appendInPlace&&At/wt.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${h} ${e} at ${wt.media.currentTime}`),Ae()):(this.warn(`Stalled at ${rn} of ${rn+At} in asset ${h} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(xt,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${xt.error} ${e}`)}),R.on(d.DESTROYING,()=>{if(!this.getAssetPlayer(h))return;const xt=new Error(`Asset player destroyed unexpectedly ${h}`),wt={fatal:!0,type:ge.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:xt};this.handleAssetItemError(wt,e,this.schedule.findEventIndex(e.identifier),n,xt.message)}),this.hls.trigger(d.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:R}),R}clearInterstitial(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)}),e.reset()}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){this.log(`clearAssetPlayer "${e}" toSegment: ${t&&ds(t)}`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:s,assetItem:l,assetId:c}=e,u=s.assetList.length,f=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!f||f.identifier!==c)&&(f&&(this.clearAssetPlayer(f.identifier,n[r]),delete f.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${u} ${e}`),this.hls.trigger(d.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;const{interstitial:i,assetItem:s,assetId:l}=e,c=this.schedule.findEventIndex(i.identifier),u=(n=this.schedule.items)==null?void 0:n[c];if(!u)return;this.setBufferingItem(u),this.bufferingAsset=s;const f=this.getBufferingPlayer();if(f===e)return;const h=i.appendInPlace;if(h&&(f==null?void 0:f.interstitial.appendInPlace)===!1)return;const A=(f==null?void 0:f.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(h&&s!==this.playingAsset){if(!e.tracks)return;if(A&&!pe(A,e.tracks)){const C=new Error(`Asset "${l}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(A)}')`),R={fatal:!0,type:ge.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:C},J=i.findAssetIndex(s);this.handleAssetItemError(R,i,c,J,C.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===O.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;let l=null;if(s){const h=this.getAssetPlayerQueueIndex(s.identifier);l=this.playerQueue[h]||null}const c=this.schedule.items,u=m({},e,{fatal:!1,errorAction:qe(!0),asset:s,assetListIndex:r,event:t,schedule:c,scheduleIndex:n,player:l});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(d.INTERSTITIAL_ASSET_ERROR,u),!e.fatal)return;const f=new Error(i);s&&(this.playingAsset!==s&&this.clearAssetPlayer(s.identifier,null),s.error=f),t.assetList.some(h=>!h.error)?t.appendInPlace&&(t.error=f):t.error=f,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${n?ds(n):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let r=this.timelinePos;r===-1&&(r=this.hls.startPosition);const i=this.updateItem(n,r);if(this.itemsMatch(n,i))this.clearInterstitial(e,null);else{const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}}else this.checkStart()}onAssetListLoaded(e,t){var n;const r=t.event,i=r.identifier,s=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const l=r.timelineStart,c=r.duration;let u=0;s.forEach((R,J)=>{const V=parseFloat(R.DURATION);this.createAsset(r,J,u,l+u,V,R.URI),u+=V}),r.duration=u,this.log(`Loaded asset-list with duration: ${u} (was: ${c}) ${r}`);const f=this.waitingItem,h=(f==null?void 0:f.event.identifier)===i;this.updateSchedule();const A=(n=this.bufferingItem)==null?void 0:n.event;if(h){var C;const R=this.schedule.findEventIndex(i),J=(C=this.schedule.items)==null?void 0:C[R];if(J){if(!this.playingItem&&this.timelinePos>J.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==R){r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.primaryFallback(r);return}this.setBufferingItem(J)}this.setSchedulePosition(R)}else if((A==null?void 0:A.identifier)===i&&A.appendInPlace){const R=r.assetList[0],J=this.getAssetPlayer(R.identifier),V=this.primaryMedia;R&&J&&V&&this.bufferAssetPlayer(J,V)}}onError(e,t){switch(t.details){case O.ASSET_LIST_PARSING_ERROR:case O.ASSET_LIST_LOAD_ERROR:case O.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&this.primaryFallback(n);break}case O.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Mo=500;class Qu extends ti{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",oe.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(d.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(d.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=on.IDLE,this.setInterval(Mo),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(ce(n)&&(this.fragPrevious=n),this.state=on.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const l=n.start;for(let u=0;u<i.length;u++)if(l>=i[u].start&&l<=i[u].end){s=i[u];break}const c=n.start+n.duration;s?s.end=c:(s={start:l,end:c},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let l=0;l<s.length;){if(s[l].end<=i){s.shift();continue}else if(s[l].start<i)s[l].start=i;else break;l++}}),this.fragmentTracker.removeFragmentsInRange(n,i,oe.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===oe.SUBTITLE&&(t.details===O.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==on.STOPPED&&(this.state=on.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&vo(this.levels,t)){this.levels=t.map(n=>new Lt(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Lt(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,oe.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==on.STOPPED&&this.setInterval(Mo)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=i[l];if(l>=i.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let u=0;if(s.live||(n=c.details)!=null&&n.live){const h=this.mainDetails;if(s.deltaUpdateFailed||!h)return;const A=h.fragments[0];if(!c.details)s.hasProgramDateTime&&h.hasProgramDateTime?(Pr(s,h),u=s.fragmentStart):A&&(u=A.start,ri(s,u));else{var f;u=this.alignPlaylists(s,c.details,(f=this.levelLastLoaded)==null?void 0:f.details),u===0&&A&&(u=A.start,ri(s,u))}}c.details=s,this.levelLastLoaded=c,l===r&&(this.hls.trigger(d.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===on.IDLE&&(Zn(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),c.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&&Br(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,Nr(r.method)).catch(l=>{throw i.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:t}),l}).then(l=>{const c=performance.now();i.trigger(d.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=on.IDLE})}}doTick(){if(!this.media){this.state=on.IDLE;return}if(this.state===on.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,i=this.getLoadPosition(),s=wn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:l,len:c}=s,u=n.details,f=this.hls.maxBufferLength+u.levelTargetDuration;if(c>f)return;const h=u.fragments,A=h.length,C=u.edge;let R=null;const J=this.fragPrevious;if(l<C){const Ve=r.maxFragLookUpTolerance,Ue=l>C-Ve?0:Ve;R=Zn(J,h,Math.max(h[0].start,l),Ue),!R&&J&&J.start<h[0].start&&(R=h[0])}else R=h[A-1];if(R=this.filterReplacedPrimary(R,n.details),!R)return;const V=R.sn-u.startSN,Ae=h[V-1];if(Ae&&Ae.cc===R.cc&&this.fragmentTracker.getState(Ae)===$e.NOT_LOADED&&(R=Ae),this.fragmentTracker.getState(R)===$e.NOT_LOADED){const Ve=this.mapToInitFragWhenRequired(R);Ve&&this.loadFragment(Ve,n,l)}}}loadFragment(e,t,n){ce(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Ju(this.tracksBuffered[this.currentTrackId]||[])}}class Ju{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const qu={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},Oo=a=>String.fromCharCode(qu[a]||a),Ii=15,qi=100,$u={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ec={17:2,18:4,21:6,22:8,23:10,19:13,20:15},tc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},nc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},rc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class ic{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;j.log(`${this.time} [${e}] ${n}`)}}}const ys=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Fo{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 sc{constructor(){this.uchar=" ",this.penState=new Fo}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 ac{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Fo,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<qi;t++)this.chars.push(new sc);this.logger=e}equals(e){for(let t=0;t<qi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<qi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<qi;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>qi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=qi)}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=Oo(e);if(this.pos>=qi){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<qi;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<qi;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 Ma{constructor(e){this.rows=[],this.currRow=Ii-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ii;t++)this.rows.push(new ac(e));this.logger=e}reset(){for(let e=0;e<Ii;e++)this.rows[e].clear();this.currRow=Ii-1}equals(e){let t=!0;for(let n=0;n<Ii;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ii;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ii;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 = "+Jt(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let l=0;l<Ii;l++)this.rows[l].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const l=s.rows[i].cueStartTime,c=this.logger.time;if(l!==null&&c!==null&&l<c)for(let u=0;u<this.nrRollUpRows;u++)this.rows[t-this.nrRollUpRows+u+1].copy(s.rows[i+u])}}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 = "+Jt(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<Ii;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 Bo{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 Ma(n),this.nonDisplayedMemory=new Ma(n),this.lastOutputScreen=new Ma(n),this.currRollUpRow=this.displayedMemory.rows[Ii-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[Ii-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: "+Jt(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 Uo{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=lc(),this.logger=void 0;const r=this.logger=new ic;this.channels=[null,new Bo(e,t,r),new Bo(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,l=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+ys([t[n],t[n+1]])+"] -> ("+ys([r,i])+")");const c=this.cmdHistory;if(r>=16&&r<=31){if(oc(r,i,c)){la(null,null,c),this.logger.log(3,()=>"Repeated command ("+ys([r,i])+") is dropped");continue}la(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 la(null,null,c);if(!s&&(l=this.parseChars(r,i),l)){const f=this.currentChannel;f&&f>0?this.channels[f].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+ys([r,i])+" orig: "+ys([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 ("+ys([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?$u[e]:tc[e]:n=s===1?ec[e]:nc[e];const l=this.channels[s];return l?(l.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 '"+Oo(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 = "+ys(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=rc[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const l=e<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}la(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 la(a,e,t){t.a=a,t.b=e}function oc(a,e,t){return t.a===a&&t.b===e}function lc(){return{a:null,b:null}}var Oa=function(){if(Dn!=null&&Dn.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(l,c){if(typeof c!="string"||!Array.isArray(l))return!1;const u=c.toLowerCase();return~l.indexOf(u)?u:!1}function n(l){return t(a,l)}function r(l){return t(e,l)}function i(l,...c){let u=1;for(;u<arguments.length;u++){const f=arguments[u];for(const h in f)l[h]=f[h]}return l}function s(l,c,u){const f=this,h={enumerable:!0};f.hasBeenReset=!1;let A="",C=!1,R=l,J=c,V=u,Ae=null,Ve="",Ue=!0,xt="auto",wt="start",rn=50,At="middle",qt=50,dn="middle";Object.defineProperty(f,"id",i({},h,{get:function(){return A},set:function(Ft){A=""+Ft}})),Object.defineProperty(f,"pauseOnExit",i({},h,{get:function(){return C},set:function(Ft){C=!!Ft}})),Object.defineProperty(f,"startTime",i({},h,{get:function(){return R},set:function(Ft){if(typeof Ft!="number")throw new TypeError("Start time must be set to a number.");R=Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",i({},h,{get:function(){return J},set:function(Ft){if(typeof Ft!="number")throw new TypeError("End time must be set to a number.");J=Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"text",i({},h,{get:function(){return V},set:function(Ft){V=""+Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",i({},h,{get:function(){return Ae},set:function(Ft){Ae=Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",i({},h,{get:function(){return Ve},set:function(Ft){const Nn=n(Ft);if(Nn===!1)throw new SyntaxError("An invalid or illegal string was specified.");Ve=Nn,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",i({},h,{get:function(){return Ue},set:function(Ft){Ue=!!Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",i({},h,{get:function(){return xt},set:function(Ft){if(typeof Ft!="number"&&Ft!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");xt=Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",i({},h,{get:function(){return wt},set:function(Ft){const Nn=r(Ft);if(!Nn)throw new SyntaxError("An invalid or illegal string was specified.");wt=Nn,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",i({},h,{get:function(){return rn},set:function(Ft){if(Ft<0||Ft>100)throw new Error("Position must be between 0 and 100.");rn=Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",i({},h,{get:function(){return At},set:function(Ft){const Nn=r(Ft);if(!Nn)throw new SyntaxError("An invalid or illegal string was specified.");At=Nn,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",i({},h,{get:function(){return qt},set:function(Ft){if(Ft<0||Ft>100)throw new Error("Size must be between 0 and 100.");qt=Ft,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",i({},h,{get:function(){return dn},set:function(Ft){const Nn=r(Ft);if(!Nn)throw new SyntaxError("An invalid or illegal string was specified.");dn=Nn,this.hasBeenReset=!0}})),f.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class uc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Zo(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 cc{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 Ko(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 l=s[0],c=s[1];e(l,c)}}const Fa=new Oa(0,0,""),ua=Fa.align==="middle"?"middle":"center";function dc(a,e,t){const n=a;function r(){const l=Zo(a);if(l===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),l}function i(l,c){const u=new cc;Ko(l,function(A,C){let R;switch(A){case"region":for(let J=t.length-1;J>=0;J--)if(t[J].id===C){u.set(A,t[J].region);break}break;case"vertical":u.alt(A,C,["rl","lr"]);break;case"line":R=C.split(","),u.integer(A,R[0]),u.percent(A,R[0])&&u.set("snapToLines",!1),u.alt(A,R[0],["auto"]),R.length===2&&u.alt("lineAlign",R[1],["start",ua,"end"]);break;case"position":R=C.split(","),u.percent(A,R[0]),R.length===2&&u.alt("positionAlign",R[1],["start",ua,"end","line-left","line-right","auto"]);break;case"size":u.percent(A,C);break;case"align":u.alt(A,C,["start",ua,"end","left","right"]);break}},/:/,/\s/),c.region=u.get("region",null),c.vertical=u.get("vertical","");let f=u.get("line","auto");f==="auto"&&Fa.line===-1&&(f=-1),c.line=f,c.lineAlign=u.get("lineAlign","start"),c.snapToLines=u.get("snapToLines",!0),c.size=u.get("size",100),c.align=u.get("align",ua);let h=u.get("position","auto");h==="auto"&&Fa.position===50&&(h=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=h}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 zo(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
`)}class fc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new uc,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=zo(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
|
|
`;)++s;const l=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
|
|
`&&++s,t.buffer=i.slice(s),l}function r(i){Ko(i,function(s,l){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const l=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(l!=null&&l[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 Oa(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{dc(i,t.cue,t.regionList)}catch(l){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const l=i.indexOf("-->")!==-1;if(!i||l&&(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 hc=/\r\n|\n\r|\n|\r/g,Ba=function(e,t,n=0){return e.slice(n,n+t.length)===t},pc=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(!p(t)||!p(n)||!p(r)||!p(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function Ua(a,e,t){return Gs(a.toString())+Gs(e.toString())+Gs(t)}const mc=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 gc(a,e,t,n,r,i,s){const l=new fc,c=We(new Uint8Array(a)).trim().replace(hc,`
|
|
`).split(`
|
|
`),u=[],f=e?Zl(e.baseTime,e.timescale):0;let h="00:00.000",A=0,C=0,R,J=!0;l.oncue=function(V){const Ae=t[n];let Ve=t.ccOffset;const Ue=(A-f)/9e4;if(Ae!=null&&Ae.new&&(C!==void 0?Ve=t.ccOffset=Ae.start:mc(t,n,Ue)),Ue){if(!e){R=new Error("Missing initPTS for VTT MPEGTS");return}Ve=Ue-t.presentationOffset}const xt=V.endTime-V.startTime,wt=wi((V.startTime+Ve-C)*9e4,r*9e4)/9e4;V.startTime=Math.max(wt,0),V.endTime=Math.max(wt+xt,0);const rn=V.text.trim();V.text=decodeURIComponent(encodeURIComponent(rn)),V.id||(V.id=Ua(V.startTime,V.endTime,rn)),V.endTime>0&&u.push(V)},l.onparsingerror=function(V){R=V},l.onflush=function(){if(R){s(R);return}i(u)},c.forEach(V=>{if(J)if(Ba(V,"X-TIMESTAMP-MAP=")){J=!1,V.slice(16).split(",").forEach(Ae=>{Ba(Ae,"LOCAL:")?h=Ae.slice(6):Ba(Ae,"MPEGTS:")&&(A=parseInt(Ae.slice(7)))});try{C=pc(h)/1e3}catch(Ae){R=Ae}return}else V===""&&(J=!1);l.parse(V+`
|
|
`)}),l.flush()}const Za="stpp.ttml.im1t",jo=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Go=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,vc={left:"start",center:"center",right:"end",start:"start",end:"end"};function Wo(a,e,t,n){const r=B(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(l=>We(l)),s=Ul(e.baseTime,1,e.timescale);try{i.forEach(l=>t(yc(l,s)))}catch(l){n(l)}}function yc(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((h,A)=>(h[A]=r.getAttribute(`ttp:${A}`)||i[A],h),{}),l=r.getAttribute("xml:space")!=="preserve",c=Ho(Ka(r,"styling","style")),u=Ho(Ka(r,"layout","region")),f=Ka(r,"body","[begin]");return[].map.call(f,h=>{const A=Vo(h,l);if(!A||!h.hasAttribute("begin"))return null;const C=ja(h.getAttribute("begin"),s),R=ja(h.getAttribute("dur"),s);let J=ja(h.getAttribute("end"),s);if(C===null)throw Yo(h);if(J===null){if(R===null)throw Yo(h);J=C+R}const V=new Oa(C-e,J-e,A);V.id=Ua(V.startTime,V.endTime,V.text);const Ae=u[h.getAttribute("region")],Ve=c[h.getAttribute("style")],Ue=_c(Ae,Ve,c),{textAlign:xt}=Ue;if(xt){const wt=vc[xt];wt&&(V.lineAlign=wt),V.align=xt}return m(V,Ue),V}).filter(h=>h!==null)}function Ka(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Ho(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Vo(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?Vo(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function _c(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((l,c)=>{const u=za(e,n,c)||za(a,n,c)||za(r,n,c);return u&&(l[c]=u),l},{})}function za(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Yo(a){return new Error(`Could not parse ttml timestamp ${a}`)}function ja(a,e){if(!a)return null;let t=Zo(a);return t===null&&(jo.test(a)?t=Ec(a,e):Go.test(a)&&(t=bc(a,e))),t}function Ec(a,e){const t=jo.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 bc(a,e){const t=Go.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 ca{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class xc{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=Jo(),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(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this),e.on(d.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(d.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(d.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this),e.off(d.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(d.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(d.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new ca(this,"textTrack1"),t=new ca(this,"textTrack2"),n=new ca(this,"textTrack3"),r=new ca(this,"textTrack4");this.cea608Parser1=new Uo(1,e,t),this.cea608Parser2=new Uo(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let l=i.length;l--;){const c=i[l],u=Sc(c[0],c[1],t,n);if(u>=0&&(c[0]=Math.min(c[0],t),c[1]=Math.max(c[1],n),s=!0,u/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const l=this.captionsTracks[e];this.Cues.newCue(l,t,n,r)}else{const l=this.Cues.newCue(null,t,n,r);this.hls.trigger(d.CUES_PARSED,{type:"captions",cues:l,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n===oe.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(l=>{this.onFragLoaded(d.FRAG_LOADED,l)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(Qo(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],l=this.getExistingTrack(i,s);if(l)n[e]=l,Is(n[e]),Lo(n[e],r);else{const c=this.createTextTrack("captions",i,s);c&&(c[e]=!0,n[e]=c)}}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(d.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(i=>{Is(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Jo(),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++)Is(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===Za);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(vo(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?aa(s.textTracks):null;if(this.tracks.forEach((c,u)=>{let f;if(l){let h=null;for(let A=0;A<l.length;A++)if(l[A]&&Qo(l[A],c)){h=l[A],l[A]=null;break}h&&(f=h)}if(f)Is(f);else{const h=Xo(c);f=this.createTextTrack(h,c.name,c.lang),f&&(f.mode="disabled")}f&&this.textTracks.push(f)}),l!=null&&l.length){const c=l.filter(u=>u!==null).map(u=>u.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(d.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===oe.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:u}=t.frag,f=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(u!==l+1||u===l&&f!==this.lastPartIndex+1||c!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=c,this.lastSn=u,this.lastPartIndex=f}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===oe.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const l=this.tracks[n.level],c=this.vttCCs;c[n.cc]||(c[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),l&&l.textCodec===Za?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Wo(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,l=i.length-1;if(!i[n.cc]&&l===-1){s.push(e);return}const c=this.hls,u=(t=n.initSegment)!=null&&t.data?ot(n.initSegment.data,new Uint8Array(r)).buffer:r;gc(u,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,f=>{this._appendCues(f,n.level),c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},f=>{const h=f.message==="Missing initPTS for VTT MPEGTS";h?s.push(e):this._fallbackToIMSC1(n,r),c.logger.log(`Failed to parse VTT cue: ${f}`),!(h&&l>n.cc)&&c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:f})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Wo(t,this.initPTS[e.cc],()=>{n.textCodec=Za,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=>Io(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(d.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===oe.SUBTITLE&&this.onFragLoaded(d.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(!(n.type===oe.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const s=r[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const l=this.extractCea608Data(s);this.cea608Parser1.addData(r[i].pts,l[0]),this.cea608Parser2.addData(r[i].pts,l[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:l}=this;Object.keys(l).forEach(c=>ka(l[c],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>ka(l[c],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],l=127&e[r++],c=127&e[r++];if(l===0&&c===0)continue;if((4&s)!==0){const f=3&s;(f===0||f===1)&&(t[f].push(l),t[f].push(c))}}return t}}function Xo(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Qo(a,e){return!!a&&a.kind===Xo(e)&&Ta(e,a)}function Sc(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function Jo(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const wc=/\s/,Ac={newCue(a,e,t,n){const r=[];let i,s,l,c,u;const f=self.VTTCue||self.TextTrackCue;for(let A=0;A<n.rows.length;A++)if(i=n.rows[A],l=!0,c=0,u="",!i.isEmpty()){var h;for(let J=0;J<i.chars.length;J++)wc.test(i.chars[J].uchar)&&l?c++:(u+=i.chars[J].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),c>=16?c--:c++;const C=zo(u.trim()),R=Ua(e,t,C);a!=null&&(h=a.cues)!=null&&h.getCueById(R)||(s=new f(e,t,C),s.id=R,s.line=A+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((A,C)=>A.line==="auto"||C.line==="auto"?0:A.line>8&&C.line>8?C.line-A.line:A.line-C.line),r.forEach(A=>Io(a,A))),r}};function Tc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const Cc=/(\d+)-(\d+)\/(\d+)/;class qo{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||Ic,this.controller=new self.AbortController,this.stats=new g}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=Dc(e,this.controller.signal),s=e.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:u}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=c&&p(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Ks(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(h=>{var A;this.response=this.loader=h;const C=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},u-(C-r.loading.start)),!h.ok){const{status:J,statusText:V}=h;throw new kc(V||"fetch, bad network response",J,h)}r.loading.first=C,r.total=Lc(h.headers)||r.total;const R=(A=this.callbacks)==null?void 0:A.onProgress;return R&&p(t.highWaterMark)?this.loadProgressively(h,r,e,t.highWaterMark,R):s?h.arrayBuffer():e.responseType==="json"?h.json():h.text()}).then(h=>{var A,C;const R=this.response;if(!R)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const J=h[l];J&&(r.loaded=r.total=J);const V={url:R.url,data:h,code:R.status},Ae=(A=this.callbacks)==null?void 0:A.onProgress;Ae&&!p(t.highWaterMark)&&Ae(r,e,h,R),(C=this.callbacks)==null||C.onSuccess(V,r,e,R)}).catch(h=>{var A;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const C=h&&h.code||0,R=h?h.message:null;(A=this.callbacks)==null||A.onError({code:C,text:R},e,h?h.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 rs,l=e.body.getReader(),c=()=>l.read().then(u=>{if(u.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const f=u.value,h=f.length;return t.loaded+=h,h<r||s.dataLength?(s.push(f),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,f.buffer,e),c()}).catch(()=>Promise.reject());return c()}}function Dc(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(m({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function Rc(a){const e=Cc.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Lc(a){const e=a.get("Content-Range");if(e){const n=Rc(e);if(p(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function Ic(a,e){return new self.Request(a.url,e)}class kc extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Pc=/^age:\s*[\d.]+\s*$/im;class $o{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 g,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var l;(l=this.callbacks)==null||l.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 l in r)e.setRequestHeader(l,r[l]);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&&p(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 u=t.status,f=t.responseType==="text"?t.responseText:null;if(u>=200&&u<300){const R=f!=null?f:t.response;if(R!=null){var s,l;n.loading.end=Math.max(self.performance.now(),n.loading.first);const J=t.responseType==="arraybuffer"?R.byteLength:R.length;n.loaded=n.total=J,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const V=(s=this.callbacks)==null?void 0:s.onProgress;V&&V(n,e,R,t);const Ae={url:t.responseURL,data:R,code:u};(l=this.callbacks)==null||l.onSuccess(Ae,n,e,t);return}}const h=i.loadPolicy.errorRetry,A=n.retry,C={url:e.url,data:void 0,code:u};if(mn(h,A,!1,C))this.retry(h);else{var c;j.error(`${u} while loading ${e.url}`),(c=this.callbacks)==null||c.onError({code:u,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(mn(e,t,!0))this.retry(e);else{var n;j.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=Me(e,n.retry),n.retry++,j.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&Pc.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const Nc={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Mc=x(x({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:$o,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:_n,bufferController:tu,capLevelController:Da,errorController:nt,fpsController:Uu,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:er,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:Nc},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Oc()),{},{subtitleStreamController:Qu,subtitleTrackController:zu,timelineController:xc,audioStreamController:Jl,audioTrackController:ql,emeController:Ls,cmcdController:Ou,contentSteeringController:Bu,interstitialsController:Xu});function Oc(){return{cueHandler:Ac,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 Fc(a,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=Ga(a),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=e[l]===void 0,u=[];i.forEach(f=>{const h=`${s}Loading${f}`,A=e[h];if(A!==void 0&&c){u.push(h);const C=n[l].default;switch(e[l]={default:C},f){case"TimeOut":C.maxLoadTimeMs=A,C.maxTimeToFirstByteMs=A;break;case"MaxRetry":C.errorRetry.maxNumRetry=A,C.timeoutRetry.maxNumRetry=A;break;case"RetryDelay":C.errorRetry.retryDelayMs=A,C.timeoutRetry.retryDelayMs=A;break;case"MaxRetryTimeout":C.errorRetry.maxRetryDelayMs=A,C.timeoutRetry.maxRetryDelayMs=A;break}}}),u.length&&t.warn(`hls.js config: "${u.join('", "')}" setting(s) are deprecated, use "${l}": ${Jt(e[l])}`)}),x(x({},n),e)}function Ga(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(Ga):Object.keys(a).reduce((e,t)=>(e[t]=Ga(a[t]),e),{}):a}function Bc(a,e){const t=a.loader;t!==qo&&t!==$o?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):Tc()&&(a.loader=qo,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const da=2,Uc=.1,Zc=.05,Kc=100;class zc extends ar{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(Kc),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ji(n,"playing",this.onMediaPlaying),Ji(n,"waiting",this.onMediaWaiting),Ji(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Ki(n,"playing",this.onMediaPlaying),Ki(n,"waiting",this.onMediaWaiting),Ki(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const i=(n=this.hls)==null?void 0:n.config;if(!i)return;const{media:s,stalled:l}=this;if(!s)return;const{seeking:c}=s,u=this.seeking&&!c,f=!this.seeking&&c,h=s.paused&&!c||s.ended||s.playbackRate===0;if(this.seeking=c,e!==t){t&&(this.ended=0),this.moved=!0,c||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!h&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(f||u){u&&this.stallResolved(e);return}if(h){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!1}));return}if(!wn.getBuffered(s).length){this.nudgeRetry=0;return}const A=wn.bufferInfo(s,e,0),C=A.nextStart||0,R=this.fragmentTracker;if(c&&R&&this.hls){const rn=el(this.hls.inFlightFragments,e),At=A.len>da,qt=!C||rn||C-e>da&&!R.getPartialFragment(e);if(At||qt)return;this.moved=!1}const J=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&R){if(!(A.len>0)&&!C)return;const At=Math.max(C,A.start||0)-e,dn=!!(J!=null&&J.live)?J.targetduration*2:da,Ft=R.getPartialFragment(e);if(At>0&&(At<=dn||Ft)){s.paused||this._trySkipBufferHole(Ft);return}}const V=i.detectStallWithCurrentTimeMs,Ae=self.performance.now(),Ve=this.waiting;if(l===null){Ve>0&&Ae-Ve<V?this.stalled=Ve:this.stalled=Ae;return}const Ue=Ae-l;if(!c&&(Ue>=V||Ve)&&this.hls){var xt;if(((xt=this.mediaSource)==null?void 0:xt.readyState)==="ended"&&!(J!=null&&J.live)&&Math.abs(e-((J==null?void 0:J.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(A),!this.media||!this.hls)return}const wt=wn.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(wt,Ue)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(d.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const i=wn.bufferedInfo(wn.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=wn.timeRangesToArray(r),l=wn.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const c=wn.bufferedInfo(s,e,0).bufferedIndex,u=s[l].end,f=s[l+1].start;if((c===-1||c>l)&&f-u<1&&e-u<2){const h=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${u} -> ${f} buffered index: ${c}`);this.warn(h.message),this.media.currentTime+=1e-6;const A=this.fragmentTracker.getPartialFragment(e)||void 0,C=wn.bufferInfo(this.media,e,0);this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:h,reason:h.message,frag:A,buffer:C.len,bufferInfo:C})}}}}}_tryFixBufferStall(e,t){var n,r;const{fragmentTracker:i,media:s}=this,l=(n=this.hls)==null?void 0:n.config;if(!s||!i||!l)return;const c=s.currentTime,u=(r=this.hls)==null?void 0:r.latestLevelDetails,f=i.getPartialFragment(c);if((f||u!=null&&u.live&&c<u.fragmentStart)&&(this._trySkipBufferHole(f)||!this.media))return;const h=e.buffered;(h&&h.length>1&&e.len>l.maxBufferHole||e.nextStart&&e.nextStart-c<l.maxBufferHole)&&(t>l.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&i!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${Jt(e)})`);this.warn(s.message),t.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=(t=this.hls)==null?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,l=wn.bufferInfo(r,s,0),c=s<l.start?l.start:l.nextStart;if(c&&this.hls){const f=l.len<=i.maxBufferHole,h=l.len>0&&l.len<1&&r.readyState<3,A=c-s;if(A>0&&(f||h)){if(A>i.maxBufferHole){let R=!1;if(s===0){const J=n.getAppendedFrag(0,oe.MAIN);J&&c<J.end&&(R=!0)}if(!R){const J=e||n.getAppendedFrag(s,oe.MAIN);if(J){var u;if(!((u=this.hls.loadLevelObj)!=null&&u.details)||el(this.hls.inFlightFragments,c))return 0;let Ae=!1,Ve=J.end;for(;Ve<c;){const Ue=n.getPartialFragment(Ve);if(Ue)Ve+=Ue.duration;else{Ae=!0;break}}if(Ae)return 0}}}const C=Math.max(c+Zc,s+Uc);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${C}`),this.moved=!0,r.currentTime=C,!(e!=null&&e.gap)){const R=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${C}`);this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:R,reason:R.message,frag:e||void 0,buffer:l.len,bufferInfo:l})}return C}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=t==null?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const l=s+(r+1)*i.nudgeOffset,c=new Error(`Nudging 'currentTime' from ${s} to ${l}`);this.warn(c.message),n.currentTime=l,t.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1,buffer:e.len,bufferInfo:e})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${i.nudgeMaxRetry} nudges`);this.error(l.message),t.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function el(a,e){const t=tl(a.main);if(t&&t.start<=e)return t;const n=tl(a.audio);return n&&n.start<=e?n:null}function tl(a){if(!a)return null;switch(a.state){case on.IDLE:case on.STOPPED:case on.ENDED:case on.ERROR:return null}return a.frag}const jc=.25;function Wa(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function nl(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,Jt(r?x({type:r},n):n))}return i}const fa=(()=>{const a=Wa();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Gc(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Wc{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(d.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Is(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Lo(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=Wa();if(s)for(let l=0;l<i.length;l++){const c=i[l].type;if(c===bi.emsg&&!n||!r)continue;const u=Xa(i[l].data);if(u){const f=i[l].pts;let h=f+i[l].duration;h>fa&&(h=fa),h-f<=0&&(h=f+jc);for(let C=0;C<u.length;C++){const R=u[C];if(!Qa(R)){this.updateId3CueEnds(f,c);const J=nl(s,f,h,R,c);J&&this.id3Track.addCue(J)}}}}}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===fa&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:l,enableID3MetadataCues:c}}=s;if(i&&(l||c)){let u;r==="audio"?u=f=>f.type===bi.audioId3&&c:r==="video"?u=f=>f.type===bi.emsg&&l:u=f=>f.type===bi.audioId3&&c||f.type===bi.emsg&&l,ka(i,t,n,u)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=e,i=Object.keys(r);let s=this.dateRangeCuesAppended;if(n&&t){var l;if((l=n.cues)!=null&&l.length){const f=Object.keys(s).filter(h=>!i.includes(h));for(let h=f.length;h--;){const A=f[h],C=s[A].cues;delete s[A],Object.keys(C).forEach(R=>{try{const J=C[R];J.removeEventListener("enter",this.onEventCueEnter),n.removeCue(J)}catch(J){}})}}else s=this.dateRangeCuesAppended={}}const c=e.fragments[e.fragments.length-1];if(i.length===0||!p(c==null?void 0:c.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const u=Wa();for(let f=0;f<i.length;f++){const h=i[f],A=r[h],C=A.startTime,R=s[h],J=(R==null?void 0:R.cues)||{};let V=(R==null?void 0:R.durationKnown)||!1,Ae=fa;const{duration:Ve,endDate:Ue}=A;if(Ue&&Ve!==null)Ae=C+Ve,V=!0;else if(A.endOnNext&&!V){const wt=i.reduce((rn,At)=>{if(At!==A.id){const qt=r[At];if(qt.class===A.class&&qt.startDate>A.startDate&&(!rn||A.startDate<rn.startDate))return qt}return rn},null);wt&&(Ae=wt.startTime,V=!0)}const xt=Object.keys(A.attr);for(let wt=0;wt<xt.length;wt++){const rn=xt[wt];if(!dr(rn))continue;const At=J[rn];if(At)V&&!R.durationKnown?At.endTime=Ae:Math.abs(At.startTime-C)>.01&&(At.startTime=C,At.endTime=Ae);else if(u){let qt=A.attr[rn];vr(rn)&&(qt=Gc(qt));const Ft=nl(u,C,Ae,{key:rn,data:qt},bi.dateRange);Ft&&(Ft.id=h,this.id3Track.addCue(Ft),J[rn]=Ft,this.hls.config.interstitialsController&&(rn==="X-ASSET-LIST"||rn==="X-ASSET-URL")&&Ft.addEventListener("enter",this.onEventCueEnter))}}s[h]={cues:J,dateRange:A,durationKnown:V}}}}class Hc{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const l=this.targetLatency;if(l===null)return;const c=r-l,u=Math.min(this.maxLatency,l+n.targetduration);if(c<u&&c>.05&&this.forwardBufferLength>1){const h=Math.min(2,Math.max(1,s)),A=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,C=Math.min(h,Math.max(1,A));this.changeMediaPlaybackRate(t,C)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let u=l&&n||t;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||u===0)&&(u=i!==void 0?i:s*r);const f=r;return u+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,f)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,l=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),l)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===O.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class Vc extends Aa{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(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.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 l=!1,c=!1,u=!1;t.levels.forEach(f=>{var h;const A=f.attrs;let{audioCodec:C,videoCodec:R}=f;C&&(f.audioCodec=C=Rt(C,n)||void 0),((h=R)==null?void 0:h.indexOf("avc1"))===0&&(R=f.videoCodec=Le(R));const{width:J,height:V,unknownCodecs:Ae}=f;let Ve=Ae?Ae.length:0;if(Ae)for(let Nn=Ve;Nn--;){const Yn=Ae[Nn];this.isAudioSupported(Yn)?(f.audioCodec=C=C?`${C},${Yn}`:Yn,Ve--,Qt.audio[C.substring(0,4)]=2):this.isVideoSupported(Yn)&&(f.videoCodec=R=R?`${R},${Yn}`:Yn,Ve--,Qt.video[R.substring(0,4)]=2)}if(l||(l=!!(J&&V)),c||(c=!!R),u||(u=!!C),Ve||C&&!this.isAudioSupported(C)||R&&!this.isVideoSupported(R)){this.log(`Some or all CODECS not supported "${A.CODECS}"`);return}const{CODECS:Ue,"FRAME-RATE":xt,"HDCP-LEVEL":wt,"PATHWAY-ID":rn,RESOLUTION:At,"VIDEO-RANGE":qt}=A,Ft=`${`${rn||"."}-`}${f.bitrate}-${At}-${xt}-${Ue}-${qt}-${wt}`;if(i[Ft])if(i[Ft].uri!==f.url&&!f.attrs["PATHWAY-ID"]){const Nn=s[Ft]+=1;f.attrs["PATHWAY-ID"]=new Array(Nn+1).join(".");const Yn=this.createLevel(f);i[Ft]=Yn,r.push(Yn)}else i[Ft].addGroupId("audio",A.AUDIO),i[Ft].addGroupId("text",A.SUBTITLES);else{const Nn=this.createLevel(f);i[Ft]=Nn,s[Ft]=1,r.push(Nn)}}),this.filterAndSortMediaOptions(r,t,l,c,u)}createLevel(e){const t=new Lt(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=Ee(r,[])}return t}isAudioSupported(e){return ke(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return ke(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],l=[],c=e;if((n||r)&&i&&(c=c.filter(({videoCodec:V,videoRange:Ae,width:Ve,height:Ue})=>(!!V||!!(Ve&&Ue))&&st(Ae))),c.length===0){Promise.resolve().then(()=>{if(this.hls){let V="no level with compatible codecs found in manifest",Ae=V;t.levels.length&&(Ae=`one or more CODECS in variant not supported: ${Jt(t.levels.map(Ue=>Ue.attrs.CODECS).filter((Ue,xt,wt)=>wt.indexOf(Ue)===xt))}`,this.warn(Ae),V+=` (${Ae})`);const Ve=new Error(V);this.hls.trigger(d.ERROR,{type:ge.MEDIA_ERROR,details:O.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Ve,reason:Ae})}});return}t.audioTracks&&(s=t.audioTracks.filter(V=>!V.audioCodec||this.isAudioSupported(V.audioCodec)),rl(s)),t.subtitles&&(l=t.subtitles,rl(l));const u=c.slice(0);c.sort((V,Ae)=>{if(V.attrs["HDCP-LEVEL"]!==Ae.attrs["HDCP-LEVEL"])return(V.attrs["HDCP-LEVEL"]||"")>(Ae.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&V.height!==Ae.height)return V.height-Ae.height;if(V.frameRate!==Ae.frameRate)return V.frameRate-Ae.frameRate;if(V.videoRange!==Ae.videoRange)return ht.indexOf(V.videoRange)-ht.indexOf(Ae.videoRange);if(V.videoCodec!==Ae.videoCodec){const Ve=ae(V.videoCodec),Ue=ae(Ae.videoCodec);if(Ve!==Ue)return Ue-Ve}if(V.uri===Ae.uri&&V.codecSet!==Ae.codecSet){const Ve=fe(V.codecSet),Ue=fe(Ae.codecSet);if(Ve!==Ue)return Ue-Ve}return V.averageBitrate!==Ae.averageBitrate?V.averageBitrate-Ae.averageBitrate:0});let f=u[0];if(this.steering&&(c=this.steering.filterParsedLevels(c),c.length!==u.length)){for(let V=0;V<u.length;V++)if(u[V].pathwayId===c[0].pathwayId){f=u[V];break}}this._levels=c;for(let V=0;V<c.length;V++)if(c[V]===f){var h;this._firstLevel=V;const Ae=f.bitrate,Ve=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${c.length} level(s) found, first bitrate: ${Ae}`),((h=this.hls.userConfig)==null?void 0:h.abrEwmaDefaultEstimate)===void 0){const Ue=Math.min(Ae,this.hls.config.abrEwmaDefaultEstimateMax);Ue>Ve&&Ve===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ue)}break}const A=i&&!r,C=this.hls.config,R=!!(C.audioStreamController&&C.audioTrackController),J={levels:c,audioTracks:s,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:R&&!A&&s.some(V=>!!V.url)};this.hls.trigger(d.MANIFEST_PARSED,J)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const f=new Error("invalid level idx"),h=e<0;if(this.hls.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.LEVEL_SWITCH_ERROR,level:e,fatal:h,error:f,reason:f.message}),h)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],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&i===l)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${n}${i?" with Pathway "+i:""}`);const c={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(d.LEVEL_SWITCHING,c);const u=s.details;if(!u||u.live){const f=this.switchParams(s.uri,r==null?void 0:r.details,u);this.loadPlaylist(f)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===ve.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===oe.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=t.levelInfo;if(!s){var l;this.warn(`Invalid level index ${r}`),(l=t.deliveryDirectives)!=null&&l.skip&&(i.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let c=s.details;c===t.details&&c.advanced&&(c=void 0),this.playlistLoaded(r,t,c)}else(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,l=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(d.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const n=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));ei(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(d.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(d.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function rl(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function il(){return self.SourceBuffer||self.WebKitSourceBuffer}function sl(){if(!q())return!1;const e=il();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Yc(){if(!sl())return!1;const a=q();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(k(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(k(e,"audio"))))}function Xc(){var a;const e=il();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Qc=100;class Jc extends ti{constructor(e,t,n){super(e,t,n,"stream-controller",oe.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,i=r?r.currentTime:null;if(i===null||!p(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,oe.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(Qc),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=on.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=on.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case on.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=on.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=on.IDLE;break}break}case on.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=on.IDLE}}break}this.state===on.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],l=this.getMainFwdBufferInfo();if(l===null)return;const c=this.getLevelDetails();if(c&&this._streamEnded(l,c)){const J={};this.altAudio===2&&(J.type="video"),this.hls.trigger(d.BUFFER_EOS,J),this.state=on.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 u=s.details;if(!u||this.state===on.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=on.WAITING_LEVEL,this.startFragRequested=!1;return}const f=l.len,h=this.getMaxBufferLength(s.maxBitrate);if(f>=h)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const A=this.backtrackFragment?this.backtrackFragment.start:l.end;let C=this.getNextFragment(A,u);if(this.couldBacktrack&&!this.fragPrevious&&C&&ce(C)&&this.fragmentTracker.getState(C)!==$e.OK){var R;const V=((R=this.backtrackFragment)!=null?R:C).sn-u.startSN,Ae=u.fragments[V-1];Ae&&C.cc===Ae.cc&&(C=Ae,this.fragmentTracker.removeFragment(Ae))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(C&&this.isLoopLoading(C,A)){if(!C.gap){const V=this.audioOnly&&!this.altAudio?v.AUDIO:v.VIDEO,Ae=(V===v.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ae&&this.afterBufferFlushed(Ae,V,oe.MAIN)}C=this.getNextFragmentLoopLoading(C,u,l,oe.MAIN,h)}C&&(C.initSegment&&!C.initSegment.data&&!this.bitrateTest&&(C=C.initSegment),this.loadFragment(C,s,A))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===$e.NOT_LOADED||r===$e.PARTIAL?ce(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,oe.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 l=this.getMainFwdBufferInfo();if(!l||l.len<i.targetduration*2)return}if(!t.paused&&e){const l=this.hls.nextLoadLevel,c=e[l],u=this.fragLastKbps;u&&this.fragCurrent?n=this.fragCurrent.duration*c.maxBitrate/(1e3*u)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const l=this.followingBufferedFrag(s);if(l){this.abortCurrentFrag();const c=l.maxStartPTS?l.maxStartPTS:l.start,u=l.duration,f=Math.max(s.end,c+Math.min(Math.max(u-this.config.maxFragLookUpTolerance,u*(this.couldBacktrack?.5:.125)),u*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(f,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 on.KEY_LOADING:case on.FRAG_LOADING:case on.FRAG_LOADING_WAITING_RETRY:case on.PARSING:case on.PARSED:this.state=on.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Ji(n,"playing",this.onMediaPlaying),Ji(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Ki(n,"playing",this.onMediaPlaying),Ki(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(d.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!Xc(),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!==on.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=on.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,l=t.details,c=l.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${c}`);const u=t.levelInfo,f=this.fragCurrent;f&&(this.state===on.FRAG_LOADING||this.state===on.FRAG_LOADING_WAITING_RETRY)&&f.level!==t.level&&f.loader&&this.abortCurrentFrag();let h=0;if(l.live||(n=u.details)!=null&&n.live){var A;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;h=this.alignPlaylists(l,u.details,(A=this.levelLastLoaded)==null?void 0:A.details)}if(u.details=l,this.levelLastLoaded=u,i||this.setStartPosition(l,h),this.hls.trigger(d.LEVEL_UPDATED,{details:l,level:s}),this.state===on.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=on.IDLE}i&&l.live&&this.synchronizeToLiveEdge(l),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,l=e.edge,c=i>=s-t.maxFragLookUpTolerance&&i<=l;if(r!==null&&n.duration>r&&(i<r||!c)){const u=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!c&&n.readyState<4||i<l-u)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const l=s[n.level];if(!l){this.warn(`Level ${n.level} not found on progress`);return}const c=l.details;if(!c){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const u=l.videoCodec,f=c.PTSKnown||!c.live,h=(t=n.initSegment)==null?void 0:t.data,A=this._getAudioCodec(l),C=this.transmuxer=this.transmuxer||new mo(this.hls,oe.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),R=r?r.index:-1,J=R!==-1,V=new tr(n.level,n.sn,n.stats.chunkCount,i.byteLength,R,J),Ae=this.initPTS[n.cc];C.push(i,h,A,u,n,r,c.totalduration,f,V,Ae)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(vn(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.fragmentTracker.removeAllFragments(),n.once(d.BUFFER_FLUSHED,()=>{var s;(s=this.hls)==null||s.trigger(d.AUDIO_TRACK_SWITCHED,t)}),n.trigger(d.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(d.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=vn(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const l in n){const c=n[l];if(c.id==="main"){if(i=l,r=c,l==="video"){const u=n[l];u&&(this.videoBuffer=u.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===oe.MAIN;if(i){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===on.PARSED&&(this.state=on.IDLE);return}const l=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),ce(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&wn.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=on.ERROR;return}switch(t.details){case O.FRAG_GAP:case O.FRAG_PARSING_ERROR:case O.FRAG_DECRYPT_ERROR:case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(oe.MAIN,t);break;case O.LEVEL_LOAD_ERROR:case O.LEVEL_LOAD_TIMEOUT:case O.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===on.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===ve.LEVEL&&(this.state=on.IDLE);break;case O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.resetLoadingState();break;case O.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case O.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=on.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==v.AUDIO||!this.altAudio){const n=(t===v.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,oe.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),s=wn.getBuffered(e),l=s.length?s.start(0):0,c=l-n,u=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);c>0&&(c<u||this.loadingParts&&c<2*((i==null?void 0:i.partTarget)||0))&&(this.log(`adjusting start position by ${c} to match buffer start`),n+=c,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${l}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this,i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=on.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=i.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(d.FRAG_LOADED,n),i.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:u,level:f}=l,{video:h,text:A,id3:C,initSegment:R}=i,{details:J}=f,V=this.altAudio?void 0:i.audio;if(this.fragContextChanged(c)){this.fragmentTracker.removeFragment(c);return}if(this.state=on.PARSING,R){if(R!=null&&R.tracks){const Ue=c.initSegment||c;this._bufferInitSegment(f,R.tracks,Ue,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:Ue,id:n,tracks:R.tracks})}const Ae=R.initPTS,Ve=R.timescale;p(Ae)&&(this.initPTS[c.cc]={baseTime:Ae,timescale:Ve},r.trigger(d.INIT_PTS_FOUND,{frag:c,id:n,initPTS:Ae,timescale:Ve}))}if(h&&J){V&&h.type==="audiovideo"&&this.logMuxedErr(c);const Ae=J.fragments[c.sn-1-J.startSN],Ve=c.sn===J.startSN,Ue=!Ae||c.cc>Ae.cc;if(i.independent!==!1){const{startPTS:xt,endPTS:wt,startDTS:rn,endDTS:At}=h;if(u)u.elementaryStreams[h.type]={startPTS:xt,endPTS:wt,startDTS:rn,endDTS:At};else if(h.firstKeyFrame&&h.independent&&s.id===1&&!Ue&&(this.couldBacktrack=!0),h.dropped&&h.independent){const qt=this.getMainFwdBufferInfo(),dn=(qt?qt.end:this.getLoadPosition())+this.config.maxBufferHole,Ft=h.firstKeyFramePTS?h.firstKeyFramePTS:xt;if(!Ve&&dn<Ft-this.config.maxBufferHole&&!Ue){this.backtrack(c);return}else Ue&&(c.gap=!0);c.setElementaryStreamInfo(h.type,c.start,wt,c.start,At,!0)}else Ve&&xt-(J.appliedTimelineOffset||0)>da&&(c.gap=!0);c.setElementaryStreamInfo(h.type,xt,wt,rn,At),this.backtrackFragment&&(this.backtrackFragment=c),this.bufferFragmentData(h,c,u,s,Ve||Ue)}else if(Ve||Ue)c.gap=!0;else{this.backtrack(c);return}}if(V){const{startPTS:Ae,endPTS:Ve,startDTS:Ue,endDTS:xt}=V;u&&(u.elementaryStreams[v.AUDIO]={startPTS:Ae,endPTS:Ve,startDTS:Ue,endDTS:xt}),c.setElementaryStreamInfo(v.AUDIO,Ae,Ve,Ue,xt),this.bufferFragmentData(V,c,u,s)}if(J&&C!=null&&(t=C.samples)!=null&&t.length){const Ae={id:n,frag:c,details:J,samples:C.samples};r.trigger(d.FRAG_PARSING_METADATA,Ae)}if(J&&A){const Ae={id:n,frag:c,details:J,samples:A.samples};r.trigger(d.FRAG_PARSING_USERDATA,Ae)}}logMuxedErr(e){this.warn(`${ce(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==on.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:s,audiovideo:l}=t;if(i){let u=hn(i.codec,e.audioCodec);u==="mp4a"&&(u="mp4a.40.5");const f=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){u&&(u.indexOf("mp4a.40.5")!==-1?u="mp4a.40.2":u="mp4a.40.5");const h=i.metadata;h&&"channelCount"in h&&(h.channelCount||1)!==1&&f.indexOf("firefox")===-1&&(u="mp4a.40.5")}u&&u.indexOf("mp4a.40.5")!==-1&&f.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(u="mp4a.40.2",this.log(`Android: force audio codec to ${u}`)),e.audioCodec&&e.audioCodec!==u&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${u}"`),i.levelCodec=u,i.id=oe.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${u||""}/${e.audioCodec||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=oe.MAIN;const u=s.codec;if((u==null?void 0:u.length)===4)switch(u){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${u}]${s.codec!==u?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${e.codecs}/${l.codec}]`),delete t.video,delete t.audio);const c=Object.keys(t);if(c.length){if(this.hls.trigger(d.BUFFER_CODECS,t),!this.hls)return;c.forEach(u=>{const h=t[u].initSegment;h!=null&&h.byteLength&&this.hls.trigger(d.BUFFER_APPENDING,{type:u,data:h,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,oe.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=on.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(wn.isBuffered(e,n)?t=this.getAppendedFrag(n):wn.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(d.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(d.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return p(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(p(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?Zn(null,n.fragments,t):null);if(r){const i=r.programDateTime;if(i!==null){const s=i+(t-r.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class qc{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=O.KEY_LOAD_ERROR,n,r,i){return new Ln({type:ge.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(l=>{s.setKeyFormat(l)});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 u=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,O.KEY_LOAD_ERROR,u))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,O.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let l=this.keyUriToKeyInfo[s];if((n=l)!=null&&n.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if((r=l)!=null&&r.keyLoadPromise){var c;switch((c=l.mediaKeySessionContext)==null?void 0:c.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return l.keyLoadPromise.then(u=>(i.key=u.keyInfo.decryptdata.key,{frag:e,keyInfo:l}))}}switch(l=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(l,e):this.loadKeyEME(l,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(l,e);default:return Promise.reject(this.createKeyLoadError(e,O.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,l)=>{const c={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},u=n.keyLoadPolicy.default,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(A,C,R,J)=>{const{frag:V,keyInfo:Ae,url:Ve}=R;if(!V.decryptdata||Ae!==this.keyUriToKeyInfo[Ve])return l(this.createKeyLoadError(V,O.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),J));Ae.decryptdata.key=V.decryptdata.key=new Uint8Array(A.data),V.keyLoader=null,Ae.loader=null,s({frag:V,keyInfo:Ae})},onError:(A,C,R,J)=>{this.resetLoader(C),l(this.createKeyLoadError(t,O.KEY_LOAD_ERROR,new Error(`HTTP Error ${A.code} loading key ${A.text}`),R,x({url:c.url,data:void 0},A)))},onTimeout:(A,C,R)=>{this.resetLoader(C),l(this.createKeyLoadError(t,O.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),R))},onAbort:(A,C,R)=>{this.resetLoader(C),l(this.createKeyLoadError(t,O.INTERNAL_ABORTED,new Error("key loading aborted"),R))}};i.load(c,f,h)})}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 al(a){const{type:e}=a;switch(e){case ve.AUDIO_TRACK:return oe.AUDIO;case ve.SUBTITLE_TRACK:return oe.SUBTITLE;default:return oe.MAIN}}function Ha(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class $c{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(d.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(d.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ve.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:l,levelInfo:c}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:ve.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:c})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:ve.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:ve.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[ve.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[ve.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const u=this.hls.logger,f=r.context;if(f&&f.levelOrTrack===e.levelOrTrack&&(f.url===e.url||f.deliveryDirectives&&!e.deliveryDirectives)){f.url===e.url?u.log(`[playlist-loader]: ignore ${e.url} ongoing request`):u.log(`[playlist-loader]: ignore ${e.url} in favor of ${f.url}`);return}u.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===ve.MANIFEST?i=n.manifestLoadPolicy.default:i=m({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),p((t=e.deliveryDirectives)==null?void 0:t.part)){let u;if(e.type===ve.LEVEL&&e.level!==null?u=this.hls.levels[e.level].details:e.type===ve.AUDIO_TRACK&&e.id!==null?u=this.hls.audioTracks[e.id].details:e.type===ve.SUBTITLE_TRACK&&e.id!==null&&(u=this.hls.subtitleTracks[e.id].details),u){const f=u.partTarget,h=u.targetduration;if(f&&h){const A=Math.max(f*3,h*.8)*1e3;i=m({},i,{maxTimeToFirstByteMs:Math.min(A,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(A,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},l={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(u,f,h,A)=>{const C=this.getInternalLoader(h);this.resetInternalLoader(h.type);const R=u.data;if(R.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(u,h,new Error("no EXTM3U delimiter"),A||null,f);return}f.parsing.start=performance.now(),oi.isMediaPlaylist(R)||h.type!==ve.MANIFEST?this.handleTrackOrLevelPlaylist(u,f,h,A||null,C):this.handleMasterPlaylist(u,f,h,A)},onError:(u,f,h,A)=>{this.handleNetworkError(f,h,!1,u,A)},onTimeout:(u,f,h)=>{this.handleNetworkError(f,h,!0,void 0,u)}};r.load(e,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,l=Ha(e,n),c=oi.parseMasterPlaylist(s,l);if(c.playlistParsingError){this.handleManifestParsingError(e,n,c.playlistParsingError,r,t);return}const{contentSteering:u,levels:f,sessionData:h,sessionKeys:A,startTimeOffset:C,variableList:R}=c;this.variableList=R;const{AUDIO:J=[],SUBTITLES:V,"CLOSED-CAPTIONS":Ae}=oi.parseMasterPlaylistMedia(s,l,c);J.length&&!J.some(Ue=>!Ue.url)&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),J.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Hn({}),bitrate:0,url:""})),i.trigger(d.MANIFEST_LOADED,{levels:f,audioTracks:J,subtitles:V,captions:Ae,contentSteering:u,url:l,stats:t,networkDetails:r,sessionData:h,sessionKeys:A,startTimeOffset:C,variableList:R})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:l,level:c,type:u}=n,f=Ha(e,n),h=p(c)?c:p(l)?l:0,A=al(n),C=oi.parseLevelPlaylist(e.data,f,h,A,0,this.variableList);if(u===ve.MANIFEST){const R={attrs:new Hn({}),bitrate:0,details:C,name:"",url:f};C.requestScheduled=t.loading.start+ui(C,0),s.trigger(d.MANIFEST_LOADED,{levels:[R],audioTracks:[],url:f,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=C,this.handlePlaylistLoaded(C,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(d.ERROR,{type:ge.NETWORK_ERROR,details:O.MANIFEST_PARSING_ERROR,fatal:t.type===ve.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===ve.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===ve.AUDIO_TRACK||e.type===ve.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=O.UNKNOWN,u=!1;const f=this.getInternalLoader(e);switch(e.type){case ve.MANIFEST:c=n?O.MANIFEST_LOAD_TIMEOUT:O.MANIFEST_LOAD_ERROR,u=!0;break;case ve.LEVEL:c=n?O.LEVEL_LOAD_TIMEOUT:O.LEVEL_LOAD_ERROR,u=!1;break;case ve.AUDIO_TRACK:c=n?O.AUDIO_TRACK_LOAD_TIMEOUT:O.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case ve.SUBTITLE_TRACK:c=n?O.SUBTITLE_TRACK_LOAD_TIMEOUT:O.SUBTITLE_LOAD_ERROR,u=!1;break}f&&this.resetInternalLoader(e.type);const h={type:ge.NETWORK_ERROR,details:c,fatal:u,url:e.url,loader:f,context:e,error:l,networkDetails:t,stats:i};if(r){const A=(t==null?void 0:t.url)||e.url;h.response=x({url:A,data:void 0},r)}this.hls.trigger(d.ERROR,h)}handlePlaylistLoaded(e,t,n,r,i,s){const l=this.hls,{type:c,level:u,id:f,groupId:h,deliveryDirectives:A}=r,C=Ha(t,r),R=al(r),J=typeof r.level=="number"&&R===oe.MAIN?u:void 0;if(!e.fragments.length){const Ae=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(d.ERROR,{type:ge.NETWORK_ERROR,details:O.LEVEL_EMPTY_ERROR,fatal:!1,url:C,error:Ae,reason:Ae.message,response:t,context:r,level:J,parent:R,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const V=e.playlistParsingError;if(V){if(this.hls.logger.warn(V),!l.config.ignorePlaylistParsingErrors){l.trigger(d.ERROR,{type:ge.NETWORK_ERROR,details:O.LEVEL_PARSING_ERROR,fatal:!1,url:C,error:V,reason:V.message,response:t,context:r,level:J,parent:R,networkDetails:i,stats:n});return}e.playlistParsingError=null}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),c){case ve.MANIFEST:case ve.LEVEL:l.trigger(d.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||l.levels[0],level:J||0,id:f||0,stats:n,networkDetails:i,deliveryDirectives:A,withoutMultiVariant:c===ve.MANIFEST});break;case ve.AUDIO_TRACK:l.trigger(d.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:h||"",stats:n,networkDetails:i,deliveryDirectives:A});break;case ve.SUBTITLE_TRACK:l.trigger(d.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:h||"",stats:n,networkDetails:i,deliveryDirectives:A});break}}}class fs{static get version(){return os}static isMSESupported(){return sl()}static isSupported(){return Yc()}static getMediaSource(){return q()}static get Events(){return d}static get MetadataSchema(){return bi}static get ErrorTypes(){return ge}static get ErrorDetails(){return O}static get DefaultConfig(){return fs.defaultConfig?fs.defaultConfig:Mc}static set DefaultConfig(e){fs.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Bi,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=X(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Fc(fs.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Bc(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:c}=n,u=new l(this),f=this.abrController=new r(this),h=new Et(this),A=n.interstitialsController,C=A?this.interstitialsController=new A(this,fs):null,R=this.bufferController=new i(this,h),J=this.capLevelController=new s(this),V=new c(this),Ae=new $c(this),Ve=n.contentSteeringController,Ue=Ve?new Ve(this):null,xt=this.levelController=new Vc(this,Ue),wt=new Wc(this),rn=new qc(this.config),At=this.streamController=new Jc(this,h,rn),qt=this.gapController=new zc(this,h);J.setStreamController(At),V.setStreamController(At);const dn=[Ae,xt,At];C&&dn.splice(1,0,C),Ue&&dn.splice(1,0,Ue),this.networkControllers=dn;const Ft=[f,R,qt,J,V,wt,h];this.audioTrackController=this.createController(n.audioTrackController,dn);const Nn=n.audioStreamController;Nn&&dn.push(this.audioStreamController=new Nn(this,h,rn)),this.subtitleTrackController=this.createController(n.subtitleTrackController,dn);const Yn=n.subtitleStreamController;Yn&&dn.push(this.subtititleStreamController=new Yn(this,h,rn)),this.createController(n.timelineController,Ft),rn.emeController=this.emeController=this.createController(n.emeController,Ft),this.cmcdController=this.createController(n.cmcdController,Ft),this.latencyController=this.createController(Hc,Ft),this.coreComponents=Ft,dn.push(u);const Ir=u.onErrorOut;typeof Ir=="function"&&this.on(d.ERROR,Ir,u),this.on(d.MANIFEST_LOADED,Ae.onManifestLoaded,Ae)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===d.ERROR;this.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(d.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(d.ERROR,{type:ge.OTHER_ERROR,details:O.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(d.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(d.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(d.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=Q.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(d.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[oe.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[oe.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[oe.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=Xi()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){le(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=nn(t);return ut(e,n,navigator.mediaCapabilities)}}fs.defaultConfig=void 0}}]);
|
|
}()); |