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.
NewEduCoderBuild/p__Question__Index__index.f...

1037 lines
1.5 MiB

!(function(){var Dl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{65030:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return yt}});var h=_(27247),ue=_(11913),z=_(43079),ae=_(43403),B=_(92310),d=_.n(B),_e=_(29301),te=_(76846),o=_(96452),g=_(6089),w=_(80402),p=_(34280),E=_(49658),x=_(59301),L=_(32855),j=_(77900),$=_(8654);function le(Fe){var Ae=Fe.prefixCls,V=Fe.align,je=Fe.arrow,Qe=Fe.arrowPos,J=je||{},M=J.className,Se=J.content,be=Qe.x,W=be===void 0?0:be,fe=Qe.y,ye=fe===void 0?0:fe,et=x.useRef();if(!V||!V.points)return null;var Ve={position:"absolute"};if(V.autoArrow!==!1){var $e=V.points[0],Ye=V.points[1],lt=$e[0],de=$e[1],K=Ye[0],N=Ye[1];lt===K||!["t","b"].includes(lt)?Ve.top=ye:lt==="t"?Ve.top=0:Ve.bottom=0,de===N||!["l","r"].includes(de)?Ve.left=W:de==="l"?Ve.left=0:Ve.right=0}return x.createElement("div",{ref:et,className:d()("".concat(Ae,"-arrow"),M),style:Ve},Se)}function F(Fe){var Ae=Fe.prefixCls,V=Fe.open,je=Fe.zIndex,Qe=Fe.mask,J=Fe.motion;return Qe?x.createElement(j.default,(0,L.Z)({},J,{motionAppear:!0,visible:V,removeOnLeave:!0}),function(M){var Se=M.className;return x.createElement("div",{style:{zIndex:je},className:d()("".concat(Ae,"-mask"),Se)})}):null}var H=x.memo(function(Fe){var Ae=Fe.children;return Ae},function(Fe,Ae){return Ae.cache}),D=H,A=x.forwardRef(function(Fe,Ae){var V=Fe.popup,je=Fe.className,Qe=Fe.prefixCls,J=Fe.style,M=Fe.target,Se=Fe.onVisibleChanged,be=Fe.open,W=Fe.keepDom,fe=Fe.fresh,ye=Fe.onClick,et=Fe.mask,Ve=Fe.arrow,$e=Fe.arrowPos,Ye=Fe.align,lt=Fe.motion,de=Fe.maskMotion,K=Fe.forceRender,N=Fe.getPopupContainer,Le=Fe.autoDestroy,De=Fe.portal,Ce=Fe.zIndex,st=Fe.onMouseEnter,at=Fe.onMouseLeave,Oe=Fe.onPointerEnter,Et=Fe.onPointerDownCapture,Vt=Fe.ready,St=Fe.offsetX,Bt=Fe.offsetY,se=Fe.offsetR,ve=Fe.offsetB,Ee=Fe.onAlign,k=Fe.onPrepare,Y=Fe.stretch,he=Fe.targetWidth,ce=Fe.targetHeight,xe=typeof V=="function"?V():V,Be=be||W,Xe=(N==null?void 0:N.length)>0,ct=x.useState(!N||!Xe),nt=(0,ue.Z)(ct,2),Ue=nt[0],I=nt[1];if((0,p.Z)(function(){!Ue&&Xe&&M&&I(!0)},[Ue,Xe,M]),!Ue)return null;var Z="auto",S={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(Vt||!be){var ze,ke=Ye.points,Pe=Ye.dynamicInset||((ze=Ye._experimental)===null||ze===void 0?void 0:ze.dynamicInset),Ge=Pe&&ke[0][1]==="r",We=Pe&&ke[0][0]==="b";Ge?(S.right=se,S.left=Z):(S.left=St,S.right=Z),We?(S.bottom=ve,S.top=Z):(S.top=Bt,S.bottom=Z)}var dt={};return Y&&(Y.includes("height")&&ce?dt.height=ce:Y.includes("minHeight")&&ce&&(dt.minHeight=ce),Y.includes("width")&&he?dt.width=he:Y.includes("minWidth")&&he&&(dt.minWidth=he)),be||(dt.pointerEvents="none"),x.createElement(De,{open:K||Be,getContainer:N&&function(){return N(M)},autoDestroy:Le},x.createElement(F,{prefixCls:Qe,open:be,zIndex:Ce,mask:et,motion:de}),x.createElement(_e.Z,{onResize:Ee,disabled:!be},function(Lt){return x.createElement(j.default,(0,L.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:K,leavedClassName:"".concat(Qe,"-hidden")},lt,{onAppearPrepare:k,onEnterPrepare:k,visible:be,onVisibleChanged:function(cn){var Ne;lt==null||(Ne=lt.onVisibleChanged)===null||Ne===void 0||Ne.call(lt,cn),Se(cn)}}),function(Pt,cn){var Ne=Pt.className,Re=Pt.style,gt=d()(Qe,Ne,je);return x.createElement("div",{ref:(0,$.sQ)(Lt,Ae,cn),className:gt,style:(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({"--arrow-x":"".concat($e.x||0,"px"),"--arrow-y":"".concat($e.y||0,"px")},S),dt),Re),{},{boxSizing:"border-box",zIndex:Ce},J),onMouseEnter:st,onMouseLeave:at,onPointerEnter:Oe,onClick:ye,onPointerDownCapture:Et},Ve&&x.createElement(le,{prefixCls:Qe,arrow:Ve,arrowPos:$e,align:Ye}),x.createElement(D,{cache:!be&&!fe},xe))})}))}),Q=A,ne=x.forwardRef(function(Fe,Ae){var V=Fe.children,je=Fe.getTriggerDOMNode,Qe=(0,$.Yr)(V),J=x.useCallback(function(Se){(0,$.mH)(Ae,je?je(Se):Se)},[je]),M=(0,$.x1)(J,(0,$.C4)(V));return Qe?x.cloneElement(V,{ref:M}):V}),ee=ne,oe=x.createContext(null),ge=oe;function me(Fe){return Fe?Array.isArray(Fe)?Fe:[Fe]:[]}function ot(Fe,Ae,V,je){return x.useMemo(function(){var Qe=me(V!=null?V:Ae),J=me(je!=null?je:Ae),M=new Set(Qe),Se=new Set(J);return Fe&&(M.has("hover")&&(M.delete("hover"),M.add("click")),Se.has("hover")&&(Se.delete("hover"),Se.add("click"))),[M,Se]},[Fe,Ae,V,je])}var U=_(29194);function C(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=arguments.length>2?arguments[2]:void 0;return V?Fe[0]===Ae[0]:Fe[0]===Ae[0]&&Fe[1]===Ae[1]}function P(Fe,Ae,V,je){for(var Qe=V.points,J=Object.keys(Fe),M=0;M<J.length;M+=1){var Se,be=J[M];if(C((Se=Fe[be])===null||Se===void 0?void 0:Se.points,Qe,je))return"".concat(Ae,"-placement-").concat(be)}return""}function G(Fe,Ae,V,je){return Ae||(V?{motionName:"".concat(Fe,"-").concat(V)}:je?{motionName:je}:null)}function re(Fe){return Fe.ownerDocument.defaultView}function X(Fe){for(var Ae=[],V=Fe==null?void 0:Fe.parentElement,je=["hidden","scroll","clip","auto"];V;){var Qe=re(V).getComputedStyle(V),J=Qe.overflowX,M=Qe.overflowY,Se=Qe.overflow;[J,M,Se].some(function(be){return je.includes(be)})&&Ae.push(V),V=V.parentElement}return Ae}function y(Fe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Fe)?Ae:Fe}function v(Fe){return y(parseFloat(Fe),0)}function O(Fe,Ae){var V=(0,h.Z)({},Fe);return(Ae||[]).forEach(function(je){if(!(je instanceof HTMLBodyElement||je instanceof HTMLHtmlElement)){var Qe=re(je).getComputedStyle(je),J=Qe.overflow,M=Qe.overflowClipMargin,Se=Qe.borderTopWidth,be=Qe.borderBottomWidth,W=Qe.borderLeftWidth,fe=Qe.borderRightWidth,ye=je.getBoundingClientRect(),et=je.offsetHeight,Ve=je.clientHeight,$e=je.offsetWidth,Ye=je.clientWidth,lt=v(Se),de=v(be),K=v(W),N=v(fe),Le=y(Math.round(ye.width/$e*1e3)/1e3),De=y(Math.round(ye.height/et*1e3)/1e3),Ce=($e-Ye-K-N)*Le,st=(et-Ve-lt-de)*De,at=lt*De,Oe=de*De,Et=K*Le,Vt=N*Le,St=0,Bt=0;if(J==="clip"){var se=v(M);St=se*Le,Bt=se*De}var ve=ye.x+Et-St,Ee=ye.y+at-Bt,k=ve+ye.width+2*St-Et-Vt-Ce,Y=Ee+ye.height+2*Bt-at-Oe-st;V.left=Math.max(V.left,ve),V.top=Math.max(V.top,Ee),V.right=Math.min(V.right,k),V.bottom=Math.min(V.bottom,Y)}}),V}function pe(Fe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,V="".concat(Ae),je=V.match(/^(.*)\%$/);return je?Fe*(parseFloat(je[1])/100):parseFloat(V)}function He(Fe,Ae){var V=Ae||[],je=(0,ue.Z)(V,2),Qe=je[0],J=je[1];return[pe(Fe.width,Qe),pe(Fe.height,J)]}function tt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Fe[0],Fe[1]]}function wt(Fe,Ae){var V=Ae[0],je=Ae[1],Qe,J;return V==="t"?J=Fe.y:V==="b"?J=Fe.y+Fe.height:J=Fe.y+Fe.height/2,je==="l"?Qe=Fe.x:je==="r"?Qe=Fe.x+Fe.width:Qe=Fe.x+Fe.width/2,{x:Qe,y:J}}function It(Fe,Ae){var V={t:"b",b:"t",l:"r",r:"l"};return Fe.map(function(je,Qe){return Qe===Ae?V[je]||"c":je}).join("")}function Ft(Fe,Ae,V,je,Qe,J,M){var Se=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Qe[je]||{}}),be=(0,ue.Z)(Se,2),W=be[0],fe=be[1],ye=x.useRef(0),et=x.useMemo(function(){return Ae?X(Ae):[]},[Ae]),Ve=x.useRef({}),$e=function(){Ve.current={}};Fe||$e();var Ye=(0,g.Z)(function(){if(Ae&&V&&Fe){let br=function(xr,Xn){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:At,cr=Be.x+xr,dr=Be.y+Xn,or=cr+We,_r=dr+Ge,Yr=Math.max(cr,ur.left),jn=Math.max(dr,ur.top),ir=Math.min(or,ur.right),sr=Math.min(_r,ur.bottom);return Math.max(0,(ir-Yr)*(sr-jn))},Er=function(){ft=Be.y+Ln,zt=ft+Ge,Wt=Be.x+vn,Rt=Wt+We};var K,N,Le,De,Ce=Ae,st=Ce.ownerDocument,at=re(Ce),Oe=at.getComputedStyle(Ce),Et=Oe.position,Vt=Ce.style.left,St=Ce.style.top,Bt=Ce.style.right,se=Ce.style.bottom,ve=Ce.style.overflow,Ee=(0,h.Z)((0,h.Z)({},Qe[je]),J),k=st.createElement("div");(K=Ce.parentElement)===null||K===void 0||K.appendChild(k),k.style.left="".concat(Ce.offsetLeft,"px"),k.style.top="".concat(Ce.offsetTop,"px"),k.style.position=Et,k.style.height="".concat(Ce.offsetHeight,"px"),k.style.width="".concat(Ce.offsetWidth,"px"),Ce.style.left="0",Ce.style.top="0",Ce.style.right="auto",Ce.style.bottom="auto",Ce.style.overflow="hidden";var Y;if(Array.isArray(V))Y={x:V[0],y:V[1],width:0,height:0};else{var he,ce,xe=V.getBoundingClientRect();xe.x=(he=xe.x)!==null&&he!==void 0?he:xe.left,xe.y=(ce=xe.y)!==null&&ce!==void 0?ce:xe.top,Y={x:xe.x,y:xe.y,width:xe.width,height:xe.height}}var Be=Ce.getBoundingClientRect(),Xe=at.getComputedStyle(Ce),ct=Xe.height,nt=Xe.width;Be.x=(N=Be.x)!==null&&N!==void 0?N:Be.left,Be.y=(Le=Be.y)!==null&&Le!==void 0?Le:Be.top;var Ue=st.documentElement,I=Ue.clientWidth,Z=Ue.clientHeight,S=Ue.scrollWidth,ze=Ue.scrollHeight,ke=Ue.scrollTop,Pe=Ue.scrollLeft,Ge=Be.height,We=Be.width,dt=Y.height,Lt=Y.width,Pt={left:0,top:0,right:I,bottom:Z},cn={left:-Pe,top:-ke,right:S-Pe,bottom:ze-ke},Ne=Ee.htmlRegion,Re="visible",gt="visibleFirst";Ne!=="scroll"&&Ne!==gt&&(Ne=Re);var pt=Ne===gt,Mt=O(cn,et),xt=O(Pt,et),At=Ne===Re?xt:Mt,Kt=pt?xt:At;Ce.style.left="auto",Ce.style.top="auto",Ce.style.right="0",Ce.style.bottom="0";var nn=Ce.getBoundingClientRect();Ce.style.left=Vt,Ce.style.top=St,Ce.style.right=Bt,Ce.style.bottom=se,Ce.style.overflow=ve,(De=Ce.parentElement)===null||De===void 0||De.removeChild(k);var Ot=y(Math.round(We/parseFloat(nt)*1e3)/1e3),dn=y(Math.round(Ge/parseFloat(ct)*1e3)/1e3);if(Ot===0||dn===0||(0,te.Sh)(V)&&!(0,U.Z)(V))return;var Qt=Ee.offset,$t=Ee.targetOffset,Dt=He(Be,Qt),Ze=(0,ue.Z)(Dt,2),_t=Ze[0],Ct=Ze[1],kt=He(Y,$t),qt=(0,ue.Z)(kt,2),it=qt[0],ln=qt[1];Y.x-=it,Y.y-=ln;var En=Ee.points||[],Tn=(0,ue.Z)(En,2),wn=Tn[0],Yn=Tn[1],Cn=tt(Yn),Zn=tt(wn),Nn=wt(Y,Cn),Pn=wt(Be,Zn),Dn=(0,h.Z)({},Ee),vn=Nn.x-Pn.x+_t,Ln=Nn.y-Pn.y+Ct,hn=br(vn,Ln),yn=br(vn,Ln,xt),Rn=wt(Y,["t","l"]),Mn=wt(Be,["t","l"]),Bn=wt(Y,["b","r"]),zn=wt(Be,["b","r"]),pr=Ee.overflow||{},Me=pr.adjustX,Te=pr.adjustY,Ie=pr.shiftX,ut=pr.shiftY,mt=function(Xn){return typeof Xn=="boolean"?Xn:Xn>=0},ft,zt,Wt,Rt;Er();var vt=mt(Te),bt=Zn[0]===Cn[0];if(vt&&Zn[0]==="t"&&(zt>Kt.bottom||Ve.current.bt)){var Nt=Ln;bt?Nt-=Ge-dt:Nt=Rn.y-zn.y-Ct;var Zt=br(vn,Nt),rn=br(vn,Nt,xt);Zt>hn||Zt===hn&&(!pt||rn>=yn)?(Ve.current.bt=!0,Ln=Nt,Ct=-Ct,Dn.points=[It(Zn,0),It(Cn,0)]):Ve.current.bt=!1}if(vt&&Zn[0]==="b"&&(ft<Kt.top||Ve.current.tb)){var gn=Ln;bt?gn+=Ge-dt:gn=Bn.y-Mn.y-Ct;var Fn=br(vn,gn),pn=br(vn,gn,xt);Fn>hn||Fn===hn&&(!pt||pn>=yn)?(Ve.current.tb=!0,Ln=gn,Ct=-Ct,Dn.points=[It(Zn,0),It(Cn,0)]):Ve.current.tb=!1}var xn=mt(Me),On=Zn[1]===Cn[1];if(xn&&Zn[1]==="l"&&(Rt>Kt.right||Ve.current.rl)){var kn=vn;On?kn-=We-Lt:kn=Rn.x-zn.x-_t;var Gn=br(kn,Ln),Sn=br(kn,Ln,xt);Gn>hn||Gn===hn&&(!pt||Sn>=yn)?(Ve.current.rl=!0,vn=kn,_t=-_t,Dn.points=[It(Zn,1),It(Cn,1)]):Ve.current.rl=!1}if(xn&&Zn[1]==="r"&&(Wt<Kt.left||Ve.current.lr)){var Hn=vn;On?Hn+=We-Lt:Hn=Bn.x-Mn.x-_t;var Un=br(Hn,Ln),tr=br(Hn,Ln,xt);Un>hn||Un===hn&&(!pt||tr>=yn)?(Ve.current.lr=!0,vn=Hn,_t=-_t,Dn.points=[It(Zn,1),It(Cn,1)]):Ve.current.lr=!1}Er();var Wn=Ie===!0?0:Ie;typeof Wn=="number"&&(Wt<xt.left&&(vn-=Wt-xt.left-_t,Y.x+Lt<xt.left+Wn&&(vn+=Y.x-xt.left+Lt-Wn)),Rt>xt.right&&(vn-=Rt-xt.right-_t,Y.x>xt.right-Wn&&(vn+=Y.x-xt.right+Wn)));var Jn=ut===!0?0:ut;typeof Jn=="number"&&(ft<xt.top&&(Ln-=ft-xt.top-Ct,Y.y+dt<xt.top+Jn&&(Ln+=Y.y-xt.top+dt-Jn)),zt>xt.bottom&&(Ln-=zt-xt.bottom-Ct,Y.y>xt.bottom-Jn&&(Ln+=Y.y-xt.bottom+Jn)));var lr=Be.x+vn,Je=lr+We,Jt=Be.y+Ln,on=Jt+Ge,jt=Y.x,mn=jt+Lt,Kn=Y.y,rr=Kn+dt,Qn=Math.max(lr,jt),Vn=Math.min(Je,mn),Sr=(Qn+Vn)/2,Ur=Sr-lr,Nr=Math.max(Jt,Kn),Jr=Math.min(on,rr),Hr=(Nr+Jr)/2,jr=Hr-Jt;M==null||M(Ae,Dn);var yr=nn.right-Be.x-(vn+Be.width),Cr=nn.bottom-Be.y-(Ln+Be.height);Ot===1&&(vn=Math.round(vn),yr=Math.round(yr)),dn===1&&(Ln=Math.round(Ln),Cr=Math.round(Cr));var Fr={ready:!0,offsetX:vn/Ot,offsetY:Ln/dn,offsetR:yr/Ot,offsetB:Cr/dn,arrowX:Ur/Ot,arrowY:jr/dn,scaleX:Ot,scaleY:dn,align:Dn};fe(Fr)}}),lt=function(){ye.current+=1;var N=ye.current;Promise.resolve().then(function(){ye.current===N&&Ye()})},de=function(){fe(function(N){return(0,h.Z)((0,h.Z)({},N),{},{ready:!1})})};return(0,p.Z)(de,[je]),(0,p.Z)(function(){Fe||de()},[Fe]),[W.ready,W.offsetX,W.offsetY,W.offsetR,W.offsetB,W.arrowX,W.arrowY,W.scaleX,W.scaleY,W.align,lt]}var Ht=_(3300);function Ke(Fe,Ae,V,je,Qe){(0,p.Z)(function(){if(Fe&&Ae&&V){let ye=function(){je(),Qe()};var J=Ae,M=V,Se=X(J),be=X(M),W=re(M),fe=new Set([W].concat((0,Ht.Z)(Se),(0,Ht.Z)(be)));return fe.forEach(function(et){et.addEventListener("scroll",ye,{passive:!0})}),W.addEventListener("resize",ye,{passive:!0}),je(),function(){fe.forEach(function(et){et.removeEventListener("scroll",ye),W.removeEventListener("resize",ye)})}}},[Fe,Ae,V])}var en=_(48736);function Tt(Fe,Ae,V,je,Qe,J,M,Se){var be=x.useRef(Fe);be.current=Fe;var W=x.useRef(!1);x.useEffect(function(){if(Ae&&je&&(!Qe||J)){var ye=function(){W.current=!1},et=function(Le){var De;be.current&&!M(((De=Le.composedPath)===null||De===void 0||(De=De.call(Le))===null||De===void 0?void 0:De[0])||Le.target)&&!W.current&&Se(!1)},Ve=re(je);Ve.addEventListener("pointerdown",ye,!0),Ve.addEventListener("mousedown",et,!0),Ve.addEventListener("contextmenu",et,!0);var $e=(0,o.A)(V);if($e&&($e.addEventListener("mousedown",et,!0),$e.addEventListener("contextmenu",et,!0)),0)var Ye,lt,de,K;return function(){Ve.removeEventListener("pointerdown",ye,!0),Ve.removeEventListener("mousedown",et,!0),Ve.removeEventListener("contextmenu",et,!0),$e&&($e.removeEventListener("mousedown",et,!0),$e.removeEventListener("contextmenu",et,!0))}}},[Ae,V,je,Qe,J]);function fe(){W.current=!0}return fe}var an=["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 qe(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ae.Z,Ae=x.forwardRef(function(V,je){var Qe=V.prefixCls,J=Qe===void 0?"rc-trigger-popup":Qe,M=V.children,Se=V.action,be=Se===void 0?"hover":Se,W=V.showAction,fe=V.hideAction,ye=V.popupVisible,et=V.defaultPopupVisible,Ve=V.onPopupVisibleChange,$e=V.afterPopupVisibleChange,Ye=V.mouseEnterDelay,lt=V.mouseLeaveDelay,de=lt===void 0?.1:lt,K=V.focusDelay,N=V.blurDelay,Le=V.mask,De=V.maskClosable,Ce=De===void 0?!0:De,st=V.getPopupContainer,at=V.forceRender,Oe=V.autoDestroy,Et=V.destroyPopupOnHide,Vt=V.popup,St=V.popupClassName,Bt=V.popupStyle,se=V.popupPlacement,ve=V.builtinPlacements,Ee=ve===void 0?{}:ve,k=V.popupAlign,Y=V.zIndex,he=V.stretch,ce=V.getPopupClassNameFromAlign,xe=V.fresh,Be=V.alignPoint,Xe=V.onPopupClick,ct=V.onPopupAlign,nt=V.arrow,Ue=V.popupMotion,I=V.maskMotion,Z=V.popupTransitionName,S=V.popupAnimation,ze=V.maskTransitionName,ke=V.maskAnimation,Pe=V.className,Ge=V.getTriggerDOMNode,We=(0,z.Z)(V,an),dt=Oe||Et||!1,Lt=x.useState(!1),Pt=(0,ue.Z)(Lt,2),cn=Pt[0],Ne=Pt[1];(0,p.Z)(function(){Ne((0,E.Z)())},[]);var Re=x.useRef({}),gt=x.useContext(ge),pt=x.useMemo(function(){return{registerSubPopup:function(ir,sr){Re.current[ir]=sr,gt==null||gt.registerSubPopup(ir,sr)}}},[gt]),Mt=(0,w.Z)(),xt=x.useState(null),At=(0,ue.Z)(xt,2),Kt=At[0],nn=At[1],Ot=x.useRef(null),dn=(0,g.Z)(function(jn){Ot.current=jn,(0,te.Sh)(jn)&&Kt!==jn&&nn(jn),gt==null||gt.registerSubPopup(Mt,jn)}),Qt=x.useState(null),$t=(0,ue.Z)(Qt,2),Dt=$t[0],Ze=$t[1],_t=x.useRef(null),Ct=(0,g.Z)(function(jn){(0,te.Sh)(jn)&&Dt!==jn&&(Ze(jn),_t.current=jn)}),kt=x.Children.only(M),qt=(kt==null?void 0:kt.props)||{},it={},ln=(0,g.Z)(function(jn){var ir,sr,Dr=Dt;return(Dr==null?void 0:Dr.contains(jn))||((ir=(0,o.A)(Dr))===null||ir===void 0?void 0:ir.host)===jn||jn===Dr||(Kt==null?void 0:Kt.contains(jn))||((sr=(0,o.A)(Kt))===null||sr===void 0?void 0:sr.host)===jn||jn===Kt||Object.values(Re.current).some(function(Ir){return(Ir==null?void 0:Ir.contains(jn))||jn===Ir})}),En=G(J,Ue,S,Z),Tn=G(J,I,ke,ze),wn=x.useState(et||!1),Yn=(0,ue.Z)(wn,2),Cn=Yn[0],Zn=Yn[1],Nn=ye!=null?ye:Cn,Pn=(0,g.Z)(function(jn){ye===void 0&&Zn(jn)});(0,p.Z)(function(){Zn(ye||!1)},[ye]);var Dn=x.useRef(Nn);Dn.current=Nn;var vn=x.useRef([]);vn.current=[];var Ln=(0,g.Z)(function(jn){var ir;Pn(jn),((ir=vn.current[vn.current.length-1])!==null&&ir!==void 0?ir:Nn)!==jn&&(vn.current.push(jn),Ve==null||Ve(jn))}),hn=x.useRef(),yn=function(){clearTimeout(hn.current)},Rn=function(ir){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;yn(),sr===0?Ln(ir):hn.current=setTimeout(function(){Ln(ir)},sr*1e3)};x.useEffect(function(){return yn},[]);var Mn=x.useState(!1),Bn=(0,ue.Z)(Mn,2),zn=Bn[0],pr=Bn[1];(0,p.Z)(function(jn){(!jn||Nn)&&pr(!0)},[Nn]);var Me=x.useState(null),Te=(0,ue.Z)(Me,2),Ie=Te[0],ut=Te[1],mt=x.useState(null),ft=(0,ue.Z)(mt,2),zt=ft[0],Wt=ft[1],Rt=function(ir){Wt([ir.clientX,ir.clientY])},vt=Ft(Nn,Kt,Be&&zt!==null?zt:Dt,se,Ee,k,ct),bt=(0,ue.Z)(vt,11),Nt=bt[0],Zt=bt[1],rn=bt[2],gn=bt[3],Fn=bt[4],pn=bt[5],xn=bt[6],On=bt[7],kn=bt[8],Gn=bt[9],Sn=bt[10],Hn=ot(cn,be,W,fe),Un=(0,ue.Z)(Hn,2),tr=Un[0],Wn=Un[1],Jn=tr.has("click"),lr=Wn.has("click")||Wn.has("contextMenu"),Je=(0,g.Z)(function(){zn||Sn()}),Jt=function(){Dn.current&&Be&&lr&&Rn(!1)};Ke(Nn,Dt,Kt,Je,Jt),(0,p.Z)(function(){Je()},[zt,se]),(0,p.Z)(function(){Nn&&!(Ee!=null&&Ee[se])&&Je()},[JSON.stringify(k)]);var on=x.useMemo(function(){var jn=P(Ee,J,Gn,Be);return d()(jn,ce==null?void 0:ce(Gn))},[Gn,ce,Ee,J,Be]);x.useImperativeHandle(je,function(){return{nativeElement:_t.current,popupElement:Ot.current,forceAlign:Je}});var jt=x.useState(0),mn=(0,ue.Z)(jt,2),Kn=mn[0],rr=mn[1],Qn=x.useState(0),Vn=(0,ue.Z)(Qn,2),Sr=Vn[0],Ur=Vn[1],Nr=function(){if(he&&Dt){var ir=Dt.getBoundingClientRect();rr(ir.width),Ur(ir.height)}},Jr=function(){Nr(),Je()},Hr=function(ir){pr(!1),Sn(),$e==null||$e(ir)},jr=function(){return new Promise(function(ir){Nr(),ut(function(){return ir})})};(0,p.Z)(function(){Ie&&(Sn(),Ie(),ut(null))},[Ie]);function yr(jn,ir,sr,Dr){it[jn]=function(Ir){var Zr;Dr==null||Dr(Ir),Rn(ir,sr);for(var oi=arguments.length,ni=new Array(oi>1?oi-1:0),qr=1;qr<oi;qr++)ni[qr-1]=arguments[qr];(Zr=qt[jn])===null||Zr===void 0||Zr.call.apply(Zr,[qt,Ir].concat(ni))}}(Jn||lr)&&(it.onClick=function(jn){var ir;Dn.current&&lr?Rn(!1):!Dn.current&&Jn&&(Rt(jn),Rn(!0));for(var sr=arguments.length,Dr=new Array(sr>1?sr-1:0),Ir=1;Ir<sr;Ir++)Dr[Ir-1]=arguments[Ir];(ir=qt.onClick)===null||ir===void 0||ir.call.apply(ir,[qt,jn].concat(Dr))});var Cr=Tt(Nn,lr,Dt,Kt,Le,Ce,ln,Rn),Fr=tr.has("hover"),br=Wn.has("hover"),Er,xr;Fr&&(yr("onMouseEnter",!0,Ye,function(jn){Rt(jn)}),yr("onPointerEnter",!0,Ye,function(jn){Rt(jn)}),Er=function(ir){(Nn||zn)&&Kt!==null&&Kt!==void 0&&Kt.contains(ir.target)&&Rn(!0,Ye)},Be&&(it.onMouseMove=function(jn){var ir;(ir=qt.onMouseMove)===null||ir===void 0||ir.call(qt,jn)})),br&&(yr("onMouseLeave",!1,de),yr("onPointerLeave",!1,de),xr=function(){Rn(!1,de)}),tr.has("focus")&&yr("onFocus",!0,K),Wn.has("focus")&&yr("onBlur",!1,N),tr.has("contextMenu")&&(it.onContextMenu=function(jn){var ir;Dn.current&&Wn.has("contextMenu")?Rn(!1):(Rt(jn),Rn(!0)),jn.preventDefault();for(var sr=arguments.length,Dr=new Array(sr>1?sr-1:0),Ir=1;Ir<sr;Ir++)Dr[Ir-1]=arguments[Ir];(ir=qt.onContextMenu)===null||ir===void 0||ir.call.apply(ir,[qt,jn].concat(Dr))}),Pe&&(it.className=d()(qt.className,Pe));var Xn=x.useRef(!1);Xn.current||(Xn.current=at||Nn||zn);var ur=(0,h.Z)((0,h.Z)({},qt),it),cr={},dr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];dr.forEach(function(jn){We[jn]&&(cr[jn]=function(){for(var ir,sr=arguments.length,Dr=new Array(sr),Ir=0;Ir<sr;Ir++)Dr[Ir]=arguments[Ir];(ir=ur[jn])===null||ir===void 0||ir.call.apply(ir,[ur].concat(Dr)),We[jn].apply(We,Dr)})});var or=x.cloneElement(kt,(0,h.Z)((0,h.Z)({},ur),cr)),_r={x:pn,y:xn},Yr=nt?(0,h.Z)({},nt!==!0?nt:{}):null;return x.createElement(x.Fragment,null,x.createElement(_e.Z,{disabled:!Nn,ref:Ct,onResize:Jr},x.createElement(ee,{getTriggerDOMNode:Ge},or)),Xn.current&&x.createElement(ge.Provider,{value:pt},x.createElement(Q,{portal:Fe,ref:dn,prefixCls:J,popup:Vt,className:d()(St,on),style:Bt,target:Dt,onMouseEnter:Er,onMouseLeave:xr,onPointerEnter:Er,zIndex:Y,open:Nn,keepDom:zn,fresh:xe,onClick:Xe,onPointerDownCapture:Cr,mask:Le,motion:En,maskMotion:Tn,onVisibleChanged:Hr,onPrepare:jr,forceRender:at,autoDestroy:dt,getPopupContainer:st,align:Gn,arrow:Yr,arrowPos:_r,ready:Nt,offsetX:Zt,offsetY:rn,offsetR:gn,offsetB:Fn,onAlign:Je,stretch:he,targetWidth:Kn/On,targetHeight:Sr/kn})))});return Ae}var yt=qe(ae.Z)},9164:function(In,Gt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,w)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:w}):o[g]=w,_e=(o,g)=>{for(var w in g||(g={}))ae.call(g,w)&&d(o,w,g[w]);if(z)for(var w of z(g))B.call(g,w)&&d(o,w,g[w]);return o};const te=o=>React.createElement("svg",_e({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},o),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},11237:function(In,Gt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,w)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:w}):o[g]=w,_e=(o,g)=>{for(var w in g||(g={}))ae.call(g,w)&&d(o,w,g[w]);if(z)for(var w of z(g))B.call(g,w)&&d(o,w,g[w]);return o};const te=o=>React.createElement("svg",_e({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},o),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},9859:function(In,Gt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,w)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:w}):o[g]=w,_e=(o,g)=>{for(var w in g||(g={}))ae.call(g,w)&&d(o,w,g[w]);if(z)for(var w of z(g))B.call(g,w)&&d(o,w,g[w]);return o};const te=o=>React.createElement("svg",_e({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"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},60885:function(In,Gt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,w)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:w}):o[g]=w,_e=(o,g)=>{for(var w in g||(g={}))ae.call(g,w)&&d(o,w,g[w]);if(z)for(var w of z(g))B.call(g,w)&&d(o,w,g[w]);return o};const te=o=>React.createElement("svg",_e({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"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},20463:function(In,Gt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,w)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:w}):o[g]=w,_e=(o,g)=>{for(var w in g||(g={}))ae.call(g,w)&&d(o,w,g[w]);if(z)for(var w of z(g))B.call(g,w)&&d(o,w,g[w]);return o};const te=o=>React.createElement("svg",_e({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"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgwNGEuNzcyLjc3MiAwIDAgMSAuNTgtLjIzYy4yMyAwIC40MTIu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gMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},84216:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return d}});var h=_(37639),ue={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},z=_(32637),ae=_(59301),d=({type:_e,style:te})=>{const o=ae.createElement("div",{className:ue.wrap,onClick:g=>{g.preventDefault(),g.stopPropagation()}},ae.createElement("p",null,_e==="shixun"||_e==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ae.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",_e==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ae.createElement("div",{className:ue.contact},ae.createElement("div",{className:ue.img},ae.createElement("img",{src:z,width:"124px",height:"124px"})),ae.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ae.createElement(h.Z,{content:o},ae.createElement("span",{className:ue.text,style:te},"\u9AD8\u6D88\u8017"))}},57884:function(In,Gt,_){"use strict";var h=_(59301),ue=_(93314),z=_(99571),ae=Object.defineProperty,B=Object.defineProperties,d=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,g=(x,L,j)=>L in x?ae(x,L,{enumerable:!0,configurable:!0,writable:!0,value:j}):x[L]=j,w=(x,L)=>{for(var j in L||(L={}))te.call(L,j)&&g(x,j,L[j]);if(_e)for(var j of _e(L))o.call(L,j)&&g(x,j,L[j]);return x},p=(x,L)=>B(x,d(L));const E=({img:x,buttonProps:L={},styles:j={},customText:$,ButtonText:le,ButtonClick:F,Buttonclass:H,ButtonTwo:D,imgStyles:A,loading:Q=!1,className:ne=""})=>h.createElement("section",{className:`tc animated fadeIn ${ne}`,style:w({color:"#999",margin:"100px auto",visibility:Q?"hidden":"visible"},j)},h.createElement("img",{src:x||ue,style:p(w({},A),{pointerEvents:"none",userSelect:"none"})}),h.createElement("p",{className:"mt20 font14"},$||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),le&&h.createElement(z.ZP,w({className:H,onClick:F},L),le),D&&D);Gt.Z=E},41550:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return H}});var h=_(59301),ue={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},z=_(99571),ae=_(70557),B=_(51124),d=_(25399),_e=_(49661),te=_(72664),o=_(57884),g=_(90524),w=_(14794),p=_(59301),E=Object.defineProperty,x=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,$=(D,A,Q)=>A in D?E(D,A,{enumerable:!0,configurable:!0,writable:!0,value:Q}):D[A]=Q,le=(D,A)=>{for(var Q in A||(A={}))L.call(A,Q)&&$(D,Q,A[Q]);if(x)for(var Q of x(A))j.call(A,Q)&&$(D,Q,A[Q]);return D},F=(D,A,Q)=>new Promise((ne,ee)=>{var oe=ot=>{try{me(Q.next(ot))}catch(U){ee(U)}},ge=ot=>{try{me(Q.throw(ot))}catch(U){ee(U)}},me=ot=>ot.done?ne(ot.value):Promise.resolve(ot.value).then(oe,ge);me((Q=Q.apply(D,A)).next())}),H=({editOffice:D="view",data:A,issaver:Q,onSaver:ne,theme:ee,type:oe,filename:ge,monacoEditor:me,className:ot,style:U,close:C,onClose:P,hasMask:G,disabledDownload:re,onImgDimensions:X,showNodata:y,recordInfo:v})=>{const[O,pe]=(0,h.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[He,tt]=(0,h.useState)(""),[wt,It]=(0,h.useState)(),Ft=window.ENV==="build"?"/react/build":"",Ht=location.host.startsWith("localhost")?g.Z.PROXY_SERVER:g.Z.API_SERVER,en=10*(1024*1024),Tt=(0,h.useRef)();A!=null&&A.startsWith("/api")&&oe!=="txt"&&(A=g.Z.API_SERVER+A);const an=V=>V.substring(V.lastIndexOf("/")+1).split(".").pop();ge&&me&&(me.filename=ge),(0,h.useEffect)(()=>{var V,je;const Qe=(je=(V=document.cookie)==null?void 0:V.replace(/\s/g,""))==null?void 0:je.split(";");Qe==null||Qe.map(J=>{let M=J.split("=");M[0]==="_educoder_session"&&tt(M[1])})},[]),(0,h.useEffect)(()=>{oe==="office"&&(A.indexOf("bigfilescdn.")>-1||A.indexOf("bigfiles1")>-1?It({url:A,fileType:an(A),model:A.indexOf("model=edit")?"edit":"view"}):yt())},[oe,A]);function qe(V){return F(this,null,function*(){V.data.type==="pdfdata"&&(ne(V.data.data),window.removeEventListener("message",qe,!1)),console.log("mess---:",V.data)})}const yt=()=>F(void 0,null,function*(){console.log("data:",A);let V=A;A.startsWith("http")||(V=location.origin+V);let je=new URL(V).pathname.split("/").pop();const Qe=yield(0,te.gJ)({attachment_id:je});Qe.url=Ht+Qe.url,It(Qe)}),Fe=()=>{if(A.startsWith("http")||A.startsWith("blob:")){Ae();return}(0,_e.Sv)(ge||"educoder",A,ge)},Ae=()=>{v&&(0,w.fc)({id:v==null?void 0:v.id,watch_type:1,course_id:v==null?void 0:v.course_id}),(0,_e.Nd)(ge||"educoder",decodeURIComponent(A))};return p.createElement("div",{style:le({},U||{}),className:`${G&&ue.bgBlack} ${oe?ue.wrp:"hide"}`},C&&p.createElement("div",{className:ue.close,ref:Tt},!!X&&p.createElement(d.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Tt.current},p.createElement("span",{onClick:()=>{P(),X()}},p.createElement("i",{className:"icon-yulanpizhu"}))),!re&&p.createElement(d.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Tt.current},p.createElement("span",{onClick:Ae},p.createElement("i",{className:"icon-quxiaozhiding"}))),Q&&p.createElement(d.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Tt.current},p.createElement("span",{className:"",onClick:()=>{const V=document.getElementById("pdfiframe");window.addEventListener("message",qe,!1),setTimeout(()=>{V.contentWindow.postMessage("getData","*")},300)}},p.createElement("i",{className:"icon-baocun"}))),p.createElement(d.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Tt.current},p.createElement("span",{className:"",onClick:()=>{P()}},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${ue[ot]} ${ot} ${ue.monaco} ${oe==="txt"?"show":"hide"}`},oe==="txt"&&p.createElement(p.Fragment,null,p.createElement(B.ZP,le({},me)))),oe==="audio"&&p.createElement("audio",{src:`${(A==null?void 0:A.indexOf("http://"))>-1||(A==null?void 0:A.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${A}`,autoPlay:!0}),oe==="video"&&p.createElement(p.Fragment,null,(A==null?void 0:A.indexOf("http"))>-1?p.createElement("video",{controls:!0,src:`${A}`,autoPlay:!0}):p.createElement("video",{controls:!0,src:`data:video/mp4;base64,${A}`,autoPlay:!0})),oe==="office"&&wt&&p.createElement("iframe",{src:`${Ft}/office.html?key=${wt.key}&url=${btoa(wt.url)}&callbackUrl=${Ht+(wt.callbackUrl||"")}&fileType=${wt.fileType}&title=${wt.title||""}&model=${D}&officeServer=${g.Z.ONLYOFFICE}&disabledDownload=${!!re}`}),oe==="html"&&p.createElement("iframe",{src:A+"&disposition=inline"}),oe==="pdf"&&p.createElement("iframe",{id:"pdfiframe",src:`${Ft}/js/pdfview/index.html?filename=${ge||"educoder.pdf"}&url=${encodeURIComponent(A)}&disabledDownload=${!!re}&model=${D}`}),oe==="image"&&p.createElement("img",{src:`${(A==null?void 0:A.indexOf("http://"))>-1||(A==null?void 0:A.indexOf("https://"))>-1?"":"data:image/png;base64,"}${A}`}),(oe==="other"||oe==="download")&&p.createElement(p.Fragment,null,y?p.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:p.createElement(z.ZP,{icon:p.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fe,disabled:re},"\u4E0B\u8F7D")}):p.createElement(z.ZP,{type:"primary",size:"middle",onClick:Fe,disabled:re},p.createElement(ae.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),oe==="flowChart"&&p.createElement("div",{className:"embed"},p.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${A||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},38394:function(In,Gt,_){"use strict";_.d(Gt,{z:function(){return me},Z:function(){return ot}});var h=_(59301),ue=_(88831),z=_(90290),ae=_(64018),B=_(68535),d=_(90524),_e=_(49661),te=_(15342),o=_(77736),g=_(99571),w=_(1012),p=_(41550),E=_(59301),L=({html:U})=>{const C=(0,h.useRef)(null),P=(0,h.useRef)(null),G=`.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 56px !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,h.useEffect)(()=>{const re=C.current.attachShadow({mode:"open"});P.current=document.createElement("div"),P.current.className="markdown-body",P.current.innerHTML=U,re.appendChild(P.current);const X=document.createElement("style");return X.textContent=G,re.appendChild(X),()=>{re.innerHTML=""}},[]),(0,h.useEffect)(()=>{P.current&&(P.current.innerHTML=U)},[U]),E.createElement("div",{ref:C})};function j(U){const C=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],P=new RegExp(`\\b(${C.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return U.replace(P,"").trim()}var $={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},le=Object.defineProperty,F=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,A=(U,C,P)=>C in U?le(U,C,{enumerable:!0,configurable:!0,writable:!0,value:P}):U[C]=P,Q=(U,C)=>{for(var P in C||(C={}))H.call(C,P)&&A(U,P,C[P]);if(F)for(var P of F(C))D.call(C,P)&&A(U,P,C[P]);return U};const ne="@\u2581\u2581@",ee="@\u2581@",oe=/<pre[^>]*>/g;function ge(U){let C=document.createElement("div");return C.innerHTML=U,C.childNodes.length===0?"":C.childNodes[0].nodeValue}const me=(U,C)=>{U=U||"";const P=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,G=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,re=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,X=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return C?U.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(P,(y,v,O,pe,He,tt,wt)=>{const It=v||pe||tt,Ft=O||He||wt||"?";return d.Z.API_SERVER+"/api/attachments/"+It+Ft+"&t="+(0,_e.Jn)(It,Date.now())+(y.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(U=U.replace(X,(y,v,O,pe,He,tt,wt)=>{const It=v||pe||tt,Ft=O||He||wt||"?";return d.Z.API_SERVER+"/attachments/download/"+It+Ft+"&t="+(0,_e.Jn)(It,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(P,(y,v,O,pe,He,tt,wt)=>{const It=v||pe||tt,Ft=O||He||wt||"?";return d.Z.API_SERVER+"/api/attachments/"+It+Ft+"&t="+(0,_e.Jn)(It,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(G,(y,v,O,pe,He)=>{const tt=v||pe,wt=O||He||"";return'"'+d.Z.API_SERVER+"/api/attachments/"+tt+wt+tt+wt+"&t="+(0,_e.Jn)(tt,Date.now())}).replace(re,(y,v,O,pe,He)=>{const tt=v||pe,wt=O||He||"";return"("+d.Z.API_SERVER+"/files/uploads/"+tt+wt+tt+wt+"&t="+(0,_e.Jn)(tt,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,`
`),U)};var ot=({value:U="",edit:C=!1,className:P,showTextOnly:G,showLines:re,style:X={},stylesPrev:y={},highlightKeywords:v,showProgramFill:O,isProgramFill:pe,disabledFill:He=!1,programFillValue:tt,openEditor:wt=()=>{},onFillChange:It=Ke=>{},onFillBlur:Ft=()=>{},onFillFocus:Ht=()=>{}})=>{let Ke=j(String(U||""));const en=(0,h.useRef)(),Tt=(0,h.useRef)(),[an,qe]=(0,h.useState)(""),[yt,Fe]=(0,h.useState)("office"),[Ae,V]=(0,h.useState)([]),je=(0,h.useRef)("a"+(0,w.Z)()),Qe={},J=N=>/<style[\s\S]*?>/i.test(N||""),M=(N,Le,De)=>{const Ce=document.createElement(N===ee?"input":"textarea");Ce.style.width="100%",Ce.style.height=N===ee?"40px":"151px",Ce.rows=5,Ce.spellcheck=!1,Ce.name="edu-program-fill",Ce.placeholder="\u8BF7\u8F93\u5165",Ce.dataset.id=Le;const st=Object.keys(Qe).length;return Qe[st]=Ce,`<span class="edu-program-fill-wrap ${N===ee?"":"show"}" style="width:${N===ee?"600px":"100%"}" title=${De||""}><span>${Ce.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Se(N){return N=N.replace(/!\[.*?\]\(.*?\)/g,""),N=N.replace(/\[.*?\]\(.*?\)/g,""),N=N.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),N=N.replace(/<embed.*?>/g,""),N=N.replace(/<img.*?>/g,""),N=N.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),N=N.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),N=N.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),N=N.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),N}const be=N=>!G&&J(Ke)?N:N.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Le,De){let Ce=De.replace(/(\n|\r)/g,"").split("}"),st=[];return Ce.map(at=>{at!=""&&st.push(`.${je.current} ${at}`)}),`<style>${st.join("}")}</style>`}),W=(0,h.useMemo)(()=>{try{const Ce=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,st=/\"\/api\/attachments\/|\"\/attachments\/download\//g,at=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Oe=/\(\/attachments\/download\//g;Ke=Ke.replace(Oe,"("+d.Z.API_SERVER+"/attachments/download/").replace(Ce,"("+d.Z.API_SERVER+"/api/attachments/").replace(st,'"'+d.Z.API_SERVER+"/api/attachments/").replace(at,'"'+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,`
`),en.current.style.display="none"}catch(Ce){}if(O){let Ce=-1;return Ke=Ke.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(st,at,Oe){var Et;return++Ce,M(st,Ce,(Et=tt==null?void 0:tt[Ce])==null?void 0:Et.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${be(Ke||"")}</pre>`}let N=be(Ke);N=(0,z.ZP)(N);const Le=(0,z.ez)();Ke.match(/\[TOC\]/)&&(N=N.replace("<p>[TOC]</p>",(0,z.Qv)()),(0,z.Iy)()),N=N.replace(/(__special_katext_id_\d+__)/g,(Ce,st)=>{const{type:at,expression:Oe}=Le[st];return(0,te.renderToString)(ge(Oe)||"",{displayMode:at==="block",throwOnError:!1,output:"html"})}),N=N.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,z.AL)();const De=document.createElement("div");if(De.innerHTML=N,G)return De.innerText;if(v){const Ce=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ve(De,Ce),De.innerHTML}return setTimeout(()=>lt(),500),De.innerHTML},[Ke,v]);(0,h.useEffect)(()=>{$e.current&&$e.current.querySelectorAll(["input","textarea"]).forEach(Le=>{Le.oninput=fe,Le.onblur=ye,Le.onfocus=et})},[Ae]),(0,h.useEffect)(()=>{var N,Le,De,Ce,st;if(tt!=null&&tt.length)try{const at=$e.current.querySelectorAll(".edu-program-fill-score"),Oe=$e.current.querySelectorAll('[name="edu-program-fill"]');for(const[Et,Vt]of Oe.entries())Vt.value=((N=tt==null?void 0:tt[Et])==null?void 0:N.value)||"",((Le=tt==null?void 0:tt[Et])==null?void 0:Le.type)==="warning"?Vt.className="program-fill-warning":((De=tt==null?void 0:tt[Et])==null?void 0:De.type)==="success"?Vt.className="program-fill-success":Vt.className="";for(const[Et,Vt]of at.entries())Vt.innerHTML=(Ce=tt==null?void 0:tt[Et])!=null&&Ce.score?`${(st=tt==null?void 0:tt[Et])==null?void 0:st.score}\u5206`:"";V(tt)}catch(at){console.log(at,"error")}},[tt]);const fe=N=>{Ae[N.target.dataset.id]=Ae[N.target.dataset.id]||{},Ae[N.target.dataset.id].value=N.target.value,V([...Ae]),It(Ae,N.target.dataset.id)},ye=N=>{Ae[N.target.dataset.id]=Ae[N.target.dataset.id]||{},Ae[N.target.dataset.id].value=N.target.value,V([...Ae]),Ft(Ae,N.target.dataset.id)},et=N=>{Ae[N.target.dataset.id]=Ae[N.target.dataset.id]||{},Ae[N.target.dataset.id].value=N.target.value,V([...Ae]),Ht(Ae,N.target.dataset.id)};function Ve(N,Le){return N.childNodes.forEach(De=>{var Ce;if(De.childNodes.length>0)Ve(De,Le);else if(De.nodeName!=="IMG")if(De.innerHTML)De.innerHTML=(Ce=De.innerHTML)==null?void 0:Ce.replace(new RegExp(Le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const st=document.createElement("span");st.innerHTML=De.textContent.replace(new RegExp(Le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),De.replaceWith(st)}})}const $e=(0,h.useRef)();z.jb.WebkitLineClamp=re,re&&(X=Q(Q({},X),z.jb));function Ye(N){let Le=N.target;if(Le.tagName.toUpperCase()==="A"){let De=Le.getAttribute("href");if(De.indexOf("office")>-1)N.preventDefault(),qe(De),Fe("office");else if(De.indexOf("application/pdf")>-1)N.preventDefault(),qe(De),Fe("pdf");else if(De.indexOf("text/html")>-1)N.preventDefault(),qe(De),Fe("html");else if(De.startsWith("#")){N.preventDefault();let Ce=document.getElementById(De.replace("#",""));Ce&&Ce.scrollIntoView(!0)}}}const lt=()=>{var N;const Le=(N=$e.current)==null?void 0:N.querySelectorAll("video");Le==null||Le.forEach(De=>{if(De.oncontextmenu=()=>!1,De.src.indexOf(".m3u8")>-1&&!De.canPlayType("application/vnd.apple.mpegurl")){if(B.ZP.isSupported()){var Ce=new B.ZP;Ce.loadSource(De.src),Ce.attachMedia(De)}}})};(0,h.useEffect)(()=>{if($e.current&&W&&W.match(oe)&&window.PR.prettyPrint(),$e.current)return $e.current.addEventListener("click",Ye),()=>{var N;(N=$e.current)==null||N.removeEventListener("click",Ye),(0,z.AL)(),(0,z.Iy)()}},[W,$e.current,Ye]);const de=N=>{N.target.nodeName==="IMG"&&N.target.className.indexOf("draw-flowchart")>-1?(en.current.style.zIndex=1,en.current.style.display="flex",en.current.style.width=N.target.clientWidth+"px",en.current.style.height=N.target.clientHeight+"px",en.current.style.top=N.target.offsetTop+"px",en.current.style.left=N.target.offsetLeft+"px",N.target.id&&(Tt.current=N.target.id)):en.current.style.display="none"},K=()=>{en.current.style.display="none"};return(0,h.useEffect)(()=>{var N;const Le=De=>{De.preventDefault(),De.clipboardData.setData("text",window.getSelection().toString())};return(N=$e.current)==null||N.addEventListener("copy",Le),()=>{var De;(De=$e.current)==null||De.removeEventListener("copy",Le)}},[$e.current]),h.createElement("div",{style:{position:"relative"},onMouseLeave:K},G&&h.createElement("div",{ref:$e,className:`${$.mdBody} `},W),!G&&!J(W)&&h.createElement("div",{ref:$e,style:Q({},X),onMouseOver:de,className:`${P||""} ${He?"disabled-fill":""} markdown-body ${$.mdBody} ${je.current}`,dangerouslySetInnerHTML:{__html:W}}),!G&&J(W)&&h.createElement(L,{html:W}),h.createElement("div",{ref:en,className:`${$.button} ${C?"":$.previewFlowChart}`},h.createElement(o.Z,null,h.createElement(g.ZP,{onClick:()=>{C?wt(Tt.current):(qe(Tt.current),Fe("flowChart"))}},C?"\u7F16\u8F91":"\u9884\u89C8"))),h.createElement(p.Z,{close:!0,data:an,type:an!=null&&an.length?yt:"",style:Q({},y),onClose:()=>qe("")}))}},51124:function(In,Gt,_){"use strict";_.d(Gt,{SV:function(){return en},ZP:function(){return Ke}});var h=_(59301),ue=_(76374);const z={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"]},ae={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"]},B={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(`
`)}]},_e={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var te=_(53184),o=_.n(te),g=(Tt,an,qe)=>new Promise((yt,Fe)=>{var Ae=Qe=>{try{je(qe.next(Qe))}catch(J){Fe(J)}},V=Qe=>{try{je(qe.throw(Qe))}catch(J){Fe(J)}},je=Qe=>Qe.done?yt(Qe.value):Promise.resolve(Qe.value).then(Ae,V);je((qe=qe.apply(Tt,an)).next())});const w={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"]}},p=(Tt,an,qe,yt)=>{const Fe=an.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:qe.lineNumber,endColumn:qe.column});return Array.from(new Set(Fe.match(/\b\w{2,}\b/g)||[])).map(V=>({label:V,kind:Tt.languages.CompletionItemKind.Text,insertText:V,range:yt}))},E=(Tt,an,qe,yt)=>{Tt.languages.registerCompletionItemProvider(an,{provideCompletionItems(Fe,Ae){const V=Fe.getWordUntilPosition(Ae),je={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:V.startColumn,endColumn:V.endColumn},Qe=Fe.getLineContent(Ae.lineNumber).substring(V.startColumn-2,V.endColumn);return{suggestions:[...p(Tt,Fe,Ae,je),...qe.map(M=>({label:M,kind:Tt.languages.CompletionItemKind.Keyword,documentation:M,insertText:M,insertTextRules:Tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...yt.map(M=>({label:M.label,kind:Tt.languages.CompletionItemKind.Snippet,documentation:M.content,insertText:Qe.startsWith("#")?M.content.replace(/#/,""):M.content,insertTextRules:Tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}})};var x=Tt=>{w.languages.forEach(an=>{Tt.languages.registerDocumentFormattingEditProvider(an,{provideDocumentFormattingEdits(qe){return g(this,null,function*(){const yt=o()(qe.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:qe.getFullModelRange(),text:yt}]})}})}),E(Tt,"java",ae.keywords,ae.quickKey),E(Tt,"cpp",B.keywords,B.quickKey),E(Tt,"c",z.keywords,[]),E(Tt,"python",d.keywords,d.quickKey),E(Tt,"scala",_e.keywords,_e.quickKey)};const L="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var j=Object.defineProperty,$=(Tt,an,qe)=>an in Tt?j(Tt,an,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Tt[an]=qe,le=(Tt,an,qe)=>$(Tt,typeof an!="symbol"?an+"":an,qe);const F=class Rl{constructor(an,qe,yt){this.placeholder=an,this.editor=qe,this.monaco=yt,qe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Rl.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)}};le(F,"ID","editor.widget.placeholderHint");var D=F,A=_(96236),Q=_(6767),ne=_(25399),ee=_(89392),oe=_(33796),ge=_(56102),me=Object.defineProperty,ot=Object.defineProperties,U=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,re=(Tt,an,qe)=>an in Tt?me(Tt,an,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Tt[an]=qe,X=(Tt,an)=>{for(var qe in an||(an={}))P.call(an,qe)&&re(Tt,qe,an[qe]);if(C)for(var qe of C(an))G.call(an,qe)&&re(Tt,qe,an[qe]);return Tt},y=(Tt,an)=>ot(Tt,U(an)),v=(Tt,an)=>{var qe={};for(var yt in Tt)P.call(Tt,yt)&&an.indexOf(yt)<0&&(qe[yt]=Tt[yt]);if(Tt!=null&&C)for(var yt of C(Tt))an.indexOf(yt)<0&&G.call(Tt,yt)&&(qe[yt]=Tt[yt]);return qe},O=(Tt,an,qe)=>new Promise((yt,Fe)=>{var Ae=Qe=>{try{je(qe.next(Qe))}catch(J){Fe(J)}},V=Qe=>{try{je(qe.throw(Qe))}catch(J){Fe(J)}},je=Qe=>Qe.done?yt(Qe.value):Promise.resolve(Qe.value).then(Ae,V);je((qe=qe.apply(Tt,an)).next())});function pe(Tt){return/^\d+$/.test(Tt)?`${Tt}px`:Tt}function He(){}let tt=!1;const wt={"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 It(Tt=[]){let an=Tt;if(Array.isArray(Tt)){for(let qe=0;qe<Tt.length;qe++){let yt=wt[Tt[qe]];if(yt)return yt}return an[0]}return wt[an]||an}let Ft=null;const Ht=()=>O(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Tt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Tt)}});var Ke=Tt=>{var an=Tt,{width:qe="100%",height:yt="100%",value:Fe,language:Ae="javascript",style:V={},options:je={},overrideServices:Qe={},theme:J="vs-dark",onEditBlur:M,isCopy:Se=!1,onSave:be,autoHeight:W=!1,forbidCopy:fe=!1,onChange:ye=He,editorDidMount:et=He,onFocus:Ve=He,onBreakPoint:$e=He,breakPointValue:Ye=[],filename:lt="educoder.txt",errorLine:de,errorContent:K="",highlightLine:N,openBreakPoint:Le=!1,placeholder:De="",showMiniMap:Ce=!0}=an,st=v(an,["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 at=(0,h.useRef)(),Oe=(0,h.useRef)({}),Et=(0,h.useRef)(),Vt=(0,h.useRef)(),St=(0,h.useRef)([]),Bt=(0,h.useRef)(!1),se=(0,h.useRef)(),ve=(0,h.useRef)(),Ee=(0,h.useRef)(!1),[k,Y]=(0,h.useState)(!1);function he(){let We;return at.current&&(We=new ue.Z(dt=>{for(let Lt of dt)(Lt.target.offsetHeight>0||Lt.target.offsetWidth>0)&&Oe.current.instance.layout()}),We.observe(at.current)),We}function ce(){Q.ZP.warning({content:decodeURIComponent(L),key:"monaco-editor-tip"})}const xe=()=>{let We=Oe.current.instance;if(Fe!=null&&We&&k){const dt=We.getModel();dt&&Fe!==dt.getValue()&&(tt=!0,dt.setValue(Fe),We.layout(),tt=!1)}};(0,h.useEffect)(()=>{const We=oe.Z.subscribe("formatDocument",dt=>{var Lt;let Pt=Oe.current.instance;(Lt=Pt==null?void 0:Pt.getAction)==null||Lt.call(Pt,"editor.action.formatDocument").run()});return window.updateMonacoValue=dt=>{ye(dt)},We},[]),(0,h.useEffect)(()=>{var We;let dt=Oe.current.instance;Vt.current&&clearTimeout(Vt.current),Vt.current=setTimeout(()=>{xe()},500),Fe&&(Fe!=null&&Fe.length)&&((We=dt==null?void 0:dt.updateOptions)==null||We.call(dt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Fe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Fe,k,Oe.current]),(0,h.useEffect)(()=>{if(de&&Oe.current&&Oe.current.instance){let dt=Oe.current.instance;dt.changeViewZones(function(Lt){var Pt=document.createElement("div");Pt.style.padding="10px 20px",Pt.style.width="calc(100% - 20px)",Pt.className="my-error-line-wrp",Pt.innerHTML=K,Lt.addZone({afterLineNumber:de||11,heightInLines:3,domNode:Pt})});var We={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}};dt.addOverlayWidget(We),dt.revealPositionInCenter({lineNumber:20,column:1})}},[de,Oe.current,k]);const Be=(We="",dt)=>{if(!We||We.trim()==="")return!0;const Pt=Oe.current.instance.getModel().getLineTokens(dt);let cn=!1;for(let Ne=0;Ne<2;Ne++)Pt.getStandardTokenType(Ne)===1&&(cn=!0);return cn};(0,h.useEffect)(()=>{var We;const dt=(We=Oe.current)==null?void 0:We.instance;if(dt&&k&&fe){const Lt=dt.onDidBlurEditorWidget(()=>{Ee.current=!1}),Pt=dt.onDidFocusEditorText(()=>{Ee.current=!0});return()=>{Lt.dispose(),Pt.dispose()}}},[Oe.current,k,fe]),(0,h.useEffect)(()=>{var We;if((We=Oe.current)!=null&&We.instance&&k&&Le){let dt=Oe.current.instance,Lt=dt.getModel();if(!Lt)return;(()=>{var Ot;let dn=[],Qt=[];const $t=Lt.getAllDecorations();for(let Ze of $t)Ze.options.className==="highlighted-line"&&(dn.push((Ot=Ze==null?void 0:Ze.range)==null?void 0:Ot.startLineNumber),Qt.push(Ze==null?void 0:Ze.id));if(N===dn[0])return;Lt.deltaDecorations(Qt,[]);const Dt=Lt.getLineCount();N&&N<=Dt&&(dt.deltaDecorations([],[{range:new Ft.Range(N,1,N,Lt.getLineMaxColumn(N)),options:{isWholeLine:!0,className:"highlighted-line"}}]),dt.revealLineInCenter(N))})();const cn=(Ot=!1)=>{var dn;let Qt=[],$t=[];const Dt=Lt.getAllDecorations();for(let Ze of Dt)Ze.options.linesDecorationsClassName==="breakpoints-select"&&(Qt.push((dn=Ze==null?void 0:Ze.range)==null?void 0:dn.startLineNumber),$t.push(Ze==null?void 0:Ze.id));if(Ot)return{lines:Qt,ids:$t};$e(Qt)},Ne=Ot=>O(void 0,null,function*(){let dn={range:new Ft.Range(Ot,1,Ot,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Lt.deltaDecorations([],[dn]),cn()}),Re=Ot=>O(void 0,null,function*(){let dn=[];const Qt=dt.getLineDecorations(Ot);for(let $t of Qt)$t.options.linesDecorationsClassName==="breakpoints-select"&&dn.push($t.id);yield Lt.deltaDecorations(dn,[]),cn()}),gt=Ot=>{let dn=dt.getLineDecorations(Ot);for(let Qt of dn)if(Qt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ee.isEqual)(Ye,cn(!0).lines)){Lt.deltaDecorations(cn(!0).ids,[]);const Ot=Ye.map(dn=>({range:new Ft.Range(dn,1,dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Lt.deltaDecorations([],Ot)}const pt=dt.onDidChangeModelContent(Ot=>{let dn=dt.getPosition();if(dn){let Qt=dn.lineNumber;clearTimeout(ve.current),ve.current=setTimeout(()=>{Be(Lt.getLineContent(Qt),Qt)?Re(Qt):gt(Qt)?(Re(Qt),Ne(Qt)):cn()},100)}}),Mt=dt.onMouseDown(Ot=>{var dn,Qt,$t;if(Ot.target.detail&&(($t=(Qt=(dn=Ot.target)==null?void 0:dn.element)==null?void 0:Qt.className)!=null&&$t.includes("line-numbers"))){let Dt=Ot.target.position.lineNumber;if(Be(Lt.getLineContent(Dt),Dt))return;gt(Dt)?Re(Dt):Ne(Dt)}}),xt=Ot=>{let dn={range:new Ft.Range(Ot,1,Ot,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};St.current=dt.deltaDecorations(St.current,[dn])},At=()=>{St.current=dt.deltaDecorations(St.current,[])},Kt=dt.onMouseMove(Ot=>{var dn,Qt,$t;if(At(),Ot.target.detail&&(($t=(Qt=(dn=Ot.target)==null?void 0:dn.element)==null?void 0:Qt.className)!=null&&$t.includes("line-numbers"))){let Dt=Ot.target.position.lineNumber;if(Be(Lt.getLineContent(Dt),Dt))return;xt(Dt)}}),nn=dt.onMouseLeave(()=>{At()});return()=>{pt.dispose(),Mt.dispose(),Kt.dispose(),nn.dispose()}}},[Oe.current,k,Ye,N,Le,Ae]),(0,h.useEffect)(()=>{var We;(We=Oe.current)!=null&&We.instance&&Le&&Oe.current.instance.setPosition({lineNumber:0,column:0})},[N]);function Xe(){let We=Oe.current.instance;if(We){const dt=We.getSelection(),Lt=Oe.current.pastePos||{},Pt=new Ft.Range(Lt.startLineNumber||dt.endLineNumber,Lt.startColumn||dt.endColumn,Lt.endLineNumber||dt.endLineNumber,Lt.endColumn||dt.endColumn);setTimeout(()=>{We.executeEdits("",[{range:Pt,text:""}])},300)}}function ct(We){(window.navigator.platform.match("Mac")?We.metaKey:We.ctrlKey)&&We.keyCode==83&&(We.preventDefault(),be())}const nt=()=>{if(W&&Oe.current.instance){const We=Oe.current.instance.getContentHeight();Pe(We<yt?yt:We)}else Pe(yt)};function Ue(We){var dt=document.createEvent("MouseEvents");dt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),We.dispatchEvent(dt)}const I=We=>{if(!Ee.current)return;const{keyCode:dt,ctrlKey:Lt,metaKey:Pt,target:cn,type:Ne}=We;return(Ne==="paste"||(dt===67||dt===86)&&(Pt||Lt))&&cn.nodeName==="TEXTAREA"&&(ce(),We.preventDefault()),!1};function Z(We,dt){var Lt=window.URL||window.webkitURL||window,Pt=new Blob([dt]),cn=document.createElementNS("http://www.w3.org/1999/xhtml","a");cn.href=Lt.createObjectURL(Pt),cn.download=We,Ue(cn)}(0,h.useEffect)(()=>{nt()},[nt]),(0,h.useEffect)(()=>{at.current&&!k&&Promise.all([_.e(8909),_.e(5028)]).then(_.bind(_,71448)).then(We=>{try{Ft=We,Oe.current.instance=Ft.editor.create(at.current,{value:Fe,language:It(Ae),theme:J,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ce||!1}},Qe);const dt=Oe.current.instance;let cn=[...A.BH._menuItems].find(pt=>pt[0]._debugName=="EditorContext")[1],Ne=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Re=(pt,Mt)=>{var xt,At;let Kt=pt._first;do Mt.includes((At=(xt=Kt.element)==null?void 0:xt.command)==null?void 0:At.id)&&pt._remove(Kt);while(Kt=Kt.next)};if(et(dt,Ft),setTimeout(()=>{nt(),Oe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Z(lt||"educoder.txt",dt.getValue())}})},500),Oe.current.subscription=dt.onDidChangeModelContent(pt=>{Bt.current?clearTimeout(se.current):(nt(),ye(dt.getValue(),pt)),se.current=setTimeout(()=>{Bt.current=!1},500)}),window.Monaco||x(Ft,It(Ae)),fe&&(Re(cn,Ne),at.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",I),window.removeEventListener("paste",I),window.addEventListener("keydown",I),window.addEventListener("paste",I)),window.Monaco=Ft,M&&dt.onDidBlurEditorWidget(()=>{M(dt.getValue())}),Ve&&dt.onDidFocusEditorText(()=>{fe&&Ht(),Ve(dt.getValue())}),fe){Ht();try{dt.onDidPaste(pt=>{const Mt=dt.getSelection(),xt=Oe.current.pastePos||{},At=new Ft.Range(xt.startLineNumber||Mt.endLineNumber,xt.startColumn||Mt.endColumn,xt.endLineNumber||Mt.endLineNumber,xt.endColumn||Mt.endColumn);dt.executeEdits("",[{range:pt.range,text:""}])})}catch(pt){}}let gt=he();return De&&typeof De=="string"&&new D(De,dt,Ft),Y(!0),()=>{const pt=Oe.current.instance;pt.dispose();const Mt=pt.getModel();Mt&&Mt.dispose(),Oe.current.subscription&&Oe.current.subscription.dispose(),gt.unobserve(at.current)}}catch(dt){}})},[]),(0,h.useEffect)(()=>{if(Oe.current.instance&&k)return document.addEventListener("keydown",ct,!1),()=>{document.removeEventListener("keydown",ct)}},[be,k]),(0,h.useEffect)(()=>{let We=Oe.current.instance;if(We&&k){let dt=It(Ae);Ft.editor.setModelLanguage(We.getModel(),dt)}},[Ae,k]),(0,h.useEffect)(()=>{Oe.current.instance&&k&&Ft.editor.setTheme(J)},[J,k]),(0,h.useEffect)(()=>{let We=Oe.current.instance;Et.current=je,We&&k&&(We.updateOptions(X({},je)),setTimeout(()=>{We.getModel().updateOptions(X({},je))},200))},[JSON.stringify(je),k]),(0,h.useEffect)(()=>{let We=Oe.current.instance;We&&k&&We.layout()},[qe,yt,k]);const[S,ze]=(0,h.useState)(pe(qe)),[ke,Pe]=(0,h.useState)(pe(yt)),Ge=y(X({},V),{width:S,height:ke,position:"relative"});return h.createElement("div",{className:"my-monaco-editor",ref:at,style:Ge},Se&&h.createElement(ge.CopyToClipboard,{text:Fe,onCopy:()=>Q.ZP.success("\u590D\u5236\u6210\u529F")},h.createElement(ne.Z,{title:"\u590D\u5236\u4EE3\u7801"},h.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},h.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function en({width:Tt="100%",height:an="100%",original:qe,modified:yt,language:Fe,options:Ae={}}){const V=(0,h.useRef)(),[je,Qe]=(0,h.useState)(null);function J(W){let fe;return V.current&&(fe=new ue.Z(ye=>{for(let et of ye)(et.target.offsetHeight>0||et.target.offsetWidth>0)&&W.layout()}),fe.observe(V.current)),fe}(0,h.useEffect)(()=>(V.current&&Promise.all([_.e(8909),_.e(9404)]).then(_.bind(_,2550)).then(W=>{Ft=W;const fe=Ft.editor.createDiffEditor(V.current,y(X({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},Ae),{wordWrap:!0}));Qe(fe);let ye=J(fe);return()=>{fe.dispose();const et=fe.getModel();et&&et.dispose(),ye.unobserve(V.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,h.useEffect)(()=>{je&&je.setModel({original:Ft.editor.createModel(qe,Fe),modified:Ft.editor.createModel(yt,Fe)})},[qe,yt,Fe,je]);const M=pe(Tt),Se=pe(an),be={width:M,height:Se};return h.createElement("div",{className:"my-diff-editor",ref:V,style:be})}},929:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return p}});var h={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",wrapisCurrent:"wrapisCurrent___qIfQT"},ue=_(29787),z=_(25399),ae=_(60242),B=_(92310),d=_.n(B),_e=_(49661),te=_(57884),o=_(34055),g=_(59301),p=({className:E,dataSource:x=[],col:L=4,right:j,bottom:$=23,precision:le=0,wrapWidth:F=1200,trackEventItems:H,loading:D,onRemove:A=()=>{},isCurrent:Q=!0,showProgress:ne=!1,showAlias:ee=!1})=>{const oe=Math.floor((F-(L-1)*j)/L),ge=[{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(ue.Z,{spinning:D},g.createElement("div",{className:d()(h.list,E)},!!(x!=null&&x.length)&&(x==null?void 0:x.map((me,ot)=>{var U,C,P,G,re,X;const{name:y,id:v,identifier:O,featured:pe,school_name:He,image_url:tt,excellent:wt,is_plan:It}=me;return g.createElement("div",{key:v,className:Q&&ne?h.wrapisCurrent:h.wrap,style:{width:oe,marginRight:(1+ot)%L===0?0:j+le,marginBottom:$}},g.createElement("a",{className:h.li,onClick:Ft=>{Ft.preventDefault(),Ft.stopPropagation(),H&&(0,_e.L9)([H]),(0,_e.xg)(`/paths/${O}`)}},g.createElement("div",{className:h.img},g.createElement("img",{className:h.cover,src:`${tt}`}),Q&&(0,o.bg)()&&(me==null?void 0:me.studying)&&g.createElement("div",{className:`${h.movebq} user-path-items`,onClick:Ft=>{Ft.stopPropagation(),A(me)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(U=me==null?void 0:me.subject_tags)==null?void 0:U.map((Ft,Ht)=>{var Ke,en;if(Ht===0){const an=(Ke=ge.find(qe=>qe.name==Ft))==null?void 0:Ke.swimg;return g.createElement("img",{className:h.sign,src:an,style:{left:"-4px"}})}const Tt=(en=ge.find(an=>an.name==Ft))==null?void 0:en.ptimg;return g.createElement("img",{className:h.sign,src:Tt,style:{left:`${48+52*(Ht-1)+2*Ht}px`}})}),g.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(me==null?void 0:me.excellent)&&g.createElement("div",{className:h.bq},"\u5F00\u653E\u8BFE\u7A0B"))),g.createElement("div",{className:h.name},g.createElement(z.Z,{title:ee&&(me!=null&&me.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${y}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${me==null?void 0:me.excellent_alias_name}`)):y},g.createElement("span",{className:h.e},ee&&(me==null?void 0:me.excellent_alias_name)||y))),Q&&ne&&((C=me==null?void 0:me.progress)==null?void 0:C.all_score)!=0&&g.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},g.createElement(ae.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((P=me==null?void 0:me.progress)==null?void 0:P.my_score)/((G=me==null?void 0:me.progress)==null?void 0:G.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(re=me==null?void 0:me.progress)==null?void 0:re.my_score,"/",(X=me==null?void 0:me.progress)==null?void 0:X.all_score),(!Q||!ne)&&g.createElement(z.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${He}`},g.createElement("div",{className:h.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),He)),(!Q||!ne)&&g.createElement("div",{className:h.tags},g.createElement("div",null,g.createElement(z.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,me.stages_count))),g.createElement(z.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,me.members_count)))))))})),!x.length&&g.createElement(te.Z,null)))}},71360:function(In,Gt,_){"use strict";_.d(Gt,{jL:function(){return B},w9:function(){return pe},QD:function(){return de},cQ:function(){return re.Z},op:function(){return ye},O5:function(){return xe},_b:function(){return st},t7:function(){return le},Gi:function(){return Ht},YG:function(){return It},qp:function(){return w},vr:function(){return Le},qE:function(){return $e},Je:function(){return D},wb:function(){return G},cq:function(){return yt},tp:function(){return x}});var h=_(59301),ue={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"},z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZj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,imgWidth:ct=346,title:nt,sunTitle:Ue,bannerExtraContent:I})=>h.createElement("div",{className:ue.banner},h.createElement("div",{className:ue.content},h.createElement("aside",null,h.createElement("p",null,h.createElement("b",null,nt),h.createElement("span",null,Ue)),Be.length>0&&h.createElement("div",{className:ue.btns},Be.map((Z,S)=>h.createElement("div",{key:S,onClick:Z.click},Z.name,Z.sign?h.createElement("img",{src:z,width:39}):null))),I),Xe&&h.createElement("img",{style:{marginTop:33,marginRight:38},src:Xe,width:ct}))),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"},_e=_(92310),te=_.n(_e),o=_(89392),w=({dataSource:Be=[],value:Xe,onChange:ct,onTitleChange:nt,className:Ue,title:I,titleWidth:Z=41,style:S={},fontColor:ze="#6A7283",showCount:ke})=>{const[Pe,Ge]=(0,h.useState)(0),[We,dt]=(0,h.useState)(!1),Lt=(0,h.useRef)(null),Pt=(0,h.useRef)(null);return(0,h.useEffect)(()=>{var cn;Be.length!==0&&(((cn=Lt==null?void 0:Lt.current)==null?void 0:cn.clientHeight)>97?Ge(1):Ge(0)),Be.length===0&&Ge(0),dt(!1)},[Be]),h.createElement("div",{className:te()(d.row,Ue),style:S},h.createElement("div",{onClick:(0,o.throttle)(()=>nt==null?void 0:nt(),2e3),style:{width:Z,marginTop:We?12:4},className:`${d.title} ${nt?"current":""}`},I),h.createElement("div",{className:We?`${d.tagsWrap} ${d.tagsBorderWrap}`:d.tagsWrap},h.createElement("div",{className:d.bar,ref:Pt,style:Pe>0?{height:Pe===1?97:"auto",overflow:Pe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},h.createElement("div",{className:d.tag,ref:Lt},Be==null?void 0:Be.map(cn=>h.createElement("span",{onClick:()=>ct(cn.id),key:cn.id,style:{color:ze},className:Xe===cn.id?d.active:""},h.createElement("span",{title:cn.name,className:d.name},cn.name),!!ke&&h.createElement("span",{className:d.num},cn.count))))),!!Pe&&h.createElement(h.Fragment,null,Pe===1?h.createElement("div",{onClick:()=>{var cn;Ge(2),((cn=Lt==null?void 0:Lt.current)==null?void 0:cn.clientHeight)>245?dt(!0):dt(!1)},className:d.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>{Pt.current.scrollTop=0,Ge(1),dt(!1)},className:d.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},p={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:Be=[],value:Xe,onChange:ct,className:nt,style:Ue={}})=>h.createElement("div",{style:Ue,className:te()(p.tabs,nt)},Be.map(I=>h.createElement("span",{onClick:()=>ct(I.id),className:Xe===I.id?p.active:"",key:I.id},I.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"},j=_(37568),le=({dataSource:Be=[],value:Xe="",onChange:ct,onInputChange:nt=()=>{},className:Ue,style:I={},placeholder:Z,allowClear:S=!1})=>{var ze;const[ke,Pe]=(0,h.useState)(""),[Ge,We]=(0,h.useState)("");(0,h.useEffect)(()=>{var Pt;let cn=Xe;(Pt=JSON.stringify(Xe))!=null&&Pt.includes("{")&&(Pe(Xe.id),cn=Xe.value||"");try{We(decodeURIComponent(cn||""))}catch(Ne){We(decodeURIComponent(cn||""))}},[Xe]);const dt=()=>{ct(encodeURIComponent(Ge),ke||null)},Lt=Pt=>{Pt!==ke&&(Pe(Pt),ct(encodeURIComponent(Ge),Pt))};return h.createElement("div",{className:te()(L.input,Ue),style:I},!!Be.length&&h.createElement("div",{className:L.dropdown},h.createElement("div",{className:L.text},(ze=Be.find(Pt=>Pt.id===ke))==null?void 0:ze.name,h.createElement("i",{className:"iconfont icon-zhankai4"}),h.createElement("b",{className:L.b1}),h.createElement("b",{className:L.b2})),h.createElement("div",{className:L.menu},Be.map((Pt,cn)=>h.createElement("div",{key:cn,onClick:()=>Lt(Pt.id)},Pt.name)))),h.createElement(j.default,{onPressEnter:dt,value:Ge,onChange:Pt=>{We(Pt.target.value),nt(encodeURIComponent(Pt.target.value),ke||null)},placeholder:Z,variant:"borderless",allowClear:S,onClear:()=>ct("",ke||null)}),h.createElement("i",{onClick:dt,className:"iconfont icon-sousuo9 font14 current"}))},F={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:Be,onChange:Xe,className:ct,total:nt,pageSize:Ue,style:I={}})=>{const Z=Be<2,S=Be>=Math.ceil(nt/Ue);return nt<=Ue?h.createElement(h.Fragment,null):h.createElement("div",{className:te()(F.quickPager,ct),style:I},h.createElement("div",{onClick:()=>{Z||Xe(Be-1,"prev")},className:Z?F.disabled:""},"\u4E0A\u4E00\u9875"),h.createElement("div",{onClick:()=>{S||Xe(Be+1,"next")},className:S?F.disabled:""},"\u4E0B\u4E00\u9875"))},A={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"},Q=_(29787),ne=_(25399),ee=_(58018),oe=_(90524),ge=_(49661),me=_(96908),ot=_(57177),U=_(81378),C=_(57884),G=({className:Be,dataSource:Xe=[],col:ct=4,right:nt,bottom:Ue=23,precision:I=0,wrapWidth:Z=1200,trackEventItems:S,loading:ze})=>{const ke=Math.floor((Z-(ct-1)*nt)/ct);return h.createElement(Q.Z,{spinning:ze},h.createElement("div",{className:te()(A.list,Be)},!!Xe.length&&Xe.map((Pe,Ge)=>{const{name:We,id:dt,identifier:Lt,power:Pt,cover_image_id:cn,pic:Ne}=Pe;return h.createElement("div",{className:A.wrap,key:dt,style:{width:ke,marginRight:(1+Ge)%ct===0?0:nt+I,marginBottom:Ue}},h.createElement("a",{target:"_blank",href:`/shixuns/${Lt}/challenges`,className:A.li,onClick:Re=>{Re.preventDefault(),S&&(0,ge.L9)([S]),Pt&&(0,ge.xg)(`/shixuns/${Lt}/challenges`)}},h.createElement("div",{className:A.img},h.createElement("img",{className:A.cover,src:`${Ne}`}),Pe.is_jupyter&&h.createElement("img",{className:A.sign,src:me}),Pe.is_jupyter_lab&&h.createElement("img",{className:A.sign,src:ot}),Pe.is_unity_3d&&h.createElement("img",{className:A.sign,src:U})),h.createElement("div",{className:A.name},h.createElement(ne.Z,{title:We||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},h.createElement("span",{className:A.e},We||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),h.createElement("div",{className:A.tags},h.createElement(ne.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},h.createElement("span",null,h.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),h.createElement("span",null,Pe.challenges_count))),!!Pe.myshixuns_count&&h.createElement(ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},h.createElement("span",null,h.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),h.createElement("span",null,Pe.myshixuns_count))),h.createElement(ne.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},h.createElement("span",null,h.createElement("span",null,Pe.level))),h.createElement("div",{className:A.rate},h.createElement(ee.Z,{allowHalf:!0,disabled:!0,defaultValue:Pe.score_info}),h.createElement("span",null,"\xA0",Pe.score_info?`${Pe.score_info}\u5206`:"5\u5206")))),!Pt&&h.createElement("div",{className:A.lockWrap},h.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),h.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Xe.length&&h.createElement(C.Z,null)))},re=_(929),X={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"},y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpE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Z0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",v=_(59301),pe=({className:Be,dataSource:Xe=[],col:ct=4,right:nt,bottom:Ue=23,precision:I=0,wrapWidth:Z=1200,trackEventItems:S,loading:ze,handleVery:ke=()=>!0})=>{const Pe=Math.floor((Z-(ct-1)*nt)/ct);return v.createElement(Q.Z,{spinning:ze},v.createElement("div",{className:te()(X.list,Be)},!!Xe.length&&Xe.map((Ge,We)=>{const{subject_identifier:dt,id:Lt,identifier:Pt,power:cn}=Ge,Ne=Ge.is_public!=0&&Ge.is_public;return v.createElement("div",{className:X.wrap,key:Lt,style:{width:Pe,marginRight:(1+We)%ct===0?0:nt+I,marginBottom:Ue}},v.createElement("a",{className:X.li,onClick:Re=>{Re.preventDefault(),ke(Ge==null?void 0:Ge.first_category_url)&&(S&&(0,ge.L9)([S]),(0,ge.xg)(Ge.first_category_url))}},v.createElement("div",{className:X.top},v.createElement(ne.Z,{title:Ge.name},v.createElement("div",{className:X.name},Ge.name)),v.createElement("img",{className:X.img,src:oe.Z.IMG_SERVER+"/images/"+Ge.avatar_url}),v.createElement("div",{className:X.text,title:Ge.creator},Ge.creator),dt&&v.createElement("div",{className:X.btns},v.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),v.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ne&&v.createElement("div",{className:X.sign},"\u516C\u5F00")),v.createElement("div",{className:X.bottom},Ge.visits>0&&v.createElement(ne.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-liulanyan"}),v.createElement("span",null,Ge.visits))),Ge.course_members_count>0&&v.createElement(ne.Z,{title:"\u6210\u5458",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-chengyuan"}),Ge.course_members_count)),Ge.tasks_count>0&&v.createElement(ne.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-zuoye"}),Ge.tasks_count)),Ge.is_end?v.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):v.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ge.is_accessible&&v.createElement("div",{className:X.lockWrap},v.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),v.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Xe.length&&v.createElement(C.Z,null)))},He={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"},tt=_(76560),It=({dataSource:Be=[],value:Xe,onChange:ct,className:nt,style:Ue={},tabBarExtraContent:I})=>h.createElement("div",{className:te()(He.tabs,nt),style:Ue},h.createElement("div",{className:He.tabsWrap},Be.map((Z,S)=>!(Z!=null&&Z.hide)&&h.createElement("aside",{className:He.tab,onClick:()=>{ct(Z.id),Z.link&&tt.history.push(Z.link)},key:S},h.createElement("div",{className:Xe===Z.id?He.active:""},Z.name),(Z==null?void 0:Z.resetCount)==null&&(Z==null?void 0:Z.total)!==void 0&&h.createElement("span",null,"\uFF08",Z==null?void 0:Z.total,"\uFF09"),(Z==null?void 0:Z.resetCount)!==void 0&&(Z==null?void 0:Z.total)!==void 0&&h.createElement(ne.Z,{title:(Z==null?void 0:Z.tip)!=null?Z==null?void 0:Z.tip:""},h.createElement("span",{style:{color:"#9096A3"}},"\uFF08",h.createElement("span",{style:{color:"#000"}},Z==null?void 0:Z.resetCount),"/",h.createElement("span",null,Z==null?void 0:Z.total),"\uFF09"))))),h.createElement("div",{className:He.tabBar},I)),Ht=({className:Be,style:Xe={},children:ct})=>h.createElement("div",{className:te()(Be),style:Xe},ct),Ke={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"},en=_(75727),Tt=_(93041);const an=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var yt=({sortValue:Be,dropValue:Xe,className:ct,onSort:nt,onDrop:Ue,dataSource:I=an})=>{var Z;return h.createElement("div",{className:te()(Ke.orderWrap,ct)},h.createElement(en.Z,{dropdownRender:()=>h.createElement(Tt.default,null,I.map((S,ze)=>h.createElement(Tt.default.Item,{key:ze,onClick:()=>Ue(S.id)},S.name)))},h.createElement("span",{className:Ke.orderTextWrap},(Z=I.find(S=>Xe===S.id))==null?void 0:Z.name)),h.createElement("span",{className:Ke.orderIconWrap},h.createElement("span",{className:Ke.orderAsc},h.createElement("i",{className:Be==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ke.cursorPointer} ${Ke.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ke.cursorPointer}`,onClick:()=>nt(Be==="asc"?"desc":"asc")})),h.createElement("span",{className:Ke.orderDesc},h.createElement("i",{className:Be==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ke.cursorPointer} ${Ke.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ke.cursorPointer}`,onClick:()=>nt(Be==="asc"?"desc":"asc")}))))},Fe={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"},Ae=_(99571),V=Object.defineProperty,je=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,M=(Be,Xe,ct)=>Xe in Be?V(Be,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Be[Xe]=ct,Se=(Be,Xe)=>{for(var ct in Xe||(Xe={}))Qe.call(Xe,ct)&&M(Be,ct,Xe[ct]);if(je)for(var ct of je(Xe))J.call(Xe,ct)&&M(Be,ct,Xe[ct]);return Be},be=(Be,Xe)=>{var ct={};for(var nt in Be)Qe.call(Be,nt)&&Xe.indexOf(nt)<0&&(ct[nt]=Be[nt]);if(Be!=null&&je)for(var nt of je(Be))Xe.indexOf(nt)<0&&J.call(Be,nt)&&(ct[nt]=Be[nt]);return ct},W=(Be,Xe,ct)=>new Promise((nt,Ue)=>{var I=ze=>{try{S(ct.next(ze))}catch(ke){Ue(ke)}},Z=ze=>{try{S(ct.throw(ze))}catch(ke){Ue(ke)}},S=ze=>ze.done?nt(ze.value):Promise.resolve(ze.value).then(I,Z);S((ct=ct.apply(Be,Xe)).next())}),ye=Be=>{var Xe=Be,{className:ct,style:nt,children:Ue,loading:I=!1,openLoading:Z,onClick:S=()=>{},size:ze="middle",shape:ke="round"}=Xe,Pe=be(Xe,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ge,We]=(0,h.useState)(!1);return h.createElement(Ae.ZP,Se({onClick:(0,o.throttle)(dt=>W(void 0,null,function*(){Z&&We(!0);try{yield S(dt)}catch(Lt){console.log("error",Lt)}Z&&We(!1)}),2e3,{leading:!0,trailing:!1}),className:te()(Fe.btn,Fe[`${ze}-${ke}`],ct),style:nt,size:ze,shape:ke,loading:Ge||I},Pe),Ue)},et={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:Be,style:Xe,children:ct=null,onClick:nt,title:Ue})=>h.createElement("div",{className:te()(et.head,Be),style:Xe},h.createElement("span",{className:"primary-hover",onClick:nt},h.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),h.createElement("b",{title:Ue},Ue),h.createElement("div",{className:et.node},ct)),Ye={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"},de=({confirmShow:Be=!0,confirmTitle:Xe,confirmClick:ct,cancelShow:nt=!0,cancelTitle:Ue,cancelClick:I,className:Z,style:S,confirmLoading:ze=!1})=>h.createElement("div",{className:te()(Ye.btns,Z),style:S},Be&&h.createElement(Ae.ZP,{loading:ze,onClick:ct,type:"primary",className:Ye.confirm},Xe),nt&&h.createElement(Ae.ZP,{onClick:I,className:Ye.cancel},Ue)),K={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"},Le=({className:Be,style:Xe={},LeftContent:ct,children:nt,RightContent:Ue})=>h.createElement("div",{className:te()(K.fixedBottom,Be),style:Xe},h.createElement("div",{className:K.wrap},h.createElement("div",{className:K.left},ct),h.createElement("div",{className:K.center},nt),h.createElement("div",{className:K.right},Ue))),De={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"},st=({className:Be,style:Xe={},dataSource:ct=[]})=>h.createElement("div",{className:te()(De.crumbs,Be),style:Xe},ct.map((nt,Ue)=>Ue<ct.length-1?h.createElement(h.Fragment,{key:Ue},nt.path||nt.onClick?h.createElement("span",{className:De.hover,onClick:nt!=null&&nt.onClick?nt.onClick:()=>tt.history.push(nt.path)},nt.name):h.createElement("span",null,nt.name),h.createElement("span",null,"\xA0",">","\xA0")):h.createElement("span",{key:Ue,style:{color:"#5F6368"}},nt.name))),at=_(11938),Oe=Object.defineProperty,Et=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ve=(Be,Xe,ct)=>Xe in Be?Oe(Be,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Be[Xe]=ct,Ee=(Be,Xe)=>{for(var ct in Xe||(Xe={}))Bt.call(Xe,ct)&&ve(Be,ct,Xe[ct]);if(St)for(var ct of St(Xe))se.call(Xe,ct)&&ve(Be,ct,Xe[ct]);return Be},k=(Be,Xe)=>Et(Be,Vt(Xe)),Y=(Be,Xe)=>{var ct={};for(var nt in Be)Bt.call(Be,nt)&&Xe.indexOf(nt)<0&&(ct[nt]=Be[nt]);if(Be!=null&&St)for(var nt of St(Be))Xe.indexOf(nt)<0&&se.call(Be,nt)&&(ct[nt]=Be[nt]);return ct};const{Countdown:he}=at.default;var xe=Be=>{var Xe=Be,{onChange:ct}=Xe,nt=Y(Xe,["onChange"]);const[Ue,I]=(0,h.useState)(null);(0,h.useEffect)(()=>{typeof Ue=="number"&&Ue>=0&&ct(Ue)},[Ue]);const Z=S=>{const ze=Math.floor(S/1e3);I(ze)};return h.createElement(he,k(Ee({},nt),{onChange:Z}))}},16561:function(In,Gt,_){"use strict";_.r(Gt),_.d(Gt,{default:function(){return Bt}});var h=_(59301),ue=_(76560),z=_(38394),ae=_(57309),B=_.n(ae),d=_(75727),_e=_(99571),te=_(6767),o=_(62957),g=_(93041),w=_(62673),p=_(77019),E=_(5269),x=_(82326),L=_(37568),j=_(20554),$=_(54172),le=_(84022),F=_(25399),H=_(90524),D=_(82093),A={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"},Q=_(34055),ne=Object.defineProperty,ee=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(se,ve,Ee)=>ve in se?ne(se,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ve]=Ee,ot=(se,ve)=>{for(var Ee in ve||(ve={}))oe.call(ve,Ee)&&me(se,Ee,ve[Ee]);if(ee)for(var Ee of ee(ve))ge.call(ve,Ee)&&me(se,Ee,ve[Ee]);return se};const U=se=>React.createElement("svg",ot({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},se),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-.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ODBTOUI6OUqZaYCueXfh+xdwXoNc+K2BMXkU+3R++k6vvu537O5bMO4x1mD27eWL+OP9pHuEb/gJAEGeu46bJbVx78BCvGY1VGlszlB98zvtvf8pPKQvpbgvKEbCD2mhgAJ+j6w7T7pAhybVg5LknuWvqEnYWJZkLmNKSTV/Fnssv5ZbWHN8e+oFvUwZ238CNjSlu/OU3vpr9HwczQ6klNs8o537n+3+9yicuskKgqNco2wmwwA1SB30BWi3UbImaqqPbEaMyMueoOcHIP5/iESGZtJYsiU8QzmP+cS23JsGtYzQTQGM7MwnouyN8mSxkFGXKgjGUMTD//Cu8pSMrWtPxJWVdYOfauOkM32jgNyrkMwaIgjwEakZTe/FZHneeuvVktiRLLdV7jA/o3ddzcxK+urU+RvPQj3ytUg2oqnWajDKBaEV737953To6UtIRkeLCATzD4y6eI4Cgve+lCwgwdBbqdqGhLeLz2UYntnLll00OXNA2unrWHdYLWeogezdjK5Fa6J3Vhu6stxJJfHc3OpSbuV6A7mFmKLfTqzYa1gPNqbIwVEfKLkBa09Z6KA/164p5dcgwVGOV9VlIj4dusHUqiNSZhma02J0uDPVwt3dEMrTj9V6IXlt1nx+aPzjWg5wK5lTv6X2u38iw3+e7r/edjQ76RZv1vosAmxX5ixba7Mj/bTLwJ/OqjXyXcOSkAAAAAElFTkSuQmCC",It=_(92890),Ft=_(28284),Ht=_(17149),Ke=_(69219),en=_(13747),Tt={flex_box_center:"flex_box_center___bce7B",flex_space_between:"flex_space_between____RQOw",flex_box_vertical_center:"flex_box_vertical_center___AjElL",flex_box_center_end:"flex_box_center_end___ygYIN",flex_box_column:"flex_box_column___lF_tQ",scoremodal:"scoremodal___rmaM8",selectWrapper:"selectWrapper___mvLB7",selectWrappers:"selectWrappers___eCA2w",allqingchu:"allqingchu___qrQxW",title:"title___uaw5Z",score:"score___uJAQp",close:"close___uQVq5",content:"content___JN0bk",items:"items___foPGY",bottom:"bottom___h0Pda",yes:"yes___Et867",no:"no___lWWYt",titlecount:"titlecount___MgcDd",add:"add___NJkmt",search:"search___lc68N",searchIcon:"searchIcon___BUJdX",tabWrap:"tabWrap___KEQVE",previewModal:"previewModal___i8Vh9",q_title:"q_title___k3hA1"},an=_(37798),qe={flex_box_center:"flex_box_center___IzcTw",flex_space_between:"flex_space_between___TfxiX",flex_box_vertical_center:"flex_box_vertical_center___nDt60",flex_box_center_end:"flex_box_center_end___vHxrY",flex_box_column:"flex_box_column___N9hFV",warp:"warp___CY8df",shixunbutton:"shixunbutton___tmPbr",redio:"redio___mNtYw",redioitem:"redioitem___N2pTb",redioitemyes:"redioitemyes___ooLYK",title:"title___r3t31",titleyes:"titleyes___JiOuB",yestag:"yestag___Yj1nT",qcount:"qcount___b_Lg3",score:"score___Iq_OQ",qtitle:"qtitle___E0xrA",checkbox:"checkbox___p5WZq",checkboxitem:"checkboxitem___Kja1N",checkboxitemyes:"checkboxitemyes___zCxhF",bottom:"bottom___Dg53A",bottomitem:"bottomitem___mx8gr",left:"left___GO9h4",right:"right___IIyn8",completion:"completion___puFVe",content:"content___QCTZ8",items:"items___DN6om",simple:"simple___CjHXs",shixun:"shixun___I_Hrz",combination:"combination___xkm7F",program:"program___FiUNV"},yt=_(24334);const Fe=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var V=({qitem:se})=>{var ve,Ee,k,Y,he,ce,xe,Be,Xe,ct;return h.createElement("div",{className:qe.warp},h.createElement("div",{className:qe.mainPart},h.createElement("div",{className:qe.qcount},(se==null?void 0:se.question_type)===8&&h.createElement(z.Z,{className:qe.content,showProgramFill:!0,value:(ve=se==null?void 0:se.program_attr)==null?void 0:ve.description}),(se==null?void 0:se.question_type)!=8&&h.createElement(z.Z,{className:qe.qtitle,value:(se==null?void 0:se.name)||(se==null?void 0:se.title)})),((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&h.createElement("div",null,(Ee=se==null?void 0:se.choices)==null?void 0:Ee.map((nt,Ue)=>h.createElement("div",{className:qe.redio},!(nt!=null&&nt.is_answer)&&h.createElement("span",{className:qe.redioitem}),(nt==null?void 0:nt.is_answer)&&h.createElement("i",{className:`${qe.redioitemyes} icon-duigou1`}),h.createElement(z.Z,{className:nt!=null&&nt.is_answer?qe.titleyes:qe.title,value:Fe[Ue]+(nt==null?void 0:nt.choice_text)}),(nt==null?void 0:nt.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&h.createElement("div",null,(k=se==null?void 0:se.choices)==null?void 0:k.map((nt,Ue)=>h.createElement("div",{className:qe.checkbox},!(nt!=null&&nt.is_answer)&&h.createElement("span",{className:qe.checkboxitem}),(nt==null?void 0:nt.is_answer)&&h.createElement("i",{className:`${qe.checkboxitemyes} icon-duigou1`}),h.createElement(z.Z,{className:nt!=null&&nt.is_answer?qe.titleyes:qe.title,value:Fe[Ue]+(nt==null?void 0:nt.choice_text)}),(nt==null?void 0:nt.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&h.createElement("div",{className:qe.completion},(Y=se==null?void 0:se.standard_answer)==null?void 0:Y.map((nt,Ue)=>{var I;return h.createElement("div",{style:{display:"flex"}},h.createElement("span",{className:qe.title},"\u586B\u7A7A\u9879",Ue+1),h.createElement("div",{className:qe.content},(I=nt==null?void 0:nt.answer_text)==null?void 0:I.map((Z,S)=>h.createElement("div",{className:qe.items},Z))))})),(se==null?void 0:se.question_type)===4&&h.createElement("div",{className:qe.simple},h.createElement("div",{className:qe.title},"\u53C2\u8003\u7B54\u6848"),h.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(he=se==null?void 0:se.answer_texts)!=null&&he[0]?h.createElement(z.Z,{className:qe.content,value:(ce=se==null?void 0:se.answer_texts)==null?void 0:ce[0]}):h.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(se==null?void 0:se.question_type)===5&&((xe=se==null?void 0:se.challenge_names)==null?void 0:xe.map((nt,Ue)=>h.createElement("div",{className:qe.shixun},h.createElement("span",{className:qe.qtitle},h.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,tt.EM)(Ue+1),"\u9898"),nt)))),(se==null?void 0:se.question_type)===6&&h.createElement("div",{className:qe.program},h.createElement(z.Z,{className:qe.content,value:((Be=se==null?void 0:se.program_attr)==null?void 0:Be.description)||"- -"})),(se==null?void 0:se.question_type)===7&&((Xe=se==null?void 0:se.sub_item_banks)==null?void 0:Xe.map((nt,Ue)=>{var I,Z,S,ze,ke;return h.createElement("div",null,h.createElement("div",{className:qe.combination},h.createElement("span",{className:qe.qtitle},nt==null?void 0:nt.name)),h.createElement("div",{className:qe.warp,style:{padding:"0px",paddingTop:20}},h.createElement("div",null,((nt==null?void 0:nt.item_type)=="SINGLE"||(nt==null?void 0:nt.item_type)=="JUDGMENT")&&((I=nt==null?void 0:nt.choices)==null?void 0:I.map((Pe,Ge)=>h.createElement("div",{className:qe.redio},!(Pe!=null&&Pe.is_answer)&&h.createElement("span",{className:qe.redioitem}),(Pe==null?void 0:Pe.is_answer)&&h.createElement("i",{className:`${qe.redioitemyes} icon-duigou1`}),h.createElement(z.Z,{className:Pe!=null&&Pe.is_answer?qe.titleyes:qe.title,value:Fe[Ge]+(Pe==null?void 0:Pe.choice_text)}),(Pe==null?void 0:Pe.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(nt==null?void 0:nt.item_type)=="MULTIPLE"&&((Z=nt==null?void 0:nt.choices)==null?void 0:Z.map((Pe,Ge)=>h.createElement("div",{className:qe.checkbox},!(Pe!=null&&Pe.is_answer)&&h.createElement("span",{className:qe.checkboxitem}),(Pe==null?void 0:Pe.is_answer)&&h.createElement("i",{className:`${qe.checkboxitemyes} icon-duigou1`}),h.createElement(z.Z,{className:Pe!=null&&Pe.is_answer?qe.titleyes:qe.title,value:Fe[Ge]+(Pe==null?void 0:Pe.choice_text)}),(Pe==null?void 0:Pe.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(nt==null?void 0:nt.item_type)=="COMPLETION"&&h.createElement("div",{className:qe.completion},(S=nt==null?void 0:nt.standard_answer)==null?void 0:S.map((Pe,Ge)=>{var We;return h.createElement("div",{style:{display:"flex"}},h.createElement("span",{className:qe.title},"\u586B\u7A7A\u9879",Ge+1),h.createElement("div",{className:qe.content},(We=Pe==null?void 0:Pe.answer_text)==null?void 0:We.map((dt,Lt)=>h.createElement("div",{className:qe.items},dt))))})),(nt==null?void 0:nt.item_type)=="SUBJECTIVE"&&h.createElement("div",{className:qe.simple},h.createElement("div",{className:qe.title},"\u53C2\u8003\u7B54\u6848"),h.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(ze=nt==null?void 0:nt.answer_texts)!=null&&ze[0]?h.createElement(z.Z,{className:qe.content,value:(ke=nt==null?void 0:nt.answer_texts)==null?void 0:ke[0]}):h.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(se==null?void 0:se.question_type)===8&&h.createElement("div",null,h.createElement(z.Z,{disabledFill:!0,className:qe.content,showProgramFill:!0,value:yt.Base64.decode(((ct=se==null?void 0:se.program_attr)==null?void 0:ct.code)||"")})),(se==null?void 0:se.question_type)===5&&h.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},h.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},h.createElement("div",{style:{marginRight:30}},h.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),h.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_name)||"- -")),h.createElement("div",{style:{marginRight:30}},h.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),h.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_school_name)||"- -")),h.createElement("div",{style:{marginRight:30}},h.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),h.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.study_count)||"0"))),h.createElement("a",{className:qe.shixunbutton,href:`/shixuns/${se==null?void 0:se.identifier}/challenges?exercise=true`,target:"_blank"},h.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&h.createElement("div",{className:qe.bottom},h.createElement("div",{className:qe.bottomitem},h.createElement("span",{className:qe.left},"\u89E3\u6790"),h.createElement("span",{className:qe.right},se!=null&&se.analysis?h.createElement(z.Z,{value:se==null?void 0:se.analysis}):h.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),h.createElement("div",{className:qe.bottomitem},h.createElement("span",{className:qe.left},"\u96BE\u5EA6"),h.createElement("span",{className:qe.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),h.createElement("div",{className:qe.bottomitem},h.createElement("span",{className:qe.left},"\u77E5\u8BC6\u70B9"),h.createElement("span",{className:qe.right},se!=null&&se.tag_discipline?se==null?void 0:se.tag_discipline:h.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},je=_(11237),Qe=_(9164),J=_(61485),M=_(84216),Se=_(70610),be=_(59301),W=Object.defineProperty,fe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ye=(se,ve,Ee)=>ve in se?W(se,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ve]=Ee,lt=(se,ve)=>{for(var Ee in ve||(ve={}))Ve.call(ve,Ee)&&Ye(se,Ee,ve[Ee]);if(et)for(var Ee of et(ve))$e.call(ve,Ee)&&Ye(se,Ee,ve[Ee]);return se},de=(se,ve)=>fe(se,ye(ve)),K=(se,ve,Ee)=>new Promise((k,Y)=>{var he=Be=>{try{xe(Ee.next(Be))}catch(Xe){Y(Xe)}},ce=Be=>{try{xe(Ee.throw(Be))}catch(Xe){Y(Xe)}},xe=Be=>Be.done?k(Be.value):Promise.resolve(Be.value).then(he,ce);xe((Ee=Ee.apply(se,ve)).next())});const N=({setScoreShow:se,ScoreShow:ve,onOk:Ee,isshixuns:k,isloadings:Y,dispatch:he,isIntelligentAssistant:ce=!1,ispptModal:xe=!1,isChangeQuestion:Be=!1,newExercisePaper:Xe,shixunsDetail:ct})=>{var nt,Ue,I;let[Z,S]=(0,h.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:"PROGRAM",per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:ce,is_smart_plan:xe,group_id:[]}),[ze,ke]=(0,h.useState)([]),[Pe,Ge]=(0,h.useState)([]),[We,dt]=(0,h.useState)([]),[Lt,Pt]=(0,h.useState)([]);const[cn,Ne]=(0,h.useState)(!1),[Re]=Ft.default.useForm(),[gt,pt]=(0,h.useState)(),[Mt,xt]=(0,h.useState)(!1);let[At,Kt]=(0,h.useState)(k);const[nn,Ot]=(0,h.useState)([]),[dn,Qt]=(0,h.useState)(0),[$t,Dt]=(0,h.useState)(!0),[Ze,_t]=(0,h.useState)([]),[Ct,kt]=(0,h.useState)([]),qt=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],it=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[ln,En]=(0,h.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const Tn=(0,h.useRef)(new Set),wn=(0,h.useRef)(new Set),Yn=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Cn=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Zn=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Nn,Pn]=(0,h.useState)(!1),Dn=()=>{Re.resetFields(),At=!1,Kt(!1),Pn(!1),Re.submit()};(0,h.useEffect)(()=>{var Te,Ie,ut,mt,ft,zt,Wt,Rt,vt,bt;(((ut=(Ie=(Te=Xe==null?void 0:Xe.editData)==null?void 0:Te.exercise)==null?void 0:Ie.exist_item_bank_ids)==null?void 0:ut.length)>0||((zt=(ft=(mt=Xe==null?void 0:Xe.editData)==null?void 0:mt.exercise)==null?void 0:ft.exist_item_bank_shixun_ids)==null?void 0:zt.length)>0)&&kt([...(Rt=(Wt=Xe==null?void 0:Xe.editData)==null?void 0:Wt.exercise)==null?void 0:Rt.exist_item_bank_ids,...(bt=(vt=Xe==null?void 0:Xe.editData)==null?void 0:vt.exercise)==null?void 0:bt.exist_item_bank_shixun_ids])},[(Ue=(nt=Xe==null?void 0:Xe.editData)==null?void 0:nt.exercise)==null?void 0:Ue.exist_item_bank_ids]),(0,h.useEffect)(()=>{ve&&(Re.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),$t&&At&&(Re.setFieldsValue({item_type:"SHIXUN"}),Z.item_type="SHIXUN",S(lt({},Z)),Dt(!1)),vn(Z),Ln(),hn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[ve]),(0,h.useEffect)(()=>{dn>0&&setTimeout(()=>{Qt(0)},2e3)},[dn]);function vn(Te){return K(this,null,function*(){var Ie,ut,mt;if(Ne(!0),S(lt({},Te)),(We==null?void 0:We.length)<=0&&Te.type==="5"){Pt([]),Ne(!1);return}console.log("----",We,nn);let ft=Te.type==="5"?We==null?void 0:We.filter(Rt=>!nn.includes(Rt)):null,zt=Te.type==="5"?We==null?void 0:We.filter(Rt=>nn.includes(Rt)):null,Wt=yield(0,D.ZP)("/api/item_banks.json",{method:"get",params:de(lt({},Te),{discipline_id:((Ie=Te==null?void 0:Te.courseid)==null?void 0:Ie[0])||null,sub_discipline_id:((ut=Te==null?void 0:Te.courseid)==null?void 0:ut[1])||null,ids:ft,shixun_ids:zt,include_shixuns:!ce,group_id:((mt=Te.group_id)==null?void 0:mt.map(Rt=>Rt==null?void 0:Rt.value))||null,keyword:Te.keyword?encodeURIComponent(Te.keyword):Te.keyword,type:Te.type==="5"?null:Te.type,clazz:Te.type==="3"?"ItemBanksGroup":null})});Pt(Wt),Ne(!1)})}function Ln(){return K(this,null,function*(){let Te=yield(0,D.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Z.type==="5"?null:Z.type,clazz:"ItemBanksGroup"}});ke((0,an.L)(Te==null?void 0:Te.disciplines))})}function hn(Te){return K(this,null,function*(){var Ie;let ut=yield(0,D.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Te}),mt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Ie=ut==null?void 0:ut.data)==null?void 0:Ie.map(ft=>({title:ft.name,id:ft.id,pid:ft.id,value:ft.id,key:ft.id,isLeaf:!ft.have_child}))}];_t(mt)})}function yn(Te){return K(this,null,function*(){var Ie,ut,mt,ft;Ne(!0);let zt=(Ie=Te.list)==null?void 0:Ie.filter(vt=>!nn.includes(vt)),Wt=(ut=Te.list)==null?void 0:ut.filter(vt=>nn.includes(vt));if(zt.length===0&&Wt.length===0){Ne(!1),Pt([]);return}let Rt=yield(0,D.ZP)("/api/item_banks.json",{method:"get",params:de(lt({},Te),{discipline_id:((mt=Te==null?void 0:Te.courseid)==null?void 0:mt[0])||null,sub_discipline_id:((ft=Te==null?void 0:Te.courseid)==null?void 0:ft[1])||null,ids:zt,shixun_ids:Wt,type:Te.type==="5"?null:Te.type,clazz:Te.type==="3"?"ItemBanksGroup":null})});Ne(!1),Pt(Rt)})}const Rn=Te=>K(void 0,null,function*(){const Ie=yield he({type:"shixunsDetail/release",payload:{id:Te}});let ut=Ie==null?void 0:Ie.tag_position,mt=(Ie==null?void 0:Ie.evaluation_set_position)||[],ft=Ie.status;return ft===0?(te.ZP.success("\u53D1\u5E03\u6210\u529F"),vn(Z),!0):(ft===2?te.ZP.error(`\u7B2C${mt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):ft===3?te.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${ut.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):te.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Mn=Te=>(Te==null?void 0:Te.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Bn=(Te,Ie,ut)=>Te.map(mt=>mt.key===Ie?lt(lt({},mt),ut):mt.children?de(lt({},mt),{children:Bn(mt.children,Ie,ut)}):mt),zn=Te=>K(void 0,null,function*(){const{key:Ie}=Te;let ut=Z.type;const mt=yield(0,Se.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Ie),type:ut}),{data:ft,total_count:zt}=mt||{};zt>0&&_t(Wt=>Bn(Wt,Ie,{children:ft.map(Rt=>({title:Rt.name,id:Rt.id,pid:Rt.id,value:Rt.id,key:Rt.id,isLeaf:!Rt.have_child}))}))});function pr(Te){Te==="0"&&(ln.wcjd=lt({},Z)),Te==="5"&&(ln.yx=lt({},Z)),En(lt({},ln))}function Me(){Z.type==="1"&&(Z=ln.gg),Z.type==="2"&&(Z=ln.scj),Z.type==="3"&&(Z=ln.ttgx),Z.type==="0"&&(Z=ln.wcjd),Z.type==="5"&&(Z=ln.yx),At=!1,Kt(!1),Re.setFieldsValue(lt({},Z)),S(lt({},Z)),vn(lt({},Z))}return be.createElement("div",null,be.createElement(o.default,{title:!1,footer:!1,open:ve,width:1200,centered:!0,className:Tt.scoremodal,onCancel:()=>{se(!1)}},be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement("div",{className:Tt.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),be.createElement(j.default,{className:Tt.tabWrap,activeKey:Z.type,onChange:Te=>{Z.show_all_share=null,Te==="0"&&hn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),pr(Z.type),Z.type=Te,Pn(!1),Z.type==="5"&&(At=!1,Kt(!1)),Me(),Ln()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:be.createElement("div",null,"\u5DF2\u9009",We.length>0&&be.createElement("span",{className:Tt.titlecount},We.length),dn>0&&be.createElement("span",{className:Tt.add},"+",dn)),key:"5"}]}),be.createElement(Ft.default,{layout:"inline",form:Re,onValuesChange:(Te,Ie)=>{const ut=Object.values(Ie).some(ft=>ft!==null&&ft!==""&&ft!==void 0),mt=Ie.keyword==="";Pn(ut||!mt),Z.page=1,Te!=null&&Te.courseid&&Re.setFieldsValue({tag_discipline_id:""}),Kt(!1),!(Te.keyword||Te.keyword==="")&&Re.submit()},onFinish:Te=>{var Ie;Z.type==="3"&&(!Te.group_id||((Ie=Te==null?void 0:Te.group_id)==null?void 0:Ie.length)===0)?Z.show_all_share=!0:Z.show_all_share=null,S(lt(lt({},Z),Te)),vn(lt(lt({},Z),Te))}},be.createElement(Ft.default.Item,{name:"courseid"},be.createElement(Ht.Z,{className:Tt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:ze})),!At&&be.createElement(Ft.default.Item,{name:"tag_discipline_id"},be.createElement(x.default,{className:Tt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(I=Lt==null?void 0:Lt.tag_disciplines)==null?void 0:I.map(Te=>be.createElement(x.default.Option,{key:Te.id},Te.name)))),be.createElement(Ft.default.Item,{name:At?"diff":"difficulty"},be.createElement(x.default,{className:Tt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},Yn.map(Te=>be.createElement(x.default.Option,{key:Te.value},Te.name)))),At&&be.createElement(Ft.default.Item,{name:"shixun_publish_status"},be.createElement(x.default,{className:Tt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Zn.map(Te=>be.createElement(x.default.Option,{key:Te.value},Te.name)))),(Z.type==="3"||Z.type==="0")&&!At&&be.createElement(Ft.default.Item,{name:"group_id"},be.createElement(Ke.default,{treeDataSimpleMode:!0,style:{width:118},className:Tt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Te,Ie)=>Ie.title.toUpperCase().indexOf(Te.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:zn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ze})),Nn&&be.createElement("span",{className:Tt.allqingchu,onClick:Dn},be.createElement("i",{className:"iconfont icon-guanbi4"}),be.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),be.createElement(Ft.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},be.createElement(L.default.Search,{className:Tt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:be.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Tt.searchIcon}`,onClick:()=>Re.submit()}),onSearch:Te=>{Re.submit()}}))),be.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},be.createElement("div",{onClick:()=>{Z.updated_at==="asc"?Z.updated_at="desc":Z.updated_at="asc",S(de(lt({},Z),{page:1})),vn(de(lt({},Z),{page:1}))}}," ",Z.updated_at?be.createElement("img",{src:Z.updated_at==="asc"?je.Z:Qe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),be.createElement("div",{onClick:()=>{Z.quotes==="asc"?Z.quotes="desc":Z.quotes="asc",S(de(lt({},Z),{page:1})),vn(de(lt({},Z),{page:1}))},style:{marginLeft:20}}," ",Z.quotes?be.createElement("img",{src:Z.quotes==="asc"?je.Z:Qe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),be.createElement($.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Lt==null?void 0:Lt.items)||(Lt==null?void 0:Lt.shixun_list),pagination:!1,loading:cn,rowKey:Te=>Te.id,rowSelection:{type:"checkbox",selectedRowKeys:Pe,getCheckboxProps:Te=>({disabled:Te==null?void 0:Te.added_to_practice}),onSelect(Te,Ie,ut){if(Ie)(At||Te!=null&&Te.challenge_names)&&Ot([...nn,Te.id]),Ge([...Pe,Te.id]),Te.identifier?Tn.current.add(Te.id):wn.current.add(Te.id),Qt(1),dt([...We,Te.id]);else{Te.identifier?Tn.current.delete(Te.id):wn.current.delete(Te.id);let mt=We.filter(ft=>ft!==Te.id);if(Ge(mt),dt(mt),At||Te!=null&&Te.challenge_names){let ft=nn.filter(zt=>zt!==Te.id);Ot([...ft])}if(Z.type==="5"){yn(de(lt({},Z),{list:[...mt]}));return}}},onSelectAll(Te,Ie,ut){var mt,ft;if(Te){const zt=ut.map(Rt=>Rt.id),Wt=(ft=ut==null?void 0:ut.filter(Rt=>Rt==null?void 0:Rt.challenge_names))==null?void 0:ft.map(Rt=>Rt.id);Ot([...nn,...Wt]),Ge([...Pe,...zt]),dt([...We,...zt]);for(const Rt of ut)Rt.identifier?Tn.current.add(Rt.id):wn.current.add(Rt.id)}else{const zt=ut.map(bt=>bt.id),Wt=Pe.filter(bt=>!zt.some(Nt=>Nt===bt)),Rt=(mt=ut==null?void 0:ut.filter(bt=>bt==null?void 0:bt.challenge_names))==null?void 0:mt.map(bt=>bt.id);Ge([...Wt]),dt([...Wt]);let vt=nn.filter(bt=>!Rt.some(Nt=>Nt===bt.id));Ot([...vt]),Z.type==="5"&&yn(de(lt({},Z),{list:[...Wt]}));for(const bt of zt)bt.identifier?Tn.current.delete(bt):wn.current.delete(bt)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Te,Ie,ut)=>{var mt,ft;return be.createElement(F.Z,{title:Mn(Ie)},be.createElement("div",null,At||Ie!=null&&Ie.challenge_names?"\u5B9E\u8BAD\u9898":(ft=(mt=qt==null?void 0:qt.filter(zt=>zt.value===Te))==null?void 0:mt[0])==null?void 0:ft.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:At?"30%":"60%",key:"name",render:(Te,Ie,ut)=>{var mt;return be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement(F.Z,{title:Mn(Ie)},be.createElement("div",{className:Ie!=null&&Ie.high_resources_consume?Tt.q_title:""},be.createElement(z.Z,{key:1,showLines:1,showTextOnly:!0,value:At||Ie!=null&&Ie.challenge_names?Ie!=null&&Ie.title||Te===null?"--":Te:(Ie==null?void 0:Ie.item_type)=="BPROGRAM"?(mt=Ie==null?void 0:Ie.program_attr)==null?void 0:mt.description:Te}))),(Ie==null?void 0:Ie.high_resources_consume)&&be.createElement(M.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!At,render:(Te,Ie,ut)=>{var mt;return be.createElement(F.Z,{title:Mn(Ie)},be.createElement("span",null,Te?(mt=Te==null?void 0:Te.split("\u3001"))==null?void 0:mt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!At,render:(Te,Ie,ut)=>be.createElement(F.Z,{title:Mn(Ie)},be.createElement("span",null,Te||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Te,Ie,ut)=>{var mt,ft,zt,Wt;return be.createElement(F.Z,{title:Mn(Ie)},be.createElement("div",null,At||Ie!=null&&Ie.challenge_names?(Ie==null?void 0:Ie.level)||((ft=(mt=Yn==null?void 0:Yn.filter(Rt=>Rt.value===Te))==null?void 0:mt[0])==null?void 0:ft.name):(Wt=(zt=Yn==null?void 0:Yn.filter(Rt=>Rt.value===Te))==null?void 0:zt[0])==null?void 0:Wt.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!At,render:(Te,Ie,ut)=>be.createElement(F.Z,{title:Mn(Ie)},be.createElement("div",null,Te||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Te,Ie,ut)=>be.createElement(F.Z,{title:Mn(Ie)},be.createElement("div",null,At||Ie!=null&&Ie.challenge_names?(Ie==null?void 0:Ie.study_count)||(Ie==null?void 0:Ie.stu_num):Te))},{title:be.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",be.createElement(F.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},be.createElement(J.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!At,render:(Te,Ie,ut)=>be.createElement(F.Z,{title:Mn(Ie)},be.createElement("div",null,Te||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Te,Ie,ut)=>be.createElement(F.Z,{title:Mn(Ie)},be.createElement("div",{style:{flex:1,textAlign:"start"}},be.createElement("a",{onClick:()=>{var mt,ft;pt(de(lt({},Ie),{question_type:At||Ie!=null&&Ie.challenge_names?5:(ft=(mt=qt==null?void 0:qt.filter(zt=>zt.value===(Ie==null?void 0:Ie.item_type)))==null?void 0:mt[0])==null?void 0:ft.question_type})),xt(!0)}},"\u67E5\u770B"),(Ie==null?void 0:Ie.shixun_tag_num)===1&&be.createElement("a",{style:{marginLeft:10},onClick:()=>{o.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:be.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",be.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Ie==null?void 0:Ie.identifier}/challenges`)}},(Ie==null?void 0:Ie.shixun_name)||"--"),"\uFF1F"),onOk:()=>K(void 0,null,function*(){if(!Rn(Ie==null?void 0:Ie.identifier))return new Promise((mt,ft)=>{ft()})})})}},"\u53D1\u5E03")))}].filter(Te=>!Te.hidden)}),be.createElement(en.Z,{current:Z.page,total:(Lt==null?void 0:Lt.items_count)||(Lt==null?void 0:Lt.shixuns_count),style:{marginBottom:20},defaultPageSize:Z.per_page,showTotal:Te=>be.createElement("span",null,"\u5171\xA0",be.createElement("span",{style:{color:"#165DFF"}},Te),"\xA0\u6761\u6570\u636E"),pageSize:Z.per_page,onChange:(Te,Ie)=>{Z.page=Te,Z.per_page=Ie,S(lt({},Z)),vn(lt({},Z))}}),be.createElement("div",{className:Tt.bottom},be.createElement(_e.ZP,{className:Tt.no,onClick:()=>{se(!1)}},"\u53D6\u6D88"),be.createElement(_e.ZP,{loading:Y,style:{width:Y&&75},className:Tt.yes,onClick:()=>K(void 0,null,function*(){if((We==null?void 0:We.length)<=0){te.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Ee([...wn.current],[...Tn.current],!0,We==null?void 0:We.length)})},"\u786E\u8BA4"))),be.createElement(o.default,{open:Mt,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Tt.previewModal,width:1e3,centered:!0,onCancel:()=>{xt(!1)},onOk:()=>{xt(!1)}},be.createElement(V,{qitem:gt})))};var Le=(0,ue.connect)(({shixunsDetail:se,newExercisePaper:ve})=>({shixunsDetail:se,newExercisePaper:ve}))(N),De=Object.defineProperty,Ce=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Oe=(se,ve,Ee)=>ve in se?De(se,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ve]=Ee,Et=(se,ve)=>{for(var Ee in ve||(ve={}))st.call(ve,Ee)&&Oe(se,Ee,ve[Ee]);if(Ce)for(var Ee of Ce(ve))at.call(ve,Ee)&&Oe(se,Ee,ve[Ee]);return se},Vt=(se,ve,Ee)=>new Promise((k,Y)=>{var he=Be=>{try{xe(Ee.next(Be))}catch(Xe){Y(Xe)}},ce=Be=>{try{xe(Ee.throw(Be))}catch(Xe){Y(Xe)}},xe=Be=>Be.done?k(Be.value):Promise.resolve(Be.value).then(he,ce);xe((Ee=Ee.apply(se,ve)).next())});const St=({globalSetting:se,user:ve,dispatch:Ee})=>{var k,Y,he,ce,xe,Be,Xe,ct,nt,Ue,I,Z,S,ze,ke,Pe,Ge,We;const[dt]=(0,ue.useSearchParams)(),Lt=(0,ue.useLocation)(),Pt={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:dt.get("tab")||"public"},[cn,Ne]=(0,h.useState)(0),[Re,gt]=(0,h.useState)(0),[pt,Mt]=(0,h.useState)(0),[xt,At]=(0,h.useState)([]),[Kt,nn]=(0,h.useState)([]),[Ot,dn]=(0,h.useState)({}),[Qt,$t]=(0,h.useState)(!1),[Dt,Ze]=(0,h.useState)([]),[_t,Ct]=(0,h.useState)(!0),[kt,qt]=(0,h.useState)(null);let[it,ln]=(0,h.useState)(Pt);const En=(0,h.useRef)(null),Tn=(0,h.useRef)(null),[wn,Yn]=(0,h.useState)([]),Cn=(0,h.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(it.filter),[it.filter]),[Zn,Nn]=(0,h.useState)(!1),[Pn,Dn]=(0,h.useState)(!1),[vn,Ln]=(0,h.useState)(""),[hn,yn]=(0,h.useState)([]),[Rn,Mn]=(0,h.useState)(!1),[Bn,zn]=(0,h.useState)([]),[pr,Me]=(0,h.useState)(!1),[Te,Ie]=(0,h.useState)(!1),[ut,mt]=(0,h.useState)(null),ft=ve.userInfo.identity==="teacher",zt=(Je,Jt,on)=>Vt(void 0,null,function*(){var jt,mn,Kn,rr;Je.persist(),(mn=(jt=Je==null?void 0:Je.target)==null?void 0:jt.style)!=null&&mn.pointerEvents&&(Je.target.style.pointerEvents="none");const Qn=yield(0,D.ZP)(`/api/practices/${Jt.identifier}/start`,{method:"get"});if((Qn==null?void 0:Qn.status)===0){if(on){(0,tt.xg)(`/problems/${Qn==null?void 0:Qn.identifier}/oj/${Jt==null?void 0:Jt.identifier}?tab=3`);return}(0,tt.xg)(`/problems/${Qn==null?void 0:Qn.identifier}/oj/${Jt==null?void 0:Jt.identifier}`)}(rr=(Kn=Je==null?void 0:Je.target)==null?void 0:Kn.style)!=null&&rr.pointerEvents&&(Je.target.style.pointerEvents="auto")});(0,h.useEffect)(()=>{let Je=B()().add(0,"days").unix(),Jt=localStorage.getItem("problemsclose");if(!Jt){Mn(!0);return}Je>parseInt(Jt)&&Mn(!0)},[]);const Wt=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],Rt=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(Je,Jt)=>h.createElement("div",{className:A.titleWarp},(it==null?void 0:it.filter)==="mine"?h.createElement("span",{className:A.tag},Wt[Jt.practice_status]):null,h.createElement("span",{title:Je,className:A.hov,onClick:on=>zt(on,Jt)},Je))},(it==null?void 0:it.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(Je,Jt)=>h.createElement("span",{style:{display:"flex"}},h.createElement("span",{onClick:on=>zt(on,Jt,!0),className:"current"},Je),(Jt==null?void 0:Jt.has_video_solution)&&h.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:C}))}:null,(it==null?void 0:it.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:Je=>h.createElement(h.Fragment,null,Je===1&&h.createElement("span",{className:A["btn-style-1"]},"\u7B80\u5355"),Je===2&&h.createElement("span",{className:A["btn-style-2"]},"\u9002\u4E2D"),Je===3&&h.createElement("span",{className:A["btn-style-3"]},"\u56F0\u96BE"))},(it==null?void 0:it.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(it==null?void 0:it.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(Je,Jt)=>(0,Q.bg)()?h.createElement(h.Fragment,null,kt===(Jt==null?void 0:Jt.identifier)?h.createElement("span",{className:A.hovBtn,onClick:on=>zt(on,Jt)},"\u5F00\u542F\u5237\u9898"):h.createElement(h.Fragment,null,Je===0&&h.createElement("span",{className:A.statusText},"\u672A\u5F00\u542F"),Je===1&&h.createElement("span",{className:A.statusText},"\u8FDB\u884C\u4E2D"),Je===2&&h.createElement("span",{className:A.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(it==null?void 0:it.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:Je=>h.createElement("span",null,Je==null?void 0:Je.join("\u3001"))}:null,(it==null?void 0:it.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(it==null?void 0:it.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,Q.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(Je,Jt)=>h.createElement(d.Z,{className:"ml10",dropdownRender:()=>Un(Jt==null?void 0:Jt.identifier,Jt)},h.createElement("span",{style:{cursor:"default"},onClick:on=>on.preventDefault()},h.createElement("span",null,"\u66F4\u591A"),h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:Qt&&(it==null?void 0:it.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(Je,Jt)=>Jt!=null&&Jt.is_self&&(Jt==null?void 0:Jt.practice_status)!==1?h.createElement(d.Z,{className:"ml10",dropdownRender:()=>tr(Jt==null?void 0:Jt.identifier,Jt)},h.createElement("span",{style:{cursor:"default"},onClick:on=>on.preventDefault()},h.createElement("span",null,"\u66F4\u591A"),h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(Je=>!!Je),vt=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(Je,Jt)=>h.createElement("span",{className:A.hov,onClick:on=>zt(on,Jt)},Je)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:Je=>h.createElement(h.Fragment,null,Je===1&&h.createElement("span",{className:A["btn-style-1"]},"\u7B80\u5355"),Je===2&&h.createElement("span",{className:A["btn-style-2"]},"\u9002\u4E2D"),Je===3&&h.createElement("span",{className:A["btn-style-3"]},"\u56F0\u96BE"))},(it==null?void 0:it.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(it==null?void 0:it.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(it==null?void 0:it.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(it==null?void 0:it.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:(Je,Jt)=>{let on;switch(it==null?void 0:it.filter){case"under_review":on=h.createElement("div",{style:{display:"flex"}},h.createElement(_e.ZP,{type:"link",size:"small",onClick:jt=>zt(jt,Jt)},"\u5BA1\u6838"),h.createElement(_e.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:jt=>rn({e:jt,record:Jt,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":on=h.createElement(_e.ZP,{type:"link",size:"small",onClick:jt=>{Nn(!0),bt(Jt)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:on=h.createElement(_e.ZP,{type:"link",block:!0,onClick:jt=>rn({e:jt,record:Jt,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return on}}].filter(Je=>!!Je),bt=Je=>Vt(void 0,null,function*(){yn([]);const Jt=yield(0,D.ZP)(`/api/practices/${Je.identifier}/review_list`,{method:"get"});yn(Jt==null?void 0:Jt.reviews_list)}),Nt=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(Je,Jt)=>h.createElement("span",null,B()(Je).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:(Je,Jt)=>Je==="5"||Je===5?h.createElement("div",{style:{display:"flex",alignItems:"center"}},h.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),h.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{Ln(Jt.description),Dn(!0)}},"\u67E5\u770B\u539F\u56E0")):h.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,h.useEffect)(()=>{Fn(),Zt(it)},[]),(0,h.useEffect)(()=>{var Je;xt.length!==0&&((Je=En==null?void 0:En.current)==null?void 0:Je.clientHeight)>98&&Ne(1)},[xt]),(0,h.useEffect)(()=>{var Je;Kt.length!==0&&((Je=Tn==null?void 0:Tn.current)==null?void 0:Je.clientHeight)>98&&gt(1)},[Kt]),(0,h.useEffect)(()=>(Ee({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{Ee({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,h.useEffect)(()=>{var Je;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(Je=document.title)!=null&&Je.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[se]),(0,h.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const Zt=Je=>Vt(void 0,null,function*(){var Jt,on;Je.search=encodeURIComponent(Je.search);const jt=He().cloneDeep(Je);jt.tag_discipline_id=(Jt=jt.tag_discipline_id)!=null&&Jt.includes(-1)?[]:jt.tag_discipline_id,jt.source_discipline_id=(on=jt.source_discipline_id)!=null&&on.includes(-1)?[]:jt.source_discipline_id,console.log(jt,"sendData"),Ct(!0),Ze([]);const mn=yield(0,D.ZP)("/api/practices.json",{method:"get",params:jt});Yn([]),Ct(!1),Mt(mn==null?void 0:mn.practices_count),Ze(mn==null?void 0:mn.practices_list),zn((mn==null?void 0:mn.recommend_subjects)||[])}),rn=Je=>Vt(void 0,[Je],function*({op:Jt,description:on,record:jt,e:mn}){const Kn={op:Jt,description:on};Ct(!0);const rr=yield(0,D.ZP)(`/api/practices/${jt.identifier}/review`,{method:"post",body:Kn});Ct(!1),Jt==="claim"&&(rr.status===0||rr.status==="0")&&zt(mn,jt),Zt(it)}),gn=Je=>Vt(void 0,null,function*(){Ct(!0);const Jt=yield(0,D.ZP)(`/api/practices/${Je.identifier}/publish`,{method:"post"});Ct(!1),Zt(it)}),Fn=()=>Vt(void 0,null,function*(){var Je;const Jt=yield(0,D.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),on=yield(0,D.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),jt=yield(0,D.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(Jt!=null&&Jt.tag_disciplines){const mn=[{id:-1,name:"\u5168\u90E8",count:Jt==null?void 0:Jt.totalCount},...Jt==null?void 0:Jt.tag_disciplines];At(mn)}if(on!=null&&on.tag_disciplines){const mn=[{id:-1,name:"\u5168\u90E8",count:on==null?void 0:on.totalCount},...on==null?void 0:on.tag_disciplines];nn(mn)}dn(jt||{}),$t((Je=jt==null?void 0:jt.my_record)==null?void 0:Je.outsource)}),pn=(Je,Jt)=>{var on;it.page=1;let jt=it[`${Jt}_discipline_id`];(on=it[`${Jt}_discipline_id`])!=null&&on.includes(Je)?jt=jt.filter(mn=>mn!==Je):jt.push(Je),Je===-1?jt=[-1]:(jt=jt.filter(mn=>mn!==-1),jt.length||(jt=[-1])),it[`${Jt}_discipline_id`]=jt,ln(Et({},it)),Zt(it)},xn=(Je,Jt)=>{it.page=1,it[Jt]=typeof Je=="number"?Je:null,ln(Et({},it)),Zt(it)},On=Je=>{it.page=1,it.save_search=Je,ln(Et({},it))},kn=(Je,Jt,on)=>{it.page=Je==null?void 0:Je.current,it.per_page=Je==null?void 0:Je.pageSize,on!=null&&on.order?(it.sort_by=on==null?void 0:on.field,it.sort_direction=(on==null?void 0:on.order)==="ascend"?"asc":"desc"):(it.sort_by=null,it.sort_direction=null),ln(Et({},it)),Zt(it)},Gn=Je=>{it.page=1,it.filter=Je,it.status=null,it.practice_status=null,ln(Et({},it)),Zt(it)},Sn=(Je,Jt)=>{if((Jt==null?void 0:Jt.length)===0){te.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const on=()=>Vt(void 0,null,function*(){const jt=yield(0,D.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:Jt,op:Je}});if((jt==null?void 0:jt.status)===0){const mn=Dt.length===1&&it.page!==1?it.page-1:it.page;it.page=mn,ln(Et({},it)),Zt(it)}});if(Je===-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:on});return}on()},Hn=h.createElement(g.default,null,(it==null?void 0:it.filter)==="public"?h.createElement(g.default.Item,{onClick:()=>Sn(0,wn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[h.createElement(g.default.Item,{key:2,onClick:()=>Sn(1,wn)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),h.createElement(g.default.Item,{key:1,onClick:()=>Sn(0,wn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,Q.Ny)()&&h.createElement(g.default.Item,{onClick:()=>Jn()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(it==null?void 0:it.filter)!=="public"&&h.createElement(g.default.Item,{onClick:()=>Sn(-1,wn)},"\u6279\u91CF\u5220\u9664")),Un=(Je,Jt)=>h.createElement(g.default,null,(Jt==null?void 0:Jt.practice_status)===1?h.createElement(g.default.Item,{onClick:()=>Sn(0,[Je])},"\u79FB\u51FA\u516C\u5171"):h.createElement(g.default.Item,{onClick:()=>Sn(1,[Je])},"\u79FB\u5165\u516C\u5171"),(it==null?void 0:it.filter)==="mine"?h.createElement(g.default.Item,{onClick:()=>gn(Jt),disabled:![0,4,5].includes(Jt.practice_status)},[0,4,5].includes(Jt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,h.createElement(g.default.Item,{onClick:()=>(0,tt.xg)(`/problems/${Je}/ojedit`)},"\u7F16\u8F91"),(it==null?void 0:it.filter)!=="public"&&h.createElement(g.default.Item,{onClick:()=>Sn(-1,[Je])},"\u5220\u9664")),tr=(Je,Jt)=>h.createElement(g.default,null,h.createElement(g.default.Item,{onClick:()=>gn(Jt),disabled:![0,4,5].includes(Jt.practice_status)},[0,4,5].includes(Jt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),h.createElement(g.default.Item,{onClick:()=>(0,tt.xg)(`/problems/${Je}/ojedit`)},"\u7F16\u8F91"),h.createElement(g.default.Item,{onClick:()=>Sn(-1,[Je])},"\u5220\u9664")),Wn=Je=>{Yn(Je)},Jn=()=>{if(!wn.length){te.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let Je=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:h.createElement("div",null,h.createElement("p",{className:"mt20"},"\u5DF2\u9009",h.createElement("span",{className:"c-light-primary"},wn.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),h.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),h.createElement(w.default.Group,{className:"mt3",onChange:Jt=>{Je=Jt,document.getElementById("send-to-modal").style.display="none"}},h.createElement(w.default,{value:"c"},"C\u8BED\u8A00"),h.createElement(w.default,{value:"c++"},"C++\u8BED\u8A00"),h.createElement(w.default,{value:"java"},"Java\u8BED\u8A00"),h.createElement(w.default,{value:"python"},"Python\u8BED\u8A00")),h.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>Vt(void 0,null,function*(){if(!(Je!=null&&Je.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const Jt=yield(0,D.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:wn,language:Je}});(Jt==null?void 0:Jt.status)===0&&te.ZP.success("\u53D1\u9001\u6210\u529F")})})},lr={selectedRowKeys:wn,columnWidth:40,onChange:Wn};return h.createElement("section",{className:A.wrap},h.createElement(O.jL,{img:X,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:h.createElement(d.Z,{dropdownRender:()=>{var Je,Jt;return h.createElement(g.default,null,h.createElement(g.default.Item,{key:1,onClick:()=>{ue.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),h.createElement(g.default.Item,{key:2,onClick:()=>{ue.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"),!((Je=se==null?void 0:se.setting)!=null&&Je.main_site)&&!((Jt=se==null?void 0:se.setting)!=null&&Jt.is_local)&&h.createElement(g.default.Item,{key:3,onClick:()=>{mt(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u9898"))}},h.createElement("div",{className:A.addQuestion,style:{visibility:(0,Q.Ny)()||Qt||!((k=se==null?void 0:se.setting)!=null&&k.main_site)&&!((Y=se==null?void 0:se.setting)!=null&&Y.is_local)&&(0,Q.EO)()?"visible":"hidden"}},h.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),h.createElement("div",{className:A.content},h.createElement("div",{className:A.left},h.createElement(p.Z,{className:`${A.filterPoint} mb10`,align:"top"},h.createElement(E.Z,{className:A.filterType},"\u77E5\u8BC6\u70B9"),h.createElement(E.Z,{className:A.btnWarp,ref:En,style:cn>0?{height:cn===1?76:"auto"}:{}},xt==null?void 0:xt.map(Je=>{var Jt;return h.createElement("div",{onClick:()=>pn(Je.id,"tag"),key:Je.id,className:(Jt=it==null?void 0:it.tag_discipline_id)!=null&&Jt.includes(Je.id)?`${A.btn} ${A.btnActive}`:A.btn},h.createElement("span",{title:Je.name},Je.name),h.createElement("span",{className:A.count,style:{display:Je.count?"block":"none"}},Je.count))})),!!cn&&h.createElement(E.Z,{className:A.fold},cn===1?h.createElement("div",{onClick:()=>Ne(2),className:A.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>Ne(1),className:A.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!Kt.length&&h.createElement(p.Z,{className:A.filterPoint,align:"top",style:{marginBottom:22}},h.createElement(E.Z,{className:A.filterType},"\u6765\u6E90"),h.createElement(E.Z,{className:A.btnWarp,ref:Tn,style:Re>0?{height:Re===1?76:"auto"}:{}},Kt==null?void 0:Kt.map(Je=>{var Jt;return h.createElement("div",{onClick:()=>pn(Je.id,"source"),key:Je.id,className:(Jt=it==null?void 0:it.source_discipline_id)!=null&&Jt.includes(Je.id)?`${A.btn} ${A.btnActive}`:A.btn},h.createElement("span",{title:Je.name},Je.name),h.createElement("span",{className:A.count},Je.count))}),!!Re&&h.createElement(E.Z,{className:A.fold},Re===1?h.createElement("div",{onClick:()=>gt(2),className:A.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>gt(1),className:A.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),h.createElement("div",{className:A.control},h.createElement(x.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:it==null?void 0:it.difficulty,onChange:Je=>xn(Je,"difficulty")},h.createElement(x.default.Option,{value:1},"\u7B80\u5355"),h.createElement(x.default.Option,{value:2},"\u9002\u4E2D"),h.createElement(x.default.Option,{value:3},"\u56F0\u96BE")),(0,Q.bg)()&&it.filter==="public"&&h.createElement(x.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:it==null?void 0:it.status,onChange:Je=>xn(Je,"status")},h.createElement(x.default.Option,{value:0},"\u672A\u5F00\u542F"),h.createElement(x.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),h.createElement(x.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,Q.bg)()&&it.filter==="mine"&&h.createElement(x.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:it==null?void 0:it.practice_status,onChange:Je=>xn(Je,"practice_status")},h.createElement(x.default.Option,{value:0},"\u672A\u53D1\u5E03"),h.createElement(x.default.Option,{value:1},"\u5DF2\u516C\u5F00"),h.createElement(x.default.Option,{value:2},"\u672A\u5BA1\u6838"),h.createElement(x.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),h.createElement(x.default.Option,{value:4},"\u672A\u516C\u5F00"),h.createElement(x.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,Q.bg)()&&it.filter==="all"&&h.createElement(x.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:it==null?void 0:it.practice_status,onChange:Je=>xn(Je,"practice_status")},h.createElement(x.default.Option,{value:0},"\u672A\u53D1\u5E03"),h.createElement(x.default.Option,{value:1},"\u5DF2\u516C\u5F00"),h.createElement(x.default.Option,{value:2},"\u672A\u5BA1\u6838"),h.createElement(x.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),h.createElement(x.default.Option,{value:4},"\u672A\u516C\u5F00"),h.createElement(x.default.Option,{value:5},"\u672A\u901A\u8FC7")),h.createElement(L.default.Search,{className:A.search,size:"large",suffix:h.createElement("i",{className:`iconfont icon-sousuo9 font14 ${A.searchIcon}`,onClick:()=>{it.page=1,it.search=it.save_search,ln(Et({},it)),it.save_search&&(0,It.tk)({name:it.save_search,copywriting:it.save_search,position:"Practice"}),Zt(it)}}),placeholder:(0,Q.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:it==null?void 0:it.save_search,onChange:Je=>On(Je.target.value),onSearch:Je=>{it.page=1,it.search=it.save_search,ln(Et({},it)),Je&&(0,It.tk)({name:Je,copywriting:Je,position:"Practice"}),Zt(it)}})),h.createElement("div",{className:A.table},h.createElement("div",{className:A.tabWarp,style:(0,Q.Ny)()||Qt?{}:{height:10,border:0}},(0,Q.Ny)()?h.createElement(j.default,{className:A.tab,activeKey:Cn?"not_reviewed":it.filter,onChange:Gn,tabBarExtraContent:!Cn&&h.createElement(d.Z,{dropdownRender:()=>Hn},h.createElement("span",{className:"ant-dropdown-link font14 current",onClick:Je=>Je.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},h.createElement(j.default.TabPane,{tab:"\u516C\u5171",key:"public"}),h.createElement(j.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),h.createElement(j.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),h.createElement(j.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):Qt?h.createElement(j.default,{className:A.tab,activeKey:Cn?"not_reviewed":it.filter,onChange:Gn},h.createElement(j.default.TabPane,{tab:"\u516C\u5171",key:"public"}),h.createElement(j.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),h.createElement(j.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),Cn?h.createElement("div",{className:A.tabWarp,style:(0,Q.Ny)()||Qt?{}:{height:10,border:0}},h.createElement(j.default,{className:A.tab,activeKey:it.filter,onChange:Gn},h.createElement(j.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),h.createElement(j.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),h.createElement(j.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,Q.Ny)()||Qt)&&ft&&h.createElement("div",{className:A.tabWarp2,style:{justifyContent:"end"}},pr?h.createElement(p.Z,{align:"middle"},h.createElement(p.Z,{onClick:()=>Ie(!0),align:"middle",className:"current"},h.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),h.createElement("span",null,"\u5DF2\u9009",h.createElement("span",{className:"c-light-primary"},wn.length),"\u4E2A")),h.createElement(_e.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{Me(!1),Yn([])},type:"primary"},"\u53D6\u6D88"),h.createElement(_e.ZP,{onClick:Jn,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):h.createElement(_e.ZP,{onClick:()=>Me(!0),type:"primary"},h.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),h.createElement($.default,{rowSelection:(0,Q.Ny)()||pr?lr:void 0,className:A.customTable,dataSource:Dt,bordered:!1,rowKey:Je=>Je.identifier,columns:Cn?vt:Rt,rowClassName:A.row,loading:_t,onRow:Je=>({onMouseEnter:Jt=>{qt(Je==null?void 0:Je.identifier)},onMouseLeave:Jt=>{qt(null)}}),onChange:kn,pagination:{pageSize:it.per_page,total:pt,current:it.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:Je=>h.createElement("span",{className:"mr10"},"\u5171",h.createElement("span",{className:"c-orange"},Je),"\u6761\u6570\u636E")}}))),h.createElement("div",{className:A.right},h.createElement("div",{className:A.statistics},h.createElement("img",{src:y,alt:""}),h.createElement("div",{className:A.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),h.createElement(p.Z,{justify:"space-between"},h.createElement(E.Z,{className:A.statisticItem},h.createElement("div",{className:A.rate},(0,Q.bg)()?((he=Ot==null?void 0:Ot.my_record)==null?void 0:he.passed_ratio)||0:"-"),h.createElement("div",{className:A.dataName},"\u901A\u8FC7\u7387(%)")),h.createElement(E.Z,{className:A.statisticItem},h.createElement("div",{className:A.rate},(0,Q.bg)()?((ce=Ot==null?void 0:Ot.my_record)==null?void 0:ce.passed_count)||0:"-"),h.createElement("div",{className:A.dataName},"\u5237\u9898\u6570")),h.createElement(E.Z,{className:A.statisticItem},h.createElement("div",{className:A.rate},(0,Q.bg)()?(Be=(xe=Ot==null?void 0:Ot.my_record)==null?void 0:xe.time_count)==null?void 0:Be.toFixed(2):"-"),h.createElement("div",{className:A.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((Xe=Ot==null?void 0:Ot.rank_list)!=null&&Xe.length)&&h.createElement(h.Fragment,null,((ct=ve.userInfo)==null?void 0:ct.user_id)!=2&&(0,Q.JA)()&&((nt=se==null?void 0:se.setting)==null?void 0:nt.main_site)&&Rn&&(Bn==null?void 0:Bn.length)>0&&h.createElement("div",{className:A.problemsclose,style:{position:"relative"}},h.createElement(le.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},Bn==null?void 0:Bn.map((Je,Jt)=>h.createElement("div",{style:{display:"flex"},key:Jt},h.createElement("a",{href:`/paths/${Je.identifier}`},h.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:H.Z.IMG_SERVER+"/"+Je.image_url}))))),h.createElement("img",{className:A.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",B()().add(1,"days").unix()+""),Mn(!1)},src:wt})),h.createElement("div",{className:A.sort},h.createElement("div",{className:A.rankHeader},h.createElement("img",{src:v,className:A.rankIcon})),!!((Ue=Ot==null?void 0:Ot.my_record)!=null&&Ue.rank)&&h.createElement("div",{className:`${A.myRecord} ${A.li}`},h.createElement("span",{className:`${A.recordPrefix} ${A.mine}`},"\u6211\u7684"),h.createElement("img",{className:A.avatar,src:H.Z.IMG_SERVER+"/images/"+((I=Ot==null?void 0:Ot.my_record)==null?void 0:I.image_url)}),h.createElement("span",{title:(Z=Ot==null?void 0:Ot.my_record)==null?void 0:Z.nickname,className:A.nickname},(S=Ot==null?void 0:Ot.my_record)==null?void 0:S.nickname),h.createElement("span",{className:A.myRank},((ze=Ot==null?void 0:Ot.my_record)==null?void 0:ze.rank)>999?"\u7B2C999+\u540D":`\u7B2C${(ke=Ot==null?void 0:Ot.my_record)==null?void 0:ke.rank}\u540D`),h.createElement("span",{className:A.questionNumber},(Pe=Ot==null?void 0:Ot.my_record)==null?void 0:Pe.passed_count,"\u9898")),(Ge=Ot==null?void 0:Ot.rank_list)==null?void 0:Ge.map((Je,Jt)=>{let on=Jt+1;return Jt===0&&(on=P.Z),Jt===1&&(on=G.Z),Jt===2&&(on=re.Z),h.createElement("div",{className:A.li,key:Jt},typeof on=="number"?h.createElement("span",{className:A.recordPrefix},on):h.createElement("span",{className:A.recordPrefix},h.createElement("img",{src:on})),h.createElement("img",{className:A.avatar,src:H.Z.IMG_SERVER+"/images/"+(Je==null?void 0:Je.image_url)}),h.createElement("span",{title:Je==null?void 0:Je.nickname,className:A.nickname},Je==null?void 0:Je.nickname),h.createElement("span",{className:A.questionNumber},Je.passed_count,"\u9898"))}))))),ut&&h.createElement(Le,{setScoreShow:mt,isshixuns:!1,ScoreShow:!!ut,isloadings:!1,onOk:Je=>Vt(void 0,null,function*(){if(!Je.length){te.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const Jt=yield(0,D.ZP)(`/api/item_banks/${Je==null?void 0:Je[0]}/send_to_practice`,{method:"post",body:{ids:Je}});(Jt==null?void 0:Jt.status)==0&&(te.ZP.success("\u64CD\u4F5C\u6210\u529F"),it.filter="mine",ln(Et({},it)),mt(!1),Zt(it))})}),h.createElement(o.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:Zn,onOk:()=>{},onCancel:()=>{Nn(!1)},footer:null,closable:!0},h.createElement($.default,{dataSource:hn,columns:Nt})),h.createElement(o.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:Pn,onOk:()=>{},onCancel:()=>{Dn(!1)},footer:null,closable:!0},h.createElement(z.Z,{value:vn})),h.createElement(o.default,{open:Te,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>Ie(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>Vt(void 0,null,function*(){Ie(!1),Jn()}),title:"\u67E5\u770B\u5DF2\u9009"},h.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",wn==null?void 0:wn.length,"\u4E2A"),h.createElement("div",{style:{height:400,overflow:"auto"}},(We=Dt==null?void 0:Dt.filter(Je=>wn.includes(Je.identifier)))==null?void 0:We.map((Je,Jt)=>{var on,jt;return h.createElement("div",{key:Jt,className:A.sendModal},h.createElement("div",{className:A.li},h.createElement("p",null,Je==null?void 0:Je.name),h.createElement("div",{className:A.bottom},h.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),h.createElement("i",{className:A.line}),h.createElement("span",{className:"c-grey-333"},Je.difficulty===1&&"\u7B80\u5355",Je.difficulty===2&&"\u9002\u4E2D",Je.difficulty===3&&"\u56F0\u96BE"),h.createElement("i",{className:A.line}),h.createElement("span",null,"\u521B\u5EFA\u8005\xA0",h.createElement(F.Z,{title:Je==null?void 0:Je.creator},h.createElement("span",{className:"c-grey-333"},((on=Je==null?void 0:Je.creator)==null?void 0:on.length)>6?((jt=Je==null?void 0:Je.creator)==null?void 0:jt.substr(0,3))+"...":Je==null?void 0:Je.creator))),h.createElement("i",{className:A.line}),h.createElement("span",{className:A.des},"\u66F4\u65B0\xA0",h.createElement("span",{className:"c-grey-333"},Je==null?void 0:Je.updated_at)))),h.createElement("div",{className:A.del,onClick:()=>{Yn(wn.filter(mn=>mn!==Je.identifier))}},"\u5220\u9664"))}))))};var Bt=(0,ue.connect)(({user:se,globalSetting:ve})=>({user:se,globalSetting:ve}))(St)},90290:function(In,Gt,_){"use strict";_.d(Gt,{AL:function(){return D},Iy:function(){return w},Qv:function(){return x},ez:function(){return H},jb:function(){return p}});var h=_(32834),ue=_.n(h),z=_(11690),ae=_.n(z);let B=1;function d(oe,ge){const me=oe.match(/^(\s+)(?:```)/);if(me===null)return ge;const ot=me[1];return ge.split(`
`).map(U=>{const C=U.match(/^\s+/);if(C===null)return U;const[P]=C;return P.length>=ot.length?U.slice(ot.length):U}).join(`
`)}let _e=[],te=["<ul>"];const o=new(ue()).Renderer,g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){_e.length=0,te=["<ul>"]}const p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function E(oe,ge,me,ot){if(ge>=oe.length||oe[ge].level<=me)return ge;var U=oe[ge];ot.push("<li><a href='#"+B+U.anchor+"'>"+U.text+"</a>"),ge++;var C=[];return ge=E(oe,ge,U.level,C),C.length>0&&(ot.push("<ul>"),C.forEach(function(P){ot.push(P)}),ot.push("</ul>")),ot.push("</li>"),ge=E(oe,ge,me,ot),ge}function x(){return E(_e,0,0,te),te.push("</ul>"),te.join("")}const L={heading(oe){const ge=g.exec(oe);if(B+=1,ge)return{type:"heading",raw:ge[0],depth:ge[1].length,text:ge[2]}},fences(oe){const ge=this.rules.block.fences.exec(oe);if(ge){const me=ge[0];let ot=d(me,ge[3]||"");const U=ge[2]?ge[2].trim():ge[2];if(["latex","katex","math"].indexOf(U)>=0){const C=le(),P=ot;ot=C,F[C]={type:"block",expression:P}}return{type:"code",raw:me,lang:U,text:ot}}}},j=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let $=0;const le=()=>`__special_katext_id_${$++}__`;let F={};function H(){return F}function D(){$=0,F={}}function A(oe){return oe=oe.replace(j,(ge,me)=>{const ot=le();return F[ot]={type:"inline",expression:me},ot}),oe}const Q=o.listitem;o.listitem=function(oe){return Q(A(oe))};const ne=o.paragraph;o.paragraph=function(oe){return ne(A(oe))};const ee=o.tablecell;o.tablecell=function(oe,ge){return ee(A(oe),ge)},o.code=function(oe,ge,me){const ot=(ge||"").match(/\S*/)[0];return ot?["latex","katex","math"].indexOf(ot)>=0?`<p class='editormd-tex'>${oe}</p>`:`<pre class="prettyprint linenums"><code class="language-${ge}">${me?oe:(0,z.escape)(oe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(me?oe:(0,z.escape)(oe,!0))+"</code></pre>"},o.heading=function(oe,ge,me){let ot=this.options.headerPrefix+me.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return _e.push({anchor:ot,level:ge,text:oe}),"<h"+ge+' id="'+B+ot+'">'+oe+"</h"+ge+">"},ue().setOptions({silent:!0,gfm:!0,pedantic:!1}),ue().use({tokenizer:L,renderer:o}),Gt.ZP=ue()},84022:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return nt}});var h=_(59301),ue=_(32855),z=_(27247),ae=_(33377),B=_(93912),d=_(96994),_e=_(45533),te=_(90029),o=_(18881),g=_(74430),w=_(34666),p=_(43079),E={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=E,L=_(53280),j=_(92310),$=_.n(j),le={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(I){return h.createElement("ul",{style:{display:"block"}},I)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(I){return h.createElement("button",null,I+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},F=le;function H(Ue,I,Z){return Math.max(I,Math.min(Ue,Z))}var D=function(I){var Z=["onTouchStart","onTouchMove","onWheel"];Z.includes(I._reactName)||I.preventDefault()},A=function(I){for(var Z=[],S=ne(I),ze=ee(I),ke=S;ke<ze;ke++)I.lazyLoadedList.indexOf(ke)<0&&Z.push(ke);return Z},Q=function(I){for(var Z=[],S=ne(I),ze=ee(I),ke=S;ke<ze;ke++)Z.push(ke);return Z},ne=function(I){return I.currentSlide-oe(I)},ee=function(I){return I.currentSlide+ge(I)},oe=function(I){return I.centerMode?Math.floor(I.slidesToShow/2)+(parseInt(I.centerPadding)>0?1:0):0},ge=function(I){return I.centerMode?Math.floor((I.slidesToShow-1)/2)+1+(parseInt(I.centerPadding)>0?1:0):I.slidesToShow},me=function(I){return I&&I.offsetWidth||0},ot=function(I){return I&&I.offsetHeight||0},U=function(I){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S,ze,ke,Pe;return S=I.startX-I.curX,ze=I.startY-I.curY,ke=Math.atan2(ze,S),Pe=Math.round(ke*180/Math.PI),Pe<0&&(Pe=360-Math.abs(Pe)),Pe<=45&&Pe>=0||Pe<=360&&Pe>=315?"left":Pe>=135&&Pe<=225?"right":Z===!0?Pe>=35&&Pe<=135?"up":"down":"vertical"},C=function(I){var Z=!0;return I.infinite||(I.centerMode&&I.currentSlide>=I.slideCount-1||I.slideCount<=I.slidesToShow||I.currentSlide>=I.slideCount-I.slidesToShow)&&(Z=!1),Z},P=function(I,Z){var S={};return Z.forEach(function(ze){return S[ze]=I[ze]}),S},G=function(I){var Z=h.Children.count(I.children),S=I.listRef,ze=Math.ceil(me(S)),ke=I.trackRef&&I.trackRef.node,Pe=Math.ceil(me(ke)),Ge;if(I.vertical)Ge=ze;else{var We=I.centerMode&&parseInt(I.centerPadding)*2;typeof I.centerPadding=="string"&&I.centerPadding.slice(-1)==="%"&&(We*=ze/100),Ge=Math.ceil((ze-We)/I.slidesToShow)}var dt=S&&ot(S.querySelector('[data-index="0"]')),Lt=dt*I.slidesToShow,Pt=I.currentSlide===void 0?I.initialSlide:I.currentSlide;I.rtl&&I.currentSlide===void 0&&(Pt=Z-1-I.initialSlide);var cn=I.lazyLoadedList||[],Ne=A((0,z.Z)((0,z.Z)({},I),{},{currentSlide:Pt,lazyLoadedList:cn}));cn=cn.concat(Ne);var Re={slideCount:Z,slideWidth:Ge,listWidth:ze,trackWidth:Pe,currentSlide:Pt,slideHeight:dt,listHeight:Lt,lazyLoadedList:cn};return I.autoplaying===null&&I.autoplay&&(Re.autoplaying="playing"),Re},re=function(I){var Z=I.waitForAnimate,S=I.animating,ze=I.fade,ke=I.infinite,Pe=I.index,Ge=I.slideCount,We=I.lazyLoad,dt=I.currentSlide,Lt=I.centerMode,Pt=I.slidesToScroll,cn=I.slidesToShow,Ne=I.useCSS,Re=I.lazyLoadedList;if(Z&&S)return{};var gt=Pe,pt,Mt,xt,At={},Kt={},nn=ke?Pe:H(Pe,0,Ge-1);if(ze){if(!ke&&(Pe<0||Pe>=Ge))return{};Pe<0?gt=Pe+Ge:Pe>=Ge&&(gt=Pe-Ge),We&&Re.indexOf(gt)<0&&(Re=Re.concat(gt)),At={animating:!0,currentSlide:gt,lazyLoadedList:Re,targetSlide:gt},Kt={animating:!1,targetSlide:gt}}else pt=gt,gt<0?(pt=gt+Ge,ke?Ge%Pt!==0&&(pt=Ge-Ge%Pt):pt=0):!C(I)&&gt>dt?gt=pt=dt:Lt&&gt>=Ge?(gt=ke?Ge:Ge-1,pt=ke?0:Ge-1):gt>=Ge&&(pt=gt-Ge,ke?Ge%Pt!==0&&(pt=0):pt=Ge-cn),!ke&&gt+cn>=Ge&&(pt=Ge-cn),Mt=Ke((0,z.Z)((0,z.Z)({},I),{},{slideIndex:gt})),xt=Ke((0,z.Z)((0,z.Z)({},I),{},{slideIndex:pt})),ke||(Mt===xt&&(gt=pt),Mt=xt),We&&(Re=Re.concat(A((0,z.Z)((0,z.Z)({},I),{},{currentSlide:gt})))),Ne?(At={animating:!0,currentSlide:pt,trackStyle:Ht((0,z.Z)((0,z.Z)({},I),{},{left:Mt})),lazyLoadedList:Re,targetSlide:nn},Kt={animating:!1,currentSlide:pt,trackStyle:Ft((0,z.Z)((0,z.Z)({},I),{},{left:xt})),swipeLeft:null,targetSlide:nn}):At={currentSlide:pt,trackStyle:Ft((0,z.Z)((0,z.Z)({},I),{},{left:xt})),lazyLoadedList:Re,targetSlide:nn};return{state:At,nextState:Kt}},X=function(I,Z){var S,ze,ke,Pe,Ge,We=I.slidesToScroll,dt=I.slidesToShow,Lt=I.slideCount,Pt=I.currentSlide,cn=I.targetSlide,Ne=I.lazyLoad,Re=I.infinite;if(Pe=Lt%We!==0,S=Pe?0:(Lt-Pt)%We,Z.message==="previous")ke=S===0?We:dt-S,Ge=Pt-ke,Ne&&!Re&&(ze=Pt-ke,Ge=ze===-1?Lt-1:ze),Re||(Ge=cn-We);else if(Z.message==="next")ke=S===0?We:S,Ge=Pt+ke,Ne&&!Re&&(Ge=(Pt+We)%Lt+S),Re||(Ge=cn+We);else if(Z.message==="dots")Ge=Z.index*Z.slidesToScroll;else if(Z.message==="children"){if(Ge=Z.index,Re){var gt=qe((0,z.Z)((0,z.Z)({},I),{},{targetSlide:Ge}));Ge>Z.currentSlide&&gt==="left"?Ge=Ge-Lt:Ge<Z.currentSlide&&gt==="right"&&(Ge=Ge+Lt)}}else Z.message==="index"&&(Ge=Number(Z.index));return Ge},y=function(I,Z,S){return I.target.tagName.match("TEXTAREA|INPUT|SELECT")||!Z?"":I.keyCode===37?S?"next":"previous":I.keyCode===39?S?"previous":"next":""},v=function(I,Z,S){return I.target.tagName==="IMG"&&D(I),!Z||!S&&I.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:I.touches?I.touches[0].pageX:I.clientX,startY:I.touches?I.touches[0].pageY:I.clientY,curX:I.touches?I.touches[0].pageX:I.clientX,curY:I.touches?I.touches[0].pageY:I.clientY}}},O=function(I,Z){var S=Z.scrolling,ze=Z.animating,ke=Z.vertical,Pe=Z.swipeToSlide,Ge=Z.verticalSwiping,We=Z.rtl,dt=Z.currentSlide,Lt=Z.edgeFriction,Pt=Z.edgeDragged,cn=Z.onEdge,Ne=Z.swiped,Re=Z.swiping,gt=Z.slideCount,pt=Z.slidesToScroll,Mt=Z.infinite,xt=Z.touchObject,At=Z.swipeEvent,Kt=Z.listHeight,nn=Z.listWidth;if(!S){if(ze)return D(I);ke&&Pe&&Ge&&D(I);var Ot,dn={},Qt=Ke(Z);xt.curX=I.touches?I.touches[0].pageX:I.clientX,xt.curY=I.touches?I.touches[0].pageY:I.clientY,xt.swipeLength=Math.round(Math.sqrt(Math.pow(xt.curX-xt.startX,2)));var $t=Math.round(Math.sqrt(Math.pow(xt.curY-xt.startY,2)));if(!Ge&&!Re&&$t>10)return{scrolling:!0};Ge&&(xt.swipeLength=$t);var Dt=(We?-1:1)*(xt.curX>xt.startX?1:-1);Ge&&(Dt=xt.curY>xt.startY?1:-1);var Ze=Math.ceil(gt/pt),_t=U(Z.touchObject,Ge),Ct=xt.swipeLength;return Mt||(dt===0&&(_t==="right"||_t==="down")||dt+1>=Ze&&(_t==="left"||_t==="up")||!C(Z)&&(_t==="left"||_t==="up"))&&(Ct=xt.swipeLength*Lt,Pt===!1&&cn&&(cn(_t),dn.edgeDragged=!0)),!Ne&&At&&(At(_t),dn.swiped=!0),ke?Ot=Qt+Ct*(Kt/nn)*Dt:We?Ot=Qt-Ct*Dt:Ot=Qt+Ct*Dt,Ge&&(Ot=Qt+Ct*Dt),dn=(0,z.Z)((0,z.Z)({},dn),{},{touchObject:xt,swipeLeft:Ot,trackStyle:Ft((0,z.Z)((0,z.Z)({},Z),{},{left:Ot}))}),Math.abs(xt.curX-xt.startX)<Math.abs(xt.curY-xt.startY)*.8||xt.swipeLength>10&&(dn.swiping=!0,D(I)),dn}},pe=function(I,Z){var S=Z.dragging,ze=Z.swipe,ke=Z.touchObject,Pe=Z.listWidth,Ge=Z.touchThreshold,We=Z.verticalSwiping,dt=Z.listHeight,Lt=Z.swipeToSlide,Pt=Z.scrolling,cn=Z.onSwipe,Ne=Z.targetSlide,Re=Z.currentSlide,gt=Z.infinite;if(!S)return ze&&D(I),{};var pt=We?dt/Ge:Pe/Ge,Mt=U(ke,We),xt={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Pt||!ke.swipeLength)return xt;if(ke.swipeLength>pt){D(I),cn&&cn(Mt);var At,Kt,nn=gt?Re:Ne;switch(Mt){case"left":case"up":Kt=nn+wt(Z),At=Lt?tt(Z,Kt):Kt,xt.currentDirection=0;break;case"right":case"down":Kt=nn-wt(Z),At=Lt?tt(Z,Kt):Kt,xt.currentDirection=1;break;default:At=nn}xt.triggerSlideHandler=At}else{var Ot=Ke(Z);xt.trackStyle=Ht((0,z.Z)((0,z.Z)({},Z),{},{left:Ot}))}return xt},He=function(I){for(var Z=I.infinite?I.slideCount*2:I.slideCount,S=I.infinite?I.slidesToShow*-1:0,ze=I.infinite?I.slidesToShow*-1:0,ke=[];S<Z;)ke.push(S),S=ze+I.slidesToScroll,ze+=Math.min(I.slidesToScroll,I.slidesToShow);return ke},tt=function(I,Z){var S=He(I),ze=0;if(Z>S[S.length-1])Z=S[S.length-1];else for(var ke in S){if(Z<S[ke]){Z=ze;break}ze=S[ke]}return Z},wt=function(I){var Z=I.centerMode?I.slideWidth*Math.floor(I.slidesToShow/2):0;if(I.swipeToSlide){var S,ze=I.listRef,ke=ze.querySelectorAll&&ze.querySelectorAll(".slick-slide")||[];if(Array.from(ke).every(function(We){if(I.vertical){if(We.offsetTop+ot(We)/2>I.swipeLeft*-1)return S=We,!1}else if(We.offsetLeft-Z+me(We)/2>I.swipeLeft*-1)return S=We,!1;return!0}),!S)return 0;var Pe=I.rtl===!0?I.slideCount-I.currentSlide:I.currentSlide,Ge=Math.abs(S.dataset.index-Pe)||1;return Ge}else return I.slidesToScroll},It=function(I,Z){return Z.reduce(function(S,ze){return S&&I.hasOwnProperty(ze)},!0)?null:console.error("Keys Missing:",I)},Ft=function(I){It(I,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var Z,S;if(!I.vertical)Z=an(I)*I.slideWidth;else{var ze=I.unslick?I.slideCount:I.slideCount+2*I.slidesToShow;S=ze*I.slideHeight}var ke={opacity:1,transition:"",WebkitTransition:""};if(I.useTransform){var Pe=I.vertical?"translate3d(0px, "+I.left+"px, 0px)":"translate3d("+I.left+"px, 0px, 0px)",Ge=I.vertical?"translate3d(0px, "+I.left+"px, 0px)":"translate3d("+I.left+"px, 0px, 0px)",We=I.vertical?"translateY("+I.left+"px)":"translateX("+I.left+"px)";ke=(0,z.Z)((0,z.Z)({},ke),{},{WebkitTransform:Pe,transform:Ge,msTransform:We})}else I.vertical?ke.top=I.left:ke.left=I.left;return I.fade&&(ke={opacity:1}),Z&&(ke.width=Z),S&&(ke.height=S),window&&!window.addEventListener&&window.attachEvent&&(I.vertical?ke.marginTop=I.left+"px":ke.marginLeft=I.left+"px"),ke},Ht=function(I){It(I,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var Z=Ft(I);return I.useTransform?(Z.WebkitTransition="-webkit-transform "+I.speed+"ms "+I.cssEase,Z.transition="transform "+I.speed+"ms "+I.cssEase):I.vertical?Z.transition="top "+I.speed+"ms "+I.cssEase:Z.transition="left "+I.speed+"ms "+I.cssEase,Z},Ke=function(I){if(I.unslick)return 0;It(I,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var Z=I.slideIndex,S=I.trackRef,ze=I.infinite,ke=I.centerMode,Pe=I.slideCount,Ge=I.slidesToShow,We=I.slidesToScroll,dt=I.slideWidth,Lt=I.listWidth,Pt=I.variableWidth,cn=I.slideHeight,Ne=I.fade,Re=I.vertical,gt=0,pt,Mt,xt=0;if(Ne||I.slideCount===1)return 0;var At=0;if(ze?(At=-en(I),Pe%We!==0&&Z+We>Pe&&(At=-(Z>Pe?Ge-(Z-Pe):Pe%We)),ke&&(At+=parseInt(Ge/2))):(Pe%We!==0&&Z+We>Pe&&(At=Ge-Pe%We),ke&&(At=parseInt(Ge/2))),gt=At*dt,xt=At*cn,Re?pt=Z*cn*-1+xt:pt=Z*dt*-1+gt,Pt===!0){var Kt,nn=S&&S.node;if(Kt=Z+en(I),Mt=nn&&nn.childNodes[Kt],pt=Mt?Mt.offsetLeft*-1:0,ke===!0){Kt=ze?Z+en(I):Z,Mt=nn&&nn.children[Kt],pt=0;for(var Ot=0;Ot<Kt;Ot++)pt-=nn&&nn.children[Ot]&&nn.children[Ot].offsetWidth;pt-=parseInt(I.centerPadding),pt+=Mt&&(Lt-Mt.offsetWidth)/2}}return pt},en=function(I){return I.unslick||!I.infinite?0:I.variableWidth?I.slideCount:I.slidesToShow+(I.centerMode?1:0)},Tt=function(I){return I.unslick||!I.infinite?0:I.slideCount},an=function(I){return I.slideCount===1?1:en(I)+I.slideCount+Tt(I)},qe=function(I){return I.targetSlide>I.currentSlide?I.targetSlide>I.currentSlide+yt(I)?"left":"right":I.targetSlide<I.currentSlide-Fe(I)?"right":"left"},yt=function(I){var Z=I.slidesToShow,S=I.centerMode,ze=I.rtl,ke=I.centerPadding;if(S){var Pe=(Z-1)/2+1;return parseInt(ke)>0&&(Pe+=1),ze&&Z%2===0&&(Pe+=1),Pe}return ze?0:Z-1},Fe=function(I){var Z=I.slidesToShow,S=I.centerMode,ze=I.rtl,ke=I.centerPadding;if(S){var Pe=(Z-1)/2+1;return parseInt(ke)>0&&(Pe+=1),!ze&&Z%2===0&&(Pe+=1),Pe}return ze?Z-1:0},Ae=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},V=Object.keys(F);function je(Ue){return V.reduce(function(I,Z){return Ue.hasOwnProperty(Z)&&(I[Z]=Ue[Z]),I},{})}function Qe(Ue,I,Z){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,Z||[],(0,te.Z)(Ue).constructor):I.apply(Ue,Z))}var J=function(I){var Z,S,ze,ke,Pe;I.rtl?Pe=I.slideCount-1-I.index:Pe=I.index,ze=Pe<0||Pe>=I.slideCount,I.centerMode?(ke=Math.floor(I.slidesToShow/2),S=(Pe-I.currentSlide)%I.slideCount===0,Pe>I.currentSlide-ke-1&&Pe<=I.currentSlide+ke&&(Z=!0)):Z=I.currentSlide<=Pe&&Pe<I.currentSlide+I.slidesToShow;var Ge;I.targetSlide<0?Ge=I.targetSlide+I.slideCount:I.targetSlide>=I.slideCount?Ge=I.targetSlide-I.slideCount:Ge=I.targetSlide;var We=Pe===Ge;return{"slick-slide":!0,"slick-active":Z,"slick-center":S,"slick-cloned":ze,"slick-current":We}},M=function(I){var Z={};return(I.variableWidth===void 0||I.variableWidth===!1)&&(Z.width=I.slideWidth),I.fade&&(Z.position="relative",I.vertical&&I.slideHeight?Z.top=-I.index*parseInt(I.slideHeight):Z.left=-I.index*parseInt(I.slideWidth),Z.opacity=I.currentSlide===I.index?1:0,Z.zIndex=I.currentSlide===I.index?999:998,I.useCSS&&(Z.transition="opacity "+I.speed+"ms "+I.cssEase+", visibility "+I.speed+"ms "+I.cssEase)),Z},Se=function(I,Z){return I.key+"-"+Z},be=function(I){var Z,S=[],ze=[],ke=[],Pe=h.Children.count(I.children),Ge=ne(I),We=ee(I);return h.Children.forEach(I.children,function(dt,Lt){var Pt,cn={message:"children",index:Lt,slidesToScroll:I.slidesToScroll,currentSlide:I.currentSlide};!I.lazyLoad||I.lazyLoad&&I.lazyLoadedList.indexOf(Lt)>=0?Pt=dt:Pt=h.createElement("div",null);var Ne=M((0,z.Z)((0,z.Z)({},I),{},{index:Lt})),Re=Pt.props.className||"",gt=J((0,z.Z)((0,z.Z)({},I),{},{index:Lt}));if(S.push(h.cloneElement(Pt,{key:"original"+Se(Pt,Lt),"data-index":Lt,className:$()(gt,Re),tabIndex:"-1","aria-hidden":!gt["slick-active"],style:(0,z.Z)((0,z.Z)({outline:"none"},Pt.props.style||{}),Ne),onClick:function(xt){Pt.props&&Pt.props.onClick&&Pt.props.onClick(xt),I.focusOnSelect&&I.focusOnSelect(cn)}})),I.infinite&&Pe>1&&I.fade===!1&&!I.unslick){var pt=Pe-Lt;pt<=en(I)&&(Z=-pt,Z>=Ge&&(Pt=dt),gt=J((0,z.Z)((0,z.Z)({},I),{},{index:Z})),ze.push(h.cloneElement(Pt,{key:"precloned"+Se(Pt,Z),"data-index":Z,tabIndex:"-1",className:$()(gt,Re),"aria-hidden":!gt["slick-active"],style:(0,z.Z)((0,z.Z)({},Pt.props.style||{}),Ne),onClick:function(xt){Pt.props&&Pt.props.onClick&&Pt.props.onClick(xt),I.focusOnSelect&&I.focusOnSelect(cn)}}))),Z=Pe+Lt,Z<We&&(Pt=dt),gt=J((0,z.Z)((0,z.Z)({},I),{},{index:Z})),ke.push(h.cloneElement(Pt,{key:"postcloned"+Se(Pt,Z),"data-index":Z,tabIndex:"-1",className:$()(gt,Re),"aria-hidden":!gt["slick-active"],style:(0,z.Z)((0,z.Z)({},Pt.props.style||{}),Ne),onClick:function(xt){Pt.props&&Pt.props.onClick&&Pt.props.onClick(xt),I.focusOnSelect&&I.focusOnSelect(cn)}}))}}),I.rtl?ze.concat(S,ke).reverse():ze.concat(S,ke)},W=function(Ue){function I(){var Z;(0,ae.Z)(this,I);for(var S=arguments.length,ze=new Array(S),ke=0;ke<S;ke++)ze[ke]=arguments[ke];return Z=Qe(this,I,[].concat(ze)),(0,g.Z)(Z,"node",null),(0,g.Z)(Z,"handleRef",function(Pe){Z.node=Pe}),Z}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"render",value:function(){var S=be(this.props),ze=this.props,ke=ze.onMouseEnter,Pe=ze.onMouseOver,Ge=ze.onMouseLeave,We={onMouseEnter:ke,onMouseOver:Pe,onMouseLeave:Ge};return h.createElement("div",(0,ue.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},We),S)}}])}(h.PureComponent);function fe(Ue,I,Z){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,Z||[],(0,te.Z)(Ue).constructor):I.apply(Ue,Z))}var ye=function(I){var Z;return I.infinite?Z=Math.ceil(I.slideCount/I.slidesToScroll):Z=Math.ceil((I.slideCount-I.slidesToShow)/I.slidesToScroll)+1,Z},et=function(Ue){function I(){return(0,ae.Z)(this,I),fe(this,I,arguments)}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"clickHandler",value:function(S,ze){ze.preventDefault(),this.props.clickHandler(S)}},{key:"render",value:function(){for(var S=this.props,ze=S.onMouseEnter,ke=S.onMouseOver,Pe=S.onMouseLeave,Ge=S.infinite,We=S.slidesToScroll,dt=S.slidesToShow,Lt=S.slideCount,Pt=S.currentSlide,cn=ye({slideCount:Lt,slidesToScroll:We,slidesToShow:dt,infinite:Ge}),Ne={onMouseEnter:ze,onMouseOver:ke,onMouseLeave:Pe},Re=[],gt=0;gt<cn;gt++){var pt=(gt+1)*We-1,Mt=Ge?pt:H(pt,0,Lt-1),xt=Mt-(We-1),At=Ge?xt:H(xt,0,Lt-1),Kt=$()({"slick-active":Ge?Pt>=At&&Pt<=Mt:Pt===At}),nn={message:"dots",index:gt,slidesToScroll:We,currentSlide:Pt},Ot=this.clickHandler.bind(this,nn);Re=Re.concat(h.createElement("li",{key:gt,className:Kt},h.cloneElement(this.props.customPaging(gt),{onClick:Ot})))}return h.cloneElement(this.props.appendDots(Re),(0,z.Z)({className:this.props.dotsClass},Ne))}}])}(h.PureComponent);function Ve(Ue,I,Z){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,Z||[],(0,te.Z)(Ue).constructor):I.apply(Ue,Z))}var $e=function(Ue){function I(){return(0,ae.Z)(this,I),Ve(this,I,arguments)}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"clickHandler",value:function(S,ze){ze&&ze.preventDefault(),this.props.clickHandler(S,ze)}},{key:"render",value:function(){var S={"slick-arrow":!0,"slick-prev":!0},ze=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(S["slick-disabled"]=!0,ze=null);var ke={key:"0","data-role":"none",className:$()(S),style:{display:"block"},onClick:ze},Pe={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Ge;return this.props.prevArrow?Ge=h.cloneElement(this.props.prevArrow,(0,z.Z)((0,z.Z)({},ke),Pe)):Ge=h.createElement("button",(0,ue.Z)({key:"0",type:"button"},ke)," ","Previous"),Ge}}])}(h.PureComponent),Ye=function(Ue){function I(){return(0,ae.Z)(this,I),Ve(this,I,arguments)}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"clickHandler",value:function(S,ze){ze&&ze.preventDefault(),this.props.clickHandler(S,ze)}},{key:"render",value:function(){var S={"slick-arrow":!0,"slick-next":!0},ze=this.clickHandler.bind(this,{message:"next"});C(this.props)||(S["slick-disabled"]=!0,ze=null);var ke={key:"1","data-role":"none",className:$()(S),style:{display:"block"},onClick:ze},Pe={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Ge;return this.props.nextArrow?Ge=h.cloneElement(this.props.nextArrow,(0,z.Z)((0,z.Z)({},ke),Pe)):Ge=h.createElement("button",(0,ue.Z)({key:"1",type:"button"},ke)," ","Next"),Ge}}])}(h.PureComponent),lt=_(76374),de=["animating"];function K(Ue,I,Z){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,Z||[],(0,te.Z)(Ue).constructor):I.apply(Ue,Z))}var N=function(Ue){function I(Z){var S;(0,ae.Z)(this,I),S=K(this,I,[Z]),(0,g.Z)(S,"listRefHandler",function(ke){return S.list=ke}),(0,g.Z)(S,"trackRefHandler",function(ke){return S.track=ke}),(0,g.Z)(S,"adaptHeight",function(){if(S.props.adaptiveHeight&&S.list){var ke=S.list.querySelector('[data-index="'.concat(S.state.currentSlide,'"]'));S.list.style.height=ot(ke)+"px"}}),(0,g.Z)(S,"componentDidMount",function(){if(S.props.onInit&&S.props.onInit(),S.props.lazyLoad){var ke=A((0,z.Z)((0,z.Z)({},S.props),S.state));ke.length>0&&(S.setState(function(Ge){return{lazyLoadedList:Ge.lazyLoadedList.concat(ke)}}),S.props.onLazyLoad&&S.props.onLazyLoad(ke))}var Pe=(0,z.Z)({listRef:S.list,trackRef:S.track},S.props);S.updateState(Pe,!0,function(){S.adaptHeight(),S.props.autoplay&&S.autoPlay("playing")}),S.props.lazyLoad==="progressive"&&(S.lazyLoadTimer=setInterval(S.progressiveLazyLoad,1e3)),S.ro=new lt.Z(function(){S.state.animating?(S.onWindowResized(!1),S.callbackTimers.push(setTimeout(function(){return S.onWindowResized()},S.props.speed))):S.onWindowResized()}),S.ro.observe(S.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(Ge){Ge.onfocus=S.props.pauseOnFocus?S.onSlideFocus:null,Ge.onblur=S.props.pauseOnFocus?S.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",S.onWindowResized):window.attachEvent("onresize",S.onWindowResized)}),(0,g.Z)(S,"componentWillUnmount",function(){S.animationEndCallback&&clearTimeout(S.animationEndCallback),S.lazyLoadTimer&&clearInterval(S.lazyLoadTimer),S.callbackTimers.length&&(S.callbackTimers.forEach(function(ke){return clearTimeout(ke)}),S.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",S.onWindowResized):window.detachEvent("onresize",S.onWindowResized),S.autoplayTimer&&clearInterval(S.autoplayTimer),S.ro.disconnect()}),(0,g.Z)(S,"componentDidUpdate",function(ke){if(S.checkImagesLoad(),S.props.onReInit&&S.props.onReInit(),S.props.lazyLoad){var Pe=A((0,z.Z)((0,z.Z)({},S.props),S.state));Pe.length>0&&(S.setState(function(dt){return{lazyLoadedList:dt.lazyLoadedList.concat(Pe)}}),S.props.onLazyLoad&&S.props.onLazyLoad(Pe))}S.adaptHeight();var Ge=(0,z.Z)((0,z.Z)({listRef:S.list,trackRef:S.track},S.props),S.state),We=S.didPropsChange(ke);We&&S.updateState(Ge,We,function(){S.state.currentSlide>=h.Children.count(S.props.children)&&S.changeSlide({message:"index",index:h.Children.count(S.props.children)-S.props.slidesToShow,currentSlide:S.state.currentSlide}),(ke.autoplay!==S.props.autoplay||ke.autoplaySpeed!==S.props.autoplaySpeed)&&(!ke.autoplay&&S.props.autoplay?S.autoPlay("playing"):S.props.autoplay?S.autoPlay("update"):S.pause("paused"))})}),(0,g.Z)(S,"onWindowResized",function(ke){S.debouncedResize&&S.debouncedResize.cancel(),S.debouncedResize=(0,L.D)(50,function(){return S.resizeWindow(ke)}),S.debouncedResize()}),(0,g.Z)(S,"resizeWindow",function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,Pe=!!(S.track&&S.track.node);if(Pe){var Ge=(0,z.Z)((0,z.Z)({listRef:S.list,trackRef:S.track},S.props),S.state);S.updateState(Ge,ke,function(){S.props.autoplay?S.autoPlay("update"):S.pause("paused")}),S.setState({animating:!1}),clearTimeout(S.animationEndCallback),delete S.animationEndCallback}}),(0,g.Z)(S,"updateState",function(ke,Pe,Ge){var We=G(ke);ke=(0,z.Z)((0,z.Z)((0,z.Z)({},ke),We),{},{slideIndex:We.currentSlide});var dt=Ke(ke);ke=(0,z.Z)((0,z.Z)({},ke),{},{left:dt});var Lt=Ft(ke);(Pe||h.Children.count(S.props.children)!==h.Children.count(ke.children))&&(We.trackStyle=Lt),S.setState(We,Ge)}),(0,g.Z)(S,"ssrInit",function(){if(S.props.variableWidth){var ke=0,Pe=0,Ge=[],We=en((0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:S.props.children.length})),dt=Tt((0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:S.props.children.length}));S.props.children.forEach(function(Ot){Ge.push(Ot.props.style.width),ke+=Ot.props.style.width});for(var Lt=0;Lt<We;Lt++)Pe+=Ge[Ge.length-1-Lt],ke+=Ge[Ge.length-1-Lt];for(var Pt=0;Pt<dt;Pt++)ke+=Ge[Pt];for(var cn=0;cn<S.state.currentSlide;cn++)Pe+=Ge[cn];var Ne={width:ke+"px",left:-Pe+"px"};if(S.props.centerMode){var Re="".concat(Ge[S.state.currentSlide],"px");Ne.left="calc(".concat(Ne.left," + (100% - ").concat(Re,") / 2 ) ")}return{trackStyle:Ne}}var gt=h.Children.count(S.props.children),pt=(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:gt}),Mt=en(pt)+Tt(pt)+gt,xt=100/S.props.slidesToShow*Mt,At=100/Mt,Kt=-At*(en(pt)+S.state.currentSlide)*xt/100;S.props.centerMode&&(Kt+=(100-At*xt/100)/2);var nn={width:xt+"%",left:Kt+"%"};return{slideWidth:At+"%",trackStyle:nn}}),(0,g.Z)(S,"checkImagesLoad",function(){var ke=S.list&&S.list.querySelectorAll&&S.list.querySelectorAll(".slick-slide img")||[],Pe=ke.length,Ge=0;Array.prototype.forEach.call(ke,function(We){var dt=function(){return++Ge&&Ge>=Pe&&S.onWindowResized()};if(!We.onclick)We.onclick=function(){return We.parentNode.focus()};else{var Lt=We.onclick;We.onclick=function(Pt){Lt(Pt),We.parentNode.focus()}}We.onload||(S.props.lazyLoad?We.onload=function(){S.adaptHeight(),S.callbackTimers.push(setTimeout(S.onWindowResized,S.props.speed))}:(We.onload=dt,We.onerror=function(){dt(),S.props.onLazyLoadError&&S.props.onLazyLoadError()}))})}),(0,g.Z)(S,"progressiveLazyLoad",function(){for(var ke=[],Pe=(0,z.Z)((0,z.Z)({},S.props),S.state),Ge=S.state.currentSlide;Ge<S.state.slideCount+Tt(Pe);Ge++)if(S.state.lazyLoadedList.indexOf(Ge)<0){ke.push(Ge);break}for(var We=S.state.currentSlide-1;We>=-en(Pe);We--)if(S.state.lazyLoadedList.indexOf(We)<0){ke.push(We);break}ke.length>0?(S.setState(function(dt){return{lazyLoadedList:dt.lazyLoadedList.concat(ke)}}),S.props.onLazyLoad&&S.props.onLazyLoad(ke)):S.lazyLoadTimer&&(clearInterval(S.lazyLoadTimer),delete S.lazyLoadTimer)}),(0,g.Z)(S,"slideHandler",function(ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=S.props,We=Ge.asNavFor,dt=Ge.beforeChange,Lt=Ge.onLazyLoad,Pt=Ge.speed,cn=Ge.afterChange,Ne=S.state.currentSlide,Re=re((0,z.Z)((0,z.Z)((0,z.Z)({index:ke},S.props),S.state),{},{trackRef:S.track,useCSS:S.props.useCSS&&!Pe})),gt=Re.state,pt=Re.nextState;if(gt){dt&&dt(Ne,gt.currentSlide);var Mt=gt.lazyLoadedList.filter(function(xt){return S.state.lazyLoadedList.indexOf(xt)<0});Lt&&Mt.length>0&&Lt(Mt),!S.props.waitForAnimate&&S.animationEndCallback&&(clearTimeout(S.animationEndCallback),cn&&cn(Ne),delete S.animationEndCallback),S.setState(gt,function(){We&&S.asNavForIndex!==ke&&(S.asNavForIndex=ke,We.innerSlider.slideHandler(ke)),pt&&(S.animationEndCallback=setTimeout(function(){var xt=pt.animating,At=(0,p.Z)(pt,de);S.setState(At,function(){S.callbackTimers.push(setTimeout(function(){return S.setState({animating:xt})},10)),cn&&cn(gt.currentSlide),delete S.animationEndCallback})},Pt))})}}),(0,g.Z)(S,"changeSlide",function(ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=(0,z.Z)((0,z.Z)({},S.props),S.state),We=X(Ge,ke);if(!(We!==0&&!We)&&(Pe===!0?S.slideHandler(We,Pe):S.slideHandler(We),S.props.autoplay&&S.autoPlay("update"),S.props.focusOnSelect)){var dt=S.list.querySelectorAll(".slick-current");dt[0]&&dt[0].focus()}}),(0,g.Z)(S,"clickHandler",function(ke){S.clickable===!1&&(ke.stopPropagation(),ke.preventDefault()),S.clickable=!0}),(0,g.Z)(S,"keyHandler",function(ke){var Pe=y(ke,S.props.accessibility,S.props.rtl);Pe!==""&&S.changeSlide({message:Pe})}),(0,g.Z)(S,"selectHandler",function(ke){S.changeSlide(ke)}),(0,g.Z)(S,"disableBodyScroll",function(){var ke=function(Ge){Ge=Ge||window.event,Ge.preventDefault&&Ge.preventDefault(),Ge.returnValue=!1};window.ontouchmove=ke}),(0,g.Z)(S,"enableBodyScroll",function(){window.ontouchmove=null}),(0,g.Z)(S,"swipeStart",function(ke){S.props.verticalSwiping&&S.disableBodyScroll();var Pe=v(ke,S.props.swipe,S.props.draggable);Pe!==""&&S.setState(Pe)}),(0,g.Z)(S,"swipeMove",function(ke){var Pe=O(ke,(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));Pe&&(Pe.swiping&&(S.clickable=!1),S.setState(Pe))}),(0,g.Z)(S,"swipeEnd",function(ke){var Pe=pe(ke,(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));if(Pe){var Ge=Pe.triggerSlideHandler;delete Pe.triggerSlideHandler,S.setState(Pe),Ge!==void 0&&(S.slideHandler(Ge),S.props.verticalSwiping&&S.enableBodyScroll())}}),(0,g.Z)(S,"touchEnd",function(ke){S.swipeEnd(ke),S.clickable=!0}),(0,g.Z)(S,"slickPrev",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"previous"})},0))}),(0,g.Z)(S,"slickNext",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"next"})},0))}),(0,g.Z)(S,"slickGoTo",function(ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ke=Number(ke),isNaN(ke))return"";S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"index",index:ke,currentSlide:S.state.currentSlide},Pe)},0))}),(0,g.Z)(S,"play",function(){var ke;if(S.props.rtl)ke=S.state.currentSlide-S.props.slidesToScroll;else if(C((0,z.Z)((0,z.Z)({},S.props),S.state)))ke=S.state.currentSlide+S.props.slidesToScroll;else return!1;S.slideHandler(ke)}),(0,g.Z)(S,"autoPlay",function(ke){S.autoplayTimer&&clearInterval(S.autoplayTimer);var Pe=S.state.autoplaying;if(ke==="update"){if(Pe==="hovered"||Pe==="focused"||Pe==="paused")return}else if(ke==="leave"){if(Pe==="paused"||Pe==="focused")return}else if(ke==="blur"&&(Pe==="paused"||Pe==="hovered"))return;S.autoplayTimer=setInterval(S.play,S.props.autoplaySpeed+50),S.setState({autoplaying:"playing"})}),(0,g.Z)(S,"pause",function(ke){S.autoplayTimer&&(clearInterval(S.autoplayTimer),S.autoplayTimer=null);var Pe=S.state.autoplaying;ke==="paused"?S.setState({autoplaying:"paused"}):ke==="focused"?(Pe==="hovered"||Pe==="playing")&&S.setState({autoplaying:"focused"}):Pe==="playing"&&S.setState({autoplaying:"hovered"})}),(0,g.Z)(S,"onDotsOver",function(){return S.props.autoplay&&S.pause("hovered")}),(0,g.Z)(S,"onDotsLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),(0,g.Z)(S,"onTrackOver",function(){return S.props.autoplay&&S.pause("hovered")}),(0,g.Z)(S,"onTrackLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),(0,g.Z)(S,"onSlideFocus",function(){return S.props.autoplay&&S.pause("focused")}),(0,g.Z)(S,"onSlideBlur",function(){return S.props.autoplay&&S.state.autoplaying==="focused"&&S.autoPlay("blur")}),(0,g.Z)(S,"render",function(){var ke=$()("slick-slider",S.props.className,{"slick-vertical":S.props.vertical,"slick-initialized":!0}),Pe=(0,z.Z)((0,z.Z)({},S.props),S.state),Ge=P(Pe,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),We=S.props.pauseOnHover;Ge=(0,z.Z)((0,z.Z)({},Ge),{},{onMouseEnter:We?S.onTrackOver:null,onMouseLeave:We?S.onTrackLeave:null,onMouseOver:We?S.onTrackOver:null,focusOnSelect:S.props.focusOnSelect&&S.clickable?S.selectHandler:null});var dt;if(S.props.dots===!0&&S.state.slideCount>=S.props.slidesToShow){var Lt=P(Pe,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Pt=S.props.pauseOnDotsHover;Lt=(0,z.Z)((0,z.Z)({},Lt),{},{clickHandler:S.changeSlide,onMouseEnter:Pt?S.onDotsLeave:null,onMouseOver:Pt?S.onDotsOver:null,onMouseLeave:Pt?S.onDotsLeave:null}),dt=h.createElement(et,Lt)}var cn,Ne,Re=P(Pe,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Re.clickHandler=S.changeSlide,S.props.arrows&&(cn=h.createElement($e,Re),Ne=h.createElement(Ye,Re));var gt=null;S.props.vertical&&(gt={height:S.state.listHeight});var pt=null;S.props.vertical===!1?S.props.centerMode===!0&&(pt={padding:"0px "+S.props.centerPadding}):S.props.centerMode===!0&&(pt={padding:S.props.centerPadding+" 0px"});var Mt=(0,z.Z)((0,z.Z)({},gt),pt),xt=S.props.touchMove,At={className:"slick-list",style:Mt,onClick:S.clickHandler,onMouseDown:xt?S.swipeStart:null,onMouseMove:S.state.dragging&&xt?S.swipeMove:null,onMouseUp:xt?S.swipeEnd:null,onMouseLeave:S.state.dragging&&xt?S.swipeEnd:null,onTouchStart:xt?S.swipeStart:null,onTouchMove:S.state.dragging&&xt?S.swipeMove:null,onTouchEnd:xt?S.touchEnd:null,onTouchCancel:S.state.dragging&&xt?S.swipeEnd:null,onKeyDown:S.props.accessibility?S.keyHandler:null},Kt={className:ke,dir:"ltr",style:S.props.style};return S.props.unslick&&(At={className:"slick-list"},Kt={className:ke,style:S.props.style}),h.createElement("div",Kt,S.props.unslick?"":cn,h.createElement("div",(0,ue.Z)({ref:S.listRefHandler},At),h.createElement(W,(0,ue.Z)({ref:S.trackRefHandler},Ge),S.props.children)),S.props.unslick?"":Ne,S.props.unslick?"":dt)}),S.list=null,S.track=null,S.state=(0,z.Z)((0,z.Z)({},x),{},{currentSlide:S.props.initialSlide,targetSlide:S.props.initialSlide?S.props.initialSlide:0,slideCount:h.Children.count(S.props.children)}),S.callbackTimers=[],S.clickable=!0,S.debouncedResize=null;var ze=S.ssrInit();return S.state=(0,z.Z)((0,z.Z)({},S.state),ze),S}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"didPropsChange",value:function(S){for(var ze=!1,ke=0,Pe=Object.keys(this.props);ke<Pe.length;ke++){var Ge=Pe[ke];if(!S.hasOwnProperty(Ge)){ze=!0;break}if(!((0,w.Z)(S[Ge])==="object"||typeof S[Ge]=="function"||isNaN(S[Ge]))&&S[Ge]!==this.props[Ge]){ze=!0;break}}return ze||h.Children.count(this.props.children)!==h.Children.count(S.children)}}])}(h.Component),Le=_(7861),De=_.n(Le);function Ce(Ue,I,Z){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,Z||[],(0,te.Z)(Ue).constructor):I.apply(Ue,Z))}var st=function(Ue){function I(Z){var S;return(0,ae.Z)(this,I),S=Ce(this,I,[Z]),(0,g.Z)(S,"innerSliderRefHandler",function(ze){return S.innerSlider=ze}),(0,g.Z)(S,"slickPrev",function(){return S.innerSlider.slickPrev()}),(0,g.Z)(S,"slickNext",function(){return S.innerSlider.slickNext()}),(0,g.Z)(S,"slickGoTo",function(ze){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return S.innerSlider.slickGoTo(ze,ke)}),(0,g.Z)(S,"slickPause",function(){return S.innerSlider.pause("paused")}),(0,g.Z)(S,"slickPlay",function(){return S.innerSlider.autoPlay("play")}),S.state={breakpoint:null},S._responsiveMediaHandlers=[],S}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"media",value:function(S,ze){var ke=window.matchMedia(S),Pe=function(We){var dt=We.matches;dt&&ze()};ke.addListener(Pe),Pe(ke),this._responsiveMediaHandlers.push({mql:ke,query:S,listener:Pe})}},{key:"componentDidMount",value:function(){var S=this;if(this.props.responsive){var ze=this.props.responsive.map(function(Pe){return Pe.breakpoint});ze.sort(function(Pe,Ge){return Pe-Ge}),ze.forEach(function(Pe,Ge){var We;Ge===0?We=De()({minWidth:0,maxWidth:Pe}):We=De()({minWidth:ze[Ge-1]+1,maxWidth:Pe}),Ae()&&S.media(We,function(){S.setState({breakpoint:Pe})})});var ke=De()({minWidth:ze.slice(-1)[0]});Ae()&&this.media(ke,function(){S.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(S){S.mql.removeListener(S.listener)})}},{key:"render",value:function(){var S=this,ze,ke;this.state.breakpoint?(ke=this.props.responsive.filter(function(gt){return gt.breakpoint===S.state.breakpoint}),ze=ke[0].settings==="unslick"?"unslick":(0,z.Z)((0,z.Z)((0,z.Z)({},F),this.props),ke[0].settings)):ze=(0,z.Z)((0,z.Z)({},F),this.props),ze.centerMode&&(ze.slidesToScroll>1,ze.slidesToScroll=1),ze.fade&&(ze.slidesToShow>1,ze.slidesToScroll>1,ze.slidesToShow=1,ze.slidesToScroll=1);var Pe=h.Children.toArray(this.props.children);Pe=Pe.filter(function(gt){return typeof gt=="string"?!!gt.trim():!!gt}),ze.variableWidth&&(ze.rows>1||ze.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),ze.variableWidth=!1);for(var Ge=[],We=null,dt=0;dt<Pe.length;dt+=ze.rows*ze.slidesPerRow){for(var Lt=[],Pt=dt;Pt<dt+ze.rows*ze.slidesPerRow;Pt+=ze.slidesPerRow){for(var cn=[],Ne=Pt;Ne<Pt+ze.slidesPerRow&&(ze.variableWidth&&Pe[Ne].props.style&&(We=Pe[Ne].props.style.width),!(Ne>=Pe.length));Ne+=1)cn.push(h.cloneElement(Pe[Ne],{key:100*dt+10*Pt+Ne,tabIndex:-1,style:{width:"".concat(100/ze.slidesPerRow,"%"),display:"inline-block"}}));Lt.push(h.createElement("div",{key:10*dt+Pt},cn))}ze.variableWidth?Ge.push(h.createElement("div",{key:dt,style:{width:We}},Lt)):Ge.push(h.createElement("div",{key:dt},Lt))}if(ze==="unslick"){var Re="regular slider "+(this.props.className||"");return h.createElement("div",{className:Re},Pe)}else Ge.length<=ze.slidesToShow&&!ze.infinite&&(ze.unslick=!0);return h.createElement(N,(0,ue.Z)({style:this.props.style,ref:this.innerSliderRefHandler},je(ze)),Ge)}}])}(h.Component),at=st,Oe=_(48755),Et=_(36237),Vt=_(63356),St=_(16931);const Bt="--dot-duration",se=Ue=>{const{componentCls:I,antCls:Z}=Ue;return{[I]:Object.assign(Object.assign({},(0,Vt.Wf)(Ue)),{".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${Z}-radio-input, input${Z}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${Z}-radio-input, input${Z}-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"}})}},ve=Ue=>{const{componentCls:I,motionDurationSlow:Z,arrowSize:S,arrowOffset:ze}=Ue,ke=Ue.calc(S).div(Math.SQRT2).equal();return{[I]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:S,height:S,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${Z}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:Ue.calc(S).sub(ke).div(2).equal(),insetInlineStart:Ue.calc(S).sub(ke).div(2).equal(),display:"inline-block",width:ke,height:ke,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:ze,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:ze,"&::after":{transform:"rotate(135deg)"}}}}},Ee=Ue=>{const{componentCls:I,dotOffset:Z,dotWidth:S,dotHeight:ze,dotGap:ke,colorBgContainer:Pe,motionDurationSlow:Ge}=Ue;return{[I]:{".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:Z},"&-top":{top:Z,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:S,height:ze,marginInline:ke,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${Ge}`,borderRadius:ze,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:ze,content:'""',background:Pe,borderRadius:ze,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:ze,padding:0,color:"transparent",fontSize:0,background:Pe,border:0,borderRadius:ze,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${Ge}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:Ue.calc(ke).mul(-1).equal(),content:'""'}},"&.slick-active":{width:Ue.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${Bt}) ease-out`}}}}}}},k=Ue=>{const{componentCls:I,dotOffset:Z,arrowOffset:S,marginXXS:ze}=Ue,ke={width:Ue.dotHeight,height:Ue.dotWidth};return{[`${I}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:S,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:S,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:Ue.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:Z},"&-right":{insetInlineEnd:Z,insetInlineStart:"auto"},li:Object.assign(Object.assign({},ke),{margin:`${(0,Et.unit)(ze)} 0`,verticalAlign:"baseline",button:ke,"&::after":Object.assign(Object.assign({},ke),{height:0}),"&.slick-active":Object.assign(Object.assign({},ke),{button:ke,"&::after":Object.assign(Object.assign({},ke),{transition:`height var(${Bt}) ease-out`})})})}}}},Y=Ue=>{const{componentCls:I}=Ue;return[{[`${I}-rtl`]:{direction:"rtl",".slick-dots":{[`${I}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${I}-vertical`]:{".slick-dots":{[`${I}-rtl&`]:{flexDirection:"column"}}}}]},he=Ue=>({arrowSize:16,arrowOffset:Ue.marginXS,dotWidth:16,dotHeight:3,dotGap:Ue.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var ce=(0,St.I$)("Carousel",Ue=>[se(Ue),ve(Ue),Ee(Ue),k(Ue),Y(Ue)],he,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),xe=function(Ue,I){var Z={};for(var S in Ue)Object.prototype.hasOwnProperty.call(Ue,S)&&I.indexOf(S)<0&&(Z[S]=Ue[S]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,S=Object.getOwnPropertySymbols(Ue);ze<S.length;ze++)I.indexOf(S[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ue,S[ze])&&(Z[S[ze]]=Ue[S[ze]]);return Z};const Be="slick-dots",Xe=Ue=>{var{currentSlide:I,slideCount:Z}=Ue,S=xe(Ue,["currentSlide","slideCount"]);return h.createElement("button",Object.assign({type:"button"},S))};var nt=h.forwardRef((Ue,I)=>{const{dots:Z=!0,arrows:S=!1,prevArrow:ze=h.createElement(Xe,{"aria-label":"prev"}),nextArrow:ke=h.createElement(Xe,{"aria-label":"next"}),draggable:Pe=!1,waitForAnimate:Ge=!1,dotPosition:We="bottom",vertical:dt=We==="left"||We==="right",rootClassName:Lt,className:Pt,style:cn,id:Ne,autoplay:Re=!1,autoplaySpeed:gt=3e3}=Ue,pt=xe(Ue,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:Mt,direction:xt,className:At,style:Kt}=(0,Oe.dj)("carousel"),nn=h.useRef(null),Ot=function(En){let Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;nn.current.slickGoTo(En,Tn)};h.useImperativeHandle(I,()=>({goTo:Ot,autoPlay:nn.current.innerSlider.autoPlay,innerSlider:nn.current.innerSlider,prev:nn.current.slickPrev,next:nn.current.slickNext}),[nn.current]);const dn=h.useRef(h.Children.count(Ue.children));h.useEffect(()=>{dn.current!==h.Children.count(Ue.children)&&(Ot(Ue.initialSlide||0,!1),dn.current=h.Children.count(Ue.children))},[Ue.children]);const Qt=Object.assign({vertical:dt,className:$()(Pt,At),style:Object.assign(Object.assign({},Kt),cn),autoplay:!!Re},pt);Qt.effect==="fade"&&(Qt.fade=!0);const $t=Mt("carousel",Qt.prefixCls),Dt=!!Z,Ze=$()(Be,`${Be}-${We}`,typeof Z=="boolean"?!1:Z==null?void 0:Z.className),[_t,Ct,kt]=ce($t),qt=$()($t,{[`${$t}-rtl`]:xt==="rtl",[`${$t}-vertical`]:Qt.vertical},Ct,kt,Lt),ln=Re&&(typeof Re=="object"?Re.dotDuration:!1)?{[Bt]:`${gt}ms`}:{};return _t(h.createElement("div",{className:qt,id:Ne,style:ln},h.createElement(at,Object.assign({ref:nn},Qt,{dots:Dt,dotsClass:Ze,arrows:S,prevArrow:ze,nextArrow:ke,draggable:Pe,verticalSwiping:dt,autoplaySpeed:gt,waitForAnimate:Ge}))))})},64018:function(){var In,Gt,_,h=!1,ue,z;window.PR_SHOULD_USE_CONTINUATION=!0;var ae,B;(function(){var d=window,_e=["break,continue,do,else,for,if,return,while"],te=[_e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[te,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],g=[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"],w=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[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"],E="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",j=[_e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],$=[_e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],le=[_e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],F=[g,p,w,x,L,j,$,le],H=/^(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",A="kwd",Q="com",ne="typ",ee="lit",oe="pun",ge="pln",me="tag",ot="dec",U="src",C="atn",P="atv",G="nocode",re="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function X(Ae){for(var V=0,je=!1,Qe=!1,J=0,M=Ae.length;J<M;++J){var Se=Ae[J];if(Se.ignoreCase)Qe=!0;else if(/[a-z]/i.test(Se.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){je=!0,Qe=!1;break}}var be={b:8,t:9,n:10,v:11,f:12,r:13};function W($e){var Ye=$e.charCodeAt(0);if(Ye!==92)return Ye;var lt=$e.charAt(1);return Ye=be[lt],Ye||("0"<=lt&&lt<="7"?parseInt($e.substring(1),8):lt==="u"||lt==="x"?parseInt($e.substring(2),16):$e.charCodeAt(1))}function fe($e){if($e<32)return($e<16?"\\x0":"\\x")+$e.toString(16);var Ye=String.fromCharCode($e);return Ye==="\\"||Ye==="-"||Ye==="]"||Ye==="^"?"\\"+Ye:Ye}function ye($e){var Ye=$e.substring(1,$e.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),lt=[],de=Ye[0]==="^",K=["["];de&&K.push("^");for(var N=de?1:0,Le=Ye.length;N<Le;++N){var De=Ye[N];if(/\\[bdsw]/i.test(De))K.push(De);else{var Ce=W(De),st;N+2<Le&&Ye[N+1]==="-"?(st=W(Ye[N+2]),N+=2):st=Ce,lt.push([Ce,st]),st<65||Ce>122||(st<65||Ce>90||lt.push([Math.max(65,Ce)|32,Math.min(st,90)|32]),st<97||Ce>122||lt.push([Math.max(97,Ce)&-33,Math.min(st,122)&-33]))}}lt.sort(function(Vt,St){return Vt[0]-St[0]||St[1]-Vt[1]});for(var at=[],Oe=[],N=0;N<lt.length;++N){var Et=lt[N];Et[0]<=Oe[1]+1?Oe[1]=Math.max(Oe[1],Et[1]):at.push(Oe=Et)}for(var N=0;N<at.length;++N){var Et=at[N];K.push(fe(Et[0])),Et[1]>Et[0]&&(Et[1]+1>Et[0]&&K.push("-"),K.push(fe(Et[1])))}return K.push("]"),K.join("")}function et($e){for(var Ye=$e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),lt=Ye.length,de=[],K=0,N=0;K<lt;++K){var Le=Ye[K];if(Le==="(")++N;else if(Le.charAt(0)==="\\"){var De=+Le.substring(1);De&&(De<=N?de[De]=-1:Ye[K]=fe(De))}}for(var K=1;K<de.length;++K)de[K]===-1&&(de[K]=++V);for(var K=0,N=0;K<lt;++K){var Le=Ye[K];if(Le==="(")++N,de[N]||(Ye[K]="(?:");else if(Le.charAt(0)==="\\"){var De=+Le.substring(1);De&&De<=N&&(Ye[K]="\\"+de[De])}}for(var K=0;K<lt;++K)Ye[K]==="^"&&Ye[K+1]!=="^"&&(Ye[K]="");if($e.ignoreCase&&je)for(var K=0;K<lt;++K){var Le=Ye[K],Ce=Le.charAt(0);Le.length>=2&&Ce==="["?Ye[K]=ye(Le):Ce!=="\\"&&(Ye[K]=Le.replace(/[a-zA-Z]/g,function(Oe){var Et=Oe.charCodeAt(0);return"["+String.fromCharCode(Et&-33,Et|32)+"]"}))}return Ye.join("")}for(var Ve=[],J=0,M=Ae.length;J<M;++J){var Se=Ae[J];if(Se.global||Se.multiline)throw new Error(""+Se);Ve.push("(?:"+et(Se)+")")}return new RegExp(Ve.join("|"),Qe?"gi":"g")}function y(Ae,V){var je=/(?:^|\s)nocode(?:\s|$)/,Qe=[],J=0,M=[],Se=0;function be(W){var fe=W.nodeType;if(fe==1){if(je.test(W.className))return;for(var ye=W.firstChild;ye;ye=ye.nextSibling)be(ye);var et=W.nodeName.toLowerCase();(et==="br"||et==="li")&&(Qe[Se]=`
`,M[Se<<1]=J++,M[Se++<<1|1]=W)}else if(fe==3||fe==4){var Ve=W.nodeValue;Ve.length&&(V?Ve=Ve.replace(/\r\n?/g,`
`):Ve=Ve.replace(/[ \t\r\n]+/g," "),Qe[Se]=Ve,M[Se<<1]=J,J+=Ve.length,M[Se++<<1|1]=W)}}return be(Ae),{sourceCode:Qe.join("").replace(/\n$/,""),spans:M}}function v(Ae,V,je,Qe,J){if(je){var M={sourceNode:Ae,pre:1,langExtension:null,numberLines:null,sourceCode:je,spans:null,basePos:V,decorations:null};Qe(M),J.push.apply(J,M.decorations)}}var O=/\S/;function pe(Ae){for(var V=void 0,je=Ae.firstChild;je;je=je.nextSibling){var Qe=je.nodeType;V=Qe===1?V?Ae:je:Qe===3&&O.test(je.nodeValue)?Ae:V}return V===Ae?void 0:V}function He(Ae,V){var je={},Qe;(function(){for(var Se=Ae.concat(V),be=[],W={},fe=0,ye=Se.length;fe<ye;++fe){var et=Se[fe],Ve=et[3];if(Ve)for(var $e=Ve.length;--$e>=0;)je[Ve.charAt($e)]=et;var Ye=et[1],lt=""+Ye;W.hasOwnProperty(lt)||(be.push(Ye),W[lt]=null)}be.push(/[\0-\uffff]/),Qe=X(be)})();var J=V.length,M=function(Se){for(var be=Se.sourceCode,W=Se.basePos,fe=Se.sourceNode,ye=[W,ge],et=0,Ve=be.match(Qe)||[],$e={},Ye=0,lt=Ve.length;Ye<lt;++Ye){var de=Ve[Ye],K=$e[de],N=void 0,Le;if(typeof K=="string")Le=!1;else{var De=je[de.charAt(0)];if(De)N=de.match(De[1]),K=De[0];else{for(var Ce=0;Ce<J;++Ce)if(De=V[Ce],N=de.match(De[1]),N){K=De[0];break}N||(K=ge)}Le=K.length>=5&&K.substring(0,5)==="lang-",Le&&!(N&&typeof N[1]=="string")&&(Le=!1,K=U),Le||($e[de]=K)}var st=et;if(et+=de.length,!Le)ye.push(W+st,K);else{var at=N[1],Oe=de.indexOf(at),Et=Oe+at.length;N[2]&&(Et=de.length-N[2].length,Oe=Et-at.length);var Vt=K.substring(5);v(fe,W+st,de.substring(0,Oe),M,ye),v(fe,W+st+Oe,at,en(Vt,at),ye),v(fe,W+st+Et,de.substring(Et),M,ye)}}Se.decorations=ye};return M}function tt(Ae){var V=[],je=[];Ae.tripleQuotedStrings?V.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ae.multiLineStrings?V.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):V.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ae.verbatimStrings&&je.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Qe=Ae.hashComments;Qe&&(Ae.cStyleComments?(Qe>1?V.push([Q,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):V.push([Q,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),je.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):V.push([Q,/^#[^\r\n]*/,null,"#"])),Ae.cStyleComments&&(je.push([Q,/^\/\/[^\r\n]*/,null]),je.push([Q,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var J=Ae.regexLiterals;if(J){var M=J>1?"":`
\r`,Se=M?".":"[\\S\\s]",be="/(?=[^/*"+M+"])(?:[^/\\x5B\\x5C"+M+"]|\\x5C"+Se+"|\\x5B(?:[^\\x5C\\x5D"+M+"]|\\x5C"+Se+")*(?:\\x5D|$))+/";je.push(["lang-regex",RegExp("^"+re+"("+be+")")])}var W=Ae.types;W&&je.push([ne,W]);var fe=(""+Ae.keywords).replace(/^ | $/g,"");fe.length&&je.push([A,new RegExp("^(?:"+fe.replace(/[\s,]+/g,"|")+")\\b"),null]),V.push([ge,/^\s+/,null,` \r
\xA0`]);var ye="^.[^\\s\\w.$@'\"`/\\\\]*";return Ae.regexLiterals&&(ye+="(?!s*/)"),je.push([ee,/^@[a-z_$][a-z_$@0-9]*/i,null],[ne,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ge,/^[a-z_$][a-z_$@0-9]*/i,null],[ee,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ge,/^\\[\s\S]?/,null],[oe,new RegExp(ye),null]),He(V,je)}var wt=tt({keywords:F,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function It(Ae,V,je){for(var Qe=/(?:^|\s)nocode(?:\s|$)/,J=/\r\n?|\n/,M=Ae.ownerDocument,Se=M.createElement("li");Ae.firstChild;)Se.appendChild(Ae.firstChild);var be=[Se];function W(Ye){var lt=Ye.nodeType;if(lt==1&&!Qe.test(Ye.className))if(Ye.nodeName==="br")fe(Ye),Ye.parentNode&&Ye.parentNode.removeChild(Ye);else for(var de=Ye.firstChild;de;de=de.nextSibling)W(de);else if((lt==3||lt==4)&&je){var K=Ye.nodeValue,N=K.match(J);if(N){var Le=K.substring(0,N.index);Ye.nodeValue=Le;var De=K.substring(N.index+N[0].length);if(De){var Ce=Ye.parentNode;Ce.insertBefore(M.createTextNode(De),Ye.nextSibling)}fe(Ye),Le||Ye.parentNode.removeChild(Ye)}}}function fe(Ye){for(;!Ye.nextSibling;)if(Ye=Ye.parentNode,!Ye)return;function lt(N,Le){var De=Le?N.cloneNode(!1):N,Ce=N.parentNode;if(Ce){var st=lt(Ce,1),at=N.nextSibling;st.appendChild(De);for(var Oe=at;Oe;Oe=at)at=Oe.nextSibling,st.appendChild(Oe)}return De}for(var de=lt(Ye.nextSibling,0),K;(K=de.parentNode)&&K.nodeType===1;)de=K;be.push(de)}for(var ye=0;ye<be.length;++ye)W(be[ye]);V===(V|0)&&be[0].setAttribute("value",V);var et=M.createElement("ol");et.className="linenums";for(var Ve=Math.max(0,V-1|0)||0,ye=0,$e=be.length;ye<$e;++ye)Se=be[ye],Se.className="L"+(ye+Ve)%10,Se.firstChild||Se.appendChild(M.createTextNode("\xA0")),et.appendChild(Se);Ae.appendChild(et)}function Ft(Ae){var V=/\bMSIE\s(\d+)/.exec(navigator.userAgent);V=V&&+V[1]<=8;var je=/\n/g,Qe=Ae.sourceCode,J=Qe.length,M=0,Se=Ae.spans,be=Se.length,W=0,fe=Ae.decorations,ye=fe.length,et=0;fe[ye]=J;var Ve,$e;for($e=Ve=0;$e<ye;)fe[$e]!==fe[$e+2]?(fe[Ve++]=fe[$e++],fe[Ve++]=fe[$e++]):$e+=2;for(ye=Ve,$e=Ve=0;$e<ye;){for(var Ye=fe[$e],lt=fe[$e+1],de=$e+2;de+2<=ye&&fe[de+1]===lt;)de+=2;fe[Ve++]=Ye,fe[Ve++]=lt,$e=de}ye=fe.length=Ve;var K=Ae.sourceNode,N="";K&&(N=K.style.display,K.style.display="none");try{for(var Le=null;W<be;){var De=Se[W],Ce=Se[W+2]||J,st=fe[et+2]||J,de=Math.min(Ce,st),at=Se[W+1],Oe;if(at.nodeType!==1&&(Oe=Qe.substring(M,de))){V&&(Oe=Oe.replace(je,"\r")),at.nodeValue=Oe;var Et=at.ownerDocument,Vt=Et.createElement("span");Vt.className=fe[et+1];var St=at.parentNode;St.replaceChild(Vt,at),Vt.appendChild(at),M<Ce&&(Se[W+1]=at=Et.createTextNode(Qe.substring(de,Ce)),St.insertBefore(at,Vt.nextSibling))}M=de,M>=Ce&&(W+=2),M>=st&&(et+=2)}}finally{K&&(K.style.display=N)}}var Ht={};function Ke(Ae,V){for(var je=V.length;--je>=0;){var Qe=V[je];Ht.hasOwnProperty(Qe)?d.console&&console.warn("cannot override language handler %s",Qe):Ht[Qe]=Ae}}function en(Ae,V){return Ae&&Ht.hasOwnProperty(Ae)||(Ae=/^\s*</.test(V)?"default-markup":"default-code"),Ht[Ae]}Ke(wt,["default-code"]),Ke(He([],[[ge,/^[^<?]+/],[ot,/^<!\w[^>]*(?:>|$)/],[Q,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[oe,/^(?:<[%?]|[%?]>)/],["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"]),Ke(He([[ge,/^[\s]+/,null,` \r
`],[P,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[me,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[C,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[oe,/^[=<>\/]+/],["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"]),Ke(He([],[[P,/^[\s\S]+/]]),["uq.val"]),Ke(tt({keywords:g,hashComments:!0,cStyleComments:!0,types:H}),["c","cc","cpp","cxx","cyc","m"]),Ke(tt({keywords:"null,true,false"}),["json"]),Ke(tt({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:H}),["cs"]),Ke(tt({keywords:w,cStyleComments:!0}),["java"]),Ke(tt({keywords:le,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ke(tt({keywords:j,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ke(tt({keywords:L,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ke(tt({keywords:$,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ke(tt({keywords:x,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ke(tt({keywords:E,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ke(He([],[[D,/^[\s\S]+/]]),["regex"]);function Tt(Ae){var V=Ae.langExtension;try{var je=y(Ae.sourceNode,Ae.pre),Qe=je.sourceCode;Ae.sourceCode=Qe,Ae.spans=je.spans,Ae.basePos=0,en(V,Qe)(Ae),Ft(Ae)}catch(J){d.console&&console.log(J&&J.stack||J)}}function an(Ae,V,je){var Qe=je||!1,J=V||null,M=document.createElement("div");M.innerHTML="<pre>"+Ae+"</pre>",M=M.firstChild,Qe&&It(M,Qe,!0);var Se={langExtension:J,numberLines:Qe,sourceNode:M,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Tt(Se),M.innerHTML}function qe(Ae,V){var je=V||document.body,Qe=je.ownerDocument||document;function J(De){return je.getElementsByTagName(De)}for(var M=[J("pre"),J("code"),J("xmp")],Se=[],be=0;be<M.length;++be)for(var W=0,fe=M[be].length;W<fe;++W)Se.push(M[be][W]);M=null;var ye=Date;ye.now||(ye={now:function(){return+new Date}});var et=0,Ve=/\blang(?:uage)?-([\w.]+)(?!\S)/,$e=/\bprettyprint\b/,Ye=/\bprettyprinted\b/,lt=/pre|xmp/i,de=/^code$/i,K=/^(?:pre|code|xmp)$/i,N={};function Le(){for(var De=d.PR_SHOULD_USE_CONTINUATION?ye.now()+250:1/0;et<Se.length&&ye.now()<De;et++){for(var Ce=Se[et],st=N,at=Ce;at=at.previousSibling;){var Oe=at.nodeType,Et=(Oe===7||Oe===8)&&at.nodeValue;if(Et?!/^\??prettify\b/.test(Et):Oe!==3||/\S/.test(at.nodeValue))break;if(Et){st={},Et.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Xe,ct,nt){st[ct]=nt});break}}var Vt=Ce.className;if((st!==N||$e.test(Vt))&&!Ye.test(Vt)){for(var St=!1,Bt=Ce.parentNode;Bt;Bt=Bt.parentNode){var se=Bt.tagName;if(K.test(se)&&Bt.className&&$e.test(Bt.className)){St=!0;break}}if(!St){Ce.className+=" prettyprinted";var ve=st.lang;if(!ve){ve=Vt.match(Ve);var Ee;!ve&&(Ee=pe(Ce))&&de.test(Ee.tagName)&&(ve=Ee.className.match(Ve)),ve&&(ve=ve[1])}var k;if(lt.test(Ce.tagName))k=1;else{var Y=Ce.currentStyle,he=Qe.defaultView,ce=Y?Y.whiteSpace:he&&he.getComputedStyle?he.getComputedStyle(Ce,null).getPropertyValue("white-space"):0;k=ce&&ce.substring(0,3)==="pre"}var xe=st.linenums;(xe=xe==="true"||+xe)||(xe=Vt.match(/\blinenums\b(?::(\d+))?/),xe=xe?xe[1]&&xe[1].length?+xe[1]:!0:!1),xe&&It(Ce,xe,k);var Be={langExtension:ve,sourceNode:Ce,numberLines:xe,pre:k,sourceCode:null,basePos:null,spans:null,decorations:null};Tt(Be)}}}et<Se.length?d.setTimeout(Le,250):typeof Ae=="function"&&Ae()}Le()}var yt=d.PR={createSimpleLexer:He,registerLangHandler:Ke,sourceDecorator:tt,PR_ATTRIB_NAME:C,PR_ATTRIB_VALUE:P,PR_COMMENT:Q,PR_DECLARATION:ot,PR_KEYWORD:A,PR_LITERAL:ee,PR_NOCODE:G,PR_PLAIN:ge,PR_PUNCTUATION:oe,PR_SOURCE:U,PR_STRING:D,PR_TAG:me,PR_TYPE:ne,prettyPrintOne:h?d.prettyPrintOne=an:ae=an,prettyPrint:B=h?d.prettyPrint=qe:B=qe},Fe=d.define;typeof Fe=="function"&&Fe.amd&&Fe("google-code-prettify",[],function(){return yt})})()},25769:function(In,Gt,_){"use strict";var h=_(98040),ue={"text/plain":"Text","text/html":"Url",default:"Text"},z="Copy to clipboard: #{key}, Enter";function ae(d){var _e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return d.replace(/#{\s*key\s*}/g,_e)}function B(d,_e){var te,o,g,w,p,E,x=!1;_e||(_e={}),te=_e.debug||!1;try{g=h(),w=document.createRange(),p=document.getSelection(),E=document.createElement("span"),E.textContent=d,E.ariaHidden="true",E.style.all="unset",E.style.position="fixed",E.style.top=0,E.style.clip="rect(0, 0, 0, 0)",E.style.whiteSpace="pre",E.style.webkitUserSelect="text",E.style.MozUserSelect="text",E.style.msUserSelect="text",E.style.userSelect="text",E.addEventListener("copy",function(j){if(j.stopPropagation(),_e.format)if(j.preventDefault(),typeof j.clipboardData=="undefined"){te&&console.warn("unable to use e.clipboardData"),te&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var $=ue[_e.format]||ue.default;window.clipboardData.setData($,d)}else j.clipboardData.clearData(),j.clipboardData.setData(_e.format,d);_e.onCopy&&(j.preventDefault(),_e.onCopy(j.clipboardData))}),document.body.appendChild(E),w.selectNodeContents(E),p.addRange(w);var L=document.execCommand("copy");if(!L)throw new Error("copy command was unsuccessful");x=!0}catch(j){te&&console.error("unable to copy using execCommand: ",j),te&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(_e.format||"text",d),_e.onCopy&&_e.onCopy(window.clipboardData),x=!0}catch($){te&&console.error("unable to copy using clipboardData: ",$),te&&console.error("falling back to prompt"),o=ae("message"in _e?_e.message:z),window.prompt(o,d)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(w):p.removeAllRanges()),E&&document.body.removeChild(E),g()}return x}In.exports=B},24334:function(In,Gt,_){var h,ue;(function(z,ae){In.exports=ae(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof _.g!="undefined"?_.g:this,function(z){"use strict";z=z||{};var ae=z.Base64,B="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e=function(C){for(var P={},G=0,re=C.length;G<re;G++)P[C.charAt(G)]=G;return P}(d),te=String.fromCharCode,o=function(C){if(C.length<2){var P=C.charCodeAt(0);return P<128?C:P<2048?te(192|P>>>6)+te(128|P&63):te(224|P>>>12&15)+te(128|P>>>6&63)+te(128|P&63)}else{var P=65536+(C.charCodeAt(0)-55296)*1024+(C.charCodeAt(1)-56320);return te(240|P>>>18&7)+te(128|P>>>12&63)+te(128|P>>>6&63)+te(128|P&63)}},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=function(C){return C.replace(g,o)},p=function(C){var P=[0,2,1][C.length%3],G=C.charCodeAt(0)<<16|(C.length>1?C.charCodeAt(1):0)<<8|(C.length>2?C.charCodeAt(2):0),re=[d.charAt(G>>>18),d.charAt(G>>>12&63),P>=2?"=":d.charAt(G>>>6&63),P>=1?"=":d.charAt(G&63)];return re.join("")},E=z.btoa&&typeof z.btoa=="function"?function(C){return z.btoa(C)}:function(C){if(C.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return C.replace(/[\s\S]{1,3}/g,p)},x=function(C){return E(w(String(C)))},L=function(C){return C.replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,"")},j=function(C,P){return P?L(x(C)):x(C)},$=function(C){return j(C,!0)},le;z.Uint8Array&&(le=function(C,P){for(var G="",re=0,X=C.length;re<X;re+=3){var y=C[re],v=C[re+1],O=C[re+2],pe=y<<16|v<<8|O;G+=d.charAt(pe>>>18)+d.charAt(pe>>>12&63)+(typeof v!="undefined"?d.charAt(pe>>>6&63):"=")+(typeof O!="undefined"?d.charAt(pe&63):"=")}return P?L(G):G});var F=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,H=function(C){switch(C.length){case 4:var P=(7&C.charCodeAt(0))<<18|(63&C.charCodeAt(1))<<12|(63&C.charCodeAt(2))<<6|63&C.charCodeAt(3),G=P-65536;return te((G>>>10)+55296)+te((G&1023)+56320);case 3:return te((15&C.charCodeAt(0))<<12|(63&C.charCodeAt(1))<<6|63&C.charCodeAt(2));default:return te((31&C.charCodeAt(0))<<6|63&C.charCodeAt(1))}},D=function(C){return C.replace(F,H)},A=function(C){var P=C.length,G=P%4,re=(P>0?_e[C.charAt(0)]<<18:0)|(P>1?_e[C.charAt(1)]<<12:0)|(P>2?_e[C.charAt(2)]<<6:0)|(P>3?_e[C.charAt(3)]:0),X=[te(re>>>16),te(re>>>8&255),te(re&255)];return X.length-=[0,0,2,1][G],X.join("")},Q=z.atob&&typeof z.atob=="function"?function(C){return z.atob(C)}:function(C){return C.replace(/\S{1,4}/g,A)},ne=function(C){return Q(String(C).replace(/[^A-Za-z0-9\+\/]/g,""))},ee=function(C){return D(Q(C))},oe=function(C){return String(C).replace(/[-_]/g,function(P){return P=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ge=function(C){return ee(oe(C))},me;z.Uint8Array&&(me=function(C){return Uint8Array.from(ne(oe(C)),function(P){return P.charCodeAt(0)})});var ot=function(){var C=z.Base64;return z.Base64=ae,C};if(z.Base64={VERSION:B,atob:ne,btoa:E,fromBase64:ge,toBase64:j,utob:w,encode:j,encodeURI:$,btou:D,decode:ge,noConflict:ot,fromUint8Array:le,toUint8Array:me},typeof Object.defineProperty=="function"){var U=function(C){return{value:C,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",U(function(){return ge(this)})),Object.defineProperty(String.prototype,"toBase64",U(function(C){return j(this,C)})),Object.defineProperty(String.prototype,"toBase64URI",U(function(){return j(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),In.exports?In.exports.Base64=z.Base64:(h=[],ue=function(){return z.Base64}.apply(Gt,h),ue!==void 0&&(In.exports=ue)),{Base64:z.Base64}})},53184:function(In,Gt,_){"use strict";var h,ue;function z(ae,B,d){var _e=function(te,o){return ae.js_beautify(te,o)};return _e.js=ae.js_beautify,_e.css=B.css_beautify,_e.html=d.html_beautify,_e.js_beautify=ae.js_beautify,_e.css_beautify=B.css_beautify,_e.html_beautify=d.html_beautify,_e}h=[_(58553),_(87804),_(40998)],ue=function(ae,B,d){return z(ae,B,d)}.apply(Gt,h),ue!==void 0&&(In.exports=ue)},87804:function(In,Gt){var _,h;(function(){var ue;(function(){"use strict";var ae=[,,function(te){function o(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var p=new o(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},o.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},o.prototype.has_match=function(p){for(var E=this.__items.length-1;E>=0;E--)if(this.__items[E].match(p))return!0;return!1},o.prototype.set_indent=function(p,E){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=E||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},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(p){this.__items.push(p);var E=p.lastIndexOf(`
`);E!==-1?this.__character_count=p.length-E:this.__character_count+=p.length},o.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},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 p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,E){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),E=E||"",p.indent_level>0&&(E=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=E,this.__base_string_length=E.length}g.prototype.get_indent_size=function(p,E){var x=this.__base_string_length;return E=E||0,p<0&&(x=0),x+=p*this.__indent_size,x+=E,x},g.prototype.get_indent_string=function(p,E){var x=this.__base_string;return E=E||0,p<0&&(p=0,x=""),E+=p*this.__indent_size,this.__ensure_cache(E),x+=this.__cache[E],x},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,E=0,x="";this.__indent_size&&p>=this.__indent_size&&(E=Math.floor(p/this.__indent_size),p-=E*this.__indent_size,x=new Array(E+1).join(this.__indent_string)),p&&(x+=new Array(p+1).join(" ")),this.__cache.push(x)};function w(p,E){this.__indent_cache=new g(p,E),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}w.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},w.prototype.get_line_number=function(){return this.__lines.length},w.prototype.get_indent_string=function(p,E){return this.__indent_cache.get_indent_string(p,E)},w.prototype.get_indent_size=function(p,E){return this.__indent_cache.get_indent_size(p,E)},w.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},w.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},w.prototype.get_code=function(p){this.trim(!0);var E=this.current_line.pop();E&&(E[E.length-1]===`
`&&(E=E.replace(/\n+$/g,"")),this.current_line.push(E)),this._end_with_newline&&this.__add_outputline();var x=this.__lines.join(`
`);return p!==`
`&&(x=x.replace(/[\n]/g,p)),x},w.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},w.prototype.set_indent=function(p,E){return p=p||0,E=E||0,this.next_line.set_indent(p,E),this.__lines.length>1?(this.current_line.set_indent(p,E),!0):(this.current_line.set_indent(),!1)},w.prototype.add_raw_token=function(p){for(var E=0;E<p.newlines;E++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},w.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},w.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},w.prototype.remove_indent=function(p){for(var E=this.__lines.length;p<E;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},w.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},w.prototype.just_added_newline=function(){return this.current_line.is_empty()},w.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},w.prototype.ensure_empty_line_above=function(p,E){for(var x=this.__lines.length-2;x>=0;){var L=this.__lines[x];if(L.is_empty())break;if(L.item(0).indexOf(p)!==0&&L.item(-1)!==E){this.__lines.splice(x+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},te.exports.Output=w},,,,function(te){function o(p,E){this.raw_options=g(p,E),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(p,E){var x=this.raw_options[p],L=E||[];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(p,E){var x=this.raw_options[p],L=x===void 0?!!E:!!x;return L},o.prototype._get_characters=function(p,E){var x=this.raw_options[p],L=E||"";return typeof x=="string"&&(L=x.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),L},o.prototype._get_number=function(p,E){var x=this.raw_options[p];E=parseInt(E,10),isNaN(E)&&(E=0);var L=parseInt(x,10);return isNaN(L)&&(L=E),L},o.prototype._get_selection=function(p,E,x){var L=this._get_selection_list(p,E,x);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return L[0]},o.prototype._get_selection_list=function(p,E,x){if(!E||E.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[E[0]],!this._is_valid_selection(x,E))throw new Error("Invalid Default Value!");var L=this._get_array(p,x);if(!this._is_valid_selection(L,E))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return L},o.prototype._is_valid_selection=function(p,E){return p.length&&E.length&&!p.some(function(x){return E.indexOf(x)===-1})};function g(p,E){var x={};p=w(p);var L;for(L in p)L!==E&&(x[L]=p[L]);if(E&&p[E])for(L in p[E])x[L]=p[E][L];return x}function w(p){var E={},x;for(x in p){var L=x.replace(/-/g,"_");E[L]=p[x]}return E}te.exports.Options=o,te.exports.normalizeOpts=w,te.exports.mergeOpts=g},,function(te){var o=RegExp.prototype.hasOwnProperty("sticky");function g(w){this.__input=w||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var w=null;return this.hasNext()&&(w=this.__input.charAt(this.__position),this.__position+=1),w},g.prototype.peek=function(w){var p=null;return w=w||0,w+=this.__position,w>=0&&w<this.__input_length&&(p=this.__input.charAt(w)),p},g.prototype.__match=function(w,p){w.lastIndex=p;var E=w.exec(this.__input);return E&&!(o&&w.sticky)&&E.index!==p&&(E=null),E},g.prototype.test=function(w,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(w,p):!1},g.prototype.testChar=function(w,p){var E=this.peek(p);return w.lastIndex=0,E!==null&&w.test(E)},g.prototype.match=function(w){var p=this.__match(w,this.__position);return p?this.__position+=p[0].length:p=null,p},g.prototype.read=function(w,p,E){var x="",L;return w&&(L=this.match(w),L&&(x+=L[0])),p&&(L||!w)&&(x+=this.readUntil(p,E)),x},g.prototype.readUntil=function(w,p){var E="",x=this.__position;w.lastIndex=this.__position;var L=w.exec(this.__input);return L?(x=L.index,p&&(x+=L[0].length)):x=this.__input_length,E=this.__input.substring(this.__position,x),this.__position=x,E},g.prototype.readUntilAfter=function(w){return this.readUntil(w,!0)},g.prototype.get_regexp=function(w,p){var E=null,x="g";return p&&o&&(x="y"),typeof w=="string"&&w!==""?E=new RegExp(w,x):w&&(E=new RegExp(w.source,x)),E},g.prototype.get_literal_regexp=function(w){return RegExp(w.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(w){var p=this.__position,E=this.readUntilAfter(w);return this.__position=p,E},g.prototype.lookBack=function(w){var p=this.__position-1;return p>=w.length&&this.__input.substring(p-w.length,p).toLowerCase()===w},te.exports.InputScanner=g},,,,,function(te){function o(g,w){g=typeof g=="string"?g:g.source,w=typeof w=="string"?w:w.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+w,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+w,"g")}o.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var w={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(g);p;)w[p[1]]=p[2],p=this.__directive_pattern.exec(g);return w},o.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},te.exports.Directives=o},,function(te,o,g){var w=g(16).Beautifier,p=g(17).Options;function E(x,L){var j=new w(x,L);return j.beautify()}te.exports=E,te.exports.defaultOptions=function(){return new p}},function(te,o,g){var w=g(17).Options,p=g(2).Output,E=g(8).InputScanner,x=g(13).Directives,L=new x(/\/\*/,/\*\//),j=/\r\n|[\r\n]/,$=/\r\n|[\r\n]/g,le=/\s/,F=/(?:\s|\n)+/g,H=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,D=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function A(Q,ne){this._source_text=Q||"",this._options=new w(ne),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"]}A.prototype.eatString=function(Q){var ne="";for(this._ch=this._input.next();this._ch;){if(ne+=this._ch,this._ch==="\\")ne+=this._input.next();else if(Q.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return ne},A.prototype.eatWhitespace=function(Q){for(var ne=le.test(this._input.peek()),ee=0;le.test(this._input.peek());)this._ch=this._input.next(),Q&&this._ch===`
`&&(ee===0||ee<this._options.max_preserve_newlines)&&(ee++,this._output.add_new_line(!0));return ne},A.prototype.foundNestedPseudoClass=function(){for(var Q=0,ne=1,ee=this._input.peek(ne);ee;){if(ee==="{")return!0;if(ee==="(")Q+=1;else if(ee===")"){if(Q===0)return!1;Q-=1}else if(ee===";"||ee==="}")return!1;ne++,ee=this._input.peek(ne)}return!1},A.prototype.print_string=function(Q){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(Q)},A.prototype.preserveSingleSpace=function(Q){Q&&(this._output.space_before_token=!0)},A.prototype.indent=function(){this._indentLevel++},A.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Q=this._source_text,ne=this._options.eol;ne==="auto"&&(ne=`
`,Q&&j.test(Q||"")&&(ne=Q.match(j)[0])),Q=Q.replace($,`
`);var ee=Q.match(/^[\t ]*/)[0];this._output=new p(this._options,ee),this._input=new E(Q),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var oe=0,ge=!1,me=!1,ot=!1,U=!1,C=!1,P=this._ch,G=!1,re,X,y;re=this._input.read(F),X=re!=="",y=P,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),P=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var v=this._input.read(H),O=L.get_directives(v);O&&O.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(X),this.print_string(this._ch);var pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);pe.match(/[ :]$/)&&(pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(pe),this._output.space_before_token=!0),oe===0&&pe.indexOf(":")!==-1&&(me=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(X),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var He=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);He.match(/[ :]$/)&&(He=this.eatString(": ").replace(/\s+$/,""),this.print_string(He),this._output.space_before_token=!0),oe===0&&He.indexOf(":")!==-1?(me=!0,this.indent()):He in this.NESTED_AT_RULE?(this._nestedLevel+=1,He in this.CONDITIONAL_GROUP_RULE&&(ot=!0)):oe===0&&!me&&(U=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(X),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")me&&(me=!1,this.outdent()),U=!1,ot?(ot=!1,ge=this._indentLevel>=this._nestedLevel):ge=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ge&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(y==="("?this._output.space_before_token=!1:y!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),y==="{"&&this._output.trim(!0),me&&(this.outdent(),me=!1),this.print_string(this._ch),ge=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var tt=0;tt<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;tt++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[tt])){G=!0;break}(ge||ot)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!U&&oe===0?(this.print_string(":"),me||(me=!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 wt=y==='"'||y==="'";this.preserveSingleSpace(wt||X),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")G=!1,oe===0?(me&&(this.outdent(),me=!1),U=!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(),oe++,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(")")),oe&&(oe--,this.outdent()));else{var It=!1;this._input.lookBack("with")&&(It=!0),this.preserveSingleSpace(X||It),this.print_string(this._ch),me&&y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),C=!0):(this.eatWhitespace(),oe++,this.indent())}else if(this._ch===")")oe&&(oe--,this.outdent()),C&&this._input.peek()===";"&&this._options.selector_separator_newline&&(C=!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&&(!me||C)&&oe===0&&!U?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!me&&oe===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&&le.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(X),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),le.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 Ft=y==='"'||y==="'";this.preserveSingleSpace(Ft||X),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&G&&this._output.add_new_line()}var Ht=this._output.get_code(ne);return Ht},te.exports.Beautifier=A},function(te,o,g){var w=g(6).Options;function p(E){w.call(this,E,"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 j=0;j<L.length;j++)L[j]!=="expand"?this.brace_style="collapse":this.brace_style=L[j]}p.prototype=new w,te.exports.Options=p}],B={};function d(te){var o=B[te];if(o!==void 0)return o.exports;var g=B[te]={exports:{}};return ae[te](g,g.exports,d),g.exports}var _e=d(15);ue=_e})();var z=ue;_=[],h=function(){return{css_beautify:z}}.apply(Gt,_),h!==void 0&&(In.exports=h)})()},40998:function(In,Gt,_){var h,ue;(function(){var z;(function(){"use strict";var _e=[,,function(w){function p(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=[]}p.prototype.clone_empty=function(){var L=new p(this.__parent);return L.set_indent(this.__indent_count,this.__alignment_count),L},p.prototype.item=function(L){return L<0?this.__items[this.__items.length+L]:this.__items[L]},p.prototype.has_match=function(L){for(var j=this.__items.length-1;j>=0;j--)if(this.__items[j].match(L))return!0;return!1},p.prototype.set_indent=function(L,j){this.is_empty()&&(this.__indent_count=L||0,this.__alignment_count=j||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var 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},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(L){this.__items.push(L);var j=L.lastIndexOf(`
`);j!==-1?this.__character_count=L.length-j:this.__character_count+=L.length},p.prototype.pop=function(){var L=null;return this.is_empty()||(L=this.__items.pop(),this.__character_count-=L.length),L},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var 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 E(L,j){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)),j=j||"",L.indent_level>0&&(j=new Array(L.indent_level+1).join(this.__indent_string)),this.__base_string=j,this.__base_string_length=j.length}E.prototype.get_indent_size=function(L,j){var $=this.__base_string_length;return j=j||0,L<0&&($=0),$+=L*this.__indent_size,$+=j,$},E.prototype.get_indent_string=function(L,j){var $=this.__base_string;return j=j||0,L<0&&(L=0,$=""),j+=L*this.__indent_size,this.__ensure_cache(j),$+=this.__cache[j],$},E.prototype.__ensure_cache=function(L){for(;L>=this.__cache.length;)this.__add_column()},E.prototype.__add_column=function(){var L=this.__cache.length,j=0,$="";this.__indent_size&&L>=this.__indent_size&&(j=Math.floor(L/this.__indent_size),L-=j*this.__indent_size,$=new Array(j+1).join(this.__indent_string)),L&&($+=new Array(L+1).join(" ")),this.__cache.push($)};function x(L,j){this.__indent_cache=new E(L,j),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 p(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,j){return this.__indent_cache.get_indent_string(L,j)},x.prototype.get_indent_size=function(L,j){return this.__indent_cache.get_indent_size(L,j)},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 j=this.current_line.pop();j&&(j[j.length-1]===`
`&&(j=j.replace(/\n+$/g,"")),this.current_line.push(j)),this._end_with_newline&&this.__add_outputline();var $=this.__lines.join(`
`);return L!==`
`&&($=$.replace(/[\n]/g,L)),$},x.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},x.prototype.set_indent=function(L,j){return L=L||0,j=j||0,this.next_line.set_indent(L,j),this.__lines.length>1?(this.current_line.set_indent(L,j),!0):(this.current_line.set_indent(),!1)},x.prototype.add_raw_token=function(L){for(var j=0;j<L.newlines;j++)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 j=this.__lines.length;L<j;)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,j){for(var $=this.__lines.length-2;$>=0;){var le=this.__lines[$];if(le.is_empty())break;if(le.item(0).indexOf(L)!==0&&le.item(-1)!==j){this.__lines.splice($+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}$--}},w.exports.Output=x},function(w){function p(E,x,L,j){this.type=E,this.text=x,this.comments_before=null,this.newlines=L||0,this.whitespace_before=j||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}w.exports.Token=p},,,function(w){function p(L,j){this.raw_options=E(L,j),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(L,j){var $=this.raw_options[L],le=j||[];return typeof $=="object"?$!==null&&typeof $.concat=="function"&&(le=$.concat()):typeof $=="string"&&(le=$.split(/[^a-zA-Z0-9_\/\-]+/)),le},p.prototype._get_boolean=function(L,j){var $=this.raw_options[L],le=$===void 0?!!j:!!$;return le},p.prototype._get_characters=function(L,j){var $=this.raw_options[L],le=j||"";return typeof $=="string"&&(le=$.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),le},p.prototype._get_number=function(L,j){var $=this.raw_options[L];j=parseInt(j,10),isNaN(j)&&(j=0);var le=parseInt($,10);return isNaN(le)&&(le=j),le},p.prototype._get_selection=function(L,j,$){var le=this._get_selection_list(L,j,$);if(le.length!==1)throw new Error("Invalid Option Value: The option '"+L+`' can only be one of the following values:
`+j+`
You passed in: '`+this.raw_options[L]+"'");return le[0]},p.prototype._get_selection_list=function(L,j,$){if(!j||j.length===0)throw new Error("Selection list cannot be empty.");if($=$||[j[0]],!this._is_valid_selection($,j))throw new Error("Invalid Default Value!");var le=this._get_array(L,$);if(!this._is_valid_selection(le,j))throw new Error("Invalid Option Value: The option '"+L+`' can contain only the following values:
`+j+`
You passed in: '`+this.raw_options[L]+"'");return le},p.prototype._is_valid_selection=function(L,j){return L.length&&j.length&&!L.some(function($){return j.indexOf($)===-1})};function E(L,j){var $={};L=x(L);var le;for(le in L)le!==j&&($[le]=L[le]);if(j&&L[j])for(le in L[j])$[le]=L[j][le];return $}function x(L){var j={},$;for($ in L){var le=$.replace(/-/g,"_");j[le]=L[$]}return j}w.exports.Options=p,w.exports.normalizeOpts=x,w.exports.mergeOpts=E},,function(w){var p=RegExp.prototype.hasOwnProperty("sticky");function E(x){this.__input=x||"",this.__input_length=this.__input.length,this.__position=0}E.prototype.restart=function(){this.__position=0},E.prototype.back=function(){this.__position>0&&(this.__position-=1)},E.prototype.hasNext=function(){return this.__position<this.__input_length},E.prototype.next=function(){var x=null;return this.hasNext()&&(x=this.__input.charAt(this.__position),this.__position+=1),x},E.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},E.prototype.__match=function(x,L){x.lastIndex=L;var j=x.exec(this.__input);return j&&!(p&&x.sticky)&&j.index!==L&&(j=null),j},E.prototype.test=function(x,L){return L=L||0,L+=this.__position,L>=0&&L<this.__input_length?!!this.__match(x,L):!1},E.prototype.testChar=function(x,L){var j=this.peek(L);return x.lastIndex=0,j!==null&&x.test(j)},E.prototype.match=function(x){var L=this.__match(x,this.__position);return L?this.__position+=L[0].length:L=null,L},E.prototype.read=function(x,L,j){var $="",le;return x&&(le=this.match(x),le&&($+=le[0])),L&&(le||!x)&&($+=this.readUntil(L,j)),$},E.prototype.readUntil=function(x,L){var j="",$=this.__position;x.lastIndex=this.__position;var le=x.exec(this.__input);return le?($=le.index,L&&($+=le[0].length)):$=this.__input_length,j=this.__input.substring(this.__position,$),this.__position=$,j},E.prototype.readUntilAfter=function(x){return this.readUntil(x,!0)},E.prototype.get_regexp=function(x,L){var j=null,$="g";return L&&p&&($="y"),typeof x=="string"&&x!==""?j=new RegExp(x,$):x&&(j=new RegExp(x.source,$)),j},E.prototype.get_literal_regexp=function(x){return RegExp(x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},E.prototype.peekUntilAfter=function(x){var L=this.__position,j=this.readUntilAfter(x);return this.__position=L,j},E.prototype.lookBack=function(x){var L=this.__position-1;return L>=x.length&&this.__input.substring(L-x.length,L).toLowerCase()===x},w.exports.InputScanner=E},function(w,p,E){var x=E(8).InputScanner,L=E(3).Token,j=E(10).TokenStream,$=E(11).WhitespacePattern,le={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},F=function(H,D){this._input=new x(H),this._options=D||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new $(this._input)};F.prototype.tokenize=function(){this._input.restart(),this.__tokens=new j,this._reset();for(var H,D=new L(le.START,""),A=null,Q=[],ne=new j;D.type!==le.EOF;){for(H=this._get_next_token(D,A);this._is_comment(H);)ne.add(H),H=this._get_next_token(D,A);ne.isEmpty()||(H.comments_before=ne,ne=new j),H.parent=A,this._is_opening(H)?(Q.push(A),A=H):A&&this._is_closing(H,A)&&(H.opened=A,A.closed=H,A=Q.pop(),H.parent=A),H.previous=D,D.next=H,this.__tokens.add(H),D=H}return this.__tokens},F.prototype._is_first_token=function(){return this.__tokens.isEmpty()},F.prototype._reset=function(){},F.prototype._get_next_token=function(H,D){this._readWhitespace();var A=this._input.read(/.+/g);return A?this._create_token(le.RAW,A):this._create_token(le.EOF,"")},F.prototype._is_comment=function(H){return!1},F.prototype._is_opening=function(H){return!1},F.prototype._is_closing=function(H,D){return!1},F.prototype._create_token=function(H,D){var A=new L(H,D,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return A},F.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},w.exports.Tokenizer=F,w.exports.TOKEN=le},function(w){function p(E){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=E}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var E=null;return this.hasNext()&&(E=this.__tokens[this.__position],this.__position+=1),E},p.prototype.peek=function(E){var x=null;return E=E||0,E+=this.__position,E>=0&&E<this.__tokens_length&&(x=this.__tokens[E]),x},p.prototype.add=function(E){this.__parent_token&&(E.parent=this.__parent_token),this.__tokens.push(E),this.__tokens_length+=1},w.exports.TokenStream=p},function(w,p,E){var x=E(12).Pattern;function L(j,$){x.call(this,j,$),$?this._line_regexp=this._input.get_regexp($._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}L.prototype=new x,L.prototype.__set_whitespace_patterns=function(j,$){j+="\\t ",$+="\\n\\r",this._match_pattern=this._input.get_regexp("["+j+$+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+$+"]")},L.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var j=this._input.read(this._match_pattern);if(j===" ")this.whitespace_before_token=" ";else if(j){var $=this.__split(this._newline_regexp,j);this.newline_count=$.length-1,this.whitespace_before_token=$[this.newline_count]}return j},L.prototype.matching=function(j,$){var le=this._create();return le.__set_whitespace_patterns(j,$),le._update(),le},L.prototype._create=function(){return new L(this._input,this)},L.prototype.__split=function(j,$){j.lastIndex=0;for(var le=0,F=[],H=j.exec($);H;)F.push($.substring(le,H.index)),le=H.index+H[0].length,H=j.exec($);return le<$.length?F.push($.substring(le,$.length)):F.push(""),F},w.exports.WhitespacePattern=L},function(w){function p(E,x){this._input=E,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)}p.prototype.read=function(){var E=this._input.read(this._starting_pattern);return(!this._starting_pattern||E)&&(E+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),E},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(E){var x=this._create();return x._until_after=!0,x._until_pattern=this._input.get_regexp(E),x._update(),x},p.prototype.until=function(E){var x=this._create();return x._until_after=!1,x._until_pattern=this._input.get_regexp(E),x._update(),x},p.prototype.starting_with=function(E){var x=this._create();return x._starting_pattern=this._input.get_regexp(E,!0),x._update(),x},p.prototype.matching=function(E){var x=this._create();return x._match_pattern=this._input.get_regexp(E,!0),x._update(),x},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},w.exports.Pattern=p},function(w){function p(E,x){E=typeof E=="string"?E:E.source,x=typeof x=="string"?x:x.source,this.__directives_block_pattern=new RegExp(E+/ beautify( \w+[:]\w+)+ /.source+x,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(E+/\sbeautify\signore:end\s/.source+x,"g")}p.prototype.get_directives=function(E){if(!E.match(this.__directives_block_pattern))return null;var x={};this.__directive_pattern.lastIndex=0;for(var L=this.__directive_pattern.exec(E);L;)x[L[1]]=L[2],L=this.__directive_pattern.exec(E);return x},p.prototype.readIgnored=function(E){return E.readUntilAfter(this.__directives_end_ignore_pattern)},w.exports.Directives=p},function(w,p,E){var x=E(12).Pattern,L={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function j($,le){x.call(this,$,le),this.__template_pattern=null,this._disabled=Object.assign({},L),this._excluded=Object.assign({},L),le&&(this.__template_pattern=this._input.get_regexp(le.__template_pattern),this._excluded=Object.assign(this._excluded,le._excluded),this._disabled=Object.assign(this._disabled,le._disabled));var F=new x($);this.__patterns={handlebars_comment:F.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:F.starting_with(/{{{/).until_after(/}}}/),handlebars:F.starting_with(/{{/).until_after(/}}/),php:F.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:F.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:F.starting_with(/{%/).until_after(/%}/),django_value:F.starting_with(/{{/).until_after(/}}/),django_comment:F.starting_with(/{#/).until_after(/#}/),smarty:F.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:F.starting_with(/{\*/).until_after(/\*}/),smarty_literal:F.starting_with(/{literal}/).until_after(/{\/literal}/)}}j.prototype=new x,j.prototype._create=function(){return new j(this._input,this)},j.prototype._update=function(){this.__set_templated_pattern()},j.prototype.disable=function($){var le=this._create();return le._disabled[$]=!0,le._update(),le},j.prototype.read_options=function($){var le=this._create();for(var F in L)le._disabled[F]=$.templating.indexOf(F)===-1;return le._update(),le},j.prototype.exclude=function($){var le=this._create();return le._excluded[$]=!0,le._update(),le},j.prototype.read=function(){var $="";this._match_pattern?$=this._input.read(this._starting_pattern):$=this._input.read(this._starting_pattern,this.__template_pattern);for(var le=this._read_template();le;)this._match_pattern?le+=this._input.read(this._match_pattern):le+=this._input.readUntil(this.__template_pattern),$+=le,le=this._read_template();return this._until_after&&($+=this._input.readUntilAfter(this._until_pattern)),$},j.prototype.__set_templated_pattern=function(){var $=[];this._disabled.php||$.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||$.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||($.push(this.__patterns.django._starting_pattern.source),$.push(this.__patterns.django_value._starting_pattern.source),$.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||$.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&$.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+$.join("|")+")")},j.prototype._read_template=function(){var $="",le=this._input.peek();if(le==="<"){var F=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&F==="?"&&($=$||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&F==="%"&&($=$||this.__patterns.erb.read())}else le==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&($=$||this.__patterns.handlebars_comment.read(),$=$||this.__patterns.handlebars_unescaped.read(),$=$||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&($=$||this.__patterns.django_value.read()),this._excluded.django||($=$||this.__patterns.django_comment.read(),$=$||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&($=$||this.__patterns.smarty_comment.read(),$=$||this.__patterns.smarty_literal.read(),$=$||this.__patterns.smarty.read()));return $},w.exports.TemplatablePattern=j},,,,function(w,p,E){var x=E(19).Beautifier,L=E(20).Options;function j($,le,F,H){var D=new x($,le,F,H);return D.beautify()}w.exports=j,w.exports.defaultOptions=function(){return new L}},function(w,p,E){var x=E(20).Options,L=E(2).Output,j=E(21).Tokenizer,$=E(21).TOKEN,le=/\r\n|[\r\n]/,F=/\r\n|[\r\n]/g,H=function(U,C){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=U.max_preserve_newlines,this.preserve_newlines=U.preserve_newlines,this._output=new L(U,C)};H.prototype.current_line_has_match=function(U){return this._output.current_line.has_match(U)},H.prototype.set_space_before_token=function(U,C){this._output.space_before_token=U,this._output.non_breaking_space=C},H.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},H.prototype.add_raw_token=function(U){this._output.add_raw_token(U)},H.prototype.print_preserved_newlines=function(U){var C=0;U.type!==$.TEXT&&U.previous.type!==$.TEXT&&(C=U.newlines?1:0),this.preserve_newlines&&(C=U.newlines<this.max_preserve_newlines+1?U.newlines:this.max_preserve_newlines+1);for(var P=0;P<C;P++)this.print_newline(P>0);return C!==0},H.prototype.traverse_whitespace=function(U){return U.whitespace_before||U.newlines?(this.print_preserved_newlines(U)||(this._output.space_before_token=!0),!0):!1},H.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},H.prototype.print_newline=function(U){this._output.add_new_line(U)},H.prototype.print_token=function(U){U.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(U.text))},H.prototype.indent=function(){this.indent_level++},H.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},H.prototype.get_full_indent=function(U){return U=this.indent_level+(U||0),U<1?"":this._output.get_indent_string(U)};var D=function(U){for(var C=null,P=U.next;P.type!==$.EOF&&U.closed!==P;){if(P.type===$.ATTRIBUTE&&P.text==="type"){P.next&&P.next.type===$.EQUALS&&P.next.next&&P.next.next.type===$.VALUE&&(C=P.next.next.text);break}P=P.next}return C},A=function(U,C){var P=null,G=null;return C.closed?(U==="script"?P="text/javascript":U==="style"&&(P="text/css"),P=D(C)||P,P.search("text/css")>-1?G="css":P.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?G="javascript":P.search(/(text|application|dojo)\/(x-)?(html)/)>-1?G="html":P.search(/test\/null/)>-1&&(G="null"),G):null};function Q(U,C){return C.indexOf(U)!==-1}function ne(U,C,P){this.parent=U||null,this.tag=C?C.tag_name:"",this.indent_level=P||0,this.parser_token=C||null}function ee(U){this._printer=U,this._current_frame=null}ee.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},ee.prototype.record_tag=function(U){var C=new ne(this._current_frame,U,this._printer.indent_level);this._current_frame=C},ee.prototype._try_pop_frame=function(U){var C=null;return U&&(C=U.parser_token,this._printer.indent_level=U.indent_level,this._current_frame=U.parent),C},ee.prototype._get_frame=function(U,C){for(var P=this._current_frame;P&&U.indexOf(P.tag)===-1;){if(C&&C.indexOf(P.tag)!==-1){P=null;break}P=P.parent}return P},ee.prototype.try_pop=function(U,C){var P=this._get_frame([U],C);return this._try_pop_frame(P)},ee.prototype.indent_to_tag=function(U){var C=this._get_frame(U);C&&(this._printer.indent_level=C.indent_level)};function oe(U,C,P,G){this._source_text=U||"",C=C||{},this._js_beautify=P,this._css_beautify=G,this._tag_stack=null;var re=new x(C,"html");this._options=re,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"}oe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var U=this._source_text,C=this._options.eol;this._options.eol==="auto"&&(C=`
`,U&&le.test(U)&&(C=U.match(le)[0])),U=U.replace(F,`
`);var P=U.match(/^[\t ]*/)[0],G={text:"",type:""},re=new ge(this._options),X=new H(this._options,P),y=new j(U,this._options).tokenize();this._tag_stack=new ee(X);for(var v=null,O=y.next();O.type!==$.EOF;)O.type===$.TAG_OPEN||O.type===$.COMMENT?(v=this._handle_tag_open(X,O,re,G,y),re=v):O.type===$.ATTRIBUTE||O.type===$.EQUALS||O.type===$.VALUE||O.type===$.TEXT&&!re.tag_complete?v=this._handle_inside_tag(X,O,re,G):O.type===$.TAG_CLOSE?v=this._handle_tag_close(X,O,re):O.type===$.TEXT?v=this._handle_text(X,O,re):O.type===$.CONTROL_FLOW_OPEN?v=this._handle_control_flow_open(X,O):O.type===$.CONTROL_FLOW_CLOSE?v=this._handle_control_flow_close(X,O):X.add_raw_token(O),G=v,O=y.next();var pe=X._output.get_code(C);return pe},oe.prototype._handle_control_flow_open=function(U,C){var P={text:C.text,type:C.type};return U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),C.newlines?U.print_preserved_newlines(C):U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),U.print_token(C),U.indent(),P},oe.prototype._handle_control_flow_close=function(U,C){var P={text:C.text,type:C.type};return U.deindent(),C.newlines?U.print_preserved_newlines(C):U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),U.print_token(C),P},oe.prototype._handle_tag_close=function(U,C,P){var G={text:C.text,type:C.type};return U.alignment_size=0,P.tag_complete=!0,U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),P.is_unformatted?U.add_raw_token(C):(P.tag_start_char==="<"&&(U.set_space_before_token(C.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&P.has_wrapped_attrs&&U.print_newline(!1)),U.print_token(C)),P.indent_content&&!(P.is_unformatted||P.is_content_unformatted)&&(U.indent(),P.indent_content=!1),!P.is_inline_element&&!(P.is_unformatted||P.is_content_unformatted)&&U.set_wrap_point(),G},oe.prototype._handle_inside_tag=function(U,C,P,G){var re=P.has_wrapped_attrs,X={text:C.text,type:C.type};return U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),P.is_unformatted?U.add_raw_token(C):P.tag_start_char==="{"&&C.type===$.TEXT?U.print_preserved_newlines(C)?(C.newlines=0,U.add_raw_token(C)):U.print_token(C):(C.type===$.ATTRIBUTE?U.set_space_before_token(!0):(C.type===$.EQUALS||C.type===$.VALUE&&C.previous.type===$.EQUALS)&&U.set_space_before_token(!1),C.type===$.ATTRIBUTE&&P.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(U.traverse_whitespace(C),re=re||C.newlines!==0),this._is_wrap_attributes_force&&P.attr_count>=this._options.wrap_attributes_min_attrs&&(G.type!==$.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(U.print_newline(!1),re=!0)),U.print_token(C),re=re||U.previous_token_wrapped(),P.has_wrapped_attrs=re),X},oe.prototype._handle_text=function(U,C,P){var G={text:C.text,type:"TK_CONTENT"};return P.custom_beautifier_name?this._print_custom_beatifier_text(U,C,P):P.is_unformatted||P.is_content_unformatted?U.add_raw_token(C):(U.traverse_whitespace(C),U.print_token(C)),G},oe.prototype._print_custom_beatifier_text=function(U,C,P){var G=this;if(C.text!==""){var re=C.text,X,y=1,v="",O="";P.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?X=this._js_beautify:P.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?X=this._css_beautify:P.custom_beautifier_name==="html"&&(X=function(Ft,Ht){var Ke=new oe(Ft,Ht,G._js_beautify,G._css_beautify);return Ke.beautify()}),this._options.indent_scripts==="keep"?y=0:this._options.indent_scripts==="separate"&&(y=-U.indent_level);var pe=U.get_full_indent(y);if(re=re.replace(/\n[ \t]*$/,""),P.custom_beautifier_name!=="html"&&re[0]==="<"&&re.match(/^(<!--|<!\[CDATA\[)/)){var He=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(re);if(!He){U.add_raw_token(C);return}v=pe+He[1]+`
`,re=He[4],He[5]&&(O=pe+He[5]),re=re.replace(/\n[ \t]*$/,""),(He[2]||He[3].indexOf(`
`)!==-1)&&(He=He[3].match(/[ \t]+$/),He&&(C.whitespace_before=He[0]))}if(re)if(X){var tt=function(){this.eol=`
`};tt.prototype=this._options.raw_options;var wt=new tt;re=X(pe+re,wt)}else{var It=C.whitespace_before;It&&(re=re.replace(new RegExp(`
(`+It+")?","g"),`
`)),re=pe+re.replace(/\n/g,`
`+pe)}v&&(re?re=v+re+`
`+O:re=v+O),U.print_newline(!1),re&&(C.text=re,C.whitespace_before="",C.newlines=0,U.add_raw_token(C),U.print_newline(!0))}},oe.prototype._handle_tag_open=function(U,C,P,G,re){var X=this._get_tag_open_token(C);if((P.is_unformatted||P.is_content_unformatted)&&!P.is_empty_element&&C.type===$.TAG_OPEN&&!X.is_start_tag?(U.add_raw_token(C),X.start_tag_token=this._tag_stack.try_pop(X.tag_name)):(U.traverse_whitespace(C),this._set_tag_position(U,C,X,P,G),X.is_inline_element||U.set_wrap_point(),U.print_token(C)),X.is_start_tag&&this._is_wrap_attributes_force){var y=0,v;do v=re.peek(y),v.type===$.ATTRIBUTE&&(X.attr_count+=1),y+=1;while(v.type!==$.EOF&&v.type!==$.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(X.alignment_size=C.text.length+1),!X.tag_complete&&!X.is_unformatted&&(U.alignment_size=X.alignment_size),X};var ge=function(U,C,P){if(this.parent=C||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="",!P)this.tag_complete=!0;else{var G;this.tag_start_char=P.text[0],this.text=P.text,this.tag_start_char==="<"?(G=P.text.match(/^<([^\s>]*)/),this.tag_check=G?G[1]:""):(G=P.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=G?G[1]:"",(P.text.startsWith("{{#>")||P.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&P.next!==null?this.tag_check=P.next.text.split(" ")[0]:this.tag_check=P.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),P.type===$.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||P.closed&&P.closed.text==="/>";var re=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(re=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!U.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(re)))}};oe.prototype._get_tag_open_token=function(U){var C=new ge(this._options,this._tag_stack.get_parser_token(),U);return C.alignment_size=this._options.wrap_attributes_indent_size,C.is_end_tag=C.is_end_tag||Q(C.tag_check,this._options.void_elements),C.is_empty_element=C.tag_complete||C.is_start_tag&&C.is_end_tag,C.is_unformatted=!C.tag_complete&&Q(C.tag_check,this._options.unformatted),C.is_content_unformatted=!C.is_empty_element&&Q(C.tag_check,this._options.content_unformatted),C.is_inline_element=Q(C.tag_name,this._options.inline)||this._options.inline_custom_elements&&C.tag_name.includes("-")||C.tag_start_char==="{",C},oe.prototype._set_tag_position=function(U,C,P,G,re){if(P.is_empty_element||(P.is_end_tag?P.start_tag_token=this._tag_stack.try_pop(P.tag_name):(this._do_optional_end_element(P)&&(P.is_inline_element||U.print_newline(!1)),this._tag_stack.record_tag(P),(P.tag_name==="script"||P.tag_name==="style")&&!(P.is_unformatted||P.is_content_unformatted)&&(P.custom_beautifier_name=A(P.tag_check,C)))),Q(P.tag_check,this._options.extra_liners)&&(U.print_newline(!1),U._output.just_added_blankline()||U.print_newline(!0)),P.is_empty_element){if(P.tag_start_char==="{"&&P.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),P.indent_content=!0;var X=U.current_line_has_match(/{{#if/);X||U.print_newline(!1)}P.tag_name==="!--"&&re.type===$.TAG_CLOSE&&G.is_end_tag&&P.text.indexOf(`
`)===-1||(P.is_inline_element||P.is_unformatted||U.print_newline(!1),this._calcluate_parent_multiline(U,P))}else if(P.is_end_tag){var y=!1;y=P.start_tag_token&&P.start_tag_token.multiline_content,y=y||!P.is_inline_element&&!(G.is_inline_element||G.is_unformatted)&&!(re.type===$.TAG_CLOSE&&P.start_tag_token===G)&&re.type!=="TK_CONTENT",(P.is_content_unformatted||P.is_unformatted)&&(y=!1),y&&U.print_newline(!1)}else P.indent_content=!P.custom_beautifier_name,P.tag_start_char==="<"&&(P.tag_name==="html"?P.indent_content=this._options.indent_inner_html:P.tag_name==="head"?P.indent_content=this._options.indent_head_inner_html:P.tag_name==="body"&&(P.indent_content=this._options.indent_body_inner_html)),!(P.is_inline_element||P.is_unformatted)&&(re.type!=="TK_CONTENT"||P.is_content_unformatted)&&U.print_newline(!1),this._calcluate_parent_multiline(U,P)},oe.prototype._calcluate_parent_multiline=function(U,C){C.parent&&U._output.just_added_newline()&&!((C.is_inline_element||C.is_unformatted)&&C.parent.is_inline_element)&&(C.parent.multiline_content=!0)};var me=["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"],ot=["a","audio","del","ins","map","noscript","video"];oe.prototype._do_optional_end_element=function(U){var C=null;if(!(U.is_empty_element||!U.is_start_tag||!U.parent)){if(U.tag_name==="body")C=C||this._tag_stack.try_pop("head");else if(U.tag_name==="li")C=C||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(U.tag_name==="dd"||U.tag_name==="dt")C=C||this._tag_stack.try_pop("dt",["dl"]),C=C||this._tag_stack.try_pop("dd",["dl"]);else if(U.parent.tag_name==="p"&&me.indexOf(U.tag_name)!==-1){var P=U.parent.parent;(!P||ot.indexOf(P.tag_name)===-1)&&(C=C||this._tag_stack.try_pop("p"))}else U.tag_name==="rp"||U.tag_name==="rt"?(C=C||this._tag_stack.try_pop("rt",["ruby","rtc"]),C=C||this._tag_stack.try_pop("rp",["ruby","rtc"])):U.tag_name==="optgroup"?C=C||this._tag_stack.try_pop("optgroup",["select"]):U.tag_name==="option"?C=C||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):U.tag_name==="colgroup"?C=C||this._tag_stack.try_pop("caption",["table"]):U.tag_name==="thead"?(C=C||this._tag_stack.try_pop("caption",["table"]),C=C||this._tag_stack.try_pop("colgroup",["table"])):U.tag_name==="tbody"||U.tag_name==="tfoot"?(C=C||this._tag_stack.try_pop("caption",["table"]),C=C||this._tag_stack.try_pop("colgroup",["table"]),C=C||this._tag_stack.try_pop("thead",["table"]),C=C||this._tag_stack.try_pop("tbody",["table"])):U.tag_name==="tr"?(C=C||this._tag_stack.try_pop("caption",["table"]),C=C||this._tag_stack.try_pop("colgroup",["table"]),C=C||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(U.tag_name==="th"||U.tag_name==="td")&&(C=C||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),C=C||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return U.parent=this._tag_stack.get_parser_token(),C}},w.exports.Beautifier=oe},function(w,p,E){var x=E(6).Options;function L(j){x.call(this,j,"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,w.exports.Options=L},function(w,p,E){var x=E(9).Tokenizer,L=E(9).TOKEN,j=E(13).Directives,$=E(14).TemplatablePattern,le=E(12).Pattern,F={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:L.START,RAW:L.RAW,EOF:L.EOF},H=new j(/<\!--/,/-->/),D=function(A,Q){x.call(this,A,Q),this._current_tag_name="";var ne=new $(this._input).read_options(this._options),ee=new le(this._input);if(this.__patterns={word:ne.until(/[\n\r\t <]/),word_control_flow_close_excluded:ne.until(/[\n\r\t <}]/),single_quote:ne.until_after(/'/),double_quote:ne.until_after(/"/),attribute:ne.until(/[\n\r\t =>]|\/>/),element_name:ne.until(/[\n\r\t >\/]/),angular_control_flow_start:ee.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:ee.starting_with(/{{!--/).until_after(/--}}/),handlebars:ee.starting_with(/{{/).until_after(/}}/),handlebars_open:ee.until(/[\n\r\t }]/),handlebars_raw_close:ee.until(/}}/),comment:ee.starting_with(/<!--/).until_after(/-->/),cdata:ee.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:ee.starting_with(/<!\[/).until_after(/]>/),processing:ee.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 oe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=ee.matching(oe).until_after(oe)}};D.prototype=new x,D.prototype._is_comment=function(A){return!1},D.prototype._is_opening=function(A){return A.type===F.TAG_OPEN||A.type===F.CONTROL_FLOW_OPEN},D.prototype._is_closing=function(A,Q){return A.type===F.TAG_CLOSE&&Q&&((A.text===">"||A.text==="/>")&&Q.text[0]==="<"||A.text==="}}"&&Q.text[0]==="{"&&Q.text[1]==="{")||A.type===F.CONTROL_FLOW_CLOSE&&A.text==="}"&&Q.text.endsWith("{")},D.prototype._reset=function(){this._current_tag_name=""},D.prototype._get_next_token=function(A,Q){var ne=null;this._readWhitespace();var ee=this._input.peek();return ee===null?this._create_token(F.EOF,""):(ne=ne||this._read_open_handlebars(ee,Q),ne=ne||this._read_attribute(ee,A,Q),ne=ne||this._read_close(ee,Q),ne=ne||this._read_script_and_style(ee,A),ne=ne||this._read_control_flows(ee,Q),ne=ne||this._read_raw_content(ee,A,Q),ne=ne||this._read_content_word(ee,Q),ne=ne||this._read_comment_or_cdata(ee),ne=ne||this._read_processing(ee),ne=ne||this._read_open(ee,Q),ne=ne||this._create_token(F.UNKNOWN,this._input.next()),ne)},D.prototype._read_comment_or_cdata=function(A){var Q=null,ne=null,ee=null;if(A==="<"){var oe=this._input.peek(1);oe==="!"&&(ne=this.__patterns.comment.read(),ne?(ee=H.get_directives(ne),ee&&ee.ignore==="start"&&(ne+=H.readIgnored(this._input))):ne=this.__patterns.cdata.read()),ne&&(Q=this._create_token(F.COMMENT,ne),Q.directives=ee)}return Q},D.prototype._read_processing=function(A){var Q=null,ne=null,ee=null;if(A==="<"){var oe=this._input.peek(1);(oe==="!"||oe==="?")&&(ne=this.__patterns.conditional_comment.read(),ne=ne||this.__patterns.processing.read()),ne&&(Q=this._create_token(F.COMMENT,ne),Q.directives=ee)}return Q},D.prototype._read_open=function(A,Q){var ne=null,ee=null;return(!Q||Q.type===F.CONTROL_FLOW_OPEN)&&A==="<"&&(ne=this._input.next(),this._input.peek()==="/"&&(ne+=this._input.next()),ne+=this.__patterns.element_name.read(),ee=this._create_token(F.TAG_OPEN,ne)),ee},D.prototype._read_open_handlebars=function(A,Q){var ne=null,ee=null;return(!Q||Q.type===F.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&A==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(ne=this.__patterns.handlebars_comment.read(),ne=ne||this.__patterns.handlebars.read(),ee=this._create_token(F.COMMENT,ne)):(ne=this.__patterns.handlebars_open.read(),ee=this._create_token(F.TAG_OPEN,ne))),ee},D.prototype._read_control_flows=function(A,Q){var ne="",ee=null;if(!this._options.templating.includes("angular"))return ee;if(A==="@"){if(ne=this.__patterns.angular_control_flow_start.read(),ne==="")return ee;for(var oe=ne.endsWith("(")?1:0,ge=0;!(ne.endsWith("{")&&oe===ge);){var me=this._input.next();if(me===null)break;me==="("?oe++:me===")"&&ge++,ne+=me}ee=this._create_token(F.CONTROL_FLOW_OPEN,ne)}else A==="}"&&Q&&Q.type===F.CONTROL_FLOW_OPEN&&(ne=this._input.next(),ee=this._create_token(F.CONTROL_FLOW_CLOSE,ne));return ee},D.prototype._read_close=function(A,Q){var ne=null,ee=null;return Q&&Q.type===F.TAG_OPEN&&(Q.text[0]==="<"&&(A===">"||A==="/"&&this._input.peek(1)===">")?(ne=this._input.next(),A==="/"&&(ne+=this._input.next()),ee=this._create_token(F.TAG_CLOSE,ne)):Q.text[0]==="{"&&A==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),ee=this._create_token(F.TAG_CLOSE,"}}"))),ee},D.prototype._read_attribute=function(A,Q,ne){var ee=null,oe="";if(ne&&ne.text[0]==="<")if(A==="=")ee=this._create_token(F.EQUALS,this._input.next());else if(A==='"'||A==="'"){var ge=this._input.next();A==='"'?ge+=this.__patterns.double_quote.read():ge+=this.__patterns.single_quote.read(),ee=this._create_token(F.VALUE,ge)}else oe=this.__patterns.attribute.read(),oe&&(Q.type===F.EQUALS?ee=this._create_token(F.VALUE,oe):ee=this._create_token(F.ATTRIBUTE,oe));return ee},D.prototype._is_content_unformatted=function(A){return this._options.void_elements.indexOf(A)===-1&&(this._options.content_unformatted.indexOf(A)!==-1||this._options.unformatted.indexOf(A)!==-1)},D.prototype._read_raw_content=function(A,Q,ne){var ee="";if(ne&&ne.text[0]==="{")ee=this.__patterns.handlebars_raw_close.read();else if(Q.type===F.TAG_CLOSE&&Q.opened.text[0]==="<"&&Q.text[0]!=="/"){var oe=Q.opened.text.substr(1).toLowerCase();this._is_content_unformatted(oe)&&(ee=this._input.readUntil(new RegExp("</"+oe+"[\\n\\r\\t ]*?>","ig")))}return ee?this._create_token(F.TEXT,ee):null},D.prototype._read_script_and_style=function(A,Q){if(Q.type===F.TAG_CLOSE&&Q.opened.text[0]==="<"&&Q.text[0]!=="/"){var ne=Q.opened.text.substr(1).toLowerCase();if(ne==="script"||ne==="style"){var ee=this._read_comment_or_cdata(A);if(ee)return ee.type=F.TEXT,ee;var oe=this._input.readUntil(new RegExp("</"+ne+"[\\n\\r\\t ]*?>","ig"));if(oe)return this._create_token(F.TEXT,oe)}}return null},D.prototype._read_content_word=function(A,Q){var ne="";return this._options.unformatted_content_delimiter&&A===this._options.unformatted_content_delimiter[0]&&(ne=this.__patterns.unformatted_content_delimiter.read()),ne||(ne=Q&&Q.type===F.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),ne?this._create_token(F.TEXT,ne):null},w.exports.Tokenizer=D,w.exports.TOKEN=F}],te={};function o(w){var p=te[w];if(p!==void 0)return p.exports;var E=te[w]={exports:{}};return _e[w](E,E.exports,o),E.exports}var g=o(18);z=g})();var ae=z;if(1)h=[_,_(58553),_(87804)],ue=function(_e){var te=_(58553),o=_(87804);return{html_beautify:function(g,w){return ae(g,w,te.js_beautify,o.css_beautify)}}}.apply(Gt,h),ue!==void 0&&(In.exports=ue);else var B,d})()},58553:function(In,Gt){var _,h;(function(){var ue;(function(){"use strict";var ae=[function(te,o,g){var w=g(1).Beautifier,p=g(5).Options;function E(x,L){var j=new w(x,L);return j.beautify()}te.exports=E,te.exports.defaultOptions=function(){return new p}},function(te,o,g){var w=g(2).Output,p=g(3).Token,E=g(4),x=g(5).Options,L=g(7).Tokenizer,j=g(7).line_starters,$=g(7).positionable_operators,le=g(7).TOKEN;function F(v,O){return O.indexOf(v)!==-1}function H(v){return v.replace(/^\s+/g,"")}function D(v){for(var O={},pe=0;pe<v.length;pe++)O[v[pe].replace(/-/g,"_")]=v[pe];return O}function A(v,O){return v&&v.type===le.RESERVED&&v.text===O}function Q(v,O){return v&&v.type===le.RESERVED&&F(v.text,O)}var ne=["case","return","do","if","throw","else","await","break","continue","async"],ee=["before-newline","after-newline","preserve-newline"],oe=D(ee),ge=[oe.before_newline,oe.preserve_newline],me={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ot(v,O){O.multiline_frame||O.mode===me.ForInitializer||O.mode===me.Conditional||v.remove_indent(O.start_line_index)}function U(v){v=v.replace(E.allLineBreaks,`
`);for(var O=[],pe=v.indexOf(`
`);pe!==-1;)O.push(v.substring(0,pe)),v=v.substring(pe+1),pe=v.indexOf(`
`);return v.length&&O.push(v),O}function C(v){return v===me.ArrayLiteral}function P(v){return F(v,[me.Expression,me.ForInitializer,me.Conditional])}function G(v,O){for(var pe=0;pe<v.length;pe++){var He=v[pe].trim();if(He.charAt(0)!==O)return!1}return!0}function re(v,O){for(var pe=0,He=v.length,tt;pe<He;pe++)if(tt=v[pe],tt&&tt.indexOf(O)!==0)return!1;return!0}function X(v,O){O=O||{},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(O)}X.prototype.create_flags=function(v,O){var pe=0;v&&(pe=v.indentation_level,!this._output.just_added_newline()&&v.line_indent_level>pe&&(pe=v.line_indent_level));var He={mode:O,parent:v,last_token:v?v.last_token:new p(le.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:pe,alignment:0,line_indent_level:v?v.line_indent_level:pe,start_line_index:this._output.get_line_number(),ternary_depth:0};return He},X.prototype._reset=function(v){var O=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new w(this._options,O),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(me.BlockStatement);var pe=new L(v,this._options);return this._tokens=pe.tokenize(),v},X.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,O=this._reset(this._source_text),pe=this._options.eol;this._options.eol==="auto"&&(pe=`
`,O&&E.lineBreak.test(O||"")&&(pe=O.match(E.lineBreak)[0]));for(var He=this._tokens.next();He;)this.handle_token(He),this._last_last_text=this._flags.last_token.text,this._flags.last_token=He,He=this._tokens.next();return v=this._output.get_code(pe),v},X.prototype.handle_token=function(v,O){v.type===le.START_EXPR?this.handle_start_expr(v):v.type===le.END_EXPR?this.handle_end_expr(v):v.type===le.START_BLOCK?this.handle_start_block(v):v.type===le.END_BLOCK?this.handle_end_block(v):v.type===le.WORD?this.handle_word(v):v.type===le.RESERVED?this.handle_word(v):v.type===le.SEMICOLON?this.handle_semicolon(v):v.type===le.STRING?this.handle_string(v):v.type===le.EQUALS?this.handle_equals(v):v.type===le.OPERATOR?this.handle_operator(v):v.type===le.COMMA?this.handle_comma(v):v.type===le.BLOCK_COMMENT?this.handle_block_comment(v,O):v.type===le.COMMENT?this.handle_comment(v,O):v.type===le.DOT?this.handle_dot(v):v.type===le.EOF?this.handle_eof(v):v.type===le.UNKNOWN?this.handle_unknown(v,O):this.handle_unknown(v,O)},X.prototype.handle_whitespace_and_comments=function(v,O){var pe=v.newlines,He=this._options.keep_array_indentation&&C(this._flags.mode);if(v.comments_before)for(var tt=v.comments_before.next();tt;)this.handle_whitespace_and_comments(tt,O),this.handle_token(tt,O),tt=v.comments_before.next();if(He)for(var wt=0;wt<pe;wt+=1)this.print_newline(wt>0,O);else if(this._options.max_preserve_newlines&&pe>this._options.max_preserve_newlines&&(pe=this._options.max_preserve_newlines),this._options.preserve_newlines&&pe>1){this.print_newline(!1,O);for(var It=1;It<pe;It+=1)this.print_newline(!0,O)}};var y=["async","break","continue","return","throw","yield"];X.prototype.allow_wrap_or_preserved_newline=function(v,O){if(O=O===void 0?!1:O,!this._output.just_added_newline()){var pe=this._options.preserve_newlines&&v.newlines||O,He=F(this._flags.last_token.text,$)||F(v.text,$);if(He){var tt=F(this._flags.last_token.text,$)&&F(this._options.operator_position,ge)||F(v.text,$);pe=pe&&tt}if(pe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Q(this._flags.last_token,y))return;this._output.set_wrap_point()}}},X.prototype.print_newline=function(v,O){if(!O&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==le.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var pe=this._tokens.peek();this._flags.mode===me.Statement&&!(this._flags.if_block&&A(pe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(v)&&(this._flags.multiline_frame=!0)},X.prototype.print_token_line_indentation=function(v){this._output.just_added_newline()&&(this._options.keep_array_indentation&&v.newlines&&(v.text==="["||C(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))},X.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===le.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var O=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(O),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)},X.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},X.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))},X.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)},X.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===me.Statement&&ot(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},X.prototype.start_of_object_property=function(){return this._flags.parent.mode===me.ObjectLiteral&&this._flags.mode===me.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Q(this._flags.last_token,["get","set"]))},X.prototype.start_of_statement=function(v){var O=!1;return O=O||Q(this._flags.last_token,["var","let","const"])&&v.type===le.WORD,O=O||A(this._flags.last_token,"do"),O=O||!(this._flags.parent.mode===me.ObjectLiteral&&this._flags.mode===me.Statement)&&Q(this._flags.last_token,y)&&!v.newlines,O=O||A(this._flags.last_token,"else")&&!(A(v,"if")&&!v.comments_before),O=O||this._flags.last_token.type===le.END_EXPR&&(this._previous_flags.mode===me.ForInitializer||this._previous_flags.mode===me.Conditional),O=O||this._flags.last_token.type===le.WORD&&this._flags.mode===me.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==le.WORD&&v.type!==le.RESERVED,O=O||this._flags.mode===me.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Q(this._flags.last_token,["get","set"])),O?(this.set_mode(me.Statement),this.indent(),this.handle_whitespace_and_comments(v,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v,Q(v,["do","for","if","while"])),!0):!1},X.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var O=me.Expression;if(v.text==="["){if(this._flags.last_token.type===le.WORD||this._flags.last_token.text===")"){Q(this._flags.last_token,j)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(O),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}O=me.ArrayLiteral,C(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),F(this._flags.last_token.type,[le.START_EXPR,le.END_EXPR,le.WORD,le.OPERATOR,le.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===le.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,O=me.ForInitializer):F(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,O=me.Conditional):F(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:(F(this._flags.last_token.text,j)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v);else if(this._flags.last_token.type===le.WORD){this._output.space_before_token=!1;var pe=this._tokens.peek(-3);if(this._options.space_after_named_function&&pe){var He=this._tokens.peek(-4);Q(pe,["async","function"])||pe.text==="*"&&Q(He,["async","function"])?this._output.space_before_token=!0:this._flags.mode===me.ObjectLiteral?(pe.text==="{"||pe.text===","||pe.text==="*"&&(He.text==="{"||He.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===le.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===me.ObjectLiteral&&F(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===le.START_BLOCK?this.print_newline():(this._flags.last_token.type===le.END_EXPR||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===le.COMMA)&&this.allow_wrap_or_preserved_newline(v,v.newlines),this.print_token(v),this.set_mode(O),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},X.prototype.handle_end_expr=function(v){for(;this._flags.mode===me.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(v,v.text==="]"&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===le.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(),ot(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===me.Conditional&&(this._previous_flags.mode=me.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},X.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var O=this._tokens.peek(),pe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===le.END_EXPR?(this.set_mode(me.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(me.BlockStatement):pe&&(F(pe.text,[":",","])&&F(O.type,[le.STRING,le.WORD,le.RESERVED])||F(O.text,["get","set","..."])&&F(pe.type,[le.WORD,le.RESERVED]))?F(this._last_last_text,["class","interface"])&&!F(pe.text,[":",","])?this.set_mode(me.BlockStatement):this.set_mode(me.ObjectLiteral):this._flags.last_token.type===le.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(me.BlockStatement):F(this._flags.last_token.type,[le.EQUALS,le.START_EXPR,le.COMMA,le.OPERATOR])||Q(this._flags.last_token,["return","throw","import","default"])?this.set_mode(me.ObjectLiteral):this.set_mode(me.BlockStatement),this._flags.last_token&&Q(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var He=!O.comments_before&&O.text==="}",tt=He&&this._flags.last_word==="function"&&this._flags.last_token.type===le.END_EXPR;if(this._options.brace_preserve_inline){var wt=0,It=null;this._flags.inline_frame=!0;do if(wt+=1,It=this._tokens.peek(wt-1),It.newlines){this._flags.inline_frame=!1;break}while(It.type!==le.EOF&&!(It.type===le.END_BLOCK&&It.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==le.OPERATOR&&(tt||this._flags.last_token.type===le.EQUALS||Q(this._flags.last_token,ne)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(C(this._previous_flags.mode)&&(this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.COMMA)&&((this._flags.last_token.type===le.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.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!==le.OPERATOR&&this._flags.last_token.type!==le.START_EXPR&&(F(this._flags.last_token.type,[le.START_BLOCK,le.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(v),this.indent(),!He&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},X.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===me.Statement;)this.restore_mode();var O=this._flags.last_token.type===le.START_BLOCK;this._flags.inline_frame&&!O?this._output.space_before_token=!0:this._options.brace_style==="expand"?O||this.print_newline():O||(C(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)},X.prototype.handle_word=function(v){if(v.type===le.RESERVED){if(F(v.text,["set","get"])&&this._flags.mode!==me.ObjectLiteral)v.type=le.WORD;else if(v.text==="import"&&F(this._tokens.peek().text,["(","."]))v.type=le.WORD;else if(F(v.text,["as","from"])&&!this._flags.import_block)v.type=le.WORD;else if(this._flags.mode===me.ObjectLiteral){var O=this._tokens.peek();O.text===":"&&(v.type=le.WORD)}}if(this.start_of_statement(v)?Q(this._flags.last_token,["var","let","const"])&&v.type===le.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!P(this._flags.mode)&&(this._flags.last_token.type!==le.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==le.EQUALS&&(this._options.preserve_newlines||!Q(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(A(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&&A(v,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===me.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Q(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===le.COMMA||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR)&&!this.start_of_object_property()&&!(F(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===me.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(v),A(v,"function")){(F(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(F(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===le.OPERATOR))&&!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD?Q(this._flags.last_token,["get","set","new","export"])||Q(this._flags.last_token,y)?this._output.space_before_token=!0:A(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===le.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(P(this._flags.mode)||C(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var pe="NONE";if(this._flags.last_token.type===le.END_BLOCK?this._previous_flags.inline_frame?pe="SPACE":Q(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?pe="NEWLINE":(pe="SPACE",this._output.space_before_token=!0):pe="NEWLINE":this._flags.last_token.type===le.SEMICOLON&&this._flags.mode===me.BlockStatement?pe="NEWLINE":this._flags.last_token.type===le.SEMICOLON&&P(this._flags.mode)?pe="SPACE":this._flags.last_token.type===le.STRING?pe="NEWLINE":this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===me.ObjectLiteral&&F(this._last_last_text,["{",","]))?pe="SPACE":this._flags.last_token.type===le.START_BLOCK?this._flags.inline_frame?pe="SPACE":pe="NEWLINE":this._flags.last_token.type===le.END_EXPR&&(this._output.space_before_token=!0,pe="NEWLINE"),Q(v,j)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?pe="SPACE":pe="NEWLINE"),Q(v,["else","catch","finally"]))if((!(this._flags.last_token.type===le.END_BLOCK&&this._previous_flags.mode===me.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 He=this._output.current_line;He.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else pe==="NEWLINE"?Q(this._flags.last_token,ne)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Q(v,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==le.END_EXPR?(this._flags.last_token.type!==le.START_EXPR||!Q(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(A(v,"if")&&A(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Q(v,j)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():pe==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===le.WORD||v.previous.type===le.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===le.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&&A(v,"from")&&(this._flags.import_block=!1))},X.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var O=this._tokens.peek();this._flags.mode===me.Statement&&!(this._flags.if_block&&A(O,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},X.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===le.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v):v.text.startsWith("`")&&this._flags.last_token.type===le.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},X.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},X.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?(P(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===me.ObjectLiteral||this._flags.mode===me.Statement&&this._flags.parent.mode===me.ObjectLiteral?(this._flags.mode===me.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)},X.prototype.handle_operator=function(v){var O=v.text==="*"&&(Q(this._flags.last_token,["function","yield"])||F(this._flags.last_token.type,[le.START_BLOCK,le.COMMA,le.END_BLOCK,le.SEMICOLON])),pe=F(v.text,["-","+"])&&(F(this._flags.last_token.type,[le.START_BLOCK,le.START_EXPR,le.EQUALS,le.OPERATOR])||F(this._flags.last_token.text,j)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var He=!O;this.handle_whitespace_and_comments(v,He)}if(v.text==="*"&&this._flags.last_token.type===le.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(F(v.text,["-","+"])&&this.start_of_object_property()){this.print_token(v);return}if(this._flags.last_token.type===le.OPERATOR&&F(this._options.operator_position,ge)&&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!==le.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var tt=!0,wt=!0,It=!1;if(v.text===":"?this._flags.ternary_depth===0?tt=!1:(this._flags.ternary_depth-=1,It=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!pe&&!O&&this._options.preserve_newlines&&F(v.text,$)){var Ft=v.text===":",Ht=Ft&&It,Ke=Ft&&!It;switch(this._options.operator_position){case oe.before_newline:this._output.space_before_token=!Ke,this.print_token(v),(!Ft||Ht)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case oe.after_newline:this._output.space_before_token=!0,!Ft||Ht?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 oe.preserve_newline:Ke||this.allow_wrap_or_preserved_newline(v),tt=!(this._output.just_added_newline()||Ke),this._output.space_before_token=tt,this.print_token(v),this._output.space_before_token=!0;return}}if(O){this.allow_wrap_or_preserved_newline(v),tt=!1;var en=this._tokens.peek();wt=en&&F(en.type,[le.WORD,le.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),tt=this._flags.last_token.type===le.START_BLOCK,wt=!1;else if(F(v.text,["--","++","!","~"])||pe){if((this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),tt=!1,wt=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var Tt=Q(this._flags.last_token,ne)&&v.newlines;Tt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Tt,!0)}this._flags.last_token.text===";"&&P(this._flags.mode)&&(tt=!0),this._flags.last_token.type===le.RESERVED?tt=!0:this._flags.last_token.type===le.END_EXPR?tt=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===le.OPERATOR&&(tt=F(v.text,["--","-","++","+"])&&F(this._flags.last_token.text,["--","-","++","+"]),F(v.text,["+","-"])&&F(this._flags.last_token.text,["--","++"])&&(wt=!0)),(this._flags.mode===me.BlockStatement&&!this._flags.inline_frame||this._flags.mode===me.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||tt,this.print_token(v),this._output.space_before_token=wt},X.prototype.handle_block_comment=function(v,O){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,O),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!E.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,O)},X.prototype.print_block_commment=function(v,O){var pe=U(v.text),He,tt=!1,wt=!1,It=v.whitespace_before,Ft=It.length;if(this.print_newline(!1,O),this.print_token_line_indentation(v),this._output.add_token(pe[0]),this.print_newline(!1,O),pe.length>1){for(pe=pe.slice(1),tt=G(pe,"*"),wt=re(pe,It),tt&&(this._flags.alignment=1),He=0;He<pe.length;He++)tt?(this.print_token_line_indentation(v),this._output.add_token(H(pe[He]))):wt&&pe[He]?(this.print_token_line_indentation(v),this._output.add_token(pe[He].substring(Ft))):(this._output.current_line.set_indent(-1),this._output.add_token(pe[He])),this.print_newline(!1,O);this._flags.alignment=0}},X.prototype.handle_comment=function(v,O){v.newlines?this.print_newline(!1,O):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(v),this.print_newline(!1,O)},X.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),Q(this._flags.last_token,ne)?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)},X.prototype.handle_unknown=function(v,O){this.print_token(v),v.text[v.text.length-1]===`
`&&this.print_newline(!1,O)},X.prototype.handle_eof=function(v){for(;this._flags.mode===me.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v)},te.exports.Beautifier=X},function(te){function o(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var p=new o(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},o.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},o.prototype.has_match=function(p){for(var E=this.__items.length-1;E>=0;E--)if(this.__items[E].match(p))return!0;return!1},o.prototype.set_indent=function(p,E){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=E||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},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(p){this.__items.push(p);var E=p.lastIndexOf(`
`);E!==-1?this.__character_count=p.length-E:this.__character_count+=p.length},o.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},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 p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,E){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),E=E||"",p.indent_level>0&&(E=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=E,this.__base_string_length=E.length}g.prototype.get_indent_size=function(p,E){var x=this.__base_string_length;return E=E||0,p<0&&(x=0),x+=p*this.__indent_size,x+=E,x},g.prototype.get_indent_string=function(p,E){var x=this.__base_string;return E=E||0,p<0&&(p=0,x=""),E+=p*this.__indent_size,this.__ensure_cache(E),x+=this.__cache[E],x},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,E=0,x="";this.__indent_size&&p>=this.__indent_size&&(E=Math.floor(p/this.__indent_size),p-=E*this.__indent_size,x=new Array(E+1).join(this.__indent_string)),p&&(x+=new Array(p+1).join(" ")),this.__cache.push(x)};function w(p,E){this.__indent_cache=new g(p,E),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}w.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},w.prototype.get_line_number=function(){return this.__lines.length},w.prototype.get_indent_string=function(p,E){return this.__indent_cache.get_indent_string(p,E)},w.prototype.get_indent_size=function(p,E){return this.__indent_cache.get_indent_size(p,E)},w.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},w.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},w.prototype.get_code=function(p){this.trim(!0);var E=this.current_line.pop();E&&(E[E.length-1]===`
`&&(E=E.replace(/\n+$/g,"")),this.current_line.push(E)),this._end_with_newline&&this.__add_outputline();var x=this.__lines.join(`
`);return p!==`
`&&(x=x.replace(/[\n]/g,p)),x},w.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},w.prototype.set_indent=function(p,E){return p=p||0,E=E||0,this.next_line.set_indent(p,E),this.__lines.length>1?(this.current_line.set_indent(p,E),!0):(this.current_line.set_indent(),!1)},w.prototype.add_raw_token=function(p){for(var E=0;E<p.newlines;E++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},w.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},w.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},w.prototype.remove_indent=function(p){for(var E=this.__lines.length;p<E;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},w.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},w.prototype.just_added_newline=function(){return this.current_line.is_empty()},w.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},w.prototype.ensure_empty_line_above=function(p,E){for(var x=this.__lines.length-2;x>=0;){var L=this.__lines[x];if(L.is_empty())break;if(L.item(0).indexOf(p)!==0&&L.item(-1)!==E){this.__lines.splice(x+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},te.exports.Output=w},function(te){function o(g,w,p,E){this.type=g,this.text=w,this.comments_before=null,this.newlines=p||0,this.whitespace_before=E||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}te.exports.Token=o},function(te,o){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",w="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",E="\\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+"|["+g+p+"])",j="(?:"+x+"|["+w+p+E+"])*";o.identifier=new RegExp(L+j,"g"),o.identifierStart=new RegExp(L),o.identifierMatch=new RegExp("(?:"+x+"|["+w+p+E+"])+");var $=/[\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(te,o,g){var w=g(6).Options,p=["before-newline","after-newline","preserve-newline"];function E(x){w.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 j=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var $=0;$<j.length;$++)j[$]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=j[$];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",p),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}E.prototype=new w,te.exports.Options=E},function(te){function o(p,E){this.raw_options=g(p,E),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(p,E){var x=this.raw_options[p],L=E||[];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(p,E){var x=this.raw_options[p],L=x===void 0?!!E:!!x;return L},o.prototype._get_characters=function(p,E){var x=this.raw_options[p],L=E||"";return typeof x=="string"&&(L=x.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),L},o.prototype._get_number=function(p,E){var x=this.raw_options[p];E=parseInt(E,10),isNaN(E)&&(E=0);var L=parseInt(x,10);return isNaN(L)&&(L=E),L},o.prototype._get_selection=function(p,E,x){var L=this._get_selection_list(p,E,x);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return L[0]},o.prototype._get_selection_list=function(p,E,x){if(!E||E.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[E[0]],!this._is_valid_selection(x,E))throw new Error("Invalid Default Value!");var L=this._get_array(p,x);if(!this._is_valid_selection(L,E))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return L},o.prototype._is_valid_selection=function(p,E){return p.length&&E.length&&!p.some(function(x){return E.indexOf(x)===-1})};function g(p,E){var x={};p=w(p);var L;for(L in p)L!==E&&(x[L]=p[L]);if(E&&p[E])for(L in p[E])x[L]=p[E][L];return x}function w(p){var E={},x;for(x in p){var L=x.replace(/-/g,"_");E[L]=p[x]}return E}te.exports.Options=o,te.exports.normalizeOpts=w,te.exports.mergeOpts=g},function(te,o,g){var w=g(8).InputScanner,p=g(9).Tokenizer,E=g(9).TOKEN,x=g(13).Directives,L=g(4),j=g(12).Pattern,$=g(14).TemplatablePattern;function le(G,re){return re.indexOf(G)!==-1}var F={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:E.START,RAW:E.RAW,EOF:E.EOF},H=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_]+)?/,A=/[0-9]/,Q=/[^\d\.]/,ne=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),ee=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";ee=ee.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),ee="\\?\\.(?!\\d) "+ee,ee=ee.replace(/ /g,"|");var oe=new RegExp(ee),ge="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),me=ge.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ot=new RegExp("^(?:"+me.join("|")+")$"),U,C=function(G,re){p.call(this,G,re),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var X=new j(this._input),y=new $(this._input).read_options(this._options);this.__patterns={template:y,identifier:y.starting_with(L.identifier).matching(L.identifierMatch),number:X.matching(D),punct:X.matching(oe),comment:X.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:X.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:X.matching(/<!--/),html_comment_end:X.matching(/-->/),include:X.starting_with(/#include/).until_after(L.lineBreak),shebang:X.starting_with(/#!/).until_after(L.lineBreak),xml:X.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:y.until(/['\\\n\r\u2028\u2029]/),double_quote:y.until(/["\\\n\r\u2028\u2029]/),template_text:y.until(/[`\\$]/),template_expression:y.until(/[`}\\]/)}};C.prototype=new p,C.prototype._is_comment=function(G){return G.type===F.COMMENT||G.type===F.BLOCK_COMMENT||G.type===F.UNKNOWN},C.prototype._is_opening=function(G){return G.type===F.START_BLOCK||G.type===F.START_EXPR},C.prototype._is_closing=function(G,re){return(G.type===F.END_BLOCK||G.type===F.END_EXPR)&&re&&(G.text==="]"&&re.text==="["||G.text===")"&&re.text==="("||G.text==="}"&&re.text==="{")},C.prototype._reset=function(){U=!1},C.prototype._get_next_token=function(G,re){var X=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(F.EOF,""):(X=X||this._read_non_javascript(y),X=X||this._read_string(y),X=X||this._read_pair(y,this._input.peek(1)),X=X||this._read_word(G),X=X||this._read_singles(y),X=X||this._read_comment(y),X=X||this._read_regexp(y,G),X=X||this._read_xml(y,G),X=X||this._read_punctuation(),X=X||this._create_token(F.UNKNOWN,this._input.next()),X)},C.prototype._read_word=function(G){var re;if(re=this.__patterns.identifier.read(),re!=="")return re=re.replace(L.allLineBreaks,`
`),!(G.type===F.DOT||G.type===F.RESERVED&&(G.text==="set"||G.text==="get"))&&ot.test(re)?(re==="in"||re==="of")&&(G.type===F.WORD||G.type===F.STRING)?this._create_token(F.OPERATOR,re):this._create_token(F.RESERVED,re):this._create_token(F.WORD,re);if(re=this.__patterns.number.read(),re!=="")return this._create_token(F.WORD,re)},C.prototype._read_singles=function(G){var re=null;return G==="("||G==="["?re=this._create_token(F.START_EXPR,G):G===")"||G==="]"?re=this._create_token(F.END_EXPR,G):G==="{"?re=this._create_token(F.START_BLOCK,G):G==="}"?re=this._create_token(F.END_BLOCK,G):G===";"?re=this._create_token(F.SEMICOLON,G):G==="."&&Q.test(this._input.peek(1))?re=this._create_token(F.DOT,G):G===","&&(re=this._create_token(F.COMMA,G)),re&&this._input.next(),re},C.prototype._read_pair=function(G,re){var X=null;return G==="#"&&re==="{"&&(X=this._create_token(F.START_BLOCK,G+re)),X&&(this._input.next(),this._input.next()),X},C.prototype._read_punctuation=function(){var G=this.__patterns.punct.read();if(G!=="")return G==="="?this._create_token(F.EQUALS,G):G==="?."?this._create_token(F.DOT,G):this._create_token(F.OPERATOR,G)},C.prototype._read_non_javascript=function(G){var re="";if(G==="#"){if(this._is_first_token()&&(re=this.__patterns.shebang.read(),re))return this._create_token(F.UNKNOWN,re.trim()+`
`);if(re=this.__patterns.include.read(),re)return this._create_token(F.UNKNOWN,re.trim()+`
`);G=this._input.next();var X="#";if(this._input.hasNext()&&this._input.testChar(A)){do G=this._input.next(),X+=G;while(this._input.hasNext()&&G!=="#"&&G!=="=");return G==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(X+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(X+="{}",this._input.next(),this._input.next())),this._create_token(F.WORD,X)}this._input.back()}else if(G==="<"&&this._is_first_token()){if(re=this.__patterns.html_comment_start.read(),re){for(;this._input.hasNext()&&!this._input.testChar(L.newline);)re+=this._input.next();return U=!0,this._create_token(F.COMMENT,re)}}else if(U&&G==="-"&&(re=this.__patterns.html_comment_end.read(),re))return U=!1,this._create_token(F.COMMENT,re);return null},C.prototype._read_comment=function(G){var re=null;if(G==="/"){var X="";if(this._input.peek(1)==="*"){X=this.__patterns.block_comment.read();var y=H.get_directives(X);y&&y.ignore==="start"&&(X+=H.readIgnored(this._input)),X=X.replace(L.allLineBreaks,`
`),re=this._create_token(F.BLOCK_COMMENT,X),re.directives=y}else this._input.peek(1)==="/"&&(X=this.__patterns.comment.read(),re=this._create_token(F.COMMENT,X))}return re},C.prototype._read_string=function(G){if(G==="`"||G==="'"||G==='"'){var re=this._input.next();return this.has_char_escapes=!1,G==="`"?re+=this._read_string_recursive("`",!0,"${"):re+=this._read_string_recursive(G),this.has_char_escapes&&this._options.unescape_strings&&(re=P(re)),this._input.peek()===G&&(re+=this._input.next()),re=re.replace(L.allLineBreaks,`
`),this._create_token(F.STRING,re)}return null},C.prototype._allow_regexp_or_xml=function(G){return G.type===F.RESERVED&&le(G.text,["return","case","throw","else","do","typeof","yield"])||G.type===F.END_EXPR&&G.text===")"&&G.opened.previous.type===F.RESERVED&&le(G.opened.previous.text,["if","while","for"])||le(G.type,[F.COMMENT,F.START_EXPR,F.START_BLOCK,F.START,F.END_BLOCK,F.OPERATOR,F.EQUALS,F.EOF,F.SEMICOLON,F.COMMA])},C.prototype._read_regexp=function(G,re){if(G==="/"&&this._allow_regexp_or_xml(re)){for(var X=this._input.next(),y=!1,v=!1;this._input.hasNext()&&(y||v||this._input.peek()!==G)&&!this._input.testChar(L.newline);)X+=this._input.peek(),y?y=!1:(y=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===G&&(X+=this._input.next(),X+=this._input.read(L.identifier)),this._create_token(F.STRING,X)}return null},C.prototype._read_xml=function(G,re){if(this._options.e4x&&G==="<"&&this._allow_regexp_or_xml(re)){var X="",y=this.__patterns.xml.read_match();if(y){for(var v=y[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),O=v.indexOf("{")===0,pe=0;y;){var He=!!y[1],tt=y[2],wt=!!y[y.length-1]||tt.slice(0,8)==="![CDATA[";if(!wt&&(tt===v||O&&tt.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(He?--pe:++pe),X+=y[0],pe<=0)break;y=this.__patterns.xml.read_match()}return y||(X+=this._input.match(/[\s\S]*/g)[0]),X=X.replace(L.allLineBreaks,`
`),this._create_token(F.STRING,X)}}return null};function P(G){for(var re="",X=0,y=new w(G),v=null;y.hasNext();)if(v=y.match(/([\s]|[^\\]|\\\\)+/g),v&&(re+=v[0]),y.peek()==="\\"){if(y.next(),y.peek()==="x")v=y.match(/x([0-9A-Fa-f]{2})/g);else if(y.peek()==="u")v=y.match(/u([0-9A-Fa-f]{4})/g),v||(v=y.match(/u\{([0-9A-Fa-f]+)\}/g));else{re+="\\",y.hasNext()&&(re+=y.next());continue}if(!v||(X=parseInt(v[1],16),X>126&&X<=255&&v[0].indexOf("x")===0))return G;X>=0&&X<32||X>1114111?re+="\\"+v[0]:X===34||X===39||X===92?re+="\\"+String.fromCharCode(X):re+=String.fromCharCode(X)}return re}C.prototype._read_string_recursive=function(G,re,X){var y,v;G==="'"?v=this.__patterns.single_quote:G==='"'?v=this.__patterns.double_quote:G==="`"?v=this.__patterns.template_text:G==="}"&&(v=this.__patterns.template_expression);for(var O=v.read(),pe="";this._input.hasNext();){if(pe=this._input.next(),pe===G||!re&&L.newline.test(pe)){this._input.back();break}else pe==="\\"&&this._input.hasNext()?(y=this._input.peek(),y==="x"||y==="u"?this.has_char_escapes=!0:y==="\r"&&this._input.peek(1)===`
`&&this._input.next(),pe+=this._input.next()):X&&(X==="${"&&pe==="$"&&this._input.peek()==="{"&&(pe+=this._input.next()),X===pe&&(G==="`"?pe+=this._read_string_recursive("}",re,"`"):pe+=this._read_string_recursive("`",re,"${"),this._input.hasNext()&&(pe+=this._input.next())));pe+=v.read(),O+=pe}return O},te.exports.Tokenizer=C,te.exports.TOKEN=F,te.exports.positionable_operators=ne.slice(),te.exports.line_starters=ge.slice()},function(te){var o=RegExp.prototype.hasOwnProperty("sticky");function g(w){this.__input=w||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var w=null;return this.hasNext()&&(w=this.__input.charAt(this.__position),this.__position+=1),w},g.prototype.peek=function(w){var p=null;return w=w||0,w+=this.__position,w>=0&&w<this.__input_length&&(p=this.__input.charAt(w)),p},g.prototype.__match=function(w,p){w.lastIndex=p;var E=w.exec(this.__input);return E&&!(o&&w.sticky)&&E.index!==p&&(E=null),E},g.prototype.test=function(w,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(w,p):!1},g.prototype.testChar=function(w,p){var E=this.peek(p);return w.lastIndex=0,E!==null&&w.test(E)},g.prototype.match=function(w){var p=this.__match(w,this.__position);return p?this.__position+=p[0].length:p=null,p},g.prototype.read=function(w,p,E){var x="",L;return w&&(L=this.match(w),L&&(x+=L[0])),p&&(L||!w)&&(x+=this.readUntil(p,E)),x},g.prototype.readUntil=function(w,p){var E="",x=this.__position;w.lastIndex=this.__position;var L=w.exec(this.__input);return L?(x=L.index,p&&(x+=L[0].length)):x=this.__input_length,E=this.__input.substring(this.__position,x),this.__position=x,E},g.prototype.readUntilAfter=function(w){return this.readUntil(w,!0)},g.prototype.get_regexp=function(w,p){var E=null,x="g";return p&&o&&(x="y"),typeof w=="string"&&w!==""?E=new RegExp(w,x):w&&(E=new RegExp(w.source,x)),E},g.prototype.get_literal_regexp=function(w){return RegExp(w.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(w){var p=this.__position,E=this.readUntilAfter(w);return this.__position=p,E},g.prototype.lookBack=function(w){var p=this.__position-1;return p>=w.length&&this.__input.substring(p-w.length,p).toLowerCase()===w},te.exports.InputScanner=g},function(te,o,g){var w=g(8).InputScanner,p=g(3).Token,E=g(10).TokenStream,x=g(11).WhitespacePattern,L={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},j=function($,le){this._input=new w($),this._options=le||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new x(this._input)};j.prototype.tokenize=function(){this._input.restart(),this.__tokens=new E,this._reset();for(var $,le=new p(L.START,""),F=null,H=[],D=new E;le.type!==L.EOF;){for($=this._get_next_token(le,F);this._is_comment($);)D.add($),$=this._get_next_token(le,F);D.isEmpty()||($.comments_before=D,D=new E),$.parent=F,this._is_opening($)?(H.push(F),F=$):F&&this._is_closing($,F)&&($.opened=F,F.closed=$,F=H.pop(),$.parent=F),$.previous=le,le.next=$,this.__tokens.add($),le=$}return this.__tokens},j.prototype._is_first_token=function(){return this.__tokens.isEmpty()},j.prototype._reset=function(){},j.prototype._get_next_token=function($,le){this._readWhitespace();var F=this._input.read(/.+/g);return F?this._create_token(L.RAW,F):this._create_token(L.EOF,"")},j.prototype._is_comment=function($){return!1},j.prototype._is_opening=function($){return!1},j.prototype._is_closing=function($,le){return!1},j.prototype._create_token=function($,le){var F=new p($,le,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return F},j.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},te.exports.Tokenizer=j,te.exports.TOKEN=L},function(te){function o(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}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 g=null;return this.hasNext()&&(g=this.__tokens[this.__position],this.__position+=1),g},o.prototype.peek=function(g){var w=null;return g=g||0,g+=this.__position,g>=0&&g<this.__tokens_length&&(w=this.__tokens[g]),w},o.prototype.add=function(g){this.__parent_token&&(g.parent=this.__parent_token),this.__tokens.push(g),this.__tokens_length+=1},te.exports.TokenStream=o},function(te,o,g){var w=g(12).Pattern;function p(E,x){w.call(this,E,x),x?this._line_regexp=this._input.get_regexp(x._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}p.prototype=new w,p.prototype.__set_whitespace_patterns=function(E,x){E+="\\t ",x+="\\n\\r",this._match_pattern=this._input.get_regexp("["+E+x+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+x+"]")},p.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var E=this._input.read(this._match_pattern);if(E===" ")this.whitespace_before_token=" ";else if(E){var x=this.__split(this._newline_regexp,E);this.newline_count=x.length-1,this.whitespace_before_token=x[this.newline_count]}return E},p.prototype.matching=function(E,x){var L=this._create();return L.__set_whitespace_patterns(E,x),L._update(),L},p.prototype._create=function(){return new p(this._input,this)},p.prototype.__split=function(E,x){E.lastIndex=0;for(var L=0,j=[],$=E.exec(x);$;)j.push(x.substring(L,$.index)),L=$.index+$[0].length,$=E.exec(x);return L<x.length?j.push(x.substring(L,x.length)):j.push(""),j},te.exports.WhitespacePattern=p},function(te){function o(g,w){this._input=g,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,w&&(this._starting_pattern=this._input.get_regexp(w._starting_pattern,!0),this._match_pattern=this._input.get_regexp(w._match_pattern,!0),this._until_pattern=this._input.get_regexp(w._until_pattern),this._until_after=w._until_after)}o.prototype.read=function(){var g=this._input.read(this._starting_pattern);return(!this._starting_pattern||g)&&(g+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),g},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(g){var w=this._create();return w._until_after=!0,w._until_pattern=this._input.get_regexp(g),w._update(),w},o.prototype.until=function(g){var w=this._create();return w._until_after=!1,w._until_pattern=this._input.get_regexp(g),w._update(),w},o.prototype.starting_with=function(g){var w=this._create();return w._starting_pattern=this._input.get_regexp(g,!0),w._update(),w},o.prototype.matching=function(g){var w=this._create();return w._match_pattern=this._input.get_regexp(g,!0),w._update(),w},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},te.exports.Pattern=o},function(te){function o(g,w){g=typeof g=="string"?g:g.source,w=typeof w=="string"?w:w.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+w,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+w,"g")}o.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var w={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(g);p;)w[p[1]]=p[2],p=this.__directive_pattern.exec(g);return w},o.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},te.exports.Directives=o},function(te,o,g){var w=g(12).Pattern,p={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function E(x,L){w.call(this,x,L),this.__template_pattern=null,this._disabled=Object.assign({},p),this._excluded=Object.assign({},p),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 j=new w(x);this.__patterns={handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:j.starting_with(/{{{/).until_after(/}}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),php:j.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:j.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:j.starting_with(/{%/).until_after(/%}/),django_value:j.starting_with(/{{/).until_after(/}}/),django_comment:j.starting_with(/{#/).until_after(/#}/),smarty:j.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:j.starting_with(/{\*/).until_after(/\*}/),smarty_literal:j.starting_with(/{literal}/).until_after(/{\/literal}/)}}E.prototype=new w,E.prototype._create=function(){return new E(this._input,this)},E.prototype._update=function(){this.__set_templated_pattern()},E.prototype.disable=function(x){var L=this._create();return L._disabled[x]=!0,L._update(),L},E.prototype.read_options=function(x){var L=this._create();for(var j in p)L._disabled[j]=x.templating.indexOf(j)===-1;return L._update(),L},E.prototype.exclude=function(x){var L=this._create();return L._excluded[x]=!0,L._update(),L},E.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},E.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("|")+")")},E.prototype._read_template=function(){var x="",L=this._input.peek();if(L==="<"){var j=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&j==="?"&&(x=x||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&j==="%"&&(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},te.exports.TemplatablePattern=E}],B={};function d(te){var o=B[te];if(o!==void 0)return o.exports;var g=B[te]={exports:{}};return ae[te](g,g.exports,d),g.exports}var _e=d(0);ue=_e})();var z=ue;_=[],h=function(){return{js_beautify:z}}.apply(Gt,_),h!==void 0&&(In.exports=h)})()},7861:function(In,Gt,_){var h=_(38710),ue=function(B){var d=/[height|width]$/;return d.test(B)},z=function(B){var d="",_e=Object.keys(B);return _e.forEach(function(te,o){var g=B[te];te=h(te),ue(te)&&typeof g=="number"&&(g=g+"px"),g===!0?d+=te:g===!1?d+="not "+te:d+="("+te+": "+g+")",o<_e.length-1&&(d+=" and ")}),d},ae=function(B){var d="";return typeof B=="string"?B:B instanceof Array?(B.forEach(function(_e,te){d+=z(_e),te<B.length-1&&(d+=", ")}),d):z(B)};In.exports=ae},32834:function(In){(function(Gt,_){In.exports=_()})(this,function(){"use strict";function Gt(se,ve){for(var Ee=0;Ee<ve.length;Ee++){var k=ve[Ee];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(se,k.key,k)}}function _(se,ve,Ee){return ve&&Gt(se.prototype,ve),Ee&&Gt(se,Ee),se}function h(se,ve){if(se){if(typeof se=="string")return ue(se,ve);var Ee=Object.prototype.toString.call(se).slice(8,-1);if(Ee==="Object"&&se.constructor&&(Ee=se.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(se);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return ue(se,ve)}}function ue(se,ve){(ve==null||ve>se.length)&&(ve=se.length);for(var Ee=0,k=new Array(ve);Ee<ve;Ee++)k[Ee]=se[Ee];return k}function z(se,ve){var Ee=typeof Symbol!="undefined"&&se[Symbol.iterator]||se["@@iterator"];if(Ee)return(Ee=Ee.call(se)).next.bind(Ee);if(Array.isArray(se)||(Ee=h(se))||ve&&se&&typeof se.length=="number"){Ee&&(se=Ee);var k=0;return function(){return k>=se.length?{done:!0}:{done:!1,value:se[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 ae={exports:{}};function B(){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(se){ae.exports.defaults=se}ae.exports={defaults:B(),getDefaults:B,changeDefaults:d};var _e=/[&<>"']/,te=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,g=/[<>"']|&(?!#?\w+;)/g,w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},p=function(ve){return w[ve]};function E(se,ve){if(ve){if(_e.test(se))return se.replace(te,p)}else if(o.test(se))return se.replace(g,p);return se}var x=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function L(se){return se.replace(x,function(ve,Ee){return Ee=Ee.toLowerCase(),Ee==="colon"?":":Ee.charAt(0)==="#"?Ee.charAt(1)==="x"?String.fromCharCode(parseInt(Ee.substring(2),16)):String.fromCharCode(+Ee.substring(1)):""})}var j=/(^|[^\[])\^/g;function $(se,ve){se=se.source||se,ve=ve||"";var Ee={replace:function(Y,he){return he=he.source||he,he=he.replace(j,"$1"),se=se.replace(Y,he),Ee},getRegex:function(){return new RegExp(se,ve)}};return Ee}var le=/[^\w:]/g,F=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function H(se,ve,Ee){if(se){var k;try{k=decodeURIComponent(L(Ee)).replace(le,"").toLowerCase()}catch(Y){return null}if(k.indexOf("javascript:")===0||k.indexOf("vbscript:")===0||k.indexOf("data:")===0)return null}ve&&!F.test(Ee)&&(Ee=ee(ve,Ee));try{Ee=encodeURI(Ee).replace(/%25/g,"%")}catch(Y){return null}return Ee}var D={},A=/^[^:]+:\/*[^/]*$/,Q=/^([^:]+:)[\s\S]*$/,ne=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ee(se,ve){D[" "+se]||(A.test(se)?D[" "+se]=se+"/":D[" "+se]=ot(se,"/",!0)),se=D[" "+se];var Ee=se.indexOf(":")===-1;return ve.substring(0,2)==="//"?Ee?ve:se.replace(Q,"$1")+ve:ve.charAt(0)==="/"?Ee?ve:se.replace(ne,"$1")+ve:se+ve}var oe={exec:function(){}};function ge(se){for(var ve=1,Ee,k;ve<arguments.length;ve++){Ee=arguments[ve];for(k in Ee)Object.prototype.hasOwnProperty.call(Ee,k)&&(se[k]=Ee[k])}return se}function me(se,ve){var Ee=se.replace(/\|/g,function(he,ce,xe){for(var Be=!1,Xe=ce;--Xe>=0&&xe[Xe]==="\\";)Be=!Be;return Be?"|":" |"}),k=Ee.split(/ \|/),Y=0;if(k.length>ve)k.splice(ve);else for(;k.length<ve;)k.push("");for(;Y<k.length;Y++)k[Y]=k[Y].trim().replace(/\\\|/g,"|");return k}function ot(se,ve,Ee){var k=se.length;if(k===0)return"";for(var Y=0;Y<k;){var he=se.charAt(k-Y-1);if(he===ve&&!Ee)Y++;else if(he!==ve&&Ee)Y++;else break}return se.substr(0,k-Y)}function U(se,ve){if(se.indexOf(ve[1])===-1)return-1;for(var Ee=se.length,k=0,Y=0;Y<Ee;Y++)if(se[Y]==="\\")Y++;else if(se[Y]===ve[0])k++;else if(se[Y]===ve[1]&&(k--,k<0))return Y;return-1}function C(se){se&&se.sanitize&&!se.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 P(se,ve){if(ve<1)return"";for(var Ee="";ve>1;)ve&1&&(Ee+=se),ve>>=1,se+=se;return Ee+se}var G={escape:E,unescape:L,edit:$,cleanUrl:H,resolveUrl:ee,noopTest:oe,merge:ge,splitCells:me,rtrim:ot,findClosingBracket:U,checkSanitizeDeprecation:C,repeatString:P},re=ae.exports.defaults,X=G.rtrim,y=G.splitCells,v=G.escape,O=G.findClosingBracket;function pe(se,ve,Ee){var k=ve.href,Y=ve.title?v(ve.title):null,he=se[1].replace(/\\([\[\]])/g,"$1");return se[0].charAt(0)!=="!"?{type:"link",raw:Ee,href:k,title:Y,text:he}:{type:"image",raw:Ee,href:k,title:Y,text:v(he)}}function He(se,ve){var Ee=se.match(/^(\s+)(?:```)/);if(Ee===null)return ve;var k=Ee[1];return ve.split(`
`).map(function(Y){var he=Y.match(/^\s+/);if(he===null)return Y;var ce=he[0];return ce.length>=k.length?Y.slice(k.length):Y}).join(`
`)}var tt=function(){function se(Ee){this.options=Ee||re}var ve=se.prototype;return ve.space=function(k){var Y=this.rules.block.newline.exec(k);if(Y)return Y[0].length>1?{type:"space",raw:Y[0]}:{raw:`
`}},ve.code=function(k){var Y=this.rules.block.code.exec(k);if(Y){var he=Y[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Y[0],codeBlockStyle:"indented",text:this.options.pedantic?he:X(he,`
`)}}},ve.fences=function(k){var Y=this.rules.block.fences.exec(k);if(Y){var he=Y[0],ce=He(he,Y[3]||"");return{type:"code",raw:he,lang:Y[2]?Y[2].trim():Y[2],text:ce}}},ve.heading=function(k){var Y=this.rules.block.heading.exec(k);if(Y){var he=Y[2].trim();if(/#$/.test(he)){var ce=X(he,"#");(this.options.pedantic||!ce||/ $/.test(ce))&&(he=ce.trim())}return{type:"heading",raw:Y[0],depth:Y[1].length,text:he}}},ve.nptable=function(k){var Y=this.rules.block.nptable.exec(k);if(Y){var he={type:"table",header:y(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
`):[],raw:Y[0]};if(he.header.length===he.align.length){var ce=he.align.length,xe;for(xe=0;xe<ce;xe++)/^ *-+: *$/.test(he.align[xe])?he.align[xe]="right":/^ *:-+: *$/.test(he.align[xe])?he.align[xe]="center":/^ *:-+ *$/.test(he.align[xe])?he.align[xe]="left":he.align[xe]=null;for(ce=he.cells.length,xe=0;xe<ce;xe++)he.cells[xe]=y(he.cells[xe],he.header.length);return he}}},ve.hr=function(k){var Y=this.rules.block.hr.exec(k);if(Y)return{type:"hr",raw:Y[0]}},ve.blockquote=function(k){var Y=this.rules.block.blockquote.exec(k);if(Y){var he=Y[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Y[0],text:he}}},ve.list=function(k){var Y=this.rules.block.list.exec(k);if(Y){var he=Y[0],ce=Y[2],xe=ce.length>1,Be={type:"list",raw:he,ordered:xe,start:xe?+ce.slice(0,-1):"",loose:!1,items:[]},Xe=Y[0].match(this.rules.block.item),ct=!1,nt,Ue,I,Z,S,ze,ke,Pe,Ge,We=Xe.length;I=this.rules.block.listItemStart.exec(Xe[0]);for(var dt=0;dt<We;dt++){if(nt=Xe[dt],he=nt,this.options.pedantic||(Ge=nt.match(new RegExp("\\n\\s*\\n {0,"+(I[0].length-1)+"}\\S")),Ge&&(S=nt.length-Ge.index+Xe.slice(dt+1).join(`
`).length,Be.raw=Be.raw.substring(0,Be.raw.length-S),nt=nt.substring(0,Ge.index),he=nt,We=dt+1)),dt!==We-1){if(Z=this.rules.block.listItemStart.exec(Xe[dt+1]),this.options.pedantic?Z[1].length>I[1].length:Z[1].length>=I[0].length||Z[1].length>3){Xe.splice(dt,2,Xe[dt]+(!this.options.pedantic&&Z[1].length<I[0].length&&!Xe[dt].match(/\n$/)?"":`
`)+Xe[dt+1]),dt--,We--;continue}else(!this.options.pedantic||this.options.smartLists?Z[2][Z[2].length-1]!==ce[ce.length-1]:xe===(Z[2].length===1))&&(S=Xe.slice(dt+1).join(`
`).length,Be.raw=Be.raw.substring(0,Be.raw.length-S),dt=We-1);I=Z}Ue=nt.length,nt=nt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~nt.indexOf(`
`)&&(Ue-=nt.length,nt=this.options.pedantic?nt.replace(/^ {1,4}/gm,""):nt.replace(new RegExp("^ {1,"+Ue+"}","gm"),"")),nt=X(nt,`
`),dt!==We-1&&(he=he+`
`),ze=ct||/\n\n(?!\s*$)/.test(he),dt!==We-1&&(ct=he.slice(-2)===`
`,ze||(ze=ct)),ze&&(Be.loose=!0),this.options.gfm&&(ke=/^\[[ xX]\] /.test(nt),Pe=void 0,ke&&(Pe=nt[1]!==" ",nt=nt.replace(/^\[[ xX]\] +/,""))),Be.items.push({type:"list_item",raw:he,task:ke,checked:Pe,loose:ze,text:nt})}return Be}},ve.html=function(k){var Y=this.rules.block.html.exec(k);if(Y)return{type:this.options.sanitize?"paragraph":"html",raw:Y[0],pre:!this.options.sanitizer&&(Y[1]==="pre"||Y[1]==="script"||Y[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Y[0]):v(Y[0]):Y[0]}},ve.def=function(k){var Y=this.rules.block.def.exec(k);if(Y){Y[3]&&(Y[3]=Y[3].substring(1,Y[3].length-1));var he=Y[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:he,raw:Y[0],href:Y[2],title:Y[3]}}},ve.table=function(k){var Y=this.rules.block.table.exec(k);if(Y){var he={type:"table",header:y(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
`):[]};if(he.header.length===he.align.length){he.raw=Y[0];var ce=he.align.length,xe;for(xe=0;xe<ce;xe++)/^ *-+: *$/.test(he.align[xe])?he.align[xe]="right":/^ *:-+: *$/.test(he.align[xe])?he.align[xe]="center":/^ *:-+ *$/.test(he.align[xe])?he.align[xe]="left":he.align[xe]=null;for(ce=he.cells.length,xe=0;xe<ce;xe++)he.cells[xe]=y(he.cells[xe].replace(/^ *\| *| *\| *$/g,""),he.header.length);return he}}},ve.lheading=function(k){var Y=this.rules.block.lheading.exec(k);if(Y)return{type:"heading",raw:Y[0],depth:Y[2].charAt(0)==="="?1:2,text:Y[1]}},ve.paragraph=function(k){var Y=this.rules.block.paragraph.exec(k);if(Y)return{type:"paragraph",raw:Y[0],text:Y[1].charAt(Y[1].length-1)===`
`?Y[1].slice(0,-1):Y[1]}},ve.text=function(k){var Y=this.rules.block.text.exec(k);if(Y)return{type:"text",raw:Y[0],text:Y[0]}},ve.escape=function(k){var Y=this.rules.inline.escape.exec(k);if(Y)return{type:"escape",raw:Y[0],text:v(Y[1])}},ve.tag=function(k,Y,he){var ce=this.rules.inline.tag.exec(k);if(ce)return!Y&&/^<a /i.test(ce[0])?Y=!0:Y&&/^<\/a>/i.test(ce[0])&&(Y=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(ce[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ce[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:ce[0],inLink:Y,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ce[0]):v(ce[0]):ce[0]}},ve.link=function(k){var Y=this.rules.inline.link.exec(k);if(Y){var he=Y[2].trim();if(!this.options.pedantic&&/^</.test(he)){if(!/>$/.test(he))return;var ce=X(he.slice(0,-1),"\\");if((he.length-ce.length)%2===0)return}else{var xe=O(Y[2],"()");if(xe>-1){var Be=Y[0].indexOf("!")===0?5:4,Xe=Be+Y[1].length+xe;Y[2]=Y[2].substring(0,xe),Y[0]=Y[0].substring(0,Xe).trim(),Y[3]=""}}var ct=Y[2],nt="";if(this.options.pedantic){var Ue=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ct);Ue&&(ct=Ue[1],nt=Ue[3])}else nt=Y[3]?Y[3].slice(1,-1):"";return ct=ct.trim(),/^</.test(ct)&&(this.options.pedantic&&!/>$/.test(he)?ct=ct.slice(1):ct=ct.slice(1,-1)),pe(Y,{href:ct&&ct.replace(this.rules.inline._escapes,"$1"),title:nt&&nt.replace(this.rules.inline._escapes,"$1")},Y[0])}},ve.reflink=function(k,Y){var he;if((he=this.rules.inline.reflink.exec(k))||(he=this.rules.inline.nolink.exec(k))){var ce=(he[2]||he[1]).replace(/\s+/g," ");if(ce=Y[ce.toLowerCase()],!ce||!ce.href){var xe=he[0].charAt(0);return{type:"text",raw:xe,text:xe}}return pe(he,ce,he[0])}},ve.emStrong=function(k,Y,he){he===void 0&&(he="");var ce=this.rules.inline.emStrong.lDelim.exec(k);if(ce&&!(ce[3]&&he.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\u09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B0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA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\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var xe=ce[1]||ce[2]||"";if(!xe||xe&&(he===""||this.rules.inline.punctuation.exec(he))){var Be=ce[0].length-1,Xe,ct,nt=Be,Ue=0,I=ce[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(I.lastIndex=0,Y=Y.slice(-1*k.length+Be);(ce=I.exec(Y))!=null;)if(Xe=ce[1]||ce[2]||ce[3]||ce[4]||ce[5]||ce[6],!!Xe){if(ct=Xe.length,ce[3]||ce[4]){nt+=ct;continue}else if((ce[5]||ce[6])&&Be%3&&!((Be+ct)%3)){Ue+=ct;continue}if(nt-=ct,!(nt>0))return ct=Math.min(ct,ct+nt+Ue),Math.min(Be,ct)%2?{type:"em",raw:k.slice(0,Be+ce.index+ct+1),text:k.slice(1,Be+ce.index+ct)}:{type:"strong",raw:k.slice(0,Be+ce.index+ct+1),text:k.slice(2,Be+ce.index+ct-1)}}}}},ve.codespan=function(k){var Y=this.rules.inline.code.exec(k);if(Y){var he=Y[2].replace(/\n/g," "),ce=/[^ ]/.test(he),xe=/^ /.test(he)&&/ $/.test(he);return ce&&xe&&(he=he.substring(1,he.length-1)),he=v(he,!0),{type:"codespan",raw:Y[0],text:he}}},ve.br=function(k){var Y=this.rules.inline.br.exec(k);if(Y)return{type:"br",raw:Y[0]}},ve.del=function(k){var Y=this.rules.inline.del.exec(k);if(Y)return{type:"del",raw:Y[0],text:Y[2]}},ve.autolink=function(k,Y){var he=this.rules.inline.autolink.exec(k);if(he){var ce,xe;return he[2]==="@"?(ce=v(this.options.mangle?Y(he[1]):he[1]),xe="mailto:"+ce):(ce=v(he[1]),xe=ce),{type:"link",raw:he[0],text:ce,href:xe,tokens:[{type:"text",raw:ce,text:ce}]}}},ve.url=function(k,Y){var he;if(he=this.rules.inline.url.exec(k)){var ce,xe;if(he[2]==="@")ce=v(this.options.mangle?Y(he[0]):he[0]),xe="mailto:"+ce;else{var Be;do Be=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Be!==he[0]);ce=v(he[0]),he[1]==="www."?xe="http://"+ce:xe=ce}return{type:"link",raw:he[0],text:ce,href:xe,tokens:[{type:"text",raw:ce,text:ce}]}}},ve.inlineText=function(k,Y,he){var ce=this.rules.inline.text.exec(k);if(ce){var xe;return Y?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ce[0]):v(ce[0]):ce[0]:xe=v(this.options.smartypants?he(ce[0]):ce[0]),{type:"text",raw:ce[0],text:xe}}},se}(),wt=G.noopTest,It=G.edit,Ft=G.merge,Ht={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:wt,table:wt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ht._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ht._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ht.def=It(Ht.def).replace("label",Ht._label).replace("title",Ht._title).getRegex(),Ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ht.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Ht.item=It(Ht.item,"gm").replace(/bull/g,Ht.bullet).getRegex(),Ht.listItemStart=It(/^( *)(bull) */).replace("bull",Ht.bullet).getRegex(),Ht.list=It(Ht.list).replace(/bull/g,Ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ht.def.source+")").getRegex(),Ht._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",Ht._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ht.html=It(Ht.html,"i").replace("comment",Ht._comment).replace("tag",Ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht.paragraph=It(Ht._paragraph).replace("hr",Ht.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",Ht._tag).getRegex(),Ht.blockquote=It(Ht.blockquote).replace("paragraph",Ht.paragraph).getRegex(),Ht.normal=Ft({},Ht),Ht.gfm=Ft({},Ht.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*|$)"}),Ht.gfm.nptable=It(Ht.gfm.nptable).replace("hr",Ht.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",Ht._tag).getRegex(),Ht.gfm.table=It(Ht.gfm.table).replace("hr",Ht.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",Ht._tag).getRegex(),Ht.pedantic=Ft({},Ht.normal,{html:It(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ht._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:wt,paragraph:It(Ht.normal._paragraph).replace("hr",Ht.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ke={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wt,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:wt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ke._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ke.punctuation=It(Ke.punctuation).replace(/punctuation/g,Ke._punctuation).getRegex(),Ke.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ke.escapedEmSt=/\\\*|\\_/g,Ke._comment=It(Ht._comment).replace("(?:-->|$)","-->").getRegex(),Ke.emStrong.lDelim=It(Ke.emStrong.lDelim).replace(/punct/g,Ke._punctuation).getRegex(),Ke.emStrong.rDelimAst=It(Ke.emStrong.rDelimAst,"g").replace(/punct/g,Ke._punctuation).getRegex(),Ke.emStrong.rDelimUnd=It(Ke.emStrong.rDelimUnd,"g").replace(/punct/g,Ke._punctuation).getRegex(),Ke._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ke._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ke._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])?)+(?![-_])/,Ke.autolink=It(Ke.autolink).replace("scheme",Ke._scheme).replace("email",Ke._email).getRegex(),Ke._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ke.tag=It(Ke.tag).replace("comment",Ke._comment).replace("attribute",Ke._attribute).getRegex(),Ke._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ke._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ke._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ke.link=It(Ke.link).replace("label",Ke._label).replace("href",Ke._href).replace("title",Ke._title).getRegex(),Ke.reflink=It(Ke.reflink).replace("label",Ke._label).getRegex(),Ke.reflinkSearch=It(Ke.reflinkSearch,"g").replace("reflink",Ke.reflink).replace("nolink",Ke.nolink).getRegex(),Ke.normal=Ft({},Ke),Ke.pedantic=Ft({},Ke.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:It(/^!?\[(label)\]\((.*?)\)/).replace("label",Ke._label).getRegex(),reflink:It(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ke._label).getRegex()}),Ke.gfm=Ft({},Ke.normal,{escape:It(Ke.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ke.gfm.url=It(Ke.gfm.url,"i").replace("email",Ke.gfm._extended_email).getRegex(),Ke.breaks=Ft({},Ke.gfm,{br:It(Ke.br).replace("{2,}","*").getRegex(),text:It(Ke.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var en={block:Ht,inline:Ke},Tt=tt,an=ae.exports.defaults,qe=en.block,yt=en.inline,Fe=G.repeatString;function Ae(se){return se.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function V(se){var ve="",Ee,k,Y=se.length;for(Ee=0;Ee<Y;Ee++)k=se.charCodeAt(Ee),Math.random()>.5&&(k="x"+k.toString(16)),ve+="&#"+k+";";return ve}var je=function(){function se(Ee){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ee||an,this.options.tokenizer=this.options.tokenizer||new Tt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var k={block:qe.normal,inline:yt.normal};this.options.pedantic?(k.block=qe.pedantic,k.inline=yt.pedantic):this.options.gfm&&(k.block=qe.gfm,this.options.breaks?k.inline=yt.breaks:k.inline=yt.gfm),this.tokenizer.rules=k}se.lex=function(k,Y){var he=new se(Y);return he.lex(k)},se.lexInline=function(k,Y){var he=new se(Y);return he.inlineTokens(k)};var ve=se.prototype;return ve.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},ve.blockTokens=function(k,Y,he){Y===void 0&&(Y=[]),he===void 0&&(he=!0),this.options.pedantic&&(k=k.replace(/^ +$/gm,""));for(var ce,xe,Be,Xe;k;){if(ce=this.tokenizer.space(k)){k=k.substring(ce.raw.length),ce.type&&Y.push(ce);continue}if(ce=this.tokenizer.code(k)){k=k.substring(ce.raw.length),Xe=Y[Y.length-1],Xe&&Xe.type==="paragraph"?(Xe.raw+=`
`+ce.raw,Xe.text+=`
`+ce.text):Y.push(ce);continue}if(ce=this.tokenizer.fences(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.heading(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.nptable(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.hr(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.blockquote(k)){k=k.substring(ce.raw.length),ce.tokens=this.blockTokens(ce.text,[],he),Y.push(ce);continue}if(ce=this.tokenizer.list(k)){for(k=k.substring(ce.raw.length),Be=ce.items.length,xe=0;xe<Be;xe++)ce.items[xe].tokens=this.blockTokens(ce.items[xe].text,[],!1);Y.push(ce);continue}if(ce=this.tokenizer.html(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(he&&(ce=this.tokenizer.def(k))){k=k.substring(ce.raw.length),this.tokens.links[ce.tag]||(this.tokens.links[ce.tag]={href:ce.href,title:ce.title});continue}if(ce=this.tokenizer.table(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.lheading(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(he&&(ce=this.tokenizer.paragraph(k))){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.text(k)){k=k.substring(ce.raw.length),Xe=Y[Y.length-1],Xe&&Xe.type==="text"?(Xe.raw+=`
`+ce.raw,Xe.text+=`
`+ce.text):Y.push(ce);continue}if(k){var ct="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(ct);break}else throw new Error(ct)}}return Y},ve.inline=function(k){var Y,he,ce,xe,Be,Xe,ct=k.length;for(Y=0;Y<ct;Y++)switch(Xe=k[Y],Xe.type){case"paragraph":case"text":case"heading":{Xe.tokens=[],this.inlineTokens(Xe.text,Xe.tokens);break}case"table":{for(Xe.tokens={header:[],cells:[]},xe=Xe.header.length,he=0;he<xe;he++)Xe.tokens.header[he]=[],this.inlineTokens(Xe.header[he],Xe.tokens.header[he]);for(xe=Xe.cells.length,he=0;he<xe;he++)for(Be=Xe.cells[he],Xe.tokens.cells[he]=[],ce=0;ce<Be.length;ce++)Xe.tokens.cells[he][ce]=[],this.inlineTokens(Be[ce],Xe.tokens.cells[he][ce]);break}case"blockquote":{this.inline(Xe.tokens);break}case"list":{for(xe=Xe.items.length,he=0;he<xe;he++)this.inline(Xe.items[he].tokens);break}}return k},ve.inlineTokens=function(k,Y,he,ce){Y===void 0&&(Y=[]),he===void 0&&(he=!1),ce===void 0&&(ce=!1);var xe,Be,Xe=k,ct,nt,Ue;if(this.tokens.links){var I=Object.keys(this.tokens.links);if(I.length>0)for(;(ct=this.tokenizer.rules.inline.reflinkSearch.exec(Xe))!=null;)I.includes(ct[0].slice(ct[0].lastIndexOf("[")+1,-1))&&(Xe=Xe.slice(0,ct.index)+"["+Fe("a",ct[0].length-2)+"]"+Xe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ct=this.tokenizer.rules.inline.blockSkip.exec(Xe))!=null;)Xe=Xe.slice(0,ct.index)+"["+Fe("a",ct[0].length-2)+"]"+Xe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ct=this.tokenizer.rules.inline.escapedEmSt.exec(Xe))!=null;)Xe=Xe.slice(0,ct.index)+"++"+Xe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;k;){if(nt||(Ue=""),nt=!1,xe=this.tokenizer.escape(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.tag(k,he,ce)){k=k.substring(xe.raw.length),he=xe.inLink,ce=xe.inRawBlock;var Z=Y[Y.length-1];Z&&xe.type==="text"&&Z.type==="text"?(Z.raw+=xe.raw,Z.text+=xe.text):Y.push(xe);continue}if(xe=this.tokenizer.link(k)){k=k.substring(xe.raw.length),xe.type==="link"&&(xe.tokens=this.inlineTokens(xe.text,[],!0,ce)),Y.push(xe);continue}if(xe=this.tokenizer.reflink(k,this.tokens.links)){k=k.substring(xe.raw.length);var S=Y[Y.length-1];xe.type==="link"?(xe.tokens=this.inlineTokens(xe.text,[],!0,ce),Y.push(xe)):S&&xe.type==="text"&&S.type==="text"?(S.raw+=xe.raw,S.text+=xe.text):Y.push(xe);continue}if(xe=this.tokenizer.emStrong(k,Xe,Ue)){k=k.substring(xe.raw.length),xe.tokens=this.inlineTokens(xe.text,[],he,ce),Y.push(xe);continue}if(xe=this.tokenizer.codespan(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.br(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.del(k)){k=k.substring(xe.raw.length),xe.tokens=this.inlineTokens(xe.text,[],he,ce),Y.push(xe);continue}if(xe=this.tokenizer.autolink(k,V)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(!he&&(xe=this.tokenizer.url(k,V))){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.inlineText(k,ce,Ae)){k=k.substring(xe.raw.length),xe.raw.slice(-1)!=="_"&&(Ue=xe.raw.slice(-1)),nt=!0,Be=Y[Y.length-1],Be&&Be.type==="text"?(Be.raw+=xe.raw,Be.text+=xe.text):Y.push(xe);continue}if(k){var ze="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(ze);break}else throw new Error(ze)}}return Y},_(se,null,[{key:"rules",get:function(){return{block:qe,inline:yt}}}]),se}(),Qe=ae.exports.defaults,J=G.cleanUrl,M=G.escape,Se=function(){function se(Ee){this.options=Ee||Qe}var ve=se.prototype;return ve.code=function(k,Y,he){var ce=(Y||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(k,ce);xe!=null&&xe!==k&&(he=!0,k=xe)}return k=k.replace(/\n$/,"")+`
`,ce?'<pre><code class="'+this.options.langPrefix+M(ce,!0)+'">'+(he?k:M(k,!0))+`</code></pre>
`:"<pre><code>"+(he?k:M(k,!0))+`</code></pre>
`},ve.blockquote=function(k){return`<blockquote>
`+k+`</blockquote>
`},ve.html=function(k){return k},ve.heading=function(k,Y,he,ce){return this.options.headerIds?"<h"+Y+' id="'+this.options.headerPrefix+ce.slug(he)+'">'+k+"</h"+Y+`>
`:"<h"+Y+">"+k+"</h"+Y+`>
`},ve.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ve.list=function(k,Y,he){var ce=Y?"ol":"ul",xe=Y&&he!==1?' start="'+he+'"':"";return"<"+ce+xe+`>
`+k+"</"+ce+`>
`},ve.listitem=function(k){return"<li>"+k+`</li>
`},ve.checkbox=function(k){return"<input "+(k?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ve.paragraph=function(k){return"<p>"+k+`</p>
`},ve.table=function(k,Y){return Y&&(Y="<tbody>"+Y+"</tbody>"),`<table>
<thead>
`+k+`</thead>
`+Y+`</table>
`},ve.tablerow=function(k){return`<tr>
`+k+`</tr>
`},ve.tablecell=function(k,Y){var he=Y.header?"th":"td",ce=Y.align?"<"+he+' align="'+Y.align+'">':"<"+he+">";return ce+k+"</"+he+`>
`},ve.strong=function(k){return"<strong>"+k+"</strong>"},ve.em=function(k){return"<em>"+k+"</em>"},ve.codespan=function(k){return"<code>"+k+"</code>"},ve.br=function(){return this.options.xhtml?"<br/>":"<br>"},ve.del=function(k){return"<del>"+k+"</del>"},ve.link=function(k,Y,he){if(k=J(this.options.sanitize,this.options.baseUrl,k),k===null)return he;var ce='<a href="'+M(k)+'"';return Y&&(ce+=' title="'+Y+'"'),ce+=">"+he+"</a>",ce},ve.image=function(k,Y,he){if(k=J(this.options.sanitize,this.options.baseUrl,k),k===null)return he;var ce='<img src="'+k+'" alt="'+he+'"';return Y&&(ce+=' title="'+Y+'"'),ce+=this.options.xhtml?"/>":">",ce},ve.text=function(k){return k},se}(),be=function(){function se(){}var ve=se.prototype;return ve.strong=function(k){return k},ve.em=function(k){return k},ve.codespan=function(k){return k},ve.del=function(k){return k},ve.html=function(k){return k},ve.text=function(k){return k},ve.link=function(k,Y,he){return""+he},ve.image=function(k,Y,he){return""+he},ve.br=function(){return""},se}(),W=function(){function se(){this.seen={}}var ve=se.prototype;return ve.serialize=function(k){return k.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ve.getNextSafeSlug=function(k,Y){var he=k,ce=0;if(this.seen.hasOwnProperty(he)){ce=this.seen[k];do ce++,he=k+"-"+ce;while(this.seen.hasOwnProperty(he))}return Y||(this.seen[k]=ce,this.seen[he]=0),he},ve.slug=function(k,Y){Y===void 0&&(Y={});var he=this.serialize(k);return this.getNextSafeSlug(he,Y.dryrun)},se}(),fe=Se,ye=be,et=W,Ve=ae.exports.defaults,$e=G.unescape,Ye=function(){function se(Ee){this.options=Ee||Ve,this.options.renderer=this.options.renderer||new fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ye,this.slugger=new et}se.parse=function(k,Y){var he=new se(Y);return he.parse(k)},se.parseInline=function(k,Y){var he=new se(Y);return he.parseInline(k)};var ve=se.prototype;return ve.parse=function(k,Y){Y===void 0&&(Y=!0);var he="",ce,xe,Be,Xe,ct,nt,Ue,I,Z,S,ze,ke,Pe,Ge,We,dt,Lt,Pt,cn=k.length;for(ce=0;ce<cn;ce++)switch(S=k[ce],S.type){case"space":continue;case"hr":{he+=this.renderer.hr();continue}case"heading":{he+=this.renderer.heading(this.parseInline(S.tokens),S.depth,$e(this.parseInline(S.tokens,this.textRenderer)),this.slugger);continue}case"code":{he+=this.renderer.code(S.text,S.lang,S.escaped);continue}case"table":{for(I="",Ue="",Xe=S.header.length,xe=0;xe<Xe;xe++)Ue+=this.renderer.tablecell(this.parseInline(S.tokens.header[xe]),{header:!0,align:S.align[xe]});for(I+=this.renderer.tablerow(Ue),Z="",Xe=S.cells.length,xe=0;xe<Xe;xe++){for(nt=S.tokens.cells[xe],Ue="",ct=nt.length,Be=0;Be<ct;Be++)Ue+=this.renderer.tablecell(this.parseInline(nt[Be]),{header:!1,align:S.align[Be]});Z+=this.renderer.tablerow(Ue)}he+=this.renderer.table(I,Z);continue}case"blockquote":{Z=this.parse(S.tokens),he+=this.renderer.blockquote(Z);continue}case"list":{for(ze=S.ordered,ke=S.start,Pe=S.loose,Xe=S.items.length,Z="",xe=0;xe<Xe;xe++)We=S.items[xe],dt=We.checked,Lt=We.task,Ge="",We.task&&(Pt=this.renderer.checkbox(dt),Pe?We.tokens.length>0&&We.tokens[0].type==="text"?(We.tokens[0].text=Pt+" "+We.tokens[0].text,We.tokens[0].tokens&&We.tokens[0].tokens.length>0&&We.tokens[0].tokens[0].type==="text"&&(We.tokens[0].tokens[0].text=Pt+" "+We.tokens[0].tokens[0].text)):We.tokens.unshift({type:"text",text:Pt}):Ge+=Pt),Ge+=this.parse(We.tokens,Pe),Z+=this.renderer.listitem(Ge,Lt,dt);he+=this.renderer.list(Z,ze,ke);continue}case"html":{he+=this.renderer.html(S.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(S.tokens));continue}case"text":{for(Z=S.tokens?this.parseInline(S.tokens):S.text;ce+1<cn&&k[ce+1].type==="text";)S=k[++ce],Z+=`
`+(S.tokens?this.parseInline(S.tokens):S.text);he+=Y?this.renderer.paragraph(Z):Z;continue}default:{var Ne='Token with "'+S.type+'" type was not found.';if(this.options.silent){console.error(Ne);return}else throw new Error(Ne)}}return he},ve.parseInline=function(k,Y){Y=Y||this.renderer;var he="",ce,xe,Be=k.length;for(ce=0;ce<Be;ce++)switch(xe=k[ce],xe.type){case"escape":{he+=Y.text(xe.text);break}case"html":{he+=Y.html(xe.text);break}case"link":{he+=Y.link(xe.href,xe.title,this.parseInline(xe.tokens,Y));break}case"image":{he+=Y.image(xe.href,xe.title,xe.text);break}case"strong":{he+=Y.strong(this.parseInline(xe.tokens,Y));break}case"em":{he+=Y.em(this.parseInline(xe.tokens,Y));break}case"codespan":{he+=Y.codespan(xe.text);break}case"br":{he+=Y.br();break}case"del":{he+=Y.del(this.parseInline(xe.tokens,Y));break}case"text":{he+=Y.text(xe.text);break}default:{var Xe='Token with "'+xe.type+'" type was not found.';if(this.options.silent){console.error(Xe);return}else throw new Error(Xe)}}return he},se}(),lt=je,de=Ye,K=tt,N=Se,Le=be,De=W,Ce=G.merge,st=G.checkSanitizeDeprecation,at=G.escape,Oe=ae.exports.getDefaults,Et=ae.exports.changeDefaults,Vt=ae.exports.defaults;function St(se,ve,Ee){if(typeof se=="undefined"||se===null)throw new Error("marked(): input parameter is undefined or null");if(typeof se!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(se)+", string expected");if(typeof ve=="function"&&(Ee=ve,ve=null),ve=Ce({},St.defaults,ve||{}),st(ve),Ee){var k=ve.highlight,Y;try{Y=lt.lex(se,ve)}catch(Be){return Ee(Be)}var he=function(Xe){var ct;if(!Xe)try{ve.walkTokens&&St.walkTokens(Y,ve.walkTokens),ct=de.parse(Y,ve)}catch(nt){Xe=nt}return ve.highlight=k,Xe?Ee(Xe):Ee(null,ct)};if(!k||k.length<3||(delete ve.highlight,!Y.length))return he();var ce=0;St.walkTokens(Y,function(Be){Be.type==="code"&&(ce++,setTimeout(function(){k(Be.text,Be.lang,function(Xe,ct){if(Xe)return he(Xe);ct!=null&&ct!==Be.text&&(Be.text=ct,Be.escaped=!0),ce--,ce===0&&he()})},0))}),ce===0&&he();return}try{var xe=lt.lex(se,ve);return ve.walkTokens&&St.walkTokens(xe,ve.walkTokens),de.parse(xe,ve)}catch(Be){if(Be.message+=`
Please report this to https://github.com/markedjs/marked.`,ve.silent)return"<p>An error occurred:</p><pre>"+at(Be.message+"",!0)+"</pre>";throw Be}}St.options=St.setOptions=function(se){return Ce(St.defaults,se),Et(St.defaults),St},St.getDefaults=Oe,St.defaults=Vt,St.use=function(se){var ve=Ce({},se);if(se.renderer&&function(){var k=St.defaults.renderer||new N,Y=function(xe){var Be=k[xe];k[xe]=function(){for(var Xe=arguments.length,ct=new Array(Xe),nt=0;nt<Xe;nt++)ct[nt]=arguments[nt];var Ue=se.renderer[xe].apply(k,ct);return Ue===!1&&(Ue=Be.apply(k,ct)),Ue}};for(var he in se.renderer)Y(he);ve.renderer=k}(),se.tokenizer&&function(){var k=St.defaults.tokenizer||new K,Y=function(xe){var Be=k[xe];k[xe]=function(){for(var Xe=arguments.length,ct=new Array(Xe),nt=0;nt<Xe;nt++)ct[nt]=arguments[nt];var Ue=se.tokenizer[xe].apply(k,ct);return Ue===!1&&(Ue=Be.apply(k,ct)),Ue}};for(var he in se.tokenizer)Y(he);ve.tokenizer=k}(),se.walkTokens){var Ee=St.defaults.walkTokens;ve.walkTokens=function(k){se.walkTokens(k),Ee&&Ee(k)}}St.setOptions(ve)},St.walkTokens=function(se,ve){for(var Ee=z(se),k;!(k=Ee()).done;){var Y=k.value;switch(ve(Y),Y.type){case"table":{for(var he=z(Y.tokens.header),ce;!(ce=he()).done;){var xe=ce.value;St.walkTokens(xe,ve)}for(var Be=z(Y.tokens.cells),Xe;!(Xe=Be()).done;)for(var ct=Xe.value,nt=z(ct),Ue;!(Ue=nt()).done;){var I=Ue.value;St.walkTokens(I,ve)}break}case"list":{St.walkTokens(Y.items,ve);break}default:Y.tokens&&St.walkTokens(Y.tokens,ve)}}},St.parseInline=function(se,ve){if(typeof se=="undefined"||se===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof se!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(se)+", string expected");ve=Ce({},St.defaults,ve||{}),st(ve);try{var Ee=lt.lexInline(se,ve);return ve.walkTokens&&St.walkTokens(Ee,ve.walkTokens),de.parseInline(Ee,ve)}catch(k){if(k.message+=`
Please report this to https://github.com/markedjs/marked.`,ve.silent)return"<p>An error occurred:</p><pre>"+at(k.message+"",!0)+"</pre>";throw k}},St.Parser=de,St.parser=de.parse,St.Renderer=N,St.TextRenderer=Le,St.Lexer=lt,St.lexer=lt.lex,St.Tokenizer=K,St.Slugger=De,St.parse=St;var Bt=St;return Bt})},11690:function(In){const Gt=/[&<>"']/,_=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,ue=/[<>"']|&(?!#?\w+;)/g,z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ae=ee=>z[ee];function B(ee,oe){if(oe){if(Gt.test(ee))return ee.replace(_,ae)}else if(h.test(ee))return ee.replace(ue,ae);return ee}const d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function _e(ee){return ee.replace(d,(oe,ge)=>(ge=ge.toLowerCase(),ge==="colon"?":":ge.charAt(0)==="#"?ge.charAt(1)==="x"?String.fromCharCode(parseInt(ge.substring(2),16)):String.fromCharCode(+ge.substring(1)):""))}const te=/(^|[^\[])\^/g;function o(ee,oe){ee=ee.source||ee,oe=oe||"";const ge={replace:(me,ot)=>(ot=ot.source||ot,ot=ot.replace(te,"$1"),ee=ee.replace(me,ot),ge),getRegex:()=>new RegExp(ee,oe)};return ge}const g=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(ee,oe,ge){if(ee){let me;try{me=decodeURIComponent(_e(ge)).replace(g,"").toLowerCase()}catch(ot){return null}if(me.indexOf("javascript:")===0||me.indexOf("vbscript:")===0||me.indexOf("data:")===0)return null}oe&&!w.test(ge)&&(ge=$(oe,ge));try{ge=encodeURI(ge).replace(/%25/g,"%")}catch(me){return null}return ge}const E={},x=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,j=/^([^:]+:\/*[^/]*)[\s\S]*$/;function $(ee,oe){E[" "+ee]||(x.test(ee)?E[" "+ee]=ee+"/":E[" "+ee]=D(ee,"/",!0)),ee=E[" "+ee];const ge=ee.indexOf(":")===-1;return oe.substring(0,2)==="//"?ge?oe:ee.replace(L,"$1")+oe:oe.charAt(0)==="/"?ge?oe:ee.replace(j,"$1")+oe:ee+oe}const le={exec:function(){}};function F(ee){let oe=1,ge,me;for(;oe<arguments.length;oe++){ge=arguments[oe];for(me in ge)Object.prototype.hasOwnProperty.call(ge,me)&&(ee[me]=ge[me])}return ee}function H(ee,oe){const ge=ee.replace(/\|/g,(U,C,P)=>{let G=!1,re=C;for(;--re>=0&&P[re]==="\\";)G=!G;return G?"|":" |"}),me=ge.split(/ \|/);let ot=0;if(me.length>oe)me.splice(oe);else for(;me.length<oe;)me.push("");for(;ot<me.length;ot++)me[ot]=me[ot].trim().replace(/\\\|/g,"|");return me}function D(ee,oe,ge){const me=ee.length;if(me===0)return"";let ot=0;for(;ot<me;){const U=ee.charAt(me-ot-1);if(U===oe&&!ge)ot++;else if(U!==oe&&ge)ot++;else break}return ee.substr(0,me-ot)}function A(ee,oe){if(ee.indexOf(oe[1])===-1)return-1;const ge=ee.length;let me=0,ot=0;for(;ot<ge;ot++)if(ee[ot]==="\\")ot++;else if(ee[ot]===oe[0])me++;else if(ee[ot]===oe[1]&&(me--,me<0))return ot;return-1}function Q(ee){ee&&ee.sanitize&&!ee.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 ne(ee,oe){if(oe<1)return"";let ge="";for(;oe>1;)oe&1&&(ge+=ee),oe>>=1,ee+=ee;return ge+ee}In.exports={escape:B,unescape:_e,edit:o,cleanUrl:p,resolveUrl:$,noopTest:le,merge:F,splitCells:H,rtrim:D,findClosingBracket:A,checkSanitizeDeprecation:Q,repeatString:ne}},75918:function(In,Gt,_){"use strict";_.d(Gt,{Wi:function(){return d},Z0:function(){return _e},aU:function(){return B},eZ:function(){return o},wY:function(){return te}});var h=_(4348),ue=_(69323),z=_(13268),ae=function(g,w,p,E){function x(L){return L instanceof p?L:new p(function(j){j(L)})}return new(p||(p=Promise))(function(L,j){function $(H){try{F(E.next(H))}catch(D){j(D)}}function le(H){try{F(E.throw(H))}catch(D){j(D)}}function F(H){H.done?L(H.value):x(H.value).then($,le)}F((E=E.apply(g,w||[])).next())})};class B extends ue.JT{constructor(w,p="",E="",x=!0,L){super(),this._onDidChange=this._register(new h.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=w,this._label=p,this._cssClass=E,this._enabled=x,this._actionCallback=L}get id(){return this._id}get label(){return this._label}set label(w){this._setLabel(w)}_setLabel(w){this._label!==w&&(this._label=w,this._onDidChange.fire({label:w}))}get tooltip(){return this._tooltip||""}set tooltip(w){this._setTooltip(w)}_setTooltip(w){this._tooltip!==w&&(this._tooltip=w,this._onDidChange.fire({tooltip:w}))}get class(){return this._cssClass}set class(w){this._setClass(w)}_setClass(w){this._cssClass!==w&&(this._cssClass=w,this._onDidChange.fire({class:w}))}get enabled(){return this._enabled}set enabled(w){this._setEnabled(w)}_setEnabled(w){this._enabled!==w&&(this._enabled=w,this._onDidChange.fire({enabled:w}))}get checked(){return this._checked}set checked(w){this._setChecked(w)}_setChecked(w){this._checked!==w&&(this._checked=w,this._onDidChange.fire({checked:w}))}run(w,p){return ae(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(w))})}}class d extends ue.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new h.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new h.Q5),this.onDidRun=this._onDidRun.event}run(w,p){return ae(this,void 0,void 0,function*(){if(!w.enabled)return;this._onBeforeRun.fire({action:w});let E;try{yield this.runAction(w,p)}catch(x){E=x}this._onDidRun.fire({action:w,error:E})})}runAction(w,p){return ae(this,void 0,void 0,function*(){yield w.run(p)})}}class _e extends B{constructor(w){super(_e.ID,w,w?"separator text":"separator"),this.checked=!1,this.enabled=!1}}_e.ID="vs.actions.separator";class te{constructor(w,p,E,x){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=w,this.label=p,this.class=x,this._actions=E}get actions(){return this._actions}dispose(){}run(){return ae(this,void 0,void 0,function*(){})}}class o extends B{constructor(){super(o.ID,z.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(In,Gt,_){"use strict";_.d(Gt,{ok:function(){return h}});function h(ue,z){if(!ue)throw new Error(z?`Assertion failed (${z})`:"Assertion Failed")}},52615:function(In,Gt,_){"use strict";_.d(Gt,{CM:function(){return B},JL:function(){return d},dT:function(){return te},fK:function(){return ae},lA:function(){return _e}});var h=_(4348);class ue{constructor(){this._icons=new Map,this._onDidRegister=new h.Q5}add(g){const w=this._icons.get(g.id);w?g.description?w.description=g.description:console.error(`Duplicate registration of codicon ${g.id}`):(this._icons.set(g.id,g),this._onDidRegister.fire(g))}get(g){return this._icons.get(g)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const z=new ue,ae=z;function B(o,g){return new _e(o,g)}function d(o){return o?o.replace(/\$\((.*?)\)/g,(g,w)=>` ${w} `).trim():""}class _e{constructor(g,w,p){this.id=g,this.definition=w,this.description=p,z.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var te;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const g=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function w(x){if(x instanceof _e)return["codicon","codicon-"+x.id];const L=g.exec(x.id);if(!L)return w(_e.error);let[,j,$]=L;const le=["codicon","codicon-"+j];return $&&le.push("codicon-modifier-"+$.substr(1)),le}o.asClassNameArray=w;function p(x){return w(x).join(" ")}o.asClassName=p;function E(x){return"."+w(x).join(".")}o.asCSSSelector=E})(te||(te={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(_e||(_e={}))},79881:function(In,Gt,_){"use strict";_.d(Gt,{B8:function(){return w},Cp:function(){return ae},F0:function(){return te},L6:function(){return g},VV:function(){return _e},b1:function(){return o},dL:function(){return z},ri:function(){return B}});class h{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(E){setTimeout(()=>{throw E.stack?new Error(E.message+`
`+E.stack):E},0)}}emit(E){this.listeners.forEach(x=>{x(E)})}onUnexpectedError(E){this.unexpectedErrorHandler(E),this.emit(E)}onUnexpectedExternalError(E){this.unexpectedErrorHandler(E)}}const ue=new h;function z(p){_e(p)||ue.onUnexpectedError(p)}function ae(p){_e(p)||ue.onUnexpectedExternalError(p)}function B(p){if(p instanceof Error){let{name:E,message:x}=p;const L=p.stacktrace||p.stack;return{$isError:!0,name:E,message:x,stack:L}}return p}const d="Canceled";function _e(p){return p instanceof Error&&p.name===d&&p.message===d}function te(){const p=new Error(d);return p.name=p.message,p}function o(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function g(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class w extends Error{constructor(E){super("NotSupported"),E&&(this.message=E)}}},4348:function(In,Gt,_){"use strict";_.d(Gt,{D0:function(){return w},E7:function(){return p},K3:function(){return g},Q5:function(){return o},ZD:function(){return E},ju:function(){return B}});var h=_(79881),ue=_(69323),z=_(34502),ae=_(95830),B;(function(x){x.None=()=>ue.JT.None;function L(P){return(G,re=null,X)=>{let y=!1,v;return v=P(O=>{if(!y)return v?v.dispose():y=!0,G.call(re,O)},null,X),y&&v.dispose(),v}}x.once=L;function j(P,G){return A((re,X=null,y)=>P(v=>re.call(X,G(v)),null,y))}x.map=j;function $(P,G){return A((re,X=null,y)=>P(v=>{G(v),re.call(X,v)},null,y))}x.forEach=$;function le(P,G){return A((re,X=null,y)=>P(v=>G(v)&&re.call(X,v),null,y))}x.filter=le;function F(P){return P}x.signal=F;function H(...P){return(G,re=null,X)=>(0,ue.F8)(...P.map(y=>y(v=>G.call(re,v),null,X)))}x.any=H;function D(P,G,re){let X=re;return j(P,y=>(X=G(X,y),X))}x.reduce=D;function A(P){let G;const re=new o({onFirstListenerAdd(){G=P(re.fire,re)},onLastListenerRemove(){G.dispose()}});return re.event}function Q(P,G,re=100,X=!1,y){let v,O,pe,He=0;const tt=new o({leakWarningThreshold:y,onFirstListenerAdd(){v=P(wt=>{He++,O=G(O,wt),X&&!pe&&(tt.fire(O),O=void 0),clearTimeout(pe),pe=setTimeout(()=>{const It=O;O=void 0,pe=void 0,(!X||He>1)&&tt.fire(It),He=0},re)})},onLastListenerRemove(){v.dispose()}});return tt.event}x.debounce=Q;function ne(P,G=(re,X)=>re===X){let re=!0,X;return le(P,y=>{const v=re||!G(y,X);return re=!1,X=y,v})}x.latch=ne;function ee(P,G){return[x.filter(P,G),x.filter(P,re=>!G(re))]}x.split=ee;function oe(P,G=!1,re=[]){let X=re.slice(),y=P(pe=>{X?X.push(pe):O.fire(pe)});const v=()=>{X&&X.forEach(pe=>O.fire(pe)),X=null},O=new o({onFirstListenerAdd(){y||(y=P(pe=>O.fire(pe)))},onFirstListenerDidAdd(){X&&(G?setTimeout(v):v())},onLastListenerRemove(){y&&y.dispose(),y=null}});return O.event}x.buffer=oe;class ge{constructor(G){this.event=G}map(G){return new ge(j(this.event,G))}forEach(G){return new ge($(this.event,G))}filter(G){return new ge(le(this.event,G))}reduce(G,re){return new ge(D(this.event,G,re))}latch(){return new ge(ne(this.event))}debounce(G,re=100,X=!1,y){return new ge(Q(this.event,G,re,X,y))}on(G,re,X){return this.event(G,re,X)}once(G,re,X){return L(this.event)(G,re,X)}}function me(P){return new ge(P)}x.chain=me;function ot(P,G,re=X=>X){const X=(...pe)=>O.fire(re(...pe)),y=()=>P.on(G,X),v=()=>P.removeListener(G,X),O=new o({onFirstListenerAdd:y,onLastListenerRemove:v});return O.event}x.fromNodeEventEmitter=ot;function U(P,G,re=X=>X){const X=(...pe)=>O.fire(re(...pe)),y=()=>P.addEventListener(G,X),v=()=>P.removeEventListener(G,X),O=new o({onFirstListenerAdd:y,onLastListenerRemove:v});return O.event}x.fromDOMEventEmitter=U;function C(P){return new Promise(G=>L(P)(G))}x.toPromise=C})(B||(B={}));class d{constructor(L){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${L}_${d._idPool++}`}start(L){this._stopWatch=new ae.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 _e=-1;class te{constructor(L,j=Math.random().toString(18).slice(2,5)){this.customThreshold=L,this.name=j,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(L){let j=_e;if(typeof this.customThreshold=="number"&&(j=this.customThreshold),j<=0||L<j)return;this._stacks||(this._stacks=new Map);const $=new Error().stack.split(`
`).slice(3).join(`
`),le=this._stacks.get($)||0;if(this._stacks.set($,le+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=j*.5;let F,H=0;for(const[D,A]of this._stacks)(!F||H<A)&&(F=D,H=A);console.warn(`[${this.name}] potential listener LEAK detected, having ${L} listeners already. MOST frequent listener (${H}):`),console.warn(F)}return()=>{const F=this._stacks.get($)||0;this._stacks.set($,F-1)}}}class o{constructor(L){var j;this._disposed=!1,this._options=L,this._leakageMon=_e>0?new te(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((j=this._options)===null||j===void 0)&&j._profName?new d(this._options._profName):void 0}get event(){return this._event||(this._event=(L,j,$)=>{var le;this._listeners||(this._listeners=new z.S);const F=this._listeners.isEmpty();F&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const H=this._listeners.push(j?[L,j]:L);F&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,L,j);const D=(le=this._leakageMon)===null||le===void 0?void 0:le.check(this._listeners.size),A=(0,ue.OF)(()=>{D&&D(),this._disposed||(H(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return $ instanceof ue.SL?$.add(A):Array.isArray($)&&$.push(A),A}),this._event}fire(L){var j,$;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.S);for(let le of this._listeners)this._deliveryQueue.push([le,L]);for((j=this._perfMon)===null||j===void 0||j.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[le,F]=this._deliveryQueue.shift();try{typeof le=="function"?le.call(void 0,F):le[0].call(le[1],F)}catch(H){(0,h.dL)(H)}}($=this._perfMon)===null||$===void 0||$.stop()}}dispose(){var L,j,$,le,F;this._disposed||(this._disposed=!0,(L=this._listeners)===null||L===void 0||L.clear(),(j=this._deliveryQueue)===null||j===void 0||j.clear(),(le=($=this._options)===null||$===void 0?void 0:$.onLastListenerRemove)===null||le===void 0||le.call($),(F=this._leakageMon)===null||F===void 0||F.dispose())}}class g extends o{constructor(L){super(L),this._isPaused=0,this._eventQueue=new z.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 w extends g{constructor(L){var j;super(L),this._delay=(j=L.delay)!==null&&j!==void 0?j:100}fire(L){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(L)}}class p{constructor(){this.buffers=[]}wrapEvent(L){return(j,$,le)=>L(F=>{const H=this.buffers[this.buffers.length-1];H?H.push(()=>j.call($,F)):j.call($,F)},void 0,le)}bufferEvents(L){const j=[];this.buffers.push(j);const $=L();return this.buffers.pop(),j.forEach(le=>le()),$}}class E{constructor(){this.listening=!1,this.inputEvent=B.None,this.inputEventListener=ue.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,Gt,_){"use strict";_.d(Gt,{I:function(){return h}});function h(ue){const z=this;let ae=!1,B;return function(){return ae||(ae=!0,B=ue.apply(z,arguments)),B}}},88226:function(In,Gt,_){"use strict";_.d(Gt,{$:function(){return h}});var h;(function(ue){function z(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"}ue.is=z;const ae=Object.freeze([]);function B(){return ae}ue.empty=B;function*d(H){yield H}ue.single=d;function _e(H){return H||ae}ue.from=_e;function te(H){return!H||H[Symbol.iterator]().next().done===!0}ue.isEmpty=te;function o(H){return H[Symbol.iterator]().next().value}ue.first=o;function g(H,D){for(const A of H)if(D(A))return!0;return!1}ue.some=g;function w(H,D){for(const A of H)if(D(A))return A}ue.find=w;function*p(H,D){for(const A of H)D(A)&&(yield A)}ue.filter=p;function*E(H,D){let A=0;for(const Q of H)yield D(Q,A++)}ue.map=E;function*x(...H){for(const D of H)for(const A of D)yield A}ue.concat=x;function*L(H){for(const D of H)for(const A of D)yield A}ue.concatNested=L;function j(H,D,A){let Q=A;for(const ne of H)Q=D(Q,ne);return Q}ue.reduce=j;function*$(H,D,A=H.length){for(D<0&&(D+=H.length),A<0?A+=H.length:A>H.length&&(A=H.length);D<A;D++)yield H[D]}ue.slice=$;function le(H,D=Number.POSITIVE_INFINITY){const A=[];if(D===0)return[A,H];const Q=H[Symbol.iterator]();for(let ne=0;ne<D;ne++){const ee=Q.next();if(ee.done)return[A,ue.empty()];A.push(ee.value)}return[A,{[Symbol.iterator](){return Q}}]}ue.consume=le;function F(H,D,A=(Q,ne)=>Q===ne){const Q=H[Symbol.iterator](),ne=D[Symbol.iterator]();for(;;){const ee=Q.next(),oe=ne.next();if(ee.done!==oe.done)return!1;if(ee.done)return!0;if(!A(ee.value,oe.value))return!1}}ue.equals=F})(h||(h={}))},69323:function(In,Gt,_){"use strict";_.d(Gt,{B9:function(){return E},F8:function(){return x},JT:function(){return $},Jz:function(){return F},OF:function(){return L},SL:function(){return j},Wf:function(){return p},XK:function(){return le},dk:function(){return g}});var h=_(17845),ue=_(88226);const z=!1;let ae=null;function B(H){ae=H}if(z){const H="__is_disposable_tracked__";B(new class{trackDisposable(D){const A=new Error("Potentially leaked disposable").stack;setTimeout(()=>{D[H]||console.log(A)},3e3)}setParent(D,A){if(D&&D!==$.None)try{D[H]=!0}catch(Q){}}markAsDisposed(D){if(D&&D!==$.None)try{D[H]=!0}catch(A){}}markAsSingleton(D){}})}function d(H){return ae==null||ae.trackDisposable(H),H}function _e(H){ae==null||ae.markAsDisposed(H)}function te(H,D){ae==null||ae.setParent(H,D)}function o(H,D){if(ae)for(const A of H)ae.setParent(A,D)}function g(H){return ae==null||ae.markAsSingleton(H),H}class w extends Error{constructor(D){super(`Encountered errors while disposing of store. Errors: [${D.join(", ")}]`),this.errors=D}}function p(H){return typeof H.dispose=="function"&&H.dispose.length===0}function E(H){if(ue.$.is(H)){let D=[];for(const A of H)if(A)try{A.dispose()}catch(Q){D.push(Q)}if(D.length===1)throw D[0];if(D.length>1)throw new w(D);return Array.isArray(H)?[]:H}else if(H)return H.dispose(),H}function x(...H){const D=L(()=>E(H));return o(H,D),D}function L(H){const D=d({dispose:(0,h.I)(()=>{_e(D),H()})});return D}class j{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(_e(this),this._isDisposed=!0,this.clear())}clear(){try{E(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 te(D,this),this._isDisposed?j.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}}j.DISABLE_DISPOSED_WARNING=!1;class ${constructor(){this._store=new j,d(this),te(this._store,this)}dispose(){_e(this),this._store.dispose()}_register(D){if(D===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(D)}}$.None=Object.freeze({dispose(){}});class le{constructor(){this._isDisposed=!1,d(this)}get value(){return this._isDisposed?void 0:this._value}set value(D){var A;this._isDisposed||D===this._value||((A=this._value)===null||A===void 0||A.dispose(),D&&te(D,this),this._value=D)}clear(){this.value=void 0}dispose(){var D;this._isDisposed=!0,_e(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&&te(D,null),D}}class F{constructor(D){this.object=D}dispose(){}}},34502:function(In,Gt,_){"use strict";_.d(Gt,{S:function(){return ue}});class h{constructor(ae){this.element=ae,this.next=h.Undefined,this.prev=h.Undefined}}h.Undefined=new h(void 0);class ue{constructor(){this._first=h.Undefined,this._last=h.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===h.Undefined}clear(){let ae=this._first;for(;ae!==h.Undefined;){const B=ae.next;ae.prev=h.Undefined,ae.next=h.Undefined,ae=B}this._first=h.Undefined,this._last=h.Undefined,this._size=0}unshift(ae){return this._insert(ae,!1)}push(ae){return this._insert(ae,!0)}_insert(ae,B){const d=new h(ae);if(this._first===h.Undefined)this._first=d,this._last=d;else if(B){const te=this._last;this._last=d,d.prev=te,te.next=d}else{const te=this._first;this._first=d,d.next=te,te.prev=d}this._size+=1;let _e=!1;return()=>{_e||(_e=!0,this._remove(d))}}shift(){if(this._first!==h.Undefined){const ae=this._first.element;return this._remove(this._first),ae}}pop(){if(this._last!==h.Undefined){const ae=this._last.element;return this._remove(this._last),ae}}_remove(ae){if(ae.prev!==h.Undefined&&ae.next!==h.Undefined){const B=ae.prev;B.next=ae.next,ae.next.prev=B}else ae.prev===h.Undefined&&ae.next===h.Undefined?(this._first=h.Undefined,this._last=h.Undefined):ae.next===h.Undefined?(this._last=this._last.prev,this._last.next=h.Undefined):ae.prev===h.Undefined&&(this._first=this._first.next,this._first.prev=h.Undefined);this._size-=1}*[Symbol.iterator](){let ae=this._first;for(;ae!==h.Undefined;)yield ae.element,ae=ae.next}}},23345:function(In,Gt,_){"use strict";_.d(Gt,{$L:function(){return Q},ED:function(){return F},IJ:function(){return D},OS:function(){return ge},WE:function(){return ee},dz:function(){return H},gn:function(){return ne},li:function(){return L},r:function(){return U},tY:function(){return A},xS:function(){return oe}});var h=_(97671),ue;const z="en";let ae=!1,B=!1,d=!1,_e=!1,te=!1,o=!1,g=!1,w,p=null,E=null,x;const L=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let j;typeof L.vscode!="undefined"&&typeof L.vscode.process!="undefined"?j=L.vscode.process:typeof h!="undefined"&&(j=h);const $=typeof((ue=j==null?void 0:j.versions)===null||ue===void 0?void 0:ue.electron)=="string"&&j.type==="renderer";if(typeof navigator=="object"&&!$)x=navigator.userAgent,ae=x.indexOf("Windows")>=0,B=x.indexOf("Macintosh")>=0,g=(x.indexOf("Macintosh")>=0||x.indexOf("iPad")>=0||x.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=x.indexOf("Linux")>=0,o=!0,w=navigator.language,p=w;else if(typeof j=="object"){ae=j.platform==="win32",B=j.platform==="darwin",d=j.platform==="linux",_e=d&&!!j.env.SNAP&&!!j.env.SNAP_REVISION,w=z,p=z;const C=j.env.VSCODE_NLS_CONFIG;if(C)try{const P=JSON.parse(C),G=P.availableLanguages["*"];w=P.locale,p=G||z,E=P._translationsConfigFile}catch(P){}te=!0}else console.error("Unable to resolve platform.");let le=0;B?le=1:ae?le=3:d&&(le=2);const F=ae,H=B,D=d,A=te,Q=o,ne=g,ee=x,oe=function(){if(L.setImmediate)return L.setImmediate.bind(L);if(typeof L.postMessage=="function"&&!L.importScripts){let G=[];L.addEventListener("message",X=>{if(X.data&&X.data.vscodeSetImmediateId)for(let y=0,v=G.length;y<v;y++){const O=G[y];if(O.id===X.data.vscodeSetImmediateId){G.splice(y,1),O.callback();return}}});let re=0;return X=>{const y=++re;G.push({id:y,callback:X}),L.postMessage({vscodeSetImmediateId:y},"*")}}if(typeof(j==null?void 0:j.nextTick)=="function")return j.nextTick.bind(j);const P=Promise.resolve();return G=>P.then(G)}(),ge=B||g?2:ae?1:3;let me=!0,ot=!1;function U(){if(!ot){ot=!0;const C=new Uint8Array(2);C[0]=1,C[1]=2,me=new Uint16Array(C.buffer)[0]===513}return me}},95830:function(In,Gt,_){"use strict";_.d(Gt,{G:function(){return z}});var h=_(23345);const ue=h.li.performance&&typeof h.li.performance.now=="function";class z{constructor(B){this._highResolution=ue&&B,this._startTime=this._now(),this._stopTime=-1}static create(B=!0){return new z(B)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?h.li.performance.now():Date.now()}}},82983:function(In,Gt,_){"use strict";_.d(Gt,{$i:function(){return He},C8:function(){return Ht},GF:function(){return w},HO:function(){return re},IO:function(){return p},K7:function(){return Ft},Kw:function(){return Tt},LC:function(){return L},Mh:function(){return oe},P1:function(){return ge},PJ:function(){return an},Qe:function(){return tt},R1:function(){return g},RP:function(){return O},S6:function(){return qe},TT:function(){return F},Ut:function(){return y},V8:function(){return j},WU:function(){return z},YK:function(){return ot},YU:function(){return ae},ZG:function(){return me},ZH:function(){return C},ab:function(){return wt},c1:function(){return Ke},df:function(){return Q},ec:function(){return B},fi:function(){return yt},fy:function(){return d},j3:function(){return _e},j_:function(){return D},m5:function(){return h},mK:function(){return A},mr:function(){return E},oH:function(){return V},oL:function(){return te},ok:function(){return ee},ow:function(){return $},qq:function(){return ne},qu:function(){return le},rL:function(){return U},uS:function(){return en},un:function(){return o},uq:function(){return x},vH:function(){return G},xe:function(){return It},zY:function(){return H}});function h(M){return!M||typeof M!="string"?!0:M.trim().length===0}const ue=/{(\d+)}/g;function z(M,...Se){return Se.length===0?M:M.replace(ue,function(be,W){const fe=parseInt(W,10);return isNaN(fe)||fe<0||fe>=Se.length?be:Se[fe]})}function ae(M){return M.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Se}})}function B(M){return M.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(M,Se=" "){const be=_e(M,Se);return te(be,Se)}function _e(M,Se){if(!M||!Se)return M;const be=Se.length;if(be===0||M.length===0)return M;let W=0;for(;M.indexOf(Se,W)===W;)W=W+be;return M.substring(W)}function te(M,Se){if(!M||!Se)return M;const be=Se.length,W=M.length;if(be===0||W===0)return M;let fe=W,ye=-1;for(;ye=M.lastIndexOf(Se,fe-1),!(ye===-1||ye+be!==fe);){if(ye===0)return"";fe=ye}return M.substring(0,fe)}function o(M){return M.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function g(M){return M.replace(/\*/g,"")}function w(M,Se,be={}){if(!M)throw new Error("Cannot create regex from empty string");Se||(M=B(M)),be.wholeWord&&(/\B/.test(M.charAt(0))||(M="\\b"+M),/\B/.test(M.charAt(M.length-1))||(M=M+"\\b"));let W="";return be.global&&(W+="g"),be.matchCase||(W+="i"),be.multiline&&(W+="m"),be.unicode&&(W+="u"),new RegExp(M,W)}function p(M){return M.source==="^"||M.source==="^$"||M.source==="$"||M.source==="^\\s*$"?!1:!!(M.exec("")&&M.lastIndex===0)}function E(M){return(M.global?"g":"")+(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")}function x(M){return M.split(/\r\n|\r|\n/)}function L(M){for(let Se=0,be=M.length;Se<be;Se++){const W=M.charCodeAt(Se);if(W!==32&&W!==9)return Se}return-1}function j(M,Se=0,be=M.length){for(let W=Se;W<be;W++){const fe=M.charCodeAt(W);if(fe!==32&&fe!==9)return M.substring(Se,W)}return M.substring(Se,be)}function $(M,Se=M.length-1){for(let be=Se;be>=0;be--){const W=M.charCodeAt(be);if(W!==32&&W!==9)return be}return-1}function le(M,Se){return M<Se?-1:M>Se?1:0}function F(M,Se,be=0,W=M.length,fe=0,ye=Se.length){for(;be<W&&fe<ye;be++,fe++){let $e=M.charCodeAt(be),Ye=Se.charCodeAt(fe);if($e<Ye)return-1;if($e>Ye)return 1}const et=W-be,Ve=ye-fe;return et<Ve?-1:et>Ve?1:0}function H(M,Se){return D(M,Se,0,M.length,0,Se.length)}function D(M,Se,be=0,W=M.length,fe=0,ye=Se.length){for(;be<W&&fe<ye;be++,fe++){let $e=M.charCodeAt(be),Ye=Se.charCodeAt(fe);if($e===Ye)continue;if($e>=128||Ye>=128)return F(M.toLowerCase(),Se.toLowerCase(),be,W,fe,ye);A($e)&&($e-=32),A(Ye)&&(Ye-=32);const lt=$e-Ye;if(lt!==0)return lt}const et=W-be,Ve=ye-fe;return et<Ve?-1:et>Ve?1:0}function A(M){return M>=97&&M<=122}function Q(M){return M>=65&&M<=90}function ne(M,Se){return M.length===Se.length&&D(M,Se)===0}function ee(M,Se){const be=Se.length;return Se.length>M.length?!1:D(M,Se,0,be)===0}function oe(M,Se){let be,W=Math.min(M.length,Se.length);for(be=0;be<W;be++)if(M.charCodeAt(be)!==Se.charCodeAt(be))return be;return W}function ge(M,Se){let be,W=Math.min(M.length,Se.length);const fe=M.length-1,ye=Se.length-1;for(be=0;be<W;be++)if(M.charCodeAt(fe-be)!==Se.charCodeAt(ye-be))return be;return W}function me(M){return 55296<=M&&M<=56319}function ot(M){return 56320<=M&&M<=57343}function U(M,Se){return(M-55296<<10)+(Se-56320)+65536}function C(M,Se,be){const W=M.charCodeAt(be);if(me(W)&&be+1<Se){const fe=M.charCodeAt(be+1);if(ot(fe))return U(W,fe)}return W}function P(M,Se){const be=M.charCodeAt(Se-1);if(ot(be)&&Se>1){const W=M.charCodeAt(Se-2);if(me(W))return U(W,be)}return be}function G(M,Se){const be=Fe.getInstance(),W=Se,fe=M.length,ye=C(M,fe,Se);Se+=ye>=65536?2:1;let et=be.getGraphemeBreakType(ye);for(;Se<fe;){const Ve=C(M,fe,Se),$e=be.getGraphemeBreakType(Ve);if(yt(et,$e))break;Se+=Ve>=65536?2:1,et=$e}return Se-W}function re(M,Se){const be=Fe.getInstance(),W=Se,fe=P(M,Se);Se-=fe>=65536?2:1;let ye=be.getGraphemeBreakType(fe);for(;Se>0;){const et=P(M,Se),Ve=be.getGraphemeBreakType(et);if(yt(Ve,ye))break;Se-=et>=65536?2:1,ye=Ve}return W-Se}const X=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function y(M){return X.test(M)}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 O(M){return v.test(M)}const pe=/^[\t\n\r\x20-\x7E]*$/;function He(M){return pe.test(M)}const tt=/[\u2028\u2029]/;function wt(M){return tt.test(M)}function It(M){for(let Se=0,be=M.length;Se<be;Se++)if(Ft(M.charCodeAt(Se)))return!0;return!1}function Ft(M){return M=+M,M>=11904&&M<=55215||M>=63744&&M<=64255||M>=65281&&M<=65374}function Ht(M){return M>=127462&&M<=127487||M===8986||M===8987||M===9200||M===9203||M>=9728&&M<=10175||M===11088||M===11093||M>=127744&&M<=128591||M>=128640&&M<=128764||M>=128992&&M<=129003||M>=129280&&M<=129535||M>=129648&&M<=129750}const Ke="\uFEFF";function en(M){return!!(M&&M.length>0&&M.charCodeAt(0)===65279)}function Tt(M,Se=!1){return M?(Se&&(M=M.replace(/\\./g,"")),M.toLowerCase()!==M):!1}function an(M){return M=M%(2*26),M<26?String.fromCharCode(97+M):String.fromCharCode(65+M-26)}function qe(M){return Fe.getInstance().getGraphemeBreakType(M)}function yt(M,Se){return M===0?Se!==5&&Se!==7:M===2&&Se===3?!1:M===4||M===2||M===3||Se===4||Se===2||Se===3?!0:!(M===8&&(Se===8||Se===9||Se===11||Se===12)||(M===11||M===9)&&(Se===9||Se===10)||(M===12||M===10)&&Se===10||Se===5||Se===13||Se===7||M===1||M===13&&Se===14||M===6&&Se===6)}class Fe{constructor(){this._data=Ae()}static getInstance(){return Fe._INSTANCE||(Fe._INSTANCE=new Fe),Fe._INSTANCE}getGraphemeBreakType(Se){if(Se<32)return Se===10?3:Se===13?2:4;if(Se<127)return 0;const be=this._data,W=be.length/3;let fe=1;for(;fe<=W;)if(Se<be[3*fe])fe=2*fe;else if(Se>be[3*fe+1])fe=2*fe+1;else return be[3*fe+2];return 0}}Fe._INSTANCE=null;function Ae(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function V(M,Se){if(M===0)return 0;const be=je(M,Se);if(be!==void 0)return be;const W=P(Se,M);return M-=Qe(W),M}function je(M,Se){let be=P(Se,M);for(M-=Qe(be);J(be)||be===65039||be===8419;){if(M===0)return;be=P(Se,M),M-=Qe(be)}if(Ht(be)){if(M>=0){const W=P(Se,M);W===8205&&(M-=Qe(W))}return M}}function Qe(M){return M>=65536?2:1}function J(M){return 127995<=M&&M<=127999}},72999:function(In,Gt,_){"use strict";_.d(Gt,{$E:function(){return L},$K:function(){return _e},D8:function(){return p},HD:function(){return ue},IU:function(){return j},Jp:function(){return te},Kn:function(){return z},cW:function(){return g},f6:function(){return $},hj:function(){return ae},jn:function(){return B},kJ:function(){return h},mf:function(){return w},o8:function(){return d},p_:function(){return o},vE:function(){return le}});function h(F){return Array.isArray(F)}function ue(F){return typeof F=="string"}function z(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)&&!(F instanceof RegExp)&&!(F instanceof Date)}function ae(F){return typeof F=="number"&&!isNaN(F)}function B(F){return F===!0||F===!1}function d(F){return typeof F=="undefined"}function _e(F){return!te(F)}function te(F){return d(F)||F===null}function o(F,H){if(!F)throw new Error(H?`Unexpected type, expected '${H}'`:"Unexpected type")}function g(F){if(te(F))throw new Error("Assertion Failed: argument is undefined or null");return F}function w(F){return typeof F=="function"}function p(F,H){const D=Math.min(F.length,H.length);for(let A=0;A<D;A++)E(F[A],H[A])}function E(F,H){if(ue(H)){if(typeof F!==H)throw new Error(`argument does not match constraint: typeof ${H}`)}else if(w(H)){try{if(F instanceof H)return}catch(D){}if(!te(F)&&F.constructor===H||H.length===1&&H.call(void 0,F)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function x(F){let H=[],D=Object.getPrototypeOf(F);for(;Object.prototype!==D;)H=H.concat(Object.getOwnPropertyNames(D)),D=Object.getPrototypeOf(D);return H}function L(F){const H=[];for(const D of x(F))typeof F[D]=="function"&&H.push(D);return H}function j(F,H){const D=Q=>function(){const ne=Array.prototype.slice.call(arguments,0);return H(Q,ne)};let A={};for(const Q of F)A[Q]=D(Q);return A}function $(F){return F===null?void 0:F}function le(F,H="Unreachable"){throw new Error(H)}},13268:function(In,Gt,_){"use strict";_.d(Gt,{N:function(){return ue}});function h(z,ae){let B;return ae.length===0?B=z:B=z.replace(/\{(\d+)\}/g,function(d,_e){const te=_e[0];return typeof ae[te]!="undefined"?ae[te]:d}),B}function ue(z,ae,...B){return h(ae,B)}},96236:function(In,Gt,_){"use strict";_.d(Gt,{BH:function(){return j},NZ:function(){return $},U8:function(){return le},co:function(){return L},eH:function(){return x},vr:function(){return E}});var h=_(75918),ue=_(52615),z=_(4348),ae=_(88226),B=_(69323),d=_(34502),_e=_(35884),te=_(90689),o=_(16925),g=_(49055),w=function(F,H,D,A){var Q=arguments.length,ne=Q<3?H:A===null?A=Object.getOwnPropertyDescriptor(H,D):A,ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(F,H,D,A);else for(var oe=F.length-1;oe>=0;oe--)(ee=F[oe])&&(ne=(Q<3?ee(ne):Q>3?ee(H,D,ne):ee(H,D))||ne);return Q>3&&ne&&Object.defineProperty(H,D,ne),ne},p=function(F,H){return function(D,A){H(D,A,F)}};function E(F){return F.command!==void 0}class x{constructor(H){this.id=x._idPool++,this._debugName=H}}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"),j=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new z.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:F=>F===x.CommandPalette}}addCommand(F){return this.addCommands(ae.$.single(F))}addCommands(F){for(const H of F)this._commands.set(H.id,H);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,B.OF)(()=>{let H=!1;for(const D of F)H=this._commands.delete(D.id)||H;H&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(F){return this._commands.get(F)}getCommands(){const F=new Map;return this._commands.forEach((H,D)=>F.set(D,H)),F}appendMenuItem(F,H){return this.appendMenuItems(ae.$.single({id:F,item:H}))}appendMenuItems(F){const H=new Set,D=new d.S;for(const{id:A,item:Q}of F){let ne=this._menuItems.get(A);ne||(ne=new d.S,this._menuItems.set(A,ne)),D.push(ne.push(Q)),H.add(A)}return this._onDidChangeMenu.fire(H),(0,B.OF)(()=>{if(D.size>0){for(let A of D)A();this._onDidChangeMenu.fire(H),D.clear()}})}getMenuItems(F){let H;return this._menuItems.has(F)?H=[...this._menuItems.get(F)]:H=[],F===x.CommandPalette&&this._appendImplicitItems(H),H}_appendImplicitItems(F){const H=new Set;for(const D of F)E(D)&&(H.add(D.command.id),D.alt&&H.add(D.alt.id));this._commands.forEach((D,A)=>{H.has(A)||F.push({command:D})})}};class $ extends h.wY{constructor(H,D,A,Q){super(`submenuitem.${H.submenu.id}`,typeof H.title=="string"?H.title:H.title.value,[],"submenu"),this.item=H,this._menuService=D,this._contextKeyService=A,this._options=Q}get actions(){const H=[],D=this._menuService.createMenu(this.item.submenu,this._contextKeyService),A=D.getActions(this._options);D.dispose();for(const[,Q]of A)Q.length>0&&(H.push(...Q),H.push(new h.Z0));return H.length&&H.pop(),H}}let le=class Il{constructor(H,D,A,Q,ne){var ee,oe;if(this._commandService=ne,this.id=H.id,this.label=A!=null&&A.renderShortTitle&&H.shortTitle?typeof H.shortTitle=="string"?H.shortTitle:H.shortTitle.value:typeof H.title=="string"?H.title:H.title.value,this.tooltip=(oe=typeof H.tooltip=="string"?H.tooltip:(ee=H.tooltip)===null||ee===void 0?void 0:ee.value)!==null&&oe!==void 0?oe:"",this.enabled=!H.precondition||Q.contextMatchesRules(H.precondition),this.checked=void 0,H.toggled){const ge=H.toggled.condition?H.toggled:{condition:H.toggled};this.checked=Q.contextMatchesRules(ge.condition),this.checked&&ge.tooltip&&(this.tooltip=typeof ge.tooltip=="string"?ge.tooltip:ge.tooltip.value),ge.title&&(this.label=typeof ge.title=="string"?ge.title:ge.title.value)}this.item=H,this.alt=D?new Il(D,void 0,A,Q,ne):void 0,this._options=A,g.kS.isThemeIcon(H.icon)&&(this.class=ue.dT.asClassName(H.icon))}dispose(){}run(...H){var D,A;let Q=[];return!((D=this._options)===null||D===void 0)&&D.arg&&(Q=[...Q,this._options.arg]),!((A=this._options)===null||A===void 0)&&A.shouldForwardArgs&&(Q=[...Q,...H]),this._commandService.executeCommand(this.id,...Q)}};le=w([p(3,te.i6),p(4,_e.H)],le)},35884:function(In,Gt,_){"use strict";_.d(Gt,{H:function(){return _e},P:function(){return te}});var h=_(4348),ue=_(88226),z=_(69323),ae=_(34502),B=_(72999),d=_(16925);const _e=(0,d.yh)("commandService"),te=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new h.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,g){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!g)throw new Error("invalid command");return this.registerCommand({id:o,handler:g})}if(o.description){const L=[];for(let $ of o.description.args)L.push($.constraint);const j=o.handler;o.handler=function($,...le){return(0,B.D8)(le,L),j($,...le)}}const{id:w}=o;let p=this._commands.get(w);p||(p=new ae.S,this._commands.set(w,p));let E=p.unshift(o),x=(0,z.OF)(()=>{E();const L=this._commands.get(w);L!=null&&L.isEmpty()&&this._commands.delete(w)});return this._onDidRegisterCommand.fire(w),x}registerCommandAlias(o,g){return te.registerCommand(o,(w,...p)=>w.get(_e).executeCommand(g,...p))}getCommand(o){const g=this._commands.get(o);if(!(!g||g.isEmpty()))return ue.$.first(g)}getCommands(){const o=new Map;for(const g of this._commands.keys()){const w=this.getCommand(g);w&&o.set(g,w)}return o}};te.registerCommand("noop",()=>{})},90689:function(In,Gt,_){"use strict";_.d(Gt,{Ao:function(){return _e},Eq:function(){return U},Fb:function(){return te},K8:function(){return G},i6:function(){return ot},uy:function(){return me}});var h=_(23345),ue=_(82983),z=_(16925);let ae=h.WE||"";const B=new Map;B.set("false",!1),B.set("true",!0),B.set("isMac",h.dz),B.set("isLinux",h.IJ),B.set("isWindows",h.ED),B.set("isWeb",h.$L),B.set("isMacNative",h.dz&&!h.$L),B.set("isEdge",ae.indexOf("Edg/")>=0),B.set("isFirefox",ae.indexOf("Firefox")>=0),B.set("isChrome",ae.indexOf("Chrome")>=0),B.set("isSafari",ae.indexOf("Safari")>=0);const d=Object.prototype.hasOwnProperty;class _e{static has(y){return p.create(y)}static equals(y,v){return E.create(y,v)}static regex(y,v){return Q.create(y,v)}static not(y){return $.create(y)}static and(...y){return oe.create(y,null)}static or(...y){return ge.create(y,null,!0)}static deserialize(y,v=!1){if(y)return this._deserializeOrExpression(y,v)}static _deserializeOrExpression(y,v){let O=y.split("||");return ge.create(O.map(pe=>this._deserializeAndExpression(pe,v)),null,!0)}static _deserializeAndExpression(y,v){let O=y.split("&&");return oe.create(O.map(pe=>this._deserializeOne(pe,v)),null)}static _deserializeOne(y,v){if(y=y.trim(),y.indexOf("!=")>=0){let O=y.split("!=");return j.create(O[0].trim(),this._deserializeValue(O[1],v))}if(y.indexOf("==")>=0){let O=y.split("==");return E.create(O[0].trim(),this._deserializeValue(O[1],v))}if(y.indexOf("=~")>=0){let O=y.split("=~");return Q.create(O[0].trim(),this._deserializeRegexValue(O[1],v))}if(y.indexOf(" in ")>=0){let O=y.split(" in ");return x.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(y)){const O=y.split(">=");return H.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(y)){const O=y.split(">");return F.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(y)){const O=y.split("<=");return A.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(y)){const O=y.split("<");return D.create(O[0].trim(),O[1].trim())}return/^\!\s*/.test(y)?$.create(y.substr(1).trim()):p.create(y)}static _deserializeValue(y,v){if(y=y.trim(),y==="true")return!0;if(y==="false")return!1;let O=/^'([^']*)'$/.exec(y);return O?O[1].trim():y}static _deserializeRegexValue(y,v){if((0,ue.m5)(y)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let O=y.indexOf("/"),pe=y.lastIndexOf("/");if(O===pe||O<0){if(v)throw new Error(`bad regexp-value '${y}', missing /-enclosure`);return console.warn(`bad regexp-value '${y}', missing /-enclosure`),null}let He=y.slice(O+1,pe),tt=y[pe+1]==="i"?"i":"";try{return new RegExp(He,tt)}catch(wt){if(v)throw new Error(`bad regexp-value '${y}', parse error: ${wt}`);return console.warn(`bad regexp-value '${y}', parse error: ${wt}`),null}}}function te(X,y){const v=X?X.substituteConstants():void 0,O=y?y.substituteConstants():void 0;return!v&&!O?!0:!v||!O?!1:v.equals(O)}function o(X,y){return X.cmp(y)}class g{constructor(){this.type=0}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!1}serialize(){return"false"}keys(){return[]}negate(){return w.INSTANCE}}g.INSTANCE=new g;class w{constructor(){this.type=1}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!0}serialize(){return"true"}keys(){return[]}negate(){return g.INSTANCE}}w.INSTANCE=new w;class p{constructor(y,v){this.key=y,this.negated=v,this.type=2}static create(y,v=null){const O=B.get(y);return typeof O=="boolean"?O?w.INSTANCE:g.INSTANCE:new p(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:C(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=B.get(this.key);return typeof y=="boolean"?y?w.INSTANCE:g.INSTANCE:this}evaluate(y){return!!y.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this)),this.negated}}class E{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=4}static create(y,v,O=null){if(typeof v=="boolean")return v?p.create(y,O):$.create(y,O);const pe=B.get(y);return typeof pe=="boolean"?v===(pe?"true":"false")?w.INSTANCE:g.INSTANCE:new E(y,v,O)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=B.get(this.key);if(typeof y=="boolean"){const v=y?"true":"false";return this.value===v?w.INSTANCE:g.INSTANCE}return this}evaluate(y){return y.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=j.create(this.key,this.value,this)),this.negated}}class x{constructor(y,v){this.key=y,this.valueKey=v,this.type=10,this.negated=null}static create(y,v){return new x(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.valueKey,y.key,y.valueKey)}equals(y){return y.type===this.type?this.key===y.key&&this.valueKey===y.valueKey:!1}substituteConstants(){return this}evaluate(y){const v=y.getValue(this.valueKey),O=y.getValue(this.key);return Array.isArray(v)?v.indexOf(O)>=0:typeof O=="string"&&typeof v=="object"&&v!==null?d.call(v,O):!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(y){this._actual=y,this.type=11}static create(y){return new L(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class j{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=5}static create(y,v,O=null){if(typeof v=="boolean")return v?$.create(y,O):p.create(y,O);const pe=B.get(y);return typeof pe=="boolean"?v===(pe?"true":"false")?g.INSTANCE:w.INSTANCE:new j(y,v,O)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=B.get(this.key);if(typeof y=="boolean"){const v=y?"true":"false";return this.value===v?g.INSTANCE:w.INSTANCE}return this}evaluate(y){return y.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class ${constructor(y,v){this.key=y,this.negated=v,this.type=3}static create(y,v=null){const O=B.get(y);return typeof O=="boolean"?O?g.INSTANCE:w.INSTANCE:new $(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:C(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=B.get(this.key);return typeof y=="boolean"?y?g.INSTANCE:w.INSTANCE:this}evaluate(y){return!y.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function le(X,y){if(typeof X=="string"){const v=parseFloat(X);isNaN(v)||(X=v)}return typeof X=="string"||typeof X=="number"?y(X):g.INSTANCE}class F{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=12}static create(y,v,O=null){return le(v,pe=>new F(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class H{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=13}static create(y,v,O=null){return le(v,pe=>new H(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class D{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=14}static create(y,v,O=null){return le(v,pe=>new D(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class A{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=15}static create(y,v,O=null){return le(v,pe=>new A(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class Q{constructor(y,v){this.key=y,this.regexp=v,this.type=7,this.negated=null}static create(y,v){return new Q(y,v)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.key<y.key)return-1;if(this.key>y.key)return 1;const v=this.regexp?this.regexp.source:"",O=y.regexp?y.regexp.source:"";return v<O?-1:v>O?1:0}equals(y){if(y.type===this.type){const v=this.regexp?this.regexp.source:"",O=y.regexp?y.regexp.source:"";return this.key===y.key&&v===O}return!1}substituteConstants(){return this}evaluate(y){let v=y.getValue(this.key);return this.regexp?this.regexp.test(v):!1}serialize(){const y=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${y}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ne.create(this)),this.negated}}class ne{constructor(y){this._actual=y,this.type=8}static create(y){return new ne(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function ee(X){let y=null;for(let v=0,O=X.length;v<O;v++){const pe=X[v].substituteConstants();if(X[v]!==pe&&y===null){y=[];for(let He=0;He<v;He++)y[He]=X[He]}y!==null&&(y[v]=pe)}return y===null?X:y}class oe{constructor(y,v){this.expr=y,this.negated=v,this.type=6}static create(y,v){return oe._normalizeArr(y,v)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let v=0,O=this.expr.length;v<O;v++){const pe=o(this.expr[v],y.expr[v]);if(pe!==0)return pe}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].equals(y.expr[v]))return!1;return!0}return!1}substituteConstants(){const y=ee(this.expr);return y===this.expr?this:oe.create(y,this.negated)}evaluate(y){for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].evaluate(y))return!1;return!0}static _normalizeArr(y,v){const O=[];let pe=!1;for(const He of y)if(He){if(He.type===1){pe=!0;continue}if(He.type===0)return g.INSTANCE;if(He.type===6){O.push(...He.expr);continue}O.push(He)}if(O.length===0&&pe)return w.INSTANCE;if(O.length!==0){if(O.length===1)return O[0];O.sort(o);for(let He=1;He<O.length;He++)O[He-1].equals(O[He])&&(O.splice(He,1),He--);if(O.length===1)return O[0];for(;O.length>1;){const He=O[O.length-1];if(He.type!==9)break;O.pop();const tt=O.pop(),wt=O.length===0,It=ge.create(He.expr.map(Ft=>oe.create([Ft,tt],null)),null,wt);It&&(O.push(It),O.sort(o))}return O.length===1?O[0]:new oe(O,v)}}serialize(){return this.expr.map(y=>y.serialize()).join(" && ")}keys(){const y=[];for(let v of this.expr)y.push(...v.keys());return y}negate(){if(!this.negated){const y=[];for(let v of this.expr)y.push(v.negate());this.negated=ge.create(y,this,!0)}return this.negated}}class ge{constructor(y,v){this.expr=y,this.negated=v,this.type=9}static create(y,v,O){return ge._normalizeArr(y,v,O)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let v=0,O=this.expr.length;v<O;v++){const pe=o(this.expr[v],y.expr[v]);if(pe!==0)return pe}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].equals(y.expr[v]))return!1;return!0}return!1}substituteConstants(){const y=ee(this.expr);return y===this.expr?this:ge.create(y,this.negated,!1)}evaluate(y){for(let v=0,O=this.expr.length;v<O;v++)if(this.expr[v].evaluate(y))return!0;return!1}static _normalizeArr(y,v,O){let pe=[],He=!1;if(y){for(let tt=0,wt=y.length;tt<wt;tt++){const It=y[tt];if(It){if(It.type===0){He=!0;continue}if(It.type===1)return w.INSTANCE;if(It.type===9){pe=pe.concat(It.expr);continue}pe.push(It)}}if(pe.length===0&&He)return g.INSTANCE;pe.sort(o)}if(pe.length!==0){if(pe.length===1)return pe[0];for(let tt=1;tt<pe.length;tt++)pe[tt-1].equals(pe[tt])&&(pe.splice(tt,1),tt--);if(pe.length===1)return pe[0];if(O){for(let tt=0;tt<pe.length;tt++)for(let wt=tt+1;wt<pe.length;wt++)G(pe[tt],pe[wt])&&(pe.splice(wt,1),wt--);if(pe.length===1)return pe[0]}return new ge(pe,v)}}serialize(){return this.expr.map(y=>y.serialize()).join(" || ")}keys(){const y=[];for(let v of this.expr)y.push(...v.keys());return y}negate(){if(!this.negated){let y=[];for(let v of this.expr)y.push(v.negate());for(;y.length>1;){const v=y.shift(),O=y.shift(),pe=[];for(const tt of re(v))for(const wt of re(O))pe.push(oe.create([tt,wt],null));const He=y.length===0;y.unshift(ge.create(pe,null,He))}this.negated=y[0]}return this.negated}}class me extends p{constructor(y,v,O){super(y,null),this._defaultValue=v,typeof O=="object"?me._info.push(Object.assign(Object.assign({},O),{key:y})):O!==!0&&me._info.push({key:y,description:O,type:v!=null?typeof v:void 0})}static all(){return me._info.values()}bindTo(y){return y.createKey(this.key,this._defaultValue)}getValue(y){return y.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(y){return E.create(this.key,y)}}me._info=[];const ot=(0,z.yh)("contextKeyService"),U="setContext";function C(X,y){return X<y?-1:X>y?1:0}function P(X,y,v,O){return X<v?-1:X>v?1:y<O?-1:y>O?1:0}function G(X,y){if(y.type===6&&X.type!==9&&X.type!==6){for(const pe of y.expr)if(X.equals(pe))return!0}const v=X.negate(),O=re(v).concat(re(y));O.sort(o);for(let pe=0;pe<O.length;pe++){const tt=O[pe].negate();for(let wt=pe+1;wt<O.length;wt++){const It=O[wt];if(tt.equals(It))return!0}}return!1}function re(X){return X.type===9?X.expr:[X]}},16925:function(In,Gt,_){"use strict";_.d(Gt,{I8:function(){return h},TG:function(){return ue},jt:function(){return B},yh:function(){return ae}});var h;(function(d){d.serviceIds=new Map,d.DI_TARGET="$di$target",d.DI_DEPENDENCIES="$di$dependencies";function _e(te){return te[d.DI_DEPENDENCIES]||[]}d.getServiceDependencies=_e})(h||(h={}));const ue=ae("instantiationService");function z(d,_e,te,o){_e[h.DI_TARGET]===_e?_e[h.DI_DEPENDENCIES].push({id:d,index:te,optional:o}):(_e[h.DI_DEPENDENCIES]=[{id:d,index:te,optional:o}],_e[h.DI_TARGET]=_e)}function ae(d){if(h.serviceIds.has(d))return h.serviceIds.get(d);const _e=function(te,o,g){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");z(_e,te,g,!1)};return _e.toString=()=>d,h.serviceIds.set(d,_e),_e}function B(d){return function(_e,te,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");z(d,_e,o,!0)}}},44650:function(In,Gt,_){"use strict";_.d(Gt,{B:function(){return ae}});var h=_(76068),ue=_(72999);class z{constructor(){this.data=new Map}add(d,_e){h.ok(ue.HD(d)),h.ok(ue.Kn(_e)),h.ok(!this.data.has(d),"There is already an extension with this id"),this.data.set(d,_e)}as(d){return this.data.get(d)||null}}const ae=new z},66213:function(In,Gt,_){"use strict";_.d(Gt,{e:function(){return h}});var h;(function(ue){ue.DARK="dark",ue.LIGHT="light",ue.HIGH_CONTRAST="hc"})(h||(h={}))},49055:function(In,Gt,_){"use strict";_.d(Gt,{EN:function(){return o},IP:function(){return p},Ic:function(){return L},XE:function(){return _e},bB:function(){return j},kS:function(){return g},m6:function(){return w}});var h=_(52615),ue=_(4348),z=_(69323),ae=_(16925),B=_(44650),d=_(66213);const _e=(0,ae.yh)("themeService");var te;(function($){function le(F){return F&&typeof F=="object"&&typeof F.id=="string"}$.isThemeColor=le})(te||(te={}));function o($){return{id:$}}var g;(function($){function le(ne){return ne&&typeof ne=="object"&&typeof ne.id=="string"&&(typeof ne.color=="undefined"||te.isThemeColor(ne.color))}$.isThemeIcon=le;const F=new RegExp(`^\\$\\((${h.dT.iconNameExpression}(?:${h.dT.iconModifierExpression})?)\\)$`);function H(ne){const ee=F.exec(ne);if(!ee)return;let[,oe]=ee;return{id:oe}}$.fromString=H;function D(ne,ee){let oe=ne.id;const ge=oe.lastIndexOf("~");return ge!==-1&&(oe=oe.substring(0,ge)),ee&&(oe=`${oe}~${ee}`),{id:oe}}$.modify=D;function A(ne,ee){var oe,ge;return ne.id===ee.id&&((oe=ne.color)===null||oe===void 0?void 0:oe.id)===((ge=ee.color)===null||ge===void 0?void 0:ge.id)}$.isEqual=A;function Q(ne,ee){return{id:ne.id,color:ee?o(ee):void 0}}$.asThemeIcon=Q,$.asClassNameArray=h.dT.asClassNameArray,$.asClassName=h.dT.asClassName,$.asCSSSelector=h.dT.asCSSSelector})(g||(g={}));function w($){switch($){case d.e.DARK:return"vs-dark";case d.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class E{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ue.Q5}onColorThemeChange(le){return this.themingParticipants.push(le),this.onThemingParticipantAddedEmitter.fire(le),(0,z.OF)(()=>{const F=this.themingParticipants.indexOf(le);this.themingParticipants.splice(F,1)})}getThemingParticipants(){return this.themingParticipants}}let x=new E;B.B.add(p.ThemingContribution,x);function L($){return x.onColorThemeChange($)}class j extends z.JT{constructor(le){super(),this.themeService=le,this.theme=le.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(F=>this.onThemeChange(F)))}onThemeChange(le){this.theme=le,this.updateStyles()}updateStyles(){}}},63727:function(In,Gt,_){"use strict";_.d(Gt,{s:function(){return W},default:function(){return lt}});var h=_(32855),ue=_(27247),z=_(3300),ae=_(11913),B=_(43079),d=_(37463),_e=_(6551),te=_(6089),o=_(18929),g=_(59301),w=g.createContext({}),p=w,E=_(34666),x=_(74430),L="__rc_cascader_search_mark__",j=function(K,N,Le){var De=Le.label,Ce=De===void 0?"":De;return N.some(function(st){return String(st[Ce]).toLowerCase().includes(K.toLowerCase())})},$=function(K,N,Le,De){return N.map(function(Ce){return Ce[De.label]}).join(" / ")},le=function(K,N,Le,De,Ce,st){var at=Ce.filter,Oe=at===void 0?j:at,Et=Ce.render,Vt=Et===void 0?$:Et,St=Ce.limit,Bt=St===void 0?50:St,se=Ce.sort;return g.useMemo(function(){var ve=[];if(!K)return[];function Ee(k,Y){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k.forEach(function(ce){if(!(!se&&Bt!==!1&&Bt>0&&ve.length>=Bt)){var xe=[].concat((0,z.Z)(Y),[ce]),Be=ce[Le.children],Xe=he||ce.disabled;if((!Be||Be.length===0||st)&&Oe(K,xe,{label:Le.label})){var ct;ve.push((0,ue.Z)((0,ue.Z)({},ce),{},(ct={disabled:Xe},(0,x.Z)(ct,Le.label,Vt(K,xe,De,Le)),(0,x.Z)(ct,L,xe),(0,x.Z)(ct,Le.children,void 0),ct)))}Be&&Ee(ce[Le.children],xe,Xe)}})}return Ee(N,[]),se&&ve.sort(function(k,Y){return se(k[L],Y[L],K,Le)}),Bt!==!1&&Bt>0?ve.slice(0,Bt):ve},[K,N,Le,De,Vt,st,Oe,se,Bt])},F=le,H="__RC_CASCADER_SPLIT__",D="SHOW_PARENT",A="SHOW_CHILD";function Q(de){return de.join(H)}function ne(de){return de.map(Q)}function ee(de){return de.split(H)}function oe(de){var K=de||{},N=K.label,Le=K.value,De=K.children,Ce=Le||"value";return{label:N||"label",value:Ce,key:Ce,children:De||"children"}}function ge(de,K){var N,Le;return(N=de.isLeaf)!==null&&N!==void 0?N:!((Le=de[K.children])!==null&&Le!==void 0&&Le.length)}function me(de){var K=de.parentElement;if(K){var N=de.offsetTop-K.offsetTop;N-K.scrollTop<0?K.scrollTo({top:N}):N+de.offsetHeight-K.scrollTop>K.offsetHeight&&K.scrollTo({top:N+de.offsetHeight-K.offsetHeight})}}function ot(de,K){return de.map(function(N){var Le;return(Le=N[L])===null||Le===void 0?void 0:Le.map(function(De){return De[K.value]})})}function U(de){return Array.isArray(de)&&Array.isArray(de[0])}function C(de){return de?U(de)?de:(de.length===0?[]:[de]).map(function(K){return Array.isArray(K)?K:[K]}):[]}function P(de,K,N){var Le=new Set(de),De=K();return de.filter(function(Ce){var st=De[Ce],at=st?st.parent:null,Oe=st?st.children:null;return st&&st.node.disabled?!0:N===A?!(Oe&&Oe.some(function(Et){return Et.key&&Le.has(Et.key)})):!(at&&!at.node.disabled&&Le.has(at.key))})}function G(de,K,N){for(var Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,De=K,Ce=[],st=function(){var Et,Vt,St,Bt=de[at],se=(Et=De)===null||Et===void 0?void 0:Et.findIndex(function(Ee){var k=Ee[N.value];return Le?String(k)===String(Bt):k===Bt}),ve=se!==-1?(Vt=De)===null||Vt===void 0?void 0:Vt[se]:null;Ce.push({value:(St=ve==null?void 0:ve[N.value])!==null&&St!==void 0?St:Bt,index:se,option:ve}),De=ve==null?void 0:ve[N.children]},at=0;at<de.length;at+=1)st();return Ce}var re=function(de,K,N,Le,De){return g.useMemo(function(){var Ce=De||function(st){var at=Le?st.slice(-1):st,Oe=" / ";return at.every(function(Et){return["string","number"].includes((0,E.Z)(Et))})?at.join(Oe):at.reduce(function(Et,Vt,St){var Bt=g.isValidElement(Vt)?g.cloneElement(Vt,{key:St}):Vt;return St===0?[Bt]:[].concat((0,z.Z)(Et),[Oe,Bt])},[])};return de.map(function(st){var at,Oe=G(st,K,N),Et=Ce(Oe.map(function(St){var Bt,se=St.option,ve=St.value;return(Bt=se==null?void 0:se[N.label])!==null&&Bt!==void 0?Bt:ve}),Oe.map(function(St){var Bt=St.option;return Bt})),Vt=Q(st);return{label:Et,value:Vt,key:Vt,valueCells:st,disabled:(at=Oe[Oe.length-1])===null||at===void 0||(at=at.option)===null||at===void 0?void 0:at.disabled}})},[de,K,N,De,Le])};function X(de,K){return g.useCallback(function(N){var Le=[],De=[];return N.forEach(function(Ce){var st=G(Ce,de,K);st.every(function(at){return at.option})?De.push(Ce):Le.push(Ce)}),[De,Le]},[de,K])}var y=_(34061),v=function(de,K){var N=g.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Le=g.useCallback(function(){return N.current.options!==de&&(N.current.options=de,N.current.info=(0,y.I8)(de,{fieldNames:K,initWrapper:function(Ce){return(0,ue.Z)((0,ue.Z)({},Ce),{},{pathKeyEntities:{}})},processEntity:function(Ce,st){var at=Ce.nodes.map(function(Oe){return Oe[K.value]}).join(H);st.pathKeyEntities[at]=Ce,Ce.key=at}})),N.current.info.pathKeyEntities},[K,de]);return Le};function O(de,K){var N=g.useMemo(function(){return K||[]},[K]),Le=v(N,de),De=g.useCallback(function(Ce){var st=Le();return Ce.map(function(at){var Oe=st[at].nodes;return Oe.map(function(Et){return Et[de.value]})})},[Le,de]);return[N,Le,De]}var pe=_(48736);function He(de){return g.useMemo(function(){if(!de)return[!1,{}];var K={matchInputWidth:!0,limit:50};return de&&(0,E.Z)(de)==="object"&&(K=(0,ue.Z)((0,ue.Z)({},K),de)),K.limit<=0&&(K.limit=!1),[!0,K]},[de])}var tt=_(34643);function wt(de,K,N,Le,De,Ce,st,at){return function(Oe){if(!de)K(Oe);else{var Et=Q(Oe),Vt=ne(N),St=ne(Le),Bt=Vt.includes(Et),se=De.some(function(Xe){return Q(Xe)===Et}),ve=N,Ee=De;if(se&&!Bt)Ee=De.filter(function(Xe){return Q(Xe)!==Et});else{var k=Bt?Vt.filter(function(Xe){return Xe!==Et}):[].concat((0,z.Z)(Vt),[Et]),Y=Ce(),he;if(Bt){var ce=(0,tt.S)(k,{checked:!1,halfCheckedKeys:St},Y);he=ce.checkedKeys}else{var xe=(0,tt.S)(k,!0,Y);he=xe.checkedKeys}var Be=P(he,Ce,at);ve=st(Be)}K([].concat((0,z.Z)(Ee),(0,z.Z)(ve)))}}}function It(de,K,N,Le,De){return g.useMemo(function(){var Ce=De(K),st=(0,ae.Z)(Ce,2),at=st[0],Oe=st[1];if(!de||!K.length)return[at,[],Oe];var Et=ne(at),Vt=N(),St=(0,tt.S)(Et,!0,Vt),Bt=St.checkedKeys,se=St.halfCheckedKeys;return[Le(Bt),Le(se),Oe]},[de,K,N,Le,De])}var Ft=_(92310),Ht=_.n(Ft),Ke=g.memo(function(de){var K=de.children;return K},function(de,K){return!K.open}),en=Ke;function Tt(de){var K,N=de.prefixCls,Le=de.checked,De=de.halfChecked,Ce=de.disabled,st=de.onClick,at=de.disableCheckbox,Oe=g.useContext(p),Et=Oe.checkable,Vt=typeof Et!="boolean"?Et:null;return g.createElement("span",{className:Ht()("".concat(N),(K={},(0,x.Z)(K,"".concat(N,"-checked"),Le),(0,x.Z)(K,"".concat(N,"-indeterminate"),!Le&&De),(0,x.Z)(K,"".concat(N,"-disabled"),Ce||at),K)),onClick:st},Vt)}var an="__cascader_fix_label__";function qe(de){var K=de.prefixCls,N=de.multiple,Le=de.options,De=de.activeValue,Ce=de.prevValuePath,st=de.onToggleOpen,at=de.onSelect,Oe=de.onActive,Et=de.checkedSet,Vt=de.halfCheckedSet,St=de.loadingKeys,Bt=de.isSelectable,se=de.disabled,ve="".concat(K,"-menu"),Ee="".concat(K,"-menu-item"),k=g.useContext(p),Y=k.fieldNames,he=k.changeOnSelect,ce=k.expandTrigger,xe=k.expandIcon,Be=k.loadingIcon,Xe=k.dropdownMenuColumnStyle,ct=k.optionRender,nt=ce==="hover",Ue=function(S){return se||S},I=g.useMemo(function(){return Le.map(function(Z){var S,ze=Z.disabled,ke=Z.disableCheckbox,Pe=Z[L],Ge=(S=Z[an])!==null&&S!==void 0?S:Z[Y.label],We=Z[Y.value],dt=ge(Z,Y),Lt=Pe?Pe.map(function(gt){return gt[Y.value]}):[].concat((0,z.Z)(Ce),[We]),Pt=Q(Lt),cn=St.includes(Pt),Ne=Et.has(Pt),Re=Vt.has(Pt);return{disabled:ze,label:Ge,value:We,isLeaf:dt,isLoading:cn,checked:Ne,halfChecked:Re,option:Z,disableCheckbox:ke,fullPath:Lt,fullPathKey:Pt}})},[Le,Et,Y,Vt,St,Ce]);return g.createElement("ul",{className:ve,role:"menu"},I.map(function(Z){var S,ze=Z.disabled,ke=Z.label,Pe=Z.value,Ge=Z.isLeaf,We=Z.isLoading,dt=Z.checked,Lt=Z.halfChecked,Pt=Z.option,cn=Z.fullPath,Ne=Z.fullPathKey,Re=Z.disableCheckbox,gt=function(){if(!Ue(ze)){var At=(0,z.Z)(cn);nt&&Ge&&At.pop(),Oe(At)}},pt=function(){Bt(Pt)&&!Ue(ze)&&at(cn,Ge)},Mt;return typeof Pt.title=="string"?Mt=Pt.title:typeof ke=="string"&&(Mt=ke),g.createElement("li",{key:Ne,className:Ht()(Ee,(S={},(0,x.Z)(S,"".concat(Ee,"-expand"),!Ge),(0,x.Z)(S,"".concat(Ee,"-active"),De===Pe||De===Ne),(0,x.Z)(S,"".concat(Ee,"-disabled"),Ue(ze)),(0,x.Z)(S,"".concat(Ee,"-loading"),We),S)),style:Xe,role:"menuitemcheckbox",title:Mt,"aria-checked":dt,"data-path-key":Ne,onClick:function(){gt(),!Re&&(!N||Ge)&&pt()},onDoubleClick:function(){he&&st(!1)},onMouseEnter:function(){nt&&gt()},onMouseDown:function(At){At.preventDefault()}},N&&g.createElement(Tt,{prefixCls:"".concat(K,"-checkbox"),checked:dt,halfChecked:Lt,disabled:Ue(ze)||Re,disableCheckbox:Re,onClick:function(At){Re||(At.stopPropagation(),pt())}}),g.createElement("div",{className:"".concat(Ee,"-content")},ct?ct(Pt):ke),!We&&xe&&!Ge&&g.createElement("div",{className:"".concat(Ee,"-expand-icon")},xe),We&&Be&&g.createElement("div",{className:"".concat(Ee,"-loading-icon")},Be))}))}var yt=function(K,N){var Le=g.useContext(p),De=Le.values,Ce=De[0],st=g.useState([]),at=(0,ae.Z)(st,2),Oe=at[0],Et=at[1];return g.useEffect(function(){K||Et(Ce||[])},[N,Ce]),[Oe,Et]},Fe=yt,Ae=_(10228),V=function(de,K,N,Le,De,Ce,st){var at=st.direction,Oe=st.searchValue,Et=st.toggleOpen,Vt=st.open,St=at==="rtl",Bt=g.useMemo(function(){for(var Xe=-1,ct=K,nt=[],Ue=[],I=Le.length,Z=ot(K,N),S=function(We){var dt=ct.findIndex(function(Lt,Pt){return(Z[Pt]?Q(Z[Pt]):Lt[N.value])===Le[We]});if(dt===-1)return 1;Xe=dt,nt.push(Xe),Ue.push(Le[We]),ct=ct[Xe][N.children]},ze=0;ze<I&&ct&&!S(ze);ze+=1);for(var ke=K,Pe=0;Pe<nt.length-1;Pe+=1)ke=ke[nt[Pe]][N.children];return[Ue,Xe,ke,Z]},[Le,N,K]),se=(0,ae.Z)(Bt,4),ve=se[0],Ee=se[1],k=se[2],Y=se[3],he=function(ct){De(ct)},ce=function(ct){var nt=k.length,Ue=Ee;Ue===-1&&ct<0&&(Ue=nt);for(var I=0;I<nt;I+=1){Ue=(Ue+ct+nt)%nt;var Z=k[Ue];if(Z&&!Z.disabled){var S=ve.slice(0,-1).concat(Y[Ue]?Q(Y[Ue]):Z[N.value]);he(S);return}}},xe=function(){if(ve.length>1){var ct=ve.slice(0,-1);he(ct)}else Et(!1)},Be=function(){var ct,nt=((ct=k[Ee])===null||ct===void 0?void 0:ct[N.children])||[],Ue=nt.find(function(Z){return!Z.disabled});if(Ue){var I=[].concat((0,z.Z)(ve),[Ue[N.value]]);he(I)}};g.useImperativeHandle(de,function(){return{onKeyDown:function(ct){var nt=ct.which;switch(nt){case Ae.Z.UP:case Ae.Z.DOWN:{var Ue=0;nt===Ae.Z.UP?Ue=-1:nt===Ae.Z.DOWN&&(Ue=1),Ue!==0&&ce(Ue);break}case Ae.Z.LEFT:{if(Oe)break;St?Be():xe();break}case Ae.Z.RIGHT:{if(Oe)break;St?xe():Be();break}case Ae.Z.BACKSPACE:{Oe||xe();break}case Ae.Z.ENTER:{if(ve.length){var I=k[Ee],Z=(I==null?void 0:I[L])||[];Z.length?Ce(Z.map(function(S){return S[N.value]}),Z[Z.length-1]):Ce(ve,k[Ee])}break}case Ae.Z.ESC:Et(!1),Vt&&ct.stopPropagation()}},onKeyUp:function(){}}})},je=g.forwardRef(function(de,K){var N,Le,De,Ce=de.prefixCls,st=de.multiple,at=de.searchValue,Oe=de.toggleOpen,Et=de.notFoundContent,Vt=de.direction,St=de.open,Bt=de.disabled,se=g.useRef(null),ve=Vt==="rtl",Ee=g.useContext(p),k=Ee.options,Y=Ee.values,he=Ee.halfValues,ce=Ee.fieldNames,xe=Ee.changeOnSelect,Be=Ee.onSelect,Xe=Ee.searchOptions,ct=Ee.dropdownPrefixCls,nt=Ee.loadData,Ue=Ee.expandTrigger,I=ct||Ce,Z=g.useState([]),S=(0,ae.Z)(Z,2),ze=S[0],ke=S[1],Pe=function($t){if(!(!nt||at)){var Dt=G($t,k,ce),Ze=Dt.map(function(kt){var qt=kt.option;return qt}),_t=Ze[Ze.length-1];if(_t&&!ge(_t,ce)){var Ct=Q($t);ke(function(kt){return[].concat((0,z.Z)(kt),[Ct])}),nt(Ze)}}};g.useEffect(function(){ze.length&&ze.forEach(function(Qt){var $t=ee(Qt),Dt=G($t,k,ce,!0).map(function(_t){var Ct=_t.option;return Ct}),Ze=Dt[Dt.length-1];(!Ze||Ze[ce.children]||ge(Ze,ce))&&ke(function(_t){return _t.filter(function(Ct){return Ct!==Qt})})})},[k,ze,ce]);var Ge=g.useMemo(function(){return new Set(ne(Y))},[Y]),We=g.useMemo(function(){return new Set(ne(he))},[he]),dt=Fe(st,St),Lt=(0,ae.Z)(dt,2),Pt=Lt[0],cn=Lt[1],Ne=function($t){cn($t),Pe($t)},Re=function($t){if(Bt)return!1;var Dt=$t.disabled,Ze=ge($t,ce);return!Dt&&(Ze||xe||st)},gt=function($t,Dt){var Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Be($t),!st&&(Dt||xe&&(Ue==="hover"||Ze))&&Oe(!1)},pt=g.useMemo(function(){return at?Xe:k},[at,Xe,k]),Mt=g.useMemo(function(){for(var Qt=[{options:pt}],$t=pt,Dt=ot($t,ce),Ze=function(){var kt=Pt[_t],qt=$t.find(function(ln,En){return(Dt[En]?Q(Dt[En]):ln[ce.value])===kt}),it=qt==null?void 0:qt[ce.children];if(!(it!=null&&it.length))return 1;$t=it,Qt.push({options:it})},_t=0;_t<Pt.length&&!Ze();_t+=1);return Qt},[pt,Pt,ce]),xt=function($t,Dt){Re(Dt)&&gt($t,ge(Dt,ce),!0)};V(K,pt,ce,Pt,Ne,xt,{direction:Vt,searchValue:at,toggleOpen:Oe,open:St}),g.useEffect(function(){if(!at)for(var Qt=0;Qt<Pt.length;Qt+=1){var $t,Dt=Pt.slice(0,Qt+1),Ze=Q(Dt),_t=($t=se.current)===null||$t===void 0?void 0:$t.querySelector('li[data-path-key="'.concat(Ze.replace(/\\{0,2}"/g,'\\"'),'"]'));_t&&me(_t)}},[Pt,at]);var At=!((N=Mt[0])!==null&&N!==void 0&&(N=N.options)!==null&&N!==void 0&&N.length),Kt=[(Le={},(0,x.Z)(Le,ce.value,"__EMPTY__"),(0,x.Z)(Le,an,Et),(0,x.Z)(Le,"disabled",!0),Le)],nn=(0,ue.Z)((0,ue.Z)({},de),{},{multiple:!At&&st,onSelect:gt,onActive:Ne,onToggleOpen:Oe,checkedSet:Ge,halfCheckedSet:We,loadingKeys:ze,isSelectable:Re}),Ot=At?[{options:Kt}]:Mt,dn=Ot.map(function(Qt,$t){var Dt=Pt.slice(0,$t),Ze=Pt[$t];return g.createElement(qe,(0,h.Z)({key:$t},nn,{prefixCls:I,options:Qt.options,prevValuePath:Dt,activeValue:Ze}))});return g.createElement(en,{open:St},g.createElement("div",{className:Ht()("".concat(I,"-menus"),(De={},(0,x.Z)(De,"".concat(I,"-menu-empty"),At),(0,x.Z)(De,"".concat(I,"-rtl"),ve),De)),ref:se},dn))}),Qe=je,J=g.forwardRef(function(de,K){var N=(0,d.lk)();return g.createElement(Qe,(0,h.Z)({},de,N,{ref:K}))}),M=J,Se=_(70425);function be(){}function W(de){var K,N=de,Le=N.prefixCls,De=Le===void 0?"rc-cascader":Le,Ce=N.style,st=N.className,at=N.options,Oe=N.checkable,Et=N.defaultValue,Vt=N.value,St=N.fieldNames,Bt=N.changeOnSelect,se=N.onChange,ve=N.showCheckedStrategy,Ee=N.loadData,k=N.expandTrigger,Y=N.expandIcon,he=Y===void 0?">":Y,ce=N.loadingIcon,xe=N.direction,Be=N.notFoundContent,Xe=Be===void 0?"Not Found":Be,ct=N.disabled,nt=!!Oe,Ue=(0,Se.C8)(Et,{value:Vt,postState:C}),I=(0,ae.Z)(Ue,2),Z=I[0],S=I[1],ze=g.useMemo(function(){return oe(St)},[JSON.stringify(St)]),ke=O(ze,at),Pe=(0,ae.Z)(ke,3),Ge=Pe[0],We=Pe[1],dt=Pe[2],Lt=X(Ge,ze),Pt=It(nt,Z,We,dt,Lt),cn=(0,ae.Z)(Pt,3),Ne=cn[0],Re=cn[1],gt=cn[2],pt=(0,Se.zX)(function(Ot){if(S(Ot),se){var dn=C(Ot),Qt=dn.map(function(Ze){return G(Ze,Ge,ze).map(function(_t){return _t.option})}),$t=nt?dn:dn[0],Dt=nt?Qt:Qt[0];se($t,Dt)}}),Mt=wt(nt,pt,Ne,Re,gt,We,dt,ve),xt=(0,Se.zX)(function(Ot){Mt(Ot)}),At=g.useMemo(function(){return{options:Ge,fieldNames:ze,values:Ne,halfValues:Re,changeOnSelect:Bt,onSelect:xt,checkable:Oe,searchOptions:[],dropdownPrefixCls:void 0,loadData:Ee,expandTrigger:k,expandIcon:he,loadingIcon:ce,dropdownMenuColumnStyle:void 0}},[Ge,ze,Ne,Re,Bt,xt,Oe,Ee,k,he,ce]),Kt="".concat(De,"-panel"),nn=!Ge.length;return g.createElement(p.Provider,{value:At},g.createElement("div",{className:Ht()(Kt,(K={},(0,x.Z)(K,"".concat(Kt,"-rtl"),xe==="rtl"),(0,x.Z)(K,"".concat(Kt,"-empty"),nn),K),st),style:Ce},nn?Xe:g.createElement(Qe,{prefixCls:De,searchValue:"",multiple:nt,toggleOpen:be,open:!0,direction:xe,disabled:ct})))}function fe(de){var K=de.onPopupVisibleChange,N=de.popupVisible,Le=de.popupClassName,De=de.popupPlacement;warning(!K,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(N===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Le===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(De===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ye(de,K){if(de){var N=function Le(De){for(var Ce=0;Ce<De.length;Ce++){var st=De[Ce];if(st[K==null?void 0:K.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(st[K==null?void 0:K.children])&&Le(st[K==null?void 0:K.children]))return!0}};N(de)}}var et=null,Ve=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],$e=g.forwardRef(function(de,K){var N=de.id,Le=de.prefixCls,De=Le===void 0?"rc-cascader":Le,Ce=de.fieldNames,st=de.defaultValue,at=de.value,Oe=de.changeOnSelect,Et=de.onChange,Vt=de.displayRender,St=de.checkable,Bt=de.autoClearSearchValue,se=Bt===void 0?!0:Bt,ve=de.searchValue,Ee=de.onSearch,k=de.showSearch,Y=de.expandTrigger,he=de.options,ce=de.dropdownPrefixCls,xe=de.loadData,Be=de.popupVisible,Xe=de.open,ct=de.popupClassName,nt=de.dropdownClassName,Ue=de.dropdownMenuColumnStyle,I=de.dropdownStyle,Z=de.popupPlacement,S=de.placement,ze=de.onDropdownVisibleChange,ke=de.onPopupVisibleChange,Pe=de.expandIcon,Ge=Pe===void 0?">":Pe,We=de.loadingIcon,dt=de.children,Lt=de.dropdownMatchSelectWidth,Pt=Lt===void 0?!1:Lt,cn=de.showCheckedStrategy,Ne=cn===void 0?D:cn,Re=de.optionRender,gt=(0,B.Z)(de,Ve),pt=(0,_e.ZP)(N),Mt=!!St,xt=(0,o.Z)(st,{value:at,postState:C}),At=(0,ae.Z)(xt,2),Kt=At[0],nn=At[1],Ot=g.useMemo(function(){return oe(Ce)},[JSON.stringify(Ce)]),dn=O(Ot,he),Qt=(0,ae.Z)(dn,3),$t=Qt[0],Dt=Qt[1],Ze=Qt[2],_t=(0,o.Z)("",{value:ve,postState:function(zt){return zt||""}}),Ct=(0,ae.Z)(_t,2),kt=Ct[0],qt=Ct[1],it=function(zt,Wt){qt(zt),Wt.source!=="blur"&&Ee&&Ee(zt)},ln=He(k),En=(0,ae.Z)(ln,2),Tn=En[0],wn=En[1],Yn=F(kt,$t,Ot,ce||De,wn,Oe||Mt),Cn=X($t,Ot),Zn=It(Mt,Kt,Dt,Ze,Cn),Nn=(0,ae.Z)(Zn,3),Pn=Nn[0],Dn=Nn[1],vn=Nn[2],Ln=g.useMemo(function(){var ft=ne(Pn),zt=P(ft,Dt,Ne);return[].concat((0,z.Z)(vn),(0,z.Z)(Ze(zt)))},[Pn,Dt,Ze,vn,Ne]),hn=re(Ln,$t,Ot,Mt,Vt),yn=(0,te.Z)(function(ft){if(nn(ft),Et){var zt=C(ft),Wt=zt.map(function(bt){return G(bt,$t,Ot).map(function(Nt){return Nt.option})}),Rt=Mt?zt:zt[0],vt=Mt?Wt:Wt[0];Et(Rt,vt)}}),Rn=wt(Mt,yn,Pn,Dn,vn,Dt,Ze,Ne),Mn=(0,te.Z)(function(ft){(!Mt||se)&&qt(""),Rn(ft)}),Bn=function(zt,Wt){if(Wt.type==="clear"){yn([]);return}var Rt=Wt.values[0],vt=Rt.valueCells;Mn(vt)},zn=Xe!==void 0?Xe:Be,pr=nt||ct,Me=S||Z,Te=function(zt){ze==null||ze(zt),ke==null||ke(zt)},Ie=g.useMemo(function(){return{options:$t,fieldNames:Ot,values:Pn,halfValues:Dn,changeOnSelect:Oe,onSelect:Mn,checkable:St,searchOptions:Yn,dropdownPrefixCls:ce,loadData:xe,expandTrigger:Y,expandIcon:Ge,loadingIcon:We,dropdownMenuColumnStyle:Ue,optionRender:Re}},[$t,Ot,Pn,Dn,Oe,Mn,St,Yn,ce,xe,Y,Ge,We,Ue,Re]),ut=!(kt?Yn:$t).length,mt=kt&&wn.matchInputWidth||ut?{}:{minWidth:"auto"};return g.createElement(p.Provider,{value:Ie},g.createElement(d.Ac,(0,h.Z)({},gt,{ref:K,id:pt,prefixCls:De,autoClearSearchValue:se,dropdownMatchSelectWidth:Pt,dropdownStyle:(0,ue.Z)((0,ue.Z)({},mt),I),displayValues:hn,onDisplayValuesChange:Bn,mode:Mt?"multiple":void 0,searchValue:kt,onSearch:it,showSearch:Tn,OptionList:M,emptyOptions:ut,open:zn,dropdownClassName:pr,placement:Me,onDropdownVisibleChange:Te,getRawInputElement:function(){return dt}})))});$e.SHOW_PARENT=D,$e.SHOW_CHILD=A,$e.Panel=W;var Ye=$e,lt=Ye},16632:function(In,Gt,_){"use strict";var h=_(32855),ue=_(27247),z=_(74430),ae=_(11913),B=_(43079),d=_(92310),_e=_.n(d),te=_(18929),o=_(59301),g=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],w=(0,o.forwardRef)(function(p,E){var x=p.prefixCls,L=x===void 0?"rc-checkbox":x,j=p.className,$=p.style,le=p.checked,F=p.disabled,H=p.defaultChecked,D=H===void 0?!1:H,A=p.type,Q=A===void 0?"checkbox":A,ne=p.title,ee=p.onChange,oe=(0,B.Z)(p,g),ge=(0,o.useRef)(null),me=(0,o.useRef)(null),ot=(0,te.Z)(D,{value:le}),U=(0,ae.Z)(ot,2),C=U[0],P=U[1];(0,o.useImperativeHandle)(E,function(){return{focus:function(y){var v;(v=ge.current)===null||v===void 0||v.focus(y)},blur:function(){var y;(y=ge.current)===null||y===void 0||y.blur()},input:ge.current,nativeElement:me.current}});var G=_e()(L,j,(0,z.Z)((0,z.Z)({},"".concat(L,"-checked"),C),"".concat(L,"-disabled"),F)),re=function(y){F||("checked"in p||P(y.target.checked),ee==null||ee({target:(0,ue.Z)((0,ue.Z)({},p),{},{type:Q,checked:y.target.checked}),stopPropagation:function(){y.stopPropagation()},preventDefault:function(){y.preventDefault()},nativeEvent:y.nativeEvent}))};return o.createElement("span",{className:G,title:ne,style:$,ref:me},o.createElement("input",(0,h.Z)({},oe,{className:"".concat(L,"-input"),ref:ge,onChange:re,disabled:F,checked:!!C,type:Q})),o.createElement("span",{className:"".concat(L,"-inner")}))});Gt.Z=w},96478:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return ne}});var h=_(32855),ue=_(74430),z=_(11913),ae=_(43079),B=_(65030),d=_(92310),_e=_.n(d),te=_(8654),o=_(59301),g=_(10228),w=_(16089),p=g.Z.ESC,E=g.Z.TAB;function x(ee){var oe=ee.visible,ge=ee.triggerRef,me=ee.onVisibleChange,ot=ee.autoFocus,U=ee.overlayRef,C=o.useRef(!1),P=function(){if(oe){var y,v;(y=ge.current)===null||y===void 0||(v=y.focus)===null||v===void 0||v.call(y),me==null||me(!1)}},G=function(){var y;return(y=U.current)!==null&&y!==void 0&&y.focus?(U.current.focus(),C.current=!0,!0):!1},re=function(y){switch(y.keyCode){case p:P();break;case E:{var v=!1;C.current||(v=G()),v?y.preventDefault():P();break}}};o.useEffect(function(){return oe?(window.addEventListener("keydown",re),ot&&(0,w.Z)(G,3),function(){window.removeEventListener("keydown",re),C.current=!1}):function(){C.current=!1}},[oe])}var L=(0,o.forwardRef)(function(ee,oe){var ge=ee.overlay,me=ee.arrow,ot=ee.prefixCls,U=(0,o.useMemo)(function(){var P;return typeof ge=="function"?P=ge():P=ge,P},[ge]),C=(0,te.sQ)(oe,(0,te.C4)(U));return o.createElement(o.Fragment,null,me&&o.createElement("div",{className:"".concat(ot,"-arrow")}),o.cloneElement(U,{ref:(0,te.Yr)(U)?C:void 0}))}),j=L,$={adjustX:1,adjustY:1},le=[0,0],F={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-4],targetOffset:le},top:{points:["bc","tc"],overflow:$,offset:[0,-4],targetOffset:le},topRight:{points:["br","tr"],overflow:$,offset:[0,-4],targetOffset:le},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,4],targetOffset:le},bottom:{points:["tc","bc"],overflow:$,offset:[0,4],targetOffset:le},bottomRight:{points:["tr","br"],overflow:$,offset:[0,4],targetOffset:le}},H=F,D=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function A(ee,oe){var ge,me=ee.arrow,ot=me===void 0?!1:me,U=ee.prefixCls,C=U===void 0?"rc-dropdown":U,P=ee.transitionName,G=ee.animation,re=ee.align,X=ee.placement,y=X===void 0?"bottomLeft":X,v=ee.placements,O=v===void 0?H:v,pe=ee.getPopupContainer,He=ee.showAction,tt=ee.hideAction,wt=ee.overlayClassName,It=ee.overlayStyle,Ft=ee.visible,Ht=ee.trigger,Ke=Ht===void 0?["hover"]:Ht,en=ee.autoFocus,Tt=ee.overlay,an=ee.children,qe=ee.onVisibleChange,yt=(0,ae.Z)(ee,D),Fe=o.useState(),Ae=(0,z.Z)(Fe,2),V=Ae[0],je=Ae[1],Qe="visible"in ee?Ft:V,J=o.useRef(null),M=o.useRef(null),Se=o.useRef(null);o.useImperativeHandle(oe,function(){return J.current});var be=function(de){je(de),qe==null||qe(de)};x({visible:Qe,triggerRef:Se,onVisibleChange:be,autoFocus:en,overlayRef:M});var W=function(de){var K=ee.onOverlayClick;je(!1),K&&K(de)},fe=function(){return o.createElement(j,{ref:M,overlay:Tt,prefixCls:C,arrow:ot})},ye=function(){return typeof Tt=="function"?fe:fe()},et=function(){var de=ee.minOverlayWidthMatchTrigger,K=ee.alignPoint;return"minOverlayWidthMatchTrigger"in ee?de:!K},Ve=function(){var de=ee.openClassName;return de!==void 0?de:"".concat(C,"-open")},$e=o.cloneElement(an,{className:_e()((ge=an.props)===null||ge===void 0?void 0:ge.className,Qe&&Ve()),ref:(0,te.Yr)(an)?(0,te.sQ)(Se,(0,te.C4)(an)):void 0}),Ye=tt;return!Ye&&Ke.indexOf("contextMenu")!==-1&&(Ye=["click"]),o.createElement(B.Z,(0,h.Z)({builtinPlacements:O},yt,{prefixCls:C,ref:J,popupClassName:_e()(wt,(0,ue.Z)({},"".concat(C,"-show-arrow"),ot)),popupStyle:It,action:Ke,showAction:He,hideAction:Ye,popupPlacement:y,popupAlign:re,popupTransitionName:P,popupAnimation:G,popupVisible:Qe,stretch:et()?"minWidth":"",popup:ye(),onPopupVisibleChange:be,onPopupClick:W,getPopupContainer:pe}),$e)}var Q=o.forwardRef(A),ne=Q},66003:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return _e}});var h=_(43079),ue=_(27247),z=_(34666),ae=_(59301),B=["show"];function d(te,o){if(!o.max)return!0;var g=o.strategy(te);return g<=o.max}function _e(te,o){return ae.useMemo(function(){var g={};o&&(g.show=(0,z.Z)(o)==="object"&&o.formatter?o.formatter:!!o),g=(0,ue.Z)((0,ue.Z)({},g),te);var w=g,p=w.show,E=(0,h.Z)(w,B);return(0,ue.Z)((0,ue.Z)({},E),{},{show:!!p,showFormatter:typeof p=="function"?p:void 0,strategy:E.strategy||function(x){return x.length}})},[te,o])}},36901:function(In,Gt,_){"use strict";_.r(Gt),_.d(Gt,{BaseInput:function(){return g},default:function(){return H}});var h=_(27247),ue=_(32855),z=_(74430),ae=_(34666),B=_(92310),d=_.n(B),_e=_(59301),te=_(30292),o=_e.forwardRef(function(D,A){var Q,ne,ee,oe=D.inputElement,ge=D.children,me=D.prefixCls,ot=D.prefix,U=D.suffix,C=D.addonBefore,P=D.addonAfter,G=D.className,re=D.style,X=D.disabled,y=D.readOnly,v=D.focused,O=D.triggerFocus,pe=D.allowClear,He=D.value,tt=D.handleReset,wt=D.hidden,It=D.classes,Ft=D.classNames,Ht=D.dataAttrs,Ke=D.styles,en=D.components,Tt=D.onClear,an=ge!=null?ge:oe,qe=(en==null?void 0:en.affixWrapper)||"span",yt=(en==null?void 0:en.groupWrapper)||"span",Fe=(en==null?void 0:en.wrapper)||"span",Ae=(en==null?void 0:en.groupAddon)||"span",V=(0,_e.useRef)(null),je=function(Le){var De;(De=V.current)!==null&&De!==void 0&&De.contains(Le.target)&&(O==null||O())},Qe=(0,te.X3)(D),J=(0,_e.cloneElement)(an,{value:He,className:d()((Q=an.props)===null||Q===void 0?void 0:Q.className,!Qe&&(Ft==null?void 0:Ft.variant))||null}),M=(0,_e.useRef)(null);if(_e.useImperativeHandle(A,function(){return{nativeElement:M.current||V.current}}),Qe){var Se=null;if(pe){var be=!X&&!y&&He,W="".concat(me,"-clear-icon"),fe=(0,ae.Z)(pe)==="object"&&pe!==null&&pe!==void 0&&pe.clearIcon?pe.clearIcon:"\u2716";Se=_e.createElement("button",{type:"button",tabIndex:-1,onClick:function(Le){tt==null||tt(Le),Tt==null||Tt()},onMouseDown:function(Le){return Le.preventDefault()},className:d()(W,(0,z.Z)((0,z.Z)({},"".concat(W,"-hidden"),!be),"".concat(W,"-has-suffix"),!!U))},fe)}var ye="".concat(me,"-affix-wrapper"),et=d()(ye,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(me,"-disabled"),X),"".concat(ye,"-disabled"),X),"".concat(ye,"-focused"),v),"".concat(ye,"-readonly"),y),"".concat(ye,"-input-with-clear-btn"),U&&pe&&He),It==null?void 0:It.affixWrapper,Ft==null?void 0:Ft.affixWrapper,Ft==null?void 0:Ft.variant),Ve=(U||pe)&&_e.createElement("span",{className:d()("".concat(me,"-suffix"),Ft==null?void 0:Ft.suffix),style:Ke==null?void 0:Ke.suffix},Se,U);J=_e.createElement(qe,(0,ue.Z)({className:et,style:Ke==null?void 0:Ke.affixWrapper,onClick:je},Ht==null?void 0:Ht.affixWrapper,{ref:V}),ot&&_e.createElement("span",{className:d()("".concat(me,"-prefix"),Ft==null?void 0:Ft.prefix),style:Ke==null?void 0:Ke.prefix},ot),J,Ve)}if((0,te.He)(D)){var $e="".concat(me,"-group"),Ye="".concat($e,"-addon"),lt="".concat($e,"-wrapper"),de=d()("".concat(me,"-wrapper"),$e,It==null?void 0:It.wrapper,Ft==null?void 0:Ft.wrapper),K=d()(lt,(0,z.Z)({},"".concat(lt,"-disabled"),X),It==null?void 0:It.group,Ft==null?void 0:Ft.groupWrapper);J=_e.createElement(yt,{className:K,ref:M},_e.createElement(Fe,{className:de},C&&_e.createElement(Ae,{className:Ye},C),J,P&&_e.createElement(Ae,{className:Ye},P)))}return _e.cloneElement(J,{className:d()((ne=J.props)===null||ne===void 0?void 0:ne.className,G)||null,style:(0,h.Z)((0,h.Z)({},(ee=J.props)===null||ee===void 0?void 0:ee.style),re),hidden:wt})}),g=o,w=_(3300),p=_(11913),E=_(43079),x=_(18929),L=_(2738),j=_(66003),$=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],le=(0,_e.forwardRef)(function(D,A){var Q=D.autoComplete,ne=D.onChange,ee=D.onFocus,oe=D.onBlur,ge=D.onPressEnter,me=D.onKeyDown,ot=D.onKeyUp,U=D.prefixCls,C=U===void 0?"rc-input":U,P=D.disabled,G=D.htmlSize,re=D.className,X=D.maxLength,y=D.suffix,v=D.showCount,O=D.count,pe=D.type,He=pe===void 0?"text":pe,tt=D.classes,wt=D.classNames,It=D.styles,Ft=D.onCompositionStart,Ht=D.onCompositionEnd,Ke=(0,E.Z)(D,$),en=(0,_e.useState)(!1),Tt=(0,p.Z)(en,2),an=Tt[0],qe=Tt[1],yt=(0,_e.useRef)(!1),Fe=(0,_e.useRef)(!1),Ae=(0,_e.useRef)(null),V=(0,_e.useRef)(null),je=function(Bt){Ae.current&&(0,te.nH)(Ae.current,Bt)},Qe=(0,x.Z)(D.defaultValue,{value:D.value}),J=(0,p.Z)(Qe,2),M=J[0],Se=J[1],be=M==null?"":String(M),W=(0,_e.useState)(null),fe=(0,p.Z)(W,2),ye=fe[0],et=fe[1],Ve=(0,j.Z)(O,v),$e=Ve.max||X,Ye=Ve.strategy(be),lt=!!$e&&Ye>$e;(0,_e.useImperativeHandle)(A,function(){var St;return{focus:je,blur:function(){var se;(se=Ae.current)===null||se===void 0||se.blur()},setSelectionRange:function(se,ve,Ee){var k;(k=Ae.current)===null||k===void 0||k.setSelectionRange(se,ve,Ee)},select:function(){var se;(se=Ae.current)===null||se===void 0||se.select()},input:Ae.current,nativeElement:((St=V.current)===null||St===void 0?void 0:St.nativeElement)||Ae.current}}),(0,_e.useEffect)(function(){Fe.current&&(Fe.current=!1),qe(function(St){return St&&P?!1:St})},[P]);var de=function(Bt,se,ve){var Ee=se;if(!yt.current&&Ve.exceedFormatter&&Ve.max&&Ve.strategy(se)>Ve.max){if(Ee=Ve.exceedFormatter(se,{max:Ve.max}),se!==Ee){var k,Y;et([((k=Ae.current)===null||k===void 0?void 0:k.selectionStart)||0,((Y=Ae.current)===null||Y===void 0?void 0:Y.selectionEnd)||0])}}else if(ve.source==="compositionEnd")return;Se(Ee),Ae.current&&(0,te.rJ)(Ae.current,Bt,ne,Ee)};(0,_e.useEffect)(function(){if(ye){var St;(St=Ae.current)===null||St===void 0||St.setSelectionRange.apply(St,(0,w.Z)(ye))}},[ye]);var K=function(Bt){de(Bt,Bt.target.value,{source:"change"})},N=function(Bt){yt.current=!1,de(Bt,Bt.currentTarget.value,{source:"compositionEnd"}),Ht==null||Ht(Bt)},Le=function(Bt){ge&&Bt.key==="Enter"&&!Fe.current&&(Fe.current=!0,ge(Bt)),me==null||me(Bt)},De=function(Bt){Bt.key==="Enter"&&(Fe.current=!1),ot==null||ot(Bt)},Ce=function(Bt){qe(!0),ee==null||ee(Bt)},st=function(Bt){Fe.current&&(Fe.current=!1),qe(!1),oe==null||oe(Bt)},at=function(Bt){Se(""),je(),Ae.current&&(0,te.rJ)(Ae.current,Bt,ne)},Oe=lt&&"".concat(C,"-out-of-range"),Et=function(){var Bt=(0,L.Z)(D,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return _e.createElement("input",(0,ue.Z)({autoComplete:Q},Bt,{onChange:K,onFocus:Ce,onBlur:st,onKeyDown:Le,onKeyUp:De,className:d()(C,(0,z.Z)({},"".concat(C,"-disabled"),P),wt==null?void 0:wt.input),style:It==null?void 0:It.input,ref:Ae,size:G,type:He,onCompositionStart:function(ve){yt.current=!0,Ft==null||Ft(ve)},onCompositionEnd:N}))},Vt=function(){var Bt=Number($e)>0;if(y||Ve.show){var se=Ve.showFormatter?Ve.showFormatter({value:be,count:Ye,maxLength:$e}):"".concat(Ye).concat(Bt?" / ".concat($e):"");return _e.createElement(_e.Fragment,null,Ve.show&&_e.createElement("span",{className:d()("".concat(C,"-show-count-suffix"),(0,z.Z)({},"".concat(C,"-show-count-has-suffix"),!!y),wt==null?void 0:wt.count),style:(0,h.Z)({},It==null?void 0:It.count)},se),y)}return null};return _e.createElement(g,(0,ue.Z)({},Ke,{prefixCls:C,className:d()(re,Oe),handleReset:at,value:be,focused:an,triggerFocus:je,suffix:Vt(),disabled:P,classes:tt,classNames:wt,styles:It}),Et())}),F=le,H=F},30292:function(In,Gt,_){"use strict";_.d(Gt,{He:function(){return h},X3:function(){return ue},nH:function(){return B},rJ:function(){return ae}});function h(d){return!!(d.addonBefore||d.addonAfter)}function ue(d){return!!(d.prefix||d.suffix||d.allowClear)}function z(d,_e,te){var o=_e.cloneNode(!0),g=Object.create(d,{target:{value:o},currentTarget:{value:o}});return o.value=te,typeof _e.selectionStart=="number"&&typeof _e.selectionEnd=="number"&&(o.selectionStart=_e.selectionStart,o.selectionEnd=_e.selectionEnd),o.setSelectionRange=function(){_e.setSelectionRange.apply(_e,arguments)},g}function ae(d,_e,te,o){if(te){var g=_e;if(_e.type==="click"){g=z(_e,d,""),te(g);return}if(d.type!=="file"&&o!==void 0){g=z(_e,d,o),te(g);return}te(g)}}function B(d,_e){if(d){d.focus(_e);var te=_e||{},o=te.cursor;if(o){var g=d.value.length;switch(o){case"start":d.setSelectionRange(0,0);break;case"end":d.setSelectionRange(g,g);break;default:d.setSelectionRange(0,g)}}}}},28321:function(In,Gt,_){"use strict";_.d(Gt,{iz:function(){return Ne},ck:function(){return Ee},BW:function(){return Mt},sN:function(){return Ee},Wd:function(){return Pt},ZP:function(){return Dt},Xl:function(){return ge}});var h=_(32855),ue=_(74430),z=_(27247),ae=_(3300),B=_(11913),d=_(43079),_e=_(92310),te=_.n(_e),o=_(11780),g=_(18929),w=_(13697),p=_(48736),E=_(59301),x=_(4676),L=E.createContext(null);function j(Ze,_t){return Ze===void 0?null:"".concat(Ze,"-").concat(_t)}function $(Ze){var _t=E.useContext(L);return j(_t,Ze)}var le=_(80547),F=["children","locked"],H=E.createContext(null);function D(Ze,_t){var Ct=(0,z.Z)({},Ze);return Object.keys(_t).forEach(function(kt){var qt=_t[kt];qt!==void 0&&(Ct[kt]=qt)}),Ct}function A(Ze){var _t=Ze.children,Ct=Ze.locked,kt=(0,d.Z)(Ze,F),qt=E.useContext(H),it=(0,le.Z)(function(){return D(qt,kt)},[qt,kt],function(ln,En){return!Ct&&(ln[0]!==En[0]||!(0,w.Z)(ln[1],En[1],!0))});return E.createElement(H.Provider,{value:it},_t)}var Q=[],ne=E.createContext(null);function ee(){return E.useContext(ne)}var oe=E.createContext(Q);function ge(Ze){var _t=E.useContext(oe);return E.useMemo(function(){return Ze!==void 0?[].concat((0,ae.Z)(_t),[Ze]):_t},[_t,Ze])}var me=E.createContext(null),ot=E.createContext({}),U=ot,C=_(29194);function P(Ze){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,C.Z)(Ze)){var Ct=Ze.nodeName.toLowerCase(),kt=["input","select","textarea","button"].includes(Ct)||Ze.isContentEditable||Ct==="a"&&!!Ze.getAttribute("href"),qt=Ze.getAttribute("tabindex"),it=Number(qt),ln=null;return qt&&!Number.isNaN(it)?ln=it:kt&&ln===null&&(ln=0),kt&&Ze.disabled&&(ln=null),ln!==null&&(ln>=0||_t&&ln<0)}return!1}function G(Ze){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=(0,ae.Z)(Ze.querySelectorAll("*")).filter(function(kt){return P(kt,_t)});return P(Ze,_t)&&Ct.unshift(Ze),Ct}var re=null;function X(){re=document.activeElement}function y(){re=null}function v(){if(re)try{re.focus()}catch(Ze){}}function O(Ze,_t){if(_t.keyCode===9){var Ct=G(Ze),kt=Ct[_t.shiftKey?0:Ct.length-1],qt=kt===document.activeElement||Ze===document.activeElement;if(qt){var it=Ct[_t.shiftKey?Ct.length-1:0];it.focus(),_t.preventDefault()}}}var pe=_(10228),He=_(16089),tt=pe.Z.LEFT,wt=pe.Z.RIGHT,It=pe.Z.UP,Ft=pe.Z.DOWN,Ht=pe.Z.ENTER,Ke=pe.Z.ESC,en=pe.Z.HOME,Tt=pe.Z.END,an=[It,Ft,tt,wt];function qe(Ze,_t,Ct,kt){var qt,it="prev",ln="next",En="children",Tn="parent";if(Ze==="inline"&&kt===Ht)return{inlineTrigger:!0};var wn=(0,ue.Z)((0,ue.Z)({},It,it),Ft,ln),Yn=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},tt,Ct?ln:it),wt,Ct?it:ln),Ft,En),Ht,En),Cn=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},It,it),Ft,ln),Ht,En),Ke,Tn),tt,Ct?En:Tn),wt,Ct?Tn:En),Zn={inline:wn,horizontal:Yn,vertical:Cn,inlineSub:wn,horizontalSub:Cn,verticalSub:Cn},Nn=(qt=Zn["".concat(Ze).concat(_t?"":"Sub")])===null||qt===void 0?void 0:qt[kt];switch(Nn){case it:return{offset:-1,sibling:!0};case ln:return{offset:1,sibling:!0};case Tn:return{offset:-1,sibling:!1};case En:return{offset:1,sibling:!1};default:return null}}function yt(Ze){for(var _t=Ze;_t;){if(_t.getAttribute("data-menu-list"))return _t;_t=_t.parentElement}return null}function Fe(Ze,_t){for(var Ct=Ze||document.activeElement;Ct;){if(_t.has(Ct))return Ct;Ct=Ct.parentElement}return null}function Ae(Ze,_t){var Ct=G(Ze,!0);return Ct.filter(function(kt){return _t.has(kt)})}function V(Ze,_t,Ct){var kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ze)return null;var qt=Ae(Ze,_t),it=qt.length,ln=qt.findIndex(function(En){return Ct===En});return kt<0?ln===-1?ln=it-1:ln-=1:kt>0&&(ln+=1),ln=(ln+it)%it,qt[ln]}var je=function(_t,Ct){var kt=new Set,qt=new Map,it=new Map;return _t.forEach(function(ln){var En=document.querySelector("[data-menu-id='".concat(j(Ct,ln),"']"));En&&(kt.add(En),it.set(En,ln),qt.set(ln,En))}),{elements:kt,key2element:qt,element2key:it}};function Qe(Ze,_t,Ct,kt,qt,it,ln,En,Tn,wn){var Yn=E.useRef(),Cn=E.useRef();Cn.current=_t;var Zn=function(){He.Z.cancel(Yn.current)};return E.useEffect(function(){return function(){Zn()}},[]),function(Nn){var Pn=Nn.which;if([].concat(an,[Ht,Ke,en,Tt]).includes(Pn)){var Dn=it(),vn=je(Dn,kt),Ln=vn,hn=Ln.elements,yn=Ln.key2element,Rn=Ln.element2key,Mn=yn.get(_t),Bn=Fe(Mn,hn),zn=Rn.get(Bn),pr=qe(Ze,ln(zn,!0).length===1,Ct,Pn);if(!pr&&Pn!==en&&Pn!==Tt)return;(an.includes(Pn)||[en,Tt].includes(Pn))&&Nn.preventDefault();var Me=function(Rt){if(Rt){var vt=Rt,bt=Rt.querySelector("a");bt!=null&&bt.getAttribute("href")&&(vt=bt);var Nt=Rn.get(Rt);En(Nt),Zn(),Yn.current=(0,He.Z)(function(){Cn.current===Nt&&vt.focus()})}};if([en,Tt].includes(Pn)||pr.sibling||!Bn){var Te;!Bn||Ze==="inline"?Te=qt.current:Te=yt(Bn);var Ie,ut=Ae(Te,hn);Pn===en?Ie=ut[0]:Pn===Tt?Ie=ut[ut.length-1]:Ie=V(Te,hn,Bn,pr.offset),Me(Ie)}else if(pr.inlineTrigger)Tn(zn);else if(pr.offset>0)Tn(zn,!0),Zn(),Yn.current=(0,He.Z)(function(){vn=je(Dn,kt);var Wt=Bn.getAttribute("aria-controls"),Rt=document.getElementById(Wt),vt=V(Rt,vn.elements);Me(vt)},5);else if(pr.offset<0){var mt=ln(zn,!0),ft=mt[mt.length-2],zt=yn.get(ft);Tn(ft,!1),Me(zt)}}wn==null||wn(Nn)}}function J(Ze){Promise.resolve().then(Ze)}var M="__RC_UTIL_PATH_SPLIT__",Se=function(_t){return _t.join(M)},be=function(_t){return _t.split(M)},W="rc-menu-more";function fe(){var Ze=E.useState({}),_t=(0,B.Z)(Ze,2),Ct=_t[1],kt=(0,E.useRef)(new Map),qt=(0,E.useRef)(new Map),it=E.useState([]),ln=(0,B.Z)(it,2),En=ln[0],Tn=ln[1],wn=(0,E.useRef)(0),Yn=(0,E.useRef)(!1),Cn=function(){Yn.current||Ct({})},Zn=(0,E.useCallback)(function(yn,Rn){var Mn=Se(Rn);qt.current.set(Mn,yn),kt.current.set(yn,Mn),wn.current+=1;var Bn=wn.current;J(function(){Bn===wn.current&&Cn()})},[]),Nn=(0,E.useCallback)(function(yn,Rn){var Mn=Se(Rn);qt.current.delete(Mn),kt.current.delete(yn)},[]),Pn=(0,E.useCallback)(function(yn){Tn(yn)},[]),Dn=(0,E.useCallback)(function(yn,Rn){var Mn=kt.current.get(yn)||"",Bn=be(Mn);return Rn&&En.includes(Bn[0])&&Bn.unshift(W),Bn},[En]),vn=(0,E.useCallback)(function(yn,Rn){return yn.filter(function(Mn){return Mn!==void 0}).some(function(Mn){var Bn=Dn(Mn,!0);return Bn.includes(Rn)})},[Dn]),Ln=function(){var Rn=(0,ae.Z)(kt.current.keys());return En.length&&Rn.push(W),Rn},hn=(0,E.useCallback)(function(yn){var Rn="".concat(kt.current.get(yn)).concat(M),Mn=new Set;return(0,ae.Z)(qt.current.keys()).forEach(function(Bn){Bn.startsWith(Rn)&&Mn.add(qt.current.get(Bn))}),Mn},[]);return E.useEffect(function(){return function(){Yn.current=!0}},[]),{registerPath:Zn,unregisterPath:Nn,refreshOverflowKeys:Pn,isSubPathKey:vn,getKeyPath:Dn,getKeys:Ln,getSubPathKeys:hn}}function ye(Ze){var _t=E.useRef(Ze);_t.current=Ze;var Ct=E.useCallback(function(){for(var kt,qt=arguments.length,it=new Array(qt),ln=0;ln<qt;ln++)it[ln]=arguments[ln];return(kt=_t.current)===null||kt===void 0?void 0:kt.call.apply(kt,[_t].concat(it))},[]);return Ze?Ct:void 0}var et=Math.random().toFixed(5).toString().slice(2),Ve=0;function $e(Ze){var _t=(0,g.Z)(Ze,{value:Ze}),Ct=(0,B.Z)(_t,2),kt=Ct[0],qt=Ct[1];return E.useEffect(function(){Ve+=1;var it="".concat(et,"-").concat(Ve);qt("rc-menu-uuid-".concat(it))},[]),kt}var Ye=_(33377),lt=_(93912),de=_(18881),K=_(85461),N=_(2738),Le=_(8654);function De(Ze,_t,Ct,kt){var qt=E.useContext(H),it=qt.activeKey,ln=qt.onActive,En=qt.onInactive,Tn={active:it===Ze};return _t||(Tn.onMouseEnter=function(wn){Ct==null||Ct({key:Ze,domEvent:wn}),ln(Ze)},Tn.onMouseLeave=function(wn){kt==null||kt({key:Ze,domEvent:wn}),En(Ze)}),Tn}function Ce(Ze){var _t=E.useContext(H),Ct=_t.mode,kt=_t.rtl,qt=_t.inlineIndent;if(Ct!=="inline")return null;var it=Ze;return kt?{paddingRight:it*qt}:{paddingLeft:it*qt}}function st(Ze){var _t=Ze.icon,Ct=Ze.props,kt=Ze.children,qt;return _t===null||_t===!1?null:(typeof _t=="function"?qt=E.createElement(_t,(0,z.Z)({},Ct)):typeof _t!="boolean"&&(qt=_t),qt||kt||null)}var at=["item"];function Oe(Ze){var _t=Ze.item,Ct=(0,d.Z)(Ze,at);return Object.defineProperty(Ct,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),_t}}),Ct}var Et=["title","attribute","elementRef"],Vt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],St=["active"],Bt=function(Ze){(0,de.Z)(Ct,Ze);var _t=(0,K.Z)(Ct);function Ct(){return(0,Ye.Z)(this,Ct),_t.apply(this,arguments)}return(0,lt.Z)(Ct,[{key:"render",value:function(){var qt=this.props,it=qt.title,ln=qt.attribute,En=qt.elementRef,Tn=(0,d.Z)(qt,Et),wn=(0,N.Z)(Tn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!ln,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),E.createElement(o.Z.Item,(0,h.Z)({},ln,{title:typeof it=="string"?it:void 0},wn,{ref:En}))}}]),Ct}(E.Component),se=E.forwardRef(function(Ze,_t){var Ct=Ze.style,kt=Ze.className,qt=Ze.eventKey,it=Ze.warnKey,ln=Ze.disabled,En=Ze.itemIcon,Tn=Ze.children,wn=Ze.role,Yn=Ze.onMouseEnter,Cn=Ze.onMouseLeave,Zn=Ze.onClick,Nn=Ze.onKeyDown,Pn=Ze.onFocus,Dn=(0,d.Z)(Ze,Vt),vn=$(qt),Ln=E.useContext(H),hn=Ln.prefixCls,yn=Ln.onItemClick,Rn=Ln.disabled,Mn=Ln.overflowDisabled,Bn=Ln.itemIcon,zn=Ln.selectedKeys,pr=Ln.onActive,Me=E.useContext(U),Te=Me._internalRenderMenuItem,Ie="".concat(hn,"-item"),ut=E.useRef(),mt=E.useRef(),ft=Rn||ln,zt=(0,Le.x1)(_t,mt),Wt=ge(qt),Rt=function(Sn){return{key:qt,keyPath:(0,ae.Z)(Wt).reverse(),item:ut.current,domEvent:Sn}},vt=En||Bn,bt=De(qt,ft,Yn,Cn),Nt=bt.active,Zt=(0,d.Z)(bt,St),rn=zn.includes(qt),gn=Ce(Wt.length),Fn=function(Sn){if(!ft){var Hn=Rt(Sn);Zn==null||Zn(Oe(Hn)),yn(Hn)}},pn=function(Sn){if(Nn==null||Nn(Sn),Sn.which===pe.Z.ENTER){var Hn=Rt(Sn);Zn==null||Zn(Oe(Hn)),yn(Hn)}},xn=function(Sn){pr(qt),Pn==null||Pn(Sn)},On={};Ze.role==="option"&&(On["aria-selected"]=rn);var kn=E.createElement(Bt,(0,h.Z)({ref:ut,elementRef:zt,role:wn===null?"none":wn||"menuitem",tabIndex:ln?null:-1,"data-menu-id":Mn&&vn?null:vn},(0,N.Z)(Dn,["extra"]),Zt,On,{component:"li","aria-disabled":ln,style:(0,z.Z)((0,z.Z)({},gn),Ct),className:te()(Ie,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ie,"-active"),Nt),"".concat(Ie,"-selected"),rn),"".concat(Ie,"-disabled"),ft),kt),onClick:Fn,onKeyDown:pn,onFocus:xn}),Tn,E.createElement(st,{props:(0,z.Z)((0,z.Z)({},Ze),{},{isSelected:rn}),icon:vt}));return Te&&(kn=Te(kn,Ze,{selected:rn})),kn});function ve(Ze,_t){var Ct=Ze.eventKey,kt=ee(),qt=ge(Ct);return E.useEffect(function(){if(kt)return kt.registerPath(Ct,qt),function(){kt.unregisterPath(Ct,qt)}},[qt]),kt?null:E.createElement(se,(0,h.Z)({},Ze,{ref:_t}))}var Ee=E.forwardRef(ve),k=["className","children"],Y=function(_t,Ct){var kt=_t.className,qt=_t.children,it=(0,d.Z)(_t,k),ln=E.useContext(H),En=ln.prefixCls,Tn=ln.mode,wn=ln.rtl;return E.createElement("ul",(0,h.Z)({className:te()(En,wn&&"".concat(En,"-rtl"),"".concat(En,"-sub"),"".concat(En,"-").concat(Tn==="inline"?"inline":"vertical"),kt),role:"menu"},it,{"data-menu-list":!0,ref:Ct}),qt)},he=E.forwardRef(Y);he.displayName="SubMenuList";var ce=he,xe=_(11592);function Be(Ze,_t){return(0,xe.Z)(Ze).map(function(Ct,kt){if(E.isValidElement(Ct)){var qt,it,ln=Ct.key,En=(qt=(it=Ct.props)===null||it===void 0?void 0:it.eventKey)!==null&&qt!==void 0?qt:ln,Tn=En==null;Tn&&(En="tmp_key-".concat([].concat((0,ae.Z)(_t),[kt]).join("-")));var wn={key:En,eventKey:En};return E.cloneElement(Ct,wn)}return Ct})}var Xe=_(65030),ct={adjustX:1,adjustY:1},nt={topLeft:{points:["bl","tl"],overflow:ct},topRight:{points:["br","tr"],overflow:ct},bottomLeft:{points:["tl","bl"],overflow:ct},bottomRight:{points:["tr","br"],overflow:ct},leftTop:{points:["tr","tl"],overflow:ct},leftBottom:{points:["br","bl"],overflow:ct},rightTop:{points:["tl","tr"],overflow:ct},rightBottom:{points:["bl","br"],overflow:ct}},Ue={topLeft:{points:["bl","tl"],overflow:ct},topRight:{points:["br","tr"],overflow:ct},bottomLeft:{points:["tl","bl"],overflow:ct},bottomRight:{points:["tr","br"],overflow:ct},rightTop:{points:["tr","tl"],overflow:ct},rightBottom:{points:["br","bl"],overflow:ct},leftTop:{points:["tl","tr"],overflow:ct},leftBottom:{points:["bl","br"],overflow:ct}},I=null;function Z(Ze,_t,Ct){if(_t)return _t;if(Ct)return Ct[Ze]||Ct.other}var S={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ze(Ze){var _t=Ze.prefixCls,Ct=Ze.visible,kt=Ze.children,qt=Ze.popup,it=Ze.popupStyle,ln=Ze.popupClassName,En=Ze.popupOffset,Tn=Ze.disabled,wn=Ze.mode,Yn=Ze.onVisibleChange,Cn=E.useContext(H),Zn=Cn.getPopupContainer,Nn=Cn.rtl,Pn=Cn.subMenuOpenDelay,Dn=Cn.subMenuCloseDelay,vn=Cn.builtinPlacements,Ln=Cn.triggerSubMenuAction,hn=Cn.forceSubMenuRender,yn=Cn.rootClassName,Rn=Cn.motion,Mn=Cn.defaultMotions,Bn=E.useState(!1),zn=(0,B.Z)(Bn,2),pr=zn[0],Me=zn[1],Te=Nn?(0,z.Z)((0,z.Z)({},Ue),vn):(0,z.Z)((0,z.Z)({},nt),vn),Ie=S[wn],ut=Z(wn,Rn,Mn),mt=E.useRef(ut);wn!=="inline"&&(mt.current=ut);var ft=(0,z.Z)((0,z.Z)({},mt.current),{},{leavedClassName:"".concat(_t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),zt=E.useRef();return E.useEffect(function(){return zt.current=(0,He.Z)(function(){Me(Ct)}),function(){He.Z.cancel(zt.current)}},[Ct]),E.createElement(Xe.Z,{prefixCls:_t,popupClassName:te()("".concat(_t,"-popup"),(0,ue.Z)({},"".concat(_t,"-rtl"),Nn),ln,yn),stretch:wn==="horizontal"?"minWidth":null,getPopupContainer:Zn,builtinPlacements:Te,popupPlacement:Ie,popupVisible:pr,popup:qt,popupStyle:it,popupAlign:En&&{offset:En},action:Tn?[]:[Ln],mouseEnterDelay:Pn,mouseLeaveDelay:Dn,onPopupVisibleChange:Yn,forceRender:hn,popupMotion:ft,fresh:!0},kt)}var ke=_(77900);function Pe(Ze){var _t=Ze.id,Ct=Ze.open,kt=Ze.keyPath,qt=Ze.children,it="inline",ln=E.useContext(H),En=ln.prefixCls,Tn=ln.forceSubMenuRender,wn=ln.motion,Yn=ln.defaultMotions,Cn=ln.mode,Zn=E.useRef(!1);Zn.current=Cn===it;var Nn=E.useState(!Zn.current),Pn=(0,B.Z)(Nn,2),Dn=Pn[0],vn=Pn[1],Ln=Zn.current?Ct:!1;E.useEffect(function(){Zn.current&&vn(!1)},[Cn]);var hn=(0,z.Z)({},Z(it,wn,Yn));kt.length>1&&(hn.motionAppear=!1);var yn=hn.onVisibleChanged;return hn.onVisibleChanged=function(Rn){return!Zn.current&&!Rn&&vn(!0),yn==null?void 0:yn(Rn)},Dn?null:E.createElement(A,{mode:it,locked:!Zn.current},E.createElement(ke.default,(0,h.Z)({visible:Ln},hn,{forceRender:Tn,removeOnLeave:!1,leavedClassName:"".concat(En,"-hidden")}),function(Rn){var Mn=Rn.className,Bn=Rn.style;return E.createElement(ce,{id:_t,className:Mn,style:Bn},qt)}))}var Ge=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],We=["active"],dt=E.forwardRef(function(Ze,_t){var Ct=Ze.style,kt=Ze.className,qt=Ze.title,it=Ze.eventKey,ln=Ze.warnKey,En=Ze.disabled,Tn=Ze.internalPopupClose,wn=Ze.children,Yn=Ze.itemIcon,Cn=Ze.expandIcon,Zn=Ze.popupClassName,Nn=Ze.popupOffset,Pn=Ze.popupStyle,Dn=Ze.onClick,vn=Ze.onMouseEnter,Ln=Ze.onMouseLeave,hn=Ze.onTitleClick,yn=Ze.onTitleMouseEnter,Rn=Ze.onTitleMouseLeave,Mn=(0,d.Z)(Ze,Ge),Bn=$(it),zn=E.useContext(H),pr=zn.prefixCls,Me=zn.mode,Te=zn.openKeys,Ie=zn.disabled,ut=zn.overflowDisabled,mt=zn.activeKey,ft=zn.selectedKeys,zt=zn.itemIcon,Wt=zn.expandIcon,Rt=zn.onItemClick,vt=zn.onOpenChange,bt=zn.onActive,Nt=E.useContext(U),Zt=Nt._internalRenderSubMenuItem,rn=E.useContext(me),gn=rn.isSubPathKey,Fn=ge(),pn="".concat(pr,"-submenu"),xn=Ie||En,On=E.useRef(),kn=E.useRef(),Gn=Yn!=null?Yn:zt,Sn=Cn!=null?Cn:Wt,Hn=Te.includes(it),Un=!ut&&Hn,tr=gn(ft,it),Wn=De(it,xn,yn,Rn),Jn=Wn.active,lr=(0,d.Z)(Wn,We),Je=E.useState(!1),Jt=(0,B.Z)(Je,2),on=Jt[0],jt=Jt[1],mn=function(xr){xn||jt(xr)},Kn=function(xr){mn(!0),vn==null||vn({key:it,domEvent:xr})},rr=function(xr){mn(!1),Ln==null||Ln({key:it,domEvent:xr})},Qn=E.useMemo(function(){return Jn||(Me!=="inline"?on||gn([mt],it):!1)},[Me,Jn,mt,on,it,gn]),Vn=Ce(Fn.length),Sr=function(xr){xn||(hn==null||hn({key:it,domEvent:xr}),Me==="inline"&&vt(it,!Hn))},Ur=ye(function(Er){Dn==null||Dn(Oe(Er)),Rt(Er)}),Nr=function(xr){Me!=="inline"&&vt(it,xr)},Jr=function(){bt(it)},Hr=Bn&&"".concat(Bn,"-popup"),jr=E.useMemo(function(){return E.createElement(st,{icon:Me!=="horizontal"?Sn:void 0,props:(0,z.Z)((0,z.Z)({},Ze),{},{isOpen:Un,isSubMenu:!0})},E.createElement("i",{className:"".concat(pn,"-arrow")}))},[Me,Sn,Ze,Un,pn]),yr=E.createElement("div",(0,h.Z)({role:"menuitem",style:Vn,className:"".concat(pn,"-title"),tabIndex:xn?null:-1,ref:On,title:typeof qt=="string"?qt:null,"data-menu-id":ut&&Bn?null:Bn,"aria-expanded":Un,"aria-haspopup":!0,"aria-controls":Hr,"aria-disabled":xn,onClick:Sr,onFocus:Jr},lr),qt,jr),Cr=E.useRef(Me);if(Me!=="inline"&&Fn.length>1?Cr.current="vertical":Cr.current=Me,!ut){var Fr=Cr.current;yr=E.createElement(ze,{mode:Fr,prefixCls:pn,visible:!Tn&&Un&&Me!=="inline",popupClassName:Zn,popupOffset:Nn,popupStyle:Pn,popup:E.createElement(A,{mode:Fr==="horizontal"?"vertical":Fr},E.createElement(ce,{id:Hr,ref:kn},wn)),disabled:xn,onVisibleChange:Nr},yr)}var br=E.createElement(o.Z.Item,(0,h.Z)({ref:_t,role:"none"},Mn,{component:"li",style:Ct,className:te()(pn,"".concat(pn,"-").concat(Me),kt,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(pn,"-open"),Un),"".concat(pn,"-active"),Qn),"".concat(pn,"-selected"),tr),"".concat(pn,"-disabled"),xn)),onMouseEnter:Kn,onMouseLeave:rr}),yr,!ut&&E.createElement(Pe,{id:Hr,open:Un,keyPath:Fn},wn));return Zt&&(br=Zt(br,Ze,{selected:tr,active:Qn,open:Un,disabled:xn})),E.createElement(A,{onItemClick:Ur,mode:Me==="horizontal"?"vertical":Me,itemIcon:Gn,expandIcon:Sn},br)}),Lt=E.forwardRef(function(Ze,_t){var Ct=Ze.eventKey,kt=Ze.children,qt=ge(Ct),it=Be(kt,qt),ln=ee();E.useEffect(function(){if(ln)return ln.registerPath(Ct,qt),function(){ln.unregisterPath(Ct,qt)}},[qt]);var En;return ln?En=it:En=E.createElement(dt,(0,h.Z)({ref:_t},Ze),it),E.createElement(oe.Provider,{value:qt},En)}),Pt=Lt,cn=_(34666);function Ne(Ze){var _t=Ze.className,Ct=Ze.style,kt=E.useContext(H),qt=kt.prefixCls,it=ee();return it?null:E.createElement("li",{role:"separator",className:te()("".concat(qt,"-item-divider"),_t),style:Ct})}var Re=["className","title","eventKey","children"],gt=E.forwardRef(function(Ze,_t){var Ct=Ze.className,kt=Ze.title,qt=Ze.eventKey,it=Ze.children,ln=(0,d.Z)(Ze,Re),En=E.useContext(H),Tn=En.prefixCls,wn="".concat(Tn,"-item-group");return E.createElement("li",(0,h.Z)({ref:_t,role:"presentation"},ln,{onClick:function(Cn){return Cn.stopPropagation()},className:te()(wn,Ct)}),E.createElement("div",{role:"presentation",className:"".concat(wn,"-title"),title:typeof kt=="string"?kt:void 0},kt),E.createElement("ul",{role:"group",className:"".concat(wn,"-list")},it))}),pt=E.forwardRef(function(Ze,_t){var Ct=Ze.eventKey,kt=Ze.children,qt=ge(Ct),it=Be(kt,qt),ln=ee();return ln?it:E.createElement(gt,(0,h.Z)({ref:_t},(0,N.Z)(Ze,["warnKey"])),it)}),Mt=pt,xt=["label","children","key","type","extra"];function At(Ze,_t,Ct){var kt=_t.item,qt=_t.group,it=_t.submenu,ln=_t.divider;return(Ze||[]).map(function(En,Tn){if(En&&(0,cn.Z)(En)==="object"){var wn=En,Yn=wn.label,Cn=wn.children,Zn=wn.key,Nn=wn.type,Pn=wn.extra,Dn=(0,d.Z)(wn,xt),vn=Zn!=null?Zn:"tmp-".concat(Tn);return Cn||Nn==="group"?Nn==="group"?E.createElement(qt,(0,h.Z)({key:vn},Dn,{title:Yn}),At(Cn,_t,Ct)):E.createElement(it,(0,h.Z)({key:vn},Dn,{title:Yn}),At(Cn,_t,Ct)):Nn==="divider"?E.createElement(ln,(0,h.Z)({key:vn},Dn)):E.createElement(kt,(0,h.Z)({key:vn},Dn,{extra:Pn}),Yn,(!!Pn||Pn===0)&&E.createElement("span",{className:"".concat(Ct,"-item-extra")},Pn))}return null}).filter(function(En){return En})}function Kt(Ze,_t,Ct,kt,qt){var it=Ze,ln=(0,z.Z)({divider:Ne,item:Ee,group:Mt,submenu:Pt},kt);return _t&&(it=At(_t,ln,qt)),Be(it,Ct)}var nn=["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"],Ot=[],dn=E.forwardRef(function(Ze,_t){var Ct,kt=Ze,qt=kt.prefixCls,it=qt===void 0?"rc-menu":qt,ln=kt.rootClassName,En=kt.style,Tn=kt.className,wn=kt.tabIndex,Yn=wn===void 0?0:wn,Cn=kt.items,Zn=kt.children,Nn=kt.direction,Pn=kt.id,Dn=kt.mode,vn=Dn===void 0?"vertical":Dn,Ln=kt.inlineCollapsed,hn=kt.disabled,yn=kt.disabledOverflow,Rn=kt.subMenuOpenDelay,Mn=Rn===void 0?.1:Rn,Bn=kt.subMenuCloseDelay,zn=Bn===void 0?.1:Bn,pr=kt.forceSubMenuRender,Me=kt.defaultOpenKeys,Te=kt.openKeys,Ie=kt.activeKey,ut=kt.defaultActiveFirst,mt=kt.selectable,ft=mt===void 0?!0:mt,zt=kt.multiple,Wt=zt===void 0?!1:zt,Rt=kt.defaultSelectedKeys,vt=kt.selectedKeys,bt=kt.onSelect,Nt=kt.onDeselect,Zt=kt.inlineIndent,rn=Zt===void 0?24:Zt,gn=kt.motion,Fn=kt.defaultMotions,pn=kt.triggerSubMenuAction,xn=pn===void 0?"hover":pn,On=kt.builtinPlacements,kn=kt.itemIcon,Gn=kt.expandIcon,Sn=kt.overflowedIndicator,Hn=Sn===void 0?"...":Sn,Un=kt.overflowedIndicatorPopupClassName,tr=kt.getPopupContainer,Wn=kt.onClick,Jn=kt.onOpenChange,lr=kt.onKeyDown,Je=kt.openAnimation,Jt=kt.openTransitionName,on=kt._internalRenderMenuItem,jt=kt._internalRenderSubMenuItem,mn=kt._internalComponents,Kn=(0,d.Z)(kt,nn),rr=E.useMemo(function(){return[Kt(Zn,Cn,Ot,mn,it),Kt(Zn,Cn,Ot,{},it)]},[Zn,Cn,mn]),Qn=(0,B.Z)(rr,2),Vn=Qn[0],Sr=Qn[1],Ur=E.useState(!1),Nr=(0,B.Z)(Ur,2),Jr=Nr[0],Hr=Nr[1],jr=E.useRef(),yr=$e(Pn),Cr=Nn==="rtl",Fr=(0,g.Z)(Me,{value:Te,postState:function(Or){return Or||Ot}}),br=(0,B.Z)(Fr,2),Er=br[0],xr=br[1],Xn=function(Or){var zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function hi(){xr(Or),Jn==null||Jn(Or)}zr?(0,x.flushSync)(hi):hi()},ur=E.useState(Er),cr=(0,B.Z)(ur,2),dr=cr[0],or=cr[1],_r=E.useRef(!1),Yr=E.useMemo(function(){return(vn==="inline"||vn==="vertical")&&Ln?["vertical",Ln]:[vn,!1]},[vn,Ln]),jn=(0,B.Z)(Yr,2),ir=jn[0],sr=jn[1],Dr=ir==="inline",Ir=E.useState(ir),Zr=(0,B.Z)(Ir,2),oi=Zr[0],ni=Zr[1],qr=E.useState(sr),Vr=(0,B.Z)(qr,2),qi=Vr[0],$i=Vr[1];E.useEffect(function(){ni(ir),$i(sr),_r.current&&(Dr?xr(dr):Xn(Ot))},[ir,sr]);var Ri=E.useState(0),Ni=(0,B.Z)(Ri,2),ji=Ni[0],ui=Ni[1],Vi=ji>=Vn.length-1||oi!=="horizontal"||yn;E.useEffect(function(){Dr&&or(Er)},[Er]),E.useEffect(function(){return _r.current=!0,function(){_r.current=!1}},[]);var Si=fe(),Wi=Si.registerPath,Ii=Si.unregisterPath,es=Si.refreshOverflowKeys,Mi=Si.isSubPathKey,vs=Si.getKeyPath,Oi=Si.getKeys,ds=Si.getSubPathKeys,ts=E.useMemo(function(){return{registerPath:Wi,unregisterPath:Ii}},[Wi,Ii]),yi=E.useMemo(function(){return{isSubPathKey:Mi}},[Mi]);E.useEffect(function(){es(Vi?Ot:Vn.slice(ji+1).map(function(Qr){return Qr.key}))},[ji,Vi]);var Fi=(0,g.Z)(Ie||ut&&((Ct=Vn[0])===null||Ct===void 0?void 0:Ct.key),{value:Ie}),ii=(0,B.Z)(Fi,2),ti=ii[0],Tr=ii[1],Ar=ye(function(Qr){Tr(Qr)}),$r=ye(function(){Tr(void 0)});(0,E.useImperativeHandle)(_t,function(){return{list:jr.current,focus:function(Or){var zr,hi=Oi(),si=je(hi,yr),_i=si.elements,ai=si.key2element,ci=si.element2key,Ts=Ae(jr.current,_i),bn=ti!=null?ti:Ts[0]?ci.get(Ts[0]):(zr=Vn.find(function(rs){return!rs.props.disabled}))===null||zr===void 0?void 0:zr.key,Bi=ai.get(bn);if(bn&&Bi){var ns;Bi==null||(ns=Bi.focus)===null||ns===void 0||ns.call(Bi,Or)}}}});var Wr=(0,g.Z)(Rt||[],{value:vt,postState:function(Or){return Array.isArray(Or)?Or:Or==null?Ot:[Or]}}),Gr=(0,B.Z)(Wr,2),Xr=Gr[0],mi=Gr[1],gi=function(Or){if(ft){var zr=Or.key,hi=Xr.includes(zr),si;Wt?hi?si=Xr.filter(function(ai){return ai!==zr}):si=[].concat((0,ae.Z)(Xr),[zr]):si=[zr],mi(si);var _i=(0,z.Z)((0,z.Z)({},Or),{},{selectedKeys:si});hi?Nt==null||Nt(_i):bt==null||bt(_i)}!Wt&&Er.length&&oi!=="inline"&&Xn(Ot)},Ai=ye(function(Qr){Wn==null||Wn(Oe(Qr)),gi(Qr)}),ei=ye(function(Qr,Or){var zr=Er.filter(function(si){return si!==Qr});if(Or)zr.push(Qr);else if(oi!=="inline"){var hi=ds(Qr);zr=zr.filter(function(si){return!hi.has(si)})}(0,w.Z)(Er,zr,!0)||Xn(zr,!0)}),fi=function(Or,zr){var hi=zr!=null?zr:!Er.includes(Or);ei(Or,hi)},Ci=Qe(oi,ti,Cr,yr,jr,Oi,vs,Tr,fi,lr);E.useEffect(function(){Hr(!0)},[]);var Ti=E.useMemo(function(){return{_internalRenderMenuItem:on,_internalRenderSubMenuItem:jt}},[on,jt]),fs=oi!=="horizontal"||yn?Vn:Vn.map(function(Qr,Or){return E.createElement(A,{key:Qr.key,overflowDisabled:Or>ji},Qr)}),Gi=E.createElement(o.Z,(0,h.Z)({id:Pn,ref:jr,prefixCls:"".concat(it,"-overflow"),component:"ul",itemComponent:Ee,className:te()(it,"".concat(it,"-root"),"".concat(it,"-").concat(oi),Tn,(0,ue.Z)((0,ue.Z)({},"".concat(it,"-inline-collapsed"),qi),"".concat(it,"-rtl"),Cr),ln),dir:Nn,style:En,role:"menu",tabIndex:Yn,data:fs,renderRawItem:function(Or){return Or},renderRawRest:function(Or){var zr=Or.length,hi=zr?Vn.slice(-zr):null;return E.createElement(Pt,{eventKey:W,title:Hn,disabled:Vi,internalPopupClose:zr===0,popupClassName:Un},hi)},maxCount:oi!=="horizontal"||yn?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Or){ui(Or)},onKeyDown:Ci},Kn));return E.createElement(U.Provider,{value:Ti},E.createElement(L.Provider,{value:yr},E.createElement(A,{prefixCls:it,rootClassName:ln,mode:oi,openKeys:Er,rtl:Cr,disabled:hn,motion:Jr?gn:null,defaultMotions:Jr?Fn:null,activeKey:ti,onActive:Ar,onInactive:$r,selectedKeys:Xr,inlineIndent:rn,subMenuOpenDelay:Mn,subMenuCloseDelay:zn,forceSubMenuRender:pr,builtinPlacements:On,triggerSubMenuAction:xn,getPopupContainer:tr,itemIcon:kn,expandIcon:Gn,onItemClick:Ai,onOpenChange:ei},E.createElement(me.Provider,{value:yi},Gi),E.createElement("div",{style:{display:"none"},"aria-hidden":!0},E.createElement(ne.Provider,{value:ts},Sr)))))}),Qt=dn,$t=Qt;$t.Item=Ee,$t.SubMenu=Pt,$t.ItemGroup=Mt,$t.Divider=Ne;var Dt=$t},11780:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return X}});var h=_(32855),ue=_(27247),z=_(11913),ae=_(43079),B=_(59301),d=_(92310),_e=_.n(d),te=_(29301),o=_(34280),g=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],w=void 0;function p(y,v){var O=y.prefixCls,pe=y.invalidate,He=y.item,tt=y.renderItem,wt=y.responsive,It=y.responsiveDisabled,Ft=y.registerSize,Ht=y.itemKey,Ke=y.className,en=y.style,Tt=y.children,an=y.display,qe=y.order,yt=y.component,Fe=yt===void 0?"div":yt,Ae=(0,ae.Z)(y,g),V=wt&&!an;function je(be){Ft(Ht,be)}B.useEffect(function(){return function(){je(null)}},[]);var Qe=tt&&He!==w?tt(He,{index:qe}):Tt,J;pe||(J={opacity:V?0:1,height:V?0:w,overflowY:V?"hidden":w,order:wt?qe:w,pointerEvents:V?"none":w,position:V?"absolute":w});var M={};V&&(M["aria-hidden"]=!0);var Se=B.createElement(Fe,(0,h.Z)({className:_e()(!pe&&O,Ke),style:(0,ue.Z)((0,ue.Z)({},J),en)},M,Ae,{ref:v}),Qe);return wt&&(Se=B.createElement(te.Z,{onResize:function(W){var fe=W.offsetWidth;je(fe)},disabled:It},Se)),Se}var E=B.forwardRef(p);E.displayName="Item";var x=E,L=_(6089),j=_(4676),$=_(16089);function le(y){if(typeof MessageChannel=="undefined")(0,$.Z)(y);else{var v=new MessageChannel;v.port1.onmessage=function(){return y()},v.port2.postMessage(void 0)}}function F(){var y=B.useRef(null),v=function(pe){y.current||(y.current=[],le(function(){(0,j.unstable_batchedUpdates)(function(){y.current.forEach(function(He){He()}),y.current=null})})),y.current.push(pe)};return v}function H(y,v){var O=B.useState(v),pe=(0,z.Z)(O,2),He=pe[0],tt=pe[1],wt=(0,L.Z)(function(It){y(function(){tt(It)})});return[He,wt]}var D=B.createContext(null),A=["component"],Q=["className"],ne=["className"],ee=function(v,O){var pe=B.useContext(D);if(!pe){var He=v.component,tt=He===void 0?"div":He,wt=(0,ae.Z)(v,A);return B.createElement(tt,(0,h.Z)({},wt,{ref:O}))}var It=pe.className,Ft=(0,ae.Z)(pe,Q),Ht=v.className,Ke=(0,ae.Z)(v,ne);return B.createElement(D.Provider,{value:null},B.createElement(x,(0,h.Z)({ref:O,className:_e()(It,Ht)},Ft,Ke)))},oe=B.forwardRef(ee);oe.displayName="RawItem";var ge=oe,me=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ot="responsive",U="invalidate";function C(y){return"+ ".concat(y.length," ...")}function P(y,v){var O=y.prefixCls,pe=O===void 0?"rc-overflow":O,He=y.data,tt=He===void 0?[]:He,wt=y.renderItem,It=y.renderRawItem,Ft=y.itemKey,Ht=y.itemWidth,Ke=Ht===void 0?10:Ht,en=y.ssr,Tt=y.style,an=y.className,qe=y.maxCount,yt=y.renderRest,Fe=y.renderRawRest,Ae=y.suffix,V=y.component,je=V===void 0?"div":V,Qe=y.itemComponent,J=y.onVisibleChange,M=(0,ae.Z)(y,me),Se=en==="full",be=F(),W=H(be,null),fe=(0,z.Z)(W,2),ye=fe[0],et=fe[1],Ve=ye||0,$e=H(be,new Map),Ye=(0,z.Z)($e,2),lt=Ye[0],de=Ye[1],K=H(be,0),N=(0,z.Z)(K,2),Le=N[0],De=N[1],Ce=H(be,0),st=(0,z.Z)(Ce,2),at=st[0],Oe=st[1],Et=H(be,0),Vt=(0,z.Z)(Et,2),St=Vt[0],Bt=Vt[1],se=(0,B.useState)(null),ve=(0,z.Z)(se,2),Ee=ve[0],k=ve[1],Y=(0,B.useState)(null),he=(0,z.Z)(Y,2),ce=he[0],xe=he[1],Be=B.useMemo(function(){return ce===null&&Se?Number.MAX_SAFE_INTEGER:ce||0},[ce,ye]),Xe=(0,B.useState)(!1),ct=(0,z.Z)(Xe,2),nt=ct[0],Ue=ct[1],I="".concat(pe,"-item"),Z=Math.max(Le,at),S=qe===ot,ze=tt.length&&S,ke=qe===U,Pe=ze||typeof qe=="number"&&tt.length>qe,Ge=(0,B.useMemo)(function(){var $t=tt;return ze?ye===null&&Se?$t=tt:$t=tt.slice(0,Math.min(tt.length,Ve/Ke)):typeof qe=="number"&&($t=tt.slice(0,qe)),$t},[tt,Ke,ye,qe,ze]),We=(0,B.useMemo)(function(){return ze?tt.slice(Be+1):tt.slice(Ge.length)},[tt,Ge,ze,Be]),dt=(0,B.useCallback)(function($t,Dt){var Ze;return typeof Ft=="function"?Ft($t):(Ze=Ft&&($t==null?void 0:$t[Ft]))!==null&&Ze!==void 0?Ze:Dt},[Ft]),Lt=(0,B.useCallback)(wt||function($t){return $t},[wt]);function Pt($t,Dt,Ze){ce===$t&&(Dt===void 0||Dt===Ee)||(xe($t),Ze||(Ue($t<tt.length-1),J==null||J($t)),Dt!==void 0&&k(Dt))}function cn($t,Dt){et(Dt.clientWidth)}function Ne($t,Dt){de(function(Ze){var _t=new Map(Ze);return Dt===null?_t.delete($t):_t.set($t,Dt),_t})}function Re($t,Dt){Oe(Dt),De(at)}function gt($t,Dt){Bt(Dt)}function pt($t){return lt.get(dt(Ge[$t],$t))}(0,o.Z)(function(){if(Ve&&typeof Z=="number"&&Ge){var $t=St,Dt=Ge.length,Ze=Dt-1;if(!Dt){Pt(0,null);return}for(var _t=0;_t<Dt;_t+=1){var Ct=pt(_t);if(Se&&(Ct=Ct||0),Ct===void 0){Pt(_t-1,void 0,!0);break}if($t+=Ct,Ze===0&&$t<=Ve||_t===Ze-1&&$t+pt(Ze)<=Ve){Pt(Ze,null);break}else if($t+Z>Ve){Pt(_t-1,$t-Ct-St+at);break}}Ae&&pt(0)+St>Ve&&k(null)}},[Ve,lt,at,St,dt,Ge]);var Mt=nt&&!!We.length,xt={};Ee!==null&&ze&&(xt={position:"absolute",left:Ee,top:0});var At={prefixCls:I,responsive:ze,component:Qe,invalidate:ke},Kt=It?function($t,Dt){var Ze=dt($t,Dt);return B.createElement(D.Provider,{key:Ze,value:(0,ue.Z)((0,ue.Z)({},At),{},{order:Dt,item:$t,itemKey:Ze,registerSize:Ne,display:Dt<=Be})},It($t,Dt))}:function($t,Dt){var Ze=dt($t,Dt);return B.createElement(x,(0,h.Z)({},At,{order:Dt,key:Ze,item:$t,renderItem:Lt,itemKey:Ze,registerSize:Ne,display:Dt<=Be}))},nn={order:Mt?Be:Number.MAX_SAFE_INTEGER,className:"".concat(I,"-rest"),registerSize:Re,display:Mt},Ot=yt||C,dn=Fe?B.createElement(D.Provider,{value:(0,ue.Z)((0,ue.Z)({},At),nn)},Fe(We)):B.createElement(x,(0,h.Z)({},At,nn),typeof Ot=="function"?Ot(We):Ot),Qt=B.createElement(je,(0,h.Z)({className:_e()(!ke&&pe,an),style:Tt,ref:v},M),Ge.map(Kt),Pe?dn:null,Ae&&B.createElement(x,(0,h.Z)({},At,{responsive:S,responsiveDisabled:!ze,order:Be,className:"".concat(I,"-suffix"),registerSize:gt,display:!0,style:xt}),Ae));return S?B.createElement(te.Z,{onResize:cn,disabled:!ze},Qt):Qt}var G=B.forwardRef(P);G.displayName="Overflow",G.Item=ge,G.RESPONSIVE=ot,G.INVALIDATE=U;var re=G,X=re},23425:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return ne}});var h=_(74430),ue=_(32855),z=_(34666),ae=_(27247),B=_(11913),d=_(92310),_e=_.n(d),te=_(18929),o=_(10228),g=_(26112),w=_(48736),p=_(59301),E=_(17119),x=[10,20,50,100],L=function(oe){var ge=oe.pageSizeOptions,me=ge===void 0?x:ge,ot=oe.locale,U=oe.changeSize,C=oe.pageSize,P=oe.goButton,G=oe.quickGo,re=oe.rootPrefixCls,X=oe.disabled,y=oe.buildOptionText,v=oe.showSizeChanger,O=oe.sizeChangerRender,pe=p.useState(""),He=(0,B.Z)(pe,2),tt=He[0],wt=He[1],It=function(){return!tt||Number.isNaN(tt)?void 0:Number(tt)},Ft=typeof y=="function"?y:function(Ae){return"".concat(Ae," ").concat(ot.items_per_page)},Ht=function(V){wt(V.target.value)},Ke=function(V){P||tt===""||(wt(""),!(V.relatedTarget&&(V.relatedTarget.className.indexOf("".concat(re,"-item-link"))>=0||V.relatedTarget.className.indexOf("".concat(re,"-item"))>=0))&&(G==null||G(It())))},en=function(V){tt!==""&&(V.keyCode===o.Z.ENTER||V.type==="click")&&(wt(""),G==null||G(It()))},Tt=function(){return me.some(function(V){return V.toString()===C.toString()})?me:me.concat([C]).sort(function(V,je){var Qe=Number.isNaN(Number(V))?0:Number(V),J=Number.isNaN(Number(je))?0:Number(je);return Qe-J})},an="".concat(re,"-options");if(!v&&!G)return null;var qe=null,yt=null,Fe=null;return v&&O&&(qe=O({disabled:X,size:C,onSizeChange:function(V){U==null||U(Number(V))},"aria-label":ot.page_size,className:"".concat(an,"-size-changer"),options:Tt().map(function(Ae){return{label:Ft(Ae),value:Ae}})})),G&&(P&&(Fe=typeof P=="boolean"?p.createElement("button",{type:"button",onClick:en,onKeyUp:en,disabled:X,className:"".concat(an,"-quick-jumper-button")},ot.jump_to_confirm):p.createElement("span",{onClick:en,onKeyUp:en},P)),yt=p.createElement("div",{className:"".concat(an,"-quick-jumper")},ot.jump_to,p.createElement("input",{disabled:X,type:"text",value:tt,onChange:Ht,onKeyUp:en,onBlur:Ke,"aria-label":ot.page}),ot.page,Fe)),p.createElement("li",{className:an},qe,yt)},j=L,$=function(oe){var ge=oe.rootPrefixCls,me=oe.page,ot=oe.active,U=oe.className,C=oe.showTitle,P=oe.onClick,G=oe.onKeyPress,re=oe.itemRender,X="".concat(ge,"-item"),y=_e()(X,"".concat(X,"-").concat(me),(0,h.Z)((0,h.Z)({},"".concat(X,"-active"),ot),"".concat(X,"-disabled"),!me),U),v=function(){P(me)},O=function(tt){G(tt,P,me)},pe=re(me,"page",p.createElement("a",{rel:"nofollow"},me));return pe?p.createElement("li",{title:C?String(me):null,className:y,onClick:v,onKeyDown:O,tabIndex:0},pe):null},le=$,F=function(oe,ge,me){return me};function H(){}function D(ee){var oe=Number(ee);return typeof oe=="number"&&!Number.isNaN(oe)&&isFinite(oe)&&Math.floor(oe)===oe}function A(ee,oe,ge){var me=typeof ee=="undefined"?oe:ee;return Math.floor((ge-1)/me)+1}var Q=function(oe){var ge=oe.prefixCls,me=ge===void 0?"rc-pagination":ge,ot=oe.selectPrefixCls,U=ot===void 0?"rc-select":ot,C=oe.className,P=oe.current,G=oe.defaultCurrent,re=G===void 0?1:G,X=oe.total,y=X===void 0?0:X,v=oe.pageSize,O=oe.defaultPageSize,pe=O===void 0?10:O,He=oe.onChange,tt=He===void 0?H:He,wt=oe.hideOnSinglePage,It=oe.align,Ft=oe.showPrevNextJumpers,Ht=Ft===void 0?!0:Ft,Ke=oe.showQuickJumper,en=oe.showLessItems,Tt=oe.showTitle,an=Tt===void 0?!0:Tt,qe=oe.onShowSizeChange,yt=qe===void 0?H:qe,Fe=oe.locale,Ae=Fe===void 0?E.Z:Fe,V=oe.style,je=oe.totalBoundaryShowSizeChanger,Qe=je===void 0?50:je,J=oe.disabled,M=oe.simple,Se=oe.showTotal,be=oe.showSizeChanger,W=be===void 0?y>Qe:be,fe=oe.sizeChangerRender,ye=oe.pageSizeOptions,et=oe.itemRender,Ve=et===void 0?F:et,$e=oe.jumpPrevIcon,Ye=oe.jumpNextIcon,lt=oe.prevIcon,de=oe.nextIcon,K=p.useRef(null),N=(0,te.Z)(10,{value:v,defaultValue:pe}),Le=(0,B.Z)(N,2),De=Le[0],Ce=Le[1],st=(0,te.Z)(1,{value:P,defaultValue:re,postState:function(yn){return Math.max(1,Math.min(yn,A(void 0,De,y)))}}),at=(0,B.Z)(st,2),Oe=at[0],Et=at[1],Vt=p.useState(Oe),St=(0,B.Z)(Vt,2),Bt=St[0],se=St[1];(0,p.useEffect)(function(){se(Oe)},[Oe]);var ve=tt!==H,Ee="current"in oe,k=Math.max(1,Oe-(en?3:5)),Y=Math.min(A(void 0,De,y),Oe+(en?3:5));function he(hn,yn){var Rn=hn||p.createElement("button",{type:"button","aria-label":yn,className:"".concat(me,"-item-link")});return typeof hn=="function"&&(Rn=p.createElement(hn,(0,ae.Z)({},oe))),Rn}function ce(hn){var yn=hn.target.value,Rn=A(void 0,De,y),Mn;return yn===""?Mn=yn:Number.isNaN(Number(yn))?Mn=Bt:yn>=Rn?Mn=Rn:Mn=Number(yn),Mn}function xe(hn){return D(hn)&&hn!==Oe&&D(y)&&y>0}var Be=y>De?Ke:!1;function Xe(hn){(hn.keyCode===o.Z.UP||hn.keyCode===o.Z.DOWN)&&hn.preventDefault()}function ct(hn){var yn=ce(hn);switch(yn!==Bt&&se(yn),hn.keyCode){case o.Z.ENTER:I(yn);break;case o.Z.UP:I(yn-1);break;case o.Z.DOWN:I(yn+1);break;default:break}}function nt(hn){I(ce(hn))}function Ue(hn){var yn=A(hn,De,y),Rn=Oe>yn&&yn!==0?yn:Oe;Ce(hn),se(Rn),yt==null||yt(Oe,hn),Et(Rn),tt==null||tt(Rn,hn)}function I(hn){if(xe(hn)&&!J){var yn=A(void 0,De,y),Rn=hn;return hn>yn?Rn=yn:hn<1&&(Rn=1),Rn!==Bt&&se(Rn),Et(Rn),tt==null||tt(Rn,De),Rn}return Oe}var Z=Oe>1,S=Oe<A(void 0,De,y);function ze(){Z&&I(Oe-1)}function ke(){S&&I(Oe+1)}function Pe(){I(k)}function Ge(){I(Y)}function We(hn,yn){if(hn.key==="Enter"||hn.charCode===o.Z.ENTER||hn.keyCode===o.Z.ENTER){for(var Rn=arguments.length,Mn=new Array(Rn>2?Rn-2:0),Bn=2;Bn<Rn;Bn++)Mn[Bn-2]=arguments[Bn];yn.apply(void 0,Mn)}}function dt(hn){We(hn,ze)}function Lt(hn){We(hn,ke)}function Pt(hn){We(hn,Pe)}function cn(hn){We(hn,Ge)}function Ne(hn){var yn=Ve(hn,"prev",he(lt,"prev page"));return p.isValidElement(yn)?p.cloneElement(yn,{disabled:!Z}):yn}function Re(hn){var yn=Ve(hn,"next",he(de,"next page"));return p.isValidElement(yn)?p.cloneElement(yn,{disabled:!S}):yn}function gt(hn){(hn.type==="click"||hn.keyCode===o.Z.ENTER)&&I(Bt)}var pt=null,Mt=(0,g.Z)(oe,{aria:!0,data:!0}),xt=Se&&p.createElement("li",{className:"".concat(me,"-total-text")},Se(y,[y===0?0:(Oe-1)*De+1,Oe*De>y?y:Oe*De])),At=null,Kt=A(void 0,De,y);if(wt&&y<=De)return null;var nn=[],Ot={rootPrefixCls:me,onClick:I,onKeyPress:We,showTitle:an,itemRender:Ve,page:-1},dn=Oe-1>0?Oe-1:0,Qt=Oe+1<Kt?Oe+1:Kt,$t=Ke&&Ke.goButton,Dt=(0,z.Z)(M)==="object"?M.readOnly:!M,Ze=$t,_t=null;M&&($t&&(typeof $t=="boolean"?Ze=p.createElement("button",{type:"button",onClick:gt,onKeyUp:gt},Ae.jump_to_confirm):Ze=p.createElement("span",{onClick:gt,onKeyUp:gt},$t),Ze=p.createElement("li",{title:an?"".concat(Ae.jump_to).concat(Oe,"/").concat(Kt):null,className:"".concat(me,"-simple-pager")},Ze)),_t=p.createElement("li",{title:an?"".concat(Oe,"/").concat(Kt):null,className:"".concat(me,"-simple-pager")},Dt?Bt:p.createElement("input",{type:"text","aria-label":Ae.jump_to,value:Bt,disabled:J,onKeyDown:Xe,onKeyUp:ct,onChange:ct,onBlur:nt,size:3}),p.createElement("span",{className:"".concat(me,"-slash")},"/"),Kt));var Ct=en?1:2;if(Kt<=3+Ct*2){Kt||nn.push(p.createElement(le,(0,ue.Z)({},Ot,{key:"noPager",page:1,className:"".concat(me,"-item-disabled")})));for(var kt=1;kt<=Kt;kt+=1)nn.push(p.createElement(le,(0,ue.Z)({},Ot,{key:kt,page:kt,active:Oe===kt})))}else{var qt=en?Ae.prev_3:Ae.prev_5,it=en?Ae.next_3:Ae.next_5,ln=Ve(k,"jump-prev",he($e,"prev page")),En=Ve(Y,"jump-next",he(Ye,"next page"));Ht&&(pt=ln?p.createElement("li",{title:an?qt:null,key:"prev",onClick:Pe,tabIndex:0,onKeyDown:Pt,className:_e()("".concat(me,"-jump-prev"),(0,h.Z)({},"".concat(me,"-jump-prev-custom-icon"),!!$e))},ln):null,At=En?p.createElement("li",{title:an?it:null,key:"next",onClick:Ge,tabIndex:0,onKeyDown:cn,className:_e()("".concat(me,"-jump-next"),(0,h.Z)({},"".concat(me,"-jump-next-custom-icon"),!!Ye))},En):null);var Tn=Math.max(1,Oe-Ct),wn=Math.min(Oe+Ct,Kt);Oe-1<=Ct&&(wn=1+Ct*2),Kt-Oe<=Ct&&(Tn=Kt-Ct*2);for(var Yn=Tn;Yn<=wn;Yn+=1)nn.push(p.createElement(le,(0,ue.Z)({},Ot,{key:Yn,page:Yn,active:Oe===Yn})));if(Oe-1>=Ct*2&&Oe!==3&&(nn[0]=p.cloneElement(nn[0],{className:_e()("".concat(me,"-item-after-jump-prev"),nn[0].props.className)}),nn.unshift(pt)),Kt-Oe>=Ct*2&&Oe!==Kt-2){var Cn=nn[nn.length-1];nn[nn.length-1]=p.cloneElement(Cn,{className:_e()("".concat(me,"-item-before-jump-next"),Cn.props.className)}),nn.push(At)}Tn!==1&&nn.unshift(p.createElement(le,(0,ue.Z)({},Ot,{key:1,page:1}))),wn!==Kt&&nn.push(p.createElement(le,(0,ue.Z)({},Ot,{key:Kt,page:Kt})))}var Zn=Ne(dn);if(Zn){var Nn=!Z||!Kt;Zn=p.createElement("li",{title:an?Ae.prev_page:null,onClick:ze,tabIndex:Nn?null:0,onKeyDown:dt,className:_e()("".concat(me,"-prev"),(0,h.Z)({},"".concat(me,"-disabled"),Nn)),"aria-disabled":Nn},Zn)}var Pn=Re(Qt);if(Pn){var Dn,vn;M?(Dn=!S,vn=Z?0:null):(Dn=!S||!Kt,vn=Dn?null:0),Pn=p.createElement("li",{title:an?Ae.next_page:null,onClick:ke,tabIndex:vn,onKeyDown:Lt,className:_e()("".concat(me,"-next"),(0,h.Z)({},"".concat(me,"-disabled"),Dn)),"aria-disabled":Dn},Pn)}var Ln=_e()(me,C,(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(me,"-start"),It==="start"),"".concat(me,"-center"),It==="center"),"".concat(me,"-end"),It==="end"),"".concat(me,"-simple"),M),"".concat(me,"-disabled"),J));return p.createElement("ul",(0,ue.Z)({className:Ln,style:V,ref:K},Mt),xt,Zn,M?_t:nn,Pn,p.createElement(j,{locale:Ae,rootPrefixCls:me,disabled:J,selectPrefixCls:U,changeSize:Ue,pageSize:De,pageSizeOptions:ye,quickGo:Be?I:null,goButton:Ze,showSizeChanger:W,sizeChangerRender:fe}))},ne=Q},25930:function(In,Gt,_){"use strict";_.d(Gt,{Cd:function(){return me}});var h=_(32855),ue=_(27247),z=_(43079),ae=_(59301),B=_(92310),d=_.n(B),_e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var C=(0,ae.useRef)([]),P=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var G=Date.now(),re=!1;C.current.forEach(function(X){if(X){re=!0;var y=X.style;y.transitionDuration=".3s, .3s, .3s, .06s",P.current&&G-P.current<100&&(y.transitionDuration="0s, 0s")}}),re&&(P.current=Date.now())}),C.current},o=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],g=function(C){var P=(0,ue.Z)((0,ue.Z)({},_e),C),G=P.className,re=P.percent,X=P.prefixCls,y=P.strokeColor,v=P.strokeLinecap,O=P.strokeWidth,pe=P.style,He=P.trailColor,tt=P.trailWidth,wt=P.transition,It=(0,z.Z)(P,o);delete It.gapPosition;var Ft=Array.isArray(re)?re:[re],Ht=Array.isArray(y)?y:[y],Ke=te(),en=O/2,Tt=100-O/2,an="M ".concat(v==="round"?en:0,",").concat(en,`
L `).concat(v==="round"?Tt:100,",").concat(en),qe="0 0 100 ".concat(O),yt=0;return ae.createElement("svg",(0,h.Z)({className:d()("".concat(X,"-line"),G),viewBox:qe,preserveAspectRatio:"none",style:pe},It),ae.createElement("path",{className:"".concat(X,"-line-trail"),d:an,strokeLinecap:v,stroke:He,strokeWidth:tt||O,fillOpacity:"0"}),Ft.map(function(Fe,Ae){var V=1;switch(v){case"round":V=1-O/100;break;case"square":V=1-O/2/100;break;default:V=1;break}var je={strokeDasharray:"".concat(Fe*V,"px, 100px"),strokeDashoffset:"-".concat(yt,"px"),transition:wt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qe=Ht[Ae]||Ht[Ht.length-1];return yt+=Fe,ae.createElement("path",{key:Ae,className:"".concat(X,"-line-path"),d:an,strokeLinecap:v,stroke:Qe,strokeWidth:O,fillOpacity:"0",ref:function(M){Ke[Ae]=M},style:je})}))},w=g,p=_(34666),E=_(11913),x=_(47273),L=0,j=(0,x.Z)();function $(){var U;return j?(U=L,L+=1):U="TEST_OR_SSR",U}var le=function(U){var C=ae.useState(),P=(0,E.Z)(C,2),G=P[0],re=P[1];return ae.useEffect(function(){re("rc_progress_".concat($()))},[]),U||G},F=function(C){var P=C.bg,G=C.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:P}},G)};function H(U,C){return Object.keys(U).map(function(P){var G=parseFloat(P),re="".concat(Math.floor(G*C),"%");return"".concat(U[P]," ").concat(re)})}var D=ae.forwardRef(function(U,C){var P=U.prefixCls,G=U.color,re=U.gradientId,X=U.radius,y=U.style,v=U.ptg,O=U.strokeLinecap,pe=U.strokeWidth,He=U.size,tt=U.gapDegree,wt=G&&(0,p.Z)(G)==="object",It=wt?"#FFF":void 0,Ft=He/2,Ht=ae.createElement("circle",{className:"".concat(P,"-circle-path"),r:X,cx:Ft,cy:Ft,stroke:It,strokeLinecap:O,strokeWidth:pe,opacity:v===0?0:1,style:y,ref:C});if(!wt)return Ht;var Ke="".concat(re,"-conic"),en=tt?"".concat(180+tt/2,"deg"):"0deg",Tt=H(G,(360-tt)/360),an=H(G,1),qe="conic-gradient(from ".concat(en,", ").concat(Tt.join(", "),")"),yt="linear-gradient(to ".concat(tt?"bottom":"top",", ").concat(an.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ke},Ht),ae.createElement("foreignObject",{x:0,y:0,width:He,height:He,mask:"url(#".concat(Ke,")")},ae.createElement(F,{bg:yt},ae.createElement(F,{bg:qe}))))}),A=D,Q=100,ne=function(C,P,G,re,X,y,v,O,pe,He){var tt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,wt=G/100*360*((360-y)/360),It=y===0?0:{bottom:0,top:180,left:90,right:-90}[v],Ft=(100-re)/100*P;pe==="round"&&re!==100&&(Ft+=He/2,Ft>=P&&(Ft=P-.01));var Ht=Q/2;return{stroke:typeof O=="string"?O:void 0,strokeDasharray:"".concat(P,"px ").concat(C),strokeDashoffset:Ft+tt,transform:"rotate(".concat(X+wt+It,"deg)"),transformOrigin:"".concat(Ht,"px ").concat(Ht,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ee=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function oe(U){var C=U!=null?U:[];return Array.isArray(C)?C:[C]}var ge=function(C){var P=(0,ue.Z)((0,ue.Z)({},_e),C),G=P.id,re=P.prefixCls,X=P.steps,y=P.strokeWidth,v=P.trailWidth,O=P.gapDegree,pe=O===void 0?0:O,He=P.gapPosition,tt=P.trailColor,wt=P.strokeLinecap,It=P.style,Ft=P.className,Ht=P.strokeColor,Ke=P.percent,en=(0,z.Z)(P,ee),Tt=Q/2,an=le(G),qe="".concat(an,"-gradient"),yt=Tt-y/2,Fe=Math.PI*2*yt,Ae=pe>0?90+pe/2:-90,V=Fe*((360-pe)/360),je=(0,p.Z)(X)==="object"?X:{count:X,gap:2},Qe=je.count,J=je.gap,M=oe(Ke),Se=oe(Ht),be=Se.find(function(Ye){return Ye&&(0,p.Z)(Ye)==="object"}),W=be&&(0,p.Z)(be)==="object",fe=W?"butt":wt,ye=ne(Fe,V,0,100,Ae,pe,He,tt,fe,y),et=te(),Ve=function(){var lt=0;return M.map(function(de,K){var N=Se[K]||Se[Se.length-1],Le=ne(Fe,V,lt,de,Ae,pe,He,N,fe,y);return lt+=de,ae.createElement(A,{key:K,color:N,ptg:de,radius:yt,prefixCls:re,gradientId:qe,style:Le,strokeLinecap:fe,strokeWidth:y,gapDegree:pe,ref:function(Ce){et[K]=Ce},size:Q})}).reverse()},$e=function(){var lt=Math.round(Qe*(M[0]/100)),de=100/Qe,K=0;return new Array(Qe).fill(null).map(function(N,Le){var De=Le<=lt-1?Se[0]:tt,Ce=De&&(0,p.Z)(De)==="object"?"url(#".concat(qe,")"):void 0,st=ne(Fe,V,K,de,Ae,pe,He,De,"butt",y,J);return K+=(V-st.strokeDashoffset+J)*100/V,ae.createElement("circle",{key:Le,className:"".concat(re,"-circle-path"),r:yt,cx:Tt,cy:Tt,stroke:Ce,strokeWidth:y,opacity:1,style:st,ref:function(Oe){et[Le]=Oe}})})};return ae.createElement("svg",(0,h.Z)({className:d()("".concat(re,"-circle"),Ft),viewBox:"0 0 ".concat(Q," ").concat(Q),style:It,id:G,role:"presentation"},en),!Qe&&ae.createElement("circle",{className:"".concat(re,"-circle-trail"),r:yt,cx:Tt,cy:Tt,stroke:tt,strokeLinecap:fe,strokeWidth:v||y,style:ye}),Qe?$e():Ve())},me=ge,ot={Line:w,Circle:me}},738:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return H}});var h=_(32855),ue=_(74430),z=_(11913),ae=_(43079),B=_(92310),d=_.n(B),_e=_(18929),te=_(10228),o=_(26112),g=_(59301);function w(D,A){var Q=D.disabled,ne=D.prefixCls,ee=D.character,oe=D.characterRender,ge=D.index,me=D.count,ot=D.value,U=D.allowHalf,C=D.focused,P=D.onHover,G=D.onClick,re=function(wt){P(wt,ge)},X=function(wt){G(wt,ge)},y=function(wt){wt.keyCode===te.Z.ENTER&&G(wt,ge)},v=ge+1,O=new Set([ne]);ot===0&&ge===0&&C?O.add("".concat(ne,"-focused")):U&&ot+.5>=v&&ot<v?(O.add("".concat(ne,"-half")),O.add("".concat(ne,"-active")),C&&O.add("".concat(ne,"-focused"))):(v<=ot?O.add("".concat(ne,"-full")):O.add("".concat(ne,"-zero")),v===ot&&C&&O.add("".concat(ne,"-focused")));var pe=typeof ee=="function"?ee(D):ee,He=g.createElement("li",{className:d()(Array.from(O)),ref:A},g.createElement("div",{onClick:Q?null:X,onKeyDown:Q?null:y,onMouseMove:Q?null:re,role:"radio","aria-checked":ot>ge?"true":"false","aria-posinset":ge+1,"aria-setsize":me,tabIndex:Q?-1:0},g.createElement("div",{className:"".concat(ne,"-first")},pe),g.createElement("div",{className:"".concat(ne,"-second")},pe)));return oe&&(He=oe(He,D)),He}var p=g.forwardRef(w);function E(){var D=g.useRef({});function A(ne){return D.current[ne]}function Q(ne){return function(ee){D.current[ne]=ee}}return[A,Q]}function x(D){var A=D.pageXOffset,Q="scrollLeft";if(typeof A!="number"){var ne=D.document;A=ne.documentElement[Q],typeof A!="number"&&(A=ne.body[Q])}return A}function L(D){var A,Q,ne=D.ownerDocument,ee=ne.body,oe=ne&&ne.documentElement,ge=D.getBoundingClientRect();return A=ge.left,Q=ge.top,A-=oe.clientLeft||ee.clientLeft||0,Q-=oe.clientTop||ee.clientTop||0,{left:A,top:Q}}function j(D){var A=L(D),Q=D.ownerDocument,ne=Q.defaultView||Q.parentWindow;return A.left+=x(ne),A.left}var $=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function le(D,A){var Q=D.prefixCls,ne=Q===void 0?"rc-rate":Q,ee=D.className,oe=D.defaultValue,ge=D.value,me=D.count,ot=me===void 0?5:me,U=D.allowHalf,C=U===void 0?!1:U,P=D.allowClear,G=P===void 0?!0:P,re=D.keyboard,X=re===void 0?!0:re,y=D.character,v=y===void 0?"\u2605":y,O=D.characterRender,pe=D.disabled,He=D.direction,tt=He===void 0?"ltr":He,wt=D.tabIndex,It=wt===void 0?0:wt,Ft=D.autoFocus,Ht=D.onHoverChange,Ke=D.onChange,en=D.onFocus,Tt=D.onBlur,an=D.onKeyDown,qe=D.onMouseLeave,yt=(0,ae.Z)(D,$),Fe=E(),Ae=(0,z.Z)(Fe,2),V=Ae[0],je=Ae[1],Qe=g.useRef(null),J=function(){if(!pe){var k;(k=Qe.current)===null||k===void 0||k.focus()}};g.useImperativeHandle(A,function(){return{focus:J,blur:function(){if(!pe){var k;(k=Qe.current)===null||k===void 0||k.blur()}}}});var M=(0,_e.Z)(oe||0,{value:ge}),Se=(0,z.Z)(M,2),be=Se[0],W=Se[1],fe=(0,_e.Z)(null),ye=(0,z.Z)(fe,2),et=ye[0],Ve=ye[1],$e=function(k,Y){var he=tt==="rtl",ce=k+1;if(C){var xe=V(k),Be=j(xe),Xe=xe.clientWidth;(he&&Y-Be>Xe/2||!he&&Y-Be<Xe/2)&&(ce-=.5)}return ce},Ye=function(k){W(k),Ke==null||Ke(k)},lt=g.useState(!1),de=(0,z.Z)(lt,2),K=de[0],N=de[1],Le=function(){N(!0),en==null||en()},De=function(){N(!1),Tt==null||Tt()},Ce=g.useState(null),st=(0,z.Z)(Ce,2),at=st[0],Oe=st[1],Et=function(k,Y){var he=$e(Y,k.pageX);he!==et&&(Oe(he),Ve(null)),Ht==null||Ht(he)},Vt=function(k){pe||(Oe(null),Ve(null),Ht==null||Ht(void 0)),k&&(qe==null||qe(k))},St=function(k,Y){var he=$e(Y,k.pageX),ce=!1;G&&(ce=he===be),Vt(),Ye(ce?0:he),Ve(ce?he:null)},Bt=function(k){var Y=k.keyCode,he=tt==="rtl",ce=C?.5:1;X&&(Y===te.Z.RIGHT&&be<ot&&!he?(Ye(be+ce),k.preventDefault()):Y===te.Z.LEFT&&be>0&&!he||Y===te.Z.RIGHT&&be>0&&he?(Ye(be-ce),k.preventDefault()):Y===te.Z.LEFT&&be<ot&&he&&(Ye(be+ce),k.preventDefault())),an==null||an(k)};g.useEffect(function(){Ft&&!pe&&J()},[]);var se=new Array(ot).fill(0).map(function(Ee,k){return g.createElement(p,{ref:je(k),index:k,count:ot,disabled:pe,prefixCls:"".concat(ne,"-star"),allowHalf:C,value:at===null?be:at,onClick:St,onHover:Et,key:Ee||k,character:v,characterRender:O,focused:K})}),ve=d()(ne,ee,(0,ue.Z)((0,ue.Z)({},"".concat(ne,"-disabled"),pe),"".concat(ne,"-rtl"),tt==="rtl"));return g.createElement("ul",(0,h.Z)({className:ve,onMouseLeave:Vt,tabIndex:pe?-1:It,onFocus:pe?null:Le,onBlur:pe?null:De,onKeyDown:pe?null:Bt,ref:Qe},(0,o.Z)(yt,{aria:!0,data:!0,attr:!0})),se)}var F=g.forwardRef(le),H=F},29301:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return U}});var h=_(32855),ue=_(59301),z=_(11592),ae=_(48736),B=_(27247),d=_(34666),_e=_(76846),te=_(8654),o=ue.createContext(null);function g(C){var P=C.children,G=C.onBatchResize,re=ue.useRef(0),X=ue.useRef([]),y=ue.useContext(o),v=ue.useCallback(function(O,pe,He){re.current+=1;var tt=re.current;X.current.push({size:O,element:pe,data:He}),Promise.resolve().then(function(){tt===re.current&&(G==null||G(X.current),X.current=[])}),y==null||y(O,pe,He)},[G,y]);return ue.createElement(o.Provider,{value:v},P)}var w=_(76374),p=new Map;function E(C){C.forEach(function(P){var G,re=P.target;(G=p.get(re))===null||G===void 0||G.forEach(function(X){return X(re)})})}var x=new w.Z(E),L=null,j=null;function $(C,P){p.has(C)||(p.set(C,new Set),x.observe(C)),p.get(C).add(P)}function le(C,P){p.has(C)&&(p.get(C).delete(P),p.get(C).size||(x.unobserve(C),p.delete(C)))}var F=_(33377),H=_(93912),D=_(18881),A=_(85461),Q=function(C){(0,D.Z)(G,C);var P=(0,A.Z)(G);function G(){return(0,F.Z)(this,G),P.apply(this,arguments)}return(0,H.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(ue.Component);function ne(C,P){var G=C.children,re=C.disabled,X=ue.useRef(null),y=ue.useRef(null),v=ue.useContext(o),O=typeof G=="function",pe=O?G(X):G,He=ue.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),tt=!O&&ue.isValidElement(pe)&&(0,te.Yr)(pe),wt=tt?(0,te.C4)(pe):null,It=(0,te.x1)(wt,X),Ft=function(){var Tt;return(0,_e.ZP)(X.current)||(X.current&&(0,d.Z)(X.current)==="object"?(0,_e.ZP)((Tt=X.current)===null||Tt===void 0?void 0:Tt.nativeElement):null)||(0,_e.ZP)(y.current)};ue.useImperativeHandle(P,function(){return Ft()});var Ht=ue.useRef(C);Ht.current=C;var Ke=ue.useCallback(function(en){var Tt=Ht.current,an=Tt.onResize,qe=Tt.data,yt=en.getBoundingClientRect(),Fe=yt.width,Ae=yt.height,V=en.offsetWidth,je=en.offsetHeight,Qe=Math.floor(Fe),J=Math.floor(Ae);if(He.current.width!==Qe||He.current.height!==J||He.current.offsetWidth!==V||He.current.offsetHeight!==je){var M={width:Qe,height:J,offsetWidth:V,offsetHeight:je};He.current=M;var Se=V===Math.round(Fe)?Fe:V,be=je===Math.round(Ae)?Ae:je,W=(0,B.Z)((0,B.Z)({},M),{},{offsetWidth:Se,offsetHeight:be});v==null||v(W,en,qe),an&&Promise.resolve().then(function(){an(W,en)})}},[]);return ue.useEffect(function(){var en=Ft();return en&&!re&&$(en,Ke),function(){return le(en,Ke)}},[X.current,re]),ue.createElement(Q,{ref:y},tt?ue.cloneElement(pe,{ref:It}):pe)}var ee=ue.forwardRef(ne),oe=ee,ge="rc-observer-key";function me(C,P){var G=C.children,re=typeof G=="function"?[G]:(0,z.Z)(G);return re.map(function(X,y){var v=(X==null?void 0:X.key)||"".concat(ge,"-").concat(y);return ue.createElement(oe,(0,h.Z)({},C,{key:v,ref:y===0?P:void 0}),X)})}var ot=ue.forwardRef(me);ot.Collection=g;var U=ot},6551:function(In,Gt,_){"use strict";_.d(Gt,{ZP:function(){return _e}});var h=_(11913),ue=_(59301),z=_(47273),ae=0,B=(0,z.Z)();function d(){var te;return B?(te=ae,ae+=1):te="TEST_OR_SSR",te}function _e(te){var o=ue.useState(),g=(0,h.Z)(o,2),w=g[0],p=g[1];return ue.useEffect(function(){p("rc_select_".concat(d()))},[]),te||w}},37463:function(In,Gt,_){"use strict";_.d(Gt,{Ac:function(){return N},Xo:function(){return De},Wx:function(){return st},ZP:function(){return cn},lk:function(){return H}});var h=_(32855),ue=_(3300),z=_(74430),ae=_(27247),B=_(11913),d=_(43079),_e=_(34666),te=_(18929),o=_(48736),g=_(59301),w=_(92310),p=_.n(w),E=_(34280),x=_(49658),L=_(8654),j=function(Re){var gt=Re.className,pt=Re.customizeIcon,Mt=Re.customizeIconProps,xt=Re.children,At=Re.onMouseDown,Kt=Re.onClick,nn=typeof pt=="function"?pt(Mt):pt;return g.createElement("span",{className:gt,onMouseDown:function(dn){dn.preventDefault(),At==null||At(dn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Kt,"aria-hidden":!0},nn!==void 0?nn:g.createElement("span",{className:p()(gt.split(/\s+/).map(function(Ot){return"".concat(Ot,"-icon")}))},xt))},$=j,le=function(Re,gt,pt,Mt,xt){var At=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Kt=arguments.length>6?arguments[6]:void 0,nn=arguments.length>7?arguments[7]:void 0,Ot=g.useMemo(function(){if((0,_e.Z)(Mt)==="object")return Mt.clearIcon;if(xt)return xt},[Mt,xt]),dn=g.useMemo(function(){return!!(!At&&Mt&&(pt.length||Kt)&&!(nn==="combobox"&&Kt===""))},[Mt,At,pt.length,Kt,nn]);return{allowClear:dn,clearIcon:g.createElement($,{className:"".concat(Re,"-clear"),onMouseDown:gt,customizeIcon:Ot},"\xD7")}},F=g.createContext(null);function H(){return g.useContext(F)}function D(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Re=g.useState(!1),gt=(0,B.Z)(Re,2),pt=gt[0],Mt=gt[1],xt=g.useRef(null),At=function(){window.clearTimeout(xt.current)};g.useEffect(function(){return At},[]);var Kt=function(Ot,dn){At(),xt.current=window.setTimeout(function(){Mt(Ot),dn&&dn()},Ne)};return[pt,Kt,At]}function A(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Re=g.useRef(null),gt=g.useRef(null);g.useEffect(function(){return function(){window.clearTimeout(gt.current)}},[]);function pt(Mt){(Mt||Re.current===null)&&(Re.current=Mt),window.clearTimeout(gt.current),gt.current=window.setTimeout(function(){Re.current=null},Ne)}return[function(){return Re.current},pt]}function Q(Ne,Re,gt,pt){var Mt=g.useRef(null);Mt.current={open:Re,triggerOpen:gt,customizedTrigger:pt},g.useEffect(function(){function xt(At){var Kt;if(!((Kt=Mt.current)!==null&&Kt!==void 0&&Kt.customizedTrigger)){var nn=At.target;nn.shadowRoot&&At.composed&&(nn=At.composedPath()[0]||nn),Mt.current.open&&Ne().filter(function(Ot){return Ot}).every(function(Ot){return!Ot.contains(nn)&&Ot!==nn})&&Mt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",xt),function(){return window.removeEventListener("mousedown",xt)}},[])}var ne=_(10228);function ee(Ne){return Ne&&![ne.Z.ESC,ne.Z.SHIFT,ne.Z.BACKSPACE,ne.Z.TAB,ne.Z.WIN_KEY,ne.Z.ALT,ne.Z.META,ne.Z.WIN_KEY_RIGHT,ne.Z.CTRL,ne.Z.SEMICOLON,ne.Z.EQUALS,ne.Z.CAPS_LOCK,ne.Z.CONTEXT_MENU,ne.Z.F1,ne.Z.F2,ne.Z.F3,ne.Z.F4,ne.Z.F5,ne.Z.F6,ne.Z.F7,ne.Z.F8,ne.Z.F9,ne.Z.F10,ne.Z.F11,ne.Z.F12].includes(Ne)}var oe=_(26112),ge=_(11780);function me(Ne,Re,gt){var pt=(0,ae.Z)((0,ae.Z)({},Ne),gt?Re:{});return Object.keys(Re).forEach(function(Mt){var xt=Re[Mt];typeof xt=="function"&&(pt[Mt]=function(){for(var At,Kt=arguments.length,nn=new Array(Kt),Ot=0;Ot<Kt;Ot++)nn[Ot]=arguments[Ot];return xt.apply(void 0,nn),(At=Ne[Mt])===null||At===void 0?void 0:At.call.apply(At,[Ne].concat(nn))})}),pt}var ot=me,U=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],C=function(Re,gt){var pt=Re.prefixCls,Mt=Re.id,xt=Re.inputElement,At=Re.autoFocus,Kt=Re.autoComplete,nn=Re.editable,Ot=Re.activeDescendantId,dn=Re.value,Qt=Re.open,$t=Re.attrs,Dt=(0,d.Z)(Re,U),Ze=xt||g.createElement("input",null),_t=Ze,Ct=_t.ref,kt=_t.props;return(0,o.Kp)(!("maxLength"in Ze.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ze=g.cloneElement(Ze,(0,ae.Z)((0,ae.Z)((0,ae.Z)({type:"search"},ot(Dt,kt,!0)),{},{id:Mt,ref:(0,L.sQ)(gt,Ct),autoComplete:Kt||"off",autoFocus:At,className:p()("".concat(pt,"-selection-search-input"),kt==null?void 0:kt.className),role:"combobox","aria-expanded":Qt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Mt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mt,"_list"),"aria-activedescendant":Qt?Ot:void 0},$t),{},{value:nn?dn:"",readOnly:!nn,unselectable:nn?null:"on",style:(0,ae.Z)((0,ae.Z)({},kt.style),{},{opacity:nn?null:0})})),Ze},P=g.forwardRef(C),G=P;function re(Ne){return Array.isArray(Ne)?Ne:Ne!==void 0?[Ne]:[]}var X=typeof window!="undefined"&&window.document&&window.document.documentElement,y=X;function v(Ne){return Ne!=null}function O(Ne){return!Ne&&Ne!==0}function pe(Ne){return["string","number"].includes((0,_e.Z)(Ne))}function He(Ne){var Re=void 0;return Ne&&(pe(Ne.title)?Re=Ne.title.toString():pe(Ne.label)&&(Re=Ne.label.toString())),Re}function tt(Ne,Re){y?g.useLayoutEffect(Ne,Re):g.useEffect(Ne,Re)}function wt(Ne){var Re;return(Re=Ne.key)!==null&&Re!==void 0?Re:Ne.value}var It=function(Re){Re.preventDefault(),Re.stopPropagation()},Ft=function(Re){var gt=Re.id,pt=Re.prefixCls,Mt=Re.values,xt=Re.open,At=Re.searchValue,Kt=Re.autoClearSearchValue,nn=Re.inputRef,Ot=Re.placeholder,dn=Re.disabled,Qt=Re.mode,$t=Re.showSearch,Dt=Re.autoFocus,Ze=Re.autoComplete,_t=Re.activeDescendantId,Ct=Re.tabIndex,kt=Re.removeIcon,qt=Re.maxTagCount,it=Re.maxTagTextLength,ln=Re.maxTagPlaceholder,En=ln===void 0?function(Nt){return"+ ".concat(Nt.length," ...")}:ln,Tn=Re.tagRender,wn=Re.onToggleOpen,Yn=Re.onRemove,Cn=Re.onInputChange,Zn=Re.onInputPaste,Nn=Re.onInputKeyDown,Pn=Re.onInputMouseDown,Dn=Re.onInputCompositionStart,vn=Re.onInputCompositionEnd,Ln=Re.onInputBlur,hn=g.useRef(null),yn=(0,g.useState)(0),Rn=(0,B.Z)(yn,2),Mn=Rn[0],Bn=Rn[1],zn=(0,g.useState)(!1),pr=(0,B.Z)(zn,2),Me=pr[0],Te=pr[1],Ie="".concat(pt,"-selection"),ut=xt||Qt==="multiple"&&Kt===!1||Qt==="tags"?At:"",mt=Qt==="tags"||Qt==="multiple"&&Kt===!1||$t&&(xt||Me);tt(function(){Bn(hn.current.scrollWidth)},[ut]);var ft=function(Zt,rn,gn,Fn,pn){return g.createElement("span",{title:He(Zt),className:p()("".concat(Ie,"-item"),(0,z.Z)({},"".concat(Ie,"-item-disabled"),gn))},g.createElement("span",{className:"".concat(Ie,"-item-content")},rn),Fn&&g.createElement($,{className:"".concat(Ie,"-item-remove"),onMouseDown:It,onClick:pn,customizeIcon:kt},"\xD7"))},zt=function(Zt,rn,gn,Fn,pn,xn){var On=function(Gn){It(Gn),wn(!xt)};return g.createElement("span",{onMouseDown:On},Tn({label:rn,value:Zt,disabled:gn,closable:Fn,onClose:pn,isMaxTag:!!xn}))},Wt=function(Zt){var rn=Zt.disabled,gn=Zt.label,Fn=Zt.value,pn=!dn&&!rn,xn=gn;if(typeof it=="number"&&(typeof gn=="string"||typeof gn=="number")){var On=String(xn);On.length>it&&(xn="".concat(On.slice(0,it),"..."))}var kn=function(Sn){Sn&&Sn.stopPropagation(),Yn(Zt)};return typeof Tn=="function"?zt(Fn,xn,rn,pn,kn):ft(Zt,xn,rn,pn,kn)},Rt=function(Zt){if(!Mt.length)return null;var rn=typeof En=="function"?En(Zt):En;return typeof Tn=="function"?zt(void 0,rn,!1,!1,void 0,!0):ft({title:rn},rn,!1)},vt=g.createElement("div",{className:"".concat(Ie,"-search"),style:{width:Mn},onFocus:function(){Te(!0)},onBlur:function(){Te(!1)}},g.createElement(G,{ref:nn,open:xt,prefixCls:pt,id:gt,inputElement:null,disabled:dn,autoFocus:Dt,autoComplete:Ze,editable:mt,activeDescendantId:_t,value:ut,onKeyDown:Nn,onMouseDown:Pn,onChange:Cn,onPaste:Zn,onCompositionStart:Dn,onCompositionEnd:vn,onBlur:Ln,tabIndex:Ct,attrs:(0,oe.Z)(Re,!0)}),g.createElement("span",{ref:hn,className:"".concat(Ie,"-search-mirror"),"aria-hidden":!0},ut,"\xA0")),bt=g.createElement(ge.Z,{prefixCls:"".concat(Ie,"-overflow"),data:Mt,renderItem:Wt,renderRest:Rt,suffix:vt,itemKey:wt,maxCount:qt});return g.createElement("span",{className:"".concat(Ie,"-wrap")},bt,!Mt.length&&!ut&&g.createElement("span",{className:"".concat(Ie,"-placeholder")},Ot))},Ht=Ft,Ke=function(Re){var gt=Re.inputElement,pt=Re.prefixCls,Mt=Re.id,xt=Re.inputRef,At=Re.disabled,Kt=Re.autoFocus,nn=Re.autoComplete,Ot=Re.activeDescendantId,dn=Re.mode,Qt=Re.open,$t=Re.values,Dt=Re.placeholder,Ze=Re.tabIndex,_t=Re.showSearch,Ct=Re.searchValue,kt=Re.activeValue,qt=Re.maxLength,it=Re.onInputKeyDown,ln=Re.onInputMouseDown,En=Re.onInputChange,Tn=Re.onInputPaste,wn=Re.onInputCompositionStart,Yn=Re.onInputCompositionEnd,Cn=Re.onInputBlur,Zn=Re.title,Nn=g.useState(!1),Pn=(0,B.Z)(Nn,2),Dn=Pn[0],vn=Pn[1],Ln=dn==="combobox",hn=Ln||_t,yn=$t[0],Rn=Ct||"";Ln&&kt&&!Dn&&(Rn=kt),g.useEffect(function(){Ln&&vn(!1)},[Ln,kt]);var Mn=dn!=="combobox"&&!Qt&&!_t?!1:!!Rn,Bn=Zn===void 0?He(yn):Zn,zn=g.useMemo(function(){return yn?null:g.createElement("span",{className:"".concat(pt,"-selection-placeholder"),style:Mn?{visibility:"hidden"}:void 0},Dt)},[yn,Mn,Dt,pt]);return g.createElement("span",{className:"".concat(pt,"-selection-wrap")},g.createElement("span",{className:"".concat(pt,"-selection-search")},g.createElement(G,{ref:xt,prefixCls:pt,id:Mt,open:Qt,inputElement:gt,disabled:At,autoFocus:Kt,autoComplete:nn,editable:hn,activeDescendantId:Ot,value:Rn,onKeyDown:it,onMouseDown:ln,onChange:function(Me){vn(!0),En(Me)},onPaste:Tn,onCompositionStart:wn,onCompositionEnd:Yn,onBlur:Cn,tabIndex:Ze,attrs:(0,oe.Z)(Re,!0),maxLength:Ln?qt:void 0})),!Ln&&yn?g.createElement("span",{className:"".concat(pt,"-selection-item"),title:Bn,style:Mn?{visibility:"hidden"}:void 0},yn.label):null,zn)},en=Ke,Tt=function(Re,gt){var pt=(0,g.useRef)(null),Mt=(0,g.useRef)(!1),xt=Re.prefixCls,At=Re.open,Kt=Re.mode,nn=Re.showSearch,Ot=Re.tokenWithEnter,dn=Re.disabled,Qt=Re.prefix,$t=Re.autoClearSearchValue,Dt=Re.onSearch,Ze=Re.onSearchSubmit,_t=Re.onToggleOpen,Ct=Re.onInputKeyDown,kt=Re.onInputBlur,qt=Re.domRef;g.useImperativeHandle(gt,function(){return{focus:function(Bn){pt.current.focus(Bn)},blur:function(){pt.current.blur()}}});var it=A(0),ln=(0,B.Z)(it,2),En=ln[0],Tn=ln[1],wn=function(Bn){var zn=Bn.which,pr=pt.current instanceof HTMLTextAreaElement;!pr&&At&&(zn===ne.Z.UP||zn===ne.Z.DOWN)&&Bn.preventDefault(),Ct&&Ct(Bn),zn===ne.Z.ENTER&&Kt==="tags"&&!Mt.current&&!At&&(Ze==null||Ze(Bn.target.value)),!(pr&&!At&&~[ne.Z.UP,ne.Z.DOWN,ne.Z.LEFT,ne.Z.RIGHT].indexOf(zn))&&ee(zn)&&_t(!0)},Yn=function(){Tn(!0)},Cn=(0,g.useRef)(null),Zn=function(Bn){Dt(Bn,!0,Mt.current)!==!1&&_t(!0)},Nn=function(){Mt.current=!0},Pn=function(Bn){Mt.current=!1,Kt!=="combobox"&&Zn(Bn.target.value)},Dn=function(Bn){var zn=Bn.target.value;if(Ot&&Cn.current&&/[\r\n]/.test(Cn.current)){var pr=Cn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");zn=zn.replace(pr,Cn.current)}Cn.current=null,Zn(zn)},vn=function(Bn){var zn=Bn.clipboardData,pr=zn==null?void 0:zn.getData("text");Cn.current=pr||""},Ln=function(Bn){var zn=Bn.target;if(zn!==pt.current){var pr=document.body.style.msTouchAction!==void 0;pr?setTimeout(function(){pt.current.focus()}):pt.current.focus()}},hn=function(Bn){var zn=En();Bn.target!==pt.current&&!zn&&!(Kt==="combobox"&&dn)&&Bn.preventDefault(),(Kt!=="combobox"&&(!nn||!zn)||!At)&&(At&&$t!==!1&&Dt("",!0,!1),_t())},yn={inputRef:pt,onInputKeyDown:wn,onInputMouseDown:Yn,onInputChange:Dn,onInputPaste:vn,onInputCompositionStart:Nn,onInputCompositionEnd:Pn,onInputBlur:kt},Rn=Kt==="multiple"||Kt==="tags"?g.createElement(Ht,(0,h.Z)({},Re,yn)):g.createElement(en,(0,h.Z)({},Re,yn));return g.createElement("div",{ref:qt,className:"".concat(xt,"-selector"),onClick:Ln,onMouseDown:hn},Qt&&g.createElement("div",{className:"".concat(xt,"-prefix")},Qt),Rn)},an=g.forwardRef(Tt),qe=an,yt=_(65030),Fe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ae=function(Re){var gt=Re===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:gt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:gt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:gt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:gt,adjustY:1},htmlRegion:"scroll"}}},V=function(Re,gt){var pt=Re.prefixCls,Mt=Re.disabled,xt=Re.visible,At=Re.children,Kt=Re.popupElement,nn=Re.animation,Ot=Re.transitionName,dn=Re.dropdownStyle,Qt=Re.dropdownClassName,$t=Re.direction,Dt=$t===void 0?"ltr":$t,Ze=Re.placement,_t=Re.builtinPlacements,Ct=Re.dropdownMatchSelectWidth,kt=Re.dropdownRender,qt=Re.dropdownAlign,it=Re.getPopupContainer,ln=Re.empty,En=Re.getTriggerDOMNode,Tn=Re.onPopupVisibleChange,wn=Re.onPopupMouseEnter,Yn=(0,d.Z)(Re,Fe),Cn="".concat(pt,"-dropdown"),Zn=Kt;kt&&(Zn=kt(Kt));var Nn=g.useMemo(function(){return _t||Ae(Ct)},[_t,Ct]),Pn=nn?"".concat(Cn,"-").concat(nn):Ot,Dn=typeof Ct=="number",vn=g.useMemo(function(){return Dn?null:Ct===!1?"minWidth":"width"},[Ct,Dn]),Ln=dn;Dn&&(Ln=(0,ae.Z)((0,ae.Z)({},Ln),{},{width:Ct}));var hn=g.useRef(null);return g.useImperativeHandle(gt,function(){return{getPopupElement:function(){var Rn;return(Rn=hn.current)===null||Rn===void 0?void 0:Rn.popupElement}}}),g.createElement(yt.Z,(0,h.Z)({},Yn,{showAction:Tn?["click"]:[],hideAction:Tn?["click"]:[],popupPlacement:Ze||(Dt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Nn,prefixCls:Cn,popupTransitionName:Pn,popup:g.createElement("div",{onMouseEnter:wn},Zn),ref:hn,stretch:vn,popupAlign:qt,popupVisible:xt,getPopupContainer:it,popupClassName:p()(Qt,(0,z.Z)({},"".concat(Cn,"-empty"),ln)),popupStyle:Ln,getTriggerDOMNode:En,onPopupVisibleChange:Tn}),At)},je=g.forwardRef(V),Qe=je,J=_(40954);function M(Ne,Re){var gt=Ne.key,pt;return"value"in Ne&&(pt=Ne.value),gt!=null?gt:pt!==void 0?pt:"rc-index-key-".concat(Re)}function Se(Ne){return typeof Ne!="undefined"&&!Number.isNaN(Ne)}function be(Ne,Re){var gt=Ne||{},pt=gt.label,Mt=gt.value,xt=gt.options,At=gt.groupLabel,Kt=pt||(Re?"children":"label");return{label:Kt,value:Mt||"value",options:xt||"options",groupLabel:At||Kt}}function W(Ne){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},gt=Re.fieldNames,pt=Re.childrenAsData,Mt=[],xt=be(gt,!1),At=xt.label,Kt=xt.value,nn=xt.options,Ot=xt.groupLabel;function dn(Qt,$t){Array.isArray(Qt)&&Qt.forEach(function(Dt){if($t||!(nn in Dt)){var Ze=Dt[Kt];Mt.push({key:M(Dt,Mt.length),groupOption:$t,data:Dt,label:Dt[At],value:Ze})}else{var _t=Dt[Ot];_t===void 0&&pt&&(_t=Dt.label),Mt.push({key:M(Dt,Mt.length),group:!0,data:Dt,label:_t}),dn(Dt[nn],!0)}})}return dn(Ne,!1),Mt}function fe(Ne){var Re=(0,ae.Z)({},Ne);return"props"in Re||Object.defineProperty(Re,"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`."),Re}}),Re}var ye=function(Re,gt,pt){if(!gt||!gt.length)return null;var Mt=!1,xt=function Kt(nn,Ot){var dn=(0,J.Z)(Ot),Qt=dn[0],$t=dn.slice(1);if(!Qt)return[nn];var Dt=nn.split(Qt);return Mt=Mt||Dt.length>1,Dt.reduce(function(Ze,_t){return[].concat((0,ue.Z)(Ze),(0,ue.Z)(Kt(_t,$t)))},[]).filter(Boolean)},At=xt(Re,gt);return Mt?typeof pt!="undefined"?At.slice(0,pt):At:null},et=g.createContext(null),Ve=et;function $e(Ne){var Re=Ne.visible,gt=Ne.values;if(!Re)return null;var pt=50;return g.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(gt.slice(0,pt).map(function(Mt){var xt=Mt.label,At=Mt.value;return["number","string"].includes((0,_e.Z)(xt))?xt:At}).join(", ")),gt.length>pt?", ...":null)}var Ye=["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"],lt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],de=function(Re){return Re==="tags"||Re==="multiple"},K=g.forwardRef(function(Ne,Re){var gt,pt=Ne.id,Mt=Ne.prefixCls,xt=Ne.className,At=Ne.showSearch,Kt=Ne.tagRender,nn=Ne.direction,Ot=Ne.omitDomProps,dn=Ne.displayValues,Qt=Ne.onDisplayValuesChange,$t=Ne.emptyOptions,Dt=Ne.notFoundContent,Ze=Dt===void 0?"Not Found":Dt,_t=Ne.onClear,Ct=Ne.mode,kt=Ne.disabled,qt=Ne.loading,it=Ne.getInputElement,ln=Ne.getRawInputElement,En=Ne.open,Tn=Ne.defaultOpen,wn=Ne.onDropdownVisibleChange,Yn=Ne.activeValue,Cn=Ne.onActiveValueChange,Zn=Ne.activeDescendantId,Nn=Ne.searchValue,Pn=Ne.autoClearSearchValue,Dn=Ne.onSearch,vn=Ne.onSearchSplit,Ln=Ne.tokenSeparators,hn=Ne.allowClear,yn=Ne.prefix,Rn=Ne.suffixIcon,Mn=Ne.clearIcon,Bn=Ne.OptionList,zn=Ne.animation,pr=Ne.transitionName,Me=Ne.dropdownStyle,Te=Ne.dropdownClassName,Ie=Ne.dropdownMatchSelectWidth,ut=Ne.dropdownRender,mt=Ne.dropdownAlign,ft=Ne.placement,zt=Ne.builtinPlacements,Wt=Ne.getPopupContainer,Rt=Ne.showAction,vt=Rt===void 0?[]:Rt,bt=Ne.onFocus,Nt=Ne.onBlur,Zt=Ne.onKeyUp,rn=Ne.onKeyDown,gn=Ne.onMouseDown,Fn=(0,d.Z)(Ne,Ye),pn=de(Ct),xn=(At!==void 0?At:pn)||Ct==="combobox",On=(0,ae.Z)({},Fn);lt.forEach(function(Tr){delete On[Tr]}),Ot==null||Ot.forEach(function(Tr){delete On[Tr]});var kn=g.useState(!1),Gn=(0,B.Z)(kn,2),Sn=Gn[0],Hn=Gn[1];g.useEffect(function(){Hn((0,x.Z)())},[]);var Un=g.useRef(null),tr=g.useRef(null),Wn=g.useRef(null),Jn=g.useRef(null),lr=g.useRef(null),Je=g.useRef(!1),Jt=D(),on=(0,B.Z)(Jt,3),jt=on[0],mn=on[1],Kn=on[2];g.useImperativeHandle(Re,function(){var Tr,Ar;return{focus:(Tr=Jn.current)===null||Tr===void 0?void 0:Tr.focus,blur:(Ar=Jn.current)===null||Ar===void 0?void 0:Ar.blur,scrollTo:function(Wr){var Gr;return(Gr=lr.current)===null||Gr===void 0?void 0:Gr.scrollTo(Wr)},nativeElement:Un.current||tr.current}});var rr=g.useMemo(function(){var Tr;if(Ct!=="combobox")return Nn;var Ar=(Tr=dn[0])===null||Tr===void 0?void 0:Tr.value;return typeof Ar=="string"||typeof Ar=="number"?String(Ar):""},[Nn,Ct,dn]),Qn=Ct==="combobox"&&typeof it=="function"&&it()||null,Vn=typeof ln=="function"&&ln(),Sr=(0,L.x1)(tr,Vn==null||(gt=Vn.props)===null||gt===void 0?void 0:gt.ref),Ur=g.useState(!1),Nr=(0,B.Z)(Ur,2),Jr=Nr[0],Hr=Nr[1];(0,E.Z)(function(){Hr(!0)},[]);var jr=(0,te.Z)(!1,{defaultValue:Tn,value:En}),yr=(0,B.Z)(jr,2),Cr=yr[0],Fr=yr[1],br=Jr?Cr:!1,Er=!Ze&&$t;(kt||Er&&br&&Ct==="combobox")&&(br=!1);var xr=Er?!1:br,Xn=g.useCallback(function(Tr){var Ar=Tr!==void 0?Tr:!br;kt||(Fr(Ar),br!==Ar&&(wn==null||wn(Ar)))},[kt,br,Fr,wn]),ur=g.useMemo(function(){return(Ln||[]).some(function(Tr){return[`
`,`\r
`].includes(Tr)})},[Ln]),cr=g.useContext(Ve)||{},dr=cr.maxCount,or=cr.rawValues,_r=function(Ar,$r,Wr){if(!(pn&&Se(dr)&&(or==null?void 0:or.size)>=dr)){var Gr=!0,Xr=Ar;Cn==null||Cn(null);var mi=ye(Ar,Ln,Se(dr)?dr-or.size:void 0),gi=Wr?null:mi;return Ct!=="combobox"&&gi&&(Xr="",vn==null||vn(gi),Xn(!1),Gr=!1),Dn&&rr!==Xr&&Dn(Xr,{source:$r?"typing":"effect"}),Gr}},Yr=function(Ar){!Ar||!Ar.trim()||Dn(Ar,{source:"submit"})};g.useEffect(function(){!br&&!pn&&Ct!=="combobox"&&_r("",!1,!1)},[br]),g.useEffect(function(){Cr&&kt&&Fr(!1),kt&&!Je.current&&mn(!1)},[kt]);var jn=A(),ir=(0,B.Z)(jn,2),sr=ir[0],Dr=ir[1],Ir=g.useRef(!1),Zr=function(Ar){var $r=sr(),Wr=Ar.key,Gr=Wr==="Enter";if(Gr&&(Ct!=="combobox"&&Ar.preventDefault(),br||Xn(!0)),Dr(!!rr),Wr==="Backspace"&&!$r&&pn&&!rr&&dn.length){for(var Xr=(0,ue.Z)(dn),mi=null,gi=Xr.length-1;gi>=0;gi-=1){var Ai=Xr[gi];if(!Ai.disabled){Xr.splice(gi,1),mi=Ai;break}}mi&&Qt(Xr,{type:"remove",values:[mi]})}for(var ei=arguments.length,fi=new Array(ei>1?ei-1:0),Ci=1;Ci<ei;Ci++)fi[Ci-1]=arguments[Ci];if(br&&(!Gr||!Ir.current)){var Ti;Gr&&(Ir.current=!0),(Ti=lr.current)===null||Ti===void 0||Ti.onKeyDown.apply(Ti,[Ar].concat(fi))}rn==null||rn.apply(void 0,[Ar].concat(fi))},oi=function(Ar){for(var $r=arguments.length,Wr=new Array($r>1?$r-1:0),Gr=1;Gr<$r;Gr++)Wr[Gr-1]=arguments[Gr];if(br){var Xr;(Xr=lr.current)===null||Xr===void 0||Xr.onKeyUp.apply(Xr,[Ar].concat(Wr))}Ar.key==="Enter"&&(Ir.current=!1),Zt==null||Zt.apply(void 0,[Ar].concat(Wr))},ni=function(Ar){var $r=dn.filter(function(Wr){return Wr!==Ar});Qt($r,{type:"remove",values:[Ar]})},qr=function(){Ir.current=!1},Vr=g.useRef(!1),qi=function(){mn(!0),kt||(bt&&!Vr.current&&bt.apply(void 0,arguments),vt.includes("focus")&&Xn(!0)),Vr.current=!0},$i=function(){Je.current=!0,mn(!1,function(){Vr.current=!1,Je.current=!1,Xn(!1)}),!kt&&(rr&&(Ct==="tags"?Dn(rr,{source:"submit"}):Ct==="multiple"&&Dn("",{source:"blur"})),Nt&&Nt.apply(void 0,arguments))},Ri=[];g.useEffect(function(){return function(){Ri.forEach(function(Tr){return clearTimeout(Tr)}),Ri.splice(0,Ri.length)}},[]);var Ni=function(Ar){var $r,Wr=Ar.target,Gr=($r=Wn.current)===null||$r===void 0?void 0:$r.getPopupElement();if(Gr&&Gr.contains(Wr)){var Xr=setTimeout(function(){var ei=Ri.indexOf(Xr);if(ei!==-1&&Ri.splice(ei,1),Kn(),!Sn&&!Gr.contains(document.activeElement)){var fi;(fi=Jn.current)===null||fi===void 0||fi.focus()}});Ri.push(Xr)}for(var mi=arguments.length,gi=new Array(mi>1?mi-1:0),Ai=1;Ai<mi;Ai++)gi[Ai-1]=arguments[Ai];gn==null||gn.apply(void 0,[Ar].concat(gi))},ji=g.useState({}),ui=(0,B.Z)(ji,2),Vi=ui[1];function Si(){Vi({})}var Wi;Vn&&(Wi=function(Ar){Xn(Ar)}),Q(function(){var Tr;return[Un.current,(Tr=Wn.current)===null||Tr===void 0?void 0:Tr.getPopupElement()]},xr,Xn,!!Vn);var Ii=g.useMemo(function(){return(0,ae.Z)((0,ae.Z)({},Ne),{},{notFoundContent:Ze,open:br,triggerOpen:xr,id:pt,showSearch:xn,multiple:pn,toggleOpen:Xn})},[Ne,Ze,xr,br,pt,xn,pn,Xn]),es=!!Rn||qt,Mi;es&&(Mi=g.createElement($,{className:p()("".concat(Mt,"-arrow"),(0,z.Z)({},"".concat(Mt,"-arrow-loading"),qt)),customizeIcon:Rn,customizeIconProps:{loading:qt,searchValue:rr,open:br,focused:jt,showSearch:xn}}));var vs=function(){var Ar;_t==null||_t(),(Ar=Jn.current)===null||Ar===void 0||Ar.focus(),Qt([],{type:"clear",values:dn}),_r("",!1,!1)},Oi=le(Mt,vs,dn,hn,Mn,kt,rr,Ct),ds=Oi.allowClear,ts=Oi.clearIcon,yi=g.createElement(Bn,{ref:lr}),Fi=p()(Mt,xt,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(Mt,"-focused"),jt),"".concat(Mt,"-multiple"),pn),"".concat(Mt,"-single"),!pn),"".concat(Mt,"-allow-clear"),hn),"".concat(Mt,"-show-arrow"),es),"".concat(Mt,"-disabled"),kt),"".concat(Mt,"-loading"),qt),"".concat(Mt,"-open"),br),"".concat(Mt,"-customize-input"),Qn),"".concat(Mt,"-show-search"),xn)),ii=g.createElement(Qe,{ref:Wn,disabled:kt,prefixCls:Mt,visible:xr,popupElement:yi,animation:zn,transitionName:pr,dropdownStyle:Me,dropdownClassName:Te,direction:nn,dropdownMatchSelectWidth:Ie,dropdownRender:ut,dropdownAlign:mt,placement:ft,builtinPlacements:zt,getPopupContainer:Wt,empty:$t,getTriggerDOMNode:function(Ar){return tr.current||Ar},onPopupVisibleChange:Wi,onPopupMouseEnter:Si},Vn?g.cloneElement(Vn,{ref:Sr}):g.createElement(qe,(0,h.Z)({},Ne,{domRef:tr,prefixCls:Mt,inputElement:Qn,ref:Jn,id:pt,prefix:yn,showSearch:xn,autoClearSearchValue:Pn,mode:Ct,activeDescendantId:Zn,tagRender:Kt,values:dn,open:br,onToggleOpen:Xn,activeValue:Yn,searchValue:rr,onSearch:_r,onSearchSubmit:Yr,onRemove:ni,tokenWithEnter:ur,onInputBlur:qr}))),ti;return Vn?ti=ii:ti=g.createElement("div",(0,h.Z)({className:Fi},On,{ref:Un,onMouseDown:Ni,onKeyDown:Zr,onKeyUp:oi,onFocus:qi,onBlur:$i}),g.createElement($e,{visible:jt&&!br,values:dn}),ii,Mi,ds&&ts),g.createElement(F.Provider,{value:Ii},ti)}),N=K,Le=function(){return null};Le.isSelectOptGroup=!0;var De=Le,Ce=function(){return null};Ce.isSelectOption=!0;var st=Ce,at=_(80547),Oe=_(2738),Et=_(6790);function Vt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var St=["disabled","title","children","style","className"];function Bt(Ne){return typeof Ne=="string"||typeof Ne=="number"}var se=function(Re,gt){var pt=H(),Mt=pt.prefixCls,xt=pt.id,At=pt.open,Kt=pt.multiple,nn=pt.mode,Ot=pt.searchValue,dn=pt.toggleOpen,Qt=pt.notFoundContent,$t=pt.onPopupScroll,Dt=g.useContext(Ve),Ze=Dt.maxCount,_t=Dt.flattenOptions,Ct=Dt.onActiveValue,kt=Dt.defaultActiveFirstOption,qt=Dt.onSelect,it=Dt.menuItemSelectedIcon,ln=Dt.rawValues,En=Dt.fieldNames,Tn=Dt.virtual,wn=Dt.direction,Yn=Dt.listHeight,Cn=Dt.listItemHeight,Zn=Dt.optionRender,Nn="".concat(Mt,"-item"),Pn=(0,at.Z)(function(){return _t},[At,_t],function(Rt,vt){return vt[0]&&Rt[1]!==vt[1]}),Dn=g.useRef(null),vn=g.useMemo(function(){return Kt&&Se(Ze)&&(ln==null?void 0:ln.size)>=Ze},[Kt,Ze,ln==null?void 0:ln.size]),Ln=function(vt){vt.preventDefault()},hn=function(vt){var bt;(bt=Dn.current)===null||bt===void 0||bt.scrollTo(typeof vt=="number"?{index:vt}:vt)},yn=g.useCallback(function(Rt){return nn==="combobox"?!1:ln.has(Rt)},[nn,(0,ue.Z)(ln).toString(),ln.size]),Rn=function(vt){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Nt=Pn.length,Zt=0;Zt<Nt;Zt+=1){var rn=(vt+Zt*bt+Nt)%Nt,gn=Pn[rn]||{},Fn=gn.group,pn=gn.data;if(!Fn&&!(pn!=null&&pn.disabled)&&(yn(pn.value)||!vn))return rn}return-1},Mn=g.useState(function(){return Rn(0)}),Bn=(0,B.Z)(Mn,2),zn=Bn[0],pr=Bn[1],Me=function(vt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;pr(vt);var Nt={source:bt?"keyboard":"mouse"},Zt=Pn[vt];if(!Zt){Ct(null,-1,Nt);return}Ct(Zt.value,vt,Nt)};(0,g.useEffect)(function(){Me(kt!==!1?Rn(0):-1)},[Pn.length,Ot]);var Te=g.useCallback(function(Rt){return nn==="combobox"?String(Rt).toLowerCase()===Ot.toLowerCase():ln.has(Rt)},[nn,Ot,(0,ue.Z)(ln).toString(),ln.size]);(0,g.useEffect)(function(){var Rt=setTimeout(function(){if(!Kt&&At&&ln.size===1){var bt=Array.from(ln)[0],Nt=Pn.findIndex(function(Zt){var rn=Zt.data;return Ot?String(rn.value).startsWith(Ot):rn.value===bt});Nt!==-1&&(Me(Nt),hn(Nt))}});if(At){var vt;(vt=Dn.current)===null||vt===void 0||vt.scrollTo(void 0)}return function(){return clearTimeout(Rt)}},[At,Ot]);var Ie=function(vt){vt!==void 0&&qt(vt,{selected:!ln.has(vt)}),Kt||dn(!1)};if(g.useImperativeHandle(gt,function(){return{onKeyDown:function(vt){var bt=vt.which,Nt=vt.ctrlKey;switch(bt){case ne.Z.N:case ne.Z.P:case ne.Z.UP:case ne.Z.DOWN:{var Zt=0;if(bt===ne.Z.UP?Zt=-1:bt===ne.Z.DOWN?Zt=1:Vt()&&Nt&&(bt===ne.Z.N?Zt=1:bt===ne.Z.P&&(Zt=-1)),Zt!==0){var rn=Rn(zn+Zt,Zt);hn(rn),Me(rn,!0)}break}case ne.Z.TAB:case ne.Z.ENTER:{var gn,Fn=Pn[zn];Fn&&!(Fn!=null&&(gn=Fn.data)!==null&&gn!==void 0&&gn.disabled)&&!vn?Ie(Fn.value):Ie(void 0),At&&vt.preventDefault();break}case ne.Z.ESC:dn(!1),At&&vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vt){hn(vt)}}}),Pn.length===0)return g.createElement("div",{role:"listbox",id:"".concat(xt,"_list"),className:"".concat(Nn,"-empty"),onMouseDown:Ln},Qt);var ut=Object.keys(En).map(function(Rt){return En[Rt]}),mt=function(vt){return vt.label};function ft(Rt,vt){var bt=Rt.group;return{role:bt?"presentation":"option",id:"".concat(xt,"_list_").concat(vt)}}var zt=function(vt){var bt=Pn[vt];if(!bt)return null;var Nt=bt.data||{},Zt=Nt.value,rn=bt.group,gn=(0,oe.Z)(Nt,!0),Fn=mt(bt);return bt?g.createElement("div",(0,h.Z)({"aria-label":typeof Fn=="string"&&!rn?Fn:null},gn,{key:vt},ft(bt,vt),{"aria-selected":Te(Zt)}),Zt):null},Wt={role:"listbox",id:"".concat(xt,"_list")};return g.createElement(g.Fragment,null,Tn&&g.createElement("div",(0,h.Z)({},Wt,{style:{height:0,width:0,overflow:"hidden"}}),zt(zn-1),zt(zn),zt(zn+1)),g.createElement(Et.Z,{itemKey:"key",ref:Dn,data:Pn,height:Yn,itemHeight:Cn,fullHeight:!1,onMouseDown:Ln,onScroll:$t,virtual:Tn,direction:wn,innerProps:Tn?null:Wt},function(Rt,vt){var bt=Rt.group,Nt=Rt.groupOption,Zt=Rt.data,rn=Rt.label,gn=Rt.value,Fn=Zt.key;if(bt){var pn,xn=(pn=Zt.title)!==null&&pn!==void 0?pn:Bt(rn)?rn.toString():void 0;return g.createElement("div",{className:p()(Nn,"".concat(Nn,"-group"),Zt.className),title:xn},rn!==void 0?rn:Fn)}var On=Zt.disabled,kn=Zt.title,Gn=Zt.children,Sn=Zt.style,Hn=Zt.className,Un=(0,d.Z)(Zt,St),tr=(0,Oe.Z)(Un,ut),Wn=yn(gn),Jn=On||!Wn&&vn,lr="".concat(Nn,"-option"),Je=p()(Nn,lr,Hn,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(lr,"-grouped"),Nt),"".concat(lr,"-active"),zn===vt&&!Jn),"".concat(lr,"-disabled"),Jn),"".concat(lr,"-selected"),Wn)),Jt=mt(Rt),on=!it||typeof it=="function"||Wn,jt=typeof Jt=="number"?Jt:Jt||gn,mn=Bt(jt)?jt.toString():void 0;return kn!==void 0&&(mn=kn),g.createElement("div",(0,h.Z)({},(0,oe.Z)(tr),Tn?{}:ft(Rt,vt),{"aria-selected":Te(gn),className:Je,title:mn,onMouseMove:function(){zn===vt||Jn||Me(vt)},onClick:function(){Jn||Ie(gn)},style:Sn}),g.createElement("div",{className:"".concat(lr,"-content")},typeof Zn=="function"?Zn(Rt,{index:vt}):jt),g.isValidElement(it)||Wn,on&&g.createElement($,{className:"".concat(Nn,"-option-state"),customizeIcon:it,customizeIconProps:{value:gn,disabled:Jn,isSelected:Wn}},Wn?"\u2713":null))}))},ve=g.forwardRef(se),Ee=ve,k=function(Ne,Re){var gt=g.useRef({values:new Map,options:new Map}),pt=g.useMemo(function(){var xt=gt.current,At=xt.values,Kt=xt.options,nn=Ne.map(function(Qt){if(Qt.label===void 0){var $t;return(0,ae.Z)((0,ae.Z)({},Qt),{},{label:($t=At.get(Qt.value))===null||$t===void 0?void 0:$t.label})}return Qt}),Ot=new Map,dn=new Map;return nn.forEach(function(Qt){Ot.set(Qt.value,Qt),dn.set(Qt.value,Re.get(Qt.value)||Kt.get(Qt.value))}),gt.current.values=Ot,gt.current.options=dn,nn},[Ne,Re]),Mt=g.useCallback(function(xt){return Re.get(xt)||gt.current.options.get(xt)},[Re]);return[pt,Mt]};function Y(Ne,Re){return re(Ne).join("").toUpperCase().includes(Re)}var he=function(Ne,Re,gt,pt,Mt){return g.useMemo(function(){if(!gt||pt===!1)return Ne;var xt=Re.options,At=Re.label,Kt=Re.value,nn=[],Ot=typeof pt=="function",dn=gt.toUpperCase(),Qt=Ot?pt:function(Dt,Ze){return Mt?Y(Ze[Mt],dn):Ze[xt]?Y(Ze[At!=="children"?At:"label"],dn):Y(Ze[Kt],dn)},$t=Ot?function(Dt){return fe(Dt)}:function(Dt){return Dt};return Ne.forEach(function(Dt){if(Dt[xt]){var Ze=Qt(gt,$t(Dt));if(Ze)nn.push(Dt);else{var _t=Dt[xt].filter(function(Ct){return Qt(gt,$t(Ct))});_t.length&&nn.push((0,ae.Z)((0,ae.Z)({},Dt),{},(0,z.Z)({},xt,_t)))}return}Qt(gt,$t(Dt))&&nn.push(Dt)}),nn},[Ne,pt,Mt,gt,Re])},ce=_(6551),xe=_(11592),Be=["children","value"],Xe=["children"];function ct(Ne){var Re=Ne,gt=Re.key,pt=Re.props,Mt=pt.children,xt=pt.value,At=(0,d.Z)(pt,Be);return(0,ae.Z)({key:gt,value:xt!==void 0?xt:gt,children:Mt},At)}function nt(Ne){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,xe.Z)(Ne).map(function(gt,pt){if(!g.isValidElement(gt)||!gt.type)return null;var Mt=gt,xt=Mt.type.isSelectOptGroup,At=Mt.key,Kt=Mt.props,nn=Kt.children,Ot=(0,d.Z)(Kt,Xe);return Re||!xt?ct(gt):(0,ae.Z)((0,ae.Z)({key:"__RC_SELECT_GRP__".concat(At===null?pt:At,"__"),label:At},Ot),{},{options:nt(nn)})}).filter(function(gt){return gt})}var Ue=function(Re,gt,pt,Mt,xt){return g.useMemo(function(){var At=Re,Kt=!Re;Kt&&(At=nt(gt));var nn=new Map,Ot=new Map,dn=function(Dt,Ze,_t){_t&&typeof _t=="string"&&Dt.set(Ze[_t],Ze)},Qt=function $t(Dt){for(var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_t=0;_t<Dt.length;_t+=1){var Ct=Dt[_t];!Ct[pt.options]||Ze?(nn.set(Ct[pt.value],Ct),dn(Ot,Ct,pt.label),dn(Ot,Ct,Mt),dn(Ot,Ct,xt)):$t(Ct[pt.options],!0)}};return Qt(At),{options:At,valueOptions:nn,labelOptions:Ot}},[Re,gt,pt,Mt,xt])},I=Ue;function Z(Ne){var Re=g.useRef();Re.current=Ne;var gt=g.useCallback(function(){return Re.current.apply(Re,arguments)},[]);return gt}function S(Ne){var Re=Ne.mode,gt=Ne.options,pt=Ne.children,Mt=Ne.backfill,xt=Ne.allowClear,At=Ne.placeholder,Kt=Ne.getInputElement,nn=Ne.showSearch,Ot=Ne.onSearch,dn=Ne.defaultOpen,Qt=Ne.autoFocus,$t=Ne.labelInValue,Dt=Ne.value,Ze=Ne.inputValue,_t=Ne.optionLabelProp,Ct=isMultiple(Re),kt=nn!==void 0?nn:Ct||Re==="combobox",qt=gt||convertChildrenToData(pt);if(warning(Re!=="tags"||qt.every(function(Tn){return!Tn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Re==="tags"||Re==="combobox"){var it=qt.some(function(Tn){return Tn.options?Tn.options.some(function(wn){return typeof("value"in wn?wn.value:wn.key)=="number"}):typeof("value"in Tn?Tn.value:Tn.key)=="number"});warning(!it,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Re!=="combobox"||!_t,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Re==="combobox"||!Mt,"`backfill` only works with `combobox` mode."),warning(Re==="combobox"||!Kt,"`getInputElement` only work with `combobox` mode."),noteOnce(Re!=="combobox"||!Kt||!xt||!At,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ot&&!kt&&Re!=="combobox"&&Re!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!dn||Qt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Dt!=null){var ln=toArray(Dt);warning(!$t||ln.every(function(Tn){return _typeof(Tn)==="object"&&("key"in Tn||"value"in Tn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ct||Array.isArray(Dt),"`value` should be array when `mode` is `multiple` or `tags`")}if(pt){var En=null;toNodeArray(pt).some(function(Tn){if(!React.isValidElement(Tn)||!Tn.type)return!1;var wn=Tn,Yn=wn.type;if(Yn.isSelectOption)return!1;if(Yn.isSelectOptGroup){var Cn=toNodeArray(Tn.props.children).every(function(Zn){return!React.isValidElement(Zn)||!Tn.type||Zn.type.isSelectOption?!0:(En=Zn.type,!1)});return!Cn}return En=Yn,!0}),En&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(En.displayName||En.name||En,"`.")),warning(Ze===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ze(Ne,Re){if(Ne){var gt=function pt(Mt){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=0;At<Mt.length;At++){var Kt=Mt[At];if(Kt[Re==null?void 0:Re.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!xt&&Array.isArray(Kt[Re==null?void 0:Re.options])&&pt(Kt[Re==null?void 0:Re.options],!0))break}};gt(Ne)}}var ke=null,Pe=["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"],Ge=["inputValue"];function We(Ne){return!Ne||(0,_e.Z)(Ne)!=="object"}var dt=g.forwardRef(function(Ne,Re){var gt=Ne.id,pt=Ne.mode,Mt=Ne.prefixCls,xt=Mt===void 0?"rc-select":Mt,At=Ne.backfill,Kt=Ne.fieldNames,nn=Ne.inputValue,Ot=Ne.searchValue,dn=Ne.onSearch,Qt=Ne.autoClearSearchValue,$t=Qt===void 0?!0:Qt,Dt=Ne.onSelect,Ze=Ne.onDeselect,_t=Ne.dropdownMatchSelectWidth,Ct=_t===void 0?!0:_t,kt=Ne.filterOption,qt=Ne.filterSort,it=Ne.optionFilterProp,ln=Ne.optionLabelProp,En=Ne.options,Tn=Ne.optionRender,wn=Ne.children,Yn=Ne.defaultActiveFirstOption,Cn=Ne.menuItemSelectedIcon,Zn=Ne.virtual,Nn=Ne.direction,Pn=Ne.listHeight,Dn=Pn===void 0?200:Pn,vn=Ne.listItemHeight,Ln=vn===void 0?20:vn,hn=Ne.labelRender,yn=Ne.value,Rn=Ne.defaultValue,Mn=Ne.labelInValue,Bn=Ne.onChange,zn=Ne.maxCount,pr=(0,d.Z)(Ne,Pe),Me=(0,ce.ZP)(gt),Te=de(pt),Ie=!!(!En&&wn),ut=g.useMemo(function(){return kt===void 0&&pt==="combobox"?!1:kt},[kt,pt]),mt=g.useMemo(function(){return be(Kt,Ie)},[JSON.stringify(Kt),Ie]),ft=(0,te.Z)("",{value:Ot!==void 0?Ot:nn,postState:function(ur){return ur||""}}),zt=(0,B.Z)(ft,2),Wt=zt[0],Rt=zt[1],vt=I(En,wn,mt,it,ln),bt=vt.valueOptions,Nt=vt.labelOptions,Zt=vt.options,rn=g.useCallback(function(Xn){var ur=re(Xn);return ur.map(function(cr){var dr,or,_r,Yr,jn;if(We(cr))dr=cr;else{var ir;_r=cr.key,or=cr.label,dr=(ir=cr.value)!==null&&ir!==void 0?ir:_r}var sr=bt.get(dr);if(sr){var Dr;if(or===void 0&&(or=sr==null?void 0:sr[ln||mt.label]),_r===void 0&&(_r=(Dr=sr==null?void 0:sr.key)!==null&&Dr!==void 0?Dr:dr),Yr=sr==null?void 0:sr.disabled,jn=sr==null?void 0:sr.title,0)var Ir}return{label:or,value:dr,key:_r,disabled:Yr,title:jn}})},[mt,ln,bt]),gn=(0,te.Z)(Rn,{value:yn}),Fn=(0,B.Z)(gn,2),pn=Fn[0],xn=Fn[1],On=g.useMemo(function(){var Xn,ur=Te&&pn===null?[]:pn,cr=rn(ur);return pt==="combobox"&&O((Xn=cr[0])===null||Xn===void 0?void 0:Xn.value)?[]:cr},[pn,rn,pt,Te]),kn=k(On,bt),Gn=(0,B.Z)(kn,2),Sn=Gn[0],Hn=Gn[1],Un=g.useMemo(function(){if(!pt&&Sn.length===1){var Xn=Sn[0];if(Xn.value===null&&(Xn.label===null||Xn.label===void 0))return[]}return Sn.map(function(ur){var cr;return(0,ae.Z)((0,ae.Z)({},ur),{},{label:(cr=typeof hn=="function"?hn(ur):ur.label)!==null&&cr!==void 0?cr:ur.value})})},[pt,Sn,hn]),tr=g.useMemo(function(){return new Set(Sn.map(function(Xn){return Xn.value}))},[Sn]);g.useEffect(function(){if(pt==="combobox"){var Xn,ur=(Xn=Sn[0])===null||Xn===void 0?void 0:Xn.value;Rt(v(ur)?String(ur):"")}},[Sn]);var Wn=Z(function(Xn,ur){var cr=ur!=null?ur:Xn;return(0,z.Z)((0,z.Z)({},mt.value,Xn),mt.label,cr)}),Jn=g.useMemo(function(){if(pt!=="tags")return Zt;var Xn=(0,ue.Z)(Zt),ur=function(dr){return bt.has(dr)};return(0,ue.Z)(Sn).sort(function(cr,dr){return cr.value<dr.value?-1:1}).forEach(function(cr){var dr=cr.value;ur(dr)||Xn.push(Wn(dr,cr.label))}),Xn},[Wn,Zt,bt,Sn,pt]),lr=he(Jn,mt,Wt,ut,it),Je=g.useMemo(function(){return pt!=="tags"||!Wt||lr.some(function(Xn){return Xn[it||"value"]===Wt})||lr.some(function(Xn){return Xn[mt.value]===Wt})?lr:[Wn(Wt)].concat((0,ue.Z)(lr))},[Wn,it,pt,lr,Wt,mt]),Jt=function Xn(ur){var cr=(0,ue.Z)(ur).sort(function(dr,or){return qt(dr,or,{searchValue:Wt})});return cr.map(function(dr){return Array.isArray(dr.options)?(0,ae.Z)((0,ae.Z)({},dr),{},{options:dr.options.length>0?Xn(dr.options):dr.options}):dr})},on=g.useMemo(function(){return qt?Jt(Je):Je},[Je,qt,Wt]),jt=g.useMemo(function(){return W(on,{fieldNames:mt,childrenAsData:Ie})},[on,mt,Ie]),mn=function(ur){var cr=rn(ur);if(xn(cr),Bn&&(cr.length!==Sn.length||cr.some(function(_r,Yr){var jn;return((jn=Sn[Yr])===null||jn===void 0?void 0:jn.value)!==(_r==null?void 0:_r.value)}))){var dr=Mn?cr:cr.map(function(_r){return _r.value}),or=cr.map(function(_r){return fe(Hn(_r.value))});Bn(Te?dr:dr[0],Te?or:or[0])}},Kn=g.useState(null),rr=(0,B.Z)(Kn,2),Qn=rr[0],Vn=rr[1],Sr=g.useState(0),Ur=(0,B.Z)(Sr,2),Nr=Ur[0],Jr=Ur[1],Hr=Yn!==void 0?Yn:pt!=="combobox",jr=g.useCallback(function(Xn,ur){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dr=cr.source,or=dr===void 0?"keyboard":dr;Jr(ur),At&&pt==="combobox"&&Xn!==null&&or==="keyboard"&&Vn(String(Xn))},[At,pt]),yr=function(ur,cr,dr){var or=function(){var ni,qr=Hn(ur);return[Mn?{label:qr==null?void 0:qr[mt.label],value:ur,key:(ni=qr==null?void 0:qr.key)!==null&&ni!==void 0?ni:ur}:ur,fe(qr)]};if(cr&&Dt){var _r=or(),Yr=(0,B.Z)(_r,2),jn=Yr[0],ir=Yr[1];Dt(jn,ir)}else if(!cr&&Ze&&dr!=="clear"){var sr=or(),Dr=(0,B.Z)(sr,2),Ir=Dr[0],Zr=Dr[1];Ze(Ir,Zr)}},Cr=Z(function(Xn,ur){var cr,dr=Te?ur.selected:!0;dr?cr=Te?[].concat((0,ue.Z)(Sn),[Xn]):[Xn]:cr=Sn.filter(function(or){return or.value!==Xn}),mn(cr),yr(Xn,dr),pt==="combobox"?Vn(""):(!de||$t)&&(Rt(""),Vn(""))}),Fr=function(ur,cr){mn(ur);var dr=cr.type,or=cr.values;(dr==="remove"||dr==="clear")&&or.forEach(function(_r){yr(_r.value,!1,dr)})},br=function(ur,cr){if(Rt(ur),Vn(null),cr.source==="submit"){var dr=(ur||"").trim();if(dr){var or=Array.from(new Set([].concat((0,ue.Z)(tr),[dr])));mn(or),yr(dr,!0),Rt("")}return}cr.source!=="blur"&&(pt==="combobox"&&mn(ur),dn==null||dn(ur))},Er=function(ur){var cr=ur;pt!=="tags"&&(cr=ur.map(function(or){var _r=Nt.get(or);return _r==null?void 0:_r.value}).filter(function(or){return or!==void 0}));var dr=Array.from(new Set([].concat((0,ue.Z)(tr),(0,ue.Z)(cr))));mn(dr),dr.forEach(function(or){yr(or,!0)})},xr=g.useMemo(function(){var Xn=Zn!==!1&&Ct!==!1;return(0,ae.Z)((0,ae.Z)({},vt),{},{flattenOptions:jt,onActiveValue:jr,defaultActiveFirstOption:Hr,onSelect:Cr,menuItemSelectedIcon:Cn,rawValues:tr,fieldNames:mt,virtual:Xn,direction:Nn,listHeight:Dn,listItemHeight:Ln,childrenAsData:Ie,maxCount:zn,optionRender:Tn})},[zn,vt,jt,jr,Hr,Cr,Cn,tr,mt,Zn,Ct,Nn,Dn,Ln,Ie,Tn]);return g.createElement(Ve.Provider,{value:xr},g.createElement(N,(0,h.Z)({},pr,{id:Me,prefixCls:xt,ref:Re,omitDomProps:Ge,mode:pt,displayValues:Un,onDisplayValuesChange:Fr,direction:Nn,searchValue:Wt,onSearch:br,autoClearSearchValue:$t,onSearchSplit:Er,dropdownMatchSelectWidth:Ct,OptionList:Ee,emptyOptions:!jt.length,activeValue:Qn,activeDescendantId:"".concat(Me,"_list_").concat(Nr)})))}),Lt=dt;Lt.Option=st,Lt.OptGroup=De;var Pt=Lt,cn=Pt},86351:function(In,Gt,_){"use strict";_.d(Gt,{R:function(){return ue},w:function(){return h}});var h={},ue="rc-table-internal-hook"},97347:function(In,Gt,_){"use strict";_.d(Gt,{L:function(){return j},Z:function(){return D}});var h=_(11913),ue=_(74430),z=_(3300),ae=_(34666),B=_(27247),d=_(43079),_e=_(11592),te=_(48736),o=_(59301),g=_(86351),w=_(54451);function p(A){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Q=="number"?Q:Q.endsWith("%")?A*parseFloat(Q)/100:null}function E(A,Q,ne){return o.useMemo(function(){if(Q&&Q>0){var ee=0,oe=0;A.forEach(function(re){var X=p(Q,re.width);X?ee+=X:oe+=1});var ge=Math.max(Q,ne),me=Math.max(ge-ee,oe),ot=oe,U=me/oe,C=0,P=A.map(function(re){var X=(0,B.Z)({},re),y=p(Q,X.width);if(y)X.width=y;else{var v=Math.floor(U);X.width=ot===1?me:v,me-=v,ot-=1}return C+=X.width,X});if(C<ge){var G=ge/C;me=ge,P.forEach(function(re,X){var y=Math.floor(re.width*G);re.width=X===P.length-1?me:y,me-=y})}return[P,Math.max(C,ge)]}return[A,Q]},[A,Q,ne])}var x=["children"],L=["fixed"];function j(A){return(0,_e.Z)(A).filter(function(Q){return o.isValidElement(Q)}).map(function(Q){var ne=Q.key,ee=Q.props,oe=ee.children,ge=(0,d.Z)(ee,x),me=(0,B.Z)({key:ne},ge);return oe&&(me.children=j(oe)),me})}function $(A){return A.filter(function(Q){return Q&&(0,ae.Z)(Q)==="object"&&!Q.hidden}).map(function(Q){var ne=Q.children;return ne&&ne.length>0?(0,B.Z)((0,B.Z)({},Q),{},{children:$(ne)}):Q})}function le(A){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return A.filter(function(ne){return ne&&(0,ae.Z)(ne)==="object"}).reduce(function(ne,ee,oe){var ge=ee.fixed,me=ge===!0?"left":ge,ot="".concat(Q,"-").concat(oe),U=ee.children;return U&&U.length>0?[].concat((0,z.Z)(ne),(0,z.Z)(le(U,ot).map(function(C){return(0,B.Z)({fixed:me},C)}))):[].concat((0,z.Z)(ne),[(0,B.Z)((0,B.Z)({key:ot},ee),{},{fixed:me})])},[])}function F(A){return A.map(function(Q){var ne=Q.fixed,ee=(0,d.Z)(Q,L),oe=ne;return ne==="left"?oe="right":ne==="right"&&(oe="left"),(0,B.Z)({fixed:oe},ee)})}function H(A,Q){var ne=A.prefixCls,ee=A.columns,oe=A.children,ge=A.expandable,me=A.expandedKeys,ot=A.columnTitle,U=A.getRowKey,C=A.onTriggerExpand,P=A.expandIcon,G=A.rowExpandable,re=A.expandIconColumnIndex,X=A.direction,y=A.expandRowByClick,v=A.columnWidth,O=A.fixed,pe=A.scrollWidth,He=A.clientWidth,tt=o.useMemo(function(){var qe=ee||j(oe)||[];return $(qe.slice())},[ee,oe]),wt=o.useMemo(function(){if(ge){var qe=tt.slice();if(!qe.includes(g.w)){var yt=re||0;yt>=0&&(yt||O==="left"||!O)&&qe.splice(yt,0,g.w),O==="right"&&qe.splice(tt.length,0,g.w)}var Fe=qe.indexOf(g.w);qe=qe.filter(function(Qe,J){return Qe!==g.w||J===Fe});var Ae=tt[Fe],V;O?V=O:V=Ae?Ae.fixed:null;var je=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},w.v,{className:"".concat(ne,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ot),"fixed",V),"className","".concat(ne,"-row-expand-icon-cell")),"width",v),"render",function(J,M,Se){var be=U(M,Se),W=me.has(be),fe=G?G(M):!0,ye=P({prefixCls:ne,expanded:W,expandable:fe,record:M,onExpand:C});return y?o.createElement("span",{onClick:function(Ve){return Ve.stopPropagation()}},ye):ye});return qe.map(function(Qe){return Qe===g.w?je:Qe})}return tt.filter(function(Qe){return Qe!==g.w})},[ge,tt,U,me,P,X]),It=o.useMemo(function(){var qe=wt;return Q&&(qe=Q(qe)),qe.length||(qe=[{render:function(){return null}}]),qe},[Q,wt,X]),Ft=o.useMemo(function(){return X==="rtl"?F(le(It)):le(It)},[It,X,pe]),Ht=o.useMemo(function(){for(var qe=-1,yt=Ft.length-1;yt>=0;yt-=1){var Fe=Ft[yt].fixed;if(Fe==="left"||Fe===!0){qe=yt;break}}if(qe>=0)for(var Ae=0;Ae<=qe;Ae+=1){var V=Ft[Ae].fixed;if(V!=="left"&&V!==!0)return!0}var je=Ft.findIndex(function(M){var Se=M.fixed;return Se==="right"});if(je>=0)for(var Qe=je;Qe<Ft.length;Qe+=1){var J=Ft[Qe].fixed;if(J!=="right")return!0}return!1},[Ft]),Ke=E(Ft,pe,He),en=(0,h.Z)(Ke,2),Tt=en[0],an=en[1];return[It,Tt,an,Ht]}var D=H},4030:function(In,Gt,_){"use strict";_.d(Gt,{w2:function(){return h.w},vP:function(){return Bt.v},RQ:function(){return h.R},ER:function(){return be},Q$:function(){return kt},TN:function(){return Bn}});var h=_(86351),ue=_(11913),z=_(6089),ae=_(34280),B=_(13697),d=_(59301),_e=_(4676);function te(Me){var Te=d.createContext(void 0),Ie=function(mt){var ft=mt.value,zt=mt.children,Wt=d.useRef(ft);Wt.current=ft;var Rt=d.useState(function(){return{getValue:function(){return Wt.current},listeners:new Set}}),vt=(0,ue.Z)(Rt,1),bt=vt[0];return(0,ae.Z)(function(){(0,_e.unstable_batchedUpdates)(function(){bt.listeners.forEach(function(Nt){Nt(ft)})})},[ft]),d.createElement(Te.Provider,{value:bt},zt)};return{Context:Te,Provider:Ie,defaultValue:Me}}function o(Me,Te){var Ie=(0,z.Z)(typeof Te=="function"?Te:function(Nt){if(Te===void 0)return Nt;if(!Array.isArray(Te))return Nt[Te];var Zt={};return Te.forEach(function(rn){Zt[rn]=Nt[rn]}),Zt}),ut=d.useContext(Me==null?void 0:Me.Context),mt=ut||{},ft=mt.listeners,zt=mt.getValue,Wt=d.useRef();Wt.current=Ie(ut?zt():Me==null?void 0:Me.defaultValue);var Rt=d.useState({}),vt=(0,ue.Z)(Rt,2),bt=vt[1];return(0,ae.Z)(function(){if(!ut)return;function Nt(Zt){var rn=Ie(Zt);(0,B.Z)(Wt.current,rn,!0)||bt({})}return ft.add(Nt),function(){ft.delete(Nt)}},[ut]),Wt.current}var g=_(32855),w=_(8654);function p(){var Me=d.createContext(null);function Te(){return d.useContext(Me)}function Ie(mt,ft){var zt=(0,w.Yr)(mt),Wt=function(vt,bt){var Nt=zt?{ref:bt}:{},Zt=d.useRef(0),rn=d.useRef(vt),gn=Te();return gn!==null?d.createElement(mt,(0,g.Z)({},vt,Nt)):((!ft||ft(rn.current,vt))&&(Zt.current+=1),rn.current=vt,d.createElement(Me.Provider,{value:Zt.current},d.createElement(mt,(0,g.Z)({},vt,Nt))))};return zt?d.forwardRef(Wt):Wt}function ut(mt,ft){var zt=(0,w.Yr)(mt),Wt=function(vt,bt){var Nt=zt?{ref:bt}:{};return Te(),d.createElement(mt,(0,g.Z)({},vt,Nt))};return zt?d.memo(d.forwardRef(Wt),ft):d.memo(Wt,ft)}return{makeImmutable:Ie,responseImmutable:ut,useImmutableMark:Te}}var E=p(),x=E.makeImmutable,L=E.responseImmutable,j=E.useImmutableMark,$=p(),le=$.makeImmutable,F=$.responseImmutable,H=$.useImmutableMark,D=te(),A=D;function Q(Me,Te){var Ie=React.useRef(0);Ie.current+=1;var ut=React.useRef(Me),mt=[];Object.keys(Me||{}).map(function(zt){var Wt;(Me==null?void 0:Me[zt])!==((Wt=ut.current)===null||Wt===void 0?void 0:Wt[zt])&&mt.push(zt)}),ut.current=Me;var ft=React.useRef([]);return mt.length&&(ft.current=mt),React.useDebugValue(Ie.current),React.useDebugValue(ft.current.join(", ")),Te&&console.log("".concat(Te,":"),Ie.current,ft.current),Ie.current}var ne=null,ee=null,oe=_(34666),ge=_(27247),me=_(74430),ot=_(92310),U=_.n(ot),C=_(80547),P=_(97938),G=_(48736),re=d.createContext({renderWithProps:!1}),X=re,y="RC_TABLE_KEY";function v(Me){return Me==null?[]:Array.isArray(Me)?Me:[Me]}function O(Me){var Te=[],Ie={};return Me.forEach(function(ut){for(var mt=ut||{},ft=mt.key,zt=mt.dataIndex,Wt=ft||v(zt).join("-")||y;Ie[Wt];)Wt="".concat(Wt,"_next");Ie[Wt]=!0,Te.push(Wt)}),Te}function pe(Me){return Me!=null}function He(Me){return typeof Me=="number"&&!Number.isNaN(Me)}function tt(Me){return Me&&(0,oe.Z)(Me)==="object"&&!Array.isArray(Me)&&!d.isValidElement(Me)}function wt(Me,Te,Ie,ut,mt,ft){var zt=d.useContext(X),Wt=H(),Rt=(0,C.Z)(function(){if(pe(ut))return[ut];var vt=Te==null||Te===""?[]:Array.isArray(Te)?Te:[Te],bt=(0,P.Z)(Me,vt),Nt=bt,Zt=void 0;if(mt){var rn=mt(bt,Me,Ie);tt(rn)?(Nt=rn.children,Zt=rn.props,zt.renderWithProps=!0):Nt=rn}return[Nt,Zt]},[Wt,Me,ut,Te,mt,Ie],function(vt,bt){if(ft){var Nt=(0,ue.Z)(vt,2),Zt=Nt[1],rn=(0,ue.Z)(bt,2),gn=rn[1];return ft(gn,Zt)}return zt.renderWithProps?!0:!(0,B.Z)(vt,bt,!0)});return Rt}function It(Me,Te,Ie,ut){var mt=Me+Te-1;return Me<=ut&&mt>=Ie}function Ft(Me,Te){return o(A,function(Ie){var ut=It(Me,Te||1,Ie.hoverStartRow,Ie.hoverEndRow);return[ut,Ie.onHover]})}var Ht=_(70425),Ke=function(Te){var Ie=Te.ellipsis,ut=Te.rowType,mt=Te.children,ft,zt=Ie===!0?{showTitle:!0}:Ie;return zt&&(zt.showTitle||ut==="header")&&(typeof mt=="string"||typeof mt=="number"?ft=mt.toString():d.isValidElement(mt)&&typeof mt.props.children=="string"&&(ft=mt.props.children)),ft};function en(Me){var Te,Ie,ut,mt,ft,zt,Wt,Rt,vt=Me.component,bt=Me.children,Nt=Me.ellipsis,Zt=Me.scope,rn=Me.prefixCls,gn=Me.className,Fn=Me.align,pn=Me.record,xn=Me.render,On=Me.dataIndex,kn=Me.renderIndex,Gn=Me.shouldCellUpdate,Sn=Me.index,Hn=Me.rowType,Un=Me.colSpan,tr=Me.rowSpan,Wn=Me.fixLeft,Jn=Me.fixRight,lr=Me.firstFixLeft,Je=Me.lastFixLeft,Jt=Me.firstFixRight,on=Me.lastFixRight,jt=Me.appendNode,mn=Me.additionalProps,Kn=mn===void 0?{}:mn,rr=Me.isSticky,Qn="".concat(rn,"-cell"),Vn=o(A,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Sr=Vn.supportSticky,Ur=Vn.allColumnsFixedLeft,Nr=Vn.rowHoverable,Jr=wt(pn,On,kn,bt,xn,Gn),Hr=(0,ue.Z)(Jr,2),jr=Hr[0],yr=Hr[1],Cr={},Fr=typeof Wn=="number"&&Sr,br=typeof Jn=="number"&&Sr;Fr&&(Cr.position="sticky",Cr.left=Wn),br&&(Cr.position="sticky",Cr.right=Jn);var Er=(Te=(Ie=(ut=yr==null?void 0:yr.colSpan)!==null&&ut!==void 0?ut:Kn.colSpan)!==null&&Ie!==void 0?Ie:Un)!==null&&Te!==void 0?Te:1,xr=(mt=(ft=(zt=yr==null?void 0:yr.rowSpan)!==null&&zt!==void 0?zt:Kn.rowSpan)!==null&&ft!==void 0?ft:tr)!==null&&mt!==void 0?mt:1,Xn=Ft(Sn,xr),ur=(0,ue.Z)(Xn,2),cr=ur[0],dr=ur[1],or=(0,Ht.zX)(function(Ir){var Zr;pn&&dr(Sn,Sn+xr-1),Kn==null||(Zr=Kn.onMouseEnter)===null||Zr===void 0||Zr.call(Kn,Ir)}),_r=(0,Ht.zX)(function(Ir){var Zr;pn&&dr(-1,-1),Kn==null||(Zr=Kn.onMouseLeave)===null||Zr===void 0||Zr.call(Kn,Ir)});if(Er===0||xr===0)return null;var Yr=(Wt=Kn.title)!==null&&Wt!==void 0?Wt:Ke({rowType:Hn,ellipsis:Nt,children:jr}),jn=U()(Qn,gn,(Rt={},(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)(Rt,"".concat(Qn,"-fix-left"),Fr&&Sr),"".concat(Qn,"-fix-left-first"),lr&&Sr),"".concat(Qn,"-fix-left-last"),Je&&Sr),"".concat(Qn,"-fix-left-all"),Je&&Ur&&Sr),"".concat(Qn,"-fix-right"),br&&Sr),"".concat(Qn,"-fix-right-first"),Jt&&Sr),"".concat(Qn,"-fix-right-last"),on&&Sr),"".concat(Qn,"-ellipsis"),Nt),"".concat(Qn,"-with-append"),jt),"".concat(Qn,"-fix-sticky"),(Fr||br)&&rr&&Sr),(0,me.Z)(Rt,"".concat(Qn,"-row-hover"),!yr&&cr)),Kn.className,yr==null?void 0:yr.className),ir={};Fn&&(ir.textAlign=Fn);var sr=(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},yr==null?void 0:yr.style),Cr),ir),Kn.style),Dr=jr;return(0,oe.Z)(Dr)==="object"&&!Array.isArray(Dr)&&!d.isValidElement(Dr)&&(Dr=null),Nt&&(Je||Jt)&&(Dr=d.createElement("span",{className:"".concat(Qn,"-content")},Dr)),d.createElement(vt,(0,g.Z)({},yr,Kn,{className:jn,style:sr,title:Yr,scope:Zt,onMouseEnter:Nr?or:void 0,onMouseLeave:Nr?_r:void 0,colSpan:Er!==1?Er:null,rowSpan:xr!==1?xr:null}),jt,Dr)}var Tt=d.memo(en);function an(Me,Te,Ie,ut,mt){var ft=Ie[Me]||{},zt=Ie[Te]||{},Wt,Rt;ft.fixed==="left"?Wt=ut.left[mt==="rtl"?Te:Me]:zt.fixed==="right"&&(Rt=ut.right[mt==="rtl"?Me:Te]);var vt=!1,bt=!1,Nt=!1,Zt=!1,rn=Ie[Te+1],gn=Ie[Me-1],Fn=rn&&!rn.fixed||gn&&!gn.fixed||Ie.every(function(Gn){return Gn.fixed==="left"});if(mt==="rtl"){if(Wt!==void 0){var pn=gn&&gn.fixed==="left";Zt=!pn&&Fn}else if(Rt!==void 0){var xn=rn&&rn.fixed==="right";Nt=!xn&&Fn}}else if(Wt!==void 0){var On=rn&&rn.fixed==="left";vt=!On&&Fn}else if(Rt!==void 0){var kn=gn&&gn.fixed==="right";bt=!kn&&Fn}return{fixLeft:Wt,fixRight:Rt,lastFixLeft:vt,firstFixRight:bt,lastFixRight:Nt,firstFixLeft:Zt,isSticky:ut.isSticky}}var qe=d.createContext({}),yt=qe;function Fe(Me){var Te=Me.className,Ie=Me.index,ut=Me.children,mt=Me.colSpan,ft=mt===void 0?1:mt,zt=Me.rowSpan,Wt=Me.align,Rt=o(A,["prefixCls","direction"]),vt=Rt.prefixCls,bt=Rt.direction,Nt=d.useContext(yt),Zt=Nt.scrollColumnIndex,rn=Nt.stickyOffsets,gn=Nt.flattenColumns,Fn=Ie+ft-1,pn=Fn+1===Zt?ft+1:ft,xn=an(Ie,Ie+pn-1,gn,rn,bt);return d.createElement(Tt,(0,g.Z)({className:Te,index:Ie,component:"td",prefixCls:vt,record:null,dataIndex:null,align:Wt,colSpan:pn,rowSpan:zt,render:function(){return ut}},xn))}var Ae=_(43079),V=["children"];function je(Me){var Te=Me.children,Ie=(0,Ae.Z)(Me,V);return d.createElement("tr",Ie,Te)}function Qe(Me){var Te=Me.children;return Te}Qe.Row=je,Qe.Cell=Fe;var J=Qe;function M(Me){var Te=Me.children,Ie=Me.stickyOffsets,ut=Me.flattenColumns,mt=o(A,"prefixCls"),ft=ut.length-1,zt=ut[ft],Wt=d.useMemo(function(){return{stickyOffsets:Ie,flattenColumns:ut,scrollColumnIndex:zt!=null&&zt.scrollbar?ft:null}},[zt,ut,ft,Ie]);return d.createElement(yt.Provider,{value:Wt},d.createElement("tfoot",{className:"".concat(mt,"-summary")},Te))}var Se=F(M),be=J,W=_(29301),fe=_(24514),ye=_(75152),et=_(26112);function Ve(Me,Te,Ie,ut,mt,ft,zt){Me.push({record:Te,indent:Ie,index:zt});var Wt=ft(Te),Rt=mt==null?void 0:mt.has(Wt);if(Te&&Array.isArray(Te[ut])&&Rt)for(var vt=0;vt<Te[ut].length;vt+=1)Ve(Me,Te[ut][vt],Ie+1,ut,mt,ft,vt)}function $e(Me,Te,Ie,ut){var mt=d.useMemo(function(){if(Ie!=null&&Ie.size){for(var ft=[],zt=0;zt<(Me==null?void 0:Me.length);zt+=1){var Wt=Me[zt];Ve(ft,Wt,0,Te,Ie,ut,zt)}return ft}return Me==null?void 0:Me.map(function(Rt,vt){return{record:Rt,indent:0,index:vt}})},[Me,Te,Ie,ut]);return mt}function Ye(Me,Te,Ie,ut){var mt=o(A,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ft=mt.flattenColumns,zt=mt.expandableType,Wt=mt.expandedKeys,Rt=mt.childrenColumnName,vt=mt.onTriggerExpand,bt=mt.rowExpandable,Nt=mt.onRow,Zt=mt.expandRowByClick,rn=mt.rowClassName,gn=zt==="nest",Fn=zt==="row"&&(!bt||bt(Me)),pn=Fn||gn,xn=Wt&&Wt.has(Te),On=Rt&&Me&&Me[Rt],kn=(0,Ht.zX)(vt),Gn=Nt==null?void 0:Nt(Me,Ie),Sn=Gn==null?void 0:Gn.onClick,Hn=function(Jn){Zt&&pn&&vt(Me,Jn);for(var lr=arguments.length,Je=new Array(lr>1?lr-1:0),Jt=1;Jt<lr;Jt++)Je[Jt-1]=arguments[Jt];Sn==null||Sn.apply(void 0,[Jn].concat(Je))},Un;typeof rn=="string"?Un=rn:typeof rn=="function"&&(Un=rn(Me,Ie,ut));var tr=O(ft);return(0,ge.Z)((0,ge.Z)({},mt),{},{columnsKey:tr,nestExpandable:gn,expanded:xn,hasNestChildren:On,record:Me,onTriggerExpand:kn,rowSupportExpand:Fn,expandable:pn,rowProps:(0,ge.Z)((0,ge.Z)({},Gn),{},{className:U()(Un,Gn==null?void 0:Gn.className),onClick:Hn})})}function lt(Me){var Te=Me.prefixCls,Ie=Me.children,ut=Me.component,mt=Me.cellComponent,ft=Me.className,zt=Me.expanded,Wt=Me.colSpan,Rt=Me.isEmpty,vt=o(A,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),bt=vt.scrollbarSize,Nt=vt.fixHeader,Zt=vt.fixColumn,rn=vt.componentWidth,gn=vt.horizonScroll,Fn=Ie;return(Rt?gn&&rn:Zt)&&(Fn=d.createElement("div",{style:{width:rn-(Nt&&!Rt?bt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Te,"-expanded-row-fixed")},Fn)),d.createElement(ut,{className:ft,style:{display:zt?null:"none"}},d.createElement(Tt,{component:mt,prefixCls:Te,colSpan:Wt},Fn))}var de=lt;function K(Me){var Te=Me.prefixCls,Ie=Me.record,ut=Me.onExpand,mt=Me.expanded,ft=Me.expandable,zt="".concat(Te,"-row-expand-icon");if(!ft)return d.createElement("span",{className:U()(zt,"".concat(Te,"-row-spaced"))});var Wt=function(vt){ut(Ie,vt),vt.stopPropagation()};return d.createElement("span",{className:U()(zt,(0,me.Z)((0,me.Z)({},"".concat(Te,"-row-expanded"),mt),"".concat(Te,"-row-collapsed"),!mt)),onClick:Wt})}function N(Me,Te,Ie){var ut=[];function mt(ft){(ft||[]).forEach(function(zt,Wt){ut.push(Te(zt,Wt)),mt(zt[Ie])})}return mt(Me),ut}function Le(Me,Te,Ie,ut){return typeof Me=="string"?Me:typeof Me=="function"?Me(Te,Ie,ut):""}function De(Me,Te,Ie,ut,mt){var ft=Me.record,zt=Me.prefixCls,Wt=Me.columnsKey,Rt=Me.fixedInfoList,vt=Me.expandIconColumnIndex,bt=Me.nestExpandable,Nt=Me.indentSize,Zt=Me.expandIcon,rn=Me.expanded,gn=Me.hasNestChildren,Fn=Me.onTriggerExpand,pn=Wt[Ie],xn=Rt[Ie],On;Ie===(vt||0)&&bt&&(On=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(Nt*ut,"px")},className:"".concat(zt,"-row-indent indent-level-").concat(ut)}),Zt({prefixCls:zt,expanded:rn,expandable:gn,record:ft,onExpand:Fn})));var kn;return Te.onCell&&(kn=Te.onCell(ft,mt)),{key:pn,fixedInfo:xn,appendCellNode:On,additionalCellProps:kn||{}}}function Ce(Me){var Te=Me.className,Ie=Me.style,ut=Me.record,mt=Me.index,ft=Me.renderIndex,zt=Me.rowKey,Wt=Me.indent,Rt=Wt===void 0?0:Wt,vt=Me.rowComponent,bt=Me.cellComponent,Nt=Me.scopeCellComponent,Zt=Ye(ut,zt,mt,Rt),rn=Zt.prefixCls,gn=Zt.flattenColumns,Fn=Zt.expandedRowClassName,pn=Zt.expandedRowRender,xn=Zt.rowProps,On=Zt.expanded,kn=Zt.rowSupportExpand,Gn=d.useRef(!1);Gn.current||(Gn.current=On);var Sn=Le(Fn,ut,mt,Rt),Hn=d.createElement(vt,(0,g.Z)({},xn,{"data-row-key":zt,className:U()(Te,"".concat(rn,"-row"),"".concat(rn,"-row-level-").concat(Rt),xn==null?void 0:xn.className,(0,me.Z)({},Sn,Rt>=1)),style:(0,ge.Z)((0,ge.Z)({},Ie),xn==null?void 0:xn.style)}),gn.map(function(Wn,Jn){var lr=Wn.render,Je=Wn.dataIndex,Jt=Wn.className,on=De(Zt,Wn,Jn,Rt,mt),jt=on.key,mn=on.fixedInfo,Kn=on.appendCellNode,rr=on.additionalCellProps;return d.createElement(Tt,(0,g.Z)({className:Jt,ellipsis:Wn.ellipsis,align:Wn.align,scope:Wn.rowScope,component:Wn.rowScope?Nt:bt,prefixCls:rn,key:jt,record:ut,index:mt,renderIndex:ft,dataIndex:Je,render:lr,shouldCellUpdate:Wn.shouldCellUpdate},mn,{appendNode:Kn,additionalProps:rr}))})),Un;if(kn&&(Gn.current||On)){var tr=pn(ut,mt,Rt+1,On);Un=d.createElement(de,{expanded:On,className:U()("".concat(rn,"-expanded-row"),"".concat(rn,"-expanded-row-level-").concat(Rt+1),Sn),prefixCls:rn,component:vt,cellComponent:bt,colSpan:gn.length,isEmpty:!1},tr)}return d.createElement(d.Fragment,null,Hn,Un)}var st=F(Ce);function at(Me){var Te=Me.columnKey,Ie=Me.onColumnResize,ut=d.useRef();return(0,ae.Z)(function(){ut.current&&Ie(Te,ut.current.offsetWidth)},[]),d.createElement(W.Z,{data:Te},d.createElement("td",{ref:ut,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Oe=_(29194);function Et(Me){var Te=Me.prefixCls,Ie=Me.columnsKey,ut=Me.onColumnResize,mt=d.useRef(null);return d.createElement("tr",{"aria-hidden":"true",className:"".concat(Te,"-measure-row"),style:{height:0,fontSize:0},ref:mt},d.createElement(W.Z.Collection,{onBatchResize:function(zt){(0,Oe.Z)(mt.current)&&zt.forEach(function(Wt){var Rt=Wt.data,vt=Wt.size;ut(Rt,vt.offsetWidth)})}},Ie.map(function(ft){return d.createElement(at,{key:ft,columnKey:ft,onColumnResize:ut})})))}function Vt(Me){var Te=Me.data,Ie=Me.measureColumnWidth,ut=o(A,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),mt=ut.prefixCls,ft=ut.getComponent,zt=ut.onColumnResize,Wt=ut.flattenColumns,Rt=ut.getRowKey,vt=ut.expandedKeys,bt=ut.childrenColumnName,Nt=ut.emptyNode,Zt=$e(Te,bt,vt,Rt),rn=d.useRef({renderWithProps:!1}),gn=ft(["body","wrapper"],"tbody"),Fn=ft(["body","row"],"tr"),pn=ft(["body","cell"],"td"),xn=ft(["body","cell"],"th"),On;Te.length?On=Zt.map(function(Gn,Sn){var Hn=Gn.record,Un=Gn.indent,tr=Gn.index,Wn=Rt(Hn,Sn);return d.createElement(st,{key:Wn,rowKey:Wn,record:Hn,index:Sn,renderIndex:tr,rowComponent:Fn,cellComponent:pn,scopeCellComponent:xn,indent:Un})}):On=d.createElement(de,{expanded:!0,className:"".concat(mt,"-placeholder"),prefixCls:mt,component:Fn,cellComponent:pn,colSpan:Wt.length,isEmpty:!0},Nt);var kn=O(Wt);return d.createElement(X.Provider,{value:rn.current},d.createElement(gn,{className:"".concat(mt,"-tbody")},Ie&&d.createElement(Et,{prefixCls:mt,columnsKey:kn,onColumnResize:zt}),On))}var St=F(Vt),Bt=_(54451),se=["columnType"];function ve(Me){for(var Te=Me.colWidths,Ie=Me.columns,ut=Me.columCount,mt=o(A,["tableLayout"]),ft=mt.tableLayout,zt=[],Wt=ut||Ie.length,Rt=!1,vt=Wt-1;vt>=0;vt-=1){var bt=Te[vt],Nt=Ie&&Ie[vt],Zt=void 0,rn=void 0;if(Nt&&(Zt=Nt[Bt.v],ft==="auto"&&(rn=Nt.minWidth)),bt||rn||Zt||Rt){var gn=Zt||{},Fn=gn.columnType,pn=(0,Ae.Z)(gn,se);zt.unshift(d.createElement("col",(0,g.Z)({key:vt,style:{width:bt,minWidth:rn}},pn))),Rt=!0}}return d.createElement("colgroup",null,zt)}var Ee=ve,k=_(3300),Y=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function he(Me,Te){return(0,d.useMemo)(function(){for(var Ie=[],ut=0;ut<Te;ut+=1){var mt=Me[ut];if(mt!==void 0)Ie[ut]=mt;else return null}return Ie},[Me.join("_"),Te])}var ce=d.forwardRef(function(Me,Te){var Ie=Me.className,ut=Me.noData,mt=Me.columns,ft=Me.flattenColumns,zt=Me.colWidths,Wt=Me.columCount,Rt=Me.stickyOffsets,vt=Me.direction,bt=Me.fixHeader,Nt=Me.stickyTopOffset,Zt=Me.stickyBottomOffset,rn=Me.stickyClassName,gn=Me.onScroll,Fn=Me.maxContentScroll,pn=Me.children,xn=(0,Ae.Z)(Me,Y),On=o(A,["prefixCls","scrollbarSize","isSticky","getComponent"]),kn=On.prefixCls,Gn=On.scrollbarSize,Sn=On.isSticky,Hn=On.getComponent,Un=Hn(["header","table"],"table"),tr=Sn&&!bt?0:Gn,Wn=d.useRef(null),Jn=d.useCallback(function(rr){(0,w.mH)(Te,rr),(0,w.mH)(Wn,rr)},[]);d.useEffect(function(){var rr;function Qn(Vn){var Sr=Vn,Ur=Sr.currentTarget,Nr=Sr.deltaX;Nr&&(gn({currentTarget:Ur,scrollLeft:Ur.scrollLeft+Nr}),Vn.preventDefault())}return(rr=Wn.current)===null||rr===void 0||rr.addEventListener("wheel",Qn,{passive:!1}),function(){var Vn;(Vn=Wn.current)===null||Vn===void 0||Vn.removeEventListener("wheel",Qn)}},[]);var lr=d.useMemo(function(){return ft.every(function(rr){return rr.width})},[ft]),Je=ft[ft.length-1],Jt={fixed:Je?Je.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(kn,"-cell-scrollbar")}}},on=(0,d.useMemo)(function(){return tr?[].concat((0,k.Z)(mt),[Jt]):mt},[tr,mt]),jt=(0,d.useMemo)(function(){return tr?[].concat((0,k.Z)(ft),[Jt]):ft},[tr,ft]),mn=(0,d.useMemo)(function(){var rr=Rt.right,Qn=Rt.left;return(0,ge.Z)((0,ge.Z)({},Rt),{},{left:vt==="rtl"?[].concat((0,k.Z)(Qn.map(function(Vn){return Vn+tr})),[0]):Qn,right:vt==="rtl"?rr:[].concat((0,k.Z)(rr.map(function(Vn){return Vn+tr})),[0]),isSticky:Sn})},[tr,Rt,Sn]),Kn=he(zt,Wt);return d.createElement("div",{style:(0,ge.Z)({overflow:"hidden"},Sn?{top:Nt,bottom:Zt}:{}),ref:Jn,className:U()(Ie,(0,me.Z)({},rn,!!rn))},d.createElement(Un,{style:{tableLayout:"fixed",visibility:ut||Kn?null:"hidden"}},(!ut||!Fn||lr)&&d.createElement(Ee,{colWidths:Kn?[].concat((0,k.Z)(Kn),[tr]):[],columCount:Wt+1,columns:jt}),pn((0,ge.Z)((0,ge.Z)({},xn),{},{stickyOffsets:mn,columns:on,flattenColumns:jt}))))}),xe=d.memo(ce),Be=function(Te){var Ie=Te.cells,ut=Te.stickyOffsets,mt=Te.flattenColumns,ft=Te.rowComponent,zt=Te.cellComponent,Wt=Te.onHeaderRow,Rt=Te.index,vt=o(A,["prefixCls","direction"]),bt=vt.prefixCls,Nt=vt.direction,Zt;Wt&&(Zt=Wt(Ie.map(function(gn){return gn.column}),Rt));var rn=O(Ie.map(function(gn){return gn.column}));return d.createElement(ft,Zt,Ie.map(function(gn,Fn){var pn=gn.column,xn=an(gn.colStart,gn.colEnd,mt,ut,Nt),On;return pn&&pn.onHeaderCell&&(On=gn.column.onHeaderCell(pn)),d.createElement(Tt,(0,g.Z)({},gn,{scope:pn.title?gn.colSpan>1?"colgroup":"col":null,ellipsis:pn.ellipsis,align:pn.align,component:zt,prefixCls:bt,key:rn[Fn]},xn,{additionalProps:On,rowType:"header"}))}))},Xe=Be;function ct(Me){var Te=[];function Ie(zt,Wt){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Te[Rt]=Te[Rt]||[];var vt=Wt,bt=zt.filter(Boolean).map(function(Nt){var Zt={key:Nt.key,className:Nt.className||"",children:Nt.title,column:Nt,colStart:vt},rn=1,gn=Nt.children;return gn&&gn.length>0&&(rn=Ie(gn,vt,Rt+1).reduce(function(Fn,pn){return Fn+pn},0),Zt.hasSubColumns=!0),"colSpan"in Nt&&(rn=Nt.colSpan),"rowSpan"in Nt&&(Zt.rowSpan=Nt.rowSpan),Zt.colSpan=rn,Zt.colEnd=Zt.colStart+rn-1,Te[Rt].push(Zt),vt+=rn,rn});return bt}Ie(Me,0);for(var ut=Te.length,mt=function(Wt){Te[Wt].forEach(function(Rt){!("rowSpan"in Rt)&&!Rt.hasSubColumns&&(Rt.rowSpan=ut-Wt)})},ft=0;ft<ut;ft+=1)mt(ft);return Te}var nt=function(Te){var Ie=Te.stickyOffsets,ut=Te.columns,mt=Te.flattenColumns,ft=Te.onHeaderRow,zt=o(A,["prefixCls","getComponent"]),Wt=zt.prefixCls,Rt=zt.getComponent,vt=d.useMemo(function(){return ct(ut)},[ut]),bt=Rt(["header","wrapper"],"thead"),Nt=Rt(["header","row"],"tr"),Zt=Rt(["header","cell"],"th");return d.createElement(bt,{className:"".concat(Wt,"-thead")},vt.map(function(rn,gn){var Fn=d.createElement(Xe,{key:gn,flattenColumns:mt,cells:rn,stickyOffsets:Ie,rowComponent:Nt,cellComponent:Zt,onHeaderRow:ft,index:gn});return Fn}))},Ue=F(nt),I=_(97347);function Z(Me,Te,Ie){var ut=(0,Bt.g)(Me),mt=ut.expandIcon,ft=ut.expandedRowKeys,zt=ut.defaultExpandedRowKeys,Wt=ut.defaultExpandAllRows,Rt=ut.expandedRowRender,vt=ut.onExpand,bt=ut.onExpandedRowsChange,Nt=ut.childrenColumnName,Zt=mt||K,rn=Nt||"children",gn=d.useMemo(function(){return Rt?"row":Me.expandable&&Me.internalHooks===h.R&&Me.expandable.__PARENT_RENDER_ICON__||Te.some(function(Sn){return Sn&&(0,oe.Z)(Sn)==="object"&&Sn[rn]})?"nest":!1},[!!Rt,Te]),Fn=d.useState(function(){return zt||(Wt?N(Te,Ie,rn):[])}),pn=(0,ue.Z)(Fn,2),xn=pn[0],On=pn[1],kn=d.useMemo(function(){return new Set(ft||xn||[])},[ft,xn]),Gn=d.useCallback(function(Sn){var Hn=Ie(Sn,Te.indexOf(Sn)),Un,tr=kn.has(Hn);tr?(kn.delete(Hn),Un=(0,k.Z)(kn)):Un=[].concat((0,k.Z)(kn),[Hn]),On(Un),vt&&vt(!tr,Sn),bt&&bt(Un)},[Ie,kn,Te,vt,bt]);return[ut,gn,kn,Zt,rn,Gn]}function S(Me,Te,Ie){var ut=Me.map(function(mt,ft){return an(ft,ft,Me,Te,Ie)});return(0,C.Z)(function(){return ut},[ut],function(mt,ft){return!(0,B.Z)(mt,ft)})}function ze(Me){var Te=(0,d.useRef)(Me),Ie=(0,d.useState)({}),ut=(0,ue.Z)(Ie,2),mt=ut[1],ft=(0,d.useRef)(null),zt=(0,d.useRef)([]);function Wt(Rt){zt.current.push(Rt);var vt=Promise.resolve();ft.current=vt,vt.then(function(){if(ft.current===vt){var bt=zt.current,Nt=Te.current;zt.current=[],bt.forEach(function(Zt){Te.current=Zt(Te.current)}),ft.current=null,Nt!==Te.current&&mt({})}})}return(0,d.useEffect)(function(){return function(){ft.current=null}},[]),[Te.current,Wt]}function ke(Me){var Te=(0,d.useRef)(Me||null),Ie=(0,d.useRef)();function ut(){window.clearTimeout(Ie.current)}function mt(zt){Te.current=zt,ut(),Ie.current=window.setTimeout(function(){Te.current=null,Ie.current=void 0},100)}function ft(){return Te.current}return(0,d.useEffect)(function(){return ut},[]),[mt,ft]}function Pe(){var Me=d.useState(-1),Te=(0,ue.Z)(Me,2),Ie=Te[0],ut=Te[1],mt=d.useState(-1),ft=(0,ue.Z)(mt,2),zt=ft[0],Wt=ft[1],Rt=d.useCallback(function(vt,bt){ut(vt),Wt(bt)},[]);return[Ie,zt,Rt]}var Ge=_(47273),We=(0,Ge.Z)()?window:null;function dt(Me,Te){var Ie=(0,oe.Z)(Me)==="object"?Me:{},ut=Ie.offsetHeader,mt=ut===void 0?0:ut,ft=Ie.offsetSummary,zt=ft===void 0?0:ft,Wt=Ie.offsetScroll,Rt=Wt===void 0?0:Wt,vt=Ie.getContainer,bt=vt===void 0?function(){return We}:vt,Nt=bt()||We,Zt=!!Me;return d.useMemo(function(){return{isSticky:Zt,stickyClassName:Zt?"".concat(Te,"-sticky-holder"):"",offsetHeader:mt,offsetSummary:zt,offsetScroll:Rt,container:Nt}},[Zt,Rt,mt,zt,Te,Nt])}function Lt(Me,Te,Ie){var ut=(0,d.useMemo)(function(){var mt=Te.length,ft=function(vt,bt,Nt){for(var Zt=[],rn=0,gn=vt;gn!==bt;gn+=Nt)Zt.push(rn),Te[gn].fixed&&(rn+=Me[gn]||0);return Zt},zt=ft(0,mt,1),Wt=ft(mt-1,-1,-1).reverse();return Ie==="rtl"?{left:Wt,right:zt}:{left:zt,right:Wt}},[Me,Te,Ie]);return ut}var Pt=Lt;function cn(Me){var Te=Me.className,Ie=Me.children;return d.createElement("div",{className:Te},Ie)}var Ne=cn,Re=_(8224),gt=_(16089),pt=_(76846);function Mt(Me){var Te=(0,pt.bn)(Me),Ie=Te.getBoundingClientRect(),ut=document.documentElement;return{left:Ie.left+(window.pageXOffset||ut.scrollLeft)-(ut.clientLeft||document.body.clientLeft||0),top:Ie.top+(window.pageYOffset||ut.scrollTop)-(ut.clientTop||document.body.clientTop||0)}}var xt=function(Te,Ie){var ut,mt,ft=Te.scrollBodyRef,zt=Te.onScroll,Wt=Te.offsetScroll,Rt=Te.container,vt=Te.direction,bt=o(A,"prefixCls"),Nt=((ut=ft.current)===null||ut===void 0?void 0:ut.scrollWidth)||0,Zt=((mt=ft.current)===null||mt===void 0?void 0:mt.clientWidth)||0,rn=Nt&&Zt*(Zt/Nt),gn=d.useRef(),Fn=ze({scrollLeft:0,isHiddenScrollBar:!0}),pn=(0,ue.Z)(Fn,2),xn=pn[0],On=pn[1],kn=d.useRef({delta:0,x:0}),Gn=d.useState(!1),Sn=(0,ue.Z)(Gn,2),Hn=Sn[0],Un=Sn[1],tr=d.useRef(null);d.useEffect(function(){return function(){gt.Z.cancel(tr.current)}},[]);var Wn=function(){Un(!1)},Jn=function(jt){jt.persist(),kn.current.delta=jt.pageX-xn.scrollLeft,kn.current.x=0,Un(!0),jt.preventDefault()},lr=function(jt){var mn,Kn=jt||((mn=window)===null||mn===void 0?void 0:mn.event),rr=Kn.buttons;if(!Hn||rr===0){Hn&&Un(!1);return}var Qn=kn.current.x+jt.pageX-kn.current.x-kn.current.delta,Vn=vt==="rtl";Qn=Math.max(Vn?rn-Zt:0,Math.min(Vn?0:Zt-rn,Qn));var Sr=!Vn||Math.abs(Qn)+Math.abs(rn)<Zt;Sr&&(zt({scrollLeft:Qn/Zt*(Nt+2)}),kn.current.x=jt.pageX)},Je=function(){gt.Z.cancel(tr.current),tr.current=(0,gt.Z)(function(){if(ft.current){var jt=Mt(ft.current).top,mn=jt+ft.current.offsetHeight,Kn=Rt===window?document.documentElement.scrollTop+window.innerHeight:Mt(Rt).top+Rt.clientHeight;mn-(0,ye.Z)()<=Kn||jt>=Kn-Wt?On(function(rr){return(0,ge.Z)((0,ge.Z)({},rr),{},{isHiddenScrollBar:!0})}):On(function(rr){return(0,ge.Z)((0,ge.Z)({},rr),{},{isHiddenScrollBar:!1})})}})},Jt=function(jt){On(function(mn){return(0,ge.Z)((0,ge.Z)({},mn),{},{scrollLeft:jt/Nt*Zt||0})})};return d.useImperativeHandle(Ie,function(){return{setScrollLeft:Jt,checkScrollBarVisible:Je}}),d.useEffect(function(){var on=(0,Re.Z)(document.body,"mouseup",Wn,!1),jt=(0,Re.Z)(document.body,"mousemove",lr,!1);return Je(),function(){on.remove(),jt.remove()}},[rn,Hn]),d.useEffect(function(){if(ft.current){for(var on=[],jt=(0,pt.bn)(ft.current);jt;)on.push(jt),jt=jt.parentElement;return on.forEach(function(mn){return mn.addEventListener("scroll",Je,!1)}),window.addEventListener("resize",Je,!1),window.addEventListener("scroll",Je,!1),Rt.addEventListener("scroll",Je,!1),function(){on.forEach(function(mn){return mn.removeEventListener("scroll",Je)}),window.removeEventListener("resize",Je),window.removeEventListener("scroll",Je),Rt.removeEventListener("scroll",Je)}}},[Rt]),d.useEffect(function(){xn.isHiddenScrollBar||On(function(on){var jt=ft.current;return jt?(0,ge.Z)((0,ge.Z)({},on),{},{scrollLeft:jt.scrollLeft/jt.scrollWidth*jt.clientWidth}):on})},[xn.isHiddenScrollBar]),Nt<=Zt||!rn||xn.isHiddenScrollBar?null:d.createElement("div",{style:{height:(0,ye.Z)(),width:Zt,bottom:Wt},className:"".concat(bt,"-sticky-scroll")},d.createElement("div",{onMouseDown:Jn,ref:gn,className:U()("".concat(bt,"-sticky-scroll-bar"),(0,me.Z)({},"".concat(bt,"-sticky-scroll-bar-active"),Hn)),style:{width:"".concat(rn,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},At=d.forwardRef(xt);function Kt(Me){return null}var nn=Kt;function Ot(Me){return null}var dn=Ot,Qt="rc-table",$t=[],Dt={};function Ze(){return"No Data"}function _t(Me,Te){var Ie=(0,ge.Z)({rowKey:"key",prefixCls:Qt,emptyText:Ze},Me),ut=Ie.prefixCls,mt=Ie.className,ft=Ie.rowClassName,zt=Ie.style,Wt=Ie.data,Rt=Ie.rowKey,vt=Ie.scroll,bt=Ie.tableLayout,Nt=Ie.direction,Zt=Ie.title,rn=Ie.footer,gn=Ie.summary,Fn=Ie.caption,pn=Ie.id,xn=Ie.showHeader,On=Ie.components,kn=Ie.emptyText,Gn=Ie.onRow,Sn=Ie.onHeaderRow,Hn=Ie.onScroll,Un=Ie.internalHooks,tr=Ie.transformColumns,Wn=Ie.internalRefs,Jn=Ie.tailor,lr=Ie.getContainerWidth,Je=Ie.sticky,Jt=Ie.rowHoverable,on=Jt===void 0?!0:Jt,jt=Wt||$t,mn=!!jt.length,Kn=Un===h.R,rr=d.useCallback(function(Rr,kr){return(0,P.Z)(On,Rr)||kr},[On]),Qn=d.useMemo(function(){return typeof Rt=="function"?Rt:function(Rr){var kr=Rr&&Rr[Rt];return kr}},[Rt]),Vn=rr(["body"]),Sr=Pe(),Ur=(0,ue.Z)(Sr,3),Nr=Ur[0],Jr=Ur[1],Hr=Ur[2],jr=Z(Ie,jt,Qn),yr=(0,ue.Z)(jr,6),Cr=yr[0],Fr=yr[1],br=yr[2],Er=yr[3],xr=yr[4],Xn=yr[5],ur=vt==null?void 0:vt.x,cr=d.useState(0),dr=(0,ue.Z)(cr,2),or=dr[0],_r=dr[1],Yr=(0,I.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},Ie),Cr),{},{expandable:!!Cr.expandedRowRender,columnTitle:Cr.columnTitle,expandedKeys:br,getRowKey:Qn,onTriggerExpand:Xn,expandIcon:Er,expandIconColumnIndex:Cr.expandIconColumnIndex,direction:Nt,scrollWidth:Kn&&Jn&&typeof ur=="number"?ur:null,clientWidth:or}),Kn?tr:null),jn=(0,ue.Z)(Yr,4),ir=jn[0],sr=jn[1],Dr=jn[2],Ir=jn[3],Zr=Dr!=null?Dr:ur,oi=d.useMemo(function(){return{columns:ir,flattenColumns:sr}},[ir,sr]),ni=d.useRef(),qr=d.useRef(),Vr=d.useRef(),qi=d.useRef();d.useImperativeHandle(Te,function(){return{nativeElement:ni.current,scrollTo:function(kr){var li;if(Vr.current instanceof HTMLElement){var xi=kr.index,di=kr.top,ss=kr.key;if(He(di)){var as;(as=Vr.current)===null||as===void 0||as.scrollTo({top:di})}else{var os,ls=ss!=null?ss:Qn(jt[xi]);(os=Vr.current.querySelector('[data-row-key="'.concat(ls,'"]')))===null||os===void 0||os.scrollIntoView()}}else(li=Vr.current)!==null&&li!==void 0&&li.scrollTo&&Vr.current.scrollTo(kr)}}});var $i=d.useRef(),Ri=d.useState(!1),Ni=(0,ue.Z)(Ri,2),ji=Ni[0],ui=Ni[1],Vi=d.useState(!1),Si=(0,ue.Z)(Vi,2),Wi=Si[0],Ii=Si[1],es=d.useState(new Map),Mi=(0,ue.Z)(es,2),vs=Mi[0],Oi=Mi[1],ds=O(sr),ts=ds.map(function(Rr){return vs.get(Rr)}),yi=d.useMemo(function(){return ts},[ts.join("_")]),Fi=Pt(yi,sr,Nt),ii=vt&&pe(vt.y),ti=vt&&pe(Zr)||!!Cr.fixed,Tr=ti&&sr.some(function(Rr){var kr=Rr.fixed;return kr}),Ar=d.useRef(),$r=dt(Je,ut),Wr=$r.isSticky,Gr=$r.offsetHeader,Xr=$r.offsetSummary,mi=$r.offsetScroll,gi=$r.stickyClassName,Ai=$r.container,ei=d.useMemo(function(){return gn==null?void 0:gn(jt)},[gn,jt]),fi=(ii||Wr)&&d.isValidElement(ei)&&ei.type===J&&ei.props.fixed,Ci,Ti,fs;ii&&(Ti={overflowY:mn?"scroll":"auto",maxHeight:vt.y}),ti&&(Ci={overflowX:"auto"},ii||(Ti={overflowY:"hidden"}),fs={width:Zr===!0?"auto":Zr,minWidth:"100%"});var Gi=d.useCallback(function(Rr,kr){Oi(function(li){if(li.get(Rr)!==kr){var xi=new Map(li);return xi.set(Rr,kr),xi}return li})},[]),Qr=ke(null),Or=(0,ue.Z)(Qr,2),zr=Or[0],hi=Or[1];function si(Rr,kr){kr&&(typeof kr=="function"?kr(Rr):kr.scrollLeft!==Rr&&(kr.scrollLeft=Rr,kr.scrollLeft!==Rr&&setTimeout(function(){kr.scrollLeft=Rr},0)))}var _i=(0,z.Z)(function(Rr){var kr=Rr.currentTarget,li=Rr.scrollLeft,xi=Nt==="rtl",di=typeof li=="number"?li:kr.scrollLeft,ss=kr||Dt;if(!hi()||hi()===ss){var as;zr(ss),si(di,qr.current),si(di,Vr.current),si(di,$i.current),si(di,(as=Ar.current)===null||as===void 0?void 0:as.setScrollLeft)}var os=kr||qr.current;if(os){var ls=Kn&&Jn&&typeof Zr=="number"?Zr:os.scrollWidth,Gs=os.clientWidth;if(ls===Gs){ui(!1),Ii(!1);return}xi?(ui(-di<ls-Gs),Ii(-di>0)):(ui(di>0),Ii(di<ls-Gs))}}),ai=(0,z.Z)(function(Rr){_i(Rr),Hn==null||Hn(Rr)}),ci=function(){if(ti&&Vr.current){var kr;_i({currentTarget:(0,pt.bn)(Vr.current),scrollLeft:(kr=Vr.current)===null||kr===void 0?void 0:kr.scrollLeft})}else ui(!1),Ii(!1)},Ts=function(kr){var li,xi=kr.width;(li=Ar.current)===null||li===void 0||li.checkScrollBarVisible();var di=ni.current?ni.current.offsetWidth:xi;Kn&&lr&&ni.current&&(di=lr(ni.current,di)||di),di!==or&&(ci(),_r(di))},bn=d.useRef(!1);d.useEffect(function(){bn.current&&ci()},[ti,Wt,ir.length]),d.useEffect(function(){bn.current=!0},[]);var Bi=d.useState(0),ns=(0,ue.Z)(Bi,2),rs=ns[0],ea=ns[1],Us=d.useState(!0),Zs=(0,ue.Z)(Us,2),ta=Zs[0],Sa=Zs[1];(0,ae.Z)(function(){(!Jn||!Kn)&&(Vr.current instanceof Element?ea((0,ye.o)(Vr.current).width):ea((0,ye.o)(qi.current).width)),Sa((0,fe.G)("position","sticky"))},[]),d.useEffect(function(){Kn&&Wn&&(Wn.body.current=Vr.current)});var Ks=d.useCallback(function(Rr){return d.createElement(d.Fragment,null,d.createElement(Ue,Rr),fi==="top"&&d.createElement(Se,Rr,ei))},[fi,ei]),ys=d.useCallback(function(Rr){return d.createElement(Se,Rr,ei)},[ei]),is=rr(["table"],"table"),Ds=d.useMemo(function(){return bt||(Tr?Zr==="max-content"?"auto":"fixed":ii||Wr||sr.some(function(Rr){var kr=Rr.ellipsis;return kr})?"fixed":"auto")},[ii,Tr,sr,bt,Wr]),zs,js={colWidths:yi,columCount:sr.length,stickyOffsets:Fi,onHeaderRow:Sn,fixHeader:ii,scroll:vt},na=d.useMemo(function(){return mn?null:typeof kn=="function"?kn():kn},[mn,kn]),Vs=d.createElement(St,{data:jt,measureColumnWidth:ii||ti||Wr}),Rs=d.createElement(Ee,{colWidths:sr.map(function(Rr){var kr=Rr.width;return kr}),columns:sr}),_s=Fn!=null?d.createElement("caption",{className:"".concat(ut,"-caption")},Fn):void 0,Es=(0,et.Z)(Ie,{data:!0}),ra=(0,et.Z)(Ie,{aria:!0});if(ii||Wr){var Is;typeof Vn=="function"?(Is=Vn(jt,{scrollbarSize:rs,ref:Vr,onScroll:_i}),js.colWidths=sr.map(function(Rr,kr){var li=Rr.width,xi=kr===sr.length-1?li-rs:li;return typeof xi=="number"&&!Number.isNaN(xi)?xi:0})):Is=d.createElement("div",{style:(0,ge.Z)((0,ge.Z)({},Ci),Ti),onScroll:ai,ref:Vr,className:U()("".concat(ut,"-body"))},d.createElement(is,(0,g.Z)({style:(0,ge.Z)((0,ge.Z)({},fs),{},{tableLayout:Ds})},ra),_s,Rs,Vs,!fi&&ei&&d.createElement(Se,{stickyOffsets:Fi,flattenColumns:sr},ei)));var Ws=(0,ge.Z)((0,ge.Z)((0,ge.Z)({noData:!jt.length,maxContentScroll:ti&&Zr==="max-content"},js),oi),{},{direction:Nt,stickyClassName:gi,onScroll:_i});zs=d.createElement(d.Fragment,null,xn!==!1&&d.createElement(xe,(0,g.Z)({},Ws,{stickyTopOffset:Gr,className:"".concat(ut,"-header"),ref:qr}),Ks),Is,fi&&fi!=="top"&&d.createElement(xe,(0,g.Z)({},Ws,{stickyBottomOffset:Xr,className:"".concat(ut,"-summary"),ref:$i}),ys),Wr&&Vr.current&&Vr.current instanceof Element&&d.createElement(At,{ref:Ar,offsetScroll:mi,scrollBodyRef:Vr,onScroll:_i,container:Ai,direction:Nt}))}else zs=d.createElement("div",{style:(0,ge.Z)((0,ge.Z)({},Ci),Ti),className:U()("".concat(ut,"-content")),onScroll:_i,ref:Vr},d.createElement(is,(0,g.Z)({style:(0,ge.Z)((0,ge.Z)({},fs),{},{tableLayout:Ds})},ra),_s,Rs,xn!==!1&&d.createElement(Ue,(0,g.Z)({},js,oi)),Vs,ei&&d.createElement(Se,{stickyOffsets:Fi,flattenColumns:sr},ei)));var bs=d.createElement("div",(0,g.Z)({className:U()(ut,mt,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(ut,"-rtl"),Nt==="rtl"),"".concat(ut,"-ping-left"),ji),"".concat(ut,"-ping-right"),Wi),"".concat(ut,"-layout-fixed"),bt==="fixed"),"".concat(ut,"-fixed-header"),ii),"".concat(ut,"-fixed-column"),Tr),"".concat(ut,"-fixed-column-gapped"),Tr&&Ir),"".concat(ut,"-scroll-horizontal"),ti),"".concat(ut,"-has-fix-left"),sr[0]&&sr[0].fixed),"".concat(ut,"-has-fix-right"),sr[sr.length-1]&&sr[sr.length-1].fixed==="right")),style:zt,id:pn,ref:ni},Es),Zt&&d.createElement(Ne,{className:"".concat(ut,"-title")},Zt(jt)),d.createElement("div",{ref:qi,className:"".concat(ut,"-container")},zs),rn&&d.createElement(Ne,{className:"".concat(ut,"-footer")},rn(jt)));ti&&(bs=d.createElement(W.Z,{onResize:Ts},bs));var ia=S(sr,Fi,Nt),Ls=d.useMemo(function(){return{scrollX:Zr,prefixCls:ut,getComponent:rr,scrollbarSize:rs,direction:Nt,fixedInfoList:ia,isSticky:Wr,supportSticky:ta,componentWidth:or,fixHeader:ii,fixColumn:Tr,horizonScroll:ti,tableLayout:Ds,rowClassName:ft,expandedRowClassName:Cr.expandedRowClassName,expandIcon:Er,expandableType:Fr,expandRowByClick:Cr.expandRowByClick,expandedRowRender:Cr.expandedRowRender,onTriggerExpand:Xn,expandIconColumnIndex:Cr.expandIconColumnIndex,indentSize:Cr.indentSize,allColumnsFixedLeft:sr.every(function(Rr){return Rr.fixed==="left"}),emptyNode:na,columns:ir,flattenColumns:sr,onColumnResize:Gi,hoverStartRow:Nr,hoverEndRow:Jr,onHover:Hr,rowExpandable:Cr.rowExpandable,onRow:Gn,getRowKey:Qn,expandedKeys:br,childrenColumnName:xr,rowHoverable:on}},[Zr,ut,rr,rs,Nt,ia,Wr,ta,or,ii,Tr,ti,Ds,ft,Cr.expandedRowClassName,Er,Fr,Cr.expandRowByClick,Cr.expandedRowRender,Xn,Cr.expandIconColumnIndex,Cr.indentSize,na,ir,sr,Gi,Nr,Jr,Hr,Cr.rowExpandable,Gn,Qn,br,xr,on]);return d.createElement(A.Provider,{value:Ls},bs)}var Ct=d.forwardRef(_t);function kt(Me){return le(Ct,Me)}var qt=kt();qt.EXPAND_COLUMN=h.w,qt.INTERNAL_HOOKS=h.R,qt.Column=nn,qt.ColumnGroup=dn,qt.Summary=be;var it=qt,ln=_(6790),En=te(null),Tn=te(null);function wn(Me,Te,Ie){var ut=Te||1;return Ie[Me+ut]-(Ie[Me]||0)}function Yn(Me){var Te=Me.rowInfo,Ie=Me.column,ut=Me.colIndex,mt=Me.indent,ft=Me.index,zt=Me.component,Wt=Me.renderIndex,Rt=Me.record,vt=Me.style,bt=Me.className,Nt=Me.inverse,Zt=Me.getHeight,rn=Ie.render,gn=Ie.dataIndex,Fn=Ie.className,pn=Ie.width,xn=o(Tn,["columnsOffset"]),On=xn.columnsOffset,kn=De(Te,Ie,ut,mt,ft),Gn=kn.key,Sn=kn.fixedInfo,Hn=kn.appendCellNode,Un=kn.additionalCellProps,tr=Un.style,Wn=Un.colSpan,Jn=Wn===void 0?1:Wn,lr=Un.rowSpan,Je=lr===void 0?1:lr,Jt=ut-1,on=wn(Jt,Jn,On),jt=Jn>1?pn-on:0,mn=(0,ge.Z)((0,ge.Z)((0,ge.Z)({},tr),vt),{},{flex:"0 0 ".concat(on,"px"),width:"".concat(on,"px"),marginRight:jt,pointerEvents:"auto"}),Kn=d.useMemo(function(){return Nt?Je<=1:Jn===0||Je===0||Je>1},[Je,Jn,Nt]);Kn?mn.visibility="hidden":Nt&&(mn.height=Zt==null?void 0:Zt(Je));var rr=Kn?function(){return null}:rn,Qn={};return(Je===0||Jn===0)&&(Qn.rowSpan=1,Qn.colSpan=1),d.createElement(Tt,(0,g.Z)({className:U()(Fn,bt),ellipsis:Ie.ellipsis,align:Ie.align,scope:Ie.rowScope,component:zt,prefixCls:Te.prefixCls,key:Gn,record:Rt,index:ft,renderIndex:Wt,dataIndex:gn,render:rr,shouldCellUpdate:Ie.shouldCellUpdate},Sn,{appendNode:Hn,additionalProps:(0,ge.Z)((0,ge.Z)({},Un),{},{style:mn},Qn)}))}var Cn=Yn,Zn=["data","index","className","rowKey","style","extra","getHeight"],Nn=d.forwardRef(function(Me,Te){var Ie=Me.data,ut=Me.index,mt=Me.className,ft=Me.rowKey,zt=Me.style,Wt=Me.extra,Rt=Me.getHeight,vt=(0,Ae.Z)(Me,Zn),bt=Ie.record,Nt=Ie.indent,Zt=Ie.index,rn=o(A,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),gn=rn.scrollX,Fn=rn.flattenColumns,pn=rn.prefixCls,xn=rn.fixColumn,On=rn.componentWidth,kn=o(En,["getComponent"]),Gn=kn.getComponent,Sn=Ye(bt,ft,ut,Nt),Hn=Gn(["body","row"],"div"),Un=Gn(["body","cell"],"div"),tr=Sn.rowSupportExpand,Wn=Sn.expanded,Jn=Sn.rowProps,lr=Sn.expandedRowRender,Je=Sn.expandedRowClassName,Jt;if(tr&&Wn){var on=lr(bt,ut,Nt+1,Wn),jt=Le(Je,bt,ut,Nt),mn={};xn&&(mn={style:(0,me.Z)({},"--virtual-width","".concat(On,"px"))});var Kn="".concat(pn,"-expanded-row-cell");Jt=d.createElement(Hn,{className:U()("".concat(pn,"-expanded-row"),"".concat(pn,"-expanded-row-level-").concat(Nt+1),jt)},d.createElement(Tt,{component:Un,prefixCls:pn,className:U()(Kn,(0,me.Z)({},"".concat(Kn,"-fixed"),xn)),additionalProps:mn},on))}var rr=(0,ge.Z)((0,ge.Z)({},zt),{},{width:gn});Wt&&(rr.position="absolute",rr.pointerEvents="none");var Qn=d.createElement(Hn,(0,g.Z)({},Jn,vt,{"data-row-key":ft,ref:tr?null:Te,className:U()(mt,"".concat(pn,"-row"),Jn==null?void 0:Jn.className,(0,me.Z)({},"".concat(pn,"-row-extra"),Wt)),style:(0,ge.Z)((0,ge.Z)({},rr),Jn==null?void 0:Jn.style)}),Fn.map(function(Vn,Sr){return d.createElement(Cn,{key:Sr,component:Un,rowInfo:Sn,column:Vn,colIndex:Sr,indent:Nt,index:ut,renderIndex:Zt,record:bt,inverse:Wt,getHeight:Rt})}));return tr?d.createElement("div",{ref:Te},Qn,Jt):Qn}),Pn=F(Nn),Dn=Pn,vn=d.forwardRef(function(Me,Te){var Ie=Me.data,ut=Me.onScroll,mt=o(A,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),ft=mt.flattenColumns,zt=mt.onColumnResize,Wt=mt.getRowKey,Rt=mt.expandedKeys,vt=mt.prefixCls,bt=mt.childrenColumnName,Nt=mt.scrollX,Zt=mt.direction,rn=o(En),gn=rn.sticky,Fn=rn.scrollY,pn=rn.listItemHeight,xn=rn.getComponent,On=rn.onScroll,kn=d.useRef(),Gn=$e(Ie,bt,Rt,Wt),Sn=d.useMemo(function(){var Jt=0;return ft.map(function(on){var jt=on.width,mn=on.key;return Jt+=jt,[mn,jt,Jt]})},[ft]),Hn=d.useMemo(function(){return Sn.map(function(Jt){return Jt[2]})},[Sn]);d.useEffect(function(){Sn.forEach(function(Jt){var on=(0,ue.Z)(Jt,2),jt=on[0],mn=on[1];zt(jt,mn)})},[Sn]),d.useImperativeHandle(Te,function(){var Jt,on={scrollTo:function(mn){var Kn;(Kn=kn.current)===null||Kn===void 0||Kn.scrollTo(mn)},nativeElement:(Jt=kn.current)===null||Jt===void 0?void 0:Jt.nativeElement};return Object.defineProperty(on,"scrollLeft",{get:function(){var mn;return((mn=kn.current)===null||mn===void 0?void 0:mn.getScrollInfo().x)||0},set:function(mn){var Kn;(Kn=kn.current)===null||Kn===void 0||Kn.scrollTo({left:mn})}}),on});var Un=function(on,jt){var mn,Kn=(mn=Gn[jt])===null||mn===void 0?void 0:mn.record,rr=on.onCell;if(rr){var Qn,Vn=rr(Kn,jt);return(Qn=Vn==null?void 0:Vn.rowSpan)!==null&&Qn!==void 0?Qn:1}return 1},tr=function(on){var jt=on.start,mn=on.end,Kn=on.getSize,rr=on.offsetY;if(mn<0)return null;for(var Qn=ft.filter(function(Er){return Un(Er,jt)===0}),Vn=jt,Sr=function(xr){if(Qn=Qn.filter(function(Xn){return Un(Xn,xr)===0}),!Qn.length)return Vn=xr,1},Ur=jt;Ur>=0&&!Sr(Ur);Ur-=1);for(var Nr=ft.filter(function(Er){return Un(Er,mn)!==1}),Jr=mn,Hr=function(xr){if(Nr=Nr.filter(function(Xn){return Un(Xn,xr)!==1}),!Nr.length)return Jr=Math.max(xr-1,mn),1},jr=mn;jr<Gn.length&&!Hr(jr);jr+=1);for(var yr=[],Cr=function(xr){var Xn=Gn[xr];if(!Xn)return 1;ft.some(function(ur){return Un(ur,xr)>1})&&yr.push(xr)},Fr=Vn;Fr<=Jr;Fr+=1)Cr(Fr);var br=yr.map(function(Er){var xr=Gn[Er],Xn=Wt(xr.record,Er),ur=function(or){var _r=Er+or-1,Yr=Wt(Gn[_r].record,_r),jn=Kn(Xn,Yr);return jn.bottom-jn.top},cr=Kn(Xn);return d.createElement(Dn,{key:Er,data:xr,rowKey:Xn,index:Er,style:{top:-rr+cr.top},extra:!0,getHeight:ur})});return br},Wn=d.useMemo(function(){return{columnsOffset:Hn}},[Hn]),Jn="".concat(vt,"-tbody"),lr=xn(["body","wrapper"]),Je={};return gn&&(Je.position="sticky",Je.bottom=0,(0,oe.Z)(gn)==="object"&&gn.offsetScroll&&(Je.bottom=gn.offsetScroll)),d.createElement(Tn.Provider,{value:Wn},d.createElement(ln.Z,{fullHeight:!1,ref:kn,prefixCls:"".concat(Jn,"-virtual"),styles:{horizontalScrollBar:Je},className:Jn,height:Fn,itemHeight:pn||24,data:Gn,itemKey:function(on){return Wt(on.record)},component:lr,scrollWidth:Nt,direction:Zt,onVirtualScroll:function(on){var jt,mn=on.x;ut({currentTarget:(jt=kn.current)===null||jt===void 0?void 0:jt.nativeElement,scrollLeft:mn})},onScroll:On,extraRender:tr},function(Jt,on,jt){var mn=Wt(Jt.record,on);return d.createElement(Dn,{data:Jt,rowKey:mn,index:on,style:jt.style})}))}),Ln=F(vn),hn=Ln,yn=function(Te,Ie){var ut=Ie.ref,mt=Ie.onScroll;return d.createElement(hn,{ref:ut,data:Te,onScroll:mt})};function Rn(Me,Te){var Ie=Me.data,ut=Me.columns,mt=Me.scroll,ft=Me.sticky,zt=Me.prefixCls,Wt=zt===void 0?Qt:zt,Rt=Me.className,vt=Me.listItemHeight,bt=Me.components,Nt=Me.onScroll,Zt=mt||{},rn=Zt.x,gn=Zt.y;typeof rn!="number"&&(rn=1),typeof gn!="number"&&(gn=500);var Fn=(0,Ht.zX)(function(On,kn){return(0,P.Z)(bt,On)||kn}),pn=(0,Ht.zX)(Nt),xn=d.useMemo(function(){return{sticky:ft,scrollY:gn,listItemHeight:vt,getComponent:Fn,onScroll:pn}},[ft,gn,vt,Fn,pn]);return d.createElement(En.Provider,{value:xn},d.createElement(it,(0,g.Z)({},Me,{className:U()(Rt,"".concat(Wt,"-virtual")),scroll:(0,ge.Z)((0,ge.Z)({},mt),{},{x:rn}),components:(0,ge.Z)((0,ge.Z)({},bt),{},{body:Ie!=null&&Ie.length?yn:void 0}),columns:ut,internalHooks:h.R,tailor:!0,ref:Te})))}var Mn=d.forwardRef(Rn);function Bn(Me){return le(Mn,Me)}var zn=Bn(),pr=null},54451:function(In,Gt,_){"use strict";_.d(Gt,{g:function(){return d},v:function(){return B}});var h=_(27247),ue=_(43079),z=_(48736),ae=["expandable"],B="RC_TABLE_INTERNAL_COL_DEFINE";function d(_e){var te=_e.expandable,o=(0,ue.Z)(_e,ae),g;return"expandable"in _e?g=(0,h.Z)((0,h.Z)({},o),te):g=o,g.showExpandColumn===!1&&(g.expandIconColumnIndex=-1),g}},29443:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return de}});var h=_(32855),ue=_(74430),z=_(27247),ae=_(11913),B=_(34666),d=_(43079),_e=_(92310),te=_.n(_e),o=_(18929),g=_(49658),w=_(59301),p=(0,w.createContext)(null),E=_(3300),x=_(29301),L=_(6089),j=_(8654),$=_(16089),le=function(N){var Le=N.activeTabOffset,De=N.horizontal,Ce=N.rtl,st=N.indicator,at=st===void 0?{}:st,Oe=at.size,Et=at.align,Vt=Et===void 0?"center":Et,St=(0,w.useState)(),Bt=(0,ae.Z)(St,2),se=Bt[0],ve=Bt[1],Ee=(0,w.useRef)(),k=w.useCallback(function(he){return typeof Oe=="function"?Oe(he):typeof Oe=="number"?Oe:he},[Oe]);function Y(){$.Z.cancel(Ee.current)}return(0,w.useEffect)(function(){var he={};if(Le)if(De){he.width=k(Le.width);var ce=Ce?"right":"left";Vt==="start"&&(he[ce]=Le[ce]),Vt==="center"&&(he[ce]=Le[ce]+Le.width/2,he.transform=Ce?"translateX(50%)":"translateX(-50%)"),Vt==="end"&&(he[ce]=Le[ce]+Le.width,he.transform="translateX(-100%)")}else he.height=k(Le.height),Vt==="start"&&(he.top=Le.top),Vt==="center"&&(he.top=Le.top+Le.height/2,he.transform="translateY(-50%)"),Vt==="end"&&(he.top=Le.top+Le.height,he.transform="translateY(-100%)");return Y(),Ee.current=(0,$.Z)(function(){ve(he)}),Y},[Le,De,Ce,Vt,k]),{style:se}},F=le,H={width:0,height:0,left:0,top:0};function D(K,N,Le){return(0,w.useMemo)(function(){for(var De,Ce=new Map,st=N.get((De=K[0])===null||De===void 0?void 0:De.key)||H,at=st.left+st.width,Oe=0;Oe<K.length;Oe+=1){var Et=K[Oe].key,Vt=N.get(Et);if(!Vt){var St;Vt=N.get((St=K[Oe-1])===null||St===void 0?void 0:St.key)||H}var Bt=Ce.get(Et)||(0,z.Z)({},Vt);Bt.right=at-Bt.left-Bt.width,Ce.set(Et,Bt)}return Ce},[K.map(function(De){return De.key}).join("_"),N,Le])}function A(K,N){var Le=w.useRef(K),De=w.useState({}),Ce=(0,ae.Z)(De,2),st=Ce[1];function at(Oe){var Et=typeof Oe=="function"?Oe(Le.current):Oe;Et!==Le.current&&N(Et,Le.current),Le.current=Et,st({})}return[Le.current,at]}var Q=.1,ne=.01,ee=20,oe=Math.pow(.995,ee);function ge(K,N){var Le=(0,w.useState)(),De=(0,ae.Z)(Le,2),Ce=De[0],st=De[1],at=(0,w.useState)(0),Oe=(0,ae.Z)(at,2),Et=Oe[0],Vt=Oe[1],St=(0,w.useState)(0),Bt=(0,ae.Z)(St,2),se=Bt[0],ve=Bt[1],Ee=(0,w.useState)(),k=(0,ae.Z)(Ee,2),Y=k[0],he=k[1],ce=(0,w.useRef)();function xe(I){var Z=I.touches[0],S=Z.screenX,ze=Z.screenY;st({x:S,y:ze}),window.clearInterval(ce.current)}function Be(I){if(Ce){var Z=I.touches[0],S=Z.screenX,ze=Z.screenY;st({x:S,y:ze});var ke=S-Ce.x,Pe=ze-Ce.y;N(ke,Pe);var Ge=Date.now();Vt(Ge),ve(Ge-Et),he({x:ke,y:Pe})}}function Xe(){if(Ce&&(st(null),he(null),Y)){var I=Y.x/se,Z=Y.y/se,S=Math.abs(I),ze=Math.abs(Z);if(Math.max(S,ze)<Q)return;var ke=I,Pe=Z;ce.current=window.setInterval(function(){if(Math.abs(ke)<ne&&Math.abs(Pe)<ne){window.clearInterval(ce.current);return}ke*=oe,Pe*=oe,N(ke*ee,Pe*ee)},ee)}}var ct=(0,w.useRef)();function nt(I){var Z=I.deltaX,S=I.deltaY,ze=0,ke=Math.abs(Z),Pe=Math.abs(S);ke===Pe?ze=ct.current==="x"?Z:S:ke>Pe?(ze=Z,ct.current="x"):(ze=S,ct.current="y"),N(-ze,-ze)&&I.preventDefault()}var Ue=(0,w.useRef)(null);Ue.current={onTouchStart:xe,onTouchMove:Be,onTouchEnd:Xe,onWheel:nt},w.useEffect(function(){function I(ke){Ue.current.onTouchStart(ke)}function Z(ke){Ue.current.onTouchMove(ke)}function S(ke){Ue.current.onTouchEnd(ke)}function ze(ke){Ue.current.onWheel(ke)}return document.addEventListener("touchmove",Z,{passive:!1}),document.addEventListener("touchend",S,{passive:!0}),K.current.addEventListener("touchstart",I,{passive:!0}),K.current.addEventListener("wheel",ze,{passive:!1}),function(){document.removeEventListener("touchmove",Z),document.removeEventListener("touchend",S)}},[])}var me=_(34280);function ot(K){var N=(0,w.useState)(0),Le=(0,ae.Z)(N,2),De=Le[0],Ce=Le[1],st=(0,w.useRef)(0),at=(0,w.useRef)();return at.current=K,(0,me.o)(function(){var Oe;(Oe=at.current)===null||Oe===void 0||Oe.call(at)},[De]),function(){st.current===De&&(st.current+=1,Ce(st.current))}}function U(K){var N=(0,w.useRef)([]),Le=(0,w.useState)({}),De=(0,ae.Z)(Le,2),Ce=De[1],st=(0,w.useRef)(typeof K=="function"?K():K),at=ot(function(){var Et=st.current;N.current.forEach(function(Vt){Et=Vt(Et)}),N.current=[],st.current=Et,Ce({})});function Oe(Et){N.current.push(Et),at()}return[st.current,Oe]}var C={width:0,height:0,left:0,top:0,right:0};function P(K,N,Le,De,Ce,st,at){var Oe=at.tabs,Et=at.tabPosition,Vt=at.rtl,St,Bt,se;return["top","bottom"].includes(Et)?(St="width",Bt=Vt?"right":"left",se=Math.abs(Le)):(St="height",Bt="top",se=-Le),(0,w.useMemo)(function(){if(!Oe.length)return[0,0];for(var ve=Oe.length,Ee=ve,k=0;k<ve;k+=1){var Y=K.get(Oe[k].key)||C;if(Math.floor(Y[Bt]+Y[St])>Math.floor(se+N)){Ee=k-1;break}}for(var he=0,ce=ve-1;ce>=0;ce-=1){var xe=K.get(Oe[ce].key)||C;if(xe[Bt]<se){he=ce+1;break}}return he>=Ee?[0,0]:[he,Ee]},[K,N,De,Ce,st,se,Et,Oe.map(function(ve){return ve.key}).join("_"),Vt])}function G(K){var N;return K instanceof Map?(N={},K.forEach(function(Le,De){N[De]=Le})):N=K,JSON.stringify(N)}var re="TABS_DQ";function X(K){return String(K).replace(/"/g,re)}function y(K,N,Le,De){return!(!Le||De||K===!1||K===void 0&&(N===!1||N===null))}var v=w.forwardRef(function(K,N){var Le=K.prefixCls,De=K.editable,Ce=K.locale,st=K.style;return!De||De.showAdd===!1?null:w.createElement("button",{ref:N,type:"button",className:"".concat(Le,"-nav-add"),style:st,"aria-label":(Ce==null?void 0:Ce.addAriaLabel)||"Add tab",onClick:function(Oe){De.onEdit("add",{event:Oe})}},De.addIcon||"+")}),O=v,pe=w.forwardRef(function(K,N){var Le=K.position,De=K.prefixCls,Ce=K.extra;if(!Ce)return null;var st,at={};return(0,B.Z)(Ce)==="object"&&!w.isValidElement(Ce)?at=Ce:at.right=Ce,Le==="right"&&(st=at.right),Le==="left"&&(st=at.left),st?w.createElement("div",{className:"".concat(De,"-extra-content"),ref:N},st):null}),He=pe,tt=_(96478),wt=_(28321),It=_(10228),Ft=w.forwardRef(function(K,N){var Le=K.prefixCls,De=K.id,Ce=K.tabs,st=K.locale,at=K.mobile,Oe=K.more,Et=Oe===void 0?{}:Oe,Vt=K.style,St=K.className,Bt=K.editable,se=K.tabBarGutter,ve=K.rtl,Ee=K.removeAriaLabel,k=K.onTabClick,Y=K.getPopupContainer,he=K.popupClassName,ce=(0,w.useState)(!1),xe=(0,ae.Z)(ce,2),Be=xe[0],Xe=xe[1],ct=(0,w.useState)(null),nt=(0,ae.Z)(ct,2),Ue=nt[0],I=nt[1],Z=Et.icon,S=Z===void 0?"More":Z,ze="".concat(De,"-more-popup"),ke="".concat(Le,"-dropdown"),Pe=Ue!==null?"".concat(ze,"-").concat(Ue):null,Ge=st==null?void 0:st.dropdownAriaLabel;function We(gt,pt){gt.preventDefault(),gt.stopPropagation(),Bt.onEdit("remove",{key:pt,event:gt})}var dt=w.createElement(wt.ZP,{onClick:function(pt){var Mt=pt.key,xt=pt.domEvent;k(Mt,xt),Xe(!1)},prefixCls:"".concat(ke,"-menu"),id:ze,tabIndex:-1,role:"listbox","aria-activedescendant":Pe,selectedKeys:[Ue],"aria-label":Ge!==void 0?Ge:"expanded dropdown"},Ce.map(function(gt){var pt=gt.closable,Mt=gt.disabled,xt=gt.closeIcon,At=gt.key,Kt=gt.label,nn=y(pt,xt,Bt,Mt);return w.createElement(wt.sN,{key:At,id:"".concat(ze,"-").concat(At),role:"option","aria-controls":De&&"".concat(De,"-panel-").concat(At),disabled:Mt},w.createElement("span",null,Kt),nn&&w.createElement("button",{type:"button","aria-label":Ee||"remove",tabIndex:0,className:"".concat(ke,"-menu-item-remove"),onClick:function(dn){dn.stopPropagation(),We(dn,At)}},xt||Bt.removeIcon||"\xD7"))}));function Lt(gt){for(var pt=Ce.filter(function(nn){return!nn.disabled}),Mt=pt.findIndex(function(nn){return nn.key===Ue})||0,xt=pt.length,At=0;At<xt;At+=1){Mt=(Mt+gt+xt)%xt;var Kt=pt[Mt];if(!Kt.disabled){I(Kt.key);return}}}function Pt(gt){var pt=gt.which;if(!Be){[It.Z.DOWN,It.Z.SPACE,It.Z.ENTER].includes(pt)&&(Xe(!0),gt.preventDefault());return}switch(pt){case It.Z.UP:Lt(-1),gt.preventDefault();break;case It.Z.DOWN:Lt(1),gt.preventDefault();break;case It.Z.ESC:Xe(!1);break;case It.Z.SPACE:case It.Z.ENTER:Ue!==null&&k(Ue,gt);break}}(0,w.useEffect)(function(){var gt=document.getElementById(Pe);gt&&gt.scrollIntoView&&gt.scrollIntoView(!1)},[Ue]),(0,w.useEffect)(function(){Be||I(null)},[Be]);var cn=(0,ue.Z)({},ve?"marginRight":"marginLeft",se);Ce.length||(cn.visibility="hidden",cn.order=1);var Ne=te()((0,ue.Z)({},"".concat(ke,"-rtl"),ve)),Re=at?null:w.createElement(tt.Z,(0,h.Z)({prefixCls:ke,overlay:dt,visible:Ce.length?Be:!1,onVisibleChange:Xe,overlayClassName:te()(Ne,he),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Y},Et),w.createElement("button",{type:"button",className:"".concat(Le,"-nav-more"),style:cn,"aria-haspopup":"listbox","aria-controls":ze,id:"".concat(De,"-more"),"aria-expanded":Be,onKeyDown:Pt},S));return w.createElement("div",{className:te()("".concat(Le,"-nav-operations"),St),style:Vt,ref:N},Re,w.createElement(O,{prefixCls:Le,locale:st,editable:Bt}))}),Ht=w.memo(Ft,function(K,N){return N.tabMoving}),Ke=function(N){var Le=N.prefixCls,De=N.id,Ce=N.active,st=N.focus,at=N.tab,Oe=at.key,Et=at.label,Vt=at.disabled,St=at.closeIcon,Bt=at.icon,se=N.closable,ve=N.renderWrapper,Ee=N.removeAriaLabel,k=N.editable,Y=N.onClick,he=N.onFocus,ce=N.onBlur,xe=N.onKeyDown,Be=N.onMouseDown,Xe=N.onMouseUp,ct=N.style,nt=N.tabCount,Ue=N.currentPosition,I="".concat(Le,"-tab"),Z=y(se,St,k,Vt);function S(We){Vt||Y(We)}function ze(We){We.preventDefault(),We.stopPropagation(),k.onEdit("remove",{key:Oe,event:We})}var ke=w.useMemo(function(){return Bt&&typeof Et=="string"?w.createElement("span",null,Et):Et},[Et,Bt]),Pe=w.useRef(null);w.useEffect(function(){st&&Pe.current&&Pe.current.focus()},[st]);var Ge=w.createElement("div",{key:Oe,"data-node-key":X(Oe),className:te()(I,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(I,"-with-remove"),Z),"".concat(I,"-active"),Ce),"".concat(I,"-disabled"),Vt),"".concat(I,"-focus"),st)),style:ct,onClick:S},w.createElement("div",{ref:Pe,role:"tab","aria-selected":Ce,id:De&&"".concat(De,"-tab-").concat(Oe),className:"".concat(I,"-btn"),"aria-controls":De&&"".concat(De,"-panel-").concat(Oe),"aria-disabled":Vt,tabIndex:Vt?null:Ce?0:-1,onClick:function(dt){dt.stopPropagation(),S(dt)},onKeyDown:xe,onMouseDown:Be,onMouseUp:Xe,onFocus:he,onBlur:ce},st&&w.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(Ue," of ").concat(nt)),Bt&&w.createElement("span",{className:"".concat(I,"-icon")},Bt),Et&&ke),Z&&w.createElement("button",{type:"button",role:"tab","aria-label":Ee||"remove",tabIndex:Ce?0:-1,className:"".concat(I,"-remove"),onClick:function(dt){dt.stopPropagation(),ze(dt)}},St||k.removeIcon||"\xD7"));return ve?ve(Ge):Ge},en=Ke,Tt=function(N,Le){var De=N.offsetWidth,Ce=N.offsetHeight,st=N.offsetTop,at=N.offsetLeft,Oe=N.getBoundingClientRect(),Et=Oe.width,Vt=Oe.height,St=Oe.left,Bt=Oe.top;return Math.abs(Et-De)<1?[Et,Vt,St-Le.left,Bt-Le.top]:[De,Ce,at,st]},an=function(N){var Le=N.current||{},De=Le.offsetWidth,Ce=De===void 0?0:De,st=Le.offsetHeight,at=st===void 0?0:st;if(N.current){var Oe=N.current.getBoundingClientRect(),Et=Oe.width,Vt=Oe.height;if(Math.abs(Et-Ce)<1)return[Et,Vt]}return[Ce,at]},qe=function(N,Le){return N[Le?0:1]},yt=w.forwardRef(function(K,N){var Le=K.className,De=K.style,Ce=K.id,st=K.animated,at=K.activeKey,Oe=K.rtl,Et=K.extra,Vt=K.editable,St=K.locale,Bt=K.tabPosition,se=K.tabBarGutter,ve=K.children,Ee=K.onTabClick,k=K.onTabScroll,Y=K.indicator,he=w.useContext(p),ce=he.prefixCls,xe=he.tabs,Be=(0,w.useRef)(null),Xe=(0,w.useRef)(null),ct=(0,w.useRef)(null),nt=(0,w.useRef)(null),Ue=(0,w.useRef)(null),I=(0,w.useRef)(null),Z=(0,w.useRef)(null),S=Bt==="top"||Bt==="bottom",ze=A(0,function(on,jt){S&&k&&k({direction:on>jt?"left":"right"})}),ke=(0,ae.Z)(ze,2),Pe=ke[0],Ge=ke[1],We=A(0,function(on,jt){!S&&k&&k({direction:on>jt?"top":"bottom"})}),dt=(0,ae.Z)(We,2),Lt=dt[0],Pt=dt[1],cn=(0,w.useState)([0,0]),Ne=(0,ae.Z)(cn,2),Re=Ne[0],gt=Ne[1],pt=(0,w.useState)([0,0]),Mt=(0,ae.Z)(pt,2),xt=Mt[0],At=Mt[1],Kt=(0,w.useState)([0,0]),nn=(0,ae.Z)(Kt,2),Ot=nn[0],dn=nn[1],Qt=(0,w.useState)([0,0]),$t=(0,ae.Z)(Qt,2),Dt=$t[0],Ze=$t[1],_t=U(new Map),Ct=(0,ae.Z)(_t,2),kt=Ct[0],qt=Ct[1],it=D(xe,kt,xt[0]),ln=qe(Re,S),En=qe(xt,S),Tn=qe(Ot,S),wn=qe(Dt,S),Yn=Math.floor(ln)<Math.floor(En+Tn),Cn=Yn?ln-wn:ln-Tn,Zn="".concat(ce,"-nav-operations-hidden"),Nn=0,Pn=0;S&&Oe?(Nn=0,Pn=Math.max(0,En-Cn)):(Nn=Math.min(0,Cn-En),Pn=0);function Dn(on){return on<Nn?Nn:on>Pn?Pn:on}var vn=(0,w.useRef)(null),Ln=(0,w.useState)(),hn=(0,ae.Z)(Ln,2),yn=hn[0],Rn=hn[1];function Mn(){Rn(Date.now())}function Bn(){vn.current&&clearTimeout(vn.current)}ge(nt,function(on,jt){function mn(Kn,rr){Kn(function(Qn){var Vn=Dn(Qn+rr);return Vn})}return Yn?(S?mn(Ge,on):mn(Pt,jt),Bn(),Mn(),!0):!1}),(0,w.useEffect)(function(){return Bn(),yn&&(vn.current=setTimeout(function(){Rn(0)},100)),Bn},[yn]);var zn=P(it,Cn,S?Pe:Lt,En,Tn,wn,(0,z.Z)((0,z.Z)({},K),{},{tabs:xe})),pr=(0,ae.Z)(zn,2),Me=pr[0],Te=pr[1],Ie=(0,L.Z)(function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:at,jt=it.get(on)||{width:0,height:0,left:0,right:0,top:0};if(S){var mn=Pe;Oe?jt.right<Pe?mn=jt.right:jt.right+jt.width>Pe+Cn&&(mn=jt.right+jt.width-Cn):jt.left<-Pe?mn=-jt.left:jt.left+jt.width>-Pe+Cn&&(mn=-(jt.left+jt.width-Cn)),Pt(0),Ge(Dn(mn))}else{var Kn=Lt;jt.top<-Lt?Kn=-jt.top:jt.top+jt.height>-Lt+Cn&&(Kn=-(jt.top+jt.height-Cn)),Ge(0),Pt(Dn(Kn))}}),ut=(0,w.useState)(),mt=(0,ae.Z)(ut,2),ft=mt[0],zt=mt[1],Wt=(0,w.useState)(!1),Rt=(0,ae.Z)(Wt,2),vt=Rt[0],bt=Rt[1],Nt=xe.filter(function(on){return!on.disabled}).map(function(on){return on.key}),Zt=function(jt){var mn=Nt.indexOf(ft||at),Kn=Nt.length,rr=(mn+jt+Kn)%Kn,Qn=Nt[rr];zt(Qn)},rn=function(jt){var mn=jt.code,Kn=Oe&&S,rr=Nt[0],Qn=Nt[Nt.length-1];switch(mn){case"ArrowLeft":{S&&Zt(Kn?1:-1);break}case"ArrowRight":{S&&Zt(Kn?-1:1);break}case"ArrowUp":{jt.preventDefault(),S||Zt(-1);break}case"ArrowDown":{jt.preventDefault(),S||Zt(1);break}case"Home":{jt.preventDefault(),zt(rr);break}case"End":{jt.preventDefault(),zt(Qn);break}case"Enter":case"Space":{jt.preventDefault(),Ee(at,jt);break}case"Backspace":case"Delete":{var Vn=Nt.indexOf(ft),Sr=xe.find(function(Nr){return Nr.key===ft}),Ur=y(Sr==null?void 0:Sr.closable,Sr==null?void 0:Sr.closeIcon,Vt,Sr==null?void 0:Sr.disabled);Ur&&(jt.preventDefault(),jt.stopPropagation(),Vt.onEdit("remove",{key:ft,event:jt}),Vn===Nt.length-1?Zt(-1):Zt(1));break}}},gn={};S?gn[Oe?"marginRight":"marginLeft"]=se:gn.marginTop=se;var Fn=xe.map(function(on,jt){var mn=on.key;return w.createElement(en,{id:Ce,prefixCls:ce,key:mn,tab:on,style:jt===0?void 0:gn,closable:on.closable,editable:Vt,active:mn===at,focus:mn===ft,renderWrapper:ve,removeAriaLabel:St==null?void 0:St.removeAriaLabel,tabCount:Nt.length,currentPosition:jt+1,onClick:function(rr){Ee(mn,rr)},onKeyDown:rn,onFocus:function(){vt||zt(mn),Ie(mn),Mn(),nt.current&&(Oe||(nt.current.scrollLeft=0),nt.current.scrollTop=0)},onBlur:function(){zt(void 0)},onMouseDown:function(){bt(!0)},onMouseUp:function(){bt(!1)}})}),pn=function(){return qt(function(){var jt,mn=new Map,Kn=(jt=Ue.current)===null||jt===void 0?void 0:jt.getBoundingClientRect();return xe.forEach(function(rr){var Qn,Vn=rr.key,Sr=(Qn=Ue.current)===null||Qn===void 0?void 0:Qn.querySelector('[data-node-key="'.concat(X(Vn),'"]'));if(Sr){var Ur=Tt(Sr,Kn),Nr=(0,ae.Z)(Ur,4),Jr=Nr[0],Hr=Nr[1],jr=Nr[2],yr=Nr[3];mn.set(Vn,{width:Jr,height:Hr,left:jr,top:yr})}}),mn})};(0,w.useEffect)(function(){pn()},[xe.map(function(on){return on.key}).join("_")]);var xn=ot(function(){var on=an(Be),jt=an(Xe),mn=an(ct);gt([on[0]-jt[0]-mn[0],on[1]-jt[1]-mn[1]]);var Kn=an(Z);dn(Kn);var rr=an(I);Ze(rr);var Qn=an(Ue);At([Qn[0]-Kn[0],Qn[1]-Kn[1]]),pn()}),On=xe.slice(0,Me),kn=xe.slice(Te+1),Gn=[].concat((0,E.Z)(On),(0,E.Z)(kn)),Sn=it.get(at),Hn=F({activeTabOffset:Sn,horizontal:S,indicator:Y,rtl:Oe}),Un=Hn.style;(0,w.useEffect)(function(){Ie()},[at,Nn,Pn,G(Sn),G(it),S]),(0,w.useEffect)(function(){xn()},[Oe]);var tr=!!Gn.length,Wn="".concat(ce,"-nav-wrap"),Jn,lr,Je,Jt;return S?Oe?(lr=Pe>0,Jn=Pe!==Pn):(Jn=Pe<0,lr=Pe!==Nn):(Je=Lt<0,Jt=Lt!==Nn),w.createElement(x.Z,{onResize:xn},w.createElement("div",{ref:(0,j.x1)(N,Be),role:"tablist","aria-orientation":S?"horizontal":"vertical",className:te()("".concat(ce,"-nav"),Le),style:De,onKeyDown:function(){Mn()}},w.createElement(He,{ref:Xe,position:"left",extra:Et,prefixCls:ce}),w.createElement(x.Z,{onResize:xn},w.createElement("div",{className:te()(Wn,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Wn,"-ping-left"),Jn),"".concat(Wn,"-ping-right"),lr),"".concat(Wn,"-ping-top"),Je),"".concat(Wn,"-ping-bottom"),Jt)),ref:nt},w.createElement(x.Z,{onResize:xn},w.createElement("div",{ref:Ue,className:"".concat(ce,"-nav-list"),style:{transform:"translate(".concat(Pe,"px, ").concat(Lt,"px)"),transition:yn?"none":void 0}},Fn,w.createElement(O,{ref:Z,prefixCls:ce,locale:St,editable:Vt,style:(0,z.Z)((0,z.Z)({},Fn.length===0?void 0:gn),{},{visibility:tr?"hidden":null})}),w.createElement("div",{className:te()("".concat(ce,"-ink-bar"),(0,ue.Z)({},"".concat(ce,"-ink-bar-animated"),st.inkBar)),style:Un}))))),w.createElement(Ht,(0,h.Z)({},K,{removeAriaLabel:St==null?void 0:St.removeAriaLabel,ref:I,prefixCls:ce,tabs:Gn,className:!tr&&Zn,tabMoving:!!yn})),w.createElement(He,{ref:ct,position:"right",extra:Et,prefixCls:ce})))}),Fe=yt,Ae=w.forwardRef(function(K,N){var Le=K.prefixCls,De=K.className,Ce=K.style,st=K.id,at=K.active,Oe=K.tabKey,Et=K.children;return w.createElement("div",{id:st&&"".concat(st,"-panel-").concat(Oe),role:"tabpanel",tabIndex:at?0:-1,"aria-labelledby":st&&"".concat(st,"-tab-").concat(Oe),"aria-hidden":!at,style:Ce,className:te()(Le,at&&"".concat(Le,"-active"),De),ref:N},Et)}),V=Ae,je=["renderTabBar"],Qe=["label","key"],J=function(N){var Le=N.renderTabBar,De=(0,d.Z)(N,je),Ce=w.useContext(p),st=Ce.tabs;if(Le){var at=(0,z.Z)((0,z.Z)({},De),{},{panes:st.map(function(Oe){var Et=Oe.label,Vt=Oe.key,St=(0,d.Z)(Oe,Qe);return w.createElement(V,(0,h.Z)({tab:Et,key:Vt,tabKey:Vt},St))})});return Le(at,Fe)}return w.createElement(Fe,De)},M=J,Se=_(77900),be=["key","forceRender","style","className","destroyInactiveTabPane"],W=function(N){var Le=N.id,De=N.activeKey,Ce=N.animated,st=N.tabPosition,at=N.destroyInactiveTabPane,Oe=w.useContext(p),Et=Oe.prefixCls,Vt=Oe.tabs,St=Ce.tabPane,Bt="".concat(Et,"-tabpane");return w.createElement("div",{className:te()("".concat(Et,"-content-holder"))},w.createElement("div",{className:te()("".concat(Et,"-content"),"".concat(Et,"-content-").concat(st),(0,ue.Z)({},"".concat(Et,"-content-animated"),St))},Vt.map(function(se){var ve=se.key,Ee=se.forceRender,k=se.style,Y=se.className,he=se.destroyInactiveTabPane,ce=(0,d.Z)(se,be),xe=ve===De;return w.createElement(Se.default,(0,h.Z)({key:ve,visible:xe,forceRender:Ee,removeOnLeave:!!(at||he),leavedClassName:"".concat(Bt,"-hidden")},Ce.tabPaneMotion),function(Be,Xe){var ct=Be.style,nt=Be.className;return w.createElement(V,(0,h.Z)({},ce,{prefixCls:Bt,id:Le,tabKey:ve,animated:St,active:xe,style:(0,z.Z)((0,z.Z)({},k),ct),className:te()(Y,nt),ref:Xe}))})})))},fe=W,ye=_(48736);function et(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},N;return K===!1?N={inkBar:!1,tabPane:!1}:K===!0?N={inkBar:!0,tabPane:!1}:N=(0,z.Z)({inkBar:!0},(0,B.Z)(K)==="object"?K:{}),N.tabPaneMotion&&N.tabPane===void 0&&(N.tabPane=!0),!N.tabPaneMotion&&N.tabPane&&(N.tabPane=!1),N}var Ve=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],$e=0,Ye=w.forwardRef(function(K,N){var Le=K.id,De=K.prefixCls,Ce=De===void 0?"rc-tabs":De,st=K.className,at=K.items,Oe=K.direction,Et=K.activeKey,Vt=K.defaultActiveKey,St=K.editable,Bt=K.animated,se=K.tabPosition,ve=se===void 0?"top":se,Ee=K.tabBarGutter,k=K.tabBarStyle,Y=K.tabBarExtraContent,he=K.locale,ce=K.more,xe=K.destroyInactiveTabPane,Be=K.renderTabBar,Xe=K.onChange,ct=K.onTabClick,nt=K.onTabScroll,Ue=K.getPopupContainer,I=K.popupClassName,Z=K.indicator,S=(0,d.Z)(K,Ve),ze=w.useMemo(function(){return(at||[]).filter(function(Dt){return Dt&&(0,B.Z)(Dt)==="object"&&"key"in Dt})},[at]),ke=Oe==="rtl",Pe=et(Bt),Ge=(0,w.useState)(!1),We=(0,ae.Z)(Ge,2),dt=We[0],Lt=We[1];(0,w.useEffect)(function(){Lt((0,g.Z)())},[]);var Pt=(0,o.Z)(function(){var Dt;return(Dt=ze[0])===null||Dt===void 0?void 0:Dt.key},{value:Et,defaultValue:Vt}),cn=(0,ae.Z)(Pt,2),Ne=cn[0],Re=cn[1],gt=(0,w.useState)(function(){return ze.findIndex(function(Dt){return Dt.key===Ne})}),pt=(0,ae.Z)(gt,2),Mt=pt[0],xt=pt[1];(0,w.useEffect)(function(){var Dt=ze.findIndex(function(_t){return _t.key===Ne});if(Dt===-1){var Ze;Dt=Math.max(0,Math.min(Mt,ze.length-1)),Re((Ze=ze[Dt])===null||Ze===void 0?void 0:Ze.key)}xt(Dt)},[ze.map(function(Dt){return Dt.key}).join("_"),Ne,Mt]);var At=(0,o.Z)(null,{value:Le}),Kt=(0,ae.Z)(At,2),nn=Kt[0],Ot=Kt[1];(0,w.useEffect)(function(){Le||(Ot("rc-tabs-".concat($e)),$e+=1)},[]);function dn(Dt,Ze){ct==null||ct(Dt,Ze);var _t=Dt!==Ne;Re(Dt),_t&&(Xe==null||Xe(Dt))}var Qt={id:nn,activeKey:Ne,animated:Pe,tabPosition:ve,rtl:ke,mobile:dt},$t=(0,z.Z)((0,z.Z)({},Qt),{},{editable:St,locale:he,more:ce,tabBarGutter:Ee,onTabClick:dn,onTabScroll:nt,extra:Y,style:k,panes:null,getPopupContainer:Ue,popupClassName:I,indicator:Z});return w.createElement(p.Provider,{value:{tabs:ze,prefixCls:Ce}},w.createElement("div",(0,h.Z)({ref:N,id:Le,className:te()(Ce,"".concat(Ce,"-").concat(ve),(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ce,"-mobile"),dt),"".concat(Ce,"-editable"),St),"".concat(Ce,"-rtl"),ke),st)},S),w.createElement(M,(0,h.Z)({},$t,{renderTabBar:Be})),w.createElement(fe,(0,h.Z)({destroyInactiveTabPane:xe},Qt,{animated:Pe}))))}),lt=Ye,de=lt},22711:function(In,Gt,_){"use strict";_.r(Gt),_.d(Gt,{ResizableTextArea:function(){return ot},default:function(){return G}});var h=_(32855),ue=_(74430),z=_(27247),ae=_(3300),B=_(11913),d=_(43079),_e=_(92310),te=_.n(_e),o=_(36901),g=_(66003),w=_(30292),p=_(18929),E=_(59301),x=_(34666),L=_(29301),j=_(34280),$=_(16089),le=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,F=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],H={},D;function A(re){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=re.getAttribute("id")||re.getAttribute("data-reactid")||re.getAttribute("name");if(X&&H[y])return H[y];var v=window.getComputedStyle(re),O=v.getPropertyValue("box-sizing")||v.getPropertyValue("-moz-box-sizing")||v.getPropertyValue("-webkit-box-sizing"),pe=parseFloat(v.getPropertyValue("padding-bottom"))+parseFloat(v.getPropertyValue("padding-top")),He=parseFloat(v.getPropertyValue("border-bottom-width"))+parseFloat(v.getPropertyValue("border-top-width")),tt=F.map(function(It){return"".concat(It,":").concat(v.getPropertyValue(It))}).join(";"),wt={sizingStyle:tt,paddingSize:pe,borderSize:He,boxSizing:O};return X&&y&&(H[y]=wt),wt}function Q(re){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=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)),re.getAttribute("wrap")?D.setAttribute("wrap",re.getAttribute("wrap")):D.removeAttribute("wrap");var O=A(re,X),pe=O.paddingSize,He=O.borderSize,tt=O.boxSizing,wt=O.sizingStyle;D.setAttribute("style","".concat(wt,";").concat(le)),D.value=re.value||re.placeholder||"";var It=void 0,Ft=void 0,Ht,Ke=D.scrollHeight;if(tt==="border-box"?Ke+=He:tt==="content-box"&&(Ke-=pe),y!==null||v!==null){D.value=" ";var en=D.scrollHeight-pe;y!==null&&(It=en*y,tt==="border-box"&&(It=It+pe+He),Ke=Math.max(It,Ke)),v!==null&&(Ft=en*v,tt==="border-box"&&(Ft=Ft+pe+He),Ht=Ke>Ft?"":"hidden",Ke=Math.min(Ft,Ke))}var Tt={height:Ke,overflowY:Ht,resize:"none"};return It&&(Tt.minHeight=It),Ft&&(Tt.maxHeight=Ft),Tt}var ne=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ee=0,oe=1,ge=2,me=E.forwardRef(function(re,X){var y=re,v=y.prefixCls,O=y.defaultValue,pe=y.value,He=y.autoSize,tt=y.onResize,wt=y.className,It=y.style,Ft=y.disabled,Ht=y.onChange,Ke=y.onInternalAutoSize,en=(0,d.Z)(y,ne),Tt=(0,p.Z)(O,{value:pe,postState:function(st){return st!=null?st:""}}),an=(0,B.Z)(Tt,2),qe=an[0],yt=an[1],Fe=function(st){yt(st.target.value),Ht==null||Ht(st)},Ae=E.useRef();E.useImperativeHandle(X,function(){return{textArea:Ae.current}});var V=E.useMemo(function(){return He&&(0,x.Z)(He)==="object"?[He.minRows,He.maxRows]:[]},[He]),je=(0,B.Z)(V,2),Qe=je[0],J=je[1],M=!!He,Se=function(){try{if(document.activeElement===Ae.current){var st=Ae.current,at=st.selectionStart,Oe=st.selectionEnd,Et=st.scrollTop;Ae.current.setSelectionRange(at,Oe),Ae.current.scrollTop=Et}}catch(Vt){}},be=E.useState(ge),W=(0,B.Z)(be,2),fe=W[0],ye=W[1],et=E.useState(),Ve=(0,B.Z)(et,2),$e=Ve[0],Ye=Ve[1],lt=function(){ye(ee)};(0,j.Z)(function(){M&&lt()},[pe,Qe,J,M]),(0,j.Z)(function(){if(fe===ee)ye(oe);else if(fe===oe){var Ce=Q(Ae.current,!1,Qe,J);ye(ge),Ye(Ce)}else Se()},[fe]);var de=E.useRef(),K=function(){$.Z.cancel(de.current)},N=function(st){fe===ge&&(tt==null||tt(st),He&&(K(),de.current=(0,$.Z)(function(){lt()})))};E.useEffect(function(){return K},[]);var Le=M?$e:null,De=(0,z.Z)((0,z.Z)({},It),Le);return(fe===ee||fe===oe)&&(De.overflowY="hidden",De.overflowX="hidden"),E.createElement(L.Z,{onResize:N,disabled:!(He||tt)},E.createElement("textarea",(0,h.Z)({},en,{ref:Ae,style:De,className:te()(v,wt,(0,ue.Z)({},"".concat(v,"-disabled"),Ft)),disabled:Ft,value:qe,onChange:Fe})))}),ot=me,U=["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"],C=E.forwardRef(function(re,X){var y,v=re.defaultValue,O=re.value,pe=re.onFocus,He=re.onBlur,tt=re.onChange,wt=re.allowClear,It=re.maxLength,Ft=re.onCompositionStart,Ht=re.onCompositionEnd,Ke=re.suffix,en=re.prefixCls,Tt=en===void 0?"rc-textarea":en,an=re.showCount,qe=re.count,yt=re.className,Fe=re.style,Ae=re.disabled,V=re.hidden,je=re.classNames,Qe=re.styles,J=re.onResize,M=re.onClear,Se=re.onPressEnter,be=re.readOnly,W=re.autoSize,fe=re.onKeyDown,ye=(0,d.Z)(re,U),et=(0,p.Z)(v,{value:O,defaultValue:v}),Ve=(0,B.Z)(et,2),$e=Ve[0],Ye=Ve[1],lt=$e==null?"":String($e),de=E.useState(!1),K=(0,B.Z)(de,2),N=K[0],Le=K[1],De=E.useRef(!1),Ce=E.useState(null),st=(0,B.Z)(Ce,2),at=st[0],Oe=st[1],Et=(0,E.useRef)(null),Vt=(0,E.useRef)(null),St=function(){var Lt;return(Lt=Vt.current)===null||Lt===void 0?void 0:Lt.textArea},Bt=function(){St().focus()};(0,E.useImperativeHandle)(X,function(){var dt;return{resizableTextArea:Vt.current,focus:Bt,blur:function(){St().blur()},nativeElement:((dt=Et.current)===null||dt===void 0?void 0:dt.nativeElement)||St()}}),(0,E.useEffect)(function(){Le(function(dt){return!Ae&&dt})},[Ae]);var se=E.useState(null),ve=(0,B.Z)(se,2),Ee=ve[0],k=ve[1];E.useEffect(function(){if(Ee){var dt;(dt=St()).setSelectionRange.apply(dt,(0,ae.Z)(Ee))}},[Ee]);var Y=(0,g.Z)(qe,an),he=(y=Y.max)!==null&&y!==void 0?y:It,ce=Number(he)>0,xe=Y.strategy(lt),Be=!!he&&xe>he,Xe=function(Lt,Pt){var cn=Pt;!De.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Pt)>Y.max&&(cn=Y.exceedFormatter(Pt,{max:Y.max}),Pt!==cn&&k([St().selectionStart||0,St().selectionEnd||0])),Ye(cn),(0,w.rJ)(Lt.currentTarget,Lt,tt,cn)},ct=function(Lt){De.current=!0,Ft==null||Ft(Lt)},nt=function(Lt){De.current=!1,Xe(Lt,Lt.currentTarget.value),Ht==null||Ht(Lt)},Ue=function(Lt){Xe(Lt,Lt.target.value)},I=function(Lt){Lt.key==="Enter"&&Se&&Se(Lt),fe==null||fe(Lt)},Z=function(Lt){Le(!0),pe==null||pe(Lt)},S=function(Lt){Le(!1),He==null||He(Lt)},ze=function(Lt){Ye(""),Bt(),(0,w.rJ)(St(),Lt,tt)},ke=Ke,Pe;Y.show&&(Y.showFormatter?Pe=Y.showFormatter({value:lt,count:xe,maxLength:he}):Pe="".concat(xe).concat(ce?" / ".concat(he):""),ke=E.createElement(E.Fragment,null,ke,E.createElement("span",{className:te()("".concat(Tt,"-data-count"),je==null?void 0:je.count),style:Qe==null?void 0:Qe.count},Pe)));var Ge=function(Lt){var Pt;J==null||J(Lt),(Pt=St())!==null&&Pt!==void 0&&Pt.style.height&&Oe(!0)},We=!W&&!an&&!wt;return E.createElement(o.BaseInput,{ref:Et,value:lt,allowClear:wt,handleReset:ze,suffix:ke,prefixCls:Tt,classNames:(0,z.Z)((0,z.Z)({},je),{},{affixWrapper:te()(je==null?void 0:je.affixWrapper,(0,ue.Z)((0,ue.Z)({},"".concat(Tt,"-show-count"),an),"".concat(Tt,"-textarea-allow-clear"),wt))}),disabled:Ae,focused:N,className:te()(yt,Be&&"".concat(Tt,"-out-of-range")),style:(0,z.Z)((0,z.Z)({},Fe),at&&!We?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pe=="string"?Pe:void 0}},hidden:V,readOnly:be,onClear:M},E.createElement(ot,(0,h.Z)({},ye,{autoSize:W,maxLength:It,onKeyDown:I,onChange:Ue,onFocus:Z,onBlur:S,onCompositionStart:ct,onCompositionEnd:nt,className:te()(je==null?void 0:je.textarea),style:(0,z.Z)((0,z.Z)({},Qe==null?void 0:Qe.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:Ae,prefixCls:Tt,onResize:Ge,ref:Vt,readOnly:be})))}),P=C,G=P},29125:function(In,Gt,_){"use strict";_.d(Gt,{G:function(){return ae},Z:function(){return le}});var h=_(92310),ue=_.n(h),z=_(59301);function ae(F){var H=F.children,D=F.prefixCls,A=F.id,Q=F.overlayInnerStyle,ne=F.bodyClassName,ee=F.className,oe=F.style;return z.createElement("div",{className:ue()("".concat(D,"-content"),ee),style:oe},z.createElement("div",{className:ue()("".concat(D,"-inner"),ne),id:A,role:"tooltip",style:Q},typeof H=="function"?H():H))}var B=_(32855),d=_(27247),_e=_(43079),te=_(65030),o={shiftX:64,adjustY:1},g={adjustX:1,shiftY:!0},w=[0,0],p={left:{points:["cr","cl"],overflow:g,offset:[-4,0],targetOffset:w},right:{points:["cl","cr"],overflow:g,offset:[4,0],targetOffset:w},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:w},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:w},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:w},leftTop:{points:["tr","tl"],overflow:g,offset:[-4,0],targetOffset:w},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:w},rightTop:{points:["tl","tr"],overflow:g,offset:[4,0],targetOffset:w},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:w},rightBottom:{points:["bl","br"],overflow:g,offset:[4,0],targetOffset:w},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:w},leftBottom:{points:["br","bl"],overflow:g,offset:[-4,0],targetOffset:w}},E=null,x=_(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"],j=function(H,D){var A=H.overlayClassName,Q=H.trigger,ne=Q===void 0?["hover"]:Q,ee=H.mouseEnterDelay,oe=ee===void 0?0:ee,ge=H.mouseLeaveDelay,me=ge===void 0?.1:ge,ot=H.overlayStyle,U=H.prefixCls,C=U===void 0?"rc-tooltip":U,P=H.children,G=H.onVisibleChange,re=H.afterVisibleChange,X=H.transitionName,y=H.animation,v=H.motion,O=H.placement,pe=O===void 0?"right":O,He=H.align,tt=He===void 0?{}:He,wt=H.destroyTooltipOnHide,It=wt===void 0?!1:wt,Ft=H.defaultVisible,Ht=H.getTooltipContainer,Ke=H.overlayInnerStyle,en=H.arrowContent,Tt=H.overlay,an=H.id,qe=H.showArrow,yt=qe===void 0?!0:qe,Fe=H.classNames,Ae=H.styles,V=(0,_e.Z)(H,L),je=(0,x.Z)(an),Qe=(0,z.useRef)(null);(0,z.useImperativeHandle)(D,function(){return Qe.current});var J=(0,d.Z)({},V);"visible"in H&&(J.popupVisible=H.visible);var M=function(){return z.createElement(ae,{key:"content",prefixCls:C,id:je,bodyClassName:Fe==null?void 0:Fe.body,overlayInnerStyle:(0,d.Z)((0,d.Z)({},Ke),Ae==null?void 0:Ae.body)},Tt)},Se=function(){var W=z.Children.only(P),fe=(W==null?void 0:W.props)||{},ye=(0,d.Z)((0,d.Z)({},fe),{},{"aria-describedby":Tt?je:null});return z.cloneElement(P,ye)};return z.createElement(te.Z,(0,B.Z)({popupClassName:ue()(A,Fe==null?void 0:Fe.root),prefixCls:C,popup:M,action:ne,builtinPlacements:p,popupPlacement:pe,ref:Qe,popupAlign:tt,getPopupContainer:Ht,onPopupVisibleChange:G,afterPopupVisibleChange:re,popupTransitionName:X,popupAnimation:y,popupMotion:v,defaultPopupVisible:Ft,autoDestroy:It,mouseLeaveDelay:me,popupStyle:(0,d.Z)((0,d.Z)({},ot),Ae==null?void 0:Ae.root),mouseEnterDelay:oe,arrow:yt},J),Se())},$=(0,z.forwardRef)(j),le=$},9940:function(In,Gt,_){"use strict";_.d(Gt,{Qw:function(){return an},FJ:function(){return yt},hT:function(){return qe},OF:function(){return D},ZP:function(){return be}});var h=_(32855),ue=_(3300),z=_(27247),ae=_(11913),B=_(43079),d=_(34666),_e=_(37463),te=_(6551),o=_(34643),g=_(18929),w=_(48736),p=_(59301),E=function(W){var fe=p.useRef({valueLabels:new Map});return p.useMemo(function(){var ye=fe.current.valueLabels,et=new Map,Ve=W.map(function($e){var Ye=$e.value,lt=$e.label,de=lt!=null?lt:ye.get(Ye);return et.set(Ye,de),(0,z.Z)((0,z.Z)({},$e),{},{label:de})});return fe.current.valueLabels=et,[Ve]},[W])},x=function(fe,ye,et,Ve){return p.useMemo(function(){var $e=function(Ce){return Ce.map(function(st){var at=st.value;return at})},Ye=$e(fe),lt=$e(ye),de=Ye.filter(function(De){return!Ve[De]}),K=Ye,N=lt;if(et){var Le=(0,o.S)(Ye,!0,Ve);K=Le.checkedKeys,N=Le.halfCheckedKeys}return[Array.from(new Set([].concat((0,ue.Z)(de),(0,ue.Z)(K)))),N]},[fe,ye,et,Ve])},L=x,j=_(34061),$=function(W,fe){return p.useMemo(function(){var ye=(0,j.I8)(W,{fieldNames:fe,initWrapper:function(Ve){return(0,z.Z)((0,z.Z)({},Ve),{},{valueEntities:new Map})},processEntity:function(Ve,$e){var Ye=Ve.node[fe.value];if(0)var lt;$e.valueEntities.set(Ye,Ve)}});return ye},[W,fe])},le=_(74430),F=_(11592),H=function(){return null},D=H,A=["children","value"];function Q(W){return(0,F.Z)(W).map(function(fe){if(!p.isValidElement(fe)||!fe.type)return null;var ye=fe,et=ye.key,Ve=ye.props,$e=Ve.children,Ye=Ve.value,lt=(0,B.Z)(Ve,A),de=(0,z.Z)({key:et,value:Ye},lt),K=Q($e);return K.length&&(de.children=K),de}).filter(function(fe){return fe})}function ne(W){if(!W)return W;var fe=(0,z.Z)({},W);return"props"in fe||Object.defineProperty(fe,"props",{get:function(){return(0,w.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),fe}}),fe}function ee(W,fe,ye,et,Ve,$e){var Ye=null,lt=null;function de(){function K(N){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return N.map(function(Ce,st){var at="".concat(Le,"-").concat(st),Oe=Ce[$e.value],Et=ye.includes(Oe),Vt=K(Ce[$e.children]||[],at,Et),St=p.createElement(D,Ce,Vt.map(function(se){return se.node}));if(fe===Oe&&(Ye=St),Et){var Bt={pos:at,node:St,children:Vt};return De||lt.push(Bt),Bt}return null}).filter(function(Ce){return Ce})}lt||(lt=[],K(et),lt.sort(function(N,Le){var De=N.node.props.value,Ce=Le.node.props.value,st=ye.indexOf(De),at=ye.indexOf(Ce);return st-at}))}Object.defineProperty(W,"triggerNode",{get:function(){return(0,w.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),de(),Ye}}),Object.defineProperty(W,"allCheckedNodes",{get:function(){return(0,w.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),de(),Ve?lt:lt.map(function(N){var Le=N.node;return Le})}})}var oe=function(fe,ye,et){var Ve=et.fieldNames,$e=et.treeNodeFilterProp,Ye=et.filterTreeNode,lt=Ve.children;return p.useMemo(function(){if(!ye||Ye===!1)return fe;var de=typeof Ye=="function"?Ye:function(N,Le){return String(Le[$e]).toUpperCase().includes(ye.toUpperCase())},K=function N(Le){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Le.reduce(function(Ce,st){var at=st[lt],Oe=De||de(ye,ne(st)),Et=N(at||[],Oe);return(Oe||Et.length)&&Ce.push((0,z.Z)((0,z.Z)({},st),{},(0,le.Z)({isLeaf:void 0},lt,Et))),Ce},[])};return K(fe)},[fe,ye,lt,$e,Ye])},ge=oe;function me(W){var fe=p.useRef();fe.current=W;var ye=p.useCallback(function(){return fe.current.apply(fe,arguments)},[]);return ye}function ot(W,fe){var ye=fe.id,et=fe.pId,Ve=fe.rootPId,$e=new Map,Ye=[];return W.forEach(function(lt){var de=lt[ye],K=(0,z.Z)((0,z.Z)({},lt),{},{key:lt.key||de});$e.set(de,K)}),$e.forEach(function(lt){var de=lt[et],K=$e.get(de);K?(K.children=K.children||[],K.children.push(lt)):(de===Ve||Ve===null)&&Ye.push(lt)}),Ye}function U(W,fe,ye){return p.useMemo(function(){if(W){if(ye){var et=(0,z.Z)({id:"id",pId:"pId",rootPId:null},(0,d.Z)(ye)==="object"?ye:{});return ot(W,et)}return W}return Q(fe)},[fe,ye,W])}var C=p.createContext(null),P=C,G=_(93162),re=_(89149),X=_(10228),y=_(80547),v=p.createContext(null),O=v,pe=function(fe){return Array.isArray(fe)?fe:fe!==void 0?[fe]:[]},He=function(fe){var ye=fe||{},et=ye.label,Ve=ye.value,$e=ye.children;return{_title:et?[et]:["title","label"],value:Ve||"value",key:Ve||"value",children:$e||"children"}},tt=function(fe){return!fe||fe.disabled||fe.disableCheckbox||fe.checkable===!1},wt=function(fe,ye){var et=[],Ve=function $e(Ye){Ye.forEach(function(lt){var de=lt[ye.children];de&&(et.push(lt[ye.value]),$e(de))})};return Ve(fe),et},It=function(fe){return fe==null},Ft=_(70425),Ht={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ke=function(fe,ye){var et=(0,_e.lk)(),Ve=et.prefixCls,$e=et.multiple,Ye=et.searchValue,lt=et.toggleOpen,de=et.open,K=et.notFoundContent,N=p.useContext(O),Le=N.virtual,De=N.listHeight,Ce=N.listItemHeight,st=N.listItemScrollOffset,at=N.treeData,Oe=N.fieldNames,Et=N.onSelect,Vt=N.dropdownMatchSelectWidth,St=N.treeExpandAction,Bt=N.treeTitleRender,se=N.onPopupScroll,ve=N.leftMaxCount,Ee=N.leafCountOnly,k=N.valueEntities,Y=p.useContext(P),he=Y.checkable,ce=Y.checkedKeys,xe=Y.halfCheckedKeys,Be=Y.treeExpandedKeys,Xe=Y.treeDefaultExpandAll,ct=Y.treeDefaultExpandedKeys,nt=Y.onTreeExpand,Ue=Y.treeIcon,I=Y.showTreeIcon,Z=Y.switcherIcon,S=Y.treeLine,ze=Y.treeNodeFilterProp,ke=Y.loadData,Pe=Y.treeLoadedKeys,Ge=Y.treeMotion,We=Y.onTreeLoad,dt=Y.keyEntities,Lt=p.useRef(),Pt=(0,y.Z)(function(){return at},[de,at],function(Dn,vn){return vn[0]&&Dn[1]!==vn[1]}),cn=p.useMemo(function(){return he?{checked:ce,halfChecked:xe}:null},[he,ce,xe]);p.useEffect(function(){if(de&&!$e&&ce.length){var Dn;(Dn=Lt.current)===null||Dn===void 0||Dn.scrollTo({key:ce[0]})}},[de]);var Ne=function(vn){vn.preventDefault()},Re=function(vn,Ln){var hn=Ln.node;he&&tt(hn)||(Et(hn.key,{selected:!ce.includes(hn.key)}),$e||lt(!1))},gt=p.useState(ct),pt=(0,ae.Z)(gt,2),Mt=pt[0],xt=pt[1],At=p.useState(null),Kt=(0,ae.Z)(At,2),nn=Kt[0],Ot=Kt[1],dn=p.useMemo(function(){return Be?(0,ue.Z)(Be):Ye?nn:Mt},[Mt,nn,Be,Ye]),Qt=function(vn){xt(vn),Ot(vn),nt&&nt(vn)},$t=String(Ye).toLowerCase(),Dt=function(vn){return $t?String(vn[ze]).toLowerCase().includes($t):!1};p.useEffect(function(){Ye&&Ot(wt(at,Oe))},[Ye]);var Ze=p.useState(function(){return new Map}),_t=(0,ae.Z)(Ze,2),Ct=_t[0],kt=_t[1];p.useEffect(function(){ve&&kt(new Map)},[ve]);function qt(Dn){var vn=Dn[Oe.value];if(!Ct.has(vn)){var Ln=k.get(vn),hn=(Ln.children||[]).length===0;if(hn)Ct.set(vn,!1);else{var yn=Ln.children.filter(function(Mn){return!Mn.node.disabled&&!Mn.node.disableCheckbox&&!ce.includes(Mn.node[Oe.value])}),Rn=yn.length;Ct.set(vn,Rn>ve)}}return Ct.get(vn)}var it=(0,Ft.zX)(function(Dn){var vn=Dn[Oe.value];return ce.includes(vn)||ve===null?!1:ve<=0?!0:Ee&&ve?qt(Dn):!1}),ln=function Dn(vn){var Ln=(0,G.Z)(vn),hn;try{for(Ln.s();!(hn=Ln.n()).done;){var yn=hn.value;if(!(yn.disabled||yn.selectable===!1)){if(Ye){if(Dt(yn))return yn}else return yn;if(yn[Oe.children]){var Rn=Dn(yn[Oe.children]);if(Rn)return Rn}}}}catch(Mn){Ln.e(Mn)}finally{Ln.f()}return null},En=p.useState(null),Tn=(0,ae.Z)(En,2),wn=Tn[0],Yn=Tn[1],Cn=dt[wn];p.useEffect(function(){if(de){var Dn=null,vn=function(){var hn=ln(Pt);return hn?hn[Oe.value]:null};!$e&&ce.length&&!Ye?Dn=ce[0]:Dn=vn(),Yn(Dn)}},[de,Ye]),p.useImperativeHandle(ye,function(){var Dn;return{scrollTo:(Dn=Lt.current)===null||Dn===void 0?void 0:Dn.scrollTo,onKeyDown:function(Ln){var hn,yn=Ln.which;switch(yn){case X.Z.UP:case X.Z.DOWN:case X.Z.LEFT:case X.Z.RIGHT:(hn=Lt.current)===null||hn===void 0||hn.onKeyDown(Ln);break;case X.Z.ENTER:{if(Cn){var Rn=it(Cn.node),Mn=(Cn==null?void 0:Cn.node)||{},Bn=Mn.selectable,zn=Mn.value,pr=Mn.disabled;Bn!==!1&&!pr&&!Rn&&Re(null,{node:{key:wn},selected:!ce.includes(zn)})}break}case X.Z.ESC:lt(!1)}},onKeyUp:function(){}}});var Zn=(0,y.Z)(function(){return!Ye},[Ye,Be||Mt],function(Dn,vn){var Ln=(0,ae.Z)(Dn,1),hn=Ln[0],yn=(0,ae.Z)(vn,2),Rn=yn[0],Mn=yn[1];return hn!==Rn&&!!(Rn||Mn)}),Nn=Zn?ke:null;if(Pt.length===0)return p.createElement("div",{role:"listbox",className:"".concat(Ve,"-empty"),onMouseDown:Ne},K);var Pn={fieldNames:Oe};return Pe&&(Pn.loadedKeys=Pe),dn&&(Pn.expandedKeys=dn),p.createElement("div",{onMouseDown:Ne},Cn&&de&&p.createElement("span",{style:Ht,"aria-live":"assertive"},Cn.node.value),p.createElement(re.y6.Provider,{value:{nodeDisabled:it}},p.createElement(re.ZP,(0,h.Z)({ref:Lt,focusable:!1,prefixCls:"".concat(Ve,"-tree"),treeData:Pt,height:De,itemHeight:Ce,itemScrollOffset:st,virtual:Le!==!1&&Vt!==!1,multiple:$e,icon:Ue,showIcon:I,switcherIcon:Z,showLine:S,loadData:Nn,motion:Ge,activeKey:wn,checkable:he,checkStrictly:!0,checkedKeys:cn,selectedKeys:he?[]:ce,defaultExpandAll:Xe,titleRender:Bt},Pn,{onActiveChange:Yn,onSelect:Re,onCheck:Re,onExpand:Qt,onLoad:We,filterTreeNode:Dt,expandAction:St,onScroll:se}))))},en=p.forwardRef(Ke),Tt=en,an="SHOW_ALL",qe="SHOW_PARENT",yt="SHOW_CHILD";function Fe(W,fe,ye,et){var Ve=new Set(W);return fe===yt?W.filter(function($e){var Ye=ye[$e];return!Ye||!Ye.children||!Ye.children.some(function(lt){var de=lt.node;return Ve.has(de[et.value])})||!Ye.children.every(function(lt){var de=lt.node;return tt(de)||Ve.has(de[et.value])})}):fe===qe?W.filter(function($e){var Ye=ye[$e],lt=Ye?Ye.parent:null;return!lt||tt(lt.node)||!Ve.has(lt.key)}):W}function Ae(W){var fe=W.searchPlaceholder,ye=W.treeCheckStrictly,et=W.treeCheckable,Ve=W.labelInValue,$e=W.value,Ye=W.multiple,lt=W.showCheckedStrategy,de=W.maxCount;warning(!fe,"`searchPlaceholder` has been removed."),ye&&Ve===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ve||ye)&&warning(toArray($e).every(function(K){return K&&_typeof(K)==="object"&&"value"in K}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),ye||Ye||et?warning(!$e||Array.isArray($e),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray($e),"`value` should not be array when `TreeSelect` is single mode."),de&&(lt==="SHOW_ALL"&&!ye||lt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var V=null,je=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Qe(W){return!W||(0,d.Z)(W)!=="object"}var J=p.forwardRef(function(W,fe){var ye=W.id,et=W.prefixCls,Ve=et===void 0?"rc-tree-select":et,$e=W.value,Ye=W.defaultValue,lt=W.onChange,de=W.onSelect,K=W.onDeselect,N=W.searchValue,Le=W.inputValue,De=W.onSearch,Ce=W.autoClearSearchValue,st=Ce===void 0?!0:Ce,at=W.filterTreeNode,Oe=W.treeNodeFilterProp,Et=Oe===void 0?"value":Oe,Vt=W.showCheckedStrategy,St=W.treeNodeLabelProp,Bt=W.multiple,se=W.treeCheckable,ve=W.treeCheckStrictly,Ee=W.labelInValue,k=W.maxCount,Y=W.fieldNames,he=W.treeDataSimpleMode,ce=W.treeData,xe=W.children,Be=W.loadData,Xe=W.treeLoadedKeys,ct=W.onTreeLoad,nt=W.treeDefaultExpandAll,Ue=W.treeExpandedKeys,I=W.treeDefaultExpandedKeys,Z=W.onTreeExpand,S=W.treeExpandAction,ze=W.virtual,ke=W.listHeight,Pe=ke===void 0?200:ke,Ge=W.listItemHeight,We=Ge===void 0?20:Ge,dt=W.listItemScrollOffset,Lt=dt===void 0?0:dt,Pt=W.onDropdownVisibleChange,cn=W.dropdownMatchSelectWidth,Ne=cn===void 0?!0:cn,Re=W.treeLine,gt=W.treeIcon,pt=W.showTreeIcon,Mt=W.switcherIcon,xt=W.treeMotion,At=W.treeTitleRender,Kt=W.onPopupScroll,nn=(0,B.Z)(W,je),Ot=(0,te.ZP)(ye),dn=se&&!ve,Qt=se||ve,$t=ve||Ee,Dt=Qt||Bt,Ze=(0,g.Z)(Ye,{value:$e}),_t=(0,ae.Z)(Ze,2),Ct=_t[0],kt=_t[1],qt=p.useMemo(function(){return se?Vt||yt:an},[Vt,se]),it=p.useMemo(function(){return He(Y)},[JSON.stringify(Y)]),ln=(0,g.Z)("",{value:N!==void 0?N:Le,postState:function(xn){return xn||""}}),En=(0,ae.Z)(ln,2),Tn=En[0],wn=En[1],Yn=function(xn){wn(xn),De==null||De(xn)},Cn=U(ce,xe,he),Zn=$(Cn,it),Nn=Zn.keyEntities,Pn=Zn.valueEntities,Dn=p.useCallback(function(pn){var xn=[],On=[];return pn.forEach(function(kn){Pn.has(kn)?On.push(kn):xn.push(kn)}),{missingRawValues:xn,existRawValues:On}},[Pn]),vn=ge(Cn,Tn,{fieldNames:it,treeNodeFilterProp:Et,filterTreeNode:at}),Ln=p.useCallback(function(pn){if(pn){if(St)return pn[St];for(var xn=it._title,On=0;On<xn.length;On+=1){var kn=pn[xn[On]];if(kn!==void 0)return kn}}},[it,St]),hn=p.useCallback(function(pn){var xn=pe(pn);return xn.map(function(On){return Qe(On)?{value:On}:On})},[]),yn=p.useCallback(function(pn){var xn=hn(pn);return xn.map(function(On){var kn=On.label,Gn=On.value,Sn=On.halfChecked,Hn,Un=Pn.get(Gn);if(Un){var tr;kn=At?At(Un.node):(tr=kn)!==null&&tr!==void 0?tr:Ln(Un.node),Hn=Un.node.disabled}else if(kn===void 0){var Wn=hn(Ct).find(function(Jn){return Jn.value===Gn});kn=Wn.label}return{label:kn,value:Gn,halfChecked:Sn,disabled:Hn}})},[Pn,Ln,hn,Ct]),Rn=p.useMemo(function(){return hn(Ct===null?[]:Ct)},[hn,Ct]),Mn=p.useMemo(function(){var pn=[],xn=[];return Rn.forEach(function(On){On.halfChecked?xn.push(On):pn.push(On)}),[pn,xn]},[Rn]),Bn=(0,ae.Z)(Mn,2),zn=Bn[0],pr=Bn[1],Me=p.useMemo(function(){return zn.map(function(pn){return pn.value})},[zn]),Te=L(zn,pr,dn,Nn),Ie=(0,ae.Z)(Te,2),ut=Ie[0],mt=Ie[1],ft=p.useMemo(function(){var pn=Fe(ut,qt,Nn,it),xn=pn.map(function(Sn){var Hn,Un;return(Hn=(Un=Nn[Sn])===null||Un===void 0||(Un=Un.node)===null||Un===void 0?void 0:Un[it.value])!==null&&Hn!==void 0?Hn:Sn}),On=xn.map(function(Sn){var Hn=zn.find(function(tr){return tr.value===Sn}),Un=Ee?Hn==null?void 0:Hn.label:At==null?void 0:At(Hn);return{value:Sn,label:Un}}),kn=yn(On),Gn=kn[0];return!Dt&&Gn&&It(Gn.value)&&It(Gn.label)?[]:kn.map(function(Sn){var Hn;return(0,z.Z)((0,z.Z)({},Sn),{},{label:(Hn=Sn.label)!==null&&Hn!==void 0?Hn:Sn.value})})},[it,Dt,ut,zn,yn,qt,Nn]),zt=E(ft),Wt=(0,ae.Z)(zt,1),Rt=Wt[0],vt=p.useMemo(function(){return Dt&&(qt==="SHOW_CHILD"||ve||!se)?k:null},[k,Dt,ve,qt,se]),bt=me(function(pn,xn,On){var kn=Fe(pn,qt,Nn,it);if(!(vt&&kn.length>vt)){var Gn=yn(pn);if(kt(Gn),st&&wn(""),lt){var Sn=pn;dn&&(Sn=kn.map(function(jt){var mn=Pn.get(jt);return mn?mn.node[it.value]:jt}));var Hn=xn||{triggerValue:void 0,selected:void 0},Un=Hn.triggerValue,tr=Hn.selected,Wn=Sn;if(ve){var Jn=pr.filter(function(jt){return!Sn.includes(jt.value)});Wn=[].concat((0,ue.Z)(Wn),(0,ue.Z)(Jn))}var lr=yn(Wn),Je={preValue:zn,triggerValue:Un},Jt=!0;(ve||On==="selection"&&!tr)&&(Jt=!1),ee(Je,Un,pn,Cn,Jt,it),Qt?Je.checked=tr:Je.selected=tr;var on=$t?lr:lr.map(function(jt){return jt.value});lt(Dt?on:on[0],$t?null:lr.map(function(jt){return jt.label}),Je)}}}),Nt=p.useCallback(function(pn,xn){var On,kn=xn.selected,Gn=xn.source,Sn=Nn[pn],Hn=Sn==null?void 0:Sn.node,Un=(On=Hn==null?void 0:Hn[it.value])!==null&&On!==void 0?On:pn;if(!Dt)bt([Un],{selected:!0,triggerValue:Un},"option");else{var tr=kn?[].concat((0,ue.Z)(Me),[Un]):ut.filter(function(mn){return mn!==Un});if(dn){var Wn=Dn(tr),Jn=Wn.missingRawValues,lr=Wn.existRawValues,Je=lr.map(function(mn){return Pn.get(mn).key}),Jt;if(kn){var on=(0,o.S)(Je,!0,Nn);Jt=on.checkedKeys}else{var jt=(0,o.S)(Je,{checked:!1,halfCheckedKeys:mt},Nn);Jt=jt.checkedKeys}tr=[].concat((0,ue.Z)(Jn),(0,ue.Z)(Jt.map(function(mn){return Nn[mn].node[it.value]})))}bt(tr,{selected:kn,triggerValue:Un},Gn||"option")}kn||!Dt?de==null||de(Un,ne(Hn)):K==null||K(Un,ne(Hn))},[Dn,Pn,Nn,it,Dt,Me,bt,dn,de,K,ut,mt,k]),Zt=p.useCallback(function(pn){if(Pt){var xn={};Object.defineProperty(xn,"documentClickClose",{get:function(){return(0,w.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Pt(pn,xn)}},[Pt]),rn=me(function(pn,xn){var On=pn.map(function(kn){return kn.value});if(xn.type==="clear"){bt(On,{},"selection");return}xn.values.length&&Nt(xn.values[0].value,{selected:!1,source:"selection"})}),gn=p.useMemo(function(){return{virtual:ze,dropdownMatchSelectWidth:Ne,listHeight:Pe,listItemHeight:We,listItemScrollOffset:Lt,treeData:vn,fieldNames:it,onSelect:Nt,treeExpandAction:S,treeTitleRender:At,onPopupScroll:Kt,leftMaxCount:k===void 0?null:k-Rt.length,leafCountOnly:qt==="SHOW_CHILD"&&!ve&&!!se,valueEntities:Pn}},[ze,Ne,Pe,We,Lt,vn,it,Nt,S,At,Kt,k,Rt.length,qt,ve,se,Pn]),Fn=p.useMemo(function(){return{checkable:Qt,loadData:Be,treeLoadedKeys:Xe,onTreeLoad:ct,checkedKeys:ut,halfCheckedKeys:mt,treeDefaultExpandAll:nt,treeExpandedKeys:Ue,treeDefaultExpandedKeys:I,onTreeExpand:Z,treeIcon:gt,treeMotion:xt,showTreeIcon:pt,switcherIcon:Mt,treeLine:Re,treeNodeFilterProp:Et,keyEntities:Nn}},[Qt,Be,Xe,ct,ut,mt,nt,Ue,I,Z,gt,xt,pt,Mt,Re,Et,Nn]);return p.createElement(O.Provider,{value:gn},p.createElement(P.Provider,{value:Fn},p.createElement(_e.Ac,(0,h.Z)({ref:fe},nn,{id:Ot,prefixCls:Ve,mode:Dt?"multiple":void 0,displayValues:Rt,onDisplayValuesChange:rn,searchValue:Tn,onSearch:Yn,OptionList:Tt,emptyOptions:!Cn.length,onDropdownVisibleChange:Zt,dropdownMatchSelectWidth:Ne}))))}),M=J;M.TreeNode=D,M.SHOW_ALL=an,M.SHOW_PARENT=qe,M.SHOW_CHILD=yt;var Se=M,be=Se},639:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return H}});var h=_(32855),ue=_(74430),z=_(27247),ae=_(11913),B=_(43079),d=_(59301),_e=_(92310),te=_.n(_e),o=_(26112),g=_(30699),w=function(A){for(var Q=A.prefixCls,ne=A.level,ee=A.isStart,oe=A.isEnd,ge="".concat(Q,"-indent-unit"),me=[],ot=0;ot<ne;ot+=1)me.push(d.createElement("span",{key:ot,className:te()(ge,(0,ue.Z)((0,ue.Z)({},"".concat(ge,"-start"),ee[ot]),"".concat(ge,"-end"),oe[ot]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(Q,"-indent")},me)},p=d.memo(w),E=_(65065),x=_(34061),L=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],j="open",$="close",le="---",F=function(A){var Q,ne,ee,oe=A.eventKey,ge=A.className,me=A.style,ot=A.dragOver,U=A.dragOverGapTop,C=A.dragOverGapBottom,P=A.isLeaf,G=A.isStart,re=A.isEnd,X=A.expanded,y=A.selected,v=A.checked,O=A.halfChecked,pe=A.loading,He=A.domRef,tt=A.active,wt=A.data,It=A.onMouseMove,Ft=A.selectable,Ht=(0,B.Z)(A,L),Ke=d.useContext(g.k),en=d.useContext(g.y),Tt=d.useRef(null),an=d.useState(!1),qe=(0,ae.Z)(an,2),yt=qe[0],Fe=qe[1],Ae=!!(Ke.disabled||A.disabled||(Q=en.nodeDisabled)!==null&&Q!==void 0&&Q.call(en,wt)),V=d.useMemo(function(){return!Ke.checkable||A.checkable===!1?!1:Ke.checkable},[Ke.checkable,A.checkable]),je=function(xe){Ae||Ke.onNodeSelect(xe,(0,x.F)(A))},Qe=function(xe){Ae||!V||A.disableCheckbox||Ke.onNodeCheck(xe,(0,x.F)(A),!v)},J=d.useMemo(function(){return typeof Ft=="boolean"?Ft:Ke.selectable},[Ft,Ke.selectable]),M=function(xe){Ke.onNodeClick(xe,(0,x.F)(A)),J?je(xe):Qe(xe)},Se=function(xe){Ke.onNodeDoubleClick(xe,(0,x.F)(A))},be=function(xe){Ke.onNodeMouseEnter(xe,(0,x.F)(A))},W=function(xe){Ke.onNodeMouseLeave(xe,(0,x.F)(A))},fe=function(xe){Ke.onNodeContextMenu(xe,(0,x.F)(A))},ye=d.useMemo(function(){return!!(Ke.draggable&&(!Ke.draggable.nodeDraggable||Ke.draggable.nodeDraggable(wt)))},[Ke.draggable,wt]),et=function(xe){xe.stopPropagation(),Fe(!0),Ke.onNodeDragStart(xe,A);try{xe.dataTransfer.setData("text/plain","")}catch(Be){}},Ve=function(xe){xe.preventDefault(),xe.stopPropagation(),Ke.onNodeDragEnter(xe,A)},$e=function(xe){xe.preventDefault(),xe.stopPropagation(),Ke.onNodeDragOver(xe,A)},Ye=function(xe){xe.stopPropagation(),Ke.onNodeDragLeave(xe,A)},lt=function(xe){xe.stopPropagation(),Fe(!1),Ke.onNodeDragEnd(xe,A)},de=function(xe){xe.preventDefault(),xe.stopPropagation(),Fe(!1),Ke.onNodeDrop(xe,A)},K=function(xe){pe||Ke.onNodeExpand(xe,(0,x.F)(A))},N=d.useMemo(function(){var ce=(0,E.Z)(Ke.keyEntities,oe)||{},xe=ce.children;return!!(xe||[]).length},[Ke.keyEntities,oe]),Le=d.useMemo(function(){return P===!1?!1:P||!Ke.loadData&&!N||Ke.loadData&&A.loaded&&!N},[P,Ke.loadData,N,A.loaded]);d.useEffect(function(){pe||typeof Ke.loadData=="function"&&X&&!Le&&!A.loaded&&Ke.onNodeLoad((0,x.F)(A))},[pe,Ke.loadData,Ke.onNodeLoad,X,Le,A]);var De=d.useMemo(function(){var ce;return(ce=Ke.draggable)!==null&&ce!==void 0&&ce.icon?d.createElement("span",{className:"".concat(Ke.prefixCls,"-draggable-icon")},Ke.draggable.icon):null},[Ke.draggable]),Ce=function(xe){var Be=A.switcherIcon||Ke.switcherIcon;return typeof Be=="function"?Be((0,z.Z)((0,z.Z)({},A),{},{isLeaf:xe})):Be},st=function(){if(Le){var xe=Ce(!0);return xe!==!1?d.createElement("span",{className:te()("".concat(Ke.prefixCls,"-switcher"),"".concat(Ke.prefixCls,"-switcher-noop"))},xe):null}var Be=Ce(!1);return Be!==!1?d.createElement("span",{onClick:K,className:te()("".concat(Ke.prefixCls,"-switcher"),"".concat(Ke.prefixCls,"-switcher_").concat(X?j:$))},Be):null},at=d.useMemo(function(){if(!V)return null;var ce=typeof V!="boolean"?V:null;return d.createElement("span",{className:te()("".concat(Ke.prefixCls,"-checkbox"),(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ke.prefixCls,"-checkbox-checked"),v),"".concat(Ke.prefixCls,"-checkbox-indeterminate"),!v&&O),"".concat(Ke.prefixCls,"-checkbox-disabled"),Ae||A.disableCheckbox)),onClick:Qe,role:"checkbox","aria-checked":O?"mixed":v,"aria-disabled":Ae||A.disableCheckbox,"aria-label":"Select ".concat(typeof A.title=="string"?A.title:"tree node")},ce)},[V,v,O,Ae,A.disableCheckbox,A.title]),Oe=d.useMemo(function(){return Le?null:X?j:$},[Le,X]),Et=d.useMemo(function(){return d.createElement("span",{className:te()("".concat(Ke.prefixCls,"-iconEle"),"".concat(Ke.prefixCls,"-icon__").concat(Oe||"docu"),(0,ue.Z)({},"".concat(Ke.prefixCls,"-icon_loading"),pe))})},[Ke.prefixCls,Oe,pe]),Vt=d.useMemo(function(){var ce=!!Ke.draggable,xe=!A.disabled&&ce&&Ke.dragOverNodeKey===oe;return xe?Ke.dropIndicatorRender({dropPosition:Ke.dropPosition,dropLevelOffset:Ke.dropLevelOffset,indent:Ke.indent,prefixCls:Ke.prefixCls,direction:Ke.direction}):null},[Ke.dropPosition,Ke.dropLevelOffset,Ke.indent,Ke.prefixCls,Ke.direction,Ke.draggable,Ke.dragOverNodeKey,Ke.dropIndicatorRender]),St=d.useMemo(function(){var ce=A.title,xe=ce===void 0?le:ce,Be="".concat(Ke.prefixCls,"-node-content-wrapper"),Xe;if(Ke.showIcon){var ct=A.icon||Ke.icon;Xe=ct?d.createElement("span",{className:te()("".concat(Ke.prefixCls,"-iconEle"),"".concat(Ke.prefixCls,"-icon__customize"))},typeof ct=="function"?ct(A):ct):Et}else Ke.loadData&&pe&&(Xe=Et);var nt;return typeof xe=="function"?nt=xe(wt):Ke.titleRender?nt=Ke.titleRender(wt):nt=xe,d.createElement("span",{ref:Tt,title:typeof xe=="string"?xe:"",className:te()(Be,"".concat(Be,"-").concat(Oe||"normal"),(0,ue.Z)({},"".concat(Ke.prefixCls,"-node-selected"),!Ae&&(y||yt))),onMouseEnter:be,onMouseLeave:W,onContextMenu:fe,onClick:M,onDoubleClick:Se},Xe,d.createElement("span",{className:"".concat(Ke.prefixCls,"-title")},nt),Vt)},[Ke.prefixCls,Ke.showIcon,A,Ke.icon,Et,Ke.titleRender,wt,Oe,be,W,fe,M,Se]),Bt=(0,o.Z)(Ht,{aria:!0,data:!0}),se=(0,E.Z)(Ke.keyEntities,oe)||{},ve=se.level,Ee=re[re.length-1],k=!Ae&&ye,Y=Ke.draggingNodeKey===oe,he=Ft!==void 0?{"aria-selected":!!Ft}:void 0;return d.createElement("div",(0,h.Z)({ref:He,role:"treeitem","aria-expanded":P?void 0:X,className:te()(ge,"".concat(Ke.prefixCls,"-treenode"),(ee={},(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)(ee,"".concat(Ke.prefixCls,"-treenode-disabled"),Ae),"".concat(Ke.prefixCls,"-treenode-switcher-").concat(X?"open":"close"),!P),"".concat(Ke.prefixCls,"-treenode-checkbox-checked"),v),"".concat(Ke.prefixCls,"-treenode-checkbox-indeterminate"),O),"".concat(Ke.prefixCls,"-treenode-selected"),y),"".concat(Ke.prefixCls,"-treenode-loading"),pe),"".concat(Ke.prefixCls,"-treenode-active"),tt),"".concat(Ke.prefixCls,"-treenode-leaf-last"),Ee),"".concat(Ke.prefixCls,"-treenode-draggable"),ye),"dragging",Y),(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)(ee,"drop-target",Ke.dropTargetKey===oe),"drop-container",Ke.dropContainerKey===oe),"drag-over",!Ae&&ot),"drag-over-gap-top",!Ae&&U),"drag-over-gap-bottom",!Ae&&C),"filter-node",(ne=Ke.filterTreeNode)===null||ne===void 0?void 0:ne.call(Ke,(0,x.F)(A))),"".concat(Ke.prefixCls,"-treenode-leaf"),Le))),style:me,draggable:k,onDragStart:k?et:void 0,onDragEnter:ye?Ve:void 0,onDragOver:ye?$e:void 0,onDragLeave:ye?Ye:void 0,onDrop:ye?de:void 0,onDragEnd:ye?lt:void 0,onMouseMove:It},he,Bt),d.createElement(p,{prefixCls:Ke.prefixCls,level:ve,isStart:G,isEnd:re}),De,st(),at,St)};F.isTreeNode=1;var H=F},30699:function(In,Gt,_){"use strict";_.d(Gt,{k:function(){return ue},y:function(){return z}});var h=_(59301),ue=h.createContext(null),z=h.createContext({})},89149:function(In,Gt,_){"use strict";_.d(Gt,{OF:function(){return oe.Z},y6:function(){return $.y},ZP:function(){return Ae}});var h=_(32855),ue=_(34666),z=_(27247),ae=_(3300),B=_(33377),d=_(93912),_e=_(83383),te=_(18881),o=_(85461),g=_(74430),w=_(92310),p=_.n(w),E=_(10228),x=_(26112),L=_(48736),j=_(59301),$=_(30699),le=function(je){var Qe=je.dropPosition,J=je.dropLevelOffset,M=je.indent,Se={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Qe){case-1:Se.top=0,Se.left=-J*M;break;case 1:Se.bottom=0,Se.left=-J*M;break;case 0:Se.bottom=0,Se.left=M;break}return j.createElement("div",{style:Se})},F=le;function H(V){if(V==null)throw new TypeError("Cannot destructure "+V)}var D=_(11913),A=_(43079),Q=_(34280),ne=_(6790),ee=_(77900),oe=_(639);function ge(V,je){var Qe=j.useState(!1),J=(0,D.Z)(Qe,2),M=J[0],Se=J[1];(0,Q.Z)(function(){if(M)return V(),function(){je()}},[M]),(0,Q.Z)(function(){return Se(!0),function(){Se(!1)}},[])}var me=ge,ot=_(34061),U=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],C=j.forwardRef(function(V,je){var Qe=V.className,J=V.style,M=V.motion,Se=V.motionNodes,be=V.motionType,W=V.onMotionStart,fe=V.onMotionEnd,ye=V.active,et=V.treeNodeRequiredProps,Ve=(0,A.Z)(V,U),$e=j.useState(!0),Ye=(0,D.Z)($e,2),lt=Ye[0],de=Ye[1],K=j.useContext($.k),N=K.prefixCls,Le=Se&&be!=="hide";(0,Q.Z)(function(){Se&&Le!==lt&&de(Le)},[Se]);var De=function(){Se&&W()},Ce=j.useRef(!1),st=function(){Se&&!Ce.current&&(Ce.current=!0,fe())};me(De,st);var at=function(Et){Le===Et&&st()};return Se?j.createElement(ee.default,(0,h.Z)({ref:je,visible:lt},M,{motionAppear:be==="show",onVisibleChanged:at}),function(Oe,Et){var Vt=Oe.className,St=Oe.style;return j.createElement("div",{ref:Et,className:p()("".concat(N,"-treenode-motion"),Vt),style:St},Se.map(function(Bt){var se=Object.assign({},(H(Bt.data),Bt.data)),ve=Bt.title,Ee=Bt.key,k=Bt.isStart,Y=Bt.isEnd;delete se.children;var he=(0,ot.H8)(Ee,et);return j.createElement(oe.Z,(0,h.Z)({},se,he,{title:ve,active:ye,data:Bt.data,key:Ee,isStart:k,isEnd:Y}))}))}):j.createElement(oe.Z,(0,h.Z)({domRef:je,className:Qe,style:J},Ve,{active:ye}))}),P=C;function G(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Qe=V.length,J=je.length;if(Math.abs(Qe-J)!==1)return{add:!1,key:null};function M(Se,be){var W=new Map;Se.forEach(function(ye){W.set(ye,!0)});var fe=be.filter(function(ye){return!W.has(ye)});return fe.length===1?fe[0]:null}return Qe<J?{add:!0,key:M(V,je)}:{add:!1,key:M(je,V)}}function re(V,je,Qe){var J=V.findIndex(function(W){return W.key===Qe}),M=V[J+1],Se=je.findIndex(function(W){return W.key===Qe});if(M){var be=je.findIndex(function(W){return W.key===M.key});return je.slice(Se+1,be)}return je.slice(Se+1)}var X=["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"],y={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},O="RC_TREE_MOTION_".concat(Math.random()),pe={key:O},He={key:O,level:0,index:0,pos:"0",node:pe,nodes:[pe]},tt={parent:null,children:[],pos:He.pos,data:pe,title:null,key:O,isStart:[],isEnd:[]};function wt(V,je,Qe,J){return je===!1||!Qe?V:V.slice(0,Math.ceil(Qe/J)+1)}function It(V){var je=V.key,Qe=V.pos;return(0,ot.km)(je,Qe)}function Ft(V){for(var je=String(V.data.key),Qe=V;Qe.parent;)Qe=Qe.parent,je="".concat(Qe.data.key," > ").concat(je);return je}var Ht=j.forwardRef(function(V,je){var Qe=V.prefixCls,J=V.data,M=V.selectable,Se=V.checkable,be=V.expandedKeys,W=V.selectedKeys,fe=V.checkedKeys,ye=V.loadedKeys,et=V.loadingKeys,Ve=V.halfCheckedKeys,$e=V.keyEntities,Ye=V.disabled,lt=V.dragging,de=V.dragOverNodeKey,K=V.dropPosition,N=V.motion,Le=V.height,De=V.itemHeight,Ce=V.virtual,st=V.scrollWidth,at=V.focusable,Oe=V.activeItem,Et=V.focused,Vt=V.tabIndex,St=V.onKeyDown,Bt=V.onFocus,se=V.onBlur,ve=V.onActiveChange,Ee=V.onListChangeStart,k=V.onListChangeEnd,Y=(0,A.Z)(V,X),he=j.useRef(null),ce=j.useRef(null);j.useImperativeHandle(je,function(){return{scrollTo:function(Kt){he.current.scrollTo(Kt)},getIndentWidth:function(){return ce.current.offsetWidth}}});var xe=j.useState(be),Be=(0,D.Z)(xe,2),Xe=Be[0],ct=Be[1],nt=j.useState(J),Ue=(0,D.Z)(nt,2),I=Ue[0],Z=Ue[1],S=j.useState(J),ze=(0,D.Z)(S,2),ke=ze[0],Pe=ze[1],Ge=j.useState([]),We=(0,D.Z)(Ge,2),dt=We[0],Lt=We[1],Pt=j.useState(null),cn=(0,D.Z)(Pt,2),Ne=cn[0],Re=cn[1],gt=j.useRef(J);gt.current=J;function pt(){var At=gt.current;Z(At),Pe(At),Lt([]),Re(null),k()}(0,Q.Z)(function(){ct(be);var At=G(Xe,be);if(At.key!==null)if(At.add){var Kt=I.findIndex(function(Dt){var Ze=Dt.key;return Ze===At.key}),nn=wt(re(I,J,At.key),Ce,Le,De),Ot=I.slice();Ot.splice(Kt+1,0,tt),Pe(Ot),Lt(nn),Re("show")}else{var dn=J.findIndex(function(Dt){var Ze=Dt.key;return Ze===At.key}),Qt=wt(re(J,I,At.key),Ce,Le,De),$t=J.slice();$t.splice(dn+1,0,tt),Pe($t),Lt(Qt),Re("hide")}else I!==J&&(Z(J),Pe(J))},[be,J]),j.useEffect(function(){lt||pt()},[lt]);var Mt=N?ke:J,xt={expandedKeys:be,selectedKeys:W,loadedKeys:ye,loadingKeys:et,checkedKeys:fe,halfCheckedKeys:Ve,dragOverNodeKey:de,dropPosition:K,keyEntities:$e};return j.createElement(j.Fragment,null,Et&&Oe&&j.createElement("span",{style:y,"aria-live":"assertive"},Ft(Oe)),j.createElement("div",null,j.createElement("input",{style:y,disabled:at===!1||Ye,tabIndex:at!==!1?Vt:null,onKeyDown:St,onFocus:Bt,onBlur:se,value:"",onChange:v,"aria-label":"for screen reader"})),j.createElement("div",{className:"".concat(Qe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},j.createElement("div",{className:"".concat(Qe,"-indent")},j.createElement("div",{ref:ce,className:"".concat(Qe,"-indent-unit")}))),j.createElement(ne.Z,(0,h.Z)({},Y,{data:Mt,itemKey:It,height:Le,fullHeight:!1,virtual:Ce,itemHeight:De,scrollWidth:st,prefixCls:"".concat(Qe,"-list"),ref:he,role:"tree",onVisibleChange:function(Kt){Kt.every(function(nn){return It(nn)!==O})&&pt()}}),function(At){var Kt=At.pos,nn=Object.assign({},(H(At.data),At.data)),Ot=At.title,dn=At.key,Qt=At.isStart,$t=At.isEnd,Dt=(0,ot.km)(dn,Kt);delete nn.key,delete nn.children;var Ze=(0,ot.H8)(Dt,xt);return j.createElement(P,(0,h.Z)({},nn,Ze,{title:Ot,active:!!Oe&&dn===Oe.key,pos:Kt,data:At.data,isStart:Qt,isEnd:$t,motion:N,motionNodes:dn===O?dt:null,motionType:Ne,onMotionStart:Ee,onMotionEnd:pt,treeNodeRequiredProps:xt,onMouseMove:function(){ve(null)}}))}))}),Ke=Ht,en=_(82661),Tt=_(34643),an=_(65065),qe=10,yt=function(V){(0,te.Z)(Qe,V);var je=(0,o.Z)(Qe);function Qe(){var J;(0,B.Z)(this,Qe);for(var M=arguments.length,Se=new Array(M),be=0;be<M;be++)Se[be]=arguments[be];return J=je.call.apply(je,[this].concat(Se)),(0,g.Z)((0,_e.Z)(J),"destroyed",!1),(0,g.Z)((0,_e.Z)(J),"delayedDragEnterLogic",void 0),(0,g.Z)((0,_e.Z)(J),"loadingRetryTimes",{}),(0,g.Z)((0,_e.Z)(J),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ot.w$)()}),(0,g.Z)((0,_e.Z)(J),"dragStartMousePosition",null),(0,g.Z)((0,_e.Z)(J),"dragNodeProps",null),(0,g.Z)((0,_e.Z)(J),"currentMouseOverDroppableNodeKey",null),(0,g.Z)((0,_e.Z)(J),"listRef",j.createRef()),(0,g.Z)((0,_e.Z)(J),"onNodeDragStart",function(W,fe){var ye=J.state,et=ye.expandedKeys,Ve=ye.keyEntities,$e=J.props.onDragStart,Ye=fe.eventKey;J.dragNodeProps=fe,J.dragStartMousePosition={x:W.clientX,y:W.clientY};var lt=(0,en._5)(et,Ye);J.setState({draggingNodeKey:Ye,dragChildrenKeys:(0,en.wA)(Ye,Ve),indent:J.listRef.current.getIndentWidth()}),J.setExpandedKeys(lt),window.addEventListener("dragend",J.onWindowDragEnd),$e==null||$e({event:W,node:(0,ot.F)(fe)})}),(0,g.Z)((0,_e.Z)(J),"onNodeDragEnter",function(W,fe){var ye=J.state,et=ye.expandedKeys,Ve=ye.keyEntities,$e=ye.dragChildrenKeys,Ye=ye.flattenNodes,lt=ye.indent,de=J.props,K=de.onDragEnter,N=de.onExpand,Le=de.allowDrop,De=de.direction,Ce=fe.pos,st=fe.eventKey;if(J.currentMouseOverDroppableNodeKey!==st&&(J.currentMouseOverDroppableNodeKey=st),!J.dragNodeProps){J.resetDragState();return}var at=(0,en.OM)(W,J.dragNodeProps,fe,lt,J.dragStartMousePosition,Le,Ye,Ve,et,De),Oe=at.dropPosition,Et=at.dropLevelOffset,Vt=at.dropTargetKey,St=at.dropContainerKey,Bt=at.dropTargetPos,se=at.dropAllowed,ve=at.dragOverNodeKey;if($e.includes(Vt)||!se){J.resetDragState();return}if(J.delayedDragEnterLogic||(J.delayedDragEnterLogic={}),Object.keys(J.delayedDragEnterLogic).forEach(function(Ee){clearTimeout(J.delayedDragEnterLogic[Ee])}),J.dragNodeProps.eventKey!==fe.eventKey&&(W.persist(),J.delayedDragEnterLogic[Ce]=window.setTimeout(function(){if(J.state.draggingNodeKey!==null){var Ee=(0,ae.Z)(et),k=(0,an.Z)(Ve,fe.eventKey);k&&(k.children||[]).length&&(Ee=(0,en.L0)(et,fe.eventKey)),J.props.hasOwnProperty("expandedKeys")||J.setExpandedKeys(Ee),N==null||N(Ee,{node:(0,ot.F)(fe),expanded:!0,nativeEvent:W.nativeEvent})}},800)),J.dragNodeProps.eventKey===Vt&&Et===0){J.resetDragState();return}J.setState({dragOverNodeKey:ve,dropPosition:Oe,dropLevelOffset:Et,dropTargetKey:Vt,dropContainerKey:St,dropTargetPos:Bt,dropAllowed:se}),K==null||K({event:W,node:(0,ot.F)(fe),expandedKeys:et})}),(0,g.Z)((0,_e.Z)(J),"onNodeDragOver",function(W,fe){var ye=J.state,et=ye.dragChildrenKeys,Ve=ye.flattenNodes,$e=ye.keyEntities,Ye=ye.expandedKeys,lt=ye.indent,de=J.props,K=de.onDragOver,N=de.allowDrop,Le=de.direction;if(J.dragNodeProps){var De=(0,en.OM)(W,J.dragNodeProps,fe,lt,J.dragStartMousePosition,N,Ve,$e,Ye,Le),Ce=De.dropPosition,st=De.dropLevelOffset,at=De.dropTargetKey,Oe=De.dropContainerKey,Et=De.dropTargetPos,Vt=De.dropAllowed,St=De.dragOverNodeKey;et.includes(at)||!Vt||(J.dragNodeProps.eventKey===at&&st===0?J.state.dropPosition===null&&J.state.dropLevelOffset===null&&J.state.dropTargetKey===null&&J.state.dropContainerKey===null&&J.state.dropTargetPos===null&&J.state.dropAllowed===!1&&J.state.dragOverNodeKey===null||J.resetDragState():Ce===J.state.dropPosition&&st===J.state.dropLevelOffset&&at===J.state.dropTargetKey&&Oe===J.state.dropContainerKey&&Et===J.state.dropTargetPos&&Vt===J.state.dropAllowed&&St===J.state.dragOverNodeKey||J.setState({dropPosition:Ce,dropLevelOffset:st,dropTargetKey:at,dropContainerKey:Oe,dropTargetPos:Et,dropAllowed:Vt,dragOverNodeKey:St}),K==null||K({event:W,node:(0,ot.F)(fe)}))}}),(0,g.Z)((0,_e.Z)(J),"onNodeDragLeave",function(W,fe){J.currentMouseOverDroppableNodeKey===fe.eventKey&&!W.currentTarget.contains(W.relatedTarget)&&(J.resetDragState(),J.currentMouseOverDroppableNodeKey=null);var ye=J.props.onDragLeave;ye==null||ye({event:W,node:(0,ot.F)(fe)})}),(0,g.Z)((0,_e.Z)(J),"onWindowDragEnd",function(W){J.onNodeDragEnd(W,null,!0),window.removeEventListener("dragend",J.onWindowDragEnd)}),(0,g.Z)((0,_e.Z)(J),"onNodeDragEnd",function(W,fe){var ye=J.props.onDragEnd;J.setState({dragOverNodeKey:null}),J.cleanDragState(),ye==null||ye({event:W,node:(0,ot.F)(fe)}),J.dragNodeProps=null,window.removeEventListener("dragend",J.onWindowDragEnd)}),(0,g.Z)((0,_e.Z)(J),"onNodeDrop",function(W,fe){var ye,et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ve=J.state,$e=Ve.dragChildrenKeys,Ye=Ve.dropPosition,lt=Ve.dropTargetKey,de=Ve.dropTargetPos,K=Ve.dropAllowed;if(K){var N=J.props.onDrop;if(J.setState({dragOverNodeKey:null}),J.cleanDragState(),lt!==null){var Le=(0,z.Z)((0,z.Z)({},(0,ot.H8)(lt,J.getTreeNodeRequiredProps())),{},{active:((ye=J.getActiveItem())===null||ye===void 0?void 0:ye.key)===lt,data:(0,an.Z)(J.state.keyEntities,lt).node}),De=$e.includes(lt);(0,L.ZP)(!De,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ce=(0,en.yx)(de),st={event:W,node:(0,ot.F)(Le),dragNode:J.dragNodeProps?(0,ot.F)(J.dragNodeProps):null,dragNodesKeys:[J.dragNodeProps.eventKey].concat($e),dropToGap:Ye!==0,dropPosition:Ye+Number(Ce[Ce.length-1])};et||N==null||N(st),J.dragNodeProps=null}}}),(0,g.Z)((0,_e.Z)(J),"cleanDragState",function(){var W=J.state.draggingNodeKey;W!==null&&J.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),J.dragStartMousePosition=null,J.currentMouseOverDroppableNodeKey=null}),(0,g.Z)((0,_e.Z)(J),"triggerExpandActionExpand",function(W,fe){var ye=J.state,et=ye.expandedKeys,Ve=ye.flattenNodes,$e=fe.expanded,Ye=fe.key,lt=fe.isLeaf;if(!(lt||W.shiftKey||W.metaKey||W.ctrlKey)){var de=Ve.filter(function(N){return N.key===Ye})[0],K=(0,ot.F)((0,z.Z)((0,z.Z)({},(0,ot.H8)(Ye,J.getTreeNodeRequiredProps())),{},{data:de.data}));J.setExpandedKeys($e?(0,en._5)(et,Ye):(0,en.L0)(et,Ye)),J.onNodeExpand(W,K)}}),(0,g.Z)((0,_e.Z)(J),"onNodeClick",function(W,fe){var ye=J.props,et=ye.onClick,Ve=ye.expandAction;Ve==="click"&&J.triggerExpandActionExpand(W,fe),et==null||et(W,fe)}),(0,g.Z)((0,_e.Z)(J),"onNodeDoubleClick",function(W,fe){var ye=J.props,et=ye.onDoubleClick,Ve=ye.expandAction;Ve==="doubleClick"&&J.triggerExpandActionExpand(W,fe),et==null||et(W,fe)}),(0,g.Z)((0,_e.Z)(J),"onNodeSelect",function(W,fe){var ye=J.state.selectedKeys,et=J.state,Ve=et.keyEntities,$e=et.fieldNames,Ye=J.props,lt=Ye.onSelect,de=Ye.multiple,K=fe.selected,N=fe[$e.key],Le=!K;Le?de?ye=(0,en.L0)(ye,N):ye=[N]:ye=(0,en._5)(ye,N);var De=ye.map(function(Ce){var st=(0,an.Z)(Ve,Ce);return st?st.node:null}).filter(Boolean);J.setUncontrolledState({selectedKeys:ye}),lt==null||lt(ye,{event:"select",selected:Le,node:fe,selectedNodes:De,nativeEvent:W.nativeEvent})}),(0,g.Z)((0,_e.Z)(J),"onNodeCheck",function(W,fe,ye){var et=J.state,Ve=et.keyEntities,$e=et.checkedKeys,Ye=et.halfCheckedKeys,lt=J.props,de=lt.checkStrictly,K=lt.onCheck,N=fe.key,Le,De={event:"check",node:fe,checked:ye,nativeEvent:W.nativeEvent};if(de){var Ce=ye?(0,en.L0)($e,N):(0,en._5)($e,N),st=(0,en._5)(Ye,N);Le={checked:Ce,halfChecked:st},De.checkedNodes=Ce.map(function(Bt){return(0,an.Z)(Ve,Bt)}).filter(Boolean).map(function(Bt){return Bt.node}),J.setUncontrolledState({checkedKeys:Ce})}else{var at=(0,Tt.S)([].concat((0,ae.Z)($e),[N]),!0,Ve),Oe=at.checkedKeys,Et=at.halfCheckedKeys;if(!ye){var Vt=new Set(Oe);Vt.delete(N);var St=(0,Tt.S)(Array.from(Vt),{checked:!1,halfCheckedKeys:Et},Ve);Oe=St.checkedKeys,Et=St.halfCheckedKeys}Le=Oe,De.checkedNodes=[],De.checkedNodesPositions=[],De.halfCheckedKeys=Et,Oe.forEach(function(Bt){var se=(0,an.Z)(Ve,Bt);if(se){var ve=se.node,Ee=se.pos;De.checkedNodes.push(ve),De.checkedNodesPositions.push({node:ve,pos:Ee})}}),J.setUncontrolledState({checkedKeys:Oe},!1,{halfCheckedKeys:Et})}K==null||K(Le,De)}),(0,g.Z)((0,_e.Z)(J),"onNodeLoad",function(W){var fe,ye=W.key,et=J.state.keyEntities,Ve=(0,an.Z)(et,ye);if(!(Ve!=null&&(fe=Ve.children)!==null&&fe!==void 0&&fe.length)){var $e=new Promise(function(Ye,lt){J.setState(function(de){var K=de.loadedKeys,N=K===void 0?[]:K,Le=de.loadingKeys,De=Le===void 0?[]:Le,Ce=J.props,st=Ce.loadData,at=Ce.onLoad;if(!st||N.includes(ye)||De.includes(ye))return null;var Oe=st(W);return Oe.then(function(){var Et=J.state.loadedKeys,Vt=(0,en.L0)(Et,ye);at==null||at(Vt,{event:"load",node:W}),J.setUncontrolledState({loadedKeys:Vt}),J.setState(function(St){return{loadingKeys:(0,en._5)(St.loadingKeys,ye)}}),Ye()}).catch(function(Et){if(J.setState(function(St){return{loadingKeys:(0,en._5)(St.loadingKeys,ye)}}),J.loadingRetryTimes[ye]=(J.loadingRetryTimes[ye]||0)+1,J.loadingRetryTimes[ye]>=qe){var Vt=J.state.loadedKeys;(0,L.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),J.setUncontrolledState({loadedKeys:(0,en.L0)(Vt,ye)}),Ye()}lt(Et)}),{loadingKeys:(0,en.L0)(De,ye)}})});return $e.catch(function(){}),$e}}),(0,g.Z)((0,_e.Z)(J),"onNodeMouseEnter",function(W,fe){var ye=J.props.onMouseEnter;ye==null||ye({event:W,node:fe})}),(0,g.Z)((0,_e.Z)(J),"onNodeMouseLeave",function(W,fe){var ye=J.props.onMouseLeave;ye==null||ye({event:W,node:fe})}),(0,g.Z)((0,_e.Z)(J),"onNodeContextMenu",function(W,fe){var ye=J.props.onRightClick;ye&&(W.preventDefault(),ye({event:W,node:fe}))}),(0,g.Z)((0,_e.Z)(J),"onFocus",function(){var W=J.props.onFocus;J.setState({focused:!0});for(var fe=arguments.length,ye=new Array(fe),et=0;et<fe;et++)ye[et]=arguments[et];W==null||W.apply(void 0,ye)}),(0,g.Z)((0,_e.Z)(J),"onBlur",function(){var W=J.props.onBlur;J.setState({focused:!1}),J.onActiveChange(null);for(var fe=arguments.length,ye=new Array(fe),et=0;et<fe;et++)ye[et]=arguments[et];W==null||W.apply(void 0,ye)}),(0,g.Z)((0,_e.Z)(J),"getTreeNodeRequiredProps",function(){var W=J.state,fe=W.expandedKeys,ye=W.selectedKeys,et=W.loadedKeys,Ve=W.loadingKeys,$e=W.checkedKeys,Ye=W.halfCheckedKeys,lt=W.dragOverNodeKey,de=W.dropPosition,K=W.keyEntities;return{expandedKeys:fe||[],selectedKeys:ye||[],loadedKeys:et||[],loadingKeys:Ve||[],checkedKeys:$e||[],halfCheckedKeys:Ye||[],dragOverNodeKey:lt,dropPosition:de,keyEntities:K}}),(0,g.Z)((0,_e.Z)(J),"setExpandedKeys",function(W){var fe=J.state,ye=fe.treeData,et=fe.fieldNames,Ve=(0,ot.oH)(ye,W,et);J.setUncontrolledState({expandedKeys:W,flattenNodes:Ve},!0)}),(0,g.Z)((0,_e.Z)(J),"onNodeExpand",function(W,fe){var ye=J.state.expandedKeys,et=J.state,Ve=et.listChanging,$e=et.fieldNames,Ye=J.props,lt=Ye.onExpand,de=Ye.loadData,K=fe.expanded,N=fe[$e.key];if(!Ve){var Le=ye.includes(N),De=!K;if((0,L.ZP)(K&&Le||!K&&!Le,"Expand state not sync with index check"),ye=De?(0,en.L0)(ye,N):(0,en._5)(ye,N),J.setExpandedKeys(ye),lt==null||lt(ye,{node:fe,expanded:De,nativeEvent:W.nativeEvent}),De&&de){var Ce=J.onNodeLoad(fe);Ce&&Ce.then(function(){var st=(0,ot.oH)(J.state.treeData,ye,$e);J.setUncontrolledState({flattenNodes:st})}).catch(function(){var st=J.state.expandedKeys,at=(0,en._5)(st,N);J.setExpandedKeys(at)})}}}),(0,g.Z)((0,_e.Z)(J),"onListChangeStart",function(){J.setUncontrolledState({listChanging:!0})}),(0,g.Z)((0,_e.Z)(J),"onListChangeEnd",function(){setTimeout(function(){J.setUncontrolledState({listChanging:!1})})}),(0,g.Z)((0,_e.Z)(J),"onActiveChange",function(W){var fe=J.state.activeKey,ye=J.props,et=ye.onActiveChange,Ve=ye.itemScrollOffset,$e=Ve===void 0?0:Ve;fe!==W&&(J.setState({activeKey:W}),W!==null&&J.scrollTo({key:W,offset:$e}),et==null||et(W))}),(0,g.Z)((0,_e.Z)(J),"getActiveItem",function(){var W=J.state,fe=W.activeKey,ye=W.flattenNodes;return fe===null?null:ye.find(function(et){var Ve=et.key;return Ve===fe})||null}),(0,g.Z)((0,_e.Z)(J),"offsetActiveKey",function(W){var fe=J.state,ye=fe.flattenNodes,et=fe.activeKey,Ve=ye.findIndex(function(lt){var de=lt.key;return de===et});Ve===-1&&W<0&&(Ve=ye.length),Ve=(Ve+W+ye.length)%ye.length;var $e=ye[Ve];if($e){var Ye=$e.key;J.onActiveChange(Ye)}else J.onActiveChange(null)}),(0,g.Z)((0,_e.Z)(J),"onKeyDown",function(W){var fe=J.state,ye=fe.activeKey,et=fe.expandedKeys,Ve=fe.checkedKeys,$e=fe.fieldNames,Ye=J.props,lt=Ye.onKeyDown,de=Ye.checkable,K=Ye.selectable;switch(W.which){case E.Z.UP:{J.offsetActiveKey(-1),W.preventDefault();break}case E.Z.DOWN:{J.offsetActiveKey(1),W.preventDefault();break}}var N=J.getActiveItem();if(N&&N.data){var Le=J.getTreeNodeRequiredProps(),De=N.data.isLeaf===!1||!!(N.data[$e.children]||[]).length,Ce=(0,ot.F)((0,z.Z)((0,z.Z)({},(0,ot.H8)(ye,Le)),{},{data:N.data,active:!0}));switch(W.which){case E.Z.LEFT:{De&&et.includes(ye)?J.onNodeExpand({},Ce):N.parent&&J.onActiveChange(N.parent.key),W.preventDefault();break}case E.Z.RIGHT:{De&&!et.includes(ye)?J.onNodeExpand({},Ce):N.children&&N.children.length&&J.onActiveChange(N.children[0].key),W.preventDefault();break}case E.Z.ENTER:case E.Z.SPACE:{de&&!Ce.disabled&&Ce.checkable!==!1&&!Ce.disableCheckbox?J.onNodeCheck({},Ce,!Ve.includes(ye)):!de&&K&&!Ce.disabled&&Ce.selectable!==!1&&J.onNodeSelect({},Ce);break}}}lt==null||lt(W)}),(0,g.Z)((0,_e.Z)(J),"setUncontrolledState",function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!J.destroyed){var et=!1,Ve=!0,$e={};Object.keys(W).forEach(function(Ye){if(J.props.hasOwnProperty(Ye)){Ve=!1;return}et=!0,$e[Ye]=W[Ye]}),et&&(!fe||Ve)&&J.setState((0,z.Z)((0,z.Z)({},$e),ye))}}),(0,g.Z)((0,_e.Z)(J),"scrollTo",function(W){J.listRef.current.scrollTo(W)}),J}return(0,d.Z)(Qe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var M=this.props,Se=M.activeKey,be=M.itemScrollOffset,W=be===void 0?0:be;Se!==void 0&&Se!==this.state.activeKey&&(this.setState({activeKey:Se}),Se!==null&&this.scrollTo({key:Se,offset:W}))}},{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 M=this.state,Se=M.focused,be=M.flattenNodes,W=M.keyEntities,fe=M.draggingNodeKey,ye=M.activeKey,et=M.dropLevelOffset,Ve=M.dropContainerKey,$e=M.dropTargetKey,Ye=M.dropPosition,lt=M.dragOverNodeKey,de=M.indent,K=this.props,N=K.prefixCls,Le=K.className,De=K.style,Ce=K.showLine,st=K.focusable,at=K.tabIndex,Oe=at===void 0?0:at,Et=K.selectable,Vt=K.showIcon,St=K.icon,Bt=K.switcherIcon,se=K.draggable,ve=K.checkable,Ee=K.checkStrictly,k=K.disabled,Y=K.motion,he=K.loadData,ce=K.filterTreeNode,xe=K.height,Be=K.itemHeight,Xe=K.scrollWidth,ct=K.virtual,nt=K.titleRender,Ue=K.dropIndicatorRender,I=K.onContextMenu,Z=K.onScroll,S=K.direction,ze=K.rootClassName,ke=K.rootStyle,Pe=(0,x.Z)(this.props,{aria:!0,data:!0}),Ge;se&&((0,ue.Z)(se)==="object"?Ge=se:typeof se=="function"?Ge={nodeDraggable:se}:Ge={});var We={prefixCls:N,selectable:Et,showIcon:Vt,icon:St,switcherIcon:Bt,draggable:Ge,draggingNodeKey:fe,checkable:ve,checkStrictly:Ee,disabled:k,keyEntities:W,dropLevelOffset:et,dropContainerKey:Ve,dropTargetKey:$e,dropPosition:Ye,dragOverNodeKey:lt,indent:de,direction:S,dropIndicatorRender:Ue,loadData:he,filterTreeNode:ce,titleRender:nt,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 j.createElement($.k.Provider,{value:We},j.createElement("div",{className:p()(N,Le,ze,(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(N,"-show-line"),Ce),"".concat(N,"-focused"),Se),"".concat(N,"-active-focused"),ye!==null)),style:ke},j.createElement(Ke,(0,h.Z)({ref:this.listRef,prefixCls:N,style:De,data:be,disabled:k,selectable:Et,checkable:!!ve,motion:Y,dragging:fe!==null,height:xe,itemHeight:Be,virtual:ct,focusable:st,focused:Se,tabIndex:Oe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:I,onScroll:Z,scrollWidth:Xe},this.getTreeNodeRequiredProps(),Pe))))}}],[{key:"getDerivedStateFromProps",value:function(M,Se){var be=Se.prevProps,W={prevProps:M};function fe(Oe){return!be&&M.hasOwnProperty(Oe)||be&&be[Oe]!==M[Oe]}var ye,et=Se.fieldNames;if(fe("fieldNames")&&(et=(0,ot.w$)(M.fieldNames),W.fieldNames=et),fe("treeData")?ye=M.treeData:fe("children")&&((0,L.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ye=(0,ot.zn)(M.children)),ye){W.treeData=ye;var Ve=(0,ot.I8)(ye,{fieldNames:et});W.keyEntities=(0,z.Z)((0,g.Z)({},O,He),Ve.keyEntities)}var $e=W.keyEntities||Se.keyEntities;if(fe("expandedKeys")||be&&fe("autoExpandParent"))W.expandedKeys=M.autoExpandParent||!be&&M.defaultExpandParent?(0,en.r7)(M.expandedKeys,$e):M.expandedKeys;else if(!be&&M.defaultExpandAll){var Ye=(0,z.Z)({},$e);delete Ye[O];var lt=[];Object.keys(Ye).forEach(function(Oe){var Et=Ye[Oe];Et.children&&Et.children.length&&lt.push(Et.key)}),W.expandedKeys=lt}else!be&&M.defaultExpandedKeys&&(W.expandedKeys=M.autoExpandParent||M.defaultExpandParent?(0,en.r7)(M.defaultExpandedKeys,$e):M.defaultExpandedKeys);if(W.expandedKeys||delete W.expandedKeys,ye||W.expandedKeys){var de=(0,ot.oH)(ye||Se.treeData,W.expandedKeys||Se.expandedKeys,et);W.flattenNodes=de}if(M.selectable&&(fe("selectedKeys")?W.selectedKeys=(0,en.BT)(M.selectedKeys,M):!be&&M.defaultSelectedKeys&&(W.selectedKeys=(0,en.BT)(M.defaultSelectedKeys,M))),M.checkable){var K;if(fe("checkedKeys")?K=(0,en.E6)(M.checkedKeys)||{}:!be&&M.defaultCheckedKeys?K=(0,en.E6)(M.defaultCheckedKeys)||{}:ye&&(K=(0,en.E6)(M.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),K){var N=K,Le=N.checkedKeys,De=Le===void 0?[]:Le,Ce=N.halfCheckedKeys,st=Ce===void 0?[]:Ce;if(!M.checkStrictly){var at=(0,Tt.S)(De,!0,$e);De=at.checkedKeys,st=at.halfCheckedKeys}W.checkedKeys=De,W.halfCheckedKeys=st}}return fe("loadedKeys")&&(W.loadedKeys=M.loadedKeys),W}}]),Qe}(j.Component);(0,g.Z)(yt,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:F,allowDrop:function(){return!0},expandAction:!1}),(0,g.Z)(yt,"TreeNode",oe.Z);var Fe=yt,Ae=Fe},82661:function(In,Gt,_){"use strict";_.d(Gt,{BT:function(){return j},E6:function(){return F},L0:function(){return g},OM:function(){return L},_5:function(){return o},r7:function(){return H},wA:function(){return p},yx:function(){return w}});var h=_(3300),ue=_(34666),z=_(48736),ae=_(59301),B=_(639),d=_(65065),_e=_(34061),te=null;function o(D,A){if(!D)return[];var Q=D.slice(),ne=Q.indexOf(A);return ne>=0&&Q.splice(ne,1),Q}function g(D,A){var Q=(D||[]).slice();return Q.indexOf(A)===-1&&Q.push(A),Q}function w(D){return D.split("-")}function p(D,A){var Q=[],ne=(0,d.Z)(A,D);function ee(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];oe.forEach(function(ge){var me=ge.key,ot=ge.children;Q.push(me),ee(ot)})}return ee(ne.children),Q}function E(D){if(D.parent){var A=w(D.pos);return Number(A[A.length-1])===D.parent.children.length-1}return!1}function x(D){var A=w(D.pos);return Number(A[A.length-1])===0}function L(D,A,Q,ne,ee,oe,ge,me,ot,U){var C,P=D.clientX,G=D.clientY,re=D.target.getBoundingClientRect(),X=re.top,y=re.height,v=(U==="rtl"?-1:1)*(((ee==null?void 0:ee.x)||0)-P),O=(v-12)/ne,pe=ot.filter(function(Ae){var V;return(V=me[Ae])===null||V===void 0||(V=V.children)===null||V===void 0?void 0:V.length}),He=(0,d.Z)(me,Q.eventKey);if(G<X+y/2){var tt=ge.findIndex(function(Ae){return Ae.key===He.key}),wt=tt<=0?0:tt-1,It=ge[wt].key;He=(0,d.Z)(me,It)}var Ft=He.key,Ht=He,Ke=He.key,en=0,Tt=0;if(!pe.includes(Ft))for(var an=0;an<O&&E(He);an+=1)He=He.parent,Tt+=1;var qe=A.data,yt=He.node,Fe=!0;return x(He)&&He.level===0&&G<X+y/2&&oe({dragNode:qe,dropNode:yt,dropPosition:-1})&&He.key===Q.eventKey?en=-1:(Ht.children||[]).length&&pe.includes(Ke)?oe({dragNode:qe,dropNode:yt,dropPosition:0})?en=0:Fe=!1:Tt===0?O>-1.5?oe({dragNode:qe,dropNode:yt,dropPosition:1})?en=1:Fe=!1:oe({dragNode:qe,dropNode:yt,dropPosition:0})?en=0:oe({dragNode:qe,dropNode:yt,dropPosition:1})?en=1:Fe=!1:oe({dragNode:qe,dropNode:yt,dropPosition:1})?en=1:Fe=!1,{dropPosition:en,dropLevelOffset:Tt,dropTargetKey:He.key,dropTargetPos:He.pos,dragOverNodeKey:Ke,dropContainerKey:en===0?null:((C=He.parent)===null||C===void 0?void 0:C.key)||null,dropAllowed:Fe}}function j(D,A){if(D){var Q=A.multiple;return Q?D.slice():D.length?[D[0]]:D}}var $=function(A){return A};function le(D,A){if(!D)return[];var Q=A||{},ne=Q.processProps,ee=ne===void 0?$:ne,oe=Array.isArray(D)?D:[D];return oe.map(function(ge){var me=ge.children,ot=_objectWithoutProperties(ge,te),U=le(me,A);return React.createElement(TreeNode,_extends({key:ot.key},ee(ot)),U)})}function F(D){if(!D)return null;var A;if(Array.isArray(D))A={checkedKeys:D,halfCheckedKeys:void 0};else if((0,ue.Z)(D)==="object")A={checkedKeys:D.checked||void 0,halfCheckedKeys:D.halfChecked||void 0};else return(0,z.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return A}function H(D,A){var Q=new Set;function ne(ee){if(!Q.has(ee)){var oe=(0,d.Z)(A,ee);if(oe){Q.add(ee);var ge=oe.parent,me=oe.node;me.disabled||ge&&ne(ge.key)}}}return(D||[]).forEach(function(ee){ne(ee)}),(0,h.Z)(Q)}},34643:function(In,Gt,_){"use strict";_.d(Gt,{S:function(){return _e}});var h=_(48736),ue=_(65065);function z(te,o){var g=new Set;return te.forEach(function(w){o.has(w)||g.add(w)}),g}function ae(te){var o=te||{},g=o.disabled,w=o.disableCheckbox,p=o.checkable;return!!(g||w)||p===!1}function B(te,o,g,w){for(var p=new Set(te),E=new Set,x=0;x<=g;x+=1){var L=o.get(x)||new Set;L.forEach(function(F){var H=F.key,D=F.node,A=F.children,Q=A===void 0?[]:A;p.has(H)&&!w(D)&&Q.filter(function(ne){return!w(ne.node)}).forEach(function(ne){p.add(ne.key)})})}for(var j=new Set,$=g;$>=0;$-=1){var le=o.get($)||new Set;le.forEach(function(F){var H=F.parent,D=F.node;if(!(w(D)||!F.parent||j.has(F.parent.key))){if(w(F.parent.node)){j.add(H.key);return}var A=!0,Q=!1;(H.children||[]).filter(function(ne){return!w(ne.node)}).forEach(function(ne){var ee=ne.key,oe=p.has(ee);A&&!oe&&(A=!1),!Q&&(oe||E.has(ee))&&(Q=!0)}),A&&p.add(H.key),Q&&E.add(H.key),j.add(H.key)}})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(z(E,p))}}function d(te,o,g,w,p){for(var E=new Set(te),x=new Set(o),L=0;L<=w;L+=1){var j=g.get(L)||new Set;j.forEach(function(H){var D=H.key,A=H.node,Q=H.children,ne=Q===void 0?[]:Q;!E.has(D)&&!x.has(D)&&!p(A)&&ne.filter(function(ee){return!p(ee.node)}).forEach(function(ee){E.delete(ee.key)})})}x=new Set;for(var $=new Set,le=w;le>=0;le-=1){var F=g.get(le)||new Set;F.forEach(function(H){var D=H.parent,A=H.node;if(!(p(A)||!H.parent||$.has(H.parent.key))){if(p(H.parent.node)){$.add(D.key);return}var Q=!0,ne=!1;(D.children||[]).filter(function(ee){return!p(ee.node)}).forEach(function(ee){var oe=ee.key,ge=E.has(oe);Q&&!ge&&(Q=!1),!ne&&(ge||x.has(oe))&&(ne=!0)}),Q||E.delete(D.key),ne&&x.add(D.key),$.add(D.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(z(x,E))}}function _e(te,o,g,w){var p=[],E;w?E=w:E=ae;var x=new Set(te.filter(function(le){var F=!!(0,ue.Z)(g,le);return F||p.push(le),F})),L=new Map,j=0;Object.keys(g).forEach(function(le){var F=g[le],H=F.level,D=L.get(H);D||(D=new Set,L.set(H,D)),D.add(F),j=Math.max(j,H)}),(0,h.ZP)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var $;return o===!0?$=B(x,L,j,E):$=d(x,o.halfCheckedKeys,L,j,E),$}},65065:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return h}});function h(ue,z){return ue[z]}},34061:function(In,Gt,_){"use strict";_.d(Gt,{F:function(){return H},H8:function(){return F},I8:function(){return le},km:function(){return p},oH:function(){return j},w$:function(){return E},zn:function(){return L}});var h=_(34666),ue=_(3300),z=_(27247),ae=_(43079),B=_(11592),d=_(2738),_e=_(48736),te=_(65065),o=["children"];function g(D,A){return"".concat(D,"-").concat(A)}function w(D){return D&&D.type&&D.type.isTreeNode}function p(D,A){return D!=null?D:A}function E(D){var A=D||{},Q=A.title,ne=A._title,ee=A.key,oe=A.children,ge=Q||"title";return{title:ge,_title:ne||[ge],key:ee||"key",children:oe||"children"}}function x(D,A){var Q=new Map;function ne(ee){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ee||[]).forEach(function(ge){var me=ge[A.key],ot=ge[A.children];warning(me!=null,"Tree node must have a certain key: [".concat(oe).concat(me,"]"));var U=String(me);warning(!Q.has(U)||me===null||me===void 0,"Same 'key' exist in the Tree: ".concat(U)),Q.set(U,!0),ne(ot,"".concat(oe).concat(U," > "))})}ne(D)}function L(D){function A(Q){var ne=(0,B.Z)(Q);return ne.map(function(ee){if(!w(ee))return(0,_e.ZP)(!ee,"Tree/TreeNode can only accept TreeNode as children."),null;var oe=ee.key,ge=ee.props,me=ge.children,ot=(0,ae.Z)(ge,o),U=(0,z.Z)({key:oe},ot),C=A(me);return C.length&&(U.children=C),U}).filter(function(ee){return ee})}return A(D)}function j(D,A,Q){var ne=E(Q),ee=ne._title,oe=ne.key,ge=ne.children,me=new Set(A===!0?[]:A),ot=[];function U(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(G,re){for(var X=g(P?P.pos:"0",re),y=p(G[oe],X),v,O=0;O<ee.length;O+=1){var pe=ee[O];if(G[pe]!==void 0){v=G[pe];break}}var He=Object.assign((0,d.Z)(G,[].concat((0,ue.Z)(ee),[oe,ge])),{title:v,key:y,parent:P,pos:X,children:null,data:G,isStart:[].concat((0,ue.Z)(P?P.isStart:[]),[re===0]),isEnd:[].concat((0,ue.Z)(P?P.isEnd:[]),[re===C.length-1])});return ot.push(He),A===!0||me.has(y)?He.children=U(G[ge]||[],He):He.children=[],He})}return U(D),ot}function $(D,A,Q){var ne={};(0,h.Z)(Q)==="object"?ne=Q:ne={externalGetKey:Q},ne=ne||{};var ee=ne,oe=ee.childrenPropName,ge=ee.externalGetKey,me=ee.fieldNames,ot=E(me),U=ot.key,C=ot.children,P=oe||C,G;ge?typeof ge=="string"?G=function(y){return y[ge]}:typeof ge=="function"&&(G=function(y){return ge(y)}):G=function(y,v){return p(y[U],v)};function re(X,y,v,O){var pe=X?X[P]:D,He=X?g(v.pos,y):"0",tt=X?[].concat((0,ue.Z)(O),[X]):[];if(X){var wt=G(X,He),It={node:X,index:y,pos:He,key:wt,parentPos:v.node?v.pos:null,level:v.level+1,nodes:tt};A(It)}pe&&pe.forEach(function(Ft,Ht){re(Ft,Ht,{node:X,pos:He,level:v?v.level+1:-1},tt)})}re(null)}function le(D){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=A.initWrapper,ne=A.processEntity,ee=A.onProcessFinished,oe=A.externalGetKey,ge=A.childrenPropName,me=A.fieldNames,ot=arguments.length>2?arguments[2]:void 0,U=oe||ot,C={},P={},G={posEntities:C,keyEntities:P};return Q&&(G=Q(G)||G),$(D,function(re){var X=re.node,y=re.index,v=re.pos,O=re.key,pe=re.parentPos,He=re.level,tt=re.nodes,wt={node:X,nodes:tt,index:y,key:O,pos:v,level:He},It=p(O,v);C[v]=wt,P[It]=wt,wt.parent=C[pe],wt.parent&&(wt.parent.children=wt.parent.children||[],wt.parent.children.push(wt)),ne&&ne(wt,G)},{externalGetKey:U,childrenPropName:ge,fieldNames:me}),ee&&ee(G),G}function F(D,A){var Q=A.expandedKeys,ne=A.selectedKeys,ee=A.loadedKeys,oe=A.loadingKeys,ge=A.checkedKeys,me=A.halfCheckedKeys,ot=A.dragOverNodeKey,U=A.dropPosition,C=A.keyEntities,P=(0,te.Z)(C,D),G={eventKey:D,expanded:Q.indexOf(D)!==-1,selected:ne.indexOf(D)!==-1,loaded:ee.indexOf(D)!==-1,loading:oe.indexOf(D)!==-1,checked:ge.indexOf(D)!==-1,halfChecked:me.indexOf(D)!==-1,pos:String(P?P.pos:""),dragOver:ot===D&&U===0,dragOverGapTop:ot===D&&U===-1,dragOverGapBottom:ot===D&&U===1};return G}function H(D){var A=D.data,Q=D.expanded,ne=D.selected,ee=D.checked,oe=D.loaded,ge=D.loading,me=D.halfChecked,ot=D.dragOver,U=D.dragOverGapTop,C=D.dragOverGapBottom,P=D.pos,G=D.active,re=D.eventKey,X=(0,z.Z)((0,z.Z)({},A),{},{expanded:Q,selected:ne,checked:ee,loaded:oe,loading:ge,halfChecked:me,dragOver:ot,dragOverGapTop:U,dragOverGapBottom:C,pos:P,active:G,key:re});return"props"in X||Object.defineProperty(X,"props",{get:function(){return(0,_e.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),D}}),X}},8224:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return ue}});var h=_(4676);function ue(z,ae,B,d){var _e=h.unstable_batchedUpdates?function(o){h.unstable_batchedUpdates(B,o)}:B;return z!=null&&z.addEventListener&&z.addEventListener(ae,_e,d),{remove:function(){z!=null&&z.removeEventListener&&z.removeEventListener(ae,_e,d)}}}},24514:function(In,Gt,_){"use strict";_.d(Gt,{G:function(){return ae}});var h=_(47273),ue=function(d){if((0,h.Z)()&&window.document.documentElement){var _e=Array.isArray(d)?d:[d],te=window.document.documentElement;return _e.some(function(o){return o in te.style})}return!1},z=function(d,_e){if(!ue(d))return!1;var te=document.createElement("div"),o=te.style[d];return te.style[d]=_e,te.style[d]!==o};function ae(B,d){return!Array.isArray(B)&&d!==void 0?z(B,d):ue(B)}},49658:function(In,Gt){"use strict";Gt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var _=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(_)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(_==null?void 0:_.substr(0,4))}},6790:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return qe}});var h=_(32855),ue=_(34666),z=_(27247),ae=_(74430),B=_(11913),d=_(43079),_e=_(92310),te=_.n(_e),o=_(29301),g=_(70425),w=_(34280),p=_(59301),E=_(4676),x=p.forwardRef(function(yt,Fe){var Ae=yt.height,V=yt.offsetY,je=yt.offsetX,Qe=yt.children,J=yt.prefixCls,M=yt.onInnerResize,Se=yt.innerProps,be=yt.rtl,W=yt.extra,fe={},ye={display:"flex",flexDirection:"column"};return V!==void 0&&(fe={height:Ae,position:"relative",overflow:"hidden"},ye=(0,z.Z)((0,z.Z)({},ye),{},(0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)({transform:"translateY(".concat(V,"px)")},be?"marginRight":"marginLeft",-je),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:fe},p.createElement(o.Z,{onResize:function(Ve){var $e=Ve.offsetHeight;$e&&M&&M()}},p.createElement("div",(0,h.Z)({style:ye,className:te()((0,ae.Z)({},"".concat(J,"-holder-inner"),J)),ref:Fe},Se),Qe,W)))});x.displayName="Filler";var L=x;function j(yt){var Fe=yt.children,Ae=yt.setRef,V=p.useCallback(function(je){Ae(je)},[]);return p.cloneElement(Fe,{ref:V})}function $(yt,Fe,Ae,V,je,Qe,J,M){var Se=M.getKey;return yt.slice(Fe,Ae+1).map(function(be,W){var fe=Fe+W,ye=J(be,fe,{style:{width:V},offsetX:je}),et=Se(be);return p.createElement(j,{key:et,setRef:function($e){return Qe(be,$e)}},ye)})}function le(yt,Fe,Ae,V){var je=Ae-yt,Qe=Fe-Ae,J=Math.min(je,Qe)*2;if(V<=J){var M=Math.floor(V/2);return V%2?Ae+M+1:Ae-M}return je>Qe?Ae-(V-Qe):Ae+(V-je)}function F(yt,Fe,Ae){var V=yt.length,je=Fe.length,Qe,J;if(V===0&&je===0)return null;V<je?(Qe=yt,J=Fe):(Qe=Fe,J=yt);var M={__EMPTY_ITEM__:!0};function Se(Ve){return Ve!==void 0?Ae(Ve):M}for(var be=null,W=Math.abs(V-je)!==1,fe=0;fe<J.length;fe+=1){var ye=Se(Qe[fe]),et=Se(J[fe]);if(ye!==et){be=fe,W=W||ye!==Se(J[fe+1]);break}}return be===null?null:{index:be,multiple:W}}function H(yt,Fe,Ae){var V=p.useState(yt),je=(0,B.Z)(V,2),Qe=je[0],J=je[1],M=p.useState(null),Se=(0,B.Z)(M,2),be=Se[0],W=Se[1];return p.useEffect(function(){var fe=F(Qe||[],yt||[],Fe);(fe==null?void 0:fe.index)!==void 0&&(Ae==null||Ae(fe.index),W(yt[fe.index])),J(yt)},[yt]),[be]}var D=_(16089),A=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Q=A,ne=function(yt,Fe,Ae,V){var je=(0,p.useRef)(!1),Qe=(0,p.useRef)(null);function J(){clearTimeout(Qe.current),je.current=!0,Qe.current=setTimeout(function(){je.current=!1},50)}var M=(0,p.useRef)({top:yt,bottom:Fe,left:Ae,right:V});return M.current.top=yt,M.current.bottom=Fe,M.current.left=Ae,M.current.right=V,function(Se,be){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fe=Se?be<0&&M.current.left||be>0&&M.current.right:be<0&&M.current.top||be>0&&M.current.bottom;return W&&fe?(clearTimeout(Qe.current),je.current=!1):(!fe||je.current)&&J(),!je.current&&fe}};function ee(yt,Fe,Ae,V,je,Qe,J){var M=(0,p.useRef)(0),Se=(0,p.useRef)(null),be=(0,p.useRef)(null),W=(0,p.useRef)(!1),fe=ne(Fe,Ae,V,je);function ye(de,K){if(D.Z.cancel(Se.current),!fe(!1,K)){var N=de;if(!N._virtualHandled)N._virtualHandled=!0;else return;M.current+=K,be.current=K,Q||N.preventDefault(),Se.current=(0,D.Z)(function(){var Le=W.current?10:1;J(M.current*Le,!1),M.current=0})}}function et(de,K){J(K,!0),Q||de.preventDefault()}var Ve=(0,p.useRef)(null),$e=(0,p.useRef)(null);function Ye(de){if(yt){D.Z.cancel($e.current),$e.current=(0,D.Z)(function(){Ve.current=null},2);var K=de.deltaX,N=de.deltaY,Le=de.shiftKey,De=K,Ce=N;(Ve.current==="sx"||!Ve.current&&Le&&N&&!K)&&(De=N,Ce=0,Ve.current="sx");var st=Math.abs(De),at=Math.abs(Ce);Ve.current===null&&(Ve.current=Qe&&st>at?"x":"y"),Ve.current==="y"?ye(de,Ce):et(de,De)}}function lt(de){yt&&(W.current=de.detail===be.current)}return[Ye,lt]}function oe(yt,Fe,Ae,V){var je=p.useMemo(function(){return[new Map,[]]},[yt,Ae.id,V]),Qe=(0,B.Z)(je,2),J=Qe[0],M=Qe[1],Se=function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W,ye=J.get(W),et=J.get(fe);if(ye===void 0||et===void 0)for(var Ve=yt.length,$e=M.length;$e<Ve;$e+=1){var Ye,lt=yt[$e],de=Fe(lt);J.set(de,$e);var K=(Ye=Ae.get(de))!==null&&Ye!==void 0?Ye:V;if(M[$e]=(M[$e-1]||0)+K,de===W&&(ye=$e),de===fe&&(et=$e),ye!==void 0&&et!==void 0)break}return{top:M[ye-1]||0,bottom:M[et]}};return Se}var ge=_(33377),me=_(93912),ot=function(){function yt(){(0,ge.Z)(this,yt),(0,ae.Z)(this,"maps",void 0),(0,ae.Z)(this,"id",0),(0,ae.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,me.Z)(yt,[{key:"set",value:function(Ae,V){this.diffRecords.set(Ae,this.maps[Ae]),this.maps[Ae]=V,this.id+=1}},{key:"get",value:function(Ae){return this.maps[Ae]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),yt}(),U=ot;function C(yt){var Fe=parseFloat(yt);return isNaN(Fe)?0:Fe}function P(yt,Fe,Ae){var V=p.useState(0),je=(0,B.Z)(V,2),Qe=je[0],J=je[1],M=(0,p.useRef)(new Map),Se=(0,p.useRef)(new U),be=(0,p.useRef)(0);function W(){be.current+=1}function fe(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;W();var Ve=function(){var lt=!1;M.current.forEach(function(de,K){if(de&&de.offsetParent){var N=de.offsetHeight,Le=getComputedStyle(de),De=Le.marginTop,Ce=Le.marginBottom,st=C(De),at=C(Ce),Oe=N+st+at;Se.current.get(K)!==Oe&&(Se.current.set(K,Oe),lt=!0)}}),lt&&J(function(de){return de+1})};if(et)Ve();else{be.current+=1;var $e=be.current;Promise.resolve().then(function(){$e===be.current&&Ve()})}}function ye(et,Ve){var $e=yt(et),Ye=M.current.get($e);Ve?(M.current.set($e,Ve),fe()):M.current.delete($e),!Ye!=!Ve&&(Ve?Fe==null||Fe(et):Ae==null||Ae(et))}return(0,p.useEffect)(function(){return W},[]),[ye,fe,Se.current,Qe]}var G=14/15;function re(yt,Fe,Ae){var V=(0,p.useRef)(!1),je=(0,p.useRef)(0),Qe=(0,p.useRef)(0),J=(0,p.useRef)(null),M=(0,p.useRef)(null),Se,be=function(et){if(V.current){var Ve=Math.ceil(et.touches[0].pageX),$e=Math.ceil(et.touches[0].pageY),Ye=je.current-Ve,lt=Qe.current-$e,de=Math.abs(Ye)>Math.abs(lt);de?je.current=Ve:Qe.current=$e;var K=Ae(de,de?Ye:lt,!1,et);K&&et.preventDefault(),clearInterval(M.current),K&&(M.current=setInterval(function(){de?Ye*=G:lt*=G;var N=Math.floor(de?Ye:lt);(!Ae(de,N,!0)||Math.abs(N)<=.1)&&clearInterval(M.current)},16))}},W=function(){V.current=!1,Se()},fe=function(et){Se(),et.touches.length===1&&!V.current&&(V.current=!0,je.current=Math.ceil(et.touches[0].pageX),Qe.current=Math.ceil(et.touches[0].pageY),J.current=et.target,J.current.addEventListener("touchmove",be,{passive:!1}),J.current.addEventListener("touchend",W,{passive:!0}))};Se=function(){J.current&&(J.current.removeEventListener("touchmove",be),J.current.removeEventListener("touchend",W))},(0,w.Z)(function(){return yt&&Fe.current.addEventListener("touchstart",fe,{passive:!0}),function(){var ye;(ye=Fe.current)===null||ye===void 0||ye.removeEventListener("touchstart",fe),Se(),clearInterval(M.current)}},[yt])}function X(yt){return Math.floor(Math.pow(yt,.5))}function y(yt,Fe){var Ae="touches"in yt?yt.touches[0]:yt;return Ae[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function v(yt,Fe,Ae){p.useEffect(function(){var V=Fe.current;if(yt&&V){var je=!1,Qe,J,M=function(){D.Z.cancel(Qe)},Se=function ye(){M(),Qe=(0,D.Z)(function(){Ae(J),ye()})},be=function(et){if(!(et.target.draggable||et.button!==0)){var Ve=et;Ve._virtualHandled||(Ve._virtualHandled=!0,je=!0)}},W=function(){je=!1,M()},fe=function(et){if(je){var Ve=y(et,!1),$e=V.getBoundingClientRect(),Ye=$e.top,lt=$e.bottom;if(Ve<=Ye){var de=Ye-Ve;J=-X(de),Se()}else if(Ve>=lt){var K=Ve-lt;J=X(K),Se()}else M()}};return V.addEventListener("mousedown",be),V.ownerDocument.addEventListener("mouseup",W),V.ownerDocument.addEventListener("mousemove",fe),function(){V.removeEventListener("mousedown",be),V.ownerDocument.removeEventListener("mouseup",W),V.ownerDocument.removeEventListener("mousemove",fe),M()}}},[yt])}var O=10;function pe(yt,Fe,Ae,V,je,Qe,J,M){var Se=p.useRef(),be=p.useState(null),W=(0,B.Z)(be,2),fe=W[0],ye=W[1];return(0,w.Z)(function(){if(fe&&fe.times<O){if(!yt.current){ye(function(Y){return(0,z.Z)({},Y)});return}Qe();var et=fe.targetAlign,Ve=fe.originAlign,$e=fe.index,Ye=fe.offset,lt=yt.current.clientHeight,de=!1,K=et,N=null;if(lt){for(var Le=et||Ve,De=0,Ce=0,st=0,at=Math.min(Fe.length-1,$e),Oe=0;Oe<=at;Oe+=1){var Et=je(Fe[Oe]);Ce=De;var Vt=Ae.get(Et);st=Ce+(Vt===void 0?V:Vt),De=st}for(var St=Le==="top"?Ye:lt-Ye,Bt=at;Bt>=0;Bt-=1){var se=je(Fe[Bt]),ve=Ae.get(se);if(ve===void 0){de=!0;break}if(St-=ve,St<=0)break}switch(Le){case"top":N=Ce-Ye;break;case"bottom":N=st-lt+Ye;break;default:{var Ee=yt.current.scrollTop,k=Ee+lt;Ce<Ee?K="top":st>k&&(K="bottom")}}N!==null&&J(N),N!==fe.lastTop&&(de=!0)}de&&ye((0,z.Z)((0,z.Z)({},fe),{},{times:fe.times+1,targetAlign:K,lastTop:N}))}},[fe,yt.current]),function(et){if(et==null){M();return}if(D.Z.cancel(Se.current),typeof et=="number")J(et);else if(et&&(0,ue.Z)(et)==="object"){var Ve,$e=et.align;"index"in et?Ve=et.index:Ve=Fe.findIndex(function(de){return je(de)===et.key});var Ye=et.offset,lt=Ye===void 0?0:Ye;ye({times:0,index:Ve,offset:lt,originAlign:$e})}}}var He=p.forwardRef(function(yt,Fe){var Ae=yt.prefixCls,V=yt.rtl,je=yt.scrollOffset,Qe=yt.scrollRange,J=yt.onStartMove,M=yt.onStopMove,Se=yt.onScroll,be=yt.horizontal,W=yt.spinSize,fe=yt.containerSize,ye=yt.style,et=yt.thumbStyle,Ve=yt.showScrollBar,$e=p.useState(!1),Ye=(0,B.Z)($e,2),lt=Ye[0],de=Ye[1],K=p.useState(null),N=(0,B.Z)(K,2),Le=N[0],De=N[1],Ce=p.useState(null),st=(0,B.Z)(Ce,2),at=st[0],Oe=st[1],Et=!V,Vt=p.useRef(),St=p.useRef(),Bt=p.useState(Ve),se=(0,B.Z)(Bt,2),ve=se[0],Ee=se[1],k=p.useRef(),Y=function(){Ve===!0||Ve===!1||(clearTimeout(k.current),Ee(!0),k.current=setTimeout(function(){Ee(!1)},3e3))},he=Qe-fe||0,ce=fe-W||0,xe=p.useMemo(function(){if(je===0||he===0)return 0;var ze=je/he;return ze*ce},[je,he,ce]),Be=function(ke){ke.stopPropagation(),ke.preventDefault()},Xe=p.useRef({top:xe,dragging:lt,pageY:Le,startTop:at});Xe.current={top:xe,dragging:lt,pageY:Le,startTop:at};var ct=function(ke){de(!0),De(y(ke,be)),Oe(Xe.current.top),J(),ke.stopPropagation(),ke.preventDefault()};p.useEffect(function(){var ze=function(We){We.preventDefault()},ke=Vt.current,Pe=St.current;return ke.addEventListener("touchstart",ze,{passive:!1}),Pe.addEventListener("touchstart",ct,{passive:!1}),function(){ke.removeEventListener("touchstart",ze),Pe.removeEventListener("touchstart",ct)}},[]);var nt=p.useRef();nt.current=he;var Ue=p.useRef();Ue.current=ce,p.useEffect(function(){if(lt){var ze,ke=function(We){var dt=Xe.current,Lt=dt.dragging,Pt=dt.pageY,cn=dt.startTop;D.Z.cancel(ze);var Ne=Vt.current.getBoundingClientRect(),Re=fe/(be?Ne.width:Ne.height);if(Lt){var gt=(y(We,be)-Pt)*Re,pt=cn;!Et&&be?pt-=gt:pt+=gt;var Mt=nt.current,xt=Ue.current,At=xt?pt/xt:0,Kt=Math.ceil(At*Mt);Kt=Math.max(Kt,0),Kt=Math.min(Kt,Mt),ze=(0,D.Z)(function(){Se(Kt,be)})}},Pe=function(){de(!1),M()};return window.addEventListener("mousemove",ke,{passive:!0}),window.addEventListener("touchmove",ke,{passive:!0}),window.addEventListener("mouseup",Pe,{passive:!0}),window.addEventListener("touchend",Pe,{passive:!0}),function(){window.removeEventListener("mousemove",ke),window.removeEventListener("touchmove",ke),window.removeEventListener("mouseup",Pe),window.removeEventListener("touchend",Pe),D.Z.cancel(ze)}}},[lt]),p.useEffect(function(){return Y(),function(){clearTimeout(k.current)}},[je]),p.useImperativeHandle(Fe,function(){return{delayHidden:Y}});var I="".concat(Ae,"-scrollbar"),Z={position:"absolute",visibility:ve?null:"hidden"},S={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return be?(Object.assign(Z,{height:8,left:0,right:0,bottom:0}),Object.assign(S,(0,ae.Z)({height:"100%",width:W},Et?"left":"right",xe))):(Object.assign(Z,(0,ae.Z)({width:8,top:0,bottom:0},Et?"right":"left",0)),Object.assign(S,{width:"100%",height:W,top:xe})),p.createElement("div",{ref:Vt,className:te()(I,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},"".concat(I,"-horizontal"),be),"".concat(I,"-vertical"),!be),"".concat(I,"-visible"),ve)),style:(0,z.Z)((0,z.Z)({},Z),ye),onMouseDown:Be,onMouseMove:Y},p.createElement("div",{ref:St,className:te()("".concat(I,"-thumb"),(0,ae.Z)({},"".concat(I,"-thumb-moving"),lt)),style:(0,z.Z)((0,z.Z)({},S),et),onMouseDown:ct}))}),tt=He,wt=20;function It(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ae=yt/Fe*yt;return isNaN(Ae)&&(Ae=0),Ae=Math.max(Ae,wt),Math.floor(Ae)}var Ft=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ht=[],Ke={overflowY:"auto",overflowAnchor:"none"};function en(yt,Fe){var Ae=yt.prefixCls,V=Ae===void 0?"rc-virtual-list":Ae,je=yt.className,Qe=yt.height,J=yt.itemHeight,M=yt.fullHeight,Se=M===void 0?!0:M,be=yt.style,W=yt.data,fe=yt.children,ye=yt.itemKey,et=yt.virtual,Ve=yt.direction,$e=yt.scrollWidth,Ye=yt.component,lt=Ye===void 0?"div":Ye,de=yt.onScroll,K=yt.onVirtualScroll,N=yt.onVisibleChange,Le=yt.innerProps,De=yt.extraRender,Ce=yt.styles,st=yt.showScrollBar,at=st===void 0?"optional":st,Oe=(0,d.Z)(yt,Ft),Et=p.useCallback(function(vt){return typeof ye=="function"?ye(vt):vt==null?void 0:vt[ye]},[ye]),Vt=P(Et,null,null),St=(0,B.Z)(Vt,4),Bt=St[0],se=St[1],ve=St[2],Ee=St[3],k=!!(et!==!1&&Qe&&J),Y=p.useMemo(function(){return Object.values(ve.maps).reduce(function(vt,bt){return vt+bt},0)},[ve.id,ve.maps]),he=k&&W&&(Math.max(J*W.length,Y)>Qe||!!$e),ce=Ve==="rtl",xe=te()(V,(0,ae.Z)({},"".concat(V,"-rtl"),ce),je),Be=W||Ht,Xe=(0,p.useRef)(),ct=(0,p.useRef)(),nt=(0,p.useRef)(),Ue=(0,p.useState)(0),I=(0,B.Z)(Ue,2),Z=I[0],S=I[1],ze=(0,p.useState)(0),ke=(0,B.Z)(ze,2),Pe=ke[0],Ge=ke[1],We=(0,p.useState)(!1),dt=(0,B.Z)(We,2),Lt=dt[0],Pt=dt[1],cn=function(){Pt(!0)},Ne=function(){Pt(!1)},Re={getKey:Et};function gt(vt){S(function(bt){var Nt;typeof vt=="function"?Nt=vt(bt):Nt=vt;var Zt=Yn(Nt);return Xe.current.scrollTop=Zt,Zt})}var pt=(0,p.useRef)({start:0,end:Be.length}),Mt=(0,p.useRef)(),xt=H(Be,Et),At=(0,B.Z)(xt,1),Kt=At[0];Mt.current=Kt;var nn=p.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:Be.length-1,offset:void 0};if(!he){var vt;return{scrollHeight:((vt=ct.current)===null||vt===void 0?void 0:vt.offsetHeight)||0,start:0,end:Be.length-1,offset:void 0}}for(var bt=0,Nt,Zt,rn,gn=Be.length,Fn=0;Fn<gn;Fn+=1){var pn=Be[Fn],xn=Et(pn),On=ve.get(xn),kn=bt+(On===void 0?J:On);kn>=Z&&Nt===void 0&&(Nt=Fn,Zt=bt),kn>Z+Qe&&rn===void 0&&(rn=Fn),bt=kn}return Nt===void 0&&(Nt=0,Zt=0,rn=Math.ceil(Qe/J)),rn===void 0&&(rn=Be.length-1),rn=Math.min(rn+1,Be.length-1),{scrollHeight:bt,start:Nt,end:rn,offset:Zt}},[he,k,Z,Be,Ee,Qe]),Ot=nn.scrollHeight,dn=nn.start,Qt=nn.end,$t=nn.offset;pt.current.start=dn,pt.current.end=Qt,p.useLayoutEffect(function(){var vt=ve.getRecord();if(vt.size===1){var bt=Array.from(vt.keys())[0],Nt=vt.get(bt),Zt=Be[dn];if(Zt&&Nt===void 0){var rn=Et(Zt);if(rn===bt){var gn=ve.get(bt),Fn=gn-J;gt(function(pn){return pn+Fn})}}}ve.resetRecord()},[Ot]);var Dt=p.useState({width:0,height:Qe}),Ze=(0,B.Z)(Dt,2),_t=Ze[0],Ct=Ze[1],kt=function(bt){Ct({width:bt.offsetWidth,height:bt.offsetHeight})},qt=(0,p.useRef)(),it=(0,p.useRef)(),ln=p.useMemo(function(){return It(_t.width,$e)},[_t.width,$e]),En=p.useMemo(function(){return It(_t.height,Ot)},[_t.height,Ot]),Tn=Ot-Qe,wn=(0,p.useRef)(Tn);wn.current=Tn;function Yn(vt){var bt=vt;return Number.isNaN(wn.current)||(bt=Math.min(bt,wn.current)),bt=Math.max(bt,0),bt}var Cn=Z<=0,Zn=Z>=Tn,Nn=Pe<=0,Pn=Pe>=$e,Dn=ne(Cn,Zn,Nn,Pn),vn=function(){return{x:ce?-Pe:Pe,y:Z}},Ln=(0,p.useRef)(vn()),hn=(0,g.zX)(function(vt){if(K){var bt=(0,z.Z)((0,z.Z)({},vn()),vt);(Ln.current.x!==bt.x||Ln.current.y!==bt.y)&&(K(bt),Ln.current=bt)}});function yn(vt,bt){var Nt=vt;bt?((0,E.flushSync)(function(){Ge(Nt)}),hn()):gt(Nt)}function Rn(vt){var bt=vt.currentTarget.scrollTop;bt!==Z&&gt(bt),de==null||de(vt),hn()}var Mn=function(bt){var Nt=bt,Zt=$e?$e-_t.width:0;return Nt=Math.max(Nt,0),Nt=Math.min(Nt,Zt),Nt},Bn=(0,g.zX)(function(vt,bt){bt?((0,E.flushSync)(function(){Ge(function(Nt){var Zt=Nt+(ce?-vt:vt);return Mn(Zt)})}),hn()):gt(function(Nt){var Zt=Nt+vt;return Zt})}),zn=ee(k,Cn,Zn,Nn,Pn,!!$e,Bn),pr=(0,B.Z)(zn,2),Me=pr[0],Te=pr[1];re(k,Xe,function(vt,bt,Nt,Zt){var rn=Zt;return Dn(vt,bt,Nt)?!1:!rn||!rn._virtualHandled?(rn&&(rn._virtualHandled=!0),Me({preventDefault:function(){},deltaX:vt?bt:0,deltaY:vt?0:bt}),!0):!1}),v(he,Xe,function(vt){gt(function(bt){return bt+vt})}),(0,w.Z)(function(){function vt(Nt){var Zt=Cn&&Nt.detail<0,rn=Zn&&Nt.detail>0;k&&!Zt&&!rn&&Nt.preventDefault()}var bt=Xe.current;return bt.addEventListener("wheel",Me,{passive:!1}),bt.addEventListener("DOMMouseScroll",Te,{passive:!0}),bt.addEventListener("MozMousePixelScroll",vt,{passive:!1}),function(){bt.removeEventListener("wheel",Me),bt.removeEventListener("DOMMouseScroll",Te),bt.removeEventListener("MozMousePixelScroll",vt)}},[k,Cn,Zn]),(0,w.Z)(function(){if($e){var vt=Mn(Pe);Ge(vt),hn({x:vt})}},[_t.width,$e]);var Ie=function(){var bt,Nt;(bt=qt.current)===null||bt===void 0||bt.delayHidden(),(Nt=it.current)===null||Nt===void 0||Nt.delayHidden()},ut=pe(Xe,Be,ve,J,Et,function(){return se(!0)},gt,Ie);p.useImperativeHandle(Fe,function(){return{nativeElement:nt.current,getScrollInfo:vn,scrollTo:function(bt){function Nt(Zt){return Zt&&(0,ue.Z)(Zt)==="object"&&("left"in Zt||"top"in Zt)}Nt(bt)?(bt.left!==void 0&&Ge(Mn(bt.left)),ut(bt.top)):ut(bt)}}}),(0,w.Z)(function(){if(N){var vt=Be.slice(dn,Qt+1);N(vt,Be)}},[dn,Qt,Be]);var mt=oe(Be,Et,ve,J),ft=De==null?void 0:De({start:dn,end:Qt,virtual:he,offsetX:Pe,offsetY:$t,rtl:ce,getSize:mt}),zt=$(Be,dn,Qt,$e,Pe,Bt,fe,Re),Wt=null;Qe&&(Wt=(0,z.Z)((0,ae.Z)({},Se?"height":"maxHeight",Qe),Ke),k&&(Wt.overflowY="hidden",$e&&(Wt.overflowX="hidden"),Lt&&(Wt.pointerEvents="none")));var Rt={};return ce&&(Rt.dir="rtl"),p.createElement("div",(0,h.Z)({ref:nt,style:(0,z.Z)((0,z.Z)({},be),{},{position:"relative"}),className:xe},Rt,Oe),p.createElement(o.Z,{onResize:kt},p.createElement(lt,{className:"".concat(V,"-holder"),style:Wt,ref:Xe,onScroll:Rn,onMouseEnter:Ie},p.createElement(L,{prefixCls:V,height:Ot,offsetX:Pe,offsetY:$t,scrollWidth:$e,onInnerResize:se,ref:ct,innerProps:Le,rtl:ce,extra:ft},zt))),he&&Ot>Qe&&p.createElement(tt,{ref:qt,prefixCls:V,scrollOffset:Z,scrollRange:Ot,rtl:ce,onScroll:yn,onStartMove:cn,onStopMove:Ne,spinSize:En,containerSize:_t.height,style:Ce==null?void 0:Ce.verticalScrollBar,thumbStyle:Ce==null?void 0:Ce.verticalScrollBarThumb,showScrollBar:at}),he&&$e>_t.width&&p.createElement(tt,{ref:it,prefixCls:V,scrollOffset:Pe,scrollRange:$e,rtl:ce,onScroll:yn,onStartMove:cn,onStopMove:Ne,spinSize:ln,containerSize:_t.width,horizontal:!0,style:Ce==null?void 0:Ce.horizontalScrollBar,thumbStyle:Ce==null?void 0:Ce.horizontalScrollBarThumb,showScrollBar:at}))}var Tt=p.forwardRef(en);Tt.displayName="List";var an=Tt,qe=an},83145:function(In,Gt,_){"use strict";Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.CopyToClipboard=void 0;var h=z(_(59301)),ue=z(_(25769));function z(F){return F&&F.__esModule?F:{default:F}}function ae(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(D){return typeof D}:ae=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},ae(F)}function B(F,H){var D=Object.keys(F);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(F);H&&(A=A.filter(function(Q){return Object.getOwnPropertyDescriptor(F,Q).enumerable})),D.push.apply(D,A)}return D}function d(F){for(var H=1;H<arguments.length;H++){var D=arguments[H]!=null?arguments[H]:{};H%2?B(D,!0).forEach(function(A){$(F,A,D[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(D)):B(D).forEach(function(A){Object.defineProperty(F,A,Object.getOwnPropertyDescriptor(D,A))})}return F}function _e(F,H){if(F==null)return{};var D=te(F,H),A,Q;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(F);for(Q=0;Q<ne.length;Q++)A=ne[Q],!(H.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(F,A)&&(D[A]=F[A])}return D}function te(F,H){if(F==null)return{};var D={},A=Object.keys(F),Q,ne;for(ne=0;ne<A.length;ne++)Q=A[ne],!(H.indexOf(Q)>=0)&&(D[Q]=F[Q]);return D}function o(F,H){if(!(F instanceof H))throw new TypeError("Cannot call a class as a function")}function g(F,H){for(var D=0;D<H.length;D++){var A=H[D];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(F,A.key,A)}}function w(F,H,D){return H&&g(F.prototype,H),D&&g(F,D),F}function p(F,H){return H&&(ae(H)==="object"||typeof H=="function")?H:x(F)}function E(F){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},E(F)}function x(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function L(F,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(H&&H.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),H&&j(F,H)}function j(F,H){return j=Object.setPrototypeOf||function(A,Q){return A.__proto__=Q,A},j(F,H)}function $(F,H,D){return H in F?Object.defineProperty(F,H,{value:D,enumerable:!0,configurable:!0,writable:!0}):F[H]=D,F}var le=function(F){L(H,F);function H(){var D,A;o(this,H);for(var Q=arguments.length,ne=new Array(Q),ee=0;ee<Q;ee++)ne[ee]=arguments[ee];return A=p(this,(D=E(H)).call.apply(D,[this].concat(ne))),$(x(A),"onClick",function(oe){var ge=A.props,me=ge.text,ot=ge.onCopy,U=ge.children,C=ge.options,P=h.default.Children.only(U),G=(0,ue.default)(me,C);ot&&ot(me,G),P&&P.props&&typeof P.props.onClick=="function"&&P.props.onClick(oe)}),A}return w(H,[{key:"render",value:function(){var A=this.props,Q=A.text,ne=A.onCopy,ee=A.options,oe=A.children,ge=_e(A,["text","onCopy","options","children"]),me=h.default.Children.only(oe);return h.default.cloneElement(me,d({},ge,{onClick:this.onClick}))}}]),H}(h.default.PureComponent);Gt.CopyToClipboard=le,$(le,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(In,Gt,_){"use strict";var h=_(83145),ue=h.CopyToClipboard;ue.CopyToClipboard=ue,In.exports=ue},76374:function(In,Gt,_){"use strict";var h=function(){if(typeof Map!="undefined")return Map;function U(C,P){var G=-1;return C.some(function(re,X){return re[0]===P?(G=X,!0):!1}),G}return function(){function C(){this.__entries__=[]}return Object.defineProperty(C.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),C.prototype.get=function(P){var G=U(this.__entries__,P),re=this.__entries__[G];return re&&re[1]},C.prototype.set=function(P,G){var re=U(this.__entries__,P);~re?this.__entries__[re][1]=G:this.__entries__.push([P,G])},C.prototype.delete=function(P){var G=this.__entries__,re=U(G,P);~re&&G.splice(re,1)},C.prototype.has=function(P){return!!~U(this.__entries__,P)},C.prototype.clear=function(){this.__entries__.splice(0)},C.prototype.forEach=function(P,G){G===void 0&&(G=null);for(var re=0,X=this.__entries__;re<X.length;re++){var y=X[re];P.call(G,y[1],y[0])}},C}()}(),ue=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,z=function(){return typeof _.g!="undefined"&&_.g.Math===Math?_.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ae=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(z):function(U){return setTimeout(function(){return U(Date.now())},1e3/60)}}(),B=2;function d(U,C){var P=!1,G=!1,re=0;function X(){P&&(P=!1,U()),G&&v()}function y(){ae(X)}function v(){var O=Date.now();if(P){if(O-re<B)return;G=!0}else P=!0,G=!1,setTimeout(y,C);re=O}return v}var _e=20,te=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",g=function(){function U(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=d(this.refresh.bind(this),_e)}return U.prototype.addObserver=function(C){~this.observers_.indexOf(C)||this.observers_.push(C),this.connected_||this.connect_()},U.prototype.removeObserver=function(C){var P=this.observers_,G=P.indexOf(C);~G&&P.splice(G,1),!P.length&&this.connected_&&this.disconnect_()},U.prototype.refresh=function(){var C=this.updateObservers_();C&&this.refresh()},U.prototype.updateObservers_=function(){var C=this.observers_.filter(function(P){return P.gatherActive(),P.hasActive()});return C.forEach(function(P){return P.broadcastActive()}),C.length>0},U.prototype.connect_=function(){!ue||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)},U.prototype.disconnect_=function(){!ue||!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)},U.prototype.onTransitionEnd_=function(C){var P=C.propertyName,G=P===void 0?"":P,re=te.some(function(X){return!!~G.indexOf(X)});re&&this.refresh()},U.getInstance=function(){return this.instance_||(this.instance_=new U),this.instance_},U.instance_=null,U}(),w=function(U,C){for(var P=0,G=Object.keys(C);P<G.length;P++){var re=G[P];Object.defineProperty(U,re,{value:C[re],enumerable:!1,writable:!1,configurable:!0})}return U},p=function(U){var C=U&&U.ownerDocument&&U.ownerDocument.defaultView;return C||z},E=Q(0,0,0,0);function x(U){return parseFloat(U)||0}function L(U){for(var C=[],P=1;P<arguments.length;P++)C[P-1]=arguments[P];return C.reduce(function(G,re){var X=U["border-"+re+"-width"];return G+x(X)},0)}function j(U){for(var C=["top","right","bottom","left"],P={},G=0,re=C;G<re.length;G++){var X=re[G],y=U["padding-"+X];P[X]=x(y)}return P}function $(U){var C=U.getBBox();return Q(0,0,C.width,C.height)}function le(U){var C=U.clientWidth,P=U.clientHeight;if(!C&&!P)return E;var G=p(U).getComputedStyle(U),re=j(G),X=re.left+re.right,y=re.top+re.bottom,v=x(G.width),O=x(G.height);if(G.boxSizing==="border-box"&&(Math.round(v+X)!==C&&(v-=L(G,"left","right")+X),Math.round(O+y)!==P&&(O-=L(G,"top","bottom")+y)),!H(U)){var pe=Math.round(v+X)-C,He=Math.round(O+y)-P;Math.abs(pe)!==1&&(v-=pe),Math.abs(He)!==1&&(O-=He)}return Q(re.left,re.top,v,O)}var F=function(){return typeof SVGGraphicsElement!="undefined"?function(U){return U instanceof p(U).SVGGraphicsElement}:function(U){return U instanceof p(U).SVGElement&&typeof U.getBBox=="function"}}();function H(U){return U===p(U).document.documentElement}function D(U){return ue?F(U)?$(U):le(U):E}function A(U){var C=U.x,P=U.y,G=U.width,re=U.height,X=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,y=Object.create(X.prototype);return w(y,{x:C,y:P,width:G,height:re,top:P,right:C+G,bottom:re+P,left:C}),y}function Q(U,C,P,G){return{x:U,y:C,width:P,height:G}}var ne=function(){function U(C){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Q(0,0,0,0),this.target=C}return U.prototype.isActive=function(){var C=D(this.target);return this.contentRect_=C,C.width!==this.broadcastWidth||C.height!==this.broadcastHeight},U.prototype.broadcastRect=function(){var C=this.contentRect_;return this.broadcastWidth=C.width,this.broadcastHeight=C.height,C},U}(),ee=function(){function U(C,P){var G=A(P);w(this,{target:C,contentRect:G})}return U}(),oe=function(){function U(C,P,G){if(this.activeObservations_=[],this.observations_=new h,typeof C!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=C,this.controller_=P,this.callbackCtx_=G}return U.prototype.observe=function(C){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(C instanceof p(C).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(C)||(P.set(C,new ne(C)),this.controller_.addObserver(this),this.controller_.refresh())}},U.prototype.unobserve=function(C){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(C instanceof p(C).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(C)&&(P.delete(C),P.size||this.controller_.removeObserver(this))}},U.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},U.prototype.gatherActive=function(){var C=this;this.clearActive(),this.observations_.forEach(function(P){P.isActive()&&C.activeObservations_.push(P)})},U.prototype.broadcastActive=function(){if(this.hasActive()){var C=this.callbackCtx_,P=this.activeObservations_.map(function(G){return new ee(G.target,G.broadcastRect())});this.callback_.call(C,P,C),this.clearActive()}},U.prototype.clearActive=function(){this.activeObservations_.splice(0)},U.prototype.hasActive=function(){return this.activeObservations_.length>0},U}(),ge=typeof WeakMap!="undefined"?new WeakMap:new h,me=function(){function U(C){if(!(this instanceof U))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var P=g.getInstance(),G=new oe(C,P,this);ge.set(this,G)}return U}();["observe","unobserve","disconnect"].forEach(function(U){me.prototype[U]=function(){var C;return(C=ge.get(this))[U].apply(C,arguments)}});var ot=function(){return typeof z.ResizeObserver!="undefined"?z.ResizeObserver:me}();Gt.Z=ot},38710:function(In){var Gt=function(_){return _.replace(/[A-Z]/g,function(h){return"-"+h.toLowerCase()}).toLowerCase()};In.exports=Gt},98040:function(In){In.exports=function(){var Gt=document.getSelection();if(!Gt.rangeCount)return function(){};for(var _=document.activeElement,h=[],ue=0;ue<Gt.rangeCount;ue++)h.push(Gt.getRangeAt(ue));switch(_.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":_.blur();break;default:_=null;break}return Gt.removeAllRanges(),function(){Gt.type==="Caret"&&Gt.removeAllRanges(),Gt.rangeCount||h.forEach(function(z){Gt.addRange(z)}),_&&_.focus()}}},32637:function(In,Gt,_){"use strict";In.exports=_.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+K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uxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},93162:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return ue}});var h=_(15417);function ue(z,ae){var B=typeof Symbol!="undefined"&&z[Symbol.iterator]||z["@@iterator"];if(!B){if(Array.isArray(z)||(B=(0,h.Z)(z))||ae&&z&&typeof z.length=="number"){B&&(z=B);var d=0,_e=function(){};return{s:_e,n:function(){return d>=z.length?{done:!0}:{done:!1,value:z[d++]}},e:function(p){throw p},f:_e}}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 te,o=!0,g=!1;return{s:function(){B=B.call(z)},n:function(){var p=B.next();return o=p.done,p},e:function(p){g=!0,te=p},f:function(){try{o||B.return==null||B.return()}finally{if(g)throw te}}}}},68535:function(In,Gt,_){"use strict";_.d(Gt,{ZP:function(){return gs}});const h=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},ue=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=z},z=Number.MAX_SAFE_INTEGER||9007199254740991;let ae=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}({}),B=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 _e={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},te={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 g{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 w(a,e,t){return(e=j(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function p(){return p=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},p.apply(null,arguments)}function E(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?E(Object(t),!0).forEach(function(n){w(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):E(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 j(a){var e=L(a,"string");return typeof e=="symbol"?e:e+""}class ${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=le,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 le=function(){},F={trace:le,debug:le,log:le,warn:le,info:le,error:le};function H(){return p({},F)}function D(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):le}function A(a,e,t){return e[a]?e[a].bind(e):D(a,t)}const Q=H();function ne(a,e,t){const n=H();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=A(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.11`)}catch(i){return H()}r.forEach(i=>{Q[i]=A(i,a)})}else p(Q,n);return n}const ee=Q;function oe(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ge(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function me(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 ot(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}function U(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 C(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function P(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var G={exports:{}},re;function X(){return re||(re=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 m=l.parseURL(c);if(!m)throw new Error("Error trying to parse base URL.");return m.path=l.normalizePath(m.path),l.buildURLFromParts(m)}var b=l.parseURL(u);if(!b)throw new Error("Error trying to parse relative URL.");if(b.scheme)return f.alwaysNormalize?(b.path=l.normalizePath(b.path),l.buildURLFromParts(b)):u;var T=l.parseURL(c);if(!T)throw new Error("Error trying to parse base URL.");if(!T.netLoc&&T.path&&T.path[0]!=="/"){var R=r.exec(T.path);T.netLoc=R[1],T.path=R[2]}T.netLoc&&!T.path&&(T.path="/");var ie={scheme:T.scheme,netLoc:b.netLoc,path:null,params:b.params,query:b.query,fragment:b.fragment};if(!b.netLoc&&(ie.netLoc=T.netLoc,b.path[0]!=="/"))if(!b.path)ie.path=T.path,b.params||(ie.params=T.params,b.query||(ie.query=T.query));else{var q=T.path,we=q.substring(0,q.lastIndexOf("/")+1)+b.path;ie.path=l.normalizePath(we)}return ie.path===null&&(ie.path=f.alwaysNormalize?l.normalizePath(b.path):b.path),l.buildURLFromParts(ie)},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})()}(G)),G.exports}var y=X();class v{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 O={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class pe{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,Ft(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={[O.AUDIO]:null,[O.VIDEO]:null,[O.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 v),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=y.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[O.AUDIO]=null,e[O.VIDEO]=null,e[O.AUDIOVIDEO]=null}}function He(a){return a.sn!=="initSegment"}class tt extends pe{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.length){const e=this.byteRange[0],t=this.byteRange[1];if(h(e)&&h(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){const r=this._decryptdata=this.levelkeys[n[0]]||null;if(r)return r.getDecryptData(this.sn)}}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=h(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){var t;const n=Object.keys(this.levelkeys),r=n.length;if(r>1||r===1&&(t=this.levelkeys[n[0]])!=null&&t.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(!h(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return He(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 wt extends pe{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 Ft(a,e){const t=It(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const Ht=Math.pow(2,32)-1,Ke=[].push,en={video:1,audio:2,id3:3,text:4};function Tt(a){return String.fromCharCode.apply(null,a)}function an(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function qe(a,e){const t=Fe(a,e);return t<0?4294967296+t:t}function yt(a,e){let t=qe(a,e);return t*=Math.pow(2,32),t+=qe(a,e+4),t}function Fe(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Ae(a){const e=a.byteLength;for(let t=0;t<e;){const n=qe(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 V(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=qe(a,r),s=Tt(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=V(a.subarray(r+8,l),e.slice(1));c.length&&Ke.apply(t,c)}r=l}return t}function je(a){const e=[],t=a[0];let n=8;const r=qe(a,n);n+=4;let i=0,s=0;t===0?(i=qe(a,n),s=qe(a,n+4),n+=8):(i=yt(a,n),s=yt(a,n+8),n+=16),n+=2;let l=a.length+s;const c=an(a,n);n+=2;for(let u=0;u<c;u++){let f=n;const m=qe(a,f);f+=4;const b=m&2147483647;if((m&2147483648)>>>31===1)return ee.warn("SIDX has hierarchical references (not supported)"),null;const R=qe(a,f);f+=4,e.push({referenceSize:b,subsegmentDuration:R,info:{duration:R/r,start:l,end:l+b-1}}),l+=b,f+=4,n=f}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:c,references:e}}function Qe(a){const e=[],t=V(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=V(i,["tkhd"])[0];if(s){let l=s[0];const c=qe(s,l===0?12:20),u=V(i,["mdia","mdhd"])[0];if(u){l=u[0];const f=qe(u,l===0?12:20),m=V(i,["mdia","hdlr"])[0];if(m){const b=Tt(m.subarray(8,12)),T={soun:O.AUDIO,vide:O.VIDEO}[b],R=V(i,["mdia","minf","stbl","stsd"])[0],ie=J(R);T?(e[c]={timescale:f,type:T,stsd:ie},e[T]=x({timescale:f,id:c},ie)):e[c]={timescale:f,type:b,stsd:ie}}}}}return V(a,["moov","mvex","trex"]).forEach(r=>{const i=qe(r,4),s=e[i];s&&(s.default={duration:qe(r,12),flags:qe(r,20)})}),e}function J(a){const e=a.subarray(8),t=e.subarray(86),n=Tt(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const u=V(e,[n])[0].subarray(n==="enca"?28:78);V(u,["sinf"]).forEach(m=>{const b=V(m,["schm"])[0];if(b){const T=Tt(b.subarray(4,8));if(T==="cbcs"||T==="cenc"){const R=V(m,["frma"])[0];R&&(r=Tt(R))}}})}const l=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const c=V(t,["avcC"])[0];c&&c.length>3&&(r+="."+W(c[1])+W(c[2])+W(c[3]),i=M(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const c=V(e,[n])[0],u=V(c.subarray(28),["esds"])[0];if(u&&u.length>7){let f=4;if(u[f++]!==3)break;f=be(u,f),f+=2;const m=u[f++];if(m&128&&(f+=2),m&64&&(f+=u[f++]),u[f++]!==4)break;f=be(u,f);const b=u[f++];if(b===64)r+="."+W(b);else break;if(f+=12,u[f++]!==5)break;f=be(u,f);const T=u[f++];let R=(T&248)>>3;R===31&&(R+=1+((T&7)<<3)+((u[f]&224)>>5)),r+="."+R}break}case"hvc1":case"hev1":{const c=V(t,["hvcC"])[0];if(c&&c.length>12){const u=c[1],f=["","A","B","C"][u>>6],m=u&31,b=qe(c,2),T=(u&32)>>5?"H":"L",R=c[12],ie=c.subarray(6,12);r+="."+f+m,r+="."+Se(b).toString(16).toUpperCase(),r+="."+T+R;let q="";for(let we=ie.length;we--;){const ht=ie[we];(ht||q)&&(q="."+ht.toString(16).toUpperCase()+q)}r+=q}i=M(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=M(r,t)||r;break}case"vp09":{const c=V(t,["vpcC"])[0];if(c&&c.length>6){const u=c[4],f=c[5],m=c[6]>>4&15;r+="."+fe(u)+"."+fe(f)+"."+fe(m)}break}case"av01":{const c=V(t,["av1C"])[0];if(c&&c.length>2){const u=c[1]>>>5,f=c[1]&31,m=c[2]>>>7?"H":"M",b=(c[2]&64)>>6,T=(c[2]&32)>>5,R=u===2&&b?T?12:10:b?10:8,ie=(c[2]&16)>>4,q=(c[2]&8)>>3,we=(c[2]&4)>>2,ht=c[2]&3;r+="."+u+"."+fe(f)+m+"."+fe(R)+"."+ie+"."+q+we+ht+"."+fe(1)+"."+fe(1)+"."+fe(1)+"."+0,i=M("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function M(a,e){const t=V(e,["dvvC"]),n=t.length?t[0]:V(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+fe(r)+"."+fe(i)}}function Se(a){let e=0;for(let t=0;t<32;t++)e|=(a>>t&1)<<31-t;return e>>>0}function be(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function W(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function fe(a){return(a<10?"0":"")+a}function ye(a,e){if(!a||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&V(a,["moov","trak"]).forEach(r=>{const s=V(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let l=V(s,["enca"]);const c=l.length>0;c||(l=V(s,["encv"])),l.forEach(u=>{const f=c?u.subarray(28):u.subarray(78);V(f,["sinf"]).forEach(b=>{const T=et(b);if(T){const R=T.subarray(8,24);R.some(ie=>ie!==0)||(ee.log(`[eme] Patching keyId in 'enc${c?"a":"v"}>sinf>>tenc' box: ${U(R)} -> ${U(t)}`),T.set(t,8))}})})})}function et(a){const e=V(a,["schm"])[0];if(e){const t=Tt(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return V(a,["schi","tenc"])[0]}return null}function Ve(a,e,t){const n={},r=V(a,["moof","traf"]);for(let i=0;i<r.length;i++){const s=r[i],l=V(s,["tfhd"])[0],c=qe(l,4),u=e[c];if(!u)continue;n[c]||(n[c]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});const f=n[c],m=V(s,["tfdt"])[0];if(m){const rt=m[0];let Ut=qe(m,4);rt===1&&(Ut===Ht?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(Ut*=Ht+1,Ut+=qe(m,8))),h(Ut)&&(!h(f.start)||Ut<f.start)&&(f.start=Ut)}const b=u.default,T=qe(l,0)|(b==null?void 0:b.flags);let R=(b==null?void 0:b.duration)||0;T&8&&(T&2?R=qe(l,12):R=qe(l,8));const ie=V(s,["trun"]);let q=f.start||0,we=0,ht=R;for(let rt=0;rt<ie.length;rt++){const Ut=ie[rt],tn=qe(Ut,4),_n=f.sampleCount;f.sampleCount+=tn;const Yt=Ut[3]&1,un=Ut[3]&4,fn=Ut[2]&1,Xt=Ut[2]&2,An=Ut[2]&4,nr=Ut[2]&8;let fr=8,vr=tn;for(Yt&&(fr+=4),un&&tn&&(!(Ut[fr+1]&1)&&f.keyFrameIndex===void 0&&(f.keyFrameIndex=_n),fr+=4,fn?(ht=qe(Ut,fr),fr+=4):ht=R,Xt&&(fr+=4),nr&&(fr+=4),q+=ht,we+=ht,vr--);vr--;)fn?(ht=qe(Ut,fr),fr+=4):ht=R,Xt&&(fr+=4),An&&(Ut[fr+1]&1||f.keyFrameIndex===void 0&&(f.keyFrameIndex=f.sampleCount-(vr+1),f.keyFrameStart=q),fr+=4),nr&&(fr+=4),q+=ht,we+=ht;!we&&R&&(we+=R*tn)}f.duration+=we}if(!Object.keys(n).some(i=>n[i].duration)){let i=1/0,s=0;const l=V(a,["sidx"]);for(let c=0;c<l.length;c++){const u=je(l[c]);if(u!=null&&u.references){i=Math.min(i,u.earliestPresentationTime/u.timescale);const f=u.references.reduce((m,b)=>m+b.info.duration||0,0);s=Math.max(s,f+u.earliestPresentationTime/u.timescale)}}s&&h(s)&&Object.keys(n).forEach(c=>{n[c].duration||(n[c].duration=s*n[c].timescale-n[c].start)})}return n}function $e(a){const e={valid:null,remainder:null},t=V(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 Ye(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function lt(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return V(n,["moof"]).map(c=>{const u=c.byteOffset-8;V(c,["traf"]).map(m=>{const b=V(m,["tfdt"]).map(T=>{const R=T[0];let ie=qe(T,4);return R===1&&(ie*=Math.pow(2,32),ie+=qe(T,8)),ie/r})[0];return b!==void 0&&(a=b),V(m,["tfhd"]).map(T=>{const R=qe(T,4),ie=qe(T,0)&16777215,q=(ie&1)!==0,we=(ie&2)!==0,ht=(ie&8)!==0;let rt=0;const Ut=(ie&16)!==0;let tn=0;const _n=(ie&32)!==0;let Yt=8;R===i&&(q&&(Yt+=8),we&&(Yt+=4),ht&&(rt=qe(T,Yt),Yt+=4),Ut&&(tn=qe(T,Yt),Yt+=4),_n&&(Yt+=4),e.type==="video"&&(s=de(e.codec)),V(m,["trun"]).map(un=>{const fn=un[0],Xt=qe(un,0)&16777215,An=(Xt&1)!==0;let nr=0;const fr=(Xt&4)!==0,vr=(Xt&256)!==0;let hr=0;const qn=(Xt&512)!==0;let mr=0;const ar=(Xt&1024)!==0,gr=(Xt&2048)!==0;let wr=0;const $n=qe(un,4);let er=8;An&&(nr=qe(un,er),er+=4),fr&&(er+=4);let Lr=nr+u;for(let Kr=0;Kr<$n;Kr++){if(vr?(hr=qe(un,er),er+=4):hr=rt,qn?(mr=qe(un,er),er+=4):mr=tn,ar&&(er+=4),gr&&(fn===0?wr=qe(un,er):wr=Fe(un,er),er+=4),e.type===O.VIDEO){let Pr=0;for(;Pr<mr;){const Mr=qe(n,Lr);if(Lr+=4,K(s,n[Lr])){const Ei=n.subarray(Lr,Lr+Mr);N(Ei,s?2:1,a+wr/r,t)}Lr+=Mr,Pr+=Mr+4}}a+=hr/r}}))})})}),t}function de(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function K(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function N(a,e,t,n){const r=Le(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){ee.error(`Malformed SEI payload. ${l} is too small, only ${u} bytes left to parse.`);break}if(s===4){if(r[f++]===181){const b=an(r,f);if(f+=2,b===49){const T=qe(r,f);if(f+=4,T===1195456820){const R=r[f++];if(R===3){const ie=r[f++],q=31&ie,we=64&ie,ht=we?2+q*3:0,rt=new Uint8Array(ht);if(we){rt[0]=ie;for(let Ut=1;Ut<ht;Ut++)rt[Ut]=r[f++]}n.push({type:R,payloadType:s,pts:t,bytes:rt})}}}}}else if(s===5&&l>16){const m=[];for(let R=0;R<16;R++){const ie=r[f++].toString(16);m.push(ie.length==1?"0"+ie:ie),(R===3||R===5||R===7||R===9)&&m.push("-")}const b=l-16,T=new Uint8Array(b);for(let R=0;R<b;R++)T[R]=r[f++];n.push({payloadType:s,pts:t,uuid:m.join(""),userData:ot(T),userDataBytes:T})}}}function Le(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function De(a){const e=a[0];let t="",n="",r=0,i=0,s=0,l=0,c=0,u=0;if(e===0){for(;Tt(a.subarray(u,u+1))!=="\0";)t+=Tt(a.subarray(u,u+1)),u+=1;for(t+=Tt(a.subarray(u,u+1)),u+=1;Tt(a.subarray(u,u+1))!=="\0";)n+=Tt(a.subarray(u,u+1)),u+=1;n+=Tt(a.subarray(u,u+1)),u+=1,r=qe(a,12),i=qe(a,16),l=qe(a,20),c=qe(a,24),u=28}else if(e===1){u+=4,r=qe(a,u),u+=4;const m=qe(a,u);u+=4;const b=qe(a,u);for(u+=4,s=Dl(2,32)*m+b,ue(s)||(s=Number.MAX_SAFE_INTEGER,ee.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=qe(a,u),u+=4,c=qe(a,u),u+=4;Tt(a.subarray(u,u+1))!=="\0";)t+=Tt(a.subarray(u,u+1)),u+=1;for(t+=Tt(a.subarray(u,u+1)),u+=1;Tt(a.subarray(u,u+1))!=="\0";)n+=Tt(a.subarray(u,u+1)),u+=1;n+=Tt(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 Ce(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 st(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.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),Ce([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t)}const at=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Oe={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 Et(a,e){const t=Oe[e];return!!t&&!!t[a.slice(0,4)]}function Vt(a,e,t=!0){return!a.split(",").some(n=>!St(n,e,t))}function St(a,e,t=!0){var n;const r=oe(t);return(n=r==null?void 0:r.isTypeSupported(Bt(a,e)))!=null?n:!1}function Bt(a,e){return`${e}/mp4;codecs=${a}`}function se(a){if(a){const e=a.substring(0,4);return Oe.video[e]}return 2}function ve(a){const e=at();return a.split(",").reduce((t,n)=>{const i=e&&de(n)?9:Oe.video[n];return i?(i*2+t)/(t?3:2):(Oe.audio[n]+t)/(t?2:1)},0)}const Ee={};function k(a,e=!0){if(Ee[a])return Ee[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(St(t[r],"audio",e))return Ee[a]=t[r],t[r];if(t[r]==="mp3"&&(n=oe(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Y=/flac|opus|mp4a\.40\.34/i;function he(a,e=!0){return a.replace(Y,t=>k(t.toLowerCase(),e))}function ce(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)Et(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function xe(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1)&&(Be(a,"audio")||Be(a,"video")))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 Be(a,e){return Et(a,e)&&St(a,e)}function Xe(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");n.length>2&&n[0]==="avc1"&&(e[t]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return e.join(",")}function ct(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 nt(a){const e=oe(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 Ue(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const I={supported:!0,powerEfficient:!0,smooth:!0},Z={supported:!1,smooth:!1,powerEfficient:!1},S={supported:!0,configurations:[],decodingInfoResults:[I]};function ze(a,e){return{supported:!1,configurations:e,decodingInfoResults:[Z],error:a}}function ke(a,e,t,n,r,i){const s=a.videoCodec,l=a.audioCodec?a.audioGroups:null,c=i==null?void 0:i.audioCodec,u=i==null?void 0:i.channels,f=u?parseInt(u):c?1/0:2;let m=null;if(l!=null&&l.length)try{l.length===1&&l[0]?m=e.groups[l[0]].channels:m=l.reduce((b,T)=>{if(T){const R=e.groups[T];if(!R)throw new Error(`Audio track group ${T} not found`);Object.keys(R.channels).forEach(ie=>{b[ie]=(b[ie]||0)+R.channels[ie]})}return b},{2:0})}catch(b){return!0}return s!==void 0&&(s.split(",").some(b=>de(b))||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))||!!m&&h(f)&&Object.keys(m).some(b=>parseInt(b)>f)}function Pe(a,e,t,n={}){const r=a.videoCodec;if(!r&&!a.audioCodec||!t)return Promise.resolve(S);const i=[],s=Ge(a),l=s.length,c=We(a,e,l>0),u=c.length;for(let f=l||1*u||1;f--;){const m={type:"media-source"};if(l&&(m.video=s[f%l]),u){m.audio=c[f%u];const b=m.audio.bitrate;m.video&&b&&(m.video.bitrate-=b)}i.push(m)}if(r){const f=navigator.userAgent;if(r.split(",").some(m=>de(m))&&at())return Promise.resolve(ze(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${f})`),i))}return Promise.all(i.map(f=>{const m=Pt(f);return n[m]||(n[m]=t.decodingInfo(f))})).then(f=>({supported:!f.some(m=>!m.supported),configurations:i,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:i,decodingInfoResults:[],error:f}))}function Ge(a){var e;const t=(e=a.videoCodec)==null?void 0:e.split(","),n=Lt(a),r=a.width||640,i=a.height||480,s=a.frameRate||30,l=a.videoRange.toLowerCase();return t?t.map(c=>{const u={contentType:Bt(ct(c),"video"),width:r,height:i,bitrate:n,framerate:s};return l!=="sdr"&&(u.transferFunction=l),u}):[]}function We(a,e,t){var n;const r=(n=a.audioCodec)==null?void 0:n.split(","),i=Lt(a);return r&&a.audioGroups?a.audioGroups.reduce((s,l)=>{var c;const u=l?(c=e.groups[l])==null?void 0:c.tracks:null;return u?u.reduce((f,m)=>{if(m.groupId===l){const b=parseFloat(m.channels||"");r.forEach(T=>{const R={contentType:Bt(T,"audio"),bitrate:t?dt(T,i):i};b&&(R.channels=""+b),f.push(R)})}return f},s):s},[]):[]}function dt(a,e){if(e<=1)return 1;let t=128e3;return a==="ec-3"?t=768e3:a==="ac-3"&&(t=64e4),Math.min(e/2,t)}function Lt(a){return Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)/1e3)*1e3||1}function Pt(a){let e="";const{audio:t,video:n}=a;if(n){const r=Ue(n.contentType);e+=`${r}_r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${Math.ceil(n.bitrate/1e5)}`}if(t){const r=Ue(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const cn=["NONE","TYPE-0","TYPE-1",null];function Ne(a){return cn.indexOf(a)>-1}const Re=["SDR","PQ","HLG"];function gt(a){return!!a&&Re.indexOf(a)>-1}var pt={No:"",Yes:"YES",v2:"v2"};function Mt(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?pt.v2:pt.Yes:pt.No}class xt{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 At{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 Kt(this._audioGroups,e)}hasSubtitleGroup(e){return Kt(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 Kt(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function nn(){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 Ot(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||Re.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&nn(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const dn=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}},Qt=(a,e)=>JSON.stringify(a,dn(e));function $t(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,m=!1,b=1/0,T=1/0,R=1/0,ie=1/0,q=0,we=[];const{preferHDR:ht,allowedVideoRanges:rt}=Ot(e,r);for(let un=i.length;un--;){const fn=a[i[un]];f||(f=fn.channels[2]>0),b=Math.min(b,fn.minHeight),T=Math.min(T,fn.minFramerate),R=Math.min(R,fn.minBitrate),rt.filter(An=>fn.videoRanges[An]>0).length>0&&(m=!0)}b=h(b)?b:0,T=h(T)?T:0;const Ut=Math.max(1080,b),tn=Math.max(30,T);R=h(R)?R:t,t=Math.max(R,t),m||(e=void 0);const _n=i.length>1;return{codecSet:i.reduce((un,fn)=>{const Xt=a[fn];if(fn===un)return un;if(we=m?rt.filter(An=>Xt.videoRanges[An]>0):[],_n){if(Xt.minBitrate>t)return Dt(fn,`min bitrate of ${Xt.minBitrate} > current estimate of ${t}`),un;if(!Xt.hasDefaultAudio)return Dt(fn,"no renditions with default or auto-select sound found"),un;if(l&&fn.indexOf(l.substring(0,4))%5!==0)return Dt(fn,`audio codec preference "${l}" not found`),un;if(s&&!u){if(!Xt.channels[s])return Dt(fn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Xt.channels)})`),un}else if((!l||u)&&f&&Xt.channels[2]===0)return Dt(fn,"no renditions with stereo sound found"),un;if(Xt.minHeight>Ut)return Dt(fn,`min resolution of ${Xt.minHeight} > maximum of ${Ut}`),un;if(Xt.minFramerate>tn)return Dt(fn,`min framerate of ${Xt.minFramerate} > maximum of ${tn}`),un;if(!we.some(An=>Xt.videoRanges[An]>0))return Dt(fn,`no variants with VIDEO-RANGE of ${Qt(we)} found`),un;if(c&&fn.indexOf(c.substring(0,4))%5!==0)return Dt(fn,`video codec preference "${c}" not found`),un;if(Xt.maxScore<q)return Dt(fn,`max score of ${Xt.maxScore} < selected max of ${q}`),un}return un&&(ve(fn)>=ve(un)||Xt.fragmentError>a[un].fragmentError)?un:(ie=Xt.minIndex,q=Xt.maxScore,fn)},void 0),videoRanges:we,preferHDR:ht,minFramerate:T,minBitrate:R,minIndex:ie}}function Dt(a,e){ee.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function Ze(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 _t(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 m=e.groups[f];m&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?m.hasDefault:m.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(m.channels).forEach(b=>{c.channels[b]=(c.channels[b]||0)+m.channels[b]}))}),r},{})}function Ct(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 kt(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(qt(a,r,t))return n}return-1}function qt(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||it(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(c===void 0||e.forced===c)&&(!("characteristics"in a)||ln(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function it(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function ln(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function En(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 Tn(a,e,t,n,r){const i=e[n],l=e.reduce((b,T,R)=>{const ie=T.uri;return(b[ie]||(b[ie]=[])).push(R),b},{})[i.uri];l.length>1&&(n=Math.max.apply(Math,l));const c=i.videoRange,u=i.frameRate,f=i.codecSet.substring(0,4),m=wn(e,n,b=>{if(b.videoRange!==c||b.frameRate!==u||b.codecSet.substring(0,4)!==f)return!1;const T=b.audioGroups,R=t.filter(ie=>!T||T.indexOf(ie.groupId)!==-1);return kt(a,R,r)>-1});return m>-1?m:wn(e,n,b=>{const T=b.audioGroups,R=t.filter(ie=>!T||T.indexOf(ie.groupId)!==-1);return kt(a,R,r)>-1})}function wn(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 Yn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Cn extends ${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.supportedCache={},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,m=i?i.duration:r.duration,b=u-f.loading.start,T=s.minAutoLevel,R=r.level,ie=this._nextAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||R<=T){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const q=ie>-1&&ie!==R,we=!!t||q;if(!we&&(c.paused||!c.playbackRate||!c.readyState))return;const ht=s.mainForwardBufferInfo;if(!we&&ht===null)return;const rt=this.bwEstimator.getEstimateTTFB(),Ut=Math.abs(c.playbackRate);if(b<=Math.max(rt,1e3*(m/(Ut*2))))return;const tn=ht?ht.len/Ut:0,_n=f.loading.first?f.loading.first-f.loading.start:-1,Yt=f.loaded&&_n>-1,un=this.getBwEstimate(),fn=s.levels,Xt=fn[R],An=Math.max(f.loaded,Math.round(m*(r.bitrate||Xt.averageBitrate)/8));let nr=Yt?b-_n:b;nr<1&&Yt&&(nr=Math.min(b,f.loaded*8/un));const fr=Yt?f.loaded*1e3/nr:0,vr=rt/1e3,hr=fr?(An-f.loaded)/fr:An*8/un+vr;if(hr<=tn)return;const qn=fr?fr*8:un,mr=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,ar=this.hls.config.abrBandWidthUpFactor;let gr=Number.POSITIVE_INFINITY,wr;for(wr=R-1;wr>T;wr--){const Kr=fn[wr].maxBitrate,Pr=!fn[wr].details||mr;if(gr=this.getTimeToLoadFrag(vr,qn,m*Kr,Pr),gr<Math.min(tn,m+vr))break}if(gr>=hr||gr>m*10)return;Yt?this.bwEstimator.sample(b-Math.min(rt,_n),f.loaded):this.bwEstimator.sampleTTFB(b);const $n=fn[wr].maxBitrate;this.getBwEstimate()*ar>$n&&this.resetEstimator($n);const er=this.findBestLevel($n,T,wr,0,tn,1,1);er>-1&&(wr=er),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: ${tn.toFixed(3)} s
Estimated load time for current fragment: ${hr.toFixed(3)} s
Estimated load time for down switch fragment: ${gr.toFixed(3)} s
TTFB estimate: ${_n|0} ms
Current BW estimate: ${h(un)?un|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${wr} @ ${$n|0} bps`),s.nextLoadLevel=s.nextAutoLevel=wr,this.clearTimer();const Lr=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===wr&&wr>0){const Kr=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${wr>0?"and switching down":""}
Fragment duration: ${r.duration.toFixed(3)} s
Time to underbuffer: ${Kr.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,wr>T){let Pr=this.findBestLevel(this.hls.levels[T].bitrate,T,wr,0,Kr,1,1);Pr===-1&&(Pr=T),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Pr,this.resetEstimator(this.hls.levels[Pr].bitrate)}}};q||hr>gr*2?Lr():this.timer=self.setInterval(Lr,gr*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 g(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=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},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 B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case B.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 m=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(m,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;h(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===te.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!==te.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,m=i.abrBandWidthUpFactor;if(u){const q=this.findBestLevel(c,s,r,u,0,f,m);if(q>=0)return this.rebufferNotice=-1,q}let b=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){const q=this.bitrateTestDelay;q&&(b=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-q,this.info(`bitrate test took ${Math.round(1e3*q)}ms, set first fragment max fetchDuration to ${Math.round(1e3*b)} ms`),f=m=1)}const T=this.findBestLevel(c,s,r,u,b,f,m);if(this.rebufferNotice!==T&&(this.rebufferNotice=T,this.info(`${u?"rebuffering expected":"buffer is empty"}, optimal quality level ${T}`)),T>-1)return T;const R=n.levels[s],ie=n.loadLevelObj;return ie&&(R==null?void 0:R.bitrate)<ie.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,m=f===-1?this.hls.firstLevel:f,{fragCurrent:b,partCurrent:T}=this,{levels:R,allAudioTracks:ie,loadLevel:q,config:we}=this.hls;if(R.length===1)return 0;const ht=R[m],rt=!!((c=this.hls.latestLevelDetails)!=null&&c.live),Ut=q===-1||f===-1;let tn,_n="SDR",Yt=(ht==null?void 0:ht.frameRate)||0;const{audioPreference:un,videoPreference:fn}=we,Xt=this.audioTracksByGroup||(this.audioTracksByGroup=Ze(ie));let An=-1;if(Ut){if(this.firstSelection!==-1)return this.firstSelection;const qn=this.codecTiers||(this.codecTiers=_t(R,Xt,t,n)),mr=$t(qn,_n,e,un,fn),{codecSet:ar,videoRanges:gr,minFramerate:wr,minBitrate:$n,minIndex:er,preferHDR:Lr}=mr;An=er,tn=ar,_n=Lr?gr[gr.length-1]:gr[0],Yt=wr,e=Math.max(e,$n),this.log(`picked start tier ${Qt(mr)}`)}else tn=ht==null?void 0:ht.codecSet,_n=ht==null?void 0:ht.videoRange;const nr=T?T.duration:b?b.duration:0,fr=this.bwEstimator.getEstimateTTFB()/1e3,vr=[];for(let qn=n;qn>=t;qn--){var hr;const mr=R[qn],ar=qn>m;if(!mr)continue;if(we.useMediaCapabilities&&!mr.supportedResult&&!mr.supportedPromise){const Pr=navigator.mediaCapabilities;typeof(Pr==null?void 0:Pr.decodingInfo)=="function"&&ke(mr,Xt,_n,Yt,e,un)?(mr.supportedPromise=Pe(mr,Xt,Pr,this.supportedCache),mr.supportedPromise.then(Mr=>{if(!this.hls)return;mr.supportedResult=Mr;const Ei=this.hls.levels,vi=Ei.indexOf(mr);Mr.error?this.warn(`MediaCapabilities decodingInfo error: "${Mr.error}" for level ${vi} ${Qt(Mr)}`):Mr.supported?Mr.decodingInfoResults.some(ki=>ki.smooth===!1||ki.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${vi} not smooth or powerEfficient: ${Qt(Mr)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${vi} ${Qt(Mr)}`),vi>-1&&Ei.length>1&&(this.log(`Removing unsupported level ${vi}`),this.hls.removeLevel(vi),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(Mr=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${Mr}`)})):mr.supportedResult=S}if((tn&&mr.codecSet!==tn||_n&&mr.videoRange!==_n||ar&&Yt>mr.frameRate||!ar&&Yt>0&&Yt<mr.frameRate||(hr=mr.supportedResult)!=null&&(hr=hr.decodingInfoResults)!=null&&hr.some(Pr=>Pr.smooth===!1))&&(!Ut||qn!==An)){vr.push(qn);continue}const gr=mr.details,wr=(T?gr==null?void 0:gr.partTarget:gr==null?void 0:gr.averagetargetduration)||nr;let $n;ar?$n=l*e:$n=s*e;const er=nr&&r>=nr*2&&i===0?mr.averageBitrate:mr.maxBitrate,Lr=this.getTimeToLoadFrag(fr,$n,er*wr,gr===void 0);if($n>=er&&(qn===f||mr.loadError===0&&mr.fragmentError===0)&&(Lr<=fr||!h(Lr)||rt&&!this.bitrateTestDelay||Lr<u)){const Pr=this.forcedAutoLevel;return qn!==q&&(Pr===-1||Pr!==q)&&(vr.length&&this.trace(`Skipped level(s) ${vr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${R[vr[0]].codecs}" ${R[vr[0]].videoRange}; not compatible with "${tn}" ${_n}`),this.info(`switch candidate:${m}->${qn} adjustedbw(${Math.round($n)})-bitrate=${Math.round($n-er)} ttfb:${fr.toFixed(1)} avgDuration:${wr.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${Lr.toFixed(1)} firstSelection:${Ut} codecSet:${mr.codecSet} videoRange:${mr.videoRange} hls.loadLevel:${q}`)),Ut&&(this.firstSelection=qn),qn}}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 Zn={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 Nn(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!h(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;for(let i=0;i<a.length;++i){const s=a[i];if(Ln(e,t,s))return s}return null}function Pn(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)&&vn(t,n,i)===0||Dn(i,a,Math.min(r,n))))return i;const s=Zn.search(e,vn.bind(null,t,n));return s&&(s!==a||!i)?s:i}function Dn(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 vn(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 Ln(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function hn(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){let n=a.fragments;const{fragmentHint:r}=a;r&&(n=n.concat(r));let i;return Zn.search(n,s=>s.cc<e?1:s.cc>e?-1:(i=s,s.end<=t?1:s.start>t?-1:0)),i||null}return null}function yn(a){switch(a.details){case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_TIMEOUT:case B.LEVEL_LOAD_TIMEOUT:case B.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Rn(a,e){const t=yn(e);return a.default[`${t?"timeout":"error"}Retry`]}function Mn(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Bn(a){return x(x({},a),{errorRetry:null,timeoutRetry:null})}function zn(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(pr(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function pr(a){return Me(a)||!!a&&(a<400||a>499)}function Me(a){return a===0&&navigator.onLine===!1}var Te={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ie={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class ut extends ${constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,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}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===te.MAIN?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,n=t.currentLevel;return(e=t.loadLevelObj)!=null&&e.details||n===-1?t.loadLevel:n}variantHasKey(e,t){if(e){var n;if((n=e.details)!=null&&n.hasKey(t))return!0;const r=e.audioGroups;if(r)return this.hls.allAudioTracks.filter(s=>r.indexOf(s.groupId)>=0).some(s=>{var l;return(l=s.details)==null?void 0:l.hasKey(t)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case B.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=mt();return}case B.FRAG_GAP:case B.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Te.SendAlternateToPenaltyBox;return}case B.LEVEL_EMPTY_ERROR:case B.LEVEL_PARSING_ERROR:{var s;const c=t.parent===te.MAIN?t.level:r.loadLevel;t.details===B.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(s=s.levelDetails)!=null&&s.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.SUBTITLE_LOAD_ERROR:case B.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const c=r.loadLevelObj;if(c&&(i.type===_e.AUDIO_TRACK&&c.hasAudioGroup(i.groupId)||i.type===_e.SUBTITLE_TRACK&&c.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Te.SendAlternateToPenaltyBox,t.errorAction.flags=Ie.MoveAllAlternatesMatchingHost;return}}return;case B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:Te.SendAlternateToPenaltyBox,flags:Ie.MoveAllAlternatesMatchingHDCP};return;case B.KEY_SYSTEM_SESSION_UPDATE_FAILED:case B.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case B.KEY_SYSTEM_NO_SESSION:t.errorAction={action:Te.SendAlternateToPenaltyBox,flags:Ie.MoveAllAlternatesMatchingKey};return;case B.BUFFER_ADD_CODEC_ERROR:case B.REMUX_ALLOC_ERROR:case B.BUFFER_APPEND_ERROR:if(!t.errorAction){var l;t.errorAction=this.getLevelSwitchAction(t,(l=t.level)!=null?l:r.loadLevel)}return;case B.INTERNAL_EXCEPTION:case B.BUFFER_APPENDING_ERROR:case B.BUFFER_FULL_ERROR:case B.LEVEL_SWITCH_ERROR:case B.BUFFER_STALLED_ERROR:case B.BUFFER_SEEK_OVER_HOLE:case B.BUFFER_NUDGE_ON_STALL:t.errorAction=mt();return}t.type===ae.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=mt())}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Rn(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(zn(r,i,yn(e),e.response))return{action:Te.RetryRequest,flags:Ie.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=Rn(e.details.startsWith("key")?s:i,e),c=t.levels.reduce((f,m)=>f+m.fragmentError,0);if(r&&(e.details!==B.FRAG_GAP&&r.fragmentError++,zn(l,c,yn(e),e.response)))return{action:Te.RetryRequest,flags:Ie.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===B.BUFFER_APPEND_ERROR&&r.fragmentError++;let f=-1;const{levels:m,loadLevel:b,minAutoLevel:T,maxAutoLevel:R}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const ie=(i=e.frag)==null?void 0:i.type,we=(ie===te.AUDIO&&u===B.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR))&&m.some(({audioCodec:_n})=>r.audioCodec!==_n),rt=e.sourceBufferName==="video"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR)&&m.some(({codecSet:_n,audioCodec:Yt})=>r.codecSet!==_n&&r.audioCodec===Yt),{type:Ut,groupId:tn}=(s=e.context)!=null?s:{};for(let _n=m.length;_n--;){const Yt=(_n+b)%m.length;if(Yt!==b&&Yt>=T&&Yt<=R&&m[Yt].loadError===0){var l,c;const un=m[Yt];if(u===B.FRAG_GAP&&ie===te.MAIN&&e.frag){const fn=m[Yt].details;if(fn){const Xt=Pn(e.frag,fn.fragments,e.frag.start);if(Xt!=null&&Xt.gap)continue}}else{if(Ut===_e.AUDIO_TRACK&&un.hasAudioGroup(tn)||Ut===_e.SUBTITLE_TRACK&&un.hasSubtitleGroup(tn))continue;if(ie===te.AUDIO&&(l=r.audioGroups)!=null&&l.some(fn=>un.hasAudioGroup(fn))||ie===te.SUBTITLE&&(c=r.subtitleGroups)!=null&&c.some(fn=>un.hasSubtitleGroup(fn))||we&&r.audioCodec===un.audioCodec||rt&&r.codecSet===un.codecSet||!we&&r.codecSet!==un.codecSet)continue}f=Yt;break}}if(f>-1&&n.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:Te.SendAlternateToPenaltyBox,flags:Ie.None,nextAutoLevel:f}}return{action:Te.SendAlternateToPenaltyBox,flags:Ie.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Te.DoNothing:break;case Te.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==B.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 Te.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r}=n,i=n.nextAutoLevel;switch(r){case Ie.None:this.switchLevel(e,i);break;case Ie.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(e.frag),u=t.levels[c],f=u==null?void 0:u.attrs["HDCP-LEVEL"];if(n.hdcpLevel=f,f){t.maxHdcpLevel=cn[cn.indexOf(f)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case Ie.MoveAllAlternatesMatchingKey:{const c=e.decryptdata;if(c){const u=this.hls.levels;for(let f=u.length;f--;)if(this.variantHasKey(u[f],c)){var s,l;this.log(`Banned key found in level ${f} (${u[f].bitrate}bps) or audio group "${(s=u[f].audioGroups)==null?void 0:s.join(",")}" (${(l=e.frag)==null?void 0:l.type} fragment) ${U(c.keyId||[])}`),u[f].fragmentError++,u[f].loadError++,this.log(`Removing level ${f} with key error (${e.error})`),this.hls.removeLevel(f)}u.length&&(n.resolved=!0)}break}}n.resolved||this.switchLevel(e,i)}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===B.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=Ue(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&(this.log(`Removing level ${i} for ${e.details} ("${n}" not supported)`),this.hls.removeLevel(i))}}}function mt(a){const e={action:Te.DoNothing,flags:Ie.None};return a&&(e.resolved=!0),e}var ft={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class zt{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&&(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&&(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.hls=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;if(i.start<=e&&e<=i.end&&i.loaded)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 m=!this.isTimeBuffered(f.startPTS,f.endPTS,t);return m&&this.removeFragment(c.body),m})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Rt(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),Wt(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=vt(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Rt(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 m=r.start(f)-this.bufferPadding,b=r.end(f)+this.bufferPadding;if(u>=m&&c<=b){i.time.push({startPTS:Math.max(s,r.start(f)),endPTS:Math.min(l,r.end(f))});break}else if(s<b&&l>m){const T=Math.max(s,r.start(f)),R=Math.min(l,r.end(f));R>T&&(i.partial=!0,i.time.push({startPTS:T,endPTS:R}))}else if(l<=m)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&&Wt(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||Wt(t))}getState(e){const t=Rt(e),n=this.fragments[t];return n?n.buffered?Wt(n)?ft.PARTIAL:ft.OK:ft.APPENDING:ft.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=Rt(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=Rt(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=Rt(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=vt(n,i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const t=(e=this.hls)==null||(e=e.latestLevelDetails)==null?void 0:e.partList;t&&t.forEach(n=>n.clearElementaryStreamInfo())}}function Wt(a){var e,t,n;return a.buffered&&!!(a.body.gap||(e=a.range.video)!=null&&e.partial||(t=a.range.audio)!=null&&t.partial||(n=a.range.audiovideo)!=null&&n.partial)}function Rt(a){return`${a.type}_${a.level}_${a.sn}`}function vt(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var bt={cbc:0,ctr:1};class Nt{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 bt.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case bt.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 Zt(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class rn{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],m=c[2],b=c[3],T=new Uint32Array(256);let R=0,ie=0,q=0;for(q=0;q<256;q++)q<128?T[q]=q<<1:T[q]=q<<1^283;for(q=0;q<256;q++){let we=ie^ie<<1^ie<<2^ie<<3^ie<<4;we=we>>>8^we&255^99,e[R]=we,t[we]=R;const ht=T[R],rt=T[ht],Ut=T[rt];let tn=T[we]*257^we*16843008;r[R]=tn<<24|tn>>>8,i[R]=tn<<16|tn>>>16,s[R]=tn<<8|tn>>>24,l[R]=tn,tn=Ut*16843009^rt*65537^ht*257^R*16843008,u[we]=tn<<24|tn>>>8,f[we]=tn<<16|tn>>>16,m[we]=tn<<8|tn>>>24,b[we]=tn,R?(R=ht^T[T[T[Ut^ht]]],ie^=T[T[ie]]):R=ie=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),m=this.sBox,b=this.rcon,T=this.invSubMix,R=T[0],ie=T[1],q=T[2],we=T[3];let ht,rt;for(l=0;l<s;l++){if(l<i){ht=u[l]=t[l];continue}rt=ht,l%i===0?(rt=rt<<8|rt>>>24,rt=m[rt>>>24]<<24|m[rt>>>16&255]<<16|m[rt>>>8&255]<<8|m[rt&255],rt^=b[l/i|0]<<24):i>6&&l%i===4&&(rt=m[rt>>>24]<<24|m[rt>>>16&255]<<16|m[rt>>>8&255]<<8|m[rt&255]),u[l]=ht=(u[l-i]^rt)>>>0}for(c=0;c<s;c++)l=s-c,c&3?rt=u[l]:rt=u[l-4],c<4||l<=4?f[c]=rt:f[c]=R[m[rt>>>24]]^ie[m[rt>>>16&255]]^q[m[rt>>>8&255]]^we[m[rt&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],m=l[3],b=this.uint8ArrayToUint32Array_(n);let T=b[0],R=b[1],ie=b[2],q=b[3];const we=new Int32Array(e),ht=new Int32Array(we.length);let rt,Ut,tn,_n,Yt,un,fn,Xt,An,nr,fr,vr,hr,qn;const mr=this.networkToHostOrderSwap;for(;t<we.length;){for(An=mr(we[t]),nr=mr(we[t+1]),fr=mr(we[t+2]),vr=mr(we[t+3]),Yt=An^i[0],un=vr^i[1],fn=fr^i[2],Xt=nr^i[3],hr=4,qn=1;qn<r;qn++)rt=c[Yt>>>24]^u[un>>16&255]^f[fn>>8&255]^m[Xt&255]^i[hr],Ut=c[un>>>24]^u[fn>>16&255]^f[Xt>>8&255]^m[Yt&255]^i[hr+1],tn=c[fn>>>24]^u[Xt>>16&255]^f[Yt>>8&255]^m[un&255]^i[hr+2],_n=c[Xt>>>24]^u[Yt>>16&255]^f[un>>8&255]^m[fn&255]^i[hr+3],Yt=rt,un=Ut,fn=tn,Xt=_n,hr=hr+4;rt=s[Yt>>>24]<<24^s[un>>16&255]<<16^s[fn>>8&255]<<8^s[Xt&255]^i[hr],Ut=s[un>>>24]<<24^s[fn>>16&255]<<16^s[Xt>>8&255]<<8^s[Yt&255]^i[hr+1],tn=s[fn>>>24]<<24^s[Xt>>16&255]<<16^s[Yt>>8&255]<<8^s[un&255]^i[hr+2],_n=s[Xt>>>24]<<24^s[Yt>>16&255]<<16^s[un>>8&255]<<8^s[fn&255]^i[hr+3],ht[t]=mr(rt^T),ht[t+1]=mr(_n^R),ht[t+2]=mr(tn^ie),ht[t+3]=mr(Ut^q),T=An,R=nr,ie=fr,q=vr,t=t+4}return ht.buffer}}class gn{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=Fn(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Fn(a){switch(a){case bt.cbc:return"AES-CBC";case bt.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const pn=16;class xn{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?Zt(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!==bt.cbc||t.byteLength!==16)return ee.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=Ye(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 rn),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 gn(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Nt(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(ee.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%pn;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(ee.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const On=Math.pow(2,17);class kn{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 Un({type:ae.NETWORK_ERROR,details:B.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(Sn(e));return}else e.gap=!1;const u=this.loader=i?new i(r):new s(r),f=Gn(e);e.loader=u;const m=Bn(r.fragLoadPolicy.default),b={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:On};e.stats=u.stats;const T={onSuccess:(R,ie,q,we)=>{this.resetLoader(e,u);let ht=R.data;q.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ht.slice(0,16)),ht=ht.slice(16)),l({frag:e,part:null,payload:ht,networkDetails:we})},onError:(R,ie,q,we)=>{this.resetLoader(e,u),c(new Un({type:ae.NETWORK_ERROR,details:B.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:q,stats:we}))},onAbort:(R,ie,q)=>{this.resetLoader(e,u),c(new Un({type:ae.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:q,stats:R}))},onTimeout:(R,ie,q)=>{this.resetLoader(e,u),c(new Un({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${b.timeout}ms`),networkDetails:q,stats:R}))}};t&&(T.onProgress=(R,ie,q,we)=>t({frag:e,part:null,payload:q,networkDetails:we})),u.load(f,b,T)})}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(Sn(e,t));return}const u=this.loader=i?new i(r):new s(r),f=Gn(e,t);e.loader=u;const m=Bn(r.fragLoadPolicy.default),b={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:On};t.stats=u.stats,u.load(f,b,{onSuccess:(T,R,ie,q)=>{this.resetLoader(e,u),this.updateStatsFromPart(e,t);const we={frag:e,part:t,payload:T.data,networkDetails:q};n(we),l(we)},onError:(T,R,ie,q)=>{this.resetLoader(e,u),c(new Un({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:x({url:f.url,data:void 0},T),error:new Error(`HTTP Error ${T.code} ${T.text}`),networkDetails:ie,stats:q}))},onAbort:(T,R,ie)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,u),c(new Un({type:ae.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:ie,stats:T}))},onTimeout:(T,R,ie)=>{this.resetLoader(e,u),c(new Un({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${b.timeout}ms`),networkDetails:ie,stats:T}))}})})}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),m=(c-u)*Math.round(n.loaded/u);n.total=n.loaded+m}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(h(r)&&h(i)){var s;let l=r,c=i;if(a.sn==="initSegment"&&Hn((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 Sn(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ae.MEDIA_ERROR,details:B.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new Un(n)}function Hn(a){return a==="AES-128"||a==="AES-256"}class Un extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class tr extends ${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 Wn{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 lr={length:0,start:()=>0,end:()=>0};class Je{static isBuffered(e,t){if(e){const n=Je.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=Je.getBuffered(e);return Je.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=Je.bufferedRanges(e);if(r.length)return Je.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,m)=>f.start-m.start||m.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 m=i.length;if(m){const b=i[m-1].end;e[f].start-b<n?e[f].end>b&&(i[m-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 m=i[f].start,b=i[f].end;if(r===-1&&t>=m&&t<=b&&(r=f),t+n>=m&&t<b)c=m,u=b,s=u-t;else if(t+n<m){l=m;break}}return{len:s,start:c||0,end:u||0,nextStart:l,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||lr}catch(t){return ee.log("failed to get media.buffered",t),lr}}}const Jt=/\{\$([a-zA-Z0-9-_]+)\}/g;function on(a){return Jt.test(a)}function jt(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(Jt,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 mn(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 Kn(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 rr=/^(\d+)x(\d+)$/,Qn=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Vn{constructor(e,t){typeof e=="string"&&(e=Vn.parseAttrList(e,t)),p(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=rr.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(Qn.lastIndex=0;(n=Qn.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=jt(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":ee.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=l}return r}}const Sr="com.apple.hls.interstitial";function Ur(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Nr(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class Jr{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]){ee.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=p(new Vn({}),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"]);h(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?(ee.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(h(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===Sr}get isValid(){return!!this.id&&!this._badValueForSameId&&h(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 Hr=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}hasKey(e){return this.encryptedFragments.some(t=>{let n=t.decryptdata;return n||(t.setKeyFormat(e.keyFormat),n=t.decryptdata),!!n&&e.matches(n)})}get hasProgramDateTime(){return this.fragments.length?h(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Hr}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(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.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 yr(a,e){return a.length===e.length?!a.some((t,n)=>t!==e[n]):!1}function Cr(a,e){return!a&&!e?!0:!a||!e?!1:yr(a,e)}function Fr(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function br(a){switch(a){case"AES-128":case"AES-256":return bt.cbc;case"AES-256-CTR":return bt.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function Er(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function xr(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function Xn(a){const e=xr(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function ur(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 cr(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=Er(s)):t=Xn(s)}}return t}const dr=typeof self!="undefined"?self:void 0;var or={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},_r={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Yr(a){switch(a){case _r.FAIRPLAY:return or.FAIRPLAY;case _r.PLAYREADY:return or.PLAYREADY;case _r.WIDEVINE:return or.WIDEVINE;case _r.CLEARKEY:return or.CLEARKEY}}function jn(a){switch(a){case or.FAIRPLAY:return _r.FAIRPLAY;case or.PLAYREADY:return _r.PLAYREADY;case or.WIDEVINE:return _r.WIDEVINE;case or.CLEARKEY:return _r.CLEARKEY}}function ir(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[or.FAIRPLAY,or.WIDEVINE,or.PLAYREADY,or.CLEARKEY].filter(r=>!!e[r]):[];return!n[or.WIDEVINE]&&t&&n.push(or.WIDEVINE),n}const sr=function(a){return dr!=null&&(a=dr.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Dr(a,e,t,n){let r;switch(a){case or.FAIRPLAY:r=["cenc","sinf"];break;case or.WIDEVINE:case or.PLAYREADY:r=["cenc"];break;case or.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return Ir(r,e,t,n)}function Ir(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 Zr(a){var e;return!!a&&(a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function oi(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=Er(l).subarray(0,16);return ur(c),c}}return null}let ni={};class qr{static clearKeyUriToKeyIdMap(){ni={}}constructor(e,t,n,r=[1],i=null,s){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&&!Fr(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(C(s)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&yr(e.keyFormatVersions,this.keyFormatVersions)&&Cr(e.iv,this.iv)&&Cr(e.keyId,this.keyId)}isSupported(){if(this.method){if(Fr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case _r.FAIRPLAY:case _r.WIDEVINE:case _r.PLAYREADY:case _r.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(Fr(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(ee.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=Vr(e);return new qr(this.method,this.uri,"identity",this.keyFormatVersions,n)}if(this.pssh&&this.keyId)return this;const t=cr(this.uri);if(t)switch(this.keyFormat){case _r.WIDEVINE:if(this.pssh=t,!this.keyId&&t.length>=22){const n=t.length-22;this.keyId=t.subarray(n,n+16)}break;case _r.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=st(n,null,t),this.keyId=oi(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=ni[this.uri];if(!n){const r=Object.keys(ni).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),ni[this.uri]=n}this.keyId=n}return this}}function Vr(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const qi=/#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,$i=/#EXT-X-MEDIA:(.*)/g,Ri=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ni=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),ji=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 ui{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 y.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Ri.test(e)}static parseMasterPlaylist(e,t){const n=on(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];qi.lastIndex=0;let s;for(;(s=qi.exec(e))!=null;)if(s[1]){var l;const u=new Vn(s[1],r),f=jt(r,s[2]),m={attrs:u,bitrate:u.decimalInteger("BANDWIDTH")||u.decimalInteger("AVERAGE-BANDWIDTH"),name:u.NAME,url:ui.resolve(f,t)},b=u.decimalResolution("RESOLUTION");b&&(m.width=b.width,m.height=b.height),es(u.CODECS,m);const T=u["SUPPLEMENTAL-CODECS"];T&&(m.supplemental={},es(T,m.supplemental)),(l=m.unknownCodecs)!=null&&l.length||i.push(m),r.levels.push(m)}else if(s[3]){const u=s[3],f=s[4];switch(u){case"SESSION-DATA":{const m=new Vn(f,r),b=m["DATA-ID"];b&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[b]=m);break}case"SESSION-KEY":{const m=Wi(f,t,r);m.encrypted&&m.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(m)):ee.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${f}"`);break}case"DEFINE":{{const m=new Vn(f,r);mn(r,m,t)}break}case"CONTENT-STEERING":{const m=new Vn(f,r);r.contentSteering={uri:ui.resolve(m["SERVER-URI"],t),pathwayId:m["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Ii(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($i.lastIndex=0;(r=$i.exec(e))!==null;){const u=new Vn(r[1],n),f=u.TYPE;if(f){const m=l[f],b=i[f]||[];i[f]=b;const T=u.LANGUAGE,R=u["ASSOC-LANGUAGE"],ie=u.CHANNELS,q=u.CHARACTERISTICS,we=u["INSTREAM-ID"],ht={attrs:u,bitrate:0,id:c++,groupId:u["GROUP-ID"]||"",name:u.NAME||T||"",type:f,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:T,url:u.URI?ui.resolve(u.URI,t):""};if(R&&(ht.assocLang=R),ie&&(ht.channels=ie),q&&(ht.characteristics=q),we&&(ht.instreamId=we),m!=null&&m.length){const rt=ui.findGroup(m,ht.groupId)||m[0];Mi(ht,rt,"audioCodec"),Mi(ht,rt,"textCodec")}b.push(ht)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var l;const c={url:t},u=new jr(t),f=u.fragments,m=[];let b=null,T=0,R=0,ie=0,q=0,we=0,ht=null,rt=new tt(r,c),Ut,tn,_n,Yt=-1,un=!1,fn=null,Xt;if(Ni.lastIndex=0,u.m3u8=e,u.hasVariableRefs=on(e),((l=Ni.exec(e))==null?void 0:l[0])!=="#EXTM3U")return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;(Ut=Ni.exec(e))!==null;){un&&(un=!1,rt=new tt(r,c),rt.playlistOffset=ie,rt.setStart(ie),rt.sn=T,rt.cc=q,we&&(rt.bitrate=we),rt.level=n,b&&(rt.initSegment=b,b.rawProgramDateTime&&(rt.rawProgramDateTime=b.rawProgramDateTime,b.rawProgramDateTime=null),fn&&(rt.setByteRange(fn),fn=null)));const vr=Ut[1];if(vr){rt.duration=parseFloat(vr);const hr=(" "+Ut[2]).slice(1);rt.title=hr||null,rt.tagList.push(hr?["INF",vr,hr]:["INF",vr])}else if(Ut[3]){if(h(rt.duration)){rt.playlistOffset=ie,rt.setStart(ie),_n&&ts(rt,_n,u),rt.sn=T,rt.level=n,rt.cc=q,f.push(rt);const hr=(" "+Ut[3]).slice(1);rt.relurl=jt(u,hr),Oi(rt,ht,m),ht=rt,ie+=rt.duration,T++,R=0,un=!0}}else{if(Ut=Ut[0].match(ji),!Ut){ee.warn("No matches on slow regex match for level playlist!");continue}for(tn=1;tn<Ut.length&&Ut[tn]===void 0;tn++);const hr=(" "+Ut[tn]).slice(1),qn=(" "+Ut[tn+1]).slice(1),mr=Ut[tn+2]?(" "+Ut[tn+2]).slice(1):null;switch(hr){case"BYTERANGE":ht?rt.setByteRange(qn,ht):rt.setByteRange(qn);break;case"PROGRAM-DATE-TIME":rt.rawProgramDateTime=qn,rt.tagList.push(["PROGRAM-DATE-TIME",qn]),Yt===-1&&(Yt=f.length);break;case"PLAYLIST-TYPE":u.type&&yi(u,hr,Ut),u.type=qn.toUpperCase();break;case"MEDIA-SEQUENCE":u.startSN!==0?yi(u,hr,Ut):f.length>0&&Fi(u,hr,Ut),T=u.startSN=parseInt(qn);break;case"SKIP":{u.skippedSegments&&yi(u,hr,Ut);const ar=new Vn(qn,u),gr=ar.decimalInteger("SKIPPED-SEGMENTS");if(h(gr)){u.skippedSegments+=gr;for(let $n=gr;$n--;)f.push(null);T+=gr}const wr=ar.enumeratedString("RECENTLY-REMOVED-DATERANGES");wr&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(wr.split(" ")));break}case"TARGETDURATION":u.targetduration!==0&&yi(u,hr,Ut),u.targetduration=Math.max(parseInt(qn),1);break;case"VERSION":u.version!==null&&yi(u,hr,Ut),u.version=parseInt(qn);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||yi(u,hr,Ut),u.live=!1;break;case"#":(qn||mr)&&rt.tagList.push(mr?[qn,mr]:[qn]);break;case"DISCONTINUITY":q++,rt.tagList.push(["DIS"]);break;case"GAP":rt.gap=!0,rt.tagList.push([hr]);break;case"BITRATE":rt.tagList.push([hr,qn]),we=parseInt(qn)*1e3,h(we)?rt.bitrate=we:we=0;break;case"DATERANGE":{const ar=new Vn(qn,u),gr=new Jr(ar,u.dateRanges[ar.ID],u.dateRangeTagCount);u.dateRangeTagCount++,gr.isValid||u.skippedSegments?u.dateRanges[gr.id]=gr:ee.warn(`Ignoring invalid DATERANGE tag: "${qn}"`),rt.tagList.push(["EXT-X-DATERANGE",qn]);break}case"DEFINE":{{const ar=new Vn(qn,u);"IMPORT"in ar?Kn(u,ar,s):mn(u,ar,t)}break}case"DISCONTINUITY-SEQUENCE":u.startCC!==0?yi(u,hr,Ut):f.length>0&&Fi(u,hr,Ut),u.startCC=q=parseInt(qn);break;case"KEY":{const ar=Wi(qn,t,u);if(ar.isSupported()){if(ar.method==="NONE"){_n=void 0;break}_n||(_n={});const gr=_n[ar.keyFormat];gr!=null&&gr.matches(ar)||(gr&&(_n=p({},_n)),_n[ar.keyFormat]=ar)}else ee.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${qn}"`);break}case"START":u.startTimeOffset=Ii(qn);break;case"MAP":{const ar=new Vn(qn,u);if(rt.duration){const gr=new tt(r,c);ds(gr,ar,n,_n),b=gr,rt.initSegment=b,b.rawProgramDateTime&&!rt.rawProgramDateTime&&(rt.rawProgramDateTime=b.rawProgramDateTime)}else{const gr=rt.byteRangeEndOffset;if(gr){const wr=rt.byteRangeStartOffset;fn=`${gr-wr}@${wr}`}else fn=null;ds(rt,ar,n,_n),b=rt,un=!0}b.cc=q;break}case"SERVER-CONTROL":{Xt&&yi(u,hr,Ut),Xt=new Vn(qn),u.canBlockReload=Xt.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Xt.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Xt.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Xt.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Xt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{u.partTarget&&yi(u,hr,Ut);const ar=new Vn(qn);u.partTarget=ar.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ar=u.partList;ar||(ar=u.partList=[]);const gr=R>0?ar[ar.length-1]:void 0,wr=R++,$n=new Vn(qn,u),er=new wt($n,rt,c,wr,gr);ar.push(er),rt.duration+=er.duration;break}case"PRELOAD-HINT":{const ar=new Vn(qn,u);u.preloadHint=ar;break}case"RENDITION-REPORT":{const ar=new Vn(qn,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(ar);break}default:ee.warn(`line parsed but not handled: ${Ut}`);break}}}ht&&!ht.relurl?(f.pop(),ie-=ht.duration,u.partList&&(u.fragmentHint=ht)):u.partList&&(Oi(rt,ht,m),rt.cc=q,u.fragmentHint=rt,_n&&ts(rt,_n,u)),u.targetduration||(u.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const An=f.length,nr=f[0],fr=f[An-1];if(ie+=u.skippedSegments*u.targetduration,ie>0&&An&&fr){u.averagetargetduration=ie/An;const vr=fr.sn;u.endSN=vr!=="initSegment"?vr:0,u.live||(fr.endList=!0),Yt>0&&(vs(f,Yt),nr&&m.unshift(nr))}return u.fragmentHint&&(ie+=u.fragmentHint.duration),u.totalduration=ie,m.length&&u.dateRangeTagCount&&nr&&Vi(m,u),u.endCC=q,u}}function Vi(a,e){let t=a.length;if(!t)if(e.hasProgramDateTime){const l=e.fragments[e.fragments.length-1];a.push(l),t++}else return;const n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let l=i.length;l--;){const c=e.dateRanges[i[l]],u=c.startDate.getTime();c.tagAnchor=n.ref;for(let f=t;f--;){var s;if(((s=a[f])==null?void 0:s.sn)<e.startSN)break;const m=Si(e,u,a,f,r);if(m!==-1){c.tagAnchor=e.fragments[m].ref;break}}}}function Si(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;if(u<0)return-1;const f=a.fragments;if(f.length>t.length){const b=(t[n+1]||f[f.length-1]).sn-a.startSN;for(let T=b;T>u;T--){const R=f[T].programDateTime;if(e>=R&&e<R+f[T].duration*1e3)return T}}return u}}}return-1}function Wi(a,e,t){var n,r;const i=new Vn(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&&ee.error(`Invalid IV: ${i.IV}`);const m=l?ui.resolve(l,e):"",b=(u||"1").split("/").map(Number).filter(Number.isFinite);return new qr(s,m,f,b,c,i.KEYID)}function Ii(a){const t=new Vn(a).decimalFloatingPoint("TIME-OFFSET");return h(t)?t:null}function es(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Et(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 Mi(a,e,t){const n=e[t];n&&(a[t]=n)}function vs(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 Oi(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function ds(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 ts(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 yi(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 ii(a,e){const t=e.startPTS;if(h(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 ti(a,e,t,n,r,i,s){n-t<=0&&(s.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let c=t,u=n;const f=e.startPTS,m=e.endPTS;if(h(f)){const we=Math.abs(f-t);a&&we>a.totalduration?s.warn(`media timestamps and playlist times differ by ${we}s for level ${e.level} ${a.url}`):h(e.deltaPTS)?e.deltaPTS=Math.max(we,e.deltaPTS):e.deltaPTS=we,c=Math.max(t,f),t=Math.min(t,f),r=e.startDTS!==void 0?Math.min(r,e.startDTS):r,u=Math.min(n,m),n=Math.max(n,m),i=e.endDTS!==void 0?Math.max(i,e.endDTS):i}const b=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=c,e.startDTS=r,e.endPTS=n,e.minEndPTS=u,e.endDTS=i;const T=e.sn;if(!a||T<a.startSN||T>a.endSN)return 0;let R;const ie=T-a.startSN,q=a.fragments;for(q[ie]=e,R=ie;R>0;R--)ii(q[R],q[R-1]);for(R=ie;R<q.length-1;R++)ii(q[R],q[R+1]);return a.fragmentHint&&ii(q[q.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,b}function Tr(a,e,t){if(a===e)return;let n=null;const r=a.fragments;for(let f=r.length-1;f>=0;f--){const m=r[f].initSegment;if(m){n=m;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let i;Wr(a,e,(f,m,b,T)=>{if((!e.startCC||e.skippedSegments)&&m.cc!==f.cc){const R=f.cc-m.cc;for(let ie=b;ie<T.length;ie++)T[ie].cc+=R;e.endCC=T[T.length-1].cc}h(f.startPTS)&&h(f.endPTS)&&(m.setStart(m.startPTS=f.startPTS),m.startDTS=f.startDTS,m.maxStartPTS=f.maxStartPTS,m.endPTS=f.endPTS,m.endDTS=f.endDTS,m.minEndPTS=f.minEndPTS,m.setDuration(f.endPTS-f.startPTS),m.duration&&(i=m),e.PTSKnown=e.alignedSliding=!0),f.hasStreams&&(m.elementaryStreams=f.elementaryStreams),m.loader=f.loader,f.hasStats&&(m.stats=f.stats),f.initSegment&&(m.initSegment=f.initSegment,n=f.initSegment)});const s=e.fragments,l=e.fragmentHint?s.concat(e.fragmentHint):s;if(n&&l.forEach(f=>{var m;f&&(!f.initSegment||f.initSegment.relurl===((m=n)==null?void 0:m.relurl))&&(f.initSegment=n)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(f=>!f),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let f=e.skippedSegments;f--;)s.shift();e.startSN=s[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=Ar(a.dateRanges,e,t));const f=a.fragments.filter(m=>m.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let m=1;m<l.length;m++)l[m].programDateTime===null&&Oi(l[m],l[m-1],f);Vi(f,e)}e.endCC=s[s.length-1].cc}if(!e.startCC){var c;const f=Ai(a,e.startSN-1);e.startCC=(c=f==null?void 0:f.cc)!=null?c:s[0].cc}$r(a.partList,e.partList,(f,m)=>{m.elementaryStreams=f.elementaryStreams,m.stats=f.stats}),i?ti(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,t):Xr(a,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const u=e.advancedDateTime;if(e.advanced&&u){const f=e.edge;e.driftStart||(e.driftStartTime=u,e.driftStart=f),e.driftEndTime=u,e.driftEnd=f}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function Ar(a,e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=e,i=p({},a);r&&r.forEach(c=>{delete i[c]});const l=Object.keys(i).length;return l?(Object.keys(n).forEach(c=>{const u=i[c],f=new Jr(n[c].attr,u);f.isValid?(i[c]=f,u||(f.tagOrder+=l)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Qt(n[c].attr)}"`)}),i):n}function $r(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 Wr(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 m=l[u];if(n&&!m&&f&&(m=e.fragments[u]=f),f&&m){t(f,m,u,l);const b=f.relurl,T=m.relurl;if(b&&Ti(b,T)){e.playlistParsingError=Gr(`media sequence mismatch ${m.sn}:`,a,e,f,m);return}else if(f.cc!==m.cc){e.playlistParsingError=Gr(`discontinuity sequence mismatch (${f.cc}!=${m.cc})`,a,e,f,m);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 Xr(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;mi(e,s)}function mi(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 gi(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 Ai(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 ei(a,e,t){return a?fi(a.partList,e,t):null}function fi(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 Ci(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 Ti(a,e){return a!==e&&e?fs(a)!==fs(e):!1}function fs(a){return a.replace(/\?[^?]*$/,"")}function Gi(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 Qr(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function Or(a,e){const t=a.start+e;a.startPTS=t,a.setStart(t),a.endPTS=t+a.duration}function zr(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)Or(t[n],a);e.fragmentHint&&Or(e.fragmentHint,a),e.alignedSliding=!0}function hi(a,e){a&&(si(e,a),e.alignedSliding||_i(e,a),!e.alignedSliding&&!e.skippedSegments&&Xr(a,e,!1))}function si(a,e){if(!Qr(e,a))return;const t=Math.min(e.endCC,a.endCC),n=Gi(e.fragments,t),r=Gi(a.fragments,t);if(!n||!r)return;ee.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;zr(i,a)}function _i(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=Gi(n,s),i=Gi(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Gi(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);zr(u,a)}function ai(a,e,t){ci(a,e,t),a.addEventListener(e,t)}function ci(a,e,t){a.removeEventListener(e,t)}const Ts={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}},bn={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 Bi extends tr{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=bn.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,m=c?c.currentTime:0,b=Je.bufferInfo(u||c,m,s.maxBufferHole),T=!b.len;if(this.log(`Media seeking to ${h(m)?m.toFixed(3):m}, state: ${f}, ${T?"out of":"in"} buffer`),this.state===bn.ENDED)this.resetLoadingState();else if(l){const R=s.maxFragLookUpTolerance,ie=l.start-R,q=l.start+l.duration+R;if(T||q<b.start||ie>b.end){const we=m>q;(m<ie||we)&&(we&&l.loader&&(this.log(`Cancelling fragment load for seek (sn: ${l.sn})`),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(c){this.fragmentTracker.removeFragmentsInRange(m,1/0,this.playlistType,!0);const R=this.lastCurrentTime;if(m>R&&(this.lastCurrentTime=m),!this.loadingParts){const ie=Math.max(b.end,m),q=this.shouldLoadParts(this.getLevelDetails(),ie);q&&(this.log(`LL-Part loading ON after seeking to ${m.toFixed(2)} with buffer @${ie.toFixed(2)}`),this.loadingParts=q)}}this.hls.hasEnoughToStart||(this.log(`Setting ${T?"startPosition":"nextLoadPosition"} to ${m} for seek without enough to start`),this.nextLoadPosition=m,T&&(this.startPosition=m)),T&&this.state===bn.IDLE&&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 kn(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new xn(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===bn.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=bn.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.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=Je.bufferedInfo(i,e.start,0));const s=e.nextStart;if(s&&s>r&&s<t.edge||this.media.currentTime<e.start)return!1;const c=t.partList;if(c!=null&&c.length){const f=c[c.length-1];return Je.isBuffered(this.media,f.start+f.duration/2)}const u=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(u)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.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;ai(n,"seeking",this.onMediaSeeking),ai(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===bn.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),ci(r,"seeking",this.onMediaSeeking),ci(r,"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=bn.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===bn.FRAG_LOADING||!this.fragCurrent&&s===bn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=bn.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===bn.STOPPED||this.state===bn.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)===ft.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)===ft.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&&Fr(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,br(l.method)).catch(u=>{throw r.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.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===bn.STOPPED||this.state===bn.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!==bn.STOPPED&&(this.state=bn.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()}unhandledEncryptionError(e,t){var n,r;const i=e.tracks;if(i&&!t.encrypted&&((n=i.audio)!=null&&n.encrypted||(r=i.video)!=null&&r.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(l.message),!s||s.mediaKeys?!1:(this.hls.trigger(d.ERROR,{type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:t}),this.resetTransmuxer(),!0)}return!1}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?Ts.toString(Je.getBuffered(n)):"(detached)"})`),He(e)){var r;if(e.type!==te.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=bn.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=bn.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 Wn(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.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)){if(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=bn.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(b=>{if(!this.fragContextChanged(b.frag))return this.hls.trigger(d.KEY_LOADED,b),this.state===bn.KEY_LOADING&&(this.state=bn.IDLE),b}),this.hls.trigger(d.KEY_LOADING,{frag:e}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else e.encrypted||(l=this.keyLoader.loadClear(e,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(He(e)&&(!c||e.sn!==c.sn)){const b=this.shouldLoadParts(t.details,e.end);b!==this.loadingParts&&(this.log(`LL-Part loading ${b?"ON":"OFF"} loading sn ${c==null?void 0:c.sn}->${e.sn}`),this.loadingParts=b)}if(n=Math.max(e.start,n||0),this.loadingParts&&He(e)){const b=s.partList;if(b&&r){n>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);const T=this.getNextPart(b,e,n);if(T>-1){const R=b[T];e=this.fragCurrent=R.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${R.index} (${T}/${b.length-1}) of ${this.fragInfo(e,!1,R)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=R.start+R.duration,this.state=bn.FRAG_LOADING;let ie;return l?ie=l.then(q=>!q||this.fragContextChanged(q.frag)?null:this.doFragPartsLoad(e,R,t,r)).catch(q=>this.handleFragLoadError(q)):ie=this.doFragPartsLoad(e,R,t,r).catch(q=>this.handleFragLoadError(q)),this.hls.trigger(d.FRAG_LOADING,{frag:e,part:R,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):ie}else if(!e.url||this.loadedEndOfParts(b,n))return Promise.resolve(null)}}if(He(e)&&this.loadingParts){var u;this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(u=s.partList)==null?void 0:u.filter(b=>b.loaded).map(b=>`[${b.start}-${b.end}]`)}`),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.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),h(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=bn.FRAG_LOADING;const f=this.config.progressive;let m;return f&&l?m=l.then(b=>!b||this.fragContextChanged(b.frag)?null:this.fragmentLoader.load(e,r)).catch(b=>this.handleFragLoadError(b)):m=Promise.all([this.fragmentLoader.load(e,f?r:void 0),l]).then(([b])=>(!f&&r&&r(b),b)).catch(b=>this.handleFragLoadError(b)),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")):m}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var l;const c=[],u=(l=n.details)==null?void 0:l.partList,f=m=>{this.fragmentLoader.loadPart(e,m,r).then(b=>{c[m.index]=b;const T=b.part;this.hls.trigger(d.FRAG_LOADED,b);const R=ei(n.details,e.sn,m.index+1)||fi(u,e.sn,m.index+1);if(R)f(R);else return i({frag:e,part:T,partsLoaded:c})}).catch(s)};f(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===B.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===ae.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetFragmentLoading(t.frag)):this.hls.trigger(d.ERROR,t)}else this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==bn.PARSING){!this.fragCurrent&&this.state!==bn.STOPPED&&this.state!==bn.ERROR&&(this.state=bn.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.partList){var n;const i=e.partList[0];if(i.fragment.type===te.SUBTITLE)return!1;const 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?ei(c,i,s):null,f=u?u.fragment:Ai(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){if(this.state!==bn.PARSING)return;const{data1:s,data2:l}=e;let c=s;if(l&&(c=Ye(s,l)),!c.length)return;const u=this.initPTS[t.cc],f=u?-u.baseTime/u.timescale:void 0,m={type:e.type,frag:t,part:n,chunkMeta:r,offset:f,parent:t.type,data:c};if(this.hls.trigger(d.BUFFER_APPENDING,m),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Je.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Je.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(!h(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=Je.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 Je.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=te.MAIN){const n=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,l=i.lowLatencyMode&&!!t.partList;let c=null;if(t.live){const m=i.initialLiveManifestSize;if(r<m)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${m})`),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);const b=this.hls.startPosition,T=this.hls.liveSyncPosition,R=c?(b!==-1&&b>=s?b:T)||c.start:e;this.log(`Setting startPosition to ${R} to match start frag at live edge. mainStart: ${b} liveSyncPosition: ${T} frag.start: ${(u=c)==null?void 0:u.start}`),this.startPosition=this.nextLoadPosition=R}}else e<=s&&(c=n[0]);if(!c){const m=this.loadingParts?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,m,t)}let f=this.filterReplacedPrimary(c,t);if(!f&&c){const m=c.sn-t.startSN;f=this.filterReplacedPrimary(n[m+1]||null,t)}return this.mapToInitFragWhenRequired(f)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===ft.OK||n===ft.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(ns(this.config)){var e;if((e=this.hls.interstitialsManager)==null||(e=e.playingItem)==null?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(ns(this.config)&&e.type!==te.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.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)&&(u.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${u.start}`),r=l),i=f}return r}loadedEndOfParts(e,t){let n;for(let r=e.length;r--;){if(n=e[r],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,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=Nn(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=hn(e,n.cc,n.end),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,m=!!(this.loadingParts&&f!=null&&f.length&&c);m&&!this.bitrateTest&&f[f.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let b;if(e<t){var T;const ie=e<this.lastCurrentTime||e>t-u||(T=this.media)!=null&&T.paused||!this.startFragRequested?0:u;b=Pn(i,s,e,ie)}else b=s[s.length-1];if(b){const R=b.sn-n.startSN,ie=this.fragmentTracker.getState(b);if((ie===ft.OK||ie===ft.PARTIAL&&b.gap)&&(i=b),i&&b.sn===i.sn&&(!m||f[0].fragment.sn>b.sn||!n.live)&&b.level===i.level){const we=s[R+1];b.sn<l&&this.fragmentTracker.getState(we)!==ft.OK?b=we:b=null}}return b}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&&h(i);if(s||!l&&!i){hi(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&&h(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&&He(e)&&e.stats.aborted&&(this.log(`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!==bn.FRAG_LOADING_WAITING_RETRY)&&(this.state=bn.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const we=this.getCurrentContext(t.chunkMeta);we&&(t.frag=we.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=t.details===B.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const l=t.errorAction;if(!l){this.state=bn.ERROR;return}const{action:c,flags:u,retryCount:f=0,retryConfig:m}=l,b=!!m,T=b&&c===Te.RetryRequest,R=b&&!l.resolved&&u===Ie.MoveAllAlternatesMatchingHost,ie=(n=this.hls.latestLevelDetails)==null?void 0:n.live;if(!T&&R&&He(r)&&!r.endList&&ie)this.resetFragmentErrors(e),this.treatAsGap(r),l.resolved=!0;else if((T||R)&&f<m.maxNumRetry){var q;const we=Me((q=t.response)==null?void 0:q.code),ht=Mn(m,f);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+ht,this.state=bn.FRAG_LOADING_WAITING_RETRY,l.resolved=!0,we){this.log("Waiting for connection (offline)"),this.retryDate=1/0,t.reason="offline";return}this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${m.maxNumRetry} in ${ht}ms`)}else if(m)if(this.resetFragmentErrors(e),f<m.maxNumRetry)!s&&c!==Te.RemoveAlternatePermanently&&(l.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${f})`);return}else c===Te.SendAlternateToPenaltyBox?this.state=bn.WAITING_LEVEL:this.state=bn.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!Me(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=bn.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===bn.PARSING||this.state===bn.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 (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===te.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==bn.STOPPED&&(this.state=bn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Je.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===bn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==bn.STOPPED&&(this.state=bn.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=this.levelLastLoaded,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.log(`Loading context changed while buffering sn ${e.sn} of ${this.playlistLabel()} ${e.level===-1?"<removed>":e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),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 m=f.endPTS-f.startPTS;if(m<=0)return this.warn(`Could not parse fragment ${e.sn} ${u} duration reliably (${m})`),c||!1;const b=r?0:ti(i,e,f.startPTS,f.endPTS,f.startDTS,f.endDTS,this);return this.hls.trigger(d.LEVEL_PTS_UPDATED,{details:i,level:n,drift:b,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:ae.MEDIA_ERROR,details:B.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=bn.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===te.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.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function ns(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=ea(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function ea(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 Us={exports:{}},Zs;function ta(){return Zs||(Zs=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,m,b){if(typeof f!="function")throw new TypeError("The listener must be a function");var T=new r(f,m||c,b),R=t?t+u:u;return c._events[R]?c._events[R].fn?c._events[R]=[c._events[R],T]:c._events[R].push(T):(c._events[R]=T,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,m;if(this._eventsCount===0)return u;for(m in f=this._events)e.call(f,m)&&u.push(t?m.slice(1):m);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=t?t+u:u,m=this._events[f];if(!m)return[];if(m.fn)return[m.fn];for(var b=0,T=m.length,R=new Array(T);b<T;b++)R[b]=m[b].fn;return R},l.prototype.listenerCount=function(u){var f=t?t+u:u,m=this._events[f];return m?m.fn?1:m.length:0},l.prototype.emit=function(u,f,m,b,T,R){var ie=t?t+u:u;if(!this._events[ie])return!1;var q=this._events[ie],we=arguments.length,ht,rt;if(q.fn){switch(q.once&&this.removeListener(u,q.fn,void 0,!0),we){case 1:return q.fn.call(q.context),!0;case 2:return q.fn.call(q.context,f),!0;case 3:return q.fn.call(q.context,f,m),!0;case 4:return q.fn.call(q.context,f,m,b),!0;case 5:return q.fn.call(q.context,f,m,b,T),!0;case 6:return q.fn.call(q.context,f,m,b,T,R),!0}for(rt=1,ht=new Array(we-1);rt<we;rt++)ht[rt-1]=arguments[rt];q.fn.apply(q.context,ht)}else{var Ut=q.length,tn;for(rt=0;rt<Ut;rt++)switch(q[rt].once&&this.removeListener(u,q[rt].fn,void 0,!0),we){case 1:q[rt].fn.call(q[rt].context);break;case 2:q[rt].fn.call(q[rt].context,f);break;case 3:q[rt].fn.call(q[rt].context,f,m);break;case 4:q[rt].fn.call(q[rt].context,f,m,b);break;default:if(!ht)for(tn=1,ht=new Array(we-1);tn<we;tn++)ht[tn-1]=arguments[tn];q[rt].fn.apply(q[rt].context,ht)}}return!0},l.prototype.on=function(u,f,m){return i(this,u,f,m,!1)},l.prototype.once=function(u,f,m){return i(this,u,f,m,!0)},l.prototype.removeListener=function(u,f,m,b){var T=t?t+u:u;if(!this._events[T])return this;if(!f)return s(this,T),this;var R=this._events[T];if(R.fn)R.fn===f&&(!b||R.once)&&(!m||R.context===m)&&s(this,T);else{for(var ie=0,q=[],we=R.length;ie<we;ie++)(R[ie].fn!==f||b&&!R[ie].once||m&&R[ie].context!==m)&&q.push(R[ie]);q.length?this._events[T]=q.length===1?q[0]:q:s(this,T)}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}(Us)),Us.exports}var Sa=ta(),Ks=P(Sa);const ys="1.6.11",is={};function Ds(){return typeof __HLS_WORKER_BUNDLE__=="function"}function zs(){const a=is[ys];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 is[ys]=r,r}function js(a){const e=is[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 is[a]=r,r}function na(a){const e=is[a||ys];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete is[a||ys],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Vs(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 Rs(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 _s(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 Es(a,e){const t=e;let n=0;for(;Rs(a,e);){n+=10;const r=_s(a,e+6);n+=r,Vs(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function ra(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 T=new Error(`invalid ADTS sampling index:${s}`);a.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!0,error:T,reason:T.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 m=s;(l===5||l===29)&&(m-=3);const b=[l<<3|(m&14)>>1,(m&1)<<7|c<<3];return ee.log(`manifest codec:${n}, parsed codec:${u}, channels:${c}, rate:${f} (ADTS object type:${l} sampling index:${s})`),{config:b,samplerate:f,channelCount:c,codec:u,parsedCodec:u,manifestCodec:n}}function Is(a,e){return a[e]===255&&(a[e+1]&246)===240}function Ws(a,e){return a[e+1]&1?7:9}function bs(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function ia(a,e){return e+5<a.length}function Ls(a,e){return e+1<a.length&&Is(a,e)}function Rr(a,e){return ia(a,e)&&Is(a,e)&&bs(a,e)<=a.length-e}function kr(a,e){if(Ls(a,e)){const t=Ws(a,e);if(e+t>=a.length)return!1;const n=bs(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||Ls(a,r)}return!1}function li(a,e,t,n,r){if(!a.samplerate){const i=ra(e,t,n,r);if(!i)return;p(a,i)}}function xi(a){return 1024*9e4/a}function di(a,e){const t=Ws(a,e);if(e+t<=a.length){const n=bs(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function ss(a,e,t,n,r){const i=xi(a.samplerate),s=n+r*i,l=di(e,t);let c;if(l){const{frameLength:m,headerLength:b}=l,T=b+m,R=Math.max(0,t+T-e.length);R?(c=new Uint8Array(T-b),c.set(e.subarray(t+b,e.length),0)):c=e.subarray(t+b,t+T);const ie={unit:c,pts:s};return R||a.samples.push(ie),{sample:ie,length:T,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 as(a,e){return Rs(a,e)&&_s(a,e+6)+10<=a.length-e}function os(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function ls(a,e=0,t=1/0){return Gs(a,e,t,Uint8Array)}function Gs(a,e,t,n){const r=Ll(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=kl(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 Ll(a){return a instanceof ArrayBuffer?a:a.buffer}function kl(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function Pl(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=ot(ls(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=ot(ls(a.data,3+n,s));let c;return r==="-->"?c=ot(ls(a.data,4+n+s)):c=os(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=l,e.data=c,e}function Nl(a){if(a.size<2)return;const e=ot(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function Ml(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=ot(a.data.subarray(t),!0);t+=n.length+1;const r=ot(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ot(a.data.subarray(1));return{key:a.type,info:"",data:e}}function Ol(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=ot(a.data.subarray(t),!0);t+=n.length+1;const r=ot(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ot(a.data);return{key:a.type,info:"",data:e}}function Fl(a){return a.type==="PRIV"?Nl(a):a.type[0]==="W"?Ol(a):a.type==="APIC"?Pl(a):Ml(a)}function Bl(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=_s(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const sa=10,Ul=10;function oo(a){let e=0;const t=[];for(;Rs(a,e);){const n=_s(a,e+6);a[e+5]>>6&1&&(e+=sa),e+=sa;const r=e+n;for(;e+Ul<r;){const i=Bl(a.subarray(e)),s=Fl(i);s&&t.push(s),e+=i.size+sa}Vs(a,e)&&(e+=sa)}return t}function lo(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function Zl(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 Aa(a){const e=oo(a);for(let t=0;t<e.length;t++){const n=e[t];if(lo(n))return Zl(n)}}let Di=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 Hi(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class wa{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=Ye(this.cachedData,e),this.cachedData=null);let n=Es(e,0),r=n?n.length:0,i;const s=this._audioTrack,l=this._id3Track,c=n?Aa(n):void 0,u=e.length;for((this.basePTS===null||this.frameIndex===0&&h(c))&&(this.basePTS=Kl(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:Di.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 as(e,r)?(n=Es(e,r),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Di.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=Ye(this.cachedData,f):this.cachedData=f}}return{audioTrack:s,videoTrack:Hi(),id3Track:l,textTrack:Hi()}}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:Hi(),id3Track:this._id3Track,textTrack:Hi()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const Kl=(a,e,t)=>{if(h(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let aa=null;const zl=[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],jl=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Vl=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Wl=[0,1,1,4];function uo(a,e,t,n,r){if(t+24>e.length)return;const i=co(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 co(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=zl[c*14+r-1]*1e3,m=jl[(t===3?0:t===2?1:2)*3+i],b=l===3?1:2,T=Vl[t][n],R=Wl[n],ie=T*8*R,q=Math.floor(T*u/m+s)*R;if(aa===null){const rt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);aa=rt?parseInt(rt[1]):0}return!!aa&&aa<=87&&n===2&&u>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:m,channelCount:b,frameLength:q,samplesPerFrame:ie}}}function Ca(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function fo(a,e){return e+1<a.length&&Ca(a,e)}function Gl(a,e){return Ca(a,e)&&4<=a.length-e}function ho(a,e){if(e+1<a.length&&Ca(a,e)){const n=co(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||fo(a,i)}return!1}class Hl extends wa{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=Es(e,0);let r=(n==null?void 0:n.length)||0;if(ho(e,r))return!1;for(let i=e.length;r<i;r++)if(kr(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Rr(e,t)}appendFrame(e,t,n){li(e,this.observer,t,n,e.manifestCodec);const r=ss(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const po=(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 Yl extends wa{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=mo(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=Es(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&Aa(t)!==void 0&&po(e,n)<16}}function mo(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 m=e[t+6]>>5;let b=0;m===2?b+=2:(m&1&&m!==1&&(b+=2),m&4&&(b+=2));const T=(e[t+6]<<8|e[t+7])>>12-b&1,ie=[2,1,2,3,3,4,4,5][m]+T,q=e[t+5]>>3,we=e[t+5]&7,ht=new Uint8Array([i<<6|q<<1|we>>2,(we&3)<<6|m<<3|T<<2|c>>4,c<<4&224]),rt=1536/l*9e4,Ut=n+r*rt,tn=e.subarray(t,t+f);return a.config=ht,a.channelCount=ie,a.samplerate=l,a.samples.push({unit:tn,pts:Ut}),f}class Xl extends wa{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=Es(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&Aa(t)!==void 0&&po(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(ho(e,n))return ee.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Gl(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return uo(e,t,n,this.basePTS,this.frameIndex)}}const Ql=/\/emsg[-/]ID3/i;class Jl{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=Hi("video",1),s=this.audioTrack=Hi("audio",1),l=this.txtTrack=Hi("text",1);if(this.id3Track=Hi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const c=Qe(e);if(c.video){const{id:u,timescale:f,codec:m,supplemental:b}=c.video;i.id=u,i.timescale=l.timescale=f,i.codec=m,i.supplemental=b}if(c.audio){const{id:u,timescale:f,codec:m}=c.audio;s.id=u,s.timescale=f,s.codec=m}l.id=en.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return Ae(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Ye(this.remainderData,e));const l=$e(n);this.remainderData=l.remainder,r.samples=l.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=lt(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=lt(e,t),{videoTrack:t,audioTrack:Hi(),id3Track:r,textTrack:Hi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=V(e.samples,["emsg"]);r&&r.forEach(i=>{const s=De(i);if(Ql.test(s.schemeIdUri)){const l=go(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:Di.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=go(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Di.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 go(a,e){return h(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class ql{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new xn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,bt.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)}).catch(n)}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=Le(i.data),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)}).catch(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 vo{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,m,b=-1,T=0;for(i===-1&&(b=0,T=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,b>=0){const R={data:t.subarray(b,f),type:T};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=Ye(R.data,t.subarray(0,f)),R.state=0))}c<r?(m=this.getNALuType(t,c),b=c,T=m,i=0):i=-1}else i=0}if(b>=0&&i>=0){const R={data:t.subarray(b,r),type:T,state:i};l.push(R)}if(l.length===0){const R=this.getLastNalUnit(e.samples);R&&(R.data=Ye(R.data,t))}return e.naluState=i,l}}class Hs{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&&ee.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 $l extends vo{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,m;switch(u.type){case 1:{let ie=!1;l=!0;const q=u.data;if(c&&q.length>4){const we=this.readSliceType(q);(we===2||we===4||we===7||we===9)&&(ie=!0)}if(ie){var b;(b=s)!=null&&b.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=ie;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,N(u.data,1,n.pts,t.samples);break}case 7:{var T,R;l=!0,c=!0;const ie=u.data,q=this.readSPS(ie);if(!e.sps||e.width!==q.width||e.height!==q.height||((T=e.pixelRatio)==null?void 0:T[0])!==q.pixelRatio[0]||((R=e.pixelRatio)==null?void 0:R[1])!==q.pixelRatio[1]){e.width=q.width,e.height=q.height,e.pixelRatio=q.pixelRatio,e.sps=[ie];const we=ie.subarray(1,4);let ht="avc1.";for(let rt=0;rt<3;rt++){let Ut=we[rt].toString(16);Ut.length<2&&(Ut="0"+Ut),ht+=Ut}e.codec=ht}break}case 8:l=!0,e.pps=[u.data];break;case 9:l=!0,e.audFound=!0,(m=s)!=null&&m.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 Hs(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 Hs(e);let n=0,r=0,i=0,s=0,l,c,u;const f=t.readUByte.bind(t),m=t.readBits.bind(t),b=t.readUEG.bind(t),T=t.readBoolean.bind(t),R=t.skipBits.bind(t),ie=t.skipEG.bind(t),q=t.skipUEG.bind(t),we=this.skipScalingList.bind(this);f();const ht=f();if(m(5),R(3),f(),q(),ht===100||ht===110||ht===122||ht===244||ht===44||ht===83||ht===86||ht===118||ht===128){const un=b();if(un===3&&R(1),q(),q(),R(1),T())for(c=un!==3?8:12,u=0;u<c;u++)T()&&(u<6?we(16,t):we(64,t))}q();const rt=b();if(rt===0)b();else if(rt===1)for(R(1),ie(),ie(),l=b(),u=0;u<l;u++)ie();q(),R(1);const Ut=b(),tn=b(),_n=m(1);_n===0&&R(1),R(1),T()&&(n=b(),r=b(),i=b(),s=b());let Yt=[1,1];if(T()&&T())switch(f()){case 1:Yt=[1,1];break;case 2:Yt=[12,11];break;case 3:Yt=[10,11];break;case 4:Yt=[16,11];break;case 5:Yt=[40,33];break;case 6:Yt=[24,11];break;case 7:Yt=[20,11];break;case 8:Yt=[32,11];break;case 9:Yt=[80,33];break;case 10:Yt=[18,11];break;case 11:Yt=[15,11];break;case 12:Yt=[64,33];break;case 13:Yt=[160,99];break;case 14:Yt=[4,3];break;case 15:Yt=[3,2];break;case 16:Yt=[2,1];break;case 255:{Yt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((Ut+1)*16-n*2-r*2),height:(2-_n)*(tn+1)*16-(_n?2:4)*(i+s),pixelRatio:Yt}}}class eu extends vo{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,m;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 b;(b=s)!=null&&b.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,N(u.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=p(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 T=this.readSPS(u.data);e.width=T.width,e.height=T.height,e.pixelRatio=T.pixelRatio,e.codec=T.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const R in T.params)e.params[R]=T.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 T=this.readPPS(u.data);for(const R in T)e.params[R]=T[R]}this.pushParameterSet(e.pps,u.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(m=s)!=null&&m.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 Hs(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 Hs(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(),m=t.readUByte(),b=t.readUByte(),T=t.readUByte(),R=t.readUByte(),ie=t.readUByte(),q=t.readUByte(),we=t.readUByte(),ht=[],rt=[];for(let Br=0;Br<n;Br++)ht.push(t.readBoolean()),rt.push(t.readBoolean());if(n>0)for(let Br=n;Br<8;Br++)t.readBits(2);for(let Br=0;Br<n;Br++)ht[Br]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),rt[Br]&&t.readUByte();t.readUEG();const Ut=t.readUEG();Ut==3&&t.skipBits(1);const tn=t.readUEG(),_n=t.readUEG(),Yt=t.readBoolean();let un=0,fn=0,Xt=0,An=0;Yt&&(un+=t.readUEG(),fn+=t.readUEG(),Xt+=t.readUEG(),An+=t.readUEG());const nr=t.readUEG(),fr=t.readUEG(),vr=t.readUEG(),hr=t.readBoolean();for(let Br=hr?0:n;Br<=n;Br++)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 bi=0;bi<4;bi++)for(let Pi=0;Pi<(bi===3?2:6);Pi++)if(!t.readBoolean())t.readUEG();else{const zi=Math.min(64,1<<4+(bi<<1));bi>1&&t.readEG();for(let Bs=0;Bs<zi;Bs++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const ar=t.readUEG();let gr=0;for(let Br=0;Br<ar;Br++){let bi=!1;if(Br!==0&&(bi=t.readBoolean()),bi){Br===ar&&t.readUEG(),t.readBoolean(),t.readUEG();let Pi=0;for(let ws=0;ws<=gr;ws++){const zi=t.readBoolean();let Bs=!1;zi||(Bs=t.readBoolean()),(zi||Bs)&&Pi++}gr=Pi}else{const Pi=t.readUEG(),ws=t.readUEG();gr=Pi+ws;for(let zi=0;zi<Pi;zi++)t.readUEG(),t.readBoolean();for(let zi=0;zi<ws;zi++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Br=t.readUEG();for(let bi=0;bi<Br;bi++){for(let Pi=0;Pi<vr+4;Pi++)t.readBits(1);t.readBits(1)}}let $n=0,er=1,Lr=1,Kr=!0,Pr=1,Mr=0;t.readBoolean(),t.readBoolean();let Ei=!1;if(t.readBoolean()){if(t.readBoolean()){const Cs=t.readUByte(),Sl=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],xa=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Cs>0&&Cs<16?(er=Sl[Cs-1],Lr=xa[Cs-1]):Cs===255&&(er=t.readBits(16),Lr=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(),Ei=t.readBoolean(),Ei&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Pr=t.readBits(32),Mr=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const xa=t.readBoolean(),Al=t.readBoolean();let qs=!1;(xa||Al)&&(qs=t.readBoolean(),qs&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),qs&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let wl=0;wl<=n;wl++){Kr=t.readBoolean();const Pd=Kr||t.readBoolean();let Cl=!1;Pd?t.readEG():Cl=t.readBoolean();const Tl=Cl?1:t.readUEG()+1;if(xa)for(let $s=0;$s<Tl;$s++)t.readUEG(),t.readUEG(),qs&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Al)for(let $s=0;$s<Tl;$s++)t.readUEG(),t.readUEG(),qs&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),$n=t.readUEG())}let ki=tn,Ji=_n;if(Yt){let Br=1,bi=1;Ut===1?Br=bi=2:Ut==2&&(Br=2),ki=tn-Br*fn-Br*un,Ji=_n-bi*An-bi*Xt}const As=r?["A","B","C"][r]:"",kd=l<<24|c<<16|u<<8|f;let so=0;for(let Br=0;Br<32;Br++)so=(so|(kd>>Br&1)<<31-Br)>>>0;let ao=so.toString(16);return s===1&&ao==="2"&&(ao="6"),{codecString:`hvc1.${As}${s}.${ao}.${i?"H":"L"}${we}.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:[m,b,T,R,ie,q],general_level_idc:we,bit_depth:nr+8,bit_depth_luma_minus8:nr,bit_depth_chroma_minus8:fr,min_spatial_segmentation_idc:$n,chroma_format_idc:Ut,frame_rate:{fixed:Kr,fps:Mr/Pr}},width:ki,height:Ji,pixelRatio:[er,Lr]}}readPPS(e){const t=new Hs(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 pi=188;class hs{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=hs.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(pi*5,t-pi)+1,r=0;for(;r<n;){let i=!1,s=-1,l=0;for(let c=r;c<t;c+=pi)if(e[c]===71&&(t-c===pi||e[c+pi]===71)){if(l++,s===-1&&(s=c,s!==0&&(n=Math.min(s+pi*99,e.length-pi)+1)),i||(i=Ta(e,c)===0),i&&l>1&&(s===0&&l>2||c+pi>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:en[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=hs.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=hs.createTrack("audio",r),this._id3Track=hs.createTrack("id3"),this._txtTrack=hs.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,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,m=s.pesData,b=l.pid,T=c.pid,R=l.pesData,ie=c.pesData,q=null,we=this.pmtParsed,ht=this._pmtId,rt=e.length;if(this.remainderData&&(e=Ye(this.remainderData,e),rt=e.length,this.remainderData=null),rt<pi&&!r)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};const Ut=Math.max(0,hs.syncOffset(e));rt-=(rt-Ut)%pi,rt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,rt,e.buffer.byteLength-rt));let tn=0;for(let Yt=Ut;Yt<rt;Yt+=pi)if(e[Yt]===71){const un=!!(e[Yt+1]&64),fn=Ta(e,Yt),Xt=(e[Yt+3]&48)>>4;let An;if(Xt>1){if(An=Yt+5+e[Yt+4],An===Yt+pi)continue}else An=Yt+4;switch(fn){case f:un&&(m&&(i=ks(m,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,u,i,!1)),m={data:[],size:0}),m&&(m.data.push(e.subarray(An,Yt+pi)),m.size+=Yt+pi-An);break;case b:if(un){if(R&&(i=ks(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(An,Yt+pi)),R.size+=Yt+pi-An);break;case T:un&&(ie&&(i=ks(ie,this.logger))&&this.parseID3PES(c,i),ie={data:[],size:0}),ie&&(ie.data.push(e.subarray(An,Yt+pi)),ie.size+=Yt+pi-An);break;case 0:un&&(An+=e[An]+1),ht=this._pmtId=tu(e,An);break;case ht:{un&&(An+=e[An]+1);const nr=nu(e,An,this.typeSupported,n,this.observer,this.logger);f=nr.videoPid,f>0&&(s.pid=f,s.segmentCodec=nr.segmentVideoCodec),b=nr.audioPid,b>0&&(l.pid=b,l.segmentCodec=nr.segmentAudioCodec),T=nr.id3Pid,T>0&&(c.pid=T),q!==null&&!we&&(this.logger.warn(`MPEG-TS PMT found at ${Yt} after unknown PID '${q}'. Backtracking to sync byte @${Ut} to parse all TS packets.`),q=null,Yt=Ut-188),we=this.pmtParsed=!0;break}case 17:case 8191:break;default:q=fn;break}}else tn++;tn>0&&Da(this.observer,new Error(`Found ${tn} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=m,l.pesData=R,c.pesData=ie;const _n={audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};return r&&this.extractRemainingSamples(_n),_n}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=ks(s,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,i,u,!0),n.pesData=null)):n.pesData=s,l&&(u=ks(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=ks(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 ql(this.observer,this.config,t);return this.decrypt(r,i)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new $l:e==="hevc"&&(this.videoParser=new eu))}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 m=r.missing,b=r.sample.unit.byteLength;if(m===-1)i=Ye(r.sample.unit,i);else{const T=b-m;r.sample.unit.set(i.subarray(0,m),T),e.samples.push(r.sample),n=r.missing}}let s,l;for(s=n,l=i.length;s<l-1&&!Ls(i,s);s++);if(s!==n){let m;const b=s<l-1;if(b?m=`AAC PES did not start with ADTS header,offset:${s}`:m="No ADTS header found in AAC PES",Da(this.observer,new Error(m),b,this.logger),!b)return}li(e,this.observer,i,s,this.audioCodec);let c;if(t.pts!==void 0)c=t.pts;else if(r){const m=xi(e.samplerate);c=r.sample.pts+m}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0,f;for(;s<l;)if(f=ss(e,i,s,c,u),s+=f.length,f.missing){this.aacOverFlow=f;break}else for(u++;s<l-1&&!Ls(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(fo(n,s)){const c=uo(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=mo(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=p({},t,{type:this._videoTrack?Di.emsg:Di.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Ta(a,e){return((a[e+1]&31)<<8)+a[e+2]}function tu(a,e){return(a[e+10]&31)<<8|a[e+11]}function nu(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=Ta(a,e),m=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Ra("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){Ra("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){Ra("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&&m>0){let b=e+5,T=m;for(;T>2;){switch(a[b]){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 ie=a[b+1]+2;b+=ie,T-=ie}}break;case 194:case 135:return Da(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+=m+5}return s}function Da(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Ra(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function ks(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]=Ye(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 m=i+9;if(a.size<=m)return null;a.size-=m;const b=new Uint8Array(a.size);for(let T=0,R=c.length;T<R;T++){n=c[T];let ie=n.byteLength;if(m)if(m>ie){m-=ie;continue}else n=n.subarray(m),ie-=m,m=0;b.set(n,t),t+=ie}return r&&(r-=i+3),{data:b,pts:s,dts:l,len:r}}return null}class ru{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 ps=Math.pow(2,32)-1;class sn{static init(){sn.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 sn.types)sn.types.hasOwnProperty(e)&&(sn.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]);sn.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]);sn.STTS=sn.STSC=sn.STCO=i,sn.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),sn.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),sn.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),sn.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]);sn.FTYP=sn.box(sn.types.ftyp,s,c,s,l),sn.DINF=sn.box(sn.types.dinf,sn.box(sn.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 sn.box(sn.types.hdlr,sn.HDLR_TYPES[e])}static mdat(e){return sn.box(sn.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(ps+1)),r=Math.floor(t%(ps+1));return sn.box(sn.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 sn.box(sn.types.mdia,sn.mdhd(e.timescale||0,e.duration||0),sn.hdlr(e.type),sn.minf(e))}static mfhd(e){return sn.box(sn.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"?sn.box(sn.types.minf,sn.box(sn.types.smhd,sn.SMHD),sn.DINF,sn.stbl(e)):sn.box(sn.types.minf,sn.box(sn.types.vmhd,sn.VMHD),sn.DINF,sn.stbl(e))}static moof(e,t,n){return sn.box(sn.types.moof,sn.mfhd(e),sn.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=sn.trak(e[t]);return sn.box.apply(null,[sn.types.moov,sn.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(sn.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=sn.trex(e[t]);return sn.box.apply(null,[sn.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(ps+1)),r=Math.floor(t%(ps+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 sn.box(sn.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 sn.box(sn.types.sdtp,n)}static stbl(e){return sn.box(sn.types.stbl,sn.stsd(e),sn.box(sn.types.stts,sn.STTS),sn.box(sn.types.stsc,sn.STSC),sn.box(sn.types.stsz,sn.STSZ),sn.box(sn.types.stco,sn.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=sn.box(sn.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],m=e.pixelRatio[1];return sn.box(sn.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,sn.box(sn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),sn.box(sn.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,m>>24,m>>16&255,m>>8&255,m&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 sn.box(sn.types.mp4a,sn.audioStsd(e),sn.box(sn.types.esds,sn.esds(e)))}static mp3(e){return sn.box(sn.types[".mp3"],sn.audioStsd(e))}static ac3(e){return sn.box(sn.types["ac-3"],sn.audioStsd(e),sn.box(sn.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return sn.box(sn.types.stsd,sn.STSD,sn.mp4a(e));if(t==="ac3"&&e.config)return sn.box(sn.types.stsd,sn.STSD,sn.ac3(e));if(t==="mp3"&&e.codec==="mp3")return sn.box(sn.types.stsd,sn.STSD,sn.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return sn.box(sn.types.stsd,sn.STSD,sn.avc1(e));if(t==="hevc"&&e.vps)return sn.box(sn.types.stsd,sn.STSD,sn.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/(ps+1)),l=Math.floor(n%(ps+1));return sn.box(sn.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=sn.sdtp(e),r=e.id,i=Math.floor(t/(ps+1)),s=Math.floor(t%(ps+1));return sn.box(sn.types.traf,sn.box(sn.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),sn.box(sn.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])),sn.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,sn.box(sn.types.trak,sn.tkhd(e),sn.mdia(e))}static trex(e){const t=e.id;return sn.box(sn.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,m,b;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,m=c.flags,b=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,m.isLeading<<2|m.dependsOn,m.isDependedOn<<6|m.hasRedundancy<<4|m.paddingValue<<1|m.isNonSync,m.degradPrio&61440,m.degradPrio&15,b>>>24&255,b>>>16&255,b>>>8&255,b&255],12+16*l);return sn.box(sn.types.trun,s)}static initSegment(e){sn.types||sn.init();const t=sn.moov(e);return Ye(sn.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 ie=0;ie<n[R].length;ie+=1)s+=2+n[R][ie].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 ie=0;ie<n[R].length;ie+=1)l.set(new Uint8Array([n[R][ie].length>>8,n[R][ie].length&255]),s),s+=2,l.set(n[R][ie],s),s+=n[R][ie].length}const u=sn.box(sn.types.hvcC,l),f=e.width,m=e.height,b=e.pixelRatio[0],T=e.pixelRatio[1];return sn.box(sn.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,m>>8&255,m&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,sn.box(sn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),sn.box(sn.types.pasp,new Uint8Array([b>>24,b>>16&255,b>>8&255,b&255,T>>24,T>>16&255,T>>8&255,T&255])))}}sn.types=void 0,sn.HDLR_TYPES=void 0,sn.STTS=void 0,sn.STSC=void 0,sn.STCO=void 0,sn.STSZ=void 0,sn.VMHD=void 0,sn.SMHD=void 0,sn.STSD=void 0,sn.FTYP=void 0,sn.DINF=void 0;const yo=9e4;function Ia(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function iu(a,e,t=1,n=!1){return Ia(a,e,1/t,n)}function Ys(a,e=!1){return Ia(a,1e3,1/yo,e)}function su(a,e=1){return Ia(a,yo,1/e)}const au=10*1e3,ou=1024,lu=1152,uu=1536;let Ps=null,La=null;function _o(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 oa extends ${constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,Ps===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ps=s?parseInt(s[1]):0}if(La===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);La=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.log("initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("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=Li(l,n),c=l-i),c>0?i:l},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,l,c){let u,f,m,b,T,R,ie=i,q=i;const we=e.pid>-1,ht=t.pid>-1,rt=t.samples.length,Ut=e.samples.length>0,tn=l&&rt>0||rt>1;if((!we||Ut)&&(!ht||tn)||this.ISGenerated||l){if(this.ISGenerated){var Yt,un,fn,Xt;const vr=this.videoTrackConfig;(vr&&(t.width!==vr.width||t.height!==vr.height||((Yt=t.pixelRatio)==null?void 0:Yt[0])!==((un=vr.pixelRatio)==null?void 0:un[0])||((fn=t.pixelRatio)==null?void 0:fn[1])!==((Xt=vr.pixelRatio)==null?void 0:Xt[1]))||!vr&&tn||this.nextAudioTs===null&&Ut)&&this.resetInitSegment()}this.ISGenerated||(m=this.generateIS(e,t,i,s));const An=this.isVideoContiguous;let nr=-1,fr;if(tn&&(nr=cu(t.samples),!An&&this.config.forceKeyFrameOnDiscontinuity))if(R=!0,nr>0){this.warn(`Dropped ${nr} out of ${rt} video samples due to a missing keyframe`);const vr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(nr),t.dropped+=nr,q+=(t.samples[0].pts-vr)/t.inputTimeScale,fr=q}else nr===-1&&(this.warn(`No keyframe found out of ${rt} video samples`),R=!1);if(this.ISGenerated){if(Ut&&tn){const vr=this.getVideoStartPts(t.samples),qn=(Li(e.samples[0].pts,vr)-vr)/t.inputTimeScale;ie+=Math.max(0,qn),q+=Math.max(0,-qn)}if(Ut){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),m=this.generateIS(e,t,i,s)),f=this.remuxAudio(e,ie,this.isAudioContiguous,s,ht||tn||c===te.AUDIO?q:void 0),tn){const vr=f?f.endPTS-f.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),m=this.generateIS(e,t,i,s)),u=this.remuxVideo(t,q,An,vr)}}else tn&&(u=this.remuxVideo(t,q,An,0));u&&(u.firstKeyFrame=nr,u.independent=nr!==-1,u.firstKeyFramePTS=fr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(T=Eo(n,i,this._initPTS,this._initDTS)),r.samples.length&&(b=bo(r,i,this._initPTS))),{audio:f,video:u,initSegment:m,independent:R,text:b,id3:T}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,l=this.typeSupported,c={},u=this._initPTS;let f=!u||r,m="audio/mp4",b,T,R,ie=-1;if(f&&(b=T=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(m="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}c.audio={id:"audio",container:m,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):sn.initSegment([e]),metadata:{channelCount:e.channelCount}},f&&(ie=e.id,R=e.inputTimeScale,!u||R!==u.timescale?b=T=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:sn.initSegment([t]),metadata:{width:t.width,height:t.height}},f)if(ie=t.id,R=t.inputTimeScale,!u||R!==u.timescale){const q=this.getVideoStartPts(s),we=Math.round(R*n);T=Math.min(T,Li(s[0].dts,q)-we),b=Math.min(b,q-we)}else f=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,f?(u&&this.warn(`Timestamps at playlist time: ${r?"":"~"}${n} ${b/R} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${b/R} (${b}/${R}) trackId: ${ie}`),this._initPTS={baseTime:b,timescale:R,trackId:ie},this._initDTS={baseTime:T,timescale:R,trackId:ie}):b=R=void 0,{tracks:c,initPTS:b,timescale:R,trackId:ie}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,l=[],c=s.length,u=this._initPTS,f=u.baseTime*i/u.timescale;let m=this.nextVideoTs,b=8,T=this.videoSampleDuration,R,ie,q=Number.POSITIVE_INFINITY,we=Number.NEGATIVE_INFINITY,ht=!1;if(!n||m===null){const $n=f+t*i,er=s[0].pts-Li(s[0].dts,s[0].pts);Ps&&m!==null&&Math.abs($n-er-(m+f))<15e3?n=!0:m=$n-er-f}const rt=m+f;for(let $n=0;$n<c;$n++){const er=s[$n];er.pts=Li(er.pts,rt),er.dts=Li(er.dts,rt),er.dts<s[$n>0?$n-1:$n].dts&&(ht=!0)}ht&&s.sort(function($n,er){const Lr=$n.dts-er.dts,Kr=$n.pts-er.pts;return Lr||Kr}),R=s[0].dts,ie=s[s.length-1].dts;const Ut=ie-R,tn=Ut?Math.round(Ut/(c-1)):T||e.inputTimeScale/30;if(n){const $n=R-rt,er=$n>tn,Lr=$n<-1;if((er||Lr)&&(er?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Ys($n,!0)} ms (${$n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Ys(-$n,!0)} ms (${$n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Lr||rt>=s[0].pts||Ps)){R=rt;const Kr=s[0].pts-$n;if(er)s[0].dts=R,s[0].pts=Kr;else{let Pr=!0;for(let Mr=0;Mr<s.length&&!(s[Mr].dts>Kr&&Pr);Mr++){const Ei=s[Mr].pts;if(s[Mr].dts-=$n,s[Mr].pts-=$n,Mr<s.length-1){const vi=s[Mr+1].pts,ki=s[Mr].pts,Ji=vi<=ki,As=vi<=Ei;Pr=Ji==As}}}this.log(`Video: Initial PTS/DTS adjusted: ${Ys(Kr,!0)}/${Ys(R,!0)}, delta: ${Ys($n,!0)} ms`)}}R=Math.max(0,R);let _n=0,Yt=0,un=R;for(let $n=0;$n<c;$n++){const er=s[$n],Lr=er.units,Kr=Lr.length;let Pr=0;for(let Mr=0;Mr<Kr;Mr++)Pr+=Lr[Mr].data.length;Yt+=Pr,_n+=Kr,er.length=Pr,er.dts<un?(er.dts=un,un+=tn/4|0||1):un=er.dts,q=Math.min(er.pts,q),we=Math.max(er.pts,we)}ie=s[c-1].dts;const fn=Yt+4*_n+8;let Xt;try{Xt=new Uint8Array(fn)}catch($n){this.observer.emit(d.ERROR,d.ERROR,{type:ae.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:$n,bytes:fn,reason:`fail allocating video mdat ${fn}`});return}const An=new DataView(Xt.buffer);An.setUint32(0,fn),Xt.set(sn.types.mdat,4);let nr=!1,fr=Number.POSITIVE_INFINITY,vr=Number.POSITIVE_INFINITY,hr=Number.NEGATIVE_INFINITY,qn=Number.NEGATIVE_INFINITY;for(let $n=0;$n<c;$n++){const er=s[$n],Lr=er.units;let Kr=0;for(let Ei=0,vi=Lr.length;Ei<vi;Ei++){const ki=Lr[Ei],Ji=ki.data,As=ki.data.byteLength;An.setUint32(b,As),b+=4,Xt.set(Ji,b),b+=As,Kr+=4+As}let Pr;if($n<c-1)T=s[$n+1].dts-er.dts,Pr=s[$n+1].pts-er.pts;else{const Ei=this.config,vi=$n>0?er.dts-s[$n-1].dts:tn;if(Pr=$n>0?er.pts-s[$n-1].pts:tn,Ei.stretchShortVideoTrack&&this.nextAudioTs!==null){const ki=Math.floor(Ei.maxBufferHole*i),Ji=(r?q+r*i:this.nextAudioTs+f)-er.pts;Ji>ki?(T=Ji-vi,T<0?T=vi:nr=!0,this.log(`It is approximately ${Ji/90} ms to the next segment; using duration ${T/90} ms for the last video frame.`)):T=vi}else T=vi}const Mr=Math.round(er.pts-er.dts);fr=Math.min(fr,T),hr=Math.max(hr,T),vr=Math.min(vr,Pr),qn=Math.max(qn,Pr),l.push(_o(er.key,T,Kr,Mr))}if(l.length){if(Ps){if(Ps<70){const $n=l[0].flags;$n.dependsOn=2,$n.isNonSync=0}}else if(La&&qn-vr<hr-fr&&tn/hr<.025&&l[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let $n=R;for(let er=0,Lr=l.length;er<Lr;er++){const Kr=$n+l[er].duration,Pr=$n+l[er].cts;if(er<Lr-1){const Mr=Kr+l[er+1].cts;l[er].duration=Mr-Pr}else l[er].duration=er?l[er-1].duration:tn;l[er].cts=0,$n=Kr}}}T=nr||!T?tn:T;const mr=ie+T;this.nextVideoTs=m=mr-f,this.videoSampleDuration=T,this.isVideoContiguous=!0;const wr={data1:sn.moof(e.sequenceNumber++,R,p(e,{samples:l})),data2:Xt,startPTS:(q-f)/i,endPTS:(we+T-f)/i,startDTS:(R-f)/i,endDTS:m/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,wr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return lu;case"ac3":return uu;default:return ou}}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,m=this._initPTS,b=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,T=[],R=i!==void 0;let ie=e.samples,q=b?0:8,we=this.nextAudioTs||-1;const ht=m.baseTime*s/m.timescale,rt=ht+t*s;if(this.isAudioContiguous=n=n||ie.length&&we>0&&(r&&Math.abs(rt-(we+ht))<9e3||Math.abs(Li(ie[0].pts,rt)-(we+ht))<20*f),ie.forEach(function(qn){qn.pts=Li(qn.pts,rt)}),!n||we<0){if(ie=ie.filter(qn=>qn.pts>=0),!ie.length)return;i===0?we=0:r&&!R?we=Math.max(0,rt-ht):we=ie[0].pts-ht}if(e.segmentCodec==="aac"){const qn=this.config.maxAudioFramesDrift;for(let mr=0,ar=we+ht;mr<ie.length;mr++){const gr=ie[mr],wr=gr.pts,$n=wr-ar,er=Math.abs(1e3*$n/s);if($n<=-qn*f&&R)mr===0&&(this.warn(`Audio frame @ ${(wr/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*$n/s)} ms.`),this.nextAudioTs=we=wr-ht,ar=wr);else if($n>=qn*f&&er<au&&R){let Lr=Math.round($n/f);for(ar=wr-Lr*f;ar<0&&Lr&&f;)Lr--,ar+=f;mr===0&&(this.nextAudioTs=we=ar-ht),this.warn(`Injecting ${Lr} audio frames @ ${((ar-ht)/s).toFixed(3)}s due to ${Math.round(1e3*$n/s)} ms gap.`);for(let Kr=0;Kr<Lr;Kr++){let Pr=ru.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Pr||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Pr=gr.unit.subarray()),ie.splice(mr,0,{unit:Pr,pts:ar}),ar+=f,mr++}}gr.pts=ar,ar+=f}}let Ut=null,tn=null,_n,Yt=0,un=ie.length;for(;un--;)Yt+=ie[un].unit.byteLength;for(let qn=0,mr=ie.length;qn<mr;qn++){const ar=ie[qn],gr=ar.unit;let wr=ar.pts;if(tn!==null){const er=T[qn-1];er.duration=Math.round((wr-tn)/c)}else if(n&&e.segmentCodec==="aac"&&(wr=we+ht),Ut=wr,Yt>0){Yt+=q;try{_n=new Uint8Array(Yt)}catch(er){this.observer.emit(d.ERROR,d.ERROR,{type:ae.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:er,bytes:Yt,reason:`fail allocating audio mdat ${Yt}`});return}b||(new DataView(_n.buffer).setUint32(0,Yt),_n.set(sn.types.mdat,4))}else return;_n.set(gr,q);const $n=gr.byteLength;q+=$n,T.push(_o(!0,u,$n,0)),tn=wr}const fn=T.length;if(!fn)return;const Xt=T[T.length-1];we=tn-ht,this.nextAudioTs=we+c*Xt.duration;const An=b?new Uint8Array(0):sn.moof(e.sequenceNumber++,Ut/c,p({},e,{samples:T}));e.samples=[];const nr=(Ut-ht)/s,fr=we/s,hr={data1:An,data2:_n,startPTS:nr,endPTS:fr,startDTS:nr,endDTS:fr,type:"audio",hasAudio:!0,hasVideo:!1,nb:fn};return this.isAudioContiguous=!0,hr}}function Li(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 cu(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Eo(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=Li(c.pts-t.baseTime*i/t.timescale,e*i)/i,c.dts=Li(c.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function bo(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=Li(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 du extends ${constructor(e,t,n,r){super("passthrough-remuxer",r),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.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,r),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:i,video:s}=this.initData=Qe(e);if(t)ye(e,t);else{const c=i||s;c!=null&&c.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${c.codec}")!`)}i&&(n=xo(i,O.AUDIO,this)),s&&(r=xo(s,O.VIDEO,this));const l={};i&&s?l.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:i?l.audio={container:"audio/mp4",codec:n,encrypted:i.encrypted,initSegment:e,id:"audio"}:s?l.video={container:"video/mp4",codec:r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l}remux(e,t,n,r,i,s){var l,c;let{initPTS:u,lastEndTime:f}=this;const m={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};h(f)||(f=this.lastEndTime=i||0);const b=t.samples;if(!b.length)return m;const T={initPTS:void 0,timescale:void 0,trackId:void 0};let R=this.initData;if((l=R)!=null&&l.length||(this.generateInitSegment(b),R=this.initData),!((c=R)!=null&&c.length))return this.warn("Failed to generate initSegment."),m;this.emitInitSegment&&(T.tracks=this.initTracks,this.emitInitSegment=!1);const ie=Ve(b,R,this),q=R.audio?ie[R.audio.id]:null,we=R.video?ie[R.video.id]:null,ht=la(we,1/0),rt=la(q,1/0),Ut=la(we,0,!0),tn=la(q,0,!0);let _n=i,Yt=0;const un=q&&(!we||!u&&rt<ht||u&&u.trackId===R.audio.id),fn=un?q:we;if(fn){const ar=fn.timescale,gr=fn.start-i*ar,wr=un?R.audio.id:R.video.id;_n=fn.start/ar,Yt=un?tn-rt:Ut-ht,(s||!u)&&(fu(u,_n,i,Yt)||ar!==u.timescale)&&(u&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${i} ${gr/ar} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${i} offset: ${_n-i} (${gr}/${ar}) trackId: ${wr}`),u=null,T.initPTS=gr,T.timescale=ar,T.trackId=wr)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${i}`);u?(T.initPTS=u.baseTime,T.timescale=u.timescale,T.trackId=u.trackId):((!T.timescale||T.trackId===void 0||T.initPTS===void 0)&&(this.warn("Could not set initPTS"),T.initPTS=_n,T.timescale=1,T.trackId=-1),this.initPTS=u={baseTime:T.initPTS,timescale:T.timescale,trackId:T.trackId});const Xt=_n-u.baseTime/u.timescale,An=Xt+Yt;Yt>0?this.lastEndTime=An:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const nr=!!R.audio,fr=!!R.video;let vr="";nr&&(vr+="audio"),fr&&(vr+="video");const hr=(R.audio?R.audio.encrypted:!1)||(R.video?R.video.encrypted:!1),qn={data1:b,startPTS:Xt,startDTS:Xt,endPTS:An,endDTS:An,type:vr,hasAudio:nr,hasVideo:fr,nb:1,dropped:0,encrypted:hr};m.audio=nr&&!fr?qn:void 0,m.video=fr?qn:void 0;const mr=we==null?void 0:we.sampleCount;if(mr){const ar=we.keyFrameIndex,gr=ar!==-1;qn.nb=mr,qn.dropped=ar===0||this.isVideoContiguous?0:gr?ar:mr,qn.independent=gr,qn.firstKeyFrame=ar,gr&&we.keyFrameStart&&(qn.firstKeyFramePTS=(we.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(m.independent=gr),this.isVideoContiguous||(this.isVideoContiguous=gr),qn.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${ar}/${mr} dropped: ${qn.dropped} start: ${qn.firstKeyFramePTS||"NA"}`)}return m.initSegment=T,m.id3=Eo(n,i,u,u),r.samples.length&&(m.text=bo(r,i,u)),m}}function la(a,e,t=!1){return(a==null?void 0:a.start)!==void 0?(a.start+(t?a.duration:0))/a.timescale:e}function fu(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 xo(a,e,t){const n=a.codec;return n&&n.length>4?n:e===O.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?he(n,!1):(t.warn(`Unhandled audio codec "${n}" in mp4 MAP`),n||"mp4a"):(t.warn(`Unhandled video codec "${n}" in mp4 MAP`),n||"avc1")}let us;try{us=self.performance.now.bind(self.performance)}catch(a){us=Date.now}const ua=[{demux:Jl,remux:du},{demux:hs,remux:oa},{demux:Hl,remux:oa},{demux:Xl,remux:oa}];ua.splice(2,0,{demux:Yl,remux:oa});class So{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=us();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:c}=this;r&&(this.currentTransmuxState=r);const{contiguous:u,discontinuity:f,trackSwitch:m,accurateTimeOffset:b,timeOffset:T,initSegmentChange:R}=r||l,{audioCodec:ie,videoCodec:q,defaultInitPts:we,duration:ht,initSegmentData:rt}=c,Ut=hu(s,t);if(Ut&&Fr(Ut.method)){const un=this.getDecrypter(),fn=br(Ut.method);if(un.isSync()){let Xt=un.softwareDecrypt(s,Ut.key.buffer,Ut.iv.buffer,fn);if(n.part>-1){const nr=un.flush();Xt=nr&&nr.buffer}if(!Xt)return i.executeEnd=us(),ka(n);s=new Uint8Array(Xt)}else return this.asyncResult=!0,this.decryptionPromise=un.webCryptoDecrypt(s,Ut.key.buffer,Ut.iv.buffer,fn).then(Xt=>{const An=this.push(Xt,null,n);return this.decryptionPromise=null,An}),this.decryptionPromise}const tn=this.needsProbing(f,m);if(tn){const un=this.configureTransmuxer(s);if(un)return this.logger.warn(`[transmuxer] ${un.message}`),this.observer.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:un,reason:un.message}),i.executeEnd=us(),ka(n)}(f||m||R||tn)&&this.resetInitSegment(rt,ie,q,ht,t),(f||R||tn)&&this.resetInitialTimestamp(we),u||this.resetContiguity();const _n=this.transmux(s,Ut,T,b,n);this.asyncResult=Xs(_n);const Yt=this.currentTransmuxState;return Yt.contiguous=!0,Yt.discontinuity=!1,Yt.trackSwitch=!1,i.executeEnd=us(),_n}flush(e){const t=e.transmuxing;t.executeStart=us();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 m=n.flush();m&&s.push(this.push(m.buffer,null,e))}const{demuxer:c,remuxer:u}=this;if(!c||!u){t.executeEnd=us();const m=[ka(e)];return this.asyncResult?Promise.resolve(m):m}const f=c.flush(l);return Xs(f)?(this.asyncResult=!0,f.then(m=>(this.flushRemux(s,m,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===te.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=us()}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 m=0,b=ua.length;m<b;m++){var s;if((s=ua[m].demux)!=null&&s.probe(e,this.logger)){i=ua[m];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 xn(this.config)),e}}function hu(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 ka=a=>({remuxResult:{},chunkMeta:a});function Xs(a){return"then"in a&&a.then instanceof Function}class pu{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 mu{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 Ao=0;class wo{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Ao++,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 m;const b=(m=this.workerContext)==null?void 0:m.objectURL;b&&self.URL.revokeObjectURL(b);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:ae.OTHER_ERROR,details:B.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 Ks,this.observer.on(d.FRAG_DECRYPTED,s),this.observer.on(d.ERROR,s);const l=nt(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const c=this.hls.logger;if(i.workerPath||Ds()){try{i.workerPath?(c.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=js(i.workerPath)):(c.log(`injecting Web Worker for "${t}"`),this.workerContext=zs());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:Qt(i)})}catch(f){c.warn(`Error setting up "${t}" Web Worker, fallback to inline`,f),this.terminateWorker(),this.error=null,this.transmuxer=new So(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new So(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Ao++;const t=this.hls.config,n=nt(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:Qt(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),na(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 m,b;u.transmuxing.start=self.performance.now();const{instanceNo:T,transmuxer:R}=this,ie=s?s.start:i.start,q=i.decryptdata,we=this.frag,ht=!(we&&i.cc===we.cc),rt=!(we&&u.level===we.level),Ut=we?u.sn-we.sn:-1,tn=this.part?u.part-this.part.index:-1,_n=Ut===0&&u.id>1&&u.id===(we==null?void 0:we.stats.chunkCount),Yt=!rt&&(Ut===1||Ut===0&&(tn===1||_n&&tn<=0)),un=self.performance.now();(rt||Ut||i.stats.parsing.start===0)&&(i.stats.parsing.start=un),s&&(tn||!Yt)&&(s.stats.parsing.start=un);const fn=!(we&&((m=i.initSegment)==null?void 0:m.url)===((b=we.initSegment)==null?void 0:b.url)),Xt=new mu(ht,Yt,c,rt,ie,fn);if(!Yt||ht||fn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${u.sn}${u.part>-1?" part: "+u.part:""} ${this.id===te.MAIN?"level":"track"}: ${u.level} id: ${u.id}
discontinuity: ${ht}
trackSwitch: ${rt}
contiguous: ${Yt}
accurateTimeOffset: ${c}
timeOffset: ${ie}
initSegmentChange: ${fn}`);const An=new pu(n,r,t,l,f);this.configureTransmuxer(An)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:T,cmd:"demux",data:e,decryptdata:q,chunkMeta:u,state:Xt},e instanceof ArrayBuffer?[e]:[]);else if(R){const An=R.push(e,q,u,Xt);Xs(An)?An.then(nr=>{this.handleTransmuxComplete(nr)}).catch(nr=>{this.transmuxerError(nr,u,"transmuxer-interface push error")}):this.handleTransmuxComplete(An)}}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);Xs(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:ae.MEDIA_ERROR,details:B.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 Co=100;class gu extends Bi{constructor(e,t,n){super(e,t,n,"audio-stream-controller",te.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,trackId:s}){if(n===te.MAIN){const l=t.cc,c=this.fragCurrent;if(this.initPTS[l]={baseTime:r,timescale:i,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${r/i} (${r}/${i}) trackId: ${s}`),this.mainAnchor=t,this.state===bn.WAITING_INIT_PTS){const u=this.waitingData;(!u&&!this.loadingParts||u&&u.frag.cc!==l)&&this.syncWithAnchor(t,u==null?void 0:u.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(t,c)):this.state===bn.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=((n=this.mainFragLoading)==null?void 0:n.frag)||null;if(t&&(r==null?void 0:r.cc)===t.cc)return;const i=(r||e).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),c=hn(s,i,l);c&&(this.log(`Syncing with main frag at ${c.start} cc ${c.cc}`),this.startFragRequested=!1,this.nextLoadPosition=c.start,this.resetLoadingState(),this.state===bn.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=bn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(Co),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=bn.IDLE):this.state=bn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case bn.IDLE:this.doTickIdle();break;case bn.WAITING_TRACK:{const{levels:e,trackId:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=bn.WAITING_INIT_PTS}break}case bn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case bn.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:i}=e,s=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=bn.FRAG_LOADING;const l=r.flush().buffer,c={frag:t,part:n,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),i&&super._handleFragmentLoadComplete(c)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=bn.IDLE}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),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=bn.WAITING_TRACK,this.startFragRequested=!1;return}const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,O.AUDIO,te.AUDIO));const f=this.getFwdBufferInfo(u,te.AUDIO);if(f===null)return;if(!this.switchingTrack&&this._streamEnded(f,c)){t.trigger(d.BUFFER_EOS,{type:"audio"}),this.state=bn.ENDED;return}const m=f.len,b=t.maxBufferLength,T=c.fragments,R=T[0].start,ie=this.getLoadPosition(),q=this.flushing?ie:f.end;if(this.switchingTrack&&r){const rt=ie;c.PTSKnown&&rt<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(m>=b&&!this.switchingTrack&&q<T[T.length-1].start)return;let we=this.getNextFragment(q,c);if(we&&this.isLoopLoading(we,q)&&(we=this.getNextFragmentLoopLoading(we,c,f,te.MAIN,b)),!we){this.bufferFlushed=!0;return}let ht=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&ht&&He(we)&&!we.endList&&(!c.live||!this.loadingParts&&q<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(ht)===ft.OK&&(this.mainFragLoading=ht=null),ht&&He(ht))){if(we.start>ht.end){const Ut=this.fragmentTracker.getFragAtPos(q,te.MAIN);Ut&&Ut.end>ht.end&&(ht=Ut,this.mainFragLoading={frag:Ut,targetBufferTime:null})}if(we.start>ht.end)return}this.loadFragment(we,l,q)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new At(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!==bn.STOPPED&&(this.setInterval(Co),this.state=bn.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!==bn.STOPPED&&(this.state=bn.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 m=0;if(i.live||(n=f.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(f.details){var b;m=this.alignPlaylists(i,f.details,(b=this.levelLastLoaded)==null?void 0:b.details)}i.alignedSliding||(si(i,u),i.alignedSliding||_i(i,u),m=i.fragmentStart)}f.details=i,this.levelLastLoaded=f,this.startFragRequested||this.setStartPosition(u,m),this.hls.trigger(d.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===bn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=bn.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 m=s.defaultAudioCodec||u.audioCodec||"mp4a.40.2";let b=this.transmuxer;b||(b=this.transmuxer=new wo(this.hls,te.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const T=this.initPTS[n.cc],R=(t=n.initSegment)==null?void 0:t.data;if(T!==void 0){const q=r?r.index:-1,we=q!==-1,ht=new Wn(n.level,n.sn,n.stats.chunkCount,i.byteLength,q,we);b.push(i,R,m,"",n,r,f.totalduration,!1,ht,T)}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:ie}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new rs,complete:!1};ie.push(new Uint8Array(i)),this.state!==bn.STOPPED&&(this.state=bn.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===te.MAIN&&He(t.frag)&&(this.mainFragLoading=t,this.state===bn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==te.AUDIO){!this.audioOnly&&n.type===te.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(He(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=bn.ERROR;return}switch(t.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(te.AUDIO,t);break;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===bn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===_e.AUDIO_TRACK&&(this.state=bn.IDLE);break;case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case B.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==O.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==O.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===bn.ENDED&&(this.state=bn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,te.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:m}=f,{audio:b,text:T,id3:R,initSegment:ie}=i;if(this.fragContextChanged(c)||!m){this.fragmentTracker.removeFragment(c);return}if(this.state=bn.PARSING,this.switchingTrack&&b&&this.completeAudioSwitch(this.switchingTrack),ie!=null&&ie.tracks){const q=c.initSegment||c;if(this.unhandledEncryptionError(ie,c))return;this._bufferInitSegment(f,ie.tracks,q,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:q,id:n,tracks:ie.tracks})}if(b){const{startPTS:q,endPTS:we,startDTS:ht,endDTS:rt}=b;u&&(u.elementaryStreams[O.AUDIO]={startPTS:q,endPTS:we,startDTS:ht,endDTS:rt}),c.setElementaryStreamInfo(O.AUDIO,q,we,ht,rt),this.bufferFragmentData(b,c,u,s)}if(R!=null&&(t=R.samples)!=null&&t.length){const q=p({id:n,frag:c,details:m},R);r.trigger(d.FRAG_PARSING_METADATA,q)}if(T){const q=p({id:n,frag:c,details:m},T);r.trigger(d.FRAG_PARSING_USERDATA,q)}}_bufferInitSegment(e,t,n,r){if(this.state!==bn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=te.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===ft.NOT_LOADED||r===ft.PARTIAL){var i;if(!He(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=bn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&_i(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;qt({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l},e,En)||(Yn(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 Pa extends ${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.lastPartSn;let c=parseInt(s["LAST-PART"])||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&&Mt(n);return new xt(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(m=>{m.setStart(m.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){Tr(n,r,this);const ht=r.playlistParsingError;if(ht){this.warn(ht);const rt=this.hls;if(!rt.config.ignorePlaylistParsingErrors){var u;const{networkDetails:Ut}=t;rt.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:ht,reason:ht.message,level:t.level||void 0,parent:(u=r.fragments[0])==null?void 0:u.type,networkDetails:Ut,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const m=this.hls.mainForwardBufferInfo,b=m?m.end-m.len:0,T=(r.edge-b)*1e3,R=gi(r,T);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 ie,q,we;if(r.canBlockReload&&r.endSN&&r.advanced){const ht=this.hls.config.lowLatencyMode,rt=r.lastPartSn,Ut=r.endSN,tn=r.lastPartIndex,_n=tn!==-1,Yt=rt===Ut;_n?Yt?(q=Ut+1,we=ht?0:tn):(q=rt,we=ht?tn+1:r.maxPartIndex):q=Ut+1;const un=r.age,fn=un+r.ageHeader;let Xt=Math.min(fn-r.partTarget,r.targetduration*1.5);if(Xt>0){if(fn>r.targetduration*3)this.log(`Playlist last advanced ${un.toFixed(2)}s ago. Omitting segment and part directives.`),q=void 0,we=void 0;else if(n!=null&&n.tuneInGoal&&fn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Xt} with playlist age: ${r.age}`),Xt=0;else{const An=Math.floor(Xt/r.targetduration);if(q+=An,we!==void 0){const nr=Math.round(Xt%r.targetduration/r.partTarget);we+=nr}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${un.toFixed(2)}s goal: ${Xt} skip sn ${An} to part ${we}`)}r.tuneInGoal=Xt}if(ie=this.getDeliveryDirectives(r,t.deliveryDirectives,q,we),ht||!Yt){r.requestScheduled=s,this.loadingPlaylist(f,ie);return}}else(r.canBlockReload||r.canSkipUntil)&&(ie=this.getDeliveryDirectives(r,t.deliveryDirectives,q,we));ie&&q!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(R-l*2,R/2)),this.scheduleLoading(f,ie,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=Mt(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=pt.No),new xt(n,r,i)}checkRetry(e){const t=e.details,n=yn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=r||{},c=!!r&&!!l&&(i===Te.RetryRequest||!r.resolved&&i===Te.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=Mn(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 To(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Qs(a[t].attrs,e[t].attrs))return!1;return!0}function Qs(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 Na(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class vu extends Pa{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(b=>!n||n.indexOf(b.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(b=>b.default)&&(this.selectDefaultTrack=!1),l.forEach((b,T)=>{b.id=T});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!i&&c){const b=kt(c,l,En);if(b>-1)i=l[b];else{const T=kt(c,this.tracks);i=this.tracks[T]}}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 m=this.trackId;if(u!==-1&&m===-1)this.setAudioTrack(u);else if(l.length&&m===-1){var s;const b=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(b.message),this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:b})}}}onError(e,t){t.fatal||!t.context||t.context.type===_e.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&&qt(e,r,En))return r;const i=kt(e,this.tracksInGroup,En);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=Tn(e,t.levels,n,s,En);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=kt(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||qt(e,r,En)))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(qt({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c},f,En))return u}for(let u=0;u<t.length;u++){const f=t[u];if(Qs(e.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(let u=0;u<t.length;u++){const f=t[u];if(Qs(e.attrs,f.attrs,["LANGUAGE"]))return u}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Yn(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 yu{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 Do=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Ro="HlsJsTrackRemovedError";class _u extends Error{constructor(e){super(e),this.name=Ro}}class Eu extends ${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=ge(oe(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?p(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=p({},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;this.transferData=this.overrides=void 0;const r=oe(this.appendSource);if(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,Io(n),bu(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=()=>{Promise.resolve().then(()=>{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: ${Qt(n,(c,u)=>c==="initSegment"?void 0:u)};
transfer tracks: ${Qt(r,(c,u)=>c==="initSegment"?void 0:u)}}`),!me(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 m=f.buffer;if(m){const b=this.fragmentTracker,T=f.id;if(b.hasFragments(T)||b.hasParts(T)){const q=Je.getBuffered(m);b.detectEvictedFragments(u,q,T,null,!0)}const R=Ma(u),ie=[u,m];this.sourceBuffers[R]=ie,m.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&&Io(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[Ma(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new yu(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;const f=t[l],{id:m,codec:b,levelCodec:T,container:R,metadata:ie,supplemental:q}=f;let we=n[l];const ht=(c=this.transferData)==null||(c=c.tracks)==null?void 0:c[l],rt=ht!=null&&ht.buffer?ht:we,Ut=(rt==null?void 0:rt.pendingCodec)||(rt==null?void 0:rt.codec),tn=rt==null?void 0:rt.levelCodec;we||(we=n[l]={buffer:void 0,listeners:[],codec:b,supplemental:q,container:R,levelCodec:T,metadata:ie,id:m});const _n=xe(Ut,tn),Yt=_n==null?void 0:_n.replace(Do,"$1");let un=xe(b,T);const fn=(u=un)==null?void 0:u.replace(Do,"$1");un&&_n&&Yt!==fn&&(l.slice(0,5)==="audio"&&(un=he(un,this.appendSource)),this.log(`switching codec ${Ut} to ${un}`),un!==(we.pendingCodec||we.codec)&&(we.pendingCodec=un),we.container=R,this.appendChangeType(l,R,un))}),(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,te.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&&Je.isBuffered(c.buffer,r)||((l=this.fragmentTracker.getAppendedFrag(r,te.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,offset:f}=t,m=u.buffering[i],{sn:b,cc:T}=l,R=self.performance.now();m.start=R;const ie=l.stats.buffering,q=c?c.stats.buffering:null;ie.start===0&&(ie.start=R),q&&q.start===0&&(q.start=R);const we=n.audio;let ht=!1;i==="audio"&&(we==null?void 0:we.container)==="audio/mpeg"&&(ht=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const rt=n.video,Ut=rt==null?void 0:rt.buffer;if(Ut&&b!=="initSegment"){const Yt=c||l,un=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(rt.ending||rt.ended)){const Xt=Yt.start+Yt.duration*.05,An=Ut.buffered,nr=this.currentOp("video");!An.length&&!nr?this.blockAudio(Yt):!nr&&!Je.isBuffered(Ut,Xt)&&this.lastVideoAppendEnd<Xt&&this.blockAudio(Yt)}else if(i==="video"){const fn=Yt.end;if(un){const Xt=un.frag.start;(fn>Xt||fn<this.lastVideoAppendEnd||Je.isBuffered(Ut,Xt))&&this.unblockAudio()}this.lastVideoAppendEnd=fn}}const tn=(c||l).start,_n={label:`append-${i}`,execute:()=>{var Yt;m.executeStart=self.performance.now();const un=(Yt=this.tracks[i])==null?void 0:Yt.buffer;un&&(ht?this.updateTimestampOffset(un,tn,.1,i,b,T):f!==void 0&&h(f)&&this.updateTimestampOffset(un,f,1e-6,i,b,T)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const Yt=self.performance.now();m.executeEnd=m.end=Yt,ie.first===0&&(ie.first=Yt),q&&q.first===0&&(q.first=Yt);const un={};this.sourceBuffers.forEach(([fn,Xt])=>{fn&&(un[fn]=Je.getBuffered(Xt))}),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:un})},onError:Yt=>{var un;const fn={type:ae.MEDIA_ERROR,parent:l.type,details:B.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:c,chunkMeta:u,error:Yt,err:Yt,fatal:!1},Xt=(un=this.media)==null?void 0:un.error;if(Yt.code===DOMException.QUOTA_EXCEEDED_ERR||Yt.name=="QuotaExceededError"||"quota"in Yt)fn.details=B.BUFFER_FULL_ERROR;else if(Yt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Xt)fn.errorAction=mt(!0);else if(Yt.name===Ro&&this.sourceBufferCount===0)fn.errorAction=mt(!0);else{const An=++this.appendErrors[i];this.warn(`Failed ${An}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${Xt||"no media error"})`),(An>=this.hls.config.appendErrorMaxRetry||Xt)&&(fn.fatal=!0)}this.hls.trigger(d.ERROR,fn)}};this.append(_n,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[O.AUDIOVIDEO]?i.push("audiovideo"):(s[O.AUDIO]&&i.push("audio"),s[O.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])=>{if(e){const t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}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)):t.type==="video"&&this.unblockAudio()}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(){this.blockUntilOpen(()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===B.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;h(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(h(l)&&l>=0){const u=Math.max(l,s),f=Math.floor(i/s)*s-u;this.flushBackBuffer(i,s,f)}const c=r.frontBufferFlushThreshold;if(h(c)&&c>0){const u=Math.max(r.maxBufferLength,c),f=Math.max(u,s),m=Math.floor(i/s)*s+f;this.flushFrontBuffer(i,s,m)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const l=Je.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=Je.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&&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 h(i)?{duration:i}:null;const s=this.media.duration,l=h(n.duration)?n.duration:0;return r>l&&r>s||!h(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(h(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}) ${Qt(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:ae.MEDIA_ERROR,details:B.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":""} ${Qt(l)}`);try{const f=n.addSourceBuffer(u),m=Ma(s),b=[s,f];t[m]=b,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:ae.MEDIA_ERROR,details:B.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")&&Vt(n,"video")&&(r=ce(r,n));const i=xe(r,e.levelCodec);return i?t.slice(0,5)==="audio"?he(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:ae.MEDIA_ERROR,details:B.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}updateTimestampOffset(e,t,n,r,i,s){const l=t-e.timestampOffset;Math.abs(l)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${s})`),e.timestampOffset=t)}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=h(r.duration)?r.duration:1/0,u=h(i.duration)?i.duration:1/0,f=Math.max(0,t),m=Math.min(n,c,u);m>f&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${f},${m}] from the ${e} SourceBuffer`),l.remove(f,m)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new _u(`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 Io(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function bu(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Ma(a){return a==="audio"?1:0}class Oa{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&&h(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,Oa.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 wi={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},xu={HLS:"h"};class Yi{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof Yi?n:new Yi(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 wu(a,e,t,n){return new Error(`failed to ${a} "${Au(e)}" as ${t}`,{cause:n})}function Xi(a,e,t){return wu("serialize",a,e,t)}class Lo{constructor(e){this.description=e}}const ko="Bare Item",Cu="Boolean";function Tu(a){if(typeof a!="boolean")throw Xi(a,Cu);return a?"?1":"?0"}function Du(a){return btoa(String.fromCharCode(...a))}const Ru="Byte Sequence";function Iu(a){if(ArrayBuffer.isView(a)===!1)throw Xi(a,Ru);return`:${Du(a)}:`}const Lu="Integer";function ku(a){return a<-999999999999999||999999999999999<a}function Po(a){if(ku(a))throw Xi(a,Lu);return a.toString()}function Pu(a){return`@${Po(a.getTime()/1e3)}`}function No(a,e){if(a<0)return-No(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}const Nu="Decimal";function Mu(a){const e=No(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Xi(a,Nu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Ou="String",Fu=/[\x00-\x1f\x7f]+/;function Bu(a){if(Fu.test(a))throw Xi(a,Ou);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Uu(a){return a.description||a.toString().slice(7,-1)}const Zu="Token";function Mo(a){const e=Uu(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Xi(e,Zu);return e}function Fa(a){switch(typeof a){case"number":if(!h(a))throw Xi(a,ko);return Number.isInteger(a)?Po(a):Mu(a);case"string":return Bu(a);case"symbol":return Mo(a);case"boolean":return Tu(a);case"object":if(a instanceof Date)return Pu(a);if(a instanceof Uint8Array)return Iu(a);if(a instanceof Lo)return Mo(a);default:throw Xi(a,ko)}}const Ku="Key";function Ba(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Xi(a,Ku);return a}function Ua(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${Ba(e)}`:`;${Ba(e)}=${Fa(t)}`).join("")}function Oo(a){return a instanceof Yi?`${Fa(a.value)}${Ua(a.params)}`:Fa(a)}function zu(a){return`(${a.value.map(Oo).join(" ")})${Ua(a.params)}`}function ju(a,e={whitespace:!0}){if(typeof a!="object"||a==null)throw Xi(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 Yi||(i=new Yi(i));let s=Ba(r);return i.value===!0?s+=Ua(i.params):(s+="=",Array.isArray(i.value)?s+=zu(i):s+=Oo(i)),s}).join(`,${n}`)}function Fo(a,e){return ju(a,e)}const Qi="CMCD-Object",ri="CMCD-Request",xs="CMCD-Session",ms="CMCD-Status",Vu={br:Qi,ab:Qi,d:Qi,ot:Qi,tb:Qi,tpb:Qi,lb:Qi,tab:Qi,lab:Qi,url:Qi,pb:ri,bl:ri,tbl:ri,dl:ri,ltc:ri,mtp:ri,nor:ri,nrr:ri,rc:ri,sn:ri,sta:ri,su:ri,ttfb:ri,ttfbb:ri,ttlb:ri,cmsdd:ri,cmsds:ri,smrt:ri,df:ri,cs:ri,ts:ri,cid:xs,pr:xs,sf:xs,sid:xs,st:xs,v:xs,msd:xs,bs:ms,bsd:ms,cdn:ms,rtp:ms,bg:ms,pt:ms,ec:ms,e:ms},Wu={REQUEST:ri};function Gu(a){return Object.keys(a).reduce((e,t)=>{var n;return(n=a[t])===null||n===void 0||n.forEach(r=>e[r]=t),e},{})}function Hu(a,e){const t={};if(!a)return t;const n=Object.keys(a),r=e?Gu(e):{};return n.reduce((i,s)=>{var l;const c=Vu[s]||r[s]||Wu.REQUEST,u=(l=i[c])!==null&&l!==void 0?l:i[c]={};return u[s]=a[s],i},t)}function Yu(a){return["ot","sf","st","e","sta"].includes(a)}function Xu(a){return typeof a=="number"?h(a):a!=null&&a!==""&&a!==!1}const Bo="event";function Qu(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("/")+t.search+t.hash}const ca=a=>Math.round(a),Za=(a,e)=>Array.isArray(a)?a.map(t=>Za(t,e)):a instanceof Yi&&typeof a.value=="string"?new Yi(Za(a.value,e),a.params):(e.baseUrl&&(a=Qu(a,e.baseUrl)),e.version===1?encodeURIComponent(a):a),da=a=>ca(a/100)*100,Ju={br:ca,d:ca,bl:da,dl:da,mtp:da,nor:(a,e)=>{let t=a;return e.version>=2&&(a instanceof Yi&&typeof a.value=="string"?t=new Yi([a]):typeof a=="string"&&(t=[a])),Za(t,e)},rtp:da,tb:ca},Uo="request",Zo="response",Ka=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],qu=["e"],$u=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function fa(a){return $u.test(a)}function ec(a){return Ka.includes(a)||qu.includes(a)||fa(a)}const Ko=["d","dl","nor","ot","rtp","su"];function tc(a){return Ka.includes(a)||Ko.includes(a)||fa(a)}const nc=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function rc(a){return Ka.includes(a)||Ko.includes(a)||nc.includes(a)||fa(a)}const ic=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function sc(a){return ic.includes(a)||fa(a)}const ac={[Zo]:rc,[Bo]:ec,[Uo]:tc};function zo(a,e={}){const t={};if(a==null||typeof a!="object")return t;const n=e.version||a.v||1,r=e.reportingMode||Uo,i=n===1?sc:ac[r];let s=Object.keys(a).filter(i);const l=e.filter;typeof l=="function"&&(s=s.filter(l));const c=r===Zo||r===Bo;c&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");const u=p({},Ju,e.formatters),f={version:n,reportingMode:r,baseUrl:e.baseUrl};return s.sort().forEach(m=>{let b=a[m];const T=u[m];if(typeof T=="function"&&(b=T(b,f)),m==="v"){if(n===1)return;b=n}m=="pr"&&b===1||(c&&m==="ts"&&!h(b)&&(b=Date.now()),Xu(b)&&(Yu(m)&&typeof b=="string"&&(b=new Lo(b)),t[m]=b))}),t}function oc(a,e={}){const t={};if(!a)return t;const n=zo(a,e),r=Hu(n,e==null?void 0:e.customHeaderMap);return Object.entries(r).reduce((i,[s,l])=>{const c=Fo(l,{whitespace:!1});return c&&(i[s]=c),i},t)}function lc(a,e,t){return p(a,oc(e,t))}const uc="CMCD";function cc(a,e={}){return a?Fo(zo(a,e),{whitespace:!1}):""}function dc(a,e={}){if(!a)return"";const t=cc(a,e);return encodeURIComponent(t)}function fc(a,e={}){if(!a)return"";const t=dc(a,e);return`${uc}=${t}`}const jo=/CMCD=[^&#]+/;function hc(a,e,t){const n=fc(e,t);if(!n)return a;if(jo.test(a))return a.replace(jo,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class pc{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:wi.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===wi.VIDEO||c===wi.AUDIO||c==wi.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:xu.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){p(t,this.createData());const n=t.ot===wi.INIT||t.ot===wi.VIDEO||t.ot===wi.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={}),lc(e.headers,t,i)):e.url=hc(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;const{index:n,fragment:r}=e,i=(t=this.hls.levels[r.level])==null||(t=t.details)==null?void 0:t.partList;if(i){const{sn:s}=r;for(let l=i.length-1;l>=0;l--){const c=i[l];if(c.index===n&&c.fragment.sn===s)return i[l+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return wi.TIMED_TEXT;if(e.sn==="initSegment")return wi.INIT;if(t==="audio")return wi.AUDIO;if(t==="main")return this.hls.audioTracks.length?wi.VIDEO:wi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===wi.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}return n.forEach(i=>{i.bitrate>t&&(t=i.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===wi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Je.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 mc=3e5;class gc extends ${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)===Te.SendAlternateToPenaltyBox&&n.flags===Ie.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),t.details===B.BUFFER_APPEND_ERROR&&!t.fatal?n.resolved=!0:n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${Qt(i)} penalized: ${Qt(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]>mc&&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,Ci(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===_e.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===_e.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 m=new Vn(f.attrs);m["PATHWAY-ID"]=s;const b=m.AUDIO&&`${m.AUDIO}_clone_${s}`,T=m.SUBTITLES&&`${m.SUBTITLES}_clone_${s}`;b&&(n[m.AUDIO]=b,m.AUDIO=b),T&&(r[m.SUBTITLES]=T,m.SUBTITLES=T);const R=Wo(f.uri,m["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),ie=new At({attrs:m,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 q=1;q<f.audioGroups.length;q++)ie.addGroupId("audio",`${f.audioGroups[q]}_clone_${s}`);if(f.subtitleGroups)for(let q=1;q<f.subtitleGroups.length;q++)ie.addGroupId("text",`${f.subtitleGroups[q]}_clone_${s}`);return ie});t.push(...u),Vo(this.audioTracks,n,c,s),Vo(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,m,b,T)=>{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":ie,"PATHWAY-CLONES":q,"PATHWAY-PRIORITY":we}=R;if(ie)try{this.uri=new self.URL(ie,r).href}catch(rt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${ie}`);return}this.scheduleRefresh(this.uri||b.url),q&&this.clonePathways(q);const ht={steeringManifest:R,url:r.toString()};this.hls.trigger(d.STEERING_MANIFEST_LOADED,ht),we&&this.updatePathwayPriority(we)},onError:(f,m,b,T)=>{if(this.log(`Error loading steering manifest: ${f.code} ${f.text} (${m.url})`),this.stopLoad(),f.code===410){this.enabled=!1,this.log(`Steering manifest ${m.url} no longer available`);return}let R=this.timeToLoad*1e3;if(f.code===429){const ie=this.loader;if(typeof(ie==null?void 0:ie.getResponseHeader)=="function"){const q=ie.getResponseHeader("Retry-After");q&&(R=parseFloat(q)*1e3)}this.log(`Steering manifest ${m.url} rate limited`);return}this.scheduleRefresh(this.uri||m.url,R)},onTimeout:(f,m,b)=>{this.log(`Timeout loading steering manifest (${m.url})`),this.scheduleRefresh(this.uri||m.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 Vo(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const l=p({},s);return l.details=void 0,l.attrs=new Vn(l.attrs),l.url=l.attrs.URI=Wo(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 Wo(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 Ns extends ${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.mediaKeys=null,this.setMediaKeysQueue=Ns.CDMCleanupPromise?[Ns.CDMCleanupPromise]:[],this.bannedKeyIds={},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=ir(this.config));const l=s.map(jn).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=Yr(s);if(n!=="sinf"||l!==or.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}let c;try{const T=Tt(new Uint8Array(r)),R=Er(JSON.parse(T).sinf),ie=et(R);if(!ie)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(ie.subarray(8,24))}catch(T){this.warn(`${i} Failed to parse sinf: ${T}`);return}const u=U(c),{keyIdToKeySessionPromise:f,mediaKeySessions:m}=this;let b=f[u];for(let T=0;T<m.length;T++){const R=m[T],ie=R.decryptdata;if(!ie.keyId)continue;const q=U(ie.keyId);if(u===q||ie.uri.replace(/-/g,"").indexOf(u)!==-1){if(b=f[q],!b)continue;if(ie.pssh)break;delete f[q],ie.pssh=new Uint8Array(r),ie.keyId=c,b=f[u]=b.then(()=>this.generateRequestWithPreferredKeySession(R,n,r,"encrypted-event-key-match")),b.catch(we=>this.handleError(we));break}}b||this.handleError(new Error(`Key ID ${u} not encountered in playlist. Key-system sessions ${m.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(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),this.hls.on(d.DESTROYING,this.onDestroying,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),this.hls.off(d.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t==null?void 0:t[e];if(r)return r.licenseUrl;if(e===or.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==null?void 0: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(m=>s({keySystem:f,mediaKeys:m})).catch(m=>{u.length?c(u):m instanceof Ui?l(m):l(new Ui({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_ACCESS,error:m,fatal:!0},m.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 sr===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){var r;const i=Dr(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],l=(r=s)==null?void 0:r.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${e}" key-system access with config: ${Qt(i)}`),l=this.requestMediaKeySystemAccess(e,i);const c=s=this.keySystemAccessPromises[e]={keySystemAccess:l};return l.catch(u=>{this.log(`Failed to obtain access to key-system "${e}": ${u}`)}),l.then(u=>{this.log(`Access for key-system "${u.keySystem}" obtained`);const f=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const m=c.mediaKeys=u.createMediaKeys().then(b=>(this.log(`Media-keys created for "${e}"`),c.hasMediaKeys=!0,f.then(T=>T?this.setMediaKeysServerCertificate(b,e,T):b)));return m.catch(b=>{this.error(`Failed to create media-keys for "${e}"}: ${b}`)}),m})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${U(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 U(e.keyId)}updateKeySession(e,t){const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyId ${U(e.decryptdata.keyId||[])}
} (data length: ${t.byteLength})`),n.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>jn(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t,mediaKeys:n})=>this.attemptSetMediaKeys(t,n))}selectKeySystem(e){return new Promise((t,n)=>{this.getKeySystemSelectionPromise(e).then(({keySystem:r})=>{const i=jn(r);i?t(i):n(new Error(`Unable to find format for key-system "${r}"`))}).catch(n)})}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){const t=ir(this.config),n=e.map(Yr).filter(r=>!!r&&t.indexOf(r)!==-1);return this.selectKeySystem(n)}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=this.bannedKeyIds[n];if(r){const l=Go(r,t);return this.handleError(l,e.frag),Promise.reject(l)}const i=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const l=this.getKeySystemForKeyPromise(t).then(({keySystem:c,mediaKeys:u})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(c,u).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:u,decryptdata:t}))))).then(c=>{const u="cenc",f=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,u,f,"playlist-key")});return l.catch(c=>this.handleError(c,e.frag)),this.keyIdToKeySessionPromise[n]=l,l}return s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){this.hls&&(this.error(e.message),e instanceof Ui?(t&&(e.data.frag=t),this.hls.trigger(d.ERROR,e.data)):this.hls.trigger(d.ERROR,{type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=Yr(e.keyFormat),i=r?[r]:ir(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=ir(this.config)),e.length===0)throw new Ui({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Qt({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.mediaKeys=t,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;const s=(i=this.config.drmSystems)==null||(i=i[e.keySystem])==null?void 0:i.generateRequest;if(s)try{const b=s.call(this.hls,t,n,e);if(!b)throw new Error("Invalid response from configured generateRequest filter");t=b.initDataType,n=b.initData?b.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(b){if(this.warn(b.message),this.hls&&this.hls.config.debug)throw b}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const l=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${l} (init data type: ${t} length: ${n.byteLength})`);const c=new Ks,u=e._onmessage=b=>{const T=e.mediaKeysSession;if(!T){c.emit("error",new Error("invalid state"));return}const{messageType:R,message:ie}=b;this.log(`"${R}" message event for session "${T.sessionId}" message size: ${ie.byteLength}`),R==="license-request"||R==="license-renewal"?this.renewLicense(e,ie).catch(q=>{c.eventNames().length?c.emit("error",q):this.handleError(q)}):R==="license-release"?e.keySystem===or.FAIRPLAY&&(this.updateKeySession(e,xr("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${R}"`)},f=e._onkeystatuseschange=b=>{if(!e.mediaKeysSession){c.emit("error",new Error("invalid state"));return}const R=e.keyStatus;this.onKeyStatusChange(e);const ie=e.keyStatus;ie!==R&&(c.emit("keyStatus",ie,e),ie==="expired"&&(this.log(`${e.keySystem} expired for key ${l}`),this.renewKeySession(e)))};ai(e.mediaKeysSession,"message",u),ai(e.mediaKeysSession,"keystatuseschange",f);const m=new Promise((b,T)=>{c.on("error",T),c.on("keyStatus",(R,{decryptdata:ie})=>{R.startsWith("usable")?b():R==="internal-error"||R==="output-restricted"?T(Go(R,ie)):R==="expired"?T(new Error(`key expired while generating request (keyId: ${l})`)):this.warn(`unhandled key status change "${R}" (keyId: ${l})`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${l}`)}).catch(b=>{throw new Ui({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_SESSION,error:b,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${b}`)}).then(()=>m).catch(b=>{throw c.removeAllListeners(),this.removeSession(e),b}).then(()=>(c.removeAllListeners(),e))}onKeyStatusChange(e){const t=U(new Uint8Array(e.decryptdata.keyId||[]));e.mediaKeysSession.keyStatuses.forEach((n,r)=>{if(typeof r=="string"&&typeof n=="object"){const l=r;r=n,n=l}const i=U("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r));n==="internal-error"&&(this.bannedKeyIds[i]=n);const s=i===t;this.log(`${s?"":"un"}matched key status change "${n}" for keyStatuses keyId: ${i} session keyId: ${t} uri: ${e.decryptdata.uri}`),s&&(e.keyStatus=n)})}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},m={onSuccess:(b,T,R,ie)=>{s(b.data)},onError:(b,T,R,ie)=>{l(new Ui({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:R,response:x({url:c.url,data:void 0},b)},`"${e}" certificate request failed (${i}). Status: ${b.code} (${b.text})`))},onTimeout:(b,T,R)=>{l(new Ui({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:R,response:{url:c.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(b,T,R)=>{l(new Error("aborted"))}};r.load(c,f,m)})):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.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new Ui({type:ae.KEY_SYSTEM_ERROR,details:B.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 Ui({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:r,fatal:!1},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 m=0,b=i.length;m<b;m++){var s,l;f=i[m];const T=(s=f.querySelector("name"))==null?void 0:s.textContent,R=(l=f.querySelector("value"))==null?void 0:l.textContent;T&&R&&e.setRequestHeader(T,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 xr(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 Ui({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,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==or.PLAYREADY&&(u=this.unpackPlayReadyKeyMessage(c,u)),c.send(u)}).catch(i)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,ai(n,"encrypted",this.onMediaEncrypted),ai(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(ci(e,"encrypted",this.onMediaEncrypted),ci(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const t=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,qr.clearKeyUriToKeyIdMap();const r=n.length;Ns.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(t==null||(e=t.setMediaKeys(null))==null?void 0:e.catch(i=>{this.log(`Could not clear media keys: ${i}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})}).then(()=>{r&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null,this.bannedKeyIds={}}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,decryptdata:r}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${U((r==null?void 0:r.keyId)||[])}`),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 i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);const{drmSystemOptions:s}=this.config;return(Zr(s)?new Promise((c,u)=>{self.setTimeout(()=>u(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(c).catch(u)}):Promise.resolve()).catch(c=>{this.log(`Could not remove session: ${c}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${c}`)})}).then(()=>t.close()).catch(c=>{this.log(`Could not close session: ${c}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${c}`)})})}}}Ns.CDMCleanupPromise=void 0;class Ui 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}}function Go(a,e){const t=a==="output-restricted",n=t?B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:B.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Ui({type:ae.KEY_SYSTEM_ERROR,details:n,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${a}"`)}class vc{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 Ho(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 Yo(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){ee.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){ee.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Ms(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 za(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=_c(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 yc(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 _c(a,e,t){const n=[],r=yc(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 ha(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 Ec extends Pa{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=ha(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;ha(n.textTracks).forEach(s=>{Ms(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,m)=>{f.id=m});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const f=kt(l,s);if(f>-1)i=s[f];else{const m=kt(l,this.tracks);i=this.tracks[m]}}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||qt(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Qs(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Qs(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(Na(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===_e.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&&qt(e,n))return n;const r=kt(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=kt(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=ha(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Na(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||!h(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 m=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(m)}}function bc(){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 Js(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const Os=.025;let pa=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function xc(a,e,t){return`${a.identifier}-${t+1}-${Js(e)}`}class Sc{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){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;return e<=0||isNaN(n)?!1:n===0?!0:(((t=this.assetList[e])==null?void 0:t.startOffset)||0)>n}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 ja(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=ja(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=h(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 ja(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)<Os))}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"?pa.Range:pa.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 Ac(this)}}function ja(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<Os)?e.start:e.start+e.duration}function Xo(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Va(a,e){for(;(t=a.assetList[++e])!=null&&t.error;)var t;return e}function Ac(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Fs(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class wc{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=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(d.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const s=()=>{this.hasDetails=!0};i.once(d.LEVEL_LOADED,s),i.once(d.AUDIO_TRACK_LOADED,s),i.once(d.SUBTITLE_TRACK_LOADED,s),i.on(d.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(d.BUFFER_APPENDED,()=>{const f=this.bufferedEnd;this.reachedPlayout(f)&&(this._bufferedEosTime=f,i.trigger(d.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=Xo(t,e.config.primarySessionId||"").href}catch(n){}e.loadSource(t)}}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e)return!1;const n=Math.min(this._bufferedEosTime||1/0,this.duration),r=this.timelineOffset,i=Je.bufferInfo(e,r,0);return this.getAssetTime(i.end)>=n-.02}reachedPlayout(e){const n=this.interstitial.playoutLimit;return this.startOffset+e>=n}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=Je.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;if(!e)return 0;const t=this.interstitial.playoutLimit;if(t){const n=t-this.startOffset;if(n>0&&n<e)return n}return e}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&&this.hls){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&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),(t=this.hls)==null||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,(e=this.hls)==null||e.detachMedia()}resumeBuffering(){var e;(e=this.hls)==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.hls)==null||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),((e=this.hls)==null?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=n=>delete n.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var r;(r=this.hls)==null||r.on(e,t)}once(e,t,n){var r;(r=this.hls)==null||r.once(e,t)}off(e,t,n){var r;(r=this.hls)==null||r.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Fs(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Qo=.033;class Cc extends ${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)||i===r-1))return i}}return 0}get assetIdAtEnd(){var e;const t=(e=this.items)==null||(e=e[this.length-1])==null?void 0:e.event;if(t){const n=t.assetList,r=n[n.length-1];if(r)return r.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 m=u.cue.pre,b=u.cue.post,T=f.cue.pre,R=f.cue.post;if(m&&!T)return-1;if(T&&!m||b&&!R)return 1;if(R&&!b)return-1;if(!m&&!T&&!b&&!R){const ie=u.startTime,q=f.startTime;if(ie!==q)return ie-q}return u.dateRange.tagOrder-f.dateRange.tagOrder}),this.events=s,c.forEach(u=>{this.removeEvent(u)}),this.updateSchedule(e,c)}updateSchedule(e,t=[],n=!1){const r=this.events||[];if(r.length||t.length||this.length<2){const i=this.items,s=this.parseSchedule(r,e);(n||t.length||(i==null?void 0:i.length)!==s.length||s.some((c,u)=>Math.abs(c.playout.start-i[u].playout.start)>.005||Math.abs(c.playout.end-i[u].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,i))}}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 Sc(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,m)=>{const b=f.cue.pre,T=f.cue.post,R=e[m-1]||null,ie=f.appendInPlace,q=T?i:f.startOffset,we=f.duration,ht=f.timelineOccupancy===pa.Range?we:0,rt=f.resumptionOffset,Ut=(R==null?void 0:R.startTime)===q,tn=q+f.cumulativeDuration;let _n=ie?tn+we:q+rt;if(b||!T&&q<=0){const un=u;u+=ht,f.timelineStart=tn;const fn=s;s+=we,n.push({event:f,start:tn,end:_n,playout:{start:fn,end:s},integrated:{start:un,end:u}})}else if(q<=i){if(!Ut){const Xt=q-c;if(Xt>Qo){const An=c,nr=u;u+=Xt;const fr=s;s+=Xt;const vr={previousEvent:e[m-1]||null,nextEvent:f,start:An,end:An+Xt,playout:{start:fr,end:s},integrated:{start:nr,end:u}};n.push(vr)}else Xt>0&&R&&(R.cumulativeDuration+=Xt,n[n.length-1].end=q)}T&&(_n=tn),f.timelineStart=tn;const un=u;u+=ht;const fn=s;s+=we,n.push({event:f,start:tn,end:_n,playout:{start:fn,end:s},integrated:{start:un,end:u}})}else return;const Yt=f.resumeTime;T||Yt>i?c=i:c=Yt}),c<i){var l;const f=c,m=u,b=i-c;u+=b;const T=s;s+=b,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:c,end:f+b,playout:{start:T,end:s},integrated:{start:m,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,m=u?0:f?r:l.startTime;this.updateAssetDurations(l),s===m?l.cumulativeDuration=i:(i=0,s=m),!f&&l.snapOptions.in&&(l.resumeAnchor=Pn(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<Qo&&(e[c+1].appendInPlace=!1,e[c+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const T=h(l.resumeOffset)?l.resumeOffset:l.duration;i+=T})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>Os?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):!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=Pn(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)<Os+f||Math.abs(u.end-n)<Os+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)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;for(let s=0;s<e.assetList.length;s++){const l=e.assetList[s],c=t+n;l.startOffset=n,l.timelineStart=c,r||(r=l.duration===null),i||(i=!!l.error);const u=l.error?0:l.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 Zi(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Tc{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Xo(n,this.hls.sessionId,e.baseUrl)}catch(b){const T=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,b,n);this.hls.trigger(d.ERROR,T);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},m={onSuccess:(b,T,R,ie)=>{const q=b.data,we=q==null?void 0:q.ASSETS;if(!Array.isArray(we)){const ht=this.assignAssetListError(e,B.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),R.url,T,ie);this.hls.trigger(d.ERROR,ht);return}e.assetListResponse=q,this.hls.trigger(d.ASSET_LIST_LOADED,{event:e,assetListResponse:q,networkDetails:ie})},onError:(b,T,R,ie)=>{const q=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${b.code} ${b.text} (${T.url})`),T.url,ie,R);this.hls.trigger(d.ERROR,q)},onTimeout:(b,T,R)=>{const ie=this.assignAssetListError(e,B.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${T.url})`),T.url,b,R);this.hls.trigger(d.ERROR,ie)}};return l.load(c,f,m),this.hls.trigger(d.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:ae.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Jo(a){a==null||a.play().catch(()=>{})}function ma(a,e){return`[${a}] Advancing timeline position to ${e}`}class Dc extends ${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||!this.schedule)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(!0),this.checkBuffer(),s&&n<l.start||n>=l.end){var c;const T=this.findItemIndex(l);let R=this.schedule.findItemIndexAtTime(n);if(R===-1&&(R=T+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${n} (resolving from ${T} to ${R})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&R>T){const ie=this.schedule.findJumpRestrictedIndex(T+1,R);if(ie>T){this.setSchedulePosition(ie);return}}this.setSchedulePosition(R);return}const u=this.playingAsset;if(!u){if(this.playingLastItem&&this.isInterstitial(l)){const T=l.event.assetList[0];T&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,T))}return}const f=u.timelineStart,m=u.duration||0;if(s&&n<f||n>=f+m){var b;(b=l.event)!=null&&b.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(n)),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;if(!i)return;const s=this.playingItem,l=i.events||[],c=i.items||[],u=i.durations,f=n.map(ie=>ie.identifier),m=!!(l.length||f.length);(m||r)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
Schedule: ${c.map(ie=>Zi(ie))} pos: ${this.timelinePos}`),f.length&&this.log(`Removed events ${f}`);let b=null,T=null;s&&(b=this.updateItem(s,this.timelinePos),this.itemsMatch(s,b)?this.playingItem=b:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const R=this.bufferingItem;if(R&&(T=this.updateItem(R,this.bufferedPos),this.itemsMatch(R,T)?this.bufferingItem=T:R.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(R.event,null))),n.forEach(ie=>{ie.assetList.forEach(q=>{this.clearAssetPlayer(q.identifier,null)})}),this.playerQueue.forEach(ie=>{if(ie.interstitial.appendInPlace){const q=ie.assetItem.timelineStart,we=ie.timelineOffset-q;if(we)try{ie.timelineOffset=q}catch(ht){Math.abs(we)>Os&&this.warn(`${ht} ("${ie.assetId}" ${ie.timelineOffset}->${q})`)}}}),m||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}s&&this.trimInPlace(b,s),R&&T!==b&&this.trimInPlace(T,R),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Tc(e),this.schedule=new Cc(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(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.schedule=this.manager=null,this.hls=this.HlsPlayerClass=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){ci(e,"play",this.onPlay),ci(e,"pause",this.onPause),ci(e,"seeking",this.onSeeking),ci(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;ai(n,"seeking",this.onSeeking),ai(n,"timeupdate",this.onTimeupdate),ai(n,"play",this.onPlay),ai(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.log("clear schedule state"),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.log(`Removing schedule state for detachedData and ${i}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=m=>m&&e.getAssetPlayer(m.identifier),r=(m,b,T,R,ie)=>{if(m){let q=m[b].start;const we=m.event;if(we){if(b==="playout"||we.timelineOccupancy!==pa.Point){const ht=n(T);(ht==null?void 0:ht.interstitial)===we&&(q+=ht.assetItem.startOffset+ht[ie])}}else{const ht=R==="bufferedPos"?s():e[R];q+=ht-m.start}return q}return 0},i=(m,b)=>{var T;if(m!==0&&b!=="primary"&&(T=e.schedule)!=null&&T.length){var R;const ie=e.schedule.findItemIndexAtTime(m),q=(R=e.schedule.items)==null?void 0:R[ie];if(q){const we=q[b].start-q.start;return m+we}}return m},s=()=>{const m=e.bufferedPos;return m===Number.MAX_VALUE?l("primary"):Math.max(m,0)},l=m=>{var b,T;return(b=e.primaryDetails)!=null&&b.live?e.primaryDetails.edge:((T=e.schedule)==null?void 0:T.durations[m])||0},c=(m,b)=>{var T,R;const ie=e.effectivePlayingItem;if(ie!=null&&(T=ie.event)!=null&&T.restrictions.skip||!e.schedule)return;e.log(`seek to ${m} "${b}"`);const q=e.effectivePlayingItem,we=e.schedule.findItemIndexAtTime(m,b),ht=(R=e.schedule.items)==null?void 0:R[we],rt=e.getBufferingPlayer(),Ut=rt==null?void 0:rt.interstitial,tn=Ut==null?void 0:Ut.appendInPlace,_n=q&&e.itemsMatch(q,ht);if(q&&(tn||_n)){const Yt=n(e.playingAsset),un=(Yt==null?void 0:Yt.media)||e.primaryMedia;if(un){const fn=b==="primary"?un.currentTime:r(q,b,e.playingAsset,"timelinePos","currentTime"),Xt=m-fn,An=(tn?fn:un.currentTime)+Xt;if(An>=0&&(!Yt||tn||An<=Yt.duration)){un.currentTime=An;return}}}if(ht){let Yt=m;if(b!=="primary"){const fn=ht[b].start,Xt=m-fn;Yt=ht.start+Xt}const un=!e.isInterstitial(ht);if((!e.isInterstitial(q)||q.event.appendInPlace)&&(un||ht.event.appendInPlace)){const fn=e.media||(tn?rt==null?void 0:rt.media:null);fn&&(fn.currentTime=Yt)}else if(q){const fn=e.findItemIndex(q);if(we>fn){const An=e.schedule.findJumpRestrictedIndex(fn+1,we);if(An>fn){e.setSchedulePosition(An);return}}let Xt=0;if(un)e.timelinePos=Yt,e.checkBuffer();else{const An=ht.event.assetList,nr=m-(ht[b]||ht).start;for(let fr=An.length;fr--;){const vr=An[fr];if(vr.duration&&nr>=vr.startOffset&&nr<vr.startOffset+vr.duration){Xt=fr;break}}}e.setSchedulePosition(we,Xt)}}},u=()=>{const m=e.effectivePlayingItem;if(e.isInterstitial(m))return m;const b=t();return e.isInterstitial(b)?b:null},f={get bufferedEnd(){const m=t(),b=e.bufferingItem;if(b&&b===m){var T;return r(b,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-b.playout.start||((T=e.bufferingAsset)==null?void 0:T.startOffset)||0}return 0},get currentTime(){const m=u(),b=e.effectivePlayingItem;return b&&b===m?r(b,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-b.playout.start:0},set currentTime(m){const b=u(),T=e.effectivePlayingItem;T&&T===b&&c(m+T.playout.start,"playout")},get duration(){const m=u();return m?m.playout.end-m.playout.start:0},get assetPlayers(){var m;const b=(m=u())==null?void 0:m.event.assetList;return b?b.map(T=>e.getAssetPlayer(T.identifier)):[]},get playingIndex(){var m;const b=(m=u())==null?void 0:m.event;return b&&e.effectivePlayingAsset?b.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return u()}};return this.manager={get events(){var m;return((m=e.schedule)==null||(m=m.events)==null?void 0:m.slice(0))||[]},get schedule(){var m;return((m=e.schedule)==null||(m=m.items)==null?void 0:m.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 m=t();return e.findItemIndex(m)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const m=e.effectivePlayingItem;return e.findItemIndex(m)},primary:{get bufferedEnd(){return s()},get currentTime(){const m=e.timelinePos;return m>0?m:0},set currentTime(m){c(m,"primary")},get duration(){return l("primary")},get seekableStart(){var m;return((m=e.primaryDetails)==null?void 0:m.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(m){c(m,"integrated")},get duration(){return l("integrated")},get seekableStart(){var m;return i(((m=e.primaryDetails)==null?void 0:m.fragmentStart)||0,"integrated")}},skip:()=>{const m=e.effectivePlayingItem,b=m==null?void 0:m.event;if(b&&!b.restrictions.skip){const T=e.findItemIndex(m);if(b.appendInPlace){const R=m.playout.start+m.event.duration;c(R+.001,"playout")}else e.advanceAfterAssetEnded(b,T,1/0)}}}}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;if(this.mediaSelection===null)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let r=this.media;!r&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(r=this.primaryMedia);const i=(t=r)==null?void 0:t.currentTime;if(!(i===void 0||!h(i)))return i}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} ${Qt(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 R=this.getBufferingPlayer();R?(i=R.transferMedia(),f=`${R}`):f="detached MediaSource"}else f="detached media";if(!i){if(u)i=this.detachedData,this.log(`using detachedData: MediaSource ${Qt(i)}`);else if(!this.detachedData||s.media===t){const R=this.playerQueue;R.length>1&&R.forEach(ie=>{if(l&&ie.interstitial.appendInPlace!==c){const q=ie.interstitial;this.clearInterstitial(ie.interstitial,null),q.appendInPlace=!1,q.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${q}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const m=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",b=m&&i?i:t;this.log(`${m?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${f} (media.currentTime: ${t.currentTime})`);const T=this.schedule;if(b===i&&T){const R=l&&e.assetId===T.assetIdAtEnd;b.overrides={duration:T.duration,endOfStream:!l||R,cueRemoval:!l}}e.attachMedia(b)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e==null?void 0: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.log(ma("checkStart",i)),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)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),i=Va(n,r);if(!n.isAssetPastPlayoutLimit(i))this.bufferedToEvent(e,i);else if(this.schedule){var s;const l=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(e)+1];l&&this.bufferedToItem(l)}}advanceAfterAssetEnded(e,t,n){const r=Va(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){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.log(ma("advanceAfterAssetEnded",c)),this.timelinePos=c,e.appendInPlace&&this.advanceInPlace(c),this.checkBuffer(this.bufferedPos<c)),this.setSchedulePosition(s)}}}else{if(e.appendInPlace){const i=e.assetList[r];i&&this.advanceInPlace(i.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),l=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,s,l-1)}}setSchedulePosition(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r||this.playbackDisabled)return;const i=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${i&&Zi(i)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const f=s.event,m=this.playingAsset,b=m==null?void 0:m.identifier,T=b?this.getAssetPlayer(b):null;if(T&&b&&(!this.eventItemsMatch(s,i)||t!==void 0&&b!==f.assetList[t].identifier)){var c;const R=f.findAssetIndex(m);if(this.log(`INTERSTITIAL_ASSET_ENDED ${R+1}/${f.assetList.length} ${Fs(m)}`),this.endedAsset=m,this.playingAsset=null,this.hls.trigger(d.INTERSTITIAL_ASSET_ENDED,{asset:m,assetListIndex:R,event:f,schedule:r.slice(0),scheduleIndex:e,player:T}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(f,this.findItemIndex(this.playingItem),R);return}this.retreiveMediaSource(b,i),T.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&T.detachMedia()}if(!this.eventItemsMatch(s,i)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${f} ${Zi(s)}`),f.hasPlayed=!0,this.hls.trigger(d.INTERSTITIAL_ENDED,{event:f,schedule:r.slice(0),scheduleIndex:e}),f.cue.once)){var u;this.updateSchedule();const R=(u=this.schedule)==null?void 0:u.items;if(i&&R){const ie=this.findItemIndex(i);this.advanceSchedule(ie,R,t,s,l)}return}}this.advanceSchedule(e,r,t,s,l)}advanceSchedule(e,t,n,r,i){const s=this.schedule;if(!s)return;const l=t[e]||null,c=this.primaryMedia,u=this.playerQueue;if(u.length&&u.forEach(f=>{const m=f.interstitial,b=s.findEventIndex(m.identifier);(b<e||b>e+1)&&this.clearInterstitial(m,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const f=l.event;if(n===void 0){n=s.findAssetIndex(f,this.timelinePos);const R=Va(f,n-1);if(f.isAssetPastPlayoutLimit(R)||f.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(f,e,n);return}n=R}const m=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let b=this.preloadAssets(f,n);if(this.eventItemsMatch(l,m||r)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${Zi(l)} ${f.appendInPlace?"append in place":""}`),this.hls.trigger(d.INTERSTITIAL_STARTED,{event:f,schedule:t.slice(0),scheduleIndex:e})),!f.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${f}`);return}if(f.assetListLoader&&(f.assetListLoader.destroy(),f.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${f}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const T=f.assetList[n];if(!T){this.advanceAfterAssetEnded(f,e,n||0);return}if(b||(b=this.getAssetPlayer(T.identifier)),b===null||b.destroyed){const R=f.assetList.length;this.warn(`asset ${n+1}/${R} player destroyed ${f}`),b=this.createAssetPlayer(f,T,n),b.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&f.appendInPlace&&this.isAssetBuffered(T))return;this.startAssetPlayer(b,n,t,e,c),this.shouldPlay&&Jo(b.media)}else l?(this.resumePrimary(l,e,r),this.shouldPlay&&Jo(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e;return(e=this.mediaSelection)==null?void 0:e.main.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r,i;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Zi(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let l=this.timelinePos;(l<e.start||l>=e.end)&&(l=this.getPrimaryResumption(e,t),this.log(ma("resumePrimary",l)),this.timelinePos=l),this.attachPrimary(l,e)}if(!n)return;const s=(i=this.schedule)==null?void 0:i.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Zi(e)}`),this.hls.trigger(d.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.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:Je.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.log(ma("attachPrimary",e)),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(){var e;this.stopLoad(),(e=this.schedule)==null||e.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||!this.schedule)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=Ct(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setAudioOption(t)||r.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=Ct(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setSubtitleOption(t)||t.id!==-1&&r.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){if(!this.schedule)return;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){var n;const r=(n=this.schedule)==null?void 0:n.items;if(e&&r){const i=this.findItemIndex(e,t);return r[i]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((i,s)=>{e.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(i.identifier,null)});const n=e.end+.25,r=Je.bufferInfo(this.primaryMedia,n,0);(r.end>n||(r.nextStart||0)>n)&&(this.log(`trim buffered interstitial ${Zi(e)} (was ${Zi(t)})`),this.attachPrimary(n,null,!0),this.flushFrontBuffer(n))}}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?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t;const n=this.mediaSelection;n&&((t=this.schedule)==null||t.updateSchedule(n,[],e))}checkBuffer(e){var t;const n=(t=this.schedule)==null?void 0:t.items;if(!n)return;const r=Je.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,n,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e||!r)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;const f=this.findItemIndex(i),m=Math.min(f+1,t.length-1),b=t[m];if((c===-1&&i&&e>=i.end||(u=b.event)!=null&&u.appendInPlace&&e+.01>=b.start)&&(c=m),this.isInterstitial(i)){const T=i.event;if(m-l>1&&T.appendInPlace===!1||T.assetList.length===0&&T.assetListLoader)return}if(this.bufferedPos=e,c>f&&c>l)this.bufferedToItem(b);else{const T=this.primaryDetails;this.primaryLive&&T&&e>T.edge-T.targetduration&&b.start<T.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(b)&&this.preloadAssets(b.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)&&n){const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),l=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const c=l?l.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Zi(e)}`+(t?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const u=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((f,m)=>{const b=this.getAssetPlayer(f.identifier);b&&(m===u&&b.loadSource(),b.resumeBuffering())})}else 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)})}else this.bufferingItem!==e&&(this.bufferingItem=e);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=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}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 b=this.playingItem;!this.isInterstitial(b)&&(b==null||(l=b.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 b=f-c;b>0&&(u=Math.round(b*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 m=this.assetListLoader.loadAssetList(e,u);m&&(e.assetListLoader=m)}else if(!s&&r){for(let u=t;u<r;u++){const f=e.assetList[u],m=this.getAssetPlayerQueueIndex(f.identifier);(m===-1||this.playerQueue[m].destroyed)&&!f.error&&this.createAssetPlayer(e,f,u)}const c=e.assetList[t];if(c){const u=this.getAssetPlayer(c.identifier);return u&&u.loadSource(),u}}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:xc(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig;let s=i.videoPreference;const l=r.loadLevelObj||r.levels[r.currentLevel];(s||l)&&(s=p({},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 Ut=this.timelinePos-t.timelineStart;if(Ut>1){const tn=t.duration;tn&&Ut<tn&&(f=Ut)}}const m=t.identifier,b=x(x({},i),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:m,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&&(b.timelineOffset=t.timelineStart));const T=b.cmcd;T!=null&&T.sessionId&&T.contentId&&(b.cmcd=p({},T,{contentId:Js(t.uri)})),this.getAssetPlayer(m)&&this.warn(`Duplicate date range identifier ${e} and asset ${m}`);const R=new wc(this.HlsPlayerClass,b,e,t);this.playerQueue.push(R),e.assetList[n]=t;let ie=!0;const q=Ut=>{if(Ut.live){var tn;const un=new Error(`Interstitials MUST be VOD assets ${e}`),fn={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:un},Xt=((tn=this.schedule)==null?void 0:tn.findEventIndex(e.identifier))||-1;this.handleAssetItemError(fn,e,Xt,n,un.message);return}const _n=Ut.edge-Ut.fragmentStart,Yt=t.duration;(ie||Yt===null||_n>Yt)&&(ie=!1,this.log(`Interstitial asset "${m}" duration change ${Yt} > ${_n}`),t.duration=_n,this.updateSchedule())};R.on(d.LEVEL_UPDATED,(Ut,{details:tn})=>q(tn)),R.on(d.LEVEL_PTS_UPDATED,(Ut,{details:tn})=>q(tn)),R.on(d.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const we=(Ut,tn)=>{const _n=this.getAssetPlayer(m);if(_n&&tn.tracks){_n.off(d.BUFFER_CODECS,we),_n.tracks=tn.tracks;const Yt=this.primaryMedia;this.bufferingAsset===_n.assetItem&&Yt&&!_n.media&&this.bufferAssetPlayer(_n,Yt)}};R.on(d.BUFFER_CODECS,we);const ht=()=>{var Ut;const tn=this.getAssetPlayer(m);if(this.log(`buffered to end of asset ${tn}`),!tn||!this.schedule)return;const _n=this.schedule.findEventIndex(e.identifier),Yt=(Ut=this.schedule.items)==null?void 0:Ut[_n];this.isInterstitial(Yt)&&this.advanceAssetBuffering(Yt,t)};R.on(d.BUFFERED_TO_END,ht);const rt=Ut=>()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;this.shouldPlay=!0;const _n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,_n,Ut)};return R.once(d.MEDIA_ENDED,rt(n)),R.once(d.PLAYOUT_LIMIT_REACHED,rt(1/0)),R.on(d.ERROR,(Ut,tn)=>{if(!this.schedule)return;const _n=this.getAssetPlayer(m);if(tn.details===B.BUFFER_STALLED_ERROR){if(_n!=null&&_n.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(tn,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${tn.error} ${e}`)}),R.on(d.DESTROYING,()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;const tn=new Error(`Asset player destroyed unexpectedly ${m}`),_n={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:tn};this.handleAssetItemError(_n,e,this.schedule.findEventIndex(e.identifier),n,tn.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Fs(t)}`),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()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(t!==-1){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){const r=this.playerQueue[n];this.log(`clear ${r} toSegment: ${t&&Zi(t)}`),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} ${Fs(l)}`),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;if(!this.schedule)return;const{interstitial:i,assetItem:s}=e,l=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[l];if(!c)return;e.loadSource(),this.setBufferingItem(c),this.bufferingAsset=s;const u=this.getBufferingPlayer();if(u===e)return;const f=i.appendInPlace;if(f&&(u==null?void 0:u.interstitial.appendInPlace)===!1)return;const m=(u==null?void 0:u.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(f&&s!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(m&&!me(m,e.tracks)){const b=new Error(`Asset ${Fs(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(m)}')`),T={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:b},R=i.findAssetIndex(s);this.handleAssetItemError(T,i,l,R,b.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,i=t.findAssetIndex(e,r),s=e.assetList[i];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||r-s.timelineStart,u=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+u} in ${l} ${e} (media.currentTime: ${r})`),c&&(u/n.playbackRate<.5||l.bufferedInPlaceToEnd(n))&&l.hls){const f=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,f,i)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,r,i){if(e.details===B.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${s&&Fs(s)} ${e.error}`),!this.schedule)return;const l=(s==null?void 0:s.identifier)||"",c=this.getAssetPlayerQueueIndex(l),u=this.playerQueue[c]||null,f=this.schedule.items,m=p({},e,{fatal:!1,errorAction:mt(!0),asset:s,assetListIndex:r,event:t,schedule:f,scheduleIndex:n,player:u});if(this.hls.trigger(d.INTERSTITIAL_ASSET_ERROR,m),!e.fatal)return;const b=this.playingAsset,T=this.bufferingAsset,R=new Error(i);if(s&&(this.clearAssetPlayer(l,null),s.error=R),!t.assetList.some(ie=>!ie.error))t.error=R;else for(let ie=r;ie<t.assetList.length;ie++)this.resetAssetPlayer(t.assetList[ie].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):b&&b.identifier===l?this.advanceAfterAssetEnded(t,n,r):T&&T.identifier===l&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,T)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${Zi(n)} error: ${e.error}`);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),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(e,t){var n,r;const i=t.event,s=i.identifier,l=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(s)))return;const c=i.timelineStart,u=i.duration;let f=0;l.forEach((ie,q)=>{const we=parseFloat(ie.DURATION);this.createAsset(i,q,f,c+f,we,ie.URI),f+=we}),i.duration=f,this.log(`Loaded asset-list with duration: ${f} (was: ${u}) ${i}`);const m=this.waitingItem,b=(m==null?void 0:m.event.identifier)===s;this.updateSchedule();const T=(r=this.bufferingItem)==null?void 0:r.event;if(b){var R;const ie=this.schedule.findEventIndex(s),q=(R=this.schedule.items)==null?void 0:R[ie];if(q){if(!this.playingItem&&this.timelinePos>q.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==ie){i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),this.updateSchedule(!0),this.primaryFallback(i);return}this.setBufferingItem(q)}this.setSchedulePosition(ie)}else if((T==null?void 0:T.identifier)===s){const ie=i.assetList[0];if(ie){const q=this.getAssetPlayer(ie.identifier);if(T.appendInPlace){const we=this.primaryMedia;q&&we&&this.bufferAssetPlayer(q,we)}else q&&q.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case B.ASSET_LIST_PARSING_ERROR:case B.ASSET_LIST_LOAD_ERROR:case B.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case B.BUFFER_STALLED_ERROR:{const n=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&n.event.appendInPlace){this.handleInPlaceStall(n.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const qo=500;class Rc extends Bi{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",te.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=bn.IDLE,this.setInterval(qo),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(this.fragContextChanged(n)||(He(n)&&(this.fragPrevious=n),this.state=bn.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,te.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===te.SUBTITLE&&(t.details===B.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==bn.STOPPED&&(this.state=bn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&To(this.levels,t)){this.levels=t.map(n=>new At(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new At(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,te.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!==bn.STOPPED&&this.setInterval(qo)}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){if(s.deltaUpdateFailed)return;const m=this.mainDetails;if(!m){this.startFragRequested=!1;return}const b=m.fragments[0];if(!c.details)s.hasProgramDateTime&&m.hasProgramDateTime?(_i(s,m),u=s.fragmentStart):b&&(u=b.start,mi(s,u));else{var f;u=this.alignPlaylists(s,c.details,(f=this.levelLastLoaded)==null?void 0:f.details),u===0&&b&&(u=b.start,mi(s,u))}m&&!this.startFragRequested&&this.setStartPosition(m,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===bn.IDLE&&(Pn(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&&Fr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,br(r.method)).catch(l=>{throw i.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.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=bn.IDLE})}}doTick(){if(!this.media){this.state=bn.IDLE;return}if(this.state===bn.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=Je.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 m=u.fragments,b=m.length,T=u.edge;let R=null;const ie=this.fragPrevious;if(l<T){const ht=r.maxFragLookUpTolerance,rt=l>T-ht?0:ht;R=Pn(ie,m,Math.max(m[0].start,l),rt),!R&&ie&&ie.start<m[0].start&&(R=m[0])}else R=m[b-1];if(R=this.filterReplacedPrimary(R,n.details),!R)return;const q=R.sn-u.startSN,we=m[q-1];if(we&&we.cc===R.cc&&this.fragmentTracker.getState(we)===ft.NOT_LOADED&&(R=we),this.fragmentTracker.getState(R)===ft.NOT_LOADED){const ht=this.mapToInitFragWhenRequired(R);ht&&this.loadFragment(ht,n,l)}}}loadFragment(e,t,n){He(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Ic(this.tracksBuffered[this.currentTrackId]||[])}}class Ic{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 Lc={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},$o=a=>String.fromCharCode(Lc[a]||a),Ki=15,cs=100,kc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Pc={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Nc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Mc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Oc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Fc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;ee.log(`${this.time} [${e}] ${n}`)}}}const Ss=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class el{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 Bc{constructor(){this.uchar=" ",this.penState=new el}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 Uc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new el,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<cs;t++)this.chars.push(new Bc);this.logger=e}equals(e){for(let t=0;t<cs;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<cs;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<cs;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>cs&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=cs)}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=$o(e);if(this.pos>=cs){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<cs;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<cs;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 Wa{constructor(e){this.rows=[],this.currRow=Ki-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ki;t++)this.rows.push(new Uc(e));this.logger=e}reset(){for(let e=0;e<Ki;e++)this.rows[e].clear();this.currRow=Ki-1}equals(e){let t=!0;for(let n=0;n<Ki;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ki;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ki;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 = "+Qt(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<Ki;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 = "+Qt(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<Ki;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 tl{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 Wa(n),this.nonDisplayedMemory=new Wa(n),this.lastOutputScreen=new Wa(n),this.currRollUpRow=this.displayedMemory.rows[Ki-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[Ki-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: "+Qt(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 nl{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Kc(),this.logger=void 0;const r=this.logger=new Fc;this.channels=[null,new tl(e,t,r),new tl(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,()=>"["+Ss([t[n],t[n+1]])+"] -> ("+Ss([r,i])+")");const c=this.cmdHistory;if(r>=16&&r<=31){if(Zc(r,i,c)){ga(null,null,c),this.logger.log(3,()=>"Repeated command ("+Ss([r,i])+") is dropped");continue}ga(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 ga(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 "+Ss([r,i])+" orig: "+Ss([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 ("+Ss([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?kc[e]:Nc[e]:n=s===1?Pc[e]:Mc[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 '"+$o(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 = "+Ss(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=Oc[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const 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()}ga(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 ga(a,e,t){t.a=a,t.b=e}function Zc(a,e,t){return t.a===a&&t.b===e}function Kc(){return{a:null,b:null}}var Ga=function(){if(dr!=null&&dr.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 m in f)l[m]=f[m]}return l}function s(l,c,u){const f=this,m={enumerable:!0};f.hasBeenReset=!1;let b="",T=!1,R=l,ie=c,q=u,we=null,ht="",rt=!0,Ut="auto",tn="start",_n=50,Yt="middle",un=50,fn="middle";Object.defineProperty(f,"id",i({},m,{get:function(){return b},set:function(Xt){b=""+Xt}})),Object.defineProperty(f,"pauseOnExit",i({},m,{get:function(){return T},set:function(Xt){T=!!Xt}})),Object.defineProperty(f,"startTime",i({},m,{get:function(){return R},set:function(Xt){if(typeof Xt!="number")throw new TypeError("Start time must be set to a number.");R=Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",i({},m,{get:function(){return ie},set:function(Xt){if(typeof Xt!="number")throw new TypeError("End time must be set to a number.");ie=Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"text",i({},m,{get:function(){return q},set:function(Xt){q=""+Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",i({},m,{get:function(){return we},set:function(Xt){we=Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",i({},m,{get:function(){return ht},set:function(Xt){const An=n(Xt);if(An===!1)throw new SyntaxError("An invalid or illegal string was specified.");ht=An,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",i({},m,{get:function(){return rt},set:function(Xt){rt=!!Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",i({},m,{get:function(){return Ut},set:function(Xt){if(typeof Xt!="number"&&Xt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Ut=Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",i({},m,{get:function(){return tn},set:function(Xt){const An=r(Xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");tn=An,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",i({},m,{get:function(){return _n},set:function(Xt){if(Xt<0||Xt>100)throw new Error("Position must be between 0 and 100.");_n=Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",i({},m,{get:function(){return Yt},set:function(Xt){const An=r(Xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");Yt=An,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",i({},m,{get:function(){return un},set:function(Xt){if(Xt<0||Xt>100)throw new Error("Size must be between 0 and 100.");un=Xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",i({},m,{get:function(){return fn},set:function(Xt){const An=r(Xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");fn=An,this.hasBeenReset=!0}})),f.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class zc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function rl(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 jc{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 il(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 Ha=new Ga(0,0,""),va=Ha.align==="middle"?"middle":"center";function Vc(a,e,t){const n=a;function r(){const l=rl(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 jc;il(l,function(b,T){let R;switch(b){case"region":for(let ie=t.length-1;ie>=0;ie--)if(t[ie].id===T){u.set(b,t[ie].region);break}break;case"vertical":u.alt(b,T,["rl","lr"]);break;case"line":R=T.split(","),u.integer(b,R[0]),u.percent(b,R[0])&&u.set("snapToLines",!1),u.alt(b,R[0],["auto"]),R.length===2&&u.alt("lineAlign",R[1],["start",va,"end"]);break;case"position":R=T.split(","),u.percent(b,R[0]),R.length===2&&u.alt("positionAlign",R[1],["start",va,"end","line-left","line-right","auto"]);break;case"size":u.percent(b,T);break;case"align":u.alt(b,T,["start",va,"end","left","right"]);break}},/:/,/\s/),c.region=u.get("region",null),c.vertical=u.get("vertical","");let f=u.get("line","auto");f==="auto"&&Ha.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",va);let m=u.get("position","auto");m==="auto"&&Ha.position===50&&(m=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=m}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 sl(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class Wc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new zc,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=sl(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){il(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 Ga(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Vc(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 Gc=/\r\n|\n\r|\n|\r/g,Ya=function(e,t,n=0){return e.slice(n,n+t.length)===t},Hc=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(!h(t)||!h(n)||!h(r)||!h(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function Xa(a,e,t){return Js(a.toString())+Js(e.toString())+Js(t)}const Yc=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 Xc(a,e,t,n,r,i,s){const l=new Wc,c=ot(new Uint8Array(a)).trim().replace(Gc,`
`).split(`
`),u=[],f=e?su(e.baseTime,e.timescale):0;let m="00:00.000",b=0,T=0,R,ie=!0;l.oncue=function(q){const we=t[n];let ht=t.ccOffset;const rt=(b-f)/9e4;if(we!=null&&we.new&&(T!==void 0?ht=t.ccOffset=we.start:Yc(t,n,rt)),rt){if(!e){R=new Error("Missing initPTS for VTT MPEGTS");return}ht=rt-t.presentationOffset}const Ut=q.endTime-q.startTime,tn=Li((q.startTime+ht-T)*9e4,r*9e4)/9e4;q.startTime=Math.max(tn,0),q.endTime=Math.max(tn+Ut,0);const _n=q.text.trim();q.text=decodeURIComponent(encodeURIComponent(_n)),q.id||(q.id=Xa(q.startTime,q.endTime,_n)),q.endTime>0&&u.push(q)},l.onparsingerror=function(q){R=q},l.onflush=function(){if(R){s(R);return}i(u)},c.forEach(q=>{if(ie)if(Ya(q,"X-TIMESTAMP-MAP=")){ie=!1,q.slice(16).split(",").forEach(we=>{Ya(we,"LOCAL:")?m=we.slice(6):Ya(we,"MPEGTS:")&&(b=parseInt(we.slice(7)))});try{T=Hc(m)/1e3}catch(we){R=we}return}else q===""&&(ie=!1);l.parse(q+`
`)}),l.flush()}const Qa="stpp.ttml.im1t",al=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ol=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Qc={left:"start",center:"center",right:"end",start:"start",end:"end"};function ll(a,e,t,n){const r=V(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(l=>ot(l)),s=iu(e.baseTime,1,e.timescale);try{i.forEach(l=>t(Jc(l,s)))}catch(l){n(l)}}function Jc(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((m,b)=>(m[b]=r.getAttribute(`ttp:${b}`)||i[b],m),{}),l=r.getAttribute("xml:space")!=="preserve",c=ul(Ja(r,"styling","style")),u=ul(Ja(r,"layout","region")),f=Ja(r,"body","[begin]");return[].map.call(f,m=>{const b=cl(m,l);if(!b||!m.hasAttribute("begin"))return null;const T=$a(m.getAttribute("begin"),s),R=$a(m.getAttribute("dur"),s);let ie=$a(m.getAttribute("end"),s);if(T===null)throw dl(m);if(ie===null){if(R===null)throw dl(m);ie=T+R}const q=new Ga(T-e,ie-e,b);q.id=Xa(q.startTime,q.endTime,q.text);const we=u[m.getAttribute("region")],ht=c[m.getAttribute("style")],rt=qc(we,ht,c),{textAlign:Ut}=rt;if(Ut){const tn=Qc[Ut];tn&&(q.lineAlign=tn),q.align=Ut}return p(q,rt),q}).filter(m=>m!==null)}function Ja(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function ul(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function cl(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?cl(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function qc(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=qa(e,n,c)||qa(a,n,c)||qa(r,n,c);return u&&(l[c]=u),l},{})}function qa(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function dl(a){return new Error(`Could not parse ttml timestamp ${a}`)}function $a(a,e){if(!a)return null;let t=rl(a);return t===null&&(al.test(a)?t=$c(a,e):ol.test(a)&&(t=ed(a,e))),t}function $c(a,e){const t=al.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 ed(a,e){const t=ol.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 ya{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 td{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=pl(),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 ya(this,"textTrack1"),t=new ya(this,"textTrack2"),n=new ya(this,"textTrack3"),r=new ya(this,"textTrack4");this.cea608Parser1=new nl(1,e,t),this.cea608Parser2=new nl(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let l=i.length;l--;){const c=i[l],u=nd(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,trackId:s}){const{unparsedVttFrags:l}=this;n===te.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(c=>{this.initPTS[c.frag.cc]?this.onFragLoaded(d.FRAG_LOADED,c):this.hls.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(hl(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,Ms(n[e]),Ho(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=>{Ms(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pl(),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++)Ms(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===Qa);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(To(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?ha(s.textTracks):null;if(this.tracks.forEach((c,u)=>{let f;if(l){let m=null;for(let b=0;b<l.length;b++)if(l[b]&&hl(l[b],c)){m=l[b],l[b]=null;break}m&&(f=m)}if(f)Ms(f);else{const m=fl(c);f=this.createTextTrack(m,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===te.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===te.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===Qa?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;ll(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?Ye(n.initSegment.data,new Uint8Array(r)).buffer:r;Xc(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 m=f.message==="Missing initPTS for VTT MPEGTS";m?s.push(e):this._fallbackToIMSC1(n,r),c.logger.log(`Failed to parse VTT cue: ${f}`),!(m&&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||ll(t,this.initPTS[e.cc],()=>{n.textCodec=Qa,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=>Yo(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===te.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===te.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=>za(l[c],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>za(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 fl(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function hl(a,e){return!!a&&a.kind===fl(e)&&Na(e,a)}function nd(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function pl(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const rd=/\s/,id={newCue(a,e,t,n){const r=[];let i,s,l,c,u;const f=self.VTTCue||self.TextTrackCue;for(let b=0;b<n.rows.length;b++)if(i=n.rows[b],l=!0,c=0,u="",!i.isEmpty()){var m;for(let ie=0;ie<i.chars.length;ie++)rd.test(i.chars[ie].uchar)&&l?c++:(u+=i.chars[ie].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),c>=16?c--:c++;const T=sl(u.trim()),R=Xa(e,t,T);a!=null&&(m=a.cues)!=null&&m.getCueById(R)||(s=new f(e,t,T),s.id=R,s.line=b+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((b,T)=>b.line==="auto"||T.line==="auto"?0:b.line>8&&T.line>8?T.line-b.line:b.line-T.line),r.forEach(b=>Yo(a,b))),r}};function sd(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const ad=/(\d+)-(\d+)\/(\d+)/;class ml{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||cd,this.controller=new self.AbortController,this.stats=new v}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=od(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&&h(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Xs(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(m=>{var b;this.response=this.loader=m;const T=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-(T-r.loading.start)),!m.ok){const{status:ie,statusText:q}=m;throw new dd(q||"fetch, bad network response",ie,m)}r.loading.first=T,r.total=ud(m.headers)||r.total;const R=(b=this.callbacks)==null?void 0:b.onProgress;return R&&h(t.highWaterMark)?this.loadProgressively(m,r,e,t.highWaterMark,R):s?m.arrayBuffer():e.responseType==="json"?m.json():m.text()}).then(m=>{var b,T;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 ie=m[l];ie&&(r.loaded=r.total=ie);const q={url:R.url,data:m,code:R.status},we=(b=this.callbacks)==null?void 0:b.onProgress;we&&!h(t.highWaterMark)&&we(r,e,m,R),(T=this.callbacks)==null||T.onSuccess(q,r,e,R)}).catch(m=>{var b;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const T=m&&m.code||0,R=m?m.message:null;(b=this.callbacks)==null||b.onError({code:T,text:R},e,m?m.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,m=f.length;return t.loaded+=m,m<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 od(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(p({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function ld(a){const e=ad.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function ud(a){const e=a.get("Content-Range");if(e){const n=ld(e);if(h(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function cd(a,e){return new self.Request(a.url,e)}class dd extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const fd=/^age:\s*[\d.]+\s*$/im;class gl{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 v,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&&h(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 ie=t.responseType==="arraybuffer"?R.byteLength:R.length;n.loaded=n.total=ie,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const q=(s=this.callbacks)==null?void 0:s.onProgress;q&&q(n,e,R,t);const we={url:t.responseURL,data:R,code:u};(l=this.callbacks)==null||l.onSuccess(we,n,e,t);return}}const m=i.loadPolicy.errorRetry,b=n.retry,T={url:e.url,data:void 0,code:u};if(zn(m,b,!1,T))this.retry(m);else{var c;ee.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(zn(e,t,!0))this.retry(e);else{var n;ee.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=Mn(e,n.retry),n.retry++,ee.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&&fd.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 hd={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},pd=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,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",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:gl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Cn,bufferController:Eu,capLevelController:Oa,errorController:ut,fpsController:vc,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:sr,requireKeySystemAccessOnStart:!1,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,preserveManualLevelOnError:!1,certLoadPolicy:{default:hd},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},md()),{},{subtitleStreamController:Rc,subtitleTrackController:Ec,timelineController:td,audioStreamController:gu,audioTrackController:vu,emeController:Ns,cmcdController:pc,contentSteeringController:gc,interstitialsController:Dc});function md(){return{cueHandler:id,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 gd(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=eo(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 m=`${s}Loading${f}`,b=e[m];if(b!==void 0&&c){u.push(m);const T=n[l].default;switch(e[l]={default:T},f){case"TimeOut":T.maxLoadTimeMs=b,T.maxTimeToFirstByteMs=b;break;case"MaxRetry":T.errorRetry.maxNumRetry=b,T.timeoutRetry.maxNumRetry=b;break;case"RetryDelay":T.errorRetry.retryDelayMs=b,T.timeoutRetry.retryDelayMs=b;break;case"MaxRetryTimeout":T.errorRetry.maxRetryDelayMs=b,T.timeoutRetry.maxRetryDelayMs=b;break}}}),u.length&&t.warn(`hls.js config: "${u.join('", "')}" setting(s) are deprecated, use "${l}": ${Qt(e[l])}`)}),x(x({},n),e)}function eo(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(eo):Object.keys(a).reduce((e,t)=>(e[t]=eo(a[t]),e),{}):a}function vd(a,e){const t=a.loader;t!==ml&&t!==gl?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):sd()&&(a.loader=ml,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const _a=2,yd=.1,_d=.05,Ed=100;class bd extends tr{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,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(Ed),this.mediaSource=t.mediaSource;const n=this.media=t.media;ai(n,"playing",this.onMediaPlaying),ai(n,"waiting",this.onMediaWaiting),ai(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(ci(n,"playing",this.onMediaPlaying),ci(n,"waiting",this.onMediaWaiting),ci(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 s=this.media;if(!s)return;const{seeking:l}=s,c=this.seeking&&!l,u=!this.seeking&&l,f=s.paused&&!l||s.ended||s.playbackRate===0;if(this.seeking=l,e!==t){t&&(this.ended=0),this.moved=!0,l||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!f&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(u||c){c&&this.stallResolved(e);return}if(f){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(!Je.getBuffered(s).length){this.nudgeRetry=0;return}const m=Je.bufferInfo(s,e,0),b=m.nextStart||0,T=this.fragmentTracker;if(l&&T&&this.hls){const _n=vl(this.hls.inFlightFragments,e),Yt=m.len>_a,un=!b||_n||b-e>_a&&!T.getPartialFragment(e);if(Yt||un)return;this.moved=!1}const R=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&T){if(!(m.len>0)&&!b)return;const Yt=Math.max(b,m.start||0)-e,fn=!!(R!=null&&R.live)?R.targetduration*2:_a,Xt=Ea(e,T);if(Yt>0&&(Yt<=fn||Xt)){s.paused||this._trySkipBufferHole(Xt);return}}const ie=i.detectStallWithCurrentTimeMs,q=self.performance.now(),we=this.waiting;let ht=this.stalled;if(ht===null)if(we>0&&q-we<ie)ht=this.stalled=we;else{this.stalled=q;return}const rt=q-ht;if(!l&&(rt>=ie||we)&&this.hls){var Ut;if(((Ut=this.mediaSource)==null?void 0:Ut.readyState)==="ended"&&!(R!=null&&R.live)&&Math.abs(e-((R==null?void 0:R.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(m),!this.media||!this.hls)return}const tn=Je.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(tn,rt,e)}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=Je.bufferedInfo(Je.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=Je.timeRangesToArray(r),l=Je.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const c=Je.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 m=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${u} -> ${f} buffered index: ${c}`);this.warn(m.message),this.media.currentTime+=1e-6;let b=Ea(e,this.fragmentTracker);b&&"fragment"in b?b=b.fragment:b||(b=void 0);const T=Je.bufferInfo(this.media,e,0);this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:m,reason:m.message,frag:b,buffer:T.len,bufferInfo:T})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:s,media:l}=this,c=(r=this.hls)==null?void 0:r.config;if(!l||!s||!c)return;const u=(i=this.hls)==null?void 0:i.latestLevelDetails,f=Ea(n,s);if((f||u!=null&&u.live&&n<u.fragmentStart)&&(this._trySkipBufferHole(f)||!this.media))return;const m=e.buffered,b=this.adjacentTraversal(e,n);(m&&m.length>1&&e.len>c.maxBufferHole||e.nextStart&&(e.nextStart-n<c.maxBufferHole||b))&&(t>c.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,r=e.nextStart;if(n&&r){const i=n.getFragAtPos(t,te.MAIN),s=n.getFragAtPos(r,te.MAIN);if(i&&s)return s.sn-i.sn<2}return!1}_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 (${Qt(e)})`);this.warn(s.message),t.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.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=Je.bufferInfo(r,s,0),c=s<l.start?l.start:l.nextStart;if(c&&this.hls){const f=l.len<=i.maxBufferHole,m=l.len>0&&l.len<1&&r.readyState<3,b=c-s;if(b>0&&(f||m)){if(b>i.maxBufferHole){let R=!1;if(s===0){const ie=n.getAppendedFrag(0,te.MAIN);ie&&c<ie.end&&(R=!0)}if(!R&&e){var u;if(!((u=this.hls.loadLevelObj)!=null&&u.details)||vl(this.hls.inFlightFragments,c))return 0;let q=!1,we=e.end;for(;we<c;){const ht=Ea(we,n);if(ht)we+=ht.duration;else{q=!0;break}}if(q)return 0}}const T=Math.max(c+_d,s+yd);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${T}`),this.moved=!0,r.currentTime=T,!(e!=null&&e.gap)){const R=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${T}`),ie={type:ae.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:R,reason:R.message,buffer:l.len,bufferInfo:l};e&&("fragment"in e?ie.part=e:ie.frag=e),this.hls.trigger(d.ERROR,ie)}return T}}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:ae.MEDIA_ERROR,details:B.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:ae.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function vl(a,e){const t=yl(a.main);if(t&&t.start<=e)return t;const n=yl(a.audio);return n&&n.start<=e?n:null}function yl(a){if(!a)return null;switch(a.state){case bn.IDLE:case bn.STOPPED:case bn.ENDED:case bn.ERROR:return null}return a.frag}function Ea(a,e){return e.getAppendedFrag(a,te.MAIN)||e.getPartialFragment(a)}const xd=.25;function to(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function no(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,Qt(r?x({type:r},n):n))}return i}const ba=(()=>{const a=to();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Sd{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 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&&(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&&(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(){var e;const t=(e=this.hls)==null?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Ms(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 Ho(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:r}=this.hls.config;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=to();if(s)for(let l=0;l<i.length;l++){const c=i[l].type;if(c===Di.emsg&&!n||!r)continue;const u=oo(i[l].data),f=i[l].pts;let m=f+i[l].duration;m>ba&&(m=ba),m-f<=0&&(m=f+xd);for(let T=0;T<u.length;T++){const R=u[T];if(!lo(R)){this.updateId3CueEnds(f,c);const ie=no(s,f,m,R,c);ie&&this.id3Track.addCue(ie)}}}}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===ba&&(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===Di.audioId3&&c:r==="video"?u=f=>f.type===Di.emsg&&l:u=f=>f.type===Di.audioId3&&c||f.type===Di.emsg&&l,za(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.hls||!this.media)return;const{assetPlayerId:n,timelineOffset:r,enableDateRangeMetadataCues:i,interstitialsController:s}=this.hls.config;if(!i)return;const l=to();if(n&&r&&!s){const{fragmentStart:ie,fragmentEnd:q}=e;let we=this.assetCue;we?(we.startTime=ie,we.endTime=q):l&&(we=this.assetCue=no(l,ie,q,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),we&&(we.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(we),we.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:u}=e,f=Object.keys(u);let m=this.dateRangeCuesAppended;if(c&&t){var b;if((b=c.cues)!=null&&b.length){const ie=Object.keys(m).filter(q=>!f.includes(q));for(let q=ie.length;q--;){var T;const we=ie[q],ht=(T=m[we])==null?void 0:T.cues;delete m[we],ht&&Object.keys(ht).forEach(rt=>{const Ut=ht[rt];if(Ut){Ut.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(Ut)}catch(tn){}}})}}else m=this.dateRangeCuesAppended={}}const R=e.fragments[e.fragments.length-1];if(!(f.length===0||!h(R==null?void 0:R.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let ie=0;ie<f.length;ie++){const q=f[ie],we=u[q],ht=we.startTime,rt=m[q],Ut=(rt==null?void 0:rt.cues)||{};let tn=(rt==null?void 0:rt.durationKnown)||!1,_n=ba;const{duration:Yt,endDate:un}=we;if(un&&Yt!==null)_n=ht+Yt,tn=!0;else if(we.endOnNext&&!tn){const Xt=f.reduce((An,nr)=>{if(nr!==we.id){const fr=u[nr];if(fr.class===we.class&&fr.startDate>we.startDate&&(!An||we.startDate<An.startDate))return fr}return An},null);Xt&&(_n=Xt.startTime,tn=!0)}const fn=Object.keys(we.attr);for(let Xt=0;Xt<fn.length;Xt++){const An=fn[Xt];if(!Ur(An))continue;const nr=Ut[An];if(nr)tn&&!(rt!=null&&rt.durationKnown)?nr.endTime=_n:Math.abs(nr.startTime-ht)>.01&&(nr.startTime=ht,nr.endTime=_n);else if(l){let fr=we.attr[An];Nr(An)&&(fr=C(fr));const hr=no(l,ht,_n,{key:An,data:fr},Di.dateRange);hr&&(hr.id=q,this.id3Track.addCue(hr),Ut[An]=hr,s&&(An==="X-ASSET-LIST"||An==="X-ASSET-URL")&&hr.addEventListener("enter",this.onEventCueEnter))}}m[q]={cues:Ut,dateRange:we,durationKnown:tn}}}}}class Ad{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 m=Math.min(2,Math.max(1,s)),b=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,T=Math.min(m,Math.max(1,b));this.changeMediaPlaybackRate(t,T)}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===B.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 wd extends Pa{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=>{const m=f.attrs;let{audioCodec:b,videoCodec:T}=f;b&&(f.audioCodec=b=he(b,n)||void 0),T&&(T=f.videoCodec=Xe(T));const{width:R,height:ie,unknownCodecs:q}=f;let we=q?q.length:0;if(q)for(let Xt=we;Xt--;){const An=q[Xt];this.isAudioSupported(An)?(f.audioCodec=b=b?`${b},${An}`:An,we--,Oe.audio[b.substring(0,4)]=2):this.isVideoSupported(An)&&(f.videoCodec=T=T?`${T},${An}`:An,we--,Oe.video[T.substring(0,4)]=2)}if(l||(l=!!(R&&ie)),c||(c=!!T),u||(u=!!b),we||b&&!this.isAudioSupported(b)||T&&!this.isVideoSupported(T)){this.log(`Some or all CODECS not supported "${m.CODECS}"`);return}const{CODECS:ht,"FRAME-RATE":rt,"HDCP-LEVEL":Ut,"PATHWAY-ID":tn,RESOLUTION:_n,"VIDEO-RANGE":Yt}=m,fn=`${`${tn||"."}-`}${f.bitrate}-${_n}-${rt}-${ht}-${Yt}-${Ut}`;if(i[fn])if(i[fn].uri!==f.url&&!f.attrs["PATHWAY-ID"]){const Xt=s[fn]+=1;f.attrs["PATHWAY-ID"]=new Array(Xt+1).join(".");const An=this.createLevel(f);i[fn]=An,r.push(An)}else i[fn].addGroupId("audio",m.AUDIO),i[fn].addGroupId("text",m.SUBTITLES);else{const Xt=this.createLevel(f);i[fn]=Xt,s[fn]=1,r.push(Xt)}}),this.filterAndSortMediaOptions(r,t,l,c,u)}createLevel(e){const t=new At(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=ze(r,[])}return t}isAudioSupported(e){return Vt(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return Vt(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:q,videoRange:we,width:ht,height:rt})=>(!!q||!!(ht&&rt))&&gt(we))),c.length===0){Promise.resolve().then(()=>{if(this.hls){let q="no level with compatible codecs found in manifest",we=q;t.levels.length&&(we=`one or more CODECS in variant not supported: ${Qt(t.levels.map(rt=>rt.attrs.CODECS).filter((rt,Ut,tn)=>tn.indexOf(rt)===Ut))}`,this.warn(we),q+=` (${we})`);const ht=new Error(q);this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:ht,reason:we})}});return}t.audioTracks&&(s=t.audioTracks.filter(q=>!q.audioCodec||this.isAudioSupported(q.audioCodec)),_l(s)),t.subtitles&&(l=t.subtitles,_l(l));const u=c.slice(0);c.sort((q,we)=>{if(q.attrs["HDCP-LEVEL"]!==we.attrs["HDCP-LEVEL"])return(q.attrs["HDCP-LEVEL"]||"")>(we.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&q.height!==we.height)return q.height-we.height;if(q.frameRate!==we.frameRate)return q.frameRate-we.frameRate;if(q.videoRange!==we.videoRange)return Re.indexOf(q.videoRange)-Re.indexOf(we.videoRange);if(q.videoCodec!==we.videoCodec){const ht=se(q.videoCodec),rt=se(we.videoCodec);if(ht!==rt)return rt-ht}if(q.uri===we.uri&&q.codecSet!==we.codecSet){const ht=ve(q.codecSet),rt=ve(we.codecSet);if(ht!==rt)return rt-ht}return q.averageBitrate!==we.averageBitrate?q.averageBitrate-we.averageBitrate:0});let f=u[0];if(this.steering&&(c=this.steering.filterParsedLevels(c),c.length!==u.length)){for(let q=0;q<u.length;q++)if(u[q].pathwayId===c[0].pathwayId){f=u[q];break}}this._levels=c;for(let q=0;q<c.length;q++)if(c[q]===f){var m;this._firstLevel=q;const we=f.bitrate,ht=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${c.length} level(s) found, first bitrate: ${we}`),((m=this.hls.userConfig)==null?void 0:m.abrEwmaDefaultEstimate)===void 0){const rt=Math.min(we,this.hls.config.abrEwmaDefaultEstimateMax);rt>ht&&ht===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=rt)}break}const b=i&&!r,T=this.hls.config,R=!!(T.audioStreamController&&T.audioTrackController),ie={levels:c,audioTracks:s,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:R&&!b&&s.some(q=>!!q.url)};this.hls.trigger(d.MANIFEST_PARSED,ie)}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"),m=e<0;if(this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.LEVEL_SWITCH_ERROR,level:e,fatal:m,error:f,reason:f.message}),m)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===_e.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===te.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));Ci(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 _l(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function El(){return self.SourceBuffer||self.WebKitSourceBuffer}function bl(){if(!oe())return!1;const e=El();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Cd(){if(!bl())return!1;const a=oe();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(Bt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(Bt(e,"audio"))))}function Td(){var a;const e=El();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Dd=100;class Rd extends Bi{constructor(e,t,n){super(e,t,n,"stream-controller",te.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||!h(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,te.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(Dd),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=bn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=bn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case bn.WAITING_LEVEL:{const{levels:e,level:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(r))break;this.state=bn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=bn.IDLE;break}break}case bn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===bn.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 ie={};this.altAudio===2&&(ie.type="video"),this.hls.trigger(d.BUFFER_EOS,ie),this.state=bn.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===bn.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=bn.WAITING_LEVEL,this.startFragRequested=!1;return}const f=l.len,m=this.getMaxBufferLength(s.maxBitrate);if(f>=m)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const b=this.backtrackFragment?this.backtrackFragment.start:l.end;let T=this.getNextFragment(b,u);if(this.couldBacktrack&&!this.fragPrevious&&T&&He(T)&&this.fragmentTracker.getState(T)!==ft.OK){var R;const q=((R=this.backtrackFragment)!=null?R:T).sn-u.startSN,we=u.fragments[q-1];we&&T.cc===we.cc&&(T=we,this.fragmentTracker.removeFragment(we))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(T&&this.isLoopLoading(T,b)){if(!T.gap){const q=this.audioOnly&&!this.altAudio?O.AUDIO:O.VIDEO,we=(q===O.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;we&&this.afterBufferFlushed(we,q,te.MAIN)}T=this.getNextFragmentLoopLoading(T,u,l,te.MAIN,m)}T&&(T.initSegment&&!T.initSegment.data&&!this.bitrateTest&&(T=T.initSegment),this.loadFragment(T,s,b))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===ft.NOT_LOADED||r===ft.PARTIAL?He(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,te.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 bn.KEY_LOADING:case bn.FRAG_LOADING:case bn.FRAG_LOADING_WAITING_RETRY:case bn.PARSING:case bn.PARSED:this.state=bn.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;ai(n,"playing",this.onMediaPlaying),ai(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(ci(n,"playing",this.onMediaPlaying),ci(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;for(let i=0;i<t.levels.length;i++){const s=t.levels[i].audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&r&&!Td(),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!==bn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=bn.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===bn.FRAG_LOADING||this.state===bn.FRAG_LOADING_WAITING_RETRY)&&f.level!==t.level&&f.loader&&this.abortCurrentFrag();let m=0;if(l.live||(n=u.details)!=null&&n.live){var b;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;m=this.alignPlaylists(l,u.details,(b=this.levelLastLoaded)==null?void 0:b.details)}if(u.details=l,this.levelLastLoaded=u,i||this.setStartPosition(l,m),this.hls.trigger(d.LEVEL_UPDATED,{details:l,level:s}),this.state===bn.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=bn.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 f=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!c&&n.readyState<4||i<l-f)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${r.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var u;const m=Je.bufferInfo(n,r,0);if(!((u=m.buffered)!=null&&u.length)){n.currentTime=r;return}if(m.start<=i){n.currentTime=r;return}const{nextStart:T}=Je.bufferedInfo(m.buffered,i,0);T&&(n.currentTime=T)}else 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,m=(t=n.initSegment)==null?void 0:t.data,b=this._getAudioCodec(l),T=this.transmuxer=this.transmuxer||new wo(this.hls,te.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),R=r?r.index:-1,ie=R!==-1,q=new Wn(n.level,n.sn,n.stats.chunkCount,i.byteLength,R,ie),we=this.initPTS[n.cc];T.push(i,m,b,u,n,r,c.totalduration,f,q,we)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(Yn(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,()=>{this.hls&&this.hls.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=Yn(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===te.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===bn.PARSED&&(this.state=bn.IDLE);return}const l=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),He(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&Je.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=bn.ERROR;return}switch(t.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(te.MAIN,t);break;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===bn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===_e.LEVEL&&(this.state=bn.IDLE);break;case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case B.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=bn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==O.AUDIO||!this.altAudio){const n=(t===O.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,te.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=Je.getBuffered(e),l=s.length?s.start(0):0,c=l-n,u=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||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=bn.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}).catch(n=>{this.state===bn.STOPPED||this.state===bn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:i}=e,s=this.getCurrentContext(i);if(!s){this.resetWhenMissingContext(i);return}const{frag:l,part:c,level:u}=s,{video:f,text:m,id3:b,initSegment:T}=r,{details:R}=u,ie=this.altAudio?void 0:r.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=bn.PARSING,T){const q=T.tracks;if(q){const Ut=l.initSegment||l;if(this.unhandledEncryptionError(T,l))return;this._bufferInitSegment(u,q,Ut,i),n.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:Ut,id:t,tracks:q})}const we=T.initPTS,ht=T.timescale,rt=this.initPTS[l.cc];if(h(we)&&(!rt||rt.baseTime!==we||rt.timescale!==ht)){const Ut=T.trackId;this.initPTS[l.cc]={baseTime:we,timescale:ht,trackId:Ut},n.trigger(d.INIT_PTS_FOUND,{frag:l,id:t,initPTS:we,timescale:ht,trackId:Ut})}}if(f&&R){ie&&f.type==="audiovideo"&&this.logMuxedErr(l);const q=R.fragments[l.sn-1-R.startSN],we=l.sn===R.startSN,ht=!q||l.cc>q.cc;if(r.independent!==!1){const{startPTS:rt,endPTS:Ut,startDTS:tn,endDTS:_n}=f;if(c)c.elementaryStreams[f.type]={startPTS:rt,endPTS:Ut,startDTS:tn,endDTS:_n};else if(f.firstKeyFrame&&f.independent&&i.id===1&&!ht&&(this.couldBacktrack=!0),f.dropped&&f.independent){const Yt=this.getMainFwdBufferInfo(),un=(Yt?Yt.end:this.getLoadPosition())+this.config.maxBufferHole,fn=f.firstKeyFramePTS?f.firstKeyFramePTS:rt;if(!we&&un<fn-this.config.maxBufferHole&&!ht){this.backtrack(l);return}else ht&&(l.gap=!0);l.setElementaryStreamInfo(f.type,l.start,Ut,l.start,_n,!0)}else we&&rt-(R.appliedTimelineOffset||0)>_a&&(l.gap=!0);l.setElementaryStreamInfo(f.type,rt,Ut,tn,_n),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(f,l,c,i,we||ht)}else if(we||ht)l.gap=!0;else{this.backtrack(l);return}}if(ie){const{startPTS:q,endPTS:we,startDTS:ht,endDTS:rt}=ie;c&&(c.elementaryStreams[O.AUDIO]={startPTS:q,endPTS:we,startDTS:ht,endDTS:rt}),l.setElementaryStreamInfo(O.AUDIO,q,we,ht,rt),this.bufferFragmentData(ie,l,c,i)}if(R&&b!=null&&b.samples.length){const q={id:t,frag:l,details:R,samples:b.samples};n.trigger(d.FRAG_PARSING_METADATA,q)}if(R&&m){const q={id:t,frag:l,details:R,samples:m.samples};n.trigger(d.FRAG_PARSING_USERDATA,q)}}logMuxedErr(e){this.warn(`${He(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==bn.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){const u=e.audioCodec;let f=xe(i.codec,u);f==="mp4a"&&(f="mp4a.40.5");const m=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const b=i.metadata;b&&"channelCount"in b&&(b.channelCount||1)!==1&&m.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&m.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),u&&u!==f&&this.log(`Swapping manifest audio codec "${u}" for "${f}"`),i.levelCodec=f,i.id=te.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${u||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=te.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 m=t[u].initSegment;m!=null&&m.byteLength&&this.hls.trigger(d.BUFFER_APPENDING,{type:u,data:m,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,te.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=bn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Je.isBuffered(e,n)?t=this.getAppendedFrag(n):Je.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 h(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(h(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?Pn(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 Id extends ${constructor(e,t){super("key-loader",t),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyIdToKeyInfo){const r=this.keyIdToKeyInfo[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.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e].loader;t&&t.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(e,t=B.KEY_LOAD_ERROR,n,r,i){return new Un({type:ae.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(e.cc<=s.cc&&(!He(e)||!He(s)||e.sn<s.sn)||!n&&r==i-1)return this.emeController.selectKeySystemFormat(s).then(l=>{if(!this.emeController)return;s.setKeyFormat(l);const c=Yr(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const r=ir(this.config);if(r.length)return this.emeController.getKeySystemAccess(r)}}return null}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 f=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,B.KEY_LOAD_ERROR,f))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,B.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=ro(i);let c=this.keyIdToKeyInfo[l];if((n=c)!=null&&n.decryptdata.key)return i.key=c.decryptdata.key,Promise.resolve({frag:e,keyInfo:c});if((r=c)!=null&&r.keyLoadPromise){var u;switch((u=c.mediaKeySessionContext)==null?void 0:u.keyStatus){case"usable":case"usable-in-future":return c.keyLoadPromise.then(m=>{const{keyInfo:b}=m;return i.key=b.decryptdata.key,{frag:e,keyInfo:b}})}}switch(this.log(`Loading key ${U(i.keyId||[])} from ${e.type} ${e.level}`),c=this.keyIdToKeyInfo[l]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(c,e):this.loadKeyEME(c,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(c,e);default:return Promise.reject(this.createKeyLoadError(e,B.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);return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i.data&&(i.data.frag=t),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},m={onSuccess:(b,T,R,ie)=>{const{frag:q,keyInfo:we,url:ht}=R,rt=ro(we.decryptdata)||ht;if(!q.decryptdata||we!==this.keyIdToKeyInfo[rt])return l(this.createKeyLoadError(q,B.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),ie));we.decryptdata.key=q.decryptdata.key=new Uint8Array(b.data),q.keyLoader=null,we.loader=null,s({frag:q,keyInfo:we})},onError:(b,T,R,ie)=>{this.resetLoader(T),l(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error(`HTTP Error ${b.code} loading key ${b.text}`),R,x({url:c.url,data:void 0},b)))},onTimeout:(b,T,R)=>{this.resetLoader(T),l(this.createKeyLoadError(t,B.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),R))},onAbort:(b,T,R)=>{this.resetLoader(T),l(this.createKeyLoadError(t,B.INTERNAL_ABORTED,new Error("key loading aborted"),R))}};i.load(c,f,m)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null);const s=ro(n.decryptdata)||r;delete this.keyIdToKeyInfo[s],i&&i.destroy()}}function ro(a){const e=a.keyId;return e?U(e):a.uri}function xl(a){const{type:e}=a;switch(e){case _e.AUDIO_TRACK:return te.AUDIO;case _e.SUBTITLE_TRACK:return te.SUBTITLE;default:return te.MAIN}}function io(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Ld{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:_e.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:_e.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:_e.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:_e.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[_e.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[_e.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===_e.MANIFEST?i=n.manifestLoadPolicy.default:i=p({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),h((t=e.deliveryDirectives)==null?void 0:t.part)){let u;if(e.type===_e.LEVEL&&e.level!==null?u=this.hls.levels[e.level].details:e.type===_e.AUDIO_TRACK&&e.id!==null?u=this.hls.audioTracks[e.id].details:e.type===_e.SUBTITLE_TRACK&&e.id!==null&&(u=this.hls.subtitleTracks[e.id].details),u){const f=u.partTarget,m=u.targetduration;if(f&&m){const b=Math.max(f*3,m*.8)*1e3;i=p({},i,{maxTimeToFirstByteMs:Math.min(b,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(b,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,m,b)=>{const T=this.getInternalLoader(m);this.resetInternalLoader(m.type);const R=u.data;if(R.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(u,m,new Error("no EXTM3U delimiter"),b||null,f);return}f.parsing.start=performance.now(),ui.isMediaPlaylist(R)||m.type!==_e.MANIFEST?this.handleTrackOrLevelPlaylist(u,f,m,b||null,T):this.handleMasterPlaylist(u,f,m,b)},onError:(u,f,m,b)=>{this.handleNetworkError(f,m,!1,u,b)},onTimeout:(u,f,m)=>{this.handleNetworkError(f,m,!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=io(e,n),c=ui.parseMasterPlaylist(s,l);if(c.playlistParsingError){this.handleManifestParsingError(e,n,c.playlistParsingError,r,t);return}const{contentSteering:u,levels:f,sessionData:m,sessionKeys:b,startTimeOffset:T,variableList:R}=c;this.variableList=R;const{AUDIO:ie=[],SUBTITLES:q,"CLOSED-CAPTIONS":we}=ui.parseMasterPlaylistMedia(s,l,c);ie.length&&!ie.some(rt=>!rt.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"),ie.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Vn({}),bitrate:0,url:""})),i.trigger(d.MANIFEST_LOADED,{levels:f,audioTracks:ie,subtitles:q,captions:we,contentSteering:u,url:l,stats:t,networkDetails:r,sessionData:m,sessionKeys:b,startTimeOffset:T,variableList:R})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:l,level:c,type:u}=n,f=io(e,n),m=h(c)?c:h(l)?l:0,b=xl(n),T=ui.parseLevelPlaylist(e.data,f,m,b,0,this.variableList);if(u===_e.MANIFEST){const R={attrs:new Vn({}),bitrate:0,details:T,name:"",url:f};T.requestScheduled=t.loading.start+gi(T,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=T,this.handlePlaylistLoaded(T,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.MANIFEST_PARSING_ERROR,fatal:t.type===_e.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===_e.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===_e.AUDIO_TRACK||e.type===_e.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=B.UNKNOWN,u=!1;const f=this.getInternalLoader(e);switch(e.type){case _e.MANIFEST:c=n?B.MANIFEST_LOAD_TIMEOUT:B.MANIFEST_LOAD_ERROR,u=!0;break;case _e.LEVEL:c=n?B.LEVEL_LOAD_TIMEOUT:B.LEVEL_LOAD_ERROR,u=!1;break;case _e.AUDIO_TRACK:c=n?B.AUDIO_TRACK_LOAD_TIMEOUT:B.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case _e.SUBTITLE_TRACK:c=n?B.SUBTITLE_TRACK_LOAD_TIMEOUT:B.SUBTITLE_LOAD_ERROR,u=!1;break}f&&this.resetInternalLoader(e.type);const m={type:ae.NETWORK_ERROR,details:c,fatal:u,url:e.url,loader:f,context:e,error:l,networkDetails:t,stats:i};if(r){const b=(t==null?void 0:t.url)||e.url;m.response=x({url:b,data:void 0},r)}this.hls.trigger(d.ERROR,m)}handlePlaylistLoaded(e,t,n,r,i,s){const l=this.hls,{type:c,level:u,id:f,groupId:m,deliveryDirectives:b}=r,T=io(t,r),R=xl(r),ie=typeof r.level=="number"&&R===te.MAIN?u:void 0;if(!e.fragments.length){const we=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_EMPTY_ERROR,fatal:!1,url:T,error:we,reason:we.message,response:t,context:r,level:ie,parent:R,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const q=e.playlistParsingError;if(q){if(this.hls.logger.warn(`${q} ${e.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:T,error:q,reason:q.message,response:t,context:r,level:ie,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 _e.MANIFEST:case _e.LEVEL:l.trigger(d.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||l.levels[0],level:ie||0,id:f||0,stats:n,networkDetails:i,deliveryDirectives:b,withoutMultiVariant:c===_e.MANIFEST});break;case _e.AUDIO_TRACK:l.trigger(d.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:m||"",stats:n,networkDetails:i,deliveryDirectives:b});break;case _e.SUBTITLE_TRACK:l.trigger(d.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:m||"",stats:n,networkDetails:i,deliveryDirectives:b});break}}}class gs{static get version(){return ys}static isMSESupported(){return bl()}static isSupported(){return Cd()}static getMediaSource(){return oe()}static get Events(){return d}static get MetadataSchema(){return Di}static get ErrorTypes(){return ae}static get ErrorDetails(){return B}static get DefaultConfig(){return gs.defaultConfig?gs.defaultConfig:pd}static set DefaultConfig(e){gs.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 Ks,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=ne(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=gd(gs.DefaultConfig,e,t);this.userConfig=e,n.progressive&&vd(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:c}=n,u=new l(this),f=this.abrController=new r(this),m=new zt(this),b=n.interstitialsController,T=b?this.interstitialsController=new b(this,gs):null,R=this.bufferController=new i(this,m),ie=this.capLevelController=new s(this),q=new c(this),we=new Ld(this),ht=n.contentSteeringController,rt=ht?new ht(this):null,Ut=this.levelController=new wd(this,rt),tn=new Sd(this),_n=new Id(this.config,this.logger),Yt=this.streamController=new Rd(this,m,_n),un=this.gapController=new bd(this,m);ie.setStreamController(Yt),q.setStreamController(Yt);const fn=[we,Ut,Yt];T&&fn.splice(1,0,T),rt&&fn.splice(1,0,rt),this.networkControllers=fn;const Xt=[f,R,un,ie,q,tn,m];this.audioTrackController=this.createController(n.audioTrackController,fn);const An=n.audioStreamController;An&&fn.push(this.audioStreamController=new An(this,m,_n)),this.subtitleTrackController=this.createController(n.subtitleTrackController,fn);const nr=n.subtitleStreamController;nr&&fn.push(this.subtititleStreamController=new nr(this,m,_n)),this.createController(n.timelineController,Xt),_n.emeController=this.emeController=this.createController(n.emeController,Xt),this.cmcdController=this.createController(n.cmcdController,Xt),this.latencyController=this.createController(Ad,Xt),this.coreComponents=Xt,fn.push(u);const fr=u.onErrorOut;typeof fr=="function"&&this.on(d.ERROR,fr,u),this.on(d.MANIFEST_LOADED,we.onManifestLoaded,we)}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:ae.OTHER_ERROR,details:B.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:ae.OTHER_ERROR,details:B.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=y.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={[te.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[te.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[te.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=bc()),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){Ne(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=Ze(t);return Pe(e,n,navigator.mediaCapabilities)}}gs.defaultConfig=void 0},16722:function(In,Gt,_){"use strict";_.d(Gt,{Z:function(){return te}});const h=o=>typeof o=="object"&&o!=null&&o.nodeType===1,ue=(o,g)=>(!g||o!=="hidden")&&o!=="visible"&&o!=="clip",z=(o,g)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const w=getComputedStyle(o,null);return ue(w.overflowY,g)||ue(w.overflowX,g)||(p=>{const E=(x=>{if(!x.ownerDocument||!x.ownerDocument.defaultView)return null;try{return x.ownerDocument.defaultView.frameElement}catch(L){return null}})(p);return!!E&&(E.clientHeight<p.scrollHeight||E.clientWidth<p.scrollWidth)})(o)}return!1},ae=(o,g,w,p,E,x,L,j)=>x<o&&L>g||x>o&&L<g?0:x<=o&&j<=w||L>=g&&j>=w?x-o-p:L>g&&j<w||x<o&&j>w?L-g+E:0,B=o=>{const g=o.parentElement;return g==null?o.getRootNode().host||null:g},d=(o,g)=>{var w,p,E,x;if(typeof document=="undefined")return[];const{scrollMode:L,block:j,inline:$,boundary:le,skipOverflowHiddenElements:F}=g,H=typeof le=="function"?le:tt=>tt!==le;if(!h(o))throw new TypeError("Invalid target");const D=document.scrollingElement||document.documentElement,A=[];let Q=o;for(;h(Q)&&H(Q);){if(Q=B(Q),Q===D){A.push(Q);break}Q!=null&&Q===document.body&&z(Q)&&!z(document.documentElement)||Q!=null&&z(Q,F)&&A.push(Q)}const ne=(p=(w=window.visualViewport)==null?void 0:w.width)!=null?p:innerWidth,ee=(x=(E=window.visualViewport)==null?void 0:E.height)!=null?x:innerHeight,{scrollX:oe,scrollY:ge}=window,{height:me,width:ot,top:U,right:C,bottom:P,left:G}=o.getBoundingClientRect(),{top:re,right:X,bottom:y,left:v}=(tt=>{const wt=window.getComputedStyle(tt);return{top:parseFloat(wt.scrollMarginTop)||0,right:parseFloat(wt.scrollMarginRight)||0,bottom:parseFloat(wt.scrollMarginBottom)||0,left:parseFloat(wt.scrollMarginLeft)||0}})(o);let O=j==="start"||j==="nearest"?U-re:j==="end"?P+y:U+me/2-re+y,pe=$==="center"?G+ot/2-v+X:$==="end"?C+X:G-v;const He=[];for(let tt=0;tt<A.length;tt++){const wt=A[tt],{height:It,width:Ft,top:Ht,right:Ke,bottom:en,left:Tt}=wt.getBoundingClientRect();if(L==="if-needed"&&U>=0&&G>=0&&P<=ee&&C<=ne&&(wt===D&&!z(wt)||U>=Ht&&P<=en&&G>=Tt&&C<=Ke))return He;const an=getComputedStyle(wt),qe=parseInt(an.borderLeftWidth,10),yt=parseInt(an.borderTopWidth,10),Fe=parseInt(an.borderRightWidth,10),Ae=parseInt(an.borderBottomWidth,10);let V=0,je=0;const Qe="offsetWidth"in wt?wt.offsetWidth-wt.clientWidth-qe-Fe:0,J="offsetHeight"in wt?wt.offsetHeight-wt.clientHeight-yt-Ae:0,M="offsetWidth"in wt?wt.offsetWidth===0?0:Ft/wt.offsetWidth:0,Se="offsetHeight"in wt?wt.offsetHeight===0?0:It/wt.offsetHeight:0;if(D===wt)V=j==="start"?O:j==="end"?O-ee:j==="nearest"?ae(ge,ge+ee,ee,yt,Ae,ge+O,ge+O+me,me):O-ee/2,je=$==="start"?pe:$==="center"?pe-ne/2:$==="end"?pe-ne:ae(oe,oe+ne,ne,qe,Fe,oe+pe,oe+pe+ot,ot),V=Math.max(0,V+ge),je=Math.max(0,je+oe);else{V=j==="start"?O-Ht-yt:j==="end"?O-en+Ae+J:j==="nearest"?ae(Ht,en,It,yt,Ae+J,O,O+me,me):O-(Ht+It/2)+J/2,je=$==="start"?pe-Tt-qe:$==="center"?pe-(Tt+Ft/2)+Qe/2:$==="end"?pe-Ke+Fe+Qe:ae(Tt,Ke,Ft,qe,Fe+Qe,pe,pe+ot,ot);const{scrollLeft:be,scrollTop:W}=wt;V=Se===0?0:Math.max(0,Math.min(W+V/Se,wt.scrollHeight-It/Se+J)),je=M===0?0:Math.max(0,Math.min(be+je/M,wt.scrollWidth-Ft/M+Qe)),O+=W-V,pe+=be-je}He.push({el:wt,top:V,left:je})}return He},_e=o=>o===!1?{block:"end",inline:"nearest"}:(g=>g===Object(g)&&Object.keys(g).length!==0)(o)?o:{block:"start",inline:"nearest"};function te(o,g){if(!o.isConnected||!(E=>{let x=E;for(;x&&x.parentNode;){if(x.parentNode===document)return!0;x=x.parentNode instanceof ShadowRoot?x.parentNode.host:x.parentNode}return!1})(o))return;const w=(E=>{const x=window.getComputedStyle(E);return{top:parseFloat(x.scrollMarginTop)||0,right:parseFloat(x.scrollMarginRight)||0,bottom:parseFloat(x.scrollMarginBottom)||0,left:parseFloat(x.scrollMarginLeft)||0}})(o);if((E=>typeof E=="object"&&typeof E.behavior=="function")(g))return g.behavior(d(o,g));const p=typeof g=="boolean"||g==null?void 0:g.behavior;for(const{el:E,top:x,left:L}of d(o,_e(g))){const j=x-w.top+w.bottom,$=L-w.left+w.right;E.scroll({top:j,left:$,behavior:p})}}}}]);
}());